]> git.saurik.com Git - wxWidgets.git/blob - configure
Bad newlines in the mpw makefile,
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for wxWindows 2.5.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWindows'
272 PACKAGE_TARNAME='wxwindows'
273 PACKAGE_VERSION='2.5.1'
274 PACKAGE_STRING='wxWindows 2.5.1'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD 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 EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654 done
655
656 if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676 do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729 else
730 ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
797 \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819 cat <<_ACEOF
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
822 [$ac_default_prefix]
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
824 [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846 _ACEOF
847
848 cat <<\_ACEOF
849
850 X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854 System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862 case $ac_init_help in
863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
864 esac
865 cat <<\_ACEOF
866
867 Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
871 --disable-monolithic don't build wxWindows as single library
872 --enable-universal use wxWindows GUI controls instead of native ones
873 --enable-nanox use NanoX
874 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
875 --enable-shared create shared library code
876 --enable-optimise create optimised code
877 --enable-debug same as debug_flag and debug_info
878 --enable-stl use STL for containers
879 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
880 --enable-debug_info create code with debugging information
881 --enable-debug_gdb create code with extra GDB debugging information
882 --enable-debug_cntxt use wxDebugContext
883 --enable-mem_tracing create code with memory tracing
884 --enable-profile create code with profiling information
885 --enable-no_rtti create code without RTTI information
886 --enable-no_exceptions create code without C++ exceptions handling
887 --enable-permissive compile code disregarding strict ANSI
888 --enable-no_deps create code without dependency information
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
899 --enable-ole use OLE classes (Win32 only)
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
902 --enable-apple_ieee use the Apple IEEE codec
903 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
904 --enable-cmdline use wxCmdLineParser class
905 --enable-datetime use wxDateTime class
906 --enable-dialupman use dialup network classes
907 --enable-dynlib use wxLibrary class for DLL loading
908 --enable-dynamicloader use (new) wxDynamicLibrary class
909 --enable-exceptions build exception-safe library
910 --enable-ffile use wxFFile class
911 --enable-file use wxFile class
912 --enable-filesystem use virtual file systems classes
913 --enable-fontmap use font encodings conversion classes
914 --enable-fs_inet use virtual HTTP/FTP filesystems
915 --enable-fs_zip use virtual ZIP filesystems
916 --enable-geometry use geometry class
917 --enable-log use logging system
918 --enable-longlong use wxLongLong class
919 --enable-mimetype use wxMimeTypesManager
920 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
921 --enable-snglinst use wxSingleInstanceChecker class
922 --enable-streams use wxStream etc classes
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-stopwatch use wxStopWatch class
925 --enable-sysoptions use wxSystemOptions
926 --enable-textbuf use wxTextBuffer class
927 --enable-textfile use wxTextFile class
928 --enable-timer use wxTimer class
929 --enable-unicode compile wxString with Unicode support
930 --enable-wave use wxWave class
931 --enable-wxprintfv use wxWindows implementation of vprintf()
932 --enable-zipstream use wxZipInputStream
933 --enable-gzstream use wxGzipInputStream
934 --enable-url use wxURL class
935 --enable-protocol use wxProtocol class
936 --enable-protocol-http HTTP support in wxProtocol
937 --enable-protocol-ftp FTP support in wxProtocol
938 --enable-protocol-file FILE support in wxProtocol
939 --enable-threads use threads
940 --enable-docview use document view architecture
941 --enable-help use help subsystem
942 --enable-mshtmlhelp use MS HTML Help (win32)
943 --enable-html use wxHTML sub-library
944 --enable-htmlhelp use wxHTML-based help
945 --enable-constraints use layout-constraints system
946 --enable-printarch use printing architecture
947 --enable-mdi use multiple document interface architecture
948 --enable-loggui use standard GUI logger
949 --enable-logwin use wxLogWindow
950 --enable-logdialog use wxLogDialog
951 --enable-postscript use wxPostscriptDC device context (default for gtk+)
952 --enable-prologio not available; see contrib
953 --enable-resources not available; see contrib
954 --enable-clipboard use wxClipboard class
955 --enable-dnd use Drag'n'Drop classes
956 --enable-metafile use win32 metafiles
957 --enable-controls use all usual controls
958 --enable-accel use accelerators
959 --enable-button use wxButton class
960 --enable-bmpbutton use wxBitmapButton class
961 --enable-calendar use wxCalendarCtrl class
962 --enable-caret use wxCaret class
963 --enable-checkbox use wxCheckBox class
964 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
965 --enable-choice use wxChoice class
966 --enable-combobox use wxComboBox class
967 --enable-display use wxDisplay class
968 --enable-gauge use wxGauge class
969 --enable-grid use wxGrid class
970 --enable-imaglist use wxImageList class
971 --enable-listbook use wxListbook class
972 --enable-listbox use wxListBox class
973 --enable-listctrl use wxListCtrl class
974 --enable-notebook use wxNotebook class
975 --enable-radiobox use wxRadioBox class
976 --enable-radiobtn use wxRadioButton class
977 --enable-sash use wxSashWindow class
978 --enable-scrollbar use wxScrollBar class and scrollable windows
979 --enable-slider use wxSlider class
980 --enable-spinbtn use wxSpinButton class
981 --enable-spinctrl use wxSpinCtrl class
982 --enable-splitter use wxSplitterWindow class
983 --enable-statbmp use wxStaticBitmap class
984 --enable-statbox use wxStaticBox class
985 --enable-statline use wxStaticLine class
986 --enable-stattext use wxStaticText class
987 --enable-statusbar use wxStatusBar class
988 --enable-tabdialog use wxTabControl class
989 --enable-textctrl use wxTextCtrl class
990 --enable-togglebtn use wxToggleButton class
991 --enable-toolbar use wxToolBar class
992 --enable-tbarnative use native wxToolBar class
993 --enable-tbarsmpl use wxToolBarSimple class
994 --enable-treectrl use wxTreeCtrl class
995 --enable-tipwindow use wxTipWindow class
996 --enable-popupwin use wxPopUpWindow class
997 --enable-commondlg use all common dialogs
998 --enable-choicedlg use wxChoiceDialog
999 --enable-coldlg use wxColourDialog
1000 --enable-filedlg use wxFileDialog
1001 --enable-finddlg use wxFindReplaceDialog
1002 --enable-fontdlg use wxFontDialog
1003 --enable-dirdlg use wxDirDialog
1004 --enable-msgdlg use wxMessageDialog
1005 --enable-numberdlg use wxNumberEntryDialog
1006 --enable-splash use wxSplashScreen
1007 --enable-textdlg use wxTextDialog
1008 --enable-tipdlg use startup tips
1009 --enable-progressdlg use wxProgressDialog
1010 --enable-wizarddlg use wxWizard
1011 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1012 --enable-miniframe use wxMiniFrame class
1013 --enable-tooltips use wxToolTip class
1014 --enable-splines use spline drawing code
1015 --enable-validators use wxValidator and derived classes
1016 --enable-busyinfo use wxBusyInfo
1017 --enable-joystick use wxJoystick (Linux only)
1018 --enable-metafiles use wxMetaFile (Windows only)
1019 --enable-dragimage use wxDragImage
1020 --enable-accessibility enable accessibility support
1021 --enable-palette use wxPalette class
1022 --enable-image use wxImage class
1023 --enable-gif use gif images (GIF file format)
1024 --enable-pcx use pcx images (PCX file format)
1025 --enable-iff use iff images (IFF file format)
1026 --enable-pnm use pnm images (PNM file format)
1027 --enable-xpm use xpm images (XPM file format)
1028 --enable-icocur use Windows ICO and CUR formats
1029 --enable-official_build official build of wxWindows (win32 DLL only)
1030 --enable-vendor=VENDOR vendor name (win32 DLL only)
1031 --disable-largefile omit support for large files
1032 --disable-gtktest do not try to compile and run a test GTK+ program
1033 --disable-gtktest Do not try to compile and run a test GTK program
1034 --disable-precomp-headers don't use precompiled headers even if compiler can
1035
1036 Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gtk use GTK+
1040 --with-motif use Motif/Lesstif
1041 --with-mac use Mac OS X
1042 --with-cocoa use Cocoa
1043 --with-wine use Wine
1044 --with-msw use MS-Windows
1045 --with-pm use OS/2 Presentation Manager
1046 --with-mgl use SciTech MGL
1047 --with-microwin use MicroWindows
1048 --with-x11 use X11
1049 --with-libpng use libpng (PNG image format)
1050 --with-libjpeg use libjpeg (JPEG file format)
1051 --with-libtiff use libtiff (TIFF file format)
1052 --with-libxpm use libxpm (XPM file format)
1053 --with-libmspack use libmspack (CHM help files loading)
1054 --with-opengl use OpenGL (or Mesa)
1055 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1056 --with-regex enable support for wxRegEx class
1057 --with-zlib use zlib for LZW compression
1058 --with-odbc use the IODBC and wxODBC classes
1059 --with-expat enable XML support using expat parser
1060 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1061 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1062 --with-x use the X Window System
1063 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1064
1065 Some influential environment variables:
1066 CC C compiler command
1067 CFLAGS C compiler flags
1068 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1069 nonstandard directory <lib dir>
1070 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071 headers in a nonstandard directory <include dir>
1072 CPP C preprocessor
1073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
1075 CXXCPP C++ preprocessor
1076
1077 Use these variables to override the choices made by `configure' or to help
1078 it to find libraries and programs with nonstandard names/locations.
1079
1080 Report bugs to <wx-dev@lists.wxwindows.org>.
1081 _ACEOF
1082 fi
1083
1084 if test "$ac_init_help" = "recursive"; then
1085 # If there are subdirs, report their specific --help.
1086 ac_popdir=`pwd`
1087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088 test -d $ac_dir || continue
1089 ac_builddir=.
1090
1091 if test "$ac_dir" != .; then
1092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093 # A "../" for each directory in $ac_dir_suffix.
1094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095 else
1096 ac_dir_suffix= ac_top_builddir=
1097 fi
1098
1099 case $srcdir in
1100 .) # No --srcdir option. We are building in place.
1101 ac_srcdir=.
1102 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=.
1104 else
1105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 fi ;;
1107 [\\/]* | ?:[\\/]* ) # Absolute path.
1108 ac_srcdir=$srcdir$ac_dir_suffix;
1109 ac_top_srcdir=$srcdir ;;
1110 *) # Relative path.
1111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113 esac
1114
1115 # Do not use `cd foo && pwd` to compute absolute paths, because
1116 # the directories may not exist.
1117 case `pwd` in
1118 .) ac_abs_builddir="$ac_dir";;
1119 *)
1120 case "$ac_dir" in
1121 .) ac_abs_builddir=`pwd`;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *)
1129 case ${ac_top_builddir}. in
1130 .) ac_abs_top_builddir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_srcdir=$ac_srcdir;;
1137 *)
1138 case $ac_srcdir in
1139 .) ac_abs_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *)
1147 case $ac_top_srcdir in
1148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 esac;;
1152 esac
1153
1154 cd $ac_dir
1155 # Check for guested configure; otherwise get Cygnus style configure.
1156 if test -f $ac_srcdir/configure.gnu; then
1157 echo
1158 $SHELL $ac_srcdir/configure.gnu --help=recursive
1159 elif test -f $ac_srcdir/configure; then
1160 echo
1161 $SHELL $ac_srcdir/configure --help=recursive
1162 elif test -f $ac_srcdir/configure.ac ||
1163 test -f $ac_srcdir/configure.in; then
1164 echo
1165 $ac_configure --help
1166 else
1167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 fi
1169 cd $ac_popdir
1170 done
1171 fi
1172
1173 test -n "$ac_init_help" && exit 0
1174 if $ac_init_version; then
1175 cat <<\_ACEOF
1176 wxWindows configure 2.5.1
1177 generated by GNU Autoconf 2.59
1178
1179 Copyright (C) 2003 Free Software Foundation, Inc.
1180 This configure script is free software; the Free Software Foundation
1181 gives unlimited permission to copy, distribute and modify it.
1182 _ACEOF
1183 exit 0
1184 fi
1185 exec 5>config.log
1186 cat >&5 <<_ACEOF
1187 This file contains any messages produced by compilers while
1188 running configure, to aid debugging if configure makes a mistake.
1189
1190 It was created by wxWindows $as_me 2.5.1, which was
1191 generated by GNU Autoconf 2.59. Invocation command line was
1192
1193 $ $0 $@
1194
1195 _ACEOF
1196 {
1197 cat <<_ASUNAME
1198 ## --------- ##
1199 ## Platform. ##
1200 ## --------- ##
1201
1202 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210
1211 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1218
1219 _ASUNAME
1220
1221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222 for as_dir in $PATH
1223 do
1224 IFS=$as_save_IFS
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1227 done
1228
1229 } >&5
1230
1231 cat >&5 <<_ACEOF
1232
1233
1234 ## ----------- ##
1235 ## Core tests. ##
1236 ## ----------- ##
1237
1238 _ACEOF
1239
1240
1241 # Keep a trace of the command line.
1242 # Strip out --no-create and --no-recursion so they do not pile up.
1243 # Strip out --silent because we don't want to record it for future runs.
1244 # Also quote any args containing shell meta-characters.
1245 # Make two passes to allow for proper duplicate-argument suppression.
1246 ac_configure_args=
1247 ac_configure_args0=
1248 ac_configure_args1=
1249 ac_sep=
1250 ac_must_keep_next=false
1251 for ac_pass in 1 2
1252 do
1253 for ac_arg
1254 do
1255 case $ac_arg in
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 continue ;;
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 esac
1263 case $ac_pass in
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 2)
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
1268 ac_must_keep_next=false # Got value, back to normal.
1269 else
1270 case $ac_arg in
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 esac
1278 ;;
1279 -* ) ac_must_keep_next=true ;;
1280 esac
1281 fi
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1284 ac_sep=" "
1285 ;;
1286 esac
1287 done
1288 done
1289 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292 # When interrupted or exit'd, cleanup temporary files, and complete
1293 # config.log. We remove comments because anyway the quotes in there
1294 # would cause problems or look ugly.
1295 # WARNING: Be sure not to use single quotes in there, as some shells,
1296 # such as our DU 5.0 friend, will then `close' the trap.
1297 trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1299 {
1300 echo
1301
1302 cat <<\_ASBOX
1303 ## ---------------- ##
1304 ## Cache variables. ##
1305 ## ---------------- ##
1306 _ASBOX
1307 echo
1308 # The following way of writing the cache mishandles newlines in values,
1309 {
1310 (set) 2>&1 |
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 *ac_space=\ *)
1313 sed -n \
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1316 ;;
1317 *)
1318 sed -n \
1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320 ;;
1321 esac;
1322 }
1323 echo
1324
1325 cat <<\_ASBOX
1326 ## ----------------- ##
1327 ## Output variables. ##
1328 ## ----------------- ##
1329 _ASBOX
1330 echo
1331 for ac_var in $ac_subst_vars
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337
1338 if test -n "$ac_subst_files"; then
1339 cat <<\_ASBOX
1340 ## ------------- ##
1341 ## Output files. ##
1342 ## ------------- ##
1343 _ASBOX
1344 echo
1345 for ac_var in $ac_subst_files
1346 do
1347 eval ac_val=$`echo $ac_var`
1348 echo "$ac_var='"'"'$ac_val'"'"'"
1349 done | sort
1350 echo
1351 fi
1352
1353 if test -s confdefs.h; then
1354 cat <<\_ASBOX
1355 ## ----------- ##
1356 ## confdefs.h. ##
1357 ## ----------- ##
1358 _ASBOX
1359 echo
1360 sed "/^$/d" confdefs.h | sort
1361 echo
1362 fi
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1366 } >&5
1367 rm -f core *.core &&
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 exit $exit_status
1370 ' 0
1371 for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373 done
1374 ac_signal=0
1375
1376 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1377 rm -rf conftest* confdefs.h
1378 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379 echo >confdefs.h
1380
1381 # Predefined preprocessor variables.
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_NAME "$PACKAGE_NAME"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1395 _ACEOF
1396
1397
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_STRING "$PACKAGE_STRING"
1400 _ACEOF
1401
1402
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405 _ACEOF
1406
1407
1408 # Let the site file select an alternate cache file if it wants to.
1409 # Prefer explicitly selected file to automatically selected ones.
1410 if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 else
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 fi
1416 fi
1417 for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420 echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1422 . "$ac_site_file"
1423 fi
1424 done
1425
1426 if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431 echo "$as_me: loading cache $cache_file" >&6;}
1432 case $cache_file in
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1435 esac
1436 fi
1437 else
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439 echo "$as_me: creating cache $cache_file" >&6;}
1440 >$cache_file
1441 fi
1442
1443 # Check that the precious variables saved in the cache have kept the same
1444 # value.
1445 ac_cache_corrupted=false
1446 for ac_var in `(set) 2>&1 |
1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1453 set,)
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1457 ,set)
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1461 ,);;
1462 *)
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1465 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1467 echo "$as_me: former value: $ac_old_val" >&2;}
1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1469 echo "$as_me: current value: $ac_new_val" >&2;}
1470 ac_cache_corrupted=:
1471 fi;;
1472 esac
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1475 case $ac_new_val in
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1479 esac
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483 esac
1484 fi
1485 done
1486 if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1492 fi
1493
1494 ac_ext=c
1495 ac_cpp='$CPP $CPPFLAGS'
1496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529 ac_aux_dir=
1530 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531 if test -f $ac_dir/install-sh; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/install-sh -c"
1534 break
1535 elif test -f $ac_dir/install.sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install.sh -c"
1538 break
1539 elif test -f $ac_dir/shtool; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/shtool install -c"
1542 break
1543 fi
1544 done
1545 if test -z "$ac_aux_dir"; then
1546 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548 { (exit 1); exit 1; }; }
1549 fi
1550 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553
1554 # Make sure we can run config.sub.
1555 $ac_config_sub sun4 >/dev/null 2>&1 ||
1556 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560 echo "$as_me:$LINENO: checking build system type" >&5
1561 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562 if test "${ac_cv_build+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 ac_cv_build_alias=$build_alias
1566 test -z "$ac_cv_build_alias" &&
1567 ac_cv_build_alias=`$ac_config_guess`
1568 test -z "$ac_cv_build_alias" &&
1569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571 { (exit 1); exit 1; }; }
1572 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577 fi
1578 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579 echo "${ECHO_T}$ac_cv_build" >&6
1580 build=$ac_cv_build
1581 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586 echo "$as_me:$LINENO: checking host system type" >&5
1587 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588 if test "${ac_cv_host+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591 ac_cv_host_alias=$host_alias
1592 test -z "$ac_cv_host_alias" &&
1593 ac_cv_host_alias=$ac_cv_build_alias
1594 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599 fi
1600 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601 echo "${ECHO_T}$ac_cv_host" >&6
1602 host=$ac_cv_host
1603 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608 echo "$as_me:$LINENO: checking target system type" >&5
1609 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610 if test "${ac_cv_target+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 else
1613 ac_cv_target_alias=$target_alias
1614 test "x$ac_cv_target_alias" = "x" &&
1615 ac_cv_target_alias=$ac_cv_host_alias
1616 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621 fi
1622 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623 echo "${ECHO_T}$ac_cv_target" >&6
1624 target=$ac_cv_target
1625 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630 # The aliases save the names the user supplied, while $host etc.
1631 # will get canonicalized.
1632 test -n "$target_alias" &&
1633 test "$program_prefix$program_suffix$program_transform_name" = \
1634 NONENONEs,x,x, &&
1635 program_prefix=${target_alias}-
1636
1637
1638
1639 WX_MAJOR_VERSION_NUMBER=2
1640 WX_MINOR_VERSION_NUMBER=5
1641 WX_RELEASE_NUMBER=1
1642
1643 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1644 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1645
1646 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1647
1648 WX_CURRENT=1
1649 WX_REVISION=0
1650 WX_AGE=0
1651
1652
1653
1654 USE_UNIX=1
1655 USE_OS2=0
1656 USE_WIN32=0
1657 USE_DOS=0
1658 USE_BEOS=0
1659 USE_MAC=0
1660
1661 USE_AIX=
1662 USE_BSD= USE_DARWIN= USE_FREEBSD=
1663 USE_GNU= USE_HPUX=
1664 USE_LINUX=
1665 USE_NETBSD=
1666 USE_OPENBSD=
1667 USE_OSF= USE_SGI=
1668 USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1669 USE_ULTRIX=
1670 USE_UNIXWARE=
1671
1672 USE_ALPHA=
1673
1674 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1675
1676 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1677
1678 DEFAULT_wxUSE_COCOA=0
1679 DEFAULT_wxUSE_GTK=0
1680 DEFAULT_wxUSE_MAC=0
1681 DEFAULT_wxUSE_MGL=0
1682 DEFAULT_wxUSE_MICROWIN=0
1683 DEFAULT_wxUSE_MOTIF=0
1684 DEFAULT_wxUSE_MSW=0
1685 DEFAULT_wxUSE_PM=0
1686 DEFAULT_wxUSE_X11=0
1687
1688 DEFAULT_DEFAULT_wxUSE_COCOA=0
1689 DEFAULT_DEFAULT_wxUSE_GTK=0
1690 DEFAULT_DEFAULT_wxUSE_MAC=0
1691 DEFAULT_DEFAULT_wxUSE_MGL=0
1692 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1693 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1694 DEFAULT_DEFAULT_wxUSE_MSW=0
1695 DEFAULT_DEFAULT_wxUSE_PM=0
1696 DEFAULT_DEFAULT_wxUSE_X11=0
1697
1698 PROGRAM_EXT=
1699 SO_SUFFIX=so
1700 SAMPLES_RPATH_FLAG=
1701 SAMPLES_RPATH_POSTLINK=
1702
1703 case "${host}" in
1704 *-hp-hpux* )
1705 USE_HPUX=1
1706 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1707 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1708 SO_SUFFIX=sl
1709 cat >>confdefs.h <<\_ACEOF
1710 #define __HPUX__ 1
1711 _ACEOF
1712
1713 ;;
1714 *-*-linux* )
1715 USE_LINUX=1
1716 cat >>confdefs.h <<\_ACEOF
1717 #define __LINUX__ 1
1718 _ACEOF
1719
1720 TMP=`uname -m`
1721 if test "x$TMP" = "xalpha"; then
1722 USE_ALPHA=1
1723 cat >>confdefs.h <<\_ACEOF
1724 #define __ALPHA__ 1
1725 _ACEOF
1726
1727 fi
1728 DEFAULT_DEFAULT_wxUSE_GTK=1
1729 ;;
1730 *-*-gnu* )
1731 USE_GNU=1
1732 cat >>confdefs.h <<\_ACEOF
1733 #define __GNU__ 1
1734 _ACEOF
1735
1736 TMP=`uname -m`
1737 if test "x$TMP" = "xalpha"; then
1738 USE_ALPHA=1
1739 cat >>confdefs.h <<\_ACEOF
1740 #define __ALPHA__ 1
1741 _ACEOF
1742
1743 fi
1744 DEFAULT_DEFAULT_wxUSE_GTK=1
1745 ;;
1746 *-*-irix5* | *-*-irix6* )
1747 USE_SGI=1
1748 USE_SVR4=1
1749 cat >>confdefs.h <<\_ACEOF
1750 #define __SGI__ 1
1751 _ACEOF
1752
1753 cat >>confdefs.h <<\_ACEOF
1754 #define __SVR4__ 1
1755 _ACEOF
1756
1757 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1758 ;;
1759 *-*-solaris2* )
1760 USE_SUN=1
1761 USE_SOLARIS=1
1762 USE_SVR4=1
1763 cat >>confdefs.h <<\_ACEOF
1764 #define __SUN__ 1
1765 _ACEOF
1766
1767 cat >>confdefs.h <<\_ACEOF
1768 #define __SOLARIS__ 1
1769 _ACEOF
1770
1771 cat >>confdefs.h <<\_ACEOF
1772 #define __SVR4__ 1
1773 _ACEOF
1774
1775 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1776 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1777 ;;
1778 *-*-sunos4* )
1779 USE_SUN=1
1780 USE_SUNOS=1
1781 USE_BSD=1
1782 cat >>confdefs.h <<\_ACEOF
1783 #define __SUN__ 1
1784 _ACEOF
1785
1786 cat >>confdefs.h <<\_ACEOF
1787 #define __SUNOS__ 1
1788 _ACEOF
1789
1790 cat >>confdefs.h <<\_ACEOF
1791 #define __BSD__ 1
1792 _ACEOF
1793
1794 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1795 ;;
1796 *-*-freebsd*)
1797 USE_BSD=1
1798 USE_FREEBSD=1
1799 cat >>confdefs.h <<\_ACEOF
1800 #define __FREEBSD__ 1
1801 _ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804 #define __BSD__ 1
1805 _ACEOF
1806
1807 DEFAULT_DEFAULT_wxUSE_GTK=1
1808 ;;
1809 *-*-openbsd*)
1810 USE_BSD=1
1811 USE_OPENBSD=1
1812 cat >>confdefs.h <<\_ACEOF
1813 #define __OPENBSD__ 1
1814 _ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817 #define __BSD__ 1
1818 _ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_GTK=1
1821 ;;
1822 *-*-netbsd*)
1823 USE_BSD=1
1824 USE_NETBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826 #define __NETBSD__ 1
1827 _ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830 #define __BSD__ 1
1831 _ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-osf* )
1836 USE_ALPHA=1
1837 USE_OSF=1
1838 cat >>confdefs.h <<\_ACEOF
1839 #define __ALPHA__ 1
1840 _ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843 #define __OSF__ 1
1844 _ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1847 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1848 ;;
1849 *-*-dgux5* )
1850 USE_ALPHA=1
1851 USE_SVR4=1
1852 cat >>confdefs.h <<\_ACEOF
1853 #define __ALPHA__ 1
1854 _ACEOF
1855
1856 cat >>confdefs.h <<\_ACEOF
1857 #define __SVR4__ 1
1858 _ACEOF
1859
1860 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1861 ;;
1862 *-*-sysv5* )
1863 USE_SYSV=1
1864 USE_SVR4=1
1865 cat >>confdefs.h <<\_ACEOF
1866 #define __SYSV__ 1
1867 _ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870 #define __SVR4__ 1
1871 _ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 ;;
1875 *-*-aix* )
1876 USE_AIX=1
1877 USE_SYSV=1
1878 USE_SVR4=1
1879 SO_SUFFIX=a
1880 cat >>confdefs.h <<\_ACEOF
1881 #define __AIX__ 1
1882 _ACEOF
1883
1884 cat >>confdefs.h <<\_ACEOF
1885 #define __SYSV__ 1
1886 _ACEOF
1887
1888 cat >>confdefs.h <<\_ACEOF
1889 #define __SVR4__ 1
1890 _ACEOF
1891
1892 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1893 ;;
1894
1895 *-*-*UnixWare*)
1896 USE_SYSV=1
1897 USE_SVR4=1
1898 USE_UNIXWARE=1
1899 cat >>confdefs.h <<\_ACEOF
1900 #define __UNIXWARE__ 1
1901 _ACEOF
1902
1903 ;;
1904
1905 *-*-cygwin* | *-*-mingw32* )
1906 SO_SUFFIX=dll
1907 PROGRAM_EXT=".exe"
1908 RESCOMP=windres
1909 DEFAULT_DEFAULT_wxUSE_MSW=1
1910 ;;
1911
1912 *-pc-msdosdjgpp )
1913 USE_UNIX=0
1914 USE_DOS=1
1915 cat >>confdefs.h <<\_ACEOF
1916 #define __DOS__ 1
1917 _ACEOF
1918
1919 PROGRAM_EXT=".exe"
1920 DEFAULT_DEFAULT_wxUSE_MGL=1
1921 LIBS="$LIBS -lstdc++"
1922 ;;
1923
1924 *-pc-os2_emx | *-pc-os2-emx )
1925 cat >>confdefs.h <<\_ACEOF
1926 #define __EMX__ 1
1927 _ACEOF
1928
1929 USE_OS2=1
1930 cat >>confdefs.h <<\_ACEOF
1931 #define __OS2__ 1
1932 _ACEOF
1933
1934 PROGRAM_EXT=".exe"
1935 DEFAULT_DEFAULT_wxUSE_PM=1
1936 CXX=gcc
1937 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
1938 ac_executable_extensions=".exe"
1939 export ac_executable_extensions
1940 ac_save_IFS="$IFS"
1941 IFS='\\'
1942 ac_TEMP_PATH=
1943 for ac_dir in $PATH; do
1944 IFS=$ac_save_IFS
1945 if test -z "$ac_TEMP_PATH"; then
1946 ac_TEMP_PATH="$ac_dir"
1947 else
1948 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1949 fi
1950 done
1951 export PATH="$ac_TEMP_PATH"
1952 unset ac_TEMP_PATH
1953 ;;
1954
1955 powerpc-*-darwin* )
1956 USE_BSD=1
1957 USE_DARWIN=1
1958 SO_SUFFIX=dylib
1959 cat >>confdefs.h <<\_ACEOF
1960 #define __BSD__ 1
1961 _ACEOF
1962
1963 cat >>confdefs.h <<\_ACEOF
1964 #define __DARWIN__ 1
1965 _ACEOF
1966
1967 cat >>confdefs.h <<\_ACEOF
1968 #define __POWERPC__ 1
1969 _ACEOF
1970
1971 cat >>confdefs.h <<\_ACEOF
1972 #define TARGET_CARBON 1
1973 _ACEOF
1974
1975 DEFAULT_DEFAULT_wxUSE_MAC=1
1976 ;;
1977
1978 *-*-beos* )
1979 USE_BEOS=1
1980 cat >>confdefs.h <<\_ACEOF
1981 #define __BEOS__ 1
1982 _ACEOF
1983
1984 ;;
1985
1986 *)
1987 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1988 echo "$as_me: error: unknown system type ${host}." >&2;}
1989 { (exit 1); exit 1; }; }
1990 esac
1991
1992
1993
1994
1995 wx_arg_cache_file="configarg.cache"
1996 echo "loading argument cache $wx_arg_cache_file"
1997 rm -f ${wx_arg_cache_file}.tmp
1998 touch ${wx_arg_cache_file}.tmp
1999 touch ${wx_arg_cache_file}
2000
2001
2002 DEBUG_CONFIGURE=0
2003 if test $DEBUG_CONFIGURE = 1; then
2004 DEFAULT_wxUSE_UNIVERSAL=no
2005 DEFAULT_wxUSE_STL=no
2006
2007 DEFAULT_wxUSE_NANOX=no
2008
2009 DEFAULT_wxUSE_THREADS=yes
2010
2011 DEFAULT_wxUSE_SHARED=yes
2012 DEFAULT_wxUSE_OPTIMISE=no
2013 DEFAULT_wxUSE_PROFILE=no
2014 DEFAULT_wxUSE_NO_DEPS=no
2015 DEFAULT_wxUSE_NO_RTTI=no
2016 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2017 DEFAULT_wxUSE_PERMISSIVE=no
2018 DEFAULT_wxUSE_DEBUG_FLAG=yes
2019 DEFAULT_wxUSE_DEBUG_INFO=yes
2020 DEFAULT_wxUSE_DEBUG_GDB=yes
2021 DEFAULT_wxUSE_MEM_TRACING=no
2022 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2023 DEFAULT_wxUSE_DMALLOC=no
2024 DEFAULT_wxUSE_APPLE_IEEE=no
2025
2026 DEFAULT_wxUSE_EXCEPTIONS=no
2027 DEFAULT_wxUSE_LOG=yes
2028 DEFAULT_wxUSE_LOGWINDOW=no
2029 DEFAULT_wxUSE_LOGGUI=no
2030 DEFAULT_wxUSE_LOGDIALOG=no
2031
2032 DEFAULT_wxUSE_GUI=yes
2033 DEFAULT_wxUSE_CONTROLS=no
2034
2035 DEFAULT_wxUSE_REGEX=no
2036 DEFAULT_wxUSE_XML=no
2037 DEFAULT_wxUSE_EXPAT=no
2038 DEFAULT_wxUSE_ZLIB=no
2039 DEFAULT_wxUSE_LIBPNG=no
2040 DEFAULT_wxUSE_LIBJPEG=no
2041 DEFAULT_wxUSE_LIBTIFF=no
2042 DEFAULT_wxUSE_LIBXPM=no
2043 DEFAULT_wxUSE_ODBC=no
2044 DEFAULT_wxUSE_OPENGL=no
2045
2046 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2047 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2048 DEFAULT_wxUSE_STD_IOSTREAM=no
2049 DEFAULT_wxUSE_CMDLINE_PARSER=no
2050 DEFAULT_wxUSE_DATETIME=no
2051 DEFAULT_wxUSE_TIMER=no
2052 DEFAULT_wxUSE_STOPWATCH=no
2053 DEFAULT_wxUSE_FILE=no
2054 DEFAULT_wxUSE_FFILE=no
2055 DEFAULT_wxUSE_TEXTBUFFER=no
2056 DEFAULT_wxUSE_TEXTFILE=no
2057 DEFAULT_wxUSE_WAVE=no
2058 DEFAULT_wxUSE_INTL=no
2059 DEFAULT_wxUSE_CONFIG=no
2060 DEFAULT_wxUSE_FONTMAP=no
2061 DEFAULT_wxUSE_STREAMS=no
2062 DEFAULT_wxUSE_SOCKETS=no
2063 DEFAULT_wxUSE_OLE=no
2064 DEFAULT_wxUSE_DATAOBJ=no
2065 DEFAULT_wxUSE_DIALUP_MANAGER=no
2066 DEFAULT_wxUSE_JOYSTICK=no
2067 DEFAULT_wxUSE_DYNLIB_CLASS=no
2068 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2069 DEFAULT_wxUSE_LONGLONG=no
2070 DEFAULT_wxUSE_GEOMETRY=no
2071
2072 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2073 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2074 DEFAULT_wxUSE_POSTSCRIPT=no
2075
2076 DEFAULT_wxUSE_CLIPBOARD=no
2077 DEFAULT_wxUSE_TOOLTIPS=no
2078 DEFAULT_wxUSE_DRAG_AND_DROP=no
2079 DEFAULT_wxUSE_DRAGIMAGE=no
2080 DEFAULT_wxUSE_SPLINES=no
2081
2082 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2083 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2084 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2085
2086 DEFAULT_wxUSE_RESOURCES=no
2087 DEFAULT_wxUSE_CONSTRAINTS=no
2088 DEFAULT_wxUSE_IPC=no
2089 DEFAULT_wxUSE_HELP=no
2090 DEFAULT_wxUSE_MS_HTML_HELP=no
2091 DEFAULT_wxUSE_WXHTML_HELP=no
2092 DEFAULT_wxUSE_TREELAYOUT=no
2093 DEFAULT_wxUSE_METAFILE=no
2094 DEFAULT_wxUSE_MIMETYPE=no
2095 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2096 DEFAULT_wxUSE_PROTOCOL=no
2097 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2098 DEFAULT_wxUSE_PROTOCOL_FTP=no
2099 DEFAULT_wxUSE_PROTOCOL_FILE=no
2100 DEFAULT_wxUSE_URL=no
2101
2102 DEFAULT_wxUSE_COMMONDLGS=no
2103 DEFAULT_wxUSE_CHOICEDLG=no
2104 DEFAULT_wxUSE_COLOURDLG=no
2105 DEFAULT_wxUSE_DIRDLG=no
2106 DEFAULT_wxUSE_FILEDLG=no
2107 DEFAULT_wxUSE_FINDREPLDLG=no
2108 DEFAULT_wxUSE_FONTDLG=no
2109 DEFAULT_wxUSE_MSGDLG=no
2110 DEFAULT_wxUSE_NUMBERDLG=no
2111 DEFAULT_wxUSE_TEXTDLG=no
2112 DEFAULT_wxUSE_SPLASH=no
2113 DEFAULT_wxUSE_STARTUP_TIPS=no
2114 DEFAULT_wxUSE_PROGRESSDLG=no
2115 DEFAULT_wxUSE_WIZARDDLG=no
2116
2117 DEFAULT_wxUSE_MENUS=no
2118 DEFAULT_wxUSE_MINIFRAME=no
2119 DEFAULT_wxUSE_HTML=no
2120 DEFAULT_wxUSE_FILESYSTEM=no
2121 DEFAULT_wxUSE_FS_INET=no
2122 DEFAULT_wxUSE_FS_ZIP=no
2123 DEFAULT_wxUSE_BUSYINFO=no
2124 DEFAULT_wxUSE_ZIPSTREAM=no
2125 DEFAULT_wxUSE_GZSTREAM=no
2126 DEFAULT_wxUSE_VALIDATORS=no
2127
2128 DEFAULT_wxUSE_ACCEL=no
2129 DEFAULT_wxUSE_BUTTON=no
2130 DEFAULT_wxUSE_BMPBUTTON=no
2131 DEFAULT_wxUSE_CALCTRL=no
2132 DEFAULT_wxUSE_CARET=no
2133 DEFAULT_wxUSE_CHECKBOX=no
2134 DEFAULT_wxUSE_CHECKLST=no
2135 DEFAULT_wxUSE_CHOICE=no
2136 DEFAULT_wxUSE_COMBOBOX=no
2137 DEFAULT_wxUSE_DISPLAY=no
2138 DEFAULT_wxUSE_GAUGE=no
2139 DEFAULT_wxUSE_GRID=no
2140 DEFAULT_wxUSE_IMAGLIST=no
2141 DEFAULT_wxUSE_LISTBOOK=no
2142 DEFAULT_wxUSE_LISTBOX=no
2143 DEFAULT_wxUSE_LISTCTRL=no
2144 DEFAULT_wxUSE_NOTEBOOK=no
2145 DEFAULT_wxUSE_RADIOBOX=no
2146 DEFAULT_wxUSE_RADIOBTN=no
2147 DEFAULT_wxUSE_SASH=no
2148 DEFAULT_wxUSE_SCROLLBAR=no
2149 DEFAULT_wxUSE_SLIDER=no
2150 DEFAULT_wxUSE_SPINBTN=no
2151 DEFAULT_wxUSE_SPINCTRL=no
2152 DEFAULT_wxUSE_SPLITTER=no
2153 DEFAULT_wxUSE_STATBMP=no
2154 DEFAULT_wxUSE_STATBOX=no
2155 DEFAULT_wxUSE_STATLINE=no
2156 DEFAULT_wxUSE_STATTEXT=no
2157 DEFAULT_wxUSE_STATUSBAR=yes
2158 DEFAULT_wxUSE_TABDIALOG=no
2159 DEFAULT_wxUSE_TEXTCTRL=no
2160 DEFAULT_wxUSE_TOGGLEBTN=no
2161 DEFAULT_wxUSE_TOOLBAR=no
2162 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2163 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2164 DEFAULT_wxUSE_TREECTRL=no
2165 DEFAULT_wxUSE_POPUPWIN=no
2166 DEFAULT_wxUSE_TIPWINDOW=no
2167
2168 DEFAULT_wxUSE_UNICODE=no
2169 DEFAULT_wxUSE_UNICODE_MSLU=no
2170 DEFAULT_wxUSE_WCSRTOMBS=no
2171
2172 DEFAULT_wxUSE_PALETTE=no
2173 DEFAULT_wxUSE_IMAGE=no
2174 DEFAULT_wxUSE_GIF=no
2175 DEFAULT_wxUSE_PCX=no
2176 DEFAULT_wxUSE_PNM=no
2177 DEFAULT_wxUSE_IFF=no
2178 DEFAULT_wxUSE_XPM=no
2179 DEFAULT_wxUSE_ICO_CUR=no
2180 DEFAULT_wxUSE_ACCESSIBILITY=no
2181
2182 DEFAULT_wxUSE_MONOLITHIC=no
2183 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2184 else
2185 DEFAULT_wxUSE_UNIVERSAL=no
2186 DEFAULT_wxUSE_STL=no
2187
2188 DEFAULT_wxUSE_NANOX=no
2189
2190 DEFAULT_wxUSE_THREADS=yes
2191
2192 DEFAULT_wxUSE_SHARED=yes
2193 DEFAULT_wxUSE_OPTIMISE=yes
2194 DEFAULT_wxUSE_PROFILE=no
2195 DEFAULT_wxUSE_NO_DEPS=no
2196 DEFAULT_wxUSE_NO_RTTI=no
2197 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2198 DEFAULT_wxUSE_PERMISSIVE=no
2199 DEFAULT_wxUSE_DEBUG_FLAG=no
2200 DEFAULT_wxUSE_DEBUG_INFO=no
2201 DEFAULT_wxUSE_DEBUG_GDB=no
2202 DEFAULT_wxUSE_MEM_TRACING=no
2203 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2204 DEFAULT_wxUSE_DMALLOC=no
2205 DEFAULT_wxUSE_APPLE_IEEE=yes
2206
2207 DEFAULT_wxUSE_EXCEPTIONS=yes
2208 DEFAULT_wxUSE_LOG=yes
2209 DEFAULT_wxUSE_LOGWINDOW=yes
2210 DEFAULT_wxUSE_LOGGUI=yes
2211 DEFAULT_wxUSE_LOGDIALOG=yes
2212
2213 DEFAULT_wxUSE_GUI=yes
2214
2215 DEFAULT_wxUSE_REGEX=yes
2216 DEFAULT_wxUSE_XML=yes
2217 DEFAULT_wxUSE_EXPAT=yes
2218 DEFAULT_wxUSE_ZLIB=yes
2219 DEFAULT_wxUSE_LIBPNG=yes
2220 DEFAULT_wxUSE_LIBJPEG=yes
2221 DEFAULT_wxUSE_LIBTIFF=yes
2222 DEFAULT_wxUSE_LIBXPM=yes
2223 DEFAULT_wxUSE_LIBMSPACK=yes
2224 DEFAULT_wxUSE_ODBC=no
2225 DEFAULT_wxUSE_OPENGL=no
2226
2227 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2228 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2229 DEFAULT_wxUSE_STD_IOSTREAM=no
2230 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2231 DEFAULT_wxUSE_DATETIME=yes
2232 DEFAULT_wxUSE_TIMER=yes
2233 DEFAULT_wxUSE_STOPWATCH=yes
2234 DEFAULT_wxUSE_FILE=yes
2235 DEFAULT_wxUSE_FFILE=yes
2236 DEFAULT_wxUSE_TEXTBUFFER=yes
2237 DEFAULT_wxUSE_TEXTFILE=yes
2238 DEFAULT_wxUSE_WAVE=no
2239 DEFAULT_wxUSE_INTL=yes
2240 DEFAULT_wxUSE_CONFIG=yes
2241 DEFAULT_wxUSE_FONTMAP=yes
2242 DEFAULT_wxUSE_STREAMS=yes
2243 DEFAULT_wxUSE_SOCKETS=yes
2244 DEFAULT_wxUSE_OLE=yes
2245 DEFAULT_wxUSE_DATAOBJ=yes
2246 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2247 DEFAULT_wxUSE_JOYSTICK=yes
2248 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2249 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2250 DEFAULT_wxUSE_LONGLONG=yes
2251 DEFAULT_wxUSE_GEOMETRY=yes
2252
2253 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2254 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2255 DEFAULT_wxUSE_POSTSCRIPT=yes
2256
2257 DEFAULT_wxUSE_CLIPBOARD=yes
2258 DEFAULT_wxUSE_TOOLTIPS=yes
2259 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2260 DEFAULT_wxUSE_DRAGIMAGE=yes
2261 DEFAULT_wxUSE_SPLINES=yes
2262
2263 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2264 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2265 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2266
2267 DEFAULT_wxUSE_RESOURCES=no
2268 DEFAULT_wxUSE_CONSTRAINTS=yes
2269 DEFAULT_wxUSE_IPC=yes
2270 DEFAULT_wxUSE_HELP=yes
2271 DEFAULT_wxUSE_MS_HTML_HELP=yes
2272 DEFAULT_wxUSE_WXHTML_HELP=yes
2273 DEFAULT_wxUSE_TREELAYOUT=yes
2274 DEFAULT_wxUSE_METAFILE=yes
2275 DEFAULT_wxUSE_MIMETYPE=yes
2276 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2277 DEFAULT_wxUSE_PROTOCOL=yes
2278 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2279 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2280 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2281 DEFAULT_wxUSE_URL=yes
2282
2283 DEFAULT_wxUSE_COMMONDLGS=yes
2284 DEFAULT_wxUSE_CHOICEDLG=yes
2285 DEFAULT_wxUSE_COLOURDLG=yes
2286 DEFAULT_wxUSE_DIRDLG=yes
2287 DEFAULT_wxUSE_FILEDLG=yes
2288 DEFAULT_wxUSE_FINDREPLDLG=yes
2289 DEFAULT_wxUSE_FONTDLG=yes
2290 DEFAULT_wxUSE_MSGDLG=yes
2291 DEFAULT_wxUSE_NUMBERDLG=yes
2292 DEFAULT_wxUSE_TEXTDLG=yes
2293 DEFAULT_wxUSE_SPLASH=yes
2294 DEFAULT_wxUSE_STARTUP_TIPS=yes
2295 DEFAULT_wxUSE_PROGRESSDLG=yes
2296 DEFAULT_wxUSE_WIZARDDLG=yes
2297
2298 DEFAULT_wxUSE_MENUS=yes
2299 DEFAULT_wxUSE_MINIFRAME=yes
2300 DEFAULT_wxUSE_HTML=yes
2301 DEFAULT_wxUSE_FILESYSTEM=yes
2302 DEFAULT_wxUSE_FS_INET=yes
2303 DEFAULT_wxUSE_FS_ZIP=yes
2304 DEFAULT_wxUSE_BUSYINFO=yes
2305 DEFAULT_wxUSE_ZIPSTREAM=yes
2306 DEFAULT_wxUSE_GZSTREAM=yes
2307 DEFAULT_wxUSE_VALIDATORS=yes
2308
2309 DEFAULT_wxUSE_ACCEL=yes
2310 DEFAULT_wxUSE_BUTTON=yes
2311 DEFAULT_wxUSE_BMPBUTTON=yes
2312 DEFAULT_wxUSE_CALCTRL=yes
2313 DEFAULT_wxUSE_CARET=yes
2314 DEFAULT_wxUSE_CHECKBOX=yes
2315 DEFAULT_wxUSE_CHECKLST=yes
2316 DEFAULT_wxUSE_CHOICE=yes
2317 DEFAULT_wxUSE_COMBOBOX=yes
2318 DEFAULT_wxUSE_DISPLAY=no
2319 DEFAULT_wxUSE_GAUGE=yes
2320 DEFAULT_wxUSE_GRID=yes
2321 DEFAULT_wxUSE_IMAGLIST=yes
2322 DEFAULT_wxUSE_LISTBOOK=yes
2323 DEFAULT_wxUSE_LISTBOX=yes
2324 DEFAULT_wxUSE_LISTCTRL=yes
2325 DEFAULT_wxUSE_NOTEBOOK=yes
2326 DEFAULT_wxUSE_RADIOBOX=yes
2327 DEFAULT_wxUSE_RADIOBTN=yes
2328 DEFAULT_wxUSE_SASH=yes
2329 DEFAULT_wxUSE_SCROLLBAR=yes
2330 DEFAULT_wxUSE_SLIDER=yes
2331 DEFAULT_wxUSE_SPINBTN=yes
2332 DEFAULT_wxUSE_SPINCTRL=yes
2333 DEFAULT_wxUSE_SPLITTER=yes
2334 DEFAULT_wxUSE_STATBMP=yes
2335 DEFAULT_wxUSE_STATBOX=yes
2336 DEFAULT_wxUSE_STATLINE=yes
2337 DEFAULT_wxUSE_STATTEXT=yes
2338 DEFAULT_wxUSE_STATUSBAR=yes
2339 DEFAULT_wxUSE_TABDIALOG=no
2340 DEFAULT_wxUSE_TEXTCTRL=yes
2341 DEFAULT_wxUSE_TOGGLEBTN=yes
2342 DEFAULT_wxUSE_TOOLBAR=yes
2343 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2344 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2345 DEFAULT_wxUSE_TREECTRL=yes
2346 DEFAULT_wxUSE_POPUPWIN=yes
2347 DEFAULT_wxUSE_TIPWINDOW=yes
2348
2349 DEFAULT_wxUSE_UNICODE=no
2350 DEFAULT_wxUSE_UNICODE_MSLU=yes
2351 DEFAULT_wxUSE_WCSRTOMBS=no
2352
2353 DEFAULT_wxUSE_PALETTE=yes
2354 DEFAULT_wxUSE_IMAGE=yes
2355 DEFAULT_wxUSE_GIF=yes
2356 DEFAULT_wxUSE_PCX=yes
2357 DEFAULT_wxUSE_IFF=no
2358 DEFAULT_wxUSE_PNM=yes
2359 DEFAULT_wxUSE_XPM=yes
2360 DEFAULT_wxUSE_ICO_CUR=yes
2361 DEFAULT_wxUSE_ACCESSIBILITY=no
2362
2363 DEFAULT_wxUSE_MONOLITHIC=no
2364 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2365 fi
2366
2367
2368
2369 for toolkit in `echo $ALL_TOOLKITS`; do
2370 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2371 if test "x$LINE" != "x" ; then
2372 has_toolkit_in_cache=1
2373 eval "DEFAULT_$LINE"
2374 eval "CACHE_$toolkit=1"
2375 fi
2376 done
2377
2378
2379
2380 enablestring=
2381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2382 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2383 no_cache=0
2384 # Check whether --enable-gui or --disable-gui was given.
2385 if test "${enable_gui+set}" = set; then
2386 enableval="$enable_gui"
2387
2388 if test "$enableval" = yes; then
2389 ac_cv_use_gui='wxUSE_GUI=yes'
2390 else
2391 ac_cv_use_gui='wxUSE_GUI=no'
2392 fi
2393
2394 else
2395
2396 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2397 if test "x$LINE" != x ; then
2398 eval "DEFAULT_$LINE"
2399 else
2400 no_cache=1
2401 fi
2402
2403 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2404
2405 fi;
2406
2407 eval "$ac_cv_use_gui"
2408 if test "$no_cache" != 1; then
2409 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2410 fi
2411
2412 if test "$wxUSE_GUI" = yes; then
2413 echo "$as_me:$LINENO: result: yes" >&5
2414 echo "${ECHO_T}yes" >&6
2415 else
2416 echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6
2418 fi
2419
2420
2421 enablestring=
2422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2423 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2424 no_cache=0
2425 # Check whether --enable-monolithic or --disable-monolithic was given.
2426 if test "${enable_monolithic+set}" = set; then
2427 enableval="$enable_monolithic"
2428
2429 if test "$enableval" = yes; then
2430 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2431 else
2432 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2433 fi
2434
2435 else
2436
2437 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2438 if test "x$LINE" != x ; then
2439 eval "DEFAULT_$LINE"
2440 else
2441 no_cache=1
2442 fi
2443
2444 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2445
2446 fi;
2447
2448 eval "$ac_cv_use_monolithic"
2449 if test "$no_cache" != 1; then
2450 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2451 fi
2452
2453 if test "$wxUSE_MONOLITHIC" = yes; then
2454 echo "$as_me:$LINENO: result: yes" >&5
2455 echo "${ECHO_T}yes" >&6
2456 else
2457 echo "$as_me:$LINENO: result: no" >&5
2458 echo "${ECHO_T}no" >&6
2459 fi
2460
2461
2462 if test "$wxUSE_GUI" = "yes"; then
2463
2464
2465 enablestring=
2466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2467 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2468 no_cache=0
2469 # Check whether --enable-universal or --disable-universal was given.
2470 if test "${enable_universal+set}" = set; then
2471 enableval="$enable_universal"
2472
2473 if test "$enableval" = yes; then
2474 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2475 else
2476 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2477 fi
2478
2479 else
2480
2481 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2482 if test "x$LINE" != x ; then
2483 eval "DEFAULT_$LINE"
2484 else
2485 no_cache=1
2486 fi
2487
2488 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2489
2490 fi;
2491
2492 eval "$ac_cv_use_universal"
2493 if test "$no_cache" != 1; then
2494 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2495 fi
2496
2497 if test "$wxUSE_UNIVERSAL" = yes; then
2498 echo "$as_me:$LINENO: result: yes" >&5
2499 echo "${ECHO_T}yes" >&6
2500 else
2501 echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2503 fi
2504
2505
2506 # Check whether --with-gtk or --without-gtk was given.
2507 if test "${with_gtk+set}" = set; then
2508 withval="$with_gtk"
2509 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2510 fi;
2511
2512 # Check whether --with-motif or --without-motif was given.
2513 if test "${with_motif+set}" = set; then
2514 withval="$with_motif"
2515 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2516 fi;
2517
2518 # Check whether --with-mac or --without-mac was given.
2519 if test "${with_mac+set}" = set; then
2520 withval="$with_mac"
2521 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2522 fi;
2523
2524 # Check whether --with-cocoa or --without-cocoa was given.
2525 if test "${with_cocoa+set}" = set; then
2526 withval="$with_cocoa"
2527 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2528 fi;
2529
2530 # Check whether --with-wine or --without-wine was given.
2531 if test "${with_wine+set}" = set; then
2532 withval="$with_wine"
2533 wxUSE_WINE="$withval" CACHE_WINE=1
2534 fi;
2535
2536 # Check whether --with-msw or --without-msw was given.
2537 if test "${with_msw+set}" = set; then
2538 withval="$with_msw"
2539 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2540 fi;
2541
2542 # Check whether --with-pm or --without-pm was given.
2543 if test "${with_pm+set}" = set; then
2544 withval="$with_pm"
2545 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2546 fi;
2547
2548 # Check whether --with-mgl or --without-mgl was given.
2549 if test "${with_mgl+set}" = set; then
2550 withval="$with_mgl"
2551 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2552 fi;
2553
2554 # Check whether --with-microwin or --without-microwin was given.
2555 if test "${with_microwin+set}" = set; then
2556 withval="$with_microwin"
2557 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2558 fi;
2559
2560 # Check whether --with-x11 or --without-x11 was given.
2561 if test "${with_x11+set}" = set; then
2562 withval="$with_x11"
2563 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2564 fi;
2565
2566 enablestring=
2567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2568 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2569 no_cache=0
2570 # Check whether --enable-nanox or --disable-nanox was given.
2571 if test "${enable_nanox+set}" = set; then
2572 enableval="$enable_nanox"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_nanox='wxUSE_NANOX=yes'
2576 else
2577 ac_cv_use_nanox='wxUSE_NANOX=no'
2578 fi
2579
2580 else
2581
2582 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2590
2591 fi;
2592
2593 eval "$ac_cv_use_nanox"
2594 if test "$no_cache" != 1; then
2595 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2596 fi
2597
2598 if test "$wxUSE_NANOX" = yes; then
2599 echo "$as_me:$LINENO: result: yes" >&5
2600 echo "${ECHO_T}yes" >&6
2601 else
2602 echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2604 fi
2605
2606
2607
2608 enablestring=
2609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2610 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2611 no_cache=0
2612 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2613 if test "${enable_gtk2+set}" = set; then
2614 enableval="$enable_gtk2"
2615
2616 if test "$enableval" = yes; then
2617 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2618 else
2619 ac_cv_use_gtk2='wxUSE_GTK2=no'
2620 fi
2621
2622 else
2623
2624 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2632
2633 fi;
2634
2635 eval "$ac_cv_use_gtk2"
2636 if test "$no_cache" != 1; then
2637 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2638 fi
2639
2640 if test "$wxUSE_GTK2" = yes; then
2641 echo "$as_me:$LINENO: result: yes" >&5
2642 echo "${ECHO_T}yes" >&6
2643 else
2644 echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6
2646 fi
2647
2648
2649
2650 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2651 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2652 no_cache=0
2653
2654 # Check whether --with-libpng or --without-libpng was given.
2655 if test "${with_libpng+set}" = set; then
2656 withval="$with_libpng"
2657
2658 if test "$withval" = yes; then
2659 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2660 elif test "$withval" = no; then
2661 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2662 elif test "$withval" = sys; then
2663 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2664 elif test "$withval" = builtin; then
2665 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2666 else
2667 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2668 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2669 { (exit 1); exit 1; }; }
2670 fi
2671
2672 else
2673
2674 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
2681 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2682
2683 fi;
2684
2685 eval "$ac_cv_use_libpng"
2686 if test "$no_cache" != 1; then
2687 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2688 fi
2689
2690 if test "$wxUSE_LIBPNG" = yes; then
2691 echo "$as_me:$LINENO: result: yes" >&5
2692 echo "${ECHO_T}yes" >&6
2693 elif test "$wxUSE_LIBPNG" = no; then
2694 echo "$as_me:$LINENO: result: no" >&5
2695 echo "${ECHO_T}no" >&6
2696 elif test "$wxUSE_LIBPNG" = sys; then
2697 echo "$as_me:$LINENO: result: system version" >&5
2698 echo "${ECHO_T}system version" >&6
2699 elif test "$wxUSE_LIBPNG" = builtin; then
2700 echo "$as_me:$LINENO: result: builtin version" >&5
2701 echo "${ECHO_T}builtin version" >&6
2702 else
2703 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2704 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2705 { (exit 1); exit 1; }; }
2706 fi
2707
2708
2709 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2710 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2711 no_cache=0
2712
2713 # Check whether --with-libjpeg or --without-libjpeg was given.
2714 if test "${with_libjpeg+set}" = set; then
2715 withval="$with_libjpeg"
2716
2717 if test "$withval" = yes; then
2718 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2719 elif test "$withval" = no; then
2720 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2721 elif test "$withval" = sys; then
2722 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2723 elif test "$withval" = builtin; then
2724 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2725 else
2726 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2727 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2728 { (exit 1); exit 1; }; }
2729 fi
2730
2731 else
2732
2733 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2741
2742 fi;
2743
2744 eval "$ac_cv_use_libjpeg"
2745 if test "$no_cache" != 1; then
2746 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2747 fi
2748
2749 if test "$wxUSE_LIBJPEG" = yes; then
2750 echo "$as_me:$LINENO: result: yes" >&5
2751 echo "${ECHO_T}yes" >&6
2752 elif test "$wxUSE_LIBJPEG" = no; then
2753 echo "$as_me:$LINENO: result: no" >&5
2754 echo "${ECHO_T}no" >&6
2755 elif test "$wxUSE_LIBJPEG" = sys; then
2756 echo "$as_me:$LINENO: result: system version" >&5
2757 echo "${ECHO_T}system version" >&6
2758 elif test "$wxUSE_LIBJPEG" = builtin; then
2759 echo "$as_me:$LINENO: result: builtin version" >&5
2760 echo "${ECHO_T}builtin version" >&6
2761 else
2762 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2763 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2764 { (exit 1); exit 1; }; }
2765 fi
2766
2767
2768 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2769 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2770 no_cache=0
2771
2772 # Check whether --with-libtiff or --without-libtiff was given.
2773 if test "${with_libtiff+set}" = set; then
2774 withval="$with_libtiff"
2775
2776 if test "$withval" = yes; then
2777 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2778 elif test "$withval" = no; then
2779 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2780 elif test "$withval" = sys; then
2781 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2782 elif test "$withval" = builtin; then
2783 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2784 else
2785 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2786 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2787 { (exit 1); exit 1; }; }
2788 fi
2789
2790 else
2791
2792 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2793 if test "x$LINE" != x ; then
2794 eval "DEFAULT_$LINE"
2795 else
2796 no_cache=1
2797 fi
2798
2799 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2800
2801 fi;
2802
2803 eval "$ac_cv_use_libtiff"
2804 if test "$no_cache" != 1; then
2805 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2806 fi
2807
2808 if test "$wxUSE_LIBTIFF" = yes; then
2809 echo "$as_me:$LINENO: result: yes" >&5
2810 echo "${ECHO_T}yes" >&6
2811 elif test "$wxUSE_LIBTIFF" = no; then
2812 echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6
2814 elif test "$wxUSE_LIBTIFF" = sys; then
2815 echo "$as_me:$LINENO: result: system version" >&5
2816 echo "${ECHO_T}system version" >&6
2817 elif test "$wxUSE_LIBTIFF" = builtin; then
2818 echo "$as_me:$LINENO: result: builtin version" >&5
2819 echo "${ECHO_T}builtin version" >&6
2820 else
2821 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2822 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2823 { (exit 1); exit 1; }; }
2824 fi
2825
2826
2827 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2828 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2829 no_cache=0
2830
2831 # Check whether --with-libxpm or --without-libxpm was given.
2832 if test "${with_libxpm+set}" = set; then
2833 withval="$with_libxpm"
2834
2835 if test "$withval" = yes; then
2836 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2837 elif test "$withval" = no; then
2838 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2839 elif test "$withval" = sys; then
2840 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2841 elif test "$withval" = builtin; then
2842 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2843 else
2844 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2845 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2846 { (exit 1); exit 1; }; }
2847 fi
2848
2849 else
2850
2851 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2859
2860 fi;
2861
2862 eval "$ac_cv_use_libxpm"
2863 if test "$no_cache" != 1; then
2864 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2865 fi
2866
2867 if test "$wxUSE_LIBXPM" = yes; then
2868 echo "$as_me:$LINENO: result: yes" >&5
2869 echo "${ECHO_T}yes" >&6
2870 elif test "$wxUSE_LIBXPM" = no; then
2871 echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2873 elif test "$wxUSE_LIBXPM" = sys; then
2874 echo "$as_me:$LINENO: result: system version" >&5
2875 echo "${ECHO_T}system version" >&6
2876 elif test "$wxUSE_LIBXPM" = builtin; then
2877 echo "$as_me:$LINENO: result: builtin version" >&5
2878 echo "${ECHO_T}builtin version" >&6
2879 else
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2881 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885
2886 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2887 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2888 no_cache=0
2889
2890 # Check whether --with-libmspack or --without-libmspack was given.
2891 if test "${with_libmspack+set}" = set; then
2892 withval="$with_libmspack"
2893
2894 if test "$withval" = yes; then
2895 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2896 else
2897 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2898 fi
2899
2900 else
2901
2902 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2910
2911 fi;
2912
2913 eval "$ac_cv_use_libmspack"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_LIBMSPACK" = yes; then
2919 echo "$as_me:$LINENO: result: yes" >&5
2920 echo "${ECHO_T}yes" >&6
2921 else
2922 echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6
2924 fi
2925
2926
2927 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2928 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2929 no_cache=0
2930
2931 # Check whether --with-opengl or --without-opengl was given.
2932 if test "${with_opengl+set}" = set; then
2933 withval="$with_opengl"
2934
2935 if test "$withval" = yes; then
2936 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2937 else
2938 ac_cv_use_opengl='wxUSE_OPENGL=no'
2939 fi
2940
2941 else
2942
2943 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
2950 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2951
2952 fi;
2953
2954 eval "$ac_cv_use_opengl"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_OPENGL" = yes; then
2960 echo "$as_me:$LINENO: result: yes" >&5
2961 echo "${ECHO_T}yes" >&6
2962 else
2963 echo "$as_me:$LINENO: result: no" >&5
2964 echo "${ECHO_T}no" >&6
2965 fi
2966
2967
2968 fi
2969
2970
2971 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2972 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
2973 no_cache=0
2974
2975 # Check whether --with-dmalloc or --without-dmalloc was given.
2976 if test "${with_dmalloc+set}" = set; then
2977 withval="$with_dmalloc"
2978
2979 if test "$withval" = yes; then
2980 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2981 else
2982 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2983 fi
2984
2985 else
2986
2987 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2988 if test "x$LINE" != x ; then
2989 eval "DEFAULT_$LINE"
2990 else
2991 no_cache=1
2992 fi
2993
2994 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2995
2996 fi;
2997
2998 eval "$ac_cv_use_dmalloc"
2999 if test "$no_cache" != 1; then
3000 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3001 fi
3002
3003 if test "$wxUSE_DMALLOC" = yes; then
3004 echo "$as_me:$LINENO: result: yes" >&5
3005 echo "${ECHO_T}yes" >&6
3006 else
3007 echo "$as_me:$LINENO: result: no" >&5
3008 echo "${ECHO_T}no" >&6
3009 fi
3010
3011
3012 echo "$as_me:$LINENO: checking for --with-regex" >&5
3013 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3014 no_cache=0
3015
3016 # Check whether --with-regex or --without-regex was given.
3017 if test "${with_regex+set}" = set; then
3018 withval="$with_regex"
3019
3020 if test "$withval" = yes; then
3021 ac_cv_use_regex='wxUSE_REGEX=yes'
3022 elif test "$withval" = no; then
3023 ac_cv_use_regex='wxUSE_REGEX=no'
3024 elif test "$withval" = sys; then
3025 ac_cv_use_regex='wxUSE_REGEX=sys'
3026 elif test "$withval" = builtin; then
3027 ac_cv_use_regex='wxUSE_REGEX=builtin'
3028 else
3029 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3030 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3031 { (exit 1); exit 1; }; }
3032 fi
3033
3034 else
3035
3036 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3044
3045 fi;
3046
3047 eval "$ac_cv_use_regex"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_REGEX" = yes; then
3053 echo "$as_me:$LINENO: result: yes" >&5
3054 echo "${ECHO_T}yes" >&6
3055 elif test "$wxUSE_REGEX" = no; then
3056 echo "$as_me:$LINENO: result: no" >&5
3057 echo "${ECHO_T}no" >&6
3058 elif test "$wxUSE_REGEX" = sys; then
3059 echo "$as_me:$LINENO: result: system version" >&5
3060 echo "${ECHO_T}system version" >&6
3061 elif test "$wxUSE_REGEX" = builtin; then
3062 echo "$as_me:$LINENO: result: builtin version" >&5
3063 echo "${ECHO_T}builtin version" >&6
3064 else
3065 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3066 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3067 { (exit 1); exit 1; }; }
3068 fi
3069
3070
3071 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3072 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3073 no_cache=0
3074
3075 # Check whether --with-zlib or --without-zlib was given.
3076 if test "${with_zlib+set}" = set; then
3077 withval="$with_zlib"
3078
3079 if test "$withval" = yes; then
3080 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3081 elif test "$withval" = no; then
3082 ac_cv_use_zlib='wxUSE_ZLIB=no'
3083 elif test "$withval" = sys; then
3084 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3085 elif test "$withval" = builtin; then
3086 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3087 else
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3089 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3092
3093 else
3094
3095 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3103
3104 fi;
3105
3106 eval "$ac_cv_use_zlib"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_ZLIB" = yes; then
3112 echo "$as_me:$LINENO: result: yes" >&5
3113 echo "${ECHO_T}yes" >&6
3114 elif test "$wxUSE_ZLIB" = no; then
3115 echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6
3117 elif test "$wxUSE_ZLIB" = sys; then
3118 echo "$as_me:$LINENO: result: system version" >&5
3119 echo "${ECHO_T}system version" >&6
3120 elif test "$wxUSE_ZLIB" = builtin; then
3121 echo "$as_me:$LINENO: result: builtin version" >&5
3122 echo "${ECHO_T}builtin version" >&6
3123 else
3124 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3125 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3126 { (exit 1); exit 1; }; }
3127 fi
3128
3129
3130 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3131 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3132 no_cache=0
3133
3134 # Check whether --with-odbc or --without-odbc was given.
3135 if test "${with_odbc+set}" = set; then
3136 withval="$with_odbc"
3137
3138 if test "$withval" = yes; then
3139 ac_cv_use_odbc='wxUSE_ODBC=yes'
3140 elif test "$withval" = no; then
3141 ac_cv_use_odbc='wxUSE_ODBC=no'
3142 elif test "$withval" = sys; then
3143 ac_cv_use_odbc='wxUSE_ODBC=sys'
3144 elif test "$withval" = builtin; then
3145 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3146 else
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3148 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
3150 fi
3151
3152 else
3153
3154 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3162
3163 fi;
3164
3165 eval "$ac_cv_use_odbc"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_ODBC" = yes; then
3171 echo "$as_me:$LINENO: result: yes" >&5
3172 echo "${ECHO_T}yes" >&6
3173 elif test "$wxUSE_ODBC" = no; then
3174 echo "$as_me:$LINENO: result: no" >&5
3175 echo "${ECHO_T}no" >&6
3176 elif test "$wxUSE_ODBC" = sys; then
3177 echo "$as_me:$LINENO: result: system version" >&5
3178 echo "${ECHO_T}system version" >&6
3179 elif test "$wxUSE_ODBC" = builtin; then
3180 echo "$as_me:$LINENO: result: builtin version" >&5
3181 echo "${ECHO_T}builtin version" >&6
3182 else
3183 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3184 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3185 { (exit 1); exit 1; }; }
3186 fi
3187
3188
3189 echo "$as_me:$LINENO: checking for --with-expat" >&5
3190 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3191 no_cache=0
3192
3193 # Check whether --with-expat or --without-expat was given.
3194 if test "${with_expat+set}" = set; then
3195 withval="$with_expat"
3196
3197 if test "$withval" = yes; then
3198 ac_cv_use_expat='wxUSE_EXPAT=yes'
3199 elif test "$withval" = no; then
3200 ac_cv_use_expat='wxUSE_EXPAT=no'
3201 elif test "$withval" = sys; then
3202 ac_cv_use_expat='wxUSE_EXPAT=sys'
3203 elif test "$withval" = builtin; then
3204 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3205 else
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3207 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210
3211 else
3212
3213 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3221
3222 fi;
3223
3224 eval "$ac_cv_use_expat"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_EXPAT" = yes; then
3230 echo "$as_me:$LINENO: result: yes" >&5
3231 echo "${ECHO_T}yes" >&6
3232 elif test "$wxUSE_EXPAT" = no; then
3233 echo "$as_me:$LINENO: result: no" >&5
3234 echo "${ECHO_T}no" >&6
3235 elif test "$wxUSE_EXPAT" = sys; then
3236 echo "$as_me:$LINENO: result: system version" >&5
3237 echo "${ECHO_T}system version" >&6
3238 elif test "$wxUSE_EXPAT" = builtin; then
3239 echo "$as_me:$LINENO: result: builtin version" >&5
3240 echo "${ECHO_T}builtin version" >&6
3241 else
3242 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3243 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3244 { (exit 1); exit 1; }; }
3245 fi
3246
3247
3248
3249
3250 enablestring=
3251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3252 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3253 no_cache=0
3254 # Check whether --enable-shared or --disable-shared was given.
3255 if test "${enable_shared+set}" = set; then
3256 enableval="$enable_shared"
3257
3258 if test "$enableval" = yes; then
3259 ac_cv_use_shared='wxUSE_SHARED=yes'
3260 else
3261 ac_cv_use_shared='wxUSE_SHARED=no'
3262 fi
3263
3264 else
3265
3266 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3267 if test "x$LINE" != x ; then
3268 eval "DEFAULT_$LINE"
3269 else
3270 no_cache=1
3271 fi
3272
3273 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3274
3275 fi;
3276
3277 eval "$ac_cv_use_shared"
3278 if test "$no_cache" != 1; then
3279 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3280 fi
3281
3282 if test "$wxUSE_SHARED" = yes; then
3283 echo "$as_me:$LINENO: result: yes" >&5
3284 echo "${ECHO_T}yes" >&6
3285 else
3286 echo "$as_me:$LINENO: result: no" >&5
3287 echo "${ECHO_T}no" >&6
3288 fi
3289
3290
3291 enablestring=
3292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3293 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3294 no_cache=0
3295 # Check whether --enable-optimise or --disable-optimise was given.
3296 if test "${enable_optimise+set}" = set; then
3297 enableval="$enable_optimise"
3298
3299 if test "$enableval" = yes; then
3300 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3301 else
3302 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3303 fi
3304
3305 else
3306
3307 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3315
3316 fi;
3317
3318 eval "$ac_cv_use_optimise"
3319 if test "$no_cache" != 1; then
3320 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3321 fi
3322
3323 if test "$wxUSE_OPTIMISE" = yes; then
3324 echo "$as_me:$LINENO: result: yes" >&5
3325 echo "${ECHO_T}yes" >&6
3326 else
3327 echo "$as_me:$LINENO: result: no" >&5
3328 echo "${ECHO_T}no" >&6
3329 fi
3330
3331
3332 enablestring=
3333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3334 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3335 no_cache=0
3336 # Check whether --enable-debug or --disable-debug was given.
3337 if test "${enable_debug+set}" = set; then
3338 enableval="$enable_debug"
3339
3340 if test "$enableval" = yes; then
3341 ac_cv_use_debug='wxUSE_DEBUG=yes'
3342 else
3343 ac_cv_use_debug='wxUSE_DEBUG=no'
3344 fi
3345
3346 else
3347
3348 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3356
3357 fi;
3358
3359 eval "$ac_cv_use_debug"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_DEBUG" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366 echo "${ECHO_T}yes" >&6
3367 else
3368 echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 fi
3371
3372
3373 enablestring=
3374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3375 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3376 no_cache=0
3377 # Check whether --enable-stl or --disable-stl was given.
3378 if test "${enable_stl+set}" = set; then
3379 enableval="$enable_stl"
3380
3381 if test "$enableval" = yes; then
3382 ac_cv_use_stl='wxUSE_STL=yes'
3383 else
3384 ac_cv_use_stl='wxUSE_STL=no'
3385 fi
3386
3387 else
3388
3389 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3390 if test "x$LINE" != x ; then
3391 eval "DEFAULT_$LINE"
3392 else
3393 no_cache=1
3394 fi
3395
3396 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3397
3398 fi;
3399
3400 eval "$ac_cv_use_stl"
3401 if test "$no_cache" != 1; then
3402 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3403 fi
3404
3405 if test "$wxUSE_STL" = yes; then
3406 echo "$as_me:$LINENO: result: yes" >&5
3407 echo "${ECHO_T}yes" >&6
3408 else
3409 echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3411 fi
3412
3413
3414 if test "$wxUSE_DEBUG" = "yes"; then
3415 DEFAULT_wxUSE_DEBUG_FLAG=yes
3416 DEFAULT_wxUSE_DEBUG_INFO=yes
3417 BUILD=debug
3418 elif test "$wxUSE_DEBUG" = "no"; then
3419 DEFAULT_wxUSE_DEBUG_FLAG=no
3420 DEFAULT_wxUSE_DEBUG_INFO=no
3421 BUILD=release
3422 fi
3423
3424
3425 enablestring=
3426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3427 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3428 no_cache=0
3429 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3430 if test "${enable_debug_flag+set}" = set; then
3431 enableval="$enable_debug_flag"
3432
3433 if test "$enableval" = yes; then
3434 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3435 else
3436 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3437 fi
3438
3439 else
3440
3441 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3449
3450 fi;
3451
3452 eval "$ac_cv_use_debug_flag"
3453 if test "$no_cache" != 1; then
3454 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3455 fi
3456
3457 if test "$wxUSE_DEBUG_FLAG" = yes; then
3458 echo "$as_me:$LINENO: result: yes" >&5
3459 echo "${ECHO_T}yes" >&6
3460 else
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3463 fi
3464
3465
3466 enablestring=
3467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3468 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3469 no_cache=0
3470 # Check whether --enable-debug_info or --disable-debug_info was given.
3471 if test "${enable_debug_info+set}" = set; then
3472 enableval="$enable_debug_info"
3473
3474 if test "$enableval" = yes; then
3475 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3476 else
3477 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3478 fi
3479
3480 else
3481
3482 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3490
3491 fi;
3492
3493 eval "$ac_cv_use_debug_info"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_DEBUG_INFO" = yes; then
3499 echo "$as_me:$LINENO: result: yes" >&5
3500 echo "${ECHO_T}yes" >&6
3501 else
3502 echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3504 fi
3505
3506
3507 enablestring=
3508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3509 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3510 no_cache=0
3511 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3512 if test "${enable_debug_gdb+set}" = set; then
3513 enableval="$enable_debug_gdb"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3517 else
3518 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3519 fi
3520
3521 else
3522
3523 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3531
3532 fi;
3533
3534 eval "$ac_cv_use_debug_gdb"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_DEBUG_GDB" = yes; then
3540 echo "$as_me:$LINENO: result: yes" >&5
3541 echo "${ECHO_T}yes" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3545 fi
3546
3547
3548 enablestring=
3549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3550 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3551 no_cache=0
3552 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3553 if test "${enable_debug_cntxt+set}" = set; then
3554 enableval="$enable_debug_cntxt"
3555
3556 if test "$enableval" = yes; then
3557 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3558 else
3559 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3560 fi
3561
3562 else
3563
3564 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3572
3573 fi;
3574
3575 eval "$ac_cv_use_debug_cntxt"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3581 echo "$as_me:$LINENO: result: yes" >&5
3582 echo "${ECHO_T}yes" >&6
3583 else
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3586 fi
3587
3588
3589 enablestring=
3590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3591 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3592 no_cache=0
3593 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3594 if test "${enable_mem_tracing+set}" = set; then
3595 enableval="$enable_mem_tracing"
3596
3597 if test "$enableval" = yes; then
3598 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3599 else
3600 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3601 fi
3602
3603 else
3604
3605 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3613
3614 fi;
3615
3616 eval "$ac_cv_use_mem_tracing"
3617 if test "$no_cache" != 1; then
3618 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3619 fi
3620
3621 if test "$wxUSE_MEM_TRACING" = yes; then
3622 echo "$as_me:$LINENO: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6
3624 else
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 fi
3628
3629
3630 enablestring=
3631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3632 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3633 no_cache=0
3634 # Check whether --enable-profile or --disable-profile was given.
3635 if test "${enable_profile+set}" = set; then
3636 enableval="$enable_profile"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_profile='wxUSE_PROFILE=yes'
3640 else
3641 ac_cv_use_profile='wxUSE_PROFILE=no'
3642 fi
3643
3644 else
3645
3646 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3654
3655 fi;
3656
3657 eval "$ac_cv_use_profile"
3658 if test "$no_cache" != 1; then
3659 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3660 fi
3661
3662 if test "$wxUSE_PROFILE" = yes; then
3663 echo "$as_me:$LINENO: result: yes" >&5
3664 echo "${ECHO_T}yes" >&6
3665 else
3666 echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3668 fi
3669
3670
3671 enablestring=
3672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3673 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3674 no_cache=0
3675 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3676 if test "${enable_no_rtti+set}" = set; then
3677 enableval="$enable_no_rtti"
3678
3679 if test "$enableval" = yes; then
3680 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3681 else
3682 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3683 fi
3684
3685 else
3686
3687 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3688 if test "x$LINE" != x ; then
3689 eval "DEFAULT_$LINE"
3690 else
3691 no_cache=1
3692 fi
3693
3694 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3695
3696 fi;
3697
3698 eval "$ac_cv_use_no_rtti"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_NO_RTTI" = yes; then
3704 echo "$as_me:$LINENO: result: yes" >&5
3705 echo "${ECHO_T}yes" >&6
3706 else
3707 echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3709 fi
3710
3711
3712 enablestring=
3713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3714 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3715 no_cache=0
3716 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3717 if test "${enable_no_exceptions+set}" = set; then
3718 enableval="$enable_no_exceptions"
3719
3720 if test "$enableval" = yes; then
3721 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3722 else
3723 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3724 fi
3725
3726 else
3727
3728 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
3735 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3736
3737 fi;
3738
3739 eval "$ac_cv_use_no_exceptions"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3745 echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6
3747 else
3748 echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6
3750 fi
3751
3752
3753 enablestring=
3754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3755 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3756 no_cache=0
3757 # Check whether --enable-permissive or --disable-permissive was given.
3758 if test "${enable_permissive+set}" = set; then
3759 enableval="$enable_permissive"
3760
3761 if test "$enableval" = yes; then
3762 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3763 else
3764 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3765 fi
3766
3767 else
3768
3769 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3770 if test "x$LINE" != x ; then
3771 eval "DEFAULT_$LINE"
3772 else
3773 no_cache=1
3774 fi
3775
3776 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3777
3778 fi;
3779
3780 eval "$ac_cv_use_permissive"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_PERMISSIVE" = yes; then
3786 echo "$as_me:$LINENO: result: yes" >&5
3787 echo "${ECHO_T}yes" >&6
3788 else
3789 echo "$as_me:$LINENO: result: no" >&5
3790 echo "${ECHO_T}no" >&6
3791 fi
3792
3793
3794 enablestring=
3795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3796 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3797 no_cache=0
3798 # Check whether --enable-no_deps or --disable-no_deps was given.
3799 if test "${enable_no_deps+set}" = set; then
3800 enableval="$enable_no_deps"
3801
3802 if test "$enableval" = yes; then
3803 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3804 else
3805 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3806 fi
3807
3808 else
3809
3810 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3818
3819 fi;
3820
3821 eval "$ac_cv_use_no_deps"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_NO_DEPS" = yes; then
3827 echo "$as_me:$LINENO: result: yes" >&5
3828 echo "${ECHO_T}yes" >&6
3829 else
3830 echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6
3832 fi
3833
3834
3835
3836 enablestring=
3837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3838 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3839 no_cache=0
3840 # Check whether --enable-compat22 or --disable-compat22 was given.
3841 if test "${enable_compat22+set}" = set; then
3842 enableval="$enable_compat22"
3843
3844 if test "$enableval" = yes; then
3845 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3846 else
3847 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3848 fi
3849
3850 else
3851
3852 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3853 if test "x$LINE" != x ; then
3854 eval "DEFAULT_$LINE"
3855 else
3856 no_cache=1
3857 fi
3858
3859 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3860
3861 fi;
3862
3863 eval "$ac_cv_use_compat22"
3864 if test "$no_cache" != 1; then
3865 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3866 fi
3867
3868 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3869 echo "$as_me:$LINENO: result: yes" >&5
3870 echo "${ECHO_T}yes" >&6
3871 else
3872 echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 fi
3875
3876
3877 enablestring=disable
3878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3879 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3880 no_cache=0
3881 # Check whether --enable-compat24 or --disable-compat24 was given.
3882 if test "${enable_compat24+set}" = set; then
3883 enableval="$enable_compat24"
3884
3885 if test "$enableval" = yes; then
3886 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3887 else
3888 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3889 fi
3890
3891 else
3892
3893 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3894 if test "x$LINE" != x ; then
3895 eval "DEFAULT_$LINE"
3896 else
3897 no_cache=1
3898 fi
3899
3900 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3901
3902 fi;
3903
3904 eval "$ac_cv_use_compat24"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3910 echo "$as_me:$LINENO: result: yes" >&5
3911 echo "${ECHO_T}yes" >&6
3912 else
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 fi
3916
3917
3918 # Check whether --enable-rpath or --disable-rpath was given.
3919 if test "${enable_rpath+set}" = set; then
3920 enableval="$enable_rpath"
3921 wxRPATH_DIR="$enableval"
3922 fi;
3923
3924 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3925 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3926 fi
3927
3928
3929
3930
3931 enablestring=
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3933 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3934 no_cache=0
3935 # Check whether --enable-intl or --disable-intl was given.
3936 if test "${enable_intl+set}" = set; then
3937 enableval="$enable_intl"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_intl='wxUSE_INTL=yes'
3941 else
3942 ac_cv_use_intl='wxUSE_INTL=no'
3943 fi
3944
3945 else
3946
3947 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3955
3956 fi;
3957
3958 eval "$ac_cv_use_intl"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_INTL" = yes; then
3964 echo "$as_me:$LINENO: result: yes" >&5
3965 echo "${ECHO_T}yes" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6
3969 fi
3970
3971
3972 enablestring=
3973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3974 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
3975 no_cache=0
3976 # Check whether --enable-config or --disable-config was given.
3977 if test "${enable_config+set}" = set; then
3978 enableval="$enable_config"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_config='wxUSE_CONFIG=yes'
3982 else
3983 ac_cv_use_config='wxUSE_CONFIG=no'
3984 fi
3985
3986 else
3987
3988 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3996
3997 fi;
3998
3999 eval "$ac_cv_use_config"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_CONFIG" = yes; then
4005 echo "$as_me:$LINENO: result: yes" >&5
4006 echo "${ECHO_T}yes" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009 echo "${ECHO_T}no" >&6
4010 fi
4011
4012
4013
4014 enablestring=
4015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4016 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4017 no_cache=0
4018 # Check whether --enable-protocols or --disable-protocols was given.
4019 if test "${enable_protocols+set}" = set; then
4020 enableval="$enable_protocols"
4021
4022 if test "$enableval" = yes; then
4023 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4024 else
4025 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4026 fi
4027
4028 else
4029
4030 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4038
4039 fi;
4040
4041 eval "$ac_cv_use_protocols"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_PROTOCOL" = yes; then
4047 echo "$as_me:$LINENO: result: yes" >&5
4048 echo "${ECHO_T}yes" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052 fi
4053
4054
4055 enablestring=
4056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4057 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4058 no_cache=0
4059 # Check whether --enable-ftp or --disable-ftp was given.
4060 if test "${enable_ftp+set}" = set; then
4061 enableval="$enable_ftp"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4065 else
4066 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4067 fi
4068
4069 else
4070
4071 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4079
4080 fi;
4081
4082 eval "$ac_cv_use_ftp"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4088 echo "$as_me:$LINENO: result: yes" >&5
4089 echo "${ECHO_T}yes" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092 echo "${ECHO_T}no" >&6
4093 fi
4094
4095
4096 enablestring=
4097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4098 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4099 no_cache=0
4100 # Check whether --enable-http or --disable-http was given.
4101 if test "${enable_http+set}" = set; then
4102 enableval="$enable_http"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4106 else
4107 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4108 fi
4109
4110 else
4111
4112 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4120
4121 fi;
4122
4123 eval "$ac_cv_use_http"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4129 echo "$as_me:$LINENO: result: yes" >&5
4130 echo "${ECHO_T}yes" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4134 fi
4135
4136
4137 enablestring=
4138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4139 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4140 no_cache=0
4141 # Check whether --enable-fileproto or --disable-fileproto was given.
4142 if test "${enable_fileproto+set}" = set; then
4143 enableval="$enable_fileproto"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4147 else
4148 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4149 fi
4150
4151 else
4152
4153 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4161
4162 fi;
4163
4164 eval "$ac_cv_use_fileproto"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171 echo "${ECHO_T}yes" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174 echo "${ECHO_T}no" >&6
4175 fi
4176
4177
4178 enablestring=
4179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4180 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4181 no_cache=0
4182 # Check whether --enable-sockets or --disable-sockets was given.
4183 if test "${enable_sockets+set}" = set; then
4184 enableval="$enable_sockets"
4185
4186 if test "$enableval" = yes; then
4187 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4188 else
4189 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4190 fi
4191
4192 else
4193
4194 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4195 if test "x$LINE" != x ; then
4196 eval "DEFAULT_$LINE"
4197 else
4198 no_cache=1
4199 fi
4200
4201 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4202
4203 fi;
4204
4205 eval "$ac_cv_use_sockets"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_SOCKETS" = yes; then
4211 echo "$as_me:$LINENO: result: yes" >&5
4212 echo "${ECHO_T}yes" >&6
4213 else
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218
4219 enablestring=
4220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4221 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4222 no_cache=0
4223 # Check whether --enable-ole or --disable-ole was given.
4224 if test "${enable_ole+set}" = set; then
4225 enableval="$enable_ole"
4226
4227 if test "$enableval" = yes; then
4228 ac_cv_use_ole='wxUSE_OLE=yes'
4229 else
4230 ac_cv_use_ole='wxUSE_OLE=no'
4231 fi
4232
4233 else
4234
4235 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4243
4244 fi;
4245
4246 eval "$ac_cv_use_ole"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_OLE" = yes; then
4252 echo "$as_me:$LINENO: result: yes" >&5
4253 echo "${ECHO_T}yes" >&6
4254 else
4255 echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4257 fi
4258
4259
4260 enablestring=
4261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4262 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4263 no_cache=0
4264 # Check whether --enable-dataobj or --disable-dataobj was given.
4265 if test "${enable_dataobj+set}" = set; then
4266 enableval="$enable_dataobj"
4267
4268 if test "$enableval" = yes; then
4269 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4270 else
4271 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4272 fi
4273
4274 else
4275
4276 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4284
4285 fi;
4286
4287 eval "$ac_cv_use_dataobj"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_DATAOBJ" = yes; then
4293 echo "$as_me:$LINENO: result: yes" >&5
4294 echo "${ECHO_T}yes" >&6
4295 else
4296 echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4298 fi
4299
4300
4301
4302 enablestring=
4303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4304 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4305 no_cache=0
4306 # Check whether --enable-ipc or --disable-ipc was given.
4307 if test "${enable_ipc+set}" = set; then
4308 enableval="$enable_ipc"
4309
4310 if test "$enableval" = yes; then
4311 ac_cv_use_ipc='wxUSE_IPC=yes'
4312 else
4313 ac_cv_use_ipc='wxUSE_IPC=no'
4314 fi
4315
4316 else
4317
4318 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4319 if test "x$LINE" != x ; then
4320 eval "DEFAULT_$LINE"
4321 else
4322 no_cache=1
4323 fi
4324
4325 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4326
4327 fi;
4328
4329 eval "$ac_cv_use_ipc"
4330 if test "$no_cache" != 1; then
4331 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4332 fi
4333
4334 if test "$wxUSE_IPC" = yes; then
4335 echo "$as_me:$LINENO: result: yes" >&5
4336 echo "${ECHO_T}yes" >&6
4337 else
4338 echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6
4340 fi
4341
4342
4343
4344 enablestring=
4345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4346 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4347 no_cache=0
4348 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4349 if test "${enable_apple_ieee+set}" = set; then
4350 enableval="$enable_apple_ieee"
4351
4352 if test "$enableval" = yes; then
4353 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4354 else
4355 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4356 fi
4357
4358 else
4359
4360 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
4367 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4368
4369 fi;
4370
4371 eval "$ac_cv_use_apple_ieee"
4372 if test "$no_cache" != 1; then
4373 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4374 fi
4375
4376 if test "$wxUSE_APPLE_IEEE" = yes; then
4377 echo "$as_me:$LINENO: result: yes" >&5
4378 echo "${ECHO_T}yes" >&6
4379 else
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4382 fi
4383
4384
4385 enablestring=
4386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4387 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4388 no_cache=0
4389 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4390 if test "${enable_catch_segvs+set}" = set; then
4391 enableval="$enable_catch_segvs"
4392
4393 if test "$enableval" = yes; then
4394 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4395 else
4396 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4397 fi
4398
4399 else
4400
4401 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4402 if test "x$LINE" != x ; then
4403 eval "DEFAULT_$LINE"
4404 else
4405 no_cache=1
4406 fi
4407
4408 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4409
4410 fi;
4411
4412 eval "$ac_cv_use_catch_segvs"
4413 if test "$no_cache" != 1; then
4414 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4415 fi
4416
4417 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4418 echo "$as_me:$LINENO: result: yes" >&5
4419 echo "${ECHO_T}yes" >&6
4420 else
4421 echo "$as_me:$LINENO: result: no" >&5
4422 echo "${ECHO_T}no" >&6
4423 fi
4424
4425
4426 enablestring=
4427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4428 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4429 no_cache=0
4430 # Check whether --enable-cmdline or --disable-cmdline was given.
4431 if test "${enable_cmdline+set}" = set; then
4432 enableval="$enable_cmdline"
4433
4434 if test "$enableval" = yes; then
4435 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4436 else
4437 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4438 fi
4439
4440 else
4441
4442 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4443 if test "x$LINE" != x ; then
4444 eval "DEFAULT_$LINE"
4445 else
4446 no_cache=1
4447 fi
4448
4449 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4450
4451 fi;
4452
4453 eval "$ac_cv_use_cmdline"
4454 if test "$no_cache" != 1; then
4455 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4456 fi
4457
4458 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4459 echo "$as_me:$LINENO: result: yes" >&5
4460 echo "${ECHO_T}yes" >&6
4461 else
4462 echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6
4464 fi
4465
4466
4467 enablestring=
4468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4469 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4470 no_cache=0
4471 # Check whether --enable-datetime or --disable-datetime was given.
4472 if test "${enable_datetime+set}" = set; then
4473 enableval="$enable_datetime"
4474
4475 if test "$enableval" = yes; then
4476 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4477 else
4478 ac_cv_use_datetime='wxUSE_DATETIME=no'
4479 fi
4480
4481 else
4482
4483 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
4490 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4491
4492 fi;
4493
4494 eval "$ac_cv_use_datetime"
4495 if test "$no_cache" != 1; then
4496 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4497 fi
4498
4499 if test "$wxUSE_DATETIME" = yes; then
4500 echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6
4502 else
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4505 fi
4506
4507
4508 enablestring=
4509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4510 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4511 no_cache=0
4512 # Check whether --enable-dialupman or --disable-dialupman was given.
4513 if test "${enable_dialupman+set}" = set; then
4514 enableval="$enable_dialupman"
4515
4516 if test "$enableval" = yes; then
4517 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4518 else
4519 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4520 fi
4521
4522 else
4523
4524 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4525 if test "x$LINE" != x ; then
4526 eval "DEFAULT_$LINE"
4527 else
4528 no_cache=1
4529 fi
4530
4531 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4532
4533 fi;
4534
4535 eval "$ac_cv_use_dialupman"
4536 if test "$no_cache" != 1; then
4537 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4538 fi
4539
4540 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4541 echo "$as_me:$LINENO: result: yes" >&5
4542 echo "${ECHO_T}yes" >&6
4543 else
4544 echo "$as_me:$LINENO: result: no" >&5
4545 echo "${ECHO_T}no" >&6
4546 fi
4547
4548
4549 enablestring=
4550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4551 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4552 no_cache=0
4553 # Check whether --enable-dynlib or --disable-dynlib was given.
4554 if test "${enable_dynlib+set}" = set; then
4555 enableval="$enable_dynlib"
4556
4557 if test "$enableval" = yes; then
4558 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4559 else
4560 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4561 fi
4562
4563 else
4564
4565 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4566 if test "x$LINE" != x ; then
4567 eval "DEFAULT_$LINE"
4568 else
4569 no_cache=1
4570 fi
4571
4572 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4573
4574 fi;
4575
4576 eval "$ac_cv_use_dynlib"
4577 if test "$no_cache" != 1; then
4578 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4579 fi
4580
4581 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4582 echo "$as_me:$LINENO: result: yes" >&5
4583 echo "${ECHO_T}yes" >&6
4584 else
4585 echo "$as_me:$LINENO: result: no" >&5
4586 echo "${ECHO_T}no" >&6
4587 fi
4588
4589
4590 enablestring=
4591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4592 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4593 no_cache=0
4594 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4595 if test "${enable_dynamicloader+set}" = set; then
4596 enableval="$enable_dynamicloader"
4597
4598 if test "$enableval" = yes; then
4599 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4600 else
4601 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4602 fi
4603
4604 else
4605
4606 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4607 if test "x$LINE" != x ; then
4608 eval "DEFAULT_$LINE"
4609 else
4610 no_cache=1
4611 fi
4612
4613 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4614
4615 fi;
4616
4617 eval "$ac_cv_use_dynamicloader"
4618 if test "$no_cache" != 1; then
4619 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4620 fi
4621
4622 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4623 echo "$as_me:$LINENO: result: yes" >&5
4624 echo "${ECHO_T}yes" >&6
4625 else
4626 echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6
4628 fi
4629
4630
4631 enablestring=
4632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4633 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4634 no_cache=0
4635 # Check whether --enable-exceptions or --disable-exceptions was given.
4636 if test "${enable_exceptions+set}" = set; then
4637 enableval="$enable_exceptions"
4638
4639 if test "$enableval" = yes; then
4640 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4641 else
4642 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4643 fi
4644
4645 else
4646
4647 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
4654 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4655
4656 fi;
4657
4658 eval "$ac_cv_use_exceptions"
4659 if test "$no_cache" != 1; then
4660 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4661 fi
4662
4663 if test "$wxUSE_EXCEPTIONS" = yes; then
4664 echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6
4666 else
4667 echo "$as_me:$LINENO: result: no" >&5
4668 echo "${ECHO_T}no" >&6
4669 fi
4670
4671
4672 enablestring=
4673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4674 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4675 no_cache=0
4676 # Check whether --enable-ffile or --disable-ffile was given.
4677 if test "${enable_ffile+set}" = set; then
4678 enableval="$enable_ffile"
4679
4680 if test "$enableval" = yes; then
4681 ac_cv_use_ffile='wxUSE_FFILE=yes'
4682 else
4683 ac_cv_use_ffile='wxUSE_FFILE=no'
4684 fi
4685
4686 else
4687
4688 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
4695 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4696
4697 fi;
4698
4699 eval "$ac_cv_use_ffile"
4700 if test "$no_cache" != 1; then
4701 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4702 fi
4703
4704 if test "$wxUSE_FFILE" = yes; then
4705 echo "$as_me:$LINENO: result: yes" >&5
4706 echo "${ECHO_T}yes" >&6
4707 else
4708 echo "$as_me:$LINENO: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4710 fi
4711
4712
4713 enablestring=
4714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4715 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4716 no_cache=0
4717 # Check whether --enable-file or --disable-file was given.
4718 if test "${enable_file+set}" = set; then
4719 enableval="$enable_file"
4720
4721 if test "$enableval" = yes; then
4722 ac_cv_use_file='wxUSE_FILE=yes'
4723 else
4724 ac_cv_use_file='wxUSE_FILE=no'
4725 fi
4726
4727 else
4728
4729 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
4736 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4737
4738 fi;
4739
4740 eval "$ac_cv_use_file"
4741 if test "$no_cache" != 1; then
4742 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4743 fi
4744
4745 if test "$wxUSE_FILE" = yes; then
4746 echo "$as_me:$LINENO: result: yes" >&5
4747 echo "${ECHO_T}yes" >&6
4748 else
4749 echo "$as_me:$LINENO: result: no" >&5
4750 echo "${ECHO_T}no" >&6
4751 fi
4752
4753
4754 enablestring=
4755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4756 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4757 no_cache=0
4758 # Check whether --enable-filesystem or --disable-filesystem was given.
4759 if test "${enable_filesystem+set}" = set; then
4760 enableval="$enable_filesystem"
4761
4762 if test "$enableval" = yes; then
4763 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4764 else
4765 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4766 fi
4767
4768 else
4769
4770 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 else
4774 no_cache=1
4775 fi
4776
4777 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4778
4779 fi;
4780
4781 eval "$ac_cv_use_filesystem"
4782 if test "$no_cache" != 1; then
4783 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4784 fi
4785
4786 if test "$wxUSE_FILESYSTEM" = yes; then
4787 echo "$as_me:$LINENO: result: yes" >&5
4788 echo "${ECHO_T}yes" >&6
4789 else
4790 echo "$as_me:$LINENO: result: no" >&5
4791 echo "${ECHO_T}no" >&6
4792 fi
4793
4794
4795 enablestring=
4796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4797 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4798 no_cache=0
4799 # Check whether --enable-fontmap or --disable-fontmap was given.
4800 if test "${enable_fontmap+set}" = set; then
4801 enableval="$enable_fontmap"
4802
4803 if test "$enableval" = yes; then
4804 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4805 else
4806 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4807 fi
4808
4809 else
4810
4811 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
4818 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4819
4820 fi;
4821
4822 eval "$ac_cv_use_fontmap"
4823 if test "$no_cache" != 1; then
4824 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4825 fi
4826
4827 if test "$wxUSE_FONTMAP" = yes; then
4828 echo "$as_me:$LINENO: result: yes" >&5
4829 echo "${ECHO_T}yes" >&6
4830 else
4831 echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6
4833 fi
4834
4835
4836 enablestring=
4837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4838 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
4839 no_cache=0
4840 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4841 if test "${enable_fs_inet+set}" = set; then
4842 enableval="$enable_fs_inet"
4843
4844 if test "$enableval" = yes; then
4845 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4846 else
4847 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4848 fi
4849
4850 else
4851
4852 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4853 if test "x$LINE" != x ; then
4854 eval "DEFAULT_$LINE"
4855 else
4856 no_cache=1
4857 fi
4858
4859 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4860
4861 fi;
4862
4863 eval "$ac_cv_use_fs_inet"
4864 if test "$no_cache" != 1; then
4865 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4866 fi
4867
4868 if test "$wxUSE_FS_INET" = yes; then
4869 echo "$as_me:$LINENO: result: yes" >&5
4870 echo "${ECHO_T}yes" >&6
4871 else
4872 echo "$as_me:$LINENO: result: no" >&5
4873 echo "${ECHO_T}no" >&6
4874 fi
4875
4876
4877 enablestring=
4878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4879 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
4880 no_cache=0
4881 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4882 if test "${enable_fs_zip+set}" = set; then
4883 enableval="$enable_fs_zip"
4884
4885 if test "$enableval" = yes; then
4886 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4887 else
4888 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4889 fi
4890
4891 else
4892
4893 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4894 if test "x$LINE" != x ; then
4895 eval "DEFAULT_$LINE"
4896 else
4897 no_cache=1
4898 fi
4899
4900 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4901
4902 fi;
4903
4904 eval "$ac_cv_use_fs_zip"
4905 if test "$no_cache" != 1; then
4906 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4907 fi
4908
4909 if test "$wxUSE_FS_ZIP" = yes; then
4910 echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4915 fi
4916
4917
4918 enablestring=
4919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4920 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4921 no_cache=0
4922 # Check whether --enable-geometry or --disable-geometry was given.
4923 if test "${enable_geometry+set}" = set; then
4924 enableval="$enable_geometry"
4925
4926 if test "$enableval" = yes; then
4927 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4928 else
4929 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4930 fi
4931
4932 else
4933
4934 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
4941 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4942
4943 fi;
4944
4945 eval "$ac_cv_use_geometry"
4946 if test "$no_cache" != 1; then
4947 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4948 fi
4949
4950 if test "$wxUSE_GEOMETRY" = yes; then
4951 echo "$as_me:$LINENO: result: yes" >&5
4952 echo "${ECHO_T}yes" >&6
4953 else
4954 echo "$as_me:$LINENO: result: no" >&5
4955 echo "${ECHO_T}no" >&6
4956 fi
4957
4958
4959 enablestring=
4960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4961 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
4962 no_cache=0
4963 # Check whether --enable-log or --disable-log was given.
4964 if test "${enable_log+set}" = set; then
4965 enableval="$enable_log"
4966
4967 if test "$enableval" = yes; then
4968 ac_cv_use_log='wxUSE_LOG=yes'
4969 else
4970 ac_cv_use_log='wxUSE_LOG=no'
4971 fi
4972
4973 else
4974
4975 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
4982 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4983
4984 fi;
4985
4986 eval "$ac_cv_use_log"
4987 if test "$no_cache" != 1; then
4988 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4989 fi
4990
4991 if test "$wxUSE_LOG" = yes; then
4992 echo "$as_me:$LINENO: result: yes" >&5
4993 echo "${ECHO_T}yes" >&6
4994 else
4995 echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6
4997 fi
4998
4999
5000 enablestring=
5001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5002 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5003 no_cache=0
5004 # Check whether --enable-longlong or --disable-longlong was given.
5005 if test "${enable_longlong+set}" = set; then
5006 enableval="$enable_longlong"
5007
5008 if test "$enableval" = yes; then
5009 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5010 else
5011 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5012 fi
5013
5014 else
5015
5016 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
5023 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5024
5025 fi;
5026
5027 eval "$ac_cv_use_longlong"
5028 if test "$no_cache" != 1; then
5029 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5030 fi
5031
5032 if test "$wxUSE_LONGLONG" = yes; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034 echo "${ECHO_T}yes" >&6
5035 else
5036 echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6
5038 fi
5039
5040
5041 enablestring=
5042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5043 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5044 no_cache=0
5045 # Check whether --enable-mimetype or --disable-mimetype was given.
5046 if test "${enable_mimetype+set}" = set; then
5047 enableval="$enable_mimetype"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5051 else
5052 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5053 fi
5054
5055 else
5056
5057 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5065
5066 fi;
5067
5068 eval "$ac_cv_use_mimetype"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_MIMETYPE" = yes; then
5074 echo "$as_me:$LINENO: result: yes" >&5
5075 echo "${ECHO_T}yes" >&6
5076 else
5077 echo "$as_me:$LINENO: result: no" >&5
5078 echo "${ECHO_T}no" >&6
5079 fi
5080
5081
5082 enablestring=
5083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5084 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5085 no_cache=0
5086 # Check whether --enable-mslu or --disable-mslu was given.
5087 if test "${enable_mslu+set}" = set; then
5088 enableval="$enable_mslu"
5089
5090 if test "$enableval" = yes; then
5091 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5092 else
5093 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5094 fi
5095
5096 else
5097
5098 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5099 if test "x$LINE" != x ; then
5100 eval "DEFAULT_$LINE"
5101 else
5102 no_cache=1
5103 fi
5104
5105 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5106
5107 fi;
5108
5109 eval "$ac_cv_use_mslu"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_UNICODE_MSLU" = yes; then
5115 echo "$as_me:$LINENO: result: yes" >&5
5116 echo "${ECHO_T}yes" >&6
5117 else
5118 echo "$as_me:$LINENO: result: no" >&5
5119 echo "${ECHO_T}no" >&6
5120 fi
5121
5122
5123 enablestring=
5124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5125 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5126 no_cache=0
5127 # Check whether --enable-snglinst or --disable-snglinst was given.
5128 if test "${enable_snglinst+set}" = set; then
5129 enableval="$enable_snglinst"
5130
5131 if test "$enableval" = yes; then
5132 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5133 else
5134 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5135 fi
5136
5137 else
5138
5139 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5140 if test "x$LINE" != x ; then
5141 eval "DEFAULT_$LINE"
5142 else
5143 no_cache=1
5144 fi
5145
5146 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5147
5148 fi;
5149
5150 eval "$ac_cv_use_snglinst"
5151 if test "$no_cache" != 1; then
5152 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5153 fi
5154
5155 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5156 echo "$as_me:$LINENO: result: yes" >&5
5157 echo "${ECHO_T}yes" >&6
5158 else
5159 echo "$as_me:$LINENO: result: no" >&5
5160 echo "${ECHO_T}no" >&6
5161 fi
5162
5163
5164 enablestring=
5165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5166 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5167 no_cache=0
5168 # Check whether --enable-streams or --disable-streams was given.
5169 if test "${enable_streams+set}" = set; then
5170 enableval="$enable_streams"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_streams='wxUSE_STREAMS=yes'
5174 else
5175 ac_cv_use_streams='wxUSE_STREAMS=no'
5176 fi
5177
5178 else
5179
5180 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5188
5189 fi;
5190
5191 eval "$ac_cv_use_streams"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_STREAMS" = yes; then
5197 echo "$as_me:$LINENO: result: yes" >&5
5198 echo "${ECHO_T}yes" >&6
5199 else
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 fi
5203
5204
5205 enablestring=
5206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5207 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5208 no_cache=0
5209 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5210 if test "${enable_std_iostreams+set}" = set; then
5211 enableval="$enable_std_iostreams"
5212
5213 if test "$enableval" = yes; then
5214 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5215 else
5216 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5217 fi
5218
5219 else
5220
5221 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5229
5230 fi;
5231
5232 eval "$ac_cv_use_std_iostreams"
5233 if test "$no_cache" != 1; then
5234 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5235 fi
5236
5237 if test "$wxUSE_STD_IOSTREAM" = yes; then
5238 echo "$as_me:$LINENO: result: yes" >&5
5239 echo "${ECHO_T}yes" >&6
5240 else
5241 echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6
5243 fi
5244
5245
5246 enablestring=
5247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5248 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5249 no_cache=0
5250 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5251 if test "${enable_stopwatch+set}" = set; then
5252 enableval="$enable_stopwatch"
5253
5254 if test "$enableval" = yes; then
5255 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5256 else
5257 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5258 fi
5259
5260 else
5261
5262 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5270
5271 fi;
5272
5273 eval "$ac_cv_use_stopwatch"
5274 if test "$no_cache" != 1; then
5275 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5276 fi
5277
5278 if test "$wxUSE_STOPWATCH" = yes; then
5279 echo "$as_me:$LINENO: result: yes" >&5
5280 echo "${ECHO_T}yes" >&6
5281 else
5282 echo "$as_me:$LINENO: result: no" >&5
5283 echo "${ECHO_T}no" >&6
5284 fi
5285
5286
5287 enablestring=
5288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5289 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5290 no_cache=0
5291 # Check whether --enable-system_options or --disable-system_options was given.
5292 if test "${enable_system_options+set}" = set; then
5293 enableval="$enable_system_options"
5294
5295 if test "$enableval" = yes; then
5296 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5297 else
5298 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5299 fi
5300
5301 else
5302
5303 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
5310 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5311
5312 fi;
5313
5314 eval "$ac_cv_use_system_options"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5320 echo "$as_me:$LINENO: result: yes" >&5
5321 echo "${ECHO_T}yes" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324 echo "${ECHO_T}no" >&6
5325 fi
5326
5327
5328 enablestring=
5329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5330 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5331 no_cache=0
5332 # Check whether --enable-textbuf or --disable-textbuf was given.
5333 if test "${enable_textbuf+set}" = set; then
5334 enableval="$enable_textbuf"
5335
5336 if test "$enableval" = yes; then
5337 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5338 else
5339 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5340 fi
5341
5342 else
5343
5344 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5352
5353 fi;
5354
5355 eval "$ac_cv_use_textbuf"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_TEXTBUFFER" = yes; then
5361 echo "$as_me:$LINENO: result: yes" >&5
5362 echo "${ECHO_T}yes" >&6
5363 else
5364 echo "$as_me:$LINENO: result: no" >&5
5365 echo "${ECHO_T}no" >&6
5366 fi
5367
5368
5369 enablestring=
5370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5371 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5372 no_cache=0
5373 # Check whether --enable-textfile or --disable-textfile was given.
5374 if test "${enable_textfile+set}" = set; then
5375 enableval="$enable_textfile"
5376
5377 if test "$enableval" = yes; then
5378 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5379 else
5380 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5381 fi
5382
5383 else
5384
5385 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5393
5394 fi;
5395
5396 eval "$ac_cv_use_textfile"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_TEXTFILE" = yes; then
5402 echo "$as_me:$LINENO: result: yes" >&5
5403 echo "${ECHO_T}yes" >&6
5404 else
5405 echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5407 fi
5408
5409
5410 enablestring=
5411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5412 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5413 no_cache=0
5414 # Check whether --enable-timer or --disable-timer was given.
5415 if test "${enable_timer+set}" = set; then
5416 enableval="$enable_timer"
5417
5418 if test "$enableval" = yes; then
5419 ac_cv_use_timer='wxUSE_TIMER=yes'
5420 else
5421 ac_cv_use_timer='wxUSE_TIMER=no'
5422 fi
5423
5424 else
5425
5426 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5434
5435 fi;
5436
5437 eval "$ac_cv_use_timer"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_TIMER" = yes; then
5443 echo "$as_me:$LINENO: result: yes" >&5
5444 echo "${ECHO_T}yes" >&6
5445 else
5446 echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6
5448 fi
5449
5450
5451 enablestring=
5452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5453 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5454 no_cache=0
5455 # Check whether --enable-unicode or --disable-unicode was given.
5456 if test "${enable_unicode+set}" = set; then
5457 enableval="$enable_unicode"
5458
5459 if test "$enableval" = yes; then
5460 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5461 else
5462 ac_cv_use_unicode='wxUSE_UNICODE=no'
5463 fi
5464
5465 else
5466
5467 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5475
5476 fi;
5477
5478 eval "$ac_cv_use_unicode"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_UNICODE" = yes; then
5484 echo "$as_me:$LINENO: result: yes" >&5
5485 echo "${ECHO_T}yes" >&6
5486 else
5487 echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6
5489 fi
5490
5491
5492 enablestring=
5493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5494 echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5495 no_cache=0
5496 # Check whether --enable-wave or --disable-wave was given.
5497 if test "${enable_wave+set}" = set; then
5498 enableval="$enable_wave"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_wave='wxUSE_WAVE=yes'
5502 else
5503 ac_cv_use_wave='wxUSE_WAVE=no'
5504 fi
5505
5506 else
5507
5508 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5516
5517 fi;
5518
5519 eval "$ac_cv_use_wave"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_WAVE" = yes; then
5525 echo "$as_me:$LINENO: result: yes" >&5
5526 echo "${ECHO_T}yes" >&6
5527 else
5528 echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6
5530 fi
5531
5532
5533 enablestring=
5534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5535 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5536 no_cache=0
5537 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5538 if test "${enable_wxprintfv+set}" = set; then
5539 enableval="$enable_wxprintfv"
5540
5541 if test "$enableval" = yes; then
5542 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5543 else
5544 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5545 fi
5546
5547 else
5548
5549 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5557
5558 fi;
5559
5560 eval "$ac_cv_use_wxprintfv"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5566 echo "$as_me:$LINENO: result: yes" >&5
5567 echo "${ECHO_T}yes" >&6
5568 else
5569 echo "$as_me:$LINENO: result: no" >&5
5570 echo "${ECHO_T}no" >&6
5571 fi
5572
5573
5574 enablestring=
5575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5576 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5577 no_cache=0
5578 # Check whether --enable-zipstream or --disable-zipstream was given.
5579 if test "${enable_zipstream+set}" = set; then
5580 enableval="$enable_zipstream"
5581
5582 if test "$enableval" = yes; then
5583 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5584 else
5585 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5586 fi
5587
5588 else
5589
5590 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
5597 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5598
5599 fi;
5600
5601 eval "$ac_cv_use_zipstream"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_ZIPSTREAM" = yes; then
5607 echo "$as_me:$LINENO: result: yes" >&5
5608 echo "${ECHO_T}yes" >&6
5609 else
5610 echo "$as_me:$LINENO: result: no" >&5
5611 echo "${ECHO_T}no" >&6
5612 fi
5613
5614
5615 enablestring=
5616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5617 echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5618 no_cache=0
5619 # Check whether --enable-gzstream or --disable-gzstream was given.
5620 if test "${enable_gzstream+set}" = set; then
5621 enableval="$enable_gzstream"
5622
5623 if test "$enableval" = yes; then
5624 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5625 else
5626 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5627 fi
5628
5629 else
5630
5631 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5639
5640 fi;
5641
5642 eval "$ac_cv_use_gzstream"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_GZSTREAM" = yes; then
5648 echo "$as_me:$LINENO: result: yes" >&5
5649 echo "${ECHO_T}yes" >&6
5650 else
5651 echo "$as_me:$LINENO: result: no" >&5
5652 echo "${ECHO_T}no" >&6
5653 fi
5654
5655
5656
5657 enablestring=
5658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5659 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5660 no_cache=0
5661 # Check whether --enable-url or --disable-url was given.
5662 if test "${enable_url+set}" = set; then
5663 enableval="$enable_url"
5664
5665 if test "$enableval" = yes; then
5666 ac_cv_use_url='wxUSE_URL=yes'
5667 else
5668 ac_cv_use_url='wxUSE_URL=no'
5669 fi
5670
5671 else
5672
5673 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5674 if test "x$LINE" != x ; then
5675 eval "DEFAULT_$LINE"
5676 else
5677 no_cache=1
5678 fi
5679
5680 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5681
5682 fi;
5683
5684 eval "$ac_cv_use_url"
5685 if test "$no_cache" != 1; then
5686 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5687 fi
5688
5689 if test "$wxUSE_URL" = yes; then
5690 echo "$as_me:$LINENO: result: yes" >&5
5691 echo "${ECHO_T}yes" >&6
5692 else
5693 echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5695 fi
5696
5697
5698 enablestring=
5699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5700 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5701 no_cache=0
5702 # Check whether --enable-protocol or --disable-protocol was given.
5703 if test "${enable_protocol+set}" = set; then
5704 enableval="$enable_protocol"
5705
5706 if test "$enableval" = yes; then
5707 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5708 else
5709 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5710 fi
5711
5712 else
5713
5714 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5715 if test "x$LINE" != x ; then
5716 eval "DEFAULT_$LINE"
5717 else
5718 no_cache=1
5719 fi
5720
5721 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5722
5723 fi;
5724
5725 eval "$ac_cv_use_protocol"
5726 if test "$no_cache" != 1; then
5727 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5728 fi
5729
5730 if test "$wxUSE_PROTOCOL" = yes; then
5731 echo "$as_me:$LINENO: result: yes" >&5
5732 echo "${ECHO_T}yes" >&6
5733 else
5734 echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6
5736 fi
5737
5738
5739 enablestring=
5740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5741 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5742 no_cache=0
5743 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5744 if test "${enable_protocol_http+set}" = set; then
5745 enableval="$enable_protocol_http"
5746
5747 if test "$enableval" = yes; then
5748 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5749 else
5750 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5751 fi
5752
5753 else
5754
5755 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5756 if test "x$LINE" != x ; then
5757 eval "DEFAULT_$LINE"
5758 else
5759 no_cache=1
5760 fi
5761
5762 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5763
5764 fi;
5765
5766 eval "$ac_cv_use_protocol_http"
5767 if test "$no_cache" != 1; then
5768 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5769 fi
5770
5771 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5772 echo "$as_me:$LINENO: result: yes" >&5
5773 echo "${ECHO_T}yes" >&6
5774 else
5775 echo "$as_me:$LINENO: result: no" >&5
5776 echo "${ECHO_T}no" >&6
5777 fi
5778
5779
5780 enablestring=
5781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5782 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5783 no_cache=0
5784 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5785 if test "${enable_protocol_ftp+set}" = set; then
5786 enableval="$enable_protocol_ftp"
5787
5788 if test "$enableval" = yes; then
5789 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5790 else
5791 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5792 fi
5793
5794 else
5795
5796 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5797 if test "x$LINE" != x ; then
5798 eval "DEFAULT_$LINE"
5799 else
5800 no_cache=1
5801 fi
5802
5803 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5804
5805 fi;
5806
5807 eval "$ac_cv_use_protocol_ftp"
5808 if test "$no_cache" != 1; then
5809 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5810 fi
5811
5812 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5813 echo "$as_me:$LINENO: result: yes" >&5
5814 echo "${ECHO_T}yes" >&6
5815 else
5816 echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6
5818 fi
5819
5820
5821 enablestring=
5822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5823 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5824 no_cache=0
5825 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5826 if test "${enable_protocol_file+set}" = set; then
5827 enableval="$enable_protocol_file"
5828
5829 if test "$enableval" = yes; then
5830 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5831 else
5832 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5833 fi
5834
5835 else
5836
5837 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5838 if test "x$LINE" != x ; then
5839 eval "DEFAULT_$LINE"
5840 else
5841 no_cache=1
5842 fi
5843
5844 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5845
5846 fi;
5847
5848 eval "$ac_cv_use_protocol_file"
5849 if test "$no_cache" != 1; then
5850 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5851 fi
5852
5853 if test "$wxUSE_PROTOCOL_FILE" = yes; then
5854 echo "$as_me:$LINENO: result: yes" >&5
5855 echo "${ECHO_T}yes" >&6
5856 else
5857 echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5859 fi
5860
5861
5862
5863
5864
5865 enablestring=
5866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5867 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5868 no_cache=0
5869 # Check whether --enable-threads or --disable-threads was given.
5870 if test "${enable_threads+set}" = set; then
5871 enableval="$enable_threads"
5872
5873 if test "$enableval" = yes; then
5874 ac_cv_use_threads='wxUSE_THREADS=yes'
5875 else
5876 ac_cv_use_threads='wxUSE_THREADS=no'
5877 fi
5878
5879 else
5880
5881 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5889
5890 fi;
5891
5892 eval "$ac_cv_use_threads"
5893 if test "$no_cache" != 1; then
5894 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5895 fi
5896
5897 if test "$wxUSE_THREADS" = yes; then
5898 echo "$as_me:$LINENO: result: yes" >&5
5899 echo "${ECHO_T}yes" >&6
5900 else
5901 echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6
5903 fi
5904
5905
5906 if test "$wxUSE_GUI" = "yes"; then
5907
5908
5909
5910 enablestring=
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5912 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5913 no_cache=0
5914 # Check whether --enable-docview or --disable-docview was given.
5915 if test "${enable_docview+set}" = set; then
5916 enableval="$enable_docview"
5917
5918 if test "$enableval" = yes; then
5919 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5920 else
5921 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5922 fi
5923
5924 else
5925
5926 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5934
5935 fi;
5936
5937 eval "$ac_cv_use_docview"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5943 echo "$as_me:$LINENO: result: yes" >&5
5944 echo "${ECHO_T}yes" >&6
5945 else
5946 echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6
5948 fi
5949
5950
5951 enablestring=
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5953 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
5954 no_cache=0
5955 # Check whether --enable-help or --disable-help was given.
5956 if test "${enable_help+set}" = set; then
5957 enableval="$enable_help"
5958
5959 if test "$enableval" = yes; then
5960 ac_cv_use_help='wxUSE_HELP=yes'
5961 else
5962 ac_cv_use_help='wxUSE_HELP=no'
5963 fi
5964
5965 else
5966
5967 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5975
5976 fi;
5977
5978 eval "$ac_cv_use_help"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_HELP" = yes; then
5984 echo "$as_me:$LINENO: result: yes" >&5
5985 echo "${ECHO_T}yes" >&6
5986 else
5987 echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5989 fi
5990
5991
5992 enablestring=
5993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5994 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
5995 no_cache=0
5996 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5997 if test "${enable_mshtmlhelp+set}" = set; then
5998 enableval="$enable_mshtmlhelp"
5999
6000 if test "$enableval" = yes; then
6001 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6002 else
6003 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6004 fi
6005
6006 else
6007
6008 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
6015 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6016
6017 fi;
6018
6019 eval "$ac_cv_use_mshtmlhelp"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_MS_HTML_HELP" = yes; then
6025 echo "$as_me:$LINENO: result: yes" >&5
6026 echo "${ECHO_T}yes" >&6
6027 else
6028 echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6030 fi
6031
6032
6033 enablestring=
6034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6035 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6036 no_cache=0
6037 # Check whether --enable-html or --disable-html was given.
6038 if test "${enable_html+set}" = set; then
6039 enableval="$enable_html"
6040
6041 if test "$enableval" = yes; then
6042 ac_cv_use_html='wxUSE_HTML=yes'
6043 else
6044 ac_cv_use_html='wxUSE_HTML=no'
6045 fi
6046
6047 else
6048
6049 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6057
6058 fi;
6059
6060 eval "$ac_cv_use_html"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_HTML" = yes; then
6066 echo "$as_me:$LINENO: result: yes" >&5
6067 echo "${ECHO_T}yes" >&6
6068 else
6069 echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6071 fi
6072
6073
6074 enablestring=
6075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6076 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6077 no_cache=0
6078 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6079 if test "${enable_htmlhelp+set}" = set; then
6080 enableval="$enable_htmlhelp"
6081
6082 if test "$enableval" = yes; then
6083 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6084 else
6085 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6086 fi
6087
6088 else
6089
6090 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6098
6099 fi;
6100
6101 eval "$ac_cv_use_htmlhelp"
6102 if test "$no_cache" != 1; then
6103 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6104 fi
6105
6106 if test "$wxUSE_WXHTML_HELP" = yes; then
6107 echo "$as_me:$LINENO: result: yes" >&5
6108 echo "${ECHO_T}yes" >&6
6109 else
6110 echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6
6112 fi
6113
6114
6115 enablestring=
6116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6117 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6118 no_cache=0
6119 # Check whether --enable-constraints or --disable-constraints was given.
6120 if test "${enable_constraints+set}" = set; then
6121 enableval="$enable_constraints"
6122
6123 if test "$enableval" = yes; then
6124 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6125 else
6126 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6127 fi
6128
6129 else
6130
6131 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6139
6140 fi;
6141
6142 eval "$ac_cv_use_constraints"
6143 if test "$no_cache" != 1; then
6144 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6145 fi
6146
6147 if test "$wxUSE_CONSTRAINTS" = yes; then
6148 echo "$as_me:$LINENO: result: yes" >&5
6149 echo "${ECHO_T}yes" >&6
6150 else
6151 echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6153 fi
6154
6155
6156 enablestring=
6157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6158 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6159 no_cache=0
6160 # Check whether --enable-printarch or --disable-printarch was given.
6161 if test "${enable_printarch+set}" = set; then
6162 enableval="$enable_printarch"
6163
6164 if test "$enableval" = yes; then
6165 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6166 else
6167 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6168 fi
6169
6170 else
6171
6172 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6180
6181 fi;
6182
6183 eval "$ac_cv_use_printarch"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6189 echo "$as_me:$LINENO: result: yes" >&5
6190 echo "${ECHO_T}yes" >&6
6191 else
6192 echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6
6194 fi
6195
6196
6197 enablestring=
6198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6199 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6200 no_cache=0
6201 # Check whether --enable-mdi or --disable-mdi was given.
6202 if test "${enable_mdi+set}" = set; then
6203 enableval="$enable_mdi"
6204
6205 if test "$enableval" = yes; then
6206 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6207 else
6208 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6209 fi
6210
6211 else
6212
6213 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6221
6222 fi;
6223
6224 eval "$ac_cv_use_mdi"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6230 echo "$as_me:$LINENO: result: yes" >&5
6231 echo "${ECHO_T}yes" >&6
6232 else
6233 echo "$as_me:$LINENO: result: no" >&5
6234 echo "${ECHO_T}no" >&6
6235 fi
6236
6237
6238 enablestring=
6239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6240 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6241 no_cache=0
6242 # Check whether --enable-loggui or --disable-loggui was given.
6243 if test "${enable_loggui+set}" = set; then
6244 enableval="$enable_loggui"
6245
6246 if test "$enableval" = yes; then
6247 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6248 else
6249 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6250 fi
6251
6252 else
6253
6254 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6262
6263 fi;
6264
6265 eval "$ac_cv_use_loggui"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_LOGGUI" = yes; then
6271 echo "$as_me:$LINENO: result: yes" >&5
6272 echo "${ECHO_T}yes" >&6
6273 else
6274 echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6
6276 fi
6277
6278
6279 enablestring=
6280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6281 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6282 no_cache=0
6283 # Check whether --enable-logwin or --disable-logwin was given.
6284 if test "${enable_logwin+set}" = set; then
6285 enableval="$enable_logwin"
6286
6287 if test "$enableval" = yes; then
6288 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6289 else
6290 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6291 fi
6292
6293 else
6294
6295 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6296 if test "x$LINE" != x ; then
6297 eval "DEFAULT_$LINE"
6298 else
6299 no_cache=1
6300 fi
6301
6302 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6303
6304 fi;
6305
6306 eval "$ac_cv_use_logwin"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_LOGWINDOW" = yes; then
6312 echo "$as_me:$LINENO: result: yes" >&5
6313 echo "${ECHO_T}yes" >&6
6314 else
6315 echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6
6317 fi
6318
6319
6320 enablestring=
6321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6322 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6323 no_cache=0
6324 # Check whether --enable-logdialog or --disable-logdialog was given.
6325 if test "${enable_logdialog+set}" = set; then
6326 enableval="$enable_logdialog"
6327
6328 if test "$enableval" = yes; then
6329 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6330 else
6331 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6332 fi
6333
6334 else
6335
6336 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6344
6345 fi;
6346
6347 eval "$ac_cv_use_logdialog"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_LOGDIALOG" = yes; then
6353 echo "$as_me:$LINENO: result: yes" >&5
6354 echo "${ECHO_T}yes" >&6
6355 else
6356 echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6
6358 fi
6359
6360
6361
6362 enablestring=
6363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6364 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6365 no_cache=0
6366 # Check whether --enable-postscript or --disable-postscript was given.
6367 if test "${enable_postscript+set}" = set; then
6368 enableval="$enable_postscript"
6369
6370 if test "$enableval" = yes; then
6371 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6372 else
6373 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6374 fi
6375
6376 else
6377
6378 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6379 if test "x$LINE" != x ; then
6380 eval "DEFAULT_$LINE"
6381 else
6382 no_cache=1
6383 fi
6384
6385 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6386
6387 fi;
6388
6389 eval "$ac_cv_use_postscript"
6390 if test "$no_cache" != 1; then
6391 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6392 fi
6393
6394 if test "$wxUSE_POSTSCRIPT" = yes; then
6395 echo "$as_me:$LINENO: result: yes" >&5
6396 echo "${ECHO_T}yes" >&6
6397 else
6398 echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6
6400 fi
6401
6402
6403
6404
6405
6406 enablestring=
6407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6408 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6409 no_cache=0
6410 # Check whether --enable-prologio or --disable-prologio was given.
6411 if test "${enable_prologio+set}" = set; then
6412 enableval="$enable_prologio"
6413
6414 if test "$enableval" = yes; then
6415 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6416 else
6417 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6418 fi
6419
6420 else
6421
6422 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6423 if test "x$LINE" != x ; then
6424 eval "DEFAULT_$LINE"
6425 else
6426 no_cache=1
6427 fi
6428
6429 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6430
6431 fi;
6432
6433 eval "$ac_cv_use_prologio"
6434 if test "$no_cache" != 1; then
6435 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6436 fi
6437
6438 if test "$wxUSE_PROLOGIO" = yes; then
6439 echo "$as_me:$LINENO: result: yes" >&5
6440 echo "${ECHO_T}yes" >&6
6441 else
6442 echo "$as_me:$LINENO: result: no" >&5
6443 echo "${ECHO_T}no" >&6
6444 fi
6445
6446
6447 enablestring=
6448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6449 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6450 no_cache=0
6451 # Check whether --enable-resources or --disable-resources was given.
6452 if test "${enable_resources+set}" = set; then
6453 enableval="$enable_resources"
6454
6455 if test "$enableval" = yes; then
6456 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6457 else
6458 ac_cv_use_resources='wxUSE_RESOURCES=no'
6459 fi
6460
6461 else
6462
6463 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6464 if test "x$LINE" != x ; then
6465 eval "DEFAULT_$LINE"
6466 else
6467 no_cache=1
6468 fi
6469
6470 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6471
6472 fi;
6473
6474 eval "$ac_cv_use_resources"
6475 if test "$no_cache" != 1; then
6476 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6477 fi
6478
6479 if test "$wxUSE_RESOURCES" = yes; then
6480 echo "$as_me:$LINENO: result: yes" >&5
6481 echo "${ECHO_T}yes" >&6
6482 else
6483 echo "$as_me:$LINENO: result: no" >&5
6484 echo "${ECHO_T}no" >&6
6485 fi
6486
6487
6488
6489
6490 enablestring=
6491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6492 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6493 no_cache=0
6494 # Check whether --enable-clipboard or --disable-clipboard was given.
6495 if test "${enable_clipboard+set}" = set; then
6496 enableval="$enable_clipboard"
6497
6498 if test "$enableval" = yes; then
6499 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6500 else
6501 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6502 fi
6503
6504 else
6505
6506 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6514
6515 fi;
6516
6517 eval "$ac_cv_use_clipboard"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_CLIPBOARD" = yes; then
6523 echo "$as_me:$LINENO: result: yes" >&5
6524 echo "${ECHO_T}yes" >&6
6525 else
6526 echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6
6528 fi
6529
6530
6531 enablestring=
6532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6533 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6534 no_cache=0
6535 # Check whether --enable-dnd or --disable-dnd was given.
6536 if test "${enable_dnd+set}" = set; then
6537 enableval="$enable_dnd"
6538
6539 if test "$enableval" = yes; then
6540 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6541 else
6542 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6543 fi
6544
6545 else
6546
6547 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6548 if test "x$LINE" != x ; then
6549 eval "DEFAULT_$LINE"
6550 else
6551 no_cache=1
6552 fi
6553
6554 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6555
6556 fi;
6557
6558 eval "$ac_cv_use_dnd"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6564 echo "$as_me:$LINENO: result: yes" >&5
6565 echo "${ECHO_T}yes" >&6
6566 else
6567 echo "$as_me:$LINENO: result: no" >&5
6568 echo "${ECHO_T}no" >&6
6569 fi
6570
6571
6572 enablestring=
6573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6574 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6575 no_cache=0
6576 # Check whether --enable-metafile or --disable-metafile was given.
6577 if test "${enable_metafile+set}" = set; then
6578 enableval="$enable_metafile"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6582 else
6583 ac_cv_use_metafile='wxUSE_METAFILE=no'
6584 fi
6585
6586 else
6587
6588 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6596
6597 fi;
6598
6599 eval "$ac_cv_use_metafile"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_METAFILE" = yes; then
6605 echo "$as_me:$LINENO: result: yes" >&5
6606 echo "${ECHO_T}yes" >&6
6607 else
6608 echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6
6610 fi
6611
6612
6613
6614
6615
6616 enablestring=
6617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6618 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6619 no_cache=0
6620 # Check whether --enable-controls or --disable-controls was given.
6621 if test "${enable_controls+set}" = set; then
6622 enableval="$enable_controls"
6623
6624 if test "$enableval" = yes; then
6625 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6626 else
6627 ac_cv_use_controls='wxUSE_CONTROLS=no'
6628 fi
6629
6630 else
6631
6632 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6633 if test "x$LINE" != x ; then
6634 eval "DEFAULT_$LINE"
6635 else
6636 no_cache=1
6637 fi
6638
6639 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6640
6641 fi;
6642
6643 eval "$ac_cv_use_controls"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_CONTROLS" = yes; then
6649 echo "$as_me:$LINENO: result: yes" >&5
6650 echo "${ECHO_T}yes" >&6
6651 else
6652 echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6
6654 fi
6655
6656
6657 if test "$wxUSE_CONTROLS" = "yes"; then
6658 DEFAULT_wxUSE_ACCEL=yes
6659 DEFAULT_wxUSE_BMPBUTTON=yes
6660 DEFAULT_wxUSE_BUTTON=yes
6661 DEFAULT_wxUSE_CALCTRL=no
6662 DEFAULT_wxUSE_CARET=yes
6663 DEFAULT_wxUSE_COMBOBOX=yes
6664 DEFAULT_wxUSE_CHECKBOX=yes
6665 DEFAULT_wxUSE_CHECKLISTBOX=yes
6666 DEFAULT_wxUSE_CHOICE=yes
6667 DEFAULT_wxUSE_GAUGE=yes
6668 DEFAULT_wxUSE_GRID=yes
6669 DEFAULT_wxUSE_IMAGLIST=yes
6670 DEFAULT_wxUSE_LISTBOOK=yes
6671 DEFAULT_wxUSE_LISTBOX=yes
6672 DEFAULT_wxUSE_LISTCTRL=yes
6673 DEFAULT_wxUSE_NOTEBOOK=yes
6674 DEFAULT_wxUSE_RADIOBOX=yes
6675 DEFAULT_wxUSE_RADIOBTN=yes
6676 DEFAULT_wxUSE_SASH=yes
6677 DEFAULT_wxUSE_SCROLLBAR=yes
6678 DEFAULT_wxUSE_SLIDER=yes
6679 DEFAULT_wxUSE_SPINBTN=yes
6680 DEFAULT_wxUSE_SPINCTRL=yes
6681 DEFAULT_wxUSE_SPLITTER=yes
6682 DEFAULT_wxUSE_STATBMP=yes
6683 DEFAULT_wxUSE_STATBOX=yes
6684 DEFAULT_wxUSE_STATLINE=yes
6685 DEFAULT_wxUSE_STATUSBAR=yes
6686 DEFAULT_wxUSE_TAB_DIALOG=yes
6687 DEFAULT_wxUSE_TOGGLEBTN=yes
6688 DEFAULT_wxUSE_TOOLBAR=yes
6689 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6690 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6691 DEFAULT_wxUSE_TOOLTIPS=yes
6692 DEFAULT_wxUSE_TREECTRL=yes
6693 DEFAULT_wxUSE_POPUPWIN=yes
6694 DEFAULT_wxUSE_TIPWINDOW=yes
6695 elif test "$wxUSE_CONTROLS" = "no"; then
6696 DEFAULT_wxUSE_ACCEL=no
6697 DEFAULT_wxUSE_BMPBUTTON=no
6698 DEFAULT_wxUSE_BUTTON=no
6699 DEFAULT_wxUSE_CALCTRL=no
6700 DEFAULT_wxUSE_CARET=no
6701 DEFAULT_wxUSE_COMBOBOX=no
6702 DEFAULT_wxUSE_CHECKBOX=no
6703 DEFAULT_wxUSE_CHECKLISTBOX=no
6704 DEFAULT_wxUSE_CHOICE=no
6705 DEFAULT_wxUSE_GAUGE=no
6706 DEFAULT_wxUSE_GRID=no
6707 DEFAULT_wxUSE_IMAGLIST=no
6708 DEFAULT_wxUSE_LISTBOOK=no
6709 DEFAULT_wxUSE_LISTBOX=no
6710 DEFAULT_wxUSE_LISTCTRL=no
6711 DEFAULT_wxUSE_NOTEBOOK=no
6712 DEFAULT_wxUSE_RADIOBOX=no
6713 DEFAULT_wxUSE_RADIOBTN=no
6714 DEFAULT_wxUSE_SASH=no
6715 DEFAULT_wxUSE_SCROLLBAR=no
6716 DEFAULT_wxUSE_SLIDER=no
6717 DEFAULT_wxUSE_SPINBTN=no
6718 DEFAULT_wxUSE_SPINCTRL=no
6719 DEFAULT_wxUSE_SPLITTER=no
6720 DEFAULT_wxUSE_STATBMP=no
6721 DEFAULT_wxUSE_STATBOX=no
6722 DEFAULT_wxUSE_STATLINE=no
6723 DEFAULT_wxUSE_STATUSBAR=no
6724 DEFAULT_wxUSE_TAB_DIALOG=no
6725 DEFAULT_wxUSE_TOGGLEBTN=no
6726 DEFAULT_wxUSE_TOOLBAR=no
6727 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6729 DEFAULT_wxUSE_TOOLTIPS=no
6730 DEFAULT_wxUSE_TREECTRL=no
6731 DEFAULT_wxUSE_POPUPWIN=no
6732 DEFAULT_wxUSE_TIPWINDOW=no
6733 fi
6734
6735 ## FIXME: This is a blatant hack
6736 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6737 wxUSE_PRINTING_ARCHITECTURE=no
6738 wxUSE_DRAG_AND_DROP=no
6739 # Generic notebook requires tab dialog
6740 DEFAULT_wxUSE_TABDIALOG=yes
6741 DEFAULT_wxUSE_SCROLLBAR=no
6742 DEFAULT_wxUSE_TOOLTIPS=no
6743 DEFAULT_wxUSE_DRAGIMAGE=no
6744 fi
6745
6746
6747 enablestring=
6748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6749 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6750 no_cache=0
6751 # Check whether --enable-accel or --disable-accel was given.
6752 if test "${enable_accel+set}" = set; then
6753 enableval="$enable_accel"
6754
6755 if test "$enableval" = yes; then
6756 ac_cv_use_accel='wxUSE_ACCEL=yes'
6757 else
6758 ac_cv_use_accel='wxUSE_ACCEL=no'
6759 fi
6760
6761 else
6762
6763 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6764 if test "x$LINE" != x ; then
6765 eval "DEFAULT_$LINE"
6766 else
6767 no_cache=1
6768 fi
6769
6770 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6771
6772 fi;
6773
6774 eval "$ac_cv_use_accel"
6775 if test "$no_cache" != 1; then
6776 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6777 fi
6778
6779 if test "$wxUSE_ACCEL" = yes; then
6780 echo "$as_me:$LINENO: result: yes" >&5
6781 echo "${ECHO_T}yes" >&6
6782 else
6783 echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6
6785 fi
6786
6787
6788 enablestring=
6789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6790 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6791 no_cache=0
6792 # Check whether --enable-button or --disable-button was given.
6793 if test "${enable_button+set}" = set; then
6794 enableval="$enable_button"
6795
6796 if test "$enableval" = yes; then
6797 ac_cv_use_button='wxUSE_BUTTON=yes'
6798 else
6799 ac_cv_use_button='wxUSE_BUTTON=no'
6800 fi
6801
6802 else
6803
6804 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6805 if test "x$LINE" != x ; then
6806 eval "DEFAULT_$LINE"
6807 else
6808 no_cache=1
6809 fi
6810
6811 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6812
6813 fi;
6814
6815 eval "$ac_cv_use_button"
6816 if test "$no_cache" != 1; then
6817 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6818 fi
6819
6820 if test "$wxUSE_BUTTON" = yes; then
6821 echo "$as_me:$LINENO: result: yes" >&5
6822 echo "${ECHO_T}yes" >&6
6823 else
6824 echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6826 fi
6827
6828
6829 enablestring=
6830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6831 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6832 no_cache=0
6833 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6834 if test "${enable_bmpbutton+set}" = set; then
6835 enableval="$enable_bmpbutton"
6836
6837 if test "$enableval" = yes; then
6838 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6839 else
6840 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6841 fi
6842
6843 else
6844
6845 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6846 if test "x$LINE" != x ; then
6847 eval "DEFAULT_$LINE"
6848 else
6849 no_cache=1
6850 fi
6851
6852 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6853
6854 fi;
6855
6856 eval "$ac_cv_use_bmpbutton"
6857 if test "$no_cache" != 1; then
6858 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6859 fi
6860
6861 if test "$wxUSE_BMPBUTTON" = yes; then
6862 echo "$as_me:$LINENO: result: yes" >&5
6863 echo "${ECHO_T}yes" >&6
6864 else
6865 echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6
6867 fi
6868
6869
6870 enablestring=
6871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6872 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6873 no_cache=0
6874 # Check whether --enable-calendar or --disable-calendar was given.
6875 if test "${enable_calendar+set}" = set; then
6876 enableval="$enable_calendar"
6877
6878 if test "$enableval" = yes; then
6879 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6880 else
6881 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6882 fi
6883
6884 else
6885
6886 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6887 if test "x$LINE" != x ; then
6888 eval "DEFAULT_$LINE"
6889 else
6890 no_cache=1
6891 fi
6892
6893 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6894
6895 fi;
6896
6897 eval "$ac_cv_use_calendar"
6898 if test "$no_cache" != 1; then
6899 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6900 fi
6901
6902 if test "$wxUSE_CALCTRL" = yes; then
6903 echo "$as_me:$LINENO: result: yes" >&5
6904 echo "${ECHO_T}yes" >&6
6905 else
6906 echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6
6908 fi
6909
6910
6911 enablestring=
6912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6913 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6914 no_cache=0
6915 # Check whether --enable-caret or --disable-caret was given.
6916 if test "${enable_caret+set}" = set; then
6917 enableval="$enable_caret"
6918
6919 if test "$enableval" = yes; then
6920 ac_cv_use_caret='wxUSE_CARET=yes'
6921 else
6922 ac_cv_use_caret='wxUSE_CARET=no'
6923 fi
6924
6925 else
6926
6927 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6928 if test "x$LINE" != x ; then
6929 eval "DEFAULT_$LINE"
6930 else
6931 no_cache=1
6932 fi
6933
6934 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6935
6936 fi;
6937
6938 eval "$ac_cv_use_caret"
6939 if test "$no_cache" != 1; then
6940 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6941 fi
6942
6943 if test "$wxUSE_CARET" = yes; then
6944 echo "$as_me:$LINENO: result: yes" >&5
6945 echo "${ECHO_T}yes" >&6
6946 else
6947 echo "$as_me:$LINENO: result: no" >&5
6948 echo "${ECHO_T}no" >&6
6949 fi
6950
6951
6952 enablestring=
6953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6954 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
6955 no_cache=0
6956 # Check whether --enable-checkbox or --disable-checkbox was given.
6957 if test "${enable_checkbox+set}" = set; then
6958 enableval="$enable_checkbox"
6959
6960 if test "$enableval" = yes; then
6961 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6962 else
6963 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6964 fi
6965
6966 else
6967
6968 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6969 if test "x$LINE" != x ; then
6970 eval "DEFAULT_$LINE"
6971 else
6972 no_cache=1
6973 fi
6974
6975 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6976
6977 fi;
6978
6979 eval "$ac_cv_use_checkbox"
6980 if test "$no_cache" != 1; then
6981 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6982 fi
6983
6984 if test "$wxUSE_CHECKBOX" = yes; then
6985 echo "$as_me:$LINENO: result: yes" >&5
6986 echo "${ECHO_T}yes" >&6
6987 else
6988 echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6
6990 fi
6991
6992
6993 enablestring=
6994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6995 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
6996 no_cache=0
6997 # Check whether --enable-checklst or --disable-checklst was given.
6998 if test "${enable_checklst+set}" = set; then
6999 enableval="$enable_checklst"
7000
7001 if test "$enableval" = yes; then
7002 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7003 else
7004 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7005 fi
7006
7007 else
7008
7009 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7010 if test "x$LINE" != x ; then
7011 eval "DEFAULT_$LINE"
7012 else
7013 no_cache=1
7014 fi
7015
7016 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7017
7018 fi;
7019
7020 eval "$ac_cv_use_checklst"
7021 if test "$no_cache" != 1; then
7022 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7023 fi
7024
7025 if test "$wxUSE_CHECKLST" = yes; then
7026 echo "$as_me:$LINENO: result: yes" >&5
7027 echo "${ECHO_T}yes" >&6
7028 else
7029 echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6
7031 fi
7032
7033
7034 enablestring=
7035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7036 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7037 no_cache=0
7038 # Check whether --enable-choice or --disable-choice was given.
7039 if test "${enable_choice+set}" = set; then
7040 enableval="$enable_choice"
7041
7042 if test "$enableval" = yes; then
7043 ac_cv_use_choice='wxUSE_CHOICE=yes'
7044 else
7045 ac_cv_use_choice='wxUSE_CHOICE=no'
7046 fi
7047
7048 else
7049
7050 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7051 if test "x$LINE" != x ; then
7052 eval "DEFAULT_$LINE"
7053 else
7054 no_cache=1
7055 fi
7056
7057 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7058
7059 fi;
7060
7061 eval "$ac_cv_use_choice"
7062 if test "$no_cache" != 1; then
7063 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7064 fi
7065
7066 if test "$wxUSE_CHOICE" = yes; then
7067 echo "$as_me:$LINENO: result: yes" >&5
7068 echo "${ECHO_T}yes" >&6
7069 else
7070 echo "$as_me:$LINENO: result: no" >&5
7071 echo "${ECHO_T}no" >&6
7072 fi
7073
7074
7075 enablestring=
7076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7077 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7078 no_cache=0
7079 # Check whether --enable-combobox or --disable-combobox was given.
7080 if test "${enable_combobox+set}" = set; then
7081 enableval="$enable_combobox"
7082
7083 if test "$enableval" = yes; then
7084 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7085 else
7086 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7087 fi
7088
7089 else
7090
7091 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7092 if test "x$LINE" != x ; then
7093 eval "DEFAULT_$LINE"
7094 else
7095 no_cache=1
7096 fi
7097
7098 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7099
7100 fi;
7101
7102 eval "$ac_cv_use_combobox"
7103 if test "$no_cache" != 1; then
7104 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7105 fi
7106
7107 if test "$wxUSE_COMBOBOX" = yes; then
7108 echo "$as_me:$LINENO: result: yes" >&5
7109 echo "${ECHO_T}yes" >&6
7110 else
7111 echo "$as_me:$LINENO: result: no" >&5
7112 echo "${ECHO_T}no" >&6
7113 fi
7114
7115
7116 enablestring=
7117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7118 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7119 no_cache=0
7120 # Check whether --enable-display or --disable-display was given.
7121 if test "${enable_display+set}" = set; then
7122 enableval="$enable_display"
7123
7124 if test "$enableval" = yes; then
7125 ac_cv_use_display='wxUSE_DISPLAY=yes'
7126 else
7127 ac_cv_use_display='wxUSE_DISPLAY=no'
7128 fi
7129
7130 else
7131
7132 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7133 if test "x$LINE" != x ; then
7134 eval "DEFAULT_$LINE"
7135 else
7136 no_cache=1
7137 fi
7138
7139 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7140
7141 fi;
7142
7143 eval "$ac_cv_use_display"
7144 if test "$no_cache" != 1; then
7145 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7146 fi
7147
7148 if test "$wxUSE_DISPLAY" = yes; then
7149 echo "$as_me:$LINENO: result: yes" >&5
7150 echo "${ECHO_T}yes" >&6
7151 else
7152 echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6
7154 fi
7155
7156
7157 enablestring=
7158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7159 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7160 no_cache=0
7161 # Check whether --enable-gauge or --disable-gauge was given.
7162 if test "${enable_gauge+set}" = set; then
7163 enableval="$enable_gauge"
7164
7165 if test "$enableval" = yes; then
7166 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7167 else
7168 ac_cv_use_gauge='wxUSE_GAUGE=no'
7169 fi
7170
7171 else
7172
7173 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7174 if test "x$LINE" != x ; then
7175 eval "DEFAULT_$LINE"
7176 else
7177 no_cache=1
7178 fi
7179
7180 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7181
7182 fi;
7183
7184 eval "$ac_cv_use_gauge"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_GAUGE" = yes; then
7190 echo "$as_me:$LINENO: result: yes" >&5
7191 echo "${ECHO_T}yes" >&6
7192 else
7193 echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6
7195 fi
7196
7197
7198 enablestring=
7199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7200 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7201 no_cache=0
7202 # Check whether --enable-grid or --disable-grid was given.
7203 if test "${enable_grid+set}" = set; then
7204 enableval="$enable_grid"
7205
7206 if test "$enableval" = yes; then
7207 ac_cv_use_grid='wxUSE_GRID=yes'
7208 else
7209 ac_cv_use_grid='wxUSE_GRID=no'
7210 fi
7211
7212 else
7213
7214 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7215 if test "x$LINE" != x ; then
7216 eval "DEFAULT_$LINE"
7217 else
7218 no_cache=1
7219 fi
7220
7221 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7222
7223 fi;
7224
7225 eval "$ac_cv_use_grid"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_GRID" = yes; then
7231 echo "$as_me:$LINENO: result: yes" >&5
7232 echo "${ECHO_T}yes" >&6
7233 else
7234 echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6
7236 fi
7237
7238
7239 enablestring=
7240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7241 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7242 no_cache=0
7243 # Check whether --enable-imaglist or --disable-imaglist was given.
7244 if test "${enable_imaglist+set}" = set; then
7245 enableval="$enable_imaglist"
7246
7247 if test "$enableval" = yes; then
7248 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7249 else
7250 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7251 fi
7252
7253 else
7254
7255 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7256 if test "x$LINE" != x ; then
7257 eval "DEFAULT_$LINE"
7258 else
7259 no_cache=1
7260 fi
7261
7262 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7263
7264 fi;
7265
7266 eval "$ac_cv_use_imaglist"
7267 if test "$no_cache" != 1; then
7268 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7269 fi
7270
7271 if test "$wxUSE_IMAGLIST" = yes; then
7272 echo "$as_me:$LINENO: result: yes" >&5
7273 echo "${ECHO_T}yes" >&6
7274 else
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277 fi
7278
7279
7280 enablestring=
7281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7282 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7283 no_cache=0
7284 # Check whether --enable-listbook or --disable-listbook was given.
7285 if test "${enable_listbook+set}" = set; then
7286 enableval="$enable_listbook"
7287
7288 if test "$enableval" = yes; then
7289 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7290 else
7291 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7292 fi
7293
7294 else
7295
7296 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7304
7305 fi;
7306
7307 eval "$ac_cv_use_listbook"
7308 if test "$no_cache" != 1; then
7309 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7310 fi
7311
7312 if test "$wxUSE_LISTBOOK" = yes; then
7313 echo "$as_me:$LINENO: result: yes" >&5
7314 echo "${ECHO_T}yes" >&6
7315 else
7316 echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6
7318 fi
7319
7320
7321 enablestring=
7322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7323 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7324 no_cache=0
7325 # Check whether --enable-listbox or --disable-listbox was given.
7326 if test "${enable_listbox+set}" = set; then
7327 enableval="$enable_listbox"
7328
7329 if test "$enableval" = yes; then
7330 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7331 else
7332 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7333 fi
7334
7335 else
7336
7337 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7338 if test "x$LINE" != x ; then
7339 eval "DEFAULT_$LINE"
7340 else
7341 no_cache=1
7342 fi
7343
7344 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7345
7346 fi;
7347
7348 eval "$ac_cv_use_listbox"
7349 if test "$no_cache" != 1; then
7350 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7351 fi
7352
7353 if test "$wxUSE_LISTBOX" = yes; then
7354 echo "$as_me:$LINENO: result: yes" >&5
7355 echo "${ECHO_T}yes" >&6
7356 else
7357 echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6
7359 fi
7360
7361
7362 enablestring=
7363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7364 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7365 no_cache=0
7366 # Check whether --enable-listctrl or --disable-listctrl was given.
7367 if test "${enable_listctrl+set}" = set; then
7368 enableval="$enable_listctrl"
7369
7370 if test "$enableval" = yes; then
7371 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7372 else
7373 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7374 fi
7375
7376 else
7377
7378 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7379 if test "x$LINE" != x ; then
7380 eval "DEFAULT_$LINE"
7381 else
7382 no_cache=1
7383 fi
7384
7385 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7386
7387 fi;
7388
7389 eval "$ac_cv_use_listctrl"
7390 if test "$no_cache" != 1; then
7391 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7392 fi
7393
7394 if test "$wxUSE_LISTCTRL" = yes; then
7395 echo "$as_me:$LINENO: result: yes" >&5
7396 echo "${ECHO_T}yes" >&6
7397 else
7398 echo "$as_me:$LINENO: result: no" >&5
7399 echo "${ECHO_T}no" >&6
7400 fi
7401
7402
7403 enablestring=
7404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7405 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7406 no_cache=0
7407 # Check whether --enable-notebook or --disable-notebook was given.
7408 if test "${enable_notebook+set}" = set; then
7409 enableval="$enable_notebook"
7410
7411 if test "$enableval" = yes; then
7412 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7413 else
7414 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7415 fi
7416
7417 else
7418
7419 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7420 if test "x$LINE" != x ; then
7421 eval "DEFAULT_$LINE"
7422 else
7423 no_cache=1
7424 fi
7425
7426 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7427
7428 fi;
7429
7430 eval "$ac_cv_use_notebook"
7431 if test "$no_cache" != 1; then
7432 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7433 fi
7434
7435 if test "$wxUSE_NOTEBOOK" = yes; then
7436 echo "$as_me:$LINENO: result: yes" >&5
7437 echo "${ECHO_T}yes" >&6
7438 else
7439 echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6
7441 fi
7442
7443
7444 enablestring=
7445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7446 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7447 no_cache=0
7448 # Check whether --enable-radiobox or --disable-radiobox was given.
7449 if test "${enable_radiobox+set}" = set; then
7450 enableval="$enable_radiobox"
7451
7452 if test "$enableval" = yes; then
7453 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7454 else
7455 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7456 fi
7457
7458 else
7459
7460 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7461 if test "x$LINE" != x ; then
7462 eval "DEFAULT_$LINE"
7463 else
7464 no_cache=1
7465 fi
7466
7467 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7468
7469 fi;
7470
7471 eval "$ac_cv_use_radiobox"
7472 if test "$no_cache" != 1; then
7473 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7474 fi
7475
7476 if test "$wxUSE_RADIOBOX" = yes; then
7477 echo "$as_me:$LINENO: result: yes" >&5
7478 echo "${ECHO_T}yes" >&6
7479 else
7480 echo "$as_me:$LINENO: result: no" >&5
7481 echo "${ECHO_T}no" >&6
7482 fi
7483
7484
7485 enablestring=
7486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7487 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7488 no_cache=0
7489 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7490 if test "${enable_radiobtn+set}" = set; then
7491 enableval="$enable_radiobtn"
7492
7493 if test "$enableval" = yes; then
7494 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7495 else
7496 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7497 fi
7498
7499 else
7500
7501 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7502 if test "x$LINE" != x ; then
7503 eval "DEFAULT_$LINE"
7504 else
7505 no_cache=1
7506 fi
7507
7508 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7509
7510 fi;
7511
7512 eval "$ac_cv_use_radiobtn"
7513 if test "$no_cache" != 1; then
7514 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7515 fi
7516
7517 if test "$wxUSE_RADIOBTN" = yes; then
7518 echo "$as_me:$LINENO: result: yes" >&5
7519 echo "${ECHO_T}yes" >&6
7520 else
7521 echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6
7523 fi
7524
7525
7526 enablestring=
7527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7528 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7529 no_cache=0
7530 # Check whether --enable-sash or --disable-sash was given.
7531 if test "${enable_sash+set}" = set; then
7532 enableval="$enable_sash"
7533
7534 if test "$enableval" = yes; then
7535 ac_cv_use_sash='wxUSE_SASH=yes'
7536 else
7537 ac_cv_use_sash='wxUSE_SASH=no'
7538 fi
7539
7540 else
7541
7542 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7543 if test "x$LINE" != x ; then
7544 eval "DEFAULT_$LINE"
7545 else
7546 no_cache=1
7547 fi
7548
7549 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7550
7551 fi;
7552
7553 eval "$ac_cv_use_sash"
7554 if test "$no_cache" != 1; then
7555 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7556 fi
7557
7558 if test "$wxUSE_SASH" = yes; then
7559 echo "$as_me:$LINENO: result: yes" >&5
7560 echo "${ECHO_T}yes" >&6
7561 else
7562 echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6
7564 fi
7565
7566
7567 enablestring=
7568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7569 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7570 no_cache=0
7571 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7572 if test "${enable_scrollbar+set}" = set; then
7573 enableval="$enable_scrollbar"
7574
7575 if test "$enableval" = yes; then
7576 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7577 else
7578 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7579 fi
7580
7581 else
7582
7583 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7584 if test "x$LINE" != x ; then
7585 eval "DEFAULT_$LINE"
7586 else
7587 no_cache=1
7588 fi
7589
7590 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7591
7592 fi;
7593
7594 eval "$ac_cv_use_scrollbar"
7595 if test "$no_cache" != 1; then
7596 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7597 fi
7598
7599 if test "$wxUSE_SCROLLBAR" = yes; then
7600 echo "$as_me:$LINENO: result: yes" >&5
7601 echo "${ECHO_T}yes" >&6
7602 else
7603 echo "$as_me:$LINENO: result: no" >&5
7604 echo "${ECHO_T}no" >&6
7605 fi
7606
7607
7608 enablestring=
7609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7610 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7611 no_cache=0
7612 # Check whether --enable-slider or --disable-slider was given.
7613 if test "${enable_slider+set}" = set; then
7614 enableval="$enable_slider"
7615
7616 if test "$enableval" = yes; then
7617 ac_cv_use_slider='wxUSE_SLIDER=yes'
7618 else
7619 ac_cv_use_slider='wxUSE_SLIDER=no'
7620 fi
7621
7622 else
7623
7624 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7625 if test "x$LINE" != x ; then
7626 eval "DEFAULT_$LINE"
7627 else
7628 no_cache=1
7629 fi
7630
7631 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7632
7633 fi;
7634
7635 eval "$ac_cv_use_slider"
7636 if test "$no_cache" != 1; then
7637 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7638 fi
7639
7640 if test "$wxUSE_SLIDER" = yes; then
7641 echo "$as_me:$LINENO: result: yes" >&5
7642 echo "${ECHO_T}yes" >&6
7643 else
7644 echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6
7646 fi
7647
7648
7649 enablestring=
7650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7651 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7652 no_cache=0
7653 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7654 if test "${enable_spinbtn+set}" = set; then
7655 enableval="$enable_spinbtn"
7656
7657 if test "$enableval" = yes; then
7658 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7659 else
7660 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7661 fi
7662
7663 else
7664
7665 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7666 if test "x$LINE" != x ; then
7667 eval "DEFAULT_$LINE"
7668 else
7669 no_cache=1
7670 fi
7671
7672 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7673
7674 fi;
7675
7676 eval "$ac_cv_use_spinbtn"
7677 if test "$no_cache" != 1; then
7678 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7679 fi
7680
7681 if test "$wxUSE_SPINBTN" = yes; then
7682 echo "$as_me:$LINENO: result: yes" >&5
7683 echo "${ECHO_T}yes" >&6
7684 else
7685 echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6
7687 fi
7688
7689
7690 enablestring=
7691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7692 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7693 no_cache=0
7694 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7695 if test "${enable_spinctrl+set}" = set; then
7696 enableval="$enable_spinctrl"
7697
7698 if test "$enableval" = yes; then
7699 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7700 else
7701 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7702 fi
7703
7704 else
7705
7706 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7714
7715 fi;
7716
7717 eval "$ac_cv_use_spinctrl"
7718 if test "$no_cache" != 1; then
7719 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7720 fi
7721
7722 if test "$wxUSE_SPINCTRL" = yes; then
7723 echo "$as_me:$LINENO: result: yes" >&5
7724 echo "${ECHO_T}yes" >&6
7725 else
7726 echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6
7728 fi
7729
7730
7731 enablestring=
7732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7733 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7734 no_cache=0
7735 # Check whether --enable-splitter or --disable-splitter was given.
7736 if test "${enable_splitter+set}" = set; then
7737 enableval="$enable_splitter"
7738
7739 if test "$enableval" = yes; then
7740 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7741 else
7742 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7743 fi
7744
7745 else
7746
7747 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7748 if test "x$LINE" != x ; then
7749 eval "DEFAULT_$LINE"
7750 else
7751 no_cache=1
7752 fi
7753
7754 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7755
7756 fi;
7757
7758 eval "$ac_cv_use_splitter"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_SPLITTER" = yes; then
7764 echo "$as_me:$LINENO: result: yes" >&5
7765 echo "${ECHO_T}yes" >&6
7766 else
7767 echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6
7769 fi
7770
7771
7772 enablestring=
7773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7774 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7775 no_cache=0
7776 # Check whether --enable-statbmp or --disable-statbmp was given.
7777 if test "${enable_statbmp+set}" = set; then
7778 enableval="$enable_statbmp"
7779
7780 if test "$enableval" = yes; then
7781 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7782 else
7783 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7784 fi
7785
7786 else
7787
7788 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7789 if test "x$LINE" != x ; then
7790 eval "DEFAULT_$LINE"
7791 else
7792 no_cache=1
7793 fi
7794
7795 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7796
7797 fi;
7798
7799 eval "$ac_cv_use_statbmp"
7800 if test "$no_cache" != 1; then
7801 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7802 fi
7803
7804 if test "$wxUSE_STATBMP" = yes; then
7805 echo "$as_me:$LINENO: result: yes" >&5
7806 echo "${ECHO_T}yes" >&6
7807 else
7808 echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7810 fi
7811
7812
7813 enablestring=
7814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7815 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7816 no_cache=0
7817 # Check whether --enable-statbox or --disable-statbox was given.
7818 if test "${enable_statbox+set}" = set; then
7819 enableval="$enable_statbox"
7820
7821 if test "$enableval" = yes; then
7822 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7823 else
7824 ac_cv_use_statbox='wxUSE_STATBOX=no'
7825 fi
7826
7827 else
7828
7829 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7830 if test "x$LINE" != x ; then
7831 eval "DEFAULT_$LINE"
7832 else
7833 no_cache=1
7834 fi
7835
7836 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7837
7838 fi;
7839
7840 eval "$ac_cv_use_statbox"
7841 if test "$no_cache" != 1; then
7842 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7843 fi
7844
7845 if test "$wxUSE_STATBOX" = yes; then
7846 echo "$as_me:$LINENO: result: yes" >&5
7847 echo "${ECHO_T}yes" >&6
7848 else
7849 echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7851 fi
7852
7853
7854 enablestring=
7855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7856 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7857 no_cache=0
7858 # Check whether --enable-statline or --disable-statline was given.
7859 if test "${enable_statline+set}" = set; then
7860 enableval="$enable_statline"
7861
7862 if test "$enableval" = yes; then
7863 ac_cv_use_statline='wxUSE_STATLINE=yes'
7864 else
7865 ac_cv_use_statline='wxUSE_STATLINE=no'
7866 fi
7867
7868 else
7869
7870 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7871 if test "x$LINE" != x ; then
7872 eval "DEFAULT_$LINE"
7873 else
7874 no_cache=1
7875 fi
7876
7877 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7878
7879 fi;
7880
7881 eval "$ac_cv_use_statline"
7882 if test "$no_cache" != 1; then
7883 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7884 fi
7885
7886 if test "$wxUSE_STATLINE" = yes; then
7887 echo "$as_me:$LINENO: result: yes" >&5
7888 echo "${ECHO_T}yes" >&6
7889 else
7890 echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6
7892 fi
7893
7894
7895 enablestring=
7896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7897 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7898 no_cache=0
7899 # Check whether --enable-stattext or --disable-stattext was given.
7900 if test "${enable_stattext+set}" = set; then
7901 enableval="$enable_stattext"
7902
7903 if test "$enableval" = yes; then
7904 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7905 else
7906 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7907 fi
7908
7909 else
7910
7911 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7912 if test "x$LINE" != x ; then
7913 eval "DEFAULT_$LINE"
7914 else
7915 no_cache=1
7916 fi
7917
7918 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7919
7920 fi;
7921
7922 eval "$ac_cv_use_stattext"
7923 if test "$no_cache" != 1; then
7924 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7925 fi
7926
7927 if test "$wxUSE_STATTEXT" = yes; then
7928 echo "$as_me:$LINENO: result: yes" >&5
7929 echo "${ECHO_T}yes" >&6
7930 else
7931 echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6
7933 fi
7934
7935
7936 enablestring=
7937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7938 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7939 no_cache=0
7940 # Check whether --enable-statusbar or --disable-statusbar was given.
7941 if test "${enable_statusbar+set}" = set; then
7942 enableval="$enable_statusbar"
7943
7944 if test "$enableval" = yes; then
7945 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7946 else
7947 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7948 fi
7949
7950 else
7951
7952 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7953 if test "x$LINE" != x ; then
7954 eval "DEFAULT_$LINE"
7955 else
7956 no_cache=1
7957 fi
7958
7959 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7960
7961 fi;
7962
7963 eval "$ac_cv_use_statusbar"
7964 if test "$no_cache" != 1; then
7965 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7966 fi
7967
7968 if test "$wxUSE_STATUSBAR" = yes; then
7969 echo "$as_me:$LINENO: result: yes" >&5
7970 echo "${ECHO_T}yes" >&6
7971 else
7972 echo "$as_me:$LINENO: result: no" >&5
7973 echo "${ECHO_T}no" >&6
7974 fi
7975
7976
7977 enablestring=
7978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7979 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
7980 no_cache=0
7981 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7982 if test "${enable_tabdialog+set}" = set; then
7983 enableval="$enable_tabdialog"
7984
7985 if test "$enableval" = yes; then
7986 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7987 else
7988 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7989 fi
7990
7991 else
7992
7993 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7994 if test "x$LINE" != x ; then
7995 eval "DEFAULT_$LINE"
7996 else
7997 no_cache=1
7998 fi
7999
8000 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8001
8002 fi;
8003
8004 eval "$ac_cv_use_tabdialog"
8005 if test "$no_cache" != 1; then
8006 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8007 fi
8008
8009 if test "$wxUSE_TABDIALOG" = yes; then
8010 echo "$as_me:$LINENO: result: yes" >&5
8011 echo "${ECHO_T}yes" >&6
8012 else
8013 echo "$as_me:$LINENO: result: no" >&5
8014 echo "${ECHO_T}no" >&6
8015 fi
8016
8017
8018 enablestring=
8019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8020 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8021 no_cache=0
8022 # Check whether --enable-textctrl or --disable-textctrl was given.
8023 if test "${enable_textctrl+set}" = set; then
8024 enableval="$enable_textctrl"
8025
8026 if test "$enableval" = yes; then
8027 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8028 else
8029 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8030 fi
8031
8032 else
8033
8034 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8035 if test "x$LINE" != x ; then
8036 eval "DEFAULT_$LINE"
8037 else
8038 no_cache=1
8039 fi
8040
8041 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8042
8043 fi;
8044
8045 eval "$ac_cv_use_textctrl"
8046 if test "$no_cache" != 1; then
8047 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8048 fi
8049
8050 if test "$wxUSE_TEXTCTRL" = yes; then
8051 echo "$as_me:$LINENO: result: yes" >&5
8052 echo "${ECHO_T}yes" >&6
8053 else
8054 echo "$as_me:$LINENO: result: no" >&5
8055 echo "${ECHO_T}no" >&6
8056 fi
8057
8058
8059 enablestring=
8060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8061 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8062 no_cache=0
8063 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8064 if test "${enable_togglebtn+set}" = set; then
8065 enableval="$enable_togglebtn"
8066
8067 if test "$enableval" = yes; then
8068 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8069 else
8070 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8071 fi
8072
8073 else
8074
8075 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8076 if test "x$LINE" != x ; then
8077 eval "DEFAULT_$LINE"
8078 else
8079 no_cache=1
8080 fi
8081
8082 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8083
8084 fi;
8085
8086 eval "$ac_cv_use_togglebtn"
8087 if test "$no_cache" != 1; then
8088 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8089 fi
8090
8091 if test "$wxUSE_TOGGLEBTN" = yes; then
8092 echo "$as_me:$LINENO: result: yes" >&5
8093 echo "${ECHO_T}yes" >&6
8094 else
8095 echo "$as_me:$LINENO: result: no" >&5
8096 echo "${ECHO_T}no" >&6
8097 fi
8098
8099
8100 enablestring=
8101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8102 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8103 no_cache=0
8104 # Check whether --enable-toolbar or --disable-toolbar was given.
8105 if test "${enable_toolbar+set}" = set; then
8106 enableval="$enable_toolbar"
8107
8108 if test "$enableval" = yes; then
8109 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8110 else
8111 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8112 fi
8113
8114 else
8115
8116 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8124
8125 fi;
8126
8127 eval "$ac_cv_use_toolbar"
8128 if test "$no_cache" != 1; then
8129 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8130 fi
8131
8132 if test "$wxUSE_TOOLBAR" = yes; then
8133 echo "$as_me:$LINENO: result: yes" >&5
8134 echo "${ECHO_T}yes" >&6
8135 else
8136 echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6
8138 fi
8139
8140
8141 enablestring=
8142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8143 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8144 no_cache=0
8145 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8146 if test "${enable_tbarnative+set}" = set; then
8147 enableval="$enable_tbarnative"
8148
8149 if test "$enableval" = yes; then
8150 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8151 else
8152 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8153 fi
8154
8155 else
8156
8157 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8158 if test "x$LINE" != x ; then
8159 eval "DEFAULT_$LINE"
8160 else
8161 no_cache=1
8162 fi
8163
8164 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8165
8166 fi;
8167
8168 eval "$ac_cv_use_tbarnative"
8169 if test "$no_cache" != 1; then
8170 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8171 fi
8172
8173 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8174 echo "$as_me:$LINENO: result: yes" >&5
8175 echo "${ECHO_T}yes" >&6
8176 else
8177 echo "$as_me:$LINENO: result: no" >&5
8178 echo "${ECHO_T}no" >&6
8179 fi
8180
8181
8182 enablestring=
8183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8184 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8185 no_cache=0
8186 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8187 if test "${enable_tbarsmpl+set}" = set; then
8188 enableval="$enable_tbarsmpl"
8189
8190 if test "$enableval" = yes; then
8191 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8192 else
8193 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8194 fi
8195
8196 else
8197
8198 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8199 if test "x$LINE" != x ; then
8200 eval "DEFAULT_$LINE"
8201 else
8202 no_cache=1
8203 fi
8204
8205 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8206
8207 fi;
8208
8209 eval "$ac_cv_use_tbarsmpl"
8210 if test "$no_cache" != 1; then
8211 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8212 fi
8213
8214 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8215 echo "$as_me:$LINENO: result: yes" >&5
8216 echo "${ECHO_T}yes" >&6
8217 else
8218 echo "$as_me:$LINENO: result: no" >&5
8219 echo "${ECHO_T}no" >&6
8220 fi
8221
8222
8223 enablestring=
8224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8225 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8226 no_cache=0
8227 # Check whether --enable-treectrl or --disable-treectrl was given.
8228 if test "${enable_treectrl+set}" = set; then
8229 enableval="$enable_treectrl"
8230
8231 if test "$enableval" = yes; then
8232 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8233 else
8234 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8235 fi
8236
8237 else
8238
8239 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8240 if test "x$LINE" != x ; then
8241 eval "DEFAULT_$LINE"
8242 else
8243 no_cache=1
8244 fi
8245
8246 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8247
8248 fi;
8249
8250 eval "$ac_cv_use_treectrl"
8251 if test "$no_cache" != 1; then
8252 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8253 fi
8254
8255 if test "$wxUSE_TREECTRL" = yes; then
8256 echo "$as_me:$LINENO: result: yes" >&5
8257 echo "${ECHO_T}yes" >&6
8258 else
8259 echo "$as_me:$LINENO: result: no" >&5
8260 echo "${ECHO_T}no" >&6
8261 fi
8262
8263
8264 enablestring=
8265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8266 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8267 no_cache=0
8268 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8269 if test "${enable_tipwindow+set}" = set; then
8270 enableval="$enable_tipwindow"
8271
8272 if test "$enableval" = yes; then
8273 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8274 else
8275 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8276 fi
8277
8278 else
8279
8280 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8281 if test "x$LINE" != x ; then
8282 eval "DEFAULT_$LINE"
8283 else
8284 no_cache=1
8285 fi
8286
8287 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8288
8289 fi;
8290
8291 eval "$ac_cv_use_tipwindow"
8292 if test "$no_cache" != 1; then
8293 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8294 fi
8295
8296 if test "$wxUSE_TIPWINDOW" = yes; then
8297 echo "$as_me:$LINENO: result: yes" >&5
8298 echo "${ECHO_T}yes" >&6
8299 else
8300 echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6
8302 fi
8303
8304
8305 enablestring=
8306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8307 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8308 no_cache=0
8309 # Check whether --enable-popupwin or --disable-popupwin was given.
8310 if test "${enable_popupwin+set}" = set; then
8311 enableval="$enable_popupwin"
8312
8313 if test "$enableval" = yes; then
8314 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8315 else
8316 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8317 fi
8318
8319 else
8320
8321 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8322 if test "x$LINE" != x ; then
8323 eval "DEFAULT_$LINE"
8324 else
8325 no_cache=1
8326 fi
8327
8328 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8329
8330 fi;
8331
8332 eval "$ac_cv_use_popupwin"
8333 if test "$no_cache" != 1; then
8334 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8335 fi
8336
8337 if test "$wxUSE_POPUPWIN" = yes; then
8338 echo "$as_me:$LINENO: result: yes" >&5
8339 echo "${ECHO_T}yes" >&6
8340 else
8341 echo "$as_me:$LINENO: result: no" >&5
8342 echo "${ECHO_T}no" >&6
8343 fi
8344
8345
8346
8347
8348 enablestring=
8349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8350 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8351 no_cache=0
8352 # Check whether --enable-commondlg or --disable-commondlg was given.
8353 if test "${enable_commondlg+set}" = set; then
8354 enableval="$enable_commondlg"
8355
8356 if test "$enableval" = yes; then
8357 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8358 else
8359 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8360 fi
8361
8362 else
8363
8364 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8365 if test "x$LINE" != x ; then
8366 eval "DEFAULT_$LINE"
8367 else
8368 no_cache=1
8369 fi
8370
8371 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8372
8373 fi;
8374
8375 eval "$ac_cv_use_commondlg"
8376 if test "$no_cache" != 1; then
8377 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8378 fi
8379
8380 if test "$wxUSE_COMMONDLGS" = yes; then
8381 echo "$as_me:$LINENO: result: yes" >&5
8382 echo "${ECHO_T}yes" >&6
8383 else
8384 echo "$as_me:$LINENO: result: no" >&5
8385 echo "${ECHO_T}no" >&6
8386 fi
8387
8388
8389 enablestring=
8390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8391 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8392 no_cache=0
8393 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8394 if test "${enable_choicedlg+set}" = set; then
8395 enableval="$enable_choicedlg"
8396
8397 if test "$enableval" = yes; then
8398 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8399 else
8400 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8401 fi
8402
8403 else
8404
8405 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8413
8414 fi;
8415
8416 eval "$ac_cv_use_choicedlg"
8417 if test "$no_cache" != 1; then
8418 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8419 fi
8420
8421 if test "$wxUSE_CHOICEDLG" = yes; then
8422 echo "$as_me:$LINENO: result: yes" >&5
8423 echo "${ECHO_T}yes" >&6
8424 else
8425 echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6
8427 fi
8428
8429
8430 enablestring=
8431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8432 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8433 no_cache=0
8434 # Check whether --enable-coldlg or --disable-coldlg was given.
8435 if test "${enable_coldlg+set}" = set; then
8436 enableval="$enable_coldlg"
8437
8438 if test "$enableval" = yes; then
8439 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8440 else
8441 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8442 fi
8443
8444 else
8445
8446 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8447 if test "x$LINE" != x ; then
8448 eval "DEFAULT_$LINE"
8449 else
8450 no_cache=1
8451 fi
8452
8453 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8454
8455 fi;
8456
8457 eval "$ac_cv_use_coldlg"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_COLOURDLG" = yes; then
8463 echo "$as_me:$LINENO: result: yes" >&5
8464 echo "${ECHO_T}yes" >&6
8465 else
8466 echo "$as_me:$LINENO: result: no" >&5
8467 echo "${ECHO_T}no" >&6
8468 fi
8469
8470
8471 enablestring=
8472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8473 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8474 no_cache=0
8475 # Check whether --enable-filedlg or --disable-filedlg was given.
8476 if test "${enable_filedlg+set}" = set; then
8477 enableval="$enable_filedlg"
8478
8479 if test "$enableval" = yes; then
8480 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8481 else
8482 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8483 fi
8484
8485 else
8486
8487 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8488 if test "x$LINE" != x ; then
8489 eval "DEFAULT_$LINE"
8490 else
8491 no_cache=1
8492 fi
8493
8494 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8495
8496 fi;
8497
8498 eval "$ac_cv_use_filedlg"
8499 if test "$no_cache" != 1; then
8500 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8501 fi
8502
8503 if test "$wxUSE_FILEDLG" = yes; then
8504 echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6
8506 else
8507 echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6
8509 fi
8510
8511
8512 enablestring=
8513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8514 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8515 no_cache=0
8516 # Check whether --enable-finddlg or --disable-finddlg was given.
8517 if test "${enable_finddlg+set}" = set; then
8518 enableval="$enable_finddlg"
8519
8520 if test "$enableval" = yes; then
8521 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8522 else
8523 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8524 fi
8525
8526 else
8527
8528 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8529 if test "x$LINE" != x ; then
8530 eval "DEFAULT_$LINE"
8531 else
8532 no_cache=1
8533 fi
8534
8535 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8536
8537 fi;
8538
8539 eval "$ac_cv_use_finddlg"
8540 if test "$no_cache" != 1; then
8541 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8542 fi
8543
8544 if test "$wxUSE_FINDREPLDLG" = yes; then
8545 echo "$as_me:$LINENO: result: yes" >&5
8546 echo "${ECHO_T}yes" >&6
8547 else
8548 echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6
8550 fi
8551
8552
8553 enablestring=
8554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8555 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8556 no_cache=0
8557 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8558 if test "${enable_fontdlg+set}" = set; then
8559 enableval="$enable_fontdlg"
8560
8561 if test "$enableval" = yes; then
8562 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8563 else
8564 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8565 fi
8566
8567 else
8568
8569 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8570 if test "x$LINE" != x ; then
8571 eval "DEFAULT_$LINE"
8572 else
8573 no_cache=1
8574 fi
8575
8576 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8577
8578 fi;
8579
8580 eval "$ac_cv_use_fontdlg"
8581 if test "$no_cache" != 1; then
8582 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8583 fi
8584
8585 if test "$wxUSE_FONTDLG" = yes; then
8586 echo "$as_me:$LINENO: result: yes" >&5
8587 echo "${ECHO_T}yes" >&6
8588 else
8589 echo "$as_me:$LINENO: result: no" >&5
8590 echo "${ECHO_T}no" >&6
8591 fi
8592
8593
8594 enablestring=
8595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8596 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8597 no_cache=0
8598 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8599 if test "${enable_dirdlg+set}" = set; then
8600 enableval="$enable_dirdlg"
8601
8602 if test "$enableval" = yes; then
8603 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8604 else
8605 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8606 fi
8607
8608 else
8609
8610 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8611 if test "x$LINE" != x ; then
8612 eval "DEFAULT_$LINE"
8613 else
8614 no_cache=1
8615 fi
8616
8617 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8618
8619 fi;
8620
8621 eval "$ac_cv_use_dirdlg"
8622 if test "$no_cache" != 1; then
8623 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8624 fi
8625
8626 if test "$wxUSE_DIRDLG" = yes; then
8627 echo "$as_me:$LINENO: result: yes" >&5
8628 echo "${ECHO_T}yes" >&6
8629 else
8630 echo "$as_me:$LINENO: result: no" >&5
8631 echo "${ECHO_T}no" >&6
8632 fi
8633
8634
8635 enablestring=
8636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8637 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8638 no_cache=0
8639 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8640 if test "${enable_msgdlg+set}" = set; then
8641 enableval="$enable_msgdlg"
8642
8643 if test "$enableval" = yes; then
8644 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8645 else
8646 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8647 fi
8648
8649 else
8650
8651 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8652 if test "x$LINE" != x ; then
8653 eval "DEFAULT_$LINE"
8654 else
8655 no_cache=1
8656 fi
8657
8658 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8659
8660 fi;
8661
8662 eval "$ac_cv_use_msgdlg"
8663 if test "$no_cache" != 1; then
8664 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8665 fi
8666
8667 if test "$wxUSE_MSGDLG" = yes; then
8668 echo "$as_me:$LINENO: result: yes" >&5
8669 echo "${ECHO_T}yes" >&6
8670 else
8671 echo "$as_me:$LINENO: result: no" >&5
8672 echo "${ECHO_T}no" >&6
8673 fi
8674
8675
8676 enablestring=
8677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8678 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8679 no_cache=0
8680 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8681 if test "${enable_numberdlg+set}" = set; then
8682 enableval="$enable_numberdlg"
8683
8684 if test "$enableval" = yes; then
8685 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8686 else
8687 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8688 fi
8689
8690 else
8691
8692 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8693 if test "x$LINE" != x ; then
8694 eval "DEFAULT_$LINE"
8695 else
8696 no_cache=1
8697 fi
8698
8699 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8700
8701 fi;
8702
8703 eval "$ac_cv_use_numberdlg"
8704 if test "$no_cache" != 1; then
8705 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8706 fi
8707
8708 if test "$wxUSE_NUMBERDLG" = yes; then
8709 echo "$as_me:$LINENO: result: yes" >&5
8710 echo "${ECHO_T}yes" >&6
8711 else
8712 echo "$as_me:$LINENO: result: no" >&5
8713 echo "${ECHO_T}no" >&6
8714 fi
8715
8716
8717 enablestring=
8718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8719 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8720 no_cache=0
8721 # Check whether --enable-splash or --disable-splash was given.
8722 if test "${enable_splash+set}" = set; then
8723 enableval="$enable_splash"
8724
8725 if test "$enableval" = yes; then
8726 ac_cv_use_splash='wxUSE_SPLASH=yes'
8727 else
8728 ac_cv_use_splash='wxUSE_SPLASH=no'
8729 fi
8730
8731 else
8732
8733 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8734 if test "x$LINE" != x ; then
8735 eval "DEFAULT_$LINE"
8736 else
8737 no_cache=1
8738 fi
8739
8740 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8741
8742 fi;
8743
8744 eval "$ac_cv_use_splash"
8745 if test "$no_cache" != 1; then
8746 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8747 fi
8748
8749 if test "$wxUSE_SPLASH" = yes; then
8750 echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6
8752 else
8753 echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6
8755 fi
8756
8757
8758 enablestring=
8759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8760 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8761 no_cache=0
8762 # Check whether --enable-textdlg or --disable-textdlg was given.
8763 if test "${enable_textdlg+set}" = set; then
8764 enableval="$enable_textdlg"
8765
8766 if test "$enableval" = yes; then
8767 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8768 else
8769 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8770 fi
8771
8772 else
8773
8774 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8775 if test "x$LINE" != x ; then
8776 eval "DEFAULT_$LINE"
8777 else
8778 no_cache=1
8779 fi
8780
8781 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8782
8783 fi;
8784
8785 eval "$ac_cv_use_textdlg"
8786 if test "$no_cache" != 1; then
8787 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8788 fi
8789
8790 if test "$wxUSE_TEXTDLG" = yes; then
8791 echo "$as_me:$LINENO: result: yes" >&5
8792 echo "${ECHO_T}yes" >&6
8793 else
8794 echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6
8796 fi
8797
8798
8799 enablestring=
8800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8801 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8802 no_cache=0
8803 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8804 if test "${enable_tipdlg+set}" = set; then
8805 enableval="$enable_tipdlg"
8806
8807 if test "$enableval" = yes; then
8808 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8809 else
8810 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8811 fi
8812
8813 else
8814
8815 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8816 if test "x$LINE" != x ; then
8817 eval "DEFAULT_$LINE"
8818 else
8819 no_cache=1
8820 fi
8821
8822 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8823
8824 fi;
8825
8826 eval "$ac_cv_use_tipdlg"
8827 if test "$no_cache" != 1; then
8828 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8829 fi
8830
8831 if test "$wxUSE_STARTUP_TIPS" = yes; then
8832 echo "$as_me:$LINENO: result: yes" >&5
8833 echo "${ECHO_T}yes" >&6
8834 else
8835 echo "$as_me:$LINENO: result: no" >&5
8836 echo "${ECHO_T}no" >&6
8837 fi
8838
8839
8840 enablestring=
8841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8842 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8843 no_cache=0
8844 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8845 if test "${enable_progressdlg+set}" = set; then
8846 enableval="$enable_progressdlg"
8847
8848 if test "$enableval" = yes; then
8849 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8850 else
8851 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8852 fi
8853
8854 else
8855
8856 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8857 if test "x$LINE" != x ; then
8858 eval "DEFAULT_$LINE"
8859 else
8860 no_cache=1
8861 fi
8862
8863 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8864
8865 fi;
8866
8867 eval "$ac_cv_use_progressdlg"
8868 if test "$no_cache" != 1; then
8869 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8870 fi
8871
8872 if test "$wxUSE_PROGRESSDLG" = yes; then
8873 echo "$as_me:$LINENO: result: yes" >&5
8874 echo "${ECHO_T}yes" >&6
8875 else
8876 echo "$as_me:$LINENO: result: no" >&5
8877 echo "${ECHO_T}no" >&6
8878 fi
8879
8880
8881 enablestring=
8882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8883 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8884 no_cache=0
8885 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8886 if test "${enable_wizarddlg+set}" = set; then
8887 enableval="$enable_wizarddlg"
8888
8889 if test "$enableval" = yes; then
8890 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8891 else
8892 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8893 fi
8894
8895 else
8896
8897 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8898 if test "x$LINE" != x ; then
8899 eval "DEFAULT_$LINE"
8900 else
8901 no_cache=1
8902 fi
8903
8904 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8905
8906 fi;
8907
8908 eval "$ac_cv_use_wizarddlg"
8909 if test "$no_cache" != 1; then
8910 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8911 fi
8912
8913 if test "$wxUSE_WIZARDDLG" = yes; then
8914 echo "$as_me:$LINENO: result: yes" >&5
8915 echo "${ECHO_T}yes" >&6
8916 else
8917 echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6
8919 fi
8920
8921
8922
8923
8924 enablestring=
8925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8926 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8927 no_cache=0
8928 # Check whether --enable-menus or --disable-menus was given.
8929 if test "${enable_menus+set}" = set; then
8930 enableval="$enable_menus"
8931
8932 if test "$enableval" = yes; then
8933 ac_cv_use_menus='wxUSE_MENUS=yes'
8934 else
8935 ac_cv_use_menus='wxUSE_MENUS=no'
8936 fi
8937
8938 else
8939
8940 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8941 if test "x$LINE" != x ; then
8942 eval "DEFAULT_$LINE"
8943 else
8944 no_cache=1
8945 fi
8946
8947 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8948
8949 fi;
8950
8951 eval "$ac_cv_use_menus"
8952 if test "$no_cache" != 1; then
8953 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8954 fi
8955
8956 if test "$wxUSE_MENUS" = yes; then
8957 echo "$as_me:$LINENO: result: yes" >&5
8958 echo "${ECHO_T}yes" >&6
8959 else
8960 echo "$as_me:$LINENO: result: no" >&5
8961 echo "${ECHO_T}no" >&6
8962 fi
8963
8964
8965 enablestring=
8966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8967 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
8968 no_cache=0
8969 # Check whether --enable-miniframe or --disable-miniframe was given.
8970 if test "${enable_miniframe+set}" = set; then
8971 enableval="$enable_miniframe"
8972
8973 if test "$enableval" = yes; then
8974 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8975 else
8976 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8977 fi
8978
8979 else
8980
8981 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8982 if test "x$LINE" != x ; then
8983 eval "DEFAULT_$LINE"
8984 else
8985 no_cache=1
8986 fi
8987
8988 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8989
8990 fi;
8991
8992 eval "$ac_cv_use_miniframe"
8993 if test "$no_cache" != 1; then
8994 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8995 fi
8996
8997 if test "$wxUSE_MINIFRAME" = yes; then
8998 echo "$as_me:$LINENO: result: yes" >&5
8999 echo "${ECHO_T}yes" >&6
9000 else
9001 echo "$as_me:$LINENO: result: no" >&5
9002 echo "${ECHO_T}no" >&6
9003 fi
9004
9005
9006 enablestring=
9007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9008 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9009 no_cache=0
9010 # Check whether --enable-tooltips or --disable-tooltips was given.
9011 if test "${enable_tooltips+set}" = set; then
9012 enableval="$enable_tooltips"
9013
9014 if test "$enableval" = yes; then
9015 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9016 else
9017 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9018 fi
9019
9020 else
9021
9022 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9023 if test "x$LINE" != x ; then
9024 eval "DEFAULT_$LINE"
9025 else
9026 no_cache=1
9027 fi
9028
9029 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9030
9031 fi;
9032
9033 eval "$ac_cv_use_tooltips"
9034 if test "$no_cache" != 1; then
9035 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9036 fi
9037
9038 if test "$wxUSE_TOOLTIPS" = yes; then
9039 echo "$as_me:$LINENO: result: yes" >&5
9040 echo "${ECHO_T}yes" >&6
9041 else
9042 echo "$as_me:$LINENO: result: no" >&5
9043 echo "${ECHO_T}no" >&6
9044 fi
9045
9046
9047 enablestring=
9048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9049 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9050 no_cache=0
9051 # Check whether --enable-splines or --disable-splines was given.
9052 if test "${enable_splines+set}" = set; then
9053 enableval="$enable_splines"
9054
9055 if test "$enableval" = yes; then
9056 ac_cv_use_splines='wxUSE_SPLINES=yes'
9057 else
9058 ac_cv_use_splines='wxUSE_SPLINES=no'
9059 fi
9060
9061 else
9062
9063 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9064 if test "x$LINE" != x ; then
9065 eval "DEFAULT_$LINE"
9066 else
9067 no_cache=1
9068 fi
9069
9070 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9071
9072 fi;
9073
9074 eval "$ac_cv_use_splines"
9075 if test "$no_cache" != 1; then
9076 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9077 fi
9078
9079 if test "$wxUSE_SPLINES" = yes; then
9080 echo "$as_me:$LINENO: result: yes" >&5
9081 echo "${ECHO_T}yes" >&6
9082 else
9083 echo "$as_me:$LINENO: result: no" >&5
9084 echo "${ECHO_T}no" >&6
9085 fi
9086
9087
9088 enablestring=
9089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9090 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9091 no_cache=0
9092 # Check whether --enable-validators or --disable-validators was given.
9093 if test "${enable_validators+set}" = set; then
9094 enableval="$enable_validators"
9095
9096 if test "$enableval" = yes; then
9097 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9098 else
9099 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9100 fi
9101
9102 else
9103
9104 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9105 if test "x$LINE" != x ; then
9106 eval "DEFAULT_$LINE"
9107 else
9108 no_cache=1
9109 fi
9110
9111 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9112
9113 fi;
9114
9115 eval "$ac_cv_use_validators"
9116 if test "$no_cache" != 1; then
9117 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9118 fi
9119
9120 if test "$wxUSE_VALIDATORS" = yes; then
9121 echo "$as_me:$LINENO: result: yes" >&5
9122 echo "${ECHO_T}yes" >&6
9123 else
9124 echo "$as_me:$LINENO: result: no" >&5
9125 echo "${ECHO_T}no" >&6
9126 fi
9127
9128
9129 enablestring=
9130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9131 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9132 no_cache=0
9133 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9134 if test "${enable_busyinfo+set}" = set; then
9135 enableval="$enable_busyinfo"
9136
9137 if test "$enableval" = yes; then
9138 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9139 else
9140 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9141 fi
9142
9143 else
9144
9145 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9146 if test "x$LINE" != x ; then
9147 eval "DEFAULT_$LINE"
9148 else
9149 no_cache=1
9150 fi
9151
9152 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9153
9154 fi;
9155
9156 eval "$ac_cv_use_busyinfo"
9157 if test "$no_cache" != 1; then
9158 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9159 fi
9160
9161 if test "$wxUSE_BUSYINFO" = yes; then
9162 echo "$as_me:$LINENO: result: yes" >&5
9163 echo "${ECHO_T}yes" >&6
9164 else
9165 echo "$as_me:$LINENO: result: no" >&5
9166 echo "${ECHO_T}no" >&6
9167 fi
9168
9169
9170 enablestring=
9171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9172 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9173 no_cache=0
9174 # Check whether --enable-joystick or --disable-joystick was given.
9175 if test "${enable_joystick+set}" = set; then
9176 enableval="$enable_joystick"
9177
9178 if test "$enableval" = yes; then
9179 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9180 else
9181 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9182 fi
9183
9184 else
9185
9186 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9187 if test "x$LINE" != x ; then
9188 eval "DEFAULT_$LINE"
9189 else
9190 no_cache=1
9191 fi
9192
9193 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9194
9195 fi;
9196
9197 eval "$ac_cv_use_joystick"
9198 if test "$no_cache" != 1; then
9199 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9200 fi
9201
9202 if test "$wxUSE_JOYSTICK" = yes; then
9203 echo "$as_me:$LINENO: result: yes" >&5
9204 echo "${ECHO_T}yes" >&6
9205 else
9206 echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6
9208 fi
9209
9210
9211 enablestring=
9212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9213 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9214 no_cache=0
9215 # Check whether --enable-metafile or --disable-metafile was given.
9216 if test "${enable_metafile+set}" = set; then
9217 enableval="$enable_metafile"
9218
9219 if test "$enableval" = yes; then
9220 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9221 else
9222 ac_cv_use_metafile='wxUSE_METAFILE=no'
9223 fi
9224
9225 else
9226
9227 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9228 if test "x$LINE" != x ; then
9229 eval "DEFAULT_$LINE"
9230 else
9231 no_cache=1
9232 fi
9233
9234 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9235
9236 fi;
9237
9238 eval "$ac_cv_use_metafile"
9239 if test "$no_cache" != 1; then
9240 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9241 fi
9242
9243 if test "$wxUSE_METAFILE" = yes; then
9244 echo "$as_me:$LINENO: result: yes" >&5
9245 echo "${ECHO_T}yes" >&6
9246 else
9247 echo "$as_me:$LINENO: result: no" >&5
9248 echo "${ECHO_T}no" >&6
9249 fi
9250
9251
9252 enablestring=
9253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9254 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9255 no_cache=0
9256 # Check whether --enable-dragimage or --disable-dragimage was given.
9257 if test "${enable_dragimage+set}" = set; then
9258 enableval="$enable_dragimage"
9259
9260 if test "$enableval" = yes; then
9261 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9262 else
9263 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9264 fi
9265
9266 else
9267
9268 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9269 if test "x$LINE" != x ; then
9270 eval "DEFAULT_$LINE"
9271 else
9272 no_cache=1
9273 fi
9274
9275 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9276
9277 fi;
9278
9279 eval "$ac_cv_use_dragimage"
9280 if test "$no_cache" != 1; then
9281 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9282 fi
9283
9284 if test "$wxUSE_DRAGIMAGE" = yes; then
9285 echo "$as_me:$LINENO: result: yes" >&5
9286 echo "${ECHO_T}yes" >&6
9287 else
9288 echo "$as_me:$LINENO: result: no" >&5
9289 echo "${ECHO_T}no" >&6
9290 fi
9291
9292
9293 enablestring=
9294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9295 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9296 no_cache=0
9297 # Check whether --enable-accessibility or --disable-accessibility was given.
9298 if test "${enable_accessibility+set}" = set; then
9299 enableval="$enable_accessibility"
9300
9301 if test "$enableval" = yes; then
9302 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9303 else
9304 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9305 fi
9306
9307 else
9308
9309 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9310 if test "x$LINE" != x ; then
9311 eval "DEFAULT_$LINE"
9312 else
9313 no_cache=1
9314 fi
9315
9316 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9317
9318 fi;
9319
9320 eval "$ac_cv_use_accessibility"
9321 if test "$no_cache" != 1; then
9322 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9323 fi
9324
9325 if test "$wxUSE_ACCESSIBILITY" = yes; then
9326 echo "$as_me:$LINENO: result: yes" >&5
9327 echo "${ECHO_T}yes" >&6
9328 else
9329 echo "$as_me:$LINENO: result: no" >&5
9330 echo "${ECHO_T}no" >&6
9331 fi
9332
9333
9334
9335
9336 enablestring=
9337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9338 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9339 no_cache=0
9340 # Check whether --enable-palette or --disable-palette was given.
9341 if test "${enable_palette+set}" = set; then
9342 enableval="$enable_palette"
9343
9344 if test "$enableval" = yes; then
9345 ac_cv_use_palette='wxUSE_PALETTE=yes'
9346 else
9347 ac_cv_use_palette='wxUSE_PALETTE=no'
9348 fi
9349
9350 else
9351
9352 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9353 if test "x$LINE" != x ; then
9354 eval "DEFAULT_$LINE"
9355 else
9356 no_cache=1
9357 fi
9358
9359 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9360
9361 fi;
9362
9363 eval "$ac_cv_use_palette"
9364 if test "$no_cache" != 1; then
9365 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9366 fi
9367
9368 if test "$wxUSE_PALETTE" = yes; then
9369 echo "$as_me:$LINENO: result: yes" >&5
9370 echo "${ECHO_T}yes" >&6
9371 else
9372 echo "$as_me:$LINENO: result: no" >&5
9373 echo "${ECHO_T}no" >&6
9374 fi
9375
9376
9377 enablestring=
9378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9379 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9380 no_cache=0
9381 # Check whether --enable-image or --disable-image was given.
9382 if test "${enable_image+set}" = set; then
9383 enableval="$enable_image"
9384
9385 if test "$enableval" = yes; then
9386 ac_cv_use_image='wxUSE_IMAGE=yes'
9387 else
9388 ac_cv_use_image='wxUSE_IMAGE=no'
9389 fi
9390
9391 else
9392
9393 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9394 if test "x$LINE" != x ; then
9395 eval "DEFAULT_$LINE"
9396 else
9397 no_cache=1
9398 fi
9399
9400 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9401
9402 fi;
9403
9404 eval "$ac_cv_use_image"
9405 if test "$no_cache" != 1; then
9406 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9407 fi
9408
9409 if test "$wxUSE_IMAGE" = yes; then
9410 echo "$as_me:$LINENO: result: yes" >&5
9411 echo "${ECHO_T}yes" >&6
9412 else
9413 echo "$as_me:$LINENO: result: no" >&5
9414 echo "${ECHO_T}no" >&6
9415 fi
9416
9417
9418 enablestring=
9419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9420 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9421 no_cache=0
9422 # Check whether --enable-gif or --disable-gif was given.
9423 if test "${enable_gif+set}" = set; then
9424 enableval="$enable_gif"
9425
9426 if test "$enableval" = yes; then
9427 ac_cv_use_gif='wxUSE_GIF=yes'
9428 else
9429 ac_cv_use_gif='wxUSE_GIF=no'
9430 fi
9431
9432 else
9433
9434 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9435 if test "x$LINE" != x ; then
9436 eval "DEFAULT_$LINE"
9437 else
9438 no_cache=1
9439 fi
9440
9441 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9442
9443 fi;
9444
9445 eval "$ac_cv_use_gif"
9446 if test "$no_cache" != 1; then
9447 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9448 fi
9449
9450 if test "$wxUSE_GIF" = yes; then
9451 echo "$as_me:$LINENO: result: yes" >&5
9452 echo "${ECHO_T}yes" >&6
9453 else
9454 echo "$as_me:$LINENO: result: no" >&5
9455 echo "${ECHO_T}no" >&6
9456 fi
9457
9458
9459 enablestring=
9460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9461 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9462 no_cache=0
9463 # Check whether --enable-pcx or --disable-pcx was given.
9464 if test "${enable_pcx+set}" = set; then
9465 enableval="$enable_pcx"
9466
9467 if test "$enableval" = yes; then
9468 ac_cv_use_pcx='wxUSE_PCX=yes'
9469 else
9470 ac_cv_use_pcx='wxUSE_PCX=no'
9471 fi
9472
9473 else
9474
9475 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9476 if test "x$LINE" != x ; then
9477 eval "DEFAULT_$LINE"
9478 else
9479 no_cache=1
9480 fi
9481
9482 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9483
9484 fi;
9485
9486 eval "$ac_cv_use_pcx"
9487 if test "$no_cache" != 1; then
9488 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9489 fi
9490
9491 if test "$wxUSE_PCX" = yes; then
9492 echo "$as_me:$LINENO: result: yes" >&5
9493 echo "${ECHO_T}yes" >&6
9494 else
9495 echo "$as_me:$LINENO: result: no" >&5
9496 echo "${ECHO_T}no" >&6
9497 fi
9498
9499
9500 enablestring=
9501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9502 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9503 no_cache=0
9504 # Check whether --enable-iff or --disable-iff was given.
9505 if test "${enable_iff+set}" = set; then
9506 enableval="$enable_iff"
9507
9508 if test "$enableval" = yes; then
9509 ac_cv_use_iff='wxUSE_IFF=yes'
9510 else
9511 ac_cv_use_iff='wxUSE_IFF=no'
9512 fi
9513
9514 else
9515
9516 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9517 if test "x$LINE" != x ; then
9518 eval "DEFAULT_$LINE"
9519 else
9520 no_cache=1
9521 fi
9522
9523 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9524
9525 fi;
9526
9527 eval "$ac_cv_use_iff"
9528 if test "$no_cache" != 1; then
9529 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9530 fi
9531
9532 if test "$wxUSE_IFF" = yes; then
9533 echo "$as_me:$LINENO: result: yes" >&5
9534 echo "${ECHO_T}yes" >&6
9535 else
9536 echo "$as_me:$LINENO: result: no" >&5
9537 echo "${ECHO_T}no" >&6
9538 fi
9539
9540
9541 enablestring=
9542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9543 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9544 no_cache=0
9545 # Check whether --enable-pnm or --disable-pnm was given.
9546 if test "${enable_pnm+set}" = set; then
9547 enableval="$enable_pnm"
9548
9549 if test "$enableval" = yes; then
9550 ac_cv_use_pnm='wxUSE_PNM=yes'
9551 else
9552 ac_cv_use_pnm='wxUSE_PNM=no'
9553 fi
9554
9555 else
9556
9557 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9558 if test "x$LINE" != x ; then
9559 eval "DEFAULT_$LINE"
9560 else
9561 no_cache=1
9562 fi
9563
9564 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9565
9566 fi;
9567
9568 eval "$ac_cv_use_pnm"
9569 if test "$no_cache" != 1; then
9570 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9571 fi
9572
9573 if test "$wxUSE_PNM" = yes; then
9574 echo "$as_me:$LINENO: result: yes" >&5
9575 echo "${ECHO_T}yes" >&6
9576 else
9577 echo "$as_me:$LINENO: result: no" >&5
9578 echo "${ECHO_T}no" >&6
9579 fi
9580
9581
9582 enablestring=
9583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9584 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9585 no_cache=0
9586 # Check whether --enable-xpm or --disable-xpm was given.
9587 if test "${enable_xpm+set}" = set; then
9588 enableval="$enable_xpm"
9589
9590 if test "$enableval" = yes; then
9591 ac_cv_use_xpm='wxUSE_XPM=yes'
9592 else
9593 ac_cv_use_xpm='wxUSE_XPM=no'
9594 fi
9595
9596 else
9597
9598 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9599 if test "x$LINE" != x ; then
9600 eval "DEFAULT_$LINE"
9601 else
9602 no_cache=1
9603 fi
9604
9605 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9606
9607 fi;
9608
9609 eval "$ac_cv_use_xpm"
9610 if test "$no_cache" != 1; then
9611 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9612 fi
9613
9614 if test "$wxUSE_XPM" = yes; then
9615 echo "$as_me:$LINENO: result: yes" >&5
9616 echo "${ECHO_T}yes" >&6
9617 else
9618 echo "$as_me:$LINENO: result: no" >&5
9619 echo "${ECHO_T}no" >&6
9620 fi
9621
9622
9623 enablestring=
9624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9625 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9626 no_cache=0
9627 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9628 if test "${enable_ico_cur+set}" = set; then
9629 enableval="$enable_ico_cur"
9630
9631 if test "$enableval" = yes; then
9632 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9633 else
9634 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9635 fi
9636
9637 else
9638
9639 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9640 if test "x$LINE" != x ; then
9641 eval "DEFAULT_$LINE"
9642 else
9643 no_cache=1
9644 fi
9645
9646 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9647
9648 fi;
9649
9650 eval "$ac_cv_use_ico_cur"
9651 if test "$no_cache" != 1; then
9652 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9653 fi
9654
9655 if test "$wxUSE_ICO_CUR" = yes; then
9656 echo "$as_me:$LINENO: result: yes" >&5
9657 echo "${ECHO_T}yes" >&6
9658 else
9659 echo "$as_me:$LINENO: result: no" >&5
9660 echo "${ECHO_T}no" >&6
9661 fi
9662
9663
9664 fi
9665
9666
9667
9668 enablestring=
9669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9670 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9671 no_cache=0
9672 # Check whether --enable-official_build or --disable-official_build was given.
9673 if test "${enable_official_build+set}" = set; then
9674 enableval="$enable_official_build"
9675
9676 if test "$enableval" = yes; then
9677 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9678 else
9679 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9680 fi
9681
9682 else
9683
9684 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9685 if test "x$LINE" != x ; then
9686 eval "DEFAULT_$LINE"
9687 else
9688 no_cache=1
9689 fi
9690
9691 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9692
9693 fi;
9694
9695 eval "$ac_cv_use_official_build"
9696 if test "$no_cache" != 1; then
9697 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9698 fi
9699
9700 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9701 echo "$as_me:$LINENO: result: yes" >&5
9702 echo "${ECHO_T}yes" >&6
9703 else
9704 echo "$as_me:$LINENO: result: no" >&5
9705 echo "${ECHO_T}no" >&6
9706 fi
9707
9708 # Check whether --enable-vendor or --disable-vendor was given.
9709 if test "${enable_vendor+set}" = set; then
9710 enableval="$enable_vendor"
9711 VENDOR="$enableval"
9712 fi;
9713 if test "x$VENDOR" = "x"; then
9714 VENDOR="custom"
9715 fi
9716
9717 case "${host}" in
9718 *-pc-os2_emx | *-pc-os2-emx )
9719 PATH_IFS=';'
9720 ;;
9721 *)
9722 PATH_IFS=':'
9723 ;;
9724 esac
9725
9726
9727
9728 echo "saving argument cache $wx_arg_cache_file"
9729 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9730
9731
9732
9733 echo "$as_me:$LINENO: checking for toolkit" >&5
9734 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9735
9736 # In Wine, we need to default to MSW, not GTK or MOTIF
9737 if test "$wxUSE_WINE" = "yes"; then
9738 DEFAULT_DEFAULT_wxUSE_GTK=0
9739 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9740 DEFAULT_DEFAULT_wxUSE_MSW=1
9741 wxUSE_SHARED=no
9742 fi
9743
9744 if test "$wxUSE_GUI" = "yes"; then
9745
9746 if test "$USE_BEOS" = 1; then
9747 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9748 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9749 { (exit 1); exit 1; }; }
9750 fi
9751
9752 if test "$TOOLKIT_GIVEN" = 1; then
9753 for toolkit in `echo $ALL_TOOLKITS`; do
9754 var=wxUSE_$toolkit
9755 eval "value=\$${var}"
9756 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9757 done
9758 else
9759 for toolkit in `echo $ALL_TOOLKITS`; do
9760 if test "$has_toolkit_in_cache" != 1; then
9761 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9762 else
9763 var=DEFAULT_wxUSE_$toolkit
9764 fi
9765 eval "wxUSE_$toolkit=\$${var}"
9766 done
9767 fi
9768
9769 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9770 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9771 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9772
9773 case "${host}" in
9774 *-pc-os2_emx | *-pc-os2-emx )
9775 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9776 esac
9777
9778 case "$NUM_TOOLKITS" in
9779 1)
9780 ;;
9781 0)
9782 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9783 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9784 { (exit 1); exit 1; }; }
9785 ;;
9786 *)
9787 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9788 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9789 { (exit 1); exit 1; }; }
9790 esac
9791
9792 for toolkit in `echo $ALL_TOOLKITS`; do
9793 var=wxUSE_$toolkit
9794 eval "value=\$${var}"
9795 if test "x$value" != x; then
9796 cache_var=CACHE_$toolkit
9797 eval "cache=\$${cache_var}"
9798 if test "$cache" = 1; then
9799 echo "$var=$value" >> ${wx_arg_cache_file}
9800 fi
9801 if test "$value" = 1; then
9802 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9803 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9804 echo "${ECHO_T}$toolkit_echo" >&6
9805 fi
9806 fi
9807 done
9808 else
9809 if test "x$host_alias" != "x"; then
9810 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9811 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9812 else
9813 echo "$as_me:$LINENO: result: base only" >&5
9814 echo "${ECHO_T}base only" >&6
9815 fi
9816 fi
9817
9818 wants_win32=0
9819 doesnt_want_win32=0
9820 case "${host}" in
9821 *-*-cygwin*)
9822 if test "$wxUSE_MSW" = 1 ; then
9823 wants_win32=1
9824 else
9825 doesnt_want_win32=1
9826 fi
9827 ;;
9828 *-*-mingw*)
9829 wants_win32=1
9830 ;;
9831 esac
9832
9833 if test "$wxUSE_WINE" = "yes"; then
9834 wants_win32=1
9835 CC=winegcc
9836 CXX=wineg++
9837 RESCOMP=wrc
9838 LDFLAGS_GUI="-mwindows"
9839 fi
9840
9841 if test "$wants_win32" = 1 ; then
9842 USE_UNIX=0
9843 USE_WIN32=1
9844 cat >>confdefs.h <<\_ACEOF
9845 #define __WIN32__ 1
9846 _ACEOF
9847
9848 cat >>confdefs.h <<\_ACEOF
9849 #define __WIN95__ 1
9850 _ACEOF
9851
9852 cat >>confdefs.h <<\_ACEOF
9853 #define __WINDOWS__ 1
9854 _ACEOF
9855
9856 cat >>confdefs.h <<\_ACEOF
9857 #define __GNUWIN32__ 1
9858 _ACEOF
9859
9860 cat >>confdefs.h <<\_ACEOF
9861 #define STRICT 1
9862 _ACEOF
9863
9864 cat >>confdefs.h <<\_ACEOF
9865 #define WINVER 0x0400
9866 _ACEOF
9867
9868 fi
9869 if test "$doesnt_want_win32" = 1 ; then
9870 USE_UNIX=1
9871 USE_WIN32=0
9872 fi
9873
9874 if test "$USE_UNIX" = 1 ; then
9875 wxUSE_UNIX=yes
9876 cat >>confdefs.h <<\_ACEOF
9877 #define __UNIX__ 1
9878 _ACEOF
9879
9880 fi
9881
9882
9883 cat >confcache <<\_ACEOF
9884 # This file is a shell script that caches the results of configure
9885 # tests run on this system so they can be shared between configure
9886 # scripts and configure runs, see configure's option --config-cache.
9887 # It is not useful on other systems. If it contains results you don't
9888 # want to keep, you may remove or edit it.
9889 #
9890 # config.status only pays attention to the cache file if you give it
9891 # the --recheck option to rerun configure.
9892 #
9893 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9894 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9895 # following values.
9896
9897 _ACEOF
9898
9899 # The following way of writing the cache mishandles newlines in values,
9900 # but we know of no workaround that is simple, portable, and efficient.
9901 # So, don't put newlines in cache variables' values.
9902 # Ultrix sh set writes to stderr and can't be redirected directly,
9903 # and sets the high bit in the cache file unless we assign to the vars.
9904 {
9905 (set) 2>&1 |
9906 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9907 *ac_space=\ *)
9908 # `set' does not quote correctly, so add quotes (double-quote
9909 # substitution turns \\\\ into \\, and sed turns \\ into \).
9910 sed -n \
9911 "s/'/'\\\\''/g;
9912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9913 ;;
9914 *)
9915 # `set' quotes correctly as required by POSIX, so do not add quotes.
9916 sed -n \
9917 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9918 ;;
9919 esac;
9920 } |
9921 sed '
9922 t clear
9923 : clear
9924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9925 t end
9926 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9927 : end' >>confcache
9928 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9929 if test -w $cache_file; then
9930 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9931 cat confcache >$cache_file
9932 else
9933 echo "not updating unwritable cache $cache_file"
9934 fi
9935 fi
9936 rm -f confcache
9937
9938 if test "$build" != "$host" ; then
9939 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9940 CC=$host_alias-gcc
9941 CXX=$host_alias-c++
9942 AR=$host_alias-ar
9943 RANLIB=$host_alias-ranlib
9944 DLLTOOL=$host_alias-dlltool
9945 RESCOMP=$host_alias-windres
9946 LD=$host_alias-ld
9947 NM=$host_alias-nm
9948 STRIP=$host_alias-strip
9949 else
9950 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9951 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9952 { (exit 1); exit 1; }; }
9953 fi
9954 fi
9955
9956 CFLAGS=${CFLAGS:=}
9957 ac_ext=c
9958 ac_cpp='$CPP $CPPFLAGS'
9959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9962 if test -n "$ac_tool_prefix"; then
9963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9964 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9965 echo "$as_me:$LINENO: checking for $ac_word" >&5
9966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9967 if test "${ac_cv_prog_CC+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 if test -n "$CC"; then
9971 ac_cv_prog_CC="$CC" # Let the user override the test.
9972 else
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974 for as_dir in $PATH
9975 do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984 done
9985 done
9986
9987 fi
9988 fi
9989 CC=$ac_cv_prog_CC
9990 if test -n "$CC"; then
9991 echo "$as_me:$LINENO: result: $CC" >&5
9992 echo "${ECHO_T}$CC" >&6
9993 else
9994 echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6
9996 fi
9997
9998 fi
9999 if test -z "$ac_cv_prog_CC"; then
10000 ac_ct_CC=$CC
10001 # Extract the first word of "gcc", so it can be a program name with args.
10002 set dummy gcc; ac_word=$2
10003 echo "$as_me:$LINENO: checking for $ac_word" >&5
10004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10005 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008 if test -n "$ac_ct_CC"; then
10009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10010 else
10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012 for as_dir in $PATH
10013 do
10014 IFS=$as_save_IFS
10015 test -z "$as_dir" && as_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10018 ac_cv_prog_ac_ct_CC="gcc"
10019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 break 2
10021 fi
10022 done
10023 done
10024
10025 fi
10026 fi
10027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10028 if test -n "$ac_ct_CC"; then
10029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10030 echo "${ECHO_T}$ac_ct_CC" >&6
10031 else
10032 echo "$as_me:$LINENO: result: no" >&5
10033 echo "${ECHO_T}no" >&6
10034 fi
10035
10036 CC=$ac_ct_CC
10037 else
10038 CC="$ac_cv_prog_CC"
10039 fi
10040
10041 if test -z "$CC"; then
10042 if test -n "$ac_tool_prefix"; then
10043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10044 set dummy ${ac_tool_prefix}cc; ac_word=$2
10045 echo "$as_me:$LINENO: checking for $ac_word" >&5
10046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10047 if test "${ac_cv_prog_CC+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 else
10050 if test -n "$CC"; then
10051 ac_cv_prog_CC="$CC" # Let the user override the test.
10052 else
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10055 do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_CC="${ac_tool_prefix}cc"
10061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064 done
10065 done
10066
10067 fi
10068 fi
10069 CC=$ac_cv_prog_CC
10070 if test -n "$CC"; then
10071 echo "$as_me:$LINENO: result: $CC" >&5
10072 echo "${ECHO_T}$CC" >&6
10073 else
10074 echo "$as_me:$LINENO: result: no" >&5
10075 echo "${ECHO_T}no" >&6
10076 fi
10077
10078 fi
10079 if test -z "$ac_cv_prog_CC"; then
10080 ac_ct_CC=$CC
10081 # Extract the first word of "cc", so it can be a program name with args.
10082 set dummy cc; ac_word=$2
10083 echo "$as_me:$LINENO: checking for $ac_word" >&5
10084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088 if test -n "$ac_ct_CC"; then
10089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10090 else
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10093 do
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10098 ac_cv_prog_ac_ct_CC="cc"
10099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 break 2
10101 fi
10102 done
10103 done
10104
10105 fi
10106 fi
10107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10108 if test -n "$ac_ct_CC"; then
10109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10110 echo "${ECHO_T}$ac_ct_CC" >&6
10111 else
10112 echo "$as_me:$LINENO: result: no" >&5
10113 echo "${ECHO_T}no" >&6
10114 fi
10115
10116 CC=$ac_ct_CC
10117 else
10118 CC="$ac_cv_prog_CC"
10119 fi
10120
10121 fi
10122 if test -z "$CC"; then
10123 # Extract the first word of "cc", so it can be a program name with args.
10124 set dummy cc; ac_word=$2
10125 echo "$as_me:$LINENO: checking for $ac_word" >&5
10126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10127 if test "${ac_cv_prog_CC+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129 else
10130 if test -n "$CC"; then
10131 ac_cv_prog_CC="$CC" # Let the user override the test.
10132 else
10133 ac_prog_rejected=no
10134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135 for as_dir in $PATH
10136 do
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10142 ac_prog_rejected=yes
10143 continue
10144 fi
10145 ac_cv_prog_CC="cc"
10146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149 done
10150 done
10151
10152 if test $ac_prog_rejected = yes; then
10153 # We found a bogon in the path, so make sure we never use it.
10154 set dummy $ac_cv_prog_CC
10155 shift
10156 if test $# != 0; then
10157 # We chose a different compiler from the bogus one.
10158 # However, it has the same basename, so the bogon will be chosen
10159 # first if we set CC to just the basename; use the full file name.
10160 shift
10161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10162 fi
10163 fi
10164 fi
10165 fi
10166 CC=$ac_cv_prog_CC
10167 if test -n "$CC"; then
10168 echo "$as_me:$LINENO: result: $CC" >&5
10169 echo "${ECHO_T}$CC" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172 echo "${ECHO_T}no" >&6
10173 fi
10174
10175 fi
10176 if test -z "$CC"; then
10177 if test -n "$ac_tool_prefix"; then
10178 for ac_prog in cl
10179 do
10180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10182 echo "$as_me:$LINENO: checking for $ac_word" >&5
10183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10184 if test "${ac_cv_prog_CC+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 else
10187 if test -n "$CC"; then
10188 ac_cv_prog_CC="$CC" # Let the user override the test.
10189 else
10190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191 for as_dir in $PATH
10192 do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 break 2
10200 fi
10201 done
10202 done
10203
10204 fi
10205 fi
10206 CC=$ac_cv_prog_CC
10207 if test -n "$CC"; then
10208 echo "$as_me:$LINENO: result: $CC" >&5
10209 echo "${ECHO_T}$CC" >&6
10210 else
10211 echo "$as_me:$LINENO: result: no" >&5
10212 echo "${ECHO_T}no" >&6
10213 fi
10214
10215 test -n "$CC" && break
10216 done
10217 fi
10218 if test -z "$CC"; then
10219 ac_ct_CC=$CC
10220 for ac_prog in cl
10221 do
10222 # Extract the first word of "$ac_prog", so it can be a program name with args.
10223 set dummy $ac_prog; 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="$ac_prog"
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 test -n "$ac_ct_CC" && break
10258 done
10259
10260 CC=$ac_ct_CC
10261 fi
10262
10263 fi
10264
10265
10266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10267 See \`config.log' for more details." >&5
10268 echo "$as_me: error: no acceptable C compiler found in \$PATH
10269 See \`config.log' for more details." >&2;}
10270 { (exit 1); exit 1; }; }
10271
10272 # Provide some information about the compiler.
10273 echo "$as_me:$LINENO:" \
10274 "checking for C compiler version" >&5
10275 ac_compiler=`set X $ac_compile; echo $2`
10276 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10277 (eval $ac_compiler --version </dev/null >&5) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }
10281 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10282 (eval $ac_compiler -v </dev/null >&5) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }
10286 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10287 (eval $ac_compiler -V </dev/null >&5) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }
10291
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298
10299 int
10300 main ()
10301 {
10302
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 ac_clean_files_save=$ac_clean_files
10308 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10309 # Try to create an executable without -o first, disregard a.out.
10310 # It will help us diagnose broken compilers, and finding out an intuition
10311 # of exeext.
10312 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10313 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10314 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10316 (eval $ac_link_default) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; then
10320 # Find the output, starting from the most likely. This scheme is
10321 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10322 # resort.
10323
10324 # Be careful to initialize this variable, since it used to be cached.
10325 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10326 ac_cv_exeext=
10327 # b.out is created by i960 compilers.
10328 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10329 do
10330 test -f "$ac_file" || continue
10331 case $ac_file in
10332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10333 ;;
10334 conftest.$ac_ext )
10335 # This is the source file.
10336 ;;
10337 [ab].out )
10338 # We found the default executable, but exeext='' is most
10339 # certainly right.
10340 break;;
10341 *.* )
10342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10343 # FIXME: I believe we export ac_cv_exeext for Libtool,
10344 # but it would be cool to find out if it's true. Does anybody
10345 # maintain Libtool? --akim.
10346 export ac_cv_exeext
10347 break;;
10348 * )
10349 break;;
10350 esac
10351 done
10352 else
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10357 See \`config.log' for more details." >&5
10358 echo "$as_me: error: C compiler cannot create executables
10359 See \`config.log' for more details." >&2;}
10360 { (exit 77); exit 77; }; }
10361 fi
10362
10363 ac_exeext=$ac_cv_exeext
10364 echo "$as_me:$LINENO: result: $ac_file" >&5
10365 echo "${ECHO_T}$ac_file" >&6
10366
10367 # Check the compiler produces executables we can run. If not, either
10368 # the compiler is broken, or we cross compile.
10369 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10370 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10371 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10372 # If not cross compiling, check that we can run a simple program.
10373 if test "$cross_compiling" != yes; then
10374 if { ac_try='./$ac_file'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 cross_compiling=no
10381 else
10382 if test "$cross_compiling" = maybe; then
10383 cross_compiling=yes
10384 else
10385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10386 If you meant to cross compile, use \`--host'.
10387 See \`config.log' for more details." >&5
10388 echo "$as_me: error: cannot run C compiled programs.
10389 If you meant to cross compile, use \`--host'.
10390 See \`config.log' for more details." >&2;}
10391 { (exit 1); exit 1; }; }
10392 fi
10393 fi
10394 fi
10395 echo "$as_me:$LINENO: result: yes" >&5
10396 echo "${ECHO_T}yes" >&6
10397
10398 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10399 ac_clean_files=$ac_clean_files_save
10400 # Check the compiler produces executables we can run. If not, either
10401 # the compiler is broken, or we cross compile.
10402 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10403 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10404 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10405 echo "${ECHO_T}$cross_compiling" >&6
10406
10407 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10408 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; then
10414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10415 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10416 # work properly (i.e., refer to `conftest.exe'), while it won't with
10417 # `rm'.
10418 for ac_file in conftest.exe conftest conftest.*; do
10419 test -f "$ac_file" || continue
10420 case $ac_file in
10421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10423 export ac_cv_exeext
10424 break;;
10425 * ) break;;
10426 esac
10427 done
10428 else
10429 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10430 See \`config.log' for more details." >&5
10431 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10432 See \`config.log' for more details." >&2;}
10433 { (exit 1); exit 1; }; }
10434 fi
10435
10436 rm -f conftest$ac_cv_exeext
10437 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10438 echo "${ECHO_T}$ac_cv_exeext" >&6
10439
10440 rm -f conftest.$ac_ext
10441 EXEEXT=$ac_cv_exeext
10442 ac_exeext=$EXEEXT
10443 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10444 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10445 if test "${ac_cv_objext+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 else
10448 cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h. */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454
10455 int
10456 main ()
10457 {
10458
10459 ;
10460 return 0;
10461 }
10462 _ACEOF
10463 rm -f conftest.o conftest.obj
10464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; then
10469 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10470 case $ac_file in
10471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10473 break;;
10474 esac
10475 done
10476 else
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10479
10480 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10481 See \`config.log' for more details." >&5
10482 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10483 See \`config.log' for more details." >&2;}
10484 { (exit 1); exit 1; }; }
10485 fi
10486
10487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10488 fi
10489 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10490 echo "${ECHO_T}$ac_cv_objext" >&6
10491 OBJEXT=$ac_cv_objext
10492 ac_objext=$OBJEXT
10493 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10494 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10495 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498 cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h. */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504
10505 int
10506 main ()
10507 {
10508 #ifndef __GNUC__
10509 choke me
10510 #endif
10511
10512 ;
10513 return 0;
10514 }
10515 _ACEOF
10516 rm -f conftest.$ac_objext
10517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10518 (eval $ac_compile) 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -z "$ac_c_werror_flag"
10526 || test ! -s conftest.err'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; } &&
10532 { ac_try='test -s conftest.$ac_objext'
10533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; }; then
10538 ac_compiler_gnu=yes
10539 else
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10542
10543 ac_compiler_gnu=no
10544 fi
10545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10547
10548 fi
10549 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10550 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10551 GCC=`test $ac_compiler_gnu = yes && echo yes`
10552 ac_test_CFLAGS=${CFLAGS+set}
10553 ac_save_CFLAGS=$CFLAGS
10554 CFLAGS="-g"
10555 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10556 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10557 if test "${ac_cv_prog_cc_g+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559 else
10560 cat >conftest.$ac_ext <<_ACEOF
10561 /* confdefs.h. */
10562 _ACEOF
10563 cat confdefs.h >>conftest.$ac_ext
10564 cat >>conftest.$ac_ext <<_ACEOF
10565 /* end confdefs.h. */
10566
10567 int
10568 main ()
10569 {
10570
10571 ;
10572 return 0;
10573 }
10574 _ACEOF
10575 rm -f conftest.$ac_objext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10577 (eval $ac_compile) 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -z "$ac_c_werror_flag"
10585 || test ! -s conftest.err'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest.$ac_objext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 ac_cv_prog_cc_g=yes
10598 else
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_cv_prog_cc_g=no
10603 fi
10604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10605 fi
10606 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10607 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10608 if test "$ac_test_CFLAGS" = set; then
10609 CFLAGS=$ac_save_CFLAGS
10610 elif test $ac_cv_prog_cc_g = yes; then
10611 if test "$GCC" = yes; then
10612 CFLAGS="-g -O2"
10613 else
10614 CFLAGS="-g"
10615 fi
10616 else
10617 if test "$GCC" = yes; then
10618 CFLAGS="-O2"
10619 else
10620 CFLAGS=
10621 fi
10622 fi
10623 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10624 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10625 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627 else
10628 ac_cv_prog_cc_stdc=no
10629 ac_save_CC=$CC
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <stdarg.h>
10637 #include <stdio.h>
10638 #include <sys/types.h>
10639 #include <sys/stat.h>
10640 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10641 struct buf { int x; };
10642 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10643 static char *e (p, i)
10644 char **p;
10645 int i;
10646 {
10647 return p[i];
10648 }
10649 static char *f (char * (*g) (char **, int), char **p, ...)
10650 {
10651 char *s;
10652 va_list v;
10653 va_start (v,p);
10654 s = g (p, va_arg (v,int));
10655 va_end (v);
10656 return s;
10657 }
10658
10659 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10660 function prototypes and stuff, but not '\xHH' hex character constants.
10661 These don't provoke an error unfortunately, instead are silently treated
10662 as 'x'. The following induces an error, until -std1 is added to get
10663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10664 array size at least. It's necessary to write '\x00'==0 to get something
10665 that's true only with -std1. */
10666 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10667
10668 int test (int i, double x);
10669 struct s1 {int (*f) (int a);};
10670 struct s2 {int (*f) (double a);};
10671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10672 int argc;
10673 char **argv;
10674 int
10675 main ()
10676 {
10677 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 # Don't try gcc -ansi; that turns off useful extensions and
10683 # breaks some systems' header files.
10684 # AIX -qlanglvl=ansi
10685 # Ultrix and OSF/1 -std1
10686 # HP-UX 10.20 and later -Ae
10687 # HP-UX older versions -Aa -D_HPUX_SOURCE
10688 # SVR4 -Xc -D__EXTENSIONS__
10689 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10690 do
10691 CC="$ac_save_CC $ac_arg"
10692 rm -f conftest.$ac_objext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694 (eval $ac_compile) 2>conftest.er1
10695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -z "$ac_c_werror_flag"
10702 || test ! -s conftest.err'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; } &&
10708 { ac_try='test -s conftest.$ac_objext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_cv_prog_cc_stdc=$ac_arg
10715 break
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 fi
10721 rm -f conftest.err conftest.$ac_objext
10722 done
10723 rm -f conftest.$ac_ext conftest.$ac_objext
10724 CC=$ac_save_CC
10725
10726 fi
10727
10728 case "x$ac_cv_prog_cc_stdc" in
10729 x|xno)
10730 echo "$as_me:$LINENO: result: none needed" >&5
10731 echo "${ECHO_T}none needed" >&6 ;;
10732 *)
10733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10734 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10735 CC="$CC $ac_cv_prog_cc_stdc" ;;
10736 esac
10737
10738 # Some people use a C++ compiler to compile C. Since we use `exit',
10739 # in C++ we need to declare it. In case someone uses the same compiler
10740 # for both compiling C and C++ we need to have the C++ compiler decide
10741 # the declaration of exit, since it's the most demanding environment.
10742 cat >conftest.$ac_ext <<_ACEOF
10743 #ifndef __cplusplus
10744 choke me
10745 #endif
10746 _ACEOF
10747 rm -f conftest.$ac_objext
10748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10749 (eval $ac_compile) 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
10756 { ac_try='test -z "$ac_c_werror_flag"
10757 || test ! -s conftest.err'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest.$ac_objext'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
10769 for ac_declaration in \
10770 '' \
10771 'extern "C" void std::exit (int) throw (); using std::exit;' \
10772 'extern "C" void std::exit (int); using std::exit;' \
10773 'extern "C" void exit (int) throw ();' \
10774 'extern "C" void exit (int);' \
10775 'void exit (int);'
10776 do
10777 cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h. */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h. */
10783 $ac_declaration
10784 #include <stdlib.h>
10785 int
10786 main ()
10787 {
10788 exit (42);
10789 ;
10790 return 0;
10791 }
10792 _ACEOF
10793 rm -f conftest.$ac_objext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10795 (eval $ac_compile) 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest.$ac_objext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 :
10816 else
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10819
10820 continue
10821 fi
10822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10823 cat >conftest.$ac_ext <<_ACEOF
10824 /* confdefs.h. */
10825 _ACEOF
10826 cat confdefs.h >>conftest.$ac_ext
10827 cat >>conftest.$ac_ext <<_ACEOF
10828 /* end confdefs.h. */
10829 $ac_declaration
10830 int
10831 main ()
10832 {
10833 exit (42);
10834 ;
10835 return 0;
10836 }
10837 _ACEOF
10838 rm -f conftest.$ac_objext
10839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10840 (eval $ac_compile) 2>conftest.er1
10841 ac_status=$?
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
10847 { ac_try='test -z "$ac_c_werror_flag"
10848 || test ! -s conftest.err'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest.$ac_objext'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 break
10861 else
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10864
10865 fi
10866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10867 done
10868 rm -f conftest*
10869 if test -n "$ac_declaration"; then
10870 echo '#ifdef __cplusplus' >>confdefs.h
10871 echo $ac_declaration >>confdefs.h
10872 echo '#endif' >>confdefs.h
10873 fi
10874
10875 else
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 fi
10880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10881 ac_ext=c
10882 ac_cpp='$CPP $CPPFLAGS'
10883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10886
10887
10888
10889 ac_ext=c
10890 ac_cpp='$CPP $CPPFLAGS'
10891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10894 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10895 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10896 # On Suns, sometimes $CPP names a directory.
10897 if test -n "$CPP" && test -d "$CPP"; then
10898 CPP=
10899 fi
10900 if test -z "$CPP"; then
10901 if test "${ac_cv_prog_CPP+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 else
10904 # Double quotes because CPP needs to be expanded
10905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10906 do
10907 ac_preproc_ok=false
10908 for ac_c_preproc_warn_flag in '' yes
10909 do
10910 # Use a header file that comes with gcc, so configuring glibc
10911 # with a fresh cross-compiler works.
10912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10913 # <limits.h> exists even on freestanding compilers.
10914 # On the NeXT, cc -E runs the code through the compiler's parser,
10915 # not just through cpp. "Syntax error" is here to catch this case.
10916 cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h. */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10922 #ifdef __STDC__
10923 # include <limits.h>
10924 #else
10925 # include <assert.h>
10926 #endif
10927 Syntax error
10928 _ACEOF
10929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10931 ac_status=$?
10932 grep -v '^ *+' conftest.er1 >conftest.err
10933 rm -f conftest.er1
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } >/dev/null; then
10937 if test -s conftest.err; then
10938 ac_cpp_err=$ac_c_preproc_warn_flag
10939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10940 else
10941 ac_cpp_err=
10942 fi
10943 else
10944 ac_cpp_err=yes
10945 fi
10946 if test -z "$ac_cpp_err"; then
10947 :
10948 else
10949 echo "$as_me: failed program was:" >&5
10950 sed 's/^/| /' conftest.$ac_ext >&5
10951
10952 # Broken: fails on valid input.
10953 continue
10954 fi
10955 rm -f conftest.err conftest.$ac_ext
10956
10957 # OK, works on sane cases. Now check whether non-existent headers
10958 # can be detected and how.
10959 cat >conftest.$ac_ext <<_ACEOF
10960 /* confdefs.h. */
10961 _ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 #include <ac_nonexistent.h>
10966 _ACEOF
10967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } >/dev/null; then
10975 if test -s conftest.err; then
10976 ac_cpp_err=$ac_c_preproc_warn_flag
10977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10978 else
10979 ac_cpp_err=
10980 fi
10981 else
10982 ac_cpp_err=yes
10983 fi
10984 if test -z "$ac_cpp_err"; then
10985 # Broken: success on invalid input.
10986 continue
10987 else
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 # Passes both tests.
10992 ac_preproc_ok=:
10993 break
10994 fi
10995 rm -f conftest.err conftest.$ac_ext
10996
10997 done
10998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10999 rm -f conftest.err conftest.$ac_ext
11000 if $ac_preproc_ok; then
11001 break
11002 fi
11003
11004 done
11005 ac_cv_prog_CPP=$CPP
11006
11007 fi
11008 CPP=$ac_cv_prog_CPP
11009 else
11010 ac_cv_prog_CPP=$CPP
11011 fi
11012 echo "$as_me:$LINENO: result: $CPP" >&5
11013 echo "${ECHO_T}$CPP" >&6
11014 ac_preproc_ok=false
11015 for ac_c_preproc_warn_flag in '' yes
11016 do
11017 # Use a header file that comes with gcc, so configuring glibc
11018 # with a fresh cross-compiler works.
11019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020 # <limits.h> exists even on freestanding compilers.
11021 # On the NeXT, cc -E runs the code through the compiler's parser,
11022 # not just through cpp. "Syntax error" is here to catch this case.
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 #ifdef __STDC__
11030 # include <limits.h>
11031 #else
11032 # include <assert.h>
11033 #endif
11034 Syntax error
11035 _ACEOF
11036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } >/dev/null; then
11044 if test -s conftest.err; then
11045 ac_cpp_err=$ac_c_preproc_warn_flag
11046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11047 else
11048 ac_cpp_err=
11049 fi
11050 else
11051 ac_cpp_err=yes
11052 fi
11053 if test -z "$ac_cpp_err"; then
11054 :
11055 else
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059 # Broken: fails on valid input.
11060 continue
11061 fi
11062 rm -f conftest.err conftest.$ac_ext
11063
11064 # OK, works on sane cases. Now check whether non-existent headers
11065 # can be detected and how.
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h. */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 #include <ac_nonexistent.h>
11073 _ACEOF
11074 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } >/dev/null; then
11082 if test -s conftest.err; then
11083 ac_cpp_err=$ac_c_preproc_warn_flag
11084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11085 else
11086 ac_cpp_err=
11087 fi
11088 else
11089 ac_cpp_err=yes
11090 fi
11091 if test -z "$ac_cpp_err"; then
11092 # Broken: success on invalid input.
11093 continue
11094 else
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098 # Passes both tests.
11099 ac_preproc_ok=:
11100 break
11101 fi
11102 rm -f conftest.err conftest.$ac_ext
11103
11104 done
11105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11106 rm -f conftest.err conftest.$ac_ext
11107 if $ac_preproc_ok; then
11108 :
11109 else
11110 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11111 See \`config.log' for more details." >&5
11112 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11113 See \`config.log' for more details." >&2;}
11114 { (exit 1); exit 1; }; }
11115 fi
11116
11117 ac_ext=c
11118 ac_cpp='$CPP $CPPFLAGS'
11119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11122
11123
11124 echo "$as_me:$LINENO: checking for egrep" >&5
11125 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11126 if test "${ac_cv_prog_egrep+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11128 else
11129 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11130 then ac_cv_prog_egrep='grep -E'
11131 else ac_cv_prog_egrep='egrep'
11132 fi
11133 fi
11134 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11135 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11136 EGREP=$ac_cv_prog_egrep
11137
11138
11139 if test $ac_cv_c_compiler_gnu = yes; then
11140 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11141 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11142 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145 ac_pattern="Autoconf.*'x'"
11146 cat >conftest.$ac_ext <<_ACEOF
11147 /* confdefs.h. */
11148 _ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 #include <sgtty.h>
11153 Autoconf TIOCGETP
11154 _ACEOF
11155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11156 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11157 ac_cv_prog_gcc_traditional=yes
11158 else
11159 ac_cv_prog_gcc_traditional=no
11160 fi
11161 rm -f conftest*
11162
11163
11164 if test $ac_cv_prog_gcc_traditional = no; then
11165 cat >conftest.$ac_ext <<_ACEOF
11166 /* confdefs.h. */
11167 _ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include <termio.h>
11172 Autoconf TCGETA
11173 _ACEOF
11174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11175 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11176 ac_cv_prog_gcc_traditional=yes
11177 fi
11178 rm -f conftest*
11179
11180 fi
11181 fi
11182 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11183 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11184 if test $ac_cv_prog_gcc_traditional = yes; then
11185 CC="$CC -traditional"
11186 fi
11187 fi
11188
11189
11190
11191
11192 ac_ext=cc
11193 ac_cpp='$CXXCPP $CPPFLAGS'
11194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11197
11198
11199 CXXFLAGS=${CXXFLAGS:=}
11200 ac_ext=cc
11201 ac_cpp='$CXXCPP $CPPFLAGS'
11202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11205 if test -n "$ac_tool_prefix"; then
11206 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11207 do
11208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11210 echo "$as_me:$LINENO: checking for $ac_word" >&5
11211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11212 if test "${ac_cv_prog_CXX+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215 if test -n "$CXX"; then
11216 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11217 else
11218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219 for as_dir in $PATH
11220 do
11221 IFS=$as_save_IFS
11222 test -z "$as_dir" && as_dir=.
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11225 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11227 break 2
11228 fi
11229 done
11230 done
11231
11232 fi
11233 fi
11234 CXX=$ac_cv_prog_CXX
11235 if test -n "$CXX"; then
11236 echo "$as_me:$LINENO: result: $CXX" >&5
11237 echo "${ECHO_T}$CXX" >&6
11238 else
11239 echo "$as_me:$LINENO: result: no" >&5
11240 echo "${ECHO_T}no" >&6
11241 fi
11242
11243 test -n "$CXX" && break
11244 done
11245 fi
11246 if test -z "$CXX"; then
11247 ac_ct_CXX=$CXX
11248 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11249 do
11250 # Extract the first word of "$ac_prog", so it can be a program name with args.
11251 set dummy $ac_prog; ac_word=$2
11252 echo "$as_me:$LINENO: checking for $ac_word" >&5
11253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11254 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 else
11257 if test -n "$ac_ct_CXX"; then
11258 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11259 else
11260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261 for as_dir in $PATH
11262 do
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267 ac_cv_prog_ac_ct_CXX="$ac_prog"
11268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 break 2
11270 fi
11271 done
11272 done
11273
11274 fi
11275 fi
11276 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11277 if test -n "$ac_ct_CXX"; then
11278 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11279 echo "${ECHO_T}$ac_ct_CXX" >&6
11280 else
11281 echo "$as_me:$LINENO: result: no" >&5
11282 echo "${ECHO_T}no" >&6
11283 fi
11284
11285 test -n "$ac_ct_CXX" && break
11286 done
11287 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11288
11289 CXX=$ac_ct_CXX
11290 fi
11291
11292
11293 # Provide some information about the compiler.
11294 echo "$as_me:$LINENO:" \
11295 "checking for C++ compiler version" >&5
11296 ac_compiler=`set X $ac_compile; echo $2`
11297 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11298 (eval $ac_compiler --version </dev/null >&5) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }
11302 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11303 (eval $ac_compiler -v </dev/null >&5) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }
11307 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11308 (eval $ac_compiler -V </dev/null >&5) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }
11312
11313 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11314 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11315 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324
11325 int
11326 main ()
11327 {
11328 #ifndef __GNUC__
11329 choke me
11330 #endif
11331
11332 ;
11333 return 0;
11334 }
11335 _ACEOF
11336 rm -f conftest.$ac_objext
11337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11338 (eval $ac_compile) 2>conftest.er1
11339 ac_status=$?
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
11345 { ac_try='test -z "$ac_cxx_werror_flag"
11346 || test ! -s conftest.err'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; } &&
11352 { ac_try='test -s conftest.$ac_objext'
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 ac_compiler_gnu=yes
11359 else
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363 ac_compiler_gnu=no
11364 fi
11365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11366 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11367
11368 fi
11369 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11370 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11371 GXX=`test $ac_compiler_gnu = yes && echo yes`
11372 ac_test_CXXFLAGS=${CXXFLAGS+set}
11373 ac_save_CXXFLAGS=$CXXFLAGS
11374 CXXFLAGS="-g"
11375 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11376 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11377 if test "${ac_cv_prog_cxx_g+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386
11387 int
11388 main ()
11389 {
11390
11391 ;
11392 return 0;
11393 }
11394 _ACEOF
11395 rm -f conftest.$ac_objext
11396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11397 (eval $ac_compile) 2>conftest.er1
11398 ac_status=$?
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -z "$ac_cxx_werror_flag"
11405 || test ! -s conftest.err'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; } &&
11411 { ac_try='test -s conftest.$ac_objext'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11417 ac_cv_prog_cxx_g=yes
11418 else
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11421
11422 ac_cv_prog_cxx_g=no
11423 fi
11424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11425 fi
11426 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11427 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11428 if test "$ac_test_CXXFLAGS" = set; then
11429 CXXFLAGS=$ac_save_CXXFLAGS
11430 elif test $ac_cv_prog_cxx_g = yes; then
11431 if test "$GXX" = yes; then
11432 CXXFLAGS="-g -O2"
11433 else
11434 CXXFLAGS="-g"
11435 fi
11436 else
11437 if test "$GXX" = yes; then
11438 CXXFLAGS="-O2"
11439 else
11440 CXXFLAGS=
11441 fi
11442 fi
11443 for ac_declaration in \
11444 '' \
11445 'extern "C" void std::exit (int) throw (); using std::exit;' \
11446 'extern "C" void std::exit (int); using std::exit;' \
11447 'extern "C" void exit (int) throw ();' \
11448 'extern "C" void exit (int);' \
11449 'void exit (int);'
11450 do
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_declaration
11458 #include <stdlib.h>
11459 int
11460 main ()
11461 {
11462 exit (42);
11463 ;
11464 return 0;
11465 }
11466 _ACEOF
11467 rm -f conftest.$ac_objext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469 (eval $ac_compile) 2>conftest.er1
11470 ac_status=$?
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -z "$ac_cxx_werror_flag"
11477 || test ! -s conftest.err'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 :
11490 else
11491 echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494 continue
11495 fi
11496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_declaration
11504 int
11505 main ()
11506 {
11507 exit (42);
11508 ;
11509 return 0;
11510 }
11511 _ACEOF
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -z "$ac_cxx_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest.$ac_objext'
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 break
11535 else
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11538
11539 fi
11540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541 done
11542 rm -f conftest*
11543 if test -n "$ac_declaration"; then
11544 echo '#ifdef __cplusplus' >>confdefs.h
11545 echo $ac_declaration >>confdefs.h
11546 echo '#endif' >>confdefs.h
11547 fi
11548
11549 ac_ext=cc
11550 ac_cpp='$CXXCPP $CPPFLAGS'
11551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11554
11555
11556 ac_ext=c
11557 ac_cpp='$CPP $CPPFLAGS'
11558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11561
11562
11563 if test -n "$ac_tool_prefix"; then
11564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11566 echo "$as_me:$LINENO: checking for $ac_word" >&5
11567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568 if test "${ac_cv_prog_RANLIB+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 else
11571 if test -n "$RANLIB"; then
11572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11573 else
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11576 do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11584 fi
11585 done
11586 done
11587
11588 fi
11589 fi
11590 RANLIB=$ac_cv_prog_RANLIB
11591 if test -n "$RANLIB"; then
11592 echo "$as_me:$LINENO: result: $RANLIB" >&5
11593 echo "${ECHO_T}$RANLIB" >&6
11594 else
11595 echo "$as_me:$LINENO: result: no" >&5
11596 echo "${ECHO_T}no" >&6
11597 fi
11598
11599 fi
11600 if test -z "$ac_cv_prog_RANLIB"; then
11601 ac_ct_RANLIB=$RANLIB
11602 # Extract the first word of "ranlib", so it can be a program name with args.
11603 set dummy ranlib; ac_word=$2
11604 echo "$as_me:$LINENO: checking for $ac_word" >&5
11605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11606 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 else
11609 if test -n "$ac_ct_RANLIB"; then
11610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11611 else
11612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613 for as_dir in $PATH
11614 do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11619 ac_cv_prog_ac_ct_RANLIB="ranlib"
11620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11621 break 2
11622 fi
11623 done
11624 done
11625
11626 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11627 fi
11628 fi
11629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11630 if test -n "$ac_ct_RANLIB"; then
11631 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11632 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11633 else
11634 echo "$as_me:$LINENO: result: no" >&5
11635 echo "${ECHO_T}no" >&6
11636 fi
11637
11638 RANLIB=$ac_ct_RANLIB
11639 else
11640 RANLIB="$ac_cv_prog_RANLIB"
11641 fi
11642
11643
11644 # Extract the first word of "ar", so it can be a program name with args.
11645 set dummy ar; ac_word=$2
11646 echo "$as_me:$LINENO: checking for $ac_word" >&5
11647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11648 if test "${ac_cv_prog_AR+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651 if test -n "$AR"; then
11652 ac_cv_prog_AR="$AR" # Let the user override the test.
11653 else
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11656 do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_prog_AR="ar"
11662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11664 fi
11665 done
11666 done
11667
11668 fi
11669 fi
11670 AR=$ac_cv_prog_AR
11671 if test -n "$AR"; then
11672 echo "$as_me:$LINENO: result: $AR" >&5
11673 echo "${ECHO_T}$AR" >&6
11674 else
11675 echo "$as_me:$LINENO: result: no" >&5
11676 echo "${ECHO_T}no" >&6
11677 fi
11678
11679 if test "x$AR" = "x" ; then
11680 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11681 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11682 { (exit 1); exit 1; }; }
11683 fi
11684
11685 # Find a good install program. We prefer a C program (faster),
11686 # so one script is as good as another. But avoid the broken or
11687 # incompatible versions:
11688 # SysV /etc/install, /usr/sbin/install
11689 # SunOS /usr/etc/install
11690 # IRIX /sbin/install
11691 # AIX /bin/install
11692 # AmigaOS /C/install, which installs bootblocks on floppy discs
11693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11696 # OS/2's system install, which has a completely different semantic
11697 # ./install, which can be erroneously created by make from ./install.sh.
11698 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11699 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11700 if test -z "$INSTALL"; then
11701 if test "${ac_cv_path_install+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 # Account for people who put trailing slashes in PATH elements.
11710 case $as_dir/ in
11711 ./ | .// | /cC/* | \
11712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11713 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11714 /usr/ucb/* ) ;;
11715 *)
11716 # OSF1 and SCO ODT 3.0 have their own names for install.
11717 # Don't use installbsd from OSF since it installs stuff as root
11718 # by default.
11719 for ac_prog in ginstall scoinst install; do
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11722 if test $ac_prog = install &&
11723 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11724 # AIX install. It has an incompatible calling convention.
11725 :
11726 elif test $ac_prog = install &&
11727 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11728 # program-specific install script used by HP pwplus--don't use.
11729 :
11730 else
11731 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11732 break 3
11733 fi
11734 fi
11735 done
11736 done
11737 ;;
11738 esac
11739 done
11740
11741
11742 fi
11743 if test "${ac_cv_path_install+set}" = set; then
11744 INSTALL=$ac_cv_path_install
11745 else
11746 # As a last resort, use the slow shell script. We don't cache a
11747 # path for INSTALL within a source directory, because that will
11748 # break other packages using the cache if that directory is
11749 # removed, or if the path is relative.
11750 INSTALL=$ac_install_sh
11751 fi
11752 fi
11753 echo "$as_me:$LINENO: result: $INSTALL" >&5
11754 echo "${ECHO_T}$INSTALL" >&6
11755
11756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11757 # It thinks the first close brace ends the variable substitution.
11758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11759
11760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11761
11762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11763
11764
11765 case ${INSTALL} in
11766 /* ) # Absolute
11767 ;;
11768 ?:* ) # Drive letter, considered as absolute.
11769 ;;
11770 *)
11771 INSTALL=`pwd`/${INSTALL} ;;
11772 esac
11773
11774 case ${host} in
11775 *-hp-hpux* )
11776 INSTALL_DIR="mkdir"
11777 ;;
11778
11779 *) INSTALL_DIR="$INSTALL -d"
11780 ;;
11781 esac
11782
11783
11784 case "${host}" in
11785
11786 powerpc-*-darwin* )
11787 INSTALL_PROGRAM="cp -fp"
11788 INSTALL_DATA="cp -fp"
11789 ;;
11790 *)
11791 ;;
11792 esac
11793
11794 # Extract the first word of "strip", so it can be a program name with args.
11795 set dummy strip; ac_word=$2
11796 echo "$as_me:$LINENO: checking for $ac_word" >&5
11797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11798 if test "${ac_cv_prog_STRIP+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 else
11801 if test -n "$STRIP"; then
11802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11803 else
11804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805 for as_dir in $PATH
11806 do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_STRIP="strip"
11812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11814 fi
11815 done
11816 done
11817
11818 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11819 fi
11820 fi
11821 STRIP=$ac_cv_prog_STRIP
11822 if test -n "$STRIP"; then
11823 echo "$as_me:$LINENO: result: $STRIP" >&5
11824 echo "${ECHO_T}$STRIP" >&6
11825 else
11826 echo "$as_me:$LINENO: result: no" >&5
11827 echo "${ECHO_T}no" >&6
11828 fi
11829
11830
11831 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11832 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11833 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 else
11836
11837 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11838 egrep -s GNU > /dev/null); then
11839 wx_cv_prog_makeisgnu="yes"
11840 else
11841 wx_cv_prog_makeisgnu="no"
11842 fi
11843
11844 fi
11845 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11846 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11847
11848 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11849 IF_GNU_MAKE=""
11850 else
11851 IF_GNU_MAKE="#"
11852 fi
11853
11854
11855
11856 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11857 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11858 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11859 if test "${wx_cv_prog_makevpath+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862
11863 cat - << EOF > confMake
11864 check : file
11865 cp \$? \$@
11866 cp \$? final_file
11867 EOF
11868
11869 if test ! -d sub ; then
11870 mkdir sub
11871 fi
11872 echo dummy > sub/file
11873 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11874 RESULT=$?
11875 rm -f sub/file check final_file confMake
11876 rmdir sub
11877 if test "$RESULT" = 0; then
11878 wx_cv_prog_makevpath="yes"
11879 else
11880 wx_cv_prog_makevpath="no"
11881 fi
11882
11883 fi
11884 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11885 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11886
11887 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11888 { { echo "$as_me:$LINENO: error:
11889 You need a make-utility that is able to use the variable
11890 VPATH correctly.
11891 If your version of make does not support VPATH correctly,
11892 please install GNU-make (possibly as gmake), and start
11893 configure with the following command:
11894 export MAKE=gmake; ./configure for sh-type shells
11895 setenv MAKE gmake; ./configure for csh-type shells
11896 Also please do remember to use gmake in this case every time
11897 you are trying to compile.
11898 " >&5
11899 echo "$as_me: error:
11900 You need a make-utility that is able to use the variable
11901 VPATH correctly.
11902 If your version of make does not support VPATH correctly,
11903 please install GNU-make (possibly as gmake), and start
11904 configure with the following command:
11905 export MAKE=gmake; ./configure for sh-type shells
11906 setenv MAKE gmake; ./configure for csh-type shells
11907 Also please do remember to use gmake in this case every time
11908 you are trying to compile.
11909 " >&2;}
11910 { (exit 1); exit 1; }; }
11911 fi fi
11912 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11913 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11914 LN_S=$as_ln_s
11915 if test "$LN_S" = "ln -s"; then
11916 echo "$as_me:$LINENO: result: yes" >&5
11917 echo "${ECHO_T}yes" >&6
11918 else
11919 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11920 echo "${ECHO_T}no, using $LN_S" >&6
11921 fi
11922
11923
11924 case "${host}" in
11925 *-pc-os2_emx | *-pc-os2-emx )
11926 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11927 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11928 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11929 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-lcExt $LIBS"
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h. */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940
11941 /* Override any gcc2 internal prototype to avoid an error. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 /* We use char because int might match the return type of a gcc2
11946 builtin and then its argument prototype would still apply. */
11947 char drand48 ();
11948 int
11949 main ()
11950 {
11951 drand48 ();
11952 ;
11953 return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11958 (eval $ac_link) 2>conftest.er1
11959 ac_status=$?
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag"
11966 || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_lib_cExt_drand48=yes
11979 else
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11982
11983 ac_cv_lib_cExt_drand48=no
11984 fi
11985 rm -f conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11990 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11991 if test $ac_cv_lib_cExt_drand48 = yes; then
11992 LIBS="$LIBS -lcExt"
11993 fi
11994
11995 else
11996 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11997 fi
11998 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11999 echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
12000 if test "${wx_cv_gcc3+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003
12004 cat >conftest.$ac_ext <<_ACEOF
12005 /* confdefs.h. */
12006 _ACEOF
12007 cat confdefs.h >>conftest.$ac_ext
12008 cat >>conftest.$ac_ext <<_ACEOF
12009 /* end confdefs.h. */
12010
12011 int
12012 main ()
12013 {
12014
12015 #if (__GNUC__ < 3)
12016 #error old gcc
12017 #endif
12018
12019 ;
12020 return 0;
12021 }
12022 _ACEOF
12023 rm -f conftest.$ac_objext
12024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12025 (eval $ac_compile) 2>conftest.er1
12026 ac_status=$?
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
12032 { ac_try='test -z "$ac_c_werror_flag"
12033 || test ! -s conftest.err'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest.$ac_objext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045
12046 wx_cv_gcc3=yes
12047
12048 else
12049 echo "$as_me: failed program was:" >&5
12050 sed 's/^/| /' conftest.$ac_ext >&5
12051
12052
12053 wx_cv_gcc3=no
12054
12055
12056 fi
12057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12058
12059 fi
12060 echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12061 echo "${ECHO_T}$wx_cv_gcc3" >&6
12062 if test "$wx_cv_gcc3" = "no"; then
12063 LIBS="$LIBS -lstdcpp"
12064 else
12065 LIBS="$LIBS -lstdcxx"
12066 fi
12067 ;;
12068 esac
12069
12070
12071 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12072 echo "$as_me:$LINENO: checking for strings.h" >&5
12073 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12074 if test "${ac_cv_header_strings_h+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076 else
12077 ac_cv_header_strings_h=no
12078 fi
12079 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12080 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12081 if test "$ac_cv_header_strings_h" = "no"; then
12082 echo "$as_me:$LINENO: result: forced no into cache" >&5
12083 echo "${ECHO_T}forced no into cache" >&6
12084 else
12085 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12086 echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12087 fi
12088 fi
12089 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12091 if test "${ac_cv_header_stdc+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094 cat >conftest.$ac_ext <<_ACEOF
12095 /* confdefs.h. */
12096 _ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 #include <stdlib.h>
12101 #include <stdarg.h>
12102 #include <string.h>
12103 #include <float.h>
12104
12105 int
12106 main ()
12107 {
12108
12109 ;
12110 return 0;
12111 }
12112 _ACEOF
12113 rm -f conftest.$ac_objext
12114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12115 (eval $ac_compile) 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_header_stdc=yes
12136 else
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12139
12140 ac_cv_header_stdc=no
12141 fi
12142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12143
12144 if test $ac_cv_header_stdc = yes; then
12145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12146 cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h. */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 #include <string.h>
12153
12154 _ACEOF
12155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12156 $EGREP "memchr" >/dev/null 2>&1; then
12157 :
12158 else
12159 ac_cv_header_stdc=no
12160 fi
12161 rm -f conftest*
12162
12163 fi
12164
12165 if test $ac_cv_header_stdc = yes; then
12166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12167 cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h. */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h. */
12173 #include <stdlib.h>
12174
12175 _ACEOF
12176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12177 $EGREP "free" >/dev/null 2>&1; then
12178 :
12179 else
12180 ac_cv_header_stdc=no
12181 fi
12182 rm -f conftest*
12183
12184 fi
12185
12186 if test $ac_cv_header_stdc = yes; then
12187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12188 if test "$cross_compiling" = yes; then
12189 :
12190 else
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 #include <ctype.h>
12198 #if ((' ' & 0x0FF) == 0x020)
12199 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12200 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12201 #else
12202 # define ISLOWER(c) \
12203 (('a' <= (c) && (c) <= 'i') \
12204 || ('j' <= (c) && (c) <= 'r') \
12205 || ('s' <= (c) && (c) <= 'z'))
12206 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12207 #endif
12208
12209 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12210 int
12211 main ()
12212 {
12213 int i;
12214 for (i = 0; i < 256; i++)
12215 if (XOR (islower (i), ISLOWER (i))
12216 || toupper (i) != TOUPPER (i))
12217 exit(2);
12218 exit (0);
12219 }
12220 _ACEOF
12221 rm -f conftest$ac_exeext
12222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 :
12233 else
12234 echo "$as_me: program exited with status $ac_status" >&5
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12237
12238 ( exit $ac_status )
12239 ac_cv_header_stdc=no
12240 fi
12241 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12242 fi
12243 fi
12244 fi
12245 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12246 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12247 if test $ac_cv_header_stdc = yes; then
12248
12249 cat >>confdefs.h <<\_ACEOF
12250 #define STDC_HEADERS 1
12251 _ACEOF
12252
12253 fi
12254
12255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12266 inttypes.h stdint.h unistd.h
12267 do
12268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269 echo "$as_me:$LINENO: checking for $ac_header" >&5
12270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
12281
12282 #include <$ac_header>
12283 _ACEOF
12284 rm -f conftest.$ac_objext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12286 (eval $ac_compile) 2>conftest.er1
12287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try='test -z "$ac_c_werror_flag"
12294 || test ! -s conftest.err'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest.$ac_objext'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 eval "$as_ac_Header=yes"
12307 else
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12310
12311 eval "$as_ac_Header=no"
12312 fi
12313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12314 fi
12315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12318 cat >>confdefs.h <<_ACEOF
12319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12320 _ACEOF
12321
12322 fi
12323
12324 done
12325
12326
12327
12328 for ac_header in strings.h
12329 do
12330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo "$as_me:$LINENO: checking for $ac_header" >&5
12333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 fi
12337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12338 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12339 else
12340 # Is the header compilable?
12341 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12343 cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h. */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <$ac_header>
12351 _ACEOF
12352 rm -f conftest.$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12375 else
12376 echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.$ac_ext >&5
12378
12379 ac_header_compiler=no
12380 fi
12381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6
12384
12385 # Is the header present?
12386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h. */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 #include <$ac_header>
12395 _ACEOF
12396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12407 else
12408 ac_cpp_err=
12409 fi
12410 else
12411 ac_cpp_err=yes
12412 fi
12413 if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
12415 else
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_header_preproc=no
12420 fi
12421 rm -f conftest.err conftest.$ac_ext
12422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423 echo "${ECHO_T}$ac_header_preproc" >&6
12424
12425 # So? What about this header?
12426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 yes:no: )
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
12433 ;;
12434 no:yes:* )
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12447 (
12448 cat <<\_ASBOX
12449 ## ----------------------------------------- ##
12450 ## Report this to wx-dev@lists.wxwindows.org ##
12451 ## ----------------------------------------- ##
12452 _ASBOX
12453 ) |
12454 sed "s/^/$as_me: WARNING: /" >&2
12455 ;;
12456 esac
12457 echo "$as_me:$LINENO: checking for $ac_header" >&5
12458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462 eval "$as_ac_Header=\$ac_header_preproc"
12463 fi
12464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12466
12467 fi
12468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12471 _ACEOF
12472
12473 fi
12474
12475 done
12476
12477
12478
12479 for ac_header in stdlib.h
12480 do
12481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo "$as_me:$LINENO: checking for $ac_header" >&5
12484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 fi
12488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12490 else
12491 # Is the header compilable?
12492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12494 cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h. */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h. */
12500 $ac_includes_default
12501 #include <$ac_header>
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>conftest.er1
12506 ac_status=$?
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest.$ac_objext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_header_compiler=yes
12526 else
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12529
12530 ac_header_compiler=no
12531 fi
12532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12534 echo "${ECHO_T}$ac_header_compiler" >&6
12535
12536 # Is the header present?
12537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12539 cat >conftest.$ac_ext <<_ACEOF
12540 /* confdefs.h. */
12541 _ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12545 #include <$ac_header>
12546 _ACEOF
12547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } >/dev/null; then
12555 if test -s conftest.err; then
12556 ac_cpp_err=$ac_c_preproc_warn_flag
12557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12558 else
12559 ac_cpp_err=
12560 fi
12561 else
12562 ac_cpp_err=yes
12563 fi
12564 if test -z "$ac_cpp_err"; then
12565 ac_header_preproc=yes
12566 else
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12569
12570 ac_header_preproc=no
12571 fi
12572 rm -f conftest.err conftest.$ac_ext
12573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12574 echo "${ECHO_T}$ac_header_preproc" >&6
12575
12576 # So? What about this header?
12577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12578 yes:no: )
12579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12583 ac_header_preproc=yes
12584 ;;
12585 no:yes:* )
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12598 (
12599 cat <<\_ASBOX
12600 ## ----------------------------------------- ##
12601 ## Report this to wx-dev@lists.wxwindows.org ##
12602 ## ----------------------------------------- ##
12603 _ASBOX
12604 ) |
12605 sed "s/^/$as_me: WARNING: /" >&2
12606 ;;
12607 esac
12608 echo "$as_me:$LINENO: checking for $ac_header" >&5
12609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613 eval "$as_ac_Header=\$ac_header_preproc"
12614 fi
12615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12617
12618 fi
12619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12620 cat >>confdefs.h <<_ACEOF
12621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12622 _ACEOF
12623
12624 fi
12625
12626 done
12627
12628
12629 for ac_header in malloc.h
12630 do
12631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12633 echo "$as_me:$LINENO: checking for $ac_header" >&5
12634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637 fi
12638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12640 else
12641 # Is the header compilable?
12642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12644 cat >conftest.$ac_ext <<_ACEOF
12645 /* confdefs.h. */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650 $ac_includes_default
12651 #include <$ac_header>
12652 _ACEOF
12653 rm -f conftest.$ac_objext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12655 (eval $ac_compile) 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try='test -z "$ac_c_werror_flag"
12663 || test ! -s conftest.err'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_header_compiler=yes
12676 else
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 ac_header_compiler=no
12681 fi
12682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684 echo "${ECHO_T}$ac_header_compiler" >&6
12685
12686 # Is the header present?
12687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12689 cat >conftest.$ac_ext <<_ACEOF
12690 /* confdefs.h. */
12691 _ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 #include <$ac_header>
12696 _ACEOF
12697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } >/dev/null; then
12705 if test -s conftest.err; then
12706 ac_cpp_err=$ac_c_preproc_warn_flag
12707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12708 else
12709 ac_cpp_err=
12710 fi
12711 else
12712 ac_cpp_err=yes
12713 fi
12714 if test -z "$ac_cpp_err"; then
12715 ac_header_preproc=yes
12716 else
12717 echo "$as_me: failed program was:" >&5
12718 sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_header_preproc=no
12721 fi
12722 rm -f conftest.err conftest.$ac_ext
12723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724 echo "${ECHO_T}$ac_header_preproc" >&6
12725
12726 # So? What about this header?
12727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12728 yes:no: )
12729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12733 ac_header_preproc=yes
12734 ;;
12735 no:yes:* )
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12748 (
12749 cat <<\_ASBOX
12750 ## ----------------------------------------- ##
12751 ## Report this to wx-dev@lists.wxwindows.org ##
12752 ## ----------------------------------------- ##
12753 _ASBOX
12754 ) |
12755 sed "s/^/$as_me: WARNING: /" >&2
12756 ;;
12757 esac
12758 echo "$as_me:$LINENO: checking for $ac_header" >&5
12759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763 eval "$as_ac_Header=\$ac_header_preproc"
12764 fi
12765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12767
12768 fi
12769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12772 _ACEOF
12773
12774 fi
12775
12776 done
12777
12778
12779 for ac_header in unistd.h
12780 do
12781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo "$as_me:$LINENO: checking for $ac_header" >&5
12784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 fi
12788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12789 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12790 else
12791 # Is the header compilable?
12792 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12794 cat >conftest.$ac_ext <<_ACEOF
12795 /* confdefs.h. */
12796 _ACEOF
12797 cat confdefs.h >>conftest.$ac_ext
12798 cat >>conftest.$ac_ext <<_ACEOF
12799 /* end confdefs.h. */
12800 $ac_includes_default
12801 #include <$ac_header>
12802 _ACEOF
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>conftest.er1
12806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_header_compiler=yes
12826 else
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12829
12830 ac_header_compiler=no
12831 fi
12832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12833 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12834 echo "${ECHO_T}$ac_header_compiler" >&6
12835
12836 # Is the header present?
12837 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h. */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845 #include <$ac_header>
12846 _ACEOF
12847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } >/dev/null; then
12855 if test -s conftest.err; then
12856 ac_cpp_err=$ac_c_preproc_warn_flag
12857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12858 else
12859 ac_cpp_err=
12860 fi
12861 else
12862 ac_cpp_err=yes
12863 fi
12864 if test -z "$ac_cpp_err"; then
12865 ac_header_preproc=yes
12866 else
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 ac_header_preproc=no
12871 fi
12872 rm -f conftest.err conftest.$ac_ext
12873 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12874 echo "${ECHO_T}$ac_header_preproc" >&6
12875
12876 # So? What about this header?
12877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12878 yes:no: )
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12883 ac_header_preproc=yes
12884 ;;
12885 no:yes:* )
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12898 (
12899 cat <<\_ASBOX
12900 ## ----------------------------------------- ##
12901 ## Report this to wx-dev@lists.wxwindows.org ##
12902 ## ----------------------------------------- ##
12903 _ASBOX
12904 ) |
12905 sed "s/^/$as_me: WARNING: /" >&2
12906 ;;
12907 esac
12908 echo "$as_me:$LINENO: checking for $ac_header" >&5
12909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 else
12913 eval "$as_ac_Header=\$ac_header_preproc"
12914 fi
12915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12917
12918 fi
12919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12920 cat >>confdefs.h <<_ACEOF
12921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12922 _ACEOF
12923
12924 fi
12925
12926 done
12927
12928
12929 for ac_header in wchar.h
12930 do
12931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933 echo "$as_me:$LINENO: checking for $ac_header" >&5
12934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937 fi
12938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12940 else
12941 # Is the header compilable?
12942 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12943 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950 $ac_includes_default
12951 #include <$ac_header>
12952 _ACEOF
12953 rm -f conftest.$ac_objext
12954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12955 (eval $ac_compile) 2>conftest.er1
12956 ac_status=$?
12957 grep -v '^ *+' conftest.er1 >conftest.err
12958 rm -f conftest.er1
12959 cat conftest.err >&5
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } &&
12962 { ac_try='test -z "$ac_c_werror_flag"
12963 || test ! -s conftest.err'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; } &&
12969 { ac_try='test -s conftest.$ac_objext'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_header_compiler=yes
12976 else
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12979
12980 ac_header_compiler=no
12981 fi
12982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12984 echo "${ECHO_T}$ac_header_compiler" >&6
12985
12986 # Is the header present?
12987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12989 cat >conftest.$ac_ext <<_ACEOF
12990 /* confdefs.h. */
12991 _ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995 #include <$ac_header>
12996 _ACEOF
12997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } >/dev/null; then
13005 if test -s conftest.err; then
13006 ac_cpp_err=$ac_c_preproc_warn_flag
13007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13008 else
13009 ac_cpp_err=
13010 fi
13011 else
13012 ac_cpp_err=yes
13013 fi
13014 if test -z "$ac_cpp_err"; then
13015 ac_header_preproc=yes
13016 else
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13019
13020 ac_header_preproc=no
13021 fi
13022 rm -f conftest.err conftest.$ac_ext
13023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13024 echo "${ECHO_T}$ac_header_preproc" >&6
13025
13026 # So? What about this header?
13027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13028 yes:no: )
13029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13033 ac_header_preproc=yes
13034 ;;
13035 no:yes:* )
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13048 (
13049 cat <<\_ASBOX
13050 ## ----------------------------------------- ##
13051 ## Report this to wx-dev@lists.wxwindows.org ##
13052 ## ----------------------------------------- ##
13053 _ASBOX
13054 ) |
13055 sed "s/^/$as_me: WARNING: /" >&2
13056 ;;
13057 esac
13058 echo "$as_me:$LINENO: checking for $ac_header" >&5
13059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 eval "$as_ac_Header=\$ac_header_preproc"
13064 fi
13065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13067
13068 fi
13069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13072 _ACEOF
13073
13074 fi
13075
13076 done
13077
13078
13079 if test "$ac_cv_header_wchar_h" != "yes"; then
13080
13081 for ac_header in wcstr.h
13082 do
13083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085 echo "$as_me:$LINENO: checking for $ac_header" >&5
13086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 fi
13090 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13091 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13092 else
13093 # Is the header compilable?
13094 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13096 cat >conftest.$ac_ext <<_ACEOF
13097 /* confdefs.h. */
13098 _ACEOF
13099 cat confdefs.h >>conftest.$ac_ext
13100 cat >>conftest.$ac_ext <<_ACEOF
13101 /* end confdefs.h. */
13102 $ac_includes_default
13103 #include <$ac_header>
13104 _ACEOF
13105 rm -f conftest.$ac_objext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13107 (eval $ac_compile) 2>conftest.er1
13108 ac_status=$?
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try='test -z "$ac_c_werror_flag"
13115 || test ! -s conftest.err'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest.$ac_objext'
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_header_compiler=yes
13128 else
13129 echo "$as_me: failed program was:" >&5
13130 sed 's/^/| /' conftest.$ac_ext >&5
13131
13132 ac_header_compiler=no
13133 fi
13134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13135 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13136 echo "${ECHO_T}$ac_header_compiler" >&6
13137
13138 # Is the header present?
13139 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <$ac_header>
13148 _ACEOF
13149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } >/dev/null; then
13157 if test -s conftest.err; then
13158 ac_cpp_err=$ac_c_preproc_warn_flag
13159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13160 else
13161 ac_cpp_err=
13162 fi
13163 else
13164 ac_cpp_err=yes
13165 fi
13166 if test -z "$ac_cpp_err"; then
13167 ac_header_preproc=yes
13168 else
13169 echo "$as_me: failed program was:" >&5
13170 sed 's/^/| /' conftest.$ac_ext >&5
13171
13172 ac_header_preproc=no
13173 fi
13174 rm -f conftest.err conftest.$ac_ext
13175 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13176 echo "${ECHO_T}$ac_header_preproc" >&6
13177
13178 # So? What about this header?
13179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13180 yes:no: )
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13185 ac_header_preproc=yes
13186 ;;
13187 no:yes:* )
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13200 (
13201 cat <<\_ASBOX
13202 ## ----------------------------------------- ##
13203 ## Report this to wx-dev@lists.wxwindows.org ##
13204 ## ----------------------------------------- ##
13205 _ASBOX
13206 ) |
13207 sed "s/^/$as_me: WARNING: /" >&2
13208 ;;
13209 esac
13210 echo "$as_me:$LINENO: checking for $ac_header" >&5
13211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 else
13215 eval "$as_ac_Header=\$ac_header_preproc"
13216 fi
13217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13219
13220 fi
13221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13222 cat >>confdefs.h <<_ACEOF
13223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13224 _ACEOF
13225
13226 fi
13227
13228 done
13229
13230 fi
13231
13232
13233 for ac_header in fnmatch.h
13234 do
13235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237 echo "$as_me:$LINENO: checking for $ac_header" >&5
13238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 fi
13242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13244 else
13245 # Is the header compilable?
13246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h. */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13254 $ac_includes_default
13255 #include <$ac_header>
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13259 (eval $ac_compile) 2>conftest.er1
13260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag"
13267 || test ! -s conftest.err'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_header_compiler=yes
13280 else
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_header_compiler=no
13285 fi
13286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13288 echo "${ECHO_T}$ac_header_compiler" >&6
13289
13290 # Is the header present?
13291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h. */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 #include <$ac_header>
13300 _ACEOF
13301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_c_preproc_warn_flag
13311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13312 else
13313 ac_cpp_err=
13314 fi
13315 else
13316 ac_cpp_err=yes
13317 fi
13318 if test -z "$ac_cpp_err"; then
13319 ac_header_preproc=yes
13320 else
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_header_preproc=no
13325 fi
13326 rm -f conftest.err conftest.$ac_ext
13327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328 echo "${ECHO_T}$ac_header_preproc" >&6
13329
13330 # So? What about this header?
13331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13332 yes:no: )
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13337 ac_header_preproc=yes
13338 ;;
13339 no:yes:* )
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13352 (
13353 cat <<\_ASBOX
13354 ## ----------------------------------------- ##
13355 ## Report this to wx-dev@lists.wxwindows.org ##
13356 ## ----------------------------------------- ##
13357 _ASBOX
13358 ) |
13359 sed "s/^/$as_me: WARNING: /" >&2
13360 ;;
13361 esac
13362 echo "$as_me:$LINENO: checking for $ac_header" >&5
13363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367 eval "$as_ac_Header=\$ac_header_preproc"
13368 fi
13369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13371
13372 fi
13373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376 _ACEOF
13377
13378 fi
13379
13380 done
13381
13382
13383 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13384
13385 for ac_func in fnmatch
13386 do
13387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13388 echo "$as_me:$LINENO: checking for $ac_func" >&5
13389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13390 if eval "test \"\${$as_ac_var+set}\" = set"; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392 else
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h. */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h. */
13399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13401 #define $ac_func innocuous_$ac_func
13402
13403 /* System header to define __stub macros and hopefully few prototypes,
13404 which can conflict with char $ac_func (); below.
13405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13406 <limits.h> exists even on freestanding compilers. */
13407
13408 #ifdef __STDC__
13409 # include <limits.h>
13410 #else
13411 # include <assert.h>
13412 #endif
13413
13414 #undef $ac_func
13415
13416 /* Override any gcc2 internal prototype to avoid an error. */
13417 #ifdef __cplusplus
13418 extern "C"
13419 {
13420 #endif
13421 /* We use char because int might match the return type of a gcc2
13422 builtin and then its argument prototype would still apply. */
13423 char $ac_func ();
13424 /* The GNU C library defines this for functions which it implements
13425 to always fail with ENOSYS. Some functions are actually named
13426 something starting with __ and the normal name is an alias. */
13427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13428 choke me
13429 #else
13430 char (*f) () = $ac_func;
13431 #endif
13432 #ifdef __cplusplus
13433 }
13434 #endif
13435
13436 int
13437 main ()
13438 {
13439 return f != $ac_func;
13440 ;
13441 return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest.$ac_objext conftest$ac_exeext
13445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13446 (eval $ac_link) 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag"
13454 || test ! -s conftest.err'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest$ac_exeext'
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 eval "$as_ac_var=yes"
13467 else
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 eval "$as_ac_var=no"
13472 fi
13473 rm -f conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475 fi
13476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13478 if test `eval echo '${'$as_ac_var'}'` = yes; then
13479 cat >>confdefs.h <<_ACEOF
13480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13481 _ACEOF
13482
13483 fi
13484 done
13485
13486 fi
13487
13488
13489 for ac_header in langinfo.h
13490 do
13491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13492 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13493 echo "$as_me:$LINENO: checking for $ac_header" >&5
13494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 fi
13498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13499 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13500 else
13501 # Is the header compilable?
13502 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510 $ac_includes_default
13511 #include <$ac_header>
13512 _ACEOF
13513 rm -f conftest.$ac_objext
13514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13515 (eval $ac_compile) 2>conftest.er1
13516 ac_status=$?
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
13522 { ac_try='test -z "$ac_c_werror_flag"
13523 || test ! -s conftest.err'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; } &&
13529 { ac_try='test -s conftest.$ac_objext'
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_header_compiler=yes
13536 else
13537 echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 ac_header_compiler=no
13541 fi
13542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13543 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13544 echo "${ECHO_T}$ac_header_compiler" >&6
13545
13546 # Is the header present?
13547 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13548 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13549 cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h. */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h. */
13555 #include <$ac_header>
13556 _ACEOF
13557 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } >/dev/null; then
13565 if test -s conftest.err; then
13566 ac_cpp_err=$ac_c_preproc_warn_flag
13567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13568 else
13569 ac_cpp_err=
13570 fi
13571 else
13572 ac_cpp_err=yes
13573 fi
13574 if test -z "$ac_cpp_err"; then
13575 ac_header_preproc=yes
13576 else
13577 echo "$as_me: failed program was:" >&5
13578 sed 's/^/| /' conftest.$ac_ext >&5
13579
13580 ac_header_preproc=no
13581 fi
13582 rm -f conftest.err conftest.$ac_ext
13583 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13584 echo "${ECHO_T}$ac_header_preproc" >&6
13585
13586 # So? What about this header?
13587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13588 yes:no: )
13589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13593 ac_header_preproc=yes
13594 ;;
13595 no:yes:* )
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13608 (
13609 cat <<\_ASBOX
13610 ## ----------------------------------------- ##
13611 ## Report this to wx-dev@lists.wxwindows.org ##
13612 ## ----------------------------------------- ##
13613 _ASBOX
13614 ) |
13615 sed "s/^/$as_me: WARNING: /" >&2
13616 ;;
13617 esac
13618 echo "$as_me:$LINENO: checking for $ac_header" >&5
13619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 else
13623 eval "$as_ac_Header=\$ac_header_preproc"
13624 fi
13625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13626 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13627
13628 fi
13629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13630 cat >>confdefs.h <<_ACEOF
13631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13632 _ACEOF
13633
13634 fi
13635
13636 done
13637
13638
13639 case "${host}" in
13640 *-pc-os2_emx | *-pc-os2-emx )
13641 if test $ac_cv_header_langinfo_h = "yes"; then
13642 LIBS="$LIBS -lintl"
13643 fi
13644 ;;
13645 esac
13646
13647 if test "$wxUSE_GUI" = "yes"; then
13648 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13649
13650 for ac_header in X11/Xlib.h
13651 do
13652 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13654 echo "$as_me:$LINENO: checking for $ac_header" >&5
13655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13656 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 fi
13659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13660 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13661 else
13662 # Is the header compilable?
13663 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h. */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 $ac_includes_default
13672 #include <$ac_header>
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13676 (eval $ac_compile) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_header_compiler=yes
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 ac_header_compiler=no
13702 fi
13703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13705 echo "${ECHO_T}$ac_header_compiler" >&6
13706
13707 # Is the header present?
13708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13710 cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h. */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h. */
13716 #include <$ac_header>
13717 _ACEOF
13718 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev/null; then
13726 if test -s conftest.err; then
13727 ac_cpp_err=$ac_c_preproc_warn_flag
13728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13729 else
13730 ac_cpp_err=
13731 fi
13732 else
13733 ac_cpp_err=yes
13734 fi
13735 if test -z "$ac_cpp_err"; then
13736 ac_header_preproc=yes
13737 else
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 ac_header_preproc=no
13742 fi
13743 rm -f conftest.err conftest.$ac_ext
13744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13745 echo "${ECHO_T}$ac_header_preproc" >&6
13746
13747 # So? What about this header?
13748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13749 yes:no: )
13750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13754 ac_header_preproc=yes
13755 ;;
13756 no:yes:* )
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13769 (
13770 cat <<\_ASBOX
13771 ## ----------------------------------------- ##
13772 ## Report this to wx-dev@lists.wxwindows.org ##
13773 ## ----------------------------------------- ##
13774 _ASBOX
13775 ) |
13776 sed "s/^/$as_me: WARNING: /" >&2
13777 ;;
13778 esac
13779 echo "$as_me:$LINENO: checking for $ac_header" >&5
13780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784 eval "$as_ac_Header=\$ac_header_preproc"
13785 fi
13786 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13787 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13788
13789 fi
13790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13791 cat >>confdefs.h <<_ACEOF
13792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13793 _ACEOF
13794
13795 fi
13796
13797 done
13798
13799
13800 for ac_header in X11/XKBlib.h
13801 do
13802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13803 echo "$as_me:$LINENO: checking for $ac_header" >&5
13804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807 else
13808 cat >conftest.$ac_ext <<_ACEOF
13809 /* confdefs.h. */
13810 _ACEOF
13811 cat confdefs.h >>conftest.$ac_ext
13812 cat >>conftest.$ac_ext <<_ACEOF
13813 /* end confdefs.h. */
13814
13815 #if HAVE_X11_XLIB_H
13816 #include <X11/Xlib.h>
13817 #endif
13818
13819
13820 #include <$ac_header>
13821 _ACEOF
13822 rm -f conftest.$ac_objext
13823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13824 (eval $ac_compile) 2>conftest.er1
13825 ac_status=$?
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
13831 { ac_try='test -z "$ac_c_werror_flag"
13832 || test ! -s conftest.err'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; } &&
13838 { ac_try='test -s conftest.$ac_objext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 eval "$as_ac_Header=yes"
13845 else
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13848
13849 eval "$as_ac_Header=no"
13850 fi
13851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13852 fi
13853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13856 cat >>confdefs.h <<_ACEOF
13857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858 _ACEOF
13859
13860 fi
13861
13862 done
13863
13864 fi
13865 fi
13866
13867
13868 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13869 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13870 if test "${ac_cv_c_const+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 else
13873 cat >conftest.$ac_ext <<_ACEOF
13874 /* confdefs.h. */
13875 _ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879
13880 int
13881 main ()
13882 {
13883 /* FIXME: Include the comments suggested by Paul. */
13884 #ifndef __cplusplus
13885 /* Ultrix mips cc rejects this. */
13886 typedef int charset[2];
13887 const charset x;
13888 /* SunOS 4.1.1 cc rejects this. */
13889 char const *const *ccp;
13890 char **p;
13891 /* NEC SVR4.0.2 mips cc rejects this. */
13892 struct point {int x, y;};
13893 static struct point const zero = {0,0};
13894 /* AIX XL C 1.02.0.0 rejects this.
13895 It does not let you subtract one const X* pointer from another in
13896 an arm of an if-expression whose if-part is not a constant
13897 expression */
13898 const char *g = "string";
13899 ccp = &g + (g ? g-g : 0);
13900 /* HPUX 7.0 cc rejects these. */
13901 ++ccp;
13902 p = (char**) ccp;
13903 ccp = (char const *const *) p;
13904 { /* SCO 3.2v4 cc rejects this. */
13905 char *t;
13906 char const *s = 0 ? (char *) 0 : (char const *) 0;
13907
13908 *t++ = 0;
13909 }
13910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13911 int x[] = {25, 17};
13912 const int *foo = &x[0];
13913 ++foo;
13914 }
13915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13916 typedef const int *iptr;
13917 iptr p = 0;
13918 ++p;
13919 }
13920 { /* AIX XL C 1.02.0.0 rejects this saying
13921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13922 struct s { int j; const int *ap[3]; };
13923 struct s *b; b->j = 5;
13924 }
13925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13926 const int foo = 10;
13927 }
13928 #endif
13929
13930 ;
13931 return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>conftest.er1
13937 ac_status=$?
13938 grep -v '^ *+' conftest.er1 >conftest.err
13939 rm -f conftest.er1
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag"
13944 || test ! -s conftest.err'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_cv_c_const=yes
13957 else
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961 ac_cv_c_const=no
13962 fi
13963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13964 fi
13965 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13966 echo "${ECHO_T}$ac_cv_c_const" >&6
13967 if test $ac_cv_c_const = no; then
13968
13969 cat >>confdefs.h <<\_ACEOF
13970 #define const
13971 _ACEOF
13972
13973 fi
13974
13975 echo "$as_me:$LINENO: checking for inline" >&5
13976 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13977 if test "${ac_cv_c_inline+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980 ac_cv_c_inline=no
13981 for ac_kw in inline __inline__ __inline; do
13982 cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h. */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h. */
13988 #ifndef __cplusplus
13989 typedef int foo_t;
13990 static $ac_kw foo_t static_foo () {return 0; }
13991 $ac_kw foo_t foo () {return 0; }
13992 #endif
13993
13994 _ACEOF
13995 rm -f conftest.$ac_objext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13997 (eval $ac_compile) 2>conftest.er1
13998 ac_status=$?
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest.$ac_objext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 ac_cv_c_inline=$ac_kw; break
14018 else
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022 fi
14023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14024 done
14025
14026 fi
14027 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14028 echo "${ECHO_T}$ac_cv_c_inline" >&6
14029
14030
14031 case $ac_cv_c_inline in
14032 inline | yes) ;;
14033 *)
14034 case $ac_cv_c_inline in
14035 no) ac_val=;;
14036 *) ac_val=$ac_cv_c_inline;;
14037 esac
14038 cat >>confdefs.h <<_ACEOF
14039 #ifndef __cplusplus
14040 #define inline $ac_val
14041 #endif
14042 _ACEOF
14043 ;;
14044 esac
14045
14046
14047 echo "$as_me:$LINENO: checking for char" >&5
14048 echo $ECHO_N "checking for char... $ECHO_C" >&6
14049 if test "${ac_cv_type_char+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 else
14052 cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h. */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 $ac_includes_default
14059 int
14060 main ()
14061 {
14062 if ((char *) 0)
14063 return 0;
14064 if (sizeof (char))
14065 return 0;
14066 ;
14067 return 0;
14068 }
14069 _ACEOF
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>conftest.er1
14073 ac_status=$?
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest.$ac_objext'
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_type_char=yes
14093 else
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ac_cv_type_char=no
14098 fi
14099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14100 fi
14101 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14102 echo "${ECHO_T}$ac_cv_type_char" >&6
14103
14104 echo "$as_me:$LINENO: checking size of char" >&5
14105 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14106 if test "${ac_cv_sizeof_char+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109 if test "$ac_cv_type_char" = yes; then
14110 # The cast to unsigned long works around a bug in the HP C Compiler
14111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14113 # This bug is HP SR number 8606223364.
14114 if test "$cross_compiling" = yes; then
14115 # Depending upon the size, compute the lo and hi bounds.
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h. */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h. */
14122 $ac_includes_default
14123 int
14124 main ()
14125 {
14126 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14127 test_array [0] = 0
14128
14129 ;
14130 return 0;
14131 }
14132 _ACEOF
14133 rm -f conftest.$ac_objext
14134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14135 (eval $ac_compile) 2>conftest.er1
14136 ac_status=$?
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
14142 { ac_try='test -z "$ac_c_werror_flag"
14143 || test ! -s conftest.err'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; } &&
14149 { ac_try='test -s conftest.$ac_objext'
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 ac_lo=0 ac_mid=0
14156 while :; do
14157 cat >conftest.$ac_ext <<_ACEOF
14158 /* confdefs.h. */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14163 $ac_includes_default
14164 int
14165 main ()
14166 {
14167 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14168 test_array [0] = 0
14169
14170 ;
14171 return 0;
14172 }
14173 _ACEOF
14174 rm -f conftest.$ac_objext
14175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>conftest.er1
14177 ac_status=$?
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_hi=$ac_mid; break
14197 else
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14200
14201 ac_lo=`expr $ac_mid + 1`
14202 if test $ac_lo -le $ac_mid; then
14203 ac_lo= ac_hi=
14204 break
14205 fi
14206 ac_mid=`expr 2 '*' $ac_mid + 1`
14207 fi
14208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14209 done
14210 else
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 cat >conftest.$ac_ext <<_ACEOF
14215 /* confdefs.h. */
14216 _ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 $ac_includes_default
14221 int
14222 main ()
14223 {
14224 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14225 test_array [0] = 0
14226
14227 ;
14228 return 0;
14229 }
14230 _ACEOF
14231 rm -f conftest.$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>conftest.er1
14234 ac_status=$?
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
14240 { ac_try='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_hi=-1 ac_mid=-1
14254 while :; do
14255 cat >conftest.$ac_ext <<_ACEOF
14256 /* confdefs.h. */
14257 _ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 $ac_includes_default
14262 int
14263 main ()
14264 {
14265 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14266 test_array [0] = 0
14267
14268 ;
14269 return 0;
14270 }
14271 _ACEOF
14272 rm -f conftest.$ac_objext
14273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14274 (eval $ac_compile) 2>conftest.er1
14275 ac_status=$?
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag"
14282 || test ! -s conftest.err'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest.$ac_objext'
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_lo=$ac_mid; break
14295 else
14296 echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14298
14299 ac_hi=`expr '(' $ac_mid ')' - 1`
14300 if test $ac_mid -le $ac_hi; then
14301 ac_lo= ac_hi=
14302 break
14303 fi
14304 ac_mid=`expr 2 '*' $ac_mid`
14305 fi
14306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14307 done
14308 else
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14311
14312 ac_lo= ac_hi=
14313 fi
14314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14315 fi
14316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14317 # Binary search between lo and hi bounds.
14318 while test "x$ac_lo" != "x$ac_hi"; do
14319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14320 cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h. */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 $ac_includes_default
14327 int
14328 main ()
14329 {
14330 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14331 test_array [0] = 0
14332
14333 ;
14334 return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14339 (eval $ac_compile) 2>conftest.er1
14340 ac_status=$?
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
14346 { ac_try='test -z "$ac_c_werror_flag"
14347 || test ! -s conftest.err'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try='test -s conftest.$ac_objext'
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ac_hi=$ac_mid
14360 else
14361 echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 ac_lo=`expr '(' $ac_mid ')' + 1`
14365 fi
14366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14367 done
14368 case $ac_lo in
14369 ?*) ac_cv_sizeof_char=$ac_lo;;
14370 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14371 See \`config.log' for more details." >&5
14372 echo "$as_me: error: cannot compute sizeof (char), 77
14373 See \`config.log' for more details." >&2;}
14374 { (exit 1); exit 1; }; } ;;
14375 esac
14376 else
14377 if test "$cross_compiling" = yes; then
14378 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14379 See \`config.log' for more details." >&5
14380 echo "$as_me: error: cannot run test program while cross compiling
14381 See \`config.log' for more details." >&2;}
14382 { (exit 1); exit 1; }; }
14383 else
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 $ac_includes_default
14391 long longval () { return (long) (sizeof (char)); }
14392 unsigned long ulongval () { return (long) (sizeof (char)); }
14393 #include <stdio.h>
14394 #include <stdlib.h>
14395 int
14396 main ()
14397 {
14398
14399 FILE *f = fopen ("conftest.val", "w");
14400 if (! f)
14401 exit (1);
14402 if (((long) (sizeof (char))) < 0)
14403 {
14404 long i = longval ();
14405 if (i != ((long) (sizeof (char))))
14406 exit (1);
14407 fprintf (f, "%ld\n", i);
14408 }
14409 else
14410 {
14411 unsigned long i = ulongval ();
14412 if (i != ((long) (sizeof (char))))
14413 exit (1);
14414 fprintf (f, "%lu\n", i);
14415 }
14416 exit (ferror (f) || fclose (f) != 0);
14417
14418 ;
14419 return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest$ac_exeext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_sizeof_char=`cat conftest.val`
14434 else
14435 echo "$as_me: program exited with status $ac_status" >&5
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 ( exit $ac_status )
14440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14441 See \`config.log' for more details." >&5
14442 echo "$as_me: error: cannot compute sizeof (char), 77
14443 See \`config.log' for more details." >&2;}
14444 { (exit 1); exit 1; }; }
14445 fi
14446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14447 fi
14448 fi
14449 rm -f conftest.val
14450 else
14451 ac_cv_sizeof_char=0
14452 fi
14453 fi
14454 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14455 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14456 cat >>confdefs.h <<_ACEOF
14457 #define SIZEOF_CHAR $ac_cv_sizeof_char
14458 _ACEOF
14459
14460
14461 echo "$as_me:$LINENO: checking for short" >&5
14462 echo $ECHO_N "checking for short... $ECHO_C" >&6
14463 if test "${ac_cv_type_short+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 else
14466 cat >conftest.$ac_ext <<_ACEOF
14467 /* confdefs.h. */
14468 _ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 $ac_includes_default
14473 int
14474 main ()
14475 {
14476 if ((short *) 0)
14477 return 0;
14478 if (sizeof (short))
14479 return 0;
14480 ;
14481 return 0;
14482 }
14483 _ACEOF
14484 rm -f conftest.$ac_objext
14485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14486 (eval $ac_compile) 2>conftest.er1
14487 ac_status=$?
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -z "$ac_c_werror_flag"
14494 || test ! -s conftest.err'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; } &&
14500 { ac_try='test -s conftest.$ac_objext'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
14506 ac_cv_type_short=yes
14507 else
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511 ac_cv_type_short=no
14512 fi
14513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14514 fi
14515 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14516 echo "${ECHO_T}$ac_cv_type_short" >&6
14517
14518 echo "$as_me:$LINENO: checking size of short" >&5
14519 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14520 if test "${ac_cv_sizeof_short+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 if test "$ac_cv_type_short" = yes; then
14524 # The cast to unsigned long works around a bug in the HP C Compiler
14525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14527 # This bug is HP SR number 8606223364.
14528 if test "$cross_compiling" = yes; then
14529 # Depending upon the size, compute the lo and hi bounds.
14530 cat >conftest.$ac_ext <<_ACEOF
14531 /* confdefs.h. */
14532 _ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14536 $ac_includes_default
14537 int
14538 main ()
14539 {
14540 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14541 test_array [0] = 0
14542
14543 ;
14544 return 0;
14545 }
14546 _ACEOF
14547 rm -f conftest.$ac_objext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14549 (eval $ac_compile) 2>conftest.er1
14550 ac_status=$?
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_c_werror_flag"
14557 || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest.$ac_objext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_lo=0 ac_mid=0
14570 while :; do
14571 cat >conftest.$ac_ext <<_ACEOF
14572 /* confdefs.h. */
14573 _ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 $ac_includes_default
14578 int
14579 main ()
14580 {
14581 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14582 test_array [0] = 0
14583
14584 ;
14585 return 0;
14586 }
14587 _ACEOF
14588 rm -f conftest.$ac_objext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14590 (eval $ac_compile) 2>conftest.er1
14591 ac_status=$?
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_hi=$ac_mid; break
14611 else
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615 ac_lo=`expr $ac_mid + 1`
14616 if test $ac_lo -le $ac_mid; then
14617 ac_lo= ac_hi=
14618 break
14619 fi
14620 ac_mid=`expr 2 '*' $ac_mid + 1`
14621 fi
14622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14623 done
14624 else
14625 echo "$as_me: failed program was:" >&5
14626 sed 's/^/| /' conftest.$ac_ext >&5
14627
14628 cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h. */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 $ac_includes_default
14635 int
14636 main ()
14637 {
14638 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14639 test_array [0] = 0
14640
14641 ;
14642 return 0;
14643 }
14644 _ACEOF
14645 rm -f conftest.$ac_objext
14646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14647 (eval $ac_compile) 2>conftest.er1
14648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
14654 { ac_try='test -z "$ac_c_werror_flag"
14655 || test ! -s conftest.err'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; } &&
14661 { ac_try='test -s conftest.$ac_objext'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_hi=-1 ac_mid=-1
14668 while :; do
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h. */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675 $ac_includes_default
14676 int
14677 main ()
14678 {
14679 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14680 test_array [0] = 0
14681
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 rm -f conftest.$ac_objext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14688 (eval $ac_compile) 2>conftest.er1
14689 ac_status=$?
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
14695 { ac_try='test -z "$ac_c_werror_flag"
14696 || test ! -s conftest.err'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest.$ac_objext'
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14708 ac_lo=$ac_mid; break
14709 else
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713 ac_hi=`expr '(' $ac_mid ')' - 1`
14714 if test $ac_mid -le $ac_hi; then
14715 ac_lo= ac_hi=
14716 break
14717 fi
14718 ac_mid=`expr 2 '*' $ac_mid`
14719 fi
14720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14721 done
14722 else
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14725
14726 ac_lo= ac_hi=
14727 fi
14728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14729 fi
14730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14731 # Binary search between lo and hi bounds.
14732 while test "x$ac_lo" != "x$ac_hi"; do
14733 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14734 cat >conftest.$ac_ext <<_ACEOF
14735 /* confdefs.h. */
14736 _ACEOF
14737 cat confdefs.h >>conftest.$ac_ext
14738 cat >>conftest.$ac_ext <<_ACEOF
14739 /* end confdefs.h. */
14740 $ac_includes_default
14741 int
14742 main ()
14743 {
14744 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14745 test_array [0] = 0
14746
14747 ;
14748 return 0;
14749 }
14750 _ACEOF
14751 rm -f conftest.$ac_objext
14752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14753 (eval $ac_compile) 2>conftest.er1
14754 ac_status=$?
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try='test -z "$ac_c_werror_flag"
14761 || test ! -s conftest.err'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; } &&
14767 { ac_try='test -s conftest.$ac_objext'
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_hi=$ac_mid
14774 else
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778 ac_lo=`expr '(' $ac_mid ')' + 1`
14779 fi
14780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14781 done
14782 case $ac_lo in
14783 ?*) ac_cv_sizeof_short=$ac_lo;;
14784 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14785 See \`config.log' for more details." >&5
14786 echo "$as_me: error: cannot compute sizeof (short), 77
14787 See \`config.log' for more details." >&2;}
14788 { (exit 1); exit 1; }; } ;;
14789 esac
14790 else
14791 if test "$cross_compiling" = yes; then
14792 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14793 See \`config.log' for more details." >&5
14794 echo "$as_me: error: cannot run test program while cross compiling
14795 See \`config.log' for more details." >&2;}
14796 { (exit 1); exit 1; }; }
14797 else
14798 cat >conftest.$ac_ext <<_ACEOF
14799 /* confdefs.h. */
14800 _ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14804 $ac_includes_default
14805 long longval () { return (long) (sizeof (short)); }
14806 unsigned long ulongval () { return (long) (sizeof (short)); }
14807 #include <stdio.h>
14808 #include <stdlib.h>
14809 int
14810 main ()
14811 {
14812
14813 FILE *f = fopen ("conftest.val", "w");
14814 if (! f)
14815 exit (1);
14816 if (((long) (sizeof (short))) < 0)
14817 {
14818 long i = longval ();
14819 if (i != ((long) (sizeof (short))))
14820 exit (1);
14821 fprintf (f, "%ld\n", i);
14822 }
14823 else
14824 {
14825 unsigned long i = ulongval ();
14826 if (i != ((long) (sizeof (short))))
14827 exit (1);
14828 fprintf (f, "%lu\n", i);
14829 }
14830 exit (ferror (f) || fclose (f) != 0);
14831
14832 ;
14833 return 0;
14834 }
14835 _ACEOF
14836 rm -f conftest$ac_exeext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838 (eval $ac_link) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_sizeof_short=`cat conftest.val`
14848 else
14849 echo "$as_me: program exited with status $ac_status" >&5
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ( exit $ac_status )
14854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14855 See \`config.log' for more details." >&5
14856 echo "$as_me: error: cannot compute sizeof (short), 77
14857 See \`config.log' for more details." >&2;}
14858 { (exit 1); exit 1; }; }
14859 fi
14860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14861 fi
14862 fi
14863 rm -f conftest.val
14864 else
14865 ac_cv_sizeof_short=0
14866 fi
14867 fi
14868 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14869 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14870 cat >>confdefs.h <<_ACEOF
14871 #define SIZEOF_SHORT $ac_cv_sizeof_short
14872 _ACEOF
14873
14874
14875 echo "$as_me:$LINENO: checking for void *" >&5
14876 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14877 if test "${ac_cv_type_void_p+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 else
14880 cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h. */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 $ac_includes_default
14887 int
14888 main ()
14889 {
14890 if ((void * *) 0)
14891 return 0;
14892 if (sizeof (void *))
14893 return 0;
14894 ;
14895 return 0;
14896 }
14897 _ACEOF
14898 rm -f conftest.$ac_objext
14899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14900 (eval $ac_compile) 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest.$ac_objext'
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_type_void_p=yes
14921 else
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925 ac_cv_type_void_p=no
14926 fi
14927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14928 fi
14929 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14930 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14931
14932 echo "$as_me:$LINENO: checking size of void *" >&5
14933 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14934 if test "${ac_cv_sizeof_void_p+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 else
14937 if test "$ac_cv_type_void_p" = yes; then
14938 # The cast to unsigned long works around a bug in the HP C Compiler
14939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14941 # This bug is HP SR number 8606223364.
14942 if test "$cross_compiling" = yes; then
14943 # Depending upon the size, compute the lo and hi bounds.
14944 cat >conftest.$ac_ext <<_ACEOF
14945 /* confdefs.h. */
14946 _ACEOF
14947 cat confdefs.h >>conftest.$ac_ext
14948 cat >>conftest.$ac_ext <<_ACEOF
14949 /* end confdefs.h. */
14950 $ac_includes_default
14951 int
14952 main ()
14953 {
14954 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14955 test_array [0] = 0
14956
14957 ;
14958 return 0;
14959 }
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963 (eval $ac_compile) 2>conftest.er1
14964 ac_status=$?
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
14970 { ac_try='test -z "$ac_c_werror_flag"
14971 || test ! -s conftest.err'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest.$ac_objext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_lo=0 ac_mid=0
14984 while :; do
14985 cat >conftest.$ac_ext <<_ACEOF
14986 /* confdefs.h. */
14987 _ACEOF
14988 cat confdefs.h >>conftest.$ac_ext
14989 cat >>conftest.$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14991 $ac_includes_default
14992 int
14993 main ()
14994 {
14995 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14996 test_array [0] = 0
14997
14998 ;
14999 return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext
15003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15004 (eval $ac_compile) 2>conftest.er1
15005 ac_status=$?
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_hi=$ac_mid; break
15025 else
15026 echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029 ac_lo=`expr $ac_mid + 1`
15030 if test $ac_lo -le $ac_mid; then
15031 ac_lo= ac_hi=
15032 break
15033 fi
15034 ac_mid=`expr 2 '*' $ac_mid + 1`
15035 fi
15036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15037 done
15038 else
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15041
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h. */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 $ac_includes_default
15049 int
15050 main ()
15051 {
15052 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15053 test_array [0] = 0
15054
15055 ;
15056 return 0;
15057 }
15058 _ACEOF
15059 rm -f conftest.$ac_objext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_hi=-1 ac_mid=-1
15082 while :; do
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 $ac_includes_default
15090 int
15091 main ()
15092 {
15093 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15094 test_array [0] = 0
15095
15096 ;
15097 return 0;
15098 }
15099 _ACEOF
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -z "$ac_c_werror_flag"
15110 || test ! -s conftest.err'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; } &&
15116 { ac_try='test -s conftest.$ac_objext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 ac_lo=$ac_mid; break
15123 else
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127 ac_hi=`expr '(' $ac_mid ')' - 1`
15128 if test $ac_mid -le $ac_hi; then
15129 ac_lo= ac_hi=
15130 break
15131 fi
15132 ac_mid=`expr 2 '*' $ac_mid`
15133 fi
15134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15135 done
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 ac_lo= ac_hi=
15141 fi
15142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15143 fi
15144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15145 # Binary search between lo and hi bounds.
15146 while test "x$ac_lo" != "x$ac_hi"; do
15147 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 $ac_includes_default
15155 int
15156 main ()
15157 {
15158 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15159 test_array [0] = 0
15160
15161 ;
15162 return 0;
15163 }
15164 _ACEOF
15165 rm -f conftest.$ac_objext
15166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15167 (eval $ac_compile) 2>conftest.er1
15168 ac_status=$?
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
15174 { ac_try='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest.$ac_objext'
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_hi=$ac_mid
15188 else
15189 echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_lo=`expr '(' $ac_mid ')' + 1`
15193 fi
15194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15195 done
15196 case $ac_lo in
15197 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15198 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15199 See \`config.log' for more details." >&5
15200 echo "$as_me: error: cannot compute sizeof (void *), 77
15201 See \`config.log' for more details." >&2;}
15202 { (exit 1); exit 1; }; } ;;
15203 esac
15204 else
15205 if test "$cross_compiling" = yes; then
15206 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15207 See \`config.log' for more details." >&5
15208 echo "$as_me: error: cannot run test program while cross compiling
15209 See \`config.log' for more details." >&2;}
15210 { (exit 1); exit 1; }; }
15211 else
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h. */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 $ac_includes_default
15219 long longval () { return (long) (sizeof (void *)); }
15220 unsigned long ulongval () { return (long) (sizeof (void *)); }
15221 #include <stdio.h>
15222 #include <stdlib.h>
15223 int
15224 main ()
15225 {
15226
15227 FILE *f = fopen ("conftest.val", "w");
15228 if (! f)
15229 exit (1);
15230 if (((long) (sizeof (void *))) < 0)
15231 {
15232 long i = longval ();
15233 if (i != ((long) (sizeof (void *))))
15234 exit (1);
15235 fprintf (f, "%ld\n", i);
15236 }
15237 else
15238 {
15239 unsigned long i = ulongval ();
15240 if (i != ((long) (sizeof (void *))))
15241 exit (1);
15242 fprintf (f, "%lu\n", i);
15243 }
15244 exit (ferror (f) || fclose (f) != 0);
15245
15246 ;
15247 return 0;
15248 }
15249 _ACEOF
15250 rm -f conftest$ac_exeext
15251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_sizeof_void_p=`cat conftest.val`
15262 else
15263 echo "$as_me: program exited with status $ac_status" >&5
15264 echo "$as_me: failed program was:" >&5
15265 sed 's/^/| /' conftest.$ac_ext >&5
15266
15267 ( exit $ac_status )
15268 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15269 See \`config.log' for more details." >&5
15270 echo "$as_me: error: cannot compute sizeof (void *), 77
15271 See \`config.log' for more details." >&2;}
15272 { (exit 1); exit 1; }; }
15273 fi
15274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15275 fi
15276 fi
15277 rm -f conftest.val
15278 else
15279 ac_cv_sizeof_void_p=0
15280 fi
15281 fi
15282 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15283 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15284 cat >>confdefs.h <<_ACEOF
15285 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15286 _ACEOF
15287
15288
15289 echo "$as_me:$LINENO: checking for int" >&5
15290 echo $ECHO_N "checking for int... $ECHO_C" >&6
15291 if test "${ac_cv_type_int+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294 cat >conftest.$ac_ext <<_ACEOF
15295 /* confdefs.h. */
15296 _ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 $ac_includes_default
15301 int
15302 main ()
15303 {
15304 if ((int *) 0)
15305 return 0;
15306 if (sizeof (int))
15307 return 0;
15308 ;
15309 return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15314 (eval $ac_compile) 2>conftest.er1
15315 ac_status=$?
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_type_int=yes
15335 else
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339 ac_cv_type_int=no
15340 fi
15341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15342 fi
15343 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15344 echo "${ECHO_T}$ac_cv_type_int" >&6
15345
15346 echo "$as_me:$LINENO: checking size of int" >&5
15347 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15348 if test "${ac_cv_sizeof_int+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351 if test "$ac_cv_type_int" = yes; then
15352 # The cast to unsigned long works around a bug in the HP C Compiler
15353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15355 # This bug is HP SR number 8606223364.
15356 if test "$cross_compiling" = yes; then
15357 # Depending upon the size, compute the lo and hi bounds.
15358 cat >conftest.$ac_ext <<_ACEOF
15359 /* confdefs.h. */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15364 $ac_includes_default
15365 int
15366 main ()
15367 {
15368 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15369 test_array [0] = 0
15370
15371 ;
15372 return 0;
15373 }
15374 _ACEOF
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_lo=0 ac_mid=0
15398 while :; do
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h. */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15405 $ac_includes_default
15406 int
15407 main ()
15408 {
15409 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15410 test_array [0] = 0
15411
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext
15417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15418 (eval $ac_compile) 2>conftest.er1
15419 ac_status=$?
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
15425 { ac_try='test -z "$ac_c_werror_flag"
15426 || test ! -s conftest.err'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest.$ac_objext'
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_hi=$ac_mid; break
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15442
15443 ac_lo=`expr $ac_mid + 1`
15444 if test $ac_lo -le $ac_mid; then
15445 ac_lo= ac_hi=
15446 break
15447 fi
15448 ac_mid=`expr 2 '*' $ac_mid + 1`
15449 fi
15450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15451 done
15452 else
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456 cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h. */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 $ac_includes_default
15463 int
15464 main ()
15465 {
15466 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15467 test_array [0] = 0
15468
15469 ;
15470 return 0;
15471 }
15472 _ACEOF
15473 rm -f conftest.$ac_objext
15474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15475 (eval $ac_compile) 2>conftest.er1
15476 ac_status=$?
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
15482 { ac_try='test -z "$ac_c_werror_flag"
15483 || test ! -s conftest.err'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest.$ac_objext'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_hi=-1 ac_mid=-1
15496 while :; do
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 int
15505 main ()
15506 {
15507 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15508 test_array [0] = 0
15509
15510 ;
15511 return 0;
15512 }
15513 _ACEOF
15514 rm -f conftest.$ac_objext
15515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15516 (eval $ac_compile) 2>conftest.er1
15517 ac_status=$?
15518 grep -v '^ *+' conftest.er1 >conftest.err
15519 rm -f conftest.er1
15520 cat conftest.err >&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -z "$ac_c_werror_flag"
15524 || test ! -s conftest.err'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest.$ac_objext'
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_lo=$ac_mid; break
15537 else
15538 echo "$as_me: failed program was:" >&5
15539 sed 's/^/| /' conftest.$ac_ext >&5
15540
15541 ac_hi=`expr '(' $ac_mid ')' - 1`
15542 if test $ac_mid -le $ac_hi; then
15543 ac_lo= ac_hi=
15544 break
15545 fi
15546 ac_mid=`expr 2 '*' $ac_mid`
15547 fi
15548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15549 done
15550 else
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 ac_lo= ac_hi=
15555 fi
15556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15557 fi
15558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15559 # Binary search between lo and hi bounds.
15560 while test "x$ac_lo" != "x$ac_hi"; do
15561 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15562 cat >conftest.$ac_ext <<_ACEOF
15563 /* confdefs.h. */
15564 _ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 $ac_includes_default
15569 int
15570 main ()
15571 {
15572 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15573 test_array [0] = 0
15574
15575 ;
15576 return 0;
15577 }
15578 _ACEOF
15579 rm -f conftest.$ac_objext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15581 (eval $ac_compile) 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
15588 { ac_try='test -z "$ac_c_werror_flag"
15589 || test ! -s conftest.err'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest.$ac_objext'
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_hi=$ac_mid
15602 else
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 ac_lo=`expr '(' $ac_mid ')' + 1`
15607 fi
15608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15609 done
15610 case $ac_lo in
15611 ?*) ac_cv_sizeof_int=$ac_lo;;
15612 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15613 See \`config.log' for more details." >&5
15614 echo "$as_me: error: cannot compute sizeof (int), 77
15615 See \`config.log' for more details." >&2;}
15616 { (exit 1); exit 1; }; } ;;
15617 esac
15618 else
15619 if test "$cross_compiling" = yes; then
15620 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15621 See \`config.log' for more details." >&5
15622 echo "$as_me: error: cannot run test program while cross compiling
15623 See \`config.log' for more details." >&2;}
15624 { (exit 1); exit 1; }; }
15625 else
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 $ac_includes_default
15633 long longval () { return (long) (sizeof (int)); }
15634 unsigned long ulongval () { return (long) (sizeof (int)); }
15635 #include <stdio.h>
15636 #include <stdlib.h>
15637 int
15638 main ()
15639 {
15640
15641 FILE *f = fopen ("conftest.val", "w");
15642 if (! f)
15643 exit (1);
15644 if (((long) (sizeof (int))) < 0)
15645 {
15646 long i = longval ();
15647 if (i != ((long) (sizeof (int))))
15648 exit (1);
15649 fprintf (f, "%ld\n", i);
15650 }
15651 else
15652 {
15653 unsigned long i = ulongval ();
15654 if (i != ((long) (sizeof (int))))
15655 exit (1);
15656 fprintf (f, "%lu\n", i);
15657 }
15658 exit (ferror (f) || fclose (f) != 0);
15659
15660 ;
15661 return 0;
15662 }
15663 _ACEOF
15664 rm -f conftest$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_sizeof_int=`cat conftest.val`
15676 else
15677 echo "$as_me: program exited with status $ac_status" >&5
15678 echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.$ac_ext >&5
15680
15681 ( exit $ac_status )
15682 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15683 See \`config.log' for more details." >&5
15684 echo "$as_me: error: cannot compute sizeof (int), 77
15685 See \`config.log' for more details." >&2;}
15686 { (exit 1); exit 1; }; }
15687 fi
15688 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15689 fi
15690 fi
15691 rm -f conftest.val
15692 else
15693 ac_cv_sizeof_int=0
15694 fi
15695 fi
15696 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15697 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15698 cat >>confdefs.h <<_ACEOF
15699 #define SIZEOF_INT $ac_cv_sizeof_int
15700 _ACEOF
15701
15702
15703 echo "$as_me:$LINENO: checking for long" >&5
15704 echo $ECHO_N "checking for long... $ECHO_C" >&6
15705 if test "${ac_cv_type_long+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 else
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $ac_includes_default
15715 int
15716 main ()
15717 {
15718 if ((long *) 0)
15719 return 0;
15720 if (sizeof (long))
15721 return 0;
15722 ;
15723 return 0;
15724 }
15725 _ACEOF
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_cv_type_long=yes
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_cv_type_long=no
15754 fi
15755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15756 fi
15757 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15758 echo "${ECHO_T}$ac_cv_type_long" >&6
15759
15760 echo "$as_me:$LINENO: checking size of long" >&5
15761 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15762 if test "${ac_cv_sizeof_long+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 else
15765 if test "$ac_cv_type_long" = yes; then
15766 # The cast to unsigned long works around a bug in the HP C Compiler
15767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15769 # This bug is HP SR number 8606223364.
15770 if test "$cross_compiling" = yes; then
15771 # Depending upon the size, compute the lo and hi bounds.
15772 cat >conftest.$ac_ext <<_ACEOF
15773 /* confdefs.h. */
15774 _ACEOF
15775 cat confdefs.h >>conftest.$ac_ext
15776 cat >>conftest.$ac_ext <<_ACEOF
15777 /* end confdefs.h. */
15778 $ac_includes_default
15779 int
15780 main ()
15781 {
15782 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15783 test_array [0] = 0
15784
15785 ;
15786 return 0;
15787 }
15788 _ACEOF
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>conftest.er1
15792 ac_status=$?
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
15798 { ac_try='test -z "$ac_c_werror_flag"
15799 || test ! -s conftest.err'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_lo=0 ac_mid=0
15812 while :; do
15813 cat >conftest.$ac_ext <<_ACEOF
15814 /* confdefs.h. */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h. */
15819 $ac_includes_default
15820 int
15821 main ()
15822 {
15823 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15824 test_array [0] = 0
15825
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 rm -f conftest.$ac_objext
15831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15832 (eval $ac_compile) 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag"
15840 || test ! -s conftest.err'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_hi=$ac_mid; break
15853 else
15854 echo "$as_me: failed program was:" >&5
15855 sed 's/^/| /' conftest.$ac_ext >&5
15856
15857 ac_lo=`expr $ac_mid + 1`
15858 if test $ac_lo -le $ac_mid; then
15859 ac_lo= ac_hi=
15860 break
15861 fi
15862 ac_mid=`expr 2 '*' $ac_mid + 1`
15863 fi
15864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15865 done
15866 else
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 cat >conftest.$ac_ext <<_ACEOF
15871 /* confdefs.h. */
15872 _ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15876 $ac_includes_default
15877 int
15878 main ()
15879 {
15880 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15881 test_array [0] = 0
15882
15883 ;
15884 return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15889 (eval $ac_compile) 2>conftest.er1
15890 ac_status=$?
15891 grep -v '^ *+' conftest.er1 >conftest.err
15892 rm -f conftest.er1
15893 cat conftest.err >&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
15896 { ac_try='test -z "$ac_c_werror_flag"
15897 || test ! -s conftest.err'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; } &&
15903 { ac_try='test -s conftest.$ac_objext'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_hi=-1 ac_mid=-1
15910 while :; do
15911 cat >conftest.$ac_ext <<_ACEOF
15912 /* confdefs.h. */
15913 _ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 $ac_includes_default
15918 int
15919 main ()
15920 {
15921 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15922 test_array [0] = 0
15923
15924 ;
15925 return 0;
15926 }
15927 _ACEOF
15928 rm -f conftest.$ac_objext
15929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930 (eval $ac_compile) 2>conftest.er1
15931 ac_status=$?
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } &&
15937 { ac_try='test -z "$ac_c_werror_flag"
15938 || test ! -s conftest.err'
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest.$ac_objext'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_lo=$ac_mid; break
15951 else
15952 echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15954
15955 ac_hi=`expr '(' $ac_mid ')' - 1`
15956 if test $ac_mid -le $ac_hi; then
15957 ac_lo= ac_hi=
15958 break
15959 fi
15960 ac_mid=`expr 2 '*' $ac_mid`
15961 fi
15962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15963 done
15964 else
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968 ac_lo= ac_hi=
15969 fi
15970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15971 fi
15972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15973 # Binary search between lo and hi bounds.
15974 while test "x$ac_lo" != "x$ac_hi"; do
15975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15976 cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h. */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15982 $ac_includes_default
15983 int
15984 main ()
15985 {
15986 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15987 test_array [0] = 0
15988
15989 ;
15990 return 0;
15991 }
15992 _ACEOF
15993 rm -f conftest.$ac_objext
15994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15995 (eval $ac_compile) 2>conftest.er1
15996 ac_status=$?
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
16002 { ac_try='test -z "$ac_c_werror_flag"
16003 || test ! -s conftest.err'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; } &&
16009 { ac_try='test -s conftest.$ac_objext'
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_hi=$ac_mid
16016 else
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020 ac_lo=`expr '(' $ac_mid ')' + 1`
16021 fi
16022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16023 done
16024 case $ac_lo in
16025 ?*) ac_cv_sizeof_long=$ac_lo;;
16026 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16027 See \`config.log' for more details." >&5
16028 echo "$as_me: error: cannot compute sizeof (long), 77
16029 See \`config.log' for more details." >&2;}
16030 { (exit 1); exit 1; }; } ;;
16031 esac
16032 else
16033 if test "$cross_compiling" = yes; then
16034 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16035 See \`config.log' for more details." >&5
16036 echo "$as_me: error: cannot run test program while cross compiling
16037 See \`config.log' for more details." >&2;}
16038 { (exit 1); exit 1; }; }
16039 else
16040 cat >conftest.$ac_ext <<_ACEOF
16041 /* confdefs.h. */
16042 _ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16047 long longval () { return (long) (sizeof (long)); }
16048 unsigned long ulongval () { return (long) (sizeof (long)); }
16049 #include <stdio.h>
16050 #include <stdlib.h>
16051 int
16052 main ()
16053 {
16054
16055 FILE *f = fopen ("conftest.val", "w");
16056 if (! f)
16057 exit (1);
16058 if (((long) (sizeof (long))) < 0)
16059 {
16060 long i = longval ();
16061 if (i != ((long) (sizeof (long))))
16062 exit (1);
16063 fprintf (f, "%ld\n", i);
16064 }
16065 else
16066 {
16067 unsigned long i = ulongval ();
16068 if (i != ((long) (sizeof (long))))
16069 exit (1);
16070 fprintf (f, "%lu\n", i);
16071 }
16072 exit (ferror (f) || fclose (f) != 0);
16073
16074 ;
16075 return 0;
16076 }
16077 _ACEOF
16078 rm -f conftest$ac_exeext
16079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16080 (eval $ac_link) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_sizeof_long=`cat conftest.val`
16090 else
16091 echo "$as_me: program exited with status $ac_status" >&5
16092 echo "$as_me: failed program was:" >&5
16093 sed 's/^/| /' conftest.$ac_ext >&5
16094
16095 ( exit $ac_status )
16096 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16097 See \`config.log' for more details." >&5
16098 echo "$as_me: error: cannot compute sizeof (long), 77
16099 See \`config.log' for more details." >&2;}
16100 { (exit 1); exit 1; }; }
16101 fi
16102 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16103 fi
16104 fi
16105 rm -f conftest.val
16106 else
16107 ac_cv_sizeof_long=0
16108 fi
16109 fi
16110 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16111 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16112 cat >>confdefs.h <<_ACEOF
16113 #define SIZEOF_LONG $ac_cv_sizeof_long
16114 _ACEOF
16115
16116
16117
16118 case "${host}" in
16119 arm-*-linux* )
16120 echo "$as_me:$LINENO: checking for long long" >&5
16121 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16122 if test "${ac_cv_type_long_long+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 $ac_includes_default
16132 int
16133 main ()
16134 {
16135 if ((long long *) 0)
16136 return 0;
16137 if (sizeof (long long))
16138 return 0;
16139 ;
16140 return 0;
16141 }
16142 _ACEOF
16143 rm -f conftest.$ac_objext
16144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16145 (eval $ac_compile) 2>conftest.er1
16146 ac_status=$?
16147 grep -v '^ *+' conftest.er1 >conftest.err
16148 rm -f conftest.er1
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } &&
16152 { ac_try='test -z "$ac_c_werror_flag"
16153 || test ! -s conftest.err'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; } &&
16159 { ac_try='test -s conftest.$ac_objext'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 ac_cv_type_long_long=yes
16166 else
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16169
16170 ac_cv_type_long_long=no
16171 fi
16172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16173 fi
16174 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16175 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16176
16177 echo "$as_me:$LINENO: checking size of long long" >&5
16178 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16179 if test "${ac_cv_sizeof_long_long+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182 if test "$ac_cv_type_long_long" = yes; then
16183 # The cast to unsigned long works around a bug in the HP C Compiler
16184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16186 # This bug is HP SR number 8606223364.
16187 if test "$cross_compiling" = yes; then
16188 # Depending upon the size, compute the lo and hi bounds.
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h. */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16195 $ac_includes_default
16196 int
16197 main ()
16198 {
16199 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16200 test_array [0] = 0
16201
16202 ;
16203 return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext
16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16208 (eval $ac_compile) 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
16215 { ac_try='test -z "$ac_c_werror_flag"
16216 || test ! -s conftest.err'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_lo=0 ac_mid=0
16229 while :; do
16230 cat >conftest.$ac_ext <<_ACEOF
16231 /* confdefs.h. */
16232 _ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 $ac_includes_default
16237 int
16238 main ()
16239 {
16240 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16241 test_array [0] = 0
16242
16243 ;
16244 return 0;
16245 }
16246 _ACEOF
16247 rm -f conftest.$ac_objext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16249 (eval $ac_compile) 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag"
16257 || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try='test -s conftest.$ac_objext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 ac_hi=$ac_mid; break
16270 else
16271 echo "$as_me: failed program was:" >&5
16272 sed 's/^/| /' conftest.$ac_ext >&5
16273
16274 ac_lo=`expr $ac_mid + 1`
16275 if test $ac_lo -le $ac_mid; then
16276 ac_lo= ac_hi=
16277 break
16278 fi
16279 ac_mid=`expr 2 '*' $ac_mid + 1`
16280 fi
16281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16282 done
16283 else
16284 echo "$as_me: failed program was:" >&5
16285 sed 's/^/| /' conftest.$ac_ext >&5
16286
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h. */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 $ac_includes_default
16294 int
16295 main ()
16296 {
16297 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16298 test_array [0] = 0
16299
16300 ;
16301 return 0;
16302 }
16303 _ACEOF
16304 rm -f conftest.$ac_objext
16305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16306 (eval $ac_compile) 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
16313 { ac_try='test -z "$ac_c_werror_flag"
16314 || test ! -s conftest.err'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_hi=-1 ac_mid=-1
16327 while :; do
16328 cat >conftest.$ac_ext <<_ACEOF
16329 /* confdefs.h. */
16330 _ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 $ac_includes_default
16335 int
16336 main ()
16337 {
16338 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16339 test_array [0] = 0
16340
16341 ;
16342 return 0;
16343 }
16344 _ACEOF
16345 rm -f conftest.$ac_objext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16347 (eval $ac_compile) 2>conftest.er1
16348 ac_status=$?
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest.$ac_objext'
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_lo=$ac_mid; break
16368 else
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372 ac_hi=`expr '(' $ac_mid ')' - 1`
16373 if test $ac_mid -le $ac_hi; then
16374 ac_lo= ac_hi=
16375 break
16376 fi
16377 ac_mid=`expr 2 '*' $ac_mid`
16378 fi
16379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16380 done
16381 else
16382 echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385 ac_lo= ac_hi=
16386 fi
16387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16388 fi
16389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16390 # Binary search between lo and hi bounds.
16391 while test "x$ac_lo" != "x$ac_hi"; do
16392 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16393 cat >conftest.$ac_ext <<_ACEOF
16394 /* confdefs.h. */
16395 _ACEOF
16396 cat confdefs.h >>conftest.$ac_ext
16397 cat >>conftest.$ac_ext <<_ACEOF
16398 /* end confdefs.h. */
16399 $ac_includes_default
16400 int
16401 main ()
16402 {
16403 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16404 test_array [0] = 0
16405
16406 ;
16407 return 0;
16408 }
16409 _ACEOF
16410 rm -f conftest.$ac_objext
16411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16412 (eval $ac_compile) 2>conftest.er1
16413 ac_status=$?
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
16419 { ac_try='test -z "$ac_c_werror_flag"
16420 || test ! -s conftest.err'
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16432 ac_hi=$ac_mid
16433 else
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437 ac_lo=`expr '(' $ac_mid ')' + 1`
16438 fi
16439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16440 done
16441 case $ac_lo in
16442 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16443 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16444 See \`config.log' for more details." >&5
16445 echo "$as_me: error: cannot compute sizeof (long long), 77
16446 See \`config.log' for more details." >&2;}
16447 { (exit 1); exit 1; }; } ;;
16448 esac
16449 else
16450 if test "$cross_compiling" = yes; then
16451 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16452 See \`config.log' for more details." >&5
16453 echo "$as_me: error: cannot run test program while cross compiling
16454 See \`config.log' for more details." >&2;}
16455 { (exit 1); exit 1; }; }
16456 else
16457 cat >conftest.$ac_ext <<_ACEOF
16458 /* confdefs.h. */
16459 _ACEOF
16460 cat confdefs.h >>conftest.$ac_ext
16461 cat >>conftest.$ac_ext <<_ACEOF
16462 /* end confdefs.h. */
16463 $ac_includes_default
16464 long longval () { return (long) (sizeof (long long)); }
16465 unsigned long ulongval () { return (long) (sizeof (long long)); }
16466 #include <stdio.h>
16467 #include <stdlib.h>
16468 int
16469 main ()
16470 {
16471
16472 FILE *f = fopen ("conftest.val", "w");
16473 if (! f)
16474 exit (1);
16475 if (((long) (sizeof (long long))) < 0)
16476 {
16477 long i = longval ();
16478 if (i != ((long) (sizeof (long long))))
16479 exit (1);
16480 fprintf (f, "%ld\n", i);
16481 }
16482 else
16483 {
16484 unsigned long i = ulongval ();
16485 if (i != ((long) (sizeof (long long))))
16486 exit (1);
16487 fprintf (f, "%lu\n", i);
16488 }
16489 exit (ferror (f) || fclose (f) != 0);
16490
16491 ;
16492 return 0;
16493 }
16494 _ACEOF
16495 rm -f conftest$ac_exeext
16496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16497 (eval $ac_link) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_sizeof_long_long=`cat conftest.val`
16507 else
16508 echo "$as_me: program exited with status $ac_status" >&5
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.$ac_ext >&5
16511
16512 ( exit $ac_status )
16513 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16514 See \`config.log' for more details." >&5
16515 echo "$as_me: error: cannot compute sizeof (long long), 77
16516 See \`config.log' for more details." >&2;}
16517 { (exit 1); exit 1; }; }
16518 fi
16519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16520 fi
16521 fi
16522 rm -f conftest.val
16523 else
16524 ac_cv_sizeof_long_long=0
16525 fi
16526 fi
16527 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16528 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16529 cat >>confdefs.h <<_ACEOF
16530 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16531 _ACEOF
16532
16533
16534 ;;
16535 *-hp-hpux* )
16536 echo "$as_me:$LINENO: checking for long long" >&5
16537 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16538 if test "${ac_cv_type_long_long+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541 cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h. */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 $ac_includes_default
16548 int
16549 main ()
16550 {
16551 if ((long long *) 0)
16552 return 0;
16553 if (sizeof (long long))
16554 return 0;
16555 ;
16556 return 0;
16557 }
16558 _ACEOF
16559 rm -f conftest.$ac_objext
16560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16561 (eval $ac_compile) 2>conftest.er1
16562 ac_status=$?
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -z "$ac_c_werror_flag"
16569 || test ! -s conftest.err'
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest.$ac_objext'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16581 ac_cv_type_long_long=yes
16582 else
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586 ac_cv_type_long_long=no
16587 fi
16588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16589 fi
16590 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16591 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16592
16593 echo "$as_me:$LINENO: checking size of long long" >&5
16594 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16595 if test "${ac_cv_sizeof_long_long+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 else
16598 if test "$ac_cv_type_long_long" = yes; then
16599 # The cast to unsigned long works around a bug in the HP C Compiler
16600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16602 # This bug is HP SR number 8606223364.
16603 if test "$cross_compiling" = yes; then
16604 # Depending upon the size, compute the lo and hi bounds.
16605 cat >conftest.$ac_ext <<_ACEOF
16606 /* confdefs.h. */
16607 _ACEOF
16608 cat confdefs.h >>conftest.$ac_ext
16609 cat >>conftest.$ac_ext <<_ACEOF
16610 /* end confdefs.h. */
16611 $ac_includes_default
16612 int
16613 main ()
16614 {
16615 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16616 test_array [0] = 0
16617
16618 ;
16619 return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16624 (eval $ac_compile) 2>conftest.er1
16625 ac_status=$?
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
16631 { ac_try='test -z "$ac_c_werror_flag"
16632 || test ! -s conftest.err'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_lo=0 ac_mid=0
16645 while :; do
16646 cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h. */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 $ac_includes_default
16653 int
16654 main ()
16655 {
16656 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16657 test_array [0] = 0
16658
16659 ;
16660 return 0;
16661 }
16662 _ACEOF
16663 rm -f conftest.$ac_objext
16664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16665 (eval $ac_compile) 2>conftest.er1
16666 ac_status=$?
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -f conftest.er1
16669 cat conftest.err >&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -z "$ac_c_werror_flag"
16673 || test ! -s conftest.err'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest.$ac_objext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_hi=$ac_mid; break
16686 else
16687 echo "$as_me: failed program was:" >&5
16688 sed 's/^/| /' conftest.$ac_ext >&5
16689
16690 ac_lo=`expr $ac_mid + 1`
16691 if test $ac_lo -le $ac_mid; then
16692 ac_lo= ac_hi=
16693 break
16694 fi
16695 ac_mid=`expr 2 '*' $ac_mid + 1`
16696 fi
16697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16698 done
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 cat >conftest.$ac_ext <<_ACEOF
16704 /* confdefs.h. */
16705 _ACEOF
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 $ac_includes_default
16710 int
16711 main ()
16712 {
16713 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16714 test_array [0] = 0
16715
16716 ;
16717 return 0;
16718 }
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16722 (eval $ac_compile) 2>conftest.er1
16723 ac_status=$?
16724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -z "$ac_c_werror_flag"
16730 || test ! -s conftest.err'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_hi=-1 ac_mid=-1
16743 while :; do
16744 cat >conftest.$ac_ext <<_ACEOF
16745 /* confdefs.h. */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 $ac_includes_default
16751 int
16752 main ()
16753 {
16754 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16755 test_array [0] = 0
16756
16757 ;
16758 return 0;
16759 }
16760 _ACEOF
16761 rm -f conftest.$ac_objext
16762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16763 (eval $ac_compile) 2>conftest.er1
16764 ac_status=$?
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_lo=$ac_mid; break
16784 else
16785 echo "$as_me: failed program was:" >&5
16786 sed 's/^/| /' conftest.$ac_ext >&5
16787
16788 ac_hi=`expr '(' $ac_mid ')' - 1`
16789 if test $ac_mid -le $ac_hi; then
16790 ac_lo= ac_hi=
16791 break
16792 fi
16793 ac_mid=`expr 2 '*' $ac_mid`
16794 fi
16795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16796 done
16797 else
16798 echo "$as_me: failed program was:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16800
16801 ac_lo= ac_hi=
16802 fi
16803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16804 fi
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16806 # Binary search between lo and hi bounds.
16807 while test "x$ac_lo" != "x$ac_hi"; do
16808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16809 cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h. */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 $ac_includes_default
16816 int
16817 main ()
16818 {
16819 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16820 test_array [0] = 0
16821
16822 ;
16823 return 0;
16824 }
16825 _ACEOF
16826 rm -f conftest.$ac_objext
16827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16828 (eval $ac_compile) 2>conftest.er1
16829 ac_status=$?
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_hi=$ac_mid
16849 else
16850 echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16852
16853 ac_lo=`expr '(' $ac_mid ')' + 1`
16854 fi
16855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16856 done
16857 case $ac_lo in
16858 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16859 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16860 See \`config.log' for more details." >&5
16861 echo "$as_me: error: cannot compute sizeof (long long), 77
16862 See \`config.log' for more details." >&2;}
16863 { (exit 1); exit 1; }; } ;;
16864 esac
16865 else
16866 if test "$cross_compiling" = yes; then
16867 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16868 See \`config.log' for more details." >&5
16869 echo "$as_me: error: cannot run test program while cross compiling
16870 See \`config.log' for more details." >&2;}
16871 { (exit 1); exit 1; }; }
16872 else
16873 cat >conftest.$ac_ext <<_ACEOF
16874 /* confdefs.h. */
16875 _ACEOF
16876 cat confdefs.h >>conftest.$ac_ext
16877 cat >>conftest.$ac_ext <<_ACEOF
16878 /* end confdefs.h. */
16879 $ac_includes_default
16880 long longval () { return (long) (sizeof (long long)); }
16881 unsigned long ulongval () { return (long) (sizeof (long long)); }
16882 #include <stdio.h>
16883 #include <stdlib.h>
16884 int
16885 main ()
16886 {
16887
16888 FILE *f = fopen ("conftest.val", "w");
16889 if (! f)
16890 exit (1);
16891 if (((long) (sizeof (long long))) < 0)
16892 {
16893 long i = longval ();
16894 if (i != ((long) (sizeof (long long))))
16895 exit (1);
16896 fprintf (f, "%ld\n", i);
16897 }
16898 else
16899 {
16900 unsigned long i = ulongval ();
16901 if (i != ((long) (sizeof (long long))))
16902 exit (1);
16903 fprintf (f, "%lu\n", i);
16904 }
16905 exit (ferror (f) || fclose (f) != 0);
16906
16907 ;
16908 return 0;
16909 }
16910 _ACEOF
16911 rm -f conftest$ac_exeext
16912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_sizeof_long_long=`cat conftest.val`
16923 else
16924 echo "$as_me: program exited with status $ac_status" >&5
16925 echo "$as_me: failed program was:" >&5
16926 sed 's/^/| /' conftest.$ac_ext >&5
16927
16928 ( exit $ac_status )
16929 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16930 See \`config.log' for more details." >&5
16931 echo "$as_me: error: cannot compute sizeof (long long), 77
16932 See \`config.log' for more details." >&2;}
16933 { (exit 1); exit 1; }; }
16934 fi
16935 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16936 fi
16937 fi
16938 rm -f conftest.val
16939 else
16940 ac_cv_sizeof_long_long=0
16941 fi
16942 fi
16943 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16944 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16945 cat >>confdefs.h <<_ACEOF
16946 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16947 _ACEOF
16948
16949
16950 if test "$ac_cv_sizeof_long_long" != "0"; then
16951 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16952 fi
16953 ;;
16954 * )
16955 echo "$as_me:$LINENO: checking for long long" >&5
16956 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16957 if test "${ac_cv_type_long_long+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16959 else
16960 cat >conftest.$ac_ext <<_ACEOF
16961 /* confdefs.h. */
16962 _ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 $ac_includes_default
16967 int
16968 main ()
16969 {
16970 if ((long long *) 0)
16971 return 0;
16972 if (sizeof (long long))
16973 return 0;
16974 ;
16975 return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980 (eval $ac_compile) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_type_long_long=yes
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 ac_cv_type_long_long=no
17006 fi
17007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17008 fi
17009 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17010 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17011
17012 echo "$as_me:$LINENO: checking size of long long" >&5
17013 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17014 if test "${ac_cv_sizeof_long_long+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017 if test "$ac_cv_type_long_long" = yes; then
17018 # The cast to unsigned long works around a bug in the HP C Compiler
17019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17021 # This bug is HP SR number 8606223364.
17022 if test "$cross_compiling" = yes; then
17023 # Depending upon the size, compute the lo and hi bounds.
17024 cat >conftest.$ac_ext <<_ACEOF
17025 /* confdefs.h. */
17026 _ACEOF
17027 cat confdefs.h >>conftest.$ac_ext
17028 cat >>conftest.$ac_ext <<_ACEOF
17029 /* end confdefs.h. */
17030 $ac_includes_default
17031 int
17032 main ()
17033 {
17034 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17035 test_array [0] = 0
17036
17037 ;
17038 return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17043 (eval $ac_compile) 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag"
17051 || test ! -s conftest.err'
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); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_lo=0 ac_mid=0
17064 while :; do
17065 cat >conftest.$ac_ext <<_ACEOF
17066 /* confdefs.h. */
17067 _ACEOF
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17071 $ac_includes_default
17072 int
17073 main ()
17074 {
17075 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17076 test_array [0] = 0
17077
17078 ;
17079 return 0;
17080 }
17081 _ACEOF
17082 rm -f conftest.$ac_objext
17083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17084 (eval $ac_compile) 2>conftest.er1
17085 ac_status=$?
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
17091 { ac_try='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest.$ac_objext'
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_hi=$ac_mid; break
17105 else
17106 echo "$as_me: failed program was:" >&5
17107 sed 's/^/| /' conftest.$ac_ext >&5
17108
17109 ac_lo=`expr $ac_mid + 1`
17110 if test $ac_lo -le $ac_mid; then
17111 ac_lo= ac_hi=
17112 break
17113 fi
17114 ac_mid=`expr 2 '*' $ac_mid + 1`
17115 fi
17116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17117 done
17118 else
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h. */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17128 $ac_includes_default
17129 int
17130 main ()
17131 {
17132 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17133 test_array [0] = 0
17134
17135 ;
17136 return 0;
17137 }
17138 _ACEOF
17139 rm -f conftest.$ac_objext
17140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17141 (eval $ac_compile) 2>conftest.er1
17142 ac_status=$?
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
17148 { ac_try='test -z "$ac_c_werror_flag"
17149 || test ! -s conftest.err'
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; } &&
17155 { ac_try='test -s conftest.$ac_objext'
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17161 ac_hi=-1 ac_mid=-1
17162 while :; do
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h. */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 $ac_includes_default
17170 int
17171 main ()
17172 {
17173 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17174 test_array [0] = 0
17175
17176 ;
17177 return 0;
17178 }
17179 _ACEOF
17180 rm -f conftest.$ac_objext
17181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17182 (eval $ac_compile) 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_lo=$ac_mid; break
17203 else
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 ac_hi=`expr '(' $ac_mid ')' - 1`
17208 if test $ac_mid -le $ac_hi; then
17209 ac_lo= ac_hi=
17210 break
17211 fi
17212 ac_mid=`expr 2 '*' $ac_mid`
17213 fi
17214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17215 done
17216 else
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17219
17220 ac_lo= ac_hi=
17221 fi
17222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17223 fi
17224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17225 # Binary search between lo and hi bounds.
17226 while test "x$ac_lo" != "x$ac_hi"; do
17227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17228 cat >conftest.$ac_ext <<_ACEOF
17229 /* confdefs.h. */
17230 _ACEOF
17231 cat confdefs.h >>conftest.$ac_ext
17232 cat >>conftest.$ac_ext <<_ACEOF
17233 /* end confdefs.h. */
17234 $ac_includes_default
17235 int
17236 main ()
17237 {
17238 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17239 test_array [0] = 0
17240
17241 ;
17242 return 0;
17243 }
17244 _ACEOF
17245 rm -f conftest.$ac_objext
17246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17247 (eval $ac_compile) 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_hi=$ac_mid
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 ac_lo=`expr '(' $ac_mid ')' + 1`
17273 fi
17274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17275 done
17276 case $ac_lo in
17277 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17278 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17279 See \`config.log' for more details." >&5
17280 echo "$as_me: error: cannot compute sizeof (long long), 77
17281 See \`config.log' for more details." >&2;}
17282 { (exit 1); exit 1; }; } ;;
17283 esac
17284 else
17285 if test "$cross_compiling" = yes; then
17286 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17287 See \`config.log' for more details." >&5
17288 echo "$as_me: error: cannot run test program while cross compiling
17289 See \`config.log' for more details." >&2;}
17290 { (exit 1); exit 1; }; }
17291 else
17292 cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h. */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h. */
17298 $ac_includes_default
17299 long longval () { return (long) (sizeof (long long)); }
17300 unsigned long ulongval () { return (long) (sizeof (long long)); }
17301 #include <stdio.h>
17302 #include <stdlib.h>
17303 int
17304 main ()
17305 {
17306
17307 FILE *f = fopen ("conftest.val", "w");
17308 if (! f)
17309 exit (1);
17310 if (((long) (sizeof (long long))) < 0)
17311 {
17312 long i = longval ();
17313 if (i != ((long) (sizeof (long long))))
17314 exit (1);
17315 fprintf (f, "%ld\n", i);
17316 }
17317 else
17318 {
17319 unsigned long i = ulongval ();
17320 if (i != ((long) (sizeof (long long))))
17321 exit (1);
17322 fprintf (f, "%lu\n", i);
17323 }
17324 exit (ferror (f) || fclose (f) != 0);
17325
17326 ;
17327 return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest$ac_exeext
17331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17332 (eval $ac_link) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 ac_cv_sizeof_long_long=`cat conftest.val`
17342 else
17343 echo "$as_me: program exited with status $ac_status" >&5
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347 ( exit $ac_status )
17348 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17349 See \`config.log' for more details." >&5
17350 echo "$as_me: error: cannot compute sizeof (long long), 77
17351 See \`config.log' for more details." >&2;}
17352 { (exit 1); exit 1; }; }
17353 fi
17354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17355 fi
17356 fi
17357 rm -f conftest.val
17358 else
17359 ac_cv_sizeof_long_long=0
17360 fi
17361 fi
17362 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17363 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17364 cat >>confdefs.h <<_ACEOF
17365 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17366 _ACEOF
17367
17368
17369 esac
17370
17371 echo "$as_me:$LINENO: checking size of wchar_t" >&5
17372 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17373 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376
17377 if test "$cross_compiling" = yes; then
17378
17379 case "${host}" in
17380 *-pc-msdosdjgpp )
17381 wx_cv_sizeof_wchar_t=0
17382 ;;
17383 * )
17384 wx_cv_sizeof_wchar_t=4
17385 ;;
17386 esac
17387
17388
17389 else
17390 cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h. */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396
17397 /* DJGPP only has fake wchar_t: */
17398 #ifdef __DJGPP__
17399 # error "fake wchar_t"
17400 #endif
17401 #ifdef HAVE_WCHAR_H
17402 # ifdef __CYGWIN__
17403 # include <stddef.h>
17404 # endif
17405 # include <wchar.h>
17406 #endif
17407 #ifdef HAVE_STDLIB_H
17408 # include <stdlib.h>
17409 #endif
17410 #include <stdio.h>
17411 int main()
17412 {
17413 FILE *f=fopen("conftestval", "w");
17414 if (!f) exit(1);
17415 fprintf(f, "%i", sizeof(wchar_t));
17416 exit(0);
17417 }
17418
17419 _ACEOF
17420 rm -f conftest$ac_exeext
17421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422 (eval $ac_link) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
17431 wx_cv_sizeof_wchar_t=`cat conftestval`
17432 else
17433 echo "$as_me: program exited with status $ac_status" >&5
17434 echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17436
17437 ( exit $ac_status )
17438 wx_cv_sizeof_wchar_t=0
17439 fi
17440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17441 fi
17442
17443 fi
17444 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17445 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
17446
17447 cat >>confdefs.h <<_ACEOF
17448 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
17449 _ACEOF
17450
17451
17452 # Check whether --enable-largefile or --disable-largefile was given.
17453 if test "${enable_largefile+set}" = set; then
17454 enableval="$enable_largefile"
17455
17456 fi;
17457 if test "$enable_largefile" != no; then
17458 wx_largefile=no
17459
17460 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17461 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17462 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464 else
17465
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h. */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h. */
17472 #define _FILE_OFFSET_BITS 64
17473 #include <sys/types.h>
17474 int
17475 main ()
17476 {
17477 typedef struct {
17478 unsigned int field: sizeof(off_t) == 8;
17479 } wxlf;
17480
17481 ;
17482 return 0;
17483 }
17484 _ACEOF
17485 rm -f conftest.$ac_objext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17487 (eval $ac_compile) 2>conftest.er1
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag"
17495 || test ! -s conftest.err'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest.$ac_objext'
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
17507 ac_cv_sys_file_offset_bits=64
17508 else
17509 echo "$as_me: failed program was:" >&5
17510 sed 's/^/| /' conftest.$ac_ext >&5
17511
17512 ac_cv_sys_file_offset_bits=no
17513 fi
17514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17515
17516
17517 fi
17518 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17519 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17520
17521 if test "$ac_cv_sys_file_offset_bits" != no; then
17522 wx_largefile=yes
17523 cat >>confdefs.h <<_ACEOF
17524 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17525 _ACEOF
17526
17527 fi
17528
17529 if test "x$wx_largefile" != "xyes"; then
17530
17531 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17532 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17533 if test "${ac_cv_sys_large_files+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 else
17536
17537 cat >conftest.$ac_ext <<_ACEOF
17538 /* confdefs.h. */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h. */
17543 #define _LARGE_FILES 1
17544 #include <sys/types.h>
17545 int
17546 main ()
17547 {
17548 typedef struct {
17549 unsigned int field: sizeof(off_t) == 8;
17550 } wxlf;
17551
17552 ;
17553 return 0;
17554 }
17555 _ACEOF
17556 rm -f conftest.$ac_objext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17558 (eval $ac_compile) 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
17565 { ac_try='test -z "$ac_c_werror_flag"
17566 || test ! -s conftest.err'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_cv_sys_large_files=1
17579 else
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17582
17583 ac_cv_sys_large_files=no
17584 fi
17585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17586
17587
17588 fi
17589 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17590 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17591
17592 if test "$ac_cv_sys_large_files" != no; then
17593 wx_largefile=yes
17594 cat >>confdefs.h <<_ACEOF
17595 #define _LARGE_FILES $ac_cv_sys_large_files
17596 _ACEOF
17597
17598 fi
17599
17600 fi
17601
17602 echo "$as_me:$LINENO: checking if large file support is available" >&5
17603 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
17604 if test "x$wx_largefile" = "xyes"; then
17605 cat >>confdefs.h <<\_ACEOF
17606 #define HAVE_LARGEFILE_SUPPORT 1
17607 _ACEOF
17608
17609 fi
17610 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17611 echo "${ECHO_T}$wx_largefile" >&6
17612 fi
17613
17614
17615 if test "x$wx_largefile" = "xyes"; then
17616 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17617 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
17618 else
17619 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
17620 fi
17621 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
17622 fi
17623
17624 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17625 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17626 if test "${ac_cv_c_bigendian+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629 ac_cv_c_bigendian=unknown
17630 # See if sys/param.h defines the BYTE_ORDER macro.
17631 cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h. */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 #include <sys/types.h>
17638 #include <sys/param.h>
17639 int
17640 main ()
17641 {
17642
17643 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17644 bogus endian macros
17645 #endif
17646 ;
17647 return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest.$ac_objext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17652 (eval $ac_compile) 2>conftest.er1
17653 ac_status=$?
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
17659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 # It does; now see whether it defined to BIG_ENDIAN or not.
17673 cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h. */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 #include <sys/types.h>
17680 #include <sys/param.h>
17681 int
17682 main ()
17683 {
17684
17685 #if BYTE_ORDER != BIG_ENDIAN
17686 not big endian
17687 #endif
17688 ;
17689 return 0;
17690 }
17691 _ACEOF
17692 rm -f conftest.$ac_objext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17694 (eval $ac_compile) 2>conftest.er1
17695 ac_status=$?
17696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
17701 { ac_try='test -z "$ac_c_werror_flag"
17702 || test ! -s conftest.err'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest.$ac_objext'
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714 ac_cv_c_bigendian=yes
17715 else
17716 echo "$as_me: failed program was:" >&5
17717 sed 's/^/| /' conftest.$ac_ext >&5
17718
17719 ac_cv_c_bigendian=no
17720 fi
17721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17722 else
17723 echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17725
17726 fi
17727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17728 if test $ac_cv_c_bigendian = unknown; then
17729 if test "$cross_compiling" = yes; then
17730 ac_cv_c_bigendian=unknown
17731 else
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 main () {
17739 /* Are we little or big endian? From Harbison&Steele. */
17740 union
17741 {
17742 long l;
17743 char c[sizeof (long)];
17744 } u;
17745 u.l = 1;
17746 exit (u.c[sizeof (long) - 1] == 1);
17747 }
17748 _ACEOF
17749 rm -f conftest$ac_exeext
17750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751 (eval $ac_link) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
17760 ac_cv_c_bigendian=no
17761 else
17762 echo "$as_me: program exited with status $ac_status" >&5
17763 echo "$as_me: failed program was:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17765
17766 ( exit $ac_status )
17767 ac_cv_c_bigendian=yes
17768 fi
17769 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17770 fi
17771 fi
17772 fi
17773 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17774 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17775 if test $ac_cv_c_bigendian = unknown; then
17776 { 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
17777 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;}
17778 fi
17779 if test $ac_cv_c_bigendian = yes; then
17780 cat >>confdefs.h <<\_ACEOF
17781 #define WORDS_BIGENDIAN 1
17782 _ACEOF
17783
17784 fi
17785
17786
17787
17788 ac_ext=cc
17789 ac_cpp='$CXXCPP $CPPFLAGS'
17790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17793 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17794 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17795 if test -z "$CXXCPP"; then
17796 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799 # Double quotes because CXXCPP needs to be expanded
17800 for CXXCPP in "$CXX -E" "/lib/cpp"
17801 do
17802 ac_preproc_ok=false
17803 for ac_cxx_preproc_warn_flag in '' yes
17804 do
17805 # Use a header file that comes with gcc, so configuring glibc
17806 # with a fresh cross-compiler works.
17807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17808 # <limits.h> exists even on freestanding compilers.
17809 # On the NeXT, cc -E runs the code through the compiler's parser,
17810 # not just through cpp. "Syntax error" is here to catch this case.
17811 cat >conftest.$ac_ext <<_ACEOF
17812 /* confdefs.h. */
17813 _ACEOF
17814 cat confdefs.h >>conftest.$ac_ext
17815 cat >>conftest.$ac_ext <<_ACEOF
17816 /* end confdefs.h. */
17817 #ifdef __STDC__
17818 # include <limits.h>
17819 #else
17820 # include <assert.h>
17821 #endif
17822 Syntax error
17823 _ACEOF
17824 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } >/dev/null; then
17832 if test -s conftest.err; then
17833 ac_cpp_err=$ac_cxx_preproc_warn_flag
17834 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17835 else
17836 ac_cpp_err=
17837 fi
17838 else
17839 ac_cpp_err=yes
17840 fi
17841 if test -z "$ac_cpp_err"; then
17842 :
17843 else
17844 echo "$as_me: failed program was:" >&5
17845 sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 # Broken: fails on valid input.
17848 continue
17849 fi
17850 rm -f conftest.err conftest.$ac_ext
17851
17852 # OK, works on sane cases. Now check whether non-existent headers
17853 # can be detected and how.
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h. */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 #include <ac_nonexistent.h>
17861 _ACEOF
17862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } >/dev/null; then
17870 if test -s conftest.err; then
17871 ac_cpp_err=$ac_cxx_preproc_warn_flag
17872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17873 else
17874 ac_cpp_err=
17875 fi
17876 else
17877 ac_cpp_err=yes
17878 fi
17879 if test -z "$ac_cpp_err"; then
17880 # Broken: success on invalid input.
17881 continue
17882 else
17883 echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 # Passes both tests.
17887 ac_preproc_ok=:
17888 break
17889 fi
17890 rm -f conftest.err conftest.$ac_ext
17891
17892 done
17893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17894 rm -f conftest.err conftest.$ac_ext
17895 if $ac_preproc_ok; then
17896 break
17897 fi
17898
17899 done
17900 ac_cv_prog_CXXCPP=$CXXCPP
17901
17902 fi
17903 CXXCPP=$ac_cv_prog_CXXCPP
17904 else
17905 ac_cv_prog_CXXCPP=$CXXCPP
17906 fi
17907 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17908 echo "${ECHO_T}$CXXCPP" >&6
17909 ac_preproc_ok=false
17910 for ac_cxx_preproc_warn_flag in '' yes
17911 do
17912 # Use a header file that comes with gcc, so configuring glibc
17913 # with a fresh cross-compiler works.
17914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17915 # <limits.h> exists even on freestanding compilers.
17916 # On the NeXT, cc -E runs the code through the compiler's parser,
17917 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
17925 # include <limits.h>
17926 #else
17927 # include <assert.h>
17928 #endif
17929 Syntax error
17930 _ACEOF
17931 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } >/dev/null; then
17939 if test -s conftest.err; then
17940 ac_cpp_err=$ac_cxx_preproc_warn_flag
17941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17942 else
17943 ac_cpp_err=
17944 fi
17945 else
17946 ac_cpp_err=yes
17947 fi
17948 if test -z "$ac_cpp_err"; then
17949 :
17950 else
17951 echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17953
17954 # Broken: fails on valid input.
17955 continue
17956 fi
17957 rm -f conftest.err conftest.$ac_ext
17958
17959 # OK, works on sane cases. Now check whether non-existent headers
17960 # can be detected and how.
17961 cat >conftest.$ac_ext <<_ACEOF
17962 /* confdefs.h. */
17963 _ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17967 #include <ac_nonexistent.h>
17968 _ACEOF
17969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17971 ac_status=$?
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } >/dev/null; then
17977 if test -s conftest.err; then
17978 ac_cpp_err=$ac_cxx_preproc_warn_flag
17979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17980 else
17981 ac_cpp_err=
17982 fi
17983 else
17984 ac_cpp_err=yes
17985 fi
17986 if test -z "$ac_cpp_err"; then
17987 # Broken: success on invalid input.
17988 continue
17989 else
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993 # Passes both tests.
17994 ac_preproc_ok=:
17995 break
17996 fi
17997 rm -f conftest.err conftest.$ac_ext
17998
17999 done
18000 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18001 rm -f conftest.err conftest.$ac_ext
18002 if $ac_preproc_ok; then
18003 :
18004 else
18005 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18006 See \`config.log' for more details." >&5
18007 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18008 See \`config.log' for more details." >&2;}
18009 { (exit 1); exit 1; }; }
18010 fi
18011
18012 ac_ext=cc
18013 ac_cpp='$CXXCPP $CPPFLAGS'
18014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18017
18018
18019
18020 if test "$cross_compiling" = "yes"; then
18021 cat >>confdefs.h <<\_ACEOF
18022 #define wxUSE_IOSTREAMH 1
18023 _ACEOF
18024
18025 else
18026
18027
18028 ac_ext=cc
18029 ac_cpp='$CXXCPP $CPPFLAGS'
18030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18033
18034
18035
18036 for ac_header in iostream
18037 do
18038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18040 echo "$as_me:$LINENO: checking for $ac_header" >&5
18041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044 fi
18045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18047 else
18048 # Is the header compilable?
18049 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h. */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 $ac_includes_default
18058 #include <$ac_header>
18059 _ACEOF
18060 rm -f conftest.$ac_objext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18062 (eval $ac_compile) 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_cxx_werror_flag"
18070 || test ! -s conftest.err'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_header_compiler=yes
18083 else
18084 echo "$as_me: failed program was:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18086
18087 ac_header_compiler=no
18088 fi
18089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18091 echo "${ECHO_T}$ac_header_compiler" >&6
18092
18093 # Is the header present?
18094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18096 cat >conftest.$ac_ext <<_ACEOF
18097 /* confdefs.h. */
18098 _ACEOF
18099 cat confdefs.h >>conftest.$ac_ext
18100 cat >>conftest.$ac_ext <<_ACEOF
18101 /* end confdefs.h. */
18102 #include <$ac_header>
18103 _ACEOF
18104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18106 ac_status=$?
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } >/dev/null; then
18112 if test -s conftest.err; then
18113 ac_cpp_err=$ac_cxx_preproc_warn_flag
18114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18115 else
18116 ac_cpp_err=
18117 fi
18118 else
18119 ac_cpp_err=yes
18120 fi
18121 if test -z "$ac_cpp_err"; then
18122 ac_header_preproc=yes
18123 else
18124 echo "$as_me: failed program was:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ac_header_preproc=no
18128 fi
18129 rm -f conftest.err conftest.$ac_ext
18130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18131 echo "${ECHO_T}$ac_header_preproc" >&6
18132
18133 # So? What about this header?
18134 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18135 yes:no: )
18136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18140 ac_header_preproc=yes
18141 ;;
18142 no:yes:* )
18143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18155 (
18156 cat <<\_ASBOX
18157 ## ----------------------------------------- ##
18158 ## Report this to wx-dev@lists.wxwindows.org ##
18159 ## ----------------------------------------- ##
18160 _ASBOX
18161 ) |
18162 sed "s/^/$as_me: WARNING: /" >&2
18163 ;;
18164 esac
18165 echo "$as_me:$LINENO: checking for $ac_header" >&5
18166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 else
18170 eval "$as_ac_Header=\$ac_header_preproc"
18171 fi
18172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18174
18175 fi
18176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18177 cat >>confdefs.h <<_ACEOF
18178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18179 _ACEOF
18180
18181 fi
18182
18183 done
18184
18185
18186 if test "$ac_cv_header_iostream" = "yes" ; then
18187 :
18188 else
18189 cat >>confdefs.h <<\_ACEOF
18190 #define wxUSE_IOSTREAMH 1
18191 _ACEOF
18192
18193 fi
18194
18195 ac_ext=c
18196 ac_cpp='$CPP $CPPFLAGS'
18197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18200
18201 fi
18202
18203
18204
18205 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18206 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18207 if test "${wx_cv_cpp_bool+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210
18211
18212
18213 ac_ext=cc
18214 ac_cpp='$CXXCPP $CPPFLAGS'
18215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18218
18219
18220 cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h. */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226
18227
18228 int
18229 main ()
18230 {
18231
18232 bool b = true;
18233
18234 return 0;
18235
18236 ;
18237 return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest.$ac_objext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18242 (eval $ac_compile) 2>conftest.er1
18243 ac_status=$?
18244 grep -v '^ *+' conftest.er1 >conftest.err
18245 rm -f conftest.er1
18246 cat conftest.err >&5
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
18249 { ac_try='test -z "$ac_cxx_werror_flag"
18250 || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18262
18263 wx_cv_cpp_bool=yes
18264
18265 else
18266 echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269
18270 wx_cv_cpp_bool=no
18271
18272
18273 fi
18274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18275
18276 ac_ext=c
18277 ac_cpp='$CPP $CPPFLAGS'
18278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18281
18282
18283 fi
18284 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18285 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18286
18287 if test "$wx_cv_cpp_bool" = "yes"; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE_BOOL 1
18290 _ACEOF
18291
18292 fi
18293
18294
18295
18296 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18297 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18298 if test "${wx_cv_explicit+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18300 else
18301
18302
18303
18304 ac_ext=cc
18305 ac_cpp='$CXXCPP $CPPFLAGS'
18306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18309
18310
18311 cat >conftest.$ac_ext <<_ACEOF
18312 /* confdefs.h. */
18313 _ACEOF
18314 cat confdefs.h >>conftest.$ac_ext
18315 cat >>conftest.$ac_ext <<_ACEOF
18316 /* end confdefs.h. */
18317
18318 class Foo { public: explicit Foo(int) {} };
18319
18320 int
18321 main ()
18322 {
18323
18324 return 0;
18325
18326 ;
18327 return 0;
18328 }
18329 _ACEOF
18330 rm -f conftest.$ac_objext
18331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18332 (eval $ac_compile) 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
18339 { ac_try='test -z "$ac_cxx_werror_flag"
18340 || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest.$ac_objext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352
18353 cat >conftest.$ac_ext <<_ACEOF
18354 /* confdefs.h. */
18355 _ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18359
18360 class Foo { public: explicit Foo(int) {} };
18361 static void TakeFoo(const Foo& foo) { }
18362
18363 int
18364 main ()
18365 {
18366
18367 TakeFoo(17);
18368 return 0;
18369
18370 ;
18371 return 0;
18372 }
18373 _ACEOF
18374 rm -f conftest.$ac_objext
18375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18376 (eval $ac_compile) 2>conftest.er1
18377 ac_status=$?
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
18383 { ac_try='test -z "$ac_cxx_werror_flag"
18384 || test ! -s conftest.err'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest.$ac_objext'
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
18396 wx_cv_explicit=no
18397 else
18398 echo "$as_me: failed program was:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18400
18401 wx_cv_explicit=yes
18402
18403 fi
18404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18405
18406 else
18407 echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410 wx_cv_explicit=no
18411
18412 fi
18413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18414
18415 ac_ext=c
18416 ac_cpp='$CPP $CPPFLAGS'
18417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18420
18421
18422 fi
18423 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18424 echo "${ECHO_T}$wx_cv_explicit" >&6
18425
18426 if test "$wx_cv_explicit" = "yes"; then
18427 cat >>confdefs.h <<\_ACEOF
18428 #define HAVE_EXPLICIT 1
18429 _ACEOF
18430
18431 fi
18432
18433
18434 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18435 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18436 if test "${ac_cv_cxx_const_cast+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439
18440
18441 ac_ext=cc
18442 ac_cpp='$CXXCPP $CPPFLAGS'
18443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18446
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453
18454 int
18455 main ()
18456 {
18457 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
18458 ;
18459 return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext
18463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18464 (eval $ac_compile) 2>conftest.er1
18465 ac_status=$?
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
18471 { ac_try='test -z "$ac_cxx_werror_flag"
18472 || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest.$ac_objext'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18484 ac_cv_cxx_const_cast=yes
18485 else
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18488
18489 ac_cv_cxx_const_cast=no
18490 fi
18491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18492 ac_ext=c
18493 ac_cpp='$CPP $CPPFLAGS'
18494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18497
18498
18499 fi
18500 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18501 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
18502 if test "$ac_cv_cxx_const_cast" = yes; then
18503
18504 cat >>confdefs.h <<\_ACEOF
18505 #define HAVE_CONST_CAST
18506 _ACEOF
18507
18508 fi
18509
18510
18511 if test "$wxUSE_STL" = "yes"; then
18512 ac_ext=cc
18513 ac_cpp='$CXXCPP $CPPFLAGS'
18514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18517
18518
18519 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18520 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18521 cat >conftest.$ac_ext <<_ACEOF
18522 /* confdefs.h. */
18523 _ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 #include <string>
18528 #include <functional>
18529 #include <algorithm>
18530 #include <vector>
18531 #include <list>
18532 int
18533 main ()
18534 {
18535 std::vector<int> moo;
18536 std::list<int> foo;
18537 std::vector<int>::iterator it =
18538 std::find_if(moo.begin(), moo.end(),
18539 std::bind2nd(std::less<int>(), 3));
18540 ;
18541 return 0;
18542 }
18543 _ACEOF
18544 rm -f conftest.$ac_objext
18545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18546 (eval $ac_compile) 2>conftest.er1
18547 ac_status=$?
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
18553 { ac_try='test -z "$ac_cxx_werror_flag"
18554 || test ! -s conftest.err'
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest.$ac_objext'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
18566 echo "$as_me:$LINENO: result: yes" >&5
18567 echo "${ECHO_T}yes" >&6
18568 else
18569 echo "$as_me: failed program was:" >&5
18570 sed 's/^/| /' conftest.$ac_ext >&5
18571
18572 echo "$as_me:$LINENO: result: no" >&5
18573 echo "${ECHO_T}no" >&6
18574 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18575 echo "$as_me: error: Basic STL functionality missing" >&2;}
18576 { (exit 1); exit 1; }; }
18577 fi
18578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18579
18580 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18581 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <string>
18589 int
18590 main ()
18591 {
18592 std::wstring foo;
18593 ;
18594 return 0;
18595 }
18596 _ACEOF
18597 rm -f conftest.$ac_objext
18598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18599 (eval $ac_compile) 2>conftest.er1
18600 ac_status=$?
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_cxx_werror_flag"
18607 || test ! -s conftest.err'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest.$ac_objext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 echo "$as_me:$LINENO: result: yes" >&5
18620 echo "${ECHO_T}yes" >&6
18621 cat >>confdefs.h <<\_ACEOF
18622 #define HAVE_STD_WSTRING 1
18623 _ACEOF
18624
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 echo "$as_me:$LINENO: result: no" >&5
18630 echo "${ECHO_T}no" >&6
18631 fi
18632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18633
18634 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18635 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 #include <string>
18643 int
18644 main ()
18645 {
18646 std::string foo, bar;
18647 foo.compare(bar);
18648 foo.compare(1, 1, bar);
18649 foo.compare(1, 1, bar, 1, 1);
18650 foo.compare("");
18651 foo.compare(1, 1, "");
18652 foo.compare(1, 1, "", 2);
18653 ;
18654 return 0;
18655 }
18656 _ACEOF
18657 rm -f conftest.$ac_objext
18658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18659 (eval $ac_compile) 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); } &&
18666 { ac_try='test -z "$ac_cxx_werror_flag"
18667 || test ! -s conftest.err'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest.$ac_objext'
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 echo "$as_me:$LINENO: result: yes" >&5
18680 echo "${ECHO_T}yes" >&6
18681 cat >>confdefs.h <<\_ACEOF
18682 #define HAVE_STD_STRING_COMPARE 1
18683 _ACEOF
18684
18685 else
18686 echo "$as_me: failed program was:" >&5
18687 sed 's/^/| /' conftest.$ac_ext >&5
18688
18689 echo "$as_me:$LINENO: result: no" >&5
18690 echo "${ECHO_T}no" >&6
18691 fi
18692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18693
18694 ac_ext=c
18695 ac_cpp='$CPP $CPPFLAGS'
18696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18699
18700 fi
18701
18702
18703 SEARCH_INCLUDE="\
18704 /usr/local/include \
18705 \
18706 /usr/Motif-1.2/include \
18707 /usr/Motif-2.1/include \
18708 \
18709 /usr/include/Motif1.2 \
18710 /opt/xpm/include/X11 \
18711 /opt/GBxpm/include/ \
18712 /opt/GBxpm/X11/include/ \
18713 \
18714 /usr/Motif1.2/include \
18715 /usr/dt/include \
18716 /usr/openwin/include \
18717 \
18718 /usr/include/Xm \
18719 \
18720 /usr/X11R6/include \
18721 /usr/X11R6.4/include \
18722 /usr/X11R5/include \
18723 /usr/X11R4/include \
18724 \
18725 /usr/include/X11R6 \
18726 /usr/include/X11R5 \
18727 /usr/include/X11R4 \
18728 \
18729 /usr/local/X11R6/include \
18730 /usr/local/X11R5/include \
18731 /usr/local/X11R4/include \
18732 \
18733 /usr/local/include/X11R6 \
18734 /usr/local/include/X11R5 \
18735 /usr/local/include/X11R4 \
18736 \
18737 /usr/X11/include \
18738 /usr/include/X11 \
18739 /usr/local/X11/include \
18740 /usr/local/include/X11 \
18741 \
18742 /usr/X386/include \
18743 /usr/x386/include \
18744 /usr/XFree86/include/X11 \
18745 \
18746 X:/XFree86/include \
18747 X:/XFree86/include/X11 \
18748 \
18749 /usr/include/gtk \
18750 /usr/local/include/gtk \
18751 /usr/include/glib \
18752 /usr/local/include/glib \
18753 \
18754 /usr/include/qt \
18755 /usr/local/include/qt \
18756 \
18757 /usr/include/windows \
18758 /usr/include/wine \
18759 /usr/local/include/wine \
18760 \
18761 /usr/unsupported/include \
18762 /usr/athena/include \
18763 /usr/local/x11r5/include \
18764 /usr/lpp/Xamples/include \
18765 \
18766 /usr/openwin/share/include"
18767
18768 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18769
18770
18771 cat >confcache <<\_ACEOF
18772 # This file is a shell script that caches the results of configure
18773 # tests run on this system so they can be shared between configure
18774 # scripts and configure runs, see configure's option --config-cache.
18775 # It is not useful on other systems. If it contains results you don't
18776 # want to keep, you may remove or edit it.
18777 #
18778 # config.status only pays attention to the cache file if you give it
18779 # the --recheck option to rerun configure.
18780 #
18781 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18782 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18783 # following values.
18784
18785 _ACEOF
18786
18787 # The following way of writing the cache mishandles newlines in values,
18788 # but we know of no workaround that is simple, portable, and efficient.
18789 # So, don't put newlines in cache variables' values.
18790 # Ultrix sh set writes to stderr and can't be redirected directly,
18791 # and sets the high bit in the cache file unless we assign to the vars.
18792 {
18793 (set) 2>&1 |
18794 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18795 *ac_space=\ *)
18796 # `set' does not quote correctly, so add quotes (double-quote
18797 # substitution turns \\\\ into \\, and sed turns \\ into \).
18798 sed -n \
18799 "s/'/'\\\\''/g;
18800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18801 ;;
18802 *)
18803 # `set' quotes correctly as required by POSIX, so do not add quotes.
18804 sed -n \
18805 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18806 ;;
18807 esac;
18808 } |
18809 sed '
18810 t clear
18811 : clear
18812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18813 t end
18814 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18815 : end' >>confcache
18816 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18817 if test -w $cache_file; then
18818 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18819 cat confcache >$cache_file
18820 else
18821 echo "not updating unwritable cache $cache_file"
18822 fi
18823 fi
18824 rm -f confcache
18825
18826 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
18827 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18828 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18829 if test "${wx_cv_lib_glibc21+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832
18833 cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h. */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 #include <features.h>
18840 int
18841 main ()
18842 {
18843
18844 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18845 #error not glibc2.1
18846 #endif
18847
18848 ;
18849 return 0;
18850 }
18851 _ACEOF
18852 rm -f conftest.$ac_objext
18853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18854 (eval $ac_compile) 2>conftest.er1
18855 ac_status=$?
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
18861 { ac_try='test -z "$ac_c_werror_flag"
18862 || test ! -s conftest.err'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; } &&
18868 { ac_try='test -s conftest.$ac_objext'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874
18875 wx_cv_lib_glibc21=yes
18876
18877 else
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881
18882 wx_cv_lib_glibc21=no
18883
18884
18885 fi
18886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18887
18888 fi
18889 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18890 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
18891 if test "$wx_cv_lib_glibc21" = "yes"; then
18892 cat >>confdefs.h <<\_ACEOF
18893 #define wxHAVE_GLIBC2 1
18894 _ACEOF
18895
18896 fi
18897 fi
18898
18899 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18900 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
18901 cat >>confdefs.h <<\_ACEOF
18902 #define _GNU_SOURCE 1
18903 _ACEOF
18904
18905 fi
18906 fi
18907
18908
18909
18910 if test "$wxUSE_REGEX" != "no"; then
18911 cat >>confdefs.h <<\_ACEOF
18912 #define wxUSE_REGEX 1
18913 _ACEOF
18914
18915
18916 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18917 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
18918 echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
18919 wxUSE_REGEX=builtin
18920 fi
18921
18922 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
18923 if test "${ac_cv_header_regex_h+set}" = set; then
18924 echo "$as_me:$LINENO: checking for regex.h" >&5
18925 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18926 if test "${ac_cv_header_regex_h+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 fi
18929 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18930 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18931 else
18932 # Is the header compilable?
18933 echo "$as_me:$LINENO: checking regex.h usability" >&5
18934 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18935 cat >conftest.$ac_ext <<_ACEOF
18936 /* confdefs.h. */
18937 _ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18941 $ac_includes_default
18942 #include <regex.h>
18943 _ACEOF
18944 rm -f conftest.$ac_objext
18945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18946 (eval $ac_compile) 2>conftest.er1
18947 ac_status=$?
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_header_compiler=yes
18967 else
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_header_compiler=no
18972 fi
18973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18974 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975 echo "${ECHO_T}$ac_header_compiler" >&6
18976
18977 # Is the header present?
18978 echo "$as_me:$LINENO: checking regex.h presence" >&5
18979 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18980 cat >conftest.$ac_ext <<_ACEOF
18981 /* confdefs.h. */
18982 _ACEOF
18983 cat confdefs.h >>conftest.$ac_ext
18984 cat >>conftest.$ac_ext <<_ACEOF
18985 /* end confdefs.h. */
18986 #include <regex.h>
18987 _ACEOF
18988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null; then
18996 if test -s conftest.err; then
18997 ac_cpp_err=$ac_c_preproc_warn_flag
18998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18999 else
19000 ac_cpp_err=
19001 fi
19002 else
19003 ac_cpp_err=yes
19004 fi
19005 if test -z "$ac_cpp_err"; then
19006 ac_header_preproc=yes
19007 else
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 ac_header_preproc=no
19012 fi
19013 rm -f conftest.err conftest.$ac_ext
19014 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015 echo "${ECHO_T}$ac_header_preproc" >&6
19016
19017 # So? What about this header?
19018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19019 yes:no: )
19020 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19021 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19023 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19024 ac_header_preproc=yes
19025 ;;
19026 no:yes:* )
19027 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19028 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19029 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19030 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19032 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19034 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
19035 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19036 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19037 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19038 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19039 (
19040 cat <<\_ASBOX
19041 ## ----------------------------------------- ##
19042 ## Report this to wx-dev@lists.wxwindows.org ##
19043 ## ----------------------------------------- ##
19044 _ASBOX
19045 ) |
19046 sed "s/^/$as_me: WARNING: /" >&2
19047 ;;
19048 esac
19049 echo "$as_me:$LINENO: checking for regex.h" >&5
19050 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19051 if test "${ac_cv_header_regex_h+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 else
19054 ac_cv_header_regex_h=$ac_header_preproc
19055 fi
19056 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19057 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19058
19059 fi
19060 if test $ac_cv_header_regex_h = yes; then
19061
19062 for ac_func in regcomp
19063 do
19064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19065 echo "$as_me:$LINENO: checking for $ac_func" >&5
19066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19067 if eval "test \"\${$as_ac_var+set}\" = set"; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070 cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h. */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h. */
19076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19078 #define $ac_func innocuous_$ac_func
19079
19080 /* System header to define __stub macros and hopefully few prototypes,
19081 which can conflict with char $ac_func (); below.
19082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19083 <limits.h> exists even on freestanding compilers. */
19084
19085 #ifdef __STDC__
19086 # include <limits.h>
19087 #else
19088 # include <assert.h>
19089 #endif
19090
19091 #undef $ac_func
19092
19093 /* Override any gcc2 internal prototype to avoid an error. */
19094 #ifdef __cplusplus
19095 extern "C"
19096 {
19097 #endif
19098 /* We use char because int might match the return type of a gcc2
19099 builtin and then its argument prototype would still apply. */
19100 char $ac_func ();
19101 /* The GNU C library defines this for functions which it implements
19102 to always fail with ENOSYS. Some functions are actually named
19103 something starting with __ and the normal name is an alias. */
19104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19105 choke me
19106 #else
19107 char (*f) () = $ac_func;
19108 #endif
19109 #ifdef __cplusplus
19110 }
19111 #endif
19112
19113 int
19114 main ()
19115 {
19116 return f != $ac_func;
19117 ;
19118 return 0;
19119 }
19120 _ACEOF
19121 rm -f conftest.$ac_objext conftest$ac_exeext
19122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19123 (eval $ac_link) 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
19130 { ac_try='test -z "$ac_c_werror_flag"
19131 || test ! -s conftest.err'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest$ac_exeext'
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 eval "$as_ac_var=yes"
19144 else
19145 echo "$as_me: failed program was:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19147
19148 eval "$as_ac_var=no"
19149 fi
19150 rm -f conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 fi
19153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19154 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19155 if test `eval echo '${'$as_ac_var'}'` = yes; then
19156 cat >>confdefs.h <<_ACEOF
19157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19158 _ACEOF
19159
19160 fi
19161 done
19162
19163 fi
19164
19165
19166
19167 if test "x$ac_cv_func_regcomp" != "xyes"; then
19168 if test "$wxUSE_REGEX" = "sys" ; then
19169 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19170 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19171 { (exit 1); exit 1; }; }
19172 else
19173 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19174 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19175 wxUSE_REGEX=builtin
19176 fi
19177 else
19178 wxUSE_REGEX=sys
19179 fi
19180 fi
19181 fi
19182
19183
19184 ZLIB_LINK=
19185 if test "$wxUSE_ZLIB" != "no" ; then
19186 cat >>confdefs.h <<\_ACEOF
19187 #define wxUSE_ZLIB 1
19188 _ACEOF
19189
19190
19191 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19192 if test "$USE_DARWIN" = 1; then
19193 system_zlib_h_ok="yes"
19194 else
19195 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19196 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19197 if test "${ac_cv_header_zlib_h+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199 else
19200 if test "$cross_compiling" = yes; then
19201 unset ac_cv_header_zlib_h
19202
19203 else
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210
19211 #include <zlib.h>
19212 #include <stdio.h>
19213
19214 int main()
19215 {
19216 FILE *f=fopen("conftestval", "w");
19217 if (!f) exit(1);
19218 fprintf(f, "%s",
19219 ZLIB_VERSION[0] == '1' &&
19220 (ZLIB_VERSION[2] > '1' ||
19221 (ZLIB_VERSION[2] == '1' &&
19222 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19223 exit(0);
19224 }
19225
19226 _ACEOF
19227 rm -f conftest$ac_exeext
19228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229 (eval $ac_link) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_cv_header_zlib_h=`cat conftestval`
19239 else
19240 echo "$as_me: program exited with status $ac_status" >&5
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 ( exit $ac_status )
19245 ac_cv_header_zlib_h=no
19246 fi
19247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19248 fi
19249
19250 fi
19251 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19252 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19253 if test "${ac_cv_header_zlib_h+set}" = set; then
19254 echo "$as_me:$LINENO: checking for zlib.h" >&5
19255 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19256 if test "${ac_cv_header_zlib_h+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19258 fi
19259 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19260 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19261 else
19262 # Is the header compilable?
19263 echo "$as_me:$LINENO: checking zlib.h usability" >&5
19264 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
19270 /* end confdefs.h. */
19271 $ac_includes_default
19272 #include <zlib.h>
19273 _ACEOF
19274 rm -f conftest.$ac_objext
19275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19276 (eval $ac_compile) 2>conftest.er1
19277 ac_status=$?
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
19283 { ac_try='test -z "$ac_c_werror_flag"
19284 || test ! -s conftest.err'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_header_compiler=yes
19297 else
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19300
19301 ac_header_compiler=no
19302 fi
19303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19305 echo "${ECHO_T}$ac_header_compiler" >&6
19306
19307 # Is the header present?
19308 echo "$as_me:$LINENO: checking zlib.h presence" >&5
19309 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19310 cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h. */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 #include <zlib.h>
19317 _ACEOF
19318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } >/dev/null; then
19326 if test -s conftest.err; then
19327 ac_cpp_err=$ac_c_preproc_warn_flag
19328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19329 else
19330 ac_cpp_err=
19331 fi
19332 else
19333 ac_cpp_err=yes
19334 fi
19335 if test -z "$ac_cpp_err"; then
19336 ac_header_preproc=yes
19337 else
19338 echo "$as_me: failed program was:" >&5
19339 sed 's/^/| /' conftest.$ac_ext >&5
19340
19341 ac_header_preproc=no
19342 fi
19343 rm -f conftest.err conftest.$ac_ext
19344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19345 echo "${ECHO_T}$ac_header_preproc" >&6
19346
19347 # So? What about this header?
19348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19349 yes:no: )
19350 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19351 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19352 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19353 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19354 ac_header_preproc=yes
19355 ;;
19356 no:yes:* )
19357 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19358 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
19359 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19360 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19362 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19364 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
19365 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19366 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19367 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19368 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
19369 (
19370 cat <<\_ASBOX
19371 ## ----------------------------------------- ##
19372 ## Report this to wx-dev@lists.wxwindows.org ##
19373 ## ----------------------------------------- ##
19374 _ASBOX
19375 ) |
19376 sed "s/^/$as_me: WARNING: /" >&2
19377 ;;
19378 esac
19379 echo "$as_me:$LINENO: checking for zlib.h" >&5
19380 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19381 if test "${ac_cv_header_zlib_h+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 else
19384 ac_cv_header_zlib_h=$ac_header_preproc
19385 fi
19386 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19387 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19388
19389 fi
19390
19391
19392
19393 system_zlib_h_ok=$ac_cv_header_zlib_h
19394 fi
19395
19396 if test "$system_zlib_h_ok" = "yes"; then
19397 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19398 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19399 if test "${ac_cv_lib_z_deflate+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402 ac_check_lib_save_LIBS=$LIBS
19403 LIBS="-lz $LIBS"
19404 cat >conftest.$ac_ext <<_ACEOF
19405 /* confdefs.h. */
19406 _ACEOF
19407 cat confdefs.h >>conftest.$ac_ext
19408 cat >>conftest.$ac_ext <<_ACEOF
19409 /* end confdefs.h. */
19410
19411 /* Override any gcc2 internal prototype to avoid an error. */
19412 #ifdef __cplusplus
19413 extern "C"
19414 #endif
19415 /* We use char because int might match the return type of a gcc2
19416 builtin and then its argument prototype would still apply. */
19417 char deflate ();
19418 int
19419 main ()
19420 {
19421 deflate ();
19422 ;
19423 return 0;
19424 }
19425 _ACEOF
19426 rm -f conftest.$ac_objext conftest$ac_exeext
19427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19428 (eval $ac_link) 2>conftest.er1
19429 ac_status=$?
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
19435 { ac_try='test -z "$ac_c_werror_flag"
19436 || test ! -s conftest.err'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest$ac_exeext'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_cv_lib_z_deflate=yes
19449 else
19450 echo "$as_me: failed program was:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19452
19453 ac_cv_lib_z_deflate=no
19454 fi
19455 rm -f conftest.err conftest.$ac_objext \
19456 conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19458 fi
19459 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19460 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19461 if test $ac_cv_lib_z_deflate = yes; then
19462 ZLIB_LINK=" -lz"
19463 fi
19464
19465 fi
19466
19467 if test "x$ZLIB_LINK" = "x" ; then
19468 if test "$wxUSE_ZLIB" = "sys" ; then
19469 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19470 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19471 { (exit 1); exit 1; }; }
19472 else
19473 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19474 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
19475 wxUSE_ZLIB=builtin
19476 fi
19477 else
19478 wxUSE_ZLIB=sys
19479 fi
19480 fi
19481 fi
19482
19483
19484 PNG_LINK=
19485 if test "$wxUSE_LIBPNG" != "no" ; then
19486 cat >>confdefs.h <<\_ACEOF
19487 #define wxUSE_LIBPNG 1
19488 _ACEOF
19489
19490
19491 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
19492 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19493 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
19494 wxUSE_LIBPNG=sys
19495 fi
19496
19497 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
19498 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19499 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
19500 wxUSE_LIBPNG=builtin
19501 fi
19502
19503 if test "$wxUSE_MGL" != 1 ; then
19504 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
19505 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19506 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19507 if test "${ac_cv_header_png_h+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19509 else
19510 if test "$cross_compiling" = yes; then
19511 unset ac_cv_header_png_h
19512
19513 else
19514 cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h. */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19520
19521 #include <png.h>
19522 #include <stdio.h>
19523
19524 int main()
19525 {
19526 FILE *f=fopen("conftestval", "w");
19527 if (!f) exit(1);
19528 fprintf(f, "%s",
19529 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19530 exit(0);
19531 }
19532
19533 _ACEOF
19534 rm -f conftest$ac_exeext
19535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19536 (eval $ac_link) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
19545 ac_cv_header_png_h=`cat conftestval`
19546 else
19547 echo "$as_me: program exited with status $ac_status" >&5
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551 ( exit $ac_status )
19552 ac_cv_header_png_h=no
19553 fi
19554 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19555 fi
19556
19557 fi
19558 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19559 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19560 if test "${ac_cv_header_png_h+set}" = set; then
19561 echo "$as_me:$LINENO: checking for png.h" >&5
19562 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19563 if test "${ac_cv_header_png_h+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 fi
19566 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19567 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19568 else
19569 # Is the header compilable?
19570 echo "$as_me:$LINENO: checking png.h usability" >&5
19571 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19573 /* confdefs.h. */
19574 _ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19578 $ac_includes_default
19579 #include <png.h>
19580 _ACEOF
19581 rm -f conftest.$ac_objext
19582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19583 (eval $ac_compile) 2>conftest.er1
19584 ac_status=$?
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } &&
19590 { ac_try='test -z "$ac_c_werror_flag"
19591 || test ! -s conftest.err'
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 ac_header_compiler=yes
19604 else
19605 echo "$as_me: failed program was:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19607
19608 ac_header_compiler=no
19609 fi
19610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19611 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19612 echo "${ECHO_T}$ac_header_compiler" >&6
19613
19614 # Is the header present?
19615 echo "$as_me:$LINENO: checking png.h presence" >&5
19616 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19617 cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h. */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19623 #include <png.h>
19624 _ACEOF
19625 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } >/dev/null; then
19633 if test -s conftest.err; then
19634 ac_cpp_err=$ac_c_preproc_warn_flag
19635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19636 else
19637 ac_cpp_err=
19638 fi
19639 else
19640 ac_cpp_err=yes
19641 fi
19642 if test -z "$ac_cpp_err"; then
19643 ac_header_preproc=yes
19644 else
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ac_header_preproc=no
19649 fi
19650 rm -f conftest.err conftest.$ac_ext
19651 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19652 echo "${ECHO_T}$ac_header_preproc" >&6
19653
19654 # So? What about this header?
19655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19656 yes:no: )
19657 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19658 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19659 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19660 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19661 ac_header_preproc=yes
19662 ;;
19663 no:yes:* )
19664 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19665 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
19666 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19667 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19668 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19669 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19671 echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19673 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19675 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
19676 (
19677 cat <<\_ASBOX
19678 ## ----------------------------------------- ##
19679 ## Report this to wx-dev@lists.wxwindows.org ##
19680 ## ----------------------------------------- ##
19681 _ASBOX
19682 ) |
19683 sed "s/^/$as_me: WARNING: /" >&2
19684 ;;
19685 esac
19686 echo "$as_me:$LINENO: checking for png.h" >&5
19687 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19688 if test "${ac_cv_header_png_h+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691 ac_cv_header_png_h=$ac_header_preproc
19692 fi
19693 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19694 echo "${ECHO_T}$ac_cv_header_png_h" >&6
19695
19696 fi
19697
19698
19699
19700 if test "$ac_cv_header_png_h" = "yes"; then
19701 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19702 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19703 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706 ac_check_lib_save_LIBS=$LIBS
19707 LIBS="-lpng -lz -lm $LIBS"
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h. */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714
19715 /* Override any gcc2 internal prototype to avoid an error. */
19716 #ifdef __cplusplus
19717 extern "C"
19718 #endif
19719 /* We use char because int might match the return type of a gcc2
19720 builtin and then its argument prototype would still apply. */
19721 char png_check_sig ();
19722 int
19723 main ()
19724 {
19725 png_check_sig ();
19726 ;
19727 return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19732 (eval $ac_link) 2>conftest.er1
19733 ac_status=$?
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
19739 { ac_try='test -z "$ac_c_werror_flag"
19740 || test ! -s conftest.err'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest$ac_exeext'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_lib_png_png_check_sig=yes
19753 else
19754 echo "$as_me: failed program was:" >&5
19755 sed 's/^/| /' conftest.$ac_ext >&5
19756
19757 ac_cv_lib_png_png_check_sig=no
19758 fi
19759 rm -f conftest.err conftest.$ac_objext \
19760 conftest$ac_exeext conftest.$ac_ext
19761 LIBS=$ac_check_lib_save_LIBS
19762 fi
19763 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19764 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19765 if test $ac_cv_lib_png_png_check_sig = yes; then
19766 PNG_LINK=" -lpng"
19767 fi
19768
19769 fi
19770
19771 if test "x$PNG_LINK" = "x" ; then
19772 if test "$wxUSE_LIBPNG" = "sys" ; then
19773 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19774 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19775 { (exit 1); exit 1; }; }
19776 else
19777 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19778 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
19779 wxUSE_LIBPNG=builtin
19780 fi
19781 else
19782 wxUSE_LIBPNG=sys
19783 fi
19784 fi
19785 fi
19786
19787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
19788 fi
19789
19790
19791 JPEG_LINK=
19792 if test "$wxUSE_LIBJPEG" != "no" ; then
19793 cat >>confdefs.h <<\_ACEOF
19794 #define wxUSE_LIBJPEG 1
19795 _ACEOF
19796
19797
19798 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
19799 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19800 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
19801 wxUSE_LIBJPEG=sys
19802 fi
19803
19804 if test "$wxUSE_MGL" != 1 ; then
19805 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
19806 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19807 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19808 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811 cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h. */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19817
19818 #undef HAVE_STDLIB_H
19819 #include <stdio.h>
19820 #include <jpeglib.h>
19821
19822 int
19823 main ()
19824 {
19825
19826
19827 ;
19828 return 0;
19829 }
19830 _ACEOF
19831 rm -f conftest.$ac_objext
19832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19833 (eval $ac_compile) 2>conftest.er1
19834 ac_status=$?
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
19840 { ac_try='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest.$ac_objext'
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
19853 ac_cv_header_jpeglib_h=yes
19854 else
19855 echo "$as_me: failed program was:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19857
19858 ac_cv_header_jpeglib_h=no
19859
19860 fi
19861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19862
19863 fi
19864
19865 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19866 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19867
19868 if test "$ac_cv_header_jpeglib_h" = "yes"; then
19869 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19870 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19871 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
19873 else
19874 ac_check_lib_save_LIBS=$LIBS
19875 LIBS="-ljpeg $LIBS"
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h. */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882
19883 /* Override any gcc2 internal prototype to avoid an error. */
19884 #ifdef __cplusplus
19885 extern "C"
19886 #endif
19887 /* We use char because int might match the return type of a gcc2
19888 builtin and then its argument prototype would still apply. */
19889 char jpeg_read_header ();
19890 int
19891 main ()
19892 {
19893 jpeg_read_header ();
19894 ;
19895 return 0;
19896 }
19897 _ACEOF
19898 rm -f conftest.$ac_objext conftest$ac_exeext
19899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19900 (eval $ac_link) 2>conftest.er1
19901 ac_status=$?
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
19907 { ac_try='test -z "$ac_c_werror_flag"
19908 || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest$ac_exeext'
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_lib_jpeg_jpeg_read_header=yes
19921 else
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19924
19925 ac_cv_lib_jpeg_jpeg_read_header=no
19926 fi
19927 rm -f conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19929 LIBS=$ac_check_lib_save_LIBS
19930 fi
19931 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19932 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19933 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
19934 JPEG_LINK=" -ljpeg"
19935 fi
19936
19937 fi
19938
19939 if test "x$JPEG_LINK" = "x" ; then
19940 if test "$wxUSE_LIBJPEG" = "sys" ; then
19941 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19942 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19943 { (exit 1); exit 1; }; }
19944 else
19945 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19946 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
19947 wxUSE_LIBJPEG=builtin
19948 fi
19949 else
19950 wxUSE_LIBJPEG=sys
19951 fi
19952 fi
19953 fi
19954 fi
19955
19956
19957 TIFF_LINK=
19958 TIFF_PREREQ_LINKS=-lm
19959 if test "$wxUSE_LIBTIFF" != "no" ; then
19960 cat >>confdefs.h <<\_ACEOF
19961 #define wxUSE_LIBTIFF 1
19962 _ACEOF
19963
19964
19965 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
19966 if test "$wxUSE_LIBJPEG" = "sys"; then
19967 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19968 fi
19969 if test "$wxUSE_ZLIB" = "sys"; then
19970 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19971 fi
19972 if test "${ac_cv_header_tiffio_h+set}" = set; then
19973 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19974 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19975 if test "${ac_cv_header_tiffio_h+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977 fi
19978 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19979 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19980 else
19981 # Is the header compilable?
19982 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19983 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19984 cat >conftest.$ac_ext <<_ACEOF
19985 /* confdefs.h. */
19986 _ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990 $ac_includes_default
19991 #include <tiffio.h>
19992 _ACEOF
19993 rm -f conftest.$ac_objext
19994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19995 (eval $ac_compile) 2>conftest.er1
19996 ac_status=$?
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } &&
20002 { ac_try='test -z "$ac_c_werror_flag"
20003 || test ! -s conftest.err'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; } &&
20009 { ac_try='test -s conftest.$ac_objext'
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
20015 ac_header_compiler=yes
20016 else
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20019
20020 ac_header_compiler=no
20021 fi
20022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20023 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20024 echo "${ECHO_T}$ac_header_compiler" >&6
20025
20026 # Is the header present?
20027 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20028 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 #include <tiffio.h>
20036 _ACEOF
20037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } >/dev/null; then
20045 if test -s conftest.err; then
20046 ac_cpp_err=$ac_c_preproc_warn_flag
20047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20048 else
20049 ac_cpp_err=
20050 fi
20051 else
20052 ac_cpp_err=yes
20053 fi
20054 if test -z "$ac_cpp_err"; then
20055 ac_header_preproc=yes
20056 else
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 ac_header_preproc=no
20061 fi
20062 rm -f conftest.err conftest.$ac_ext
20063 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20064 echo "${ECHO_T}$ac_header_preproc" >&6
20065
20066 # So? What about this header?
20067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20068 yes:no: )
20069 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20070 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20072 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20073 ac_header_preproc=yes
20074 ;;
20075 no:yes:* )
20076 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20077 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20079 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20081 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20083 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20085 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20087 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20088 (
20089 cat <<\_ASBOX
20090 ## ----------------------------------------- ##
20091 ## Report this to wx-dev@lists.wxwindows.org ##
20092 ## ----------------------------------------- ##
20093 _ASBOX
20094 ) |
20095 sed "s/^/$as_me: WARNING: /" >&2
20096 ;;
20097 esac
20098 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20099 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20100 if test "${ac_cv_header_tiffio_h+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103 ac_cv_header_tiffio_h=$ac_header_preproc
20104 fi
20105 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20106 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20107
20108 fi
20109 if test $ac_cv_header_tiffio_h = yes; then
20110
20111 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20112 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20113 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116 ac_check_lib_save_LIBS=$LIBS
20117 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h. */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h. */
20124
20125 /* Override any gcc2 internal prototype to avoid an error. */
20126 #ifdef __cplusplus
20127 extern "C"
20128 #endif
20129 /* We use char because int might match the return type of a gcc2
20130 builtin and then its argument prototype would still apply. */
20131 char TIFFError ();
20132 int
20133 main ()
20134 {
20135 TIFFError ();
20136 ;
20137 return 0;
20138 }
20139 _ACEOF
20140 rm -f conftest.$ac_objext conftest$ac_exeext
20141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20142 (eval $ac_link) 2>conftest.er1
20143 ac_status=$?
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
20149 { ac_try='test -z "$ac_c_werror_flag"
20150 || test ! -s conftest.err'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest$ac_exeext'
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_lib_tiff_TIFFError=yes
20163 else
20164 echo "$as_me: failed program was:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20166
20167 ac_cv_lib_tiff_TIFFError=no
20168 fi
20169 rm -f conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
20171 LIBS=$ac_check_lib_save_LIBS
20172 fi
20173 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20174 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20175 if test $ac_cv_lib_tiff_TIFFError = yes; then
20176 TIFF_LINK=" -ltiff"
20177 fi
20178
20179
20180
20181 fi
20182
20183
20184
20185 if test "x$TIFF_LINK" = "x" ; then
20186 if test "$wxUSE_LIBTIFF" = "sys" ; then
20187 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20188 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20189 { (exit 1); exit 1; }; }
20190 else
20191 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20192 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20193 wxUSE_LIBTIFF=builtin
20194 fi
20195 else
20196 wxUSE_LIBTIFF=sys
20197 fi
20198 fi
20199 fi
20200
20201
20202 if test "$wxUSE_EXPAT" != "no"; then
20203 wxUSE_XML=yes
20204 cat >>confdefs.h <<\_ACEOF
20205 #define wxUSE_EXPAT 1
20206 _ACEOF
20207
20208 cat >>confdefs.h <<\_ACEOF
20209 #define wxUSE_XML 1
20210 _ACEOF
20211
20212
20213 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20214 if test "${ac_cv_header_expat_h+set}" = set; then
20215 echo "$as_me:$LINENO: checking for expat.h" >&5
20216 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20217 if test "${ac_cv_header_expat_h+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219 fi
20220 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20221 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20222 else
20223 # Is the header compilable?
20224 echo "$as_me:$LINENO: checking expat.h usability" >&5
20225 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20226 cat >conftest.$ac_ext <<_ACEOF
20227 /* confdefs.h. */
20228 _ACEOF
20229 cat confdefs.h >>conftest.$ac_ext
20230 cat >>conftest.$ac_ext <<_ACEOF
20231 /* end confdefs.h. */
20232 $ac_includes_default
20233 #include <expat.h>
20234 _ACEOF
20235 rm -f conftest.$ac_objext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20237 (eval $ac_compile) 2>conftest.er1
20238 ac_status=$?
20239 grep -v '^ *+' conftest.er1 >conftest.err
20240 rm -f conftest.er1
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
20244 { ac_try='test -z "$ac_c_werror_flag"
20245 || test ! -s conftest.err'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try='test -s conftest.$ac_objext'
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 ac_header_compiler=yes
20258 else
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20261
20262 ac_header_compiler=no
20263 fi
20264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20266 echo "${ECHO_T}$ac_header_compiler" >&6
20267
20268 # Is the header present?
20269 echo "$as_me:$LINENO: checking expat.h presence" >&5
20270 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20271 cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h. */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 #include <expat.h>
20278 _ACEOF
20279 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20281 ac_status=$?
20282 grep -v '^ *+' conftest.er1 >conftest.err
20283 rm -f conftest.er1
20284 cat conftest.err >&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } >/dev/null; then
20287 if test -s conftest.err; then
20288 ac_cpp_err=$ac_c_preproc_warn_flag
20289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20290 else
20291 ac_cpp_err=
20292 fi
20293 else
20294 ac_cpp_err=yes
20295 fi
20296 if test -z "$ac_cpp_err"; then
20297 ac_header_preproc=yes
20298 else
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ac_header_preproc=no
20303 fi
20304 rm -f conftest.err conftest.$ac_ext
20305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20306 echo "${ECHO_T}$ac_header_preproc" >&6
20307
20308 # So? What about this header?
20309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20310 yes:no: )
20311 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20312 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20314 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20315 ac_header_preproc=yes
20316 ;;
20317 no:yes:* )
20318 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20319 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20321 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20323 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20325 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20327 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20329 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
20330 (
20331 cat <<\_ASBOX
20332 ## ----------------------------------------- ##
20333 ## Report this to wx-dev@lists.wxwindows.org ##
20334 ## ----------------------------------------- ##
20335 _ASBOX
20336 ) |
20337 sed "s/^/$as_me: WARNING: /" >&2
20338 ;;
20339 esac
20340 echo "$as_me:$LINENO: checking for expat.h" >&5
20341 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20342 if test "${ac_cv_header_expat_h+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345 ac_cv_header_expat_h=$ac_header_preproc
20346 fi
20347 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20348 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20349
20350 fi
20351 if test $ac_cv_header_expat_h = yes; then
20352 found_expat_h=1
20353 fi
20354
20355
20356 if test "x$found_expat_h" = "x1"; then
20357 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20358 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20359 if test "${wx_cv_expat_is_not_broken+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 else
20362
20363
20364
20365 ac_ext=cc
20366 ac_cpp='$CXXCPP $CPPFLAGS'
20367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20370
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 #include <expat.h>
20378 int
20379 main ()
20380 {
20381
20382 ;
20383 return 0;
20384 }
20385 _ACEOF
20386 rm -f conftest.$ac_objext
20387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20388 (eval $ac_compile) 2>conftest.er1
20389 ac_status=$?
20390 grep -v '^ *+' conftest.er1 >conftest.err
20391 rm -f conftest.er1
20392 cat conftest.err >&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
20395 { ac_try='test -z "$ac_cxx_werror_flag"
20396 || test ! -s conftest.err'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest.$ac_objext'
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 wx_cv_expat_is_not_broken=yes
20409 else
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20412
20413 wx_cv_expat_is_not_broken=no
20414
20415 fi
20416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20417 ac_ext=c
20418 ac_cpp='$CPP $CPPFLAGS'
20419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20422
20423
20424
20425 fi
20426 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20427 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20428 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20429 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
20430 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20431 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20433 else
20434 ac_check_lib_save_LIBS=$LIBS
20435 LIBS="-lexpat $LIBS"
20436 cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h. */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442
20443 /* Override any gcc2 internal prototype to avoid an error. */
20444 #ifdef __cplusplus
20445 extern "C"
20446 #endif
20447 /* We use char because int might match the return type of a gcc2
20448 builtin and then its argument prototype would still apply. */
20449 char XML_ParserCreate ();
20450 int
20451 main ()
20452 {
20453 XML_ParserCreate ();
20454 ;
20455 return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20460 (eval $ac_link) 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag"
20468 || test ! -s conftest.err'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest$ac_exeext'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_cv_lib_expat_XML_ParserCreate=yes
20481 else
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20484
20485 ac_cv_lib_expat_XML_ParserCreate=no
20486 fi
20487 rm -f conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20490 fi
20491 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20492 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20493 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20494 EXPAT_LINK=" -lexpat"
20495 fi
20496
20497 fi
20498 fi
20499 if test "x$EXPAT_LINK" = "x" ; then
20500 if test "$wxUSE_EXPAT" = "sys" ; then
20501 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20502 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20503 { (exit 1); exit 1; }; }
20504 else
20505 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20506 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20507 wxUSE_EXPAT=builtin
20508 fi
20509 else
20510 wxUSE_EXPAT=sys
20511 fi
20512 fi
20513 if test "$wxUSE_EXPAT" = "builtin" ; then
20514
20515
20516 subdirs="$subdirs src/expat"
20517
20518 fi
20519 fi
20520
20521
20522
20523 if test "$wxUSE_LIBMSPACK" != "no"; then
20524
20525 if test "${ac_cv_header_mspack_h+set}" = set; then
20526 echo "$as_me:$LINENO: checking for mspack.h" >&5
20527 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20528 if test "${ac_cv_header_mspack_h+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 fi
20531 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20532 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20533 else
20534 # Is the header compilable?
20535 echo "$as_me:$LINENO: checking mspack.h usability" >&5
20536 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20537 cat >conftest.$ac_ext <<_ACEOF
20538 /* confdefs.h. */
20539 _ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 $ac_includes_default
20544 #include <mspack.h>
20545 _ACEOF
20546 rm -f conftest.$ac_objext
20547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20548 (eval $ac_compile) 2>conftest.er1
20549 ac_status=$?
20550 grep -v '^ *+' conftest.er1 >conftest.err
20551 rm -f conftest.er1
20552 cat conftest.err >&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
20555 { ac_try='test -z "$ac_c_werror_flag"
20556 || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_header_compiler=yes
20569 else
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20572
20573 ac_header_compiler=no
20574 fi
20575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20577 echo "${ECHO_T}$ac_header_compiler" >&6
20578
20579 # Is the header present?
20580 echo "$as_me:$LINENO: checking mspack.h presence" >&5
20581 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h. */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20588 #include <mspack.h>
20589 _ACEOF
20590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20592 ac_status=$?
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } >/dev/null; then
20598 if test -s conftest.err; then
20599 ac_cpp_err=$ac_c_preproc_warn_flag
20600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20601 else
20602 ac_cpp_err=
20603 fi
20604 else
20605 ac_cpp_err=yes
20606 fi
20607 if test -z "$ac_cpp_err"; then
20608 ac_header_preproc=yes
20609 else
20610 echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 ac_header_preproc=no
20614 fi
20615 rm -f conftest.err conftest.$ac_ext
20616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20617 echo "${ECHO_T}$ac_header_preproc" >&6
20618
20619 # So? What about this header?
20620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20621 yes:no: )
20622 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20623 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20624 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
20625 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
20626 ac_header_preproc=yes
20627 ;;
20628 no:yes:* )
20629 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20630 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20632 echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
20633 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
20634 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
20635 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
20636 echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
20637 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20638 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
20640 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
20641 (
20642 cat <<\_ASBOX
20643 ## ----------------------------------------- ##
20644 ## Report this to wx-dev@lists.wxwindows.org ##
20645 ## ----------------------------------------- ##
20646 _ASBOX
20647 ) |
20648 sed "s/^/$as_me: WARNING: /" >&2
20649 ;;
20650 esac
20651 echo "$as_me:$LINENO: checking for mspack.h" >&5
20652 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20653 if test "${ac_cv_header_mspack_h+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 else
20656 ac_cv_header_mspack_h=$ac_header_preproc
20657 fi
20658 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20659 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20660
20661 fi
20662 if test $ac_cv_header_mspack_h = yes; then
20663 found_mspack_h=1
20664 fi
20665
20666
20667 if test "x$found_mspack_h" = "x1"; then
20668 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20669 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20670 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673 ac_check_lib_save_LIBS=$LIBS
20674 LIBS="-lmspack $LIBS"
20675 cat >conftest.$ac_ext <<_ACEOF
20676 /* confdefs.h. */
20677 _ACEOF
20678 cat confdefs.h >>conftest.$ac_ext
20679 cat >>conftest.$ac_ext <<_ACEOF
20680 /* end confdefs.h. */
20681
20682 /* Override any gcc2 internal prototype to avoid an error. */
20683 #ifdef __cplusplus
20684 extern "C"
20685 #endif
20686 /* We use char because int might match the return type of a gcc2
20687 builtin and then its argument prototype would still apply. */
20688 char mspack_create_chm_decompressor ();
20689 int
20690 main ()
20691 {
20692 mspack_create_chm_decompressor ();
20693 ;
20694 return 0;
20695 }
20696 _ACEOF
20697 rm -f conftest.$ac_objext conftest$ac_exeext
20698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20699 (eval $ac_link) 2>conftest.er1
20700 ac_status=$?
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } &&
20706 { ac_try='test -z "$ac_c_werror_flag"
20707 || test ! -s conftest.err'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest$ac_exeext'
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20720 else
20721 echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.$ac_ext >&5
20723
20724 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20725 fi
20726 rm -f conftest.err conftest.$ac_objext \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20729 fi
20730 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20731 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20732 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20733 MSPACK_LINK=" -lmspack"
20734 fi
20735
20736 fi
20737 if test "x$MSPACK_LINK" = "x" ; then
20738 wxUSE_LIBMSPACK=no
20739 else
20740 cat >>confdefs.h <<\_ACEOF
20741 #define wxUSE_LIBMSPACK 1
20742 _ACEOF
20743
20744 fi
20745 fi
20746
20747
20748
20749 AFMINSTALL=
20750 WIN32INSTALL=
20751
20752 TOOLKIT=
20753 TOOLKIT_INCLUDE=
20754 WIDGET_SET=
20755
20756 if test "$USE_WIN32" = 1 ; then
20757
20758 for ac_header in w32api.h
20759 do
20760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20762 echo "$as_me:$LINENO: checking for $ac_header" >&5
20763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 fi
20767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20769 else
20770 # Is the header compilable?
20771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 $ac_includes_default
20780 #include <$ac_header>
20781 _ACEOF
20782 rm -f conftest.$ac_objext
20783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20784 (eval $ac_compile) 2>conftest.er1
20785 ac_status=$?
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } &&
20791 { ac_try='test -z "$ac_c_werror_flag"
20792 || test ! -s conftest.err'
20793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794 (eval $ac_try) 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 ac_header_compiler=yes
20805 else
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 ac_header_compiler=no
20810 fi
20811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20813 echo "${ECHO_T}$ac_header_compiler" >&6
20814
20815 # Is the header present?
20816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20818 cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h. */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20824 #include <$ac_header>
20825 _ACEOF
20826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } >/dev/null; then
20834 if test -s conftest.err; then
20835 ac_cpp_err=$ac_c_preproc_warn_flag
20836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20837 else
20838 ac_cpp_err=
20839 fi
20840 else
20841 ac_cpp_err=yes
20842 fi
20843 if test -z "$ac_cpp_err"; then
20844 ac_header_preproc=yes
20845 else
20846 echo "$as_me: failed program was:" >&5
20847 sed 's/^/| /' conftest.$ac_ext >&5
20848
20849 ac_header_preproc=no
20850 fi
20851 rm -f conftest.err conftest.$ac_ext
20852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20853 echo "${ECHO_T}$ac_header_preproc" >&6
20854
20855 # So? What about this header?
20856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20857 yes:no: )
20858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20862 ac_header_preproc=yes
20863 ;;
20864 no:yes:* )
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20877 (
20878 cat <<\_ASBOX
20879 ## ----------------------------------------- ##
20880 ## Report this to wx-dev@lists.wxwindows.org ##
20881 ## ----------------------------------------- ##
20882 _ASBOX
20883 ) |
20884 sed "s/^/$as_me: WARNING: /" >&2
20885 ;;
20886 esac
20887 echo "$as_me:$LINENO: checking for $ac_header" >&5
20888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 else
20892 eval "$as_ac_Header=\$ac_header_preproc"
20893 fi
20894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20896
20897 fi
20898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20899 cat >>confdefs.h <<_ACEOF
20900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20901 _ACEOF
20902
20903 fi
20904
20905 done
20906
20907 if test "${ac_cv_header_windows_h+set}" = set; then
20908 echo "$as_me:$LINENO: checking for windows.h" >&5
20909 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20910 if test "${ac_cv_header_windows_h+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20912 fi
20913 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20914 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20915 else
20916 # Is the header compilable?
20917 echo "$as_me:$LINENO: checking windows.h usability" >&5
20918 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20919 cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h. */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 $ac_includes_default
20926 #include <windows.h>
20927 _ACEOF
20928 rm -f conftest.$ac_objext
20929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20930 (eval $ac_compile) 2>conftest.er1
20931 ac_status=$?
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -z "$ac_c_werror_flag"
20938 || test ! -s conftest.err'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest.$ac_objext'
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 ac_header_compiler=yes
20951 else
20952 echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20954
20955 ac_header_compiler=no
20956 fi
20957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20958 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20959 echo "${ECHO_T}$ac_header_compiler" >&6
20960
20961 # Is the header present?
20962 echo "$as_me:$LINENO: checking windows.h presence" >&5
20963 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h. */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h. */
20970 #include <windows.h>
20971 _ACEOF
20972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20974 ac_status=$?
20975 grep -v '^ *+' conftest.er1 >conftest.err
20976 rm -f conftest.er1
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } >/dev/null; then
20980 if test -s conftest.err; then
20981 ac_cpp_err=$ac_c_preproc_warn_flag
20982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20983 else
20984 ac_cpp_err=
20985 fi
20986 else
20987 ac_cpp_err=yes
20988 fi
20989 if test -z "$ac_cpp_err"; then
20990 ac_header_preproc=yes
20991 else
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 ac_header_preproc=no
20996 fi
20997 rm -f conftest.err conftest.$ac_ext
20998 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20999 echo "${ECHO_T}$ac_header_preproc" >&6
21000
21001 # So? What about this header?
21002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21003 yes:no: )
21004 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21005 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21007 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21008 ac_header_preproc=yes
21009 ;;
21010 no:yes:* )
21011 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21012 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21013 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21014 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21016 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21018 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21020 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21022 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21023 (
21024 cat <<\_ASBOX
21025 ## ----------------------------------------- ##
21026 ## Report this to wx-dev@lists.wxwindows.org ##
21027 ## ----------------------------------------- ##
21028 _ASBOX
21029 ) |
21030 sed "s/^/$as_me: WARNING: /" >&2
21031 ;;
21032 esac
21033 echo "$as_me:$LINENO: checking for windows.h" >&5
21034 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21035 if test "${ac_cv_header_windows_h+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037 else
21038 ac_cv_header_windows_h=$ac_header_preproc
21039 fi
21040 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21041 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21042
21043 fi
21044 if test $ac_cv_header_windows_h = yes; then
21045 :
21046 else
21047
21048 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21049 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21050 { (exit 1); exit 1; }; }
21051
21052 fi
21053
21054
21055
21056 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21057
21058 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21059 LIBS="$LIBS -loleacc"
21060 fi
21061
21062 case "${host}" in
21063 *-*-cygwin* )
21064 LIBS="$LIBS -lkernel32 -luser32"
21065 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21066 esac
21067
21068 if test "$wxUSE_ODBC" = "sys" ; then
21069 wxUSE_ODBC = "yes"
21070 fi
21071 if test "$wxUSE_ODBC" = "yes" ; then
21072 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21073 cat >>confdefs.h <<\_ACEOF
21074 #define wxUSE_ODBC 1
21075 _ACEOF
21076
21077 fi
21078
21079 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21080 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21081
21082 WIN32INSTALL=win32install
21083 fi
21084
21085 if test "$wxUSE_GUI" = "yes"; then
21086 USE_GUI=1
21087
21088 GUI_TK_LIBRARY=
21089
21090 WXGTK12=
21091 WXGTK127=
21092 WXGTK20=
21093
21094 if test "$wxUSE_MSW" = 1 ; then
21095 TOOLKIT=MSW
21096 GUIDIST=MSW_DIST
21097
21098 case "${host}" in
21099 *-*-mingw32* )
21100 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21101 esac
21102 fi
21103
21104 if test "$wxUSE_GTK" = 1; then
21105 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21106 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21107
21108 gtk_version_cached=1
21109 if test "${wx_cv_lib_gtk+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111 else
21112
21113 gtk_version_cached=0
21114 echo "$as_me:$LINENO: result: " >&5
21115 echo "${ECHO_T}" >&6
21116
21117 GTK_MODULES=
21118 if test "$wxUSE_THREADS" = "yes"; then
21119 GTK_MODULES=gthread
21120 fi
21121
21122 wx_cv_lib_gtk=
21123 if test "x$wxUSE_GTK2" = "xyes"; then
21124 # Check whether --enable-gtktest or --disable-gtktest was given.
21125 if test "${enable_gtktest+set}" = set; then
21126 enableval="$enable_gtktest"
21127
21128 else
21129 enable_gtktest=yes
21130 fi;
21131
21132 pkg_config_args=gtk+-2.0
21133 for module in . $GTK_MODULES
21134 do
21135 case "$module" in
21136 gthread)
21137 pkg_config_args="$pkg_config_args gthread-2.0"
21138 ;;
21139 esac
21140 done
21141
21142 no_gtk=""
21143
21144 # Extract the first word of "pkg-config", so it can be a program name with args.
21145 set dummy pkg-config; ac_word=$2
21146 echo "$as_me:$LINENO: checking for $ac_word" >&5
21147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21148 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21150 else
21151 case $PKG_CONFIG in
21152 [\\/]* | ?:[\\/]*)
21153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21154 ;;
21155 *)
21156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21157 for as_dir in $PATH
21158 do
21159 IFS=$as_save_IFS
21160 test -z "$as_dir" && as_dir=.
21161 for ac_exec_ext in '' $ac_executable_extensions; do
21162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21165 break 2
21166 fi
21167 done
21168 done
21169
21170 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21171 ;;
21172 esac
21173 fi
21174 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21175
21176 if test -n "$PKG_CONFIG"; then
21177 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21178 echo "${ECHO_T}$PKG_CONFIG" >&6
21179 else
21180 echo "$as_me:$LINENO: result: no" >&5
21181 echo "${ECHO_T}no" >&6
21182 fi
21183
21184
21185 if test x$PKG_CONFIG != xno ; then
21186 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21187 :
21188 else
21189 echo *** pkg-config too old; version 0.7 or better required.
21190 no_gtk=yes
21191 PKG_CONFIG=no
21192 fi
21193 else
21194 no_gtk=yes
21195 fi
21196
21197 min_gtk_version=2.0.0
21198 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21199 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21200
21201 if test x$PKG_CONFIG != xno ; then
21202 ## don't try to run the test against uninstalled libtool libs
21203 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21204 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21205 enable_gtktest=no
21206 fi
21207
21208 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21209 :
21210 else
21211 no_gtk=yes
21212 fi
21213 fi
21214
21215 if test x"$no_gtk" = x ; then
21216 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21217 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21218 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21219 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21220 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21221 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21222 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21223 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21224 if test "x$enable_gtktest" = "xyes" ; then
21225 ac_save_CFLAGS="$CFLAGS"
21226 ac_save_LIBS="$LIBS"
21227 CFLAGS="$CFLAGS $GTK_CFLAGS"
21228 LIBS="$GTK_LIBS $LIBS"
21229 rm -f conf.gtktest
21230 if test "$cross_compiling" = yes; then
21231 echo $ac_n "cross compiling; assumed OK... $ac_c"
21232 else
21233 cat >conftest.$ac_ext <<_ACEOF
21234 /* confdefs.h. */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239
21240 #include <gtk/gtk.h>
21241 #include <stdio.h>
21242 #include <stdlib.h>
21243
21244 int
21245 main ()
21246 {
21247 int major, minor, micro;
21248 char *tmp_version;
21249
21250 system ("touch conf.gtktest");
21251
21252 /* HP/UX 9 (%@#!) writes to sscanf strings */
21253 tmp_version = g_strdup("$min_gtk_version");
21254 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21255 printf("%s, bad version string\n", "$min_gtk_version");
21256 exit(1);
21257 }
21258
21259 if ((gtk_major_version != $gtk_config_major_version) ||
21260 (gtk_minor_version != $gtk_config_minor_version) ||
21261 (gtk_micro_version != $gtk_config_micro_version))
21262 {
21263 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21264 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21265 gtk_major_version, gtk_minor_version, gtk_micro_version);
21266 printf ("*** was found! If pkg-config was correct, then it is best\n");
21267 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21268 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21269 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21270 printf("*** required on your system.\n");
21271 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21272 printf("*** to point to the correct configuration files\n");
21273 }
21274 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21275 (gtk_minor_version != GTK_MINOR_VERSION) ||
21276 (gtk_micro_version != GTK_MICRO_VERSION))
21277 {
21278 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21279 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21280 printf("*** library (version %d.%d.%d)\n",
21281 gtk_major_version, gtk_minor_version, gtk_micro_version);
21282 }
21283 else
21284 {
21285 if ((gtk_major_version > major) ||
21286 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21287 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21288 {
21289 return 0;
21290 }
21291 else
21292 {
21293 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21294 gtk_major_version, gtk_minor_version, gtk_micro_version);
21295 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21296 major, minor, micro);
21297 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21298 printf("***\n");
21299 printf("*** If you have already installed a sufficiently new version, this error\n");
21300 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21301 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21302 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21303 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21304 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21305 printf("*** so that the correct libraries are found at run-time))\n");
21306 }
21307 }
21308 return 1;
21309 }
21310
21311 _ACEOF
21312 rm -f conftest$ac_exeext
21313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21314 (eval $ac_link) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 :
21324 else
21325 echo "$as_me: program exited with status $ac_status" >&5
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329 ( exit $ac_status )
21330 no_gtk=yes
21331 fi
21332 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21333 fi
21334 CFLAGS="$ac_save_CFLAGS"
21335 LIBS="$ac_save_LIBS"
21336 fi
21337 fi
21338 if test "x$no_gtk" = x ; then
21339 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21340 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21341 wx_cv_lib_gtk=2.0
21342 else
21343 echo "$as_me:$LINENO: result: no" >&5
21344 echo "${ECHO_T}no" >&6
21345 if test "$PKG_CONFIG" = "no" ; then
21346 echo "*** A new enough version of pkg-config was not found."
21347 echo "*** See http://pkgconfig.sourceforge.net"
21348 else
21349 if test -f conf.gtktest ; then
21350 :
21351 else
21352 echo "*** Could not run GTK+ test program, checking why..."
21353 ac_save_CFLAGS="$CFLAGS"
21354 ac_save_LIBS="$LIBS"
21355 CFLAGS="$CFLAGS $GTK_CFLAGS"
21356 LIBS="$LIBS $GTK_LIBS"
21357 cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h. */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363
21364 #include <gtk/gtk.h>
21365 #include <stdio.h>
21366
21367 int
21368 main ()
21369 {
21370 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21371 ;
21372 return 0;
21373 }
21374 _ACEOF
21375 rm -f conftest.$ac_objext conftest$ac_exeext
21376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21377 (eval $ac_link) 2>conftest.er1
21378 ac_status=$?
21379 grep -v '^ *+' conftest.er1 >conftest.err
21380 rm -f conftest.er1
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } &&
21384 { ac_try='test -z "$ac_c_werror_flag"
21385 || test ! -s conftest.err'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; } &&
21391 { ac_try='test -s conftest$ac_exeext'
21392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393 (eval $ac_try) 2>&5
21394 ac_status=$?
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; }; then
21397 echo "*** The test program compiled, but did not run. This usually means"
21398 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21399 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21400 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21401 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21402 echo "*** is required on your system"
21403 echo "***"
21404 echo "*** If you have an old version installed, it is best to remove it, although"
21405 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21406 else
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21409
21410 echo "*** The test program failed to compile or link. See the file config.log for the"
21411 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
21412 fi
21413 rm -f conftest.err conftest.$ac_objext \
21414 conftest$ac_exeext conftest.$ac_ext
21415 CFLAGS="$ac_save_CFLAGS"
21416 LIBS="$ac_save_LIBS"
21417 fi
21418 fi
21419 GTK_CFLAGS=""
21420 GTK_LIBS=""
21421 :
21422 fi
21423
21424
21425 rm -f conf.gtktest
21426
21427 else
21428
21429 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21430 if test "${with_gtk_prefix+set}" = set; then
21431 withval="$with_gtk_prefix"
21432 gtk_config_prefix="$withval"
21433 else
21434 gtk_config_prefix=""
21435 fi;
21436
21437 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21438 if test "${with_gtk_exec_prefix+set}" = set; then
21439 withval="$with_gtk_exec_prefix"
21440 gtk_config_exec_prefix="$withval"
21441 else
21442 gtk_config_exec_prefix=""
21443 fi;
21444 # Check whether --enable-gtktest or --disable-gtktest was given.
21445 if test "${enable_gtktest+set}" = set; then
21446 enableval="$enable_gtktest"
21447
21448 else
21449 enable_gtktest=yes
21450 fi;
21451
21452 for module in . $GTK_MODULES
21453 do
21454 case "$module" in
21455 gthread)
21456 gtk_config_args="$gtk_config_args gthread"
21457 ;;
21458 esac
21459 done
21460
21461 if test x$gtk_config_exec_prefix != x ; then
21462 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21463 if test x${GTK_CONFIG+set} != xset ; then
21464 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21465 fi
21466 fi
21467 if test x$gtk_config_prefix != x ; then
21468 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21469 if test x${GTK_CONFIG+set} != xset ; then
21470 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21471 fi
21472 fi
21473
21474 # Extract the first word of "gtk-config", so it can be a program name with args.
21475 set dummy gtk-config; ac_word=$2
21476 echo "$as_me:$LINENO: checking for $ac_word" >&5
21477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21478 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481 case $GTK_CONFIG in
21482 [\\/]* | ?:[\\/]*)
21483 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21484 ;;
21485 *)
21486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21487 for as_dir in $PATH
21488 do
21489 IFS=$as_save_IFS
21490 test -z "$as_dir" && as_dir=.
21491 for ac_exec_ext in '' $ac_executable_extensions; do
21492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21493 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21495 break 2
21496 fi
21497 done
21498 done
21499
21500 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21501 ;;
21502 esac
21503 fi
21504 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21505
21506 if test -n "$GTK_CONFIG"; then
21507 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21508 echo "${ECHO_T}$GTK_CONFIG" >&6
21509 else
21510 echo "$as_me:$LINENO: result: no" >&5
21511 echo "${ECHO_T}no" >&6
21512 fi
21513
21514 min_gtk_version=1.2.7
21515 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21516 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21517 no_gtk=""
21518 if test "$GTK_CONFIG" = "no" ; then
21519 no_gtk=yes
21520 else
21521 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21522 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21523 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21524 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21525 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21526 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21527 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21528 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21529 if test "x$enable_gtktest" = "xyes" ; then
21530 ac_save_CFLAGS="$CFLAGS"
21531 ac_save_LIBS="$LIBS"
21532 CFLAGS="$CFLAGS $GTK_CFLAGS"
21533 LIBS="$GTK_LIBS $LIBS"
21534 rm -f conf.gtktest
21535 if test "$cross_compiling" = yes; then
21536 echo $ac_n "cross compiling; assumed OK... $ac_c"
21537 else
21538 cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h. */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544
21545 #include <gtk/gtk.h>
21546 #include <stdio.h>
21547 #include <stdlib.h>
21548
21549 int
21550 main ()
21551 {
21552 int major, minor, micro;
21553 char *tmp_version;
21554
21555 system ("touch conf.gtktest");
21556
21557 /* HP/UX 9 (%@#!) writes to sscanf strings */
21558 tmp_version = g_strdup("$min_gtk_version");
21559 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21560 printf("%s, bad version string\n", "$min_gtk_version");
21561 exit(1);
21562 }
21563
21564 if ((gtk_major_version != $gtk_config_major_version) ||
21565 (gtk_minor_version != $gtk_config_minor_version) ||
21566 (gtk_micro_version != $gtk_config_micro_version))
21567 {
21568 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21569 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21570 gtk_major_version, gtk_minor_version, gtk_micro_version);
21571 printf ("*** was found! If gtk-config was correct, then it is best\n");
21572 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21573 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21574 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21575 printf("*** required on your system.\n");
21576 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21577 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21578 printf("*** before re-running configure\n");
21579 }
21580 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21581 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21582 (gtk_minor_version != GTK_MINOR_VERSION) ||
21583 (gtk_micro_version != GTK_MICRO_VERSION))
21584 {
21585 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21586 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21587 printf("*** library (version %d.%d.%d)\n",
21588 gtk_major_version, gtk_minor_version, gtk_micro_version);
21589 }
21590 #endif /* defined (GTK_MAJOR_VERSION) ... */
21591 else
21592 {
21593 if ((gtk_major_version > major) ||
21594 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21595 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21596 {
21597 return 0;
21598 }
21599 else
21600 {
21601 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21602 gtk_major_version, gtk_minor_version, gtk_micro_version);
21603 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21604 major, minor, micro);
21605 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21606 printf("***\n");
21607 printf("*** If you have already installed a sufficiently new version, this error\n");
21608 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21609 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21610 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21611 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21612 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21613 printf("*** so that the correct libraries are found at run-time))\n");
21614 }
21615 }
21616 return 1;
21617 }
21618
21619 _ACEOF
21620 rm -f conftest$ac_exeext
21621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21622 (eval $ac_link) 2>&5
21623 ac_status=$?
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; }; then
21631 :
21632 else
21633 echo "$as_me: program exited with status $ac_status" >&5
21634 echo "$as_me: failed program was:" >&5
21635 sed 's/^/| /' conftest.$ac_ext >&5
21636
21637 ( exit $ac_status )
21638 no_gtk=yes
21639 fi
21640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21641 fi
21642 CFLAGS="$ac_save_CFLAGS"
21643 LIBS="$ac_save_LIBS"
21644 fi
21645 fi
21646 if test "x$no_gtk" = x ; then
21647 echo "$as_me:$LINENO: result: yes" >&5
21648 echo "${ECHO_T}yes" >&6
21649 wx_cv_lib_gtk=1.2.7
21650 else
21651 echo "$as_me:$LINENO: result: no" >&5
21652 echo "${ECHO_T}no" >&6
21653 if test "$GTK_CONFIG" = "no" ; then
21654 echo "*** The gtk-config script installed by GTK could not be found"
21655 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21656 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21657 echo "*** full path to gtk-config."
21658 else
21659 if test -f conf.gtktest ; then
21660 :
21661 else
21662 echo "*** Could not run GTK test program, checking why..."
21663 CFLAGS="$CFLAGS $GTK_CFLAGS"
21664 LIBS="$LIBS $GTK_LIBS"
21665 cat >conftest.$ac_ext <<_ACEOF
21666 /* confdefs.h. */
21667 _ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671
21672 #include <gtk/gtk.h>
21673 #include <stdio.h>
21674
21675 int
21676 main ()
21677 {
21678 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21679 ;
21680 return 0;
21681 }
21682 _ACEOF
21683 rm -f conftest.$ac_objext conftest$ac_exeext
21684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21685 (eval $ac_link) 2>conftest.er1
21686 ac_status=$?
21687 grep -v '^ *+' conftest.er1 >conftest.err
21688 rm -f conftest.er1
21689 cat conftest.err >&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } &&
21692 { ac_try='test -z "$ac_c_werror_flag"
21693 || test ! -s conftest.err'
21694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest$ac_exeext'
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21705 echo "*** The test program compiled, but did not run. This usually means"
21706 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21707 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21708 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21709 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21710 echo "*** is required on your system"
21711 echo "***"
21712 echo "*** If you have an old version installed, it is best to remove it, although"
21713 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21714 echo "***"
21715 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21716 echo "*** came with the system with the command"
21717 echo "***"
21718 echo "*** rpm --erase --nodeps gtk gtk-devel"
21719 else
21720 echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723 echo "*** The test program failed to compile or link. See the file config.log for the"
21724 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21725 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
21726 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
21727 fi
21728 rm -f conftest.err conftest.$ac_objext \
21729 conftest$ac_exeext conftest.$ac_ext
21730 CFLAGS="$ac_save_CFLAGS"
21731 LIBS="$ac_save_LIBS"
21732 fi
21733 fi
21734 GTK_CFLAGS=""
21735 GTK_LIBS=""
21736 :
21737 fi
21738
21739
21740 rm -f conf.gtktest
21741
21742
21743 if test -z "$wx_cv_lib_gtk"; then
21744
21745 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21746 if test "${with_gtk_prefix+set}" = set; then
21747 withval="$with_gtk_prefix"
21748 gtk_config_prefix="$withval"
21749 else
21750 gtk_config_prefix=""
21751 fi;
21752
21753 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21754 if test "${with_gtk_exec_prefix+set}" = set; then
21755 withval="$with_gtk_exec_prefix"
21756 gtk_config_exec_prefix="$withval"
21757 else
21758 gtk_config_exec_prefix=""
21759 fi;
21760 # Check whether --enable-gtktest or --disable-gtktest was given.
21761 if test "${enable_gtktest+set}" = set; then
21762 enableval="$enable_gtktest"
21763
21764 else
21765 enable_gtktest=yes
21766 fi;
21767
21768 for module in . $GTK_MODULES
21769 do
21770 case "$module" in
21771 gthread)
21772 gtk_config_args="$gtk_config_args gthread"
21773 ;;
21774 esac
21775 done
21776
21777 if test x$gtk_config_exec_prefix != x ; then
21778 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21779 if test x${GTK_CONFIG+set} != xset ; then
21780 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21781 fi
21782 fi
21783 if test x$gtk_config_prefix != x ; then
21784 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21785 if test x${GTK_CONFIG+set} != xset ; then
21786 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21787 fi
21788 fi
21789
21790 # Extract the first word of "gtk-config", so it can be a program name with args.
21791 set dummy gtk-config; ac_word=$2
21792 echo "$as_me:$LINENO: checking for $ac_word" >&5
21793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21794 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797 case $GTK_CONFIG in
21798 [\\/]* | ?:[\\/]*)
21799 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21800 ;;
21801 *)
21802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21803 for as_dir in $PATH
21804 do
21805 IFS=$as_save_IFS
21806 test -z "$as_dir" && as_dir=.
21807 for ac_exec_ext in '' $ac_executable_extensions; do
21808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21809 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21811 break 2
21812 fi
21813 done
21814 done
21815
21816 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21817 ;;
21818 esac
21819 fi
21820 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21821
21822 if test -n "$GTK_CONFIG"; then
21823 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21824 echo "${ECHO_T}$GTK_CONFIG" >&6
21825 else
21826 echo "$as_me:$LINENO: result: no" >&5
21827 echo "${ECHO_T}no" >&6
21828 fi
21829
21830 min_gtk_version=1.2.3
21831 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21832 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21833 no_gtk=""
21834 if test "$GTK_CONFIG" = "no" ; then
21835 no_gtk=yes
21836 else
21837 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21838 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21839 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21841 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21842 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21843 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21844 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21845 if test "x$enable_gtktest" = "xyes" ; then
21846 ac_save_CFLAGS="$CFLAGS"
21847 ac_save_LIBS="$LIBS"
21848 CFLAGS="$CFLAGS $GTK_CFLAGS"
21849 LIBS="$GTK_LIBS $LIBS"
21850 rm -f conf.gtktest
21851 if test "$cross_compiling" = yes; then
21852 echo $ac_n "cross compiling; assumed OK... $ac_c"
21853 else
21854 cat >conftest.$ac_ext <<_ACEOF
21855 /* confdefs.h. */
21856 _ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h. */
21860
21861 #include <gtk/gtk.h>
21862 #include <stdio.h>
21863 #include <stdlib.h>
21864
21865 int
21866 main ()
21867 {
21868 int major, minor, micro;
21869 char *tmp_version;
21870
21871 system ("touch conf.gtktest");
21872
21873 /* HP/UX 9 (%@#!) writes to sscanf strings */
21874 tmp_version = g_strdup("$min_gtk_version");
21875 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21876 printf("%s, bad version string\n", "$min_gtk_version");
21877 exit(1);
21878 }
21879
21880 if ((gtk_major_version != $gtk_config_major_version) ||
21881 (gtk_minor_version != $gtk_config_minor_version) ||
21882 (gtk_micro_version != $gtk_config_micro_version))
21883 {
21884 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21885 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21886 gtk_major_version, gtk_minor_version, gtk_micro_version);
21887 printf ("*** was found! If gtk-config was correct, then it is best\n");
21888 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21889 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21890 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21891 printf("*** required on your system.\n");
21892 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21893 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21894 printf("*** before re-running configure\n");
21895 }
21896 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21897 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21898 (gtk_minor_version != GTK_MINOR_VERSION) ||
21899 (gtk_micro_version != GTK_MICRO_VERSION))
21900 {
21901 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21902 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21903 printf("*** library (version %d.%d.%d)\n",
21904 gtk_major_version, gtk_minor_version, gtk_micro_version);
21905 }
21906 #endif /* defined (GTK_MAJOR_VERSION) ... */
21907 else
21908 {
21909 if ((gtk_major_version > major) ||
21910 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21911 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21912 {
21913 return 0;
21914 }
21915 else
21916 {
21917 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21918 gtk_major_version, gtk_minor_version, gtk_micro_version);
21919 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21920 major, minor, micro);
21921 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21922 printf("***\n");
21923 printf("*** If you have already installed a sufficiently new version, this error\n");
21924 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21925 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21926 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21927 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21928 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21929 printf("*** so that the correct libraries are found at run-time))\n");
21930 }
21931 }
21932 return 1;
21933 }
21934
21935 _ACEOF
21936 rm -f conftest$ac_exeext
21937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21938 (eval $ac_link) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21947 :
21948 else
21949 echo "$as_me: program exited with status $ac_status" >&5
21950 echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953 ( exit $ac_status )
21954 no_gtk=yes
21955 fi
21956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21957 fi
21958 CFLAGS="$ac_save_CFLAGS"
21959 LIBS="$ac_save_LIBS"
21960 fi
21961 fi
21962 if test "x$no_gtk" = x ; then
21963 echo "$as_me:$LINENO: result: yes" >&5
21964 echo "${ECHO_T}yes" >&6
21965 wx_cv_lib_gtk=1.2.3
21966 else
21967 echo "$as_me:$LINENO: result: no" >&5
21968 echo "${ECHO_T}no" >&6
21969 if test "$GTK_CONFIG" = "no" ; then
21970 echo "*** The gtk-config script installed by GTK could not be found"
21971 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21972 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21973 echo "*** full path to gtk-config."
21974 else
21975 if test -f conf.gtktest ; then
21976 :
21977 else
21978 echo "*** Could not run GTK test program, checking why..."
21979 CFLAGS="$CFLAGS $GTK_CFLAGS"
21980 LIBS="$LIBS $GTK_LIBS"
21981 cat >conftest.$ac_ext <<_ACEOF
21982 /* confdefs.h. */
21983 _ACEOF
21984 cat confdefs.h >>conftest.$ac_ext
21985 cat >>conftest.$ac_ext <<_ACEOF
21986 /* end confdefs.h. */
21987
21988 #include <gtk/gtk.h>
21989 #include <stdio.h>
21990
21991 int
21992 main ()
21993 {
21994 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21995 ;
21996 return 0;
21997 }
21998 _ACEOF
21999 rm -f conftest.$ac_objext conftest$ac_exeext
22000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22001 (eval $ac_link) 2>conftest.er1
22002 ac_status=$?
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
22008 { ac_try='test -z "$ac_c_werror_flag"
22009 || test ! -s conftest.err'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try='test -s conftest$ac_exeext'
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
22021 echo "*** The test program compiled, but did not run. This usually means"
22022 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22023 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22024 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22025 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22026 echo "*** is required on your system"
22027 echo "***"
22028 echo "*** If you have an old version installed, it is best to remove it, although"
22029 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22030 echo "***"
22031 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22032 echo "*** came with the system with the command"
22033 echo "***"
22034 echo "*** rpm --erase --nodeps gtk gtk-devel"
22035 else
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039 echo "*** The test program failed to compile or link. See the file config.log for the"
22040 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22041 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22042 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22043 fi
22044 rm -f conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
22046 CFLAGS="$ac_save_CFLAGS"
22047 LIBS="$ac_save_LIBS"
22048 fi
22049 fi
22050 GTK_CFLAGS=""
22051 GTK_LIBS=""
22052 :
22053 fi
22054
22055
22056 rm -f conf.gtktest
22057
22058 fi
22059 fi
22060
22061 if test -z "$wx_cv_lib_gtk"; then
22062 wx_cv_lib_gtk=none
22063 else
22064 wx_cv_cflags_gtk=$GTK_CFLAGS
22065 wx_cv_libs_gtk=$GTK_LIBS
22066 fi
22067
22068
22069 fi
22070
22071
22072 if test "$gtk_version_cached" = 1; then
22073 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22074 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22075 fi
22076
22077 case "$wx_cv_lib_gtk" in
22078 2.0) WXGTK20=1
22079 TOOLKIT_VERSION=2
22080 ;;
22081 1.2.7) WXGTK127=1
22082 WXGTK12=1
22083 ;;
22084 1.2.3) WXGTK12=1
22085 ;;
22086 *) { { echo "$as_me:$LINENO: error:
22087 Please check that gtk-config is in path, the directory
22088 where GTK+ libraries are installed (returned by
22089 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22090 equivalent variable and GTK+ is version 1.2.3 or above.
22091 " >&5
22092 echo "$as_me: error:
22093 Please check that gtk-config is in path, the directory
22094 where GTK+ libraries are installed (returned by
22095 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22096 equivalent variable and GTK+ is version 1.2.3 or above.
22097 " >&2;}
22098 { (exit 1); exit 1; }; }
22099 ;;
22100 esac
22101
22102 if test "$WXGTK20" = 1; then
22103 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22104
22105 succeeded=no
22106
22107 if test -z "$PKG_CONFIG"; then
22108 # Extract the first word of "pkg-config", so it can be a program name with args.
22109 set dummy pkg-config; ac_word=$2
22110 echo "$as_me:$LINENO: checking for $ac_word" >&5
22111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22112 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
22114 else
22115 case $PKG_CONFIG in
22116 [\\/]* | ?:[\\/]*)
22117 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22118 ;;
22119 *)
22120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22121 for as_dir in $PATH
22122 do
22123 IFS=$as_save_IFS
22124 test -z "$as_dir" && as_dir=.
22125 for ac_exec_ext in '' $ac_executable_extensions; do
22126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22127 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22129 break 2
22130 fi
22131 done
22132 done
22133
22134 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22135 ;;
22136 esac
22137 fi
22138 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22139
22140 if test -n "$PKG_CONFIG"; then
22141 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22142 echo "${ECHO_T}$PKG_CONFIG" >&6
22143 else
22144 echo "$as_me:$LINENO: result: no" >&5
22145 echo "${ECHO_T}no" >&6
22146 fi
22147
22148 fi
22149
22150 if test "$PKG_CONFIG" = "no" ; then
22151 echo "*** The pkg-config script could not be found. Make sure it is"
22152 echo "*** in your path, or set the PKG_CONFIG environment variable"
22153 echo "*** to the full path to pkg-config."
22154 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22155 else
22156 PKG_CONFIG_MIN_VERSION=0.9.0
22157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22158 echo "$as_me:$LINENO: checking for pangoft2" >&5
22159 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22160
22161 if $PKG_CONFIG --exists "pangoft2" ; then
22162 echo "$as_me:$LINENO: result: yes" >&5
22163 echo "${ECHO_T}yes" >&6
22164 succeeded=yes
22165
22166 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22167 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22168 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22169 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22170 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22171
22172 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22173 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22174 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22175 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22176 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22177 else
22178 PANGOFT2_CFLAGS=""
22179 PANGOFT2_LIBS=""
22180 ## If we have a custom action on failure, don't print errors, but
22181 ## do set a variable so people can do so.
22182 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22183
22184 fi
22185
22186
22187
22188 else
22189 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22190 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22191 fi
22192 fi
22193
22194 if test $succeeded = yes; then
22195
22196 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22197 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22198
22199 else
22200
22201 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22202 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22203 wxUSE_PRINTING_ARCHITECTURE="no"
22204
22205
22206 fi
22207
22208 fi
22209 else
22210 if test "$wxUSE_UNICODE" = "yes"; then
22211 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22212 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22213 wxUSE_UNICODE=no
22214 fi
22215 fi
22216
22217 if test "$USE_DARWIN" != 1; then
22218
22219 for ac_func in poll
22220 do
22221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22222 echo "$as_me:$LINENO: checking for $ac_func" >&5
22223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22224 if eval "test \"\${$as_ac_var+set}\" = set"; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 else
22227 cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h. */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22235 #define $ac_func innocuous_$ac_func
22236
22237 /* System header to define __stub macros and hopefully few prototypes,
22238 which can conflict with char $ac_func (); below.
22239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22240 <limits.h> exists even on freestanding compilers. */
22241
22242 #ifdef __STDC__
22243 # include <limits.h>
22244 #else
22245 # include <assert.h>
22246 #endif
22247
22248 #undef $ac_func
22249
22250 /* Override any gcc2 internal prototype to avoid an error. */
22251 #ifdef __cplusplus
22252 extern "C"
22253 {
22254 #endif
22255 /* We use char because int might match the return type of a gcc2
22256 builtin and then its argument prototype would still apply. */
22257 char $ac_func ();
22258 /* The GNU C library defines this for functions which it implements
22259 to always fail with ENOSYS. Some functions are actually named
22260 something starting with __ and the normal name is an alias. */
22261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22262 choke me
22263 #else
22264 char (*f) () = $ac_func;
22265 #endif
22266 #ifdef __cplusplus
22267 }
22268 #endif
22269
22270 int
22271 main ()
22272 {
22273 return f != $ac_func;
22274 ;
22275 return 0;
22276 }
22277 _ACEOF
22278 rm -f conftest.$ac_objext conftest$ac_exeext
22279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22280 (eval $ac_link) 2>conftest.er1
22281 ac_status=$?
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } &&
22287 { ac_try='test -z "$ac_c_werror_flag"
22288 || test ! -s conftest.err'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } &&
22294 { ac_try='test -s conftest$ac_exeext'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 eval "$as_ac_var=yes"
22301 else
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22304
22305 eval "$as_ac_var=no"
22306 fi
22307 rm -f conftest.err conftest.$ac_objext \
22308 conftest$ac_exeext conftest.$ac_ext
22309 fi
22310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22311 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22312 if test `eval echo '${'$as_ac_var'}'` = yes; then
22313 cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22315 _ACEOF
22316
22317 fi
22318 done
22319
22320 fi
22321
22322 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
22323 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
22324
22325 AFMINSTALL=afminstall
22326 TOOLKIT=GTK
22327 GUIDIST=GTK_DIST
22328
22329 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22330 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22331 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334 ac_check_lib_save_LIBS=$LIBS
22335 LIBS="-lgdk $LIBS"
22336 cat >conftest.$ac_ext <<_ACEOF
22337 /* confdefs.h. */
22338 _ACEOF
22339 cat confdefs.h >>conftest.$ac_ext
22340 cat >>conftest.$ac_ext <<_ACEOF
22341 /* end confdefs.h. */
22342
22343 /* Override any gcc2 internal prototype to avoid an error. */
22344 #ifdef __cplusplus
22345 extern "C"
22346 #endif
22347 /* We use char because int might match the return type of a gcc2
22348 builtin and then its argument prototype would still apply. */
22349 char gdk_im_open ();
22350 int
22351 main ()
22352 {
22353 gdk_im_open ();
22354 ;
22355 return 0;
22356 }
22357 _ACEOF
22358 rm -f conftest.$ac_objext conftest$ac_exeext
22359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22360 (eval $ac_link) 2>conftest.er1
22361 ac_status=$?
22362 grep -v '^ *+' conftest.er1 >conftest.err
22363 rm -f conftest.er1
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } &&
22367 { ac_try='test -z "$ac_c_werror_flag"
22368 || test ! -s conftest.err'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest$ac_exeext'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_lib_gdk_gdk_im_open=yes
22381 else
22382 echo "$as_me: failed program was:" >&5
22383 sed 's/^/| /' conftest.$ac_ext >&5
22384
22385 ac_cv_lib_gdk_gdk_im_open=no
22386 fi
22387 rm -f conftest.err conftest.$ac_objext \
22388 conftest$ac_exeext conftest.$ac_ext
22389 LIBS=$ac_check_lib_save_LIBS
22390 fi
22391 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22392 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22393 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22394 cat >>confdefs.h <<\_ACEOF
22395 #define HAVE_XIM 1
22396 _ACEOF
22397
22398 fi
22399
22400 fi
22401
22402 if test "$wxUSE_MGL" = 1; then
22403 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22404 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
22405 if test "x$MGL_ROOT" = x ; then
22406 echo "$as_me:$LINENO: result: not found" >&5
22407 echo "${ECHO_T}not found" >&6
22408 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22409 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22410 { (exit 1); exit 1; }; }
22411 else
22412 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22413 echo "${ECHO_T}$MGL_ROOT" >&6
22414 fi
22415
22416 echo "$as_me:$LINENO: checking for libmgl location" >&5
22417 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
22418 case "${host}" in
22419 *-*-linux* )
22420 if test "x$wxUSE_SHARED" = xyes ; then
22421 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
22422 else
22423 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
22424 fi
22425 ;;
22426 *-pc-msdosdjgpp )
22427 mgl_os_candidates="dos32/dj2"
22428 ;;
22429 *)
22430 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22431 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22432 { (exit 1); exit 1; }; }
22433 esac
22434
22435 mgl_lib_type=""
22436 mgl_os=""
22437
22438 for mgl_os_i in $mgl_os_candidates ; do
22439 if test "x$mgl_os" = x ; then
22440 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22441 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22442 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22443 mgl_lib_type=debug
22444 mgl_os=$mgl_os_i
22445 fi
22446 fi
22447 if test "x$mgl_lib_type" = x ; then
22448 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22449 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22450 mgl_lib_type=release
22451 mgl_os=$mgl_os_i
22452 fi
22453 fi
22454 fi
22455 done
22456
22457 if test "x$mgl_os" = x ; then
22458 echo "$as_me:$LINENO: result: not found" >&5
22459 echo "${ECHO_T}not found" >&6
22460 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22461 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22462 { (exit 1); exit 1; }; }
22463 fi
22464 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22465 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
22466
22467 wxUSE_UNIVERSAL="yes"
22468
22469 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22470 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22471
22472 AFMINSTALL=afminstall
22473 TOOLKIT=MGL
22474 GUIDIST=MGL_DIST
22475 fi
22476
22477 if test "$wxUSE_MICROWIN" = 1; then
22478 echo "$as_me:$LINENO: checking for MicroWindows" >&5
22479 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
22480 if test "x$MICROWINDOWS" = x ; then
22481 echo "$as_me:$LINENO: result: not found" >&5
22482 echo "${ECHO_T}not found" >&6
22483 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22484 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22485 { (exit 1); exit 1; }; }
22486 else
22487 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22488 echo "${ECHO_T}$MICROWINDOWS" >&6
22489 fi
22490
22491 if test -f $MICROWINDOWS/lib/libmwin.a; then
22492 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22493 echo "${ECHO_T}MicroWindows' libraries found." >&6
22494 else
22495 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22496 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22497 { (exit 1); exit 1; }; }
22498 fi
22499
22500 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22501 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22502
22503 wxUSE_UNIVERSAL="yes"
22504
22505 AFMINSTALL=afminstall
22506 TOOLKIT=MICROWIN
22507 GUIDIST=MICROWIN_DIST
22508
22509 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
22510 fi
22511
22512 if test "$wxUSE_X11" = 1; then
22513 echo "$as_me:$LINENO: checking for X" >&5
22514 echo $ECHO_N "checking for X... $ECHO_C" >&6
22515
22516
22517 # Check whether --with-x or --without-x was given.
22518 if test "${with_x+set}" = set; then
22519 withval="$with_x"
22520
22521 fi;
22522 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22523 if test "x$with_x" = xno; then
22524 # The user explicitly disabled X.
22525 have_x=disabled
22526 else
22527 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22528 # Both variables are already set.
22529 have_x=yes
22530 else
22531 if test "${ac_cv_have_x+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 else
22534 # One or both of the vars are not set, and there is no cached value.
22535 ac_x_includes=no ac_x_libraries=no
22536 rm -fr conftest.dir
22537 if mkdir conftest.dir; then
22538 cd conftest.dir
22539 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
22540 cat >Imakefile <<'_ACEOF'
22541 acfindx:
22542 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
22543 _ACEOF
22544 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22545 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22546 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22547 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22548 for ac_extension in a so sl; do
22549 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
22550 test -f $ac_im_libdir/libX11.$ac_extension; then
22551 ac_im_usrlibdir=$ac_im_libdir; break
22552 fi
22553 done
22554 # Screen out bogus values from the imake configuration. They are
22555 # bogus both because they are the default anyway, and because
22556 # using them would break gcc on systems where it needs fixed includes.
22557 case $ac_im_incroot in
22558 /usr/include) ;;
22559 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
22560 esac
22561 case $ac_im_usrlibdir in
22562 /usr/lib | /lib) ;;
22563 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
22564 esac
22565 fi
22566 cd ..
22567 rm -fr conftest.dir
22568 fi
22569
22570 # Standard set of common directories for X headers.
22571 # Check X11 before X11Rn because it is often a symlink to the current release.
22572 ac_x_header_dirs='
22573 /usr/X11/include
22574 /usr/X11R6/include
22575 /usr/X11R5/include
22576 /usr/X11R4/include
22577
22578 /usr/include/X11
22579 /usr/include/X11R6
22580 /usr/include/X11R5
22581 /usr/include/X11R4
22582
22583 /usr/local/X11/include
22584 /usr/local/X11R6/include
22585 /usr/local/X11R5/include
22586 /usr/local/X11R4/include
22587
22588 /usr/local/include/X11
22589 /usr/local/include/X11R6
22590 /usr/local/include/X11R5
22591 /usr/local/include/X11R4
22592
22593 /usr/X386/include
22594 /usr/x386/include
22595 /usr/XFree86/include/X11
22596
22597 /usr/include
22598 /usr/local/include
22599 /usr/unsupported/include
22600 /usr/athena/include
22601 /usr/local/x11r5/include
22602 /usr/lpp/Xamples/include
22603
22604 /usr/openwin/include
22605 /usr/openwin/share/include'
22606
22607 if test "$ac_x_includes" = no; then
22608 # Guess where to find include files, by looking for Intrinsic.h.
22609 # First, try using that file with no special directory specified.
22610 cat >conftest.$ac_ext <<_ACEOF
22611 /* confdefs.h. */
22612 _ACEOF
22613 cat confdefs.h >>conftest.$ac_ext
22614 cat >>conftest.$ac_ext <<_ACEOF
22615 /* end confdefs.h. */
22616 #include <X11/Intrinsic.h>
22617 _ACEOF
22618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22620 ac_status=$?
22621 grep -v '^ *+' conftest.er1 >conftest.err
22622 rm -f conftest.er1
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } >/dev/null; then
22626 if test -s conftest.err; then
22627 ac_cpp_err=$ac_c_preproc_warn_flag
22628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22629 else
22630 ac_cpp_err=
22631 fi
22632 else
22633 ac_cpp_err=yes
22634 fi
22635 if test -z "$ac_cpp_err"; then
22636 # We can compile using X headers with no special include directory.
22637 ac_x_includes=
22638 else
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641
22642 for ac_dir in $ac_x_header_dirs; do
22643 if test -r "$ac_dir/X11/Intrinsic.h"; then
22644 ac_x_includes=$ac_dir
22645 break
22646 fi
22647 done
22648 fi
22649 rm -f conftest.err conftest.$ac_ext
22650 fi # $ac_x_includes = no
22651
22652 if test "$ac_x_libraries" = no; then
22653 # Check for the libraries.
22654 # See if we find them without any special options.
22655 # Don't add to $LIBS permanently.
22656 ac_save_LIBS=$LIBS
22657 LIBS="-lXt $LIBS"
22658 cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h. */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 #include <X11/Intrinsic.h>
22665 int
22666 main ()
22667 {
22668 XtMalloc (0)
22669 ;
22670 return 0;
22671 }
22672 _ACEOF
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22675 (eval $ac_link) 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
22682 { ac_try='test -z "$ac_c_werror_flag"
22683 || test ! -s conftest.err'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; } &&
22689 { ac_try='test -s conftest$ac_exeext'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 LIBS=$ac_save_LIBS
22696 # We can link X programs with no special library path.
22697 ac_x_libraries=
22698 else
22699 echo "$as_me: failed program was:" >&5
22700 sed 's/^/| /' conftest.$ac_ext >&5
22701
22702 LIBS=$ac_save_LIBS
22703 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
22704 do
22705 # Don't even attempt the hair of trying to link an X program!
22706 for ac_extension in a so sl; do
22707 if test -r $ac_dir/libXt.$ac_extension; then
22708 ac_x_libraries=$ac_dir
22709 break 2
22710 fi
22711 done
22712 done
22713 fi
22714 rm -f conftest.err conftest.$ac_objext \
22715 conftest$ac_exeext conftest.$ac_ext
22716 fi # $ac_x_libraries = no
22717
22718 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
22719 # Didn't find X anywhere. Cache the known absence of X.
22720 ac_cv_have_x="have_x=no"
22721 else
22722 # Record where we found X for the cache.
22723 ac_cv_have_x="have_x=yes \
22724 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
22725 fi
22726 fi
22727
22728 fi
22729 eval "$ac_cv_have_x"
22730 fi # $with_x != no
22731
22732 if test "$have_x" != yes; then
22733 echo "$as_me:$LINENO: result: $have_x" >&5
22734 echo "${ECHO_T}$have_x" >&6
22735 no_x=yes
22736 else
22737 # If each of the values was on the command line, it overrides each guess.
22738 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22739 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22740 # Update the cache value to reflect the command line values.
22741 ac_cv_have_x="have_x=yes \
22742 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
22743 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22744 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
22745 fi
22746
22747 if test "$no_x" = yes; then
22748 # Not all programs may use this symbol, but it does not hurt to define it.
22749
22750 cat >>confdefs.h <<\_ACEOF
22751 #define X_DISPLAY_MISSING 1
22752 _ACEOF
22753
22754 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22755 else
22756 if test -n "$x_includes"; then
22757 X_CFLAGS="$X_CFLAGS -I$x_includes"
22758 fi
22759
22760 # It would also be nice to do this for all -L options, not just this one.
22761 if test -n "$x_libraries"; then
22762 X_LIBS="$X_LIBS -L$x_libraries"
22763 # For Solaris; some versions of Sun CC require a space after -R and
22764 # others require no space. Words are not sufficient . . . .
22765 case `(uname -sr) 2>/dev/null` in
22766 "SunOS 5"*)
22767 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22768 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22769 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22770 cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h. */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776
22777 int
22778 main ()
22779 {
22780
22781 ;
22782 return 0;
22783 }
22784 _ACEOF
22785 rm -f conftest.$ac_objext conftest$ac_exeext
22786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22787 (eval $ac_link) 2>conftest.er1
22788 ac_status=$?
22789 grep -v '^ *+' conftest.er1 >conftest.err
22790 rm -f conftest.er1
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } &&
22794 { ac_try='test -z "$ac_c_werror_flag"
22795 || test ! -s conftest.err'
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; } &&
22801 { ac_try='test -s conftest$ac_exeext'
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22804 ac_status=$?
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; }; then
22807 ac_R_nospace=yes
22808 else
22809 echo "$as_me: failed program was:" >&5
22810 sed 's/^/| /' conftest.$ac_ext >&5
22811
22812 ac_R_nospace=no
22813 fi
22814 rm -f conftest.err conftest.$ac_objext \
22815 conftest$ac_exeext conftest.$ac_ext
22816 if test $ac_R_nospace = yes; then
22817 echo "$as_me:$LINENO: result: no" >&5
22818 echo "${ECHO_T}no" >&6
22819 X_LIBS="$X_LIBS -R$x_libraries"
22820 else
22821 LIBS="$ac_xsave_LIBS -R $x_libraries"
22822 cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h. */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828
22829 int
22830 main ()
22831 {
22832
22833 ;
22834 return 0;
22835 }
22836 _ACEOF
22837 rm -f conftest.$ac_objext conftest$ac_exeext
22838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22839 (eval $ac_link) 2>conftest.er1
22840 ac_status=$?
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } &&
22846 { ac_try='test -z "$ac_c_werror_flag"
22847 || test ! -s conftest.err'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; } &&
22853 { ac_try='test -s conftest$ac_exeext'
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ac_R_space=yes
22860 else
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22863
22864 ac_R_space=no
22865 fi
22866 rm -f conftest.err conftest.$ac_objext \
22867 conftest$ac_exeext conftest.$ac_ext
22868 if test $ac_R_space = yes; then
22869 echo "$as_me:$LINENO: result: yes" >&5
22870 echo "${ECHO_T}yes" >&6
22871 X_LIBS="$X_LIBS -R $x_libraries"
22872 else
22873 echo "$as_me:$LINENO: result: neither works" >&5
22874 echo "${ECHO_T}neither works" >&6
22875 fi
22876 fi
22877 LIBS=$ac_xsave_LIBS
22878 esac
22879 fi
22880
22881 # Check for system-dependent libraries X programs must link with.
22882 # Do this before checking for the system-independent R6 libraries
22883 # (-lICE), since we may need -lsocket or whatever for X linking.
22884
22885 if test "$ISC" = yes; then
22886 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22887 else
22888 # Martyn Johnson says this is needed for Ultrix, if the X
22889 # libraries were built with DECnet support. And Karl Berry says
22890 # the Alpha needs dnet_stub (dnet does not exist).
22891 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898
22899 /* Override any gcc2 internal prototype to avoid an error. */
22900 #ifdef __cplusplus
22901 extern "C"
22902 #endif
22903 /* We use char because int might match the return type of a gcc2
22904 builtin and then its argument prototype would still apply. */
22905 char XOpenDisplay ();
22906 int
22907 main ()
22908 {
22909 XOpenDisplay ();
22910 ;
22911 return 0;
22912 }
22913 _ACEOF
22914 rm -f conftest.$ac_objext conftest$ac_exeext
22915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22916 (eval $ac_link) 2>conftest.er1
22917 ac_status=$?
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
22923 { ac_try='test -z "$ac_c_werror_flag"
22924 || test ! -s conftest.err'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; } &&
22930 { ac_try='test -s conftest$ac_exeext'
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 :
22937 else
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22942 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22943 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22945 else
22946 ac_check_lib_save_LIBS=$LIBS
22947 LIBS="-ldnet $LIBS"
22948 cat >conftest.$ac_ext <<_ACEOF
22949 /* confdefs.h. */
22950 _ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954
22955 /* Override any gcc2 internal prototype to avoid an error. */
22956 #ifdef __cplusplus
22957 extern "C"
22958 #endif
22959 /* We use char because int might match the return type of a gcc2
22960 builtin and then its argument prototype would still apply. */
22961 char dnet_ntoa ();
22962 int
22963 main ()
22964 {
22965 dnet_ntoa ();
22966 ;
22967 return 0;
22968 }
22969 _ACEOF
22970 rm -f conftest.$ac_objext conftest$ac_exeext
22971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22972 (eval $ac_link) 2>conftest.er1
22973 ac_status=$?
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } &&
22979 { ac_try='test -z "$ac_c_werror_flag"
22980 || test ! -s conftest.err'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; } &&
22986 { ac_try='test -s conftest$ac_exeext'
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 ac_cv_lib_dnet_dnet_ntoa=yes
22993 else
22994 echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22996
22997 ac_cv_lib_dnet_dnet_ntoa=no
22998 fi
22999 rm -f conftest.err conftest.$ac_objext \
23000 conftest$ac_exeext conftest.$ac_ext
23001 LIBS=$ac_check_lib_save_LIBS
23002 fi
23003 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23004 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23005 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23006 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23007 fi
23008
23009 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23010 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23011 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23012 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015 ac_check_lib_save_LIBS=$LIBS
23016 LIBS="-ldnet_stub $LIBS"
23017 cat >conftest.$ac_ext <<_ACEOF
23018 /* confdefs.h. */
23019 _ACEOF
23020 cat confdefs.h >>conftest.$ac_ext
23021 cat >>conftest.$ac_ext <<_ACEOF
23022 /* end confdefs.h. */
23023
23024 /* Override any gcc2 internal prototype to avoid an error. */
23025 #ifdef __cplusplus
23026 extern "C"
23027 #endif
23028 /* We use char because int might match the return type of a gcc2
23029 builtin and then its argument prototype would still apply. */
23030 char dnet_ntoa ();
23031 int
23032 main ()
23033 {
23034 dnet_ntoa ();
23035 ;
23036 return 0;
23037 }
23038 _ACEOF
23039 rm -f conftest.$ac_objext conftest$ac_exeext
23040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041 (eval $ac_link) 2>conftest.er1
23042 ac_status=$?
23043 grep -v '^ *+' conftest.er1 >conftest.err
23044 rm -f conftest.er1
23045 cat conftest.err >&5
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } &&
23048 { ac_try='test -z "$ac_c_werror_flag"
23049 || test ! -s conftest.err'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23052 ac_status=$?
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; } &&
23055 { ac_try='test -s conftest$ac_exeext'
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23058 ac_status=$?
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }; then
23061 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23062 else
23063 echo "$as_me: failed program was:" >&5
23064 sed 's/^/| /' conftest.$ac_ext >&5
23065
23066 ac_cv_lib_dnet_stub_dnet_ntoa=no
23067 fi
23068 rm -f conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
23070 LIBS=$ac_check_lib_save_LIBS
23071 fi
23072 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23073 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23074 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23075 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23076 fi
23077
23078 fi
23079 fi
23080 rm -f conftest.err conftest.$ac_objext \
23081 conftest$ac_exeext conftest.$ac_ext
23082 LIBS="$ac_xsave_LIBS"
23083
23084 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23085 # to get the SysV transport functions.
23086 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23087 # needs -lnsl.
23088 # The nsl library prevents programs from opening the X display
23089 # on Irix 5.2, according to T.E. Dickey.
23090 # The functions gethostbyname, getservbyname, and inet_addr are
23091 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23092 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23093 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23094 if test "${ac_cv_func_gethostbyname+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 else
23097 cat >conftest.$ac_ext <<_ACEOF
23098 /* confdefs.h. */
23099 _ACEOF
23100 cat confdefs.h >>conftest.$ac_ext
23101 cat >>conftest.$ac_ext <<_ACEOF
23102 /* end confdefs.h. */
23103 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23105 #define gethostbyname innocuous_gethostbyname
23106
23107 /* System header to define __stub macros and hopefully few prototypes,
23108 which can conflict with char gethostbyname (); below.
23109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23110 <limits.h> exists even on freestanding compilers. */
23111
23112 #ifdef __STDC__
23113 # include <limits.h>
23114 #else
23115 # include <assert.h>
23116 #endif
23117
23118 #undef gethostbyname
23119
23120 /* Override any gcc2 internal prototype to avoid an error. */
23121 #ifdef __cplusplus
23122 extern "C"
23123 {
23124 #endif
23125 /* We use char because int might match the return type of a gcc2
23126 builtin and then its argument prototype would still apply. */
23127 char gethostbyname ();
23128 /* The GNU C library defines this for functions which it implements
23129 to always fail with ENOSYS. Some functions are actually named
23130 something starting with __ and the normal name is an alias. */
23131 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23132 choke me
23133 #else
23134 char (*f) () = gethostbyname;
23135 #endif
23136 #ifdef __cplusplus
23137 }
23138 #endif
23139
23140 int
23141 main ()
23142 {
23143 return f != gethostbyname;
23144 ;
23145 return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest.$ac_objext conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150 (eval $ac_link) 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
23157 { ac_try='test -z "$ac_c_werror_flag"
23158 || test ! -s conftest.err'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170 ac_cv_func_gethostbyname=yes
23171 else
23172 echo "$as_me: failed program was:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23174
23175 ac_cv_func_gethostbyname=no
23176 fi
23177 rm -f conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
23179 fi
23180 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23181 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23182
23183 if test $ac_cv_func_gethostbyname = no; then
23184 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23185 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23186 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188 else
23189 ac_check_lib_save_LIBS=$LIBS
23190 LIBS="-lnsl $LIBS"
23191 cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h. */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197
23198 /* Override any gcc2 internal prototype to avoid an error. */
23199 #ifdef __cplusplus
23200 extern "C"
23201 #endif
23202 /* We use char because int might match the return type of a gcc2
23203 builtin and then its argument prototype would still apply. */
23204 char gethostbyname ();
23205 int
23206 main ()
23207 {
23208 gethostbyname ();
23209 ;
23210 return 0;
23211 }
23212 _ACEOF
23213 rm -f conftest.$ac_objext conftest$ac_exeext
23214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23215 (eval $ac_link) 2>conftest.er1
23216 ac_status=$?
23217 grep -v '^ *+' conftest.er1 >conftest.err
23218 rm -f conftest.er1
23219 cat conftest.err >&5
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
23222 { ac_try='test -z "$ac_c_werror_flag"
23223 || test ! -s conftest.err'
23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; } &&
23229 { ac_try='test -s conftest$ac_exeext'
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; }; then
23235 ac_cv_lib_nsl_gethostbyname=yes
23236 else
23237 echo "$as_me: failed program was:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23239
23240 ac_cv_lib_nsl_gethostbyname=no
23241 fi
23242 rm -f conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
23244 LIBS=$ac_check_lib_save_LIBS
23245 fi
23246 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23247 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23248 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23250 fi
23251
23252 if test $ac_cv_lib_nsl_gethostbyname = no; then
23253 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23254 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23255 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23257 else
23258 ac_check_lib_save_LIBS=$LIBS
23259 LIBS="-lbsd $LIBS"
23260 cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h. */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23266
23267 /* Override any gcc2 internal prototype to avoid an error. */
23268 #ifdef __cplusplus
23269 extern "C"
23270 #endif
23271 /* We use char because int might match the return type of a gcc2
23272 builtin and then its argument prototype would still apply. */
23273 char gethostbyname ();
23274 int
23275 main ()
23276 {
23277 gethostbyname ();
23278 ;
23279 return 0;
23280 }
23281 _ACEOF
23282 rm -f conftest.$ac_objext conftest$ac_exeext
23283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23284 (eval $ac_link) 2>conftest.er1
23285 ac_status=$?
23286 grep -v '^ *+' conftest.er1 >conftest.err
23287 rm -f conftest.er1
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } &&
23291 { ac_try='test -z "$ac_c_werror_flag"
23292 || test ! -s conftest.err'
23293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294 (eval $ac_try) 2>&5
23295 ac_status=$?
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; } &&
23298 { ac_try='test -s conftest$ac_exeext'
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 ac_cv_lib_bsd_gethostbyname=yes
23305 else
23306 echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23308
23309 ac_cv_lib_bsd_gethostbyname=no
23310 fi
23311 rm -f conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
23313 LIBS=$ac_check_lib_save_LIBS
23314 fi
23315 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23316 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23317 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23318 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23319 fi
23320
23321 fi
23322 fi
23323
23324 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23325 # socket/setsockopt and other routines are undefined under SCO ODT
23326 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
23327 # on later versions), says Simon Leinen: it contains gethostby*
23328 # variants that don't use the name server (or something). -lsocket
23329 # must be given before -lnsl if both are needed. We assume that
23330 # if connect needs -lnsl, so does gethostbyname.
23331 echo "$as_me:$LINENO: checking for connect" >&5
23332 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23333 if test "${ac_cv_func_connect+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23335 else
23336 cat >conftest.$ac_ext <<_ACEOF
23337 /* confdefs.h. */
23338 _ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h. */
23342 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
23343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23344 #define connect innocuous_connect
23345
23346 /* System header to define __stub macros and hopefully few prototypes,
23347 which can conflict with char connect (); below.
23348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23349 <limits.h> exists even on freestanding compilers. */
23350
23351 #ifdef __STDC__
23352 # include <limits.h>
23353 #else
23354 # include <assert.h>
23355 #endif
23356
23357 #undef connect
23358
23359 /* Override any gcc2 internal prototype to avoid an error. */
23360 #ifdef __cplusplus
23361 extern "C"
23362 {
23363 #endif
23364 /* We use char because int might match the return type of a gcc2
23365 builtin and then its argument prototype would still apply. */
23366 char connect ();
23367 /* The GNU C library defines this for functions which it implements
23368 to always fail with ENOSYS. Some functions are actually named
23369 something starting with __ and the normal name is an alias. */
23370 #if defined (__stub_connect) || defined (__stub___connect)
23371 choke me
23372 #else
23373 char (*f) () = connect;
23374 #endif
23375 #ifdef __cplusplus
23376 }
23377 #endif
23378
23379 int
23380 main ()
23381 {
23382 return f != connect;
23383 ;
23384 return 0;
23385 }
23386 _ACEOF
23387 rm -f conftest.$ac_objext conftest$ac_exeext
23388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23389 (eval $ac_link) 2>conftest.er1
23390 ac_status=$?
23391 grep -v '^ *+' conftest.er1 >conftest.err
23392 rm -f conftest.er1
23393 cat conftest.err >&5
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } &&
23396 { ac_try='test -z "$ac_c_werror_flag"
23397 || test ! -s conftest.err'
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23400 ac_status=$?
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; } &&
23403 { ac_try='test -s conftest$ac_exeext'
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23406 ac_status=$?
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ac_cv_func_connect=yes
23410 else
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23413
23414 ac_cv_func_connect=no
23415 fi
23416 rm -f conftest.err conftest.$ac_objext \
23417 conftest$ac_exeext conftest.$ac_ext
23418 fi
23419 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23420 echo "${ECHO_T}$ac_cv_func_connect" >&6
23421
23422 if test $ac_cv_func_connect = no; then
23423 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23424 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23425 if test "${ac_cv_lib_socket_connect+set}" = set; then
23426 echo $ECHO_N "(cached) $ECHO_C" >&6
23427 else
23428 ac_check_lib_save_LIBS=$LIBS
23429 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23430 cat >conftest.$ac_ext <<_ACEOF
23431 /* confdefs.h. */
23432 _ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h. */
23436
23437 /* Override any gcc2 internal prototype to avoid an error. */
23438 #ifdef __cplusplus
23439 extern "C"
23440 #endif
23441 /* We use char because int might match the return type of a gcc2
23442 builtin and then its argument prototype would still apply. */
23443 char connect ();
23444 int
23445 main ()
23446 {
23447 connect ();
23448 ;
23449 return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest.$ac_objext conftest$ac_exeext
23453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23454 (eval $ac_link) 2>conftest.er1
23455 ac_status=$?
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } &&
23461 { ac_try='test -z "$ac_c_werror_flag"
23462 || test ! -s conftest.err'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; } &&
23468 { ac_try='test -s conftest$ac_exeext'
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; }; then
23474 ac_cv_lib_socket_connect=yes
23475 else
23476 echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479 ac_cv_lib_socket_connect=no
23480 fi
23481 rm -f conftest.err conftest.$ac_objext \
23482 conftest$ac_exeext conftest.$ac_ext
23483 LIBS=$ac_check_lib_save_LIBS
23484 fi
23485 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23486 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23487 if test $ac_cv_lib_socket_connect = yes; then
23488 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23489 fi
23490
23491 fi
23492
23493 # Guillermo Gomez says -lposix is necessary on A/UX.
23494 echo "$as_me:$LINENO: checking for remove" >&5
23495 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23496 if test "${ac_cv_func_remove+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
23506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23507 #define remove innocuous_remove
23508
23509 /* System header to define __stub macros and hopefully few prototypes,
23510 which can conflict with char remove (); below.
23511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23512 <limits.h> exists even on freestanding compilers. */
23513
23514 #ifdef __STDC__
23515 # include <limits.h>
23516 #else
23517 # include <assert.h>
23518 #endif
23519
23520 #undef remove
23521
23522 /* Override any gcc2 internal prototype to avoid an error. */
23523 #ifdef __cplusplus
23524 extern "C"
23525 {
23526 #endif
23527 /* We use char because int might match the return type of a gcc2
23528 builtin and then its argument prototype would still apply. */
23529 char remove ();
23530 /* The GNU C library defines this for functions which it implements
23531 to always fail with ENOSYS. Some functions are actually named
23532 something starting with __ and the normal name is an alias. */
23533 #if defined (__stub_remove) || defined (__stub___remove)
23534 choke me
23535 #else
23536 char (*f) () = remove;
23537 #endif
23538 #ifdef __cplusplus
23539 }
23540 #endif
23541
23542 int
23543 main ()
23544 {
23545 return f != remove;
23546 ;
23547 return 0;
23548 }
23549 _ACEOF
23550 rm -f conftest.$ac_objext conftest$ac_exeext
23551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23552 (eval $ac_link) 2>conftest.er1
23553 ac_status=$?
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
23559 { ac_try='test -z "$ac_c_werror_flag"
23560 || test ! -s conftest.err'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_func_remove=yes
23573 else
23574 echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577 ac_cv_func_remove=no
23578 fi
23579 rm -f conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
23581 fi
23582 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23583 echo "${ECHO_T}$ac_cv_func_remove" >&6
23584
23585 if test $ac_cv_func_remove = no; then
23586 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23587 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23588 if test "${ac_cv_lib_posix_remove+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23590 else
23591 ac_check_lib_save_LIBS=$LIBS
23592 LIBS="-lposix $LIBS"
23593 cat >conftest.$ac_ext <<_ACEOF
23594 /* confdefs.h. */
23595 _ACEOF
23596 cat confdefs.h >>conftest.$ac_ext
23597 cat >>conftest.$ac_ext <<_ACEOF
23598 /* end confdefs.h. */
23599
23600 /* Override any gcc2 internal prototype to avoid an error. */
23601 #ifdef __cplusplus
23602 extern "C"
23603 #endif
23604 /* We use char because int might match the return type of a gcc2
23605 builtin and then its argument prototype would still apply. */
23606 char remove ();
23607 int
23608 main ()
23609 {
23610 remove ();
23611 ;
23612 return 0;
23613 }
23614 _ACEOF
23615 rm -f conftest.$ac_objext conftest$ac_exeext
23616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23617 (eval $ac_link) 2>conftest.er1
23618 ac_status=$?
23619 grep -v '^ *+' conftest.er1 >conftest.err
23620 rm -f conftest.er1
23621 cat conftest.err >&5
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } &&
23624 { ac_try='test -z "$ac_c_werror_flag"
23625 || test ! -s conftest.err'
23626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627 (eval $ac_try) 2>&5
23628 ac_status=$?
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; } &&
23631 { ac_try='test -s conftest$ac_exeext'
23632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633 (eval $ac_try) 2>&5
23634 ac_status=$?
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); }; }; then
23637 ac_cv_lib_posix_remove=yes
23638 else
23639 echo "$as_me: failed program was:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23641
23642 ac_cv_lib_posix_remove=no
23643 fi
23644 rm -f conftest.err conftest.$ac_objext \
23645 conftest$ac_exeext conftest.$ac_ext
23646 LIBS=$ac_check_lib_save_LIBS
23647 fi
23648 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23649 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23650 if test $ac_cv_lib_posix_remove = yes; then
23651 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23652 fi
23653
23654 fi
23655
23656 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23657 echo "$as_me:$LINENO: checking for shmat" >&5
23658 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23659 if test "${ac_cv_func_shmat+set}" = set; then
23660 echo $ECHO_N "(cached) $ECHO_C" >&6
23661 else
23662 cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h. */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h. */
23668 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23670 #define shmat innocuous_shmat
23671
23672 /* System header to define __stub macros and hopefully few prototypes,
23673 which can conflict with char shmat (); below.
23674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23675 <limits.h> exists even on freestanding compilers. */
23676
23677 #ifdef __STDC__
23678 # include <limits.h>
23679 #else
23680 # include <assert.h>
23681 #endif
23682
23683 #undef shmat
23684
23685 /* Override any gcc2 internal prototype to avoid an error. */
23686 #ifdef __cplusplus
23687 extern "C"
23688 {
23689 #endif
23690 /* We use char because int might match the return type of a gcc2
23691 builtin and then its argument prototype would still apply. */
23692 char shmat ();
23693 /* The GNU C library defines this for functions which it implements
23694 to always fail with ENOSYS. Some functions are actually named
23695 something starting with __ and the normal name is an alias. */
23696 #if defined (__stub_shmat) || defined (__stub___shmat)
23697 choke me
23698 #else
23699 char (*f) () = shmat;
23700 #endif
23701 #ifdef __cplusplus
23702 }
23703 #endif
23704
23705 int
23706 main ()
23707 {
23708 return f != shmat;
23709 ;
23710 return 0;
23711 }
23712 _ACEOF
23713 rm -f conftest.$ac_objext conftest$ac_exeext
23714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23715 (eval $ac_link) 2>conftest.er1
23716 ac_status=$?
23717 grep -v '^ *+' conftest.er1 >conftest.err
23718 rm -f conftest.er1
23719 cat conftest.err >&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } &&
23722 { ac_try='test -z "$ac_c_werror_flag"
23723 || test ! -s conftest.err'
23724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725 (eval $ac_try) 2>&5
23726 ac_status=$?
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); }; } &&
23729 { ac_try='test -s conftest$ac_exeext'
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23732 ac_status=$?
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; }; then
23735 ac_cv_func_shmat=yes
23736 else
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23739
23740 ac_cv_func_shmat=no
23741 fi
23742 rm -f conftest.err conftest.$ac_objext \
23743 conftest$ac_exeext conftest.$ac_ext
23744 fi
23745 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23746 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23747
23748 if test $ac_cv_func_shmat = no; then
23749 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23750 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23751 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23753 else
23754 ac_check_lib_save_LIBS=$LIBS
23755 LIBS="-lipc $LIBS"
23756 cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h. */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23762
23763 /* Override any gcc2 internal prototype to avoid an error. */
23764 #ifdef __cplusplus
23765 extern "C"
23766 #endif
23767 /* We use char because int might match the return type of a gcc2
23768 builtin and then its argument prototype would still apply. */
23769 char shmat ();
23770 int
23771 main ()
23772 {
23773 shmat ();
23774 ;
23775 return 0;
23776 }
23777 _ACEOF
23778 rm -f conftest.$ac_objext conftest$ac_exeext
23779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23780 (eval $ac_link) 2>conftest.er1
23781 ac_status=$?
23782 grep -v '^ *+' conftest.er1 >conftest.err
23783 rm -f conftest.er1
23784 cat conftest.err >&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
23787 { ac_try='test -z "$ac_c_werror_flag"
23788 || test ! -s conftest.err'
23789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790 (eval $ac_try) 2>&5
23791 ac_status=$?
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); }; } &&
23794 { ac_try='test -s conftest$ac_exeext'
23795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796 (eval $ac_try) 2>&5
23797 ac_status=$?
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23800 ac_cv_lib_ipc_shmat=yes
23801 else
23802 echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23804
23805 ac_cv_lib_ipc_shmat=no
23806 fi
23807 rm -f conftest.err conftest.$ac_objext \
23808 conftest$ac_exeext conftest.$ac_ext
23809 LIBS=$ac_check_lib_save_LIBS
23810 fi
23811 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23812 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23813 if test $ac_cv_lib_ipc_shmat = yes; then
23814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23815 fi
23816
23817 fi
23818 fi
23819
23820 # Check for libraries that X11R6 Xt/Xaw programs need.
23821 ac_save_LDFLAGS=$LDFLAGS
23822 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23823 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23824 # check for ICE first), but we must link in the order -lSM -lICE or
23825 # we get undefined symbols. So assume we have SM if we have ICE.
23826 # These have to be linked with before -lX11, unlike the other
23827 # libraries we check for below, so use a different variable.
23828 # John Interrante, Karl Berry
23829 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23830 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23831 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23833 else
23834 ac_check_lib_save_LIBS=$LIBS
23835 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23836 cat >conftest.$ac_ext <<_ACEOF
23837 /* confdefs.h. */
23838 _ACEOF
23839 cat confdefs.h >>conftest.$ac_ext
23840 cat >>conftest.$ac_ext <<_ACEOF
23841 /* end confdefs.h. */
23842
23843 /* Override any gcc2 internal prototype to avoid an error. */
23844 #ifdef __cplusplus
23845 extern "C"
23846 #endif
23847 /* We use char because int might match the return type of a gcc2
23848 builtin and then its argument prototype would still apply. */
23849 char IceConnectionNumber ();
23850 int
23851 main ()
23852 {
23853 IceConnectionNumber ();
23854 ;
23855 return 0;
23856 }
23857 _ACEOF
23858 rm -f conftest.$ac_objext conftest$ac_exeext
23859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23860 (eval $ac_link) 2>conftest.er1
23861 ac_status=$?
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } &&
23867 { ac_try='test -z "$ac_c_werror_flag"
23868 || test ! -s conftest.err'
23869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23870 (eval $ac_try) 2>&5
23871 ac_status=$?
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); }; } &&
23874 { ac_try='test -s conftest$ac_exeext'
23875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876 (eval $ac_try) 2>&5
23877 ac_status=$?
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); }; }; then
23880 ac_cv_lib_ICE_IceConnectionNumber=yes
23881 else
23882 echo "$as_me: failed program was:" >&5
23883 sed 's/^/| /' conftest.$ac_ext >&5
23884
23885 ac_cv_lib_ICE_IceConnectionNumber=no
23886 fi
23887 rm -f conftest.err conftest.$ac_objext \
23888 conftest$ac_exeext conftest.$ac_ext
23889 LIBS=$ac_check_lib_save_LIBS
23890 fi
23891 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23892 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23893 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23894 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23895 fi
23896
23897 LDFLAGS=$ac_save_LDFLAGS
23898
23899 fi
23900
23901
23902 if test "$no_x" = "yes"; then
23903 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23904 echo "$as_me: error: X11 not found" >&2;}
23905 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23906 fi
23907
23908 GUI_TK_LIBRARY="$X_LIBS"
23909 TOOLKIT_INCLUDE="$X_CFLAGS"
23910 AFMINSTALL=afminstall
23911 COMPILED_X_PROGRAM=0
23912
23913 if test "$wxUSE_NANOX" = "yes"; then
23914 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23915 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
23916 if test "x$MICROWIN" = x ; then
23917 echo "$as_me:$LINENO: result: not found" >&5
23918 echo "${ECHO_T}not found" >&6
23919 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23920 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23921 { (exit 1); exit 1; }; }
23922 else
23923 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23924 echo "${ECHO_T}$MICROWIN" >&6
23925 cat >>confdefs.h <<\_ACEOF
23926 #define wxUSE_NANOX 1
23927 _ACEOF
23928
23929 fi
23930 fi
23931
23932 if test "$wxUSE_UNICODE" = "yes"; then
23933
23934 succeeded=no
23935
23936 if test -z "$PKG_CONFIG"; then
23937 # Extract the first word of "pkg-config", so it can be a program name with args.
23938 set dummy pkg-config; ac_word=$2
23939 echo "$as_me:$LINENO: checking for $ac_word" >&5
23940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23942 echo $ECHO_N "(cached) $ECHO_C" >&6
23943 else
23944 case $PKG_CONFIG in
23945 [\\/]* | ?:[\\/]*)
23946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23947 ;;
23948 *)
23949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23950 for as_dir in $PATH
23951 do
23952 IFS=$as_save_IFS
23953 test -z "$as_dir" && as_dir=.
23954 for ac_exec_ext in '' $ac_executable_extensions; do
23955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23958 break 2
23959 fi
23960 done
23961 done
23962
23963 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23964 ;;
23965 esac
23966 fi
23967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23968
23969 if test -n "$PKG_CONFIG"; then
23970 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23971 echo "${ECHO_T}$PKG_CONFIG" >&6
23972 else
23973 echo "$as_me:$LINENO: result: no" >&5
23974 echo "${ECHO_T}no" >&6
23975 fi
23976
23977 fi
23978
23979 if test "$PKG_CONFIG" = "no" ; then
23980 echo "*** The pkg-config script could not be found. Make sure it is"
23981 echo "*** in your path, or set the PKG_CONFIG environment variable"
23982 echo "*** to the full path to pkg-config."
23983 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23984 else
23985 PKG_CONFIG_MIN_VERSION=0.9.0
23986 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23987 echo "$as_me:$LINENO: checking for pangox" >&5
23988 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
23989
23990 if $PKG_CONFIG --exists "pangox" ; then
23991 echo "$as_me:$LINENO: result: yes" >&5
23992 echo "${ECHO_T}yes" >&6
23993 succeeded=yes
23994
23995 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23996 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
23997 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
23998 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23999 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24000
24001 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24002 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24003 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24004 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24005 echo "${ECHO_T}$PANGOX_LIBS" >&6
24006 else
24007 PANGOX_CFLAGS=""
24008 PANGOX_LIBS=""
24009 ## If we have a custom action on failure, don't print errors, but
24010 ## do set a variable so people can do so.
24011 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24012
24013 fi
24014
24015
24016
24017 else
24018 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24019 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24020 fi
24021 fi
24022
24023 if test $succeeded = yes; then
24024
24025 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24026 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24027
24028 else
24029
24030 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24031 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24032 { (exit 1); exit 1; }; }
24033
24034
24035 fi
24036
24037
24038 succeeded=no
24039
24040 if test -z "$PKG_CONFIG"; then
24041 # Extract the first word of "pkg-config", so it can be a program name with args.
24042 set dummy pkg-config; ac_word=$2
24043 echo "$as_me:$LINENO: checking for $ac_word" >&5
24044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24045 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
24047 else
24048 case $PKG_CONFIG in
24049 [\\/]* | ?:[\\/]*)
24050 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24051 ;;
24052 *)
24053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24054 for as_dir in $PATH
24055 do
24056 IFS=$as_save_IFS
24057 test -z "$as_dir" && as_dir=.
24058 for ac_exec_ext in '' $ac_executable_extensions; do
24059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24060 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24062 break 2
24063 fi
24064 done
24065 done
24066
24067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24068 ;;
24069 esac
24070 fi
24071 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24072
24073 if test -n "$PKG_CONFIG"; then
24074 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24075 echo "${ECHO_T}$PKG_CONFIG" >&6
24076 else
24077 echo "$as_me:$LINENO: result: no" >&5
24078 echo "${ECHO_T}no" >&6
24079 fi
24080
24081 fi
24082
24083 if test "$PKG_CONFIG" = "no" ; then
24084 echo "*** The pkg-config script could not be found. Make sure it is"
24085 echo "*** in your path, or set the PKG_CONFIG environment variable"
24086 echo "*** to the full path to pkg-config."
24087 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24088 else
24089 PKG_CONFIG_MIN_VERSION=0.9.0
24090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24091 echo "$as_me:$LINENO: checking for pangoft2" >&5
24092 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24093
24094 if $PKG_CONFIG --exists "pangoft2" ; then
24095 echo "$as_me:$LINENO: result: yes" >&5
24096 echo "${ECHO_T}yes" >&6
24097 succeeded=yes
24098
24099 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24100 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24101 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24102 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24103 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24104
24105 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24106 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24107 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24108 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24109 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24110 else
24111 PANGOFT2_CFLAGS=""
24112 PANGOFT2_LIBS=""
24113 ## If we have a custom action on failure, don't print errors, but
24114 ## do set a variable so people can do so.
24115 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24116
24117 fi
24118
24119
24120
24121 else
24122 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24123 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24124 fi
24125 fi
24126
24127 if test $succeeded = yes; then
24128
24129 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24130 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24131
24132 else
24133
24134 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24135 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24136 wxUSE_PRINTING_ARCHITECTURE="no"
24137
24138
24139 fi
24140
24141
24142 succeeded=no
24143
24144 if test -z "$PKG_CONFIG"; then
24145 # Extract the first word of "pkg-config", so it can be a program name with args.
24146 set dummy pkg-config; ac_word=$2
24147 echo "$as_me:$LINENO: checking for $ac_word" >&5
24148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24149 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24150 echo $ECHO_N "(cached) $ECHO_C" >&6
24151 else
24152 case $PKG_CONFIG in
24153 [\\/]* | ?:[\\/]*)
24154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24155 ;;
24156 *)
24157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24158 for as_dir in $PATH
24159 do
24160 IFS=$as_save_IFS
24161 test -z "$as_dir" && as_dir=.
24162 for ac_exec_ext in '' $ac_executable_extensions; do
24163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24166 break 2
24167 fi
24168 done
24169 done
24170
24171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24172 ;;
24173 esac
24174 fi
24175 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24176
24177 if test -n "$PKG_CONFIG"; then
24178 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24179 echo "${ECHO_T}$PKG_CONFIG" >&6
24180 else
24181 echo "$as_me:$LINENO: result: no" >&5
24182 echo "${ECHO_T}no" >&6
24183 fi
24184
24185 fi
24186
24187 if test "$PKG_CONFIG" = "no" ; then
24188 echo "*** The pkg-config script could not be found. Make sure it is"
24189 echo "*** in your path, or set the PKG_CONFIG environment variable"
24190 echo "*** to the full path to pkg-config."
24191 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24192 else
24193 PKG_CONFIG_MIN_VERSION=0.9.0
24194 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24195 echo "$as_me:$LINENO: checking for pangoxft" >&5
24196 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24197
24198 if $PKG_CONFIG --exists "pangoxft" ; then
24199 echo "$as_me:$LINENO: result: yes" >&5
24200 echo "${ECHO_T}yes" >&6
24201 succeeded=yes
24202
24203 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24204 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24205 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24206 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24207 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24208
24209 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24210 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24211 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24212 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24213 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24214 else
24215 PANGOXFT_CFLAGS=""
24216 PANGOXFT_LIBS=""
24217 ## If we have a custom action on failure, don't print errors, but
24218 ## do set a variable so people can do so.
24219 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24220
24221 fi
24222
24223
24224
24225 else
24226 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24227 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24228 fi
24229 fi
24230
24231 if test $succeeded = yes; then
24232
24233 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
24234 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
24235
24236 else
24237
24238 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24239 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24240
24241
24242 fi
24243
24244 fi
24245
24246 wxUSE_UNIVERSAL="yes"
24247
24248 if test "$wxUSE_NANOX" = "yes"; then
24249 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
24250 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"
24251 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24252 else
24253 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
24254 fi
24255
24256 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24257 TOOLKIT=X11
24258 GUIDIST=X11_DIST
24259 fi
24260
24261 if test "$wxUSE_MOTIF" = 1; then
24262 if test "$no_x" = yes; then
24263 # Not all programs may use this symbol, but it does not hurt to define it.
24264
24265 cat >>confdefs.h <<\_ACEOF
24266 #define X_DISPLAY_MISSING 1
24267 _ACEOF
24268
24269 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24270 else
24271 if test -n "$x_includes"; then
24272 X_CFLAGS="$X_CFLAGS -I$x_includes"
24273 fi
24274
24275 # It would also be nice to do this for all -L options, not just this one.
24276 if test -n "$x_libraries"; then
24277 X_LIBS="$X_LIBS -L$x_libraries"
24278 # For Solaris; some versions of Sun CC require a space after -R and
24279 # others require no space. Words are not sufficient . . . .
24280 case `(uname -sr) 2>/dev/null` in
24281 "SunOS 5"*)
24282 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24283 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24284 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24285 cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h. */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h. */
24291
24292 int
24293 main ()
24294 {
24295
24296 ;
24297 return 0;
24298 }
24299 _ACEOF
24300 rm -f conftest.$ac_objext conftest$ac_exeext
24301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24302 (eval $ac_link) 2>conftest.er1
24303 ac_status=$?
24304 grep -v '^ *+' conftest.er1 >conftest.err
24305 rm -f conftest.er1
24306 cat conftest.err >&5
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } &&
24309 { ac_try='test -z "$ac_c_werror_flag"
24310 || test ! -s conftest.err'
24311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312 (eval $ac_try) 2>&5
24313 ac_status=$?
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); }; } &&
24316 { ac_try='test -s conftest$ac_exeext'
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24319 ac_status=$?
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; }; then
24322 ac_R_nospace=yes
24323 else
24324 echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24326
24327 ac_R_nospace=no
24328 fi
24329 rm -f conftest.err conftest.$ac_objext \
24330 conftest$ac_exeext conftest.$ac_ext
24331 if test $ac_R_nospace = yes; then
24332 echo "$as_me:$LINENO: result: no" >&5
24333 echo "${ECHO_T}no" >&6
24334 X_LIBS="$X_LIBS -R$x_libraries"
24335 else
24336 LIBS="$ac_xsave_LIBS -R $x_libraries"
24337 cat >conftest.$ac_ext <<_ACEOF
24338 /* confdefs.h. */
24339 _ACEOF
24340 cat confdefs.h >>conftest.$ac_ext
24341 cat >>conftest.$ac_ext <<_ACEOF
24342 /* end confdefs.h. */
24343
24344 int
24345 main ()
24346 {
24347
24348 ;
24349 return 0;
24350 }
24351 _ACEOF
24352 rm -f conftest.$ac_objext conftest$ac_exeext
24353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24354 (eval $ac_link) 2>conftest.er1
24355 ac_status=$?
24356 grep -v '^ *+' conftest.er1 >conftest.err
24357 rm -f conftest.er1
24358 cat conftest.err >&5
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); } &&
24361 { ac_try='test -z "$ac_c_werror_flag"
24362 || test ! -s conftest.err'
24363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; } &&
24368 { ac_try='test -s conftest$ac_exeext'
24369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); }; }; then
24374 ac_R_space=yes
24375 else
24376 echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379 ac_R_space=no
24380 fi
24381 rm -f conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
24383 if test $ac_R_space = yes; then
24384 echo "$as_me:$LINENO: result: yes" >&5
24385 echo "${ECHO_T}yes" >&6
24386 X_LIBS="$X_LIBS -R $x_libraries"
24387 else
24388 echo "$as_me:$LINENO: result: neither works" >&5
24389 echo "${ECHO_T}neither works" >&6
24390 fi
24391 fi
24392 LIBS=$ac_xsave_LIBS
24393 esac
24394 fi
24395
24396 # Check for system-dependent libraries X programs must link with.
24397 # Do this before checking for the system-independent R6 libraries
24398 # (-lICE), since we may need -lsocket or whatever for X linking.
24399
24400 if test "$ISC" = yes; then
24401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24402 else
24403 # Martyn Johnson says this is needed for Ultrix, if the X
24404 # libraries were built with DECnet support. And Karl Berry says
24405 # the Alpha needs dnet_stub (dnet does not exist).
24406 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24407 cat >conftest.$ac_ext <<_ACEOF
24408 /* confdefs.h. */
24409 _ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h. */
24413
24414 /* Override any gcc2 internal prototype to avoid an error. */
24415 #ifdef __cplusplus
24416 extern "C"
24417 #endif
24418 /* We use char because int might match the return type of a gcc2
24419 builtin and then its argument prototype would still apply. */
24420 char XOpenDisplay ();
24421 int
24422 main ()
24423 {
24424 XOpenDisplay ();
24425 ;
24426 return 0;
24427 }
24428 _ACEOF
24429 rm -f conftest.$ac_objext conftest$ac_exeext
24430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24431 (eval $ac_link) 2>conftest.er1
24432 ac_status=$?
24433 grep -v '^ *+' conftest.er1 >conftest.err
24434 rm -f conftest.er1
24435 cat conftest.err >&5
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } &&
24438 { ac_try='test -z "$ac_c_werror_flag"
24439 || test ! -s conftest.err'
24440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); }; } &&
24445 { ac_try='test -s conftest$ac_exeext'
24446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447 (eval $ac_try) 2>&5
24448 ac_status=$?
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); }; }; then
24451 :
24452 else
24453 echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24455
24456 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24457 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24458 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24459 echo $ECHO_N "(cached) $ECHO_C" >&6
24460 else
24461 ac_check_lib_save_LIBS=$LIBS
24462 LIBS="-ldnet $LIBS"
24463 cat >conftest.$ac_ext <<_ACEOF
24464 /* confdefs.h. */
24465 _ACEOF
24466 cat confdefs.h >>conftest.$ac_ext
24467 cat >>conftest.$ac_ext <<_ACEOF
24468 /* end confdefs.h. */
24469
24470 /* Override any gcc2 internal prototype to avoid an error. */
24471 #ifdef __cplusplus
24472 extern "C"
24473 #endif
24474 /* We use char because int might match the return type of a gcc2
24475 builtin and then its argument prototype would still apply. */
24476 char dnet_ntoa ();
24477 int
24478 main ()
24479 {
24480 dnet_ntoa ();
24481 ;
24482 return 0;
24483 }
24484 _ACEOF
24485 rm -f conftest.$ac_objext conftest$ac_exeext
24486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24487 (eval $ac_link) 2>conftest.er1
24488 ac_status=$?
24489 grep -v '^ *+' conftest.er1 >conftest.err
24490 rm -f conftest.er1
24491 cat conftest.err >&5
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } &&
24494 { ac_try='test -z "$ac_c_werror_flag"
24495 || test ! -s conftest.err'
24496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; } &&
24501 { ac_try='test -s conftest$ac_exeext'
24502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24507 ac_cv_lib_dnet_dnet_ntoa=yes
24508 else
24509 echo "$as_me: failed program was:" >&5
24510 sed 's/^/| /' conftest.$ac_ext >&5
24511
24512 ac_cv_lib_dnet_dnet_ntoa=no
24513 fi
24514 rm -f conftest.err conftest.$ac_objext \
24515 conftest$ac_exeext conftest.$ac_ext
24516 LIBS=$ac_check_lib_save_LIBS
24517 fi
24518 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24519 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24520 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24521 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24522 fi
24523
24524 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24525 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24526 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24527 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24528 echo $ECHO_N "(cached) $ECHO_C" >&6
24529 else
24530 ac_check_lib_save_LIBS=$LIBS
24531 LIBS="-ldnet_stub $LIBS"
24532 cat >conftest.$ac_ext <<_ACEOF
24533 /* confdefs.h. */
24534 _ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h. */
24538
24539 /* Override any gcc2 internal prototype to avoid an error. */
24540 #ifdef __cplusplus
24541 extern "C"
24542 #endif
24543 /* We use char because int might match the return type of a gcc2
24544 builtin and then its argument prototype would still apply. */
24545 char dnet_ntoa ();
24546 int
24547 main ()
24548 {
24549 dnet_ntoa ();
24550 ;
24551 return 0;
24552 }
24553 _ACEOF
24554 rm -f conftest.$ac_objext conftest$ac_exeext
24555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24556 (eval $ac_link) 2>conftest.er1
24557 ac_status=$?
24558 grep -v '^ *+' conftest.er1 >conftest.err
24559 rm -f conftest.er1
24560 cat conftest.err >&5
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } &&
24563 { ac_try='test -z "$ac_c_werror_flag"
24564 || test ! -s conftest.err'
24565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24566 (eval $ac_try) 2>&5
24567 ac_status=$?
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); }; } &&
24570 { ac_try='test -s conftest$ac_exeext'
24571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; }; then
24576 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24577 else
24578 echo "$as_me: failed program was:" >&5
24579 sed 's/^/| /' conftest.$ac_ext >&5
24580
24581 ac_cv_lib_dnet_stub_dnet_ntoa=no
24582 fi
24583 rm -f conftest.err conftest.$ac_objext \
24584 conftest$ac_exeext conftest.$ac_ext
24585 LIBS=$ac_check_lib_save_LIBS
24586 fi
24587 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24588 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24589 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24590 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24591 fi
24592
24593 fi
24594 fi
24595 rm -f conftest.err conftest.$ac_objext \
24596 conftest$ac_exeext conftest.$ac_ext
24597 LIBS="$ac_xsave_LIBS"
24598
24599 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24600 # to get the SysV transport functions.
24601 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24602 # needs -lnsl.
24603 # The nsl library prevents programs from opening the X display
24604 # on Irix 5.2, according to T.E. Dickey.
24605 # The functions gethostbyname, getservbyname, and inet_addr are
24606 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24607 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24608 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24609 if test "${ac_cv_func_gethostbyname+set}" = set; then
24610 echo $ECHO_N "(cached) $ECHO_C" >&6
24611 else
24612 cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h. */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h. */
24618 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24620 #define gethostbyname innocuous_gethostbyname
24621
24622 /* System header to define __stub macros and hopefully few prototypes,
24623 which can conflict with char gethostbyname (); below.
24624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24625 <limits.h> exists even on freestanding compilers. */
24626
24627 #ifdef __STDC__
24628 # include <limits.h>
24629 #else
24630 # include <assert.h>
24631 #endif
24632
24633 #undef gethostbyname
24634
24635 /* Override any gcc2 internal prototype to avoid an error. */
24636 #ifdef __cplusplus
24637 extern "C"
24638 {
24639 #endif
24640 /* We use char because int might match the return type of a gcc2
24641 builtin and then its argument prototype would still apply. */
24642 char gethostbyname ();
24643 /* The GNU C library defines this for functions which it implements
24644 to always fail with ENOSYS. Some functions are actually named
24645 something starting with __ and the normal name is an alias. */
24646 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24647 choke me
24648 #else
24649 char (*f) () = gethostbyname;
24650 #endif
24651 #ifdef __cplusplus
24652 }
24653 #endif
24654
24655 int
24656 main ()
24657 {
24658 return f != gethostbyname;
24659 ;
24660 return 0;
24661 }
24662 _ACEOF
24663 rm -f conftest.$ac_objext conftest$ac_exeext
24664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24665 (eval $ac_link) 2>conftest.er1
24666 ac_status=$?
24667 grep -v '^ *+' conftest.er1 >conftest.err
24668 rm -f conftest.er1
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } &&
24672 { ac_try='test -z "$ac_c_werror_flag"
24673 || test ! -s conftest.err'
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; } &&
24679 { ac_try='test -s conftest$ac_exeext'
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; }; then
24685 ac_cv_func_gethostbyname=yes
24686 else
24687 echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24689
24690 ac_cv_func_gethostbyname=no
24691 fi
24692 rm -f conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24694 fi
24695 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24696 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24697
24698 if test $ac_cv_func_gethostbyname = no; then
24699 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24700 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24701 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24702 echo $ECHO_N "(cached) $ECHO_C" >&6
24703 else
24704 ac_check_lib_save_LIBS=$LIBS
24705 LIBS="-lnsl $LIBS"
24706 cat >conftest.$ac_ext <<_ACEOF
24707 /* confdefs.h. */
24708 _ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712
24713 /* Override any gcc2 internal prototype to avoid an error. */
24714 #ifdef __cplusplus
24715 extern "C"
24716 #endif
24717 /* We use char because int might match the return type of a gcc2
24718 builtin and then its argument prototype would still apply. */
24719 char gethostbyname ();
24720 int
24721 main ()
24722 {
24723 gethostbyname ();
24724 ;
24725 return 0;
24726 }
24727 _ACEOF
24728 rm -f conftest.$ac_objext conftest$ac_exeext
24729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24730 (eval $ac_link) 2>conftest.er1
24731 ac_status=$?
24732 grep -v '^ *+' conftest.er1 >conftest.err
24733 rm -f conftest.er1
24734 cat conftest.err >&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } &&
24737 { ac_try='test -z "$ac_c_werror_flag"
24738 || test ! -s conftest.err'
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24741 ac_status=$?
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; } &&
24744 { ac_try='test -s conftest$ac_exeext'
24745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 (eval $ac_try) 2>&5
24747 ac_status=$?
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; }; then
24750 ac_cv_lib_nsl_gethostbyname=yes
24751 else
24752 echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24754
24755 ac_cv_lib_nsl_gethostbyname=no
24756 fi
24757 rm -f conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
24759 LIBS=$ac_check_lib_save_LIBS
24760 fi
24761 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24762 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24763 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24765 fi
24766
24767 if test $ac_cv_lib_nsl_gethostbyname = no; then
24768 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24769 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24770 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24772 else
24773 ac_check_lib_save_LIBS=$LIBS
24774 LIBS="-lbsd $LIBS"
24775 cat >conftest.$ac_ext <<_ACEOF
24776 /* confdefs.h. */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h. */
24781
24782 /* Override any gcc2 internal prototype to avoid an error. */
24783 #ifdef __cplusplus
24784 extern "C"
24785 #endif
24786 /* We use char because int might match the return type of a gcc2
24787 builtin and then its argument prototype would still apply. */
24788 char gethostbyname ();
24789 int
24790 main ()
24791 {
24792 gethostbyname ();
24793 ;
24794 return 0;
24795 }
24796 _ACEOF
24797 rm -f conftest.$ac_objext conftest$ac_exeext
24798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24799 (eval $ac_link) 2>conftest.er1
24800 ac_status=$?
24801 grep -v '^ *+' conftest.er1 >conftest.err
24802 rm -f conftest.er1
24803 cat conftest.err >&5
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } &&
24806 { ac_try='test -z "$ac_c_werror_flag"
24807 || test ! -s conftest.err'
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; } &&
24813 { ac_try='test -s conftest$ac_exeext'
24814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24815 (eval $ac_try) 2>&5
24816 ac_status=$?
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); }; }; then
24819 ac_cv_lib_bsd_gethostbyname=yes
24820 else
24821 echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24823
24824 ac_cv_lib_bsd_gethostbyname=no
24825 fi
24826 rm -f conftest.err conftest.$ac_objext \
24827 conftest$ac_exeext conftest.$ac_ext
24828 LIBS=$ac_check_lib_save_LIBS
24829 fi
24830 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24831 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24832 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24833 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24834 fi
24835
24836 fi
24837 fi
24838
24839 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24840 # socket/setsockopt and other routines are undefined under SCO ODT
24841 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24842 # on later versions), says Simon Leinen: it contains gethostby*
24843 # variants that don't use the name server (or something). -lsocket
24844 # must be given before -lnsl if both are needed. We assume that
24845 # if connect needs -lnsl, so does gethostbyname.
24846 echo "$as_me:$LINENO: checking for connect" >&5
24847 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24848 if test "${ac_cv_func_connect+set}" = set; then
24849 echo $ECHO_N "(cached) $ECHO_C" >&6
24850 else
24851 cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h. */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24857 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24859 #define connect innocuous_connect
24860
24861 /* System header to define __stub macros and hopefully few prototypes,
24862 which can conflict with char connect (); below.
24863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24864 <limits.h> exists even on freestanding compilers. */
24865
24866 #ifdef __STDC__
24867 # include <limits.h>
24868 #else
24869 # include <assert.h>
24870 #endif
24871
24872 #undef connect
24873
24874 /* Override any gcc2 internal prototype to avoid an error. */
24875 #ifdef __cplusplus
24876 extern "C"
24877 {
24878 #endif
24879 /* We use char because int might match the return type of a gcc2
24880 builtin and then its argument prototype would still apply. */
24881 char connect ();
24882 /* The GNU C library defines this for functions which it implements
24883 to always fail with ENOSYS. Some functions are actually named
24884 something starting with __ and the normal name is an alias. */
24885 #if defined (__stub_connect) || defined (__stub___connect)
24886 choke me
24887 #else
24888 char (*f) () = connect;
24889 #endif
24890 #ifdef __cplusplus
24891 }
24892 #endif
24893
24894 int
24895 main ()
24896 {
24897 return f != connect;
24898 ;
24899 return 0;
24900 }
24901 _ACEOF
24902 rm -f conftest.$ac_objext conftest$ac_exeext
24903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24904 (eval $ac_link) 2>conftest.er1
24905 ac_status=$?
24906 grep -v '^ *+' conftest.er1 >conftest.err
24907 rm -f conftest.er1
24908 cat conftest.err >&5
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); } &&
24911 { ac_try='test -z "$ac_c_werror_flag"
24912 || test ! -s conftest.err'
24913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); }; } &&
24918 { ac_try='test -s conftest$ac_exeext'
24919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24920 (eval $ac_try) 2>&5
24921 ac_status=$?
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); }; }; then
24924 ac_cv_func_connect=yes
24925 else
24926 echo "$as_me: failed program was:" >&5
24927 sed 's/^/| /' conftest.$ac_ext >&5
24928
24929 ac_cv_func_connect=no
24930 fi
24931 rm -f conftest.err conftest.$ac_objext \
24932 conftest$ac_exeext conftest.$ac_ext
24933 fi
24934 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24935 echo "${ECHO_T}$ac_cv_func_connect" >&6
24936
24937 if test $ac_cv_func_connect = no; then
24938 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24939 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24940 if test "${ac_cv_lib_socket_connect+set}" = set; then
24941 echo $ECHO_N "(cached) $ECHO_C" >&6
24942 else
24943 ac_check_lib_save_LIBS=$LIBS
24944 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24945 cat >conftest.$ac_ext <<_ACEOF
24946 /* confdefs.h. */
24947 _ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h. */
24951
24952 /* Override any gcc2 internal prototype to avoid an error. */
24953 #ifdef __cplusplus
24954 extern "C"
24955 #endif
24956 /* We use char because int might match the return type of a gcc2
24957 builtin and then its argument prototype would still apply. */
24958 char connect ();
24959 int
24960 main ()
24961 {
24962 connect ();
24963 ;
24964 return 0;
24965 }
24966 _ACEOF
24967 rm -f conftest.$ac_objext conftest$ac_exeext
24968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24969 (eval $ac_link) 2>conftest.er1
24970 ac_status=$?
24971 grep -v '^ *+' conftest.er1 >conftest.err
24972 rm -f conftest.er1
24973 cat conftest.err >&5
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } &&
24976 { ac_try='test -z "$ac_c_werror_flag"
24977 || test ! -s conftest.err'
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; } &&
24983 { ac_try='test -s conftest$ac_exeext'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24986 ac_status=$?
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; }; then
24989 ac_cv_lib_socket_connect=yes
24990 else
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24993
24994 ac_cv_lib_socket_connect=no
24995 fi
24996 rm -f conftest.err conftest.$ac_objext \
24997 conftest$ac_exeext conftest.$ac_ext
24998 LIBS=$ac_check_lib_save_LIBS
24999 fi
25000 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25001 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25002 if test $ac_cv_lib_socket_connect = yes; then
25003 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25004 fi
25005
25006 fi
25007
25008 # Guillermo Gomez says -lposix is necessary on A/UX.
25009 echo "$as_me:$LINENO: checking for remove" >&5
25010 echo $ECHO_N "checking for remove... $ECHO_C" >&6
25011 if test "${ac_cv_func_remove+set}" = set; then
25012 echo $ECHO_N "(cached) $ECHO_C" >&6
25013 else
25014 cat >conftest.$ac_ext <<_ACEOF
25015 /* confdefs.h. */
25016 _ACEOF
25017 cat confdefs.h >>conftest.$ac_ext
25018 cat >>conftest.$ac_ext <<_ACEOF
25019 /* end confdefs.h. */
25020 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
25021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25022 #define remove innocuous_remove
25023
25024 /* System header to define __stub macros and hopefully few prototypes,
25025 which can conflict with char remove (); below.
25026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25027 <limits.h> exists even on freestanding compilers. */
25028
25029 #ifdef __STDC__
25030 # include <limits.h>
25031 #else
25032 # include <assert.h>
25033 #endif
25034
25035 #undef remove
25036
25037 /* Override any gcc2 internal prototype to avoid an error. */
25038 #ifdef __cplusplus
25039 extern "C"
25040 {
25041 #endif
25042 /* We use char because int might match the return type of a gcc2
25043 builtin and then its argument prototype would still apply. */
25044 char remove ();
25045 /* The GNU C library defines this for functions which it implements
25046 to always fail with ENOSYS. Some functions are actually named
25047 something starting with __ and the normal name is an alias. */
25048 #if defined (__stub_remove) || defined (__stub___remove)
25049 choke me
25050 #else
25051 char (*f) () = remove;
25052 #endif
25053 #ifdef __cplusplus
25054 }
25055 #endif
25056
25057 int
25058 main ()
25059 {
25060 return f != remove;
25061 ;
25062 return 0;
25063 }
25064 _ACEOF
25065 rm -f conftest.$ac_objext conftest$ac_exeext
25066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25067 (eval $ac_link) 2>conftest.er1
25068 ac_status=$?
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } &&
25074 { ac_try='test -z "$ac_c_werror_flag"
25075 || test ! -s conftest.err'
25076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); }; } &&
25081 { ac_try='test -s conftest$ac_exeext'
25082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25083 (eval $ac_try) 2>&5
25084 ac_status=$?
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); }; }; then
25087 ac_cv_func_remove=yes
25088 else
25089 echo "$as_me: failed program was:" >&5
25090 sed 's/^/| /' conftest.$ac_ext >&5
25091
25092 ac_cv_func_remove=no
25093 fi
25094 rm -f conftest.err conftest.$ac_objext \
25095 conftest$ac_exeext conftest.$ac_ext
25096 fi
25097 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25098 echo "${ECHO_T}$ac_cv_func_remove" >&6
25099
25100 if test $ac_cv_func_remove = no; then
25101 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25102 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25103 if test "${ac_cv_lib_posix_remove+set}" = set; then
25104 echo $ECHO_N "(cached) $ECHO_C" >&6
25105 else
25106 ac_check_lib_save_LIBS=$LIBS
25107 LIBS="-lposix $LIBS"
25108 cat >conftest.$ac_ext <<_ACEOF
25109 /* confdefs.h. */
25110 _ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h. */
25114
25115 /* Override any gcc2 internal prototype to avoid an error. */
25116 #ifdef __cplusplus
25117 extern "C"
25118 #endif
25119 /* We use char because int might match the return type of a gcc2
25120 builtin and then its argument prototype would still apply. */
25121 char remove ();
25122 int
25123 main ()
25124 {
25125 remove ();
25126 ;
25127 return 0;
25128 }
25129 _ACEOF
25130 rm -f conftest.$ac_objext conftest$ac_exeext
25131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25132 (eval $ac_link) 2>conftest.er1
25133 ac_status=$?
25134 grep -v '^ *+' conftest.er1 >conftest.err
25135 rm -f conftest.er1
25136 cat conftest.err >&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); } &&
25139 { ac_try='test -z "$ac_c_werror_flag"
25140 || test ! -s conftest.err'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; } &&
25146 { ac_try='test -s conftest$ac_exeext'
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; }; then
25152 ac_cv_lib_posix_remove=yes
25153 else
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25156
25157 ac_cv_lib_posix_remove=no
25158 fi
25159 rm -f conftest.err conftest.$ac_objext \
25160 conftest$ac_exeext conftest.$ac_ext
25161 LIBS=$ac_check_lib_save_LIBS
25162 fi
25163 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25164 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25165 if test $ac_cv_lib_posix_remove = yes; then
25166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25167 fi
25168
25169 fi
25170
25171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25172 echo "$as_me:$LINENO: checking for shmat" >&5
25173 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25174 if test "${ac_cv_func_shmat+set}" = set; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25176 else
25177 cat >conftest.$ac_ext <<_ACEOF
25178 /* confdefs.h. */
25179 _ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25183 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25185 #define shmat innocuous_shmat
25186
25187 /* System header to define __stub macros and hopefully few prototypes,
25188 which can conflict with char shmat (); below.
25189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25190 <limits.h> exists even on freestanding compilers. */
25191
25192 #ifdef __STDC__
25193 # include <limits.h>
25194 #else
25195 # include <assert.h>
25196 #endif
25197
25198 #undef shmat
25199
25200 /* Override any gcc2 internal prototype to avoid an error. */
25201 #ifdef __cplusplus
25202 extern "C"
25203 {
25204 #endif
25205 /* We use char because int might match the return type of a gcc2
25206 builtin and then its argument prototype would still apply. */
25207 char shmat ();
25208 /* The GNU C library defines this for functions which it implements
25209 to always fail with ENOSYS. Some functions are actually named
25210 something starting with __ and the normal name is an alias. */
25211 #if defined (__stub_shmat) || defined (__stub___shmat)
25212 choke me
25213 #else
25214 char (*f) () = shmat;
25215 #endif
25216 #ifdef __cplusplus
25217 }
25218 #endif
25219
25220 int
25221 main ()
25222 {
25223 return f != shmat;
25224 ;
25225 return 0;
25226 }
25227 _ACEOF
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230 (eval $ac_link) 2>conftest.er1
25231 ac_status=$?
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
25237 { ac_try='test -z "$ac_c_werror_flag"
25238 || test ! -s conftest.err'
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; } &&
25244 { ac_try='test -s conftest$ac_exeext'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25247 ac_status=$?
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; }; then
25250 ac_cv_func_shmat=yes
25251 else
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25254
25255 ac_cv_func_shmat=no
25256 fi
25257 rm -f conftest.err conftest.$ac_objext \
25258 conftest$ac_exeext conftest.$ac_ext
25259 fi
25260 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25261 echo "${ECHO_T}$ac_cv_func_shmat" >&6
25262
25263 if test $ac_cv_func_shmat = no; then
25264 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25265 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25266 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25268 else
25269 ac_check_lib_save_LIBS=$LIBS
25270 LIBS="-lipc $LIBS"
25271 cat >conftest.$ac_ext <<_ACEOF
25272 /* confdefs.h. */
25273 _ACEOF
25274 cat confdefs.h >>conftest.$ac_ext
25275 cat >>conftest.$ac_ext <<_ACEOF
25276 /* end confdefs.h. */
25277
25278 /* Override any gcc2 internal prototype to avoid an error. */
25279 #ifdef __cplusplus
25280 extern "C"
25281 #endif
25282 /* We use char because int might match the return type of a gcc2
25283 builtin and then its argument prototype would still apply. */
25284 char shmat ();
25285 int
25286 main ()
25287 {
25288 shmat ();
25289 ;
25290 return 0;
25291 }
25292 _ACEOF
25293 rm -f conftest.$ac_objext conftest$ac_exeext
25294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25295 (eval $ac_link) 2>conftest.er1
25296 ac_status=$?
25297 grep -v '^ *+' conftest.er1 >conftest.err
25298 rm -f conftest.er1
25299 cat conftest.err >&5
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } &&
25302 { ac_try='test -z "$ac_c_werror_flag"
25303 || test ! -s conftest.err'
25304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25305 (eval $ac_try) 2>&5
25306 ac_status=$?
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); }; } &&
25309 { ac_try='test -s conftest$ac_exeext'
25310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25311 (eval $ac_try) 2>&5
25312 ac_status=$?
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); }; }; then
25315 ac_cv_lib_ipc_shmat=yes
25316 else
25317 echo "$as_me: failed program was:" >&5
25318 sed 's/^/| /' conftest.$ac_ext >&5
25319
25320 ac_cv_lib_ipc_shmat=no
25321 fi
25322 rm -f conftest.err conftest.$ac_objext \
25323 conftest$ac_exeext conftest.$ac_ext
25324 LIBS=$ac_check_lib_save_LIBS
25325 fi
25326 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25327 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25328 if test $ac_cv_lib_ipc_shmat = yes; then
25329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25330 fi
25331
25332 fi
25333 fi
25334
25335 # Check for libraries that X11R6 Xt/Xaw programs need.
25336 ac_save_LDFLAGS=$LDFLAGS
25337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25339 # check for ICE first), but we must link in the order -lSM -lICE or
25340 # we get undefined symbols. So assume we have SM if we have ICE.
25341 # These have to be linked with before -lX11, unlike the other
25342 # libraries we check for below, so use a different variable.
25343 # John Interrante, Karl Berry
25344 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25345 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25346 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25347 echo $ECHO_N "(cached) $ECHO_C" >&6
25348 else
25349 ac_check_lib_save_LIBS=$LIBS
25350 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25351 cat >conftest.$ac_ext <<_ACEOF
25352 /* confdefs.h. */
25353 _ACEOF
25354 cat confdefs.h >>conftest.$ac_ext
25355 cat >>conftest.$ac_ext <<_ACEOF
25356 /* end confdefs.h. */
25357
25358 /* Override any gcc2 internal prototype to avoid an error. */
25359 #ifdef __cplusplus
25360 extern "C"
25361 #endif
25362 /* We use char because int might match the return type of a gcc2
25363 builtin and then its argument prototype would still apply. */
25364 char IceConnectionNumber ();
25365 int
25366 main ()
25367 {
25368 IceConnectionNumber ();
25369 ;
25370 return 0;
25371 }
25372 _ACEOF
25373 rm -f conftest.$ac_objext conftest$ac_exeext
25374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25375 (eval $ac_link) 2>conftest.er1
25376 ac_status=$?
25377 grep -v '^ *+' conftest.er1 >conftest.err
25378 rm -f conftest.er1
25379 cat conftest.err >&5
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); } &&
25382 { ac_try='test -z "$ac_c_werror_flag"
25383 || test ! -s conftest.err'
25384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; } &&
25389 { ac_try='test -s conftest$ac_exeext'
25390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25391 (eval $ac_try) 2>&5
25392 ac_status=$?
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); }; }; then
25395 ac_cv_lib_ICE_IceConnectionNumber=yes
25396 else
25397 echo "$as_me: failed program was:" >&5
25398 sed 's/^/| /' conftest.$ac_ext >&5
25399
25400 ac_cv_lib_ICE_IceConnectionNumber=no
25401 fi
25402 rm -f conftest.err conftest.$ac_objext \
25403 conftest$ac_exeext conftest.$ac_ext
25404 LIBS=$ac_check_lib_save_LIBS
25405 fi
25406 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25407 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25408 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25409 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25410 fi
25411
25412 LDFLAGS=$ac_save_LDFLAGS
25413
25414 fi
25415
25416
25417 if test "$no_x" = "yes"; then
25418 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25419 echo "$as_me: error: X11 not found" >&2;}
25420 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25421 fi
25422
25423 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25424 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
25425 AFMINSTALL=afminstall
25426 COMPILED_X_PROGRAM=0
25427
25428 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25429 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25430
25431 ac_find_includes=
25432 for ac_dir in $SEARCH_INCLUDE /usr/include;
25433 do
25434 if test -f "$ac_dir/Xm/Xm.h"; then
25435 ac_find_includes=$ac_dir
25436 break
25437 fi
25438 done
25439
25440 if test "$ac_find_includes" != "" ; then
25441 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25442 echo "${ECHO_T}found in $ac_find_includes" >&6
25443
25444 if test "x$ac_find_includes" = "x/usr/include"; then
25445 ac_path_to_include=""
25446 else
25447 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25448 result=$?
25449 if test $result = 0; then
25450 ac_path_to_include=""
25451 else
25452 ac_path_to_include=" -I$ac_find_includes"
25453 fi
25454 fi
25455
25456 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25457 else
25458 cat >conftest.$ac_ext <<_ACEOF
25459 /* confdefs.h. */
25460 _ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h. */
25464
25465 #include <Xm/Xm.h>
25466
25467 int
25468 main ()
25469 {
25470
25471 int version;
25472 version = xmUseVersion;
25473
25474 ;
25475 return 0;
25476 }
25477 _ACEOF
25478 rm -f conftest.$ac_objext
25479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25480 (eval $ac_compile) 2>conftest.er1
25481 ac_status=$?
25482 grep -v '^ *+' conftest.er1 >conftest.err
25483 rm -f conftest.er1
25484 cat conftest.err >&5
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); } &&
25487 { ac_try='test -z "$ac_c_werror_flag"
25488 || test ! -s conftest.err'
25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25490 (eval $ac_try) 2>&5
25491 ac_status=$?
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); }; } &&
25494 { ac_try='test -s conftest.$ac_objext'
25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496 (eval $ac_try) 2>&5
25497 ac_status=$?
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; }; then
25500
25501 echo "$as_me:$LINENO: result: found in default search path" >&5
25502 echo "${ECHO_T}found in default search path" >&6
25503 COMPILED_X_PROGRAM=1
25504
25505 else
25506 echo "$as_me: failed program was:" >&5
25507 sed 's/^/| /' conftest.$ac_ext >&5
25508
25509
25510 echo "$as_me:$LINENO: result: no" >&5
25511 echo "${ECHO_T}no" >&6
25512 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25513 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25514 { (exit 1); exit 1; }; }
25515
25516
25517 fi
25518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25519 fi
25520
25521 if test "$COMPILED_X_PROGRAM" = 0; then
25522 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25523 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25524
25525 ac_find_libraries=
25526 for ac_dir in $SEARCH_LIB /usr/lib;
25527 do
25528 for ac_extension in a so sl dylib; do
25529 if test -f "$ac_dir/libXm.$ac_extension"; then
25530 ac_find_libraries=$ac_dir
25531 break 2
25532 fi
25533 done
25534 done
25535
25536 if test "$ac_find_libraries" != "" ; then
25537 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25538 echo "${ECHO_T}found at $ac_find_libraries" >&6
25539
25540
25541 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25542 result=$?
25543 if test $result = 0; then
25544 ac_path_to_link=""
25545 else
25546 ac_path_to_link=" -L$ac_find_libraries"
25547 fi
25548
25549 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25550 else
25551 save_CFLAGS=$CFLAGS
25552 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25553
25554 cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h. */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25560
25561 #include <Xm/Xm.h>
25562
25563 int
25564 main ()
25565 {
25566
25567 int version;
25568 version = xmUseVersion;
25569
25570 ;
25571 return 0;
25572 }
25573 _ACEOF
25574 rm -f conftest.$ac_objext
25575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25576 (eval $ac_compile) 2>conftest.er1
25577 ac_status=$?
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } &&
25583 { ac_try='test -z "$ac_c_werror_flag"
25584 || test ! -s conftest.err'
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; } &&
25590 { ac_try='test -s conftest.$ac_objext'
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; }; then
25596
25597 echo "$as_me:$LINENO: result: found in default search path" >&5
25598 echo "${ECHO_T}found in default search path" >&6
25599 COMPILED_X_PROGRAM=1
25600
25601 else
25602 echo "$as_me: failed program was:" >&5
25603 sed 's/^/| /' conftest.$ac_ext >&5
25604
25605
25606 echo "$as_me:$LINENO: result: no" >&5
25607 echo "${ECHO_T}no" >&6
25608 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25609 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25610 { (exit 1); exit 1; }; }
25611
25612
25613 fi
25614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25615
25616 CFLAGS=$save_CFLAGS
25617 fi
25618 fi
25619
25620 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25621 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
25622 libp_link=""
25623 libsm_ice_link=""
25624 libs_found=0
25625 for libp in "" " -lXp"; do
25626 if test "$libs_found" = "0"; then
25627 for libsm_ice in "" " -lSM -lICE"; do
25628 if test "$libs_found" = "0"; then
25629 save_LIBS="$LIBS"
25630 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
25631 save_CFLAGS=$CFLAGS
25632 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25633
25634 cat >conftest.$ac_ext <<_ACEOF
25635 /* confdefs.h. */
25636 _ACEOF
25637 cat confdefs.h >>conftest.$ac_ext
25638 cat >>conftest.$ac_ext <<_ACEOF
25639 /* end confdefs.h. */
25640
25641 #include <Xm/Xm.h>
25642 #include <Xm/List.h>
25643
25644 int
25645 main ()
25646 {
25647
25648 XmString string = NULL;
25649 Widget w = NULL;
25650 int position = 0;
25651 XmListAddItem(w, string, position);
25652
25653 ;
25654 return 0;
25655 }
25656 _ACEOF
25657 rm -f conftest.$ac_objext conftest$ac_exeext
25658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25659 (eval $ac_link) 2>conftest.er1
25660 ac_status=$?
25661 grep -v '^ *+' conftest.er1 >conftest.err
25662 rm -f conftest.er1
25663 cat conftest.err >&5
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); } &&
25666 { ac_try='test -z "$ac_c_werror_flag"
25667 || test ! -s conftest.err'
25668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; } &&
25673 { ac_try='test -s conftest$ac_exeext'
25674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679
25680 libp_link="$libp"
25681 libsm_ice_link="$libsm_ice"
25682 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25683 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
25684 libs_found=1
25685
25686 else
25687 echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.$ac_ext >&5
25689
25690
25691
25692 fi
25693 rm -f conftest.err conftest.$ac_objext \
25694 conftest$ac_exeext conftest.$ac_ext
25695
25696 LIBS="$save_LIBS"
25697 CFLAGS=$save_CFLAGS
25698 fi
25699 done
25700 fi
25701 done
25702
25703 if test "$libs_found" = "0"; then
25704 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25705 echo "${ECHO_T}can't find the right libraries" >&6
25706 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25707 echo "$as_me: error: can't link a simple motif program" >&2;}
25708 { (exit 1); exit 1; }; }
25709 fi
25710
25711 save_CFLAGS=$CFLAGS
25712 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25713 echo "$as_me:$LINENO: checking for Motif 2" >&5
25714 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25715 cat >conftest.$ac_ext <<_ACEOF
25716 /* confdefs.h. */
25717 _ACEOF
25718 cat confdefs.h >>conftest.$ac_ext
25719 cat >>conftest.$ac_ext <<_ACEOF
25720 /* end confdefs.h. */
25721
25722 #include <Xm/Xm.h>
25723
25724 int
25725 main ()
25726 {
25727
25728 #if XmVersion < 2000
25729 #error "Not Motif 2"
25730 #endif
25731
25732 ;
25733 return 0;
25734 }
25735 _ACEOF
25736 rm -f conftest.$ac_objext
25737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25738 (eval $ac_compile) 2>conftest.er1
25739 ac_status=$?
25740 grep -v '^ *+' conftest.er1 >conftest.err
25741 rm -f conftest.er1
25742 cat conftest.err >&5
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); } &&
25745 { ac_try='test -z "$ac_c_werror_flag"
25746 || test ! -s conftest.err'
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; } &&
25752 { ac_try='test -s conftest.$ac_objext'
25753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); }; }; then
25758
25759 cat >>confdefs.h <<\_ACEOF
25760 #define __WXMOTIF20__ 1
25761 _ACEOF
25762
25763 echo "$as_me:$LINENO: result: found" >&5
25764 echo "${ECHO_T}found" >&6
25765
25766 else
25767 echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25769
25770
25771 cat >>confdefs.h <<\_ACEOF
25772 #define __WXMOTIF20__ 0
25773 _ACEOF
25774
25775 echo "$as_me:$LINENO: result: not found" >&5
25776 echo "${ECHO_T}not found" >&6
25777
25778 fi
25779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25780 CFLAGS=$save_CFLAGS
25781
25782 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
25783 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
25784 TOOLKIT=MOTIF
25785 GUIDIST=MOTIF_DIST
25786 fi
25787
25788 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25789 if test "$wxUSE_LIBXPM" = "sys"; then
25790 echo "$as_me:$LINENO: checking for Xpm library" >&5
25791 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25792
25793 ac_find_libraries=
25794 for ac_dir in $SEARCH_LIB /usr/lib;
25795 do
25796 for ac_extension in a so sl dylib; do
25797 if test -f "$ac_dir/libXpm.$ac_extension"; then
25798 ac_find_libraries=$ac_dir
25799 break 2
25800 fi
25801 done
25802 done
25803
25804 if test "$ac_find_libraries" != "" ; then
25805
25806 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25807 result=$?
25808 if test $result = 0; then
25809 ac_path_to_link=""
25810 else
25811 ac_path_to_link=" -L$ac_find_libraries"
25812 fi
25813
25814 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25815 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25816 echo "${ECHO_T}found at $ac_find_libraries" >&6
25817
25818 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25819 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25820 if test "${wx_cv_x11_xpm_h+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
25822 else
25823
25824 save_CFLAGS=$CFLAGS
25825 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25826
25827 cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h. */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25833
25834 #include <X11/xpm.h>
25835
25836 int
25837 main ()
25838 {
25839
25840 int version;
25841 version = XpmLibraryVersion();
25842
25843 ;
25844 return 0;
25845 }
25846 _ACEOF
25847 rm -f conftest.$ac_objext
25848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25849 (eval $ac_compile) 2>conftest.er1
25850 ac_status=$?
25851 grep -v '^ *+' conftest.er1 >conftest.err
25852 rm -f conftest.er1
25853 cat conftest.err >&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } &&
25856 { ac_try='test -z "$ac_c_werror_flag"
25857 || test ! -s conftest.err'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; } &&
25863 { ac_try='test -s conftest.$ac_objext'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 wx_cv_x11_xpm_h=yes
25870 else
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25873
25874 wx_cv_x11_xpm_h=no
25875
25876 fi
25877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25878
25879 CFLAGS=$save_CFLAGS
25880
25881
25882 fi
25883 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25884 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25885
25886 if test $wx_cv_x11_xpm_h = "yes"; then
25887 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
25888 cat >>confdefs.h <<\_ACEOF
25889 #define wxHAVE_LIB_XPM 1
25890 _ACEOF
25891
25892 else
25893 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25894 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25895 fi
25896 fi
25897
25898 fi
25899
25900 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25901 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25902 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25903 echo $ECHO_N "(cached) $ECHO_C" >&6
25904 else
25905 ac_check_lib_save_LIBS=$LIBS
25906 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25907 cat >conftest.$ac_ext <<_ACEOF
25908 /* confdefs.h. */
25909 _ACEOF
25910 cat confdefs.h >>conftest.$ac_ext
25911 cat >>conftest.$ac_ext <<_ACEOF
25912 /* end confdefs.h. */
25913
25914 /* Override any gcc2 internal prototype to avoid an error. */
25915 #ifdef __cplusplus
25916 extern "C"
25917 #endif
25918 /* We use char because int might match the return type of a gcc2
25919 builtin and then its argument prototype would still apply. */
25920 char XShapeQueryExtension ();
25921 int
25922 main ()
25923 {
25924 XShapeQueryExtension ();
25925 ;
25926 return 0;
25927 }
25928 _ACEOF
25929 rm -f conftest.$ac_objext conftest$ac_exeext
25930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25931 (eval $ac_link) 2>conftest.er1
25932 ac_status=$?
25933 grep -v '^ *+' conftest.er1 >conftest.err
25934 rm -f conftest.er1
25935 cat conftest.err >&5
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } &&
25938 { ac_try='test -z "$ac_c_werror_flag"
25939 || test ! -s conftest.err'
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; } &&
25945 { ac_try='test -s conftest$ac_exeext'
25946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951 ac_cv_lib_Xext_XShapeQueryExtension=yes
25952 else
25953 echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25955
25956 ac_cv_lib_Xext_XShapeQueryExtension=no
25957 fi
25958 rm -f conftest.err conftest.$ac_objext \
25959 conftest$ac_exeext conftest.$ac_ext
25960 LIBS=$ac_check_lib_save_LIBS
25961 fi
25962 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25963 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25964 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25965
25966 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25967 wxHAVE_XEXT_LIB=1
25968
25969 fi
25970
25971
25972 if test "$wxHAVE_XEXT_LIB" = 1; then
25973 save_CFLAGS="$CFLAGS"
25974 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25975
25976 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
25977 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
25978 cat >conftest.$ac_ext <<_ACEOF
25979 /* confdefs.h. */
25980 _ACEOF
25981 cat confdefs.h >>conftest.$ac_ext
25982 cat >>conftest.$ac_ext <<_ACEOF
25983 /* end confdefs.h. */
25984
25985 #include <X11/Xlib.h>
25986 #include <X11/extensions/shape.h>
25987
25988 int
25989 main ()
25990 {
25991
25992 int dummy1, dummy2;
25993 XShapeQueryExtension((Display*)NULL,
25994 (int*)NULL, (int*)NULL);
25995
25996 ;
25997 return 0;
25998 }
25999 _ACEOF
26000 rm -f conftest.$ac_objext
26001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26002 (eval $ac_compile) 2>conftest.er1
26003 ac_status=$?
26004 grep -v '^ *+' conftest.er1 >conftest.err
26005 rm -f conftest.er1
26006 cat conftest.err >&5
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } &&
26009 { ac_try='test -z "$ac_c_werror_flag"
26010 || test ! -s conftest.err'
26011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012 (eval $ac_try) 2>&5
26013 ac_status=$?
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); }; } &&
26016 { ac_try='test -s conftest.$ac_objext'
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; }; then
26022
26023 cat >>confdefs.h <<\_ACEOF
26024 #define HAVE_XSHAPE 1
26025 _ACEOF
26026
26027 echo "$as_me:$LINENO: result: found" >&5
26028 echo "${ECHO_T}found" >&6
26029
26030 else
26031 echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26033
26034
26035 echo "$as_me:$LINENO: result: not found" >&5
26036 echo "${ECHO_T}not found" >&6
26037
26038 fi
26039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26040 CFLAGS="$save_CFLAGS"
26041
26042 fi
26043 fi
26044
26045 if test "$wxUSE_MAC" = 1; then
26046 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26047 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26048 if test "$GCC" = yes; then
26049 echo "$as_me:$LINENO: result: gcc" >&5
26050 echo "${ECHO_T}gcc" >&6
26051 CPPFLAGS_PASCAL="-fpascal-strings"
26052 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26053 echo "$as_me:$LINENO: result: xlc" >&5
26054 echo "${ECHO_T}xlc" >&6
26055 CPPFLAGS_PASCAL="-qmacpstr"
26056 else
26057 echo "$as_me:$LINENO: result: none" >&5
26058 echo "${ECHO_T}none" >&6
26059 fi
26060
26061 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
26062
26063 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
26064 TOOLKIT=MAC
26065 GUIDIST=MACX_DIST
26066 WXBASEPORT="_carbon"
26067 fi
26068
26069 if test "$wxUSE_COCOA" = 1; then
26070 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26071 TOOLKIT=COCOA
26072 GUIDIST=COCOA_DIST
26073 fi
26074
26075 if test "$wxUSE_PM" = 1; then
26076 TOOLKIT=PM
26077 GUIDIST=GTK_DIST
26078 fi
26079
26080 if test "$TOOLKIT" = "PM" ; then
26081 TOOLKIT_DIR="os2"
26082 else
26083 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26084 fi
26085
26086 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26087
26088 if test "$wxUSE_UNIVERSAL" = "yes"; then
26089 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26090
26091 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26092 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26093
26094 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26095 if test "$wxUSE_X11" = 1; then
26096 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26097 else
26098 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26099 fi
26100 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26101 WIDGET_SET=univ
26102 else
26103 ALL_OBJECTS="\$(GUIOBJS)"
26104 ALL_SOURCES="\$(ALL_SOURCES)"
26105 ALL_HEADERS="\$(ALL_HEADERS)"
26106 fi
26107
26108 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26109
26110 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26111 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26112 fi
26113
26114 if test "$wxUSE_HTML" = "yes"; then
26115 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26116 fi
26117
26118 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26119 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26120 fi
26121 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26122 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26123 fi
26124 if test "$wxUSE_LIBPNG" = "builtin" ; then
26125 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26126 fi
26127
26128 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26129 DISTDIR="wx\$(TOOLKIT)"
26130 else
26131 USE_GUI=0
26132
26133 TOOLKIT_DIR="base"
26134
26135 if test "$USE_WIN32" = 1 ; then
26136 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26137 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26138
26139 TOOLKIT="MSW"
26140 else
26141 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26142 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26143 fi
26144
26145 ALL_SOURCES="\$(ALL_SOURCES)"
26146 ALL_HEADERS="\$(ALL_HEADERS)"
26147
26148 PORT_FILES="\${top_srcdir}/src/files.lst"
26149
26150 GUIDIST="BASE_DIST"
26151 DISTDIR="wxBase"
26152 fi
26153
26154
26155
26156
26157 IODBC_C_SRC=""
26158
26159
26160 if test "$TOOLKIT" != "MSW" ; then
26161
26162 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26163
26164 if test "${ac_cv_header_sql_h+set}" = set; then
26165 echo "$as_me:$LINENO: checking for sql.h" >&5
26166 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26167 if test "${ac_cv_header_sql_h+set}" = set; then
26168 echo $ECHO_N "(cached) $ECHO_C" >&6
26169 fi
26170 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26171 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26172 else
26173 # Is the header compilable?
26174 echo "$as_me:$LINENO: checking sql.h usability" >&5
26175 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26176 cat >conftest.$ac_ext <<_ACEOF
26177 /* confdefs.h. */
26178 _ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h. */
26182 $ac_includes_default
26183 #include <sql.h>
26184 _ACEOF
26185 rm -f conftest.$ac_objext
26186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26187 (eval $ac_compile) 2>conftest.er1
26188 ac_status=$?
26189 grep -v '^ *+' conftest.er1 >conftest.err
26190 rm -f conftest.er1
26191 cat conftest.err >&5
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } &&
26194 { ac_try='test -z "$ac_c_werror_flag"
26195 || test ! -s conftest.err'
26196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 (eval $ac_try) 2>&5
26198 ac_status=$?
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; } &&
26201 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
26207 ac_header_compiler=yes
26208 else
26209 echo "$as_me: failed program was:" >&5
26210 sed 's/^/| /' conftest.$ac_ext >&5
26211
26212 ac_header_compiler=no
26213 fi
26214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26216 echo "${ECHO_T}$ac_header_compiler" >&6
26217
26218 # Is the header present?
26219 echo "$as_me:$LINENO: checking sql.h presence" >&5
26220 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26221 cat >conftest.$ac_ext <<_ACEOF
26222 /* confdefs.h. */
26223 _ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h. */
26227 #include <sql.h>
26228 _ACEOF
26229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26231 ac_status=$?
26232 grep -v '^ *+' conftest.er1 >conftest.err
26233 rm -f conftest.er1
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } >/dev/null; then
26237 if test -s conftest.err; then
26238 ac_cpp_err=$ac_c_preproc_warn_flag
26239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26240 else
26241 ac_cpp_err=
26242 fi
26243 else
26244 ac_cpp_err=yes
26245 fi
26246 if test -z "$ac_cpp_err"; then
26247 ac_header_preproc=yes
26248 else
26249 echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252 ac_header_preproc=no
26253 fi
26254 rm -f conftest.err conftest.$ac_ext
26255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26256 echo "${ECHO_T}$ac_header_preproc" >&6
26257
26258 # So? What about this header?
26259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26260 yes:no: )
26261 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26262 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26263 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26264 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26265 ac_header_preproc=yes
26266 ;;
26267 no:yes:* )
26268 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26269 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26270 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26271 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26272 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26273 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26274 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26275 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
26276 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26277 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26278 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26279 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26280 (
26281 cat <<\_ASBOX
26282 ## ----------------------------------------- ##
26283 ## Report this to wx-dev@lists.wxwindows.org ##
26284 ## ----------------------------------------- ##
26285 _ASBOX
26286 ) |
26287 sed "s/^/$as_me: WARNING: /" >&2
26288 ;;
26289 esac
26290 echo "$as_me:$LINENO: checking for sql.h" >&5
26291 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26292 if test "${ac_cv_header_sql_h+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26294 else
26295 ac_cv_header_sql_h=$ac_header_preproc
26296 fi
26297 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26298 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26299
26300 fi
26301 if test $ac_cv_header_sql_h = yes; then
26302 found_sql_h=1
26303 fi
26304
26305
26306 if test "x$found_sql_h" = "x1" ; then
26307 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26308 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26309 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26310 echo $ECHO_N "(cached) $ECHO_C" >&6
26311 else
26312 ac_check_lib_save_LIBS=$LIBS
26313 LIBS="-liodbc $LIBS"
26314 cat >conftest.$ac_ext <<_ACEOF
26315 /* confdefs.h. */
26316 _ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h. */
26320
26321 /* Override any gcc2 internal prototype to avoid an error. */
26322 #ifdef __cplusplus
26323 extern "C"
26324 #endif
26325 /* We use char because int might match the return type of a gcc2
26326 builtin and then its argument prototype would still apply. */
26327 char SQLAllocEnv ();
26328 int
26329 main ()
26330 {
26331 SQLAllocEnv ();
26332 ;
26333 return 0;
26334 }
26335 _ACEOF
26336 rm -f conftest.$ac_objext conftest$ac_exeext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26338 (eval $ac_link) 2>conftest.er1
26339 ac_status=$?
26340 grep -v '^ *+' conftest.er1 >conftest.err
26341 rm -f conftest.er1
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest$ac_exeext'
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358 ac_cv_lib_iodbc_SQLAllocEnv=yes
26359 else
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363 ac_cv_lib_iodbc_SQLAllocEnv=no
26364 fi
26365 rm -f conftest.err conftest.$ac_objext \
26366 conftest$ac_exeext conftest.$ac_ext
26367 LIBS=$ac_check_lib_save_LIBS
26368 fi
26369 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26370 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26371 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26372 ODBC_LINK=" -liodbc"
26373 else
26374
26375 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26376 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26377 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26378 echo $ECHO_N "(cached) $ECHO_C" >&6
26379 else
26380 ac_check_lib_save_LIBS=$LIBS
26381 LIBS="-lunixodbc $LIBS"
26382 cat >conftest.$ac_ext <<_ACEOF
26383 /* confdefs.h. */
26384 _ACEOF
26385 cat confdefs.h >>conftest.$ac_ext
26386 cat >>conftest.$ac_ext <<_ACEOF
26387 /* end confdefs.h. */
26388
26389 /* Override any gcc2 internal prototype to avoid an error. */
26390 #ifdef __cplusplus
26391 extern "C"
26392 #endif
26393 /* We use char because int might match the return type of a gcc2
26394 builtin and then its argument prototype would still apply. */
26395 char SQLAllocEnv ();
26396 int
26397 main ()
26398 {
26399 SQLAllocEnv ();
26400 ;
26401 return 0;
26402 }
26403 _ACEOF
26404 rm -f conftest.$ac_objext conftest$ac_exeext
26405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26406 (eval $ac_link) 2>conftest.er1
26407 ac_status=$?
26408 grep -v '^ *+' conftest.er1 >conftest.err
26409 rm -f conftest.er1
26410 cat conftest.err >&5
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); } &&
26413 { ac_try='test -z "$ac_c_werror_flag"
26414 || test ! -s conftest.err'
26415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416 (eval $ac_try) 2>&5
26417 ac_status=$?
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; } &&
26420 { ac_try='test -s conftest$ac_exeext'
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; }; then
26426 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26427 else
26428 echo "$as_me: failed program was:" >&5
26429 sed 's/^/| /' conftest.$ac_ext >&5
26430
26431 ac_cv_lib_unixodbc_SQLAllocEnv=no
26432 fi
26433 rm -f conftest.err conftest.$ac_objext \
26434 conftest$ac_exeext conftest.$ac_ext
26435 LIBS=$ac_check_lib_save_LIBS
26436 fi
26437 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26438 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26439 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26440 ODBC_LINK=" -lunixodbc"
26441 else
26442
26443 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26444 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26445 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26447 else
26448 ac_check_lib_save_LIBS=$LIBS
26449 LIBS="-lodbc $LIBS"
26450 cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h. */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26456
26457 /* Override any gcc2 internal prototype to avoid an error. */
26458 #ifdef __cplusplus
26459 extern "C"
26460 #endif
26461 /* We use char because int might match the return type of a gcc2
26462 builtin and then its argument prototype would still apply. */
26463 char SQLAllocEnv ();
26464 int
26465 main ()
26466 {
26467 SQLAllocEnv ();
26468 ;
26469 return 0;
26470 }
26471 _ACEOF
26472 rm -f conftest.$ac_objext conftest$ac_exeext
26473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26474 (eval $ac_link) 2>conftest.er1
26475 ac_status=$?
26476 grep -v '^ *+' conftest.er1 >conftest.err
26477 rm -f conftest.er1
26478 cat conftest.err >&5
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } &&
26481 { ac_try='test -z "$ac_c_werror_flag"
26482 || test ! -s conftest.err'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; } &&
26488 { ac_try='test -s conftest$ac_exeext'
26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26491 ac_status=$?
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; }; then
26494 ac_cv_lib_odbc_SQLAllocEnv=yes
26495 else
26496 echo "$as_me: failed program was:" >&5
26497 sed 's/^/| /' conftest.$ac_ext >&5
26498
26499 ac_cv_lib_odbc_SQLAllocEnv=no
26500 fi
26501 rm -f conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
26503 LIBS=$ac_check_lib_save_LIBS
26504 fi
26505 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26506 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26507 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26508 ODBC_LINK=" -lodbc"
26509 fi
26510
26511
26512 fi
26513
26514
26515 fi
26516
26517 fi
26518 if test "x$ODBC_LINK" = "x" ; then
26519 if test "$wxUSE_ODBC" = "sys" ; then
26520 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26521 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26522 { (exit 1); exit 1; }; }
26523 else
26524 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26525 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26526 wxUSE_ODBC=builtin
26527 fi
26528 else
26529 wxUSE_ODBC=sys
26530 fi
26531 fi
26532 if test "$wxUSE_ODBC" != "no" ; then
26533 cat >>confdefs.h <<\_ACEOF
26534 #define wxUSE_ODBC 1
26535 _ACEOF
26536
26537 if test "$wxUSE_ODBC" = "builtin" ; then
26538 cat >>confdefs.h <<\_ACEOF
26539 #define wxUSE_BUILTIN_IODBC 1
26540 _ACEOF
26541
26542 fi
26543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26544
26545 WXODBCFLAG="-D_IODBC_"
26546 fi
26547 fi
26548
26549 if test "$wxUSE_REGEX" = "builtin" ; then
26550 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
26551 fi
26552 if test "$wxUSE_ZLIB" = "builtin" ; then
26553 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
26554 fi
26555
26556 if test "$wxUSE_DISPLAY" = "yes"; then
26557 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
26558 echo "$as_me:$LINENO: checking for Xinerama" >&5
26559 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26560
26561 ac_find_libraries=
26562 for ac_dir in $SEARCH_LIB /usr/lib;
26563 do
26564 for ac_extension in a so sl dylib; do
26565 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26566 ac_find_libraries=$ac_dir
26567 break 2
26568 fi
26569 done
26570 done
26571
26572 if test "$ac_find_libraries" != "" ; then
26573
26574 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26575 result=$?
26576 if test $result = 0; then
26577 ac_path_to_link=""
26578 else
26579 ac_path_to_link=" -L$ac_find_libraries"
26580 fi
26581
26582 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26583 LDFLAGS="$LDFLAGS $ac_path_to_link"
26584 fi
26585 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26586 echo "$as_me:$LINENO: result: yes" >&5
26587 echo "${ECHO_T}yes" >&6
26588
26589 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26590 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26591
26592 ac_find_libraries=
26593 for ac_dir in $SEARCH_LIB /usr/lib;
26594 do
26595 for ac_extension in a so sl dylib; do
26596 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26597 ac_find_libraries=$ac_dir
26598 break 2
26599 fi
26600 done
26601 done
26602
26603 if test "$ac_find_libraries" != "" ; then
26604 echo "$as_me:$LINENO: result: yes" >&5
26605 echo "${ECHO_T}yes" >&6
26606
26607 for ac_header in X11/extensions/xf86vmode.h
26608 do
26609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26610 echo "$as_me:$LINENO: checking for $ac_header" >&5
26611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26614 else
26615 cat >conftest.$ac_ext <<_ACEOF
26616 /* confdefs.h. */
26617 _ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h. */
26621
26622 #if HAVE_X11_XLIB_H
26623 #include <X11/Xlib.h>
26624 #endif
26625
26626
26627 #include <$ac_header>
26628 _ACEOF
26629 rm -f conftest.$ac_objext
26630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26631 (eval $ac_compile) 2>conftest.er1
26632 ac_status=$?
26633 grep -v '^ *+' conftest.er1 >conftest.err
26634 rm -f conftest.er1
26635 cat conftest.err >&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } &&
26638 { ac_try='test -z "$ac_c_werror_flag"
26639 || test ! -s conftest.err'
26640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); }; } &&
26645 { ac_try='test -s conftest.$ac_objext'
26646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; }; then
26651 eval "$as_ac_Header=yes"
26652 else
26653 echo "$as_me: failed program was:" >&5
26654 sed 's/^/| /' conftest.$ac_ext >&5
26655
26656 eval "$as_ac_Header=no"
26657 fi
26658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26659 fi
26660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26663 cat >>confdefs.h <<_ACEOF
26664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26665 _ACEOF
26666
26667 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26668
26669 fi
26670
26671 done
26672
26673 else
26674 echo "$as_me:$LINENO: result: no" >&5
26675 echo "${ECHO_T}no" >&6
26676 fi
26677
26678 else
26679 echo "$as_me:$LINENO: result: no" >&5
26680 echo "${ECHO_T}no" >&6
26681 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
26682 echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
26683 wxUSE_DISPLAY="no"
26684 fi
26685 fi
26686 fi
26687
26688
26689 USE_OPENGL=0
26690 if test "$wxUSE_OPENGL" = "yes"; then
26691 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26692 OPENGL_LIBS="-framework OpenGL -framework AGL"
26693 elif test "$wxUSE_MSW" = 1; then
26694 OPENGL_LIBS="-lopengl32 -lglu32"
26695 else
26696
26697
26698 ac_find_includes=
26699 for ac_dir in $SEARCH_INCLUDE /usr/include;
26700 do
26701 if test -f "$ac_dir/GL/gl.h"; then
26702 ac_find_includes=$ac_dir
26703 break
26704 fi
26705 done
26706
26707 if test "$ac_find_includes" != "" ; then
26708 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26709 echo "${ECHO_T}found in $ac_find_includes" >&6
26710
26711 if test "x$ac_find_includes" = "x/usr/include"; then
26712 ac_path_to_include=""
26713 else
26714 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26715 result=$?
26716 if test $result = 0; then
26717 ac_path_to_include=""
26718 else
26719 ac_path_to_include=" -I$ac_find_includes"
26720 fi
26721 fi
26722
26723 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
26724 fi
26725
26726 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26727 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26728 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26729 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26730 echo $ECHO_N "(cached) $ECHO_C" >&6
26731 fi
26732 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26733 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26734 else
26735 # Is the header compilable?
26736 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26737 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26738 cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h. */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h. */
26744 $ac_includes_default
26745 #include <GL/gl.h>
26746 _ACEOF
26747 rm -f conftest.$ac_objext
26748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26749 (eval $ac_compile) 2>conftest.er1
26750 ac_status=$?
26751 grep -v '^ *+' conftest.er1 >conftest.err
26752 rm -f conftest.er1
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
26756 { ac_try='test -z "$ac_c_werror_flag"
26757 || test ! -s conftest.err'
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; } &&
26763 { ac_try='test -s conftest.$ac_objext'
26764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); }; }; then
26769 ac_header_compiler=yes
26770 else
26771 echo "$as_me: failed program was:" >&5
26772 sed 's/^/| /' conftest.$ac_ext >&5
26773
26774 ac_header_compiler=no
26775 fi
26776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26777 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26778 echo "${ECHO_T}$ac_header_compiler" >&6
26779
26780 # Is the header present?
26781 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26782 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26783 cat >conftest.$ac_ext <<_ACEOF
26784 /* confdefs.h. */
26785 _ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h. */
26789 #include <GL/gl.h>
26790 _ACEOF
26791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26793 ac_status=$?
26794 grep -v '^ *+' conftest.er1 >conftest.err
26795 rm -f conftest.er1
26796 cat conftest.err >&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } >/dev/null; then
26799 if test -s conftest.err; then
26800 ac_cpp_err=$ac_c_preproc_warn_flag
26801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26802 else
26803 ac_cpp_err=
26804 fi
26805 else
26806 ac_cpp_err=yes
26807 fi
26808 if test -z "$ac_cpp_err"; then
26809 ac_header_preproc=yes
26810 else
26811 echo "$as_me: failed program was:" >&5
26812 sed 's/^/| /' conftest.$ac_ext >&5
26813
26814 ac_header_preproc=no
26815 fi
26816 rm -f conftest.err conftest.$ac_ext
26817 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26818 echo "${ECHO_T}$ac_header_preproc" >&6
26819
26820 # So? What about this header?
26821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26822 yes:no: )
26823 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26824 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
26826 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
26827 ac_header_preproc=yes
26828 ;;
26829 no:yes:* )
26830 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26831 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
26832 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26833 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
26834 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
26835 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
26836 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
26837 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26838 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26839 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
26840 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
26841 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
26842 (
26843 cat <<\_ASBOX
26844 ## ----------------------------------------- ##
26845 ## Report this to wx-dev@lists.wxwindows.org ##
26846 ## ----------------------------------------- ##
26847 _ASBOX
26848 ) |
26849 sed "s/^/$as_me: WARNING: /" >&2
26850 ;;
26851 esac
26852 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26853 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26854 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26855 echo $ECHO_N "(cached) $ECHO_C" >&6
26856 else
26857 ac_cv_header_GL_gl_h=$ac_header_preproc
26858 fi
26859 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26860 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26861
26862 fi
26863 if test $ac_cv_header_GL_gl_h = yes; then
26864
26865 found_gl=0
26866
26867 echo "$as_me:$LINENO: checking for -lGL" >&5
26868 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26869
26870 ac_find_libraries=
26871 for ac_dir in $SEARCH_LIB /usr/lib;
26872 do
26873 for ac_extension in a so sl dylib; do
26874 if test -f "$ac_dir/libGL.$ac_extension"; then
26875 ac_find_libraries=$ac_dir
26876 break 2
26877 fi
26878 done
26879 done
26880
26881 if test "$ac_find_libraries" != "" ; then
26882
26883 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26884 result=$?
26885 if test $result = 0; then
26886 ac_path_to_link=""
26887 else
26888 ac_path_to_link=" -L$ac_find_libraries"
26889 fi
26890
26891 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26892 LDFLAGS_GL="$ac_path_to_link"
26893 fi
26894
26895
26896 ac_find_libraries=
26897 for ac_dir in $SEARCH_LIB /usr/lib;
26898 do
26899 for ac_extension in a so sl dylib; do
26900 if test -f "$ac_dir/libGLU.$ac_extension"; then
26901 ac_find_libraries=$ac_dir
26902 break 2
26903 fi
26904 done
26905 done
26906
26907 if test "$ac_find_libraries" != "" ; then
26908
26909 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26910 result=$?
26911 if test $result = 0; then
26912 ac_path_to_link=""
26913 else
26914 ac_path_to_link=" -L$ac_find_libraries"
26915 fi
26916
26917 if test "$ac_path_to_link" != " -L/usr/lib" -a \
26918 "$ac_path_to_link" != "$LDFLAGS_GL"; then
26919 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
26920 fi
26921
26922 found_gl=1
26923 OPENGL_LIBS="-lGL -lGLU"
26924 echo "$as_me:$LINENO: result: yes" >&5
26925 echo "${ECHO_T}yes" >&6
26926 fi
26927 fi
26928
26929 if test "$found_gl" != 1; then
26930 echo "$as_me:$LINENO: result: no" >&5
26931 echo "${ECHO_T}no" >&6
26932 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26933 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26934
26935 ac_find_libraries=
26936 for ac_dir in $SEARCH_LIB /usr/lib;
26937 do
26938 for ac_extension in a so sl dylib; do
26939 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26940 ac_find_libraries=$ac_dir
26941 break 2
26942 fi
26943 done
26944 done
26945
26946 if test "$ac_find_libraries" != "" ; then
26947
26948 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26949 result=$?
26950 if test $result = 0; then
26951 ac_path_to_link=""
26952 else
26953 ac_path_to_link=" -L$ac_find_libraries"
26954 fi
26955
26956 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26957 OPENGL_LIBS="-lMesaGL -lMesaGLU"
26958 echo "$as_me:$LINENO: result: yes" >&5
26959 echo "${ECHO_T}yes" >&6
26960 else
26961 echo "$as_me:$LINENO: result: no" >&5
26962 echo "${ECHO_T}no" >&6
26963 fi
26964 fi
26965
26966 fi
26967
26968
26969
26970 if test "x$OPENGL_LIBS" = "x"; then
26971 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26972 echo "$as_me: error: OpenGL libraries not available" >&2;}
26973 { (exit 1); exit 1; }; }
26974 fi
26975 fi
26976
26977 if test "$wxUSE_OPENGL" = "yes"; then
26978 USE_OPENGL=1
26979 cat >>confdefs.h <<\_ACEOF
26980 #define wxUSE_OPENGL 1
26981 _ACEOF
26982
26983 cat >>confdefs.h <<\_ACEOF
26984 #define wxUSE_GLCANVAS 1
26985 _ACEOF
26986
26987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
26988 fi
26989 fi
26990
26991 if test -z "$TOOLKIT_VPATH" ; then
26992 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
26993 fi
26994
26995 if test -n "$TOOLKIT" ; then
26996 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26997 fi
26998
26999 UNICODE=0
27000 lib_unicode_suffix=
27001 if test "$wxUSE_UNICODE" = "yes"; then
27002 lib_unicode_suffix=u
27003 UNICODE=1
27004 fi
27005
27006 lib_debug_suffix=
27007 DEBUG_FLAG=0
27008 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27009 lib_debug_suffix=d
27010 DEBUG_FLAG=1
27011 fi
27012
27013 DEBUG_INFO=0
27014 if test "$wxUSE_DEBUG_INFO" = "yes"; then
27015 DEBUG_INFO=1
27016 fi
27017
27018 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27019
27020 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27021 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27022
27023 if test "$cross_compiling" = "yes"; then
27024 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27025 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27026 HOST_SUFFIX="-${host_alias}"
27027 fi
27028
27029 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27030 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27031 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27032 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27033
27034 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27035 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27036
27037 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27038 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27039 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27040 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27041
27042 case "${host}" in
27043 *-*-cygwin* | *-*-mingw32* )
27044 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27045 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27046 ;;
27047
27048 *-*-darwin* )
27049
27050 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27051 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27052
27053 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27054 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27055 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27056 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27057
27058 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27059 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27060 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27061 fi
27062 ;;
27063 esac
27064
27065 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27066 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27067
27068 WXCONFIG_LIBS="-l${WX_LIBRARY}"
27069 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27070
27071 if test "$wxUSE_OPENGL" = "yes"; then
27072 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27073 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27074 fi
27075
27076
27077
27078 if test "$wxUSE_SHARED" = "yes"; then
27079 case "${host}" in
27080 *-pc-os2_emx | *-pc-os2-emx | \
27081 *-pc-msdosdjgpp )
27082 wxUSE_SHARED=no
27083 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27084 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27085 ;;
27086 esac
27087 fi
27088
27089 SHARED=0
27090 if test "$wxUSE_SHARED" = "yes"; then
27091 SHARED=1
27092
27093
27094 found_versioning=no
27095
27096
27097 if test $found_versioning = no ; then
27098 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27099 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27100 if test "${wx_cv_version_script+set}" = set; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
27102 else
27103
27104 echo "VER_1 { *; };" >conftest.sym
27105 echo "int main() { return 0; }" >conftest.cpp
27106
27107 if { ac_try='
27108 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27109 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111 (eval $ac_try) 2>&5
27112 ac_status=$?
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); }; } ; then
27115 if test -s conftest.stderr ; then
27116 wx_cv_version_script=no
27117 else
27118 wx_cv_version_script=yes
27119 fi
27120 else
27121 wx_cv_version_script=no
27122 fi
27123 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27124
27125 fi
27126 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27127 echo "${ECHO_T}$wx_cv_version_script" >&6
27128 if test $wx_cv_version_script = yes ; then
27129 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27130 fi
27131 fi
27132
27133
27134 case "${host}" in
27135 *-*-linux* | *-*-gnu* )
27136 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27137 ;;
27138
27139 *-*-solaris2* )
27140 if test "$GCC" = yes ; then
27141 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27142
27143 saveLdflags="$LDFLAGS"
27144 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27145 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27146 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27147 cat >conftest.$ac_ext <<_ACEOF
27148 /* confdefs.h. */
27149 _ACEOF
27150 cat confdefs.h >>conftest.$ac_ext
27151 cat >>conftest.$ac_ext <<_ACEOF
27152 /* end confdefs.h. */
27153
27154 int
27155 main ()
27156 {
27157
27158 ;
27159 return 0;
27160 }
27161 _ACEOF
27162 rm -f conftest.$ac_objext conftest$ac_exeext
27163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27164 (eval $ac_link) 2>conftest.er1
27165 ac_status=$?
27166 grep -v '^ *+' conftest.er1 >conftest.err
27167 rm -f conftest.er1
27168 cat conftest.err >&5
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } &&
27171 { ac_try='test -z "$ac_c_werror_flag"
27172 || test ! -s conftest.err'
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27175 ac_status=$?
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; } &&
27178 { ac_try='test -s conftest$ac_exeext'
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
27184
27185 echo "$as_me:$LINENO: result: yes" >&5
27186 echo "${ECHO_T}yes" >&6
27187 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27188
27189 else
27190 echo "$as_me: failed program was:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27192
27193
27194 echo "$as_me:$LINENO: result: no" >&5
27195 echo "${ECHO_T}no" >&6
27196 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27197 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27198 LDFLAGS="$saveLdflags -Wl,-R,/"
27199 cat >conftest.$ac_ext <<_ACEOF
27200 /* confdefs.h. */
27201 _ACEOF
27202 cat confdefs.h >>conftest.$ac_ext
27203 cat >>conftest.$ac_ext <<_ACEOF
27204 /* end confdefs.h. */
27205
27206 int
27207 main ()
27208 {
27209
27210 ;
27211 return 0;
27212 }
27213 _ACEOF
27214 rm -f conftest.$ac_objext conftest$ac_exeext
27215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27216 (eval $ac_link) 2>conftest.er1
27217 ac_status=$?
27218 grep -v '^ *+' conftest.er1 >conftest.err
27219 rm -f conftest.er1
27220 cat conftest.err >&5
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } &&
27223 { ac_try='test -z "$ac_c_werror_flag"
27224 || test ! -s conftest.err'
27225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27226 (eval $ac_try) 2>&5
27227 ac_status=$?
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); }; } &&
27230 { ac_try='test -s conftest$ac_exeext'
27231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27232 (eval $ac_try) 2>&5
27233 ac_status=$?
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); }; }; then
27236
27237 echo "$as_me:$LINENO: result: yes" >&5
27238 echo "${ECHO_T}yes" >&6
27239 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27240 else
27241 echo "$as_me: failed program was:" >&5
27242 sed 's/^/| /' conftest.$ac_ext >&5
27243
27244
27245 echo "$as_me:$LINENO: result: no" >&5
27246 echo "${ECHO_T}no" >&6
27247
27248 fi
27249 rm -f conftest.err conftest.$ac_objext \
27250 conftest$ac_exeext conftest.$ac_ext
27251
27252 fi
27253 rm -f conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
27255 LDFLAGS="$saveLdflags"
27256 else
27257 SHARED_LD="${CXX} -G -o"
27258 PIC_FLAG="-KPIC"
27259 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27260 fi
27261 ;;
27262
27263 powerpc-*-darwin* )
27264 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27265 cat <<EOF >change-install-names
27266 #!/bin/sh
27267 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27268 inst_cmd="install_name_tool "
27269 for i in \${libnames} ; do
27270 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27271 done
27272 \${inst_cmd} \${3}
27273 EOF
27274 chmod +x change-install-names
27275 ;;
27276
27277 esac
27278
27279 if test "x$WX_TARGET_LIBRARY" = "x"; then
27280 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27281 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27282 fi
27283
27284 WX_TARGET_LIBRARY_TYPE="so"
27285 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
27286 fi
27287
27288 if test "$wxUSE_SHARED" = "no"; then
27289
27290 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27291 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27292 fi
27293
27294 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
27295 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27296 fi
27297
27298 if test "$wxUSE_OPENGL" = "yes"; then
27299 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27300 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27301 else
27302 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27303 fi
27304
27305 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27306 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27307
27308 WX_TARGET_LIBRARY_TYPE="a"
27309 INSTALL_LIBRARY='$(INSTALL_DATA)'
27310
27311 STATIC_FLAG="yes"
27312 else
27313 STATIC_FLAG="no"
27314 fi
27315
27316 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
27317 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
27318 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27319 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27320
27321 # Extract the first word of "Rez", so it can be a program name with args.
27322 set dummy Rez; ac_word=$2
27323 echo "$as_me:$LINENO: checking for $ac_word" >&5
27324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27325 if test "${ac_cv_prog_RESCOMP+set}" = set; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27327 else
27328 if test -n "$RESCOMP"; then
27329 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27330 else
27331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27332 for as_dir in $PATH
27333 do
27334 IFS=$as_save_IFS
27335 test -z "$as_dir" && as_dir=.
27336 for ac_exec_ext in '' $ac_executable_extensions; do
27337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27338 ac_cv_prog_RESCOMP="Rez"
27339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27340 break 2
27341 fi
27342 done
27343 done
27344
27345 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27346 fi
27347 fi
27348 RESCOMP=$ac_cv_prog_RESCOMP
27349 if test -n "$RESCOMP"; then
27350 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27351 echo "${ECHO_T}$RESCOMP" >&6
27352 else
27353 echo "$as_me:$LINENO: result: no" >&5
27354 echo "${ECHO_T}no" >&6
27355 fi
27356
27357 # Extract the first word of "DeRez", so it can be a program name with args.
27358 set dummy DeRez; ac_word=$2
27359 echo "$as_me:$LINENO: checking for $ac_word" >&5
27360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27361 if test "${ac_cv_prog_DEREZ+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27363 else
27364 if test -n "$DEREZ"; then
27365 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27366 else
27367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27368 for as_dir in $PATH
27369 do
27370 IFS=$as_save_IFS
27371 test -z "$as_dir" && as_dir=.
27372 for ac_exec_ext in '' $ac_executable_extensions; do
27373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27374 ac_cv_prog_DEREZ="DeRez"
27375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27376 break 2
27377 fi
27378 done
27379 done
27380
27381 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27382 fi
27383 fi
27384 DEREZ=$ac_cv_prog_DEREZ
27385 if test -n "$DEREZ"; then
27386 echo "$as_me:$LINENO: result: $DEREZ" >&5
27387 echo "${ECHO_T}$DEREZ" >&6
27388 else
27389 echo "$as_me:$LINENO: result: no" >&5
27390 echo "${ECHO_T}no" >&6
27391 fi
27392
27393 # Extract the first word of "SetFile", so it can be a program name with args.
27394 set dummy SetFile; ac_word=$2
27395 echo "$as_me:$LINENO: checking for $ac_word" >&5
27396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27397 if test "${ac_cv_prog_SETFILE+set}" = set; then
27398 echo $ECHO_N "(cached) $ECHO_C" >&6
27399 else
27400 if test -n "$SETFILE"; then
27401 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27402 else
27403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27404 for as_dir in $PATH
27405 do
27406 IFS=$as_save_IFS
27407 test -z "$as_dir" && as_dir=.
27408 for ac_exec_ext in '' $ac_executable_extensions; do
27409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27410 ac_cv_prog_SETFILE="SetFile"
27411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27412 break 2
27413 fi
27414 done
27415 done
27416
27417 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27418 fi
27419 fi
27420 SETFILE=$ac_cv_prog_SETFILE
27421 if test -n "$SETFILE"; then
27422 echo "$as_me:$LINENO: result: $SETFILE" >&5
27423 echo "${ECHO_T}$SETFILE" >&6
27424 else
27425 echo "$as_me:$LINENO: result: no" >&5
27426 echo "${ECHO_T}no" >&6
27427 fi
27428
27429
27430 MACSETFILE="\$(SETFILE)"
27431
27432 if test "$wxUSE_MAC" = 1; then
27433 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27434
27435 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27436 else
27437 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27438 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27439 fi
27440 else
27441 MACSETFILE="@#"
27442 MACRESWXCONFIG="#"
27443
27444 if test "$wxUSE_PM" = 1; then
27445 MACRESCOMP="emxbind -ep"
27446 else
27447 MACRESCOMP="@#"
27448 fi
27449 fi
27450
27451
27452 echo "$as_me:$LINENO: checking for mode_t" >&5
27453 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27454 if test "${ac_cv_type_mode_t+set}" = set; then
27455 echo $ECHO_N "(cached) $ECHO_C" >&6
27456 else
27457 cat >conftest.$ac_ext <<_ACEOF
27458 /* confdefs.h. */
27459 _ACEOF
27460 cat confdefs.h >>conftest.$ac_ext
27461 cat >>conftest.$ac_ext <<_ACEOF
27462 /* end confdefs.h. */
27463 $ac_includes_default
27464 int
27465 main ()
27466 {
27467 if ((mode_t *) 0)
27468 return 0;
27469 if (sizeof (mode_t))
27470 return 0;
27471 ;
27472 return 0;
27473 }
27474 _ACEOF
27475 rm -f conftest.$ac_objext
27476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27477 (eval $ac_compile) 2>conftest.er1
27478 ac_status=$?
27479 grep -v '^ *+' conftest.er1 >conftest.err
27480 rm -f conftest.er1
27481 cat conftest.err >&5
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); } &&
27484 { ac_try='test -z "$ac_c_werror_flag"
27485 || test ! -s conftest.err'
27486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27487 (eval $ac_try) 2>&5
27488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; } &&
27491 { ac_try='test -s conftest.$ac_objext'
27492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27493 (eval $ac_try) 2>&5
27494 ac_status=$?
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); }; }; then
27497 ac_cv_type_mode_t=yes
27498 else
27499 echo "$as_me: failed program was:" >&5
27500 sed 's/^/| /' conftest.$ac_ext >&5
27501
27502 ac_cv_type_mode_t=no
27503 fi
27504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27505 fi
27506 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27507 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27508 if test $ac_cv_type_mode_t = yes; then
27509 :
27510 else
27511
27512 cat >>confdefs.h <<_ACEOF
27513 #define mode_t int
27514 _ACEOF
27515
27516 fi
27517
27518 echo "$as_me:$LINENO: checking for off_t" >&5
27519 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27520 if test "${ac_cv_type_off_t+set}" = set; then
27521 echo $ECHO_N "(cached) $ECHO_C" >&6
27522 else
27523 cat >conftest.$ac_ext <<_ACEOF
27524 /* confdefs.h. */
27525 _ACEOF
27526 cat confdefs.h >>conftest.$ac_ext
27527 cat >>conftest.$ac_ext <<_ACEOF
27528 /* end confdefs.h. */
27529 $ac_includes_default
27530 int
27531 main ()
27532 {
27533 if ((off_t *) 0)
27534 return 0;
27535 if (sizeof (off_t))
27536 return 0;
27537 ;
27538 return 0;
27539 }
27540 _ACEOF
27541 rm -f conftest.$ac_objext
27542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27543 (eval $ac_compile) 2>conftest.er1
27544 ac_status=$?
27545 grep -v '^ *+' conftest.er1 >conftest.err
27546 rm -f conftest.er1
27547 cat conftest.err >&5
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); } &&
27550 { ac_try='test -z "$ac_c_werror_flag"
27551 || test ! -s conftest.err'
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; } &&
27557 { ac_try='test -s conftest.$ac_objext'
27558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27559 (eval $ac_try) 2>&5
27560 ac_status=$?
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; }; then
27563 ac_cv_type_off_t=yes
27564 else
27565 echo "$as_me: failed program was:" >&5
27566 sed 's/^/| /' conftest.$ac_ext >&5
27567
27568 ac_cv_type_off_t=no
27569 fi
27570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27571 fi
27572 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27573 echo "${ECHO_T}$ac_cv_type_off_t" >&6
27574 if test $ac_cv_type_off_t = yes; then
27575 :
27576 else
27577
27578 cat >>confdefs.h <<_ACEOF
27579 #define off_t long
27580 _ACEOF
27581
27582 fi
27583
27584 echo "$as_me:$LINENO: checking for pid_t" >&5
27585 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27586 if test "${ac_cv_type_pid_t+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
27588 else
27589 cat >conftest.$ac_ext <<_ACEOF
27590 /* confdefs.h. */
27591 _ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h. */
27595 $ac_includes_default
27596 int
27597 main ()
27598 {
27599 if ((pid_t *) 0)
27600 return 0;
27601 if (sizeof (pid_t))
27602 return 0;
27603 ;
27604 return 0;
27605 }
27606 _ACEOF
27607 rm -f conftest.$ac_objext
27608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27609 (eval $ac_compile) 2>conftest.er1
27610 ac_status=$?
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } &&
27616 { ac_try='test -z "$ac_c_werror_flag"
27617 || test ! -s conftest.err'
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; } &&
27623 { ac_try='test -s conftest.$ac_objext'
27624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625 (eval $ac_try) 2>&5
27626 ac_status=$?
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; }; then
27629 ac_cv_type_pid_t=yes
27630 else
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27633
27634 ac_cv_type_pid_t=no
27635 fi
27636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27637 fi
27638 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27639 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27640 if test $ac_cv_type_pid_t = yes; then
27641 :
27642 else
27643
27644 cat >>confdefs.h <<_ACEOF
27645 #define pid_t int
27646 _ACEOF
27647
27648 fi
27649
27650 echo "$as_me:$LINENO: checking for size_t" >&5
27651 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27652 if test "${ac_cv_type_size_t+set}" = set; then
27653 echo $ECHO_N "(cached) $ECHO_C" >&6
27654 else
27655 cat >conftest.$ac_ext <<_ACEOF
27656 /* confdefs.h. */
27657 _ACEOF
27658 cat confdefs.h >>conftest.$ac_ext
27659 cat >>conftest.$ac_ext <<_ACEOF
27660 /* end confdefs.h. */
27661 $ac_includes_default
27662 int
27663 main ()
27664 {
27665 if ((size_t *) 0)
27666 return 0;
27667 if (sizeof (size_t))
27668 return 0;
27669 ;
27670 return 0;
27671 }
27672 _ACEOF
27673 rm -f conftest.$ac_objext
27674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27675 (eval $ac_compile) 2>conftest.er1
27676 ac_status=$?
27677 grep -v '^ *+' conftest.er1 >conftest.err
27678 rm -f conftest.er1
27679 cat conftest.err >&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } &&
27682 { ac_try='test -z "$ac_c_werror_flag"
27683 || test ! -s conftest.err'
27684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685 (eval $ac_try) 2>&5
27686 ac_status=$?
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; } &&
27689 { ac_try='test -s conftest.$ac_objext'
27690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691 (eval $ac_try) 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; }; then
27695 ac_cv_type_size_t=yes
27696 else
27697 echo "$as_me: failed program was:" >&5
27698 sed 's/^/| /' conftest.$ac_ext >&5
27699
27700 ac_cv_type_size_t=no
27701 fi
27702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27703 fi
27704 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27705 echo "${ECHO_T}$ac_cv_type_size_t" >&6
27706 if test $ac_cv_type_size_t = yes; then
27707 :
27708 else
27709
27710 cat >>confdefs.h <<_ACEOF
27711 #define size_t unsigned
27712 _ACEOF
27713
27714 fi
27715
27716 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27717 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
27718 if test "${ac_cv_type_uid_t+set}" = set; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
27720 else
27721 cat >conftest.$ac_ext <<_ACEOF
27722 /* confdefs.h. */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h. */
27727 #include <sys/types.h>
27728
27729 _ACEOF
27730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27731 $EGREP "uid_t" >/dev/null 2>&1; then
27732 ac_cv_type_uid_t=yes
27733 else
27734 ac_cv_type_uid_t=no
27735 fi
27736 rm -f conftest*
27737
27738 fi
27739 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27740 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
27741 if test $ac_cv_type_uid_t = no; then
27742
27743 cat >>confdefs.h <<\_ACEOF
27744 #define uid_t int
27745 _ACEOF
27746
27747
27748 cat >>confdefs.h <<\_ACEOF
27749 #define gid_t int
27750 _ACEOF
27751
27752 fi
27753
27754
27755
27756
27757 ac_ext=cc
27758 ac_cpp='$CXXCPP $CPPFLAGS'
27759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27762
27763 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27764 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27765 if test "${wx_cv_size_t_is_uint+set}" = set; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27767 else
27768
27769 cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h. */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h. */
27775 #include <stddef.h>
27776 int
27777 main ()
27778 {
27779
27780 return 0; }
27781
27782 struct Foo { void foo(size_t); void foo(unsigned int); };
27783
27784 int bar() {
27785
27786 ;
27787 return 0;
27788 }
27789 _ACEOF
27790 rm -f conftest.$ac_objext
27791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27792 (eval $ac_compile) 2>conftest.er1
27793 ac_status=$?
27794 grep -v '^ *+' conftest.er1 >conftest.err
27795 rm -f conftest.er1
27796 cat conftest.err >&5
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } &&
27799 { ac_try='test -z "$ac_cxx_werror_flag"
27800 || test ! -s conftest.err'
27801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27802 (eval $ac_try) 2>&5
27803 ac_status=$?
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); }; } &&
27806 { ac_try='test -s conftest.$ac_objext'
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27809 ac_status=$?
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
27812 wx_cv_size_t_is_uint=no
27813 else
27814 echo "$as_me: failed program was:" >&5
27815 sed 's/^/| /' conftest.$ac_ext >&5
27816
27817 wx_cv_size_t_is_uint=yes
27818
27819 fi
27820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27821
27822
27823 fi
27824 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27825 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
27826
27827 if test "$wx_cv_size_t_is_uint" = "yes"; then
27828 cat >>confdefs.h <<\_ACEOF
27829 #define wxSIZE_T_IS_UINT 1
27830 _ACEOF
27831
27832 else
27833 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27834 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27835 if test "${wx_cv_size_t_is_ulong+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
27837 else
27838 cat >conftest.$ac_ext <<_ACEOF
27839 /* confdefs.h. */
27840 _ACEOF
27841 cat confdefs.h >>conftest.$ac_ext
27842 cat >>conftest.$ac_ext <<_ACEOF
27843 /* end confdefs.h. */
27844 #include <stddef.h>
27845 int
27846 main ()
27847 {
27848
27849 return 0; }
27850
27851 struct Foo { void foo(size_t); void foo(unsigned long); };
27852
27853 int bar() {
27854
27855 ;
27856 return 0;
27857 }
27858 _ACEOF
27859 rm -f conftest.$ac_objext
27860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27861 (eval $ac_compile) 2>conftest.er1
27862 ac_status=$?
27863 grep -v '^ *+' conftest.er1 >conftest.err
27864 rm -f conftest.er1
27865 cat conftest.err >&5
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); } &&
27868 { ac_try='test -z "$ac_cxx_werror_flag"
27869 || test ! -s conftest.err'
27870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; } &&
27875 { ac_try='test -s conftest.$ac_objext'
27876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27877 (eval $ac_try) 2>&5
27878 ac_status=$?
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); }; }; then
27881 wx_cv_size_t_is_ulong=no
27882 else
27883 echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27885
27886 wx_cv_size_t_is_ulong=yes
27887
27888 fi
27889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27890
27891 fi
27892 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27893 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
27894
27895 if test "$wx_cv_size_t_is_ulong" = "yes"; then
27896 cat >>confdefs.h <<\_ACEOF
27897 #define wxSIZE_T_IS_ULONG 1
27898 _ACEOF
27899
27900 fi
27901 fi
27902
27903 ac_ext=c
27904 ac_cpp='$CPP $CPPFLAGS'
27905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27908
27909
27910
27911 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
27912 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
27913 if test "${wx_cv_struct_pw_gecos+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
27915 else
27916
27917 cat >conftest.$ac_ext <<_ACEOF
27918 /* confdefs.h. */
27919 _ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h. */
27923 #include <pwd.h>
27924 int
27925 main ()
27926 {
27927
27928 char *p;
27929 struct passwd *pw;
27930 p = pw->pw_gecos;
27931
27932 ;
27933 return 0;
27934 }
27935 _ACEOF
27936 rm -f conftest.$ac_objext
27937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27938 (eval $ac_compile) 2>conftest.er1
27939 ac_status=$?
27940 grep -v '^ *+' conftest.er1 >conftest.err
27941 rm -f conftest.er1
27942 cat conftest.err >&5
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } &&
27945 { ac_try='test -z "$ac_c_werror_flag"
27946 || test ! -s conftest.err'
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest.$ac_objext'
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; }; then
27958
27959 wx_cv_struct_pw_gecos=yes
27960
27961 else
27962 echo "$as_me: failed program was:" >&5
27963 sed 's/^/| /' conftest.$ac_ext >&5
27964
27965
27966 wx_cv_struct_pw_gecos=no
27967
27968
27969 fi
27970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27971
27972
27973 fi
27974 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
27975 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
27976
27977 if test "$wx_cv_struct_pw_gecos" = "yes"; then
27978 cat >>confdefs.h <<\_ACEOF
27979 #define HAVE_PW_GECOS 1
27980 _ACEOF
27981
27982 fi
27983
27984
27985 if test "$wx_cv_sizeof_wchar_t" != "0"; then
27986 cat >>confdefs.h <<\_ACEOF
27987 #define wxUSE_WCHAR_T 1
27988 _ACEOF
27989
27990
27991 WCSLEN_FOUND=0
27992 WCHAR_LINK=
27993
27994 for ac_func in wcslen
27995 do
27996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27997 echo "$as_me:$LINENO: checking for $ac_func" >&5
27998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27999 if eval "test \"\${$as_ac_var+set}\" = set"; then
28000 echo $ECHO_N "(cached) $ECHO_C" >&6
28001 else
28002 cat >conftest.$ac_ext <<_ACEOF
28003 /* confdefs.h. */
28004 _ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h. */
28008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28010 #define $ac_func innocuous_$ac_func
28011
28012 /* System header to define __stub macros and hopefully few prototypes,
28013 which can conflict with char $ac_func (); below.
28014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28015 <limits.h> exists even on freestanding compilers. */
28016
28017 #ifdef __STDC__
28018 # include <limits.h>
28019 #else
28020 # include <assert.h>
28021 #endif
28022
28023 #undef $ac_func
28024
28025 /* Override any gcc2 internal prototype to avoid an error. */
28026 #ifdef __cplusplus
28027 extern "C"
28028 {
28029 #endif
28030 /* We use char because int might match the return type of a gcc2
28031 builtin and then its argument prototype would still apply. */
28032 char $ac_func ();
28033 /* The GNU C library defines this for functions which it implements
28034 to always fail with ENOSYS. Some functions are actually named
28035 something starting with __ and the normal name is an alias. */
28036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28037 choke me
28038 #else
28039 char (*f) () = $ac_func;
28040 #endif
28041 #ifdef __cplusplus
28042 }
28043 #endif
28044
28045 int
28046 main ()
28047 {
28048 return f != $ac_func;
28049 ;
28050 return 0;
28051 }
28052 _ACEOF
28053 rm -f conftest.$ac_objext conftest$ac_exeext
28054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28055 (eval $ac_link) 2>conftest.er1
28056 ac_status=$?
28057 grep -v '^ *+' conftest.er1 >conftest.err
28058 rm -f conftest.er1
28059 cat conftest.err >&5
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); } &&
28062 { ac_try='test -z "$ac_c_werror_flag"
28063 || test ! -s conftest.err'
28064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065 (eval $ac_try) 2>&5
28066 ac_status=$?
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); }; } &&
28069 { ac_try='test -s conftest$ac_exeext'
28070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28071 (eval $ac_try) 2>&5
28072 ac_status=$?
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; }; then
28075 eval "$as_ac_var=yes"
28076 else
28077 echo "$as_me: failed program was:" >&5
28078 sed 's/^/| /' conftest.$ac_ext >&5
28079
28080 eval "$as_ac_var=no"
28081 fi
28082 rm -f conftest.err conftest.$ac_objext \
28083 conftest$ac_exeext conftest.$ac_ext
28084 fi
28085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28087 if test `eval echo '${'$as_ac_var'}'` = yes; then
28088 cat >>confdefs.h <<_ACEOF
28089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28090 _ACEOF
28091 WCSLEN_FOUND=1
28092 fi
28093 done
28094
28095
28096 if test "$WCSLEN_FOUND" = 0; then
28097 if test "$TOOLKIT" = "MSW"; then
28098 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28099 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28100 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28101 echo $ECHO_N "(cached) $ECHO_C" >&6
28102 else
28103 ac_check_lib_save_LIBS=$LIBS
28104 LIBS="-lmsvcrt $LIBS"
28105 cat >conftest.$ac_ext <<_ACEOF
28106 /* confdefs.h. */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111
28112 /* Override any gcc2 internal prototype to avoid an error. */
28113 #ifdef __cplusplus
28114 extern "C"
28115 #endif
28116 /* We use char because int might match the return type of a gcc2
28117 builtin and then its argument prototype would still apply. */
28118 char wcslen ();
28119 int
28120 main ()
28121 {
28122 wcslen ();
28123 ;
28124 return 0;
28125 }
28126 _ACEOF
28127 rm -f conftest.$ac_objext conftest$ac_exeext
28128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28129 (eval $ac_link) 2>conftest.er1
28130 ac_status=$?
28131 grep -v '^ *+' conftest.er1 >conftest.err
28132 rm -f conftest.er1
28133 cat conftest.err >&5
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
28136 { ac_try='test -z "$ac_c_werror_flag"
28137 || test ! -s conftest.err'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 ac_cv_lib_msvcrt_wcslen=yes
28150 else
28151 echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28153
28154 ac_cv_lib_msvcrt_wcslen=no
28155 fi
28156 rm -f conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
28158 LIBS=$ac_check_lib_save_LIBS
28159 fi
28160 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28161 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28162 if test $ac_cv_lib_msvcrt_wcslen = yes; then
28163 WCHAR_OK=1
28164 fi
28165
28166 else
28167 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28168 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28169 if test "${ac_cv_lib_w_wcslen+set}" = set; then
28170 echo $ECHO_N "(cached) $ECHO_C" >&6
28171 else
28172 ac_check_lib_save_LIBS=$LIBS
28173 LIBS="-lw $LIBS"
28174 cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h. */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h. */
28180
28181 /* Override any gcc2 internal prototype to avoid an error. */
28182 #ifdef __cplusplus
28183 extern "C"
28184 #endif
28185 /* We use char because int might match the return type of a gcc2
28186 builtin and then its argument prototype would still apply. */
28187 char wcslen ();
28188 int
28189 main ()
28190 {
28191 wcslen ();
28192 ;
28193 return 0;
28194 }
28195 _ACEOF
28196 rm -f conftest.$ac_objext conftest$ac_exeext
28197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28198 (eval $ac_link) 2>conftest.er1
28199 ac_status=$?
28200 grep -v '^ *+' conftest.er1 >conftest.err
28201 rm -f conftest.er1
28202 cat conftest.err >&5
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); } &&
28205 { ac_try='test -z "$ac_c_werror_flag"
28206 || test ! -s conftest.err'
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; } &&
28212 { ac_try='test -s conftest$ac_exeext'
28213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; }; then
28218 ac_cv_lib_w_wcslen=yes
28219 else
28220 echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223 ac_cv_lib_w_wcslen=no
28224 fi
28225 rm -f conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
28227 LIBS=$ac_check_lib_save_LIBS
28228 fi
28229 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28230 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28231 if test $ac_cv_lib_w_wcslen = yes; then
28232
28233 WCHAR_LINK=" -lw"
28234 WCSLEN_FOUND=1
28235
28236 fi
28237
28238 fi
28239 fi
28240
28241 if test "$WCSLEN_FOUND" = 1; then
28242 cat >>confdefs.h <<\_ACEOF
28243 #define HAVE_WCSLEN 1
28244 _ACEOF
28245
28246 fi
28247
28248
28249 for ac_func in wcsrtombs
28250 do
28251 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28252 echo "$as_me:$LINENO: checking for $ac_func" >&5
28253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28254 if eval "test \"\${$as_ac_var+set}\" = set"; then
28255 echo $ECHO_N "(cached) $ECHO_C" >&6
28256 else
28257 cat >conftest.$ac_ext <<_ACEOF
28258 /* confdefs.h. */
28259 _ACEOF
28260 cat confdefs.h >>conftest.$ac_ext
28261 cat >>conftest.$ac_ext <<_ACEOF
28262 /* end confdefs.h. */
28263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28265 #define $ac_func innocuous_$ac_func
28266
28267 /* System header to define __stub macros and hopefully few prototypes,
28268 which can conflict with char $ac_func (); below.
28269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28270 <limits.h> exists even on freestanding compilers. */
28271
28272 #ifdef __STDC__
28273 # include <limits.h>
28274 #else
28275 # include <assert.h>
28276 #endif
28277
28278 #undef $ac_func
28279
28280 /* Override any gcc2 internal prototype to avoid an error. */
28281 #ifdef __cplusplus
28282 extern "C"
28283 {
28284 #endif
28285 /* We use char because int might match the return type of a gcc2
28286 builtin and then its argument prototype would still apply. */
28287 char $ac_func ();
28288 /* The GNU C library defines this for functions which it implements
28289 to always fail with ENOSYS. Some functions are actually named
28290 something starting with __ and the normal name is an alias. */
28291 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28292 choke me
28293 #else
28294 char (*f) () = $ac_func;
28295 #endif
28296 #ifdef __cplusplus
28297 }
28298 #endif
28299
28300 int
28301 main ()
28302 {
28303 return f != $ac_func;
28304 ;
28305 return 0;
28306 }
28307 _ACEOF
28308 rm -f conftest.$ac_objext conftest$ac_exeext
28309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28310 (eval $ac_link) 2>conftest.er1
28311 ac_status=$?
28312 grep -v '^ *+' conftest.er1 >conftest.err
28313 rm -f conftest.er1
28314 cat conftest.err >&5
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } &&
28317 { ac_try='test -z "$ac_c_werror_flag"
28318 || test ! -s conftest.err'
28319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); }; } &&
28324 { ac_try='test -s conftest$ac_exeext'
28325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326 (eval $ac_try) 2>&5
28327 ac_status=$?
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); }; }; then
28330 eval "$as_ac_var=yes"
28331 else
28332 echo "$as_me: failed program was:" >&5
28333 sed 's/^/| /' conftest.$ac_ext >&5
28334
28335 eval "$as_ac_var=no"
28336 fi
28337 rm -f conftest.err conftest.$ac_objext \
28338 conftest$ac_exeext conftest.$ac_ext
28339 fi
28340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28342 if test `eval echo '${'$as_ac_var'}'` = yes; then
28343 cat >>confdefs.h <<_ACEOF
28344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28345 _ACEOF
28346
28347 fi
28348 done
28349
28350 else
28351 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28352 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28353 fi
28354
28355
28356
28357 ac_ext=cc
28358 ac_cpp='$CXXCPP $CPPFLAGS'
28359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28362
28363
28364
28365 for ac_func in vsnprintf
28366 do
28367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28368 echo "$as_me:$LINENO: checking for $ac_func" >&5
28369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28370 if eval "test \"\${$as_ac_var+set}\" = set"; then
28371 echo $ECHO_N "(cached) $ECHO_C" >&6
28372 else
28373 cat >conftest.$ac_ext <<_ACEOF
28374 /* confdefs.h. */
28375 _ACEOF
28376 cat confdefs.h >>conftest.$ac_ext
28377 cat >>conftest.$ac_ext <<_ACEOF
28378 /* end confdefs.h. */
28379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28381 #define $ac_func innocuous_$ac_func
28382
28383 /* System header to define __stub macros and hopefully few prototypes,
28384 which can conflict with char $ac_func (); below.
28385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28386 <limits.h> exists even on freestanding compilers. */
28387
28388 #ifdef __STDC__
28389 # include <limits.h>
28390 #else
28391 # include <assert.h>
28392 #endif
28393
28394 #undef $ac_func
28395
28396 /* Override any gcc2 internal prototype to avoid an error. */
28397 #ifdef __cplusplus
28398 extern "C"
28399 {
28400 #endif
28401 /* We use char because int might match the return type of a gcc2
28402 builtin and then its argument prototype would still apply. */
28403 char $ac_func ();
28404 /* The GNU C library defines this for functions which it implements
28405 to always fail with ENOSYS. Some functions are actually named
28406 something starting with __ and the normal name is an alias. */
28407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28408 choke me
28409 #else
28410 char (*f) () = $ac_func;
28411 #endif
28412 #ifdef __cplusplus
28413 }
28414 #endif
28415
28416 int
28417 main ()
28418 {
28419 return f != $ac_func;
28420 ;
28421 return 0;
28422 }
28423 _ACEOF
28424 rm -f conftest.$ac_objext conftest$ac_exeext
28425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28426 (eval $ac_link) 2>conftest.er1
28427 ac_status=$?
28428 grep -v '^ *+' conftest.er1 >conftest.err
28429 rm -f conftest.er1
28430 cat conftest.err >&5
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } &&
28433 { ac_try='test -z "$ac_cxx_werror_flag"
28434 || test ! -s conftest.err'
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; } &&
28440 { ac_try='test -s conftest$ac_exeext'
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; }; then
28446 eval "$as_ac_var=yes"
28447 else
28448 echo "$as_me: failed program was:" >&5
28449 sed 's/^/| /' conftest.$ac_ext >&5
28450
28451 eval "$as_ac_var=no"
28452 fi
28453 rm -f conftest.err conftest.$ac_objext \
28454 conftest$ac_exeext conftest.$ac_ext
28455 fi
28456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28458 if test `eval echo '${'$as_ac_var'}'` = yes; then
28459 cat >>confdefs.h <<_ACEOF
28460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28461 _ACEOF
28462
28463 fi
28464 done
28465
28466
28467 if test "$ac_cv_func_vsnprintf" = "yes"; then
28468 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28469 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28470 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28471 echo $ECHO_N "(cached) $ECHO_C" >&6
28472 else
28473
28474 cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h. */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h. */
28480
28481 #include <stdio.h>
28482 #include <stdarg.h>
28483
28484 int
28485 main ()
28486 {
28487
28488 char *buf;
28489 va_list ap;
28490 vsnprintf(buf, 10u, "%s", ap);
28491
28492 ;
28493 return 0;
28494 }
28495 _ACEOF
28496 rm -f conftest.$ac_objext
28497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28498 (eval $ac_compile) 2>conftest.er1
28499 ac_status=$?
28500 grep -v '^ *+' conftest.er1 >conftest.err
28501 rm -f conftest.er1
28502 cat conftest.err >&5
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_cxx_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28509 ac_status=$?
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest.$ac_objext'
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28515 ac_status=$?
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 wx_cv_func_vsnprintf_decl=yes
28519 else
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28522
28523 wx_cv_func_vsnprintf_decl=no
28524
28525 fi
28526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28527
28528
28529 fi
28530 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28531 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
28532
28533 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_VSNPRINTF_DECL 1
28536 _ACEOF
28537
28538 fi
28539 fi
28540
28541 if test "$wxUSE_UNICODE" = yes; then
28542
28543
28544
28545 for ac_func in fputwc wprintf vswprintf
28546 do
28547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28548 echo "$as_me:$LINENO: checking for $ac_func" >&5
28549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28550 if eval "test \"\${$as_ac_var+set}\" = set"; then
28551 echo $ECHO_N "(cached) $ECHO_C" >&6
28552 else
28553 cat >conftest.$ac_ext <<_ACEOF
28554 /* confdefs.h. */
28555 _ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h. */
28559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28561 #define $ac_func innocuous_$ac_func
28562
28563 /* System header to define __stub macros and hopefully few prototypes,
28564 which can conflict with char $ac_func (); below.
28565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28566 <limits.h> exists even on freestanding compilers. */
28567
28568 #ifdef __STDC__
28569 # include <limits.h>
28570 #else
28571 # include <assert.h>
28572 #endif
28573
28574 #undef $ac_func
28575
28576 /* Override any gcc2 internal prototype to avoid an error. */
28577 #ifdef __cplusplus
28578 extern "C"
28579 {
28580 #endif
28581 /* We use char because int might match the return type of a gcc2
28582 builtin and then its argument prototype would still apply. */
28583 char $ac_func ();
28584 /* The GNU C library defines this for functions which it implements
28585 to always fail with ENOSYS. Some functions are actually named
28586 something starting with __ and the normal name is an alias. */
28587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28588 choke me
28589 #else
28590 char (*f) () = $ac_func;
28591 #endif
28592 #ifdef __cplusplus
28593 }
28594 #endif
28595
28596 int
28597 main ()
28598 {
28599 return f != $ac_func;
28600 ;
28601 return 0;
28602 }
28603 _ACEOF
28604 rm -f conftest.$ac_objext conftest$ac_exeext
28605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28606 (eval $ac_link) 2>conftest.er1
28607 ac_status=$?
28608 grep -v '^ *+' conftest.er1 >conftest.err
28609 rm -f conftest.er1
28610 cat conftest.err >&5
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } &&
28613 { ac_try='test -z "$ac_cxx_werror_flag"
28614 || test ! -s conftest.err'
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; } &&
28620 { ac_try='test -s conftest$ac_exeext'
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 eval "$as_ac_var=yes"
28627 else
28628 echo "$as_me: failed program was:" >&5
28629 sed 's/^/| /' conftest.$ac_ext >&5
28630
28631 eval "$as_ac_var=no"
28632 fi
28633 rm -f conftest.err conftest.$ac_objext \
28634 conftest$ac_exeext conftest.$ac_ext
28635 fi
28636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28637 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28638 if test `eval echo '${'$as_ac_var'}'` = yes; then
28639 cat >>confdefs.h <<_ACEOF
28640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28641 _ACEOF
28642
28643 fi
28644 done
28645
28646
28647 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28648 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28649 cat >conftest.$ac_ext <<_ACEOF
28650 /* confdefs.h. */
28651 _ACEOF
28652 cat confdefs.h >>conftest.$ac_ext
28653 cat >>conftest.$ac_ext <<_ACEOF
28654 /* end confdefs.h. */
28655 #include <wchar.h>
28656 int
28657 main ()
28658 {
28659 &_vsnwprintf;
28660 ;
28661 return 0;
28662 }
28663 _ACEOF
28664 rm -f conftest.$ac_objext
28665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28666 (eval $ac_compile) 2>conftest.er1
28667 ac_status=$?
28668 grep -v '^ *+' conftest.er1 >conftest.err
28669 rm -f conftest.er1
28670 cat conftest.err >&5
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } &&
28673 { ac_try='test -z "$ac_cxx_werror_flag"
28674 || test ! -s conftest.err'
28675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676 (eval $ac_try) 2>&5
28677 ac_status=$?
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; } &&
28680 { ac_try='test -s conftest.$ac_objext'
28681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28682 (eval $ac_try) 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 echo "$as_me:$LINENO: result: yes" >&5
28687 echo "${ECHO_T}yes" >&6
28688 cat >>confdefs.h <<\_ACEOF
28689 #define HAVE__VSNWPRINTF 1
28690 _ACEOF
28691
28692 else
28693 echo "$as_me: failed program was:" >&5
28694 sed 's/^/| /' conftest.$ac_ext >&5
28695
28696 echo "$as_me:$LINENO: result: no" >&5
28697 echo "${ECHO_T}no" >&6
28698 fi
28699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
28700 fi
28701
28702 ac_ext=c
28703 ac_cpp='$CPP $CPPFLAGS'
28704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28707
28708
28709
28710
28711 if test "$TOOLKIT" != "MSW"; then
28712
28713
28714
28715
28716 ac_ext=cc
28717 ac_cpp='$CXXCPP $CPPFLAGS'
28718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28721
28722
28723
28724
28725 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28726 if test "${with_libiconv_prefix+set}" = set; then
28727 withval="$with_libiconv_prefix"
28728
28729 for dir in `echo "$withval" | tr : ' '`; do
28730 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28731 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28732 done
28733
28734 fi;
28735
28736 echo "$as_me:$LINENO: checking for iconv" >&5
28737 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28738 if test "${am_cv_func_iconv+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
28740 else
28741
28742 am_cv_func_iconv="no, consider installing GNU libiconv"
28743 am_cv_lib_iconv=no
28744 cat >conftest.$ac_ext <<_ACEOF
28745 /* confdefs.h. */
28746 _ACEOF
28747 cat confdefs.h >>conftest.$ac_ext
28748 cat >>conftest.$ac_ext <<_ACEOF
28749 /* end confdefs.h. */
28750 #include <stdlib.h>
28751 #include <iconv.h>
28752 int
28753 main ()
28754 {
28755 iconv_t cd = iconv_open("","");
28756 iconv(cd,NULL,NULL,NULL,NULL);
28757 iconv_close(cd);
28758 ;
28759 return 0;
28760 }
28761 _ACEOF
28762 rm -f conftest.$ac_objext conftest$ac_exeext
28763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28764 (eval $ac_link) 2>conftest.er1
28765 ac_status=$?
28766 grep -v '^ *+' conftest.er1 >conftest.err
28767 rm -f conftest.er1
28768 cat conftest.err >&5
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } &&
28771 { ac_try='test -z "$ac_cxx_werror_flag"
28772 || test ! -s conftest.err'
28773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 (eval $ac_try) 2>&5
28775 ac_status=$?
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); }; } &&
28778 { ac_try='test -s conftest$ac_exeext'
28779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 (eval $ac_try) 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
28784 am_cv_func_iconv=yes
28785 else
28786 echo "$as_me: failed program was:" >&5
28787 sed 's/^/| /' conftest.$ac_ext >&5
28788
28789 fi
28790 rm -f conftest.err conftest.$ac_objext \
28791 conftest$ac_exeext conftest.$ac_ext
28792 if test "$am_cv_func_iconv" != yes; then
28793 am_save_LIBS="$LIBS"
28794 LIBS="$LIBS -liconv"
28795 cat >conftest.$ac_ext <<_ACEOF
28796 /* confdefs.h. */
28797 _ACEOF
28798 cat confdefs.h >>conftest.$ac_ext
28799 cat >>conftest.$ac_ext <<_ACEOF
28800 /* end confdefs.h. */
28801 #include <stdlib.h>
28802 #include <iconv.h>
28803 int
28804 main ()
28805 {
28806 iconv_t cd = iconv_open("","");
28807 iconv(cd,NULL,NULL,NULL,NULL);
28808 iconv_close(cd);
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_cxx_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 am_cv_lib_iconv=yes
28836 am_cv_func_iconv=yes
28837 else
28838 echo "$as_me: failed program was:" >&5
28839 sed 's/^/| /' conftest.$ac_ext >&5
28840
28841 fi
28842 rm -f conftest.err conftest.$ac_objext \
28843 conftest$ac_exeext conftest.$ac_ext
28844 LIBS="$am_save_LIBS"
28845 fi
28846
28847 fi
28848 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28849 echo "${ECHO_T}$am_cv_func_iconv" >&6
28850 if test "$am_cv_func_iconv" = yes; then
28851
28852 cat >>confdefs.h <<\_ACEOF
28853 #define HAVE_ICONV 1
28854 _ACEOF
28855
28856 echo "$as_me:$LINENO: checking if iconv needs const" >&5
28857 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
28858 if test "${wx_cv_func_iconv_const+set}" = set; then
28859 echo $ECHO_N "(cached) $ECHO_C" >&6
28860 else
28861 cat >conftest.$ac_ext <<_ACEOF
28862 /* confdefs.h. */
28863 _ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h. */
28867
28868 #include <stdlib.h>
28869 #include <iconv.h>
28870 extern
28871 #ifdef __cplusplus
28872 "C"
28873 #endif
28874 #if defined(__STDC__) || defined(__cplusplus)
28875 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28876 #else
28877 size_t iconv();
28878 #endif
28879
28880 int
28881 main ()
28882 {
28883
28884 ;
28885 return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest.$ac_objext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28890 (eval $ac_compile) 2>conftest.er1
28891 ac_status=$?
28892 grep -v '^ *+' conftest.er1 >conftest.err
28893 rm -f conftest.er1
28894 cat conftest.err >&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } &&
28897 { ac_try='test -z "$ac_cxx_werror_flag"
28898 || test ! -s conftest.err'
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28901 ac_status=$?
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; } &&
28904 { ac_try='test -s conftest.$ac_objext'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28907 ac_status=$?
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; }; then
28910 wx_cv_func_iconv_const="no"
28911 else
28912 echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28914
28915 wx_cv_func_iconv_const="yes"
28916
28917 fi
28918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28919
28920 fi
28921 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
28922 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
28923
28924 iconv_const=
28925 if test "x$wx_cv_func_iconv_const" = "xyes"; then
28926 iconv_const="const"
28927 fi
28928
28929
28930 cat >>confdefs.h <<_ACEOF
28931 #define ICONV_CONST $iconv_const
28932 _ACEOF
28933
28934 fi
28935 LIBICONV=
28936 if test "$am_cv_lib_iconv" = yes; then
28937 LIBICONV="-liconv"
28938 fi
28939
28940
28941 LIBS="$LIBICONV $LIBS"
28942 ac_ext=c
28943 ac_cpp='$CPP $CPPFLAGS'
28944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28947
28948
28949 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
28950
28951 for ac_func in sigaction
28952 do
28953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28954 echo "$as_me:$LINENO: checking for $ac_func" >&5
28955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28956 if eval "test \"\${$as_ac_var+set}\" = set"; then
28957 echo $ECHO_N "(cached) $ECHO_C" >&6
28958 else
28959 cat >conftest.$ac_ext <<_ACEOF
28960 /* confdefs.h. */
28961 _ACEOF
28962 cat confdefs.h >>conftest.$ac_ext
28963 cat >>conftest.$ac_ext <<_ACEOF
28964 /* end confdefs.h. */
28965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28967 #define $ac_func innocuous_$ac_func
28968
28969 /* System header to define __stub macros and hopefully few prototypes,
28970 which can conflict with char $ac_func (); below.
28971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28972 <limits.h> exists even on freestanding compilers. */
28973
28974 #ifdef __STDC__
28975 # include <limits.h>
28976 #else
28977 # include <assert.h>
28978 #endif
28979
28980 #undef $ac_func
28981
28982 /* Override any gcc2 internal prototype to avoid an error. */
28983 #ifdef __cplusplus
28984 extern "C"
28985 {
28986 #endif
28987 /* We use char because int might match the return type of a gcc2
28988 builtin and then its argument prototype would still apply. */
28989 char $ac_func ();
28990 /* The GNU C library defines this for functions which it implements
28991 to always fail with ENOSYS. Some functions are actually named
28992 something starting with __ and the normal name is an alias. */
28993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28994 choke me
28995 #else
28996 char (*f) () = $ac_func;
28997 #endif
28998 #ifdef __cplusplus
28999 }
29000 #endif
29001
29002 int
29003 main ()
29004 {
29005 return f != $ac_func;
29006 ;
29007 return 0;
29008 }
29009 _ACEOF
29010 rm -f conftest.$ac_objext conftest$ac_exeext
29011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29012 (eval $ac_link) 2>conftest.er1
29013 ac_status=$?
29014 grep -v '^ *+' conftest.er1 >conftest.err
29015 rm -f conftest.er1
29016 cat conftest.err >&5
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } &&
29019 { ac_try='test -z "$ac_c_werror_flag"
29020 || test ! -s conftest.err'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; } &&
29026 { ac_try='test -s conftest$ac_exeext'
29027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29029 ac_status=$?
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; }; then
29032 eval "$as_ac_var=yes"
29033 else
29034 echo "$as_me: failed program was:" >&5
29035 sed 's/^/| /' conftest.$ac_ext >&5
29036
29037 eval "$as_ac_var=no"
29038 fi
29039 rm -f conftest.err conftest.$ac_objext \
29040 conftest$ac_exeext conftest.$ac_ext
29041 fi
29042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29044 if test `eval echo '${'$as_ac_var'}'` = yes; then
29045 cat >>confdefs.h <<_ACEOF
29046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29047 _ACEOF
29048
29049 fi
29050 done
29051
29052
29053 if test "$ac_cv_func_sigaction" = "no"; then
29054 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29055 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29056 wxUSE_ON_FATAL_EXCEPTION=no
29057 fi
29058
29059 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29060
29061
29062 ac_ext=cc
29063 ac_cpp='$CXXCPP $CPPFLAGS'
29064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29067
29068
29069 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29070 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29071 if test "${wx_cv_type_sa_handler+set}" = set; then
29072 echo $ECHO_N "(cached) $ECHO_C" >&6
29073 else
29074
29075 cat >conftest.$ac_ext <<_ACEOF
29076 /* confdefs.h. */
29077 _ACEOF
29078 cat confdefs.h >>conftest.$ac_ext
29079 cat >>conftest.$ac_ext <<_ACEOF
29080 /* end confdefs.h. */
29081 #include <signal.h>
29082 int
29083 main ()
29084 {
29085
29086 extern void testSigHandler(int);
29087
29088 struct sigaction sa;
29089 sa.sa_handler = testSigHandler;
29090
29091 ;
29092 return 0;
29093 }
29094 _ACEOF
29095 rm -f conftest.$ac_objext
29096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29097 (eval $ac_compile) 2>conftest.er1
29098 ac_status=$?
29099 grep -v '^ *+' conftest.er1 >conftest.err
29100 rm -f conftest.er1
29101 cat conftest.err >&5
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); } &&
29104 { ac_try='test -z "$ac_cxx_werror_flag"
29105 || test ! -s conftest.err'
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; } &&
29111 { ac_try='test -s conftest.$ac_objext'
29112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29113 (eval $ac_try) 2>&5
29114 ac_status=$?
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; }; then
29117
29118 wx_cv_type_sa_handler=int
29119
29120 else
29121 echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29123
29124
29125 wx_cv_type_sa_handler=void
29126
29127 fi
29128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29129
29130 fi
29131 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29132 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29133
29134 ac_ext=c
29135 ac_cpp='$CPP $CPPFLAGS'
29136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29139
29140
29141 cat >>confdefs.h <<_ACEOF
29142 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29143 _ACEOF
29144
29145 fi
29146 fi
29147
29148
29149
29150 for ac_func in mkstemp mktemp
29151 do
29152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29153 echo "$as_me:$LINENO: checking for $ac_func" >&5
29154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29155 if eval "test \"\${$as_ac_var+set}\" = set"; then
29156 echo $ECHO_N "(cached) $ECHO_C" >&6
29157 else
29158 cat >conftest.$ac_ext <<_ACEOF
29159 /* confdefs.h. */
29160 _ACEOF
29161 cat confdefs.h >>conftest.$ac_ext
29162 cat >>conftest.$ac_ext <<_ACEOF
29163 /* end confdefs.h. */
29164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29166 #define $ac_func innocuous_$ac_func
29167
29168 /* System header to define __stub macros and hopefully few prototypes,
29169 which can conflict with char $ac_func (); below.
29170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29171 <limits.h> exists even on freestanding compilers. */
29172
29173 #ifdef __STDC__
29174 # include <limits.h>
29175 #else
29176 # include <assert.h>
29177 #endif
29178
29179 #undef $ac_func
29180
29181 /* Override any gcc2 internal prototype to avoid an error. */
29182 #ifdef __cplusplus
29183 extern "C"
29184 {
29185 #endif
29186 /* We use char because int might match the return type of a gcc2
29187 builtin and then its argument prototype would still apply. */
29188 char $ac_func ();
29189 /* The GNU C library defines this for functions which it implements
29190 to always fail with ENOSYS. Some functions are actually named
29191 something starting with __ and the normal name is an alias. */
29192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29193 choke me
29194 #else
29195 char (*f) () = $ac_func;
29196 #endif
29197 #ifdef __cplusplus
29198 }
29199 #endif
29200
29201 int
29202 main ()
29203 {
29204 return f != $ac_func;
29205 ;
29206 return 0;
29207 }
29208 _ACEOF
29209 rm -f conftest.$ac_objext conftest$ac_exeext
29210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29211 (eval $ac_link) 2>conftest.er1
29212 ac_status=$?
29213 grep -v '^ *+' conftest.er1 >conftest.err
29214 rm -f conftest.er1
29215 cat conftest.err >&5
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); } &&
29218 { ac_try='test -z "$ac_c_werror_flag"
29219 || test ! -s conftest.err'
29220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29221 (eval $ac_try) 2>&5
29222 ac_status=$?
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; } &&
29225 { ac_try='test -s conftest$ac_exeext'
29226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29227 (eval $ac_try) 2>&5
29228 ac_status=$?
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); }; }; then
29231 eval "$as_ac_var=yes"
29232 else
29233 echo "$as_me: failed program was:" >&5
29234 sed 's/^/| /' conftest.$ac_ext >&5
29235
29236 eval "$as_ac_var=no"
29237 fi
29238 rm -f conftest.err conftest.$ac_objext \
29239 conftest$ac_exeext conftest.$ac_ext
29240 fi
29241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29243 if test `eval echo '${'$as_ac_var'}'` = yes; then
29244 cat >>confdefs.h <<_ACEOF
29245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29246 _ACEOF
29247 break
29248 fi
29249 done
29250
29251
29252 echo "$as_me:$LINENO: checking for statfs" >&5
29253 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29254 if test "${wx_cv_func_statfs+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257 cat >conftest.$ac_ext <<_ACEOF
29258 /* confdefs.h. */
29259 _ACEOF
29260 cat confdefs.h >>conftest.$ac_ext
29261 cat >>conftest.$ac_ext <<_ACEOF
29262 /* end confdefs.h. */
29263
29264 #if defined(__BSD__)
29265 #include <sys/param.h>
29266 #include <sys/mount.h>
29267 #else
29268 #include <sys/vfs.h>
29269 #endif
29270
29271 int
29272 main ()
29273 {
29274
29275 long l;
29276 struct statfs fs;
29277 statfs("/", &fs);
29278 l = fs.f_bsize;
29279 l += fs.f_blocks;
29280 l += fs.f_bavail;
29281
29282 ;
29283 return 0;
29284 }
29285 _ACEOF
29286 rm -f conftest.$ac_objext
29287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29288 (eval $ac_compile) 2>conftest.er1
29289 ac_status=$?
29290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
29295 { ac_try='test -z "$ac_c_werror_flag"
29296 || test ! -s conftest.err'
29297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29298 (eval $ac_try) 2>&5
29299 ac_status=$?
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); }; } &&
29302 { ac_try='test -s conftest.$ac_objext'
29303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29304 (eval $ac_try) 2>&5
29305 ac_status=$?
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; }; then
29308
29309 wx_cv_func_statfs=yes
29310
29311 else
29312 echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29314
29315
29316 wx_cv_func_statfs=no
29317
29318
29319 fi
29320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29321
29322 fi
29323 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29324 echo "${ECHO_T}$wx_cv_func_statfs" >&6
29325
29326 if test "$wx_cv_func_statfs" = "yes"; then
29327 wx_cv_type_statvfs_t="struct statfs"
29328 cat >>confdefs.h <<\_ACEOF
29329 #define HAVE_STATFS 1
29330 _ACEOF
29331
29332 else
29333 echo "$as_me:$LINENO: checking for statvfs" >&5
29334 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29335 if test "${wx_cv_func_statvfs+set}" = set; then
29336 echo $ECHO_N "(cached) $ECHO_C" >&6
29337 else
29338 cat >conftest.$ac_ext <<_ACEOF
29339 /* confdefs.h. */
29340 _ACEOF
29341 cat confdefs.h >>conftest.$ac_ext
29342 cat >>conftest.$ac_ext <<_ACEOF
29343 /* end confdefs.h. */
29344
29345 #include <stddef.h>
29346 #include <sys/statvfs.h>
29347
29348 int
29349 main ()
29350 {
29351
29352 statvfs("/", NULL);
29353
29354 ;
29355 return 0;
29356 }
29357 _ACEOF
29358 rm -f conftest.$ac_objext
29359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29360 (eval $ac_compile) 2>conftest.er1
29361 ac_status=$?
29362 grep -v '^ *+' conftest.er1 >conftest.err
29363 rm -f conftest.er1
29364 cat conftest.err >&5
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); } &&
29367 { ac_try='test -z "$ac_c_werror_flag"
29368 || test ! -s conftest.err'
29369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370 (eval $ac_try) 2>&5
29371 ac_status=$?
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; } &&
29374 { ac_try='test -s conftest.$ac_objext'
29375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376 (eval $ac_try) 2>&5
29377 ac_status=$?
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); }; }; then
29380 wx_cv_func_statvfs=yes
29381 else
29382 echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29384
29385 wx_cv_func_statvfs=no
29386
29387 fi
29388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29389
29390 fi
29391 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29392 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29393
29394 if test "$wx_cv_func_statvfs" = "yes"; then
29395
29396
29397 ac_ext=cc
29398 ac_cpp='$CXXCPP $CPPFLAGS'
29399 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29402
29403
29404 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29405 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29406 if test "${wx_cv_type_statvfs_t+set}" = set; then
29407 echo $ECHO_N "(cached) $ECHO_C" >&6
29408 else
29409 cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h. */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h. */
29415
29416 #include <sys/statvfs.h>
29417
29418 int
29419 main ()
29420 {
29421
29422 long l;
29423 statvfs_t fs;
29424 statvfs("/", &fs);
29425 l = fs.f_bsize;
29426 l += fs.f_blocks;
29427 l += fs.f_bavail;
29428
29429 ;
29430 return 0;
29431 }
29432 _ACEOF
29433 rm -f conftest.$ac_objext
29434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29435 (eval $ac_compile) 2>conftest.er1
29436 ac_status=$?
29437 grep -v '^ *+' conftest.er1 >conftest.err
29438 rm -f conftest.er1
29439 cat conftest.err >&5
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); } &&
29442 { ac_try='test -z "$ac_cxx_werror_flag"
29443 || test ! -s conftest.err'
29444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29445 (eval $ac_try) 2>&5
29446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; } &&
29449 { ac_try='test -s conftest.$ac_objext'
29450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29451 (eval $ac_try) 2>&5
29452 ac_status=$?
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); }; }; then
29455 wx_cv_type_statvfs_t=statvfs_t
29456 else
29457 echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29459
29460
29461 cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h. */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h. */
29467
29468 #include <sys/statvfs.h>
29469
29470 int
29471 main ()
29472 {
29473
29474 long l;
29475 struct statvfs fs;
29476 statvfs("/", &fs);
29477 l = fs.f_bsize;
29478 l += fs.f_blocks;
29479 l += fs.f_bavail;
29480
29481 ;
29482 return 0;
29483 }
29484 _ACEOF
29485 rm -f conftest.$ac_objext
29486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29487 (eval $ac_compile) 2>conftest.er1
29488 ac_status=$?
29489 grep -v '^ *+' conftest.er1 >conftest.err
29490 rm -f conftest.er1
29491 cat conftest.err >&5
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); } &&
29494 { ac_try='test -z "$ac_cxx_werror_flag"
29495 || test ! -s conftest.err'
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; } &&
29501 { ac_try='test -s conftest.$ac_objext'
29502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503 (eval $ac_try) 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
29507 wx_cv_type_statvfs_t="struct statvfs"
29508 else
29509 echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29511
29512 wx_cv_type_statvfs_t="unknown"
29513
29514 fi
29515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29516
29517
29518 fi
29519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29520
29521 fi
29522 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29523 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
29524
29525 ac_ext=c
29526 ac_cpp='$CPP $CPPFLAGS'
29527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29530
29531
29532 if test "$wx_cv_type_statvfs_t" != "unknown"; then
29533 cat >>confdefs.h <<\_ACEOF
29534 #define HAVE_STATVFS 1
29535 _ACEOF
29536
29537 fi
29538 else
29539 wx_cv_type_statvfs_t="unknown"
29540 fi
29541 fi
29542
29543 if test "$wx_cv_type_statvfs_t" != "unknown"; then
29544 cat >>confdefs.h <<_ACEOF
29545 #define WX_STATFS_T $wx_cv_type_statvfs_t
29546 _ACEOF
29547
29548 else
29549 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29550 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
29551 fi
29552
29553 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
29554
29555
29556 for ac_func in fcntl flock
29557 do
29558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29559 echo "$as_me:$LINENO: checking for $ac_func" >&5
29560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29561 if eval "test \"\${$as_ac_var+set}\" = set"; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29563 else
29564 cat >conftest.$ac_ext <<_ACEOF
29565 /* confdefs.h. */
29566 _ACEOF
29567 cat confdefs.h >>conftest.$ac_ext
29568 cat >>conftest.$ac_ext <<_ACEOF
29569 /* end confdefs.h. */
29570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29572 #define $ac_func innocuous_$ac_func
29573
29574 /* System header to define __stub macros and hopefully few prototypes,
29575 which can conflict with char $ac_func (); below.
29576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29577 <limits.h> exists even on freestanding compilers. */
29578
29579 #ifdef __STDC__
29580 # include <limits.h>
29581 #else
29582 # include <assert.h>
29583 #endif
29584
29585 #undef $ac_func
29586
29587 /* Override any gcc2 internal prototype to avoid an error. */
29588 #ifdef __cplusplus
29589 extern "C"
29590 {
29591 #endif
29592 /* We use char because int might match the return type of a gcc2
29593 builtin and then its argument prototype would still apply. */
29594 char $ac_func ();
29595 /* The GNU C library defines this for functions which it implements
29596 to always fail with ENOSYS. Some functions are actually named
29597 something starting with __ and the normal name is an alias. */
29598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29599 choke me
29600 #else
29601 char (*f) () = $ac_func;
29602 #endif
29603 #ifdef __cplusplus
29604 }
29605 #endif
29606
29607 int
29608 main ()
29609 {
29610 return f != $ac_func;
29611 ;
29612 return 0;
29613 }
29614 _ACEOF
29615 rm -f conftest.$ac_objext conftest$ac_exeext
29616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29617 (eval $ac_link) 2>conftest.er1
29618 ac_status=$?
29619 grep -v '^ *+' conftest.er1 >conftest.err
29620 rm -f conftest.er1
29621 cat conftest.err >&5
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); } &&
29624 { ac_try='test -z "$ac_c_werror_flag"
29625 || test ! -s conftest.err'
29626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627 (eval $ac_try) 2>&5
29628 ac_status=$?
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; } &&
29631 { ac_try='test -s conftest$ac_exeext'
29632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633 (eval $ac_try) 2>&5
29634 ac_status=$?
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; }; then
29637 eval "$as_ac_var=yes"
29638 else
29639 echo "$as_me: failed program was:" >&5
29640 sed 's/^/| /' conftest.$ac_ext >&5
29641
29642 eval "$as_ac_var=no"
29643 fi
29644 rm -f conftest.err conftest.$ac_objext \
29645 conftest$ac_exeext conftest.$ac_ext
29646 fi
29647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29649 if test `eval echo '${'$as_ac_var'}'` = yes; then
29650 cat >>confdefs.h <<_ACEOF
29651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29652 _ACEOF
29653 break
29654 fi
29655 done
29656
29657
29658 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
29659 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29660 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
29661 wxUSE_SNGLINST_CHECKER=no
29662 fi
29663 fi
29664
29665
29666 for ac_func in timegm
29667 do
29668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29669 echo "$as_me:$LINENO: checking for $ac_func" >&5
29670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29671 if eval "test \"\${$as_ac_var+set}\" = set"; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29673 else
29674 cat >conftest.$ac_ext <<_ACEOF
29675 /* confdefs.h. */
29676 _ACEOF
29677 cat confdefs.h >>conftest.$ac_ext
29678 cat >>conftest.$ac_ext <<_ACEOF
29679 /* end confdefs.h. */
29680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29682 #define $ac_func innocuous_$ac_func
29683
29684 /* System header to define __stub macros and hopefully few prototypes,
29685 which can conflict with char $ac_func (); below.
29686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29687 <limits.h> exists even on freestanding compilers. */
29688
29689 #ifdef __STDC__
29690 # include <limits.h>
29691 #else
29692 # include <assert.h>
29693 #endif
29694
29695 #undef $ac_func
29696
29697 /* Override any gcc2 internal prototype to avoid an error. */
29698 #ifdef __cplusplus
29699 extern "C"
29700 {
29701 #endif
29702 /* We use char because int might match the return type of a gcc2
29703 builtin and then its argument prototype would still apply. */
29704 char $ac_func ();
29705 /* The GNU C library defines this for functions which it implements
29706 to always fail with ENOSYS. Some functions are actually named
29707 something starting with __ and the normal name is an alias. */
29708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29709 choke me
29710 #else
29711 char (*f) () = $ac_func;
29712 #endif
29713 #ifdef __cplusplus
29714 }
29715 #endif
29716
29717 int
29718 main ()
29719 {
29720 return f != $ac_func;
29721 ;
29722 return 0;
29723 }
29724 _ACEOF
29725 rm -f conftest.$ac_objext conftest$ac_exeext
29726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29727 (eval $ac_link) 2>conftest.er1
29728 ac_status=$?
29729 grep -v '^ *+' conftest.er1 >conftest.err
29730 rm -f conftest.er1
29731 cat conftest.err >&5
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
29734 { ac_try='test -z "$ac_c_werror_flag"
29735 || test ! -s conftest.err'
29736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29737 (eval $ac_try) 2>&5
29738 ac_status=$?
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; } &&
29741 { ac_try='test -s conftest$ac_exeext'
29742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743 (eval $ac_try) 2>&5
29744 ac_status=$?
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); }; }; then
29747 eval "$as_ac_var=yes"
29748 else
29749 echo "$as_me: failed program was:" >&5
29750 sed 's/^/| /' conftest.$ac_ext >&5
29751
29752 eval "$as_ac_var=no"
29753 fi
29754 rm -f conftest.err conftest.$ac_objext \
29755 conftest$ac_exeext conftest.$ac_ext
29756 fi
29757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29758 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29759 if test `eval echo '${'$as_ac_var'}'` = yes; then
29760 cat >>confdefs.h <<_ACEOF
29761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29762 _ACEOF
29763
29764 fi
29765 done
29766
29767
29768
29769
29770 for ac_func in putenv setenv
29771 do
29772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29773 echo "$as_me:$LINENO: checking for $ac_func" >&5
29774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29775 if eval "test \"\${$as_ac_var+set}\" = set"; then
29776 echo $ECHO_N "(cached) $ECHO_C" >&6
29777 else
29778 cat >conftest.$ac_ext <<_ACEOF
29779 /* confdefs.h. */
29780 _ACEOF
29781 cat confdefs.h >>conftest.$ac_ext
29782 cat >>conftest.$ac_ext <<_ACEOF
29783 /* end confdefs.h. */
29784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29786 #define $ac_func innocuous_$ac_func
29787
29788 /* System header to define __stub macros and hopefully few prototypes,
29789 which can conflict with char $ac_func (); below.
29790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29791 <limits.h> exists even on freestanding compilers. */
29792
29793 #ifdef __STDC__
29794 # include <limits.h>
29795 #else
29796 # include <assert.h>
29797 #endif
29798
29799 #undef $ac_func
29800
29801 /* Override any gcc2 internal prototype to avoid an error. */
29802 #ifdef __cplusplus
29803 extern "C"
29804 {
29805 #endif
29806 /* We use char because int might match the return type of a gcc2
29807 builtin and then its argument prototype would still apply. */
29808 char $ac_func ();
29809 /* The GNU C library defines this for functions which it implements
29810 to always fail with ENOSYS. Some functions are actually named
29811 something starting with __ and the normal name is an alias. */
29812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29813 choke me
29814 #else
29815 char (*f) () = $ac_func;
29816 #endif
29817 #ifdef __cplusplus
29818 }
29819 #endif
29820
29821 int
29822 main ()
29823 {
29824 return f != $ac_func;
29825 ;
29826 return 0;
29827 }
29828 _ACEOF
29829 rm -f conftest.$ac_objext conftest$ac_exeext
29830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29831 (eval $ac_link) 2>conftest.er1
29832 ac_status=$?
29833 grep -v '^ *+' conftest.er1 >conftest.err
29834 rm -f conftest.er1
29835 cat conftest.err >&5
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } &&
29838 { ac_try='test -z "$ac_c_werror_flag"
29839 || test ! -s conftest.err'
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29842 ac_status=$?
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; } &&
29845 { ac_try='test -s conftest$ac_exeext'
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; }; then
29851 eval "$as_ac_var=yes"
29852 else
29853 echo "$as_me: failed program was:" >&5
29854 sed 's/^/| /' conftest.$ac_ext >&5
29855
29856 eval "$as_ac_var=no"
29857 fi
29858 rm -f conftest.err conftest.$ac_objext \
29859 conftest$ac_exeext conftest.$ac_ext
29860 fi
29861 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29862 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29863 if test `eval echo '${'$as_ac_var'}'` = yes; then
29864 cat >>confdefs.h <<_ACEOF
29865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29866 _ACEOF
29867 break
29868 fi
29869 done
29870
29871
29872 HAVE_SOME_SLEEP_FUNC=0
29873 if test "$USE_BEOS" = 1; then
29874 cat >>confdefs.h <<\_ACEOF
29875 #define HAVE_SLEEP 1
29876 _ACEOF
29877
29878 HAVE_SOME_SLEEP_FUNC=1
29879 fi
29880
29881 if test "$USE_DARWIN" = 1; then
29882 cat >>confdefs.h <<\_ACEOF
29883 #define HAVE_USLEEP 1
29884 _ACEOF
29885
29886 HAVE_SOME_SLEEP_FUNC=1
29887 fi
29888
29889 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
29890 POSIX4_LINK=
29891
29892 for ac_func in nanosleep
29893 do
29894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29895 echo "$as_me:$LINENO: checking for $ac_func" >&5
29896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29897 if eval "test \"\${$as_ac_var+set}\" = set"; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899 else
29900 cat >conftest.$ac_ext <<_ACEOF
29901 /* confdefs.h. */
29902 _ACEOF
29903 cat confdefs.h >>conftest.$ac_ext
29904 cat >>conftest.$ac_ext <<_ACEOF
29905 /* end confdefs.h. */
29906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29908 #define $ac_func innocuous_$ac_func
29909
29910 /* System header to define __stub macros and hopefully few prototypes,
29911 which can conflict with char $ac_func (); below.
29912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29913 <limits.h> exists even on freestanding compilers. */
29914
29915 #ifdef __STDC__
29916 # include <limits.h>
29917 #else
29918 # include <assert.h>
29919 #endif
29920
29921 #undef $ac_func
29922
29923 /* Override any gcc2 internal prototype to avoid an error. */
29924 #ifdef __cplusplus
29925 extern "C"
29926 {
29927 #endif
29928 /* We use char because int might match the return type of a gcc2
29929 builtin and then its argument prototype would still apply. */
29930 char $ac_func ();
29931 /* The GNU C library defines this for functions which it implements
29932 to always fail with ENOSYS. Some functions are actually named
29933 something starting with __ and the normal name is an alias. */
29934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29935 choke me
29936 #else
29937 char (*f) () = $ac_func;
29938 #endif
29939 #ifdef __cplusplus
29940 }
29941 #endif
29942
29943 int
29944 main ()
29945 {
29946 return f != $ac_func;
29947 ;
29948 return 0;
29949 }
29950 _ACEOF
29951 rm -f conftest.$ac_objext conftest$ac_exeext
29952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29953 (eval $ac_link) 2>conftest.er1
29954 ac_status=$?
29955 grep -v '^ *+' conftest.er1 >conftest.err
29956 rm -f conftest.er1
29957 cat conftest.err >&5
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); } &&
29960 { ac_try='test -z "$ac_c_werror_flag"
29961 || test ! -s conftest.err'
29962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; } &&
29967 { ac_try='test -s conftest$ac_exeext'
29968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29969 (eval $ac_try) 2>&5
29970 ac_status=$?
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; }; then
29973 eval "$as_ac_var=yes"
29974 else
29975 echo "$as_me: failed program was:" >&5
29976 sed 's/^/| /' conftest.$ac_ext >&5
29977
29978 eval "$as_ac_var=no"
29979 fi
29980 rm -f conftest.err conftest.$ac_objext \
29981 conftest$ac_exeext conftest.$ac_ext
29982 fi
29983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29985 if test `eval echo '${'$as_ac_var'}'` = yes; then
29986 cat >>confdefs.h <<_ACEOF
29987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29988 _ACEOF
29989 cat >>confdefs.h <<\_ACEOF
29990 #define HAVE_NANOSLEEP 1
29991 _ACEOF
29992
29993 else
29994
29995 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
29996 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
29997 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
29999 else
30000 ac_check_lib_save_LIBS=$LIBS
30001 LIBS="-lposix4 $LIBS"
30002 cat >conftest.$ac_ext <<_ACEOF
30003 /* confdefs.h. */
30004 _ACEOF
30005 cat confdefs.h >>conftest.$ac_ext
30006 cat >>conftest.$ac_ext <<_ACEOF
30007 /* end confdefs.h. */
30008
30009 /* Override any gcc2 internal prototype to avoid an error. */
30010 #ifdef __cplusplus
30011 extern "C"
30012 #endif
30013 /* We use char because int might match the return type of a gcc2
30014 builtin and then its argument prototype would still apply. */
30015 char nanosleep ();
30016 int
30017 main ()
30018 {
30019 nanosleep ();
30020 ;
30021 return 0;
30022 }
30023 _ACEOF
30024 rm -f conftest.$ac_objext conftest$ac_exeext
30025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30026 (eval $ac_link) 2>conftest.er1
30027 ac_status=$?
30028 grep -v '^ *+' conftest.er1 >conftest.err
30029 rm -f conftest.er1
30030 cat conftest.err >&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } &&
30033 { ac_try='test -z "$ac_c_werror_flag"
30034 || test ! -s conftest.err'
30035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30036 (eval $ac_try) 2>&5
30037 ac_status=$?
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); }; } &&
30040 { ac_try='test -s conftest$ac_exeext'
30041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042 (eval $ac_try) 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046 ac_cv_lib_posix4_nanosleep=yes
30047 else
30048 echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.$ac_ext >&5
30050
30051 ac_cv_lib_posix4_nanosleep=no
30052 fi
30053 rm -f conftest.err conftest.$ac_objext \
30054 conftest$ac_exeext conftest.$ac_ext
30055 LIBS=$ac_check_lib_save_LIBS
30056 fi
30057 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30058 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30059 if test $ac_cv_lib_posix4_nanosleep = yes; then
30060
30061 cat >>confdefs.h <<\_ACEOF
30062 #define HAVE_NANOSLEEP 1
30063 _ACEOF
30064
30065 POSIX4_LINK=" -lposix4"
30066
30067 else
30068
30069
30070 for ac_func in usleep
30071 do
30072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30073 echo "$as_me:$LINENO: checking for $ac_func" >&5
30074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30075 if eval "test \"\${$as_ac_var+set}\" = set"; then
30076 echo $ECHO_N "(cached) $ECHO_C" >&6
30077 else
30078 cat >conftest.$ac_ext <<_ACEOF
30079 /* confdefs.h. */
30080 _ACEOF
30081 cat confdefs.h >>conftest.$ac_ext
30082 cat >>conftest.$ac_ext <<_ACEOF
30083 /* end confdefs.h. */
30084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30086 #define $ac_func innocuous_$ac_func
30087
30088 /* System header to define __stub macros and hopefully few prototypes,
30089 which can conflict with char $ac_func (); below.
30090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30091 <limits.h> exists even on freestanding compilers. */
30092
30093 #ifdef __STDC__
30094 # include <limits.h>
30095 #else
30096 # include <assert.h>
30097 #endif
30098
30099 #undef $ac_func
30100
30101 /* Override any gcc2 internal prototype to avoid an error. */
30102 #ifdef __cplusplus
30103 extern "C"
30104 {
30105 #endif
30106 /* We use char because int might match the return type of a gcc2
30107 builtin and then its argument prototype would still apply. */
30108 char $ac_func ();
30109 /* The GNU C library defines this for functions which it implements
30110 to always fail with ENOSYS. Some functions are actually named
30111 something starting with __ and the normal name is an alias. */
30112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30113 choke me
30114 #else
30115 char (*f) () = $ac_func;
30116 #endif
30117 #ifdef __cplusplus
30118 }
30119 #endif
30120
30121 int
30122 main ()
30123 {
30124 return f != $ac_func;
30125 ;
30126 return 0;
30127 }
30128 _ACEOF
30129 rm -f conftest.$ac_objext conftest$ac_exeext
30130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30131 (eval $ac_link) 2>conftest.er1
30132 ac_status=$?
30133 grep -v '^ *+' conftest.er1 >conftest.err
30134 rm -f conftest.er1
30135 cat conftest.err >&5
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } &&
30138 { ac_try='test -z "$ac_c_werror_flag"
30139 || test ! -s conftest.err'
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); }; } &&
30145 { ac_try='test -s conftest$ac_exeext'
30146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30147 (eval $ac_try) 2>&5
30148 ac_status=$?
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); }; }; then
30151 eval "$as_ac_var=yes"
30152 else
30153 echo "$as_me: failed program was:" >&5
30154 sed 's/^/| /' conftest.$ac_ext >&5
30155
30156 eval "$as_ac_var=no"
30157 fi
30158 rm -f conftest.err conftest.$ac_objext \
30159 conftest$ac_exeext conftest.$ac_ext
30160 fi
30161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30162 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30163 if test `eval echo '${'$as_ac_var'}'` = yes; then
30164 cat >>confdefs.h <<_ACEOF
30165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30166 _ACEOF
30167 cat >>confdefs.h <<\_ACEOF
30168 #define HAVE_USLEEP 1
30169 _ACEOF
30170
30171 else
30172 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30173 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30174
30175 fi
30176 done
30177
30178
30179
30180 fi
30181
30182
30183
30184 fi
30185 done
30186
30187 fi
30188
30189
30190
30191 for ac_func in uname gethostname
30192 do
30193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30194 echo "$as_me:$LINENO: checking for $ac_func" >&5
30195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30196 if eval "test \"\${$as_ac_var+set}\" = set"; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30198 else
30199 cat >conftest.$ac_ext <<_ACEOF
30200 /* confdefs.h. */
30201 _ACEOF
30202 cat confdefs.h >>conftest.$ac_ext
30203 cat >>conftest.$ac_ext <<_ACEOF
30204 /* end confdefs.h. */
30205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30207 #define $ac_func innocuous_$ac_func
30208
30209 /* System header to define __stub macros and hopefully few prototypes,
30210 which can conflict with char $ac_func (); below.
30211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30212 <limits.h> exists even on freestanding compilers. */
30213
30214 #ifdef __STDC__
30215 # include <limits.h>
30216 #else
30217 # include <assert.h>
30218 #endif
30219
30220 #undef $ac_func
30221
30222 /* Override any gcc2 internal prototype to avoid an error. */
30223 #ifdef __cplusplus
30224 extern "C"
30225 {
30226 #endif
30227 /* We use char because int might match the return type of a gcc2
30228 builtin and then its argument prototype would still apply. */
30229 char $ac_func ();
30230 /* The GNU C library defines this for functions which it implements
30231 to always fail with ENOSYS. Some functions are actually named
30232 something starting with __ and the normal name is an alias. */
30233 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30234 choke me
30235 #else
30236 char (*f) () = $ac_func;
30237 #endif
30238 #ifdef __cplusplus
30239 }
30240 #endif
30241
30242 int
30243 main ()
30244 {
30245 return f != $ac_func;
30246 ;
30247 return 0;
30248 }
30249 _ACEOF
30250 rm -f conftest.$ac_objext conftest$ac_exeext
30251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30252 (eval $ac_link) 2>conftest.er1
30253 ac_status=$?
30254 grep -v '^ *+' conftest.er1 >conftest.err
30255 rm -f conftest.er1
30256 cat conftest.err >&5
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); } &&
30259 { ac_try='test -z "$ac_c_werror_flag"
30260 || test ! -s conftest.err'
30261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30262 (eval $ac_try) 2>&5
30263 ac_status=$?
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; } &&
30266 { ac_try='test -s conftest$ac_exeext'
30267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268 (eval $ac_try) 2>&5
30269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; }; then
30272 eval "$as_ac_var=yes"
30273 else
30274 echo "$as_me: failed program was:" >&5
30275 sed 's/^/| /' conftest.$ac_ext >&5
30276
30277 eval "$as_ac_var=no"
30278 fi
30279 rm -f conftest.err conftest.$ac_objext \
30280 conftest$ac_exeext conftest.$ac_ext
30281 fi
30282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30284 if test `eval echo '${'$as_ac_var'}'` = yes; then
30285 cat >>confdefs.h <<_ACEOF
30286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30287 _ACEOF
30288 break
30289 fi
30290 done
30291
30292
30293
30294
30295 ac_ext=cc
30296 ac_cpp='$CXXCPP $CPPFLAGS'
30297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30300
30301
30302
30303 for ac_func in strtok_r
30304 do
30305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30306 echo "$as_me:$LINENO: checking for $ac_func" >&5
30307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30308 if eval "test \"\${$as_ac_var+set}\" = set"; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30310 else
30311 cat >conftest.$ac_ext <<_ACEOF
30312 /* confdefs.h. */
30313 _ACEOF
30314 cat confdefs.h >>conftest.$ac_ext
30315 cat >>conftest.$ac_ext <<_ACEOF
30316 /* end confdefs.h. */
30317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30319 #define $ac_func innocuous_$ac_func
30320
30321 /* System header to define __stub macros and hopefully few prototypes,
30322 which can conflict with char $ac_func (); below.
30323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30324 <limits.h> exists even on freestanding compilers. */
30325
30326 #ifdef __STDC__
30327 # include <limits.h>
30328 #else
30329 # include <assert.h>
30330 #endif
30331
30332 #undef $ac_func
30333
30334 /* Override any gcc2 internal prototype to avoid an error. */
30335 #ifdef __cplusplus
30336 extern "C"
30337 {
30338 #endif
30339 /* We use char because int might match the return type of a gcc2
30340 builtin and then its argument prototype would still apply. */
30341 char $ac_func ();
30342 /* The GNU C library defines this for functions which it implements
30343 to always fail with ENOSYS. Some functions are actually named
30344 something starting with __ and the normal name is an alias. */
30345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30346 choke me
30347 #else
30348 char (*f) () = $ac_func;
30349 #endif
30350 #ifdef __cplusplus
30351 }
30352 #endif
30353
30354 int
30355 main ()
30356 {
30357 return f != $ac_func;
30358 ;
30359 return 0;
30360 }
30361 _ACEOF
30362 rm -f conftest.$ac_objext conftest$ac_exeext
30363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30364 (eval $ac_link) 2>conftest.er1
30365 ac_status=$?
30366 grep -v '^ *+' conftest.er1 >conftest.err
30367 rm -f conftest.er1
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } &&
30371 { ac_try='test -z "$ac_cxx_werror_flag"
30372 || test ! -s conftest.err'
30373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374 (eval $ac_try) 2>&5
30375 ac_status=$?
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; } &&
30378 { ac_try='test -s conftest$ac_exeext'
30379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30380 (eval $ac_try) 2>&5
30381 ac_status=$?
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; }; then
30384 eval "$as_ac_var=yes"
30385 else
30386 echo "$as_me: failed program was:" >&5
30387 sed 's/^/| /' conftest.$ac_ext >&5
30388
30389 eval "$as_ac_var=no"
30390 fi
30391 rm -f conftest.err conftest.$ac_objext \
30392 conftest$ac_exeext conftest.$ac_ext
30393 fi
30394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30396 if test `eval echo '${'$as_ac_var'}'` = yes; then
30397 cat >>confdefs.h <<_ACEOF
30398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30399 _ACEOF
30400
30401 fi
30402 done
30403
30404
30405 ac_ext=c
30406 ac_cpp='$CPP $CPPFLAGS'
30407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30410
30411
30412 INET_LINK=
30413
30414 for ac_func in inet_addr
30415 do
30416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30417 echo "$as_me:$LINENO: checking for $ac_func" >&5
30418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30419 if eval "test \"\${$as_ac_var+set}\" = set"; then
30420 echo $ECHO_N "(cached) $ECHO_C" >&6
30421 else
30422 cat >conftest.$ac_ext <<_ACEOF
30423 /* confdefs.h. */
30424 _ACEOF
30425 cat confdefs.h >>conftest.$ac_ext
30426 cat >>conftest.$ac_ext <<_ACEOF
30427 /* end confdefs.h. */
30428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30430 #define $ac_func innocuous_$ac_func
30431
30432 /* System header to define __stub macros and hopefully few prototypes,
30433 which can conflict with char $ac_func (); below.
30434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30435 <limits.h> exists even on freestanding compilers. */
30436
30437 #ifdef __STDC__
30438 # include <limits.h>
30439 #else
30440 # include <assert.h>
30441 #endif
30442
30443 #undef $ac_func
30444
30445 /* Override any gcc2 internal prototype to avoid an error. */
30446 #ifdef __cplusplus
30447 extern "C"
30448 {
30449 #endif
30450 /* We use char because int might match the return type of a gcc2
30451 builtin and then its argument prototype would still apply. */
30452 char $ac_func ();
30453 /* The GNU C library defines this for functions which it implements
30454 to always fail with ENOSYS. Some functions are actually named
30455 something starting with __ and the normal name is an alias. */
30456 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30457 choke me
30458 #else
30459 char (*f) () = $ac_func;
30460 #endif
30461 #ifdef __cplusplus
30462 }
30463 #endif
30464
30465 int
30466 main ()
30467 {
30468 return f != $ac_func;
30469 ;
30470 return 0;
30471 }
30472 _ACEOF
30473 rm -f conftest.$ac_objext conftest$ac_exeext
30474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30475 (eval $ac_link) 2>conftest.er1
30476 ac_status=$?
30477 grep -v '^ *+' conftest.er1 >conftest.err
30478 rm -f conftest.er1
30479 cat conftest.err >&5
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); } &&
30482 { ac_try='test -z "$ac_c_werror_flag"
30483 || test ! -s conftest.err'
30484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30485 (eval $ac_try) 2>&5
30486 ac_status=$?
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); }; } &&
30489 { ac_try='test -s conftest$ac_exeext'
30490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30491 (eval $ac_try) 2>&5
30492 ac_status=$?
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }; }; then
30495 eval "$as_ac_var=yes"
30496 else
30497 echo "$as_me: failed program was:" >&5
30498 sed 's/^/| /' conftest.$ac_ext >&5
30499
30500 eval "$as_ac_var=no"
30501 fi
30502 rm -f conftest.err conftest.$ac_objext \
30503 conftest$ac_exeext conftest.$ac_ext
30504 fi
30505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30506 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30507 if test `eval echo '${'$as_ac_var'}'` = yes; then
30508 cat >>confdefs.h <<_ACEOF
30509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30510 _ACEOF
30511 cat >>confdefs.h <<\_ACEOF
30512 #define HAVE_INET_ADDR 1
30513 _ACEOF
30514
30515 else
30516
30517 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30518 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30519 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
30521 else
30522 ac_check_lib_save_LIBS=$LIBS
30523 LIBS="-lnsl $LIBS"
30524 cat >conftest.$ac_ext <<_ACEOF
30525 /* confdefs.h. */
30526 _ACEOF
30527 cat confdefs.h >>conftest.$ac_ext
30528 cat >>conftest.$ac_ext <<_ACEOF
30529 /* end confdefs.h. */
30530
30531 /* Override any gcc2 internal prototype to avoid an error. */
30532 #ifdef __cplusplus
30533 extern "C"
30534 #endif
30535 /* We use char because int might match the return type of a gcc2
30536 builtin and then its argument prototype would still apply. */
30537 char inet_addr ();
30538 int
30539 main ()
30540 {
30541 inet_addr ();
30542 ;
30543 return 0;
30544 }
30545 _ACEOF
30546 rm -f conftest.$ac_objext conftest$ac_exeext
30547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30548 (eval $ac_link) 2>conftest.er1
30549 ac_status=$?
30550 grep -v '^ *+' conftest.er1 >conftest.err
30551 rm -f conftest.er1
30552 cat conftest.err >&5
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
30555 { ac_try='test -z "$ac_c_werror_flag"
30556 || test ! -s conftest.err'
30557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558 (eval $ac_try) 2>&5
30559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest$ac_exeext'
30563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30564 (eval $ac_try) 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30568 ac_cv_lib_nsl_inet_addr=yes
30569 else
30570 echo "$as_me: failed program was:" >&5
30571 sed 's/^/| /' conftest.$ac_ext >&5
30572
30573 ac_cv_lib_nsl_inet_addr=no
30574 fi
30575 rm -f conftest.err conftest.$ac_objext \
30576 conftest$ac_exeext conftest.$ac_ext
30577 LIBS=$ac_check_lib_save_LIBS
30578 fi
30579 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30580 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30581 if test $ac_cv_lib_nsl_inet_addr = yes; then
30582 INET_LINK="nsl"
30583 else
30584
30585 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
30586 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30587 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30588 echo $ECHO_N "(cached) $ECHO_C" >&6
30589 else
30590 ac_check_lib_save_LIBS=$LIBS
30591 LIBS="-lresolv $LIBS"
30592 cat >conftest.$ac_ext <<_ACEOF
30593 /* confdefs.h. */
30594 _ACEOF
30595 cat confdefs.h >>conftest.$ac_ext
30596 cat >>conftest.$ac_ext <<_ACEOF
30597 /* end confdefs.h. */
30598
30599 /* Override any gcc2 internal prototype to avoid an error. */
30600 #ifdef __cplusplus
30601 extern "C"
30602 #endif
30603 /* We use char because int might match the return type of a gcc2
30604 builtin and then its argument prototype would still apply. */
30605 char inet_addr ();
30606 int
30607 main ()
30608 {
30609 inet_addr ();
30610 ;
30611 return 0;
30612 }
30613 _ACEOF
30614 rm -f conftest.$ac_objext conftest$ac_exeext
30615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30616 (eval $ac_link) 2>conftest.er1
30617 ac_status=$?
30618 grep -v '^ *+' conftest.er1 >conftest.err
30619 rm -f conftest.er1
30620 cat conftest.err >&5
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } &&
30623 { ac_try='test -z "$ac_c_werror_flag"
30624 || test ! -s conftest.err'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; } &&
30630 { ac_try='test -s conftest$ac_exeext'
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 ac_cv_lib_resolv_inet_addr=yes
30637 else
30638 echo "$as_me: failed program was:" >&5
30639 sed 's/^/| /' conftest.$ac_ext >&5
30640
30641 ac_cv_lib_resolv_inet_addr=no
30642 fi
30643 rm -f conftest.err conftest.$ac_objext \
30644 conftest$ac_exeext conftest.$ac_ext
30645 LIBS=$ac_check_lib_save_LIBS
30646 fi
30647 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30648 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30649 if test $ac_cv_lib_resolv_inet_addr = yes; then
30650 INET_LINK="resolv"
30651 else
30652
30653 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
30654 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30655 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30656 echo $ECHO_N "(cached) $ECHO_C" >&6
30657 else
30658 ac_check_lib_save_LIBS=$LIBS
30659 LIBS="-lsocket $LIBS"
30660 cat >conftest.$ac_ext <<_ACEOF
30661 /* confdefs.h. */
30662 _ACEOF
30663 cat confdefs.h >>conftest.$ac_ext
30664 cat >>conftest.$ac_ext <<_ACEOF
30665 /* end confdefs.h. */
30666
30667 /* Override any gcc2 internal prototype to avoid an error. */
30668 #ifdef __cplusplus
30669 extern "C"
30670 #endif
30671 /* We use char because int might match the return type of a gcc2
30672 builtin and then its argument prototype would still apply. */
30673 char inet_addr ();
30674 int
30675 main ()
30676 {
30677 inet_addr ();
30678 ;
30679 return 0;
30680 }
30681 _ACEOF
30682 rm -f conftest.$ac_objext conftest$ac_exeext
30683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30684 (eval $ac_link) 2>conftest.er1
30685 ac_status=$?
30686 grep -v '^ *+' conftest.er1 >conftest.err
30687 rm -f conftest.er1
30688 cat conftest.err >&5
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); } &&
30691 { ac_try='test -z "$ac_c_werror_flag"
30692 || test ! -s conftest.err'
30693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30694 (eval $ac_try) 2>&5
30695 ac_status=$?
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); }; } &&
30698 { ac_try='test -s conftest$ac_exeext'
30699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30700 (eval $ac_try) 2>&5
30701 ac_status=$?
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); }; }; then
30704 ac_cv_lib_socket_inet_addr=yes
30705 else
30706 echo "$as_me: failed program was:" >&5
30707 sed 's/^/| /' conftest.$ac_ext >&5
30708
30709 ac_cv_lib_socket_inet_addr=no
30710 fi
30711 rm -f conftest.err conftest.$ac_objext \
30712 conftest$ac_exeext conftest.$ac_ext
30713 LIBS=$ac_check_lib_save_LIBS
30714 fi
30715 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
30716 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
30717 if test $ac_cv_lib_socket_inet_addr = yes; then
30718 INET_LINK="socket"
30719
30720 fi
30721
30722
30723
30724 fi
30725
30726
30727
30728 fi
30729
30730
30731
30732 fi
30733 done
30734
30735
30736
30737 for ac_func in inet_aton
30738 do
30739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30740 echo "$as_me:$LINENO: checking for $ac_func" >&5
30741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30742 if eval "test \"\${$as_ac_var+set}\" = set"; then
30743 echo $ECHO_N "(cached) $ECHO_C" >&6
30744 else
30745 cat >conftest.$ac_ext <<_ACEOF
30746 /* confdefs.h. */
30747 _ACEOF
30748 cat confdefs.h >>conftest.$ac_ext
30749 cat >>conftest.$ac_ext <<_ACEOF
30750 /* end confdefs.h. */
30751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30753 #define $ac_func innocuous_$ac_func
30754
30755 /* System header to define __stub macros and hopefully few prototypes,
30756 which can conflict with char $ac_func (); below.
30757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30758 <limits.h> exists even on freestanding compilers. */
30759
30760 #ifdef __STDC__
30761 # include <limits.h>
30762 #else
30763 # include <assert.h>
30764 #endif
30765
30766 #undef $ac_func
30767
30768 /* Override any gcc2 internal prototype to avoid an error. */
30769 #ifdef __cplusplus
30770 extern "C"
30771 {
30772 #endif
30773 /* We use char because int might match the return type of a gcc2
30774 builtin and then its argument prototype would still apply. */
30775 char $ac_func ();
30776 /* The GNU C library defines this for functions which it implements
30777 to always fail with ENOSYS. Some functions are actually named
30778 something starting with __ and the normal name is an alias. */
30779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30780 choke me
30781 #else
30782 char (*f) () = $ac_func;
30783 #endif
30784 #ifdef __cplusplus
30785 }
30786 #endif
30787
30788 int
30789 main ()
30790 {
30791 return f != $ac_func;
30792 ;
30793 return 0;
30794 }
30795 _ACEOF
30796 rm -f conftest.$ac_objext conftest$ac_exeext
30797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30798 (eval $ac_link) 2>conftest.er1
30799 ac_status=$?
30800 grep -v '^ *+' conftest.er1 >conftest.err
30801 rm -f conftest.er1
30802 cat conftest.err >&5
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); } &&
30805 { ac_try='test -z "$ac_c_werror_flag"
30806 || test ! -s conftest.err'
30807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30808 (eval $ac_try) 2>&5
30809 ac_status=$?
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); }; } &&
30812 { ac_try='test -s conftest$ac_exeext'
30813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814 (eval $ac_try) 2>&5
30815 ac_status=$?
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; }; then
30818 eval "$as_ac_var=yes"
30819 else
30820 echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30822
30823 eval "$as_ac_var=no"
30824 fi
30825 rm -f conftest.err conftest.$ac_objext \
30826 conftest$ac_exeext conftest.$ac_ext
30827 fi
30828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30830 if test `eval echo '${'$as_ac_var'}'` = yes; then
30831 cat >>confdefs.h <<_ACEOF
30832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30833 _ACEOF
30834 cat >>confdefs.h <<\_ACEOF
30835 #define HAVE_INET_ATON 1
30836 _ACEOF
30837
30838 else
30839
30840 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
30841 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
30842 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
30843 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30845 else
30846 ac_check_lib_save_LIBS=$LIBS
30847 LIBS="-l$INET_LINK $LIBS"
30848 cat >conftest.$ac_ext <<_ACEOF
30849 /* confdefs.h. */
30850 _ACEOF
30851 cat confdefs.h >>conftest.$ac_ext
30852 cat >>conftest.$ac_ext <<_ACEOF
30853 /* end confdefs.h. */
30854
30855 /* Override any gcc2 internal prototype to avoid an error. */
30856 #ifdef __cplusplus
30857 extern "C"
30858 #endif
30859 /* We use char because int might match the return type of a gcc2
30860 builtin and then its argument prototype would still apply. */
30861 char inet_aton ();
30862 int
30863 main ()
30864 {
30865 inet_aton ();
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_c_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_Lib=yes"
30893 else
30894 echo "$as_me: failed program was:" >&5
30895 sed 's/^/| /' conftest.$ac_ext >&5
30896
30897 eval "$as_ac_Lib=no"
30898 fi
30899 rm -f conftest.err conftest.$ac_objext \
30900 conftest$ac_exeext conftest.$ac_ext
30901 LIBS=$ac_check_lib_save_LIBS
30902 fi
30903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30904 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30905 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30906 cat >>confdefs.h <<\_ACEOF
30907 #define HAVE_INET_ATON 1
30908 _ACEOF
30909
30910 fi
30911
30912
30913 fi
30914 done
30915
30916
30917 if test "x$INET_LINK" != "x"; then
30918 cat >>confdefs.h <<\_ACEOF
30919 #define HAVE_INET_ADDR 1
30920 _ACEOF
30921
30922 INET_LINK=" -l$INET_LINK"
30923 fi
30924
30925 fi
30926
30927
30928
30929 EXTRALIBS_ESD=
30930 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
30931 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
30932 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
30933 echo $ECHO_N "(cached) $ECHO_C" >&6
30934 else
30935 ac_check_lib_save_LIBS=$LIBS
30936 LIBS="-lesd $LIBS"
30937 cat >conftest.$ac_ext <<_ACEOF
30938 /* confdefs.h. */
30939 _ACEOF
30940 cat confdefs.h >>conftest.$ac_ext
30941 cat >>conftest.$ac_ext <<_ACEOF
30942 /* end confdefs.h. */
30943
30944 /* Override any gcc2 internal prototype to avoid an error. */
30945 #ifdef __cplusplus
30946 extern "C"
30947 #endif
30948 /* We use char because int might match the return type of a gcc2
30949 builtin and then its argument prototype would still apply. */
30950 char esd_close ();
30951 int
30952 main ()
30953 {
30954 esd_close ();
30955 ;
30956 return 0;
30957 }
30958 _ACEOF
30959 rm -f conftest.$ac_objext conftest$ac_exeext
30960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30961 (eval $ac_link) 2>conftest.er1
30962 ac_status=$?
30963 grep -v '^ *+' conftest.er1 >conftest.err
30964 rm -f conftest.er1
30965 cat conftest.err >&5
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); } &&
30968 { ac_try='test -z "$ac_c_werror_flag"
30969 || test ! -s conftest.err'
30970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30971 (eval $ac_try) 2>&5
30972 ac_status=$?
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); }; } &&
30975 { ac_try='test -s conftest$ac_exeext'
30976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977 (eval $ac_try) 2>&5
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; }; then
30981 ac_cv_lib_esd_esd_close=yes
30982 else
30983 echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30985
30986 ac_cv_lib_esd_esd_close=no
30987 fi
30988 rm -f conftest.err conftest.$ac_objext \
30989 conftest$ac_exeext conftest.$ac_ext
30990 LIBS=$ac_check_lib_save_LIBS
30991 fi
30992 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
30993 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
30994 if test $ac_cv_lib_esd_esd_close = yes; then
30995
30996
30997 for ac_header in esd.h
30998 do
30999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31001 echo "$as_me:$LINENO: checking for $ac_header" >&5
31002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31004 echo $ECHO_N "(cached) $ECHO_C" >&6
31005 fi
31006 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31007 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31008 else
31009 # Is the header compilable?
31010 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31012 cat >conftest.$ac_ext <<_ACEOF
31013 /* confdefs.h. */
31014 _ACEOF
31015 cat confdefs.h >>conftest.$ac_ext
31016 cat >>conftest.$ac_ext <<_ACEOF
31017 /* end confdefs.h. */
31018 $ac_includes_default
31019 #include <$ac_header>
31020 _ACEOF
31021 rm -f conftest.$ac_objext
31022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31023 (eval $ac_compile) 2>conftest.er1
31024 ac_status=$?
31025 grep -v '^ *+' conftest.er1 >conftest.err
31026 rm -f conftest.er1
31027 cat conftest.err >&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); } &&
31030 { ac_try='test -z "$ac_c_werror_flag"
31031 || test ! -s conftest.err'
31032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31033 (eval $ac_try) 2>&5
31034 ac_status=$?
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); }; } &&
31037 { ac_try='test -s conftest.$ac_objext'
31038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039 (eval $ac_try) 2>&5
31040 ac_status=$?
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); }; }; then
31043 ac_header_compiler=yes
31044 else
31045 echo "$as_me: failed program was:" >&5
31046 sed 's/^/| /' conftest.$ac_ext >&5
31047
31048 ac_header_compiler=no
31049 fi
31050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31052 echo "${ECHO_T}$ac_header_compiler" >&6
31053
31054 # Is the header present?
31055 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31057 cat >conftest.$ac_ext <<_ACEOF
31058 /* confdefs.h. */
31059 _ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h. */
31063 #include <$ac_header>
31064 _ACEOF
31065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31067 ac_status=$?
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } >/dev/null; then
31073 if test -s conftest.err; then
31074 ac_cpp_err=$ac_c_preproc_warn_flag
31075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31076 else
31077 ac_cpp_err=
31078 fi
31079 else
31080 ac_cpp_err=yes
31081 fi
31082 if test -z "$ac_cpp_err"; then
31083 ac_header_preproc=yes
31084 else
31085 echo "$as_me: failed program was:" >&5
31086 sed 's/^/| /' conftest.$ac_ext >&5
31087
31088 ac_header_preproc=no
31089 fi
31090 rm -f conftest.err conftest.$ac_ext
31091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31092 echo "${ECHO_T}$ac_header_preproc" >&6
31093
31094 # So? What about this header?
31095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31096 yes:no: )
31097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31101 ac_header_preproc=yes
31102 ;;
31103 no:yes:* )
31104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31116 (
31117 cat <<\_ASBOX
31118 ## ----------------------------------------- ##
31119 ## Report this to wx-dev@lists.wxwindows.org ##
31120 ## ----------------------------------------- ##
31121 _ASBOX
31122 ) |
31123 sed "s/^/$as_me: WARNING: /" >&2
31124 ;;
31125 esac
31126 echo "$as_me:$LINENO: checking for $ac_header" >&5
31127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31128 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31129 echo $ECHO_N "(cached) $ECHO_C" >&6
31130 else
31131 eval "$as_ac_Header=\$ac_header_preproc"
31132 fi
31133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31135
31136 fi
31137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31138 cat >>confdefs.h <<_ACEOF
31139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31140 _ACEOF
31141
31142 EXTRALIBS_ESD="-lesd"
31143
31144 fi
31145
31146 done
31147
31148
31149 fi
31150
31151
31152
31153 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31154 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31155 cat >conftest.$ac_ext <<_ACEOF
31156 /* confdefs.h. */
31157 _ACEOF
31158 cat confdefs.h >>conftest.$ac_ext
31159 cat >>conftest.$ac_ext <<_ACEOF
31160 /* end confdefs.h. */
31161 #ifdef __linux__
31162 #include <linux/cdrom.h>
31163 #else
31164 /* For Solaris */
31165 #include <sys/cdio.h>
31166 #endif
31167
31168 int
31169 main ()
31170 {
31171 struct cdrom_tocentry entry, old_entry;
31172 ;
31173 return 0;
31174 }
31175 _ACEOF
31176 rm -f conftest.$ac_objext
31177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31178 (eval $ac_compile) 2>conftest.er1
31179 ac_status=$?
31180 grep -v '^ *+' conftest.er1 >conftest.err
31181 rm -f conftest.er1
31182 cat conftest.err >&5
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); } &&
31185 { ac_try='test -z "$ac_c_werror_flag"
31186 || test ! -s conftest.err'
31187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31188 (eval $ac_try) 2>&5
31189 ac_status=$?
31190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191 (exit $ac_status); }; } &&
31192 { ac_try='test -s conftest.$ac_objext'
31193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31194 (eval $ac_try) 2>&5
31195 ac_status=$?
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); }; }; then
31198 echo "$as_me:$LINENO: result: yes" >&5
31199 echo "${ECHO_T}yes" >&6
31200 cat >>confdefs.h <<\_ACEOF
31201 #define HAVE_KNOWN_CDROM_INTERFACE 1
31202 _ACEOF
31203
31204 else
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31207
31208 echo "$as_me:$LINENO: result: no" >&5
31209 echo "${ECHO_T}no" >&6
31210 fi
31211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31212
31213
31214 cat >confcache <<\_ACEOF
31215 # This file is a shell script that caches the results of configure
31216 # tests run on this system so they can be shared between configure
31217 # scripts and configure runs, see configure's option --config-cache.
31218 # It is not useful on other systems. If it contains results you don't
31219 # want to keep, you may remove or edit it.
31220 #
31221 # config.status only pays attention to the cache file if you give it
31222 # the --recheck option to rerun configure.
31223 #
31224 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31225 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31226 # following values.
31227
31228 _ACEOF
31229
31230 # The following way of writing the cache mishandles newlines in values,
31231 # but we know of no workaround that is simple, portable, and efficient.
31232 # So, don't put newlines in cache variables' values.
31233 # Ultrix sh set writes to stderr and can't be redirected directly,
31234 # and sets the high bit in the cache file unless we assign to the vars.
31235 {
31236 (set) 2>&1 |
31237 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31238 *ac_space=\ *)
31239 # `set' does not quote correctly, so add quotes (double-quote
31240 # substitution turns \\\\ into \\, and sed turns \\ into \).
31241 sed -n \
31242 "s/'/'\\\\''/g;
31243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31244 ;;
31245 *)
31246 # `set' quotes correctly as required by POSIX, so do not add quotes.
31247 sed -n \
31248 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31249 ;;
31250 esac;
31251 } |
31252 sed '
31253 t clear
31254 : clear
31255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31256 t end
31257 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31258 : end' >>confcache
31259 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31260 if test -w $cache_file; then
31261 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31262 cat confcache >$cache_file
31263 else
31264 echo "not updating unwritable cache $cache_file"
31265 fi
31266 fi
31267 rm -f confcache
31268
31269
31270 CPP_MT_FLAG=
31271 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31272
31273
31274 THREADS_LINK=
31275 THREADS_CFLAGS=
31276
31277 if test "$wxUSE_THREADS" = "yes" ; then
31278 if test "$USE_BEOS" = 1; then
31279 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31280 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31281 wxUSE_THREADS="no"
31282 fi
31283 fi
31284
31285 if test "$wxUSE_THREADS" = "yes" ; then
31286
31287
31288 THREAD_OPTS="-pthread"
31289 case "${host}" in
31290 *-*-solaris2* | *-*-sunos4* )
31291 if test "x$GCC" = "xyes"; then
31292 THREAD_OPTS="-pthreads $THREAD_OPTS"
31293 else
31294 THREAD_OPTS="-mt $THREAD_OPTS"
31295 fi
31296 ;;
31297 *-*-freebsd*)
31298 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31299 ;;
31300 *-*-darwin* | *-*-cygwin* )
31301 THREAD_OPTS=""
31302 ;;
31303 *-*-aix*)
31304 THREAD_OPTS="pthreads"
31305 ;;
31306 *-hp-hpux* )
31307 if test "x$GCC" != "xyes"; then
31308 THREAD_OPTS=""
31309 fi
31310 ;;
31311
31312 *-*-irix* )
31313 if test "x$GCC" = "xyes"; then
31314 THREAD_OPTS=""
31315 fi
31316 ;;
31317
31318 *-*-*UnixWare*)
31319 if test "x$GCC" != "xyes"; then
31320 THREAD_OPTS="-Ethread"
31321 fi
31322 ;;
31323 esac
31324
31325 THREAD_OPTS="$THREAD_OPTS pthread none"
31326
31327 THREADS_OK=no
31328 for flag in $THREAD_OPTS; do
31329 case $flag in
31330 none)
31331 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31332 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31333 ;;
31334
31335 -*)
31336 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31337 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31338 THREADS_CFLAGS="$flag"
31339 ;;
31340
31341 *)
31342 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31343 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31344 THREADS_LINK="-l$flag"
31345 ;;
31346 esac
31347
31348 save_LIBS="$LIBS"
31349 save_CFLAGS="$CFLAGS"
31350 LIBS="$THREADS_LINK $LIBS"
31351 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31352
31353 cat >conftest.$ac_ext <<_ACEOF
31354 /* confdefs.h. */
31355 _ACEOF
31356 cat confdefs.h >>conftest.$ac_ext
31357 cat >>conftest.$ac_ext <<_ACEOF
31358 /* end confdefs.h. */
31359 #include <pthread.h>
31360 int
31361 main ()
31362 {
31363 pthread_create(0,0,0,0);
31364 ;
31365 return 0;
31366 }
31367 _ACEOF
31368 rm -f conftest.$ac_objext conftest$ac_exeext
31369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31370 (eval $ac_link) 2>conftest.er1
31371 ac_status=$?
31372 grep -v '^ *+' conftest.er1 >conftest.err
31373 rm -f conftest.er1
31374 cat conftest.err >&5
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } &&
31377 { ac_try='test -z "$ac_c_werror_flag"
31378 || test ! -s conftest.err'
31379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380 (eval $ac_try) 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; } &&
31384 { ac_try='test -s conftest$ac_exeext'
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31387 ac_status=$?
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; }; then
31390 THREADS_OK=yes
31391 else
31392 echo "$as_me: failed program was:" >&5
31393 sed 's/^/| /' conftest.$ac_ext >&5
31394
31395 fi
31396 rm -f conftest.err conftest.$ac_objext \
31397 conftest$ac_exeext conftest.$ac_ext
31398
31399 LIBS="$save_LIBS"
31400 CFLAGS="$save_CFLAGS"
31401
31402 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31403 echo "${ECHO_T}$THREADS_OK" >&6
31404 if test "x$THREADS_OK" = "xyes"; then
31405 break;
31406 fi
31407
31408 THREADS_LINK=""
31409 THREADS_CFLAGS=""
31410 done
31411
31412 if test "x$THREADS_OK" != "xyes"; then
31413 wxUSE_THREADS=no
31414 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31415 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31416 else
31417 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31418 LIBS="$THREADS_LINK $LIBS"
31419
31420 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31421 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31422 flag=no
31423 case "${host}" in
31424 *-aix*)
31425 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31426 flag="-D_THREAD_SAFE"
31427 ;;
31428 *-freebsd*)
31429 flag="-D_THREAD_SAFE"
31430 ;;
31431 *-hp-hpux* )
31432 flag="-D_REENTRANT"
31433 if test "x$GCC" != "xyes"; then
31434 flag="$flag -D_RWSTD_MULTI_THREAD"
31435 fi
31436 ;;
31437 *solaris* | alpha*-osf*)
31438 flag="-D_REENTRANT"
31439 ;;
31440 esac
31441 echo "$as_me:$LINENO: result: ${flag}" >&5
31442 echo "${ECHO_T}${flag}" >&6
31443 if test "x$flag" != xno; then
31444 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31445 fi
31446
31447 if test "x$THREADS_CFLAGS" != "x"; then
31448 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31449 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31450 fi
31451 fi
31452 fi
31453
31454 if test "$wxUSE_THREADS" = "yes" ; then
31455
31456 for ac_func in thr_setconcurrency
31457 do
31458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31459 echo "$as_me:$LINENO: checking for $ac_func" >&5
31460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31461 if eval "test \"\${$as_ac_var+set}\" = set"; then
31462 echo $ECHO_N "(cached) $ECHO_C" >&6
31463 else
31464 cat >conftest.$ac_ext <<_ACEOF
31465 /* confdefs.h. */
31466 _ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h. */
31470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31472 #define $ac_func innocuous_$ac_func
31473
31474 /* System header to define __stub macros and hopefully few prototypes,
31475 which can conflict with char $ac_func (); below.
31476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31477 <limits.h> exists even on freestanding compilers. */
31478
31479 #ifdef __STDC__
31480 # include <limits.h>
31481 #else
31482 # include <assert.h>
31483 #endif
31484
31485 #undef $ac_func
31486
31487 /* Override any gcc2 internal prototype to avoid an error. */
31488 #ifdef __cplusplus
31489 extern "C"
31490 {
31491 #endif
31492 /* We use char because int might match the return type of a gcc2
31493 builtin and then its argument prototype would still apply. */
31494 char $ac_func ();
31495 /* The GNU C library defines this for functions which it implements
31496 to always fail with ENOSYS. Some functions are actually named
31497 something starting with __ and the normal name is an alias. */
31498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31499 choke me
31500 #else
31501 char (*f) () = $ac_func;
31502 #endif
31503 #ifdef __cplusplus
31504 }
31505 #endif
31506
31507 int
31508 main ()
31509 {
31510 return f != $ac_func;
31511 ;
31512 return 0;
31513 }
31514 _ACEOF
31515 rm -f conftest.$ac_objext conftest$ac_exeext
31516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31517 (eval $ac_link) 2>conftest.er1
31518 ac_status=$?
31519 grep -v '^ *+' conftest.er1 >conftest.err
31520 rm -f conftest.er1
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } &&
31524 { ac_try='test -z "$ac_c_werror_flag"
31525 || test ! -s conftest.err'
31526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31527 (eval $ac_try) 2>&5
31528 ac_status=$?
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); }; } &&
31531 { ac_try='test -s conftest$ac_exeext'
31532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31533 (eval $ac_try) 2>&5
31534 ac_status=$?
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); }; }; then
31537 eval "$as_ac_var=yes"
31538 else
31539 echo "$as_me: failed program was:" >&5
31540 sed 's/^/| /' conftest.$ac_ext >&5
31541
31542 eval "$as_ac_var=no"
31543 fi
31544 rm -f conftest.err conftest.$ac_objext \
31545 conftest$ac_exeext conftest.$ac_ext
31546 fi
31547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31549 if test `eval echo '${'$as_ac_var'}'` = yes; then
31550 cat >>confdefs.h <<_ACEOF
31551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31552 _ACEOF
31553
31554 fi
31555 done
31556
31557
31558
31559 for ac_header in sched.h
31560 do
31561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31563 echo "$as_me:$LINENO: checking for $ac_header" >&5
31564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31566 echo $ECHO_N "(cached) $ECHO_C" >&6
31567 fi
31568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31569 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31570 else
31571 # Is the header compilable?
31572 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31574 cat >conftest.$ac_ext <<_ACEOF
31575 /* confdefs.h. */
31576 _ACEOF
31577 cat confdefs.h >>conftest.$ac_ext
31578 cat >>conftest.$ac_ext <<_ACEOF
31579 /* end confdefs.h. */
31580 $ac_includes_default
31581 #include <$ac_header>
31582 _ACEOF
31583 rm -f conftest.$ac_objext
31584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31585 (eval $ac_compile) 2>conftest.er1
31586 ac_status=$?
31587 grep -v '^ *+' conftest.er1 >conftest.err
31588 rm -f conftest.er1
31589 cat conftest.err >&5
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); } &&
31592 { ac_try='test -z "$ac_c_werror_flag"
31593 || test ! -s conftest.err'
31594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31595 (eval $ac_try) 2>&5
31596 ac_status=$?
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; } &&
31599 { ac_try='test -s conftest.$ac_objext'
31600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31601 (eval $ac_try) 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; }; then
31605 ac_header_compiler=yes
31606 else
31607 echo "$as_me: failed program was:" >&5
31608 sed 's/^/| /' conftest.$ac_ext >&5
31609
31610 ac_header_compiler=no
31611 fi
31612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31613 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31614 echo "${ECHO_T}$ac_header_compiler" >&6
31615
31616 # Is the header present?
31617 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31619 cat >conftest.$ac_ext <<_ACEOF
31620 /* confdefs.h. */
31621 _ACEOF
31622 cat confdefs.h >>conftest.$ac_ext
31623 cat >>conftest.$ac_ext <<_ACEOF
31624 /* end confdefs.h. */
31625 #include <$ac_header>
31626 _ACEOF
31627 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31629 ac_status=$?
31630 grep -v '^ *+' conftest.er1 >conftest.err
31631 rm -f conftest.er1
31632 cat conftest.err >&5
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); } >/dev/null; then
31635 if test -s conftest.err; then
31636 ac_cpp_err=$ac_c_preproc_warn_flag
31637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31638 else
31639 ac_cpp_err=
31640 fi
31641 else
31642 ac_cpp_err=yes
31643 fi
31644 if test -z "$ac_cpp_err"; then
31645 ac_header_preproc=yes
31646 else
31647 echo "$as_me: failed program was:" >&5
31648 sed 's/^/| /' conftest.$ac_ext >&5
31649
31650 ac_header_preproc=no
31651 fi
31652 rm -f conftest.err conftest.$ac_ext
31653 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31654 echo "${ECHO_T}$ac_header_preproc" >&6
31655
31656 # So? What about this header?
31657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31658 yes:no: )
31659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31663 ac_header_preproc=yes
31664 ;;
31665 no:yes:* )
31666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31678 (
31679 cat <<\_ASBOX
31680 ## ----------------------------------------- ##
31681 ## Report this to wx-dev@lists.wxwindows.org ##
31682 ## ----------------------------------------- ##
31683 _ASBOX
31684 ) |
31685 sed "s/^/$as_me: WARNING: /" >&2
31686 ;;
31687 esac
31688 echo "$as_me:$LINENO: checking for $ac_header" >&5
31689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31691 echo $ECHO_N "(cached) $ECHO_C" >&6
31692 else
31693 eval "$as_ac_Header=\$ac_header_preproc"
31694 fi
31695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31696 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31697
31698 fi
31699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31700 cat >>confdefs.h <<_ACEOF
31701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31702 _ACEOF
31703
31704 fi
31705
31706 done
31707
31708 if test "$ac_cv_header_sched_h" = "yes"; then
31709 echo "$as_me:$LINENO: checking for sched_yield" >&5
31710 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
31711 if test "${ac_cv_func_sched_yield+set}" = set; then
31712 echo $ECHO_N "(cached) $ECHO_C" >&6
31713 else
31714 cat >conftest.$ac_ext <<_ACEOF
31715 /* confdefs.h. */
31716 _ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h. */
31720 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
31721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31722 #define sched_yield innocuous_sched_yield
31723
31724 /* System header to define __stub macros and hopefully few prototypes,
31725 which can conflict with char sched_yield (); below.
31726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31727 <limits.h> exists even on freestanding compilers. */
31728
31729 #ifdef __STDC__
31730 # include <limits.h>
31731 #else
31732 # include <assert.h>
31733 #endif
31734
31735 #undef sched_yield
31736
31737 /* Override any gcc2 internal prototype to avoid an error. */
31738 #ifdef __cplusplus
31739 extern "C"
31740 {
31741 #endif
31742 /* We use char because int might match the return type of a gcc2
31743 builtin and then its argument prototype would still apply. */
31744 char sched_yield ();
31745 /* The GNU C library defines this for functions which it implements
31746 to always fail with ENOSYS. Some functions are actually named
31747 something starting with __ and the normal name is an alias. */
31748 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
31749 choke me
31750 #else
31751 char (*f) () = sched_yield;
31752 #endif
31753 #ifdef __cplusplus
31754 }
31755 #endif
31756
31757 int
31758 main ()
31759 {
31760 return f != sched_yield;
31761 ;
31762 return 0;
31763 }
31764 _ACEOF
31765 rm -f conftest.$ac_objext conftest$ac_exeext
31766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31767 (eval $ac_link) 2>conftest.er1
31768 ac_status=$?
31769 grep -v '^ *+' conftest.er1 >conftest.err
31770 rm -f conftest.er1
31771 cat conftest.err >&5
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); } &&
31774 { ac_try='test -z "$ac_c_werror_flag"
31775 || test ! -s conftest.err'
31776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31777 (eval $ac_try) 2>&5
31778 ac_status=$?
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); }; } &&
31781 { ac_try='test -s conftest$ac_exeext'
31782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31783 (eval $ac_try) 2>&5
31784 ac_status=$?
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); }; }; then
31787 ac_cv_func_sched_yield=yes
31788 else
31789 echo "$as_me: failed program was:" >&5
31790 sed 's/^/| /' conftest.$ac_ext >&5
31791
31792 ac_cv_func_sched_yield=no
31793 fi
31794 rm -f conftest.err conftest.$ac_objext \
31795 conftest$ac_exeext conftest.$ac_ext
31796 fi
31797 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
31798 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
31799 if test $ac_cv_func_sched_yield = yes; then
31800 cat >>confdefs.h <<\_ACEOF
31801 #define HAVE_SCHED_YIELD 1
31802 _ACEOF
31803
31804 else
31805
31806 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
31807 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
31808 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
31810 else
31811 ac_check_lib_save_LIBS=$LIBS
31812 LIBS="-lposix4 $LIBS"
31813 cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h. */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h. */
31819
31820 /* Override any gcc2 internal prototype to avoid an error. */
31821 #ifdef __cplusplus
31822 extern "C"
31823 #endif
31824 /* We use char because int might match the return type of a gcc2
31825 builtin and then its argument prototype would still apply. */
31826 char sched_yield ();
31827 int
31828 main ()
31829 {
31830 sched_yield ();
31831 ;
31832 return 0;
31833 }
31834 _ACEOF
31835 rm -f conftest.$ac_objext conftest$ac_exeext
31836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31837 (eval $ac_link) 2>conftest.er1
31838 ac_status=$?
31839 grep -v '^ *+' conftest.er1 >conftest.err
31840 rm -f conftest.er1
31841 cat conftest.err >&5
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } &&
31844 { ac_try='test -z "$ac_c_werror_flag"
31845 || test ! -s conftest.err'
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest$ac_exeext'
31852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31853 (eval $ac_try) 2>&5
31854 ac_status=$?
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); }; }; then
31857 ac_cv_lib_posix4_sched_yield=yes
31858 else
31859 echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31861
31862 ac_cv_lib_posix4_sched_yield=no
31863 fi
31864 rm -f conftest.err conftest.$ac_objext \
31865 conftest$ac_exeext conftest.$ac_ext
31866 LIBS=$ac_check_lib_save_LIBS
31867 fi
31868 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
31869 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
31870 if test $ac_cv_lib_posix4_sched_yield = yes; then
31871 cat >>confdefs.h <<\_ACEOF
31872 #define HAVE_SCHED_YIELD 1
31873 _ACEOF
31874 POSIX4_LINK=" -lposix4"
31875 else
31876 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
31877 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
31878
31879 fi
31880
31881
31882
31883 fi
31884
31885 fi
31886
31887 HAVE_PRIOR_FUNCS=0
31888 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
31889 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
31890 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
31891 echo $ECHO_N "(cached) $ECHO_C" >&6
31892 else
31893 cat >conftest.$ac_ext <<_ACEOF
31894 /* confdefs.h. */
31895 _ACEOF
31896 cat confdefs.h >>conftest.$ac_ext
31897 cat >>conftest.$ac_ext <<_ACEOF
31898 /* end confdefs.h. */
31899 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
31900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31901 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
31902
31903 /* System header to define __stub macros and hopefully few prototypes,
31904 which can conflict with char pthread_attr_getschedpolicy (); below.
31905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31906 <limits.h> exists even on freestanding compilers. */
31907
31908 #ifdef __STDC__
31909 # include <limits.h>
31910 #else
31911 # include <assert.h>
31912 #endif
31913
31914 #undef pthread_attr_getschedpolicy
31915
31916 /* Override any gcc2 internal prototype to avoid an error. */
31917 #ifdef __cplusplus
31918 extern "C"
31919 {
31920 #endif
31921 /* We use char because int might match the return type of a gcc2
31922 builtin and then its argument prototype would still apply. */
31923 char pthread_attr_getschedpolicy ();
31924 /* The GNU C library defines this for functions which it implements
31925 to always fail with ENOSYS. Some functions are actually named
31926 something starting with __ and the normal name is an alias. */
31927 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
31928 choke me
31929 #else
31930 char (*f) () = pthread_attr_getschedpolicy;
31931 #endif
31932 #ifdef __cplusplus
31933 }
31934 #endif
31935
31936 int
31937 main ()
31938 {
31939 return f != pthread_attr_getschedpolicy;
31940 ;
31941 return 0;
31942 }
31943 _ACEOF
31944 rm -f conftest.$ac_objext conftest$ac_exeext
31945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31946 (eval $ac_link) 2>conftest.er1
31947 ac_status=$?
31948 grep -v '^ *+' conftest.er1 >conftest.err
31949 rm -f conftest.er1
31950 cat conftest.err >&5
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); } &&
31953 { ac_try='test -z "$ac_c_werror_flag"
31954 || test ! -s conftest.err'
31955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956 (eval $ac_try) 2>&5
31957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; } &&
31960 { ac_try='test -s conftest$ac_exeext'
31961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31962 (eval $ac_try) 2>&5
31963 ac_status=$?
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); }; }; then
31966 ac_cv_func_pthread_attr_getschedpolicy=yes
31967 else
31968 echo "$as_me: failed program was:" >&5
31969 sed 's/^/| /' conftest.$ac_ext >&5
31970
31971 ac_cv_func_pthread_attr_getschedpolicy=no
31972 fi
31973 rm -f conftest.err conftest.$ac_objext \
31974 conftest$ac_exeext conftest.$ac_ext
31975 fi
31976 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
31977 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
31978 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
31979 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
31980 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
31981 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
31982 echo $ECHO_N "(cached) $ECHO_C" >&6
31983 else
31984 cat >conftest.$ac_ext <<_ACEOF
31985 /* confdefs.h. */
31986 _ACEOF
31987 cat confdefs.h >>conftest.$ac_ext
31988 cat >>conftest.$ac_ext <<_ACEOF
31989 /* end confdefs.h. */
31990 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
31991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31992 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
31993
31994 /* System header to define __stub macros and hopefully few prototypes,
31995 which can conflict with char pthread_attr_setschedparam (); below.
31996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31997 <limits.h> exists even on freestanding compilers. */
31998
31999 #ifdef __STDC__
32000 # include <limits.h>
32001 #else
32002 # include <assert.h>
32003 #endif
32004
32005 #undef pthread_attr_setschedparam
32006
32007 /* Override any gcc2 internal prototype to avoid an error. */
32008 #ifdef __cplusplus
32009 extern "C"
32010 {
32011 #endif
32012 /* We use char because int might match the return type of a gcc2
32013 builtin and then its argument prototype would still apply. */
32014 char pthread_attr_setschedparam ();
32015 /* The GNU C library defines this for functions which it implements
32016 to always fail with ENOSYS. Some functions are actually named
32017 something starting with __ and the normal name is an alias. */
32018 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32019 choke me
32020 #else
32021 char (*f) () = pthread_attr_setschedparam;
32022 #endif
32023 #ifdef __cplusplus
32024 }
32025 #endif
32026
32027 int
32028 main ()
32029 {
32030 return f != pthread_attr_setschedparam;
32031 ;
32032 return 0;
32033 }
32034 _ACEOF
32035 rm -f conftest.$ac_objext conftest$ac_exeext
32036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32037 (eval $ac_link) 2>conftest.er1
32038 ac_status=$?
32039 grep -v '^ *+' conftest.er1 >conftest.err
32040 rm -f conftest.er1
32041 cat conftest.err >&5
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); } &&
32044 { ac_try='test -z "$ac_c_werror_flag"
32045 || test ! -s conftest.err'
32046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32047 (eval $ac_try) 2>&5
32048 ac_status=$?
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); }; } &&
32051 { ac_try='test -s conftest$ac_exeext'
32052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32053 (eval $ac_try) 2>&5
32054 ac_status=$?
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); }; }; then
32057 ac_cv_func_pthread_attr_setschedparam=yes
32058 else
32059 echo "$as_me: failed program was:" >&5
32060 sed 's/^/| /' conftest.$ac_ext >&5
32061
32062 ac_cv_func_pthread_attr_setschedparam=no
32063 fi
32064 rm -f conftest.err conftest.$ac_objext \
32065 conftest$ac_exeext conftest.$ac_ext
32066 fi
32067 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32068 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32069 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32070 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32071 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32072 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32073 echo $ECHO_N "(cached) $ECHO_C" >&6
32074 else
32075 cat >conftest.$ac_ext <<_ACEOF
32076 /* confdefs.h. */
32077 _ACEOF
32078 cat confdefs.h >>conftest.$ac_ext
32079 cat >>conftest.$ac_ext <<_ACEOF
32080 /* end confdefs.h. */
32081 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32083 #define sched_get_priority_max innocuous_sched_get_priority_max
32084
32085 /* System header to define __stub macros and hopefully few prototypes,
32086 which can conflict with char sched_get_priority_max (); below.
32087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32088 <limits.h> exists even on freestanding compilers. */
32089
32090 #ifdef __STDC__
32091 # include <limits.h>
32092 #else
32093 # include <assert.h>
32094 #endif
32095
32096 #undef sched_get_priority_max
32097
32098 /* Override any gcc2 internal prototype to avoid an error. */
32099 #ifdef __cplusplus
32100 extern "C"
32101 {
32102 #endif
32103 /* We use char because int might match the return type of a gcc2
32104 builtin and then its argument prototype would still apply. */
32105 char sched_get_priority_max ();
32106 /* The GNU C library defines this for functions which it implements
32107 to always fail with ENOSYS. Some functions are actually named
32108 something starting with __ and the normal name is an alias. */
32109 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32110 choke me
32111 #else
32112 char (*f) () = sched_get_priority_max;
32113 #endif
32114 #ifdef __cplusplus
32115 }
32116 #endif
32117
32118 int
32119 main ()
32120 {
32121 return f != sched_get_priority_max;
32122 ;
32123 return 0;
32124 }
32125 _ACEOF
32126 rm -f conftest.$ac_objext conftest$ac_exeext
32127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32128 (eval $ac_link) 2>conftest.er1
32129 ac_status=$?
32130 grep -v '^ *+' conftest.er1 >conftest.err
32131 rm -f conftest.er1
32132 cat conftest.err >&5
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); } &&
32135 { ac_try='test -z "$ac_c_werror_flag"
32136 || test ! -s conftest.err'
32137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32138 (eval $ac_try) 2>&5
32139 ac_status=$?
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); }; } &&
32142 { ac_try='test -s conftest$ac_exeext'
32143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32144 (eval $ac_try) 2>&5
32145 ac_status=$?
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); }; }; then
32148 ac_cv_func_sched_get_priority_max=yes
32149 else
32150 echo "$as_me: failed program was:" >&5
32151 sed 's/^/| /' conftest.$ac_ext >&5
32152
32153 ac_cv_func_sched_get_priority_max=no
32154 fi
32155 rm -f conftest.err conftest.$ac_objext \
32156 conftest$ac_exeext conftest.$ac_ext
32157 fi
32158 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32159 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32160 if test $ac_cv_func_sched_get_priority_max = yes; then
32161 HAVE_PRIOR_FUNCS=1
32162 else
32163 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32164 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32165 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167 else
32168 ac_check_lib_save_LIBS=$LIBS
32169 LIBS="-lposix4 $LIBS"
32170 cat >conftest.$ac_ext <<_ACEOF
32171 /* confdefs.h. */
32172 _ACEOF
32173 cat confdefs.h >>conftest.$ac_ext
32174 cat >>conftest.$ac_ext <<_ACEOF
32175 /* end confdefs.h. */
32176
32177 /* Override any gcc2 internal prototype to avoid an error. */
32178 #ifdef __cplusplus
32179 extern "C"
32180 #endif
32181 /* We use char because int might match the return type of a gcc2
32182 builtin and then its argument prototype would still apply. */
32183 char sched_get_priority_max ();
32184 int
32185 main ()
32186 {
32187 sched_get_priority_max ();
32188 ;
32189 return 0;
32190 }
32191 _ACEOF
32192 rm -f conftest.$ac_objext conftest$ac_exeext
32193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32194 (eval $ac_link) 2>conftest.er1
32195 ac_status=$?
32196 grep -v '^ *+' conftest.er1 >conftest.err
32197 rm -f conftest.er1
32198 cat conftest.err >&5
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); } &&
32201 { ac_try='test -z "$ac_c_werror_flag"
32202 || test ! -s conftest.err'
32203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204 (eval $ac_try) 2>&5
32205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; } &&
32208 { ac_try='test -s conftest$ac_exeext'
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32211 ac_status=$?
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; }; then
32214 ac_cv_lib_posix4_sched_get_priority_max=yes
32215 else
32216 echo "$as_me: failed program was:" >&5
32217 sed 's/^/| /' conftest.$ac_ext >&5
32218
32219 ac_cv_lib_posix4_sched_get_priority_max=no
32220 fi
32221 rm -f conftest.err conftest.$ac_objext \
32222 conftest$ac_exeext conftest.$ac_ext
32223 LIBS=$ac_check_lib_save_LIBS
32224 fi
32225 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32226 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32227 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32228
32229 HAVE_PRIOR_FUNCS=1
32230 POSIX4_LINK=" -lposix4"
32231
32232 fi
32233
32234
32235 fi
32236
32237
32238 fi
32239
32240
32241 fi
32242
32243
32244 if test "$HAVE_PRIOR_FUNCS" = 1; then
32245 cat >>confdefs.h <<\_ACEOF
32246 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32247 _ACEOF
32248
32249 else
32250 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32251 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32252 fi
32253
32254 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32255 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32256 if test "${ac_cv_func_pthread_cancel+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258 else
32259 cat >conftest.$ac_ext <<_ACEOF
32260 /* confdefs.h. */
32261 _ACEOF
32262 cat confdefs.h >>conftest.$ac_ext
32263 cat >>conftest.$ac_ext <<_ACEOF
32264 /* end confdefs.h. */
32265 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32267 #define pthread_cancel innocuous_pthread_cancel
32268
32269 /* System header to define __stub macros and hopefully few prototypes,
32270 which can conflict with char pthread_cancel (); below.
32271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32272 <limits.h> exists even on freestanding compilers. */
32273
32274 #ifdef __STDC__
32275 # include <limits.h>
32276 #else
32277 # include <assert.h>
32278 #endif
32279
32280 #undef pthread_cancel
32281
32282 /* Override any gcc2 internal prototype to avoid an error. */
32283 #ifdef __cplusplus
32284 extern "C"
32285 {
32286 #endif
32287 /* We use char because int might match the return type of a gcc2
32288 builtin and then its argument prototype would still apply. */
32289 char pthread_cancel ();
32290 /* The GNU C library defines this for functions which it implements
32291 to always fail with ENOSYS. Some functions are actually named
32292 something starting with __ and the normal name is an alias. */
32293 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32294 choke me
32295 #else
32296 char (*f) () = pthread_cancel;
32297 #endif
32298 #ifdef __cplusplus
32299 }
32300 #endif
32301
32302 int
32303 main ()
32304 {
32305 return f != pthread_cancel;
32306 ;
32307 return 0;
32308 }
32309 _ACEOF
32310 rm -f conftest.$ac_objext conftest$ac_exeext
32311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32312 (eval $ac_link) 2>conftest.er1
32313 ac_status=$?
32314 grep -v '^ *+' conftest.er1 >conftest.err
32315 rm -f conftest.er1
32316 cat conftest.err >&5
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); } &&
32319 { ac_try='test -z "$ac_c_werror_flag"
32320 || test ! -s conftest.err'
32321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32322 (eval $ac_try) 2>&5
32323 ac_status=$?
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; } &&
32326 { ac_try='test -s conftest$ac_exeext'
32327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32328 (eval $ac_try) 2>&5
32329 ac_status=$?
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; }; then
32332 ac_cv_func_pthread_cancel=yes
32333 else
32334 echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32336
32337 ac_cv_func_pthread_cancel=no
32338 fi
32339 rm -f conftest.err conftest.$ac_objext \
32340 conftest$ac_exeext conftest.$ac_ext
32341 fi
32342 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32343 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32344 if test $ac_cv_func_pthread_cancel = yes; then
32345 cat >>confdefs.h <<\_ACEOF
32346 #define HAVE_PTHREAD_CANCEL 1
32347 _ACEOF
32348
32349 else
32350 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32351 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32352 fi
32353
32354
32355
32356
32357 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32358 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32359 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32361 else
32362
32363 cat >conftest.$ac_ext <<_ACEOF
32364 /* confdefs.h. */
32365 _ACEOF
32366 cat confdefs.h >>conftest.$ac_ext
32367 cat >>conftest.$ac_ext <<_ACEOF
32368 /* end confdefs.h. */
32369 #include <pthread.h>
32370 int
32371 main ()
32372 {
32373
32374 pthread_mutexattr_t attr;
32375 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32376
32377 ;
32378 return 0;
32379 }
32380 _ACEOF
32381 rm -f conftest.$ac_objext
32382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32383 (eval $ac_compile) 2>conftest.er1
32384 ac_status=$?
32385 grep -v '^ *+' conftest.er1 >conftest.err
32386 rm -f conftest.er1
32387 cat conftest.err >&5
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } &&
32390 { ac_try='test -z "$ac_c_werror_flag"
32391 || test ! -s conftest.err'
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; } &&
32397 { ac_try='test -s conftest.$ac_objext'
32398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32399 (eval $ac_try) 2>&5
32400 ac_status=$?
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); }; }; then
32403
32404 wx_cv_type_pthread_mutexattr_t=yes
32405
32406 else
32407 echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.$ac_ext >&5
32409
32410
32411 wx_cv_type_pthread_mutexattr_t=no
32412
32413
32414 fi
32415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32416
32417 fi
32418 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32419 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32420
32421 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32422 cat >>confdefs.h <<\_ACEOF
32423 #define HAVE_PTHREAD_MUTEXATTR_T 1
32424 _ACEOF
32425
32426 else
32427 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32428 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32429 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32430 echo $ECHO_N "(cached) $ECHO_C" >&6
32431 else
32432
32433 cat >conftest.$ac_ext <<_ACEOF
32434 /* confdefs.h. */
32435 _ACEOF
32436 cat confdefs.h >>conftest.$ac_ext
32437 cat >>conftest.$ac_ext <<_ACEOF
32438 /* end confdefs.h. */
32439 #include <pthread.h>
32440 int
32441 main ()
32442 {
32443
32444 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32445
32446 ;
32447 return 0;
32448 }
32449 _ACEOF
32450 rm -f conftest.$ac_objext
32451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32452 (eval $ac_compile) 2>conftest.er1
32453 ac_status=$?
32454 grep -v '^ *+' conftest.er1 >conftest.err
32455 rm -f conftest.er1
32456 cat conftest.err >&5
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); } &&
32459 { ac_try='test -z "$ac_c_werror_flag"
32460 || test ! -s conftest.err'
32461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32462 (eval $ac_try) 2>&5
32463 ac_status=$?
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); }; } &&
32466 { ac_try='test -s conftest.$ac_objext'
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; }; then
32472
32473 wx_cv_type_pthread_rec_mutex_init=yes
32474
32475 else
32476 echo "$as_me: failed program was:" >&5
32477 sed 's/^/| /' conftest.$ac_ext >&5
32478
32479
32480 wx_cv_type_pthread_rec_mutex_init=no
32481
32482
32483 fi
32484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32485
32486 fi
32487 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32488 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32489 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32490 cat >>confdefs.h <<\_ACEOF
32491 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32492 _ACEOF
32493
32494 else
32495 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32496 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32497 fi
32498 fi
32499 fi
32500
32501 else
32502 if test "$wxUSE_THREADS" = "yes" ; then
32503 case "${host}" in
32504 *-*-mingw32* )
32505 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32506 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32507 if test "${wx_cv_cflags_mthread+set}" = set; then
32508 echo $ECHO_N "(cached) $ECHO_C" >&6
32509 else
32510
32511 CFLAGS_OLD="$CFLAGS"
32512 CFLAGS="$CFLAGS -mthreads"
32513 cat >conftest.$ac_ext <<_ACEOF
32514 /* confdefs.h. */
32515 _ACEOF
32516 cat confdefs.h >>conftest.$ac_ext
32517 cat >>conftest.$ac_ext <<_ACEOF
32518 /* end confdefs.h. */
32519
32520 int
32521 main ()
32522 {
32523
32524 ;
32525 return 0;
32526 }
32527 _ACEOF
32528 rm -f conftest.$ac_objext
32529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32530 (eval $ac_compile) 2>conftest.er1
32531 ac_status=$?
32532 grep -v '^ *+' conftest.er1 >conftest.err
32533 rm -f conftest.er1
32534 cat conftest.err >&5
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); } &&
32537 { ac_try='test -z "$ac_c_werror_flag"
32538 || test ! -s conftest.err'
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; } &&
32544 { ac_try='test -s conftest.$ac_objext'
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; }; then
32550 wx_cv_cflags_mthread=yes
32551 else
32552 echo "$as_me: failed program was:" >&5
32553 sed 's/^/| /' conftest.$ac_ext >&5
32554
32555 wx_cv_cflags_mthread=no
32556
32557 fi
32558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32559
32560
32561 fi
32562 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32563 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
32564
32565 if test "$wx_cv_cflags_mthread" = "yes"; then
32566 CXXFLAGS="$CXXFLAGS -mthreads"
32567 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32568 LDFLAGS="$LDFLAGS -mthreads"
32569 else
32570 CFLAGS="$CFLAGS_OLD"
32571 fi
32572 ;;
32573 *-pc-os2*emx )
32574 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32575 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32576 LDFLAGS="$LDFLAGS -Zmt"
32577 ;;
32578 esac
32579 fi
32580 fi
32581
32582 if test "$wxUSE_THREADS" = "yes"; then
32583 cat >>confdefs.h <<\_ACEOF
32584 #define wxUSE_THREADS 1
32585 _ACEOF
32586
32587
32588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
32589 else
32590 if test "$ac_cv_func_strtok_r" = "yes"; then
32591 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32592 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
32593 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32594 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
32595 echo "$as_me:$LINENO: result: yes" >&5
32596 echo "${ECHO_T}yes" >&6
32597 else
32598 echo "$as_me:$LINENO: result: no" >&5
32599 echo "${ECHO_T}no" >&6
32600 fi
32601 fi
32602 fi
32603
32604 if test "$WXGTK20" = 1 ; then
32605 cat >>confdefs.h <<_ACEOF
32606 #define __WXGTK20__ $WXGTK20
32607 _ACEOF
32608
32609 WXGTK12=1
32610 fi
32611
32612 if test "$WXGTK12" = 1 ; then
32613 cat >>confdefs.h <<_ACEOF
32614 #define __WXGTK12__ $WXGTK12
32615 _ACEOF
32616
32617 fi
32618
32619 if test "$WXGTK127" = 1 ; then
32620 cat >>confdefs.h <<_ACEOF
32621 #define __WXGTK127__ $WXGTK127
32622 _ACEOF
32623
32624 fi
32625
32626 WXDEBUG=
32627
32628 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32629 WXDEBUG="-g"
32630 wxUSE_OPTIMISE=no
32631 fi
32632
32633 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32634 wxUSE_DEBUG_INFO=yes
32635 WXDEBUG="-ggdb"
32636 fi
32637
32638 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
32639 cat >>confdefs.h <<\_ACEOF
32640 #define WXDEBUG 1
32641 _ACEOF
32642
32643 WXDEBUG_DEFINE="-D__WXDEBUG__"
32644 else
32645 if test "$wxUSE_GTK" = 1 ; then
32646 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32647 fi
32648 fi
32649
32650 if test "$wxUSE_MEM_TRACING" = "yes" ; then
32651 cat >>confdefs.h <<\_ACEOF
32652 #define wxUSE_MEMORY_TRACING 1
32653 _ACEOF
32654
32655 cat >>confdefs.h <<\_ACEOF
32656 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
32657 _ACEOF
32658
32659 cat >>confdefs.h <<\_ACEOF
32660 #define wxUSE_DEBUG_NEW_ALWAYS 1
32661 _ACEOF
32662
32663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32664 fi
32665
32666 if test "$wxUSE_DMALLOC" = "yes" ; then
32667 DMALLOC_LIBS="-ldmalloc"
32668 fi
32669
32670 PROFILE=
32671 if test "$wxUSE_PROFILE" = "yes" ; then
32672 PROFILE=" -pg"
32673 fi
32674
32675 CODE_GEN_FLAGS=
32676 CODE_GEN_FLAGS_CXX=
32677 if test "$GCC" = "yes" ; then
32678 if test "$wxUSE_NO_RTTI" = "yes" ; then
32679 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
32680 fi
32681 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32682 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32683 fi
32684 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32685 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32686 fi
32687
32688 case "${host}" in
32689 powerpc*-*-aix* )
32690 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32691 ;;
32692 *-hppa* )
32693 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32694 ;;
32695 esac
32696 fi
32697
32698 OPTIMISE=
32699 if test "$wxUSE_OPTIMISE" = "no" ; then
32700 if test "$GCC" = yes ; then
32701 OPTIMISE="-O0"
32702 fi
32703 else
32704 if test "$GCC" = yes ; then
32705 OPTIMISE="-O2"
32706
32707 case "${host}" in
32708 i586-*-*|i686-*-* )
32709 OPTIMISE="${OPTIMISE} "
32710 ;;
32711 esac
32712 else
32713 OPTIMISE="-O"
32714 fi
32715 fi
32716
32717
32718 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
32719 cat >>confdefs.h <<\_ACEOF
32720 #define WXWIN_COMPATIBILITY_2_2 1
32721 _ACEOF
32722
32723
32724 WXWIN_COMPATIBILITY_2_4="yes"
32725 fi
32726
32727 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
32728 cat >>confdefs.h <<\_ACEOF
32729 #define WXWIN_COMPATIBILITY_2_4 1
32730 _ACEOF
32731
32732 fi
32733
32734
32735 if test "$wxUSE_GUI" = "yes"; then
32736 cat >>confdefs.h <<\_ACEOF
32737 #define wxUSE_GUI 1
32738 _ACEOF
32739
32740
32741 else
32742 cat >>confdefs.h <<\_ACEOF
32743 #define wxUSE_NOGUI 1
32744 _ACEOF
32745
32746 fi
32747
32748
32749 if test "$wxUSE_UNIX" = "yes"; then
32750 cat >>confdefs.h <<\_ACEOF
32751 #define wxUSE_UNIX 1
32752 _ACEOF
32753
32754 fi
32755
32756
32757 if test "$wxUSE_STL" = "yes"; then
32758 cat >>confdefs.h <<\_ACEOF
32759 #define wxUSE_STL 1
32760 _ACEOF
32761
32762 fi
32763
32764 if test "$wxUSE_APPLE_IEEE" = "yes"; then
32765 cat >>confdefs.h <<\_ACEOF
32766 #define wxUSE_APPLE_IEEE 1
32767 _ACEOF
32768
32769 fi
32770
32771 if test "$wxUSE_TIMER" = "yes"; then
32772 cat >>confdefs.h <<\_ACEOF
32773 #define wxUSE_TIMER 1
32774 _ACEOF
32775
32776 fi
32777
32778 if test "$wxUSE_WAVE" = "yes"; then
32779 cat >>confdefs.h <<\_ACEOF
32780 #define wxUSE_WAVE 1
32781 _ACEOF
32782
32783 fi
32784
32785 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
32786 cat >>confdefs.h <<\_ACEOF
32787 #define wxUSE_CMDLINE_PARSER 1
32788 _ACEOF
32789
32790 fi
32791
32792 if test "$wxUSE_STOPWATCH" = "yes"; then
32793 cat >>confdefs.h <<\_ACEOF
32794 #define wxUSE_STOPWATCH 1
32795 _ACEOF
32796
32797 fi
32798
32799 if test "$wxUSE_DATETIME" = "yes"; then
32800 cat >>confdefs.h <<\_ACEOF
32801 #define wxUSE_DATETIME 1
32802 _ACEOF
32803
32804 fi
32805
32806 if test "$wxUSE_FILE" = "yes"; then
32807 cat >>confdefs.h <<\_ACEOF
32808 #define wxUSE_FILE 1
32809 _ACEOF
32810
32811 fi
32812
32813 if test "$wxUSE_FFILE" = "yes"; then
32814 cat >>confdefs.h <<\_ACEOF
32815 #define wxUSE_FFILE 1
32816 _ACEOF
32817
32818 fi
32819
32820 if test "$wxUSE_FILESYSTEM" = "yes"; then
32821 cat >>confdefs.h <<\_ACEOF
32822 #define wxUSE_FILESYSTEM 1
32823 _ACEOF
32824
32825 fi
32826
32827 if test "$wxUSE_FS_ZIP" = "yes"; then
32828 cat >>confdefs.h <<\_ACEOF
32829 #define wxUSE_FS_ZIP 1
32830 _ACEOF
32831
32832 fi
32833
32834 if test "$wxUSE_ZIPSTREAM" = "yes"; then
32835 cat >>confdefs.h <<\_ACEOF
32836 #define wxUSE_ZIPSTREAM 1
32837 _ACEOF
32838
32839 fi
32840
32841 if test "$wxUSE_GZSTREAM" = "yes"; then
32842 cat >>confdefs.h <<\_ACEOF
32843 #define wxUSE_GZSTREAM 1
32844 _ACEOF
32845
32846 fi
32847
32848 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32849 cat >>confdefs.h <<\_ACEOF
32850 #define wxUSE_ON_FATAL_EXCEPTION 1
32851 _ACEOF
32852
32853 fi
32854
32855 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32856 cat >>confdefs.h <<\_ACEOF
32857 #define wxUSE_SNGLINST_CHECKER 1
32858 _ACEOF
32859
32860 fi
32861
32862 if test "$wxUSE_BUSYINFO" = "yes"; then
32863 cat >>confdefs.h <<\_ACEOF
32864 #define wxUSE_BUSYINFO 1
32865 _ACEOF
32866
32867 fi
32868
32869 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
32870 cat >>confdefs.h <<\_ACEOF
32871 #define wxUSE_STD_IOSTREAM 1
32872 _ACEOF
32873
32874 fi
32875
32876 if test "$wxUSE_TEXTBUFFER" = "yes"; then
32877 cat >>confdefs.h <<\_ACEOF
32878 #define wxUSE_TEXTBUFFER 1
32879 _ACEOF
32880
32881 fi
32882
32883 if test "$wxUSE_TEXTFILE" = "yes"; then
32884 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
32885 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32886 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
32887 else
32888 cat >>confdefs.h <<\_ACEOF
32889 #define wxUSE_TEXTFILE 1
32890 _ACEOF
32891
32892 fi
32893 fi
32894
32895 if test "$wxUSE_CONFIG" = "yes" ; then
32896 if test "$wxUSE_TEXTFILE" != "yes"; then
32897 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32898 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
32899 else
32900 cat >>confdefs.h <<\_ACEOF
32901 #define wxUSE_CONFIG 1
32902 _ACEOF
32903
32904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32905 fi
32906 fi
32907
32908 if test "$wxUSE_INTL" = "yes" ; then
32909 if test "$wxUSE_FILE" != "yes"; then
32910 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32911 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
32912 else
32913 cat >>confdefs.h <<\_ACEOF
32914 #define wxUSE_INTL 1
32915 _ACEOF
32916
32917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
32918 GUIDIST="$GUIDIST INTL_DIST"
32919 fi
32920 fi
32921
32922 if test "$wxUSE_LOG" = "yes"; then
32923 cat >>confdefs.h <<\_ACEOF
32924 #define wxUSE_LOG 1
32925 _ACEOF
32926
32927
32928 if test "$wxUSE_LOGGUI" = "yes"; then
32929 cat >>confdefs.h <<\_ACEOF
32930 #define wxUSE_LOGGUI 1
32931 _ACEOF
32932
32933 fi
32934
32935 if test "$wxUSE_LOGWINDOW" = "yes"; then
32936 cat >>confdefs.h <<\_ACEOF
32937 #define wxUSE_LOGWINDOW 1
32938 _ACEOF
32939
32940 fi
32941
32942 if test "$wxUSE_LOGDIALOG" = "yes"; then
32943 cat >>confdefs.h <<\_ACEOF
32944 #define wxUSE_LOG_DIALOG 1
32945 _ACEOF
32946
32947 fi
32948 fi
32949
32950 if test "$wxUSE_LONGLONG" = "yes"; then
32951 cat >>confdefs.h <<\_ACEOF
32952 #define wxUSE_LONGLONG 1
32953 _ACEOF
32954
32955 fi
32956
32957 if test "$wxUSE_GEOMETRY" = "yes"; then
32958 cat >>confdefs.h <<\_ACEOF
32959 #define wxUSE_GEOMETRY 1
32960 _ACEOF
32961
32962 fi
32963
32964 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
32965 cat >>confdefs.h <<\_ACEOF
32966 #define wxUSE_DIALUP_MANAGER 1
32967 _ACEOF
32968
32969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
32970 fi
32971
32972 if test "$wxUSE_STREAMS" = "yes" ; then
32973 cat >>confdefs.h <<\_ACEOF
32974 #define wxUSE_STREAMS 1
32975 _ACEOF
32976
32977 fi
32978
32979
32980 if test "$wxUSE_DATETIME" = "yes"; then
32981
32982 for ac_func in strptime
32983 do
32984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32985 echo "$as_me:$LINENO: checking for $ac_func" >&5
32986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32987 if eval "test \"\${$as_ac_var+set}\" = set"; then
32988 echo $ECHO_N "(cached) $ECHO_C" >&6
32989 else
32990 cat >conftest.$ac_ext <<_ACEOF
32991 /* confdefs.h. */
32992 _ACEOF
32993 cat confdefs.h >>conftest.$ac_ext
32994 cat >>conftest.$ac_ext <<_ACEOF
32995 /* end confdefs.h. */
32996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32998 #define $ac_func innocuous_$ac_func
32999
33000 /* System header to define __stub macros and hopefully few prototypes,
33001 which can conflict with char $ac_func (); below.
33002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33003 <limits.h> exists even on freestanding compilers. */
33004
33005 #ifdef __STDC__
33006 # include <limits.h>
33007 #else
33008 # include <assert.h>
33009 #endif
33010
33011 #undef $ac_func
33012
33013 /* Override any gcc2 internal prototype to avoid an error. */
33014 #ifdef __cplusplus
33015 extern "C"
33016 {
33017 #endif
33018 /* We use char because int might match the return type of a gcc2
33019 builtin and then its argument prototype would still apply. */
33020 char $ac_func ();
33021 /* The GNU C library defines this for functions which it implements
33022 to always fail with ENOSYS. Some functions are actually named
33023 something starting with __ and the normal name is an alias. */
33024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33025 choke me
33026 #else
33027 char (*f) () = $ac_func;
33028 #endif
33029 #ifdef __cplusplus
33030 }
33031 #endif
33032
33033 int
33034 main ()
33035 {
33036 return f != $ac_func;
33037 ;
33038 return 0;
33039 }
33040 _ACEOF
33041 rm -f conftest.$ac_objext conftest$ac_exeext
33042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33043 (eval $ac_link) 2>conftest.er1
33044 ac_status=$?
33045 grep -v '^ *+' conftest.er1 >conftest.err
33046 rm -f conftest.er1
33047 cat conftest.err >&5
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } &&
33050 { ac_try='test -z "$ac_c_werror_flag"
33051 || test ! -s conftest.err'
33052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053 (eval $ac_try) 2>&5
33054 ac_status=$?
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); }; } &&
33057 { ac_try='test -s conftest$ac_exeext'
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33060 ac_status=$?
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; }; then
33063 eval "$as_ac_var=yes"
33064 else
33065 echo "$as_me: failed program was:" >&5
33066 sed 's/^/| /' conftest.$ac_ext >&5
33067
33068 eval "$as_ac_var=no"
33069 fi
33070 rm -f conftest.err conftest.$ac_objext \
33071 conftest$ac_exeext conftest.$ac_ext
33072 fi
33073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33075 if test `eval echo '${'$as_ac_var'}'` = yes; then
33076 cat >>confdefs.h <<_ACEOF
33077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33078 _ACEOF
33079
33080 fi
33081 done
33082
33083
33084 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
33085 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
33086 if test "${wx_cv_var_timezone+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33088 else
33089
33090 cat >conftest.$ac_ext <<_ACEOF
33091 /* confdefs.h. */
33092 _ACEOF
33093 cat confdefs.h >>conftest.$ac_ext
33094 cat >>conftest.$ac_ext <<_ACEOF
33095 /* end confdefs.h. */
33096
33097 #include <time.h>
33098
33099 int
33100 main ()
33101 {
33102
33103 int tz;
33104 tz = timezone;
33105
33106 ;
33107 return 0;
33108 }
33109 _ACEOF
33110 rm -f conftest.$ac_objext
33111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33112 (eval $ac_compile) 2>conftest.er1
33113 ac_status=$?
33114 grep -v '^ *+' conftest.er1 >conftest.err
33115 rm -f conftest.er1
33116 cat conftest.err >&5
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); } &&
33119 { ac_try='test -z "$ac_c_werror_flag"
33120 || test ! -s conftest.err'
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; } &&
33126 { ac_try='test -s conftest.$ac_objext'
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; }; then
33132
33133 wx_cv_var_timezone=timezone
33134
33135 else
33136 echo "$as_me: failed program was:" >&5
33137 sed 's/^/| /' conftest.$ac_ext >&5
33138
33139
33140 cat >conftest.$ac_ext <<_ACEOF
33141 /* confdefs.h. */
33142 _ACEOF
33143 cat confdefs.h >>conftest.$ac_ext
33144 cat >>conftest.$ac_ext <<_ACEOF
33145 /* end confdefs.h. */
33146
33147 #include <time.h>
33148
33149 int
33150 main ()
33151 {
33152
33153 int tz;
33154 tz = _timezone;
33155
33156 ;
33157 return 0;
33158 }
33159 _ACEOF
33160 rm -f conftest.$ac_objext
33161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33162 (eval $ac_compile) 2>conftest.er1
33163 ac_status=$?
33164 grep -v '^ *+' conftest.er1 >conftest.err
33165 rm -f conftest.er1
33166 cat conftest.err >&5
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); } &&
33169 { ac_try='test -z "$ac_c_werror_flag"
33170 || test ! -s conftest.err'
33171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33172 (eval $ac_try) 2>&5
33173 ac_status=$?
33174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175 (exit $ac_status); }; } &&
33176 { ac_try='test -s conftest.$ac_objext'
33177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33178 (eval $ac_try) 2>&5
33179 ac_status=$?
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); }; }; then
33182
33183 wx_cv_var_timezone=_timezone
33184
33185 else
33186 echo "$as_me: failed program was:" >&5
33187 sed 's/^/| /' conftest.$ac_ext >&5
33188
33189
33190 cat >conftest.$ac_ext <<_ACEOF
33191 /* confdefs.h. */
33192 _ACEOF
33193 cat confdefs.h >>conftest.$ac_ext
33194 cat >>conftest.$ac_ext <<_ACEOF
33195 /* end confdefs.h. */
33196
33197 #include <time.h>
33198
33199 int
33200 main ()
33201 {
33202
33203 int tz;
33204 tz = __timezone;
33205
33206 ;
33207 return 0;
33208 }
33209 _ACEOF
33210 rm -f conftest.$ac_objext
33211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33212 (eval $ac_compile) 2>conftest.er1
33213 ac_status=$?
33214 grep -v '^ *+' conftest.er1 >conftest.err
33215 rm -f conftest.er1
33216 cat conftest.err >&5
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); } &&
33219 { ac_try='test -z "$ac_c_werror_flag"
33220 || test ! -s conftest.err'
33221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33222 (eval $ac_try) 2>&5
33223 ac_status=$?
33224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); }; } &&
33226 { ac_try='test -s conftest.$ac_objext'
33227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33228 (eval $ac_try) 2>&5
33229 ac_status=$?
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); }; }; then
33232
33233 wx_cv_var_timezone=__timezone
33234
33235 else
33236 echo "$as_me: failed program was:" >&5
33237 sed 's/^/| /' conftest.$ac_ext >&5
33238
33239
33240 if test "$USE_DOS" = 0 ; then
33241 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
33242 echo "$as_me: WARNING: no timezone variable" >&2;}
33243 fi
33244
33245
33246 fi
33247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33248
33249
33250 fi
33251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33252
33253
33254 fi
33255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33256
33257
33258 fi
33259 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
33260 echo "${ECHO_T}$wx_cv_var_timezone" >&6
33261
33262 if test "x$wx_cv_var_timezone" != x ; then
33263 cat >>confdefs.h <<_ACEOF
33264 #define WX_TIMEZONE $wx_cv_var_timezone
33265 _ACEOF
33266
33267 fi
33268
33269
33270 for ac_func in localtime
33271 do
33272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33273 echo "$as_me:$LINENO: checking for $ac_func" >&5
33274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33275 if eval "test \"\${$as_ac_var+set}\" = set"; then
33276 echo $ECHO_N "(cached) $ECHO_C" >&6
33277 else
33278 cat >conftest.$ac_ext <<_ACEOF
33279 /* confdefs.h. */
33280 _ACEOF
33281 cat confdefs.h >>conftest.$ac_ext
33282 cat >>conftest.$ac_ext <<_ACEOF
33283 /* end confdefs.h. */
33284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33286 #define $ac_func innocuous_$ac_func
33287
33288 /* System header to define __stub macros and hopefully few prototypes,
33289 which can conflict with char $ac_func (); below.
33290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33291 <limits.h> exists even on freestanding compilers. */
33292
33293 #ifdef __STDC__
33294 # include <limits.h>
33295 #else
33296 # include <assert.h>
33297 #endif
33298
33299 #undef $ac_func
33300
33301 /* Override any gcc2 internal prototype to avoid an error. */
33302 #ifdef __cplusplus
33303 extern "C"
33304 {
33305 #endif
33306 /* We use char because int might match the return type of a gcc2
33307 builtin and then its argument prototype would still apply. */
33308 char $ac_func ();
33309 /* The GNU C library defines this for functions which it implements
33310 to always fail with ENOSYS. Some functions are actually named
33311 something starting with __ and the normal name is an alias. */
33312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33313 choke me
33314 #else
33315 char (*f) () = $ac_func;
33316 #endif
33317 #ifdef __cplusplus
33318 }
33319 #endif
33320
33321 int
33322 main ()
33323 {
33324 return f != $ac_func;
33325 ;
33326 return 0;
33327 }
33328 _ACEOF
33329 rm -f conftest.$ac_objext conftest$ac_exeext
33330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33331 (eval $ac_link) 2>conftest.er1
33332 ac_status=$?
33333 grep -v '^ *+' conftest.er1 >conftest.err
33334 rm -f conftest.er1
33335 cat conftest.err >&5
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); } &&
33338 { ac_try='test -z "$ac_c_werror_flag"
33339 || test ! -s conftest.err'
33340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33341 (eval $ac_try) 2>&5
33342 ac_status=$?
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; } &&
33345 { ac_try='test -s conftest$ac_exeext'
33346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347 (eval $ac_try) 2>&5
33348 ac_status=$?
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); }; }; then
33351 eval "$as_ac_var=yes"
33352 else
33353 echo "$as_me: failed program was:" >&5
33354 sed 's/^/| /' conftest.$ac_ext >&5
33355
33356 eval "$as_ac_var=no"
33357 fi
33358 rm -f conftest.err conftest.$ac_objext \
33359 conftest$ac_exeext conftest.$ac_ext
33360 fi
33361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33363 if test `eval echo '${'$as_ac_var'}'` = yes; then
33364 cat >>confdefs.h <<_ACEOF
33365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33366 _ACEOF
33367
33368 fi
33369 done
33370
33371
33372 if test "$ac_cv_func_localtime" = "yes"; then
33373 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
33374 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
33375 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
33376 echo $ECHO_N "(cached) $ECHO_C" >&6
33377 else
33378
33379 cat >conftest.$ac_ext <<_ACEOF
33380 /* confdefs.h. */
33381 _ACEOF
33382 cat confdefs.h >>conftest.$ac_ext
33383 cat >>conftest.$ac_ext <<_ACEOF
33384 /* end confdefs.h. */
33385
33386 #include <time.h>
33387
33388 int
33389 main ()
33390 {
33391
33392 struct tm tm;
33393 tm.tm_gmtoff++;
33394
33395 ;
33396 return 0;
33397 }
33398 _ACEOF
33399 rm -f conftest.$ac_objext
33400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33401 (eval $ac_compile) 2>conftest.er1
33402 ac_status=$?
33403 grep -v '^ *+' conftest.er1 >conftest.err
33404 rm -f conftest.er1
33405 cat conftest.err >&5
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } &&
33408 { ac_try='test -z "$ac_c_werror_flag"
33409 || test ! -s conftest.err'
33410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411 (eval $ac_try) 2>&5
33412 ac_status=$?
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; } &&
33415 { ac_try='test -s conftest.$ac_objext'
33416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33417 (eval $ac_try) 2>&5
33418 ac_status=$?
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; }; then
33421
33422 wx_cv_struct_tm_has_gmtoff=yes
33423
33424 else
33425 echo "$as_me: failed program was:" >&5
33426 sed 's/^/| /' conftest.$ac_ext >&5
33427
33428 wx_cv_struct_tm_has_gmtoff=no
33429
33430 fi
33431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33432
33433 fi
33434 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
33435 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
33436 fi
33437
33438 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
33439 cat >>confdefs.h <<\_ACEOF
33440 #define WX_GMTOFF_IN_TM 1
33441 _ACEOF
33442
33443 fi
33444
33445
33446
33447 for ac_func in gettimeofday ftime
33448 do
33449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33450 echo "$as_me:$LINENO: checking for $ac_func" >&5
33451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33452 if eval "test \"\${$as_ac_var+set}\" = set"; then
33453 echo $ECHO_N "(cached) $ECHO_C" >&6
33454 else
33455 cat >conftest.$ac_ext <<_ACEOF
33456 /* confdefs.h. */
33457 _ACEOF
33458 cat confdefs.h >>conftest.$ac_ext
33459 cat >>conftest.$ac_ext <<_ACEOF
33460 /* end confdefs.h. */
33461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33463 #define $ac_func innocuous_$ac_func
33464
33465 /* System header to define __stub macros and hopefully few prototypes,
33466 which can conflict with char $ac_func (); below.
33467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33468 <limits.h> exists even on freestanding compilers. */
33469
33470 #ifdef __STDC__
33471 # include <limits.h>
33472 #else
33473 # include <assert.h>
33474 #endif
33475
33476 #undef $ac_func
33477
33478 /* Override any gcc2 internal prototype to avoid an error. */
33479 #ifdef __cplusplus
33480 extern "C"
33481 {
33482 #endif
33483 /* We use char because int might match the return type of a gcc2
33484 builtin and then its argument prototype would still apply. */
33485 char $ac_func ();
33486 /* The GNU C library defines this for functions which it implements
33487 to always fail with ENOSYS. Some functions are actually named
33488 something starting with __ and the normal name is an alias. */
33489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33490 choke me
33491 #else
33492 char (*f) () = $ac_func;
33493 #endif
33494 #ifdef __cplusplus
33495 }
33496 #endif
33497
33498 int
33499 main ()
33500 {
33501 return f != $ac_func;
33502 ;
33503 return 0;
33504 }
33505 _ACEOF
33506 rm -f conftest.$ac_objext conftest$ac_exeext
33507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33508 (eval $ac_link) 2>conftest.er1
33509 ac_status=$?
33510 grep -v '^ *+' conftest.er1 >conftest.err
33511 rm -f conftest.er1
33512 cat conftest.err >&5
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); } &&
33515 { ac_try='test -z "$ac_c_werror_flag"
33516 || test ! -s conftest.err'
33517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518 (eval $ac_try) 2>&5
33519 ac_status=$?
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); }; } &&
33522 { ac_try='test -s conftest$ac_exeext'
33523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524 (eval $ac_try) 2>&5
33525 ac_status=$?
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); }; }; then
33528 eval "$as_ac_var=yes"
33529 else
33530 echo "$as_me: failed program was:" >&5
33531 sed 's/^/| /' conftest.$ac_ext >&5
33532
33533 eval "$as_ac_var=no"
33534 fi
33535 rm -f conftest.err conftest.$ac_objext \
33536 conftest$ac_exeext conftest.$ac_ext
33537 fi
33538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33540 if test `eval echo '${'$as_ac_var'}'` = yes; then
33541 cat >>confdefs.h <<_ACEOF
33542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33543 _ACEOF
33544 break
33545 fi
33546 done
33547
33548
33549 if test "$ac_cv_func_gettimeofday" = "yes"; then
33550 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
33551 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
33552 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
33553 echo $ECHO_N "(cached) $ECHO_C" >&6
33554 else
33555
33556
33557
33558 ac_ext=cc
33559 ac_cpp='$CXXCPP $CPPFLAGS'
33560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33563
33564
33565 cat >conftest.$ac_ext <<_ACEOF
33566 /* confdefs.h. */
33567 _ACEOF
33568 cat confdefs.h >>conftest.$ac_ext
33569 cat >>conftest.$ac_ext <<_ACEOF
33570 /* end confdefs.h. */
33571
33572 #include <sys/time.h>
33573 #include <unistd.h>
33574
33575 int
33576 main ()
33577 {
33578
33579 struct timeval tv;
33580 gettimeofday(&tv, NULL);
33581
33582 ;
33583 return 0;
33584 }
33585 _ACEOF
33586 rm -f conftest.$ac_objext
33587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33588 (eval $ac_compile) 2>conftest.er1
33589 ac_status=$?
33590 grep -v '^ *+' conftest.er1 >conftest.err
33591 rm -f conftest.er1
33592 cat conftest.err >&5
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); } &&
33595 { ac_try='test -z "$ac_cxx_werror_flag"
33596 || test ! -s conftest.err'
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33599 ac_status=$?
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest.$ac_objext'
33603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604 (eval $ac_try) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; }; then
33608 wx_cv_func_gettimeofday_has_2_args=yes
33609 else
33610 echo "$as_me: failed program was:" >&5
33611 sed 's/^/| /' conftest.$ac_ext >&5
33612
33613 cat >conftest.$ac_ext <<_ACEOF
33614 /* confdefs.h. */
33615 _ACEOF
33616 cat confdefs.h >>conftest.$ac_ext
33617 cat >>conftest.$ac_ext <<_ACEOF
33618 /* end confdefs.h. */
33619
33620 #include <sys/time.h>
33621 #include <unistd.h>
33622
33623 int
33624 main ()
33625 {
33626
33627 struct timeval tv;
33628 gettimeofday(&tv);
33629
33630 ;
33631 return 0;
33632 }
33633 _ACEOF
33634 rm -f conftest.$ac_objext
33635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33636 (eval $ac_compile) 2>conftest.er1
33637 ac_status=$?
33638 grep -v '^ *+' conftest.er1 >conftest.err
33639 rm -f conftest.er1
33640 cat conftest.err >&5
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); } &&
33643 { ac_try='test -z "$ac_cxx_werror_flag"
33644 || test ! -s conftest.err'
33645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33646 (eval $ac_try) 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; } &&
33650 { ac_try='test -s conftest.$ac_objext'
33651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652 (eval $ac_try) 2>&5
33653 ac_status=$?
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; }; then
33656 wx_cv_func_gettimeofday_has_2_args=no
33657 else
33658 echo "$as_me: failed program was:" >&5
33659 sed 's/^/| /' conftest.$ac_ext >&5
33660
33661
33662 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
33663 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
33664 wx_cv_func_gettimeofday_has_2_args=unknown
33665
33666
33667 fi
33668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33669
33670 fi
33671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33672 ac_ext=c
33673 ac_cpp='$CPP $CPPFLAGS'
33674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33677
33678
33679 fi
33680 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
33681 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
33682
33683 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
33684 cat >>confdefs.h <<\_ACEOF
33685 #define WX_GETTIMEOFDAY_NO_TZ 1
33686 _ACEOF
33687
33688 fi
33689 fi
33690
33691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
33692 fi
33693
33694
33695 if test "$wxUSE_SOCKETS" = "yes"; then
33696 if test "$wxUSE_MGL" = "1"; then
33697 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
33698 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
33699 wxUSE_SOCKETS="no"
33700 fi
33701 fi
33702
33703 if test "$wxUSE_SOCKETS" = "yes"; then
33704 if test "$TOOLKIT" != "MSW"; then
33705 echo "$as_me:$LINENO: checking for socket" >&5
33706 echo $ECHO_N "checking for socket... $ECHO_C" >&6
33707 if test "${ac_cv_func_socket+set}" = set; then
33708 echo $ECHO_N "(cached) $ECHO_C" >&6
33709 else
33710 cat >conftest.$ac_ext <<_ACEOF
33711 /* confdefs.h. */
33712 _ACEOF
33713 cat confdefs.h >>conftest.$ac_ext
33714 cat >>conftest.$ac_ext <<_ACEOF
33715 /* end confdefs.h. */
33716 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
33717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33718 #define socket innocuous_socket
33719
33720 /* System header to define __stub macros and hopefully few prototypes,
33721 which can conflict with char socket (); below.
33722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33723 <limits.h> exists even on freestanding compilers. */
33724
33725 #ifdef __STDC__
33726 # include <limits.h>
33727 #else
33728 # include <assert.h>
33729 #endif
33730
33731 #undef socket
33732
33733 /* Override any gcc2 internal prototype to avoid an error. */
33734 #ifdef __cplusplus
33735 extern "C"
33736 {
33737 #endif
33738 /* We use char because int might match the return type of a gcc2
33739 builtin and then its argument prototype would still apply. */
33740 char socket ();
33741 /* The GNU C library defines this for functions which it implements
33742 to always fail with ENOSYS. Some functions are actually named
33743 something starting with __ and the normal name is an alias. */
33744 #if defined (__stub_socket) || defined (__stub___socket)
33745 choke me
33746 #else
33747 char (*f) () = socket;
33748 #endif
33749 #ifdef __cplusplus
33750 }
33751 #endif
33752
33753 int
33754 main ()
33755 {
33756 return f != socket;
33757 ;
33758 return 0;
33759 }
33760 _ACEOF
33761 rm -f conftest.$ac_objext conftest$ac_exeext
33762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33763 (eval $ac_link) 2>conftest.er1
33764 ac_status=$?
33765 grep -v '^ *+' conftest.er1 >conftest.err
33766 rm -f conftest.er1
33767 cat conftest.err >&5
33768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769 (exit $ac_status); } &&
33770 { ac_try='test -z "$ac_c_werror_flag"
33771 || test ! -s conftest.err'
33772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773 (eval $ac_try) 2>&5
33774 ac_status=$?
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); }; } &&
33777 { ac_try='test -s conftest$ac_exeext'
33778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779 (eval $ac_try) 2>&5
33780 ac_status=$?
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); }; }; then
33783 ac_cv_func_socket=yes
33784 else
33785 echo "$as_me: failed program was:" >&5
33786 sed 's/^/| /' conftest.$ac_ext >&5
33787
33788 ac_cv_func_socket=no
33789 fi
33790 rm -f conftest.err conftest.$ac_objext \
33791 conftest$ac_exeext conftest.$ac_ext
33792 fi
33793 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33794 echo "${ECHO_T}$ac_cv_func_socket" >&6
33795 if test $ac_cv_func_socket = yes; then
33796 :
33797 else
33798
33799 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
33800 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33801 if test "${ac_cv_lib_socket_socket+set}" = set; then
33802 echo $ECHO_N "(cached) $ECHO_C" >&6
33803 else
33804 ac_check_lib_save_LIBS=$LIBS
33805 LIBS="-lsocket $LIBS"
33806 cat >conftest.$ac_ext <<_ACEOF
33807 /* confdefs.h. */
33808 _ACEOF
33809 cat confdefs.h >>conftest.$ac_ext
33810 cat >>conftest.$ac_ext <<_ACEOF
33811 /* end confdefs.h. */
33812
33813 /* Override any gcc2 internal prototype to avoid an error. */
33814 #ifdef __cplusplus
33815 extern "C"
33816 #endif
33817 /* We use char because int might match the return type of a gcc2
33818 builtin and then its argument prototype would still apply. */
33819 char socket ();
33820 int
33821 main ()
33822 {
33823 socket ();
33824 ;
33825 return 0;
33826 }
33827 _ACEOF
33828 rm -f conftest.$ac_objext conftest$ac_exeext
33829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33830 (eval $ac_link) 2>conftest.er1
33831 ac_status=$?
33832 grep -v '^ *+' conftest.er1 >conftest.err
33833 rm -f conftest.er1
33834 cat conftest.err >&5
33835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836 (exit $ac_status); } &&
33837 { ac_try='test -z "$ac_c_werror_flag"
33838 || test ! -s conftest.err'
33839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33840 (eval $ac_try) 2>&5
33841 ac_status=$?
33842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843 (exit $ac_status); }; } &&
33844 { ac_try='test -s conftest$ac_exeext'
33845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33846 (eval $ac_try) 2>&5
33847 ac_status=$?
33848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849 (exit $ac_status); }; }; then
33850 ac_cv_lib_socket_socket=yes
33851 else
33852 echo "$as_me: failed program was:" >&5
33853 sed 's/^/| /' conftest.$ac_ext >&5
33854
33855 ac_cv_lib_socket_socket=no
33856 fi
33857 rm -f conftest.err conftest.$ac_objext \
33858 conftest$ac_exeext conftest.$ac_ext
33859 LIBS=$ac_check_lib_save_LIBS
33860 fi
33861 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33862 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33863 if test $ac_cv_lib_socket_socket = yes; then
33864 if test "$INET_LINK" != " -lsocket"; then
33865 INET_LINK="$INET_LINK -lsocket"
33866 fi
33867 else
33868
33869 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
33870 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
33871 wxUSE_SOCKETS=no
33872
33873
33874 fi
33875
33876
33877
33878 fi
33879
33880 fi
33881 fi
33882
33883 if test "$wxUSE_SOCKETS" = "yes" ; then
33884 if test "$TOOLKIT" != "MSW"; then
33885 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33886 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33887 if test "${wx_cv_type_getsockname3+set}" = set; then
33888 echo $ECHO_N "(cached) $ECHO_C" >&6
33889 else
33890
33891 cat >conftest.$ac_ext <<_ACEOF
33892 /* confdefs.h. */
33893 _ACEOF
33894 cat confdefs.h >>conftest.$ac_ext
33895 cat >>conftest.$ac_ext <<_ACEOF
33896 /* end confdefs.h. */
33897
33898 #include <sys/types.h>
33899 #include <sys/socket.h>
33900
33901 int
33902 main ()
33903 {
33904
33905 socklen_t len;
33906 getsockname(0, 0, &len);
33907
33908 ;
33909 return 0;
33910 }
33911 _ACEOF
33912 rm -f conftest.$ac_objext
33913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33914 (eval $ac_compile) 2>conftest.er1
33915 ac_status=$?
33916 grep -v '^ *+' conftest.er1 >conftest.err
33917 rm -f conftest.er1
33918 cat conftest.err >&5
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
33921 { ac_try='test -z "$ac_c_werror_flag"
33922 || test ! -s conftest.err'
33923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924 (eval $ac_try) 2>&5
33925 ac_status=$?
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); }; } &&
33928 { ac_try='test -s conftest.$ac_objext'
33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930 (eval $ac_try) 2>&5
33931 ac_status=$?
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; }; then
33934 wx_cv_type_getsockname3=socklen_t
33935 else
33936 echo "$as_me: failed program was:" >&5
33937 sed 's/^/| /' conftest.$ac_ext >&5
33938
33939
33940 CFLAGS_OLD="$CFLAGS"
33941 if test "$GCC" = yes ; then
33942 CFLAGS="$CFLAGS -Werror"
33943 fi
33944
33945 cat >conftest.$ac_ext <<_ACEOF
33946 /* confdefs.h. */
33947 _ACEOF
33948 cat confdefs.h >>conftest.$ac_ext
33949 cat >>conftest.$ac_ext <<_ACEOF
33950 /* end confdefs.h. */
33951
33952 #include <sys/types.h>
33953 #include <sys/socket.h>
33954
33955 int
33956 main ()
33957 {
33958
33959 size_t len;
33960 getsockname(0, 0, &len);
33961
33962 ;
33963 return 0;
33964 }
33965 _ACEOF
33966 rm -f conftest.$ac_objext
33967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33968 (eval $ac_compile) 2>conftest.er1
33969 ac_status=$?
33970 grep -v '^ *+' conftest.er1 >conftest.err
33971 rm -f conftest.er1
33972 cat conftest.err >&5
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); } &&
33975 { ac_try='test -z "$ac_c_werror_flag"
33976 || test ! -s conftest.err'
33977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33978 (eval $ac_try) 2>&5
33979 ac_status=$?
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; } &&
33982 { ac_try='test -s conftest.$ac_objext'
33983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33984 (eval $ac_try) 2>&5
33985 ac_status=$?
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); }; }; then
33988 wx_cv_type_getsockname3=size_t
33989 else
33990 echo "$as_me: failed program was:" >&5
33991 sed 's/^/| /' conftest.$ac_ext >&5
33992
33993 cat >conftest.$ac_ext <<_ACEOF
33994 /* confdefs.h. */
33995 _ACEOF
33996 cat confdefs.h >>conftest.$ac_ext
33997 cat >>conftest.$ac_ext <<_ACEOF
33998 /* end confdefs.h. */
33999
34000 #include <sys/types.h>
34001 #include <sys/socket.h>
34002
34003 int
34004 main ()
34005 {
34006
34007 int len;
34008 getsockname(0, 0, &len);
34009
34010 ;
34011 return 0;
34012 }
34013 _ACEOF
34014 rm -f conftest.$ac_objext
34015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34016 (eval $ac_compile) 2>conftest.er1
34017 ac_status=$?
34018 grep -v '^ *+' conftest.er1 >conftest.err
34019 rm -f conftest.er1
34020 cat conftest.err >&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); } &&
34023 { ac_try='test -z "$ac_c_werror_flag"
34024 || test ! -s conftest.err'
34025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026 (eval $ac_try) 2>&5
34027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; } &&
34030 { ac_try='test -s conftest.$ac_objext'
34031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032 (eval $ac_try) 2>&5
34033 ac_status=$?
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; }; then
34036 wx_cv_type_getsockname3=int
34037 else
34038 echo "$as_me: failed program was:" >&5
34039 sed 's/^/| /' conftest.$ac_ext >&5
34040
34041 wx_cv_type_getsockname3=unknown
34042
34043 fi
34044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34045
34046 fi
34047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34048
34049 CFLAGS="$CFLAGS_OLD"
34050
34051
34052 fi
34053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34054
34055 fi
34056 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
34057 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
34058
34059 if test "$wx_cv_type_getsockname3" = "unknown"; then
34060 wxUSE_SOCKETS=no
34061 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
34062 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
34063 else
34064 cat >>confdefs.h <<_ACEOF
34065 #define SOCKLEN_T $wx_cv_type_getsockname3
34066 _ACEOF
34067
34068 fi
34069 fi
34070 fi
34071
34072 if test "$wxUSE_SOCKETS" = "yes" ; then
34073 cat >>confdefs.h <<\_ACEOF
34074 #define wxUSE_SOCKETS 1
34075 _ACEOF
34076
34077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
34078 fi
34079
34080 if test "$wxUSE_PROTOCOL" = "yes"; then
34081 if test "$wxUSE_SOCKETS" != "yes"; then
34082 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
34083 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
34084 wxUSE_PROTOCOL=no
34085 fi
34086 fi
34087
34088 if test "$wxUSE_PROTOCOL" = "yes"; then
34089 cat >>confdefs.h <<\_ACEOF
34090 #define wxUSE_PROTOCOL 1
34091 _ACEOF
34092
34093
34094 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
34095 cat >>confdefs.h <<\_ACEOF
34096 #define wxUSE_PROTOCOL_HTTP 1
34097 _ACEOF
34098
34099 fi
34100 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
34101 cat >>confdefs.h <<\_ACEOF
34102 #define wxUSE_PROTOCOL_FTP 1
34103 _ACEOF
34104
34105 fi
34106 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
34107 cat >>confdefs.h <<\_ACEOF
34108 #define wxUSE_PROTOCOL_FILE 1
34109 _ACEOF
34110
34111 fi
34112 else
34113 if test "$wxUSE_FS_INET" = "yes"; then
34114 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
34115 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
34116 wxUSE_FS_INET="no"
34117 fi
34118 fi
34119
34120 if test "$wxUSE_URL" = "yes"; then
34121 if test "$wxUSE_PROTOCOL" != "yes"; then
34122 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
34123 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
34124 wxUSE_URL=no
34125 fi
34126 if test "$wxUSE_URL" = "yes"; then
34127 cat >>confdefs.h <<\_ACEOF
34128 #define wxUSE_URL 1
34129 _ACEOF
34130
34131 fi
34132 fi
34133
34134 if test "$wxUSE_FS_INET" = "yes"; then
34135 cat >>confdefs.h <<\_ACEOF
34136 #define wxUSE_FS_INET 1
34137 _ACEOF
34138
34139 fi
34140
34141
34142 if test "$wxUSE_GUI" = "yes"; then
34143
34144 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
34145 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
34146 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
34147 wxUSE_JOYSTICK=no
34148 fi
34149
34150 if test "$TOOLKIT" != "MSW"; then
34151 if test "$wxUSE_JOYSTICK" = "yes"; then
34152
34153 for ac_header in linux/joystick.h
34154 do
34155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34157 echo "$as_me:$LINENO: checking for $ac_header" >&5
34158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34160 echo $ECHO_N "(cached) $ECHO_C" >&6
34161 fi
34162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34164 else
34165 # Is the header compilable?
34166 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34168 cat >conftest.$ac_ext <<_ACEOF
34169 /* confdefs.h. */
34170 _ACEOF
34171 cat confdefs.h >>conftest.$ac_ext
34172 cat >>conftest.$ac_ext <<_ACEOF
34173 /* end confdefs.h. */
34174 $ac_includes_default
34175 #include <$ac_header>
34176 _ACEOF
34177 rm -f conftest.$ac_objext
34178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34179 (eval $ac_compile) 2>conftest.er1
34180 ac_status=$?
34181 grep -v '^ *+' conftest.er1 >conftest.err
34182 rm -f conftest.er1
34183 cat conftest.err >&5
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); } &&
34186 { ac_try='test -z "$ac_c_werror_flag"
34187 || test ! -s conftest.err'
34188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34189 (eval $ac_try) 2>&5
34190 ac_status=$?
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; } &&
34193 { ac_try='test -s conftest.$ac_objext'
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34196 ac_status=$?
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; }; then
34199 ac_header_compiler=yes
34200 else
34201 echo "$as_me: failed program was:" >&5
34202 sed 's/^/| /' conftest.$ac_ext >&5
34203
34204 ac_header_compiler=no
34205 fi
34206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34207 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34208 echo "${ECHO_T}$ac_header_compiler" >&6
34209
34210 # Is the header present?
34211 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34213 cat >conftest.$ac_ext <<_ACEOF
34214 /* confdefs.h. */
34215 _ACEOF
34216 cat confdefs.h >>conftest.$ac_ext
34217 cat >>conftest.$ac_ext <<_ACEOF
34218 /* end confdefs.h. */
34219 #include <$ac_header>
34220 _ACEOF
34221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34223 ac_status=$?
34224 grep -v '^ *+' conftest.er1 >conftest.err
34225 rm -f conftest.er1
34226 cat conftest.err >&5
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); } >/dev/null; then
34229 if test -s conftest.err; then
34230 ac_cpp_err=$ac_c_preproc_warn_flag
34231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34232 else
34233 ac_cpp_err=
34234 fi
34235 else
34236 ac_cpp_err=yes
34237 fi
34238 if test -z "$ac_cpp_err"; then
34239 ac_header_preproc=yes
34240 else
34241 echo "$as_me: failed program was:" >&5
34242 sed 's/^/| /' conftest.$ac_ext >&5
34243
34244 ac_header_preproc=no
34245 fi
34246 rm -f conftest.err conftest.$ac_ext
34247 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34248 echo "${ECHO_T}$ac_header_preproc" >&6
34249
34250 # So? What about this header?
34251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34252 yes:no: )
34253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34257 ac_header_preproc=yes
34258 ;;
34259 no:yes:* )
34260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
34268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34272 (
34273 cat <<\_ASBOX
34274 ## ----------------------------------------- ##
34275 ## Report this to wx-dev@lists.wxwindows.org ##
34276 ## ----------------------------------------- ##
34277 _ASBOX
34278 ) |
34279 sed "s/^/$as_me: WARNING: /" >&2
34280 ;;
34281 esac
34282 echo "$as_me:$LINENO: checking for $ac_header" >&5
34283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34285 echo $ECHO_N "(cached) $ECHO_C" >&6
34286 else
34287 eval "$as_ac_Header=\$ac_header_preproc"
34288 fi
34289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34291
34292 fi
34293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34294 cat >>confdefs.h <<_ACEOF
34295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34296 _ACEOF
34297
34298 fi
34299
34300 done
34301
34302 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
34303 wxUSE_JOYSTICK=no
34304 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
34305 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
34306 fi
34307 fi
34308 fi
34309
34310 if test "$wxUSE_JOYSTICK" = "yes"; then
34311 cat >>confdefs.h <<\_ACEOF
34312 #define wxUSE_JOYSTICK 1
34313 _ACEOF
34314
34315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
34316 fi
34317 fi
34318
34319
34320 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34321
34322 HAVE_DL_FUNCS=0
34323 HAVE_SHL_FUNCS=0
34324 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34325 if test "$USE_DARWIN" = 1; then
34326 HAVE_DL_FUNCS=1
34327 else
34328
34329 for ac_func in dlopen
34330 do
34331 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34332 echo "$as_me:$LINENO: checking for $ac_func" >&5
34333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34334 if eval "test \"\${$as_ac_var+set}\" = set"; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34336 else
34337 cat >conftest.$ac_ext <<_ACEOF
34338 /* confdefs.h. */
34339 _ACEOF
34340 cat confdefs.h >>conftest.$ac_ext
34341 cat >>conftest.$ac_ext <<_ACEOF
34342 /* end confdefs.h. */
34343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34345 #define $ac_func innocuous_$ac_func
34346
34347 /* System header to define __stub macros and hopefully few prototypes,
34348 which can conflict with char $ac_func (); below.
34349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34350 <limits.h> exists even on freestanding compilers. */
34351
34352 #ifdef __STDC__
34353 # include <limits.h>
34354 #else
34355 # include <assert.h>
34356 #endif
34357
34358 #undef $ac_func
34359
34360 /* Override any gcc2 internal prototype to avoid an error. */
34361 #ifdef __cplusplus
34362 extern "C"
34363 {
34364 #endif
34365 /* We use char because int might match the return type of a gcc2
34366 builtin and then its argument prototype would still apply. */
34367 char $ac_func ();
34368 /* The GNU C library defines this for functions which it implements
34369 to always fail with ENOSYS. Some functions are actually named
34370 something starting with __ and the normal name is an alias. */
34371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34372 choke me
34373 #else
34374 char (*f) () = $ac_func;
34375 #endif
34376 #ifdef __cplusplus
34377 }
34378 #endif
34379
34380 int
34381 main ()
34382 {
34383 return f != $ac_func;
34384 ;
34385 return 0;
34386 }
34387 _ACEOF
34388 rm -f conftest.$ac_objext conftest$ac_exeext
34389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34390 (eval $ac_link) 2>conftest.er1
34391 ac_status=$?
34392 grep -v '^ *+' conftest.er1 >conftest.err
34393 rm -f conftest.er1
34394 cat conftest.err >&5
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); } &&
34397 { ac_try='test -z "$ac_c_werror_flag"
34398 || test ! -s conftest.err'
34399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400 (eval $ac_try) 2>&5
34401 ac_status=$?
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); }; } &&
34404 { ac_try='test -s conftest$ac_exeext'
34405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34406 (eval $ac_try) 2>&5
34407 ac_status=$?
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); }; }; then
34410 eval "$as_ac_var=yes"
34411 else
34412 echo "$as_me: failed program was:" >&5
34413 sed 's/^/| /' conftest.$ac_ext >&5
34414
34415 eval "$as_ac_var=no"
34416 fi
34417 rm -f conftest.err conftest.$ac_objext \
34418 conftest$ac_exeext conftest.$ac_ext
34419 fi
34420 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34421 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34422 if test `eval echo '${'$as_ac_var'}'` = yes; then
34423 cat >>confdefs.h <<_ACEOF
34424 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34425 _ACEOF
34426
34427 cat >>confdefs.h <<\_ACEOF
34428 #define HAVE_DLOPEN 1
34429 _ACEOF
34430
34431 HAVE_DL_FUNCS=1
34432
34433 else
34434
34435 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34436 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34437 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34438 echo $ECHO_N "(cached) $ECHO_C" >&6
34439 else
34440 ac_check_lib_save_LIBS=$LIBS
34441 LIBS="-ldl $LIBS"
34442 cat >conftest.$ac_ext <<_ACEOF
34443 /* confdefs.h. */
34444 _ACEOF
34445 cat confdefs.h >>conftest.$ac_ext
34446 cat >>conftest.$ac_ext <<_ACEOF
34447 /* end confdefs.h. */
34448
34449 /* Override any gcc2 internal prototype to avoid an error. */
34450 #ifdef __cplusplus
34451 extern "C"
34452 #endif
34453 /* We use char because int might match the return type of a gcc2
34454 builtin and then its argument prototype would still apply. */
34455 char dlopen ();
34456 int
34457 main ()
34458 {
34459 dlopen ();
34460 ;
34461 return 0;
34462 }
34463 _ACEOF
34464 rm -f conftest.$ac_objext conftest$ac_exeext
34465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34466 (eval $ac_link) 2>conftest.er1
34467 ac_status=$?
34468 grep -v '^ *+' conftest.er1 >conftest.err
34469 rm -f conftest.er1
34470 cat conftest.err >&5
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); } &&
34473 { ac_try='test -z "$ac_c_werror_flag"
34474 || test ! -s conftest.err'
34475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34476 (eval $ac_try) 2>&5
34477 ac_status=$?
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); }; } &&
34480 { ac_try='test -s conftest$ac_exeext'
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; }; then
34486 ac_cv_lib_dl_dlopen=yes
34487 else
34488 echo "$as_me: failed program was:" >&5
34489 sed 's/^/| /' conftest.$ac_ext >&5
34490
34491 ac_cv_lib_dl_dlopen=no
34492 fi
34493 rm -f conftest.err conftest.$ac_objext \
34494 conftest$ac_exeext conftest.$ac_ext
34495 LIBS=$ac_check_lib_save_LIBS
34496 fi
34497 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34498 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34499 if test $ac_cv_lib_dl_dlopen = yes; then
34500
34501 cat >>confdefs.h <<\_ACEOF
34502 #define HAVE_DLOPEN 1
34503 _ACEOF
34504
34505 HAVE_DL_FUNCS=1
34506 DL_LINK=" -ldl$DL_LINK"
34507
34508 else
34509
34510
34511 for ac_func in shl_load
34512 do
34513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34514 echo "$as_me:$LINENO: checking for $ac_func" >&5
34515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34516 if eval "test \"\${$as_ac_var+set}\" = set"; then
34517 echo $ECHO_N "(cached) $ECHO_C" >&6
34518 else
34519 cat >conftest.$ac_ext <<_ACEOF
34520 /* confdefs.h. */
34521 _ACEOF
34522 cat confdefs.h >>conftest.$ac_ext
34523 cat >>conftest.$ac_ext <<_ACEOF
34524 /* end confdefs.h. */
34525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34527 #define $ac_func innocuous_$ac_func
34528
34529 /* System header to define __stub macros and hopefully few prototypes,
34530 which can conflict with char $ac_func (); below.
34531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34532 <limits.h> exists even on freestanding compilers. */
34533
34534 #ifdef __STDC__
34535 # include <limits.h>
34536 #else
34537 # include <assert.h>
34538 #endif
34539
34540 #undef $ac_func
34541
34542 /* Override any gcc2 internal prototype to avoid an error. */
34543 #ifdef __cplusplus
34544 extern "C"
34545 {
34546 #endif
34547 /* We use char because int might match the return type of a gcc2
34548 builtin and then its argument prototype would still apply. */
34549 char $ac_func ();
34550 /* The GNU C library defines this for functions which it implements
34551 to always fail with ENOSYS. Some functions are actually named
34552 something starting with __ and the normal name is an alias. */
34553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34554 choke me
34555 #else
34556 char (*f) () = $ac_func;
34557 #endif
34558 #ifdef __cplusplus
34559 }
34560 #endif
34561
34562 int
34563 main ()
34564 {
34565 return f != $ac_func;
34566 ;
34567 return 0;
34568 }
34569 _ACEOF
34570 rm -f conftest.$ac_objext conftest$ac_exeext
34571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34572 (eval $ac_link) 2>conftest.er1
34573 ac_status=$?
34574 grep -v '^ *+' conftest.er1 >conftest.err
34575 rm -f conftest.er1
34576 cat conftest.err >&5
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); } &&
34579 { ac_try='test -z "$ac_c_werror_flag"
34580 || test ! -s conftest.err'
34581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34582 (eval $ac_try) 2>&5
34583 ac_status=$?
34584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585 (exit $ac_status); }; } &&
34586 { ac_try='test -s conftest$ac_exeext'
34587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34588 (eval $ac_try) 2>&5
34589 ac_status=$?
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); }; }; then
34592 eval "$as_ac_var=yes"
34593 else
34594 echo "$as_me: failed program was:" >&5
34595 sed 's/^/| /' conftest.$ac_ext >&5
34596
34597 eval "$as_ac_var=no"
34598 fi
34599 rm -f conftest.err conftest.$ac_objext \
34600 conftest$ac_exeext conftest.$ac_ext
34601 fi
34602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34604 if test `eval echo '${'$as_ac_var'}'` = yes; then
34605 cat >>confdefs.h <<_ACEOF
34606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34607 _ACEOF
34608
34609 cat >>confdefs.h <<\_ACEOF
34610 #define HAVE_SHL_LOAD 1
34611 _ACEOF
34612
34613 HAVE_SHL_FUNCS=1
34614
34615 else
34616
34617 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34618 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34619 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34620 echo $ECHO_N "(cached) $ECHO_C" >&6
34621 else
34622 ac_check_lib_save_LIBS=$LIBS
34623 LIBS="-lshl_load $LIBS"
34624 cat >conftest.$ac_ext <<_ACEOF
34625 /* confdefs.h. */
34626 _ACEOF
34627 cat confdefs.h >>conftest.$ac_ext
34628 cat >>conftest.$ac_ext <<_ACEOF
34629 /* end confdefs.h. */
34630
34631 /* Override any gcc2 internal prototype to avoid an error. */
34632 #ifdef __cplusplus
34633 extern "C"
34634 #endif
34635 /* We use char because int might match the return type of a gcc2
34636 builtin and then its argument prototype would still apply. */
34637 char dld ();
34638 int
34639 main ()
34640 {
34641 dld ();
34642 ;
34643 return 0;
34644 }
34645 _ACEOF
34646 rm -f conftest.$ac_objext conftest$ac_exeext
34647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34648 (eval $ac_link) 2>conftest.er1
34649 ac_status=$?
34650 grep -v '^ *+' conftest.er1 >conftest.err
34651 rm -f conftest.er1
34652 cat conftest.err >&5
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); } &&
34655 { ac_try='test -z "$ac_c_werror_flag"
34656 || test ! -s conftest.err'
34657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34658 (eval $ac_try) 2>&5
34659 ac_status=$?
34660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661 (exit $ac_status); }; } &&
34662 { ac_try='test -s conftest$ac_exeext'
34663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34664 (eval $ac_try) 2>&5
34665 ac_status=$?
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); }; }; then
34668 ac_cv_lib_shl_load_dld=yes
34669 else
34670 echo "$as_me: failed program was:" >&5
34671 sed 's/^/| /' conftest.$ac_ext >&5
34672
34673 ac_cv_lib_shl_load_dld=no
34674 fi
34675 rm -f conftest.err conftest.$ac_objext \
34676 conftest$ac_exeext conftest.$ac_ext
34677 LIBS=$ac_check_lib_save_LIBS
34678 fi
34679 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34680 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34681 if test $ac_cv_lib_shl_load_dld = yes; then
34682
34683 HAVE_SHL_FUNCS=1
34684 DL_LINK=" -ldld$DL_LINK"
34685
34686 fi
34687
34688
34689 fi
34690 done
34691
34692
34693 fi
34694
34695
34696 fi
34697 done
34698
34699
34700 if test "$HAVE_DL_FUNCS" = 1; then
34701
34702 for ac_func in dlerror
34703 do
34704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34705 echo "$as_me:$LINENO: checking for $ac_func" >&5
34706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34707 if eval "test \"\${$as_ac_var+set}\" = set"; then
34708 echo $ECHO_N "(cached) $ECHO_C" >&6
34709 else
34710 cat >conftest.$ac_ext <<_ACEOF
34711 /* confdefs.h. */
34712 _ACEOF
34713 cat confdefs.h >>conftest.$ac_ext
34714 cat >>conftest.$ac_ext <<_ACEOF
34715 /* end confdefs.h. */
34716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34718 #define $ac_func innocuous_$ac_func
34719
34720 /* System header to define __stub macros and hopefully few prototypes,
34721 which can conflict with char $ac_func (); below.
34722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34723 <limits.h> exists even on freestanding compilers. */
34724
34725 #ifdef __STDC__
34726 # include <limits.h>
34727 #else
34728 # include <assert.h>
34729 #endif
34730
34731 #undef $ac_func
34732
34733 /* Override any gcc2 internal prototype to avoid an error. */
34734 #ifdef __cplusplus
34735 extern "C"
34736 {
34737 #endif
34738 /* We use char because int might match the return type of a gcc2
34739 builtin and then its argument prototype would still apply. */
34740 char $ac_func ();
34741 /* The GNU C library defines this for functions which it implements
34742 to always fail with ENOSYS. Some functions are actually named
34743 something starting with __ and the normal name is an alias. */
34744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34745 choke me
34746 #else
34747 char (*f) () = $ac_func;
34748 #endif
34749 #ifdef __cplusplus
34750 }
34751 #endif
34752
34753 int
34754 main ()
34755 {
34756 return f != $ac_func;
34757 ;
34758 return 0;
34759 }
34760 _ACEOF
34761 rm -f conftest.$ac_objext conftest$ac_exeext
34762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34763 (eval $ac_link) 2>conftest.er1
34764 ac_status=$?
34765 grep -v '^ *+' conftest.er1 >conftest.err
34766 rm -f conftest.er1
34767 cat conftest.err >&5
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } &&
34770 { ac_try='test -z "$ac_c_werror_flag"
34771 || test ! -s conftest.err'
34772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773 (eval $ac_try) 2>&5
34774 ac_status=$?
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); }; } &&
34777 { ac_try='test -s conftest$ac_exeext'
34778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779 (eval $ac_try) 2>&5
34780 ac_status=$?
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); }; }; then
34783 eval "$as_ac_var=yes"
34784 else
34785 echo "$as_me: failed program was:" >&5
34786 sed 's/^/| /' conftest.$ac_ext >&5
34787
34788 eval "$as_ac_var=no"
34789 fi
34790 rm -f conftest.err conftest.$ac_objext \
34791 conftest$ac_exeext conftest.$ac_ext
34792 fi
34793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34795 if test `eval echo '${'$as_ac_var'}'` = yes; then
34796 cat >>confdefs.h <<_ACEOF
34797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34798 _ACEOF
34799 cat >>confdefs.h <<\_ACEOF
34800 #define HAVE_DLERROR 1
34801 _ACEOF
34802
34803 else
34804
34805 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34806 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34807 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34808 echo $ECHO_N "(cached) $ECHO_C" >&6
34809 else
34810 ac_check_lib_save_LIBS=$LIBS
34811 LIBS="-ldl $LIBS"
34812 cat >conftest.$ac_ext <<_ACEOF
34813 /* confdefs.h. */
34814 _ACEOF
34815 cat confdefs.h >>conftest.$ac_ext
34816 cat >>conftest.$ac_ext <<_ACEOF
34817 /* end confdefs.h. */
34818
34819 /* Override any gcc2 internal prototype to avoid an error. */
34820 #ifdef __cplusplus
34821 extern "C"
34822 #endif
34823 /* We use char because int might match the return type of a gcc2
34824 builtin and then its argument prototype would still apply. */
34825 char dlerror ();
34826 int
34827 main ()
34828 {
34829 dlerror ();
34830 ;
34831 return 0;
34832 }
34833 _ACEOF
34834 rm -f conftest.$ac_objext conftest$ac_exeext
34835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34836 (eval $ac_link) 2>conftest.er1
34837 ac_status=$?
34838 grep -v '^ *+' conftest.er1 >conftest.err
34839 rm -f conftest.er1
34840 cat conftest.err >&5
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); } &&
34843 { ac_try='test -z "$ac_c_werror_flag"
34844 || test ! -s conftest.err'
34845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34846 (eval $ac_try) 2>&5
34847 ac_status=$?
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); }; } &&
34850 { ac_try='test -s conftest$ac_exeext'
34851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34852 (eval $ac_try) 2>&5
34853 ac_status=$?
34854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855 (exit $ac_status); }; }; then
34856 ac_cv_lib_dl_dlerror=yes
34857 else
34858 echo "$as_me: failed program was:" >&5
34859 sed 's/^/| /' conftest.$ac_ext >&5
34860
34861 ac_cv_lib_dl_dlerror=no
34862 fi
34863 rm -f conftest.err conftest.$ac_objext \
34864 conftest$ac_exeext conftest.$ac_ext
34865 LIBS=$ac_check_lib_save_LIBS
34866 fi
34867 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34868 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34869 if test $ac_cv_lib_dl_dlerror = yes; then
34870 cat >>confdefs.h <<\_ACEOF
34871 #define HAVE_DLERROR 1
34872 _ACEOF
34873
34874 fi
34875
34876
34877
34878 fi
34879 done
34880
34881 fi
34882 fi
34883
34884 if test "$HAVE_DL_FUNCS" = 0; then
34885 if test "$HAVE_SHL_FUNCS" = 0; then
34886 if test "$USE_UNIX" = 1; then
34887 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34888 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34889 wxUSE_DYNAMIC_LOADER=no
34890 wxUSE_DYNLIB_CLASS=no
34891 else
34892 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34893 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34894 fi
34895 fi
34896 fi
34897 fi
34898 fi
34899
34900 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34901 cat >>confdefs.h <<\_ACEOF
34902 #define wxUSE_DYNAMIC_LOADER 1
34903 _ACEOF
34904
34905 fi
34906 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34907 cat >>confdefs.h <<\_ACEOF
34908 #define wxUSE_DYNLIB_CLASS 1
34909 _ACEOF
34910
34911 fi
34912
34913
34914 if test "$wxUSE_FONTMAP" = "yes" ; then
34915 cat >>confdefs.h <<\_ACEOF
34916 #define wxUSE_FONTMAP 1
34917 _ACEOF
34918
34919 fi
34920
34921 if test "$wxUSE_UNICODE" = "yes" ; then
34922 cat >>confdefs.h <<\_ACEOF
34923 #define wxUSE_UNICODE 1
34924 _ACEOF
34925
34926
34927 if test "$USE_WIN32" != 1; then
34928 wxUSE_UNICODE_MSLU=no
34929 fi
34930
34931 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
34932 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
34933 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
34934 if test "${ac_cv_lib_unicows_main+set}" = set; then
34935 echo $ECHO_N "(cached) $ECHO_C" >&6
34936 else
34937 ac_check_lib_save_LIBS=$LIBS
34938 LIBS="-lunicows $LIBS"
34939 cat >conftest.$ac_ext <<_ACEOF
34940 /* confdefs.h. */
34941 _ACEOF
34942 cat confdefs.h >>conftest.$ac_ext
34943 cat >>conftest.$ac_ext <<_ACEOF
34944 /* end confdefs.h. */
34945
34946
34947 int
34948 main ()
34949 {
34950 main ();
34951 ;
34952 return 0;
34953 }
34954 _ACEOF
34955 rm -f conftest.$ac_objext conftest$ac_exeext
34956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34957 (eval $ac_link) 2>conftest.er1
34958 ac_status=$?
34959 grep -v '^ *+' conftest.er1 >conftest.err
34960 rm -f conftest.er1
34961 cat conftest.err >&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); } &&
34964 { ac_try='test -z "$ac_c_werror_flag"
34965 || test ! -s conftest.err'
34966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967 (eval $ac_try) 2>&5
34968 ac_status=$?
34969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970 (exit $ac_status); }; } &&
34971 { ac_try='test -s conftest$ac_exeext'
34972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34973 (eval $ac_try) 2>&5
34974 ac_status=$?
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); }; }; then
34977 ac_cv_lib_unicows_main=yes
34978 else
34979 echo "$as_me: failed program was:" >&5
34980 sed 's/^/| /' conftest.$ac_ext >&5
34981
34982 ac_cv_lib_unicows_main=no
34983 fi
34984 rm -f conftest.err conftest.$ac_objext \
34985 conftest$ac_exeext conftest.$ac_ext
34986 LIBS=$ac_check_lib_save_LIBS
34987 fi
34988 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
34989 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
34990 if test $ac_cv_lib_unicows_main = yes; then
34991
34992 cat >>confdefs.h <<\_ACEOF
34993 #define wxUSE_UNICODE_MSLU 1
34994 _ACEOF
34995
34996
34997 else
34998
34999 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35000 Applications will only run on Windows NT/2000/XP!" >&5
35001 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35002 Applications will only run on Windows NT/2000/XP!" >&2;}
35003 wxUSE_UNICODE_MSLU=no
35004
35005 fi
35006
35007 fi
35008 fi
35009
35010 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35011 cat >>confdefs.h <<\_ACEOF
35012 #define wxUSE_EXPERIMENTAL_PRINTF 1
35013 _ACEOF
35014
35015 fi
35016
35017
35018 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35019 cat >>confdefs.h <<\_ACEOF
35020 #define wxUSE_POSTSCRIPT 1
35021 _ACEOF
35022
35023 fi
35024
35025 cat >>confdefs.h <<\_ACEOF
35026 #define wxUSE_AFM_FOR_POSTSCRIPT 1
35027 _ACEOF
35028
35029
35030 cat >>confdefs.h <<\_ACEOF
35031 #define wxUSE_NORMALIZED_PS_FONTS 1
35032 _ACEOF
35033
35034
35035
35036 if test "$wxUSE_CONSTRAINTS" = "yes"; then
35037 cat >>confdefs.h <<\_ACEOF
35038 #define wxUSE_CONSTRAINTS 1
35039 _ACEOF
35040
35041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35042 fi
35043
35044 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35045 cat >>confdefs.h <<\_ACEOF
35046 #define wxUSE_MDI_ARCHITECTURE 1
35047 _ACEOF
35048
35049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
35050 fi
35051
35052 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
35053 cat >>confdefs.h <<\_ACEOF
35054 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
35055 _ACEOF
35056
35057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35058 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35060 fi
35061 fi
35062
35063 if test "$wxUSE_HELP" = "yes"; then
35064 cat >>confdefs.h <<\_ACEOF
35065 #define wxUSE_HELP 1
35066 _ACEOF
35067
35068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
35069
35070 if test "$wxUSE_MSW" = 1; then
35071 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
35072 cat >>confdefs.h <<\_ACEOF
35073 #define wxUSE_MS_HTML_HELP 1
35074 _ACEOF
35075
35076 fi
35077 fi
35078
35079 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35080 if test "$wxUSE_HTML" = "yes"; then
35081 cat >>confdefs.h <<\_ACEOF
35082 #define wxUSE_WXHTML_HELP 1
35083 _ACEOF
35084
35085 else
35086 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35087 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
35088 wxUSE_WXHTML_HELP=no
35089 fi
35090 fi
35091 fi
35092
35093 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35094 if test "$wxUSE_CONSTRAINTS" != "yes"; then
35095 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35096 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
35097 else
35098 cat >>confdefs.h <<\_ACEOF
35099 #define wxUSE_PRINTING_ARCHITECTURE 1
35100 _ACEOF
35101
35102 fi
35103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35104 fi
35105
35106 if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35107 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35108 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35109 { (exit 1); exit 1; }; }
35110 fi
35111
35112
35113 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
35114 -o "$wxUSE_CLIPBOARD" = "yes" \
35115 -o "$wxUSE_OLE" = "yes" \
35116 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35117
35118 for ac_header in ole2.h
35119 do
35120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35122 echo "$as_me:$LINENO: checking for $ac_header" >&5
35123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35125 echo $ECHO_N "(cached) $ECHO_C" >&6
35126 fi
35127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35129 else
35130 # Is the header compilable?
35131 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35133 cat >conftest.$ac_ext <<_ACEOF
35134 /* confdefs.h. */
35135 _ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h. */
35139 $ac_includes_default
35140 #include <$ac_header>
35141 _ACEOF
35142 rm -f conftest.$ac_objext
35143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35144 (eval $ac_compile) 2>conftest.er1
35145 ac_status=$?
35146 grep -v '^ *+' conftest.er1 >conftest.err
35147 rm -f conftest.er1
35148 cat conftest.err >&5
35149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150 (exit $ac_status); } &&
35151 { ac_try='test -z "$ac_c_werror_flag"
35152 || test ! -s conftest.err'
35153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154 (eval $ac_try) 2>&5
35155 ac_status=$?
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); }; } &&
35158 { ac_try='test -s conftest.$ac_objext'
35159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160 (eval $ac_try) 2>&5
35161 ac_status=$?
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); }; }; then
35164 ac_header_compiler=yes
35165 else
35166 echo "$as_me: failed program was:" >&5
35167 sed 's/^/| /' conftest.$ac_ext >&5
35168
35169 ac_header_compiler=no
35170 fi
35171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35172 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35173 echo "${ECHO_T}$ac_header_compiler" >&6
35174
35175 # Is the header present?
35176 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35178 cat >conftest.$ac_ext <<_ACEOF
35179 /* confdefs.h. */
35180 _ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h. */
35184 #include <$ac_header>
35185 _ACEOF
35186 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35188 ac_status=$?
35189 grep -v '^ *+' conftest.er1 >conftest.err
35190 rm -f conftest.er1
35191 cat conftest.err >&5
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); } >/dev/null; then
35194 if test -s conftest.err; then
35195 ac_cpp_err=$ac_c_preproc_warn_flag
35196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35197 else
35198 ac_cpp_err=
35199 fi
35200 else
35201 ac_cpp_err=yes
35202 fi
35203 if test -z "$ac_cpp_err"; then
35204 ac_header_preproc=yes
35205 else
35206 echo "$as_me: failed program was:" >&5
35207 sed 's/^/| /' conftest.$ac_ext >&5
35208
35209 ac_header_preproc=no
35210 fi
35211 rm -f conftest.err conftest.$ac_ext
35212 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35213 echo "${ECHO_T}$ac_header_preproc" >&6
35214
35215 # So? What about this header?
35216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35217 yes:no: )
35218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35222 ac_header_preproc=yes
35223 ;;
35224 no:yes:* )
35225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35228 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35232 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35237 (
35238 cat <<\_ASBOX
35239 ## ----------------------------------------- ##
35240 ## Report this to wx-dev@lists.wxwindows.org ##
35241 ## ----------------------------------------- ##
35242 _ASBOX
35243 ) |
35244 sed "s/^/$as_me: WARNING: /" >&2
35245 ;;
35246 esac
35247 echo "$as_me:$LINENO: checking for $ac_header" >&5
35248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35250 echo $ECHO_N "(cached) $ECHO_C" >&6
35251 else
35252 eval "$as_ac_Header=\$ac_header_preproc"
35253 fi
35254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35256
35257 fi
35258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35259 cat >>confdefs.h <<_ACEOF
35260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35261 _ACEOF
35262
35263 fi
35264
35265 done
35266
35267
35268 if test "$ac_cv_header_ole2_h" = "yes" ; then
35269 if test "$GCC" = yes ; then
35270
35271
35272 ac_ext=cc
35273 ac_cpp='$CXXCPP $CPPFLAGS'
35274 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35275 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35276 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35277
35278
35279 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
35280 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
35281 cat >conftest.$ac_ext <<_ACEOF
35282 /* confdefs.h. */
35283 _ACEOF
35284 cat confdefs.h >>conftest.$ac_ext
35285 cat >>conftest.$ac_ext <<_ACEOF
35286 /* end confdefs.h. */
35287 #include <windows.h>
35288 #include <ole2.h>
35289 int
35290 main ()
35291 {
35292
35293 ;
35294 return 0;
35295 }
35296 _ACEOF
35297 rm -f conftest.$ac_objext
35298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35299 (eval $ac_compile) 2>conftest.er1
35300 ac_status=$?
35301 grep -v '^ *+' conftest.er1 >conftest.err
35302 rm -f conftest.er1
35303 cat conftest.err >&5
35304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35305 (exit $ac_status); } &&
35306 { ac_try='test -z "$ac_cxx_werror_flag"
35307 || test ! -s conftest.err'
35308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35309 (eval $ac_try) 2>&5
35310 ac_status=$?
35311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312 (exit $ac_status); }; } &&
35313 { ac_try='test -s conftest.$ac_objext'
35314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35315 (eval $ac_try) 2>&5
35316 ac_status=$?
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); }; }; then
35319 echo "$as_me:$LINENO: result: no" >&5
35320 echo "${ECHO_T}no" >&6
35321 else
35322 echo "$as_me: failed program was:" >&5
35323 sed 's/^/| /' conftest.$ac_ext >&5
35324
35325 echo "$as_me:$LINENO: result: yes" >&5
35326 echo "${ECHO_T}yes" >&6
35327 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
35328 fi
35329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35330 ac_ext=c
35331 ac_cpp='$CPP $CPPFLAGS'
35332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35335
35336 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
35337 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
35338 if test "$wxUSE_OLE" = "yes" ; then
35339 cat >>confdefs.h <<\_ACEOF
35340 #define wxUSE_OLE 1
35341 _ACEOF
35342
35343 fi
35344 fi
35345
35346 if test "$wxUSE_DATAOBJ" = "yes" ; then
35347 cat >>confdefs.h <<\_ACEOF
35348 #define wxUSE_DATAOBJ 1
35349 _ACEOF
35350
35351 fi
35352 else
35353 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
35354 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
35355
35356 wxUSE_CLIPBOARD=no
35357 wxUSE_DRAG_AND_DROP=no
35358 wxUSE_DATAOBJ=no
35359 wxUSE_OLE=no
35360 fi
35361
35362 if test "$wxUSE_METAFILE" = "yes"; then
35363 cat >>confdefs.h <<\_ACEOF
35364 #define wxUSE_METAFILE 1
35365 _ACEOF
35366
35367
35368 cat >>confdefs.h <<\_ACEOF
35369 #define wxUSE_ENH_METAFILE 1
35370 _ACEOF
35371
35372 fi
35373 fi
35374
35375 if test "$wxUSE_IPC" = "yes"; then
35376 if test "$wxUSE_SOCKETS" != "yes"; then
35377 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
35378 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
35379 fi
35380
35381 cat >>confdefs.h <<\_ACEOF
35382 #define wxUSE_IPC 1
35383 _ACEOF
35384
35385 fi
35386
35387 if test "$wxUSE_CLIPBOARD" = "yes"; then
35388 if test "$wxUSE_MGL" = 1; then
35389 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
35390 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
35391 wxUSE_CLIPBOARD=no
35392 fi
35393
35394 if test "$wxUSE_CLIPBOARD" = "yes"; then
35395 cat >>confdefs.h <<\_ACEOF
35396 #define wxUSE_CLIPBOARD 1
35397 _ACEOF
35398
35399
35400 cat >>confdefs.h <<\_ACEOF
35401 #define wxUSE_DATAOBJ 1
35402 _ACEOF
35403
35404 fi
35405 fi
35406
35407 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
35408 if test "$wxUSE_GTK" = 1; then
35409 if test "$WXGTK12" != 1; then
35410 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
35411 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
35412 wxUSE_DRAG_AND_DROP=no
35413 fi
35414 fi
35415
35416 if test "$wxUSE_MOTIF" = 1; then
35417 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
35418 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
35419 wxUSE_DRAG_AND_DROP=no
35420 fi
35421
35422 if test "$wxUSE_X11" = 1; then
35423 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
35424 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
35425 wxUSE_DRAG_AND_DROP=no
35426 fi
35427
35428 if test "$wxUSE_MGL" = 1; then
35429 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
35430 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
35431 wxUSE_DRAG_AND_DROP=no
35432 fi
35433
35434 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
35435 cat >>confdefs.h <<\_ACEOF
35436 #define wxUSE_DRAG_AND_DROP 1
35437 _ACEOF
35438
35439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
35440 fi
35441
35442 fi
35443
35444 if test "$wxUSE_SPLINES" = "yes" ; then
35445 cat >>confdefs.h <<\_ACEOF
35446 #define wxUSE_SPLINES 1
35447 _ACEOF
35448
35449 fi
35450
35451
35452 USES_CONTROLS=0
35453 if test "$wxUSE_CONTROLS" = "yes"; then
35454 USES_CONTROLS=1
35455 fi
35456
35457 if test "$wxUSE_ACCEL" = "yes"; then
35458 cat >>confdefs.h <<\_ACEOF
35459 #define wxUSE_ACCEL 1
35460 _ACEOF
35461
35462 USES_CONTROLS=1
35463 fi
35464
35465 if test "$wxUSE_BUTTON" = "yes"; then
35466 cat >>confdefs.h <<\_ACEOF
35467 #define wxUSE_BUTTON 1
35468 _ACEOF
35469
35470 USES_CONTROLS=1
35471 fi
35472
35473 if test "$wxUSE_BMPBUTTON" = "yes"; then
35474 cat >>confdefs.h <<\_ACEOF
35475 #define wxUSE_BMPBUTTON 1
35476 _ACEOF
35477
35478 USES_CONTROLS=1
35479 fi
35480
35481 if test "$wxUSE_CALCTRL" = "yes"; then
35482 cat >>confdefs.h <<\_ACEOF
35483 #define wxUSE_CALENDARCTRL 1
35484 _ACEOF
35485
35486 USES_CONTROLS=1
35487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
35488 fi
35489
35490 if test "$wxUSE_CARET" = "yes"; then
35491 cat >>confdefs.h <<\_ACEOF
35492 #define wxUSE_CARET 1
35493 _ACEOF
35494
35495 USES_CONTROLS=1
35496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
35497 fi
35498
35499 if test "$wxUSE_COMBOBOX" = "yes"; then
35500 cat >>confdefs.h <<\_ACEOF
35501 #define wxUSE_COMBOBOX 1
35502 _ACEOF
35503
35504 USES_CONTROLS=1
35505 fi
35506
35507 if test "$wxUSE_CHOICE" = "yes"; then
35508 cat >>confdefs.h <<\_ACEOF
35509 #define wxUSE_CHOICE 1
35510 _ACEOF
35511
35512 USES_CONTROLS=1
35513 fi
35514
35515 if test "$wxUSE_CHECKBOX" = "yes"; then
35516 cat >>confdefs.h <<\_ACEOF
35517 #define wxUSE_CHECKBOX 1
35518 _ACEOF
35519
35520 USES_CONTROLS=1
35521 fi
35522
35523 if test "$wxUSE_CHECKLST" = "yes"; then
35524 cat >>confdefs.h <<\_ACEOF
35525 #define wxUSE_CHECKLISTBOX 1
35526 _ACEOF
35527
35528 USES_CONTROLS=1
35529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
35530 fi
35531
35532 if test "$wxUSE_DISPLAY" = "yes"; then
35533 cat >>confdefs.h <<\_ACEOF
35534 #define wxUSE_DISPLAY 1
35535 _ACEOF
35536
35537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
35538 fi
35539
35540 if test "$wxUSE_GAUGE" = "yes"; then
35541 cat >>confdefs.h <<\_ACEOF
35542 #define wxUSE_GAUGE 1
35543 _ACEOF
35544
35545 USES_CONTROLS=1
35546 fi
35547
35548 if test "$wxUSE_GRID" = "yes"; then
35549 cat >>confdefs.h <<\_ACEOF
35550 #define wxUSE_GRID 1
35551 _ACEOF
35552
35553 USES_CONTROLS=1
35554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
35555 fi
35556
35557 if test "$wxUSE_IMAGLIST" = "yes"; then
35558 cat >>confdefs.h <<\_ACEOF
35559 #define wxUSE_IMAGLIST 1
35560 _ACEOF
35561
35562 fi
35563
35564 if test "$wxUSE_LISTBOOK" = "yes"; then
35565 cat >>confdefs.h <<\_ACEOF
35566 #define wxUSE_LISTBOOK 1
35567 _ACEOF
35568
35569 USES_CONTROLS=1
35570 fi
35571
35572 if test "$wxUSE_LISTBOX" = "yes"; then
35573 cat >>confdefs.h <<\_ACEOF
35574 #define wxUSE_LISTBOX 1
35575 _ACEOF
35576
35577 USES_CONTROLS=1
35578 fi
35579
35580 if test "$wxUSE_LISTCTRL" = "yes"; then
35581 if test "$wxUSE_IMAGLIST" = "yes"; then
35582 cat >>confdefs.h <<\_ACEOF
35583 #define wxUSE_LISTCTRL 1
35584 _ACEOF
35585
35586 USES_CONTROLS=1
35587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
35588 else
35589 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
35590 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
35591 fi
35592 fi
35593
35594 if test "$wxUSE_NOTEBOOK" = "yes"; then
35595 cat >>confdefs.h <<\_ACEOF
35596 #define wxUSE_NOTEBOOK 1
35597 _ACEOF
35598
35599 USES_CONTROLS=1
35600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
35601 fi
35602
35603
35604 if test "$wxUSE_RADIOBOX" = "yes"; then
35605 cat >>confdefs.h <<\_ACEOF
35606 #define wxUSE_RADIOBOX 1
35607 _ACEOF
35608
35609 USES_CONTROLS=1
35610 fi
35611
35612 if test "$wxUSE_RADIOBTN" = "yes"; then
35613 cat >>confdefs.h <<\_ACEOF
35614 #define wxUSE_RADIOBTN 1
35615 _ACEOF
35616
35617 USES_CONTROLS=1
35618 fi
35619
35620 if test "$wxUSE_SASH" = "yes"; then
35621 cat >>confdefs.h <<\_ACEOF
35622 #define wxUSE_SASH 1
35623 _ACEOF
35624
35625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
35626 fi
35627
35628 if test "$wxUSE_SCROLLBAR" = "yes"; then
35629 cat >>confdefs.h <<\_ACEOF
35630 #define wxUSE_SCROLLBAR 1
35631 _ACEOF
35632
35633 USES_CONTROLS=1
35634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
35635 fi
35636
35637 if test "$wxUSE_SLIDER" = "yes"; then
35638 cat >>confdefs.h <<\_ACEOF
35639 #define wxUSE_SLIDER 1
35640 _ACEOF
35641
35642 USES_CONTROLS=1
35643 fi
35644
35645 if test "$wxUSE_SPINBTN" = "yes"; then
35646 cat >>confdefs.h <<\_ACEOF
35647 #define wxUSE_SPINBTN 1
35648 _ACEOF
35649
35650 USES_CONTROLS=1
35651 fi
35652
35653 if test "$wxUSE_SPINCTRL" = "yes"; then
35654 cat >>confdefs.h <<\_ACEOF
35655 #define wxUSE_SPINCTRL 1
35656 _ACEOF
35657
35658 USES_CONTROLS=1
35659 fi
35660
35661 if test "$wxUSE_SPLITTER" = "yes"; then
35662 cat >>confdefs.h <<\_ACEOF
35663 #define wxUSE_SPLITTER 1
35664 _ACEOF
35665
35666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
35667 fi
35668
35669 if test "$wxUSE_STATBMP" = "yes"; then
35670 cat >>confdefs.h <<\_ACEOF
35671 #define wxUSE_STATBMP 1
35672 _ACEOF
35673
35674 USES_CONTROLS=1
35675 fi
35676
35677 if test "$wxUSE_STATBOX" = "yes"; then
35678 cat >>confdefs.h <<\_ACEOF
35679 #define wxUSE_STATBOX 1
35680 _ACEOF
35681
35682 USES_CONTROLS=1
35683 fi
35684
35685 if test "$wxUSE_STATTEXT" = "yes"; then
35686 cat >>confdefs.h <<\_ACEOF
35687 #define wxUSE_STATTEXT 1
35688 _ACEOF
35689
35690 USES_CONTROLS=1
35691 fi
35692
35693 if test "$wxUSE_STATLINE" = "yes"; then
35694 cat >>confdefs.h <<\_ACEOF
35695 #define wxUSE_STATLINE 1
35696 _ACEOF
35697
35698 USES_CONTROLS=1
35699 fi
35700
35701 if test "$wxUSE_STATUSBAR" = "yes"; then
35702 cat >>confdefs.h <<\_ACEOF
35703 #define wxUSE_STATUSBAR 1
35704 _ACEOF
35705
35706 USES_CONTROLS=1
35707
35708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
35709 fi
35710
35711 if test "$wxUSE_TABDIALOG" = "yes"; then
35712 cat >>confdefs.h <<\_ACEOF
35713 #define wxUSE_TAB_DIALOG 1
35714 _ACEOF
35715
35716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
35717 fi
35718
35719 if test "$wxUSE_TEXTCTRL" = "yes"; then
35720 cat >>confdefs.h <<\_ACEOF
35721 #define wxUSE_TEXTCTRL 1
35722 _ACEOF
35723
35724 USES_CONTROLS=1
35725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
35726 fi
35727
35728 if test "$wxUSE_TOGGLEBTN" = "yes"; then
35729 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
35730 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
35731 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
35732 wxUSE_TOGGLEBTN=no
35733 fi
35734 if test "$wxUSE_UNIVERSAL" = "yes"; then
35735 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
35736 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
35737 wxUSE_TOGGLEBTN=no
35738 fi
35739
35740 if test "$wxUSE_TOGGLEBTN" = "yes"; then
35741 cat >>confdefs.h <<\_ACEOF
35742 #define wxUSE_TOGGLEBTN 1
35743 _ACEOF
35744
35745 USES_CONTROLS=1
35746 fi
35747 fi
35748
35749 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
35750 cat >>confdefs.h <<\_ACEOF
35751 #define wxUSE_TOOLBAR_SIMPLE 1
35752 _ACEOF
35753
35754 wxUSE_TOOLBAR="yes"
35755 USES_CONTROLS=1
35756 fi
35757
35758 if test "$wxUSE_TOOLBAR" = "yes"; then
35759 cat >>confdefs.h <<\_ACEOF
35760 #define wxUSE_TOOLBAR 1
35761 _ACEOF
35762
35763 USES_CONTROLS=1
35764
35765 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
35766 wxUSE_TOOLBAR_NATIVE="yes"
35767 fi
35768
35769 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
35770 cat >>confdefs.h <<\_ACEOF
35771 #define wxUSE_TOOLBAR_NATIVE 1
35772 _ACEOF
35773
35774 USES_CONTROLS=1
35775 fi
35776
35777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
35778 fi
35779
35780 if test "$wxUSE_TOOLTIPS" = "yes"; then
35781 if test "$wxUSE_MOTIF" = 1; then
35782 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
35783 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
35784 else
35785 if test "$wxUSE_UNIVERSAL" = "yes"; then
35786 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
35787 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
35788 else
35789 cat >>confdefs.h <<\_ACEOF
35790 #define wxUSE_TOOLTIPS 1
35791 _ACEOF
35792
35793 fi
35794 fi
35795 fi
35796
35797 if test "$wxUSE_TREECTRL" = "yes"; then
35798 if test "$wxUSE_IMAGLIST" = "yes"; then
35799 cat >>confdefs.h <<\_ACEOF
35800 #define wxUSE_TREECTRL 1
35801 _ACEOF
35802
35803 USES_CONTROLS=1
35804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
35805 else
35806 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
35807 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
35808 fi
35809 fi
35810
35811 if test "$wxUSE_POPUPWIN" = "yes"; then
35812 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
35813 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
35814 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
35815 else
35816 if test "$wxUSE_PM" = 1; then
35817 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
35818 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
35819 else
35820 cat >>confdefs.h <<\_ACEOF
35821 #define wxUSE_POPUPWIN 1
35822 _ACEOF
35823
35824
35825 USES_CONTROLS=1
35826 fi
35827 fi
35828 fi
35829
35830 if test "$wxUSE_TIPWINDOW" = "yes"; then
35831 if test "$wxUSE_PM" = 1; then
35832 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
35833 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
35834 else
35835 cat >>confdefs.h <<\_ACEOF
35836 #define wxUSE_TIPWINDOW 1
35837 _ACEOF
35838
35839 fi
35840 fi
35841
35842 if test "$USES_CONTROLS" = 1; then
35843 cat >>confdefs.h <<\_ACEOF
35844 #define wxUSE_CONTROLS 1
35845 _ACEOF
35846
35847 fi
35848
35849
35850 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
35851 cat >>confdefs.h <<\_ACEOF
35852 #define wxUSE_ACCESSIBILITY 1
35853 _ACEOF
35854
35855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
35856 fi
35857
35858 if test "$wxUSE_DRAGIMAGE" = "yes"; then
35859 cat >>confdefs.h <<\_ACEOF
35860 #define wxUSE_DRAGIMAGE 1
35861 _ACEOF
35862
35863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
35864 fi
35865
35866 if test "$wxUSE_EXCEPTIONS" = "yes"; then
35867 cat >>confdefs.h <<\_ACEOF
35868 #define wxUSE_EXCEPTIONS 1
35869 _ACEOF
35870
35871 fi
35872
35873 USE_HTML=0
35874 if test "$wxUSE_HTML" = "yes"; then
35875 cat >>confdefs.h <<\_ACEOF
35876 #define wxUSE_HTML 1
35877 _ACEOF
35878
35879 USE_HTML=1
35880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
35881 fi
35882
35883 if test "$wxUSE_MENUS" = "yes"; then
35884 cat >>confdefs.h <<\_ACEOF
35885 #define wxUSE_MENUS 1
35886 _ACEOF
35887
35888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
35889 fi
35890
35891 if test "$wxUSE_METAFILE" = "yes"; then
35892 cat >>confdefs.h <<\_ACEOF
35893 #define wxUSE_METAFILE 1
35894 _ACEOF
35895
35896 fi
35897
35898 if test "$wxUSE_MIMETYPE" = "yes"; then
35899 cat >>confdefs.h <<\_ACEOF
35900 #define wxUSE_MIMETYPE 1
35901 _ACEOF
35902
35903 fi
35904
35905 if test "$wxUSE_MINIFRAME" = "yes"; then
35906 cat >>confdefs.h <<\_ACEOF
35907 #define wxUSE_MINIFRAME 1
35908 _ACEOF
35909
35910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
35911 fi
35912
35913 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
35914 cat >>confdefs.h <<\_ACEOF
35915 #define wxUSE_SYSTEM_OPTIONS 1
35916 _ACEOF
35917
35918 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
35919 "$TOOLKIT" = "MOTIF"; then
35920 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
35921 fi
35922 fi
35923
35924
35925 if test "$wxUSE_VALIDATORS" = "yes"; then
35926 cat >>confdefs.h <<\_ACEOF
35927 #define wxUSE_VALIDATORS 1
35928 _ACEOF
35929
35930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
35931 fi
35932
35933 if test "$wxUSE_PALETTE" = "yes" ; then
35934 cat >>confdefs.h <<\_ACEOF
35935 #define wxUSE_PALETTE 1
35936 _ACEOF
35937
35938 fi
35939
35940 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
35941 LIBS=" -lunicows $LIBS"
35942 fi
35943
35944
35945 if test "$wxUSE_IMAGE" = "yes" ; then
35946 cat >>confdefs.h <<\_ACEOF
35947 #define wxUSE_IMAGE 1
35948 _ACEOF
35949
35950
35951 if test "$wxUSE_GIF" = "yes" ; then
35952 cat >>confdefs.h <<\_ACEOF
35953 #define wxUSE_GIF 1
35954 _ACEOF
35955
35956 fi
35957
35958 if test "$wxUSE_PCX" = "yes" ; then
35959 cat >>confdefs.h <<\_ACEOF
35960 #define wxUSE_PCX 1
35961 _ACEOF
35962
35963 fi
35964
35965 if test "$wxUSE_IFF" = "yes" ; then
35966 cat >>confdefs.h <<\_ACEOF
35967 #define wxUSE_IFF 1
35968 _ACEOF
35969
35970 fi
35971
35972 if test "$wxUSE_PNM" = "yes" ; then
35973 cat >>confdefs.h <<\_ACEOF
35974 #define wxUSE_PNM 1
35975 _ACEOF
35976
35977 fi
35978
35979 if test "$wxUSE_XPM" = "yes" ; then
35980 cat >>confdefs.h <<\_ACEOF
35981 #define wxUSE_XPM 1
35982 _ACEOF
35983
35984 fi
35985
35986 if test "$wxUSE_ICO_CUR" = "yes" ; then
35987 cat >>confdefs.h <<\_ACEOF
35988 #define wxUSE_ICO_CUR 1
35989 _ACEOF
35990
35991 fi
35992 fi
35993
35994
35995 if test "$wxUSE_CHOICEDLG" = "yes"; then
35996 cat >>confdefs.h <<\_ACEOF
35997 #define wxUSE_CHOICEDLG 1
35998 _ACEOF
35999
36000 fi
36001
36002 if test "$wxUSE_COLOURDLG" = "yes"; then
36003 cat >>confdefs.h <<\_ACEOF
36004 #define wxUSE_COLOURDLG 1
36005 _ACEOF
36006
36007 fi
36008
36009 if test "$wxUSE_FILEDLG" = "yes"; then
36010 cat >>confdefs.h <<\_ACEOF
36011 #define wxUSE_FILEDLG 1
36012 _ACEOF
36013
36014 fi
36015
36016 if test "$wxUSE_FINDREPLDLG" = "yes"; then
36017 cat >>confdefs.h <<\_ACEOF
36018 #define wxUSE_FINDREPLDLG 1
36019 _ACEOF
36020
36021 fi
36022
36023 if test "$wxUSE_FONTDLG" = "yes"; then
36024 cat >>confdefs.h <<\_ACEOF
36025 #define wxUSE_FONTDLG 1
36026 _ACEOF
36027
36028 fi
36029
36030 if test "$wxUSE_DIRDLG" = "yes"; then
36031 if test "$wxUSE_TREECTRL" != "yes"; then
36032 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36033 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
36034 else
36035 cat >>confdefs.h <<\_ACEOF
36036 #define wxUSE_DIRDLG 1
36037 _ACEOF
36038
36039 fi
36040 fi
36041
36042 if test "$wxUSE_MSGDLG" = "yes"; then
36043 cat >>confdefs.h <<\_ACEOF
36044 #define wxUSE_MSGDLG 1
36045 _ACEOF
36046
36047 fi
36048
36049 if test "$wxUSE_NUMBERDLG" = "yes"; then
36050 cat >>confdefs.h <<\_ACEOF
36051 #define wxUSE_NUMBERDLG 1
36052 _ACEOF
36053
36054 fi
36055
36056 if test "$wxUSE_PROGRESSDLG" = "yes"; then
36057 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36058 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36059 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
36060 else
36061 cat >>confdefs.h <<\_ACEOF
36062 #define wxUSE_PROGRESSDLG 1
36063 _ACEOF
36064
36065 fi
36066 fi
36067
36068 if test "$wxUSE_SPLASH" = "yes"; then
36069 cat >>confdefs.h <<\_ACEOF
36070 #define wxUSE_SPLASH 1
36071 _ACEOF
36072
36073 fi
36074
36075 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36076 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36077 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36078 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
36079 else
36080 cat >>confdefs.h <<\_ACEOF
36081 #define wxUSE_STARTUP_TIPS 1
36082 _ACEOF
36083
36084 fi
36085 fi
36086
36087 if test "$wxUSE_TEXTDLG" = "yes"; then
36088 cat >>confdefs.h <<\_ACEOF
36089 #define wxUSE_TEXTDLG 1
36090 _ACEOF
36091
36092 fi
36093
36094 if test "$wxUSE_WIZARDDLG" = "yes"; then
36095 cat >>confdefs.h <<\_ACEOF
36096 #define wxUSE_WIZARDDLG 1
36097 _ACEOF
36098
36099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36100 fi
36101
36102
36103 if test "$cross_compiling" = "yes"; then
36104 OSINFO="\"$host\""
36105 else
36106 OSINFO=`uname -s -r -m`
36107 OSINFO="\"$OSINFO\""
36108 fi
36109
36110 cat >>confdefs.h <<_ACEOF
36111 #define WXWIN_OS_DESCRIPTION $OSINFO
36112 _ACEOF
36113
36114
36115
36116 if test "x$prefix" != "xNONE"; then
36117 wxPREFIX=$prefix
36118 else
36119 wxPREFIX=$ac_default_prefix
36120 fi
36121
36122 cat >>confdefs.h <<_ACEOF
36123 #define wxINSTALL_PREFIX "$wxPREFIX"
36124 _ACEOF
36125
36126
36127 top_builddir_wxconfig=`pwd`
36128
36129
36130
36131 CORE_BASE_LIBS="net base"
36132 CORE_GUI_LIBS="adv core"
36133
36134 if test "$wxUSE_XML" = "yes" ; then
36135 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36136 fi
36137 if test "$wxUSE_ODBC" != "no" ; then
36138 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36139 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
36140 fi
36141 if test "$wxUSE_HTML" = "yes" ; then
36142 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36143 fi
36144
36145 if test "$wxUSE_GUI" != "yes"; then
36146 CORE_GUI_LIBS=""
36147 fi
36148
36149
36150
36151
36152
36153
36154
36155
36156 if test "$wxUSE_MAC" = 1 ; then
36157 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
36158 fi
36159 if test "$wxUSE_COCOA" = 1 ; then
36160 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
36161 fi
36162
36163
36164 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
36165
36166 have_cos=0
36167 have_floor=0
36168
36169 for ac_func in cos
36170 do
36171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36172 echo "$as_me:$LINENO: checking for $ac_func" >&5
36173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36174 if eval "test \"\${$as_ac_var+set}\" = set"; then
36175 echo $ECHO_N "(cached) $ECHO_C" >&6
36176 else
36177 cat >conftest.$ac_ext <<_ACEOF
36178 /* confdefs.h. */
36179 _ACEOF
36180 cat confdefs.h >>conftest.$ac_ext
36181 cat >>conftest.$ac_ext <<_ACEOF
36182 /* end confdefs.h. */
36183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36185 #define $ac_func innocuous_$ac_func
36186
36187 /* System header to define __stub macros and hopefully few prototypes,
36188 which can conflict with char $ac_func (); below.
36189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36190 <limits.h> exists even on freestanding compilers. */
36191
36192 #ifdef __STDC__
36193 # include <limits.h>
36194 #else
36195 # include <assert.h>
36196 #endif
36197
36198 #undef $ac_func
36199
36200 /* Override any gcc2 internal prototype to avoid an error. */
36201 #ifdef __cplusplus
36202 extern "C"
36203 {
36204 #endif
36205 /* We use char because int might match the return type of a gcc2
36206 builtin and then its argument prototype would still apply. */
36207 char $ac_func ();
36208 /* The GNU C library defines this for functions which it implements
36209 to always fail with ENOSYS. Some functions are actually named
36210 something starting with __ and the normal name is an alias. */
36211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36212 choke me
36213 #else
36214 char (*f) () = $ac_func;
36215 #endif
36216 #ifdef __cplusplus
36217 }
36218 #endif
36219
36220 int
36221 main ()
36222 {
36223 return f != $ac_func;
36224 ;
36225 return 0;
36226 }
36227 _ACEOF
36228 rm -f conftest.$ac_objext conftest$ac_exeext
36229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36230 (eval $ac_link) 2>conftest.er1
36231 ac_status=$?
36232 grep -v '^ *+' conftest.er1 >conftest.err
36233 rm -f conftest.er1
36234 cat conftest.err >&5
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); } &&
36237 { ac_try='test -z "$ac_c_werror_flag"
36238 || test ! -s conftest.err'
36239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36240 (eval $ac_try) 2>&5
36241 ac_status=$?
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); }; } &&
36244 { ac_try='test -s conftest$ac_exeext'
36245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246 (eval $ac_try) 2>&5
36247 ac_status=$?
36248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); }; }; then
36250 eval "$as_ac_var=yes"
36251 else
36252 echo "$as_me: failed program was:" >&5
36253 sed 's/^/| /' conftest.$ac_ext >&5
36254
36255 eval "$as_ac_var=no"
36256 fi
36257 rm -f conftest.err conftest.$ac_objext \
36258 conftest$ac_exeext conftest.$ac_ext
36259 fi
36260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36262 if test `eval echo '${'$as_ac_var'}'` = yes; then
36263 cat >>confdefs.h <<_ACEOF
36264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36265 _ACEOF
36266 have_cos=1
36267 fi
36268 done
36269
36270
36271 for ac_func in floor
36272 do
36273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36274 echo "$as_me:$LINENO: checking for $ac_func" >&5
36275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36276 if eval "test \"\${$as_ac_var+set}\" = set"; then
36277 echo $ECHO_N "(cached) $ECHO_C" >&6
36278 else
36279 cat >conftest.$ac_ext <<_ACEOF
36280 /* confdefs.h. */
36281 _ACEOF
36282 cat confdefs.h >>conftest.$ac_ext
36283 cat >>conftest.$ac_ext <<_ACEOF
36284 /* end confdefs.h. */
36285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36287 #define $ac_func innocuous_$ac_func
36288
36289 /* System header to define __stub macros and hopefully few prototypes,
36290 which can conflict with char $ac_func (); below.
36291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36292 <limits.h> exists even on freestanding compilers. */
36293
36294 #ifdef __STDC__
36295 # include <limits.h>
36296 #else
36297 # include <assert.h>
36298 #endif
36299
36300 #undef $ac_func
36301
36302 /* Override any gcc2 internal prototype to avoid an error. */
36303 #ifdef __cplusplus
36304 extern "C"
36305 {
36306 #endif
36307 /* We use char because int might match the return type of a gcc2
36308 builtin and then its argument prototype would still apply. */
36309 char $ac_func ();
36310 /* The GNU C library defines this for functions which it implements
36311 to always fail with ENOSYS. Some functions are actually named
36312 something starting with __ and the normal name is an alias. */
36313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36314 choke me
36315 #else
36316 char (*f) () = $ac_func;
36317 #endif
36318 #ifdef __cplusplus
36319 }
36320 #endif
36321
36322 int
36323 main ()
36324 {
36325 return f != $ac_func;
36326 ;
36327 return 0;
36328 }
36329 _ACEOF
36330 rm -f conftest.$ac_objext conftest$ac_exeext
36331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36332 (eval $ac_link) 2>conftest.er1
36333 ac_status=$?
36334 grep -v '^ *+' conftest.er1 >conftest.err
36335 rm -f conftest.er1
36336 cat conftest.err >&5
36337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36338 (exit $ac_status); } &&
36339 { ac_try='test -z "$ac_c_werror_flag"
36340 || test ! -s conftest.err'
36341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342 (eval $ac_try) 2>&5
36343 ac_status=$?
36344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345 (exit $ac_status); }; } &&
36346 { ac_try='test -s conftest$ac_exeext'
36347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36348 (eval $ac_try) 2>&5
36349 ac_status=$?
36350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351 (exit $ac_status); }; }; then
36352 eval "$as_ac_var=yes"
36353 else
36354 echo "$as_me: failed program was:" >&5
36355 sed 's/^/| /' conftest.$ac_ext >&5
36356
36357 eval "$as_ac_var=no"
36358 fi
36359 rm -f conftest.err conftest.$ac_objext \
36360 conftest$ac_exeext conftest.$ac_ext
36361 fi
36362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36364 if test `eval echo '${'$as_ac_var'}'` = yes; then
36365 cat >>confdefs.h <<_ACEOF
36366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36367 _ACEOF
36368 have_floor=1
36369 fi
36370 done
36371
36372 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
36373 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
36374 if test "$have_cos" = 1 -a "$have_floor" = 1; then
36375 echo "$as_me:$LINENO: result: yes" >&5
36376 echo "${ECHO_T}yes" >&6
36377 else
36378 echo "$as_me:$LINENO: result: no" >&5
36379 echo "${ECHO_T}no" >&6
36380 LIBS="$LIBS -lm"
36381 # use different functions to avoid configure caching
36382 have_sin=0
36383 have_ceil=0
36384
36385 for ac_func in sin
36386 do
36387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36388 echo "$as_me:$LINENO: checking for $ac_func" >&5
36389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36390 if eval "test \"\${$as_ac_var+set}\" = set"; then
36391 echo $ECHO_N "(cached) $ECHO_C" >&6
36392 else
36393 cat >conftest.$ac_ext <<_ACEOF
36394 /* confdefs.h. */
36395 _ACEOF
36396 cat confdefs.h >>conftest.$ac_ext
36397 cat >>conftest.$ac_ext <<_ACEOF
36398 /* end confdefs.h. */
36399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36401 #define $ac_func innocuous_$ac_func
36402
36403 /* System header to define __stub macros and hopefully few prototypes,
36404 which can conflict with char $ac_func (); below.
36405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36406 <limits.h> exists even on freestanding compilers. */
36407
36408 #ifdef __STDC__
36409 # include <limits.h>
36410 #else
36411 # include <assert.h>
36412 #endif
36413
36414 #undef $ac_func
36415
36416 /* Override any gcc2 internal prototype to avoid an error. */
36417 #ifdef __cplusplus
36418 extern "C"
36419 {
36420 #endif
36421 /* We use char because int might match the return type of a gcc2
36422 builtin and then its argument prototype would still apply. */
36423 char $ac_func ();
36424 /* The GNU C library defines this for functions which it implements
36425 to always fail with ENOSYS. Some functions are actually named
36426 something starting with __ and the normal name is an alias. */
36427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36428 choke me
36429 #else
36430 char (*f) () = $ac_func;
36431 #endif
36432 #ifdef __cplusplus
36433 }
36434 #endif
36435
36436 int
36437 main ()
36438 {
36439 return f != $ac_func;
36440 ;
36441 return 0;
36442 }
36443 _ACEOF
36444 rm -f conftest.$ac_objext conftest$ac_exeext
36445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36446 (eval $ac_link) 2>conftest.er1
36447 ac_status=$?
36448 grep -v '^ *+' conftest.er1 >conftest.err
36449 rm -f conftest.er1
36450 cat conftest.err >&5
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); } &&
36453 { ac_try='test -z "$ac_c_werror_flag"
36454 || test ! -s conftest.err'
36455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36456 (eval $ac_try) 2>&5
36457 ac_status=$?
36458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459 (exit $ac_status); }; } &&
36460 { ac_try='test -s conftest$ac_exeext'
36461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36462 (eval $ac_try) 2>&5
36463 ac_status=$?
36464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465 (exit $ac_status); }; }; then
36466 eval "$as_ac_var=yes"
36467 else
36468 echo "$as_me: failed program was:" >&5
36469 sed 's/^/| /' conftest.$ac_ext >&5
36470
36471 eval "$as_ac_var=no"
36472 fi
36473 rm -f conftest.err conftest.$ac_objext \
36474 conftest$ac_exeext conftest.$ac_ext
36475 fi
36476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36477 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36478 if test `eval echo '${'$as_ac_var'}'` = yes; then
36479 cat >>confdefs.h <<_ACEOF
36480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36481 _ACEOF
36482 have_sin=1
36483 fi
36484 done
36485
36486
36487 for ac_func in ceil
36488 do
36489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36490 echo "$as_me:$LINENO: checking for $ac_func" >&5
36491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36492 if eval "test \"\${$as_ac_var+set}\" = set"; then
36493 echo $ECHO_N "(cached) $ECHO_C" >&6
36494 else
36495 cat >conftest.$ac_ext <<_ACEOF
36496 /* confdefs.h. */
36497 _ACEOF
36498 cat confdefs.h >>conftest.$ac_ext
36499 cat >>conftest.$ac_ext <<_ACEOF
36500 /* end confdefs.h. */
36501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36503 #define $ac_func innocuous_$ac_func
36504
36505 /* System header to define __stub macros and hopefully few prototypes,
36506 which can conflict with char $ac_func (); below.
36507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36508 <limits.h> exists even on freestanding compilers. */
36509
36510 #ifdef __STDC__
36511 # include <limits.h>
36512 #else
36513 # include <assert.h>
36514 #endif
36515
36516 #undef $ac_func
36517
36518 /* Override any gcc2 internal prototype to avoid an error. */
36519 #ifdef __cplusplus
36520 extern "C"
36521 {
36522 #endif
36523 /* We use char because int might match the return type of a gcc2
36524 builtin and then its argument prototype would still apply. */
36525 char $ac_func ();
36526 /* The GNU C library defines this for functions which it implements
36527 to always fail with ENOSYS. Some functions are actually named
36528 something starting with __ and the normal name is an alias. */
36529 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36530 choke me
36531 #else
36532 char (*f) () = $ac_func;
36533 #endif
36534 #ifdef __cplusplus
36535 }
36536 #endif
36537
36538 int
36539 main ()
36540 {
36541 return f != $ac_func;
36542 ;
36543 return 0;
36544 }
36545 _ACEOF
36546 rm -f conftest.$ac_objext conftest$ac_exeext
36547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36548 (eval $ac_link) 2>conftest.er1
36549 ac_status=$?
36550 grep -v '^ *+' conftest.er1 >conftest.err
36551 rm -f conftest.er1
36552 cat conftest.err >&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); } &&
36555 { ac_try='test -z "$ac_c_werror_flag"
36556 || test ! -s conftest.err'
36557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558 (eval $ac_try) 2>&5
36559 ac_status=$?
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); }; } &&
36562 { ac_try='test -s conftest$ac_exeext'
36563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36564 (eval $ac_try) 2>&5
36565 ac_status=$?
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); }; }; then
36568 eval "$as_ac_var=yes"
36569 else
36570 echo "$as_me: failed program was:" >&5
36571 sed 's/^/| /' conftest.$ac_ext >&5
36572
36573 eval "$as_ac_var=no"
36574 fi
36575 rm -f conftest.err conftest.$ac_objext \
36576 conftest$ac_exeext conftest.$ac_ext
36577 fi
36578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36580 if test `eval echo '${'$as_ac_var'}'` = yes; then
36581 cat >>confdefs.h <<_ACEOF
36582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36583 _ACEOF
36584 have_ceil=1
36585 fi
36586 done
36587
36588 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
36589 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
36590 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
36591 echo "$as_me:$LINENO: result: yes" >&5
36592 echo "${ECHO_T}yes" >&6
36593 else
36594 echo "$as_me:$LINENO: result: no" >&5
36595 echo "${ECHO_T}no" >&6
36596 # not sure we should warn the user, crash, etc.
36597 fi
36598 fi
36599
36600 if test "$wxUSE_GUI" = "yes"; then
36601
36602
36603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
36604 drawing dynamic erase event exec font image \
36605 minimal propsize rotate shaped widgets render"
36606
36607 if test "$wxUSE_MONOLITHIC" != "yes"; then
36608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
36609 fi
36610 else
36611 SAMPLES_SUBDIRS="console"
36612 fi
36613
36614
36615 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
36616 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
36617
36618 if test "$GXX" = yes ; then
36619 CXXWARNINGS="-Wall"
36620 fi
36621
36622 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
36623
36624 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
36625 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
36626 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
36627
36628
36629 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
36630 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
36631 EXTRALIBS_XML="$EXPAT_LINK"
36632 EXTRALIBS_HTML="$MSPACK_LINK"
36633 EXTRALIBS_ODBC="$ODBC_LINK"
36634 if test "$wxUSE_GUI" = "yes"; then
36635 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
36636 fi
36637 if test "$wxUSE_OPENGL" = "yes"; then
36638 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
36639 fi
36640
36641 LDFLAGS="$LDFLAGS $PROFILE"
36642
36643 if test "$wxUSE_GTK" = 1; then
36644 WXCONFIG_INCLUDE=
36645 else
36646 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
36647 fi
36648
36649 WXCONFIG_EXTRALIBS="$LIBS"
36650
36651 if test "$wxUSE_REGEX" = "builtin" ; then
36652 wxconfig_3rdparty="$wxconfig_3rdparty regex"
36653 fi
36654 if test "$wxUSE_EXPAT" = "builtin" ; then
36655 wxconfig_3rdparty="$wxconfig_3rdparty expat"
36656 fi
36657 if test "$wxUSE_ODBC" = "builtin" ; then
36658 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36659 fi
36660 if test "$wxUSE_LIBTIFF" = "builtin" ; then
36661 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
36662 fi
36663 if test "$wxUSE_LIBJPEG" = "builtin" ; then
36664 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
36665 fi
36666 if test "$wxUSE_LIBPNG" = "builtin" ; then
36667 wxconfig_3rdparty="$wxconfig_3rdparty png"
36668 fi
36669 if test "$wxUSE_ZLIB" = "builtin" ; then
36670 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
36671 fi
36672 if test "$wxUSE_ODBC" = "builtin" ; then
36673 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36674 fi
36675
36676 for i in $wxconfig_3rdparty ; do
36677 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
36678 done
36679
36680
36681 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
36682 WXUNIV=1
36683 else
36684 WXUNIV=0
36685 fi
36686
36687
36688
36689
36690
36691
36692
36693
36694
36695 if test $wxUSE_MONOLITHIC = "yes" ; then
36696 MONOLITHIC=1
36697 else
36698 MONOLITHIC=0
36699 fi
36700
36701 if test $wxUSE_ODBC != "no" ; then
36702 USE_ODBC=1
36703 else
36704 USE_ODBC=0
36705 fi
36706
36707 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
36708 OFFICIAL_BUILD=1
36709 else
36710 OFFICIAL_BUILD=0
36711 fi
36712
36713
36714
36715
36716
36717
36718
36719
36720
36721
36722
36723
36724
36725
36726
36727
36728
36729
36730 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
36731
36732
36733
36734
36735
36736
36737
36738 if test "x$BAKEFILE_HOST" = "x"; then
36739 BAKEFILE_HOST="${host}"
36740 fi
36741
36742 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
36743
36744 if test -n "$ac_tool_prefix"; then
36745 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36746 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36747 echo "$as_me:$LINENO: checking for $ac_word" >&5
36748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36749 if test "${ac_cv_prog_RANLIB+set}" = set; then
36750 echo $ECHO_N "(cached) $ECHO_C" >&6
36751 else
36752 if test -n "$RANLIB"; then
36753 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
36754 else
36755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36756 for as_dir in $PATH
36757 do
36758 IFS=$as_save_IFS
36759 test -z "$as_dir" && as_dir=.
36760 for ac_exec_ext in '' $ac_executable_extensions; do
36761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36762 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36764 break 2
36765 fi
36766 done
36767 done
36768
36769 fi
36770 fi
36771 RANLIB=$ac_cv_prog_RANLIB
36772 if test -n "$RANLIB"; then
36773 echo "$as_me:$LINENO: result: $RANLIB" >&5
36774 echo "${ECHO_T}$RANLIB" >&6
36775 else
36776 echo "$as_me:$LINENO: result: no" >&5
36777 echo "${ECHO_T}no" >&6
36778 fi
36779
36780 fi
36781 if test -z "$ac_cv_prog_RANLIB"; then
36782 ac_ct_RANLIB=$RANLIB
36783 # Extract the first word of "ranlib", so it can be a program name with args.
36784 set dummy ranlib; ac_word=$2
36785 echo "$as_me:$LINENO: checking for $ac_word" >&5
36786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36787 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
36788 echo $ECHO_N "(cached) $ECHO_C" >&6
36789 else
36790 if test -n "$ac_ct_RANLIB"; then
36791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36792 else
36793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36794 for as_dir in $PATH
36795 do
36796 IFS=$as_save_IFS
36797 test -z "$as_dir" && as_dir=.
36798 for ac_exec_ext in '' $ac_executable_extensions; do
36799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36800 ac_cv_prog_ac_ct_RANLIB="ranlib"
36801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36802 break 2
36803 fi
36804 done
36805 done
36806
36807 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
36808 fi
36809 fi
36810 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36811 if test -n "$ac_ct_RANLIB"; then
36812 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
36813 echo "${ECHO_T}$ac_ct_RANLIB" >&6
36814 else
36815 echo "$as_me:$LINENO: result: no" >&5
36816 echo "${ECHO_T}no" >&6
36817 fi
36818
36819 RANLIB=$ac_ct_RANLIB
36820 else
36821 RANLIB="$ac_cv_prog_RANLIB"
36822 fi
36823
36824 # Find a good install program. We prefer a C program (faster),
36825 # so one script is as good as another. But avoid the broken or
36826 # incompatible versions:
36827 # SysV /etc/install, /usr/sbin/install
36828 # SunOS /usr/etc/install
36829 # IRIX /sbin/install
36830 # AIX /bin/install
36831 # AmigaOS /C/install, which installs bootblocks on floppy discs
36832 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
36833 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
36834 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
36835 # OS/2's system install, which has a completely different semantic
36836 # ./install, which can be erroneously created by make from ./install.sh.
36837 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
36838 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
36839 if test -z "$INSTALL"; then
36840 if test "${ac_cv_path_install+set}" = set; then
36841 echo $ECHO_N "(cached) $ECHO_C" >&6
36842 else
36843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36844 for as_dir in $PATH
36845 do
36846 IFS=$as_save_IFS
36847 test -z "$as_dir" && as_dir=.
36848 # Account for people who put trailing slashes in PATH elements.
36849 case $as_dir/ in
36850 ./ | .// | /cC/* | \
36851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
36852 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
36853 /usr/ucb/* ) ;;
36854 *)
36855 # OSF1 and SCO ODT 3.0 have their own names for install.
36856 # Don't use installbsd from OSF since it installs stuff as root
36857 # by default.
36858 for ac_prog in ginstall scoinst install; do
36859 for ac_exec_ext in '' $ac_executable_extensions; do
36860 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36861 if test $ac_prog = install &&
36862 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36863 # AIX install. It has an incompatible calling convention.
36864 :
36865 elif test $ac_prog = install &&
36866 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36867 # program-specific install script used by HP pwplus--don't use.
36868 :
36869 else
36870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36871 break 3
36872 fi
36873 fi
36874 done
36875 done
36876 ;;
36877 esac
36878 done
36879
36880
36881 fi
36882 if test "${ac_cv_path_install+set}" = set; then
36883 INSTALL=$ac_cv_path_install
36884 else
36885 # As a last resort, use the slow shell script. We don't cache a
36886 # path for INSTALL within a source directory, because that will
36887 # break other packages using the cache if that directory is
36888 # removed, or if the path is relative.
36889 INSTALL=$ac_install_sh
36890 fi
36891 fi
36892 echo "$as_me:$LINENO: result: $INSTALL" >&5
36893 echo "${ECHO_T}$INSTALL" >&6
36894
36895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36896 # It thinks the first close brace ends the variable substitution.
36897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36898
36899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
36900
36901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36902
36903 echo "$as_me:$LINENO: checking whether ln -s works" >&5
36904 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
36905 LN_S=$as_ln_s
36906 if test "$LN_S" = "ln -s"; then
36907 echo "$as_me:$LINENO: result: yes" >&5
36908 echo "${ECHO_T}yes" >&6
36909 else
36910 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
36911 echo "${ECHO_T}no, using $LN_S" >&6
36912 fi
36913
36914
36915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
36916 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
36917 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
36918 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
36919 echo $ECHO_N "(cached) $ECHO_C" >&6
36920 else
36921 cat >conftest.make <<\_ACEOF
36922 all:
36923 @echo 'ac_maketemp="$(MAKE)"'
36924 _ACEOF
36925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
36926 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
36927 if test -n "$ac_maketemp"; then
36928 eval ac_cv_prog_make_${ac_make}_set=yes
36929 else
36930 eval ac_cv_prog_make_${ac_make}_set=no
36931 fi
36932 rm -f conftest.make
36933 fi
36934 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
36935 echo "$as_me:$LINENO: result: yes" >&5
36936 echo "${ECHO_T}yes" >&6
36937 SET_MAKE=
36938 else
36939 echo "$as_me:$LINENO: result: no" >&5
36940 echo "${ECHO_T}no" >&6
36941 SET_MAKE="MAKE=${MAKE-make}"
36942 fi
36943
36944
36945
36946 if test -n "$ac_tool_prefix"; then
36947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36948 set dummy ${ac_tool_prefix}ar; ac_word=$2
36949 echo "$as_me:$LINENO: checking for $ac_word" >&5
36950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36951 if test "${ac_cv_prog_AR+set}" = set; then
36952 echo $ECHO_N "(cached) $ECHO_C" >&6
36953 else
36954 if test -n "$AR"; then
36955 ac_cv_prog_AR="$AR" # Let the user override the test.
36956 else
36957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36958 for as_dir in $PATH
36959 do
36960 IFS=$as_save_IFS
36961 test -z "$as_dir" && as_dir=.
36962 for ac_exec_ext in '' $ac_executable_extensions; do
36963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36964 ac_cv_prog_AR="${ac_tool_prefix}ar"
36965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36966 break 2
36967 fi
36968 done
36969 done
36970
36971 fi
36972 fi
36973 AR=$ac_cv_prog_AR
36974 if test -n "$AR"; then
36975 echo "$as_me:$LINENO: result: $AR" >&5
36976 echo "${ECHO_T}$AR" >&6
36977 else
36978 echo "$as_me:$LINENO: result: no" >&5
36979 echo "${ECHO_T}no" >&6
36980 fi
36981
36982 fi
36983 if test -z "$ac_cv_prog_AR"; then
36984 ac_ct_AR=$AR
36985 # Extract the first word of "ar", so it can be a program name with args.
36986 set dummy ar; ac_word=$2
36987 echo "$as_me:$LINENO: checking for $ac_word" >&5
36988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36989 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36990 echo $ECHO_N "(cached) $ECHO_C" >&6
36991 else
36992 if test -n "$ac_ct_AR"; then
36993 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36994 else
36995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36996 for as_dir in $PATH
36997 do
36998 IFS=$as_save_IFS
36999 test -z "$as_dir" && as_dir=.
37000 for ac_exec_ext in '' $ac_executable_extensions; do
37001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37002 ac_cv_prog_ac_ct_AR="ar"
37003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37004 break 2
37005 fi
37006 done
37007 done
37008
37009 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37010 fi
37011 fi
37012 ac_ct_AR=$ac_cv_prog_ac_ct_AR
37013 if test -n "$ac_ct_AR"; then
37014 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37015 echo "${ECHO_T}$ac_ct_AR" >&6
37016 else
37017 echo "$as_me:$LINENO: result: no" >&5
37018 echo "${ECHO_T}no" >&6
37019 fi
37020
37021 AR=$ac_ct_AR
37022 else
37023 AR="$ac_cv_prog_AR"
37024 fi
37025
37026 if test -n "$ac_tool_prefix"; then
37027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37028 set dummy ${ac_tool_prefix}strip; ac_word=$2
37029 echo "$as_me:$LINENO: checking for $ac_word" >&5
37030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37031 if test "${ac_cv_prog_STRIP+set}" = set; then
37032 echo $ECHO_N "(cached) $ECHO_C" >&6
37033 else
37034 if test -n "$STRIP"; then
37035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37036 else
37037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37038 for as_dir in $PATH
37039 do
37040 IFS=$as_save_IFS
37041 test -z "$as_dir" && as_dir=.
37042 for ac_exec_ext in '' $ac_executable_extensions; do
37043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
37045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37046 break 2
37047 fi
37048 done
37049 done
37050
37051 fi
37052 fi
37053 STRIP=$ac_cv_prog_STRIP
37054 if test -n "$STRIP"; then
37055 echo "$as_me:$LINENO: result: $STRIP" >&5
37056 echo "${ECHO_T}$STRIP" >&6
37057 else
37058 echo "$as_me:$LINENO: result: no" >&5
37059 echo "${ECHO_T}no" >&6
37060 fi
37061
37062 fi
37063 if test -z "$ac_cv_prog_STRIP"; then
37064 ac_ct_STRIP=$STRIP
37065 # Extract the first word of "strip", so it can be a program name with args.
37066 set dummy strip; ac_word=$2
37067 echo "$as_me:$LINENO: checking for $ac_word" >&5
37068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37069 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37070 echo $ECHO_N "(cached) $ECHO_C" >&6
37071 else
37072 if test -n "$ac_ct_STRIP"; then
37073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37074 else
37075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37076 for as_dir in $PATH
37077 do
37078 IFS=$as_save_IFS
37079 test -z "$as_dir" && as_dir=.
37080 for ac_exec_ext in '' $ac_executable_extensions; do
37081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37082 ac_cv_prog_ac_ct_STRIP="strip"
37083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37084 break 2
37085 fi
37086 done
37087 done
37088
37089 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37090 fi
37091 fi
37092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37093 if test -n "$ac_ct_STRIP"; then
37094 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37095 echo "${ECHO_T}$ac_ct_STRIP" >&6
37096 else
37097 echo "$as_me:$LINENO: result: no" >&5
37098 echo "${ECHO_T}no" >&6
37099 fi
37100
37101 STRIP=$ac_ct_STRIP
37102 else
37103 STRIP="$ac_cv_prog_STRIP"
37104 fi
37105
37106 if test -n "$ac_tool_prefix"; then
37107 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37108 set dummy ${ac_tool_prefix}nm; ac_word=$2
37109 echo "$as_me:$LINENO: checking for $ac_word" >&5
37110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37111 if test "${ac_cv_prog_NM+set}" = set; then
37112 echo $ECHO_N "(cached) $ECHO_C" >&6
37113 else
37114 if test -n "$NM"; then
37115 ac_cv_prog_NM="$NM" # Let the user override the test.
37116 else
37117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37118 for as_dir in $PATH
37119 do
37120 IFS=$as_save_IFS
37121 test -z "$as_dir" && as_dir=.
37122 for ac_exec_ext in '' $ac_executable_extensions; do
37123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37124 ac_cv_prog_NM="${ac_tool_prefix}nm"
37125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37126 break 2
37127 fi
37128 done
37129 done
37130
37131 fi
37132 fi
37133 NM=$ac_cv_prog_NM
37134 if test -n "$NM"; then
37135 echo "$as_me:$LINENO: result: $NM" >&5
37136 echo "${ECHO_T}$NM" >&6
37137 else
37138 echo "$as_me:$LINENO: result: no" >&5
37139 echo "${ECHO_T}no" >&6
37140 fi
37141
37142 fi
37143 if test -z "$ac_cv_prog_NM"; then
37144 ac_ct_NM=$NM
37145 # Extract the first word of "nm", so it can be a program name with args.
37146 set dummy nm; ac_word=$2
37147 echo "$as_me:$LINENO: checking for $ac_word" >&5
37148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37149 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
37150 echo $ECHO_N "(cached) $ECHO_C" >&6
37151 else
37152 if test -n "$ac_ct_NM"; then
37153 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37154 else
37155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37156 for as_dir in $PATH
37157 do
37158 IFS=$as_save_IFS
37159 test -z "$as_dir" && as_dir=.
37160 for ac_exec_ext in '' $ac_executable_extensions; do
37161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37162 ac_cv_prog_ac_ct_NM="nm"
37163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37164 break 2
37165 fi
37166 done
37167 done
37168
37169 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
37170 fi
37171 fi
37172 ac_ct_NM=$ac_cv_prog_ac_ct_NM
37173 if test -n "$ac_ct_NM"; then
37174 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
37175 echo "${ECHO_T}$ac_ct_NM" >&6
37176 else
37177 echo "$as_me:$LINENO: result: no" >&5
37178 echo "${ECHO_T}no" >&6
37179 fi
37180
37181 NM=$ac_ct_NM
37182 else
37183 NM="$ac_cv_prog_NM"
37184 fi
37185
37186
37187 case ${BAKEFILE_HOST} in
37188 *-hp-hpux* )
37189 INSTALL_DIR="mkdir"
37190 ;;
37191 *) INSTALL_DIR="$INSTALL -d"
37192 ;;
37193 esac
37194
37195
37196 LDFLAGS_GUI=
37197 case ${BAKEFILE_HOST} in
37198 *-*-cygwin* | *-*-mingw32* )
37199 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
37200 esac
37201
37202
37203 fi
37204
37205 echo "$as_me:$LINENO: checking if make is GNU make" >&5
37206 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
37207 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
37208 echo $ECHO_N "(cached) $ECHO_C" >&6
37209 else
37210
37211 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
37212 egrep -s GNU > /dev/null); then
37213 bakefile_cv_prog_makeisgnu="yes"
37214 else
37215 bakefile_cv_prog_makeisgnu="no"
37216 fi
37217
37218 fi
37219 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
37220 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
37221
37222 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
37223 IF_GNU_MAKE=""
37224 else
37225 IF_GNU_MAKE="#"
37226 fi
37227
37228
37229
37230 PLATFORM_UNIX=0
37231 PLATFORM_WIN32=0
37232 PLATFORM_MSDOS=0
37233 PLATFORM_MAC=0
37234 PLATFORM_MACOSX=0
37235 PLATFORM_OS2=0
37236
37237 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
37238 case "${BAKEFILE_HOST}" in
37239 *-*-cygwin* | *-*-mingw32* )
37240 PLATFORM_WIN32=1
37241 ;;
37242 *-pc-msdosdjgpp )
37243 PLATFORM_MSDOS=1
37244 ;;
37245 *-pc-os2_emx | *-pc-os2-emx )
37246 PLATFORM_OS2=1
37247 ;;
37248 powerpc-*-darwin* )
37249 PLATFORM_MAC=1
37250 PLATFORM_MACOSX=1
37251 ;;
37252 * )
37253 PLATFORM_UNIX=1
37254 ;;
37255 esac
37256 else
37257 case "$BAKEFILE_FORCE_PLATFORM" in
37258 win32 )
37259 PLATFORM_WIN32=1
37260 ;;
37261 msdos )
37262 PLATFORM_MSDOS=1
37263 ;;
37264 os2 )
37265 PLATFORM_OS2=1
37266 ;;
37267 darwin )
37268 PLATFORM_MAC=1
37269 PLATFORM_MACOSX=1
37270 ;;
37271 unix )
37272 PLATFORM_UNIX=1
37273 ;;
37274 * )
37275 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
37276 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
37277 { (exit 1); exit 1; }; }
37278 ;;
37279 esac
37280 fi
37281
37282
37283
37284
37285
37286
37287
37288
37289
37290 SO_SUFFIX="so"
37291 SO_SUFFIX_MODULE="so"
37292 EXEEXT=""
37293 LIBPREFIX=lib
37294 DLLPREFIX=lib
37295 DLLPREFIX_MODULE=
37296
37297 case "${BAKEFILE_HOST}" in
37298 *-hp-hpux* )
37299 SO_SUFFIX="sl"
37300 SO_SUFFIX_MODULE="sl"
37301 ;;
37302 *-*-aix* )
37303 SO_SUFFIX="a"
37304 SO_SUFFIX_MODULE="a"
37305 ;;
37306 *-*-cygwin* | *-*-mingw32* )
37307 SO_SUFFIX="dll"
37308 SO_SUFFIX_MODULE="dll"
37309 EXEEXT=".exe"
37310 DLLPREFIX=""
37311 ;;
37312 *-pc-msdosdjgpp )
37313 EXEEXT=".exe"
37314 DLLPREFIX=""
37315 ;;
37316 *-pc-os2_emx | *-pc-os2-emx )
37317 EXEEXT=".exe"
37318 DLLPREFIX=""
37319 LIBPREFIX=""
37320 ;;
37321 powerpc-*-darwin* )
37322 SO_SUFFIX="dylib"
37323 SO_SUFFIX_MODULE="bundle"
37324 ;;
37325 esac
37326
37327
37328
37329
37330
37331
37332
37333
37334
37335 SHARED_LD_CC="\$(CC) -shared -o"
37336 SHARED_LD_CXX="\$(CXX) -shared -o"
37337
37338 if test "x$GCC" = "xyes"; then
37339 PIC_FLAG="-fPIC"
37340 fi
37341
37342 case "${BAKEFILE_HOST}" in
37343 *-hp-hpux* )
37344 if test "x$GCC" = "xyes"; then
37345 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
37346 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
37347 else
37348 LDFLAGS="$LDFLAGS -L/usr/lib"
37349
37350 SHARED_LD_CC="${CC} -b -o"
37351 SHARED_LD_CXX="${CXX} -b -o"
37352 PIC_FLAG="+Z"
37353 fi
37354 ;;
37355
37356 *-*-linux* )
37357 if test "x$GCC" != "xyes"; then
37358 echo "$as_me:$LINENO: checking for Intel compiler" >&5
37359 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
37360 if test "${bakefile_cv_prog_icc+set}" = set; then
37361 echo $ECHO_N "(cached) $ECHO_C" >&6
37362 else
37363
37364 cat >conftest.$ac_ext <<_ACEOF
37365 /* confdefs.h. */
37366 _ACEOF
37367 cat confdefs.h >>conftest.$ac_ext
37368 cat >>conftest.$ac_ext <<_ACEOF
37369 /* end confdefs.h. */
37370
37371 int
37372 main ()
37373 {
37374
37375 #ifndef __INTEL_COMPILER
37376 #error Not icc
37377 #endif
37378
37379 ;
37380 return 0;
37381 }
37382 _ACEOF
37383 rm -f conftest.$ac_objext
37384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37385 (eval $ac_compile) 2>conftest.er1
37386 ac_status=$?
37387 grep -v '^ *+' conftest.er1 >conftest.err
37388 rm -f conftest.er1
37389 cat conftest.err >&5
37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); } &&
37392 { ac_try='test -z "$ac_c_werror_flag"
37393 || test ! -s conftest.err'
37394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37395 (eval $ac_try) 2>&5
37396 ac_status=$?
37397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398 (exit $ac_status); }; } &&
37399 { ac_try='test -s conftest.$ac_objext'
37400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401 (eval $ac_try) 2>&5
37402 ac_status=$?
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); }; }; then
37405 bakefile_cv_prog_icc=yes
37406 else
37407 echo "$as_me: failed program was:" >&5
37408 sed 's/^/| /' conftest.$ac_ext >&5
37409
37410 bakefile_cv_prog_icc=no
37411
37412 fi
37413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37414
37415 fi
37416 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
37417 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
37418 if test "$bakefile_cv_prog_icc" = "yes"; then
37419 PIC_FLAG="-KPIC"
37420 fi
37421 fi
37422 ;;
37423
37424 *-*-solaris2* )
37425 if test "x$GCC" != xyes ; then
37426 SHARED_LD_CC="${CC} -G -o"
37427 SHARED_LD_CXX="${CXX} -G -o"
37428 PIC_FLAG="-KPIC"
37429 fi
37430 ;;
37431
37432 *-*-darwin* )
37433 CFLAGS="$CFLAGS -fno-common"
37434 CXXFLAGS="$CXXFLAGS -fno-common"
37435
37436
37437 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
37438 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
37439 if test "${wx_cv_gcc31+set}" = set; then
37440 echo $ECHO_N "(cached) $ECHO_C" >&6
37441 else
37442
37443 cat >conftest.$ac_ext <<_ACEOF
37444 /* confdefs.h. */
37445 _ACEOF
37446 cat confdefs.h >>conftest.$ac_ext
37447 cat >>conftest.$ac_ext <<_ACEOF
37448 /* end confdefs.h. */
37449
37450 int
37451 main ()
37452 {
37453
37454 #if (__GNUC__ < 3) || \
37455 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
37456 #error old gcc
37457 #endif
37458
37459 ;
37460 return 0;
37461 }
37462 _ACEOF
37463 rm -f conftest.$ac_objext
37464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37465 (eval $ac_compile) 2>conftest.er1
37466 ac_status=$?
37467 grep -v '^ *+' conftest.er1 >conftest.err
37468 rm -f conftest.er1
37469 cat conftest.err >&5
37470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471 (exit $ac_status); } &&
37472 { ac_try='test -z "$ac_c_werror_flag"
37473 || test ! -s conftest.err'
37474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37475 (eval $ac_try) 2>&5
37476 ac_status=$?
37477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478 (exit $ac_status); }; } &&
37479 { ac_try='test -s conftest.$ac_objext'
37480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481 (eval $ac_try) 2>&5
37482 ac_status=$?
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; }; then
37485
37486 wx_cv_gcc31=yes
37487
37488 else
37489 echo "$as_me: failed program was:" >&5
37490 sed 's/^/| /' conftest.$ac_ext >&5
37491
37492
37493 wx_cv_gcc31=no
37494
37495
37496 fi
37497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37498
37499 fi
37500 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
37501 echo "${ECHO_T}$wx_cv_gcc31" >&6
37502 if test "$wx_cv_gcc31" = "no"; then
37503 cat <<EOF >shared-ld-sh
37504 #!/bin/sh
37505 #-----------------------------------------------------------------------------
37506 #-- Name: distrib/mac/shared-ld-sh
37507 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
37508 #-- Author: Gilles Depeyrot
37509 #-- Copyright: (c) 2002 Gilles Depeyrot
37510 #-- Licence: any use permitted
37511 #-----------------------------------------------------------------------------
37512
37513 verbose=0
37514 args=""
37515 objects=""
37516 linking_flag="-dynamiclib"
37517
37518 while test \${#} -gt 0; do
37519 case \${1} in
37520
37521 -v)
37522 verbose=1
37523 ;;
37524
37525 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
37526 # collect these options and values
37527 args="\${args} \${1} \${2}"
37528 shift
37529 ;;
37530
37531 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
37532 # collect these options
37533 args="\${args} \${1}"
37534 ;;
37535
37536 -dynamiclib|-bundle)
37537 linking_flag="\${1}"
37538 ;;
37539
37540 -*)
37541 echo "shared-ld: unhandled option '\${1}'"
37542 exit 1
37543 ;;
37544
37545 *.o | *.a | *.dylib)
37546 # collect object files
37547 objects="\${objects} \${1}"
37548 ;;
37549
37550 *)
37551 echo "shared-ld: unhandled argument '\${1}'"
37552 exit 1
37553 ;;
37554
37555 esac
37556 shift
37557 done
37558
37559 #
37560 # Link one module containing all the others
37561 #
37562 if test \${verbose} = 1; then
37563 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
37564 fi
37565 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
37566 status=\$?
37567 if test \${status} != 0; then
37568 exit \${status}
37569 fi
37570
37571 #
37572 # Link the shared library from the single module created
37573 #
37574 if test \${verbose} = 1; then
37575 echo "cc \${linking_flag} master.\$\$.o \${args}"
37576 fi
37577 c++ \${linking_flag} master.\$\$.o \${args}
37578 status=\$?
37579 if test \${status} != 0; then
37580 exit \${status}
37581 fi
37582
37583 #
37584 # Remove intermediate module
37585 #
37586 rm -f master.\$\$.o
37587
37588 exit 0
37589 EOF
37590 chmod +x shared-ld-sh
37591
37592 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
37593 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
37594 SHARED_LD_CXX="$SHARED_LD_CC"
37595 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
37596 else
37597 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
37598 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
37599 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
37600 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
37601 fi
37602
37603 PIC_FLAG="-dynamic -fPIC"
37604 ;;
37605
37606 *-*-aix* )
37607 if test "x$GCC" != "xyes"; then
37608 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
37609 set dummy makeC++SharedLib; ac_word=$2
37610 echo "$as_me:$LINENO: checking for $ac_word" >&5
37611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37612 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
37613 echo $ECHO_N "(cached) $ECHO_C" >&6
37614 else
37615 if test -n "$AIX_CXX_LD"; then
37616 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
37617 else
37618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37619 for as_dir in $PATH
37620 do
37621 IFS=$as_save_IFS
37622 test -z "$as_dir" && as_dir=.
37623 for ac_exec_ext in '' $ac_executable_extensions; do
37624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37625 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
37626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37627 break 2
37628 fi
37629 done
37630 done
37631
37632 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
37633 fi
37634 fi
37635 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
37636 if test -n "$AIX_CXX_LD"; then
37637 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
37638 echo "${ECHO_T}$AIX_CXX_LD" >&6
37639 else
37640 echo "$as_me:$LINENO: result: no" >&5
37641 echo "${ECHO_T}no" >&6
37642 fi
37643
37644 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
37645 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
37646 fi
37647 ;;
37648
37649 *-*-beos* )
37650 SHARED_LD_CC="${LD} -shared -o"
37651 SHARED_LD_CXX="${LD} -shared -o"
37652 ;;
37653
37654 *-*-irix* )
37655 if test "x$GCC" != "xyes"; then
37656 PIC_FLAG="-KPIC"
37657 fi
37658 ;;
37659
37660 *-*-cygwin* | *-*-mingw32* )
37661 PIC_FLAG=""
37662 ;;
37663
37664 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
37665 *-*-sunos4* | \
37666 *-*-osf* | \
37667 *-*-dgux5* | \
37668 *-pc-os2_emx | *-pc-os2-emx | \
37669 *-*-sysv5* )
37670 ;;
37671
37672 *)
37673 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
37674 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
37675 { (exit 1); exit 1; }; }
37676 esac
37677
37678 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
37679 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
37680 fi
37681 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
37682 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
37683 fi
37684
37685
37686
37687
37688
37689
37690
37691
37692 USE_SOVERSION=0
37693 USE_SOVERLINUX=0
37694 USE_SOVERSOLARIS=0
37695 USE_SOSYMLINKS=0
37696 USE_MACVERSION=0
37697 SONAME_FLAG=
37698
37699 case "${BAKEFILE_HOST}" in
37700 *-*-linux* )
37701 SONAME_FLAG="-Wl,-soname,"
37702 USE_SOVERSION=1
37703 USE_SOVERLINUX=1
37704 USE_SOSYMLINKS=1
37705 ;;
37706
37707 *-*-solaris2* )
37708 SONAME_FLAG="-h "
37709 USE_SOVERSION=1
37710 USE_SOVERSOLARIS=1
37711 USE_SOSYMLINKS=1
37712 ;;
37713
37714 *-*-darwin* )
37715 USE_MACVERSION=1
37716 USE_SOVERSION=1
37717 USE_SOSYMLINKS=1
37718 ;;
37719 esac
37720
37721
37722
37723
37724
37725
37726
37727
37728
37729 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
37730 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
37731 DEPS_TRACKING=0
37732
37733 if test "x$GCC" = "xyes"; then
37734 DEPSMODE=gcc
37735 DEPS_TRACKING=1
37736 case "${BAKEFILE_HOST}" in
37737 powerpc-*-darwin* )
37738 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
37739 ;;
37740 * )
37741 DEPSFLAG_GCC="-MMD"
37742 ;;
37743 esac
37744 echo "$as_me:$LINENO: result: gcc" >&5
37745 echo "${ECHO_T}gcc" >&6
37746 else
37747 echo "$as_me:$LINENO: result: none" >&5
37748 echo "${ECHO_T}none" >&6
37749 fi
37750
37751 if test $DEPS_TRACKING = 1 ; then
37752 cat <<EOF >bk-deps
37753 #!/bin/sh
37754
37755 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37756 # script. It is used to track C/C++ files dependencies in portable way.
37757 #
37758 # Permission is given to use this file in any way.
37759
37760 DEPSMODE=$DEPSMODE
37761 DEPSDIR=.deps
37762 DEPSFLAG_GCC="$DEPSFLAG_GCC"
37763
37764 mkdir -p \$DEPSDIR
37765
37766 if test \$DEPSMODE = gcc ; then
37767 \${*} \${DEPSFLAG_GCC}
37768 status=\${?}
37769 if test \${status} != 0 ; then
37770 exit \${status}
37771 fi
37772 # move created file to the location we want it in:
37773 while test \${#} -gt 0; do
37774 case "\${1}" in
37775 -o )
37776 shift
37777 objfile=\${1}
37778 ;;
37779 -* )
37780 ;;
37781 * )
37782 srcfile=\${1}
37783 ;;
37784 esac
37785 shift
37786 done
37787 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
37788 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
37789 if test -f \$depfile ; then
37790 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
37791 rm -f \$depfile
37792 else
37793 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
37794 if test -f \$depfile ; then
37795 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
37796 rm -f \$depfile
37797 fi
37798 fi
37799 exit 0
37800 else
37801 \${*}
37802 exit \${?}
37803 fi
37804 EOF
37805 chmod +x bk-deps
37806 fi
37807
37808
37809
37810
37811 RESCOMP=
37812 SETFILE=
37813
37814 case ${BAKEFILE_HOST} in
37815 *-*-cygwin* | *-*-mingw32* )
37816 if test "$build" != "$host" ; then
37817 RESCOMP=$host_alias-windres
37818 else
37819 # Extract the first word of "windres", so it can be a program name with args.
37820 set dummy windres; ac_word=$2
37821 echo "$as_me:$LINENO: checking for $ac_word" >&5
37822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37823 if test "${ac_cv_prog_RESCOMP+set}" = set; then
37824 echo $ECHO_N "(cached) $ECHO_C" >&6
37825 else
37826 if test -n "$RESCOMP"; then
37827 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37828 else
37829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37830 for as_dir in $PATH
37831 do
37832 IFS=$as_save_IFS
37833 test -z "$as_dir" && as_dir=.
37834 for ac_exec_ext in '' $ac_executable_extensions; do
37835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37836 ac_cv_prog_RESCOMP="windres"
37837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37838 break 2
37839 fi
37840 done
37841 done
37842
37843 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
37844 fi
37845 fi
37846 RESCOMP=$ac_cv_prog_RESCOMP
37847 if test -n "$RESCOMP"; then
37848 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37849 echo "${ECHO_T}$RESCOMP" >&6
37850 else
37851 echo "$as_me:$LINENO: result: no" >&5
37852 echo "${ECHO_T}no" >&6
37853 fi
37854
37855 fi
37856 ;;
37857
37858 *-*-darwin* )
37859 # Extract the first word of "Rez", so it can be a program name with args.
37860 set dummy Rez; ac_word=$2
37861 echo "$as_me:$LINENO: checking for $ac_word" >&5
37862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37863 if test "${ac_cv_prog_RESCOMP+set}" = set; then
37864 echo $ECHO_N "(cached) $ECHO_C" >&6
37865 else
37866 if test -n "$RESCOMP"; then
37867 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37868 else
37869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37870 for as_dir in $PATH
37871 do
37872 IFS=$as_save_IFS
37873 test -z "$as_dir" && as_dir=.
37874 for ac_exec_ext in '' $ac_executable_extensions; do
37875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37876 ac_cv_prog_RESCOMP="Rez"
37877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37878 break 2
37879 fi
37880 done
37881 done
37882
37883 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
37884 fi
37885 fi
37886 RESCOMP=$ac_cv_prog_RESCOMP
37887 if test -n "$RESCOMP"; then
37888 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37889 echo "${ECHO_T}$RESCOMP" >&6
37890 else
37891 echo "$as_me:$LINENO: result: no" >&5
37892 echo "${ECHO_T}no" >&6
37893 fi
37894
37895 # Extract the first word of "SetFile", so it can be a program name with args.
37896 set dummy SetFile; ac_word=$2
37897 echo "$as_me:$LINENO: checking for $ac_word" >&5
37898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37899 if test "${ac_cv_prog_SETFILE+set}" = set; then
37900 echo $ECHO_N "(cached) $ECHO_C" >&6
37901 else
37902 if test -n "$SETFILE"; then
37903 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37904 else
37905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37906 for as_dir in $PATH
37907 do
37908 IFS=$as_save_IFS
37909 test -z "$as_dir" && as_dir=.
37910 for ac_exec_ext in '' $ac_executable_extensions; do
37911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37912 ac_cv_prog_SETFILE="SetFile"
37913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37914 break 2
37915 fi
37916 done
37917 done
37918
37919 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37920 fi
37921 fi
37922 SETFILE=$ac_cv_prog_SETFILE
37923 if test -n "$SETFILE"; then
37924 echo "$as_me:$LINENO: result: $SETFILE" >&5
37925 echo "${ECHO_T}$SETFILE" >&6
37926 else
37927 echo "$as_me:$LINENO: result: no" >&5
37928 echo "${ECHO_T}no" >&6
37929 fi
37930
37931 ;;
37932 esac
37933
37934
37935
37936
37937
37938
37939
37940
37941 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
37942 if test "${enable_precomp_headers+set}" = set; then
37943 enableval="$enable_precomp_headers"
37944 bk_use_pch="$enableval"
37945 fi;
37946
37947 GCC_PCH=0
37948
37949 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
37950 if test "x$GCC" = "xyes"; then
37951 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
37952 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
37953 cat >conftest.$ac_ext <<_ACEOF
37954 /* confdefs.h. */
37955 _ACEOF
37956 cat confdefs.h >>conftest.$ac_ext
37957 cat >>conftest.$ac_ext <<_ACEOF
37958 /* end confdefs.h. */
37959
37960 int
37961 main ()
37962 {
37963
37964 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
37965 #error "no pch support"
37966 #endif
37967 #if (__GNUC__ < 3)
37968 #error "no pch support"
37969 #endif
37970 #if (__GNUC__ == 3) && \
37971 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
37972 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
37973 #error "no pch support"
37974 #endif
37975
37976 ;
37977 return 0;
37978 }
37979 _ACEOF
37980 rm -f conftest.$ac_objext
37981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37982 (eval $ac_compile) 2>conftest.er1
37983 ac_status=$?
37984 grep -v '^ *+' conftest.er1 >conftest.err
37985 rm -f conftest.er1
37986 cat conftest.err >&5
37987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988 (exit $ac_status); } &&
37989 { ac_try='test -z "$ac_c_werror_flag"
37990 || test ! -s conftest.err'
37991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37992 (eval $ac_try) 2>&5
37993 ac_status=$?
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); }; } &&
37996 { ac_try='test -s conftest.$ac_objext'
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; }; then
38002
38003 echo "$as_me:$LINENO: result: yes" >&5
38004 echo "${ECHO_T}yes" >&6
38005 CPPFLAGS="-fpch-deps $CPPFLAGS"
38006 GCC_PCH=1
38007
38008 else
38009 echo "$as_me: failed program was:" >&5
38010 sed 's/^/| /' conftest.$ac_ext >&5
38011
38012
38013 echo "$as_me:$LINENO: result: no" >&5
38014 echo "${ECHO_T}no" >&6
38015
38016 fi
38017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38018 if test $GCC_PCH = 1 ; then
38019 cat <<EOF >bk-make-pch
38020 #!/bin/sh
38021
38022 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38023 # script. It is used to generated precompiled headers.
38024 #
38025 # Permission is given to use this file in any way.
38026
38027 outfile="\${1}"
38028 header="\${2}"
38029 shift
38030 shift
38031
38032 compiler=
38033 headerfile=
38034 while test \${#} -gt 0; do
38035 case "\${1}" in
38036 -I* )
38037 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
38038 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
38039 headerfile="\${incdir}/\${header}"
38040 fi
38041 ;;
38042 esac
38043 compiler="\${compiler} \${1}"
38044 shift
38045 done
38046
38047 if test "x\${headerfile}" = "x" ; then
38048 echo "error: can't find header \${header} in include paths" >2
38049 else
38050 if test -f \${outfile} ; then
38051 rm -f \${outfile}
38052 else
38053 mkdir -p \`dirname \${outfile}\`
38054 fi
38055 depsfile=".deps/\`basename \${outfile}\`.d"
38056 mkdir -p .deps
38057 # can do this because gcc is >= 3.4:
38058 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
38059 exit \${?}
38060 fi
38061 EOF
38062 chmod +x bk-make-pch
38063 fi
38064 fi
38065 fi
38066
38067
38068
38069
38070
38071 COND_BUILD_DEBUG="#"
38072 if test "x$BUILD" = "xdebug" ; then
38073 COND_BUILD_DEBUG=""
38074 fi
38075
38076 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
38077 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
38078 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
38079 fi
38080
38081 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
38082 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
38083 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
38084 fi
38085
38086 COND_BUILD_RELEASE="#"
38087 if test "x$BUILD" = "xrelease" ; then
38088 COND_BUILD_RELEASE=""
38089 fi
38090
38091 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
38092 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
38093 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
38094 fi
38095
38096 COND_DEBUG_FLAG_1="#"
38097 if test "x$DEBUG_FLAG" = "x1" ; then
38098 COND_DEBUG_FLAG_1=""
38099 fi
38100
38101 COND_DEBUG_INFO_0="#"
38102 if test "x$DEBUG_INFO" = "x0" ; then
38103 COND_DEBUG_INFO_0=""
38104 fi
38105
38106 COND_DEBUG_INFO_1="#"
38107 if test "x$DEBUG_INFO" = "x1" ; then
38108 COND_DEBUG_INFO_1=""
38109 fi
38110
38111 COND_DEPS_TRACKING_0="#"
38112 if test "x$DEPS_TRACKING" = "x0" ; then
38113 COND_DEPS_TRACKING_0=""
38114 fi
38115
38116 COND_DEPS_TRACKING_1="#"
38117 if test "x$DEPS_TRACKING" = "x1" ; then
38118 COND_DEPS_TRACKING_1=""
38119 fi
38120
38121 COND_GCC_PCH_1="#"
38122 if test "x$GCC_PCH" = "x1" ; then
38123 COND_GCC_PCH_1=""
38124 fi
38125
38126 COND_MONOLITHIC_0="#"
38127 if test "x$MONOLITHIC" = "x0" ; then
38128 COND_MONOLITHIC_0=""
38129 fi
38130
38131 COND_MONOLITHIC_0_SHARED_0="#"
38132 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38133 COND_MONOLITHIC_0_SHARED_0=""
38134 fi
38135
38136 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38137 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38138 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
38139 fi
38140
38141 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38142 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38143 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38144 fi
38145
38146 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38147 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38148 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38149 fi
38150
38151 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38152 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38153 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38154 fi
38155
38156 COND_MONOLITHIC_0_SHARED_1="#"
38157 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38158 COND_MONOLITHIC_0_SHARED_1=""
38159 fi
38160
38161 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38162 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38163 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38164 fi
38165
38166 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38167 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38168 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38169 fi
38170
38171 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38172 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38173 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38174 fi
38175
38176 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38177 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38178 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38179 fi
38180
38181 COND_MONOLITHIC_0_USE_ODBC_1="#"
38182 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
38183 COND_MONOLITHIC_0_USE_ODBC_1=""
38184 fi
38185
38186 COND_MONOLITHIC_1="#"
38187 if test "x$MONOLITHIC" = "x1" ; then
38188 COND_MONOLITHIC_1=""
38189 fi
38190
38191 COND_MONOLITHIC_1_SHARED_0="#"
38192 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38193 COND_MONOLITHIC_1_SHARED_0=""
38194 fi
38195
38196 COND_MONOLITHIC_1_SHARED_1="#"
38197 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38198 COND_MONOLITHIC_1_SHARED_1=""
38199 fi
38200
38201 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38202 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38203 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38204 fi
38205
38206 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38207 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38208 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38209 fi
38210
38211 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38212 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38213 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38214 fi
38215
38216 COND_PLATFORM_MACOSX_1="#"
38217 if test "x$PLATFORM_MACOSX" = "x1" ; then
38218 COND_PLATFORM_MACOSX_1=""
38219 fi
38220
38221 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38222 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38223 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38224 fi
38225
38226 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38227 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38228 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38229 fi
38230
38231 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38232 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38233 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38234 fi
38235
38236 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38237 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38238 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38239 fi
38240
38241 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38242 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38243 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38244 fi
38245
38246 COND_PLATFORM_MAC_1="#"
38247 if test "x$PLATFORM_MAC" = "x1" ; then
38248 COND_PLATFORM_MAC_1=""
38249 fi
38250
38251 COND_PLATFORM_OS2_1="#"
38252 if test "x$PLATFORM_OS2" = "x1" ; then
38253 COND_PLATFORM_OS2_1=""
38254 fi
38255
38256 COND_PLATFORM_UNIX_0="#"
38257 if test "x$PLATFORM_UNIX" = "x0" ; then
38258 COND_PLATFORM_UNIX_0=""
38259 fi
38260
38261 COND_PLATFORM_UNIX_1="#"
38262 if test "x$PLATFORM_UNIX" = "x1" ; then
38263 COND_PLATFORM_UNIX_1=""
38264 fi
38265
38266 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38267 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38268 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38269 fi
38270
38271 COND_PLATFORM_WIN32_0="#"
38272 if test "x$PLATFORM_WIN32" = "x0" ; then
38273 COND_PLATFORM_WIN32_0=""
38274 fi
38275
38276 COND_PLATFORM_WIN32_1="#"
38277 if test "x$PLATFORM_WIN32" = "x1" ; then
38278 COND_PLATFORM_WIN32_1=""
38279 fi
38280
38281 COND_SHARED_0="#"
38282 if test "x$SHARED" = "x0" ; then
38283 COND_SHARED_0=""
38284 fi
38285
38286 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38287 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38288 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38289 fi
38290
38291 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38292 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38293 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38294 fi
38295
38296 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38297 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38298 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38299 fi
38300
38301 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38302 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38303 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38304 fi
38305
38306 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38307 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38308 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38309 fi
38310
38311 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38312 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38313 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38314 fi
38315
38316 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38317 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38318 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38319 fi
38320
38321 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38322 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38323 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38324 fi
38325
38326 COND_SHARED_1="#"
38327 if test "x$SHARED" = "x1" ; then
38328 COND_SHARED_1=""
38329 fi
38330
38331 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38332 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38333 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38334 fi
38335
38336 COND_TOOLKIT_COCOA="#"
38337 if test "x$TOOLKIT" = "xCOCOA" ; then
38338 COND_TOOLKIT_COCOA=""
38339 fi
38340
38341 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38342 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38343 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
38344 fi
38345
38346 COND_TOOLKIT_GTK="#"
38347 if test "x$TOOLKIT" = "xGTK" ; then
38348 COND_TOOLKIT_GTK=""
38349 fi
38350
38351 COND_TOOLKIT_GTK_USE_GUI_1="#"
38352 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38353 COND_TOOLKIT_GTK_USE_GUI_1=""
38354 fi
38355
38356 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38357 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38358 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
38359 fi
38360
38361 COND_TOOLKIT_MAC="#"
38362 if test "x$TOOLKIT" = "xMAC" ; then
38363 COND_TOOLKIT_MAC=""
38364 fi
38365
38366 COND_TOOLKIT_MAC_USE_GUI_1="#"
38367 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38368 COND_TOOLKIT_MAC_USE_GUI_1=""
38369 fi
38370
38371 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38372 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38373 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
38374 fi
38375
38376 COND_TOOLKIT_MGL="#"
38377 if test "x$TOOLKIT" = "xMGL" ; then
38378 COND_TOOLKIT_MGL=""
38379 fi
38380
38381 COND_TOOLKIT_MGL_USE_GUI_1="#"
38382 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38383 COND_TOOLKIT_MGL_USE_GUI_1=""
38384 fi
38385
38386 COND_TOOLKIT_MOTIF="#"
38387 if test "x$TOOLKIT" = "xMOTIF" ; then
38388 COND_TOOLKIT_MOTIF=""
38389 fi
38390
38391 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38392 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38393 COND_TOOLKIT_MOTIF_USE_GUI_1=""
38394 fi
38395
38396 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38397 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38398 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
38399 fi
38400
38401 COND_TOOLKIT_MSW="#"
38402 if test "x$TOOLKIT" = "xMSW" ; then
38403 COND_TOOLKIT_MSW=""
38404 fi
38405
38406 COND_TOOLKIT_MSW_USE_GUI_1="#"
38407 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38408 COND_TOOLKIT_MSW_USE_GUI_1=""
38409 fi
38410
38411 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38412 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38413 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
38414 fi
38415
38416 COND_TOOLKIT_PM="#"
38417 if test "x$TOOLKIT" = "xPM" ; then
38418 COND_TOOLKIT_PM=""
38419 fi
38420
38421 COND_TOOLKIT_PM_USE_GUI_1="#"
38422 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38423 COND_TOOLKIT_PM_USE_GUI_1=""
38424 fi
38425
38426 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38427 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38428 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38429 fi
38430
38431 COND_TOOLKIT_X11="#"
38432 if test "x$TOOLKIT" = "xX11" ; then
38433 COND_TOOLKIT_X11=""
38434 fi
38435
38436 COND_TOOLKIT_X11_USE_GUI_1="#"
38437 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38438 COND_TOOLKIT_X11_USE_GUI_1=""
38439 fi
38440
38441 COND_UNICODE_1="#"
38442 if test "x$UNICODE" = "x1" ; then
38443 COND_UNICODE_1=""
38444 fi
38445
38446 COND_USE_EXCEPTIONS_0="#"
38447 if test "x$USE_EXCEPTIONS" = "x0" ; then
38448 COND_USE_EXCEPTIONS_0=""
38449 fi
38450
38451 COND_USE_EXCEPTIONS_1="#"
38452 if test "x$USE_EXCEPTIONS" = "x1" ; then
38453 COND_USE_EXCEPTIONS_1=""
38454 fi
38455
38456 COND_USE_GUI_0="#"
38457 if test "x$USE_GUI" = "x0" ; then
38458 COND_USE_GUI_0=""
38459 fi
38460
38461 COND_USE_GUI_1="#"
38462 if test "x$USE_GUI" = "x1" ; then
38463 COND_USE_GUI_1=""
38464 fi
38465
38466 COND_USE_GUI_1_WXUNIV_0="#"
38467 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38468 COND_USE_GUI_1_WXUNIV_0=""
38469 fi
38470
38471 COND_USE_GUI_1_WXUNIV_1="#"
38472 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38473 COND_USE_GUI_1_WXUNIV_1=""
38474 fi
38475
38476 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38477 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38478 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38479 fi
38480
38481 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38482 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38483 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38484 fi
38485
38486 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38487 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38488 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38489 fi
38490
38491 COND_USE_ODBC_1="#"
38492 if test "x$USE_ODBC" = "x1" ; then
38493 COND_USE_ODBC_1=""
38494 fi
38495
38496 COND_USE_SOSYMLINKS_1="#"
38497 if test "x$USE_SOSYMLINKS" = "x1" ; then
38498 COND_USE_SOSYMLINKS_1=""
38499 fi
38500
38501 COND_USE_SOVERLINUX_1="#"
38502 if test "x$USE_SOVERLINUX" = "x1" ; then
38503 COND_USE_SOVERLINUX_1=""
38504 fi
38505
38506 COND_USE_SOVERSION_0="#"
38507 if test "x$USE_SOVERSION" = "x0" ; then
38508 COND_USE_SOVERSION_0=""
38509 fi
38510
38511 COND_USE_SOVERSOLARIS_1="#"
38512 if test "x$USE_SOVERSOLARIS" = "x1" ; then
38513 COND_USE_SOVERSOLARIS_1=""
38514 fi
38515
38516 COND_WXUNIV_1="#"
38517 if test "x$WXUNIV" = "x1" ; then
38518 COND_WXUNIV_1=""
38519 fi
38520
38521 COND_WXUSE_EXPAT_BUILTIN="#"
38522 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38523 COND_WXUSE_EXPAT_BUILTIN=""
38524 fi
38525
38526 COND_WXUSE_LIBJPEG_BUILTIN="#"
38527 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38528 COND_WXUSE_LIBJPEG_BUILTIN=""
38529 fi
38530
38531 COND_WXUSE_LIBPNG_BUILTIN="#"
38532 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38533 COND_WXUSE_LIBPNG_BUILTIN=""
38534 fi
38535
38536 COND_WXUSE_LIBTIFF_BUILTIN="#"
38537 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38538 COND_WXUSE_LIBTIFF_BUILTIN=""
38539 fi
38540
38541 COND_WXUSE_ODBC_BUILTIN="#"
38542 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38543 COND_WXUSE_ODBC_BUILTIN=""
38544 fi
38545
38546 COND_WXUSE_REGEX_BUILTIN="#"
38547 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38548 COND_WXUSE_REGEX_BUILTIN=""
38549 fi
38550
38551 COND_WXUSE_ZLIB_BUILTIN="#"
38552 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38553 COND_WXUSE_ZLIB_BUILTIN=""
38554 fi
38555
38556
38557
38558
38559
38560 if test $GCC_PCH = 1 ; then
38561 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38562 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
38563 else
38564 case "${host}" in
38565 powerpc-*-darwin* )
38566 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38567 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
38568 ;;
38569 esac
38570 fi
38571
38572
38573 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38674 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38675 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38676 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38677 echo $ECHO_N "(cached) $ECHO_C" >&6
38678 else
38679 cat >conftest.make <<\_ACEOF
38680 all:
38681 @echo 'ac_maketemp="$(MAKE)"'
38682 _ACEOF
38683 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38684 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38685 if test -n "$ac_maketemp"; then
38686 eval ac_cv_prog_make_${ac_make}_set=yes
38687 else
38688 eval ac_cv_prog_make_${ac_make}_set=no
38689 fi
38690 rm -f conftest.make
38691 fi
38692 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38693 echo "$as_me:$LINENO: result: yes" >&5
38694 echo "${ECHO_T}yes" >&6
38695 SET_MAKE=
38696 else
38697 echo "$as_me:$LINENO: result: no" >&5
38698 echo "${ECHO_T}no" >&6
38699 SET_MAKE="MAKE=${MAKE-make}"
38700 fi
38701
38702
38703 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
38704 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
38705 fi
38706
38707 ac_config_headers="$ac_config_headers setup.h"
38708
38709
38710 ac_config_files="$ac_config_files wx-config version-script Makefile"
38711
38712
38713 ac_config_commands="$ac_config_commands default"
38714
38715
38716
38717 if test "$wxUSE_GUI" = "yes"; then
38718 SUBDIRS="samples demos utils contrib"
38719 else SUBDIRS="samples utils"
38720 fi
38721
38722 for subdir in `echo $SUBDIRS`; do
38723 if test -d ${srcdir}/${subdir} ; then
38724 if test "$wxUSE_GUI" = "yes"; then
38725 if test ${subdir} = "samples"; then
38726 makefiles="samples/Makefile.in $makefiles"
38727 for sample in `echo $SAMPLES_SUBDIRS`; do
38728 if test -d $srcdir/samples/$sample; then
38729 makefiles="samples/$sample/Makefile.in $makefiles"
38730 fi
38731 done
38732 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
38733 fi
38734 else if test ${subdir} = "samples"; then
38735 makefiles="samples/Makefile.in samples/console/Makefile.in"
38736 else makefiles="utils/HelpGen/Makefile.in \
38737 utils/HelpGen/src/Makefile.in \
38738 utils/tex2rtf/Makefile.in \
38739 utils/tex2rtf/src/Makefile.in"
38740 fi
38741 fi
38742
38743 for mkin in $makefiles ; do
38744 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
38745 ac_config_files="$ac_config_files $mk"
38746
38747 done
38748 fi
38749 done
38750
38751
38752 cat >confcache <<\_ACEOF
38753 # This file is a shell script that caches the results of configure
38754 # tests run on this system so they can be shared between configure
38755 # scripts and configure runs, see configure's option --config-cache.
38756 # It is not useful on other systems. If it contains results you don't
38757 # want to keep, you may remove or edit it.
38758 #
38759 # config.status only pays attention to the cache file if you give it
38760 # the --recheck option to rerun configure.
38761 #
38762 # `ac_cv_env_foo' variables (set or unset) will be overridden when
38763 # loading this file, other *unset* `ac_cv_foo' will be assigned the
38764 # following values.
38765
38766 _ACEOF
38767
38768 # The following way of writing the cache mishandles newlines in values,
38769 # but we know of no workaround that is simple, portable, and efficient.
38770 # So, don't put newlines in cache variables' values.
38771 # Ultrix sh set writes to stderr and can't be redirected directly,
38772 # and sets the high bit in the cache file unless we assign to the vars.
38773 {
38774 (set) 2>&1 |
38775 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38776 *ac_space=\ *)
38777 # `set' does not quote correctly, so add quotes (double-quote
38778 # substitution turns \\\\ into \\, and sed turns \\ into \).
38779 sed -n \
38780 "s/'/'\\\\''/g;
38781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38782 ;;
38783 *)
38784 # `set' quotes correctly as required by POSIX, so do not add quotes.
38785 sed -n \
38786 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38787 ;;
38788 esac;
38789 } |
38790 sed '
38791 t clear
38792 : clear
38793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38794 t end
38795 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38796 : end' >>confcache
38797 if diff $cache_file confcache >/dev/null 2>&1; then :; else
38798 if test -w $cache_file; then
38799 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38800 cat confcache >$cache_file
38801 else
38802 echo "not updating unwritable cache $cache_file"
38803 fi
38804 fi
38805 rm -f confcache
38806
38807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38808 # Let make expand exec_prefix.
38809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38810
38811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
38812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38813 # trailing colons and then remove the whole line if VPATH becomes empty
38814 # (actually we leave an empty line to preserve line numbers).
38815 if test "x$srcdir" = x.; then
38816 ac_vpsub='/^[ ]*VPATH[ ]*=/{
38817 s/:*\$(srcdir):*/:/;
38818 s/:*\${srcdir}:*/:/;
38819 s/:*@srcdir@:*/:/;
38820 s/^\([^=]*=[ ]*\):*/\1/;
38821 s/:*$//;
38822 s/^[^=]*=[ ]*$//;
38823 }'
38824 fi
38825
38826 DEFS=-DHAVE_CONFIG_H
38827
38828 ac_libobjs=
38829 ac_ltlibobjs=
38830 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38831 # 1. Remove the extension, and $U if already installed.
38832 ac_i=`echo "$ac_i" |
38833 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
38834 # 2. Add them.
38835 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38836 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38837 done
38838 LIBOBJS=$ac_libobjs
38839
38840 LTLIBOBJS=$ac_ltlibobjs
38841
38842
38843
38844 : ${CONFIG_STATUS=./config.status}
38845 ac_clean_files_save=$ac_clean_files
38846 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38847 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38848 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38849 cat >$CONFIG_STATUS <<_ACEOF
38850 #! $SHELL
38851 # Generated by $as_me.
38852 # Run this file to recreate the current configuration.
38853 # Compiler output produced by configure, useful for debugging
38854 # configure, is in config.log if it exists.
38855
38856 debug=false
38857 ac_cs_recheck=false
38858 ac_cs_silent=false
38859 SHELL=\${CONFIG_SHELL-$SHELL}
38860 _ACEOF
38861
38862 cat >>$CONFIG_STATUS <<\_ACEOF
38863 ## --------------------- ##
38864 ## M4sh Initialization. ##
38865 ## --------------------- ##
38866
38867 # Be Bourne compatible
38868 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38869 emulate sh
38870 NULLCMD=:
38871 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38872 # is contrary to our usage. Disable this feature.
38873 alias -g '${1+"$@"}'='"$@"'
38874 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38875 set -o posix
38876 fi
38877 DUALCASE=1; export DUALCASE # for MKS sh
38878
38879 # Support unset when possible.
38880 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38881 as_unset=unset
38882 else
38883 as_unset=false
38884 fi
38885
38886
38887 # Work around bugs in pre-3.0 UWIN ksh.
38888 $as_unset ENV MAIL MAILPATH
38889 PS1='$ '
38890 PS2='> '
38891 PS4='+ '
38892
38893 # NLS nuisances.
38894 for as_var in \
38895 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38896 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38897 LC_TELEPHONE LC_TIME
38898 do
38899 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38900 eval $as_var=C; export $as_var
38901 else
38902 $as_unset $as_var
38903 fi
38904 done
38905
38906 # Required to use basename.
38907 if expr a : '\(a\)' >/dev/null 2>&1; then
38908 as_expr=expr
38909 else
38910 as_expr=false
38911 fi
38912
38913 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38914 as_basename=basename
38915 else
38916 as_basename=false
38917 fi
38918
38919
38920 # Name of the executable.
38921 as_me=`$as_basename "$0" ||
38922 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38923 X"$0" : 'X\(//\)$' \| \
38924 X"$0" : 'X\(/\)$' \| \
38925 . : '\(.\)' 2>/dev/null ||
38926 echo X/"$0" |
38927 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38928 /^X\/\(\/\/\)$/{ s//\1/; q; }
38929 /^X\/\(\/\).*/{ s//\1/; q; }
38930 s/.*/./; q'`
38931
38932
38933 # PATH needs CR, and LINENO needs CR and PATH.
38934 # Avoid depending upon Character Ranges.
38935 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38936 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38937 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38938 as_cr_digits='0123456789'
38939 as_cr_alnum=$as_cr_Letters$as_cr_digits
38940
38941 # The user is always right.
38942 if test "${PATH_SEPARATOR+set}" != set; then
38943 echo "#! /bin/sh" >conf$$.sh
38944 echo "exit 0" >>conf$$.sh
38945 chmod +x conf$$.sh
38946 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38947 PATH_SEPARATOR=';'
38948 else
38949 PATH_SEPARATOR=:
38950 fi
38951 rm -f conf$$.sh
38952 fi
38953
38954
38955 as_lineno_1=$LINENO
38956 as_lineno_2=$LINENO
38957 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38958 test "x$as_lineno_1" != "x$as_lineno_2" &&
38959 test "x$as_lineno_3" = "x$as_lineno_2" || {
38960 # Find who we are. Look in the path if we contain no path at all
38961 # relative or not.
38962 case $0 in
38963 *[\\/]* ) as_myself=$0 ;;
38964 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38965 for as_dir in $PATH
38966 do
38967 IFS=$as_save_IFS
38968 test -z "$as_dir" && as_dir=.
38969 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38970 done
38971
38972 ;;
38973 esac
38974 # We did not find ourselves, most probably we were run as `sh COMMAND'
38975 # in which case we are not to be found in the path.
38976 if test "x$as_myself" = x; then
38977 as_myself=$0
38978 fi
38979 if test ! -f "$as_myself"; then
38980 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
38981 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
38982 { (exit 1); exit 1; }; }
38983 fi
38984 case $CONFIG_SHELL in
38985 '')
38986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38987 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
38988 do
38989 IFS=$as_save_IFS
38990 test -z "$as_dir" && as_dir=.
38991 for as_base in sh bash ksh sh5; do
38992 case $as_dir in
38993 /*)
38994 if ("$as_dir/$as_base" -c '
38995 as_lineno_1=$LINENO
38996 as_lineno_2=$LINENO
38997 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38998 test "x$as_lineno_1" != "x$as_lineno_2" &&
38999 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39000 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39001 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39002 CONFIG_SHELL=$as_dir/$as_base
39003 export CONFIG_SHELL
39004 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39005 fi;;
39006 esac
39007 done
39008 done
39009 ;;
39010 esac
39011
39012 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39013 # uniformly replaced by the line number. The first 'sed' inserts a
39014 # line-number line before each line; the second 'sed' does the real
39015 # work. The second script uses 'N' to pair each line-number line
39016 # with the numbered line, and appends trailing '-' during
39017 # substitution so that $LINENO is not a special case at line end.
39018 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39019 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39020 sed '=' <$as_myself |
39021 sed '
39022 N
39023 s,$,-,
39024 : loop
39025 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39026 t loop
39027 s,-$,,
39028 s,^['$as_cr_digits']*\n,,
39029 ' >$as_me.lineno &&
39030 chmod +x $as_me.lineno ||
39031 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39032 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39033 { (exit 1); exit 1; }; }
39034
39035 # Don't try to exec as it changes $[0], causing all sort of problems
39036 # (the dirname of $[0] is not the place where we might find the
39037 # original and so on. Autoconf is especially sensible to this).
39038 . ./$as_me.lineno
39039 # Exit status is that of the last command.
39040 exit
39041 }
39042
39043
39044 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39045 *c*,-n*) ECHO_N= ECHO_C='
39046 ' ECHO_T=' ' ;;
39047 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39048 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39049 esac
39050
39051 if expr a : '\(a\)' >/dev/null 2>&1; then
39052 as_expr=expr
39053 else
39054 as_expr=false
39055 fi
39056
39057 rm -f conf$$ conf$$.exe conf$$.file
39058 echo >conf$$.file
39059 if ln -s conf$$.file conf$$ 2>/dev/null; then
39060 # We could just check for DJGPP; but this test a) works b) is more generic
39061 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39062 if test -f conf$$.exe; then
39063 # Don't use ln at all; we don't have any links
39064 as_ln_s='cp -p'
39065 else
39066 as_ln_s='ln -s'
39067 fi
39068 elif ln conf$$.file conf$$ 2>/dev/null; then
39069 as_ln_s=ln
39070 else
39071 as_ln_s='cp -p'
39072 fi
39073 rm -f conf$$ conf$$.exe conf$$.file
39074
39075 if mkdir -p . 2>/dev/null; then
39076 as_mkdir_p=:
39077 else
39078 test -d ./-p && rmdir ./-p
39079 as_mkdir_p=false
39080 fi
39081
39082 as_executable_p="test -f"
39083
39084 # Sed expression to map a string onto a valid CPP name.
39085 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39086
39087 # Sed expression to map a string onto a valid variable name.
39088 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39089
39090
39091 # IFS
39092 # We need space, tab and new line, in precisely that order.
39093 as_nl='
39094 '
39095 IFS=" $as_nl"
39096
39097 # CDPATH.
39098 $as_unset CDPATH
39099
39100 exec 6>&1
39101
39102 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39103 # report actual input values of CONFIG_FILES etc. instead of their
39104 # values after options handling. Logging --version etc. is OK.
39105 exec 5>>config.log
39106 {
39107 echo
39108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39109 ## Running $as_me. ##
39110 _ASBOX
39111 } >&5
39112 cat >&5 <<_CSEOF
39113
39114 This file was extended by wxWindows $as_me 2.5.1, which was
39115 generated by GNU Autoconf 2.59. Invocation command line was
39116
39117 CONFIG_FILES = $CONFIG_FILES
39118 CONFIG_HEADERS = $CONFIG_HEADERS
39119 CONFIG_LINKS = $CONFIG_LINKS
39120 CONFIG_COMMANDS = $CONFIG_COMMANDS
39121 $ $0 $@
39122
39123 _CSEOF
39124 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39125 echo >&5
39126 _ACEOF
39127
39128 # Files that config.status was made for.
39129 if test -n "$ac_config_files"; then
39130 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39131 fi
39132
39133 if test -n "$ac_config_headers"; then
39134 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39135 fi
39136
39137 if test -n "$ac_config_links"; then
39138 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39139 fi
39140
39141 if test -n "$ac_config_commands"; then
39142 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39143 fi
39144
39145 cat >>$CONFIG_STATUS <<\_ACEOF
39146
39147 ac_cs_usage="\
39148 \`$as_me' instantiates files from templates according to the
39149 current configuration.
39150
39151 Usage: $0 [OPTIONS] [FILE]...
39152
39153 -h, --help print this help, then exit
39154 -V, --version print version number, then exit
39155 -q, --quiet do not print progress messages
39156 -d, --debug don't remove temporary files
39157 --recheck update $as_me by reconfiguring in the same conditions
39158 --file=FILE[:TEMPLATE]
39159 instantiate the configuration file FILE
39160 --header=FILE[:TEMPLATE]
39161 instantiate the configuration header FILE
39162
39163 Configuration files:
39164 $config_files
39165
39166 Configuration headers:
39167 $config_headers
39168
39169 Configuration commands:
39170 $config_commands
39171
39172 Report bugs to <bug-autoconf@gnu.org>."
39173 _ACEOF
39174
39175 cat >>$CONFIG_STATUS <<_ACEOF
39176 ac_cs_version="\\
39177 wxWindows config.status 2.5.1
39178 configured by $0, generated by GNU Autoconf 2.59,
39179 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39180
39181 Copyright (C) 2003 Free Software Foundation, Inc.
39182 This config.status script is free software; the Free Software Foundation
39183 gives unlimited permission to copy, distribute and modify it."
39184 srcdir=$srcdir
39185 INSTALL="$INSTALL"
39186 _ACEOF
39187
39188 cat >>$CONFIG_STATUS <<\_ACEOF
39189 # If no file are specified by the user, then we need to provide default
39190 # value. By we need to know if files were specified by the user.
39191 ac_need_defaults=:
39192 while test $# != 0
39193 do
39194 case $1 in
39195 --*=*)
39196 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39197 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39198 ac_shift=:
39199 ;;
39200 -*)
39201 ac_option=$1
39202 ac_optarg=$2
39203 ac_shift=shift
39204 ;;
39205 *) # This is not an option, so the user has probably given explicit
39206 # arguments.
39207 ac_option=$1
39208 ac_need_defaults=false;;
39209 esac
39210
39211 case $ac_option in
39212 # Handling of the options.
39213 _ACEOF
39214 cat >>$CONFIG_STATUS <<\_ACEOF
39215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39216 ac_cs_recheck=: ;;
39217 --version | --vers* | -V )
39218 echo "$ac_cs_version"; exit 0 ;;
39219 --he | --h)
39220 # Conflict between --help and --header
39221 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39222 Try \`$0 --help' for more information." >&5
39223 echo "$as_me: error: ambiguous option: $1
39224 Try \`$0 --help' for more information." >&2;}
39225 { (exit 1); exit 1; }; };;
39226 --help | --hel | -h )
39227 echo "$ac_cs_usage"; exit 0 ;;
39228 --debug | --d* | -d )
39229 debug=: ;;
39230 --file | --fil | --fi | --f )
39231 $ac_shift
39232 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39233 ac_need_defaults=false;;
39234 --header | --heade | --head | --hea )
39235 $ac_shift
39236 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39237 ac_need_defaults=false;;
39238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39240 ac_cs_silent=: ;;
39241
39242 # This is an error.
39243 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39244 Try \`$0 --help' for more information." >&5
39245 echo "$as_me: error: unrecognized option: $1
39246 Try \`$0 --help' for more information." >&2;}
39247 { (exit 1); exit 1; }; } ;;
39248
39249 *) ac_config_targets="$ac_config_targets $1" ;;
39250
39251 esac
39252 shift
39253 done
39254
39255 ac_configure_extra_args=
39256
39257 if $ac_cs_silent; then
39258 exec 6>/dev/null
39259 ac_configure_extra_args="$ac_configure_extra_args --silent"
39260 fi
39261
39262 _ACEOF
39263 cat >>$CONFIG_STATUS <<_ACEOF
39264 if \$ac_cs_recheck; then
39265 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39266 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39267 fi
39268
39269 _ACEOF
39270
39271 cat >>$CONFIG_STATUS <<_ACEOF
39272 #
39273 # INIT-COMMANDS section.
39274 #
39275
39276
39277 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39278 LN_S="${LN_S}"
39279
39280
39281
39282 _ACEOF
39283
39284
39285
39286 cat >>$CONFIG_STATUS <<\_ACEOF
39287 for ac_config_target in $ac_config_targets
39288 do
39289 case "$ac_config_target" in
39290 # Handling of arguments.
39291 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39292 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39293 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39294 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
39295 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39296 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39297 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39298 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39299 { (exit 1); exit 1; }; };;
39300 esac
39301 done
39302
39303 # If the user did not use the arguments to specify the items to instantiate,
39304 # then the envvar interface is used. Set only those that are not.
39305 # We use the long form for the default assignment because of an extremely
39306 # bizarre bug on SunOS 4.1.3.
39307 if $ac_need_defaults; then
39308 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39309 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39310 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39311 fi
39312
39313 # Have a temporary directory for convenience. Make it in the build tree
39314 # simply because there is no reason to put it here, and in addition,
39315 # creating and moving files from /tmp can sometimes cause problems.
39316 # Create a temporary directory, and hook for its removal unless debugging.
39317 $debug ||
39318 {
39319 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39320 trap '{ (exit 1); exit 1; }' 1 2 13 15
39321 }
39322
39323 # Create a (secure) tmp directory for tmp files.
39324
39325 {
39326 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39327 test -n "$tmp" && test -d "$tmp"
39328 } ||
39329 {
39330 tmp=./confstat$$-$RANDOM
39331 (umask 077 && mkdir $tmp)
39332 } ||
39333 {
39334 echo "$me: cannot create a temporary directory in ." >&2
39335 { (exit 1); exit 1; }
39336 }
39337
39338 _ACEOF
39339
39340 cat >>$CONFIG_STATUS <<_ACEOF
39341
39342 #
39343 # CONFIG_FILES section.
39344 #
39345
39346 # No need to generate the scripts if there are no CONFIG_FILES.
39347 # This happens for instance when ./config.status config.h
39348 if test -n "\$CONFIG_FILES"; then
39349 # Protect against being on the right side of a sed subst in config.status.
39350 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39351 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39352 s,@SHELL@,$SHELL,;t t
39353 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39354 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39355 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39356 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39357 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39358 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39359 s,@exec_prefix@,$exec_prefix,;t t
39360 s,@prefix@,$prefix,;t t
39361 s,@program_transform_name@,$program_transform_name,;t t
39362 s,@bindir@,$bindir,;t t
39363 s,@sbindir@,$sbindir,;t t
39364 s,@libexecdir@,$libexecdir,;t t
39365 s,@datadir@,$datadir,;t t
39366 s,@sysconfdir@,$sysconfdir,;t t
39367 s,@sharedstatedir@,$sharedstatedir,;t t
39368 s,@localstatedir@,$localstatedir,;t t
39369 s,@libdir@,$libdir,;t t
39370 s,@includedir@,$includedir,;t t
39371 s,@oldincludedir@,$oldincludedir,;t t
39372 s,@infodir@,$infodir,;t t
39373 s,@mandir@,$mandir,;t t
39374 s,@build_alias@,$build_alias,;t t
39375 s,@host_alias@,$host_alias,;t t
39376 s,@target_alias@,$target_alias,;t t
39377 s,@DEFS@,$DEFS,;t t
39378 s,@ECHO_C@,$ECHO_C,;t t
39379 s,@ECHO_N@,$ECHO_N,;t t
39380 s,@ECHO_T@,$ECHO_T,;t t
39381 s,@LIBS@,$LIBS,;t t
39382 s,@build@,$build,;t t
39383 s,@build_cpu@,$build_cpu,;t t
39384 s,@build_vendor@,$build_vendor,;t t
39385 s,@build_os@,$build_os,;t t
39386 s,@host@,$host,;t t
39387 s,@host_cpu@,$host_cpu,;t t
39388 s,@host_vendor@,$host_vendor,;t t
39389 s,@host_os@,$host_os,;t t
39390 s,@target@,$target,;t t
39391 s,@target_cpu@,$target_cpu,;t t
39392 s,@target_vendor@,$target_vendor,;t t
39393 s,@target_os@,$target_os,;t t
39394 s,@CC@,$CC,;t t
39395 s,@CFLAGS@,$CFLAGS,;t t
39396 s,@LDFLAGS@,$LDFLAGS,;t t
39397 s,@CPPFLAGS@,$CPPFLAGS,;t t
39398 s,@ac_ct_CC@,$ac_ct_CC,;t t
39399 s,@EXEEXT@,$EXEEXT,;t t
39400 s,@OBJEXT@,$OBJEXT,;t t
39401 s,@CPP@,$CPP,;t t
39402 s,@EGREP@,$EGREP,;t t
39403 s,@CXX@,$CXX,;t t
39404 s,@CXXFLAGS@,$CXXFLAGS,;t t
39405 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39406 s,@RANLIB@,$RANLIB,;t t
39407 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39408 s,@AR@,$AR,;t t
39409 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39410 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39411 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39412 s,@STRIP@,$STRIP,;t t
39413 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
39414 s,@LN_S@,$LN_S,;t t
39415 s,@CXXCPP@,$CXXCPP,;t t
39416 s,@subdirs@,$subdirs,;t t
39417 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39418 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
39419 s,@GTK_LIBS@,$GTK_LIBS,;t t
39420 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
39421 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
39422 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
39423 s,@X_CFLAGS@,$X_CFLAGS,;t t
39424 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
39425 s,@X_LIBS@,$X_LIBS,;t t
39426 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
39427 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
39428 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
39429 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
39430 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
39431 s,@RESCOMP@,$RESCOMP,;t t
39432 s,@DEREZ@,$DEREZ,;t t
39433 s,@SETFILE@,$SETFILE,;t t
39434 s,@LIBICONV@,$LIBICONV,;t t
39435 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
39436 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
39437 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
39438 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
39439 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
39440 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
39441 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
39442 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
39443 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
39444 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
39445 s,@VENDOR@,$VENDOR,;t t
39446 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
39447 s,@WXUNIV@,$WXUNIV,;t t
39448 s,@MONOLITHIC@,$MONOLITHIC,;t t
39449 s,@EXTRALIBS@,$EXTRALIBS,;t t
39450 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
39451 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
39452 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
39453 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
39454 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
39455 s,@UNICODE@,$UNICODE,;t t
39456 s,@BUILD@,$BUILD,;t t
39457 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
39458 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
39459 s,@SHARED@,$SHARED,;t t
39460 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
39461 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
39462 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
39463 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
39464 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
39465 s,@SET_MAKE@,$SET_MAKE,;t t
39466 s,@MAKE_SET@,$MAKE_SET,;t t
39467 s,@ac_ct_AR@,$ac_ct_AR,;t t
39468 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39469 s,@NM@,$NM,;t t
39470 s,@ac_ct_NM@,$ac_ct_NM,;t t
39471 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
39472 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
39473 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
39474 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
39475 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
39476 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
39477 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
39478 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
39479 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
39480 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
39481 s,@LIBPREFIX@,$LIBPREFIX,;t t
39482 s,@DLLPREFIX@,$DLLPREFIX,;t t
39483 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
39484 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
39485 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
39486 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
39487 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
39488 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
39489 s,@PIC_FLAG@,$PIC_FLAG,;t t
39490 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
39491 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
39492 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
39493 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
39494 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
39495 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
39496 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
39497 s,@GCC_PCH@,$GCC_PCH,;t t
39498 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
39499 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
39500 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
39501 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
39502 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
39503 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
39504 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
39505 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
39506 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
39507 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
39508 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
39509 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
39510 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
39511 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
39512 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
39513 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
39514 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
39515 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
39516 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
39517 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
39518 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
39519 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
39520 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
39521 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
39522 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
39523 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
39524 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
39525 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
39526 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
39527 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
39528 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
39529 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
39530 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
39531 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
39532 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
39533 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
39534 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
39535 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
39536 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
39537 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
39538 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
39539 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
39540 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
39541 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
39542 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39543 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39544 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39545 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
39546 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
39547 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
39548 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
39549 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
39550 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
39551 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
39552 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
39553 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
39554 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
39555 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
39556 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
39557 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
39558 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
39559 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
39560 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
39561 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
39562 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
39563 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
39564 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
39565 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
39566 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
39567 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
39568 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
39569 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
39570 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
39571 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
39572 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
39573 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
39574 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
39575 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
39576 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
39577 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
39578 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
39579 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39580 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39581 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39582 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
39583 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
39584 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
39585 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
39586 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
39587 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
39588 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
39589 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
39590 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
39591 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
39592 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
39593 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
39594 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
39595 s,@PATH_IFS@,$PATH_IFS,;t t
39596 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
39597 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
39598 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
39599 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
39600 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
39601 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
39602 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
39603 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
39604 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
39605 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
39606 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
39607 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
39608 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
39609 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
39610 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
39611 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
39612 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
39613 s,@WX_ALL@,$WX_ALL,;t t
39614 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
39615 s,@SHARED_LD@,$SHARED_LD,;t t
39616 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
39617 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
39618 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
39619 s,@USE_GUI@,$USE_GUI,;t t
39620 s,@AFMINSTALL@,$AFMINSTALL,;t t
39621 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
39622 s,@TOOLKIT@,$TOOLKIT,;t t
39623 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
39624 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
39625 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
39626 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
39627 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
39628 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
39629 s,@cross_compiling@,$cross_compiling,;t t
39630 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
39631 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
39632 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
39633 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
39634 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
39635 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
39636 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
39637 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
39638 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
39639 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
39640 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
39641 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
39642 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
39643 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
39644 s,@GUIDIST@,$GUIDIST,;t t
39645 s,@PORT_FILES@,$PORT_FILES,;t t
39646 s,@DISTDIR@,$DISTDIR,;t t
39647 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
39648 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
39649 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
39650 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
39651 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
39652 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
39653 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
39654 s,@RESFLAGS@,$RESFLAGS,;t t
39655 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
39656 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
39657 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
39658 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
39659 s,@MACRESCOMP@,$MACRESCOMP,;t t
39660 s,@MACSETFILE@,$MACSETFILE,;t t
39661 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
39662 s,@GCC@,$GCC,;t t
39663 s,@DLLTOOL@,$DLLTOOL,;t t
39664 s,@AS@,$AS,;t t
39665 s,@LD@,$LD,;t t
39666 s,@MAKEINFO@,$MAKEINFO,;t t
39667 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
39668 s,@LIBOBJS@,$LIBOBJS,;t t
39669 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39670 CEOF
39671
39672 _ACEOF
39673
39674 cat >>$CONFIG_STATUS <<\_ACEOF
39675 # Split the substitutions into bite-sized pieces for seds with
39676 # small command number limits, like on Digital OSF/1 and HP-UX.
39677 ac_max_sed_lines=48
39678 ac_sed_frag=1 # Number of current file.
39679 ac_beg=1 # First line for current file.
39680 ac_end=$ac_max_sed_lines # Line after last line for current file.
39681 ac_more_lines=:
39682 ac_sed_cmds=
39683 while $ac_more_lines; do
39684 if test $ac_beg -gt 1; then
39685 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39686 else
39687 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39688 fi
39689 if test ! -s $tmp/subs.frag; then
39690 ac_more_lines=false
39691 else
39692 # The purpose of the label and of the branching condition is to
39693 # speed up the sed processing (if there are no `@' at all, there
39694 # is no need to browse any of the substitutions).
39695 # These are the two extra sed commands mentioned above.
39696 (echo ':t
39697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39698 if test -z "$ac_sed_cmds"; then
39699 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39700 else
39701 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39702 fi
39703 ac_sed_frag=`expr $ac_sed_frag + 1`
39704 ac_beg=$ac_end
39705 ac_end=`expr $ac_end + $ac_max_sed_lines`
39706 fi
39707 done
39708 if test -z "$ac_sed_cmds"; then
39709 ac_sed_cmds=cat
39710 fi
39711 fi # test -n "$CONFIG_FILES"
39712
39713 _ACEOF
39714 cat >>$CONFIG_STATUS <<\_ACEOF
39715 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39717 case $ac_file in
39718 - | *:- | *:-:* ) # input from stdin
39719 cat >$tmp/stdin
39720 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39721 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39722 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39724 * ) ac_file_in=$ac_file.in ;;
39725 esac
39726
39727 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39728 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39730 X"$ac_file" : 'X\(//\)[^/]' \| \
39731 X"$ac_file" : 'X\(//\)$' \| \
39732 X"$ac_file" : 'X\(/\)' \| \
39733 . : '\(.\)' 2>/dev/null ||
39734 echo X"$ac_file" |
39735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39737 /^X\(\/\/\)$/{ s//\1/; q; }
39738 /^X\(\/\).*/{ s//\1/; q; }
39739 s/.*/./; q'`
39740 { if $as_mkdir_p; then
39741 mkdir -p "$ac_dir"
39742 else
39743 as_dir="$ac_dir"
39744 as_dirs=
39745 while test ! -d "$as_dir"; do
39746 as_dirs="$as_dir $as_dirs"
39747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39749 X"$as_dir" : 'X\(//\)[^/]' \| \
39750 X"$as_dir" : 'X\(//\)$' \| \
39751 X"$as_dir" : 'X\(/\)' \| \
39752 . : '\(.\)' 2>/dev/null ||
39753 echo X"$as_dir" |
39754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39756 /^X\(\/\/\)$/{ s//\1/; q; }
39757 /^X\(\/\).*/{ s//\1/; q; }
39758 s/.*/./; q'`
39759 done
39760 test ! -n "$as_dirs" || mkdir $as_dirs
39761 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39762 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39763 { (exit 1); exit 1; }; }; }
39764
39765 ac_builddir=.
39766
39767 if test "$ac_dir" != .; then
39768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39769 # A "../" for each directory in $ac_dir_suffix.
39770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39771 else
39772 ac_dir_suffix= ac_top_builddir=
39773 fi
39774
39775 case $srcdir in
39776 .) # No --srcdir option. We are building in place.
39777 ac_srcdir=.
39778 if test -z "$ac_top_builddir"; then
39779 ac_top_srcdir=.
39780 else
39781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39782 fi ;;
39783 [\\/]* | ?:[\\/]* ) # Absolute path.
39784 ac_srcdir=$srcdir$ac_dir_suffix;
39785 ac_top_srcdir=$srcdir ;;
39786 *) # Relative path.
39787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39789 esac
39790
39791 # Do not use `cd foo && pwd` to compute absolute paths, because
39792 # the directories may not exist.
39793 case `pwd` in
39794 .) ac_abs_builddir="$ac_dir";;
39795 *)
39796 case "$ac_dir" in
39797 .) ac_abs_builddir=`pwd`;;
39798 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39799 *) ac_abs_builddir=`pwd`/"$ac_dir";;
39800 esac;;
39801 esac
39802 case $ac_abs_builddir in
39803 .) ac_abs_top_builddir=${ac_top_builddir}.;;
39804 *)
39805 case ${ac_top_builddir}. in
39806 .) ac_abs_top_builddir=$ac_abs_builddir;;
39807 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39808 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39809 esac;;
39810 esac
39811 case $ac_abs_builddir in
39812 .) ac_abs_srcdir=$ac_srcdir;;
39813 *)
39814 case $ac_srcdir in
39815 .) ac_abs_srcdir=$ac_abs_builddir;;
39816 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39817 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39818 esac;;
39819 esac
39820 case $ac_abs_builddir in
39821 .) ac_abs_top_srcdir=$ac_top_srcdir;;
39822 *)
39823 case $ac_top_srcdir in
39824 .) ac_abs_top_srcdir=$ac_abs_builddir;;
39825 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39826 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39827 esac;;
39828 esac
39829
39830
39831 case $INSTALL in
39832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39833 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
39834 esac
39835
39836 if test x"$ac_file" != x-; then
39837 { echo "$as_me:$LINENO: creating $ac_file" >&5
39838 echo "$as_me: creating $ac_file" >&6;}
39839 rm -f "$ac_file"
39840 fi
39841 # Let's still pretend it is `configure' which instantiates (i.e., don't
39842 # use $as_me), people would be surprised to read:
39843 # /* config.h. Generated by config.status. */
39844 if test x"$ac_file" = x-; then
39845 configure_input=
39846 else
39847 configure_input="$ac_file. "
39848 fi
39849 configure_input=$configure_input"Generated from `echo $ac_file_in |
39850 sed 's,.*/,,'` by configure."
39851
39852 # First look for the input files in the build tree, otherwise in the
39853 # src tree.
39854 ac_file_inputs=`IFS=:
39855 for f in $ac_file_in; do
39856 case $f in
39857 -) echo $tmp/stdin ;;
39858 [\\/$]*)
39859 # Absolute (can't be DOS-style, as IFS=:)
39860 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39861 echo "$as_me: error: cannot find input file: $f" >&2;}
39862 { (exit 1); exit 1; }; }
39863 echo "$f";;
39864 *) # Relative
39865 if test -f "$f"; then
39866 # Build tree
39867 echo "$f"
39868 elif test -f "$srcdir/$f"; then
39869 # Source tree
39870 echo "$srcdir/$f"
39871 else
39872 # /dev/null tree
39873 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39874 echo "$as_me: error: cannot find input file: $f" >&2;}
39875 { (exit 1); exit 1; }; }
39876 fi;;
39877 esac
39878 done` || { (exit 1); exit 1; }
39879 _ACEOF
39880 cat >>$CONFIG_STATUS <<_ACEOF
39881 sed "$ac_vpsub
39882 $extrasub
39883 _ACEOF
39884 cat >>$CONFIG_STATUS <<\_ACEOF
39885 :t
39886 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39887 s,@configure_input@,$configure_input,;t t
39888 s,@srcdir@,$ac_srcdir,;t t
39889 s,@abs_srcdir@,$ac_abs_srcdir,;t t
39890 s,@top_srcdir@,$ac_top_srcdir,;t t
39891 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39892 s,@builddir@,$ac_builddir,;t t
39893 s,@abs_builddir@,$ac_abs_builddir,;t t
39894 s,@top_builddir@,$ac_top_builddir,;t t
39895 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39896 s,@INSTALL@,$ac_INSTALL,;t t
39897 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39898 rm -f $tmp/stdin
39899 if test x"$ac_file" != x-; then
39900 mv $tmp/out $ac_file
39901 else
39902 cat $tmp/out
39903 rm -f $tmp/out
39904 fi
39905
39906 done
39907 _ACEOF
39908 cat >>$CONFIG_STATUS <<\_ACEOF
39909
39910 #
39911 # CONFIG_HEADER section.
39912 #
39913
39914 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39915 # NAME is the cpp macro being defined and VALUE is the value it is being given.
39916 #
39917 # ac_d sets the value in "#define NAME VALUE" lines.
39918 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
39919 ac_dB='[ ].*$,\1#\2'
39920 ac_dC=' '
39921 ac_dD=',;t'
39922 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
39923 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
39924 ac_uB='$,\1#\2define\3'
39925 ac_uC=' '
39926 ac_uD=',;t'
39927
39928 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
39929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39930 case $ac_file in
39931 - | *:- | *:-:* ) # input from stdin
39932 cat >$tmp/stdin
39933 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39935 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39936 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39937 * ) ac_file_in=$ac_file.in ;;
39938 esac
39939
39940 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
39941 echo "$as_me: creating $ac_file" >&6;}
39942
39943 # First look for the input files in the build tree, otherwise in the
39944 # src tree.
39945 ac_file_inputs=`IFS=:
39946 for f in $ac_file_in; do
39947 case $f in
39948 -) echo $tmp/stdin ;;
39949 [\\/$]*)
39950 # Absolute (can't be DOS-style, as IFS=:)
39951 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39952 echo "$as_me: error: cannot find input file: $f" >&2;}
39953 { (exit 1); exit 1; }; }
39954 # Do quote $f, to prevent DOS paths from being IFS'd.
39955 echo "$f";;
39956 *) # Relative
39957 if test -f "$f"; then
39958 # Build tree
39959 echo "$f"
39960 elif test -f "$srcdir/$f"; then
39961 # Source tree
39962 echo "$srcdir/$f"
39963 else
39964 # /dev/null tree
39965 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
39966 echo "$as_me: error: cannot find input file: $f" >&2;}
39967 { (exit 1); exit 1; }; }
39968 fi;;
39969 esac
39970 done` || { (exit 1); exit 1; }
39971 # Remove the trailing spaces.
39972 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
39973
39974 _ACEOF
39975
39976 # Transform confdefs.h into two sed scripts, `conftest.defines' and
39977 # `conftest.undefs', that substitutes the proper values into
39978 # config.h.in to produce config.h. The first handles `#define'
39979 # templates, and the second `#undef' templates.
39980 # And first: Protect against being on the right side of a sed subst in
39981 # config.status. Protect against being in an unquoted here document
39982 # in config.status.
39983 rm -f conftest.defines conftest.undefs
39984 # Using a here document instead of a string reduces the quoting nightmare.
39985 # Putting comments in sed scripts is not portable.
39986 #
39987 # `end' is used to avoid that the second main sed command (meant for
39988 # 0-ary CPP macros) applies to n-ary macro definitions.
39989 # See the Autoconf documentation for `clear'.
39990 cat >confdef2sed.sed <<\_ACEOF
39991 s/[\\&,]/\\&/g
39992 s,[\\$`],\\&,g
39993 t clear
39994 : clear
39995 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
39996 t end
39997 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
39998 : end
39999 _ACEOF
40000 # If some macros were called several times there might be several times
40001 # the same #defines, which is useless. Nevertheless, we may not want to
40002 # sort them, since we want the *last* AC-DEFINE to be honored.
40003 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40004 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40005 rm -f confdef2sed.sed
40006
40007 # This sed command replaces #undef with comments. This is necessary, for
40008 # example, in the case of _POSIX_SOURCE, which is predefined and required
40009 # on some systems where configure will not decide to define it.
40010 cat >>conftest.undefs <<\_ACEOF
40011 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40012 _ACEOF
40013
40014 # Break up conftest.defines because some shells have a limit on the size
40015 # of here documents, and old seds have small limits too (100 cmds).
40016 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40017 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40018 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40019 echo ' :' >>$CONFIG_STATUS
40020 rm -f conftest.tail
40021 while grep . conftest.defines >/dev/null
40022 do
40023 # Write a limited-size here document to $tmp/defines.sed.
40024 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40025 # Speed up: don't consider the non `#define' lines.
40026 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40027 # Work around the forget-to-reset-the-flag bug.
40028 echo 't clr' >>$CONFIG_STATUS
40029 echo ': clr' >>$CONFIG_STATUS
40030 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40031 echo 'CEOF
40032 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40033 rm -f $tmp/in
40034 mv $tmp/out $tmp/in
40035 ' >>$CONFIG_STATUS
40036 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40037 rm -f conftest.defines
40038 mv conftest.tail conftest.defines
40039 done
40040 rm -f conftest.defines
40041 echo ' fi # grep' >>$CONFIG_STATUS
40042 echo >>$CONFIG_STATUS
40043
40044 # Break up conftest.undefs because some shells have a limit on the size
40045 # of here documents, and old seds have small limits too (100 cmds).
40046 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40047 rm -f conftest.tail
40048 while grep . conftest.undefs >/dev/null
40049 do
40050 # Write a limited-size here document to $tmp/undefs.sed.
40051 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40052 # Speed up: don't consider the non `#undef'
40053 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40054 # Work around the forget-to-reset-the-flag bug.
40055 echo 't clr' >>$CONFIG_STATUS
40056 echo ': clr' >>$CONFIG_STATUS
40057 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40058 echo 'CEOF
40059 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40060 rm -f $tmp/in
40061 mv $tmp/out $tmp/in
40062 ' >>$CONFIG_STATUS
40063 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40064 rm -f conftest.undefs
40065 mv conftest.tail conftest.undefs
40066 done
40067 rm -f conftest.undefs
40068
40069 cat >>$CONFIG_STATUS <<\_ACEOF
40070 # Let's still pretend it is `configure' which instantiates (i.e., don't
40071 # use $as_me), people would be surprised to read:
40072 # /* config.h. Generated by config.status. */
40073 if test x"$ac_file" = x-; then
40074 echo "/* Generated by configure. */" >$tmp/config.h
40075 else
40076 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40077 fi
40078 cat $tmp/in >>$tmp/config.h
40079 rm -f $tmp/in
40080 if test x"$ac_file" != x-; then
40081 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40082 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40083 echo "$as_me: $ac_file is unchanged" >&6;}
40084 else
40085 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40087 X"$ac_file" : 'X\(//\)[^/]' \| \
40088 X"$ac_file" : 'X\(//\)$' \| \
40089 X"$ac_file" : 'X\(/\)' \| \
40090 . : '\(.\)' 2>/dev/null ||
40091 echo X"$ac_file" |
40092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40094 /^X\(\/\/\)$/{ s//\1/; q; }
40095 /^X\(\/\).*/{ s//\1/; q; }
40096 s/.*/./; q'`
40097 { if $as_mkdir_p; then
40098 mkdir -p "$ac_dir"
40099 else
40100 as_dir="$ac_dir"
40101 as_dirs=
40102 while test ! -d "$as_dir"; do
40103 as_dirs="$as_dir $as_dirs"
40104 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40106 X"$as_dir" : 'X\(//\)[^/]' \| \
40107 X"$as_dir" : 'X\(//\)$' \| \
40108 X"$as_dir" : 'X\(/\)' \| \
40109 . : '\(.\)' 2>/dev/null ||
40110 echo X"$as_dir" |
40111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40113 /^X\(\/\/\)$/{ s//\1/; q; }
40114 /^X\(\/\).*/{ s//\1/; q; }
40115 s/.*/./; q'`
40116 done
40117 test ! -n "$as_dirs" || mkdir $as_dirs
40118 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40119 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40120 { (exit 1); exit 1; }; }; }
40121
40122 rm -f $ac_file
40123 mv $tmp/config.h $ac_file
40124 fi
40125 else
40126 cat $tmp/config.h
40127 rm -f $tmp/config.h
40128 fi
40129 done
40130 _ACEOF
40131 cat >>$CONFIG_STATUS <<\_ACEOF
40132
40133 #
40134 # CONFIG_COMMANDS section.
40135 #
40136 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40137 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40138 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40139 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40140 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40141 X"$ac_dest" : 'X\(//\)[^/]' \| \
40142 X"$ac_dest" : 'X\(//\)$' \| \
40143 X"$ac_dest" : 'X\(/\)' \| \
40144 . : '\(.\)' 2>/dev/null ||
40145 echo X"$ac_dest" |
40146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40148 /^X\(\/\/\)$/{ s//\1/; q; }
40149 /^X\(\/\).*/{ s//\1/; q; }
40150 s/.*/./; q'`
40151 { if $as_mkdir_p; then
40152 mkdir -p "$ac_dir"
40153 else
40154 as_dir="$ac_dir"
40155 as_dirs=
40156 while test ! -d "$as_dir"; do
40157 as_dirs="$as_dir $as_dirs"
40158 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40159 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40160 X"$as_dir" : 'X\(//\)[^/]' \| \
40161 X"$as_dir" : 'X\(//\)$' \| \
40162 X"$as_dir" : 'X\(/\)' \| \
40163 . : '\(.\)' 2>/dev/null ||
40164 echo X"$as_dir" |
40165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40167 /^X\(\/\/\)$/{ s//\1/; q; }
40168 /^X\(\/\).*/{ s//\1/; q; }
40169 s/.*/./; q'`
40170 done
40171 test ! -n "$as_dirs" || mkdir $as_dirs
40172 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40173 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40174 { (exit 1); exit 1; }; }; }
40175
40176 ac_builddir=.
40177
40178 if test "$ac_dir" != .; then
40179 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40180 # A "../" for each directory in $ac_dir_suffix.
40181 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40182 else
40183 ac_dir_suffix= ac_top_builddir=
40184 fi
40185
40186 case $srcdir in
40187 .) # No --srcdir option. We are building in place.
40188 ac_srcdir=.
40189 if test -z "$ac_top_builddir"; then
40190 ac_top_srcdir=.
40191 else
40192 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40193 fi ;;
40194 [\\/]* | ?:[\\/]* ) # Absolute path.
40195 ac_srcdir=$srcdir$ac_dir_suffix;
40196 ac_top_srcdir=$srcdir ;;
40197 *) # Relative path.
40198 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40199 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40200 esac
40201
40202 # Do not use `cd foo && pwd` to compute absolute paths, because
40203 # the directories may not exist.
40204 case `pwd` in
40205 .) ac_abs_builddir="$ac_dir";;
40206 *)
40207 case "$ac_dir" in
40208 .) ac_abs_builddir=`pwd`;;
40209 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40210 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40211 esac;;
40212 esac
40213 case $ac_abs_builddir in
40214 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40215 *)
40216 case ${ac_top_builddir}. in
40217 .) ac_abs_top_builddir=$ac_abs_builddir;;
40218 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40219 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40220 esac;;
40221 esac
40222 case $ac_abs_builddir in
40223 .) ac_abs_srcdir=$ac_srcdir;;
40224 *)
40225 case $ac_srcdir in
40226 .) ac_abs_srcdir=$ac_abs_builddir;;
40227 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40228 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40229 esac;;
40230 esac
40231 case $ac_abs_builddir in
40232 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40233 *)
40234 case $ac_top_srcdir in
40235 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40236 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40237 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40238 esac;;
40239 esac
40240
40241
40242 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40243 echo "$as_me: executing $ac_dest commands" >&6;}
40244 case $ac_dest in
40245 default )
40246 if test ! -h wx-config; then
40247 chmod +x wx-config
40248 mv wx-config wx${TOOLCHAIN_NAME}-config
40249 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
40250 fi
40251
40252 if test ! -d lib; then
40253 mkdir lib
40254 fi
40255 if test ! -d lib/wx; then
40256 mkdir lib/wx
40257 fi
40258 if test ! -d lib/wx/include; then
40259 mkdir lib/wx/include
40260 fi
40261 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40262 mkdir lib/wx/include/${TOOLCHAIN_NAME}
40263 fi
40264 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40265 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
40266 fi
40267 if test -f setup.h; then
40268 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
40269 fi
40270 ;;
40271 esac
40272 done
40273 _ACEOF
40274
40275 cat >>$CONFIG_STATUS <<\_ACEOF
40276
40277 { (exit 0); exit 0; }
40278 _ACEOF
40279 chmod +x $CONFIG_STATUS
40280 ac_clean_files=$ac_clean_files_save
40281
40282
40283 # configure is writing to config.log, and then calls config.status.
40284 # config.status does its own redirection, appending to config.log.
40285 # Unfortunately, on DOS this fails, as config.log is still kept open
40286 # by configure, so config.status won't be able to write to it; its
40287 # output is simply discarded. So we exec the FD to /dev/null,
40288 # effectively closing config.log, so it can be properly (re)opened and
40289 # appended to by config.status. When coming back to configure, we
40290 # need to make the FD available again.
40291 if test "$no_create" != yes; then
40292 ac_cs_success=:
40293 ac_config_status_args=
40294 test "$silent" = yes &&
40295 ac_config_status_args="$ac_config_status_args --quiet"
40296 exec 5>/dev/null
40297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40298 exec 5>>config.log
40299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40300 # would make configure fail if this is the last instruction.
40301 $ac_cs_success || { (exit 1); exit 1; }
40302 fi
40303
40304 #
40305 # CONFIG_SUBDIRS section.
40306 #
40307 if test "$no_recursion" != yes; then
40308
40309 # Remove --cache-file and --srcdir arguments so they do not pile up.
40310 ac_sub_configure_args=
40311 ac_prev=
40312 for ac_arg in $ac_configure_args; do
40313 if test -n "$ac_prev"; then
40314 ac_prev=
40315 continue
40316 fi
40317 case $ac_arg in
40318 -cache-file | --cache-file | --cache-fil | --cache-fi \
40319 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40320 ac_prev=cache_file ;;
40321 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40322 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40323 | --c=*)
40324 ;;
40325 --config-cache | -C)
40326 ;;
40327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40328 ac_prev=srcdir ;;
40329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40330 ;;
40331 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40332 ac_prev=prefix ;;
40333 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40334 ;;
40335 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40336 esac
40337 done
40338
40339 # Always prepend --prefix to ensure using the same prefix
40340 # in subdir configurations.
40341 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40342
40343 ac_popdir=`pwd`
40344 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40345
40346 # Do not complain, so a configure script can configure whichever
40347 # parts of a large source tree are present.
40348 test -d $srcdir/$ac_dir || continue
40349
40350 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40351 echo "$as_me: configuring in $ac_dir" >&6;}
40352 { if $as_mkdir_p; then
40353 mkdir -p "$ac_dir"
40354 else
40355 as_dir="$ac_dir"
40356 as_dirs=
40357 while test ! -d "$as_dir"; do
40358 as_dirs="$as_dir $as_dirs"
40359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40361 X"$as_dir" : 'X\(//\)[^/]' \| \
40362 X"$as_dir" : 'X\(//\)$' \| \
40363 X"$as_dir" : 'X\(/\)' \| \
40364 . : '\(.\)' 2>/dev/null ||
40365 echo X"$as_dir" |
40366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40368 /^X\(\/\/\)$/{ s//\1/; q; }
40369 /^X\(\/\).*/{ s//\1/; q; }
40370 s/.*/./; q'`
40371 done
40372 test ! -n "$as_dirs" || mkdir $as_dirs
40373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40375 { (exit 1); exit 1; }; }; }
40376
40377 ac_builddir=.
40378
40379 if test "$ac_dir" != .; then
40380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40381 # A "../" for each directory in $ac_dir_suffix.
40382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40383 else
40384 ac_dir_suffix= ac_top_builddir=
40385 fi
40386
40387 case $srcdir in
40388 .) # No --srcdir option. We are building in place.
40389 ac_srcdir=.
40390 if test -z "$ac_top_builddir"; then
40391 ac_top_srcdir=.
40392 else
40393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40394 fi ;;
40395 [\\/]* | ?:[\\/]* ) # Absolute path.
40396 ac_srcdir=$srcdir$ac_dir_suffix;
40397 ac_top_srcdir=$srcdir ;;
40398 *) # Relative path.
40399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40401 esac
40402
40403 # Do not use `cd foo && pwd` to compute absolute paths, because
40404 # the directories may not exist.
40405 case `pwd` in
40406 .) ac_abs_builddir="$ac_dir";;
40407 *)
40408 case "$ac_dir" in
40409 .) ac_abs_builddir=`pwd`;;
40410 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40411 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40412 esac;;
40413 esac
40414 case $ac_abs_builddir in
40415 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40416 *)
40417 case ${ac_top_builddir}. in
40418 .) ac_abs_top_builddir=$ac_abs_builddir;;
40419 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40420 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40421 esac;;
40422 esac
40423 case $ac_abs_builddir in
40424 .) ac_abs_srcdir=$ac_srcdir;;
40425 *)
40426 case $ac_srcdir in
40427 .) ac_abs_srcdir=$ac_abs_builddir;;
40428 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40429 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40430 esac;;
40431 esac
40432 case $ac_abs_builddir in
40433 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40434 *)
40435 case $ac_top_srcdir in
40436 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40437 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40438 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40439 esac;;
40440 esac
40441
40442
40443 cd $ac_dir
40444
40445 # Check for guested configure; otherwise get Cygnus style configure.
40446 if test -f $ac_srcdir/configure.gnu; then
40447 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
40448 elif test -f $ac_srcdir/configure; then
40449 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
40450 elif test -f $ac_srcdir/configure.in; then
40451 ac_sub_configure=$ac_configure
40452 else
40453 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40454 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40455 ac_sub_configure=
40456 fi
40457
40458 # The recursion is here.
40459 if test -n "$ac_sub_configure"; then
40460 # Make the cache file name correct relative to the subdirectory.
40461 case $cache_file in
40462 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40463 *) # Relative path.
40464 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
40465 esac
40466
40467 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40468 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40469 # The eval makes quoting arguments work.
40470 eval $ac_sub_configure $ac_sub_configure_args \
40471 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
40472 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
40473 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40474 { (exit 1); exit 1; }; }
40475 fi
40476
40477 cd $ac_popdir
40478 done
40479 fi
40480
40481
40482 echo
40483 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
40484 echo ""
40485 echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
40486 echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
40487
40488 echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
40489 echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
40490 echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
40491
40492 echo " What level of wxWindows compatibility should be enabled?"
40493 echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
40494 echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
40495
40496 echo " Which libraries should wxWindows use?"
40497 echo " jpeg ${wxUSE_LIBJPEG-none}"
40498 echo " png ${wxUSE_LIBPNG-none}"
40499 echo " regex ${wxUSE_REGEX}"
40500 echo " tiff ${wxUSE_LIBTIFF-none}"
40501 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
40502 echo " xpm ${wxUSE_LIBXPM-none}"
40503 fi
40504 echo " zlib ${wxUSE_ZLIB}"
40505 echo " odbc ${wxUSE_ODBC}"
40506 echo " expat ${wxUSE_EXPAT}"
40507 echo " libmspack ${wxUSE_LIBMSPACK}"
40508
40509 echo ""
40510