]> git.saurik.com Git - wxWidgets.git/blob - configure
wxSplashScreen sample added to global makefiles.
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWidgets 2.5.2.
5 #
6 # Report bugs to <wx-dev@lists.wxwidgets.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWidgets'
272 PACKAGE_TARNAME='wxwidgets'
273 PACKAGE_VERSION='2.5.2'
274 PACKAGE_STRING='wxWidgets 2.5.2'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 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_MAC_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_SUBRELEASE_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 WXCONFIG_DATA_FILE WX_LARGEFILE_FLAGS GCC_PRAGMA_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 CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654 done
655
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676 do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729 else
730 ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
797 \`configure' configures wxWidgets 2.5.2 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819 cat <<_ACEOF
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
822 [$ac_default_prefix]
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
824 [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846 _ACEOF
847
848 cat <<\_ACEOF
849
850 X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854 System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862 case $ac_init_help in
863 short | recursive ) echo "Configuration of wxWidgets 2.5.2:";;
864 esac
865 cat <<\_ACEOF
866
867 Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
894 --enable-rpath=DIR output the rpath flag from wx-config
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
934 --enable-wxprintfv use wxWidgets implementation of vprintf()
935 --enable-zipstream use wxZipInputStream
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
950 --enable-mdidoc use docview architecture with MDI
951 --enable-loggui use standard GUI logger
952 --enable-logwin use wxLogWindow
953 --enable-logdialog use wxLogDialog
954 --enable-webkit use wxWebKitCtrl (Mac)
955 --enable-postscript use wxPostscriptDC device context (default for gtk+)
956 --enable-prologio not available; see contrib
957 --enable-resources not available; see contrib
958 --enable-clipboard use wxClipboard class
959 --enable-dnd use Drag'n'Drop classes
960 --enable-metafile use win32 metafiles
961 --enable-controls use all usual controls
962 --enable-accel use accelerators
963 --enable-button use wxButton class
964 --enable-bmpbutton use wxBitmapButton class
965 --enable-calendar use wxCalendarCtrl class
966 --enable-caret use wxCaret class
967 --enable-checkbox use wxCheckBox class
968 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
969 --enable-choice use wxChoice class
970 --enable-combobox use wxComboBox class
971 --enable-display use wxDisplay class
972 --enable-gauge use wxGauge class
973 --enable-grid use wxGrid class
974 --enable-imaglist use wxImageList class
975 --enable-listbook use wxListbook class
976 --enable-listbox use wxListBox class
977 --enable-listctrl use wxListCtrl class
978 --enable-notebook use wxNotebook class
979 --enable-radiobox use wxRadioBox class
980 --enable-radiobtn use wxRadioButton class
981 --enable-sash use wxSashWindow class
982 --enable-scrollbar use wxScrollBar class and scrollable windows
983 --enable-slider use wxSlider class
984 --enable-spinbtn use wxSpinButton class
985 --enable-spinctrl use wxSpinCtrl class
986 --enable-splitter use wxSplitterWindow class
987 --enable-statbmp use wxStaticBitmap class
988 --enable-statbox use wxStaticBox class
989 --enable-statline use wxStaticLine class
990 --enable-stattext use wxStaticText class
991 --enable-statusbar use wxStatusBar class
992 --enable-tabdialog use wxTabControl class
993 --enable-textctrl use wxTextCtrl class
994 --enable-togglebtn use wxToggleButton class
995 --enable-toolbar use wxToolBar class
996 --enable-tbarnative use native wxToolBar class
997 --enable-tbarsmpl use wxToolBarSimple class
998 --enable-treectrl use wxTreeCtrl class
999 --enable-tipwindow use wxTipWindow class
1000 --enable-popupwin use wxPopUpWindow class
1001 --enable-commondlg use all common dialogs
1002 --enable-choicedlg use wxChoiceDialog
1003 --enable-coldlg use wxColourDialog
1004 --enable-filedlg use wxFileDialog
1005 --enable-finddlg use wxFindReplaceDialog
1006 --enable-fontdlg use wxFontDialog
1007 --enable-dirdlg use wxDirDialog
1008 --enable-msgdlg use wxMessageDialog
1009 --enable-numberdlg use wxNumberEntryDialog
1010 --enable-splash use wxSplashScreen
1011 --enable-textdlg use wxTextDialog
1012 --enable-tipdlg use startup tips
1013 --enable-progressdlg use wxProgressDialog
1014 --enable-wizarddlg use wxWizard
1015 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1016 --enable-miniframe use wxMiniFrame class
1017 --enable-tooltips use wxToolTip class
1018 --enable-splines use spline drawing code
1019 --enable-validators use wxValidator and derived classes
1020 --enable-busyinfo use wxBusyInfo
1021 --enable-joystick use wxJoystick (Linux only)
1022 --enable-metafiles use wxMetaFile (Windows only)
1023 --enable-dragimage use wxDragImage
1024 --enable-accessibility enable accessibility support
1025 --enable-palette use wxPalette class
1026 --enable-image use wxImage class
1027 --enable-gif use gif images (GIF file format)
1028 --enable-pcx use pcx images (PCX file format)
1029 --enable-iff use iff images (IFF file format)
1030 --enable-pnm use pnm images (PNM file format)
1031 --enable-xpm use xpm images (XPM file format)
1032 --enable-icocur use Windows ICO and CUR formats
1033 --enable-official_build official build of wxWidgets (win32 DLL only)
1034 --enable-vendor=VENDOR vendor name (win32 DLL only)
1035 --disable-largefile omit support for large files
1036 --disable-gtktest do not try to compile and run a test GTK+ program
1037 --disable-gtktest Do not try to compile and run a test GTK program
1038 --disable-sdltest Do not try to compile and run a test SDL program
1039 --enable-omf use OMF object format (OS/2)
1040 --disable-precomp-headers don't use precompiled headers even if compiler can
1041
1042 Optional Packages:
1043 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1044 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1045 --with-gtk use GTK+
1046 --with-motif use Motif/Lesstif
1047 --with-mac use Mac OS X
1048 --with-cocoa use Cocoa
1049 --with-wine use Wine
1050 --with-msw use MS-Windows
1051 --with-pm use OS/2 Presentation Manager
1052 --with-mgl use SciTech MGL
1053 --with-microwin use MicroWindows
1054 --with-x11 use X11
1055 --with-libpng use libpng (PNG image format)
1056 --with-libjpeg use libjpeg (JPEG file format)
1057 --with-libtiff use libtiff (TIFF file format)
1058 --with-libxpm use libxpm (XPM file format)
1059 --with-libmspack use libmspack (CHM help files loading)
1060 --with-sdl use SDL for audio on Unix
1061 --with-opengl use OpenGL (or Mesa)
1062 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1063 --with-regex enable support for wxRegEx class
1064 --with-zlib use zlib for LZW compression
1065 --with-odbc use the IODBC and wxODBC classes
1066 --with-expat enable XML support using expat parser
1067 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1068 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1069 --with-x use the X Window System
1070 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1071 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1072 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1073 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1074 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1075
1076 Some influential environment variables:
1077 CC C compiler command
1078 CFLAGS C compiler flags
1079 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1080 nonstandard directory <lib dir>
1081 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082 headers in a nonstandard directory <include dir>
1083 CPP C preprocessor
1084 CXX C++ compiler command
1085 CXXFLAGS C++ compiler flags
1086 CXXCPP C++ preprocessor
1087
1088 Use these variables to override the choices made by `configure' or to help
1089 it to find libraries and programs with nonstandard names/locations.
1090
1091 Report bugs to <wx-dev@lists.wxwidgets.org>.
1092 _ACEOF
1093 fi
1094
1095 if test "$ac_init_help" = "recursive"; then
1096 # If there are subdirs, report their specific --help.
1097 ac_popdir=`pwd`
1098 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099 test -d $ac_dir || continue
1100 ac_builddir=.
1101
1102 if test "$ac_dir" != .; then
1103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104 # A "../" for each directory in $ac_dir_suffix.
1105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1106 else
1107 ac_dir_suffix= ac_top_builddir=
1108 fi
1109
1110 case $srcdir in
1111 .) # No --srcdir option. We are building in place.
1112 ac_srcdir=.
1113 if test -z "$ac_top_builddir"; then
1114 ac_top_srcdir=.
1115 else
1116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1117 fi ;;
1118 [\\/]* | ?:[\\/]* ) # Absolute path.
1119 ac_srcdir=$srcdir$ac_dir_suffix;
1120 ac_top_srcdir=$srcdir ;;
1121 *) # Relative path.
1122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1124 esac
1125
1126 # Do not use `cd foo && pwd` to compute absolute paths, because
1127 # the directories may not exist.
1128 case `pwd` in
1129 .) ac_abs_builddir="$ac_dir";;
1130 *)
1131 case "$ac_dir" in
1132 .) ac_abs_builddir=`pwd`;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1135 esac;;
1136 esac
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1139 *)
1140 case ${ac_top_builddir}. in
1141 .) ac_abs_top_builddir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1144 esac;;
1145 esac
1146 case $ac_abs_builddir in
1147 .) ac_abs_srcdir=$ac_srcdir;;
1148 *)
1149 case $ac_srcdir in
1150 .) ac_abs_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1153 esac;;
1154 esac
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1157 *)
1158 case $ac_top_srcdir in
1159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1162 esac;;
1163 esac
1164
1165 cd $ac_dir
1166 # Check for guested configure; otherwise get Cygnus style configure.
1167 if test -f $ac_srcdir/configure.gnu; then
1168 echo
1169 $SHELL $ac_srcdir/configure.gnu --help=recursive
1170 elif test -f $ac_srcdir/configure; then
1171 echo
1172 $SHELL $ac_srcdir/configure --help=recursive
1173 elif test -f $ac_srcdir/configure.ac ||
1174 test -f $ac_srcdir/configure.in; then
1175 echo
1176 $ac_configure --help
1177 else
1178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1179 fi
1180 cd $ac_popdir
1181 done
1182 fi
1183
1184 test -n "$ac_init_help" && exit 0
1185 if $ac_init_version; then
1186 cat <<\_ACEOF
1187 wxWidgets configure 2.5.2
1188 generated by GNU Autoconf 2.59
1189
1190 Copyright (C) 2003 Free Software Foundation, Inc.
1191 This configure script is free software; the Free Software Foundation
1192 gives unlimited permission to copy, distribute and modify it.
1193 _ACEOF
1194 exit 0
1195 fi
1196 exec 5>config.log
1197 cat >&5 <<_ACEOF
1198 This file contains any messages produced by compilers while
1199 running configure, to aid debugging if configure makes a mistake.
1200
1201 It was created by wxWidgets $as_me 2.5.2, which was
1202 generated by GNU Autoconf 2.59. Invocation command line was
1203
1204 $ $0 $@
1205
1206 _ACEOF
1207 {
1208 cat <<_ASUNAME
1209 ## --------- ##
1210 ## Platform. ##
1211 ## --------- ##
1212
1213 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1218
1219 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1221
1222 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1223 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1224 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1226 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1227 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1228 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1229
1230 _ASUNAME
1231
1232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1233 for as_dir in $PATH
1234 do
1235 IFS=$as_save_IFS
1236 test -z "$as_dir" && as_dir=.
1237 echo "PATH: $as_dir"
1238 done
1239
1240 } >&5
1241
1242 cat >&5 <<_ACEOF
1243
1244
1245 ## ----------- ##
1246 ## Core tests. ##
1247 ## ----------- ##
1248
1249 _ACEOF
1250
1251
1252 # Keep a trace of the command line.
1253 # Strip out --no-create and --no-recursion so they do not pile up.
1254 # Strip out --silent because we don't want to record it for future runs.
1255 # Also quote any args containing shell meta-characters.
1256 # Make two passes to allow for proper duplicate-argument suppression.
1257 ac_configure_args=
1258 ac_configure_args0=
1259 ac_configure_args1=
1260 ac_sep=
1261 ac_must_keep_next=false
1262 for ac_pass in 1 2
1263 do
1264 for ac_arg
1265 do
1266 case $ac_arg in
1267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 continue ;;
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1273 esac
1274 case $ac_pass in
1275 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1276 2)
1277 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278 if test $ac_must_keep_next = true; then
1279 ac_must_keep_next=false # Got value, back to normal.
1280 else
1281 case $ac_arg in
1282 *=* | --config-cache | -C | -disable-* | --disable-* \
1283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285 | -with-* | --with-* | -without-* | --without-* | --x)
1286 case "$ac_configure_args0 " in
1287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1288 esac
1289 ;;
1290 -* ) ac_must_keep_next=true ;;
1291 esac
1292 fi
1293 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294 # Get rid of the leading space.
1295 ac_sep=" "
1296 ;;
1297 esac
1298 done
1299 done
1300 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1302
1303 # When interrupted or exit'd, cleanup temporary files, and complete
1304 # config.log. We remove comments because anyway the quotes in there
1305 # would cause problems or look ugly.
1306 # WARNING: Be sure not to use single quotes in there, as some shells,
1307 # such as our DU 5.0 friend, will then `close' the trap.
1308 trap 'exit_status=$?
1309 # Save into config.log some information that might help in debugging.
1310 {
1311 echo
1312
1313 cat <<\_ASBOX
1314 ## ---------------- ##
1315 ## Cache variables. ##
1316 ## ---------------- ##
1317 _ASBOX
1318 echo
1319 # The following way of writing the cache mishandles newlines in values,
1320 {
1321 (set) 2>&1 |
1322 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1323 *ac_space=\ *)
1324 sed -n \
1325 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1327 ;;
1328 *)
1329 sed -n \
1330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331 ;;
1332 esac;
1333 }
1334 echo
1335
1336 cat <<\_ASBOX
1337 ## ----------------- ##
1338 ## Output variables. ##
1339 ## ----------------- ##
1340 _ASBOX
1341 echo
1342 for ac_var in $ac_subst_vars
1343 do
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1346 done | sort
1347 echo
1348
1349 if test -n "$ac_subst_files"; then
1350 cat <<\_ASBOX
1351 ## ------------- ##
1352 ## Output files. ##
1353 ## ------------- ##
1354 _ASBOX
1355 echo
1356 for ac_var in $ac_subst_files
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362 fi
1363
1364 if test -s confdefs.h; then
1365 cat <<\_ASBOX
1366 ## ----------- ##
1367 ## confdefs.h. ##
1368 ## ----------- ##
1369 _ASBOX
1370 echo
1371 sed "/^$/d" confdefs.h | sort
1372 echo
1373 fi
1374 test "$ac_signal" != 0 &&
1375 echo "$as_me: caught signal $ac_signal"
1376 echo "$as_me: exit $exit_status"
1377 } >&5
1378 rm -f core *.core &&
1379 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1380 exit $exit_status
1381 ' 0
1382 for ac_signal in 1 2 13 15; do
1383 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1384 done
1385 ac_signal=0
1386
1387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1388 rm -rf conftest* confdefs.h
1389 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1390 echo >confdefs.h
1391
1392 # Predefined preprocessor variables.
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_NAME "$PACKAGE_NAME"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1401 _ACEOF
1402
1403
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1406 _ACEOF
1407
1408
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_STRING "$PACKAGE_STRING"
1411 _ACEOF
1412
1413
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1416 _ACEOF
1417
1418
1419 # Let the site file select an alternate cache file if it wants to.
1420 # Prefer explicitly selected file to automatically selected ones.
1421 if test -z "$CONFIG_SITE"; then
1422 if test "x$prefix" != xNONE; then
1423 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1424 else
1425 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1426 fi
1427 fi
1428 for ac_site_file in $CONFIG_SITE; do
1429 if test -r "$ac_site_file"; then
1430 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431 echo "$as_me: loading site script $ac_site_file" >&6;}
1432 sed 's/^/| /' "$ac_site_file" >&5
1433 . "$ac_site_file"
1434 fi
1435 done
1436
1437 if test -r "$cache_file"; then
1438 # Some versions of bash will fail to source /dev/null (special
1439 # files actually), so we avoid doing that.
1440 if test -f "$cache_file"; then
1441 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442 echo "$as_me: loading cache $cache_file" >&6;}
1443 case $cache_file in
1444 [\\/]* | ?:[\\/]* ) . $cache_file;;
1445 *) . ./$cache_file;;
1446 esac
1447 fi
1448 else
1449 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450 echo "$as_me: creating cache $cache_file" >&6;}
1451 >$cache_file
1452 fi
1453
1454 # Check that the precious variables saved in the cache have kept the same
1455 # value.
1456 ac_cache_corrupted=false
1457 for ac_var in `(set) 2>&1 |
1458 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460 eval ac_new_set=\$ac_env_${ac_var}_set
1461 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462 eval ac_new_val="\$ac_env_${ac_var}_value"
1463 case $ac_old_set,$ac_new_set in
1464 set,)
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1468 ,set)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,);;
1473 *)
1474 if test "x$ac_old_val" != "x$ac_new_val"; then
1475 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1478 echo "$as_me: former value: $ac_old_val" >&2;}
1479 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1480 echo "$as_me: current value: $ac_new_val" >&2;}
1481 ac_cache_corrupted=:
1482 fi;;
1483 esac
1484 # Pass precious variables to config.status.
1485 if test "$ac_new_set" = set; then
1486 case $ac_new_val in
1487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 *) ac_arg=$ac_var=$ac_new_val ;;
1490 esac
1491 case " $ac_configure_args " in
1492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1493 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1494 esac
1495 fi
1496 done
1497 if $ac_cache_corrupted; then
1498 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502 { (exit 1); exit 1; }; }
1503 fi
1504
1505 ac_ext=c
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540 ac_aux_dir=
1541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1543 ac_aux_dir=$ac_dir
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1545 break
1546 elif test -f $ac_dir/install.sh; then
1547 ac_aux_dir=$ac_dir
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1549 break
1550 elif test -f $ac_dir/shtool; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1553 break
1554 fi
1555 done
1556 if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1560 fi
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1564
1565 # Make sure we can run config.sub.
1566 $ac_config_sub sun4 >/dev/null 2>&1 ||
1567 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1568 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571 echo "$as_me:$LINENO: checking build system type" >&5
1572 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1573 if test "${ac_cv_build+set}" = set; then
1574 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 else
1576 ac_cv_build_alias=$build_alias
1577 test -z "$ac_cv_build_alias" &&
1578 ac_cv_build_alias=`$ac_config_guess`
1579 test -z "$ac_cv_build_alias" &&
1580 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1581 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1582 { (exit 1); exit 1; }; }
1583 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1584 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1585 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588 fi
1589 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1590 echo "${ECHO_T}$ac_cv_build" >&6
1591 build=$ac_cv_build
1592 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1593 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1594 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1595
1596
1597 echo "$as_me:$LINENO: checking host system type" >&5
1598 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1599 if test "${ac_cv_host+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602 ac_cv_host_alias=$host_alias
1603 test -z "$ac_cv_host_alias" &&
1604 ac_cv_host_alias=$ac_cv_build_alias
1605 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1606 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1607 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610 fi
1611 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1612 echo "${ECHO_T}$ac_cv_host" >&6
1613 host=$ac_cv_host
1614 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1615 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1616 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1617
1618
1619 echo "$as_me:$LINENO: checking target system type" >&5
1620 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1621 if test "${ac_cv_target+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 ac_cv_target_alias=$target_alias
1625 test "x$ac_cv_target_alias" = "x" &&
1626 ac_cv_target_alias=$ac_cv_host_alias
1627 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1628 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1629 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1630 { (exit 1); exit 1; }; }
1631
1632 fi
1633 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1634 echo "${ECHO_T}$ac_cv_target" >&6
1635 target=$ac_cv_target
1636 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1637 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1638 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1639
1640
1641 # The aliases save the names the user supplied, while $host etc.
1642 # will get canonicalized.
1643 test -n "$target_alias" &&
1644 test "$program_prefix$program_suffix$program_transform_name" = \
1645 NONENONEs,x,x, &&
1646 program_prefix=${target_alias}-
1647
1648
1649
1650 WX_MAJOR_VERSION_NUMBER=2
1651 WX_MINOR_VERSION_NUMBER=5
1652 WX_RELEASE_NUMBER=2
1653 WX_SUBRELEASE_NUMBER=3
1654
1655 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1656 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1657
1658 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1659
1660 WX_CURRENT=2
1661 WX_REVISION=0
1662 WX_AGE=0
1663
1664
1665
1666 USE_UNIX=1
1667 USE_OS2=0
1668 USE_WIN32=0
1669 USE_DOS=0
1670 USE_BEOS=0
1671 USE_MAC=0
1672
1673 USE_AIX=
1674 USE_BSD= USE_DARWIN= USE_FREEBSD=
1675 USE_GNU= USE_HPUX=
1676 USE_LINUX=
1677 USE_NETBSD=
1678 USE_OPENBSD=
1679 USE_OSF= USE_SGI=
1680 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1681 USE_ULTRIX=
1682 USE_UNIXWARE=
1683
1684 USE_ALPHA=
1685
1686 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1687
1688 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1689
1690 DEFAULT_wxUSE_COCOA=0
1691 DEFAULT_wxUSE_GTK=0
1692 DEFAULT_wxUSE_MAC=0
1693 DEFAULT_wxUSE_MGL=0
1694 DEFAULT_wxUSE_MICROWIN=0
1695 DEFAULT_wxUSE_MOTIF=0
1696 DEFAULT_wxUSE_MSW=0
1697 DEFAULT_wxUSE_PM=0
1698 DEFAULT_wxUSE_X11=0
1699
1700 DEFAULT_DEFAULT_wxUSE_COCOA=0
1701 DEFAULT_DEFAULT_wxUSE_GTK=0
1702 DEFAULT_DEFAULT_wxUSE_MAC=0
1703 DEFAULT_DEFAULT_wxUSE_MGL=0
1704 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1705 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1706 DEFAULT_DEFAULT_wxUSE_MSW=0
1707 DEFAULT_DEFAULT_wxUSE_PM=0
1708 DEFAULT_DEFAULT_wxUSE_X11=0
1709
1710 PROGRAM_EXT=
1711 SO_SUFFIX=so
1712 SAMPLES_RPATH_FLAG=
1713 SAMPLES_RPATH_POSTLINK=
1714
1715 case "${host}" in
1716 *-hp-hpux* )
1717 USE_HPUX=1
1718 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1719 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1720 SO_SUFFIX=sl
1721 cat >>confdefs.h <<\_ACEOF
1722 #define __HPUX__ 1
1723 _ACEOF
1724
1725 ;;
1726 *-*-linux* )
1727 USE_LINUX=1
1728 cat >>confdefs.h <<\_ACEOF
1729 #define __LINUX__ 1
1730 _ACEOF
1731
1732 TMP=`uname -m`
1733 if test "x$TMP" = "xalpha"; then
1734 USE_ALPHA=1
1735 cat >>confdefs.h <<\_ACEOF
1736 #define __ALPHA__ 1
1737 _ACEOF
1738
1739 fi
1740 DEFAULT_DEFAULT_wxUSE_GTK=1
1741 ;;
1742 *-*-gnu* | *-*-k*bsd*-gnu )
1743 USE_GNU=1
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748 #define __ALPHA__ 1
1749 _ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-irix5* | *-*-irix6* )
1755 USE_SGI=1
1756 USE_SVR4=1
1757 cat >>confdefs.h <<\_ACEOF
1758 #define __SGI__ 1
1759 _ACEOF
1760
1761 cat >>confdefs.h <<\_ACEOF
1762 #define __SVR4__ 1
1763 _ACEOF
1764
1765 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1766 ;;
1767 *-*-solaris2* )
1768 USE_SUN=1
1769 USE_SOLARIS=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772 #define __SUN__ 1
1773 _ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776 #define __SOLARIS__ 1
1777 _ACEOF
1778
1779 cat >>confdefs.h <<\_ACEOF
1780 #define __SVR4__ 1
1781 _ACEOF
1782
1783 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1784 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1785 ;;
1786 *-*-sunos4* )
1787 USE_SUN=1
1788 USE_SUNOS=1
1789 USE_BSD=1
1790 cat >>confdefs.h <<\_ACEOF
1791 #define __SUN__ 1
1792 _ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795 #define __SUNOS__ 1
1796 _ACEOF
1797
1798 cat >>confdefs.h <<\_ACEOF
1799 #define __BSD__ 1
1800 _ACEOF
1801
1802 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1803 ;;
1804 *-*-freebsd*)
1805 USE_BSD=1
1806 USE_FREEBSD=1
1807 cat >>confdefs.h <<\_ACEOF
1808 #define __FREEBSD__ 1
1809 _ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812 #define __BSD__ 1
1813 _ACEOF
1814
1815 DEFAULT_DEFAULT_wxUSE_GTK=1
1816 ;;
1817 *-*-openbsd*)
1818 USE_BSD=1
1819 USE_OPENBSD=1
1820 cat >>confdefs.h <<\_ACEOF
1821 #define __OPENBSD__ 1
1822 _ACEOF
1823
1824 cat >>confdefs.h <<\_ACEOF
1825 #define __BSD__ 1
1826 _ACEOF
1827
1828 DEFAULT_DEFAULT_wxUSE_GTK=1
1829 ;;
1830 *-*-netbsd*)
1831 USE_BSD=1
1832 USE_NETBSD=1
1833 cat >>confdefs.h <<\_ACEOF
1834 #define __NETBSD__ 1
1835 _ACEOF
1836
1837 cat >>confdefs.h <<\_ACEOF
1838 #define __BSD__ 1
1839 _ACEOF
1840
1841 DEFAULT_DEFAULT_wxUSE_GTK=1
1842 ;;
1843 *-*-osf* )
1844 USE_ALPHA=1
1845 USE_OSF=1
1846 cat >>confdefs.h <<\_ACEOF
1847 #define __ALPHA__ 1
1848 _ACEOF
1849
1850 cat >>confdefs.h <<\_ACEOF
1851 #define __OSF__ 1
1852 _ACEOF
1853
1854 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1855 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1856 ;;
1857 *-*-dgux5* )
1858 USE_ALPHA=1
1859 USE_SVR4=1
1860 cat >>confdefs.h <<\_ACEOF
1861 #define __ALPHA__ 1
1862 _ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865 #define __SVR4__ 1
1866 _ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 ;;
1870 *-*-sysv5* )
1871 USE_SYSV=1
1872 USE_SVR4=1
1873 cat >>confdefs.h <<\_ACEOF
1874 #define __SYSV__ 1
1875 _ACEOF
1876
1877 cat >>confdefs.h <<\_ACEOF
1878 #define __SVR4__ 1
1879 _ACEOF
1880
1881 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1882 ;;
1883 *-*-aix* )
1884 USE_AIX=1
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 SO_SUFFIX=a
1888 cat >>confdefs.h <<\_ACEOF
1889 #define __AIX__ 1
1890 _ACEOF
1891
1892 cat >>confdefs.h <<\_ACEOF
1893 #define __SYSV__ 1
1894 _ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897 #define __SVR4__ 1
1898 _ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902
1903 *-*-*UnixWare*)
1904 USE_SYSV=1
1905 USE_SVR4=1
1906 USE_UNIXWARE=1
1907 cat >>confdefs.h <<\_ACEOF
1908 #define __UNIXWARE__ 1
1909 _ACEOF
1910
1911 ;;
1912
1913 *-*-cygwin* | *-*-mingw32* )
1914 SO_SUFFIX=dll
1915 PROGRAM_EXT=".exe"
1916 RESCOMP=windres
1917 DEFAULT_DEFAULT_wxUSE_MSW=1
1918 ;;
1919
1920 *-pc-msdosdjgpp )
1921 USE_UNIX=0
1922 USE_DOS=1
1923 cat >>confdefs.h <<\_ACEOF
1924 #define __DOS__ 1
1925 _ACEOF
1926
1927 PROGRAM_EXT=".exe"
1928 DEFAULT_DEFAULT_wxUSE_MGL=1
1929 LIBS="$LIBS -lstdc++"
1930 ;;
1931
1932 *-pc-os2_emx | *-pc-os2-emx )
1933 cat >>confdefs.h <<\_ACEOF
1934 #define __EMX__ 1
1935 _ACEOF
1936
1937 USE_OS2=1
1938 cat >>confdefs.h <<\_ACEOF
1939 #define __OS2__ 1
1940 _ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_PM=1
1944 CXX=gcc
1945 LDFLAGS="$LDFLAGS -Zcrtdll"
1946 ac_executable_extensions=".exe"
1947 export ac_executable_extensions
1948 ac_save_IFS="$IFS"
1949 IFS='\\'
1950 ac_TEMP_PATH=
1951 for ac_dir in $PATH; do
1952 IFS=$ac_save_IFS
1953 if test -z "$ac_TEMP_PATH"; then
1954 ac_TEMP_PATH="$ac_dir"
1955 else
1956 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1957 fi
1958 done
1959 export PATH="$ac_TEMP_PATH"
1960 unset ac_TEMP_PATH
1961 ;;
1962
1963 powerpc-*-darwin* )
1964 USE_BSD=1
1965 USE_DARWIN=1
1966 SO_SUFFIX=dylib
1967 cat >>confdefs.h <<\_ACEOF
1968 #define __BSD__ 1
1969 _ACEOF
1970
1971 cat >>confdefs.h <<\_ACEOF
1972 #define __DARWIN__ 1
1973 _ACEOF
1974
1975 cat >>confdefs.h <<\_ACEOF
1976 #define __POWERPC__ 1
1977 _ACEOF
1978
1979 cat >>confdefs.h <<\_ACEOF
1980 #define TARGET_CARBON 1
1981 _ACEOF
1982
1983 DEFAULT_DEFAULT_wxUSE_MAC=1
1984 ;;
1985
1986 *-*-beos* )
1987 USE_BEOS=1
1988 cat >>confdefs.h <<\_ACEOF
1989 #define __BEOS__ 1
1990 _ACEOF
1991
1992 ;;
1993
1994 *)
1995 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1996 echo "$as_me: error: unknown system type ${host}." >&2;}
1997 { (exit 1); exit 1; }; }
1998 esac
1999
2000
2001
2002
2003 wx_arg_cache_file="configarg.cache"
2004 echo "loading argument cache $wx_arg_cache_file"
2005 rm -f ${wx_arg_cache_file}.tmp
2006 touch ${wx_arg_cache_file}.tmp
2007 touch ${wx_arg_cache_file}
2008
2009
2010 DEBUG_CONFIGURE=0
2011 if test $DEBUG_CONFIGURE = 1; then
2012 DEFAULT_wxUSE_UNIVERSAL=no
2013 DEFAULT_wxUSE_STL=no
2014
2015 DEFAULT_wxUSE_NANOX=no
2016
2017 DEFAULT_wxUSE_THREADS=yes
2018
2019 DEFAULT_wxUSE_SHARED=yes
2020 DEFAULT_wxUSE_OPTIMISE=no
2021 DEFAULT_wxUSE_PROFILE=no
2022 DEFAULT_wxUSE_NO_DEPS=no
2023 DEFAULT_wxUSE_NO_RTTI=no
2024 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2025 DEFAULT_wxUSE_PERMISSIVE=no
2026 DEFAULT_wxUSE_DEBUG_FLAG=yes
2027 DEFAULT_wxUSE_DEBUG_INFO=yes
2028 DEFAULT_wxUSE_DEBUG_GDB=yes
2029 DEFAULT_wxUSE_MEM_TRACING=no
2030 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2031 DEFAULT_wxUSE_DMALLOC=no
2032 DEFAULT_wxUSE_APPLE_IEEE=no
2033
2034 DEFAULT_wxUSE_EXCEPTIONS=no
2035 DEFAULT_wxUSE_LOG=yes
2036 DEFAULT_wxUSE_LOGWINDOW=no
2037 DEFAULT_wxUSE_LOGGUI=no
2038 DEFAULT_wxUSE_LOGDIALOG=no
2039
2040 DEFAULT_wxUSE_GUI=yes
2041 DEFAULT_wxUSE_CONTROLS=no
2042
2043 DEFAULT_wxUSE_REGEX=no
2044 DEFAULT_wxUSE_XML=no
2045 DEFAULT_wxUSE_EXPAT=no
2046 DEFAULT_wxUSE_ZLIB=no
2047 DEFAULT_wxUSE_LIBPNG=no
2048 DEFAULT_wxUSE_LIBJPEG=no
2049 DEFAULT_wxUSE_LIBTIFF=no
2050 DEFAULT_wxUSE_LIBXPM=no
2051 DEFAULT_wxUSE_LIBMSPACK=no
2052 DEFAULT_wxUSE_LIBSDL=no
2053 DEFAULT_wxUSE_ODBC=no
2054 DEFAULT_wxUSE_OPENGL=no
2055
2056 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2057 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2058 DEFAULT_wxUSE_STD_IOSTREAM=no
2059 DEFAULT_wxUSE_CMDLINE_PARSER=no
2060 DEFAULT_wxUSE_DATETIME=no
2061 DEFAULT_wxUSE_TIMER=no
2062 DEFAULT_wxUSE_STOPWATCH=no
2063 DEFAULT_wxUSE_FILE=no
2064 DEFAULT_wxUSE_FFILE=no
2065 DEFAULT_wxUSE_TEXTBUFFER=no
2066 DEFAULT_wxUSE_TEXTFILE=no
2067 DEFAULT_wxUSE_SOUND=no
2068 DEFAULT_wxUSE_INTL=no
2069 DEFAULT_wxUSE_CONFIG=no
2070 DEFAULT_wxUSE_FONTMAP=no
2071 DEFAULT_wxUSE_STREAMS=no
2072 DEFAULT_wxUSE_SOCKETS=no
2073 DEFAULT_wxUSE_OLE=no
2074 DEFAULT_wxUSE_DATAOBJ=no
2075 DEFAULT_wxUSE_DIALUP_MANAGER=no
2076 DEFAULT_wxUSE_JOYSTICK=no
2077 DEFAULT_wxUSE_DYNLIB_CLASS=no
2078 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2079 DEFAULT_wxUSE_LONGLONG=no
2080 DEFAULT_wxUSE_GEOMETRY=no
2081
2082 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2083 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2084 DEFAULT_wxUSE_POSTSCRIPT=no
2085
2086 DEFAULT_wxUSE_CLIPBOARD=no
2087 DEFAULT_wxUSE_TOOLTIPS=no
2088 DEFAULT_wxUSE_DRAG_AND_DROP=no
2089 DEFAULT_wxUSE_DRAGIMAGE=no
2090 DEFAULT_wxUSE_SPLINES=no
2091
2092 DEFAULT_wxUSE_MDI=no
2093 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2094 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2095 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2096
2097 DEFAULT_wxUSE_RESOURCES=no
2098 DEFAULT_wxUSE_CONSTRAINTS=no
2099 DEFAULT_wxUSE_IPC=no
2100 DEFAULT_wxUSE_HELP=no
2101 DEFAULT_wxUSE_MS_HTML_HELP=no
2102 DEFAULT_wxUSE_WXHTML_HELP=no
2103 DEFAULT_wxUSE_TREELAYOUT=no
2104 DEFAULT_wxUSE_METAFILE=no
2105 DEFAULT_wxUSE_MIMETYPE=no
2106 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2107 DEFAULT_wxUSE_PROTOCOL=no
2108 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2109 DEFAULT_wxUSE_PROTOCOL_FTP=no
2110 DEFAULT_wxUSE_PROTOCOL_FILE=no
2111 DEFAULT_wxUSE_URL=no
2112
2113 DEFAULT_wxUSE_COMMONDLGS=no
2114 DEFAULT_wxUSE_CHOICEDLG=no
2115 DEFAULT_wxUSE_COLOURDLG=no
2116 DEFAULT_wxUSE_DIRDLG=no
2117 DEFAULT_wxUSE_FILEDLG=no
2118 DEFAULT_wxUSE_FINDREPLDLG=no
2119 DEFAULT_wxUSE_FONTDLG=no
2120 DEFAULT_wxUSE_MSGDLG=no
2121 DEFAULT_wxUSE_NUMBERDLG=no
2122 DEFAULT_wxUSE_TEXTDLG=no
2123 DEFAULT_wxUSE_SPLASH=no
2124 DEFAULT_wxUSE_STARTUP_TIPS=no
2125 DEFAULT_wxUSE_PROGRESSDLG=no
2126 DEFAULT_wxUSE_WIZARDDLG=no
2127
2128 DEFAULT_wxUSE_MENUS=no
2129 DEFAULT_wxUSE_MINIFRAME=no
2130 DEFAULT_wxUSE_HTML=no
2131 DEFAULT_wxUSE_WEBKIT=no
2132 DEFAULT_wxUSE_FILESYSTEM=no
2133 DEFAULT_wxUSE_FS_INET=no
2134 DEFAULT_wxUSE_FS_ZIP=no
2135 DEFAULT_wxUSE_BUSYINFO=no
2136 DEFAULT_wxUSE_ZIPSTREAM=no
2137 DEFAULT_wxUSE_VALIDATORS=no
2138
2139 DEFAULT_wxUSE_ACCEL=no
2140 DEFAULT_wxUSE_BUTTON=no
2141 DEFAULT_wxUSE_BMPBUTTON=no
2142 DEFAULT_wxUSE_CALCTRL=no
2143 DEFAULT_wxUSE_CARET=no
2144 DEFAULT_wxUSE_CHECKBOX=no
2145 DEFAULT_wxUSE_CHECKLST=no
2146 DEFAULT_wxUSE_CHOICE=no
2147 DEFAULT_wxUSE_COMBOBOX=no
2148 DEFAULT_wxUSE_DISPLAY=no
2149 DEFAULT_wxUSE_GAUGE=no
2150 DEFAULT_wxUSE_GRID=no
2151 DEFAULT_wxUSE_IMAGLIST=no
2152 DEFAULT_wxUSE_LISTBOOK=no
2153 DEFAULT_wxUSE_LISTBOX=no
2154 DEFAULT_wxUSE_LISTCTRL=no
2155 DEFAULT_wxUSE_NOTEBOOK=no
2156 DEFAULT_wxUSE_RADIOBOX=no
2157 DEFAULT_wxUSE_RADIOBTN=no
2158 DEFAULT_wxUSE_SASH=no
2159 DEFAULT_wxUSE_SCROLLBAR=no
2160 DEFAULT_wxUSE_SLIDER=no
2161 DEFAULT_wxUSE_SPINBTN=no
2162 DEFAULT_wxUSE_SPINCTRL=no
2163 DEFAULT_wxUSE_SPLITTER=no
2164 DEFAULT_wxUSE_STATBMP=no
2165 DEFAULT_wxUSE_STATBOX=no
2166 DEFAULT_wxUSE_STATLINE=no
2167 DEFAULT_wxUSE_STATTEXT=no
2168 DEFAULT_wxUSE_STATUSBAR=yes
2169 DEFAULT_wxUSE_TABDIALOG=no
2170 DEFAULT_wxUSE_TEXTCTRL=no
2171 DEFAULT_wxUSE_TOGGLEBTN=no
2172 DEFAULT_wxUSE_TOOLBAR=no
2173 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2174 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2175 DEFAULT_wxUSE_TREECTRL=no
2176 DEFAULT_wxUSE_POPUPWIN=no
2177 DEFAULT_wxUSE_TIPWINDOW=no
2178
2179 DEFAULT_wxUSE_UNICODE=no
2180 DEFAULT_wxUSE_UNICODE_MSLU=no
2181 DEFAULT_wxUSE_WCSRTOMBS=no
2182
2183 DEFAULT_wxUSE_PALETTE=no
2184 DEFAULT_wxUSE_IMAGE=no
2185 DEFAULT_wxUSE_GIF=no
2186 DEFAULT_wxUSE_PCX=no
2187 DEFAULT_wxUSE_PNM=no
2188 DEFAULT_wxUSE_IFF=no
2189 DEFAULT_wxUSE_XPM=no
2190 DEFAULT_wxUSE_ICO_CUR=no
2191 DEFAULT_wxUSE_ACCESSIBILITY=no
2192
2193 DEFAULT_wxUSE_MONOLITHIC=no
2194 DEFAULT_wxUSE_PLUGINS=no
2195 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2196 else
2197 DEFAULT_wxUSE_UNIVERSAL=no
2198 DEFAULT_wxUSE_STL=no
2199
2200 DEFAULT_wxUSE_NANOX=no
2201
2202 DEFAULT_wxUSE_THREADS=yes
2203
2204 DEFAULT_wxUSE_SHARED=yes
2205 DEFAULT_wxUSE_OPTIMISE=yes
2206 DEFAULT_wxUSE_PROFILE=no
2207 DEFAULT_wxUSE_NO_DEPS=no
2208 DEFAULT_wxUSE_NO_RTTI=no
2209 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2210 DEFAULT_wxUSE_PERMISSIVE=no
2211 DEFAULT_wxUSE_DEBUG_FLAG=no
2212 DEFAULT_wxUSE_DEBUG_INFO=no
2213 DEFAULT_wxUSE_DEBUG_GDB=no
2214 DEFAULT_wxUSE_MEM_TRACING=no
2215 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2216 DEFAULT_wxUSE_DMALLOC=no
2217 DEFAULT_wxUSE_APPLE_IEEE=yes
2218
2219 DEFAULT_wxUSE_EXCEPTIONS=yes
2220 DEFAULT_wxUSE_LOG=yes
2221 DEFAULT_wxUSE_LOGWINDOW=yes
2222 DEFAULT_wxUSE_LOGGUI=yes
2223 DEFAULT_wxUSE_LOGDIALOG=yes
2224
2225 DEFAULT_wxUSE_GUI=yes
2226
2227 DEFAULT_wxUSE_REGEX=yes
2228 DEFAULT_wxUSE_XML=yes
2229 DEFAULT_wxUSE_EXPAT=yes
2230 DEFAULT_wxUSE_ZLIB=yes
2231 DEFAULT_wxUSE_LIBPNG=yes
2232 DEFAULT_wxUSE_LIBJPEG=yes
2233 DEFAULT_wxUSE_LIBTIFF=yes
2234 DEFAULT_wxUSE_LIBXPM=yes
2235 DEFAULT_wxUSE_LIBMSPACK=yes
2236 DEFAULT_wxUSE_LIBSDL=no
2237 DEFAULT_wxUSE_ODBC=no
2238 DEFAULT_wxUSE_OPENGL=no
2239
2240 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2241 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2242 DEFAULT_wxUSE_STD_IOSTREAM=no
2243 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2244 DEFAULT_wxUSE_DATETIME=yes
2245 DEFAULT_wxUSE_TIMER=yes
2246 DEFAULT_wxUSE_STOPWATCH=yes
2247 DEFAULT_wxUSE_FILE=yes
2248 DEFAULT_wxUSE_FFILE=yes
2249 DEFAULT_wxUSE_TEXTBUFFER=yes
2250 DEFAULT_wxUSE_TEXTFILE=yes
2251 DEFAULT_wxUSE_SOUND=yes
2252 DEFAULT_wxUSE_INTL=yes
2253 DEFAULT_wxUSE_CONFIG=yes
2254 DEFAULT_wxUSE_FONTMAP=yes
2255 DEFAULT_wxUSE_STREAMS=yes
2256 DEFAULT_wxUSE_SOCKETS=yes
2257 DEFAULT_wxUSE_OLE=yes
2258 DEFAULT_wxUSE_DATAOBJ=yes
2259 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2260 DEFAULT_wxUSE_JOYSTICK=yes
2261 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2262 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2263 DEFAULT_wxUSE_LONGLONG=yes
2264 DEFAULT_wxUSE_GEOMETRY=yes
2265
2266 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2267 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2268 DEFAULT_wxUSE_POSTSCRIPT=yes
2269
2270 DEFAULT_wxUSE_CLIPBOARD=yes
2271 DEFAULT_wxUSE_TOOLTIPS=yes
2272 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2273 DEFAULT_wxUSE_DRAGIMAGE=yes
2274 DEFAULT_wxUSE_SPLINES=yes
2275
2276 DEFAULT_wxUSE_MDI=yes
2277 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2278 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2279 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2280
2281 DEFAULT_wxUSE_RESOURCES=no
2282 DEFAULT_wxUSE_CONSTRAINTS=yes
2283 DEFAULT_wxUSE_IPC=yes
2284 DEFAULT_wxUSE_HELP=yes
2285 DEFAULT_wxUSE_MS_HTML_HELP=yes
2286 DEFAULT_wxUSE_WXHTML_HELP=yes
2287 DEFAULT_wxUSE_TREELAYOUT=yes
2288 DEFAULT_wxUSE_METAFILE=yes
2289 DEFAULT_wxUSE_MIMETYPE=yes
2290 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2291 DEFAULT_wxUSE_PROTOCOL=yes
2292 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2293 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2294 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2295 DEFAULT_wxUSE_URL=yes
2296
2297 DEFAULT_wxUSE_COMMONDLGS=yes
2298 DEFAULT_wxUSE_CHOICEDLG=yes
2299 DEFAULT_wxUSE_COLOURDLG=yes
2300 DEFAULT_wxUSE_DIRDLG=yes
2301 DEFAULT_wxUSE_FILEDLG=yes
2302 DEFAULT_wxUSE_FINDREPLDLG=yes
2303 DEFAULT_wxUSE_FONTDLG=yes
2304 DEFAULT_wxUSE_MSGDLG=yes
2305 DEFAULT_wxUSE_NUMBERDLG=yes
2306 DEFAULT_wxUSE_TEXTDLG=yes
2307 DEFAULT_wxUSE_SPLASH=yes
2308 DEFAULT_wxUSE_STARTUP_TIPS=yes
2309 DEFAULT_wxUSE_PROGRESSDLG=yes
2310 DEFAULT_wxUSE_WIZARDDLG=yes
2311
2312 DEFAULT_wxUSE_MENUS=yes
2313 DEFAULT_wxUSE_MINIFRAME=yes
2314 DEFAULT_wxUSE_HTML=yes
2315 DEFAULT_wxUSE_WEBKIT=yes
2316 DEFAULT_wxUSE_FILESYSTEM=yes
2317 DEFAULT_wxUSE_FS_INET=yes
2318 DEFAULT_wxUSE_FS_ZIP=yes
2319 DEFAULT_wxUSE_BUSYINFO=yes
2320 DEFAULT_wxUSE_ZIPSTREAM=yes
2321 DEFAULT_wxUSE_VALIDATORS=yes
2322
2323 DEFAULT_wxUSE_ACCEL=yes
2324 DEFAULT_wxUSE_BUTTON=yes
2325 DEFAULT_wxUSE_BMPBUTTON=yes
2326 DEFAULT_wxUSE_CALCTRL=yes
2327 DEFAULT_wxUSE_CARET=yes
2328 DEFAULT_wxUSE_CHECKBOX=yes
2329 DEFAULT_wxUSE_CHECKLST=yes
2330 DEFAULT_wxUSE_CHOICE=yes
2331 DEFAULT_wxUSE_COMBOBOX=yes
2332 DEFAULT_wxUSE_DISPLAY=yes
2333 DEFAULT_wxUSE_GAUGE=yes
2334 DEFAULT_wxUSE_GRID=yes
2335 DEFAULT_wxUSE_IMAGLIST=yes
2336 DEFAULT_wxUSE_LISTBOOK=yes
2337 DEFAULT_wxUSE_LISTBOX=yes
2338 DEFAULT_wxUSE_LISTCTRL=yes
2339 DEFAULT_wxUSE_NOTEBOOK=yes
2340 DEFAULT_wxUSE_RADIOBOX=yes
2341 DEFAULT_wxUSE_RADIOBTN=yes
2342 DEFAULT_wxUSE_SASH=yes
2343 DEFAULT_wxUSE_SCROLLBAR=yes
2344 DEFAULT_wxUSE_SLIDER=yes
2345 DEFAULT_wxUSE_SPINBTN=yes
2346 DEFAULT_wxUSE_SPINCTRL=yes
2347 DEFAULT_wxUSE_SPLITTER=yes
2348 DEFAULT_wxUSE_STATBMP=yes
2349 DEFAULT_wxUSE_STATBOX=yes
2350 DEFAULT_wxUSE_STATLINE=yes
2351 DEFAULT_wxUSE_STATTEXT=yes
2352 DEFAULT_wxUSE_STATUSBAR=yes
2353 DEFAULT_wxUSE_TABDIALOG=no
2354 DEFAULT_wxUSE_TEXTCTRL=yes
2355 DEFAULT_wxUSE_TOGGLEBTN=yes
2356 DEFAULT_wxUSE_TOOLBAR=yes
2357 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2358 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2359 DEFAULT_wxUSE_TREECTRL=yes
2360 DEFAULT_wxUSE_POPUPWIN=yes
2361 DEFAULT_wxUSE_TIPWINDOW=yes
2362
2363 DEFAULT_wxUSE_UNICODE=no
2364 DEFAULT_wxUSE_UNICODE_MSLU=yes
2365 DEFAULT_wxUSE_WCSRTOMBS=no
2366
2367 DEFAULT_wxUSE_PALETTE=yes
2368 DEFAULT_wxUSE_IMAGE=yes
2369 DEFAULT_wxUSE_GIF=yes
2370 DEFAULT_wxUSE_PCX=yes
2371 DEFAULT_wxUSE_IFF=no
2372 DEFAULT_wxUSE_PNM=yes
2373 DEFAULT_wxUSE_XPM=yes
2374 DEFAULT_wxUSE_ICO_CUR=yes
2375 DEFAULT_wxUSE_ACCESSIBILITY=no
2376
2377 DEFAULT_wxUSE_MONOLITHIC=no
2378 DEFAULT_wxUSE_PLUGINS=no
2379 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2380
2381 DEFAULT_wxUSE_GTK2=yes
2382 fi
2383
2384
2385
2386 for toolkit in `echo $ALL_TOOLKITS`; do
2387 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2388 if test "x$LINE" != "x" ; then
2389 has_toolkit_in_cache=1
2390 eval "DEFAULT_$LINE"
2391 eval "CACHE_$toolkit=1"
2392 fi
2393 done
2394
2395
2396
2397 enablestring=
2398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2399 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2400 no_cache=0
2401 # Check whether --enable-gui or --disable-gui was given.
2402 if test "${enable_gui+set}" = set; then
2403 enableval="$enable_gui"
2404
2405 if test "$enableval" = yes; then
2406 ac_cv_use_gui='wxUSE_GUI=yes'
2407 else
2408 ac_cv_use_gui='wxUSE_GUI=no'
2409 fi
2410
2411 else
2412
2413 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2414 if test "x$LINE" != x ; then
2415 eval "DEFAULT_$LINE"
2416 else
2417 no_cache=1
2418 fi
2419
2420 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2421
2422 fi;
2423
2424 eval "$ac_cv_use_gui"
2425 if test "$no_cache" != 1; then
2426 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2427 fi
2428
2429 if test "$wxUSE_GUI" = yes; then
2430 echo "$as_me:$LINENO: result: yes" >&5
2431 echo "${ECHO_T}yes" >&6
2432 else
2433 echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6
2435 fi
2436
2437
2438 enablestring=
2439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2440 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2441 no_cache=0
2442 # Check whether --enable-monolithic or --disable-monolithic was given.
2443 if test "${enable_monolithic+set}" = set; then
2444 enableval="$enable_monolithic"
2445
2446 if test "$enableval" = yes; then
2447 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2448 else
2449 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2450 fi
2451
2452 else
2453
2454 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2455 if test "x$LINE" != x ; then
2456 eval "DEFAULT_$LINE"
2457 else
2458 no_cache=1
2459 fi
2460
2461 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2462
2463 fi;
2464
2465 eval "$ac_cv_use_monolithic"
2466 if test "$no_cache" != 1; then
2467 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2468 fi
2469
2470 if test "$wxUSE_MONOLITHIC" = yes; then
2471 echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6
2473 else
2474 echo "$as_me:$LINENO: result: no" >&5
2475 echo "${ECHO_T}no" >&6
2476 fi
2477
2478
2479 enablestring=
2480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2481 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2482 no_cache=0
2483 # Check whether --enable-plugins or --disable-plugins was given.
2484 if test "${enable_plugins+set}" = set; then
2485 enableval="$enable_plugins"
2486
2487 if test "$enableval" = yes; then
2488 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2489 else
2490 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2491 fi
2492
2493 else
2494
2495 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2496 if test "x$LINE" != x ; then
2497 eval "DEFAULT_$LINE"
2498 else
2499 no_cache=1
2500 fi
2501
2502 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2503
2504 fi;
2505
2506 eval "$ac_cv_use_plugins"
2507 if test "$no_cache" != 1; then
2508 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2509 fi
2510
2511 if test "$wxUSE_PLUGINS" = yes; then
2512 echo "$as_me:$LINENO: result: yes" >&5
2513 echo "${ECHO_T}yes" >&6
2514 else
2515 echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2517 fi
2518
2519
2520 if test "$wxUSE_GUI" = "yes"; then
2521
2522
2523 enablestring=
2524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2525 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2526 no_cache=0
2527 # Check whether --enable-universal or --disable-universal was given.
2528 if test "${enable_universal+set}" = set; then
2529 enableval="$enable_universal"
2530
2531 if test "$enableval" = yes; then
2532 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2533 else
2534 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2535 fi
2536
2537 else
2538
2539 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2540 if test "x$LINE" != x ; then
2541 eval "DEFAULT_$LINE"
2542 else
2543 no_cache=1
2544 fi
2545
2546 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2547
2548 fi;
2549
2550 eval "$ac_cv_use_universal"
2551 if test "$no_cache" != 1; then
2552 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2553 fi
2554
2555 if test "$wxUSE_UNIVERSAL" = yes; then
2556 echo "$as_me:$LINENO: result: yes" >&5
2557 echo "${ECHO_T}yes" >&6
2558 else
2559 echo "$as_me:$LINENO: result: no" >&5
2560 echo "${ECHO_T}no" >&6
2561 fi
2562
2563
2564 # Check whether --with-gtk or --without-gtk was given.
2565 if test "${with_gtk+set}" = set; then
2566 withval="$with_gtk"
2567 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2568 fi;
2569
2570 # Check whether --with-motif or --without-motif was given.
2571 if test "${with_motif+set}" = set; then
2572 withval="$with_motif"
2573 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2574 fi;
2575
2576 # Check whether --with-mac or --without-mac was given.
2577 if test "${with_mac+set}" = set; then
2578 withval="$with_mac"
2579 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2580 fi;
2581
2582 # Check whether --with-cocoa or --without-cocoa was given.
2583 if test "${with_cocoa+set}" = set; then
2584 withval="$with_cocoa"
2585 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2586 fi;
2587
2588 # Check whether --with-wine or --without-wine was given.
2589 if test "${with_wine+set}" = set; then
2590 withval="$with_wine"
2591 wxUSE_WINE="$withval" CACHE_WINE=1
2592 fi;
2593
2594 # Check whether --with-msw or --without-msw was given.
2595 if test "${with_msw+set}" = set; then
2596 withval="$with_msw"
2597 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2598 fi;
2599
2600 # Check whether --with-pm or --without-pm was given.
2601 if test "${with_pm+set}" = set; then
2602 withval="$with_pm"
2603 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2604 fi;
2605
2606 # Check whether --with-mgl or --without-mgl was given.
2607 if test "${with_mgl+set}" = set; then
2608 withval="$with_mgl"
2609 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2610 fi;
2611
2612 # Check whether --with-microwin or --without-microwin was given.
2613 if test "${with_microwin+set}" = set; then
2614 withval="$with_microwin"
2615 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2616 fi;
2617
2618 # Check whether --with-x11 or --without-x11 was given.
2619 if test "${with_x11+set}" = set; then
2620 withval="$with_x11"
2621 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2622 fi;
2623
2624 enablestring=
2625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2626 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2627 no_cache=0
2628 # Check whether --enable-nanox or --disable-nanox was given.
2629 if test "${enable_nanox+set}" = set; then
2630 enableval="$enable_nanox"
2631
2632 if test "$enableval" = yes; then
2633 ac_cv_use_nanox='wxUSE_NANOX=yes'
2634 else
2635 ac_cv_use_nanox='wxUSE_NANOX=no'
2636 fi
2637
2638 else
2639
2640 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2641 if test "x$LINE" != x ; then
2642 eval "DEFAULT_$LINE"
2643 else
2644 no_cache=1
2645 fi
2646
2647 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2648
2649 fi;
2650
2651 eval "$ac_cv_use_nanox"
2652 if test "$no_cache" != 1; then
2653 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2654 fi
2655
2656 if test "$wxUSE_NANOX" = yes; then
2657 echo "$as_me:$LINENO: result: yes" >&5
2658 echo "${ECHO_T}yes" >&6
2659 else
2660 echo "$as_me:$LINENO: result: no" >&5
2661 echo "${ECHO_T}no" >&6
2662 fi
2663
2664
2665
2666 enablestring=
2667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2668 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2669 no_cache=0
2670 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2671 if test "${enable_gtk2+set}" = set; then
2672 enableval="$enable_gtk2"
2673
2674 if test "$enableval" = yes; then
2675 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2676 else
2677 ac_cv_use_gtk2='wxUSE_GTK2=no'
2678 fi
2679
2680 else
2681
2682 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2683 if test "x$LINE" != x ; then
2684 eval "DEFAULT_$LINE"
2685 else
2686 no_cache=1
2687 fi
2688
2689 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2690
2691 fi;
2692
2693 eval "$ac_cv_use_gtk2"
2694 if test "$no_cache" != 1; then
2695 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2696 fi
2697
2698 if test "$wxUSE_GTK2" = yes; then
2699 echo "$as_me:$LINENO: result: yes" >&5
2700 echo "${ECHO_T}yes" >&6
2701 else
2702 echo "$as_me:$LINENO: result: no" >&5
2703 echo "${ECHO_T}no" >&6
2704 fi
2705
2706
2707 enablestring=
2708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2709 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2710 no_cache=0
2711 # Check whether --enable-gpe or --disable-gpe was given.
2712 if test "${enable_gpe+set}" = set; then
2713 enableval="$enable_gpe"
2714
2715 if test "$enableval" = yes; then
2716 ac_cv_use_gpe='wxUSE_GPE=yes'
2717 else
2718 ac_cv_use_gpe='wxUSE_GPE=no'
2719 fi
2720
2721 else
2722
2723 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2724 if test "x$LINE" != x ; then
2725 eval "DEFAULT_$LINE"
2726 else
2727 no_cache=1
2728 fi
2729
2730 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2731
2732 fi;
2733
2734 eval "$ac_cv_use_gpe"
2735 if test "$no_cache" != 1; then
2736 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2737 fi
2738
2739 if test "$wxUSE_GPE" = yes; then
2740 echo "$as_me:$LINENO: result: yes" >&5
2741 echo "${ECHO_T}yes" >&6
2742 else
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2745 fi
2746
2747
2748
2749 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2750 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2751 no_cache=0
2752
2753 # Check whether --with-libpng or --without-libpng was given.
2754 if test "${with_libpng+set}" = set; then
2755 withval="$with_libpng"
2756
2757 if test "$withval" = yes; then
2758 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2759 elif test "$withval" = no; then
2760 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2761 elif test "$withval" = sys; then
2762 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2763 elif test "$withval" = builtin; then
2764 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2765 else
2766 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2767 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770
2771 else
2772
2773 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2774 if test "x$LINE" != x ; then
2775 eval "DEFAULT_$LINE"
2776 else
2777 no_cache=1
2778 fi
2779
2780 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2781
2782 fi;
2783
2784 eval "$ac_cv_use_libpng"
2785 if test "$no_cache" != 1; then
2786 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2787 fi
2788
2789 if test "$wxUSE_LIBPNG" = yes; then
2790 echo "$as_me:$LINENO: result: yes" >&5
2791 echo "${ECHO_T}yes" >&6
2792 elif test "$wxUSE_LIBPNG" = no; then
2793 echo "$as_me:$LINENO: result: no" >&5
2794 echo "${ECHO_T}no" >&6
2795 elif test "$wxUSE_LIBPNG" = sys; then
2796 echo "$as_me:$LINENO: result: system version" >&5
2797 echo "${ECHO_T}system version" >&6
2798 elif test "$wxUSE_LIBPNG" = builtin; then
2799 echo "$as_me:$LINENO: result: builtin version" >&5
2800 echo "${ECHO_T}builtin version" >&6
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807
2808 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2809 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2810 no_cache=0
2811
2812 # Check whether --with-libjpeg or --without-libjpeg was given.
2813 if test "${with_libjpeg+set}" = set; then
2814 withval="$with_libjpeg"
2815
2816 if test "$withval" = yes; then
2817 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2818 elif test "$withval" = no; then
2819 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2820 elif test "$withval" = sys; then
2821 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2822 elif test "$withval" = builtin; then
2823 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2824 else
2825 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2826 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2827 { (exit 1); exit 1; }; }
2828 fi
2829
2830 else
2831
2832 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2833 if test "x$LINE" != x ; then
2834 eval "DEFAULT_$LINE"
2835 else
2836 no_cache=1
2837 fi
2838
2839 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2840
2841 fi;
2842
2843 eval "$ac_cv_use_libjpeg"
2844 if test "$no_cache" != 1; then
2845 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2846 fi
2847
2848 if test "$wxUSE_LIBJPEG" = yes; then
2849 echo "$as_me:$LINENO: result: yes" >&5
2850 echo "${ECHO_T}yes" >&6
2851 elif test "$wxUSE_LIBJPEG" = no; then
2852 echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6
2854 elif test "$wxUSE_LIBJPEG" = sys; then
2855 echo "$as_me:$LINENO: result: system version" >&5
2856 echo "${ECHO_T}system version" >&6
2857 elif test "$wxUSE_LIBJPEG" = builtin; then
2858 echo "$as_me:$LINENO: result: builtin version" >&5
2859 echo "${ECHO_T}builtin version" >&6
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866
2867 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2868 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2869 no_cache=0
2870
2871 # Check whether --with-libtiff or --without-libtiff was given.
2872 if test "${with_libtiff+set}" = set; then
2873 withval="$with_libtiff"
2874
2875 if test "$withval" = yes; then
2876 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2877 elif test "$withval" = no; then
2878 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2879 elif test "$withval" = sys; then
2880 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2881 elif test "$withval" = builtin; then
2882 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2883 else
2884 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2885 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2886 { (exit 1); exit 1; }; }
2887 fi
2888
2889 else
2890
2891 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2892 if test "x$LINE" != x ; then
2893 eval "DEFAULT_$LINE"
2894 else
2895 no_cache=1
2896 fi
2897
2898 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2899
2900 fi;
2901
2902 eval "$ac_cv_use_libtiff"
2903 if test "$no_cache" != 1; then
2904 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2905 fi
2906
2907 if test "$wxUSE_LIBTIFF" = yes; then
2908 echo "$as_me:$LINENO: result: yes" >&5
2909 echo "${ECHO_T}yes" >&6
2910 elif test "$wxUSE_LIBTIFF" = no; then
2911 echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2913 elif test "$wxUSE_LIBTIFF" = sys; then
2914 echo "$as_me:$LINENO: result: system version" >&5
2915 echo "${ECHO_T}system version" >&6
2916 elif test "$wxUSE_LIBTIFF" = builtin; then
2917 echo "$as_me:$LINENO: result: builtin version" >&5
2918 echo "${ECHO_T}builtin version" >&6
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925
2926 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2927 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2928 no_cache=0
2929
2930 # Check whether --with-libxpm or --without-libxpm was given.
2931 if test "${with_libxpm+set}" = set; then
2932 withval="$with_libxpm"
2933
2934 if test "$withval" = yes; then
2935 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2936 elif test "$withval" = no; then
2937 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2938 elif test "$withval" = sys; then
2939 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2940 elif test "$withval" = builtin; then
2941 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2942 else
2943 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2944 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2945 { (exit 1); exit 1; }; }
2946 fi
2947
2948 else
2949
2950 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2951 if test "x$LINE" != x ; then
2952 eval "DEFAULT_$LINE"
2953 else
2954 no_cache=1
2955 fi
2956
2957 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2958
2959 fi;
2960
2961 eval "$ac_cv_use_libxpm"
2962 if test "$no_cache" != 1; then
2963 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2964 fi
2965
2966 if test "$wxUSE_LIBXPM" = yes; then
2967 echo "$as_me:$LINENO: result: yes" >&5
2968 echo "${ECHO_T}yes" >&6
2969 elif test "$wxUSE_LIBXPM" = no; then
2970 echo "$as_me:$LINENO: result: no" >&5
2971 echo "${ECHO_T}no" >&6
2972 elif test "$wxUSE_LIBXPM" = sys; then
2973 echo "$as_me:$LINENO: result: system version" >&5
2974 echo "${ECHO_T}system version" >&6
2975 elif test "$wxUSE_LIBXPM" = builtin; then
2976 echo "$as_me:$LINENO: result: builtin version" >&5
2977 echo "${ECHO_T}builtin version" >&6
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984
2985 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2986 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2987 no_cache=0
2988
2989 # Check whether --with-libmspack or --without-libmspack was given.
2990 if test "${with_libmspack+set}" = set; then
2991 withval="$with_libmspack"
2992
2993 if test "$withval" = yes; then
2994 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2995 else
2996 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2997 fi
2998
2999 else
3000
3001 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3002 if test "x$LINE" != x ; then
3003 eval "DEFAULT_$LINE"
3004 else
3005 no_cache=1
3006 fi
3007
3008 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3009
3010 fi;
3011
3012 eval "$ac_cv_use_libmspack"
3013 if test "$no_cache" != 1; then
3014 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3015 fi
3016
3017 if test "$wxUSE_LIBMSPACK" = yes; then
3018 echo "$as_me:$LINENO: result: yes" >&5
3019 echo "${ECHO_T}yes" >&6
3020 else
3021 echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6
3023 fi
3024
3025
3026 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3027 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3028 no_cache=0
3029
3030 # Check whether --with-sdl or --without-sdl was given.
3031 if test "${with_sdl+set}" = set; then
3032 withval="$with_sdl"
3033
3034 if test "$withval" = yes; then
3035 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3036 else
3037 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3038 fi
3039
3040 else
3041
3042 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3043 if test "x$LINE" != x ; then
3044 eval "DEFAULT_$LINE"
3045 else
3046 no_cache=1
3047 fi
3048
3049 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3050
3051 fi;
3052
3053 eval "$ac_cv_use_sdl"
3054 if test "$no_cache" != 1; then
3055 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3056 fi
3057
3058 if test "$wxUSE_LIBSDL" = yes; then
3059 echo "$as_me:$LINENO: result: yes" >&5
3060 echo "${ECHO_T}yes" >&6
3061 else
3062 echo "$as_me:$LINENO: result: no" >&5
3063 echo "${ECHO_T}no" >&6
3064 fi
3065
3066
3067 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3068 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3069 no_cache=0
3070
3071 # Check whether --with-opengl or --without-opengl was given.
3072 if test "${with_opengl+set}" = set; then
3073 withval="$with_opengl"
3074
3075 if test "$withval" = yes; then
3076 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3077 else
3078 ac_cv_use_opengl='wxUSE_OPENGL=no'
3079 fi
3080
3081 else
3082
3083 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3084 if test "x$LINE" != x ; then
3085 eval "DEFAULT_$LINE"
3086 else
3087 no_cache=1
3088 fi
3089
3090 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3091
3092 fi;
3093
3094 eval "$ac_cv_use_opengl"
3095 if test "$no_cache" != 1; then
3096 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3097 fi
3098
3099 if test "$wxUSE_OPENGL" = yes; then
3100 echo "$as_me:$LINENO: result: yes" >&5
3101 echo "${ECHO_T}yes" >&6
3102 else
3103 echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6
3105 fi
3106
3107
3108 fi
3109
3110
3111 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3112 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3113 no_cache=0
3114
3115 # Check whether --with-dmalloc or --without-dmalloc was given.
3116 if test "${with_dmalloc+set}" = set; then
3117 withval="$with_dmalloc"
3118
3119 if test "$withval" = yes; then
3120 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3121 else
3122 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3123 fi
3124
3125 else
3126
3127 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3128 if test "x$LINE" != x ; then
3129 eval "DEFAULT_$LINE"
3130 else
3131 no_cache=1
3132 fi
3133
3134 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3135
3136 fi;
3137
3138 eval "$ac_cv_use_dmalloc"
3139 if test "$no_cache" != 1; then
3140 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3141 fi
3142
3143 if test "$wxUSE_DMALLOC" = yes; then
3144 echo "$as_me:$LINENO: result: yes" >&5
3145 echo "${ECHO_T}yes" >&6
3146 else
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3149 fi
3150
3151
3152 echo "$as_me:$LINENO: checking for --with-regex" >&5
3153 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3154 no_cache=0
3155
3156 # Check whether --with-regex or --without-regex was given.
3157 if test "${with_regex+set}" = set; then
3158 withval="$with_regex"
3159
3160 if test "$withval" = yes; then
3161 ac_cv_use_regex='wxUSE_REGEX=yes'
3162 elif test "$withval" = no; then
3163 ac_cv_use_regex='wxUSE_REGEX=no'
3164 elif test "$withval" = sys; then
3165 ac_cv_use_regex='wxUSE_REGEX=sys'
3166 elif test "$withval" = builtin; then
3167 ac_cv_use_regex='wxUSE_REGEX=builtin'
3168 else
3169 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3170 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3171 { (exit 1); exit 1; }; }
3172 fi
3173
3174 else
3175
3176 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3184
3185 fi;
3186
3187 eval "$ac_cv_use_regex"
3188 if test "$no_cache" != 1; then
3189 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3190 fi
3191
3192 if test "$wxUSE_REGEX" = yes; then
3193 echo "$as_me:$LINENO: result: yes" >&5
3194 echo "${ECHO_T}yes" >&6
3195 elif test "$wxUSE_REGEX" = no; then
3196 echo "$as_me:$LINENO: result: no" >&5
3197 echo "${ECHO_T}no" >&6
3198 elif test "$wxUSE_REGEX" = sys; then
3199 echo "$as_me:$LINENO: result: system version" >&5
3200 echo "${ECHO_T}system version" >&6
3201 elif test "$wxUSE_REGEX" = builtin; then
3202 echo "$as_me:$LINENO: result: builtin version" >&5
3203 echo "${ECHO_T}builtin version" >&6
3204 else
3205 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3206 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3207 { (exit 1); exit 1; }; }
3208 fi
3209
3210
3211 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3212 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3213 no_cache=0
3214
3215 # Check whether --with-zlib or --without-zlib was given.
3216 if test "${with_zlib+set}" = set; then
3217 withval="$with_zlib"
3218
3219 if test "$withval" = yes; then
3220 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3221 elif test "$withval" = no; then
3222 ac_cv_use_zlib='wxUSE_ZLIB=no'
3223 elif test "$withval" = sys; then
3224 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3225 elif test "$withval" = builtin; then
3226 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3227 else
3228 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3229 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3230 { (exit 1); exit 1; }; }
3231 fi
3232
3233 else
3234
3235 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3236 if test "x$LINE" != x ; then
3237 eval "DEFAULT_$LINE"
3238 else
3239 no_cache=1
3240 fi
3241
3242 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3243
3244 fi;
3245
3246 eval "$ac_cv_use_zlib"
3247 if test "$no_cache" != 1; then
3248 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3249 fi
3250
3251 if test "$wxUSE_ZLIB" = yes; then
3252 echo "$as_me:$LINENO: result: yes" >&5
3253 echo "${ECHO_T}yes" >&6
3254 elif test "$wxUSE_ZLIB" = no; then
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3257 elif test "$wxUSE_ZLIB" = sys; then
3258 echo "$as_me:$LINENO: result: system version" >&5
3259 echo "${ECHO_T}system version" >&6
3260 elif test "$wxUSE_ZLIB" = builtin; then
3261 echo "$as_me:$LINENO: result: builtin version" >&5
3262 echo "${ECHO_T}builtin version" >&6
3263 else
3264 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3265 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3266 { (exit 1); exit 1; }; }
3267 fi
3268
3269
3270 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3271 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3272 no_cache=0
3273
3274 # Check whether --with-odbc or --without-odbc was given.
3275 if test "${with_odbc+set}" = set; then
3276 withval="$with_odbc"
3277
3278 if test "$withval" = yes; then
3279 ac_cv_use_odbc='wxUSE_ODBC=yes'
3280 elif test "$withval" = no; then
3281 ac_cv_use_odbc='wxUSE_ODBC=no'
3282 elif test "$withval" = sys; then
3283 ac_cv_use_odbc='wxUSE_ODBC=sys'
3284 elif test "$withval" = builtin; then
3285 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3286 else
3287 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3288 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3289 { (exit 1); exit 1; }; }
3290 fi
3291
3292 else
3293
3294 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3302
3303 fi;
3304
3305 eval "$ac_cv_use_odbc"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_ODBC" = yes; then
3311 echo "$as_me:$LINENO: result: yes" >&5
3312 echo "${ECHO_T}yes" >&6
3313 elif test "$wxUSE_ODBC" = no; then
3314 echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6
3316 elif test "$wxUSE_ODBC" = sys; then
3317 echo "$as_me:$LINENO: result: system version" >&5
3318 echo "${ECHO_T}system version" >&6
3319 elif test "$wxUSE_ODBC" = builtin; then
3320 echo "$as_me:$LINENO: result: builtin version" >&5
3321 echo "${ECHO_T}builtin version" >&6
3322 else
3323 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3324 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3325 { (exit 1); exit 1; }; }
3326 fi
3327
3328
3329 echo "$as_me:$LINENO: checking for --with-expat" >&5
3330 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3331 no_cache=0
3332
3333 # Check whether --with-expat or --without-expat was given.
3334 if test "${with_expat+set}" = set; then
3335 withval="$with_expat"
3336
3337 if test "$withval" = yes; then
3338 ac_cv_use_expat='wxUSE_EXPAT=yes'
3339 elif test "$withval" = no; then
3340 ac_cv_use_expat='wxUSE_EXPAT=no'
3341 elif test "$withval" = sys; then
3342 ac_cv_use_expat='wxUSE_EXPAT=sys'
3343 elif test "$withval" = builtin; then
3344 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3345 else
3346 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3347 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350
3351 else
3352
3353 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3354 if test "x$LINE" != x ; then
3355 eval "DEFAULT_$LINE"
3356 else
3357 no_cache=1
3358 fi
3359
3360 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3361
3362 fi;
3363
3364 eval "$ac_cv_use_expat"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_EXPAT" = yes; then
3370 echo "$as_me:$LINENO: result: yes" >&5
3371 echo "${ECHO_T}yes" >&6
3372 elif test "$wxUSE_EXPAT" = no; then
3373 echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6
3375 elif test "$wxUSE_EXPAT" = sys; then
3376 echo "$as_me:$LINENO: result: system version" >&5
3377 echo "${ECHO_T}system version" >&6
3378 elif test "$wxUSE_EXPAT" = builtin; then
3379 echo "$as_me:$LINENO: result: builtin version" >&5
3380 echo "${ECHO_T}builtin version" >&6
3381 else
3382 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3383 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3384 { (exit 1); exit 1; }; }
3385 fi
3386
3387
3388
3389
3390 enablestring=
3391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3392 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3393 no_cache=0
3394 # Check whether --enable-shared or --disable-shared was given.
3395 if test "${enable_shared+set}" = set; then
3396 enableval="$enable_shared"
3397
3398 if test "$enableval" = yes; then
3399 ac_cv_use_shared='wxUSE_SHARED=yes'
3400 else
3401 ac_cv_use_shared='wxUSE_SHARED=no'
3402 fi
3403
3404 else
3405
3406 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3407 if test "x$LINE" != x ; then
3408 eval "DEFAULT_$LINE"
3409 else
3410 no_cache=1
3411 fi
3412
3413 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3414
3415 fi;
3416
3417 eval "$ac_cv_use_shared"
3418 if test "$no_cache" != 1; then
3419 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3420 fi
3421
3422 if test "$wxUSE_SHARED" = yes; then
3423 echo "$as_me:$LINENO: result: yes" >&5
3424 echo "${ECHO_T}yes" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3428 fi
3429
3430
3431 enablestring=
3432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3433 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3434 no_cache=0
3435 # Check whether --enable-optimise or --disable-optimise was given.
3436 if test "${enable_optimise+set}" = set; then
3437 enableval="$enable_optimise"
3438
3439 if test "$enableval" = yes; then
3440 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3441 else
3442 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3443 fi
3444
3445 else
3446
3447 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3455
3456 fi;
3457
3458 eval "$ac_cv_use_optimise"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_OPTIMISE" = yes; then
3464 echo "$as_me:$LINENO: result: yes" >&5
3465 echo "${ECHO_T}yes" >&6
3466 else
3467 echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6
3469 fi
3470
3471
3472 enablestring=
3473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3474 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3475 no_cache=0
3476 # Check whether --enable-debug or --disable-debug was given.
3477 if test "${enable_debug+set}" = set; then
3478 enableval="$enable_debug"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_debug='wxUSE_DEBUG=yes'
3482 else
3483 ac_cv_use_debug='wxUSE_DEBUG=no'
3484 fi
3485
3486 else
3487
3488 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3496
3497 fi;
3498
3499 eval "$ac_cv_use_debug"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_DEBUG" = yes; then
3505 echo "$as_me:$LINENO: result: yes" >&5
3506 echo "${ECHO_T}yes" >&6
3507 else
3508 echo "$as_me:$LINENO: result: no" >&5
3509 echo "${ECHO_T}no" >&6
3510 fi
3511
3512
3513 enablestring=
3514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3515 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3516 no_cache=0
3517 # Check whether --enable-stl or --disable-stl was given.
3518 if test "${enable_stl+set}" = set; then
3519 enableval="$enable_stl"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_stl='wxUSE_STL=yes'
3523 else
3524 ac_cv_use_stl='wxUSE_STL=no'
3525 fi
3526
3527 else
3528
3529 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3537
3538 fi;
3539
3540 eval "$ac_cv_use_stl"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_STL" = yes; then
3546 echo "$as_me:$LINENO: result: yes" >&5
3547 echo "${ECHO_T}yes" >&6
3548 else
3549 echo "$as_me:$LINENO: result: no" >&5
3550 echo "${ECHO_T}no" >&6
3551 fi
3552
3553 if test "$USE_OS2" = "1"; then
3554
3555 enablestring=
3556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3557 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3558 no_cache=0
3559 # Check whether --enable-omf or --disable-omf was given.
3560 if test "${enable_omf+set}" = set; then
3561 enableval="$enable_omf"
3562
3563 if test "$enableval" = yes; then
3564 ac_cv_use_omf='wxUSE_OMF=yes'
3565 else
3566 ac_cv_use_omf='wxUSE_OMF=no'
3567 fi
3568
3569 else
3570
3571 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3572 if test "x$LINE" != x ; then
3573 eval "DEFAULT_$LINE"
3574 else
3575 no_cache=1
3576 fi
3577
3578 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3579
3580 fi;
3581
3582 eval "$ac_cv_use_omf"
3583 if test "$no_cache" != 1; then
3584 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3585 fi
3586
3587 if test "$wxUSE_OMF" = yes; then
3588 echo "$as_me:$LINENO: result: yes" >&5
3589 echo "${ECHO_T}yes" >&6
3590 else
3591 echo "$as_me:$LINENO: result: no" >&5
3592 echo "${ECHO_T}no" >&6
3593 fi
3594
3595 fi
3596
3597 if test "$wxUSE_DEBUG" = "yes"; then
3598 DEFAULT_wxUSE_DEBUG_FLAG=yes
3599 DEFAULT_wxUSE_DEBUG_INFO=yes
3600 BUILD=debug
3601 elif test "$wxUSE_DEBUG" = "no"; then
3602 DEFAULT_wxUSE_DEBUG_FLAG=no
3603 DEFAULT_wxUSE_DEBUG_INFO=no
3604 BUILD=release
3605 fi
3606
3607
3608 enablestring=
3609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3610 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3611 no_cache=0
3612 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3613 if test "${enable_debug_flag+set}" = set; then
3614 enableval="$enable_debug_flag"
3615
3616 if test "$enableval" = yes; then
3617 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3618 else
3619 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3620 fi
3621
3622 else
3623
3624 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3632
3633 fi;
3634
3635 eval "$ac_cv_use_debug_flag"
3636 if test "$no_cache" != 1; then
3637 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3638 fi
3639
3640 if test "$wxUSE_DEBUG_FLAG" = yes; then
3641 echo "$as_me:$LINENO: result: yes" >&5
3642 echo "${ECHO_T}yes" >&6
3643 else
3644 echo "$as_me:$LINENO: result: no" >&5
3645 echo "${ECHO_T}no" >&6
3646 fi
3647
3648
3649 enablestring=
3650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3651 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3652 no_cache=0
3653 # Check whether --enable-debug_info or --disable-debug_info was given.
3654 if test "${enable_debug_info+set}" = set; then
3655 enableval="$enable_debug_info"
3656
3657 if test "$enableval" = yes; then
3658 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3659 else
3660 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3661 fi
3662
3663 else
3664
3665 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3666 if test "x$LINE" != x ; then
3667 eval "DEFAULT_$LINE"
3668 else
3669 no_cache=1
3670 fi
3671
3672 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3673
3674 fi;
3675
3676 eval "$ac_cv_use_debug_info"
3677 if test "$no_cache" != 1; then
3678 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3679 fi
3680
3681 if test "$wxUSE_DEBUG_INFO" = yes; then
3682 echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6
3684 else
3685 echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3687 fi
3688
3689
3690 enablestring=
3691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3692 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3693 no_cache=0
3694 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3695 if test "${enable_debug_gdb+set}" = set; then
3696 enableval="$enable_debug_gdb"
3697
3698 if test "$enableval" = yes; then
3699 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3700 else
3701 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3702 fi
3703
3704 else
3705
3706 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3707 if test "x$LINE" != x ; then
3708 eval "DEFAULT_$LINE"
3709 else
3710 no_cache=1
3711 fi
3712
3713 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3714
3715 fi;
3716
3717 eval "$ac_cv_use_debug_gdb"
3718 if test "$no_cache" != 1; then
3719 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3720 fi
3721
3722 if test "$wxUSE_DEBUG_GDB" = yes; then
3723 echo "$as_me:$LINENO: result: yes" >&5
3724 echo "${ECHO_T}yes" >&6
3725 else
3726 echo "$as_me:$LINENO: result: no" >&5
3727 echo "${ECHO_T}no" >&6
3728 fi
3729
3730
3731 enablestring=
3732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3733 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3734 no_cache=0
3735 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3736 if test "${enable_debug_cntxt+set}" = set; then
3737 enableval="$enable_debug_cntxt"
3738
3739 if test "$enableval" = yes; then
3740 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3741 else
3742 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3743 fi
3744
3745 else
3746
3747 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3748 if test "x$LINE" != x ; then
3749 eval "DEFAULT_$LINE"
3750 else
3751 no_cache=1
3752 fi
3753
3754 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3755
3756 fi;
3757
3758 eval "$ac_cv_use_debug_cntxt"
3759 if test "$no_cache" != 1; then
3760 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3761 fi
3762
3763 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3766 else
3767 echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6
3769 fi
3770
3771
3772 enablestring=
3773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3774 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3775 no_cache=0
3776 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3777 if test "${enable_mem_tracing+set}" = set; then
3778 enableval="$enable_mem_tracing"
3779
3780 if test "$enableval" = yes; then
3781 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3782 else
3783 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3784 fi
3785
3786 else
3787
3788 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3789 if test "x$LINE" != x ; then
3790 eval "DEFAULT_$LINE"
3791 else
3792 no_cache=1
3793 fi
3794
3795 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3796
3797 fi;
3798
3799 eval "$ac_cv_use_mem_tracing"
3800 if test "$no_cache" != 1; then
3801 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3802 fi
3803
3804 if test "$wxUSE_MEM_TRACING" = yes; then
3805 echo "$as_me:$LINENO: result: yes" >&5
3806 echo "${ECHO_T}yes" >&6
3807 else
3808 echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6
3810 fi
3811
3812
3813 enablestring=
3814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3815 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3816 no_cache=0
3817 # Check whether --enable-profile or --disable-profile was given.
3818 if test "${enable_profile+set}" = set; then
3819 enableval="$enable_profile"
3820
3821 if test "$enableval" = yes; then
3822 ac_cv_use_profile='wxUSE_PROFILE=yes'
3823 else
3824 ac_cv_use_profile='wxUSE_PROFILE=no'
3825 fi
3826
3827 else
3828
3829 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3830 if test "x$LINE" != x ; then
3831 eval "DEFAULT_$LINE"
3832 else
3833 no_cache=1
3834 fi
3835
3836 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3837
3838 fi;
3839
3840 eval "$ac_cv_use_profile"
3841 if test "$no_cache" != 1; then
3842 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3843 fi
3844
3845 if test "$wxUSE_PROFILE" = yes; then
3846 echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6
3848 else
3849 echo "$as_me:$LINENO: result: no" >&5
3850 echo "${ECHO_T}no" >&6
3851 fi
3852
3853
3854 enablestring=
3855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3856 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3857 no_cache=0
3858 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3859 if test "${enable_no_rtti+set}" = set; then
3860 enableval="$enable_no_rtti"
3861
3862 if test "$enableval" = yes; then
3863 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3864 else
3865 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3866 fi
3867
3868 else
3869
3870 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3871 if test "x$LINE" != x ; then
3872 eval "DEFAULT_$LINE"
3873 else
3874 no_cache=1
3875 fi
3876
3877 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3878
3879 fi;
3880
3881 eval "$ac_cv_use_no_rtti"
3882 if test "$no_cache" != 1; then
3883 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3884 fi
3885
3886 if test "$wxUSE_NO_RTTI" = yes; then
3887 echo "$as_me:$LINENO: result: yes" >&5
3888 echo "${ECHO_T}yes" >&6
3889 else
3890 echo "$as_me:$LINENO: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3892 fi
3893
3894
3895 enablestring=
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3897 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3898 no_cache=0
3899 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3900 if test "${enable_no_exceptions+set}" = set; then
3901 enableval="$enable_no_exceptions"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3905 else
3906 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3907 fi
3908
3909 else
3910
3911 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3919
3920 fi;
3921
3922 eval "$ac_cv_use_no_exceptions"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$wxUSE_NO_EXCEPTIONS" = 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=
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3938 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3939 no_cache=0
3940 # Check whether --enable-permissive or --disable-permissive was given.
3941 if test "${enable_permissive+set}" = set; then
3942 enableval="$enable_permissive"
3943
3944 if test "$enableval" = yes; then
3945 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3946 else
3947 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3948 fi
3949
3950 else
3951
3952 LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3960
3961 fi;
3962
3963 eval "$ac_cv_use_permissive"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$wxUSE_PERMISSIVE" = 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 enablestring=
3978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3979 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3980 no_cache=0
3981 # Check whether --enable-no_deps or --disable-no_deps was given.
3982 if test "${enable_no_deps+set}" = set; then
3983 enableval="$enable_no_deps"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3987 else
3988 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3989 fi
3990
3991 else
3992
3993 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4001
4002 fi;
4003
4004 eval "$ac_cv_use_no_deps"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_NO_DEPS" = yes; then
4010 echo "$as_me:$LINENO: result: yes" >&5
4011 echo "${ECHO_T}yes" >&6
4012 else
4013 echo "$as_me:$LINENO: result: no" >&5
4014 echo "${ECHO_T}no" >&6
4015 fi
4016
4017
4018
4019 enablestring=
4020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4021 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4022 no_cache=0
4023 # Check whether --enable-compat22 or --disable-compat22 was given.
4024 if test "${enable_compat22+set}" = set; then
4025 enableval="$enable_compat22"
4026
4027 if test "$enableval" = yes; then
4028 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4029 else
4030 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4031 fi
4032
4033 else
4034
4035 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4043
4044 fi;
4045
4046 eval "$ac_cv_use_compat22"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4052 echo "$as_me:$LINENO: result: yes" >&5
4053 echo "${ECHO_T}yes" >&6
4054 else
4055 echo "$as_me:$LINENO: result: no" >&5
4056 echo "${ECHO_T}no" >&6
4057 fi
4058
4059
4060 enablestring=disable
4061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4062 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4063 no_cache=0
4064 # Check whether --enable-compat24 or --disable-compat24 was given.
4065 if test "${enable_compat24+set}" = set; then
4066 enableval="$enable_compat24"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4070 else
4071 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4072 fi
4073
4074 else
4075
4076 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4084
4085 fi;
4086
4087 eval "$ac_cv_use_compat24"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4093 echo "$as_me:$LINENO: result: yes" >&5
4094 echo "${ECHO_T}yes" >&6
4095 else
4096 echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101 # Check whether --enable-rpath or --disable-rpath was given.
4102 if test "${enable_rpath+set}" = set; then
4103 enableval="$enable_rpath"
4104 wxRPATH_DIR="$enableval"
4105 fi;
4106
4107 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
4108 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4109 fi
4110
4111
4112
4113
4114 enablestring=
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4116 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4117 no_cache=0
4118 # Check whether --enable-intl or --disable-intl was given.
4119 if test "${enable_intl+set}" = set; then
4120 enableval="$enable_intl"
4121
4122 if test "$enableval" = yes; then
4123 ac_cv_use_intl='wxUSE_INTL=yes'
4124 else
4125 ac_cv_use_intl='wxUSE_INTL=no'
4126 fi
4127
4128 else
4129
4130 LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4138
4139 fi;
4140
4141 eval "$ac_cv_use_intl"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$wxUSE_INTL" = 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}-config" >&5
4157 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4158 no_cache=0
4159 # Check whether --enable-config or --disable-config was given.
4160 if test "${enable_config+set}" = set; then
4161 enableval="$enable_config"
4162
4163 if test "$enableval" = yes; then
4164 ac_cv_use_config='wxUSE_CONFIG=yes'
4165 else
4166 ac_cv_use_config='wxUSE_CONFIG=no'
4167 fi
4168
4169 else
4170
4171 LINE=`grep "wxUSE_CONFIG" ${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_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4179
4180 fi;
4181
4182 eval "$ac_cv_use_config"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_CONFIG" = 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
4197 enablestring=
4198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4199 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4200 no_cache=0
4201 # Check whether --enable-protocols or --disable-protocols was given.
4202 if test "${enable_protocols+set}" = set; then
4203 enableval="$enable_protocols"
4204
4205 if test "$enableval" = yes; then
4206 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4207 else
4208 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4209 fi
4210
4211 else
4212
4213 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4214 if test "x$LINE" != x ; then
4215 eval "DEFAULT_$LINE"
4216 else
4217 no_cache=1
4218 fi
4219
4220 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4221
4222 fi;
4223
4224 eval "$ac_cv_use_protocols"
4225 if test "$no_cache" != 1; then
4226 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4227 fi
4228
4229 if test "$wxUSE_PROTOCOL" = yes; then
4230 echo "$as_me:$LINENO: result: yes" >&5
4231 echo "${ECHO_T}yes" >&6
4232 else
4233 echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6
4235 fi
4236
4237
4238 enablestring=
4239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4240 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4241 no_cache=0
4242 # Check whether --enable-ftp or --disable-ftp was given.
4243 if test "${enable_ftp+set}" = set; then
4244 enableval="$enable_ftp"
4245
4246 if test "$enableval" = yes; then
4247 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4248 else
4249 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4250 fi
4251
4252 else
4253
4254 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4255 if test "x$LINE" != x ; then
4256 eval "DEFAULT_$LINE"
4257 else
4258 no_cache=1
4259 fi
4260
4261 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4262
4263 fi;
4264
4265 eval "$ac_cv_use_ftp"
4266 if test "$no_cache" != 1; then
4267 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4268 fi
4269
4270 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4271 echo "$as_me:$LINENO: result: yes" >&5
4272 echo "${ECHO_T}yes" >&6
4273 else
4274 echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277
4278
4279 enablestring=
4280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4281 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4282 no_cache=0
4283 # Check whether --enable-http or --disable-http was given.
4284 if test "${enable_http+set}" = set; then
4285 enableval="$enable_http"
4286
4287 if test "$enableval" = yes; then
4288 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4289 else
4290 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4291 fi
4292
4293 else
4294
4295 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4296 if test "x$LINE" != x ; then
4297 eval "DEFAULT_$LINE"
4298 else
4299 no_cache=1
4300 fi
4301
4302 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4303
4304 fi;
4305
4306 eval "$ac_cv_use_http"
4307 if test "$no_cache" != 1; then
4308 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4309 fi
4310
4311 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4312 echo "$as_me:$LINENO: result: yes" >&5
4313 echo "${ECHO_T}yes" >&6
4314 else
4315 echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6
4317 fi
4318
4319
4320 enablestring=
4321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4322 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4323 no_cache=0
4324 # Check whether --enable-fileproto or --disable-fileproto was given.
4325 if test "${enable_fileproto+set}" = set; then
4326 enableval="$enable_fileproto"
4327
4328 if test "$enableval" = yes; then
4329 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4330 else
4331 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4332 fi
4333
4334 else
4335
4336 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4337 if test "x$LINE" != x ; then
4338 eval "DEFAULT_$LINE"
4339 else
4340 no_cache=1
4341 fi
4342
4343 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4344
4345 fi;
4346
4347 eval "$ac_cv_use_fileproto"
4348 if test "$no_cache" != 1; then
4349 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4350 fi
4351
4352 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4353 echo "$as_me:$LINENO: result: yes" >&5
4354 echo "${ECHO_T}yes" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4358 fi
4359
4360
4361 enablestring=
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4363 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4364 no_cache=0
4365 # Check whether --enable-sockets or --disable-sockets was given.
4366 if test "${enable_sockets+set}" = set; then
4367 enableval="$enable_sockets"
4368
4369 if test "$enableval" = yes; then
4370 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4371 else
4372 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4373 fi
4374
4375 else
4376
4377 LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4385
4386 fi;
4387
4388 eval "$ac_cv_use_sockets"
4389 if test "$no_cache" != 1; then
4390 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4391 fi
4392
4393 if test "$wxUSE_SOCKETS" = 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 enablestring=
4403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4404 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4405 no_cache=0
4406 # Check whether --enable-ole or --disable-ole was given.
4407 if test "${enable_ole+set}" = set; then
4408 enableval="$enable_ole"
4409
4410 if test "$enableval" = yes; then
4411 ac_cv_use_ole='wxUSE_OLE=yes'
4412 else
4413 ac_cv_use_ole='wxUSE_OLE=no'
4414 fi
4415
4416 else
4417
4418 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4419 if test "x$LINE" != x ; then
4420 eval "DEFAULT_$LINE"
4421 else
4422 no_cache=1
4423 fi
4424
4425 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4426
4427 fi;
4428
4429 eval "$ac_cv_use_ole"
4430 if test "$no_cache" != 1; then
4431 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4432 fi
4433
4434 if test "$wxUSE_OLE" = yes; then
4435 echo "$as_me:$LINENO: result: yes" >&5
4436 echo "${ECHO_T}yes" >&6
4437 else
4438 echo "$as_me:$LINENO: result: no" >&5
4439 echo "${ECHO_T}no" >&6
4440 fi
4441
4442
4443 enablestring=
4444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4445 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4446 no_cache=0
4447 # Check whether --enable-dataobj or --disable-dataobj was given.
4448 if test "${enable_dataobj+set}" = set; then
4449 enableval="$enable_dataobj"
4450
4451 if test "$enableval" = yes; then
4452 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4453 else
4454 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4455 fi
4456
4457 else
4458
4459 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4460 if test "x$LINE" != x ; then
4461 eval "DEFAULT_$LINE"
4462 else
4463 no_cache=1
4464 fi
4465
4466 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4467
4468 fi;
4469
4470 eval "$ac_cv_use_dataobj"
4471 if test "$no_cache" != 1; then
4472 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4473 fi
4474
4475 if test "$wxUSE_DATAOBJ" = yes; then
4476 echo "$as_me:$LINENO: result: yes" >&5
4477 echo "${ECHO_T}yes" >&6
4478 else
4479 echo "$as_me:$LINENO: result: no" >&5
4480 echo "${ECHO_T}no" >&6
4481 fi
4482
4483
4484
4485 enablestring=
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4487 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4488 no_cache=0
4489 # Check whether --enable-ipc or --disable-ipc was given.
4490 if test "${enable_ipc+set}" = set; then
4491 enableval="$enable_ipc"
4492
4493 if test "$enableval" = yes; then
4494 ac_cv_use_ipc='wxUSE_IPC=yes'
4495 else
4496 ac_cv_use_ipc='wxUSE_IPC=no'
4497 fi
4498
4499 else
4500
4501 LINE=`grep "wxUSE_IPC" ${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_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4509
4510 fi;
4511
4512 eval "$ac_cv_use_ipc"
4513 if test "$no_cache" != 1; then
4514 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4515 fi
4516
4517 if test "$wxUSE_IPC" = 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
4527 enablestring=
4528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4529 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4530 no_cache=0
4531 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4532 if test "${enable_apple_ieee+set}" = set; then
4533 enableval="$enable_apple_ieee"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4537 else
4538 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4539 fi
4540
4541 else
4542
4543 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4551
4552 fi;
4553
4554 eval "$ac_cv_use_apple_ieee"
4555 if test "$no_cache" != 1; then
4556 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4557 fi
4558
4559 if test "$wxUSE_APPLE_IEEE" = yes; then
4560 echo "$as_me:$LINENO: result: yes" >&5
4561 echo "${ECHO_T}yes" >&6
4562 else
4563 echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6
4565 fi
4566
4567
4568 enablestring=
4569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4570 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4571 no_cache=0
4572 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4573 if test "${enable_catch_segvs+set}" = set; then
4574 enableval="$enable_catch_segvs"
4575
4576 if test "$enableval" = yes; then
4577 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4578 else
4579 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4580 fi
4581
4582 else
4583
4584 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4592
4593 fi;
4594
4595 eval "$ac_cv_use_catch_segvs"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4601 echo "$as_me:$LINENO: result: yes" >&5
4602 echo "${ECHO_T}yes" >&6
4603 else
4604 echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6
4606 fi
4607
4608
4609 enablestring=
4610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4611 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4612 no_cache=0
4613 # Check whether --enable-cmdline or --disable-cmdline was given.
4614 if test "${enable_cmdline+set}" = set; then
4615 enableval="$enable_cmdline"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4619 else
4620 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4621 fi
4622
4623 else
4624
4625 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4633
4634 fi;
4635
4636 eval "$ac_cv_use_cmdline"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643 echo "${ECHO_T}yes" >&6
4644 else
4645 echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4647 fi
4648
4649
4650 enablestring=
4651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4652 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4653 no_cache=0
4654 # Check whether --enable-datetime or --disable-datetime was given.
4655 if test "${enable_datetime+set}" = set; then
4656 enableval="$enable_datetime"
4657
4658 if test "$enableval" = yes; then
4659 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4660 else
4661 ac_cv_use_datetime='wxUSE_DATETIME=no'
4662 fi
4663
4664 else
4665
4666 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4674
4675 fi;
4676
4677 eval "$ac_cv_use_datetime"
4678 if test "$no_cache" != 1; then
4679 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4680 fi
4681
4682 if test "$wxUSE_DATETIME" = yes; then
4683 echo "$as_me:$LINENO: result: yes" >&5
4684 echo "${ECHO_T}yes" >&6
4685 else
4686 echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4688 fi
4689
4690
4691 enablestring=
4692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4693 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4694 no_cache=0
4695 # Check whether --enable-dialupman or --disable-dialupman was given.
4696 if test "${enable_dialupman+set}" = set; then
4697 enableval="$enable_dialupman"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4701 else
4702 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4703 fi
4704
4705 else
4706
4707 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4715
4716 fi;
4717
4718 eval "$ac_cv_use_dialupman"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4724 echo "$as_me:$LINENO: result: yes" >&5
4725 echo "${ECHO_T}yes" >&6
4726 else
4727 echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6
4729 fi
4730
4731
4732 enablestring=
4733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4734 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4735 no_cache=0
4736 # Check whether --enable-dynlib or --disable-dynlib was given.
4737 if test "${enable_dynlib+set}" = set; then
4738 enableval="$enable_dynlib"
4739
4740 if test "$enableval" = yes; then
4741 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4742 else
4743 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4744 fi
4745
4746 else
4747
4748 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4749 if test "x$LINE" != x ; then
4750 eval "DEFAULT_$LINE"
4751 else
4752 no_cache=1
4753 fi
4754
4755 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4756
4757 fi;
4758
4759 eval "$ac_cv_use_dynlib"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4765 echo "$as_me:$LINENO: result: yes" >&5
4766 echo "${ECHO_T}yes" >&6
4767 else
4768 echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6
4770 fi
4771
4772
4773 enablestring=
4774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4775 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4776 no_cache=0
4777 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4778 if test "${enable_dynamicloader+set}" = set; then
4779 enableval="$enable_dynamicloader"
4780
4781 if test "$enableval" = yes; then
4782 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4783 else
4784 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4785 fi
4786
4787 else
4788
4789 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
4796 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4797
4798 fi;
4799
4800 eval "$ac_cv_use_dynamicloader"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4806 echo "$as_me:$LINENO: result: yes" >&5
4807 echo "${ECHO_T}yes" >&6
4808 else
4809 echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6
4811 fi
4812
4813
4814 enablestring=
4815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4816 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4817 no_cache=0
4818 # Check whether --enable-exceptions or --disable-exceptions was given.
4819 if test "${enable_exceptions+set}" = set; then
4820 enableval="$enable_exceptions"
4821
4822 if test "$enableval" = yes; then
4823 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4824 else
4825 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4826 fi
4827
4828 else
4829
4830 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4831 if test "x$LINE" != x ; then
4832 eval "DEFAULT_$LINE"
4833 else
4834 no_cache=1
4835 fi
4836
4837 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4838
4839 fi;
4840
4841 eval "$ac_cv_use_exceptions"
4842 if test "$no_cache" != 1; then
4843 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4844 fi
4845
4846 if test "$wxUSE_EXCEPTIONS" = yes; then
4847 echo "$as_me:$LINENO: result: yes" >&5
4848 echo "${ECHO_T}yes" >&6
4849 else
4850 echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6
4852 fi
4853
4854
4855 enablestring=
4856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4857 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4858 no_cache=0
4859 # Check whether --enable-ffile or --disable-ffile was given.
4860 if test "${enable_ffile+set}" = set; then
4861 enableval="$enable_ffile"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_ffile='wxUSE_FFILE=yes'
4865 else
4866 ac_cv_use_ffile='wxUSE_FFILE=no'
4867 fi
4868
4869 else
4870
4871 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4879
4880 fi;
4881
4882 eval "$ac_cv_use_ffile"
4883 if test "$no_cache" != 1; then
4884 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4885 fi
4886
4887 if test "$wxUSE_FFILE" = yes; then
4888 echo "$as_me:$LINENO: result: yes" >&5
4889 echo "${ECHO_T}yes" >&6
4890 else
4891 echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4893 fi
4894
4895
4896 enablestring=
4897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4898 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4899 no_cache=0
4900 # Check whether --enable-file or --disable-file was given.
4901 if test "${enable_file+set}" = set; then
4902 enableval="$enable_file"
4903
4904 if test "$enableval" = yes; then
4905 ac_cv_use_file='wxUSE_FILE=yes'
4906 else
4907 ac_cv_use_file='wxUSE_FILE=no'
4908 fi
4909
4910 else
4911
4912 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4913 if test "x$LINE" != x ; then
4914 eval "DEFAULT_$LINE"
4915 else
4916 no_cache=1
4917 fi
4918
4919 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4920
4921 fi;
4922
4923 eval "$ac_cv_use_file"
4924 if test "$no_cache" != 1; then
4925 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4926 fi
4927
4928 if test "$wxUSE_FILE" = yes; then
4929 echo "$as_me:$LINENO: result: yes" >&5
4930 echo "${ECHO_T}yes" >&6
4931 else
4932 echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4934 fi
4935
4936
4937 enablestring=
4938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4939 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4940 no_cache=0
4941 # Check whether --enable-filesystem or --disable-filesystem was given.
4942 if test "${enable_filesystem+set}" = set; then
4943 enableval="$enable_filesystem"
4944
4945 if test "$enableval" = yes; then
4946 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4947 else
4948 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4949 fi
4950
4951 else
4952
4953 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4954 if test "x$LINE" != x ; then
4955 eval "DEFAULT_$LINE"
4956 else
4957 no_cache=1
4958 fi
4959
4960 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4961
4962 fi;
4963
4964 eval "$ac_cv_use_filesystem"
4965 if test "$no_cache" != 1; then
4966 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4967 fi
4968
4969 if test "$wxUSE_FILESYSTEM" = yes; then
4970 echo "$as_me:$LINENO: result: yes" >&5
4971 echo "${ECHO_T}yes" >&6
4972 else
4973 echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6
4975 fi
4976
4977
4978 enablestring=
4979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4980 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4981 no_cache=0
4982 # Check whether --enable-fontmap or --disable-fontmap was given.
4983 if test "${enable_fontmap+set}" = set; then
4984 enableval="$enable_fontmap"
4985
4986 if test "$enableval" = yes; then
4987 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4988 else
4989 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4990 fi
4991
4992 else
4993
4994 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4995 if test "x$LINE" != x ; then
4996 eval "DEFAULT_$LINE"
4997 else
4998 no_cache=1
4999 fi
5000
5001 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5002
5003 fi;
5004
5005 eval "$ac_cv_use_fontmap"
5006 if test "$no_cache" != 1; then
5007 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5008 fi
5009
5010 if test "$wxUSE_FONTMAP" = yes; then
5011 echo "$as_me:$LINENO: result: yes" >&5
5012 echo "${ECHO_T}yes" >&6
5013 else
5014 echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6
5016 fi
5017
5018
5019 enablestring=
5020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5021 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5022 no_cache=0
5023 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5024 if test "${enable_fs_inet+set}" = set; then
5025 enableval="$enable_fs_inet"
5026
5027 if test "$enableval" = yes; then
5028 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5029 else
5030 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5031 fi
5032
5033 else
5034
5035 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5036 if test "x$LINE" != x ; then
5037 eval "DEFAULT_$LINE"
5038 else
5039 no_cache=1
5040 fi
5041
5042 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5043
5044 fi;
5045
5046 eval "$ac_cv_use_fs_inet"
5047 if test "$no_cache" != 1; then
5048 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5049 fi
5050
5051 if test "$wxUSE_FS_INET" = yes; then
5052 echo "$as_me:$LINENO: result: yes" >&5
5053 echo "${ECHO_T}yes" >&6
5054 else
5055 echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6
5057 fi
5058
5059
5060 enablestring=
5061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5062 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5063 no_cache=0
5064 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5065 if test "${enable_fs_zip+set}" = set; then
5066 enableval="$enable_fs_zip"
5067
5068 if test "$enableval" = yes; then
5069 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5070 else
5071 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5072 fi
5073
5074 else
5075
5076 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5077 if test "x$LINE" != x ; then
5078 eval "DEFAULT_$LINE"
5079 else
5080 no_cache=1
5081 fi
5082
5083 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5084
5085 fi;
5086
5087 eval "$ac_cv_use_fs_zip"
5088 if test "$no_cache" != 1; then
5089 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5090 fi
5091
5092 if test "$wxUSE_FS_ZIP" = yes; then
5093 echo "$as_me:$LINENO: result: yes" >&5
5094 echo "${ECHO_T}yes" >&6
5095 else
5096 echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6
5098 fi
5099
5100
5101 enablestring=
5102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5103 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5104 no_cache=0
5105 # Check whether --enable-geometry or --disable-geometry was given.
5106 if test "${enable_geometry+set}" = set; then
5107 enableval="$enable_geometry"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5111 else
5112 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5113 fi
5114
5115 else
5116
5117 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5125
5126 fi;
5127
5128 eval "$ac_cv_use_geometry"
5129 if test "$no_cache" != 1; then
5130 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5131 fi
5132
5133 if test "$wxUSE_GEOMETRY" = yes; then
5134 echo "$as_me:$LINENO: result: yes" >&5
5135 echo "${ECHO_T}yes" >&6
5136 else
5137 echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6
5139 fi
5140
5141
5142 enablestring=
5143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5144 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5145 no_cache=0
5146 # Check whether --enable-log or --disable-log was given.
5147 if test "${enable_log+set}" = set; then
5148 enableval="$enable_log"
5149
5150 if test "$enableval" = yes; then
5151 ac_cv_use_log='wxUSE_LOG=yes'
5152 else
5153 ac_cv_use_log='wxUSE_LOG=no'
5154 fi
5155
5156 else
5157
5158 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5159 if test "x$LINE" != x ; then
5160 eval "DEFAULT_$LINE"
5161 else
5162 no_cache=1
5163 fi
5164
5165 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5166
5167 fi;
5168
5169 eval "$ac_cv_use_log"
5170 if test "$no_cache" != 1; then
5171 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5172 fi
5173
5174 if test "$wxUSE_LOG" = yes; then
5175 echo "$as_me:$LINENO: result: yes" >&5
5176 echo "${ECHO_T}yes" >&6
5177 else
5178 echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6
5180 fi
5181
5182
5183 enablestring=
5184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5185 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5186 no_cache=0
5187 # Check whether --enable-longlong or --disable-longlong was given.
5188 if test "${enable_longlong+set}" = set; then
5189 enableval="$enable_longlong"
5190
5191 if test "$enableval" = yes; then
5192 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5193 else
5194 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5195 fi
5196
5197 else
5198
5199 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5200 if test "x$LINE" != x ; then
5201 eval "DEFAULT_$LINE"
5202 else
5203 no_cache=1
5204 fi
5205
5206 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5207
5208 fi;
5209
5210 eval "$ac_cv_use_longlong"
5211 if test "$no_cache" != 1; then
5212 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5213 fi
5214
5215 if test "$wxUSE_LONGLONG" = yes; then
5216 echo "$as_me:$LINENO: result: yes" >&5
5217 echo "${ECHO_T}yes" >&6
5218 else
5219 echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6
5221 fi
5222
5223
5224 enablestring=
5225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5226 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5227 no_cache=0
5228 # Check whether --enable-mimetype or --disable-mimetype was given.
5229 if test "${enable_mimetype+set}" = set; then
5230 enableval="$enable_mimetype"
5231
5232 if test "$enableval" = yes; then
5233 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5234 else
5235 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5236 fi
5237
5238 else
5239
5240 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5241 if test "x$LINE" != x ; then
5242 eval "DEFAULT_$LINE"
5243 else
5244 no_cache=1
5245 fi
5246
5247 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5248
5249 fi;
5250
5251 eval "$ac_cv_use_mimetype"
5252 if test "$no_cache" != 1; then
5253 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5254 fi
5255
5256 if test "$wxUSE_MIMETYPE" = yes; then
5257 echo "$as_me:$LINENO: result: yes" >&5
5258 echo "${ECHO_T}yes" >&6
5259 else
5260 echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6
5262 fi
5263
5264
5265 enablestring=
5266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5267 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5268 no_cache=0
5269 # Check whether --enable-mslu or --disable-mslu was given.
5270 if test "${enable_mslu+set}" = set; then
5271 enableval="$enable_mslu"
5272
5273 if test "$enableval" = yes; then
5274 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5275 else
5276 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5277 fi
5278
5279 else
5280
5281 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5282 if test "x$LINE" != x ; then
5283 eval "DEFAULT_$LINE"
5284 else
5285 no_cache=1
5286 fi
5287
5288 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5289
5290 fi;
5291
5292 eval "$ac_cv_use_mslu"
5293 if test "$no_cache" != 1; then
5294 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5295 fi
5296
5297 if test "$wxUSE_UNICODE_MSLU" = yes; then
5298 echo "$as_me:$LINENO: result: yes" >&5
5299 echo "${ECHO_T}yes" >&6
5300 else
5301 echo "$as_me:$LINENO: result: no" >&5
5302 echo "${ECHO_T}no" >&6
5303 fi
5304
5305
5306 enablestring=
5307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5308 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5309 no_cache=0
5310 # Check whether --enable-snglinst or --disable-snglinst was given.
5311 if test "${enable_snglinst+set}" = set; then
5312 enableval="$enable_snglinst"
5313
5314 if test "$enableval" = yes; then
5315 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5316 else
5317 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5318 fi
5319
5320 else
5321
5322 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5323 if test "x$LINE" != x ; then
5324 eval "DEFAULT_$LINE"
5325 else
5326 no_cache=1
5327 fi
5328
5329 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5330
5331 fi;
5332
5333 eval "$ac_cv_use_snglinst"
5334 if test "$no_cache" != 1; then
5335 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5336 fi
5337
5338 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5339 echo "$as_me:$LINENO: result: yes" >&5
5340 echo "${ECHO_T}yes" >&6
5341 else
5342 echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6
5344 fi
5345
5346
5347 enablestring=
5348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5349 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5350 no_cache=0
5351 # Check whether --enable-streams or --disable-streams was given.
5352 if test "${enable_streams+set}" = set; then
5353 enableval="$enable_streams"
5354
5355 if test "$enableval" = yes; then
5356 ac_cv_use_streams='wxUSE_STREAMS=yes'
5357 else
5358 ac_cv_use_streams='wxUSE_STREAMS=no'
5359 fi
5360
5361 else
5362
5363 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5364 if test "x$LINE" != x ; then
5365 eval "DEFAULT_$LINE"
5366 else
5367 no_cache=1
5368 fi
5369
5370 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5371
5372 fi;
5373
5374 eval "$ac_cv_use_streams"
5375 if test "$no_cache" != 1; then
5376 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5377 fi
5378
5379 if test "$wxUSE_STREAMS" = yes; then
5380 echo "$as_me:$LINENO: result: yes" >&5
5381 echo "${ECHO_T}yes" >&6
5382 else
5383 echo "$as_me:$LINENO: result: no" >&5
5384 echo "${ECHO_T}no" >&6
5385 fi
5386
5387
5388 enablestring=
5389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5390 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5391 no_cache=0
5392 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5393 if test "${enable_std_iostreams+set}" = set; then
5394 enableval="$enable_std_iostreams"
5395
5396 if test "$enableval" = yes; then
5397 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5398 else
5399 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5400 fi
5401
5402 else
5403
5404 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5405 if test "x$LINE" != x ; then
5406 eval "DEFAULT_$LINE"
5407 else
5408 no_cache=1
5409 fi
5410
5411 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5412
5413 fi;
5414
5415 eval "$ac_cv_use_std_iostreams"
5416 if test "$no_cache" != 1; then
5417 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5418 fi
5419
5420 if test "$wxUSE_STD_IOSTREAM" = yes; then
5421 echo "$as_me:$LINENO: result: yes" >&5
5422 echo "${ECHO_T}yes" >&6
5423 else
5424 echo "$as_me:$LINENO: result: no" >&5
5425 echo "${ECHO_T}no" >&6
5426 fi
5427
5428
5429 enablestring=
5430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5431 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5432 no_cache=0
5433 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5434 if test "${enable_stopwatch+set}" = set; then
5435 enableval="$enable_stopwatch"
5436
5437 if test "$enableval" = yes; then
5438 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5439 else
5440 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5441 fi
5442
5443 else
5444
5445 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5446 if test "x$LINE" != x ; then
5447 eval "DEFAULT_$LINE"
5448 else
5449 no_cache=1
5450 fi
5451
5452 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5453
5454 fi;
5455
5456 eval "$ac_cv_use_stopwatch"
5457 if test "$no_cache" != 1; then
5458 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5459 fi
5460
5461 if test "$wxUSE_STOPWATCH" = yes; then
5462 echo "$as_me:$LINENO: result: yes" >&5
5463 echo "${ECHO_T}yes" >&6
5464 else
5465 echo "$as_me:$LINENO: result: no" >&5
5466 echo "${ECHO_T}no" >&6
5467 fi
5468
5469
5470 enablestring=
5471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5472 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5473 no_cache=0
5474 # Check whether --enable-system_options or --disable-system_options was given.
5475 if test "${enable_system_options+set}" = set; then
5476 enableval="$enable_system_options"
5477
5478 if test "$enableval" = yes; then
5479 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5480 else
5481 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5482 fi
5483
5484 else
5485
5486 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5487 if test "x$LINE" != x ; then
5488 eval "DEFAULT_$LINE"
5489 else
5490 no_cache=1
5491 fi
5492
5493 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5494
5495 fi;
5496
5497 eval "$ac_cv_use_system_options"
5498 if test "$no_cache" != 1; then
5499 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5500 fi
5501
5502 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5503 echo "$as_me:$LINENO: result: yes" >&5
5504 echo "${ECHO_T}yes" >&6
5505 else
5506 echo "$as_me:$LINENO: result: no" >&5
5507 echo "${ECHO_T}no" >&6
5508 fi
5509
5510
5511 enablestring=
5512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5513 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5514 no_cache=0
5515 # Check whether --enable-textbuf or --disable-textbuf was given.
5516 if test "${enable_textbuf+set}" = set; then
5517 enableval="$enable_textbuf"
5518
5519 if test "$enableval" = yes; then
5520 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5521 else
5522 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5523 fi
5524
5525 else
5526
5527 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5528 if test "x$LINE" != x ; then
5529 eval "DEFAULT_$LINE"
5530 else
5531 no_cache=1
5532 fi
5533
5534 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5535
5536 fi;
5537
5538 eval "$ac_cv_use_textbuf"
5539 if test "$no_cache" != 1; then
5540 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5541 fi
5542
5543 if test "$wxUSE_TEXTBUFFER" = yes; then
5544 echo "$as_me:$LINENO: result: yes" >&5
5545 echo "${ECHO_T}yes" >&6
5546 else
5547 echo "$as_me:$LINENO: result: no" >&5
5548 echo "${ECHO_T}no" >&6
5549 fi
5550
5551
5552 enablestring=
5553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5554 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5555 no_cache=0
5556 # Check whether --enable-textfile or --disable-textfile was given.
5557 if test "${enable_textfile+set}" = set; then
5558 enableval="$enable_textfile"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5562 else
5563 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5564 fi
5565
5566 else
5567
5568 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5576
5577 fi;
5578
5579 eval "$ac_cv_use_textfile"
5580 if test "$no_cache" != 1; then
5581 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5582 fi
5583
5584 if test "$wxUSE_TEXTFILE" = yes; then
5585 echo "$as_me:$LINENO: result: yes" >&5
5586 echo "${ECHO_T}yes" >&6
5587 else
5588 echo "$as_me:$LINENO: result: no" >&5
5589 echo "${ECHO_T}no" >&6
5590 fi
5591
5592
5593 enablestring=
5594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5595 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5596 no_cache=0
5597 # Check whether --enable-timer or --disable-timer was given.
5598 if test "${enable_timer+set}" = set; then
5599 enableval="$enable_timer"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_timer='wxUSE_TIMER=yes'
5603 else
5604 ac_cv_use_timer='wxUSE_TIMER=no'
5605 fi
5606
5607 else
5608
5609 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5617
5618 fi;
5619
5620 eval "$ac_cv_use_timer"
5621 if test "$no_cache" != 1; then
5622 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5623 fi
5624
5625 if test "$wxUSE_TIMER" = yes; then
5626 echo "$as_me:$LINENO: result: yes" >&5
5627 echo "${ECHO_T}yes" >&6
5628 else
5629 echo "$as_me:$LINENO: result: no" >&5
5630 echo "${ECHO_T}no" >&6
5631 fi
5632
5633
5634 enablestring=
5635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5636 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5637 no_cache=0
5638 # Check whether --enable-unicode or --disable-unicode was given.
5639 if test "${enable_unicode+set}" = set; then
5640 enableval="$enable_unicode"
5641
5642 if test "$enableval" = yes; then
5643 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5644 else
5645 ac_cv_use_unicode='wxUSE_UNICODE=no'
5646 fi
5647
5648 else
5649
5650 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5651 if test "x$LINE" != x ; then
5652 eval "DEFAULT_$LINE"
5653 else
5654 no_cache=1
5655 fi
5656
5657 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5658
5659 fi;
5660
5661 eval "$ac_cv_use_unicode"
5662 if test "$no_cache" != 1; then
5663 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5664 fi
5665
5666 if test "$wxUSE_UNICODE" = yes; then
5667 echo "$as_me:$LINENO: result: yes" >&5
5668 echo "${ECHO_T}yes" >&6
5669 else
5670 echo "$as_me:$LINENO: result: no" >&5
5671 echo "${ECHO_T}no" >&6
5672 fi
5673
5674
5675 enablestring=
5676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5677 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5678 no_cache=0
5679 # Check whether --enable-sound or --disable-sound was given.
5680 if test "${enable_sound+set}" = set; then
5681 enableval="$enable_sound"
5682
5683 if test "$enableval" = yes; then
5684 ac_cv_use_sound='wxUSE_SOUND=yes'
5685 else
5686 ac_cv_use_sound='wxUSE_SOUND=no'
5687 fi
5688
5689 else
5690
5691 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5699
5700 fi;
5701
5702 eval "$ac_cv_use_sound"
5703 if test "$no_cache" != 1; then
5704 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5705 fi
5706
5707 if test "$wxUSE_SOUND" = yes; then
5708 echo "$as_me:$LINENO: result: yes" >&5
5709 echo "${ECHO_T}yes" >&6
5710 else
5711 echo "$as_me:$LINENO: result: no" >&5
5712 echo "${ECHO_T}no" >&6
5713 fi
5714
5715
5716 enablestring=
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5718 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5719 no_cache=0
5720 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5721 if test "${enable_wxprintfv+set}" = set; then
5722 enableval="$enable_wxprintfv"
5723
5724 if test "$enableval" = yes; then
5725 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5726 else
5727 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5728 fi
5729
5730 else
5731
5732 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${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_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5740
5741 fi;
5742
5743 eval "$ac_cv_use_wxprintfv"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_EXPERIMENTAL_PRINTF" = 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}-zipstream" >&5
5759 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5760 no_cache=0
5761 # Check whether --enable-zipstream or --disable-zipstream was given.
5762 if test "${enable_zipstream+set}" = set; then
5763 enableval="$enable_zipstream"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5767 else
5768 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5769 fi
5770
5771 else
5772
5773 LINE=`grep "wxUSE_ZIPSTREAM" ${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_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5781
5782 fi;
5783
5784 eval "$ac_cv_use_zipstream"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_ZIPSTREAM" = 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
5799 enablestring=
5800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5801 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5802 no_cache=0
5803 # Check whether --enable-url or --disable-url was given.
5804 if test "${enable_url+set}" = set; then
5805 enableval="$enable_url"
5806
5807 if test "$enableval" = yes; then
5808 ac_cv_use_url='wxUSE_URL=yes'
5809 else
5810 ac_cv_use_url='wxUSE_URL=no'
5811 fi
5812
5813 else
5814
5815 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5816 if test "x$LINE" != x ; then
5817 eval "DEFAULT_$LINE"
5818 else
5819 no_cache=1
5820 fi
5821
5822 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5823
5824 fi;
5825
5826 eval "$ac_cv_use_url"
5827 if test "$no_cache" != 1; then
5828 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5829 fi
5830
5831 if test "$wxUSE_URL" = yes; then
5832 echo "$as_me:$LINENO: result: yes" >&5
5833 echo "${ECHO_T}yes" >&6
5834 else
5835 echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5837 fi
5838
5839
5840 enablestring=
5841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5842 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5843 no_cache=0
5844 # Check whether --enable-protocol or --disable-protocol was given.
5845 if test "${enable_protocol+set}" = set; then
5846 enableval="$enable_protocol"
5847
5848 if test "$enableval" = yes; then
5849 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5850 else
5851 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5852 fi
5853
5854 else
5855
5856 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5857 if test "x$LINE" != x ; then
5858 eval "DEFAULT_$LINE"
5859 else
5860 no_cache=1
5861 fi
5862
5863 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5864
5865 fi;
5866
5867 eval "$ac_cv_use_protocol"
5868 if test "$no_cache" != 1; then
5869 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5870 fi
5871
5872 if test "$wxUSE_PROTOCOL" = yes; then
5873 echo "$as_me:$LINENO: result: yes" >&5
5874 echo "${ECHO_T}yes" >&6
5875 else
5876 echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6
5878 fi
5879
5880
5881 enablestring=
5882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5883 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5884 no_cache=0
5885 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5886 if test "${enable_protocol_http+set}" = set; then
5887 enableval="$enable_protocol_http"
5888
5889 if test "$enableval" = yes; then
5890 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5891 else
5892 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5893 fi
5894
5895 else
5896
5897 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5898 if test "x$LINE" != x ; then
5899 eval "DEFAULT_$LINE"
5900 else
5901 no_cache=1
5902 fi
5903
5904 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5905
5906 fi;
5907
5908 eval "$ac_cv_use_protocol_http"
5909 if test "$no_cache" != 1; then
5910 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5911 fi
5912
5913 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5914 echo "$as_me:$LINENO: result: yes" >&5
5915 echo "${ECHO_T}yes" >&6
5916 else
5917 echo "$as_me:$LINENO: result: no" >&5
5918 echo "${ECHO_T}no" >&6
5919 fi
5920
5921
5922 enablestring=
5923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5924 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5925 no_cache=0
5926 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5927 if test "${enable_protocol_ftp+set}" = set; then
5928 enableval="$enable_protocol_ftp"
5929
5930 if test "$enableval" = yes; then
5931 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5932 else
5933 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5934 fi
5935
5936 else
5937
5938 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5939 if test "x$LINE" != x ; then
5940 eval "DEFAULT_$LINE"
5941 else
5942 no_cache=1
5943 fi
5944
5945 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5946
5947 fi;
5948
5949 eval "$ac_cv_use_protocol_ftp"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5955 echo "$as_me:$LINENO: result: yes" >&5
5956 echo "${ECHO_T}yes" >&6
5957 else
5958 echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6
5960 fi
5961
5962
5963 enablestring=
5964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5965 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5966 no_cache=0
5967 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5968 if test "${enable_protocol_file+set}" = set; then
5969 enableval="$enable_protocol_file"
5970
5971 if test "$enableval" = yes; then
5972 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5973 else
5974 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5975 fi
5976
5977 else
5978
5979 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5980 if test "x$LINE" != x ; then
5981 eval "DEFAULT_$LINE"
5982 else
5983 no_cache=1
5984 fi
5985
5986 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5987
5988 fi;
5989
5990 eval "$ac_cv_use_protocol_file"
5991 if test "$no_cache" != 1; then
5992 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5993 fi
5994
5995 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5996 echo "$as_me:$LINENO: result: yes" >&5
5997 echo "${ECHO_T}yes" >&6
5998 else
5999 echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6
6001 fi
6002
6003
6004
6005
6006
6007 enablestring=
6008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6009 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6010 no_cache=0
6011 # Check whether --enable-threads or --disable-threads was given.
6012 if test "${enable_threads+set}" = set; then
6013 enableval="$enable_threads"
6014
6015 if test "$enableval" = yes; then
6016 ac_cv_use_threads='wxUSE_THREADS=yes'
6017 else
6018 ac_cv_use_threads='wxUSE_THREADS=no'
6019 fi
6020
6021 else
6022
6023 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6024 if test "x$LINE" != x ; then
6025 eval "DEFAULT_$LINE"
6026 else
6027 no_cache=1
6028 fi
6029
6030 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6031
6032 fi;
6033
6034 eval "$ac_cv_use_threads"
6035 if test "$no_cache" != 1; then
6036 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6037 fi
6038
6039 if test "$wxUSE_THREADS" = yes; then
6040 echo "$as_me:$LINENO: result: yes" >&5
6041 echo "${ECHO_T}yes" >&6
6042 else
6043 echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6
6045 fi
6046
6047
6048 if test "$wxUSE_GUI" = "yes"; then
6049
6050
6051
6052 enablestring=
6053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6054 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6055 no_cache=0
6056 # Check whether --enable-docview or --disable-docview was given.
6057 if test "${enable_docview+set}" = set; then
6058 enableval="$enable_docview"
6059
6060 if test "$enableval" = yes; then
6061 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6062 else
6063 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6064 fi
6065
6066 else
6067
6068 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6069 if test "x$LINE" != x ; then
6070 eval "DEFAULT_$LINE"
6071 else
6072 no_cache=1
6073 fi
6074
6075 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6076
6077 fi;
6078
6079 eval "$ac_cv_use_docview"
6080 if test "$no_cache" != 1; then
6081 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6082 fi
6083
6084 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6085 echo "$as_me:$LINENO: result: yes" >&5
6086 echo "${ECHO_T}yes" >&6
6087 else
6088 echo "$as_me:$LINENO: result: no" >&5
6089 echo "${ECHO_T}no" >&6
6090 fi
6091
6092
6093 enablestring=
6094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6095 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6096 no_cache=0
6097 # Check whether --enable-help or --disable-help was given.
6098 if test "${enable_help+set}" = set; then
6099 enableval="$enable_help"
6100
6101 if test "$enableval" = yes; then
6102 ac_cv_use_help='wxUSE_HELP=yes'
6103 else
6104 ac_cv_use_help='wxUSE_HELP=no'
6105 fi
6106
6107 else
6108
6109 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6110 if test "x$LINE" != x ; then
6111 eval "DEFAULT_$LINE"
6112 else
6113 no_cache=1
6114 fi
6115
6116 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6117
6118 fi;
6119
6120 eval "$ac_cv_use_help"
6121 if test "$no_cache" != 1; then
6122 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6123 fi
6124
6125 if test "$wxUSE_HELP" = yes; then
6126 echo "$as_me:$LINENO: result: yes" >&5
6127 echo "${ECHO_T}yes" >&6
6128 else
6129 echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6
6131 fi
6132
6133
6134 enablestring=
6135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6136 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6137 no_cache=0
6138 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6139 if test "${enable_mshtmlhelp+set}" = set; then
6140 enableval="$enable_mshtmlhelp"
6141
6142 if test "$enableval" = yes; then
6143 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6144 else
6145 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6146 fi
6147
6148 else
6149
6150 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6158
6159 fi;
6160
6161 eval "$ac_cv_use_mshtmlhelp"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_MS_HTML_HELP" = yes; then
6167 echo "$as_me:$LINENO: result: yes" >&5
6168 echo "${ECHO_T}yes" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171 echo "${ECHO_T}no" >&6
6172 fi
6173
6174
6175 enablestring=
6176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6177 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6178 no_cache=0
6179 # Check whether --enable-html or --disable-html was given.
6180 if test "${enable_html+set}" = set; then
6181 enableval="$enable_html"
6182
6183 if test "$enableval" = yes; then
6184 ac_cv_use_html='wxUSE_HTML=yes'
6185 else
6186 ac_cv_use_html='wxUSE_HTML=no'
6187 fi
6188
6189 else
6190
6191 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6199
6200 fi;
6201
6202 eval "$ac_cv_use_html"
6203 if test "$no_cache" != 1; then
6204 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6205 fi
6206
6207 if test "$wxUSE_HTML" = yes; then
6208 echo "$as_me:$LINENO: result: yes" >&5
6209 echo "${ECHO_T}yes" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212 echo "${ECHO_T}no" >&6
6213 fi
6214
6215
6216 enablestring=
6217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6218 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6219 no_cache=0
6220 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6221 if test "${enable_htmlhelp+set}" = set; then
6222 enableval="$enable_htmlhelp"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6226 else
6227 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6228 fi
6229
6230 else
6231
6232 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6240
6241 fi;
6242
6243 eval "$ac_cv_use_htmlhelp"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_WXHTML_HELP" = yes; then
6249 echo "$as_me:$LINENO: result: yes" >&5
6250 echo "${ECHO_T}yes" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6
6254 fi
6255
6256
6257 enablestring=
6258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6259 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6260 no_cache=0
6261 # Check whether --enable-constraints or --disable-constraints was given.
6262 if test "${enable_constraints+set}" = set; then
6263 enableval="$enable_constraints"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6267 else
6268 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6269 fi
6270
6271 else
6272
6273 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6281
6282 fi;
6283
6284 eval "$ac_cv_use_constraints"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_CONSTRAINTS" = yes; then
6290 echo "$as_me:$LINENO: result: yes" >&5
6291 echo "${ECHO_T}yes" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294 echo "${ECHO_T}no" >&6
6295 fi
6296
6297
6298 enablestring=
6299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6300 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6301 no_cache=0
6302 # Check whether --enable-printarch or --disable-printarch was given.
6303 if test "${enable_printarch+set}" = set; then
6304 enableval="$enable_printarch"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6308 else
6309 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6310 fi
6311
6312 else
6313
6314 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6322
6323 fi;
6324
6325 eval "$ac_cv_use_printarch"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6331 echo "$as_me:$LINENO: result: yes" >&5
6332 echo "${ECHO_T}yes" >&6
6333 else
6334 echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6
6336 fi
6337
6338
6339 enablestring=
6340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6341 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6342 no_cache=0
6343 # Check whether --enable-mdi or --disable-mdi was given.
6344 if test "${enable_mdi+set}" = set; then
6345 enableval="$enable_mdi"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_mdi='wxUSE_MDI=yes'
6349 else
6350 ac_cv_use_mdi='wxUSE_MDI=no'
6351 fi
6352
6353 else
6354
6355 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
6363
6364 fi;
6365
6366 eval "$ac_cv_use_mdi"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_MDI" = yes; then
6372 echo "$as_me:$LINENO: result: yes" >&5
6373 echo "${ECHO_T}yes" >&6
6374 else
6375 echo "$as_me:$LINENO: result: no" >&5
6376 echo "${ECHO_T}no" >&6
6377 fi
6378
6379
6380 enablestring=
6381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6382 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6383 no_cache=0
6384 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6385 if test "${enable_mdidoc+set}" = set; then
6386 enableval="$enable_mdidoc"
6387
6388 if test "$enableval" = yes; then
6389 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6390 else
6391 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6392 fi
6393
6394 else
6395
6396 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6404
6405 fi;
6406
6407 eval "$ac_cv_use_mdidoc"
6408 if test "$no_cache" != 1; then
6409 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6410 fi
6411
6412 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6413 echo "$as_me:$LINENO: result: yes" >&5
6414 echo "${ECHO_T}yes" >&6
6415 else
6416 echo "$as_me:$LINENO: result: no" >&5
6417 echo "${ECHO_T}no" >&6
6418 fi
6419
6420
6421 enablestring=
6422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6423 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6424 no_cache=0
6425 # Check whether --enable-loggui or --disable-loggui was given.
6426 if test "${enable_loggui+set}" = set; then
6427 enableval="$enable_loggui"
6428
6429 if test "$enableval" = yes; then
6430 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6431 else
6432 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6433 fi
6434
6435 else
6436
6437 LINE=`grep "wxUSE_LOGGUI" ${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_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6445
6446 fi;
6447
6448 eval "$ac_cv_use_loggui"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_LOGGUI" = 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 enablestring=
6463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6464 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6465 no_cache=0
6466 # Check whether --enable-logwin or --disable-logwin was given.
6467 if test "${enable_logwin+set}" = set; then
6468 enableval="$enable_logwin"
6469
6470 if test "$enableval" = yes; then
6471 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6472 else
6473 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6474 fi
6475
6476 else
6477
6478 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6479 if test "x$LINE" != x ; then
6480 eval "DEFAULT_$LINE"
6481 else
6482 no_cache=1
6483 fi
6484
6485 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6486
6487 fi;
6488
6489 eval "$ac_cv_use_logwin"
6490 if test "$no_cache" != 1; then
6491 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6492 fi
6493
6494 if test "$wxUSE_LOGWINDOW" = yes; then
6495 echo "$as_me:$LINENO: result: yes" >&5
6496 echo "${ECHO_T}yes" >&6
6497 else
6498 echo "$as_me:$LINENO: result: no" >&5
6499 echo "${ECHO_T}no" >&6
6500 fi
6501
6502
6503 enablestring=
6504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6505 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6506 no_cache=0
6507 # Check whether --enable-logdialog or --disable-logdialog was given.
6508 if test "${enable_logdialog+set}" = set; then
6509 enableval="$enable_logdialog"
6510
6511 if test "$enableval" = yes; then
6512 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6513 else
6514 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6515 fi
6516
6517 else
6518
6519 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6520 if test "x$LINE" != x ; then
6521 eval "DEFAULT_$LINE"
6522 else
6523 no_cache=1
6524 fi
6525
6526 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6527
6528 fi;
6529
6530 eval "$ac_cv_use_logdialog"
6531 if test "$no_cache" != 1; then
6532 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6533 fi
6534
6535 if test "$wxUSE_LOGDIALOG" = yes; then
6536 echo "$as_me:$LINENO: result: yes" >&5
6537 echo "${ECHO_T}yes" >&6
6538 else
6539 echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6
6541 fi
6542
6543
6544 enablestring=
6545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6546 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6547 no_cache=0
6548 # Check whether --enable-webkit or --disable-webkit was given.
6549 if test "${enable_webkit+set}" = set; then
6550 enableval="$enable_webkit"
6551
6552 if test "$enableval" = yes; then
6553 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6554 else
6555 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6556 fi
6557
6558 else
6559
6560 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6561 if test "x$LINE" != x ; then
6562 eval "DEFAULT_$LINE"
6563 else
6564 no_cache=1
6565 fi
6566
6567 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6568
6569 fi;
6570
6571 eval "$ac_cv_use_webkit"
6572 if test "$no_cache" != 1; then
6573 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6574 fi
6575
6576 if test "$wxUSE_WEBKIT" = yes; then
6577 echo "$as_me:$LINENO: result: yes" >&5
6578 echo "${ECHO_T}yes" >&6
6579 else
6580 echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6
6582 fi
6583
6584
6585
6586 enablestring=
6587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6588 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6589 no_cache=0
6590 # Check whether --enable-postscript or --disable-postscript was given.
6591 if test "${enable_postscript+set}" = set; then
6592 enableval="$enable_postscript"
6593
6594 if test "$enableval" = yes; then
6595 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6596 else
6597 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6598 fi
6599
6600 else
6601
6602 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6603 if test "x$LINE" != x ; then
6604 eval "DEFAULT_$LINE"
6605 else
6606 no_cache=1
6607 fi
6608
6609 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6610
6611 fi;
6612
6613 eval "$ac_cv_use_postscript"
6614 if test "$no_cache" != 1; then
6615 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6616 fi
6617
6618 if test "$wxUSE_POSTSCRIPT" = yes; then
6619 echo "$as_me:$LINENO: result: yes" >&5
6620 echo "${ECHO_T}yes" >&6
6621 else
6622 echo "$as_me:$LINENO: result: no" >&5
6623 echo "${ECHO_T}no" >&6
6624 fi
6625
6626
6627
6628
6629
6630 enablestring=
6631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6632 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6633 no_cache=0
6634 # Check whether --enable-prologio or --disable-prologio was given.
6635 if test "${enable_prologio+set}" = set; then
6636 enableval="$enable_prologio"
6637
6638 if test "$enableval" = yes; then
6639 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6640 else
6641 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6642 fi
6643
6644 else
6645
6646 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6647 if test "x$LINE" != x ; then
6648 eval "DEFAULT_$LINE"
6649 else
6650 no_cache=1
6651 fi
6652
6653 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6654
6655 fi;
6656
6657 eval "$ac_cv_use_prologio"
6658 if test "$no_cache" != 1; then
6659 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6660 fi
6661
6662 if test "$wxUSE_PROLOGIO" = yes; then
6663 echo "$as_me:$LINENO: result: yes" >&5
6664 echo "${ECHO_T}yes" >&6
6665 else
6666 echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6
6668 fi
6669
6670
6671 enablestring=
6672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6673 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6674 no_cache=0
6675 # Check whether --enable-resources or --disable-resources was given.
6676 if test "${enable_resources+set}" = set; then
6677 enableval="$enable_resources"
6678
6679 if test "$enableval" = yes; then
6680 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6681 else
6682 ac_cv_use_resources='wxUSE_RESOURCES=no'
6683 fi
6684
6685 else
6686
6687 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6688 if test "x$LINE" != x ; then
6689 eval "DEFAULT_$LINE"
6690 else
6691 no_cache=1
6692 fi
6693
6694 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6695
6696 fi;
6697
6698 eval "$ac_cv_use_resources"
6699 if test "$no_cache" != 1; then
6700 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6701 fi
6702
6703 if test "$wxUSE_RESOURCES" = yes; then
6704 echo "$as_me:$LINENO: result: yes" >&5
6705 echo "${ECHO_T}yes" >&6
6706 else
6707 echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6
6709 fi
6710
6711
6712
6713
6714 enablestring=
6715 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6716 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6717 no_cache=0
6718 # Check whether --enable-clipboard or --disable-clipboard was given.
6719 if test "${enable_clipboard+set}" = set; then
6720 enableval="$enable_clipboard"
6721
6722 if test "$enableval" = yes; then
6723 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6724 else
6725 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6726 fi
6727
6728 else
6729
6730 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6731 if test "x$LINE" != x ; then
6732 eval "DEFAULT_$LINE"
6733 else
6734 no_cache=1
6735 fi
6736
6737 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6738
6739 fi;
6740
6741 eval "$ac_cv_use_clipboard"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_CLIPBOARD" = yes; then
6747 echo "$as_me:$LINENO: result: yes" >&5
6748 echo "${ECHO_T}yes" >&6
6749 else
6750 echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6
6752 fi
6753
6754
6755 enablestring=
6756 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6757 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6758 no_cache=0
6759 # Check whether --enable-dnd or --disable-dnd was given.
6760 if test "${enable_dnd+set}" = set; then
6761 enableval="$enable_dnd"
6762
6763 if test "$enableval" = yes; then
6764 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6765 else
6766 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6767 fi
6768
6769 else
6770
6771 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6772 if test "x$LINE" != x ; then
6773 eval "DEFAULT_$LINE"
6774 else
6775 no_cache=1
6776 fi
6777
6778 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6779
6780 fi;
6781
6782 eval "$ac_cv_use_dnd"
6783 if test "$no_cache" != 1; then
6784 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6785 fi
6786
6787 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789 echo "${ECHO_T}yes" >&6
6790 else
6791 echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6
6793 fi
6794
6795
6796 enablestring=
6797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6798 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6799 no_cache=0
6800 # Check whether --enable-metafile or --disable-metafile was given.
6801 if test "${enable_metafile+set}" = set; then
6802 enableval="$enable_metafile"
6803
6804 if test "$enableval" = yes; then
6805 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6806 else
6807 ac_cv_use_metafile='wxUSE_METAFILE=no'
6808 fi
6809
6810 else
6811
6812 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6813 if test "x$LINE" != x ; then
6814 eval "DEFAULT_$LINE"
6815 else
6816 no_cache=1
6817 fi
6818
6819 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6820
6821 fi;
6822
6823 eval "$ac_cv_use_metafile"
6824 if test "$no_cache" != 1; then
6825 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6826 fi
6827
6828 if test "$wxUSE_METAFILE" = yes; then
6829 echo "$as_me:$LINENO: result: yes" >&5
6830 echo "${ECHO_T}yes" >&6
6831 else
6832 echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6
6834 fi
6835
6836
6837
6838
6839
6840 enablestring=
6841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6842 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6843 no_cache=0
6844 # Check whether --enable-controls or --disable-controls was given.
6845 if test "${enable_controls+set}" = set; then
6846 enableval="$enable_controls"
6847
6848 if test "$enableval" = yes; then
6849 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6850 else
6851 ac_cv_use_controls='wxUSE_CONTROLS=no'
6852 fi
6853
6854 else
6855
6856 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6857 if test "x$LINE" != x ; then
6858 eval "DEFAULT_$LINE"
6859 else
6860 no_cache=1
6861 fi
6862
6863 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6864
6865 fi;
6866
6867 eval "$ac_cv_use_controls"
6868 if test "$no_cache" != 1; then
6869 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6870 fi
6871
6872 if test "$wxUSE_CONTROLS" = yes; then
6873 echo "$as_me:$LINENO: result: yes" >&5
6874 echo "${ECHO_T}yes" >&6
6875 else
6876 echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6
6878 fi
6879
6880
6881 if test "$wxUSE_CONTROLS" = "yes"; then
6882 DEFAULT_wxUSE_ACCEL=yes
6883 DEFAULT_wxUSE_BMPBUTTON=yes
6884 DEFAULT_wxUSE_BUTTON=yes
6885 DEFAULT_wxUSE_CALCTRL=no
6886 DEFAULT_wxUSE_CARET=yes
6887 DEFAULT_wxUSE_COMBOBOX=yes
6888 DEFAULT_wxUSE_CHECKBOX=yes
6889 DEFAULT_wxUSE_CHECKLISTBOX=yes
6890 DEFAULT_wxUSE_CHOICE=yes
6891 DEFAULT_wxUSE_GAUGE=yes
6892 DEFAULT_wxUSE_GRID=yes
6893 DEFAULT_wxUSE_IMAGLIST=yes
6894 DEFAULT_wxUSE_LISTBOOK=yes
6895 DEFAULT_wxUSE_LISTBOX=yes
6896 DEFAULT_wxUSE_LISTCTRL=yes
6897 DEFAULT_wxUSE_NOTEBOOK=yes
6898 DEFAULT_wxUSE_RADIOBOX=yes
6899 DEFAULT_wxUSE_RADIOBTN=yes
6900 DEFAULT_wxUSE_SASH=yes
6901 DEFAULT_wxUSE_SCROLLBAR=yes
6902 DEFAULT_wxUSE_SLIDER=yes
6903 DEFAULT_wxUSE_SPINBTN=yes
6904 DEFAULT_wxUSE_SPINCTRL=yes
6905 DEFAULT_wxUSE_SPLITTER=yes
6906 DEFAULT_wxUSE_STATBMP=yes
6907 DEFAULT_wxUSE_STATBOX=yes
6908 DEFAULT_wxUSE_STATLINE=yes
6909 DEFAULT_wxUSE_STATUSBAR=yes
6910 DEFAULT_wxUSE_TAB_DIALOG=yes
6911 DEFAULT_wxUSE_TOGGLEBTN=yes
6912 DEFAULT_wxUSE_TOOLBAR=yes
6913 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6914 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6915 DEFAULT_wxUSE_TOOLTIPS=yes
6916 DEFAULT_wxUSE_TREECTRL=yes
6917 DEFAULT_wxUSE_POPUPWIN=yes
6918 DEFAULT_wxUSE_TIPWINDOW=yes
6919 elif test "$wxUSE_CONTROLS" = "no"; then
6920 DEFAULT_wxUSE_ACCEL=no
6921 DEFAULT_wxUSE_BMPBUTTON=no
6922 DEFAULT_wxUSE_BUTTON=no
6923 DEFAULT_wxUSE_CALCTRL=no
6924 DEFAULT_wxUSE_CARET=no
6925 DEFAULT_wxUSE_COMBOBOX=no
6926 DEFAULT_wxUSE_CHECKBOX=no
6927 DEFAULT_wxUSE_CHECKLISTBOX=no
6928 DEFAULT_wxUSE_CHOICE=no
6929 DEFAULT_wxUSE_GAUGE=no
6930 DEFAULT_wxUSE_GRID=no
6931 DEFAULT_wxUSE_IMAGLIST=no
6932 DEFAULT_wxUSE_LISTBOOK=no
6933 DEFAULT_wxUSE_LISTBOX=no
6934 DEFAULT_wxUSE_LISTCTRL=no
6935 DEFAULT_wxUSE_NOTEBOOK=no
6936 DEFAULT_wxUSE_RADIOBOX=no
6937 DEFAULT_wxUSE_RADIOBTN=no
6938 DEFAULT_wxUSE_SASH=no
6939 DEFAULT_wxUSE_SCROLLBAR=no
6940 DEFAULT_wxUSE_SLIDER=no
6941 DEFAULT_wxUSE_SPINBTN=no
6942 DEFAULT_wxUSE_SPINCTRL=no
6943 DEFAULT_wxUSE_SPLITTER=no
6944 DEFAULT_wxUSE_STATBMP=no
6945 DEFAULT_wxUSE_STATBOX=no
6946 DEFAULT_wxUSE_STATLINE=no
6947 DEFAULT_wxUSE_STATUSBAR=no
6948 DEFAULT_wxUSE_TAB_DIALOG=no
6949 DEFAULT_wxUSE_TOGGLEBTN=no
6950 DEFAULT_wxUSE_TOOLBAR=no
6951 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6952 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6953 DEFAULT_wxUSE_TOOLTIPS=no
6954 DEFAULT_wxUSE_TREECTRL=no
6955 DEFAULT_wxUSE_POPUPWIN=no
6956 DEFAULT_wxUSE_TIPWINDOW=no
6957 fi
6958
6959 ## FIXME: This is a blatant hack
6960 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6961 wxUSE_PRINTING_ARCHITECTURE=no
6962 wxUSE_DRAG_AND_DROP=no
6963 DEFAULT_wxUSE_TOOLTIPS=no
6964 DEFAULT_wxUSE_DRAGIMAGE=no
6965 fi
6966
6967
6968 enablestring=
6969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6970 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6971 no_cache=0
6972 # Check whether --enable-accel or --disable-accel was given.
6973 if test "${enable_accel+set}" = set; then
6974 enableval="$enable_accel"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_accel='wxUSE_ACCEL=yes'
6978 else
6979 ac_cv_use_accel='wxUSE_ACCEL=no'
6980 fi
6981
6982 else
6983
6984 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6992
6993 fi;
6994
6995 eval "$ac_cv_use_accel"
6996 if test "$no_cache" != 1; then
6997 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6998 fi
6999
7000 if test "$wxUSE_ACCEL" = yes; then
7001 echo "$as_me:$LINENO: result: yes" >&5
7002 echo "${ECHO_T}yes" >&6
7003 else
7004 echo "$as_me:$LINENO: result: no" >&5
7005 echo "${ECHO_T}no" >&6
7006 fi
7007
7008
7009 enablestring=
7010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7011 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7012 no_cache=0
7013 # Check whether --enable-button or --disable-button was given.
7014 if test "${enable_button+set}" = set; then
7015 enableval="$enable_button"
7016
7017 if test "$enableval" = yes; then
7018 ac_cv_use_button='wxUSE_BUTTON=yes'
7019 else
7020 ac_cv_use_button='wxUSE_BUTTON=no'
7021 fi
7022
7023 else
7024
7025 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7026 if test "x$LINE" != x ; then
7027 eval "DEFAULT_$LINE"
7028 else
7029 no_cache=1
7030 fi
7031
7032 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7033
7034 fi;
7035
7036 eval "$ac_cv_use_button"
7037 if test "$no_cache" != 1; then
7038 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7039 fi
7040
7041 if test "$wxUSE_BUTTON" = yes; then
7042 echo "$as_me:$LINENO: result: yes" >&5
7043 echo "${ECHO_T}yes" >&6
7044 else
7045 echo "$as_me:$LINENO: result: no" >&5
7046 echo "${ECHO_T}no" >&6
7047 fi
7048
7049
7050 enablestring=
7051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7052 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7053 no_cache=0
7054 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7055 if test "${enable_bmpbutton+set}" = set; then
7056 enableval="$enable_bmpbutton"
7057
7058 if test "$enableval" = yes; then
7059 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7060 else
7061 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7062 fi
7063
7064 else
7065
7066 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7067 if test "x$LINE" != x ; then
7068 eval "DEFAULT_$LINE"
7069 else
7070 no_cache=1
7071 fi
7072
7073 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7074
7075 fi;
7076
7077 eval "$ac_cv_use_bmpbutton"
7078 if test "$no_cache" != 1; then
7079 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7080 fi
7081
7082 if test "$wxUSE_BMPBUTTON" = yes; then
7083 echo "$as_me:$LINENO: result: yes" >&5
7084 echo "${ECHO_T}yes" >&6
7085 else
7086 echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6
7088 fi
7089
7090
7091 enablestring=
7092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7093 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7094 no_cache=0
7095 # Check whether --enable-calendar or --disable-calendar was given.
7096 if test "${enable_calendar+set}" = set; then
7097 enableval="$enable_calendar"
7098
7099 if test "$enableval" = yes; then
7100 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7101 else
7102 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7103 fi
7104
7105 else
7106
7107 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7108 if test "x$LINE" != x ; then
7109 eval "DEFAULT_$LINE"
7110 else
7111 no_cache=1
7112 fi
7113
7114 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7115
7116 fi;
7117
7118 eval "$ac_cv_use_calendar"
7119 if test "$no_cache" != 1; then
7120 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7121 fi
7122
7123 if test "$wxUSE_CALCTRL" = yes; then
7124 echo "$as_me:$LINENO: result: yes" >&5
7125 echo "${ECHO_T}yes" >&6
7126 else
7127 echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6
7129 fi
7130
7131
7132 enablestring=
7133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7134 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7135 no_cache=0
7136 # Check whether --enable-caret or --disable-caret was given.
7137 if test "${enable_caret+set}" = set; then
7138 enableval="$enable_caret"
7139
7140 if test "$enableval" = yes; then
7141 ac_cv_use_caret='wxUSE_CARET=yes'
7142 else
7143 ac_cv_use_caret='wxUSE_CARET=no'
7144 fi
7145
7146 else
7147
7148 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7149 if test "x$LINE" != x ; then
7150 eval "DEFAULT_$LINE"
7151 else
7152 no_cache=1
7153 fi
7154
7155 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7156
7157 fi;
7158
7159 eval "$ac_cv_use_caret"
7160 if test "$no_cache" != 1; then
7161 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7162 fi
7163
7164 if test "$wxUSE_CARET" = yes; then
7165 echo "$as_me:$LINENO: result: yes" >&5
7166 echo "${ECHO_T}yes" >&6
7167 else
7168 echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6
7170 fi
7171
7172
7173 enablestring=
7174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7175 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7176 no_cache=0
7177 # Check whether --enable-checkbox or --disable-checkbox was given.
7178 if test "${enable_checkbox+set}" = set; then
7179 enableval="$enable_checkbox"
7180
7181 if test "$enableval" = yes; then
7182 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7183 else
7184 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7185 fi
7186
7187 else
7188
7189 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7190 if test "x$LINE" != x ; then
7191 eval "DEFAULT_$LINE"
7192 else
7193 no_cache=1
7194 fi
7195
7196 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7197
7198 fi;
7199
7200 eval "$ac_cv_use_checkbox"
7201 if test "$no_cache" != 1; then
7202 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7203 fi
7204
7205 if test "$wxUSE_CHECKBOX" = yes; then
7206 echo "$as_me:$LINENO: result: yes" >&5
7207 echo "${ECHO_T}yes" >&6
7208 else
7209 echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211 fi
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7216 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-checklst or --disable-checklst was given.
7219 if test "${enable_checklst+set}" = set; then
7220 enableval="$enable_checklst"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7224 else
7225 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7226 fi
7227
7228 else
7229
7230 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7238
7239 fi;
7240
7241 eval "$ac_cv_use_checklst"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CHECKLST" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248 echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255 enablestring=
7256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7257 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7258 no_cache=0
7259 # Check whether --enable-choice or --disable-choice was given.
7260 if test "${enable_choice+set}" = set; then
7261 enableval="$enable_choice"
7262
7263 if test "$enableval" = yes; then
7264 ac_cv_use_choice='wxUSE_CHOICE=yes'
7265 else
7266 ac_cv_use_choice='wxUSE_CHOICE=no'
7267 fi
7268
7269 else
7270
7271 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7272 if test "x$LINE" != x ; then
7273 eval "DEFAULT_$LINE"
7274 else
7275 no_cache=1
7276 fi
7277
7278 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7279
7280 fi;
7281
7282 eval "$ac_cv_use_choice"
7283 if test "$no_cache" != 1; then
7284 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7285 fi
7286
7287 if test "$wxUSE_CHOICE" = yes; then
7288 echo "$as_me:$LINENO: result: yes" >&5
7289 echo "${ECHO_T}yes" >&6
7290 else
7291 echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6
7293 fi
7294
7295
7296 enablestring=
7297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7298 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7299 no_cache=0
7300 # Check whether --enable-combobox or --disable-combobox was given.
7301 if test "${enable_combobox+set}" = set; then
7302 enableval="$enable_combobox"
7303
7304 if test "$enableval" = yes; then
7305 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7306 else
7307 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7308 fi
7309
7310 else
7311
7312 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7313 if test "x$LINE" != x ; then
7314 eval "DEFAULT_$LINE"
7315 else
7316 no_cache=1
7317 fi
7318
7319 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7320
7321 fi;
7322
7323 eval "$ac_cv_use_combobox"
7324 if test "$no_cache" != 1; then
7325 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7326 fi
7327
7328 if test "$wxUSE_COMBOBOX" = yes; then
7329 echo "$as_me:$LINENO: result: yes" >&5
7330 echo "${ECHO_T}yes" >&6
7331 else
7332 echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6
7334 fi
7335
7336
7337 enablestring=
7338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7339 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7340 no_cache=0
7341 # Check whether --enable-display or --disable-display was given.
7342 if test "${enable_display+set}" = set; then
7343 enableval="$enable_display"
7344
7345 if test "$enableval" = yes; then
7346 ac_cv_use_display='wxUSE_DISPLAY=yes'
7347 else
7348 ac_cv_use_display='wxUSE_DISPLAY=no'
7349 fi
7350
7351 else
7352
7353 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7354 if test "x$LINE" != x ; then
7355 eval "DEFAULT_$LINE"
7356 else
7357 no_cache=1
7358 fi
7359
7360 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7361
7362 fi;
7363
7364 eval "$ac_cv_use_display"
7365 if test "$no_cache" != 1; then
7366 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7367 fi
7368
7369 if test "$wxUSE_DISPLAY" = yes; then
7370 echo "$as_me:$LINENO: result: yes" >&5
7371 echo "${ECHO_T}yes" >&6
7372 else
7373 echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6
7375 fi
7376
7377
7378 enablestring=
7379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7380 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7381 no_cache=0
7382 # Check whether --enable-gauge or --disable-gauge was given.
7383 if test "${enable_gauge+set}" = set; then
7384 enableval="$enable_gauge"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7388 else
7389 ac_cv_use_gauge='wxUSE_GAUGE=no'
7390 fi
7391
7392 else
7393
7394 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7402
7403 fi;
7404
7405 eval "$ac_cv_use_gauge"
7406 if test "$no_cache" != 1; then
7407 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7408 fi
7409
7410 if test "$wxUSE_GAUGE" = yes; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412 echo "${ECHO_T}yes" >&6
7413 else
7414 echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6
7416 fi
7417
7418
7419 enablestring=
7420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7421 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7422 no_cache=0
7423 # Check whether --enable-grid or --disable-grid was given.
7424 if test "${enable_grid+set}" = set; then
7425 enableval="$enable_grid"
7426
7427 if test "$enableval" = yes; then
7428 ac_cv_use_grid='wxUSE_GRID=yes'
7429 else
7430 ac_cv_use_grid='wxUSE_GRID=no'
7431 fi
7432
7433 else
7434
7435 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7436 if test "x$LINE" != x ; then
7437 eval "DEFAULT_$LINE"
7438 else
7439 no_cache=1
7440 fi
7441
7442 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7443
7444 fi;
7445
7446 eval "$ac_cv_use_grid"
7447 if test "$no_cache" != 1; then
7448 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7449 fi
7450
7451 if test "$wxUSE_GRID" = yes; then
7452 echo "$as_me:$LINENO: result: yes" >&5
7453 echo "${ECHO_T}yes" >&6
7454 else
7455 echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6
7457 fi
7458
7459
7460 enablestring=
7461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7462 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7463 no_cache=0
7464 # Check whether --enable-imaglist or --disable-imaglist was given.
7465 if test "${enable_imaglist+set}" = set; then
7466 enableval="$enable_imaglist"
7467
7468 if test "$enableval" = yes; then
7469 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7470 else
7471 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7472 fi
7473
7474 else
7475
7476 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7477 if test "x$LINE" != x ; then
7478 eval "DEFAULT_$LINE"
7479 else
7480 no_cache=1
7481 fi
7482
7483 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7484
7485 fi;
7486
7487 eval "$ac_cv_use_imaglist"
7488 if test "$no_cache" != 1; then
7489 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7490 fi
7491
7492 if test "$wxUSE_IMAGLIST" = yes; then
7493 echo "$as_me:$LINENO: result: yes" >&5
7494 echo "${ECHO_T}yes" >&6
7495 else
7496 echo "$as_me:$LINENO: result: no" >&5
7497 echo "${ECHO_T}no" >&6
7498 fi
7499
7500
7501 enablestring=
7502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7503 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7504 no_cache=0
7505 # Check whether --enable-listbook or --disable-listbook was given.
7506 if test "${enable_listbook+set}" = set; then
7507 enableval="$enable_listbook"
7508
7509 if test "$enableval" = yes; then
7510 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7511 else
7512 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7513 fi
7514
7515 else
7516
7517 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7518 if test "x$LINE" != x ; then
7519 eval "DEFAULT_$LINE"
7520 else
7521 no_cache=1
7522 fi
7523
7524 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7525
7526 fi;
7527
7528 eval "$ac_cv_use_listbook"
7529 if test "$no_cache" != 1; then
7530 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7531 fi
7532
7533 if test "$wxUSE_LISTBOOK" = yes; then
7534 echo "$as_me:$LINENO: result: yes" >&5
7535 echo "${ECHO_T}yes" >&6
7536 else
7537 echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6
7539 fi
7540
7541
7542 enablestring=
7543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7544 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7545 no_cache=0
7546 # Check whether --enable-listbox or --disable-listbox was given.
7547 if test "${enable_listbox+set}" = set; then
7548 enableval="$enable_listbox"
7549
7550 if test "$enableval" = yes; then
7551 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7552 else
7553 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7554 fi
7555
7556 else
7557
7558 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7559 if test "x$LINE" != x ; then
7560 eval "DEFAULT_$LINE"
7561 else
7562 no_cache=1
7563 fi
7564
7565 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7566
7567 fi;
7568
7569 eval "$ac_cv_use_listbox"
7570 if test "$no_cache" != 1; then
7571 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7572 fi
7573
7574 if test "$wxUSE_LISTBOX" = yes; then
7575 echo "$as_me:$LINENO: result: yes" >&5
7576 echo "${ECHO_T}yes" >&6
7577 else
7578 echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6
7580 fi
7581
7582
7583 enablestring=
7584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7585 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7586 no_cache=0
7587 # Check whether --enable-listctrl or --disable-listctrl was given.
7588 if test "${enable_listctrl+set}" = set; then
7589 enableval="$enable_listctrl"
7590
7591 if test "$enableval" = yes; then
7592 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7593 else
7594 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7595 fi
7596
7597 else
7598
7599 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7600 if test "x$LINE" != x ; then
7601 eval "DEFAULT_$LINE"
7602 else
7603 no_cache=1
7604 fi
7605
7606 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7607
7608 fi;
7609
7610 eval "$ac_cv_use_listctrl"
7611 if test "$no_cache" != 1; then
7612 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7613 fi
7614
7615 if test "$wxUSE_LISTCTRL" = yes; then
7616 echo "$as_me:$LINENO: result: yes" >&5
7617 echo "${ECHO_T}yes" >&6
7618 else
7619 echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7621 fi
7622
7623
7624 enablestring=
7625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7626 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7627 no_cache=0
7628 # Check whether --enable-notebook or --disable-notebook was given.
7629 if test "${enable_notebook+set}" = set; then
7630 enableval="$enable_notebook"
7631
7632 if test "$enableval" = yes; then
7633 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7634 else
7635 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7636 fi
7637
7638 else
7639
7640 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7641 if test "x$LINE" != x ; then
7642 eval "DEFAULT_$LINE"
7643 else
7644 no_cache=1
7645 fi
7646
7647 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7648
7649 fi;
7650
7651 eval "$ac_cv_use_notebook"
7652 if test "$no_cache" != 1; then
7653 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7654 fi
7655
7656 if test "$wxUSE_NOTEBOOK" = yes; then
7657 echo "$as_me:$LINENO: result: yes" >&5
7658 echo "${ECHO_T}yes" >&6
7659 else
7660 echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6
7662 fi
7663
7664
7665 enablestring=
7666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7667 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7668 no_cache=0
7669 # Check whether --enable-radiobox or --disable-radiobox was given.
7670 if test "${enable_radiobox+set}" = set; then
7671 enableval="$enable_radiobox"
7672
7673 if test "$enableval" = yes; then
7674 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7675 else
7676 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7677 fi
7678
7679 else
7680
7681 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7682 if test "x$LINE" != x ; then
7683 eval "DEFAULT_$LINE"
7684 else
7685 no_cache=1
7686 fi
7687
7688 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7689
7690 fi;
7691
7692 eval "$ac_cv_use_radiobox"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_RADIOBOX" = yes; then
7698 echo "$as_me:$LINENO: result: yes" >&5
7699 echo "${ECHO_T}yes" >&6
7700 else
7701 echo "$as_me:$LINENO: result: no" >&5
7702 echo "${ECHO_T}no" >&6
7703 fi
7704
7705
7706 enablestring=
7707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7708 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7709 no_cache=0
7710 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7711 if test "${enable_radiobtn+set}" = set; then
7712 enableval="$enable_radiobtn"
7713
7714 if test "$enableval" = yes; then
7715 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7716 else
7717 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7718 fi
7719
7720 else
7721
7722 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7723 if test "x$LINE" != x ; then
7724 eval "DEFAULT_$LINE"
7725 else
7726 no_cache=1
7727 fi
7728
7729 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7730
7731 fi;
7732
7733 eval "$ac_cv_use_radiobtn"
7734 if test "$no_cache" != 1; then
7735 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7736 fi
7737
7738 if test "$wxUSE_RADIOBTN" = yes; then
7739 echo "$as_me:$LINENO: result: yes" >&5
7740 echo "${ECHO_T}yes" >&6
7741 else
7742 echo "$as_me:$LINENO: result: no" >&5
7743 echo "${ECHO_T}no" >&6
7744 fi
7745
7746
7747 enablestring=
7748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7749 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7750 no_cache=0
7751 # Check whether --enable-sash or --disable-sash was given.
7752 if test "${enable_sash+set}" = set; then
7753 enableval="$enable_sash"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_sash='wxUSE_SASH=yes'
7757 else
7758 ac_cv_use_sash='wxUSE_SASH=no'
7759 fi
7760
7761 else
7762
7763 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7771
7772 fi;
7773
7774 eval "$ac_cv_use_sash"
7775 if test "$no_cache" != 1; then
7776 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7777 fi
7778
7779 if test "$wxUSE_SASH" = yes; then
7780 echo "$as_me:$LINENO: result: yes" >&5
7781 echo "${ECHO_T}yes" >&6
7782 else
7783 echo "$as_me:$LINENO: result: no" >&5
7784 echo "${ECHO_T}no" >&6
7785 fi
7786
7787
7788 enablestring=
7789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7790 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7791 no_cache=0
7792 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7793 if test "${enable_scrollbar+set}" = set; then
7794 enableval="$enable_scrollbar"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7798 else
7799 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7800 fi
7801
7802 else
7803
7804 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7812
7813 fi;
7814
7815 eval "$ac_cv_use_scrollbar"
7816 if test "$no_cache" != 1; then
7817 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7818 fi
7819
7820 if test "$wxUSE_SCROLLBAR" = yes; then
7821 echo "$as_me:$LINENO: result: yes" >&5
7822 echo "${ECHO_T}yes" >&6
7823 else
7824 echo "$as_me:$LINENO: result: no" >&5
7825 echo "${ECHO_T}no" >&6
7826 fi
7827
7828
7829 enablestring=
7830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7831 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7832 no_cache=0
7833 # Check whether --enable-slider or --disable-slider was given.
7834 if test "${enable_slider+set}" = set; then
7835 enableval="$enable_slider"
7836
7837 if test "$enableval" = yes; then
7838 ac_cv_use_slider='wxUSE_SLIDER=yes'
7839 else
7840 ac_cv_use_slider='wxUSE_SLIDER=no'
7841 fi
7842
7843 else
7844
7845 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7846 if test "x$LINE" != x ; then
7847 eval "DEFAULT_$LINE"
7848 else
7849 no_cache=1
7850 fi
7851
7852 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7853
7854 fi;
7855
7856 eval "$ac_cv_use_slider"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_SLIDER" = yes; then
7862 echo "$as_me:$LINENO: result: yes" >&5
7863 echo "${ECHO_T}yes" >&6
7864 else
7865 echo "$as_me:$LINENO: result: no" >&5
7866 echo "${ECHO_T}no" >&6
7867 fi
7868
7869
7870 enablestring=
7871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7872 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7873 no_cache=0
7874 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7875 if test "${enable_spinbtn+set}" = set; then
7876 enableval="$enable_spinbtn"
7877
7878 if test "$enableval" = yes; then
7879 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7880 else
7881 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7882 fi
7883
7884 else
7885
7886 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7887 if test "x$LINE" != x ; then
7888 eval "DEFAULT_$LINE"
7889 else
7890 no_cache=1
7891 fi
7892
7893 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7894
7895 fi;
7896
7897 eval "$ac_cv_use_spinbtn"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_SPINBTN" = yes; then
7903 echo "$as_me:$LINENO: result: yes" >&5
7904 echo "${ECHO_T}yes" >&6
7905 else
7906 echo "$as_me:$LINENO: result: no" >&5
7907 echo "${ECHO_T}no" >&6
7908 fi
7909
7910
7911 enablestring=
7912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7913 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7914 no_cache=0
7915 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7916 if test "${enable_spinctrl+set}" = set; then
7917 enableval="$enable_spinctrl"
7918
7919 if test "$enableval" = yes; then
7920 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7921 else
7922 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7923 fi
7924
7925 else
7926
7927 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7928 if test "x$LINE" != x ; then
7929 eval "DEFAULT_$LINE"
7930 else
7931 no_cache=1
7932 fi
7933
7934 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7935
7936 fi;
7937
7938 eval "$ac_cv_use_spinctrl"
7939 if test "$no_cache" != 1; then
7940 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7941 fi
7942
7943 if test "$wxUSE_SPINCTRL" = yes; then
7944 echo "$as_me:$LINENO: result: yes" >&5
7945 echo "${ECHO_T}yes" >&6
7946 else
7947 echo "$as_me:$LINENO: result: no" >&5
7948 echo "${ECHO_T}no" >&6
7949 fi
7950
7951
7952 enablestring=
7953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7954 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7955 no_cache=0
7956 # Check whether --enable-splitter or --disable-splitter was given.
7957 if test "${enable_splitter+set}" = set; then
7958 enableval="$enable_splitter"
7959
7960 if test "$enableval" = yes; then
7961 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7962 else
7963 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7964 fi
7965
7966 else
7967
7968 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7969 if test "x$LINE" != x ; then
7970 eval "DEFAULT_$LINE"
7971 else
7972 no_cache=1
7973 fi
7974
7975 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7976
7977 fi;
7978
7979 eval "$ac_cv_use_splitter"
7980 if test "$no_cache" != 1; then
7981 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7982 fi
7983
7984 if test "$wxUSE_SPLITTER" = yes; then
7985 echo "$as_me:$LINENO: result: yes" >&5
7986 echo "${ECHO_T}yes" >&6
7987 else
7988 echo "$as_me:$LINENO: result: no" >&5
7989 echo "${ECHO_T}no" >&6
7990 fi
7991
7992
7993 enablestring=
7994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7995 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7996 no_cache=0
7997 # Check whether --enable-statbmp or --disable-statbmp was given.
7998 if test "${enable_statbmp+set}" = set; then
7999 enableval="$enable_statbmp"
8000
8001 if test "$enableval" = yes; then
8002 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8003 else
8004 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8005 fi
8006
8007 else
8008
8009 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8010 if test "x$LINE" != x ; then
8011 eval "DEFAULT_$LINE"
8012 else
8013 no_cache=1
8014 fi
8015
8016 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8017
8018 fi;
8019
8020 eval "$ac_cv_use_statbmp"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_STATBMP" = yes; then
8026 echo "$as_me:$LINENO: result: yes" >&5
8027 echo "${ECHO_T}yes" >&6
8028 else
8029 echo "$as_me:$LINENO: result: no" >&5
8030 echo "${ECHO_T}no" >&6
8031 fi
8032
8033
8034 enablestring=
8035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8036 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8037 no_cache=0
8038 # Check whether --enable-statbox or --disable-statbox was given.
8039 if test "${enable_statbox+set}" = set; then
8040 enableval="$enable_statbox"
8041
8042 if test "$enableval" = yes; then
8043 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8044 else
8045 ac_cv_use_statbox='wxUSE_STATBOX=no'
8046 fi
8047
8048 else
8049
8050 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8051 if test "x$LINE" != x ; then
8052 eval "DEFAULT_$LINE"
8053 else
8054 no_cache=1
8055 fi
8056
8057 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8058
8059 fi;
8060
8061 eval "$ac_cv_use_statbox"
8062 if test "$no_cache" != 1; then
8063 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8064 fi
8065
8066 if test "$wxUSE_STATBOX" = yes; then
8067 echo "$as_me:$LINENO: result: yes" >&5
8068 echo "${ECHO_T}yes" >&6
8069 else
8070 echo "$as_me:$LINENO: result: no" >&5
8071 echo "${ECHO_T}no" >&6
8072 fi
8073
8074
8075 enablestring=
8076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8077 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8078 no_cache=0
8079 # Check whether --enable-statline or --disable-statline was given.
8080 if test "${enable_statline+set}" = set; then
8081 enableval="$enable_statline"
8082
8083 if test "$enableval" = yes; then
8084 ac_cv_use_statline='wxUSE_STATLINE=yes'
8085 else
8086 ac_cv_use_statline='wxUSE_STATLINE=no'
8087 fi
8088
8089 else
8090
8091 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8092 if test "x$LINE" != x ; then
8093 eval "DEFAULT_$LINE"
8094 else
8095 no_cache=1
8096 fi
8097
8098 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8099
8100 fi;
8101
8102 eval "$ac_cv_use_statline"
8103 if test "$no_cache" != 1; then
8104 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8105 fi
8106
8107 if test "$wxUSE_STATLINE" = yes; then
8108 echo "$as_me:$LINENO: result: yes" >&5
8109 echo "${ECHO_T}yes" >&6
8110 else
8111 echo "$as_me:$LINENO: result: no" >&5
8112 echo "${ECHO_T}no" >&6
8113 fi
8114
8115
8116 enablestring=
8117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8118 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8119 no_cache=0
8120 # Check whether --enable-stattext or --disable-stattext was given.
8121 if test "${enable_stattext+set}" = set; then
8122 enableval="$enable_stattext"
8123
8124 if test "$enableval" = yes; then
8125 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8126 else
8127 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8128 fi
8129
8130 else
8131
8132 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8133 if test "x$LINE" != x ; then
8134 eval "DEFAULT_$LINE"
8135 else
8136 no_cache=1
8137 fi
8138
8139 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8140
8141 fi;
8142
8143 eval "$ac_cv_use_stattext"
8144 if test "$no_cache" != 1; then
8145 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8146 fi
8147
8148 if test "$wxUSE_STATTEXT" = yes; then
8149 echo "$as_me:$LINENO: result: yes" >&5
8150 echo "${ECHO_T}yes" >&6
8151 else
8152 echo "$as_me:$LINENO: result: no" >&5
8153 echo "${ECHO_T}no" >&6
8154 fi
8155
8156
8157 enablestring=
8158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8159 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8160 no_cache=0
8161 # Check whether --enable-statusbar or --disable-statusbar was given.
8162 if test "${enable_statusbar+set}" = set; then
8163 enableval="$enable_statusbar"
8164
8165 if test "$enableval" = yes; then
8166 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8167 else
8168 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8169 fi
8170
8171 else
8172
8173 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8174 if test "x$LINE" != x ; then
8175 eval "DEFAULT_$LINE"
8176 else
8177 no_cache=1
8178 fi
8179
8180 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8181
8182 fi;
8183
8184 eval "$ac_cv_use_statusbar"
8185 if test "$no_cache" != 1; then
8186 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8187 fi
8188
8189 if test "$wxUSE_STATUSBAR" = yes; then
8190 echo "$as_me:$LINENO: result: yes" >&5
8191 echo "${ECHO_T}yes" >&6
8192 else
8193 echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6
8195 fi
8196
8197
8198 enablestring=
8199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8200 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8201 no_cache=0
8202 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8203 if test "${enable_tabdialog+set}" = set; then
8204 enableval="$enable_tabdialog"
8205
8206 if test "$enableval" = yes; then
8207 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8208 else
8209 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8210 fi
8211
8212 else
8213
8214 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8215 if test "x$LINE" != x ; then
8216 eval "DEFAULT_$LINE"
8217 else
8218 no_cache=1
8219 fi
8220
8221 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8222
8223 fi;
8224
8225 eval "$ac_cv_use_tabdialog"
8226 if test "$no_cache" != 1; then
8227 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8228 fi
8229
8230 if test "$wxUSE_TABDIALOG" = yes; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232 echo "${ECHO_T}yes" >&6
8233 else
8234 echo "$as_me:$LINENO: result: no" >&5
8235 echo "${ECHO_T}no" >&6
8236 fi
8237
8238
8239 enablestring=
8240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8241 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8242 no_cache=0
8243 # Check whether --enable-textctrl or --disable-textctrl was given.
8244 if test "${enable_textctrl+set}" = set; then
8245 enableval="$enable_textctrl"
8246
8247 if test "$enableval" = yes; then
8248 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8249 else
8250 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8251 fi
8252
8253 else
8254
8255 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8256 if test "x$LINE" != x ; then
8257 eval "DEFAULT_$LINE"
8258 else
8259 no_cache=1
8260 fi
8261
8262 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8263
8264 fi;
8265
8266 eval "$ac_cv_use_textctrl"
8267 if test "$no_cache" != 1; then
8268 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8269 fi
8270
8271 if test "$wxUSE_TEXTCTRL" = yes; then
8272 echo "$as_me:$LINENO: result: yes" >&5
8273 echo "${ECHO_T}yes" >&6
8274 else
8275 echo "$as_me:$LINENO: result: no" >&5
8276 echo "${ECHO_T}no" >&6
8277 fi
8278
8279
8280 enablestring=
8281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8282 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8283 no_cache=0
8284 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8285 if test "${enable_togglebtn+set}" = set; then
8286 enableval="$enable_togglebtn"
8287
8288 if test "$enableval" = yes; then
8289 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8290 else
8291 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8292 fi
8293
8294 else
8295
8296 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8297 if test "x$LINE" != x ; then
8298 eval "DEFAULT_$LINE"
8299 else
8300 no_cache=1
8301 fi
8302
8303 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8304
8305 fi;
8306
8307 eval "$ac_cv_use_togglebtn"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_TOGGLEBTN" = yes; then
8313 echo "$as_me:$LINENO: result: yes" >&5
8314 echo "${ECHO_T}yes" >&6
8315 else
8316 echo "$as_me:$LINENO: result: no" >&5
8317 echo "${ECHO_T}no" >&6
8318 fi
8319
8320
8321 enablestring=
8322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8323 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8324 no_cache=0
8325 # Check whether --enable-toolbar or --disable-toolbar was given.
8326 if test "${enable_toolbar+set}" = set; then
8327 enableval="$enable_toolbar"
8328
8329 if test "$enableval" = yes; then
8330 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8331 else
8332 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8333 fi
8334
8335 else
8336
8337 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8338 if test "x$LINE" != x ; then
8339 eval "DEFAULT_$LINE"
8340 else
8341 no_cache=1
8342 fi
8343
8344 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8345
8346 fi;
8347
8348 eval "$ac_cv_use_toolbar"
8349 if test "$no_cache" != 1; then
8350 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8351 fi
8352
8353 if test "$wxUSE_TOOLBAR" = yes; then
8354 echo "$as_me:$LINENO: result: yes" >&5
8355 echo "${ECHO_T}yes" >&6
8356 else
8357 echo "$as_me:$LINENO: result: no" >&5
8358 echo "${ECHO_T}no" >&6
8359 fi
8360
8361
8362 enablestring=
8363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8364 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8365 no_cache=0
8366 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8367 if test "${enable_tbarnative+set}" = set; then
8368 enableval="$enable_tbarnative"
8369
8370 if test "$enableval" = yes; then
8371 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8372 else
8373 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8374 fi
8375
8376 else
8377
8378 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8379 if test "x$LINE" != x ; then
8380 eval "DEFAULT_$LINE"
8381 else
8382 no_cache=1
8383 fi
8384
8385 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8386
8387 fi;
8388
8389 eval "$ac_cv_use_tbarnative"
8390 if test "$no_cache" != 1; then
8391 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8392 fi
8393
8394 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8395 echo "$as_me:$LINENO: result: yes" >&5
8396 echo "${ECHO_T}yes" >&6
8397 else
8398 echo "$as_me:$LINENO: result: no" >&5
8399 echo "${ECHO_T}no" >&6
8400 fi
8401
8402
8403 enablestring=
8404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8405 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8406 no_cache=0
8407 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8408 if test "${enable_tbarsmpl+set}" = set; then
8409 enableval="$enable_tbarsmpl"
8410
8411 if test "$enableval" = yes; then
8412 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8413 else
8414 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8415 fi
8416
8417 else
8418
8419 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8420 if test "x$LINE" != x ; then
8421 eval "DEFAULT_$LINE"
8422 else
8423 no_cache=1
8424 fi
8425
8426 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8427
8428 fi;
8429
8430 eval "$ac_cv_use_tbarsmpl"
8431 if test "$no_cache" != 1; then
8432 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8433 fi
8434
8435 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8436 echo "$as_me:$LINENO: result: yes" >&5
8437 echo "${ECHO_T}yes" >&6
8438 else
8439 echo "$as_me:$LINENO: result: no" >&5
8440 echo "${ECHO_T}no" >&6
8441 fi
8442
8443
8444 enablestring=
8445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8446 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8447 no_cache=0
8448 # Check whether --enable-treectrl or --disable-treectrl was given.
8449 if test "${enable_treectrl+set}" = set; then
8450 enableval="$enable_treectrl"
8451
8452 if test "$enableval" = yes; then
8453 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8454 else
8455 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8456 fi
8457
8458 else
8459
8460 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8461 if test "x$LINE" != x ; then
8462 eval "DEFAULT_$LINE"
8463 else
8464 no_cache=1
8465 fi
8466
8467 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8468
8469 fi;
8470
8471 eval "$ac_cv_use_treectrl"
8472 if test "$no_cache" != 1; then
8473 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8474 fi
8475
8476 if test "$wxUSE_TREECTRL" = yes; then
8477 echo "$as_me:$LINENO: result: yes" >&5
8478 echo "${ECHO_T}yes" >&6
8479 else
8480 echo "$as_me:$LINENO: result: no" >&5
8481 echo "${ECHO_T}no" >&6
8482 fi
8483
8484
8485 enablestring=
8486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8487 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8488 no_cache=0
8489 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8490 if test "${enable_tipwindow+set}" = set; then
8491 enableval="$enable_tipwindow"
8492
8493 if test "$enableval" = yes; then
8494 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8495 else
8496 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8497 fi
8498
8499 else
8500
8501 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8502 if test "x$LINE" != x ; then
8503 eval "DEFAULT_$LINE"
8504 else
8505 no_cache=1
8506 fi
8507
8508 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8509
8510 fi;
8511
8512 eval "$ac_cv_use_tipwindow"
8513 if test "$no_cache" != 1; then
8514 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8515 fi
8516
8517 if test "$wxUSE_TIPWINDOW" = yes; then
8518 echo "$as_me:$LINENO: result: yes" >&5
8519 echo "${ECHO_T}yes" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8523 fi
8524
8525
8526 enablestring=
8527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8528 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8529 no_cache=0
8530 # Check whether --enable-popupwin or --disable-popupwin was given.
8531 if test "${enable_popupwin+set}" = set; then
8532 enableval="$enable_popupwin"
8533
8534 if test "$enableval" = yes; then
8535 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8536 else
8537 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8538 fi
8539
8540 else
8541
8542 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8543 if test "x$LINE" != x ; then
8544 eval "DEFAULT_$LINE"
8545 else
8546 no_cache=1
8547 fi
8548
8549 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8550
8551 fi;
8552
8553 eval "$ac_cv_use_popupwin"
8554 if test "$no_cache" != 1; then
8555 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8556 fi
8557
8558 if test "$wxUSE_POPUPWIN" = yes; then
8559 echo "$as_me:$LINENO: result: yes" >&5
8560 echo "${ECHO_T}yes" >&6
8561 else
8562 echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6
8564 fi
8565
8566
8567
8568
8569 enablestring=
8570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8571 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8572 no_cache=0
8573 # Check whether --enable-commondlg or --disable-commondlg was given.
8574 if test "${enable_commondlg+set}" = set; then
8575 enableval="$enable_commondlg"
8576
8577 if test "$enableval" = yes; then
8578 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8579 else
8580 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8581 fi
8582
8583 else
8584
8585 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8586 if test "x$LINE" != x ; then
8587 eval "DEFAULT_$LINE"
8588 else
8589 no_cache=1
8590 fi
8591
8592 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8593
8594 fi;
8595
8596 eval "$ac_cv_use_commondlg"
8597 if test "$no_cache" != 1; then
8598 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8599 fi
8600
8601 if test "$wxUSE_COMMONDLGS" = yes; then
8602 echo "$as_me:$LINENO: result: yes" >&5
8603 echo "${ECHO_T}yes" >&6
8604 else
8605 echo "$as_me:$LINENO: result: no" >&5
8606 echo "${ECHO_T}no" >&6
8607 fi
8608
8609
8610 enablestring=
8611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8612 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8613 no_cache=0
8614 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8615 if test "${enable_choicedlg+set}" = set; then
8616 enableval="$enable_choicedlg"
8617
8618 if test "$enableval" = yes; then
8619 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8620 else
8621 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8622 fi
8623
8624 else
8625
8626 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8627 if test "x$LINE" != x ; then
8628 eval "DEFAULT_$LINE"
8629 else
8630 no_cache=1
8631 fi
8632
8633 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8634
8635 fi;
8636
8637 eval "$ac_cv_use_choicedlg"
8638 if test "$no_cache" != 1; then
8639 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8640 fi
8641
8642 if test "$wxUSE_CHOICEDLG" = yes; then
8643 echo "$as_me:$LINENO: result: yes" >&5
8644 echo "${ECHO_T}yes" >&6
8645 else
8646 echo "$as_me:$LINENO: result: no" >&5
8647 echo "${ECHO_T}no" >&6
8648 fi
8649
8650
8651 enablestring=
8652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8653 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8654 no_cache=0
8655 # Check whether --enable-coldlg or --disable-coldlg was given.
8656 if test "${enable_coldlg+set}" = set; then
8657 enableval="$enable_coldlg"
8658
8659 if test "$enableval" = yes; then
8660 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8661 else
8662 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8663 fi
8664
8665 else
8666
8667 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8668 if test "x$LINE" != x ; then
8669 eval "DEFAULT_$LINE"
8670 else
8671 no_cache=1
8672 fi
8673
8674 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8675
8676 fi;
8677
8678 eval "$ac_cv_use_coldlg"
8679 if test "$no_cache" != 1; then
8680 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8681 fi
8682
8683 if test "$wxUSE_COLOURDLG" = yes; then
8684 echo "$as_me:$LINENO: result: yes" >&5
8685 echo "${ECHO_T}yes" >&6
8686 else
8687 echo "$as_me:$LINENO: result: no" >&5
8688 echo "${ECHO_T}no" >&6
8689 fi
8690
8691
8692 enablestring=
8693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8694 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8695 no_cache=0
8696 # Check whether --enable-filedlg or --disable-filedlg was given.
8697 if test "${enable_filedlg+set}" = set; then
8698 enableval="$enable_filedlg"
8699
8700 if test "$enableval" = yes; then
8701 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8702 else
8703 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8704 fi
8705
8706 else
8707
8708 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8709 if test "x$LINE" != x ; then
8710 eval "DEFAULT_$LINE"
8711 else
8712 no_cache=1
8713 fi
8714
8715 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8716
8717 fi;
8718
8719 eval "$ac_cv_use_filedlg"
8720 if test "$no_cache" != 1; then
8721 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8722 fi
8723
8724 if test "$wxUSE_FILEDLG" = yes; then
8725 echo "$as_me:$LINENO: result: yes" >&5
8726 echo "${ECHO_T}yes" >&6
8727 else
8728 echo "$as_me:$LINENO: result: no" >&5
8729 echo "${ECHO_T}no" >&6
8730 fi
8731
8732
8733 enablestring=
8734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8735 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8736 no_cache=0
8737 # Check whether --enable-finddlg or --disable-finddlg was given.
8738 if test "${enable_finddlg+set}" = set; then
8739 enableval="$enable_finddlg"
8740
8741 if test "$enableval" = yes; then
8742 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8743 else
8744 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8745 fi
8746
8747 else
8748
8749 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8750 if test "x$LINE" != x ; then
8751 eval "DEFAULT_$LINE"
8752 else
8753 no_cache=1
8754 fi
8755
8756 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8757
8758 fi;
8759
8760 eval "$ac_cv_use_finddlg"
8761 if test "$no_cache" != 1; then
8762 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8763 fi
8764
8765 if test "$wxUSE_FINDREPLDLG" = yes; then
8766 echo "$as_me:$LINENO: result: yes" >&5
8767 echo "${ECHO_T}yes" >&6
8768 else
8769 echo "$as_me:$LINENO: result: no" >&5
8770 echo "${ECHO_T}no" >&6
8771 fi
8772
8773
8774 enablestring=
8775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8776 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8777 no_cache=0
8778 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8779 if test "${enable_fontdlg+set}" = set; then
8780 enableval="$enable_fontdlg"
8781
8782 if test "$enableval" = yes; then
8783 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8784 else
8785 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8786 fi
8787
8788 else
8789
8790 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8791 if test "x$LINE" != x ; then
8792 eval "DEFAULT_$LINE"
8793 else
8794 no_cache=1
8795 fi
8796
8797 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8798
8799 fi;
8800
8801 eval "$ac_cv_use_fontdlg"
8802 if test "$no_cache" != 1; then
8803 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8804 fi
8805
8806 if test "$wxUSE_FONTDLG" = yes; then
8807 echo "$as_me:$LINENO: result: yes" >&5
8808 echo "${ECHO_T}yes" >&6
8809 else
8810 echo "$as_me:$LINENO: result: no" >&5
8811 echo "${ECHO_T}no" >&6
8812 fi
8813
8814
8815 enablestring=
8816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8817 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8818 no_cache=0
8819 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8820 if test "${enable_dirdlg+set}" = set; then
8821 enableval="$enable_dirdlg"
8822
8823 if test "$enableval" = yes; then
8824 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8825 else
8826 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8827 fi
8828
8829 else
8830
8831 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8832 if test "x$LINE" != x ; then
8833 eval "DEFAULT_$LINE"
8834 else
8835 no_cache=1
8836 fi
8837
8838 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8839
8840 fi;
8841
8842 eval "$ac_cv_use_dirdlg"
8843 if test "$no_cache" != 1; then
8844 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8845 fi
8846
8847 if test "$wxUSE_DIRDLG" = yes; then
8848 echo "$as_me:$LINENO: result: yes" >&5
8849 echo "${ECHO_T}yes" >&6
8850 else
8851 echo "$as_me:$LINENO: result: no" >&5
8852 echo "${ECHO_T}no" >&6
8853 fi
8854
8855
8856 enablestring=
8857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8858 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8859 no_cache=0
8860 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8861 if test "${enable_msgdlg+set}" = set; then
8862 enableval="$enable_msgdlg"
8863
8864 if test "$enableval" = yes; then
8865 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8866 else
8867 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8868 fi
8869
8870 else
8871
8872 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8873 if test "x$LINE" != x ; then
8874 eval "DEFAULT_$LINE"
8875 else
8876 no_cache=1
8877 fi
8878
8879 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8880
8881 fi;
8882
8883 eval "$ac_cv_use_msgdlg"
8884 if test "$no_cache" != 1; then
8885 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8886 fi
8887
8888 if test "$wxUSE_MSGDLG" = yes; then
8889 echo "$as_me:$LINENO: result: yes" >&5
8890 echo "${ECHO_T}yes" >&6
8891 else
8892 echo "$as_me:$LINENO: result: no" >&5
8893 echo "${ECHO_T}no" >&6
8894 fi
8895
8896
8897 enablestring=
8898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8899 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8900 no_cache=0
8901 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8902 if test "${enable_numberdlg+set}" = set; then
8903 enableval="$enable_numberdlg"
8904
8905 if test "$enableval" = yes; then
8906 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8907 else
8908 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8909 fi
8910
8911 else
8912
8913 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8914 if test "x$LINE" != x ; then
8915 eval "DEFAULT_$LINE"
8916 else
8917 no_cache=1
8918 fi
8919
8920 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8921
8922 fi;
8923
8924 eval "$ac_cv_use_numberdlg"
8925 if test "$no_cache" != 1; then
8926 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8927 fi
8928
8929 if test "$wxUSE_NUMBERDLG" = yes; then
8930 echo "$as_me:$LINENO: result: yes" >&5
8931 echo "${ECHO_T}yes" >&6
8932 else
8933 echo "$as_me:$LINENO: result: no" >&5
8934 echo "${ECHO_T}no" >&6
8935 fi
8936
8937
8938 enablestring=
8939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8940 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8941 no_cache=0
8942 # Check whether --enable-splash or --disable-splash was given.
8943 if test "${enable_splash+set}" = set; then
8944 enableval="$enable_splash"
8945
8946 if test "$enableval" = yes; then
8947 ac_cv_use_splash='wxUSE_SPLASH=yes'
8948 else
8949 ac_cv_use_splash='wxUSE_SPLASH=no'
8950 fi
8951
8952 else
8953
8954 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8955 if test "x$LINE" != x ; then
8956 eval "DEFAULT_$LINE"
8957 else
8958 no_cache=1
8959 fi
8960
8961 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8962
8963 fi;
8964
8965 eval "$ac_cv_use_splash"
8966 if test "$no_cache" != 1; then
8967 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8968 fi
8969
8970 if test "$wxUSE_SPLASH" = yes; then
8971 echo "$as_me:$LINENO: result: yes" >&5
8972 echo "${ECHO_T}yes" >&6
8973 else
8974 echo "$as_me:$LINENO: result: no" >&5
8975 echo "${ECHO_T}no" >&6
8976 fi
8977
8978
8979 enablestring=
8980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8981 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8982 no_cache=0
8983 # Check whether --enable-textdlg or --disable-textdlg was given.
8984 if test "${enable_textdlg+set}" = set; then
8985 enableval="$enable_textdlg"
8986
8987 if test "$enableval" = yes; then
8988 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8989 else
8990 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8991 fi
8992
8993 else
8994
8995 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8996 if test "x$LINE" != x ; then
8997 eval "DEFAULT_$LINE"
8998 else
8999 no_cache=1
9000 fi
9001
9002 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9003
9004 fi;
9005
9006 eval "$ac_cv_use_textdlg"
9007 if test "$no_cache" != 1; then
9008 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9009 fi
9010
9011 if test "$wxUSE_TEXTDLG" = yes; then
9012 echo "$as_me:$LINENO: result: yes" >&5
9013 echo "${ECHO_T}yes" >&6
9014 else
9015 echo "$as_me:$LINENO: result: no" >&5
9016 echo "${ECHO_T}no" >&6
9017 fi
9018
9019
9020 enablestring=
9021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9022 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9023 no_cache=0
9024 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9025 if test "${enable_tipdlg+set}" = set; then
9026 enableval="$enable_tipdlg"
9027
9028 if test "$enableval" = yes; then
9029 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9030 else
9031 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9032 fi
9033
9034 else
9035
9036 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9037 if test "x$LINE" != x ; then
9038 eval "DEFAULT_$LINE"
9039 else
9040 no_cache=1
9041 fi
9042
9043 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9044
9045 fi;
9046
9047 eval "$ac_cv_use_tipdlg"
9048 if test "$no_cache" != 1; then
9049 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9050 fi
9051
9052 if test "$wxUSE_STARTUP_TIPS" = yes; then
9053 echo "$as_me:$LINENO: result: yes" >&5
9054 echo "${ECHO_T}yes" >&6
9055 else
9056 echo "$as_me:$LINENO: result: no" >&5
9057 echo "${ECHO_T}no" >&6
9058 fi
9059
9060
9061 enablestring=
9062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9063 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9064 no_cache=0
9065 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9066 if test "${enable_progressdlg+set}" = set; then
9067 enableval="$enable_progressdlg"
9068
9069 if test "$enableval" = yes; then
9070 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9071 else
9072 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9073 fi
9074
9075 else
9076
9077 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9078 if test "x$LINE" != x ; then
9079 eval "DEFAULT_$LINE"
9080 else
9081 no_cache=1
9082 fi
9083
9084 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9085
9086 fi;
9087
9088 eval "$ac_cv_use_progressdlg"
9089 if test "$no_cache" != 1; then
9090 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9091 fi
9092
9093 if test "$wxUSE_PROGRESSDLG" = yes; then
9094 echo "$as_me:$LINENO: result: yes" >&5
9095 echo "${ECHO_T}yes" >&6
9096 else
9097 echo "$as_me:$LINENO: result: no" >&5
9098 echo "${ECHO_T}no" >&6
9099 fi
9100
9101
9102 enablestring=
9103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9104 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9105 no_cache=0
9106 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9107 if test "${enable_wizarddlg+set}" = set; then
9108 enableval="$enable_wizarddlg"
9109
9110 if test "$enableval" = yes; then
9111 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9112 else
9113 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9114 fi
9115
9116 else
9117
9118 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9119 if test "x$LINE" != x ; then
9120 eval "DEFAULT_$LINE"
9121 else
9122 no_cache=1
9123 fi
9124
9125 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9126
9127 fi;
9128
9129 eval "$ac_cv_use_wizarddlg"
9130 if test "$no_cache" != 1; then
9131 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9132 fi
9133
9134 if test "$wxUSE_WIZARDDLG" = yes; then
9135 echo "$as_me:$LINENO: result: yes" >&5
9136 echo "${ECHO_T}yes" >&6
9137 else
9138 echo "$as_me:$LINENO: result: no" >&5
9139 echo "${ECHO_T}no" >&6
9140 fi
9141
9142
9143
9144
9145 enablestring=
9146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9147 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9148 no_cache=0
9149 # Check whether --enable-menus or --disable-menus was given.
9150 if test "${enable_menus+set}" = set; then
9151 enableval="$enable_menus"
9152
9153 if test "$enableval" = yes; then
9154 ac_cv_use_menus='wxUSE_MENUS=yes'
9155 else
9156 ac_cv_use_menus='wxUSE_MENUS=no'
9157 fi
9158
9159 else
9160
9161 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9162 if test "x$LINE" != x ; then
9163 eval "DEFAULT_$LINE"
9164 else
9165 no_cache=1
9166 fi
9167
9168 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9169
9170 fi;
9171
9172 eval "$ac_cv_use_menus"
9173 if test "$no_cache" != 1; then
9174 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9175 fi
9176
9177 if test "$wxUSE_MENUS" = yes; then
9178 echo "$as_me:$LINENO: result: yes" >&5
9179 echo "${ECHO_T}yes" >&6
9180 else
9181 echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6
9183 fi
9184
9185
9186 enablestring=
9187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9188 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9189 no_cache=0
9190 # Check whether --enable-miniframe or --disable-miniframe was given.
9191 if test "${enable_miniframe+set}" = set; then
9192 enableval="$enable_miniframe"
9193
9194 if test "$enableval" = yes; then
9195 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9196 else
9197 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9198 fi
9199
9200 else
9201
9202 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9203 if test "x$LINE" != x ; then
9204 eval "DEFAULT_$LINE"
9205 else
9206 no_cache=1
9207 fi
9208
9209 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9210
9211 fi;
9212
9213 eval "$ac_cv_use_miniframe"
9214 if test "$no_cache" != 1; then
9215 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9216 fi
9217
9218 if test "$wxUSE_MINIFRAME" = yes; then
9219 echo "$as_me:$LINENO: result: yes" >&5
9220 echo "${ECHO_T}yes" >&6
9221 else
9222 echo "$as_me:$LINENO: result: no" >&5
9223 echo "${ECHO_T}no" >&6
9224 fi
9225
9226
9227 enablestring=
9228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9229 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9230 no_cache=0
9231 # Check whether --enable-tooltips or --disable-tooltips was given.
9232 if test "${enable_tooltips+set}" = set; then
9233 enableval="$enable_tooltips"
9234
9235 if test "$enableval" = yes; then
9236 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9237 else
9238 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9239 fi
9240
9241 else
9242
9243 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9244 if test "x$LINE" != x ; then
9245 eval "DEFAULT_$LINE"
9246 else
9247 no_cache=1
9248 fi
9249
9250 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9251
9252 fi;
9253
9254 eval "$ac_cv_use_tooltips"
9255 if test "$no_cache" != 1; then
9256 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9257 fi
9258
9259 if test "$wxUSE_TOOLTIPS" = yes; then
9260 echo "$as_me:$LINENO: result: yes" >&5
9261 echo "${ECHO_T}yes" >&6
9262 else
9263 echo "$as_me:$LINENO: result: no" >&5
9264 echo "${ECHO_T}no" >&6
9265 fi
9266
9267
9268 enablestring=
9269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9270 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9271 no_cache=0
9272 # Check whether --enable-splines or --disable-splines was given.
9273 if test "${enable_splines+set}" = set; then
9274 enableval="$enable_splines"
9275
9276 if test "$enableval" = yes; then
9277 ac_cv_use_splines='wxUSE_SPLINES=yes'
9278 else
9279 ac_cv_use_splines='wxUSE_SPLINES=no'
9280 fi
9281
9282 else
9283
9284 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9285 if test "x$LINE" != x ; then
9286 eval "DEFAULT_$LINE"
9287 else
9288 no_cache=1
9289 fi
9290
9291 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9292
9293 fi;
9294
9295 eval "$ac_cv_use_splines"
9296 if test "$no_cache" != 1; then
9297 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9298 fi
9299
9300 if test "$wxUSE_SPLINES" = yes; then
9301 echo "$as_me:$LINENO: result: yes" >&5
9302 echo "${ECHO_T}yes" >&6
9303 else
9304 echo "$as_me:$LINENO: result: no" >&5
9305 echo "${ECHO_T}no" >&6
9306 fi
9307
9308
9309 enablestring=
9310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9311 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9312 no_cache=0
9313 # Check whether --enable-validators or --disable-validators was given.
9314 if test "${enable_validators+set}" = set; then
9315 enableval="$enable_validators"
9316
9317 if test "$enableval" = yes; then
9318 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9319 else
9320 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9321 fi
9322
9323 else
9324
9325 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9326 if test "x$LINE" != x ; then
9327 eval "DEFAULT_$LINE"
9328 else
9329 no_cache=1
9330 fi
9331
9332 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9333
9334 fi;
9335
9336 eval "$ac_cv_use_validators"
9337 if test "$no_cache" != 1; then
9338 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9339 fi
9340
9341 if test "$wxUSE_VALIDATORS" = yes; then
9342 echo "$as_me:$LINENO: result: yes" >&5
9343 echo "${ECHO_T}yes" >&6
9344 else
9345 echo "$as_me:$LINENO: result: no" >&5
9346 echo "${ECHO_T}no" >&6
9347 fi
9348
9349
9350 enablestring=
9351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9352 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9353 no_cache=0
9354 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9355 if test "${enable_busyinfo+set}" = set; then
9356 enableval="$enable_busyinfo"
9357
9358 if test "$enableval" = yes; then
9359 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9360 else
9361 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9362 fi
9363
9364 else
9365
9366 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9367 if test "x$LINE" != x ; then
9368 eval "DEFAULT_$LINE"
9369 else
9370 no_cache=1
9371 fi
9372
9373 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9374
9375 fi;
9376
9377 eval "$ac_cv_use_busyinfo"
9378 if test "$no_cache" != 1; then
9379 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9380 fi
9381
9382 if test "$wxUSE_BUSYINFO" = yes; then
9383 echo "$as_me:$LINENO: result: yes" >&5
9384 echo "${ECHO_T}yes" >&6
9385 else
9386 echo "$as_me:$LINENO: result: no" >&5
9387 echo "${ECHO_T}no" >&6
9388 fi
9389
9390
9391 enablestring=
9392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9393 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9394 no_cache=0
9395 # Check whether --enable-joystick or --disable-joystick was given.
9396 if test "${enable_joystick+set}" = set; then
9397 enableval="$enable_joystick"
9398
9399 if test "$enableval" = yes; then
9400 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9401 else
9402 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9403 fi
9404
9405 else
9406
9407 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9408 if test "x$LINE" != x ; then
9409 eval "DEFAULT_$LINE"
9410 else
9411 no_cache=1
9412 fi
9413
9414 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9415
9416 fi;
9417
9418 eval "$ac_cv_use_joystick"
9419 if test "$no_cache" != 1; then
9420 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9421 fi
9422
9423 if test "$wxUSE_JOYSTICK" = yes; then
9424 echo "$as_me:$LINENO: result: yes" >&5
9425 echo "${ECHO_T}yes" >&6
9426 else
9427 echo "$as_me:$LINENO: result: no" >&5
9428 echo "${ECHO_T}no" >&6
9429 fi
9430
9431
9432 enablestring=
9433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9434 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9435 no_cache=0
9436 # Check whether --enable-metafile or --disable-metafile was given.
9437 if test "${enable_metafile+set}" = set; then
9438 enableval="$enable_metafile"
9439
9440 if test "$enableval" = yes; then
9441 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9442 else
9443 ac_cv_use_metafile='wxUSE_METAFILE=no'
9444 fi
9445
9446 else
9447
9448 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9449 if test "x$LINE" != x ; then
9450 eval "DEFAULT_$LINE"
9451 else
9452 no_cache=1
9453 fi
9454
9455 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9456
9457 fi;
9458
9459 eval "$ac_cv_use_metafile"
9460 if test "$no_cache" != 1; then
9461 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9462 fi
9463
9464 if test "$wxUSE_METAFILE" = yes; then
9465 echo "$as_me:$LINENO: result: yes" >&5
9466 echo "${ECHO_T}yes" >&6
9467 else
9468 echo "$as_me:$LINENO: result: no" >&5
9469 echo "${ECHO_T}no" >&6
9470 fi
9471
9472
9473 enablestring=
9474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9475 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9476 no_cache=0
9477 # Check whether --enable-dragimage or --disable-dragimage was given.
9478 if test "${enable_dragimage+set}" = set; then
9479 enableval="$enable_dragimage"
9480
9481 if test "$enableval" = yes; then
9482 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9483 else
9484 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9485 fi
9486
9487 else
9488
9489 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9490 if test "x$LINE" != x ; then
9491 eval "DEFAULT_$LINE"
9492 else
9493 no_cache=1
9494 fi
9495
9496 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9497
9498 fi;
9499
9500 eval "$ac_cv_use_dragimage"
9501 if test "$no_cache" != 1; then
9502 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9503 fi
9504
9505 if test "$wxUSE_DRAGIMAGE" = yes; then
9506 echo "$as_me:$LINENO: result: yes" >&5
9507 echo "${ECHO_T}yes" >&6
9508 else
9509 echo "$as_me:$LINENO: result: no" >&5
9510 echo "${ECHO_T}no" >&6
9511 fi
9512
9513
9514 enablestring=
9515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9516 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9517 no_cache=0
9518 # Check whether --enable-accessibility or --disable-accessibility was given.
9519 if test "${enable_accessibility+set}" = set; then
9520 enableval="$enable_accessibility"
9521
9522 if test "$enableval" = yes; then
9523 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9524 else
9525 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9526 fi
9527
9528 else
9529
9530 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9531 if test "x$LINE" != x ; then
9532 eval "DEFAULT_$LINE"
9533 else
9534 no_cache=1
9535 fi
9536
9537 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9538
9539 fi;
9540
9541 eval "$ac_cv_use_accessibility"
9542 if test "$no_cache" != 1; then
9543 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9544 fi
9545
9546 if test "$wxUSE_ACCESSIBILITY" = yes; then
9547 echo "$as_me:$LINENO: result: yes" >&5
9548 echo "${ECHO_T}yes" >&6
9549 else
9550 echo "$as_me:$LINENO: result: no" >&5
9551 echo "${ECHO_T}no" >&6
9552 fi
9553
9554
9555
9556
9557 enablestring=
9558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9559 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9560 no_cache=0
9561 # Check whether --enable-palette or --disable-palette was given.
9562 if test "${enable_palette+set}" = set; then
9563 enableval="$enable_palette"
9564
9565 if test "$enableval" = yes; then
9566 ac_cv_use_palette='wxUSE_PALETTE=yes'
9567 else
9568 ac_cv_use_palette='wxUSE_PALETTE=no'
9569 fi
9570
9571 else
9572
9573 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9574 if test "x$LINE" != x ; then
9575 eval "DEFAULT_$LINE"
9576 else
9577 no_cache=1
9578 fi
9579
9580 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9581
9582 fi;
9583
9584 eval "$ac_cv_use_palette"
9585 if test "$no_cache" != 1; then
9586 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9587 fi
9588
9589 if test "$wxUSE_PALETTE" = yes; then
9590 echo "$as_me:$LINENO: result: yes" >&5
9591 echo "${ECHO_T}yes" >&6
9592 else
9593 echo "$as_me:$LINENO: result: no" >&5
9594 echo "${ECHO_T}no" >&6
9595 fi
9596
9597
9598 enablestring=
9599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9600 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9601 no_cache=0
9602 # Check whether --enable-image or --disable-image was given.
9603 if test "${enable_image+set}" = set; then
9604 enableval="$enable_image"
9605
9606 if test "$enableval" = yes; then
9607 ac_cv_use_image='wxUSE_IMAGE=yes'
9608 else
9609 ac_cv_use_image='wxUSE_IMAGE=no'
9610 fi
9611
9612 else
9613
9614 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9615 if test "x$LINE" != x ; then
9616 eval "DEFAULT_$LINE"
9617 else
9618 no_cache=1
9619 fi
9620
9621 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9622
9623 fi;
9624
9625 eval "$ac_cv_use_image"
9626 if test "$no_cache" != 1; then
9627 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9628 fi
9629
9630 if test "$wxUSE_IMAGE" = yes; then
9631 echo "$as_me:$LINENO: result: yes" >&5
9632 echo "${ECHO_T}yes" >&6
9633 else
9634 echo "$as_me:$LINENO: result: no" >&5
9635 echo "${ECHO_T}no" >&6
9636 fi
9637
9638
9639 enablestring=
9640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9641 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9642 no_cache=0
9643 # Check whether --enable-gif or --disable-gif was given.
9644 if test "${enable_gif+set}" = set; then
9645 enableval="$enable_gif"
9646
9647 if test "$enableval" = yes; then
9648 ac_cv_use_gif='wxUSE_GIF=yes'
9649 else
9650 ac_cv_use_gif='wxUSE_GIF=no'
9651 fi
9652
9653 else
9654
9655 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9656 if test "x$LINE" != x ; then
9657 eval "DEFAULT_$LINE"
9658 else
9659 no_cache=1
9660 fi
9661
9662 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9663
9664 fi;
9665
9666 eval "$ac_cv_use_gif"
9667 if test "$no_cache" != 1; then
9668 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9669 fi
9670
9671 if test "$wxUSE_GIF" = yes; then
9672 echo "$as_me:$LINENO: result: yes" >&5
9673 echo "${ECHO_T}yes" >&6
9674 else
9675 echo "$as_me:$LINENO: result: no" >&5
9676 echo "${ECHO_T}no" >&6
9677 fi
9678
9679
9680 enablestring=
9681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9682 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9683 no_cache=0
9684 # Check whether --enable-pcx or --disable-pcx was given.
9685 if test "${enable_pcx+set}" = set; then
9686 enableval="$enable_pcx"
9687
9688 if test "$enableval" = yes; then
9689 ac_cv_use_pcx='wxUSE_PCX=yes'
9690 else
9691 ac_cv_use_pcx='wxUSE_PCX=no'
9692 fi
9693
9694 else
9695
9696 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9697 if test "x$LINE" != x ; then
9698 eval "DEFAULT_$LINE"
9699 else
9700 no_cache=1
9701 fi
9702
9703 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9704
9705 fi;
9706
9707 eval "$ac_cv_use_pcx"
9708 if test "$no_cache" != 1; then
9709 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9710 fi
9711
9712 if test "$wxUSE_PCX" = yes; then
9713 echo "$as_me:$LINENO: result: yes" >&5
9714 echo "${ECHO_T}yes" >&6
9715 else
9716 echo "$as_me:$LINENO: result: no" >&5
9717 echo "${ECHO_T}no" >&6
9718 fi
9719
9720
9721 enablestring=
9722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9723 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9724 no_cache=0
9725 # Check whether --enable-iff or --disable-iff was given.
9726 if test "${enable_iff+set}" = set; then
9727 enableval="$enable_iff"
9728
9729 if test "$enableval" = yes; then
9730 ac_cv_use_iff='wxUSE_IFF=yes'
9731 else
9732 ac_cv_use_iff='wxUSE_IFF=no'
9733 fi
9734
9735 else
9736
9737 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9738 if test "x$LINE" != x ; then
9739 eval "DEFAULT_$LINE"
9740 else
9741 no_cache=1
9742 fi
9743
9744 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9745
9746 fi;
9747
9748 eval "$ac_cv_use_iff"
9749 if test "$no_cache" != 1; then
9750 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9751 fi
9752
9753 if test "$wxUSE_IFF" = yes; then
9754 echo "$as_me:$LINENO: result: yes" >&5
9755 echo "${ECHO_T}yes" >&6
9756 else
9757 echo "$as_me:$LINENO: result: no" >&5
9758 echo "${ECHO_T}no" >&6
9759 fi
9760
9761
9762 enablestring=
9763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9764 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9765 no_cache=0
9766 # Check whether --enable-pnm or --disable-pnm was given.
9767 if test "${enable_pnm+set}" = set; then
9768 enableval="$enable_pnm"
9769
9770 if test "$enableval" = yes; then
9771 ac_cv_use_pnm='wxUSE_PNM=yes'
9772 else
9773 ac_cv_use_pnm='wxUSE_PNM=no'
9774 fi
9775
9776 else
9777
9778 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9779 if test "x$LINE" != x ; then
9780 eval "DEFAULT_$LINE"
9781 else
9782 no_cache=1
9783 fi
9784
9785 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9786
9787 fi;
9788
9789 eval "$ac_cv_use_pnm"
9790 if test "$no_cache" != 1; then
9791 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9792 fi
9793
9794 if test "$wxUSE_PNM" = yes; then
9795 echo "$as_me:$LINENO: result: yes" >&5
9796 echo "${ECHO_T}yes" >&6
9797 else
9798 echo "$as_me:$LINENO: result: no" >&5
9799 echo "${ECHO_T}no" >&6
9800 fi
9801
9802
9803 enablestring=
9804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9805 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9806 no_cache=0
9807 # Check whether --enable-xpm or --disable-xpm was given.
9808 if test "${enable_xpm+set}" = set; then
9809 enableval="$enable_xpm"
9810
9811 if test "$enableval" = yes; then
9812 ac_cv_use_xpm='wxUSE_XPM=yes'
9813 else
9814 ac_cv_use_xpm='wxUSE_XPM=no'
9815 fi
9816
9817 else
9818
9819 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9820 if test "x$LINE" != x ; then
9821 eval "DEFAULT_$LINE"
9822 else
9823 no_cache=1
9824 fi
9825
9826 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9827
9828 fi;
9829
9830 eval "$ac_cv_use_xpm"
9831 if test "$no_cache" != 1; then
9832 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9833 fi
9834
9835 if test "$wxUSE_XPM" = yes; then
9836 echo "$as_me:$LINENO: result: yes" >&5
9837 echo "${ECHO_T}yes" >&6
9838 else
9839 echo "$as_me:$LINENO: result: no" >&5
9840 echo "${ECHO_T}no" >&6
9841 fi
9842
9843
9844 enablestring=
9845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9846 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9847 no_cache=0
9848 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9849 if test "${enable_ico_cur+set}" = set; then
9850 enableval="$enable_ico_cur"
9851
9852 if test "$enableval" = yes; then
9853 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9854 else
9855 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9856 fi
9857
9858 else
9859
9860 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9861 if test "x$LINE" != x ; then
9862 eval "DEFAULT_$LINE"
9863 else
9864 no_cache=1
9865 fi
9866
9867 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9868
9869 fi;
9870
9871 eval "$ac_cv_use_ico_cur"
9872 if test "$no_cache" != 1; then
9873 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9874 fi
9875
9876 if test "$wxUSE_ICO_CUR" = yes; then
9877 echo "$as_me:$LINENO: result: yes" >&5
9878 echo "${ECHO_T}yes" >&6
9879 else
9880 echo "$as_me:$LINENO: result: no" >&5
9881 echo "${ECHO_T}no" >&6
9882 fi
9883
9884
9885 fi
9886
9887
9888
9889 enablestring=
9890 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9891 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9892 no_cache=0
9893 # Check whether --enable-official_build or --disable-official_build was given.
9894 if test "${enable_official_build+set}" = set; then
9895 enableval="$enable_official_build"
9896
9897 if test "$enableval" = yes; then
9898 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9899 else
9900 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9901 fi
9902
9903 else
9904
9905 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9906 if test "x$LINE" != x ; then
9907 eval "DEFAULT_$LINE"
9908 else
9909 no_cache=1
9910 fi
9911
9912 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9913
9914 fi;
9915
9916 eval "$ac_cv_use_official_build"
9917 if test "$no_cache" != 1; then
9918 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9919 fi
9920
9921 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9922 echo "$as_me:$LINENO: result: yes" >&5
9923 echo "${ECHO_T}yes" >&6
9924 else
9925 echo "$as_me:$LINENO: result: no" >&5
9926 echo "${ECHO_T}no" >&6
9927 fi
9928
9929 # Check whether --enable-vendor or --disable-vendor was given.
9930 if test "${enable_vendor+set}" = set; then
9931 enableval="$enable_vendor"
9932 VENDOR="$enableval"
9933 fi;
9934 if test "x$VENDOR" = "x"; then
9935 VENDOR="custom"
9936 fi
9937
9938 case "${host}" in
9939 *-pc-os2_emx | *-pc-os2-emx )
9940 PATH_IFS=';'
9941 ;;
9942 *)
9943 PATH_IFS=':'
9944 ;;
9945 esac
9946
9947
9948
9949 echo "saving argument cache $wx_arg_cache_file"
9950 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9951
9952
9953
9954 echo "$as_me:$LINENO: checking for toolkit" >&5
9955 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9956
9957 # In Wine, we need to default to MSW, not GTK or MOTIF
9958 if test "$wxUSE_WINE" = "yes"; then
9959 DEFAULT_DEFAULT_wxUSE_GTK=0
9960 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9961 DEFAULT_DEFAULT_wxUSE_MSW=1
9962 wxUSE_SHARED=no
9963 fi
9964
9965 if test "$wxUSE_GUI" = "yes"; then
9966
9967 if test "$USE_BEOS" = 1; then
9968 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9969 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9970 { (exit 1); exit 1; }; }
9971 fi
9972
9973 if test "$TOOLKIT_GIVEN" = 1; then
9974 for toolkit in `echo $ALL_TOOLKITS`; do
9975 var=wxUSE_$toolkit
9976 eval "value=\$${var}"
9977 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9978 done
9979 else
9980 for toolkit in `echo $ALL_TOOLKITS`; do
9981 if test "$has_toolkit_in_cache" != 1; then
9982 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9983 else
9984 var=DEFAULT_wxUSE_$toolkit
9985 fi
9986 eval "wxUSE_$toolkit=\$${var}"
9987 done
9988 fi
9989
9990 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9991 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9992 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9993
9994 case "${host}" in
9995 *-pc-os2_emx | *-pc-os2-emx )
9996 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9997 esac
9998
9999 case "$NUM_TOOLKITS" in
10000 1)
10001 ;;
10002 0)
10003 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10004 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10005 { (exit 1); exit 1; }; }
10006 ;;
10007 *)
10008 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10009 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10010 { (exit 1); exit 1; }; }
10011 esac
10012
10013 for toolkit in `echo $ALL_TOOLKITS`; do
10014 var=wxUSE_$toolkit
10015 eval "value=\$${var}"
10016 if test "x$value" != x; then
10017 cache_var=CACHE_$toolkit
10018 eval "cache=\$${cache_var}"
10019 if test "$cache" = 1; then
10020 echo "$var=$value" >> ${wx_arg_cache_file}
10021 fi
10022 if test "$value" = 1; then
10023 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10024 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10025 echo "${ECHO_T}$toolkit_echo" >&6
10026 fi
10027 fi
10028 done
10029 else
10030 if test "x$host_alias" != "x"; then
10031 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10032 echo "${ECHO_T}base ($host_alias hosted) only" >&6
10033 else
10034 echo "$as_me:$LINENO: result: base only" >&5
10035 echo "${ECHO_T}base only" >&6
10036 fi
10037 fi
10038
10039 wants_win32=0
10040 doesnt_want_win32=0
10041 case "${host}" in
10042 *-*-cygwin*)
10043 if test "$wxUSE_MSW" = 1 ; then
10044 wants_win32=1
10045 else
10046 doesnt_want_win32=1
10047 fi
10048 ;;
10049 *-*-mingw*)
10050 wants_win32=1
10051 ;;
10052 esac
10053
10054 if test "$wxUSE_WINE" = "yes"; then
10055 wants_win32=1
10056 CC=winegcc
10057 CXX=wineg++
10058 RESCOMP=wrc
10059 LDFLAGS_GUI="-mwindows"
10060 fi
10061
10062 if test "$wants_win32" = 1 ; then
10063 USE_UNIX=0
10064 USE_WIN32=1
10065 cat >>confdefs.h <<\_ACEOF
10066 #define __WIN32__ 1
10067 _ACEOF
10068
10069 cat >>confdefs.h <<\_ACEOF
10070 #define __WIN95__ 1
10071 _ACEOF
10072
10073 cat >>confdefs.h <<\_ACEOF
10074 #define __WINDOWS__ 1
10075 _ACEOF
10076
10077 cat >>confdefs.h <<\_ACEOF
10078 #define __GNUWIN32__ 1
10079 _ACEOF
10080
10081 cat >>confdefs.h <<\_ACEOF
10082 #define STRICT 1
10083 _ACEOF
10084
10085 cat >>confdefs.h <<\_ACEOF
10086 #define WINVER 0x0400
10087 _ACEOF
10088
10089 fi
10090 if test "$doesnt_want_win32" = 1 ; then
10091 USE_UNIX=1
10092 USE_WIN32=0
10093 fi
10094
10095 if test "$USE_UNIX" = 1 ; then
10096 wxUSE_UNIX=yes
10097 cat >>confdefs.h <<\_ACEOF
10098 #define __UNIX__ 1
10099 _ACEOF
10100
10101 fi
10102
10103
10104 cat >confcache <<\_ACEOF
10105 # This file is a shell script that caches the results of configure
10106 # tests run on this system so they can be shared between configure
10107 # scripts and configure runs, see configure's option --config-cache.
10108 # It is not useful on other systems. If it contains results you don't
10109 # want to keep, you may remove or edit it.
10110 #
10111 # config.status only pays attention to the cache file if you give it
10112 # the --recheck option to rerun configure.
10113 #
10114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10116 # following values.
10117
10118 _ACEOF
10119
10120 # The following way of writing the cache mishandles newlines in values,
10121 # but we know of no workaround that is simple, portable, and efficient.
10122 # So, don't put newlines in cache variables' values.
10123 # Ultrix sh set writes to stderr and can't be redirected directly,
10124 # and sets the high bit in the cache file unless we assign to the vars.
10125 {
10126 (set) 2>&1 |
10127 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10128 *ac_space=\ *)
10129 # `set' does not quote correctly, so add quotes (double-quote
10130 # substitution turns \\\\ into \\, and sed turns \\ into \).
10131 sed -n \
10132 "s/'/'\\\\''/g;
10133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10134 ;;
10135 *)
10136 # `set' quotes correctly as required by POSIX, so do not add quotes.
10137 sed -n \
10138 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10139 ;;
10140 esac;
10141 } |
10142 sed '
10143 t clear
10144 : clear
10145 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10146 t end
10147 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10148 : end' >>confcache
10149 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10150 if test -w $cache_file; then
10151 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10152 cat confcache >$cache_file
10153 else
10154 echo "not updating unwritable cache $cache_file"
10155 fi
10156 fi
10157 rm -f confcache
10158
10159 if test "$build" != "$host" ; then
10160 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10161 CC=$host_alias-gcc
10162 CXX=$host_alias-c++
10163 AR=$host_alias-ar
10164 RANLIB=$host_alias-ranlib
10165 DLLTOOL=$host_alias-dlltool
10166 RESCOMP=$host_alias-windres
10167 LD=$host_alias-ld
10168 NM=$host_alias-nm
10169 STRIP=$host_alias-strip
10170 else
10171 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10172 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10173 { (exit 1); exit 1; }; }
10174 fi
10175 fi
10176
10177 CFLAGS=${CFLAGS:=}
10178 ac_ext=c
10179 ac_cpp='$CPP $CPPFLAGS'
10180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10183 if test -n "$ac_tool_prefix"; then
10184 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10185 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10186 echo "$as_me:$LINENO: checking for $ac_word" >&5
10187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10188 if test "${ac_cv_prog_CC+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 if test -n "$CC"; then
10192 ac_cv_prog_CC="$CC" # Let the user override the test.
10193 else
10194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10195 for as_dir in $PATH
10196 do
10197 IFS=$as_save_IFS
10198 test -z "$as_dir" && as_dir=.
10199 for ac_exec_ext in '' $ac_executable_extensions; do
10200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10201 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10203 break 2
10204 fi
10205 done
10206 done
10207
10208 fi
10209 fi
10210 CC=$ac_cv_prog_CC
10211 if test -n "$CC"; then
10212 echo "$as_me:$LINENO: result: $CC" >&5
10213 echo "${ECHO_T}$CC" >&6
10214 else
10215 echo "$as_me:$LINENO: result: no" >&5
10216 echo "${ECHO_T}no" >&6
10217 fi
10218
10219 fi
10220 if test -z "$ac_cv_prog_CC"; then
10221 ac_ct_CC=$CC
10222 # Extract the first word of "gcc", so it can be a program name with args.
10223 set dummy gcc; ac_word=$2
10224 echo "$as_me:$LINENO: checking for $ac_word" >&5
10225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229 if test -n "$ac_ct_CC"; then
10230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10231 else
10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in $PATH
10234 do
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239 ac_cv_prog_ac_ct_CC="gcc"
10240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 break 2
10242 fi
10243 done
10244 done
10245
10246 fi
10247 fi
10248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10249 if test -n "$ac_ct_CC"; then
10250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10251 echo "${ECHO_T}$ac_ct_CC" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254 echo "${ECHO_T}no" >&6
10255 fi
10256
10257 CC=$ac_ct_CC
10258 else
10259 CC="$ac_cv_prog_CC"
10260 fi
10261
10262 if test -z "$CC"; then
10263 if test -n "$ac_tool_prefix"; then
10264 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10265 set dummy ${ac_tool_prefix}cc; ac_word=$2
10266 echo "$as_me:$LINENO: checking for $ac_word" >&5
10267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10268 if test "${ac_cv_prog_CC+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 else
10271 if test -n "$CC"; then
10272 ac_cv_prog_CC="$CC" # Let the user override the test.
10273 else
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10276 do
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10281 ac_cv_prog_CC="${ac_tool_prefix}cc"
10282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10284 fi
10285 done
10286 done
10287
10288 fi
10289 fi
10290 CC=$ac_cv_prog_CC
10291 if test -n "$CC"; then
10292 echo "$as_me:$LINENO: result: $CC" >&5
10293 echo "${ECHO_T}$CC" >&6
10294 else
10295 echo "$as_me:$LINENO: result: no" >&5
10296 echo "${ECHO_T}no" >&6
10297 fi
10298
10299 fi
10300 if test -z "$ac_cv_prog_CC"; then
10301 ac_ct_CC=$CC
10302 # Extract the first word of "cc", so it can be a program name with args.
10303 set dummy cc; ac_word=$2
10304 echo "$as_me:$LINENO: checking for $ac_word" >&5
10305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10306 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 else
10309 if test -n "$ac_ct_CC"; then
10310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10311 else
10312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313 for as_dir in $PATH
10314 do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10319 ac_cv_prog_ac_ct_CC="cc"
10320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 break 2
10322 fi
10323 done
10324 done
10325
10326 fi
10327 fi
10328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10329 if test -n "$ac_ct_CC"; then
10330 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10331 echo "${ECHO_T}$ac_ct_CC" >&6
10332 else
10333 echo "$as_me:$LINENO: result: no" >&5
10334 echo "${ECHO_T}no" >&6
10335 fi
10336
10337 CC=$ac_ct_CC
10338 else
10339 CC="$ac_cv_prog_CC"
10340 fi
10341
10342 fi
10343 if test -z "$CC"; then
10344 # Extract the first word of "cc", so it can be a program name with args.
10345 set dummy cc; ac_word=$2
10346 echo "$as_me:$LINENO: checking for $ac_word" >&5
10347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10348 if test "${ac_cv_prog_CC+set}" = set; then
10349 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 else
10351 if test -n "$CC"; then
10352 ac_cv_prog_CC="$CC" # Let the user override the test.
10353 else
10354 ac_prog_rejected=no
10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10356 for as_dir in $PATH
10357 do
10358 IFS=$as_save_IFS
10359 test -z "$as_dir" && as_dir=.
10360 for ac_exec_ext in '' $ac_executable_extensions; do
10361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10363 ac_prog_rejected=yes
10364 continue
10365 fi
10366 ac_cv_prog_CC="cc"
10367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10369 fi
10370 done
10371 done
10372
10373 if test $ac_prog_rejected = yes; then
10374 # We found a bogon in the path, so make sure we never use it.
10375 set dummy $ac_cv_prog_CC
10376 shift
10377 if test $# != 0; then
10378 # We chose a different compiler from the bogus one.
10379 # However, it has the same basename, so the bogon will be chosen
10380 # first if we set CC to just the basename; use the full file name.
10381 shift
10382 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10383 fi
10384 fi
10385 fi
10386 fi
10387 CC=$ac_cv_prog_CC
10388 if test -n "$CC"; then
10389 echo "$as_me:$LINENO: result: $CC" >&5
10390 echo "${ECHO_T}$CC" >&6
10391 else
10392 echo "$as_me:$LINENO: result: no" >&5
10393 echo "${ECHO_T}no" >&6
10394 fi
10395
10396 fi
10397 if test -z "$CC"; then
10398 if test -n "$ac_tool_prefix"; then
10399 for ac_prog in cl
10400 do
10401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10403 echo "$as_me:$LINENO: checking for $ac_word" >&5
10404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10405 if test "${ac_cv_prog_CC+set}" = set; then
10406 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 else
10408 if test -n "$CC"; then
10409 ac_cv_prog_CC="$CC" # Let the user override the test.
10410 else
10411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412 for as_dir in $PATH
10413 do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10420 break 2
10421 fi
10422 done
10423 done
10424
10425 fi
10426 fi
10427 CC=$ac_cv_prog_CC
10428 if test -n "$CC"; then
10429 echo "$as_me:$LINENO: result: $CC" >&5
10430 echo "${ECHO_T}$CC" >&6
10431 else
10432 echo "$as_me:$LINENO: result: no" >&5
10433 echo "${ECHO_T}no" >&6
10434 fi
10435
10436 test -n "$CC" && break
10437 done
10438 fi
10439 if test -z "$CC"; then
10440 ac_ct_CC=$CC
10441 for ac_prog in cl
10442 do
10443 # Extract the first word of "$ac_prog", so it can be a program name with args.
10444 set dummy $ac_prog; ac_word=$2
10445 echo "$as_me:$LINENO: checking for $ac_word" >&5
10446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10447 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449 else
10450 if test -n "$ac_ct_CC"; then
10451 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10452 else
10453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454 for as_dir in $PATH
10455 do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_ac_ct_CC="$ac_prog"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464 done
10465 done
10466
10467 fi
10468 fi
10469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10470 if test -n "$ac_ct_CC"; then
10471 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10472 echo "${ECHO_T}$ac_ct_CC" >&6
10473 else
10474 echo "$as_me:$LINENO: result: no" >&5
10475 echo "${ECHO_T}no" >&6
10476 fi
10477
10478 test -n "$ac_ct_CC" && break
10479 done
10480
10481 CC=$ac_ct_CC
10482 fi
10483
10484 fi
10485
10486
10487 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10488 See \`config.log' for more details." >&5
10489 echo "$as_me: error: no acceptable C compiler found in \$PATH
10490 See \`config.log' for more details." >&2;}
10491 { (exit 1); exit 1; }; }
10492
10493 # Provide some information about the compiler.
10494 echo "$as_me:$LINENO:" \
10495 "checking for C compiler version" >&5
10496 ac_compiler=`set X $ac_compile; echo $2`
10497 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10498 (eval $ac_compiler --version </dev/null >&5) 2>&5
10499 ac_status=$?
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); }
10502 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10503 (eval $ac_compiler -v </dev/null >&5) 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }
10507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10508 (eval $ac_compiler -V </dev/null >&5) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }
10512
10513 cat >conftest.$ac_ext <<_ACEOF
10514 /* confdefs.h. */
10515 _ACEOF
10516 cat confdefs.h >>conftest.$ac_ext
10517 cat >>conftest.$ac_ext <<_ACEOF
10518 /* end confdefs.h. */
10519
10520 int
10521 main ()
10522 {
10523
10524 ;
10525 return 0;
10526 }
10527 _ACEOF
10528 ac_clean_files_save=$ac_clean_files
10529 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10530 # Try to create an executable without -o first, disregard a.out.
10531 # It will help us diagnose broken compilers, and finding out an intuition
10532 # of exeext.
10533 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10534 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10535 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10536 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10537 (eval $ac_link_default) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; then
10541 # Find the output, starting from the most likely. This scheme is
10542 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10543 # resort.
10544
10545 # Be careful to initialize this variable, since it used to be cached.
10546 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10547 ac_cv_exeext=
10548 # b.out is created by i960 compilers.
10549 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10550 do
10551 test -f "$ac_file" || continue
10552 case $ac_file in
10553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10554 ;;
10555 conftest.$ac_ext )
10556 # This is the source file.
10557 ;;
10558 [ab].out )
10559 # We found the default executable, but exeext='' is most
10560 # certainly right.
10561 break;;
10562 *.* )
10563 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10564 # FIXME: I believe we export ac_cv_exeext for Libtool,
10565 # but it would be cool to find out if it's true. Does anybody
10566 # maintain Libtool? --akim.
10567 export ac_cv_exeext
10568 break;;
10569 * )
10570 break;;
10571 esac
10572 done
10573 else
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10578 See \`config.log' for more details." >&5
10579 echo "$as_me: error: C compiler cannot create executables
10580 See \`config.log' for more details." >&2;}
10581 { (exit 77); exit 77; }; }
10582 fi
10583
10584 ac_exeext=$ac_cv_exeext
10585 echo "$as_me:$LINENO: result: $ac_file" >&5
10586 echo "${ECHO_T}$ac_file" >&6
10587
10588 # Check the compiler produces executables we can run. If not, either
10589 # the compiler is broken, or we cross compile.
10590 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10591 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10592 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10593 # If not cross compiling, check that we can run a simple program.
10594 if test "$cross_compiling" != yes; then
10595 if { ac_try='./$ac_file'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; }; then
10601 cross_compiling=no
10602 else
10603 if test "$cross_compiling" = maybe; then
10604 cross_compiling=yes
10605 else
10606 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10607 If you meant to cross compile, use \`--host'.
10608 See \`config.log' for more details." >&5
10609 echo "$as_me: error: cannot run C compiled programs.
10610 If you meant to cross compile, use \`--host'.
10611 See \`config.log' for more details." >&2;}
10612 { (exit 1); exit 1; }; }
10613 fi
10614 fi
10615 fi
10616 echo "$as_me:$LINENO: result: yes" >&5
10617 echo "${ECHO_T}yes" >&6
10618
10619 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10620 ac_clean_files=$ac_clean_files_save
10621 # Check the compiler produces executables we can run. If not, either
10622 # the compiler is broken, or we cross compile.
10623 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10624 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10625 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10626 echo "${ECHO_T}$cross_compiling" >&6
10627
10628 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10629 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>&5
10632 ac_status=$?
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); }; then
10635 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10636 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10637 # work properly (i.e., refer to `conftest.exe'), while it won't with
10638 # `rm'.
10639 for ac_file in conftest.exe conftest conftest.*; do
10640 test -f "$ac_file" || continue
10641 case $ac_file in
10642 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10643 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10644 export ac_cv_exeext
10645 break;;
10646 * ) break;;
10647 esac
10648 done
10649 else
10650 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10651 See \`config.log' for more details." >&5
10652 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10653 See \`config.log' for more details." >&2;}
10654 { (exit 1); exit 1; }; }
10655 fi
10656
10657 rm -f conftest$ac_cv_exeext
10658 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10659 echo "${ECHO_T}$ac_cv_exeext" >&6
10660
10661 rm -f conftest.$ac_ext
10662 EXEEXT=$ac_cv_exeext
10663 ac_exeext=$EXEEXT
10664 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10665 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10666 if test "${ac_cv_objext+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h. */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675
10676 int
10677 main ()
10678 {
10679
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 rm -f conftest.o conftest.obj
10685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10686 (eval $ac_compile) 2>&5
10687 ac_status=$?
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); }; then
10690 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10691 case $ac_file in
10692 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10693 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10694 break;;
10695 esac
10696 done
10697 else
10698 echo "$as_me: failed program was:" >&5
10699 sed 's/^/| /' conftest.$ac_ext >&5
10700
10701 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10702 See \`config.log' for more details." >&5
10703 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10704 See \`config.log' for more details." >&2;}
10705 { (exit 1); exit 1; }; }
10706 fi
10707
10708 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10709 fi
10710 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10711 echo "${ECHO_T}$ac_cv_objext" >&6
10712 OBJEXT=$ac_cv_objext
10713 ac_objext=$OBJEXT
10714 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10715 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10716 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10717 echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719 cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h. */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725
10726 int
10727 main ()
10728 {
10729 #ifndef __GNUC__
10730 choke me
10731 #endif
10732
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739 (eval $ac_compile) 2>conftest.er1
10740 ac_status=$?
10741 grep -v '^ *+' conftest.er1 >conftest.err
10742 rm -f conftest.er1
10743 cat conftest.err >&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); } &&
10746 { ac_try='test -z "$ac_c_werror_flag"
10747 || test ! -s conftest.err'
10748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; } &&
10753 { ac_try='test -s conftest.$ac_objext'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10756 ac_status=$?
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; }; then
10759 ac_compiler_gnu=yes
10760 else
10761 echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_compiler_gnu=no
10765 fi
10766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10768
10769 fi
10770 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10771 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10772 GCC=`test $ac_compiler_gnu = yes && echo yes`
10773 ac_test_CFLAGS=${CFLAGS+set}
10774 ac_save_CFLAGS=$CFLAGS
10775 CFLAGS="-g"
10776 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10777 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10778 if test "${ac_cv_prog_cc_g+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 else
10781 cat >conftest.$ac_ext <<_ACEOF
10782 /* confdefs.h. */
10783 _ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787
10788 int
10789 main ()
10790 {
10791
10792 ;
10793 return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext
10797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10798 (eval $ac_compile) 2>conftest.er1
10799 ac_status=$?
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
10805 { ac_try='test -z "$ac_c_werror_flag"
10806 || test ! -s conftest.err'
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; } &&
10812 { ac_try='test -s conftest.$ac_objext'
10813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10814 (eval $ac_try) 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_cv_prog_cc_g=yes
10819 else
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823 ac_cv_prog_cc_g=no
10824 fi
10825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10826 fi
10827 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10828 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10829 if test "$ac_test_CFLAGS" = set; then
10830 CFLAGS=$ac_save_CFLAGS
10831 elif test $ac_cv_prog_cc_g = yes; then
10832 if test "$GCC" = yes; then
10833 CFLAGS="-g -O2"
10834 else
10835 CFLAGS="-g"
10836 fi
10837 else
10838 if test "$GCC" = yes; then
10839 CFLAGS="-O2"
10840 else
10841 CFLAGS=
10842 fi
10843 fi
10844 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10845 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10846 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10847 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 else
10849 ac_cv_prog_cc_stdc=no
10850 ac_save_CC=$CC
10851 cat >conftest.$ac_ext <<_ACEOF
10852 /* confdefs.h. */
10853 _ACEOF
10854 cat confdefs.h >>conftest.$ac_ext
10855 cat >>conftest.$ac_ext <<_ACEOF
10856 /* end confdefs.h. */
10857 #include <stdarg.h>
10858 #include <stdio.h>
10859 #include <sys/types.h>
10860 #include <sys/stat.h>
10861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10862 struct buf { int x; };
10863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10864 static char *e (p, i)
10865 char **p;
10866 int i;
10867 {
10868 return p[i];
10869 }
10870 static char *f (char * (*g) (char **, int), char **p, ...)
10871 {
10872 char *s;
10873 va_list v;
10874 va_start (v,p);
10875 s = g (p, va_arg (v,int));
10876 va_end (v);
10877 return s;
10878 }
10879
10880 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10881 function prototypes and stuff, but not '\xHH' hex character constants.
10882 These don't provoke an error unfortunately, instead are silently treated
10883 as 'x'. The following induces an error, until -std1 is added to get
10884 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10885 array size at least. It's necessary to write '\x00'==0 to get something
10886 that's true only with -std1. */
10887 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10888
10889 int test (int i, double x);
10890 struct s1 {int (*f) (int a);};
10891 struct s2 {int (*f) (double a);};
10892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10893 int argc;
10894 char **argv;
10895 int
10896 main ()
10897 {
10898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10899 ;
10900 return 0;
10901 }
10902 _ACEOF
10903 # Don't try gcc -ansi; that turns off useful extensions and
10904 # breaks some systems' header files.
10905 # AIX -qlanglvl=ansi
10906 # Ultrix and OSF/1 -std1
10907 # HP-UX 10.20 and later -Ae
10908 # HP-UX older versions -Aa -D_HPUX_SOURCE
10909 # SVR4 -Xc -D__EXTENSIONS__
10910 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10911 do
10912 CC="$ac_save_CC $ac_arg"
10913 rm -f conftest.$ac_objext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915 (eval $ac_compile) 2>conftest.er1
10916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); } &&
10922 { ac_try='test -z "$ac_c_werror_flag"
10923 || test ! -s conftest.err'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; } &&
10929 { ac_try='test -s conftest.$ac_objext'
10930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10931 (eval $ac_try) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10935 ac_cv_prog_cc_stdc=$ac_arg
10936 break
10937 else
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10940
10941 fi
10942 rm -f conftest.err conftest.$ac_objext
10943 done
10944 rm -f conftest.$ac_ext conftest.$ac_objext
10945 CC=$ac_save_CC
10946
10947 fi
10948
10949 case "x$ac_cv_prog_cc_stdc" in
10950 x|xno)
10951 echo "$as_me:$LINENO: result: none needed" >&5
10952 echo "${ECHO_T}none needed" >&6 ;;
10953 *)
10954 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10955 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10956 CC="$CC $ac_cv_prog_cc_stdc" ;;
10957 esac
10958
10959 # Some people use a C++ compiler to compile C. Since we use `exit',
10960 # in C++ we need to declare it. In case someone uses the same compiler
10961 # for both compiling C and C++ we need to have the C++ compiler decide
10962 # the declaration of exit, since it's the most demanding environment.
10963 cat >conftest.$ac_ext <<_ACEOF
10964 #ifndef __cplusplus
10965 choke me
10966 #endif
10967 _ACEOF
10968 rm -f conftest.$ac_objext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970 (eval $ac_compile) 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -z "$ac_c_werror_flag"
10978 || test ! -s conftest.err'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest.$ac_objext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10987 ac_status=$?
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 for ac_declaration in \
10991 '' \
10992 'extern "C" void std::exit (int) throw (); using std::exit;' \
10993 'extern "C" void std::exit (int); using std::exit;' \
10994 'extern "C" void exit (int) throw ();' \
10995 'extern "C" void exit (int);' \
10996 'void exit (int);'
10997 do
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h. */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004 $ac_declaration
11005 #include <stdlib.h>
11006 int
11007 main ()
11008 {
11009 exit (42);
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 rm -f conftest.$ac_objext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11016 (eval $ac_compile) 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -z "$ac_c_werror_flag"
11024 || test ! -s conftest.err'
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest.$ac_objext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 :
11037 else
11038 echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 continue
11042 fi
11043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h. */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 $ac_declaration
11051 int
11052 main ()
11053 {
11054 exit (42);
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 rm -f conftest.$ac_objext
11060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11061 (eval $ac_compile) 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -z "$ac_c_werror_flag"
11069 || test ! -s conftest.err'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11078 ac_status=$?
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 break
11082 else
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 fi
11087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11088 done
11089 rm -f conftest*
11090 if test -n "$ac_declaration"; then
11091 echo '#ifdef __cplusplus' >>confdefs.h
11092 echo $ac_declaration >>confdefs.h
11093 echo '#endif' >>confdefs.h
11094 fi
11095
11096 else
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 fi
11101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11102 ac_ext=c
11103 ac_cpp='$CPP $CPPFLAGS'
11104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11107
11108
11109
11110 ac_ext=c
11111 ac_cpp='$CPP $CPPFLAGS'
11112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11115 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11116 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11117 # On Suns, sometimes $CPP names a directory.
11118 if test -n "$CPP" && test -d "$CPP"; then
11119 CPP=
11120 fi
11121 if test -z "$CPP"; then
11122 if test "${ac_cv_prog_CPP+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 else
11125 # Double quotes because CPP needs to be expanded
11126 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11127 do
11128 ac_preproc_ok=false
11129 for ac_c_preproc_warn_flag in '' yes
11130 do
11131 # Use a header file that comes with gcc, so configuring glibc
11132 # with a fresh cross-compiler works.
11133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11134 # <limits.h> exists even on freestanding compilers.
11135 # On the NeXT, cc -E runs the code through the compiler's parser,
11136 # not just through cpp. "Syntax error" is here to catch this case.
11137 cat >conftest.$ac_ext <<_ACEOF
11138 /* confdefs.h. */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 #ifdef __STDC__
11144 # include <limits.h>
11145 #else
11146 # include <assert.h>
11147 #endif
11148 Syntax error
11149 _ACEOF
11150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11152 ac_status=$?
11153 grep -v '^ *+' conftest.er1 >conftest.err
11154 rm -f conftest.er1
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } >/dev/null; then
11158 if test -s conftest.err; then
11159 ac_cpp_err=$ac_c_preproc_warn_flag
11160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11161 else
11162 ac_cpp_err=
11163 fi
11164 else
11165 ac_cpp_err=yes
11166 fi
11167 if test -z "$ac_cpp_err"; then
11168 :
11169 else
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11172
11173 # Broken: fails on valid input.
11174 continue
11175 fi
11176 rm -f conftest.err conftest.$ac_ext
11177
11178 # OK, works on sane cases. Now check whether non-existent headers
11179 # can be detected and how.
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11186 #include <ac_nonexistent.h>
11187 _ACEOF
11188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } >/dev/null; then
11196 if test -s conftest.err; then
11197 ac_cpp_err=$ac_c_preproc_warn_flag
11198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11199 else
11200 ac_cpp_err=
11201 fi
11202 else
11203 ac_cpp_err=yes
11204 fi
11205 if test -z "$ac_cpp_err"; then
11206 # Broken: success on invalid input.
11207 continue
11208 else
11209 echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 # Passes both tests.
11213 ac_preproc_ok=:
11214 break
11215 fi
11216 rm -f conftest.err conftest.$ac_ext
11217
11218 done
11219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11220 rm -f conftest.err conftest.$ac_ext
11221 if $ac_preproc_ok; then
11222 break
11223 fi
11224
11225 done
11226 ac_cv_prog_CPP=$CPP
11227
11228 fi
11229 CPP=$ac_cv_prog_CPP
11230 else
11231 ac_cv_prog_CPP=$CPP
11232 fi
11233 echo "$as_me:$LINENO: result: $CPP" >&5
11234 echo "${ECHO_T}$CPP" >&6
11235 ac_preproc_ok=false
11236 for ac_c_preproc_warn_flag in '' yes
11237 do
11238 # Use a header file that comes with gcc, so configuring glibc
11239 # with a fresh cross-compiler works.
11240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11241 # <limits.h> exists even on freestanding compilers.
11242 # On the NeXT, cc -E runs the code through the compiler's parser,
11243 # not just through cpp. "Syntax error" is here to catch this case.
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 #ifdef __STDC__
11251 # include <limits.h>
11252 #else
11253 # include <assert.h>
11254 #endif
11255 Syntax error
11256 _ACEOF
11257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null; then
11265 if test -s conftest.err; then
11266 ac_cpp_err=$ac_c_preproc_warn_flag
11267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11268 else
11269 ac_cpp_err=
11270 fi
11271 else
11272 ac_cpp_err=yes
11273 fi
11274 if test -z "$ac_cpp_err"; then
11275 :
11276 else
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280 # Broken: fails on valid input.
11281 continue
11282 fi
11283 rm -f conftest.err conftest.$ac_ext
11284
11285 # OK, works on sane cases. Now check whether non-existent headers
11286 # can be detected and how.
11287 cat >conftest.$ac_ext <<_ACEOF
11288 /* confdefs.h. */
11289 _ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 #include <ac_nonexistent.h>
11294 _ACEOF
11295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11297 ac_status=$?
11298 grep -v '^ *+' conftest.er1 >conftest.err
11299 rm -f conftest.er1
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } >/dev/null; then
11303 if test -s conftest.err; then
11304 ac_cpp_err=$ac_c_preproc_warn_flag
11305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11306 else
11307 ac_cpp_err=
11308 fi
11309 else
11310 ac_cpp_err=yes
11311 fi
11312 if test -z "$ac_cpp_err"; then
11313 # Broken: success on invalid input.
11314 continue
11315 else
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11318
11319 # Passes both tests.
11320 ac_preproc_ok=:
11321 break
11322 fi
11323 rm -f conftest.err conftest.$ac_ext
11324
11325 done
11326 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11327 rm -f conftest.err conftest.$ac_ext
11328 if $ac_preproc_ok; then
11329 :
11330 else
11331 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11332 See \`config.log' for more details." >&5
11333 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11334 See \`config.log' for more details." >&2;}
11335 { (exit 1); exit 1; }; }
11336 fi
11337
11338 ac_ext=c
11339 ac_cpp='$CPP $CPPFLAGS'
11340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11343
11344
11345 echo "$as_me:$LINENO: checking for egrep" >&5
11346 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11347 if test "${ac_cv_prog_egrep+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11351 then ac_cv_prog_egrep='grep -E'
11352 else ac_cv_prog_egrep='egrep'
11353 fi
11354 fi
11355 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11356 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11357 EGREP=$ac_cv_prog_egrep
11358
11359
11360 if test $ac_cv_c_compiler_gnu = yes; then
11361 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11362 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11363 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366 ac_pattern="Autoconf.*'x'"
11367 cat >conftest.$ac_ext <<_ACEOF
11368 /* confdefs.h. */
11369 _ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 #include <sgtty.h>
11374 Autoconf TIOCGETP
11375 _ACEOF
11376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11377 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11378 ac_cv_prog_gcc_traditional=yes
11379 else
11380 ac_cv_prog_gcc_traditional=no
11381 fi
11382 rm -f conftest*
11383
11384
11385 if test $ac_cv_prog_gcc_traditional = no; then
11386 cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h. */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 #include <termio.h>
11393 Autoconf TCGETA
11394 _ACEOF
11395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11396 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11397 ac_cv_prog_gcc_traditional=yes
11398 fi
11399 rm -f conftest*
11400
11401 fi
11402 fi
11403 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11404 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11405 if test $ac_cv_prog_gcc_traditional = yes; then
11406 CC="$CC -traditional"
11407 fi
11408 fi
11409
11410
11411
11412
11413 ac_ext=cc
11414 ac_cpp='$CXXCPP $CPPFLAGS'
11415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11418
11419
11420 CXXFLAGS=${CXXFLAGS:=}
11421 ac_ext=cc
11422 ac_cpp='$CXXCPP $CPPFLAGS'
11423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11426 if test -n "$ac_tool_prefix"; then
11427 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11428 do
11429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11431 echo "$as_me:$LINENO: checking for $ac_word" >&5
11432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11433 if test "${ac_cv_prog_CXX+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435 else
11436 if test -n "$CXX"; then
11437 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11438 else
11439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in $PATH
11441 do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11446 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450 done
11451 done
11452
11453 fi
11454 fi
11455 CXX=$ac_cv_prog_CXX
11456 if test -n "$CXX"; then
11457 echo "$as_me:$LINENO: result: $CXX" >&5
11458 echo "${ECHO_T}$CXX" >&6
11459 else
11460 echo "$as_me:$LINENO: result: no" >&5
11461 echo "${ECHO_T}no" >&6
11462 fi
11463
11464 test -n "$CXX" && break
11465 done
11466 fi
11467 if test -z "$CXX"; then
11468 ac_ct_CXX=$CXX
11469 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11470 do
11471 # Extract the first word of "$ac_prog", so it can be a program name with args.
11472 set dummy $ac_prog; ac_word=$2
11473 echo "$as_me:$LINENO: checking for $ac_word" >&5
11474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11475 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 else
11478 if test -n "$ac_ct_CXX"; then
11479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11480 else
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482 for as_dir in $PATH
11483 do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11488 ac_cv_prog_ac_ct_CXX="$ac_prog"
11489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11491 fi
11492 done
11493 done
11494
11495 fi
11496 fi
11497 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11498 if test -n "$ac_ct_CXX"; then
11499 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11500 echo "${ECHO_T}$ac_ct_CXX" >&6
11501 else
11502 echo "$as_me:$LINENO: result: no" >&5
11503 echo "${ECHO_T}no" >&6
11504 fi
11505
11506 test -n "$ac_ct_CXX" && break
11507 done
11508 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11509
11510 CXX=$ac_ct_CXX
11511 fi
11512
11513
11514 # Provide some information about the compiler.
11515 echo "$as_me:$LINENO:" \
11516 "checking for C++ compiler version" >&5
11517 ac_compiler=`set X $ac_compile; echo $2`
11518 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11519 (eval $ac_compiler --version </dev/null >&5) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }
11523 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11524 (eval $ac_compiler -v </dev/null >&5) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }
11528 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11529 (eval $ac_compiler -V </dev/null >&5) 2>&5
11530 ac_status=$?
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }
11533
11534 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11535 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11536 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 else
11539 cat >conftest.$ac_ext <<_ACEOF
11540 /* confdefs.h. */
11541 _ACEOF
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545
11546 int
11547 main ()
11548 {
11549 #ifndef __GNUC__
11550 choke me
11551 #endif
11552
11553 ;
11554 return 0;
11555 }
11556 _ACEOF
11557 rm -f conftest.$ac_objext
11558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
11566 { ac_try='test -z "$ac_cxx_werror_flag"
11567 || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ac_compiler_gnu=yes
11580 else
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584 ac_compiler_gnu=no
11585 fi
11586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11587 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11588
11589 fi
11590 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11591 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11592 GXX=`test $ac_compiler_gnu = yes && echo yes`
11593 ac_test_CXXFLAGS=${CXXFLAGS+set}
11594 ac_save_CXXFLAGS=$CXXFLAGS
11595 CXXFLAGS="-g"
11596 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11597 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11598 if test "${ac_cv_prog_cxx_g+set}" = set; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 cat >conftest.$ac_ext <<_ACEOF
11602 /* confdefs.h. */
11603 _ACEOF
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11607
11608 int
11609 main ()
11610 {
11611
11612 ;
11613 return 0;
11614 }
11615 _ACEOF
11616 rm -f conftest.$ac_objext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11618 (eval $ac_compile) 2>conftest.er1
11619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_cxx_werror_flag"
11626 || test ! -s conftest.err'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try='test -s conftest.$ac_objext'
11633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634 (eval $ac_try) 2>&5
11635 ac_status=$?
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); }; }; then
11638 ac_cv_prog_cxx_g=yes
11639 else
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.$ac_ext >&5
11642
11643 ac_cv_prog_cxx_g=no
11644 fi
11645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11646 fi
11647 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11648 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11649 if test "$ac_test_CXXFLAGS" = set; then
11650 CXXFLAGS=$ac_save_CXXFLAGS
11651 elif test $ac_cv_prog_cxx_g = yes; then
11652 if test "$GXX" = yes; then
11653 CXXFLAGS="-g -O2"
11654 else
11655 CXXFLAGS="-g"
11656 fi
11657 else
11658 if test "$GXX" = yes; then
11659 CXXFLAGS="-O2"
11660 else
11661 CXXFLAGS=
11662 fi
11663 fi
11664 for ac_declaration in \
11665 '' \
11666 'extern "C" void std::exit (int) throw (); using std::exit;' \
11667 'extern "C" void std::exit (int); using std::exit;' \
11668 'extern "C" void exit (int) throw ();' \
11669 'extern "C" void exit (int);' \
11670 'void exit (int);'
11671 do
11672 cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h. */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 $ac_declaration
11679 #include <stdlib.h>
11680 int
11681 main ()
11682 {
11683 exit (42);
11684 ;
11685 return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>conftest.er1
11691 ac_status=$?
11692 grep -v '^ *+' conftest.er1 >conftest.err
11693 rm -f conftest.er1
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -z "$ac_cxx_werror_flag"
11698 || test ! -s conftest.err'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest.$ac_objext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11707 ac_status=$?
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 :
11711 else
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 continue
11716 fi
11717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h. */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h. */
11724 $ac_declaration
11725 int
11726 main ()
11727 {
11728 exit (42);
11729 ;
11730 return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext
11734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11735 (eval $ac_compile) 2>conftest.er1
11736 ac_status=$?
11737 grep -v '^ *+' conftest.er1 >conftest.err
11738 rm -f conftest.er1
11739 cat conftest.err >&5
11740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741 (exit $ac_status); } &&
11742 { ac_try='test -z "$ac_cxx_werror_flag"
11743 || test ! -s conftest.err'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11746 ac_status=$?
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; } &&
11749 { ac_try='test -s conftest.$ac_objext'
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
11755 break
11756 else
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760 fi
11761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11762 done
11763 rm -f conftest*
11764 if test -n "$ac_declaration"; then
11765 echo '#ifdef __cplusplus' >>confdefs.h
11766 echo $ac_declaration >>confdefs.h
11767 echo '#endif' >>confdefs.h
11768 fi
11769
11770 ac_ext=cc
11771 ac_cpp='$CXXCPP $CPPFLAGS'
11772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11775
11776
11777 ac_ext=c
11778 ac_cpp='$CPP $CPPFLAGS'
11779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11782
11783
11784 if test -n "$ac_tool_prefix"; then
11785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11787 echo "$as_me:$LINENO: checking for $ac_word" >&5
11788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789 if test "${ac_cv_prog_RANLIB+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792 if test -n "$RANLIB"; then
11793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11794 else
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11797 do
11798 IFS=$as_save_IFS
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 break 2
11805 fi
11806 done
11807 done
11808
11809 fi
11810 fi
11811 RANLIB=$ac_cv_prog_RANLIB
11812 if test -n "$RANLIB"; then
11813 echo "$as_me:$LINENO: result: $RANLIB" >&5
11814 echo "${ECHO_T}$RANLIB" >&6
11815 else
11816 echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6
11818 fi
11819
11820 fi
11821 if test -z "$ac_cv_prog_RANLIB"; then
11822 ac_ct_RANLIB=$RANLIB
11823 # Extract the first word of "ranlib", so it can be a program name with args.
11824 set dummy ranlib; ac_word=$2
11825 echo "$as_me:$LINENO: checking for $ac_word" >&5
11826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830 if test -n "$ac_ct_RANLIB"; then
11831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11832 else
11833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834 for as_dir in $PATH
11835 do
11836 IFS=$as_save_IFS
11837 test -z "$as_dir" && as_dir=.
11838 for ac_exec_ext in '' $ac_executable_extensions; do
11839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11840 ac_cv_prog_ac_ct_RANLIB="ranlib"
11841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 break 2
11843 fi
11844 done
11845 done
11846
11847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11848 fi
11849 fi
11850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11851 if test -n "$ac_ct_RANLIB"; then
11852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11854 else
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11857 fi
11858
11859 RANLIB=$ac_ct_RANLIB
11860 else
11861 RANLIB="$ac_cv_prog_RANLIB"
11862 fi
11863
11864
11865 # Extract the first word of "ar", so it can be a program name with args.
11866 set dummy ar; ac_word=$2
11867 echo "$as_me:$LINENO: checking for $ac_word" >&5
11868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11869 if test "${ac_cv_prog_AR+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872 if test -n "$AR"; then
11873 ac_cv_prog_AR="$AR" # Let the user override the test.
11874 else
11875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876 for as_dir in $PATH
11877 do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_AR="ar"
11883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886 done
11887 done
11888
11889 fi
11890 fi
11891 AR=$ac_cv_prog_AR
11892 if test -n "$AR"; then
11893 echo "$as_me:$LINENO: result: $AR" >&5
11894 echo "${ECHO_T}$AR" >&6
11895 else
11896 echo "$as_me:$LINENO: result: no" >&5
11897 echo "${ECHO_T}no" >&6
11898 fi
11899
11900 if test "x$AR" = "x" ; then
11901 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11902 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
11903 { (exit 1); exit 1; }; }
11904 fi
11905
11906 # Find a good install program. We prefer a C program (faster),
11907 # so one script is as good as another. But avoid the broken or
11908 # incompatible versions:
11909 # SysV /etc/install, /usr/sbin/install
11910 # SunOS /usr/etc/install
11911 # IRIX /sbin/install
11912 # AIX /bin/install
11913 # AmigaOS /C/install, which installs bootblocks on floppy discs
11914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11917 # OS/2's system install, which has a completely different semantic
11918 # ./install, which can be erroneously created by make from ./install.sh.
11919 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11920 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11921 if test -z "$INSTALL"; then
11922 if test "${ac_cv_path_install+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928 IFS=$as_save_IFS
11929 test -z "$as_dir" && as_dir=.
11930 # Account for people who put trailing slashes in PATH elements.
11931 case $as_dir/ in
11932 ./ | .// | /cC/* | \
11933 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11934 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11935 /usr/ucb/* ) ;;
11936 *)
11937 # OSF1 and SCO ODT 3.0 have their own names for install.
11938 # Don't use installbsd from OSF since it installs stuff as root
11939 # by default.
11940 for ac_prog in ginstall scoinst install; do
11941 for ac_exec_ext in '' $ac_executable_extensions; do
11942 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11943 if test $ac_prog = install &&
11944 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11945 # AIX install. It has an incompatible calling convention.
11946 :
11947 elif test $ac_prog = install &&
11948 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11949 # program-specific install script used by HP pwplus--don't use.
11950 :
11951 else
11952 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11953 break 3
11954 fi
11955 fi
11956 done
11957 done
11958 ;;
11959 esac
11960 done
11961
11962
11963 fi
11964 if test "${ac_cv_path_install+set}" = set; then
11965 INSTALL=$ac_cv_path_install
11966 else
11967 # As a last resort, use the slow shell script. We don't cache a
11968 # path for INSTALL within a source directory, because that will
11969 # break other packages using the cache if that directory is
11970 # removed, or if the path is relative.
11971 INSTALL=$ac_install_sh
11972 fi
11973 fi
11974 echo "$as_me:$LINENO: result: $INSTALL" >&5
11975 echo "${ECHO_T}$INSTALL" >&6
11976
11977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11978 # It thinks the first close brace ends the variable substitution.
11979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11980
11981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11982
11983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11984
11985
11986 case ${INSTALL} in
11987 /* ) # Absolute
11988 ;;
11989 ?:* ) # Drive letter, considered as absolute.
11990 ;;
11991 *)
11992 INSTALL=`pwd`/${INSTALL} ;;
11993 esac
11994
11995 case ${host} in
11996 *-hp-hpux* )
11997 INSTALL_DIR="mkdir"
11998 ;;
11999
12000 *) INSTALL_DIR="$INSTALL -d"
12001 ;;
12002 esac
12003
12004
12005 case "${host}" in
12006
12007 powerpc-*-darwin* )
12008 INSTALL_PROGRAM="cp -fp"
12009 INSTALL_DATA="cp -fp"
12010 ;;
12011 *)
12012 ;;
12013 esac
12014
12015 # Extract the first word of "strip", so it can be a program name with args.
12016 set dummy strip; ac_word=$2
12017 echo "$as_me:$LINENO: checking for $ac_word" >&5
12018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12019 if test "${ac_cv_prog_STRIP+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022 if test -n "$STRIP"; then
12023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12024 else
12025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026 for as_dir in $PATH
12027 do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
12031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12032 ac_cv_prog_STRIP="strip"
12033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 break 2
12035 fi
12036 done
12037 done
12038
12039 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12040 fi
12041 fi
12042 STRIP=$ac_cv_prog_STRIP
12043 if test -n "$STRIP"; then
12044 echo "$as_me:$LINENO: result: $STRIP" >&5
12045 echo "${ECHO_T}$STRIP" >&6
12046 else
12047 echo "$as_me:$LINENO: result: no" >&5
12048 echo "${ECHO_T}no" >&6
12049 fi
12050
12051
12052 echo "$as_me:$LINENO: checking if make is GNU make" >&5
12053 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12054 if test "${wx_cv_prog_makeisgnu+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 else
12057
12058 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12059 egrep -s GNU > /dev/null); then
12060 wx_cv_prog_makeisgnu="yes"
12061 else
12062 wx_cv_prog_makeisgnu="no"
12063 fi
12064
12065 fi
12066 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12067 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12068
12069 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12070 IF_GNU_MAKE=""
12071 else
12072 IF_GNU_MAKE="#"
12073 fi
12074
12075
12076
12077 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12078 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12079 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12080 if test "${wx_cv_prog_makevpath+set}" = set; then
12081 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083
12084 cat - << EOF > confMake
12085 check : file
12086 cp \$? \$@
12087 cp \$? final_file
12088 EOF
12089
12090 if test ! -d sub ; then
12091 mkdir sub
12092 fi
12093 echo dummy > sub/file
12094 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12095 RESULT=$?
12096 rm -f sub/file check final_file confMake
12097 rmdir sub
12098 if test "$RESULT" = 0; then
12099 wx_cv_prog_makevpath="yes"
12100 else
12101 wx_cv_prog_makevpath="no"
12102 fi
12103
12104 fi
12105 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12106 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12107
12108 if test "x$wx_cv_prog_makevpath" != "xyes"; then
12109 { { echo "$as_me:$LINENO: error:
12110 You need a make-utility that is able to use the variable
12111 VPATH correctly.
12112 If your version of make does not support VPATH correctly,
12113 please install GNU-make (possibly as gmake), and start
12114 configure with the following command:
12115 export MAKE=gmake; ./configure for sh-type shells
12116 setenv MAKE gmake; ./configure for csh-type shells
12117 Also please do remember to use gmake in this case every time
12118 you are trying to compile.
12119 " >&5
12120 echo "$as_me: error:
12121 You need a make-utility that is able to use the variable
12122 VPATH correctly.
12123 If your version of make does not support VPATH correctly,
12124 please install GNU-make (possibly as gmake), and start
12125 configure with the following command:
12126 export MAKE=gmake; ./configure for sh-type shells
12127 setenv MAKE gmake; ./configure for csh-type shells
12128 Also please do remember to use gmake in this case every time
12129 you are trying to compile.
12130 " >&2;}
12131 { (exit 1); exit 1; }; }
12132 fi fi
12133 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12134 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12135 LN_S=$as_ln_s
12136 if test "$LN_S" = "ln -s"; then
12137 echo "$as_me:$LINENO: result: yes" >&5
12138 echo "${ECHO_T}yes" >&6
12139 else
12140 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12141 echo "${ECHO_T}no, using $LN_S" >&6
12142 fi
12143
12144
12145
12146 case "${host}" in
12147 *-pc-os2_emx | *-pc-os2-emx )
12148 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12149 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12150 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12151 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-lcExt $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h. */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12162
12163 /* Override any gcc2 internal prototype to avoid an error. */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 /* We use char because int might match the return type of a gcc2
12168 builtin and then its argument prototype would still apply. */
12169 char drand48 ();
12170 int
12171 main ()
12172 {
12173 drand48 ();
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12180 (eval $ac_link) 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12191 ac_status=$?
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try='test -s conftest$ac_exeext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12200 ac_cv_lib_cExt_drand48=yes
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 ac_cv_lib_cExt_drand48=no
12206 fi
12207 rm -f conftest.err conftest.$ac_objext \
12208 conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12210 fi
12211 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12212 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12213 if test $ac_cv_lib_cExt_drand48 = yes; then
12214 LIBS="$LIBS -lcExt"
12215 fi
12216
12217 else
12218 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12219 fi
12220 echo "$as_me:$LINENO: checking for gcc version" >&5
12221 echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12222 if test "${wx_cv_gccversion+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225
12226 cat >conftest.$ac_ext <<_ACEOF
12227 /* confdefs.h. */
12228 _ACEOF
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232
12233 int
12234 main ()
12235 {
12236
12237 #if (__GNUC__ < 3)
12238 #error old gcc
12239 #endif
12240
12241 ;
12242 return 0;
12243 }
12244 _ACEOF
12245 rm -f conftest.$ac_objext
12246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12247 (eval $ac_compile) 2>conftest.er1
12248 ac_status=$?
12249 grep -v '^ *+' conftest.er1 >conftest.err
12250 rm -f conftest.er1
12251 cat conftest.err >&5
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -z "$ac_c_werror_flag"
12255 || test ! -s conftest.err'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12258 ac_status=$?
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; } &&
12261 { ac_try='test -s conftest.$ac_objext'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
12267
12268 cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h. */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h. */
12274
12275 int
12276 main ()
12277 {
12278
12279 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12280 #error intermediate gcc
12281 #endif
12282
12283 ;
12284 return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext
12288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12289 (eval $ac_compile) 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -z "$ac_c_werror_flag"
12297 || test ! -s conftest.err'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; } &&
12303 { ac_try='test -s conftest.$ac_objext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309
12310 wx_cv_gccversion=Innotek
12311
12312 else
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316
12317 wx_cv_gccversion=3
12318
12319
12320 fi
12321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12322
12323 else
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12326
12327
12328 wx_cv_gccversion=2
12329
12330
12331 fi
12332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12333
12334 fi
12335 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12336 echo "${ECHO_T}$wx_cv_gccversion" >&6
12337 if test "$wx_cv_gccversion" = "2"; then
12338 LIBS="$LIBS -lstdcpp"
12339 LDFLAGS="$LDFLAGS -Zsysv-signals"
12340 else
12341 if test "$wx_cv_gccversion" = "3"; then
12342 LIBS="$LIBS -lstdcxx"
12343 LDFLAGS="$LDFLAGS -Zsysv-signals"
12344 else
12345 LIBS="$LIBS -lstdc++"
12346 fi
12347 fi
12348 if test "$wxUSE_OMF" = "yes"; then
12349 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12350 fi
12351 ;;
12352 *)
12353
12354
12355
12356 ac_ext=cc
12357 ac_cpp='$CXXCPP $CPPFLAGS'
12358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12361
12362
12363
12364 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12365 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12366 if test "${ac_cv_string_strcasecmp+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 else
12369
12370 cat >conftest.$ac_ext <<_ACEOF
12371 /* confdefs.h. */
12372 _ACEOF
12373 cat confdefs.h >>conftest.$ac_ext
12374 cat >>conftest.$ac_ext <<_ACEOF
12375 /* end confdefs.h. */
12376
12377 #include <string.h>
12378
12379 int
12380 main ()
12381 {
12382
12383 strcasecmp("foo", "bar");
12384
12385 ;
12386 return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12391 (eval $ac_link) 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } &&
12398 { ac_try='test -z "$ac_cxx_werror_flag"
12399 || test ! -s conftest.err'
12400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12401 (eval $ac_try) 2>&5
12402 ac_status=$?
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest$ac_exeext'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; }; then
12411 ac_cv_string_strcasecmp=yes
12412 else
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_cv_string_strcasecmp=no
12417
12418 fi
12419 rm -f conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
12421
12422 fi
12423 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12424 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12425
12426 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12427 cat >>confdefs.h <<\_ACEOF
12428 #define HAVE_STRCASECMP_IN_STRING_H 1
12429 _ACEOF
12430
12431 else
12432 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12433 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12434 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 else
12437
12438 cat >conftest.$ac_ext <<_ACEOF
12439 /* confdefs.h. */
12440 _ACEOF
12441 cat confdefs.h >>conftest.$ac_ext
12442 cat >>conftest.$ac_ext <<_ACEOF
12443 /* end confdefs.h. */
12444
12445 #include <strings.h>
12446
12447 int
12448 main ()
12449 {
12450
12451 strcasecmp("foo", "bar");
12452
12453 ;
12454 return 0;
12455 }
12456 _ACEOF
12457 rm -f conftest.$ac_objext conftest$ac_exeext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12459 (eval $ac_link) 2>conftest.er1
12460 ac_status=$?
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -z "$ac_cxx_werror_flag"
12467 || test ! -s conftest.err'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_strings_strcasecmp=yes
12480 else
12481 echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484 ac_cv_strings_strcasecmp=no
12485
12486 fi
12487 rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
12489
12490 fi
12491 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12492 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12493
12494 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12495 cat >>confdefs.h <<\_ACEOF
12496 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12497 _ACEOF
12498
12499 else
12500 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12501 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12502 { (exit 1); exit 1; }; }
12503 fi
12504 fi
12505
12506 ac_ext=c
12507 ac_cpp='$CPP $CPPFLAGS'
12508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511
12512 ;;
12513 esac
12514
12515
12516 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12517 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12518 if test "${ac_cv_header_stdc+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 else
12521 cat >conftest.$ac_ext <<_ACEOF
12522 /* confdefs.h. */
12523 _ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <stdlib.h>
12528 #include <stdarg.h>
12529 #include <string.h>
12530 #include <float.h>
12531
12532 int
12533 main ()
12534 {
12535
12536 ;
12537 return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag"
12550 || test ! -s conftest.err'
12551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552 (eval $ac_try) 2>&5
12553 ac_status=$?
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; } &&
12556 { ac_try='test -s conftest.$ac_objext'
12557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558 (eval $ac_try) 2>&5
12559 ac_status=$?
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; }; then
12562 ac_cv_header_stdc=yes
12563 else
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_cv_header_stdc=no
12568 fi
12569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12570
12571 if test $ac_cv_header_stdc = yes; then
12572 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 #include <string.h>
12580
12581 _ACEOF
12582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12583 $EGREP "memchr" >/dev/null 2>&1; then
12584 :
12585 else
12586 ac_cv_header_stdc=no
12587 fi
12588 rm -f conftest*
12589
12590 fi
12591
12592 if test $ac_cv_header_stdc = yes; then
12593 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12594 cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h. */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 #include <stdlib.h>
12601
12602 _ACEOF
12603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12604 $EGREP "free" >/dev/null 2>&1; then
12605 :
12606 else
12607 ac_cv_header_stdc=no
12608 fi
12609 rm -f conftest*
12610
12611 fi
12612
12613 if test $ac_cv_header_stdc = yes; then
12614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12615 if test "$cross_compiling" = yes; then
12616 :
12617 else
12618 cat >conftest.$ac_ext <<_ACEOF
12619 /* confdefs.h. */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 #include <ctype.h>
12625 #if ((' ' & 0x0FF) == 0x020)
12626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12628 #else
12629 # define ISLOWER(c) \
12630 (('a' <= (c) && (c) <= 'i') \
12631 || ('j' <= (c) && (c) <= 'r') \
12632 || ('s' <= (c) && (c) <= 'z'))
12633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12634 #endif
12635
12636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12637 int
12638 main ()
12639 {
12640 int i;
12641 for (i = 0; i < 256; i++)
12642 if (XOR (islower (i), ISLOWER (i))
12643 || toupper (i) != TOUPPER (i))
12644 exit(2);
12645 exit (0);
12646 }
12647 _ACEOF
12648 rm -f conftest$ac_exeext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 :
12660 else
12661 echo "$as_me: program exited with status $ac_status" >&5
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 ( exit $ac_status )
12666 ac_cv_header_stdc=no
12667 fi
12668 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12669 fi
12670 fi
12671 fi
12672 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12673 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12674 if test $ac_cv_header_stdc = yes; then
12675
12676 cat >>confdefs.h <<\_ACEOF
12677 #define STDC_HEADERS 1
12678 _ACEOF
12679
12680 fi
12681
12682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12693 inttypes.h stdint.h unistd.h
12694 do
12695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12696 echo "$as_me:$LINENO: checking for $ac_header" >&5
12697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12700 else
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708
12709 #include <$ac_header>
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>conftest.er1
12714 ac_status=$?
12715 grep -v '^ *+' conftest.er1 >conftest.err
12716 rm -f conftest.er1
12717 cat conftest.err >&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -z "$ac_c_werror_flag"
12721 || test ! -s conftest.err'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12724 ac_status=$?
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; } &&
12727 { ac_try='test -s conftest.$ac_objext'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; }; then
12733 eval "$as_ac_Header=yes"
12734 else
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 eval "$as_ac_Header=no"
12739 fi
12740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12741 fi
12742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12745 cat >>confdefs.h <<_ACEOF
12746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12747 _ACEOF
12748
12749 fi
12750
12751 done
12752
12753
12754
12755 for ac_header in stdlib.h
12756 do
12757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12759 echo "$as_me:$LINENO: checking for $ac_header" >&5
12760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12762 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 fi
12764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12766 else
12767 # Is the header compilable?
12768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h. */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 $ac_includes_default
12777 #include <$ac_header>
12778 _ACEOF
12779 rm -f conftest.$ac_objext
12780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12781 (eval $ac_compile) 2>conftest.er1
12782 ac_status=$?
12783 grep -v '^ *+' conftest.er1 >conftest.err
12784 rm -f conftest.er1
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag"
12789 || test ! -s conftest.err'
12790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12791 (eval $ac_try) 2>&5
12792 ac_status=$?
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try='test -s conftest.$ac_objext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12798 ac_status=$?
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_header_compiler=yes
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 ac_header_compiler=no
12807 fi
12808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12809 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12810 echo "${ECHO_T}$ac_header_compiler" >&6
12811
12812 # Is the header present?
12813 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12815 cat >conftest.$ac_ext <<_ACEOF
12816 /* confdefs.h. */
12817 _ACEOF
12818 cat confdefs.h >>conftest.$ac_ext
12819 cat >>conftest.$ac_ext <<_ACEOF
12820 /* end confdefs.h. */
12821 #include <$ac_header>
12822 _ACEOF
12823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12824 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); } >/dev/null; then
12831 if test -s conftest.err; then
12832 ac_cpp_err=$ac_c_preproc_warn_flag
12833 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12834 else
12835 ac_cpp_err=
12836 fi
12837 else
12838 ac_cpp_err=yes
12839 fi
12840 if test -z "$ac_cpp_err"; then
12841 ac_header_preproc=yes
12842 else
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 ac_header_preproc=no
12847 fi
12848 rm -f conftest.err conftest.$ac_ext
12849 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12850 echo "${ECHO_T}$ac_header_preproc" >&6
12851
12852 # So? What about this header?
12853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12854 yes:no: )
12855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12859 ac_header_preproc=yes
12860 ;;
12861 no:yes:* )
12862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12874 (
12875 cat <<\_ASBOX
12876 ## ----------------------------------------- ##
12877 ## Report this to wx-dev@lists.wxwidgets.org ##
12878 ## ----------------------------------------- ##
12879 _ASBOX
12880 ) |
12881 sed "s/^/$as_me: WARNING: /" >&2
12882 ;;
12883 esac
12884 echo "$as_me:$LINENO: checking for $ac_header" >&5
12885 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12888 else
12889 eval "$as_ac_Header=\$ac_header_preproc"
12890 fi
12891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12893
12894 fi
12895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12896 cat >>confdefs.h <<_ACEOF
12897 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12898 _ACEOF
12899
12900 fi
12901
12902 done
12903
12904
12905 for ac_header in malloc.h
12906 do
12907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12909 echo "$as_me:$LINENO: checking for $ac_header" >&5
12910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12912 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 fi
12914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12916 else
12917 # Is the header compilable?
12918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12920 cat >conftest.$ac_ext <<_ACEOF
12921 /* confdefs.h. */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 $ac_includes_default
12927 #include <$ac_header>
12928 _ACEOF
12929 rm -f conftest.$ac_objext
12930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12931 (eval $ac_compile) 2>conftest.er1
12932 ac_status=$?
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try='test -z "$ac_c_werror_flag"
12939 || test ! -s conftest.err'
12940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12941 (eval $ac_try) 2>&5
12942 ac_status=$?
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); }; } &&
12945 { ac_try='test -s conftest.$ac_objext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12948 ac_status=$?
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_header_compiler=yes
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 ac_header_compiler=no
12957 fi
12958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12959 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12960 echo "${ECHO_T}$ac_header_compiler" >&6
12961
12962 # Is the header present?
12963 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 #include <$ac_header>
12972 _ACEOF
12973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } >/dev/null; then
12981 if test -s conftest.err; then
12982 ac_cpp_err=$ac_c_preproc_warn_flag
12983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12984 else
12985 ac_cpp_err=
12986 fi
12987 else
12988 ac_cpp_err=yes
12989 fi
12990 if test -z "$ac_cpp_err"; then
12991 ac_header_preproc=yes
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_header_preproc=no
12997 fi
12998 rm -f conftest.err conftest.$ac_ext
12999 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13000 echo "${ECHO_T}$ac_header_preproc" >&6
13001
13002 # So? What about this header?
13003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13004 yes:no: )
13005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13009 ac_header_preproc=yes
13010 ;;
13011 no:yes:* )
13012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13024 (
13025 cat <<\_ASBOX
13026 ## ----------------------------------------- ##
13027 ## Report this to wx-dev@lists.wxwidgets.org ##
13028 ## ----------------------------------------- ##
13029 _ASBOX
13030 ) |
13031 sed "s/^/$as_me: WARNING: /" >&2
13032 ;;
13033 esac
13034 echo "$as_me:$LINENO: checking for $ac_header" >&5
13035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13037 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 else
13039 eval "$as_ac_Header=\$ac_header_preproc"
13040 fi
13041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13043
13044 fi
13045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13046 cat >>confdefs.h <<_ACEOF
13047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13048 _ACEOF
13049
13050 fi
13051
13052 done
13053
13054
13055 for ac_header in unistd.h
13056 do
13057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13059 echo "$as_me:$LINENO: checking for $ac_header" >&5
13060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13062 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 fi
13064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13066 else
13067 # Is the header compilable?
13068 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13069 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13070 cat >conftest.$ac_ext <<_ACEOF
13071 /* confdefs.h. */
13072 _ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 $ac_includes_default
13077 #include <$ac_header>
13078 _ACEOF
13079 rm -f conftest.$ac_objext
13080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13081 (eval $ac_compile) 2>conftest.er1
13082 ac_status=$?
13083 grep -v '^ *+' conftest.er1 >conftest.err
13084 rm -f conftest.er1
13085 cat conftest.err >&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } &&
13088 { ac_try='test -z "$ac_c_werror_flag"
13089 || test ! -s conftest.err'
13090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; } &&
13095 { ac_try='test -s conftest.$ac_objext'
13096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13097 (eval $ac_try) 2>&5
13098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 ac_header_compiler=yes
13102 else
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13105
13106 ac_header_compiler=no
13107 fi
13108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110 echo "${ECHO_T}$ac_header_compiler" >&6
13111
13112 # Is the header present?
13113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13115 cat >conftest.$ac_ext <<_ACEOF
13116 /* confdefs.h. */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <$ac_header>
13122 _ACEOF
13123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130 (exit $ac_status); } >/dev/null; then
13131 if test -s conftest.err; then
13132 ac_cpp_err=$ac_c_preproc_warn_flag
13133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13134 else
13135 ac_cpp_err=
13136 fi
13137 else
13138 ac_cpp_err=yes
13139 fi
13140 if test -z "$ac_cpp_err"; then
13141 ac_header_preproc=yes
13142 else
13143 echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146 ac_header_preproc=no
13147 fi
13148 rm -f conftest.err conftest.$ac_ext
13149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13150 echo "${ECHO_T}$ac_header_preproc" >&6
13151
13152 # So? What about this header?
13153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13154 yes:no: )
13155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13159 ac_header_preproc=yes
13160 ;;
13161 no:yes:* )
13162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13174 (
13175 cat <<\_ASBOX
13176 ## ----------------------------------------- ##
13177 ## Report this to wx-dev@lists.wxwidgets.org ##
13178 ## ----------------------------------------- ##
13179 _ASBOX
13180 ) |
13181 sed "s/^/$as_me: WARNING: /" >&2
13182 ;;
13183 esac
13184 echo "$as_me:$LINENO: checking for $ac_header" >&5
13185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13186 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 eval "$as_ac_Header=\$ac_header_preproc"
13190 fi
13191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13193
13194 fi
13195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13196 cat >>confdefs.h <<_ACEOF
13197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13198 _ACEOF
13199
13200 fi
13201
13202 done
13203
13204
13205 for ac_header in wchar.h
13206 do
13207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13209 echo "$as_me:$LINENO: checking for $ac_header" >&5
13210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13211 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13213 fi
13214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13216 else
13217 # Is the header compilable?
13218 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13219 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13220 cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h. */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 $ac_includes_default
13227 #include <$ac_header>
13228 _ACEOF
13229 rm -f conftest.$ac_objext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13231 (eval $ac_compile) 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag"
13239 || test ! -s conftest.err'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest.$ac_objext'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_header_compiler=yes
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 ac_header_compiler=no
13257 fi
13258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13260 echo "${ECHO_T}$ac_header_compiler" >&6
13261
13262 # Is the header present?
13263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13265 cat >conftest.$ac_ext <<_ACEOF
13266 /* confdefs.h. */
13267 _ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 #include <$ac_header>
13272 _ACEOF
13273 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } >/dev/null; then
13281 if test -s conftest.err; then
13282 ac_cpp_err=$ac_c_preproc_warn_flag
13283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13284 else
13285 ac_cpp_err=
13286 fi
13287 else
13288 ac_cpp_err=yes
13289 fi
13290 if test -z "$ac_cpp_err"; then
13291 ac_header_preproc=yes
13292 else
13293 echo "$as_me: failed program was:" >&5
13294 sed 's/^/| /' conftest.$ac_ext >&5
13295
13296 ac_header_preproc=no
13297 fi
13298 rm -f conftest.err conftest.$ac_ext
13299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13300 echo "${ECHO_T}$ac_header_preproc" >&6
13301
13302 # So? What about this header?
13303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13304 yes:no: )
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13309 ac_header_preproc=yes
13310 ;;
13311 no:yes:* )
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13319 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13324 (
13325 cat <<\_ASBOX
13326 ## ----------------------------------------- ##
13327 ## Report this to wx-dev@lists.wxwidgets.org ##
13328 ## ----------------------------------------- ##
13329 _ASBOX
13330 ) |
13331 sed "s/^/$as_me: WARNING: /" >&2
13332 ;;
13333 esac
13334 echo "$as_me:$LINENO: checking for $ac_header" >&5
13335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 else
13339 eval "$as_ac_Header=\$ac_header_preproc"
13340 fi
13341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13343
13344 fi
13345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13346 cat >>confdefs.h <<_ACEOF
13347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13348 _ACEOF
13349
13350 fi
13351
13352 done
13353
13354
13355 if test "$ac_cv_header_wchar_h" != "yes"; then
13356
13357 for ac_header in wcstr.h
13358 do
13359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13361 echo "$as_me:$LINENO: checking for $ac_header" >&5
13362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365 fi
13366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13368 else
13369 # Is the header compilable?
13370 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 $ac_includes_default
13379 #include <$ac_header>
13380 _ACEOF
13381 rm -f conftest.$ac_objext
13382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13383 (eval $ac_compile) 2>conftest.er1
13384 ac_status=$?
13385 grep -v '^ *+' conftest.er1 >conftest.err
13386 rm -f conftest.er1
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag"
13391 || test ! -s conftest.err'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13394 ac_status=$?
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest.$ac_objext'
13398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399 (eval $ac_try) 2>&5
13400 ac_status=$?
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); }; }; then
13403 ac_header_compiler=yes
13404 else
13405 echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 ac_header_compiler=no
13409 fi
13410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13412 echo "${ECHO_T}$ac_header_compiler" >&6
13413
13414 # Is the header present?
13415 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13417 cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h. */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 #include <$ac_header>
13424 _ACEOF
13425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13427 ac_status=$?
13428 grep -v '^ *+' conftest.er1 >conftest.err
13429 rm -f conftest.er1
13430 cat conftest.err >&5
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); } >/dev/null; then
13433 if test -s conftest.err; then
13434 ac_cpp_err=$ac_c_preproc_warn_flag
13435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13436 else
13437 ac_cpp_err=
13438 fi
13439 else
13440 ac_cpp_err=yes
13441 fi
13442 if test -z "$ac_cpp_err"; then
13443 ac_header_preproc=yes
13444 else
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13447
13448 ac_header_preproc=no
13449 fi
13450 rm -f conftest.err conftest.$ac_ext
13451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13452 echo "${ECHO_T}$ac_header_preproc" >&6
13453
13454 # So? What about this header?
13455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13456 yes:no: )
13457 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13461 ac_header_preproc=yes
13462 ;;
13463 no:yes:* )
13464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13471 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13476 (
13477 cat <<\_ASBOX
13478 ## ----------------------------------------- ##
13479 ## Report this to wx-dev@lists.wxwidgets.org ##
13480 ## ----------------------------------------- ##
13481 _ASBOX
13482 ) |
13483 sed "s/^/$as_me: WARNING: /" >&2
13484 ;;
13485 esac
13486 echo "$as_me:$LINENO: checking for $ac_header" >&5
13487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13488 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 eval "$as_ac_Header=\$ac_header_preproc"
13492 fi
13493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13495
13496 fi
13497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13498 cat >>confdefs.h <<_ACEOF
13499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13500 _ACEOF
13501
13502 fi
13503
13504 done
13505
13506 fi
13507
13508
13509 for ac_header in fnmatch.h
13510 do
13511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13513 echo "$as_me:$LINENO: checking for $ac_header" >&5
13514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13517 fi
13518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13520 else
13521 # Is the header compilable?
13522 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13524 cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h. */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 $ac_includes_default
13531 #include <$ac_header>
13532 _ACEOF
13533 rm -f conftest.$ac_objext
13534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13535 (eval $ac_compile) 2>conftest.er1
13536 ac_status=$?
13537 grep -v '^ *+' conftest.er1 >conftest.err
13538 rm -f conftest.er1
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } &&
13542 { ac_try='test -z "$ac_c_werror_flag"
13543 || test ! -s conftest.err'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13552 ac_status=$?
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_header_compiler=yes
13556 else
13557 echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13559
13560 ac_header_compiler=no
13561 fi
13562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13563 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13564 echo "${ECHO_T}$ac_header_compiler" >&6
13565
13566 # Is the header present?
13567 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13569 cat >conftest.$ac_ext <<_ACEOF
13570 /* confdefs.h. */
13571 _ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 #include <$ac_header>
13576 _ACEOF
13577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13579 ac_status=$?
13580 grep -v '^ *+' conftest.er1 >conftest.err
13581 rm -f conftest.er1
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } >/dev/null; then
13585 if test -s conftest.err; then
13586 ac_cpp_err=$ac_c_preproc_warn_flag
13587 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13588 else
13589 ac_cpp_err=
13590 fi
13591 else
13592 ac_cpp_err=yes
13593 fi
13594 if test -z "$ac_cpp_err"; then
13595 ac_header_preproc=yes
13596 else
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13599
13600 ac_header_preproc=no
13601 fi
13602 rm -f conftest.err conftest.$ac_ext
13603 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13604 echo "${ECHO_T}$ac_header_preproc" >&6
13605
13606 # So? What about this header?
13607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13608 yes:no: )
13609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13613 ac_header_preproc=yes
13614 ;;
13615 no:yes:* )
13616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13628 (
13629 cat <<\_ASBOX
13630 ## ----------------------------------------- ##
13631 ## Report this to wx-dev@lists.wxwidgets.org ##
13632 ## ----------------------------------------- ##
13633 _ASBOX
13634 ) |
13635 sed "s/^/$as_me: WARNING: /" >&2
13636 ;;
13637 esac
13638 echo "$as_me:$LINENO: checking for $ac_header" >&5
13639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13640 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643 eval "$as_ac_Header=\$ac_header_preproc"
13644 fi
13645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13646 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13647
13648 fi
13649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13650 cat >>confdefs.h <<_ACEOF
13651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13652 _ACEOF
13653
13654 fi
13655
13656 done
13657
13658
13659 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13660
13661 for ac_func in fnmatch
13662 do
13663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13664 echo "$as_me:$LINENO: checking for $ac_func" >&5
13665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13666 if eval "test \"\${$as_ac_var+set}\" = set"; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h. */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13677 #define $ac_func innocuous_$ac_func
13678
13679 /* System header to define __stub macros and hopefully few prototypes,
13680 which can conflict with char $ac_func (); below.
13681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13682 <limits.h> exists even on freestanding compilers. */
13683
13684 #ifdef __STDC__
13685 # include <limits.h>
13686 #else
13687 # include <assert.h>
13688 #endif
13689
13690 #undef $ac_func
13691
13692 /* Override any gcc2 internal prototype to avoid an error. */
13693 #ifdef __cplusplus
13694 extern "C"
13695 {
13696 #endif
13697 /* We use char because int might match the return type of a gcc2
13698 builtin and then its argument prototype would still apply. */
13699 char $ac_func ();
13700 /* The GNU C library defines this for functions which it implements
13701 to always fail with ENOSYS. Some functions are actually named
13702 something starting with __ and the normal name is an alias. */
13703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13704 choke me
13705 #else
13706 char (*f) () = $ac_func;
13707 #endif
13708 #ifdef __cplusplus
13709 }
13710 #endif
13711
13712 int
13713 main ()
13714 {
13715 return f != $ac_func;
13716 ;
13717 return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722 (eval $ac_link) 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag"
13730 || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 eval "$as_ac_var=yes"
13743 else
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747 eval "$as_ac_var=no"
13748 fi
13749 rm -f conftest.err conftest.$ac_objext \
13750 conftest$ac_exeext conftest.$ac_ext
13751 fi
13752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13753 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13754 if test `eval echo '${'$as_ac_var'}'` = yes; then
13755 cat >>confdefs.h <<_ACEOF
13756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13757 _ACEOF
13758
13759 fi
13760 done
13761
13762 fi
13763
13764
13765 for ac_header in langinfo.h
13766 do
13767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13769 echo "$as_me:$LINENO: checking for $ac_header" >&5
13770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 fi
13774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13776 else
13777 # Is the header compilable?
13778 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 $ac_includes_default
13787 #include <$ac_header>
13788 _ACEOF
13789 rm -f conftest.$ac_objext
13790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13791 (eval $ac_compile) 2>conftest.er1
13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_c_werror_flag"
13799 || test ! -s conftest.err'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest.$ac_objext'
13806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13807 (eval $ac_try) 2>&5
13808 ac_status=$?
13809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13810 (exit $ac_status); }; }; then
13811 ac_header_compiler=yes
13812 else
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ac_header_compiler=no
13817 fi
13818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13819 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13820 echo "${ECHO_T}$ac_header_compiler" >&6
13821
13822 # Is the header present?
13823 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13825 cat >conftest.$ac_ext <<_ACEOF
13826 /* confdefs.h. */
13827 _ACEOF
13828 cat confdefs.h >>conftest.$ac_ext
13829 cat >>conftest.$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13831 #include <$ac_header>
13832 _ACEOF
13833 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13835 ac_status=$?
13836 grep -v '^ *+' conftest.er1 >conftest.err
13837 rm -f conftest.er1
13838 cat conftest.err >&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); } >/dev/null; then
13841 if test -s conftest.err; then
13842 ac_cpp_err=$ac_c_preproc_warn_flag
13843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13844 else
13845 ac_cpp_err=
13846 fi
13847 else
13848 ac_cpp_err=yes
13849 fi
13850 if test -z "$ac_cpp_err"; then
13851 ac_header_preproc=yes
13852 else
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856 ac_header_preproc=no
13857 fi
13858 rm -f conftest.err conftest.$ac_ext
13859 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13860 echo "${ECHO_T}$ac_header_preproc" >&6
13861
13862 # So? What about this header?
13863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13864 yes:no: )
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13869 ac_header_preproc=yes
13870 ;;
13871 no:yes:* )
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13884 (
13885 cat <<\_ASBOX
13886 ## ----------------------------------------- ##
13887 ## Report this to wx-dev@lists.wxwidgets.org ##
13888 ## ----------------------------------------- ##
13889 _ASBOX
13890 ) |
13891 sed "s/^/$as_me: WARNING: /" >&2
13892 ;;
13893 esac
13894 echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 else
13899 eval "$as_ac_Header=\$ac_header_preproc"
13900 fi
13901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13903
13904 fi
13905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13906 cat >>confdefs.h <<_ACEOF
13907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13908 _ACEOF
13909
13910 fi
13911
13912 done
13913
13914
13915 case "${host}" in
13916 *-pc-os2_emx | *-pc-os2-emx )
13917 if test $ac_cv_header_langinfo_h = "yes"; then
13918 LIBS="$LIBS -lintl"
13919 fi
13920 ;;
13921 esac
13922
13923 if test "$wxUSE_GUI" = "yes"; then
13924 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13925
13926 for ac_header in X11/Xlib.h
13927 do
13928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13930 echo "$as_me:$LINENO: checking for $ac_header" >&5
13931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934 fi
13935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13937 else
13938 # Is the header compilable?
13939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13941 cat >conftest.$ac_ext <<_ACEOF
13942 /* confdefs.h. */
13943 _ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 $ac_includes_default
13948 #include <$ac_header>
13949 _ACEOF
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13952 (eval $ac_compile) 2>conftest.er1
13953 ac_status=$?
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } &&
13959 { ac_try='test -z "$ac_c_werror_flag"
13960 || test ! -s conftest.err'
13961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13962 (eval $ac_try) 2>&5
13963 ac_status=$?
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); }; } &&
13966 { ac_try='test -s conftest.$ac_objext'
13967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13968 (eval $ac_try) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); }; }; then
13972 ac_header_compiler=yes
13973 else
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977 ac_header_compiler=no
13978 fi
13979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13981 echo "${ECHO_T}$ac_header_compiler" >&6
13982
13983 # Is the header present?
13984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13986 cat >conftest.$ac_ext <<_ACEOF
13987 /* confdefs.h. */
13988 _ACEOF
13989 cat confdefs.h >>conftest.$ac_ext
13990 cat >>conftest.$ac_ext <<_ACEOF
13991 /* end confdefs.h. */
13992 #include <$ac_header>
13993 _ACEOF
13994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13996 ac_status=$?
13997 grep -v '^ *+' conftest.er1 >conftest.err
13998 rm -f conftest.er1
13999 cat conftest.err >&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } >/dev/null; then
14002 if test -s conftest.err; then
14003 ac_cpp_err=$ac_c_preproc_warn_flag
14004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14005 else
14006 ac_cpp_err=
14007 fi
14008 else
14009 ac_cpp_err=yes
14010 fi
14011 if test -z "$ac_cpp_err"; then
14012 ac_header_preproc=yes
14013 else
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017 ac_header_preproc=no
14018 fi
14019 rm -f conftest.err conftest.$ac_ext
14020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14021 echo "${ECHO_T}$ac_header_preproc" >&6
14022
14023 # So? What about this header?
14024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14025 yes:no: )
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14030 ac_header_preproc=yes
14031 ;;
14032 no:yes:* )
14033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14045 (
14046 cat <<\_ASBOX
14047 ## ----------------------------------------- ##
14048 ## Report this to wx-dev@lists.wxwidgets.org ##
14049 ## ----------------------------------------- ##
14050 _ASBOX
14051 ) |
14052 sed "s/^/$as_me: WARNING: /" >&2
14053 ;;
14054 esac
14055 echo "$as_me:$LINENO: checking for $ac_header" >&5
14056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 eval "$as_ac_Header=\$ac_header_preproc"
14061 fi
14062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14064
14065 fi
14066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14067 cat >>confdefs.h <<_ACEOF
14068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14069 _ACEOF
14070
14071 fi
14072
14073 done
14074
14075
14076 for ac_header in X11/XKBlib.h
14077 do
14078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14079 echo "$as_me:$LINENO: checking for $ac_header" >&5
14080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h. */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h. */
14090
14091 #if HAVE_X11_XLIB_H
14092 #include <X11/Xlib.h>
14093 #endif
14094
14095
14096 #include <$ac_header>
14097 _ACEOF
14098 rm -f conftest.$ac_objext
14099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14100 (eval $ac_compile) 2>conftest.er1
14101 ac_status=$?
14102 grep -v '^ *+' conftest.er1 >conftest.err
14103 rm -f conftest.er1
14104 cat conftest.err >&5
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); } &&
14107 { ac_try='test -z "$ac_c_werror_flag"
14108 || test ! -s conftest.err'
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; } &&
14114 { ac_try='test -s conftest.$ac_objext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14117 ac_status=$?
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 eval "$as_ac_Header=yes"
14121 else
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 eval "$as_ac_Header=no"
14126 fi
14127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14128 fi
14129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14132 cat >>confdefs.h <<_ACEOF
14133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14134 _ACEOF
14135
14136 fi
14137
14138 done
14139
14140 fi
14141 fi
14142
14143
14144 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14145 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14146 if test "${ac_cv_c_const+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155
14156 int
14157 main ()
14158 {
14159 /* FIXME: Include the comments suggested by Paul. */
14160 #ifndef __cplusplus
14161 /* Ultrix mips cc rejects this. */
14162 typedef int charset[2];
14163 const charset x;
14164 /* SunOS 4.1.1 cc rejects this. */
14165 char const *const *ccp;
14166 char **p;
14167 /* NEC SVR4.0.2 mips cc rejects this. */
14168 struct point {int x, y;};
14169 static struct point const zero = {0,0};
14170 /* AIX XL C 1.02.0.0 rejects this.
14171 It does not let you subtract one const X* pointer from another in
14172 an arm of an if-expression whose if-part is not a constant
14173 expression */
14174 const char *g = "string";
14175 ccp = &g + (g ? g-g : 0);
14176 /* HPUX 7.0 cc rejects these. */
14177 ++ccp;
14178 p = (char**) ccp;
14179 ccp = (char const *const *) p;
14180 { /* SCO 3.2v4 cc rejects this. */
14181 char *t;
14182 char const *s = 0 ? (char *) 0 : (char const *) 0;
14183
14184 *t++ = 0;
14185 }
14186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14187 int x[] = {25, 17};
14188 const int *foo = &x[0];
14189 ++foo;
14190 }
14191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14192 typedef const int *iptr;
14193 iptr p = 0;
14194 ++p;
14195 }
14196 { /* AIX XL C 1.02.0.0 rejects this saying
14197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14198 struct s { int j; const int *ap[3]; };
14199 struct s *b; b->j = 5;
14200 }
14201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14202 const int foo = 10;
14203 }
14204 #endif
14205
14206 ;
14207 return 0;
14208 }
14209 _ACEOF
14210 rm -f conftest.$ac_objext
14211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212 (eval $ac_compile) 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
14219 { ac_try='test -z "$ac_c_werror_flag"
14220 || test ! -s conftest.err'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest.$ac_objext'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }; then
14232 ac_cv_c_const=yes
14233 else
14234 echo "$as_me: failed program was:" >&5
14235 sed 's/^/| /' conftest.$ac_ext >&5
14236
14237 ac_cv_c_const=no
14238 fi
14239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14240 fi
14241 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14242 echo "${ECHO_T}$ac_cv_c_const" >&6
14243 if test $ac_cv_c_const = no; then
14244
14245 cat >>confdefs.h <<\_ACEOF
14246 #define const
14247 _ACEOF
14248
14249 fi
14250
14251 echo "$as_me:$LINENO: checking for inline" >&5
14252 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14253 if test "${ac_cv_c_inline+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 else
14256 ac_cv_c_inline=no
14257 for ac_kw in inline __inline__ __inline; do
14258 cat >conftest.$ac_ext <<_ACEOF
14259 /* confdefs.h. */
14260 _ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14264 #ifndef __cplusplus
14265 typedef int foo_t;
14266 static $ac_kw foo_t static_foo () {return 0; }
14267 $ac_kw foo_t foo () {return 0; }
14268 #endif
14269
14270 _ACEOF
14271 rm -f conftest.$ac_objext
14272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14273 (eval $ac_compile) 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_cv_c_inline=$ac_kw; break
14294 else
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14297
14298 fi
14299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14300 done
14301
14302 fi
14303 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14304 echo "${ECHO_T}$ac_cv_c_inline" >&6
14305
14306
14307 case $ac_cv_c_inline in
14308 inline | yes) ;;
14309 *)
14310 case $ac_cv_c_inline in
14311 no) ac_val=;;
14312 *) ac_val=$ac_cv_c_inline;;
14313 esac
14314 cat >>confdefs.h <<_ACEOF
14315 #ifndef __cplusplus
14316 #define inline $ac_val
14317 #endif
14318 _ACEOF
14319 ;;
14320 esac
14321
14322
14323 echo "$as_me:$LINENO: checking for char" >&5
14324 echo $ECHO_N "checking for char... $ECHO_C" >&6
14325 if test "${ac_cv_type_char+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 else
14328 cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h. */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14334 $ac_includes_default
14335 int
14336 main ()
14337 {
14338 if ((char *) 0)
14339 return 0;
14340 if (sizeof (char))
14341 return 0;
14342 ;
14343 return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348 (eval $ac_compile) 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } &&
14355 { ac_try='test -z "$ac_c_werror_flag"
14356 || test ! -s conftest.err'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; } &&
14362 { ac_try='test -s conftest.$ac_objext'
14363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364 (eval $ac_try) 2>&5
14365 ac_status=$?
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); }; }; then
14368 ac_cv_type_char=yes
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 ac_cv_type_char=no
14374 fi
14375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14376 fi
14377 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14378 echo "${ECHO_T}$ac_cv_type_char" >&6
14379
14380 echo "$as_me:$LINENO: checking size of char" >&5
14381 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14382 if test "${ac_cv_sizeof_char+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385 if test "$ac_cv_type_char" = yes; then
14386 # The cast to unsigned long works around a bug in the HP C Compiler
14387 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14388 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14389 # This bug is HP SR number 8606223364.
14390 if test "$cross_compiling" = yes; then
14391 # Depending upon the size, compute the lo and hi bounds.
14392 cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h. */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14398 $ac_includes_default
14399 int
14400 main ()
14401 {
14402 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14403 test_array [0] = 0
14404
14405 ;
14406 return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411 (eval $ac_compile) 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } &&
14418 { ac_try='test -z "$ac_c_werror_flag"
14419 || test ! -s conftest.err'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; } &&
14425 { ac_try='test -s conftest.$ac_objext'
14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427 (eval $ac_try) 2>&5
14428 ac_status=$?
14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430 (exit $ac_status); }; }; then
14431 ac_lo=0 ac_mid=0
14432 while :; do
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14440 int
14441 main ()
14442 {
14443 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14444 test_array [0] = 0
14445
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 rm -f conftest.$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452 (eval $ac_compile) 2>conftest.er1
14453 ac_status=$?
14454 grep -v '^ *+' conftest.er1 >conftest.err
14455 rm -f conftest.er1
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag"
14460 || test ! -s conftest.err'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; } &&
14466 { ac_try='test -s conftest.$ac_objext'
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; }; then
14472 ac_hi=$ac_mid; break
14473 else
14474 echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 ac_lo=`expr $ac_mid + 1`
14478 if test $ac_lo -le $ac_mid; then
14479 ac_lo= ac_hi=
14480 break
14481 fi
14482 ac_mid=`expr 2 '*' $ac_mid + 1`
14483 fi
14484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14485 done
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 $ac_includes_default
14497 int
14498 main ()
14499 {
14500 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14501 test_array [0] = 0
14502
14503 ;
14504 return 0;
14505 }
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509 (eval $ac_compile) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
14516 { ac_try='test -z "$ac_c_werror_flag"
14517 || test ! -s conftest.err'
14518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14520 ac_status=$?
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest.$ac_objext'
14524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14525 (eval $ac_try) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); }; }; then
14529 ac_hi=-1 ac_mid=-1
14530 while :; do
14531 cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h. */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 $ac_includes_default
14538 int
14539 main ()
14540 {
14541 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14542 test_array [0] = 0
14543
14544 ;
14545 return 0;
14546 }
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14550 (eval $ac_compile) 2>conftest.er1
14551 ac_status=$?
14552 grep -v '^ *+' conftest.er1 >conftest.err
14553 rm -f conftest.er1
14554 cat conftest.err >&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); } &&
14557 { ac_try='test -z "$ac_c_werror_flag"
14558 || test ! -s conftest.err'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; } &&
14564 { ac_try='test -s conftest.$ac_objext'
14565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14566 (eval $ac_try) 2>&5
14567 ac_status=$?
14568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569 (exit $ac_status); }; }; then
14570 ac_lo=$ac_mid; break
14571 else
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14574
14575 ac_hi=`expr '(' $ac_mid ')' - 1`
14576 if test $ac_mid -le $ac_hi; then
14577 ac_lo= ac_hi=
14578 break
14579 fi
14580 ac_mid=`expr 2 '*' $ac_mid`
14581 fi
14582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14583 done
14584 else
14585 echo "$as_me: failed program was:" >&5
14586 sed 's/^/| /' conftest.$ac_ext >&5
14587
14588 ac_lo= ac_hi=
14589 fi
14590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14591 fi
14592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14593 # Binary search between lo and hi bounds.
14594 while test "x$ac_lo" != "x$ac_hi"; do
14595 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14596 cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h. */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 $ac_includes_default
14603 int
14604 main ()
14605 {
14606 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14607 test_array [0] = 0
14608
14609 ;
14610 return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>conftest.er1
14616 ac_status=$?
14617 grep -v '^ *+' conftest.er1 >conftest.err
14618 rm -f conftest.er1
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag"
14623 || test ! -s conftest.err'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14626 ac_status=$?
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest.$ac_objext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14632 ac_status=$?
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 ac_hi=$ac_mid
14636 else
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 ac_lo=`expr '(' $ac_mid ')' + 1`
14641 fi
14642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14643 done
14644 case $ac_lo in
14645 ?*) ac_cv_sizeof_char=$ac_lo;;
14646 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14647 See \`config.log' for more details." >&5
14648 echo "$as_me: error: cannot compute sizeof (char), 77
14649 See \`config.log' for more details." >&2;}
14650 { (exit 1); exit 1; }; } ;;
14651 esac
14652 else
14653 if test "$cross_compiling" = yes; then
14654 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14655 See \`config.log' for more details." >&5
14656 echo "$as_me: error: cannot run test program while cross compiling
14657 See \`config.log' for more details." >&2;}
14658 { (exit 1); exit 1; }; }
14659 else
14660 cat >conftest.$ac_ext <<_ACEOF
14661 /* confdefs.h. */
14662 _ACEOF
14663 cat confdefs.h >>conftest.$ac_ext
14664 cat >>conftest.$ac_ext <<_ACEOF
14665 /* end confdefs.h. */
14666 $ac_includes_default
14667 long longval () { return (long) (sizeof (char)); }
14668 unsigned long ulongval () { return (long) (sizeof (char)); }
14669 #include <stdio.h>
14670 #include <stdlib.h>
14671 int
14672 main ()
14673 {
14674
14675 FILE *f = fopen ("conftest.val", "w");
14676 if (! f)
14677 exit (1);
14678 if (((long) (sizeof (char))) < 0)
14679 {
14680 long i = longval ();
14681 if (i != ((long) (sizeof (char))))
14682 exit (1);
14683 fprintf (f, "%ld\n", i);
14684 }
14685 else
14686 {
14687 unsigned long i = ulongval ();
14688 if (i != ((long) (sizeof (char))))
14689 exit (1);
14690 fprintf (f, "%lu\n", i);
14691 }
14692 exit (ferror (f) || fclose (f) != 0);
14693
14694 ;
14695 return 0;
14696 }
14697 _ACEOF
14698 rm -f conftest$ac_exeext
14699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14700 (eval $ac_link) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14705 (eval $ac_try) 2>&5
14706 ac_status=$?
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); }; }; then
14709 ac_cv_sizeof_char=`cat conftest.val`
14710 else
14711 echo "$as_me: program exited with status $ac_status" >&5
14712 echo "$as_me: failed program was:" >&5
14713 sed 's/^/| /' conftest.$ac_ext >&5
14714
14715 ( exit $ac_status )
14716 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14717 See \`config.log' for more details." >&5
14718 echo "$as_me: error: cannot compute sizeof (char), 77
14719 See \`config.log' for more details." >&2;}
14720 { (exit 1); exit 1; }; }
14721 fi
14722 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14723 fi
14724 fi
14725 rm -f conftest.val
14726 else
14727 ac_cv_sizeof_char=0
14728 fi
14729 fi
14730 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14731 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14732 cat >>confdefs.h <<_ACEOF
14733 #define SIZEOF_CHAR $ac_cv_sizeof_char
14734 _ACEOF
14735
14736
14737 echo "$as_me:$LINENO: checking for short" >&5
14738 echo $ECHO_N "checking for short... $ECHO_C" >&6
14739 if test "${ac_cv_type_short+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741 else
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 $ac_includes_default
14749 int
14750 main ()
14751 {
14752 if ((short *) 0)
14753 return 0;
14754 if (sizeof (short))
14755 return 0;
14756 ;
14757 return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } &&
14769 { ac_try='test -z "$ac_c_werror_flag"
14770 || test ! -s conftest.err'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; } &&
14776 { ac_try='test -s conftest.$ac_objext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_type_short=yes
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_cv_type_short=no
14788 fi
14789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14790 fi
14791 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14792 echo "${ECHO_T}$ac_cv_type_short" >&6
14793
14794 echo "$as_me:$LINENO: checking size of short" >&5
14795 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14796 if test "${ac_cv_sizeof_short+set}" = set; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799 if test "$ac_cv_type_short" = yes; then
14800 # The cast to unsigned long works around a bug in the HP C Compiler
14801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14803 # This bug is HP SR number 8606223364.
14804 if test "$cross_compiling" = yes; then
14805 # Depending upon the size, compute the lo and hi bounds.
14806 cat >conftest.$ac_ext <<_ACEOF
14807 /* confdefs.h. */
14808 _ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 $ac_includes_default
14813 int
14814 main ()
14815 {
14816 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14817 test_array [0] = 0
14818
14819 ;
14820 return 0;
14821 }
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 2>conftest.er1
14826 ac_status=$?
14827 grep -v '^ *+' conftest.er1 >conftest.err
14828 rm -f conftest.er1
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -z "$ac_c_werror_flag"
14833 || test ! -s conftest.err'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 ac_lo=0 ac_mid=0
14846 while :; do
14847 cat >conftest.$ac_ext <<_ACEOF
14848 /* confdefs.h. */
14849 _ACEOF
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 $ac_includes_default
14854 int
14855 main ()
14856 {
14857 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14858 test_array [0] = 0
14859
14860 ;
14861 return 0;
14862 }
14863 _ACEOF
14864 rm -f conftest.$ac_objext
14865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14866 (eval $ac_compile) 2>conftest.er1
14867 ac_status=$?
14868 grep -v '^ *+' conftest.er1 >conftest.err
14869 rm -f conftest.er1
14870 cat conftest.err >&5
14871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -z "$ac_c_werror_flag"
14874 || test ! -s conftest.err'
14875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; } &&
14880 { ac_try='test -s conftest.$ac_objext'
14881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14883 ac_status=$?
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14886 ac_hi=$ac_mid; break
14887 else
14888 echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891 ac_lo=`expr $ac_mid + 1`
14892 if test $ac_lo -le $ac_mid; then
14893 ac_lo= ac_hi=
14894 break
14895 fi
14896 ac_mid=`expr 2 '*' $ac_mid + 1`
14897 fi
14898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14899 done
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 cat >conftest.$ac_ext <<_ACEOF
14905 /* confdefs.h. */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h. */
14910 $ac_includes_default
14911 int
14912 main ()
14913 {
14914 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14915 test_array [0] = 0
14916
14917 ;
14918 return 0;
14919 }
14920 _ACEOF
14921 rm -f conftest.$ac_objext
14922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14923 (eval $ac_compile) 2>conftest.er1
14924 ac_status=$?
14925 grep -v '^ *+' conftest.er1 >conftest.err
14926 rm -f conftest.er1
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } &&
14930 { ac_try='test -z "$ac_c_werror_flag"
14931 || test ! -s conftest.err'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14934 ac_status=$?
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; } &&
14937 { ac_try='test -s conftest.$ac_objext'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14940 ac_status=$?
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_hi=-1 ac_mid=-1
14944 while :; do
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 $ac_includes_default
14952 int
14953 main ()
14954 {
14955 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14956 test_array [0] = 0
14957
14958 ;
14959 return 0;
14960 }
14961 _ACEOF
14962 rm -f conftest.$ac_objext
14963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14964 (eval $ac_compile) 2>conftest.er1
14965 ac_status=$?
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_c_werror_flag"
14972 || test ! -s conftest.err'
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_lo=$ac_mid; break
14985 else
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989 ac_hi=`expr '(' $ac_mid ')' - 1`
14990 if test $ac_mid -le $ac_hi; then
14991 ac_lo= ac_hi=
14992 break
14993 fi
14994 ac_mid=`expr 2 '*' $ac_mid`
14995 fi
14996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14997 done
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 ac_lo= ac_hi=
15003 fi
15004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15005 fi
15006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15007 # Binary search between lo and hi bounds.
15008 while test "x$ac_lo" != "x$ac_hi"; do
15009 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15010 cat >conftest.$ac_ext <<_ACEOF
15011 /* confdefs.h. */
15012 _ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 $ac_includes_default
15017 int
15018 main ()
15019 {
15020 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15021 test_array [0] = 0
15022
15023 ;
15024 return 0;
15025 }
15026 _ACEOF
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>conftest.er1
15030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
15036 { ac_try='test -z "$ac_c_werror_flag"
15037 || test ! -s conftest.err'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15040 ac_status=$?
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; } &&
15043 { ac_try='test -s conftest.$ac_objext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_hi=$ac_mid
15050 else
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15053
15054 ac_lo=`expr '(' $ac_mid ')' + 1`
15055 fi
15056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15057 done
15058 case $ac_lo in
15059 ?*) ac_cv_sizeof_short=$ac_lo;;
15060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15061 See \`config.log' for more details." >&5
15062 echo "$as_me: error: cannot compute sizeof (short), 77
15063 See \`config.log' for more details." >&2;}
15064 { (exit 1); exit 1; }; } ;;
15065 esac
15066 else
15067 if test "$cross_compiling" = yes; then
15068 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15069 See \`config.log' for more details." >&5
15070 echo "$as_me: error: cannot run test program while cross compiling
15071 See \`config.log' for more details." >&2;}
15072 { (exit 1); exit 1; }; }
15073 else
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 $ac_includes_default
15081 long longval () { return (long) (sizeof (short)); }
15082 unsigned long ulongval () { return (long) (sizeof (short)); }
15083 #include <stdio.h>
15084 #include <stdlib.h>
15085 int
15086 main ()
15087 {
15088
15089 FILE *f = fopen ("conftest.val", "w");
15090 if (! f)
15091 exit (1);
15092 if (((long) (sizeof (short))) < 0)
15093 {
15094 long i = longval ();
15095 if (i != ((long) (sizeof (short))))
15096 exit (1);
15097 fprintf (f, "%ld\n", i);
15098 }
15099 else
15100 {
15101 unsigned long i = ulongval ();
15102 if (i != ((long) (sizeof (short))))
15103 exit (1);
15104 fprintf (f, "%lu\n", i);
15105 }
15106 exit (ferror (f) || fclose (f) != 0);
15107
15108 ;
15109 return 0;
15110 }
15111 _ACEOF
15112 rm -f conftest$ac_exeext
15113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15114 (eval $ac_link) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; }; then
15123 ac_cv_sizeof_short=`cat conftest.val`
15124 else
15125 echo "$as_me: program exited with status $ac_status" >&5
15126 echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15128
15129 ( exit $ac_status )
15130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15131 See \`config.log' for more details." >&5
15132 echo "$as_me: error: cannot compute sizeof (short), 77
15133 See \`config.log' for more details." >&2;}
15134 { (exit 1); exit 1; }; }
15135 fi
15136 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15137 fi
15138 fi
15139 rm -f conftest.val
15140 else
15141 ac_cv_sizeof_short=0
15142 fi
15143 fi
15144 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15145 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15146 cat >>confdefs.h <<_ACEOF
15147 #define SIZEOF_SHORT $ac_cv_sizeof_short
15148 _ACEOF
15149
15150
15151 echo "$as_me:$LINENO: checking for void *" >&5
15152 echo $ECHO_N "checking for void *... $ECHO_C" >&6
15153 if test "${ac_cv_type_void_p+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 else
15156 cat >conftest.$ac_ext <<_ACEOF
15157 /* confdefs.h. */
15158 _ACEOF
15159 cat confdefs.h >>conftest.$ac_ext
15160 cat >>conftest.$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15162 $ac_includes_default
15163 int
15164 main ()
15165 {
15166 if ((void * *) 0)
15167 return 0;
15168 if (sizeof (void *))
15169 return 0;
15170 ;
15171 return 0;
15172 }
15173 _ACEOF
15174 rm -f conftest.$ac_objext
15175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15176 (eval $ac_compile) 2>conftest.er1
15177 ac_status=$?
15178 grep -v '^ *+' conftest.er1 >conftest.err
15179 rm -f conftest.er1
15180 cat conftest.err >&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); } &&
15183 { ac_try='test -z "$ac_c_werror_flag"
15184 || test ! -s conftest.err'
15185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186 (eval $ac_try) 2>&5
15187 ac_status=$?
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); }; } &&
15190 { ac_try='test -s conftest.$ac_objext'
15191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15192 (eval $ac_try) 2>&5
15193 ac_status=$?
15194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195 (exit $ac_status); }; }; then
15196 ac_cv_type_void_p=yes
15197 else
15198 echo "$as_me: failed program was:" >&5
15199 sed 's/^/| /' conftest.$ac_ext >&5
15200
15201 ac_cv_type_void_p=no
15202 fi
15203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15204 fi
15205 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15206 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15207
15208 echo "$as_me:$LINENO: checking size of void *" >&5
15209 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15210 if test "${ac_cv_sizeof_void_p+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15212 else
15213 if test "$ac_cv_type_void_p" = yes; then
15214 # The cast to unsigned long works around a bug in the HP C Compiler
15215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15217 # This bug is HP SR number 8606223364.
15218 if test "$cross_compiling" = yes; then
15219 # Depending upon the size, compute the lo and hi bounds.
15220 cat >conftest.$ac_ext <<_ACEOF
15221 /* confdefs.h. */
15222 _ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 $ac_includes_default
15227 int
15228 main ()
15229 {
15230 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15231 test_array [0] = 0
15232
15233 ;
15234 return 0;
15235 }
15236 _ACEOF
15237 rm -f conftest.$ac_objext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>conftest.er1
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15256 ac_status=$?
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_lo=0 ac_mid=0
15260 while :; do
15261 cat >conftest.$ac_ext <<_ACEOF
15262 /* confdefs.h. */
15263 _ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15267 $ac_includes_default
15268 int
15269 main ()
15270 {
15271 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15272 test_array [0] = 0
15273
15274 ;
15275 return 0;
15276 }
15277 _ACEOF
15278 rm -f conftest.$ac_objext
15279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15280 (eval $ac_compile) 2>conftest.er1
15281 ac_status=$?
15282 grep -v '^ *+' conftest.er1 >conftest.err
15283 rm -f conftest.er1
15284 cat conftest.err >&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); } &&
15287 { ac_try='test -z "$ac_c_werror_flag"
15288 || test ! -s conftest.err'
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try='test -s conftest.$ac_objext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 ac_hi=$ac_mid; break
15301 else
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305 ac_lo=`expr $ac_mid + 1`
15306 if test $ac_lo -le $ac_mid; then
15307 ac_lo= ac_hi=
15308 break
15309 fi
15310 ac_mid=`expr 2 '*' $ac_mid + 1`
15311 fi
15312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15313 done
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 cat >conftest.$ac_ext <<_ACEOF
15319 /* confdefs.h. */
15320 _ACEOF
15321 cat confdefs.h >>conftest.$ac_ext
15322 cat >>conftest.$ac_ext <<_ACEOF
15323 /* end confdefs.h. */
15324 $ac_includes_default
15325 int
15326 main ()
15327 {
15328 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15329 test_array [0] = 0
15330
15331 ;
15332 return 0;
15333 }
15334 _ACEOF
15335 rm -f conftest.$ac_objext
15336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15337 (eval $ac_compile) 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } &&
15344 { ac_try='test -z "$ac_c_werror_flag"
15345 || test ! -s conftest.err'
15346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15347 (eval $ac_try) 2>&5
15348 ac_status=$?
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; } &&
15351 { ac_try='test -s conftest.$ac_objext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_hi=-1 ac_mid=-1
15358 while :; do
15359 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h. */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 $ac_includes_default
15366 int
15367 main ()
15368 {
15369 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15370 test_array [0] = 0
15371
15372 ;
15373 return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15378 (eval $ac_compile) 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } &&
15385 { ac_try='test -z "$ac_c_werror_flag"
15386 || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_lo=$ac_mid; break
15399 else
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403 ac_hi=`expr '(' $ac_mid ')' - 1`
15404 if test $ac_mid -le $ac_hi; then
15405 ac_lo= ac_hi=
15406 break
15407 fi
15408 ac_mid=`expr 2 '*' $ac_mid`
15409 fi
15410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15411 done
15412 else
15413 echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.$ac_ext >&5
15415
15416 ac_lo= ac_hi=
15417 fi
15418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15419 fi
15420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15421 # Binary search between lo and hi bounds.
15422 while test "x$ac_lo" != "x$ac_hi"; do
15423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15424 cat >conftest.$ac_ext <<_ACEOF
15425 /* confdefs.h. */
15426 _ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 $ac_includes_default
15431 int
15432 main ()
15433 {
15434 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15435 test_array [0] = 0
15436
15437 ;
15438 return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15454 ac_status=$?
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15460 ac_status=$?
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_hi=$ac_mid
15464 else
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468 ac_lo=`expr '(' $ac_mid ')' + 1`
15469 fi
15470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15471 done
15472 case $ac_lo in
15473 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15474 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15475 See \`config.log' for more details." >&5
15476 echo "$as_me: error: cannot compute sizeof (void *), 77
15477 See \`config.log' for more details." >&2;}
15478 { (exit 1); exit 1; }; } ;;
15479 esac
15480 else
15481 if test "$cross_compiling" = yes; then
15482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15483 See \`config.log' for more details." >&5
15484 echo "$as_me: error: cannot run test program while cross compiling
15485 See \`config.log' for more details." >&2;}
15486 { (exit 1); exit 1; }; }
15487 else
15488 cat >conftest.$ac_ext <<_ACEOF
15489 /* confdefs.h. */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 $ac_includes_default
15495 long longval () { return (long) (sizeof (void *)); }
15496 unsigned long ulongval () { return (long) (sizeof (void *)); }
15497 #include <stdio.h>
15498 #include <stdlib.h>
15499 int
15500 main ()
15501 {
15502
15503 FILE *f = fopen ("conftest.val", "w");
15504 if (! f)
15505 exit (1);
15506 if (((long) (sizeof (void *))) < 0)
15507 {
15508 long i = longval ();
15509 if (i != ((long) (sizeof (void *))))
15510 exit (1);
15511 fprintf (f, "%ld\n", i);
15512 }
15513 else
15514 {
15515 unsigned long i = ulongval ();
15516 if (i != ((long) (sizeof (void *))))
15517 exit (1);
15518 fprintf (f, "%lu\n", i);
15519 }
15520 exit (ferror (f) || fclose (f) != 0);
15521
15522 ;
15523 return 0;
15524 }
15525 _ACEOF
15526 rm -f conftest$ac_exeext
15527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15534 ac_status=$?
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_sizeof_void_p=`cat conftest.val`
15538 else
15539 echo "$as_me: program exited with status $ac_status" >&5
15540 echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 ( exit $ac_status )
15544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15545 See \`config.log' for more details." >&5
15546 echo "$as_me: error: cannot compute sizeof (void *), 77
15547 See \`config.log' for more details." >&2;}
15548 { (exit 1); exit 1; }; }
15549 fi
15550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15551 fi
15552 fi
15553 rm -f conftest.val
15554 else
15555 ac_cv_sizeof_void_p=0
15556 fi
15557 fi
15558 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15559 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15560 cat >>confdefs.h <<_ACEOF
15561 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15562 _ACEOF
15563
15564
15565 echo "$as_me:$LINENO: checking for int" >&5
15566 echo $ECHO_N "checking for int... $ECHO_C" >&6
15567 if test "${ac_cv_type_int+set}" = set; then
15568 echo $ECHO_N "(cached) $ECHO_C" >&6
15569 else
15570 cat >conftest.$ac_ext <<_ACEOF
15571 /* confdefs.h. */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15576 $ac_includes_default
15577 int
15578 main ()
15579 {
15580 if ((int *) 0)
15581 return 0;
15582 if (sizeof (int))
15583 return 0;
15584 ;
15585 return 0;
15586 }
15587 _ACEOF
15588 rm -f conftest.$ac_objext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15590 (eval $ac_compile) 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag"
15598 || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest.$ac_objext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_cv_type_int=yes
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 ac_cv_type_int=no
15616 fi
15617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15618 fi
15619 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15620 echo "${ECHO_T}$ac_cv_type_int" >&6
15621
15622 echo "$as_me:$LINENO: checking size of int" >&5
15623 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15624 if test "${ac_cv_sizeof_int+set}" = set; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627 if test "$ac_cv_type_int" = yes; then
15628 # The cast to unsigned long works around a bug in the HP C Compiler
15629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15631 # This bug is HP SR number 8606223364.
15632 if test "$cross_compiling" = yes; then
15633 # Depending upon the size, compute the lo and hi bounds.
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15641 int
15642 main ()
15643 {
15644 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15645 test_array [0] = 0
15646
15647 ;
15648 return 0;
15649 }
15650 _ACEOF
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653 (eval $ac_compile) 2>conftest.er1
15654 ac_status=$?
15655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -z "$ac_c_werror_flag"
15661 || test ! -s conftest.err'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673 ac_lo=0 ac_mid=0
15674 while :; do
15675 cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h. */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 $ac_includes_default
15682 int
15683 main ()
15684 {
15685 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15686 test_array [0] = 0
15687
15688 ;
15689 return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694 (eval $ac_compile) 2>conftest.er1
15695 ac_status=$?
15696 grep -v '^ *+' conftest.er1 >conftest.err
15697 rm -f conftest.er1
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); } &&
15701 { ac_try='test -z "$ac_c_werror_flag"
15702 || test ! -s conftest.err'
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; } &&
15708 { ac_try='test -s conftest.$ac_objext'
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_hi=$ac_mid; break
15715 else
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 ac_lo=`expr $ac_mid + 1`
15720 if test $ac_lo -le $ac_mid; then
15721 ac_lo= ac_hi=
15722 break
15723 fi
15724 ac_mid=`expr 2 '*' $ac_mid + 1`
15725 fi
15726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15727 done
15728 else
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15731
15732 cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h. */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 $ac_includes_default
15739 int
15740 main ()
15741 {
15742 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15743 test_array [0] = 0
15744
15745 ;
15746 return 0;
15747 }
15748 _ACEOF
15749 rm -f conftest.$ac_objext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15751 (eval $ac_compile) 2>conftest.er1
15752 ac_status=$?
15753 grep -v '^ *+' conftest.er1 >conftest.err
15754 rm -f conftest.er1
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag"
15759 || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest.$ac_objext'
15766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15767 (eval $ac_try) 2>&5
15768 ac_status=$?
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); }; }; then
15771 ac_hi=-1 ac_mid=-1
15772 while :; do
15773 cat >conftest.$ac_ext <<_ACEOF
15774 /* confdefs.h. */
15775 _ACEOF
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 $ac_includes_default
15780 int
15781 main ()
15782 {
15783 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15784 test_array [0] = 0
15785
15786 ;
15787 return 0;
15788 }
15789 _ACEOF
15790 rm -f conftest.$ac_objext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15792 (eval $ac_compile) 2>conftest.er1
15793 ac_status=$?
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
15799 { ac_try='test -z "$ac_c_werror_flag"
15800 || test ! -s conftest.err'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; } &&
15806 { ac_try='test -s conftest.$ac_objext'
15807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15808 (eval $ac_try) 2>&5
15809 ac_status=$?
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); }; }; then
15812 ac_lo=$ac_mid; break
15813 else
15814 echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.$ac_ext >&5
15816
15817 ac_hi=`expr '(' $ac_mid ')' - 1`
15818 if test $ac_mid -le $ac_hi; then
15819 ac_lo= ac_hi=
15820 break
15821 fi
15822 ac_mid=`expr 2 '*' $ac_mid`
15823 fi
15824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15825 done
15826 else
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830 ac_lo= ac_hi=
15831 fi
15832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15833 fi
15834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15835 # Binary search between lo and hi bounds.
15836 while test "x$ac_lo" != "x$ac_hi"; do
15837 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15838 cat >conftest.$ac_ext <<_ACEOF
15839 /* confdefs.h. */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 $ac_includes_default
15845 int
15846 main ()
15847 {
15848 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15849 test_array [0] = 0
15850
15851 ;
15852 return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857 (eval $ac_compile) 2>conftest.er1
15858 ac_status=$?
15859 grep -v '^ *+' conftest.er1 >conftest.err
15860 rm -f conftest.er1
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15868 ac_status=$?
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest.$ac_objext'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_hi=$ac_mid
15878 else
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15881
15882 ac_lo=`expr '(' $ac_mid ')' + 1`
15883 fi
15884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15885 done
15886 case $ac_lo in
15887 ?*) ac_cv_sizeof_int=$ac_lo;;
15888 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15889 See \`config.log' for more details." >&5
15890 echo "$as_me: error: cannot compute sizeof (int), 77
15891 See \`config.log' for more details." >&2;}
15892 { (exit 1); exit 1; }; } ;;
15893 esac
15894 else
15895 if test "$cross_compiling" = yes; then
15896 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15897 See \`config.log' for more details." >&5
15898 echo "$as_me: error: cannot run test program while cross compiling
15899 See \`config.log' for more details." >&2;}
15900 { (exit 1); exit 1; }; }
15901 else
15902 cat >conftest.$ac_ext <<_ACEOF
15903 /* confdefs.h. */
15904 _ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 $ac_includes_default
15909 long longval () { return (long) (sizeof (int)); }
15910 unsigned long ulongval () { return (long) (sizeof (int)); }
15911 #include <stdio.h>
15912 #include <stdlib.h>
15913 int
15914 main ()
15915 {
15916
15917 FILE *f = fopen ("conftest.val", "w");
15918 if (! f)
15919 exit (1);
15920 if (((long) (sizeof (int))) < 0)
15921 {
15922 long i = longval ();
15923 if (i != ((long) (sizeof (int))))
15924 exit (1);
15925 fprintf (f, "%ld\n", i);
15926 }
15927 else
15928 {
15929 unsigned long i = ulongval ();
15930 if (i != ((long) (sizeof (int))))
15931 exit (1);
15932 fprintf (f, "%lu\n", i);
15933 }
15934 exit (ferror (f) || fclose (f) != 0);
15935
15936 ;
15937 return 0;
15938 }
15939 _ACEOF
15940 rm -f conftest$ac_exeext
15941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15942 (eval $ac_link) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947 (eval $ac_try) 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); }; }; then
15951 ac_cv_sizeof_int=`cat conftest.val`
15952 else
15953 echo "$as_me: program exited with status $ac_status" >&5
15954 echo "$as_me: failed program was:" >&5
15955 sed 's/^/| /' conftest.$ac_ext >&5
15956
15957 ( exit $ac_status )
15958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15959 See \`config.log' for more details." >&5
15960 echo "$as_me: error: cannot compute sizeof (int), 77
15961 See \`config.log' for more details." >&2;}
15962 { (exit 1); exit 1; }; }
15963 fi
15964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15965 fi
15966 fi
15967 rm -f conftest.val
15968 else
15969 ac_cv_sizeof_int=0
15970 fi
15971 fi
15972 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15973 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15974 cat >>confdefs.h <<_ACEOF
15975 #define SIZEOF_INT $ac_cv_sizeof_int
15976 _ACEOF
15977
15978
15979 echo "$as_me:$LINENO: checking for long" >&5
15980 echo $ECHO_N "checking for long... $ECHO_C" >&6
15981 if test "${ac_cv_type_long+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 else
15984 cat >conftest.$ac_ext <<_ACEOF
15985 /* confdefs.h. */
15986 _ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 int
15992 main ()
15993 {
15994 if ((long *) 0)
15995 return 0;
15996 if (sizeof (long))
15997 return 0;
15998 ;
15999 return 0;
16000 }
16001 _ACEOF
16002 rm -f conftest.$ac_objext
16003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16004 (eval $ac_compile) 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } &&
16011 { ac_try='test -z "$ac_c_werror_flag"
16012 || test ! -s conftest.err'
16013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16014 (eval $ac_try) 2>&5
16015 ac_status=$?
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; } &&
16018 { ac_try='test -s conftest.$ac_objext'
16019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16020 (eval $ac_try) 2>&5
16021 ac_status=$?
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_cv_type_long=yes
16025 else
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029 ac_cv_type_long=no
16030 fi
16031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16032 fi
16033 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16034 echo "${ECHO_T}$ac_cv_type_long" >&6
16035
16036 echo "$as_me:$LINENO: checking size of long" >&5
16037 echo $ECHO_N "checking size of long... $ECHO_C" >&6
16038 if test "${ac_cv_sizeof_long+set}" = set; then
16039 echo $ECHO_N "(cached) $ECHO_C" >&6
16040 else
16041 if test "$ac_cv_type_long" = yes; then
16042 # The cast to unsigned long works around a bug in the HP C Compiler
16043 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16044 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16045 # This bug is HP SR number 8606223364.
16046 if test "$cross_compiling" = yes; then
16047 # Depending upon the size, compute the lo and hi bounds.
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h. */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 $ac_includes_default
16055 int
16056 main ()
16057 {
16058 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16059 test_array [0] = 0
16060
16061 ;
16062 return 0;
16063 }
16064 _ACEOF
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067 (eval $ac_compile) 2>conftest.er1
16068 ac_status=$?
16069 grep -v '^ *+' conftest.er1 >conftest.err
16070 rm -f conftest.er1
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16087 ac_lo=0 ac_mid=0
16088 while :; do
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h. */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 $ac_includes_default
16096 int
16097 main ()
16098 {
16099 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16100 test_array [0] = 0
16101
16102 ;
16103 return 0;
16104 }
16105 _ACEOF
16106 rm -f conftest.$ac_objext
16107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16108 (eval $ac_compile) 2>conftest.er1
16109 ac_status=$?
16110 grep -v '^ *+' conftest.er1 >conftest.err
16111 rm -f conftest.er1
16112 cat conftest.err >&5
16113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16114 (exit $ac_status); } &&
16115 { ac_try='test -z "$ac_c_werror_flag"
16116 || test ! -s conftest.err'
16117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16118 (eval $ac_try) 2>&5
16119 ac_status=$?
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); }; } &&
16122 { ac_try='test -s conftest.$ac_objext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_hi=$ac_mid; break
16129 else
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_lo=`expr $ac_mid + 1`
16134 if test $ac_lo -le $ac_mid; then
16135 ac_lo= ac_hi=
16136 break
16137 fi
16138 ac_mid=`expr 2 '*' $ac_mid + 1`
16139 fi
16140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16141 done
16142 else
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146 cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h. */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16152 $ac_includes_default
16153 int
16154 main ()
16155 {
16156 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16157 test_array [0] = 0
16158
16159 ;
16160 return 0;
16161 }
16162 _ACEOF
16163 rm -f conftest.$ac_objext
16164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16165 (eval $ac_compile) 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171 (exit $ac_status); } &&
16172 { ac_try='test -z "$ac_c_werror_flag"
16173 || test ! -s conftest.err'
16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16175 (eval $ac_try) 2>&5
16176 ac_status=$?
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest.$ac_objext'
16180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16181 (eval $ac_try) 2>&5
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; }; then
16185 ac_hi=-1 ac_mid=-1
16186 while :; do
16187 cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h. */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193 $ac_includes_default
16194 int
16195 main ()
16196 {
16197 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16198 test_array [0] = 0
16199
16200 ;
16201 return 0;
16202 }
16203 _ACEOF
16204 rm -f conftest.$ac_objext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16206 (eval $ac_compile) 2>conftest.er1
16207 ac_status=$?
16208 grep -v '^ *+' conftest.er1 >conftest.err
16209 rm -f conftest.er1
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try='test -z "$ac_c_werror_flag"
16214 || test ! -s conftest.err'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try='test -s conftest.$ac_objext'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16223 ac_status=$?
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_lo=$ac_mid; break
16227 else
16228 echo "$as_me: failed program was:" >&5
16229 sed 's/^/| /' conftest.$ac_ext >&5
16230
16231 ac_hi=`expr '(' $ac_mid ')' - 1`
16232 if test $ac_mid -le $ac_hi; then
16233 ac_lo= ac_hi=
16234 break
16235 fi
16236 ac_mid=`expr 2 '*' $ac_mid`
16237 fi
16238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16239 done
16240 else
16241 echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.$ac_ext >&5
16243
16244 ac_lo= ac_hi=
16245 fi
16246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16247 fi
16248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16249 # Binary search between lo and hi bounds.
16250 while test "x$ac_lo" != "x$ac_hi"; do
16251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16252 cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h. */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 $ac_includes_default
16259 int
16260 main ()
16261 {
16262 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16263 test_array [0] = 0
16264
16265 ;
16266 return 0;
16267 }
16268 _ACEOF
16269 rm -f conftest.$ac_objext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>conftest.er1
16272 ac_status=$?
16273 grep -v '^ *+' conftest.er1 >conftest.err
16274 rm -f conftest.er1
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16282 ac_status=$?
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest.$ac_objext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_hi=$ac_mid
16292 else
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16295
16296 ac_lo=`expr '(' $ac_mid ')' + 1`
16297 fi
16298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16299 done
16300 case $ac_lo in
16301 ?*) ac_cv_sizeof_long=$ac_lo;;
16302 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16303 See \`config.log' for more details." >&5
16304 echo "$as_me: error: cannot compute sizeof (long), 77
16305 See \`config.log' for more details." >&2;}
16306 { (exit 1); exit 1; }; } ;;
16307 esac
16308 else
16309 if test "$cross_compiling" = yes; then
16310 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16311 See \`config.log' for more details." >&5
16312 echo "$as_me: error: cannot run test program while cross compiling
16313 See \`config.log' for more details." >&2;}
16314 { (exit 1); exit 1; }; }
16315 else
16316 cat >conftest.$ac_ext <<_ACEOF
16317 /* confdefs.h. */
16318 _ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16322 $ac_includes_default
16323 long longval () { return (long) (sizeof (long)); }
16324 unsigned long ulongval () { return (long) (sizeof (long)); }
16325 #include <stdio.h>
16326 #include <stdlib.h>
16327 int
16328 main ()
16329 {
16330
16331 FILE *f = fopen ("conftest.val", "w");
16332 if (! f)
16333 exit (1);
16334 if (((long) (sizeof (long))) < 0)
16335 {
16336 long i = longval ();
16337 if (i != ((long) (sizeof (long))))
16338 exit (1);
16339 fprintf (f, "%ld\n", i);
16340 }
16341 else
16342 {
16343 unsigned long i = ulongval ();
16344 if (i != ((long) (sizeof (long))))
16345 exit (1);
16346 fprintf (f, "%lu\n", i);
16347 }
16348 exit (ferror (f) || fclose (f) != 0);
16349
16350 ;
16351 return 0;
16352 }
16353 _ACEOF
16354 rm -f conftest$ac_exeext
16355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16356 (eval $ac_link) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16361 (eval $ac_try) 2>&5
16362 ac_status=$?
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); }; }; then
16365 ac_cv_sizeof_long=`cat conftest.val`
16366 else
16367 echo "$as_me: program exited with status $ac_status" >&5
16368 echo "$as_me: failed program was:" >&5
16369 sed 's/^/| /' conftest.$ac_ext >&5
16370
16371 ( exit $ac_status )
16372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16373 See \`config.log' for more details." >&5
16374 echo "$as_me: error: cannot compute sizeof (long), 77
16375 See \`config.log' for more details." >&2;}
16376 { (exit 1); exit 1; }; }
16377 fi
16378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16379 fi
16380 fi
16381 rm -f conftest.val
16382 else
16383 ac_cv_sizeof_long=0
16384 fi
16385 fi
16386 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16387 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16388 cat >>confdefs.h <<_ACEOF
16389 #define SIZEOF_LONG $ac_cv_sizeof_long
16390 _ACEOF
16391
16392
16393 echo "$as_me:$LINENO: checking for size_t" >&5
16394 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16395 if test "${ac_cv_type_size_t+set}" = set; then
16396 echo $ECHO_N "(cached) $ECHO_C" >&6
16397 else
16398 cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h. */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h. */
16404 $ac_includes_default
16405 int
16406 main ()
16407 {
16408 if ((size_t *) 0)
16409 return 0;
16410 if (sizeof (size_t))
16411 return 0;
16412 ;
16413 return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest.$ac_objext
16417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16418 (eval $ac_compile) 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
16425 { ac_try='test -z "$ac_c_werror_flag"
16426 || test ! -s conftest.err'
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest.$ac_objext'
16433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16434 (eval $ac_try) 2>&5
16435 ac_status=$?
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_type_size_t=yes
16439 else
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16442
16443 ac_cv_type_size_t=no
16444 fi
16445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16446 fi
16447 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16448 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16449
16450 echo "$as_me:$LINENO: checking size of size_t" >&5
16451 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16452 if test "${ac_cv_sizeof_size_t+set}" = set; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455 if test "$ac_cv_type_size_t" = yes; then
16456 # The cast to unsigned long works around a bug in the HP C Compiler
16457 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16458 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16459 # This bug is HP SR number 8606223364.
16460 if test "$cross_compiling" = yes; then
16461 # Depending upon the size, compute the lo and hi bounds.
16462 cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h. */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 $ac_includes_default
16469 int
16470 main ()
16471 {
16472 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16473 test_array [0] = 0
16474
16475 ;
16476 return 0;
16477 }
16478 _ACEOF
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16482 ac_status=$?
16483 grep -v '^ *+' conftest.er1 >conftest.err
16484 rm -f conftest.er1
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16501 ac_lo=0 ac_mid=0
16502 while :; do
16503 cat >conftest.$ac_ext <<_ACEOF
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 (size_t))) <= $ac_mid)];
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>conftest.er1
16523 ac_status=$?
16524 grep -v '^ *+' conftest.er1 >conftest.err
16525 rm -f conftest.er1
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -z "$ac_c_werror_flag"
16530 || test ! -s conftest.err'
16531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16532 (eval $ac_try) 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest.$ac_objext'
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; }; then
16542 ac_hi=$ac_mid; break
16543 else
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547 ac_lo=`expr $ac_mid + 1`
16548 if test $ac_lo -le $ac_mid; then
16549 ac_lo= ac_hi=
16550 break
16551 fi
16552 ac_mid=`expr 2 '*' $ac_mid + 1`
16553 fi
16554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16555 done
16556 else
16557 echo "$as_me: failed program was:" >&5
16558 sed 's/^/| /' conftest.$ac_ext >&5
16559
16560 cat >conftest.$ac_ext <<_ACEOF
16561 /* confdefs.h. */
16562 _ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16566 $ac_includes_default
16567 int
16568 main ()
16569 {
16570 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16571 test_array [0] = 0
16572
16573 ;
16574 return 0;
16575 }
16576 _ACEOF
16577 rm -f conftest.$ac_objext
16578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16579 (eval $ac_compile) 2>conftest.er1
16580 ac_status=$?
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } &&
16586 { ac_try='test -z "$ac_c_werror_flag"
16587 || test ! -s conftest.err'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; } &&
16593 { ac_try='test -s conftest.$ac_objext'
16594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16595 (eval $ac_try) 2>&5
16596 ac_status=$?
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); }; }; then
16599 ac_hi=-1 ac_mid=-1
16600 while :; do
16601 cat >conftest.$ac_ext <<_ACEOF
16602 /* confdefs.h. */
16603 _ACEOF
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 $ac_includes_default
16608 int
16609 main ()
16610 {
16611 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16612 test_array [0] = 0
16613
16614 ;
16615 return 0;
16616 }
16617 _ACEOF
16618 rm -f conftest.$ac_objext
16619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16620 (eval $ac_compile) 2>conftest.er1
16621 ac_status=$?
16622 grep -v '^ *+' conftest.er1 >conftest.err
16623 rm -f conftest.er1
16624 cat conftest.err >&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); } &&
16627 { ac_try='test -z "$ac_c_werror_flag"
16628 || test ! -s conftest.err'
16629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630 (eval $ac_try) 2>&5
16631 ac_status=$?
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
16635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16636 (eval $ac_try) 2>&5
16637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; }; then
16640 ac_lo=$ac_mid; break
16641 else
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16644
16645 ac_hi=`expr '(' $ac_mid ')' - 1`
16646 if test $ac_mid -le $ac_hi; then
16647 ac_lo= ac_hi=
16648 break
16649 fi
16650 ac_mid=`expr 2 '*' $ac_mid`
16651 fi
16652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16653 done
16654 else
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16657
16658 ac_lo= ac_hi=
16659 fi
16660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16661 fi
16662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 # Binary search between lo and hi bounds.
16664 while test "x$ac_lo" != "x$ac_hi"; do
16665 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16666 cat >conftest.$ac_ext <<_ACEOF
16667 /* confdefs.h. */
16668 _ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 $ac_includes_default
16673 int
16674 main ()
16675 {
16676 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16677 test_array [0] = 0
16678
16679 ;
16680 return 0;
16681 }
16682 _ACEOF
16683 rm -f conftest.$ac_objext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685 (eval $ac_compile) 2>conftest.er1
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -z "$ac_c_werror_flag"
16693 || test ! -s conftest.err'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16696 ac_status=$?
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16705 ac_hi=$ac_mid
16706 else
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.$ac_ext >&5
16709
16710 ac_lo=`expr '(' $ac_mid ')' + 1`
16711 fi
16712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16713 done
16714 case $ac_lo in
16715 ?*) ac_cv_sizeof_size_t=$ac_lo;;
16716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16717 See \`config.log' for more details." >&5
16718 echo "$as_me: error: cannot compute sizeof (size_t), 77
16719 See \`config.log' for more details." >&2;}
16720 { (exit 1); exit 1; }; } ;;
16721 esac
16722 else
16723 if test "$cross_compiling" = yes; then
16724 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16725 See \`config.log' for more details." >&5
16726 echo "$as_me: error: cannot run test program while cross compiling
16727 See \`config.log' for more details." >&2;}
16728 { (exit 1); exit 1; }; }
16729 else
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h. */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 $ac_includes_default
16737 long longval () { return (long) (sizeof (size_t)); }
16738 unsigned long ulongval () { return (long) (sizeof (size_t)); }
16739 #include <stdio.h>
16740 #include <stdlib.h>
16741 int
16742 main ()
16743 {
16744
16745 FILE *f = fopen ("conftest.val", "w");
16746 if (! f)
16747 exit (1);
16748 if (((long) (sizeof (size_t))) < 0)
16749 {
16750 long i = longval ();
16751 if (i != ((long) (sizeof (size_t))))
16752 exit (1);
16753 fprintf (f, "%ld\n", i);
16754 }
16755 else
16756 {
16757 unsigned long i = ulongval ();
16758 if (i != ((long) (sizeof (size_t))))
16759 exit (1);
16760 fprintf (f, "%lu\n", i);
16761 }
16762 exit (ferror (f) || fclose (f) != 0);
16763
16764 ;
16765 return 0;
16766 }
16767 _ACEOF
16768 rm -f conftest$ac_exeext
16769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16770 (eval $ac_link) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775 (eval $ac_try) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); }; }; then
16779 ac_cv_sizeof_size_t=`cat conftest.val`
16780 else
16781 echo "$as_me: program exited with status $ac_status" >&5
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785 ( exit $ac_status )
16786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16787 See \`config.log' for more details." >&5
16788 echo "$as_me: error: cannot compute sizeof (size_t), 77
16789 See \`config.log' for more details." >&2;}
16790 { (exit 1); exit 1; }; }
16791 fi
16792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16793 fi
16794 fi
16795 rm -f conftest.val
16796 else
16797 ac_cv_sizeof_size_t=0
16798 fi
16799 fi
16800 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16801 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16802 cat >>confdefs.h <<_ACEOF
16803 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16804 _ACEOF
16805
16806
16807
16808 case "${host}" in
16809 arm-*-linux* )
16810 echo "$as_me:$LINENO: checking for long long" >&5
16811 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16812 if test "${ac_cv_type_long_long+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16814 else
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h. */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16822 int
16823 main ()
16824 {
16825 if ((long long *) 0)
16826 return 0;
16827 if (sizeof (long long))
16828 return 0;
16829 ;
16830 return 0;
16831 }
16832 _ACEOF
16833 rm -f conftest.$ac_objext
16834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16835 (eval $ac_compile) 2>conftest.er1
16836 ac_status=$?
16837 grep -v '^ *+' conftest.er1 >conftest.err
16838 rm -f conftest.er1
16839 cat conftest.err >&5
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } &&
16842 { ac_try='test -z "$ac_c_werror_flag"
16843 || test ! -s conftest.err'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; } &&
16849 { ac_try='test -s conftest.$ac_objext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16852 ac_status=$?
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_type_long_long=yes
16856 else
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16859
16860 ac_cv_type_long_long=no
16861 fi
16862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16863 fi
16864 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16865 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16866
16867 echo "$as_me:$LINENO: checking size of long long" >&5
16868 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16869 if test "${ac_cv_sizeof_long_long+set}" = set; then
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872 if test "$ac_cv_type_long_long" = yes; then
16873 # The cast to unsigned long works around a bug in the HP C Compiler
16874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16876 # This bug is HP SR number 8606223364.
16877 if test "$cross_compiling" = yes; then
16878 # Depending upon the size, compute the lo and hi bounds.
16879 cat >conftest.$ac_ext <<_ACEOF
16880 /* confdefs.h. */
16881 _ACEOF
16882 cat confdefs.h >>conftest.$ac_ext
16883 cat >>conftest.$ac_ext <<_ACEOF
16884 /* end confdefs.h. */
16885 $ac_includes_default
16886 int
16887 main ()
16888 {
16889 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16890 test_array [0] = 0
16891
16892 ;
16893 return 0;
16894 }
16895 _ACEOF
16896 rm -f conftest.$ac_objext
16897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16898 (eval $ac_compile) 2>conftest.er1
16899 ac_status=$?
16900 grep -v '^ *+' conftest.er1 >conftest.err
16901 rm -f conftest.er1
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -z "$ac_c_werror_flag"
16906 || test ! -s conftest.err'
16907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16908 (eval $ac_try) 2>&5
16909 ac_status=$?
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); }; } &&
16912 { ac_try='test -s conftest.$ac_objext'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; }; then
16918 ac_lo=0 ac_mid=0
16919 while :; do
16920 cat >conftest.$ac_ext <<_ACEOF
16921 /* confdefs.h. */
16922 _ACEOF
16923 cat confdefs.h >>conftest.$ac_ext
16924 cat >>conftest.$ac_ext <<_ACEOF
16925 /* end confdefs.h. */
16926 $ac_includes_default
16927 int
16928 main ()
16929 {
16930 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16931 test_array [0] = 0
16932
16933 ;
16934 return 0;
16935 }
16936 _ACEOF
16937 rm -f conftest.$ac_objext
16938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16939 (eval $ac_compile) 2>conftest.er1
16940 ac_status=$?
16941 grep -v '^ *+' conftest.er1 >conftest.err
16942 rm -f conftest.er1
16943 cat conftest.err >&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
16946 { ac_try='test -z "$ac_c_werror_flag"
16947 || test ! -s conftest.err'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16955 (eval $ac_try) 2>&5
16956 ac_status=$?
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); }; }; then
16959 ac_hi=$ac_mid; break
16960 else
16961 echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964 ac_lo=`expr $ac_mid + 1`
16965 if test $ac_lo -le $ac_mid; then
16966 ac_lo= ac_hi=
16967 break
16968 fi
16969 ac_mid=`expr 2 '*' $ac_mid + 1`
16970 fi
16971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16972 done
16973 else
16974 echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16976
16977 cat >conftest.$ac_ext <<_ACEOF
16978 /* confdefs.h. */
16979 _ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16983 $ac_includes_default
16984 int
16985 main ()
16986 {
16987 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16988 test_array [0] = 0
16989
16990 ;
16991 return 0;
16992 }
16993 _ACEOF
16994 rm -f conftest.$ac_objext
16995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16996 (eval $ac_compile) 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } &&
17003 { ac_try='test -z "$ac_c_werror_flag"
17004 || test ! -s conftest.err'
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest.$ac_objext'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_hi=-1 ac_mid=-1
17017 while :; do
17018 cat >conftest.$ac_ext <<_ACEOF
17019 /* confdefs.h. */
17020 _ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 $ac_includes_default
17025 int
17026 main ()
17027 {
17028 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17029 test_array [0] = 0
17030
17031 ;
17032 return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest.$ac_objext
17036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17037 (eval $ac_compile) 2>conftest.er1
17038 ac_status=$?
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
17044 { ac_try='test -z "$ac_c_werror_flag"
17045 || test ! -s conftest.err'
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest.$ac_objext'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_lo=$ac_mid; break
17058 else
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17061
17062 ac_hi=`expr '(' $ac_mid ')' - 1`
17063 if test $ac_mid -le $ac_hi; then
17064 ac_lo= ac_hi=
17065 break
17066 fi
17067 ac_mid=`expr 2 '*' $ac_mid`
17068 fi
17069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17070 done
17071 else
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075 ac_lo= ac_hi=
17076 fi
17077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17078 fi
17079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17080 # Binary search between lo and hi bounds.
17081 while test "x$ac_lo" != "x$ac_hi"; do
17082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17083 cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h. */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 $ac_includes_default
17090 int
17091 main ()
17092 {
17093 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17094 test_array [0] = 0
17095
17096 ;
17097 return 0;
17098 }
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17102 (eval $ac_compile) 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
17109 { ac_try='test -z "$ac_c_werror_flag"
17110 || test ! -s conftest.err'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest.$ac_objext'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_hi=$ac_mid
17123 else
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17126
17127 ac_lo=`expr '(' $ac_mid ')' + 1`
17128 fi
17129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17130 done
17131 case $ac_lo in
17132 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17134 See \`config.log' for more details." >&5
17135 echo "$as_me: error: cannot compute sizeof (long long), 77
17136 See \`config.log' for more details." >&2;}
17137 { (exit 1); exit 1; }; } ;;
17138 esac
17139 else
17140 if test "$cross_compiling" = yes; then
17141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17142 See \`config.log' for more details." >&5
17143 echo "$as_me: error: cannot run test program while cross compiling
17144 See \`config.log' for more details." >&2;}
17145 { (exit 1); exit 1; }; }
17146 else
17147 cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h. */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h. */
17153 $ac_includes_default
17154 long longval () { return (long) (sizeof (long long)); }
17155 unsigned long ulongval () { return (long) (sizeof (long long)); }
17156 #include <stdio.h>
17157 #include <stdlib.h>
17158 int
17159 main ()
17160 {
17161
17162 FILE *f = fopen ("conftest.val", "w");
17163 if (! f)
17164 exit (1);
17165 if (((long) (sizeof (long long))) < 0)
17166 {
17167 long i = longval ();
17168 if (i != ((long) (sizeof (long long))))
17169 exit (1);
17170 fprintf (f, "%ld\n", i);
17171 }
17172 else
17173 {
17174 unsigned long i = ulongval ();
17175 if (i != ((long) (sizeof (long long))))
17176 exit (1);
17177 fprintf (f, "%lu\n", i);
17178 }
17179 exit (ferror (f) || fclose (f) != 0);
17180
17181 ;
17182 return 0;
17183 }
17184 _ACEOF
17185 rm -f conftest$ac_exeext
17186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17187 (eval $ac_link) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_cv_sizeof_long_long=`cat conftest.val`
17197 else
17198 echo "$as_me: program exited with status $ac_status" >&5
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 ( exit $ac_status )
17203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17204 See \`config.log' for more details." >&5
17205 echo "$as_me: error: cannot compute sizeof (long long), 77
17206 See \`config.log' for more details." >&2;}
17207 { (exit 1); exit 1; }; }
17208 fi
17209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17210 fi
17211 fi
17212 rm -f conftest.val
17213 else
17214 ac_cv_sizeof_long_long=0
17215 fi
17216 fi
17217 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17218 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17219 cat >>confdefs.h <<_ACEOF
17220 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17221 _ACEOF
17222
17223
17224 ;;
17225 *-hp-hpux* )
17226 echo "$as_me:$LINENO: checking for long long" >&5
17227 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17228 if test "${ac_cv_type_long_long+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 else
17231 cat >conftest.$ac_ext <<_ACEOF
17232 /* confdefs.h. */
17233 _ACEOF
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 $ac_includes_default
17238 int
17239 main ()
17240 {
17241 if ((long long *) 0)
17242 return 0;
17243 if (sizeof (long long))
17244 return 0;
17245 ;
17246 return 0;
17247 }
17248 _ACEOF
17249 rm -f conftest.$ac_objext
17250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17251 (eval $ac_compile) 2>conftest.er1
17252 ac_status=$?
17253 grep -v '^ *+' conftest.er1 >conftest.err
17254 rm -f conftest.er1
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -z "$ac_c_werror_flag"
17259 || test ! -s conftest.err'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17262 ac_status=$?
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; } &&
17265 { ac_try='test -s conftest.$ac_objext'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; }; then
17271 ac_cv_type_long_long=yes
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 ac_cv_type_long_long=no
17277 fi
17278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17279 fi
17280 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17281 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17282
17283 echo "$as_me:$LINENO: checking size of long long" >&5
17284 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17285 if test "${ac_cv_sizeof_long_long+set}" = set; then
17286 echo $ECHO_N "(cached) $ECHO_C" >&6
17287 else
17288 if test "$ac_cv_type_long_long" = yes; then
17289 # The cast to unsigned long works around a bug in the HP C Compiler
17290 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17291 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17292 # This bug is HP SR number 8606223364.
17293 if test "$cross_compiling" = yes; then
17294 # Depending upon the size, compute the lo and hi bounds.
17295 cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h. */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 $ac_includes_default
17302 int
17303 main ()
17304 {
17305 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17306 test_array [0] = 0
17307
17308 ;
17309 return 0;
17310 }
17311 _ACEOF
17312 rm -f conftest.$ac_objext
17313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17314 (eval $ac_compile) 2>conftest.er1
17315 ac_status=$?
17316 grep -v '^ *+' conftest.er1 >conftest.err
17317 rm -f conftest.er1
17318 cat conftest.err >&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -z "$ac_c_werror_flag"
17322 || test ! -s conftest.err'
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; } &&
17328 { ac_try='test -s conftest.$ac_objext'
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17331 ac_status=$?
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17334 ac_lo=0 ac_mid=0
17335 while :; do
17336 cat >conftest.$ac_ext <<_ACEOF
17337 /* confdefs.h. */
17338 _ACEOF
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 $ac_includes_default
17343 int
17344 main ()
17345 {
17346 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17347 test_array [0] = 0
17348
17349 ;
17350 return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17355 (eval $ac_compile) 2>conftest.er1
17356 ac_status=$?
17357 grep -v '^ *+' conftest.er1 >conftest.err
17358 rm -f conftest.er1
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -z "$ac_c_werror_flag"
17363 || test ! -s conftest.err'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; } &&
17369 { ac_try='test -s conftest.$ac_objext'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 ac_hi=$ac_mid; break
17376 else
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380 ac_lo=`expr $ac_mid + 1`
17381 if test $ac_lo -le $ac_mid; then
17382 ac_lo= ac_hi=
17383 break
17384 fi
17385 ac_mid=`expr 2 '*' $ac_mid + 1`
17386 fi
17387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17388 done
17389 else
17390 echo "$as_me: failed program was:" >&5
17391 sed 's/^/| /' conftest.$ac_ext >&5
17392
17393 cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h. */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 $ac_includes_default
17400 int
17401 main ()
17402 {
17403 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17404 test_array [0] = 0
17405
17406 ;
17407 return 0;
17408 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17412 (eval $ac_compile) 2>conftest.er1
17413 ac_status=$?
17414 grep -v '^ *+' conftest.er1 >conftest.err
17415 rm -f conftest.er1
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag"
17420 || test ! -s conftest.err'
17421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422 (eval $ac_try) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; } &&
17426 { ac_try='test -s conftest.$ac_objext'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; }; then
17432 ac_hi=-1 ac_mid=-1
17433 while :; do
17434 cat >conftest.$ac_ext <<_ACEOF
17435 /* confdefs.h. */
17436 _ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 $ac_includes_default
17441 int
17442 main ()
17443 {
17444 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17445 test_array [0] = 0
17446
17447 ;
17448 return 0;
17449 }
17450 _ACEOF
17451 rm -f conftest.$ac_objext
17452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17453 (eval $ac_compile) 2>conftest.er1
17454 ac_status=$?
17455 grep -v '^ *+' conftest.er1 >conftest.err
17456 rm -f conftest.er1
17457 cat conftest.err >&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); } &&
17460 { ac_try='test -z "$ac_c_werror_flag"
17461 || test ! -s conftest.err'
17462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463 (eval $ac_try) 2>&5
17464 ac_status=$?
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); }; } &&
17467 { ac_try='test -s conftest.$ac_objext'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_lo=$ac_mid; break
17474 else
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478 ac_hi=`expr '(' $ac_mid ')' - 1`
17479 if test $ac_mid -le $ac_hi; then
17480 ac_lo= ac_hi=
17481 break
17482 fi
17483 ac_mid=`expr 2 '*' $ac_mid`
17484 fi
17485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17486 done
17487 else
17488 echo "$as_me: failed program was:" >&5
17489 sed 's/^/| /' conftest.$ac_ext >&5
17490
17491 ac_lo= ac_hi=
17492 fi
17493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17494 fi
17495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17496 # Binary search between lo and hi bounds.
17497 while test "x$ac_lo" != "x$ac_hi"; do
17498 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h. */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 $ac_includes_default
17506 int
17507 main ()
17508 {
17509 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17510 test_array [0] = 0
17511
17512 ;
17513 return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17518 (eval $ac_compile) 2>conftest.er1
17519 ac_status=$?
17520 grep -v '^ *+' conftest.er1 >conftest.err
17521 rm -f conftest.er1
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524 (exit $ac_status); } &&
17525 { ac_try='test -z "$ac_c_werror_flag"
17526 || test ! -s conftest.err'
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_hi=$ac_mid
17539 else
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543 ac_lo=`expr '(' $ac_mid ')' + 1`
17544 fi
17545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17546 done
17547 case $ac_lo in
17548 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17549 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17550 See \`config.log' for more details." >&5
17551 echo "$as_me: error: cannot compute sizeof (long long), 77
17552 See \`config.log' for more details." >&2;}
17553 { (exit 1); exit 1; }; } ;;
17554 esac
17555 else
17556 if test "$cross_compiling" = yes; then
17557 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17558 See \`config.log' for more details." >&5
17559 echo "$as_me: error: cannot run test program while cross compiling
17560 See \`config.log' for more details." >&2;}
17561 { (exit 1); exit 1; }; }
17562 else
17563 cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h. */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 $ac_includes_default
17570 long longval () { return (long) (sizeof (long long)); }
17571 unsigned long ulongval () { return (long) (sizeof (long long)); }
17572 #include <stdio.h>
17573 #include <stdlib.h>
17574 int
17575 main ()
17576 {
17577
17578 FILE *f = fopen ("conftest.val", "w");
17579 if (! f)
17580 exit (1);
17581 if (((long) (sizeof (long long))) < 0)
17582 {
17583 long i = longval ();
17584 if (i != ((long) (sizeof (long long))))
17585 exit (1);
17586 fprintf (f, "%ld\n", i);
17587 }
17588 else
17589 {
17590 unsigned long i = ulongval ();
17591 if (i != ((long) (sizeof (long long))))
17592 exit (1);
17593 fprintf (f, "%lu\n", i);
17594 }
17595 exit (ferror (f) || fclose (f) != 0);
17596
17597 ;
17598 return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest$ac_exeext
17602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17603 (eval $ac_link) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 ac_cv_sizeof_long_long=`cat conftest.val`
17613 else
17614 echo "$as_me: program exited with status $ac_status" >&5
17615 echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618 ( exit $ac_status )
17619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17620 See \`config.log' for more details." >&5
17621 echo "$as_me: error: cannot compute sizeof (long long), 77
17622 See \`config.log' for more details." >&2;}
17623 { (exit 1); exit 1; }; }
17624 fi
17625 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17626 fi
17627 fi
17628 rm -f conftest.val
17629 else
17630 ac_cv_sizeof_long_long=0
17631 fi
17632 fi
17633 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17634 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17635 cat >>confdefs.h <<_ACEOF
17636 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17637 _ACEOF
17638
17639
17640 if test "$ac_cv_sizeof_long_long" != "0"; then
17641 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17642 fi
17643 ;;
17644 * )
17645 echo "$as_me:$LINENO: checking for long long" >&5
17646 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17647 if test "${ac_cv_type_long_long+set}" = set; then
17648 echo $ECHO_N "(cached) $ECHO_C" >&6
17649 else
17650 cat >conftest.$ac_ext <<_ACEOF
17651 /* confdefs.h. */
17652 _ACEOF
17653 cat confdefs.h >>conftest.$ac_ext
17654 cat >>conftest.$ac_ext <<_ACEOF
17655 /* end confdefs.h. */
17656 $ac_includes_default
17657 int
17658 main ()
17659 {
17660 if ((long long *) 0)
17661 return 0;
17662 if (sizeof (long long))
17663 return 0;
17664 ;
17665 return 0;
17666 }
17667 _ACEOF
17668 rm -f conftest.$ac_objext
17669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17670 (eval $ac_compile) 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } &&
17677 { ac_try='test -z "$ac_c_werror_flag"
17678 || test ! -s conftest.err'
17679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17680 (eval $ac_try) 2>&5
17681 ac_status=$?
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); }; } &&
17684 { ac_try='test -s conftest.$ac_objext'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17687 ac_status=$?
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 ac_cv_type_long_long=yes
17691 else
17692 echo "$as_me: failed program was:" >&5
17693 sed 's/^/| /' conftest.$ac_ext >&5
17694
17695 ac_cv_type_long_long=no
17696 fi
17697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17698 fi
17699 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17700 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17701
17702 echo "$as_me:$LINENO: checking size of long long" >&5
17703 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17704 if test "${ac_cv_sizeof_long_long+set}" = set; then
17705 echo $ECHO_N "(cached) $ECHO_C" >&6
17706 else
17707 if test "$ac_cv_type_long_long" = yes; then
17708 # The cast to unsigned long works around a bug in the HP C Compiler
17709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17711 # This bug is HP SR number 8606223364.
17712 if test "$cross_compiling" = yes; then
17713 # Depending upon the size, compute the lo and hi bounds.
17714 cat >conftest.$ac_ext <<_ACEOF
17715 /* confdefs.h. */
17716 _ACEOF
17717 cat confdefs.h >>conftest.$ac_ext
17718 cat >>conftest.$ac_ext <<_ACEOF
17719 /* end confdefs.h. */
17720 $ac_includes_default
17721 int
17722 main ()
17723 {
17724 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17725 test_array [0] = 0
17726
17727 ;
17728 return 0;
17729 }
17730 _ACEOF
17731 rm -f conftest.$ac_objext
17732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17733 (eval $ac_compile) 2>conftest.er1
17734 ac_status=$?
17735 grep -v '^ *+' conftest.er1 >conftest.err
17736 rm -f conftest.er1
17737 cat conftest.err >&5
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); } &&
17740 { ac_try='test -z "$ac_c_werror_flag"
17741 || test ! -s conftest.err'
17742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17744 ac_status=$?
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try='test -s conftest.$ac_objext'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; }; then
17753 ac_lo=0 ac_mid=0
17754 while :; do
17755 cat >conftest.$ac_ext <<_ACEOF
17756 /* confdefs.h. */
17757 _ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 $ac_includes_default
17762 int
17763 main ()
17764 {
17765 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17766 test_array [0] = 0
17767
17768 ;
17769 return 0;
17770 }
17771 _ACEOF
17772 rm -f conftest.$ac_objext
17773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17774 (eval $ac_compile) 2>conftest.er1
17775 ac_status=$?
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } &&
17781 { ac_try='test -z "$ac_c_werror_flag"
17782 || test ! -s conftest.err'
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; } &&
17788 { ac_try='test -s conftest.$ac_objext'
17789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17790 (eval $ac_try) 2>&5
17791 ac_status=$?
17792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793 (exit $ac_status); }; }; then
17794 ac_hi=$ac_mid; break
17795 else
17796 echo "$as_me: failed program was:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17798
17799 ac_lo=`expr $ac_mid + 1`
17800 if test $ac_lo -le $ac_mid; then
17801 ac_lo= ac_hi=
17802 break
17803 fi
17804 ac_mid=`expr 2 '*' $ac_mid + 1`
17805 fi
17806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17807 done
17808 else
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812 cat >conftest.$ac_ext <<_ACEOF
17813 /* confdefs.h. */
17814 _ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818 $ac_includes_default
17819 int
17820 main ()
17821 {
17822 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17823 test_array [0] = 0
17824
17825 ;
17826 return 0;
17827 }
17828 _ACEOF
17829 rm -f conftest.$ac_objext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17831 (eval $ac_compile) 2>conftest.er1
17832 ac_status=$?
17833 grep -v '^ *+' conftest.er1 >conftest.err
17834 rm -f conftest.er1
17835 cat conftest.err >&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); } &&
17838 { ac_try='test -z "$ac_c_werror_flag"
17839 || test ! -s conftest.err'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17842 ac_status=$?
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } &&
17845 { ac_try='test -s conftest.$ac_objext'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17848 ac_status=$?
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; }; then
17851 ac_hi=-1 ac_mid=-1
17852 while :; do
17853 cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h. */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17859 $ac_includes_default
17860 int
17861 main ()
17862 {
17863 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17864 test_array [0] = 0
17865
17866 ;
17867 return 0;
17868 }
17869 _ACEOF
17870 rm -f conftest.$ac_objext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17872 (eval $ac_compile) 2>conftest.er1
17873 ac_status=$?
17874 grep -v '^ *+' conftest.er1 >conftest.err
17875 rm -f conftest.er1
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17883 ac_status=$?
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest.$ac_objext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_lo=$ac_mid; break
17893 else
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17896
17897 ac_hi=`expr '(' $ac_mid ')' - 1`
17898 if test $ac_mid -le $ac_hi; then
17899 ac_lo= ac_hi=
17900 break
17901 fi
17902 ac_mid=`expr 2 '*' $ac_mid`
17903 fi
17904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17905 done
17906 else
17907 echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.$ac_ext >&5
17909
17910 ac_lo= ac_hi=
17911 fi
17912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17913 fi
17914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17915 # Binary search between lo and hi bounds.
17916 while test "x$ac_lo" != "x$ac_hi"; do
17917 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17918 cat >conftest.$ac_ext <<_ACEOF
17919 /* confdefs.h. */
17920 _ACEOF
17921 cat confdefs.h >>conftest.$ac_ext
17922 cat >>conftest.$ac_ext <<_ACEOF
17923 /* end confdefs.h. */
17924 $ac_includes_default
17925 int
17926 main ()
17927 {
17928 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17929 test_array [0] = 0
17930
17931 ;
17932 return 0;
17933 }
17934 _ACEOF
17935 rm -f conftest.$ac_objext
17936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17937 (eval $ac_compile) 2>conftest.er1
17938 ac_status=$?
17939 grep -v '^ *+' conftest.er1 >conftest.err
17940 rm -f conftest.er1
17941 cat conftest.err >&5
17942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17943 (exit $ac_status); } &&
17944 { ac_try='test -z "$ac_c_werror_flag"
17945 || test ! -s conftest.err'
17946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17947 (eval $ac_try) 2>&5
17948 ac_status=$?
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest.$ac_objext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_hi=$ac_mid
17958 else
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17961
17962 ac_lo=`expr '(' $ac_mid ')' + 1`
17963 fi
17964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17965 done
17966 case $ac_lo in
17967 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17969 See \`config.log' for more details." >&5
17970 echo "$as_me: error: cannot compute sizeof (long long), 77
17971 See \`config.log' for more details." >&2;}
17972 { (exit 1); exit 1; }; } ;;
17973 esac
17974 else
17975 if test "$cross_compiling" = yes; then
17976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17977 See \`config.log' for more details." >&5
17978 echo "$as_me: error: cannot run test program while cross compiling
17979 See \`config.log' for more details." >&2;}
17980 { (exit 1); exit 1; }; }
17981 else
17982 cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h. */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 $ac_includes_default
17989 long longval () { return (long) (sizeof (long long)); }
17990 unsigned long ulongval () { return (long) (sizeof (long long)); }
17991 #include <stdio.h>
17992 #include <stdlib.h>
17993 int
17994 main ()
17995 {
17996
17997 FILE *f = fopen ("conftest.val", "w");
17998 if (! f)
17999 exit (1);
18000 if (((long) (sizeof (long long))) < 0)
18001 {
18002 long i = longval ();
18003 if (i != ((long) (sizeof (long long))))
18004 exit (1);
18005 fprintf (f, "%ld\n", i);
18006 }
18007 else
18008 {
18009 unsigned long i = ulongval ();
18010 if (i != ((long) (sizeof (long long))))
18011 exit (1);
18012 fprintf (f, "%lu\n", i);
18013 }
18014 exit (ferror (f) || fclose (f) != 0);
18015
18016 ;
18017 return 0;
18018 }
18019 _ACEOF
18020 rm -f conftest$ac_exeext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022 (eval $ac_link) 2>&5
18023 ac_status=$?
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; }; then
18031 ac_cv_sizeof_long_long=`cat conftest.val`
18032 else
18033 echo "$as_me: program exited with status $ac_status" >&5
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18036
18037 ( exit $ac_status )
18038 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18039 See \`config.log' for more details." >&5
18040 echo "$as_me: error: cannot compute sizeof (long long), 77
18041 See \`config.log' for more details." >&2;}
18042 { (exit 1); exit 1; }; }
18043 fi
18044 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18045 fi
18046 fi
18047 rm -f conftest.val
18048 else
18049 ac_cv_sizeof_long_long=0
18050 fi
18051 fi
18052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18053 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18054 cat >>confdefs.h <<_ACEOF
18055 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18056 _ACEOF
18057
18058
18059 esac
18060
18061 echo "$as_me:$LINENO: checking size of wchar_t" >&5
18062 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18063 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18065 else
18066
18067 if test "$cross_compiling" = yes; then
18068
18069 case "${host}" in
18070 *-pc-msdosdjgpp )
18071 wx_cv_sizeof_wchar_t=0
18072 ;;
18073 * )
18074 wx_cv_sizeof_wchar_t=4
18075 ;;
18076 esac
18077
18078
18079 else
18080 cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h. */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h. */
18086
18087 /* DJGPP only has fake wchar_t: */
18088 #ifdef __DJGPP__
18089 # error "fake wchar_t"
18090 #endif
18091 #ifdef HAVE_WCHAR_H
18092 # ifdef __CYGWIN__
18093 # include <stddef.h>
18094 # endif
18095 # include <wchar.h>
18096 #endif
18097 #ifdef HAVE_STDLIB_H
18098 # include <stdlib.h>
18099 #endif
18100 #include <stdio.h>
18101 int main()
18102 {
18103 FILE *f=fopen("conftestval", "w");
18104 if (!f) exit(1);
18105 fprintf(f, "%i", sizeof(wchar_t));
18106 exit(0);
18107 }
18108
18109 _ACEOF
18110 rm -f conftest$ac_exeext
18111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18112 (eval $ac_link) 2>&5
18113 ac_status=$?
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117 (eval $ac_try) 2>&5
18118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 wx_cv_sizeof_wchar_t=`cat conftestval`
18122 else
18123 echo "$as_me: program exited with status $ac_status" >&5
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ( exit $ac_status )
18128 wx_cv_sizeof_wchar_t=0
18129 fi
18130 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18131 fi
18132
18133 fi
18134 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18135 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18136
18137 cat >>confdefs.h <<_ACEOF
18138 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18139 _ACEOF
18140
18141
18142 # Check whether --enable-largefile or --disable-largefile was given.
18143 if test "${enable_largefile+set}" = set; then
18144 enableval="$enable_largefile"
18145
18146 fi;
18147 if test "$enable_largefile" != no; then
18148 wx_largefile=no
18149
18150 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18151 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18152 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18153 echo $ECHO_N "(cached) $ECHO_C" >&6
18154 else
18155
18156 cat >conftest.$ac_ext <<_ACEOF
18157 /* confdefs.h. */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18162 #define _FILE_OFFSET_BITS 64
18163 #include <sys/types.h>
18164 int
18165 main ()
18166 {
18167 typedef struct {
18168 unsigned int field: sizeof(off_t) == 8;
18169 } wxlf;
18170
18171 ;
18172 return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext
18176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18177 (eval $ac_compile) 2>conftest.er1
18178 ac_status=$?
18179 grep -v '^ *+' conftest.er1 >conftest.err
18180 rm -f conftest.er1
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag"
18185 || test ! -s conftest.err'
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18188 ac_status=$?
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; } &&
18191 { ac_try='test -s conftest.$ac_objext'
18192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193 (eval $ac_try) 2>&5
18194 ac_status=$?
18195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196 (exit $ac_status); }; }; then
18197 ac_cv_sys_file_offset_bits=64
18198 else
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202 ac_cv_sys_file_offset_bits=no
18203 fi
18204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18205
18206
18207 fi
18208 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18209 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18210
18211 if test "$ac_cv_sys_file_offset_bits" != no; then
18212 wx_largefile=yes
18213 cat >>confdefs.h <<_ACEOF
18214 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18215 _ACEOF
18216
18217 fi
18218
18219 if test "x$wx_largefile" != "xyes"; then
18220
18221 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18222 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18223 if test "${ac_cv_sys_large_files+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18225 else
18226
18227 cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h. */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h. */
18233 #define _LARGE_FILES 1
18234 #include <sys/types.h>
18235 int
18236 main ()
18237 {
18238 typedef struct {
18239 unsigned int field: sizeof(off_t) == 8;
18240 } wxlf;
18241
18242 ;
18243 return 0;
18244 }
18245 _ACEOF
18246 rm -f conftest.$ac_objext
18247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18248 (eval $ac_compile) 2>conftest.er1
18249 ac_status=$?
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
18255 { ac_try='test -z "$ac_c_werror_flag"
18256 || test ! -s conftest.err'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest.$ac_objext'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18265 ac_status=$?
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; }; then
18268 ac_cv_sys_large_files=1
18269 else
18270 echo "$as_me: failed program was:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 ac_cv_sys_large_files=no
18274 fi
18275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18276
18277
18278 fi
18279 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18280 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18281
18282 if test "$ac_cv_sys_large_files" != no; then
18283 wx_largefile=yes
18284 cat >>confdefs.h <<_ACEOF
18285 #define _LARGE_FILES $ac_cv_sys_large_files
18286 _ACEOF
18287
18288 fi
18289
18290 fi
18291
18292 echo "$as_me:$LINENO: checking if large file support is available" >&5
18293 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18294 if test "x$wx_largefile" = "xyes"; then
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_LARGEFILE_SUPPORT 1
18297 _ACEOF
18298
18299 fi
18300 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18301 echo "${ECHO_T}$wx_largefile" >&6
18302 fi
18303
18304
18305 if test "x$wx_largefile" = "xyes"; then
18306 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18307 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18308 else
18309 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18310 fi
18311 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18312 fi
18313
18314 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18315 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18316 if test "${ac_cv_c_bigendian+set}" = set; then
18317 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 else
18319 ac_cv_c_bigendian=unknown
18320 # See if sys/param.h defines the BYTE_ORDER macro.
18321 cat >conftest.$ac_ext <<_ACEOF
18322 /* confdefs.h. */
18323 _ACEOF
18324 cat confdefs.h >>conftest.$ac_ext
18325 cat >>conftest.$ac_ext <<_ACEOF
18326 /* end confdefs.h. */
18327 #include <sys/types.h>
18328 #include <sys/param.h>
18329 int
18330 main ()
18331 {
18332
18333 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18334 bogus endian macros
18335 #endif
18336 ;
18337 return 0;
18338 }
18339 _ACEOF
18340 rm -f conftest.$ac_objext
18341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18342 (eval $ac_compile) 2>conftest.er1
18343 ac_status=$?
18344 grep -v '^ *+' conftest.er1 >conftest.err
18345 rm -f conftest.er1
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag"
18350 || test ! -s conftest.err'
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18353 ac_status=$?
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; } &&
18356 { ac_try='test -s conftest.$ac_objext'
18357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18358 (eval $ac_try) 2>&5
18359 ac_status=$?
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 # It does; now see whether it defined to BIG_ENDIAN or not.
18363 cat >conftest.$ac_ext <<_ACEOF
18364 /* confdefs.h. */
18365 _ACEOF
18366 cat confdefs.h >>conftest.$ac_ext
18367 cat >>conftest.$ac_ext <<_ACEOF
18368 /* end confdefs.h. */
18369 #include <sys/types.h>
18370 #include <sys/param.h>
18371 int
18372 main ()
18373 {
18374
18375 #if BYTE_ORDER != BIG_ENDIAN
18376 not big endian
18377 #endif
18378 ;
18379 return 0;
18380 }
18381 _ACEOF
18382 rm -f conftest.$ac_objext
18383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18384 (eval $ac_compile) 2>conftest.er1
18385 ac_status=$?
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } &&
18391 { ac_try='test -z "$ac_c_werror_flag"
18392 || test ! -s conftest.err'
18393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18394 (eval $ac_try) 2>&5
18395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; } &&
18398 { ac_try='test -s conftest.$ac_objext'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; }; then
18404 ac_cv_c_bigendian=yes
18405 else
18406 echo "$as_me: failed program was:" >&5
18407 sed 's/^/| /' conftest.$ac_ext >&5
18408
18409 ac_cv_c_bigendian=no
18410 fi
18411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18412 else
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416 fi
18417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18418 if test $ac_cv_c_bigendian = unknown; then
18419 if test "$cross_compiling" = yes; then
18420 ac_cv_c_bigendian=unknown
18421 else
18422 cat >conftest.$ac_ext <<_ACEOF
18423 /* confdefs.h. */
18424 _ACEOF
18425 cat confdefs.h >>conftest.$ac_ext
18426 cat >>conftest.$ac_ext <<_ACEOF
18427 /* end confdefs.h. */
18428 main () {
18429 /* Are we little or big endian? From Harbison&Steele. */
18430 union
18431 {
18432 long l;
18433 char c[sizeof (long)];
18434 } u;
18435 u.l = 1;
18436 exit (u.c[sizeof (long) - 1] == 1);
18437 }
18438 _ACEOF
18439 rm -f conftest$ac_exeext
18440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18441 (eval $ac_link) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; }; then
18450 ac_cv_c_bigendian=no
18451 else
18452 echo "$as_me: program exited with status $ac_status" >&5
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18455
18456 ( exit $ac_status )
18457 ac_cv_c_bigendian=yes
18458 fi
18459 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18460 fi
18461 fi
18462 fi
18463 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18464 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18465 if test $ac_cv_c_bigendian = unknown; then
18466 { 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
18467 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;}
18468 fi
18469 if test $ac_cv_c_bigendian = yes; then
18470 cat >>confdefs.h <<\_ACEOF
18471 #define WORDS_BIGENDIAN 1
18472 _ACEOF
18473
18474 fi
18475
18476
18477 ac_ext=cc
18478 ac_cpp='$CXXCPP $CPPFLAGS'
18479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18482 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18483 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18484 if test -z "$CXXCPP"; then
18485 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18487 else
18488 # Double quotes because CXXCPP needs to be expanded
18489 for CXXCPP in "$CXX -E" "/lib/cpp"
18490 do
18491 ac_preproc_ok=false
18492 for ac_cxx_preproc_warn_flag in '' yes
18493 do
18494 # Use a header file that comes with gcc, so configuring glibc
18495 # with a fresh cross-compiler works.
18496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18497 # <limits.h> exists even on freestanding compilers.
18498 # On the NeXT, cc -E runs the code through the compiler's parser,
18499 # not just through cpp. "Syntax error" is here to catch this case.
18500 cat >conftest.$ac_ext <<_ACEOF
18501 /* confdefs.h. */
18502 _ACEOF
18503 cat confdefs.h >>conftest.$ac_ext
18504 cat >>conftest.$ac_ext <<_ACEOF
18505 /* end confdefs.h. */
18506 #ifdef __STDC__
18507 # include <limits.h>
18508 #else
18509 # include <assert.h>
18510 #endif
18511 Syntax error
18512 _ACEOF
18513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } >/dev/null; then
18521 if test -s conftest.err; then
18522 ac_cpp_err=$ac_cxx_preproc_warn_flag
18523 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18524 else
18525 ac_cpp_err=
18526 fi
18527 else
18528 ac_cpp_err=yes
18529 fi
18530 if test -z "$ac_cpp_err"; then
18531 :
18532 else
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536 # Broken: fails on valid input.
18537 continue
18538 fi
18539 rm -f conftest.err conftest.$ac_ext
18540
18541 # OK, works on sane cases. Now check whether non-existent headers
18542 # can be detected and how.
18543 cat >conftest.$ac_ext <<_ACEOF
18544 /* confdefs.h. */
18545 _ACEOF
18546 cat confdefs.h >>conftest.$ac_ext
18547 cat >>conftest.$ac_ext <<_ACEOF
18548 /* end confdefs.h. */
18549 #include <ac_nonexistent.h>
18550 _ACEOF
18551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } >/dev/null; then
18559 if test -s conftest.err; then
18560 ac_cpp_err=$ac_cxx_preproc_warn_flag
18561 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18562 else
18563 ac_cpp_err=
18564 fi
18565 else
18566 ac_cpp_err=yes
18567 fi
18568 if test -z "$ac_cpp_err"; then
18569 # Broken: success on invalid input.
18570 continue
18571 else
18572 echo "$as_me: failed program was:" >&5
18573 sed 's/^/| /' conftest.$ac_ext >&5
18574
18575 # Passes both tests.
18576 ac_preproc_ok=:
18577 break
18578 fi
18579 rm -f conftest.err conftest.$ac_ext
18580
18581 done
18582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18583 rm -f conftest.err conftest.$ac_ext
18584 if $ac_preproc_ok; then
18585 break
18586 fi
18587
18588 done
18589 ac_cv_prog_CXXCPP=$CXXCPP
18590
18591 fi
18592 CXXCPP=$ac_cv_prog_CXXCPP
18593 else
18594 ac_cv_prog_CXXCPP=$CXXCPP
18595 fi
18596 echo "$as_me:$LINENO: result: $CXXCPP" >&5
18597 echo "${ECHO_T}$CXXCPP" >&6
18598 ac_preproc_ok=false
18599 for ac_cxx_preproc_warn_flag in '' yes
18600 do
18601 # Use a header file that comes with gcc, so configuring glibc
18602 # with a fresh cross-compiler works.
18603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18604 # <limits.h> exists even on freestanding compilers.
18605 # On the NeXT, cc -E runs the code through the compiler's parser,
18606 # not just through cpp. "Syntax error" is here to catch this case.
18607 cat >conftest.$ac_ext <<_ACEOF
18608 /* confdefs.h. */
18609 _ACEOF
18610 cat confdefs.h >>conftest.$ac_ext
18611 cat >>conftest.$ac_ext <<_ACEOF
18612 /* end confdefs.h. */
18613 #ifdef __STDC__
18614 # include <limits.h>
18615 #else
18616 # include <assert.h>
18617 #endif
18618 Syntax error
18619 _ACEOF
18620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18622 ac_status=$?
18623 grep -v '^ *+' conftest.er1 >conftest.err
18624 rm -f conftest.er1
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } >/dev/null; then
18628 if test -s conftest.err; then
18629 ac_cpp_err=$ac_cxx_preproc_warn_flag
18630 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18631 else
18632 ac_cpp_err=
18633 fi
18634 else
18635 ac_cpp_err=yes
18636 fi
18637 if test -z "$ac_cpp_err"; then
18638 :
18639 else
18640 echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18642
18643 # Broken: fails on valid input.
18644 continue
18645 fi
18646 rm -f conftest.err conftest.$ac_ext
18647
18648 # OK, works on sane cases. Now check whether non-existent headers
18649 # can be detected and how.
18650 cat >conftest.$ac_ext <<_ACEOF
18651 /* confdefs.h. */
18652 _ACEOF
18653 cat confdefs.h >>conftest.$ac_ext
18654 cat >>conftest.$ac_ext <<_ACEOF
18655 /* end confdefs.h. */
18656 #include <ac_nonexistent.h>
18657 _ACEOF
18658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } >/dev/null; then
18666 if test -s conftest.err; then
18667 ac_cpp_err=$ac_cxx_preproc_warn_flag
18668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18669 else
18670 ac_cpp_err=
18671 fi
18672 else
18673 ac_cpp_err=yes
18674 fi
18675 if test -z "$ac_cpp_err"; then
18676 # Broken: success on invalid input.
18677 continue
18678 else
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18681
18682 # Passes both tests.
18683 ac_preproc_ok=:
18684 break
18685 fi
18686 rm -f conftest.err conftest.$ac_ext
18687
18688 done
18689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18690 rm -f conftest.err conftest.$ac_ext
18691 if $ac_preproc_ok; then
18692 :
18693 else
18694 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18695 See \`config.log' for more details." >&5
18696 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18697 See \`config.log' for more details." >&2;}
18698 { (exit 1); exit 1; }; }
18699 fi
18700
18701 ac_ext=cc
18702 ac_cpp='$CXXCPP $CPPFLAGS'
18703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18706
18707
18708
18709
18710
18711 ac_ext=cc
18712 ac_cpp='$CXXCPP $CPPFLAGS'
18713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18716
18717
18718
18719 for ac_header in iostream
18720 do
18721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18722 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18723 echo "$as_me:$LINENO: checking for $ac_header" >&5
18724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18726 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 fi
18728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18730 else
18731 # Is the header compilable?
18732 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h. */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 $ac_includes_default
18741 #include <$ac_header>
18742 _ACEOF
18743 rm -f conftest.$ac_objext
18744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18745 (eval $ac_compile) 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
18752 { ac_try='test -z "$ac_cxx_werror_flag"
18753 || test ! -s conftest.err'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest.$ac_objext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
18765 ac_header_compiler=yes
18766 else
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18769
18770 ac_header_compiler=no
18771 fi
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18774 echo "${ECHO_T}$ac_header_compiler" >&6
18775
18776 # Is the header present?
18777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18779 cat >conftest.$ac_ext <<_ACEOF
18780 /* confdefs.h. */
18781 _ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 #include <$ac_header>
18786 _ACEOF
18787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } >/dev/null; then
18795 if test -s conftest.err; then
18796 ac_cpp_err=$ac_cxx_preproc_warn_flag
18797 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18798 else
18799 ac_cpp_err=
18800 fi
18801 else
18802 ac_cpp_err=yes
18803 fi
18804 if test -z "$ac_cpp_err"; then
18805 ac_header_preproc=yes
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18809
18810 ac_header_preproc=no
18811 fi
18812 rm -f conftest.err conftest.$ac_ext
18813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18814 echo "${ECHO_T}$ac_header_preproc" >&6
18815
18816 # So? What about this header?
18817 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18818 yes:no: )
18819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18823 ac_header_preproc=yes
18824 ;;
18825 no:yes:* )
18826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18838 (
18839 cat <<\_ASBOX
18840 ## ----------------------------------------- ##
18841 ## Report this to wx-dev@lists.wxwidgets.org ##
18842 ## ----------------------------------------- ##
18843 _ASBOX
18844 ) |
18845 sed "s/^/$as_me: WARNING: /" >&2
18846 ;;
18847 esac
18848 echo "$as_me:$LINENO: checking for $ac_header" >&5
18849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852 else
18853 eval "$as_ac_Header=\$ac_header_preproc"
18854 fi
18855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18857
18858 fi
18859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18860 cat >>confdefs.h <<_ACEOF
18861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18862 _ACEOF
18863
18864 fi
18865
18866 done
18867
18868
18869 if test "$ac_cv_header_iostream" = "yes" ; then
18870 :
18871 else
18872 cat >>confdefs.h <<\_ACEOF
18873 #define wxUSE_IOSTREAMH 1
18874 _ACEOF
18875
18876 fi
18877
18878 ac_ext=c
18879 ac_cpp='$CPP $CPPFLAGS'
18880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18883
18884
18885
18886
18887 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18888 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18889 if test "${wx_cv_cpp_bool+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892
18893
18894
18895 ac_ext=cc
18896 ac_cpp='$CXXCPP $CPPFLAGS'
18897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18898 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18900
18901
18902 cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h. */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18908
18909
18910 int
18911 main ()
18912 {
18913
18914 bool b = true;
18915
18916 return 0;
18917
18918 ;
18919 return 0;
18920 }
18921 _ACEOF
18922 rm -f conftest.$ac_objext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18924 (eval $ac_compile) 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_cxx_werror_flag"
18932 || test ! -s conftest.err'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18941 ac_status=$?
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944
18945 wx_cv_cpp_bool=yes
18946
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18950
18951
18952 wx_cv_cpp_bool=no
18953
18954
18955 fi
18956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18957
18958 ac_ext=c
18959 ac_cpp='$CPP $CPPFLAGS'
18960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18963
18964
18965 fi
18966 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18967 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18968
18969 if test "$wx_cv_cpp_bool" = "yes"; then
18970 cat >>confdefs.h <<\_ACEOF
18971 #define HAVE_BOOL 1
18972 _ACEOF
18973
18974 fi
18975
18976
18977
18978 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18979 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18980 if test "${wx_cv_explicit+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983
18984
18985
18986 ac_ext=cc
18987 ac_cpp='$CXXCPP $CPPFLAGS'
18988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18991
18992
18993 cat >conftest.$ac_ext <<_ACEOF
18994 /* confdefs.h. */
18995 _ACEOF
18996 cat confdefs.h >>conftest.$ac_ext
18997 cat >>conftest.$ac_ext <<_ACEOF
18998 /* end confdefs.h. */
18999
19000 class Foo { public: explicit Foo(int) {} };
19001
19002 int
19003 main ()
19004 {
19005
19006 return 0;
19007
19008 ;
19009 return 0;
19010 }
19011 _ACEOF
19012 rm -f conftest.$ac_objext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19014 (eval $ac_compile) 2>conftest.er1
19015 ac_status=$?
19016 grep -v '^ *+' conftest.er1 >conftest.err
19017 rm -f conftest.er1
19018 cat conftest.err >&5
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } &&
19021 { ac_try='test -z "$ac_cxx_werror_flag"
19022 || test ! -s conftest.err'
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest.$ac_objext'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h. */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041
19042 class Foo { public: explicit Foo(int) {} };
19043 static void TakeFoo(const Foo& foo) { }
19044
19045 int
19046 main ()
19047 {
19048
19049 TakeFoo(17);
19050 return 0;
19051
19052 ;
19053 return 0;
19054 }
19055 _ACEOF
19056 rm -f conftest.$ac_objext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058 (eval $ac_compile) 2>conftest.er1
19059 ac_status=$?
19060 grep -v '^ *+' conftest.er1 >conftest.err
19061 rm -f conftest.er1
19062 cat conftest.err >&5
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } &&
19065 { ac_try='test -z "$ac_cxx_werror_flag"
19066 || test ! -s conftest.err'
19067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068 (eval $ac_try) 2>&5
19069 ac_status=$?
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); }; } &&
19072 { ac_try='test -s conftest.$ac_objext'
19073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074 (eval $ac_try) 2>&5
19075 ac_status=$?
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); }; }; then
19078 wx_cv_explicit=no
19079 else
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083 wx_cv_explicit=yes
19084
19085 fi
19086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19087
19088 else
19089 echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 wx_cv_explicit=no
19093
19094 fi
19095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19096
19097 ac_ext=c
19098 ac_cpp='$CPP $CPPFLAGS'
19099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19102
19103
19104 fi
19105 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19106 echo "${ECHO_T}$wx_cv_explicit" >&6
19107
19108 if test "$wx_cv_explicit" = "yes"; then
19109 cat >>confdefs.h <<\_ACEOF
19110 #define HAVE_EXPLICIT 1
19111 _ACEOF
19112
19113 fi
19114
19115
19116 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19117 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19118 if test "${ac_cv_cxx_const_cast+set}" = set; then
19119 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 else
19121
19122
19123 ac_ext=cc
19124 ac_cpp='$CXXCPP $CPPFLAGS'
19125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19128
19129 cat >conftest.$ac_ext <<_ACEOF
19130 /* confdefs.h. */
19131 _ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135
19136 int
19137 main ()
19138 {
19139 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19140 ;
19141 return 0;
19142 }
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19146 (eval $ac_compile) 2>conftest.er1
19147 ac_status=$?
19148 grep -v '^ *+' conftest.er1 >conftest.err
19149 rm -f conftest.er1
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -z "$ac_cxx_werror_flag"
19154 || test ! -s conftest.err'
19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19156 (eval $ac_try) 2>&5
19157 ac_status=$?
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); }; } &&
19160 { ac_try='test -s conftest.$ac_objext'
19161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19162 (eval $ac_try) 2>&5
19163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); }; }; then
19166 ac_cv_cxx_const_cast=yes
19167 else
19168 echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171 ac_cv_cxx_const_cast=no
19172 fi
19173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19174 ac_ext=c
19175 ac_cpp='$CPP $CPPFLAGS'
19176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19179
19180
19181 fi
19182 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19183 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19184 if test "$ac_cv_cxx_const_cast" = yes; then
19185
19186 cat >>confdefs.h <<\_ACEOF
19187 #define HAVE_CONST_CAST
19188 _ACEOF
19189
19190 fi
19191
19192 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19193 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19194 if test "${ac_cv_cxx_static_cast+set}" = set; then
19195 echo $ECHO_N "(cached) $ECHO_C" >&6
19196 else
19197
19198
19199 ac_ext=cc
19200 ac_cpp='$CXXCPP $CPPFLAGS'
19201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19204
19205 cat >conftest.$ac_ext <<_ACEOF
19206 /* confdefs.h. */
19207 _ACEOF
19208 cat confdefs.h >>conftest.$ac_ext
19209 cat >>conftest.$ac_ext <<_ACEOF
19210 /* end confdefs.h. */
19211 #include <typeinfo>
19212 class Base { public : Base () {} virtual void f () = 0; };
19213 class Derived : public Base { public : Derived () {} virtual void f () {} };
19214 int g (Derived&) { return 0; }
19215 int
19216 main ()
19217 {
19218
19219 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19220 ;
19221 return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest.$ac_objext
19225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19226 (eval $ac_compile) 2>conftest.er1
19227 ac_status=$?
19228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
19233 { ac_try='test -z "$ac_cxx_werror_flag"
19234 || test ! -s conftest.err'
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; } &&
19240 { ac_try='test -s conftest.$ac_objext'
19241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_cv_cxx_static_cast=yes
19247 else
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19250
19251 ac_cv_cxx_static_cast=no
19252 fi
19253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19254 ac_ext=c
19255 ac_cpp='$CPP $CPPFLAGS'
19256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19259
19260
19261 fi
19262 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19263 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19264 if test "$ac_cv_cxx_static_cast" = yes; then
19265
19266 cat >>confdefs.h <<\_ACEOF
19267 #define HAVE_STATIC_CAST
19268 _ACEOF
19269
19270 fi
19271
19272
19273 if test "$wxUSE_STL" = "yes"; then
19274 ac_ext=cc
19275 ac_cpp='$CXXCPP $CPPFLAGS'
19276 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19277 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19278 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19279
19280
19281 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19282 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19283 cat >conftest.$ac_ext <<_ACEOF
19284 /* confdefs.h. */
19285 _ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19289 #include <string>
19290 #include <functional>
19291 #include <algorithm>
19292 #include <vector>
19293 #include <list>
19294 int
19295 main ()
19296 {
19297 std::vector<int> moo;
19298 std::list<int> foo;
19299 std::vector<int>::iterator it =
19300 std::find_if(moo.begin(), moo.end(),
19301 std::bind2nd(std::less<int>(), 3));
19302 ;
19303 return 0;
19304 }
19305 _ACEOF
19306 rm -f conftest.$ac_objext
19307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19308 (eval $ac_compile) 2>conftest.er1
19309 ac_status=$?
19310 grep -v '^ *+' conftest.er1 >conftest.err
19311 rm -f conftest.er1
19312 cat conftest.err >&5
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); } &&
19315 { ac_try='test -z "$ac_cxx_werror_flag"
19316 || test ! -s conftest.err'
19317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19319 ac_status=$?
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); }; } &&
19322 { ac_try='test -s conftest.$ac_objext'
19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324 (eval $ac_try) 2>&5
19325 ac_status=$?
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); }; }; then
19328 echo "$as_me:$LINENO: result: yes" >&5
19329 echo "${ECHO_T}yes" >&6
19330 else
19331 echo "$as_me: failed program was:" >&5
19332 sed 's/^/| /' conftest.$ac_ext >&5
19333
19334 echo "$as_me:$LINENO: result: no" >&5
19335 echo "${ECHO_T}no" >&6
19336 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19337 echo "$as_me: error: Basic STL functionality missing" >&2;}
19338 { (exit 1); exit 1; }; }
19339 fi
19340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19341
19342 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19343 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19344 cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h. */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350 #include <string>
19351 int
19352 main ()
19353 {
19354 std::wstring foo;
19355 ;
19356 return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19361 (eval $ac_compile) 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_cxx_werror_flag"
19369 || test ! -s conftest.err'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } &&
19375 { ac_try='test -s conftest.$ac_objext'
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 echo "$as_me:$LINENO: result: yes" >&5
19382 echo "${ECHO_T}yes" >&6
19383 cat >>confdefs.h <<\_ACEOF
19384 #define HAVE_STD_WSTRING 1
19385 _ACEOF
19386
19387 else
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 echo "$as_me:$LINENO: result: no" >&5
19392 echo "${ECHO_T}no" >&6
19393 fi
19394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19395
19396 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19397 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19398 cat >conftest.$ac_ext <<_ACEOF
19399 /* confdefs.h. */
19400 _ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19404 #include <string>
19405 int
19406 main ()
19407 {
19408 std::string foo, bar;
19409 foo.compare(bar);
19410 foo.compare(1, 1, bar);
19411 foo.compare(1, 1, bar, 1, 1);
19412 foo.compare("");
19413 foo.compare(1, 1, "");
19414 foo.compare(1, 1, "", 2);
19415 ;
19416 return 0;
19417 }
19418 _ACEOF
19419 rm -f conftest.$ac_objext
19420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19421 (eval $ac_compile) 2>conftest.er1
19422 ac_status=$?
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
19428 { ac_try='test -z "$ac_cxx_werror_flag"
19429 || test ! -s conftest.err'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19432 ac_status=$?
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest.$ac_objext'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19438 ac_status=$?
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 echo "$as_me:$LINENO: result: yes" >&5
19442 echo "${ECHO_T}yes" >&6
19443 cat >>confdefs.h <<\_ACEOF
19444 #define HAVE_STD_STRING_COMPARE 1
19445 _ACEOF
19446
19447 else
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451 echo "$as_me:$LINENO: result: no" >&5
19452 echo "${ECHO_T}no" >&6
19453 fi
19454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19455
19456 if test "${ac_cv_header_hash_map+set}" = set; then
19457 echo "$as_me:$LINENO: checking for hash_map" >&5
19458 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19459 if test "${ac_cv_header_hash_map+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19461 fi
19462 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19463 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19464 else
19465 # Is the header compilable?
19466 echo "$as_me:$LINENO: checking hash_map usability" >&5
19467 echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19468 cat >conftest.$ac_ext <<_ACEOF
19469 /* confdefs.h. */
19470 _ACEOF
19471 cat confdefs.h >>conftest.$ac_ext
19472 cat >>conftest.$ac_ext <<_ACEOF
19473 /* end confdefs.h. */
19474 $ac_includes_default
19475 #include <hash_map>
19476 _ACEOF
19477 rm -f conftest.$ac_objext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19479 (eval $ac_compile) 2>conftest.er1
19480 ac_status=$?
19481 grep -v '^ *+' conftest.er1 >conftest.err
19482 rm -f conftest.er1
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -z "$ac_cxx_werror_flag"
19487 || test ! -s conftest.err'
19488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; } &&
19493 { ac_try='test -s conftest.$ac_objext'
19494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19495 (eval $ac_try) 2>&5
19496 ac_status=$?
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 ac_header_compiler=yes
19500 else
19501 echo "$as_me: failed program was:" >&5
19502 sed 's/^/| /' conftest.$ac_ext >&5
19503
19504 ac_header_compiler=no
19505 fi
19506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19507 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19508 echo "${ECHO_T}$ac_header_compiler" >&6
19509
19510 # Is the header present?
19511 echo "$as_me:$LINENO: checking hash_map presence" >&5
19512 echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19513 cat >conftest.$ac_ext <<_ACEOF
19514 /* confdefs.h. */
19515 _ACEOF
19516 cat confdefs.h >>conftest.$ac_ext
19517 cat >>conftest.$ac_ext <<_ACEOF
19518 /* end confdefs.h. */
19519 #include <hash_map>
19520 _ACEOF
19521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } >/dev/null; then
19529 if test -s conftest.err; then
19530 ac_cpp_err=$ac_cxx_preproc_warn_flag
19531 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19532 else
19533 ac_cpp_err=
19534 fi
19535 else
19536 ac_cpp_err=yes
19537 fi
19538 if test -z "$ac_cpp_err"; then
19539 ac_header_preproc=yes
19540 else
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19543
19544 ac_header_preproc=no
19545 fi
19546 rm -f conftest.err conftest.$ac_ext
19547 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19548 echo "${ECHO_T}$ac_header_preproc" >&6
19549
19550 # So? What about this header?
19551 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19552 yes:no: )
19553 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19554 echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
19555 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19556 echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19557 ac_header_preproc=yes
19558 ;;
19559 no:yes:* )
19560 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19561 echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
19562 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19563 echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19564 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19565 echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19566 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19567 echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
19568 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19569 echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
19570 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19571 echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
19572 (
19573 cat <<\_ASBOX
19574 ## ----------------------------------------- ##
19575 ## Report this to wx-dev@lists.wxwidgets.org ##
19576 ## ----------------------------------------- ##
19577 _ASBOX
19578 ) |
19579 sed "s/^/$as_me: WARNING: /" >&2
19580 ;;
19581 esac
19582 echo "$as_me:$LINENO: checking for hash_map" >&5
19583 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19584 if test "${ac_cv_header_hash_map+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19586 else
19587 ac_cv_header_hash_map=$ac_header_preproc
19588 fi
19589 echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19590 echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19591
19592 fi
19593 if test $ac_cv_header_hash_map = yes; then
19594 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19595 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19596 cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h. */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h. */
19602 #include <hash_map>
19603 #include <hash_set>
19604 int
19605 main ()
19606 {
19607 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19608 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19609 ;
19610 return 0;
19611 }
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19615 (eval $ac_compile) 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } &&
19622 { ac_try='test -z "$ac_cxx_werror_flag"
19623 || test ! -s conftest.err'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
19630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 echo "$as_me:$LINENO: result: yes" >&5
19636 echo "${ECHO_T}yes" >&6
19637 cat >>confdefs.h <<\_ACEOF
19638 #define HAVE_HASH_MAP 1
19639 _ACEOF
19640
19641 cat >>confdefs.h <<\_ACEOF
19642 #define HAVE_STD_HASH_MAP 1
19643 _ACEOF
19644
19645 else
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19648
19649 echo "$as_me:$LINENO: result: no" >&5
19650 echo "${ECHO_T}no" >&6
19651 fi
19652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19653
19654 fi
19655
19656
19657
19658 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19659 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19660 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19661 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19663 fi
19664 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19665 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19666 else
19667 # Is the header compilable?
19668 echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19669 echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 $ac_includes_default
19677 #include <ext/hash_map>
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19681 (eval $ac_compile) 2>conftest.er1
19682 ac_status=$?
19683 grep -v '^ *+' conftest.er1 >conftest.err
19684 rm -f conftest.er1
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); } &&
19688 { ac_try='test -z "$ac_cxx_werror_flag"
19689 || test ! -s conftest.err'
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; } &&
19695 { ac_try='test -s conftest.$ac_objext'
19696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; }; then
19701 ac_header_compiler=yes
19702 else
19703 echo "$as_me: failed program was:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19705
19706 ac_header_compiler=no
19707 fi
19708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19710 echo "${ECHO_T}$ac_header_compiler" >&6
19711
19712 # Is the header present?
19713 echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19714 echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19715 cat >conftest.$ac_ext <<_ACEOF
19716 /* confdefs.h. */
19717 _ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <ext/hash_map>
19722 _ACEOF
19723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19725 ac_status=$?
19726 grep -v '^ *+' conftest.er1 >conftest.err
19727 rm -f conftest.er1
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } >/dev/null; then
19731 if test -s conftest.err; then
19732 ac_cpp_err=$ac_cxx_preproc_warn_flag
19733 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19734 else
19735 ac_cpp_err=
19736 fi
19737 else
19738 ac_cpp_err=yes
19739 fi
19740 if test -z "$ac_cpp_err"; then
19741 ac_header_preproc=yes
19742 else
19743 echo "$as_me: failed program was:" >&5
19744 sed 's/^/| /' conftest.$ac_ext >&5
19745
19746 ac_header_preproc=no
19747 fi
19748 rm -f conftest.err conftest.$ac_ext
19749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19750 echo "${ECHO_T}$ac_header_preproc" >&6
19751
19752 # So? What about this header?
19753 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19754 yes:no: )
19755 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19756 echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
19757 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19758 echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19759 ac_header_preproc=yes
19760 ;;
19761 no:yes:* )
19762 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19763 echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
19764 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19765 echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19766 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19767 echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19768 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19769 echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
19770 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19771 echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
19772 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19773 echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
19774 (
19775 cat <<\_ASBOX
19776 ## ----------------------------------------- ##
19777 ## Report this to wx-dev@lists.wxwidgets.org ##
19778 ## ----------------------------------------- ##
19779 _ASBOX
19780 ) |
19781 sed "s/^/$as_me: WARNING: /" >&2
19782 ;;
19783 esac
19784 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19785 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19786 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 ac_cv_header_ext_hash_map=$ac_header_preproc
19790 fi
19791 echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19792 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19793
19794 fi
19795 if test $ac_cv_header_ext_hash_map = yes; then
19796 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19797 echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19798 cat >conftest.$ac_ext <<_ACEOF
19799 /* confdefs.h. */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 #include <ext/hash_map>
19805 #include <ext/hash_set>
19806 int
19807 main ()
19808 {
19809 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19810 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19811 ;
19812 return 0;
19813 }
19814 _ACEOF
19815 rm -f conftest.$ac_objext
19816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19817 (eval $ac_compile) 2>conftest.er1
19818 ac_status=$?
19819 grep -v '^ *+' conftest.er1 >conftest.err
19820 rm -f conftest.er1
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); } &&
19824 { ac_try='test -z "$ac_cxx_werror_flag"
19825 || test ! -s conftest.err'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; } &&
19831 { ac_try='test -s conftest.$ac_objext'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; }; then
19837 echo "$as_me:$LINENO: result: yes" >&5
19838 echo "${ECHO_T}yes" >&6
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_EXT_HASH_MAP 1
19841 _ACEOF
19842
19843 cat >>confdefs.h <<\_ACEOF
19844 #define HAVE_GNU_CXX_HASH_MAP 1
19845 _ACEOF
19846
19847 else
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851 echo "$as_me:$LINENO: result: no" >&5
19852 echo "${ECHO_T}no" >&6
19853 fi
19854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19855
19856 fi
19857
19858
19859
19860 ac_ext=c
19861 ac_cpp='$CPP $CPPFLAGS'
19862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19865
19866 fi
19867
19868
19869 SEARCH_INCLUDE="\
19870 /usr/local/include \
19871 \
19872 /usr/Motif-2.1/include \
19873 /usr/Motif-1.2/include \
19874 /usr/include/Motif1.2 \
19875 /opt/xpm/include/X11 \
19876 /opt/GBxpm/include/ \
19877 /opt/GBxpm/X11/include/ \
19878 \
19879 /usr/dt/include \
19880 /usr/openwin/include \
19881 \
19882 /usr/include/Xm \
19883 \
19884 /usr/X11R6/include \
19885 /usr/X11R6.4/include \
19886 /usr/X11R5/include \
19887 /usr/X11R4/include \
19888 \
19889 /usr/include/X11R6 \
19890 /usr/include/X11R5 \
19891 /usr/include/X11R4 \
19892 \
19893 /usr/local/X11R6/include \
19894 /usr/local/X11R5/include \
19895 /usr/local/X11R4/include \
19896 \
19897 /usr/local/include/X11R6 \
19898 /usr/local/include/X11R5 \
19899 /usr/local/include/X11R4 \
19900 \
19901 /usr/X11/include \
19902 /usr/include/X11 \
19903 /usr/local/X11/include \
19904 /usr/local/include/X11 \
19905 \
19906 /usr/X386/include \
19907 /usr/x386/include \
19908 /usr/XFree86/include/X11 \
19909 \
19910 X:/XFree86/include \
19911 X:/XFree86/include/X11 \
19912 \
19913 /usr/include/gtk \
19914 /usr/local/include/gtk \
19915 /usr/include/glib \
19916 /usr/local/include/glib \
19917 \
19918 /usr/include/qt \
19919 /usr/local/include/qt \
19920 \
19921 /usr/local/arm/3.3.2/include \
19922 \
19923 /usr/include/windows \
19924 /usr/include/wine \
19925 /usr/local/include/wine \
19926 \
19927 /usr/unsupported/include \
19928 /usr/athena/include \
19929 /usr/local/x11r5/include \
19930 /usr/lpp/Xamples/include \
19931 \
19932 /usr/openwin/share/include"
19933
19934 SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19935
19936
19937 cat >confcache <<\_ACEOF
19938 # This file is a shell script that caches the results of configure
19939 # tests run on this system so they can be shared between configure
19940 # scripts and configure runs, see configure's option --config-cache.
19941 # It is not useful on other systems. If it contains results you don't
19942 # want to keep, you may remove or edit it.
19943 #
19944 # config.status only pays attention to the cache file if you give it
19945 # the --recheck option to rerun configure.
19946 #
19947 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19948 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19949 # following values.
19950
19951 _ACEOF
19952
19953 # The following way of writing the cache mishandles newlines in values,
19954 # but we know of no workaround that is simple, portable, and efficient.
19955 # So, don't put newlines in cache variables' values.
19956 # Ultrix sh set writes to stderr and can't be redirected directly,
19957 # and sets the high bit in the cache file unless we assign to the vars.
19958 {
19959 (set) 2>&1 |
19960 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19961 *ac_space=\ *)
19962 # `set' does not quote correctly, so add quotes (double-quote
19963 # substitution turns \\\\ into \\, and sed turns \\ into \).
19964 sed -n \
19965 "s/'/'\\\\''/g;
19966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19967 ;;
19968 *)
19969 # `set' quotes correctly as required by POSIX, so do not add quotes.
19970 sed -n \
19971 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19972 ;;
19973 esac;
19974 } |
19975 sed '
19976 t clear
19977 : clear
19978 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19979 t end
19980 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19981 : end' >>confcache
19982 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19983 if test -w $cache_file; then
19984 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19985 cat confcache >$cache_file
19986 else
19987 echo "not updating unwritable cache $cache_file"
19988 fi
19989 fi
19990 rm -f confcache
19991
19992 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19993 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19994 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19995 if test "${wx_cv_lib_glibc21+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19997 else
19998
19999 cat >conftest.$ac_ext <<_ACEOF
20000 /* confdefs.h. */
20001 _ACEOF
20002 cat confdefs.h >>conftest.$ac_ext
20003 cat >>conftest.$ac_ext <<_ACEOF
20004 /* end confdefs.h. */
20005 #include <features.h>
20006 int
20007 main ()
20008 {
20009
20010 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20011 #error not glibc2.1
20012 #endif
20013
20014 ;
20015 return 0;
20016 }
20017 _ACEOF
20018 rm -f conftest.$ac_objext
20019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20020 (eval $ac_compile) 2>conftest.er1
20021 ac_status=$?
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
20027 { ac_try='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest.$ac_objext'
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040
20041 wx_cv_lib_glibc21=yes
20042
20043 else
20044 echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047
20048 wx_cv_lib_glibc21=no
20049
20050
20051 fi
20052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20053
20054 fi
20055 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20056 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20057 if test "$wx_cv_lib_glibc21" = "yes"; then
20058 cat >>confdefs.h <<\_ACEOF
20059 #define wxHAVE_GLIBC2 1
20060 _ACEOF
20061
20062 fi
20063 fi
20064
20065 if test "x$wx_cv_lib_glibc21" = "xyes"; then
20066 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20067 cat >>confdefs.h <<\_ACEOF
20068 #define _GNU_SOURCE 1
20069 _ACEOF
20070
20071 fi
20072 fi
20073
20074
20075
20076 if test "$wxUSE_REGEX" != "no"; then
20077 cat >>confdefs.h <<\_ACEOF
20078 #define wxUSE_REGEX 1
20079 _ACEOF
20080
20081
20082 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20083 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20084 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20085 wxUSE_REGEX=builtin
20086 fi
20087
20088 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20089 if test "${ac_cv_header_regex_h+set}" = set; then
20090 echo "$as_me:$LINENO: checking for regex.h" >&5
20091 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20092 if test "${ac_cv_header_regex_h+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094 fi
20095 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20096 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20097 else
20098 # Is the header compilable?
20099 echo "$as_me:$LINENO: checking regex.h usability" >&5
20100 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20101 cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h. */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20107 $ac_includes_default
20108 #include <regex.h>
20109 _ACEOF
20110 rm -f conftest.$ac_objext
20111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20112 (eval $ac_compile) 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } &&
20119 { ac_try='test -z "$ac_c_werror_flag"
20120 || test ! -s conftest.err'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_header_compiler=yes
20133 else
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.$ac_ext >&5
20136
20137 ac_header_compiler=no
20138 fi
20139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20140 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20141 echo "${ECHO_T}$ac_header_compiler" >&6
20142
20143 # Is the header present?
20144 echo "$as_me:$LINENO: checking regex.h presence" >&5
20145 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20146 cat >conftest.$ac_ext <<_ACEOF
20147 /* confdefs.h. */
20148 _ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <regex.h>
20153 _ACEOF
20154 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20156 ac_status=$?
20157 grep -v '^ *+' conftest.er1 >conftest.err
20158 rm -f conftest.er1
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } >/dev/null; then
20162 if test -s conftest.err; then
20163 ac_cpp_err=$ac_c_preproc_warn_flag
20164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20165 else
20166 ac_cpp_err=
20167 fi
20168 else
20169 ac_cpp_err=yes
20170 fi
20171 if test -z "$ac_cpp_err"; then
20172 ac_header_preproc=yes
20173 else
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177 ac_header_preproc=no
20178 fi
20179 rm -f conftest.err conftest.$ac_ext
20180 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20181 echo "${ECHO_T}$ac_header_preproc" >&6
20182
20183 # So? What about this header?
20184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20185 yes:no: )
20186 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20187 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20188 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20189 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20190 ac_header_preproc=yes
20191 ;;
20192 no:yes:* )
20193 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20194 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20195 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20196 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20197 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20198 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20199 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20200 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
20201 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20202 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20203 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20204 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20205 (
20206 cat <<\_ASBOX
20207 ## ----------------------------------------- ##
20208 ## Report this to wx-dev@lists.wxwidgets.org ##
20209 ## ----------------------------------------- ##
20210 _ASBOX
20211 ) |
20212 sed "s/^/$as_me: WARNING: /" >&2
20213 ;;
20214 esac
20215 echo "$as_me:$LINENO: checking for regex.h" >&5
20216 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20217 if test "${ac_cv_header_regex_h+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 else
20220 ac_cv_header_regex_h=$ac_header_preproc
20221 fi
20222 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20223 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20224
20225 fi
20226 if test $ac_cv_header_regex_h = yes; then
20227
20228 for ac_func in regcomp
20229 do
20230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20231 echo "$as_me:$LINENO: checking for $ac_func" >&5
20232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20233 if eval "test \"\${$as_ac_var+set}\" = set"; then
20234 echo $ECHO_N "(cached) $ECHO_C" >&6
20235 else
20236 cat >conftest.$ac_ext <<_ACEOF
20237 /* confdefs.h. */
20238 _ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20244 #define $ac_func innocuous_$ac_func
20245
20246 /* System header to define __stub macros and hopefully few prototypes,
20247 which can conflict with char $ac_func (); below.
20248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20249 <limits.h> exists even on freestanding compilers. */
20250
20251 #ifdef __STDC__
20252 # include <limits.h>
20253 #else
20254 # include <assert.h>
20255 #endif
20256
20257 #undef $ac_func
20258
20259 /* Override any gcc2 internal prototype to avoid an error. */
20260 #ifdef __cplusplus
20261 extern "C"
20262 {
20263 #endif
20264 /* We use char because int might match the return type of a gcc2
20265 builtin and then its argument prototype would still apply. */
20266 char $ac_func ();
20267 /* The GNU C library defines this for functions which it implements
20268 to always fail with ENOSYS. Some functions are actually named
20269 something starting with __ and the normal name is an alias. */
20270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20271 choke me
20272 #else
20273 char (*f) () = $ac_func;
20274 #endif
20275 #ifdef __cplusplus
20276 }
20277 #endif
20278
20279 int
20280 main ()
20281 {
20282 return f != $ac_func;
20283 ;
20284 return 0;
20285 }
20286 _ACEOF
20287 rm -f conftest.$ac_objext conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289 (eval $ac_link) 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest$ac_exeext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 eval "$as_ac_var=yes"
20310 else
20311 echo "$as_me: failed program was:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20313
20314 eval "$as_ac_var=no"
20315 fi
20316 rm -f conftest.err conftest.$ac_objext \
20317 conftest$ac_exeext conftest.$ac_ext
20318 fi
20319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20321 if test `eval echo '${'$as_ac_var'}'` = yes; then
20322 cat >>confdefs.h <<_ACEOF
20323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20324 _ACEOF
20325
20326 fi
20327 done
20328
20329 fi
20330
20331
20332
20333 if test "x$ac_cv_func_regcomp" != "xyes"; then
20334 if test "$wxUSE_REGEX" = "sys" ; then
20335 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20336 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20337 { (exit 1); exit 1; }; }
20338 else
20339 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20340 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20341 wxUSE_REGEX=builtin
20342 fi
20343 else
20344 wxUSE_REGEX=sys
20345 cat >>confdefs.h <<\_ACEOF
20346 #define WX_NO_REGEX_ADVANCED 1
20347 _ACEOF
20348
20349 fi
20350 fi
20351 fi
20352
20353
20354 ZLIB_LINK=
20355 if test "$wxUSE_ZLIB" != "no" ; then
20356 cat >>confdefs.h <<\_ACEOF
20357 #define wxUSE_ZLIB 1
20358 _ACEOF
20359
20360
20361 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20362 if test "$USE_DARWIN" = 1; then
20363 system_zlib_h_ok="yes"
20364 else
20365 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20366 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20367 if test "${ac_cv_header_zlib_h+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20369 else
20370 if test "$cross_compiling" = yes; then
20371 unset ac_cv_header_zlib_h
20372
20373 else
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h. */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20380
20381 #include <zlib.h>
20382 #include <stdio.h>
20383
20384 int main()
20385 {
20386 FILE *f=fopen("conftestval", "w");
20387 if (!f) exit(1);
20388 fprintf(f, "%s",
20389 ZLIB_VERSION[0] == '1' &&
20390 (ZLIB_VERSION[2] > '1' ||
20391 (ZLIB_VERSION[2] == '1' &&
20392 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20393 exit(0);
20394 }
20395
20396 _ACEOF
20397 rm -f conftest$ac_exeext
20398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20399 (eval $ac_link) 2>&5
20400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 ac_cv_header_zlib_h=`cat conftestval`
20409 else
20410 echo "$as_me: program exited with status $ac_status" >&5
20411 echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414 ( exit $ac_status )
20415 ac_cv_header_zlib_h=no
20416 fi
20417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20418 fi
20419
20420 fi
20421 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20422 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20423 if test "${ac_cv_header_zlib_h+set}" = set; then
20424 echo "$as_me:$LINENO: checking for zlib.h" >&5
20425 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20426 if test "${ac_cv_header_zlib_h+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20428 fi
20429 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20430 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20431 else
20432 # Is the header compilable?
20433 echo "$as_me:$LINENO: checking zlib.h usability" >&5
20434 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20435 cat >conftest.$ac_ext <<_ACEOF
20436 /* confdefs.h. */
20437 _ACEOF
20438 cat confdefs.h >>conftest.$ac_ext
20439 cat >>conftest.$ac_ext <<_ACEOF
20440 /* end confdefs.h. */
20441 $ac_includes_default
20442 #include <zlib.h>
20443 _ACEOF
20444 rm -f conftest.$ac_objext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20446 (eval $ac_compile) 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } &&
20453 { ac_try='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20457 ac_status=$?
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest.$ac_objext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20463 ac_status=$?
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_header_compiler=yes
20467 else
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471 ac_header_compiler=no
20472 fi
20473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20475 echo "${ECHO_T}$ac_header_compiler" >&6
20476
20477 # Is the header present?
20478 echo "$as_me:$LINENO: checking zlib.h presence" >&5
20479 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20480 cat >conftest.$ac_ext <<_ACEOF
20481 /* confdefs.h. */
20482 _ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20486 #include <zlib.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 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20499 else
20500 ac_cpp_err=
20501 fi
20502 else
20503 ac_cpp_err=yes
20504 fi
20505 if test -z "$ac_cpp_err"; then
20506 ac_header_preproc=yes
20507 else
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ac_header_preproc=no
20512 fi
20513 rm -f conftest.err conftest.$ac_ext
20514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20515 echo "${ECHO_T}$ac_header_preproc" >&6
20516
20517 # So? What about this header?
20518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20519 yes:no: )
20520 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20521 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20522 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20523 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20524 ac_header_preproc=yes
20525 ;;
20526 no:yes:* )
20527 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20528 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20530 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20532 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20534 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
20535 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20536 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20537 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20538 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20539 (
20540 cat <<\_ASBOX
20541 ## ----------------------------------------- ##
20542 ## Report this to wx-dev@lists.wxwidgets.org ##
20543 ## ----------------------------------------- ##
20544 _ASBOX
20545 ) |
20546 sed "s/^/$as_me: WARNING: /" >&2
20547 ;;
20548 esac
20549 echo "$as_me:$LINENO: checking for zlib.h" >&5
20550 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20551 if test "${ac_cv_header_zlib_h+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554 ac_cv_header_zlib_h=$ac_header_preproc
20555 fi
20556 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20557 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20558
20559 fi
20560
20561
20562
20563 system_zlib_h_ok=$ac_cv_header_zlib_h
20564 fi
20565
20566 if test "$system_zlib_h_ok" = "yes"; then
20567 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20568 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20569 if test "${ac_cv_lib_z_deflate+set}" = set; then
20570 echo $ECHO_N "(cached) $ECHO_C" >&6
20571 else
20572 ac_check_lib_save_LIBS=$LIBS
20573 LIBS="-lz $LIBS"
20574 cat >conftest.$ac_ext <<_ACEOF
20575 /* confdefs.h. */
20576 _ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580
20581 /* Override any gcc2 internal prototype to avoid an error. */
20582 #ifdef __cplusplus
20583 extern "C"
20584 #endif
20585 /* We use char because int might match the return type of a gcc2
20586 builtin and then its argument prototype would still apply. */
20587 char deflate ();
20588 int
20589 main ()
20590 {
20591 deflate ();
20592 ;
20593 return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest.$ac_objext conftest$ac_exeext
20597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20598 (eval $ac_link) 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -z "$ac_c_werror_flag"
20606 || test ! -s conftest.err'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
20612 { ac_try='test -s conftest$ac_exeext'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_lib_z_deflate=yes
20619 else
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ac_cv_lib_z_deflate=no
20624 fi
20625 rm -f conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
20627 LIBS=$ac_check_lib_save_LIBS
20628 fi
20629 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20630 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20631 if test $ac_cv_lib_z_deflate = yes; then
20632 ZLIB_LINK=" -lz"
20633 fi
20634
20635 fi
20636
20637 if test "x$ZLIB_LINK" = "x" ; then
20638 if test "$wxUSE_ZLIB" = "sys" ; then
20639 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20640 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20641 { (exit 1); exit 1; }; }
20642 else
20643 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20644 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20645 wxUSE_ZLIB=builtin
20646 fi
20647 else
20648 wxUSE_ZLIB=sys
20649 fi
20650 fi
20651 fi
20652
20653
20654 PNG_LINK=
20655 if test "$wxUSE_LIBPNG" != "no" ; then
20656 cat >>confdefs.h <<\_ACEOF
20657 #define wxUSE_LIBPNG 1
20658 _ACEOF
20659
20660
20661 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20662 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20663 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20664 wxUSE_LIBPNG=sys
20665 fi
20666
20667 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20668 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20669 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20670 wxUSE_LIBPNG=builtin
20671 fi
20672
20673 if test "$wxUSE_MGL" != 1 ; then
20674 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20675 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20676 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20677 if test "${ac_cv_header_png_h+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680 if test "$cross_compiling" = yes; then
20681 unset ac_cv_header_png_h
20682
20683 else
20684 cat >conftest.$ac_ext <<_ACEOF
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690
20691 #include <png.h>
20692 #include <stdio.h>
20693
20694 int main()
20695 {
20696 FILE *f=fopen("conftestval", "w");
20697 if (!f) exit(1);
20698 fprintf(f, "%s",
20699 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20700 exit(0);
20701 }
20702
20703 _ACEOF
20704 rm -f conftest$ac_exeext
20705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706 (eval $ac_link) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_cv_header_png_h=`cat conftestval`
20716 else
20717 echo "$as_me: program exited with status $ac_status" >&5
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720
20721 ( exit $ac_status )
20722 ac_cv_header_png_h=no
20723 fi
20724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20725 fi
20726
20727 fi
20728 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20729 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20730 if test "${ac_cv_header_png_h+set}" = set; then
20731 echo "$as_me:$LINENO: checking for png.h" >&5
20732 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20733 if test "${ac_cv_header_png_h+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 fi
20736 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20737 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20738 else
20739 # Is the header compilable?
20740 echo "$as_me:$LINENO: checking png.h usability" >&5
20741 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20742 cat >conftest.$ac_ext <<_ACEOF
20743 /* confdefs.h. */
20744 _ACEOF
20745 cat confdefs.h >>conftest.$ac_ext
20746 cat >>conftest.$ac_ext <<_ACEOF
20747 /* end confdefs.h. */
20748 $ac_includes_default
20749 #include <png.h>
20750 _ACEOF
20751 rm -f conftest.$ac_objext
20752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20753 (eval $ac_compile) 2>conftest.er1
20754 ac_status=$?
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
20760 { ac_try='test -z "$ac_c_werror_flag"
20761 || test ! -s conftest.err'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; } &&
20767 { ac_try='test -s conftest.$ac_objext'
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
20773 ac_header_compiler=yes
20774 else
20775 echo "$as_me: failed program was:" >&5
20776 sed 's/^/| /' conftest.$ac_ext >&5
20777
20778 ac_header_compiler=no
20779 fi
20780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20781 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20782 echo "${ECHO_T}$ac_header_compiler" >&6
20783
20784 # Is the header present?
20785 echo "$as_me:$LINENO: checking png.h presence" >&5
20786 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20787 cat >conftest.$ac_ext <<_ACEOF
20788 /* confdefs.h. */
20789 _ACEOF
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 #include <png.h>
20794 _ACEOF
20795 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } >/dev/null; then
20803 if test -s conftest.err; then
20804 ac_cpp_err=$ac_c_preproc_warn_flag
20805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20806 else
20807 ac_cpp_err=
20808 fi
20809 else
20810 ac_cpp_err=yes
20811 fi
20812 if test -z "$ac_cpp_err"; then
20813 ac_header_preproc=yes
20814 else
20815 echo "$as_me: failed program was:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20817
20818 ac_header_preproc=no
20819 fi
20820 rm -f conftest.err conftest.$ac_ext
20821 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20822 echo "${ECHO_T}$ac_header_preproc" >&6
20823
20824 # So? What about this header?
20825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20826 yes:no: )
20827 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20828 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20829 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20830 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20831 ac_header_preproc=yes
20832 ;;
20833 no:yes:* )
20834 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20835 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20836 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20837 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20839 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20841 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
20842 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20843 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20845 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20846 (
20847 cat <<\_ASBOX
20848 ## ----------------------------------------- ##
20849 ## Report this to wx-dev@lists.wxwidgets.org ##
20850 ## ----------------------------------------- ##
20851 _ASBOX
20852 ) |
20853 sed "s/^/$as_me: WARNING: /" >&2
20854 ;;
20855 esac
20856 echo "$as_me:$LINENO: checking for png.h" >&5
20857 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20858 if test "${ac_cv_header_png_h+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861 ac_cv_header_png_h=$ac_header_preproc
20862 fi
20863 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20864 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20865
20866 fi
20867
20868
20869
20870 if test "$ac_cv_header_png_h" = "yes"; then
20871 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20872 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20873 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20874 echo $ECHO_N "(cached) $ECHO_C" >&6
20875 else
20876 ac_check_lib_save_LIBS=$LIBS
20877 LIBS="-lpng -lz -lm $LIBS"
20878 cat >conftest.$ac_ext <<_ACEOF
20879 /* confdefs.h. */
20880 _ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884
20885 /* Override any gcc2 internal prototype to avoid an error. */
20886 #ifdef __cplusplus
20887 extern "C"
20888 #endif
20889 /* We use char because int might match the return type of a gcc2
20890 builtin and then its argument prototype would still apply. */
20891 char png_check_sig ();
20892 int
20893 main ()
20894 {
20895 png_check_sig ();
20896 ;
20897 return 0;
20898 }
20899 _ACEOF
20900 rm -f conftest.$ac_objext conftest$ac_exeext
20901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20902 (eval $ac_link) 2>conftest.er1
20903 ac_status=$?
20904 grep -v '^ *+' conftest.er1 >conftest.err
20905 rm -f conftest.er1
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } &&
20909 { ac_try='test -z "$ac_c_werror_flag"
20910 || test ! -s conftest.err'
20911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20912 (eval $ac_try) 2>&5
20913 ac_status=$?
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; } &&
20916 { ac_try='test -s conftest$ac_exeext'
20917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918 (eval $ac_try) 2>&5
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); }; }; then
20922 ac_cv_lib_png_png_check_sig=yes
20923 else
20924 echo "$as_me: failed program was:" >&5
20925 sed 's/^/| /' conftest.$ac_ext >&5
20926
20927 ac_cv_lib_png_png_check_sig=no
20928 fi
20929 rm -f conftest.err conftest.$ac_objext \
20930 conftest$ac_exeext conftest.$ac_ext
20931 LIBS=$ac_check_lib_save_LIBS
20932 fi
20933 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20934 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20935 if test $ac_cv_lib_png_png_check_sig = yes; then
20936 PNG_LINK=" -lpng -lz"
20937 fi
20938
20939 fi
20940
20941 if test "x$PNG_LINK" = "x" ; then
20942 if test "$wxUSE_LIBPNG" = "sys" ; then
20943 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20944 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20945 { (exit 1); exit 1; }; }
20946 else
20947 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20948 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20949 wxUSE_LIBPNG=builtin
20950 fi
20951 else
20952 wxUSE_LIBPNG=sys
20953 fi
20954 fi
20955 fi
20956
20957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20958 fi
20959
20960
20961 JPEG_LINK=
20962 if test "$wxUSE_LIBJPEG" != "no" ; then
20963 cat >>confdefs.h <<\_ACEOF
20964 #define wxUSE_LIBJPEG 1
20965 _ACEOF
20966
20967
20968 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20969 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20970 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20971 wxUSE_LIBJPEG=sys
20972 fi
20973
20974 if test "$wxUSE_MGL" != 1 ; then
20975 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20976 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20977 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20978 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 else
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h. */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20987
20988 #undef HAVE_STDLIB_H
20989 #include <stdio.h>
20990 #include <jpeglib.h>
20991
20992 int
20993 main ()
20994 {
20995
20996
20997 ;
20998 return 0;
20999 }
21000 _ACEOF
21001 rm -f conftest.$ac_objext
21002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21003 (eval $ac_compile) 2>conftest.er1
21004 ac_status=$?
21005 grep -v '^ *+' conftest.er1 >conftest.err
21006 rm -f conftest.er1
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -z "$ac_c_werror_flag"
21011 || test ! -s conftest.err'
21012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013 (eval $ac_try) 2>&5
21014 ac_status=$?
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); }; } &&
21017 { ac_try='test -s conftest.$ac_objext'
21018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019 (eval $ac_try) 2>&5
21020 ac_status=$?
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); }; }; then
21023 ac_cv_header_jpeglib_h=yes
21024 else
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028 ac_cv_header_jpeglib_h=no
21029
21030 fi
21031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21032
21033 fi
21034
21035 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21036 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21037
21038 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21039 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21040 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21041 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 else
21044 ac_check_lib_save_LIBS=$LIBS
21045 LIBS="-ljpeg $LIBS"
21046 cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h. */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052
21053 /* Override any gcc2 internal prototype to avoid an error. */
21054 #ifdef __cplusplus
21055 extern "C"
21056 #endif
21057 /* We use char because int might match the return type of a gcc2
21058 builtin and then its argument prototype would still apply. */
21059 char jpeg_read_header ();
21060 int
21061 main ()
21062 {
21063 jpeg_read_header ();
21064 ;
21065 return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21070 (eval $ac_link) 2>conftest.er1
21071 ac_status=$?
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } &&
21077 { ac_try='test -z "$ac_c_werror_flag"
21078 || test ! -s conftest.err'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; } &&
21084 { ac_try='test -s conftest$ac_exeext'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; }; then
21090 ac_cv_lib_jpeg_jpeg_read_header=yes
21091 else
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21094
21095 ac_cv_lib_jpeg_jpeg_read_header=no
21096 fi
21097 rm -f conftest.err conftest.$ac_objext \
21098 conftest$ac_exeext conftest.$ac_ext
21099 LIBS=$ac_check_lib_save_LIBS
21100 fi
21101 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21102 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21103 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21104 JPEG_LINK=" -ljpeg"
21105 fi
21106
21107 fi
21108
21109 if test "x$JPEG_LINK" = "x" ; then
21110 if test "$wxUSE_LIBJPEG" = "sys" ; then
21111 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21112 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21113 { (exit 1); exit 1; }; }
21114 else
21115 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21116 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21117 wxUSE_LIBJPEG=builtin
21118 fi
21119 else
21120 wxUSE_LIBJPEG=sys
21121 fi
21122 fi
21123 fi
21124 fi
21125
21126
21127 TIFF_LINK=
21128 TIFF_PREREQ_LINKS=-lm
21129 if test "$wxUSE_LIBTIFF" != "no" ; then
21130 cat >>confdefs.h <<\_ACEOF
21131 #define wxUSE_LIBTIFF 1
21132 _ACEOF
21133
21134
21135 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21136 if test "$wxUSE_LIBJPEG" = "sys"; then
21137 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21138 fi
21139 if test "$wxUSE_ZLIB" = "sys"; then
21140 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21141 fi
21142 if test "${ac_cv_header_tiffio_h+set}" = set; then
21143 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21145 if test "${ac_cv_header_tiffio_h+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21147 fi
21148 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21150 else
21151 # Is the header compilable?
21152 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21153 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21154 cat >conftest.$ac_ext <<_ACEOF
21155 /* confdefs.h. */
21156 _ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 $ac_includes_default
21161 #include <tiffio.h>
21162 _ACEOF
21163 rm -f conftest.$ac_objext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21165 (eval $ac_compile) 2>conftest.er1
21166 ac_status=$?
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
21172 { ac_try='test -z "$ac_c_werror_flag"
21173 || test ! -s conftest.err'
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest.$ac_objext'
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 ac_header_compiler=yes
21186 else
21187 echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21189
21190 ac_header_compiler=no
21191 fi
21192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21194 echo "${ECHO_T}$ac_header_compiler" >&6
21195
21196 # Is the header present?
21197 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21198 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21199 cat >conftest.$ac_ext <<_ACEOF
21200 /* confdefs.h. */
21201 _ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21205 #include <tiffio.h>
21206 _ACEOF
21207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21209 ac_status=$?
21210 grep -v '^ *+' conftest.er1 >conftest.err
21211 rm -f conftest.er1
21212 cat conftest.err >&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); } >/dev/null; then
21215 if test -s conftest.err; then
21216 ac_cpp_err=$ac_c_preproc_warn_flag
21217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21218 else
21219 ac_cpp_err=
21220 fi
21221 else
21222 ac_cpp_err=yes
21223 fi
21224 if test -z "$ac_cpp_err"; then
21225 ac_header_preproc=yes
21226 else
21227 echo "$as_me: failed program was:" >&5
21228 sed 's/^/| /' conftest.$ac_ext >&5
21229
21230 ac_header_preproc=no
21231 fi
21232 rm -f conftest.err conftest.$ac_ext
21233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21234 echo "${ECHO_T}$ac_header_preproc" >&6
21235
21236 # So? What about this header?
21237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21238 yes:no: )
21239 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21240 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21241 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21242 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21243 ac_header_preproc=yes
21244 ;;
21245 no:yes:* )
21246 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21247 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
21248 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21249 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21250 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21251 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21252 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21253 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
21254 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21255 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
21256 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21257 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
21258 (
21259 cat <<\_ASBOX
21260 ## ----------------------------------------- ##
21261 ## Report this to wx-dev@lists.wxwidgets.org ##
21262 ## ----------------------------------------- ##
21263 _ASBOX
21264 ) |
21265 sed "s/^/$as_me: WARNING: /" >&2
21266 ;;
21267 esac
21268 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21269 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21270 if test "${ac_cv_header_tiffio_h+set}" = set; then
21271 echo $ECHO_N "(cached) $ECHO_C" >&6
21272 else
21273 ac_cv_header_tiffio_h=$ac_header_preproc
21274 fi
21275 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21276 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21277
21278 fi
21279 if test $ac_cv_header_tiffio_h = yes; then
21280
21281 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21282 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21283 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 else
21286 ac_check_lib_save_LIBS=$LIBS
21287 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21288 cat >conftest.$ac_ext <<_ACEOF
21289 /* confdefs.h. */
21290 _ACEOF
21291 cat confdefs.h >>conftest.$ac_ext
21292 cat >>conftest.$ac_ext <<_ACEOF
21293 /* end confdefs.h. */
21294
21295 /* Override any gcc2 internal prototype to avoid an error. */
21296 #ifdef __cplusplus
21297 extern "C"
21298 #endif
21299 /* We use char because int might match the return type of a gcc2
21300 builtin and then its argument prototype would still apply. */
21301 char TIFFError ();
21302 int
21303 main ()
21304 {
21305 TIFFError ();
21306 ;
21307 return 0;
21308 }
21309 _ACEOF
21310 rm -f conftest.$ac_objext conftest$ac_exeext
21311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21312 (eval $ac_link) 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
21319 { ac_try='test -z "$ac_c_werror_flag"
21320 || test ! -s conftest.err'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest$ac_exeext'
21327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 ac_cv_lib_tiff_TIFFError=yes
21333 else
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337 ac_cv_lib_tiff_TIFFError=no
21338 fi
21339 rm -f conftest.err conftest.$ac_objext \
21340 conftest$ac_exeext conftest.$ac_ext
21341 LIBS=$ac_check_lib_save_LIBS
21342 fi
21343 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21344 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21345 if test $ac_cv_lib_tiff_TIFFError = yes; then
21346 TIFF_LINK=" -ltiff"
21347 fi
21348
21349
21350
21351 fi
21352
21353
21354
21355 if test "x$TIFF_LINK" = "x" ; then
21356 if test "$wxUSE_LIBTIFF" = "sys" ; then
21357 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21358 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21359 { (exit 1); exit 1; }; }
21360 else
21361 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21362 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21363 wxUSE_LIBTIFF=builtin
21364 fi
21365 else
21366 wxUSE_LIBTIFF=sys
21367 fi
21368 fi
21369 fi
21370
21371
21372 if test "$wxUSE_EXPAT" != "no"; then
21373 wxUSE_XML=yes
21374 cat >>confdefs.h <<\_ACEOF
21375 #define wxUSE_EXPAT 1
21376 _ACEOF
21377
21378 cat >>confdefs.h <<\_ACEOF
21379 #define wxUSE_XML 1
21380 _ACEOF
21381
21382
21383 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21384 if test "${ac_cv_header_expat_h+set}" = set; then
21385 echo "$as_me:$LINENO: checking for expat.h" >&5
21386 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21387 if test "${ac_cv_header_expat_h+set}" = set; then
21388 echo $ECHO_N "(cached) $ECHO_C" >&6
21389 fi
21390 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21391 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21392 else
21393 # Is the header compilable?
21394 echo "$as_me:$LINENO: checking expat.h usability" >&5
21395 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21396 cat >conftest.$ac_ext <<_ACEOF
21397 /* confdefs.h. */
21398 _ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 $ac_includes_default
21403 #include <expat.h>
21404 _ACEOF
21405 rm -f conftest.$ac_objext
21406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21407 (eval $ac_compile) 2>conftest.er1
21408 ac_status=$?
21409 grep -v '^ *+' conftest.er1 >conftest.err
21410 rm -f conftest.er1
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } &&
21414 { ac_try='test -z "$ac_c_werror_flag"
21415 || test ! -s conftest.err'
21416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21417 (eval $ac_try) 2>&5
21418 ac_status=$?
21419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); }; } &&
21421 { ac_try='test -s conftest.$ac_objext'
21422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423 (eval $ac_try) 2>&5
21424 ac_status=$?
21425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426 (exit $ac_status); }; }; then
21427 ac_header_compiler=yes
21428 else
21429 echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432 ac_header_compiler=no
21433 fi
21434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21436 echo "${ECHO_T}$ac_header_compiler" >&6
21437
21438 # Is the header present?
21439 echo "$as_me:$LINENO: checking expat.h presence" >&5
21440 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h. */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 #include <expat.h>
21448 _ACEOF
21449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21451 ac_status=$?
21452 grep -v '^ *+' conftest.er1 >conftest.err
21453 rm -f conftest.er1
21454 cat conftest.err >&5
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); } >/dev/null; then
21457 if test -s conftest.err; then
21458 ac_cpp_err=$ac_c_preproc_warn_flag
21459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21460 else
21461 ac_cpp_err=
21462 fi
21463 else
21464 ac_cpp_err=yes
21465 fi
21466 if test -z "$ac_cpp_err"; then
21467 ac_header_preproc=yes
21468 else
21469 echo "$as_me: failed program was:" >&5
21470 sed 's/^/| /' conftest.$ac_ext >&5
21471
21472 ac_header_preproc=no
21473 fi
21474 rm -f conftest.err conftest.$ac_ext
21475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21476 echo "${ECHO_T}$ac_header_preproc" >&6
21477
21478 # So? What about this header?
21479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21480 yes:no: )
21481 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21482 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21483 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21484 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21485 ac_header_preproc=yes
21486 ;;
21487 no:yes:* )
21488 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21489 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
21490 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21491 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21493 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21494 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21495 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21497 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21499 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
21500 (
21501 cat <<\_ASBOX
21502 ## ----------------------------------------- ##
21503 ## Report this to wx-dev@lists.wxwidgets.org ##
21504 ## ----------------------------------------- ##
21505 _ASBOX
21506 ) |
21507 sed "s/^/$as_me: WARNING: /" >&2
21508 ;;
21509 esac
21510 echo "$as_me:$LINENO: checking for expat.h" >&5
21511 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21512 if test "${ac_cv_header_expat_h+set}" = set; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21514 else
21515 ac_cv_header_expat_h=$ac_header_preproc
21516 fi
21517 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21518 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21519
21520 fi
21521 if test $ac_cv_header_expat_h = yes; then
21522 found_expat_h=1
21523 fi
21524
21525
21526 if test "x$found_expat_h" = "x1"; then
21527 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21528 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21529 if test "${wx_cv_expat_is_not_broken+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532
21533
21534
21535 ac_ext=cc
21536 ac_cpp='$CXXCPP $CPPFLAGS'
21537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21540
21541 cat >conftest.$ac_ext <<_ACEOF
21542 /* confdefs.h. */
21543 _ACEOF
21544 cat confdefs.h >>conftest.$ac_ext
21545 cat >>conftest.$ac_ext <<_ACEOF
21546 /* end confdefs.h. */
21547 #include <expat.h>
21548 int
21549 main ()
21550 {
21551
21552 ;
21553 return 0;
21554 }
21555 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21558 (eval $ac_compile) 2>conftest.er1
21559 ac_status=$?
21560 grep -v '^ *+' conftest.er1 >conftest.err
21561 rm -f conftest.er1
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } &&
21565 { ac_try='test -z "$ac_cxx_werror_flag"
21566 || test ! -s conftest.err'
21567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21568 (eval $ac_try) 2>&5
21569 ac_status=$?
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); }; } &&
21572 { ac_try='test -s conftest.$ac_objext'
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; }; then
21578 wx_cv_expat_is_not_broken=yes
21579 else
21580 echo "$as_me: failed program was:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21582
21583 wx_cv_expat_is_not_broken=no
21584
21585 fi
21586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21587 ac_ext=c
21588 ac_cpp='$CPP $CPPFLAGS'
21589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21592
21593
21594
21595 fi
21596 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21597 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21598 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21599 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21600 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21601 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21602 echo $ECHO_N "(cached) $ECHO_C" >&6
21603 else
21604 ac_check_lib_save_LIBS=$LIBS
21605 LIBS="-lexpat $LIBS"
21606 cat >conftest.$ac_ext <<_ACEOF
21607 /* confdefs.h. */
21608 _ACEOF
21609 cat confdefs.h >>conftest.$ac_ext
21610 cat >>conftest.$ac_ext <<_ACEOF
21611 /* end confdefs.h. */
21612
21613 /* Override any gcc2 internal prototype to avoid an error. */
21614 #ifdef __cplusplus
21615 extern "C"
21616 #endif
21617 /* We use char because int might match the return type of a gcc2
21618 builtin and then its argument prototype would still apply. */
21619 char XML_ParserCreate ();
21620 int
21621 main ()
21622 {
21623 XML_ParserCreate ();
21624 ;
21625 return 0;
21626 }
21627 _ACEOF
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21630 (eval $ac_link) 2>conftest.er1
21631 ac_status=$?
21632 grep -v '^ *+' conftest.er1 >conftest.err
21633 rm -f conftest.er1
21634 cat conftest.err >&5
21635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21636 (exit $ac_status); } &&
21637 { ac_try='test -z "$ac_c_werror_flag"
21638 || test ! -s conftest.err'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; } &&
21644 { ac_try='test -s conftest$ac_exeext'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21647 ac_status=$?
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_cv_lib_expat_XML_ParserCreate=yes
21651 else
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_cv_lib_expat_XML_ParserCreate=no
21656 fi
21657 rm -f conftest.err conftest.$ac_objext \
21658 conftest$ac_exeext conftest.$ac_ext
21659 LIBS=$ac_check_lib_save_LIBS
21660 fi
21661 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21662 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21663 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21664 EXPAT_LINK=" -lexpat"
21665 fi
21666
21667 fi
21668 fi
21669 if test "x$EXPAT_LINK" = "x" ; then
21670 if test "$wxUSE_EXPAT" = "sys" ; then
21671 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21672 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21673 { (exit 1); exit 1; }; }
21674 else
21675 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21676 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21677 wxUSE_EXPAT=builtin
21678 fi
21679 else
21680 wxUSE_EXPAT=sys
21681 fi
21682 fi
21683 if test "$wxUSE_EXPAT" = "builtin" ; then
21684
21685
21686 subdirs="$subdirs src/expat"
21687
21688 fi
21689 fi
21690
21691
21692
21693 if test "$wxUSE_LIBMSPACK" != "no"; then
21694
21695 if test "${ac_cv_header_mspack_h+set}" = set; then
21696 echo "$as_me:$LINENO: checking for mspack.h" >&5
21697 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21698 if test "${ac_cv_header_mspack_h+set}" = set; then
21699 echo $ECHO_N "(cached) $ECHO_C" >&6
21700 fi
21701 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21702 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21703 else
21704 # Is the header compilable?
21705 echo "$as_me:$LINENO: checking mspack.h usability" >&5
21706 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21707 cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h. */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 $ac_includes_default
21714 #include <mspack.h>
21715 _ACEOF
21716 rm -f conftest.$ac_objext
21717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21718 (eval $ac_compile) 2>conftest.er1
21719 ac_status=$?
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } &&
21725 { ac_try='test -z "$ac_c_werror_flag"
21726 || test ! -s conftest.err'
21727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21728 (eval $ac_try) 2>&5
21729 ac_status=$?
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); }; } &&
21732 { ac_try='test -s conftest.$ac_objext'
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; }; then
21738 ac_header_compiler=yes
21739 else
21740 echo "$as_me: failed program was:" >&5
21741 sed 's/^/| /' conftest.$ac_ext >&5
21742
21743 ac_header_compiler=no
21744 fi
21745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21747 echo "${ECHO_T}$ac_header_compiler" >&6
21748
21749 # Is the header present?
21750 echo "$as_me:$LINENO: checking mspack.h presence" >&5
21751 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21752 cat >conftest.$ac_ext <<_ACEOF
21753 /* confdefs.h. */
21754 _ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21758 #include <mspack.h>
21759 _ACEOF
21760 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21762 ac_status=$?
21763 grep -v '^ *+' conftest.er1 >conftest.err
21764 rm -f conftest.er1
21765 cat conftest.err >&5
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); } >/dev/null; then
21768 if test -s conftest.err; then
21769 ac_cpp_err=$ac_c_preproc_warn_flag
21770 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21771 else
21772 ac_cpp_err=
21773 fi
21774 else
21775 ac_cpp_err=yes
21776 fi
21777 if test -z "$ac_cpp_err"; then
21778 ac_header_preproc=yes
21779 else
21780 echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 ac_header_preproc=no
21784 fi
21785 rm -f conftest.err conftest.$ac_ext
21786 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21787 echo "${ECHO_T}$ac_header_preproc" >&6
21788
21789 # So? What about this header?
21790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21791 yes:no: )
21792 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21793 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21795 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21796 ac_header_preproc=yes
21797 ;;
21798 no:yes:* )
21799 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21800 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21801 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21802 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21803 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21804 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21805 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21806 echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
21807 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21808 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21809 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21810 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21811 (
21812 cat <<\_ASBOX
21813 ## ----------------------------------------- ##
21814 ## Report this to wx-dev@lists.wxwidgets.org ##
21815 ## ----------------------------------------- ##
21816 _ASBOX
21817 ) |
21818 sed "s/^/$as_me: WARNING: /" >&2
21819 ;;
21820 esac
21821 echo "$as_me:$LINENO: checking for mspack.h" >&5
21822 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21823 if test "${ac_cv_header_mspack_h+set}" = set; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 else
21826 ac_cv_header_mspack_h=$ac_header_preproc
21827 fi
21828 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21829 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21830
21831 fi
21832 if test $ac_cv_header_mspack_h = yes; then
21833 found_mspack_h=1
21834 fi
21835
21836
21837 if test "x$found_mspack_h" = "x1"; then
21838 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21839 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21840 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21841 echo $ECHO_N "(cached) $ECHO_C" >&6
21842 else
21843 ac_check_lib_save_LIBS=$LIBS
21844 LIBS="-lmspack $LIBS"
21845 cat >conftest.$ac_ext <<_ACEOF
21846 /* confdefs.h. */
21847 _ACEOF
21848 cat confdefs.h >>conftest.$ac_ext
21849 cat >>conftest.$ac_ext <<_ACEOF
21850 /* end confdefs.h. */
21851
21852 /* Override any gcc2 internal prototype to avoid an error. */
21853 #ifdef __cplusplus
21854 extern "C"
21855 #endif
21856 /* We use char because int might match the return type of a gcc2
21857 builtin and then its argument prototype would still apply. */
21858 char mspack_create_chm_decompressor ();
21859 int
21860 main ()
21861 {
21862 mspack_create_chm_decompressor ();
21863 ;
21864 return 0;
21865 }
21866 _ACEOF
21867 rm -f conftest.$ac_objext conftest$ac_exeext
21868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21869 (eval $ac_link) 2>conftest.er1
21870 ac_status=$?
21871 grep -v '^ *+' conftest.er1 >conftest.err
21872 rm -f conftest.er1
21873 cat conftest.err >&5
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); } &&
21876 { ac_try='test -z "$ac_c_werror_flag"
21877 || test ! -s conftest.err'
21878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21880 ac_status=$?
21881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882 (exit $ac_status); }; } &&
21883 { ac_try='test -s conftest$ac_exeext'
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; }; then
21889 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21890 else
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21893
21894 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21895 fi
21896 rm -f conftest.err conftest.$ac_objext \
21897 conftest$ac_exeext conftest.$ac_ext
21898 LIBS=$ac_check_lib_save_LIBS
21899 fi
21900 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21901 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21902 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21903 MSPACK_LINK=" -lmspack"
21904 fi
21905
21906 fi
21907 if test "x$MSPACK_LINK" = "x" ; then
21908 wxUSE_LIBMSPACK=no
21909 else
21910 cat >>confdefs.h <<\_ACEOF
21911 #define wxUSE_LIBMSPACK 1
21912 _ACEOF
21913
21914 fi
21915 fi
21916
21917
21918
21919 AFMINSTALL=
21920 WIN32INSTALL=
21921
21922 TOOLKIT=
21923 TOOLKIT_INCLUDE=
21924 WIDGET_SET=
21925
21926 if test "$USE_WIN32" = 1 ; then
21927
21928 for ac_header in w32api.h
21929 do
21930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21932 echo "$as_me:$LINENO: checking for $ac_header" >&5
21933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21935 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 fi
21937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21939 else
21940 # Is the header compilable?
21941 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21942 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21943 cat >conftest.$ac_ext <<_ACEOF
21944 /* confdefs.h. */
21945 _ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 $ac_includes_default
21950 #include <$ac_header>
21951 _ACEOF
21952 rm -f conftest.$ac_objext
21953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21954 (eval $ac_compile) 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
21961 { ac_try='test -z "$ac_c_werror_flag"
21962 || test ! -s conftest.err'
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; } &&
21968 { ac_try='test -s conftest.$ac_objext'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
21974 ac_header_compiler=yes
21975 else
21976 echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979 ac_header_compiler=no
21980 fi
21981 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21983 echo "${ECHO_T}$ac_header_compiler" >&6
21984
21985 # Is the header present?
21986 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21987 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21988 cat >conftest.$ac_ext <<_ACEOF
21989 /* confdefs.h. */
21990 _ACEOF
21991 cat confdefs.h >>conftest.$ac_ext
21992 cat >>conftest.$ac_ext <<_ACEOF
21993 /* end confdefs.h. */
21994 #include <$ac_header>
21995 _ACEOF
21996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21998 ac_status=$?
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } >/dev/null; then
22004 if test -s conftest.err; then
22005 ac_cpp_err=$ac_c_preproc_warn_flag
22006 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22007 else
22008 ac_cpp_err=
22009 fi
22010 else
22011 ac_cpp_err=yes
22012 fi
22013 if test -z "$ac_cpp_err"; then
22014 ac_header_preproc=yes
22015 else
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_header_preproc=no
22020 fi
22021 rm -f conftest.err conftest.$ac_ext
22022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22023 echo "${ECHO_T}$ac_header_preproc" >&6
22024
22025 # So? What about this header?
22026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22027 yes:no: )
22028 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22029 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22031 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22032 ac_header_preproc=yes
22033 ;;
22034 no:yes:* )
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22039 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22040 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22042 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22044 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22045 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22046 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22047 (
22048 cat <<\_ASBOX
22049 ## ----------------------------------------- ##
22050 ## Report this to wx-dev@lists.wxwidgets.org ##
22051 ## ----------------------------------------- ##
22052 _ASBOX
22053 ) |
22054 sed "s/^/$as_me: WARNING: /" >&2
22055 ;;
22056 esac
22057 echo "$as_me:$LINENO: checking for $ac_header" >&5
22058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062 eval "$as_ac_Header=\$ac_header_preproc"
22063 fi
22064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22065 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22066
22067 fi
22068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22069 cat >>confdefs.h <<_ACEOF
22070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22071 _ACEOF
22072
22073 fi
22074
22075 done
22076
22077 if test "${ac_cv_header_windows_h+set}" = set; then
22078 echo "$as_me:$LINENO: checking for windows.h" >&5
22079 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22080 if test "${ac_cv_header_windows_h+set}" = set; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22082 fi
22083 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22084 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22085 else
22086 # Is the header compilable?
22087 echo "$as_me:$LINENO: checking windows.h usability" >&5
22088 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22089 cat >conftest.$ac_ext <<_ACEOF
22090 /* confdefs.h. */
22091 _ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 $ac_includes_default
22096 #include <windows.h>
22097 _ACEOF
22098 rm -f conftest.$ac_objext
22099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22100 (eval $ac_compile) 2>conftest.er1
22101 ac_status=$?
22102 grep -v '^ *+' conftest.er1 >conftest.err
22103 rm -f conftest.er1
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } &&
22107 { ac_try='test -z "$ac_c_werror_flag"
22108 || test ! -s conftest.err'
22109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110 (eval $ac_try) 2>&5
22111 ac_status=$?
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); }; } &&
22114 { ac_try='test -s conftest.$ac_objext'
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; }; then
22120 ac_header_compiler=yes
22121 else
22122 echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22124
22125 ac_header_compiler=no
22126 fi
22127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22129 echo "${ECHO_T}$ac_header_compiler" >&6
22130
22131 # Is the header present?
22132 echo "$as_me:$LINENO: checking windows.h presence" >&5
22133 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h. */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 #include <windows.h>
22141 _ACEOF
22142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22144 ac_status=$?
22145 grep -v '^ *+' conftest.er1 >conftest.err
22146 rm -f conftest.er1
22147 cat conftest.err >&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } >/dev/null; then
22150 if test -s conftest.err; then
22151 ac_cpp_err=$ac_c_preproc_warn_flag
22152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22153 else
22154 ac_cpp_err=
22155 fi
22156 else
22157 ac_cpp_err=yes
22158 fi
22159 if test -z "$ac_cpp_err"; then
22160 ac_header_preproc=yes
22161 else
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165 ac_header_preproc=no
22166 fi
22167 rm -f conftest.err conftest.$ac_ext
22168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22169 echo "${ECHO_T}$ac_header_preproc" >&6
22170
22171 # So? What about this header?
22172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22173 yes:no: )
22174 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22175 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22176 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22177 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22178 ac_header_preproc=yes
22179 ;;
22180 no:yes:* )
22181 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22182 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
22183 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22184 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22185 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22186 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22187 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22188 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
22189 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22190 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22192 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
22193 (
22194 cat <<\_ASBOX
22195 ## ----------------------------------------- ##
22196 ## Report this to wx-dev@lists.wxwidgets.org ##
22197 ## ----------------------------------------- ##
22198 _ASBOX
22199 ) |
22200 sed "s/^/$as_me: WARNING: /" >&2
22201 ;;
22202 esac
22203 echo "$as_me:$LINENO: checking for windows.h" >&5
22204 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22205 if test "${ac_cv_header_windows_h+set}" = set; then
22206 echo $ECHO_N "(cached) $ECHO_C" >&6
22207 else
22208 ac_cv_header_windows_h=$ac_header_preproc
22209 fi
22210 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22211 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22212
22213 fi
22214 if test $ac_cv_header_windows_h = yes; then
22215 :
22216 else
22217
22218 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22219 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22220 { (exit 1); exit 1; }; }
22221
22222 fi
22223
22224
22225
22226 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22227
22228 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22229 LIBS="$LIBS -loleacc"
22230 fi
22231
22232 case "${host}" in
22233 *-*-cygwin* )
22234 LIBS="$LIBS -lkernel32 -luser32"
22235 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22236 esac
22237
22238 if test "$wxUSE_ODBC" = "sys" ; then
22239 wxUSE_ODBC = "yes"
22240 fi
22241 if test "$wxUSE_ODBC" = "yes" ; then
22242 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22243 cat >>confdefs.h <<\_ACEOF
22244 #define wxUSE_ODBC 1
22245 _ACEOF
22246
22247 fi
22248
22249 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22250 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22251
22252 WIN32INSTALL=win32install
22253 fi
22254
22255 if test "$wxUSE_GUI" = "yes"; then
22256 USE_GUI=1
22257
22258 GUI_TK_LIBRARY=
22259
22260 WXGTK12=
22261 WXGTK127=
22262 WXGTK20=
22263 WXGPE=
22264
22265 if test "$wxUSE_MSW" = 1 ; then
22266 TOOLKIT=MSW
22267 GUIDIST=MSW_DIST
22268
22269 case "${host}" in
22270 *-*-mingw32* )
22271 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22272 esac
22273 fi
22274
22275 if test "$wxUSE_GTK" = 1; then
22276 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22277 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22278
22279 gtk_version_cached=1
22280 if test "${wx_cv_lib_gtk+set}" = set; then
22281 echo $ECHO_N "(cached) $ECHO_C" >&6
22282 else
22283
22284 gtk_version_cached=0
22285 echo "$as_me:$LINENO: result: " >&5
22286 echo "${ECHO_T}" >&6
22287
22288 GTK_MODULES=
22289 if test "$wxUSE_THREADS" = "yes"; then
22290 GTK_MODULES=gthread
22291 fi
22292
22293 wx_cv_lib_gtk=
22294 if test "x$wxUSE_GTK2" = "xyes"; then
22295 # Check whether --enable-gtktest or --disable-gtktest was given.
22296 if test "${enable_gtktest+set}" = set; then
22297 enableval="$enable_gtktest"
22298
22299 else
22300 enable_gtktest=yes
22301 fi;
22302
22303 pkg_config_args=gtk+-2.0
22304 for module in . $GTK_MODULES
22305 do
22306 case "$module" in
22307 gthread)
22308 pkg_config_args="$pkg_config_args gthread-2.0"
22309 ;;
22310 esac
22311 done
22312
22313 no_gtk=""
22314
22315 # Extract the first word of "pkg-config", so it can be a program name with args.
22316 set dummy pkg-config; ac_word=$2
22317 echo "$as_me:$LINENO: checking for $ac_word" >&5
22318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 else
22322 case $PKG_CONFIG in
22323 [\\/]* | ?:[\\/]*)
22324 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22325 ;;
22326 *)
22327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22328 for as_dir in $PATH
22329 do
22330 IFS=$as_save_IFS
22331 test -z "$as_dir" && as_dir=.
22332 for ac_exec_ext in '' $ac_executable_extensions; do
22333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22334 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22336 break 2
22337 fi
22338 done
22339 done
22340
22341 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22342 ;;
22343 esac
22344 fi
22345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22346
22347 if test -n "$PKG_CONFIG"; then
22348 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22349 echo "${ECHO_T}$PKG_CONFIG" >&6
22350 else
22351 echo "$as_me:$LINENO: result: no" >&5
22352 echo "${ECHO_T}no" >&6
22353 fi
22354
22355
22356 if test x$PKG_CONFIG != xno ; then
22357 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22358 :
22359 else
22360 echo "*** pkg-config too old; version 0.7 or better required."
22361 no_gtk=yes
22362 PKG_CONFIG=no
22363 fi
22364 else
22365 no_gtk=yes
22366 fi
22367
22368 min_gtk_version=2.0.0
22369 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22370 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22371
22372 if test x$PKG_CONFIG != xno ; then
22373 ## don't try to run the test against uninstalled libtool libs
22374 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22375 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22376 enable_gtktest=no
22377 fi
22378
22379 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22380 :
22381 else
22382 no_gtk=yes
22383 fi
22384 fi
22385
22386 if test x"$no_gtk" = x ; then
22387 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22388 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22389 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22390 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22391 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22392 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22393 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22394 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22395 if test "x$enable_gtktest" = "xyes" ; then
22396 ac_save_CFLAGS="$CFLAGS"
22397 ac_save_LIBS="$LIBS"
22398 CFLAGS="$CFLAGS $GTK_CFLAGS"
22399 LIBS="$GTK_LIBS $LIBS"
22400 rm -f conf.gtktest
22401 if test "$cross_compiling" = yes; then
22402 echo $ac_n "cross compiling; assumed OK... $ac_c"
22403 else
22404 cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h. */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410
22411 #include <gtk/gtk.h>
22412 #include <stdio.h>
22413 #include <stdlib.h>
22414
22415 int
22416 main ()
22417 {
22418 int major, minor, micro;
22419 char *tmp_version;
22420
22421 system ("touch conf.gtktest");
22422
22423 /* HP/UX 9 (%@#!) writes to sscanf strings */
22424 tmp_version = g_strdup("$min_gtk_version");
22425 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22426 printf("%s, bad version string\n", "$min_gtk_version");
22427 exit(1);
22428 }
22429
22430 if ((gtk_major_version != $gtk_config_major_version) ||
22431 (gtk_minor_version != $gtk_config_minor_version) ||
22432 (gtk_micro_version != $gtk_config_micro_version))
22433 {
22434 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22435 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22436 gtk_major_version, gtk_minor_version, gtk_micro_version);
22437 printf ("*** was found! If pkg-config was correct, then it is best\n");
22438 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22439 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22440 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22441 printf("*** required on your system.\n");
22442 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22443 printf("*** to point to the correct configuration files\n");
22444 }
22445 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22446 (gtk_minor_version != GTK_MINOR_VERSION) ||
22447 (gtk_micro_version != GTK_MICRO_VERSION))
22448 {
22449 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22450 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22451 printf("*** library (version %d.%d.%d)\n",
22452 gtk_major_version, gtk_minor_version, gtk_micro_version);
22453 }
22454 else
22455 {
22456 if ((gtk_major_version > major) ||
22457 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22458 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22459 {
22460 return 0;
22461 }
22462 else
22463 {
22464 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22465 gtk_major_version, gtk_minor_version, gtk_micro_version);
22466 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22467 major, minor, micro);
22468 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22469 printf("***\n");
22470 printf("*** If you have already installed a sufficiently new version, this error\n");
22471 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22472 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22473 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22474 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22475 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22476 printf("*** so that the correct libraries are found at run-time))\n");
22477 }
22478 }
22479 return 1;
22480 }
22481
22482 _ACEOF
22483 rm -f conftest$ac_exeext
22484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22485 (eval $ac_link) 2>&5
22486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 (eval $ac_try) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); }; }; then
22494 :
22495 else
22496 echo "$as_me: program exited with status $ac_status" >&5
22497 echo "$as_me: failed program was:" >&5
22498 sed 's/^/| /' conftest.$ac_ext >&5
22499
22500 ( exit $ac_status )
22501 no_gtk=yes
22502 fi
22503 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22504 fi
22505 CFLAGS="$ac_save_CFLAGS"
22506 LIBS="$ac_save_LIBS"
22507 fi
22508 fi
22509 if test "x$no_gtk" = x ; then
22510 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22511 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22512 wx_cv_lib_gtk=2.0
22513 else
22514 echo "$as_me:$LINENO: result: no" >&5
22515 echo "${ECHO_T}no" >&6
22516 if test "$PKG_CONFIG" = "no" ; then
22517 echo "*** A new enough version of pkg-config was not found."
22518 echo "*** See http://pkgconfig.sourceforge.net"
22519 else
22520 if test -f conf.gtktest ; then
22521 :
22522 else
22523 echo "*** Could not run GTK+ test program, checking why..."
22524 ac_save_CFLAGS="$CFLAGS"
22525 ac_save_LIBS="$LIBS"
22526 CFLAGS="$CFLAGS $GTK_CFLAGS"
22527 LIBS="$LIBS $GTK_LIBS"
22528 cat >conftest.$ac_ext <<_ACEOF
22529 /* confdefs.h. */
22530 _ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22534
22535 #include <gtk/gtk.h>
22536 #include <stdio.h>
22537
22538 int
22539 main ()
22540 {
22541 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22542 ;
22543 return 0;
22544 }
22545 _ACEOF
22546 rm -f conftest.$ac_objext conftest$ac_exeext
22547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22548 (eval $ac_link) 2>conftest.er1
22549 ac_status=$?
22550 grep -v '^ *+' conftest.er1 >conftest.err
22551 rm -f conftest.er1
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); } &&
22555 { ac_try='test -z "$ac_c_werror_flag"
22556 || test ! -s conftest.err'
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; } &&
22562 { ac_try='test -s conftest$ac_exeext'
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 echo "*** The test program compiled, but did not run. This usually means"
22569 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22570 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22571 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22572 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22573 echo "*** is required on your system"
22574 echo "***"
22575 echo "*** If you have an old version installed, it is best to remove it, although"
22576 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22577 else
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581 echo "*** The test program failed to compile or link. See the file config.log for the"
22582 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22583 fi
22584 rm -f conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
22586 CFLAGS="$ac_save_CFLAGS"
22587 LIBS="$ac_save_LIBS"
22588 fi
22589 fi
22590 GTK_CFLAGS=""
22591 GTK_LIBS=""
22592 :
22593 fi
22594
22595
22596 rm -f conf.gtktest
22597
22598 else
22599
22600 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22601 if test "${with_gtk_prefix+set}" = set; then
22602 withval="$with_gtk_prefix"
22603 gtk_config_prefix="$withval"
22604 else
22605 gtk_config_prefix=""
22606 fi;
22607
22608 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22609 if test "${with_gtk_exec_prefix+set}" = set; then
22610 withval="$with_gtk_exec_prefix"
22611 gtk_config_exec_prefix="$withval"
22612 else
22613 gtk_config_exec_prefix=""
22614 fi;
22615 # Check whether --enable-gtktest or --disable-gtktest was given.
22616 if test "${enable_gtktest+set}" = set; then
22617 enableval="$enable_gtktest"
22618
22619 else
22620 enable_gtktest=yes
22621 fi;
22622
22623 for module in . $GTK_MODULES
22624 do
22625 case "$module" in
22626 gthread)
22627 gtk_config_args="$gtk_config_args gthread"
22628 ;;
22629 esac
22630 done
22631
22632 if test x$gtk_config_exec_prefix != x ; then
22633 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22634 if test x${GTK_CONFIG+set} != xset ; then
22635 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22636 fi
22637 fi
22638 if test x$gtk_config_prefix != x ; then
22639 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22640 if test x${GTK_CONFIG+set} != xset ; then
22641 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22642 fi
22643 fi
22644
22645 # Extract the first word of "gtk-config", so it can be a program name with args.
22646 set dummy gtk-config; ac_word=$2
22647 echo "$as_me:$LINENO: checking for $ac_word" >&5
22648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22649 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 case $GTK_CONFIG in
22653 [\\/]* | ?:[\\/]*)
22654 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22655 ;;
22656 *)
22657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22658 for as_dir in $PATH
22659 do
22660 IFS=$as_save_IFS
22661 test -z "$as_dir" && as_dir=.
22662 for ac_exec_ext in '' $ac_executable_extensions; do
22663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22664 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22666 break 2
22667 fi
22668 done
22669 done
22670
22671 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22672 ;;
22673 esac
22674 fi
22675 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22676
22677 if test -n "$GTK_CONFIG"; then
22678 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22679 echo "${ECHO_T}$GTK_CONFIG" >&6
22680 else
22681 echo "$as_me:$LINENO: result: no" >&5
22682 echo "${ECHO_T}no" >&6
22683 fi
22684
22685 min_gtk_version=1.2.7
22686 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22687 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22688 no_gtk=""
22689 if test "$GTK_CONFIG" = "no" ; then
22690 no_gtk=yes
22691 else
22692 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22693 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22694 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22695 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22696 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22697 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22698 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22699 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22700 if test "x$enable_gtktest" = "xyes" ; then
22701 ac_save_CFLAGS="$CFLAGS"
22702 ac_save_LIBS="$LIBS"
22703 CFLAGS="$CFLAGS $GTK_CFLAGS"
22704 LIBS="$GTK_LIBS $LIBS"
22705 rm -f conf.gtktest
22706 if test "$cross_compiling" = yes; then
22707 echo $ac_n "cross compiling; assumed OK... $ac_c"
22708 else
22709 cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h. */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h. */
22715
22716 #include <gtk/gtk.h>
22717 #include <stdio.h>
22718 #include <stdlib.h>
22719
22720 int
22721 main ()
22722 {
22723 int major, minor, micro;
22724 char *tmp_version;
22725
22726 system ("touch conf.gtktest");
22727
22728 /* HP/UX 9 (%@#!) writes to sscanf strings */
22729 tmp_version = g_strdup("$min_gtk_version");
22730 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22731 printf("%s, bad version string\n", "$min_gtk_version");
22732 exit(1);
22733 }
22734
22735 if ((gtk_major_version != $gtk_config_major_version) ||
22736 (gtk_minor_version != $gtk_config_minor_version) ||
22737 (gtk_micro_version != $gtk_config_micro_version))
22738 {
22739 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22740 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22741 gtk_major_version, gtk_minor_version, gtk_micro_version);
22742 printf ("*** was found! If gtk-config was correct, then it is best\n");
22743 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22744 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22745 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22746 printf("*** required on your system.\n");
22747 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22748 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22749 printf("*** before re-running configure\n");
22750 }
22751 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22752 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22753 (gtk_minor_version != GTK_MINOR_VERSION) ||
22754 (gtk_micro_version != GTK_MICRO_VERSION))
22755 {
22756 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22757 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22758 printf("*** library (version %d.%d.%d)\n",
22759 gtk_major_version, gtk_minor_version, gtk_micro_version);
22760 }
22761 #endif /* defined (GTK_MAJOR_VERSION) ... */
22762 else
22763 {
22764 if ((gtk_major_version > major) ||
22765 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22766 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22767 {
22768 return 0;
22769 }
22770 else
22771 {
22772 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22773 gtk_major_version, gtk_minor_version, gtk_micro_version);
22774 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22775 major, minor, micro);
22776 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22777 printf("***\n");
22778 printf("*** If you have already installed a sufficiently new version, this error\n");
22779 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22780 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22781 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22782 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22783 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22784 printf("*** so that the correct libraries are found at run-time))\n");
22785 }
22786 }
22787 return 1;
22788 }
22789
22790 _ACEOF
22791 rm -f conftest$ac_exeext
22792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22793 (eval $ac_link) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22798 (eval $ac_try) 2>&5
22799 ac_status=$?
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); }; }; then
22802 :
22803 else
22804 echo "$as_me: program exited with status $ac_status" >&5
22805 echo "$as_me: failed program was:" >&5
22806 sed 's/^/| /' conftest.$ac_ext >&5
22807
22808 ( exit $ac_status )
22809 no_gtk=yes
22810 fi
22811 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22812 fi
22813 CFLAGS="$ac_save_CFLAGS"
22814 LIBS="$ac_save_LIBS"
22815 fi
22816 fi
22817 if test "x$no_gtk" = x ; then
22818 echo "$as_me:$LINENO: result: yes" >&5
22819 echo "${ECHO_T}yes" >&6
22820 wx_cv_lib_gtk=1.2.7
22821 else
22822 echo "$as_me:$LINENO: result: no" >&5
22823 echo "${ECHO_T}no" >&6
22824 if test "$GTK_CONFIG" = "no" ; then
22825 echo "*** The gtk-config script installed by GTK could not be found"
22826 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22827 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22828 echo "*** full path to gtk-config."
22829 else
22830 if test -f conf.gtktest ; then
22831 :
22832 else
22833 echo "*** Could not run GTK test program, checking why..."
22834 CFLAGS="$CFLAGS $GTK_CFLAGS"
22835 LIBS="$LIBS $GTK_LIBS"
22836 cat >conftest.$ac_ext <<_ACEOF
22837 /* confdefs.h. */
22838 _ACEOF
22839 cat confdefs.h >>conftest.$ac_ext
22840 cat >>conftest.$ac_ext <<_ACEOF
22841 /* end confdefs.h. */
22842
22843 #include <gtk/gtk.h>
22844 #include <stdio.h>
22845
22846 int
22847 main ()
22848 {
22849 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22850 ;
22851 return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext conftest$ac_exeext
22855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22856 (eval $ac_link) 2>conftest.er1
22857 ac_status=$?
22858 grep -v '^ *+' conftest.er1 >conftest.err
22859 rm -f conftest.er1
22860 cat conftest.err >&5
22861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862 (exit $ac_status); } &&
22863 { ac_try='test -z "$ac_c_werror_flag"
22864 || test ! -s conftest.err'
22865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866 (eval $ac_try) 2>&5
22867 ac_status=$?
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); }; } &&
22870 { ac_try='test -s conftest$ac_exeext'
22871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22872 (eval $ac_try) 2>&5
22873 ac_status=$?
22874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22875 (exit $ac_status); }; }; then
22876 echo "*** The test program compiled, but did not run. This usually means"
22877 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22878 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22879 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22880 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22881 echo "*** is required on your system"
22882 echo "***"
22883 echo "*** If you have an old version installed, it is best to remove it, although"
22884 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22885 echo "***"
22886 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22887 echo "*** came with the system with the command"
22888 echo "***"
22889 echo "*** rpm --erase --nodeps gtk gtk-devel"
22890 else
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22893
22894 echo "*** The test program failed to compile or link. See the file config.log for the"
22895 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22896 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22897 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22898 fi
22899 rm -f conftest.err conftest.$ac_objext \
22900 conftest$ac_exeext conftest.$ac_ext
22901 CFLAGS="$ac_save_CFLAGS"
22902 LIBS="$ac_save_LIBS"
22903 fi
22904 fi
22905 GTK_CFLAGS=""
22906 GTK_LIBS=""
22907 :
22908 fi
22909
22910
22911 rm -f conf.gtktest
22912
22913
22914 if test -z "$wx_cv_lib_gtk"; then
22915
22916 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22917 if test "${with_gtk_prefix+set}" = set; then
22918 withval="$with_gtk_prefix"
22919 gtk_config_prefix="$withval"
22920 else
22921 gtk_config_prefix=""
22922 fi;
22923
22924 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22925 if test "${with_gtk_exec_prefix+set}" = set; then
22926 withval="$with_gtk_exec_prefix"
22927 gtk_config_exec_prefix="$withval"
22928 else
22929 gtk_config_exec_prefix=""
22930 fi;
22931 # Check whether --enable-gtktest or --disable-gtktest was given.
22932 if test "${enable_gtktest+set}" = set; then
22933 enableval="$enable_gtktest"
22934
22935 else
22936 enable_gtktest=yes
22937 fi;
22938
22939 for module in . $GTK_MODULES
22940 do
22941 case "$module" in
22942 gthread)
22943 gtk_config_args="$gtk_config_args gthread"
22944 ;;
22945 esac
22946 done
22947
22948 if test x$gtk_config_exec_prefix != x ; then
22949 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22950 if test x${GTK_CONFIG+set} != xset ; then
22951 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22952 fi
22953 fi
22954 if test x$gtk_config_prefix != x ; then
22955 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22956 if test x${GTK_CONFIG+set} != xset ; then
22957 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22958 fi
22959 fi
22960
22961 # Extract the first word of "gtk-config", so it can be a program name with args.
22962 set dummy gtk-config; ac_word=$2
22963 echo "$as_me:$LINENO: checking for $ac_word" >&5
22964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22965 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22966 echo $ECHO_N "(cached) $ECHO_C" >&6
22967 else
22968 case $GTK_CONFIG in
22969 [\\/]* | ?:[\\/]*)
22970 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22971 ;;
22972 *)
22973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22974 for as_dir in $PATH
22975 do
22976 IFS=$as_save_IFS
22977 test -z "$as_dir" && as_dir=.
22978 for ac_exec_ext in '' $ac_executable_extensions; do
22979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22980 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22982 break 2
22983 fi
22984 done
22985 done
22986
22987 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22988 ;;
22989 esac
22990 fi
22991 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22992
22993 if test -n "$GTK_CONFIG"; then
22994 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22995 echo "${ECHO_T}$GTK_CONFIG" >&6
22996 else
22997 echo "$as_me:$LINENO: result: no" >&5
22998 echo "${ECHO_T}no" >&6
22999 fi
23000
23001 min_gtk_version=1.2.3
23002 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23003 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23004 no_gtk=""
23005 if test "$GTK_CONFIG" = "no" ; then
23006 no_gtk=yes
23007 else
23008 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23009 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23010 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23011 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23012 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23013 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23014 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23015 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23016 if test "x$enable_gtktest" = "xyes" ; then
23017 ac_save_CFLAGS="$CFLAGS"
23018 ac_save_LIBS="$LIBS"
23019 CFLAGS="$CFLAGS $GTK_CFLAGS"
23020 LIBS="$GTK_LIBS $LIBS"
23021 rm -f conf.gtktest
23022 if test "$cross_compiling" = yes; then
23023 echo $ac_n "cross compiling; assumed OK... $ac_c"
23024 else
23025 cat >conftest.$ac_ext <<_ACEOF
23026 /* confdefs.h. */
23027 _ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031
23032 #include <gtk/gtk.h>
23033 #include <stdio.h>
23034 #include <stdlib.h>
23035
23036 int
23037 main ()
23038 {
23039 int major, minor, micro;
23040 char *tmp_version;
23041
23042 system ("touch conf.gtktest");
23043
23044 /* HP/UX 9 (%@#!) writes to sscanf strings */
23045 tmp_version = g_strdup("$min_gtk_version");
23046 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23047 printf("%s, bad version string\n", "$min_gtk_version");
23048 exit(1);
23049 }
23050
23051 if ((gtk_major_version != $gtk_config_major_version) ||
23052 (gtk_minor_version != $gtk_config_minor_version) ||
23053 (gtk_micro_version != $gtk_config_micro_version))
23054 {
23055 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23056 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23057 gtk_major_version, gtk_minor_version, gtk_micro_version);
23058 printf ("*** was found! If gtk-config was correct, then it is best\n");
23059 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23060 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23061 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23062 printf("*** required on your system.\n");
23063 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23064 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23065 printf("*** before re-running configure\n");
23066 }
23067 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23068 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23069 (gtk_minor_version != GTK_MINOR_VERSION) ||
23070 (gtk_micro_version != GTK_MICRO_VERSION))
23071 {
23072 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23073 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23074 printf("*** library (version %d.%d.%d)\n",
23075 gtk_major_version, gtk_minor_version, gtk_micro_version);
23076 }
23077 #endif /* defined (GTK_MAJOR_VERSION) ... */
23078 else
23079 {
23080 if ((gtk_major_version > major) ||
23081 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23082 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23083 {
23084 return 0;
23085 }
23086 else
23087 {
23088 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23089 gtk_major_version, gtk_minor_version, gtk_micro_version);
23090 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23091 major, minor, micro);
23092 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23093 printf("***\n");
23094 printf("*** If you have already installed a sufficiently new version, this error\n");
23095 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23096 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23097 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23098 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23099 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23100 printf("*** so that the correct libraries are found at run-time))\n");
23101 }
23102 }
23103 return 1;
23104 }
23105
23106 _ACEOF
23107 rm -f conftest$ac_exeext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109 (eval $ac_link) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 :
23119 else
23120 echo "$as_me: program exited with status $ac_status" >&5
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23123
23124 ( exit $ac_status )
23125 no_gtk=yes
23126 fi
23127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23128 fi
23129 CFLAGS="$ac_save_CFLAGS"
23130 LIBS="$ac_save_LIBS"
23131 fi
23132 fi
23133 if test "x$no_gtk" = x ; then
23134 echo "$as_me:$LINENO: result: yes" >&5
23135 echo "${ECHO_T}yes" >&6
23136 wx_cv_lib_gtk=1.2.3
23137 else
23138 echo "$as_me:$LINENO: result: no" >&5
23139 echo "${ECHO_T}no" >&6
23140 if test "$GTK_CONFIG" = "no" ; then
23141 echo "*** The gtk-config script installed by GTK could not be found"
23142 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23143 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23144 echo "*** full path to gtk-config."
23145 else
23146 if test -f conf.gtktest ; then
23147 :
23148 else
23149 echo "*** Could not run GTK test program, checking why..."
23150 CFLAGS="$CFLAGS $GTK_CFLAGS"
23151 LIBS="$LIBS $GTK_LIBS"
23152 cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h. */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h. */
23158
23159 #include <gtk/gtk.h>
23160 #include <stdio.h>
23161
23162 int
23163 main ()
23164 {
23165 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23166 ;
23167 return 0;
23168 }
23169 _ACEOF
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>conftest.er1
23173 ac_status=$?
23174 grep -v '^ *+' conftest.er1 >conftest.err
23175 rm -f conftest.er1
23176 cat conftest.err >&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); } &&
23179 { ac_try='test -z "$ac_c_werror_flag"
23180 || test ! -s conftest.err'
23181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23182 (eval $ac_try) 2>&5
23183 ac_status=$?
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); }; } &&
23186 { ac_try='test -s conftest$ac_exeext'
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23189 ac_status=$?
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; }; then
23192 echo "*** The test program compiled, but did not run. This usually means"
23193 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23194 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23195 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23196 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23197 echo "*** is required on your system"
23198 echo "***"
23199 echo "*** If you have an old version installed, it is best to remove it, although"
23200 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23201 echo "***"
23202 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23203 echo "*** came with the system with the command"
23204 echo "***"
23205 echo "*** rpm --erase --nodeps gtk gtk-devel"
23206 else
23207 echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23209
23210 echo "*** The test program failed to compile or link. See the file config.log for the"
23211 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23212 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23213 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23214 fi
23215 rm -f conftest.err conftest.$ac_objext \
23216 conftest$ac_exeext conftest.$ac_ext
23217 CFLAGS="$ac_save_CFLAGS"
23218 LIBS="$ac_save_LIBS"
23219 fi
23220 fi
23221 GTK_CFLAGS=""
23222 GTK_LIBS=""
23223 :
23224 fi
23225
23226
23227 rm -f conf.gtktest
23228
23229 fi
23230 fi
23231
23232 if test -z "$wx_cv_lib_gtk"; then
23233 wx_cv_lib_gtk=none
23234 else
23235 wx_cv_cflags_gtk=$GTK_CFLAGS
23236 wx_cv_libs_gtk=$GTK_LIBS
23237 fi
23238
23239
23240 fi
23241
23242
23243 if test "$gtk_version_cached" = 1; then
23244 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23245 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23246 fi
23247
23248 case "$wx_cv_lib_gtk" in
23249 2.0) WXGTK20=1
23250 TOOLKIT_VERSION=2
23251 ;;
23252 1.2.7) WXGTK127=1
23253 WXGTK12=1
23254 ;;
23255 1.2.3) WXGTK12=1
23256 ;;
23257 *) { { echo "$as_me:$LINENO: error:
23258 Please check that gtk-config is in path, the directory
23259 where GTK+ libraries are installed (returned by
23260 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23261 equivalent variable and GTK+ is version 1.2.3 or above.
23262 " >&5
23263 echo "$as_me: error:
23264 Please check that gtk-config is in path, the directory
23265 where GTK+ libraries are installed (returned by
23266 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23267 equivalent variable and GTK+ is version 1.2.3 or above.
23268 " >&2;}
23269 { (exit 1); exit 1; }; }
23270 ;;
23271 esac
23272
23273 if test "$WXGTK20" = 1; then
23274 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23275
23276 succeeded=no
23277
23278 if test -z "$PKG_CONFIG"; then
23279 # Extract the first word of "pkg-config", so it can be a program name with args.
23280 set dummy pkg-config; ac_word=$2
23281 echo "$as_me:$LINENO: checking for $ac_word" >&5
23282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23283 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23284 echo $ECHO_N "(cached) $ECHO_C" >&6
23285 else
23286 case $PKG_CONFIG in
23287 [\\/]* | ?:[\\/]*)
23288 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23289 ;;
23290 *)
23291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23292 for as_dir in $PATH
23293 do
23294 IFS=$as_save_IFS
23295 test -z "$as_dir" && as_dir=.
23296 for ac_exec_ext in '' $ac_executable_extensions; do
23297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23298 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23300 break 2
23301 fi
23302 done
23303 done
23304
23305 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23306 ;;
23307 esac
23308 fi
23309 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23310
23311 if test -n "$PKG_CONFIG"; then
23312 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23313 echo "${ECHO_T}$PKG_CONFIG" >&6
23314 else
23315 echo "$as_me:$LINENO: result: no" >&5
23316 echo "${ECHO_T}no" >&6
23317 fi
23318
23319 fi
23320
23321 if test "$PKG_CONFIG" = "no" ; then
23322 echo "*** The pkg-config script could not be found. Make sure it is"
23323 echo "*** in your path, or set the PKG_CONFIG environment variable"
23324 echo "*** to the full path to pkg-config."
23325 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23326 else
23327 PKG_CONFIG_MIN_VERSION=0.9.0
23328 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23329 echo "$as_me:$LINENO: checking for pangoft2" >&5
23330 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23331
23332 if $PKG_CONFIG --exists "pangoft2" ; then
23333 echo "$as_me:$LINENO: result: yes" >&5
23334 echo "${ECHO_T}yes" >&6
23335 succeeded=yes
23336
23337 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23338 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23339 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23340 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23341 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23342
23343 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23344 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23345 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23346 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23347 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23348 else
23349 PANGOFT2_CFLAGS=""
23350 PANGOFT2_LIBS=""
23351 ## If we have a custom action on failure, don't print errors, but
23352 ## do set a variable so people can do so.
23353 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23354
23355 fi
23356
23357
23358
23359 else
23360 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23361 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23362 fi
23363 fi
23364
23365 if test $succeeded = yes; then
23366
23367 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
23368 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23369
23370 else
23371
23372 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23373 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23374 wxUSE_PRINTING_ARCHITECTURE="no"
23375
23376
23377 fi
23378
23379 fi
23380
23381 save_CFLAGS="$CFLAGS"
23382 save_LIBS="$LIBS"
23383 CFLAGS="$CFLAGS $GTK_CFLAGS"
23384 LIBS="$LIBS $GTK_LIBS"
23385
23386 for ac_func in pango_font_family_is_monospace
23387 do
23388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23389 echo "$as_me:$LINENO: checking for $ac_func" >&5
23390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23391 if eval "test \"\${$as_ac_var+set}\" = set"; then
23392 echo $ECHO_N "(cached) $ECHO_C" >&6
23393 else
23394 cat >conftest.$ac_ext <<_ACEOF
23395 /* confdefs.h. */
23396 _ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23402 #define $ac_func innocuous_$ac_func
23403
23404 /* System header to define __stub macros and hopefully few prototypes,
23405 which can conflict with char $ac_func (); below.
23406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23407 <limits.h> exists even on freestanding compilers. */
23408
23409 #ifdef __STDC__
23410 # include <limits.h>
23411 #else
23412 # include <assert.h>
23413 #endif
23414
23415 #undef $ac_func
23416
23417 /* Override any gcc2 internal prototype to avoid an error. */
23418 #ifdef __cplusplus
23419 extern "C"
23420 {
23421 #endif
23422 /* We use char because int might match the return type of a gcc2
23423 builtin and then its argument prototype would still apply. */
23424 char $ac_func ();
23425 /* The GNU C library defines this for functions which it implements
23426 to always fail with ENOSYS. Some functions are actually named
23427 something starting with __ and the normal name is an alias. */
23428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23429 choke me
23430 #else
23431 char (*f) () = $ac_func;
23432 #endif
23433 #ifdef __cplusplus
23434 }
23435 #endif
23436
23437 int
23438 main ()
23439 {
23440 return f != $ac_func;
23441 ;
23442 return 0;
23443 }
23444 _ACEOF
23445 rm -f conftest.$ac_objext conftest$ac_exeext
23446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23447 (eval $ac_link) 2>conftest.er1
23448 ac_status=$?
23449 grep -v '^ *+' conftest.er1 >conftest.err
23450 rm -f conftest.er1
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } &&
23454 { ac_try='test -z "$ac_c_werror_flag"
23455 || test ! -s conftest.err'
23456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457 (eval $ac_try) 2>&5
23458 ac_status=$?
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); }; } &&
23461 { ac_try='test -s conftest$ac_exeext'
23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466 (exit $ac_status); }; }; then
23467 eval "$as_ac_var=yes"
23468 else
23469 echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23471
23472 eval "$as_ac_var=no"
23473 fi
23474 rm -f conftest.err conftest.$ac_objext \
23475 conftest$ac_exeext conftest.$ac_ext
23476 fi
23477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23479 if test `eval echo '${'$as_ac_var'}'` = yes; then
23480 cat >>confdefs.h <<_ACEOF
23481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23482 _ACEOF
23483
23484 fi
23485 done
23486
23487 CFLAGS="$save_CFLAGS"
23488 LIBS="$save_LIBS"
23489 else
23490 if test "$wxUSE_UNICODE" = "yes"; then
23491 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23492 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23493 wxUSE_UNICODE=no
23494 fi
23495 fi
23496
23497 if test "$USE_DARWIN" != 1; then
23498
23499 for ac_func in poll
23500 do
23501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23502 echo "$as_me:$LINENO: checking for $ac_func" >&5
23503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23504 if eval "test \"\${$as_ac_var+set}\" = set"; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506 else
23507 cat >conftest.$ac_ext <<_ACEOF
23508 /* confdefs.h. */
23509 _ACEOF
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23515 #define $ac_func innocuous_$ac_func
23516
23517 /* System header to define __stub macros and hopefully few prototypes,
23518 which can conflict with char $ac_func (); below.
23519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23520 <limits.h> exists even on freestanding compilers. */
23521
23522 #ifdef __STDC__
23523 # include <limits.h>
23524 #else
23525 # include <assert.h>
23526 #endif
23527
23528 #undef $ac_func
23529
23530 /* Override any gcc2 internal prototype to avoid an error. */
23531 #ifdef __cplusplus
23532 extern "C"
23533 {
23534 #endif
23535 /* We use char because int might match the return type of a gcc2
23536 builtin and then its argument prototype would still apply. */
23537 char $ac_func ();
23538 /* The GNU C library defines this for functions which it implements
23539 to always fail with ENOSYS. Some functions are actually named
23540 something starting with __ and the normal name is an alias. */
23541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23542 choke me
23543 #else
23544 char (*f) () = $ac_func;
23545 #endif
23546 #ifdef __cplusplus
23547 }
23548 #endif
23549
23550 int
23551 main ()
23552 {
23553 return f != $ac_func;
23554 ;
23555 return 0;
23556 }
23557 _ACEOF
23558 rm -f conftest.$ac_objext conftest$ac_exeext
23559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23560 (eval $ac_link) 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } &&
23567 { ac_try='test -z "$ac_c_werror_flag"
23568 || test ! -s conftest.err'
23569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23570 (eval $ac_try) 2>&5
23571 ac_status=$?
23572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23573 (exit $ac_status); }; } &&
23574 { ac_try='test -s conftest$ac_exeext'
23575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23576 (eval $ac_try) 2>&5
23577 ac_status=$?
23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23579 (exit $ac_status); }; }; then
23580 eval "$as_ac_var=yes"
23581 else
23582 echo "$as_me: failed program was:" >&5
23583 sed 's/^/| /' conftest.$ac_ext >&5
23584
23585 eval "$as_ac_var=no"
23586 fi
23587 rm -f conftest.err conftest.$ac_objext \
23588 conftest$ac_exeext conftest.$ac_ext
23589 fi
23590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23591 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23592 if test `eval echo '${'$as_ac_var'}'` = yes; then
23593 cat >>confdefs.h <<_ACEOF
23594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23595 _ACEOF
23596
23597 fi
23598 done
23599
23600 fi
23601
23602 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23603 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23604
23605 AFMINSTALL=afminstall
23606 TOOLKIT=GTK
23607 GUIDIST=GTK_DIST
23608
23609 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23610 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23611 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614 ac_check_lib_save_LIBS=$LIBS
23615 LIBS="-lgdk $LIBS"
23616 cat >conftest.$ac_ext <<_ACEOF
23617 /* confdefs.h. */
23618 _ACEOF
23619 cat confdefs.h >>conftest.$ac_ext
23620 cat >>conftest.$ac_ext <<_ACEOF
23621 /* end confdefs.h. */
23622
23623 /* Override any gcc2 internal prototype to avoid an error. */
23624 #ifdef __cplusplus
23625 extern "C"
23626 #endif
23627 /* We use char because int might match the return type of a gcc2
23628 builtin and then its argument prototype would still apply. */
23629 char gdk_im_open ();
23630 int
23631 main ()
23632 {
23633 gdk_im_open ();
23634 ;
23635 return 0;
23636 }
23637 _ACEOF
23638 rm -f conftest.$ac_objext conftest$ac_exeext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23640 (eval $ac_link) 2>conftest.er1
23641 ac_status=$?
23642 grep -v '^ *+' conftest.er1 >conftest.err
23643 rm -f conftest.er1
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
23647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; } &&
23654 { ac_try='test -s conftest$ac_exeext'
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23660 ac_cv_lib_gdk_gdk_im_open=yes
23661 else
23662 echo "$as_me: failed program was:" >&5
23663 sed 's/^/| /' conftest.$ac_ext >&5
23664
23665 ac_cv_lib_gdk_gdk_im_open=no
23666 fi
23667 rm -f conftest.err conftest.$ac_objext \
23668 conftest$ac_exeext conftest.$ac_ext
23669 LIBS=$ac_check_lib_save_LIBS
23670 fi
23671 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23672 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23673 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23674 cat >>confdefs.h <<\_ACEOF
23675 #define HAVE_XIM 1
23676 _ACEOF
23677
23678 fi
23679
23680
23681
23682 if test "$wxUSE_GPE" = "yes"; then
23683 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23684 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23685
23686 ac_find_libraries=
23687 for ac_dir in $SEARCH_LIB /usr/lib;
23688 do
23689 for ac_extension in a so sl dylib; do
23690 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23691 ac_find_libraries=$ac_dir
23692 break 2
23693 fi
23694 done
23695 done
23696
23697 if test "$ac_find_libraries" != "" ; then
23698
23699 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23700 result=$?
23701 if test $result = 0; then
23702 ac_path_to_link=""
23703 else
23704 ac_path_to_link=" -L$ac_find_libraries"
23705 fi
23706
23707 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23708 WXGPE=1
23709 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23710 echo "${ECHO_T}found at $ac_find_libraries" >&6
23711 else
23712 echo "$as_me:$LINENO: result: not found" >&5
23713 echo "${ECHO_T}not found" >&6
23714 fi
23715
23716 fi
23717 fi
23718
23719 if test "$wxUSE_MGL" = 1; then
23720 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23721 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23722 if test "x$MGL_ROOT" = x ; then
23723 echo "$as_me:$LINENO: result: not found" >&5
23724 echo "${ECHO_T}not found" >&6
23725 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23726 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23727 { (exit 1); exit 1; }; }
23728 else
23729 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23730 echo "${ECHO_T}$MGL_ROOT" >&6
23731 fi
23732
23733 echo "$as_me:$LINENO: checking for libmgl location" >&5
23734 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23735 case "${host}" in
23736 *-*-linux* )
23737 if test "x$wxUSE_SHARED" = xyes ; then
23738 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23739 else
23740 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23741 fi
23742 ;;
23743 *-pc-msdosdjgpp )
23744 mgl_os_candidates="dos32/dj2"
23745 ;;
23746 *)
23747 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23748 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23749 { (exit 1); exit 1; }; }
23750 esac
23751
23752 mgl_lib_type=""
23753 mgl_os=""
23754
23755 for mgl_os_i in $mgl_os_candidates ; do
23756 if test "x$mgl_os" = x ; then
23757 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23758 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23759 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23760 mgl_lib_type=debug
23761 mgl_os=$mgl_os_i
23762 fi
23763 fi
23764 if test "x$mgl_lib_type" = x ; then
23765 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23766 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23767 mgl_lib_type=release
23768 mgl_os=$mgl_os_i
23769 fi
23770 fi
23771 fi
23772 done
23773
23774 if test "x$mgl_os" = x ; then
23775 echo "$as_me:$LINENO: result: not found" >&5
23776 echo "${ECHO_T}not found" >&6
23777 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23778 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23779 { (exit 1); exit 1; }; }
23780 fi
23781 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23782 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23783
23784 wxUSE_UNIVERSAL="yes"
23785
23786 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23787 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23788
23789 AFMINSTALL=afminstall
23790 TOOLKIT=MGL
23791 GUIDIST=MGL_DIST
23792 fi
23793
23794 if test "$wxUSE_MICROWIN" = 1; then
23795 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23796 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23797 if test "x$MICROWINDOWS" = x ; then
23798 echo "$as_me:$LINENO: result: not found" >&5
23799 echo "${ECHO_T}not found" >&6
23800 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23801 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23802 { (exit 1); exit 1; }; }
23803 else
23804 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23805 echo "${ECHO_T}$MICROWINDOWS" >&6
23806 fi
23807
23808 if test -f $MICROWINDOWS/lib/libmwin.a; then
23809 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23810 echo "${ECHO_T}MicroWindows' libraries found." >&6
23811 else
23812 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23813 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23814 { (exit 1); exit 1; }; }
23815 fi
23816
23817 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23818 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23819
23820 wxUSE_UNIVERSAL="yes"
23821
23822 AFMINSTALL=afminstall
23823 TOOLKIT=MICROWIN
23824 GUIDIST=MICROWIN_DIST
23825
23826 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23827 fi
23828
23829 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
23830 echo "$as_me:$LINENO: checking for X" >&5
23831 echo $ECHO_N "checking for X... $ECHO_C" >&6
23832
23833
23834 # Check whether --with-x or --without-x was given.
23835 if test "${with_x+set}" = set; then
23836 withval="$with_x"
23837
23838 fi;
23839 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23840 if test "x$with_x" = xno; then
23841 # The user explicitly disabled X.
23842 have_x=disabled
23843 else
23844 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23845 # Both variables are already set.
23846 have_x=yes
23847 else
23848 if test "${ac_cv_have_x+set}" = set; then
23849 echo $ECHO_N "(cached) $ECHO_C" >&6
23850 else
23851 # One or both of the vars are not set, and there is no cached value.
23852 ac_x_includes=no ac_x_libraries=no
23853 rm -fr conftest.dir
23854 if mkdir conftest.dir; then
23855 cd conftest.dir
23856 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23857 cat >Imakefile <<'_ACEOF'
23858 acfindx:
23859 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23860 _ACEOF
23861 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23862 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23863 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23864 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23865 for ac_extension in a so sl; do
23866 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23867 test -f $ac_im_libdir/libX11.$ac_extension; then
23868 ac_im_usrlibdir=$ac_im_libdir; break
23869 fi
23870 done
23871 # Screen out bogus values from the imake configuration. They are
23872 # bogus both because they are the default anyway, and because
23873 # using them would break gcc on systems where it needs fixed includes.
23874 case $ac_im_incroot in
23875 /usr/include) ;;
23876 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23877 esac
23878 case $ac_im_usrlibdir in
23879 /usr/lib | /lib) ;;
23880 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23881 esac
23882 fi
23883 cd ..
23884 rm -fr conftest.dir
23885 fi
23886
23887 # Standard set of common directories for X headers.
23888 # Check X11 before X11Rn because it is often a symlink to the current release.
23889 ac_x_header_dirs='
23890 /usr/X11/include
23891 /usr/X11R6/include
23892 /usr/X11R5/include
23893 /usr/X11R4/include
23894
23895 /usr/include/X11
23896 /usr/include/X11R6
23897 /usr/include/X11R5
23898 /usr/include/X11R4
23899
23900 /usr/local/X11/include
23901 /usr/local/X11R6/include
23902 /usr/local/X11R5/include
23903 /usr/local/X11R4/include
23904
23905 /usr/local/include/X11
23906 /usr/local/include/X11R6
23907 /usr/local/include/X11R5
23908 /usr/local/include/X11R4
23909
23910 /usr/X386/include
23911 /usr/x386/include
23912 /usr/XFree86/include/X11
23913
23914 /usr/include
23915 /usr/local/include
23916 /usr/unsupported/include
23917 /usr/athena/include
23918 /usr/local/x11r5/include
23919 /usr/lpp/Xamples/include
23920
23921 /usr/openwin/include
23922 /usr/openwin/share/include'
23923
23924 if test "$ac_x_includes" = no; then
23925 # Guess where to find include files, by looking for Intrinsic.h.
23926 # First, try using that file with no special directory specified.
23927 cat >conftest.$ac_ext <<_ACEOF
23928 /* confdefs.h. */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 #include <X11/Intrinsic.h>
23934 _ACEOF
23935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23937 ac_status=$?
23938 grep -v '^ *+' conftest.er1 >conftest.err
23939 rm -f conftest.er1
23940 cat conftest.err >&5
23941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942 (exit $ac_status); } >/dev/null; then
23943 if test -s conftest.err; then
23944 ac_cpp_err=$ac_c_preproc_warn_flag
23945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23946 else
23947 ac_cpp_err=
23948 fi
23949 else
23950 ac_cpp_err=yes
23951 fi
23952 if test -z "$ac_cpp_err"; then
23953 # We can compile using X headers with no special include directory.
23954 ac_x_includes=
23955 else
23956 echo "$as_me: failed program was:" >&5
23957 sed 's/^/| /' conftest.$ac_ext >&5
23958
23959 for ac_dir in $ac_x_header_dirs; do
23960 if test -r "$ac_dir/X11/Intrinsic.h"; then
23961 ac_x_includes=$ac_dir
23962 break
23963 fi
23964 done
23965 fi
23966 rm -f conftest.err conftest.$ac_ext
23967 fi # $ac_x_includes = no
23968
23969 if test "$ac_x_libraries" = no; then
23970 # Check for the libraries.
23971 # See if we find them without any special options.
23972 # Don't add to $LIBS permanently.
23973 ac_save_LIBS=$LIBS
23974 LIBS="-lXt $LIBS"
23975 cat >conftest.$ac_ext <<_ACEOF
23976 /* confdefs.h. */
23977 _ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23981 #include <X11/Intrinsic.h>
23982 int
23983 main ()
23984 {
23985 XtMalloc (0)
23986 ;
23987 return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992 (eval $ac_link) 2>conftest.er1
23993 ac_status=$?
23994 grep -v '^ *+' conftest.er1 >conftest.err
23995 rm -f conftest.er1
23996 cat conftest.err >&5
23997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23998 (exit $ac_status); } &&
23999 { ac_try='test -z "$ac_c_werror_flag"
24000 || test ! -s conftest.err'
24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24002 (eval $ac_try) 2>&5
24003 ac_status=$?
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); }; } &&
24006 { ac_try='test -s conftest$ac_exeext'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; }; then
24012 LIBS=$ac_save_LIBS
24013 # We can link X programs with no special library path.
24014 ac_x_libraries=
24015 else
24016 echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24018
24019 LIBS=$ac_save_LIBS
24020 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24021 do
24022 # Don't even attempt the hair of trying to link an X program!
24023 for ac_extension in a so sl; do
24024 if test -r $ac_dir/libXt.$ac_extension; then
24025 ac_x_libraries=$ac_dir
24026 break 2
24027 fi
24028 done
24029 done
24030 fi
24031 rm -f conftest.err conftest.$ac_objext \
24032 conftest$ac_exeext conftest.$ac_ext
24033 fi # $ac_x_libraries = no
24034
24035 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24036 # Didn't find X anywhere. Cache the known absence of X.
24037 ac_cv_have_x="have_x=no"
24038 else
24039 # Record where we found X for the cache.
24040 ac_cv_have_x="have_x=yes \
24041 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
24042 fi
24043 fi
24044
24045 fi
24046 eval "$ac_cv_have_x"
24047 fi # $with_x != no
24048
24049 if test "$have_x" != yes; then
24050 echo "$as_me:$LINENO: result: $have_x" >&5
24051 echo "${ECHO_T}$have_x" >&6
24052 no_x=yes
24053 else
24054 # If each of the values was on the command line, it overrides each guess.
24055 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24056 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24057 # Update the cache value to reflect the command line values.
24058 ac_cv_have_x="have_x=yes \
24059 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
24060 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24061 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
24062 fi
24063
24064 if test "$no_x" = yes; then
24065 # Not all programs may use this symbol, but it does not hurt to define it.
24066
24067 cat >>confdefs.h <<\_ACEOF
24068 #define X_DISPLAY_MISSING 1
24069 _ACEOF
24070
24071 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24072 else
24073 if test -n "$x_includes"; then
24074 X_CFLAGS="$X_CFLAGS -I$x_includes"
24075 fi
24076
24077 # It would also be nice to do this for all -L options, not just this one.
24078 if test -n "$x_libraries"; then
24079 X_LIBS="$X_LIBS -L$x_libraries"
24080 # For Solaris; some versions of Sun CC require a space after -R and
24081 # others require no space. Words are not sufficient . . . .
24082 case `(uname -sr) 2>/dev/null` in
24083 "SunOS 5"*)
24084 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24085 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24086 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24087 cat >conftest.$ac_ext <<_ACEOF
24088 /* confdefs.h. */
24089 _ACEOF
24090 cat confdefs.h >>conftest.$ac_ext
24091 cat >>conftest.$ac_ext <<_ACEOF
24092 /* end confdefs.h. */
24093
24094 int
24095 main ()
24096 {
24097
24098 ;
24099 return 0;
24100 }
24101 _ACEOF
24102 rm -f conftest.$ac_objext conftest$ac_exeext
24103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24104 (eval $ac_link) 2>conftest.er1
24105 ac_status=$?
24106 grep -v '^ *+' conftest.er1 >conftest.err
24107 rm -f conftest.er1
24108 cat conftest.err >&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } &&
24111 { ac_try='test -z "$ac_c_werror_flag"
24112 || test ! -s conftest.err'
24113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114 (eval $ac_try) 2>&5
24115 ac_status=$?
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); }; } &&
24118 { ac_try='test -s conftest$ac_exeext'
24119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120 (eval $ac_try) 2>&5
24121 ac_status=$?
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }; }; then
24124 ac_R_nospace=yes
24125 else
24126 echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24128
24129 ac_R_nospace=no
24130 fi
24131 rm -f conftest.err conftest.$ac_objext \
24132 conftest$ac_exeext conftest.$ac_ext
24133 if test $ac_R_nospace = yes; then
24134 echo "$as_me:$LINENO: result: no" >&5
24135 echo "${ECHO_T}no" >&6
24136 X_LIBS="$X_LIBS -R$x_libraries"
24137 else
24138 LIBS="$ac_xsave_LIBS -R $x_libraries"
24139 cat >conftest.$ac_ext <<_ACEOF
24140 /* confdefs.h. */
24141 _ACEOF
24142 cat confdefs.h >>conftest.$ac_ext
24143 cat >>conftest.$ac_ext <<_ACEOF
24144 /* end confdefs.h. */
24145
24146 int
24147 main ()
24148 {
24149
24150 ;
24151 return 0;
24152 }
24153 _ACEOF
24154 rm -f conftest.$ac_objext conftest$ac_exeext
24155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24156 (eval $ac_link) 2>conftest.er1
24157 ac_status=$?
24158 grep -v '^ *+' conftest.er1 >conftest.err
24159 rm -f conftest.er1
24160 cat conftest.err >&5
24161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24162 (exit $ac_status); } &&
24163 { ac_try='test -z "$ac_c_werror_flag"
24164 || test ! -s conftest.err'
24165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24166 (eval $ac_try) 2>&5
24167 ac_status=$?
24168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169 (exit $ac_status); }; } &&
24170 { ac_try='test -s conftest$ac_exeext'
24171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24172 (eval $ac_try) 2>&5
24173 ac_status=$?
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); }; }; then
24176 ac_R_space=yes
24177 else
24178 echo "$as_me: failed program was:" >&5
24179 sed 's/^/| /' conftest.$ac_ext >&5
24180
24181 ac_R_space=no
24182 fi
24183 rm -f conftest.err conftest.$ac_objext \
24184 conftest$ac_exeext conftest.$ac_ext
24185 if test $ac_R_space = yes; then
24186 echo "$as_me:$LINENO: result: yes" >&5
24187 echo "${ECHO_T}yes" >&6
24188 X_LIBS="$X_LIBS -R $x_libraries"
24189 else
24190 echo "$as_me:$LINENO: result: neither works" >&5
24191 echo "${ECHO_T}neither works" >&6
24192 fi
24193 fi
24194 LIBS=$ac_xsave_LIBS
24195 esac
24196 fi
24197
24198 # Check for system-dependent libraries X programs must link with.
24199 # Do this before checking for the system-independent R6 libraries
24200 # (-lICE), since we may need -lsocket or whatever for X linking.
24201
24202 if test "$ISC" = yes; then
24203 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24204 else
24205 # Martyn Johnson says this is needed for Ultrix, if the X
24206 # libraries were built with DECnet support. And Karl Berry says
24207 # the Alpha needs dnet_stub (dnet does not exist).
24208 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24209 cat >conftest.$ac_ext <<_ACEOF
24210 /* confdefs.h. */
24211 _ACEOF
24212 cat confdefs.h >>conftest.$ac_ext
24213 cat >>conftest.$ac_ext <<_ACEOF
24214 /* end confdefs.h. */
24215
24216 /* Override any gcc2 internal prototype to avoid an error. */
24217 #ifdef __cplusplus
24218 extern "C"
24219 #endif
24220 /* We use char because int might match the return type of a gcc2
24221 builtin and then its argument prototype would still apply. */
24222 char XOpenDisplay ();
24223 int
24224 main ()
24225 {
24226 XOpenDisplay ();
24227 ;
24228 return 0;
24229 }
24230 _ACEOF
24231 rm -f conftest.$ac_objext conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233 (eval $ac_link) 2>conftest.er1
24234 ac_status=$?
24235 grep -v '^ *+' conftest.er1 >conftest.err
24236 rm -f conftest.er1
24237 cat conftest.err >&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } &&
24240 { ac_try='test -z "$ac_c_werror_flag"
24241 || test ! -s conftest.err'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24244 ac_status=$?
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; } &&
24247 { ac_try='test -s conftest$ac_exeext'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 :
24254 else
24255 echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24257
24258 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24259 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24260 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24261 echo $ECHO_N "(cached) $ECHO_C" >&6
24262 else
24263 ac_check_lib_save_LIBS=$LIBS
24264 LIBS="-ldnet $LIBS"
24265 cat >conftest.$ac_ext <<_ACEOF
24266 /* confdefs.h. */
24267 _ACEOF
24268 cat confdefs.h >>conftest.$ac_ext
24269 cat >>conftest.$ac_ext <<_ACEOF
24270 /* end confdefs.h. */
24271
24272 /* Override any gcc2 internal prototype to avoid an error. */
24273 #ifdef __cplusplus
24274 extern "C"
24275 #endif
24276 /* We use char because int might match the return type of a gcc2
24277 builtin and then its argument prototype would still apply. */
24278 char dnet_ntoa ();
24279 int
24280 main ()
24281 {
24282 dnet_ntoa ();
24283 ;
24284 return 0;
24285 }
24286 _ACEOF
24287 rm -f conftest.$ac_objext conftest$ac_exeext
24288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24289 (eval $ac_link) 2>conftest.er1
24290 ac_status=$?
24291 grep -v '^ *+' conftest.er1 >conftest.err
24292 rm -f conftest.er1
24293 cat conftest.err >&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); } &&
24296 { ac_try='test -z "$ac_c_werror_flag"
24297 || test ! -s conftest.err'
24298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24299 (eval $ac_try) 2>&5
24300 ac_status=$?
24301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24302 (exit $ac_status); }; } &&
24303 { ac_try='test -s conftest$ac_exeext'
24304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24305 (eval $ac_try) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); }; }; then
24309 ac_cv_lib_dnet_dnet_ntoa=yes
24310 else
24311 echo "$as_me: failed program was:" >&5
24312 sed 's/^/| /' conftest.$ac_ext >&5
24313
24314 ac_cv_lib_dnet_dnet_ntoa=no
24315 fi
24316 rm -f conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
24318 LIBS=$ac_check_lib_save_LIBS
24319 fi
24320 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24321 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24322 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24323 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24324 fi
24325
24326 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24327 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24328 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24329 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332 ac_check_lib_save_LIBS=$LIBS
24333 LIBS="-ldnet_stub $LIBS"
24334 cat >conftest.$ac_ext <<_ACEOF
24335 /* confdefs.h. */
24336 _ACEOF
24337 cat confdefs.h >>conftest.$ac_ext
24338 cat >>conftest.$ac_ext <<_ACEOF
24339 /* end confdefs.h. */
24340
24341 /* Override any gcc2 internal prototype to avoid an error. */
24342 #ifdef __cplusplus
24343 extern "C"
24344 #endif
24345 /* We use char because int might match the return type of a gcc2
24346 builtin and then its argument prototype would still apply. */
24347 char dnet_ntoa ();
24348 int
24349 main ()
24350 {
24351 dnet_ntoa ();
24352 ;
24353 return 0;
24354 }
24355 _ACEOF
24356 rm -f conftest.$ac_objext conftest$ac_exeext
24357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24358 (eval $ac_link) 2>conftest.er1
24359 ac_status=$?
24360 grep -v '^ *+' conftest.er1 >conftest.err
24361 rm -f conftest.er1
24362 cat conftest.err >&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } &&
24365 { ac_try='test -z "$ac_c_werror_flag"
24366 || test ! -s conftest.err'
24367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368 (eval $ac_try) 2>&5
24369 ac_status=$?
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; } &&
24372 { ac_try='test -s conftest$ac_exeext'
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; }; then
24378 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24379 else
24380 echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24382
24383 ac_cv_lib_dnet_stub_dnet_ntoa=no
24384 fi
24385 rm -f conftest.err conftest.$ac_objext \
24386 conftest$ac_exeext conftest.$ac_ext
24387 LIBS=$ac_check_lib_save_LIBS
24388 fi
24389 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24390 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24391 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24392 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24393 fi
24394
24395 fi
24396 fi
24397 rm -f conftest.err conftest.$ac_objext \
24398 conftest$ac_exeext conftest.$ac_ext
24399 LIBS="$ac_xsave_LIBS"
24400
24401 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24402 # to get the SysV transport functions.
24403 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24404 # needs -lnsl.
24405 # The nsl library prevents programs from opening the X display
24406 # on Irix 5.2, according to T.E. Dickey.
24407 # The functions gethostbyname, getservbyname, and inet_addr are
24408 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24409 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24410 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24411 if test "${ac_cv_func_gethostbyname+set}" = set; then
24412 echo $ECHO_N "(cached) $ECHO_C" >&6
24413 else
24414 cat >conftest.$ac_ext <<_ACEOF
24415 /* confdefs.h. */
24416 _ACEOF
24417 cat confdefs.h >>conftest.$ac_ext
24418 cat >>conftest.$ac_ext <<_ACEOF
24419 /* end confdefs.h. */
24420 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24422 #define gethostbyname innocuous_gethostbyname
24423
24424 /* System header to define __stub macros and hopefully few prototypes,
24425 which can conflict with char gethostbyname (); below.
24426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24427 <limits.h> exists even on freestanding compilers. */
24428
24429 #ifdef __STDC__
24430 # include <limits.h>
24431 #else
24432 # include <assert.h>
24433 #endif
24434
24435 #undef gethostbyname
24436
24437 /* Override any gcc2 internal prototype to avoid an error. */
24438 #ifdef __cplusplus
24439 extern "C"
24440 {
24441 #endif
24442 /* We use char because int might match the return type of a gcc2
24443 builtin and then its argument prototype would still apply. */
24444 char gethostbyname ();
24445 /* The GNU C library defines this for functions which it implements
24446 to always fail with ENOSYS. Some functions are actually named
24447 something starting with __ and the normal name is an alias. */
24448 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24449 choke me
24450 #else
24451 char (*f) () = gethostbyname;
24452 #endif
24453 #ifdef __cplusplus
24454 }
24455 #endif
24456
24457 int
24458 main ()
24459 {
24460 return f != gethostbyname;
24461 ;
24462 return 0;
24463 }
24464 _ACEOF
24465 rm -f conftest.$ac_objext conftest$ac_exeext
24466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24467 (eval $ac_link) 2>conftest.er1
24468 ac_status=$?
24469 grep -v '^ *+' conftest.er1 >conftest.err
24470 rm -f conftest.er1
24471 cat conftest.err >&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); } &&
24474 { ac_try='test -z "$ac_c_werror_flag"
24475 || test ! -s conftest.err'
24476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477 (eval $ac_try) 2>&5
24478 ac_status=$?
24479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480 (exit $ac_status); }; } &&
24481 { ac_try='test -s conftest$ac_exeext'
24482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483 (eval $ac_try) 2>&5
24484 ac_status=$?
24485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; }; then
24487 ac_cv_func_gethostbyname=yes
24488 else
24489 echo "$as_me: failed program was:" >&5
24490 sed 's/^/| /' conftest.$ac_ext >&5
24491
24492 ac_cv_func_gethostbyname=no
24493 fi
24494 rm -f conftest.err conftest.$ac_objext \
24495 conftest$ac_exeext conftest.$ac_ext
24496 fi
24497 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24498 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24499
24500 if test $ac_cv_func_gethostbyname = no; then
24501 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24502 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24503 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24504 echo $ECHO_N "(cached) $ECHO_C" >&6
24505 else
24506 ac_check_lib_save_LIBS=$LIBS
24507 LIBS="-lnsl $LIBS"
24508 cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h. */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514
24515 /* Override any gcc2 internal prototype to avoid an error. */
24516 #ifdef __cplusplus
24517 extern "C"
24518 #endif
24519 /* We use char because int might match the return type of a gcc2
24520 builtin and then its argument prototype would still apply. */
24521 char gethostbyname ();
24522 int
24523 main ()
24524 {
24525 gethostbyname ();
24526 ;
24527 return 0;
24528 }
24529 _ACEOF
24530 rm -f conftest.$ac_objext conftest$ac_exeext
24531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24532 (eval $ac_link) 2>conftest.er1
24533 ac_status=$?
24534 grep -v '^ *+' conftest.er1 >conftest.err
24535 rm -f conftest.er1
24536 cat conftest.err >&5
24537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538 (exit $ac_status); } &&
24539 { ac_try='test -z "$ac_c_werror_flag"
24540 || test ! -s conftest.err'
24541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24542 (eval $ac_try) 2>&5
24543 ac_status=$?
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); }; } &&
24546 { ac_try='test -s conftest$ac_exeext'
24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548 (eval $ac_try) 2>&5
24549 ac_status=$?
24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551 (exit $ac_status); }; }; then
24552 ac_cv_lib_nsl_gethostbyname=yes
24553 else
24554 echo "$as_me: failed program was:" >&5
24555 sed 's/^/| /' conftest.$ac_ext >&5
24556
24557 ac_cv_lib_nsl_gethostbyname=no
24558 fi
24559 rm -f conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
24561 LIBS=$ac_check_lib_save_LIBS
24562 fi
24563 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24564 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24565 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24566 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24567 fi
24568
24569 if test $ac_cv_lib_nsl_gethostbyname = no; then
24570 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24571 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24572 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24573 echo $ECHO_N "(cached) $ECHO_C" >&6
24574 else
24575 ac_check_lib_save_LIBS=$LIBS
24576 LIBS="-lbsd $LIBS"
24577 cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h. */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583
24584 /* Override any gcc2 internal prototype to avoid an error. */
24585 #ifdef __cplusplus
24586 extern "C"
24587 #endif
24588 /* We use char because int might match the return type of a gcc2
24589 builtin and then its argument prototype would still apply. */
24590 char gethostbyname ();
24591 int
24592 main ()
24593 {
24594 gethostbyname ();
24595 ;
24596 return 0;
24597 }
24598 _ACEOF
24599 rm -f conftest.$ac_objext conftest$ac_exeext
24600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24601 (eval $ac_link) 2>conftest.er1
24602 ac_status=$?
24603 grep -v '^ *+' conftest.er1 >conftest.err
24604 rm -f conftest.er1
24605 cat conftest.err >&5
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); } &&
24608 { ac_try='test -z "$ac_c_werror_flag"
24609 || test ! -s conftest.err'
24610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611 (eval $ac_try) 2>&5
24612 ac_status=$?
24613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614 (exit $ac_status); }; } &&
24615 { ac_try='test -s conftest$ac_exeext'
24616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617 (eval $ac_try) 2>&5
24618 ac_status=$?
24619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620 (exit $ac_status); }; }; then
24621 ac_cv_lib_bsd_gethostbyname=yes
24622 else
24623 echo "$as_me: failed program was:" >&5
24624 sed 's/^/| /' conftest.$ac_ext >&5
24625
24626 ac_cv_lib_bsd_gethostbyname=no
24627 fi
24628 rm -f conftest.err conftest.$ac_objext \
24629 conftest$ac_exeext conftest.$ac_ext
24630 LIBS=$ac_check_lib_save_LIBS
24631 fi
24632 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24633 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24634 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24635 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24636 fi
24637
24638 fi
24639 fi
24640
24641 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24642 # socket/setsockopt and other routines are undefined under SCO ODT
24643 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24644 # on later versions), says Simon Leinen: it contains gethostby*
24645 # variants that don't use the name server (or something). -lsocket
24646 # must be given before -lnsl if both are needed. We assume that
24647 # if connect needs -lnsl, so does gethostbyname.
24648 echo "$as_me:$LINENO: checking for connect" >&5
24649 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24650 if test "${ac_cv_func_connect+set}" = set; then
24651 echo $ECHO_N "(cached) $ECHO_C" >&6
24652 else
24653 cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h. */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h. */
24659 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24661 #define connect innocuous_connect
24662
24663 /* System header to define __stub macros and hopefully few prototypes,
24664 which can conflict with char connect (); below.
24665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24666 <limits.h> exists even on freestanding compilers. */
24667
24668 #ifdef __STDC__
24669 # include <limits.h>
24670 #else
24671 # include <assert.h>
24672 #endif
24673
24674 #undef connect
24675
24676 /* Override any gcc2 internal prototype to avoid an error. */
24677 #ifdef __cplusplus
24678 extern "C"
24679 {
24680 #endif
24681 /* We use char because int might match the return type of a gcc2
24682 builtin and then its argument prototype would still apply. */
24683 char connect ();
24684 /* The GNU C library defines this for functions which it implements
24685 to always fail with ENOSYS. Some functions are actually named
24686 something starting with __ and the normal name is an alias. */
24687 #if defined (__stub_connect) || defined (__stub___connect)
24688 choke me
24689 #else
24690 char (*f) () = connect;
24691 #endif
24692 #ifdef __cplusplus
24693 }
24694 #endif
24695
24696 int
24697 main ()
24698 {
24699 return f != connect;
24700 ;
24701 return 0;
24702 }
24703 _ACEOF
24704 rm -f conftest.$ac_objext conftest$ac_exeext
24705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24706 (eval $ac_link) 2>conftest.er1
24707 ac_status=$?
24708 grep -v '^ *+' conftest.er1 >conftest.err
24709 rm -f conftest.er1
24710 cat conftest.err >&5
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); } &&
24713 { ac_try='test -z "$ac_c_werror_flag"
24714 || test ! -s conftest.err'
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; } &&
24720 { ac_try='test -s conftest$ac_exeext'
24721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24722 (eval $ac_try) 2>&5
24723 ac_status=$?
24724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24725 (exit $ac_status); }; }; then
24726 ac_cv_func_connect=yes
24727 else
24728 echo "$as_me: failed program was:" >&5
24729 sed 's/^/| /' conftest.$ac_ext >&5
24730
24731 ac_cv_func_connect=no
24732 fi
24733 rm -f conftest.err conftest.$ac_objext \
24734 conftest$ac_exeext conftest.$ac_ext
24735 fi
24736 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24737 echo "${ECHO_T}$ac_cv_func_connect" >&6
24738
24739 if test $ac_cv_func_connect = no; then
24740 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24741 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24742 if test "${ac_cv_lib_socket_connect+set}" = set; then
24743 echo $ECHO_N "(cached) $ECHO_C" >&6
24744 else
24745 ac_check_lib_save_LIBS=$LIBS
24746 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24747 cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h. */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h. */
24753
24754 /* Override any gcc2 internal prototype to avoid an error. */
24755 #ifdef __cplusplus
24756 extern "C"
24757 #endif
24758 /* We use char because int might match the return type of a gcc2
24759 builtin and then its argument prototype would still apply. */
24760 char connect ();
24761 int
24762 main ()
24763 {
24764 connect ();
24765 ;
24766 return 0;
24767 }
24768 _ACEOF
24769 rm -f conftest.$ac_objext conftest$ac_exeext
24770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24771 (eval $ac_link) 2>conftest.er1
24772 ac_status=$?
24773 grep -v '^ *+' conftest.er1 >conftest.err
24774 rm -f conftest.er1
24775 cat conftest.err >&5
24776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); } &&
24778 { ac_try='test -z "$ac_c_werror_flag"
24779 || test ! -s conftest.err'
24780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24781 (eval $ac_try) 2>&5
24782 ac_status=$?
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); }; } &&
24785 { ac_try='test -s conftest$ac_exeext'
24786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787 (eval $ac_try) 2>&5
24788 ac_status=$?
24789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); }; }; then
24791 ac_cv_lib_socket_connect=yes
24792 else
24793 echo "$as_me: failed program was:" >&5
24794 sed 's/^/| /' conftest.$ac_ext >&5
24795
24796 ac_cv_lib_socket_connect=no
24797 fi
24798 rm -f conftest.err conftest.$ac_objext \
24799 conftest$ac_exeext conftest.$ac_ext
24800 LIBS=$ac_check_lib_save_LIBS
24801 fi
24802 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24803 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24804 if test $ac_cv_lib_socket_connect = yes; then
24805 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24806 fi
24807
24808 fi
24809
24810 # Guillermo Gomez says -lposix is necessary on A/UX.
24811 echo "$as_me:$LINENO: checking for remove" >&5
24812 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24813 if test "${ac_cv_func_remove+set}" = set; then
24814 echo $ECHO_N "(cached) $ECHO_C" >&6
24815 else
24816 cat >conftest.$ac_ext <<_ACEOF
24817 /* confdefs.h. */
24818 _ACEOF
24819 cat confdefs.h >>conftest.$ac_ext
24820 cat >>conftest.$ac_ext <<_ACEOF
24821 /* end confdefs.h. */
24822 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24824 #define remove innocuous_remove
24825
24826 /* System header to define __stub macros and hopefully few prototypes,
24827 which can conflict with char remove (); below.
24828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24829 <limits.h> exists even on freestanding compilers. */
24830
24831 #ifdef __STDC__
24832 # include <limits.h>
24833 #else
24834 # include <assert.h>
24835 #endif
24836
24837 #undef remove
24838
24839 /* Override any gcc2 internal prototype to avoid an error. */
24840 #ifdef __cplusplus
24841 extern "C"
24842 {
24843 #endif
24844 /* We use char because int might match the return type of a gcc2
24845 builtin and then its argument prototype would still apply. */
24846 char remove ();
24847 /* The GNU C library defines this for functions which it implements
24848 to always fail with ENOSYS. Some functions are actually named
24849 something starting with __ and the normal name is an alias. */
24850 #if defined (__stub_remove) || defined (__stub___remove)
24851 choke me
24852 #else
24853 char (*f) () = remove;
24854 #endif
24855 #ifdef __cplusplus
24856 }
24857 #endif
24858
24859 int
24860 main ()
24861 {
24862 return f != remove;
24863 ;
24864 return 0;
24865 }
24866 _ACEOF
24867 rm -f conftest.$ac_objext conftest$ac_exeext
24868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24869 (eval $ac_link) 2>conftest.er1
24870 ac_status=$?
24871 grep -v '^ *+' conftest.er1 >conftest.err
24872 rm -f conftest.er1
24873 cat conftest.err >&5
24874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); } &&
24876 { ac_try='test -z "$ac_c_werror_flag"
24877 || test ! -s conftest.err'
24878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); }; } &&
24883 { ac_try='test -s conftest$ac_exeext'
24884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 (eval $ac_try) 2>&5
24886 ac_status=$?
24887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 (exit $ac_status); }; }; then
24889 ac_cv_func_remove=yes
24890 else
24891 echo "$as_me: failed program was:" >&5
24892 sed 's/^/| /' conftest.$ac_ext >&5
24893
24894 ac_cv_func_remove=no
24895 fi
24896 rm -f conftest.err conftest.$ac_objext \
24897 conftest$ac_exeext conftest.$ac_ext
24898 fi
24899 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24900 echo "${ECHO_T}$ac_cv_func_remove" >&6
24901
24902 if test $ac_cv_func_remove = no; then
24903 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24904 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24905 if test "${ac_cv_lib_posix_remove+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24907 else
24908 ac_check_lib_save_LIBS=$LIBS
24909 LIBS="-lposix $LIBS"
24910 cat >conftest.$ac_ext <<_ACEOF
24911 /* confdefs.h. */
24912 _ACEOF
24913 cat confdefs.h >>conftest.$ac_ext
24914 cat >>conftest.$ac_ext <<_ACEOF
24915 /* end confdefs.h. */
24916
24917 /* Override any gcc2 internal prototype to avoid an error. */
24918 #ifdef __cplusplus
24919 extern "C"
24920 #endif
24921 /* We use char because int might match the return type of a gcc2
24922 builtin and then its argument prototype would still apply. */
24923 char remove ();
24924 int
24925 main ()
24926 {
24927 remove ();
24928 ;
24929 return 0;
24930 }
24931 _ACEOF
24932 rm -f conftest.$ac_objext conftest$ac_exeext
24933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24934 (eval $ac_link) 2>conftest.er1
24935 ac_status=$?
24936 grep -v '^ *+' conftest.er1 >conftest.err
24937 rm -f conftest.er1
24938 cat conftest.err >&5
24939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } &&
24941 { ac_try='test -z "$ac_c_werror_flag"
24942 || test ! -s conftest.err'
24943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24944 (eval $ac_try) 2>&5
24945 ac_status=$?
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); }; } &&
24948 { ac_try='test -s conftest$ac_exeext'
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; }; then
24954 ac_cv_lib_posix_remove=yes
24955 else
24956 echo "$as_me: failed program was:" >&5
24957 sed 's/^/| /' conftest.$ac_ext >&5
24958
24959 ac_cv_lib_posix_remove=no
24960 fi
24961 rm -f conftest.err conftest.$ac_objext \
24962 conftest$ac_exeext conftest.$ac_ext
24963 LIBS=$ac_check_lib_save_LIBS
24964 fi
24965 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24966 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24967 if test $ac_cv_lib_posix_remove = yes; then
24968 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24969 fi
24970
24971 fi
24972
24973 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24974 echo "$as_me:$LINENO: checking for shmat" >&5
24975 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24976 if test "${ac_cv_func_shmat+set}" = set; then
24977 echo $ECHO_N "(cached) $ECHO_C" >&6
24978 else
24979 cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h. */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h. */
24985 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24987 #define shmat innocuous_shmat
24988
24989 /* System header to define __stub macros and hopefully few prototypes,
24990 which can conflict with char shmat (); below.
24991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24992 <limits.h> exists even on freestanding compilers. */
24993
24994 #ifdef __STDC__
24995 # include <limits.h>
24996 #else
24997 # include <assert.h>
24998 #endif
24999
25000 #undef shmat
25001
25002 /* Override any gcc2 internal prototype to avoid an error. */
25003 #ifdef __cplusplus
25004 extern "C"
25005 {
25006 #endif
25007 /* We use char because int might match the return type of a gcc2
25008 builtin and then its argument prototype would still apply. */
25009 char shmat ();
25010 /* The GNU C library defines this for functions which it implements
25011 to always fail with ENOSYS. Some functions are actually named
25012 something starting with __ and the normal name is an alias. */
25013 #if defined (__stub_shmat) || defined (__stub___shmat)
25014 choke me
25015 #else
25016 char (*f) () = shmat;
25017 #endif
25018 #ifdef __cplusplus
25019 }
25020 #endif
25021
25022 int
25023 main ()
25024 {
25025 return f != shmat;
25026 ;
25027 return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest.$ac_objext conftest$ac_exeext
25031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25032 (eval $ac_link) 2>conftest.er1
25033 ac_status=$?
25034 grep -v '^ *+' conftest.er1 >conftest.err
25035 rm -f conftest.er1
25036 cat conftest.err >&5
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } &&
25039 { ac_try='test -z "$ac_c_werror_flag"
25040 || test ! -s conftest.err'
25041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042 (eval $ac_try) 2>&5
25043 ac_status=$?
25044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045 (exit $ac_status); }; } &&
25046 { ac_try='test -s conftest$ac_exeext'
25047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25048 (eval $ac_try) 2>&5
25049 ac_status=$?
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); }; }; then
25052 ac_cv_func_shmat=yes
25053 else
25054 echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057 ac_cv_func_shmat=no
25058 fi
25059 rm -f conftest.err conftest.$ac_objext \
25060 conftest$ac_exeext conftest.$ac_ext
25061 fi
25062 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25063 echo "${ECHO_T}$ac_cv_func_shmat" >&6
25064
25065 if test $ac_cv_func_shmat = no; then
25066 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25067 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25068 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25069 echo $ECHO_N "(cached) $ECHO_C" >&6
25070 else
25071 ac_check_lib_save_LIBS=$LIBS
25072 LIBS="-lipc $LIBS"
25073 cat >conftest.$ac_ext <<_ACEOF
25074 /* confdefs.h. */
25075 _ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h. */
25079
25080 /* Override any gcc2 internal prototype to avoid an error. */
25081 #ifdef __cplusplus
25082 extern "C"
25083 #endif
25084 /* We use char because int might match the return type of a gcc2
25085 builtin and then its argument prototype would still apply. */
25086 char shmat ();
25087 int
25088 main ()
25089 {
25090 shmat ();
25091 ;
25092 return 0;
25093 }
25094 _ACEOF
25095 rm -f conftest.$ac_objext conftest$ac_exeext
25096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25097 (eval $ac_link) 2>conftest.er1
25098 ac_status=$?
25099 grep -v '^ *+' conftest.er1 >conftest.err
25100 rm -f conftest.er1
25101 cat conftest.err >&5
25102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103 (exit $ac_status); } &&
25104 { ac_try='test -z "$ac_c_werror_flag"
25105 || test ! -s conftest.err'
25106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25107 (eval $ac_try) 2>&5
25108 ac_status=$?
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); }; } &&
25111 { ac_try='test -s conftest$ac_exeext'
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; }; then
25117 ac_cv_lib_ipc_shmat=yes
25118 else
25119 echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25121
25122 ac_cv_lib_ipc_shmat=no
25123 fi
25124 rm -f conftest.err conftest.$ac_objext \
25125 conftest$ac_exeext conftest.$ac_ext
25126 LIBS=$ac_check_lib_save_LIBS
25127 fi
25128 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25129 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25130 if test $ac_cv_lib_ipc_shmat = yes; then
25131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25132 fi
25133
25134 fi
25135 fi
25136
25137 # Check for libraries that X11R6 Xt/Xaw programs need.
25138 ac_save_LDFLAGS=$LDFLAGS
25139 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25140 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25141 # check for ICE first), but we must link in the order -lSM -lICE or
25142 # we get undefined symbols. So assume we have SM if we have ICE.
25143 # These have to be linked with before -lX11, unlike the other
25144 # libraries we check for below, so use a different variable.
25145 # John Interrante, Karl Berry
25146 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25147 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25148 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25150 else
25151 ac_check_lib_save_LIBS=$LIBS
25152 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25153 cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h. */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159
25160 /* Override any gcc2 internal prototype to avoid an error. */
25161 #ifdef __cplusplus
25162 extern "C"
25163 #endif
25164 /* We use char because int might match the return type of a gcc2
25165 builtin and then its argument prototype would still apply. */
25166 char IceConnectionNumber ();
25167 int
25168 main ()
25169 {
25170 IceConnectionNumber ();
25171 ;
25172 return 0;
25173 }
25174 _ACEOF
25175 rm -f conftest.$ac_objext conftest$ac_exeext
25176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25177 (eval $ac_link) 2>conftest.er1
25178 ac_status=$?
25179 grep -v '^ *+' conftest.er1 >conftest.err
25180 rm -f conftest.er1
25181 cat conftest.err >&5
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
25184 { ac_try='test -z "$ac_c_werror_flag"
25185 || test ! -s conftest.err'
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest$ac_exeext'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_cv_lib_ICE_IceConnectionNumber=yes
25198 else
25199 echo "$as_me: failed program was:" >&5
25200 sed 's/^/| /' conftest.$ac_ext >&5
25201
25202 ac_cv_lib_ICE_IceConnectionNumber=no
25203 fi
25204 rm -f conftest.err conftest.$ac_objext \
25205 conftest$ac_exeext conftest.$ac_ext
25206 LIBS=$ac_check_lib_save_LIBS
25207 fi
25208 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25209 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25210 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25211 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25212 fi
25213
25214 LDFLAGS=$ac_save_LDFLAGS
25215
25216 fi
25217
25218
25219 if test "$no_x" = "yes"; then
25220 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25221 echo "$as_me: error: X11 not found" >&2;}
25222 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25223 fi
25224
25225 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25226 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
25227 AFMINSTALL=afminstall
25228 COMPILED_X_PROGRAM=0
25229
25230 fi
25231
25232 if test "$wxUSE_X11" = 1; then
25233 if test "$wxUSE_NANOX" = "yes"; then
25234 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25235 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25236 if test "x$MICROWIN" = x ; then
25237 echo "$as_me:$LINENO: result: not found" >&5
25238 echo "${ECHO_T}not found" >&6
25239 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25240 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25241 { (exit 1); exit 1; }; }
25242 else
25243 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25244 echo "${ECHO_T}$MICROWIN" >&6
25245 cat >>confdefs.h <<\_ACEOF
25246 #define wxUSE_NANOX 1
25247 _ACEOF
25248
25249 fi
25250 fi
25251
25252 if test "$wxUSE_UNICODE" = "yes"; then
25253
25254 succeeded=no
25255
25256 if test -z "$PKG_CONFIG"; then
25257 # Extract the first word of "pkg-config", so it can be a program name with args.
25258 set dummy pkg-config; ac_word=$2
25259 echo "$as_me:$LINENO: checking for $ac_word" >&5
25260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25261 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25262 echo $ECHO_N "(cached) $ECHO_C" >&6
25263 else
25264 case $PKG_CONFIG in
25265 [\\/]* | ?:[\\/]*)
25266 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25267 ;;
25268 *)
25269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25270 for as_dir in $PATH
25271 do
25272 IFS=$as_save_IFS
25273 test -z "$as_dir" && as_dir=.
25274 for ac_exec_ext in '' $ac_executable_extensions; do
25275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25276 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25278 break 2
25279 fi
25280 done
25281 done
25282
25283 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25284 ;;
25285 esac
25286 fi
25287 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25288
25289 if test -n "$PKG_CONFIG"; then
25290 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25291 echo "${ECHO_T}$PKG_CONFIG" >&6
25292 else
25293 echo "$as_me:$LINENO: result: no" >&5
25294 echo "${ECHO_T}no" >&6
25295 fi
25296
25297 fi
25298
25299 if test "$PKG_CONFIG" = "no" ; then
25300 echo "*** The pkg-config script could not be found. Make sure it is"
25301 echo "*** in your path, or set the PKG_CONFIG environment variable"
25302 echo "*** to the full path to pkg-config."
25303 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25304 else
25305 PKG_CONFIG_MIN_VERSION=0.9.0
25306 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25307 echo "$as_me:$LINENO: checking for pangox" >&5
25308 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25309
25310 if $PKG_CONFIG --exists "pangox" ; then
25311 echo "$as_me:$LINENO: result: yes" >&5
25312 echo "${ECHO_T}yes" >&6
25313 succeeded=yes
25314
25315 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25316 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25317 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25318 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25319 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25320
25321 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25322 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25323 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25324 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25325 echo "${ECHO_T}$PANGOX_LIBS" >&6
25326 else
25327 PANGOX_CFLAGS=""
25328 PANGOX_LIBS=""
25329 ## If we have a custom action on failure, don't print errors, but
25330 ## do set a variable so people can do so.
25331 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25332
25333 fi
25334
25335
25336
25337 else
25338 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25339 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25340 fi
25341 fi
25342
25343 if test $succeeded = yes; then
25344
25345 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25346 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25347
25348 else
25349
25350 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25351 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25352 { (exit 1); exit 1; }; }
25353
25354
25355 fi
25356
25357
25358 succeeded=no
25359
25360 if test -z "$PKG_CONFIG"; then
25361 # Extract the first word of "pkg-config", so it can be a program name with args.
25362 set dummy pkg-config; ac_word=$2
25363 echo "$as_me:$LINENO: checking for $ac_word" >&5
25364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25365 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25366 echo $ECHO_N "(cached) $ECHO_C" >&6
25367 else
25368 case $PKG_CONFIG in
25369 [\\/]* | ?:[\\/]*)
25370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25371 ;;
25372 *)
25373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25374 for as_dir in $PATH
25375 do
25376 IFS=$as_save_IFS
25377 test -z "$as_dir" && as_dir=.
25378 for ac_exec_ext in '' $ac_executable_extensions; do
25379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25380 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25382 break 2
25383 fi
25384 done
25385 done
25386
25387 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25388 ;;
25389 esac
25390 fi
25391 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25392
25393 if test -n "$PKG_CONFIG"; then
25394 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25395 echo "${ECHO_T}$PKG_CONFIG" >&6
25396 else
25397 echo "$as_me:$LINENO: result: no" >&5
25398 echo "${ECHO_T}no" >&6
25399 fi
25400
25401 fi
25402
25403 if test "$PKG_CONFIG" = "no" ; then
25404 echo "*** The pkg-config script could not be found. Make sure it is"
25405 echo "*** in your path, or set the PKG_CONFIG environment variable"
25406 echo "*** to the full path to pkg-config."
25407 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25408 else
25409 PKG_CONFIG_MIN_VERSION=0.9.0
25410 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25411 echo "$as_me:$LINENO: checking for pangoft2" >&5
25412 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25413
25414 if $PKG_CONFIG --exists "pangoft2" ; then
25415 echo "$as_me:$LINENO: result: yes" >&5
25416 echo "${ECHO_T}yes" >&6
25417 succeeded=yes
25418
25419 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25420 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25421 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25422 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25423 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25424
25425 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25426 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25427 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25428 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25429 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25430 else
25431 PANGOFT2_CFLAGS=""
25432 PANGOFT2_LIBS=""
25433 ## If we have a custom action on failure, don't print errors, but
25434 ## do set a variable so people can do so.
25435 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25436
25437 fi
25438
25439
25440
25441 else
25442 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25443 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25444 fi
25445 fi
25446
25447 if test $succeeded = yes; then
25448
25449 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25451
25452 else
25453
25454 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25455 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25456 wxUSE_PRINTING_ARCHITECTURE="no"
25457
25458
25459 fi
25460
25461
25462 succeeded=no
25463
25464 if test -z "$PKG_CONFIG"; then
25465 # Extract the first word of "pkg-config", so it can be a program name with args.
25466 set dummy pkg-config; ac_word=$2
25467 echo "$as_me:$LINENO: checking for $ac_word" >&5
25468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25469 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25470 echo $ECHO_N "(cached) $ECHO_C" >&6
25471 else
25472 case $PKG_CONFIG in
25473 [\\/]* | ?:[\\/]*)
25474 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25475 ;;
25476 *)
25477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25478 for as_dir in $PATH
25479 do
25480 IFS=$as_save_IFS
25481 test -z "$as_dir" && as_dir=.
25482 for ac_exec_ext in '' $ac_executable_extensions; do
25483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25484 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25486 break 2
25487 fi
25488 done
25489 done
25490
25491 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25492 ;;
25493 esac
25494 fi
25495 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25496
25497 if test -n "$PKG_CONFIG"; then
25498 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25499 echo "${ECHO_T}$PKG_CONFIG" >&6
25500 else
25501 echo "$as_me:$LINENO: result: no" >&5
25502 echo "${ECHO_T}no" >&6
25503 fi
25504
25505 fi
25506
25507 if test "$PKG_CONFIG" = "no" ; then
25508 echo "*** The pkg-config script could not be found. Make sure it is"
25509 echo "*** in your path, or set the PKG_CONFIG environment variable"
25510 echo "*** to the full path to pkg-config."
25511 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25512 else
25513 PKG_CONFIG_MIN_VERSION=0.9.0
25514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25515 echo "$as_me:$LINENO: checking for pangoxft" >&5
25516 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25517
25518 if $PKG_CONFIG --exists "pangoxft" ; then
25519 echo "$as_me:$LINENO: result: yes" >&5
25520 echo "${ECHO_T}yes" >&6
25521 succeeded=yes
25522
25523 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25524 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25525 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25526 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25527 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25528
25529 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25530 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25531 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25532 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25533 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25534 else
25535 PANGOXFT_CFLAGS=""
25536 PANGOXFT_LIBS=""
25537 ## If we have a custom action on failure, don't print errors, but
25538 ## do set a variable so people can do so.
25539 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25540
25541 fi
25542
25543
25544
25545 else
25546 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25547 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25548 fi
25549 fi
25550
25551 if test $succeeded = yes; then
25552
25553 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25554 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25555
25556 else
25557
25558 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25559 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25560
25561
25562 fi
25563
25564 save_CFLAGS="$CFLAGS"
25565 save_LIBS="$LIBS"
25566 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25567 LIBS="$LIBS $PANGOX_LIBS"
25568
25569 for ac_func in pango_font_family_is_monospace
25570 do
25571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25572 echo "$as_me:$LINENO: checking for $ac_func" >&5
25573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25574 if eval "test \"\${$as_ac_var+set}\" = set"; then
25575 echo $ECHO_N "(cached) $ECHO_C" >&6
25576 else
25577 cat >conftest.$ac_ext <<_ACEOF
25578 /* confdefs.h. */
25579 _ACEOF
25580 cat confdefs.h >>conftest.$ac_ext
25581 cat >>conftest.$ac_ext <<_ACEOF
25582 /* end confdefs.h. */
25583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25585 #define $ac_func innocuous_$ac_func
25586
25587 /* System header to define __stub macros and hopefully few prototypes,
25588 which can conflict with char $ac_func (); below.
25589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25590 <limits.h> exists even on freestanding compilers. */
25591
25592 #ifdef __STDC__
25593 # include <limits.h>
25594 #else
25595 # include <assert.h>
25596 #endif
25597
25598 #undef $ac_func
25599
25600 /* Override any gcc2 internal prototype to avoid an error. */
25601 #ifdef __cplusplus
25602 extern "C"
25603 {
25604 #endif
25605 /* We use char because int might match the return type of a gcc2
25606 builtin and then its argument prototype would still apply. */
25607 char $ac_func ();
25608 /* The GNU C library defines this for functions which it implements
25609 to always fail with ENOSYS. Some functions are actually named
25610 something starting with __ and the normal name is an alias. */
25611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25612 choke me
25613 #else
25614 char (*f) () = $ac_func;
25615 #endif
25616 #ifdef __cplusplus
25617 }
25618 #endif
25619
25620 int
25621 main ()
25622 {
25623 return f != $ac_func;
25624 ;
25625 return 0;
25626 }
25627 _ACEOF
25628 rm -f conftest.$ac_objext conftest$ac_exeext
25629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25630 (eval $ac_link) 2>conftest.er1
25631 ac_status=$?
25632 grep -v '^ *+' conftest.er1 >conftest.err
25633 rm -f conftest.er1
25634 cat conftest.err >&5
25635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25636 (exit $ac_status); } &&
25637 { ac_try='test -z "$ac_c_werror_flag"
25638 || test ! -s conftest.err'
25639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640 (eval $ac_try) 2>&5
25641 ac_status=$?
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; } &&
25644 { ac_try='test -s conftest$ac_exeext'
25645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646 (eval $ac_try) 2>&5
25647 ac_status=$?
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); }; }; then
25650 eval "$as_ac_var=yes"
25651 else
25652 echo "$as_me: failed program was:" >&5
25653 sed 's/^/| /' conftest.$ac_ext >&5
25654
25655 eval "$as_ac_var=no"
25656 fi
25657 rm -f conftest.err conftest.$ac_objext \
25658 conftest$ac_exeext conftest.$ac_ext
25659 fi
25660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25662 if test `eval echo '${'$as_ac_var'}'` = yes; then
25663 cat >>confdefs.h <<_ACEOF
25664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25665 _ACEOF
25666
25667 fi
25668 done
25669
25670 CFLAGS="$save_CFLAGS"
25671 LIBS="$save_LIBS"
25672 fi
25673
25674 wxUSE_UNIVERSAL="yes"
25675
25676 if test "$wxUSE_NANOX" = "yes"; then
25677 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25678 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"
25679 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25680 else
25681 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25682 fi
25683
25684 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
25685 TOOLKIT=X11
25686 GUIDIST=X11_DIST
25687 fi
25688
25689 if test "$wxUSE_MOTIF" = 1; then
25690 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25691 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25692
25693 ac_find_includes=
25694 for ac_dir in $SEARCH_INCLUDE /usr/include;
25695 do
25696 if test -f "$ac_dir/Xm/Xm.h"; then
25697 ac_find_includes=$ac_dir
25698 break
25699 fi
25700 done
25701
25702 if test "$ac_find_includes" != "" ; then
25703 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25704 echo "${ECHO_T}found in $ac_find_includes" >&6
25705
25706 if test "x$ac_find_includes" = "x/usr/include"; then
25707 ac_path_to_include=""
25708 else
25709 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25710 result=$?
25711 if test $result = 0; then
25712 ac_path_to_include=""
25713 else
25714 ac_path_to_include=" -I$ac_find_includes"
25715 fi
25716 fi
25717
25718 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25719 else
25720 cat >conftest.$ac_ext <<_ACEOF
25721 /* confdefs.h. */
25722 _ACEOF
25723 cat confdefs.h >>conftest.$ac_ext
25724 cat >>conftest.$ac_ext <<_ACEOF
25725 /* end confdefs.h. */
25726
25727 #include <Xm/Xm.h>
25728
25729 int
25730 main ()
25731 {
25732
25733 int version;
25734 version = xmUseVersion;
25735
25736 ;
25737 return 0;
25738 }
25739 _ACEOF
25740 rm -f conftest.$ac_objext
25741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25742 (eval $ac_compile) 2>conftest.er1
25743 ac_status=$?
25744 grep -v '^ *+' conftest.er1 >conftest.err
25745 rm -f conftest.er1
25746 cat conftest.err >&5
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); } &&
25749 { ac_try='test -z "$ac_c_werror_flag"
25750 || test ! -s conftest.err'
25751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752 (eval $ac_try) 2>&5
25753 ac_status=$?
25754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755 (exit $ac_status); }; } &&
25756 { ac_try='test -s conftest.$ac_objext'
25757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25758 (eval $ac_try) 2>&5
25759 ac_status=$?
25760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25761 (exit $ac_status); }; }; then
25762
25763 echo "$as_me:$LINENO: result: found in default search path" >&5
25764 echo "${ECHO_T}found in default search path" >&6
25765 COMPILED_X_PROGRAM=1
25766
25767 else
25768 echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25770
25771
25772 echo "$as_me:$LINENO: result: no" >&5
25773 echo "${ECHO_T}no" >&6
25774 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25775 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25776 { (exit 1); exit 1; }; }
25777
25778
25779 fi
25780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25781 fi
25782
25783 if test "$COMPILED_X_PROGRAM" = 0; then
25784 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25785 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25786
25787 ac_find_libraries=
25788 for ac_dir in $SEARCH_LIB /usr/lib;
25789 do
25790 for ac_extension in a so sl dylib; do
25791 if test -f "$ac_dir/libXm.$ac_extension"; then
25792 ac_find_libraries=$ac_dir
25793 break 2
25794 fi
25795 done
25796 done
25797
25798 if test "$ac_find_libraries" != "" ; then
25799 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25800 echo "${ECHO_T}found at $ac_find_libraries" >&6
25801
25802
25803 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25804 result=$?
25805 if test $result = 0; then
25806 ac_path_to_link=""
25807 else
25808 ac_path_to_link=" -L$ac_find_libraries"
25809 fi
25810
25811 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25812 else
25813 save_CFLAGS=$CFLAGS
25814 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25815
25816 cat >conftest.$ac_ext <<_ACEOF
25817 /* confdefs.h. */
25818 _ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
25821 /* end confdefs.h. */
25822
25823 #include <Xm/Xm.h>
25824
25825 int
25826 main ()
25827 {
25828
25829 int version;
25830 version = xmUseVersion;
25831
25832 ;
25833 return 0;
25834 }
25835 _ACEOF
25836 rm -f conftest.$ac_objext
25837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25838 (eval $ac_compile) 2>conftest.er1
25839 ac_status=$?
25840 grep -v '^ *+' conftest.er1 >conftest.err
25841 rm -f conftest.er1
25842 cat conftest.err >&5
25843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844 (exit $ac_status); } &&
25845 { ac_try='test -z "$ac_c_werror_flag"
25846 || test ! -s conftest.err'
25847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25848 (eval $ac_try) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); }; } &&
25852 { ac_try='test -s conftest.$ac_objext'
25853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25854 (eval $ac_try) 2>&5
25855 ac_status=$?
25856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25857 (exit $ac_status); }; }; then
25858
25859 echo "$as_me:$LINENO: result: found in default search path" >&5
25860 echo "${ECHO_T}found in default search path" >&6
25861 COMPILED_X_PROGRAM=1
25862
25863 else
25864 echo "$as_me: failed program was:" >&5
25865 sed 's/^/| /' conftest.$ac_ext >&5
25866
25867
25868 echo "$as_me:$LINENO: result: no" >&5
25869 echo "${ECHO_T}no" >&6
25870 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25871 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25872 { (exit 1); exit 1; }; }
25873
25874
25875 fi
25876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25877
25878 CFLAGS=$save_CFLAGS
25879 fi
25880 fi
25881
25882 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25883 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25884 libp_link=""
25885 libsm_ice_link=""
25886 libs_found=0
25887 for libp in "" " -lXp"; do
25888 if test "$libs_found" = "0"; then
25889 for libsm_ice in "" " -lSM -lICE"; do
25890 if test "$libs_found" = "0"; then
25891 save_LIBS="$LIBS"
25892 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25893 save_CFLAGS=$CFLAGS
25894 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25895
25896 cat >conftest.$ac_ext <<_ACEOF
25897 /* confdefs.h. */
25898 _ACEOF
25899 cat confdefs.h >>conftest.$ac_ext
25900 cat >>conftest.$ac_ext <<_ACEOF
25901 /* end confdefs.h. */
25902
25903 #include <Xm/Xm.h>
25904 #include <Xm/List.h>
25905
25906 int
25907 main ()
25908 {
25909
25910 XmString string = NULL;
25911 Widget w = NULL;
25912 int position = 0;
25913 XmListAddItem(w, string, position);
25914
25915 ;
25916 return 0;
25917 }
25918 _ACEOF
25919 rm -f conftest.$ac_objext conftest$ac_exeext
25920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25921 (eval $ac_link) 2>conftest.er1
25922 ac_status=$?
25923 grep -v '^ *+' conftest.er1 >conftest.err
25924 rm -f conftest.er1
25925 cat conftest.err >&5
25926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927 (exit $ac_status); } &&
25928 { ac_try='test -z "$ac_c_werror_flag"
25929 || test ! -s conftest.err'
25930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25931 (eval $ac_try) 2>&5
25932 ac_status=$?
25933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); }; } &&
25935 { ac_try='test -s conftest$ac_exeext'
25936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25937 (eval $ac_try) 2>&5
25938 ac_status=$?
25939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25940 (exit $ac_status); }; }; then
25941
25942 libp_link="$libp"
25943 libsm_ice_link="$libsm_ice"
25944 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25945 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25946 libs_found=1
25947
25948 else
25949 echo "$as_me: failed program was:" >&5
25950 sed 's/^/| /' conftest.$ac_ext >&5
25951
25952
25953
25954 fi
25955 rm -f conftest.err conftest.$ac_objext \
25956 conftest$ac_exeext conftest.$ac_ext
25957
25958 LIBS="$save_LIBS"
25959 CFLAGS=$save_CFLAGS
25960 fi
25961 done
25962 fi
25963 done
25964
25965 if test "$libs_found" = "0"; then
25966 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25967 echo "${ECHO_T}can't find the right libraries" >&6
25968 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25969 echo "$as_me: error: can't link a simple motif program" >&2;}
25970 { (exit 1); exit 1; }; }
25971 fi
25972
25973 save_CFLAGS=$CFLAGS
25974 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25975 echo "$as_me:$LINENO: checking for Motif 2" >&5
25976 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25977 cat >conftest.$ac_ext <<_ACEOF
25978 /* confdefs.h. */
25979 _ACEOF
25980 cat confdefs.h >>conftest.$ac_ext
25981 cat >>conftest.$ac_ext <<_ACEOF
25982 /* end confdefs.h. */
25983
25984 #include <Xm/Xm.h>
25985
25986 int
25987 main ()
25988 {
25989
25990 #if XmVersion < 2000
25991 #error "Not Motif 2"
25992 #endif
25993
25994 ;
25995 return 0;
25996 }
25997 _ACEOF
25998 rm -f conftest.$ac_objext
25999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26000 (eval $ac_compile) 2>conftest.er1
26001 ac_status=$?
26002 grep -v '^ *+' conftest.er1 >conftest.err
26003 rm -f conftest.er1
26004 cat conftest.err >&5
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } &&
26007 { ac_try='test -z "$ac_c_werror_flag"
26008 || test ! -s conftest.err'
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; } &&
26014 { ac_try='test -s conftest.$ac_objext'
26015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016 (eval $ac_try) 2>&5
26017 ac_status=$?
26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019 (exit $ac_status); }; }; then
26020
26021 cat >>confdefs.h <<\_ACEOF
26022 #define __WXMOTIF20__ 1
26023 _ACEOF
26024
26025 echo "$as_me:$LINENO: result: found" >&5
26026 echo "${ECHO_T}found" >&6
26027
26028 else
26029 echo "$as_me: failed program was:" >&5
26030 sed 's/^/| /' conftest.$ac_ext >&5
26031
26032
26033 cat >>confdefs.h <<\_ACEOF
26034 #define __WXMOTIF20__ 0
26035 _ACEOF
26036
26037 echo "$as_me:$LINENO: result: not found" >&5
26038 echo "${ECHO_T}not found" >&6
26039
26040 fi
26041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26042 CFLAGS=$save_CFLAGS
26043
26044 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26045 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26046 TOOLKIT=MOTIF
26047 GUIDIST=MOTIF_DIST
26048 fi
26049
26050 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26051 if test "$wxUSE_LIBXPM" = "sys"; then
26052 echo "$as_me:$LINENO: checking for Xpm library" >&5
26053 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26054
26055 ac_find_libraries=
26056 for ac_dir in $SEARCH_LIB /usr/lib;
26057 do
26058 for ac_extension in a so sl dylib; do
26059 if test -f "$ac_dir/libXpm.$ac_extension"; then
26060 ac_find_libraries=$ac_dir
26061 break 2
26062 fi
26063 done
26064 done
26065
26066 if test "$ac_find_libraries" != "" ; then
26067
26068 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26069 result=$?
26070 if test $result = 0; then
26071 ac_path_to_link=""
26072 else
26073 ac_path_to_link=" -L$ac_find_libraries"
26074 fi
26075
26076 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26077 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26078 echo "${ECHO_T}found at $ac_find_libraries" >&6
26079
26080 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26081 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26082 if test "${wx_cv_x11_xpm_h+set}" = set; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26084 else
26085
26086 save_CFLAGS=$CFLAGS
26087 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26088
26089 cat >conftest.$ac_ext <<_ACEOF
26090 /* confdefs.h. */
26091 _ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095
26096 #include <X11/xpm.h>
26097
26098 int
26099 main ()
26100 {
26101
26102 int version;
26103 version = XpmLibraryVersion();
26104
26105 ;
26106 return 0;
26107 }
26108 _ACEOF
26109 rm -f conftest.$ac_objext
26110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26111 (eval $ac_compile) 2>conftest.er1
26112 ac_status=$?
26113 grep -v '^ *+' conftest.er1 >conftest.err
26114 rm -f conftest.er1
26115 cat conftest.err >&5
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } &&
26118 { ac_try='test -z "$ac_c_werror_flag"
26119 || test ! -s conftest.err'
26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26121 (eval $ac_try) 2>&5
26122 ac_status=$?
26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124 (exit $ac_status); }; } &&
26125 { ac_try='test -s conftest.$ac_objext'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; }; then
26131 wx_cv_x11_xpm_h=yes
26132 else
26133 echo "$as_me: failed program was:" >&5
26134 sed 's/^/| /' conftest.$ac_ext >&5
26135
26136 wx_cv_x11_xpm_h=no
26137
26138 fi
26139 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26140
26141 CFLAGS=$save_CFLAGS
26142
26143
26144 fi
26145 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26146 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26147
26148 if test $wx_cv_x11_xpm_h = "yes"; then
26149 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26150 cat >>confdefs.h <<\_ACEOF
26151 #define wxHAVE_LIB_XPM 1
26152 _ACEOF
26153
26154 else
26155 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26156 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26157 fi
26158 fi
26159
26160 fi
26161
26162 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26163 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26164 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26165 echo $ECHO_N "(cached) $ECHO_C" >&6
26166 else
26167 ac_check_lib_save_LIBS=$LIBS
26168 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26169 cat >conftest.$ac_ext <<_ACEOF
26170 /* confdefs.h. */
26171 _ACEOF
26172 cat confdefs.h >>conftest.$ac_ext
26173 cat >>conftest.$ac_ext <<_ACEOF
26174 /* end confdefs.h. */
26175
26176 /* Override any gcc2 internal prototype to avoid an error. */
26177 #ifdef __cplusplus
26178 extern "C"
26179 #endif
26180 /* We use char because int might match the return type of a gcc2
26181 builtin and then its argument prototype would still apply. */
26182 char XShapeQueryExtension ();
26183 int
26184 main ()
26185 {
26186 XShapeQueryExtension ();
26187 ;
26188 return 0;
26189 }
26190 _ACEOF
26191 rm -f conftest.$ac_objext conftest$ac_exeext
26192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26193 (eval $ac_link) 2>conftest.er1
26194 ac_status=$?
26195 grep -v '^ *+' conftest.er1 >conftest.err
26196 rm -f conftest.er1
26197 cat conftest.err >&5
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); } &&
26200 { ac_try='test -z "$ac_c_werror_flag"
26201 || test ! -s conftest.err'
26202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); }; } &&
26207 { ac_try='test -s conftest$ac_exeext'
26208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213 ac_cv_lib_Xext_XShapeQueryExtension=yes
26214 else
26215 echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26217
26218 ac_cv_lib_Xext_XShapeQueryExtension=no
26219 fi
26220 rm -f conftest.err conftest.$ac_objext \
26221 conftest$ac_exeext conftest.$ac_ext
26222 LIBS=$ac_check_lib_save_LIBS
26223 fi
26224 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26225 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26226 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26227
26228 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26229 wxHAVE_XEXT_LIB=1
26230
26231 fi
26232
26233
26234 if test "$wxHAVE_XEXT_LIB" = 1; then
26235 save_CFLAGS="$CFLAGS"
26236 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26237
26238 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26239 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26240 cat >conftest.$ac_ext <<_ACEOF
26241 /* confdefs.h. */
26242 _ACEOF
26243 cat confdefs.h >>conftest.$ac_ext
26244 cat >>conftest.$ac_ext <<_ACEOF
26245 /* end confdefs.h. */
26246
26247 #include <X11/Xlib.h>
26248 #include <X11/extensions/shape.h>
26249
26250 int
26251 main ()
26252 {
26253
26254 int dummy1, dummy2;
26255 XShapeQueryExtension((Display*)NULL,
26256 (int*)NULL, (int*)NULL);
26257
26258 ;
26259 return 0;
26260 }
26261 _ACEOF
26262 rm -f conftest.$ac_objext
26263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26264 (eval $ac_compile) 2>conftest.er1
26265 ac_status=$?
26266 grep -v '^ *+' conftest.er1 >conftest.err
26267 rm -f conftest.er1
26268 cat conftest.err >&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } &&
26271 { ac_try='test -z "$ac_c_werror_flag"
26272 || test ! -s conftest.err'
26273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26274 (eval $ac_try) 2>&5
26275 ac_status=$?
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); }; } &&
26278 { ac_try='test -s conftest.$ac_objext'
26279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); }; }; then
26284
26285 cat >>confdefs.h <<\_ACEOF
26286 #define HAVE_XSHAPE 1
26287 _ACEOF
26288
26289 echo "$as_me:$LINENO: result: found" >&5
26290 echo "${ECHO_T}found" >&6
26291
26292 else
26293 echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296
26297 echo "$as_me:$LINENO: result: not found" >&5
26298 echo "${ECHO_T}not found" >&6
26299
26300 fi
26301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26302 CFLAGS="$save_CFLAGS"
26303
26304 fi
26305 fi
26306
26307 if test "$wxUSE_MAC" = 1; then
26308 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26309 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26310 if test "$GCC" = yes; then
26311 echo "$as_me:$LINENO: result: gcc" >&5
26312 echo "${ECHO_T}gcc" >&6
26313 CPPFLAGS_PASCAL="-fpascal-strings"
26314 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26315 echo "$as_me:$LINENO: result: xlc" >&5
26316 echo "${ECHO_T}xlc" >&6
26317 CPPFLAGS_PASCAL="-qmacpstr"
26318 else
26319 echo "$as_me:$LINENO: result: none" >&5
26320 echo "${ECHO_T}none" >&6
26321 fi
26322
26323 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26324
26325 TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26326 TOOLKIT=MAC
26327 GUIDIST=MACX_DIST
26328 WXBASEPORT="_carbon"
26329 fi
26330
26331 if test "$wxUSE_COCOA" = 1; then
26332 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26333 TOOLKIT=COCOA
26334 GUIDIST=COCOA_DIST
26335 fi
26336
26337 if test "$wxUSE_PM" = 1; then
26338 TOOLKIT=PM
26339 GUIDIST=PM_DIST
26340 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26341 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26342 if test "${wx_cv_spbcdata+set}" = set; then
26343 echo $ECHO_N "(cached) $ECHO_C" >&6
26344 else
26345
26346 cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h. */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h. */
26352
26353 #define INCL_PM
26354 #include <os2.h>
26355
26356 int
26357 main ()
26358 {
26359
26360 SPBCDATA test;
26361
26362 ;
26363 return 0;
26364 }
26365 _ACEOF
26366 rm -f conftest.$ac_objext
26367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26368 (eval $ac_compile) 2>conftest.er1
26369 ac_status=$?
26370 grep -v '^ *+' conftest.er1 >conftest.err
26371 rm -f conftest.er1
26372 cat conftest.err >&5
26373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374 (exit $ac_status); } &&
26375 { ac_try='test -z "$ac_c_werror_flag"
26376 || test ! -s conftest.err'
26377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 (eval $ac_try) 2>&5
26379 ac_status=$?
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); }; } &&
26382 { ac_try='test -s conftest.$ac_objext'
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; }; then
26388 wx_cv_spbcdata=yes
26389 else
26390 echo "$as_me: failed program was:" >&5
26391 sed 's/^/| /' conftest.$ac_ext >&5
26392
26393 wx_cv_spbcdata=no
26394
26395 fi
26396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26397
26398
26399 fi
26400 echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26401 echo "${ECHO_T}$wx_cv_spbcdata" >&6
26402
26403 if test $wx_cv_spbcdata = "yes"; then
26404 cat >>confdefs.h <<\_ACEOF
26405 #define HAVE_SPBCDATA 1
26406 _ACEOF
26407
26408 fi
26409 fi
26410
26411 if test "$TOOLKIT" = "PM" ; then
26412 TOOLKIT_DIR="os2"
26413 else
26414 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26415 fi
26416
26417 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26418
26419 if test "$wxUSE_UNIVERSAL" = "yes"; then
26420 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26421
26422 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26423 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26424
26425 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26426 if test "$wxUSE_X11" = 1; then
26427 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26428 else
26429 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26430 fi
26431 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26432 WIDGET_SET=univ
26433 else
26434 ALL_OBJECTS="\$(GUIOBJS)"
26435 ALL_SOURCES="\$(ALL_SOURCES)"
26436 ALL_HEADERS="\$(ALL_HEADERS)"
26437 fi
26438
26439 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26440
26441 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26442 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26443 fi
26444
26445 if test "$wxUSE_HTML" = "yes"; then
26446 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26447 fi
26448
26449 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26450 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26451 fi
26452 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26453 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26454 fi
26455 if test "$wxUSE_LIBPNG" = "builtin" ; then
26456 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26457 fi
26458
26459 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26460 DISTDIR="wx\$(TOOLKIT)"
26461 else
26462 USE_GUI=0
26463
26464 TOOLKIT_DIR="base"
26465
26466 if test "$USE_WIN32" = 1 ; then
26467 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26468 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26469
26470 TOOLKIT="MSW"
26471 else
26472 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26473 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26474 fi
26475
26476 ALL_SOURCES="\$(ALL_SOURCES)"
26477 ALL_HEADERS="\$(ALL_HEADERS)"
26478
26479 PORT_FILES="\${top_srcdir}/src/files.lst"
26480
26481 GUIDIST="BASE_DIST"
26482 DISTDIR="wxBase"
26483 fi
26484
26485
26486
26487
26488 IODBC_C_SRC=""
26489
26490
26491 if test "$TOOLKIT" != "MSW" ; then
26492
26493 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26494
26495 if test "${ac_cv_header_sql_h+set}" = set; then
26496 echo "$as_me:$LINENO: checking for sql.h" >&5
26497 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26498 if test "${ac_cv_header_sql_h+set}" = set; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26500 fi
26501 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26502 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26503 else
26504 # Is the header compilable?
26505 echo "$as_me:$LINENO: checking sql.h usability" >&5
26506 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26507 cat >conftest.$ac_ext <<_ACEOF
26508 /* confdefs.h. */
26509 _ACEOF
26510 cat confdefs.h >>conftest.$ac_ext
26511 cat >>conftest.$ac_ext <<_ACEOF
26512 /* end confdefs.h. */
26513 $ac_includes_default
26514 #include <sql.h>
26515 _ACEOF
26516 rm -f conftest.$ac_objext
26517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26518 (eval $ac_compile) 2>conftest.er1
26519 ac_status=$?
26520 grep -v '^ *+' conftest.er1 >conftest.err
26521 rm -f conftest.er1
26522 cat conftest.err >&5
26523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26524 (exit $ac_status); } &&
26525 { ac_try='test -z "$ac_c_werror_flag"
26526 || test ! -s conftest.err'
26527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26528 (eval $ac_try) 2>&5
26529 ac_status=$?
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); }; } &&
26532 { ac_try='test -s conftest.$ac_objext'
26533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534 (eval $ac_try) 2>&5
26535 ac_status=$?
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); }; }; then
26538 ac_header_compiler=yes
26539 else
26540 echo "$as_me: failed program was:" >&5
26541 sed 's/^/| /' conftest.$ac_ext >&5
26542
26543 ac_header_compiler=no
26544 fi
26545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26546 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26547 echo "${ECHO_T}$ac_header_compiler" >&6
26548
26549 # Is the header present?
26550 echo "$as_me:$LINENO: checking sql.h presence" >&5
26551 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26552 cat >conftest.$ac_ext <<_ACEOF
26553 /* confdefs.h. */
26554 _ACEOF
26555 cat confdefs.h >>conftest.$ac_ext
26556 cat >>conftest.$ac_ext <<_ACEOF
26557 /* end confdefs.h. */
26558 #include <sql.h>
26559 _ACEOF
26560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26562 ac_status=$?
26563 grep -v '^ *+' conftest.er1 >conftest.err
26564 rm -f conftest.er1
26565 cat conftest.err >&5
26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26567 (exit $ac_status); } >/dev/null; then
26568 if test -s conftest.err; then
26569 ac_cpp_err=$ac_c_preproc_warn_flag
26570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26571 else
26572 ac_cpp_err=
26573 fi
26574 else
26575 ac_cpp_err=yes
26576 fi
26577 if test -z "$ac_cpp_err"; then
26578 ac_header_preproc=yes
26579 else
26580 echo "$as_me: failed program was:" >&5
26581 sed 's/^/| /' conftest.$ac_ext >&5
26582
26583 ac_header_preproc=no
26584 fi
26585 rm -f conftest.err conftest.$ac_ext
26586 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26587 echo "${ECHO_T}$ac_header_preproc" >&6
26588
26589 # So? What about this header?
26590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26591 yes:no: )
26592 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26593 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26594 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26595 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26596 ac_header_preproc=yes
26597 ;;
26598 no:yes:* )
26599 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26600 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26601 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26602 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26603 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26604 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26605 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26606 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
26607 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26608 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26609 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26610 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26611 (
26612 cat <<\_ASBOX
26613 ## ----------------------------------------- ##
26614 ## Report this to wx-dev@lists.wxwidgets.org ##
26615 ## ----------------------------------------- ##
26616 _ASBOX
26617 ) |
26618 sed "s/^/$as_me: WARNING: /" >&2
26619 ;;
26620 esac
26621 echo "$as_me:$LINENO: checking for sql.h" >&5
26622 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26623 if test "${ac_cv_header_sql_h+set}" = set; then
26624 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 else
26626 ac_cv_header_sql_h=$ac_header_preproc
26627 fi
26628 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26629 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26630
26631 fi
26632 if test $ac_cv_header_sql_h = yes; then
26633 found_sql_h=1
26634 fi
26635
26636
26637 if test "x$found_sql_h" = "x1" ; then
26638 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26639 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26640 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26641 echo $ECHO_N "(cached) $ECHO_C" >&6
26642 else
26643 ac_check_lib_save_LIBS=$LIBS
26644 LIBS="-liodbc $LIBS"
26645 cat >conftest.$ac_ext <<_ACEOF
26646 /* confdefs.h. */
26647 _ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26651
26652 /* Override any gcc2 internal prototype to avoid an error. */
26653 #ifdef __cplusplus
26654 extern "C"
26655 #endif
26656 /* We use char because int might match the return type of a gcc2
26657 builtin and then its argument prototype would still apply. */
26658 char SQLAllocEnv ();
26659 int
26660 main ()
26661 {
26662 SQLAllocEnv ();
26663 ;
26664 return 0;
26665 }
26666 _ACEOF
26667 rm -f conftest.$ac_objext conftest$ac_exeext
26668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26669 (eval $ac_link) 2>conftest.er1
26670 ac_status=$?
26671 grep -v '^ *+' conftest.er1 >conftest.err
26672 rm -f conftest.er1
26673 cat conftest.err >&5
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); } &&
26676 { ac_try='test -z "$ac_c_werror_flag"
26677 || test ! -s conftest.err'
26678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679 (eval $ac_try) 2>&5
26680 ac_status=$?
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); }; } &&
26683 { ac_try='test -s conftest$ac_exeext'
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; }; then
26689 ac_cv_lib_iodbc_SQLAllocEnv=yes
26690 else
26691 echo "$as_me: failed program was:" >&5
26692 sed 's/^/| /' conftest.$ac_ext >&5
26693
26694 ac_cv_lib_iodbc_SQLAllocEnv=no
26695 fi
26696 rm -f conftest.err conftest.$ac_objext \
26697 conftest$ac_exeext conftest.$ac_ext
26698 LIBS=$ac_check_lib_save_LIBS
26699 fi
26700 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26701 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26702 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26703 ODBC_LINK=" -liodbc"
26704 else
26705
26706 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26707 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26708 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26710 else
26711 ac_check_lib_save_LIBS=$LIBS
26712 LIBS="-lunixodbc $LIBS"
26713 cat >conftest.$ac_ext <<_ACEOF
26714 /* confdefs.h. */
26715 _ACEOF
26716 cat confdefs.h >>conftest.$ac_ext
26717 cat >>conftest.$ac_ext <<_ACEOF
26718 /* end confdefs.h. */
26719
26720 /* Override any gcc2 internal prototype to avoid an error. */
26721 #ifdef __cplusplus
26722 extern "C"
26723 #endif
26724 /* We use char because int might match the return type of a gcc2
26725 builtin and then its argument prototype would still apply. */
26726 char SQLAllocEnv ();
26727 int
26728 main ()
26729 {
26730 SQLAllocEnv ();
26731 ;
26732 return 0;
26733 }
26734 _ACEOF
26735 rm -f conftest.$ac_objext conftest$ac_exeext
26736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26737 (eval $ac_link) 2>conftest.er1
26738 ac_status=$?
26739 grep -v '^ *+' conftest.er1 >conftest.err
26740 rm -f conftest.er1
26741 cat conftest.err >&5
26742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } &&
26744 { ac_try='test -z "$ac_c_werror_flag"
26745 || test ! -s conftest.err'
26746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747 (eval $ac_try) 2>&5
26748 ac_status=$?
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); }; } &&
26751 { ac_try='test -s conftest$ac_exeext'
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; }; then
26757 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26758 else
26759 echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26761
26762 ac_cv_lib_unixodbc_SQLAllocEnv=no
26763 fi
26764 rm -f conftest.err conftest.$ac_objext \
26765 conftest$ac_exeext conftest.$ac_ext
26766 LIBS=$ac_check_lib_save_LIBS
26767 fi
26768 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26769 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26770 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26771 ODBC_LINK=" -lunixodbc"
26772 else
26773
26774 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26775 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26776 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26777 echo $ECHO_N "(cached) $ECHO_C" >&6
26778 else
26779 ac_check_lib_save_LIBS=$LIBS
26780 LIBS="-lodbc $LIBS"
26781 cat >conftest.$ac_ext <<_ACEOF
26782 /* confdefs.h. */
26783 _ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h. */
26787
26788 /* Override any gcc2 internal prototype to avoid an error. */
26789 #ifdef __cplusplus
26790 extern "C"
26791 #endif
26792 /* We use char because int might match the return type of a gcc2
26793 builtin and then its argument prototype would still apply. */
26794 char SQLAllocEnv ();
26795 int
26796 main ()
26797 {
26798 SQLAllocEnv ();
26799 ;
26800 return 0;
26801 }
26802 _ACEOF
26803 rm -f conftest.$ac_objext conftest$ac_exeext
26804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26805 (eval $ac_link) 2>conftest.er1
26806 ac_status=$?
26807 grep -v '^ *+' conftest.er1 >conftest.err
26808 rm -f conftest.er1
26809 cat conftest.err >&5
26810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26811 (exit $ac_status); } &&
26812 { ac_try='test -z "$ac_c_werror_flag"
26813 || test ! -s conftest.err'
26814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26815 (eval $ac_try) 2>&5
26816 ac_status=$?
26817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26818 (exit $ac_status); }; } &&
26819 { ac_try='test -s conftest$ac_exeext'
26820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26821 (eval $ac_try) 2>&5
26822 ac_status=$?
26823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26824 (exit $ac_status); }; }; then
26825 ac_cv_lib_odbc_SQLAllocEnv=yes
26826 else
26827 echo "$as_me: failed program was:" >&5
26828 sed 's/^/| /' conftest.$ac_ext >&5
26829
26830 ac_cv_lib_odbc_SQLAllocEnv=no
26831 fi
26832 rm -f conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
26834 LIBS=$ac_check_lib_save_LIBS
26835 fi
26836 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26837 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26838 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26839 ODBC_LINK=" -lodbc"
26840 fi
26841
26842
26843 fi
26844
26845
26846 fi
26847
26848 fi
26849 if test "x$ODBC_LINK" = "x" ; then
26850 if test "$wxUSE_ODBC" = "sys" ; then
26851 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26852 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26853 { (exit 1); exit 1; }; }
26854 else
26855 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26856 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26857 wxUSE_ODBC=builtin
26858 fi
26859 else
26860 wxUSE_ODBC=sys
26861 fi
26862 fi
26863 if test "$wxUSE_ODBC" != "no" ; then
26864 cat >>confdefs.h <<\_ACEOF
26865 #define wxUSE_ODBC 1
26866 _ACEOF
26867
26868 if test "$wxUSE_ODBC" = "builtin" ; then
26869 cat >>confdefs.h <<\_ACEOF
26870 #define wxUSE_BUILTIN_IODBC 1
26871 _ACEOF
26872
26873 fi
26874 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26875
26876 WXODBCFLAG="-D_IODBC_"
26877 fi
26878 fi
26879
26880 if test "$wxUSE_REGEX" = "builtin" ; then
26881 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26882 fi
26883 if test "$wxUSE_ZLIB" = "builtin" ; then
26884 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26885 fi
26886
26887
26888 if test "$wxUSE_DISPLAY" = "yes"; then
26889 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
26890 echo "$as_me:$LINENO: checking for Xinerama" >&5
26891 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26892
26893 ac_find_libraries=
26894 for ac_dir in $SEARCH_LIB /usr/lib;
26895 do
26896 for ac_extension in a so sl dylib; do
26897 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26898 ac_find_libraries=$ac_dir
26899 break 2
26900 fi
26901 done
26902 done
26903
26904 if test "$ac_find_libraries" != "" ; then
26905
26906 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26907 result=$?
26908 if test $result = 0; then
26909 ac_path_to_link=""
26910 else
26911 ac_path_to_link=" -L$ac_find_libraries"
26912 fi
26913
26914 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26915 LDFLAGS="$LDFLAGS $ac_path_to_link"
26916 fi
26917 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26918 echo "$as_me:$LINENO: result: yes" >&5
26919 echo "${ECHO_T}yes" >&6
26920
26921 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26922 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26923
26924 ac_find_libraries=
26925 for ac_dir in $SEARCH_LIB /usr/lib;
26926 do
26927 for ac_extension in a so sl dylib; do
26928 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26929 ac_find_libraries=$ac_dir
26930 break 2
26931 fi
26932 done
26933 done
26934
26935 if test "$ac_find_libraries" != "" ; then
26936 echo "$as_me:$LINENO: result: yes" >&5
26937 echo "${ECHO_T}yes" >&6
26938
26939 for ac_header in X11/extensions/xf86vmode.h
26940 do
26941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26942 echo "$as_me:$LINENO: checking for $ac_header" >&5
26943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26946 else
26947 cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h. */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26953
26954 #if HAVE_X11_XLIB_H
26955 #include <X11/Xlib.h>
26956 #endif
26957
26958
26959 #include <$ac_header>
26960 _ACEOF
26961 rm -f conftest.$ac_objext
26962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26963 (eval $ac_compile) 2>conftest.er1
26964 ac_status=$?
26965 grep -v '^ *+' conftest.er1 >conftest.err
26966 rm -f conftest.er1
26967 cat conftest.err >&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); } &&
26970 { ac_try='test -z "$ac_c_werror_flag"
26971 || test ! -s conftest.err'
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26976 (exit $ac_status); }; } &&
26977 { ac_try='test -s conftest.$ac_objext'
26978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26979 (eval $ac_try) 2>&5
26980 ac_status=$?
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; }; then
26983 eval "$as_ac_Header=yes"
26984 else
26985 echo "$as_me: failed program was:" >&5
26986 sed 's/^/| /' conftest.$ac_ext >&5
26987
26988 eval "$as_ac_Header=no"
26989 fi
26990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26991 fi
26992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26994 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26995 cat >>confdefs.h <<_ACEOF
26996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26997 _ACEOF
26998
26999 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27000
27001 fi
27002
27003 done
27004
27005 else
27006 echo "$as_me:$LINENO: result: no" >&5
27007 echo "${ECHO_T}no" >&6
27008 fi
27009
27010 else
27011 echo "$as_me:$LINENO: result: no" >&5
27012 echo "${ECHO_T}no" >&6
27013 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27014 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
27015 wxUSE_DISPLAY="no"
27016 fi
27017 elif test "$wxUSE_MSW" = 1; then
27018
27019
27020 for ac_header in multimon.h ddraw.h
27021 do
27022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27024 echo "$as_me:$LINENO: checking for $ac_header" >&5
27025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27027 echo $ECHO_N "(cached) $ECHO_C" >&6
27028 fi
27029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27030 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27031 else
27032 # Is the header compilable?
27033 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27035 cat >conftest.$ac_ext <<_ACEOF
27036 /* confdefs.h. */
27037 _ACEOF
27038 cat confdefs.h >>conftest.$ac_ext
27039 cat >>conftest.$ac_ext <<_ACEOF
27040 /* end confdefs.h. */
27041 $ac_includes_default
27042 #include <$ac_header>
27043 _ACEOF
27044 rm -f conftest.$ac_objext
27045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27046 (eval $ac_compile) 2>conftest.er1
27047 ac_status=$?
27048 grep -v '^ *+' conftest.er1 >conftest.err
27049 rm -f conftest.er1
27050 cat conftest.err >&5
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); } &&
27053 { ac_try='test -z "$ac_c_werror_flag"
27054 || test ! -s conftest.err'
27055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27056 (eval $ac_try) 2>&5
27057 ac_status=$?
27058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27059 (exit $ac_status); }; } &&
27060 { ac_try='test -s conftest.$ac_objext'
27061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27062 (eval $ac_try) 2>&5
27063 ac_status=$?
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); }; }; then
27066 ac_header_compiler=yes
27067 else
27068 echo "$as_me: failed program was:" >&5
27069 sed 's/^/| /' conftest.$ac_ext >&5
27070
27071 ac_header_compiler=no
27072 fi
27073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27074 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27075 echo "${ECHO_T}$ac_header_compiler" >&6
27076
27077 # Is the header present?
27078 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27080 cat >conftest.$ac_ext <<_ACEOF
27081 /* confdefs.h. */
27082 _ACEOF
27083 cat confdefs.h >>conftest.$ac_ext
27084 cat >>conftest.$ac_ext <<_ACEOF
27085 /* end confdefs.h. */
27086 #include <$ac_header>
27087 _ACEOF
27088 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27090 ac_status=$?
27091 grep -v '^ *+' conftest.er1 >conftest.err
27092 rm -f conftest.er1
27093 cat conftest.err >&5
27094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 (exit $ac_status); } >/dev/null; then
27096 if test -s conftest.err; then
27097 ac_cpp_err=$ac_c_preproc_warn_flag
27098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27099 else
27100 ac_cpp_err=
27101 fi
27102 else
27103 ac_cpp_err=yes
27104 fi
27105 if test -z "$ac_cpp_err"; then
27106 ac_header_preproc=yes
27107 else
27108 echo "$as_me: failed program was:" >&5
27109 sed 's/^/| /' conftest.$ac_ext >&5
27110
27111 ac_header_preproc=no
27112 fi
27113 rm -f conftest.err conftest.$ac_ext
27114 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27115 echo "${ECHO_T}$ac_header_preproc" >&6
27116
27117 # So? What about this header?
27118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27119 yes:no: )
27120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27124 ac_header_preproc=yes
27125 ;;
27126 no:yes:* )
27127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27139 (
27140 cat <<\_ASBOX
27141 ## ----------------------------------------- ##
27142 ## Report this to wx-dev@lists.wxwidgets.org ##
27143 ## ----------------------------------------- ##
27144 _ASBOX
27145 ) |
27146 sed "s/^/$as_me: WARNING: /" >&2
27147 ;;
27148 esac
27149 echo "$as_me:$LINENO: checking for $ac_header" >&5
27150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27152 echo $ECHO_N "(cached) $ECHO_C" >&6
27153 else
27154 eval "$as_ac_Header=\$ac_header_preproc"
27155 fi
27156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27157 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27158
27159 fi
27160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27161 cat >>confdefs.h <<_ACEOF
27162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27163 _ACEOF
27164
27165 else
27166
27167 wxUSE_DISPLAY="no"
27168 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27169 echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
27170
27171 fi
27172
27173 done
27174
27175 fi
27176 fi
27177
27178
27179 USE_OPENGL=0
27180 if test "$wxUSE_OPENGL" = "yes"; then
27181 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27182 OPENGL_LIBS="-framework OpenGL -framework AGL"
27183 elif test "$wxUSE_MSW" = 1; then
27184 OPENGL_LIBS="-lopengl32 -lglu32"
27185 else
27186
27187
27188 ac_find_includes=
27189 for ac_dir in $SEARCH_INCLUDE /usr/include;
27190 do
27191 if test -f "$ac_dir/GL/gl.h"; then
27192 ac_find_includes=$ac_dir
27193 break
27194 fi
27195 done
27196
27197 if test "$ac_find_includes" != "" ; then
27198 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27199 echo "${ECHO_T}found in $ac_find_includes" >&6
27200
27201 if test "x$ac_find_includes" = "x/usr/include"; then
27202 ac_path_to_include=""
27203 else
27204 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27205 result=$?
27206 if test $result = 0; then
27207 ac_path_to_include=""
27208 else
27209 ac_path_to_include=" -I$ac_find_includes"
27210 fi
27211 fi
27212
27213 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27214 fi
27215
27216 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27217 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27218 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27219 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27220 echo $ECHO_N "(cached) $ECHO_C" >&6
27221 fi
27222 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27223 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27224 else
27225 # Is the header compilable?
27226 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27227 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27228 cat >conftest.$ac_ext <<_ACEOF
27229 /* confdefs.h. */
27230 _ACEOF
27231 cat confdefs.h >>conftest.$ac_ext
27232 cat >>conftest.$ac_ext <<_ACEOF
27233 /* end confdefs.h. */
27234 $ac_includes_default
27235 #include <GL/gl.h>
27236 _ACEOF
27237 rm -f conftest.$ac_objext
27238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27239 (eval $ac_compile) 2>conftest.er1
27240 ac_status=$?
27241 grep -v '^ *+' conftest.er1 >conftest.err
27242 rm -f conftest.er1
27243 cat conftest.err >&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } &&
27246 { ac_try='test -z "$ac_c_werror_flag"
27247 || test ! -s conftest.err'
27248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27249 (eval $ac_try) 2>&5
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; } &&
27253 { ac_try='test -s conftest.$ac_objext'
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 ac_header_compiler=yes
27260 else
27261 echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27263
27264 ac_header_compiler=no
27265 fi
27266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27268 echo "${ECHO_T}$ac_header_compiler" >&6
27269
27270 # Is the header present?
27271 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27272 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27273 cat >conftest.$ac_ext <<_ACEOF
27274 /* confdefs.h. */
27275 _ACEOF
27276 cat confdefs.h >>conftest.$ac_ext
27277 cat >>conftest.$ac_ext <<_ACEOF
27278 /* end confdefs.h. */
27279 #include <GL/gl.h>
27280 _ACEOF
27281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27283 ac_status=$?
27284 grep -v '^ *+' conftest.er1 >conftest.err
27285 rm -f conftest.er1
27286 cat conftest.err >&5
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); } >/dev/null; then
27289 if test -s conftest.err; then
27290 ac_cpp_err=$ac_c_preproc_warn_flag
27291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27292 else
27293 ac_cpp_err=
27294 fi
27295 else
27296 ac_cpp_err=yes
27297 fi
27298 if test -z "$ac_cpp_err"; then
27299 ac_header_preproc=yes
27300 else
27301 echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304 ac_header_preproc=no
27305 fi
27306 rm -f conftest.err conftest.$ac_ext
27307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27308 echo "${ECHO_T}$ac_header_preproc" >&6
27309
27310 # So? What about this header?
27311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27312 yes:no: )
27313 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27314 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27315 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27316 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27317 ac_header_preproc=yes
27318 ;;
27319 no:yes:* )
27320 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27321 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27322 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27323 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27324 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27325 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27326 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27327 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
27328 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27329 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27330 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27331 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27332 (
27333 cat <<\_ASBOX
27334 ## ----------------------------------------- ##
27335 ## Report this to wx-dev@lists.wxwidgets.org ##
27336 ## ----------------------------------------- ##
27337 _ASBOX
27338 ) |
27339 sed "s/^/$as_me: WARNING: /" >&2
27340 ;;
27341 esac
27342 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27343 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27344 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346 else
27347 ac_cv_header_GL_gl_h=$ac_header_preproc
27348 fi
27349 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27350 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27351
27352 fi
27353 if test $ac_cv_header_GL_gl_h = yes; then
27354
27355 found_gl=0
27356
27357 echo "$as_me:$LINENO: checking for -lGL" >&5
27358 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27359
27360 ac_find_libraries=
27361 for ac_dir in $SEARCH_LIB /usr/lib;
27362 do
27363 for ac_extension in a so sl dylib; do
27364 if test -f "$ac_dir/libGL.$ac_extension"; then
27365 ac_find_libraries=$ac_dir
27366 break 2
27367 fi
27368 done
27369 done
27370
27371 if test "$ac_find_libraries" != "" ; then
27372
27373 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27374 result=$?
27375 if test $result = 0; then
27376 ac_path_to_link=""
27377 else
27378 ac_path_to_link=" -L$ac_find_libraries"
27379 fi
27380
27381 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27382 LDFLAGS_GL="$ac_path_to_link"
27383 fi
27384
27385
27386 ac_find_libraries=
27387 for ac_dir in $SEARCH_LIB /usr/lib;
27388 do
27389 for ac_extension in a so sl dylib; do
27390 if test -f "$ac_dir/libGLU.$ac_extension"; then
27391 ac_find_libraries=$ac_dir
27392 break 2
27393 fi
27394 done
27395 done
27396
27397 if test "$ac_find_libraries" != "" ; then
27398
27399 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27400 result=$?
27401 if test $result = 0; then
27402 ac_path_to_link=""
27403 else
27404 ac_path_to_link=" -L$ac_find_libraries"
27405 fi
27406
27407 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27408 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27409 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27410 fi
27411
27412 found_gl=1
27413 OPENGL_LIBS="-lGL -lGLU"
27414 echo "$as_me:$LINENO: result: yes" >&5
27415 echo "${ECHO_T}yes" >&6
27416 fi
27417 fi
27418
27419 if test "$found_gl" != 1; then
27420 echo "$as_me:$LINENO: result: no" >&5
27421 echo "${ECHO_T}no" >&6
27422 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27423 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27424
27425 ac_find_libraries=
27426 for ac_dir in $SEARCH_LIB /usr/lib;
27427 do
27428 for ac_extension in a so sl dylib; do
27429 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27430 ac_find_libraries=$ac_dir
27431 break 2
27432 fi
27433 done
27434 done
27435
27436 if test "$ac_find_libraries" != "" ; then
27437
27438 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27439 result=$?
27440 if test $result = 0; then
27441 ac_path_to_link=""
27442 else
27443 ac_path_to_link=" -L$ac_find_libraries"
27444 fi
27445
27446 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27447 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27448 echo "$as_me:$LINENO: result: yes" >&5
27449 echo "${ECHO_T}yes" >&6
27450 else
27451 echo "$as_me:$LINENO: result: no" >&5
27452 echo "${ECHO_T}no" >&6
27453 fi
27454 fi
27455
27456 fi
27457
27458
27459
27460 if test "x$OPENGL_LIBS" = "x"; then
27461 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27462 echo "$as_me: error: OpenGL libraries not available" >&2;}
27463 { (exit 1); exit 1; }; }
27464 fi
27465 fi
27466
27467 if test "$wxUSE_OPENGL" = "yes"; then
27468 USE_OPENGL=1
27469 cat >>confdefs.h <<\_ACEOF
27470 #define wxUSE_OPENGL 1
27471 _ACEOF
27472
27473 cat >>confdefs.h <<\_ACEOF
27474 #define wxUSE_GLCANVAS 1
27475 _ACEOF
27476
27477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27478 fi
27479 fi
27480
27481 if test -z "$TOOLKIT_VPATH" ; then
27482 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27483 fi
27484
27485 if test -n "$TOOLKIT" ; then
27486 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27487 fi
27488
27489 UNICODE=0
27490 lib_unicode_suffix=
27491 wxconfig_filename_unicode="ansi"
27492 if test "$wxUSE_UNICODE" = "yes"; then
27493 lib_unicode_suffix=u
27494 wxconfig_filename_unicode="unicode"
27495 UNICODE=1
27496 fi
27497
27498 lib_debug_suffix=
27499 wxconfig_filename_debug="release"
27500 DEBUG_FLAG=0
27501 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27502 lib_debug_suffix=d
27503 wxconfig_filename_debug="debug"
27504 DEBUG_FLAG=1
27505 fi
27506
27507 DEBUG_INFO=0
27508 if test "$wxUSE_DEBUG_INFO" = "yes"; then
27509 DEBUG_INFO=1
27510 fi
27511
27512 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27513
27514 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27515 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27516
27517 WXCONFIG_DATA_FILE="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${wxconfig_filename_unicode}-${wxconfig_filename_debug}-${WX_RELEASE}"
27518
27519 if test "$cross_compiling" = "yes"; then
27520 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27521 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27522 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}-${host_alias}"
27523 HOST_SUFFIX="-${host_alias}"
27524 fi
27525
27526 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27527 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27528 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27529 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27530
27531 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27532 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27533
27534 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27535 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27536 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27537 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27538
27539 case "${host}" in
27540 *-*-cygwin* | *-*-mingw32* )
27541 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27542 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27543 ;;
27544
27545 *-*-darwin* )
27546
27547 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27548 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27549
27550 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27551 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27552 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27553 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27554
27555 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27556 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27557 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27558 fi
27559 ;;
27560 esac
27561
27562 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27563 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27564
27565 WXCONFIG_LIBS="-l${WX_LIBRARY}"
27566 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27567
27568 if test "$wxUSE_OPENGL" = "yes"; then
27569 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27570 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27571 fi
27572
27573
27574
27575 if test "$wxUSE_SHARED" = "yes"; then
27576 case "${host}" in
27577 *-pc-msdosdjgpp )
27578 wxUSE_SHARED=no
27579 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27580 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27581 ;;
27582 esac
27583 fi
27584
27585 SHARED=0
27586 if test "$wxUSE_SHARED" = "yes"; then
27587 SHARED=1
27588
27589
27590 found_versioning=no
27591
27592
27593 if test $found_versioning = no ; then
27594 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27595 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27596 if test "${wx_cv_version_script+set}" = set; then
27597 echo $ECHO_N "(cached) $ECHO_C" >&6
27598 else
27599
27600 echo "VER_1 { *; };" >conftest.sym
27601 echo "int main() { return 0; }" >conftest.cpp
27602
27603 if { ac_try='
27604 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27605 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607 (eval $ac_try) 2>&5
27608 ac_status=$?
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; } ; then
27611 if test -s conftest.stderr ; then
27612 wx_cv_version_script=no
27613 else
27614 wx_cv_version_script=yes
27615 fi
27616 else
27617 wx_cv_version_script=no
27618 fi
27619 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27620
27621 fi
27622 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27623 echo "${ECHO_T}$wx_cv_version_script" >&6
27624 if test $wx_cv_version_script = yes ; then
27625 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27626 fi
27627 fi
27628
27629
27630 case "${host}" in
27631 *-*-linux* | *-*-gnu* )
27632 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27633 ;;
27634
27635 *-*-solaris2* )
27636 if test "$GCC" = yes ; then
27637 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27638
27639 saveLdflags="$LDFLAGS"
27640 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27641 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27642 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27643 cat >conftest.$ac_ext <<_ACEOF
27644 /* confdefs.h. */
27645 _ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h. */
27649
27650 int
27651 main ()
27652 {
27653
27654 ;
27655 return 0;
27656 }
27657 _ACEOF
27658 rm -f conftest.$ac_objext conftest$ac_exeext
27659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27660 (eval $ac_link) 2>conftest.er1
27661 ac_status=$?
27662 grep -v '^ *+' conftest.er1 >conftest.err
27663 rm -f conftest.er1
27664 cat conftest.err >&5
27665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27666 (exit $ac_status); } &&
27667 { ac_try='test -z "$ac_c_werror_flag"
27668 || test ! -s conftest.err'
27669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27670 (eval $ac_try) 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
27680
27681 echo "$as_me:$LINENO: result: yes" >&5
27682 echo "${ECHO_T}yes" >&6
27683 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27684
27685 else
27686 echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27688
27689
27690 echo "$as_me:$LINENO: result: no" >&5
27691 echo "${ECHO_T}no" >&6
27692 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27693 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27694 LDFLAGS="$saveLdflags -Wl,-R,/"
27695 cat >conftest.$ac_ext <<_ACEOF
27696 /* confdefs.h. */
27697 _ACEOF
27698 cat confdefs.h >>conftest.$ac_ext
27699 cat >>conftest.$ac_ext <<_ACEOF
27700 /* end confdefs.h. */
27701
27702 int
27703 main ()
27704 {
27705
27706 ;
27707 return 0;
27708 }
27709 _ACEOF
27710 rm -f conftest.$ac_objext conftest$ac_exeext
27711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27712 (eval $ac_link) 2>conftest.er1
27713 ac_status=$?
27714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
27719 { ac_try='test -z "$ac_c_werror_flag"
27720 || test ! -s conftest.err'
27721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27722 (eval $ac_try) 2>&5
27723 ac_status=$?
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); }; } &&
27726 { ac_try='test -s conftest$ac_exeext'
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; }; then
27732
27733 echo "$as_me:$LINENO: result: yes" >&5
27734 echo "${ECHO_T}yes" >&6
27735 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27736 else
27737 echo "$as_me: failed program was:" >&5
27738 sed 's/^/| /' conftest.$ac_ext >&5
27739
27740
27741 echo "$as_me:$LINENO: result: no" >&5
27742 echo "${ECHO_T}no" >&6
27743
27744 fi
27745 rm -f conftest.err conftest.$ac_objext \
27746 conftest$ac_exeext conftest.$ac_ext
27747
27748 fi
27749 rm -f conftest.err conftest.$ac_objext \
27750 conftest$ac_exeext conftest.$ac_ext
27751 LDFLAGS="$saveLdflags"
27752 else
27753 SHARED_LD="${CXX} -G -o"
27754 PIC_FLAG="-KPIC"
27755 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27756 fi
27757 ;;
27758
27759 powerpc-*-darwin* )
27760 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27761 cat <<EOF >change-install-names
27762 #!/bin/sh
27763 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27764 inst_cmd="install_name_tool "
27765 for i in \${libnames} ; do
27766 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27767 done
27768 \${inst_cmd} \${3}
27769 EOF
27770 chmod +x change-install-names
27771 ;;
27772
27773 *-*-cygwin* | *-*-mingw32* )
27774 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27775 ;;
27776
27777 esac
27778
27779 if test "x$WX_TARGET_LIBRARY" = "x"; then
27780 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27781 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27782 fi
27783
27784 WX_TARGET_LIBRARY_TYPE="so"
27785 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27786 fi
27787
27788 if test "$wxUSE_SHARED" = "no"; then
27789
27790 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27791 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27792 fi
27793
27794 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27795 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27796 fi
27797
27798 if test "$wxUSE_OPENGL" = "yes"; then
27799 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27800 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27801 else
27802 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27803 fi
27804
27805 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27806 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27807
27808 WX_TARGET_LIBRARY_TYPE="a"
27809 INSTALL_LIBRARY='$(INSTALL_DATA)'
27810
27811 STATIC_FLAG="yes"
27812 else
27813 STATIC_FLAG="no"
27814 fi
27815
27816 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27817 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27818 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27819 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27820
27821 # Extract the first word of "Rez", so it can be a program name with args.
27822 set dummy Rez; ac_word=$2
27823 echo "$as_me:$LINENO: checking for $ac_word" >&5
27824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27825 if test "${ac_cv_prog_RESCOMP+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827 else
27828 if test -n "$RESCOMP"; then
27829 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27830 else
27831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27832 for as_dir in $PATH
27833 do
27834 IFS=$as_save_IFS
27835 test -z "$as_dir" && as_dir=.
27836 for ac_exec_ext in '' $ac_executable_extensions; do
27837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27838 ac_cv_prog_RESCOMP="Rez"
27839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27840 break 2
27841 fi
27842 done
27843 done
27844
27845 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27846 fi
27847 fi
27848 RESCOMP=$ac_cv_prog_RESCOMP
27849 if test -n "$RESCOMP"; then
27850 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27851 echo "${ECHO_T}$RESCOMP" >&6
27852 else
27853 echo "$as_me:$LINENO: result: no" >&5
27854 echo "${ECHO_T}no" >&6
27855 fi
27856
27857 # Extract the first word of "DeRez", so it can be a program name with args.
27858 set dummy DeRez; ac_word=$2
27859 echo "$as_me:$LINENO: checking for $ac_word" >&5
27860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27861 if test "${ac_cv_prog_DEREZ+set}" = set; then
27862 echo $ECHO_N "(cached) $ECHO_C" >&6
27863 else
27864 if test -n "$DEREZ"; then
27865 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27866 else
27867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27868 for as_dir in $PATH
27869 do
27870 IFS=$as_save_IFS
27871 test -z "$as_dir" && as_dir=.
27872 for ac_exec_ext in '' $ac_executable_extensions; do
27873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27874 ac_cv_prog_DEREZ="DeRez"
27875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27876 break 2
27877 fi
27878 done
27879 done
27880
27881 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27882 fi
27883 fi
27884 DEREZ=$ac_cv_prog_DEREZ
27885 if test -n "$DEREZ"; then
27886 echo "$as_me:$LINENO: result: $DEREZ" >&5
27887 echo "${ECHO_T}$DEREZ" >&6
27888 else
27889 echo "$as_me:$LINENO: result: no" >&5
27890 echo "${ECHO_T}no" >&6
27891 fi
27892
27893 # Extract the first word of "SetFile", so it can be a program name with args.
27894 set dummy SetFile; ac_word=$2
27895 echo "$as_me:$LINENO: checking for $ac_word" >&5
27896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27897 if test "${ac_cv_prog_SETFILE+set}" = set; then
27898 echo $ECHO_N "(cached) $ECHO_C" >&6
27899 else
27900 if test -n "$SETFILE"; then
27901 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27902 else
27903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27904 for as_dir in $PATH
27905 do
27906 IFS=$as_save_IFS
27907 test -z "$as_dir" && as_dir=.
27908 for ac_exec_ext in '' $ac_executable_extensions; do
27909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27910 ac_cv_prog_SETFILE="SetFile"
27911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27912 break 2
27913 fi
27914 done
27915 done
27916
27917 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27918 fi
27919 fi
27920 SETFILE=$ac_cv_prog_SETFILE
27921 if test -n "$SETFILE"; then
27922 echo "$as_me:$LINENO: result: $SETFILE" >&5
27923 echo "${ECHO_T}$SETFILE" >&6
27924 else
27925 echo "$as_me:$LINENO: result: no" >&5
27926 echo "${ECHO_T}no" >&6
27927 fi
27928
27929
27930 MACSETFILE="\$(SETFILE)"
27931
27932 if test "$wxUSE_MAC" = 1; then
27933 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27934
27935 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27936 else
27937 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27938 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27939 fi
27940 else
27941 MACSETFILE="@#"
27942 MACRESWXCONFIG="#"
27943
27944 if test "$wxUSE_PM" = 1; then
27945 MACRESCOMP="emxbind -ep"
27946 else
27947 MACRESCOMP="@#"
27948 fi
27949 fi
27950
27951
27952
27953 echo "$as_me:$LINENO: checking for mode_t" >&5
27954 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27955 if test "${ac_cv_type_mode_t+set}" = set; then
27956 echo $ECHO_N "(cached) $ECHO_C" >&6
27957 else
27958 cat >conftest.$ac_ext <<_ACEOF
27959 /* confdefs.h. */
27960 _ACEOF
27961 cat confdefs.h >>conftest.$ac_ext
27962 cat >>conftest.$ac_ext <<_ACEOF
27963 /* end confdefs.h. */
27964 $ac_includes_default
27965 int
27966 main ()
27967 {
27968 if ((mode_t *) 0)
27969 return 0;
27970 if (sizeof (mode_t))
27971 return 0;
27972 ;
27973 return 0;
27974 }
27975 _ACEOF
27976 rm -f conftest.$ac_objext
27977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27978 (eval $ac_compile) 2>conftest.er1
27979 ac_status=$?
27980 grep -v '^ *+' conftest.er1 >conftest.err
27981 rm -f conftest.er1
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag"
27986 || test ! -s conftest.err'
27987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27988 (eval $ac_try) 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest.$ac_objext'
27993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27994 (eval $ac_try) 2>&5
27995 ac_status=$?
27996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27997 (exit $ac_status); }; }; then
27998 ac_cv_type_mode_t=yes
27999 else
28000 echo "$as_me: failed program was:" >&5
28001 sed 's/^/| /' conftest.$ac_ext >&5
28002
28003 ac_cv_type_mode_t=no
28004 fi
28005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28006 fi
28007 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28008 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28009 if test $ac_cv_type_mode_t = yes; then
28010 :
28011 else
28012
28013 cat >>confdefs.h <<_ACEOF
28014 #define mode_t int
28015 _ACEOF
28016
28017 fi
28018
28019 echo "$as_me:$LINENO: checking for off_t" >&5
28020 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28021 if test "${ac_cv_type_off_t+set}" = set; then
28022 echo $ECHO_N "(cached) $ECHO_C" >&6
28023 else
28024 cat >conftest.$ac_ext <<_ACEOF
28025 /* confdefs.h. */
28026 _ACEOF
28027 cat confdefs.h >>conftest.$ac_ext
28028 cat >>conftest.$ac_ext <<_ACEOF
28029 /* end confdefs.h. */
28030 $ac_includes_default
28031 int
28032 main ()
28033 {
28034 if ((off_t *) 0)
28035 return 0;
28036 if (sizeof (off_t))
28037 return 0;
28038 ;
28039 return 0;
28040 }
28041 _ACEOF
28042 rm -f conftest.$ac_objext
28043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28044 (eval $ac_compile) 2>conftest.er1
28045 ac_status=$?
28046 grep -v '^ *+' conftest.er1 >conftest.err
28047 rm -f conftest.er1
28048 cat conftest.err >&5
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } &&
28051 { ac_try='test -z "$ac_c_werror_flag"
28052 || test ! -s conftest.err'
28053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 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 ac_cv_type_off_t=yes
28065 else
28066 echo "$as_me: failed program was:" >&5
28067 sed 's/^/| /' conftest.$ac_ext >&5
28068
28069 ac_cv_type_off_t=no
28070 fi
28071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28072 fi
28073 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28074 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28075 if test $ac_cv_type_off_t = yes; then
28076 :
28077 else
28078
28079 cat >>confdefs.h <<_ACEOF
28080 #define off_t long
28081 _ACEOF
28082
28083 fi
28084
28085 echo "$as_me:$LINENO: checking for pid_t" >&5
28086 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28087 if test "${ac_cv_type_pid_t+set}" = set; then
28088 echo $ECHO_N "(cached) $ECHO_C" >&6
28089 else
28090 cat >conftest.$ac_ext <<_ACEOF
28091 /* confdefs.h. */
28092 _ACEOF
28093 cat confdefs.h >>conftest.$ac_ext
28094 cat >>conftest.$ac_ext <<_ACEOF
28095 /* end confdefs.h. */
28096 $ac_includes_default
28097 int
28098 main ()
28099 {
28100 if ((pid_t *) 0)
28101 return 0;
28102 if (sizeof (pid_t))
28103 return 0;
28104 ;
28105 return 0;
28106 }
28107 _ACEOF
28108 rm -f conftest.$ac_objext
28109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28110 (eval $ac_compile) 2>conftest.er1
28111 ac_status=$?
28112 grep -v '^ *+' conftest.er1 >conftest.err
28113 rm -f conftest.er1
28114 cat conftest.err >&5
28115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116 (exit $ac_status); } &&
28117 { ac_try='test -z "$ac_c_werror_flag"
28118 || test ! -s conftest.err'
28119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120 (eval $ac_try) 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 ac_cv_type_pid_t=yes
28131 else
28132 echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 ac_cv_type_pid_t=no
28136 fi
28137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28138 fi
28139 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28140 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28141 if test $ac_cv_type_pid_t = yes; then
28142 :
28143 else
28144
28145 cat >>confdefs.h <<_ACEOF
28146 #define pid_t int
28147 _ACEOF
28148
28149 fi
28150
28151 echo "$as_me:$LINENO: checking for size_t" >&5
28152 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28153 if test "${ac_cv_type_size_t+set}" = set; then
28154 echo $ECHO_N "(cached) $ECHO_C" >&6
28155 else
28156 cat >conftest.$ac_ext <<_ACEOF
28157 /* confdefs.h. */
28158 _ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h. */
28162 $ac_includes_default
28163 int
28164 main ()
28165 {
28166 if ((size_t *) 0)
28167 return 0;
28168 if (sizeof (size_t))
28169 return 0;
28170 ;
28171 return 0;
28172 }
28173 _ACEOF
28174 rm -f conftest.$ac_objext
28175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28176 (eval $ac_compile) 2>conftest.er1
28177 ac_status=$?
28178 grep -v '^ *+' conftest.er1 >conftest.err
28179 rm -f conftest.er1
28180 cat conftest.err >&5
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); } &&
28183 { ac_try='test -z "$ac_c_werror_flag"
28184 || test ! -s conftest.err'
28185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186 (eval $ac_try) 2>&5
28187 ac_status=$?
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; } &&
28190 { ac_try='test -s conftest.$ac_objext'
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; }; then
28196 ac_cv_type_size_t=yes
28197 else
28198 echo "$as_me: failed program was:" >&5
28199 sed 's/^/| /' conftest.$ac_ext >&5
28200
28201 ac_cv_type_size_t=no
28202 fi
28203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28204 fi
28205 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28206 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28207 if test $ac_cv_type_size_t = yes; then
28208 :
28209 else
28210
28211 cat >>confdefs.h <<_ACEOF
28212 #define size_t unsigned
28213 _ACEOF
28214
28215 fi
28216
28217 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28218 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28219 if test "${ac_cv_type_uid_t+set}" = set; then
28220 echo $ECHO_N "(cached) $ECHO_C" >&6
28221 else
28222 cat >conftest.$ac_ext <<_ACEOF
28223 /* confdefs.h. */
28224 _ACEOF
28225 cat confdefs.h >>conftest.$ac_ext
28226 cat >>conftest.$ac_ext <<_ACEOF
28227 /* end confdefs.h. */
28228 #include <sys/types.h>
28229
28230 _ACEOF
28231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28232 $EGREP "uid_t" >/dev/null 2>&1; then
28233 ac_cv_type_uid_t=yes
28234 else
28235 ac_cv_type_uid_t=no
28236 fi
28237 rm -f conftest*
28238
28239 fi
28240 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28241 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28242 if test $ac_cv_type_uid_t = no; then
28243
28244 cat >>confdefs.h <<\_ACEOF
28245 #define uid_t int
28246 _ACEOF
28247
28248
28249 cat >>confdefs.h <<\_ACEOF
28250 #define gid_t int
28251 _ACEOF
28252
28253 fi
28254
28255
28256
28257
28258 ac_ext=cc
28259 ac_cpp='$CXXCPP $CPPFLAGS'
28260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28263
28264 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28265 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28266 if test "${wx_cv_size_t_is_uint+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268 else
28269
28270 cat >conftest.$ac_ext <<_ACEOF
28271 /* confdefs.h. */
28272 _ACEOF
28273 cat confdefs.h >>conftest.$ac_ext
28274 cat >>conftest.$ac_ext <<_ACEOF
28275 /* end confdefs.h. */
28276 #include <stddef.h>
28277 int
28278 main ()
28279 {
28280
28281 return 0; }
28282
28283 struct Foo { void foo(size_t); void foo(unsigned int); };
28284
28285 int bar() {
28286
28287 ;
28288 return 0;
28289 }
28290 _ACEOF
28291 rm -f conftest.$ac_objext
28292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28293 (eval $ac_compile) 2>conftest.er1
28294 ac_status=$?
28295 grep -v '^ *+' conftest.er1 >conftest.err
28296 rm -f conftest.er1
28297 cat conftest.err >&5
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); } &&
28300 { ac_try='test -z "$ac_cxx_werror_flag"
28301 || test ! -s conftest.err'
28302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303 (eval $ac_try) 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; } &&
28307 { ac_try='test -s conftest.$ac_objext'
28308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309 (eval $ac_try) 2>&5
28310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; }; then
28313 wx_cv_size_t_is_uint=no
28314 else
28315 echo "$as_me: failed program was:" >&5
28316 sed 's/^/| /' conftest.$ac_ext >&5
28317
28318 wx_cv_size_t_is_uint=yes
28319
28320 fi
28321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28322
28323
28324 fi
28325 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28326 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28327
28328 if test "$wx_cv_size_t_is_uint" = "yes"; then
28329 cat >>confdefs.h <<\_ACEOF
28330 #define wxSIZE_T_IS_UINT 1
28331 _ACEOF
28332
28333 else
28334 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28335 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28336 if test "${wx_cv_size_t_is_ulong+set}" = set; then
28337 echo $ECHO_N "(cached) $ECHO_C" >&6
28338 else
28339 cat >conftest.$ac_ext <<_ACEOF
28340 /* confdefs.h. */
28341 _ACEOF
28342 cat confdefs.h >>conftest.$ac_ext
28343 cat >>conftest.$ac_ext <<_ACEOF
28344 /* end confdefs.h. */
28345 #include <stddef.h>
28346 int
28347 main ()
28348 {
28349
28350 return 0; }
28351
28352 struct Foo { void foo(size_t); void foo(unsigned long); };
28353
28354 int bar() {
28355
28356 ;
28357 return 0;
28358 }
28359 _ACEOF
28360 rm -f conftest.$ac_objext
28361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28362 (eval $ac_compile) 2>conftest.er1
28363 ac_status=$?
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
28369 { ac_try='test -z "$ac_cxx_werror_flag"
28370 || test ! -s conftest.err'
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28373 ac_status=$?
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; } &&
28376 { ac_try='test -s conftest.$ac_objext'
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; }; then
28382 wx_cv_size_t_is_ulong=no
28383 else
28384 echo "$as_me: failed program was:" >&5
28385 sed 's/^/| /' conftest.$ac_ext >&5
28386
28387 wx_cv_size_t_is_ulong=yes
28388
28389 fi
28390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28391
28392 fi
28393 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28394 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28395
28396 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28397 cat >>confdefs.h <<\_ACEOF
28398 #define wxSIZE_T_IS_ULONG 1
28399 _ACEOF
28400
28401 fi
28402 fi
28403
28404 ac_ext=c
28405 ac_cpp='$CPP $CPPFLAGS'
28406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28409
28410
28411
28412 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28413 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28414 if test "${wx_cv_struct_pw_gecos+set}" = set; then
28415 echo $ECHO_N "(cached) $ECHO_C" >&6
28416 else
28417
28418 cat >conftest.$ac_ext <<_ACEOF
28419 /* confdefs.h. */
28420 _ACEOF
28421 cat confdefs.h >>conftest.$ac_ext
28422 cat >>conftest.$ac_ext <<_ACEOF
28423 /* end confdefs.h. */
28424 #include <pwd.h>
28425 int
28426 main ()
28427 {
28428
28429 char *p;
28430 struct passwd *pw;
28431 p = pw->pw_gecos;
28432
28433 ;
28434 return 0;
28435 }
28436 _ACEOF
28437 rm -f conftest.$ac_objext
28438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28439 (eval $ac_compile) 2>conftest.er1
28440 ac_status=$?
28441 grep -v '^ *+' conftest.er1 >conftest.err
28442 rm -f conftest.er1
28443 cat conftest.err >&5
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); } &&
28446 { ac_try='test -z "$ac_c_werror_flag"
28447 || test ! -s conftest.err'
28448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28449 (eval $ac_try) 2>&5
28450 ac_status=$?
28451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28452 (exit $ac_status); }; } &&
28453 { ac_try='test -s conftest.$ac_objext'
28454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28455 (eval $ac_try) 2>&5
28456 ac_status=$?
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459
28460 wx_cv_struct_pw_gecos=yes
28461
28462 else
28463 echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.$ac_ext >&5
28465
28466
28467 wx_cv_struct_pw_gecos=no
28468
28469
28470 fi
28471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28472
28473
28474 fi
28475 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28476 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28477
28478 if test "$wx_cv_struct_pw_gecos" = "yes"; then
28479 cat >>confdefs.h <<\_ACEOF
28480 #define HAVE_PW_GECOS 1
28481 _ACEOF
28482
28483 fi
28484
28485
28486 if test "$wx_cv_sizeof_wchar_t" != "0"; then
28487 cat >>confdefs.h <<\_ACEOF
28488 #define wxUSE_WCHAR_T 1
28489 _ACEOF
28490
28491
28492 WCSLEN_FOUND=0
28493 WCHAR_LINK=
28494
28495 for ac_func in wcslen
28496 do
28497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28498 echo "$as_me:$LINENO: checking for $ac_func" >&5
28499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28500 if eval "test \"\${$as_ac_var+set}\" = set"; then
28501 echo $ECHO_N "(cached) $ECHO_C" >&6
28502 else
28503 cat >conftest.$ac_ext <<_ACEOF
28504 /* confdefs.h. */
28505 _ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h. */
28509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28511 #define $ac_func innocuous_$ac_func
28512
28513 /* System header to define __stub macros and hopefully few prototypes,
28514 which can conflict with char $ac_func (); below.
28515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28516 <limits.h> exists even on freestanding compilers. */
28517
28518 #ifdef __STDC__
28519 # include <limits.h>
28520 #else
28521 # include <assert.h>
28522 #endif
28523
28524 #undef $ac_func
28525
28526 /* Override any gcc2 internal prototype to avoid an error. */
28527 #ifdef __cplusplus
28528 extern "C"
28529 {
28530 #endif
28531 /* We use char because int might match the return type of a gcc2
28532 builtin and then its argument prototype would still apply. */
28533 char $ac_func ();
28534 /* The GNU C library defines this for functions which it implements
28535 to always fail with ENOSYS. Some functions are actually named
28536 something starting with __ and the normal name is an alias. */
28537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28538 choke me
28539 #else
28540 char (*f) () = $ac_func;
28541 #endif
28542 #ifdef __cplusplus
28543 }
28544 #endif
28545
28546 int
28547 main ()
28548 {
28549 return f != $ac_func;
28550 ;
28551 return 0;
28552 }
28553 _ACEOF
28554 rm -f conftest.$ac_objext conftest$ac_exeext
28555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28556 (eval $ac_link) 2>conftest.er1
28557 ac_status=$?
28558 grep -v '^ *+' conftest.er1 >conftest.err
28559 rm -f conftest.er1
28560 cat conftest.err >&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } &&
28563 { ac_try='test -z "$ac_c_werror_flag"
28564 || test ! -s conftest.err'
28565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28566 (eval $ac_try) 2>&5
28567 ac_status=$?
28568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28569 (exit $ac_status); }; } &&
28570 { ac_try='test -s conftest$ac_exeext'
28571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28572 (eval $ac_try) 2>&5
28573 ac_status=$?
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); }; }; then
28576 eval "$as_ac_var=yes"
28577 else
28578 echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28580
28581 eval "$as_ac_var=no"
28582 fi
28583 rm -f conftest.err conftest.$ac_objext \
28584 conftest$ac_exeext conftest.$ac_ext
28585 fi
28586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28588 if test `eval echo '${'$as_ac_var'}'` = yes; then
28589 cat >>confdefs.h <<_ACEOF
28590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28591 _ACEOF
28592 WCSLEN_FOUND=1
28593 fi
28594 done
28595
28596
28597 if test "$WCSLEN_FOUND" = 0; then
28598 if test "$TOOLKIT" = "MSW"; then
28599 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28600 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28601 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28603 else
28604 ac_check_lib_save_LIBS=$LIBS
28605 LIBS="-lmsvcrt $LIBS"
28606 cat >conftest.$ac_ext <<_ACEOF
28607 /* confdefs.h. */
28608 _ACEOF
28609 cat confdefs.h >>conftest.$ac_ext
28610 cat >>conftest.$ac_ext <<_ACEOF
28611 /* end confdefs.h. */
28612
28613 /* Override any gcc2 internal prototype to avoid an error. */
28614 #ifdef __cplusplus
28615 extern "C"
28616 #endif
28617 /* We use char because int might match the return type of a gcc2
28618 builtin and then its argument prototype would still apply. */
28619 char wcslen ();
28620 int
28621 main ()
28622 {
28623 wcslen ();
28624 ;
28625 return 0;
28626 }
28627 _ACEOF
28628 rm -f conftest.$ac_objext conftest$ac_exeext
28629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28630 (eval $ac_link) 2>conftest.er1
28631 ac_status=$?
28632 grep -v '^ *+' conftest.er1 >conftest.err
28633 rm -f conftest.er1
28634 cat conftest.err >&5
28635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 (exit $ac_status); } &&
28637 { ac_try='test -z "$ac_c_werror_flag"
28638 || test ! -s conftest.err'
28639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640 (eval $ac_try) 2>&5
28641 ac_status=$?
28642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643 (exit $ac_status); }; } &&
28644 { ac_try='test -s conftest$ac_exeext'
28645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646 (eval $ac_try) 2>&5
28647 ac_status=$?
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); }; }; then
28650 ac_cv_lib_msvcrt_wcslen=yes
28651 else
28652 echo "$as_me: failed program was:" >&5
28653 sed 's/^/| /' conftest.$ac_ext >&5
28654
28655 ac_cv_lib_msvcrt_wcslen=no
28656 fi
28657 rm -f conftest.err conftest.$ac_objext \
28658 conftest$ac_exeext conftest.$ac_ext
28659 LIBS=$ac_check_lib_save_LIBS
28660 fi
28661 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28662 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28663 if test $ac_cv_lib_msvcrt_wcslen = yes; then
28664 WCHAR_OK=1
28665 fi
28666
28667 else
28668 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28669 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28670 if test "${ac_cv_lib_w_wcslen+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28672 else
28673 ac_check_lib_save_LIBS=$LIBS
28674 LIBS="-lw $LIBS"
28675 cat >conftest.$ac_ext <<_ACEOF
28676 /* confdefs.h. */
28677 _ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h. */
28681
28682 /* Override any gcc2 internal prototype to avoid an error. */
28683 #ifdef __cplusplus
28684 extern "C"
28685 #endif
28686 /* We use char because int might match the return type of a gcc2
28687 builtin and then its argument prototype would still apply. */
28688 char wcslen ();
28689 int
28690 main ()
28691 {
28692 wcslen ();
28693 ;
28694 return 0;
28695 }
28696 _ACEOF
28697 rm -f conftest.$ac_objext conftest$ac_exeext
28698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28699 (eval $ac_link) 2>conftest.er1
28700 ac_status=$?
28701 grep -v '^ *+' conftest.er1 >conftest.err
28702 rm -f conftest.er1
28703 cat conftest.err >&5
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } &&
28706 { ac_try='test -z "$ac_c_werror_flag"
28707 || test ! -s conftest.err'
28708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28709 (eval $ac_try) 2>&5
28710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; } &&
28713 { ac_try='test -s conftest$ac_exeext'
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; }; then
28719 ac_cv_lib_w_wcslen=yes
28720 else
28721 echo "$as_me: failed program was:" >&5
28722 sed 's/^/| /' conftest.$ac_ext >&5
28723
28724 ac_cv_lib_w_wcslen=no
28725 fi
28726 rm -f conftest.err conftest.$ac_objext \
28727 conftest$ac_exeext conftest.$ac_ext
28728 LIBS=$ac_check_lib_save_LIBS
28729 fi
28730 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28731 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28732 if test $ac_cv_lib_w_wcslen = yes; then
28733
28734 WCHAR_LINK=" -lw"
28735 WCSLEN_FOUND=1
28736
28737 fi
28738
28739 fi
28740 fi
28741
28742 if test "$WCSLEN_FOUND" = 1; then
28743 cat >>confdefs.h <<\_ACEOF
28744 #define HAVE_WCSLEN 1
28745 _ACEOF
28746
28747 fi
28748
28749 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28750 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28751 fi
28752
28753
28754 for ac_func in wcsrtombs
28755 do
28756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28757 echo "$as_me:$LINENO: checking for $ac_func" >&5
28758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28759 if eval "test \"\${$as_ac_var+set}\" = set"; then
28760 echo $ECHO_N "(cached) $ECHO_C" >&6
28761 else
28762 cat >conftest.$ac_ext <<_ACEOF
28763 /* confdefs.h. */
28764 _ACEOF
28765 cat confdefs.h >>conftest.$ac_ext
28766 cat >>conftest.$ac_ext <<_ACEOF
28767 /* end confdefs.h. */
28768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28770 #define $ac_func innocuous_$ac_func
28771
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
28777 #ifdef __STDC__
28778 # include <limits.h>
28779 #else
28780 # include <assert.h>
28781 #endif
28782
28783 #undef $ac_func
28784
28785 /* Override any gcc2 internal prototype to avoid an error. */
28786 #ifdef __cplusplus
28787 extern "C"
28788 {
28789 #endif
28790 /* We use char because int might match the return type of a gcc2
28791 builtin and then its argument prototype would still apply. */
28792 char $ac_func ();
28793 /* The GNU C library defines this for functions which it implements
28794 to always fail with ENOSYS. Some functions are actually named
28795 something starting with __ and the normal name is an alias. */
28796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28797 choke me
28798 #else
28799 char (*f) () = $ac_func;
28800 #endif
28801 #ifdef __cplusplus
28802 }
28803 #endif
28804
28805 int
28806 main ()
28807 {
28808 return f != $ac_func;
28809 ;
28810 return 0;
28811 }
28812 _ACEOF
28813 rm -f conftest.$ac_objext conftest$ac_exeext
28814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28815 (eval $ac_link) 2>conftest.er1
28816 ac_status=$?
28817 grep -v '^ *+' conftest.er1 >conftest.err
28818 rm -f conftest.er1
28819 cat conftest.err >&5
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); } &&
28822 { ac_try='test -z "$ac_c_werror_flag"
28823 || test ! -s conftest.err'
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28826 ac_status=$?
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; } &&
28829 { ac_try='test -s conftest$ac_exeext'
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28832 ac_status=$?
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; }; then
28835 eval "$as_ac_var=yes"
28836 else
28837 echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.$ac_ext >&5
28839
28840 eval "$as_ac_var=no"
28841 fi
28842 rm -f conftest.err conftest.$ac_objext \
28843 conftest$ac_exeext conftest.$ac_ext
28844 fi
28845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28847 if test `eval echo '${'$as_ac_var'}'` = yes; then
28848 cat >>confdefs.h <<_ACEOF
28849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28850 _ACEOF
28851
28852 fi
28853 done
28854
28855 else
28856 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28857 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28858 fi
28859
28860
28861
28862 ac_ext=cc
28863 ac_cpp='$CXXCPP $CPPFLAGS'
28864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28867
28868
28869
28870 for ac_func in vsnprintf
28871 do
28872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28873 echo "$as_me:$LINENO: checking for $ac_func" >&5
28874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28875 if eval "test \"\${$as_ac_var+set}\" = set"; then
28876 echo $ECHO_N "(cached) $ECHO_C" >&6
28877 else
28878 cat >conftest.$ac_ext <<_ACEOF
28879 /* confdefs.h. */
28880 _ACEOF
28881 cat confdefs.h >>conftest.$ac_ext
28882 cat >>conftest.$ac_ext <<_ACEOF
28883 /* end confdefs.h. */
28884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28886 #define $ac_func innocuous_$ac_func
28887
28888 /* System header to define __stub macros and hopefully few prototypes,
28889 which can conflict with char $ac_func (); below.
28890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28891 <limits.h> exists even on freestanding compilers. */
28892
28893 #ifdef __STDC__
28894 # include <limits.h>
28895 #else
28896 # include <assert.h>
28897 #endif
28898
28899 #undef $ac_func
28900
28901 /* Override any gcc2 internal prototype to avoid an error. */
28902 #ifdef __cplusplus
28903 extern "C"
28904 {
28905 #endif
28906 /* We use char because int might match the return type of a gcc2
28907 builtin and then its argument prototype would still apply. */
28908 char $ac_func ();
28909 /* The GNU C library defines this for functions which it implements
28910 to always fail with ENOSYS. Some functions are actually named
28911 something starting with __ and the normal name is an alias. */
28912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28913 choke me
28914 #else
28915 char (*f) () = $ac_func;
28916 #endif
28917 #ifdef __cplusplus
28918 }
28919 #endif
28920
28921 int
28922 main ()
28923 {
28924 return f != $ac_func;
28925 ;
28926 return 0;
28927 }
28928 _ACEOF
28929 rm -f conftest.$ac_objext conftest$ac_exeext
28930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28931 (eval $ac_link) 2>conftest.er1
28932 ac_status=$?
28933 grep -v '^ *+' conftest.er1 >conftest.err
28934 rm -f conftest.er1
28935 cat conftest.err >&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } &&
28938 { ac_try='test -z "$ac_cxx_werror_flag"
28939 || test ! -s conftest.err'
28940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28941 (eval $ac_try) 2>&5
28942 ac_status=$?
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; } &&
28945 { ac_try='test -s conftest$ac_exeext'
28946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28947 (eval $ac_try) 2>&5
28948 ac_status=$?
28949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28950 (exit $ac_status); }; }; then
28951 eval "$as_ac_var=yes"
28952 else
28953 echo "$as_me: failed program was:" >&5
28954 sed 's/^/| /' conftest.$ac_ext >&5
28955
28956 eval "$as_ac_var=no"
28957 fi
28958 rm -f conftest.err conftest.$ac_objext \
28959 conftest$ac_exeext conftest.$ac_ext
28960 fi
28961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28963 if test `eval echo '${'$as_ac_var'}'` = yes; then
28964 cat >>confdefs.h <<_ACEOF
28965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28966 _ACEOF
28967
28968 fi
28969 done
28970
28971
28972 if test "$ac_cv_func_vsnprintf" = "yes"; then
28973 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28974 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28975 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28976 echo $ECHO_N "(cached) $ECHO_C" >&6
28977 else
28978
28979 cat >conftest.$ac_ext <<_ACEOF
28980 /* confdefs.h. */
28981 _ACEOF
28982 cat confdefs.h >>conftest.$ac_ext
28983 cat >>conftest.$ac_ext <<_ACEOF
28984 /* end confdefs.h. */
28985
28986 #include <stdio.h>
28987 #include <stdarg.h>
28988
28989 int
28990 main ()
28991 {
28992
28993 char *buf;
28994 va_list ap;
28995 vsnprintf(buf, 10u, "%s", ap);
28996
28997 ;
28998 return 0;
28999 }
29000 _ACEOF
29001 rm -f conftest.$ac_objext
29002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29003 (eval $ac_compile) 2>conftest.er1
29004 ac_status=$?
29005 grep -v '^ *+' conftest.er1 >conftest.err
29006 rm -f conftest.er1
29007 cat conftest.err >&5
29008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009 (exit $ac_status); } &&
29010 { ac_try='test -z "$ac_cxx_werror_flag"
29011 || test ! -s conftest.err'
29012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29013 (eval $ac_try) 2>&5
29014 ac_status=$?
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); }; } &&
29017 { ac_try='test -s conftest.$ac_objext'
29018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019 (eval $ac_try) 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; }; then
29023 wx_cv_func_vsnprintf_decl=yes
29024 else
29025 echo "$as_me: failed program was:" >&5
29026 sed 's/^/| /' conftest.$ac_ext >&5
29027
29028 wx_cv_func_vsnprintf_decl=no
29029
29030 fi
29031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29032
29033
29034 fi
29035 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29036 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29037
29038 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29039 cat >>confdefs.h <<\_ACEOF
29040 #define HAVE_VSNPRINTF_DECL 1
29041 _ACEOF
29042
29043 fi
29044 fi
29045
29046 if test "$wxUSE_UNICODE" = yes; then
29047
29048
29049
29050
29051
29052
29053 for ac_func in wputc wputchar putws fputws wprintf vswprintf
29054 do
29055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29056 echo "$as_me:$LINENO: checking for $ac_func" >&5
29057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29058 if eval "test \"\${$as_ac_var+set}\" = set"; then
29059 echo $ECHO_N "(cached) $ECHO_C" >&6
29060 else
29061 cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h. */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h. */
29067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29069 #define $ac_func innocuous_$ac_func
29070
29071 /* System header to define __stub macros and hopefully few prototypes,
29072 which can conflict with char $ac_func (); below.
29073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29074 <limits.h> exists even on freestanding compilers. */
29075
29076 #ifdef __STDC__
29077 # include <limits.h>
29078 #else
29079 # include <assert.h>
29080 #endif
29081
29082 #undef $ac_func
29083
29084 /* Override any gcc2 internal prototype to avoid an error. */
29085 #ifdef __cplusplus
29086 extern "C"
29087 {
29088 #endif
29089 /* We use char because int might match the return type of a gcc2
29090 builtin and then its argument prototype would still apply. */
29091 char $ac_func ();
29092 /* The GNU C library defines this for functions which it implements
29093 to always fail with ENOSYS. Some functions are actually named
29094 something starting with __ and the normal name is an alias. */
29095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29096 choke me
29097 #else
29098 char (*f) () = $ac_func;
29099 #endif
29100 #ifdef __cplusplus
29101 }
29102 #endif
29103
29104 int
29105 main ()
29106 {
29107 return f != $ac_func;
29108 ;
29109 return 0;
29110 }
29111 _ACEOF
29112 rm -f conftest.$ac_objext conftest$ac_exeext
29113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29114 (eval $ac_link) 2>conftest.er1
29115 ac_status=$?
29116 grep -v '^ *+' conftest.er1 >conftest.err
29117 rm -f conftest.er1
29118 cat conftest.err >&5
29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120 (exit $ac_status); } &&
29121 { ac_try='test -z "$ac_cxx_werror_flag"
29122 || test ! -s conftest.err'
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29125 ac_status=$?
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; } &&
29128 { ac_try='test -s conftest$ac_exeext'
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; }; then
29134 eval "$as_ac_var=yes"
29135 else
29136 echo "$as_me: failed program was:" >&5
29137 sed 's/^/| /' conftest.$ac_ext >&5
29138
29139 eval "$as_ac_var=no"
29140 fi
29141 rm -f conftest.err conftest.$ac_objext \
29142 conftest$ac_exeext conftest.$ac_ext
29143 fi
29144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29146 if test `eval echo '${'$as_ac_var'}'` = yes; then
29147 cat >>confdefs.h <<_ACEOF
29148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29149 _ACEOF
29150
29151 fi
29152 done
29153
29154
29155 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29156 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29157 cat >conftest.$ac_ext <<_ACEOF
29158 /* confdefs.h. */
29159 _ACEOF
29160 cat confdefs.h >>conftest.$ac_ext
29161 cat >>conftest.$ac_ext <<_ACEOF
29162 /* end confdefs.h. */
29163 #include <wchar.h>
29164 int
29165 main ()
29166 {
29167 &_vsnwprintf;
29168 ;
29169 return 0;
29170 }
29171 _ACEOF
29172 rm -f conftest.$ac_objext
29173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29174 (eval $ac_compile) 2>conftest.er1
29175 ac_status=$?
29176 grep -v '^ *+' conftest.er1 >conftest.err
29177 rm -f conftest.er1
29178 cat conftest.err >&5
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); } &&
29181 { ac_try='test -z "$ac_cxx_werror_flag"
29182 || test ! -s conftest.err'
29183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29184 (eval $ac_try) 2>&5
29185 ac_status=$?
29186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29187 (exit $ac_status); }; } &&
29188 { ac_try='test -s conftest.$ac_objext'
29189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29190 (eval $ac_try) 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; }; then
29194 echo "$as_me:$LINENO: result: yes" >&5
29195 echo "${ECHO_T}yes" >&6
29196 cat >>confdefs.h <<\_ACEOF
29197 #define HAVE__VSNWPRINTF 1
29198 _ACEOF
29199
29200 else
29201 echo "$as_me: failed program was:" >&5
29202 sed 's/^/| /' conftest.$ac_ext >&5
29203
29204 echo "$as_me:$LINENO: result: no" >&5
29205 echo "${ECHO_T}no" >&6
29206 fi
29207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29208 fi
29209
29210 ac_ext=c
29211 ac_cpp='$CPP $CPPFLAGS'
29212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29215
29216
29217
29218
29219 if test "$TOOLKIT" != "MSW"; then
29220
29221
29222
29223
29224 ac_ext=cc
29225 ac_cpp='$CXXCPP $CPPFLAGS'
29226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29229
29230
29231
29232
29233 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29234 if test "${with_libiconv_prefix+set}" = set; then
29235 withval="$with_libiconv_prefix"
29236
29237 for dir in `echo "$withval" | tr : ' '`; do
29238 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29239 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29240 done
29241
29242 fi;
29243
29244 echo "$as_me:$LINENO: checking for iconv" >&5
29245 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29246 if test "${am_cv_func_iconv+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29248 else
29249
29250 am_cv_func_iconv="no, consider installing GNU libiconv"
29251 am_cv_lib_iconv=no
29252 cat >conftest.$ac_ext <<_ACEOF
29253 /* confdefs.h. */
29254 _ACEOF
29255 cat confdefs.h >>conftest.$ac_ext
29256 cat >>conftest.$ac_ext <<_ACEOF
29257 /* end confdefs.h. */
29258 #include <stdlib.h>
29259 #include <iconv.h>
29260 int
29261 main ()
29262 {
29263 iconv_t cd = iconv_open("","");
29264 iconv(cd,NULL,NULL,NULL,NULL);
29265 iconv_close(cd);
29266 ;
29267 return 0;
29268 }
29269 _ACEOF
29270 rm -f conftest.$ac_objext conftest$ac_exeext
29271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29272 (eval $ac_link) 2>conftest.er1
29273 ac_status=$?
29274 grep -v '^ *+' conftest.er1 >conftest.err
29275 rm -f conftest.er1
29276 cat conftest.err >&5
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); } &&
29279 { ac_try='test -z "$ac_cxx_werror_flag"
29280 || test ! -s conftest.err'
29281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; } &&
29286 { ac_try='test -s conftest$ac_exeext'
29287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288 (eval $ac_try) 2>&5
29289 ac_status=$?
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); }; }; then
29292 am_cv_func_iconv=yes
29293 else
29294 echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29296
29297 fi
29298 rm -f conftest.err conftest.$ac_objext \
29299 conftest$ac_exeext conftest.$ac_ext
29300 if test "$am_cv_func_iconv" != yes; then
29301 am_save_LIBS="$LIBS"
29302 LIBS="$LIBS -liconv"
29303 cat >conftest.$ac_ext <<_ACEOF
29304 /* confdefs.h. */
29305 _ACEOF
29306 cat confdefs.h >>conftest.$ac_ext
29307 cat >>conftest.$ac_ext <<_ACEOF
29308 /* end confdefs.h. */
29309 #include <stdlib.h>
29310 #include <iconv.h>
29311 int
29312 main ()
29313 {
29314 iconv_t cd = iconv_open("","");
29315 iconv(cd,NULL,NULL,NULL,NULL);
29316 iconv_close(cd);
29317 ;
29318 return 0;
29319 }
29320 _ACEOF
29321 rm -f conftest.$ac_objext conftest$ac_exeext
29322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29323 (eval $ac_link) 2>conftest.er1
29324 ac_status=$?
29325 grep -v '^ *+' conftest.er1 >conftest.err
29326 rm -f conftest.er1
29327 cat conftest.err >&5
29328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 (exit $ac_status); } &&
29330 { ac_try='test -z "$ac_cxx_werror_flag"
29331 || test ! -s conftest.err'
29332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333 (eval $ac_try) 2>&5
29334 ac_status=$?
29335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336 (exit $ac_status); }; } &&
29337 { ac_try='test -s conftest$ac_exeext'
29338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29339 (eval $ac_try) 2>&5
29340 ac_status=$?
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; }; then
29343 am_cv_lib_iconv=yes
29344 am_cv_func_iconv=yes
29345 else
29346 echo "$as_me: failed program was:" >&5
29347 sed 's/^/| /' conftest.$ac_ext >&5
29348
29349 fi
29350 rm -f conftest.err conftest.$ac_objext \
29351 conftest$ac_exeext conftest.$ac_ext
29352 LIBS="$am_save_LIBS"
29353 fi
29354
29355 fi
29356 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29357 echo "${ECHO_T}$am_cv_func_iconv" >&6
29358 if test "$am_cv_func_iconv" = yes; then
29359
29360 cat >>confdefs.h <<\_ACEOF
29361 #define HAVE_ICONV 1
29362 _ACEOF
29363
29364 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29365 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29366 if test "${wx_cv_func_iconv_const+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29368 else
29369 cat >conftest.$ac_ext <<_ACEOF
29370 /* confdefs.h. */
29371 _ACEOF
29372 cat confdefs.h >>conftest.$ac_ext
29373 cat >>conftest.$ac_ext <<_ACEOF
29374 /* end confdefs.h. */
29375
29376 #include <stdlib.h>
29377 #include <iconv.h>
29378 extern
29379 #ifdef __cplusplus
29380 "C"
29381 #endif
29382 #if defined(__STDC__) || defined(__cplusplus)
29383 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29384 #else
29385 size_t iconv();
29386 #endif
29387
29388 int
29389 main ()
29390 {
29391
29392 ;
29393 return 0;
29394 }
29395 _ACEOF
29396 rm -f conftest.$ac_objext
29397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29398 (eval $ac_compile) 2>conftest.er1
29399 ac_status=$?
29400 grep -v '^ *+' conftest.er1 >conftest.err
29401 rm -f conftest.er1
29402 cat conftest.err >&5
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); } &&
29405 { ac_try='test -z "$ac_cxx_werror_flag"
29406 || test ! -s conftest.err'
29407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; } &&
29412 { ac_try='test -s conftest.$ac_objext'
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; }; then
29418 wx_cv_func_iconv_const="no"
29419 else
29420 echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29422
29423 wx_cv_func_iconv_const="yes"
29424
29425 fi
29426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29427
29428 fi
29429 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29430 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29431
29432 iconv_const=
29433 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29434 iconv_const="const"
29435 fi
29436
29437
29438 cat >>confdefs.h <<_ACEOF
29439 #define ICONV_CONST $iconv_const
29440 _ACEOF
29441
29442 fi
29443 LIBICONV=
29444 if test "$am_cv_lib_iconv" = yes; then
29445 LIBICONV="-liconv"
29446 fi
29447
29448
29449 LIBS="$LIBICONV $LIBS"
29450 ac_ext=c
29451 ac_cpp='$CPP $CPPFLAGS'
29452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29455
29456
29457 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29458
29459 for ac_func in sigaction
29460 do
29461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29462 echo "$as_me:$LINENO: checking for $ac_func" >&5
29463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29464 if eval "test \"\${$as_ac_var+set}\" = set"; then
29465 echo $ECHO_N "(cached) $ECHO_C" >&6
29466 else
29467 cat >conftest.$ac_ext <<_ACEOF
29468 /* confdefs.h. */
29469 _ACEOF
29470 cat confdefs.h >>conftest.$ac_ext
29471 cat >>conftest.$ac_ext <<_ACEOF
29472 /* end confdefs.h. */
29473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29475 #define $ac_func innocuous_$ac_func
29476
29477 /* System header to define __stub macros and hopefully few prototypes,
29478 which can conflict with char $ac_func (); below.
29479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29480 <limits.h> exists even on freestanding compilers. */
29481
29482 #ifdef __STDC__
29483 # include <limits.h>
29484 #else
29485 # include <assert.h>
29486 #endif
29487
29488 #undef $ac_func
29489
29490 /* Override any gcc2 internal prototype to avoid an error. */
29491 #ifdef __cplusplus
29492 extern "C"
29493 {
29494 #endif
29495 /* We use char because int might match the return type of a gcc2
29496 builtin and then its argument prototype would still apply. */
29497 char $ac_func ();
29498 /* The GNU C library defines this for functions which it implements
29499 to always fail with ENOSYS. Some functions are actually named
29500 something starting with __ and the normal name is an alias. */
29501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29502 choke me
29503 #else
29504 char (*f) () = $ac_func;
29505 #endif
29506 #ifdef __cplusplus
29507 }
29508 #endif
29509
29510 int
29511 main ()
29512 {
29513 return f != $ac_func;
29514 ;
29515 return 0;
29516 }
29517 _ACEOF
29518 rm -f conftest.$ac_objext conftest$ac_exeext
29519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29520 (eval $ac_link) 2>conftest.er1
29521 ac_status=$?
29522 grep -v '^ *+' conftest.er1 >conftest.err
29523 rm -f conftest.er1
29524 cat conftest.err >&5
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); } &&
29527 { ac_try='test -z "$ac_c_werror_flag"
29528 || test ! -s conftest.err'
29529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29530 (eval $ac_try) 2>&5
29531 ac_status=$?
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); }; } &&
29534 { ac_try='test -s conftest$ac_exeext'
29535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536 (eval $ac_try) 2>&5
29537 ac_status=$?
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); }; }; then
29540 eval "$as_ac_var=yes"
29541 else
29542 echo "$as_me: failed program was:" >&5
29543 sed 's/^/| /' conftest.$ac_ext >&5
29544
29545 eval "$as_ac_var=no"
29546 fi
29547 rm -f conftest.err conftest.$ac_objext \
29548 conftest$ac_exeext conftest.$ac_ext
29549 fi
29550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29552 if test `eval echo '${'$as_ac_var'}'` = yes; then
29553 cat >>confdefs.h <<_ACEOF
29554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29555 _ACEOF
29556
29557 fi
29558 done
29559
29560
29561 if test "$ac_cv_func_sigaction" = "no"; then
29562 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29563 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29564 wxUSE_ON_FATAL_EXCEPTION=no
29565 fi
29566
29567 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29568
29569
29570 ac_ext=cc
29571 ac_cpp='$CXXCPP $CPPFLAGS'
29572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29575
29576
29577 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29578 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29579 if test "${wx_cv_type_sa_handler+set}" = set; then
29580 echo $ECHO_N "(cached) $ECHO_C" >&6
29581 else
29582
29583 cat >conftest.$ac_ext <<_ACEOF
29584 /* confdefs.h. */
29585 _ACEOF
29586 cat confdefs.h >>conftest.$ac_ext
29587 cat >>conftest.$ac_ext <<_ACEOF
29588 /* end confdefs.h. */
29589 #include <signal.h>
29590 int
29591 main ()
29592 {
29593
29594 extern void testSigHandler(int);
29595
29596 struct sigaction sa;
29597 sa.sa_handler = testSigHandler;
29598
29599 ;
29600 return 0;
29601 }
29602 _ACEOF
29603 rm -f conftest.$ac_objext
29604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29605 (eval $ac_compile) 2>conftest.er1
29606 ac_status=$?
29607 grep -v '^ *+' conftest.er1 >conftest.err
29608 rm -f conftest.er1
29609 cat conftest.err >&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } &&
29612 { ac_try='test -z "$ac_cxx_werror_flag"
29613 || test ! -s conftest.err'
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest.$ac_objext'
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625
29626 wx_cv_type_sa_handler=int
29627
29628 else
29629 echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29631
29632
29633 wx_cv_type_sa_handler=void
29634
29635 fi
29636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29637
29638 fi
29639 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29640 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29641
29642 ac_ext=c
29643 ac_cpp='$CPP $CPPFLAGS'
29644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29647
29648
29649 cat >>confdefs.h <<_ACEOF
29650 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29651 _ACEOF
29652
29653 fi
29654 fi
29655
29656
29657
29658 for ac_func in mkstemp mktemp
29659 do
29660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29661 echo "$as_me:$LINENO: checking for $ac_func" >&5
29662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29663 if eval "test \"\${$as_ac_var+set}\" = set"; then
29664 echo $ECHO_N "(cached) $ECHO_C" >&6
29665 else
29666 cat >conftest.$ac_ext <<_ACEOF
29667 /* confdefs.h. */
29668 _ACEOF
29669 cat confdefs.h >>conftest.$ac_ext
29670 cat >>conftest.$ac_ext <<_ACEOF
29671 /* end confdefs.h. */
29672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29674 #define $ac_func innocuous_$ac_func
29675
29676 /* System header to define __stub macros and hopefully few prototypes,
29677 which can conflict with char $ac_func (); below.
29678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29679 <limits.h> exists even on freestanding compilers. */
29680
29681 #ifdef __STDC__
29682 # include <limits.h>
29683 #else
29684 # include <assert.h>
29685 #endif
29686
29687 #undef $ac_func
29688
29689 /* Override any gcc2 internal prototype to avoid an error. */
29690 #ifdef __cplusplus
29691 extern "C"
29692 {
29693 #endif
29694 /* We use char because int might match the return type of a gcc2
29695 builtin and then its argument prototype would still apply. */
29696 char $ac_func ();
29697 /* The GNU C library defines this for functions which it implements
29698 to always fail with ENOSYS. Some functions are actually named
29699 something starting with __ and the normal name is an alias. */
29700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29701 choke me
29702 #else
29703 char (*f) () = $ac_func;
29704 #endif
29705 #ifdef __cplusplus
29706 }
29707 #endif
29708
29709 int
29710 main ()
29711 {
29712 return f != $ac_func;
29713 ;
29714 return 0;
29715 }
29716 _ACEOF
29717 rm -f conftest.$ac_objext conftest$ac_exeext
29718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29719 (eval $ac_link) 2>conftest.er1
29720 ac_status=$?
29721 grep -v '^ *+' conftest.er1 >conftest.err
29722 rm -f conftest.er1
29723 cat conftest.err >&5
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); } &&
29726 { ac_try='test -z "$ac_c_werror_flag"
29727 || test ! -s conftest.err'
29728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29729 (eval $ac_try) 2>&5
29730 ac_status=$?
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29732 (exit $ac_status); }; } &&
29733 { ac_try='test -s conftest$ac_exeext'
29734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29735 (eval $ac_try) 2>&5
29736 ac_status=$?
29737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29738 (exit $ac_status); }; }; then
29739 eval "$as_ac_var=yes"
29740 else
29741 echo "$as_me: failed program was:" >&5
29742 sed 's/^/| /' conftest.$ac_ext >&5
29743
29744 eval "$as_ac_var=no"
29745 fi
29746 rm -f conftest.err conftest.$ac_objext \
29747 conftest$ac_exeext conftest.$ac_ext
29748 fi
29749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29750 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29751 if test `eval echo '${'$as_ac_var'}'` = yes; then
29752 cat >>confdefs.h <<_ACEOF
29753 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29754 _ACEOF
29755 break
29756 fi
29757 done
29758
29759
29760 echo "$as_me:$LINENO: checking for statfs" >&5
29761 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29762 if test "${wx_cv_func_statfs+set}" = set; then
29763 echo $ECHO_N "(cached) $ECHO_C" >&6
29764 else
29765 cat >conftest.$ac_ext <<_ACEOF
29766 /* confdefs.h. */
29767 _ACEOF
29768 cat confdefs.h >>conftest.$ac_ext
29769 cat >>conftest.$ac_ext <<_ACEOF
29770 /* end confdefs.h. */
29771
29772 #if defined(__BSD__)
29773 #include <sys/param.h>
29774 #include <sys/mount.h>
29775 #else
29776 #include <sys/vfs.h>
29777 #endif
29778
29779 int
29780 main ()
29781 {
29782
29783 long l;
29784 struct statfs fs;
29785 statfs("/", &fs);
29786 l = fs.f_bsize;
29787 l += fs.f_blocks;
29788 l += fs.f_bavail;
29789
29790 ;
29791 return 0;
29792 }
29793 _ACEOF
29794 rm -f conftest.$ac_objext
29795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29796 (eval $ac_compile) 2>conftest.er1
29797 ac_status=$?
29798 grep -v '^ *+' conftest.er1 >conftest.err
29799 rm -f conftest.er1
29800 cat conftest.err >&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } &&
29803 { ac_try='test -z "$ac_c_werror_flag"
29804 || test ! -s conftest.err'
29805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29806 (eval $ac_try) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); }; } &&
29810 { ac_try='test -s conftest.$ac_objext'
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; }; then
29816
29817 wx_cv_func_statfs=yes
29818
29819 else
29820 echo "$as_me: failed program was:" >&5
29821 sed 's/^/| /' conftest.$ac_ext >&5
29822
29823
29824 wx_cv_func_statfs=no
29825
29826
29827 fi
29828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29829
29830 fi
29831 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29832 echo "${ECHO_T}$wx_cv_func_statfs" >&6
29833
29834 if test "$wx_cv_func_statfs" = "yes"; then
29835 wx_cv_type_statvfs_t="struct statfs"
29836 cat >>confdefs.h <<\_ACEOF
29837 #define HAVE_STATFS 1
29838 _ACEOF
29839
29840 else
29841 echo "$as_me:$LINENO: checking for statvfs" >&5
29842 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29843 if test "${wx_cv_func_statvfs+set}" = set; then
29844 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 else
29846 cat >conftest.$ac_ext <<_ACEOF
29847 /* confdefs.h. */
29848 _ACEOF
29849 cat confdefs.h >>conftest.$ac_ext
29850 cat >>conftest.$ac_ext <<_ACEOF
29851 /* end confdefs.h. */
29852
29853 #include <stddef.h>
29854 #include <sys/statvfs.h>
29855
29856 int
29857 main ()
29858 {
29859
29860 statvfs("/", NULL);
29861
29862 ;
29863 return 0;
29864 }
29865 _ACEOF
29866 rm -f conftest.$ac_objext
29867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29868 (eval $ac_compile) 2>conftest.er1
29869 ac_status=$?
29870 grep -v '^ *+' conftest.er1 >conftest.err
29871 rm -f conftest.er1
29872 cat conftest.err >&5
29873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874 (exit $ac_status); } &&
29875 { ac_try='test -z "$ac_c_werror_flag"
29876 || test ! -s conftest.err'
29877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878 (eval $ac_try) 2>&5
29879 ac_status=$?
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); }; } &&
29882 { ac_try='test -s conftest.$ac_objext'
29883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884 (eval $ac_try) 2>&5
29885 ac_status=$?
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; }; then
29888 wx_cv_func_statvfs=yes
29889 else
29890 echo "$as_me: failed program was:" >&5
29891 sed 's/^/| /' conftest.$ac_ext >&5
29892
29893 wx_cv_func_statvfs=no
29894
29895 fi
29896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29897
29898 fi
29899 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29900 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29901
29902 if test "$wx_cv_func_statvfs" = "yes"; then
29903
29904
29905 ac_ext=cc
29906 ac_cpp='$CXXCPP $CPPFLAGS'
29907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29910
29911
29912 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29913 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29914 if test "${wx_cv_type_statvfs_t+set}" = set; then
29915 echo $ECHO_N "(cached) $ECHO_C" >&6
29916 else
29917 cat >conftest.$ac_ext <<_ACEOF
29918 /* confdefs.h. */
29919 _ACEOF
29920 cat confdefs.h >>conftest.$ac_ext
29921 cat >>conftest.$ac_ext <<_ACEOF
29922 /* end confdefs.h. */
29923
29924 #include <sys/statvfs.h>
29925
29926 int
29927 main ()
29928 {
29929
29930 long l;
29931 statvfs_t fs;
29932 statvfs("/", &fs);
29933 l = fs.f_bsize;
29934 l += fs.f_blocks;
29935 l += fs.f_bavail;
29936
29937 ;
29938 return 0;
29939 }
29940 _ACEOF
29941 rm -f conftest.$ac_objext
29942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29943 (eval $ac_compile) 2>conftest.er1
29944 ac_status=$?
29945 grep -v '^ *+' conftest.er1 >conftest.err
29946 rm -f conftest.er1
29947 cat conftest.err >&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); } &&
29950 { ac_try='test -z "$ac_cxx_werror_flag"
29951 || test ! -s conftest.err'
29952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29953 (eval $ac_try) 2>&5
29954 ac_status=$?
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; } &&
29957 { ac_try='test -s conftest.$ac_objext'
29958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29959 (eval $ac_try) 2>&5
29960 ac_status=$?
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); }; }; then
29963 wx_cv_type_statvfs_t=statvfs_t
29964 else
29965 echo "$as_me: failed program was:" >&5
29966 sed 's/^/| /' conftest.$ac_ext >&5
29967
29968
29969 cat >conftest.$ac_ext <<_ACEOF
29970 /* confdefs.h. */
29971 _ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h. */
29975
29976 #include <sys/statvfs.h>
29977
29978 int
29979 main ()
29980 {
29981
29982 long l;
29983 struct statvfs fs;
29984 statvfs("/", &fs);
29985 l = fs.f_bsize;
29986 l += fs.f_blocks;
29987 l += fs.f_bavail;
29988
29989 ;
29990 return 0;
29991 }
29992 _ACEOF
29993 rm -f conftest.$ac_objext
29994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29995 (eval $ac_compile) 2>conftest.er1
29996 ac_status=$?
29997 grep -v '^ *+' conftest.er1 >conftest.err
29998 rm -f conftest.er1
29999 cat conftest.err >&5
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
30002 { ac_try='test -z "$ac_cxx_werror_flag"
30003 || test ! -s conftest.err'
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30006 ac_status=$?
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; } &&
30009 { ac_try='test -s conftest.$ac_objext'
30010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011 (eval $ac_try) 2>&5
30012 ac_status=$?
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; }; then
30015 wx_cv_type_statvfs_t="struct statvfs"
30016 else
30017 echo "$as_me: failed program was:" >&5
30018 sed 's/^/| /' conftest.$ac_ext >&5
30019
30020 wx_cv_type_statvfs_t="unknown"
30021
30022 fi
30023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30024
30025
30026 fi
30027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30028
30029 fi
30030 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30031 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30032
30033 ac_ext=c
30034 ac_cpp='$CPP $CPPFLAGS'
30035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30038
30039
30040 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30041 cat >>confdefs.h <<\_ACEOF
30042 #define HAVE_STATVFS 1
30043 _ACEOF
30044
30045 fi
30046 else
30047 wx_cv_type_statvfs_t="unknown"
30048 fi
30049 fi
30050
30051 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30052 cat >>confdefs.h <<_ACEOF
30053 #define WX_STATFS_T $wx_cv_type_statvfs_t
30054 _ACEOF
30055
30056 else
30057 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30058 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30059 fi
30060
30061 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30062
30063
30064 for ac_func in fcntl flock
30065 do
30066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30067 echo "$as_me:$LINENO: checking for $ac_func" >&5
30068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30069 if eval "test \"\${$as_ac_var+set}\" = set"; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
30071 else
30072 cat >conftest.$ac_ext <<_ACEOF
30073 /* confdefs.h. */
30074 _ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h. */
30078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30080 #define $ac_func innocuous_$ac_func
30081
30082 /* System header to define __stub macros and hopefully few prototypes,
30083 which can conflict with char $ac_func (); below.
30084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30085 <limits.h> exists even on freestanding compilers. */
30086
30087 #ifdef __STDC__
30088 # include <limits.h>
30089 #else
30090 # include <assert.h>
30091 #endif
30092
30093 #undef $ac_func
30094
30095 /* Override any gcc2 internal prototype to avoid an error. */
30096 #ifdef __cplusplus
30097 extern "C"
30098 {
30099 #endif
30100 /* We use char because int might match the return type of a gcc2
30101 builtin and then its argument prototype would still apply. */
30102 char $ac_func ();
30103 /* The GNU C library defines this for functions which it implements
30104 to always fail with ENOSYS. Some functions are actually named
30105 something starting with __ and the normal name is an alias. */
30106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30107 choke me
30108 #else
30109 char (*f) () = $ac_func;
30110 #endif
30111 #ifdef __cplusplus
30112 }
30113 #endif
30114
30115 int
30116 main ()
30117 {
30118 return f != $ac_func;
30119 ;
30120 return 0;
30121 }
30122 _ACEOF
30123 rm -f conftest.$ac_objext conftest$ac_exeext
30124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30125 (eval $ac_link) 2>conftest.er1
30126 ac_status=$?
30127 grep -v '^ *+' conftest.er1 >conftest.err
30128 rm -f conftest.er1
30129 cat conftest.err >&5
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } &&
30132 { ac_try='test -z "$ac_c_werror_flag"
30133 || test ! -s conftest.err'
30134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135 (eval $ac_try) 2>&5
30136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; } &&
30139 { ac_try='test -s conftest$ac_exeext'
30140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141 (eval $ac_try) 2>&5
30142 ac_status=$?
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; }; then
30145 eval "$as_ac_var=yes"
30146 else
30147 echo "$as_me: failed program was:" >&5
30148 sed 's/^/| /' conftest.$ac_ext >&5
30149
30150 eval "$as_ac_var=no"
30151 fi
30152 rm -f conftest.err conftest.$ac_objext \
30153 conftest$ac_exeext conftest.$ac_ext
30154 fi
30155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30157 if test `eval echo '${'$as_ac_var'}'` = yes; then
30158 cat >>confdefs.h <<_ACEOF
30159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30160 _ACEOF
30161 break
30162 fi
30163 done
30164
30165
30166 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30167 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30168 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30169 wxUSE_SNGLINST_CHECKER=no
30170 fi
30171 fi
30172
30173
30174 for ac_func in timegm
30175 do
30176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30177 echo "$as_me:$LINENO: checking for $ac_func" >&5
30178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30179 if eval "test \"\${$as_ac_var+set}\" = set"; then
30180 echo $ECHO_N "(cached) $ECHO_C" >&6
30181 else
30182 cat >conftest.$ac_ext <<_ACEOF
30183 /* confdefs.h. */
30184 _ACEOF
30185 cat confdefs.h >>conftest.$ac_ext
30186 cat >>conftest.$ac_ext <<_ACEOF
30187 /* end confdefs.h. */
30188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30190 #define $ac_func innocuous_$ac_func
30191
30192 /* System header to define __stub macros and hopefully few prototypes,
30193 which can conflict with char $ac_func (); below.
30194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30195 <limits.h> exists even on freestanding compilers. */
30196
30197 #ifdef __STDC__
30198 # include <limits.h>
30199 #else
30200 # include <assert.h>
30201 #endif
30202
30203 #undef $ac_func
30204
30205 /* Override any gcc2 internal prototype to avoid an error. */
30206 #ifdef __cplusplus
30207 extern "C"
30208 {
30209 #endif
30210 /* We use char because int might match the return type of a gcc2
30211 builtin and then its argument prototype would still apply. */
30212 char $ac_func ();
30213 /* The GNU C library defines this for functions which it implements
30214 to always fail with ENOSYS. Some functions are actually named
30215 something starting with __ and the normal name is an alias. */
30216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30217 choke me
30218 #else
30219 char (*f) () = $ac_func;
30220 #endif
30221 #ifdef __cplusplus
30222 }
30223 #endif
30224
30225 int
30226 main ()
30227 {
30228 return f != $ac_func;
30229 ;
30230 return 0;
30231 }
30232 _ACEOF
30233 rm -f conftest.$ac_objext conftest$ac_exeext
30234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30235 (eval $ac_link) 2>conftest.er1
30236 ac_status=$?
30237 grep -v '^ *+' conftest.er1 >conftest.err
30238 rm -f conftest.er1
30239 cat conftest.err >&5
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); } &&
30242 { ac_try='test -z "$ac_c_werror_flag"
30243 || test ! -s conftest.err'
30244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30245 (eval $ac_try) 2>&5
30246 ac_status=$?
30247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30248 (exit $ac_status); }; } &&
30249 { ac_try='test -s conftest$ac_exeext'
30250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30251 (eval $ac_try) 2>&5
30252 ac_status=$?
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; }; then
30255 eval "$as_ac_var=yes"
30256 else
30257 echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30259
30260 eval "$as_ac_var=no"
30261 fi
30262 rm -f conftest.err conftest.$ac_objext \
30263 conftest$ac_exeext conftest.$ac_ext
30264 fi
30265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30267 if test `eval echo '${'$as_ac_var'}'` = yes; then
30268 cat >>confdefs.h <<_ACEOF
30269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30270 _ACEOF
30271
30272 fi
30273 done
30274
30275
30276
30277
30278 for ac_func in putenv setenv
30279 do
30280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30281 echo "$as_me:$LINENO: checking for $ac_func" >&5
30282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30283 if eval "test \"\${$as_ac_var+set}\" = set"; then
30284 echo $ECHO_N "(cached) $ECHO_C" >&6
30285 else
30286 cat >conftest.$ac_ext <<_ACEOF
30287 /* confdefs.h. */
30288 _ACEOF
30289 cat confdefs.h >>conftest.$ac_ext
30290 cat >>conftest.$ac_ext <<_ACEOF
30291 /* end confdefs.h. */
30292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30294 #define $ac_func innocuous_$ac_func
30295
30296 /* System header to define __stub macros and hopefully few prototypes,
30297 which can conflict with char $ac_func (); below.
30298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30299 <limits.h> exists even on freestanding compilers. */
30300
30301 #ifdef __STDC__
30302 # include <limits.h>
30303 #else
30304 # include <assert.h>
30305 #endif
30306
30307 #undef $ac_func
30308
30309 /* Override any gcc2 internal prototype to avoid an error. */
30310 #ifdef __cplusplus
30311 extern "C"
30312 {
30313 #endif
30314 /* We use char because int might match the return type of a gcc2
30315 builtin and then its argument prototype would still apply. */
30316 char $ac_func ();
30317 /* The GNU C library defines this for functions which it implements
30318 to always fail with ENOSYS. Some functions are actually named
30319 something starting with __ and the normal name is an alias. */
30320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30321 choke me
30322 #else
30323 char (*f) () = $ac_func;
30324 #endif
30325 #ifdef __cplusplus
30326 }
30327 #endif
30328
30329 int
30330 main ()
30331 {
30332 return f != $ac_func;
30333 ;
30334 return 0;
30335 }
30336 _ACEOF
30337 rm -f conftest.$ac_objext conftest$ac_exeext
30338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30339 (eval $ac_link) 2>conftest.er1
30340 ac_status=$?
30341 grep -v '^ *+' conftest.er1 >conftest.err
30342 rm -f conftest.er1
30343 cat conftest.err >&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } &&
30346 { ac_try='test -z "$ac_c_werror_flag"
30347 || test ! -s conftest.err'
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; } &&
30353 { ac_try='test -s conftest$ac_exeext'
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; }; then
30359 eval "$as_ac_var=yes"
30360 else
30361 echo "$as_me: failed program was:" >&5
30362 sed 's/^/| /' conftest.$ac_ext >&5
30363
30364 eval "$as_ac_var=no"
30365 fi
30366 rm -f conftest.err conftest.$ac_objext \
30367 conftest$ac_exeext conftest.$ac_ext
30368 fi
30369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30371 if test `eval echo '${'$as_ac_var'}'` = yes; then
30372 cat >>confdefs.h <<_ACEOF
30373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30374 _ACEOF
30375 break
30376 fi
30377 done
30378
30379
30380 HAVE_SOME_SLEEP_FUNC=0
30381 if test "$USE_BEOS" = 1; then
30382 cat >>confdefs.h <<\_ACEOF
30383 #define HAVE_SLEEP 1
30384 _ACEOF
30385
30386 HAVE_SOME_SLEEP_FUNC=1
30387 fi
30388
30389 if test "$USE_DARWIN" = 1; then
30390 cat >>confdefs.h <<\_ACEOF
30391 #define HAVE_USLEEP 1
30392 _ACEOF
30393
30394 HAVE_SOME_SLEEP_FUNC=1
30395 fi
30396
30397 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30398 POSIX4_LINK=
30399
30400 for ac_func in nanosleep
30401 do
30402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30403 echo "$as_me:$LINENO: checking for $ac_func" >&5
30404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30405 if eval "test \"\${$as_ac_var+set}\" = set"; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407 else
30408 cat >conftest.$ac_ext <<_ACEOF
30409 /* confdefs.h. */
30410 _ACEOF
30411 cat confdefs.h >>conftest.$ac_ext
30412 cat >>conftest.$ac_ext <<_ACEOF
30413 /* end confdefs.h. */
30414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30416 #define $ac_func innocuous_$ac_func
30417
30418 /* System header to define __stub macros and hopefully few prototypes,
30419 which can conflict with char $ac_func (); below.
30420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30421 <limits.h> exists even on freestanding compilers. */
30422
30423 #ifdef __STDC__
30424 # include <limits.h>
30425 #else
30426 # include <assert.h>
30427 #endif
30428
30429 #undef $ac_func
30430
30431 /* Override any gcc2 internal prototype to avoid an error. */
30432 #ifdef __cplusplus
30433 extern "C"
30434 {
30435 #endif
30436 /* We use char because int might match the return type of a gcc2
30437 builtin and then its argument prototype would still apply. */
30438 char $ac_func ();
30439 /* The GNU C library defines this for functions which it implements
30440 to always fail with ENOSYS. Some functions are actually named
30441 something starting with __ and the normal name is an alias. */
30442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30443 choke me
30444 #else
30445 char (*f) () = $ac_func;
30446 #endif
30447 #ifdef __cplusplus
30448 }
30449 #endif
30450
30451 int
30452 main ()
30453 {
30454 return f != $ac_func;
30455 ;
30456 return 0;
30457 }
30458 _ACEOF
30459 rm -f conftest.$ac_objext conftest$ac_exeext
30460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30461 (eval $ac_link) 2>conftest.er1
30462 ac_status=$?
30463 grep -v '^ *+' conftest.er1 >conftest.err
30464 rm -f conftest.er1
30465 cat conftest.err >&5
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); } &&
30468 { ac_try='test -z "$ac_c_werror_flag"
30469 || test ! -s conftest.err'
30470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471 (eval $ac_try) 2>&5
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; } &&
30475 { ac_try='test -s conftest$ac_exeext'
30476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477 (eval $ac_try) 2>&5
30478 ac_status=$?
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30481 eval "$as_ac_var=yes"
30482 else
30483 echo "$as_me: failed program was:" >&5
30484 sed 's/^/| /' conftest.$ac_ext >&5
30485
30486 eval "$as_ac_var=no"
30487 fi
30488 rm -f conftest.err conftest.$ac_objext \
30489 conftest$ac_exeext conftest.$ac_ext
30490 fi
30491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30493 if test `eval echo '${'$as_ac_var'}'` = yes; then
30494 cat >>confdefs.h <<_ACEOF
30495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30496 _ACEOF
30497 cat >>confdefs.h <<\_ACEOF
30498 #define HAVE_NANOSLEEP 1
30499 _ACEOF
30500
30501 else
30502
30503 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30504 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30505 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30506 echo $ECHO_N "(cached) $ECHO_C" >&6
30507 else
30508 ac_check_lib_save_LIBS=$LIBS
30509 LIBS="-lposix4 $LIBS"
30510 cat >conftest.$ac_ext <<_ACEOF
30511 /* confdefs.h. */
30512 _ACEOF
30513 cat confdefs.h >>conftest.$ac_ext
30514 cat >>conftest.$ac_ext <<_ACEOF
30515 /* end confdefs.h. */
30516
30517 /* Override any gcc2 internal prototype to avoid an error. */
30518 #ifdef __cplusplus
30519 extern "C"
30520 #endif
30521 /* We use char because int might match the return type of a gcc2
30522 builtin and then its argument prototype would still apply. */
30523 char nanosleep ();
30524 int
30525 main ()
30526 {
30527 nanosleep ();
30528 ;
30529 return 0;
30530 }
30531 _ACEOF
30532 rm -f conftest.$ac_objext conftest$ac_exeext
30533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30534 (eval $ac_link) 2>conftest.er1
30535 ac_status=$?
30536 grep -v '^ *+' conftest.er1 >conftest.err
30537 rm -f conftest.er1
30538 cat conftest.err >&5
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540 (exit $ac_status); } &&
30541 { ac_try='test -z "$ac_c_werror_flag"
30542 || test ! -s conftest.err'
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; } &&
30548 { ac_try='test -s conftest$ac_exeext'
30549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30550 (eval $ac_try) 2>&5
30551 ac_status=$?
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); }; }; then
30554 ac_cv_lib_posix4_nanosleep=yes
30555 else
30556 echo "$as_me: failed program was:" >&5
30557 sed 's/^/| /' conftest.$ac_ext >&5
30558
30559 ac_cv_lib_posix4_nanosleep=no
30560 fi
30561 rm -f conftest.err conftest.$ac_objext \
30562 conftest$ac_exeext conftest.$ac_ext
30563 LIBS=$ac_check_lib_save_LIBS
30564 fi
30565 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30566 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30567 if test $ac_cv_lib_posix4_nanosleep = yes; then
30568
30569 cat >>confdefs.h <<\_ACEOF
30570 #define HAVE_NANOSLEEP 1
30571 _ACEOF
30572
30573 POSIX4_LINK=" -lposix4"
30574
30575 else
30576
30577
30578 for ac_func in usleep
30579 do
30580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30581 echo "$as_me:$LINENO: checking for $ac_func" >&5
30582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30583 if eval "test \"\${$as_ac_var+set}\" = set"; then
30584 echo $ECHO_N "(cached) $ECHO_C" >&6
30585 else
30586 cat >conftest.$ac_ext <<_ACEOF
30587 /* confdefs.h. */
30588 _ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h. */
30592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30594 #define $ac_func innocuous_$ac_func
30595
30596 /* System header to define __stub macros and hopefully few prototypes,
30597 which can conflict with char $ac_func (); below.
30598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30599 <limits.h> exists even on freestanding compilers. */
30600
30601 #ifdef __STDC__
30602 # include <limits.h>
30603 #else
30604 # include <assert.h>
30605 #endif
30606
30607 #undef $ac_func
30608
30609 /* Override any gcc2 internal prototype to avoid an error. */
30610 #ifdef __cplusplus
30611 extern "C"
30612 {
30613 #endif
30614 /* We use char because int might match the return type of a gcc2
30615 builtin and then its argument prototype would still apply. */
30616 char $ac_func ();
30617 /* The GNU C library defines this for functions which it implements
30618 to always fail with ENOSYS. Some functions are actually named
30619 something starting with __ and the normal name is an alias. */
30620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30621 choke me
30622 #else
30623 char (*f) () = $ac_func;
30624 #endif
30625 #ifdef __cplusplus
30626 }
30627 #endif
30628
30629 int
30630 main ()
30631 {
30632 return f != $ac_func;
30633 ;
30634 return 0;
30635 }
30636 _ACEOF
30637 rm -f conftest.$ac_objext conftest$ac_exeext
30638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30639 (eval $ac_link) 2>conftest.er1
30640 ac_status=$?
30641 grep -v '^ *+' conftest.er1 >conftest.err
30642 rm -f conftest.er1
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
30646 { ac_try='test -z "$ac_c_werror_flag"
30647 || test ! -s conftest.err'
30648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30649 (eval $ac_try) 2>&5
30650 ac_status=$?
30651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652 (exit $ac_status); }; } &&
30653 { ac_try='test -s conftest$ac_exeext'
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; }; then
30659 eval "$as_ac_var=yes"
30660 else
30661 echo "$as_me: failed program was:" >&5
30662 sed 's/^/| /' conftest.$ac_ext >&5
30663
30664 eval "$as_ac_var=no"
30665 fi
30666 rm -f conftest.err conftest.$ac_objext \
30667 conftest$ac_exeext conftest.$ac_ext
30668 fi
30669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30671 if test `eval echo '${'$as_ac_var'}'` = yes; then
30672 cat >>confdefs.h <<_ACEOF
30673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30674 _ACEOF
30675 cat >>confdefs.h <<\_ACEOF
30676 #define HAVE_USLEEP 1
30677 _ACEOF
30678
30679 else
30680 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30681 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30682
30683 fi
30684 done
30685
30686
30687
30688 fi
30689
30690
30691
30692 fi
30693 done
30694
30695 fi
30696
30697
30698
30699 for ac_func in uname gethostname
30700 do
30701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30702 echo "$as_me:$LINENO: checking for $ac_func" >&5
30703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30704 if eval "test \"\${$as_ac_var+set}\" = set"; then
30705 echo $ECHO_N "(cached) $ECHO_C" >&6
30706 else
30707 cat >conftest.$ac_ext <<_ACEOF
30708 /* confdefs.h. */
30709 _ACEOF
30710 cat confdefs.h >>conftest.$ac_ext
30711 cat >>conftest.$ac_ext <<_ACEOF
30712 /* end confdefs.h. */
30713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30715 #define $ac_func innocuous_$ac_func
30716
30717 /* System header to define __stub macros and hopefully few prototypes,
30718 which can conflict with char $ac_func (); below.
30719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30720 <limits.h> exists even on freestanding compilers. */
30721
30722 #ifdef __STDC__
30723 # include <limits.h>
30724 #else
30725 # include <assert.h>
30726 #endif
30727
30728 #undef $ac_func
30729
30730 /* Override any gcc2 internal prototype to avoid an error. */
30731 #ifdef __cplusplus
30732 extern "C"
30733 {
30734 #endif
30735 /* We use char because int might match the return type of a gcc2
30736 builtin and then its argument prototype would still apply. */
30737 char $ac_func ();
30738 /* The GNU C library defines this for functions which it implements
30739 to always fail with ENOSYS. Some functions are actually named
30740 something starting with __ and the normal name is an alias. */
30741 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30742 choke me
30743 #else
30744 char (*f) () = $ac_func;
30745 #endif
30746 #ifdef __cplusplus
30747 }
30748 #endif
30749
30750 int
30751 main ()
30752 {
30753 return f != $ac_func;
30754 ;
30755 return 0;
30756 }
30757 _ACEOF
30758 rm -f conftest.$ac_objext conftest$ac_exeext
30759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30760 (eval $ac_link) 2>conftest.er1
30761 ac_status=$?
30762 grep -v '^ *+' conftest.er1 >conftest.err
30763 rm -f conftest.er1
30764 cat conftest.err >&5
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } &&
30767 { ac_try='test -z "$ac_c_werror_flag"
30768 || test ! -s conftest.err'
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; } &&
30774 { ac_try='test -s conftest$ac_exeext'
30775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30776 (eval $ac_try) 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; }; then
30780 eval "$as_ac_var=yes"
30781 else
30782 echo "$as_me: failed program was:" >&5
30783 sed 's/^/| /' conftest.$ac_ext >&5
30784
30785 eval "$as_ac_var=no"
30786 fi
30787 rm -f conftest.err conftest.$ac_objext \
30788 conftest$ac_exeext conftest.$ac_ext
30789 fi
30790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30791 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30792 if test `eval echo '${'$as_ac_var'}'` = yes; then
30793 cat >>confdefs.h <<_ACEOF
30794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30795 _ACEOF
30796 break
30797 fi
30798 done
30799
30800
30801
30802
30803 ac_ext=cc
30804 ac_cpp='$CXXCPP $CPPFLAGS'
30805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30808
30809
30810
30811 for ac_func in strtok_r
30812 do
30813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30814 echo "$as_me:$LINENO: checking for $ac_func" >&5
30815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30816 if eval "test \"\${$as_ac_var+set}\" = set"; then
30817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 else
30819 cat >conftest.$ac_ext <<_ACEOF
30820 /* confdefs.h. */
30821 _ACEOF
30822 cat confdefs.h >>conftest.$ac_ext
30823 cat >>conftest.$ac_ext <<_ACEOF
30824 /* end confdefs.h. */
30825 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30827 #define $ac_func innocuous_$ac_func
30828
30829 /* System header to define __stub macros and hopefully few prototypes,
30830 which can conflict with char $ac_func (); below.
30831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30832 <limits.h> exists even on freestanding compilers. */
30833
30834 #ifdef __STDC__
30835 # include <limits.h>
30836 #else
30837 # include <assert.h>
30838 #endif
30839
30840 #undef $ac_func
30841
30842 /* Override any gcc2 internal prototype to avoid an error. */
30843 #ifdef __cplusplus
30844 extern "C"
30845 {
30846 #endif
30847 /* We use char because int might match the return type of a gcc2
30848 builtin and then its argument prototype would still apply. */
30849 char $ac_func ();
30850 /* The GNU C library defines this for functions which it implements
30851 to always fail with ENOSYS. Some functions are actually named
30852 something starting with __ and the normal name is an alias. */
30853 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30854 choke me
30855 #else
30856 char (*f) () = $ac_func;
30857 #endif
30858 #ifdef __cplusplus
30859 }
30860 #endif
30861
30862 int
30863 main ()
30864 {
30865 return f != $ac_func;
30866 ;
30867 return 0;
30868 }
30869 _ACEOF
30870 rm -f conftest.$ac_objext conftest$ac_exeext
30871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30872 (eval $ac_link) 2>conftest.er1
30873 ac_status=$?
30874 grep -v '^ *+' conftest.er1 >conftest.err
30875 rm -f conftest.er1
30876 cat conftest.err >&5
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); } &&
30879 { ac_try='test -z "$ac_cxx_werror_flag"
30880 || test ! -s conftest.err'
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30883 ac_status=$?
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; } &&
30886 { ac_try='test -s conftest$ac_exeext'
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30889 ac_status=$?
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; }; then
30892 eval "$as_ac_var=yes"
30893 else
30894 echo "$as_me: failed program was:" >&5
30895 sed 's/^/| /' conftest.$ac_ext >&5
30896
30897 eval "$as_ac_var=no"
30898 fi
30899 rm -f conftest.err conftest.$ac_objext \
30900 conftest$ac_exeext conftest.$ac_ext
30901 fi
30902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30903 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30904 if test `eval echo '${'$as_ac_var'}'` = yes; then
30905 cat >>confdefs.h <<_ACEOF
30906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30907 _ACEOF
30908
30909 fi
30910 done
30911
30912
30913 ac_ext=c
30914 ac_cpp='$CPP $CPPFLAGS'
30915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30918
30919
30920 INET_LINK=
30921
30922 for ac_func in inet_addr
30923 do
30924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30925 echo "$as_me:$LINENO: checking for $ac_func" >&5
30926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30927 if eval "test \"\${$as_ac_var+set}\" = set"; then
30928 echo $ECHO_N "(cached) $ECHO_C" >&6
30929 else
30930 cat >conftest.$ac_ext <<_ACEOF
30931 /* confdefs.h. */
30932 _ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30938 #define $ac_func innocuous_$ac_func
30939
30940 /* System header to define __stub macros and hopefully few prototypes,
30941 which can conflict with char $ac_func (); below.
30942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30943 <limits.h> exists even on freestanding compilers. */
30944
30945 #ifdef __STDC__
30946 # include <limits.h>
30947 #else
30948 # include <assert.h>
30949 #endif
30950
30951 #undef $ac_func
30952
30953 /* Override any gcc2 internal prototype to avoid an error. */
30954 #ifdef __cplusplus
30955 extern "C"
30956 {
30957 #endif
30958 /* We use char because int might match the return type of a gcc2
30959 builtin and then its argument prototype would still apply. */
30960 char $ac_func ();
30961 /* The GNU C library defines this for functions which it implements
30962 to always fail with ENOSYS. Some functions are actually named
30963 something starting with __ and the normal name is an alias. */
30964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30965 choke me
30966 #else
30967 char (*f) () = $ac_func;
30968 #endif
30969 #ifdef __cplusplus
30970 }
30971 #endif
30972
30973 int
30974 main ()
30975 {
30976 return f != $ac_func;
30977 ;
30978 return 0;
30979 }
30980 _ACEOF
30981 rm -f conftest.$ac_objext conftest$ac_exeext
30982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30983 (eval $ac_link) 2>conftest.er1
30984 ac_status=$?
30985 grep -v '^ *+' conftest.er1 >conftest.err
30986 rm -f conftest.er1
30987 cat conftest.err >&5
30988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30989 (exit $ac_status); } &&
30990 { ac_try='test -z "$ac_c_werror_flag"
30991 || test ! -s conftest.err'
30992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30993 (eval $ac_try) 2>&5
30994 ac_status=$?
30995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30996 (exit $ac_status); }; } &&
30997 { ac_try='test -s conftest$ac_exeext'
30998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30999 (eval $ac_try) 2>&5
31000 ac_status=$?
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002 (exit $ac_status); }; }; then
31003 eval "$as_ac_var=yes"
31004 else
31005 echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31007
31008 eval "$as_ac_var=no"
31009 fi
31010 rm -f conftest.err conftest.$ac_objext \
31011 conftest$ac_exeext conftest.$ac_ext
31012 fi
31013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31015 if test `eval echo '${'$as_ac_var'}'` = yes; then
31016 cat >>confdefs.h <<_ACEOF
31017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31018 _ACEOF
31019 cat >>confdefs.h <<\_ACEOF
31020 #define HAVE_INET_ADDR 1
31021 _ACEOF
31022
31023 else
31024
31025 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31026 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31027 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31028 echo $ECHO_N "(cached) $ECHO_C" >&6
31029 else
31030 ac_check_lib_save_LIBS=$LIBS
31031 LIBS="-lnsl $LIBS"
31032 cat >conftest.$ac_ext <<_ACEOF
31033 /* confdefs.h. */
31034 _ACEOF
31035 cat confdefs.h >>conftest.$ac_ext
31036 cat >>conftest.$ac_ext <<_ACEOF
31037 /* end confdefs.h. */
31038
31039 /* Override any gcc2 internal prototype to avoid an error. */
31040 #ifdef __cplusplus
31041 extern "C"
31042 #endif
31043 /* We use char because int might match the return type of a gcc2
31044 builtin and then its argument prototype would still apply. */
31045 char inet_addr ();
31046 int
31047 main ()
31048 {
31049 inet_addr ();
31050 ;
31051 return 0;
31052 }
31053 _ACEOF
31054 rm -f conftest.$ac_objext conftest$ac_exeext
31055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31056 (eval $ac_link) 2>conftest.er1
31057 ac_status=$?
31058 grep -v '^ *+' conftest.er1 >conftest.err
31059 rm -f conftest.er1
31060 cat conftest.err >&5
31061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062 (exit $ac_status); } &&
31063 { ac_try='test -z "$ac_c_werror_flag"
31064 || test ! -s conftest.err'
31065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31066 (eval $ac_try) 2>&5
31067 ac_status=$?
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); }; } &&
31070 { ac_try='test -s conftest$ac_exeext'
31071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31072 (eval $ac_try) 2>&5
31073 ac_status=$?
31074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31075 (exit $ac_status); }; }; then
31076 ac_cv_lib_nsl_inet_addr=yes
31077 else
31078 echo "$as_me: failed program was:" >&5
31079 sed 's/^/| /' conftest.$ac_ext >&5
31080
31081 ac_cv_lib_nsl_inet_addr=no
31082 fi
31083 rm -f conftest.err conftest.$ac_objext \
31084 conftest$ac_exeext conftest.$ac_ext
31085 LIBS=$ac_check_lib_save_LIBS
31086 fi
31087 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31088 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31089 if test $ac_cv_lib_nsl_inet_addr = yes; then
31090 INET_LINK="nsl"
31091 else
31092
31093 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31094 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31095 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31096 echo $ECHO_N "(cached) $ECHO_C" >&6
31097 else
31098 ac_check_lib_save_LIBS=$LIBS
31099 LIBS="-lresolv $LIBS"
31100 cat >conftest.$ac_ext <<_ACEOF
31101 /* confdefs.h. */
31102 _ACEOF
31103 cat confdefs.h >>conftest.$ac_ext
31104 cat >>conftest.$ac_ext <<_ACEOF
31105 /* end confdefs.h. */
31106
31107 /* Override any gcc2 internal prototype to avoid an error. */
31108 #ifdef __cplusplus
31109 extern "C"
31110 #endif
31111 /* We use char because int might match the return type of a gcc2
31112 builtin and then its argument prototype would still apply. */
31113 char inet_addr ();
31114 int
31115 main ()
31116 {
31117 inet_addr ();
31118 ;
31119 return 0;
31120 }
31121 _ACEOF
31122 rm -f conftest.$ac_objext conftest$ac_exeext
31123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31124 (eval $ac_link) 2>conftest.er1
31125 ac_status=$?
31126 grep -v '^ *+' conftest.er1 >conftest.err
31127 rm -f conftest.er1
31128 cat conftest.err >&5
31129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31130 (exit $ac_status); } &&
31131 { ac_try='test -z "$ac_c_werror_flag"
31132 || test ! -s conftest.err'
31133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31134 (eval $ac_try) 2>&5
31135 ac_status=$?
31136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137 (exit $ac_status); }; } &&
31138 { ac_try='test -s conftest$ac_exeext'
31139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31140 (eval $ac_try) 2>&5
31141 ac_status=$?
31142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31143 (exit $ac_status); }; }; then
31144 ac_cv_lib_resolv_inet_addr=yes
31145 else
31146 echo "$as_me: failed program was:" >&5
31147 sed 's/^/| /' conftest.$ac_ext >&5
31148
31149 ac_cv_lib_resolv_inet_addr=no
31150 fi
31151 rm -f conftest.err conftest.$ac_objext \
31152 conftest$ac_exeext conftest.$ac_ext
31153 LIBS=$ac_check_lib_save_LIBS
31154 fi
31155 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31156 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31157 if test $ac_cv_lib_resolv_inet_addr = yes; then
31158 INET_LINK="resolv"
31159 else
31160
31161 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31162 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31163 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31164 echo $ECHO_N "(cached) $ECHO_C" >&6
31165 else
31166 ac_check_lib_save_LIBS=$LIBS
31167 LIBS="-lsocket $LIBS"
31168 cat >conftest.$ac_ext <<_ACEOF
31169 /* confdefs.h. */
31170 _ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h. */
31174
31175 /* Override any gcc2 internal prototype to avoid an error. */
31176 #ifdef __cplusplus
31177 extern "C"
31178 #endif
31179 /* We use char because int might match the return type of a gcc2
31180 builtin and then its argument prototype would still apply. */
31181 char inet_addr ();
31182 int
31183 main ()
31184 {
31185 inet_addr ();
31186 ;
31187 return 0;
31188 }
31189 _ACEOF
31190 rm -f conftest.$ac_objext conftest$ac_exeext
31191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31192 (eval $ac_link) 2>conftest.er1
31193 ac_status=$?
31194 grep -v '^ *+' conftest.er1 >conftest.err
31195 rm -f conftest.er1
31196 cat conftest.err >&5
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); } &&
31199 { ac_try='test -z "$ac_c_werror_flag"
31200 || test ! -s conftest.err'
31201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31202 (eval $ac_try) 2>&5
31203 ac_status=$?
31204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205 (exit $ac_status); }; } &&
31206 { ac_try='test -s conftest$ac_exeext'
31207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31208 (eval $ac_try) 2>&5
31209 ac_status=$?
31210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211 (exit $ac_status); }; }; then
31212 ac_cv_lib_socket_inet_addr=yes
31213 else
31214 echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31216
31217 ac_cv_lib_socket_inet_addr=no
31218 fi
31219 rm -f conftest.err conftest.$ac_objext \
31220 conftest$ac_exeext conftest.$ac_ext
31221 LIBS=$ac_check_lib_save_LIBS
31222 fi
31223 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31224 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31225 if test $ac_cv_lib_socket_inet_addr = yes; then
31226 INET_LINK="socket"
31227
31228 fi
31229
31230
31231
31232 fi
31233
31234
31235
31236 fi
31237
31238
31239
31240 fi
31241 done
31242
31243
31244
31245 for ac_func in inet_aton
31246 do
31247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31248 echo "$as_me:$LINENO: checking for $ac_func" >&5
31249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31250 if eval "test \"\${$as_ac_var+set}\" = set"; then
31251 echo $ECHO_N "(cached) $ECHO_C" >&6
31252 else
31253 cat >conftest.$ac_ext <<_ACEOF
31254 /* confdefs.h. */
31255 _ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h. */
31259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31261 #define $ac_func innocuous_$ac_func
31262
31263 /* System header to define __stub macros and hopefully few prototypes,
31264 which can conflict with char $ac_func (); below.
31265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31266 <limits.h> exists even on freestanding compilers. */
31267
31268 #ifdef __STDC__
31269 # include <limits.h>
31270 #else
31271 # include <assert.h>
31272 #endif
31273
31274 #undef $ac_func
31275
31276 /* Override any gcc2 internal prototype to avoid an error. */
31277 #ifdef __cplusplus
31278 extern "C"
31279 {
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 $ac_func ();
31284 /* The GNU C library defines this for functions which it implements
31285 to always fail with ENOSYS. Some functions are actually named
31286 something starting with __ and the normal name is an alias. */
31287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31288 choke me
31289 #else
31290 char (*f) () = $ac_func;
31291 #endif
31292 #ifdef __cplusplus
31293 }
31294 #endif
31295
31296 int
31297 main ()
31298 {
31299 return f != $ac_func;
31300 ;
31301 return 0;
31302 }
31303 _ACEOF
31304 rm -f conftest.$ac_objext conftest$ac_exeext
31305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31306 (eval $ac_link) 2>conftest.er1
31307 ac_status=$?
31308 grep -v '^ *+' conftest.er1 >conftest.err
31309 rm -f conftest.er1
31310 cat conftest.err >&5
31311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31312 (exit $ac_status); } &&
31313 { ac_try='test -z "$ac_c_werror_flag"
31314 || test ! -s conftest.err'
31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316 (eval $ac_try) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; } &&
31320 { ac_try='test -s conftest$ac_exeext'
31321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31322 (eval $ac_try) 2>&5
31323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); }; }; then
31326 eval "$as_ac_var=yes"
31327 else
31328 echo "$as_me: failed program was:" >&5
31329 sed 's/^/| /' conftest.$ac_ext >&5
31330
31331 eval "$as_ac_var=no"
31332 fi
31333 rm -f conftest.err conftest.$ac_objext \
31334 conftest$ac_exeext conftest.$ac_ext
31335 fi
31336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31338 if test `eval echo '${'$as_ac_var'}'` = yes; then
31339 cat >>confdefs.h <<_ACEOF
31340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31341 _ACEOF
31342 cat >>confdefs.h <<\_ACEOF
31343 #define HAVE_INET_ATON 1
31344 _ACEOF
31345
31346 else
31347
31348 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31349 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31350 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31351 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31352 echo $ECHO_N "(cached) $ECHO_C" >&6
31353 else
31354 ac_check_lib_save_LIBS=$LIBS
31355 LIBS="-l$INET_LINK $LIBS"
31356 cat >conftest.$ac_ext <<_ACEOF
31357 /* confdefs.h. */
31358 _ACEOF
31359 cat confdefs.h >>conftest.$ac_ext
31360 cat >>conftest.$ac_ext <<_ACEOF
31361 /* end confdefs.h. */
31362
31363 /* Override any gcc2 internal prototype to avoid an error. */
31364 #ifdef __cplusplus
31365 extern "C"
31366 #endif
31367 /* We use char because int might match the return type of a gcc2
31368 builtin and then its argument prototype would still apply. */
31369 char inet_aton ();
31370 int
31371 main ()
31372 {
31373 inet_aton ();
31374 ;
31375 return 0;
31376 }
31377 _ACEOF
31378 rm -f conftest.$ac_objext conftest$ac_exeext
31379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31380 (eval $ac_link) 2>conftest.er1
31381 ac_status=$?
31382 grep -v '^ *+' conftest.er1 >conftest.err
31383 rm -f conftest.er1
31384 cat conftest.err >&5
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); } &&
31387 { ac_try='test -z "$ac_c_werror_flag"
31388 || test ! -s conftest.err'
31389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390 (eval $ac_try) 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; } &&
31394 { ac_try='test -s conftest$ac_exeext'
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; }; then
31400 eval "$as_ac_Lib=yes"
31401 else
31402 echo "$as_me: failed program was:" >&5
31403 sed 's/^/| /' conftest.$ac_ext >&5
31404
31405 eval "$as_ac_Lib=no"
31406 fi
31407 rm -f conftest.err conftest.$ac_objext \
31408 conftest$ac_exeext conftest.$ac_ext
31409 LIBS=$ac_check_lib_save_LIBS
31410 fi
31411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31412 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31413 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31414 cat >>confdefs.h <<\_ACEOF
31415 #define HAVE_INET_ATON 1
31416 _ACEOF
31417
31418 fi
31419
31420
31421 fi
31422 done
31423
31424
31425 if test "x$INET_LINK" != "x"; then
31426 cat >>confdefs.h <<\_ACEOF
31427 #define HAVE_INET_ADDR 1
31428 _ACEOF
31429
31430 INET_LINK=" -l$INET_LINK"
31431 fi
31432
31433 fi
31434
31435
31436
31437 EXTRALIBS_ESD=
31438 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31439 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31440 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31441 echo $ECHO_N "(cached) $ECHO_C" >&6
31442 else
31443 ac_check_lib_save_LIBS=$LIBS
31444 LIBS="-lesd $LIBS"
31445 cat >conftest.$ac_ext <<_ACEOF
31446 /* confdefs.h. */
31447 _ACEOF
31448 cat confdefs.h >>conftest.$ac_ext
31449 cat >>conftest.$ac_ext <<_ACEOF
31450 /* end confdefs.h. */
31451
31452 /* Override any gcc2 internal prototype to avoid an error. */
31453 #ifdef __cplusplus
31454 extern "C"
31455 #endif
31456 /* We use char because int might match the return type of a gcc2
31457 builtin and then its argument prototype would still apply. */
31458 char esd_close ();
31459 int
31460 main ()
31461 {
31462 esd_close ();
31463 ;
31464 return 0;
31465 }
31466 _ACEOF
31467 rm -f conftest.$ac_objext conftest$ac_exeext
31468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31469 (eval $ac_link) 2>conftest.er1
31470 ac_status=$?
31471 grep -v '^ *+' conftest.er1 >conftest.err
31472 rm -f conftest.er1
31473 cat conftest.err >&5
31474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475 (exit $ac_status); } &&
31476 { ac_try='test -z "$ac_c_werror_flag"
31477 || test ! -s conftest.err'
31478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479 (eval $ac_try) 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; } &&
31483 { ac_try='test -s conftest$ac_exeext'
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; }; then
31489 ac_cv_lib_esd_esd_close=yes
31490 else
31491 echo "$as_me: failed program was:" >&5
31492 sed 's/^/| /' conftest.$ac_ext >&5
31493
31494 ac_cv_lib_esd_esd_close=no
31495 fi
31496 rm -f conftest.err conftest.$ac_objext \
31497 conftest$ac_exeext conftest.$ac_ext
31498 LIBS=$ac_check_lib_save_LIBS
31499 fi
31500 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31501 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31502 if test $ac_cv_lib_esd_esd_close = yes; then
31503
31504
31505 for ac_header in esd.h
31506 do
31507 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31509 echo "$as_me:$LINENO: checking for $ac_header" >&5
31510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31512 echo $ECHO_N "(cached) $ECHO_C" >&6
31513 fi
31514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31516 else
31517 # Is the header compilable?
31518 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31520 cat >conftest.$ac_ext <<_ACEOF
31521 /* confdefs.h. */
31522 _ACEOF
31523 cat confdefs.h >>conftest.$ac_ext
31524 cat >>conftest.$ac_ext <<_ACEOF
31525 /* end confdefs.h. */
31526 $ac_includes_default
31527 #include <$ac_header>
31528 _ACEOF
31529 rm -f conftest.$ac_objext
31530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31531 (eval $ac_compile) 2>conftest.er1
31532 ac_status=$?
31533 grep -v '^ *+' conftest.er1 >conftest.err
31534 rm -f conftest.er1
31535 cat conftest.err >&5
31536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537 (exit $ac_status); } &&
31538 { ac_try='test -z "$ac_c_werror_flag"
31539 || test ! -s conftest.err'
31540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541 (eval $ac_try) 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; } &&
31545 { ac_try='test -s conftest.$ac_objext'
31546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31547 (eval $ac_try) 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; }; then
31551 ac_header_compiler=yes
31552 else
31553 echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556 ac_header_compiler=no
31557 fi
31558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31559 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31560 echo "${ECHO_T}$ac_header_compiler" >&6
31561
31562 # Is the header present?
31563 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31565 cat >conftest.$ac_ext <<_ACEOF
31566 /* confdefs.h. */
31567 _ACEOF
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h. */
31571 #include <$ac_header>
31572 _ACEOF
31573 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31575 ac_status=$?
31576 grep -v '^ *+' conftest.er1 >conftest.err
31577 rm -f conftest.er1
31578 cat conftest.err >&5
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); } >/dev/null; then
31581 if test -s conftest.err; then
31582 ac_cpp_err=$ac_c_preproc_warn_flag
31583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31584 else
31585 ac_cpp_err=
31586 fi
31587 else
31588 ac_cpp_err=yes
31589 fi
31590 if test -z "$ac_cpp_err"; then
31591 ac_header_preproc=yes
31592 else
31593 echo "$as_me: failed program was:" >&5
31594 sed 's/^/| /' conftest.$ac_ext >&5
31595
31596 ac_header_preproc=no
31597 fi
31598 rm -f conftest.err conftest.$ac_ext
31599 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31600 echo "${ECHO_T}$ac_header_preproc" >&6
31601
31602 # So? What about this header?
31603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31604 yes:no: )
31605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31609 ac_header_preproc=yes
31610 ;;
31611 no:yes:* )
31612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31624 (
31625 cat <<\_ASBOX
31626 ## ----------------------------------------- ##
31627 ## Report this to wx-dev@lists.wxwidgets.org ##
31628 ## ----------------------------------------- ##
31629 _ASBOX
31630 ) |
31631 sed "s/^/$as_me: WARNING: /" >&2
31632 ;;
31633 esac
31634 echo "$as_me:$LINENO: checking for $ac_header" >&5
31635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31637 echo $ECHO_N "(cached) $ECHO_C" >&6
31638 else
31639 eval "$as_ac_Header=\$ac_header_preproc"
31640 fi
31641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31642 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31643
31644 fi
31645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31646 cat >>confdefs.h <<_ACEOF
31647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31648 _ACEOF
31649
31650 EXTRALIBS_ESD="-lesd"
31651
31652 fi
31653
31654 done
31655
31656
31657 fi
31658
31659
31660
31661 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31662 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31663 cat >conftest.$ac_ext <<_ACEOF
31664 /* confdefs.h. */
31665 _ACEOF
31666 cat confdefs.h >>conftest.$ac_ext
31667 cat >>conftest.$ac_ext <<_ACEOF
31668 /* end confdefs.h. */
31669 #ifdef __linux__
31670 #include <linux/cdrom.h>
31671 #else
31672 /* For Solaris */
31673 #include <sys/cdio.h>
31674 #endif
31675
31676 int
31677 main ()
31678 {
31679 struct cdrom_tocentry entry, old_entry;
31680 ;
31681 return 0;
31682 }
31683 _ACEOF
31684 rm -f conftest.$ac_objext
31685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31686 (eval $ac_compile) 2>conftest.er1
31687 ac_status=$?
31688 grep -v '^ *+' conftest.er1 >conftest.err
31689 rm -f conftest.er1
31690 cat conftest.err >&5
31691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692 (exit $ac_status); } &&
31693 { ac_try='test -z "$ac_c_werror_flag"
31694 || test ! -s conftest.err'
31695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31696 (eval $ac_try) 2>&5
31697 ac_status=$?
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); }; } &&
31700 { ac_try='test -s conftest.$ac_objext'
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; }; then
31706 echo "$as_me:$LINENO: result: yes" >&5
31707 echo "${ECHO_T}yes" >&6
31708 cat >>confdefs.h <<\_ACEOF
31709 #define HAVE_KNOWN_CDROM_INTERFACE 1
31710 _ACEOF
31711
31712 else
31713 echo "$as_me: failed program was:" >&5
31714 sed 's/^/| /' conftest.$ac_ext >&5
31715
31716 echo "$as_me:$LINENO: result: no" >&5
31717 echo "${ECHO_T}no" >&6
31718 fi
31719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31720
31721
31722 cat >confcache <<\_ACEOF
31723 # This file is a shell script that caches the results of configure
31724 # tests run on this system so they can be shared between configure
31725 # scripts and configure runs, see configure's option --config-cache.
31726 # It is not useful on other systems. If it contains results you don't
31727 # want to keep, you may remove or edit it.
31728 #
31729 # config.status only pays attention to the cache file if you give it
31730 # the --recheck option to rerun configure.
31731 #
31732 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31733 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31734 # following values.
31735
31736 _ACEOF
31737
31738 # The following way of writing the cache mishandles newlines in values,
31739 # but we know of no workaround that is simple, portable, and efficient.
31740 # So, don't put newlines in cache variables' values.
31741 # Ultrix sh set writes to stderr and can't be redirected directly,
31742 # and sets the high bit in the cache file unless we assign to the vars.
31743 {
31744 (set) 2>&1 |
31745 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31746 *ac_space=\ *)
31747 # `set' does not quote correctly, so add quotes (double-quote
31748 # substitution turns \\\\ into \\, and sed turns \\ into \).
31749 sed -n \
31750 "s/'/'\\\\''/g;
31751 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31752 ;;
31753 *)
31754 # `set' quotes correctly as required by POSIX, so do not add quotes.
31755 sed -n \
31756 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31757 ;;
31758 esac;
31759 } |
31760 sed '
31761 t clear
31762 : clear
31763 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31764 t end
31765 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31766 : end' >>confcache
31767 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31768 if test -w $cache_file; then
31769 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31770 cat confcache >$cache_file
31771 else
31772 echo "not updating unwritable cache $cache_file"
31773 fi
31774 fi
31775 rm -f confcache
31776
31777
31778 CPP_MT_FLAG=
31779 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31780
31781
31782 THREADS_LINK=
31783 THREADS_CFLAGS=
31784
31785 if test "$wxUSE_THREADS" = "yes" ; then
31786 if test "$USE_BEOS" = 1; then
31787 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31788 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31789 wxUSE_THREADS="no"
31790 fi
31791 fi
31792
31793 if test "$wxUSE_THREADS" = "yes" ; then
31794
31795
31796 THREAD_OPTS="-pthread"
31797 case "${host}" in
31798 *-*-solaris2* | *-*-sunos4* )
31799 if test "x$GCC" = "xyes"; then
31800 THREAD_OPTS="-pthreads $THREAD_OPTS"
31801 else
31802 THREAD_OPTS="-mt $THREAD_OPTS"
31803 fi
31804 ;;
31805 *-*-freebsd*)
31806 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31807 ;;
31808 *-*-darwin* | *-*-cygwin* )
31809 THREAD_OPTS=""
31810 ;;
31811 *-*-aix*)
31812 THREAD_OPTS="pthreads"
31813 ;;
31814 *-hp-hpux* )
31815 if test "x$GCC" != "xyes"; then
31816 THREAD_OPTS=""
31817 fi
31818 ;;
31819
31820 *-*-irix* )
31821 if test "x$GCC" = "xyes"; then
31822 THREAD_OPTS=""
31823 fi
31824 ;;
31825
31826 *-*-*UnixWare*)
31827 if test "x$GCC" != "xyes"; then
31828 THREAD_OPTS="-Ethread"
31829 fi
31830 ;;
31831 esac
31832
31833 THREAD_OPTS="$THREAD_OPTS pthread none"
31834
31835 THREADS_OK=no
31836 for flag in $THREAD_OPTS; do
31837 case $flag in
31838 none)
31839 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31840 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31841 ;;
31842
31843 -*)
31844 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31845 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31846 THREADS_CFLAGS="$flag"
31847 ;;
31848
31849 *)
31850 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31851 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31852 THREADS_LINK="-l$flag"
31853 ;;
31854 esac
31855
31856 save_LIBS="$LIBS"
31857 save_CFLAGS="$CFLAGS"
31858 LIBS="$THREADS_LINK $LIBS"
31859 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31860
31861 cat >conftest.$ac_ext <<_ACEOF
31862 /* confdefs.h. */
31863 _ACEOF
31864 cat confdefs.h >>conftest.$ac_ext
31865 cat >>conftest.$ac_ext <<_ACEOF
31866 /* end confdefs.h. */
31867 #include <pthread.h>
31868 int
31869 main ()
31870 {
31871 pthread_create(0,0,0,0);
31872 ;
31873 return 0;
31874 }
31875 _ACEOF
31876 rm -f conftest.$ac_objext conftest$ac_exeext
31877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31878 (eval $ac_link) 2>conftest.er1
31879 ac_status=$?
31880 grep -v '^ *+' conftest.er1 >conftest.err
31881 rm -f conftest.er1
31882 cat conftest.err >&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } &&
31885 { ac_try='test -z "$ac_c_werror_flag"
31886 || test ! -s conftest.err'
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest$ac_exeext'
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 THREADS_OK=yes
31899 else
31900 echo "$as_me: failed program was:" >&5
31901 sed 's/^/| /' conftest.$ac_ext >&5
31902
31903 fi
31904 rm -f conftest.err conftest.$ac_objext \
31905 conftest$ac_exeext conftest.$ac_ext
31906
31907 LIBS="$save_LIBS"
31908 CFLAGS="$save_CFLAGS"
31909
31910 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31911 echo "${ECHO_T}$THREADS_OK" >&6
31912 if test "x$THREADS_OK" = "xyes"; then
31913 break;
31914 fi
31915
31916 THREADS_LINK=""
31917 THREADS_CFLAGS=""
31918 done
31919
31920 if test "x$THREADS_OK" != "xyes"; then
31921 wxUSE_THREADS=no
31922 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31923 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31924 else
31925 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31926 LIBS="$THREADS_LINK $LIBS"
31927
31928 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31929 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31930 flag=no
31931 case "${host}" in
31932 *-aix*)
31933 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31934 flag="-D_THREAD_SAFE"
31935 ;;
31936 *-freebsd*)
31937 flag="-D_THREAD_SAFE"
31938 ;;
31939 *-hp-hpux* )
31940 flag="-D_REENTRANT"
31941 if test "x$GCC" != "xyes"; then
31942 flag="$flag -D_RWSTD_MULTI_THREAD"
31943
31944 LIBS="$LIBS -lcma"
31945 fi
31946 ;;
31947 *solaris* | alpha*-osf*)
31948 flag="-D_REENTRANT"
31949 ;;
31950 esac
31951 echo "$as_me:$LINENO: result: ${flag}" >&5
31952 echo "${ECHO_T}${flag}" >&6
31953 if test "x$flag" != xno; then
31954 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31955 fi
31956
31957 if test "x$THREADS_CFLAGS" != "x"; then
31958 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31959 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31960 fi
31961 fi
31962 fi
31963
31964 if test "$wxUSE_THREADS" = "yes" ; then
31965
31966 for ac_func in thr_setconcurrency
31967 do
31968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31969 echo "$as_me:$LINENO: checking for $ac_func" >&5
31970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31971 if eval "test \"\${$as_ac_var+set}\" = set"; then
31972 echo $ECHO_N "(cached) $ECHO_C" >&6
31973 else
31974 cat >conftest.$ac_ext <<_ACEOF
31975 /* confdefs.h. */
31976 _ACEOF
31977 cat confdefs.h >>conftest.$ac_ext
31978 cat >>conftest.$ac_ext <<_ACEOF
31979 /* end confdefs.h. */
31980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31982 #define $ac_func innocuous_$ac_func
31983
31984 /* System header to define __stub macros and hopefully few prototypes,
31985 which can conflict with char $ac_func (); below.
31986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31987 <limits.h> exists even on freestanding compilers. */
31988
31989 #ifdef __STDC__
31990 # include <limits.h>
31991 #else
31992 # include <assert.h>
31993 #endif
31994
31995 #undef $ac_func
31996
31997 /* Override any gcc2 internal prototype to avoid an error. */
31998 #ifdef __cplusplus
31999 extern "C"
32000 {
32001 #endif
32002 /* We use char because int might match the return type of a gcc2
32003 builtin and then its argument prototype would still apply. */
32004 char $ac_func ();
32005 /* The GNU C library defines this for functions which it implements
32006 to always fail with ENOSYS. Some functions are actually named
32007 something starting with __ and the normal name is an alias. */
32008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32009 choke me
32010 #else
32011 char (*f) () = $ac_func;
32012 #endif
32013 #ifdef __cplusplus
32014 }
32015 #endif
32016
32017 int
32018 main ()
32019 {
32020 return f != $ac_func;
32021 ;
32022 return 0;
32023 }
32024 _ACEOF
32025 rm -f conftest.$ac_objext conftest$ac_exeext
32026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32027 (eval $ac_link) 2>conftest.er1
32028 ac_status=$?
32029 grep -v '^ *+' conftest.er1 >conftest.err
32030 rm -f conftest.er1
32031 cat conftest.err >&5
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); } &&
32034 { ac_try='test -z "$ac_c_werror_flag"
32035 || test ! -s conftest.err'
32036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037 (eval $ac_try) 2>&5
32038 ac_status=$?
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; } &&
32041 { ac_try='test -s conftest$ac_exeext'
32042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32043 (eval $ac_try) 2>&5
32044 ac_status=$?
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); }; }; then
32047 eval "$as_ac_var=yes"
32048 else
32049 echo "$as_me: failed program was:" >&5
32050 sed 's/^/| /' conftest.$ac_ext >&5
32051
32052 eval "$as_ac_var=no"
32053 fi
32054 rm -f conftest.err conftest.$ac_objext \
32055 conftest$ac_exeext conftest.$ac_ext
32056 fi
32057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32059 if test `eval echo '${'$as_ac_var'}'` = yes; then
32060 cat >>confdefs.h <<_ACEOF
32061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32062 _ACEOF
32063
32064 fi
32065 done
32066
32067
32068
32069 for ac_header in sched.h
32070 do
32071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32073 echo "$as_me:$LINENO: checking for $ac_header" >&5
32074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32076 echo $ECHO_N "(cached) $ECHO_C" >&6
32077 fi
32078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32080 else
32081 # Is the header compilable?
32082 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32084 cat >conftest.$ac_ext <<_ACEOF
32085 /* confdefs.h. */
32086 _ACEOF
32087 cat confdefs.h >>conftest.$ac_ext
32088 cat >>conftest.$ac_ext <<_ACEOF
32089 /* end confdefs.h. */
32090 $ac_includes_default
32091 #include <$ac_header>
32092 _ACEOF
32093 rm -f conftest.$ac_objext
32094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32095 (eval $ac_compile) 2>conftest.er1
32096 ac_status=$?
32097 grep -v '^ *+' conftest.er1 >conftest.err
32098 rm -f conftest.er1
32099 cat conftest.err >&5
32100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101 (exit $ac_status); } &&
32102 { ac_try='test -z "$ac_c_werror_flag"
32103 || test ! -s conftest.err'
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; } &&
32109 { ac_try='test -s conftest.$ac_objext'
32110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32111 (eval $ac_try) 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; }; then
32115 ac_header_compiler=yes
32116 else
32117 echo "$as_me: failed program was:" >&5
32118 sed 's/^/| /' conftest.$ac_ext >&5
32119
32120 ac_header_compiler=no
32121 fi
32122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32123 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32124 echo "${ECHO_T}$ac_header_compiler" >&6
32125
32126 # Is the header present?
32127 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32129 cat >conftest.$ac_ext <<_ACEOF
32130 /* confdefs.h. */
32131 _ACEOF
32132 cat confdefs.h >>conftest.$ac_ext
32133 cat >>conftest.$ac_ext <<_ACEOF
32134 /* end confdefs.h. */
32135 #include <$ac_header>
32136 _ACEOF
32137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32139 ac_status=$?
32140 grep -v '^ *+' conftest.er1 >conftest.err
32141 rm -f conftest.er1
32142 cat conftest.err >&5
32143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144 (exit $ac_status); } >/dev/null; then
32145 if test -s conftest.err; then
32146 ac_cpp_err=$ac_c_preproc_warn_flag
32147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32148 else
32149 ac_cpp_err=
32150 fi
32151 else
32152 ac_cpp_err=yes
32153 fi
32154 if test -z "$ac_cpp_err"; then
32155 ac_header_preproc=yes
32156 else
32157 echo "$as_me: failed program was:" >&5
32158 sed 's/^/| /' conftest.$ac_ext >&5
32159
32160 ac_header_preproc=no
32161 fi
32162 rm -f conftest.err conftest.$ac_ext
32163 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32164 echo "${ECHO_T}$ac_header_preproc" >&6
32165
32166 # So? What about this header?
32167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32168 yes:no: )
32169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32173 ac_header_preproc=yes
32174 ;;
32175 no:yes:* )
32176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32188 (
32189 cat <<\_ASBOX
32190 ## ----------------------------------------- ##
32191 ## Report this to wx-dev@lists.wxwidgets.org ##
32192 ## ----------------------------------------- ##
32193 _ASBOX
32194 ) |
32195 sed "s/^/$as_me: WARNING: /" >&2
32196 ;;
32197 esac
32198 echo "$as_me:$LINENO: checking for $ac_header" >&5
32199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32201 echo $ECHO_N "(cached) $ECHO_C" >&6
32202 else
32203 eval "$as_ac_Header=\$ac_header_preproc"
32204 fi
32205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32206 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32207
32208 fi
32209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32210 cat >>confdefs.h <<_ACEOF
32211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32212 _ACEOF
32213
32214 fi
32215
32216 done
32217
32218 if test "$ac_cv_header_sched_h" = "yes"; then
32219 echo "$as_me:$LINENO: checking for sched_yield" >&5
32220 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32221 if test "${ac_cv_func_sched_yield+set}" = set; then
32222 echo $ECHO_N "(cached) $ECHO_C" >&6
32223 else
32224 cat >conftest.$ac_ext <<_ACEOF
32225 /* confdefs.h. */
32226 _ACEOF
32227 cat confdefs.h >>conftest.$ac_ext
32228 cat >>conftest.$ac_ext <<_ACEOF
32229 /* end confdefs.h. */
32230 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32232 #define sched_yield innocuous_sched_yield
32233
32234 /* System header to define __stub macros and hopefully few prototypes,
32235 which can conflict with char sched_yield (); below.
32236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32237 <limits.h> exists even on freestanding compilers. */
32238
32239 #ifdef __STDC__
32240 # include <limits.h>
32241 #else
32242 # include <assert.h>
32243 #endif
32244
32245 #undef sched_yield
32246
32247 /* Override any gcc2 internal prototype to avoid an error. */
32248 #ifdef __cplusplus
32249 extern "C"
32250 {
32251 #endif
32252 /* We use char because int might match the return type of a gcc2
32253 builtin and then its argument prototype would still apply. */
32254 char sched_yield ();
32255 /* The GNU C library defines this for functions which it implements
32256 to always fail with ENOSYS. Some functions are actually named
32257 something starting with __ and the normal name is an alias. */
32258 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32259 choke me
32260 #else
32261 char (*f) () = sched_yield;
32262 #endif
32263 #ifdef __cplusplus
32264 }
32265 #endif
32266
32267 int
32268 main ()
32269 {
32270 return f != sched_yield;
32271 ;
32272 return 0;
32273 }
32274 _ACEOF
32275 rm -f conftest.$ac_objext conftest$ac_exeext
32276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32277 (eval $ac_link) 2>conftest.er1
32278 ac_status=$?
32279 grep -v '^ *+' conftest.er1 >conftest.err
32280 rm -f conftest.er1
32281 cat conftest.err >&5
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); } &&
32284 { ac_try='test -z "$ac_c_werror_flag"
32285 || test ! -s conftest.err'
32286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32287 (eval $ac_try) 2>&5
32288 ac_status=$?
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); }; } &&
32291 { ac_try='test -s conftest$ac_exeext'
32292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32293 (eval $ac_try) 2>&5
32294 ac_status=$?
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); }; }; then
32297 ac_cv_func_sched_yield=yes
32298 else
32299 echo "$as_me: failed program was:" >&5
32300 sed 's/^/| /' conftest.$ac_ext >&5
32301
32302 ac_cv_func_sched_yield=no
32303 fi
32304 rm -f conftest.err conftest.$ac_objext \
32305 conftest$ac_exeext conftest.$ac_ext
32306 fi
32307 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32308 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32309 if test $ac_cv_func_sched_yield = yes; then
32310 cat >>confdefs.h <<\_ACEOF
32311 #define HAVE_SCHED_YIELD 1
32312 _ACEOF
32313
32314 else
32315
32316 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32317 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32318 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32319 echo $ECHO_N "(cached) $ECHO_C" >&6
32320 else
32321 ac_check_lib_save_LIBS=$LIBS
32322 LIBS="-lposix4 $LIBS"
32323 cat >conftest.$ac_ext <<_ACEOF
32324 /* confdefs.h. */
32325 _ACEOF
32326 cat confdefs.h >>conftest.$ac_ext
32327 cat >>conftest.$ac_ext <<_ACEOF
32328 /* end confdefs.h. */
32329
32330 /* Override any gcc2 internal prototype to avoid an error. */
32331 #ifdef __cplusplus
32332 extern "C"
32333 #endif
32334 /* We use char because int might match the return type of a gcc2
32335 builtin and then its argument prototype would still apply. */
32336 char sched_yield ();
32337 int
32338 main ()
32339 {
32340 sched_yield ();
32341 ;
32342 return 0;
32343 }
32344 _ACEOF
32345 rm -f conftest.$ac_objext conftest$ac_exeext
32346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32347 (eval $ac_link) 2>conftest.er1
32348 ac_status=$?
32349 grep -v '^ *+' conftest.er1 >conftest.err
32350 rm -f conftest.er1
32351 cat conftest.err >&5
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); } &&
32354 { ac_try='test -z "$ac_c_werror_flag"
32355 || test ! -s conftest.err'
32356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32357 (eval $ac_try) 2>&5
32358 ac_status=$?
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); }; } &&
32361 { ac_try='test -s conftest$ac_exeext'
32362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32363 (eval $ac_try) 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; }; then
32367 ac_cv_lib_posix4_sched_yield=yes
32368 else
32369 echo "$as_me: failed program was:" >&5
32370 sed 's/^/| /' conftest.$ac_ext >&5
32371
32372 ac_cv_lib_posix4_sched_yield=no
32373 fi
32374 rm -f conftest.err conftest.$ac_objext \
32375 conftest$ac_exeext conftest.$ac_ext
32376 LIBS=$ac_check_lib_save_LIBS
32377 fi
32378 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32379 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32380 if test $ac_cv_lib_posix4_sched_yield = yes; then
32381 cat >>confdefs.h <<\_ACEOF
32382 #define HAVE_SCHED_YIELD 1
32383 _ACEOF
32384 POSIX4_LINK=" -lposix4"
32385 else
32386 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32387 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32388
32389 fi
32390
32391
32392
32393 fi
32394
32395 fi
32396
32397 HAVE_PRIOR_FUNCS=0
32398 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32399 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32400 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32401 echo $ECHO_N "(cached) $ECHO_C" >&6
32402 else
32403 cat >conftest.$ac_ext <<_ACEOF
32404 /* confdefs.h. */
32405 _ACEOF
32406 cat confdefs.h >>conftest.$ac_ext
32407 cat >>conftest.$ac_ext <<_ACEOF
32408 /* end confdefs.h. */
32409 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32411 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32412
32413 /* System header to define __stub macros and hopefully few prototypes,
32414 which can conflict with char pthread_attr_getschedpolicy (); below.
32415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32416 <limits.h> exists even on freestanding compilers. */
32417
32418 #ifdef __STDC__
32419 # include <limits.h>
32420 #else
32421 # include <assert.h>
32422 #endif
32423
32424 #undef pthread_attr_getschedpolicy
32425
32426 /* Override any gcc2 internal prototype to avoid an error. */
32427 #ifdef __cplusplus
32428 extern "C"
32429 {
32430 #endif
32431 /* We use char because int might match the return type of a gcc2
32432 builtin and then its argument prototype would still apply. */
32433 char pthread_attr_getschedpolicy ();
32434 /* The GNU C library defines this for functions which it implements
32435 to always fail with ENOSYS. Some functions are actually named
32436 something starting with __ and the normal name is an alias. */
32437 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32438 choke me
32439 #else
32440 char (*f) () = pthread_attr_getschedpolicy;
32441 #endif
32442 #ifdef __cplusplus
32443 }
32444 #endif
32445
32446 int
32447 main ()
32448 {
32449 return f != pthread_attr_getschedpolicy;
32450 ;
32451 return 0;
32452 }
32453 _ACEOF
32454 rm -f conftest.$ac_objext conftest$ac_exeext
32455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32456 (eval $ac_link) 2>conftest.er1
32457 ac_status=$?
32458 grep -v '^ *+' conftest.er1 >conftest.err
32459 rm -f conftest.er1
32460 cat conftest.err >&5
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } &&
32463 { ac_try='test -z "$ac_c_werror_flag"
32464 || test ! -s conftest.err'
32465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32466 (eval $ac_try) 2>&5
32467 ac_status=$?
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); }; } &&
32470 { ac_try='test -s conftest$ac_exeext'
32471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32472 (eval $ac_try) 2>&5
32473 ac_status=$?
32474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32475 (exit $ac_status); }; }; then
32476 ac_cv_func_pthread_attr_getschedpolicy=yes
32477 else
32478 echo "$as_me: failed program was:" >&5
32479 sed 's/^/| /' conftest.$ac_ext >&5
32480
32481 ac_cv_func_pthread_attr_getschedpolicy=no
32482 fi
32483 rm -f conftest.err conftest.$ac_objext \
32484 conftest$ac_exeext conftest.$ac_ext
32485 fi
32486 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32487 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32488 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32489 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32490 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32491 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32492 echo $ECHO_N "(cached) $ECHO_C" >&6
32493 else
32494 cat >conftest.$ac_ext <<_ACEOF
32495 /* confdefs.h. */
32496 _ACEOF
32497 cat confdefs.h >>conftest.$ac_ext
32498 cat >>conftest.$ac_ext <<_ACEOF
32499 /* end confdefs.h. */
32500 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32502 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32503
32504 /* System header to define __stub macros and hopefully few prototypes,
32505 which can conflict with char pthread_attr_setschedparam (); below.
32506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32507 <limits.h> exists even on freestanding compilers. */
32508
32509 #ifdef __STDC__
32510 # include <limits.h>
32511 #else
32512 # include <assert.h>
32513 #endif
32514
32515 #undef pthread_attr_setschedparam
32516
32517 /* Override any gcc2 internal prototype to avoid an error. */
32518 #ifdef __cplusplus
32519 extern "C"
32520 {
32521 #endif
32522 /* We use char because int might match the return type of a gcc2
32523 builtin and then its argument prototype would still apply. */
32524 char pthread_attr_setschedparam ();
32525 /* The GNU C library defines this for functions which it implements
32526 to always fail with ENOSYS. Some functions are actually named
32527 something starting with __ and the normal name is an alias. */
32528 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32529 choke me
32530 #else
32531 char (*f) () = pthread_attr_setschedparam;
32532 #endif
32533 #ifdef __cplusplus
32534 }
32535 #endif
32536
32537 int
32538 main ()
32539 {
32540 return f != pthread_attr_setschedparam;
32541 ;
32542 return 0;
32543 }
32544 _ACEOF
32545 rm -f conftest.$ac_objext conftest$ac_exeext
32546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32547 (eval $ac_link) 2>conftest.er1
32548 ac_status=$?
32549 grep -v '^ *+' conftest.er1 >conftest.err
32550 rm -f conftest.er1
32551 cat conftest.err >&5
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); } &&
32554 { ac_try='test -z "$ac_c_werror_flag"
32555 || test ! -s conftest.err'
32556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32557 (eval $ac_try) 2>&5
32558 ac_status=$?
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); }; } &&
32561 { ac_try='test -s conftest$ac_exeext'
32562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32563 (eval $ac_try) 2>&5
32564 ac_status=$?
32565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32566 (exit $ac_status); }; }; then
32567 ac_cv_func_pthread_attr_setschedparam=yes
32568 else
32569 echo "$as_me: failed program was:" >&5
32570 sed 's/^/| /' conftest.$ac_ext >&5
32571
32572 ac_cv_func_pthread_attr_setschedparam=no
32573 fi
32574 rm -f conftest.err conftest.$ac_objext \
32575 conftest$ac_exeext conftest.$ac_ext
32576 fi
32577 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32578 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32579 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32580 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32581 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32582 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32583 echo $ECHO_N "(cached) $ECHO_C" >&6
32584 else
32585 cat >conftest.$ac_ext <<_ACEOF
32586 /* confdefs.h. */
32587 _ACEOF
32588 cat confdefs.h >>conftest.$ac_ext
32589 cat >>conftest.$ac_ext <<_ACEOF
32590 /* end confdefs.h. */
32591 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32593 #define sched_get_priority_max innocuous_sched_get_priority_max
32594
32595 /* System header to define __stub macros and hopefully few prototypes,
32596 which can conflict with char sched_get_priority_max (); below.
32597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32598 <limits.h> exists even on freestanding compilers. */
32599
32600 #ifdef __STDC__
32601 # include <limits.h>
32602 #else
32603 # include <assert.h>
32604 #endif
32605
32606 #undef sched_get_priority_max
32607
32608 /* Override any gcc2 internal prototype to avoid an error. */
32609 #ifdef __cplusplus
32610 extern "C"
32611 {
32612 #endif
32613 /* We use char because int might match the return type of a gcc2
32614 builtin and then its argument prototype would still apply. */
32615 char sched_get_priority_max ();
32616 /* The GNU C library defines this for functions which it implements
32617 to always fail with ENOSYS. Some functions are actually named
32618 something starting with __ and the normal name is an alias. */
32619 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32620 choke me
32621 #else
32622 char (*f) () = sched_get_priority_max;
32623 #endif
32624 #ifdef __cplusplus
32625 }
32626 #endif
32627
32628 int
32629 main ()
32630 {
32631 return f != sched_get_priority_max;
32632 ;
32633 return 0;
32634 }
32635 _ACEOF
32636 rm -f conftest.$ac_objext conftest$ac_exeext
32637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32638 (eval $ac_link) 2>conftest.er1
32639 ac_status=$?
32640 grep -v '^ *+' conftest.er1 >conftest.err
32641 rm -f conftest.er1
32642 cat conftest.err >&5
32643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); } &&
32645 { ac_try='test -z "$ac_c_werror_flag"
32646 || test ! -s conftest.err'
32647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648 (eval $ac_try) 2>&5
32649 ac_status=$?
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); }; } &&
32652 { ac_try='test -s conftest$ac_exeext'
32653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654 (eval $ac_try) 2>&5
32655 ac_status=$?
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); }; }; then
32658 ac_cv_func_sched_get_priority_max=yes
32659 else
32660 echo "$as_me: failed program was:" >&5
32661 sed 's/^/| /' conftest.$ac_ext >&5
32662
32663 ac_cv_func_sched_get_priority_max=no
32664 fi
32665 rm -f conftest.err conftest.$ac_objext \
32666 conftest$ac_exeext conftest.$ac_ext
32667 fi
32668 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32669 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32670 if test $ac_cv_func_sched_get_priority_max = yes; then
32671 HAVE_PRIOR_FUNCS=1
32672 else
32673 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32674 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32675 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32676 echo $ECHO_N "(cached) $ECHO_C" >&6
32677 else
32678 ac_check_lib_save_LIBS=$LIBS
32679 LIBS="-lposix4 $LIBS"
32680 cat >conftest.$ac_ext <<_ACEOF
32681 /* confdefs.h. */
32682 _ACEOF
32683 cat confdefs.h >>conftest.$ac_ext
32684 cat >>conftest.$ac_ext <<_ACEOF
32685 /* end confdefs.h. */
32686
32687 /* Override any gcc2 internal prototype to avoid an error. */
32688 #ifdef __cplusplus
32689 extern "C"
32690 #endif
32691 /* We use char because int might match the return type of a gcc2
32692 builtin and then its argument prototype would still apply. */
32693 char sched_get_priority_max ();
32694 int
32695 main ()
32696 {
32697 sched_get_priority_max ();
32698 ;
32699 return 0;
32700 }
32701 _ACEOF
32702 rm -f conftest.$ac_objext conftest$ac_exeext
32703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32704 (eval $ac_link) 2>conftest.er1
32705 ac_status=$?
32706 grep -v '^ *+' conftest.er1 >conftest.err
32707 rm -f conftest.er1
32708 cat conftest.err >&5
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); } &&
32711 { ac_try='test -z "$ac_c_werror_flag"
32712 || test ! -s conftest.err'
32713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32714 (eval $ac_try) 2>&5
32715 ac_status=$?
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); }; } &&
32718 { ac_try='test -s conftest$ac_exeext'
32719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32720 (eval $ac_try) 2>&5
32721 ac_status=$?
32722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723 (exit $ac_status); }; }; then
32724 ac_cv_lib_posix4_sched_get_priority_max=yes
32725 else
32726 echo "$as_me: failed program was:" >&5
32727 sed 's/^/| /' conftest.$ac_ext >&5
32728
32729 ac_cv_lib_posix4_sched_get_priority_max=no
32730 fi
32731 rm -f conftest.err conftest.$ac_objext \
32732 conftest$ac_exeext conftest.$ac_ext
32733 LIBS=$ac_check_lib_save_LIBS
32734 fi
32735 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32736 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32737 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32738
32739 HAVE_PRIOR_FUNCS=1
32740 POSIX4_LINK=" -lposix4"
32741
32742 fi
32743
32744
32745 fi
32746
32747
32748 fi
32749
32750
32751 fi
32752
32753
32754 if test "$HAVE_PRIOR_FUNCS" = 1; then
32755 cat >>confdefs.h <<\_ACEOF
32756 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32757 _ACEOF
32758
32759 else
32760 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32761 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32762 fi
32763
32764 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32765 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32766 if test "${ac_cv_func_pthread_cancel+set}" = set; then
32767 echo $ECHO_N "(cached) $ECHO_C" >&6
32768 else
32769 cat >conftest.$ac_ext <<_ACEOF
32770 /* confdefs.h. */
32771 _ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h. */
32775 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32777 #define pthread_cancel innocuous_pthread_cancel
32778
32779 /* System header to define __stub macros and hopefully few prototypes,
32780 which can conflict with char pthread_cancel (); below.
32781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32782 <limits.h> exists even on freestanding compilers. */
32783
32784 #ifdef __STDC__
32785 # include <limits.h>
32786 #else
32787 # include <assert.h>
32788 #endif
32789
32790 #undef pthread_cancel
32791
32792 /* Override any gcc2 internal prototype to avoid an error. */
32793 #ifdef __cplusplus
32794 extern "C"
32795 {
32796 #endif
32797 /* We use char because int might match the return type of a gcc2
32798 builtin and then its argument prototype would still apply. */
32799 char pthread_cancel ();
32800 /* The GNU C library defines this for functions which it implements
32801 to always fail with ENOSYS. Some functions are actually named
32802 something starting with __ and the normal name is an alias. */
32803 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32804 choke me
32805 #else
32806 char (*f) () = pthread_cancel;
32807 #endif
32808 #ifdef __cplusplus
32809 }
32810 #endif
32811
32812 int
32813 main ()
32814 {
32815 return f != pthread_cancel;
32816 ;
32817 return 0;
32818 }
32819 _ACEOF
32820 rm -f conftest.$ac_objext conftest$ac_exeext
32821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32822 (eval $ac_link) 2>conftest.er1
32823 ac_status=$?
32824 grep -v '^ *+' conftest.er1 >conftest.err
32825 rm -f conftest.er1
32826 cat conftest.err >&5
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); } &&
32829 { ac_try='test -z "$ac_c_werror_flag"
32830 || test ! -s conftest.err'
32831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32832 (eval $ac_try) 2>&5
32833 ac_status=$?
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; } &&
32836 { ac_try='test -s conftest$ac_exeext'
32837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32838 (eval $ac_try) 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; }; then
32842 ac_cv_func_pthread_cancel=yes
32843 else
32844 echo "$as_me: failed program was:" >&5
32845 sed 's/^/| /' conftest.$ac_ext >&5
32846
32847 ac_cv_func_pthread_cancel=no
32848 fi
32849 rm -f conftest.err conftest.$ac_objext \
32850 conftest$ac_exeext conftest.$ac_ext
32851 fi
32852 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32853 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32854 if test $ac_cv_func_pthread_cancel = yes; then
32855 cat >>confdefs.h <<\_ACEOF
32856 #define HAVE_PTHREAD_CANCEL 1
32857 _ACEOF
32858
32859 else
32860 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32861 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32862 fi
32863
32864
32865
32866
32867 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32868 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32869 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32870 echo $ECHO_N "(cached) $ECHO_C" >&6
32871 else
32872
32873 cat >conftest.$ac_ext <<_ACEOF
32874 /* confdefs.h. */
32875 _ACEOF
32876 cat confdefs.h >>conftest.$ac_ext
32877 cat >>conftest.$ac_ext <<_ACEOF
32878 /* end confdefs.h. */
32879 #include <pthread.h>
32880 int
32881 main ()
32882 {
32883
32884 pthread_mutexattr_t attr;
32885 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32886
32887 ;
32888 return 0;
32889 }
32890 _ACEOF
32891 rm -f conftest.$ac_objext
32892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32893 (eval $ac_compile) 2>conftest.er1
32894 ac_status=$?
32895 grep -v '^ *+' conftest.er1 >conftest.err
32896 rm -f conftest.er1
32897 cat conftest.err >&5
32898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32899 (exit $ac_status); } &&
32900 { ac_try='test -z "$ac_c_werror_flag"
32901 || test ! -s conftest.err'
32902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32903 (eval $ac_try) 2>&5
32904 ac_status=$?
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; } &&
32907 { ac_try='test -s conftest.$ac_objext'
32908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32909 (eval $ac_try) 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; }; then
32913
32914 wx_cv_type_pthread_mutexattr_t=yes
32915
32916 else
32917 echo "$as_me: failed program was:" >&5
32918 sed 's/^/| /' conftest.$ac_ext >&5
32919
32920
32921 wx_cv_type_pthread_mutexattr_t=no
32922
32923
32924 fi
32925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32926
32927 fi
32928 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32929 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32930
32931 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32932 cat >>confdefs.h <<\_ACEOF
32933 #define HAVE_PTHREAD_MUTEXATTR_T 1
32934 _ACEOF
32935
32936 else
32937 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32938 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32939 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32940 echo $ECHO_N "(cached) $ECHO_C" >&6
32941 else
32942
32943 cat >conftest.$ac_ext <<_ACEOF
32944 /* confdefs.h. */
32945 _ACEOF
32946 cat confdefs.h >>conftest.$ac_ext
32947 cat >>conftest.$ac_ext <<_ACEOF
32948 /* end confdefs.h. */
32949 #include <pthread.h>
32950 int
32951 main ()
32952 {
32953
32954 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32955
32956 ;
32957 return 0;
32958 }
32959 _ACEOF
32960 rm -f conftest.$ac_objext
32961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32962 (eval $ac_compile) 2>conftest.er1
32963 ac_status=$?
32964 grep -v '^ *+' conftest.er1 >conftest.err
32965 rm -f conftest.er1
32966 cat conftest.err >&5
32967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968 (exit $ac_status); } &&
32969 { ac_try='test -z "$ac_c_werror_flag"
32970 || test ! -s conftest.err'
32971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32972 (eval $ac_try) 2>&5
32973 ac_status=$?
32974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32975 (exit $ac_status); }; } &&
32976 { ac_try='test -s conftest.$ac_objext'
32977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32978 (eval $ac_try) 2>&5
32979 ac_status=$?
32980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32981 (exit $ac_status); }; }; then
32982
32983 wx_cv_type_pthread_rec_mutex_init=yes
32984
32985 else
32986 echo "$as_me: failed program was:" >&5
32987 sed 's/^/| /' conftest.$ac_ext >&5
32988
32989
32990 wx_cv_type_pthread_rec_mutex_init=no
32991
32992
32993 fi
32994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32995
32996 fi
32997 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32998 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32999 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33000 cat >>confdefs.h <<\_ACEOF
33001 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33002 _ACEOF
33003
33004 else
33005 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33006 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33007 fi
33008 fi
33009 fi
33010
33011 else
33012 if test "$wxUSE_THREADS" = "yes" ; then
33013 case "${host}" in
33014 *-*-mingw32* )
33015 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33016 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33017 if test "${wx_cv_cflags_mthread+set}" = set; then
33018 echo $ECHO_N "(cached) $ECHO_C" >&6
33019 else
33020
33021 CFLAGS_OLD="$CFLAGS"
33022 CFLAGS="$CFLAGS -mthreads"
33023 cat >conftest.$ac_ext <<_ACEOF
33024 /* confdefs.h. */
33025 _ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h. */
33029
33030 int
33031 main ()
33032 {
33033
33034 ;
33035 return 0;
33036 }
33037 _ACEOF
33038 rm -f conftest.$ac_objext
33039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33040 (eval $ac_compile) 2>conftest.er1
33041 ac_status=$?
33042 grep -v '^ *+' conftest.er1 >conftest.err
33043 rm -f conftest.er1
33044 cat conftest.err >&5
33045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046 (exit $ac_status); } &&
33047 { ac_try='test -z "$ac_c_werror_flag"
33048 || test ! -s conftest.err'
33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33050 (eval $ac_try) 2>&5
33051 ac_status=$?
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; } &&
33054 { ac_try='test -s conftest.$ac_objext'
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; }; then
33060 wx_cv_cflags_mthread=yes
33061 else
33062 echo "$as_me: failed program was:" >&5
33063 sed 's/^/| /' conftest.$ac_ext >&5
33064
33065 wx_cv_cflags_mthread=no
33066
33067 fi
33068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33069
33070
33071 fi
33072 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33073 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33074
33075 if test "$wx_cv_cflags_mthread" = "yes"; then
33076 CXXFLAGS="$CXXFLAGS -mthreads"
33077 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33078 LDFLAGS="$LDFLAGS -mthreads"
33079 else
33080 CFLAGS="$CFLAGS_OLD"
33081 fi
33082 ;;
33083 *-pc-os2*emx )
33084 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33085 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33086 LDFLAGS="$LDFLAGS -Zmt"
33087 ;;
33088 esac
33089 fi
33090 fi
33091
33092 if test "$wxUSE_THREADS" = "yes"; then
33093 cat >>confdefs.h <<\_ACEOF
33094 #define wxUSE_THREADS 1
33095 _ACEOF
33096
33097
33098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33099 else
33100 if test "$ac_cv_func_strtok_r" = "yes"; then
33101 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33102 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33103 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33104 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33105 echo "$as_me:$LINENO: result: yes" >&5
33106 echo "${ECHO_T}yes" >&6
33107 else
33108 echo "$as_me:$LINENO: result: no" >&5
33109 echo "${ECHO_T}no" >&6
33110 fi
33111 fi
33112 fi
33113
33114 if test "$WXGTK20" = 1 ; then
33115 cat >>confdefs.h <<_ACEOF
33116 #define __WXGTK20__ $WXGTK20
33117 _ACEOF
33118
33119 WXGTK12=1
33120 fi
33121
33122 if test "$WXGTK12" = 1 ; then
33123 cat >>confdefs.h <<_ACEOF
33124 #define __WXGTK12__ $WXGTK12
33125 _ACEOF
33126
33127 fi
33128
33129 if test "$WXGTK127" = 1 ; then
33130 cat >>confdefs.h <<_ACEOF
33131 #define __WXGTK127__ $WXGTK127
33132 _ACEOF
33133
33134 fi
33135
33136 if test "$WXGPE" = 1 ; then
33137 cat >>confdefs.h <<_ACEOF
33138 #define __WXGPE__ $WXGPE
33139 _ACEOF
33140
33141 fi
33142
33143 WXDEBUG=
33144
33145 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33146 WXDEBUG="-g"
33147 wxUSE_OPTIMISE=no
33148 fi
33149
33150 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33151 wxUSE_DEBUG_INFO=yes
33152 WXDEBUG="-ggdb"
33153 fi
33154
33155 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33156 cat >>confdefs.h <<\_ACEOF
33157 #define WXDEBUG 1
33158 _ACEOF
33159
33160 WXDEBUG_DEFINE="-D__WXDEBUG__"
33161 else
33162 if test "$wxUSE_GTK" = 1 ; then
33163 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33164 fi
33165 fi
33166
33167 if test "$wxUSE_MEM_TRACING" = "yes" ; then
33168 cat >>confdefs.h <<\_ACEOF
33169 #define wxUSE_MEMORY_TRACING 1
33170 _ACEOF
33171
33172 cat >>confdefs.h <<\_ACEOF
33173 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33174 _ACEOF
33175
33176 cat >>confdefs.h <<\_ACEOF
33177 #define wxUSE_DEBUG_NEW_ALWAYS 1
33178 _ACEOF
33179
33180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33181 fi
33182
33183 if test "$wxUSE_DMALLOC" = "yes" ; then
33184 DMALLOC_LIBS="-ldmalloc"
33185 fi
33186
33187 PROFILE=
33188 if test "$wxUSE_PROFILE" = "yes" ; then
33189 PROFILE=" -pg"
33190 fi
33191
33192 CODE_GEN_FLAGS=
33193 CODE_GEN_FLAGS_CXX=
33194 if test "$GCC" = "yes" ; then
33195 if test "$wxUSE_NO_RTTI" = "yes" ; then
33196 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33197 fi
33198 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33199 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33200 fi
33201 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33202 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33203 fi
33204
33205 case "${host}" in
33206 powerpc*-*-aix* )
33207 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33208 ;;
33209 *-hppa* )
33210 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33211 ;;
33212 esac
33213 fi
33214
33215 OPTIMISE=
33216 if test "$wxUSE_OPTIMISE" = "no" ; then
33217 if test "$GCC" = yes ; then
33218 OPTIMISE="-O0"
33219 fi
33220 else
33221 if test "$GCC" = yes ; then
33222 OPTIMISE="-O2"
33223
33224 case "${host}" in
33225 i586-*-*|i686-*-* )
33226 OPTIMISE="${OPTIMISE} "
33227 ;;
33228 esac
33229 else
33230 OPTIMISE="-O"
33231 fi
33232 fi
33233
33234
33235 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33236 cat >>confdefs.h <<\_ACEOF
33237 #define WXWIN_COMPATIBILITY_2_2 1
33238 _ACEOF
33239
33240
33241 WXWIN_COMPATIBILITY_2_4="yes"
33242 fi
33243
33244 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33245 cat >>confdefs.h <<\_ACEOF
33246 #define WXWIN_COMPATIBILITY_2_4 1
33247 _ACEOF
33248
33249 fi
33250
33251
33252 if test "$wxUSE_GUI" = "yes"; then
33253 cat >>confdefs.h <<\_ACEOF
33254 #define wxUSE_GUI 1
33255 _ACEOF
33256
33257
33258 else
33259 cat >>confdefs.h <<\_ACEOF
33260 #define wxUSE_NOGUI 1
33261 _ACEOF
33262
33263 fi
33264
33265
33266 if test "$wxUSE_UNIX" = "yes"; then
33267 cat >>confdefs.h <<\_ACEOF
33268 #define wxUSE_UNIX 1
33269 _ACEOF
33270
33271 fi
33272
33273
33274 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33275
33276 HAVE_DL_FUNCS=0
33277 HAVE_SHL_FUNCS=0
33278 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33279 if test "$USE_DARWIN" = 1; then
33280 HAVE_DL_FUNCS=1
33281 else
33282
33283 for ac_func in dlopen
33284 do
33285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33286 echo "$as_me:$LINENO: checking for $ac_func" >&5
33287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33288 if eval "test \"\${$as_ac_var+set}\" = set"; then
33289 echo $ECHO_N "(cached) $ECHO_C" >&6
33290 else
33291 cat >conftest.$ac_ext <<_ACEOF
33292 /* confdefs.h. */
33293 _ACEOF
33294 cat confdefs.h >>conftest.$ac_ext
33295 cat >>conftest.$ac_ext <<_ACEOF
33296 /* end confdefs.h. */
33297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33299 #define $ac_func innocuous_$ac_func
33300
33301 /* System header to define __stub macros and hopefully few prototypes,
33302 which can conflict with char $ac_func (); below.
33303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33304 <limits.h> exists even on freestanding compilers. */
33305
33306 #ifdef __STDC__
33307 # include <limits.h>
33308 #else
33309 # include <assert.h>
33310 #endif
33311
33312 #undef $ac_func
33313
33314 /* Override any gcc2 internal prototype to avoid an error. */
33315 #ifdef __cplusplus
33316 extern "C"
33317 {
33318 #endif
33319 /* We use char because int might match the return type of a gcc2
33320 builtin and then its argument prototype would still apply. */
33321 char $ac_func ();
33322 /* The GNU C library defines this for functions which it implements
33323 to always fail with ENOSYS. Some functions are actually named
33324 something starting with __ and the normal name is an alias. */
33325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33326 choke me
33327 #else
33328 char (*f) () = $ac_func;
33329 #endif
33330 #ifdef __cplusplus
33331 }
33332 #endif
33333
33334 int
33335 main ()
33336 {
33337 return f != $ac_func;
33338 ;
33339 return 0;
33340 }
33341 _ACEOF
33342 rm -f conftest.$ac_objext conftest$ac_exeext
33343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33344 (eval $ac_link) 2>conftest.er1
33345 ac_status=$?
33346 grep -v '^ *+' conftest.er1 >conftest.err
33347 rm -f conftest.er1
33348 cat conftest.err >&5
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); } &&
33351 { ac_try='test -z "$ac_c_werror_flag"
33352 || test ! -s conftest.err'
33353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33354 (eval $ac_try) 2>&5
33355 ac_status=$?
33356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357 (exit $ac_status); }; } &&
33358 { ac_try='test -s conftest$ac_exeext'
33359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33360 (eval $ac_try) 2>&5
33361 ac_status=$?
33362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363 (exit $ac_status); }; }; then
33364 eval "$as_ac_var=yes"
33365 else
33366 echo "$as_me: failed program was:" >&5
33367 sed 's/^/| /' conftest.$ac_ext >&5
33368
33369 eval "$as_ac_var=no"
33370 fi
33371 rm -f conftest.err conftest.$ac_objext \
33372 conftest$ac_exeext conftest.$ac_ext
33373 fi
33374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33376 if test `eval echo '${'$as_ac_var'}'` = yes; then
33377 cat >>confdefs.h <<_ACEOF
33378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33379 _ACEOF
33380
33381 cat >>confdefs.h <<\_ACEOF
33382 #define HAVE_DLOPEN 1
33383 _ACEOF
33384
33385 HAVE_DL_FUNCS=1
33386
33387 else
33388
33389 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33390 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33391 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33392 echo $ECHO_N "(cached) $ECHO_C" >&6
33393 else
33394 ac_check_lib_save_LIBS=$LIBS
33395 LIBS="-ldl $LIBS"
33396 cat >conftest.$ac_ext <<_ACEOF
33397 /* confdefs.h. */
33398 _ACEOF
33399 cat confdefs.h >>conftest.$ac_ext
33400 cat >>conftest.$ac_ext <<_ACEOF
33401 /* end confdefs.h. */
33402
33403 /* Override any gcc2 internal prototype to avoid an error. */
33404 #ifdef __cplusplus
33405 extern "C"
33406 #endif
33407 /* We use char because int might match the return type of a gcc2
33408 builtin and then its argument prototype would still apply. */
33409 char dlopen ();
33410 int
33411 main ()
33412 {
33413 dlopen ();
33414 ;
33415 return 0;
33416 }
33417 _ACEOF
33418 rm -f conftest.$ac_objext conftest$ac_exeext
33419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33420 (eval $ac_link) 2>conftest.er1
33421 ac_status=$?
33422 grep -v '^ *+' conftest.er1 >conftest.err
33423 rm -f conftest.er1
33424 cat conftest.err >&5
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); } &&
33427 { ac_try='test -z "$ac_c_werror_flag"
33428 || test ! -s conftest.err'
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33431 ac_status=$?
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; } &&
33434 { ac_try='test -s conftest$ac_exeext'
33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436 (eval $ac_try) 2>&5
33437 ac_status=$?
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; }; then
33440 ac_cv_lib_dl_dlopen=yes
33441 else
33442 echo "$as_me: failed program was:" >&5
33443 sed 's/^/| /' conftest.$ac_ext >&5
33444
33445 ac_cv_lib_dl_dlopen=no
33446 fi
33447 rm -f conftest.err conftest.$ac_objext \
33448 conftest$ac_exeext conftest.$ac_ext
33449 LIBS=$ac_check_lib_save_LIBS
33450 fi
33451 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33452 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33453 if test $ac_cv_lib_dl_dlopen = yes; then
33454
33455 cat >>confdefs.h <<\_ACEOF
33456 #define HAVE_DLOPEN 1
33457 _ACEOF
33458
33459 HAVE_DL_FUNCS=1
33460 DL_LINK=" -ldl$DL_LINK"
33461
33462 else
33463
33464
33465 for ac_func in shl_load
33466 do
33467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33468 echo "$as_me:$LINENO: checking for $ac_func" >&5
33469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33470 if eval "test \"\${$as_ac_var+set}\" = set"; then
33471 echo $ECHO_N "(cached) $ECHO_C" >&6
33472 else
33473 cat >conftest.$ac_ext <<_ACEOF
33474 /* confdefs.h. */
33475 _ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h. */
33479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33481 #define $ac_func innocuous_$ac_func
33482
33483 /* System header to define __stub macros and hopefully few prototypes,
33484 which can conflict with char $ac_func (); below.
33485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33486 <limits.h> exists even on freestanding compilers. */
33487
33488 #ifdef __STDC__
33489 # include <limits.h>
33490 #else
33491 # include <assert.h>
33492 #endif
33493
33494 #undef $ac_func
33495
33496 /* Override any gcc2 internal prototype to avoid an error. */
33497 #ifdef __cplusplus
33498 extern "C"
33499 {
33500 #endif
33501 /* We use char because int might match the return type of a gcc2
33502 builtin and then its argument prototype would still apply. */
33503 char $ac_func ();
33504 /* The GNU C library defines this for functions which it implements
33505 to always fail with ENOSYS. Some functions are actually named
33506 something starting with __ and the normal name is an alias. */
33507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33508 choke me
33509 #else
33510 char (*f) () = $ac_func;
33511 #endif
33512 #ifdef __cplusplus
33513 }
33514 #endif
33515
33516 int
33517 main ()
33518 {
33519 return f != $ac_func;
33520 ;
33521 return 0;
33522 }
33523 _ACEOF
33524 rm -f conftest.$ac_objext conftest$ac_exeext
33525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33526 (eval $ac_link) 2>conftest.er1
33527 ac_status=$?
33528 grep -v '^ *+' conftest.er1 >conftest.err
33529 rm -f conftest.er1
33530 cat conftest.err >&5
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); } &&
33533 { ac_try='test -z "$ac_c_werror_flag"
33534 || test ! -s conftest.err'
33535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536 (eval $ac_try) 2>&5
33537 ac_status=$?
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; } &&
33540 { ac_try='test -s conftest$ac_exeext'
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33543 ac_status=$?
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; }; then
33546 eval "$as_ac_var=yes"
33547 else
33548 echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33550
33551 eval "$as_ac_var=no"
33552 fi
33553 rm -f conftest.err conftest.$ac_objext \
33554 conftest$ac_exeext conftest.$ac_ext
33555 fi
33556 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33557 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33558 if test `eval echo '${'$as_ac_var'}'` = yes; then
33559 cat >>confdefs.h <<_ACEOF
33560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33561 _ACEOF
33562
33563 cat >>confdefs.h <<\_ACEOF
33564 #define HAVE_SHL_LOAD 1
33565 _ACEOF
33566
33567 HAVE_SHL_FUNCS=1
33568
33569 else
33570
33571 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33572 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33573 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33574 echo $ECHO_N "(cached) $ECHO_C" >&6
33575 else
33576 ac_check_lib_save_LIBS=$LIBS
33577 LIBS="-lshl_load $LIBS"
33578 cat >conftest.$ac_ext <<_ACEOF
33579 /* confdefs.h. */
33580 _ACEOF
33581 cat confdefs.h >>conftest.$ac_ext
33582 cat >>conftest.$ac_ext <<_ACEOF
33583 /* end confdefs.h. */
33584
33585 /* Override any gcc2 internal prototype to avoid an error. */
33586 #ifdef __cplusplus
33587 extern "C"
33588 #endif
33589 /* We use char because int might match the return type of a gcc2
33590 builtin and then its argument prototype would still apply. */
33591 char dld ();
33592 int
33593 main ()
33594 {
33595 dld ();
33596 ;
33597 return 0;
33598 }
33599 _ACEOF
33600 rm -f conftest.$ac_objext conftest$ac_exeext
33601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33602 (eval $ac_link) 2>conftest.er1
33603 ac_status=$?
33604 grep -v '^ *+' conftest.er1 >conftest.err
33605 rm -f conftest.er1
33606 cat conftest.err >&5
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
33609 { ac_try='test -z "$ac_c_werror_flag"
33610 || test ! -s conftest.err'
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest$ac_exeext'
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; }; then
33622 ac_cv_lib_shl_load_dld=yes
33623 else
33624 echo "$as_me: failed program was:" >&5
33625 sed 's/^/| /' conftest.$ac_ext >&5
33626
33627 ac_cv_lib_shl_load_dld=no
33628 fi
33629 rm -f conftest.err conftest.$ac_objext \
33630 conftest$ac_exeext conftest.$ac_ext
33631 LIBS=$ac_check_lib_save_LIBS
33632 fi
33633 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33634 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33635 if test $ac_cv_lib_shl_load_dld = yes; then
33636
33637 HAVE_SHL_FUNCS=1
33638 DL_LINK=" -ldld$DL_LINK"
33639
33640 fi
33641
33642
33643 fi
33644 done
33645
33646
33647 fi
33648
33649
33650 fi
33651 done
33652
33653
33654 if test "$HAVE_DL_FUNCS" = 1; then
33655
33656 for ac_func in dlerror
33657 do
33658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33659 echo "$as_me:$LINENO: checking for $ac_func" >&5
33660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33661 if eval "test \"\${$as_ac_var+set}\" = set"; then
33662 echo $ECHO_N "(cached) $ECHO_C" >&6
33663 else
33664 cat >conftest.$ac_ext <<_ACEOF
33665 /* confdefs.h. */
33666 _ACEOF
33667 cat confdefs.h >>conftest.$ac_ext
33668 cat >>conftest.$ac_ext <<_ACEOF
33669 /* end confdefs.h. */
33670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33672 #define $ac_func innocuous_$ac_func
33673
33674 /* System header to define __stub macros and hopefully few prototypes,
33675 which can conflict with char $ac_func (); below.
33676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33677 <limits.h> exists even on freestanding compilers. */
33678
33679 #ifdef __STDC__
33680 # include <limits.h>
33681 #else
33682 # include <assert.h>
33683 #endif
33684
33685 #undef $ac_func
33686
33687 /* Override any gcc2 internal prototype to avoid an error. */
33688 #ifdef __cplusplus
33689 extern "C"
33690 {
33691 #endif
33692 /* We use char because int might match the return type of a gcc2
33693 builtin and then its argument prototype would still apply. */
33694 char $ac_func ();
33695 /* The GNU C library defines this for functions which it implements
33696 to always fail with ENOSYS. Some functions are actually named
33697 something starting with __ and the normal name is an alias. */
33698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33699 choke me
33700 #else
33701 char (*f) () = $ac_func;
33702 #endif
33703 #ifdef __cplusplus
33704 }
33705 #endif
33706
33707 int
33708 main ()
33709 {
33710 return f != $ac_func;
33711 ;
33712 return 0;
33713 }
33714 _ACEOF
33715 rm -f conftest.$ac_objext conftest$ac_exeext
33716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33717 (eval $ac_link) 2>conftest.er1
33718 ac_status=$?
33719 grep -v '^ *+' conftest.er1 >conftest.err
33720 rm -f conftest.er1
33721 cat conftest.err >&5
33722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723 (exit $ac_status); } &&
33724 { ac_try='test -z "$ac_c_werror_flag"
33725 || test ! -s conftest.err'
33726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33727 (eval $ac_try) 2>&5
33728 ac_status=$?
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); }; } &&
33731 { ac_try='test -s conftest$ac_exeext'
33732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33733 (eval $ac_try) 2>&5
33734 ac_status=$?
33735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33736 (exit $ac_status); }; }; then
33737 eval "$as_ac_var=yes"
33738 else
33739 echo "$as_me: failed program was:" >&5
33740 sed 's/^/| /' conftest.$ac_ext >&5
33741
33742 eval "$as_ac_var=no"
33743 fi
33744 rm -f conftest.err conftest.$ac_objext \
33745 conftest$ac_exeext conftest.$ac_ext
33746 fi
33747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33749 if test `eval echo '${'$as_ac_var'}'` = yes; then
33750 cat >>confdefs.h <<_ACEOF
33751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33752 _ACEOF
33753 cat >>confdefs.h <<\_ACEOF
33754 #define HAVE_DLERROR 1
33755 _ACEOF
33756
33757 else
33758
33759 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33760 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33761 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33762 echo $ECHO_N "(cached) $ECHO_C" >&6
33763 else
33764 ac_check_lib_save_LIBS=$LIBS
33765 LIBS="-ldl $LIBS"
33766 cat >conftest.$ac_ext <<_ACEOF
33767 /* confdefs.h. */
33768 _ACEOF
33769 cat confdefs.h >>conftest.$ac_ext
33770 cat >>conftest.$ac_ext <<_ACEOF
33771 /* end confdefs.h. */
33772
33773 /* Override any gcc2 internal prototype to avoid an error. */
33774 #ifdef __cplusplus
33775 extern "C"
33776 #endif
33777 /* We use char because int might match the return type of a gcc2
33778 builtin and then its argument prototype would still apply. */
33779 char dlerror ();
33780 int
33781 main ()
33782 {
33783 dlerror ();
33784 ;
33785 return 0;
33786 }
33787 _ACEOF
33788 rm -f conftest.$ac_objext conftest$ac_exeext
33789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33790 (eval $ac_link) 2>conftest.er1
33791 ac_status=$?
33792 grep -v '^ *+' conftest.er1 >conftest.err
33793 rm -f conftest.er1
33794 cat conftest.err >&5
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); } &&
33797 { ac_try='test -z "$ac_c_werror_flag"
33798 || test ! -s conftest.err'
33799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33800 (eval $ac_try) 2>&5
33801 ac_status=$?
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); }; } &&
33804 { ac_try='test -s conftest$ac_exeext'
33805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33806 (eval $ac_try) 2>&5
33807 ac_status=$?
33808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809 (exit $ac_status); }; }; then
33810 ac_cv_lib_dl_dlerror=yes
33811 else
33812 echo "$as_me: failed program was:" >&5
33813 sed 's/^/| /' conftest.$ac_ext >&5
33814
33815 ac_cv_lib_dl_dlerror=no
33816 fi
33817 rm -f conftest.err conftest.$ac_objext \
33818 conftest$ac_exeext conftest.$ac_ext
33819 LIBS=$ac_check_lib_save_LIBS
33820 fi
33821 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33822 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33823 if test $ac_cv_lib_dl_dlerror = yes; then
33824 cat >>confdefs.h <<\_ACEOF
33825 #define HAVE_DLERROR 1
33826 _ACEOF
33827
33828 fi
33829
33830
33831
33832 fi
33833 done
33834
33835 fi
33836 fi
33837
33838 if test "$HAVE_DL_FUNCS" = 0; then
33839 if test "$HAVE_SHL_FUNCS" = 0; then
33840 if test "$USE_UNIX" = 1; then
33841 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33842 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33843 wxUSE_DYNAMIC_LOADER=no
33844 wxUSE_DYNLIB_CLASS=no
33845 else
33846 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33847 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33848 fi
33849 fi
33850 fi
33851 fi
33852 fi
33853
33854 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33855 cat >>confdefs.h <<\_ACEOF
33856 #define wxUSE_DYNAMIC_LOADER 1
33857 _ACEOF
33858
33859 fi
33860 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33861 cat >>confdefs.h <<\_ACEOF
33862 #define wxUSE_DYNLIB_CLASS 1
33863 _ACEOF
33864
33865 fi
33866
33867
33868
33869 if test "$wxUSE_PLUGINS" = "yes" ; then
33870 if test "$wxUSE_SHARED" = "no" ; then
33871 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33872 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33873 wxUSE_PLUGINS=no
33874 fi
33875 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33876 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33877 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33878 wxUSE_PLUGINS=no
33879 fi
33880 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33881 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33882 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33883 wxUSE_PLUGINS=no
33884 fi
33885 if test "$wxUSE_PLUGINS" = "yes" ; then
33886 cat >>confdefs.h <<\_ACEOF
33887 #define wxUSE_PLUGINS 1
33888 _ACEOF
33889
33890 fi
33891 fi
33892
33893
33894 if test "$wxUSE_STL" = "yes"; then
33895 cat >>confdefs.h <<\_ACEOF
33896 #define wxUSE_STL 1
33897 _ACEOF
33898
33899 fi
33900
33901 if test "$wxUSE_APPLE_IEEE" = "yes"; then
33902 cat >>confdefs.h <<\_ACEOF
33903 #define wxUSE_APPLE_IEEE 1
33904 _ACEOF
33905
33906 fi
33907
33908 if test "$wxUSE_TIMER" = "yes"; then
33909 cat >>confdefs.h <<\_ACEOF
33910 #define wxUSE_TIMER 1
33911 _ACEOF
33912
33913 fi
33914
33915 WITH_PLUGIN_SDL=0
33916 if test "$wxUSE_SOUND" = "yes"; then
33917 if test "$USE_UNIX" = "1" ; then
33918
33919 for ac_header in sys/soundcard.h
33920 do
33921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33922 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33923 echo "$as_me:$LINENO: checking for $ac_header" >&5
33924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
33926 echo $ECHO_N "(cached) $ECHO_C" >&6
33927 fi
33928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33930 else
33931 # Is the header compilable?
33932 echo "$as_me:$LINENO: checking $ac_header usability" >&5
33933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33934 cat >conftest.$ac_ext <<_ACEOF
33935 /* confdefs.h. */
33936 _ACEOF
33937 cat confdefs.h >>conftest.$ac_ext
33938 cat >>conftest.$ac_ext <<_ACEOF
33939 /* end confdefs.h. */
33940 $ac_includes_default
33941 #include <$ac_header>
33942 _ACEOF
33943 rm -f conftest.$ac_objext
33944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33945 (eval $ac_compile) 2>conftest.er1
33946 ac_status=$?
33947 grep -v '^ *+' conftest.er1 >conftest.err
33948 rm -f conftest.er1
33949 cat conftest.err >&5
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); } &&
33952 { ac_try='test -z "$ac_c_werror_flag"
33953 || test ! -s conftest.err'
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33956 ac_status=$?
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; } &&
33959 { ac_try='test -s conftest.$ac_objext'
33960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33961 (eval $ac_try) 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; }; then
33965 ac_header_compiler=yes
33966 else
33967 echo "$as_me: failed program was:" >&5
33968 sed 's/^/| /' conftest.$ac_ext >&5
33969
33970 ac_header_compiler=no
33971 fi
33972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33973 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33974 echo "${ECHO_T}$ac_header_compiler" >&6
33975
33976 # Is the header present?
33977 echo "$as_me:$LINENO: checking $ac_header presence" >&5
33978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33979 cat >conftest.$ac_ext <<_ACEOF
33980 /* confdefs.h. */
33981 _ACEOF
33982 cat confdefs.h >>conftest.$ac_ext
33983 cat >>conftest.$ac_ext <<_ACEOF
33984 /* end confdefs.h. */
33985 #include <$ac_header>
33986 _ACEOF
33987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33988 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33989 ac_status=$?
33990 grep -v '^ *+' conftest.er1 >conftest.err
33991 rm -f conftest.er1
33992 cat conftest.err >&5
33993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); } >/dev/null; then
33995 if test -s conftest.err; then
33996 ac_cpp_err=$ac_c_preproc_warn_flag
33997 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33998 else
33999 ac_cpp_err=
34000 fi
34001 else
34002 ac_cpp_err=yes
34003 fi
34004 if test -z "$ac_cpp_err"; then
34005 ac_header_preproc=yes
34006 else
34007 echo "$as_me: failed program was:" >&5
34008 sed 's/^/| /' conftest.$ac_ext >&5
34009
34010 ac_header_preproc=no
34011 fi
34012 rm -f conftest.err conftest.$ac_ext
34013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34014 echo "${ECHO_T}$ac_header_preproc" >&6
34015
34016 # So? What about this header?
34017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34018 yes:no: )
34019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34022 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34023 ac_header_preproc=yes
34024 ;;
34025 no:yes:* )
34026 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34027 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34028 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34029 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34030 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34031 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34032 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34033 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34036 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34037 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34038 (
34039 cat <<\_ASBOX
34040 ## ----------------------------------------- ##
34041 ## Report this to wx-dev@lists.wxwidgets.org ##
34042 ## ----------------------------------------- ##
34043 _ASBOX
34044 ) |
34045 sed "s/^/$as_me: WARNING: /" >&2
34046 ;;
34047 esac
34048 echo "$as_me:$LINENO: checking for $ac_header" >&5
34049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34051 echo $ECHO_N "(cached) $ECHO_C" >&6
34052 else
34053 eval "$as_ac_Header=\$ac_header_preproc"
34054 fi
34055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34057
34058 fi
34059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34060 cat >>confdefs.h <<_ACEOF
34061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34062 _ACEOF
34063
34064 fi
34065
34066 done
34067
34068
34069 if test "$wxUSE_LIBSDL" != "no"; then
34070
34071 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34072 if test "${with_sdl_prefix+set}" = set; then
34073 withval="$with_sdl_prefix"
34074 sdl_prefix="$withval"
34075 else
34076 sdl_prefix=""
34077 fi;
34078
34079 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34080 if test "${with_sdl_exec_prefix+set}" = set; then
34081 withval="$with_sdl_exec_prefix"
34082 sdl_exec_prefix="$withval"
34083 else
34084 sdl_exec_prefix=""
34085 fi;
34086 # Check whether --enable-sdltest or --disable-sdltest was given.
34087 if test "${enable_sdltest+set}" = set; then
34088 enableval="$enable_sdltest"
34089
34090 else
34091 enable_sdltest=yes
34092 fi;
34093
34094 if test x$sdl_exec_prefix != x ; then
34095 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34096 if test x${SDL_CONFIG+set} != xset ; then
34097 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34098 fi
34099 fi
34100 if test x$sdl_prefix != x ; then
34101 sdl_args="$sdl_args --prefix=$sdl_prefix"
34102 if test x${SDL_CONFIG+set} != xset ; then
34103 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34104 fi
34105 fi
34106
34107
34108 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34109 # Extract the first word of "sdl-config", so it can be a program name with args.
34110 set dummy sdl-config; ac_word=$2
34111 echo "$as_me:$LINENO: checking for $ac_word" >&5
34112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34113 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34114 echo $ECHO_N "(cached) $ECHO_C" >&6
34115 else
34116 case $SDL_CONFIG in
34117 [\\/]* | ?:[\\/]*)
34118 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34119 ;;
34120 *)
34121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34122 for as_dir in $PATH
34123 do
34124 IFS=$as_save_IFS
34125 test -z "$as_dir" && as_dir=.
34126 for ac_exec_ext in '' $ac_executable_extensions; do
34127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34128 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34130 break 2
34131 fi
34132 done
34133 done
34134
34135 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34136 ;;
34137 esac
34138 fi
34139 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34140
34141 if test -n "$SDL_CONFIG"; then
34142 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34143 echo "${ECHO_T}$SDL_CONFIG" >&6
34144 else
34145 echo "$as_me:$LINENO: result: no" >&5
34146 echo "${ECHO_T}no" >&6
34147 fi
34148
34149 min_sdl_version=1.2.0
34150 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34151 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34152 no_sdl=""
34153 if test "$SDL_CONFIG" = "no" ; then
34154 no_sdl=yes
34155 else
34156 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34157 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34158
34159 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34160 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34161 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34163 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34165 if test "x$enable_sdltest" = "xyes" ; then
34166 ac_save_CFLAGS="$CFLAGS"
34167 ac_save_LIBS="$LIBS"
34168 CFLAGS="$CFLAGS $SDL_CFLAGS"
34169 LIBS="$LIBS $SDL_LIBS"
34170 rm -f conf.sdltest
34171 if test "$cross_compiling" = yes; then
34172 echo $ac_n "cross compiling; assumed OK... $ac_c"
34173 else
34174 cat >conftest.$ac_ext <<_ACEOF
34175 /* confdefs.h. */
34176 _ACEOF
34177 cat confdefs.h >>conftest.$ac_ext
34178 cat >>conftest.$ac_ext <<_ACEOF
34179 /* end confdefs.h. */
34180
34181 #include <stdio.h>
34182 #include <stdlib.h>
34183 #include <string.h>
34184 #include "SDL.h"
34185
34186 char*
34187 my_strdup (char *str)
34188 {
34189 char *new_str;
34190
34191 if (str)
34192 {
34193 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34194 strcpy (new_str, str);
34195 }
34196 else
34197 new_str = NULL;
34198
34199 return new_str;
34200 }
34201
34202 int main (int argc, char *argv[])
34203 {
34204 int major, minor, micro;
34205 char *tmp_version;
34206
34207 /* This hangs on some systems (?)
34208 system ("touch conf.sdltest");
34209 */
34210 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34211
34212 /* HP/UX 9 (%@#!) writes to sscanf strings */
34213 tmp_version = my_strdup("$min_sdl_version");
34214 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34215 printf("%s, bad version string\n", "$min_sdl_version");
34216 exit(1);
34217 }
34218
34219 if (($sdl_major_version > major) ||
34220 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34221 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34222 {
34223 return 0;
34224 }
34225 else
34226 {
34227 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34228 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34229 printf("*** best to upgrade to the required version.\n");
34230 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34231 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34232 printf("*** config.cache before re-running configure\n");
34233 return 1;
34234 }
34235 }
34236
34237
34238 _ACEOF
34239 rm -f conftest$ac_exeext
34240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34241 (eval $ac_link) 2>&5
34242 ac_status=$?
34243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34246 (eval $ac_try) 2>&5
34247 ac_status=$?
34248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34249 (exit $ac_status); }; }; then
34250 :
34251 else
34252 echo "$as_me: program exited with status $ac_status" >&5
34253 echo "$as_me: failed program was:" >&5
34254 sed 's/^/| /' conftest.$ac_ext >&5
34255
34256 ( exit $ac_status )
34257 no_sdl=yes
34258 fi
34259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34260 fi
34261 CFLAGS="$ac_save_CFLAGS"
34262 LIBS="$ac_save_LIBS"
34263 fi
34264 fi
34265 if test "x$no_sdl" = x ; then
34266 echo "$as_me:$LINENO: result: yes" >&5
34267 echo "${ECHO_T}yes" >&6
34268
34269 EXTRALIBS_SDL="$SDL_LIBS"
34270 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34271 cat >>confdefs.h <<\_ACEOF
34272 #define wxUSE_LIBSDL 1
34273 _ACEOF
34274
34275
34276 else
34277 echo "$as_me:$LINENO: result: no" >&5
34278 echo "${ECHO_T}no" >&6
34279 if test "$SDL_CONFIG" = "no" ; then
34280 echo "*** The sdl-config script installed by SDL could not be found"
34281 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34282 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34283 echo "*** full path to sdl-config."
34284 else
34285 if test -f conf.sdltest ; then
34286 :
34287 else
34288 echo "*** Could not run SDL test program, checking why..."
34289 CFLAGS="$CFLAGS $SDL_CFLAGS"
34290 LIBS="$LIBS $SDL_LIBS"
34291 cat >conftest.$ac_ext <<_ACEOF
34292 /* confdefs.h. */
34293 _ACEOF
34294 cat confdefs.h >>conftest.$ac_ext
34295 cat >>conftest.$ac_ext <<_ACEOF
34296 /* end confdefs.h. */
34297
34298 #include <stdio.h>
34299 #include "SDL.h"
34300
34301 int main(int argc, char *argv[])
34302 { return 0; }
34303 #undef main
34304 #define main K_and_R_C_main
34305
34306 int
34307 main ()
34308 {
34309 return 0;
34310 ;
34311 return 0;
34312 }
34313 _ACEOF
34314 rm -f conftest.$ac_objext conftest$ac_exeext
34315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34316 (eval $ac_link) 2>conftest.er1
34317 ac_status=$?
34318 grep -v '^ *+' conftest.er1 >conftest.err
34319 rm -f conftest.er1
34320 cat conftest.err >&5
34321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34322 (exit $ac_status); } &&
34323 { ac_try='test -z "$ac_c_werror_flag"
34324 || test ! -s conftest.err'
34325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34326 (eval $ac_try) 2>&5
34327 ac_status=$?
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); }; } &&
34330 { ac_try='test -s conftest$ac_exeext'
34331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34332 (eval $ac_try) 2>&5
34333 ac_status=$?
34334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34335 (exit $ac_status); }; }; then
34336 echo "*** The test program compiled, but did not run. This usually means"
34337 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34338 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34339 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34340 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34341 echo "*** is required on your system"
34342 echo "***"
34343 echo "*** If you have an old version installed, it is best to remove it, although"
34344 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34345 else
34346 echo "$as_me: failed program was:" >&5
34347 sed 's/^/| /' conftest.$ac_ext >&5
34348
34349 echo "*** The test program failed to compile or link. See the file config.log for the"
34350 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34351 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34352 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34353 fi
34354 rm -f conftest.err conftest.$ac_objext \
34355 conftest$ac_exeext conftest.$ac_ext
34356 CFLAGS="$ac_save_CFLAGS"
34357 LIBS="$ac_save_LIBS"
34358 fi
34359 fi
34360 SDL_CFLAGS=""
34361 SDL_LIBS=""
34362 wxUSE_LIBSDL="no"
34363 fi
34364
34365
34366 rm -f conf.sdltest
34367
34368 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34369 WITH_PLUGIN_SDL=1
34370 fi
34371 fi
34372 fi
34373
34374 cat >>confdefs.h <<\_ACEOF
34375 #define wxUSE_SOUND 1
34376 _ACEOF
34377
34378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34379 fi
34380
34381 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34382 cat >>confdefs.h <<\_ACEOF
34383 #define wxUSE_CMDLINE_PARSER 1
34384 _ACEOF
34385
34386 fi
34387
34388 if test "$wxUSE_STOPWATCH" = "yes"; then
34389 cat >>confdefs.h <<\_ACEOF
34390 #define wxUSE_STOPWATCH 1
34391 _ACEOF
34392
34393 fi
34394
34395 if test "$wxUSE_DATETIME" = "yes"; then
34396 cat >>confdefs.h <<\_ACEOF
34397 #define wxUSE_DATETIME 1
34398 _ACEOF
34399
34400 fi
34401
34402 if test "$wxUSE_FILE" = "yes"; then
34403 cat >>confdefs.h <<\_ACEOF
34404 #define wxUSE_FILE 1
34405 _ACEOF
34406
34407 fi
34408
34409 if test "$wxUSE_FFILE" = "yes"; then
34410 cat >>confdefs.h <<\_ACEOF
34411 #define wxUSE_FFILE 1
34412 _ACEOF
34413
34414 fi
34415
34416 if test "$wxUSE_FILESYSTEM" = "yes"; then
34417 cat >>confdefs.h <<\_ACEOF
34418 #define wxUSE_FILESYSTEM 1
34419 _ACEOF
34420
34421 fi
34422
34423 if test "$wxUSE_FS_ZIP" = "yes"; then
34424 cat >>confdefs.h <<\_ACEOF
34425 #define wxUSE_FS_ZIP 1
34426 _ACEOF
34427
34428 fi
34429
34430 if test "$wxUSE_ZIPSTREAM" = "yes"; then
34431 cat >>confdefs.h <<\_ACEOF
34432 #define wxUSE_ZIPSTREAM 1
34433 _ACEOF
34434
34435 fi
34436
34437 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34438 cat >>confdefs.h <<\_ACEOF
34439 #define wxUSE_ON_FATAL_EXCEPTION 1
34440 _ACEOF
34441
34442 fi
34443
34444 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34445 cat >>confdefs.h <<\_ACEOF
34446 #define wxUSE_SNGLINST_CHECKER 1
34447 _ACEOF
34448
34449 fi
34450
34451 if test "$wxUSE_BUSYINFO" = "yes"; then
34452 cat >>confdefs.h <<\_ACEOF
34453 #define wxUSE_BUSYINFO 1
34454 _ACEOF
34455
34456 fi
34457
34458 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34459 cat >>confdefs.h <<\_ACEOF
34460 #define wxUSE_STD_IOSTREAM 1
34461 _ACEOF
34462
34463 fi
34464
34465 if test "$wxUSE_TEXTBUFFER" = "yes"; then
34466 cat >>confdefs.h <<\_ACEOF
34467 #define wxUSE_TEXTBUFFER 1
34468 _ACEOF
34469
34470 fi
34471
34472 if test "$wxUSE_TEXTFILE" = "yes"; then
34473 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34474 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34475 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34476 else
34477 cat >>confdefs.h <<\_ACEOF
34478 #define wxUSE_TEXTFILE 1
34479 _ACEOF
34480
34481 fi
34482 fi
34483
34484 if test "$wxUSE_CONFIG" = "yes" ; then
34485 if test "$wxUSE_TEXTFILE" != "yes"; then
34486 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34487 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34488 else
34489 cat >>confdefs.h <<\_ACEOF
34490 #define wxUSE_CONFIG 1
34491 _ACEOF
34492
34493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34494 fi
34495 fi
34496
34497 if test "$wxUSE_INTL" = "yes" ; then
34498 if test "$wxUSE_FILE" != "yes"; then
34499 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34500 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34501 else
34502 cat >>confdefs.h <<\_ACEOF
34503 #define wxUSE_INTL 1
34504 _ACEOF
34505
34506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34507 GUIDIST="$GUIDIST INTL_DIST"
34508 fi
34509 fi
34510
34511 if test "$wxUSE_LOG" = "yes"; then
34512 cat >>confdefs.h <<\_ACEOF
34513 #define wxUSE_LOG 1
34514 _ACEOF
34515
34516
34517 if test "$wxUSE_LOGGUI" = "yes"; then
34518 cat >>confdefs.h <<\_ACEOF
34519 #define wxUSE_LOGGUI 1
34520 _ACEOF
34521
34522 fi
34523
34524 if test "$wxUSE_LOGWINDOW" = "yes"; then
34525 cat >>confdefs.h <<\_ACEOF
34526 #define wxUSE_LOGWINDOW 1
34527 _ACEOF
34528
34529 fi
34530
34531 if test "$wxUSE_LOGDIALOG" = "yes"; then
34532 cat >>confdefs.h <<\_ACEOF
34533 #define wxUSE_LOG_DIALOG 1
34534 _ACEOF
34535
34536 fi
34537 fi
34538
34539 if test "$wxUSE_LONGLONG" = "yes"; then
34540 cat >>confdefs.h <<\_ACEOF
34541 #define wxUSE_LONGLONG 1
34542 _ACEOF
34543
34544 fi
34545
34546 if test "$wxUSE_GEOMETRY" = "yes"; then
34547 cat >>confdefs.h <<\_ACEOF
34548 #define wxUSE_GEOMETRY 1
34549 _ACEOF
34550
34551 fi
34552
34553 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34554 cat >>confdefs.h <<\_ACEOF
34555 #define wxUSE_DIALUP_MANAGER 1
34556 _ACEOF
34557
34558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34559 fi
34560
34561 if test "$wxUSE_STREAMS" = "yes" ; then
34562 cat >>confdefs.h <<\_ACEOF
34563 #define wxUSE_STREAMS 1
34564 _ACEOF
34565
34566 fi
34567
34568
34569 if test "$wxUSE_DATETIME" = "yes"; then
34570
34571 for ac_func in strptime
34572 do
34573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34574 echo "$as_me:$LINENO: checking for $ac_func" >&5
34575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34576 if eval "test \"\${$as_ac_var+set}\" = set"; then
34577 echo $ECHO_N "(cached) $ECHO_C" >&6
34578 else
34579 cat >conftest.$ac_ext <<_ACEOF
34580 /* confdefs.h. */
34581 _ACEOF
34582 cat confdefs.h >>conftest.$ac_ext
34583 cat >>conftest.$ac_ext <<_ACEOF
34584 /* end confdefs.h. */
34585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34587 #define $ac_func innocuous_$ac_func
34588
34589 /* System header to define __stub macros and hopefully few prototypes,
34590 which can conflict with char $ac_func (); below.
34591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34592 <limits.h> exists even on freestanding compilers. */
34593
34594 #ifdef __STDC__
34595 # include <limits.h>
34596 #else
34597 # include <assert.h>
34598 #endif
34599
34600 #undef $ac_func
34601
34602 /* Override any gcc2 internal prototype to avoid an error. */
34603 #ifdef __cplusplus
34604 extern "C"
34605 {
34606 #endif
34607 /* We use char because int might match the return type of a gcc2
34608 builtin and then its argument prototype would still apply. */
34609 char $ac_func ();
34610 /* The GNU C library defines this for functions which it implements
34611 to always fail with ENOSYS. Some functions are actually named
34612 something starting with __ and the normal name is an alias. */
34613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34614 choke me
34615 #else
34616 char (*f) () = $ac_func;
34617 #endif
34618 #ifdef __cplusplus
34619 }
34620 #endif
34621
34622 int
34623 main ()
34624 {
34625 return f != $ac_func;
34626 ;
34627 return 0;
34628 }
34629 _ACEOF
34630 rm -f conftest.$ac_objext conftest$ac_exeext
34631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34632 (eval $ac_link) 2>conftest.er1
34633 ac_status=$?
34634 grep -v '^ *+' conftest.er1 >conftest.err
34635 rm -f conftest.er1
34636 cat conftest.err >&5
34637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638 (exit $ac_status); } &&
34639 { ac_try='test -z "$ac_c_werror_flag"
34640 || test ! -s conftest.err'
34641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34642 (eval $ac_try) 2>&5
34643 ac_status=$?
34644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34645 (exit $ac_status); }; } &&
34646 { ac_try='test -s conftest$ac_exeext'
34647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34648 (eval $ac_try) 2>&5
34649 ac_status=$?
34650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34651 (exit $ac_status); }; }; then
34652 eval "$as_ac_var=yes"
34653 else
34654 echo "$as_me: failed program was:" >&5
34655 sed 's/^/| /' conftest.$ac_ext >&5
34656
34657 eval "$as_ac_var=no"
34658 fi
34659 rm -f conftest.err conftest.$ac_objext \
34660 conftest$ac_exeext conftest.$ac_ext
34661 fi
34662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34664 if test `eval echo '${'$as_ac_var'}'` = yes; then
34665 cat >>confdefs.h <<_ACEOF
34666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34667 _ACEOF
34668
34669 fi
34670 done
34671
34672
34673 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34674 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34675 if test "${wx_cv_var_timezone+set}" = set; then
34676 echo $ECHO_N "(cached) $ECHO_C" >&6
34677 else
34678
34679 cat >conftest.$ac_ext <<_ACEOF
34680 /* confdefs.h. */
34681 _ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h. */
34685
34686 #include <time.h>
34687
34688 int
34689 main ()
34690 {
34691
34692 int tz;
34693 tz = timezone;
34694
34695 ;
34696 return 0;
34697 }
34698 _ACEOF
34699 rm -f conftest.$ac_objext
34700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34701 (eval $ac_compile) 2>conftest.er1
34702 ac_status=$?
34703 grep -v '^ *+' conftest.er1 >conftest.err
34704 rm -f conftest.er1
34705 cat conftest.err >&5
34706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34707 (exit $ac_status); } &&
34708 { ac_try='test -z "$ac_c_werror_flag"
34709 || test ! -s conftest.err'
34710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34711 (eval $ac_try) 2>&5
34712 ac_status=$?
34713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34714 (exit $ac_status); }; } &&
34715 { ac_try='test -s conftest.$ac_objext'
34716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34717 (eval $ac_try) 2>&5
34718 ac_status=$?
34719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34720 (exit $ac_status); }; }; then
34721
34722 wx_cv_var_timezone=timezone
34723
34724 else
34725 echo "$as_me: failed program was:" >&5
34726 sed 's/^/| /' conftest.$ac_ext >&5
34727
34728
34729 cat >conftest.$ac_ext <<_ACEOF
34730 /* confdefs.h. */
34731 _ACEOF
34732 cat confdefs.h >>conftest.$ac_ext
34733 cat >>conftest.$ac_ext <<_ACEOF
34734 /* end confdefs.h. */
34735
34736 #include <time.h>
34737
34738 int
34739 main ()
34740 {
34741
34742 int tz;
34743 tz = _timezone;
34744
34745 ;
34746 return 0;
34747 }
34748 _ACEOF
34749 rm -f conftest.$ac_objext
34750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34751 (eval $ac_compile) 2>conftest.er1
34752 ac_status=$?
34753 grep -v '^ *+' conftest.er1 >conftest.err
34754 rm -f conftest.er1
34755 cat conftest.err >&5
34756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757 (exit $ac_status); } &&
34758 { ac_try='test -z "$ac_c_werror_flag"
34759 || test ! -s conftest.err'
34760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761 (eval $ac_try) 2>&5
34762 ac_status=$?
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); }; } &&
34765 { ac_try='test -s conftest.$ac_objext'
34766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34767 (eval $ac_try) 2>&5
34768 ac_status=$?
34769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34770 (exit $ac_status); }; }; then
34771
34772 wx_cv_var_timezone=_timezone
34773
34774 else
34775 echo "$as_me: failed program was:" >&5
34776 sed 's/^/| /' conftest.$ac_ext >&5
34777
34778
34779 cat >conftest.$ac_ext <<_ACEOF
34780 /* confdefs.h. */
34781 _ACEOF
34782 cat confdefs.h >>conftest.$ac_ext
34783 cat >>conftest.$ac_ext <<_ACEOF
34784 /* end confdefs.h. */
34785
34786 #include <time.h>
34787
34788 int
34789 main ()
34790 {
34791
34792 int tz;
34793 tz = __timezone;
34794
34795 ;
34796 return 0;
34797 }
34798 _ACEOF
34799 rm -f conftest.$ac_objext
34800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34801 (eval $ac_compile) 2>conftest.er1
34802 ac_status=$?
34803 grep -v '^ *+' conftest.er1 >conftest.err
34804 rm -f conftest.er1
34805 cat conftest.err >&5
34806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34807 (exit $ac_status); } &&
34808 { ac_try='test -z "$ac_c_werror_flag"
34809 || test ! -s conftest.err'
34810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811 (eval $ac_try) 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; } &&
34815 { ac_try='test -s conftest.$ac_objext'
34816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817 (eval $ac_try) 2>&5
34818 ac_status=$?
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); }; }; then
34821
34822 wx_cv_var_timezone=__timezone
34823
34824 else
34825 echo "$as_me: failed program was:" >&5
34826 sed 's/^/| /' conftest.$ac_ext >&5
34827
34828
34829 if test "$USE_DOS" = 0 ; then
34830 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34831 echo "$as_me: WARNING: no timezone variable" >&2;}
34832 fi
34833
34834
34835 fi
34836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34837
34838
34839 fi
34840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34841
34842
34843 fi
34844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34845
34846
34847 fi
34848 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34849 echo "${ECHO_T}$wx_cv_var_timezone" >&6
34850
34851 if test "x$wx_cv_var_timezone" != x ; then
34852 cat >>confdefs.h <<_ACEOF
34853 #define WX_TIMEZONE $wx_cv_var_timezone
34854 _ACEOF
34855
34856 fi
34857
34858
34859 for ac_func in localtime
34860 do
34861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34862 echo "$as_me:$LINENO: checking for $ac_func" >&5
34863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34864 if eval "test \"\${$as_ac_var+set}\" = set"; then
34865 echo $ECHO_N "(cached) $ECHO_C" >&6
34866 else
34867 cat >conftest.$ac_ext <<_ACEOF
34868 /* confdefs.h. */
34869 _ACEOF
34870 cat confdefs.h >>conftest.$ac_ext
34871 cat >>conftest.$ac_ext <<_ACEOF
34872 /* end confdefs.h. */
34873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34875 #define $ac_func innocuous_$ac_func
34876
34877 /* System header to define __stub macros and hopefully few prototypes,
34878 which can conflict with char $ac_func (); below.
34879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34880 <limits.h> exists even on freestanding compilers. */
34881
34882 #ifdef __STDC__
34883 # include <limits.h>
34884 #else
34885 # include <assert.h>
34886 #endif
34887
34888 #undef $ac_func
34889
34890 /* Override any gcc2 internal prototype to avoid an error. */
34891 #ifdef __cplusplus
34892 extern "C"
34893 {
34894 #endif
34895 /* We use char because int might match the return type of a gcc2
34896 builtin and then its argument prototype would still apply. */
34897 char $ac_func ();
34898 /* The GNU C library defines this for functions which it implements
34899 to always fail with ENOSYS. Some functions are actually named
34900 something starting with __ and the normal name is an alias. */
34901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34902 choke me
34903 #else
34904 char (*f) () = $ac_func;
34905 #endif
34906 #ifdef __cplusplus
34907 }
34908 #endif
34909
34910 int
34911 main ()
34912 {
34913 return f != $ac_func;
34914 ;
34915 return 0;
34916 }
34917 _ACEOF
34918 rm -f conftest.$ac_objext conftest$ac_exeext
34919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34920 (eval $ac_link) 2>conftest.er1
34921 ac_status=$?
34922 grep -v '^ *+' conftest.er1 >conftest.err
34923 rm -f conftest.er1
34924 cat conftest.err >&5
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); } &&
34927 { ac_try='test -z "$ac_c_werror_flag"
34928 || test ! -s conftest.err'
34929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930 (eval $ac_try) 2>&5
34931 ac_status=$?
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; } &&
34934 { ac_try='test -s conftest$ac_exeext'
34935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34936 (eval $ac_try) 2>&5
34937 ac_status=$?
34938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34939 (exit $ac_status); }; }; then
34940 eval "$as_ac_var=yes"
34941 else
34942 echo "$as_me: failed program was:" >&5
34943 sed 's/^/| /' conftest.$ac_ext >&5
34944
34945 eval "$as_ac_var=no"
34946 fi
34947 rm -f conftest.err conftest.$ac_objext \
34948 conftest$ac_exeext conftest.$ac_ext
34949 fi
34950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34952 if test `eval echo '${'$as_ac_var'}'` = yes; then
34953 cat >>confdefs.h <<_ACEOF
34954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34955 _ACEOF
34956
34957 fi
34958 done
34959
34960
34961 if test "$ac_cv_func_localtime" = "yes"; then
34962 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34963 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34964 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34965 echo $ECHO_N "(cached) $ECHO_C" >&6
34966 else
34967
34968 cat >conftest.$ac_ext <<_ACEOF
34969 /* confdefs.h. */
34970 _ACEOF
34971 cat confdefs.h >>conftest.$ac_ext
34972 cat >>conftest.$ac_ext <<_ACEOF
34973 /* end confdefs.h. */
34974
34975 #include <time.h>
34976
34977 int
34978 main ()
34979 {
34980
34981 struct tm tm;
34982 tm.tm_gmtoff++;
34983
34984 ;
34985 return 0;
34986 }
34987 _ACEOF
34988 rm -f conftest.$ac_objext
34989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34990 (eval $ac_compile) 2>conftest.er1
34991 ac_status=$?
34992 grep -v '^ *+' conftest.er1 >conftest.err
34993 rm -f conftest.er1
34994 cat conftest.err >&5
34995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); } &&
34997 { ac_try='test -z "$ac_c_werror_flag"
34998 || test ! -s conftest.err'
34999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35000 (eval $ac_try) 2>&5
35001 ac_status=$?
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); }; } &&
35004 { ac_try='test -s conftest.$ac_objext'
35005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35006 (eval $ac_try) 2>&5
35007 ac_status=$?
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); }; }; then
35010
35011 wx_cv_struct_tm_has_gmtoff=yes
35012
35013 else
35014 echo "$as_me: failed program was:" >&5
35015 sed 's/^/| /' conftest.$ac_ext >&5
35016
35017 wx_cv_struct_tm_has_gmtoff=no
35018
35019 fi
35020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35021
35022 fi
35023 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35024 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35025 fi
35026
35027 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35028 cat >>confdefs.h <<\_ACEOF
35029 #define WX_GMTOFF_IN_TM 1
35030 _ACEOF
35031
35032 fi
35033
35034
35035
35036 for ac_func in gettimeofday ftime
35037 do
35038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35039 echo "$as_me:$LINENO: checking for $ac_func" >&5
35040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35041 if eval "test \"\${$as_ac_var+set}\" = set"; then
35042 echo $ECHO_N "(cached) $ECHO_C" >&6
35043 else
35044 cat >conftest.$ac_ext <<_ACEOF
35045 /* confdefs.h. */
35046 _ACEOF
35047 cat confdefs.h >>conftest.$ac_ext
35048 cat >>conftest.$ac_ext <<_ACEOF
35049 /* end confdefs.h. */
35050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35052 #define $ac_func innocuous_$ac_func
35053
35054 /* System header to define __stub macros and hopefully few prototypes,
35055 which can conflict with char $ac_func (); below.
35056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35057 <limits.h> exists even on freestanding compilers. */
35058
35059 #ifdef __STDC__
35060 # include <limits.h>
35061 #else
35062 # include <assert.h>
35063 #endif
35064
35065 #undef $ac_func
35066
35067 /* Override any gcc2 internal prototype to avoid an error. */
35068 #ifdef __cplusplus
35069 extern "C"
35070 {
35071 #endif
35072 /* We use char because int might match the return type of a gcc2
35073 builtin and then its argument prototype would still apply. */
35074 char $ac_func ();
35075 /* The GNU C library defines this for functions which it implements
35076 to always fail with ENOSYS. Some functions are actually named
35077 something starting with __ and the normal name is an alias. */
35078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35079 choke me
35080 #else
35081 char (*f) () = $ac_func;
35082 #endif
35083 #ifdef __cplusplus
35084 }
35085 #endif
35086
35087 int
35088 main ()
35089 {
35090 return f != $ac_func;
35091 ;
35092 return 0;
35093 }
35094 _ACEOF
35095 rm -f conftest.$ac_objext conftest$ac_exeext
35096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35097 (eval $ac_link) 2>conftest.er1
35098 ac_status=$?
35099 grep -v '^ *+' conftest.er1 >conftest.err
35100 rm -f conftest.er1
35101 cat conftest.err >&5
35102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35103 (exit $ac_status); } &&
35104 { ac_try='test -z "$ac_c_werror_flag"
35105 || test ! -s conftest.err'
35106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35107 (eval $ac_try) 2>&5
35108 ac_status=$?
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); }; } &&
35111 { ac_try='test -s conftest$ac_exeext'
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; }; then
35117 eval "$as_ac_var=yes"
35118 else
35119 echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35121
35122 eval "$as_ac_var=no"
35123 fi
35124 rm -f conftest.err conftest.$ac_objext \
35125 conftest$ac_exeext conftest.$ac_ext
35126 fi
35127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35129 if test `eval echo '${'$as_ac_var'}'` = yes; then
35130 cat >>confdefs.h <<_ACEOF
35131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35132 _ACEOF
35133 break
35134 fi
35135 done
35136
35137
35138 if test "$ac_cv_func_gettimeofday" = "yes"; then
35139 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35140 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35141 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35142 echo $ECHO_N "(cached) $ECHO_C" >&6
35143 else
35144
35145
35146
35147 ac_ext=cc
35148 ac_cpp='$CXXCPP $CPPFLAGS'
35149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35152
35153
35154 cat >conftest.$ac_ext <<_ACEOF
35155 /* confdefs.h. */
35156 _ACEOF
35157 cat confdefs.h >>conftest.$ac_ext
35158 cat >>conftest.$ac_ext <<_ACEOF
35159 /* end confdefs.h. */
35160
35161 #include <sys/time.h>
35162 #include <unistd.h>
35163
35164 int
35165 main ()
35166 {
35167
35168 struct timeval tv;
35169 gettimeofday(&tv, NULL);
35170
35171 ;
35172 return 0;
35173 }
35174 _ACEOF
35175 rm -f conftest.$ac_objext
35176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35177 (eval $ac_compile) 2>conftest.er1
35178 ac_status=$?
35179 grep -v '^ *+' conftest.er1 >conftest.err
35180 rm -f conftest.er1
35181 cat conftest.err >&5
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); } &&
35184 { ac_try='test -z "$ac_cxx_werror_flag"
35185 || test ! -s conftest.err'
35186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35187 (eval $ac_try) 2>&5
35188 ac_status=$?
35189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35190 (exit $ac_status); }; } &&
35191 { ac_try='test -s conftest.$ac_objext'
35192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35193 (eval $ac_try) 2>&5
35194 ac_status=$?
35195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35196 (exit $ac_status); }; }; then
35197 wx_cv_func_gettimeofday_has_2_args=yes
35198 else
35199 echo "$as_me: failed program was:" >&5
35200 sed 's/^/| /' conftest.$ac_ext >&5
35201
35202 cat >conftest.$ac_ext <<_ACEOF
35203 /* confdefs.h. */
35204 _ACEOF
35205 cat confdefs.h >>conftest.$ac_ext
35206 cat >>conftest.$ac_ext <<_ACEOF
35207 /* end confdefs.h. */
35208
35209 #include <sys/time.h>
35210 #include <unistd.h>
35211
35212 int
35213 main ()
35214 {
35215
35216 struct timeval tv;
35217 gettimeofday(&tv);
35218
35219 ;
35220 return 0;
35221 }
35222 _ACEOF
35223 rm -f conftest.$ac_objext
35224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35225 (eval $ac_compile) 2>conftest.er1
35226 ac_status=$?
35227 grep -v '^ *+' conftest.er1 >conftest.err
35228 rm -f conftest.er1
35229 cat conftest.err >&5
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } &&
35232 { ac_try='test -z "$ac_cxx_werror_flag"
35233 || test ! -s conftest.err'
35234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235 (eval $ac_try) 2>&5
35236 ac_status=$?
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest.$ac_objext'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35242 ac_status=$?
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; }; then
35245 wx_cv_func_gettimeofday_has_2_args=no
35246 else
35247 echo "$as_me: failed program was:" >&5
35248 sed 's/^/| /' conftest.$ac_ext >&5
35249
35250
35251 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35252 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35253 wx_cv_func_gettimeofday_has_2_args=unknown
35254
35255
35256 fi
35257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35258
35259 fi
35260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35261 ac_ext=c
35262 ac_cpp='$CPP $CPPFLAGS'
35263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35266
35267
35268 fi
35269 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35270 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35271
35272 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35273 cat >>confdefs.h <<\_ACEOF
35274 #define WX_GETTIMEOFDAY_NO_TZ 1
35275 _ACEOF
35276
35277 fi
35278 fi
35279
35280 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35281 fi
35282
35283
35284 if test "$wxUSE_SOCKETS" = "yes"; then
35285 if test "$wxUSE_MGL" = "1"; then
35286 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35287 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35288 wxUSE_SOCKETS="no"
35289 fi
35290 fi
35291
35292 if test "$wxUSE_SOCKETS" = "yes"; then
35293 if test "$TOOLKIT" != "MSW"; then
35294 echo "$as_me:$LINENO: checking for socket" >&5
35295 echo $ECHO_N "checking for socket... $ECHO_C" >&6
35296 if test "${ac_cv_func_socket+set}" = set; then
35297 echo $ECHO_N "(cached) $ECHO_C" >&6
35298 else
35299 cat >conftest.$ac_ext <<_ACEOF
35300 /* confdefs.h. */
35301 _ACEOF
35302 cat confdefs.h >>conftest.$ac_ext
35303 cat >>conftest.$ac_ext <<_ACEOF
35304 /* end confdefs.h. */
35305 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
35306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35307 #define socket innocuous_socket
35308
35309 /* System header to define __stub macros and hopefully few prototypes,
35310 which can conflict with char socket (); below.
35311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35312 <limits.h> exists even on freestanding compilers. */
35313
35314 #ifdef __STDC__
35315 # include <limits.h>
35316 #else
35317 # include <assert.h>
35318 #endif
35319
35320 #undef socket
35321
35322 /* Override any gcc2 internal prototype to avoid an error. */
35323 #ifdef __cplusplus
35324 extern "C"
35325 {
35326 #endif
35327 /* We use char because int might match the return type of a gcc2
35328 builtin and then its argument prototype would still apply. */
35329 char socket ();
35330 /* The GNU C library defines this for functions which it implements
35331 to always fail with ENOSYS. Some functions are actually named
35332 something starting with __ and the normal name is an alias. */
35333 #if defined (__stub_socket) || defined (__stub___socket)
35334 choke me
35335 #else
35336 char (*f) () = socket;
35337 #endif
35338 #ifdef __cplusplus
35339 }
35340 #endif
35341
35342 int
35343 main ()
35344 {
35345 return f != socket;
35346 ;
35347 return 0;
35348 }
35349 _ACEOF
35350 rm -f conftest.$ac_objext conftest$ac_exeext
35351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35352 (eval $ac_link) 2>conftest.er1
35353 ac_status=$?
35354 grep -v '^ *+' conftest.er1 >conftest.err
35355 rm -f conftest.er1
35356 cat conftest.err >&5
35357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); } &&
35359 { ac_try='test -z "$ac_c_werror_flag"
35360 || test ! -s conftest.err'
35361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35362 (eval $ac_try) 2>&5
35363 ac_status=$?
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); }; } &&
35366 { ac_try='test -s conftest$ac_exeext'
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35369 ac_status=$?
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; }; then
35372 ac_cv_func_socket=yes
35373 else
35374 echo "$as_me: failed program was:" >&5
35375 sed 's/^/| /' conftest.$ac_ext >&5
35376
35377 ac_cv_func_socket=no
35378 fi
35379 rm -f conftest.err conftest.$ac_objext \
35380 conftest$ac_exeext conftest.$ac_ext
35381 fi
35382 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35383 echo "${ECHO_T}$ac_cv_func_socket" >&6
35384 if test $ac_cv_func_socket = yes; then
35385 :
35386 else
35387
35388 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35389 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35390 if test "${ac_cv_lib_socket_socket+set}" = set; then
35391 echo $ECHO_N "(cached) $ECHO_C" >&6
35392 else
35393 ac_check_lib_save_LIBS=$LIBS
35394 LIBS="-lsocket $LIBS"
35395 cat >conftest.$ac_ext <<_ACEOF
35396 /* confdefs.h. */
35397 _ACEOF
35398 cat confdefs.h >>conftest.$ac_ext
35399 cat >>conftest.$ac_ext <<_ACEOF
35400 /* end confdefs.h. */
35401
35402 /* Override any gcc2 internal prototype to avoid an error. */
35403 #ifdef __cplusplus
35404 extern "C"
35405 #endif
35406 /* We use char because int might match the return type of a gcc2
35407 builtin and then its argument prototype would still apply. */
35408 char socket ();
35409 int
35410 main ()
35411 {
35412 socket ();
35413 ;
35414 return 0;
35415 }
35416 _ACEOF
35417 rm -f conftest.$ac_objext conftest$ac_exeext
35418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35419 (eval $ac_link) 2>conftest.er1
35420 ac_status=$?
35421 grep -v '^ *+' conftest.er1 >conftest.err
35422 rm -f conftest.er1
35423 cat conftest.err >&5
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } &&
35426 { ac_try='test -z "$ac_c_werror_flag"
35427 || test ! -s conftest.err'
35428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35429 (eval $ac_try) 2>&5
35430 ac_status=$?
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); }; } &&
35433 { ac_try='test -s conftest$ac_exeext'
35434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435 (eval $ac_try) 2>&5
35436 ac_status=$?
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); }; }; then
35439 ac_cv_lib_socket_socket=yes
35440 else
35441 echo "$as_me: failed program was:" >&5
35442 sed 's/^/| /' conftest.$ac_ext >&5
35443
35444 ac_cv_lib_socket_socket=no
35445 fi
35446 rm -f conftest.err conftest.$ac_objext \
35447 conftest$ac_exeext conftest.$ac_ext
35448 LIBS=$ac_check_lib_save_LIBS
35449 fi
35450 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35451 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35452 if test $ac_cv_lib_socket_socket = yes; then
35453 if test "$INET_LINK" != " -lsocket"; then
35454 INET_LINK="$INET_LINK -lsocket"
35455 fi
35456 else
35457
35458 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35459 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35460 wxUSE_SOCKETS=no
35461
35462
35463 fi
35464
35465
35466
35467 fi
35468
35469 fi
35470 fi
35471
35472 if test "$wxUSE_SOCKETS" = "yes" ; then
35473 if test "$TOOLKIT" != "MSW"; then
35474 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35475 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35476 if test "${wx_cv_type_getsockname3+set}" = set; then
35477 echo $ECHO_N "(cached) $ECHO_C" >&6
35478 else
35479
35480 cat >conftest.$ac_ext <<_ACEOF
35481 /* confdefs.h. */
35482 _ACEOF
35483 cat confdefs.h >>conftest.$ac_ext
35484 cat >>conftest.$ac_ext <<_ACEOF
35485 /* end confdefs.h. */
35486
35487 #include <sys/types.h>
35488 #include <sys/socket.h>
35489
35490 int
35491 main ()
35492 {
35493
35494 socklen_t len;
35495 getsockname(0, 0, &len);
35496
35497 ;
35498 return 0;
35499 }
35500 _ACEOF
35501 rm -f conftest.$ac_objext
35502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35503 (eval $ac_compile) 2>conftest.er1
35504 ac_status=$?
35505 grep -v '^ *+' conftest.er1 >conftest.err
35506 rm -f conftest.er1
35507 cat conftest.err >&5
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); } &&
35510 { ac_try='test -z "$ac_c_werror_flag"
35511 || test ! -s conftest.err'
35512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35513 (eval $ac_try) 2>&5
35514 ac_status=$?
35515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35516 (exit $ac_status); }; } &&
35517 { ac_try='test -s conftest.$ac_objext'
35518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35519 (eval $ac_try) 2>&5
35520 ac_status=$?
35521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522 (exit $ac_status); }; }; then
35523 wx_cv_type_getsockname3=socklen_t
35524 else
35525 echo "$as_me: failed program was:" >&5
35526 sed 's/^/| /' conftest.$ac_ext >&5
35527
35528
35529 CFLAGS_OLD="$CFLAGS"
35530 if test "$GCC" = yes ; then
35531 CFLAGS="$CFLAGS -Werror"
35532 fi
35533
35534 cat >conftest.$ac_ext <<_ACEOF
35535 /* confdefs.h. */
35536 _ACEOF
35537 cat confdefs.h >>conftest.$ac_ext
35538 cat >>conftest.$ac_ext <<_ACEOF
35539 /* end confdefs.h. */
35540
35541 #include <sys/types.h>
35542 #include <sys/socket.h>
35543
35544 int
35545 main ()
35546 {
35547
35548 size_t len;
35549 getsockname(0, 0, &len);
35550
35551 ;
35552 return 0;
35553 }
35554 _ACEOF
35555 rm -f conftest.$ac_objext
35556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35557 (eval $ac_compile) 2>conftest.er1
35558 ac_status=$?
35559 grep -v '^ *+' conftest.er1 >conftest.err
35560 rm -f conftest.er1
35561 cat conftest.err >&5
35562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35563 (exit $ac_status); } &&
35564 { ac_try='test -z "$ac_c_werror_flag"
35565 || test ! -s conftest.err'
35566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567 (eval $ac_try) 2>&5
35568 ac_status=$?
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); }; } &&
35571 { ac_try='test -s conftest.$ac_objext'
35572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35573 (eval $ac_try) 2>&5
35574 ac_status=$?
35575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576 (exit $ac_status); }; }; then
35577 wx_cv_type_getsockname3=size_t
35578 else
35579 echo "$as_me: failed program was:" >&5
35580 sed 's/^/| /' conftest.$ac_ext >&5
35581
35582 cat >conftest.$ac_ext <<_ACEOF
35583 /* confdefs.h. */
35584 _ACEOF
35585 cat confdefs.h >>conftest.$ac_ext
35586 cat >>conftest.$ac_ext <<_ACEOF
35587 /* end confdefs.h. */
35588
35589 #include <sys/types.h>
35590 #include <sys/socket.h>
35591
35592 int
35593 main ()
35594 {
35595
35596 int len;
35597 getsockname(0, 0, &len);
35598
35599 ;
35600 return 0;
35601 }
35602 _ACEOF
35603 rm -f conftest.$ac_objext
35604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35605 (eval $ac_compile) 2>conftest.er1
35606 ac_status=$?
35607 grep -v '^ *+' conftest.er1 >conftest.err
35608 rm -f conftest.er1
35609 cat conftest.err >&5
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); } &&
35612 { ac_try='test -z "$ac_c_werror_flag"
35613 || test ! -s conftest.err'
35614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35615 (eval $ac_try) 2>&5
35616 ac_status=$?
35617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35618 (exit $ac_status); }; } &&
35619 { ac_try='test -s conftest.$ac_objext'
35620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35621 (eval $ac_try) 2>&5
35622 ac_status=$?
35623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35624 (exit $ac_status); }; }; then
35625 wx_cv_type_getsockname3=int
35626 else
35627 echo "$as_me: failed program was:" >&5
35628 sed 's/^/| /' conftest.$ac_ext >&5
35629
35630 wx_cv_type_getsockname3=unknown
35631
35632 fi
35633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35634
35635 fi
35636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35637
35638 CFLAGS="$CFLAGS_OLD"
35639
35640
35641 fi
35642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35643
35644 fi
35645 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35646 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35647
35648 if test "$wx_cv_type_getsockname3" = "unknown"; then
35649 wxUSE_SOCKETS=no
35650 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35651 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35652 else
35653 cat >>confdefs.h <<_ACEOF
35654 #define SOCKLEN_T $wx_cv_type_getsockname3
35655 _ACEOF
35656
35657 fi
35658 fi
35659 fi
35660
35661 if test "$wxUSE_SOCKETS" = "yes" ; then
35662 cat >>confdefs.h <<\_ACEOF
35663 #define wxUSE_SOCKETS 1
35664 _ACEOF
35665
35666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35667 fi
35668
35669 if test "$wxUSE_PROTOCOL" = "yes"; then
35670 if test "$wxUSE_SOCKETS" != "yes"; then
35671 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35672 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35673 wxUSE_PROTOCOL=no
35674 fi
35675 fi
35676
35677 if test "$wxUSE_PROTOCOL" = "yes"; then
35678 cat >>confdefs.h <<\_ACEOF
35679 #define wxUSE_PROTOCOL 1
35680 _ACEOF
35681
35682
35683 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35684 cat >>confdefs.h <<\_ACEOF
35685 #define wxUSE_PROTOCOL_HTTP 1
35686 _ACEOF
35687
35688 fi
35689 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35690 cat >>confdefs.h <<\_ACEOF
35691 #define wxUSE_PROTOCOL_FTP 1
35692 _ACEOF
35693
35694 fi
35695 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35696 cat >>confdefs.h <<\_ACEOF
35697 #define wxUSE_PROTOCOL_FILE 1
35698 _ACEOF
35699
35700 fi
35701 else
35702 if test "$wxUSE_FS_INET" = "yes"; then
35703 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35704 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35705 wxUSE_FS_INET="no"
35706 fi
35707 fi
35708
35709 if test "$wxUSE_URL" = "yes"; then
35710 if test "$wxUSE_PROTOCOL" != "yes"; then
35711 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35712 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35713 wxUSE_URL=no
35714 fi
35715 if test "$wxUSE_URL" = "yes"; then
35716 cat >>confdefs.h <<\_ACEOF
35717 #define wxUSE_URL 1
35718 _ACEOF
35719
35720 fi
35721 fi
35722
35723 if test "$wxUSE_FS_INET" = "yes"; then
35724 cat >>confdefs.h <<\_ACEOF
35725 #define wxUSE_FS_INET 1
35726 _ACEOF
35727
35728 fi
35729
35730
35731 if test "$wxUSE_GUI" = "yes"; then
35732
35733 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35734 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35735 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35736 wxUSE_JOYSTICK=no
35737 fi
35738
35739 if test "$TOOLKIT" != "MSW"; then
35740 if test "$wxUSE_JOYSTICK" = "yes"; then
35741
35742 for ac_header in linux/joystick.h
35743 do
35744 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35746 echo "$as_me:$LINENO: checking for $ac_header" >&5
35747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35749 echo $ECHO_N "(cached) $ECHO_C" >&6
35750 fi
35751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35753 else
35754 # Is the header compilable?
35755 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35757 cat >conftest.$ac_ext <<_ACEOF
35758 /* confdefs.h. */
35759 _ACEOF
35760 cat confdefs.h >>conftest.$ac_ext
35761 cat >>conftest.$ac_ext <<_ACEOF
35762 /* end confdefs.h. */
35763 $ac_includes_default
35764 #include <$ac_header>
35765 _ACEOF
35766 rm -f conftest.$ac_objext
35767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35768 (eval $ac_compile) 2>conftest.er1
35769 ac_status=$?
35770 grep -v '^ *+' conftest.er1 >conftest.err
35771 rm -f conftest.er1
35772 cat conftest.err >&5
35773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35774 (exit $ac_status); } &&
35775 { ac_try='test -z "$ac_c_werror_flag"
35776 || test ! -s conftest.err'
35777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35778 (eval $ac_try) 2>&5
35779 ac_status=$?
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); }; } &&
35782 { ac_try='test -s conftest.$ac_objext'
35783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35784 (eval $ac_try) 2>&5
35785 ac_status=$?
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; }; then
35788 ac_header_compiler=yes
35789 else
35790 echo "$as_me: failed program was:" >&5
35791 sed 's/^/| /' conftest.$ac_ext >&5
35792
35793 ac_header_compiler=no
35794 fi
35795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35797 echo "${ECHO_T}$ac_header_compiler" >&6
35798
35799 # Is the header present?
35800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35802 cat >conftest.$ac_ext <<_ACEOF
35803 /* confdefs.h. */
35804 _ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h. */
35808 #include <$ac_header>
35809 _ACEOF
35810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35812 ac_status=$?
35813 grep -v '^ *+' conftest.er1 >conftest.err
35814 rm -f conftest.er1
35815 cat conftest.err >&5
35816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35817 (exit $ac_status); } >/dev/null; then
35818 if test -s conftest.err; then
35819 ac_cpp_err=$ac_c_preproc_warn_flag
35820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35821 else
35822 ac_cpp_err=
35823 fi
35824 else
35825 ac_cpp_err=yes
35826 fi
35827 if test -z "$ac_cpp_err"; then
35828 ac_header_preproc=yes
35829 else
35830 echo "$as_me: failed program was:" >&5
35831 sed 's/^/| /' conftest.$ac_ext >&5
35832
35833 ac_header_preproc=no
35834 fi
35835 rm -f conftest.err conftest.$ac_ext
35836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35837 echo "${ECHO_T}$ac_header_preproc" >&6
35838
35839 # So? What about this header?
35840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35841 yes:no: )
35842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35846 ac_header_preproc=yes
35847 ;;
35848 no:yes:* )
35849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35861 (
35862 cat <<\_ASBOX
35863 ## ----------------------------------------- ##
35864 ## Report this to wx-dev@lists.wxwidgets.org ##
35865 ## ----------------------------------------- ##
35866 _ASBOX
35867 ) |
35868 sed "s/^/$as_me: WARNING: /" >&2
35869 ;;
35870 esac
35871 echo "$as_me:$LINENO: checking for $ac_header" >&5
35872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35874 echo $ECHO_N "(cached) $ECHO_C" >&6
35875 else
35876 eval "$as_ac_Header=\$ac_header_preproc"
35877 fi
35878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35880
35881 fi
35882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35883 cat >>confdefs.h <<_ACEOF
35884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35885 _ACEOF
35886
35887 fi
35888
35889 done
35890
35891 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35892 wxUSE_JOYSTICK=no
35893 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35894 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35895 fi
35896 fi
35897 fi
35898
35899 if test "$wxUSE_JOYSTICK" = "yes"; then
35900 cat >>confdefs.h <<\_ACEOF
35901 #define wxUSE_JOYSTICK 1
35902 _ACEOF
35903
35904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35905 fi
35906 fi
35907
35908
35909
35910 if test "$wxUSE_FONTMAP" = "yes" ; then
35911 cat >>confdefs.h <<\_ACEOF
35912 #define wxUSE_FONTMAP 1
35913 _ACEOF
35914
35915 fi
35916
35917 if test "$wxUSE_UNICODE" = "yes" ; then
35918 cat >>confdefs.h <<\_ACEOF
35919 #define wxUSE_UNICODE 1
35920 _ACEOF
35921
35922
35923 if test "$USE_WIN32" != 1; then
35924 wxUSE_UNICODE_MSLU=no
35925 fi
35926
35927 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35928 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35929 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35930 if test "${ac_cv_lib_unicows_main+set}" = set; then
35931 echo $ECHO_N "(cached) $ECHO_C" >&6
35932 else
35933 ac_check_lib_save_LIBS=$LIBS
35934 LIBS="-lunicows $LIBS"
35935 cat >conftest.$ac_ext <<_ACEOF
35936 /* confdefs.h. */
35937 _ACEOF
35938 cat confdefs.h >>conftest.$ac_ext
35939 cat >>conftest.$ac_ext <<_ACEOF
35940 /* end confdefs.h. */
35941
35942
35943 int
35944 main ()
35945 {
35946 main ();
35947 ;
35948 return 0;
35949 }
35950 _ACEOF
35951 rm -f conftest.$ac_objext conftest$ac_exeext
35952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35953 (eval $ac_link) 2>conftest.er1
35954 ac_status=$?
35955 grep -v '^ *+' conftest.er1 >conftest.err
35956 rm -f conftest.er1
35957 cat conftest.err >&5
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); } &&
35960 { ac_try='test -z "$ac_c_werror_flag"
35961 || test ! -s conftest.err'
35962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35963 (eval $ac_try) 2>&5
35964 ac_status=$?
35965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35966 (exit $ac_status); }; } &&
35967 { ac_try='test -s conftest$ac_exeext'
35968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35969 (eval $ac_try) 2>&5
35970 ac_status=$?
35971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35972 (exit $ac_status); }; }; then
35973 ac_cv_lib_unicows_main=yes
35974 else
35975 echo "$as_me: failed program was:" >&5
35976 sed 's/^/| /' conftest.$ac_ext >&5
35977
35978 ac_cv_lib_unicows_main=no
35979 fi
35980 rm -f conftest.err conftest.$ac_objext \
35981 conftest$ac_exeext conftest.$ac_ext
35982 LIBS=$ac_check_lib_save_LIBS
35983 fi
35984 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35985 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35986 if test $ac_cv_lib_unicows_main = yes; then
35987
35988 cat >>confdefs.h <<\_ACEOF
35989 #define wxUSE_UNICODE_MSLU 1
35990 _ACEOF
35991
35992
35993 else
35994
35995 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35996 Applications will only run on Windows NT/2000/XP!" >&5
35997 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35998 Applications will only run on Windows NT/2000/XP!" >&2;}
35999 wxUSE_UNICODE_MSLU=no
36000
36001 fi
36002
36003 fi
36004 fi
36005
36006 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36007 cat >>confdefs.h <<\_ACEOF
36008 #define wxUSE_EXPERIMENTAL_PRINTF 1
36009 _ACEOF
36010
36011 fi
36012
36013
36014 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36015 cat >>confdefs.h <<\_ACEOF
36016 #define wxUSE_POSTSCRIPT 1
36017 _ACEOF
36018
36019 fi
36020
36021 cat >>confdefs.h <<\_ACEOF
36022 #define wxUSE_AFM_FOR_POSTSCRIPT 1
36023 _ACEOF
36024
36025
36026 cat >>confdefs.h <<\_ACEOF
36027 #define wxUSE_NORMALIZED_PS_FONTS 1
36028 _ACEOF
36029
36030
36031
36032 if test "$wxUSE_CONSTRAINTS" = "yes"; then
36033 cat >>confdefs.h <<\_ACEOF
36034 #define wxUSE_CONSTRAINTS 1
36035 _ACEOF
36036
36037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36038 fi
36039
36040 if test "$wxUSE_MDI" = "yes"; then
36041 cat >>confdefs.h <<\_ACEOF
36042 #define wxUSE_MDI 1
36043 _ACEOF
36044
36045
36046 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36047 cat >>confdefs.h <<\_ACEOF
36048 #define wxUSE_MDI_ARCHITECTURE 1
36049 _ACEOF
36050
36051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36052 fi
36053 fi
36054
36055 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36056 cat >>confdefs.h <<\_ACEOF
36057 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
36058 _ACEOF
36059
36060 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36061 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36063 fi
36064 fi
36065
36066 if test "$wxUSE_HELP" = "yes"; then
36067 cat >>confdefs.h <<\_ACEOF
36068 #define wxUSE_HELP 1
36069 _ACEOF
36070
36071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36072
36073 if test "$wxUSE_MSW" = 1; then
36074 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36075 cat >>confdefs.h <<\_ACEOF
36076 #define wxUSE_MS_HTML_HELP 1
36077 _ACEOF
36078
36079 fi
36080 fi
36081
36082 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36083 if test "$wxUSE_HTML" = "yes"; then
36084 cat >>confdefs.h <<\_ACEOF
36085 #define wxUSE_WXHTML_HELP 1
36086 _ACEOF
36087
36088 else
36089 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36090 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36091 wxUSE_WXHTML_HELP=no
36092 fi
36093 fi
36094 fi
36095
36096 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36097 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36098 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36099 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36100 else
36101 cat >>confdefs.h <<\_ACEOF
36102 #define wxUSE_PRINTING_ARCHITECTURE 1
36103 _ACEOF
36104
36105 fi
36106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36107 fi
36108
36109 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36110 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36111 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36112 { (exit 1); exit 1; }; }
36113 fi
36114
36115
36116 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36117 -o "$wxUSE_CLIPBOARD" = "yes" \
36118 -o "$wxUSE_OLE" = "yes" \
36119 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36120
36121 for ac_header in ole2.h
36122 do
36123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36125 echo "$as_me:$LINENO: checking for $ac_header" >&5
36126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36128 echo $ECHO_N "(cached) $ECHO_C" >&6
36129 fi
36130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36132 else
36133 # Is the header compilable?
36134 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36136 cat >conftest.$ac_ext <<_ACEOF
36137 /* confdefs.h. */
36138 _ACEOF
36139 cat confdefs.h >>conftest.$ac_ext
36140 cat >>conftest.$ac_ext <<_ACEOF
36141 /* end confdefs.h. */
36142 $ac_includes_default
36143 #include <$ac_header>
36144 _ACEOF
36145 rm -f conftest.$ac_objext
36146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36147 (eval $ac_compile) 2>conftest.er1
36148 ac_status=$?
36149 grep -v '^ *+' conftest.er1 >conftest.err
36150 rm -f conftest.er1
36151 cat conftest.err >&5
36152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36153 (exit $ac_status); } &&
36154 { ac_try='test -z "$ac_c_werror_flag"
36155 || test ! -s conftest.err'
36156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36157 (eval $ac_try) 2>&5
36158 ac_status=$?
36159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36160 (exit $ac_status); }; } &&
36161 { ac_try='test -s conftest.$ac_objext'
36162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36163 (eval $ac_try) 2>&5
36164 ac_status=$?
36165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36166 (exit $ac_status); }; }; then
36167 ac_header_compiler=yes
36168 else
36169 echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.$ac_ext >&5
36171
36172 ac_header_compiler=no
36173 fi
36174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36176 echo "${ECHO_T}$ac_header_compiler" >&6
36177
36178 # Is the header present?
36179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36181 cat >conftest.$ac_ext <<_ACEOF
36182 /* confdefs.h. */
36183 _ACEOF
36184 cat confdefs.h >>conftest.$ac_ext
36185 cat >>conftest.$ac_ext <<_ACEOF
36186 /* end confdefs.h. */
36187 #include <$ac_header>
36188 _ACEOF
36189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36191 ac_status=$?
36192 grep -v '^ *+' conftest.er1 >conftest.err
36193 rm -f conftest.er1
36194 cat conftest.err >&5
36195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36196 (exit $ac_status); } >/dev/null; then
36197 if test -s conftest.err; then
36198 ac_cpp_err=$ac_c_preproc_warn_flag
36199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36200 else
36201 ac_cpp_err=
36202 fi
36203 else
36204 ac_cpp_err=yes
36205 fi
36206 if test -z "$ac_cpp_err"; then
36207 ac_header_preproc=yes
36208 else
36209 echo "$as_me: failed program was:" >&5
36210 sed 's/^/| /' conftest.$ac_ext >&5
36211
36212 ac_header_preproc=no
36213 fi
36214 rm -f conftest.err conftest.$ac_ext
36215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36216 echo "${ECHO_T}$ac_header_preproc" >&6
36217
36218 # So? What about this header?
36219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36220 yes:no: )
36221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36225 ac_header_preproc=yes
36226 ;;
36227 no:yes:* )
36228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36229 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36231 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36233 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36235 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36239 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36240 (
36241 cat <<\_ASBOX
36242 ## ----------------------------------------- ##
36243 ## Report this to wx-dev@lists.wxwidgets.org ##
36244 ## ----------------------------------------- ##
36245 _ASBOX
36246 ) |
36247 sed "s/^/$as_me: WARNING: /" >&2
36248 ;;
36249 esac
36250 echo "$as_me:$LINENO: checking for $ac_header" >&5
36251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36252 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36253 echo $ECHO_N "(cached) $ECHO_C" >&6
36254 else
36255 eval "$as_ac_Header=\$ac_header_preproc"
36256 fi
36257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36259
36260 fi
36261 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36262 cat >>confdefs.h <<_ACEOF
36263 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36264 _ACEOF
36265
36266 fi
36267
36268 done
36269
36270
36271 if test "$ac_cv_header_ole2_h" = "yes" ; then
36272 if test "$GCC" = yes ; then
36273
36274
36275 ac_ext=cc
36276 ac_cpp='$CXXCPP $CPPFLAGS'
36277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36280
36281
36282 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36283 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36284 cat >conftest.$ac_ext <<_ACEOF
36285 /* confdefs.h. */
36286 _ACEOF
36287 cat confdefs.h >>conftest.$ac_ext
36288 cat >>conftest.$ac_ext <<_ACEOF
36289 /* end confdefs.h. */
36290 #include <windows.h>
36291 #include <ole2.h>
36292 int
36293 main ()
36294 {
36295
36296 ;
36297 return 0;
36298 }
36299 _ACEOF
36300 rm -f conftest.$ac_objext
36301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36302 (eval $ac_compile) 2>conftest.er1
36303 ac_status=$?
36304 grep -v '^ *+' conftest.er1 >conftest.err
36305 rm -f conftest.er1
36306 cat conftest.err >&5
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); } &&
36309 { ac_try='test -z "$ac_cxx_werror_flag"
36310 || test ! -s conftest.err'
36311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36312 (eval $ac_try) 2>&5
36313 ac_status=$?
36314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315 (exit $ac_status); }; } &&
36316 { ac_try='test -s conftest.$ac_objext'
36317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36318 (eval $ac_try) 2>&5
36319 ac_status=$?
36320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36321 (exit $ac_status); }; }; then
36322 echo "$as_me:$LINENO: result: no" >&5
36323 echo "${ECHO_T}no" >&6
36324 else
36325 echo "$as_me: failed program was:" >&5
36326 sed 's/^/| /' conftest.$ac_ext >&5
36327
36328 echo "$as_me:$LINENO: result: yes" >&5
36329 echo "${ECHO_T}yes" >&6
36330 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36331 fi
36332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36333 ac_ext=c
36334 ac_cpp='$CPP $CPPFLAGS'
36335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36338
36339 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36340 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36341 if test "$wxUSE_OLE" = "yes" ; then
36342 cat >>confdefs.h <<\_ACEOF
36343 #define wxUSE_OLE 1
36344 _ACEOF
36345
36346 fi
36347 fi
36348
36349 if test "$wxUSE_DATAOBJ" = "yes" ; then
36350 cat >>confdefs.h <<\_ACEOF
36351 #define wxUSE_DATAOBJ 1
36352 _ACEOF
36353
36354 fi
36355 else
36356 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36357 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36358
36359 wxUSE_CLIPBOARD=no
36360 wxUSE_DRAG_AND_DROP=no
36361 wxUSE_DATAOBJ=no
36362 wxUSE_OLE=no
36363 fi
36364
36365 if test "$wxUSE_METAFILE" = "yes"; then
36366 cat >>confdefs.h <<\_ACEOF
36367 #define wxUSE_METAFILE 1
36368 _ACEOF
36369
36370
36371 cat >>confdefs.h <<\_ACEOF
36372 #define wxUSE_ENH_METAFILE 1
36373 _ACEOF
36374
36375 fi
36376 fi
36377
36378 if test "$wxUSE_IPC" = "yes"; then
36379 if test "$wxUSE_SOCKETS" != "yes"; then
36380 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36381 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
36382 fi
36383
36384 cat >>confdefs.h <<\_ACEOF
36385 #define wxUSE_IPC 1
36386 _ACEOF
36387
36388 fi
36389
36390 if test "$wxUSE_CLIPBOARD" = "yes"; then
36391 if test "$wxUSE_MGL" = 1; then
36392 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36393 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36394 wxUSE_CLIPBOARD=no
36395 fi
36396
36397 if test "$wxUSE_CLIPBOARD" = "yes"; then
36398 cat >>confdefs.h <<\_ACEOF
36399 #define wxUSE_CLIPBOARD 1
36400 _ACEOF
36401
36402
36403 cat >>confdefs.h <<\_ACEOF
36404 #define wxUSE_DATAOBJ 1
36405 _ACEOF
36406
36407 fi
36408 fi
36409
36410 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36411 if test "$wxUSE_GTK" = 1; then
36412 if test "$WXGTK12" != 1; then
36413 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36414 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36415 wxUSE_DRAG_AND_DROP=no
36416 fi
36417 fi
36418
36419 if test "$wxUSE_MOTIF" = 1; then
36420 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36421 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36422 wxUSE_DRAG_AND_DROP=no
36423 fi
36424
36425 if test "$wxUSE_X11" = 1; then
36426 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36427 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36428 wxUSE_DRAG_AND_DROP=no
36429 fi
36430
36431 if test "$wxUSE_MGL" = 1; then
36432 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36433 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36434 wxUSE_DRAG_AND_DROP=no
36435 fi
36436
36437 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36438 cat >>confdefs.h <<\_ACEOF
36439 #define wxUSE_DRAG_AND_DROP 1
36440 _ACEOF
36441
36442 fi
36443
36444 fi
36445
36446 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36448 fi
36449
36450 if test "$wxUSE_SPLINES" = "yes" ; then
36451 cat >>confdefs.h <<\_ACEOF
36452 #define wxUSE_SPLINES 1
36453 _ACEOF
36454
36455 fi
36456
36457
36458 USES_CONTROLS=0
36459 if test "$wxUSE_CONTROLS" = "yes"; then
36460 USES_CONTROLS=1
36461 fi
36462
36463 if test "$wxUSE_ACCEL" = "yes"; then
36464 cat >>confdefs.h <<\_ACEOF
36465 #define wxUSE_ACCEL 1
36466 _ACEOF
36467
36468 USES_CONTROLS=1
36469 fi
36470
36471 if test "$wxUSE_BUTTON" = "yes"; then
36472 cat >>confdefs.h <<\_ACEOF
36473 #define wxUSE_BUTTON 1
36474 _ACEOF
36475
36476 USES_CONTROLS=1
36477 fi
36478
36479 if test "$wxUSE_BMPBUTTON" = "yes"; then
36480 cat >>confdefs.h <<\_ACEOF
36481 #define wxUSE_BMPBUTTON 1
36482 _ACEOF
36483
36484 USES_CONTROLS=1
36485 fi
36486
36487 if test "$wxUSE_CALCTRL" = "yes"; then
36488 cat >>confdefs.h <<\_ACEOF
36489 #define wxUSE_CALENDARCTRL 1
36490 _ACEOF
36491
36492 USES_CONTROLS=1
36493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36494 fi
36495
36496 if test "$wxUSE_CARET" = "yes"; then
36497 cat >>confdefs.h <<\_ACEOF
36498 #define wxUSE_CARET 1
36499 _ACEOF
36500
36501 USES_CONTROLS=1
36502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36503 fi
36504
36505 if test "$wxUSE_COMBOBOX" = "yes"; then
36506 cat >>confdefs.h <<\_ACEOF
36507 #define wxUSE_COMBOBOX 1
36508 _ACEOF
36509
36510 USES_CONTROLS=1
36511 fi
36512
36513 if test "$wxUSE_CHOICE" = "yes"; then
36514 cat >>confdefs.h <<\_ACEOF
36515 #define wxUSE_CHOICE 1
36516 _ACEOF
36517
36518 USES_CONTROLS=1
36519 fi
36520
36521 if test "$wxUSE_CHECKBOX" = "yes"; then
36522 cat >>confdefs.h <<\_ACEOF
36523 #define wxUSE_CHECKBOX 1
36524 _ACEOF
36525
36526 USES_CONTROLS=1
36527 fi
36528
36529 if test "$wxUSE_CHECKLST" = "yes"; then
36530 cat >>confdefs.h <<\_ACEOF
36531 #define wxUSE_CHECKLISTBOX 1
36532 _ACEOF
36533
36534 USES_CONTROLS=1
36535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36536 fi
36537
36538 if test "$wxUSE_DISPLAY" = "yes"; then
36539 cat >>confdefs.h <<\_ACEOF
36540 #define wxUSE_DISPLAY 1
36541 _ACEOF
36542
36543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36544 fi
36545
36546 if test "$wxUSE_GAUGE" = "yes"; then
36547 cat >>confdefs.h <<\_ACEOF
36548 #define wxUSE_GAUGE 1
36549 _ACEOF
36550
36551 USES_CONTROLS=1
36552 fi
36553
36554 if test "$wxUSE_GRID" = "yes"; then
36555 cat >>confdefs.h <<\_ACEOF
36556 #define wxUSE_GRID 1
36557 _ACEOF
36558
36559 USES_CONTROLS=1
36560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36561 fi
36562
36563 if test "$wxUSE_IMAGLIST" = "yes"; then
36564 cat >>confdefs.h <<\_ACEOF
36565 #define wxUSE_IMAGLIST 1
36566 _ACEOF
36567
36568 fi
36569
36570 if test "$wxUSE_LISTBOOK" = "yes"; then
36571 cat >>confdefs.h <<\_ACEOF
36572 #define wxUSE_LISTBOOK 1
36573 _ACEOF
36574
36575 USES_CONTROLS=1
36576 fi
36577
36578 if test "$wxUSE_LISTBOX" = "yes"; then
36579 cat >>confdefs.h <<\_ACEOF
36580 #define wxUSE_LISTBOX 1
36581 _ACEOF
36582
36583 USES_CONTROLS=1
36584 fi
36585
36586 if test "$wxUSE_LISTCTRL" = "yes"; then
36587 if test "$wxUSE_IMAGLIST" = "yes"; then
36588 cat >>confdefs.h <<\_ACEOF
36589 #define wxUSE_LISTCTRL 1
36590 _ACEOF
36591
36592 USES_CONTROLS=1
36593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36594 else
36595 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36596 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36597 fi
36598 fi
36599
36600 if test "$wxUSE_NOTEBOOK" = "yes"; then
36601 cat >>confdefs.h <<\_ACEOF
36602 #define wxUSE_NOTEBOOK 1
36603 _ACEOF
36604
36605 USES_CONTROLS=1
36606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36607 fi
36608
36609
36610 if test "$wxUSE_RADIOBOX" = "yes"; then
36611 cat >>confdefs.h <<\_ACEOF
36612 #define wxUSE_RADIOBOX 1
36613 _ACEOF
36614
36615 USES_CONTROLS=1
36616 fi
36617
36618 if test "$wxUSE_RADIOBTN" = "yes"; then
36619 cat >>confdefs.h <<\_ACEOF
36620 #define wxUSE_RADIOBTN 1
36621 _ACEOF
36622
36623 USES_CONTROLS=1
36624 fi
36625
36626 if test "$wxUSE_SASH" = "yes"; then
36627 cat >>confdefs.h <<\_ACEOF
36628 #define wxUSE_SASH 1
36629 _ACEOF
36630
36631 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36632 fi
36633
36634 if test "$wxUSE_SCROLLBAR" = "yes"; then
36635 cat >>confdefs.h <<\_ACEOF
36636 #define wxUSE_SCROLLBAR 1
36637 _ACEOF
36638
36639 USES_CONTROLS=1
36640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36641 fi
36642
36643 if test "$wxUSE_SLIDER" = "yes"; then
36644 cat >>confdefs.h <<\_ACEOF
36645 #define wxUSE_SLIDER 1
36646 _ACEOF
36647
36648 USES_CONTROLS=1
36649 fi
36650
36651 if test "$wxUSE_SPINBTN" = "yes"; then
36652 cat >>confdefs.h <<\_ACEOF
36653 #define wxUSE_SPINBTN 1
36654 _ACEOF
36655
36656 USES_CONTROLS=1
36657 fi
36658
36659 if test "$wxUSE_SPINCTRL" = "yes"; then
36660 cat >>confdefs.h <<\_ACEOF
36661 #define wxUSE_SPINCTRL 1
36662 _ACEOF
36663
36664 USES_CONTROLS=1
36665 fi
36666
36667 if test "$wxUSE_SPLITTER" = "yes"; then
36668 cat >>confdefs.h <<\_ACEOF
36669 #define wxUSE_SPLITTER 1
36670 _ACEOF
36671
36672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36673 fi
36674
36675 if test "$wxUSE_STATBMP" = "yes"; then
36676 cat >>confdefs.h <<\_ACEOF
36677 #define wxUSE_STATBMP 1
36678 _ACEOF
36679
36680 USES_CONTROLS=1
36681 fi
36682
36683 if test "$wxUSE_STATBOX" = "yes"; then
36684 cat >>confdefs.h <<\_ACEOF
36685 #define wxUSE_STATBOX 1
36686 _ACEOF
36687
36688 USES_CONTROLS=1
36689 fi
36690
36691 if test "$wxUSE_STATTEXT" = "yes"; then
36692 cat >>confdefs.h <<\_ACEOF
36693 #define wxUSE_STATTEXT 1
36694 _ACEOF
36695
36696 USES_CONTROLS=1
36697 fi
36698
36699 if test "$wxUSE_STATLINE" = "yes"; then
36700 cat >>confdefs.h <<\_ACEOF
36701 #define wxUSE_STATLINE 1
36702 _ACEOF
36703
36704 USES_CONTROLS=1
36705 fi
36706
36707 if test "$wxUSE_STATUSBAR" = "yes"; then
36708 cat >>confdefs.h <<\_ACEOF
36709 #define wxUSE_STATUSBAR 1
36710 _ACEOF
36711
36712 USES_CONTROLS=1
36713
36714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36715 fi
36716
36717 if test "$wxUSE_TABDIALOG" = "yes"; then
36718 cat >>confdefs.h <<\_ACEOF
36719 #define wxUSE_TAB_DIALOG 1
36720 _ACEOF
36721
36722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36723 fi
36724
36725 if test "$wxUSE_TEXTCTRL" = "yes"; then
36726 cat >>confdefs.h <<\_ACEOF
36727 #define wxUSE_TEXTCTRL 1
36728 _ACEOF
36729
36730 USES_CONTROLS=1
36731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36732 fi
36733
36734 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36735 if test "$wxUSE_COCOA" = 1 ; then
36736 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36737 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36738 wxUSE_TOGGLEBTN=no
36739 else
36740 if test "$wxUSE_PM" = 1; then
36741 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36742 echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36743 wxUSE_TOGGLEBTN=no
36744 fi
36745 fi
36746 if test "$wxUSE_UNIVERSAL" = "yes"; then
36747 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36748 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36749 wxUSE_TOGGLEBTN=no
36750 fi
36751
36752 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36753 cat >>confdefs.h <<\_ACEOF
36754 #define wxUSE_TOGGLEBTN 1
36755 _ACEOF
36756
36757 USES_CONTROLS=1
36758 fi
36759 fi
36760
36761 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36762 cat >>confdefs.h <<\_ACEOF
36763 #define wxUSE_TOOLBAR_SIMPLE 1
36764 _ACEOF
36765
36766 wxUSE_TOOLBAR="yes"
36767 USES_CONTROLS=1
36768 fi
36769
36770 if test "$wxUSE_TOOLBAR" = "yes"; then
36771 cat >>confdefs.h <<\_ACEOF
36772 #define wxUSE_TOOLBAR 1
36773 _ACEOF
36774
36775 USES_CONTROLS=1
36776
36777 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36778 wxUSE_TOOLBAR_NATIVE="yes"
36779 fi
36780
36781 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36782 cat >>confdefs.h <<\_ACEOF
36783 #define wxUSE_TOOLBAR_NATIVE 1
36784 _ACEOF
36785
36786 USES_CONTROLS=1
36787 fi
36788
36789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36790 fi
36791
36792 if test "$wxUSE_TOOLTIPS" = "yes"; then
36793 if test "$wxUSE_MOTIF" = 1; then
36794 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36795 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36796 else
36797 if test "$wxUSE_UNIVERSAL" = "yes"; then
36798 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36799 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36800 else
36801 cat >>confdefs.h <<\_ACEOF
36802 #define wxUSE_TOOLTIPS 1
36803 _ACEOF
36804
36805 fi
36806 fi
36807 fi
36808
36809 if test "$wxUSE_TREECTRL" = "yes"; then
36810 if test "$wxUSE_IMAGLIST" = "yes"; then
36811 cat >>confdefs.h <<\_ACEOF
36812 #define wxUSE_TREECTRL 1
36813 _ACEOF
36814
36815 USES_CONTROLS=1
36816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36817 else
36818 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36819 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36820 fi
36821 fi
36822
36823 if test "$wxUSE_POPUPWIN" = "yes"; then
36824 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36825 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36826 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36827 else
36828 if test "$wxUSE_PM" = 1; then
36829 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36830 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36831 else
36832 cat >>confdefs.h <<\_ACEOF
36833 #define wxUSE_POPUPWIN 1
36834 _ACEOF
36835
36836
36837 USES_CONTROLS=1
36838 fi
36839 fi
36840 fi
36841
36842 if test "$wxUSE_TIPWINDOW" = "yes"; then
36843 if test "$wxUSE_PM" = 1; then
36844 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36845 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36846 else
36847 cat >>confdefs.h <<\_ACEOF
36848 #define wxUSE_TIPWINDOW 1
36849 _ACEOF
36850
36851 fi
36852 fi
36853
36854 if test "$USES_CONTROLS" = 1; then
36855 cat >>confdefs.h <<\_ACEOF
36856 #define wxUSE_CONTROLS 1
36857 _ACEOF
36858
36859 fi
36860
36861
36862 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36863 cat >>confdefs.h <<\_ACEOF
36864 #define wxUSE_ACCESSIBILITY 1
36865 _ACEOF
36866
36867 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36868 fi
36869
36870 if test "$wxUSE_DRAGIMAGE" = "yes"; then
36871 cat >>confdefs.h <<\_ACEOF
36872 #define wxUSE_DRAGIMAGE 1
36873 _ACEOF
36874
36875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36876 fi
36877
36878 if test "$wxUSE_EXCEPTIONS" = "yes"; then
36879 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36880 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36881 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36882 else
36883 cat >>confdefs.h <<\_ACEOF
36884 #define wxUSE_EXCEPTIONS 1
36885 _ACEOF
36886
36887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36888 fi
36889 fi
36890
36891 USE_HTML=0
36892 if test "$wxUSE_HTML" = "yes"; then
36893 cat >>confdefs.h <<\_ACEOF
36894 #define wxUSE_HTML 1
36895 _ACEOF
36896
36897 USE_HTML=1
36898 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
36899 if test "$wxUSE_MAC" = 1; then
36900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36901 fi
36902 fi
36903 if test "$wxUSE_WEBKIT" = "yes"; then
36904 if test "$wxUSE_MAC" = 1; then
36905 old_CPPFLAGS="$CPPFLAGS"
36906 CPPFLAGS="$CPPFLAGS -x objective-c++"
36907 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36908 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36909 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36910 echo $ECHO_N "(cached) $ECHO_C" >&6
36911 else
36912 cat >conftest.$ac_ext <<_ACEOF
36913 /* confdefs.h. */
36914 _ACEOF
36915 cat confdefs.h >>conftest.$ac_ext
36916 cat >>conftest.$ac_ext <<_ACEOF
36917 /* end confdefs.h. */
36918 #include <Carbon/Carbon.h>
36919
36920 #include <WebKit/HIWebView.h>
36921 _ACEOF
36922 rm -f conftest.$ac_objext
36923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36924 (eval $ac_compile) 2>conftest.er1
36925 ac_status=$?
36926 grep -v '^ *+' conftest.er1 >conftest.err
36927 rm -f conftest.er1
36928 cat conftest.err >&5
36929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36930 (exit $ac_status); } &&
36931 { ac_try='test -z "$ac_c_werror_flag"
36932 || test ! -s conftest.err'
36933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36934 (eval $ac_try) 2>&5
36935 ac_status=$?
36936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36937 (exit $ac_status); }; } &&
36938 { ac_try='test -s conftest.$ac_objext'
36939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36940 (eval $ac_try) 2>&5
36941 ac_status=$?
36942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943 (exit $ac_status); }; }; then
36944 ac_cv_header_WebKit_HIWebView_h=yes
36945 else
36946 echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36948
36949 ac_cv_header_WebKit_HIWebView_h=no
36950 fi
36951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36952 fi
36953 echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36954 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36955 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36956
36957 cat >>confdefs.h <<\_ACEOF
36958 #define wxUSE_WEBKIT 1
36959 _ACEOF
36960
36961 WEBKIT_LINK="-framework WebKit"
36962
36963 else
36964
36965 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36966 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36967 wxUSE_WEBKIT=no
36968
36969 fi
36970
36971
36972 CPPFLAGS="$old_CPPFLAGS"
36973 elif test "$wxUSE_COCOA" = 1; then
36974 cat >>confdefs.h <<\_ACEOF
36975 #define wxUSE_WEBKIT 1
36976 _ACEOF
36977
36978 else
36979 wxUSE_WEBKIT=no
36980 fi
36981 fi
36982
36983
36984 if test "$wxUSE_MENUS" = "yes"; then
36985 cat >>confdefs.h <<\_ACEOF
36986 #define wxUSE_MENUS 1
36987 _ACEOF
36988
36989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36990 fi
36991
36992 if test "$wxUSE_METAFILE" = "yes"; then
36993 cat >>confdefs.h <<\_ACEOF
36994 #define wxUSE_METAFILE 1
36995 _ACEOF
36996
36997 fi
36998
36999 if test "$wxUSE_MIMETYPE" = "yes"; then
37000 cat >>confdefs.h <<\_ACEOF
37001 #define wxUSE_MIMETYPE 1
37002 _ACEOF
37003
37004 fi
37005
37006 if test "$wxUSE_MINIFRAME" = "yes"; then
37007 cat >>confdefs.h <<\_ACEOF
37008 #define wxUSE_MINIFRAME 1
37009 _ACEOF
37010
37011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37012 fi
37013
37014 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37015 cat >>confdefs.h <<\_ACEOF
37016 #define wxUSE_SYSTEM_OPTIONS 1
37017 _ACEOF
37018
37019 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37020 "$TOOLKIT" = "MOTIF"; then
37021 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37022 fi
37023 fi
37024
37025
37026 if test "$wxUSE_VALIDATORS" = "yes"; then
37027 cat >>confdefs.h <<\_ACEOF
37028 #define wxUSE_VALIDATORS 1
37029 _ACEOF
37030
37031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37032 fi
37033
37034 if test "$wxUSE_PALETTE" = "yes" ; then
37035 cat >>confdefs.h <<\_ACEOF
37036 #define wxUSE_PALETTE 1
37037 _ACEOF
37038
37039 fi
37040
37041 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37042 LIBS=" -lunicows $LIBS"
37043 fi
37044
37045
37046 if test "$wxUSE_IMAGE" = "yes" ; then
37047 cat >>confdefs.h <<\_ACEOF
37048 #define wxUSE_IMAGE 1
37049 _ACEOF
37050
37051
37052 if test "$wxUSE_GIF" = "yes" ; then
37053 cat >>confdefs.h <<\_ACEOF
37054 #define wxUSE_GIF 1
37055 _ACEOF
37056
37057 fi
37058
37059 if test "$wxUSE_PCX" = "yes" ; then
37060 cat >>confdefs.h <<\_ACEOF
37061 #define wxUSE_PCX 1
37062 _ACEOF
37063
37064 fi
37065
37066 if test "$wxUSE_IFF" = "yes" ; then
37067 cat >>confdefs.h <<\_ACEOF
37068 #define wxUSE_IFF 1
37069 _ACEOF
37070
37071 fi
37072
37073 if test "$wxUSE_PNM" = "yes" ; then
37074 cat >>confdefs.h <<\_ACEOF
37075 #define wxUSE_PNM 1
37076 _ACEOF
37077
37078 fi
37079
37080 if test "$wxUSE_XPM" = "yes" ; then
37081 cat >>confdefs.h <<\_ACEOF
37082 #define wxUSE_XPM 1
37083 _ACEOF
37084
37085 fi
37086
37087 if test "$wxUSE_ICO_CUR" = "yes" ; then
37088 cat >>confdefs.h <<\_ACEOF
37089 #define wxUSE_ICO_CUR 1
37090 _ACEOF
37091
37092 fi
37093 fi
37094
37095
37096 if test "$wxUSE_CHOICEDLG" = "yes"; then
37097 cat >>confdefs.h <<\_ACEOF
37098 #define wxUSE_CHOICEDLG 1
37099 _ACEOF
37100
37101 fi
37102
37103 if test "$wxUSE_COLOURDLG" = "yes"; then
37104 cat >>confdefs.h <<\_ACEOF
37105 #define wxUSE_COLOURDLG 1
37106 _ACEOF
37107
37108 fi
37109
37110 if test "$wxUSE_FILEDLG" = "yes"; then
37111 cat >>confdefs.h <<\_ACEOF
37112 #define wxUSE_FILEDLG 1
37113 _ACEOF
37114
37115 fi
37116
37117 if test "$wxUSE_FINDREPLDLG" = "yes"; then
37118 cat >>confdefs.h <<\_ACEOF
37119 #define wxUSE_FINDREPLDLG 1
37120 _ACEOF
37121
37122 fi
37123
37124 if test "$wxUSE_FONTDLG" = "yes"; then
37125 cat >>confdefs.h <<\_ACEOF
37126 #define wxUSE_FONTDLG 1
37127 _ACEOF
37128
37129 fi
37130
37131 if test "$wxUSE_DIRDLG" = "yes"; then
37132 if test "$wxUSE_TREECTRL" != "yes"; then
37133 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37134 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37135 else
37136 cat >>confdefs.h <<\_ACEOF
37137 #define wxUSE_DIRDLG 1
37138 _ACEOF
37139
37140 fi
37141 fi
37142
37143 if test "$wxUSE_MSGDLG" = "yes"; then
37144 cat >>confdefs.h <<\_ACEOF
37145 #define wxUSE_MSGDLG 1
37146 _ACEOF
37147
37148 fi
37149
37150 if test "$wxUSE_NUMBERDLG" = "yes"; then
37151 cat >>confdefs.h <<\_ACEOF
37152 #define wxUSE_NUMBERDLG 1
37153 _ACEOF
37154
37155 fi
37156
37157 if test "$wxUSE_PROGRESSDLG" = "yes"; then
37158 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37159 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37160 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37161 else
37162 cat >>confdefs.h <<\_ACEOF
37163 #define wxUSE_PROGRESSDLG 1
37164 _ACEOF
37165
37166 fi
37167 fi
37168
37169 if test "$wxUSE_SPLASH" = "yes"; then
37170 cat >>confdefs.h <<\_ACEOF
37171 #define wxUSE_SPLASH 1
37172 _ACEOF
37173
37174 fi
37175
37176 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37177 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37178 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37179 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37180 else
37181 cat >>confdefs.h <<\_ACEOF
37182 #define wxUSE_STARTUP_TIPS 1
37183 _ACEOF
37184
37185 fi
37186 fi
37187
37188 if test "$wxUSE_TEXTDLG" = "yes"; then
37189 cat >>confdefs.h <<\_ACEOF
37190 #define wxUSE_TEXTDLG 1
37191 _ACEOF
37192
37193 fi
37194
37195 if test "$wxUSE_WIZARDDLG" = "yes"; then
37196 cat >>confdefs.h <<\_ACEOF
37197 #define wxUSE_WIZARDDLG 1
37198 _ACEOF
37199
37200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37201 fi
37202
37203
37204 if test "$cross_compiling" = "yes"; then
37205 OSINFO="\"$host\""
37206 else
37207 OSINFO=`uname -s -r -m`
37208 OSINFO="\"$OSINFO\""
37209 fi
37210
37211 cat >>confdefs.h <<_ACEOF
37212 #define WXWIN_OS_DESCRIPTION $OSINFO
37213 _ACEOF
37214
37215
37216
37217 if test "x$prefix" != "xNONE"; then
37218 wxPREFIX=$prefix
37219 else
37220 wxPREFIX=$ac_default_prefix
37221 fi
37222
37223 cat >>confdefs.h <<_ACEOF
37224 #define wxINSTALL_PREFIX "$wxPREFIX"
37225 _ACEOF
37226
37227
37228 top_builddir_wxconfig=`pwd`
37229
37230
37231
37232 CORE_BASE_LIBS="net base"
37233 CORE_GUI_LIBS="adv core"
37234
37235 if test "$wxUSE_XML" = "yes" ; then
37236 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37237 fi
37238 if test "$wxUSE_ODBC" != "no" ; then
37239 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37240 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37241 fi
37242 if test "$wxUSE_HTML" = "yes" ; then
37243 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37244 fi
37245
37246 if test "$wxUSE_GUI" != "yes"; then
37247 CORE_GUI_LIBS=""
37248 fi
37249
37250
37251
37252
37253
37254
37255
37256
37257 if test "$wxUSE_MAC" = 1 ; then
37258 if test "$wxUSE_SOUND" = "yes"; then
37259 LDFLAGS="$LDFLAGS -framework QuickTime"
37260 fi
37261 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
37262 fi
37263 if test "$wxUSE_COCOA" = 1 ; then
37264 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37265 fi
37266
37267
37268 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37269
37270 have_cos=0
37271 have_floor=0
37272
37273 for ac_func in cos
37274 do
37275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37276 echo "$as_me:$LINENO: checking for $ac_func" >&5
37277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37278 if eval "test \"\${$as_ac_var+set}\" = set"; then
37279 echo $ECHO_N "(cached) $ECHO_C" >&6
37280 else
37281 cat >conftest.$ac_ext <<_ACEOF
37282 /* confdefs.h. */
37283 _ACEOF
37284 cat confdefs.h >>conftest.$ac_ext
37285 cat >>conftest.$ac_ext <<_ACEOF
37286 /* end confdefs.h. */
37287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37289 #define $ac_func innocuous_$ac_func
37290
37291 /* System header to define __stub macros and hopefully few prototypes,
37292 which can conflict with char $ac_func (); below.
37293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37294 <limits.h> exists even on freestanding compilers. */
37295
37296 #ifdef __STDC__
37297 # include <limits.h>
37298 #else
37299 # include <assert.h>
37300 #endif
37301
37302 #undef $ac_func
37303
37304 /* Override any gcc2 internal prototype to avoid an error. */
37305 #ifdef __cplusplus
37306 extern "C"
37307 {
37308 #endif
37309 /* We use char because int might match the return type of a gcc2
37310 builtin and then its argument prototype would still apply. */
37311 char $ac_func ();
37312 /* The GNU C library defines this for functions which it implements
37313 to always fail with ENOSYS. Some functions are actually named
37314 something starting with __ and the normal name is an alias. */
37315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37316 choke me
37317 #else
37318 char (*f) () = $ac_func;
37319 #endif
37320 #ifdef __cplusplus
37321 }
37322 #endif
37323
37324 int
37325 main ()
37326 {
37327 return f != $ac_func;
37328 ;
37329 return 0;
37330 }
37331 _ACEOF
37332 rm -f conftest.$ac_objext conftest$ac_exeext
37333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37334 (eval $ac_link) 2>conftest.er1
37335 ac_status=$?
37336 grep -v '^ *+' conftest.er1 >conftest.err
37337 rm -f conftest.er1
37338 cat conftest.err >&5
37339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37340 (exit $ac_status); } &&
37341 { ac_try='test -z "$ac_c_werror_flag"
37342 || test ! -s conftest.err'
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37345 ac_status=$?
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; } &&
37348 { ac_try='test -s conftest$ac_exeext'
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37351 ac_status=$?
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; }; then
37354 eval "$as_ac_var=yes"
37355 else
37356 echo "$as_me: failed program was:" >&5
37357 sed 's/^/| /' conftest.$ac_ext >&5
37358
37359 eval "$as_ac_var=no"
37360 fi
37361 rm -f conftest.err conftest.$ac_objext \
37362 conftest$ac_exeext conftest.$ac_ext
37363 fi
37364 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37365 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37366 if test `eval echo '${'$as_ac_var'}'` = yes; then
37367 cat >>confdefs.h <<_ACEOF
37368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37369 _ACEOF
37370 have_cos=1
37371 fi
37372 done
37373
37374
37375 for ac_func in floor
37376 do
37377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37378 echo "$as_me:$LINENO: checking for $ac_func" >&5
37379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37380 if eval "test \"\${$as_ac_var+set}\" = set"; then
37381 echo $ECHO_N "(cached) $ECHO_C" >&6
37382 else
37383 cat >conftest.$ac_ext <<_ACEOF
37384 /* confdefs.h. */
37385 _ACEOF
37386 cat confdefs.h >>conftest.$ac_ext
37387 cat >>conftest.$ac_ext <<_ACEOF
37388 /* end confdefs.h. */
37389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37391 #define $ac_func innocuous_$ac_func
37392
37393 /* System header to define __stub macros and hopefully few prototypes,
37394 which can conflict with char $ac_func (); below.
37395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37396 <limits.h> exists even on freestanding compilers. */
37397
37398 #ifdef __STDC__
37399 # include <limits.h>
37400 #else
37401 # include <assert.h>
37402 #endif
37403
37404 #undef $ac_func
37405
37406 /* Override any gcc2 internal prototype to avoid an error. */
37407 #ifdef __cplusplus
37408 extern "C"
37409 {
37410 #endif
37411 /* We use char because int might match the return type of a gcc2
37412 builtin and then its argument prototype would still apply. */
37413 char $ac_func ();
37414 /* The GNU C library defines this for functions which it implements
37415 to always fail with ENOSYS. Some functions are actually named
37416 something starting with __ and the normal name is an alias. */
37417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37418 choke me
37419 #else
37420 char (*f) () = $ac_func;
37421 #endif
37422 #ifdef __cplusplus
37423 }
37424 #endif
37425
37426 int
37427 main ()
37428 {
37429 return f != $ac_func;
37430 ;
37431 return 0;
37432 }
37433 _ACEOF
37434 rm -f conftest.$ac_objext conftest$ac_exeext
37435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37436 (eval $ac_link) 2>conftest.er1
37437 ac_status=$?
37438 grep -v '^ *+' conftest.er1 >conftest.err
37439 rm -f conftest.er1
37440 cat conftest.err >&5
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); } &&
37443 { ac_try='test -z "$ac_c_werror_flag"
37444 || test ! -s conftest.err'
37445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37446 (eval $ac_try) 2>&5
37447 ac_status=$?
37448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37449 (exit $ac_status); }; } &&
37450 { ac_try='test -s conftest$ac_exeext'
37451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37452 (eval $ac_try) 2>&5
37453 ac_status=$?
37454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37455 (exit $ac_status); }; }; then
37456 eval "$as_ac_var=yes"
37457 else
37458 echo "$as_me: failed program was:" >&5
37459 sed 's/^/| /' conftest.$ac_ext >&5
37460
37461 eval "$as_ac_var=no"
37462 fi
37463 rm -f conftest.err conftest.$ac_objext \
37464 conftest$ac_exeext conftest.$ac_ext
37465 fi
37466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37467 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37468 if test `eval echo '${'$as_ac_var'}'` = yes; then
37469 cat >>confdefs.h <<_ACEOF
37470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37471 _ACEOF
37472 have_floor=1
37473 fi
37474 done
37475
37476 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37477 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37478 if test "$have_cos" = 1 -a "$have_floor" = 1; then
37479 echo "$as_me:$LINENO: result: yes" >&5
37480 echo "${ECHO_T}yes" >&6
37481 else
37482 echo "$as_me:$LINENO: result: no" >&5
37483 echo "${ECHO_T}no" >&6
37484 LIBS="$LIBS -lm"
37485 # use different functions to avoid configure caching
37486 have_sin=0
37487 have_ceil=0
37488
37489 for ac_func in sin
37490 do
37491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37492 echo "$as_me:$LINENO: checking for $ac_func" >&5
37493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37494 if eval "test \"\${$as_ac_var+set}\" = set"; then
37495 echo $ECHO_N "(cached) $ECHO_C" >&6
37496 else
37497 cat >conftest.$ac_ext <<_ACEOF
37498 /* confdefs.h. */
37499 _ACEOF
37500 cat confdefs.h >>conftest.$ac_ext
37501 cat >>conftest.$ac_ext <<_ACEOF
37502 /* end confdefs.h. */
37503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37505 #define $ac_func innocuous_$ac_func
37506
37507 /* System header to define __stub macros and hopefully few prototypes,
37508 which can conflict with char $ac_func (); below.
37509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37510 <limits.h> exists even on freestanding compilers. */
37511
37512 #ifdef __STDC__
37513 # include <limits.h>
37514 #else
37515 # include <assert.h>
37516 #endif
37517
37518 #undef $ac_func
37519
37520 /* Override any gcc2 internal prototype to avoid an error. */
37521 #ifdef __cplusplus
37522 extern "C"
37523 {
37524 #endif
37525 /* We use char because int might match the return type of a gcc2
37526 builtin and then its argument prototype would still apply. */
37527 char $ac_func ();
37528 /* The GNU C library defines this for functions which it implements
37529 to always fail with ENOSYS. Some functions are actually named
37530 something starting with __ and the normal name is an alias. */
37531 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37532 choke me
37533 #else
37534 char (*f) () = $ac_func;
37535 #endif
37536 #ifdef __cplusplus
37537 }
37538 #endif
37539
37540 int
37541 main ()
37542 {
37543 return f != $ac_func;
37544 ;
37545 return 0;
37546 }
37547 _ACEOF
37548 rm -f conftest.$ac_objext conftest$ac_exeext
37549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37550 (eval $ac_link) 2>conftest.er1
37551 ac_status=$?
37552 grep -v '^ *+' conftest.er1 >conftest.err
37553 rm -f conftest.er1
37554 cat conftest.err >&5
37555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37556 (exit $ac_status); } &&
37557 { ac_try='test -z "$ac_c_werror_flag"
37558 || test ! -s conftest.err'
37559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37560 (eval $ac_try) 2>&5
37561 ac_status=$?
37562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37563 (exit $ac_status); }; } &&
37564 { ac_try='test -s conftest$ac_exeext'
37565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37566 (eval $ac_try) 2>&5
37567 ac_status=$?
37568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37569 (exit $ac_status); }; }; then
37570 eval "$as_ac_var=yes"
37571 else
37572 echo "$as_me: failed program was:" >&5
37573 sed 's/^/| /' conftest.$ac_ext >&5
37574
37575 eval "$as_ac_var=no"
37576 fi
37577 rm -f conftest.err conftest.$ac_objext \
37578 conftest$ac_exeext conftest.$ac_ext
37579 fi
37580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37581 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37582 if test `eval echo '${'$as_ac_var'}'` = yes; then
37583 cat >>confdefs.h <<_ACEOF
37584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37585 _ACEOF
37586 have_sin=1
37587 fi
37588 done
37589
37590
37591 for ac_func in ceil
37592 do
37593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37594 echo "$as_me:$LINENO: checking for $ac_func" >&5
37595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37596 if eval "test \"\${$as_ac_var+set}\" = set"; then
37597 echo $ECHO_N "(cached) $ECHO_C" >&6
37598 else
37599 cat >conftest.$ac_ext <<_ACEOF
37600 /* confdefs.h. */
37601 _ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h. */
37605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37607 #define $ac_func innocuous_$ac_func
37608
37609 /* System header to define __stub macros and hopefully few prototypes,
37610 which can conflict with char $ac_func (); below.
37611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37612 <limits.h> exists even on freestanding compilers. */
37613
37614 #ifdef __STDC__
37615 # include <limits.h>
37616 #else
37617 # include <assert.h>
37618 #endif
37619
37620 #undef $ac_func
37621
37622 /* Override any gcc2 internal prototype to avoid an error. */
37623 #ifdef __cplusplus
37624 extern "C"
37625 {
37626 #endif
37627 /* We use char because int might match the return type of a gcc2
37628 builtin and then its argument prototype would still apply. */
37629 char $ac_func ();
37630 /* The GNU C library defines this for functions which it implements
37631 to always fail with ENOSYS. Some functions are actually named
37632 something starting with __ and the normal name is an alias. */
37633 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37634 choke me
37635 #else
37636 char (*f) () = $ac_func;
37637 #endif
37638 #ifdef __cplusplus
37639 }
37640 #endif
37641
37642 int
37643 main ()
37644 {
37645 return f != $ac_func;
37646 ;
37647 return 0;
37648 }
37649 _ACEOF
37650 rm -f conftest.$ac_objext conftest$ac_exeext
37651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37652 (eval $ac_link) 2>conftest.er1
37653 ac_status=$?
37654 grep -v '^ *+' conftest.er1 >conftest.err
37655 rm -f conftest.er1
37656 cat conftest.err >&5
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); } &&
37659 { ac_try='test -z "$ac_c_werror_flag"
37660 || test ! -s conftest.err'
37661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37662 (eval $ac_try) 2>&5
37663 ac_status=$?
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); }; } &&
37666 { ac_try='test -s conftest$ac_exeext'
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37669 ac_status=$?
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; }; then
37672 eval "$as_ac_var=yes"
37673 else
37674 echo "$as_me: failed program was:" >&5
37675 sed 's/^/| /' conftest.$ac_ext >&5
37676
37677 eval "$as_ac_var=no"
37678 fi
37679 rm -f conftest.err conftest.$ac_objext \
37680 conftest$ac_exeext conftest.$ac_ext
37681 fi
37682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37684 if test `eval echo '${'$as_ac_var'}'` = yes; then
37685 cat >>confdefs.h <<_ACEOF
37686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37687 _ACEOF
37688 have_ceil=1
37689 fi
37690 done
37691
37692 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37693 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37694 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37695 echo "$as_me:$LINENO: result: yes" >&5
37696 echo "${ECHO_T}yes" >&6
37697 else
37698 echo "$as_me:$LINENO: result: no" >&5
37699 echo "${ECHO_T}no" >&6
37700 # not sure we should warn the user, crash, etc.
37701 fi
37702 fi
37703
37704 if test "$wxUSE_GUI" = "yes"; then
37705
37706
37707 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37708 drawing dynamic erase event exec font image \
37709 minimal propsize rotate shaped widgets render"
37710
37711 if test "$wxUSE_MONOLITHIC" != "yes"; then
37712 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37713 fi
37714 else
37715 SAMPLES_SUBDIRS="console"
37716 fi
37717
37718
37719 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
37720 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37721
37722 if test "$GXX" = yes ; then
37723 CXXWARNINGS="-Wall"
37724 fi
37725
37726 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37727
37728 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
37729 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37730 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
37731
37732
37733 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
37734 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37735 EXTRALIBS_XML="$EXPAT_LINK"
37736 EXTRALIBS_HTML="$MSPACK_LINK"
37737 EXTRALIBS_ODBC="$ODBC_LINK"
37738 if test "$wxUSE_GUI" = "yes"; then
37739 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK | sed 's/ \+/ /g'`
37740 fi
37741 if test "$wxUSE_OPENGL" = "yes"; then
37742 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37743 fi
37744
37745 LDFLAGS="$LDFLAGS $PROFILE"
37746
37747 if test "$wxUSE_GTK" = 1; then
37748 WXCONFIG_INCLUDE=
37749 else
37750 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37751 fi
37752
37753 WXCONFIG_EXTRALIBS="$LIBS"
37754
37755 if test "$wxUSE_REGEX" = "builtin" ; then
37756 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37757 fi
37758 if test "$wxUSE_EXPAT" = "builtin" ; then
37759 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37760 fi
37761 if test "$wxUSE_ODBC" = "builtin" ; then
37762 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37763 fi
37764 if test "$wxUSE_LIBTIFF" = "builtin" ; then
37765 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37766 fi
37767 if test "$wxUSE_LIBJPEG" = "builtin" ; then
37768 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37769 fi
37770 if test "$wxUSE_LIBPNG" = "builtin" ; then
37771 wxconfig_3rdparty="$wxconfig_3rdparty png"
37772 fi
37773 if test "$wxUSE_ZLIB" = "builtin" ; then
37774 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37775 fi
37776 if test "$wxUSE_ODBC" = "builtin" ; then
37777 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37778 fi
37779
37780 for i in $wxconfig_3rdparty ; do
37781 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37782 done
37783
37784
37785 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37786 WXUNIV=1
37787 else
37788 WXUNIV=0
37789 fi
37790
37791
37792
37793
37794
37795
37796
37797
37798
37799 if test $wxUSE_MONOLITHIC = "yes" ; then
37800 MONOLITHIC=1
37801 else
37802 MONOLITHIC=0
37803 fi
37804
37805 if test $wxUSE_PLUGINS = "yes" ; then
37806 USE_PLUGINS=1
37807 else
37808 USE_PLUGINS=0
37809 fi
37810
37811 if test $wxUSE_ODBC != "no" ; then
37812 USE_ODBC=1
37813 else
37814 USE_ODBC=0
37815 fi
37816
37817 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37818 OFFICIAL_BUILD=1
37819 else
37820 OFFICIAL_BUILD=0
37821 fi
37822
37823
37824
37825
37826
37827
37828
37829
37830
37831
37832
37833
37834
37835
37836
37837
37838
37839
37840
37841
37842
37843 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37844
37845
37846
37847
37848
37849
37850
37851
37852
37853 if test "x$BAKEFILE_HOST" = "x"; then
37854 BAKEFILE_HOST="${host}"
37855 fi
37856
37857 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37858
37859 if test -n "$ac_tool_prefix"; then
37860 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37861 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37862 echo "$as_me:$LINENO: checking for $ac_word" >&5
37863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37864 if test "${ac_cv_prog_RANLIB+set}" = set; then
37865 echo $ECHO_N "(cached) $ECHO_C" >&6
37866 else
37867 if test -n "$RANLIB"; then
37868 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37869 else
37870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37871 for as_dir in $PATH
37872 do
37873 IFS=$as_save_IFS
37874 test -z "$as_dir" && as_dir=.
37875 for ac_exec_ext in '' $ac_executable_extensions; do
37876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37877 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37879 break 2
37880 fi
37881 done
37882 done
37883
37884 fi
37885 fi
37886 RANLIB=$ac_cv_prog_RANLIB
37887 if test -n "$RANLIB"; then
37888 echo "$as_me:$LINENO: result: $RANLIB" >&5
37889 echo "${ECHO_T}$RANLIB" >&6
37890 else
37891 echo "$as_me:$LINENO: result: no" >&5
37892 echo "${ECHO_T}no" >&6
37893 fi
37894
37895 fi
37896 if test -z "$ac_cv_prog_RANLIB"; then
37897 ac_ct_RANLIB=$RANLIB
37898 # Extract the first word of "ranlib", so it can be a program name with args.
37899 set dummy ranlib; ac_word=$2
37900 echo "$as_me:$LINENO: checking for $ac_word" >&5
37901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37903 echo $ECHO_N "(cached) $ECHO_C" >&6
37904 else
37905 if test -n "$ac_ct_RANLIB"; then
37906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37907 else
37908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37909 for as_dir in $PATH
37910 do
37911 IFS=$as_save_IFS
37912 test -z "$as_dir" && as_dir=.
37913 for ac_exec_ext in '' $ac_executable_extensions; do
37914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37915 ac_cv_prog_ac_ct_RANLIB="ranlib"
37916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37917 break 2
37918 fi
37919 done
37920 done
37921
37922 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37923 fi
37924 fi
37925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37926 if test -n "$ac_ct_RANLIB"; then
37927 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37928 echo "${ECHO_T}$ac_ct_RANLIB" >&6
37929 else
37930 echo "$as_me:$LINENO: result: no" >&5
37931 echo "${ECHO_T}no" >&6
37932 fi
37933
37934 RANLIB=$ac_ct_RANLIB
37935 else
37936 RANLIB="$ac_cv_prog_RANLIB"
37937 fi
37938
37939 # Find a good install program. We prefer a C program (faster),
37940 # so one script is as good as another. But avoid the broken or
37941 # incompatible versions:
37942 # SysV /etc/install, /usr/sbin/install
37943 # SunOS /usr/etc/install
37944 # IRIX /sbin/install
37945 # AIX /bin/install
37946 # AmigaOS /C/install, which installs bootblocks on floppy discs
37947 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37948 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
37949 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
37950 # OS/2's system install, which has a completely different semantic
37951 # ./install, which can be erroneously created by make from ./install.sh.
37952 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37953 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37954 if test -z "$INSTALL"; then
37955 if test "${ac_cv_path_install+set}" = set; then
37956 echo $ECHO_N "(cached) $ECHO_C" >&6
37957 else
37958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37959 for as_dir in $PATH
37960 do
37961 IFS=$as_save_IFS
37962 test -z "$as_dir" && as_dir=.
37963 # Account for people who put trailing slashes in PATH elements.
37964 case $as_dir/ in
37965 ./ | .// | /cC/* | \
37966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
37967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
37968 /usr/ucb/* ) ;;
37969 *)
37970 # OSF1 and SCO ODT 3.0 have their own names for install.
37971 # Don't use installbsd from OSF since it installs stuff as root
37972 # by default.
37973 for ac_prog in ginstall scoinst install; do
37974 for ac_exec_ext in '' $ac_executable_extensions; do
37975 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37976 if test $ac_prog = install &&
37977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37978 # AIX install. It has an incompatible calling convention.
37979 :
37980 elif test $ac_prog = install &&
37981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37982 # program-specific install script used by HP pwplus--don't use.
37983 :
37984 else
37985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37986 break 3
37987 fi
37988 fi
37989 done
37990 done
37991 ;;
37992 esac
37993 done
37994
37995
37996 fi
37997 if test "${ac_cv_path_install+set}" = set; then
37998 INSTALL=$ac_cv_path_install
37999 else
38000 # As a last resort, use the slow shell script. We don't cache a
38001 # path for INSTALL within a source directory, because that will
38002 # break other packages using the cache if that directory is
38003 # removed, or if the path is relative.
38004 INSTALL=$ac_install_sh
38005 fi
38006 fi
38007 echo "$as_me:$LINENO: result: $INSTALL" >&5
38008 echo "${ECHO_T}$INSTALL" >&6
38009
38010 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38011 # It thinks the first close brace ends the variable substitution.
38012 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38013
38014 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38015
38016 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38017
38018 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38019 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38020 LN_S=$as_ln_s
38021 if test "$LN_S" = "ln -s"; then
38022 echo "$as_me:$LINENO: result: yes" >&5
38023 echo "${ECHO_T}yes" >&6
38024 else
38025 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38026 echo "${ECHO_T}no, using $LN_S" >&6
38027 fi
38028
38029
38030 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38031 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38032 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38033 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38034 echo $ECHO_N "(cached) $ECHO_C" >&6
38035 else
38036 cat >conftest.make <<\_ACEOF
38037 all:
38038 @echo 'ac_maketemp="$(MAKE)"'
38039 _ACEOF
38040 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38041 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38042 if test -n "$ac_maketemp"; then
38043 eval ac_cv_prog_make_${ac_make}_set=yes
38044 else
38045 eval ac_cv_prog_make_${ac_make}_set=no
38046 fi
38047 rm -f conftest.make
38048 fi
38049 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38050 echo "$as_me:$LINENO: result: yes" >&5
38051 echo "${ECHO_T}yes" >&6
38052 SET_MAKE=
38053 else
38054 echo "$as_me:$LINENO: result: no" >&5
38055 echo "${ECHO_T}no" >&6
38056 SET_MAKE="MAKE=${MAKE-make}"
38057 fi
38058
38059
38060
38061 if test -n "$ac_tool_prefix"; then
38062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38063 set dummy ${ac_tool_prefix}ar; ac_word=$2
38064 echo "$as_me:$LINENO: checking for $ac_word" >&5
38065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38066 if test "${ac_cv_prog_AR+set}" = set; then
38067 echo $ECHO_N "(cached) $ECHO_C" >&6
38068 else
38069 if test -n "$AR"; then
38070 ac_cv_prog_AR="$AR" # Let the user override the test.
38071 else
38072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38073 for as_dir in $PATH
38074 do
38075 IFS=$as_save_IFS
38076 test -z "$as_dir" && as_dir=.
38077 for ac_exec_ext in '' $ac_executable_extensions; do
38078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38079 ac_cv_prog_AR="${ac_tool_prefix}ar"
38080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38081 break 2
38082 fi
38083 done
38084 done
38085
38086 fi
38087 fi
38088 AR=$ac_cv_prog_AR
38089 if test -n "$AR"; then
38090 echo "$as_me:$LINENO: result: $AR" >&5
38091 echo "${ECHO_T}$AR" >&6
38092 else
38093 echo "$as_me:$LINENO: result: no" >&5
38094 echo "${ECHO_T}no" >&6
38095 fi
38096
38097 fi
38098 if test -z "$ac_cv_prog_AR"; then
38099 ac_ct_AR=$AR
38100 # Extract the first word of "ar", so it can be a program name with args.
38101 set dummy ar; ac_word=$2
38102 echo "$as_me:$LINENO: checking for $ac_word" >&5
38103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38104 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38105 echo $ECHO_N "(cached) $ECHO_C" >&6
38106 else
38107 if test -n "$ac_ct_AR"; then
38108 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38109 else
38110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38111 for as_dir in $PATH
38112 do
38113 IFS=$as_save_IFS
38114 test -z "$as_dir" && as_dir=.
38115 for ac_exec_ext in '' $ac_executable_extensions; do
38116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38117 ac_cv_prog_ac_ct_AR="ar"
38118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38119 break 2
38120 fi
38121 done
38122 done
38123
38124 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38125 fi
38126 fi
38127 ac_ct_AR=$ac_cv_prog_ac_ct_AR
38128 if test -n "$ac_ct_AR"; then
38129 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38130 echo "${ECHO_T}$ac_ct_AR" >&6
38131 else
38132 echo "$as_me:$LINENO: result: no" >&5
38133 echo "${ECHO_T}no" >&6
38134 fi
38135
38136 AR=$ac_ct_AR
38137 else
38138 AR="$ac_cv_prog_AR"
38139 fi
38140
38141 if test -n "$ac_tool_prefix"; then
38142 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38143 set dummy ${ac_tool_prefix}strip; ac_word=$2
38144 echo "$as_me:$LINENO: checking for $ac_word" >&5
38145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38146 if test "${ac_cv_prog_STRIP+set}" = set; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38148 else
38149 if test -n "$STRIP"; then
38150 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38151 else
38152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38153 for as_dir in $PATH
38154 do
38155 IFS=$as_save_IFS
38156 test -z "$as_dir" && as_dir=.
38157 for ac_exec_ext in '' $ac_executable_extensions; do
38158 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38159 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38161 break 2
38162 fi
38163 done
38164 done
38165
38166 fi
38167 fi
38168 STRIP=$ac_cv_prog_STRIP
38169 if test -n "$STRIP"; then
38170 echo "$as_me:$LINENO: result: $STRIP" >&5
38171 echo "${ECHO_T}$STRIP" >&6
38172 else
38173 echo "$as_me:$LINENO: result: no" >&5
38174 echo "${ECHO_T}no" >&6
38175 fi
38176
38177 fi
38178 if test -z "$ac_cv_prog_STRIP"; then
38179 ac_ct_STRIP=$STRIP
38180 # Extract the first word of "strip", so it can be a program name with args.
38181 set dummy strip; ac_word=$2
38182 echo "$as_me:$LINENO: checking for $ac_word" >&5
38183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38184 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38186 else
38187 if test -n "$ac_ct_STRIP"; then
38188 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38189 else
38190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38191 for as_dir in $PATH
38192 do
38193 IFS=$as_save_IFS
38194 test -z "$as_dir" && as_dir=.
38195 for ac_exec_ext in '' $ac_executable_extensions; do
38196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38197 ac_cv_prog_ac_ct_STRIP="strip"
38198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38199 break 2
38200 fi
38201 done
38202 done
38203
38204 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38205 fi
38206 fi
38207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38208 if test -n "$ac_ct_STRIP"; then
38209 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38210 echo "${ECHO_T}$ac_ct_STRIP" >&6
38211 else
38212 echo "$as_me:$LINENO: result: no" >&5
38213 echo "${ECHO_T}no" >&6
38214 fi
38215
38216 STRIP=$ac_ct_STRIP
38217 else
38218 STRIP="$ac_cv_prog_STRIP"
38219 fi
38220
38221 if test -n "$ac_tool_prefix"; then
38222 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38223 set dummy ${ac_tool_prefix}nm; ac_word=$2
38224 echo "$as_me:$LINENO: checking for $ac_word" >&5
38225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38226 if test "${ac_cv_prog_NM+set}" = set; then
38227 echo $ECHO_N "(cached) $ECHO_C" >&6
38228 else
38229 if test -n "$NM"; then
38230 ac_cv_prog_NM="$NM" # Let the user override the test.
38231 else
38232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38233 for as_dir in $PATH
38234 do
38235 IFS=$as_save_IFS
38236 test -z "$as_dir" && as_dir=.
38237 for ac_exec_ext in '' $ac_executable_extensions; do
38238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38239 ac_cv_prog_NM="${ac_tool_prefix}nm"
38240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38241 break 2
38242 fi
38243 done
38244 done
38245
38246 fi
38247 fi
38248 NM=$ac_cv_prog_NM
38249 if test -n "$NM"; then
38250 echo "$as_me:$LINENO: result: $NM" >&5
38251 echo "${ECHO_T}$NM" >&6
38252 else
38253 echo "$as_me:$LINENO: result: no" >&5
38254 echo "${ECHO_T}no" >&6
38255 fi
38256
38257 fi
38258 if test -z "$ac_cv_prog_NM"; then
38259 ac_ct_NM=$NM
38260 # Extract the first word of "nm", so it can be a program name with args.
38261 set dummy nm; ac_word=$2
38262 echo "$as_me:$LINENO: checking for $ac_word" >&5
38263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38264 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38265 echo $ECHO_N "(cached) $ECHO_C" >&6
38266 else
38267 if test -n "$ac_ct_NM"; then
38268 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38269 else
38270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38271 for as_dir in $PATH
38272 do
38273 IFS=$as_save_IFS
38274 test -z "$as_dir" && as_dir=.
38275 for ac_exec_ext in '' $ac_executable_extensions; do
38276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38277 ac_cv_prog_ac_ct_NM="nm"
38278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38279 break 2
38280 fi
38281 done
38282 done
38283
38284 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38285 fi
38286 fi
38287 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38288 if test -n "$ac_ct_NM"; then
38289 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38290 echo "${ECHO_T}$ac_ct_NM" >&6
38291 else
38292 echo "$as_me:$LINENO: result: no" >&5
38293 echo "${ECHO_T}no" >&6
38294 fi
38295
38296 NM=$ac_ct_NM
38297 else
38298 NM="$ac_cv_prog_NM"
38299 fi
38300
38301
38302 case ${BAKEFILE_HOST} in
38303 *-hp-hpux* )
38304 INSTALL_DIR="mkdir"
38305 ;;
38306 *) INSTALL_DIR="$INSTALL -d"
38307 ;;
38308 esac
38309
38310
38311 LDFLAGS_GUI=
38312 case ${BAKEFILE_HOST} in
38313 *-*-cygwin* | *-*-mingw32* )
38314 LDFLAGS_GUI="-mwindows"
38315 esac
38316
38317
38318 fi
38319
38320 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38321 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38322 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38323 echo $ECHO_N "(cached) $ECHO_C" >&6
38324 else
38325
38326 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38327 egrep -s GNU > /dev/null); then
38328 bakefile_cv_prog_makeisgnu="yes"
38329 else
38330 bakefile_cv_prog_makeisgnu="no"
38331 fi
38332
38333 fi
38334 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38335 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38336
38337 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38338 IF_GNU_MAKE=""
38339 else
38340 IF_GNU_MAKE="#"
38341 fi
38342
38343
38344
38345 PLATFORM_UNIX=0
38346 PLATFORM_WIN32=0
38347 PLATFORM_MSDOS=0
38348 PLATFORM_MAC=0
38349 PLATFORM_MACOSX=0
38350 PLATFORM_OS2=0
38351
38352 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38353 case "${BAKEFILE_HOST}" in
38354 *-*-cygwin* | *-*-mingw32* )
38355 PLATFORM_WIN32=1
38356 ;;
38357 *-pc-msdosdjgpp )
38358 PLATFORM_MSDOS=1
38359 ;;
38360 *-pc-os2_emx | *-pc-os2-emx )
38361 PLATFORM_OS2=1
38362 ;;
38363 powerpc-*-darwin* )
38364 PLATFORM_MAC=1
38365 PLATFORM_MACOSX=1
38366 ;;
38367 * )
38368 PLATFORM_UNIX=1
38369 ;;
38370 esac
38371 else
38372 case "$BAKEFILE_FORCE_PLATFORM" in
38373 win32 )
38374 PLATFORM_WIN32=1
38375 ;;
38376 msdos )
38377 PLATFORM_MSDOS=1
38378 ;;
38379 os2 )
38380 PLATFORM_OS2=1
38381 ;;
38382 darwin )
38383 PLATFORM_MAC=1
38384 PLATFORM_MACOSX=1
38385 ;;
38386 unix )
38387 PLATFORM_UNIX=1
38388 ;;
38389 * )
38390 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38391 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38392 { (exit 1); exit 1; }; }
38393 ;;
38394 esac
38395 fi
38396
38397
38398
38399
38400
38401
38402
38403
38404
38405 # Check whether --enable-omf or --disable-omf was given.
38406 if test "${enable_omf+set}" = set; then
38407 enableval="$enable_omf"
38408 bk_os2_use_omf="$enableval"
38409 fi;
38410
38411 case "${BAKEFILE_HOST}" in
38412 *-*-darwin* )
38413 CFLAGS="$CFLAGS -fno-common"
38414 CXXFLAGS="$CXXFLAGS -fno-common"
38415 ;;
38416
38417 *-pc-os2_emx | *-pc-os2-emx )
38418 if test "x$bk_os2_use_omf" = "xyes" ; then
38419 AR=emxomfar
38420 RANLIB=:
38421 LDFLAGS="-Zomf $LDFLAGS"
38422 CFLAGS="-Zomf $CFLAGS"
38423 CXXFLAGS="-Zomf $CXXFLAGS"
38424 OS2_LIBEXT="lib"
38425 else
38426 OS2_LIBEXT="a"
38427 fi
38428 ;;
38429 esac
38430
38431
38432 SO_SUFFIX="so"
38433 SO_SUFFIX_MODULE="so"
38434 EXEEXT=""
38435 LIBPREFIX="lib"
38436 LIBEXT=".a"
38437 DLLPREFIX="lib"
38438 DLLPREFIX_MODULE=""
38439 DLLIMP_SUFFIX=""
38440
38441 case "${BAKEFILE_HOST}" in
38442 *-hp-hpux* )
38443 SO_SUFFIX="sl"
38444 SO_SUFFIX_MODULE="sl"
38445 ;;
38446 *-*-aix* )
38447 SO_SUFFIX="a"
38448 SO_SUFFIX_MODULE="a"
38449 ;;
38450 *-*-cygwin* | *-*-mingw32* )
38451 SO_SUFFIX="dll"
38452 SO_SUFFIX_MODULE="dll"
38453 DLLIMP_SUFFIX="dll.a"
38454 EXEEXT=".exe"
38455 DLLPREFIX=""
38456 ;;
38457 *-pc-msdosdjgpp )
38458 EXEEXT=".exe"
38459 DLLPREFIX=""
38460 ;;
38461 *-pc-os2_emx | *-pc-os2-emx )
38462 SO_SUFFIX="dll"
38463 SO_SUFFIX_MODULE="dll"
38464 DLLIMP_SUFFIX=$OS2_LIBEXT
38465 EXEEXT=".exe"
38466 DLLPREFIX=""
38467 LIBPREFIX=""
38468 LIBEXT=".$OS2_LIBEXT"
38469 ;;
38470 powerpc-*-darwin* )
38471 SO_SUFFIX="dylib"
38472 SO_SUFFIX_MODULE="bundle"
38473 ;;
38474 esac
38475
38476 if test "x$DLLIMP_SUFFIX" = "x" ; then
38477 DLLIMP_SUFFIX="$SO_SUFFIX"
38478 fi
38479
38480
38481
38482
38483
38484
38485
38486
38487
38488
38489
38490 SHARED_LD_CC="\$(CC) -shared -o"
38491 SHARED_LD_CXX="\$(CXX) -shared -o"
38492
38493 if test "x$GCC" = "xyes"; then
38494 PIC_FLAG="-fPIC"
38495 fi
38496
38497 case "${BAKEFILE_HOST}" in
38498 *-hp-hpux* )
38499 if test "x$GCC" = "xyes"; then
38500 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38501 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38502 else
38503 LDFLAGS="$LDFLAGS -L/usr/lib"
38504
38505 SHARED_LD_CC="${CC} -b -o"
38506 SHARED_LD_CXX="${CXX} -b -o"
38507 PIC_FLAG="+Z"
38508 fi
38509 ;;
38510
38511 *-*-linux* )
38512 if test "x$GCC" != "xyes"; then
38513 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38514 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38515 if test "${bakefile_cv_prog_icc+set}" = set; then
38516 echo $ECHO_N "(cached) $ECHO_C" >&6
38517 else
38518
38519 cat >conftest.$ac_ext <<_ACEOF
38520 /* confdefs.h. */
38521 _ACEOF
38522 cat confdefs.h >>conftest.$ac_ext
38523 cat >>conftest.$ac_ext <<_ACEOF
38524 /* end confdefs.h. */
38525
38526 int
38527 main ()
38528 {
38529
38530 #ifndef __INTEL_COMPILER
38531 #error Not icc
38532 #endif
38533
38534 ;
38535 return 0;
38536 }
38537 _ACEOF
38538 rm -f conftest.$ac_objext
38539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38540 (eval $ac_compile) 2>conftest.er1
38541 ac_status=$?
38542 grep -v '^ *+' conftest.er1 >conftest.err
38543 rm -f conftest.er1
38544 cat conftest.err >&5
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); } &&
38547 { ac_try='test -z "$ac_c_werror_flag"
38548 || test ! -s conftest.err'
38549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38550 (eval $ac_try) 2>&5
38551 ac_status=$?
38552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38553 (exit $ac_status); }; } &&
38554 { ac_try='test -s conftest.$ac_objext'
38555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38556 (eval $ac_try) 2>&5
38557 ac_status=$?
38558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38559 (exit $ac_status); }; }; then
38560 bakefile_cv_prog_icc=yes
38561 else
38562 echo "$as_me: failed program was:" >&5
38563 sed 's/^/| /' conftest.$ac_ext >&5
38564
38565 bakefile_cv_prog_icc=no
38566
38567 fi
38568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38569
38570 fi
38571 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38572 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38573 if test "$bakefile_cv_prog_icc" = "yes"; then
38574 PIC_FLAG="-KPIC"
38575 fi
38576 fi
38577 ;;
38578
38579 *-*-solaris2* )
38580 if test "x$GCC" != xyes ; then
38581 SHARED_LD_CC="${CC} -G -o"
38582 SHARED_LD_CXX="${CXX} -G -o"
38583 PIC_FLAG="-KPIC"
38584 fi
38585 ;;
38586
38587 *-*-darwin* )
38588
38589 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38590 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38591 if test "${wx_cv_gcc31+set}" = set; then
38592 echo $ECHO_N "(cached) $ECHO_C" >&6
38593 else
38594
38595 cat >conftest.$ac_ext <<_ACEOF
38596 /* confdefs.h. */
38597 _ACEOF
38598 cat confdefs.h >>conftest.$ac_ext
38599 cat >>conftest.$ac_ext <<_ACEOF
38600 /* end confdefs.h. */
38601
38602 int
38603 main ()
38604 {
38605
38606 #if (__GNUC__ < 3) || \
38607 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38608 #error old gcc
38609 #endif
38610
38611 ;
38612 return 0;
38613 }
38614 _ACEOF
38615 rm -f conftest.$ac_objext
38616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38617 (eval $ac_compile) 2>conftest.er1
38618 ac_status=$?
38619 grep -v '^ *+' conftest.er1 >conftest.err
38620 rm -f conftest.er1
38621 cat conftest.err >&5
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); } &&
38624 { ac_try='test -z "$ac_c_werror_flag"
38625 || test ! -s conftest.err'
38626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38627 (eval $ac_try) 2>&5
38628 ac_status=$?
38629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38630 (exit $ac_status); }; } &&
38631 { ac_try='test -s conftest.$ac_objext'
38632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38633 (eval $ac_try) 2>&5
38634 ac_status=$?
38635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38636 (exit $ac_status); }; }; then
38637
38638 wx_cv_gcc31=yes
38639
38640 else
38641 echo "$as_me: failed program was:" >&5
38642 sed 's/^/| /' conftest.$ac_ext >&5
38643
38644
38645 wx_cv_gcc31=no
38646
38647
38648 fi
38649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38650
38651 fi
38652 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38653 echo "${ECHO_T}$wx_cv_gcc31" >&6
38654 if test "$wx_cv_gcc31" = "no"; then
38655
38656 D='$'
38657 cat <<EOF >shared-ld-sh
38658 #!/bin/sh
38659 #-----------------------------------------------------------------------------
38660 #-- Name: distrib/mac/shared-ld-sh
38661 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38662 #-- Author: Gilles Depeyrot
38663 #-- Copyright: (c) 2002 Gilles Depeyrot
38664 #-- Licence: any use permitted
38665 #-----------------------------------------------------------------------------
38666
38667 verbose=0
38668 args=""
38669 objects=""
38670 linking_flag="-dynamiclib"
38671
38672 while test ${D}# -gt 0; do
38673 case ${D}1 in
38674
38675 -v)
38676 verbose=1
38677 ;;
38678
38679 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38680 # collect these options and values
38681 args="${D}{args} ${D}1 ${D}2"
38682 shift
38683 ;;
38684
38685 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38686 # collect these options
38687 args="${D}{args} ${D}1"
38688 ;;
38689
38690 -dynamiclib|-bundle)
38691 linking_flag="${D}1"
38692 ;;
38693
38694 -*)
38695 echo "shared-ld: unhandled option '${D}1'"
38696 exit 1
38697 ;;
38698
38699 *.o | *.a | *.dylib)
38700 # collect object files
38701 objects="${D}{objects} ${D}1"
38702 ;;
38703
38704 *)
38705 echo "shared-ld: unhandled argument '${D}1'"
38706 exit 1
38707 ;;
38708
38709 esac
38710 shift
38711 done
38712
38713 #
38714 # Link one module containing all the others
38715 #
38716 if test ${D}{verbose} = 1; then
38717 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
38718 fi
38719 c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38720 status=${D}?
38721 if test ${D}{status} != 0; then
38722 exit ${D}{status}
38723 fi
38724
38725 #
38726 # Link the shared library from the single module created
38727 #
38728 if test ${D}{verbose} = 1; then
38729 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
38730 fi
38731 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38732 status=${D}?
38733 if test ${D}{status} != 0; then
38734 exit ${D}{status}
38735 fi
38736
38737 #
38738 # Remove intermediate module
38739 #
38740 rm -f master.${D}${D}.o
38741
38742 exit 0
38743 EOF
38744
38745 chmod +x shared-ld-sh
38746
38747 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38748 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38749 SHARED_LD_CXX="$SHARED_LD_CC"
38750 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38751 else
38752 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38753 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38754 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38755 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38756 fi
38757
38758 PIC_FLAG="-dynamic -fPIC"
38759 ;;
38760
38761 *-*-aix* )
38762 if test "x$GCC" != "xyes"; then
38763 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38764 set dummy makeC++SharedLib; ac_word=$2
38765 echo "$as_me:$LINENO: checking for $ac_word" >&5
38766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38767 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38768 echo $ECHO_N "(cached) $ECHO_C" >&6
38769 else
38770 if test -n "$AIX_CXX_LD"; then
38771 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38772 else
38773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38774 for as_dir in $PATH
38775 do
38776 IFS=$as_save_IFS
38777 test -z "$as_dir" && as_dir=.
38778 for ac_exec_ext in '' $ac_executable_extensions; do
38779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38780 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38782 break 2
38783 fi
38784 done
38785 done
38786
38787 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38788 fi
38789 fi
38790 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38791 if test -n "$AIX_CXX_LD"; then
38792 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38793 echo "${ECHO_T}$AIX_CXX_LD" >&6
38794 else
38795 echo "$as_me:$LINENO: result: no" >&5
38796 echo "${ECHO_T}no" >&6
38797 fi
38798
38799 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38800 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38801 fi
38802 ;;
38803
38804 *-*-beos* )
38805 SHARED_LD_CC="${LD} -shared -o"
38806 SHARED_LD_CXX="${LD} -shared -o"
38807 ;;
38808
38809 *-*-irix* )
38810 if test "x$GCC" != "xyes"; then
38811 PIC_FLAG="-KPIC"
38812 fi
38813 ;;
38814
38815 *-*-cygwin* | *-*-mingw32* )
38816 PIC_FLAG=""
38817 ;;
38818
38819 *-pc-os2_emx | *-pc-os2-emx )
38820 SHARED_LD_CC="`pwd`/dllar.sh -o"
38821 SHARED_LD_CXX="`pwd`/dllar.sh -o"
38822 PIC_FLAG=""
38823
38824 D='$'
38825 cat <<EOF >dllar.sh
38826 #!/bin/sh
38827 #
38828 # dllar - a tool to build both a .dll and an .a file
38829 # from a set of object (.o) files for EMX/OS2.
38830 #
38831 # Written by Andrew Zabolotny, bit@freya.etu.ru
38832 # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38833 #
38834 # This script will accept a set of files on the command line.
38835 # All the public symbols from the .o files will be exported into
38836 # a .DEF file, then linker will be run (through gcc) against them to
38837 # build a shared library consisting of all given .o files. All libraries
38838 # (.a) will be first decompressed into component .o files then act as
38839 # described above. You can optionally give a description (-d "description")
38840 # which will be put into .DLL. To see the list of accepted options (as well
38841 # as command-line format) simply run this program without options. The .DLL
38842 # is built to be imported by name (there is no guarantee that new versions
38843 # of the library you build will have same ordinals for same symbols).
38844 #
38845 # dllar is free software; you can redistribute it and/or modify
38846 # it under the terms of the GNU General Public License as published by
38847 # the Free Software Foundation; either version 2, or (at your option)
38848 # any later version.
38849 #
38850 # dllar is distributed in the hope that it will be useful,
38851 # but WITHOUT ANY WARRANTY; without even the implied warranty of
38852 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38853 # GNU General Public License for more details.
38854 #
38855 # You should have received a copy of the GNU General Public License
38856 # along with dllar; see the file COPYING. If not, write to the Free
38857 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38858 # 02111-1307, USA.
38859
38860 # To successfuly run this program you will need:
38861 # - Current drive should have LFN support (HPFS, ext2, network, etc)
38862 # (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38863 # - gcc
38864 # (used to build the .dll)
38865 # - emxexp
38866 # (used to create .def file from .o files)
38867 # - emximp
38868 # (used to create .a file from .def file)
38869 # - GNU text utilites (cat, sort, uniq)
38870 # used to process emxexp output
38871 # - GNU file utilities (mv, rm)
38872 # - GNU sed
38873 # - lxlite (optional, see flag below)
38874 # (used for general .dll cleanup)
38875 #
38876
38877 flag_USE_LXLITE=1;
38878
38879 #
38880 # helper functions
38881 # basnam, variant of basename, which does _not_ remove the path, _iff_
38882 # second argument (suffix to remove) is given
38883 basnam(){
38884 case ${D}# in
38885 1)
38886 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38887 ;;
38888 2)
38889 echo ${D}1 | sed 's/'${D}2'${D}//'
38890 ;;
38891 *)
38892 echo "error in basnam ${D}*"
38893 exit 8
38894 ;;
38895 esac
38896 }
38897
38898 # Cleanup temporary files and output
38899 CleanUp() {
38900 cd ${D}curDir
38901 for i in ${D}inputFiles ; do
38902 case ${D}i in
38903 *!)
38904 rm -rf \`basnam ${D}i !\`
38905 ;;
38906 *)
38907 ;;
38908 esac
38909 done
38910
38911 # Kill result in case of failure as there is just to many stupid make/nmake
38912 # things out there which doesn't do this.
38913 if ${D}# -eq 0 ; then
38914 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38915 fi
38916 }
38917
38918 # Print usage and exit script with rc=1.
38919 PrintHelp() {
38920 echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
38921 echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
38922 echo ' -ord[inals] -exclude "symbol(s)"'
38923 echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
38924 echo ' *.o *.a'
38925 echo '*> "output_file" should have no extension.'
38926 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38927 echo ' The import library name is derived from this and is set to "name".a,'
38928 echo ' unless overridden by -import'
38929 echo '*> "importlib_name" should have no extension.'
38930 echo ' If it has the .o, or .a extension, it is automatically removed.'
38931 echo ' This name is used as the import library name and may be longer and'
38932 echo ' more descriptive than the DLL name which has to follow the old '
38933 echo ' 8.3 convention of FAT.'
38934 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38935 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38936 echo ' These flags will be put at the start of GCC command line.'
38937 echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
38938 echo '*> -exclude defines symbols which will not be exported. You can define'
38939 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38940 echo ' If the last character of a symbol is "*", all symbols beginning'
38941 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
38942 echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
38943 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
38944 echo '*> -nocrtdll switch will disable linking the library against emx''s'
38945 echo ' C runtime DLLs.'
38946 echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
38947 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38948 echo ' unchanged to GCC at the end of command line.'
38949 echo '*> If you create a DLL from a library and you do not specify -o,'
38950 echo ' the basename for DLL and import library will be set to library name,'
38951 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38952 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38953 echo ' library will be renamed into gcc_s.a.'
38954 echo '--------'
38955 echo 'Example:'
38956 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38957 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38958 CleanUp
38959 exit 1
38960 }
38961
38962 # Execute a command.
38963 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38964 # @Uses Whatever CleanUp() uses.
38965 doCommand() {
38966 echo "${D}*"
38967 eval ${D}*
38968 rcCmd=${D}?
38969
38970 if ${D}rcCmd -ne 0 ; then
38971 echo "command failed, exit code="${D}rcCmd
38972 CleanUp
38973 exit ${D}rcCmd
38974 fi
38975 }
38976
38977 # main routine
38978 # setup globals
38979 cmdLine=${D}*
38980 outFile=""
38981 outimpFile=""
38982 inputFiles=""
38983 description=""
38984 CC=gcc.exe
38985 CFLAGS="-s -Zcrtdll"
38986 EXTRA_CFLAGS=""
38987 EXPORT_BY_ORDINALS=0
38988 exclude_symbols=""
38989 library_flags=""
38990 curDir=\`pwd\`
38991 curDirS=curDir
38992 case ${D}curDirS in
38993 */)
38994 ;;
38995 *)
38996 curDirS=${D}{curDirS}"/"
38997 ;;
38998 esac
38999 # Parse commandline
39000 libsToLink=0
39001 while ${D}1 ; do
39002 case ${D}1 in
39003 -ord*)
39004 EXPORT_BY_ORDINALS=1;
39005 ;;
39006 -o*)
39007 shift
39008 outFile=${D}1
39009 ;;
39010 -i*)
39011 shift
39012 outimpFile=${D}1
39013 ;;
39014 -d*)
39015 shift
39016 description=${D}1
39017 ;;
39018 -f*)
39019 shift
39020 CFLAGS=${D}1
39021 ;;
39022 -c*)
39023 shift
39024 CC=${D}1
39025 ;;
39026 -h*)
39027 PrintHelp
39028 ;;
39029 -ex*)
39030 shift
39031 exclude_symbols=${D}{exclude_symbols}${D}1" "
39032 ;;
39033 -libf*)
39034 shift
39035 library_flags=${D}{library_flags}${D}1" "
39036 ;;
39037 -nocrt*)
39038 CFLAGS="-s"
39039 ;;
39040 -nolxl*)
39041 flag_USE_LXLITE=0
39042 ;;
39043 -* | /*)
39044 case ${D}1 in
39045 -L* | -l*)
39046 libsToLink=1
39047 ;;
39048 *)
39049 ;;
39050 esac
39051 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39052 ;;
39053 *)
39054 found=0;
39055 if ${D}libsToLink -ne 0 ; then
39056 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39057 else
39058 for file in ${D}1 ; do
39059 if -f ${D}file ; then
39060 inputFiles="${D}{inputFiles} ${D}file"
39061 found=1
39062 fi
39063 done
39064 if ${D}found -eq 0 ; then
39065 echo "ERROR: No file(s) found: "${D}1
39066 exit 8
39067 fi
39068 fi
39069 ;;
39070 esac
39071 shift
39072 done # iterate cmdline words
39073
39074 #
39075 if -z "${D}inputFiles" ; then
39076 echo "dllar: no input files"
39077 PrintHelp
39078 fi
39079
39080 # Now extract all .o files from .a files
39081 newInputFiles=""
39082 for file in ${D}inputFiles ; do
39083 case ${D}file in
39084 *.a | *.lib)
39085 case ${D}file in
39086 *.a)
39087 suffix=".a"
39088 AR="ar"
39089 ;;
39090 *.lib)
39091 suffix=".lib"
39092 AR="emxomfar"
39093 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39094 ;;
39095 *)
39096 ;;
39097 esac
39098 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39099 mkdir ${D}dirname
39100 if ${D}? -ne 0 ; then
39101 echo "Failed to create subdirectory ./${D}dirname"
39102 CleanUp
39103 exit 8;
39104 fi
39105 # Append '!' to indicate archive
39106 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39107 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39108 cd ${D}curDir
39109 found=0;
39110 for subfile in ${D}dirname/*.o* ; do
39111 if -f ${D}subfile ; then
39112 found=1
39113 if -s ${D}subfile ; then
39114 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39115 newInputFiles="${D}newInputFiles ${D}subfile"
39116 fi
39117 fi
39118 done
39119 if ${D}found -eq 0 ; then
39120 echo "WARNING: there are no files in archive \'${D}file\'"
39121 fi
39122 ;;
39123 *)
39124 newInputFiles="${D}{newInputFiles} ${D}file"
39125 ;;
39126 esac
39127 done
39128 inputFiles="${D}newInputFiles"
39129
39130 # Output filename(s).
39131 do_backup=0;
39132 if -z ${D}outFile ; then
39133 do_backup=1;
39134 set outFile ${D}inputFiles; outFile=${D}2
39135 fi
39136
39137 # If it is an archive, remove the '!' and the '_%' suffixes
39138 case ${D}outFile in
39139 *_%!)
39140 outFile=\`basnam ${D}outFile _%!\`
39141 ;;
39142 *)
39143 ;;
39144 esac
39145 case ${D}outFile in
39146 *.dll)
39147 outFile=\`basnam ${D}outFile .dll\`
39148 ;;
39149 *.DLL)
39150 outFile=\`basnam ${D}outFile .DLL\`
39151 ;;
39152 *.o)
39153 outFile=\`basnam ${D}outFile .o\`
39154 ;;
39155 *.obj)
39156 outFile=\`basnam ${D}outFile .obj\`
39157 ;;
39158 *.a)
39159 outFile=\`basnam ${D}outFile .a\`
39160 ;;
39161 *.lib)
39162 outFile=\`basnam ${D}outFile .lib\`
39163 ;;
39164 *)
39165 ;;
39166 esac
39167 case ${D}outimpFile in
39168 *.a)
39169 outimpFile=\`basnam ${D}outimpFile .a\`
39170 ;;
39171 *.lib)
39172 outimpFile=\`basnam ${D}outimpFile .lib\`
39173 ;;
39174 *)
39175 ;;
39176 esac
39177 if -z ${D}outimpFile ; then
39178 outimpFile=${D}outFile
39179 fi
39180 defFile="${D}{outFile}.def"
39181 arcFile="${D}{outimpFile}.a"
39182 arcFile2="${D}{outimpFile}.lib"
39183 dllFile="${D}outFile"
39184 # Add suffix to dllFile later, first we need a version to use as
39185 # name in .def file.
39186
39187 if ${D}do_backup -ne 0 ; then
39188 if -f ${D}arcFile ; then
39189 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39190 fi
39191 if -f ${D}arcFile2 ; then
39192 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39193 fi
39194 fi
39195
39196 # Extract public symbols from all the object files.
39197 tmpdefFile=${D}{defFile}_%
39198 rm -f ${D}tmpdefFile
39199 for file in ${D}inputFiles ; do
39200 case ${D}file in
39201 *!)
39202 ;;
39203 *)
39204 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39205 ;;
39206 esac
39207 done
39208
39209 # Create the def file.
39210 rm -f ${D}defFile
39211 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39212 dllFile="${D}dllFile.dll"
39213 if -n ${D}description ; then
39214 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39215 fi
39216 echo "EXPORTS" >> ${D}defFile
39217
39218 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39219 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39220
39221 # Checks if the export is ok or not.
39222 for word in ${D}exclude_symbols; do
39223 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39224 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39225 done
39226
39227
39228 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39229 sed "=" < ${D}tmpdefFile | \
39230 sed '
39231 N
39232 : loop
39233 s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
39234 t loop
39235 ' > ${D}{tmpdefFile}%
39236 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39237 else
39238 rm -f ${D}{tmpdefFile}%
39239 fi
39240 cat ${D}tmpdefFile >> ${D}defFile
39241 rm -f ${D}tmpdefFile
39242
39243 # Do linking, create implib, and apply lxlite.
39244 gccCmdl="";
39245 for file in ${D}inputFiles ; do
39246 case ${D}file in
39247 *!)
39248 ;;
39249 *)
39250 gccCmdl="${D}gccCmdl ${D}file"
39251 ;;
39252 esac
39253 done
39254 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39255 touch "${D}{outFile}.dll"
39256
39257 doCommand "emximp -o ${D}arcFile ${D}defFile"
39258 if ${D}flag_USE_LXLITE -ne 0 ; then
39259 add_flags="";
39260 if ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39261 add_flags="-ynd"
39262 fi
39263 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39264 fi
39265 doCommand "emxomf -s -l ${D}arcFile"
39266
39267 # Successful exit.
39268 CleanUp 1
39269 exit 0
39270 EOF
39271
39272 chmod +x dllar.sh
39273 ;;
39274
39275 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39276 *-*-sunos4* | \
39277 *-*-osf* | \
39278 *-*-dgux5* | \
39279 *-*-sysv5* )
39280 ;;
39281
39282 *)
39283 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39284 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39285 { (exit 1); exit 1; }; }
39286 esac
39287
39288 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39289 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39290 fi
39291 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39292 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39293 fi
39294
39295
39296
39297
39298
39299
39300
39301
39302 USE_SOVERSION=0
39303 USE_SOVERLINUX=0
39304 USE_SOVERSOLARIS=0
39305 USE_SOSYMLINKS=0
39306 USE_MACVERSION=0
39307 SONAME_FLAG=
39308
39309 case "${BAKEFILE_HOST}" in
39310 *-*-linux* )
39311 SONAME_FLAG="-Wl,-soname,"
39312 USE_SOVERSION=1
39313 USE_SOVERLINUX=1
39314 USE_SOSYMLINKS=1
39315 ;;
39316
39317 *-*-solaris2* )
39318 SONAME_FLAG="-h "
39319 USE_SOVERSION=1
39320 USE_SOVERSOLARIS=1
39321 USE_SOSYMLINKS=1
39322 ;;
39323
39324 *-*-darwin* )
39325 USE_MACVERSION=1
39326 USE_SOVERSION=1
39327 USE_SOSYMLINKS=1
39328 ;;
39329 esac
39330
39331
39332
39333
39334
39335
39336
39337
39338
39339 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39340 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39341 DEPS_TRACKING=0
39342
39343 if test "x$GCC" = "xyes"; then
39344 DEPSMODE=gcc
39345 DEPS_TRACKING=1
39346 case "${BAKEFILE_HOST}" in
39347 powerpc-*-darwin* )
39348 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39349 ;;
39350 * )
39351 DEPSFLAG_GCC="-MMD"
39352 ;;
39353 esac
39354 echo "$as_me:$LINENO: result: gcc" >&5
39355 echo "${ECHO_T}gcc" >&6
39356 else
39357 echo "$as_me:$LINENO: result: none" >&5
39358 echo "${ECHO_T}none" >&6
39359 fi
39360
39361 if test $DEPS_TRACKING = 1 ; then
39362
39363 D='$'
39364 cat <<EOF >bk-deps
39365 #!/bin/sh
39366
39367 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39368 # script. It is used to track C/C++ files dependencies in portable way.
39369 #
39370 # Permission is given to use this file in any way.
39371
39372 DEPSMODE=${DEPSMODE}
39373 DEPSDIR=.deps
39374 DEPSFLAG_GCC="${DEPSFLAG_GCC}"
39375
39376 mkdir -p ${D}DEPSDIR
39377
39378 if test ${D}DEPSMODE = gcc ; then
39379 ${D}* ${D}{DEPSFLAG_GCC}
39380 status=${D}?
39381 if test ${D}{status} != 0 ; then
39382 exit ${D}{status}
39383 fi
39384 # move created file to the location we want it in:
39385 while test ${D}# -gt 0; do
39386 case "${D}1" in
39387 -o )
39388 shift
39389 objfile=${D}1
39390 ;;
39391 -* )
39392 ;;
39393 * )
39394 srcfile=${D}1
39395 ;;
39396 esac
39397 shift
39398 done
39399 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39400 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39401 if test -f ${D}depfile ; then
39402 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39403 rm -f ${D}depfile
39404 else
39405 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39406 if test -f ${D}depfile ; then
39407 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39408 rm -f ${D}depfile
39409 fi
39410 fi
39411 exit 0
39412 else
39413 ${D}*
39414 exit ${D}?
39415 fi
39416 EOF
39417
39418 chmod +x bk-deps
39419 fi
39420
39421
39422
39423
39424 RESCOMP=
39425 SETFILE=
39426
39427 case ${BAKEFILE_HOST} in
39428 *-*-cygwin* | *-*-mingw32* )
39429 if test "$build" != "$host" ; then
39430 RESCOMP=$host_alias-windres
39431 else
39432 # Extract the first word of "windres", so it can be a program name with args.
39433 set dummy windres; ac_word=$2
39434 echo "$as_me:$LINENO: checking for $ac_word" >&5
39435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39436 if test "${ac_cv_prog_RESCOMP+set}" = set; then
39437 echo $ECHO_N "(cached) $ECHO_C" >&6
39438 else
39439 if test -n "$RESCOMP"; then
39440 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39441 else
39442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39443 for as_dir in $PATH
39444 do
39445 IFS=$as_save_IFS
39446 test -z "$as_dir" && as_dir=.
39447 for ac_exec_ext in '' $ac_executable_extensions; do
39448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39449 ac_cv_prog_RESCOMP="windres"
39450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39451 break 2
39452 fi
39453 done
39454 done
39455
39456 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39457 fi
39458 fi
39459 RESCOMP=$ac_cv_prog_RESCOMP
39460 if test -n "$RESCOMP"; then
39461 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39462 echo "${ECHO_T}$RESCOMP" >&6
39463 else
39464 echo "$as_me:$LINENO: result: no" >&5
39465 echo "${ECHO_T}no" >&6
39466 fi
39467
39468 fi
39469 ;;
39470
39471 *-*-darwin* )
39472 # Extract the first word of "Rez", so it can be a program name with args.
39473 set dummy Rez; ac_word=$2
39474 echo "$as_me:$LINENO: checking for $ac_word" >&5
39475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39476 if test "${ac_cv_prog_RESCOMP+set}" = set; then
39477 echo $ECHO_N "(cached) $ECHO_C" >&6
39478 else
39479 if test -n "$RESCOMP"; then
39480 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39481 else
39482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39483 for as_dir in $PATH
39484 do
39485 IFS=$as_save_IFS
39486 test -z "$as_dir" && as_dir=.
39487 for ac_exec_ext in '' $ac_executable_extensions; do
39488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39489 ac_cv_prog_RESCOMP="Rez"
39490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39491 break 2
39492 fi
39493 done
39494 done
39495
39496 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39497 fi
39498 fi
39499 RESCOMP=$ac_cv_prog_RESCOMP
39500 if test -n "$RESCOMP"; then
39501 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39502 echo "${ECHO_T}$RESCOMP" >&6
39503 else
39504 echo "$as_me:$LINENO: result: no" >&5
39505 echo "${ECHO_T}no" >&6
39506 fi
39507
39508 # Extract the first word of "SetFile", so it can be a program name with args.
39509 set dummy SetFile; ac_word=$2
39510 echo "$as_me:$LINENO: checking for $ac_word" >&5
39511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39512 if test "${ac_cv_prog_SETFILE+set}" = set; then
39513 echo $ECHO_N "(cached) $ECHO_C" >&6
39514 else
39515 if test -n "$SETFILE"; then
39516 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39517 else
39518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39519 for as_dir in $PATH
39520 do
39521 IFS=$as_save_IFS
39522 test -z "$as_dir" && as_dir=.
39523 for ac_exec_ext in '' $ac_executable_extensions; do
39524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39525 ac_cv_prog_SETFILE="SetFile"
39526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39527 break 2
39528 fi
39529 done
39530 done
39531
39532 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39533 fi
39534 fi
39535 SETFILE=$ac_cv_prog_SETFILE
39536 if test -n "$SETFILE"; then
39537 echo "$as_me:$LINENO: result: $SETFILE" >&5
39538 echo "${ECHO_T}$SETFILE" >&6
39539 else
39540 echo "$as_me:$LINENO: result: no" >&5
39541 echo "${ECHO_T}no" >&6
39542 fi
39543
39544 ;;
39545 esac
39546
39547
39548
39549
39550
39551
39552
39553
39554
39555 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
39556
39557
39558
39559 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39560 if test "${enable_precomp_headers+set}" = set; then
39561 enableval="$enable_precomp_headers"
39562 bk_use_pch="$enableval"
39563 fi;
39564
39565 GCC_PCH=0
39566
39567 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39568 if test "x$GCC" = "xyes"; then
39569 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39570 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39571 cat >conftest.$ac_ext <<_ACEOF
39572 /* confdefs.h. */
39573 _ACEOF
39574 cat confdefs.h >>conftest.$ac_ext
39575 cat >>conftest.$ac_ext <<_ACEOF
39576 /* end confdefs.h. */
39577
39578 int
39579 main ()
39580 {
39581
39582 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39583 #error "no pch support"
39584 #endif
39585 #if (__GNUC__ < 3)
39586 #error "no pch support"
39587 #endif
39588 #if (__GNUC__ == 3) && \
39589 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39590 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39591 #error "no pch support"
39592 #endif
39593
39594 ;
39595 return 0;
39596 }
39597 _ACEOF
39598 rm -f conftest.$ac_objext
39599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39600 (eval $ac_compile) 2>conftest.er1
39601 ac_status=$?
39602 grep -v '^ *+' conftest.er1 >conftest.err
39603 rm -f conftest.er1
39604 cat conftest.err >&5
39605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606 (exit $ac_status); } &&
39607 { ac_try='test -z "$ac_c_werror_flag"
39608 || test ! -s conftest.err'
39609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610 (eval $ac_try) 2>&5
39611 ac_status=$?
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); }; } &&
39614 { ac_try='test -s conftest.$ac_objext'
39615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39616 (eval $ac_try) 2>&5
39617 ac_status=$?
39618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619 (exit $ac_status); }; }; then
39620
39621 echo "$as_me:$LINENO: result: yes" >&5
39622 echo "${ECHO_T}yes" >&6
39623 CPPFLAGS="-fpch-deps $CPPFLAGS"
39624 GCC_PCH=1
39625
39626 else
39627 echo "$as_me: failed program was:" >&5
39628 sed 's/^/| /' conftest.$ac_ext >&5
39629
39630
39631 echo "$as_me:$LINENO: result: no" >&5
39632 echo "${ECHO_T}no" >&6
39633
39634 fi
39635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39636 if test $GCC_PCH = 1 ; then
39637 cat <<EOF >bk-make-pch
39638 #!/bin/sh
39639
39640 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39641 # script. It is used to generated precompiled headers.
39642 #
39643 # Permission is given to use this file in any way.
39644
39645 outfile="\${1}"
39646 header="\${2}"
39647 shift
39648 shift
39649
39650 compiler=
39651 headerfile=
39652 while test \${#} -gt 0; do
39653 case "\${1}" in
39654 -I* )
39655 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39656 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39657 headerfile="\${incdir}/\${header}"
39658 fi
39659 ;;
39660 esac
39661 compiler="\${compiler} \${1}"
39662 shift
39663 done
39664
39665 if test "x\${headerfile}" = "x" ; then
39666 echo "error: can't find header \${header} in include paths" >2
39667 else
39668 if test -f \${outfile} ; then
39669 rm -f \${outfile}
39670 else
39671 mkdir -p \`dirname \${outfile}\`
39672 fi
39673 depsfile=".deps/\`basename \${outfile}\`.d"
39674 mkdir -p .deps
39675 # can do this because gcc is >= 3.4:
39676 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39677 exit \${?}
39678 fi
39679 EOF
39680 chmod +x bk-make-pch
39681 fi
39682 fi
39683 fi
39684
39685
39686
39687
39688
39689
39690
39691 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39692 if test "${enable_precomp_headers+set}" = set; then
39693 enableval="$enable_precomp_headers"
39694 bk_use_pch="$enableval"
39695 fi;
39696
39697 GCC_PCH=0
39698
39699 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39700 if test "x$GCC" = "xyes"; then
39701 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39702 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39703 cat >conftest.$ac_ext <<_ACEOF
39704 /* confdefs.h. */
39705 _ACEOF
39706 cat confdefs.h >>conftest.$ac_ext
39707 cat >>conftest.$ac_ext <<_ACEOF
39708 /* end confdefs.h. */
39709
39710 int
39711 main ()
39712 {
39713
39714 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39715 #error "no pch support"
39716 #endif
39717 #if (__GNUC__ < 3)
39718 #error "no pch support"
39719 #endif
39720 #if (__GNUC__ == 3) && \
39721 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39722 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39723 #error "no pch support"
39724 #endif
39725
39726 ;
39727 return 0;
39728 }
39729 _ACEOF
39730 rm -f conftest.$ac_objext
39731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39732 (eval $ac_compile) 2>conftest.er1
39733 ac_status=$?
39734 grep -v '^ *+' conftest.er1 >conftest.err
39735 rm -f conftest.er1
39736 cat conftest.err >&5
39737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39738 (exit $ac_status); } &&
39739 { ac_try='test -z "$ac_c_werror_flag"
39740 || test ! -s conftest.err'
39741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39742 (eval $ac_try) 2>&5
39743 ac_status=$?
39744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39745 (exit $ac_status); }; } &&
39746 { ac_try='test -s conftest.$ac_objext'
39747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39748 (eval $ac_try) 2>&5
39749 ac_status=$?
39750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39751 (exit $ac_status); }; }; then
39752
39753 echo "$as_me:$LINENO: result: yes" >&5
39754 echo "${ECHO_T}yes" >&6
39755 CPPFLAGS="-fpch-deps $CPPFLAGS"
39756 GCC_PCH=1
39757
39758 else
39759 echo "$as_me: failed program was:" >&5
39760 sed 's/^/| /' conftest.$ac_ext >&5
39761
39762
39763 echo "$as_me:$LINENO: result: no" >&5
39764 echo "${ECHO_T}no" >&6
39765
39766 fi
39767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39768 if test $GCC_PCH = 1 ; then
39769 cat <<EOF >bk-make-pch
39770 #!/bin/sh
39771
39772 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39773 # script. It is used to generated precompiled headers.
39774 #
39775 # Permission is given to use this file in any way.
39776
39777 outfile="\${1}"
39778 header="\${2}"
39779 shift
39780 shift
39781
39782 compiler=
39783 headerfile=
39784 while test \${#} -gt 0; do
39785 case "\${1}" in
39786 -I* )
39787 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39788 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39789 headerfile="\${incdir}/\${header}"
39790 fi
39791 ;;
39792 esac
39793 compiler="\${compiler} \${1}"
39794 shift
39795 done
39796
39797 if test "x\${headerfile}" = "x" ; then
39798 echo "error: can't find header \${header} in include paths" >2
39799 else
39800 if test -f \${outfile} ; then
39801 rm -f \${outfile}
39802 else
39803 mkdir -p \`dirname \${outfile}\`
39804 fi
39805 depsfile=".deps/\`basename \${outfile}\`.d"
39806 mkdir -p .deps
39807 # can do this because gcc is >= 3.4:
39808 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39809 exit \${?}
39810 fi
39811 EOF
39812 chmod +x bk-make-pch
39813 fi
39814 fi
39815 fi
39816
39817
39818
39819
39820 COND_BUILD_DEBUG="#"
39821 if test "x$BUILD" = "xdebug" ; then
39822 COND_BUILD_DEBUG=""
39823 fi
39824
39825 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39826 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39827 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39828 fi
39829
39830 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39831 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39832 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39833 fi
39834
39835 COND_BUILD_DEBUG_UNICODE_0="#"
39836 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39837 COND_BUILD_DEBUG_UNICODE_0=""
39838 fi
39839
39840 COND_BUILD_DEBUG_UNICODE_1="#"
39841 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39842 COND_BUILD_DEBUG_UNICODE_1=""
39843 fi
39844
39845 COND_BUILD_RELEASE="#"
39846 if test "x$BUILD" = "xrelease" ; then
39847 COND_BUILD_RELEASE=""
39848 fi
39849
39850 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39851 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39852 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39853 fi
39854
39855 COND_BUILD_RELEASE_UNICODE_0="#"
39856 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39857 COND_BUILD_RELEASE_UNICODE_0=""
39858 fi
39859
39860 COND_BUILD_RELEASE_UNICODE_1="#"
39861 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39862 COND_BUILD_RELEASE_UNICODE_1=""
39863 fi
39864
39865 COND_DEBUG_FLAG_1="#"
39866 if test "x$DEBUG_FLAG" = "x1" ; then
39867 COND_DEBUG_FLAG_1=""
39868 fi
39869
39870 COND_DEBUG_INFO_0="#"
39871 if test "x$DEBUG_INFO" = "x0" ; then
39872 COND_DEBUG_INFO_0=""
39873 fi
39874
39875 COND_DEBUG_INFO_1="#"
39876 if test "x$DEBUG_INFO" = "x1" ; then
39877 COND_DEBUG_INFO_1=""
39878 fi
39879
39880 COND_DEPS_TRACKING_0="#"
39881 if test "x$DEPS_TRACKING" = "x0" ; then
39882 COND_DEPS_TRACKING_0=""
39883 fi
39884
39885 COND_DEPS_TRACKING_1="#"
39886 if test "x$DEPS_TRACKING" = "x1" ; then
39887 COND_DEPS_TRACKING_1=""
39888 fi
39889
39890 COND_GCC_PCH_1="#"
39891 if test "x$GCC_PCH" = "x1" ; then
39892 COND_GCC_PCH_1=""
39893 fi
39894
39895 COND_MONOLITHIC_0="#"
39896 if test "x$MONOLITHIC" = "x0" ; then
39897 COND_MONOLITHIC_0=""
39898 fi
39899
39900 COND_MONOLITHIC_0_SHARED_0="#"
39901 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39902 COND_MONOLITHIC_0_SHARED_0=""
39903 fi
39904
39905 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39906 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39907 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39908 fi
39909
39910 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39911 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39912 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39913 fi
39914
39915 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39916 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39917 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39918 fi
39919
39920 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39921 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39922 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39923 fi
39924
39925 COND_MONOLITHIC_0_SHARED_1="#"
39926 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39927 COND_MONOLITHIC_0_SHARED_1=""
39928 fi
39929
39930 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39931 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39932 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39933 fi
39934
39935 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39936 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39937 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39938 fi
39939
39940 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39941 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39942 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39943 fi
39944
39945 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39946 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39947 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39948 fi
39949
39950 COND_MONOLITHIC_0_USE_ODBC_1="#"
39951 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39952 COND_MONOLITHIC_0_USE_ODBC_1=""
39953 fi
39954
39955 COND_MONOLITHIC_1="#"
39956 if test "x$MONOLITHIC" = "x1" ; then
39957 COND_MONOLITHIC_1=""
39958 fi
39959
39960 COND_MONOLITHIC_1_SHARED_0="#"
39961 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39962 COND_MONOLITHIC_1_SHARED_0=""
39963 fi
39964
39965 COND_MONOLITHIC_1_SHARED_1="#"
39966 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39967 COND_MONOLITHIC_1_SHARED_1=""
39968 fi
39969
39970 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39971 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39972 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39973 fi
39974
39975 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39976 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39977 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39978 fi
39979
39980 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39981 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39982 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39983 fi
39984
39985 COND_PLATFORM_MACOSX_1="#"
39986 if test "x$PLATFORM_MACOSX" = "x1" ; then
39987 COND_PLATFORM_MACOSX_1=""
39988 fi
39989
39990 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39991 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39992 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39993 fi
39994
39995 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39996 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39997 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39998 fi
39999
40000 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40001 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40002 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40003 fi
40004
40005 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40006 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40007 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40008 fi
40009
40010 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40011 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40012 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40013 fi
40014
40015 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40016 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40017 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40018 fi
40019
40020 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40021 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40022 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40023 fi
40024
40025 COND_PLATFORM_MAC_1="#"
40026 if test "x$PLATFORM_MAC" = "x1" ; then
40027 COND_PLATFORM_MAC_1=""
40028 fi
40029
40030 COND_PLATFORM_OS2_1="#"
40031 if test "x$PLATFORM_OS2" = "x1" ; then
40032 COND_PLATFORM_OS2_1=""
40033 fi
40034
40035 COND_PLATFORM_UNIX_0="#"
40036 if test "x$PLATFORM_UNIX" = "x0" ; then
40037 COND_PLATFORM_UNIX_0=""
40038 fi
40039
40040 COND_PLATFORM_UNIX_1="#"
40041 if test "x$PLATFORM_UNIX" = "x1" ; then
40042 COND_PLATFORM_UNIX_1=""
40043 fi
40044
40045 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40046 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40047 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40048 fi
40049
40050 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40051 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40052 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40053 fi
40054
40055 COND_PLATFORM_WIN32_0="#"
40056 if test "x$PLATFORM_WIN32" = "x0" ; then
40057 COND_PLATFORM_WIN32_0=""
40058 fi
40059
40060 COND_PLATFORM_WIN32_1="#"
40061 if test "x$PLATFORM_WIN32" = "x1" ; then
40062 COND_PLATFORM_WIN32_1=""
40063 fi
40064
40065 COND_SHARED_0="#"
40066 if test "x$SHARED" = "x0" ; then
40067 COND_SHARED_0=""
40068 fi
40069
40070 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40071 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40072 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40073 fi
40074
40075 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40076 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40077 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40078 fi
40079
40080 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40081 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40082 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40083 fi
40084
40085 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40086 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40087 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40088 fi
40089
40090 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40091 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40092 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40093 fi
40094
40095 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40096 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40097 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40098 fi
40099
40100 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40101 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40102 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40103 fi
40104
40105 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40106 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40107 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40108 fi
40109
40110 COND_SHARED_1="#"
40111 if test "x$SHARED" = "x1" ; then
40112 COND_SHARED_1=""
40113 fi
40114
40115 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40116 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40117 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40118 fi
40119
40120 COND_TOOLKIT_COCOA="#"
40121 if test "x$TOOLKIT" = "xCOCOA" ; then
40122 COND_TOOLKIT_COCOA=""
40123 fi
40124
40125 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40126 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40127 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40128 fi
40129
40130 COND_TOOLKIT_GTK="#"
40131 if test "x$TOOLKIT" = "xGTK" ; then
40132 COND_TOOLKIT_GTK=""
40133 fi
40134
40135 COND_TOOLKIT_GTK_USE_GUI_1="#"
40136 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40137 COND_TOOLKIT_GTK_USE_GUI_1=""
40138 fi
40139
40140 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40141 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40142 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40143 fi
40144
40145 COND_TOOLKIT_MAC="#"
40146 if test "x$TOOLKIT" = "xMAC" ; then
40147 COND_TOOLKIT_MAC=""
40148 fi
40149
40150 COND_TOOLKIT_MAC_USE_GUI_1="#"
40151 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40152 COND_TOOLKIT_MAC_USE_GUI_1=""
40153 fi
40154
40155 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40156 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40157 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40158 fi
40159
40160 COND_TOOLKIT_MAC_WXUNIV_0="#"
40161 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40162 COND_TOOLKIT_MAC_WXUNIV_0=""
40163 fi
40164
40165 COND_TOOLKIT_MGL="#"
40166 if test "x$TOOLKIT" = "xMGL" ; then
40167 COND_TOOLKIT_MGL=""
40168 fi
40169
40170 COND_TOOLKIT_MGL_USE_GUI_1="#"
40171 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40172 COND_TOOLKIT_MGL_USE_GUI_1=""
40173 fi
40174
40175 COND_TOOLKIT_MOTIF="#"
40176 if test "x$TOOLKIT" = "xMOTIF" ; then
40177 COND_TOOLKIT_MOTIF=""
40178 fi
40179
40180 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40181 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40182 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40183 fi
40184
40185 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40186 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40187 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40188 fi
40189
40190 COND_TOOLKIT_MSW="#"
40191 if test "x$TOOLKIT" = "xMSW" ; then
40192 COND_TOOLKIT_MSW=""
40193 fi
40194
40195 COND_TOOLKIT_MSW_USE_GUI_1="#"
40196 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40197 COND_TOOLKIT_MSW_USE_GUI_1=""
40198 fi
40199
40200 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40201 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40202 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40203 fi
40204
40205 COND_TOOLKIT_MSW_WXUNIV_0="#"
40206 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40207 COND_TOOLKIT_MSW_WXUNIV_0=""
40208 fi
40209
40210 COND_TOOLKIT_PM="#"
40211 if test "x$TOOLKIT" = "xPM" ; then
40212 COND_TOOLKIT_PM=""
40213 fi
40214
40215 COND_TOOLKIT_PM_USE_GUI_1="#"
40216 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40217 COND_TOOLKIT_PM_USE_GUI_1=""
40218 fi
40219
40220 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40221 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40222 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40223 fi
40224
40225 COND_TOOLKIT_PM_WXUNIV_0="#"
40226 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40227 COND_TOOLKIT_PM_WXUNIV_0=""
40228 fi
40229
40230 COND_TOOLKIT_WINCE="#"
40231 if test "x$TOOLKIT" = "xWINCE" ; then
40232 COND_TOOLKIT_WINCE=""
40233 fi
40234
40235 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40236 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40237 COND_TOOLKIT_WINCE_USE_GUI_1=""
40238 fi
40239
40240 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40241 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40242 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40243 fi
40244
40245 COND_TOOLKIT_X11="#"
40246 if test "x$TOOLKIT" = "xX11" ; then
40247 COND_TOOLKIT_X11=""
40248 fi
40249
40250 COND_TOOLKIT_X11_USE_GUI_1="#"
40251 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40252 COND_TOOLKIT_X11_USE_GUI_1=""
40253 fi
40254
40255 COND_UNICODE_1="#"
40256 if test "x$UNICODE" = "x1" ; then
40257 COND_UNICODE_1=""
40258 fi
40259
40260 COND_USE_EXCEPTIONS_0="#"
40261 if test "x$USE_EXCEPTIONS" = "x0" ; then
40262 COND_USE_EXCEPTIONS_0=""
40263 fi
40264
40265 COND_USE_EXCEPTIONS_1="#"
40266 if test "x$USE_EXCEPTIONS" = "x1" ; then
40267 COND_USE_EXCEPTIONS_1=""
40268 fi
40269
40270 COND_USE_GUI_0="#"
40271 if test "x$USE_GUI" = "x0" ; then
40272 COND_USE_GUI_0=""
40273 fi
40274
40275 COND_USE_GUI_1="#"
40276 if test "x$USE_GUI" = "x1" ; then
40277 COND_USE_GUI_1=""
40278 fi
40279
40280 COND_USE_GUI_1_WXUNIV_0="#"
40281 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40282 COND_USE_GUI_1_WXUNIV_0=""
40283 fi
40284
40285 COND_USE_GUI_1_WXUNIV_1="#"
40286 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40287 COND_USE_GUI_1_WXUNIV_1=""
40288 fi
40289
40290 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40291 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40292 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40293 fi
40294
40295 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40296 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40297 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40298 fi
40299
40300 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40301 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40302 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40303 fi
40304
40305 COND_USE_ODBC_1="#"
40306 if test "x$USE_ODBC" = "x1" ; then
40307 COND_USE_ODBC_1=""
40308 fi
40309
40310 COND_USE_PLUGINS_0="#"
40311 if test "x$USE_PLUGINS" = "x0" ; then
40312 COND_USE_PLUGINS_0=""
40313 fi
40314
40315 COND_USE_SOSYMLINKS_1="#"
40316 if test "x$USE_SOSYMLINKS" = "x1" ; then
40317 COND_USE_SOSYMLINKS_1=""
40318 fi
40319
40320 COND_USE_SOVERLINUX_1="#"
40321 if test "x$USE_SOVERLINUX" = "x1" ; then
40322 COND_USE_SOVERLINUX_1=""
40323 fi
40324
40325 COND_USE_SOVERSION_0="#"
40326 if test "x$USE_SOVERSION" = "x0" ; then
40327 COND_USE_SOVERSION_0=""
40328 fi
40329
40330 COND_USE_SOVERSOLARIS_1="#"
40331 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40332 COND_USE_SOVERSOLARIS_1=""
40333 fi
40334
40335 COND_WITH_PLUGIN_SDL_1="#"
40336 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40337 COND_WITH_PLUGIN_SDL_1=""
40338 fi
40339
40340 COND_WITH_SDL_1="#"
40341 if test "x$WITH_SDL" = "x1" ; then
40342 COND_WITH_SDL_1=""
40343 fi
40344
40345 COND_WXUNIV_1="#"
40346 if test "x$WXUNIV" = "x1" ; then
40347 COND_WXUNIV_1=""
40348 fi
40349
40350 COND_WXUSE_EXPAT_BUILTIN="#"
40351 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40352 COND_WXUSE_EXPAT_BUILTIN=""
40353 fi
40354
40355 COND_WXUSE_LIBJPEG_BUILTIN="#"
40356 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40357 COND_WXUSE_LIBJPEG_BUILTIN=""
40358 fi
40359
40360 COND_WXUSE_LIBPNG_BUILTIN="#"
40361 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40362 COND_WXUSE_LIBPNG_BUILTIN=""
40363 fi
40364
40365 COND_WXUSE_LIBTIFF_BUILTIN="#"
40366 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40367 COND_WXUSE_LIBTIFF_BUILTIN=""
40368 fi
40369
40370 COND_WXUSE_ODBC_BUILTIN="#"
40371 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40372 COND_WXUSE_ODBC_BUILTIN=""
40373 fi
40374
40375 COND_WXUSE_REGEX_BUILTIN="#"
40376 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40377 COND_WXUSE_REGEX_BUILTIN=""
40378 fi
40379
40380 COND_WXUSE_ZLIB_BUILTIN="#"
40381 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40382 COND_WXUSE_ZLIB_BUILTIN=""
40383 fi
40384
40385 COND_BUILD_DEBUG="#"
40386 if test "x$BUILD" = "xdebug" ; then
40387 COND_BUILD_DEBUG=""
40388 fi
40389
40390 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40391 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40392 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40393 fi
40394
40395 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40396 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40397 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40398 fi
40399
40400 COND_BUILD_DEBUG_UNICODE_0="#"
40401 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40402 COND_BUILD_DEBUG_UNICODE_0=""
40403 fi
40404
40405 COND_BUILD_DEBUG_UNICODE_1="#"
40406 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40407 COND_BUILD_DEBUG_UNICODE_1=""
40408 fi
40409
40410 COND_BUILD_RELEASE="#"
40411 if test "x$BUILD" = "xrelease" ; then
40412 COND_BUILD_RELEASE=""
40413 fi
40414
40415 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40416 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40417 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40418 fi
40419
40420 COND_BUILD_RELEASE_UNICODE_0="#"
40421 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40422 COND_BUILD_RELEASE_UNICODE_0=""
40423 fi
40424
40425 COND_BUILD_RELEASE_UNICODE_1="#"
40426 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40427 COND_BUILD_RELEASE_UNICODE_1=""
40428 fi
40429
40430 COND_DEBUG_FLAG_1="#"
40431 if test "x$DEBUG_FLAG" = "x1" ; then
40432 COND_DEBUG_FLAG_1=""
40433 fi
40434
40435 COND_DEBUG_INFO_0="#"
40436 if test "x$DEBUG_INFO" = "x0" ; then
40437 COND_DEBUG_INFO_0=""
40438 fi
40439
40440 COND_DEBUG_INFO_1="#"
40441 if test "x$DEBUG_INFO" = "x1" ; then
40442 COND_DEBUG_INFO_1=""
40443 fi
40444
40445 COND_DEPS_TRACKING_0="#"
40446 if test "x$DEPS_TRACKING" = "x0" ; then
40447 COND_DEPS_TRACKING_0=""
40448 fi
40449
40450 COND_DEPS_TRACKING_1="#"
40451 if test "x$DEPS_TRACKING" = "x1" ; then
40452 COND_DEPS_TRACKING_1=""
40453 fi
40454
40455 COND_GCC_PCH_1="#"
40456 if test "x$GCC_PCH" = "x1" ; then
40457 COND_GCC_PCH_1=""
40458 fi
40459
40460 COND_MONOLITHIC_0="#"
40461 if test "x$MONOLITHIC" = "x0" ; then
40462 COND_MONOLITHIC_0=""
40463 fi
40464
40465 COND_MONOLITHIC_0_SHARED_0="#"
40466 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40467 COND_MONOLITHIC_0_SHARED_0=""
40468 fi
40469
40470 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40471 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40472 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40473 fi
40474
40475 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40476 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40477 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40478 fi
40479
40480 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40481 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40482 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40483 fi
40484
40485 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40486 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40487 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40488 fi
40489
40490 COND_MONOLITHIC_0_SHARED_1="#"
40491 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40492 COND_MONOLITHIC_0_SHARED_1=""
40493 fi
40494
40495 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40496 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40497 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40498 fi
40499
40500 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40501 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40502 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40503 fi
40504
40505 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40506 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40507 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40508 fi
40509
40510 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40511 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40512 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40513 fi
40514
40515 COND_MONOLITHIC_0_USE_ODBC_1="#"
40516 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40517 COND_MONOLITHIC_0_USE_ODBC_1=""
40518 fi
40519
40520 COND_MONOLITHIC_1="#"
40521 if test "x$MONOLITHIC" = "x1" ; then
40522 COND_MONOLITHIC_1=""
40523 fi
40524
40525 COND_MONOLITHIC_1_SHARED_0="#"
40526 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40527 COND_MONOLITHIC_1_SHARED_0=""
40528 fi
40529
40530 COND_MONOLITHIC_1_SHARED_1="#"
40531 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40532 COND_MONOLITHIC_1_SHARED_1=""
40533 fi
40534
40535 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40536 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40537 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40538 fi
40539
40540 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40541 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40542 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40543 fi
40544
40545 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40546 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40547 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40548 fi
40549
40550 COND_PLATFORM_MACOSX_1="#"
40551 if test "x$PLATFORM_MACOSX" = "x1" ; then
40552 COND_PLATFORM_MACOSX_1=""
40553 fi
40554
40555 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40556 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40557 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40558 fi
40559
40560 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40561 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40562 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40563 fi
40564
40565 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40566 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40567 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40568 fi
40569
40570 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40571 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40572 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40573 fi
40574
40575 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40576 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40577 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40578 fi
40579
40580 COND_PLATFORM_MAC_1="#"
40581 if test "x$PLATFORM_MAC" = "x1" ; then
40582 COND_PLATFORM_MAC_1=""
40583 fi
40584
40585 COND_PLATFORM_OS2_1="#"
40586 if test "x$PLATFORM_OS2" = "x1" ; then
40587 COND_PLATFORM_OS2_1=""
40588 fi
40589
40590 COND_PLATFORM_UNIX_0="#"
40591 if test "x$PLATFORM_UNIX" = "x0" ; then
40592 COND_PLATFORM_UNIX_0=""
40593 fi
40594
40595 COND_PLATFORM_UNIX_1="#"
40596 if test "x$PLATFORM_UNIX" = "x1" ; then
40597 COND_PLATFORM_UNIX_1=""
40598 fi
40599
40600 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40601 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40602 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40603 fi
40604
40605 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40606 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40607 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40608 fi
40609
40610 COND_PLATFORM_WIN32_0="#"
40611 if test "x$PLATFORM_WIN32" = "x0" ; then
40612 COND_PLATFORM_WIN32_0=""
40613 fi
40614
40615 COND_PLATFORM_WIN32_1="#"
40616 if test "x$PLATFORM_WIN32" = "x1" ; then
40617 COND_PLATFORM_WIN32_1=""
40618 fi
40619
40620 COND_SHARED_0="#"
40621 if test "x$SHARED" = "x0" ; then
40622 COND_SHARED_0=""
40623 fi
40624
40625 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40626 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40627 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40628 fi
40629
40630 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40631 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40632 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40633 fi
40634
40635 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40636 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40637 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40638 fi
40639
40640 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40641 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40642 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40643 fi
40644
40645 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40646 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40647 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40648 fi
40649
40650 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40651 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40652 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40653 fi
40654
40655 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40656 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40657 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40658 fi
40659
40660 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40661 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40662 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40663 fi
40664
40665 COND_SHARED_1="#"
40666 if test "x$SHARED" = "x1" ; then
40667 COND_SHARED_1=""
40668 fi
40669
40670 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40671 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40672 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40673 fi
40674
40675 COND_TOOLKIT_COCOA="#"
40676 if test "x$TOOLKIT" = "xCOCOA" ; then
40677 COND_TOOLKIT_COCOA=""
40678 fi
40679
40680 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40681 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40682 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40683 fi
40684
40685 COND_TOOLKIT_GTK="#"
40686 if test "x$TOOLKIT" = "xGTK" ; then
40687 COND_TOOLKIT_GTK=""
40688 fi
40689
40690 COND_TOOLKIT_GTK_USE_GUI_1="#"
40691 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40692 COND_TOOLKIT_GTK_USE_GUI_1=""
40693 fi
40694
40695 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40696 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40697 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40698 fi
40699
40700 COND_TOOLKIT_MAC="#"
40701 if test "x$TOOLKIT" = "xMAC" ; then
40702 COND_TOOLKIT_MAC=""
40703 fi
40704
40705 COND_TOOLKIT_MAC_USE_GUI_1="#"
40706 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40707 COND_TOOLKIT_MAC_USE_GUI_1=""
40708 fi
40709
40710 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40711 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40712 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40713 fi
40714
40715 COND_TOOLKIT_MGL="#"
40716 if test "x$TOOLKIT" = "xMGL" ; then
40717 COND_TOOLKIT_MGL=""
40718 fi
40719
40720 COND_TOOLKIT_MGL_USE_GUI_1="#"
40721 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40722 COND_TOOLKIT_MGL_USE_GUI_1=""
40723 fi
40724
40725 COND_TOOLKIT_MOTIF="#"
40726 if test "x$TOOLKIT" = "xMOTIF" ; then
40727 COND_TOOLKIT_MOTIF=""
40728 fi
40729
40730 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40731 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40732 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40733 fi
40734
40735 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40736 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40737 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40738 fi
40739
40740 COND_TOOLKIT_MSW="#"
40741 if test "x$TOOLKIT" = "xMSW" ; then
40742 COND_TOOLKIT_MSW=""
40743 fi
40744
40745 COND_TOOLKIT_MSW_USE_GUI_1="#"
40746 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40747 COND_TOOLKIT_MSW_USE_GUI_1=""
40748 fi
40749
40750 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40751 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40752 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40753 fi
40754
40755 COND_TOOLKIT_PM="#"
40756 if test "x$TOOLKIT" = "xPM" ; then
40757 COND_TOOLKIT_PM=""
40758 fi
40759
40760 COND_TOOLKIT_PM_USE_GUI_1="#"
40761 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40762 COND_TOOLKIT_PM_USE_GUI_1=""
40763 fi
40764
40765 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40766 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40767 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40768 fi
40769
40770 COND_TOOLKIT_WINCE="#"
40771 if test "x$TOOLKIT" = "xWINCE" ; then
40772 COND_TOOLKIT_WINCE=""
40773 fi
40774
40775 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40776 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40777 COND_TOOLKIT_WINCE_USE_GUI_1=""
40778 fi
40779
40780 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40781 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40782 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40783 fi
40784
40785 COND_TOOLKIT_X11="#"
40786 if test "x$TOOLKIT" = "xX11" ; then
40787 COND_TOOLKIT_X11=""
40788 fi
40789
40790 COND_TOOLKIT_X11_USE_GUI_1="#"
40791 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40792 COND_TOOLKIT_X11_USE_GUI_1=""
40793 fi
40794
40795 COND_UNICODE_1="#"
40796 if test "x$UNICODE" = "x1" ; then
40797 COND_UNICODE_1=""
40798 fi
40799
40800 COND_USE_EXCEPTIONS_0="#"
40801 if test "x$USE_EXCEPTIONS" = "x0" ; then
40802 COND_USE_EXCEPTIONS_0=""
40803 fi
40804
40805 COND_USE_EXCEPTIONS_1="#"
40806 if test "x$USE_EXCEPTIONS" = "x1" ; then
40807 COND_USE_EXCEPTIONS_1=""
40808 fi
40809
40810 COND_USE_GUI_0="#"
40811 if test "x$USE_GUI" = "x0" ; then
40812 COND_USE_GUI_0=""
40813 fi
40814
40815 COND_USE_GUI_1="#"
40816 if test "x$USE_GUI" = "x1" ; then
40817 COND_USE_GUI_1=""
40818 fi
40819
40820 COND_USE_GUI_1_WXUNIV_0="#"
40821 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40822 COND_USE_GUI_1_WXUNIV_0=""
40823 fi
40824
40825 COND_USE_GUI_1_WXUNIV_1="#"
40826 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40827 COND_USE_GUI_1_WXUNIV_1=""
40828 fi
40829
40830 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40831 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40832 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40833 fi
40834
40835 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40836 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40837 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40838 fi
40839
40840 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40841 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40842 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40843 fi
40844
40845 COND_USE_ODBC_1="#"
40846 if test "x$USE_ODBC" = "x1" ; then
40847 COND_USE_ODBC_1=""
40848 fi
40849
40850 COND_USE_PLUGINS_0="#"
40851 if test "x$USE_PLUGINS" = "x0" ; then
40852 COND_USE_PLUGINS_0=""
40853 fi
40854
40855 COND_USE_SOSYMLINKS_1="#"
40856 if test "x$USE_SOSYMLINKS" = "x1" ; then
40857 COND_USE_SOSYMLINKS_1=""
40858 fi
40859
40860 COND_USE_SOVERLINUX_1="#"
40861 if test "x$USE_SOVERLINUX" = "x1" ; then
40862 COND_USE_SOVERLINUX_1=""
40863 fi
40864
40865 COND_USE_SOVERSION_0="#"
40866 if test "x$USE_SOVERSION" = "x0" ; then
40867 COND_USE_SOVERSION_0=""
40868 fi
40869
40870 COND_USE_SOVERSOLARIS_1="#"
40871 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40872 COND_USE_SOVERSOLARIS_1=""
40873 fi
40874
40875 COND_WITH_PLUGIN_SDL_1="#"
40876 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40877 COND_WITH_PLUGIN_SDL_1=""
40878 fi
40879
40880 COND_WXUNIV_1="#"
40881 if test "x$WXUNIV" = "x1" ; then
40882 COND_WXUNIV_1=""
40883 fi
40884
40885 COND_WXUSE_EXPAT_BUILTIN="#"
40886 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40887 COND_WXUSE_EXPAT_BUILTIN=""
40888 fi
40889
40890 COND_WXUSE_LIBJPEG_BUILTIN="#"
40891 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40892 COND_WXUSE_LIBJPEG_BUILTIN=""
40893 fi
40894
40895 COND_WXUSE_LIBPNG_BUILTIN="#"
40896 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40897 COND_WXUSE_LIBPNG_BUILTIN=""
40898 fi
40899
40900 COND_WXUSE_LIBTIFF_BUILTIN="#"
40901 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40902 COND_WXUSE_LIBTIFF_BUILTIN=""
40903 fi
40904
40905 COND_WXUSE_ODBC_BUILTIN="#"
40906 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40907 COND_WXUSE_ODBC_BUILTIN=""
40908 fi
40909
40910 COND_WXUSE_REGEX_BUILTIN="#"
40911 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40912 COND_WXUSE_REGEX_BUILTIN=""
40913 fi
40914
40915 COND_WXUSE_ZLIB_BUILTIN="#"
40916 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40917 COND_WXUSE_ZLIB_BUILTIN=""
40918 fi
40919
40920
40921
40922
40923
40924 GCC_PRAGMA_FLAGS=""
40925 if test $GCC_PCH = 1 ; then
40926 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
40927 else
40928 case "${host}" in
40929 powerpc-*-darwin* )
40930 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
40931 ;;
40932 *-*-mingw32* )
40933 if test "$wxUSE_STL" = "yes" -o \
40934 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40935 "$wxUSE_NO_RTTI" != "yes"; then
40936 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40937 echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
40938 cat >conftest.$ac_ext <<_ACEOF
40939 /* confdefs.h. */
40940 _ACEOF
40941 cat confdefs.h >>conftest.$ac_ext
40942 cat >>conftest.$ac_ext <<_ACEOF
40943 /* end confdefs.h. */
40944
40945 int
40946 main ()
40947 {
40948 #if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
40949 #error "Not GCC 3.2 or greater"
40950 #endif
40951
40952 ;
40953 return 0;
40954 }
40955 _ACEOF
40956 rm -f conftest.$ac_objext
40957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40958 (eval $ac_compile) 2>conftest.er1
40959 ac_status=$?
40960 grep -v '^ *+' conftest.er1 >conftest.err
40961 rm -f conftest.er1
40962 cat conftest.err >&5
40963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40964 (exit $ac_status); } &&
40965 { ac_try='test -z "$ac_c_werror_flag"
40966 || test ! -s conftest.err'
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40969 ac_status=$?
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; } &&
40972 { ac_try='test -s conftest.$ac_objext'
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40975 ac_status=$?
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; }; then
40978 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
40979 echo "$as_me:$LINENO: result: yes" >&5
40980 echo "${ECHO_T}yes" >&6
40981 else
40982 echo "$as_me: failed program was:" >&5
40983 sed 's/^/| /' conftest.$ac_ext >&5
40984
40985 echo "$as_me:$LINENO: result: no" >&5
40986 echo "${ECHO_T}no" >&6
40987 fi
40988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40989 fi
40990 ;;
40991 esac
40992 fi
40993 CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
40994
40995
40996 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
40997
40998
40999
41000
41001
41002
41003
41004
41005
41006
41007
41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
41073
41074
41075
41076
41077
41078
41079
41080
41081
41082
41083
41084
41085
41086
41087
41088
41089
41090
41091
41092
41093
41094
41095
41096
41097
41098
41099 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41100 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
41101 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
41102 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41103 echo $ECHO_N "(cached) $ECHO_C" >&6
41104 else
41105 cat >conftest.make <<\_ACEOF
41106 all:
41107 @echo 'ac_maketemp="$(MAKE)"'
41108 _ACEOF
41109 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41110 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41111 if test -n "$ac_maketemp"; then
41112 eval ac_cv_prog_make_${ac_make}_set=yes
41113 else
41114 eval ac_cv_prog_make_${ac_make}_set=no
41115 fi
41116 rm -f conftest.make
41117 fi
41118 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41119 echo "$as_me:$LINENO: result: yes" >&5
41120 echo "${ECHO_T}yes" >&6
41121 SET_MAKE=
41122 else
41123 echo "$as_me:$LINENO: result: no" >&5
41124 echo "${ECHO_T}no" >&6
41125 SET_MAKE="MAKE=${MAKE-make}"
41126 fi
41127
41128
41129 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41130 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41131 fi
41132
41133 ac_config_headers="$ac_config_headers setup.h"
41134
41135
41136 ac_config_files="$ac_config_files wx-config wx-config-wrapper version-script Makefile"
41137
41138
41139 ac_config_commands="$ac_config_commands default"
41140
41141
41142
41143 if test "$wxUSE_GUI" = "yes"; then
41144 SUBDIRS="samples demos utils contrib"
41145 else SUBDIRS="samples utils"
41146 fi
41147
41148
41149
41150 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41151 if test "${with_cppunit_prefix+set}" = set; then
41152 withval="$with_cppunit_prefix"
41153 cppunit_config_prefix="$withval"
41154 else
41155 cppunit_config_prefix=""
41156 fi;
41157
41158 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41159 if test "${with_cppunit_exec_prefix+set}" = set; then
41160 withval="$with_cppunit_exec_prefix"
41161 cppunit_config_exec_prefix="$withval"
41162 else
41163 cppunit_config_exec_prefix=""
41164 fi;
41165
41166 if test x$cppunit_config_exec_prefix != x ; then
41167 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41168 if test x${CPPUNIT_CONFIG+set} != xset ; then
41169 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41170 fi
41171 fi
41172 if test x$cppunit_config_prefix != x ; then
41173 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41174 if test x${CPPUNIT_CONFIG+set} != xset ; then
41175 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41176 fi
41177 fi
41178
41179 # Extract the first word of "cppunit-config", so it can be a program name with args.
41180 set dummy cppunit-config; ac_word=$2
41181 echo "$as_me:$LINENO: checking for $ac_word" >&5
41182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41183 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41184 echo $ECHO_N "(cached) $ECHO_C" >&6
41185 else
41186 case $CPPUNIT_CONFIG in
41187 [\\/]* | ?:[\\/]*)
41188 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41189 ;;
41190 *)
41191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41192 for as_dir in $PATH
41193 do
41194 IFS=$as_save_IFS
41195 test -z "$as_dir" && as_dir=.
41196 for ac_exec_ext in '' $ac_executable_extensions; do
41197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41198 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41200 break 2
41201 fi
41202 done
41203 done
41204
41205 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41206 ;;
41207 esac
41208 fi
41209 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41210
41211 if test -n "$CPPUNIT_CONFIG"; then
41212 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41213 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41214 else
41215 echo "$as_me:$LINENO: result: no" >&5
41216 echo "${ECHO_T}no" >&6
41217 fi
41218
41219 cppunit_version_min=1.8.0
41220
41221 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41222 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41223 no_cppunit=""
41224 if test "$CPPUNIT_CONFIG" = "no" ; then
41225 no_cppunit=yes
41226 echo "$as_me:$LINENO: result: no" >&5
41227 echo "${ECHO_T}no" >&6
41228 else
41229 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41230 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41231 cppunit_version=`$CPPUNIT_CONFIG --version`
41232
41233 cppunit_major_version=`echo $cppunit_version | \
41234 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41235 cppunit_minor_version=`echo $cppunit_version | \
41236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41237 cppunit_micro_version=`echo $cppunit_version | \
41238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41239
41240 cppunit_major_min=`echo $cppunit_version_min | \
41241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41242 cppunit_minor_min=`echo $cppunit_version_min | \
41243 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41244 cppunit_micro_min=`echo $cppunit_version_min | \
41245 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41246
41247 cppunit_version_proper=`expr \
41248 $cppunit_major_version \> $cppunit_major_min \| \
41249 $cppunit_major_version \= $cppunit_major_min \& \
41250 $cppunit_minor_version \> $cppunit_minor_min \| \
41251 $cppunit_major_version \= $cppunit_major_min \& \
41252 $cppunit_minor_version \= $cppunit_minor_min \& \
41253 $cppunit_micro_version \>= $cppunit_micro_min `
41254
41255 if test "$cppunit_version_proper" = "1" ; then
41256 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41257 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41258 else
41259 echo "$as_me:$LINENO: result: no" >&5
41260 echo "${ECHO_T}no" >&6
41261 no_cppunit=yes
41262 fi
41263 fi
41264
41265 if test "x$no_cppunit" = x ; then
41266 SUBDIRS="$SUBDIRS tests"
41267 else
41268 CPPUNIT_CFLAGS=""
41269 CPPUNIT_LIBS=""
41270 :
41271 fi
41272
41273
41274
41275
41276
41277 for subdir in `echo $SUBDIRS`; do
41278 if test -d ${srcdir}/${subdir} ; then
41279 if test "$wxUSE_GUI" = "yes"; then
41280 if test ${subdir} = "samples"; then
41281 makefiles="samples/Makefile.in $makefiles"
41282 for sample in `echo $SAMPLES_SUBDIRS`; do
41283 if test -d $srcdir/samples/$sample; then
41284 makefiles="samples/$sample/Makefile.in $makefiles"
41285 fi
41286 done
41287 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41288 fi
41289 else if test ${subdir} = "samples"; then
41290 makefiles="samples/Makefile.in samples/console/Makefile.in"
41291 elif test ${subdir} = "utils"; then
41292 makefiles="utils/HelpGen/Makefile.in \
41293 utils/HelpGen/src/Makefile.in \
41294 utils/tex2rtf/Makefile.in \
41295 utils/tex2rtf/src/Makefile.in"
41296 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41297 fi
41298 fi
41299
41300 for mkin in $makefiles ; do
41301 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41302 ac_config_files="$ac_config_files $mk"
41303
41304 done
41305 fi
41306 done
41307
41308
41309 cat >confcache <<\_ACEOF
41310 # This file is a shell script that caches the results of configure
41311 # tests run on this system so they can be shared between configure
41312 # scripts and configure runs, see configure's option --config-cache.
41313 # It is not useful on other systems. If it contains results you don't
41314 # want to keep, you may remove or edit it.
41315 #
41316 # config.status only pays attention to the cache file if you give it
41317 # the --recheck option to rerun configure.
41318 #
41319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41321 # following values.
41322
41323 _ACEOF
41324
41325 # The following way of writing the cache mishandles newlines in values,
41326 # but we know of no workaround that is simple, portable, and efficient.
41327 # So, don't put newlines in cache variables' values.
41328 # Ultrix sh set writes to stderr and can't be redirected directly,
41329 # and sets the high bit in the cache file unless we assign to the vars.
41330 {
41331 (set) 2>&1 |
41332 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41333 *ac_space=\ *)
41334 # `set' does not quote correctly, so add quotes (double-quote
41335 # substitution turns \\\\ into \\, and sed turns \\ into \).
41336 sed -n \
41337 "s/'/'\\\\''/g;
41338 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41339 ;;
41340 *)
41341 # `set' quotes correctly as required by POSIX, so do not add quotes.
41342 sed -n \
41343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
41344 ;;
41345 esac;
41346 } |
41347 sed '
41348 t clear
41349 : clear
41350 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41351 t end
41352 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41353 : end' >>confcache
41354 if diff $cache_file confcache >/dev/null 2>&1; then :; else
41355 if test -w $cache_file; then
41356 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41357 cat confcache >$cache_file
41358 else
41359 echo "not updating unwritable cache $cache_file"
41360 fi
41361 fi
41362 rm -f confcache
41363
41364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41365 # Let make expand exec_prefix.
41366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41367
41368 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41369 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41370 # trailing colons and then remove the whole line if VPATH becomes empty
41371 # (actually we leave an empty line to preserve line numbers).
41372 if test "x$srcdir" = x.; then
41373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
41374 s/:*\$(srcdir):*/:/;
41375 s/:*\${srcdir}:*/:/;
41376 s/:*@srcdir@:*/:/;
41377 s/^\([^=]*=[ ]*\):*/\1/;
41378 s/:*$//;
41379 s/^[^=]*=[ ]*$//;
41380 }'
41381 fi
41382
41383 DEFS=-DHAVE_CONFIG_H
41384
41385 ac_libobjs=
41386 ac_ltlibobjs=
41387 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41388 # 1. Remove the extension, and $U if already installed.
41389 ac_i=`echo "$ac_i" |
41390 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41391 # 2. Add them.
41392 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41393 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41394 done
41395 LIBOBJS=$ac_libobjs
41396
41397 LTLIBOBJS=$ac_ltlibobjs
41398
41399
41400
41401 : ${CONFIG_STATUS=./config.status}
41402 ac_clean_files_save=$ac_clean_files
41403 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41404 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41405 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41406 cat >$CONFIG_STATUS <<_ACEOF
41407 #! $SHELL
41408 # Generated by $as_me.
41409 # Run this file to recreate the current configuration.
41410 # Compiler output produced by configure, useful for debugging
41411 # configure, is in config.log if it exists.
41412
41413 debug=false
41414 ac_cs_recheck=false
41415 ac_cs_silent=false
41416 SHELL=\${CONFIG_SHELL-$SHELL}
41417 _ACEOF
41418
41419 cat >>$CONFIG_STATUS <<\_ACEOF
41420 ## --------------------- ##
41421 ## M4sh Initialization. ##
41422 ## --------------------- ##
41423
41424 # Be Bourne compatible
41425 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41426 emulate sh
41427 NULLCMD=:
41428 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41429 # is contrary to our usage. Disable this feature.
41430 alias -g '${1+"$@"}'='"$@"'
41431 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41432 set -o posix
41433 fi
41434 DUALCASE=1; export DUALCASE # for MKS sh
41435
41436 # Support unset when possible.
41437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41438 as_unset=unset
41439 else
41440 as_unset=false
41441 fi
41442
41443
41444 # Work around bugs in pre-3.0 UWIN ksh.
41445 $as_unset ENV MAIL MAILPATH
41446 PS1='$ '
41447 PS2='> '
41448 PS4='+ '
41449
41450 # NLS nuisances.
41451 for as_var in \
41452 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41453 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41454 LC_TELEPHONE LC_TIME
41455 do
41456 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41457 eval $as_var=C; export $as_var
41458 else
41459 $as_unset $as_var
41460 fi
41461 done
41462
41463 # Required to use basename.
41464 if expr a : '\(a\)' >/dev/null 2>&1; then
41465 as_expr=expr
41466 else
41467 as_expr=false
41468 fi
41469
41470 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41471 as_basename=basename
41472 else
41473 as_basename=false
41474 fi
41475
41476
41477 # Name of the executable.
41478 as_me=`$as_basename "$0" ||
41479 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41480 X"$0" : 'X\(//\)$' \| \
41481 X"$0" : 'X\(/\)$' \| \
41482 . : '\(.\)' 2>/dev/null ||
41483 echo X/"$0" |
41484 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41485 /^X\/\(\/\/\)$/{ s//\1/; q; }
41486 /^X\/\(\/\).*/{ s//\1/; q; }
41487 s/.*/./; q'`
41488
41489
41490 # PATH needs CR, and LINENO needs CR and PATH.
41491 # Avoid depending upon Character Ranges.
41492 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41493 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41494 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41495 as_cr_digits='0123456789'
41496 as_cr_alnum=$as_cr_Letters$as_cr_digits
41497
41498 # The user is always right.
41499 if test "${PATH_SEPARATOR+set}" != set; then
41500 echo "#! /bin/sh" >conf$$.sh
41501 echo "exit 0" >>conf$$.sh
41502 chmod +x conf$$.sh
41503 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41504 PATH_SEPARATOR=';'
41505 else
41506 PATH_SEPARATOR=:
41507 fi
41508 rm -f conf$$.sh
41509 fi
41510
41511
41512 as_lineno_1=$LINENO
41513 as_lineno_2=$LINENO
41514 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41515 test "x$as_lineno_1" != "x$as_lineno_2" &&
41516 test "x$as_lineno_3" = "x$as_lineno_2" || {
41517 # Find who we are. Look in the path if we contain no path at all
41518 # relative or not.
41519 case $0 in
41520 *[\\/]* ) as_myself=$0 ;;
41521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41522 for as_dir in $PATH
41523 do
41524 IFS=$as_save_IFS
41525 test -z "$as_dir" && as_dir=.
41526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41527 done
41528
41529 ;;
41530 esac
41531 # We did not find ourselves, most probably we were run as `sh COMMAND'
41532 # in which case we are not to be found in the path.
41533 if test "x$as_myself" = x; then
41534 as_myself=$0
41535 fi
41536 if test ! -f "$as_myself"; then
41537 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41538 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41539 { (exit 1); exit 1; }; }
41540 fi
41541 case $CONFIG_SHELL in
41542 '')
41543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41544 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41545 do
41546 IFS=$as_save_IFS
41547 test -z "$as_dir" && as_dir=.
41548 for as_base in sh bash ksh sh5; do
41549 case $as_dir in
41550 /*)
41551 if ("$as_dir/$as_base" -c '
41552 as_lineno_1=$LINENO
41553 as_lineno_2=$LINENO
41554 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41555 test "x$as_lineno_1" != "x$as_lineno_2" &&
41556 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41557 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41558 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41559 CONFIG_SHELL=$as_dir/$as_base
41560 export CONFIG_SHELL
41561 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41562 fi;;
41563 esac
41564 done
41565 done
41566 ;;
41567 esac
41568
41569 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41570 # uniformly replaced by the line number. The first 'sed' inserts a
41571 # line-number line before each line; the second 'sed' does the real
41572 # work. The second script uses 'N' to pair each line-number line
41573 # with the numbered line, and appends trailing '-' during
41574 # substitution so that $LINENO is not a special case at line end.
41575 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41576 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41577 sed '=' <$as_myself |
41578 sed '
41579 N
41580 s,$,-,
41581 : loop
41582 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41583 t loop
41584 s,-$,,
41585 s,^['$as_cr_digits']*\n,,
41586 ' >$as_me.lineno &&
41587 chmod +x $as_me.lineno ||
41588 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41589 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41590 { (exit 1); exit 1; }; }
41591
41592 # Don't try to exec as it changes $[0], causing all sort of problems
41593 # (the dirname of $[0] is not the place where we might find the
41594 # original and so on. Autoconf is especially sensible to this).
41595 . ./$as_me.lineno
41596 # Exit status is that of the last command.
41597 exit
41598 }
41599
41600
41601 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41602 *c*,-n*) ECHO_N= ECHO_C='
41603 ' ECHO_T=' ' ;;
41604 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41605 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41606 esac
41607
41608 if expr a : '\(a\)' >/dev/null 2>&1; then
41609 as_expr=expr
41610 else
41611 as_expr=false
41612 fi
41613
41614 rm -f conf$$ conf$$.exe conf$$.file
41615 echo >conf$$.file
41616 if ln -s conf$$.file conf$$ 2>/dev/null; then
41617 # We could just check for DJGPP; but this test a) works b) is more generic
41618 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41619 if test -f conf$$.exe; then
41620 # Don't use ln at all; we don't have any links
41621 as_ln_s='cp -p'
41622 else
41623 as_ln_s='ln -s'
41624 fi
41625 elif ln conf$$.file conf$$ 2>/dev/null; then
41626 as_ln_s=ln
41627 else
41628 as_ln_s='cp -p'
41629 fi
41630 rm -f conf$$ conf$$.exe conf$$.file
41631
41632 if mkdir -p . 2>/dev/null; then
41633 as_mkdir_p=:
41634 else
41635 test -d ./-p && rmdir ./-p
41636 as_mkdir_p=false
41637 fi
41638
41639 as_executable_p="test -f"
41640
41641 # Sed expression to map a string onto a valid CPP name.
41642 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41643
41644 # Sed expression to map a string onto a valid variable name.
41645 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41646
41647
41648 # IFS
41649 # We need space, tab and new line, in precisely that order.
41650 as_nl='
41651 '
41652 IFS=" $as_nl"
41653
41654 # CDPATH.
41655 $as_unset CDPATH
41656
41657 exec 6>&1
41658
41659 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41660 # report actual input values of CONFIG_FILES etc. instead of their
41661 # values after options handling. Logging --version etc. is OK.
41662 exec 5>>config.log
41663 {
41664 echo
41665 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41666 ## Running $as_me. ##
41667 _ASBOX
41668 } >&5
41669 cat >&5 <<_CSEOF
41670
41671 This file was extended by wxWidgets $as_me 2.5.2, which was
41672 generated by GNU Autoconf 2.59. Invocation command line was
41673
41674 CONFIG_FILES = $CONFIG_FILES
41675 CONFIG_HEADERS = $CONFIG_HEADERS
41676 CONFIG_LINKS = $CONFIG_LINKS
41677 CONFIG_COMMANDS = $CONFIG_COMMANDS
41678 $ $0 $@
41679
41680 _CSEOF
41681 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41682 echo >&5
41683 _ACEOF
41684
41685 # Files that config.status was made for.
41686 if test -n "$ac_config_files"; then
41687 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41688 fi
41689
41690 if test -n "$ac_config_headers"; then
41691 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41692 fi
41693
41694 if test -n "$ac_config_links"; then
41695 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41696 fi
41697
41698 if test -n "$ac_config_commands"; then
41699 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41700 fi
41701
41702 cat >>$CONFIG_STATUS <<\_ACEOF
41703
41704 ac_cs_usage="\
41705 \`$as_me' instantiates files from templates according to the
41706 current configuration.
41707
41708 Usage: $0 [OPTIONS] [FILE]...
41709
41710 -h, --help print this help, then exit
41711 -V, --version print version number, then exit
41712 -q, --quiet do not print progress messages
41713 -d, --debug don't remove temporary files
41714 --recheck update $as_me by reconfiguring in the same conditions
41715 --file=FILE[:TEMPLATE]
41716 instantiate the configuration file FILE
41717 --header=FILE[:TEMPLATE]
41718 instantiate the configuration header FILE
41719
41720 Configuration files:
41721 $config_files
41722
41723 Configuration headers:
41724 $config_headers
41725
41726 Configuration commands:
41727 $config_commands
41728
41729 Report bugs to <bug-autoconf@gnu.org>."
41730 _ACEOF
41731
41732 cat >>$CONFIG_STATUS <<_ACEOF
41733 ac_cs_version="\\
41734 wxWidgets config.status 2.5.2
41735 configured by $0, generated by GNU Autoconf 2.59,
41736 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41737
41738 Copyright (C) 2003 Free Software Foundation, Inc.
41739 This config.status script is free software; the Free Software Foundation
41740 gives unlimited permission to copy, distribute and modify it."
41741 srcdir=$srcdir
41742 INSTALL="$INSTALL"
41743 _ACEOF
41744
41745 cat >>$CONFIG_STATUS <<\_ACEOF
41746 # If no file are specified by the user, then we need to provide default
41747 # value. By we need to know if files were specified by the user.
41748 ac_need_defaults=:
41749 while test $# != 0
41750 do
41751 case $1 in
41752 --*=*)
41753 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41754 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41755 ac_shift=:
41756 ;;
41757 -*)
41758 ac_option=$1
41759 ac_optarg=$2
41760 ac_shift=shift
41761 ;;
41762 *) # This is not an option, so the user has probably given explicit
41763 # arguments.
41764 ac_option=$1
41765 ac_need_defaults=false;;
41766 esac
41767
41768 case $ac_option in
41769 # Handling of the options.
41770 _ACEOF
41771 cat >>$CONFIG_STATUS <<\_ACEOF
41772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41773 ac_cs_recheck=: ;;
41774 --version | --vers* | -V )
41775 echo "$ac_cs_version"; exit 0 ;;
41776 --he | --h)
41777 # Conflict between --help and --header
41778 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41779 Try \`$0 --help' for more information." >&5
41780 echo "$as_me: error: ambiguous option: $1
41781 Try \`$0 --help' for more information." >&2;}
41782 { (exit 1); exit 1; }; };;
41783 --help | --hel | -h )
41784 echo "$ac_cs_usage"; exit 0 ;;
41785 --debug | --d* | -d )
41786 debug=: ;;
41787 --file | --fil | --fi | --f )
41788 $ac_shift
41789 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41790 ac_need_defaults=false;;
41791 --header | --heade | --head | --hea )
41792 $ac_shift
41793 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41794 ac_need_defaults=false;;
41795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41796 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41797 ac_cs_silent=: ;;
41798
41799 # This is an error.
41800 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41801 Try \`$0 --help' for more information." >&5
41802 echo "$as_me: error: unrecognized option: $1
41803 Try \`$0 --help' for more information." >&2;}
41804 { (exit 1); exit 1; }; } ;;
41805
41806 *) ac_config_targets="$ac_config_targets $1" ;;
41807
41808 esac
41809 shift
41810 done
41811
41812 ac_configure_extra_args=
41813
41814 if $ac_cs_silent; then
41815 exec 6>/dev/null
41816 ac_configure_extra_args="$ac_configure_extra_args --silent"
41817 fi
41818
41819 _ACEOF
41820 cat >>$CONFIG_STATUS <<_ACEOF
41821 if \$ac_cs_recheck; then
41822 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41823 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41824 fi
41825
41826 _ACEOF
41827
41828 cat >>$CONFIG_STATUS <<_ACEOF
41829 #
41830 # INIT-COMMANDS section.
41831 #
41832
41833
41834 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
41835 WXCONFIG_DATA_FILE="${WXCONFIG_DATA_FILE}"
41836 LN_S="${LN_S}"
41837
41838
41839
41840 _ACEOF
41841
41842
41843
41844 cat >>$CONFIG_STATUS <<\_ACEOF
41845 for ac_config_target in $ac_config_targets
41846 do
41847 case "$ac_config_target" in
41848 # Handling of arguments.
41849 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
41850 "wx-config-wrapper" ) CONFIG_FILES="$CONFIG_FILES wx-config-wrapper" ;;
41851 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41852 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41853 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
41854 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
41855 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
41856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41857 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41858 { (exit 1); exit 1; }; };;
41859 esac
41860 done
41861
41862 # If the user did not use the arguments to specify the items to instantiate,
41863 # then the envvar interface is used. Set only those that are not.
41864 # We use the long form for the default assignment because of an extremely
41865 # bizarre bug on SunOS 4.1.3.
41866 if $ac_need_defaults; then
41867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41870 fi
41871
41872 # Have a temporary directory for convenience. Make it in the build tree
41873 # simply because there is no reason to put it here, and in addition,
41874 # creating and moving files from /tmp can sometimes cause problems.
41875 # Create a temporary directory, and hook for its removal unless debugging.
41876 $debug ||
41877 {
41878 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41879 trap '{ (exit 1); exit 1; }' 1 2 13 15
41880 }
41881
41882 # Create a (secure) tmp directory for tmp files.
41883
41884 {
41885 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41886 test -n "$tmp" && test -d "$tmp"
41887 } ||
41888 {
41889 tmp=./confstat$$-$RANDOM
41890 (umask 077 && mkdir $tmp)
41891 } ||
41892 {
41893 echo "$me: cannot create a temporary directory in ." >&2
41894 { (exit 1); exit 1; }
41895 }
41896
41897 _ACEOF
41898
41899 cat >>$CONFIG_STATUS <<_ACEOF
41900
41901 #
41902 # CONFIG_FILES section.
41903 #
41904
41905 # No need to generate the scripts if there are no CONFIG_FILES.
41906 # This happens for instance when ./config.status config.h
41907 if test -n "\$CONFIG_FILES"; then
41908 # Protect against being on the right side of a sed subst in config.status.
41909 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41910 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41911 s,@SHELL@,$SHELL,;t t
41912 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41913 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41914 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41915 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41916 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41917 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41918 s,@exec_prefix@,$exec_prefix,;t t
41919 s,@prefix@,$prefix,;t t
41920 s,@program_transform_name@,$program_transform_name,;t t
41921 s,@bindir@,$bindir,;t t
41922 s,@sbindir@,$sbindir,;t t
41923 s,@libexecdir@,$libexecdir,;t t
41924 s,@datadir@,$datadir,;t t
41925 s,@sysconfdir@,$sysconfdir,;t t
41926 s,@sharedstatedir@,$sharedstatedir,;t t
41927 s,@localstatedir@,$localstatedir,;t t
41928 s,@libdir@,$libdir,;t t
41929 s,@includedir@,$includedir,;t t
41930 s,@oldincludedir@,$oldincludedir,;t t
41931 s,@infodir@,$infodir,;t t
41932 s,@mandir@,$mandir,;t t
41933 s,@build_alias@,$build_alias,;t t
41934 s,@host_alias@,$host_alias,;t t
41935 s,@target_alias@,$target_alias,;t t
41936 s,@DEFS@,$DEFS,;t t
41937 s,@ECHO_C@,$ECHO_C,;t t
41938 s,@ECHO_N@,$ECHO_N,;t t
41939 s,@ECHO_T@,$ECHO_T,;t t
41940 s,@LIBS@,$LIBS,;t t
41941 s,@build@,$build,;t t
41942 s,@build_cpu@,$build_cpu,;t t
41943 s,@build_vendor@,$build_vendor,;t t
41944 s,@build_os@,$build_os,;t t
41945 s,@host@,$host,;t t
41946 s,@host_cpu@,$host_cpu,;t t
41947 s,@host_vendor@,$host_vendor,;t t
41948 s,@host_os@,$host_os,;t t
41949 s,@target@,$target,;t t
41950 s,@target_cpu@,$target_cpu,;t t
41951 s,@target_vendor@,$target_vendor,;t t
41952 s,@target_os@,$target_os,;t t
41953 s,@CC@,$CC,;t t
41954 s,@CFLAGS@,$CFLAGS,;t t
41955 s,@LDFLAGS@,$LDFLAGS,;t t
41956 s,@CPPFLAGS@,$CPPFLAGS,;t t
41957 s,@ac_ct_CC@,$ac_ct_CC,;t t
41958 s,@EXEEXT@,$EXEEXT,;t t
41959 s,@OBJEXT@,$OBJEXT,;t t
41960 s,@CPP@,$CPP,;t t
41961 s,@EGREP@,$EGREP,;t t
41962 s,@CXX@,$CXX,;t t
41963 s,@CXXFLAGS@,$CXXFLAGS,;t t
41964 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41965 s,@RANLIB@,$RANLIB,;t t
41966 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41967 s,@AR@,$AR,;t t
41968 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41969 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41970 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41971 s,@STRIP@,$STRIP,;t t
41972 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41973 s,@LN_S@,$LN_S,;t t
41974 s,@CXXCPP@,$CXXCPP,;t t
41975 s,@subdirs@,$subdirs,;t t
41976 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41977 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41978 s,@GTK_LIBS@,$GTK_LIBS,;t t
41979 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41980 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41981 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41982 s,@X_CFLAGS@,$X_CFLAGS,;t t
41983 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41984 s,@X_LIBS@,$X_LIBS,;t t
41985 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41986 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41987 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41988 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41989 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41990 s,@RESCOMP@,$RESCOMP,;t t
41991 s,@DEREZ@,$DEREZ,;t t
41992 s,@SETFILE@,$SETFILE,;t t
41993 s,@LIBICONV@,$LIBICONV,;t t
41994 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41995 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41996 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41997 s,@SDL_LIBS@,$SDL_LIBS,;t t
41998 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41999 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42000 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42001 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42002 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42003 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42004 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42005 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42006 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42007 s,@VENDOR@,$VENDOR,;t t
42008 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42009 s,@WXUNIV@,$WXUNIV,;t t
42010 s,@MONOLITHIC@,$MONOLITHIC,;t t
42011 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42012 s,@EXTRALIBS@,$EXTRALIBS,;t t
42013 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42014 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42015 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42016 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42017 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42018 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42019 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42020 s,@UNICODE@,$UNICODE,;t t
42021 s,@BUILD@,$BUILD,;t t
42022 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42023 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42024 s,@SHARED@,$SHARED,;t t
42025 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42026 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42027 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42028 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42029 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42030 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42031 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42032 s,@SET_MAKE@,$SET_MAKE,;t t
42033 s,@MAKE_SET@,$MAKE_SET,;t t
42034 s,@ac_ct_AR@,$ac_ct_AR,;t t
42035 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42036 s,@NM@,$NM,;t t
42037 s,@ac_ct_NM@,$ac_ct_NM,;t t
42038 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42039 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42040 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42041 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42042 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42043 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42044 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42045 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42046 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42047 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42048 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42049 s,@LIBPREFIX@,$LIBPREFIX,;t t
42050 s,@LIBEXT@,$LIBEXT,;t t
42051 s,@DLLPREFIX@,$DLLPREFIX,;t t
42052 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42053 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42054 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42055 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42056 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42057 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42058 s,@PIC_FLAG@,$PIC_FLAG,;t t
42059 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42060 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42061 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42062 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42063 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42064 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42065 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42066 s,@GCC_PCH@,$GCC_PCH,;t t
42067 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42068 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42069 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42070 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42071 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42072 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42073 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42074 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42075 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42076 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42077 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42078 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42079 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42080 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42081 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42082 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42083 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42084 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42085 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
42086 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42087 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42088 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42089 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42090 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
42091 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42092 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42093 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42094 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42095 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42096 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42097 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42098 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42099 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42100 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42101 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42102 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42103 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
42104 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42105 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
42106 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42107 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42108 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42109 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42110 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42111 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42112 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42113 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42114 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42115 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42116 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42117 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42118 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42119 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42120 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42121 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42122 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42123 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42124 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42125 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42126 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42127 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42128 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42129 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42130 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42131 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42132 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42133 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42134 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42135 s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42136 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42137 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42138 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42139 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42140 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42141 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42142 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42143 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42144 s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42145 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42146 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42147 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
42148 s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
42149 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42150 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42151 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
42152 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42153 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42154 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42155 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42156 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42157 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42158 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42159 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42160 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42161 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42162 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42163 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42164 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42165 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42166 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42167 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42168 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42169 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42170 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42171 s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42172 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42173 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42174 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42175 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42176 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42177 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42178 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42179 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42180 s,@PATH_IFS@,$PATH_IFS,;t t
42181 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42182 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42183 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
42184 s,@WX_SUBRELEASE_NUMBER@,$WX_SUBRELEASE_NUMBER,;t t
42185 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42186 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42187 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42188 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42189 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42190 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42191 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42192 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42193 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42194 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42195 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42196 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42197 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42198 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42199 s,@WX_ALL@,$WX_ALL,;t t
42200 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42201 s,@SHARED_LD@,$SHARED_LD,;t t
42202 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42203 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42204 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42205 s,@USE_GUI@,$USE_GUI,;t t
42206 s,@AFMINSTALL@,$AFMINSTALL,;t t
42207 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42208 s,@TOOLKIT@,$TOOLKIT,;t t
42209 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42210 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42211 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42212 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42213 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42214 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42215 s,@cross_compiling@,$cross_compiling,;t t
42216 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42217 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42218 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42219 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42220 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42221 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42222 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42223 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42224 s,@WXCONFIG_DATA_FILE@,$WXCONFIG_DATA_FILE,;t t
42225 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
42226 s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
42227 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42228 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42229 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42230 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42231 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42232 s,@GUIDIST@,$GUIDIST,;t t
42233 s,@PORT_FILES@,$PORT_FILES,;t t
42234 s,@DISTDIR@,$DISTDIR,;t t
42235 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42236 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42237 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42238 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42239 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42240 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42241 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42242 s,@RESFLAGS@,$RESFLAGS,;t t
42243 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42244 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42245 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42246 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42247 s,@MACRESCOMP@,$MACRESCOMP,;t t
42248 s,@MACSETFILE@,$MACSETFILE,;t t
42249 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42250 s,@GCC@,$GCC,;t t
42251 s,@DLLTOOL@,$DLLTOOL,;t t
42252 s,@AS@,$AS,;t t
42253 s,@LD@,$LD,;t t
42254 s,@MAKEINFO@,$MAKEINFO,;t t
42255 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42256 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42257 s,@LIBOBJS@,$LIBOBJS,;t t
42258 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42259 CEOF
42260
42261 _ACEOF
42262
42263 cat >>$CONFIG_STATUS <<\_ACEOF
42264 # Split the substitutions into bite-sized pieces for seds with
42265 # small command number limits, like on Digital OSF/1 and HP-UX.
42266 ac_max_sed_lines=48
42267 ac_sed_frag=1 # Number of current file.
42268 ac_beg=1 # First line for current file.
42269 ac_end=$ac_max_sed_lines # Line after last line for current file.
42270 ac_more_lines=:
42271 ac_sed_cmds=
42272 while $ac_more_lines; do
42273 if test $ac_beg -gt 1; then
42274 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42275 else
42276 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42277 fi
42278 if test ! -s $tmp/subs.frag; then
42279 ac_more_lines=false
42280 else
42281 # The purpose of the label and of the branching condition is to
42282 # speed up the sed processing (if there are no `@' at all, there
42283 # is no need to browse any of the substitutions).
42284 # These are the two extra sed commands mentioned above.
42285 (echo ':t
42286 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42287 if test -z "$ac_sed_cmds"; then
42288 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
42289 else
42290 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
42291 fi
42292 ac_sed_frag=`expr $ac_sed_frag + 1`
42293 ac_beg=$ac_end
42294 ac_end=`expr $ac_end + $ac_max_sed_lines`
42295 fi
42296 done
42297 if test -z "$ac_sed_cmds"; then
42298 ac_sed_cmds=cat
42299 fi
42300 fi # test -n "$CONFIG_FILES"
42301
42302 _ACEOF
42303 cat >>$CONFIG_STATUS <<\_ACEOF
42304 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42305 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42306 case $ac_file in
42307 - | *:- | *:-:* ) # input from stdin
42308 cat >$tmp/stdin
42309 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42310 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42311 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42312 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42313 * ) ac_file_in=$ac_file.in ;;
42314 esac
42315
42316 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42317 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42319 X"$ac_file" : 'X\(//\)[^/]' \| \
42320 X"$ac_file" : 'X\(//\)$' \| \
42321 X"$ac_file" : 'X\(/\)' \| \
42322 . : '\(.\)' 2>/dev/null ||
42323 echo X"$ac_file" |
42324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42326 /^X\(\/\/\)$/{ s//\1/; q; }
42327 /^X\(\/\).*/{ s//\1/; q; }
42328 s/.*/./; q'`
42329 { if $as_mkdir_p; then
42330 mkdir -p "$ac_dir"
42331 else
42332 as_dir="$ac_dir"
42333 as_dirs=
42334 while test ! -d "$as_dir"; do
42335 as_dirs="$as_dir $as_dirs"
42336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42338 X"$as_dir" : 'X\(//\)[^/]' \| \
42339 X"$as_dir" : 'X\(//\)$' \| \
42340 X"$as_dir" : 'X\(/\)' \| \
42341 . : '\(.\)' 2>/dev/null ||
42342 echo X"$as_dir" |
42343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42345 /^X\(\/\/\)$/{ s//\1/; q; }
42346 /^X\(\/\).*/{ s//\1/; q; }
42347 s/.*/./; q'`
42348 done
42349 test ! -n "$as_dirs" || mkdir $as_dirs
42350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42352 { (exit 1); exit 1; }; }; }
42353
42354 ac_builddir=.
42355
42356 if test "$ac_dir" != .; then
42357 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42358 # A "../" for each directory in $ac_dir_suffix.
42359 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42360 else
42361 ac_dir_suffix= ac_top_builddir=
42362 fi
42363
42364 case $srcdir in
42365 .) # No --srcdir option. We are building in place.
42366 ac_srcdir=.
42367 if test -z "$ac_top_builddir"; then
42368 ac_top_srcdir=.
42369 else
42370 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42371 fi ;;
42372 [\\/]* | ?:[\\/]* ) # Absolute path.
42373 ac_srcdir=$srcdir$ac_dir_suffix;
42374 ac_top_srcdir=$srcdir ;;
42375 *) # Relative path.
42376 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42377 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42378 esac
42379
42380 # Do not use `cd foo && pwd` to compute absolute paths, because
42381 # the directories may not exist.
42382 case `pwd` in
42383 .) ac_abs_builddir="$ac_dir";;
42384 *)
42385 case "$ac_dir" in
42386 .) ac_abs_builddir=`pwd`;;
42387 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42388 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42389 esac;;
42390 esac
42391 case $ac_abs_builddir in
42392 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42393 *)
42394 case ${ac_top_builddir}. in
42395 .) ac_abs_top_builddir=$ac_abs_builddir;;
42396 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42397 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42398 esac;;
42399 esac
42400 case $ac_abs_builddir in
42401 .) ac_abs_srcdir=$ac_srcdir;;
42402 *)
42403 case $ac_srcdir in
42404 .) ac_abs_srcdir=$ac_abs_builddir;;
42405 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42406 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42407 esac;;
42408 esac
42409 case $ac_abs_builddir in
42410 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42411 *)
42412 case $ac_top_srcdir in
42413 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42414 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42415 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42416 esac;;
42417 esac
42418
42419
42420 case $INSTALL in
42421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42422 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42423 esac
42424
42425 if test x"$ac_file" != x-; then
42426 { echo "$as_me:$LINENO: creating $ac_file" >&5
42427 echo "$as_me: creating $ac_file" >&6;}
42428 rm -f "$ac_file"
42429 fi
42430 # Let's still pretend it is `configure' which instantiates (i.e., don't
42431 # use $as_me), people would be surprised to read:
42432 # /* config.h. Generated by config.status. */
42433 if test x"$ac_file" = x-; then
42434 configure_input=
42435 else
42436 configure_input="$ac_file. "
42437 fi
42438 configure_input=$configure_input"Generated from `echo $ac_file_in |
42439 sed 's,.*/,,'` by configure."
42440
42441 # First look for the input files in the build tree, otherwise in the
42442 # src tree.
42443 ac_file_inputs=`IFS=:
42444 for f in $ac_file_in; do
42445 case $f in
42446 -) echo $tmp/stdin ;;
42447 [\\/$]*)
42448 # Absolute (can't be DOS-style, as IFS=:)
42449 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42450 echo "$as_me: error: cannot find input file: $f" >&2;}
42451 { (exit 1); exit 1; }; }
42452 echo "$f";;
42453 *) # Relative
42454 if test -f "$f"; then
42455 # Build tree
42456 echo "$f"
42457 elif test -f "$srcdir/$f"; then
42458 # Source tree
42459 echo "$srcdir/$f"
42460 else
42461 # /dev/null tree
42462 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42463 echo "$as_me: error: cannot find input file: $f" >&2;}
42464 { (exit 1); exit 1; }; }
42465 fi;;
42466 esac
42467 done` || { (exit 1); exit 1; }
42468 _ACEOF
42469 cat >>$CONFIG_STATUS <<_ACEOF
42470 sed "$ac_vpsub
42471 $extrasub
42472 _ACEOF
42473 cat >>$CONFIG_STATUS <<\_ACEOF
42474 :t
42475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42476 s,@configure_input@,$configure_input,;t t
42477 s,@srcdir@,$ac_srcdir,;t t
42478 s,@abs_srcdir@,$ac_abs_srcdir,;t t
42479 s,@top_srcdir@,$ac_top_srcdir,;t t
42480 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42481 s,@builddir@,$ac_builddir,;t t
42482 s,@abs_builddir@,$ac_abs_builddir,;t t
42483 s,@top_builddir@,$ac_top_builddir,;t t
42484 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42485 s,@INSTALL@,$ac_INSTALL,;t t
42486 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42487 rm -f $tmp/stdin
42488 if test x"$ac_file" != x-; then
42489 mv $tmp/out $ac_file
42490 else
42491 cat $tmp/out
42492 rm -f $tmp/out
42493 fi
42494
42495 done
42496 _ACEOF
42497 cat >>$CONFIG_STATUS <<\_ACEOF
42498
42499 #
42500 # CONFIG_HEADER section.
42501 #
42502
42503 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42504 # NAME is the cpp macro being defined and VALUE is the value it is being given.
42505 #
42506 # ac_d sets the value in "#define NAME VALUE" lines.
42507 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42508 ac_dB='[ ].*$,\1#\2'
42509 ac_dC=' '
42510 ac_dD=',;t'
42511 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42512 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
42513 ac_uB='$,\1#\2define\3'
42514 ac_uC=' '
42515 ac_uD=',;t'
42516
42517 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42518 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42519 case $ac_file in
42520 - | *:- | *:-:* ) # input from stdin
42521 cat >$tmp/stdin
42522 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42523 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42524 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42526 * ) ac_file_in=$ac_file.in ;;
42527 esac
42528
42529 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42530 echo "$as_me: creating $ac_file" >&6;}
42531
42532 # First look for the input files in the build tree, otherwise in the
42533 # src tree.
42534 ac_file_inputs=`IFS=:
42535 for f in $ac_file_in; do
42536 case $f in
42537 -) echo $tmp/stdin ;;
42538 [\\/$]*)
42539 # Absolute (can't be DOS-style, as IFS=:)
42540 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42541 echo "$as_me: error: cannot find input file: $f" >&2;}
42542 { (exit 1); exit 1; }; }
42543 # Do quote $f, to prevent DOS paths from being IFS'd.
42544 echo "$f";;
42545 *) # Relative
42546 if test -f "$f"; then
42547 # Build tree
42548 echo "$f"
42549 elif test -f "$srcdir/$f"; then
42550 # Source tree
42551 echo "$srcdir/$f"
42552 else
42553 # /dev/null tree
42554 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42555 echo "$as_me: error: cannot find input file: $f" >&2;}
42556 { (exit 1); exit 1; }; }
42557 fi;;
42558 esac
42559 done` || { (exit 1); exit 1; }
42560 # Remove the trailing spaces.
42561 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
42562
42563 _ACEOF
42564
42565 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42566 # `conftest.undefs', that substitutes the proper values into
42567 # config.h.in to produce config.h. The first handles `#define'
42568 # templates, and the second `#undef' templates.
42569 # And first: Protect against being on the right side of a sed subst in
42570 # config.status. Protect against being in an unquoted here document
42571 # in config.status.
42572 rm -f conftest.defines conftest.undefs
42573 # Using a here document instead of a string reduces the quoting nightmare.
42574 # Putting comments in sed scripts is not portable.
42575 #
42576 # `end' is used to avoid that the second main sed command (meant for
42577 # 0-ary CPP macros) applies to n-ary macro definitions.
42578 # See the Autoconf documentation for `clear'.
42579 cat >confdef2sed.sed <<\_ACEOF
42580 s/[\\&,]/\\&/g
42581 s,[\\$`],\\&,g
42582 t clear
42583 : clear
42584 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42585 t end
42586 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42587 : end
42588 _ACEOF
42589 # If some macros were called several times there might be several times
42590 # the same #defines, which is useless. Nevertheless, we may not want to
42591 # sort them, since we want the *last* AC-DEFINE to be honored.
42592 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42593 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42594 rm -f confdef2sed.sed
42595
42596 # This sed command replaces #undef with comments. This is necessary, for
42597 # example, in the case of _POSIX_SOURCE, which is predefined and required
42598 # on some systems where configure will not decide to define it.
42599 cat >>conftest.undefs <<\_ACEOF
42600 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42601 _ACEOF
42602
42603 # Break up conftest.defines because some shells have a limit on the size
42604 # of here documents, and old seds have small limits too (100 cmds).
42605 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42606 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42607 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42608 echo ' :' >>$CONFIG_STATUS
42609 rm -f conftest.tail
42610 while grep . conftest.defines >/dev/null
42611 do
42612 # Write a limited-size here document to $tmp/defines.sed.
42613 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42614 # Speed up: don't consider the non `#define' lines.
42615 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
42616 # Work around the forget-to-reset-the-flag bug.
42617 echo 't clr' >>$CONFIG_STATUS
42618 echo ': clr' >>$CONFIG_STATUS
42619 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42620 echo 'CEOF
42621 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42622 rm -f $tmp/in
42623 mv $tmp/out $tmp/in
42624 ' >>$CONFIG_STATUS
42625 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42626 rm -f conftest.defines
42627 mv conftest.tail conftest.defines
42628 done
42629 rm -f conftest.defines
42630 echo ' fi # grep' >>$CONFIG_STATUS
42631 echo >>$CONFIG_STATUS
42632
42633 # Break up conftest.undefs because some shells have a limit on the size
42634 # of here documents, and old seds have small limits too (100 cmds).
42635 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42636 rm -f conftest.tail
42637 while grep . conftest.undefs >/dev/null
42638 do
42639 # Write a limited-size here document to $tmp/undefs.sed.
42640 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42641 # Speed up: don't consider the non `#undef'
42642 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
42643 # Work around the forget-to-reset-the-flag bug.
42644 echo 't clr' >>$CONFIG_STATUS
42645 echo ': clr' >>$CONFIG_STATUS
42646 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42647 echo 'CEOF
42648 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42649 rm -f $tmp/in
42650 mv $tmp/out $tmp/in
42651 ' >>$CONFIG_STATUS
42652 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42653 rm -f conftest.undefs
42654 mv conftest.tail conftest.undefs
42655 done
42656 rm -f conftest.undefs
42657
42658 cat >>$CONFIG_STATUS <<\_ACEOF
42659 # Let's still pretend it is `configure' which instantiates (i.e., don't
42660 # use $as_me), people would be surprised to read:
42661 # /* config.h. Generated by config.status. */
42662 if test x"$ac_file" = x-; then
42663 echo "/* Generated by configure. */" >$tmp/config.h
42664 else
42665 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42666 fi
42667 cat $tmp/in >>$tmp/config.h
42668 rm -f $tmp/in
42669 if test x"$ac_file" != x-; then
42670 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42671 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42672 echo "$as_me: $ac_file is unchanged" >&6;}
42673 else
42674 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42676 X"$ac_file" : 'X\(//\)[^/]' \| \
42677 X"$ac_file" : 'X\(//\)$' \| \
42678 X"$ac_file" : 'X\(/\)' \| \
42679 . : '\(.\)' 2>/dev/null ||
42680 echo X"$ac_file" |
42681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42683 /^X\(\/\/\)$/{ s//\1/; q; }
42684 /^X\(\/\).*/{ s//\1/; q; }
42685 s/.*/./; q'`
42686 { if $as_mkdir_p; then
42687 mkdir -p "$ac_dir"
42688 else
42689 as_dir="$ac_dir"
42690 as_dirs=
42691 while test ! -d "$as_dir"; do
42692 as_dirs="$as_dir $as_dirs"
42693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42695 X"$as_dir" : 'X\(//\)[^/]' \| \
42696 X"$as_dir" : 'X\(//\)$' \| \
42697 X"$as_dir" : 'X\(/\)' \| \
42698 . : '\(.\)' 2>/dev/null ||
42699 echo X"$as_dir" |
42700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42702 /^X\(\/\/\)$/{ s//\1/; q; }
42703 /^X\(\/\).*/{ s//\1/; q; }
42704 s/.*/./; q'`
42705 done
42706 test ! -n "$as_dirs" || mkdir $as_dirs
42707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42708 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42709 { (exit 1); exit 1; }; }; }
42710
42711 rm -f $ac_file
42712 mv $tmp/config.h $ac_file
42713 fi
42714 else
42715 cat $tmp/config.h
42716 rm -f $tmp/config.h
42717 fi
42718 done
42719 _ACEOF
42720 cat >>$CONFIG_STATUS <<\_ACEOF
42721
42722 #
42723 # CONFIG_COMMANDS section.
42724 #
42725 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42726 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42727 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42728 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42729 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42730 X"$ac_dest" : 'X\(//\)[^/]' \| \
42731 X"$ac_dest" : 'X\(//\)$' \| \
42732 X"$ac_dest" : 'X\(/\)' \| \
42733 . : '\(.\)' 2>/dev/null ||
42734 echo X"$ac_dest" |
42735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42737 /^X\(\/\/\)$/{ s//\1/; q; }
42738 /^X\(\/\).*/{ s//\1/; q; }
42739 s/.*/./; q'`
42740 { if $as_mkdir_p; then
42741 mkdir -p "$ac_dir"
42742 else
42743 as_dir="$ac_dir"
42744 as_dirs=
42745 while test ! -d "$as_dir"; do
42746 as_dirs="$as_dir $as_dirs"
42747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42749 X"$as_dir" : 'X\(//\)[^/]' \| \
42750 X"$as_dir" : 'X\(//\)$' \| \
42751 X"$as_dir" : 'X\(/\)' \| \
42752 . : '\(.\)' 2>/dev/null ||
42753 echo X"$as_dir" |
42754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42756 /^X\(\/\/\)$/{ s//\1/; q; }
42757 /^X\(\/\).*/{ s//\1/; q; }
42758 s/.*/./; q'`
42759 done
42760 test ! -n "$as_dirs" || mkdir $as_dirs
42761 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42762 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42763 { (exit 1); exit 1; }; }; }
42764
42765 ac_builddir=.
42766
42767 if test "$ac_dir" != .; then
42768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42769 # A "../" for each directory in $ac_dir_suffix.
42770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42771 else
42772 ac_dir_suffix= ac_top_builddir=
42773 fi
42774
42775 case $srcdir in
42776 .) # No --srcdir option. We are building in place.
42777 ac_srcdir=.
42778 if test -z "$ac_top_builddir"; then
42779 ac_top_srcdir=.
42780 else
42781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42782 fi ;;
42783 [\\/]* | ?:[\\/]* ) # Absolute path.
42784 ac_srcdir=$srcdir$ac_dir_suffix;
42785 ac_top_srcdir=$srcdir ;;
42786 *) # Relative path.
42787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42789 esac
42790
42791 # Do not use `cd foo && pwd` to compute absolute paths, because
42792 # the directories may not exist.
42793 case `pwd` in
42794 .) ac_abs_builddir="$ac_dir";;
42795 *)
42796 case "$ac_dir" in
42797 .) ac_abs_builddir=`pwd`;;
42798 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42799 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42800 esac;;
42801 esac
42802 case $ac_abs_builddir in
42803 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42804 *)
42805 case ${ac_top_builddir}. in
42806 .) ac_abs_top_builddir=$ac_abs_builddir;;
42807 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42808 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42809 esac;;
42810 esac
42811 case $ac_abs_builddir in
42812 .) ac_abs_srcdir=$ac_srcdir;;
42813 *)
42814 case $ac_srcdir in
42815 .) ac_abs_srcdir=$ac_abs_builddir;;
42816 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42817 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42818 esac;;
42819 esac
42820 case $ac_abs_builddir in
42821 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42822 *)
42823 case $ac_top_srcdir in
42824 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42825 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42826 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42827 esac;;
42828 esac
42829
42830
42831 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42832 echo "$as_me: executing $ac_dest commands" >&6;}
42833 case $ac_dest in
42834 default )
42835 if test ! -d lib; then
42836 mkdir lib
42837 fi
42838 if test ! -d lib/wx; then
42839 mkdir lib/wx
42840 fi
42841 if test ! -d lib/wx/config; then
42842 mkdir lib/wx/config
42843 fi
42844 if test ! -d lib/wx/include; then
42845 mkdir lib/wx/include
42846 fi
42847 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
42848 mkdir lib/wx/include/${TOOLCHAIN_NAME}
42849 fi
42850 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
42851 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
42852 fi
42853 if test -f setup.h; then
42854 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
42855 fi
42856
42857 if test -f wx-config; then
42858 chmod +x wx-config
42859 mv -f wx-config lib/wx/config/${WXCONFIG_DATA_FILE}
42860 ( cd lib/wx/config ;
42861 rm -f ${TOOLCHAIN_NAME}
42862 ${LN_S} ${WXCONFIG_DATA_FILE} ${TOOLCHAIN_NAME} )
42863 fi
42864 if test -f wx-config-wrapper; then
42865 chmod +x wx-config-wrapper
42866 mv -f wx-config-wrapper wx-config
42867 rm -f wx${TOOLCHAIN_NAME}-config
42868 ${LN_S} wx-config wx${TOOLCHAIN_NAME}-config
42869 fi
42870 ;;
42871 esac
42872 done
42873 _ACEOF
42874
42875 cat >>$CONFIG_STATUS <<\_ACEOF
42876
42877 { (exit 0); exit 0; }
42878 _ACEOF
42879 chmod +x $CONFIG_STATUS
42880 ac_clean_files=$ac_clean_files_save
42881
42882
42883 # configure is writing to config.log, and then calls config.status.
42884 # config.status does its own redirection, appending to config.log.
42885 # Unfortunately, on DOS this fails, as config.log is still kept open
42886 # by configure, so config.status won't be able to write to it; its
42887 # output is simply discarded. So we exec the FD to /dev/null,
42888 # effectively closing config.log, so it can be properly (re)opened and
42889 # appended to by config.status. When coming back to configure, we
42890 # need to make the FD available again.
42891 if test "$no_create" != yes; then
42892 ac_cs_success=:
42893 ac_config_status_args=
42894 test "$silent" = yes &&
42895 ac_config_status_args="$ac_config_status_args --quiet"
42896 exec 5>/dev/null
42897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42898 exec 5>>config.log
42899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42900 # would make configure fail if this is the last instruction.
42901 $ac_cs_success || { (exit 1); exit 1; }
42902 fi
42903
42904 #
42905 # CONFIG_SUBDIRS section.
42906 #
42907 if test "$no_recursion" != yes; then
42908
42909 # Remove --cache-file and --srcdir arguments so they do not pile up.
42910 ac_sub_configure_args=
42911 ac_prev=
42912 for ac_arg in $ac_configure_args; do
42913 if test -n "$ac_prev"; then
42914 ac_prev=
42915 continue
42916 fi
42917 case $ac_arg in
42918 -cache-file | --cache-file | --cache-fil | --cache-fi \
42919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42920 ac_prev=cache_file ;;
42921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42923 | --c=*)
42924 ;;
42925 --config-cache | -C)
42926 ;;
42927 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42928 ac_prev=srcdir ;;
42929 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42930 ;;
42931 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42932 ac_prev=prefix ;;
42933 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42934 ;;
42935 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42936 esac
42937 done
42938
42939 # Always prepend --prefix to ensure using the same prefix
42940 # in subdir configurations.
42941 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42942
42943 ac_popdir=`pwd`
42944 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42945
42946 # Do not complain, so a configure script can configure whichever
42947 # parts of a large source tree are present.
42948 test -d $srcdir/$ac_dir || continue
42949
42950 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42951 echo "$as_me: configuring in $ac_dir" >&6;}
42952 { if $as_mkdir_p; then
42953 mkdir -p "$ac_dir"
42954 else
42955 as_dir="$ac_dir"
42956 as_dirs=
42957 while test ! -d "$as_dir"; do
42958 as_dirs="$as_dir $as_dirs"
42959 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42960 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42961 X"$as_dir" : 'X\(//\)[^/]' \| \
42962 X"$as_dir" : 'X\(//\)$' \| \
42963 X"$as_dir" : 'X\(/\)' \| \
42964 . : '\(.\)' 2>/dev/null ||
42965 echo X"$as_dir" |
42966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42967 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42968 /^X\(\/\/\)$/{ s//\1/; q; }
42969 /^X\(\/\).*/{ s//\1/; q; }
42970 s/.*/./; q'`
42971 done
42972 test ! -n "$as_dirs" || mkdir $as_dirs
42973 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42974 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42975 { (exit 1); exit 1; }; }; }
42976
42977 ac_builddir=.
42978
42979 if test "$ac_dir" != .; then
42980 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42981 # A "../" for each directory in $ac_dir_suffix.
42982 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42983 else
42984 ac_dir_suffix= ac_top_builddir=
42985 fi
42986
42987 case $srcdir in
42988 .) # No --srcdir option. We are building in place.
42989 ac_srcdir=.
42990 if test -z "$ac_top_builddir"; then
42991 ac_top_srcdir=.
42992 else
42993 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42994 fi ;;
42995 [\\/]* | ?:[\\/]* ) # Absolute path.
42996 ac_srcdir=$srcdir$ac_dir_suffix;
42997 ac_top_srcdir=$srcdir ;;
42998 *) # Relative path.
42999 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43000 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43001 esac
43002
43003 # Do not use `cd foo && pwd` to compute absolute paths, because
43004 # the directories may not exist.
43005 case `pwd` in
43006 .) ac_abs_builddir="$ac_dir";;
43007 *)
43008 case "$ac_dir" in
43009 .) ac_abs_builddir=`pwd`;;
43010 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43011 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43012 esac;;
43013 esac
43014 case $ac_abs_builddir in
43015 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43016 *)
43017 case ${ac_top_builddir}. in
43018 .) ac_abs_top_builddir=$ac_abs_builddir;;
43019 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43020 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43021 esac;;
43022 esac
43023 case $ac_abs_builddir in
43024 .) ac_abs_srcdir=$ac_srcdir;;
43025 *)
43026 case $ac_srcdir in
43027 .) ac_abs_srcdir=$ac_abs_builddir;;
43028 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43029 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43030 esac;;
43031 esac
43032 case $ac_abs_builddir in
43033 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43034 *)
43035 case $ac_top_srcdir in
43036 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43037 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43038 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43039 esac;;
43040 esac
43041
43042
43043 cd $ac_dir
43044
43045 # Check for guested configure; otherwise get Cygnus style configure.
43046 if test -f $ac_srcdir/configure.gnu; then
43047 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43048 elif test -f $ac_srcdir/configure; then
43049 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43050 elif test -f $ac_srcdir/configure.in; then
43051 ac_sub_configure=$ac_configure
43052 else
43053 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43054 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43055 ac_sub_configure=
43056 fi
43057
43058 # The recursion is here.
43059 if test -n "$ac_sub_configure"; then
43060 # Make the cache file name correct relative to the subdirectory.
43061 case $cache_file in
43062 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43063 *) # Relative path.
43064 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
43065 esac
43066
43067 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43068 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43069 # The eval makes quoting arguments work.
43070 eval $ac_sub_configure $ac_sub_configure_args \
43071 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43072 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
43073 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43074 { (exit 1); exit 1; }; }
43075 fi
43076
43077 cd $ac_popdir
43078 done
43079 fi
43080
43081
43082 echo
43083 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
43084 echo ""
43085 echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_LOWERCASE:-base only}"
43086 echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
43087
43088 echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43089 echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43090 echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
43091
43092 echo " What level of wxWidgets compatibility should be enabled?"
43093 echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43094 echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
43095
43096 echo " Which libraries should wxWidgets use?"
43097 echo " jpeg ${wxUSE_LIBJPEG-none}"
43098 echo " png ${wxUSE_LIBPNG-none}"
43099 echo " regex ${wxUSE_REGEX}"
43100 echo " tiff ${wxUSE_LIBTIFF-none}"
43101 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43102 echo " xpm ${wxUSE_LIBXPM-none}"
43103 fi
43104 echo " zlib ${wxUSE_ZLIB}"
43105 echo " odbc ${wxUSE_ODBC}"
43106 echo " expat ${wxUSE_EXPAT}"
43107 echo " libmspack ${wxUSE_LIBMSPACK}"
43108 echo " sdl ${wxUSE_LIBSDL}"
43109
43110 echo ""
43111