]>
Commit | Line | Data |
---|---|---|
10f2d63a | 1 | #! /bin/sh |
e6cc62c6 VS |
2 | # From configure.in Id: configure.in. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by GNU Autoconf 2.57 for wxWindows 2.5.0. | |
5 | # | |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
fe0895cf | 9 | # Free Software Foundation, Inc. |
e6cc62c6 VS |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
fe0895cf | 15 | |
e6cc62c6 VS |
16 | # Be Bourne compatible |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24 | set -o posix | |
25 | fi | |
fe0895cf | 26 | |
e6cc62c6 VS |
27 | # Support unset when possible. |
28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
29 | as_unset=unset | |
30 | else | |
31 | as_unset=false | |
32 | fi | |
fe0895cf VS |
33 | |
34 | ||
e6cc62c6 VS |
35 | # Work around bugs in pre-3.0 UWIN ksh. |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
fe0895cf | 40 | |
e6cc62c6 VS |
41 | # NLS nuisances. |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
48 | eval $as_var=C; export $as_var | |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
fe0895cf | 53 | |
e6cc62c6 VS |
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 | |
fe0895cf | 60 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
66 | |
67 | ||
e6cc62c6 VS |
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'` | |
fe0895cf VS |
79 | |
80 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 88 | |
e6cc62c6 VS |
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 | |
fe0895cf VS |
101 | |
102 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 119 | |
e6cc62c6 VS |
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 | |
fe0895cf | 158 | |
e6cc62c6 VS |
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 | } | |
fe0895cf VS |
188 | |
189 | ||
e6cc62c6 VS |
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 | |
fe0895cf | 196 | |
e6cc62c6 VS |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
fe0895cf | 202 | |
e6cc62c6 VS |
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 | |
fe0895cf | 220 | |
e6cc62c6 VS |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
224 | as_mkdir_p=false | |
225 | fi | |
fe0895cf | 226 | |
e6cc62c6 | 227 | as_executable_p="test -f" |
fe0895cf | 228 | |
e6cc62c6 VS |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf | 231 | |
e6cc62c6 VS |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf VS |
234 | |
235 | ||
e6cc62c6 VS |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
fe0895cf | 241 | |
e6cc62c6 VS |
242 | # CDPATH. |
243 | $as_unset CDPATH | |
fe0895cf VS |
244 | |
245 | ||
e6cc62c6 VS |
246 | # Name of the host. |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
fe0895cf | 250 | |
e6cc62c6 | 251 | exec 6>&1 |
fe0895cf | 252 | |
a0b9e27f | 253 | # |
e6cc62c6 VS |
254 | # Initializations. |
255 | # | |
a0b9e27f | 256 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
257 | ac_config_libobj_dir=. |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
270 | PACKAGE_NAME='wxWindows' | |
271 | PACKAGE_TARNAME='wxwindows' | |
272 | PACKAGE_VERSION='2.5.0' | |
273 | PACKAGE_STRING='wxWindows 2.5.0' | |
274 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' | |
275 | ||
276 | ac_unique_file="wx-config.in" | |
277 | # Factoring default headers for most tests. | |
278 | ac_includes_default="\ | |
279 | #include <stdio.h> | |
280 | #if HAVE_SYS_TYPES_H | |
281 | # include <sys/types.h> | |
282 | #endif | |
283 | #if HAVE_SYS_STAT_H | |
284 | # include <sys/stat.h> | |
285 | #endif | |
286 | #if STDC_HEADERS | |
287 | # include <stdlib.h> | |
288 | # include <stddef.h> | |
289 | #else | |
290 | # if HAVE_STDLIB_H | |
291 | # include <stdlib.h> | |
292 | # endif | |
293 | #endif | |
294 | #if HAVE_STRING_H | |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 | # include <memory.h> | |
297 | # endif | |
298 | # include <string.h> | |
299 | #endif | |
300 | #if HAVE_STRINGS_H | |
301 | # include <strings.h> | |
302 | #endif | |
303 | #if HAVE_INTTYPES_H | |
304 | # include <inttypes.h> | |
305 | #else | |
306 | # if HAVE_STDINT_H | |
307 | # include <stdint.h> | |
308 | # endif | |
309 | #endif | |
310 | #if HAVE_UNISTD_H | |
311 | # include <unistd.h> | |
312 | #endif" | |
313 | ||
6b9d41a5 | 314 | 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 YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP 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 AIX_CXX_LD RESCOMP DEREZ SETFILE LIBICONV wxUSE_ZLIB wxUSE_REGEX wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF WXUNIV MONOLITHIC EXTRALIBS UNICODE BUILD SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX SO_SUFFIX DLLPREFIX SHARED_LD_CC SHARED_LD_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING COND_UNICODE_1 COND_BUILD_DEBUG COND_WXUSE_REGEX_BUILTIN COND_DEPS_TRACKING_1 COND_DEPS_TRACKING_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_1 COND_WXUSE_LIBPNG_BUILTIN COND_BUILD_RELEASE COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUNIV_1 COND_WXUSE_ZLIB_BUILTIN COND_PLATFORM_MAC_1 COND_WXUSE_ODBC_BUILTIN COND_TOOLKIT_MAC COND_MONOLITHIC_0 COND_PLATFORM_WIN32_0 COND_MONOLITHIC_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_SHARED_1 COND_SHARED_1_MONOLITHIC_0 COND_USE_SOVERLINUX_1 COND_USE_SOVERSOLARIS_1 COND_USE_SOSYMLINKS_1 COND_TOOLKIT_X11 COND_TOOLKIT_MGL COND_TOOLKIT_GTK COND_TOOLKIT_MSW COND_USE_SOVERSION_1_PLATFORM_MACOSX_0 COND_USE_SOVERSION_1_PLATFORM_MACOSX_1 COND_USE_SOVERSION_0 COND_SHARED_0_USE_GUI_1_MONOLITHIC_0 COND_PLATFORM_MACOSX_1 COND_SHARED_1_USE_GUI_1_MONOLITHIC_0 COND_TOOLKIT_MOTIF COND_TOOLKIT_COCOA COND_TOOLKIT_OS2 COND_SHARED_1_MONOLITHIC_1 COND_SHARED_0_MONOLITHIC_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_SHARED_0_MONOLITHIC_0 COND_SHARED_0 LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME 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 CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX 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_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WX_LARGEFILE_FLAGS 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 MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY ESD_LINK LIBOBJS LTLIBOBJS' |
e6cc62c6 | 315 | ac_subst_files='' |
10f2d63a VZ |
316 | |
317 | # Initialize some variables set by options. | |
e6cc62c6 VS |
318 | ac_init_help= |
319 | ac_init_version=false | |
10f2d63a VZ |
320 | # The variables have the same names as the options, with |
321 | # dashes changed to underlines. | |
e6cc62c6 | 322 | cache_file=/dev/null |
10f2d63a | 323 | exec_prefix=NONE |
10f2d63a | 324 | no_create= |
10f2d63a VZ |
325 | no_recursion= |
326 | prefix=NONE | |
327 | program_prefix=NONE | |
328 | program_suffix=NONE | |
329 | program_transform_name=s,x,x, | |
330 | silent= | |
331 | site= | |
332 | srcdir= | |
10f2d63a VZ |
333 | verbose= |
334 | x_includes=NONE | |
335 | x_libraries=NONE | |
e6cc62c6 VS |
336 | |
337 | # Installation directory options. | |
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
339 | # and all the variables that are supposed to be based on exec_prefix | |
340 | # by default will actually change. | |
341 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
342 | bindir='${exec_prefix}/bin' |
343 | sbindir='${exec_prefix}/sbin' | |
344 | libexecdir='${exec_prefix}/libexec' | |
345 | datadir='${prefix}/share' | |
346 | sysconfdir='${prefix}/etc' | |
347 | sharedstatedir='${prefix}/com' | |
348 | localstatedir='${prefix}/var' | |
349 | libdir='${exec_prefix}/lib' | |
350 | includedir='${prefix}/include' | |
351 | oldincludedir='/usr/include' | |
352 | infodir='${prefix}/info' | |
353 | mandir='${prefix}/man' | |
354 | ||
10f2d63a VZ |
355 | ac_prev= |
356 | for ac_option | |
357 | do | |
10f2d63a VZ |
358 | # If the previous option needs an argument, assign it. |
359 | if test -n "$ac_prev"; then | |
360 | eval "$ac_prev=\$ac_option" | |
361 | ac_prev= | |
362 | continue | |
363 | fi | |
364 | ||
e6cc62c6 | 365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
366 | |
367 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
368 | ||
e6cc62c6 | 369 | case $ac_option in |
10f2d63a VZ |
370 | |
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
372 | ac_prev=bindir ;; | |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 374 | bindir=$ac_optarg ;; |
10f2d63a VZ |
375 | |
376 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 377 | ac_prev=build_alias ;; |
10f2d63a | 378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 379 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
380 | |
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
383 | ac_prev=cache_file ;; | |
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
e6cc62c6 VS |
386 | cache_file=$ac_optarg ;; |
387 | ||
388 | --config-cache | -C) | |
389 | cache_file=config.cache ;; | |
10f2d63a VZ |
390 | |
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
392 | ac_prev=datadir ;; | |
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
394 | | --da=*) | |
e6cc62c6 | 395 | datadir=$ac_optarg ;; |
10f2d63a VZ |
396 | |
397 | -disable-* | --disable-*) | |
e6cc62c6 | 398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 399 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
402 | { (exit 1); exit 1; }; } | |
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
404 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
405 | |
406 | -enable-* | --enable-*) | |
e6cc62c6 | 407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 408 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
411 | { (exit 1); exit 1; }; } | |
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
413 | case $ac_option in | |
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
415 | *) ac_optarg=yes ;; |
416 | esac | |
e6cc62c6 | 417 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
418 | |
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
421 | | --exec | --exe | --ex) | |
422 | ac_prev=exec_prefix ;; | |
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
425 | | --exec=* | --exe=* | --ex=*) | |
e6cc62c6 | 426 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
427 | |
428 | -gas | --gas | --ga | --g) | |
429 | # Obsolete; use --with-gas. | |
430 | with_gas=yes ;; | |
431 | ||
e6cc62c6 VS |
432 | -help | --help | --hel | --he | -h) |
433 | ac_init_help=long ;; | |
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
435 | ac_init_help=recursive ;; | |
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
437 | ac_init_help=short ;; | |
10f2d63a VZ |
438 | |
439 | -host | --host | --hos | --ho) | |
e6cc62c6 | 440 | ac_prev=host_alias ;; |
10f2d63a | 441 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 442 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
443 | |
444 | -includedir | --includedir | --includedi | --included | --include \ | |
445 | | --includ | --inclu | --incl | --inc) | |
446 | ac_prev=includedir ;; | |
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
e6cc62c6 | 449 | includedir=$ac_optarg ;; |
10f2d63a VZ |
450 | |
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
452 | ac_prev=infodir ;; | |
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 454 | infodir=$ac_optarg ;; |
10f2d63a VZ |
455 | |
456 | -libdir | --libdir | --libdi | --libd) | |
457 | ac_prev=libdir ;; | |
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 459 | libdir=$ac_optarg ;; |
10f2d63a VZ |
460 | |
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
462 | | --libexe | --libex | --libe) | |
463 | ac_prev=libexecdir ;; | |
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
465 | | --libexe=* | --libex=* | --libe=*) | |
e6cc62c6 | 466 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
467 | |
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
469 | | --localstate | --localstat | --localsta | --localst \ | |
470 | | --locals | --local | --loca | --loc | --lo) | |
471 | ac_prev=localstatedir ;; | |
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
e6cc62c6 | 475 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
476 | |
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
478 | ac_prev=mandir ;; | |
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 480 | mandir=$ac_optarg ;; |
10f2d63a VZ |
481 | |
482 | -nfp | --nfp | --nf) | |
483 | # Obsolete; use --without-fp. | |
484 | with_fp=no ;; | |
485 | ||
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e6cc62c6 | 487 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
488 | no_create=yes ;; |
489 | ||
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
492 | no_recursion=yes ;; | |
493 | ||
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
496 | | --oldin | --oldi | --old | --ol | --o) | |
497 | ac_prev=oldincludedir ;; | |
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
e6cc62c6 | 501 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
502 | |
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
504 | ac_prev=prefix ;; | |
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 506 | prefix=$ac_optarg ;; |
10f2d63a VZ |
507 | |
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
509 | | --program-pre | --program-pr | --program-p) | |
510 | ac_prev=program_prefix ;; | |
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
e6cc62c6 | 513 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
514 | |
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
516 | | --program-suf | --program-su | --program-s) | |
517 | ac_prev=program_suffix ;; | |
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
e6cc62c6 | 520 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
521 | |
522 | -program-transform-name | --program-transform-name \ | |
523 | | --program-transform-nam | --program-transform-na \ | |
524 | | --program-transform-n | --program-transform- \ | |
525 | | --program-transform | --program-transfor \ | |
526 | | --program-transfo | --program-transf \ | |
527 | | --program-trans | --program-tran \ | |
528 | | --progr-tra | --program-tr | --program-t) | |
529 | ac_prev=program_transform_name ;; | |
530 | -program-transform-name=* | --program-transform-name=* \ | |
531 | | --program-transform-nam=* | --program-transform-na=* \ | |
532 | | --program-transform-n=* | --program-transform-=* \ | |
533 | | --program-transform=* | --program-transfor=* \ | |
534 | | --program-transfo=* | --program-transf=* \ | |
535 | | --program-trans=* | --program-tran=* \ | |
536 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
e6cc62c6 | 537 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
538 | |
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
540 | | -silent | --silent | --silen | --sile | --sil) | |
541 | silent=yes ;; | |
542 | ||
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
544 | ac_prev=sbindir ;; | |
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
546 | | --sbi=* | --sb=*) | |
e6cc62c6 | 547 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
548 | |
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
551 | | --sharedst | --shareds | --shared | --share | --shar \ | |
552 | | --sha | --sh) | |
553 | ac_prev=sharedstatedir ;; | |
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
557 | | --sha=* | --sh=*) | |
e6cc62c6 | 558 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
559 | |
560 | -site | --site | --sit) | |
561 | ac_prev=site ;; | |
562 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 563 | site=$ac_optarg ;; |
10f2d63a VZ |
564 | |
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
566 | ac_prev=srcdir ;; | |
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 568 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
569 | |
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
571 | | --syscon | --sysco | --sysc | --sys | --sy) | |
572 | ac_prev=sysconfdir ;; | |
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
e6cc62c6 | 575 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
576 | |
577 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 578 | ac_prev=target_alias ;; |
10f2d63a | 579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 580 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
581 | |
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
583 | verbose=yes ;; | |
584 | ||
e6cc62c6 VS |
585 | -version | --version | --versio | --versi | --vers | -V) |
586 | ac_init_version=: ;; | |
10f2d63a VZ |
587 | |
588 | -with-* | --with-*) | |
e6cc62c6 | 589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 590 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
593 | { (exit 1); exit 1; }; } | |
10f2d63a | 594 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
595 | case $ac_option in |
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
597 | *) ac_optarg=yes ;; |
598 | esac | |
e6cc62c6 | 599 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
600 | |
601 | -without-* | --without-*) | |
e6cc62c6 | 602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 603 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
606 | { (exit 1); exit 1; }; } | |
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
608 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
609 | |
610 | --x) | |
611 | # Obsolete; use --with-x. | |
612 | with_x=yes ;; | |
613 | ||
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
615 | | --x-incl | --x-inc | --x-in | --x-i) | |
616 | ac_prev=x_includes ;; | |
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
e6cc62c6 | 619 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
620 | |
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
623 | ac_prev=x_libraries ;; | |
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
e6cc62c6 | 626 | x_libraries=$ac_optarg ;; |
10f2d63a | 627 | |
e6cc62c6 VS |
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
629 | Try \`$0 --help' for more information." >&2 | |
630 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
631 | ;; |
632 | ||
e6cc62c6 VS |
633 | *=*) |
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
635 | # Reject names that are not valid shell variable names. | |
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
638 | { (exit 1); exit 1; }; } | |
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
640 | eval "$ac_envvar='$ac_optarg'" | |
641 | export $ac_envvar ;; | |
642 | ||
10f2d63a | 643 | *) |
e6cc62c6 VS |
644 | # FIXME: should be removed in autoconf 3.0. |
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
649 | ;; |
650 | ||
651 | esac | |
652 | done | |
653 | ||
654 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
657 | { (exit 1); exit 1; }; } | |
a0b9e27f | 658 | fi |
a0b9e27f | 659 | |
e6cc62c6 VS |
660 | # Be sure to have absolute paths. |
661 | for ac_var in exec_prefix prefix | |
662 | do | |
663 | eval ac_val=$`echo $ac_var` | |
664 | case $ac_val in | |
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
667 | { (exit 1); exit 1; }; };; | |
668 | esac | |
669 | done | |
8284b0c5 | 670 | |
e6cc62c6 VS |
671 | # Be sure to have absolute paths. |
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
673 | localstatedir libdir includedir oldincludedir infodir mandir | |
10f2d63a | 674 | do |
e6cc62c6 VS |
675 | eval ac_val=$`echo $ac_var` |
676 | case $ac_val in | |
677 | [\\/$]* | ?:[\\/]* ) ;; | |
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
679 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
680 | esac |
681 | done | |
682 | ||
e6cc62c6 VS |
683 | # There might be people who depend on the old broken behavior: `$host' |
684 | # used to hold the argument of --host etc. | |
685 | # FIXME: To remove some day. | |
686 | build=$build_alias | |
687 | host=$host_alias | |
688 | target=$target_alias | |
689 | ||
690 | # FIXME: To remove some day. | |
691 | if test "x$host_alias" != x; then | |
692 | if test "x$build_alias" = x; then | |
693 | cross_compiling=maybe | |
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
695 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
696 | elif test "x$build_alias" != "x$host_alias"; then | |
697 | cross_compiling=yes | |
698 | fi | |
699 | fi | |
247f5006 | 700 | |
e6cc62c6 VS |
701 | ac_tool_prefix= |
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
703 | ||
704 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 705 | |
10f2d63a VZ |
706 | |
707 | # Find the source files, if location was not specified. | |
708 | if test -z "$srcdir"; then | |
709 | ac_srcdir_defaulted=yes | |
710 | # Try the directory containing this script, then its parent. | |
e6cc62c6 VS |
711 | ac_confdir=`(dirname "$0") 2>/dev/null || |
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
713 | X"$0" : 'X\(//\)[^/]' \| \ | |
714 | X"$0" : 'X\(//\)$' \| \ | |
715 | X"$0" : 'X\(/\)' \| \ | |
716 | . : '\(.\)' 2>/dev/null || | |
717 | echo X"$0" | | |
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
720 | /^X\(\/\/\)$/{ s//\1/; q; } | |
721 | /^X\(\/\).*/{ s//\1/; q; } | |
722 | s/.*/./; q'` | |
10f2d63a VZ |
723 | srcdir=$ac_confdir |
724 | if test ! -r $srcdir/$ac_unique_file; then | |
725 | srcdir=.. | |
726 | fi | |
727 | else | |
728 | ac_srcdir_defaulted=no | |
729 | fi | |
730 | if test ! -r $srcdir/$ac_unique_file; then | |
731 | if test "$ac_srcdir_defaulted" = yes; then | |
e6cc62c6 VS |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
733 | { (exit 1); exit 1; }; } | |
10f2d63a | 734 | else |
e6cc62c6 VS |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
736 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
737 | fi |
738 | fi | |
e6cc62c6 VS |
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
741 | { (exit 1); exit 1; }; } | |
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
743 | ac_env_build_alias_set=${build_alias+set} | |
744 | ac_env_build_alias_value=$build_alias | |
745 | ac_cv_env_build_alias_set=${build_alias+set} | |
746 | ac_cv_env_build_alias_value=$build_alias | |
747 | ac_env_host_alias_set=${host_alias+set} | |
748 | ac_env_host_alias_value=$host_alias | |
749 | ac_cv_env_host_alias_set=${host_alias+set} | |
750 | ac_cv_env_host_alias_value=$host_alias | |
751 | ac_env_target_alias_set=${target_alias+set} | |
752 | ac_env_target_alias_value=$target_alias | |
753 | ac_cv_env_target_alias_set=${target_alias+set} | |
754 | ac_cv_env_target_alias_value=$target_alias | |
755 | ac_env_CC_set=${CC+set} | |
756 | ac_env_CC_value=$CC | |
757 | ac_cv_env_CC_set=${CC+set} | |
758 | ac_cv_env_CC_value=$CC | |
759 | ac_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_env_CFLAGS_value=$CFLAGS | |
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_cv_env_CFLAGS_value=$CFLAGS | |
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_env_CPP_set=${CPP+set} | |
772 | ac_env_CPP_value=$CPP | |
773 | ac_cv_env_CPP_set=${CPP+set} | |
774 | ac_cv_env_CPP_value=$CPP | |
775 | ac_env_CXX_set=${CXX+set} | |
776 | ac_env_CXX_value=$CXX | |
777 | ac_cv_env_CXX_set=${CXX+set} | |
778 | ac_cv_env_CXX_value=$CXX | |
779 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
780 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
781 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_env_CXXCPP_set=${CXXCPP+set} | |
784 | ac_env_CXXCPP_value=$CXXCPP | |
785 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_cv_env_CXXCPP_value=$CXXCPP | |
328a083c | 787 | |
e6cc62c6 VS |
788 | # |
789 | # Report the --help message. | |
790 | # | |
791 | if test "$ac_init_help" = "long"; then | |
792 | # Omit some internal or obsolete options to make the list less imposing. | |
793 | # This message is too long to be a string in the A/UX 3.1 sh. | |
794 | cat <<_ACEOF | |
795 | \`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems. | |
10f2d63a | 796 | |
e6cc62c6 | 797 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 798 | |
e6cc62c6 VS |
799 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
800 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
8284b0c5 | 801 | |
e6cc62c6 VS |
802 | Defaults for the options are specified in brackets. |
803 | ||
804 | Configuration: | |
805 | -h, --help display this help and exit | |
806 | --help=short display options specific to this package | |
807 | --help=recursive display the short help of all the included packages | |
808 | -V, --version display version information and exit | |
809 | -q, --quiet, --silent do not print \`checking...' messages | |
810 | --cache-file=FILE cache test results in FILE [disabled] | |
811 | -C, --config-cache alias for \`--cache-file=config.cache' | |
812 | -n, --no-create do not create output files | |
813 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
814 | ||
815 | _ACEOF | |
816 | ||
817 | cat <<_ACEOF | |
818 | Installation directories: | |
819 | --prefix=PREFIX install architecture-independent files in PREFIX | |
820 | [$ac_default_prefix] | |
821 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
822 | [PREFIX] | |
823 | ||
824 | By default, \`make install' will install all the files in | |
825 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
826 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
827 | for instance \`--prefix=\$HOME'. | |
828 | ||
829 | For better control, use the options below. | |
830 | ||
831 | Fine tuning of the installation directories: | |
832 | --bindir=DIR user executables [EPREFIX/bin] | |
833 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
834 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
835 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
836 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
837 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
838 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
839 | --libdir=DIR object code libraries [EPREFIX/lib] | |
840 | --includedir=DIR C header files [PREFIX/include] | |
841 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
842 | --infodir=DIR info documentation [PREFIX/info] | |
843 | --mandir=DIR man documentation [PREFIX/man] | |
844 | _ACEOF | |
845 | ||
846 | cat <<\_ACEOF | |
847 | ||
848 | X features: | |
849 | --x-includes=DIR X include files are in DIR | |
850 | --x-libraries=DIR X library files are in DIR | |
851 | ||
852 | System types: | |
853 | --build=BUILD configure for building on BUILD [guessed] | |
854 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
855 | --target=TARGET configure for building compilers for TARGET [HOST] | |
856 | _ACEOF | |
857 | fi | |
858 | ||
859 | if test -n "$ac_init_help"; then | |
860 | case $ac_init_help in | |
861 | short | recursive ) echo "Configuration of wxWindows 2.5.0:";; | |
862 | esac | |
863 | cat <<\_ACEOF | |
864 | ||
865 | Optional Features: | |
866 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
867 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
868 | --enable-gui use GUI classes | |
9747f85d | 869 | --disable-monolithic don't build wxWindows as single library |
e6cc62c6 VS |
870 | --enable-universal use wxWindows GUI controls instead of native ones |
871 | --enable-nanox use NanoX | |
872 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
873 | --enable-shared create shared library code | |
e6cc62c6 VS |
874 | --enable-optimise create optimised code |
875 | --enable-debug same as debug_flag and debug_info | |
876 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin) | |
877 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
878 | --enable-debug_info create code with debugging information | |
879 | --enable-debug_gdb create code with extra GDB debugging information | |
880 | --enable-debug_cntxt use wxDebugContext | |
881 | --enable-mem_tracing create code with memory tracing | |
882 | --enable-profile create code with profiling information | |
883 | --enable-no_rtti create code without RTTI information | |
884 | --enable-no_exceptions create code without C++ exceptions handling | |
885 | --enable-permissive compile code disregarding strict ANSI | |
886 | --enable-no_deps create code without dependency information | |
887 | --enable-compat20 enable wxWindows 2.0 compatibility | |
888 | --enable-compat22 enable wxWindows 2.2 compatibility | |
889 | --disable-compat24 disable wxWindows 2.4 compatibility | |
890 | --enable-rpath=DIR output the rpath flag from wx-config | |
891 | --enable-intl use internationalization system | |
892 | --enable-config use wxConfig (and derived) classes | |
893 | --enable-protocols use wxProtocol and derived classes | |
894 | --enable-ftp use wxFTP (requires wxProtocol | |
895 | --enable-http use wxHTTP (requires wxProtocol | |
896 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
897 | --enable-sockets use socket/network classes | |
898 | --enable-ole use OLE classes | |
899 | --enable-dataobj use data object classes | |
900 | --enable-ipc use interprocess communication (wxSocket etc.) | |
901 | --enable-cmdline use wxCmdLineParser class | |
902 | --enable-datetime use wxDateTime class | |
903 | --enable-stopwatch use wxStopWatch class | |
904 | --enable-dialupman use dialup network classes | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-timer use wxTimer class | |
907 | --enable-wave use wxWave class | |
908 | --enable-fraction use wxFraction class | |
909 | --enable-dynlib use wxLibrary class for DLL loading | |
910 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
911 | --enable-longlong use wxLongLong class | |
912 | --enable-geometry use geometry class | |
913 | --enable-log use logging system | |
914 | --enable-streams use wxStream etc classes | |
915 | --enable-file use wxFile classes | |
916 | --enable-ffile use wxFFile classes | |
917 | --enable-textbuf use wxTextBuffer class | |
918 | --enable-textfile use wxTextFile class | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-unicode compile wxString with Unicode support | |
921 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
922 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
923 | --enable-std_iostreams use standard C++ stream classes | |
924 | --enable-filesystem use virtual file systems classes | |
925 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
926 | --enable-fs_zip use virtual ZIP filesystems | |
927 | --enable-zipstream use wxZipInputStream | |
928 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
929 | --enable-snglinst use wxSingleInstanceChecker class | |
930 | --enable-mimetype use wxMimeTypesManager | |
931 | --enable-sysoptions use wxSystemOptions | |
932 | --enable-url use wxURL class | |
933 | --enable-protocol use wxProtocol class | |
934 | --enable-protocol-http HTTP support in wxProtocol | |
935 | --enable-protocol-ftp FTP support in wxProtocol | |
936 | --enable-protocol-file FILE support in wxProtocol | |
937 | --enable-threads use threads | |
938 | --enable-docview use document view architecture | |
939 | --enable-help use help subsystem | |
940 | --enable-mshtmlhelp use MS HTML Help (win32) | |
941 | --enable-html use wxHTML sub-library | |
942 | --enable-htmlhelp use wxHTML-based help | |
943 | --enable-constraints use layout-constraints system | |
944 | --enable-printarch use printing architecture | |
945 | --enable-mdi use multiple document interface architecture | |
946 | --enable-loggui use standard GUI logger | |
947 | --enable-logwin use wxLogWindow | |
948 | --enable-logdialog use wxLogDialog | |
949 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
950 | --enable-prologio not available; see contrib | |
951 | --enable-resources not available; see contrib | |
952 | --enable-clipboard use wxClipboard class | |
953 | --enable-dnd use Drag'n'Drop classes | |
954 | --enable-metafile use win32 metafiles | |
955 | --enable-controls use all usual controls | |
956 | --enable-accel use accelerators | |
957 | --enable-button use wxButton class | |
958 | --enable-bmpbutton use wxBitmapButton class | |
959 | --enable-calendar use wxCalendarCtrl class | |
960 | --enable-caret use wxCaret class | |
961 | --enable-checkbox use wxCheckBox class | |
962 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
963 | --enable-choice use wxChoice class | |
964 | --enable-combobox use wxComboBox class | |
965 | --enable-display use wxDisplay class | |
966 | --enable-gauge use wxGauge class | |
967 | --enable-grid use wxGrid class | |
968 | --enable-imaglist use wxImageList class | |
969 | --enable-listbox use wxListBox class | |
970 | --enable-listctrl use wxListCtrl class | |
971 | --enable-notebook use wxNotebook class | |
972 | --enable-radiobox use wxRadioBox class | |
973 | --enable-radiobtn use wxRadioButton class | |
974 | --enable-sash use wxSashWindow class | |
975 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
976 | --enable-slider use wxSlider class | |
977 | --enable-spinbtn use wxSpinButton class | |
978 | --enable-spinctrl use wxSpinCtrl class | |
979 | --enable-splitter use wxSplitterWindow class | |
980 | --enable-statbmp use wxStaticBitmap class | |
981 | --enable-statbox use wxStaticBox class | |
982 | --enable-statline use wxStaticLine class | |
983 | --enable-stattext use wxStaticText class | |
984 | --enable-statusbar use wxStatusBar class | |
985 | --enable-tabdialog use wxTabControl class | |
986 | --enable-textctrl use wxTextCtrl class | |
987 | --enable-togglebtn use wxToggleButton class | |
988 | --enable-toolbar use wxToolBar class | |
989 | --enable-tbarnative use native wxToolBar class | |
990 | --enable-tbarsmpl use wxToolBarSimple class | |
991 | --enable-treectrl use wxTreeCtrl class | |
992 | --enable-tipwindow use wxTipWindow class | |
993 | --enable-popupwin use wxPopUpWindow class | |
994 | --enable-commondlg use all common dialogs | |
995 | --enable-choicedlg use wxChoiceDialog | |
996 | --enable-coldlg use wxColourDialog | |
997 | --enable-filedlg use wxFileDialog | |
998 | --enable-finddlg use wxFindReplaceDialog | |
999 | --enable-fontdlg use wxFontDialog | |
1000 | --enable-dirdlg use wxDirDialog | |
1001 | --enable-msgdlg use wxMessageDialog | |
1002 | --enable-numberdlg use wxNumberEntryDialog | |
1003 | --enable-splash use wxSplashScreen | |
1004 | --enable-textdlg use wxTextDialog | |
1005 | --enable-tipdlg use startup tips | |
1006 | --enable-progressdlg use wxProgressDialog | |
1007 | --enable-wizarddlg use wxWizard | |
1008 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1009 | --enable-miniframe use wxMiniFrame class | |
1010 | --enable-tooltips use wxToolTip class | |
1011 | --enable-splines use spline drawing code | |
1012 | --enable-validators use wxValidator and derived classes | |
1013 | --enable-busyinfo use wxBusyInfo | |
1014 | --enable-joystick use wxJoystick (Linux only) | |
1015 | --enable-metafiles use wxMetaFile (Windows only) | |
1016 | --enable-dragimage use wxDragImage | |
1017 | --enable-accessibility enable accessibility support | |
1018 | --enable-palette use wxPalette class | |
1019 | --enable-image use wxImage class | |
1020 | --enable-gif use gif images (GIF file format) | |
1021 | --enable-pcx use pcx images (PCX file format) | |
1022 | --enable-iff use iff images (IFF file format) | |
1023 | --enable-pnm use pnm images (PNM file format) | |
1024 | --enable-xpm use xpm images (XPM file format) | |
1025 | --enable-icocur use Windows ICO and CUR formats | |
1026 | --disable-largefile omit support for large files | |
1027 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1028 | --disable-gtktest Do not try to compile and run a test GTK program | |
1029 | ||
1030 | Optional Packages: | |
1031 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1032 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1033 | --with-gtk use GTK+ | |
1034 | --with-motif use Motif/Lesstif | |
1035 | --with-mac use Mac OS X | |
1036 | --with-cocoa use Cocoa | |
1037 | --with-wine use Wine | |
1038 | --with-msw use MS-Windows | |
1039 | --with-pm use OS/2 Presentation Manager | |
1040 | --with-mgl use SciTech MGL | |
1041 | --with-microwin use MicroWindows | |
1042 | --with-x11 use X11 | |
1043 | --with-libpng use libpng (PNG image format) | |
1044 | --with-libjpeg use libjpeg (JPEG file format) | |
1045 | --with-libtiff use libtiff (TIFF file format) | |
1046 | --with-opengl use OpenGL (or Mesa) | |
1047 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1048 | --with-regex enable support for wxRegEx class | |
1049 | --with-zlib use zlib for LZW compression | |
1050 | --with-odbc use the IODBC and wxODBC classes | |
1051 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1052 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1053 | --with-x use the X Window System | |
1054 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1055 | ||
1056 | Some influential environment variables: | |
1057 | CC C compiler command | |
1058 | CFLAGS C compiler flags | |
1059 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1060 | nonstandard directory <lib dir> | |
1061 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1062 | headers in a nonstandard directory <include dir> | |
1063 | CPP C preprocessor | |
1064 | CXX C++ compiler command | |
1065 | CXXFLAGS C++ compiler flags | |
1066 | CXXCPP C++ preprocessor | |
1067 | ||
1068 | Use these variables to override the choices made by `configure' or to help | |
1069 | it to find libraries and programs with nonstandard names/locations. | |
1070 | ||
1071 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1072 | _ACEOF | |
1073 | fi | |
1074 | ||
1075 | if test "$ac_init_help" = "recursive"; then | |
1076 | # If there are subdirs, report their specific --help. | |
1077 | ac_popdir=`pwd` | |
1078 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1079 | test -d $ac_dir || continue | |
1080 | ac_builddir=. | |
1081 | ||
1082 | if test "$ac_dir" != .; then | |
1083 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1084 | # A "../" for each directory in $ac_dir_suffix. | |
1085 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1086 | else | |
1087 | ac_dir_suffix= ac_top_builddir= | |
1088 | fi | |
1089 | ||
1090 | case $srcdir in | |
1091 | .) # No --srcdir option. We are building in place. | |
1092 | ac_srcdir=. | |
1093 | if test -z "$ac_top_builddir"; then | |
1094 | ac_top_srcdir=. | |
1095 | else | |
1096 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1097 | fi ;; | |
1098 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1099 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1100 | ac_top_srcdir=$srcdir ;; | |
1101 | *) # Relative path. | |
1102 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1103 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1104 | esac | |
1105 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1106 | # absolute. | |
1107 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1108 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1109 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1110 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1111 | ||
1112 | cd $ac_dir | |
1113 | # Check for guested configure; otherwise get Cygnus style configure. | |
1114 | if test -f $ac_srcdir/configure.gnu; then | |
1115 | echo | |
1116 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1117 | elif test -f $ac_srcdir/configure; then | |
1118 | echo | |
1119 | $SHELL $ac_srcdir/configure --help=recursive | |
1120 | elif test -f $ac_srcdir/configure.ac || | |
1121 | test -f $ac_srcdir/configure.in; then | |
1122 | echo | |
1123 | $ac_configure --help | |
1124 | else | |
1125 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1126 | fi | |
1127 | cd $ac_popdir | |
1128 | done | |
1129 | fi | |
8284b0c5 | 1130 | |
e6cc62c6 VS |
1131 | test -n "$ac_init_help" && exit 0 |
1132 | if $ac_init_version; then | |
1133 | cat <<\_ACEOF | |
1134 | wxWindows configure 2.5.0 | |
1135 | generated by GNU Autoconf 2.57 | |
10f2d63a | 1136 | |
e6cc62c6 VS |
1137 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1138 | Free Software Foundation, Inc. | |
1139 | This configure script is free software; the Free Software Foundation | |
1140 | gives unlimited permission to copy, distribute and modify it. | |
1141 | _ACEOF | |
1142 | exit 0 | |
7c66a493 | 1143 | fi |
e6cc62c6 VS |
1144 | exec 5>config.log |
1145 | cat >&5 <<_ACEOF | |
1146 | This file contains any messages produced by compilers while | |
1147 | running configure, to aid debugging if configure makes a mistake. | |
1148 | ||
1149 | It was created by wxWindows $as_me 2.5.0, which was | |
1150 | generated by GNU Autoconf 2.57. Invocation command line was | |
1151 | ||
1152 | $ $0 $@ | |
1153 | ||
1154 | _ACEOF | |
1155 | { | |
1156 | cat <<_ASUNAME | |
1157 | ## --------- ## | |
1158 | ## Platform. ## | |
1159 | ## --------- ## | |
1160 | ||
1161 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1162 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1163 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1164 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1165 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1166 | ||
1167 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1168 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1169 | ||
1170 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1171 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1172 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1173 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1174 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1175 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1176 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1177 | ||
1178 | _ASUNAME | |
1179 | ||
1180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1181 | for as_dir in $PATH | |
1182 | do | |
1183 | IFS=$as_save_IFS | |
1184 | test -z "$as_dir" && as_dir=. | |
1185 | echo "PATH: $as_dir" | |
1186 | done | |
1187 | ||
1188 | } >&5 | |
1189 | ||
1190 | cat >&5 <<_ACEOF | |
1191 | ||
1192 | ||
1193 | ## ----------- ## | |
1194 | ## Core tests. ## | |
1195 | ## ----------- ## | |
1196 | ||
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | # Keep a trace of the command line. | |
1201 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1202 | # Strip out --silent because we don't want to record it for future runs. | |
1203 | # Also quote any args containing shell meta-characters. | |
1204 | # Make two passes to allow for proper duplicate-argument suppression. | |
1205 | ac_configure_args= | |
1206 | ac_configure_args0= | |
1207 | ac_configure_args1= | |
1208 | ac_sep= | |
1209 | ac_must_keep_next=false | |
1210 | for ac_pass in 1 2 | |
1211 | do | |
1212 | for ac_arg | |
1213 | do | |
1214 | case $ac_arg in | |
1215 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1217 | | -silent | --silent | --silen | --sile | --sil) | |
1218 | continue ;; | |
1219 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1220 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1221 | esac | |
1222 | case $ac_pass in | |
1223 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1224 | 2) | |
1225 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1226 | if test $ac_must_keep_next = true; then | |
1227 | ac_must_keep_next=false # Got value, back to normal. | |
1228 | else | |
1229 | case $ac_arg in | |
1230 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1231 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1232 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1233 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1234 | case "$ac_configure_args0 " in | |
1235 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1236 | esac | |
1237 | ;; | |
1238 | -* ) ac_must_keep_next=true ;; | |
1239 | esac | |
1240 | fi | |
1241 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1242 | # Get rid of the leading space. | |
1243 | ac_sep=" " | |
1244 | ;; | |
1245 | esac | |
1246 | done | |
1247 | done | |
1248 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1249 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1250 | ||
1251 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1252 | # config.log. We remove comments because anyway the quotes in there | |
1253 | # would cause problems or look ugly. | |
1254 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1255 | # such as our DU 5.0 friend, will then `close' the trap. | |
1256 | trap 'exit_status=$? | |
1257 | # Save into config.log some information that might help in debugging. | |
1258 | { | |
1259 | echo | |
1260 | ||
1261 | cat <<\_ASBOX | |
1262 | ## ---------------- ## | |
1263 | ## Cache variables. ## | |
1264 | ## ---------------- ## | |
1265 | _ASBOX | |
1266 | echo | |
1267 | # The following way of writing the cache mishandles newlines in values, | |
1268 | { | |
1269 | (set) 2>&1 | | |
1270 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1271 | *ac_space=\ *) | |
1272 | sed -n \ | |
1273 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1274 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1275 | ;; | |
1276 | *) | |
1277 | sed -n \ | |
1278 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1279 | ;; | |
1280 | esac; | |
1281 | } | |
1282 | echo | |
1283 | ||
1284 | cat <<\_ASBOX | |
1285 | ## ----------------- ## | |
1286 | ## Output variables. ## | |
1287 | ## ----------------- ## | |
1288 | _ASBOX | |
1289 | echo | |
1290 | for ac_var in $ac_subst_vars | |
1291 | do | |
1292 | eval ac_val=$`echo $ac_var` | |
1293 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1294 | done | sort | |
1295 | echo | |
1296 | ||
1297 | if test -n "$ac_subst_files"; then | |
1298 | cat <<\_ASBOX | |
1299 | ## ------------- ## | |
1300 | ## Output files. ## | |
1301 | ## ------------- ## | |
1302 | _ASBOX | |
1303 | echo | |
1304 | for ac_var in $ac_subst_files | |
1305 | do | |
1306 | eval ac_val=$`echo $ac_var` | |
1307 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1308 | done | sort | |
1309 | echo | |
1310 | fi | |
1311 | ||
1312 | if test -s confdefs.h; then | |
1313 | cat <<\_ASBOX | |
1314 | ## ----------- ## | |
1315 | ## confdefs.h. ## | |
1316 | ## ----------- ## | |
1317 | _ASBOX | |
1318 | echo | |
1319 | sed "/^$/d" confdefs.h | sort | |
1320 | echo | |
1321 | fi | |
1322 | test "$ac_signal" != 0 && | |
1323 | echo "$as_me: caught signal $ac_signal" | |
1324 | echo "$as_me: exit $exit_status" | |
1325 | } >&5 | |
1326 | rm -f core core.* *.core && | |
1327 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1328 | exit $exit_status | |
1329 | ' 0 | |
1330 | for ac_signal in 1 2 13 15; do | |
1331 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1332 | done | |
1333 | ac_signal=0 | |
1334 | ||
1335 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1336 | rm -rf conftest* confdefs.h | |
1337 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1338 | echo >confdefs.h | |
1339 | ||
1340 | # Predefined preprocessor variables. | |
1341 | ||
1342 | cat >>confdefs.h <<_ACEOF | |
1343 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1344 | _ACEOF | |
1345 | ||
1346 | ||
1347 | cat >>confdefs.h <<_ACEOF | |
1348 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1349 | _ACEOF | |
1350 | ||
1351 | ||
1352 | cat >>confdefs.h <<_ACEOF | |
1353 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1354 | _ACEOF | |
1355 | ||
1356 | ||
1357 | cat >>confdefs.h <<_ACEOF | |
1358 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1359 | _ACEOF | |
1360 | ||
1361 | ||
1362 | cat >>confdefs.h <<_ACEOF | |
1363 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1364 | _ACEOF | |
1365 | ||
1366 | ||
1367 | # Let the site file select an alternate cache file if it wants to. | |
1368 | # Prefer explicitly selected file to automatically selected ones. | |
1369 | if test -z "$CONFIG_SITE"; then | |
1370 | if test "x$prefix" != xNONE; then | |
1371 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1372 | else | |
1373 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1374 | fi | |
1375 | fi | |
1376 | for ac_site_file in $CONFIG_SITE; do | |
1377 | if test -r "$ac_site_file"; then | |
1378 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1379 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1380 | sed 's/^/| /' "$ac_site_file" >&5 | |
1381 | . "$ac_site_file" | |
1382 | fi | |
1383 | done | |
1384 | ||
1385 | if test -r "$cache_file"; then | |
1386 | # Some versions of bash will fail to source /dev/null (special | |
1387 | # files actually), so we avoid doing that. | |
1388 | if test -f "$cache_file"; then | |
1389 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1390 | echo "$as_me: loading cache $cache_file" >&6;} | |
1391 | case $cache_file in | |
1392 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1393 | *) . ./$cache_file;; | |
1394 | esac | |
1395 | fi | |
1396 | else | |
1397 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1398 | echo "$as_me: creating cache $cache_file" >&6;} | |
1399 | >$cache_file | |
1400 | fi | |
1401 | ||
1402 | # Check that the precious variables saved in the cache have kept the same | |
1403 | # value. | |
1404 | ac_cache_corrupted=false | |
1405 | for ac_var in `(set) 2>&1 | | |
1406 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1407 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1408 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1409 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1410 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1411 | case $ac_old_set,$ac_new_set in | |
1412 | set,) | |
1413 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1414 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1415 | ac_cache_corrupted=: ;; | |
1416 | ,set) | |
1417 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1418 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1419 | ac_cache_corrupted=: ;; | |
1420 | ,);; | |
1421 | *) | |
1422 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1423 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1424 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1425 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1426 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1427 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1428 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1429 | ac_cache_corrupted=: | |
1430 | fi;; | |
1431 | esac | |
1432 | # Pass precious variables to config.status. | |
1433 | if test "$ac_new_set" = set; then | |
1434 | case $ac_new_val in | |
1435 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1436 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1437 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1438 | esac | |
1439 | case " $ac_configure_args " in | |
1440 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1441 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1442 | esac | |
1443 | fi | |
1444 | done | |
1445 | if $ac_cache_corrupted; then | |
1446 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1447 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1448 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1449 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1450 | { (exit 1); exit 1; }; } | |
1451 | fi | |
1452 | ||
1453 | ac_ext=c | |
1454 | ac_cpp='$CPP $CPPFLAGS' | |
1455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1458 | ||
1459 | ||
1460 | ||
1461 | ||
1462 | ||
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
698dcdb6 | 1475 | |
8284b0c5 | 1476 | |
7c66a493 | 1477 | |
a0b9e27f MB |
1478 | |
1479 | ||
a0b9e27f | 1480 | |
a0b9e27f | 1481 | |
a0b9e27f | 1482 | |
a0b9e27f | 1483 | |
a0b9e27f | 1484 | |
a0b9e27f | 1485 | |
e6cc62c6 VS |
1486 | |
1487 | ||
1488 | ac_aux_dir= | |
1489 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1490 | if test -f $ac_dir/install-sh; then | |
1491 | ac_aux_dir=$ac_dir | |
1492 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1493 | break | |
1494 | elif test -f $ac_dir/install.sh; then | |
1495 | ac_aux_dir=$ac_dir | |
1496 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1497 | break | |
1498 | elif test -f $ac_dir/shtool; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1501 | break | |
1502 | fi | |
1503 | done | |
1504 | if test -z "$ac_aux_dir"; then | |
1505 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1506 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1507 | { (exit 1); exit 1; }; } | |
1508 | fi | |
1509 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1510 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1511 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1512 | ||
1513 | # Make sure we can run config.sub. | |
1514 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1515 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1516 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1517 | { (exit 1); exit 1; }; } | |
1518 | ||
1519 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1520 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1521 | if test "${ac_cv_build+set}" = set; then | |
1522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1523 | else | |
1524 | ac_cv_build_alias=$build_alias | |
1525 | test -z "$ac_cv_build_alias" && | |
1526 | ac_cv_build_alias=`$ac_config_guess` | |
1527 | test -z "$ac_cv_build_alias" && | |
1528 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1529 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1530 | { (exit 1); exit 1; }; } | |
1531 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1532 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1533 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1534 | { (exit 1); exit 1; }; } | |
1535 | ||
1536 | fi | |
1537 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1538 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1539 | build=$ac_cv_build | |
1540 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1541 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1542 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1543 | ||
1544 | ||
1545 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1546 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1547 | if test "${ac_cv_host+set}" = set; then | |
1548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1549 | else | |
1550 | ac_cv_host_alias=$host_alias | |
1551 | test -z "$ac_cv_host_alias" && | |
1552 | ac_cv_host_alias=$ac_cv_build_alias | |
1553 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1554 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1555 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1556 | { (exit 1); exit 1; }; } | |
1557 | ||
1558 | fi | |
1559 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1560 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1561 | host=$ac_cv_host | |
1562 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1563 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1564 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1565 | ||
1566 | ||
1567 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1568 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1569 | if test "${ac_cv_target+set}" = set; then | |
1570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1571 | else | |
1572 | ac_cv_target_alias=$target_alias | |
1573 | test "x$ac_cv_target_alias" = "x" && | |
1574 | ac_cv_target_alias=$ac_cv_host_alias | |
1575 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1576 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1577 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | ||
1580 | fi | |
1581 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1582 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1583 | target=$ac_cv_target | |
1584 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1585 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1586 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1587 | ||
1588 | ||
1589 | # The aliases save the names the user supplied, while $host etc. | |
1590 | # will get canonicalized. | |
1591 | test -n "$target_alias" && | |
7c66a493 VZ |
1592 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1593 | NONENONEs,x,x, && | |
1594 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1595 | |
1596 | ||
a0b9e27f | 1597 | |
10f2d63a | 1598 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1599 | WX_MINOR_VERSION_NUMBER=5 |
1600 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1601 | |
10f2d63a | 1602 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1603 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1604 | |
978f1259 RL |
1605 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1606 | ||
34bed6d9 | 1607 | WX_CURRENT=0 |
6426998c RL |
1608 | WX_REVISION=0 |
1609 | WX_AGE=0 | |
1610 | ||
8284b0c5 MB |
1611 | |
1612 | ||
10f2d63a VZ |
1613 | USE_UNIX=1 |
1614 | USE_WIN32=0 | |
f9bc1684 | 1615 | USE_DOS=0 |
b12915c1 | 1616 | USE_BEOS=0 |
1216f52d | 1617 | USE_MAC=0 |
b12915c1 | 1618 | |
10f2d63a | 1619 | USE_AIX= |
fe0895cf VS |
1620 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1621 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1622 | USE_LINUX= |
f6bcfd97 | 1623 | USE_NETBSD= |
89e3b3e4 | 1624 | USE_OPENBSD= |
fe0895cf VS |
1625 | USE_OSF= USE_SGI= |
1626 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1627 | USE_ULTRIX= |
89e3b3e4 VZ |
1628 | USE_UNIXWARE= |
1629 | ||
1630 | USE_ALPHA= | |
10f2d63a | 1631 | |
ab9b9eab VZ |
1632 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1633 | ||
ac0c4cc3 | 1634 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1635 | |
ac0c4cc3 | 1636 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1637 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1638 | DEFAULT_wxUSE_MAC=0 |
1639 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1640 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1641 | DEFAULT_wxUSE_MOTIF=0 |
1642 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1643 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1644 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1645 | |
ac0c4cc3 | 1646 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1647 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1648 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1649 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1650 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1651 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1652 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1653 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1654 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1655 | |
d6a55c4b | 1656 | PROGRAM_EXT= |
3a922bb4 | 1657 | SO_SUFFIX=so |
fe0895cf | 1658 | SAMPLES_RPATH_FLAG= |
d6a55c4b | 1659 | |
10f2d63a VZ |
1660 | case "${host}" in |
1661 | *-hp-hpux* ) | |
1662 | USE_HPUX=1 | |
1663 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1664 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1665 | SO_SUFFIX=sl |
e6cc62c6 | 1666 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1667 | #define __HPUX__ 1 |
e6cc62c6 | 1668 | _ACEOF |
10f2d63a VZ |
1669 | |
1670 | ;; | |
1671 | *-*-linux* ) | |
1672 | USE_LINUX=1 | |
e6cc62c6 | 1673 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1674 | #define __LINUX__ 1 |
e6cc62c6 | 1675 | _ACEOF |
10f2d63a VZ |
1676 | |
1677 | TMP=`uname -m` | |
1678 | if test "x$TMP" = "xalpha"; then | |
1679 | USE_ALPHA=1 | |
e6cc62c6 | 1680 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1681 | #define __ALPHA__ 1 |
e6cc62c6 | 1682 | _ACEOF |
fe0895cf VS |
1683 | |
1684 | fi | |
1685 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1686 | ;; | |
1687 | *-*-gnu* ) | |
1688 | USE_GNU=1 | |
e6cc62c6 | 1689 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1690 | #define __GNU__ 1 |
e6cc62c6 | 1691 | _ACEOF |
fe0895cf VS |
1692 | |
1693 | TMP=`uname -m` | |
1694 | if test "x$TMP" = "xalpha"; then | |
1695 | USE_ALPHA=1 | |
e6cc62c6 | 1696 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1697 | #define __ALPHA__ 1 |
e6cc62c6 | 1698 | _ACEOF |
10f2d63a VZ |
1699 | |
1700 | fi | |
1701 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1702 | ;; | |
1703 | *-*-irix5* | *-*-irix6* ) | |
1704 | USE_SGI=1 | |
1705 | USE_SVR4=1 | |
e6cc62c6 | 1706 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1707 | #define __SGI__ 1 |
e6cc62c6 | 1708 | _ACEOF |
10f2d63a | 1709 | |
e6cc62c6 | 1710 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1711 | #define __SVR4__ 1 |
e6cc62c6 | 1712 | _ACEOF |
10f2d63a VZ |
1713 | |
1714 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1715 | ;; | |
1716 | *-*-solaris2* ) | |
1717 | USE_SUN=1 | |
1718 | USE_SOLARIS=1 | |
1719 | USE_SVR4=1 | |
e6cc62c6 | 1720 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1721 | #define __SUN__ 1 |
e6cc62c6 | 1722 | _ACEOF |
10f2d63a | 1723 | |
e6cc62c6 | 1724 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1725 | #define __SOLARIS__ 1 |
e6cc62c6 | 1726 | _ACEOF |
10f2d63a | 1727 | |
e6cc62c6 | 1728 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1729 | #define __SVR4__ 1 |
e6cc62c6 | 1730 | _ACEOF |
10f2d63a VZ |
1731 | |
1732 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1733 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1734 | ;; |
1735 | *-*-sunos4* ) | |
1736 | USE_SUN=1 | |
1737 | USE_SUNOS=1 | |
1738 | USE_BSD=1 | |
e6cc62c6 | 1739 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1740 | #define __SUN__ 1 |
e6cc62c6 | 1741 | _ACEOF |
10f2d63a | 1742 | |
e6cc62c6 | 1743 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1744 | #define __SUNOS__ 1 |
e6cc62c6 | 1745 | _ACEOF |
10f2d63a | 1746 | |
e6cc62c6 | 1747 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1748 | #define __BSD__ 1 |
e6cc62c6 | 1749 | _ACEOF |
10f2d63a VZ |
1750 | |
1751 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1752 | ;; | |
f6bcfd97 | 1753 | *-*-freebsd*) |
10f2d63a VZ |
1754 | USE_BSD=1 |
1755 | USE_FREEBSD=1 | |
e6cc62c6 | 1756 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1757 | #define __FREEBSD__ 1 |
e6cc62c6 | 1758 | _ACEOF |
10f2d63a | 1759 | |
e6cc62c6 | 1760 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1761 | #define __BSD__ 1 |
e6cc62c6 | 1762 | _ACEOF |
95c8801c VS |
1763 | |
1764 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1765 | ;; | |
1766 | *-*-openbsd*) | |
1767 | USE_BSD=1 | |
1768 | USE_OPENBSD=1 | |
e6cc62c6 | 1769 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1770 | #define __OPENBSD__ 1 |
e6cc62c6 | 1771 | _ACEOF |
95c8801c | 1772 | |
e6cc62c6 | 1773 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1774 | #define __BSD__ 1 |
e6cc62c6 | 1775 | _ACEOF |
f6bcfd97 BP |
1776 | |
1777 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1778 | ;; | |
1779 | *-*-netbsd*) | |
1780 | USE_BSD=1 | |
1781 | USE_NETBSD=1 | |
e6cc62c6 | 1782 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1783 | #define __NETBSD__ 1 |
e6cc62c6 | 1784 | _ACEOF |
f6bcfd97 | 1785 | |
e6cc62c6 | 1786 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1787 | #define __BSD__ 1 |
e6cc62c6 | 1788 | _ACEOF |
10f2d63a VZ |
1789 | |
1790 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1791 | ;; | |
1792 | *-*-osf* ) | |
1793 | USE_ALPHA=1 | |
1794 | USE_OSF=1 | |
e6cc62c6 | 1795 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1796 | #define __ALPHA__ 1 |
e6cc62c6 | 1797 | _ACEOF |
10f2d63a | 1798 | |
e6cc62c6 | 1799 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1800 | #define __OSF__ 1 |
e6cc62c6 | 1801 | _ACEOF |
10f2d63a VZ |
1802 | |
1803 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1804 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1805 | ;; |
1806 | *-*-dgux5* ) | |
1807 | USE_ALPHA=1 | |
1808 | USE_SVR4=1 | |
e6cc62c6 | 1809 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1810 | #define __ALPHA__ 1 |
e6cc62c6 | 1811 | _ACEOF |
10f2d63a | 1812 | |
e6cc62c6 | 1813 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1814 | #define __SVR4__ 1 |
e6cc62c6 | 1815 | _ACEOF |
10f2d63a VZ |
1816 | |
1817 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1818 | ;; | |
1819 | *-*-sysv5* ) | |
1820 | USE_SYSV=1 | |
1821 | USE_SVR4=1 | |
e6cc62c6 | 1822 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1823 | #define __SYSV__ 1 |
e6cc62c6 | 1824 | _ACEOF |
10f2d63a | 1825 | |
e6cc62c6 | 1826 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1827 | #define __SVR4__ 1 |
e6cc62c6 | 1828 | _ACEOF |
10f2d63a VZ |
1829 | |
1830 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1831 | ;; | |
1832 | *-*-aix* ) | |
1833 | USE_AIX=1 | |
1834 | USE_SYSV=1 | |
1835 | USE_SVR4=1 | |
2b5f62a0 | 1836 | SO_SUFFIX=a |
e6cc62c6 | 1837 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1838 | #define __AIX__ 1 |
e6cc62c6 | 1839 | _ACEOF |
10f2d63a | 1840 | |
e6cc62c6 | 1841 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1842 | #define __SYSV__ 1 |
e6cc62c6 | 1843 | _ACEOF |
10f2d63a | 1844 | |
e6cc62c6 | 1845 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1846 | #define __SVR4__ 1 |
e6cc62c6 | 1847 | _ACEOF |
10f2d63a VZ |
1848 | |
1849 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1850 | ;; | |
1851 | ||
89e3b3e4 VZ |
1852 | *-*-*UnixWare*) |
1853 | USE_SYSV=1 | |
1854 | USE_SVR4=1 | |
1855 | USE_UNIXWARE=1 | |
e6cc62c6 | 1856 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1857 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1858 | _ACEOF |
89e3b3e4 VZ |
1859 | |
1860 | ;; | |
1861 | ||
1c8183e2 | 1862 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1863 | SO_SUFFIX=dll |
cf27ef00 | 1864 | PROGRAM_EXT=".exe" |
7b7a7637 | 1865 | RESCOMP=windres |
10f2d63a VZ |
1866 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1867 | ;; | |
1868 | ||
f9bc1684 VS |
1869 | *-pc-msdosdjgpp ) |
1870 | USE_UNIX=0 | |
1871 | USE_DOS=1 | |
e6cc62c6 | 1872 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1873 | #define __DOS__ 1 |
e6cc62c6 | 1874 | _ACEOF |
f9bc1684 VS |
1875 | |
1876 | PROGRAM_EXT=".exe" | |
1877 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1878 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1879 | ;; |
1880 | ||
6fa882bd | 1881 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1882 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1883 | #define __EMX__ 1 |
e6cc62c6 | 1884 | _ACEOF |
10f2d63a | 1885 | |
cf27ef00 | 1886 | PROGRAM_EXT=".exe" |
e07802fc | 1887 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1888 | ;; |
1889 | ||
d08b457b GD |
1890 | powerpc-*-darwin* ) |
1891 | USE_BSD=1 | |
f11bdd03 | 1892 | USE_DARWIN=1 |
3a922bb4 | 1893 | SO_SUFFIX=dylib |
e6cc62c6 | 1894 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1895 | #define __BSD__ 1 |
e6cc62c6 | 1896 | _ACEOF |
b4085ce6 | 1897 | |
e6cc62c6 | 1898 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1899 | #define __DARWIN__ 1 |
e6cc62c6 | 1900 | _ACEOF |
d08b457b | 1901 | |
e6cc62c6 | 1902 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1903 | #define __POWERPC__ 1 |
e6cc62c6 | 1904 | _ACEOF |
82d43113 | 1905 | |
e6cc62c6 | 1906 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1907 | #define TARGET_CARBON 1 |
e6cc62c6 | 1908 | _ACEOF |
b4085ce6 GD |
1909 | |
1910 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1911 | ;; | |
1912 | ||
b12915c1 VZ |
1913 | *-*-beos* ) |
1914 | USE_BEOS=1 | |
e6cc62c6 | 1915 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1916 | #define __BEOS__ 1 |
e6cc62c6 | 1917 | _ACEOF |
b12915c1 VZ |
1918 | |
1919 | ;; | |
1920 | ||
10f2d63a | 1921 | *) |
e6cc62c6 VS |
1922 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1923 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1924 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1925 | esac |
1926 | ||
8284b0c5 MB |
1927 | |
1928 | ||
1929 | ||
1930 | wx_arg_cache_file="configarg.cache" | |
1931 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1932 | rm -f ${wx_arg_cache_file}.tmp |
1933 | touch ${wx_arg_cache_file}.tmp | |
1934 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1935 | |
10f2d63a VZ |
1936 | |
1937 | DEBUG_CONFIGURE=0 | |
1938 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1939 | DEFAULT_wxUSE_UNIVERSAL=no |
1940 | ||
d8356fa3 VZ |
1941 | DEFAULT_wxUSE_NANOX=no |
1942 | ||
10f2d63a VZ |
1943 | DEFAULT_wxUSE_THREADS=yes |
1944 | ||
1945 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1946 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1947 | DEFAULT_wxUSE_PROFILE=no |
1948 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1949 | DEFAULT_wxUSE_NO_RTTI=no |
1950 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1951 | DEFAULT_wxUSE_PERMISSIVE=no |
1952 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1953 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1954 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1955 | DEFAULT_wxUSE_MEM_TRACING=no | |
1956 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1957 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1958 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1959 | DEFAULT_wxUSE_APPLE_IEEE=no |
1960 | ||
1961 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1962 | DEFAULT_wxUSE_LOGWINDOW=no |
1963 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1964 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1965 | |
1966 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1967 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1968 | |
3e44f09d | 1969 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1970 | DEFAULT_wxUSE_ZLIB=no |
1971 | DEFAULT_wxUSE_LIBPNG=no | |
1972 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1973 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1974 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1975 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1976 | |
eb4efbdc | 1977 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1978 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1979 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1980 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1981 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
1982 | DEFAULT_wxUSE_TIMER=no |
1983 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1984 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1985 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1986 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1987 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1988 | DEFAULT_wxUSE_WAVE=no |
1989 | DEFAULT_wxUSE_INTL=no | |
1990 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1991 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1992 | DEFAULT_wxUSE_STREAMS=no |
1993 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1994 | DEFAULT_wxUSE_OLE=no |
1995 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1996 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1997 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1998 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1999 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2000 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2001 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2002 | |
2003 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2004 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2005 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2006 | ||
10f2d63a VZ |
2007 | DEFAULT_wxUSE_CLIPBOARD=no |
2008 | DEFAULT_wxUSE_TOOLTIPS=no | |
2009 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2010 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2011 | DEFAULT_wxUSE_SPLINES=no |
2012 | ||
2013 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2014 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2015 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2016 | ||
10f2d63a VZ |
2017 | DEFAULT_wxUSE_RESOURCES=no |
2018 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2019 | DEFAULT_wxUSE_IPC=no | |
2020 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2021 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2022 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2023 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2024 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2025 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2026 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2027 | DEFAULT_wxUSE_PROTOCOL=no | |
2028 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2029 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2030 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2031 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2032 | |
10f2d63a | 2033 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2034 | DEFAULT_wxUSE_CHOICEDLG=no |
2035 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2036 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2037 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2038 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2039 | DEFAULT_wxUSE_FONTDLG=no |
2040 | DEFAULT_wxUSE_MSGDLG=no | |
2041 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2042 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2043 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2044 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2045 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2046 | DEFAULT_wxUSE_WIZARDDLG=no |
2047 | ||
1e6feb95 | 2048 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2049 | DEFAULT_wxUSE_MINIFRAME=no |
2050 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2051 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2052 | DEFAULT_wxUSE_FS_INET=no |
2053 | DEFAULT_wxUSE_FS_ZIP=no | |
2054 | DEFAULT_wxUSE_BUSYINFO=no | |
2055 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 2056 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2057 | |
2058 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2059 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2060 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2061 | DEFAULT_wxUSE_CALCTRL=no |
2062 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2063 | DEFAULT_wxUSE_CHECKBOX=no |
2064 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2065 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2066 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2067 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2068 | DEFAULT_wxUSE_GAUGE=no |
2069 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
2070 | DEFAULT_wxUSE_IMAGLIST=no |
2071 | DEFAULT_wxUSE_LISTBOX=no | |
2072 | DEFAULT_wxUSE_LISTCTRL=no | |
2073 | DEFAULT_wxUSE_NOTEBOOK=no | |
2074 | DEFAULT_wxUSE_RADIOBOX=no | |
2075 | DEFAULT_wxUSE_RADIOBTN=no | |
2076 | DEFAULT_wxUSE_SASH=no | |
2077 | DEFAULT_wxUSE_SCROLLBAR=no | |
2078 | DEFAULT_wxUSE_SLIDER=no | |
2079 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2080 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2081 | DEFAULT_wxUSE_SPLITTER=no |
2082 | DEFAULT_wxUSE_STATBMP=no | |
2083 | DEFAULT_wxUSE_STATBOX=no | |
2084 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2085 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2086 | DEFAULT_wxUSE_STATUSBAR=yes |
2087 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2088 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2089 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2090 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2091 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2092 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2093 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2094 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2095 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2096 | |
2097 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2098 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2099 | DEFAULT_wxUSE_WCSRTOMBS=no |
2100 | ||
edae8572 | 2101 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2102 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2103 | DEFAULT_wxUSE_GIF=no |
2104 | DEFAULT_wxUSE_PCX=no | |
2105 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2106 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2107 | DEFAULT_wxUSE_XPM=no |
658974ae | 2108 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2109 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d VS |
2110 | |
2111 | DEFAULT_wxUSE_MONOLITHIC=yes | |
10f2d63a | 2112 | else |
1e6feb95 VZ |
2113 | DEFAULT_wxUSE_UNIVERSAL=no |
2114 | ||
d8356fa3 VZ |
2115 | DEFAULT_wxUSE_NANOX=no |
2116 | ||
10f2d63a VZ |
2117 | DEFAULT_wxUSE_THREADS=yes |
2118 | ||
2119 | DEFAULT_wxUSE_SHARED=yes | |
2120 | DEFAULT_wxUSE_OPTIMISE=yes | |
2121 | DEFAULT_wxUSE_PROFILE=no | |
2122 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2123 | DEFAULT_wxUSE_NO_RTTI=no |
2124 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2125 | DEFAULT_wxUSE_PERMISSIVE=no |
2126 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2127 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2128 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2129 | DEFAULT_wxUSE_MEM_TRACING=no | |
2130 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2131 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 2132 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
2133 | DEFAULT_wxUSE_APPLE_IEEE=yes |
2134 | ||
2135 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2136 | DEFAULT_wxUSE_LOGWINDOW=yes |
2137 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2138 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2139 | |
2140 | DEFAULT_wxUSE_GUI=yes | |
2141 | ||
831b3152 | 2142 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
2143 | DEFAULT_wxUSE_ZLIB=yes |
2144 | DEFAULT_wxUSE_LIBPNG=yes | |
2145 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2146 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2147 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2148 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2149 | |
eb4efbdc | 2150 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2151 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2152 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2153 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2154 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2155 | DEFAULT_wxUSE_TIMER=yes |
2156 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2157 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2158 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2159 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2160 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2161 | DEFAULT_wxUSE_WAVE=no |
2162 | DEFAULT_wxUSE_INTL=yes | |
2163 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2164 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2165 | DEFAULT_wxUSE_STREAMS=yes |
2166 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2167 | DEFAULT_wxUSE_OLE=yes |
2168 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2169 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2170 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2171 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2172 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2173 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2174 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2175 | |
2176 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2177 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2178 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2179 | ||
10f2d63a VZ |
2180 | DEFAULT_wxUSE_CLIPBOARD=yes |
2181 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2182 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2183 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2184 | DEFAULT_wxUSE_SPLINES=yes |
2185 | ||
2186 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2187 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2188 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2189 | ||
2b5f62a0 | 2190 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2191 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2192 | DEFAULT_wxUSE_IPC=yes | |
2193 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2194 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2195 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2196 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2197 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2198 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2199 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2200 | DEFAULT_wxUSE_PROTOCOL=yes |
2201 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2202 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2203 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2204 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2205 | |
2206 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2207 | DEFAULT_wxUSE_CHOICEDLG=yes |
2208 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2209 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2210 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2211 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2212 | DEFAULT_wxUSE_FONTDLG=yes |
2213 | DEFAULT_wxUSE_MSGDLG=yes | |
2214 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2215 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2216 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2217 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2218 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2219 | DEFAULT_wxUSE_WIZARDDLG=yes |
2220 | ||
1e6feb95 | 2221 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2222 | DEFAULT_wxUSE_MINIFRAME=yes |
2223 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2224 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2225 | DEFAULT_wxUSE_FS_INET=yes |
2226 | DEFAULT_wxUSE_FS_ZIP=yes | |
2227 | DEFAULT_wxUSE_BUSYINFO=yes | |
2228 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2229 | DEFAULT_wxUSE_VALIDATORS=yes | |
2230 | ||
2231 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2232 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2233 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2234 | DEFAULT_wxUSE_CALCTRL=yes |
2235 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2236 | DEFAULT_wxUSE_CHECKBOX=yes |
2237 | DEFAULT_wxUSE_CHECKLST=yes | |
2238 | DEFAULT_wxUSE_CHOICE=yes | |
2239 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2240 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2241 | DEFAULT_wxUSE_GAUGE=yes |
2242 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
2243 | DEFAULT_wxUSE_IMAGLIST=yes |
2244 | DEFAULT_wxUSE_LISTBOX=yes | |
2245 | DEFAULT_wxUSE_LISTCTRL=yes | |
2246 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2247 | DEFAULT_wxUSE_RADIOBOX=yes | |
2248 | DEFAULT_wxUSE_RADIOBTN=yes | |
2249 | DEFAULT_wxUSE_SASH=yes | |
2250 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2251 | DEFAULT_wxUSE_SLIDER=yes | |
2252 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2253 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2254 | DEFAULT_wxUSE_SPLITTER=yes |
2255 | DEFAULT_wxUSE_STATBMP=yes | |
2256 | DEFAULT_wxUSE_STATBOX=yes | |
2257 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2258 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2259 | DEFAULT_wxUSE_STATUSBAR=yes |
2260 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2261 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2262 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2263 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2264 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2265 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2266 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2267 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2268 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2269 | |
2270 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2271 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2272 | DEFAULT_wxUSE_WCSRTOMBS=no |
2273 | ||
edae8572 | 2274 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2275 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2276 | DEFAULT_wxUSE_GIF=yes |
2277 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2278 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2279 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2280 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2281 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2282 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d VS |
2283 | |
2284 | DEFAULT_wxUSE_MONOLITHIC=yes | |
10f2d63a VZ |
2285 | fi |
2286 | ||
8284b0c5 MB |
2287 | |
2288 | ||
10f2d63a | 2289 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2290 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2291 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2292 | has_toolkit_in_cache=1 |
2293 | eval "DEFAULT_$LINE" | |
2294 | eval "CACHE_$toolkit=1" | |
2295 | fi | |
2296 | done | |
2297 | ||
8284b0c5 MB |
2298 | |
2299 | ||
5005acfe | 2300 | enablestring= |
e6cc62c6 VS |
2301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2302 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2303 | no_cache=0 |
2304 | # Check whether --enable-gui or --disable-gui was given. | |
2305 | if test "${enable_gui+set}" = set; then | |
2306 | enableval="$enable_gui" | |
e6cc62c6 | 2307 | |
10f2d63a VZ |
2308 | if test "$enableval" = yes; then |
2309 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2310 | else | |
2311 | ac_cv_use_gui='wxUSE_GUI=no' | |
2312 | fi | |
e6cc62c6 | 2313 | |
10f2d63a | 2314 | else |
e6cc62c6 | 2315 | |
10f2d63a VZ |
2316 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2317 | if test "x$LINE" != x ; then | |
2318 | eval "DEFAULT_$LINE" | |
2319 | else | |
2320 | no_cache=1 | |
2321 | fi | |
2322 | ||
2323 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2324 | |
e6cc62c6 | 2325 | fi; |
10f2d63a VZ |
2326 | |
2327 | eval "$ac_cv_use_gui" | |
2328 | if test "$no_cache" != 1; then | |
2329 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2330 | fi | |
2331 | ||
2332 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2333 | echo "$as_me:$LINENO: result: yes" >&5 |
2334 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2335 | else |
e6cc62c6 VS |
2336 | echo "$as_me:$LINENO: result: no" >&5 |
2337 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2338 | fi |
e6cc62c6 | 2339 | |
10f2d63a | 2340 | |
9747f85d VS |
2341 | enablestring= |
2342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2343 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2344 | no_cache=0 | |
2345 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2346 | if test "${enable_monolithic+set}" = set; then | |
2347 | enableval="$enable_monolithic" | |
2348 | ||
2349 | if test "$enableval" = yes; then | |
2350 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2351 | else | |
2352 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2353 | fi | |
2354 | ||
2355 | else | |
2356 | ||
2357 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2358 | if test "x$LINE" != x ; then | |
2359 | eval "DEFAULT_$LINE" | |
2360 | else | |
2361 | no_cache=1 | |
2362 | fi | |
2363 | ||
2364 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2365 | ||
2366 | fi; | |
2367 | ||
2368 | eval "$ac_cv_use_monolithic" | |
2369 | if test "$no_cache" != 1; then | |
2370 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2371 | fi | |
2372 | ||
2373 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2374 | echo "$as_me:$LINENO: result: yes" >&5 | |
2375 | echo "${ECHO_T}yes" >&6 | |
2376 | else | |
2377 | echo "$as_me:$LINENO: result: no" >&5 | |
2378 | echo "${ECHO_T}no" >&6 | |
2379 | fi | |
2380 | ||
2381 | ||
b12915c1 | 2382 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2383 | |
8284b0c5 | 2384 | |
5005acfe | 2385 | enablestring= |
e6cc62c6 VS |
2386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2387 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2388 | no_cache=0 |
2389 | # Check whether --enable-universal or --disable-universal was given. | |
2390 | if test "${enable_universal+set}" = set; then | |
2391 | enableval="$enable_universal" | |
e6cc62c6 | 2392 | |
1e6feb95 VZ |
2393 | if test "$enableval" = yes; then |
2394 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2395 | else | |
2396 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2397 | fi | |
e6cc62c6 | 2398 | |
1e6feb95 | 2399 | else |
e6cc62c6 | 2400 | |
1e6feb95 VZ |
2401 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2402 | if test "x$LINE" != x ; then | |
2403 | eval "DEFAULT_$LINE" | |
2404 | else | |
2405 | no_cache=1 | |
2406 | fi | |
2407 | ||
2408 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2409 | |
e6cc62c6 | 2410 | fi; |
1e6feb95 VZ |
2411 | |
2412 | eval "$ac_cv_use_universal" | |
2413 | if test "$no_cache" != 1; then | |
2414 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2415 | fi | |
2416 | ||
2417 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2418 | echo "$as_me:$LINENO: result: yes" >&5 |
2419 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2420 | else |
e6cc62c6 VS |
2421 | echo "$as_me:$LINENO: result: no" >&5 |
2422 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2423 | fi |
e6cc62c6 VS |
2424 | |
2425 | ||
10f2d63a VZ |
2426 | # Check whether --with-gtk or --without-gtk was given. |
2427 | if test "${with_gtk+set}" = set; then | |
2428 | withval="$with_gtk" | |
2429 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2430 | fi; |
10f2d63a VZ |
2431 | |
2432 | # Check whether --with-motif or --without-motif was given. | |
2433 | if test "${with_motif+set}" = set; then | |
2434 | withval="$with_motif" | |
2435 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2436 | fi; |
10f2d63a | 2437 | |
b4085ce6 GD |
2438 | # Check whether --with-mac or --without-mac was given. |
2439 | if test "${with_mac+set}" = set; then | |
2440 | withval="$with_mac" | |
2441 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2442 | fi; |
b4085ce6 | 2443 | |
ac0c4cc3 DE |
2444 | # Check whether --with-cocoa or --without-cocoa was given. |
2445 | if test "${with_cocoa+set}" = set; then | |
2446 | withval="$with_cocoa" | |
2447 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2448 | fi; |
ac0c4cc3 | 2449 | |
10f2d63a VZ |
2450 | # Check whether --with-wine or --without-wine was given. |
2451 | if test "${with_wine+set}" = set; then | |
2452 | withval="$with_wine" | |
89e6bf6d | 2453 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2454 | fi; |
10f2d63a | 2455 | |
77e13408 RL |
2456 | # Check whether --with-msw or --without-msw was given. |
2457 | if test "${with_msw+set}" = set; then | |
2458 | withval="$with_msw" | |
b4efce5e | 2459 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2460 | fi; |
10f2d63a | 2461 | |
e07802fc VZ |
2462 | # Check whether --with-pm or --without-pm was given. |
2463 | if test "${with_pm+set}" = set; then | |
2464 | withval="$with_pm" | |
2465 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2466 | fi; |
698dcdb6 | 2467 | |
1e6feb95 VZ |
2468 | # Check whether --with-mgl or --without-mgl was given. |
2469 | if test "${with_mgl+set}" = set; then | |
2470 | withval="$with_mgl" | |
6c657b52 | 2471 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2472 | fi; |
1e6feb95 | 2473 | |
1725144d RR |
2474 | # Check whether --with-microwin or --without-microwin was given. |
2475 | if test "${with_microwin+set}" = set; then | |
2476 | withval="$with_microwin" | |
2477 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2478 | fi; |
1725144d | 2479 | |
f79bd02d JS |
2480 | # Check whether --with-x11 or --without-x11 was given. |
2481 | if test "${with_x11+set}" = set; then | |
2482 | withval="$with_x11" | |
3c011993 | 2483 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2484 | fi; |
a0b9e27f | 2485 | |
5005acfe | 2486 | enablestring= |
e6cc62c6 VS |
2487 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2488 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2489 | no_cache=0 |
ba875e66 VZ |
2490 | # Check whether --enable-nanox or --disable-nanox was given. |
2491 | if test "${enable_nanox+set}" = set; then | |
2492 | enableval="$enable_nanox" | |
e6cc62c6 | 2493 | |
d8356fa3 | 2494 | if test "$enableval" = yes; then |
ba875e66 | 2495 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2496 | else |
ba875e66 | 2497 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2498 | fi |
e6cc62c6 | 2499 | |
d8356fa3 | 2500 | else |
e6cc62c6 | 2501 | |
d8356fa3 VZ |
2502 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2503 | if test "x$LINE" != x ; then | |
2504 | eval "DEFAULT_$LINE" | |
2505 | else | |
2506 | no_cache=1 | |
2507 | fi | |
2508 | ||
ba875e66 | 2509 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2510 | |
e6cc62c6 | 2511 | fi; |
d8356fa3 | 2512 | |
ba875e66 | 2513 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2514 | if test "$no_cache" != 1; then |
ba875e66 | 2515 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2516 | fi |
2517 | ||
2518 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2519 | echo "$as_me:$LINENO: result: yes" >&5 |
2520 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2521 | else |
e6cc62c6 VS |
2522 | echo "$as_me:$LINENO: result: no" >&5 |
2523 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2524 | fi |
e6cc62c6 | 2525 | |
8284b0c5 | 2526 | |
d74f4b5a | 2527 | |
5005acfe | 2528 | enablestring= |
e6cc62c6 VS |
2529 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2530 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2531 | no_cache=0 |
2532 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2533 | if test "${enable_gtk2+set}" = set; then |
2534 | enableval="$enable_gtk2" | |
e6cc62c6 | 2535 | |
d74f4b5a VZ |
2536 | if test "$enableval" = yes; then |
2537 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2538 | else | |
2539 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2540 | fi | |
e6cc62c6 | 2541 | |
10f2d63a | 2542 | else |
e6cc62c6 | 2543 | |
d74f4b5a VZ |
2544 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2545 | if test "x$LINE" != x ; then | |
2546 | eval "DEFAULT_$LINE" | |
2547 | else | |
2548 | no_cache=1 | |
2549 | fi | |
2550 | ||
2551 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2552 | |
e6cc62c6 | 2553 | fi; |
328a083c | 2554 | |
d74f4b5a VZ |
2555 | eval "$ac_cv_use_gtk2" |
2556 | if test "$no_cache" != 1; then | |
2557 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2558 | fi | |
2559 | ||
2560 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2561 | echo "$as_me:$LINENO: result: yes" >&5 |
2562 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2563 | else |
e6cc62c6 VS |
2564 | echo "$as_me:$LINENO: result: no" >&5 |
2565 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2566 | fi |
d74f4b5a | 2567 | |
5c6fa7d2 | 2568 | |
e6cc62c6 VS |
2569 | |
2570 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2571 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2572 | no_cache=0 |
e6cc62c6 VS |
2573 | |
2574 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2575 | if test "${with_libpng+set}" = set; then |
2576 | withval="$with_libpng" | |
e6cc62c6 | 2577 | |
10f2d63a | 2578 | if test "$withval" = yes; then |
b12915c1 | 2579 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2580 | elif test "$withval" = no; then |
b12915c1 | 2581 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2582 | elif test "$withval" = sys; then |
2583 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2584 | elif test "$withval" = builtin; then |
2585 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2586 | else |
e6cc62c6 VS |
2587 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2588 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2589 | { (exit 1); exit 1; }; } | |
10f2d63a | 2590 | fi |
e6cc62c6 | 2591 | |
10f2d63a | 2592 | else |
e6cc62c6 | 2593 | |
b12915c1 | 2594 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2595 | if test "x$LINE" != x ; then |
2596 | eval "DEFAULT_$LINE" | |
2597 | else | |
2598 | no_cache=1 | |
2599 | fi | |
2600 | ||
b12915c1 | 2601 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2602 | |
e6cc62c6 | 2603 | fi; |
10f2d63a | 2604 | |
b12915c1 | 2605 | eval "$ac_cv_use_libpng" |
10f2d63a | 2606 | if test "$no_cache" != 1; then |
b12915c1 | 2607 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2608 | fi |
2609 | ||
b12915c1 | 2610 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2611 | echo "$as_me:$LINENO: result: yes" >&5 |
2612 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2613 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2614 | echo "$as_me:$LINENO: result: no" >&5 |
2615 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2616 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2617 | echo "$as_me:$LINENO: result: system version" >&5 |
2618 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2619 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2620 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2621 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2622 | else |
e6cc62c6 VS |
2623 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2624 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2625 | { (exit 1); exit 1; }; } | |
10f2d63a | 2626 | fi |
10f2d63a | 2627 | |
e6cc62c6 VS |
2628 | |
2629 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2630 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2631 | no_cache=0 |
e6cc62c6 VS |
2632 | |
2633 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2634 | if test "${with_libjpeg+set}" = set; then |
2635 | withval="$with_libjpeg" | |
e6cc62c6 | 2636 | |
10f2d63a | 2637 | if test "$withval" = yes; then |
b12915c1 | 2638 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2639 | elif test "$withval" = no; then |
b12915c1 | 2640 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2641 | elif test "$withval" = sys; then |
2642 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2643 | elif test "$withval" = builtin; then |
2644 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2645 | else |
e6cc62c6 VS |
2646 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2647 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2648 | { (exit 1); exit 1; }; } | |
10f2d63a | 2649 | fi |
e6cc62c6 | 2650 | |
10f2d63a | 2651 | else |
e6cc62c6 | 2652 | |
b12915c1 | 2653 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2654 | if test "x$LINE" != x ; then |
2655 | eval "DEFAULT_$LINE" | |
2656 | else | |
2657 | no_cache=1 | |
2658 | fi | |
2659 | ||
b12915c1 | 2660 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2661 | |
e6cc62c6 | 2662 | fi; |
10f2d63a | 2663 | |
b12915c1 | 2664 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2665 | if test "$no_cache" != 1; then |
b12915c1 | 2666 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2667 | fi |
2668 | ||
b12915c1 | 2669 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2670 | echo "$as_me:$LINENO: result: yes" >&5 |
2671 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2672 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2673 | echo "$as_me:$LINENO: result: no" >&5 |
2674 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2675 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2676 | echo "$as_me:$LINENO: result: system version" >&5 |
2677 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2678 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2679 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2680 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2681 | else |
e6cc62c6 VS |
2682 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2683 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2684 | { (exit 1); exit 1; }; } | |
10f2d63a | 2685 | fi |
10f2d63a | 2686 | |
e6cc62c6 VS |
2687 | |
2688 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2689 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2690 | no_cache=0 |
e6cc62c6 VS |
2691 | |
2692 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2693 | if test "${with_libtiff+set}" = set; then |
2694 | withval="$with_libtiff" | |
e6cc62c6 | 2695 | |
10f2d63a | 2696 | if test "$withval" = yes; then |
b12915c1 | 2697 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2698 | elif test "$withval" = no; then |
b12915c1 | 2699 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2700 | elif test "$withval" = sys; then |
2701 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2702 | elif test "$withval" = builtin; then |
2703 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2704 | else |
e6cc62c6 VS |
2705 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2706 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2707 | { (exit 1); exit 1; }; } | |
10f2d63a | 2708 | fi |
e6cc62c6 | 2709 | |
10f2d63a | 2710 | else |
e6cc62c6 | 2711 | |
b12915c1 | 2712 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2713 | if test "x$LINE" != x ; then |
2714 | eval "DEFAULT_$LINE" | |
2715 | else | |
2716 | no_cache=1 | |
2717 | fi | |
2718 | ||
b12915c1 | 2719 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2720 | |
e6cc62c6 | 2721 | fi; |
10f2d63a | 2722 | |
b12915c1 | 2723 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2724 | if test "$no_cache" != 1; then |
b12915c1 | 2725 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2726 | fi |
2727 | ||
b12915c1 | 2728 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2729 | echo "$as_me:$LINENO: result: yes" >&5 |
2730 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2731 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2732 | echo "$as_me:$LINENO: result: no" >&5 |
2733 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2734 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2735 | echo "$as_me:$LINENO: result: system version" >&5 |
2736 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2737 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2738 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2739 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2740 | else |
e6cc62c6 VS |
2741 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2742 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2743 | { (exit 1); exit 1; }; } | |
10f2d63a | 2744 | fi |
10f2d63a | 2745 | |
e6cc62c6 VS |
2746 | |
2747 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2748 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2749 | no_cache=0 |
e6cc62c6 VS |
2750 | |
2751 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2752 | if test "${with_opengl+set}" = set; then |
2753 | withval="$with_opengl" | |
e6cc62c6 | 2754 | |
10f2d63a | 2755 | if test "$withval" = yes; then |
b12915c1 | 2756 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2757 | else |
b12915c1 | 2758 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2759 | fi |
e6cc62c6 | 2760 | |
10f2d63a | 2761 | else |
e6cc62c6 | 2762 | |
b12915c1 | 2763 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2764 | if test "x$LINE" != x ; then |
2765 | eval "DEFAULT_$LINE" | |
2766 | else | |
2767 | no_cache=1 | |
2768 | fi | |
2769 | ||
b12915c1 | 2770 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2771 | |
e6cc62c6 | 2772 | fi; |
10f2d63a | 2773 | |
b12915c1 | 2774 | eval "$ac_cv_use_opengl" |
10f2d63a | 2775 | if test "$no_cache" != 1; then |
b12915c1 | 2776 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2777 | fi |
2778 | ||
b12915c1 | 2779 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2780 | echo "$as_me:$LINENO: result: yes" >&5 |
2781 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2782 | else |
e6cc62c6 VS |
2783 | echo "$as_me:$LINENO: result: no" >&5 |
2784 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2785 | fi |
e6cc62c6 | 2786 | |
10f2d63a | 2787 | |
b12915c1 VZ |
2788 | fi |
2789 | ||
5c6fa7d2 | 2790 | |
e6cc62c6 VS |
2791 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2792 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2793 | no_cache=0 |
e6cc62c6 VS |
2794 | |
2795 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2796 | if test "${with_dmalloc+set}" = set; then |
2797 | withval="$with_dmalloc" | |
e6cc62c6 | 2798 | |
c7a2bf27 | 2799 | if test "$withval" = yes; then |
b12915c1 | 2800 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2801 | else |
b12915c1 | 2802 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2803 | fi |
e6cc62c6 | 2804 | |
c7a2bf27 | 2805 | else |
e6cc62c6 | 2806 | |
b12915c1 | 2807 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2808 | if test "x$LINE" != x ; then |
2809 | eval "DEFAULT_$LINE" | |
2810 | else | |
2811 | no_cache=1 | |
2812 | fi | |
2813 | ||
b12915c1 | 2814 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2815 | |
e6cc62c6 | 2816 | fi; |
c7a2bf27 | 2817 | |
b12915c1 | 2818 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2819 | if test "$no_cache" != 1; then |
b12915c1 | 2820 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2821 | fi |
2822 | ||
b12915c1 | 2823 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2824 | echo "$as_me:$LINENO: result: yes" >&5 |
2825 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2826 | else |
e6cc62c6 VS |
2827 | echo "$as_me:$LINENO: result: no" >&5 |
2828 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2829 | fi |
c7a2bf27 | 2830 | |
e6cc62c6 VS |
2831 | |
2832 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2833 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2834 | no_cache=0 |
e6cc62c6 VS |
2835 | |
2836 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2837 | if test "${with_regex+set}" = set; then |
2838 | withval="$with_regex" | |
e6cc62c6 | 2839 | |
3e44f09d VZ |
2840 | if test "$withval" = yes; then |
2841 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2842 | elif test "$withval" = no; then | |
2843 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2844 | elif test "$withval" = sys; then | |
2845 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2846 | elif test "$withval" = builtin; then |
2847 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2848 | else |
e6cc62c6 VS |
2849 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2850 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2851 | { (exit 1); exit 1; }; } | |
3e44f09d | 2852 | fi |
e6cc62c6 | 2853 | |
3e44f09d | 2854 | else |
e6cc62c6 | 2855 | |
3e44f09d VZ |
2856 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2857 | if test "x$LINE" != x ; then | |
2858 | eval "DEFAULT_$LINE" | |
2859 | else | |
2860 | no_cache=1 | |
2861 | fi | |
2862 | ||
2863 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2864 | |
e6cc62c6 | 2865 | fi; |
3e44f09d VZ |
2866 | |
2867 | eval "$ac_cv_use_regex" | |
2868 | if test "$no_cache" != 1; then | |
2869 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2870 | fi | |
2871 | ||
2872 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
2873 | echo "$as_me:$LINENO: result: yes" >&5 |
2874 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2875 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
2876 | echo "$as_me:$LINENO: result: no" >&5 |
2877 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2878 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
2879 | echo "$as_me:$LINENO: result: system version" >&5 |
2880 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2881 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
2882 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2883 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2884 | else |
e6cc62c6 VS |
2885 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2886 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2887 | { (exit 1); exit 1; }; } | |
3e44f09d | 2888 | fi |
3e44f09d | 2889 | |
e6cc62c6 VS |
2890 | |
2891 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2892 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2893 | no_cache=0 |
e6cc62c6 VS |
2894 | |
2895 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2896 | if test "${with_zlib+set}" = set; then |
2897 | withval="$with_zlib" | |
e6cc62c6 | 2898 | |
10f2d63a | 2899 | if test "$withval" = yes; then |
b12915c1 | 2900 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2901 | elif test "$withval" = no; then |
b12915c1 | 2902 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2903 | elif test "$withval" = sys; then |
2904 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2905 | elif test "$withval" = builtin; then |
2906 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2907 | else |
e6cc62c6 VS |
2908 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2909 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2910 | { (exit 1); exit 1; }; } | |
10f2d63a | 2911 | fi |
e6cc62c6 | 2912 | |
10f2d63a | 2913 | else |
e6cc62c6 | 2914 | |
b12915c1 | 2915 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2916 | if test "x$LINE" != x ; then |
2917 | eval "DEFAULT_$LINE" | |
2918 | else | |
2919 | no_cache=1 | |
2920 | fi | |
2921 | ||
b12915c1 | 2922 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2923 | |
e6cc62c6 | 2924 | fi; |
10f2d63a | 2925 | |
b12915c1 | 2926 | eval "$ac_cv_use_zlib" |
10f2d63a | 2927 | if test "$no_cache" != 1; then |
b12915c1 | 2928 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2929 | fi |
2930 | ||
b12915c1 | 2931 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
2932 | echo "$as_me:$LINENO: result: yes" >&5 |
2933 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2934 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
2935 | echo "$as_me:$LINENO: result: no" >&5 |
2936 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2937 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
2938 | echo "$as_me:$LINENO: result: system version" >&5 |
2939 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2940 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
2941 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2942 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2943 | else |
e6cc62c6 VS |
2944 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2945 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2946 | { (exit 1); exit 1; }; } | |
10f2d63a | 2947 | fi |
10f2d63a | 2948 | |
e6cc62c6 VS |
2949 | |
2950 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2951 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2952 | no_cache=0 |
e6cc62c6 VS |
2953 | |
2954 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2955 | if test "${with_odbc+set}" = set; then |
2956 | withval="$with_odbc" | |
e6cc62c6 | 2957 | |
10f2d63a VZ |
2958 | if test "$withval" = yes; then |
2959 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2960 | elif test "$withval" = no; then |
10f2d63a | 2961 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2962 | elif test "$withval" = sys; then |
2963 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2964 | elif test "$withval" = builtin; then | |
2965 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2966 | else | |
e6cc62c6 VS |
2967 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
2968 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
2969 | { (exit 1); exit 1; }; } | |
10f2d63a | 2970 | fi |
e6cc62c6 | 2971 | |
10f2d63a | 2972 | else |
e6cc62c6 | 2973 | |
10f2d63a VZ |
2974 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2975 | if test "x$LINE" != x ; then | |
2976 | eval "DEFAULT_$LINE" | |
2977 | else | |
2978 | no_cache=1 | |
2979 | fi | |
2980 | ||
2981 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 2982 | |
e6cc62c6 | 2983 | fi; |
10f2d63a VZ |
2984 | |
2985 | eval "$ac_cv_use_odbc" | |
2986 | if test "$no_cache" != 1; then | |
2987 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2988 | fi | |
2989 | ||
2990 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
2991 | echo "$as_me:$LINENO: result: yes" >&5 |
2992 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 2993 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
2994 | echo "$as_me:$LINENO: result: no" >&5 |
2995 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 2996 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
2997 | echo "$as_me:$LINENO: result: system version" >&5 |
2998 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 2999 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3000 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3001 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3002 | else |
e6cc62c6 VS |
3003 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3004 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3005 | { (exit 1); exit 1; }; } | |
10f2d63a | 3006 | fi |
e6cc62c6 | 3007 | |
52127426 | 3008 | |
8284b0c5 MB |
3009 | |
3010 | ||
5005acfe | 3011 | enablestring= |
e6cc62c6 VS |
3012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3013 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3014 | no_cache=0 |
3015 | # Check whether --enable-shared or --disable-shared was given. | |
3016 | if test "${enable_shared+set}" = set; then | |
3017 | enableval="$enable_shared" | |
e6cc62c6 | 3018 | |
10f2d63a VZ |
3019 | if test "$enableval" = yes; then |
3020 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3021 | else | |
3022 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3023 | fi | |
e6cc62c6 | 3024 | |
10f2d63a | 3025 | else |
e6cc62c6 | 3026 | |
10f2d63a VZ |
3027 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3028 | if test "x$LINE" != x ; then | |
3029 | eval "DEFAULT_$LINE" | |
3030 | else | |
3031 | no_cache=1 | |
3032 | fi | |
3033 | ||
3034 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3035 | |
e6cc62c6 | 3036 | fi; |
10f2d63a VZ |
3037 | |
3038 | eval "$ac_cv_use_shared" | |
3039 | if test "$no_cache" != 1; then | |
3040 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3041 | fi | |
3042 | ||
3043 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3044 | echo "$as_me:$LINENO: result: yes" >&5 |
3045 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3046 | else |
e6cc62c6 VS |
3047 | echo "$as_me:$LINENO: result: no" >&5 |
3048 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3049 | fi |
e6cc62c6 | 3050 | |
10f2d63a | 3051 | |
5005acfe | 3052 | enablestring= |
e6cc62c6 VS |
3053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3054 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3055 | no_cache=0 |
3056 | # Check whether --enable-optimise or --disable-optimise was given. | |
3057 | if test "${enable_optimise+set}" = set; then | |
3058 | enableval="$enable_optimise" | |
e6cc62c6 | 3059 | |
10f2d63a VZ |
3060 | if test "$enableval" = yes; then |
3061 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3062 | else | |
3063 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3064 | fi | |
e6cc62c6 | 3065 | |
10f2d63a | 3066 | else |
e6cc62c6 | 3067 | |
10f2d63a VZ |
3068 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3069 | if test "x$LINE" != x ; then | |
3070 | eval "DEFAULT_$LINE" | |
3071 | else | |
3072 | no_cache=1 | |
3073 | fi | |
3074 | ||
3075 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3076 | |
e6cc62c6 | 3077 | fi; |
10f2d63a VZ |
3078 | |
3079 | eval "$ac_cv_use_optimise" | |
3080 | if test "$no_cache" != 1; then | |
3081 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3082 | fi | |
3083 | ||
3084 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3085 | echo "$as_me:$LINENO: result: yes" >&5 |
3086 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3087 | else |
e6cc62c6 VS |
3088 | echo "$as_me:$LINENO: result: no" >&5 |
3089 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3090 | fi |
e6cc62c6 | 3091 | |
10f2d63a | 3092 | |
5005acfe | 3093 | enablestring= |
e6cc62c6 VS |
3094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3095 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3096 | no_cache=0 |
3097 | # Check whether --enable-debug or --disable-debug was given. | |
3098 | if test "${enable_debug+set}" = set; then | |
3099 | enableval="$enable_debug" | |
e6cc62c6 | 3100 | |
10f2d63a VZ |
3101 | if test "$enableval" = yes; then |
3102 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3103 | else | |
3104 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3105 | fi | |
e6cc62c6 | 3106 | |
10f2d63a | 3107 | else |
e6cc62c6 | 3108 | |
10f2d63a VZ |
3109 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3110 | if test "x$LINE" != x ; then | |
3111 | eval "DEFAULT_$LINE" | |
3112 | else | |
3113 | no_cache=1 | |
3114 | fi | |
3115 | ||
3116 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3117 | |
e6cc62c6 | 3118 | fi; |
10f2d63a VZ |
3119 | |
3120 | eval "$ac_cv_use_debug" | |
3121 | if test "$no_cache" != 1; then | |
3122 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3123 | fi | |
3124 | ||
3125 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3126 | echo "$as_me:$LINENO: result: yes" >&5 |
3127 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3128 | else |
e6cc62c6 VS |
3129 | echo "$as_me:$LINENO: result: no" >&5 |
3130 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3131 | fi |
e6cc62c6 | 3132 | |
52127426 | 3133 | |
8284b0c5 | 3134 | |
5005acfe | 3135 | enablestring= |
e6cc62c6 VS |
3136 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-precomp" >&5 |
3137 | echo $ECHO_N "checking for --${enablestring:-enable}-precomp... $ECHO_C" >&6 | |
683dccda GD |
3138 | no_cache=0 |
3139 | # Check whether --enable-precomp or --disable-precomp was given. | |
3140 | if test "${enable_precomp+set}" = set; then | |
3141 | enableval="$enable_precomp" | |
e6cc62c6 | 3142 | |
683dccda GD |
3143 | if test "$enableval" = yes; then |
3144 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
3145 | else | |
3146 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
3147 | fi | |
e6cc62c6 | 3148 | |
683dccda | 3149 | else |
e6cc62c6 | 3150 | |
683dccda GD |
3151 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
3152 | if test "x$LINE" != x ; then | |
3153 | eval "DEFAULT_$LINE" | |
3154 | else | |
3155 | no_cache=1 | |
3156 | fi | |
3157 | ||
3158 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
683dccda | 3159 | |
e6cc62c6 | 3160 | fi; |
683dccda GD |
3161 | |
3162 | eval "$ac_cv_use_precomp" | |
3163 | if test "$no_cache" != 1; then | |
3164 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
3165 | fi | |
3166 | ||
3167 | if test "$wxUSE_PRECOMP" = yes; then | |
e6cc62c6 VS |
3168 | echo "$as_me:$LINENO: result: yes" >&5 |
3169 | echo "${ECHO_T}yes" >&6 | |
683dccda | 3170 | else |
e6cc62c6 VS |
3171 | echo "$as_me:$LINENO: result: no" >&5 |
3172 | echo "${ECHO_T}no" >&6 | |
683dccda | 3173 | fi |
e6cc62c6 | 3174 | |
683dccda | 3175 | |
10f2d63a VZ |
3176 | if test "$wxUSE_DEBUG" = "yes"; then |
3177 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3178 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3179 | elif test "$wxUSE_DEBUG" = "no"; then | |
3180 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3181 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3182 | fi | |
3183 | ||
8284b0c5 | 3184 | |
5005acfe | 3185 | enablestring= |
e6cc62c6 VS |
3186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3187 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3188 | no_cache=0 |
3189 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3190 | if test "${enable_debug_flag+set}" = set; then | |
3191 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3192 | |
10f2d63a VZ |
3193 | if test "$enableval" = yes; then |
3194 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3195 | else | |
3196 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3197 | fi | |
e6cc62c6 | 3198 | |
10f2d63a | 3199 | else |
e6cc62c6 | 3200 | |
10f2d63a VZ |
3201 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3209 | |
e6cc62c6 | 3210 | fi; |
10f2d63a VZ |
3211 | |
3212 | eval "$ac_cv_use_debug_flag" | |
3213 | if test "$no_cache" != 1; then | |
3214 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3215 | fi | |
3216 | ||
3217 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3218 | echo "$as_me:$LINENO: result: yes" >&5 |
3219 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3220 | else |
e6cc62c6 VS |
3221 | echo "$as_me:$LINENO: result: no" >&5 |
3222 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3223 | fi |
e6cc62c6 | 3224 | |
10f2d63a | 3225 | |
5005acfe | 3226 | enablestring= |
e6cc62c6 VS |
3227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3228 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3229 | no_cache=0 |
3230 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3231 | if test "${enable_debug_info+set}" = set; then | |
3232 | enableval="$enable_debug_info" | |
e6cc62c6 | 3233 | |
10f2d63a VZ |
3234 | if test "$enableval" = yes; then |
3235 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3236 | else | |
3237 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3238 | fi | |
e6cc62c6 | 3239 | |
10f2d63a | 3240 | else |
e6cc62c6 | 3241 | |
10f2d63a VZ |
3242 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3243 | if test "x$LINE" != x ; then | |
3244 | eval "DEFAULT_$LINE" | |
3245 | else | |
3246 | no_cache=1 | |
3247 | fi | |
3248 | ||
3249 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3250 | |
e6cc62c6 | 3251 | fi; |
10f2d63a VZ |
3252 | |
3253 | eval "$ac_cv_use_debug_info" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3259 | echo "$as_me:$LINENO: result: yes" >&5 |
3260 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3261 | else |
e6cc62c6 VS |
3262 | echo "$as_me:$LINENO: result: no" >&5 |
3263 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3264 | fi |
e6cc62c6 | 3265 | |
10f2d63a | 3266 | |
5005acfe | 3267 | enablestring= |
e6cc62c6 VS |
3268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3269 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3270 | no_cache=0 |
3271 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3272 | if test "${enable_debug_gdb+set}" = set; then | |
3273 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3274 | |
10f2d63a VZ |
3275 | if test "$enableval" = yes; then |
3276 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3277 | else | |
3278 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3279 | fi | |
e6cc62c6 | 3280 | |
10f2d63a | 3281 | else |
e6cc62c6 | 3282 | |
10f2d63a VZ |
3283 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3284 | if test "x$LINE" != x ; then | |
3285 | eval "DEFAULT_$LINE" | |
3286 | else | |
3287 | no_cache=1 | |
3288 | fi | |
3289 | ||
3290 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3291 | |
e6cc62c6 | 3292 | fi; |
10f2d63a VZ |
3293 | |
3294 | eval "$ac_cv_use_debug_gdb" | |
3295 | if test "$no_cache" != 1; then | |
3296 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3297 | fi | |
3298 | ||
3299 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3300 | echo "$as_me:$LINENO: result: yes" >&5 |
3301 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3302 | else |
e6cc62c6 VS |
3303 | echo "$as_me:$LINENO: result: no" >&5 |
3304 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3305 | fi |
e6cc62c6 | 3306 | |
10f2d63a | 3307 | |
5005acfe | 3308 | enablestring= |
e6cc62c6 VS |
3309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3310 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3311 | no_cache=0 |
3312 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3313 | if test "${enable_debug_cntxt+set}" = set; then | |
3314 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3315 | |
10f2d63a VZ |
3316 | if test "$enableval" = yes; then |
3317 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3318 | else | |
3319 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3320 | fi | |
e6cc62c6 | 3321 | |
10f2d63a | 3322 | else |
e6cc62c6 | 3323 | |
10f2d63a VZ |
3324 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3325 | if test "x$LINE" != x ; then | |
3326 | eval "DEFAULT_$LINE" | |
3327 | else | |
3328 | no_cache=1 | |
3329 | fi | |
3330 | ||
3331 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3332 | |
e6cc62c6 | 3333 | fi; |
10f2d63a VZ |
3334 | |
3335 | eval "$ac_cv_use_debug_cntxt" | |
3336 | if test "$no_cache" != 1; then | |
3337 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3338 | fi | |
3339 | ||
3340 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3341 | echo "$as_me:$LINENO: result: yes" >&5 |
3342 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3343 | else |
e6cc62c6 VS |
3344 | echo "$as_me:$LINENO: result: no" >&5 |
3345 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3346 | fi |
e6cc62c6 | 3347 | |
10f2d63a | 3348 | |
5005acfe | 3349 | enablestring= |
e6cc62c6 VS |
3350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3351 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3352 | no_cache=0 |
3353 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3354 | if test "${enable_mem_tracing+set}" = set; then | |
3355 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3356 | |
10f2d63a VZ |
3357 | if test "$enableval" = yes; then |
3358 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3359 | else | |
3360 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3361 | fi | |
e6cc62c6 | 3362 | |
10f2d63a | 3363 | else |
e6cc62c6 | 3364 | |
10f2d63a VZ |
3365 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3366 | if test "x$LINE" != x ; then | |
3367 | eval "DEFAULT_$LINE" | |
3368 | else | |
3369 | no_cache=1 | |
3370 | fi | |
3371 | ||
3372 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3373 | |
e6cc62c6 | 3374 | fi; |
10f2d63a VZ |
3375 | |
3376 | eval "$ac_cv_use_mem_tracing" | |
3377 | if test "$no_cache" != 1; then | |
3378 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3379 | fi | |
3380 | ||
3381 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3382 | echo "$as_me:$LINENO: result: yes" >&5 |
3383 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3384 | else |
e6cc62c6 VS |
3385 | echo "$as_me:$LINENO: result: no" >&5 |
3386 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3387 | fi |
e6cc62c6 | 3388 | |
10f2d63a | 3389 | |
5005acfe | 3390 | enablestring= |
e6cc62c6 VS |
3391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3392 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3393 | no_cache=0 |
3394 | # Check whether --enable-profile or --disable-profile was given. | |
3395 | if test "${enable_profile+set}" = set; then | |
3396 | enableval="$enable_profile" | |
e6cc62c6 | 3397 | |
10f2d63a VZ |
3398 | if test "$enableval" = yes; then |
3399 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3400 | else | |
3401 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3402 | fi | |
e6cc62c6 | 3403 | |
10f2d63a | 3404 | else |
e6cc62c6 | 3405 | |
10f2d63a VZ |
3406 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3407 | if test "x$LINE" != x ; then | |
3408 | eval "DEFAULT_$LINE" | |
3409 | else | |
3410 | no_cache=1 | |
3411 | fi | |
3412 | ||
3413 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3414 | |
e6cc62c6 | 3415 | fi; |
10f2d63a VZ |
3416 | |
3417 | eval "$ac_cv_use_profile" | |
3418 | if test "$no_cache" != 1; then | |
3419 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3420 | fi | |
3421 | ||
3422 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3423 | echo "$as_me:$LINENO: result: yes" >&5 |
3424 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3425 | else |
e6cc62c6 VS |
3426 | echo "$as_me:$LINENO: result: no" >&5 |
3427 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3428 | fi |
e6cc62c6 | 3429 | |
10f2d63a | 3430 | |
5005acfe | 3431 | enablestring= |
e6cc62c6 VS |
3432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3433 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3434 | no_cache=0 |
3435 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3436 | if test "${enable_no_rtti+set}" = set; then | |
3437 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3438 | |
10f2d63a VZ |
3439 | if test "$enableval" = yes; then |
3440 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3441 | else | |
3442 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3443 | fi | |
e6cc62c6 | 3444 | |
10f2d63a | 3445 | else |
e6cc62c6 | 3446 | |
10f2d63a VZ |
3447 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3448 | if test "x$LINE" != x ; then | |
3449 | eval "DEFAULT_$LINE" | |
3450 | else | |
3451 | no_cache=1 | |
3452 | fi | |
3453 | ||
3454 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3455 | |
e6cc62c6 | 3456 | fi; |
10f2d63a VZ |
3457 | |
3458 | eval "$ac_cv_use_no_rtti" | |
3459 | if test "$no_cache" != 1; then | |
3460 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3461 | fi | |
3462 | ||
3463 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3464 | echo "$as_me:$LINENO: result: yes" >&5 |
3465 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3466 | else |
e6cc62c6 VS |
3467 | echo "$as_me:$LINENO: result: no" >&5 |
3468 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3469 | fi |
e6cc62c6 | 3470 | |
10f2d63a | 3471 | |
5005acfe | 3472 | enablestring= |
e6cc62c6 VS |
3473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3474 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3475 | no_cache=0 |
3476 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3477 | if test "${enable_no_exceptions+set}" = set; then | |
3478 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3479 | |
10f2d63a VZ |
3480 | if test "$enableval" = yes; then |
3481 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3482 | else | |
3483 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3484 | fi | |
e6cc62c6 | 3485 | |
10f2d63a | 3486 | else |
e6cc62c6 | 3487 | |
10f2d63a VZ |
3488 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3489 | if test "x$LINE" != x ; then | |
3490 | eval "DEFAULT_$LINE" | |
3491 | else | |
3492 | no_cache=1 | |
3493 | fi | |
3494 | ||
3495 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3496 | |
e6cc62c6 | 3497 | fi; |
10f2d63a VZ |
3498 | |
3499 | eval "$ac_cv_use_no_exceptions" | |
3500 | if test "$no_cache" != 1; then | |
3501 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3502 | fi | |
3503 | ||
3504 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3505 | echo "$as_me:$LINENO: result: yes" >&5 |
3506 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3507 | else |
e6cc62c6 VS |
3508 | echo "$as_me:$LINENO: result: no" >&5 |
3509 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3510 | fi |
e6cc62c6 | 3511 | |
10f2d63a | 3512 | |
5005acfe | 3513 | enablestring= |
e6cc62c6 VS |
3514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3515 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3516 | no_cache=0 |
3517 | # Check whether --enable-permissive or --disable-permissive was given. | |
3518 | if test "${enable_permissive+set}" = set; then | |
3519 | enableval="$enable_permissive" | |
e6cc62c6 | 3520 | |
10f2d63a VZ |
3521 | if test "$enableval" = yes; then |
3522 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3523 | else | |
3524 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3525 | fi | |
e6cc62c6 | 3526 | |
10f2d63a | 3527 | else |
e6cc62c6 | 3528 | |
10f2d63a VZ |
3529 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3530 | if test "x$LINE" != x ; then | |
3531 | eval "DEFAULT_$LINE" | |
3532 | else | |
3533 | no_cache=1 | |
3534 | fi | |
3535 | ||
3536 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3537 | |
e6cc62c6 | 3538 | fi; |
10f2d63a VZ |
3539 | |
3540 | eval "$ac_cv_use_permissive" | |
3541 | if test "$no_cache" != 1; then | |
3542 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3543 | fi | |
3544 | ||
3545 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3546 | echo "$as_me:$LINENO: result: yes" >&5 |
3547 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3548 | else |
e6cc62c6 VS |
3549 | echo "$as_me:$LINENO: result: no" >&5 |
3550 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3551 | fi |
e6cc62c6 | 3552 | |
10f2d63a | 3553 | |
5005acfe | 3554 | enablestring= |
e6cc62c6 VS |
3555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3556 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3557 | no_cache=0 |
3558 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3559 | if test "${enable_no_deps+set}" = set; then | |
3560 | enableval="$enable_no_deps" | |
e6cc62c6 | 3561 | |
10f2d63a VZ |
3562 | if test "$enableval" = yes; then |
3563 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3564 | else | |
3565 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3566 | fi | |
e6cc62c6 | 3567 | |
10f2d63a | 3568 | else |
e6cc62c6 | 3569 | |
10f2d63a VZ |
3570 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3571 | if test "x$LINE" != x ; then | |
3572 | eval "DEFAULT_$LINE" | |
3573 | else | |
3574 | no_cache=1 | |
3575 | fi | |
3576 | ||
3577 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3578 | |
e6cc62c6 | 3579 | fi; |
10f2d63a VZ |
3580 | |
3581 | eval "$ac_cv_use_no_deps" | |
3582 | if test "$no_cache" != 1; then | |
3583 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3584 | fi | |
3585 | ||
3586 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3587 | echo "$as_me:$LINENO: result: yes" >&5 |
3588 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3589 | else |
e6cc62c6 VS |
3590 | echo "$as_me:$LINENO: result: no" >&5 |
3591 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3592 | fi |
e6cc62c6 | 3593 | |
52127426 | 3594 | |
8284b0c5 | 3595 | |
5005acfe | 3596 | enablestring= |
e6cc62c6 VS |
3597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5 |
3598 | echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6 | |
54276ccf VZ |
3599 | no_cache=0 |
3600 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3601 | if test "${enable_compat20+set}" = set; then | |
3602 | enableval="$enable_compat20" | |
e6cc62c6 | 3603 | |
54276ccf VZ |
3604 | if test "$enableval" = yes; then |
3605 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3606 | else | |
3607 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3608 | fi | |
e6cc62c6 | 3609 | |
54276ccf | 3610 | else |
e6cc62c6 | 3611 | |
54276ccf VZ |
3612 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3613 | if test "x$LINE" != x ; then | |
3614 | eval "DEFAULT_$LINE" | |
3615 | else | |
3616 | no_cache=1 | |
3617 | fi | |
3618 | ||
3619 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
54276ccf | 3620 | |
e6cc62c6 | 3621 | fi; |
54276ccf VZ |
3622 | |
3623 | eval "$ac_cv_use_compat20" | |
3624 | if test "$no_cache" != 1; then | |
3625 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3626 | fi | |
3627 | ||
3628 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
e6cc62c6 VS |
3629 | echo "$as_me:$LINENO: result: yes" >&5 |
3630 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3631 | else |
e6cc62c6 VS |
3632 | echo "$as_me:$LINENO: result: no" >&5 |
3633 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3634 | fi |
e6cc62c6 | 3635 | |
54276ccf | 3636 | |
65d8ef1e | 3637 | enablestring= |
e6cc62c6 VS |
3638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3639 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3640 | no_cache=0 |
3641 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3642 | if test "${enable_compat22+set}" = set; then | |
3643 | enableval="$enable_compat22" | |
e6cc62c6 | 3644 | |
54276ccf VZ |
3645 | if test "$enableval" = yes; then |
3646 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3647 | else | |
3648 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3649 | fi | |
e6cc62c6 | 3650 | |
54276ccf | 3651 | else |
e6cc62c6 | 3652 | |
54276ccf VZ |
3653 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3654 | if test "x$LINE" != x ; then | |
3655 | eval "DEFAULT_$LINE" | |
3656 | else | |
3657 | no_cache=1 | |
3658 | fi | |
3659 | ||
3660 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3661 | |
e6cc62c6 | 3662 | fi; |
54276ccf VZ |
3663 | |
3664 | eval "$ac_cv_use_compat22" | |
3665 | if test "$no_cache" != 1; then | |
3666 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3667 | fi | |
3668 | ||
3669 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3670 | echo "$as_me:$LINENO: result: yes" >&5 |
3671 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3672 | else |
e6cc62c6 VS |
3673 | echo "$as_me:$LINENO: result: no" >&5 |
3674 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3675 | fi |
e6cc62c6 | 3676 | |
54276ccf | 3677 | |
65d8ef1e | 3678 | enablestring=disable |
e6cc62c6 VS |
3679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3680 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3681 | no_cache=0 |
3682 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3683 | if test "${enable_compat24+set}" = set; then | |
3684 | enableval="$enable_compat24" | |
e6cc62c6 | 3685 | |
65d8ef1e VS |
3686 | if test "$enableval" = yes; then |
3687 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3688 | else | |
3689 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3690 | fi | |
e6cc62c6 | 3691 | |
65d8ef1e | 3692 | else |
e6cc62c6 | 3693 | |
65d8ef1e VS |
3694 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3695 | if test "x$LINE" != x ; then | |
3696 | eval "DEFAULT_$LINE" | |
3697 | else | |
3698 | no_cache=1 | |
3699 | fi | |
3700 | ||
3701 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3702 | |
e6cc62c6 | 3703 | fi; |
65d8ef1e VS |
3704 | |
3705 | eval "$ac_cv_use_compat24" | |
3706 | if test "$no_cache" != 1; then | |
3707 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3708 | fi | |
3709 | ||
3710 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3711 | echo "$as_me:$LINENO: result: yes" >&5 |
3712 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3713 | else |
e6cc62c6 VS |
3714 | echo "$as_me:$LINENO: result: no" >&5 |
3715 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3716 | fi |
e6cc62c6 | 3717 | |
65d8ef1e | 3718 | |
3bd8fb5f RD |
3719 | # Check whether --enable-rpath or --disable-rpath was given. |
3720 | if test "${enable_rpath+set}" = set; then | |
3721 | enableval="$enable_rpath" | |
3722 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3723 | fi; |
3bd8fb5f RD |
3724 | |
3725 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3726 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3727 | fi | |
3728 | ||
8284b0c5 MB |
3729 | |
3730 | ||
3731 | ||
5005acfe | 3732 | enablestring= |
e6cc62c6 VS |
3733 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3734 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3735 | no_cache=0 |
3736 | # Check whether --enable-intl or --disable-intl was given. | |
3737 | if test "${enable_intl+set}" = set; then | |
3738 | enableval="$enable_intl" | |
e6cc62c6 | 3739 | |
10f2d63a VZ |
3740 | if test "$enableval" = yes; then |
3741 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3742 | else | |
3743 | ac_cv_use_intl='wxUSE_INTL=no' | |
3744 | fi | |
e6cc62c6 | 3745 | |
10f2d63a | 3746 | else |
e6cc62c6 | 3747 | |
10f2d63a VZ |
3748 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3749 | if test "x$LINE" != x ; then | |
3750 | eval "DEFAULT_$LINE" | |
3751 | else | |
3752 | no_cache=1 | |
3753 | fi | |
3754 | ||
3755 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3756 | |
e6cc62c6 | 3757 | fi; |
10f2d63a VZ |
3758 | |
3759 | eval "$ac_cv_use_intl" | |
3760 | if test "$no_cache" != 1; then | |
3761 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3762 | fi | |
3763 | ||
3764 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3765 | echo "$as_me:$LINENO: result: yes" >&5 |
3766 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3767 | else |
e6cc62c6 VS |
3768 | echo "$as_me:$LINENO: result: no" >&5 |
3769 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3770 | fi |
e6cc62c6 | 3771 | |
10f2d63a | 3772 | |
5005acfe | 3773 | enablestring= |
e6cc62c6 VS |
3774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3775 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3776 | no_cache=0 |
3777 | # Check whether --enable-config or --disable-config was given. | |
3778 | if test "${enable_config+set}" = set; then | |
3779 | enableval="$enable_config" | |
e6cc62c6 | 3780 | |
10f2d63a VZ |
3781 | if test "$enableval" = yes; then |
3782 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3783 | else | |
3784 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3785 | fi | |
e6cc62c6 | 3786 | |
10f2d63a | 3787 | else |
e6cc62c6 | 3788 | |
10f2d63a VZ |
3789 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3790 | if test "x$LINE" != x ; then | |
3791 | eval "DEFAULT_$LINE" | |
3792 | else | |
3793 | no_cache=1 | |
3794 | fi | |
3795 | ||
3796 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3797 | |
e6cc62c6 | 3798 | fi; |
10f2d63a VZ |
3799 | |
3800 | eval "$ac_cv_use_config" | |
3801 | if test "$no_cache" != 1; then | |
3802 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3803 | fi | |
3804 | ||
3805 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3806 | echo "$as_me:$LINENO: result: yes" >&5 |
3807 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3808 | else |
e6cc62c6 VS |
3809 | echo "$as_me:$LINENO: result: no" >&5 |
3810 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3811 | fi |
e6cc62c6 | 3812 | |
52127426 | 3813 | |
8284b0c5 | 3814 | |
5005acfe | 3815 | enablestring= |
e6cc62c6 VS |
3816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3817 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3818 | no_cache=0 |
3819 | # Check whether --enable-protocols or --disable-protocols was given. | |
3820 | if test "${enable_protocols+set}" = set; then | |
3821 | enableval="$enable_protocols" | |
e6cc62c6 | 3822 | |
a1622950 VZ |
3823 | if test "$enableval" = yes; then |
3824 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3825 | else | |
3826 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3827 | fi | |
e6cc62c6 | 3828 | |
a1622950 | 3829 | else |
e6cc62c6 | 3830 | |
a1622950 VZ |
3831 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3832 | if test "x$LINE" != x ; then | |
3833 | eval "DEFAULT_$LINE" | |
3834 | else | |
3835 | no_cache=1 | |
3836 | fi | |
3837 | ||
3838 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3839 | |
e6cc62c6 | 3840 | fi; |
a1622950 VZ |
3841 | |
3842 | eval "$ac_cv_use_protocols" | |
3843 | if test "$no_cache" != 1; then | |
3844 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3845 | fi | |
3846 | ||
3847 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
3848 | echo "$as_me:$LINENO: result: yes" >&5 |
3849 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3850 | else |
e6cc62c6 VS |
3851 | echo "$as_me:$LINENO: result: no" >&5 |
3852 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3853 | fi |
e6cc62c6 | 3854 | |
a1622950 | 3855 | |
5005acfe | 3856 | enablestring= |
e6cc62c6 VS |
3857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
3858 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3859 | no_cache=0 |
3860 | # Check whether --enable-ftp or --disable-ftp was given. | |
3861 | if test "${enable_ftp+set}" = set; then | |
3862 | enableval="$enable_ftp" | |
e6cc62c6 | 3863 | |
a1622950 VZ |
3864 | if test "$enableval" = yes; then |
3865 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3866 | else | |
3867 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3868 | fi | |
e6cc62c6 | 3869 | |
a1622950 | 3870 | else |
e6cc62c6 | 3871 | |
a1622950 VZ |
3872 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3873 | if test "x$LINE" != x ; then | |
3874 | eval "DEFAULT_$LINE" | |
3875 | else | |
3876 | no_cache=1 | |
3877 | fi | |
3878 | ||
3879 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3880 | |
e6cc62c6 | 3881 | fi; |
a1622950 VZ |
3882 | |
3883 | eval "$ac_cv_use_ftp" | |
3884 | if test "$no_cache" != 1; then | |
3885 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3886 | fi | |
3887 | ||
3888 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
3889 | echo "$as_me:$LINENO: result: yes" >&5 |
3890 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3891 | else |
e6cc62c6 VS |
3892 | echo "$as_me:$LINENO: result: no" >&5 |
3893 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3894 | fi |
e6cc62c6 | 3895 | |
a1622950 | 3896 | |
5005acfe | 3897 | enablestring= |
e6cc62c6 VS |
3898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
3899 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
3900 | no_cache=0 |
3901 | # Check whether --enable-http or --disable-http was given. | |
3902 | if test "${enable_http+set}" = set; then | |
3903 | enableval="$enable_http" | |
e6cc62c6 | 3904 | |
a1622950 VZ |
3905 | if test "$enableval" = yes; then |
3906 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3907 | else | |
3908 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3909 | fi | |
e6cc62c6 | 3910 | |
a1622950 | 3911 | else |
e6cc62c6 | 3912 | |
a1622950 VZ |
3913 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3914 | if test "x$LINE" != x ; then | |
3915 | eval "DEFAULT_$LINE" | |
3916 | else | |
3917 | no_cache=1 | |
3918 | fi | |
3919 | ||
3920 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3921 | |
e6cc62c6 | 3922 | fi; |
a1622950 VZ |
3923 | |
3924 | eval "$ac_cv_use_http" | |
3925 | if test "$no_cache" != 1; then | |
3926 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3927 | fi | |
3928 | ||
3929 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
3930 | echo "$as_me:$LINENO: result: yes" >&5 |
3931 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3932 | else |
e6cc62c6 VS |
3933 | echo "$as_me:$LINENO: result: no" >&5 |
3934 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3935 | fi |
e6cc62c6 | 3936 | |
a1622950 | 3937 | |
5005acfe | 3938 | enablestring= |
e6cc62c6 VS |
3939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
3940 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
3941 | no_cache=0 |
3942 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3943 | if test "${enable_fileproto+set}" = set; then | |
3944 | enableval="$enable_fileproto" | |
e6cc62c6 | 3945 | |
a1622950 VZ |
3946 | if test "$enableval" = yes; then |
3947 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3948 | else | |
3949 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3950 | fi | |
e6cc62c6 | 3951 | |
a1622950 | 3952 | else |
e6cc62c6 | 3953 | |
a1622950 VZ |
3954 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3955 | if test "x$LINE" != x ; then | |
3956 | eval "DEFAULT_$LINE" | |
3957 | else | |
3958 | no_cache=1 | |
3959 | fi | |
3960 | ||
3961 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 3962 | |
e6cc62c6 | 3963 | fi; |
a1622950 VZ |
3964 | |
3965 | eval "$ac_cv_use_fileproto" | |
3966 | if test "$no_cache" != 1; then | |
3967 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3968 | fi | |
3969 | ||
3970 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
3971 | echo "$as_me:$LINENO: result: yes" >&5 |
3972 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3973 | else |
e6cc62c6 VS |
3974 | echo "$as_me:$LINENO: result: no" >&5 |
3975 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3976 | fi |
e6cc62c6 | 3977 | |
a1622950 | 3978 | |
5005acfe | 3979 | enablestring= |
e6cc62c6 VS |
3980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
3981 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
3982 | no_cache=0 |
3983 | # Check whether --enable-sockets or --disable-sockets was given. | |
3984 | if test "${enable_sockets+set}" = set; then | |
3985 | enableval="$enable_sockets" | |
e6cc62c6 | 3986 | |
10f2d63a VZ |
3987 | if test "$enableval" = yes; then |
3988 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3989 | else | |
3990 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3991 | fi | |
e6cc62c6 | 3992 | |
10f2d63a | 3993 | else |
e6cc62c6 | 3994 | |
10f2d63a VZ |
3995 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3996 | if test "x$LINE" != x ; then | |
3997 | eval "DEFAULT_$LINE" | |
3998 | else | |
3999 | no_cache=1 | |
4000 | fi | |
4001 | ||
4002 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4003 | |
e6cc62c6 | 4004 | fi; |
10f2d63a VZ |
4005 | |
4006 | eval "$ac_cv_use_sockets" | |
4007 | if test "$no_cache" != 1; then | |
4008 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4009 | fi | |
4010 | ||
4011 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4012 | echo "$as_me:$LINENO: result: yes" >&5 |
4013 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4014 | else |
e6cc62c6 VS |
4015 | echo "$as_me:$LINENO: result: no" >&5 |
4016 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4017 | fi |
e6cc62c6 | 4018 | |
8284b0c5 | 4019 | |
5005acfe | 4020 | enablestring= |
e6cc62c6 VS |
4021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4022 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4023 | no_cache=0 |
4024 | # Check whether --enable-ole or --disable-ole was given. | |
4025 | if test "${enable_ole+set}" = set; then | |
4026 | enableval="$enable_ole" | |
e6cc62c6 | 4027 | |
3bce6687 JS |
4028 | if test "$enableval" = yes; then |
4029 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4030 | else | |
4031 | ac_cv_use_ole='wxUSE_OLE=no' | |
4032 | fi | |
e6cc62c6 | 4033 | |
3bce6687 | 4034 | else |
e6cc62c6 | 4035 | |
3bce6687 JS |
4036 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4037 | if test "x$LINE" != x ; then | |
4038 | eval "DEFAULT_$LINE" | |
4039 | else | |
4040 | no_cache=1 | |
4041 | fi | |
4042 | ||
4043 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4044 | |
e6cc62c6 | 4045 | fi; |
3bce6687 JS |
4046 | |
4047 | eval "$ac_cv_use_ole" | |
4048 | if test "$no_cache" != 1; then | |
4049 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4050 | fi | |
4051 | ||
4052 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4053 | echo "$as_me:$LINENO: result: yes" >&5 |
4054 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4055 | else |
e6cc62c6 VS |
4056 | echo "$as_me:$LINENO: result: no" >&5 |
4057 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4058 | fi |
e6cc62c6 | 4059 | |
3bce6687 | 4060 | |
5005acfe | 4061 | enablestring= |
e6cc62c6 VS |
4062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4063 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4064 | no_cache=0 |
4065 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4066 | if test "${enable_dataobj+set}" = set; then | |
4067 | enableval="$enable_dataobj" | |
e6cc62c6 | 4068 | |
3bce6687 JS |
4069 | if test "$enableval" = yes; then |
4070 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4071 | else | |
4072 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4073 | fi | |
e6cc62c6 | 4074 | |
3bce6687 | 4075 | else |
e6cc62c6 | 4076 | |
3bce6687 JS |
4077 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4078 | if test "x$LINE" != x ; then | |
4079 | eval "DEFAULT_$LINE" | |
4080 | else | |
4081 | no_cache=1 | |
4082 | fi | |
4083 | ||
4084 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4085 | |
e6cc62c6 | 4086 | fi; |
3bce6687 JS |
4087 | |
4088 | eval "$ac_cv_use_dataobj" | |
4089 | if test "$no_cache" != 1; then | |
4090 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4091 | fi | |
4092 | ||
4093 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4094 | echo "$as_me:$LINENO: result: yes" >&5 |
4095 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4096 | else |
e6cc62c6 VS |
4097 | echo "$as_me:$LINENO: result: no" >&5 |
4098 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4099 | fi |
e6cc62c6 | 4100 | |
3bce6687 | 4101 | |
52127426 | 4102 | |
5005acfe | 4103 | enablestring= |
e6cc62c6 VS |
4104 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4105 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4106 | no_cache=0 |
eb4efbdc VZ |
4107 | # Check whether --enable-ipc or --disable-ipc was given. |
4108 | if test "${enable_ipc+set}" = set; then | |
4109 | enableval="$enable_ipc" | |
e6cc62c6 | 4110 | |
10f2d63a | 4111 | if test "$enableval" = yes; then |
eb4efbdc | 4112 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4113 | else |
eb4efbdc | 4114 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4115 | fi |
e6cc62c6 | 4116 | |
10f2d63a | 4117 | else |
e6cc62c6 | 4118 | |
eb4efbdc | 4119 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4120 | if test "x$LINE" != x ; then |
4121 | eval "DEFAULT_$LINE" | |
4122 | else | |
4123 | no_cache=1 | |
4124 | fi | |
4125 | ||
eb4efbdc | 4126 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4127 | |
e6cc62c6 | 4128 | fi; |
10f2d63a | 4129 | |
eb4efbdc | 4130 | eval "$ac_cv_use_ipc" |
10f2d63a | 4131 | if test "$no_cache" != 1; then |
eb4efbdc | 4132 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4133 | fi |
4134 | ||
eb4efbdc | 4135 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4136 | echo "$as_me:$LINENO: result: yes" >&5 |
4137 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4138 | else |
e6cc62c6 VS |
4139 | echo "$as_me:$LINENO: result: no" >&5 |
4140 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4141 | fi |
e6cc62c6 | 4142 | |
52127426 | 4143 | |
8284b0c5 | 4144 | |
5005acfe | 4145 | enablestring= |
e6cc62c6 VS |
4146 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4147 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
4148 | no_cache=0 |
4149 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4150 | if test "${enable_cmdline+set}" = set; then | |
4151 | enableval="$enable_cmdline" | |
e6cc62c6 | 4152 | |
1e6feb95 VZ |
4153 | if test "$enableval" = yes; then |
4154 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4155 | else | |
4156 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4157 | fi | |
e6cc62c6 | 4158 | |
1e6feb95 | 4159 | else |
e6cc62c6 | 4160 | |
1e6feb95 VZ |
4161 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
4162 | if test "x$LINE" != x ; then | |
4163 | eval "DEFAULT_$LINE" | |
4164 | else | |
4165 | no_cache=1 | |
4166 | fi | |
4167 | ||
4168 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 4169 | |
e6cc62c6 | 4170 | fi; |
1e6feb95 VZ |
4171 | |
4172 | eval "$ac_cv_use_cmdline" | |
4173 | if test "$no_cache" != 1; then | |
4174 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4175 | fi | |
4176 | ||
4177 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
e6cc62c6 VS |
4178 | echo "$as_me:$LINENO: result: yes" >&5 |
4179 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4180 | else |
e6cc62c6 VS |
4181 | echo "$as_me:$LINENO: result: no" >&5 |
4182 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4183 | fi |
e6cc62c6 | 4184 | |
1e6feb95 | 4185 | |
5005acfe | 4186 | enablestring= |
e6cc62c6 VS |
4187 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4188 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
4189 | no_cache=0 |
4190 | # Check whether --enable-datetime or --disable-datetime was given. | |
4191 | if test "${enable_datetime+set}" = set; then | |
4192 | enableval="$enable_datetime" | |
e6cc62c6 | 4193 | |
1e6feb95 VZ |
4194 | if test "$enableval" = yes; then |
4195 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4196 | else | |
4197 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4198 | fi | |
e6cc62c6 | 4199 | |
1e6feb95 | 4200 | else |
e6cc62c6 | 4201 | |
1e6feb95 VZ |
4202 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
4203 | if test "x$LINE" != x ; then | |
4204 | eval "DEFAULT_$LINE" | |
4205 | else | |
4206 | no_cache=1 | |
4207 | fi | |
4208 | ||
4209 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 4210 | |
e6cc62c6 | 4211 | fi; |
1e6feb95 VZ |
4212 | |
4213 | eval "$ac_cv_use_datetime" | |
4214 | if test "$no_cache" != 1; then | |
4215 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4216 | fi | |
4217 | ||
4218 | if test "$wxUSE_DATETIME" = yes; then | |
e6cc62c6 VS |
4219 | echo "$as_me:$LINENO: result: yes" >&5 |
4220 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4221 | else |
e6cc62c6 VS |
4222 | echo "$as_me:$LINENO: result: no" >&5 |
4223 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4224 | fi |
e6cc62c6 | 4225 | |
1e6feb95 | 4226 | |
5005acfe | 4227 | enablestring= |
e6cc62c6 VS |
4228 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
4229 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
4230 | no_cache=0 |
4231 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4232 | if test "${enable_stopwatch+set}" = set; then | |
4233 | enableval="$enable_stopwatch" | |
e6cc62c6 | 4234 | |
1e6feb95 VZ |
4235 | if test "$enableval" = yes; then |
4236 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4237 | else | |
4238 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4239 | fi | |
e6cc62c6 | 4240 | |
1e6feb95 | 4241 | else |
e6cc62c6 | 4242 | |
1e6feb95 VZ |
4243 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
4244 | if test "x$LINE" != x ; then | |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
4250 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 4251 | |
e6cc62c6 | 4252 | fi; |
1e6feb95 VZ |
4253 | |
4254 | eval "$ac_cv_use_stopwatch" | |
4255 | if test "$no_cache" != 1; then | |
4256 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4257 | fi | |
4258 | ||
4259 | if test "$wxUSE_STOPWATCH" = yes; then | |
e6cc62c6 VS |
4260 | echo "$as_me:$LINENO: result: yes" >&5 |
4261 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4262 | else |
e6cc62c6 VS |
4263 | echo "$as_me:$LINENO: result: no" >&5 |
4264 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4265 | fi |
e6cc62c6 | 4266 | |
1e6feb95 | 4267 | |
5005acfe | 4268 | enablestring= |
e6cc62c6 VS |
4269 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4270 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4271 | no_cache=0 |
eb4efbdc VZ |
4272 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4273 | if test "${enable_dialupman+set}" = set; then | |
4274 | enableval="$enable_dialupman" | |
e6cc62c6 | 4275 | |
10f2d63a | 4276 | if test "$enableval" = yes; then |
eb4efbdc | 4277 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4278 | else |
eb4efbdc | 4279 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4280 | fi |
e6cc62c6 | 4281 | |
10f2d63a | 4282 | else |
e6cc62c6 | 4283 | |
eb4efbdc | 4284 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4285 | if test "x$LINE" != x ; then |
4286 | eval "DEFAULT_$LINE" | |
4287 | else | |
4288 | no_cache=1 | |
4289 | fi | |
4290 | ||
eb4efbdc | 4291 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4292 | |
e6cc62c6 | 4293 | fi; |
10f2d63a | 4294 | |
eb4efbdc | 4295 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4296 | if test "$no_cache" != 1; then |
eb4efbdc | 4297 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4298 | fi |
4299 | ||
eb4efbdc | 4300 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4301 | echo "$as_me:$LINENO: result: yes" >&5 |
4302 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4303 | else |
e6cc62c6 VS |
4304 | echo "$as_me:$LINENO: result: no" >&5 |
4305 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4306 | fi |
e6cc62c6 | 4307 | |
10f2d63a | 4308 | |
5005acfe | 4309 | enablestring= |
e6cc62c6 VS |
4310 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4311 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4312 | no_cache=0 |
4313 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4314 | if test "${enable_apple_ieee+set}" = set; then | |
4315 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4316 | |
10f2d63a VZ |
4317 | if test "$enableval" = yes; then |
4318 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4319 | else | |
4320 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4321 | fi | |
e6cc62c6 | 4322 | |
10f2d63a | 4323 | else |
e6cc62c6 | 4324 | |
10f2d63a VZ |
4325 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4326 | if test "x$LINE" != x ; then | |
4327 | eval "DEFAULT_$LINE" | |
4328 | else | |
4329 | no_cache=1 | |
4330 | fi | |
4331 | ||
4332 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4333 | |
e6cc62c6 | 4334 | fi; |
10f2d63a VZ |
4335 | |
4336 | eval "$ac_cv_use_apple_ieee" | |
4337 | if test "$no_cache" != 1; then | |
4338 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4339 | fi | |
4340 | ||
4341 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
e6cc62c6 VS |
4342 | echo "$as_me:$LINENO: result: yes" >&5 |
4343 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4344 | else |
e6cc62c6 VS |
4345 | echo "$as_me:$LINENO: result: no" >&5 |
4346 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4347 | fi |
e6cc62c6 | 4348 | |
10f2d63a | 4349 | |
5005acfe | 4350 | enablestring= |
e6cc62c6 VS |
4351 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
4352 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
10f2d63a | 4353 | no_cache=0 |
1e6feb95 VZ |
4354 | # Check whether --enable-timer or --disable-timer was given. |
4355 | if test "${enable_timer+set}" = set; then | |
4356 | enableval="$enable_timer" | |
e6cc62c6 | 4357 | |
10f2d63a | 4358 | if test "$enableval" = yes; then |
1e6feb95 | 4359 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4360 | else |
1e6feb95 | 4361 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4362 | fi |
e6cc62c6 | 4363 | |
10f2d63a | 4364 | else |
e6cc62c6 | 4365 | |
1e6feb95 | 4366 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4367 | if test "x$LINE" != x ; then |
4368 | eval "DEFAULT_$LINE" | |
4369 | else | |
4370 | no_cache=1 | |
4371 | fi | |
4372 | ||
1e6feb95 | 4373 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4374 | |
e6cc62c6 | 4375 | fi; |
10f2d63a | 4376 | |
1e6feb95 | 4377 | eval "$ac_cv_use_timer" |
10f2d63a | 4378 | if test "$no_cache" != 1; then |
1e6feb95 | 4379 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4380 | fi |
4381 | ||
1e6feb95 | 4382 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
4383 | echo "$as_me:$LINENO: result: yes" >&5 |
4384 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4385 | else |
e6cc62c6 VS |
4386 | echo "$as_me:$LINENO: result: no" >&5 |
4387 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4388 | fi |
e6cc62c6 | 4389 | |
10f2d63a | 4390 | |
5005acfe | 4391 | enablestring= |
e6cc62c6 VS |
4392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 |
4393 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4394 | no_cache=0 |
4395 | # Check whether --enable-wave or --disable-wave was given. | |
4396 | if test "${enable_wave+set}" = set; then | |
4397 | enableval="$enable_wave" | |
e6cc62c6 | 4398 | |
10f2d63a VZ |
4399 | if test "$enableval" = yes; then |
4400 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4401 | else | |
4402 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4403 | fi | |
e6cc62c6 | 4404 | |
10f2d63a | 4405 | else |
e6cc62c6 | 4406 | |
10f2d63a VZ |
4407 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4408 | if test "x$LINE" != x ; then | |
4409 | eval "DEFAULT_$LINE" | |
4410 | else | |
4411 | no_cache=1 | |
4412 | fi | |
4413 | ||
4414 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4415 | |
e6cc62c6 | 4416 | fi; |
10f2d63a VZ |
4417 | |
4418 | eval "$ac_cv_use_wave" | |
4419 | if test "$no_cache" != 1; then | |
4420 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4421 | fi | |
4422 | ||
4423 | if test "$wxUSE_WAVE" = yes; then | |
e6cc62c6 VS |
4424 | echo "$as_me:$LINENO: result: yes" >&5 |
4425 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4426 | else |
e6cc62c6 VS |
4427 | echo "$as_me:$LINENO: result: no" >&5 |
4428 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4429 | fi |
e6cc62c6 | 4430 | |
10f2d63a | 4431 | |
5005acfe | 4432 | enablestring= |
e6cc62c6 VS |
4433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 |
4434 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4435 | no_cache=0 |
4436 | # Check whether --enable-fraction or --disable-fraction was given. | |
4437 | if test "${enable_fraction+set}" = set; then | |
4438 | enableval="$enable_fraction" | |
e6cc62c6 | 4439 | |
10f2d63a VZ |
4440 | if test "$enableval" = yes; then |
4441 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4442 | else | |
4443 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4444 | fi | |
e6cc62c6 | 4445 | |
10f2d63a | 4446 | else |
e6cc62c6 | 4447 | |
10f2d63a VZ |
4448 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4449 | if test "x$LINE" != x ; then | |
4450 | eval "DEFAULT_$LINE" | |
4451 | else | |
4452 | no_cache=1 | |
4453 | fi | |
4454 | ||
4455 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4456 | |
e6cc62c6 | 4457 | fi; |
10f2d63a VZ |
4458 | |
4459 | eval "$ac_cv_use_fraction" | |
4460 | if test "$no_cache" != 1; then | |
4461 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4462 | fi | |
4463 | ||
4464 | if test "$wxUSE_FRACTION" = yes; then | |
e6cc62c6 VS |
4465 | echo "$as_me:$LINENO: result: yes" >&5 |
4466 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4467 | else |
e6cc62c6 VS |
4468 | echo "$as_me:$LINENO: result: no" >&5 |
4469 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4470 | fi |
e6cc62c6 | 4471 | |
10f2d63a | 4472 | |
5005acfe | 4473 | enablestring= |
e6cc62c6 VS |
4474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4475 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4476 | no_cache=0 |
4477 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4478 | if test "${enable_dynlib+set}" = set; then | |
4479 | enableval="$enable_dynlib" | |
e6cc62c6 | 4480 | |
10f2d63a VZ |
4481 | if test "$enableval" = yes; then |
4482 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4483 | else | |
4484 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4485 | fi | |
e6cc62c6 | 4486 | |
10f2d63a | 4487 | else |
e6cc62c6 | 4488 | |
10f2d63a VZ |
4489 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4490 | if test "x$LINE" != x ; then | |
4491 | eval "DEFAULT_$LINE" | |
4492 | else | |
4493 | no_cache=1 | |
4494 | fi | |
4495 | ||
4496 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4497 | |
e6cc62c6 | 4498 | fi; |
10f2d63a VZ |
4499 | |
4500 | eval "$ac_cv_use_dynlib" | |
4501 | if test "$no_cache" != 1; then | |
4502 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4503 | fi | |
4504 | ||
4505 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4506 | echo "$as_me:$LINENO: result: yes" >&5 |
4507 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4508 | else |
e6cc62c6 VS |
4509 | echo "$as_me:$LINENO: result: no" >&5 |
4510 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4511 | fi |
e6cc62c6 | 4512 | |
10f2d63a | 4513 | |
5005acfe | 4514 | enablestring= |
e6cc62c6 VS |
4515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4516 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4517 | no_cache=0 |
4518 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4519 | if test "${enable_dynamicloader+set}" = set; then | |
4520 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4521 | |
0b9ab0bd RL |
4522 | if test "$enableval" = yes; then |
4523 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4524 | else | |
4525 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4526 | fi | |
e6cc62c6 | 4527 | |
0b9ab0bd | 4528 | else |
e6cc62c6 | 4529 | |
0b9ab0bd RL |
4530 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4531 | if test "x$LINE" != x ; then | |
4532 | eval "DEFAULT_$LINE" | |
4533 | else | |
4534 | no_cache=1 | |
4535 | fi | |
4536 | ||
4537 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4538 | |
e6cc62c6 | 4539 | fi; |
0b9ab0bd RL |
4540 | |
4541 | eval "$ac_cv_use_dynamicloader" | |
4542 | if test "$no_cache" != 1; then | |
4543 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4544 | fi | |
4545 | ||
4546 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4547 | echo "$as_me:$LINENO: result: yes" >&5 |
4548 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4549 | else |
e6cc62c6 VS |
4550 | echo "$as_me:$LINENO: result: no" >&5 |
4551 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4552 | fi |
e6cc62c6 | 4553 | |
0b9ab0bd | 4554 | |
5005acfe | 4555 | enablestring= |
e6cc62c6 VS |
4556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4557 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4558 | no_cache=0 |
4559 | # Check whether --enable-longlong or --disable-longlong was given. | |
4560 | if test "${enable_longlong+set}" = set; then | |
4561 | enableval="$enable_longlong" | |
e6cc62c6 | 4562 | |
10f2d63a VZ |
4563 | if test "$enableval" = yes; then |
4564 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4565 | else | |
4566 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4567 | fi | |
e6cc62c6 | 4568 | |
10f2d63a | 4569 | else |
e6cc62c6 | 4570 | |
10f2d63a VZ |
4571 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4572 | if test "x$LINE" != x ; then | |
4573 | eval "DEFAULT_$LINE" | |
4574 | else | |
4575 | no_cache=1 | |
4576 | fi | |
4577 | ||
4578 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4579 | |
e6cc62c6 | 4580 | fi; |
10f2d63a VZ |
4581 | |
4582 | eval "$ac_cv_use_longlong" | |
4583 | if test "$no_cache" != 1; then | |
4584 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4585 | fi | |
4586 | ||
4587 | if test "$wxUSE_LONGLONG" = yes; then | |
e6cc62c6 VS |
4588 | echo "$as_me:$LINENO: result: yes" >&5 |
4589 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4590 | else |
e6cc62c6 VS |
4591 | echo "$as_me:$LINENO: result: no" >&5 |
4592 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4593 | fi |
e6cc62c6 | 4594 | |
10f2d63a | 4595 | |
5005acfe | 4596 | enablestring= |
e6cc62c6 VS |
4597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4598 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4599 | no_cache=0 |
4600 | # Check whether --enable-geometry or --disable-geometry was given. | |
4601 | if test "${enable_geometry+set}" = set; then | |
4602 | enableval="$enable_geometry" | |
e6cc62c6 | 4603 | |
e8f65ba6 RR |
4604 | if test "$enableval" = yes; then |
4605 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4606 | else | |
4607 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4608 | fi | |
e6cc62c6 | 4609 | |
e8f65ba6 | 4610 | else |
e6cc62c6 | 4611 | |
e8f65ba6 RR |
4612 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4613 | if test "x$LINE" != x ; then | |
4614 | eval "DEFAULT_$LINE" | |
4615 | else | |
4616 | no_cache=1 | |
4617 | fi | |
4618 | ||
4619 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4620 | |
e6cc62c6 | 4621 | fi; |
e8f65ba6 RR |
4622 | |
4623 | eval "$ac_cv_use_geometry" | |
4624 | if test "$no_cache" != 1; then | |
4625 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4626 | fi | |
4627 | ||
4628 | if test "$wxUSE_GEOMETRY" = yes; then | |
e6cc62c6 VS |
4629 | echo "$as_me:$LINENO: result: yes" >&5 |
4630 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4631 | else |
e6cc62c6 VS |
4632 | echo "$as_me:$LINENO: result: no" >&5 |
4633 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4634 | fi |
e6cc62c6 | 4635 | |
e8f65ba6 | 4636 | |
5005acfe | 4637 | enablestring= |
e6cc62c6 VS |
4638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4639 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4640 | no_cache=0 |
4641 | # Check whether --enable-log or --disable-log was given. | |
4642 | if test "${enable_log+set}" = set; then | |
4643 | enableval="$enable_log" | |
e6cc62c6 | 4644 | |
10f2d63a VZ |
4645 | if test "$enableval" = yes; then |
4646 | ac_cv_use_log='wxUSE_LOG=yes' | |
4647 | else | |
4648 | ac_cv_use_log='wxUSE_LOG=no' | |
4649 | fi | |
e6cc62c6 | 4650 | |
10f2d63a | 4651 | else |
e6cc62c6 | 4652 | |
10f2d63a VZ |
4653 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4654 | if test "x$LINE" != x ; then | |
4655 | eval "DEFAULT_$LINE" | |
4656 | else | |
4657 | no_cache=1 | |
4658 | fi | |
4659 | ||
4660 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4661 | |
e6cc62c6 | 4662 | fi; |
10f2d63a VZ |
4663 | |
4664 | eval "$ac_cv_use_log" | |
4665 | if test "$no_cache" != 1; then | |
4666 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4667 | fi | |
4668 | ||
4669 | if test "$wxUSE_LOG" = yes; then | |
e6cc62c6 VS |
4670 | echo "$as_me:$LINENO: result: yes" >&5 |
4671 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4672 | else |
e6cc62c6 VS |
4673 | echo "$as_me:$LINENO: result: no" >&5 |
4674 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4675 | fi |
e6cc62c6 | 4676 | |
10f2d63a | 4677 | |
5005acfe | 4678 | enablestring= |
e6cc62c6 VS |
4679 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
4680 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4681 | no_cache=0 |
4682 | # Check whether --enable-streams or --disable-streams was given. | |
4683 | if test "${enable_streams+set}" = set; then | |
4684 | enableval="$enable_streams" | |
e6cc62c6 | 4685 | |
10f2d63a VZ |
4686 | if test "$enableval" = yes; then |
4687 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4688 | else | |
4689 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4690 | fi | |
e6cc62c6 | 4691 | |
10f2d63a | 4692 | else |
e6cc62c6 | 4693 | |
10f2d63a VZ |
4694 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4695 | if test "x$LINE" != x ; then | |
4696 | eval "DEFAULT_$LINE" | |
4697 | else | |
4698 | no_cache=1 | |
4699 | fi | |
4700 | ||
4701 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4702 | |
e6cc62c6 | 4703 | fi; |
10f2d63a VZ |
4704 | |
4705 | eval "$ac_cv_use_streams" | |
4706 | if test "$no_cache" != 1; then | |
4707 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4708 | fi | |
4709 | ||
4710 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
4711 | echo "$as_me:$LINENO: result: yes" >&5 |
4712 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4713 | else |
e6cc62c6 VS |
4714 | echo "$as_me:$LINENO: result: no" >&5 |
4715 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4716 | fi |
e6cc62c6 | 4717 | |
10f2d63a | 4718 | |
5005acfe | 4719 | enablestring= |
e6cc62c6 VS |
4720 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4721 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4722 | no_cache=0 |
4723 | # Check whether --enable-file or --disable-file was given. | |
4724 | if test "${enable_file+set}" = set; then | |
4725 | enableval="$enable_file" | |
e6cc62c6 | 4726 | |
10f2d63a VZ |
4727 | if test "$enableval" = yes; then |
4728 | ac_cv_use_file='wxUSE_FILE=yes' | |
4729 | else | |
4730 | ac_cv_use_file='wxUSE_FILE=no' | |
4731 | fi | |
e6cc62c6 | 4732 | |
10f2d63a | 4733 | else |
e6cc62c6 | 4734 | |
10f2d63a VZ |
4735 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4736 | if test "x$LINE" != x ; then | |
4737 | eval "DEFAULT_$LINE" | |
4738 | else | |
4739 | no_cache=1 | |
4740 | fi | |
4741 | ||
4742 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4743 | |
e6cc62c6 | 4744 | fi; |
10f2d63a VZ |
4745 | |
4746 | eval "$ac_cv_use_file" | |
4747 | if test "$no_cache" != 1; then | |
4748 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4749 | fi | |
4750 | ||
4751 | if test "$wxUSE_FILE" = yes; then | |
e6cc62c6 VS |
4752 | echo "$as_me:$LINENO: result: yes" >&5 |
4753 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4754 | else |
e6cc62c6 VS |
4755 | echo "$as_me:$LINENO: result: no" >&5 |
4756 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4757 | fi |
e6cc62c6 | 4758 | |
10f2d63a | 4759 | |
5005acfe | 4760 | enablestring= |
e6cc62c6 VS |
4761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4762 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
10f2d63a | 4763 | no_cache=0 |
1e6feb95 VZ |
4764 | # Check whether --enable-ffile or --disable-ffile was given. |
4765 | if test "${enable_ffile+set}" = set; then | |
4766 | enableval="$enable_ffile" | |
e6cc62c6 | 4767 | |
10f2d63a | 4768 | if test "$enableval" = yes; then |
1e6feb95 | 4769 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4770 | else |
1e6feb95 | 4771 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4772 | fi |
e6cc62c6 | 4773 | |
10f2d63a | 4774 | else |
e6cc62c6 | 4775 | |
1e6feb95 | 4776 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4777 | if test "x$LINE" != x ; then |
4778 | eval "DEFAULT_$LINE" | |
4779 | else | |
4780 | no_cache=1 | |
4781 | fi | |
4782 | ||
1e6feb95 | 4783 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4784 | |
e6cc62c6 | 4785 | fi; |
10f2d63a | 4786 | |
1e6feb95 | 4787 | eval "$ac_cv_use_ffile" |
10f2d63a | 4788 | if test "$no_cache" != 1; then |
1e6feb95 | 4789 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4790 | fi |
4791 | ||
1e6feb95 | 4792 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4793 | echo "$as_me:$LINENO: result: yes" >&5 |
4794 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4795 | else |
e6cc62c6 VS |
4796 | echo "$as_me:$LINENO: result: no" >&5 |
4797 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4798 | fi |
e6cc62c6 | 4799 | |
10f2d63a | 4800 | |
5005acfe | 4801 | enablestring= |
e6cc62c6 VS |
4802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
4803 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4804 | no_cache=0 |
4805 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4806 | if test "${enable_textbuf+set}" = set; then | |
4807 | enableval="$enable_textbuf" | |
e6cc62c6 | 4808 | |
a3a584a7 VZ |
4809 | if test "$enableval" = yes; then |
4810 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4811 | else | |
4812 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4813 | fi | |
e6cc62c6 | 4814 | |
a3a584a7 | 4815 | else |
e6cc62c6 | 4816 | |
a3a584a7 VZ |
4817 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4818 | if test "x$LINE" != x ; then | |
4819 | eval "DEFAULT_$LINE" | |
4820 | else | |
4821 | no_cache=1 | |
4822 | fi | |
4823 | ||
4824 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4825 | |
e6cc62c6 | 4826 | fi; |
a3a584a7 VZ |
4827 | |
4828 | eval "$ac_cv_use_textbuf" | |
4829 | if test "$no_cache" != 1; then | |
4830 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4831 | fi | |
4832 | ||
4833 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
e6cc62c6 VS |
4834 | echo "$as_me:$LINENO: result: yes" >&5 |
4835 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4836 | else |
e6cc62c6 VS |
4837 | echo "$as_me:$LINENO: result: no" >&5 |
4838 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4839 | fi |
e6cc62c6 | 4840 | |
a3a584a7 | 4841 | |
5005acfe | 4842 | enablestring= |
e6cc62c6 VS |
4843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
4844 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 4845 | no_cache=0 |
1e6feb95 VZ |
4846 | # Check whether --enable-textfile or --disable-textfile was given. |
4847 | if test "${enable_textfile+set}" = set; then | |
4848 | enableval="$enable_textfile" | |
e6cc62c6 | 4849 | |
10f2d63a | 4850 | if test "$enableval" = yes; then |
1e6feb95 | 4851 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4852 | else |
1e6feb95 | 4853 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4854 | fi |
e6cc62c6 | 4855 | |
10f2d63a | 4856 | else |
e6cc62c6 | 4857 | |
1e6feb95 | 4858 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4859 | if test "x$LINE" != x ; then |
4860 | eval "DEFAULT_$LINE" | |
4861 | else | |
4862 | no_cache=1 | |
4863 | fi | |
4864 | ||
1e6feb95 | 4865 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4866 | |
e6cc62c6 | 4867 | fi; |
10f2d63a | 4868 | |
1e6feb95 | 4869 | eval "$ac_cv_use_textfile" |
10f2d63a | 4870 | if test "$no_cache" != 1; then |
1e6feb95 | 4871 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4872 | fi |
4873 | ||
1e6feb95 | 4874 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
4875 | echo "$as_me:$LINENO: result: yes" >&5 |
4876 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4877 | else |
e6cc62c6 VS |
4878 | echo "$as_me:$LINENO: result: no" >&5 |
4879 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4880 | fi |
e6cc62c6 | 4881 | |
10f2d63a | 4882 | |
5005acfe | 4883 | enablestring= |
e6cc62c6 VS |
4884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4885 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4886 | no_cache=0 |
1e6feb95 VZ |
4887 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4888 | if test "${enable_fontmap+set}" = set; then | |
4889 | enableval="$enable_fontmap" | |
e6cc62c6 | 4890 | |
10f2d63a | 4891 | if test "$enableval" = yes; then |
1e6feb95 | 4892 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4893 | else |
1e6feb95 | 4894 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4895 | fi |
e6cc62c6 | 4896 | |
10f2d63a | 4897 | else |
e6cc62c6 | 4898 | |
1e6feb95 | 4899 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4900 | if test "x$LINE" != x ; then |
4901 | eval "DEFAULT_$LINE" | |
4902 | else | |
4903 | no_cache=1 | |
4904 | fi | |
4905 | ||
1e6feb95 | 4906 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4907 | |
e6cc62c6 | 4908 | fi; |
10f2d63a | 4909 | |
1e6feb95 | 4910 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4911 | if test "$no_cache" != 1; then |
1e6feb95 | 4912 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4913 | fi |
4914 | ||
1e6feb95 | 4915 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4916 | echo "$as_me:$LINENO: result: yes" >&5 |
4917 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4918 | else |
e6cc62c6 VS |
4919 | echo "$as_me:$LINENO: result: no" >&5 |
4920 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4921 | fi |
e6cc62c6 | 4922 | |
10f2d63a | 4923 | |
5005acfe | 4924 | enablestring= |
e6cc62c6 VS |
4925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4926 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
10f2d63a | 4927 | no_cache=0 |
1e6feb95 VZ |
4928 | # Check whether --enable-unicode or --disable-unicode was given. |
4929 | if test "${enable_unicode+set}" = set; then | |
4930 | enableval="$enable_unicode" | |
e6cc62c6 | 4931 | |
1e6feb95 VZ |
4932 | if test "$enableval" = yes; then |
4933 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4934 | else | |
4935 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4936 | fi | |
e6cc62c6 | 4937 | |
1e6feb95 | 4938 | else |
e6cc62c6 | 4939 | |
1e6feb95 VZ |
4940 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4941 | if test "x$LINE" != x ; then | |
4942 | eval "DEFAULT_$LINE" | |
4943 | else | |
4944 | no_cache=1 | |
4945 | fi | |
4946 | ||
4947 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 4948 | |
e6cc62c6 | 4949 | fi; |
1e6feb95 VZ |
4950 | |
4951 | eval "$ac_cv_use_unicode" | |
4952 | if test "$no_cache" != 1; then | |
4953 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4954 | fi | |
4955 | ||
4956 | if test "$wxUSE_UNICODE" = yes; then | |
e6cc62c6 VS |
4957 | echo "$as_me:$LINENO: result: yes" >&5 |
4958 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4959 | else |
e6cc62c6 VS |
4960 | echo "$as_me:$LINENO: result: no" >&5 |
4961 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4962 | fi |
e6cc62c6 | 4963 | |
1e6feb95 | 4964 | |
5005acfe | 4965 | enablestring= |
e6cc62c6 VS |
4966 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
4967 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
4968 | no_cache=0 |
4969 | # Check whether --enable-mslu or --disable-mslu was given. | |
4970 | if test "${enable_mslu+set}" = set; then | |
4971 | enableval="$enable_mslu" | |
e6cc62c6 | 4972 | |
a72a4bfa VS |
4973 | if test "$enableval" = yes; then |
4974 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4975 | else | |
4976 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4977 | fi | |
e6cc62c6 | 4978 | |
a72a4bfa | 4979 | else |
e6cc62c6 | 4980 | |
a72a4bfa VS |
4981 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4982 | if test "x$LINE" != x ; then | |
4983 | eval "DEFAULT_$LINE" | |
4984 | else | |
4985 | no_cache=1 | |
4986 | fi | |
4987 | ||
4988 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 4989 | |
e6cc62c6 | 4990 | fi; |
a72a4bfa VS |
4991 | |
4992 | eval "$ac_cv_use_mslu" | |
4993 | if test "$no_cache" != 1; then | |
4994 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4995 | fi | |
4996 | ||
4997 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
4998 | echo "$as_me:$LINENO: result: yes" >&5 |
4999 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5000 | else |
e6cc62c6 VS |
5001 | echo "$as_me:$LINENO: result: no" >&5 |
5002 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5003 | fi |
e6cc62c6 | 5004 | |
a72a4bfa | 5005 | |
5005acfe | 5006 | enablestring= |
e6cc62c6 VS |
5007 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5008 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
5009 | no_cache=0 |
5010 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5011 | if test "${enable_wxprintfv+set}" = set; then | |
5012 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5013 | |
1e6feb95 | 5014 | if test "$enableval" = yes; then |
10f2d63a VZ |
5015 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
5016 | else | |
5017 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5018 | fi | |
e6cc62c6 | 5019 | |
10f2d63a | 5020 | else |
e6cc62c6 | 5021 | |
10f2d63a VZ |
5022 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
5023 | if test "x$LINE" != x ; then | |
5024 | eval "DEFAULT_$LINE" | |
5025 | else | |
5026 | no_cache=1 | |
5027 | fi | |
5028 | ||
5029 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 5030 | |
e6cc62c6 | 5031 | fi; |
10f2d63a VZ |
5032 | |
5033 | eval "$ac_cv_use_wxprintfv" | |
5034 | if test "$no_cache" != 1; then | |
5035 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5036 | fi | |
5037 | ||
5038 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
e6cc62c6 VS |
5039 | echo "$as_me:$LINENO: result: yes" >&5 |
5040 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5041 | else |
e6cc62c6 VS |
5042 | echo "$as_me:$LINENO: result: no" >&5 |
5043 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5044 | fi |
e6cc62c6 | 5045 | |
10f2d63a | 5046 | |
5005acfe | 5047 | enablestring= |
e6cc62c6 VS |
5048 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5049 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5050 | no_cache=0 |
5051 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5052 | if test "${enable_std_iostreams+set}" = set; then | |
5053 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5054 | |
10f2d63a VZ |
5055 | if test "$enableval" = yes; then |
5056 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5057 | else | |
5058 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5059 | fi | |
e6cc62c6 | 5060 | |
10f2d63a | 5061 | else |
e6cc62c6 | 5062 | |
10f2d63a VZ |
5063 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5064 | if test "x$LINE" != x ; then | |
5065 | eval "DEFAULT_$LINE" | |
5066 | else | |
5067 | no_cache=1 | |
5068 | fi | |
5069 | ||
5070 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5071 | |
e6cc62c6 | 5072 | fi; |
10f2d63a VZ |
5073 | |
5074 | eval "$ac_cv_use_std_iostreams" | |
5075 | if test "$no_cache" != 1; then | |
5076 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5077 | fi | |
5078 | ||
5079 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5080 | echo "$as_me:$LINENO: result: yes" >&5 |
5081 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5082 | else |
e6cc62c6 VS |
5083 | echo "$as_me:$LINENO: result: no" >&5 |
5084 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5085 | fi |
e6cc62c6 | 5086 | |
10f2d63a | 5087 | |
5005acfe | 5088 | enablestring= |
e6cc62c6 VS |
5089 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
5090 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
5091 | no_cache=0 |
5092 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5093 | if test "${enable_filesystem+set}" = set; then | |
5094 | enableval="$enable_filesystem" | |
e6cc62c6 | 5095 | |
24528b0c VS |
5096 | if test "$enableval" = yes; then |
5097 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5098 | else | |
5099 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5100 | fi | |
e6cc62c6 | 5101 | |
24528b0c | 5102 | else |
e6cc62c6 | 5103 | |
24528b0c VS |
5104 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
5105 | if test "x$LINE" != x ; then | |
5106 | eval "DEFAULT_$LINE" | |
5107 | else | |
5108 | no_cache=1 | |
5109 | fi | |
5110 | ||
5111 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 5112 | |
e6cc62c6 | 5113 | fi; |
24528b0c VS |
5114 | |
5115 | eval "$ac_cv_use_filesystem" | |
5116 | if test "$no_cache" != 1; then | |
5117 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5118 | fi | |
5119 | ||
5120 | if test "$wxUSE_FILESYSTEM" = yes; then | |
e6cc62c6 VS |
5121 | echo "$as_me:$LINENO: result: yes" >&5 |
5122 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5123 | else |
e6cc62c6 VS |
5124 | echo "$as_me:$LINENO: result: no" >&5 |
5125 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5126 | fi |
e6cc62c6 | 5127 | |
24528b0c | 5128 | |
5005acfe | 5129 | enablestring= |
e6cc62c6 VS |
5130 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
5131 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
5132 | no_cache=0 |
5133 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5134 | if test "${enable_fs_inet+set}" = set; then | |
5135 | enableval="$enable_fs_inet" | |
e6cc62c6 | 5136 | |
10f2d63a VZ |
5137 | if test "$enableval" = yes; then |
5138 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5139 | else | |
5140 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5141 | fi | |
e6cc62c6 | 5142 | |
10f2d63a | 5143 | else |
e6cc62c6 | 5144 | |
10f2d63a VZ |
5145 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
5146 | if test "x$LINE" != x ; then | |
5147 | eval "DEFAULT_$LINE" | |
5148 | else | |
5149 | no_cache=1 | |
5150 | fi | |
5151 | ||
5152 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 5153 | |
e6cc62c6 | 5154 | fi; |
10f2d63a VZ |
5155 | |
5156 | eval "$ac_cv_use_fs_inet" | |
5157 | if test "$no_cache" != 1; then | |
5158 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5159 | fi | |
5160 | ||
5161 | if test "$wxUSE_FS_INET" = yes; then | |
e6cc62c6 VS |
5162 | echo "$as_me:$LINENO: result: yes" >&5 |
5163 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5164 | else |
e6cc62c6 VS |
5165 | echo "$as_me:$LINENO: result: no" >&5 |
5166 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5167 | fi |
e6cc62c6 | 5168 | |
10f2d63a | 5169 | |
5005acfe | 5170 | enablestring= |
e6cc62c6 VS |
5171 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5172 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
5173 | no_cache=0 |
5174 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5175 | if test "${enable_fs_zip+set}" = set; then | |
5176 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5177 | |
10f2d63a VZ |
5178 | if test "$enableval" = yes; then |
5179 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5180 | else | |
5181 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5182 | fi | |
e6cc62c6 | 5183 | |
10f2d63a | 5184 | else |
e6cc62c6 | 5185 | |
10f2d63a VZ |
5186 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
5187 | if test "x$LINE" != x ; then | |
5188 | eval "DEFAULT_$LINE" | |
5189 | else | |
5190 | no_cache=1 | |
5191 | fi | |
5192 | ||
5193 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 5194 | |
e6cc62c6 | 5195 | fi; |
10f2d63a VZ |
5196 | |
5197 | eval "$ac_cv_use_fs_zip" | |
5198 | if test "$no_cache" != 1; then | |
5199 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5200 | fi | |
5201 | ||
5202 | if test "$wxUSE_FS_ZIP" = yes; then | |
e6cc62c6 VS |
5203 | echo "$as_me:$LINENO: result: yes" >&5 |
5204 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5205 | else |
e6cc62c6 VS |
5206 | echo "$as_me:$LINENO: result: no" >&5 |
5207 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5208 | fi |
e6cc62c6 | 5209 | |
10f2d63a | 5210 | |
5005acfe | 5211 | enablestring= |
e6cc62c6 VS |
5212 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5213 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
5214 | no_cache=0 |
5215 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5216 | if test "${enable_zipstream+set}" = set; then | |
5217 | enableval="$enable_zipstream" | |
e6cc62c6 | 5218 | |
10f2d63a VZ |
5219 | if test "$enableval" = yes; then |
5220 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5221 | else | |
5222 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5223 | fi | |
e6cc62c6 | 5224 | |
10f2d63a | 5225 | else |
e6cc62c6 | 5226 | |
10f2d63a VZ |
5227 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
5228 | if test "x$LINE" != x ; then | |
5229 | eval "DEFAULT_$LINE" | |
5230 | else | |
5231 | no_cache=1 | |
5232 | fi | |
5233 | ||
5234 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 5235 | |
e6cc62c6 | 5236 | fi; |
10f2d63a VZ |
5237 | |
5238 | eval "$ac_cv_use_zipstream" | |
5239 | if test "$no_cache" != 1; then | |
5240 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5241 | fi | |
5242 | ||
5243 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
e6cc62c6 VS |
5244 | echo "$as_me:$LINENO: result: yes" >&5 |
5245 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5246 | else |
e6cc62c6 VS |
5247 | echo "$as_me:$LINENO: result: no" >&5 |
5248 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5249 | fi |
e6cc62c6 | 5250 | |
8284b0c5 | 5251 | |
52127426 | 5252 | |
5005acfe | 5253 | enablestring= |
e6cc62c6 VS |
5254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5255 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
5256 | no_cache=0 |
5257 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5258 | if test "${enable_catch_segvs+set}" = set; then | |
5259 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 5260 | |
eb4efbdc VZ |
5261 | if test "$enableval" = yes; then |
5262 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5263 | else | |
5264 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5265 | fi | |
e6cc62c6 | 5266 | |
eb4efbdc | 5267 | else |
e6cc62c6 | 5268 | |
eb4efbdc VZ |
5269 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
5270 | if test "x$LINE" != x ; then | |
5271 | eval "DEFAULT_$LINE" | |
5272 | else | |
5273 | no_cache=1 | |
5274 | fi | |
5275 | ||
5276 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 5277 | |
e6cc62c6 | 5278 | fi; |
eb4efbdc VZ |
5279 | |
5280 | eval "$ac_cv_use_catch_segvs" | |
5281 | if test "$no_cache" != 1; then | |
5282 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5283 | fi | |
5284 | ||
5285 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
e6cc62c6 VS |
5286 | echo "$as_me:$LINENO: result: yes" >&5 |
5287 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5288 | else |
e6cc62c6 VS |
5289 | echo "$as_me:$LINENO: result: no" >&5 |
5290 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5291 | fi |
e6cc62c6 | 5292 | |
eb4efbdc | 5293 | |
5005acfe | 5294 | enablestring= |
e6cc62c6 VS |
5295 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5296 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5297 | no_cache=0 |
5298 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5299 | if test "${enable_snglinst+set}" = set; then | |
5300 | enableval="$enable_snglinst" | |
e6cc62c6 | 5301 | |
4f3c5f06 VZ |
5302 | if test "$enableval" = yes; then |
5303 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5304 | else | |
5305 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5306 | fi | |
e6cc62c6 | 5307 | |
4f3c5f06 | 5308 | else |
e6cc62c6 | 5309 | |
4f3c5f06 VZ |
5310 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5311 | if test "x$LINE" != x ; then | |
5312 | eval "DEFAULT_$LINE" | |
5313 | else | |
5314 | no_cache=1 | |
5315 | fi | |
5316 | ||
5317 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5318 | |
e6cc62c6 | 5319 | fi; |
4f3c5f06 VZ |
5320 | |
5321 | eval "$ac_cv_use_snglinst" | |
5322 | if test "$no_cache" != 1; then | |
5323 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5324 | fi | |
5325 | ||
5326 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
e6cc62c6 VS |
5327 | echo "$as_me:$LINENO: result: yes" >&5 |
5328 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5329 | else |
e6cc62c6 VS |
5330 | echo "$as_me:$LINENO: result: no" >&5 |
5331 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5332 | fi |
e6cc62c6 | 5333 | |
52127426 | 5334 | |
8284b0c5 | 5335 | |
5005acfe | 5336 | enablestring= |
e6cc62c6 VS |
5337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
5338 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5339 | no_cache=0 |
5340 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5341 | if test "${enable_mimetype+set}" = set; then | |
5342 | enableval="$enable_mimetype" | |
e6cc62c6 | 5343 | |
1e6feb95 VZ |
5344 | if test "$enableval" = yes; then |
5345 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5346 | else | |
5347 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5348 | fi | |
e6cc62c6 | 5349 | |
1e6feb95 | 5350 | else |
e6cc62c6 | 5351 | |
1e6feb95 VZ |
5352 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5353 | if test "x$LINE" != x ; then | |
5354 | eval "DEFAULT_$LINE" | |
5355 | else | |
5356 | no_cache=1 | |
5357 | fi | |
5358 | ||
5359 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5360 | |
e6cc62c6 | 5361 | fi; |
1e6feb95 VZ |
5362 | |
5363 | eval "$ac_cv_use_mimetype" | |
5364 | if test "$no_cache" != 1; then | |
5365 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5366 | fi | |
5367 | ||
5368 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5369 | echo "$as_me:$LINENO: result: yes" >&5 |
5370 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5371 | else |
e6cc62c6 VS |
5372 | echo "$as_me:$LINENO: result: no" >&5 |
5373 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5374 | fi |
e6cc62c6 | 5375 | |
1e6feb95 | 5376 | |
5005acfe | 5377 | enablestring= |
e6cc62c6 VS |
5378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5379 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5380 | no_cache=0 |
5381 | # Check whether --enable-system_options or --disable-system_options was given. | |
5382 | if test "${enable_system_options+set}" = set; then | |
5383 | enableval="$enable_system_options" | |
e6cc62c6 | 5384 | |
3e44f09d VZ |
5385 | if test "$enableval" = yes; then |
5386 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5387 | else | |
5388 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5389 | fi | |
e6cc62c6 | 5390 | |
3e44f09d | 5391 | else |
e6cc62c6 | 5392 | |
3e44f09d VZ |
5393 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5394 | if test "x$LINE" != x ; then | |
5395 | eval "DEFAULT_$LINE" | |
5396 | else | |
5397 | no_cache=1 | |
5398 | fi | |
5399 | ||
5400 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5401 | |
e6cc62c6 | 5402 | fi; |
3e44f09d VZ |
5403 | |
5404 | eval "$ac_cv_use_system_options" | |
5405 | if test "$no_cache" != 1; then | |
5406 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5407 | fi | |
5408 | ||
5409 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
e6cc62c6 VS |
5410 | echo "$as_me:$LINENO: result: yes" >&5 |
5411 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5412 | else |
e6cc62c6 VS |
5413 | echo "$as_me:$LINENO: result: no" >&5 |
5414 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5415 | fi |
e6cc62c6 | 5416 | |
8284b0c5 | 5417 | |
52127426 | 5418 | |
5005acfe | 5419 | enablestring= |
e6cc62c6 VS |
5420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5421 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5422 | no_cache=0 |
5423 | # Check whether --enable-url or --disable-url was given. | |
5424 | if test "${enable_url+set}" = set; then | |
5425 | enableval="$enable_url" | |
e6cc62c6 | 5426 | |
4cdb0ab0 VS |
5427 | if test "$enableval" = yes; then |
5428 | ac_cv_use_url='wxUSE_URL=yes' | |
5429 | else | |
5430 | ac_cv_use_url='wxUSE_URL=no' | |
5431 | fi | |
e6cc62c6 | 5432 | |
4cdb0ab0 | 5433 | else |
e6cc62c6 | 5434 | |
4cdb0ab0 VS |
5435 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5436 | if test "x$LINE" != x ; then | |
5437 | eval "DEFAULT_$LINE" | |
5438 | else | |
5439 | no_cache=1 | |
5440 | fi | |
5441 | ||
5442 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5443 | |
e6cc62c6 | 5444 | fi; |
4cdb0ab0 VS |
5445 | |
5446 | eval "$ac_cv_use_url" | |
5447 | if test "$no_cache" != 1; then | |
5448 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5449 | fi | |
5450 | ||
5451 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5452 | echo "$as_me:$LINENO: result: yes" >&5 |
5453 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5454 | else |
e6cc62c6 VS |
5455 | echo "$as_me:$LINENO: result: no" >&5 |
5456 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5457 | fi |
e6cc62c6 | 5458 | |
4cdb0ab0 | 5459 | |
5005acfe | 5460 | enablestring= |
e6cc62c6 VS |
5461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5462 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5463 | no_cache=0 |
5464 | # Check whether --enable-protocol or --disable-protocol was given. | |
5465 | if test "${enable_protocol+set}" = set; then | |
5466 | enableval="$enable_protocol" | |
e6cc62c6 | 5467 | |
4cdb0ab0 VS |
5468 | if test "$enableval" = yes; then |
5469 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5470 | else | |
5471 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5472 | fi | |
e6cc62c6 | 5473 | |
4cdb0ab0 | 5474 | else |
e6cc62c6 | 5475 | |
4cdb0ab0 VS |
5476 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5477 | if test "x$LINE" != x ; then | |
5478 | eval "DEFAULT_$LINE" | |
5479 | else | |
5480 | no_cache=1 | |
5481 | fi | |
5482 | ||
5483 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5484 | |
e6cc62c6 | 5485 | fi; |
4cdb0ab0 VS |
5486 | |
5487 | eval "$ac_cv_use_protocol" | |
5488 | if test "$no_cache" != 1; then | |
5489 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5490 | fi | |
5491 | ||
5492 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5493 | echo "$as_me:$LINENO: result: yes" >&5 |
5494 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5495 | else |
e6cc62c6 VS |
5496 | echo "$as_me:$LINENO: result: no" >&5 |
5497 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5498 | fi |
e6cc62c6 | 5499 | |
4cdb0ab0 | 5500 | |
5005acfe | 5501 | enablestring= |
e6cc62c6 VS |
5502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5503 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5504 | no_cache=0 |
5505 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5506 | if test "${enable_protocol_http+set}" = set; then | |
5507 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5508 | |
4cdb0ab0 VS |
5509 | if test "$enableval" = yes; then |
5510 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5511 | else | |
5512 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5513 | fi | |
e6cc62c6 | 5514 | |
4cdb0ab0 | 5515 | else |
e6cc62c6 | 5516 | |
4cdb0ab0 VS |
5517 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5518 | if test "x$LINE" != x ; then | |
5519 | eval "DEFAULT_$LINE" | |
5520 | else | |
5521 | no_cache=1 | |
5522 | fi | |
5523 | ||
5524 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5525 | |
e6cc62c6 | 5526 | fi; |
4cdb0ab0 VS |
5527 | |
5528 | eval "$ac_cv_use_protocol_http" | |
5529 | if test "$no_cache" != 1; then | |
5530 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5531 | fi | |
5532 | ||
5533 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5534 | echo "$as_me:$LINENO: result: yes" >&5 |
5535 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5536 | else |
e6cc62c6 VS |
5537 | echo "$as_me:$LINENO: result: no" >&5 |
5538 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5539 | fi |
e6cc62c6 | 5540 | |
4cdb0ab0 | 5541 | |
5005acfe | 5542 | enablestring= |
e6cc62c6 VS |
5543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5544 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5545 | no_cache=0 |
5546 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5547 | if test "${enable_protocol_ftp+set}" = set; then | |
5548 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5549 | |
4cdb0ab0 VS |
5550 | if test "$enableval" = yes; then |
5551 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5552 | else | |
5553 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5554 | fi | |
e6cc62c6 | 5555 | |
4cdb0ab0 | 5556 | else |
e6cc62c6 | 5557 | |
4cdb0ab0 VS |
5558 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5559 | if test "x$LINE" != x ; then | |
5560 | eval "DEFAULT_$LINE" | |
5561 | else | |
5562 | no_cache=1 | |
5563 | fi | |
5564 | ||
5565 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5566 | |
e6cc62c6 | 5567 | fi; |
4cdb0ab0 VS |
5568 | |
5569 | eval "$ac_cv_use_protocol_ftp" | |
5570 | if test "$no_cache" != 1; then | |
5571 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5572 | fi | |
5573 | ||
5574 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5575 | echo "$as_me:$LINENO: result: yes" >&5 |
5576 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5577 | else |
e6cc62c6 VS |
5578 | echo "$as_me:$LINENO: result: no" >&5 |
5579 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5580 | fi |
e6cc62c6 | 5581 | |
4cdb0ab0 | 5582 | |
5005acfe | 5583 | enablestring= |
e6cc62c6 VS |
5584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5585 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5586 | no_cache=0 |
5587 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5588 | if test "${enable_protocol_file+set}" = set; then | |
5589 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5590 | |
4cdb0ab0 VS |
5591 | if test "$enableval" = yes; then |
5592 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5593 | else | |
5594 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5595 | fi | |
e6cc62c6 | 5596 | |
4cdb0ab0 | 5597 | else |
e6cc62c6 | 5598 | |
4cdb0ab0 VS |
5599 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5600 | if test "x$LINE" != x ; then | |
5601 | eval "DEFAULT_$LINE" | |
5602 | else | |
5603 | no_cache=1 | |
5604 | fi | |
5605 | ||
5606 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5607 | |
e6cc62c6 | 5608 | fi; |
4cdb0ab0 VS |
5609 | |
5610 | eval "$ac_cv_use_protocol_file" | |
5611 | if test "$no_cache" != 1; then | |
5612 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5613 | fi | |
5614 | ||
5615 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5616 | echo "$as_me:$LINENO: result: yes" >&5 |
5617 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5618 | else |
e6cc62c6 VS |
5619 | echo "$as_me:$LINENO: result: no" >&5 |
5620 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5621 | fi |
e6cc62c6 | 5622 | |
52127426 | 5623 | |
8284b0c5 MB |
5624 | |
5625 | ||
5626 | ||
5005acfe | 5627 | enablestring= |
e6cc62c6 VS |
5628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5629 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5630 | no_cache=0 |
5631 | # Check whether --enable-threads or --disable-threads was given. | |
5632 | if test "${enable_threads+set}" = set; then | |
5633 | enableval="$enable_threads" | |
e6cc62c6 | 5634 | |
10f2d63a VZ |
5635 | if test "$enableval" = yes; then |
5636 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5637 | else | |
5638 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5639 | fi | |
e6cc62c6 | 5640 | |
10f2d63a | 5641 | else |
e6cc62c6 | 5642 | |
10f2d63a VZ |
5643 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5644 | if test "x$LINE" != x ; then | |
5645 | eval "DEFAULT_$LINE" | |
5646 | else | |
5647 | no_cache=1 | |
5648 | fi | |
5649 | ||
5650 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5651 | |
e6cc62c6 | 5652 | fi; |
10f2d63a VZ |
5653 | |
5654 | eval "$ac_cv_use_threads" | |
5655 | if test "$no_cache" != 1; then | |
5656 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5657 | fi | |
5658 | ||
5659 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5660 | echo "$as_me:$LINENO: result: yes" >&5 |
5661 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5662 | else |
e6cc62c6 VS |
5663 | echo "$as_me:$LINENO: result: no" >&5 |
5664 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5665 | fi |
e6cc62c6 | 5666 | |
10f2d63a | 5667 | |
b12915c1 VZ |
5668 | if test "$wxUSE_GUI" = "yes"; then |
5669 | ||
8284b0c5 MB |
5670 | |
5671 | ||
5005acfe | 5672 | enablestring= |
e6cc62c6 VS |
5673 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5674 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5675 | no_cache=0 |
5676 | # Check whether --enable-docview or --disable-docview was given. | |
5677 | if test "${enable_docview+set}" = set; then | |
5678 | enableval="$enable_docview" | |
e6cc62c6 | 5679 | |
10f2d63a VZ |
5680 | if test "$enableval" = yes; then |
5681 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5682 | else | |
5683 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5684 | fi | |
e6cc62c6 | 5685 | |
10f2d63a | 5686 | else |
e6cc62c6 | 5687 | |
10f2d63a VZ |
5688 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5689 | if test "x$LINE" != x ; then | |
5690 | eval "DEFAULT_$LINE" | |
5691 | else | |
5692 | no_cache=1 | |
5693 | fi | |
5694 | ||
5695 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5696 | |
e6cc62c6 | 5697 | fi; |
10f2d63a VZ |
5698 | |
5699 | eval "$ac_cv_use_docview" | |
5700 | if test "$no_cache" != 1; then | |
5701 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5702 | fi | |
5703 | ||
5704 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5705 | echo "$as_me:$LINENO: result: yes" >&5 |
5706 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5707 | else |
e6cc62c6 VS |
5708 | echo "$as_me:$LINENO: result: no" >&5 |
5709 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5710 | fi |
e6cc62c6 | 5711 | |
10f2d63a | 5712 | |
5005acfe | 5713 | enablestring= |
e6cc62c6 VS |
5714 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5715 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5716 | no_cache=0 |
5717 | # Check whether --enable-help or --disable-help was given. | |
5718 | if test "${enable_help+set}" = set; then | |
5719 | enableval="$enable_help" | |
e6cc62c6 | 5720 | |
10f2d63a VZ |
5721 | if test "$enableval" = yes; then |
5722 | ac_cv_use_help='wxUSE_HELP=yes' | |
5723 | else | |
5724 | ac_cv_use_help='wxUSE_HELP=no' | |
5725 | fi | |
e6cc62c6 | 5726 | |
10f2d63a | 5727 | else |
e6cc62c6 | 5728 | |
10f2d63a VZ |
5729 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5730 | if test "x$LINE" != x ; then | |
5731 | eval "DEFAULT_$LINE" | |
5732 | else | |
5733 | no_cache=1 | |
5734 | fi | |
5735 | ||
5736 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5737 | |
e6cc62c6 | 5738 | fi; |
10f2d63a VZ |
5739 | |
5740 | eval "$ac_cv_use_help" | |
5741 | if test "$no_cache" != 1; then | |
5742 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5743 | fi | |
5744 | ||
5745 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5746 | echo "$as_me:$LINENO: result: yes" >&5 |
5747 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5748 | else |
e6cc62c6 VS |
5749 | echo "$as_me:$LINENO: result: no" >&5 |
5750 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5751 | fi |
e6cc62c6 | 5752 | |
10f2d63a | 5753 | |
5005acfe | 5754 | enablestring= |
e6cc62c6 VS |
5755 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5756 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5757 | no_cache=0 |
5758 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5759 | if test "${enable_mshtmlhelp+set}" = set; then | |
5760 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5761 | |
29fd3c0c VS |
5762 | if test "$enableval" = yes; then |
5763 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5764 | else | |
5765 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5766 | fi | |
e6cc62c6 | 5767 | |
29fd3c0c | 5768 | else |
e6cc62c6 | 5769 | |
29fd3c0c VS |
5770 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5771 | if test "x$LINE" != x ; then | |
5772 | eval "DEFAULT_$LINE" | |
5773 | else | |
5774 | no_cache=1 | |
5775 | fi | |
5776 | ||
5777 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5778 | |
e6cc62c6 | 5779 | fi; |
29fd3c0c VS |
5780 | |
5781 | eval "$ac_cv_use_mshtmlhelp" | |
5782 | if test "$no_cache" != 1; then | |
5783 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5784 | fi | |
5785 | ||
5786 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5787 | echo "$as_me:$LINENO: result: yes" >&5 |
5788 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5789 | else |
e6cc62c6 VS |
5790 | echo "$as_me:$LINENO: result: no" >&5 |
5791 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5792 | fi |
e6cc62c6 | 5793 | |
29fd3c0c | 5794 | |
5005acfe | 5795 | enablestring= |
e6cc62c6 VS |
5796 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
5797 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5798 | no_cache=0 |
5799 | # Check whether --enable-html or --disable-html was given. | |
5800 | if test "${enable_html+set}" = set; then | |
5801 | enableval="$enable_html" | |
e6cc62c6 | 5802 | |
3379ed37 VZ |
5803 | if test "$enableval" = yes; then |
5804 | ac_cv_use_html='wxUSE_HTML=yes' | |
5805 | else | |
5806 | ac_cv_use_html='wxUSE_HTML=no' | |
5807 | fi | |
e6cc62c6 | 5808 | |
3379ed37 | 5809 | else |
e6cc62c6 | 5810 | |
3379ed37 VZ |
5811 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5812 | if test "x$LINE" != x ; then | |
5813 | eval "DEFAULT_$LINE" | |
5814 | else | |
5815 | no_cache=1 | |
5816 | fi | |
5817 | ||
5818 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5819 | |
e6cc62c6 | 5820 | fi; |
3379ed37 VZ |
5821 | |
5822 | eval "$ac_cv_use_html" | |
5823 | if test "$no_cache" != 1; then | |
5824 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5825 | fi | |
5826 | ||
5827 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
5828 | echo "$as_me:$LINENO: result: yes" >&5 |
5829 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5830 | else |
e6cc62c6 VS |
5831 | echo "$as_me:$LINENO: result: no" >&5 |
5832 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5833 | fi |
e6cc62c6 | 5834 | |
3379ed37 | 5835 | |
5005acfe | 5836 | enablestring= |
e6cc62c6 VS |
5837 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
5838 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5839 | no_cache=0 |
5840 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5841 | if test "${enable_htmlhelp+set}" = set; then | |
5842 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 5843 | |
3379ed37 VZ |
5844 | if test "$enableval" = yes; then |
5845 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5846 | else | |
5847 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5848 | fi | |
e6cc62c6 | 5849 | |
3379ed37 | 5850 | else |
e6cc62c6 | 5851 | |
3379ed37 VZ |
5852 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5853 | if test "x$LINE" != x ; then | |
5854 | eval "DEFAULT_$LINE" | |
5855 | else | |
5856 | no_cache=1 | |
5857 | fi | |
5858 | ||
5859 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5860 | |
e6cc62c6 | 5861 | fi; |
3379ed37 VZ |
5862 | |
5863 | eval "$ac_cv_use_htmlhelp" | |
5864 | if test "$no_cache" != 1; then | |
5865 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5866 | fi | |
5867 | ||
5868 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
5869 | echo "$as_me:$LINENO: result: yes" >&5 |
5870 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5871 | else |
e6cc62c6 VS |
5872 | echo "$as_me:$LINENO: result: no" >&5 |
5873 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5874 | fi |
e6cc62c6 | 5875 | |
3379ed37 | 5876 | |
5005acfe | 5877 | enablestring= |
e6cc62c6 VS |
5878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
5879 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5880 | no_cache=0 |
5881 | # Check whether --enable-constraints or --disable-constraints was given. | |
5882 | if test "${enable_constraints+set}" = set; then | |
5883 | enableval="$enable_constraints" | |
e6cc62c6 | 5884 | |
10f2d63a VZ |
5885 | if test "$enableval" = yes; then |
5886 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5887 | else | |
5888 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5889 | fi | |
e6cc62c6 | 5890 | |
10f2d63a | 5891 | else |
e6cc62c6 | 5892 | |
10f2d63a VZ |
5893 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5894 | if test "x$LINE" != x ; then | |
5895 | eval "DEFAULT_$LINE" | |
5896 | else | |
5897 | no_cache=1 | |
5898 | fi | |
5899 | ||
5900 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5901 | |
e6cc62c6 | 5902 | fi; |
10f2d63a VZ |
5903 | |
5904 | eval "$ac_cv_use_constraints" | |
5905 | if test "$no_cache" != 1; then | |
5906 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5907 | fi | |
5908 | ||
5909 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
5910 | echo "$as_me:$LINENO: result: yes" >&5 |
5911 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5912 | else |
e6cc62c6 VS |
5913 | echo "$as_me:$LINENO: result: no" >&5 |
5914 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5915 | fi |
e6cc62c6 | 5916 | |
10f2d63a | 5917 | |
5005acfe | 5918 | enablestring= |
e6cc62c6 VS |
5919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
5920 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5921 | no_cache=0 |
5922 | # Check whether --enable-printarch or --disable-printarch was given. | |
5923 | if test "${enable_printarch+set}" = set; then | |
5924 | enableval="$enable_printarch" | |
e6cc62c6 | 5925 | |
10f2d63a VZ |
5926 | if test "$enableval" = yes; then |
5927 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5928 | else | |
5929 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5930 | fi | |
e6cc62c6 | 5931 | |
10f2d63a | 5932 | else |
e6cc62c6 | 5933 | |
10f2d63a VZ |
5934 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5935 | if test "x$LINE" != x ; then | |
5936 | eval "DEFAULT_$LINE" | |
5937 | else | |
5938 | no_cache=1 | |
5939 | fi | |
5940 | ||
5941 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 5942 | |
e6cc62c6 | 5943 | fi; |
10f2d63a VZ |
5944 | |
5945 | eval "$ac_cv_use_printarch" | |
5946 | if test "$no_cache" != 1; then | |
5947 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5948 | fi | |
5949 | ||
5950 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5951 | echo "$as_me:$LINENO: result: yes" >&5 |
5952 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5953 | else |
e6cc62c6 VS |
5954 | echo "$as_me:$LINENO: result: no" >&5 |
5955 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5956 | fi |
e6cc62c6 | 5957 | |
10f2d63a | 5958 | |
5005acfe | 5959 | enablestring= |
e6cc62c6 VS |
5960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
5961 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
5962 | no_cache=0 |
5963 | # Check whether --enable-mdi or --disable-mdi was given. | |
5964 | if test "${enable_mdi+set}" = set; then | |
5965 | enableval="$enable_mdi" | |
e6cc62c6 | 5966 | |
10f2d63a VZ |
5967 | if test "$enableval" = yes; then |
5968 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5969 | else | |
5970 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5971 | fi | |
e6cc62c6 | 5972 | |
10f2d63a | 5973 | else |
e6cc62c6 | 5974 | |
10f2d63a VZ |
5975 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5976 | if test "x$LINE" != x ; then | |
5977 | eval "DEFAULT_$LINE" | |
5978 | else | |
5979 | no_cache=1 | |
5980 | fi | |
5981 | ||
5982 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 5983 | |
e6cc62c6 | 5984 | fi; |
10f2d63a VZ |
5985 | |
5986 | eval "$ac_cv_use_mdi" | |
5987 | if test "$no_cache" != 1; then | |
5988 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5989 | fi | |
5990 | ||
5991 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5992 | echo "$as_me:$LINENO: result: yes" >&5 |
5993 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5994 | else |
e6cc62c6 VS |
5995 | echo "$as_me:$LINENO: result: no" >&5 |
5996 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5997 | fi |
e6cc62c6 | 5998 | |
698dcdb6 | 5999 | |
5005acfe | 6000 | enablestring= |
e6cc62c6 VS |
6001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6002 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6003 | no_cache=0 |
6004 | # Check whether --enable-loggui or --disable-loggui was given. | |
6005 | if test "${enable_loggui+set}" = set; then | |
6006 | enableval="$enable_loggui" | |
e6cc62c6 | 6007 | |
1e6feb95 VZ |
6008 | if test "$enableval" = yes; then |
6009 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6010 | else | |
6011 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6012 | fi | |
e6cc62c6 | 6013 | |
1e6feb95 | 6014 | else |
e6cc62c6 | 6015 | |
1e6feb95 VZ |
6016 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6017 | if test "x$LINE" != x ; then | |
6018 | eval "DEFAULT_$LINE" | |
6019 | else | |
6020 | no_cache=1 | |
6021 | fi | |
6022 | ||
6023 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6024 | |
e6cc62c6 | 6025 | fi; |
1e6feb95 VZ |
6026 | |
6027 | eval "$ac_cv_use_loggui" | |
6028 | if test "$no_cache" != 1; then | |
6029 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6030 | fi | |
6031 | ||
6032 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6033 | echo "$as_me:$LINENO: result: yes" >&5 |
6034 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6035 | else |
e6cc62c6 VS |
6036 | echo "$as_me:$LINENO: result: no" >&5 |
6037 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6038 | fi |
e6cc62c6 | 6039 | |
1e6feb95 | 6040 | |
5005acfe | 6041 | enablestring= |
e6cc62c6 VS |
6042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6043 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6044 | no_cache=0 |
6045 | # Check whether --enable-logwin or --disable-logwin was given. | |
6046 | if test "${enable_logwin+set}" = set; then | |
6047 | enableval="$enable_logwin" | |
e6cc62c6 | 6048 | |
1e6feb95 VZ |
6049 | if test "$enableval" = yes; then |
6050 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6051 | else | |
6052 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6053 | fi | |
e6cc62c6 | 6054 | |
1e6feb95 | 6055 | else |
e6cc62c6 | 6056 | |
1e6feb95 VZ |
6057 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6058 | if test "x$LINE" != x ; then | |
6059 | eval "DEFAULT_$LINE" | |
6060 | else | |
6061 | no_cache=1 | |
6062 | fi | |
6063 | ||
6064 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6065 | |
e6cc62c6 | 6066 | fi; |
1e6feb95 VZ |
6067 | |
6068 | eval "$ac_cv_use_logwin" | |
6069 | if test "$no_cache" != 1; then | |
6070 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6071 | fi | |
6072 | ||
6073 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6074 | echo "$as_me:$LINENO: result: yes" >&5 |
6075 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6076 | else |
e6cc62c6 VS |
6077 | echo "$as_me:$LINENO: result: no" >&5 |
6078 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6079 | fi |
e6cc62c6 | 6080 | |
1e6feb95 | 6081 | |
5005acfe | 6082 | enablestring= |
e6cc62c6 VS |
6083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6084 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6085 | no_cache=0 |
6086 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6087 | if test "${enable_logdialog+set}" = set; then | |
6088 | enableval="$enable_logdialog" | |
e6cc62c6 | 6089 | |
69d27ff7 MB |
6090 | if test "$enableval" = yes; then |
6091 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6092 | else | |
6093 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6094 | fi | |
e6cc62c6 | 6095 | |
69d27ff7 | 6096 | else |
e6cc62c6 | 6097 | |
69d27ff7 MB |
6098 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6099 | if test "x$LINE" != x ; then | |
6100 | eval "DEFAULT_$LINE" | |
6101 | else | |
6102 | no_cache=1 | |
6103 | fi | |
6104 | ||
6105 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6106 | |
e6cc62c6 | 6107 | fi; |
69d27ff7 MB |
6108 | |
6109 | eval "$ac_cv_use_logdialog" | |
6110 | if test "$no_cache" != 1; then | |
6111 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6112 | fi | |
6113 | ||
6114 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6115 | echo "$as_me:$LINENO: result: yes" >&5 |
6116 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6117 | else |
e6cc62c6 VS |
6118 | echo "$as_me:$LINENO: result: no" >&5 |
6119 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6120 | fi |
e6cc62c6 | 6121 | |
8284b0c5 | 6122 | |
52127426 | 6123 | |
5005acfe | 6124 | enablestring= |
e6cc62c6 VS |
6125 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6126 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6127 | no_cache=0 |
6128 | # Check whether --enable-postscript or --disable-postscript was given. | |
6129 | if test "${enable_postscript+set}" = set; then | |
6130 | enableval="$enable_postscript" | |
e6cc62c6 | 6131 | |
10f2d63a VZ |
6132 | if test "$enableval" = yes; then |
6133 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6134 | else | |
6135 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6136 | fi | |
e6cc62c6 | 6137 | |
10f2d63a | 6138 | else |
e6cc62c6 | 6139 | |
10f2d63a VZ |
6140 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6141 | if test "x$LINE" != x ; then | |
6142 | eval "DEFAULT_$LINE" | |
6143 | else | |
6144 | no_cache=1 | |
6145 | fi | |
6146 | ||
6147 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6148 | |
e6cc62c6 | 6149 | fi; |
10f2d63a VZ |
6150 | |
6151 | eval "$ac_cv_use_postscript" | |
6152 | if test "$no_cache" != 1; then | |
6153 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6154 | fi | |
6155 | ||
6156 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6157 | echo "$as_me:$LINENO: result: yes" >&5 |
6158 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6159 | else |
e6cc62c6 VS |
6160 | echo "$as_me:$LINENO: result: no" >&5 |
6161 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6162 | fi |
e6cc62c6 | 6163 | |
8284b0c5 MB |
6164 | |
6165 | ||
52127426 | 6166 | |
8284b0c5 | 6167 | |
5005acfe | 6168 | enablestring= |
e6cc62c6 VS |
6169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6170 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6171 | no_cache=0 |
3c907f20 VZ |
6172 | # Check whether --enable-prologio or --disable-prologio was given. |
6173 | if test "${enable_prologio+set}" = set; then | |
6174 | enableval="$enable_prologio" | |
e6cc62c6 | 6175 | |
10f2d63a | 6176 | if test "$enableval" = yes; then |
3c907f20 | 6177 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6178 | else |
3c907f20 | 6179 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6180 | fi |
e6cc62c6 | 6181 | |
10f2d63a | 6182 | else |
e6cc62c6 | 6183 | |
3c907f20 | 6184 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6185 | if test "x$LINE" != x ; then |
6186 | eval "DEFAULT_$LINE" | |
6187 | else | |
6188 | no_cache=1 | |
6189 | fi | |
6190 | ||
3c907f20 | 6191 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6192 | |
e6cc62c6 | 6193 | fi; |
10f2d63a | 6194 | |
3c907f20 | 6195 | eval "$ac_cv_use_prologio" |
10f2d63a | 6196 | if test "$no_cache" != 1; then |
3c907f20 | 6197 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6198 | fi |
6199 | ||
3c907f20 | 6200 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6201 | echo "$as_me:$LINENO: result: yes" >&5 |
6202 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6203 | else |
e6cc62c6 VS |
6204 | echo "$as_me:$LINENO: result: no" >&5 |
6205 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6206 | fi |
e6cc62c6 | 6207 | |
8284b0c5 | 6208 | |
5005acfe | 6209 | enablestring= |
e6cc62c6 VS |
6210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6211 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6212 | no_cache=0 |
3c907f20 VZ |
6213 | # Check whether --enable-resources or --disable-resources was given. |
6214 | if test "${enable_resources+set}" = set; then | |
6215 | enableval="$enable_resources" | |
e6cc62c6 | 6216 | |
10f2d63a | 6217 | if test "$enableval" = yes; then |
3c907f20 | 6218 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6219 | else |
3c907f20 | 6220 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6221 | fi |
e6cc62c6 | 6222 | |
10f2d63a | 6223 | else |
e6cc62c6 | 6224 | |
3c907f20 | 6225 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6226 | if test "x$LINE" != x ; then |
6227 | eval "DEFAULT_$LINE" | |
6228 | else | |
6229 | no_cache=1 | |
6230 | fi | |
6231 | ||
3c907f20 | 6232 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6233 | |
e6cc62c6 | 6234 | fi; |
10f2d63a | 6235 | |
3c907f20 | 6236 | eval "$ac_cv_use_resources" |
10f2d63a | 6237 | if test "$no_cache" != 1; then |
3c907f20 | 6238 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6239 | fi |
6240 | ||
3c907f20 | 6241 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6242 | echo "$as_me:$LINENO: result: yes" >&5 |
6243 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6244 | else |
e6cc62c6 VS |
6245 | echo "$as_me:$LINENO: result: no" >&5 |
6246 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6247 | fi |
e6cc62c6 | 6248 | |
8284b0c5 MB |
6249 | |
6250 | ||
52127426 | 6251 | |
5005acfe | 6252 | enablestring= |
e6cc62c6 VS |
6253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6254 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6255 | no_cache=0 |
6256 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6257 | if test "${enable_clipboard+set}" = set; then | |
6258 | enableval="$enable_clipboard" | |
e6cc62c6 | 6259 | |
10f2d63a VZ |
6260 | if test "$enableval" = yes; then |
6261 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6262 | else | |
6263 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6264 | fi | |
e6cc62c6 | 6265 | |
10f2d63a | 6266 | else |
e6cc62c6 | 6267 | |
10f2d63a VZ |
6268 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6269 | if test "x$LINE" != x ; then | |
6270 | eval "DEFAULT_$LINE" | |
6271 | else | |
6272 | no_cache=1 | |
6273 | fi | |
6274 | ||
6275 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6276 | |
e6cc62c6 | 6277 | fi; |
10f2d63a VZ |
6278 | |
6279 | eval "$ac_cv_use_clipboard" | |
6280 | if test "$no_cache" != 1; then | |
6281 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6282 | fi | |
6283 | ||
6284 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6285 | echo "$as_me:$LINENO: result: yes" >&5 |
6286 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6287 | else |
e6cc62c6 VS |
6288 | echo "$as_me:$LINENO: result: no" >&5 |
6289 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6290 | fi |
e6cc62c6 | 6291 | |
10f2d63a | 6292 | |
5005acfe | 6293 | enablestring= |
e6cc62c6 VS |
6294 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6295 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6296 | no_cache=0 |
6297 | # Check whether --enable-dnd or --disable-dnd was given. | |
6298 | if test "${enable_dnd+set}" = set; then | |
6299 | enableval="$enable_dnd" | |
e6cc62c6 | 6300 | |
10f2d63a VZ |
6301 | if test "$enableval" = yes; then |
6302 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6303 | else | |
6304 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6305 | fi | |
e6cc62c6 | 6306 | |
10f2d63a | 6307 | else |
e6cc62c6 | 6308 | |
10f2d63a VZ |
6309 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6310 | if test "x$LINE" != x ; then | |
6311 | eval "DEFAULT_$LINE" | |
6312 | else | |
6313 | no_cache=1 | |
6314 | fi | |
6315 | ||
6316 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6317 | |
e6cc62c6 | 6318 | fi; |
10f2d63a VZ |
6319 | |
6320 | eval "$ac_cv_use_dnd" | |
6321 | if test "$no_cache" != 1; then | |
6322 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6323 | fi | |
6324 | ||
6325 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6326 | echo "$as_me:$LINENO: result: yes" >&5 |
6327 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6328 | else |
e6cc62c6 VS |
6329 | echo "$as_me:$LINENO: result: no" >&5 |
6330 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6331 | fi |
e6cc62c6 | 6332 | |
10f2d63a | 6333 | |
5005acfe | 6334 | enablestring= |
e6cc62c6 VS |
6335 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6336 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6337 | no_cache=0 |
6338 | # Check whether --enable-metafile or --disable-metafile was given. | |
6339 | if test "${enable_metafile+set}" = set; then | |
6340 | enableval="$enable_metafile" | |
e6cc62c6 | 6341 | |
b64f0a5f RL |
6342 | if test "$enableval" = yes; then |
6343 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6344 | else | |
6345 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6346 | fi | |
e6cc62c6 | 6347 | |
b64f0a5f | 6348 | else |
e6cc62c6 | 6349 | |
b64f0a5f RL |
6350 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6351 | if test "x$LINE" != x ; then | |
6352 | eval "DEFAULT_$LINE" | |
6353 | else | |
6354 | no_cache=1 | |
6355 | fi | |
6356 | ||
6357 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6358 | |
e6cc62c6 | 6359 | fi; |
b64f0a5f RL |
6360 | |
6361 | eval "$ac_cv_use_metafile" | |
6362 | if test "$no_cache" != 1; then | |
6363 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6364 | fi | |
6365 | ||
6366 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6367 | echo "$as_me:$LINENO: result: yes" >&5 |
6368 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6369 | else |
e6cc62c6 VS |
6370 | echo "$as_me:$LINENO: result: no" >&5 |
6371 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6372 | fi |
e6cc62c6 | 6373 | |
52127426 | 6374 | |
8284b0c5 | 6375 | |
52127426 | 6376 | |
8284b0c5 | 6377 | |
5005acfe | 6378 | enablestring= |
e6cc62c6 VS |
6379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6380 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6381 | no_cache=0 |
6382 | # Check whether --enable-controls or --disable-controls was given. | |
6383 | if test "${enable_controls+set}" = set; then | |
6384 | enableval="$enable_controls" | |
e6cc62c6 | 6385 | |
10f2d63a VZ |
6386 | if test "$enableval" = yes; then |
6387 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6388 | else | |
6389 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6390 | fi | |
e6cc62c6 | 6391 | |
10f2d63a | 6392 | else |
e6cc62c6 | 6393 | |
10f2d63a VZ |
6394 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6395 | if test "x$LINE" != x ; then | |
6396 | eval "DEFAULT_$LINE" | |
6397 | else | |
6398 | no_cache=1 | |
6399 | fi | |
6400 | ||
6401 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6402 | |
e6cc62c6 | 6403 | fi; |
10f2d63a VZ |
6404 | |
6405 | eval "$ac_cv_use_controls" | |
6406 | if test "$no_cache" != 1; then | |
6407 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6408 | fi | |
6409 | ||
6410 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6411 | echo "$as_me:$LINENO: result: yes" >&5 |
6412 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6413 | else |
e6cc62c6 VS |
6414 | echo "$as_me:$LINENO: result: no" >&5 |
6415 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6416 | fi |
e6cc62c6 | 6417 | |
10f2d63a VZ |
6418 | |
6419 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6420 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6421 | DEFAULT_wxUSE_BMPBUTTON=yes |
6422 | DEFAULT_wxUSE_BUTTON=yes | |
6423 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6424 | DEFAULT_wxUSE_CARET=yes |
6425 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6426 | DEFAULT_wxUSE_CHECKBOX=yes |
6427 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6428 | DEFAULT_wxUSE_CHOICE=yes | |
6429 | DEFAULT_wxUSE_GAUGE=yes | |
6430 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a VZ |
6431 | DEFAULT_wxUSE_IMAGLIST=yes |
6432 | DEFAULT_wxUSE_LISTBOX=yes | |
6433 | DEFAULT_wxUSE_LISTCTRL=yes | |
6434 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6435 | DEFAULT_wxUSE_RADIOBOX=yes | |
6436 | DEFAULT_wxUSE_RADIOBTN=yes | |
6437 | DEFAULT_wxUSE_SASH=yes | |
6438 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6439 | DEFAULT_wxUSE_SLIDER=yes | |
6440 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6441 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6442 | DEFAULT_wxUSE_SPLITTER=yes |
6443 | DEFAULT_wxUSE_STATBMP=yes | |
6444 | DEFAULT_wxUSE_STATBOX=yes | |
6445 | DEFAULT_wxUSE_STATLINE=yes | |
6446 | DEFAULT_wxUSE_STATUSBAR=yes | |
6447 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6448 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6449 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6450 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6451 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6452 | DEFAULT_wxUSE_TOOLTIPS=yes |
6453 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6454 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6455 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6456 | elif test "$wxUSE_CONTROLS" = "no"; then |
6457 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6458 | DEFAULT_wxUSE_BMPBUTTON=no |
6459 | DEFAULT_wxUSE_BUTTON=no | |
6460 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6461 | DEFAULT_wxUSE_CARET=no |
6462 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6463 | DEFAULT_wxUSE_CHECKBOX=no |
6464 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6465 | DEFAULT_wxUSE_CHOICE=no | |
6466 | DEFAULT_wxUSE_GAUGE=no | |
6467 | DEFAULT_wxUSE_GRID=no | |
10f2d63a VZ |
6468 | DEFAULT_wxUSE_IMAGLIST=no |
6469 | DEFAULT_wxUSE_LISTBOX=no | |
6470 | DEFAULT_wxUSE_LISTCTRL=no | |
6471 | DEFAULT_wxUSE_NOTEBOOK=no | |
6472 | DEFAULT_wxUSE_RADIOBOX=no | |
6473 | DEFAULT_wxUSE_RADIOBTN=no | |
6474 | DEFAULT_wxUSE_SASH=no | |
6475 | DEFAULT_wxUSE_SCROLLBAR=no | |
6476 | DEFAULT_wxUSE_SLIDER=no | |
6477 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6478 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6479 | DEFAULT_wxUSE_SPLITTER=no |
6480 | DEFAULT_wxUSE_STATBMP=no | |
6481 | DEFAULT_wxUSE_STATBOX=no | |
6482 | DEFAULT_wxUSE_STATLINE=no | |
6483 | DEFAULT_wxUSE_STATUSBAR=no | |
6484 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6485 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6486 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6487 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6488 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6489 | DEFAULT_wxUSE_TOOLTIPS=no |
6490 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6491 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6492 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6493 | fi |
6494 | ||
ac0c4cc3 DE |
6495 | ## FIXME: This is a blatant hack |
6496 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6497 | wxUSE_PRINTING_ARCHITECTURE=no | |
6498 | wxUSE_HELP=no | |
6499 | wxUSE_CLIPBOARD=no | |
6500 | wxUSE_DRAG_AND_DROP=no | |
6501 | wxUSE_DATAOBJ=no | |
8b389fab DE |
6502 | # Generic notebook requires tab dialog |
6503 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6504 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 DE |
6505 | DEFAULT_wxUSE_GAUGE=no |
6506 | DEFAULT_wxUSE_SCROLLBAR=no | |
ac0c4cc3 DE |
6507 | DEFAULT_wxUSE_COMBOBOX=no |
6508 | DEFAULT_wxUSE_CALCTRL=no | |
6509 | DEFAULT_wxUSE_SPINBTN=no | |
6510 | DEFAULT_wxUSE_SPINCTRL=no | |
6511 | DEFAULT_wxUSE_TOOLTIPS=no | |
ac0c4cc3 DE |
6512 | DEFAULT_wxUSE_DRAGIMAGE=no |
6513 | DEFAULT_wxUSE_FINDREPLDLG=no | |
6514 | DEFAULT_wxUSE_FONTDLG=no | |
6515 | DEFAULT_wxUSE_GRID=no | |
ac0c4cc3 DE |
6516 | DEFAULT_wxUSE_NUMBERDLG=no |
6517 | DEFAULT_wxUSE_PROGRESSDLG=no | |
ac0c4cc3 DE |
6518 | DEFAULT_wxUSE_SASH=no |
6519 | DEFAULT_wxUSE_SPLITTER=no | |
6520 | DEFAULT_wxUSE_WIZARDDLG=no | |
6521 | DEFAULT_wxUSE_SPLITTER=no | |
6522 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
ac0c4cc3 DE |
6523 | fi |
6524 | ||
8284b0c5 | 6525 | |
5005acfe | 6526 | enablestring= |
e6cc62c6 VS |
6527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6528 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6529 | no_cache=0 |
6530 | # Check whether --enable-accel or --disable-accel was given. | |
6531 | if test "${enable_accel+set}" = set; then | |
6532 | enableval="$enable_accel" | |
e6cc62c6 | 6533 | |
10f2d63a VZ |
6534 | if test "$enableval" = yes; then |
6535 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6536 | else | |
6537 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6538 | fi | |
e6cc62c6 | 6539 | |
10f2d63a | 6540 | else |
e6cc62c6 | 6541 | |
10f2d63a VZ |
6542 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6543 | if test "x$LINE" != x ; then | |
6544 | eval "DEFAULT_$LINE" | |
6545 | else | |
6546 | no_cache=1 | |
6547 | fi | |
6548 | ||
6549 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6550 | |
e6cc62c6 | 6551 | fi; |
10f2d63a VZ |
6552 | |
6553 | eval "$ac_cv_use_accel" | |
6554 | if test "$no_cache" != 1; then | |
6555 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6556 | fi | |
6557 | ||
6558 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6559 | echo "$as_me:$LINENO: result: yes" >&5 |
6560 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6561 | else |
e6cc62c6 VS |
6562 | echo "$as_me:$LINENO: result: no" >&5 |
6563 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6564 | fi |
e6cc62c6 | 6565 | |
10f2d63a | 6566 | |
5005acfe | 6567 | enablestring= |
e6cc62c6 VS |
6568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6569 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6570 | no_cache=0 |
1e6feb95 VZ |
6571 | # Check whether --enable-button or --disable-button was given. |
6572 | if test "${enable_button+set}" = set; then | |
6573 | enableval="$enable_button" | |
e6cc62c6 | 6574 | |
10f2d63a | 6575 | if test "$enableval" = yes; then |
1e6feb95 | 6576 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6577 | else |
1e6feb95 | 6578 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6579 | fi |
e6cc62c6 | 6580 | |
10f2d63a | 6581 | else |
e6cc62c6 | 6582 | |
1e6feb95 | 6583 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6584 | if test "x$LINE" != x ; then |
6585 | eval "DEFAULT_$LINE" | |
6586 | else | |
6587 | no_cache=1 | |
6588 | fi | |
6589 | ||
1e6feb95 | 6590 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6591 | |
e6cc62c6 | 6592 | fi; |
10f2d63a | 6593 | |
1e6feb95 | 6594 | eval "$ac_cv_use_button" |
10f2d63a | 6595 | if test "$no_cache" != 1; then |
1e6feb95 | 6596 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6597 | fi |
6598 | ||
1e6feb95 | 6599 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6600 | echo "$as_me:$LINENO: result: yes" >&5 |
6601 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6602 | else |
e6cc62c6 VS |
6603 | echo "$as_me:$LINENO: result: no" >&5 |
6604 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6605 | fi |
e6cc62c6 | 6606 | |
10f2d63a | 6607 | |
5005acfe | 6608 | enablestring= |
e6cc62c6 VS |
6609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6610 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6611 | no_cache=0 |
6612 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6613 | if test "${enable_bmpbutton+set}" = set; then | |
6614 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6615 | |
10f2d63a VZ |
6616 | if test "$enableval" = yes; then |
6617 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6618 | else | |
6619 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6620 | fi | |
e6cc62c6 | 6621 | |
10f2d63a | 6622 | else |
e6cc62c6 | 6623 | |
10f2d63a VZ |
6624 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6625 | if test "x$LINE" != x ; then | |
6626 | eval "DEFAULT_$LINE" | |
6627 | else | |
6628 | no_cache=1 | |
6629 | fi | |
6630 | ||
6631 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6632 | |
e6cc62c6 | 6633 | fi; |
10f2d63a VZ |
6634 | |
6635 | eval "$ac_cv_use_bmpbutton" | |
6636 | if test "$no_cache" != 1; then | |
6637 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6638 | fi | |
6639 | ||
6640 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6641 | echo "$as_me:$LINENO: result: yes" >&5 |
6642 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6643 | else |
e6cc62c6 VS |
6644 | echo "$as_me:$LINENO: result: no" >&5 |
6645 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6646 | fi |
e6cc62c6 | 6647 | |
10f2d63a | 6648 | |
5005acfe | 6649 | enablestring= |
e6cc62c6 VS |
6650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6651 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6652 | no_cache=0 |
6653 | # Check whether --enable-calendar or --disable-calendar was given. | |
6654 | if test "${enable_calendar+set}" = set; then | |
6655 | enableval="$enable_calendar" | |
e6cc62c6 | 6656 | |
1e6feb95 VZ |
6657 | if test "$enableval" = yes; then |
6658 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6659 | else | |
6660 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6661 | fi | |
e6cc62c6 | 6662 | |
1e6feb95 | 6663 | else |
e6cc62c6 | 6664 | |
1e6feb95 VZ |
6665 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6666 | if test "x$LINE" != x ; then | |
6667 | eval "DEFAULT_$LINE" | |
6668 | else | |
6669 | no_cache=1 | |
6670 | fi | |
6671 | ||
6672 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6673 | |
e6cc62c6 | 6674 | fi; |
1e6feb95 VZ |
6675 | |
6676 | eval "$ac_cv_use_calendar" | |
6677 | if test "$no_cache" != 1; then | |
6678 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6679 | fi | |
6680 | ||
6681 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6682 | echo "$as_me:$LINENO: result: yes" >&5 |
6683 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6684 | else |
e6cc62c6 VS |
6685 | echo "$as_me:$LINENO: result: no" >&5 |
6686 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6687 | fi |
e6cc62c6 | 6688 | |
1e6feb95 | 6689 | |
5005acfe | 6690 | enablestring= |
e6cc62c6 VS |
6691 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6692 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6693 | no_cache=0 |
6694 | # Check whether --enable-caret or --disable-caret was given. | |
6695 | if test "${enable_caret+set}" = set; then | |
6696 | enableval="$enable_caret" | |
e6cc62c6 | 6697 | |
1e6feb95 VZ |
6698 | if test "$enableval" = yes; then |
6699 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6700 | else | |
6701 | ac_cv_use_caret='wxUSE_CARET=no' | |
6702 | fi | |
e6cc62c6 | 6703 | |
1e6feb95 | 6704 | else |
e6cc62c6 | 6705 | |
1e6feb95 VZ |
6706 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6707 | if test "x$LINE" != x ; then | |
6708 | eval "DEFAULT_$LINE" | |
6709 | else | |
6710 | no_cache=1 | |
6711 | fi | |
6712 | ||
6713 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6714 | |
e6cc62c6 | 6715 | fi; |
1e6feb95 VZ |
6716 | |
6717 | eval "$ac_cv_use_caret" | |
6718 | if test "$no_cache" != 1; then | |
6719 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6720 | fi | |
6721 | ||
6722 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6723 | echo "$as_me:$LINENO: result: yes" >&5 |
6724 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6725 | else |
e6cc62c6 VS |
6726 | echo "$as_me:$LINENO: result: no" >&5 |
6727 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6728 | fi |
e6cc62c6 | 6729 | |
1e6feb95 | 6730 | |
5005acfe | 6731 | enablestring= |
e6cc62c6 VS |
6732 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6733 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6734 | no_cache=0 |
6735 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6736 | if test "${enable_checkbox+set}" = set; then | |
6737 | enableval="$enable_checkbox" | |
e6cc62c6 | 6738 | |
10f2d63a VZ |
6739 | if test "$enableval" = yes; then |
6740 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6741 | else | |
6742 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6743 | fi | |
e6cc62c6 | 6744 | |
10f2d63a | 6745 | else |
e6cc62c6 | 6746 | |
10f2d63a VZ |
6747 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6748 | if test "x$LINE" != x ; then | |
6749 | eval "DEFAULT_$LINE" | |
6750 | else | |
6751 | no_cache=1 | |
6752 | fi | |
6753 | ||
6754 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6755 | |
e6cc62c6 | 6756 | fi; |
10f2d63a VZ |
6757 | |
6758 | eval "$ac_cv_use_checkbox" | |
6759 | if test "$no_cache" != 1; then | |
6760 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6761 | fi | |
6762 | ||
6763 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6764 | echo "$as_me:$LINENO: result: yes" >&5 |
6765 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6766 | else |
e6cc62c6 VS |
6767 | echo "$as_me:$LINENO: result: no" >&5 |
6768 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6769 | fi |
e6cc62c6 | 6770 | |
10f2d63a | 6771 | |
5005acfe | 6772 | enablestring= |
e6cc62c6 VS |
6773 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6774 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6775 | no_cache=0 |
6776 | # Check whether --enable-checklst or --disable-checklst was given. | |
6777 | if test "${enable_checklst+set}" = set; then | |
6778 | enableval="$enable_checklst" | |
e6cc62c6 | 6779 | |
10f2d63a VZ |
6780 | if test "$enableval" = yes; then |
6781 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6782 | else | |
6783 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6784 | fi | |
e6cc62c6 | 6785 | |
10f2d63a | 6786 | else |
e6cc62c6 | 6787 | |
10f2d63a VZ |
6788 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6789 | if test "x$LINE" != x ; then | |
6790 | eval "DEFAULT_$LINE" | |
6791 | else | |
6792 | no_cache=1 | |
6793 | fi | |
6794 | ||
6795 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6796 | |
e6cc62c6 | 6797 | fi; |
10f2d63a VZ |
6798 | |
6799 | eval "$ac_cv_use_checklst" | |
6800 | if test "$no_cache" != 1; then | |
6801 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6802 | fi | |
6803 | ||
6804 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6805 | echo "$as_me:$LINENO: result: yes" >&5 |
6806 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6807 | else |
e6cc62c6 VS |
6808 | echo "$as_me:$LINENO: result: no" >&5 |
6809 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6810 | fi |
e6cc62c6 | 6811 | |
10f2d63a | 6812 | |
5005acfe | 6813 | enablestring= |
e6cc62c6 VS |
6814 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
6815 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6816 | no_cache=0 |
6817 | # Check whether --enable-choice or --disable-choice was given. | |
6818 | if test "${enable_choice+set}" = set; then | |
6819 | enableval="$enable_choice" | |
e6cc62c6 | 6820 | |
10f2d63a VZ |
6821 | if test "$enableval" = yes; then |
6822 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6823 | else | |
6824 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6825 | fi | |
e6cc62c6 | 6826 | |
10f2d63a | 6827 | else |
e6cc62c6 | 6828 | |
10f2d63a VZ |
6829 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6830 | if test "x$LINE" != x ; then | |
6831 | eval "DEFAULT_$LINE" | |
6832 | else | |
6833 | no_cache=1 | |
6834 | fi | |
6835 | ||
6836 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6837 | |
e6cc62c6 | 6838 | fi; |
10f2d63a VZ |
6839 | |
6840 | eval "$ac_cv_use_choice" | |
6841 | if test "$no_cache" != 1; then | |
6842 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6843 | fi | |
6844 | ||
6845 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
6846 | echo "$as_me:$LINENO: result: yes" >&5 |
6847 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6848 | else |
e6cc62c6 VS |
6849 | echo "$as_me:$LINENO: result: no" >&5 |
6850 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6851 | fi |
e6cc62c6 | 6852 | |
10f2d63a | 6853 | |
5005acfe | 6854 | enablestring= |
e6cc62c6 VS |
6855 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
6856 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6857 | no_cache=0 |
6858 | # Check whether --enable-combobox or --disable-combobox was given. | |
6859 | if test "${enable_combobox+set}" = set; then | |
6860 | enableval="$enable_combobox" | |
e6cc62c6 | 6861 | |
10f2d63a VZ |
6862 | if test "$enableval" = yes; then |
6863 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6864 | else | |
6865 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6866 | fi | |
e6cc62c6 | 6867 | |
10f2d63a | 6868 | else |
e6cc62c6 | 6869 | |
10f2d63a VZ |
6870 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6871 | if test "x$LINE" != x ; then | |
6872 | eval "DEFAULT_$LINE" | |
6873 | else | |
6874 | no_cache=1 | |
6875 | fi | |
6876 | ||
6877 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6878 | |
e6cc62c6 | 6879 | fi; |
10f2d63a VZ |
6880 | |
6881 | eval "$ac_cv_use_combobox" | |
6882 | if test "$no_cache" != 1; then | |
6883 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6884 | fi | |
6885 | ||
6886 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
6887 | echo "$as_me:$LINENO: result: yes" >&5 |
6888 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6889 | else |
e6cc62c6 VS |
6890 | echo "$as_me:$LINENO: result: no" >&5 |
6891 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6892 | fi |
e6cc62c6 | 6893 | |
10f2d63a | 6894 | |
da494b40 | 6895 | enablestring= |
e6cc62c6 VS |
6896 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
6897 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
6898 | no_cache=0 |
6899 | # Check whether --enable-display or --disable-display was given. | |
6900 | if test "${enable_display+set}" = set; then | |
6901 | enableval="$enable_display" | |
e6cc62c6 | 6902 | |
da494b40 MB |
6903 | if test "$enableval" = yes; then |
6904 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6905 | else | |
6906 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6907 | fi | |
e6cc62c6 | 6908 | |
da494b40 | 6909 | else |
e6cc62c6 | 6910 | |
da494b40 MB |
6911 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
6912 | if test "x$LINE" != x ; then | |
6913 | eval "DEFAULT_$LINE" | |
6914 | else | |
6915 | no_cache=1 | |
6916 | fi | |
6917 | ||
6918 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 6919 | |
e6cc62c6 | 6920 | fi; |
da494b40 MB |
6921 | |
6922 | eval "$ac_cv_use_display" | |
6923 | if test "$no_cache" != 1; then | |
6924 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6925 | fi | |
6926 | ||
6927 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
6928 | echo "$as_me:$LINENO: result: yes" >&5 |
6929 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 6930 | else |
e6cc62c6 VS |
6931 | echo "$as_me:$LINENO: result: no" >&5 |
6932 | echo "${ECHO_T}no" >&6 | |
da494b40 | 6933 | fi |
e6cc62c6 | 6934 | |
da494b40 | 6935 | |
5005acfe | 6936 | enablestring= |
e6cc62c6 VS |
6937 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
6938 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6939 | no_cache=0 |
6940 | # Check whether --enable-gauge or --disable-gauge was given. | |
6941 | if test "${enable_gauge+set}" = set; then | |
6942 | enableval="$enable_gauge" | |
e6cc62c6 | 6943 | |
10f2d63a VZ |
6944 | if test "$enableval" = yes; then |
6945 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6946 | else | |
6947 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6948 | fi | |
e6cc62c6 | 6949 | |
10f2d63a | 6950 | else |
e6cc62c6 | 6951 | |
10f2d63a VZ |
6952 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6953 | if test "x$LINE" != x ; then | |
6954 | eval "DEFAULT_$LINE" | |
6955 | else | |
6956 | no_cache=1 | |
6957 | fi | |
6958 | ||
6959 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 6960 | |
e6cc62c6 | 6961 | fi; |
10f2d63a VZ |
6962 | |
6963 | eval "$ac_cv_use_gauge" | |
6964 | if test "$no_cache" != 1; then | |
6965 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6966 | fi | |
6967 | ||
6968 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
6969 | echo "$as_me:$LINENO: result: yes" >&5 |
6970 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6971 | else |
e6cc62c6 VS |
6972 | echo "$as_me:$LINENO: result: no" >&5 |
6973 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6974 | fi |
e6cc62c6 | 6975 | |
10f2d63a | 6976 | |
5005acfe | 6977 | enablestring= |
e6cc62c6 VS |
6978 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
6979 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
6980 | no_cache=0 |
6981 | # Check whether --enable-grid or --disable-grid was given. | |
6982 | if test "${enable_grid+set}" = set; then | |
6983 | enableval="$enable_grid" | |
e6cc62c6 | 6984 | |
10f2d63a VZ |
6985 | if test "$enableval" = yes; then |
6986 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6987 | else | |
6988 | ac_cv_use_grid='wxUSE_GRID=no' | |
6989 | fi | |
e6cc62c6 | 6990 | |
10f2d63a | 6991 | else |
e6cc62c6 | 6992 | |
10f2d63a VZ |
6993 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6994 | if test "x$LINE" != x ; then | |
6995 | eval "DEFAULT_$LINE" | |
6996 | else | |
6997 | no_cache=1 | |
6998 | fi | |
6999 | ||
7000 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7001 | |
e6cc62c6 | 7002 | fi; |
10f2d63a VZ |
7003 | |
7004 | eval "$ac_cv_use_grid" | |
7005 | if test "$no_cache" != 1; then | |
7006 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7007 | fi | |
7008 | ||
7009 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7010 | echo "$as_me:$LINENO: result: yes" >&5 |
7011 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7012 | else |
e6cc62c6 VS |
7013 | echo "$as_me:$LINENO: result: no" >&5 |
7014 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7015 | fi |
e6cc62c6 | 7016 | |
10f2d63a | 7017 | |
5005acfe | 7018 | enablestring= |
e6cc62c6 VS |
7019 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7020 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7021 | no_cache=0 |
7022 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7023 | if test "${enable_imaglist+set}" = set; then | |
7024 | enableval="$enable_imaglist" | |
e6cc62c6 | 7025 | |
10f2d63a VZ |
7026 | if test "$enableval" = yes; then |
7027 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7028 | else | |
7029 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7030 | fi | |
e6cc62c6 | 7031 | |
10f2d63a | 7032 | else |
e6cc62c6 | 7033 | |
10f2d63a VZ |
7034 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7035 | if test "x$LINE" != x ; then | |
7036 | eval "DEFAULT_$LINE" | |
7037 | else | |
7038 | no_cache=1 | |
7039 | fi | |
7040 | ||
7041 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7042 | |
e6cc62c6 | 7043 | fi; |
10f2d63a VZ |
7044 | |
7045 | eval "$ac_cv_use_imaglist" | |
7046 | if test "$no_cache" != 1; then | |
7047 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7048 | fi | |
7049 | ||
7050 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7051 | echo "$as_me:$LINENO: result: yes" >&5 |
7052 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7053 | else |
e6cc62c6 VS |
7054 | echo "$as_me:$LINENO: result: no" >&5 |
7055 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7056 | fi |
e6cc62c6 | 7057 | |
10f2d63a | 7058 | |
5005acfe | 7059 | enablestring= |
e6cc62c6 VS |
7060 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7061 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7062 | no_cache=0 |
7063 | # Check whether --enable-listbox or --disable-listbox was given. | |
7064 | if test "${enable_listbox+set}" = set; then | |
7065 | enableval="$enable_listbox" | |
e6cc62c6 | 7066 | |
10f2d63a VZ |
7067 | if test "$enableval" = yes; then |
7068 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7069 | else | |
7070 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7071 | fi | |
e6cc62c6 | 7072 | |
10f2d63a | 7073 | else |
e6cc62c6 | 7074 | |
10f2d63a VZ |
7075 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7076 | if test "x$LINE" != x ; then | |
7077 | eval "DEFAULT_$LINE" | |
7078 | else | |
7079 | no_cache=1 | |
7080 | fi | |
7081 | ||
7082 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7083 | |
e6cc62c6 | 7084 | fi; |
10f2d63a VZ |
7085 | |
7086 | eval "$ac_cv_use_listbox" | |
7087 | if test "$no_cache" != 1; then | |
7088 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7089 | fi | |
7090 | ||
7091 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7092 | echo "$as_me:$LINENO: result: yes" >&5 |
7093 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7094 | else |
e6cc62c6 VS |
7095 | echo "$as_me:$LINENO: result: no" >&5 |
7096 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7097 | fi |
e6cc62c6 | 7098 | |
10f2d63a | 7099 | |
5005acfe | 7100 | enablestring= |
e6cc62c6 VS |
7101 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7102 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7103 | no_cache=0 |
7104 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7105 | if test "${enable_listctrl+set}" = set; then | |
7106 | enableval="$enable_listctrl" | |
e6cc62c6 | 7107 | |
10f2d63a VZ |
7108 | if test "$enableval" = yes; then |
7109 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7110 | else | |
7111 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7112 | fi | |
e6cc62c6 | 7113 | |
10f2d63a | 7114 | else |
e6cc62c6 | 7115 | |
10f2d63a VZ |
7116 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7117 | if test "x$LINE" != x ; then | |
7118 | eval "DEFAULT_$LINE" | |
7119 | else | |
7120 | no_cache=1 | |
7121 | fi | |
7122 | ||
7123 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7124 | |
e6cc62c6 | 7125 | fi; |
10f2d63a VZ |
7126 | |
7127 | eval "$ac_cv_use_listctrl" | |
7128 | if test "$no_cache" != 1; then | |
7129 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7130 | fi | |
7131 | ||
7132 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7133 | echo "$as_me:$LINENO: result: yes" >&5 |
7134 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7135 | else |
e6cc62c6 VS |
7136 | echo "$as_me:$LINENO: result: no" >&5 |
7137 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7138 | fi |
e6cc62c6 | 7139 | |
10f2d63a | 7140 | |
5005acfe | 7141 | enablestring= |
e6cc62c6 VS |
7142 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7143 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7144 | no_cache=0 |
7145 | # Check whether --enable-notebook or --disable-notebook was given. | |
7146 | if test "${enable_notebook+set}" = set; then | |
7147 | enableval="$enable_notebook" | |
e6cc62c6 | 7148 | |
10f2d63a VZ |
7149 | if test "$enableval" = yes; then |
7150 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7151 | else | |
7152 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7153 | fi | |
e6cc62c6 | 7154 | |
10f2d63a | 7155 | else |
e6cc62c6 | 7156 | |
10f2d63a VZ |
7157 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7158 | if test "x$LINE" != x ; then | |
7159 | eval "DEFAULT_$LINE" | |
7160 | else | |
7161 | no_cache=1 | |
7162 | fi | |
7163 | ||
7164 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7165 | |
e6cc62c6 | 7166 | fi; |
10f2d63a VZ |
7167 | |
7168 | eval "$ac_cv_use_notebook" | |
7169 | if test "$no_cache" != 1; then | |
7170 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7171 | fi | |
7172 | ||
7173 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7174 | echo "$as_me:$LINENO: result: yes" >&5 |
7175 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7176 | else |
e6cc62c6 VS |
7177 | echo "$as_me:$LINENO: result: no" >&5 |
7178 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7179 | fi |
e6cc62c6 | 7180 | |
10f2d63a | 7181 | |
5005acfe | 7182 | enablestring= |
e6cc62c6 VS |
7183 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7184 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7185 | no_cache=0 |
7186 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7187 | if test "${enable_radiobox+set}" = set; then | |
7188 | enableval="$enable_radiobox" | |
e6cc62c6 | 7189 | |
10f2d63a VZ |
7190 | if test "$enableval" = yes; then |
7191 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7192 | else | |
7193 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7194 | fi | |
e6cc62c6 | 7195 | |
10f2d63a | 7196 | else |
e6cc62c6 | 7197 | |
10f2d63a VZ |
7198 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7199 | if test "x$LINE" != x ; then | |
7200 | eval "DEFAULT_$LINE" | |
7201 | else | |
7202 | no_cache=1 | |
7203 | fi | |
7204 | ||
7205 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7206 | |
e6cc62c6 | 7207 | fi; |
10f2d63a VZ |
7208 | |
7209 | eval "$ac_cv_use_radiobox" | |
7210 | if test "$no_cache" != 1; then | |
7211 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7212 | fi | |
7213 | ||
7214 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7215 | echo "$as_me:$LINENO: result: yes" >&5 |
7216 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7217 | else |
e6cc62c6 VS |
7218 | echo "$as_me:$LINENO: result: no" >&5 |
7219 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7220 | fi |
e6cc62c6 | 7221 | |
10f2d63a | 7222 | |
5005acfe | 7223 | enablestring= |
e6cc62c6 VS |
7224 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7225 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7226 | no_cache=0 |
7227 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7228 | if test "${enable_radiobtn+set}" = set; then | |
7229 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7230 | |
10f2d63a VZ |
7231 | if test "$enableval" = yes; then |
7232 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7233 | else | |
7234 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7235 | fi | |
e6cc62c6 | 7236 | |
10f2d63a | 7237 | else |
e6cc62c6 | 7238 | |
10f2d63a VZ |
7239 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7240 | if test "x$LINE" != x ; then | |
7241 | eval "DEFAULT_$LINE" | |
7242 | else | |
7243 | no_cache=1 | |
7244 | fi | |
7245 | ||
7246 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7247 | |
e6cc62c6 | 7248 | fi; |
10f2d63a VZ |
7249 | |
7250 | eval "$ac_cv_use_radiobtn" | |
7251 | if test "$no_cache" != 1; then | |
7252 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7253 | fi | |
7254 | ||
7255 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7256 | echo "$as_me:$LINENO: result: yes" >&5 |
7257 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7258 | else |
e6cc62c6 VS |
7259 | echo "$as_me:$LINENO: result: no" >&5 |
7260 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7261 | fi |
e6cc62c6 | 7262 | |
10f2d63a | 7263 | |
5005acfe | 7264 | enablestring= |
e6cc62c6 VS |
7265 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7266 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7267 | no_cache=0 |
7268 | # Check whether --enable-sash or --disable-sash was given. | |
7269 | if test "${enable_sash+set}" = set; then | |
7270 | enableval="$enable_sash" | |
e6cc62c6 | 7271 | |
10f2d63a VZ |
7272 | if test "$enableval" = yes; then |
7273 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7274 | else | |
7275 | ac_cv_use_sash='wxUSE_SASH=no' | |
7276 | fi | |
e6cc62c6 | 7277 | |
10f2d63a | 7278 | else |
e6cc62c6 | 7279 | |
10f2d63a VZ |
7280 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7281 | if test "x$LINE" != x ; then | |
7282 | eval "DEFAULT_$LINE" | |
7283 | else | |
7284 | no_cache=1 | |
7285 | fi | |
7286 | ||
7287 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7288 | |
e6cc62c6 | 7289 | fi; |
10f2d63a VZ |
7290 | |
7291 | eval "$ac_cv_use_sash" | |
7292 | if test "$no_cache" != 1; then | |
7293 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7294 | fi | |
7295 | ||
7296 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7297 | echo "$as_me:$LINENO: result: yes" >&5 |
7298 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7299 | else |
e6cc62c6 VS |
7300 | echo "$as_me:$LINENO: result: no" >&5 |
7301 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7302 | fi |
e6cc62c6 | 7303 | |
10f2d63a | 7304 | |
5005acfe | 7305 | enablestring= |
e6cc62c6 VS |
7306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7307 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7308 | no_cache=0 |
7309 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7310 | if test "${enable_scrollbar+set}" = set; then | |
7311 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7312 | |
10f2d63a VZ |
7313 | if test "$enableval" = yes; then |
7314 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7315 | else | |
7316 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7317 | fi | |
e6cc62c6 | 7318 | |
10f2d63a | 7319 | else |
e6cc62c6 | 7320 | |
10f2d63a VZ |
7321 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7322 | if test "x$LINE" != x ; then | |
7323 | eval "DEFAULT_$LINE" | |
7324 | else | |
7325 | no_cache=1 | |
7326 | fi | |
7327 | ||
7328 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7329 | |
e6cc62c6 | 7330 | fi; |
10f2d63a VZ |
7331 | |
7332 | eval "$ac_cv_use_scrollbar" | |
7333 | if test "$no_cache" != 1; then | |
7334 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7335 | fi | |
7336 | ||
7337 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7338 | echo "$as_me:$LINENO: result: yes" >&5 |
7339 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7340 | else |
e6cc62c6 VS |
7341 | echo "$as_me:$LINENO: result: no" >&5 |
7342 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7343 | fi |
e6cc62c6 | 7344 | |
10f2d63a | 7345 | |
5005acfe | 7346 | enablestring= |
e6cc62c6 VS |
7347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7348 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7349 | no_cache=0 |
7350 | # Check whether --enable-slider or --disable-slider was given. | |
7351 | if test "${enable_slider+set}" = set; then | |
7352 | enableval="$enable_slider" | |
e6cc62c6 | 7353 | |
10f2d63a VZ |
7354 | if test "$enableval" = yes; then |
7355 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7356 | else | |
7357 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7358 | fi | |
e6cc62c6 | 7359 | |
10f2d63a | 7360 | else |
e6cc62c6 | 7361 | |
10f2d63a VZ |
7362 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7363 | if test "x$LINE" != x ; then | |
7364 | eval "DEFAULT_$LINE" | |
7365 | else | |
7366 | no_cache=1 | |
7367 | fi | |
7368 | ||
7369 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7370 | |
e6cc62c6 | 7371 | fi; |
10f2d63a VZ |
7372 | |
7373 | eval "$ac_cv_use_slider" | |
7374 | if test "$no_cache" != 1; then | |
7375 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7376 | fi | |
7377 | ||
7378 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7379 | echo "$as_me:$LINENO: result: yes" >&5 |
7380 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7381 | else |
e6cc62c6 VS |
7382 | echo "$as_me:$LINENO: result: no" >&5 |
7383 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7384 | fi |
e6cc62c6 | 7385 | |
10f2d63a | 7386 | |
5005acfe | 7387 | enablestring= |
e6cc62c6 VS |
7388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7389 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7390 | no_cache=0 |
7391 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7392 | if test "${enable_spinbtn+set}" = set; then | |
7393 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7394 | |
10f2d63a VZ |
7395 | if test "$enableval" = yes; then |
7396 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7397 | else | |
7398 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7399 | fi | |
e6cc62c6 | 7400 | |
10f2d63a | 7401 | else |
e6cc62c6 | 7402 | |
10f2d63a VZ |
7403 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7404 | if test "x$LINE" != x ; then | |
7405 | eval "DEFAULT_$LINE" | |
7406 | else | |
7407 | no_cache=1 | |
7408 | fi | |
7409 | ||
7410 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7411 | |
e6cc62c6 | 7412 | fi; |
10f2d63a VZ |
7413 | |
7414 | eval "$ac_cv_use_spinbtn" | |
7415 | if test "$no_cache" != 1; then | |
7416 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7417 | fi | |
7418 | ||
7419 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7420 | echo "$as_me:$LINENO: result: yes" >&5 |
7421 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7422 | else |
e6cc62c6 VS |
7423 | echo "$as_me:$LINENO: result: no" >&5 |
7424 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7425 | fi |
e6cc62c6 | 7426 | |
10f2d63a | 7427 | |
5005acfe | 7428 | enablestring= |
e6cc62c6 VS |
7429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7430 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7431 | no_cache=0 |
7432 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7433 | if test "${enable_spinctrl+set}" = set; then | |
7434 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7435 | |
56cfaa52 RR |
7436 | if test "$enableval" = yes; then |
7437 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7438 | else | |
7439 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7440 | fi | |
e6cc62c6 | 7441 | |
56cfaa52 | 7442 | else |
e6cc62c6 | 7443 | |
56cfaa52 RR |
7444 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7445 | if test "x$LINE" != x ; then | |
7446 | eval "DEFAULT_$LINE" | |
7447 | else | |
7448 | no_cache=1 | |
7449 | fi | |
7450 | ||
7451 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7452 | |
e6cc62c6 | 7453 | fi; |
56cfaa52 RR |
7454 | |
7455 | eval "$ac_cv_use_spinctrl" | |
7456 | if test "$no_cache" != 1; then | |
7457 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7458 | fi | |
7459 | ||
7460 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7461 | echo "$as_me:$LINENO: result: yes" >&5 |
7462 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7463 | else |
e6cc62c6 VS |
7464 | echo "$as_me:$LINENO: result: no" >&5 |
7465 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7466 | fi |
e6cc62c6 | 7467 | |
56cfaa52 | 7468 | |
5005acfe | 7469 | enablestring= |
e6cc62c6 VS |
7470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7471 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7472 | no_cache=0 |
7473 | # Check whether --enable-splitter or --disable-splitter was given. | |
7474 | if test "${enable_splitter+set}" = set; then | |
7475 | enableval="$enable_splitter" | |
e6cc62c6 | 7476 | |
10f2d63a VZ |
7477 | if test "$enableval" = yes; then |
7478 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7479 | else | |
7480 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7481 | fi | |
e6cc62c6 | 7482 | |
10f2d63a | 7483 | else |
e6cc62c6 | 7484 | |
10f2d63a VZ |
7485 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7486 | if test "x$LINE" != x ; then | |
7487 | eval "DEFAULT_$LINE" | |
7488 | else | |
7489 | no_cache=1 | |
7490 | fi | |
7491 | ||
7492 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7493 | |
e6cc62c6 | 7494 | fi; |
10f2d63a VZ |
7495 | |
7496 | eval "$ac_cv_use_splitter" | |
7497 | if test "$no_cache" != 1; then | |
7498 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7499 | fi | |
7500 | ||
7501 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7502 | echo "$as_me:$LINENO: result: yes" >&5 |
7503 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7504 | else |
e6cc62c6 VS |
7505 | echo "$as_me:$LINENO: result: no" >&5 |
7506 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7507 | fi |
e6cc62c6 | 7508 | |
10f2d63a | 7509 | |
5005acfe | 7510 | enablestring= |
e6cc62c6 VS |
7511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7512 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7513 | no_cache=0 |
7514 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7515 | if test "${enable_statbmp+set}" = set; then | |
7516 | enableval="$enable_statbmp" | |
e6cc62c6 | 7517 | |
10f2d63a VZ |
7518 | if test "$enableval" = yes; then |
7519 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7520 | else | |
7521 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7522 | fi | |
e6cc62c6 | 7523 | |
10f2d63a | 7524 | else |
e6cc62c6 | 7525 | |
10f2d63a VZ |
7526 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7527 | if test "x$LINE" != x ; then | |
7528 | eval "DEFAULT_$LINE" | |
7529 | else | |
7530 | no_cache=1 | |
7531 | fi | |
7532 | ||
7533 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7534 | |
e6cc62c6 | 7535 | fi; |
10f2d63a VZ |
7536 | |
7537 | eval "$ac_cv_use_statbmp" | |
7538 | if test "$no_cache" != 1; then | |
7539 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7540 | fi | |
7541 | ||
7542 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7543 | echo "$as_me:$LINENO: result: yes" >&5 |
7544 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7545 | else |
e6cc62c6 VS |
7546 | echo "$as_me:$LINENO: result: no" >&5 |
7547 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7548 | fi |
e6cc62c6 | 7549 | |
10f2d63a | 7550 | |
5005acfe | 7551 | enablestring= |
e6cc62c6 VS |
7552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7553 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7554 | no_cache=0 |
7555 | # Check whether --enable-statbox or --disable-statbox was given. | |
7556 | if test "${enable_statbox+set}" = set; then | |
7557 | enableval="$enable_statbox" | |
e6cc62c6 | 7558 | |
10f2d63a VZ |
7559 | if test "$enableval" = yes; then |
7560 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7561 | else | |
7562 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7563 | fi | |
e6cc62c6 | 7564 | |
10f2d63a | 7565 | else |
e6cc62c6 | 7566 | |
10f2d63a VZ |
7567 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7568 | if test "x$LINE" != x ; then | |
7569 | eval "DEFAULT_$LINE" | |
7570 | else | |
7571 | no_cache=1 | |
7572 | fi | |
7573 | ||
7574 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7575 | |
e6cc62c6 | 7576 | fi; |
10f2d63a VZ |
7577 | |
7578 | eval "$ac_cv_use_statbox" | |
7579 | if test "$no_cache" != 1; then | |
7580 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7581 | fi | |
7582 | ||
7583 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7584 | echo "$as_me:$LINENO: result: yes" >&5 |
7585 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7586 | else |
e6cc62c6 VS |
7587 | echo "$as_me:$LINENO: result: no" >&5 |
7588 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7589 | fi |
e6cc62c6 | 7590 | |
10f2d63a | 7591 | |
5005acfe | 7592 | enablestring= |
e6cc62c6 VS |
7593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7594 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7595 | no_cache=0 |
7596 | # Check whether --enable-statline or --disable-statline was given. | |
7597 | if test "${enable_statline+set}" = set; then | |
7598 | enableval="$enable_statline" | |
e6cc62c6 | 7599 | |
10f2d63a VZ |
7600 | if test "$enableval" = yes; then |
7601 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7602 | else | |
7603 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7604 | fi | |
e6cc62c6 | 7605 | |
10f2d63a | 7606 | else |
e6cc62c6 | 7607 | |
10f2d63a VZ |
7608 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7609 | if test "x$LINE" != x ; then | |
7610 | eval "DEFAULT_$LINE" | |
7611 | else | |
7612 | no_cache=1 | |
7613 | fi | |
7614 | ||
7615 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7616 | |
e6cc62c6 | 7617 | fi; |
10f2d63a VZ |
7618 | |
7619 | eval "$ac_cv_use_statline" | |
7620 | if test "$no_cache" != 1; then | |
7621 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7622 | fi | |
7623 | ||
7624 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7625 | echo "$as_me:$LINENO: result: yes" >&5 |
7626 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7627 | else |
e6cc62c6 VS |
7628 | echo "$as_me:$LINENO: result: no" >&5 |
7629 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7630 | fi |
e6cc62c6 | 7631 | |
10f2d63a | 7632 | |
5005acfe | 7633 | enablestring= |
e6cc62c6 VS |
7634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7635 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7636 | no_cache=0 |
7637 | # Check whether --enable-stattext or --disable-stattext was given. | |
7638 | if test "${enable_stattext+set}" = set; then | |
7639 | enableval="$enable_stattext" | |
e6cc62c6 | 7640 | |
1e6feb95 VZ |
7641 | if test "$enableval" = yes; then |
7642 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7643 | else | |
7644 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7645 | fi | |
e6cc62c6 | 7646 | |
1e6feb95 | 7647 | else |
e6cc62c6 | 7648 | |
1e6feb95 VZ |
7649 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7650 | if test "x$LINE" != x ; then | |
7651 | eval "DEFAULT_$LINE" | |
7652 | else | |
7653 | no_cache=1 | |
7654 | fi | |
7655 | ||
7656 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7657 | |
e6cc62c6 | 7658 | fi; |
1e6feb95 VZ |
7659 | |
7660 | eval "$ac_cv_use_stattext" | |
7661 | if test "$no_cache" != 1; then | |
7662 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7663 | fi | |
7664 | ||
7665 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7666 | echo "$as_me:$LINENO: result: yes" >&5 |
7667 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7668 | else |
e6cc62c6 VS |
7669 | echo "$as_me:$LINENO: result: no" >&5 |
7670 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7671 | fi |
e6cc62c6 | 7672 | |
1e6feb95 | 7673 | |
5005acfe | 7674 | enablestring= |
e6cc62c6 VS |
7675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7676 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7677 | no_cache=0 |
7678 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7679 | if test "${enable_statusbar+set}" = set; then | |
7680 | enableval="$enable_statusbar" | |
e6cc62c6 | 7681 | |
10f2d63a VZ |
7682 | if test "$enableval" = yes; then |
7683 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7684 | else | |
7685 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7686 | fi | |
e6cc62c6 | 7687 | |
10f2d63a | 7688 | else |
e6cc62c6 | 7689 | |
10f2d63a VZ |
7690 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7691 | if test "x$LINE" != x ; then | |
7692 | eval "DEFAULT_$LINE" | |
7693 | else | |
7694 | no_cache=1 | |
7695 | fi | |
7696 | ||
7697 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7698 | |
e6cc62c6 | 7699 | fi; |
10f2d63a VZ |
7700 | |
7701 | eval "$ac_cv_use_statusbar" | |
7702 | if test "$no_cache" != 1; then | |
7703 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7704 | fi | |
7705 | ||
7706 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7707 | echo "$as_me:$LINENO: result: yes" >&5 |
7708 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7709 | else |
e6cc62c6 VS |
7710 | echo "$as_me:$LINENO: result: no" >&5 |
7711 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7712 | fi |
e6cc62c6 | 7713 | |
10f2d63a | 7714 | |
5005acfe | 7715 | enablestring= |
e6cc62c6 VS |
7716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7717 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7718 | no_cache=0 |
7719 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7720 | if test "${enable_tabdialog+set}" = set; then | |
7721 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7722 | |
10f2d63a VZ |
7723 | if test "$enableval" = yes; then |
7724 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7725 | else | |
7726 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7727 | fi | |
e6cc62c6 | 7728 | |
10f2d63a | 7729 | else |
e6cc62c6 | 7730 | |
10f2d63a VZ |
7731 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7732 | if test "x$LINE" != x ; then | |
7733 | eval "DEFAULT_$LINE" | |
7734 | else | |
7735 | no_cache=1 | |
7736 | fi | |
7737 | ||
7738 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7739 | |
e6cc62c6 | 7740 | fi; |
10f2d63a VZ |
7741 | |
7742 | eval "$ac_cv_use_tabdialog" | |
7743 | if test "$no_cache" != 1; then | |
7744 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7745 | fi | |
7746 | ||
7747 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7748 | echo "$as_me:$LINENO: result: yes" >&5 |
7749 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7750 | else |
e6cc62c6 VS |
7751 | echo "$as_me:$LINENO: result: no" >&5 |
7752 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7753 | fi |
e6cc62c6 | 7754 | |
10f2d63a | 7755 | |
5005acfe | 7756 | enablestring= |
e6cc62c6 VS |
7757 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7758 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7759 | no_cache=0 |
7760 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7761 | if test "${enable_textctrl+set}" = set; then | |
7762 | enableval="$enable_textctrl" | |
e6cc62c6 | 7763 | |
1e6feb95 VZ |
7764 | if test "$enableval" = yes; then |
7765 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7766 | else | |
7767 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7768 | fi | |
e6cc62c6 | 7769 | |
1e6feb95 | 7770 | else |
e6cc62c6 | 7771 | |
1e6feb95 VZ |
7772 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7773 | if test "x$LINE" != x ; then | |
7774 | eval "DEFAULT_$LINE" | |
7775 | else | |
7776 | no_cache=1 | |
7777 | fi | |
7778 | ||
7779 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7780 | |
e6cc62c6 | 7781 | fi; |
1e6feb95 VZ |
7782 | |
7783 | eval "$ac_cv_use_textctrl" | |
7784 | if test "$no_cache" != 1; then | |
7785 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7786 | fi | |
7787 | ||
7788 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
7789 | echo "$as_me:$LINENO: result: yes" >&5 |
7790 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7791 | else |
e6cc62c6 VS |
7792 | echo "$as_me:$LINENO: result: no" >&5 |
7793 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7794 | fi |
e6cc62c6 | 7795 | |
1e6feb95 | 7796 | |
5005acfe | 7797 | enablestring= |
e6cc62c6 VS |
7798 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
7799 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7800 | no_cache=0 |
7801 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7802 | if test "${enable_togglebtn+set}" = set; then | |
7803 | enableval="$enable_togglebtn" | |
e6cc62c6 | 7804 | |
1db8dc4a VZ |
7805 | if test "$enableval" = yes; then |
7806 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7807 | else | |
7808 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7809 | fi | |
e6cc62c6 | 7810 | |
1db8dc4a | 7811 | else |
e6cc62c6 | 7812 | |
1db8dc4a VZ |
7813 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7814 | if test "x$LINE" != x ; then | |
7815 | eval "DEFAULT_$LINE" | |
7816 | else | |
7817 | no_cache=1 | |
7818 | fi | |
7819 | ||
7820 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7821 | |
e6cc62c6 | 7822 | fi; |
1db8dc4a VZ |
7823 | |
7824 | eval "$ac_cv_use_togglebtn" | |
7825 | if test "$no_cache" != 1; then | |
7826 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7827 | fi | |
7828 | ||
7829 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
7830 | echo "$as_me:$LINENO: result: yes" >&5 |
7831 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7832 | else |
e6cc62c6 VS |
7833 | echo "$as_me:$LINENO: result: no" >&5 |
7834 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7835 | fi |
e6cc62c6 | 7836 | |
1db8dc4a | 7837 | |
5005acfe | 7838 | enablestring= |
e6cc62c6 VS |
7839 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
7840 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7841 | no_cache=0 |
7842 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7843 | if test "${enable_toolbar+set}" = set; then | |
7844 | enableval="$enable_toolbar" | |
e6cc62c6 | 7845 | |
10f2d63a VZ |
7846 | if test "$enableval" = yes; then |
7847 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7848 | else | |
7849 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7850 | fi | |
e6cc62c6 | 7851 | |
10f2d63a | 7852 | else |
e6cc62c6 | 7853 | |
10f2d63a VZ |
7854 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7855 | if test "x$LINE" != x ; then | |
7856 | eval "DEFAULT_$LINE" | |
7857 | else | |
7858 | no_cache=1 | |
7859 | fi | |
7860 | ||
7861 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7862 | |
e6cc62c6 | 7863 | fi; |
10f2d63a VZ |
7864 | |
7865 | eval "$ac_cv_use_toolbar" | |
7866 | if test "$no_cache" != 1; then | |
7867 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7868 | fi | |
7869 | ||
7870 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
7871 | echo "$as_me:$LINENO: result: yes" >&5 |
7872 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7873 | else |
e6cc62c6 VS |
7874 | echo "$as_me:$LINENO: result: no" >&5 |
7875 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7876 | fi |
e6cc62c6 | 7877 | |
10f2d63a | 7878 | |
5005acfe | 7879 | enablestring= |
e6cc62c6 VS |
7880 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
7881 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7882 | no_cache=0 |
7883 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7884 | if test "${enable_tbarnative+set}" = set; then | |
7885 | enableval="$enable_tbarnative" | |
e6cc62c6 | 7886 | |
360d6699 VZ |
7887 | if test "$enableval" = yes; then |
7888 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7889 | else | |
7890 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7891 | fi | |
e6cc62c6 | 7892 | |
360d6699 | 7893 | else |
e6cc62c6 | 7894 | |
360d6699 VZ |
7895 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7896 | if test "x$LINE" != x ; then | |
7897 | eval "DEFAULT_$LINE" | |
7898 | else | |
7899 | no_cache=1 | |
7900 | fi | |
7901 | ||
7902 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7903 | |
e6cc62c6 | 7904 | fi; |
360d6699 VZ |
7905 | |
7906 | eval "$ac_cv_use_tbarnative" | |
7907 | if test "$no_cache" != 1; then | |
7908 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7909 | fi | |
7910 | ||
7911 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
7912 | echo "$as_me:$LINENO: result: yes" >&5 |
7913 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7914 | else |
e6cc62c6 VS |
7915 | echo "$as_me:$LINENO: result: no" >&5 |
7916 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7917 | fi |
e6cc62c6 | 7918 | |
360d6699 | 7919 | |
5005acfe | 7920 | enablestring= |
e6cc62c6 VS |
7921 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
7922 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
7923 | no_cache=0 |
7924 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7925 | if test "${enable_tbarsmpl+set}" = set; then | |
7926 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 7927 | |
360d6699 VZ |
7928 | if test "$enableval" = yes; then |
7929 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7930 | else | |
7931 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7932 | fi | |
e6cc62c6 | 7933 | |
360d6699 | 7934 | else |
e6cc62c6 | 7935 | |
360d6699 VZ |
7936 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7937 | if test "x$LINE" != x ; then | |
7938 | eval "DEFAULT_$LINE" | |
7939 | else | |
7940 | no_cache=1 | |
7941 | fi | |
7942 | ||
7943 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 7944 | |
e6cc62c6 | 7945 | fi; |
360d6699 VZ |
7946 | |
7947 | eval "$ac_cv_use_tbarsmpl" | |
7948 | if test "$no_cache" != 1; then | |
7949 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7950 | fi | |
7951 | ||
7952 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
7953 | echo "$as_me:$LINENO: result: yes" >&5 |
7954 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7955 | else |
e6cc62c6 VS |
7956 | echo "$as_me:$LINENO: result: no" >&5 |
7957 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7958 | fi |
e6cc62c6 | 7959 | |
360d6699 | 7960 | |
5005acfe | 7961 | enablestring= |
e6cc62c6 VS |
7962 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
7963 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7964 | no_cache=0 |
7965 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7966 | if test "${enable_treectrl+set}" = set; then | |
7967 | enableval="$enable_treectrl" | |
e6cc62c6 | 7968 | |
10f2d63a VZ |
7969 | if test "$enableval" = yes; then |
7970 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7971 | else | |
7972 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7973 | fi | |
e6cc62c6 | 7974 | |
10f2d63a | 7975 | else |
e6cc62c6 | 7976 | |
10f2d63a VZ |
7977 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7978 | if test "x$LINE" != x ; then | |
7979 | eval "DEFAULT_$LINE" | |
7980 | else | |
7981 | no_cache=1 | |
7982 | fi | |
7983 | ||
7984 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 7985 | |
e6cc62c6 | 7986 | fi; |
10f2d63a | 7987 | |
1e6feb95 VZ |
7988 | eval "$ac_cv_use_treectrl" |
7989 | if test "$no_cache" != 1; then | |
7990 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7991 | fi | |
7992 | ||
7993 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
7994 | echo "$as_me:$LINENO: result: yes" >&5 |
7995 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7996 | else |
e6cc62c6 VS |
7997 | echo "$as_me:$LINENO: result: no" >&5 |
7998 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7999 | fi |
e6cc62c6 | 8000 | |
1e6feb95 | 8001 | |
5005acfe | 8002 | enablestring= |
e6cc62c6 VS |
8003 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8004 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8005 | no_cache=0 |
8006 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8007 | if test "${enable_tipwindow+set}" = set; then | |
8008 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8009 | |
9926e4a4 VZ |
8010 | if test "$enableval" = yes; then |
8011 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8012 | else | |
8013 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8014 | fi | |
e6cc62c6 | 8015 | |
9926e4a4 | 8016 | else |
e6cc62c6 | 8017 | |
9926e4a4 VZ |
8018 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8019 | if test "x$LINE" != x ; then | |
8020 | eval "DEFAULT_$LINE" | |
8021 | else | |
8022 | no_cache=1 | |
8023 | fi | |
8024 | ||
8025 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8026 | |
e6cc62c6 | 8027 | fi; |
9926e4a4 VZ |
8028 | |
8029 | eval "$ac_cv_use_tipwindow" | |
8030 | if test "$no_cache" != 1; then | |
8031 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8032 | fi | |
8033 | ||
8034 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8035 | echo "$as_me:$LINENO: result: yes" >&5 |
8036 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8037 | else |
e6cc62c6 VS |
8038 | echo "$as_me:$LINENO: result: no" >&5 |
8039 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8040 | fi |
e6cc62c6 | 8041 | |
9926e4a4 | 8042 | |
5005acfe | 8043 | enablestring= |
e6cc62c6 VS |
8044 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8045 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8046 | no_cache=0 |
8047 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8048 | if test "${enable_popupwin+set}" = set; then | |
8049 | enableval="$enable_popupwin" | |
e6cc62c6 | 8050 | |
9f41d601 RR |
8051 | if test "$enableval" = yes; then |
8052 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8053 | else | |
8054 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8055 | fi | |
e6cc62c6 | 8056 | |
9f41d601 | 8057 | else |
e6cc62c6 | 8058 | |
9f41d601 RR |
8059 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8060 | if test "x$LINE" != x ; then | |
8061 | eval "DEFAULT_$LINE" | |
8062 | else | |
8063 | no_cache=1 | |
8064 | fi | |
8065 | ||
8066 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8067 | |
e6cc62c6 | 8068 | fi; |
9f41d601 RR |
8069 | |
8070 | eval "$ac_cv_use_popupwin" | |
8071 | if test "$no_cache" != 1; then | |
8072 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8073 | fi | |
8074 | ||
8075 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8076 | echo "$as_me:$LINENO: result: yes" >&5 |
8077 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8078 | else |
e6cc62c6 VS |
8079 | echo "$as_me:$LINENO: result: no" >&5 |
8080 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8081 | fi |
e6cc62c6 | 8082 | |
52127426 | 8083 | |
8284b0c5 MB |
8084 | |
8085 | ||
5005acfe | 8086 | enablestring= |
e6cc62c6 VS |
8087 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8088 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8089 | no_cache=0 |
8090 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8091 | if test "${enable_commondlg+set}" = set; then | |
8092 | enableval="$enable_commondlg" | |
e6cc62c6 | 8093 | |
1e6feb95 VZ |
8094 | if test "$enableval" = yes; then |
8095 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8096 | else | |
8097 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8098 | fi | |
e6cc62c6 | 8099 | |
1e6feb95 | 8100 | else |
e6cc62c6 | 8101 | |
1e6feb95 VZ |
8102 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8103 | if test "x$LINE" != x ; then | |
8104 | eval "DEFAULT_$LINE" | |
8105 | else | |
8106 | no_cache=1 | |
8107 | fi | |
8108 | ||
8109 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8110 | |
e6cc62c6 | 8111 | fi; |
1e6feb95 VZ |
8112 | |
8113 | eval "$ac_cv_use_commondlg" | |
8114 | if test "$no_cache" != 1; then | |
8115 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8116 | fi | |
8117 | ||
8118 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8119 | echo "$as_me:$LINENO: result: yes" >&5 |
8120 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8121 | else |
e6cc62c6 VS |
8122 | echo "$as_me:$LINENO: result: no" >&5 |
8123 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8124 | fi |
e6cc62c6 | 8125 | |
1e6feb95 | 8126 | |
5005acfe | 8127 | enablestring= |
e6cc62c6 VS |
8128 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8129 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8130 | no_cache=0 |
8131 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8132 | if test "${enable_choicedlg+set}" = set; then | |
8133 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8134 | |
1e6feb95 VZ |
8135 | if test "$enableval" = yes; then |
8136 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8137 | else | |
8138 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8139 | fi | |
e6cc62c6 | 8140 | |
1e6feb95 | 8141 | else |
e6cc62c6 | 8142 | |
1e6feb95 VZ |
8143 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8144 | if test "x$LINE" != x ; then | |
8145 | eval "DEFAULT_$LINE" | |
8146 | else | |
8147 | no_cache=1 | |
8148 | fi | |
8149 | ||
8150 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8151 | |
e6cc62c6 | 8152 | fi; |
1e6feb95 VZ |
8153 | |
8154 | eval "$ac_cv_use_choicedlg" | |
8155 | if test "$no_cache" != 1; then | |
8156 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8157 | fi | |
8158 | ||
8159 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8160 | echo "$as_me:$LINENO: result: yes" >&5 |
8161 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8162 | else |
e6cc62c6 VS |
8163 | echo "$as_me:$LINENO: result: no" >&5 |
8164 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8165 | fi |
e6cc62c6 | 8166 | |
1e6feb95 | 8167 | |
5005acfe | 8168 | enablestring= |
e6cc62c6 VS |
8169 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8170 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8171 | no_cache=0 |
8172 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8173 | if test "${enable_coldlg+set}" = set; then | |
8174 | enableval="$enable_coldlg" | |
e6cc62c6 | 8175 | |
1e6feb95 VZ |
8176 | if test "$enableval" = yes; then |
8177 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8178 | else | |
8179 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8180 | fi | |
e6cc62c6 | 8181 | |
1e6feb95 | 8182 | else |
e6cc62c6 | 8183 | |
1e6feb95 VZ |
8184 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8185 | if test "x$LINE" != x ; then | |
8186 | eval "DEFAULT_$LINE" | |
8187 | else | |
8188 | no_cache=1 | |
8189 | fi | |
8190 | ||
8191 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8192 | |
e6cc62c6 | 8193 | fi; |
1e6feb95 VZ |
8194 | |
8195 | eval "$ac_cv_use_coldlg" | |
8196 | if test "$no_cache" != 1; then | |
8197 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8198 | fi | |
8199 | ||
8200 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8201 | echo "$as_me:$LINENO: result: yes" >&5 |
8202 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8203 | else |
e6cc62c6 VS |
8204 | echo "$as_me:$LINENO: result: no" >&5 |
8205 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8206 | fi |
e6cc62c6 | 8207 | |
1e6feb95 | 8208 | |
5005acfe | 8209 | enablestring= |
e6cc62c6 VS |
8210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8211 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8212 | no_cache=0 |
8213 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8214 | if test "${enable_filedlg+set}" = set; then | |
8215 | enableval="$enable_filedlg" | |
e6cc62c6 | 8216 | |
1e6feb95 VZ |
8217 | if test "$enableval" = yes; then |
8218 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8219 | else | |
8220 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8221 | fi | |
e6cc62c6 | 8222 | |
1e6feb95 | 8223 | else |
e6cc62c6 | 8224 | |
1e6feb95 VZ |
8225 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8226 | if test "x$LINE" != x ; then | |
8227 | eval "DEFAULT_$LINE" | |
8228 | else | |
8229 | no_cache=1 | |
8230 | fi | |
8231 | ||
8232 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8233 | |
e6cc62c6 | 8234 | fi; |
1e6feb95 VZ |
8235 | |
8236 | eval "$ac_cv_use_filedlg" | |
8237 | if test "$no_cache" != 1; then | |
8238 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8239 | fi | |
8240 | ||
8241 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8242 | echo "$as_me:$LINENO: result: yes" >&5 |
8243 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8244 | else |
e6cc62c6 VS |
8245 | echo "$as_me:$LINENO: result: no" >&5 |
8246 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8247 | fi |
e6cc62c6 | 8248 | |
1e6feb95 | 8249 | |
5005acfe | 8250 | enablestring= |
e6cc62c6 VS |
8251 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8252 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8253 | no_cache=0 |
69d27ff7 MB |
8254 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8255 | if test "${enable_finddlg+set}" = set; then | |
8256 | enableval="$enable_finddlg" | |
e6cc62c6 | 8257 | |
8db37e06 | 8258 | if test "$enableval" = yes; then |
69d27ff7 | 8259 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8260 | else |
69d27ff7 | 8261 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8262 | fi |
e6cc62c6 | 8263 | |
8db37e06 | 8264 | else |
e6cc62c6 | 8265 | |
8db37e06 VZ |
8266 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8267 | if test "x$LINE" != x ; then | |
8268 | eval "DEFAULT_$LINE" | |
8269 | else | |
8270 | no_cache=1 | |
8271 | fi | |
8272 | ||
69d27ff7 | 8273 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8274 | |
e6cc62c6 | 8275 | fi; |
8db37e06 | 8276 | |
69d27ff7 | 8277 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8278 | if test "$no_cache" != 1; then |
69d27ff7 | 8279 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8280 | fi |
8281 | ||
8282 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8283 | echo "$as_me:$LINENO: result: yes" >&5 |
8284 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8285 | else |
e6cc62c6 VS |
8286 | echo "$as_me:$LINENO: result: no" >&5 |
8287 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8288 | fi |
e6cc62c6 | 8289 | |
8db37e06 | 8290 | |
5005acfe | 8291 | enablestring= |
e6cc62c6 VS |
8292 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8293 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8294 | no_cache=0 |
8295 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8296 | if test "${enable_fontdlg+set}" = set; then | |
8297 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8298 | |
1e6feb95 VZ |
8299 | if test "$enableval" = yes; then |
8300 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8301 | else | |
8302 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8303 | fi | |
e6cc62c6 | 8304 | |
1e6feb95 | 8305 | else |
e6cc62c6 | 8306 | |
1e6feb95 VZ |
8307 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8308 | if test "x$LINE" != x ; then | |
8309 | eval "DEFAULT_$LINE" | |
8310 | else | |
8311 | no_cache=1 | |
8312 | fi | |
8313 | ||
8314 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8315 | |
e6cc62c6 | 8316 | fi; |
1e6feb95 VZ |
8317 | |
8318 | eval "$ac_cv_use_fontdlg" | |
8319 | if test "$no_cache" != 1; then | |
8320 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8321 | fi | |
8322 | ||
8323 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8324 | echo "$as_me:$LINENO: result: yes" >&5 |
8325 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8326 | else |
e6cc62c6 VS |
8327 | echo "$as_me:$LINENO: result: no" >&5 |
8328 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8329 | fi |
e6cc62c6 | 8330 | |
1e6feb95 | 8331 | |
5005acfe | 8332 | enablestring= |
e6cc62c6 VS |
8333 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8334 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8335 | no_cache=0 |
8336 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8337 | if test "${enable_dirdlg+set}" = set; then | |
8338 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8339 | |
1e6feb95 VZ |
8340 | if test "$enableval" = yes; then |
8341 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8342 | else | |
8343 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8344 | fi | |
e6cc62c6 | 8345 | |
1e6feb95 | 8346 | else |
e6cc62c6 | 8347 | |
1e6feb95 VZ |
8348 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8349 | if test "x$LINE" != x ; then | |
8350 | eval "DEFAULT_$LINE" | |
8351 | else | |
8352 | no_cache=1 | |
8353 | fi | |
8354 | ||
8355 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8356 | |
e6cc62c6 | 8357 | fi; |
1e6feb95 VZ |
8358 | |
8359 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8360 | if test "$no_cache" != 1; then |
1e6feb95 | 8361 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8362 | fi |
8363 | ||
1e6feb95 | 8364 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8365 | echo "$as_me:$LINENO: result: yes" >&5 |
8366 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8367 | else |
e6cc62c6 VS |
8368 | echo "$as_me:$LINENO: result: no" >&5 |
8369 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8370 | fi |
e6cc62c6 | 8371 | |
698dcdb6 | 8372 | |
5005acfe | 8373 | enablestring= |
e6cc62c6 VS |
8374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8375 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8376 | no_cache=0 |
1e6feb95 VZ |
8377 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8378 | if test "${enable_msgdlg+set}" = set; then | |
8379 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8380 | |
10f2d63a | 8381 | if test "$enableval" = yes; then |
1e6feb95 | 8382 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8383 | else |
1e6feb95 | 8384 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8385 | fi |
e6cc62c6 | 8386 | |
10f2d63a | 8387 | else |
e6cc62c6 | 8388 | |
1e6feb95 | 8389 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8390 | if test "x$LINE" != x ; then |
8391 | eval "DEFAULT_$LINE" | |
8392 | else | |
8393 | no_cache=1 | |
8394 | fi | |
8395 | ||
1e6feb95 | 8396 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8397 | |
e6cc62c6 | 8398 | fi; |
10f2d63a | 8399 | |
1e6feb95 | 8400 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8401 | if test "$no_cache" != 1; then |
1e6feb95 | 8402 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8403 | fi |
8404 | ||
1e6feb95 | 8405 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8406 | echo "$as_me:$LINENO: result: yes" >&5 |
8407 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8408 | else |
e6cc62c6 VS |
8409 | echo "$as_me:$LINENO: result: no" >&5 |
8410 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8411 | fi |
e6cc62c6 | 8412 | |
10f2d63a | 8413 | |
5005acfe | 8414 | enablestring= |
e6cc62c6 VS |
8415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8416 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8417 | no_cache=0 |
1e6feb95 VZ |
8418 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8419 | if test "${enable_numberdlg+set}" = set; then | |
8420 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8421 | |
10f2d63a | 8422 | if test "$enableval" = yes; then |
1e6feb95 | 8423 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8424 | else |
1e6feb95 | 8425 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8426 | fi |
e6cc62c6 | 8427 | |
10f2d63a | 8428 | else |
e6cc62c6 | 8429 | |
1e6feb95 | 8430 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8431 | if test "x$LINE" != x ; then |
8432 | eval "DEFAULT_$LINE" | |
8433 | else | |
8434 | no_cache=1 | |
8435 | fi | |
8436 | ||
1e6feb95 | 8437 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8438 | |
e6cc62c6 | 8439 | fi; |
10f2d63a | 8440 | |
1e6feb95 | 8441 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8442 | if test "$no_cache" != 1; then |
1e6feb95 | 8443 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8444 | fi |
8445 | ||
1e6feb95 | 8446 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8447 | echo "$as_me:$LINENO: result: yes" >&5 |
8448 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8449 | else |
e6cc62c6 VS |
8450 | echo "$as_me:$LINENO: result: no" >&5 |
8451 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8452 | fi |
e6cc62c6 | 8453 | |
10f2d63a | 8454 | |
5005acfe | 8455 | enablestring= |
e6cc62c6 VS |
8456 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8457 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8458 | no_cache=0 |
8459 | # Check whether --enable-splash or --disable-splash was given. | |
8460 | if test "${enable_splash+set}" = set; then | |
8461 | enableval="$enable_splash" | |
e6cc62c6 | 8462 | |
cbca9943 VZ |
8463 | if test "$enableval" = yes; then |
8464 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8465 | else | |
8466 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8467 | fi | |
e6cc62c6 | 8468 | |
cbca9943 | 8469 | else |
e6cc62c6 | 8470 | |
cbca9943 VZ |
8471 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8472 | if test "x$LINE" != x ; then | |
8473 | eval "DEFAULT_$LINE" | |
8474 | else | |
8475 | no_cache=1 | |
8476 | fi | |
8477 | ||
8478 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8479 | |
e6cc62c6 | 8480 | fi; |
cbca9943 VZ |
8481 | |
8482 | eval "$ac_cv_use_splash" | |
8483 | if test "$no_cache" != 1; then | |
8484 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8485 | fi | |
8486 | ||
8487 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8488 | echo "$as_me:$LINENO: result: yes" >&5 |
8489 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8490 | else |
e6cc62c6 VS |
8491 | echo "$as_me:$LINENO: result: no" >&5 |
8492 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8493 | fi |
e6cc62c6 | 8494 | |
cbca9943 | 8495 | |
5005acfe | 8496 | enablestring= |
e6cc62c6 VS |
8497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8498 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8499 | no_cache=0 |
8500 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8501 | if test "${enable_textdlg+set}" = set; then | |
8502 | enableval="$enable_textdlg" | |
e6cc62c6 | 8503 | |
10f2d63a VZ |
8504 | if test "$enableval" = yes; then |
8505 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8506 | else | |
8507 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8508 | fi | |
e6cc62c6 | 8509 | |
10f2d63a | 8510 | else |
e6cc62c6 | 8511 | |
10f2d63a VZ |
8512 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8513 | if test "x$LINE" != x ; then | |
8514 | eval "DEFAULT_$LINE" | |
8515 | else | |
8516 | no_cache=1 | |
8517 | fi | |
8518 | ||
8519 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8520 | |
e6cc62c6 | 8521 | fi; |
10f2d63a VZ |
8522 | |
8523 | eval "$ac_cv_use_textdlg" | |
8524 | if test "$no_cache" != 1; then | |
8525 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8526 | fi | |
8527 | ||
8528 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8529 | echo "$as_me:$LINENO: result: yes" >&5 |
8530 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8531 | else |
e6cc62c6 VS |
8532 | echo "$as_me:$LINENO: result: no" >&5 |
8533 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8534 | fi |
e6cc62c6 | 8535 | |
10f2d63a | 8536 | |
5005acfe | 8537 | enablestring= |
e6cc62c6 VS |
8538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8539 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8540 | no_cache=0 |
8541 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8542 | if test "${enable_tipdlg+set}" = set; then | |
8543 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8544 | |
10f2d63a VZ |
8545 | if test "$enableval" = yes; then |
8546 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8547 | else | |
8548 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8549 | fi | |
e6cc62c6 | 8550 | |
10f2d63a | 8551 | else |
e6cc62c6 | 8552 | |
10f2d63a VZ |
8553 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8554 | if test "x$LINE" != x ; then | |
8555 | eval "DEFAULT_$LINE" | |
8556 | else | |
8557 | no_cache=1 | |
8558 | fi | |
8559 | ||
8560 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8561 | |
e6cc62c6 | 8562 | fi; |
10f2d63a VZ |
8563 | |
8564 | eval "$ac_cv_use_tipdlg" | |
8565 | if test "$no_cache" != 1; then | |
8566 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8567 | fi | |
8568 | ||
8569 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8570 | echo "$as_me:$LINENO: result: yes" >&5 |
8571 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8572 | else |
e6cc62c6 VS |
8573 | echo "$as_me:$LINENO: result: no" >&5 |
8574 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8575 | fi |
e6cc62c6 | 8576 | |
10f2d63a | 8577 | |
5005acfe | 8578 | enablestring= |
e6cc62c6 VS |
8579 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8580 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8581 | no_cache=0 |
8582 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8583 | if test "${enable_progressdlg+set}" = set; then | |
8584 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8585 | |
10f2d63a VZ |
8586 | if test "$enableval" = yes; then |
8587 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8588 | else | |
8589 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8590 | fi | |
e6cc62c6 | 8591 | |
10f2d63a | 8592 | else |
e6cc62c6 | 8593 | |
10f2d63a VZ |
8594 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8595 | if test "x$LINE" != x ; then | |
8596 | eval "DEFAULT_$LINE" | |
8597 | else | |
8598 | no_cache=1 | |
8599 | fi | |
8600 | ||
8601 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8602 | |
e6cc62c6 | 8603 | fi; |
10f2d63a VZ |
8604 | |
8605 | eval "$ac_cv_use_progressdlg" | |
8606 | if test "$no_cache" != 1; then | |
8607 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8608 | fi | |
8609 | ||
8610 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8611 | echo "$as_me:$LINENO: result: yes" >&5 |
8612 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8613 | else |
e6cc62c6 VS |
8614 | echo "$as_me:$LINENO: result: no" >&5 |
8615 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8616 | fi |
e6cc62c6 | 8617 | |
10f2d63a | 8618 | |
5005acfe | 8619 | enablestring= |
e6cc62c6 VS |
8620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8621 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8622 | no_cache=0 |
8623 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8624 | if test "${enable_wizarddlg+set}" = set; then | |
8625 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8626 | |
b1f5d087 VZ |
8627 | if test "$enableval" = yes; then |
8628 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8629 | else | |
8630 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8631 | fi | |
e6cc62c6 | 8632 | |
b1f5d087 | 8633 | else |
e6cc62c6 | 8634 | |
b1f5d087 VZ |
8635 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8636 | if test "x$LINE" != x ; then | |
8637 | eval "DEFAULT_$LINE" | |
8638 | else | |
8639 | no_cache=1 | |
8640 | fi | |
8641 | ||
8642 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8643 | |
e6cc62c6 | 8644 | fi; |
b1f5d087 VZ |
8645 | |
8646 | eval "$ac_cv_use_wizarddlg" | |
8647 | if test "$no_cache" != 1; then | |
8648 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8649 | fi | |
8650 | ||
8651 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8652 | echo "$as_me:$LINENO: result: yes" >&5 |
8653 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8654 | else |
e6cc62c6 VS |
8655 | echo "$as_me:$LINENO: result: no" >&5 |
8656 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8657 | fi |
e6cc62c6 | 8658 | |
8284b0c5 MB |
8659 | |
8660 | ||
52127426 | 8661 | |
5005acfe | 8662 | enablestring= |
e6cc62c6 VS |
8663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8664 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8665 | no_cache=0 |
8666 | # Check whether --enable-menus or --disable-menus was given. | |
8667 | if test "${enable_menus+set}" = set; then | |
8668 | enableval="$enable_menus" | |
e6cc62c6 | 8669 | |
1e6feb95 VZ |
8670 | if test "$enableval" = yes; then |
8671 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8672 | else | |
8673 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8674 | fi | |
e6cc62c6 | 8675 | |
1e6feb95 | 8676 | else |
e6cc62c6 | 8677 | |
1e6feb95 VZ |
8678 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8679 | if test "x$LINE" != x ; then | |
8680 | eval "DEFAULT_$LINE" | |
8681 | else | |
8682 | no_cache=1 | |
8683 | fi | |
8684 | ||
8685 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8686 | |
e6cc62c6 | 8687 | fi; |
1e6feb95 VZ |
8688 | |
8689 | eval "$ac_cv_use_menus" | |
8690 | if test "$no_cache" != 1; then | |
8691 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8692 | fi | |
8693 | ||
8694 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8695 | echo "$as_me:$LINENO: result: yes" >&5 |
8696 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8697 | else |
e6cc62c6 VS |
8698 | echo "$as_me:$LINENO: result: no" >&5 |
8699 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8700 | fi |
e6cc62c6 | 8701 | |
1e6feb95 | 8702 | |
5005acfe | 8703 | enablestring= |
e6cc62c6 VS |
8704 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8705 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8706 | no_cache=0 |
8707 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8708 | if test "${enable_miniframe+set}" = set; then | |
8709 | enableval="$enable_miniframe" | |
e6cc62c6 | 8710 | |
10f2d63a VZ |
8711 | if test "$enableval" = yes; then |
8712 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8713 | else | |
8714 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8715 | fi | |
e6cc62c6 | 8716 | |
10f2d63a | 8717 | else |
e6cc62c6 | 8718 | |
10f2d63a VZ |
8719 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8720 | if test "x$LINE" != x ; then | |
8721 | eval "DEFAULT_$LINE" | |
8722 | else | |
8723 | no_cache=1 | |
8724 | fi | |
8725 | ||
8726 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8727 | |
e6cc62c6 | 8728 | fi; |
10f2d63a VZ |
8729 | |
8730 | eval "$ac_cv_use_miniframe" | |
8731 | if test "$no_cache" != 1; then | |
8732 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8733 | fi | |
8734 | ||
8735 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8736 | echo "$as_me:$LINENO: result: yes" >&5 |
8737 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8738 | else |
e6cc62c6 VS |
8739 | echo "$as_me:$LINENO: result: no" >&5 |
8740 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8741 | fi |
e6cc62c6 | 8742 | |
10f2d63a | 8743 | |
5005acfe | 8744 | enablestring= |
e6cc62c6 VS |
8745 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8746 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8747 | no_cache=0 |
8748 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8749 | if test "${enable_tooltips+set}" = set; then | |
8750 | enableval="$enable_tooltips" | |
e6cc62c6 | 8751 | |
10f2d63a VZ |
8752 | if test "$enableval" = yes; then |
8753 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8754 | else | |
8755 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8756 | fi | |
e6cc62c6 | 8757 | |
10f2d63a | 8758 | else |
e6cc62c6 | 8759 | |
10f2d63a VZ |
8760 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8761 | if test "x$LINE" != x ; then | |
8762 | eval "DEFAULT_$LINE" | |
8763 | else | |
8764 | no_cache=1 | |
8765 | fi | |
8766 | ||
8767 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8768 | |
e6cc62c6 | 8769 | fi; |
10f2d63a VZ |
8770 | |
8771 | eval "$ac_cv_use_tooltips" | |
8772 | if test "$no_cache" != 1; then | |
8773 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8774 | fi | |
8775 | ||
8776 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
8777 | echo "$as_me:$LINENO: result: yes" >&5 |
8778 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8779 | else |
e6cc62c6 VS |
8780 | echo "$as_me:$LINENO: result: no" >&5 |
8781 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8782 | fi |
e6cc62c6 | 8783 | |
10f2d63a | 8784 | |
5005acfe | 8785 | enablestring= |
e6cc62c6 VS |
8786 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
8787 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8788 | no_cache=0 |
8789 | # Check whether --enable-splines or --disable-splines was given. | |
8790 | if test "${enable_splines+set}" = set; then | |
8791 | enableval="$enable_splines" | |
e6cc62c6 | 8792 | |
10f2d63a VZ |
8793 | if test "$enableval" = yes; then |
8794 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8795 | else | |
8796 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8797 | fi | |
e6cc62c6 | 8798 | |
10f2d63a | 8799 | else |
e6cc62c6 | 8800 | |
10f2d63a VZ |
8801 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8802 | if test "x$LINE" != x ; then | |
8803 | eval "DEFAULT_$LINE" | |
8804 | else | |
8805 | no_cache=1 | |
8806 | fi | |
8807 | ||
8808 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8809 | |
e6cc62c6 | 8810 | fi; |
10f2d63a VZ |
8811 | |
8812 | eval "$ac_cv_use_splines" | |
8813 | if test "$no_cache" != 1; then | |
8814 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8815 | fi | |
8816 | ||
8817 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
8818 | echo "$as_me:$LINENO: result: yes" >&5 |
8819 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8820 | else |
e6cc62c6 VS |
8821 | echo "$as_me:$LINENO: result: no" >&5 |
8822 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8823 | fi |
e6cc62c6 | 8824 | |
10f2d63a | 8825 | |
5005acfe | 8826 | enablestring= |
e6cc62c6 VS |
8827 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
8828 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8829 | no_cache=0 |
8830 | # Check whether --enable-validators or --disable-validators was given. | |
8831 | if test "${enable_validators+set}" = set; then | |
8832 | enableval="$enable_validators" | |
e6cc62c6 | 8833 | |
10f2d63a VZ |
8834 | if test "$enableval" = yes; then |
8835 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8836 | else | |
8837 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8838 | fi | |
e6cc62c6 | 8839 | |
10f2d63a | 8840 | else |
e6cc62c6 | 8841 | |
10f2d63a VZ |
8842 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8843 | if test "x$LINE" != x ; then | |
8844 | eval "DEFAULT_$LINE" | |
8845 | else | |
8846 | no_cache=1 | |
8847 | fi | |
8848 | ||
8849 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8850 | |
e6cc62c6 | 8851 | fi; |
10f2d63a VZ |
8852 | |
8853 | eval "$ac_cv_use_validators" | |
8854 | if test "$no_cache" != 1; then | |
8855 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8856 | fi | |
8857 | ||
8858 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
8859 | echo "$as_me:$LINENO: result: yes" >&5 |
8860 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8861 | else |
e6cc62c6 VS |
8862 | echo "$as_me:$LINENO: result: no" >&5 |
8863 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8864 | fi |
e6cc62c6 | 8865 | |
10f2d63a | 8866 | |
5005acfe | 8867 | enablestring= |
e6cc62c6 VS |
8868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
8869 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8870 | no_cache=0 |
8871 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8872 | if test "${enable_busyinfo+set}" = set; then | |
8873 | enableval="$enable_busyinfo" | |
e6cc62c6 | 8874 | |
10f2d63a VZ |
8875 | if test "$enableval" = yes; then |
8876 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8877 | else | |
8878 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8879 | fi | |
e6cc62c6 | 8880 | |
10f2d63a | 8881 | else |
e6cc62c6 | 8882 | |
10f2d63a VZ |
8883 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8884 | if test "x$LINE" != x ; then | |
8885 | eval "DEFAULT_$LINE" | |
8886 | else | |
8887 | no_cache=1 | |
8888 | fi | |
8889 | ||
8890 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8891 | |
e6cc62c6 | 8892 | fi; |
10f2d63a VZ |
8893 | |
8894 | eval "$ac_cv_use_busyinfo" | |
8895 | if test "$no_cache" != 1; then | |
8896 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8897 | fi | |
8898 | ||
8899 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
8900 | echo "$as_me:$LINENO: result: yes" >&5 |
8901 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8902 | else |
e6cc62c6 VS |
8903 | echo "$as_me:$LINENO: result: no" >&5 |
8904 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8905 | fi |
e6cc62c6 | 8906 | |
10f2d63a | 8907 | |
5005acfe | 8908 | enablestring= |
e6cc62c6 VS |
8909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
8910 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8911 | no_cache=0 |
8912 | # Check whether --enable-joystick or --disable-joystick was given. | |
8913 | if test "${enable_joystick+set}" = set; then | |
8914 | enableval="$enable_joystick" | |
e6cc62c6 | 8915 | |
f6bcfd97 BP |
8916 | if test "$enableval" = yes; then |
8917 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8918 | else | |
8919 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8920 | fi | |
e6cc62c6 | 8921 | |
f6bcfd97 | 8922 | else |
e6cc62c6 | 8923 | |
f6bcfd97 BP |
8924 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8925 | if test "x$LINE" != x ; then | |
8926 | eval "DEFAULT_$LINE" | |
8927 | else | |
8928 | no_cache=1 | |
8929 | fi | |
8930 | ||
8931 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 8932 | |
e6cc62c6 | 8933 | fi; |
f6bcfd97 BP |
8934 | |
8935 | eval "$ac_cv_use_joystick" | |
8936 | if test "$no_cache" != 1; then | |
8937 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8938 | fi | |
8939 | ||
8940 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
8941 | echo "$as_me:$LINENO: result: yes" >&5 |
8942 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 8943 | else |
e6cc62c6 VS |
8944 | echo "$as_me:$LINENO: result: no" >&5 |
8945 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 8946 | fi |
e6cc62c6 | 8947 | |
698dcdb6 | 8948 | |
5005acfe | 8949 | enablestring= |
e6cc62c6 VS |
8950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
8951 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
8952 | no_cache=0 |
8953 | # Check whether --enable-metafile or --disable-metafile was given. | |
8954 | if test "${enable_metafile+set}" = set; then | |
8955 | enableval="$enable_metafile" | |
e6cc62c6 | 8956 | |
1e6feb95 VZ |
8957 | if test "$enableval" = yes; then |
8958 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8959 | else | |
8960 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8961 | fi | |
e6cc62c6 | 8962 | |
1e6feb95 | 8963 | else |
e6cc62c6 | 8964 | |
1e6feb95 VZ |
8965 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8966 | if test "x$LINE" != x ; then | |
8967 | eval "DEFAULT_$LINE" | |
8968 | else | |
8969 | no_cache=1 | |
8970 | fi | |
8971 | ||
8972 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 8973 | |
e6cc62c6 | 8974 | fi; |
1e6feb95 VZ |
8975 | |
8976 | eval "$ac_cv_use_metafile" | |
8977 | if test "$no_cache" != 1; then | |
8978 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8979 | fi | |
8980 | ||
8981 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
8982 | echo "$as_me:$LINENO: result: yes" >&5 |
8983 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8984 | else |
e6cc62c6 VS |
8985 | echo "$as_me:$LINENO: result: no" >&5 |
8986 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8987 | fi |
e6cc62c6 | 8988 | |
1e6feb95 | 8989 | |
5005acfe | 8990 | enablestring= |
e6cc62c6 VS |
8991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
8992 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
8993 | no_cache=0 |
8994 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8995 | if test "${enable_dragimage+set}" = set; then | |
8996 | enableval="$enable_dragimage" | |
e6cc62c6 | 8997 | |
24fd6d87 VZ |
8998 | if test "$enableval" = yes; then |
8999 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9000 | else | |
9001 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9002 | fi | |
e6cc62c6 | 9003 | |
24fd6d87 | 9004 | else |
e6cc62c6 | 9005 | |
24fd6d87 VZ |
9006 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9007 | if test "x$LINE" != x ; then | |
9008 | eval "DEFAULT_$LINE" | |
9009 | else | |
9010 | no_cache=1 | |
9011 | fi | |
9012 | ||
9013 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9014 | |
e6cc62c6 | 9015 | fi; |
24fd6d87 VZ |
9016 | |
9017 | eval "$ac_cv_use_dragimage" | |
9018 | if test "$no_cache" != 1; then | |
9019 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9020 | fi | |
9021 | ||
9022 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9023 | echo "$as_me:$LINENO: result: yes" >&5 |
9024 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9025 | else |
e6cc62c6 VS |
9026 | echo "$as_me:$LINENO: result: no" >&5 |
9027 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9028 | fi |
e6cc62c6 | 9029 | |
52127426 | 9030 | |
7bb2947d | 9031 | enablestring= |
e6cc62c6 VS |
9032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9033 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9034 | no_cache=0 |
9035 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9036 | if test "${enable_accessibility+set}" = set; then | |
9037 | enableval="$enable_accessibility" | |
e6cc62c6 | 9038 | |
7bb2947d MB |
9039 | if test "$enableval" = yes; then |
9040 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9041 | else | |
9042 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9043 | fi | |
e6cc62c6 | 9044 | |
7bb2947d | 9045 | else |
e6cc62c6 | 9046 | |
7bb2947d MB |
9047 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9048 | if test "x$LINE" != x ; then | |
9049 | eval "DEFAULT_$LINE" | |
9050 | else | |
9051 | no_cache=1 | |
9052 | fi | |
9053 | ||
9054 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9055 | |
e6cc62c6 | 9056 | fi; |
7bb2947d MB |
9057 | |
9058 | eval "$ac_cv_use_accessibility" | |
9059 | if test "$no_cache" != 1; then | |
9060 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9061 | fi | |
9062 | ||
9063 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9064 | echo "$as_me:$LINENO: result: yes" >&5 |
9065 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9066 | else |
e6cc62c6 VS |
9067 | echo "$as_me:$LINENO: result: no" >&5 |
9068 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9069 | fi |
e6cc62c6 | 9070 | |
7bb2947d | 9071 | |
8284b0c5 MB |
9072 | |
9073 | ||
5005acfe | 9074 | enablestring= |
e6cc62c6 VS |
9075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9076 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9077 | no_cache=0 |
9078 | # Check whether --enable-palette or --disable-palette was given. | |
9079 | if test "${enable_palette+set}" = set; then | |
9080 | enableval="$enable_palette" | |
e6cc62c6 | 9081 | |
edae8572 VZ |
9082 | if test "$enableval" = yes; then |
9083 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9084 | else | |
9085 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9086 | fi | |
e6cc62c6 | 9087 | |
edae8572 | 9088 | else |
e6cc62c6 | 9089 | |
edae8572 VZ |
9090 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9091 | if test "x$LINE" != x ; then | |
9092 | eval "DEFAULT_$LINE" | |
9093 | else | |
9094 | no_cache=1 | |
9095 | fi | |
9096 | ||
9097 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9098 | |
e6cc62c6 | 9099 | fi; |
edae8572 VZ |
9100 | |
9101 | eval "$ac_cv_use_palette" | |
9102 | if test "$no_cache" != 1; then | |
9103 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9104 | fi | |
9105 | ||
9106 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9107 | echo "$as_me:$LINENO: result: yes" >&5 |
9108 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9109 | else |
e6cc62c6 VS |
9110 | echo "$as_me:$LINENO: result: no" >&5 |
9111 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9112 | fi |
e6cc62c6 | 9113 | |
edae8572 | 9114 | |
5005acfe | 9115 | enablestring= |
e6cc62c6 VS |
9116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9117 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9118 | no_cache=0 |
9119 | # Check whether --enable-image or --disable-image was given. | |
9120 | if test "${enable_image+set}" = set; then | |
9121 | enableval="$enable_image" | |
e6cc62c6 | 9122 | |
0046ff7c VS |
9123 | if test "$enableval" = yes; then |
9124 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9125 | else | |
9126 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9127 | fi | |
e6cc62c6 | 9128 | |
0046ff7c | 9129 | else |
e6cc62c6 | 9130 | |
0046ff7c VS |
9131 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9132 | if test "x$LINE" != x ; then | |
9133 | eval "DEFAULT_$LINE" | |
9134 | else | |
9135 | no_cache=1 | |
9136 | fi | |
9137 | ||
9138 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9139 | |
e6cc62c6 | 9140 | fi; |
0046ff7c VS |
9141 | |
9142 | eval "$ac_cv_use_image" | |
9143 | if test "$no_cache" != 1; then | |
9144 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9145 | fi | |
9146 | ||
9147 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9148 | echo "$as_me:$LINENO: result: yes" >&5 |
9149 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9150 | else |
e6cc62c6 VS |
9151 | echo "$as_me:$LINENO: result: no" >&5 |
9152 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9153 | fi |
e6cc62c6 | 9154 | |
0046ff7c | 9155 | |
5005acfe | 9156 | enablestring= |
e6cc62c6 VS |
9157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9158 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9159 | no_cache=0 |
9160 | # Check whether --enable-gif or --disable-gif was given. | |
9161 | if test "${enable_gif+set}" = set; then | |
9162 | enableval="$enable_gif" | |
e6cc62c6 | 9163 | |
10f2d63a VZ |
9164 | if test "$enableval" = yes; then |
9165 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9166 | else | |
9167 | ac_cv_use_gif='wxUSE_GIF=no' | |
9168 | fi | |
e6cc62c6 | 9169 | |
10f2d63a | 9170 | else |
e6cc62c6 | 9171 | |
10f2d63a VZ |
9172 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9173 | if test "x$LINE" != x ; then | |
9174 | eval "DEFAULT_$LINE" | |
9175 | else | |
9176 | no_cache=1 | |
9177 | fi | |
9178 | ||
9179 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9180 | |
e6cc62c6 | 9181 | fi; |
10f2d63a VZ |
9182 | |
9183 | eval "$ac_cv_use_gif" | |
9184 | if test "$no_cache" != 1; then | |
9185 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9186 | fi | |
9187 | ||
9188 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9189 | echo "$as_me:$LINENO: result: yes" >&5 |
9190 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9191 | else |
e6cc62c6 VS |
9192 | echo "$as_me:$LINENO: result: no" >&5 |
9193 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9194 | fi |
e6cc62c6 | 9195 | |
10f2d63a | 9196 | |
5005acfe | 9197 | enablestring= |
e6cc62c6 VS |
9198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9199 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9200 | no_cache=0 |
9201 | # Check whether --enable-pcx or --disable-pcx was given. | |
9202 | if test "${enable_pcx+set}" = set; then | |
9203 | enableval="$enable_pcx" | |
e6cc62c6 | 9204 | |
10f2d63a VZ |
9205 | if test "$enableval" = yes; then |
9206 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9207 | else | |
9208 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9209 | fi | |
e6cc62c6 | 9210 | |
10f2d63a | 9211 | else |
e6cc62c6 | 9212 | |
10f2d63a VZ |
9213 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9214 | if test "x$LINE" != x ; then | |
9215 | eval "DEFAULT_$LINE" | |
9216 | else | |
9217 | no_cache=1 | |
9218 | fi | |
9219 | ||
9220 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9221 | |
e6cc62c6 | 9222 | fi; |
10f2d63a VZ |
9223 | |
9224 | eval "$ac_cv_use_pcx" | |
9225 | if test "$no_cache" != 1; then | |
9226 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9227 | fi | |
9228 | ||
9229 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9230 | echo "$as_me:$LINENO: result: yes" >&5 |
9231 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9232 | else |
e6cc62c6 VS |
9233 | echo "$as_me:$LINENO: result: no" >&5 |
9234 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9235 | fi |
e6cc62c6 | 9236 | |
10f2d63a | 9237 | |
5005acfe | 9238 | enablestring= |
e6cc62c6 VS |
9239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9240 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9241 | no_cache=0 |
9242 | # Check whether --enable-iff or --disable-iff was given. | |
9243 | if test "${enable_iff+set}" = set; then | |
9244 | enableval="$enable_iff" | |
e6cc62c6 | 9245 | |
4b6b4dfc RR |
9246 | if test "$enableval" = yes; then |
9247 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9248 | else | |
9249 | ac_cv_use_iff='wxUSE_IFF=no' | |
9250 | fi | |
e6cc62c6 | 9251 | |
4b6b4dfc | 9252 | else |
e6cc62c6 | 9253 | |
4b6b4dfc RR |
9254 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9255 | if test "x$LINE" != x ; then | |
9256 | eval "DEFAULT_$LINE" | |
9257 | else | |
9258 | no_cache=1 | |
9259 | fi | |
9260 | ||
9261 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9262 | |
e6cc62c6 | 9263 | fi; |
4b6b4dfc RR |
9264 | |
9265 | eval "$ac_cv_use_iff" | |
9266 | if test "$no_cache" != 1; then | |
9267 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9268 | fi | |
9269 | ||
9270 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9271 | echo "$as_me:$LINENO: result: yes" >&5 |
9272 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9273 | else |
e6cc62c6 VS |
9274 | echo "$as_me:$LINENO: result: no" >&5 |
9275 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9276 | fi |
e6cc62c6 | 9277 | |
4b6b4dfc | 9278 | |
5005acfe | 9279 | enablestring= |
e6cc62c6 VS |
9280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9281 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9282 | no_cache=0 |
9283 | # Check whether --enable-pnm or --disable-pnm was given. | |
9284 | if test "${enable_pnm+set}" = set; then | |
9285 | enableval="$enable_pnm" | |
e6cc62c6 | 9286 | |
10f2d63a VZ |
9287 | if test "$enableval" = yes; then |
9288 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9289 | else | |
9290 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9291 | fi | |
e6cc62c6 | 9292 | |
10f2d63a | 9293 | else |
e6cc62c6 | 9294 | |
10f2d63a VZ |
9295 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9296 | if test "x$LINE" != x ; then | |
9297 | eval "DEFAULT_$LINE" | |
9298 | else | |
9299 | no_cache=1 | |
9300 | fi | |
9301 | ||
9302 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9303 | |
e6cc62c6 | 9304 | fi; |
10f2d63a VZ |
9305 | |
9306 | eval "$ac_cv_use_pnm" | |
9307 | if test "$no_cache" != 1; then | |
9308 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9309 | fi | |
9310 | ||
9311 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9312 | echo "$as_me:$LINENO: result: yes" >&5 |
9313 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9314 | else |
e6cc62c6 VS |
9315 | echo "$as_me:$LINENO: result: no" >&5 |
9316 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9317 | fi |
e6cc62c6 | 9318 | |
10f2d63a | 9319 | |
5005acfe | 9320 | enablestring= |
e6cc62c6 VS |
9321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9322 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9323 | no_cache=0 |
69d27ff7 MB |
9324 | # Check whether --enable-xpm or --disable-xpm was given. |
9325 | if test "${enable_xpm+set}" = set; then | |
9326 | enableval="$enable_xpm" | |
e6cc62c6 | 9327 | |
0046ff7c | 9328 | if test "$enableval" = yes; then |
69d27ff7 | 9329 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9330 | else |
69d27ff7 | 9331 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9332 | fi |
e6cc62c6 | 9333 | |
0046ff7c | 9334 | else |
e6cc62c6 | 9335 | |
0046ff7c VS |
9336 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9337 | if test "x$LINE" != x ; then | |
9338 | eval "DEFAULT_$LINE" | |
9339 | else | |
9340 | no_cache=1 | |
9341 | fi | |
9342 | ||
69d27ff7 | 9343 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9344 | |
e6cc62c6 | 9345 | fi; |
0046ff7c | 9346 | |
69d27ff7 | 9347 | eval "$ac_cv_use_xpm" |
0046ff7c | 9348 | if test "$no_cache" != 1; then |
69d27ff7 | 9349 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9350 | fi |
9351 | ||
9352 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9353 | echo "$as_me:$LINENO: result: yes" >&5 |
9354 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9355 | else |
e6cc62c6 VS |
9356 | echo "$as_me:$LINENO: result: no" >&5 |
9357 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9358 | fi |
e6cc62c6 | 9359 | |
0046ff7c | 9360 | |
5005acfe | 9361 | enablestring= |
e6cc62c6 VS |
9362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9363 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9364 | no_cache=0 |
c7206e64 VS |
9365 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9366 | if test "${enable_ico_cur+set}" = set; then | |
9367 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9368 | |
658974ae | 9369 | if test "$enableval" = yes; then |
c7206e64 | 9370 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9371 | else |
c7206e64 | 9372 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9373 | fi |
e6cc62c6 | 9374 | |
658974ae | 9375 | else |
e6cc62c6 | 9376 | |
658974ae VS |
9377 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9378 | if test "x$LINE" != x ; then | |
9379 | eval "DEFAULT_$LINE" | |
9380 | else | |
9381 | no_cache=1 | |
9382 | fi | |
9383 | ||
c7206e64 | 9384 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9385 | |
e6cc62c6 | 9386 | fi; |
658974ae | 9387 | |
c7206e64 | 9388 | eval "$ac_cv_use_ico_cur" |
658974ae | 9389 | if test "$no_cache" != 1; then |
c7206e64 | 9390 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9391 | fi |
9392 | ||
9393 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9394 | echo "$as_me:$LINENO: result: yes" >&5 |
9395 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9396 | else |
e6cc62c6 VS |
9397 | echo "$as_me:$LINENO: result: no" >&5 |
9398 | echo "${ECHO_T}no" >&6 | |
658974ae | 9399 | fi |
e6cc62c6 | 9400 | |
658974ae | 9401 | |
b12915c1 VZ |
9402 | fi |
9403 | ||
d558c907 VS |
9404 | case "${host}" in |
9405 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
9406 | PATH_IFS=';' |
9407 | LEX_STEM="lexyy" | |
d558c907 VS |
9408 | ;; |
9409 | *) | |
9410 | PATH_IFS=':' | |
9411 | LEX_STEM="lex.yy" | |
9412 | ;; | |
9413 | esac | |
9414 | ||
8284b0c5 MB |
9415 | |
9416 | ||
10f2d63a VZ |
9417 | echo "saving argument cache $wx_arg_cache_file" |
9418 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9419 | |
8284b0c5 | 9420 | |
e6cc62c6 VS |
9421 | |
9422 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9423 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9424 | |
9425 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9426 | if test "$wxUSE_WINE" = "yes"; then | |
9427 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9428 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9429 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9430 | fi | |
10f2d63a VZ |
9431 | |
9432 | if test "$wxUSE_GUI" = "yes"; then | |
9433 | ||
3a922bb4 | 9434 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9435 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9436 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9437 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9438 | fi |
b12915c1 | 9439 | |
3a922bb4 RL |
9440 | if test "$TOOLKIT_GIVEN" = 1; then |
9441 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9442 | var=wxUSE_$toolkit | |
9443 | eval "value=\$${var}" | |
9444 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9445 | done | |
10f2d63a | 9446 | else |
3a922bb4 RL |
9447 | for toolkit in `echo $ALL_TOOLKITS`; do |
9448 | if test "$has_toolkit_in_cache" != 1; then | |
9449 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9450 | else | |
9451 | var=DEFAULT_wxUSE_$toolkit | |
9452 | fi | |
9453 | eval "wxUSE_$toolkit=\$${var}" | |
9454 | done | |
10f2d63a | 9455 | fi |
10f2d63a | 9456 | |
ac0c4cc3 DE |
9457 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9458 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9459 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9460 | |
d558c907 | 9461 | case "${host}" in |
6fa882bd | 9462 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9463 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9464 | esac |
10f2d63a | 9465 | |
3a922bb4 RL |
9466 | case "$NUM_TOOLKITS" in |
9467 | 1) | |
9468 | ;; | |
9469 | 0) | |
e6cc62c6 VS |
9470 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9471 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9472 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9473 | ;; |
9474 | *) | |
e6cc62c6 VS |
9475 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9476 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9477 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9478 | esac |
10f2d63a | 9479 | |
3a922bb4 RL |
9480 | for toolkit in `echo $ALL_TOOLKITS`; do |
9481 | var=wxUSE_$toolkit | |
9482 | eval "value=\$${var}" | |
9483 | if test "x$value" != x; then | |
9484 | cache_var=CACHE_$toolkit | |
9485 | eval "cache=\$${cache_var}" | |
9486 | if test "$cache" = 1; then | |
9487 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9488 | fi | |
9489 | if test "$value" = 1; then | |
9490 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
e6cc62c6 VS |
9491 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9492 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9493 | fi |
9494 | fi | |
9495 | done | |
10f2d63a | 9496 | else |
e6cc62c6 VS |
9497 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 |
9498 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10f2d63a VZ |
9499 | fi |
9500 | ||
43d99b6d VS |
9501 | wants_win32=0 |
9502 | doesnt_want_win32=0 | |
17234b26 MB |
9503 | case "${host}" in |
9504 | *-*-cygwin*) | |
9505 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9506 | wants_win32=1 |
9507 | else | |
9508 | doesnt_want_win32=1 | |
17234b26 MB |
9509 | fi |
9510 | ;; | |
9511 | *-*-mingw*) | |
43d99b6d | 9512 | wants_win32=1 |
17234b26 MB |
9513 | ;; |
9514 | esac | |
9515 | ||
89e6bf6d VZ |
9516 | if test "$wxUSE_WINE" = "yes"; then |
9517 | wants_win32=1 | |
9518 | CC=winegcc | |
9519 | CXX=wineg++ | |
9520 | RESCOMP=wrc | |
9521 | fi | |
9522 | ||
43d99b6d | 9523 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9524 | USE_UNIX=0 |
9525 | USE_WIN32=1 | |
e6cc62c6 | 9526 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9527 | #define __WIN32__ 1 |
e6cc62c6 | 9528 | _ACEOF |
17234b26 | 9529 | |
e6cc62c6 | 9530 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9531 | #define __WIN95__ 1 |
e6cc62c6 | 9532 | _ACEOF |
17234b26 | 9533 | |
e6cc62c6 | 9534 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9535 | #define __WINDOWS__ 1 |
e6cc62c6 | 9536 | _ACEOF |
17234b26 | 9537 | |
e6cc62c6 | 9538 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9539 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9540 | _ACEOF |
17234b26 | 9541 | |
e6cc62c6 | 9542 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9543 | #define STRICT 1 |
e6cc62c6 | 9544 | _ACEOF |
17234b26 | 9545 | |
e6cc62c6 | 9546 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9547 | #define WINVER 0x0400 |
e6cc62c6 | 9548 | _ACEOF |
17234b26 | 9549 | |
43d99b6d VS |
9550 | fi |
9551 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9552 | USE_UNIX=1 |
9553 | USE_WIN32=0 | |
9554 | fi | |
9555 | ||
9556 | if test "$USE_UNIX" = 1 ; then | |
9557 | wxUSE_UNIX=yes | |
e6cc62c6 | 9558 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9559 | #define __UNIX__ 1 |
e6cc62c6 | 9560 | _ACEOF |
17234b26 MB |
9561 | |
9562 | fi | |
9563 | ||
8284b0c5 | 9564 | |
e6cc62c6 | 9565 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9566 | # This file is a shell script that caches the results of configure |
9567 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9568 | # scripts and configure runs, see configure's option --config-cache. |
9569 | # It is not useful on other systems. If it contains results you don't | |
9570 | # want to keep, you may remove or edit it. | |
10f2d63a | 9571 | # |
e6cc62c6 VS |
9572 | # config.status only pays attention to the cache file if you give it |
9573 | # the --recheck option to rerun configure. | |
10f2d63a | 9574 | # |
e6cc62c6 VS |
9575 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9576 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9577 | # following values. | |
9578 | ||
9579 | _ACEOF | |
9580 | ||
10f2d63a VZ |
9581 | # The following way of writing the cache mishandles newlines in values, |
9582 | # but we know of no workaround that is simple, portable, and efficient. | |
9583 | # So, don't put newlines in cache variables' values. | |
9584 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9585 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9586 | { |
9587 | (set) 2>&1 | | |
9588 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9589 | *ac_space=\ *) | |
9590 | # `set' does not quote correctly, so add quotes (double-quote | |
9591 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9592 | sed -n \ | |
9593 | "s/'/'\\\\''/g; | |
9594 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9595 | ;; | |
9596 | *) | |
9597 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9598 | sed -n \ | |
9599 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9600 | ;; | |
9601 | esac; | |
9602 | } | | |
9603 | sed ' | |
9604 | t clear | |
9605 | : clear | |
9606 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9607 | t end | |
9608 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9609 | : end' >>confcache | |
9610 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9611 | if test -w $cache_file; then |
e6cc62c6 VS |
9612 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9613 | cat confcache >$cache_file | |
10f2d63a VZ |
9614 | else |
9615 | echo "not updating unwritable cache $cache_file" | |
9616 | fi | |
9617 | fi | |
9618 | rm -f confcache | |
9619 | ||
e59890c3 | 9620 | if test "$build" != "$host" ; then |
9d353d4a | 9621 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9622 | CC=$host_alias-gcc |
9623 | CXX=$host_alias-c++ | |
9624 | AR=$host_alias-ar | |
9625 | RANLIB=$host_alias-ranlib | |
9626 | DLLTOOL=$host_alias-dlltool | |
9627 | RESCOMP=$host_alias-windres | |
9628 | LD=$host_alias-ld | |
9629 | NM=$host_alias-nm | |
9630 | STRIP=$host_alias-strip | |
9631 | else | |
e6cc62c6 VS |
9632 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9633 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9634 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9635 | fi |
10f2d63a VZ |
9636 | fi |
9637 | ||
ec603395 | 9638 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9639 | ac_ext=c |
9640 | ac_cpp='$CPP $CPPFLAGS' | |
9641 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9642 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9643 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9644 | if test -n "$ac_tool_prefix"; then | |
9645 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9646 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9649 | if test "${ac_cv_prog_CC+set}" = set; then | |
9650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9651 | else | |
9652 | if test -n "$CC"; then | |
9653 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9654 | else | |
9655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9656 | for as_dir in $PATH | |
9657 | do | |
9658 | IFS=$as_save_IFS | |
9659 | test -z "$as_dir" && as_dir=. | |
9660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9662 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9664 | break 2 | |
9665 | fi | |
9666 | done | |
9667 | done | |
9668 | ||
9669 | fi | |
9670 | fi | |
9671 | CC=$ac_cv_prog_CC | |
9672 | if test -n "$CC"; then | |
9673 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9674 | echo "${ECHO_T}$CC" >&6 | |
9675 | else | |
9676 | echo "$as_me:$LINENO: result: no" >&5 | |
9677 | echo "${ECHO_T}no" >&6 | |
9678 | fi | |
9679 | ||
9680 | fi | |
9681 | if test -z "$ac_cv_prog_CC"; then | |
9682 | ac_ct_CC=$CC | |
9683 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9684 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9685 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9687 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9689 | else | |
9690 | if test -n "$ac_ct_CC"; then | |
9691 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9692 | else | |
9693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9694 | for as_dir in $PATH | |
9695 | do | |
9696 | IFS=$as_save_IFS | |
9697 | test -z "$as_dir" && as_dir=. | |
9698 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9700 | ac_cv_prog_ac_ct_CC="gcc" | |
9701 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9702 | break 2 | |
9703 | fi | |
9704 | done | |
9705 | done | |
9706 | ||
9707 | fi | |
9708 | fi | |
9709 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9710 | if test -n "$ac_ct_CC"; then | |
9711 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9712 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9713 | else | |
9714 | echo "$as_me:$LINENO: result: no" >&5 | |
9715 | echo "${ECHO_T}no" >&6 | |
9716 | fi | |
9717 | ||
9718 | CC=$ac_ct_CC | |
9719 | else | |
9720 | CC="$ac_cv_prog_CC" | |
9721 | fi | |
9722 | ||
9723 | if test -z "$CC"; then | |
9724 | if test -n "$ac_tool_prefix"; then | |
9725 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9726 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9727 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9729 | if test "${ac_cv_prog_CC+set}" = set; then | |
9730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9731 | else |
9732 | if test -n "$CC"; then | |
9733 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9734 | else |
e6cc62c6 VS |
9735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9736 | for as_dir in $PATH | |
9737 | do | |
9738 | IFS=$as_save_IFS | |
9739 | test -z "$as_dir" && as_dir=. | |
9740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9742 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9744 | break 2 | |
9745 | fi | |
9746 | done | |
9747 | done | |
9748 | ||
10f2d63a | 9749 | fi |
6232543b | 9750 | fi |
e6cc62c6 | 9751 | CC=$ac_cv_prog_CC |
6232543b | 9752 | if test -n "$CC"; then |
e6cc62c6 VS |
9753 | echo "$as_me:$LINENO: result: $CC" >&5 |
9754 | echo "${ECHO_T}$CC" >&6 | |
9755 | else | |
9756 | echo "$as_me:$LINENO: result: no" >&5 | |
9757 | echo "${ECHO_T}no" >&6 | |
9758 | fi | |
9759 | ||
9760 | fi | |
9761 | if test -z "$ac_cv_prog_CC"; then | |
9762 | ac_ct_CC=$CC | |
9763 | # Extract the first word of "cc", so it can be a program name with args. | |
9764 | set dummy cc; ac_word=$2 | |
9765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9767 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9769 | else | |
9770 | if test -n "$ac_ct_CC"; then | |
9771 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9772 | else | |
9773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9774 | for as_dir in $PATH | |
9775 | do | |
9776 | IFS=$as_save_IFS | |
9777 | test -z "$as_dir" && as_dir=. | |
9778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9779 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9780 | ac_cv_prog_ac_ct_CC="cc" | |
9781 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9782 | break 2 | |
9783 | fi | |
9784 | done | |
9785 | done | |
9786 | ||
9787 | fi | |
9788 | fi | |
9789 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9790 | if test -n "$ac_ct_CC"; then | |
9791 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9792 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9793 | else | |
9794 | echo "$as_me:$LINENO: result: no" >&5 | |
9795 | echo "${ECHO_T}no" >&6 | |
9796 | fi | |
9797 | ||
9798 | CC=$ac_ct_CC | |
247f5006 | 9799 | else |
e6cc62c6 | 9800 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
9801 | fi |
9802 | ||
e6cc62c6 | 9803 | fi |
5c6fa7d2 RR |
9804 | if test -z "$CC"; then |
9805 | # Extract the first word of "cc", so it can be a program name with args. | |
9806 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
9807 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9809 | if test "${ac_cv_prog_CC+set}" = set; then | |
9810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9811 | else |
9812 | if test -n "$CC"; then | |
9813 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9814 | else | |
9815 | ac_prog_rejected=no | |
e6cc62c6 VS |
9816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9817 | for as_dir in $PATH | |
9818 | do | |
9819 | IFS=$as_save_IFS | |
9820 | test -z "$as_dir" && as_dir=. | |
9821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9823 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9824 | ac_prog_rejected=yes | |
9825 | continue | |
9826 | fi | |
9827 | ac_cv_prog_CC="cc" | |
9828 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9829 | break 2 | |
9830 | fi | |
9831 | done | |
9832 | done | |
9833 | ||
328a083c RR |
9834 | if test $ac_prog_rejected = yes; then |
9835 | # We found a bogon in the path, so make sure we never use it. | |
9836 | set dummy $ac_cv_prog_CC | |
9837 | shift | |
e6cc62c6 | 9838 | if test $# != 0; then |
328a083c | 9839 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9840 | # However, it has the same basename, so the bogon will be chosen |
9841 | # first if we set CC to just the basename; use the full file name. | |
9842 | shift | |
e6cc62c6 | 9843 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 9844 | fi |
1e487827 VS |
9845 | fi |
9846 | fi | |
9847 | fi | |
e6cc62c6 | 9848 | CC=$ac_cv_prog_CC |
1e487827 | 9849 | if test -n "$CC"; then |
e6cc62c6 VS |
9850 | echo "$as_me:$LINENO: result: $CC" >&5 |
9851 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9852 | else |
e6cc62c6 VS |
9853 | echo "$as_me:$LINENO: result: no" >&5 |
9854 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9855 | fi |
1e487827 | 9856 | |
e6cc62c6 VS |
9857 | fi |
9858 | if test -z "$CC"; then | |
9859 | if test -n "$ac_tool_prefix"; then | |
9860 | for ac_prog in cl | |
9861 | do | |
9862 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9863 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9864 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9865 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9866 | if test "${ac_cv_prog_CC+set}" = set; then | |
9867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9868 | else |
9869 | if test -n "$CC"; then | |
9870 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9871 | else | |
e6cc62c6 VS |
9872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9873 | for as_dir in $PATH | |
9874 | do | |
9875 | IFS=$as_save_IFS | |
9876 | test -z "$as_dir" && as_dir=. | |
9877 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9878 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9879 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9880 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9881 | break 2 | |
9882 | fi | |
9883 | done | |
9884 | done | |
9885 | ||
f09359cf VS |
9886 | fi |
9887 | fi | |
e6cc62c6 | 9888 | CC=$ac_cv_prog_CC |
f09359cf | 9889 | if test -n "$CC"; then |
e6cc62c6 VS |
9890 | echo "$as_me:$LINENO: result: $CC" >&5 |
9891 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 9892 | else |
e6cc62c6 VS |
9893 | echo "$as_me:$LINENO: result: no" >&5 |
9894 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 9895 | fi |
1e487827 | 9896 | |
e6cc62c6 VS |
9897 | test -n "$CC" && break |
9898 | done | |
9899 | fi | |
9900 | if test -z "$CC"; then | |
9901 | ac_ct_CC=$CC | |
9902 | for ac_prog in cl | |
9903 | do | |
9904 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9905 | set dummy $ac_prog; ac_word=$2 | |
9906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9908 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9910 | else | |
9911 | if test -n "$ac_ct_CC"; then | |
9912 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9913 | else | |
9914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9915 | for as_dir in $PATH | |
9916 | do | |
9917 | IFS=$as_save_IFS | |
9918 | test -z "$as_dir" && as_dir=. | |
9919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9921 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
9922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9923 | break 2 | |
9924 | fi | |
9925 | done | |
9926 | done | |
f09359cf | 9927 | |
e6cc62c6 VS |
9928 | fi |
9929 | fi | |
9930 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9931 | if test -n "$ac_ct_CC"; then | |
9932 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9933 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9934 | else | |
9935 | echo "$as_me:$LINENO: result: no" >&5 | |
9936 | echo "${ECHO_T}no" >&6 | |
9937 | fi | |
f09359cf | 9938 | |
e6cc62c6 VS |
9939 | test -n "$ac_ct_CC" && break |
9940 | done | |
247f5006 | 9941 | |
e6cc62c6 VS |
9942 | CC=$ac_ct_CC |
9943 | fi | |
9944 | ||
9945 | fi | |
9946 | ||
9947 | ||
9948 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
9949 | See \`config.log' for more details." >&5 | |
9950 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
9951 | See \`config.log' for more details." >&2;} | |
9952 | { (exit 1); exit 1; }; } | |
9953 | ||
9954 | # Provide some information about the compiler. | |
9955 | echo "$as_me:$LINENO:" \ | |
9956 | "checking for C compiler version" >&5 | |
9957 | ac_compiler=`set X $ac_compile; echo $2` | |
9958 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
9959 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
9960 | ac_status=$? | |
9961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9962 | (exit $ac_status); } | |
9963 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
9964 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
9965 | ac_status=$? | |
9966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9967 | (exit $ac_status); } | |
9968 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
9969 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
9970 | ac_status=$? | |
9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9972 | (exit $ac_status); } | |
9973 | ||
9974 | cat >conftest.$ac_ext <<_ACEOF | |
9975 | #line $LINENO "configure" | |
9976 | /* confdefs.h. */ | |
9977 | _ACEOF | |
9978 | cat confdefs.h >>conftest.$ac_ext | |
9979 | cat >>conftest.$ac_ext <<_ACEOF | |
9980 | /* end confdefs.h. */ | |
9981 | ||
9982 | int | |
9983 | main () | |
9984 | { | |
247f5006 | 9985 | |
e6cc62c6 VS |
9986 | ; |
9987 | return 0; | |
9988 | } | |
9989 | _ACEOF | |
9990 | ac_clean_files_save=$ac_clean_files | |
9991 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
9992 | # Try to create an executable without -o first, disregard a.out. | |
9993 | # It will help us diagnose broken compilers, and finding out an intuition | |
9994 | # of exeext. | |
9995 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
9996 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
9997 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
9998 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
9999 | (eval $ac_link_default) 2>&5 | |
10000 | ac_status=$? | |
10001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10002 | (exit $ac_status); }; then | |
10003 | # Find the output, starting from the most likely. This scheme is | |
10004 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10005 | # resort. | |
10006 | ||
10007 | # Be careful to initialize this variable, since it used to be cached. | |
10008 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10009 | ac_cv_exeext= | |
10010 | # b.out is created by i960 compilers. | |
10011 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10012 | do | |
10013 | test -f "$ac_file" || continue | |
10014 | case $ac_file in | |
10015 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10016 | ;; | |
10017 | conftest.$ac_ext ) | |
10018 | # This is the source file. | |
10019 | ;; | |
10020 | [ab].out ) | |
10021 | # We found the default executable, but exeext='' is most | |
10022 | # certainly right. | |
10023 | break;; | |
10024 | *.* ) | |
10025 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10026 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10027 | # but it would be cool to find out if it's true. Does anybody | |
10028 | # maintain Libtool? --akim. | |
10029 | export ac_cv_exeext | |
10030 | break;; | |
10031 | * ) | |
10032 | break;; | |
10033 | esac | |
10034 | done | |
10035 | else | |
10036 | echo "$as_me: failed program was:" >&5 | |
10037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10038 | ||
10039 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10040 | See \`config.log' for more details." >&5 | |
10041 | echo "$as_me: error: C compiler cannot create executables | |
10042 | See \`config.log' for more details." >&2;} | |
10043 | { (exit 77); exit 77; }; } | |
10044 | fi | |
10045 | ||
10046 | ac_exeext=$ac_cv_exeext | |
10047 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10048 | echo "${ECHO_T}$ac_file" >&6 | |
10049 | ||
10050 | # Check the compiler produces executables we can run. If not, either | |
10051 | # the compiler is broken, or we cross compile. | |
10052 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10053 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10054 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10055 | # If not cross compiling, check that we can run a simple program. | |
10056 | if test "$cross_compiling" != yes; then | |
10057 | if { ac_try='./$ac_file' | |
10058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10059 | (eval $ac_try) 2>&5 | |
10060 | ac_status=$? | |
10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10062 | (exit $ac_status); }; }; then | |
10063 | cross_compiling=no | |
698dcdb6 | 10064 | else |
e6cc62c6 VS |
10065 | if test "$cross_compiling" = maybe; then |
10066 | cross_compiling=yes | |
10067 | else | |
10068 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10069 | If you meant to cross compile, use \`--host'. | |
10070 | See \`config.log' for more details." >&5 | |
10071 | echo "$as_me: error: cannot run C compiled programs. | |
10072 | If you meant to cross compile, use \`--host'. | |
10073 | See \`config.log' for more details." >&2;} | |
10074 | { (exit 1); exit 1; }; } | |
10075 | fi | |
698dcdb6 | 10076 | fi |
52127426 | 10077 | fi |
e6cc62c6 VS |
10078 | echo "$as_me:$LINENO: result: yes" >&5 |
10079 | echo "${ECHO_T}yes" >&6 | |
10080 | ||
10081 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10082 | ac_clean_files=$ac_clean_files_save | |
10083 | # Check the compiler produces executables we can run. If not, either | |
10084 | # the compiler is broken, or we cross compile. | |
10085 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10086 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10087 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10088 | echo "${ECHO_T}$cross_compiling" >&6 | |
10089 | ||
10090 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10091 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10093 | (eval $ac_link) 2>&5 | |
10094 | ac_status=$? | |
10095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10096 | (exit $ac_status); }; then | |
10097 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10098 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10099 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10100 | # `rm'. | |
10101 | for ac_file in conftest.exe conftest conftest.*; do | |
10102 | test -f "$ac_file" || continue | |
10103 | case $ac_file in | |
10104 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10105 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10106 | export ac_cv_exeext | |
10107 | break;; | |
10108 | * ) break;; | |
10109 | esac | |
10110 | done | |
5c6fa7d2 | 10111 | else |
e6cc62c6 VS |
10112 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10113 | See \`config.log' for more details." >&5 | |
10114 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10115 | See \`config.log' for more details." >&2;} | |
10116 | { (exit 1); exit 1; }; } | |
10117 | fi | |
10118 | ||
10119 | rm -f conftest$ac_cv_exeext | |
10120 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10121 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10122 | ||
10123 | rm -f conftest.$ac_ext | |
10124 | EXEEXT=$ac_cv_exeext | |
10125 | ac_exeext=$EXEEXT | |
10126 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10127 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10128 | if test "${ac_cv_objext+set}" = set; then | |
10129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10130 | else | |
10131 | cat >conftest.$ac_ext <<_ACEOF | |
10132 | #line $LINENO "configure" | |
10133 | /* confdefs.h. */ | |
10134 | _ACEOF | |
10135 | cat confdefs.h >>conftest.$ac_ext | |
10136 | cat >>conftest.$ac_ext <<_ACEOF | |
10137 | /* end confdefs.h. */ | |
10138 | ||
10139 | int | |
10140 | main () | |
10141 | { | |
f09359cf | 10142 | |
e6cc62c6 VS |
10143 | ; |
10144 | return 0; | |
10145 | } | |
10146 | _ACEOF | |
10147 | rm -f conftest.o conftest.obj | |
10148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10149 | (eval $ac_compile) 2>&5 | |
10150 | ac_status=$? | |
10151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10152 | (exit $ac_status); }; then | |
10153 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10154 | case $ac_file in | |
10155 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10156 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10157 | break;; | |
10158 | esac | |
10159 | done | |
a0b9e27f | 10160 | else |
e6cc62c6 VS |
10161 | echo "$as_me: failed program was:" >&5 |
10162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10163 | ||
10164 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10165 | See \`config.log' for more details." >&5 | |
10166 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10167 | See \`config.log' for more details." >&2;} | |
10168 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10169 | fi |
247f5006 | 10170 | |
e6cc62c6 VS |
10171 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10172 | fi | |
10173 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10174 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10175 | OBJEXT=$ac_cv_objext | |
10176 | ac_objext=$OBJEXT | |
10177 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10178 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10179 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10181 | else |
e6cc62c6 VS |
10182 | cat >conftest.$ac_ext <<_ACEOF |
10183 | #line $LINENO "configure" | |
10184 | /* confdefs.h. */ | |
10185 | _ACEOF | |
10186 | cat confdefs.h >>conftest.$ac_ext | |
10187 | cat >>conftest.$ac_ext <<_ACEOF | |
10188 | /* end confdefs.h. */ | |
10189 | ||
10190 | int | |
10191 | main () | |
10192 | { | |
10193 | #ifndef __GNUC__ | |
10194 | choke me | |
10195 | #endif | |
10196 | ||
10197 | ; | |
10198 | return 0; | |
10199 | } | |
10200 | _ACEOF | |
10201 | rm -f conftest.$ac_objext | |
10202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10203 | (eval $ac_compile) 2>&5 | |
10204 | ac_status=$? | |
10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10206 | (exit $ac_status); } && | |
10207 | { ac_try='test -s conftest.$ac_objext' | |
10208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10209 | (eval $ac_try) 2>&5 | |
10210 | ac_status=$? | |
10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10212 | (exit $ac_status); }; }; then | |
10213 | ac_compiler_gnu=yes | |
10214 | else | |
10215 | echo "$as_me: failed program was:" >&5 | |
10216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10217 | ||
10218 | ac_compiler_gnu=no | |
10219 | fi | |
10220 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10221 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10222 | ||
10223 | fi | |
10224 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10225 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10226 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10227 | ac_test_CFLAGS=${CFLAGS+set} | |
10228 | ac_save_CFLAGS=$CFLAGS | |
10229 | CFLAGS="-g" | |
10230 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10231 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10232 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10234 | else | |
10235 | cat >conftest.$ac_ext <<_ACEOF | |
10236 | #line $LINENO "configure" | |
10237 | /* confdefs.h. */ | |
10238 | _ACEOF | |
10239 | cat confdefs.h >>conftest.$ac_ext | |
10240 | cat >>conftest.$ac_ext <<_ACEOF | |
10241 | /* end confdefs.h. */ | |
10242 | ||
10243 | int | |
10244 | main () | |
10245 | { | |
10246 | ||
10247 | ; | |
10248 | return 0; | |
10249 | } | |
10250 | _ACEOF | |
10251 | rm -f conftest.$ac_objext | |
10252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10253 | (eval $ac_compile) 2>&5 | |
10254 | ac_status=$? | |
10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10256 | (exit $ac_status); } && | |
10257 | { ac_try='test -s conftest.$ac_objext' | |
10258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10259 | (eval $ac_try) 2>&5 | |
10260 | ac_status=$? | |
10261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10262 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10263 | ac_cv_prog_cc_g=yes |
10264 | else | |
e6cc62c6 VS |
10265 | echo "$as_me: failed program was:" >&5 |
10266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10267 | |
e6cc62c6 | 10268 | ac_cv_prog_cc_g=no |
10f2d63a | 10269 | fi |
e6cc62c6 VS |
10270 | rm -f conftest.$ac_objext conftest.$ac_ext |
10271 | fi | |
10272 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10273 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10274 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10275 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10276 | elif test $ac_cv_prog_cc_g = yes; then |
10277 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10278 | CFLAGS="-g -O2" |
10279 | else | |
f09359cf | 10280 | CFLAGS="-g" |
10f2d63a | 10281 | fi |
5c0a20c3 | 10282 | else |
f09359cf VS |
10283 | if test "$GCC" = yes; then |
10284 | CFLAGS="-O2" | |
10285 | else | |
10286 | CFLAGS= | |
10287 | fi | |
10f2d63a | 10288 | fi |
e6cc62c6 VS |
10289 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10290 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10291 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10293 | else | |
10294 | ac_cv_prog_cc_stdc=no | |
10295 | ac_save_CC=$CC | |
10296 | cat >conftest.$ac_ext <<_ACEOF | |
10297 | #line $LINENO "configure" | |
10298 | /* confdefs.h. */ | |
10299 | _ACEOF | |
10300 | cat confdefs.h >>conftest.$ac_ext | |
10301 | cat >>conftest.$ac_ext <<_ACEOF | |
10302 | /* end confdefs.h. */ | |
10303 | #include <stdarg.h> | |
10304 | #include <stdio.h> | |
10305 | #include <sys/types.h> | |
10306 | #include <sys/stat.h> | |
10307 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10308 | struct buf { int x; }; | |
10309 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10310 | static char *e (p, i) | |
10311 | char **p; | |
10312 | int i; | |
10313 | { | |
10314 | return p[i]; | |
10315 | } | |
10316 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10317 | { | |
10318 | char *s; | |
10319 | va_list v; | |
10320 | va_start (v,p); | |
10321 | s = g (p, va_arg (v,int)); | |
10322 | va_end (v); | |
10323 | return s; | |
10324 | } | |
10325 | int test (int i, double x); | |
10326 | struct s1 {int (*f) (int a);}; | |
10327 | struct s2 {int (*f) (double a);}; | |
10328 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10329 | int argc; | |
10330 | char **argv; | |
10331 | int | |
10332 | main () | |
10333 | { | |
10334 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10335 | ; | |
10336 | return 0; | |
10337 | } | |
10338 | _ACEOF | |
10339 | # Don't try gcc -ansi; that turns off useful extensions and | |
10340 | # breaks some systems' header files. | |
10341 | # AIX -qlanglvl=ansi | |
10342 | # Ultrix and OSF/1 -std1 | |
10343 | # HP-UX 10.20 and later -Ae | |
10344 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10345 | # SVR4 -Xc -D__EXTENSIONS__ | |
10346 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10347 | do | |
10348 | CC="$ac_save_CC $ac_arg" | |
10349 | rm -f conftest.$ac_objext | |
10350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10351 | (eval $ac_compile) 2>&5 | |
10352 | ac_status=$? | |
10353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10354 | (exit $ac_status); } && | |
10355 | { ac_try='test -s conftest.$ac_objext' | |
10356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10357 | (eval $ac_try) 2>&5 | |
10358 | ac_status=$? | |
10359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10360 | (exit $ac_status); }; }; then | |
10361 | ac_cv_prog_cc_stdc=$ac_arg | |
10362 | break | |
10363 | else | |
10364 | echo "$as_me: failed program was:" >&5 | |
10365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10366 | ||
10367 | fi | |
10368 | rm -f conftest.$ac_objext | |
10369 | done | |
10370 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10371 | CC=$ac_save_CC | |
10372 | ||
10373 | fi | |
10374 | ||
10375 | case "x$ac_cv_prog_cc_stdc" in | |
10376 | x|xno) | |
10377 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10378 | echo "${ECHO_T}none needed" >&6 ;; | |
10379 | *) | |
10380 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10381 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10382 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10383 | esac | |
10384 | ||
10385 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10386 | # in C++ we need to declare it. In case someone uses the same compiler | |
10387 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10388 | # the declaration of exit, since it's the most demanding environment. | |
10389 | cat >conftest.$ac_ext <<_ACEOF | |
10390 | #ifndef __cplusplus | |
10391 | choke me | |
10392 | #endif | |
10393 | _ACEOF | |
10394 | rm -f conftest.$ac_objext | |
10395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10396 | (eval $ac_compile) 2>&5 | |
10397 | ac_status=$? | |
10398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10399 | (exit $ac_status); } && | |
10400 | { ac_try='test -s conftest.$ac_objext' | |
10401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10402 | (eval $ac_try) 2>&5 | |
10403 | ac_status=$? | |
10404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10405 | (exit $ac_status); }; }; then | |
10406 | for ac_declaration in \ | |
10407 | ''\ | |
10408 | '#include <stdlib.h>' \ | |
10409 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
10410 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10411 | 'extern "C" void exit (int) throw ();' \ | |
10412 | 'extern "C" void exit (int);' \ | |
10413 | 'void exit (int);' | |
10414 | do | |
10415 | cat >conftest.$ac_ext <<_ACEOF | |
10416 | #line $LINENO "configure" | |
10417 | /* confdefs.h. */ | |
10418 | _ACEOF | |
10419 | cat confdefs.h >>conftest.$ac_ext | |
10420 | cat >>conftest.$ac_ext <<_ACEOF | |
10421 | /* end confdefs.h. */ | |
10422 | #include <stdlib.h> | |
10423 | $ac_declaration | |
10424 | int | |
10425 | main () | |
10426 | { | |
10427 | exit (42); | |
10428 | ; | |
10429 | return 0; | |
10430 | } | |
10431 | _ACEOF | |
10432 | rm -f conftest.$ac_objext | |
10433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10434 | (eval $ac_compile) 2>&5 | |
10435 | ac_status=$? | |
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10437 | (exit $ac_status); } && | |
10438 | { ac_try='test -s conftest.$ac_objext' | |
10439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10440 | (eval $ac_try) 2>&5 | |
10441 | ac_status=$? | |
10442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10443 | (exit $ac_status); }; }; then | |
10444 | : | |
10445 | else | |
10446 | echo "$as_me: failed program was:" >&5 | |
10447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10448 | ||
10449 | continue | |
10450 | fi | |
10451 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10452 | cat >conftest.$ac_ext <<_ACEOF | |
10453 | #line $LINENO "configure" | |
10454 | /* confdefs.h. */ | |
10455 | _ACEOF | |
10456 | cat confdefs.h >>conftest.$ac_ext | |
10457 | cat >>conftest.$ac_ext <<_ACEOF | |
10458 | /* end confdefs.h. */ | |
10459 | $ac_declaration | |
10460 | int | |
10461 | main () | |
10462 | { | |
10463 | exit (42); | |
10464 | ; | |
10465 | return 0; | |
10466 | } | |
10467 | _ACEOF | |
10468 | rm -f conftest.$ac_objext | |
10469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10470 | (eval $ac_compile) 2>&5 | |
10471 | ac_status=$? | |
10472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10473 | (exit $ac_status); } && | |
10474 | { ac_try='test -s conftest.$ac_objext' | |
10475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10476 | (eval $ac_try) 2>&5 | |
10477 | ac_status=$? | |
10478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10479 | (exit $ac_status); }; }; then | |
10480 | break | |
10481 | else | |
10482 | echo "$as_me: failed program was:" >&5 | |
10483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10484 | ||
10485 | fi | |
10486 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10487 | done | |
10488 | rm -f conftest* | |
10489 | if test -n "$ac_declaration"; then | |
10490 | echo '#ifdef __cplusplus' >>confdefs.h | |
10491 | echo $ac_declaration >>confdefs.h | |
10492 | echo '#endif' >>confdefs.h | |
10493 | fi | |
10494 | ||
10495 | else | |
10496 | echo "$as_me: failed program was:" >&5 | |
10497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10498 | ||
10499 | fi | |
10500 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10501 | ac_ext=c | |
10502 | ac_cpp='$CPP $CPPFLAGS' | |
10503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10506 | |
10507 | ||
e6cc62c6 VS |
10508 | |
10509 | ac_ext=c | |
10510 | ac_cpp='$CPP $CPPFLAGS' | |
10511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10514 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10515 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10516 | # On Suns, sometimes $CPP names a directory. |
10517 | if test -n "$CPP" && test -d "$CPP"; then | |
10518 | CPP= | |
10519 | fi | |
10520 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10521 | if test "${ac_cv_prog_CPP+set}" = set; then |
10522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10523 | else | |
10524 | # Double quotes because CPP needs to be expanded | |
10525 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10526 | do | |
10527 | ac_preproc_ok=false | |
10528 | for ac_c_preproc_warn_flag in '' yes | |
10529 | do | |
10530 | # Use a header file that comes with gcc, so configuring glibc | |
10531 | # with a fresh cross-compiler works. | |
10532 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10533 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10534 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10535 | # not just through cpp. "Syntax error" is here to catch this case. |
10536 | cat >conftest.$ac_ext <<_ACEOF | |
10537 | #line $LINENO "configure" | |
10538 | /* confdefs.h. */ | |
10539 | _ACEOF | |
10540 | cat confdefs.h >>conftest.$ac_ext | |
10541 | cat >>conftest.$ac_ext <<_ACEOF | |
10542 | /* end confdefs.h. */ | |
10543 | #ifdef __STDC__ | |
10544 | # include <limits.h> | |
10545 | #else | |
10546 | # include <assert.h> | |
10547 | #endif | |
10548 | Syntax error | |
10549 | _ACEOF | |
10550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10552 | ac_status=$? | |
10553 | grep -v '^ *+' conftest.er1 >conftest.err | |
10554 | rm -f conftest.er1 | |
10555 | cat conftest.err >&5 | |
10556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10557 | (exit $ac_status); } >/dev/null; then | |
10558 | if test -s conftest.err; then | |
10559 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10560 | else | |
10561 | ac_cpp_err= | |
10562 | fi | |
10f2d63a | 10563 | else |
e6cc62c6 VS |
10564 | ac_cpp_err=yes |
10565 | fi | |
10566 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10567 | : |
247f5006 | 10568 | else |
e6cc62c6 VS |
10569 | echo "$as_me: failed program was:" >&5 |
10570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10571 | ||
10572 | # Broken: fails on valid input. | |
10573 | continue | |
10574 | fi | |
10575 | rm -f conftest.err conftest.$ac_ext | |
10576 | ||
10577 | # OK, works on sane cases. Now check whether non-existent headers | |
10578 | # can be detected and how. | |
10579 | cat >conftest.$ac_ext <<_ACEOF | |
10580 | #line $LINENO "configure" | |
10581 | /* confdefs.h. */ | |
10582 | _ACEOF | |
10583 | cat confdefs.h >>conftest.$ac_ext | |
10584 | cat >>conftest.$ac_ext <<_ACEOF | |
10585 | /* end confdefs.h. */ | |
10586 | #include <ac_nonexistent.h> | |
10587 | _ACEOF | |
10588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10590 | ac_status=$? | |
10591 | grep -v '^ *+' conftest.er1 >conftest.err | |
10592 | rm -f conftest.er1 | |
10593 | cat conftest.err >&5 | |
10594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10595 | (exit $ac_status); } >/dev/null; then | |
10596 | if test -s conftest.err; then | |
10597 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10598 | else | |
10599 | ac_cpp_err= | |
10600 | fi | |
10f2d63a | 10601 | else |
e6cc62c6 | 10602 | ac_cpp_err=yes |
579d8138 | 10603 | fi |
e6cc62c6 VS |
10604 | if test -z "$ac_cpp_err"; then |
10605 | # Broken: success on invalid input. | |
10606 | continue | |
10607 | else | |
10608 | echo "$as_me: failed program was:" >&5 | |
10609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10610 | ||
10611 | # Passes both tests. | |
10612 | ac_preproc_ok=: | |
10613 | break | |
52127426 | 10614 | fi |
e6cc62c6 VS |
10615 | rm -f conftest.err conftest.$ac_ext |
10616 | ||
10617 | done | |
10618 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10619 | rm -f conftest.err conftest.$ac_ext | |
10620 | if $ac_preproc_ok; then | |
10621 | break | |
8284b0c5 | 10622 | fi |
e6cc62c6 VS |
10623 | |
10624 | done | |
10625 | ac_cv_prog_CPP=$CPP | |
10626 | ||
10627 | fi | |
10628 | CPP=$ac_cv_prog_CPP | |
10629 | else | |
10630 | ac_cv_prog_CPP=$CPP | |
10631 | fi | |
10632 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10633 | echo "${ECHO_T}$CPP" >&6 | |
10634 | ac_preproc_ok=false | |
10635 | for ac_c_preproc_warn_flag in '' yes | |
10636 | do | |
10637 | # Use a header file that comes with gcc, so configuring glibc | |
10638 | # with a fresh cross-compiler works. | |
10639 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10640 | # <limits.h> exists even on freestanding compilers. | |
10641 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10642 | # not just through cpp. "Syntax error" is here to catch this case. | |
10643 | cat >conftest.$ac_ext <<_ACEOF | |
10644 | #line $LINENO "configure" | |
10645 | /* confdefs.h. */ | |
10646 | _ACEOF | |
10647 | cat confdefs.h >>conftest.$ac_ext | |
10648 | cat >>conftest.$ac_ext <<_ACEOF | |
10649 | /* end confdefs.h. */ | |
10650 | #ifdef __STDC__ | |
10651 | # include <limits.h> | |
10652 | #else | |
10653 | # include <assert.h> | |
10654 | #endif | |
10655 | Syntax error | |
10656 | _ACEOF | |
10657 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10658 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10659 | ac_status=$? | |
10660 | grep -v '^ *+' conftest.er1 >conftest.err | |
10661 | rm -f conftest.er1 | |
10662 | cat conftest.err >&5 | |
10663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10664 | (exit $ac_status); } >/dev/null; then | |
10665 | if test -s conftest.err; then | |
10666 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10667 | else | |
10668 | ac_cpp_err= | |
10669 | fi | |
10670 | else | |
10671 | ac_cpp_err=yes | |
10672 | fi | |
10673 | if test -z "$ac_cpp_err"; then | |
10674 | : | |
10675 | else | |
10676 | echo "$as_me: failed program was:" >&5 | |
10677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10678 | ||
10679 | # Broken: fails on valid input. | |
10680 | continue | |
10681 | fi | |
10682 | rm -f conftest.err conftest.$ac_ext | |
10683 | ||
10684 | # OK, works on sane cases. Now check whether non-existent headers | |
10685 | # can be detected and how. | |
10686 | cat >conftest.$ac_ext <<_ACEOF | |
10687 | #line $LINENO "configure" | |
10688 | /* confdefs.h. */ | |
10689 | _ACEOF | |
10690 | cat confdefs.h >>conftest.$ac_ext | |
10691 | cat >>conftest.$ac_ext <<_ACEOF | |
10692 | /* end confdefs.h. */ | |
10693 | #include <ac_nonexistent.h> | |
10694 | _ACEOF | |
10695 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10696 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10697 | ac_status=$? | |
10698 | grep -v '^ *+' conftest.er1 >conftest.err | |
10699 | rm -f conftest.er1 | |
10700 | cat conftest.err >&5 | |
10701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10702 | (exit $ac_status); } >/dev/null; then | |
10703 | if test -s conftest.err; then | |
10704 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10705 | else | |
10706 | ac_cpp_err= | |
10707 | fi | |
10708 | else | |
10709 | ac_cpp_err=yes | |
10710 | fi | |
10711 | if test -z "$ac_cpp_err"; then | |
10712 | # Broken: success on invalid input. | |
10713 | continue | |
10714 | else | |
10715 | echo "$as_me: failed program was:" >&5 | |
10716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10717 | ||
10718 | # Passes both tests. | |
10719 | ac_preproc_ok=: | |
10720 | break | |
a0b9e27f | 10721 | fi |
e6cc62c6 VS |
10722 | rm -f conftest.err conftest.$ac_ext |
10723 | ||
10724 | done | |
10725 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10726 | rm -f conftest.err conftest.$ac_ext | |
10727 | if $ac_preproc_ok; then | |
10728 | : | |
10729 | else | |
10730 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10731 | See \`config.log' for more details." >&5 | |
10732 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10733 | See \`config.log' for more details." >&2;} | |
10734 | { (exit 1); exit 1; }; } | |
10735 | fi | |
10736 | ||
10737 | ac_ext=c | |
10738 | ac_cpp='$CPP $CPPFLAGS' | |
10739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10742 | ||
10743 | ||
10744 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10745 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10746 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 10748 | else |
e6cc62c6 VS |
10749 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
10750 | then ac_cv_prog_egrep='grep -E' | |
10751 | else ac_cv_prog_egrep='egrep' | |
10752 | fi | |
10f2d63a | 10753 | fi |
e6cc62c6 VS |
10754 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
10755 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10756 | EGREP=$ac_cv_prog_egrep | |
10757 | ||
10f2d63a | 10758 | |
e6cc62c6 VS |
10759 | if test $ac_cv_c_compiler_gnu = yes; then |
10760 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10761 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10762 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10764 | else |
10765 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 VS |
10766 | cat >conftest.$ac_ext <<_ACEOF |
10767 | #line $LINENO "configure" | |
10768 | /* confdefs.h. */ | |
10769 | _ACEOF | |
10770 | cat confdefs.h >>conftest.$ac_ext | |
10771 | cat >>conftest.$ac_ext <<_ACEOF | |
10772 | /* end confdefs.h. */ | |
10f2d63a VZ |
10773 | #include <sgtty.h> |
10774 | Autoconf TIOCGETP | |
e6cc62c6 | 10775 | _ACEOF |
10f2d63a | 10776 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10777 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10778 | ac_cv_prog_gcc_traditional=yes |
10779 | else | |
10f2d63a VZ |
10780 | ac_cv_prog_gcc_traditional=no |
10781 | fi | |
10782 | rm -f conftest* | |
10783 | ||
8284b0c5 | 10784 | |
10f2d63a | 10785 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 VS |
10786 | cat >conftest.$ac_ext <<_ACEOF |
10787 | #line $LINENO "configure" | |
10788 | /* confdefs.h. */ | |
10789 | _ACEOF | |
10790 | cat confdefs.h >>conftest.$ac_ext | |
10791 | cat >>conftest.$ac_ext <<_ACEOF | |
10792 | /* end confdefs.h. */ | |
10f2d63a VZ |
10793 | #include <termio.h> |
10794 | Autoconf TCGETA | |
e6cc62c6 | 10795 | _ACEOF |
10f2d63a | 10796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10797 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10798 | ac_cv_prog_gcc_traditional=yes |
10799 | fi | |
10800 | rm -f conftest* | |
10801 | ||
10802 | fi | |
10803 | fi | |
e6cc62c6 VS |
10804 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10805 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10806 | if test $ac_cv_prog_gcc_traditional = yes; then |
10807 | CC="$CC -traditional" | |
10808 | fi | |
10809 | fi | |
10810 | ||
8284b0c5 MB |
10811 | |
10812 | ||
e6cc62c6 VS |
10813 | |
10814 | ac_ext=cc | |
1e487827 | 10815 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
10816 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10817 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10818 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10819 | |
698dcdb6 | 10820 | |
ec603395 | 10821 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
10822 | ac_ext=cc |
10823 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10824 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10825 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10826 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10827 | if test -n "$ac_tool_prefix"; then | |
10828 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10829 | do | |
10830 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10831 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10832 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10834 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10836 | else |
10837 | if test -n "$CXX"; then | |
10838 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10839 | else | |
e6cc62c6 VS |
10840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10841 | for as_dir in $PATH | |
10842 | do | |
10843 | IFS=$as_save_IFS | |
10844 | test -z "$as_dir" && as_dir=. | |
10845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10846 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10847 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10849 | break 2 | |
10850 | fi | |
10851 | done | |
10852 | done | |
10853 | ||
10f2d63a VZ |
10854 | fi |
10855 | fi | |
e6cc62c6 | 10856 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10857 | if test -n "$CXX"; then |
e6cc62c6 VS |
10858 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10859 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10860 | else |
e6cc62c6 VS |
10861 | echo "$as_me:$LINENO: result: no" >&5 |
10862 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10863 | fi |
10864 | ||
e6cc62c6 VS |
10865 | test -n "$CXX" && break |
10866 | done | |
10867 | fi | |
10868 | if test -z "$CXX"; then | |
10869 | ac_ct_CXX=$CXX | |
10870 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10871 | do | |
10872 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10873 | set dummy $ac_prog; ac_word=$2 | |
10874 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10876 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10878 | else | |
10879 | if test -n "$ac_ct_CXX"; then | |
10880 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10881 | else | |
10882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10883 | for as_dir in $PATH | |
10884 | do | |
10885 | IFS=$as_save_IFS | |
10886 | test -z "$as_dir" && as_dir=. | |
10887 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10888 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10889 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10890 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10891 | break 2 | |
10892 | fi | |
10893 | done | |
10f2d63a | 10894 | done |
a0b9e27f | 10895 | |
8284b0c5 | 10896 | fi |
a0b9e27f | 10897 | fi |
e6cc62c6 VS |
10898 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
10899 | if test -n "$ac_ct_CXX"; then | |
10900 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
10901 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
10902 | else | |
10903 | echo "$as_me:$LINENO: result: no" >&5 | |
10904 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 10905 | fi |
10f2d63a | 10906 | |
e6cc62c6 VS |
10907 | test -n "$ac_ct_CXX" && break |
10908 | done | |
10909 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
10910 | ||
10911 | CXX=$ac_ct_CXX | |
10912 | fi | |
10913 | ||
10914 | ||
10915 | # Provide some information about the compiler. | |
10916 | echo "$as_me:$LINENO:" \ | |
10917 | "checking for C++ compiler version" >&5 | |
10918 | ac_compiler=`set X $ac_compile; echo $2` | |
10919 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10920 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10921 | ac_status=$? | |
10922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10923 | (exit $ac_status); } | |
10924 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10925 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10926 | ac_status=$? | |
10927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10928 | (exit $ac_status); } | |
10929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10930 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10931 | ac_status=$? | |
10932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10933 | (exit $ac_status); } | |
10934 | ||
10935 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
10936 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
10937 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
10938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10939 | else | |
10940 | cat >conftest.$ac_ext <<_ACEOF | |
10941 | #line $LINENO "configure" | |
10942 | /* confdefs.h. */ | |
10943 | _ACEOF | |
10944 | cat confdefs.h >>conftest.$ac_ext | |
10945 | cat >>conftest.$ac_ext <<_ACEOF | |
10946 | /* end confdefs.h. */ | |
10947 | ||
10948 | int | |
10949 | main () | |
10950 | { | |
10951 | #ifndef __GNUC__ | |
10952 | choke me | |
10953 | #endif | |
10f2d63a | 10954 | |
e6cc62c6 VS |
10955 | ; |
10956 | return 0; | |
10957 | } | |
10958 | _ACEOF | |
10959 | rm -f conftest.$ac_objext | |
10960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10961 | (eval $ac_compile) 2>&5 | |
10962 | ac_status=$? | |
10963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10964 | (exit $ac_status); } && | |
10965 | { ac_try='test -s conftest.$ac_objext' | |
10966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10967 | (eval $ac_try) 2>&5 | |
10968 | ac_status=$? | |
10969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10970 | (exit $ac_status); }; }; then | |
10971 | ac_compiler_gnu=yes | |
10972 | else | |
10973 | echo "$as_me: failed program was:" >&5 | |
10974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10975 | ||
10976 | ac_compiler_gnu=no | |
10977 | fi | |
10978 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10979 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10980 | ||
10981 | fi | |
10982 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10983 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
10984 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
10985 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
10986 | ac_save_CXXFLAGS=$CXXFLAGS | |
10987 | CXXFLAGS="-g" | |
10988 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
10989 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
10990 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
10991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10992 | else | |
10993 | cat >conftest.$ac_ext <<_ACEOF | |
10994 | #line $LINENO "configure" | |
10995 | /* confdefs.h. */ | |
10996 | _ACEOF | |
10997 | cat confdefs.h >>conftest.$ac_ext | |
10998 | cat >>conftest.$ac_ext <<_ACEOF | |
10999 | /* end confdefs.h. */ | |
11000 | ||
11001 | int | |
11002 | main () | |
11003 | { | |
f09359cf | 11004 | |
e6cc62c6 VS |
11005 | ; |
11006 | return 0; | |
11007 | } | |
11008 | _ACEOF | |
11009 | rm -f conftest.$ac_objext | |
11010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11011 | (eval $ac_compile) 2>&5 | |
11012 | ac_status=$? | |
11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11014 | (exit $ac_status); } && | |
11015 | { ac_try='test -s conftest.$ac_objext' | |
11016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11017 | (eval $ac_try) 2>&5 | |
11018 | ac_status=$? | |
11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11020 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11021 | ac_cv_prog_cxx_g=yes |
11022 | else | |
e6cc62c6 VS |
11023 | echo "$as_me: failed program was:" >&5 |
11024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11025 | |
e6cc62c6 | 11026 | ac_cv_prog_cxx_g=no |
10f2d63a | 11027 | fi |
e6cc62c6 VS |
11028 | rm -f conftest.$ac_objext conftest.$ac_ext |
11029 | fi | |
11030 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11031 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11032 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11033 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11034 | elif test $ac_cv_prog_cxx_g = yes; then |
11035 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11036 | CXXFLAGS="-g -O2" |
11037 | else | |
f09359cf | 11038 | CXXFLAGS="-g" |
10f2d63a | 11039 | fi |
5c0a20c3 | 11040 | else |
f09359cf VS |
11041 | if test "$GXX" = yes; then |
11042 | CXXFLAGS="-O2" | |
11043 | else | |
11044 | CXXFLAGS= | |
11045 | fi | |
10f2d63a | 11046 | fi |
e6cc62c6 VS |
11047 | for ac_declaration in \ |
11048 | ''\ | |
11049 | '#include <stdlib.h>' \ | |
11050 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
11051 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11052 | 'extern "C" void exit (int) throw ();' \ | |
11053 | 'extern "C" void exit (int);' \ | |
11054 | 'void exit (int);' | |
11055 | do | |
11056 | cat >conftest.$ac_ext <<_ACEOF | |
11057 | #line $LINENO "configure" | |
11058 | /* confdefs.h. */ | |
11059 | _ACEOF | |
11060 | cat confdefs.h >>conftest.$ac_ext | |
11061 | cat >>conftest.$ac_ext <<_ACEOF | |
11062 | /* end confdefs.h. */ | |
11063 | #include <stdlib.h> | |
11064 | $ac_declaration | |
11065 | int | |
11066 | main () | |
11067 | { | |
11068 | exit (42); | |
11069 | ; | |
11070 | return 0; | |
11071 | } | |
11072 | _ACEOF | |
11073 | rm -f conftest.$ac_objext | |
11074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11075 | (eval $ac_compile) 2>&5 | |
11076 | ac_status=$? | |
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11078 | (exit $ac_status); } && | |
11079 | { ac_try='test -s conftest.$ac_objext' | |
11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11081 | (eval $ac_try) 2>&5 | |
11082 | ac_status=$? | |
11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11084 | (exit $ac_status); }; }; then | |
11085 | : | |
11086 | else | |
11087 | echo "$as_me: failed program was:" >&5 | |
11088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11089 | ||
11090 | continue | |
11091 | fi | |
11092 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11093 | cat >conftest.$ac_ext <<_ACEOF | |
11094 | #line $LINENO "configure" | |
11095 | /* confdefs.h. */ | |
11096 | _ACEOF | |
11097 | cat confdefs.h >>conftest.$ac_ext | |
11098 | cat >>conftest.$ac_ext <<_ACEOF | |
11099 | /* end confdefs.h. */ | |
11100 | $ac_declaration | |
11101 | int | |
11102 | main () | |
11103 | { | |
11104 | exit (42); | |
11105 | ; | |
11106 | return 0; | |
11107 | } | |
11108 | _ACEOF | |
11109 | rm -f conftest.$ac_objext | |
11110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11111 | (eval $ac_compile) 2>&5 | |
11112 | ac_status=$? | |
11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11114 | (exit $ac_status); } && | |
11115 | { ac_try='test -s conftest.$ac_objext' | |
11116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11117 | (eval $ac_try) 2>&5 | |
11118 | ac_status=$? | |
11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11120 | (exit $ac_status); }; }; then | |
11121 | break | |
11122 | else | |
11123 | echo "$as_me: failed program was:" >&5 | |
11124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11125 | ||
11126 | fi | |
11127 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11128 | done | |
11129 | rm -f conftest* | |
11130 | if test -n "$ac_declaration"; then | |
11131 | echo '#ifdef __cplusplus' >>confdefs.h | |
11132 | echo $ac_declaration >>confdefs.h | |
11133 | echo '#endif' >>confdefs.h | |
11134 | fi | |
11135 | ||
11136 | ac_ext=cc | |
11137 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11138 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11139 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11140 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11141 | |
11142 | ||
10f2d63a | 11143 | ac_ext=c |
10f2d63a | 11144 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11148 | |
11149 | ||
e6cc62c6 VS |
11150 | if test -n "$ac_tool_prefix"; then |
11151 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11152 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11153 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11155 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11157 | else |
11158 | if test -n "$RANLIB"; then | |
11159 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11160 | else | |
e6cc62c6 VS |
11161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11162 | for as_dir in $PATH | |
11163 | do | |
11164 | IFS=$as_save_IFS | |
11165 | test -z "$as_dir" && as_dir=. | |
11166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11167 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11168 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11169 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11170 | break 2 | |
11171 | fi | |
11172 | done | |
11173 | done | |
11174 | ||
10f2d63a VZ |
11175 | fi |
11176 | fi | |
e6cc62c6 | 11177 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11178 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11179 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11180 | echo "${ECHO_T}$RANLIB" >&6 | |
11181 | else | |
11182 | echo "$as_me:$LINENO: result: no" >&5 | |
11183 | echo "${ECHO_T}no" >&6 | |
11184 | fi | |
11185 | ||
11186 | fi | |
11187 | if test -z "$ac_cv_prog_RANLIB"; then | |
11188 | ac_ct_RANLIB=$RANLIB | |
11189 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11190 | set dummy ranlib; ac_word=$2 | |
11191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11193 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11195 | else |
e6cc62c6 VS |
11196 | if test -n "$ac_ct_RANLIB"; then |
11197 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11198 | else | |
11199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11200 | for as_dir in $PATH | |
11201 | do | |
11202 | IFS=$as_save_IFS | |
11203 | test -z "$as_dir" && as_dir=. | |
11204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11206 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11208 | break 2 | |
11209 | fi | |
11210 | done | |
11211 | done | |
11212 | ||
11213 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11214 | fi | |
11215 | fi | |
11216 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11217 | if test -n "$ac_ct_RANLIB"; then | |
11218 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11219 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11220 | else | |
11221 | echo "$as_me:$LINENO: result: no" >&5 | |
11222 | echo "${ECHO_T}no" >&6 | |
11223 | fi | |
11224 | ||
11225 | RANLIB=$ac_ct_RANLIB | |
11226 | else | |
11227 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11228 | fi |
11229 | ||
10f2d63a VZ |
11230 | |
11231 | # Extract the first word of "ar", so it can be a program name with args. | |
11232 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11235 | if test "${ac_cv_prog_AR+set}" = set; then | |
11236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11237 | else |
11238 | if test -n "$AR"; then | |
11239 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11240 | else | |
e6cc62c6 VS |
11241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11242 | for as_dir in $PATH | |
11243 | do | |
11244 | IFS=$as_save_IFS | |
11245 | test -z "$as_dir" && as_dir=. | |
11246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11247 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11248 | ac_cv_prog_AR="ar" | |
11249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11250 | break 2 | |
11251 | fi | |
11252 | done | |
11253 | done | |
11254 | ||
10f2d63a VZ |
11255 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
11256 | fi | |
11257 | fi | |
e6cc62c6 | 11258 | AR=$ac_cv_prog_AR |
10f2d63a | 11259 | if test -n "$AR"; then |
e6cc62c6 VS |
11260 | echo "$as_me:$LINENO: result: $AR" >&5 |
11261 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11262 | else |
e6cc62c6 VS |
11263 | echo "$as_me:$LINENO: result: no" >&5 |
11264 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11265 | fi |
11266 | ||
8284b0c5 | 11267 | |
6054113a | 11268 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11269 | # so one script is as good as another. But avoid the broken or |
11270 | # incompatible versions: | |
11271 | # SysV /etc/install, /usr/sbin/install | |
11272 | # SunOS /usr/etc/install | |
11273 | # IRIX /sbin/install | |
11274 | # AIX /bin/install | |
e6cc62c6 | 11275 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11276 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11277 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11278 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11279 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11280 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11281 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11282 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11283 | if test "${ac_cv_path_install+set}" = set; then |
11284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11285 | else | |
11286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11287 | for as_dir in $PATH | |
11288 | do | |
11289 | IFS=$as_save_IFS | |
11290 | test -z "$as_dir" && as_dir=. | |
11291 | # Account for people who put trailing slashes in PATH elements. | |
11292 | case $as_dir/ in | |
11293 | ./ | .// | /cC/* | \ | |
11294 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11295 | /usr/ucb/* ) ;; | |
11296 | *) | |
11297 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11298 | # Don't use installbsd from OSF since it installs stuff as root | |
11299 | # by default. | |
11300 | for ac_prog in ginstall scoinst install; do | |
11301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11302 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11303 | if test $ac_prog = install && | |
11304 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11305 | # AIX install. It has an incompatible calling convention. | |
11306 | : | |
11307 | elif test $ac_prog = install && | |
11308 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11309 | # program-specific install script used by HP pwplus--don't use. | |
11310 | : | |
11311 | else | |
11312 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11313 | break 3 | |
11314 | fi | |
11315 | fi | |
10f2d63a | 11316 | done |
e6cc62c6 VS |
11317 | done |
11318 | ;; | |
11319 | esac | |
11320 | done | |
11321 | ||
10f2d63a VZ |
11322 | |
11323 | fi | |
11324 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11325 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11326 | else |
11327 | # As a last resort, use the slow shell script. We don't cache a | |
11328 | # path for INSTALL within a source directory, because that will | |
11329 | # break other packages using the cache if that directory is | |
11330 | # removed, or if the path is relative. | |
e6cc62c6 | 11331 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11332 | fi |
11333 | fi | |
e6cc62c6 VS |
11334 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11335 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11336 | |
11337 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11338 | # It thinks the first close brace ends the variable substitution. | |
11339 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11340 | ||
e6cc62c6 | 11341 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11342 | |
10f2d63a VZ |
11343 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11344 | ||
8284b0c5 | 11345 | |
1d1b75ac VZ |
11346 | case ${INSTALL} in |
11347 | /* ) # Absolute | |
11348 | ;; | |
4f5a7f74 VZ |
11349 | ?:* ) # Drive letter, considered as absolute. |
11350 | ;; | |
3bd8fb5f | 11351 | *) |
1d1b75ac VZ |
11352 | INSTALL=`pwd`/${INSTALL} ;; |
11353 | esac | |
11354 | ||
4f5a7f74 VZ |
11355 | case ${host} in |
11356 | *-hp-hpux* ) | |
11357 | INSTALL_DIR="mkdir" | |
11358 | ;; | |
11359 | ||
11360 | *) INSTALL_DIR="$INSTALL -d" | |
11361 | ;; | |
11362 | esac | |
11363 | ||
8284b0c5 | 11364 | |
6054113a GD |
11365 | case "${host}" in |
11366 | ||
b5853384 | 11367 | powerpc-*-darwin* ) |
eb99ae0b GD |
11368 | INSTALL_PROGRAM="cp -fp" |
11369 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11370 | ;; |
11371 | *) | |
11372 | ;; | |
d6853540 | 11373 | esac |
698dcdb6 | 11374 | |
10f2d63a VZ |
11375 | # Extract the first word of "strip", so it can be a program name with args. |
11376 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11377 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11379 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11381 | else |
11382 | if test -n "$STRIP"; then | |
11383 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11384 | else | |
e6cc62c6 VS |
11385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11386 | for as_dir in $PATH | |
11387 | do | |
11388 | IFS=$as_save_IFS | |
11389 | test -z "$as_dir" && as_dir=. | |
11390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11391 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11392 | ac_cv_prog_STRIP="strip" | |
11393 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11394 | break 2 | |
11395 | fi | |
11396 | done | |
11397 | done | |
11398 | ||
10f2d63a VZ |
11399 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11400 | fi | |
11401 | fi | |
e6cc62c6 | 11402 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11403 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11404 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11405 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11406 | else |
e6cc62c6 VS |
11407 | echo "$as_me:$LINENO: result: no" >&5 |
11408 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11409 | fi |
11410 | ||
5c6fa7d2 | 11411 | |
e6cc62c6 VS |
11412 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11413 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11414 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11416 | else |
e6cc62c6 | 11417 | |
414eab6d | 11418 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11419 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11420 | wx_cv_prog_makeisgnu="yes" |
11421 | else | |
11422 | wx_cv_prog_makeisgnu="no" | |
11423 | fi | |
11424 | ||
11425 | fi | |
e6cc62c6 VS |
11426 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11427 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11428 | |
11429 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11430 | IF_GNU_MAKE="" | |
11431 | else | |
11432 | IF_GNU_MAKE="#" | |
11433 | fi | |
11434 | ||
8284b0c5 MB |
11435 | |
11436 | ||
414eab6d | 11437 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11438 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11439 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11440 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11442 | else |
e6cc62c6 | 11443 | |
10f2d63a VZ |
11444 | cat - << EOF > confMake |
11445 | check : file | |
11446 | cp \$? \$@ | |
11447 | cp \$? final_file | |
11448 | EOF | |
11449 | ||
11450 | if test ! -d sub ; then | |
11451 | mkdir sub | |
11452 | fi | |
11453 | echo dummy > sub/file | |
f6bcfd97 | 11454 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11455 | RESULT=$? |
11456 | rm -f sub/file check final_file confMake | |
11457 | rmdir sub | |
11458 | if test "$RESULT" = 0; then | |
04e7a216 | 11459 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11460 | else |
04e7a216 VZ |
11461 | wx_cv_prog_makevpath="no" |
11462 | fi | |
11463 | ||
11464 | fi | |
e6cc62c6 VS |
11465 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11466 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11467 | |
11468 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11469 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11470 | You need a make-utility that is able to use the variable |
11471 | VPATH correctly. | |
11472 | If your version of make does not support VPATH correctly, | |
11473 | please install GNU-make (possibly as gmake), and start | |
11474 | configure with the following command: | |
11475 | export MAKE=gmake; ./configure for sh-type shells | |
11476 | setenv MAKE gmake; ./configure for csh-type shells | |
11477 | Also please do remember to use gmake in this case every time | |
11478 | you are trying to compile. | |
e6cc62c6 VS |
11479 | " >&5 |
11480 | echo "$as_me: error: | |
11481 | You need a make-utility that is able to use the variable | |
11482 | VPATH correctly. | |
11483 | If your version of make does not support VPATH correctly, | |
11484 | please install GNU-make (possibly as gmake), and start | |
11485 | configure with the following command: | |
11486 | export MAKE=gmake; ./configure for sh-type shells | |
11487 | setenv MAKE gmake; ./configure for csh-type shells | |
11488 | Also please do remember to use gmake in this case every time | |
11489 | you are trying to compile. | |
11490 | " >&2;} | |
11491 | { (exit 1); exit 1; }; } | |
11492 | fi fi | |
10f2d63a VZ |
11493 | for ac_prog in 'bison -y' byacc |
11494 | do | |
e6cc62c6 | 11495 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 11496 | set dummy $ac_prog; ac_word=$2 |
e6cc62c6 VS |
11497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11499 | if test "${ac_cv_prog_YACC+set}" = set; then | |
11500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11501 | else |
11502 | if test -n "$YACC"; then | |
11503 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
11504 | else | |
e6cc62c6 VS |
11505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11506 | for as_dir in $PATH | |
11507 | do | |
11508 | IFS=$as_save_IFS | |
11509 | test -z "$as_dir" && as_dir=. | |
11510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11512 | ac_cv_prog_YACC="$ac_prog" | |
11513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11514 | break 2 | |
11515 | fi | |
11516 | done | |
11517 | done | |
11518 | ||
10f2d63a VZ |
11519 | fi |
11520 | fi | |
e6cc62c6 | 11521 | YACC=$ac_cv_prog_YACC |
10f2d63a | 11522 | if test -n "$YACC"; then |
e6cc62c6 VS |
11523 | echo "$as_me:$LINENO: result: $YACC" >&5 |
11524 | echo "${ECHO_T}$YACC" >&6 | |
10f2d63a | 11525 | else |
e6cc62c6 VS |
11526 | echo "$as_me:$LINENO: result: no" >&5 |
11527 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11528 | fi |
11529 | ||
e6cc62c6 | 11530 | test -n "$YACC" && break |
10f2d63a VZ |
11531 | done |
11532 | test -n "$YACC" || YACC="yacc" | |
11533 | ||
8284b0c5 | 11534 | |
e6cc62c6 VS |
11535 | for ac_prog in flex lex |
11536 | do | |
11537 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11538 | set dummy $ac_prog; ac_word=$2 | |
11539 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11540 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11541 | if test "${ac_cv_prog_LEX+set}" = set; then | |
11542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11543 | else |
11544 | if test -n "$LEX"; then | |
11545 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
11546 | else | |
e6cc62c6 VS |
11547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11548 | for as_dir in $PATH | |
11549 | do | |
11550 | IFS=$as_save_IFS | |
11551 | test -z "$as_dir" && as_dir=. | |
11552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11553 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11554 | ac_cv_prog_LEX="$ac_prog" | |
11555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11556 | break 2 | |
11557 | fi | |
11558 | done | |
11559 | done | |
11560 | ||
10f2d63a VZ |
11561 | fi |
11562 | fi | |
e6cc62c6 | 11563 | LEX=$ac_cv_prog_LEX |
10f2d63a | 11564 | if test -n "$LEX"; then |
e6cc62c6 VS |
11565 | echo "$as_me:$LINENO: result: $LEX" >&5 |
11566 | echo "${ECHO_T}$LEX" >&6 | |
10f2d63a | 11567 | else |
e6cc62c6 VS |
11568 | echo "$as_me:$LINENO: result: no" >&5 |
11569 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11570 | fi |
11571 | ||
e6cc62c6 VS |
11572 | test -n "$LEX" && break |
11573 | done | |
11574 | test -n "$LEX" || LEX=":" | |
11575 | ||
10f2d63a VZ |
11576 | if test -z "$LEXLIB" |
11577 | then | |
e6cc62c6 VS |
11578 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
11579 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
11580 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
11581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11582 | else | |
11583 | ac_check_lib_save_LIBS=$LIBS | |
11584 | LIBS="-lfl $LIBS" | |
11585 | cat >conftest.$ac_ext <<_ACEOF | |
11586 | #line $LINENO "configure" | |
11587 | /* confdefs.h. */ | |
11588 | _ACEOF | |
11589 | cat confdefs.h >>conftest.$ac_ext | |
11590 | cat >>conftest.$ac_ext <<_ACEOF | |
11591 | /* end confdefs.h. */ | |
11592 | ||
11593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11594 | #ifdef __cplusplus | |
11595 | extern "C" | |
11596 | #endif | |
11597 | /* We use char because int might match the return type of a gcc2 | |
11598 | builtin and then its argument prototype would still apply. */ | |
11599 | char yywrap (); | |
11600 | int | |
11601 | main () | |
11602 | { | |
11603 | yywrap (); | |
11604 | ; | |
11605 | return 0; | |
11606 | } | |
11607 | _ACEOF | |
11608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11610 | (eval $ac_link) 2>&5 | |
11611 | ac_status=$? | |
11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11613 | (exit $ac_status); } && | |
11614 | { ac_try='test -s conftest$ac_exeext' | |
11615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11616 | (eval $ac_try) 2>&5 | |
11617 | ac_status=$? | |
11618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11619 | (exit $ac_status); }; }; then | |
11620 | ac_cv_lib_fl_yywrap=yes | |
11621 | else | |
11622 | echo "$as_me: failed program was:" >&5 | |
11623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11624 | ||
11625 | ac_cv_lib_fl_yywrap=no | |
11626 | fi | |
11627 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11628 | LIBS=$ac_check_lib_save_LIBS | |
11629 | fi | |
11630 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
11631 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11632 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11633 | LEXLIB="-lfl" | |
11634 | else | |
11635 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
11636 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11637 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11639 | else | |
11640 | ac_check_lib_save_LIBS=$LIBS | |
11641 | LIBS="-ll $LIBS" | |
11642 | cat >conftest.$ac_ext <<_ACEOF | |
11643 | #line $LINENO "configure" | |
11644 | /* confdefs.h. */ | |
11645 | _ACEOF | |
11646 | cat confdefs.h >>conftest.$ac_ext | |
11647 | cat >>conftest.$ac_ext <<_ACEOF | |
11648 | /* end confdefs.h. */ | |
11649 | ||
247f5006 | 11650 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11651 | #ifdef __cplusplus |
11652 | extern "C" | |
11653 | #endif | |
247f5006 | 11654 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11655 | builtin and then its argument prototype would still apply. */ |
11656 | char yywrap (); | |
11657 | int | |
11658 | main () | |
11659 | { | |
11660 | yywrap (); | |
11661 | ; | |
11662 | return 0; | |
11663 | } | |
11664 | _ACEOF | |
11665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11667 | (eval $ac_link) 2>&5 | |
11668 | ac_status=$? | |
11669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11670 | (exit $ac_status); } && | |
11671 | { ac_try='test -s conftest$ac_exeext' | |
11672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11673 | (eval $ac_try) 2>&5 | |
11674 | ac_status=$? | |
11675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11676 | (exit $ac_status); }; }; then | |
11677 | ac_cv_lib_l_yywrap=yes | |
11678 | else | |
11679 | echo "$as_me: failed program was:" >&5 | |
11680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11681 | ||
11682 | ac_cv_lib_l_yywrap=no | |
11683 | fi | |
11684 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11685 | LIBS=$ac_check_lib_save_LIBS | |
11686 | fi | |
11687 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
11688 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11689 | if test $ac_cv_lib_l_yywrap = yes; then | |
11690 | LEXLIB="-ll" | |
11691 | fi | |
10f2d63a | 11692 | |
10f2d63a | 11693 | fi |
8284b0c5 | 11694 | |
10f2d63a | 11695 | fi |
e6cc62c6 VS |
11696 | |
11697 | if test "x$LEX" != "x:"; then | |
11698 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11699 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11700 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
11701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11702 | else | |
11703 | # The minimal lex program is just a single line: %%. But some broken lexes | |
11704 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11705 | cat >conftest.l <<_ACEOF | |
11706 | %% | |
11707 | %% | |
11708 | _ACEOF | |
11709 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
11710 | (eval $LEX conftest.l) 2>&5 | |
11711 | ac_status=$? | |
11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11713 | (exit $ac_status); } | |
11714 | if test -f lex.yy.c; then | |
11715 | ac_cv_prog_lex_root=lex.yy | |
11716 | elif test -f lexyy.c; then | |
11717 | ac_cv_prog_lex_root=lexyy | |
8284b0c5 | 11718 | else |
e6cc62c6 VS |
11719 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
11720 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11721 | { (exit 1); exit 1; }; } | |
10f2d63a | 11722 | fi |
a0b9e27f | 11723 | fi |
e6cc62c6 VS |
11724 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
11725 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11726 | rm -f conftest.l | |
11727 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
10f2d63a | 11728 | |
e6cc62c6 VS |
11729 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
11730 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11731 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11733 | else |
e6cc62c6 VS |
11734 | # POSIX says lex can declare yytext either as a pointer or an array; the |
11735 | # default is implementation-dependent. Figure out which it is, since | |
11736 | # not all implementations provide the %pointer and %array declarations. | |
11737 | ac_cv_prog_lex_yytext_pointer=no | |
11738 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11739 | ac_save_LIBS=$LIBS | |
11740 | LIBS="$LIBS $LEXLIB" | |
11741 | cat >conftest.$ac_ext <<_ACEOF | |
11742 | `cat $LEX_OUTPUT_ROOT.c` | |
11743 | _ACEOF | |
11744 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11745 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11746 | (eval $ac_link) 2>&5 | |
11747 | ac_status=$? | |
11748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11749 | (exit $ac_status); } && | |
11750 | { ac_try='test -s conftest$ac_exeext' | |
11751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11752 | (eval $ac_try) 2>&5 | |
11753 | ac_status=$? | |
11754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11755 | (exit $ac_status); }; }; then | |
11756 | ac_cv_prog_lex_yytext_pointer=yes | |
10f2d63a | 11757 | else |
e6cc62c6 VS |
11758 | echo "$as_me: failed program was:" >&5 |
11759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11760 | ||
10f2d63a | 11761 | fi |
e6cc62c6 VS |
11762 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
11763 | LIBS=$ac_save_LIBS | |
11764 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
11765 | ||
11766 | fi | |
11767 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
11768 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
11769 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
11770 | ||
11771 | cat >>confdefs.h <<\_ACEOF | |
11772 | #define YYTEXT_POINTER 1 | |
11773 | _ACEOF | |
11774 | ||
a0b9e27f | 11775 | fi |
e6cc62c6 VS |
11776 | |
11777 | fi | |
11778 | ||
11779 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
11780 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11781 | LN_S=$as_ln_s | |
11782 | if test "$LN_S" = "ln -s"; then | |
11783 | echo "$as_me:$LINENO: result: yes" >&5 | |
11784 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11785 | else |
e6cc62c6 VS |
11786 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11787 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11788 | fi |
5c6fa7d2 | 11789 | |
247f5006 | 11790 | |
2b5f62a0 VZ |
11791 | case "${host}" in |
11792 | *-pc-os2_emx | *-pc-os2-emx ) | |
11793 | LIBS="$LIBS -lstdcpp" | |
11794 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
e6cc62c6 VS |
11795 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11796 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11797 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11799 | else |
e6cc62c6 | 11800 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11801 | LIBS="-lcExt $LIBS" |
e6cc62c6 VS |
11802 | cat >conftest.$ac_ext <<_ACEOF |
11803 | #line $LINENO "configure" | |
11804 | /* confdefs.h. */ | |
11805 | _ACEOF | |
11806 | cat confdefs.h >>conftest.$ac_ext | |
11807 | cat >>conftest.$ac_ext <<_ACEOF | |
11808 | /* end confdefs.h. */ | |
11809 | ||
2b5f62a0 | 11810 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11811 | #ifdef __cplusplus |
11812 | extern "C" | |
11813 | #endif | |
2b5f62a0 | 11814 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11815 | builtin and then its argument prototype would still apply. */ |
11816 | char drand48 (); | |
11817 | int | |
11818 | main () | |
11819 | { | |
11820 | drand48 (); | |
11821 | ; | |
11822 | return 0; | |
11823 | } | |
11824 | _ACEOF | |
11825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11827 | (eval $ac_link) 2>&5 | |
11828 | ac_status=$? | |
11829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11830 | (exit $ac_status); } && | |
11831 | { ac_try='test -s conftest$ac_exeext' | |
11832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11833 | (eval $ac_try) 2>&5 | |
11834 | ac_status=$? | |
11835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11836 | (exit $ac_status); }; }; then | |
11837 | ac_cv_lib_cExt_drand48=yes | |
11838 | else | |
11839 | echo "$as_me: failed program was:" >&5 | |
11840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11841 | ||
11842 | ac_cv_lib_cExt_drand48=no | |
11843 | fi | |
11844 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11845 | LIBS=$ac_check_lib_save_LIBS | |
11846 | fi | |
11847 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11848 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11849 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11850 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11851 | fi |
11852 | ||
11853 | else | |
11854 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11855 | fi | |
11856 | ;; | |
11857 | esac | |
11858 | ||
a0b9e27f | 11859 | |
01aa5863 VS |
11860 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11861 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11862 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11863 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11865 | else | |
11866 | ac_cv_header_strings_h=no | |
11867 | fi | |
11868 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11869 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11870 | if test "$ac_cv_header_strings_h" = "no"; then | |
11871 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11872 | echo "${ECHO_T}forced no into cache" >&6 | |
11873 | else | |
11874 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11875 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11876 | fi | |
11877 | fi | |
11878 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11879 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11880 | if test "${ac_cv_header_stdc+set}" = set; then | |
11881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11882 | else | |
11883 | cat >conftest.$ac_ext <<_ACEOF | |
11884 | #line $LINENO "configure" | |
11885 | /* confdefs.h. */ | |
11886 | _ACEOF | |
11887 | cat confdefs.h >>conftest.$ac_ext | |
11888 | cat >>conftest.$ac_ext <<_ACEOF | |
11889 | /* end confdefs.h. */ | |
11890 | #include <stdlib.h> | |
11891 | #include <stdarg.h> | |
11892 | #include <string.h> | |
11893 | #include <float.h> | |
247f5006 | 11894 | |
e6cc62c6 VS |
11895 | int |
11896 | main () | |
11897 | { | |
90dd450c | 11898 | |
e6cc62c6 VS |
11899 | ; |
11900 | return 0; | |
11901 | } | |
11902 | _ACEOF | |
11903 | rm -f conftest.$ac_objext | |
11904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11905 | (eval $ac_compile) 2>&5 | |
11906 | ac_status=$? | |
11907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11908 | (exit $ac_status); } && | |
11909 | { ac_try='test -s conftest.$ac_objext' | |
11910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11911 | (eval $ac_try) 2>&5 | |
11912 | ac_status=$? | |
11913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11914 | (exit $ac_status); }; }; then | |
11915 | ac_cv_header_stdc=yes | |
8284b0c5 | 11916 | else |
e6cc62c6 VS |
11917 | echo "$as_me: failed program was:" >&5 |
11918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11919 | ||
11920 | ac_cv_header_stdc=no | |
21d1c967 | 11921 | fi |
e6cc62c6 | 11922 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 11923 | |
e6cc62c6 VS |
11924 | if test $ac_cv_header_stdc = yes; then |
11925 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11926 | cat >conftest.$ac_ext <<_ACEOF | |
11927 | #line $LINENO "configure" | |
11928 | /* confdefs.h. */ | |
11929 | _ACEOF | |
11930 | cat confdefs.h >>conftest.$ac_ext | |
11931 | cat >>conftest.$ac_ext <<_ACEOF | |
11932 | /* end confdefs.h. */ | |
11933 | #include <string.h> | |
11934 | ||
11935 | _ACEOF | |
11936 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11937 | $EGREP "memchr" >/dev/null 2>&1; then | |
11938 | : | |
11939 | else | |
11940 | ac_cv_header_stdc=no | |
3a922bb4 | 11941 | fi |
a0b9e27f | 11942 | rm -f conftest* |
e6cc62c6 | 11943 | |
90dd450c | 11944 | fi |
e6cc62c6 VS |
11945 | |
11946 | if test $ac_cv_header_stdc = yes; then | |
11947 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11948 | cat >conftest.$ac_ext <<_ACEOF | |
11949 | #line $LINENO "configure" | |
11950 | /* confdefs.h. */ | |
11951 | _ACEOF | |
11952 | cat confdefs.h >>conftest.$ac_ext | |
11953 | cat >>conftest.$ac_ext <<_ACEOF | |
11954 | /* end confdefs.h. */ | |
11955 | #include <stdlib.h> | |
11956 | ||
11957 | _ACEOF | |
11958 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11959 | $EGREP "free" >/dev/null 2>&1; then | |
11960 | : | |
a0b9e27f | 11961 | else |
e6cc62c6 | 11962 | ac_cv_header_stdc=no |
21d1c967 | 11963 | fi |
e6cc62c6 | 11964 | rm -f conftest* |
247f5006 VZ |
11965 | |
11966 | fi | |
e6cc62c6 VS |
11967 | |
11968 | if test $ac_cv_header_stdc = yes; then | |
11969 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11970 | if test "$cross_compiling" = yes; then | |
11971 | : | |
11972 | else | |
11973 | cat >conftest.$ac_ext <<_ACEOF | |
11974 | #line $LINENO "configure" | |
11975 | /* confdefs.h. */ | |
11976 | _ACEOF | |
11977 | cat confdefs.h >>conftest.$ac_ext | |
11978 | cat >>conftest.$ac_ext <<_ACEOF | |
11979 | /* end confdefs.h. */ | |
11980 | #include <ctype.h> | |
11981 | #if ((' ' & 0x0FF) == 0x020) | |
11982 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11983 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11984 | #else | |
11985 | # define ISLOWER(c) \ | |
11986 | (('a' <= (c) && (c) <= 'i') \ | |
11987 | || ('j' <= (c) && (c) <= 'r') \ | |
11988 | || ('s' <= (c) && (c) <= 'z')) | |
11989 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11990 | #endif | |
11991 | ||
11992 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11993 | int | |
11994 | main () | |
11995 | { | |
11996 | int i; | |
11997 | for (i = 0; i < 256; i++) | |
11998 | if (XOR (islower (i), ISLOWER (i)) | |
11999 | || toupper (i) != TOUPPER (i)) | |
12000 | exit(2); | |
12001 | exit (0); | |
12002 | } | |
12003 | _ACEOF | |
12004 | rm -f conftest$ac_exeext | |
12005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12006 | (eval $ac_link) 2>&5 | |
12007 | ac_status=$? | |
12008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12011 | (eval $ac_try) 2>&5 | |
12012 | ac_status=$? | |
12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12014 | (exit $ac_status); }; }; then | |
12015 | : | |
a0b9e27f | 12016 | else |
e6cc62c6 VS |
12017 | echo "$as_me: program exited with status $ac_status" >&5 |
12018 | echo "$as_me: failed program was:" >&5 | |
12019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12020 | ||
12021 | ( exit $ac_status ) | |
12022 | ac_cv_header_stdc=no | |
12023 | fi | |
12024 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12025 | fi | |
12026 | fi | |
12027 | fi | |
12028 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12029 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12030 | if test $ac_cv_header_stdc = yes; then | |
12031 | ||
12032 | cat >>confdefs.h <<\_ACEOF | |
12033 | #define STDC_HEADERS 1 | |
12034 | _ACEOF | |
12035 | ||
a0b9e27f | 12036 | fi |
e6cc62c6 VS |
12037 | |
12038 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12039 | ||
12040 | ||
12041 | ||
12042 | ||
12043 | ||
12044 | ||
12045 | ||
12046 | ||
12047 | ||
12048 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
12049 | inttypes.h stdint.h unistd.h | |
12050 | do | |
12051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12052 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12053 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12056 | else | |
12057 | cat >conftest.$ac_ext <<_ACEOF | |
12058 | #line $LINENO "configure" | |
12059 | /* confdefs.h. */ | |
12060 | _ACEOF | |
12061 | cat confdefs.h >>conftest.$ac_ext | |
12062 | cat >>conftest.$ac_ext <<_ACEOF | |
12063 | /* end confdefs.h. */ | |
12064 | $ac_includes_default | |
12065 | ||
12066 | #include <$ac_header> | |
12067 | _ACEOF | |
12068 | rm -f conftest.$ac_objext | |
12069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12070 | (eval $ac_compile) 2>&5 | |
12071 | ac_status=$? | |
12072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12073 | (exit $ac_status); } && | |
12074 | { ac_try='test -s conftest.$ac_objext' | |
12075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12076 | (eval $ac_try) 2>&5 | |
12077 | ac_status=$? | |
12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12079 | (exit $ac_status); }; }; then | |
12080 | eval "$as_ac_Header=yes" | |
12081 | else | |
12082 | echo "$as_me: failed program was:" >&5 | |
12083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12084 | ||
12085 | eval "$as_ac_Header=no" | |
12086 | fi | |
12087 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12088 | fi | |
12089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12091 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12092 | cat >>confdefs.h <<_ACEOF | |
12093 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12094 | _ACEOF | |
12095 | ||
12096 | fi | |
12097 | ||
a0b9e27f | 12098 | done |
90dd450c | 12099 | |
e6cc62c6 VS |
12100 | |
12101 | ||
12102 | for ac_header in strings.h | |
21d1c967 | 12103 | do |
e6cc62c6 VS |
12104 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12105 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12106 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12107 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12110 | fi | |
12111 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12112 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12113 | else | |
12114 | # Is the header compilable? | |
12115 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12116 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12117 | cat >conftest.$ac_ext <<_ACEOF | |
12118 | #line $LINENO "configure" | |
12119 | /* confdefs.h. */ | |
12120 | _ACEOF | |
12121 | cat confdefs.h >>conftest.$ac_ext | |
12122 | cat >>conftest.$ac_ext <<_ACEOF | |
12123 | /* end confdefs.h. */ | |
12124 | $ac_includes_default | |
12125 | #include <$ac_header> | |
12126 | _ACEOF | |
12127 | rm -f conftest.$ac_objext | |
12128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12129 | (eval $ac_compile) 2>&5 | |
12130 | ac_status=$? | |
12131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12132 | (exit $ac_status); } && | |
12133 | { ac_try='test -s conftest.$ac_objext' | |
12134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12135 | (eval $ac_try) 2>&5 | |
12136 | ac_status=$? | |
12137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12138 | (exit $ac_status); }; }; then | |
12139 | ac_header_compiler=yes | |
12140 | else | |
12141 | echo "$as_me: failed program was:" >&5 | |
12142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12143 | ||
12144 | ac_header_compiler=no | |
12145 | fi | |
12146 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12147 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12148 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12149 | ||
12150 | # Is the header present? | |
12151 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12152 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12153 | cat >conftest.$ac_ext <<_ACEOF | |
12154 | #line $LINENO "configure" | |
12155 | /* confdefs.h. */ | |
12156 | _ACEOF | |
12157 | cat confdefs.h >>conftest.$ac_ext | |
12158 | cat >>conftest.$ac_ext <<_ACEOF | |
12159 | /* end confdefs.h. */ | |
12160 | #include <$ac_header> | |
12161 | _ACEOF | |
12162 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12163 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12164 | ac_status=$? | |
12165 | grep -v '^ *+' conftest.er1 >conftest.err | |
12166 | rm -f conftest.er1 | |
12167 | cat conftest.err >&5 | |
12168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12169 | (exit $ac_status); } >/dev/null; then | |
12170 | if test -s conftest.err; then | |
12171 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12172 | else | |
12173 | ac_cpp_err= | |
12174 | fi | |
12175 | else | |
12176 | ac_cpp_err=yes | |
12177 | fi | |
12178 | if test -z "$ac_cpp_err"; then | |
12179 | ac_header_preproc=yes | |
12180 | else | |
12181 | echo "$as_me: failed program was:" >&5 | |
12182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12183 | ||
12184 | ac_header_preproc=no | |
12185 | fi | |
12186 | rm -f conftest.err conftest.$ac_ext | |
12187 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12188 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12189 | ||
12190 | # So? What about this header? | |
12191 | case $ac_header_compiler:$ac_header_preproc in | |
12192 | yes:no ) | |
12193 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12194 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12196 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12197 | ( | |
12198 | cat <<\_ASBOX | |
12199 | ## ------------------------------------ ## | |
12200 | ## Report this to bug-autoconf@gnu.org. ## | |
12201 | ## ------------------------------------ ## | |
12202 | _ASBOX | |
12203 | ) | | |
12204 | sed "s/^/$as_me: WARNING: /" >&2 | |
12205 | ;; | |
12206 | no:yes ) | |
12207 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12208 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12209 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12210 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12211 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12212 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12213 | ( | |
12214 | cat <<\_ASBOX | |
12215 | ## ------------------------------------ ## | |
12216 | ## Report this to bug-autoconf@gnu.org. ## | |
12217 | ## ------------------------------------ ## | |
12218 | _ASBOX | |
12219 | ) | | |
12220 | sed "s/^/$as_me: WARNING: /" >&2 | |
12221 | ;; | |
12222 | esac | |
12223 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12224 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12225 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12227 | else | |
12228 | eval "$as_ac_Header=$ac_header_preproc" | |
a0b9e27f | 12229 | fi |
e6cc62c6 VS |
12230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12231 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12232 | ||
a0b9e27f | 12233 | fi |
e6cc62c6 VS |
12234 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12235 | cat >>confdefs.h <<_ACEOF | |
12236 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12237 | _ACEOF | |
12238 | ||
12239 | fi | |
12240 | ||
12241 | done | |
12242 | ||
e6cc62c6 VS |
12243 | |
12244 | ||
12245 | for ac_header in stdlib.h | |
12246 | do | |
12247 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12248 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12249 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12250 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12251 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12253 | fi | |
12254 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12255 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12256 | else | |
12257 | # Is the header compilable? | |
12258 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12259 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12260 | cat >conftest.$ac_ext <<_ACEOF | |
12261 | #line $LINENO "configure" | |
12262 | /* confdefs.h. */ | |
12263 | _ACEOF | |
12264 | cat confdefs.h >>conftest.$ac_ext | |
12265 | cat >>conftest.$ac_ext <<_ACEOF | |
12266 | /* end confdefs.h. */ | |
12267 | $ac_includes_default | |
12268 | #include <$ac_header> | |
12269 | _ACEOF | |
12270 | rm -f conftest.$ac_objext | |
12271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12272 | (eval $ac_compile) 2>&5 | |
12273 | ac_status=$? | |
12274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12275 | (exit $ac_status); } && | |
12276 | { ac_try='test -s conftest.$ac_objext' | |
12277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12278 | (eval $ac_try) 2>&5 | |
12279 | ac_status=$? | |
12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12281 | (exit $ac_status); }; }; then | |
12282 | ac_header_compiler=yes | |
12283 | else | |
12284 | echo "$as_me: failed program was:" >&5 | |
12285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12286 | ||
12287 | ac_header_compiler=no | |
12288 | fi | |
12289 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12290 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12291 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12292 | ||
12293 | # Is the header present? | |
12294 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12295 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12296 | cat >conftest.$ac_ext <<_ACEOF | |
12297 | #line $LINENO "configure" | |
12298 | /* confdefs.h. */ | |
12299 | _ACEOF | |
12300 | cat confdefs.h >>conftest.$ac_ext | |
12301 | cat >>conftest.$ac_ext <<_ACEOF | |
12302 | /* end confdefs.h. */ | |
12303 | #include <$ac_header> | |
12304 | _ACEOF | |
12305 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12306 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12307 | ac_status=$? | |
12308 | grep -v '^ *+' conftest.er1 >conftest.err | |
12309 | rm -f conftest.er1 | |
12310 | cat conftest.err >&5 | |
12311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12312 | (exit $ac_status); } >/dev/null; then | |
12313 | if test -s conftest.err; then | |
12314 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12315 | else | |
12316 | ac_cpp_err= | |
12317 | fi | |
12318 | else | |
12319 | ac_cpp_err=yes | |
12320 | fi | |
12321 | if test -z "$ac_cpp_err"; then | |
12322 | ac_header_preproc=yes | |
12323 | else | |
12324 | echo "$as_me: failed program was:" >&5 | |
12325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12326 | ||
12327 | ac_header_preproc=no | |
12328 | fi | |
12329 | rm -f conftest.err conftest.$ac_ext | |
12330 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12331 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12332 | ||
12333 | # So? What about this header? | |
12334 | case $ac_header_compiler:$ac_header_preproc in | |
12335 | yes:no ) | |
12336 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12337 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12338 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12339 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12340 | ( | |
12341 | cat <<\_ASBOX | |
12342 | ## ------------------------------------ ## | |
12343 | ## Report this to bug-autoconf@gnu.org. ## | |
12344 | ## ------------------------------------ ## | |
12345 | _ASBOX | |
12346 | ) | | |
12347 | sed "s/^/$as_me: WARNING: /" >&2 | |
12348 | ;; | |
12349 | no:yes ) | |
12350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12352 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12353 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12354 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12355 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12356 | ( | |
12357 | cat <<\_ASBOX | |
12358 | ## ------------------------------------ ## | |
12359 | ## Report this to bug-autoconf@gnu.org. ## | |
12360 | ## ------------------------------------ ## | |
12361 | _ASBOX | |
12362 | ) | | |
12363 | sed "s/^/$as_me: WARNING: /" >&2 | |
12364 | ;; | |
12365 | esac | |
12366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12370 | else |
e6cc62c6 VS |
12371 | eval "$as_ac_Header=$ac_header_preproc" |
12372 | fi | |
12373 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12374 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12375 | ||
21d1c967 | 12376 | fi |
e6cc62c6 VS |
12377 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12378 | cat >>confdefs.h <<_ACEOF | |
12379 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12380 | _ACEOF | |
12381 | ||
12382 | fi | |
12383 | ||
21d1c967 | 12384 | done |
4f14bcd8 | 12385 | |
5c6fa7d2 | 12386 | |
e6cc62c6 | 12387 | for ac_header in malloc.h |
21d1c967 | 12388 | do |
e6cc62c6 VS |
12389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12395 | fi | |
12396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12398 | else | |
12399 | # Is the header compilable? | |
12400 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12402 | cat >conftest.$ac_ext <<_ACEOF | |
12403 | #line $LINENO "configure" | |
12404 | /* confdefs.h. */ | |
12405 | _ACEOF | |
12406 | cat confdefs.h >>conftest.$ac_ext | |
12407 | cat >>conftest.$ac_ext <<_ACEOF | |
12408 | /* end confdefs.h. */ | |
12409 | $ac_includes_default | |
12410 | #include <$ac_header> | |
12411 | _ACEOF | |
12412 | rm -f conftest.$ac_objext | |
12413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12414 | (eval $ac_compile) 2>&5 | |
12415 | ac_status=$? | |
12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12417 | (exit $ac_status); } && | |
12418 | { ac_try='test -s conftest.$ac_objext' | |
12419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12420 | (eval $ac_try) 2>&5 | |
12421 | ac_status=$? | |
12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12423 | (exit $ac_status); }; }; then | |
12424 | ac_header_compiler=yes | |
12425 | else | |
12426 | echo "$as_me: failed program was:" >&5 | |
12427 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12428 | ||
12429 | ac_header_compiler=no | |
12430 | fi | |
12431 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12432 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12433 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12434 | ||
12435 | # Is the header present? | |
12436 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12437 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12438 | cat >conftest.$ac_ext <<_ACEOF | |
12439 | #line $LINENO "configure" | |
12440 | /* confdefs.h. */ | |
12441 | _ACEOF | |
12442 | cat confdefs.h >>conftest.$ac_ext | |
12443 | cat >>conftest.$ac_ext <<_ACEOF | |
12444 | /* end confdefs.h. */ | |
12445 | #include <$ac_header> | |
12446 | _ACEOF | |
12447 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12448 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12449 | ac_status=$? | |
12450 | grep -v '^ *+' conftest.er1 >conftest.err | |
12451 | rm -f conftest.er1 | |
12452 | cat conftest.err >&5 | |
12453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12454 | (exit $ac_status); } >/dev/null; then | |
12455 | if test -s conftest.err; then | |
12456 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12457 | else | |
12458 | ac_cpp_err= | |
12459 | fi | |
12460 | else | |
12461 | ac_cpp_err=yes | |
12462 | fi | |
12463 | if test -z "$ac_cpp_err"; then | |
12464 | ac_header_preproc=yes | |
12465 | else | |
12466 | echo "$as_me: failed program was:" >&5 | |
12467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12468 | ||
12469 | ac_header_preproc=no | |
12470 | fi | |
12471 | rm -f conftest.err conftest.$ac_ext | |
12472 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12473 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12474 | ||
12475 | # So? What about this header? | |
12476 | case $ac_header_compiler:$ac_header_preproc in | |
12477 | yes:no ) | |
12478 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12479 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12480 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12481 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12482 | ( | |
12483 | cat <<\_ASBOX | |
12484 | ## ------------------------------------ ## | |
12485 | ## Report this to bug-autoconf@gnu.org. ## | |
12486 | ## ------------------------------------ ## | |
12487 | _ASBOX | |
12488 | ) | | |
12489 | sed "s/^/$as_me: WARNING: /" >&2 | |
12490 | ;; | |
12491 | no:yes ) | |
12492 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12493 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12494 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12495 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12496 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12497 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12498 | ( | |
12499 | cat <<\_ASBOX | |
12500 | ## ------------------------------------ ## | |
12501 | ## Report this to bug-autoconf@gnu.org. ## | |
12502 | ## ------------------------------------ ## | |
12503 | _ASBOX | |
12504 | ) | | |
12505 | sed "s/^/$as_me: WARNING: /" >&2 | |
12506 | ;; | |
12507 | esac | |
12508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12512 | else | |
12513 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 12514 | fi |
e6cc62c6 VS |
12515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12517 | ||
21d1c967 | 12518 | fi |
e6cc62c6 VS |
12519 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12520 | cat >>confdefs.h <<_ACEOF | |
12521 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12522 | _ACEOF | |
12523 | ||
12524 | fi | |
12525 | ||
12526 | done | |
12527 | ||
12528 | ||
12529 | for ac_header in unistd.h | |
12530 | do | |
12531 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12537 | fi | |
12538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12539 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12540 | else | |
12541 | # Is the header compilable? | |
12542 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12543 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12544 | cat >conftest.$ac_ext <<_ACEOF | |
12545 | #line $LINENO "configure" | |
12546 | /* confdefs.h. */ | |
12547 | _ACEOF | |
12548 | cat confdefs.h >>conftest.$ac_ext | |
12549 | cat >>conftest.$ac_ext <<_ACEOF | |
12550 | /* end confdefs.h. */ | |
12551 | $ac_includes_default | |
12552 | #include <$ac_header> | |
12553 | _ACEOF | |
12554 | rm -f conftest.$ac_objext | |
12555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12556 | (eval $ac_compile) 2>&5 | |
12557 | ac_status=$? | |
12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12559 | (exit $ac_status); } && | |
12560 | { ac_try='test -s conftest.$ac_objext' | |
12561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12562 | (eval $ac_try) 2>&5 | |
12563 | ac_status=$? | |
12564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12565 | (exit $ac_status); }; }; then | |
12566 | ac_header_compiler=yes | |
12567 | else | |
12568 | echo "$as_me: failed program was:" >&5 | |
12569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12570 | ||
12571 | ac_header_compiler=no | |
12572 | fi | |
12573 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12574 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12575 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12576 | ||
12577 | # Is the header present? | |
12578 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12580 | cat >conftest.$ac_ext <<_ACEOF | |
12581 | #line $LINENO "configure" | |
12582 | /* confdefs.h. */ | |
12583 | _ACEOF | |
12584 | cat confdefs.h >>conftest.$ac_ext | |
12585 | cat >>conftest.$ac_ext <<_ACEOF | |
12586 | /* end confdefs.h. */ | |
12587 | #include <$ac_header> | |
12588 | _ACEOF | |
12589 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12590 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12591 | ac_status=$? | |
12592 | grep -v '^ *+' conftest.er1 >conftest.err | |
12593 | rm -f conftest.er1 | |
12594 | cat conftest.err >&5 | |
12595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12596 | (exit $ac_status); } >/dev/null; then | |
12597 | if test -s conftest.err; then | |
12598 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12599 | else | |
12600 | ac_cpp_err= | |
12601 | fi | |
a0b9e27f | 12602 | else |
e6cc62c6 VS |
12603 | ac_cpp_err=yes |
12604 | fi | |
12605 | if test -z "$ac_cpp_err"; then | |
12606 | ac_header_preproc=yes | |
12607 | else | |
12608 | echo "$as_me: failed program was:" >&5 | |
12609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12610 | ||
12611 | ac_header_preproc=no | |
12612 | fi | |
12613 | rm -f conftest.err conftest.$ac_ext | |
12614 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12615 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12616 | ||
12617 | # So? What about this header? | |
12618 | case $ac_header_compiler:$ac_header_preproc in | |
12619 | yes:no ) | |
12620 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12621 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12623 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12624 | ( | |
12625 | cat <<\_ASBOX | |
12626 | ## ------------------------------------ ## | |
12627 | ## Report this to bug-autoconf@gnu.org. ## | |
12628 | ## ------------------------------------ ## | |
12629 | _ASBOX | |
12630 | ) | | |
12631 | sed "s/^/$as_me: WARNING: /" >&2 | |
12632 | ;; | |
12633 | no:yes ) | |
12634 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12635 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12636 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12637 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12638 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12639 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12640 | ( | |
12641 | cat <<\_ASBOX | |
12642 | ## ------------------------------------ ## | |
12643 | ## Report this to bug-autoconf@gnu.org. ## | |
12644 | ## ------------------------------------ ## | |
12645 | _ASBOX | |
12646 | ) | | |
12647 | sed "s/^/$as_me: WARNING: /" >&2 | |
12648 | ;; | |
12649 | esac | |
12650 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12654 | else | |
12655 | eval "$as_ac_Header=$ac_header_preproc" | |
12656 | fi | |
12657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12658 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12659 | ||
12660 | fi | |
12661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12662 | cat >>confdefs.h <<_ACEOF | |
12663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12664 | _ACEOF | |
12665 | ||
d4158b5d | 12666 | fi |
e6cc62c6 | 12667 | |
21d1c967 | 12668 | done |
f6bcfd97 | 12669 | |
e6cc62c6 VS |
12670 | |
12671 | for ac_header in wchar.h | |
12672 | do | |
12673 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12675 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12676 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12677 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12679 | fi | |
12680 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12681 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12682 | else | |
12683 | # Is the header compilable? | |
12684 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12685 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12686 | cat >conftest.$ac_ext <<_ACEOF | |
12687 | #line $LINENO "configure" | |
12688 | /* confdefs.h. */ | |
12689 | _ACEOF | |
12690 | cat confdefs.h >>conftest.$ac_ext | |
12691 | cat >>conftest.$ac_ext <<_ACEOF | |
12692 | /* end confdefs.h. */ | |
12693 | $ac_includes_default | |
12694 | #include <$ac_header> | |
12695 | _ACEOF | |
12696 | rm -f conftest.$ac_objext | |
12697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12698 | (eval $ac_compile) 2>&5 | |
12699 | ac_status=$? | |
12700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12701 | (exit $ac_status); } && | |
12702 | { ac_try='test -s conftest.$ac_objext' | |
12703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12704 | (eval $ac_try) 2>&5 | |
12705 | ac_status=$? | |
12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12707 | (exit $ac_status); }; }; then | |
12708 | ac_header_compiler=yes | |
12709 | else | |
12710 | echo "$as_me: failed program was:" >&5 | |
12711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12712 | ||
12713 | ac_header_compiler=no | |
12714 | fi | |
12715 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12716 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12717 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12718 | ||
12719 | # Is the header present? | |
12720 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12721 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12722 | cat >conftest.$ac_ext <<_ACEOF | |
12723 | #line $LINENO "configure" | |
12724 | /* confdefs.h. */ | |
12725 | _ACEOF | |
12726 | cat confdefs.h >>conftest.$ac_ext | |
12727 | cat >>conftest.$ac_ext <<_ACEOF | |
12728 | /* end confdefs.h. */ | |
12729 | #include <$ac_header> | |
12730 | _ACEOF | |
12731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12733 | ac_status=$? | |
12734 | grep -v '^ *+' conftest.er1 >conftest.err | |
12735 | rm -f conftest.er1 | |
12736 | cat conftest.err >&5 | |
12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12738 | (exit $ac_status); } >/dev/null; then | |
12739 | if test -s conftest.err; then | |
12740 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12741 | else | |
12742 | ac_cpp_err= | |
12743 | fi | |
12744 | else | |
12745 | ac_cpp_err=yes | |
12746 | fi | |
12747 | if test -z "$ac_cpp_err"; then | |
12748 | ac_header_preproc=yes | |
12749 | else | |
12750 | echo "$as_me: failed program was:" >&5 | |
12751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12752 | ||
12753 | ac_header_preproc=no | |
12754 | fi | |
12755 | rm -f conftest.err conftest.$ac_ext | |
12756 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12757 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12758 | ||
12759 | # So? What about this header? | |
12760 | case $ac_header_compiler:$ac_header_preproc in | |
12761 | yes:no ) | |
12762 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12763 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12764 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12765 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12766 | ( | |
12767 | cat <<\_ASBOX | |
12768 | ## ------------------------------------ ## | |
12769 | ## Report this to bug-autoconf@gnu.org. ## | |
12770 | ## ------------------------------------ ## | |
12771 | _ASBOX | |
12772 | ) | | |
12773 | sed "s/^/$as_me: WARNING: /" >&2 | |
12774 | ;; | |
12775 | no:yes ) | |
12776 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12777 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12778 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12779 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12780 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12781 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12782 | ( | |
12783 | cat <<\_ASBOX | |
12784 | ## ------------------------------------ ## | |
12785 | ## Report this to bug-autoconf@gnu.org. ## | |
12786 | ## ------------------------------------ ## | |
12787 | _ASBOX | |
12788 | ) | | |
12789 | sed "s/^/$as_me: WARNING: /" >&2 | |
12790 | ;; | |
12791 | esac | |
12792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12796 | else | |
12797 | eval "$as_ac_Header=$ac_header_preproc" | |
12798 | fi | |
12799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12801 | ||
90dd450c | 12802 | fi |
e6cc62c6 VS |
12803 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12804 | cat >>confdefs.h <<_ACEOF | |
12805 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12806 | _ACEOF | |
12807 | ||
12808 | fi | |
12809 | ||
12810 | done | |
90dd450c | 12811 | |
e6cc62c6 VS |
12812 | |
12813 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12814 | ||
12815 | for ac_header in wcstr.h | |
21d1c967 | 12816 | do |
e6cc62c6 VS |
12817 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12819 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12820 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12821 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12823 | fi | |
12824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12826 | else | |
12827 | # Is the header compilable? | |
12828 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12829 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12830 | cat >conftest.$ac_ext <<_ACEOF | |
12831 | #line $LINENO "configure" | |
12832 | /* confdefs.h. */ | |
12833 | _ACEOF | |
12834 | cat confdefs.h >>conftest.$ac_ext | |
12835 | cat >>conftest.$ac_ext <<_ACEOF | |
12836 | /* end confdefs.h. */ | |
12837 | $ac_includes_default | |
12838 | #include <$ac_header> | |
12839 | _ACEOF | |
12840 | rm -f conftest.$ac_objext | |
12841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12842 | (eval $ac_compile) 2>&5 | |
12843 | ac_status=$? | |
12844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12845 | (exit $ac_status); } && | |
12846 | { ac_try='test -s conftest.$ac_objext' | |
12847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12848 | (eval $ac_try) 2>&5 | |
12849 | ac_status=$? | |
12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12851 | (exit $ac_status); }; }; then | |
12852 | ac_header_compiler=yes | |
12853 | else | |
12854 | echo "$as_me: failed program was:" >&5 | |
12855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12856 | ||
12857 | ac_header_compiler=no | |
12858 | fi | |
12859 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12860 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12861 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12862 | ||
12863 | # Is the header present? | |
12864 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12865 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12866 | cat >conftest.$ac_ext <<_ACEOF | |
12867 | #line $LINENO "configure" | |
12868 | /* confdefs.h. */ | |
12869 | _ACEOF | |
12870 | cat confdefs.h >>conftest.$ac_ext | |
12871 | cat >>conftest.$ac_ext <<_ACEOF | |
12872 | /* end confdefs.h. */ | |
12873 | #include <$ac_header> | |
12874 | _ACEOF | |
12875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12877 | ac_status=$? | |
12878 | grep -v '^ *+' conftest.er1 >conftest.err | |
12879 | rm -f conftest.er1 | |
12880 | cat conftest.err >&5 | |
12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12882 | (exit $ac_status); } >/dev/null; then | |
12883 | if test -s conftest.err; then | |
12884 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12885 | else | |
12886 | ac_cpp_err= | |
12887 | fi | |
12888 | else | |
12889 | ac_cpp_err=yes | |
12890 | fi | |
12891 | if test -z "$ac_cpp_err"; then | |
12892 | ac_header_preproc=yes | |
12893 | else | |
12894 | echo "$as_me: failed program was:" >&5 | |
12895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12896 | ||
12897 | ac_header_preproc=no | |
12898 | fi | |
12899 | rm -f conftest.err conftest.$ac_ext | |
12900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12902 | ||
12903 | # So? What about this header? | |
12904 | case $ac_header_compiler:$ac_header_preproc in | |
12905 | yes:no ) | |
12906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12910 | ( | |
12911 | cat <<\_ASBOX | |
12912 | ## ------------------------------------ ## | |
12913 | ## Report this to bug-autoconf@gnu.org. ## | |
12914 | ## ------------------------------------ ## | |
12915 | _ASBOX | |
12916 | ) | | |
12917 | sed "s/^/$as_me: WARNING: /" >&2 | |
12918 | ;; | |
12919 | no:yes ) | |
12920 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12921 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12922 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12923 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12924 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12925 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12926 | ( | |
12927 | cat <<\_ASBOX | |
12928 | ## ------------------------------------ ## | |
12929 | ## Report this to bug-autoconf@gnu.org. ## | |
12930 | ## ------------------------------------ ## | |
12931 | _ASBOX | |
12932 | ) | | |
12933 | sed "s/^/$as_me: WARNING: /" >&2 | |
12934 | ;; | |
12935 | esac | |
12936 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12937 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12940 | else | |
12941 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 12942 | fi |
e6cc62c6 VS |
12943 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12944 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12945 | ||
4f14bcd8 | 12946 | fi |
e6cc62c6 VS |
12947 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12948 | cat >>confdefs.h <<_ACEOF | |
12949 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12950 | _ACEOF | |
12951 | ||
12952 | fi | |
12953 | ||
12954 | done | |
12955 | ||
12956 | fi | |
12957 | ||
12958 | ||
12959 | for ac_header in fnmatch.h | |
12960 | do | |
12961 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12962 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12963 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12967 | fi | |
12968 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12969 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12970 | else | |
12971 | # Is the header compilable? | |
12972 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12973 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12974 | cat >conftest.$ac_ext <<_ACEOF | |
12975 | #line $LINENO "configure" | |
12976 | /* confdefs.h. */ | |
12977 | _ACEOF | |
12978 | cat confdefs.h >>conftest.$ac_ext | |
12979 | cat >>conftest.$ac_ext <<_ACEOF | |
12980 | /* end confdefs.h. */ | |
12981 | $ac_includes_default | |
12982 | #include <$ac_header> | |
12983 | _ACEOF | |
12984 | rm -f conftest.$ac_objext | |
12985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12986 | (eval $ac_compile) 2>&5 | |
12987 | ac_status=$? | |
12988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12989 | (exit $ac_status); } && | |
12990 | { ac_try='test -s conftest.$ac_objext' | |
12991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12992 | (eval $ac_try) 2>&5 | |
12993 | ac_status=$? | |
12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12995 | (exit $ac_status); }; }; then | |
12996 | ac_header_compiler=yes | |
12997 | else | |
12998 | echo "$as_me: failed program was:" >&5 | |
12999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13000 | ||
13001 | ac_header_compiler=no | |
13002 | fi | |
13003 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13004 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13005 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13006 | ||
13007 | # Is the header present? | |
13008 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13009 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13010 | cat >conftest.$ac_ext <<_ACEOF | |
13011 | #line $LINENO "configure" | |
13012 | /* confdefs.h. */ | |
13013 | _ACEOF | |
13014 | cat confdefs.h >>conftest.$ac_ext | |
13015 | cat >>conftest.$ac_ext <<_ACEOF | |
13016 | /* end confdefs.h. */ | |
13017 | #include <$ac_header> | |
13018 | _ACEOF | |
13019 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13020 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13021 | ac_status=$? | |
13022 | grep -v '^ *+' conftest.er1 >conftest.err | |
13023 | rm -f conftest.er1 | |
13024 | cat conftest.err >&5 | |
13025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13026 | (exit $ac_status); } >/dev/null; then | |
13027 | if test -s conftest.err; then | |
13028 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13029 | else | |
13030 | ac_cpp_err= | |
13031 | fi | |
13032 | else | |
13033 | ac_cpp_err=yes | |
13034 | fi | |
13035 | if test -z "$ac_cpp_err"; then | |
13036 | ac_header_preproc=yes | |
13037 | else | |
13038 | echo "$as_me: failed program was:" >&5 | |
13039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13040 | ||
13041 | ac_header_preproc=no | |
13042 | fi | |
13043 | rm -f conftest.err conftest.$ac_ext | |
13044 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13045 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13046 | ||
13047 | # So? What about this header? | |
13048 | case $ac_header_compiler:$ac_header_preproc in | |
13049 | yes:no ) | |
13050 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13051 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13054 | ( | |
13055 | cat <<\_ASBOX | |
13056 | ## ------------------------------------ ## | |
13057 | ## Report this to bug-autoconf@gnu.org. ## | |
13058 | ## ------------------------------------ ## | |
13059 | _ASBOX | |
13060 | ) | | |
13061 | sed "s/^/$as_me: WARNING: /" >&2 | |
13062 | ;; | |
13063 | no:yes ) | |
13064 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13065 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13066 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13067 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13069 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13070 | ( | |
13071 | cat <<\_ASBOX | |
13072 | ## ------------------------------------ ## | |
13073 | ## Report this to bug-autoconf@gnu.org. ## | |
13074 | ## ------------------------------------ ## | |
13075 | _ASBOX | |
13076 | ) | | |
13077 | sed "s/^/$as_me: WARNING: /" >&2 | |
13078 | ;; | |
13079 | esac | |
13080 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13081 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13082 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13084 | else |
e6cc62c6 VS |
13085 | eval "$as_ac_Header=$ac_header_preproc" |
13086 | fi | |
13087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13088 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13089 | ||
21d1c967 | 13090 | fi |
e6cc62c6 VS |
13091 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13092 | cat >>confdefs.h <<_ACEOF | |
13093 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13094 | _ACEOF | |
13095 | ||
13096 | fi | |
13097 | ||
21d1c967 | 13098 | done |
90dd450c | 13099 | |
5c6fa7d2 | 13100 | |
a0b9e27f | 13101 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13102 | |
13103 | for ac_func in fnmatch | |
21d1c967 | 13104 | do |
e6cc62c6 VS |
13105 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13106 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13107 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13108 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13110 | else | |
13111 | cat >conftest.$ac_ext <<_ACEOF | |
13112 | #line $LINENO "configure" | |
13113 | /* confdefs.h. */ | |
13114 | _ACEOF | |
13115 | cat confdefs.h >>conftest.$ac_ext | |
13116 | cat >>conftest.$ac_ext <<_ACEOF | |
13117 | /* end confdefs.h. */ | |
a0b9e27f | 13118 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13119 | which can conflict with char $ac_func (); below. |
13120 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13121 | <limits.h> exists even on freestanding compilers. */ | |
13122 | #ifdef __STDC__ | |
13123 | # include <limits.h> | |
13124 | #else | |
13125 | # include <assert.h> | |
13126 | #endif | |
a0b9e27f | 13127 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13128 | #ifdef __cplusplus |
13129 | extern "C" | |
13130 | { | |
13131 | #endif | |
a0b9e27f | 13132 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13133 | builtin and then its argument prototype would still apply. */ |
13134 | char $ac_func (); | |
a0b9e27f MB |
13135 | /* The GNU C library defines this for functions which it implements |
13136 | to always fail with ENOSYS. Some functions are actually named | |
13137 | something starting with __ and the normal name is an alias. */ | |
13138 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13139 | choke me | |
13140 | #else | |
e6cc62c6 VS |
13141 | char (*f) () = $ac_func; |
13142 | #endif | |
13143 | #ifdef __cplusplus | |
13144 | } | |
a0b9e27f MB |
13145 | #endif |
13146 | ||
e6cc62c6 VS |
13147 | int |
13148 | main () | |
13149 | { | |
13150 | return f != $ac_func; | |
13151 | ; | |
13152 | return 0; | |
13153 | } | |
13154 | _ACEOF | |
13155 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13156 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13157 | (eval $ac_link) 2>&5 | |
13158 | ac_status=$? | |
13159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13160 | (exit $ac_status); } && | |
13161 | { ac_try='test -s conftest$ac_exeext' | |
13162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13163 | (eval $ac_try) 2>&5 | |
13164 | ac_status=$? | |
13165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13166 | (exit $ac_status); }; }; then | |
13167 | eval "$as_ac_var=yes" | |
13168 | else | |
13169 | echo "$as_me: failed program was:" >&5 | |
13170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13171 | ||
13172 | eval "$as_ac_var=no" | |
13173 | fi | |
13174 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13175 | fi | |
13176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13177 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13178 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13179 | cat >>confdefs.h <<_ACEOF | |
13180 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13181 | _ACEOF | |
32832908 | 13182 | |
21d1c967 GD |
13183 | fi |
13184 | done | |
90dd450c | 13185 | |
a0b9e27f | 13186 | fi |
90dd450c | 13187 | |
e6cc62c6 VS |
13188 | |
13189 | for ac_header in langinfo.h | |
21d1c967 | 13190 | do |
e6cc62c6 VS |
13191 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13192 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13197 | fi | |
13198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13199 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13200 | else | |
13201 | # Is the header compilable? | |
13202 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13203 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13204 | cat >conftest.$ac_ext <<_ACEOF | |
13205 | #line $LINENO "configure" | |
13206 | /* confdefs.h. */ | |
13207 | _ACEOF | |
13208 | cat confdefs.h >>conftest.$ac_ext | |
13209 | cat >>conftest.$ac_ext <<_ACEOF | |
13210 | /* end confdefs.h. */ | |
13211 | $ac_includes_default | |
13212 | #include <$ac_header> | |
13213 | _ACEOF | |
13214 | rm -f conftest.$ac_objext | |
13215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13216 | (eval $ac_compile) 2>&5 | |
13217 | ac_status=$? | |
13218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13219 | (exit $ac_status); } && | |
13220 | { ac_try='test -s conftest.$ac_objext' | |
13221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13222 | (eval $ac_try) 2>&5 | |
13223 | ac_status=$? | |
13224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13225 | (exit $ac_status); }; }; then | |
13226 | ac_header_compiler=yes | |
13227 | else | |
13228 | echo "$as_me: failed program was:" >&5 | |
13229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13230 | ||
13231 | ac_header_compiler=no | |
13232 | fi | |
13233 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13234 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13235 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13236 | ||
13237 | # Is the header present? | |
13238 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13239 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13240 | cat >conftest.$ac_ext <<_ACEOF | |
13241 | #line $LINENO "configure" | |
13242 | /* confdefs.h. */ | |
13243 | _ACEOF | |
13244 | cat confdefs.h >>conftest.$ac_ext | |
13245 | cat >>conftest.$ac_ext <<_ACEOF | |
13246 | /* end confdefs.h. */ | |
13247 | #include <$ac_header> | |
13248 | _ACEOF | |
13249 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13250 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13251 | ac_status=$? | |
13252 | grep -v '^ *+' conftest.er1 >conftest.err | |
13253 | rm -f conftest.er1 | |
13254 | cat conftest.err >&5 | |
13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13256 | (exit $ac_status); } >/dev/null; then | |
13257 | if test -s conftest.err; then | |
13258 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13259 | else | |
13260 | ac_cpp_err= | |
13261 | fi | |
13262 | else | |
13263 | ac_cpp_err=yes | |
13264 | fi | |
13265 | if test -z "$ac_cpp_err"; then | |
13266 | ac_header_preproc=yes | |
13267 | else | |
13268 | echo "$as_me: failed program was:" >&5 | |
13269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13270 | ||
13271 | ac_header_preproc=no | |
13272 | fi | |
13273 | rm -f conftest.err conftest.$ac_ext | |
13274 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13275 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13276 | ||
13277 | # So? What about this header? | |
13278 | case $ac_header_compiler:$ac_header_preproc in | |
13279 | yes:no ) | |
13280 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13281 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13282 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13283 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13284 | ( | |
13285 | cat <<\_ASBOX | |
13286 | ## ------------------------------------ ## | |
13287 | ## Report this to bug-autoconf@gnu.org. ## | |
13288 | ## ------------------------------------ ## | |
13289 | _ASBOX | |
13290 | ) | | |
13291 | sed "s/^/$as_me: WARNING: /" >&2 | |
13292 | ;; | |
13293 | no:yes ) | |
13294 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13295 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13296 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13297 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13298 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13299 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13300 | ( | |
13301 | cat <<\_ASBOX | |
13302 | ## ------------------------------------ ## | |
13303 | ## Report this to bug-autoconf@gnu.org. ## | |
13304 | ## ------------------------------------ ## | |
13305 | _ASBOX | |
13306 | ) | | |
13307 | sed "s/^/$as_me: WARNING: /" >&2 | |
13308 | ;; | |
13309 | esac | |
13310 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13311 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13312 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13314 | else | |
13315 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 13316 | fi |
e6cc62c6 VS |
13317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13319 | ||
4f14bcd8 | 13320 | fi |
e6cc62c6 VS |
13321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13322 | cat >>confdefs.h <<_ACEOF | |
13323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13324 | _ACEOF | |
13325 | ||
21d1c967 | 13326 | fi |
e6cc62c6 | 13327 | |
21d1c967 | 13328 | done |
3a922bb4 | 13329 | |
8284b0c5 | 13330 | |
4f5a7f74 VZ |
13331 | case "${host}" in |
13332 | *-pc-os2_emx | *-pc-os2-emx ) | |
13333 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13334 | LIBS="$LIBS -lintl" | |
13335 | fi | |
13336 | ;; | |
13337 | esac | |
1542ea39 | 13338 | |
a0b9e27f MB |
13339 | if test "$wxUSE_GUI" = "yes"; then |
13340 | if test "$wxUSE_UNIX" = "yes"; then | |
e6cc62c6 VS |
13341 | |
13342 | for ac_header in X11/XKBlib.h | |
21d1c967 | 13343 | do |
e6cc62c6 VS |
13344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13350 | fi | |
13351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13353 | else | |
13354 | # Is the header compilable? | |
13355 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13356 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13357 | cat >conftest.$ac_ext <<_ACEOF | |
13358 | #line $LINENO "configure" | |
13359 | /* confdefs.h. */ | |
13360 | _ACEOF | |
13361 | cat confdefs.h >>conftest.$ac_ext | |
13362 | cat >>conftest.$ac_ext <<_ACEOF | |
13363 | /* end confdefs.h. */ | |
13364 | $ac_includes_default | |
13365 | #include <$ac_header> | |
13366 | _ACEOF | |
13367 | rm -f conftest.$ac_objext | |
13368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13369 | (eval $ac_compile) 2>&5 | |
13370 | ac_status=$? | |
13371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13372 | (exit $ac_status); } && | |
13373 | { ac_try='test -s conftest.$ac_objext' | |
13374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13375 | (eval $ac_try) 2>&5 | |
13376 | ac_status=$? | |
13377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13378 | (exit $ac_status); }; }; then | |
13379 | ac_header_compiler=yes | |
13380 | else | |
13381 | echo "$as_me: failed program was:" >&5 | |
13382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13383 | ||
13384 | ac_header_compiler=no | |
13385 | fi | |
13386 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13387 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13388 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13389 | ||
13390 | # Is the header present? | |
13391 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13392 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13393 | cat >conftest.$ac_ext <<_ACEOF | |
13394 | #line $LINENO "configure" | |
13395 | /* confdefs.h. */ | |
13396 | _ACEOF | |
13397 | cat confdefs.h >>conftest.$ac_ext | |
13398 | cat >>conftest.$ac_ext <<_ACEOF | |
13399 | /* end confdefs.h. */ | |
13400 | #include <$ac_header> | |
13401 | _ACEOF | |
13402 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13403 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13404 | ac_status=$? | |
13405 | grep -v '^ *+' conftest.er1 >conftest.err | |
13406 | rm -f conftest.er1 | |
13407 | cat conftest.err >&5 | |
13408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13409 | (exit $ac_status); } >/dev/null; then | |
13410 | if test -s conftest.err; then | |
13411 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13412 | else | |
13413 | ac_cpp_err= | |
13414 | fi | |
13415 | else | |
13416 | ac_cpp_err=yes | |
13417 | fi | |
13418 | if test -z "$ac_cpp_err"; then | |
13419 | ac_header_preproc=yes | |
13420 | else | |
13421 | echo "$as_me: failed program was:" >&5 | |
13422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13423 | ||
13424 | ac_header_preproc=no | |
13425 | fi | |
13426 | rm -f conftest.err conftest.$ac_ext | |
13427 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13428 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13429 | ||
13430 | # So? What about this header? | |
13431 | case $ac_header_compiler:$ac_header_preproc in | |
13432 | yes:no ) | |
13433 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13434 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13435 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13436 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13437 | ( | |
13438 | cat <<\_ASBOX | |
13439 | ## ------------------------------------ ## | |
13440 | ## Report this to bug-autoconf@gnu.org. ## | |
13441 | ## ------------------------------------ ## | |
13442 | _ASBOX | |
13443 | ) | | |
13444 | sed "s/^/$as_me: WARNING: /" >&2 | |
13445 | ;; | |
13446 | no:yes ) | |
13447 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13448 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13449 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13450 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13451 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13452 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13453 | ( | |
13454 | cat <<\_ASBOX | |
13455 | ## ------------------------------------ ## | |
13456 | ## Report this to bug-autoconf@gnu.org. ## | |
13457 | ## ------------------------------------ ## | |
13458 | _ASBOX | |
13459 | ) | | |
13460 | sed "s/^/$as_me: WARNING: /" >&2 | |
13461 | ;; | |
13462 | esac | |
13463 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13464 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13465 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13467 | else | |
13468 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13469 | fi |
e6cc62c6 VS |
13470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13471 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13472 | ||
90dd450c | 13473 | fi |
e6cc62c6 VS |
13474 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13475 | cat >>confdefs.h <<_ACEOF | |
13476 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13477 | _ACEOF | |
13478 | ||
247f5006 | 13479 | fi |
e6cc62c6 | 13480 | |
247f5006 VZ |
13481 | done |
13482 | ||
a0b9e27f MB |
13483 | fi |
13484 | fi | |
247f5006 | 13485 | |
247f5006 | 13486 | |
e6cc62c6 VS |
13487 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13488 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13489 | if test "${ac_cv_c_const+set}" = set; then | |
13490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13491 | else | |
13492 | cat >conftest.$ac_ext <<_ACEOF | |
13493 | #line $LINENO "configure" | |
13494 | /* confdefs.h. */ | |
13495 | _ACEOF | |
13496 | cat confdefs.h >>conftest.$ac_ext | |
13497 | cat >>conftest.$ac_ext <<_ACEOF | |
13498 | /* end confdefs.h. */ | |
13499 | ||
13500 | int | |
13501 | main () | |
13502 | { | |
13503 | /* FIXME: Include the comments suggested by Paul. */ | |
13504 | #ifndef __cplusplus | |
13505 | /* Ultrix mips cc rejects this. */ | |
13506 | typedef int charset[2]; | |
13507 | const charset x; | |
13508 | /* SunOS 4.1.1 cc rejects this. */ | |
13509 | char const *const *ccp; | |
13510 | char **p; | |
13511 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13512 | struct point {int x, y;}; | |
13513 | static struct point const zero = {0,0}; | |
13514 | /* AIX XL C 1.02.0.0 rejects this. | |
13515 | It does not let you subtract one const X* pointer from another in | |
13516 | an arm of an if-expression whose if-part is not a constant | |
13517 | expression */ | |
13518 | const char *g = "string"; | |
13519 | ccp = &g + (g ? g-g : 0); | |
13520 | /* HPUX 7.0 cc rejects these. */ | |
13521 | ++ccp; | |
13522 | p = (char**) ccp; | |
13523 | ccp = (char const *const *) p; | |
13524 | { /* SCO 3.2v4 cc rejects this. */ | |
13525 | char *t; | |
13526 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13527 | ||
13528 | *t++ = 0; | |
13529 | } | |
13530 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13531 | int x[] = {25, 17}; | |
13532 | const int *foo = &x[0]; | |
13533 | ++foo; | |
13534 | } | |
13535 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13536 | typedef const int *iptr; | |
13537 | iptr p = 0; | |
13538 | ++p; | |
13539 | } | |
13540 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13541 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13542 | struct s { int j; const int *ap[3]; }; | |
13543 | struct s *b; b->j = 5; | |
13544 | } | |
13545 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13546 | const int foo = 10; | |
13547 | } | |
13548 | #endif | |
13549 | ||
13550 | ; | |
13551 | return 0; | |
13552 | } | |
13553 | _ACEOF | |
13554 | rm -f conftest.$ac_objext | |
13555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13556 | (eval $ac_compile) 2>&5 | |
13557 | ac_status=$? | |
13558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13559 | (exit $ac_status); } && | |
13560 | { ac_try='test -s conftest.$ac_objext' | |
13561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13562 | (eval $ac_try) 2>&5 | |
13563 | ac_status=$? | |
13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13565 | (exit $ac_status); }; }; then | |
a0b9e27f | 13566 | ac_cv_c_const=yes |
247f5006 | 13567 | else |
e6cc62c6 VS |
13568 | echo "$as_me: failed program was:" >&5 |
13569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13570 | ||
13571 | ac_cv_c_const=no | |
247f5006 | 13572 | fi |
e6cc62c6 | 13573 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13574 | fi |
e6cc62c6 VS |
13575 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13576 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13577 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13578 | |
13579 | cat >>confdefs.h <<\_ACEOF | |
13580 | #define const | |
13581 | _ACEOF | |
10f2d63a | 13582 | |
90dd450c | 13583 | fi |
81809c07 | 13584 | |
e6cc62c6 VS |
13585 | echo "$as_me:$LINENO: checking for inline" >&5 |
13586 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13587 | if test "${ac_cv_c_inline+set}" = set; then | |
13588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13589 | else |
a0b9e27f MB |
13590 | ac_cv_c_inline=no |
13591 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 VS |
13592 | cat >conftest.$ac_ext <<_ACEOF |
13593 | #line $LINENO "configure" | |
13594 | /* confdefs.h. */ | |
13595 | _ACEOF | |
13596 | cat confdefs.h >>conftest.$ac_ext | |
13597 | cat >>conftest.$ac_ext <<_ACEOF | |
13598 | /* end confdefs.h. */ | |
13599 | #ifndef __cplusplus | |
13600 | typedef int foo_t; | |
13601 | static $ac_kw foo_t static_foo () {return 0; } | |
13602 | $ac_kw foo_t foo () {return 0; } | |
13603 | #endif | |
a0b9e27f | 13604 | |
e6cc62c6 VS |
13605 | _ACEOF |
13606 | rm -f conftest.$ac_objext | |
13607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13608 | (eval $ac_compile) 2>&5 | |
13609 | ac_status=$? | |
13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13611 | (exit $ac_status); } && | |
13612 | { ac_try='test -s conftest.$ac_objext' | |
13613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13614 | (eval $ac_try) 2>&5 | |
13615 | ac_status=$? | |
13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13617 | (exit $ac_status); }; }; then | |
a0b9e27f | 13618 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13619 | else |
e6cc62c6 VS |
13620 | echo "$as_me: failed program was:" >&5 |
13621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13622 | ||
247f5006 | 13623 | fi |
e6cc62c6 | 13624 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13625 | done |
247f5006 VZ |
13626 | |
13627 | fi | |
e6cc62c6 VS |
13628 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13629 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13630 | case $ac_cv_c_inline in | |
a0b9e27f | 13631 | inline | yes) ;; |
e6cc62c6 VS |
13632 | no) |
13633 | cat >>confdefs.h <<\_ACEOF | |
13634 | #define inline | |
13635 | _ACEOF | |
a0b9e27f | 13636 | ;; |
e6cc62c6 | 13637 | *) cat >>confdefs.h <<_ACEOF |
a0b9e27f | 13638 | #define inline $ac_cv_c_inline |
e6cc62c6 | 13639 | _ACEOF |
a0b9e27f MB |
13640 | ;; |
13641 | esac | |
247f5006 | 13642 | |
247f5006 | 13643 | |
e6cc62c6 VS |
13644 | echo "$as_me:$LINENO: checking for char" >&5 |
13645 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13646 | if test "${ac_cv_type_char+set}" = set; then | |
13647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13648 | else | |
13649 | cat >conftest.$ac_ext <<_ACEOF | |
13650 | #line $LINENO "configure" | |
13651 | /* confdefs.h. */ | |
13652 | _ACEOF | |
13653 | cat confdefs.h >>conftest.$ac_ext | |
13654 | cat >>conftest.$ac_ext <<_ACEOF | |
13655 | /* end confdefs.h. */ | |
13656 | $ac_includes_default | |
13657 | int | |
13658 | main () | |
13659 | { | |
13660 | if ((char *) 0) | |
13661 | return 0; | |
13662 | if (sizeof (char)) | |
13663 | return 0; | |
13664 | ; | |
13665 | return 0; | |
13666 | } | |
13667 | _ACEOF | |
13668 | rm -f conftest.$ac_objext | |
13669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13670 | (eval $ac_compile) 2>&5 | |
13671 | ac_status=$? | |
13672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13673 | (exit $ac_status); } && | |
13674 | { ac_try='test -s conftest.$ac_objext' | |
13675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13676 | (eval $ac_try) 2>&5 | |
13677 | ac_status=$? | |
13678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13679 | (exit $ac_status); }; }; then | |
13680 | ac_cv_type_char=yes | |
13681 | else | |
13682 | echo "$as_me: failed program was:" >&5 | |
13683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13684 | ||
13685 | ac_cv_type_char=no | |
13686 | fi | |
13687 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13688 | fi | |
13689 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13690 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13691 | ||
13692 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13693 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13694 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13696 | else | |
13697 | if test "$ac_cv_type_char" = yes; then | |
13698 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13699 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13700 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13701 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13702 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13703 | # Depending upon the size, compute the lo and hi bounds. |
13704 | cat >conftest.$ac_ext <<_ACEOF | |
13705 | #line $LINENO "configure" | |
13706 | /* confdefs.h. */ | |
13707 | _ACEOF | |
13708 | cat confdefs.h >>conftest.$ac_ext | |
13709 | cat >>conftest.$ac_ext <<_ACEOF | |
13710 | /* end confdefs.h. */ | |
13711 | $ac_includes_default | |
13712 | int | |
13713 | main () | |
13714 | { | |
13715 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13716 | test_array [0] = 0 | |
13717 | ||
13718 | ; | |
13719 | return 0; | |
13720 | } | |
13721 | _ACEOF | |
13722 | rm -f conftest.$ac_objext | |
13723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13724 | (eval $ac_compile) 2>&5 | |
13725 | ac_status=$? | |
13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13727 | (exit $ac_status); } && | |
13728 | { ac_try='test -s conftest.$ac_objext' | |
13729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13730 | (eval $ac_try) 2>&5 | |
13731 | ac_status=$? | |
13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13733 | (exit $ac_status); }; }; then | |
13734 | ac_lo=0 ac_mid=0 | |
13735 | while :; do | |
13736 | cat >conftest.$ac_ext <<_ACEOF | |
13737 | #line $LINENO "configure" | |
13738 | /* confdefs.h. */ | |
13739 | _ACEOF | |
13740 | cat confdefs.h >>conftest.$ac_ext | |
13741 | cat >>conftest.$ac_ext <<_ACEOF | |
13742 | /* end confdefs.h. */ | |
13743 | $ac_includes_default | |
13744 | int | |
13745 | main () | |
13746 | { | |
13747 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13748 | test_array [0] = 0 | |
13749 | ||
13750 | ; | |
13751 | return 0; | |
13752 | } | |
13753 | _ACEOF | |
13754 | rm -f conftest.$ac_objext | |
13755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13756 | (eval $ac_compile) 2>&5 | |
13757 | ac_status=$? | |
13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13759 | (exit $ac_status); } && | |
13760 | { ac_try='test -s conftest.$ac_objext' | |
13761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13762 | (eval $ac_try) 2>&5 | |
13763 | ac_status=$? | |
13764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13765 | (exit $ac_status); }; }; then | |
13766 | ac_hi=$ac_mid; break | |
13767 | else | |
13768 | echo "$as_me: failed program was:" >&5 | |
13769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13770 | ||
13771 | ac_lo=`expr $ac_mid + 1` | |
13772 | if test $ac_lo -le $ac_mid; then | |
13773 | ac_lo= ac_hi= | |
13774 | break | |
13775 | fi | |
13776 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13777 | fi | |
13778 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13779 | done | |
a0b9e27f | 13780 | else |
e6cc62c6 VS |
13781 | echo "$as_me: failed program was:" >&5 |
13782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13783 | ||
13784 | cat >conftest.$ac_ext <<_ACEOF | |
13785 | #line $LINENO "configure" | |
13786 | /* confdefs.h. */ | |
13787 | _ACEOF | |
13788 | cat confdefs.h >>conftest.$ac_ext | |
13789 | cat >>conftest.$ac_ext <<_ACEOF | |
13790 | /* end confdefs.h. */ | |
13791 | $ac_includes_default | |
13792 | int | |
13793 | main () | |
13794 | { | |
13795 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13796 | test_array [0] = 0 | |
13797 | ||
13798 | ; | |
13799 | return 0; | |
13800 | } | |
13801 | _ACEOF | |
13802 | rm -f conftest.$ac_objext | |
13803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13804 | (eval $ac_compile) 2>&5 | |
13805 | ac_status=$? | |
13806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13807 | (exit $ac_status); } && | |
13808 | { ac_try='test -s conftest.$ac_objext' | |
13809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13810 | (eval $ac_try) 2>&5 | |
13811 | ac_status=$? | |
13812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13813 | (exit $ac_status); }; }; then | |
13814 | ac_hi=-1 ac_mid=-1 | |
13815 | while :; do | |
13816 | cat >conftest.$ac_ext <<_ACEOF | |
13817 | #line $LINENO "configure" | |
13818 | /* confdefs.h. */ | |
13819 | _ACEOF | |
13820 | cat confdefs.h >>conftest.$ac_ext | |
13821 | cat >>conftest.$ac_ext <<_ACEOF | |
13822 | /* end confdefs.h. */ | |
13823 | $ac_includes_default | |
13824 | int | |
13825 | main () | |
13826 | { | |
13827 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13828 | test_array [0] = 0 | |
13829 | ||
13830 | ; | |
13831 | return 0; | |
13832 | } | |
13833 | _ACEOF | |
13834 | rm -f conftest.$ac_objext | |
13835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13836 | (eval $ac_compile) 2>&5 | |
13837 | ac_status=$? | |
13838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13839 | (exit $ac_status); } && | |
13840 | { ac_try='test -s conftest.$ac_objext' | |
13841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13842 | (eval $ac_try) 2>&5 | |
13843 | ac_status=$? | |
13844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13845 | (exit $ac_status); }; }; then | |
13846 | ac_lo=$ac_mid; break | |
13847 | else | |
13848 | echo "$as_me: failed program was:" >&5 | |
13849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13850 | ||
13851 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13852 | if test $ac_mid -le $ac_hi; then | |
13853 | ac_lo= ac_hi= | |
13854 | break | |
13855 | fi | |
13856 | ac_mid=`expr 2 '*' $ac_mid` | |
13857 | fi | |
13858 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13859 | done | |
13860 | else | |
13861 | echo "$as_me: failed program was:" >&5 | |
13862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13863 | ||
13864 | ac_lo= ac_hi= | |
13865 | fi | |
13866 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13867 | fi | |
13868 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13869 | # Binary search between lo and hi bounds. | |
13870 | while test "x$ac_lo" != "x$ac_hi"; do | |
13871 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13872 | cat >conftest.$ac_ext <<_ACEOF | |
13873 | #line $LINENO "configure" | |
13874 | /* confdefs.h. */ | |
13875 | _ACEOF | |
13876 | cat confdefs.h >>conftest.$ac_ext | |
13877 | cat >>conftest.$ac_ext <<_ACEOF | |
13878 | /* end confdefs.h. */ | |
13879 | $ac_includes_default | |
13880 | int | |
13881 | main () | |
13882 | { | |
13883 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13884 | test_array [0] = 0 | |
13885 | ||
13886 | ; | |
13887 | return 0; | |
13888 | } | |
13889 | _ACEOF | |
13890 | rm -f conftest.$ac_objext | |
13891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13892 | (eval $ac_compile) 2>&5 | |
13893 | ac_status=$? | |
13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13895 | (exit $ac_status); } && | |
13896 | { ac_try='test -s conftest.$ac_objext' | |
13897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13898 | (eval $ac_try) 2>&5 | |
13899 | ac_status=$? | |
13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13901 | (exit $ac_status); }; }; then | |
13902 | ac_hi=$ac_mid | |
13903 | else | |
13904 | echo "$as_me: failed program was:" >&5 | |
13905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13906 | ||
13907 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13908 | fi | |
13909 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13910 | done | |
13911 | case $ac_lo in | |
13912 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
13913 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13914 | See \`config.log' for more details." >&5 | |
13915 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13916 | See \`config.log' for more details." >&2;} | |
13917 | { (exit 1); exit 1; }; } ;; | |
13918 | esac | |
13919 | else | |
13920 | if test "$cross_compiling" = yes; then | |
13921 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13922 | See \`config.log' for more details." >&5 | |
13923 | echo "$as_me: error: cannot run test program while cross compiling | |
13924 | See \`config.log' for more details." >&2;} | |
13925 | { (exit 1); exit 1; }; } | |
13926 | else | |
13927 | cat >conftest.$ac_ext <<_ACEOF | |
13928 | #line $LINENO "configure" | |
13929 | /* confdefs.h. */ | |
13930 | _ACEOF | |
13931 | cat confdefs.h >>conftest.$ac_ext | |
13932 | cat >>conftest.$ac_ext <<_ACEOF | |
13933 | /* end confdefs.h. */ | |
13934 | $ac_includes_default | |
13935 | long longval () { return (long) (sizeof (char)); } | |
13936 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 13937 | #include <stdio.h> |
e6cc62c6 VS |
13938 | #include <stdlib.h> |
13939 | int | |
13940 | main () | |
247f5006 | 13941 | { |
e6cc62c6 VS |
13942 | |
13943 | FILE *f = fopen ("conftest.val", "w"); | |
13944 | if (! f) | |
13945 | exit (1); | |
13946 | if (((long) (sizeof (char))) < 0) | |
13947 | { | |
13948 | long i = longval (); | |
13949 | if (i != ((long) (sizeof (char)))) | |
13950 | exit (1); | |
13951 | fprintf (f, "%ld\n", i); | |
13952 | } | |
13953 | else | |
13954 | { | |
13955 | unsigned long i = ulongval (); | |
13956 | if (i != ((long) (sizeof (char)))) | |
13957 | exit (1); | |
13958 | fprintf (f, "%lu\n", i); | |
13959 | } | |
13960 | exit (ferror (f) || fclose (f) != 0); | |
13961 | ||
13962 | ; | |
13963 | return 0; | |
52127426 | 13964 | } |
e6cc62c6 VS |
13965 | _ACEOF |
13966 | rm -f conftest$ac_exeext | |
13967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13968 | (eval $ac_link) 2>&5 | |
13969 | ac_status=$? | |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13971 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13973 | (eval $ac_try) 2>&5 | |
13974 | ac_status=$? | |
13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13976 | (exit $ac_status); }; }; then | |
13977 | ac_cv_sizeof_char=`cat conftest.val` | |
13978 | else | |
13979 | echo "$as_me: program exited with status $ac_status" >&5 | |
13980 | echo "$as_me: failed program was:" >&5 | |
13981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13982 | ||
13983 | ( exit $ac_status ) | |
13984 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13985 | See \`config.log' for more details." >&5 | |
13986 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13987 | See \`config.log' for more details." >&2;} | |
13988 | { (exit 1); exit 1; }; } | |
13989 | fi | |
13990 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13991 | fi | |
13992 | fi | |
13993 | rm -f conftest.val | |
247f5006 | 13994 | else |
a0b9e27f | 13995 | ac_cv_sizeof_char=0 |
247f5006 | 13996 | fi |
247f5006 | 13997 | fi |
e6cc62c6 VS |
13998 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
13999 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14000 | cat >>confdefs.h <<_ACEOF | |
14001 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14002 | _ACEOF | |
14003 | ||
14004 | ||
14005 | echo "$as_me:$LINENO: checking for short" >&5 | |
14006 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14007 | if test "${ac_cv_type_short+set}" = set; then | |
14008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14009 | else | |
14010 | cat >conftest.$ac_ext <<_ACEOF | |
14011 | #line $LINENO "configure" | |
14012 | /* confdefs.h. */ | |
14013 | _ACEOF | |
14014 | cat confdefs.h >>conftest.$ac_ext | |
14015 | cat >>conftest.$ac_ext <<_ACEOF | |
14016 | /* end confdefs.h. */ | |
14017 | $ac_includes_default | |
14018 | int | |
14019 | main () | |
14020 | { | |
14021 | if ((short *) 0) | |
14022 | return 0; | |
14023 | if (sizeof (short)) | |
14024 | return 0; | |
14025 | ; | |
14026 | return 0; | |
14027 | } | |
14028 | _ACEOF | |
14029 | rm -f conftest.$ac_objext | |
14030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14031 | (eval $ac_compile) 2>&5 | |
14032 | ac_status=$? | |
14033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14034 | (exit $ac_status); } && | |
14035 | { ac_try='test -s conftest.$ac_objext' | |
14036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14037 | (eval $ac_try) 2>&5 | |
14038 | ac_status=$? | |
14039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14040 | (exit $ac_status); }; }; then | |
14041 | ac_cv_type_short=yes | |
14042 | else | |
14043 | echo "$as_me: failed program was:" >&5 | |
14044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14045 | ||
14046 | ac_cv_type_short=no | |
14047 | fi | |
14048 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14049 | fi | |
14050 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14051 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14052 | ||
14053 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14054 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14055 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14057 | else | |
14058 | if test "$ac_cv_type_short" = yes; then | |
14059 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14060 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14061 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14062 | # This bug is HP SR number 8606223364. | |
14063 | if test "$cross_compiling" = yes; then | |
14064 | # Depending upon the size, compute the lo and hi bounds. | |
14065 | cat >conftest.$ac_ext <<_ACEOF | |
14066 | #line $LINENO "configure" | |
14067 | /* confdefs.h. */ | |
14068 | _ACEOF | |
14069 | cat confdefs.h >>conftest.$ac_ext | |
14070 | cat >>conftest.$ac_ext <<_ACEOF | |
14071 | /* end confdefs.h. */ | |
14072 | $ac_includes_default | |
14073 | int | |
14074 | main () | |
14075 | { | |
14076 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14077 | test_array [0] = 0 | |
247f5006 | 14078 | |
e6cc62c6 VS |
14079 | ; |
14080 | return 0; | |
14081 | } | |
14082 | _ACEOF | |
14083 | rm -f conftest.$ac_objext | |
14084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14085 | (eval $ac_compile) 2>&5 | |
14086 | ac_status=$? | |
14087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14088 | (exit $ac_status); } && | |
14089 | { ac_try='test -s conftest.$ac_objext' | |
14090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14091 | (eval $ac_try) 2>&5 | |
14092 | ac_status=$? | |
14093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14094 | (exit $ac_status); }; }; then | |
14095 | ac_lo=0 ac_mid=0 | |
14096 | while :; do | |
14097 | cat >conftest.$ac_ext <<_ACEOF | |
14098 | #line $LINENO "configure" | |
14099 | /* confdefs.h. */ | |
14100 | _ACEOF | |
14101 | cat confdefs.h >>conftest.$ac_ext | |
14102 | cat >>conftest.$ac_ext <<_ACEOF | |
14103 | /* end confdefs.h. */ | |
14104 | $ac_includes_default | |
14105 | int | |
14106 | main () | |
14107 | { | |
14108 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14109 | test_array [0] = 0 | |
14110 | ||
14111 | ; | |
14112 | return 0; | |
14113 | } | |
14114 | _ACEOF | |
14115 | rm -f conftest.$ac_objext | |
14116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14117 | (eval $ac_compile) 2>&5 | |
14118 | ac_status=$? | |
14119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14120 | (exit $ac_status); } && | |
14121 | { ac_try='test -s conftest.$ac_objext' | |
14122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14123 | (eval $ac_try) 2>&5 | |
14124 | ac_status=$? | |
14125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14126 | (exit $ac_status); }; }; then | |
14127 | ac_hi=$ac_mid; break | |
14128 | else | |
14129 | echo "$as_me: failed program was:" >&5 | |
14130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14131 | ||
14132 | ac_lo=`expr $ac_mid + 1` | |
14133 | if test $ac_lo -le $ac_mid; then | |
14134 | ac_lo= ac_hi= | |
14135 | break | |
14136 | fi | |
14137 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14138 | fi |
e6cc62c6 VS |
14139 | rm -f conftest.$ac_objext conftest.$ac_ext |
14140 | done | |
14141 | else | |
14142 | echo "$as_me: failed program was:" >&5 | |
14143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14144 | ||
14145 | cat >conftest.$ac_ext <<_ACEOF | |
14146 | #line $LINENO "configure" | |
14147 | /* confdefs.h. */ | |
14148 | _ACEOF | |
14149 | cat confdefs.h >>conftest.$ac_ext | |
14150 | cat >>conftest.$ac_ext <<_ACEOF | |
14151 | /* end confdefs.h. */ | |
14152 | $ac_includes_default | |
14153 | int | |
14154 | main () | |
14155 | { | |
14156 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14157 | test_array [0] = 0 | |
247f5006 | 14158 | |
e6cc62c6 VS |
14159 | ; |
14160 | return 0; | |
14161 | } | |
14162 | _ACEOF | |
14163 | rm -f conftest.$ac_objext | |
14164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14165 | (eval $ac_compile) 2>&5 | |
14166 | ac_status=$? | |
14167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14168 | (exit $ac_status); } && | |
14169 | { ac_try='test -s conftest.$ac_objext' | |
14170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14171 | (eval $ac_try) 2>&5 | |
14172 | ac_status=$? | |
14173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14174 | (exit $ac_status); }; }; then | |
14175 | ac_hi=-1 ac_mid=-1 | |
14176 | while :; do | |
14177 | cat >conftest.$ac_ext <<_ACEOF | |
14178 | #line $LINENO "configure" | |
14179 | /* confdefs.h. */ | |
14180 | _ACEOF | |
14181 | cat confdefs.h >>conftest.$ac_ext | |
14182 | cat >>conftest.$ac_ext <<_ACEOF | |
14183 | /* end confdefs.h. */ | |
14184 | $ac_includes_default | |
14185 | int | |
14186 | main () | |
14187 | { | |
14188 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14189 | test_array [0] = 0 | |
247f5006 | 14190 | |
e6cc62c6 VS |
14191 | ; |
14192 | return 0; | |
14193 | } | |
14194 | _ACEOF | |
14195 | rm -f conftest.$ac_objext | |
14196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14197 | (eval $ac_compile) 2>&5 | |
14198 | ac_status=$? | |
14199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14200 | (exit $ac_status); } && | |
14201 | { ac_try='test -s conftest.$ac_objext' | |
14202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14203 | (eval $ac_try) 2>&5 | |
14204 | ac_status=$? | |
14205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14206 | (exit $ac_status); }; }; then | |
14207 | ac_lo=$ac_mid; break | |
14208 | else | |
14209 | echo "$as_me: failed program was:" >&5 | |
14210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14211 | ||
14212 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14213 | if test $ac_mid -le $ac_hi; then | |
14214 | ac_lo= ac_hi= | |
14215 | break | |
14216 | fi | |
14217 | ac_mid=`expr 2 '*' $ac_mid` | |
14218 | fi | |
14219 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14220 | done | |
247f5006 | 14221 | else |
e6cc62c6 VS |
14222 | echo "$as_me: failed program was:" >&5 |
14223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14224 | ||
14225 | ac_lo= ac_hi= | |
14226 | fi | |
14227 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14228 | fi | |
14229 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14230 | # Binary search between lo and hi bounds. | |
14231 | while test "x$ac_lo" != "x$ac_hi"; do | |
14232 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14233 | cat >conftest.$ac_ext <<_ACEOF | |
14234 | #line $LINENO "configure" | |
14235 | /* confdefs.h. */ | |
14236 | _ACEOF | |
14237 | cat confdefs.h >>conftest.$ac_ext | |
14238 | cat >>conftest.$ac_ext <<_ACEOF | |
14239 | /* end confdefs.h. */ | |
14240 | $ac_includes_default | |
14241 | int | |
14242 | main () | |
14243 | { | |
14244 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14245 | test_array [0] = 0 | |
14246 | ||
14247 | ; | |
14248 | return 0; | |
14249 | } | |
14250 | _ACEOF | |
14251 | rm -f conftest.$ac_objext | |
14252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14253 | (eval $ac_compile) 2>&5 | |
14254 | ac_status=$? | |
14255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14256 | (exit $ac_status); } && | |
14257 | { ac_try='test -s conftest.$ac_objext' | |
14258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14259 | (eval $ac_try) 2>&5 | |
14260 | ac_status=$? | |
14261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14262 | (exit $ac_status); }; }; then | |
14263 | ac_hi=$ac_mid | |
14264 | else | |
14265 | echo "$as_me: failed program was:" >&5 | |
14266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14267 | ||
14268 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14269 | fi | |
14270 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14271 | done | |
14272 | case $ac_lo in | |
14273 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14274 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14275 | See \`config.log' for more details." >&5 | |
14276 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14277 | See \`config.log' for more details." >&2;} | |
14278 | { (exit 1); exit 1; }; } ;; | |
14279 | esac | |
247f5006 | 14280 | else |
e6cc62c6 VS |
14281 | if test "$cross_compiling" = yes; then |
14282 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14283 | See \`config.log' for more details." >&5 | |
14284 | echo "$as_me: error: cannot run test program while cross compiling | |
14285 | See \`config.log' for more details." >&2;} | |
14286 | { (exit 1); exit 1; }; } | |
14287 | else | |
14288 | cat >conftest.$ac_ext <<_ACEOF | |
14289 | #line $LINENO "configure" | |
14290 | /* confdefs.h. */ | |
14291 | _ACEOF | |
14292 | cat confdefs.h >>conftest.$ac_ext | |
14293 | cat >>conftest.$ac_ext <<_ACEOF | |
14294 | /* end confdefs.h. */ | |
14295 | $ac_includes_default | |
14296 | long longval () { return (long) (sizeof (short)); } | |
14297 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14298 | #include <stdio.h> |
e6cc62c6 VS |
14299 | #include <stdlib.h> |
14300 | int | |
14301 | main () | |
a0b9e27f | 14302 | { |
e6cc62c6 VS |
14303 | |
14304 | FILE *f = fopen ("conftest.val", "w"); | |
14305 | if (! f) | |
14306 | exit (1); | |
14307 | if (((long) (sizeof (short))) < 0) | |
14308 | { | |
14309 | long i = longval (); | |
14310 | if (i != ((long) (sizeof (short)))) | |
14311 | exit (1); | |
14312 | fprintf (f, "%ld\n", i); | |
14313 | } | |
14314 | else | |
14315 | { | |
14316 | unsigned long i = ulongval (); | |
14317 | if (i != ((long) (sizeof (short)))) | |
14318 | exit (1); | |
14319 | fprintf (f, "%lu\n", i); | |
14320 | } | |
14321 | exit (ferror (f) || fclose (f) != 0); | |
14322 | ||
14323 | ; | |
14324 | return 0; | |
a0b9e27f | 14325 | } |
e6cc62c6 VS |
14326 | _ACEOF |
14327 | rm -f conftest$ac_exeext | |
14328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14329 | (eval $ac_link) 2>&5 | |
14330 | ac_status=$? | |
14331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14332 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14334 | (eval $ac_try) 2>&5 | |
14335 | ac_status=$? | |
14336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14337 | (exit $ac_status); }; }; then | |
14338 | ac_cv_sizeof_short=`cat conftest.val` | |
14339 | else | |
14340 | echo "$as_me: program exited with status $ac_status" >&5 | |
14341 | echo "$as_me: failed program was:" >&5 | |
14342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14343 | ||
14344 | ( exit $ac_status ) | |
14345 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14346 | See \`config.log' for more details." >&5 | |
14347 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14348 | See \`config.log' for more details." >&2;} | |
14349 | { (exit 1); exit 1; }; } | |
14350 | fi | |
14351 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14352 | fi | |
14353 | fi | |
14354 | rm -f conftest.val | |
247f5006 | 14355 | else |
a0b9e27f | 14356 | ac_cv_sizeof_short=0 |
247f5006 | 14357 | fi |
247f5006 | 14358 | fi |
e6cc62c6 VS |
14359 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14360 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14361 | cat >>confdefs.h <<_ACEOF | |
14362 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14363 | _ACEOF | |
14364 | ||
14365 | ||
14366 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14367 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14368 | if test "${ac_cv_type_void_p+set}" = set; then | |
14369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14370 | else | |
14371 | cat >conftest.$ac_ext <<_ACEOF | |
14372 | #line $LINENO "configure" | |
14373 | /* confdefs.h. */ | |
14374 | _ACEOF | |
14375 | cat confdefs.h >>conftest.$ac_ext | |
14376 | cat >>conftest.$ac_ext <<_ACEOF | |
14377 | /* end confdefs.h. */ | |
14378 | $ac_includes_default | |
14379 | int | |
14380 | main () | |
14381 | { | |
14382 | if ((void * *) 0) | |
14383 | return 0; | |
14384 | if (sizeof (void *)) | |
14385 | return 0; | |
14386 | ; | |
14387 | return 0; | |
14388 | } | |
14389 | _ACEOF | |
14390 | rm -f conftest.$ac_objext | |
14391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14392 | (eval $ac_compile) 2>&5 | |
14393 | ac_status=$? | |
14394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14395 | (exit $ac_status); } && | |
14396 | { ac_try='test -s conftest.$ac_objext' | |
14397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14398 | (eval $ac_try) 2>&5 | |
14399 | ac_status=$? | |
14400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14401 | (exit $ac_status); }; }; then | |
14402 | ac_cv_type_void_p=yes | |
14403 | else | |
14404 | echo "$as_me: failed program was:" >&5 | |
14405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14406 | ||
14407 | ac_cv_type_void_p=no | |
14408 | fi | |
14409 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14410 | fi | |
14411 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14412 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14413 | ||
14414 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14415 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14416 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14418 | else | |
14419 | if test "$ac_cv_type_void_p" = yes; then | |
14420 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14421 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14422 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14423 | # This bug is HP SR number 8606223364. | |
14424 | if test "$cross_compiling" = yes; then | |
14425 | # Depending upon the size, compute the lo and hi bounds. | |
14426 | cat >conftest.$ac_ext <<_ACEOF | |
14427 | #line $LINENO "configure" | |
14428 | /* confdefs.h. */ | |
14429 | _ACEOF | |
14430 | cat confdefs.h >>conftest.$ac_ext | |
14431 | cat >>conftest.$ac_ext <<_ACEOF | |
14432 | /* end confdefs.h. */ | |
14433 | $ac_includes_default | |
14434 | int | |
14435 | main () | |
14436 | { | |
14437 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14438 | test_array [0] = 0 | |
14439 | ||
14440 | ; | |
14441 | return 0; | |
14442 | } | |
14443 | _ACEOF | |
14444 | rm -f conftest.$ac_objext | |
14445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14446 | (eval $ac_compile) 2>&5 | |
14447 | ac_status=$? | |
14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14449 | (exit $ac_status); } && | |
14450 | { ac_try='test -s conftest.$ac_objext' | |
14451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14452 | (eval $ac_try) 2>&5 | |
14453 | ac_status=$? | |
14454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14455 | (exit $ac_status); }; }; then | |
14456 | ac_lo=0 ac_mid=0 | |
14457 | while :; do | |
14458 | cat >conftest.$ac_ext <<_ACEOF | |
14459 | #line $LINENO "configure" | |
14460 | /* confdefs.h. */ | |
14461 | _ACEOF | |
14462 | cat confdefs.h >>conftest.$ac_ext | |
14463 | cat >>conftest.$ac_ext <<_ACEOF | |
14464 | /* end confdefs.h. */ | |
14465 | $ac_includes_default | |
14466 | int | |
14467 | main () | |
14468 | { | |
14469 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14470 | test_array [0] = 0 | |
247f5006 | 14471 | |
e6cc62c6 VS |
14472 | ; |
14473 | return 0; | |
14474 | } | |
14475 | _ACEOF | |
14476 | rm -f conftest.$ac_objext | |
14477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14478 | (eval $ac_compile) 2>&5 | |
14479 | ac_status=$? | |
14480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14481 | (exit $ac_status); } && | |
14482 | { ac_try='test -s conftest.$ac_objext' | |
14483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14484 | (eval $ac_try) 2>&5 | |
14485 | ac_status=$? | |
14486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14487 | (exit $ac_status); }; }; then | |
14488 | ac_hi=$ac_mid; break | |
14489 | else | |
14490 | echo "$as_me: failed program was:" >&5 | |
14491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14492 | ||
14493 | ac_lo=`expr $ac_mid + 1` | |
14494 | if test $ac_lo -le $ac_mid; then | |
14495 | ac_lo= ac_hi= | |
14496 | break | |
14497 | fi | |
14498 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14499 | fi |
e6cc62c6 VS |
14500 | rm -f conftest.$ac_objext conftest.$ac_ext |
14501 | done | |
14502 | else | |
14503 | echo "$as_me: failed program was:" >&5 | |
14504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14505 | ||
14506 | cat >conftest.$ac_ext <<_ACEOF | |
14507 | #line $LINENO "configure" | |
14508 | /* confdefs.h. */ | |
14509 | _ACEOF | |
14510 | cat confdefs.h >>conftest.$ac_ext | |
14511 | cat >>conftest.$ac_ext <<_ACEOF | |
14512 | /* end confdefs.h. */ | |
14513 | $ac_includes_default | |
14514 | int | |
14515 | main () | |
14516 | { | |
14517 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14518 | test_array [0] = 0 | |
247f5006 | 14519 | |
e6cc62c6 VS |
14520 | ; |
14521 | return 0; | |
14522 | } | |
14523 | _ACEOF | |
14524 | rm -f conftest.$ac_objext | |
14525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14526 | (eval $ac_compile) 2>&5 | |
14527 | ac_status=$? | |
14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14529 | (exit $ac_status); } && | |
14530 | { ac_try='test -s conftest.$ac_objext' | |
14531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14532 | (eval $ac_try) 2>&5 | |
14533 | ac_status=$? | |
14534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14535 | (exit $ac_status); }; }; then | |
14536 | ac_hi=-1 ac_mid=-1 | |
14537 | while :; do | |
14538 | cat >conftest.$ac_ext <<_ACEOF | |
14539 | #line $LINENO "configure" | |
14540 | /* confdefs.h. */ | |
14541 | _ACEOF | |
14542 | cat confdefs.h >>conftest.$ac_ext | |
14543 | cat >>conftest.$ac_ext <<_ACEOF | |
14544 | /* end confdefs.h. */ | |
14545 | $ac_includes_default | |
14546 | int | |
14547 | main () | |
14548 | { | |
14549 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14550 | test_array [0] = 0 | |
247f5006 | 14551 | |
e6cc62c6 VS |
14552 | ; |
14553 | return 0; | |
14554 | } | |
14555 | _ACEOF | |
14556 | rm -f conftest.$ac_objext | |
14557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14558 | (eval $ac_compile) 2>&5 | |
14559 | ac_status=$? | |
14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14561 | (exit $ac_status); } && | |
14562 | { ac_try='test -s conftest.$ac_objext' | |
14563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14564 | (eval $ac_try) 2>&5 | |
14565 | ac_status=$? | |
14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14567 | (exit $ac_status); }; }; then | |
14568 | ac_lo=$ac_mid; break | |
14569 | else | |
14570 | echo "$as_me: failed program was:" >&5 | |
14571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14572 | ||
14573 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14574 | if test $ac_mid -le $ac_hi; then | |
14575 | ac_lo= ac_hi= | |
14576 | break | |
14577 | fi | |
14578 | ac_mid=`expr 2 '*' $ac_mid` | |
14579 | fi | |
14580 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14581 | done | |
a0b9e27f | 14582 | else |
e6cc62c6 VS |
14583 | echo "$as_me: failed program was:" >&5 |
14584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14585 | ||
14586 | ac_lo= ac_hi= | |
14587 | fi | |
14588 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14589 | fi | |
14590 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14591 | # Binary search between lo and hi bounds. | |
14592 | while test "x$ac_lo" != "x$ac_hi"; do | |
14593 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14594 | cat >conftest.$ac_ext <<_ACEOF | |
14595 | #line $LINENO "configure" | |
14596 | /* confdefs.h. */ | |
14597 | _ACEOF | |
14598 | cat confdefs.h >>conftest.$ac_ext | |
14599 | cat >>conftest.$ac_ext <<_ACEOF | |
14600 | /* end confdefs.h. */ | |
14601 | $ac_includes_default | |
14602 | int | |
14603 | main () | |
14604 | { | |
14605 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14606 | test_array [0] = 0 | |
14607 | ||
14608 | ; | |
14609 | return 0; | |
14610 | } | |
14611 | _ACEOF | |
14612 | rm -f conftest.$ac_objext | |
14613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14614 | (eval $ac_compile) 2>&5 | |
14615 | ac_status=$? | |
14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14617 | (exit $ac_status); } && | |
14618 | { ac_try='test -s conftest.$ac_objext' | |
14619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14620 | (eval $ac_try) 2>&5 | |
14621 | ac_status=$? | |
14622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14623 | (exit $ac_status); }; }; then | |
14624 | ac_hi=$ac_mid | |
14625 | else | |
14626 | echo "$as_me: failed program was:" >&5 | |
14627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14628 | ||
14629 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14630 | fi | |
14631 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14632 | done | |
14633 | case $ac_lo in | |
14634 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14635 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14636 | See \`config.log' for more details." >&5 | |
14637 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14638 | See \`config.log' for more details." >&2;} | |
14639 | { (exit 1); exit 1; }; } ;; | |
14640 | esac | |
247f5006 | 14641 | else |
e6cc62c6 VS |
14642 | if test "$cross_compiling" = yes; then |
14643 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14644 | See \`config.log' for more details." >&5 | |
14645 | echo "$as_me: error: cannot run test program while cross compiling | |
14646 | See \`config.log' for more details." >&2;} | |
14647 | { (exit 1); exit 1; }; } | |
14648 | else | |
14649 | cat >conftest.$ac_ext <<_ACEOF | |
14650 | #line $LINENO "configure" | |
14651 | /* confdefs.h. */ | |
14652 | _ACEOF | |
14653 | cat confdefs.h >>conftest.$ac_ext | |
14654 | cat >>conftest.$ac_ext <<_ACEOF | |
14655 | /* end confdefs.h. */ | |
14656 | $ac_includes_default | |
14657 | long longval () { return (long) (sizeof (void *)); } | |
14658 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14659 | #include <stdio.h> |
e6cc62c6 VS |
14660 | #include <stdlib.h> |
14661 | int | |
14662 | main () | |
247f5006 | 14663 | { |
e6cc62c6 VS |
14664 | |
14665 | FILE *f = fopen ("conftest.val", "w"); | |
14666 | if (! f) | |
14667 | exit (1); | |
14668 | if (((long) (sizeof (void *))) < 0) | |
14669 | { | |
14670 | long i = longval (); | |
14671 | if (i != ((long) (sizeof (void *)))) | |
14672 | exit (1); | |
14673 | fprintf (f, "%ld\n", i); | |
14674 | } | |
14675 | else | |
14676 | { | |
14677 | unsigned long i = ulongval (); | |
14678 | if (i != ((long) (sizeof (void *)))) | |
14679 | exit (1); | |
14680 | fprintf (f, "%lu\n", i); | |
14681 | } | |
14682 | exit (ferror (f) || fclose (f) != 0); | |
14683 | ||
14684 | ; | |
14685 | return 0; | |
5c6fa7d2 | 14686 | } |
e6cc62c6 VS |
14687 | _ACEOF |
14688 | rm -f conftest$ac_exeext | |
14689 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14690 | (eval $ac_link) 2>&5 | |
14691 | ac_status=$? | |
14692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14693 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14695 | (eval $ac_try) 2>&5 | |
14696 | ac_status=$? | |
14697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14698 | (exit $ac_status); }; }; then | |
14699 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14700 | else | |
14701 | echo "$as_me: program exited with status $ac_status" >&5 | |
14702 | echo "$as_me: failed program was:" >&5 | |
14703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14704 | ||
14705 | ( exit $ac_status ) | |
14706 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14707 | See \`config.log' for more details." >&5 | |
14708 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14709 | See \`config.log' for more details." >&2;} | |
14710 | { (exit 1); exit 1; }; } | |
14711 | fi | |
14712 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14713 | fi | |
14714 | fi | |
14715 | rm -f conftest.val | |
a0b9e27f | 14716 | else |
a0b9e27f MB |
14717 | ac_cv_sizeof_void_p=0 |
14718 | fi | |
a0b9e27f | 14719 | fi |
e6cc62c6 VS |
14720 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14721 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14722 | cat >>confdefs.h <<_ACEOF | |
14723 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14724 | _ACEOF | |
14725 | ||
14726 | ||
14727 | echo "$as_me:$LINENO: checking for int" >&5 | |
14728 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14729 | if test "${ac_cv_type_int+set}" = set; then | |
14730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14731 | else | |
14732 | cat >conftest.$ac_ext <<_ACEOF | |
14733 | #line $LINENO "configure" | |
14734 | /* confdefs.h. */ | |
14735 | _ACEOF | |
14736 | cat confdefs.h >>conftest.$ac_ext | |
14737 | cat >>conftest.$ac_ext <<_ACEOF | |
14738 | /* end confdefs.h. */ | |
14739 | $ac_includes_default | |
14740 | int | |
14741 | main () | |
14742 | { | |
14743 | if ((int *) 0) | |
14744 | return 0; | |
14745 | if (sizeof (int)) | |
14746 | return 0; | |
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>&5 | |
14754 | ac_status=$? | |
14755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14756 | (exit $ac_status); } && | |
14757 | { ac_try='test -s conftest.$ac_objext' | |
14758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14759 | (eval $ac_try) 2>&5 | |
14760 | ac_status=$? | |
14761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14762 | (exit $ac_status); }; }; then | |
14763 | ac_cv_type_int=yes | |
14764 | else | |
14765 | echo "$as_me: failed program was:" >&5 | |
14766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14767 | ||
14768 | ac_cv_type_int=no | |
14769 | fi | |
14770 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14771 | fi | |
14772 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14773 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14774 | ||
14775 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14776 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14777 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14779 | else | |
14780 | if test "$ac_cv_type_int" = yes; then | |
14781 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14782 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14783 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14784 | # This bug is HP SR number 8606223364. | |
14785 | if test "$cross_compiling" = yes; then | |
14786 | # Depending upon the size, compute the lo and hi bounds. | |
14787 | cat >conftest.$ac_ext <<_ACEOF | |
14788 | #line $LINENO "configure" | |
14789 | /* confdefs.h. */ | |
14790 | _ACEOF | |
14791 | cat confdefs.h >>conftest.$ac_ext | |
14792 | cat >>conftest.$ac_ext <<_ACEOF | |
14793 | /* end confdefs.h. */ | |
14794 | $ac_includes_default | |
14795 | int | |
14796 | main () | |
14797 | { | |
14798 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14799 | test_array [0] = 0 | |
8284b0c5 | 14800 | |
e6cc62c6 VS |
14801 | ; |
14802 | return 0; | |
14803 | } | |
14804 | _ACEOF | |
14805 | rm -f conftest.$ac_objext | |
14806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14807 | (eval $ac_compile) 2>&5 | |
14808 | ac_status=$? | |
14809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14810 | (exit $ac_status); } && | |
14811 | { ac_try='test -s conftest.$ac_objext' | |
14812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14813 | (eval $ac_try) 2>&5 | |
14814 | ac_status=$? | |
14815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14816 | (exit $ac_status); }; }; then | |
14817 | ac_lo=0 ac_mid=0 | |
14818 | while :; do | |
14819 | cat >conftest.$ac_ext <<_ACEOF | |
14820 | #line $LINENO "configure" | |
14821 | /* confdefs.h. */ | |
14822 | _ACEOF | |
14823 | cat confdefs.h >>conftest.$ac_ext | |
14824 | cat >>conftest.$ac_ext <<_ACEOF | |
14825 | /* end confdefs.h. */ | |
14826 | $ac_includes_default | |
14827 | int | |
14828 | main () | |
14829 | { | |
14830 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14831 | test_array [0] = 0 | |
14832 | ||
14833 | ; | |
14834 | return 0; | |
14835 | } | |
14836 | _ACEOF | |
14837 | rm -f conftest.$ac_objext | |
14838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14839 | (eval $ac_compile) 2>&5 | |
14840 | ac_status=$? | |
14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14842 | (exit $ac_status); } && | |
14843 | { ac_try='test -s conftest.$ac_objext' | |
14844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14845 | (eval $ac_try) 2>&5 | |
14846 | ac_status=$? | |
14847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14848 | (exit $ac_status); }; }; then | |
14849 | ac_hi=$ac_mid; break | |
14850 | else | |
14851 | echo "$as_me: failed program was:" >&5 | |
14852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14853 | ||
14854 | ac_lo=`expr $ac_mid + 1` | |
14855 | if test $ac_lo -le $ac_mid; then | |
14856 | ac_lo= ac_hi= | |
14857 | break | |
14858 | fi | |
14859 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14860 | fi |
e6cc62c6 VS |
14861 | rm -f conftest.$ac_objext conftest.$ac_ext |
14862 | done | |
14863 | else | |
14864 | echo "$as_me: failed program was:" >&5 | |
14865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14866 | ||
14867 | cat >conftest.$ac_ext <<_ACEOF | |
14868 | #line $LINENO "configure" | |
14869 | /* confdefs.h. */ | |
14870 | _ACEOF | |
14871 | cat confdefs.h >>conftest.$ac_ext | |
14872 | cat >>conftest.$ac_ext <<_ACEOF | |
14873 | /* end confdefs.h. */ | |
14874 | $ac_includes_default | |
14875 | int | |
14876 | main () | |
14877 | { | |
14878 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14879 | test_array [0] = 0 | |
247f5006 | 14880 | |
e6cc62c6 VS |
14881 | ; |
14882 | return 0; | |
14883 | } | |
14884 | _ACEOF | |
14885 | rm -f conftest.$ac_objext | |
14886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14887 | (eval $ac_compile) 2>&5 | |
14888 | ac_status=$? | |
14889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14890 | (exit $ac_status); } && | |
14891 | { ac_try='test -s conftest.$ac_objext' | |
14892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14893 | (eval $ac_try) 2>&5 | |
14894 | ac_status=$? | |
14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14896 | (exit $ac_status); }; }; then | |
14897 | ac_hi=-1 ac_mid=-1 | |
14898 | while :; do | |
14899 | cat >conftest.$ac_ext <<_ACEOF | |
14900 | #line $LINENO "configure" | |
14901 | /* confdefs.h. */ | |
14902 | _ACEOF | |
14903 | cat confdefs.h >>conftest.$ac_ext | |
14904 | cat >>conftest.$ac_ext <<_ACEOF | |
14905 | /* end confdefs.h. */ | |
14906 | $ac_includes_default | |
14907 | int | |
14908 | main () | |
14909 | { | |
14910 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14911 | test_array [0] = 0 | |
247f5006 | 14912 | |
e6cc62c6 VS |
14913 | ; |
14914 | return 0; | |
14915 | } | |
14916 | _ACEOF | |
14917 | rm -f conftest.$ac_objext | |
14918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14919 | (eval $ac_compile) 2>&5 | |
14920 | ac_status=$? | |
14921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14922 | (exit $ac_status); } && | |
14923 | { ac_try='test -s conftest.$ac_objext' | |
14924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14925 | (eval $ac_try) 2>&5 | |
14926 | ac_status=$? | |
14927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14928 | (exit $ac_status); }; }; then | |
14929 | ac_lo=$ac_mid; break | |
14930 | else | |
14931 | echo "$as_me: failed program was:" >&5 | |
14932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14933 | ||
14934 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14935 | if test $ac_mid -le $ac_hi; then | |
14936 | ac_lo= ac_hi= | |
14937 | break | |
14938 | fi | |
14939 | ac_mid=`expr 2 '*' $ac_mid` | |
14940 | fi | |
14941 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14942 | done | |
247f5006 | 14943 | else |
e6cc62c6 VS |
14944 | echo "$as_me: failed program was:" >&5 |
14945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14946 | ||
14947 | ac_lo= ac_hi= | |
14948 | fi | |
14949 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14950 | fi | |
14951 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14952 | # Binary search between lo and hi bounds. | |
14953 | while test "x$ac_lo" != "x$ac_hi"; do | |
14954 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14955 | cat >conftest.$ac_ext <<_ACEOF | |
14956 | #line $LINENO "configure" | |
14957 | /* confdefs.h. */ | |
14958 | _ACEOF | |
14959 | cat confdefs.h >>conftest.$ac_ext | |
14960 | cat >>conftest.$ac_ext <<_ACEOF | |
14961 | /* end confdefs.h. */ | |
14962 | $ac_includes_default | |
14963 | int | |
14964 | main () | |
14965 | { | |
14966 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14967 | test_array [0] = 0 | |
14968 | ||
14969 | ; | |
14970 | return 0; | |
14971 | } | |
14972 | _ACEOF | |
14973 | rm -f conftest.$ac_objext | |
14974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14975 | (eval $ac_compile) 2>&5 | |
14976 | ac_status=$? | |
14977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14978 | (exit $ac_status); } && | |
14979 | { ac_try='test -s conftest.$ac_objext' | |
14980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14981 | (eval $ac_try) 2>&5 | |
14982 | ac_status=$? | |
14983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14984 | (exit $ac_status); }; }; then | |
14985 | ac_hi=$ac_mid | |
14986 | else | |
14987 | echo "$as_me: failed program was:" >&5 | |
14988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14989 | ||
14990 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14991 | fi | |
14992 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14993 | done | |
14994 | case $ac_lo in | |
14995 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
14996 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14997 | See \`config.log' for more details." >&5 | |
14998 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14999 | See \`config.log' for more details." >&2;} | |
15000 | { (exit 1); exit 1; }; } ;; | |
15001 | esac | |
a0b9e27f | 15002 | else |
e6cc62c6 VS |
15003 | if test "$cross_compiling" = yes; then |
15004 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15005 | See \`config.log' for more details." >&5 | |
15006 | echo "$as_me: error: cannot run test program while cross compiling | |
15007 | See \`config.log' for more details." >&2;} | |
15008 | { (exit 1); exit 1; }; } | |
15009 | else | |
15010 | cat >conftest.$ac_ext <<_ACEOF | |
15011 | #line $LINENO "configure" | |
15012 | /* confdefs.h. */ | |
15013 | _ACEOF | |
15014 | cat confdefs.h >>conftest.$ac_ext | |
15015 | cat >>conftest.$ac_ext <<_ACEOF | |
15016 | /* end confdefs.h. */ | |
15017 | $ac_includes_default | |
15018 | long longval () { return (long) (sizeof (int)); } | |
15019 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15020 | #include <stdio.h> |
e6cc62c6 VS |
15021 | #include <stdlib.h> |
15022 | int | |
15023 | main () | |
247f5006 | 15024 | { |
e6cc62c6 VS |
15025 | |
15026 | FILE *f = fopen ("conftest.val", "w"); | |
15027 | if (! f) | |
15028 | exit (1); | |
15029 | if (((long) (sizeof (int))) < 0) | |
15030 | { | |
15031 | long i = longval (); | |
15032 | if (i != ((long) (sizeof (int)))) | |
15033 | exit (1); | |
15034 | fprintf (f, "%ld\n", i); | |
15035 | } | |
15036 | else | |
15037 | { | |
15038 | unsigned long i = ulongval (); | |
15039 | if (i != ((long) (sizeof (int)))) | |
15040 | exit (1); | |
15041 | fprintf (f, "%lu\n", i); | |
15042 | } | |
15043 | exit (ferror (f) || fclose (f) != 0); | |
15044 | ||
15045 | ; | |
15046 | return 0; | |
247f5006 | 15047 | } |
e6cc62c6 VS |
15048 | _ACEOF |
15049 | rm -f conftest$ac_exeext | |
15050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15051 | (eval $ac_link) 2>&5 | |
15052 | ac_status=$? | |
15053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15054 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15056 | (eval $ac_try) 2>&5 | |
15057 | ac_status=$? | |
15058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15059 | (exit $ac_status); }; }; then | |
15060 | ac_cv_sizeof_int=`cat conftest.val` | |
15061 | else | |
15062 | echo "$as_me: program exited with status $ac_status" >&5 | |
15063 | echo "$as_me: failed program was:" >&5 | |
15064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15065 | ||
15066 | ( exit $ac_status ) | |
15067 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15068 | See \`config.log' for more details." >&5 | |
15069 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15070 | See \`config.log' for more details." >&2;} | |
15071 | { (exit 1); exit 1; }; } | |
15072 | fi | |
15073 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15074 | fi | |
15075 | fi | |
15076 | rm -f conftest.val | |
6f72b082 | 15077 | else |
a0b9e27f | 15078 | ac_cv_sizeof_int=0 |
21d1c967 | 15079 | fi |
698dcdb6 | 15080 | fi |
e6cc62c6 VS |
15081 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15082 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15083 | cat >>confdefs.h <<_ACEOF | |
15084 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15085 | _ACEOF | |
15086 | ||
15087 | ||
15088 | echo "$as_me:$LINENO: checking for long" >&5 | |
15089 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15090 | if test "${ac_cv_type_long+set}" = set; then | |
15091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15092 | else | |
15093 | cat >conftest.$ac_ext <<_ACEOF | |
15094 | #line $LINENO "configure" | |
15095 | /* confdefs.h. */ | |
15096 | _ACEOF | |
15097 | cat confdefs.h >>conftest.$ac_ext | |
15098 | cat >>conftest.$ac_ext <<_ACEOF | |
15099 | /* end confdefs.h. */ | |
15100 | $ac_includes_default | |
15101 | int | |
15102 | main () | |
15103 | { | |
15104 | if ((long *) 0) | |
15105 | return 0; | |
15106 | if (sizeof (long)) | |
15107 | return 0; | |
15108 | ; | |
15109 | return 0; | |
15110 | } | |
15111 | _ACEOF | |
15112 | rm -f conftest.$ac_objext | |
15113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15114 | (eval $ac_compile) 2>&5 | |
15115 | ac_status=$? | |
15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15117 | (exit $ac_status); } && | |
15118 | { ac_try='test -s conftest.$ac_objext' | |
15119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15120 | (eval $ac_try) 2>&5 | |
15121 | ac_status=$? | |
15122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15123 | (exit $ac_status); }; }; then | |
15124 | ac_cv_type_long=yes | |
15125 | else | |
15126 | echo "$as_me: failed program was:" >&5 | |
15127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15128 | ||
15129 | ac_cv_type_long=no | |
15130 | fi | |
15131 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15132 | fi | |
15133 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15134 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15135 | ||
15136 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15137 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15138 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15140 | else | |
15141 | if test "$ac_cv_type_long" = yes; then | |
15142 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15143 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15144 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15145 | # This bug is HP SR number 8606223364. | |
15146 | if test "$cross_compiling" = yes; then | |
15147 | # Depending upon the size, compute the lo and hi bounds. | |
15148 | cat >conftest.$ac_ext <<_ACEOF | |
15149 | #line $LINENO "configure" | |
15150 | /* confdefs.h. */ | |
15151 | _ACEOF | |
15152 | cat confdefs.h >>conftest.$ac_ext | |
15153 | cat >>conftest.$ac_ext <<_ACEOF | |
15154 | /* end confdefs.h. */ | |
15155 | $ac_includes_default | |
15156 | int | |
15157 | main () | |
15158 | { | |
15159 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15160 | test_array [0] = 0 | |
15161 | ||
15162 | ; | |
15163 | return 0; | |
15164 | } | |
15165 | _ACEOF | |
15166 | rm -f conftest.$ac_objext | |
15167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15168 | (eval $ac_compile) 2>&5 | |
15169 | ac_status=$? | |
15170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15171 | (exit $ac_status); } && | |
15172 | { ac_try='test -s conftest.$ac_objext' | |
15173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15174 | (eval $ac_try) 2>&5 | |
15175 | ac_status=$? | |
15176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15177 | (exit $ac_status); }; }; then | |
15178 | ac_lo=0 ac_mid=0 | |
15179 | while :; do | |
15180 | cat >conftest.$ac_ext <<_ACEOF | |
15181 | #line $LINENO "configure" | |
15182 | /* confdefs.h. */ | |
15183 | _ACEOF | |
15184 | cat confdefs.h >>conftest.$ac_ext | |
15185 | cat >>conftest.$ac_ext <<_ACEOF | |
15186 | /* end confdefs.h. */ | |
15187 | $ac_includes_default | |
15188 | int | |
15189 | main () | |
15190 | { | |
15191 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15192 | test_array [0] = 0 | |
4f14bcd8 | 15193 | |
e6cc62c6 VS |
15194 | ; |
15195 | return 0; | |
15196 | } | |
15197 | _ACEOF | |
15198 | rm -f conftest.$ac_objext | |
15199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15200 | (eval $ac_compile) 2>&5 | |
15201 | ac_status=$? | |
15202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15203 | (exit $ac_status); } && | |
15204 | { ac_try='test -s conftest.$ac_objext' | |
15205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15206 | (eval $ac_try) 2>&5 | |
15207 | ac_status=$? | |
15208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15209 | (exit $ac_status); }; }; then | |
15210 | ac_hi=$ac_mid; break | |
15211 | else | |
15212 | echo "$as_me: failed program was:" >&5 | |
15213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15214 | ||
15215 | ac_lo=`expr $ac_mid + 1` | |
15216 | if test $ac_lo -le $ac_mid; then | |
15217 | ac_lo= ac_hi= | |
15218 | break | |
15219 | fi | |
15220 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15221 | fi |
e6cc62c6 VS |
15222 | rm -f conftest.$ac_objext conftest.$ac_ext |
15223 | done | |
15224 | else | |
15225 | echo "$as_me: failed program was:" >&5 | |
15226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15227 | ||
15228 | cat >conftest.$ac_ext <<_ACEOF | |
15229 | #line $LINENO "configure" | |
15230 | /* confdefs.h. */ | |
15231 | _ACEOF | |
15232 | cat confdefs.h >>conftest.$ac_ext | |
15233 | cat >>conftest.$ac_ext <<_ACEOF | |
15234 | /* end confdefs.h. */ | |
15235 | $ac_includes_default | |
15236 | int | |
15237 | main () | |
15238 | { | |
15239 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15240 | test_array [0] = 0 | |
4f14bcd8 | 15241 | |
e6cc62c6 VS |
15242 | ; |
15243 | return 0; | |
15244 | } | |
15245 | _ACEOF | |
15246 | rm -f conftest.$ac_objext | |
15247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15248 | (eval $ac_compile) 2>&5 | |
15249 | ac_status=$? | |
15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15251 | (exit $ac_status); } && | |
15252 | { ac_try='test -s conftest.$ac_objext' | |
15253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15254 | (eval $ac_try) 2>&5 | |
15255 | ac_status=$? | |
15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15257 | (exit $ac_status); }; }; then | |
15258 | ac_hi=-1 ac_mid=-1 | |
15259 | while :; do | |
15260 | cat >conftest.$ac_ext <<_ACEOF | |
15261 | #line $LINENO "configure" | |
15262 | /* confdefs.h. */ | |
15263 | _ACEOF | |
15264 | cat confdefs.h >>conftest.$ac_ext | |
15265 | cat >>conftest.$ac_ext <<_ACEOF | |
15266 | /* end confdefs.h. */ | |
15267 | $ac_includes_default | |
15268 | int | |
15269 | main () | |
15270 | { | |
15271 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15272 | test_array [0] = 0 | |
5c6fa7d2 | 15273 | |
e6cc62c6 VS |
15274 | ; |
15275 | return 0; | |
15276 | } | |
15277 | _ACEOF | |
15278 | rm -f conftest.$ac_objext | |
15279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15280 | (eval $ac_compile) 2>&5 | |
15281 | ac_status=$? | |
15282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15283 | (exit $ac_status); } && | |
15284 | { ac_try='test -s conftest.$ac_objext' | |
15285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15286 | (eval $ac_try) 2>&5 | |
15287 | ac_status=$? | |
15288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15289 | (exit $ac_status); }; }; then | |
15290 | ac_lo=$ac_mid; break | |
15291 | else | |
15292 | echo "$as_me: failed program was:" >&5 | |
15293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15294 | ||
15295 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15296 | if test $ac_mid -le $ac_hi; then | |
15297 | ac_lo= ac_hi= | |
15298 | break | |
15299 | fi | |
15300 | ac_mid=`expr 2 '*' $ac_mid` | |
15301 | fi | |
15302 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15303 | done | |
247f5006 | 15304 | else |
e6cc62c6 VS |
15305 | echo "$as_me: failed program was:" >&5 |
15306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15307 | ||
15308 | ac_lo= ac_hi= | |
15309 | fi | |
15310 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15311 | fi | |
15312 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15313 | # Binary search between lo and hi bounds. | |
15314 | while test "x$ac_lo" != "x$ac_hi"; do | |
15315 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15316 | cat >conftest.$ac_ext <<_ACEOF | |
15317 | #line $LINENO "configure" | |
15318 | /* confdefs.h. */ | |
15319 | _ACEOF | |
15320 | cat confdefs.h >>conftest.$ac_ext | |
15321 | cat >>conftest.$ac_ext <<_ACEOF | |
15322 | /* end confdefs.h. */ | |
15323 | $ac_includes_default | |
15324 | int | |
15325 | main () | |
15326 | { | |
15327 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15328 | test_array [0] = 0 | |
15329 | ||
15330 | ; | |
15331 | return 0; | |
15332 | } | |
15333 | _ACEOF | |
15334 | rm -f conftest.$ac_objext | |
15335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15336 | (eval $ac_compile) 2>&5 | |
15337 | ac_status=$? | |
15338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15339 | (exit $ac_status); } && | |
15340 | { ac_try='test -s conftest.$ac_objext' | |
15341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15342 | (eval $ac_try) 2>&5 | |
15343 | ac_status=$? | |
15344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15345 | (exit $ac_status); }; }; then | |
15346 | ac_hi=$ac_mid | |
15347 | else | |
15348 | echo "$as_me: failed program was:" >&5 | |
15349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15350 | ||
15351 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15352 | fi | |
15353 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15354 | done | |
15355 | case $ac_lo in | |
15356 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15357 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15358 | See \`config.log' for more details." >&5 | |
15359 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15360 | See \`config.log' for more details." >&2;} | |
15361 | { (exit 1); exit 1; }; } ;; | |
15362 | esac | |
247f5006 | 15363 | else |
e6cc62c6 VS |
15364 | if test "$cross_compiling" = yes; then |
15365 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15366 | See \`config.log' for more details." >&5 | |
15367 | echo "$as_me: error: cannot run test program while cross compiling | |
15368 | See \`config.log' for more details." >&2;} | |
15369 | { (exit 1); exit 1; }; } | |
15370 | else | |
15371 | cat >conftest.$ac_ext <<_ACEOF | |
15372 | #line $LINENO "configure" | |
15373 | /* confdefs.h. */ | |
15374 | _ACEOF | |
15375 | cat confdefs.h >>conftest.$ac_ext | |
15376 | cat >>conftest.$ac_ext <<_ACEOF | |
15377 | /* end confdefs.h. */ | |
15378 | $ac_includes_default | |
15379 | long longval () { return (long) (sizeof (long)); } | |
15380 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15381 | #include <stdio.h> |
e6cc62c6 VS |
15382 | #include <stdlib.h> |
15383 | int | |
15384 | main () | |
247f5006 | 15385 | { |
e6cc62c6 VS |
15386 | |
15387 | FILE *f = fopen ("conftest.val", "w"); | |
15388 | if (! f) | |
15389 | exit (1); | |
15390 | if (((long) (sizeof (long))) < 0) | |
15391 | { | |
15392 | long i = longval (); | |
15393 | if (i != ((long) (sizeof (long)))) | |
15394 | exit (1); | |
15395 | fprintf (f, "%ld\n", i); | |
15396 | } | |
15397 | else | |
15398 | { | |
15399 | unsigned long i = ulongval (); | |
15400 | if (i != ((long) (sizeof (long)))) | |
15401 | exit (1); | |
15402 | fprintf (f, "%lu\n", i); | |
15403 | } | |
15404 | exit (ferror (f) || fclose (f) != 0); | |
15405 | ||
15406 | ; | |
15407 | return 0; | |
247f5006 | 15408 | } |
e6cc62c6 VS |
15409 | _ACEOF |
15410 | rm -f conftest$ac_exeext | |
15411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15412 | (eval $ac_link) 2>&5 | |
15413 | ac_status=$? | |
15414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15417 | (eval $ac_try) 2>&5 | |
15418 | ac_status=$? | |
15419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15420 | (exit $ac_status); }; }; then | |
15421 | ac_cv_sizeof_long=`cat conftest.val` | |
15422 | else | |
15423 | echo "$as_me: program exited with status $ac_status" >&5 | |
15424 | echo "$as_me: failed program was:" >&5 | |
15425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15426 | ||
15427 | ( exit $ac_status ) | |
15428 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15429 | See \`config.log' for more details." >&5 | |
15430 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15431 | See \`config.log' for more details." >&2;} | |
15432 | { (exit 1); exit 1; }; } | |
15433 | fi | |
15434 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15435 | fi | |
15436 | fi | |
15437 | rm -f conftest.val | |
247f5006 | 15438 | else |
a0b9e27f | 15439 | ac_cv_sizeof_long=0 |
247f5006 | 15440 | fi |
247f5006 | 15441 | fi |
e6cc62c6 VS |
15442 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15443 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15444 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15445 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15446 | _ACEOF |
247f5006 | 15447 | |
a0b9e27f MB |
15448 | |
15449 | ||
15450 | case "${host}" in | |
15451 | arm-*-linux* ) | |
e6cc62c6 VS |
15452 | echo "$as_me:$LINENO: checking for long long" >&5 |
15453 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15454 | if test "${ac_cv_type_long_long+set}" = set; then | |
15455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15456 | else | |
15457 | cat >conftest.$ac_ext <<_ACEOF | |
15458 | #line $LINENO "configure" | |
15459 | /* confdefs.h. */ | |
15460 | _ACEOF | |
15461 | cat confdefs.h >>conftest.$ac_ext | |
15462 | cat >>conftest.$ac_ext <<_ACEOF | |
15463 | /* end confdefs.h. */ | |
15464 | $ac_includes_default | |
15465 | int | |
15466 | main () | |
15467 | { | |
15468 | if ((long long *) 0) | |
15469 | return 0; | |
15470 | if (sizeof (long long)) | |
15471 | return 0; | |
15472 | ; | |
15473 | return 0; | |
15474 | } | |
15475 | _ACEOF | |
15476 | rm -f conftest.$ac_objext | |
15477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15478 | (eval $ac_compile) 2>&5 | |
15479 | ac_status=$? | |
15480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15481 | (exit $ac_status); } && | |
15482 | { ac_try='test -s conftest.$ac_objext' | |
15483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15484 | (eval $ac_try) 2>&5 | |
15485 | ac_status=$? | |
15486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15487 | (exit $ac_status); }; }; then | |
15488 | ac_cv_type_long_long=yes | |
15489 | else | |
15490 | echo "$as_me: failed program was:" >&5 | |
15491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15492 | ||
15493 | ac_cv_type_long_long=no | |
15494 | fi | |
15495 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15496 | fi | |
15497 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15498 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15499 | ||
15500 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15501 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15502 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15504 | else | |
15505 | if test "$ac_cv_type_long_long" = yes; then | |
15506 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15507 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15508 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15509 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15510 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15511 | # Depending upon the size, compute the lo and hi bounds. |
15512 | cat >conftest.$ac_ext <<_ACEOF | |
15513 | #line $LINENO "configure" | |
15514 | /* confdefs.h. */ | |
15515 | _ACEOF | |
15516 | cat confdefs.h >>conftest.$ac_ext | |
15517 | cat >>conftest.$ac_ext <<_ACEOF | |
15518 | /* end confdefs.h. */ | |
15519 | $ac_includes_default | |
15520 | int | |
15521 | main () | |
15522 | { | |
15523 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15524 | test_array [0] = 0 | |
15525 | ||
15526 | ; | |
15527 | return 0; | |
15528 | } | |
15529 | _ACEOF | |
15530 | rm -f conftest.$ac_objext | |
15531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15532 | (eval $ac_compile) 2>&5 | |
15533 | ac_status=$? | |
15534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15535 | (exit $ac_status); } && | |
15536 | { ac_try='test -s conftest.$ac_objext' | |
15537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15538 | (eval $ac_try) 2>&5 | |
15539 | ac_status=$? | |
15540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15541 | (exit $ac_status); }; }; then | |
15542 | ac_lo=0 ac_mid=0 | |
15543 | while :; do | |
15544 | cat >conftest.$ac_ext <<_ACEOF | |
15545 | #line $LINENO "configure" | |
15546 | /* confdefs.h. */ | |
15547 | _ACEOF | |
15548 | cat confdefs.h >>conftest.$ac_ext | |
15549 | cat >>conftest.$ac_ext <<_ACEOF | |
15550 | /* end confdefs.h. */ | |
15551 | $ac_includes_default | |
15552 | int | |
15553 | main () | |
15554 | { | |
15555 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15556 | test_array [0] = 0 | |
15557 | ||
15558 | ; | |
15559 | return 0; | |
15560 | } | |
15561 | _ACEOF | |
15562 | rm -f conftest.$ac_objext | |
15563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15564 | (eval $ac_compile) 2>&5 | |
15565 | ac_status=$? | |
15566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15567 | (exit $ac_status); } && | |
15568 | { ac_try='test -s conftest.$ac_objext' | |
15569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15570 | (eval $ac_try) 2>&5 | |
15571 | ac_status=$? | |
15572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15573 | (exit $ac_status); }; }; then | |
15574 | ac_hi=$ac_mid; break | |
15575 | else | |
15576 | echo "$as_me: failed program was:" >&5 | |
15577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15578 | ||
15579 | ac_lo=`expr $ac_mid + 1` | |
15580 | if test $ac_lo -le $ac_mid; then | |
15581 | ac_lo= ac_hi= | |
15582 | break | |
15583 | fi | |
15584 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15585 | fi | |
15586 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15587 | done | |
15588 | else | |
15589 | echo "$as_me: failed program was:" >&5 | |
15590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15591 | ||
15592 | cat >conftest.$ac_ext <<_ACEOF | |
15593 | #line $LINENO "configure" | |
15594 | /* confdefs.h. */ | |
15595 | _ACEOF | |
15596 | cat confdefs.h >>conftest.$ac_ext | |
15597 | cat >>conftest.$ac_ext <<_ACEOF | |
15598 | /* end confdefs.h. */ | |
15599 | $ac_includes_default | |
15600 | int | |
15601 | main () | |
15602 | { | |
15603 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15604 | test_array [0] = 0 | |
15605 | ||
15606 | ; | |
15607 | return 0; | |
15608 | } | |
15609 | _ACEOF | |
15610 | rm -f conftest.$ac_objext | |
15611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15612 | (eval $ac_compile) 2>&5 | |
15613 | ac_status=$? | |
15614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15615 | (exit $ac_status); } && | |
15616 | { ac_try='test -s conftest.$ac_objext' | |
15617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15618 | (eval $ac_try) 2>&5 | |
15619 | ac_status=$? | |
15620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15621 | (exit $ac_status); }; }; then | |
15622 | ac_hi=-1 ac_mid=-1 | |
15623 | while :; do | |
15624 | cat >conftest.$ac_ext <<_ACEOF | |
15625 | #line $LINENO "configure" | |
15626 | /* confdefs.h. */ | |
15627 | _ACEOF | |
15628 | cat confdefs.h >>conftest.$ac_ext | |
15629 | cat >>conftest.$ac_ext <<_ACEOF | |
15630 | /* end confdefs.h. */ | |
15631 | $ac_includes_default | |
15632 | int | |
15633 | main () | |
15634 | { | |
15635 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15636 | test_array [0] = 0 | |
15637 | ||
15638 | ; | |
15639 | return 0; | |
15640 | } | |
15641 | _ACEOF | |
15642 | rm -f conftest.$ac_objext | |
15643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15644 | (eval $ac_compile) 2>&5 | |
15645 | ac_status=$? | |
15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15647 | (exit $ac_status); } && | |
15648 | { ac_try='test -s conftest.$ac_objext' | |
15649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15650 | (eval $ac_try) 2>&5 | |
15651 | ac_status=$? | |
15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15653 | (exit $ac_status); }; }; then | |
15654 | ac_lo=$ac_mid; break | |
15655 | else | |
15656 | echo "$as_me: failed program was:" >&5 | |
15657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15658 | ||
15659 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15660 | if test $ac_mid -le $ac_hi; then | |
15661 | ac_lo= ac_hi= | |
15662 | break | |
15663 | fi | |
15664 | ac_mid=`expr 2 '*' $ac_mid` | |
15665 | fi | |
15666 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15667 | done | |
15668 | else | |
15669 | echo "$as_me: failed program was:" >&5 | |
15670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15671 | ||
15672 | ac_lo= ac_hi= | |
15673 | fi | |
15674 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15675 | fi | |
15676 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15677 | # Binary search between lo and hi bounds. | |
15678 | while test "x$ac_lo" != "x$ac_hi"; do | |
15679 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15680 | cat >conftest.$ac_ext <<_ACEOF | |
15681 | #line $LINENO "configure" | |
15682 | /* confdefs.h. */ | |
15683 | _ACEOF | |
15684 | cat confdefs.h >>conftest.$ac_ext | |
15685 | cat >>conftest.$ac_ext <<_ACEOF | |
15686 | /* end confdefs.h. */ | |
15687 | $ac_includes_default | |
15688 | int | |
15689 | main () | |
15690 | { | |
15691 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15692 | test_array [0] = 0 | |
15693 | ||
15694 | ; | |
15695 | return 0; | |
15696 | } | |
15697 | _ACEOF | |
15698 | rm -f conftest.$ac_objext | |
15699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15700 | (eval $ac_compile) 2>&5 | |
15701 | ac_status=$? | |
15702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15703 | (exit $ac_status); } && | |
15704 | { ac_try='test -s conftest.$ac_objext' | |
15705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15706 | (eval $ac_try) 2>&5 | |
15707 | ac_status=$? | |
15708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15709 | (exit $ac_status); }; }; then | |
15710 | ac_hi=$ac_mid | |
15711 | else | |
15712 | echo "$as_me: failed program was:" >&5 | |
15713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15714 | ||
15715 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15716 | fi | |
15717 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15718 | done | |
15719 | case $ac_lo in | |
15720 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15721 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15722 | See \`config.log' for more details." >&5 | |
15723 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15724 | See \`config.log' for more details." >&2;} | |
15725 | { (exit 1); exit 1; }; } ;; | |
15726 | esac | |
a0b9e27f | 15727 | else |
e6cc62c6 VS |
15728 | if test "$cross_compiling" = yes; then |
15729 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15730 | See \`config.log' for more details." >&5 | |
15731 | echo "$as_me: error: cannot run test program while cross compiling | |
15732 | See \`config.log' for more details." >&2;} | |
15733 | { (exit 1); exit 1; }; } | |
15734 | else | |
15735 | cat >conftest.$ac_ext <<_ACEOF | |
15736 | #line $LINENO "configure" | |
15737 | /* confdefs.h. */ | |
15738 | _ACEOF | |
15739 | cat confdefs.h >>conftest.$ac_ext | |
15740 | cat >>conftest.$ac_ext <<_ACEOF | |
15741 | /* end confdefs.h. */ | |
15742 | $ac_includes_default | |
15743 | long longval () { return (long) (sizeof (long long)); } | |
15744 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15745 | #include <stdio.h> |
e6cc62c6 VS |
15746 | #include <stdlib.h> |
15747 | int | |
15748 | main () | |
247f5006 | 15749 | { |
e6cc62c6 VS |
15750 | |
15751 | FILE *f = fopen ("conftest.val", "w"); | |
15752 | if (! f) | |
15753 | exit (1); | |
15754 | if (((long) (sizeof (long long))) < 0) | |
15755 | { | |
15756 | long i = longval (); | |
15757 | if (i != ((long) (sizeof (long long)))) | |
15758 | exit (1); | |
15759 | fprintf (f, "%ld\n", i); | |
15760 | } | |
15761 | else | |
15762 | { | |
15763 | unsigned long i = ulongval (); | |
15764 | if (i != ((long) (sizeof (long long)))) | |
15765 | exit (1); | |
15766 | fprintf (f, "%lu\n", i); | |
15767 | } | |
15768 | exit (ferror (f) || fclose (f) != 0); | |
15769 | ||
15770 | ; | |
15771 | return 0; | |
247f5006 | 15772 | } |
e6cc62c6 VS |
15773 | _ACEOF |
15774 | rm -f conftest$ac_exeext | |
15775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15776 | (eval $ac_link) 2>&5 | |
15777 | ac_status=$? | |
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15779 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15781 | (eval $ac_try) 2>&5 | |
15782 | ac_status=$? | |
15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15784 | (exit $ac_status); }; }; then | |
15785 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15786 | else | |
15787 | echo "$as_me: program exited with status $ac_status" >&5 | |
15788 | echo "$as_me: failed program was:" >&5 | |
15789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15790 | ||
15791 | ( exit $ac_status ) | |
15792 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15793 | See \`config.log' for more details." >&5 | |
15794 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15795 | See \`config.log' for more details." >&2;} | |
15796 | { (exit 1); exit 1; }; } | |
15797 | fi | |
15798 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15799 | fi | |
15800 | fi | |
15801 | rm -f conftest.val | |
7b4a847f | 15802 | else |
a0b9e27f | 15803 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15804 | fi |
15805 | fi | |
e6cc62c6 VS |
15806 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15807 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15808 | cat >>confdefs.h <<_ACEOF | |
15809 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15810 | _ACEOF | |
15811 | ||
15812 | ||
15813 | ;; | |
15814 | *-hp-hpux* ) | |
15815 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15816 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15817 | if test "${ac_cv_type_long_long+set}" = set; then | |
15818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15819 | else | |
15820 | cat >conftest.$ac_ext <<_ACEOF | |
15821 | #line $LINENO "configure" | |
15822 | /* confdefs.h. */ | |
15823 | _ACEOF | |
15824 | cat confdefs.h >>conftest.$ac_ext | |
15825 | cat >>conftest.$ac_ext <<_ACEOF | |
15826 | /* end confdefs.h. */ | |
15827 | $ac_includes_default | |
15828 | int | |
15829 | main () | |
15830 | { | |
15831 | if ((long long *) 0) | |
15832 | return 0; | |
15833 | if (sizeof (long long)) | |
15834 | return 0; | |
15835 | ; | |
15836 | return 0; | |
15837 | } | |
15838 | _ACEOF | |
15839 | rm -f conftest.$ac_objext | |
15840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15841 | (eval $ac_compile) 2>&5 | |
15842 | ac_status=$? | |
15843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15844 | (exit $ac_status); } && | |
15845 | { ac_try='test -s conftest.$ac_objext' | |
15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15847 | (eval $ac_try) 2>&5 | |
15848 | ac_status=$? | |
15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15850 | (exit $ac_status); }; }; then | |
15851 | ac_cv_type_long_long=yes | |
15852 | else | |
15853 | echo "$as_me: failed program was:" >&5 | |
15854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15855 | ||
15856 | ac_cv_type_long_long=no | |
15857 | fi | |
15858 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15859 | fi | |
15860 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15861 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15862 | ||
15863 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15864 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15865 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15867 | else | |
15868 | if test "$ac_cv_type_long_long" = yes; then | |
15869 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15870 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15871 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15872 | # This bug is HP SR number 8606223364. | |
15873 | if test "$cross_compiling" = yes; then | |
15874 | # Depending upon the size, compute the lo and hi bounds. | |
15875 | cat >conftest.$ac_ext <<_ACEOF | |
15876 | #line $LINENO "configure" | |
15877 | /* confdefs.h. */ | |
15878 | _ACEOF | |
15879 | cat confdefs.h >>conftest.$ac_ext | |
15880 | cat >>conftest.$ac_ext <<_ACEOF | |
15881 | /* end confdefs.h. */ | |
15882 | $ac_includes_default | |
15883 | int | |
15884 | main () | |
15885 | { | |
15886 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15887 | test_array [0] = 0 | |
15888 | ||
15889 | ; | |
15890 | return 0; | |
15891 | } | |
15892 | _ACEOF | |
15893 | rm -f conftest.$ac_objext | |
15894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15895 | (eval $ac_compile) 2>&5 | |
15896 | ac_status=$? | |
15897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15898 | (exit $ac_status); } && | |
15899 | { ac_try='test -s conftest.$ac_objext' | |
15900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15901 | (eval $ac_try) 2>&5 | |
15902 | ac_status=$? | |
15903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15904 | (exit $ac_status); }; }; then | |
15905 | ac_lo=0 ac_mid=0 | |
15906 | while :; do | |
15907 | cat >conftest.$ac_ext <<_ACEOF | |
15908 | #line $LINENO "configure" | |
15909 | /* confdefs.h. */ | |
15910 | _ACEOF | |
15911 | cat confdefs.h >>conftest.$ac_ext | |
15912 | cat >>conftest.$ac_ext <<_ACEOF | |
15913 | /* end confdefs.h. */ | |
15914 | $ac_includes_default | |
15915 | int | |
15916 | main () | |
15917 | { | |
15918 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15919 | test_array [0] = 0 | |
8284b0c5 | 15920 | |
e6cc62c6 VS |
15921 | ; |
15922 | return 0; | |
15923 | } | |
15924 | _ACEOF | |
15925 | rm -f conftest.$ac_objext | |
15926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15927 | (eval $ac_compile) 2>&5 | |
15928 | ac_status=$? | |
15929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15930 | (exit $ac_status); } && | |
15931 | { ac_try='test -s conftest.$ac_objext' | |
15932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15933 | (eval $ac_try) 2>&5 | |
15934 | ac_status=$? | |
15935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15936 | (exit $ac_status); }; }; then | |
15937 | ac_hi=$ac_mid; break | |
15938 | else | |
15939 | echo "$as_me: failed program was:" >&5 | |
15940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15941 | ||
15942 | ac_lo=`expr $ac_mid + 1` | |
15943 | if test $ac_lo -le $ac_mid; then | |
15944 | ac_lo= ac_hi= | |
15945 | break | |
15946 | fi | |
15947 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 15948 | fi |
e6cc62c6 VS |
15949 | rm -f conftest.$ac_objext conftest.$ac_ext |
15950 | done | |
15951 | else | |
15952 | echo "$as_me: failed program was:" >&5 | |
15953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15954 | ||
15955 | cat >conftest.$ac_ext <<_ACEOF | |
15956 | #line $LINENO "configure" | |
15957 | /* confdefs.h. */ | |
15958 | _ACEOF | |
15959 | cat confdefs.h >>conftest.$ac_ext | |
15960 | cat >>conftest.$ac_ext <<_ACEOF | |
15961 | /* end confdefs.h. */ | |
15962 | $ac_includes_default | |
15963 | int | |
15964 | main () | |
15965 | { | |
15966 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15967 | test_array [0] = 0 | |
a0b9e27f | 15968 | |
e6cc62c6 VS |
15969 | ; |
15970 | return 0; | |
15971 | } | |
15972 | _ACEOF | |
15973 | rm -f conftest.$ac_objext | |
15974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15975 | (eval $ac_compile) 2>&5 | |
15976 | ac_status=$? | |
15977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15978 | (exit $ac_status); } && | |
15979 | { ac_try='test -s conftest.$ac_objext' | |
15980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15981 | (eval $ac_try) 2>&5 | |
15982 | ac_status=$? | |
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15984 | (exit $ac_status); }; }; then | |
15985 | ac_hi=-1 ac_mid=-1 | |
15986 | while :; do | |
15987 | cat >conftest.$ac_ext <<_ACEOF | |
15988 | #line $LINENO "configure" | |
15989 | /* confdefs.h. */ | |
15990 | _ACEOF | |
15991 | cat confdefs.h >>conftest.$ac_ext | |
15992 | cat >>conftest.$ac_ext <<_ACEOF | |
15993 | /* end confdefs.h. */ | |
15994 | $ac_includes_default | |
15995 | int | |
15996 | main () | |
15997 | { | |
15998 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15999 | test_array [0] = 0 | |
a0b9e27f | 16000 | |
e6cc62c6 VS |
16001 | ; |
16002 | return 0; | |
16003 | } | |
16004 | _ACEOF | |
16005 | rm -f conftest.$ac_objext | |
16006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16007 | (eval $ac_compile) 2>&5 | |
16008 | ac_status=$? | |
16009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16010 | (exit $ac_status); } && | |
16011 | { ac_try='test -s conftest.$ac_objext' | |
16012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16013 | (eval $ac_try) 2>&5 | |
16014 | ac_status=$? | |
16015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16016 | (exit $ac_status); }; }; then | |
16017 | ac_lo=$ac_mid; break | |
16018 | else | |
16019 | echo "$as_me: failed program was:" >&5 | |
16020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16021 | ||
16022 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16023 | if test $ac_mid -le $ac_hi; then | |
16024 | ac_lo= ac_hi= | |
16025 | break | |
16026 | fi | |
16027 | ac_mid=`expr 2 '*' $ac_mid` | |
16028 | fi | |
16029 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16030 | done | |
8284b0c5 | 16031 | else |
e6cc62c6 VS |
16032 | echo "$as_me: failed program was:" >&5 |
16033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16034 | ||
16035 | ac_lo= ac_hi= | |
16036 | fi | |
16037 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16038 | fi | |
16039 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16040 | # Binary search between lo and hi bounds. | |
16041 | while test "x$ac_lo" != "x$ac_hi"; do | |
16042 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16043 | cat >conftest.$ac_ext <<_ACEOF | |
16044 | #line $LINENO "configure" | |
16045 | /* confdefs.h. */ | |
16046 | _ACEOF | |
16047 | cat confdefs.h >>conftest.$ac_ext | |
16048 | cat >>conftest.$ac_ext <<_ACEOF | |
16049 | /* end confdefs.h. */ | |
16050 | $ac_includes_default | |
16051 | int | |
16052 | main () | |
16053 | { | |
16054 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16055 | test_array [0] = 0 | |
16056 | ||
16057 | ; | |
16058 | return 0; | |
16059 | } | |
16060 | _ACEOF | |
16061 | rm -f conftest.$ac_objext | |
16062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16063 | (eval $ac_compile) 2>&5 | |
16064 | ac_status=$? | |
16065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16066 | (exit $ac_status); } && | |
16067 | { ac_try='test -s conftest.$ac_objext' | |
16068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16069 | (eval $ac_try) 2>&5 | |
16070 | ac_status=$? | |
16071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16072 | (exit $ac_status); }; }; then | |
16073 | ac_hi=$ac_mid | |
16074 | else | |
16075 | echo "$as_me: failed program was:" >&5 | |
16076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16077 | ||
16078 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16079 | fi | |
16080 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16081 | done | |
16082 | case $ac_lo in | |
16083 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16084 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16085 | See \`config.log' for more details." >&5 | |
16086 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16087 | See \`config.log' for more details." >&2;} | |
16088 | { (exit 1); exit 1; }; } ;; | |
16089 | esac | |
8284b0c5 | 16090 | else |
e6cc62c6 VS |
16091 | if test "$cross_compiling" = yes; then |
16092 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16093 | See \`config.log' for more details." >&5 | |
16094 | echo "$as_me: error: cannot run test program while cross compiling | |
16095 | See \`config.log' for more details." >&2;} | |
16096 | { (exit 1); exit 1; }; } | |
16097 | else | |
16098 | cat >conftest.$ac_ext <<_ACEOF | |
16099 | #line $LINENO "configure" | |
16100 | /* confdefs.h. */ | |
16101 | _ACEOF | |
16102 | cat confdefs.h >>conftest.$ac_ext | |
16103 | cat >>conftest.$ac_ext <<_ACEOF | |
16104 | /* end confdefs.h. */ | |
16105 | $ac_includes_default | |
16106 | long longval () { return (long) (sizeof (long long)); } | |
16107 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16108 | #include <stdio.h> |
e6cc62c6 VS |
16109 | #include <stdlib.h> |
16110 | int | |
16111 | main () | |
8284b0c5 | 16112 | { |
e6cc62c6 VS |
16113 | |
16114 | FILE *f = fopen ("conftest.val", "w"); | |
16115 | if (! f) | |
16116 | exit (1); | |
16117 | if (((long) (sizeof (long long))) < 0) | |
16118 | { | |
16119 | long i = longval (); | |
16120 | if (i != ((long) (sizeof (long long)))) | |
16121 | exit (1); | |
16122 | fprintf (f, "%ld\n", i); | |
16123 | } | |
16124 | else | |
16125 | { | |
16126 | unsigned long i = ulongval (); | |
16127 | if (i != ((long) (sizeof (long long)))) | |
16128 | exit (1); | |
16129 | fprintf (f, "%lu\n", i); | |
16130 | } | |
16131 | exit (ferror (f) || fclose (f) != 0); | |
16132 | ||
16133 | ; | |
16134 | return 0; | |
8284b0c5 | 16135 | } |
e6cc62c6 VS |
16136 | _ACEOF |
16137 | rm -f conftest$ac_exeext | |
16138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16139 | (eval $ac_link) 2>&5 | |
16140 | ac_status=$? | |
16141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16142 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16144 | (eval $ac_try) 2>&5 | |
16145 | ac_status=$? | |
16146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16147 | (exit $ac_status); }; }; then | |
16148 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16149 | else | |
16150 | echo "$as_me: program exited with status $ac_status" >&5 | |
16151 | echo "$as_me: failed program was:" >&5 | |
16152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16153 | ||
16154 | ( exit $ac_status ) | |
16155 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16156 | See \`config.log' for more details." >&5 | |
16157 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16158 | See \`config.log' for more details." >&2;} | |
16159 | { (exit 1); exit 1; }; } | |
16160 | fi | |
16161 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16162 | fi | |
16163 | fi | |
16164 | rm -f conftest.val | |
5c6fa7d2 RR |
16165 | else |
16166 | ac_cv_sizeof_long_long=0 | |
52127426 | 16167 | fi |
4f57cf11 | 16168 | fi |
e6cc62c6 VS |
16169 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16170 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16171 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16172 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16173 | _ACEOF |
4f57cf11 GD |
16174 | |
16175 | ||
16176 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16177 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16178 | fi | |
16179 | ;; | |
16180 | * ) | |
e6cc62c6 VS |
16181 | echo "$as_me:$LINENO: checking for long long" >&5 |
16182 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16183 | if test "${ac_cv_type_long_long+set}" = set; then | |
16184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16185 | else | |
16186 | cat >conftest.$ac_ext <<_ACEOF | |
16187 | #line $LINENO "configure" | |
16188 | /* confdefs.h. */ | |
16189 | _ACEOF | |
16190 | cat confdefs.h >>conftest.$ac_ext | |
16191 | cat >>conftest.$ac_ext <<_ACEOF | |
16192 | /* end confdefs.h. */ | |
16193 | $ac_includes_default | |
16194 | int | |
16195 | main () | |
16196 | { | |
16197 | if ((long long *) 0) | |
16198 | return 0; | |
16199 | if (sizeof (long long)) | |
16200 | return 0; | |
16201 | ; | |
16202 | return 0; | |
16203 | } | |
16204 | _ACEOF | |
16205 | rm -f conftest.$ac_objext | |
16206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16207 | (eval $ac_compile) 2>&5 | |
16208 | ac_status=$? | |
16209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16210 | (exit $ac_status); } && | |
16211 | { ac_try='test -s conftest.$ac_objext' | |
16212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16213 | (eval $ac_try) 2>&5 | |
16214 | ac_status=$? | |
16215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16216 | (exit $ac_status); }; }; then | |
16217 | ac_cv_type_long_long=yes | |
16218 | else | |
16219 | echo "$as_me: failed program was:" >&5 | |
16220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16221 | ||
16222 | ac_cv_type_long_long=no | |
16223 | fi | |
16224 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16225 | fi | |
16226 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16227 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16228 | ||
16229 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16230 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16231 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16233 | else | |
16234 | if test "$ac_cv_type_long_long" = yes; then | |
16235 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16236 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16237 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16238 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16239 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16240 | # Depending upon the size, compute the lo and hi bounds. |
16241 | cat >conftest.$ac_ext <<_ACEOF | |
16242 | #line $LINENO "configure" | |
16243 | /* confdefs.h. */ | |
16244 | _ACEOF | |
16245 | cat confdefs.h >>conftest.$ac_ext | |
16246 | cat >>conftest.$ac_ext <<_ACEOF | |
16247 | /* end confdefs.h. */ | |
16248 | $ac_includes_default | |
16249 | int | |
16250 | main () | |
16251 | { | |
16252 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16253 | test_array [0] = 0 | |
16254 | ||
16255 | ; | |
16256 | return 0; | |
16257 | } | |
16258 | _ACEOF | |
16259 | rm -f conftest.$ac_objext | |
16260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16261 | (eval $ac_compile) 2>&5 | |
16262 | ac_status=$? | |
16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16264 | (exit $ac_status); } && | |
16265 | { ac_try='test -s conftest.$ac_objext' | |
16266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16267 | (eval $ac_try) 2>&5 | |
16268 | ac_status=$? | |
16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16270 | (exit $ac_status); }; }; then | |
16271 | ac_lo=0 ac_mid=0 | |
16272 | while :; do | |
16273 | cat >conftest.$ac_ext <<_ACEOF | |
16274 | #line $LINENO "configure" | |
16275 | /* confdefs.h. */ | |
16276 | _ACEOF | |
16277 | cat confdefs.h >>conftest.$ac_ext | |
16278 | cat >>conftest.$ac_ext <<_ACEOF | |
16279 | /* end confdefs.h. */ | |
16280 | $ac_includes_default | |
16281 | int | |
16282 | main () | |
16283 | { | |
16284 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16285 | test_array [0] = 0 | |
16286 | ||
16287 | ; | |
16288 | return 0; | |
16289 | } | |
16290 | _ACEOF | |
16291 | rm -f conftest.$ac_objext | |
16292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16293 | (eval $ac_compile) 2>&5 | |
16294 | ac_status=$? | |
16295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16296 | (exit $ac_status); } && | |
16297 | { ac_try='test -s conftest.$ac_objext' | |
16298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16299 | (eval $ac_try) 2>&5 | |
16300 | ac_status=$? | |
16301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16302 | (exit $ac_status); }; }; then | |
16303 | ac_hi=$ac_mid; break | |
16304 | else | |
16305 | echo "$as_me: failed program was:" >&5 | |
16306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16307 | ||
16308 | ac_lo=`expr $ac_mid + 1` | |
16309 | if test $ac_lo -le $ac_mid; then | |
16310 | ac_lo= ac_hi= | |
16311 | break | |
16312 | fi | |
16313 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16314 | fi | |
16315 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16316 | done | |
16317 | else | |
16318 | echo "$as_me: failed program was:" >&5 | |
16319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16320 | ||
16321 | cat >conftest.$ac_ext <<_ACEOF | |
16322 | #line $LINENO "configure" | |
16323 | /* confdefs.h. */ | |
16324 | _ACEOF | |
16325 | cat confdefs.h >>conftest.$ac_ext | |
16326 | cat >>conftest.$ac_ext <<_ACEOF | |
16327 | /* end confdefs.h. */ | |
16328 | $ac_includes_default | |
16329 | int | |
16330 | main () | |
16331 | { | |
16332 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16333 | test_array [0] = 0 | |
16334 | ||
16335 | ; | |
16336 | return 0; | |
16337 | } | |
16338 | _ACEOF | |
16339 | rm -f conftest.$ac_objext | |
16340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16341 | (eval $ac_compile) 2>&5 | |
16342 | ac_status=$? | |
16343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16344 | (exit $ac_status); } && | |
16345 | { ac_try='test -s conftest.$ac_objext' | |
16346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16347 | (eval $ac_try) 2>&5 | |
16348 | ac_status=$? | |
16349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16350 | (exit $ac_status); }; }; then | |
16351 | ac_hi=-1 ac_mid=-1 | |
16352 | while :; do | |
16353 | cat >conftest.$ac_ext <<_ACEOF | |
16354 | #line $LINENO "configure" | |
16355 | /* confdefs.h. */ | |
16356 | _ACEOF | |
16357 | cat confdefs.h >>conftest.$ac_ext | |
16358 | cat >>conftest.$ac_ext <<_ACEOF | |
16359 | /* end confdefs.h. */ | |
16360 | $ac_includes_default | |
16361 | int | |
16362 | main () | |
16363 | { | |
16364 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16365 | test_array [0] = 0 | |
16366 | ||
16367 | ; | |
16368 | return 0; | |
16369 | } | |
16370 | _ACEOF | |
16371 | rm -f conftest.$ac_objext | |
16372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16373 | (eval $ac_compile) 2>&5 | |
16374 | ac_status=$? | |
16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16376 | (exit $ac_status); } && | |
16377 | { ac_try='test -s conftest.$ac_objext' | |
16378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16379 | (eval $ac_try) 2>&5 | |
16380 | ac_status=$? | |
16381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16382 | (exit $ac_status); }; }; then | |
16383 | ac_lo=$ac_mid; break | |
16384 | else | |
16385 | echo "$as_me: failed program was:" >&5 | |
16386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16387 | ||
16388 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16389 | if test $ac_mid -le $ac_hi; then | |
16390 | ac_lo= ac_hi= | |
16391 | break | |
16392 | fi | |
16393 | ac_mid=`expr 2 '*' $ac_mid` | |
16394 | fi | |
16395 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16396 | done | |
4f57cf11 | 16397 | else |
e6cc62c6 VS |
16398 | echo "$as_me: failed program was:" >&5 |
16399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16400 | ||
16401 | ac_lo= ac_hi= | |
16402 | fi | |
16403 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16404 | fi | |
16405 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16406 | # Binary search between lo and hi bounds. | |
16407 | while test "x$ac_lo" != "x$ac_hi"; do | |
16408 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16409 | cat >conftest.$ac_ext <<_ACEOF | |
16410 | #line $LINENO "configure" | |
16411 | /* confdefs.h. */ | |
16412 | _ACEOF | |
16413 | cat confdefs.h >>conftest.$ac_ext | |
16414 | cat >>conftest.$ac_ext <<_ACEOF | |
16415 | /* end confdefs.h. */ | |
16416 | $ac_includes_default | |
16417 | int | |
16418 | main () | |
16419 | { | |
16420 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16421 | test_array [0] = 0 | |
16422 | ||
16423 | ; | |
16424 | return 0; | |
16425 | } | |
16426 | _ACEOF | |
16427 | rm -f conftest.$ac_objext | |
16428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16429 | (eval $ac_compile) 2>&5 | |
16430 | ac_status=$? | |
16431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16432 | (exit $ac_status); } && | |
16433 | { ac_try='test -s conftest.$ac_objext' | |
16434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16435 | (eval $ac_try) 2>&5 | |
16436 | ac_status=$? | |
16437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16438 | (exit $ac_status); }; }; then | |
16439 | ac_hi=$ac_mid | |
16440 | else | |
16441 | echo "$as_me: failed program was:" >&5 | |
16442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16443 | ||
16444 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16445 | fi | |
16446 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16447 | done | |
16448 | case $ac_lo in | |
16449 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16450 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16451 | See \`config.log' for more details." >&5 | |
16452 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16453 | See \`config.log' for more details." >&2;} | |
16454 | { (exit 1); exit 1; }; } ;; | |
16455 | esac | |
16456 | else | |
16457 | if test "$cross_compiling" = yes; then | |
16458 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16459 | See \`config.log' for more details." >&5 | |
16460 | echo "$as_me: error: cannot run test program while cross compiling | |
16461 | See \`config.log' for more details." >&2;} | |
16462 | { (exit 1); exit 1; }; } | |
16463 | else | |
16464 | cat >conftest.$ac_ext <<_ACEOF | |
16465 | #line $LINENO "configure" | |
16466 | /* confdefs.h. */ | |
16467 | _ACEOF | |
16468 | cat confdefs.h >>conftest.$ac_ext | |
16469 | cat >>conftest.$ac_ext <<_ACEOF | |
16470 | /* end confdefs.h. */ | |
16471 | $ac_includes_default | |
16472 | long longval () { return (long) (sizeof (long long)); } | |
16473 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16474 | #include <stdio.h> |
e6cc62c6 VS |
16475 | #include <stdlib.h> |
16476 | int | |
16477 | main () | |
4f57cf11 | 16478 | { |
e6cc62c6 VS |
16479 | |
16480 | FILE *f = fopen ("conftest.val", "w"); | |
16481 | if (! f) | |
16482 | exit (1); | |
16483 | if (((long) (sizeof (long long))) < 0) | |
16484 | { | |
16485 | long i = longval (); | |
16486 | if (i != ((long) (sizeof (long long)))) | |
16487 | exit (1); | |
16488 | fprintf (f, "%ld\n", i); | |
16489 | } | |
16490 | else | |
16491 | { | |
16492 | unsigned long i = ulongval (); | |
16493 | if (i != ((long) (sizeof (long long)))) | |
16494 | exit (1); | |
16495 | fprintf (f, "%lu\n", i); | |
16496 | } | |
16497 | exit (ferror (f) || fclose (f) != 0); | |
16498 | ||
16499 | ; | |
16500 | return 0; | |
4f57cf11 | 16501 | } |
e6cc62c6 VS |
16502 | _ACEOF |
16503 | rm -f conftest$ac_exeext | |
16504 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16505 | (eval $ac_link) 2>&5 | |
16506 | ac_status=$? | |
16507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16508 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16510 | (eval $ac_try) 2>&5 | |
16511 | ac_status=$? | |
16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16513 | (exit $ac_status); }; }; then | |
16514 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16515 | else | |
16516 | echo "$as_me: program exited with status $ac_status" >&5 | |
16517 | echo "$as_me: failed program was:" >&5 | |
16518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16519 | ||
16520 | ( exit $ac_status ) | |
16521 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16522 | See \`config.log' for more details." >&5 | |
16523 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16524 | See \`config.log' for more details." >&2;} | |
16525 | { (exit 1); exit 1; }; } | |
16526 | fi | |
16527 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16528 | fi | |
16529 | fi | |
16530 | rm -f conftest.val | |
4f57cf11 | 16531 | else |
4f57cf11 GD |
16532 | ac_cv_sizeof_long_long=0 |
16533 | fi | |
7b4a847f | 16534 | fi |
e6cc62c6 VS |
16535 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16536 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16537 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16538 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16539 | _ACEOF |
9e691f46 | 16540 | |
8284b0c5 | 16541 | |
21d1c967 GD |
16542 | esac |
16543 | ||
e6cc62c6 VS |
16544 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16545 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16546 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16548 | else |
e6cc62c6 | 16549 | |
21d1c967 | 16550 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16551 | |
2b5f62a0 VZ |
16552 | case "${host}" in |
16553 | *-pc-msdosdjgpp ) | |
16554 | wx_cv_sizeof_wchar_t=0 | |
16555 | ;; | |
16556 | * ) | |
16557 | wx_cv_sizeof_wchar_t=4 | |
16558 | ;; | |
16559 | esac | |
e6cc62c6 VS |
16560 | |
16561 | ||
6f72b082 | 16562 | else |
e6cc62c6 VS |
16563 | cat >conftest.$ac_ext <<_ACEOF |
16564 | #line $LINENO "configure" | |
16565 | /* confdefs.h. */ | |
16566 | _ACEOF | |
16567 | cat confdefs.h >>conftest.$ac_ext | |
16568 | cat >>conftest.$ac_ext <<_ACEOF | |
16569 | /* end confdefs.h. */ | |
21d1c967 | 16570 | |
2b5f62a0 VZ |
16571 | /* DJGPP only has fake wchar_t: */ |
16572 | #ifdef __DJGPP__ | |
16573 | # error "fake wchar_t" | |
16574 | #endif | |
21d1c967 GD |
16575 | #ifdef HAVE_WCHAR_H |
16576 | # ifdef __CYGWIN__ | |
16577 | # include <stddef.h> | |
16578 | # endif | |
16579 | # include <wchar.h> | |
16580 | #endif | |
16581 | #ifdef HAVE_STDLIB_H | |
16582 | # include <stdlib.h> | |
16583 | #endif | |
16584 | #include <stdio.h> | |
16585 | int main() | |
16586 | { | |
16587 | FILE *f=fopen("conftestval", "w"); | |
16588 | if (!f) exit(1); | |
16589 | fprintf(f, "%i", sizeof(wchar_t)); | |
16590 | exit(0); | |
16591 | } | |
e6cc62c6 VS |
16592 | |
16593 | _ACEOF | |
16594 | rm -f conftest$ac_exeext | |
16595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16596 | (eval $ac_link) 2>&5 | |
16597 | ac_status=$? | |
16598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16599 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16601 | (eval $ac_try) 2>&5 | |
16602 | ac_status=$? | |
16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16604 | (exit $ac_status); }; }; then | |
21d1c967 | 16605 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16606 | else |
e6cc62c6 VS |
16607 | echo "$as_me: program exited with status $ac_status" >&5 |
16608 | echo "$as_me: failed program was:" >&5 | |
16609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16610 | ||
16611 | ( exit $ac_status ) | |
16612 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16613 | fi |
e6cc62c6 | 16614 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16615 | fi |
6f72b082 | 16616 | |
3f345b47 | 16617 | fi |
e6cc62c6 VS |
16618 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16619 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16620 | |
e6cc62c6 | 16621 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16622 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16623 | _ACEOF |
90dd450c | 16624 | |
8284b0c5 | 16625 | |
21d1c967 GD |
16626 | # Check whether --enable-largefile or --disable-largefile was given. |
16627 | if test "${enable_largefile+set}" = set; then | |
16628 | enableval="$enable_largefile" | |
3f345b47 | 16629 | |
e6cc62c6 | 16630 | fi; |
21d1c967 GD |
16631 | if test "$enable_largefile" != no; then |
16632 | wx_largefile=no | |
e6cc62c6 VS |
16633 | |
16634 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16635 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16636 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16638 | else | |
16639 | ||
16640 | cat >conftest.$ac_ext <<_ACEOF | |
16641 | #line $LINENO "configure" | |
16642 | /* confdefs.h. */ | |
16643 | _ACEOF | |
16644 | cat confdefs.h >>conftest.$ac_ext | |
16645 | cat >>conftest.$ac_ext <<_ACEOF | |
16646 | /* end confdefs.h. */ | |
21d1c967 GD |
16647 | #define _FILE_OFFSET_BITS 64 |
16648 | #include <sys/types.h> | |
e6cc62c6 VS |
16649 | int |
16650 | main () | |
16651 | { | |
21d1c967 GD |
16652 | typedef struct { |
16653 | unsigned int field: sizeof(off_t) == 8; | |
16654 | } wxlf; | |
16655 | ||
e6cc62c6 VS |
16656 | ; |
16657 | return 0; | |
16658 | } | |
16659 | _ACEOF | |
16660 | rm -f conftest.$ac_objext | |
16661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16662 | (eval $ac_compile) 2>&5 | |
16663 | ac_status=$? | |
16664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16665 | (exit $ac_status); } && | |
16666 | { ac_try='test -s conftest.$ac_objext' | |
16667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16668 | (eval $ac_try) 2>&5 | |
16669 | ac_status=$? | |
16670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16671 | (exit $ac_status); }; }; then | |
21d1c967 | 16672 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16673 | else |
e6cc62c6 VS |
16674 | echo "$as_me: failed program was:" >&5 |
16675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16676 | ||
16677 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16678 | fi |
e6cc62c6 VS |
16679 | rm -f conftest.$ac_objext conftest.$ac_ext |
16680 | ||
a0b9e27f | 16681 | |
e6cc62c6 VS |
16682 | fi |
16683 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16684 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16685 | |
16686 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16687 | wx_largefile=yes | |
e6cc62c6 | 16688 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16689 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16690 | _ACEOF |
21d1c967 GD |
16691 | |
16692 | fi | |
16693 | ||
16694 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16695 | |
16696 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16697 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16698 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16700 | else | |
16701 | ||
16702 | cat >conftest.$ac_ext <<_ACEOF | |
16703 | #line $LINENO "configure" | |
16704 | /* confdefs.h. */ | |
16705 | _ACEOF | |
16706 | cat confdefs.h >>conftest.$ac_ext | |
16707 | cat >>conftest.$ac_ext <<_ACEOF | |
16708 | /* end confdefs.h. */ | |
21d1c967 GD |
16709 | #define _LARGE_FILES 1 |
16710 | #include <sys/types.h> | |
e6cc62c6 VS |
16711 | int |
16712 | main () | |
16713 | { | |
21d1c967 GD |
16714 | typedef struct { |
16715 | unsigned int field: sizeof(off_t) == 8; | |
16716 | } wxlf; | |
16717 | ||
e6cc62c6 VS |
16718 | ; |
16719 | return 0; | |
16720 | } | |
16721 | _ACEOF | |
16722 | rm -f conftest.$ac_objext | |
16723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16724 | (eval $ac_compile) 2>&5 | |
16725 | ac_status=$? | |
16726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16727 | (exit $ac_status); } && | |
16728 | { ac_try='test -s conftest.$ac_objext' | |
16729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16730 | (eval $ac_try) 2>&5 | |
16731 | ac_status=$? | |
16732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16733 | (exit $ac_status); }; }; then | |
21d1c967 | 16734 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16735 | else |
e6cc62c6 VS |
16736 | echo "$as_me: failed program was:" >&5 |
16737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16738 | ||
16739 | ac_cv_sys_large_files=no | |
247f5006 | 16740 | fi |
e6cc62c6 | 16741 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16742 | |
e6cc62c6 VS |
16743 | |
16744 | fi | |
16745 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16746 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16747 | |
21d1c967 GD |
16748 | if test "$ac_cv_sys_large_files" != no; then |
16749 | wx_largefile=yes | |
e6cc62c6 | 16750 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16751 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16752 | _ACEOF |
90dd450c | 16753 | |
90dd450c VZ |
16754 | fi |
16755 | ||
90dd450c | 16756 | fi |
90dd450c | 16757 | |
e6cc62c6 VS |
16758 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16759 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16760 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16761 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16762 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16763 | _ACEOF |
90dd450c | 16764 | |
90dd450c | 16765 | fi |
e6cc62c6 VS |
16766 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16767 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16768 | fi |
90dd450c | 16769 | |
8284b0c5 | 16770 | |
f02444d0 | 16771 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16772 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16773 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16774 | else |
e26c13cf | 16775 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16776 | fi |
e26c13cf | 16777 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16778 | fi |
16779 | ||
e6cc62c6 VS |
16780 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16781 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16782 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16784 | else |
21d1c967 GD |
16785 | ac_cv_c_bigendian=unknown |
16786 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 VS |
16787 | cat >conftest.$ac_ext <<_ACEOF |
16788 | #line $LINENO "configure" | |
16789 | /* confdefs.h. */ | |
16790 | _ACEOF | |
16791 | cat confdefs.h >>conftest.$ac_ext | |
16792 | cat >>conftest.$ac_ext <<_ACEOF | |
16793 | /* end confdefs.h. */ | |
21d1c967 GD |
16794 | #include <sys/types.h> |
16795 | #include <sys/param.h> | |
e6cc62c6 VS |
16796 | int |
16797 | main () | |
16798 | { | |
21d1c967 GD |
16799 | |
16800 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16801 | bogus endian macros | |
16802 | #endif | |
e6cc62c6 VS |
16803 | ; |
16804 | return 0; | |
16805 | } | |
16806 | _ACEOF | |
16807 | rm -f conftest.$ac_objext | |
16808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16809 | (eval $ac_compile) 2>&5 | |
16810 | ac_status=$? | |
16811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16812 | (exit $ac_status); } && | |
16813 | { ac_try='test -s conftest.$ac_objext' | |
16814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16815 | (eval $ac_try) 2>&5 | |
16816 | ac_status=$? | |
16817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16818 | (exit $ac_status); }; }; then | |
21d1c967 | 16819 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 VS |
16820 | cat >conftest.$ac_ext <<_ACEOF |
16821 | #line $LINENO "configure" | |
16822 | /* confdefs.h. */ | |
16823 | _ACEOF | |
16824 | cat confdefs.h >>conftest.$ac_ext | |
16825 | cat >>conftest.$ac_ext <<_ACEOF | |
16826 | /* end confdefs.h. */ | |
21d1c967 GD |
16827 | #include <sys/types.h> |
16828 | #include <sys/param.h> | |
e6cc62c6 VS |
16829 | int |
16830 | main () | |
16831 | { | |
21d1c967 GD |
16832 | |
16833 | #if BYTE_ORDER != BIG_ENDIAN | |
16834 | not big endian | |
16835 | #endif | |
e6cc62c6 VS |
16836 | ; |
16837 | return 0; | |
16838 | } | |
16839 | _ACEOF | |
16840 | rm -f conftest.$ac_objext | |
16841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16842 | (eval $ac_compile) 2>&5 | |
16843 | ac_status=$? | |
16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16845 | (exit $ac_status); } && | |
16846 | { ac_try='test -s conftest.$ac_objext' | |
16847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16848 | (eval $ac_try) 2>&5 | |
16849 | ac_status=$? | |
16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16851 | (exit $ac_status); }; }; then | |
21d1c967 | 16852 | ac_cv_c_bigendian=yes |
3f345b47 | 16853 | else |
e6cc62c6 VS |
16854 | echo "$as_me: failed program was:" >&5 |
16855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16856 | ||
16857 | ac_cv_c_bigendian=no | |
3f345b47 | 16858 | fi |
e6cc62c6 | 16859 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16860 | else |
e6cc62c6 VS |
16861 | echo "$as_me: failed program was:" >&5 |
16862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16863 | ||
3f345b47 | 16864 | fi |
e6cc62c6 | 16865 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16866 | if test $ac_cv_c_bigendian = unknown; then |
16867 | if test "$cross_compiling" = yes; then | |
16868 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16869 | else |
e6cc62c6 VS |
16870 | cat >conftest.$ac_ext <<_ACEOF |
16871 | #line $LINENO "configure" | |
16872 | /* confdefs.h. */ | |
16873 | _ACEOF | |
16874 | cat confdefs.h >>conftest.$ac_ext | |
16875 | cat >>conftest.$ac_ext <<_ACEOF | |
16876 | /* end confdefs.h. */ | |
21d1c967 GD |
16877 | main () { |
16878 | /* Are we little or big endian? From Harbison&Steele. */ | |
16879 | union | |
16880 | { | |
16881 | long l; | |
16882 | char c[sizeof (long)]; | |
16883 | } u; | |
16884 | u.l = 1; | |
16885 | exit (u.c[sizeof (long) - 1] == 1); | |
16886 | } | |
e6cc62c6 VS |
16887 | _ACEOF |
16888 | rm -f conftest$ac_exeext | |
16889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16890 | (eval $ac_link) 2>&5 | |
16891 | ac_status=$? | |
16892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16893 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16895 | (eval $ac_try) 2>&5 | |
16896 | ac_status=$? | |
16897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16898 | (exit $ac_status); }; }; then | |
21d1c967 | 16899 | ac_cv_c_bigendian=no |
3f345b47 | 16900 | else |
e6cc62c6 VS |
16901 | echo "$as_me: program exited with status $ac_status" >&5 |
16902 | echo "$as_me: failed program was:" >&5 | |
16903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16904 | ||
16905 | ( exit $ac_status ) | |
16906 | ac_cv_c_bigendian=yes | |
247f5006 | 16907 | fi |
e6cc62c6 | 16908 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 16909 | fi |
3f345b47 | 16910 | fi |
8168de4c | 16911 | fi |
e6cc62c6 VS |
16912 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
16913 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 16914 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
16915 | { 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 |
16916 | 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;} | |
247f5006 VZ |
16917 | fi |
16918 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 16919 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 16920 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 16921 | _ACEOF |
247f5006 VZ |
16922 | |
16923 | fi | |
16924 | ||
16925 | ||
e6cc62c6 VS |
16926 | |
16927 | ac_ext=cc | |
16928 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16929 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16930 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16931 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16932 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16933 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 16934 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
16935 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
16936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16937 | else | |
16938 | # Double quotes because CXXCPP needs to be expanded | |
16939 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16940 | do | |
16941 | ac_preproc_ok=false | |
16942 | for ac_cxx_preproc_warn_flag in '' yes | |
16943 | do | |
16944 | # Use a header file that comes with gcc, so configuring glibc | |
16945 | # with a fresh cross-compiler works. | |
16946 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16947 | # <limits.h> exists even on freestanding compilers. | |
16948 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16949 | # not just through cpp. "Syntax error" is here to catch this case. | |
16950 | cat >conftest.$ac_ext <<_ACEOF | |
16951 | #line $LINENO "configure" | |
16952 | /* confdefs.h. */ | |
16953 | _ACEOF | |
16954 | cat confdefs.h >>conftest.$ac_ext | |
16955 | cat >>conftest.$ac_ext <<_ACEOF | |
16956 | /* end confdefs.h. */ | |
16957 | #ifdef __STDC__ | |
16958 | # include <limits.h> | |
16959 | #else | |
16960 | # include <assert.h> | |
16961 | #endif | |
16962 | Syntax error | |
16963 | _ACEOF | |
16964 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16965 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16966 | ac_status=$? | |
16967 | grep -v '^ *+' conftest.er1 >conftest.err | |
16968 | rm -f conftest.er1 | |
16969 | cat conftest.err >&5 | |
16970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16971 | (exit $ac_status); } >/dev/null; then | |
16972 | if test -s conftest.err; then | |
16973 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16974 | else | |
16975 | ac_cpp_err= | |
16976 | fi | |
247f5006 | 16977 | else |
e6cc62c6 VS |
16978 | ac_cpp_err=yes |
16979 | fi | |
16980 | if test -z "$ac_cpp_err"; then | |
16981 | : | |
16982 | else | |
16983 | echo "$as_me: failed program was:" >&5 | |
16984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16985 | ||
16986 | # Broken: fails on valid input. | |
16987 | continue | |
16988 | fi | |
16989 | rm -f conftest.err conftest.$ac_ext | |
16990 | ||
16991 | # OK, works on sane cases. Now check whether non-existent headers | |
16992 | # can be detected and how. | |
16993 | cat >conftest.$ac_ext <<_ACEOF | |
16994 | #line $LINENO "configure" | |
16995 | /* confdefs.h. */ | |
16996 | _ACEOF | |
16997 | cat confdefs.h >>conftest.$ac_ext | |
16998 | cat >>conftest.$ac_ext <<_ACEOF | |
16999 | /* end confdefs.h. */ | |
17000 | #include <ac_nonexistent.h> | |
17001 | _ACEOF | |
17002 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17003 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17004 | ac_status=$? | |
17005 | grep -v '^ *+' conftest.er1 >conftest.err | |
17006 | rm -f conftest.er1 | |
17007 | cat conftest.err >&5 | |
17008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17009 | (exit $ac_status); } >/dev/null; then | |
17010 | if test -s conftest.err; then | |
17011 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17012 | else | |
17013 | ac_cpp_err= | |
17014 | fi | |
17015 | else | |
17016 | ac_cpp_err=yes | |
17017 | fi | |
17018 | if test -z "$ac_cpp_err"; then | |
17019 | # Broken: success on invalid input. | |
17020 | continue | |
17021 | else | |
17022 | echo "$as_me: failed program was:" >&5 | |
17023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17024 | ||
17025 | # Passes both tests. | |
17026 | ac_preproc_ok=: | |
17027 | break | |
17028 | fi | |
17029 | rm -f conftest.err conftest.$ac_ext | |
17030 | ||
17031 | done | |
17032 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17033 | rm -f conftest.err conftest.$ac_ext | |
17034 | if $ac_preproc_ok; then | |
17035 | break | |
17036 | fi | |
17037 | ||
17038 | done | |
17039 | ac_cv_prog_CXXCPP=$CXXCPP | |
17040 | ||
17041 | fi | |
17042 | CXXCPP=$ac_cv_prog_CXXCPP | |
17043 | else | |
17044 | ac_cv_prog_CXXCPP=$CXXCPP | |
17045 | fi | |
17046 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17047 | echo "${ECHO_T}$CXXCPP" >&6 | |
17048 | ac_preproc_ok=false | |
17049 | for ac_cxx_preproc_warn_flag in '' yes | |
17050 | do | |
17051 | # Use a header file that comes with gcc, so configuring glibc | |
17052 | # with a fresh cross-compiler works. | |
17053 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17054 | # <limits.h> exists even on freestanding compilers. | |
17055 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17056 | # not just through cpp. "Syntax error" is here to catch this case. | |
17057 | cat >conftest.$ac_ext <<_ACEOF | |
17058 | #line $LINENO "configure" | |
17059 | /* confdefs.h. */ | |
17060 | _ACEOF | |
17061 | cat confdefs.h >>conftest.$ac_ext | |
17062 | cat >>conftest.$ac_ext <<_ACEOF | |
17063 | /* end confdefs.h. */ | |
17064 | #ifdef __STDC__ | |
17065 | # include <limits.h> | |
17066 | #else | |
17067 | # include <assert.h> | |
17068 | #endif | |
17069 | Syntax error | |
17070 | _ACEOF | |
17071 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17072 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17073 | ac_status=$? | |
17074 | grep -v '^ *+' conftest.er1 >conftest.err | |
17075 | rm -f conftest.er1 | |
17076 | cat conftest.err >&5 | |
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17078 | (exit $ac_status); } >/dev/null; then | |
17079 | if test -s conftest.err; then | |
17080 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17081 | else | |
17082 | ac_cpp_err= | |
17083 | fi | |
17084 | else | |
17085 | ac_cpp_err=yes | |
17086 | fi | |
17087 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17088 | : |
698dcdb6 | 17089 | else |
e6cc62c6 VS |
17090 | echo "$as_me: failed program was:" >&5 |
17091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17092 | ||
17093 | # Broken: fails on valid input. | |
17094 | continue | |
17095 | fi | |
17096 | rm -f conftest.err conftest.$ac_ext | |
17097 | ||
17098 | # OK, works on sane cases. Now check whether non-existent headers | |
17099 | # can be detected and how. | |
17100 | cat >conftest.$ac_ext <<_ACEOF | |
17101 | #line $LINENO "configure" | |
17102 | /* confdefs.h. */ | |
17103 | _ACEOF | |
17104 | cat confdefs.h >>conftest.$ac_ext | |
17105 | cat >>conftest.$ac_ext <<_ACEOF | |
17106 | /* end confdefs.h. */ | |
17107 | #include <ac_nonexistent.h> | |
17108 | _ACEOF | |
17109 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17110 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17111 | ac_status=$? | |
17112 | grep -v '^ *+' conftest.er1 >conftest.err | |
17113 | rm -f conftest.er1 | |
17114 | cat conftest.err >&5 | |
17115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17116 | (exit $ac_status); } >/dev/null; then | |
17117 | if test -s conftest.err; then | |
17118 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17119 | else | |
17120 | ac_cpp_err= | |
17121 | fi | |
17122 | else | |
17123 | ac_cpp_err=yes | |
247f5006 | 17124 | fi |
e6cc62c6 VS |
17125 | if test -z "$ac_cpp_err"; then |
17126 | # Broken: success on invalid input. | |
17127 | continue | |
17128 | else | |
17129 | echo "$as_me: failed program was:" >&5 | |
17130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17131 | ||
17132 | # Passes both tests. | |
17133 | ac_preproc_ok=: | |
17134 | break | |
328a083c | 17135 | fi |
e6cc62c6 VS |
17136 | rm -f conftest.err conftest.$ac_ext |
17137 | ||
17138 | done | |
17139 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17140 | rm -f conftest.err conftest.$ac_ext | |
17141 | if $ac_preproc_ok; then | |
17142 | : | |
17143 | else | |
17144 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17145 | See \`config.log' for more details." >&5 | |
17146 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17147 | See \`config.log' for more details." >&2;} | |
17148 | { (exit 1); exit 1; }; } | |
90dd450c | 17149 | fi |
e6cc62c6 VS |
17150 | |
17151 | ac_ext=cc | |
17152 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17153 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17154 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17155 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17156 | ||
1e6feb95 | 17157 | |
1725144d | 17158 | |
21d1c967 | 17159 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17160 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17161 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17162 | _ACEOF |
ab9b9eab | 17163 | |
21d1c967 | 17164 | else |
e6cc62c6 VS |
17165 | |
17166 | ||
17167 | ac_ext=cc | |
5c6fa7d2 | 17168 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17169 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17170 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17171 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17172 | ||
52127426 | 17173 | |
247f5006 | 17174 | |
e6cc62c6 | 17175 | for ac_header in iostream |
21d1c967 | 17176 | do |
e6cc62c6 VS |
17177 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17178 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17179 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17180 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17183 | fi | |
17184 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17185 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17186 | else | |
17187 | # Is the header compilable? | |
17188 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17189 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17190 | cat >conftest.$ac_ext <<_ACEOF | |
17191 | #line $LINENO "configure" | |
17192 | /* confdefs.h. */ | |
17193 | _ACEOF | |
17194 | cat confdefs.h >>conftest.$ac_ext | |
17195 | cat >>conftest.$ac_ext <<_ACEOF | |
17196 | /* end confdefs.h. */ | |
17197 | $ac_includes_default | |
17198 | #include <$ac_header> | |
17199 | _ACEOF | |
17200 | rm -f conftest.$ac_objext | |
17201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17202 | (eval $ac_compile) 2>&5 | |
17203 | ac_status=$? | |
17204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17205 | (exit $ac_status); } && | |
17206 | { ac_try='test -s conftest.$ac_objext' | |
17207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17208 | (eval $ac_try) 2>&5 | |
17209 | ac_status=$? | |
17210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17211 | (exit $ac_status); }; }; then | |
17212 | ac_header_compiler=yes | |
17213 | else | |
17214 | echo "$as_me: failed program was:" >&5 | |
17215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17216 | ||
17217 | ac_header_compiler=no | |
17218 | fi | |
17219 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17220 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17221 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17222 | ||
17223 | # Is the header present? | |
17224 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17225 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17226 | cat >conftest.$ac_ext <<_ACEOF | |
17227 | #line $LINENO "configure" | |
17228 | /* confdefs.h. */ | |
17229 | _ACEOF | |
17230 | cat confdefs.h >>conftest.$ac_ext | |
17231 | cat >>conftest.$ac_ext <<_ACEOF | |
17232 | /* end confdefs.h. */ | |
17233 | #include <$ac_header> | |
17234 | _ACEOF | |
17235 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17236 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17237 | ac_status=$? | |
17238 | grep -v '^ *+' conftest.er1 >conftest.err | |
17239 | rm -f conftest.er1 | |
17240 | cat conftest.err >&5 | |
17241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17242 | (exit $ac_status); } >/dev/null; then | |
17243 | if test -s conftest.err; then | |
17244 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17245 | else | |
17246 | ac_cpp_err= | |
17247 | fi | |
17248 | else | |
17249 | ac_cpp_err=yes | |
17250 | fi | |
17251 | if test -z "$ac_cpp_err"; then | |
17252 | ac_header_preproc=yes | |
17253 | else | |
17254 | echo "$as_me: failed program was:" >&5 | |
17255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17256 | ||
17257 | ac_header_preproc=no | |
17258 | fi | |
17259 | rm -f conftest.err conftest.$ac_ext | |
17260 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17261 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17262 | ||
17263 | # So? What about this header? | |
17264 | case $ac_header_compiler:$ac_header_preproc in | |
17265 | yes:no ) | |
17266 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17267 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17269 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17270 | ( | |
17271 | cat <<\_ASBOX | |
17272 | ## ------------------------------------ ## | |
17273 | ## Report this to bug-autoconf@gnu.org. ## | |
17274 | ## ------------------------------------ ## | |
17275 | _ASBOX | |
17276 | ) | | |
17277 | sed "s/^/$as_me: WARNING: /" >&2 | |
17278 | ;; | |
17279 | no:yes ) | |
17280 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17281 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17282 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17283 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17284 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17285 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17286 | ( | |
17287 | cat <<\_ASBOX | |
17288 | ## ------------------------------------ ## | |
17289 | ## Report this to bug-autoconf@gnu.org. ## | |
17290 | ## ------------------------------------ ## | |
17291 | _ASBOX | |
17292 | ) | | |
17293 | sed "s/^/$as_me: WARNING: /" >&2 | |
17294 | ;; | |
17295 | esac | |
17296 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17297 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17300 | else | |
17301 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 17302 | fi |
e6cc62c6 VS |
17303 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17304 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17305 | ||
90dd450c | 17306 | fi |
e6cc62c6 VS |
17307 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17308 | cat >>confdefs.h <<_ACEOF | |
17309 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17310 | _ACEOF | |
17311 | ||
90dd450c | 17312 | fi |
e6cc62c6 | 17313 | |
21d1c967 | 17314 | done |
10f2d63a | 17315 | |
8284b0c5 | 17316 | |
21d1c967 GD |
17317 | if test "$ac_cv_header_iostream" = "yes" ; then |
17318 | : | |
17319 | else | |
e6cc62c6 | 17320 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17321 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17322 | _ACEOF |
788deba1 | 17323 | |
90dd450c | 17324 | fi |
ab9b9eab | 17325 | |
21d1c967 | 17326 | ac_ext=c |
21d1c967 | 17327 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17328 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17329 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17330 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17331 | |
21d1c967 | 17332 | fi |
ab9b9eab | 17333 | |
52127426 | 17334 | |
8284b0c5 | 17335 | |
e6cc62c6 VS |
17336 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17337 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17338 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17340 | else |
e6cc62c6 VS |
17341 | |
17342 | ||
17343 | ||
17344 | ac_ext=cc | |
5c6fa7d2 | 17345 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17346 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17347 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17348 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17349 | |
8284b0c5 | 17350 | |
e6cc62c6 VS |
17351 | cat >conftest.$ac_ext <<_ACEOF |
17352 | #line $LINENO "configure" | |
17353 | /* confdefs.h. */ | |
17354 | _ACEOF | |
17355 | cat confdefs.h >>conftest.$ac_ext | |
17356 | cat >>conftest.$ac_ext <<_ACEOF | |
17357 | /* end confdefs.h. */ | |
21d1c967 | 17358 | |
e6cc62c6 VS |
17359 | |
17360 | int | |
17361 | main () | |
17362 | { | |
21d1c967 GD |
17363 | |
17364 | bool b = true; | |
17365 | ||
17366 | return 0; | |
e6cc62c6 VS |
17367 | |
17368 | ; | |
17369 | return 0; | |
17370 | } | |
17371 | _ACEOF | |
17372 | rm -f conftest.$ac_objext | |
17373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17374 | (eval $ac_compile) 2>&5 | |
17375 | ac_status=$? | |
17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17377 | (exit $ac_status); } && | |
17378 | { ac_try='test -s conftest.$ac_objext' | |
17379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17380 | (eval $ac_try) 2>&5 | |
17381 | ac_status=$? | |
17382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17383 | (exit $ac_status); }; }; then | |
17384 | ||
21d1c967 | 17385 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17386 | |
698dcdb6 | 17387 | else |
e6cc62c6 VS |
17388 | echo "$as_me: failed program was:" >&5 |
17389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17390 | ||
17391 | ||
21d1c967 | 17392 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17393 | |
17394 | ||
698dcdb6 | 17395 | fi |
e6cc62c6 | 17396 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17397 | |
17398 | ac_ext=c | |
21d1c967 | 17399 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17403 | |
a0b9e27f | 17404 | |
e6cc62c6 VS |
17405 | fi |
17406 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17407 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17408 | |
17409 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17410 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17411 | #define HAVE_BOOL 1 |
e6cc62c6 | 17412 | _ACEOF |
ab9b9eab | 17413 | |
21d1c967 GD |
17414 | fi |
17415 | ||
52127426 | 17416 | |
8284b0c5 | 17417 | |
e6cc62c6 VS |
17418 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17419 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17420 | if test "${wx_cv_explicit+set}" = set; then | |
17421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17422 | else |
e6cc62c6 VS |
17423 | |
17424 | ||
17425 | ||
17426 | ac_ext=cc | |
5c6fa7d2 | 17427 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17428 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17429 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17430 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17431 | |
8284b0c5 | 17432 | |
e6cc62c6 VS |
17433 | cat >conftest.$ac_ext <<_ACEOF |
17434 | #line $LINENO "configure" | |
17435 | /* confdefs.h. */ | |
17436 | _ACEOF | |
17437 | cat confdefs.h >>conftest.$ac_ext | |
17438 | cat >>conftest.$ac_ext <<_ACEOF | |
17439 | /* end confdefs.h. */ | |
986ecc86 VZ |
17440 | |
17441 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17442 | |
17443 | int | |
17444 | main () | |
17445 | { | |
986ecc86 VZ |
17446 | |
17447 | return 0; | |
e6cc62c6 VS |
17448 | |
17449 | ; | |
17450 | return 0; | |
17451 | } | |
17452 | _ACEOF | |
17453 | rm -f conftest.$ac_objext | |
17454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17455 | (eval $ac_compile) 2>&5 | |
17456 | ac_status=$? | |
17457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17458 | (exit $ac_status); } && | |
17459 | { ac_try='test -s conftest.$ac_objext' | |
17460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17461 | (eval $ac_try) 2>&5 | |
17462 | ac_status=$? | |
17463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17464 | (exit $ac_status); }; }; then | |
17465 | ||
17466 | cat >conftest.$ac_ext <<_ACEOF | |
17467 | #line $LINENO "configure" | |
17468 | /* confdefs.h. */ | |
17469 | _ACEOF | |
17470 | cat confdefs.h >>conftest.$ac_ext | |
17471 | cat >>conftest.$ac_ext <<_ACEOF | |
17472 | /* end confdefs.h. */ | |
986ecc86 VZ |
17473 | |
17474 | class Foo { public: explicit Foo(int) {} }; | |
17475 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17476 | |
17477 | int | |
17478 | main () | |
17479 | { | |
986ecc86 VZ |
17480 | |
17481 | TakeFoo(17); | |
17482 | return 0; | |
e6cc62c6 VS |
17483 | |
17484 | ; | |
17485 | return 0; | |
17486 | } | |
17487 | _ACEOF | |
17488 | rm -f conftest.$ac_objext | |
17489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17490 | (eval $ac_compile) 2>&5 | |
17491 | ac_status=$? | |
17492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17493 | (exit $ac_status); } && | |
17494 | { ac_try='test -s conftest.$ac_objext' | |
17495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17496 | (eval $ac_try) 2>&5 | |
17497 | ac_status=$? | |
17498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17499 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
17500 | wx_cv_explicit=no |
17501 | else | |
e6cc62c6 VS |
17502 | echo "$as_me: failed program was:" >&5 |
17503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17504 | ||
17505 | wx_cv_explicit=yes | |
17506 | ||
986ecc86 | 17507 | fi |
e6cc62c6 VS |
17508 | rm -f conftest.$ac_objext conftest.$ac_ext |
17509 | ||
986ecc86 | 17510 | else |
e6cc62c6 VS |
17511 | echo "$as_me: failed program was:" >&5 |
17512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17513 | ||
17514 | wx_cv_explicit=no | |
17515 | ||
986ecc86 | 17516 | fi |
e6cc62c6 | 17517 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17518 | |
17519 | ac_ext=c | |
986ecc86 | 17520 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17524 | |
a0b9e27f | 17525 | |
e6cc62c6 VS |
17526 | fi |
17527 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17528 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17529 | |
17530 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17531 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17532 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17533 | _ACEOF |
986ecc86 VZ |
17534 | |
17535 | fi | |
17536 | ||
8284b0c5 | 17537 | |
e6cc62c6 VS |
17538 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17539 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17540 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17542 | else |
521196a2 | 17543 | |
521196a2 | 17544 | |
e6cc62c6 VS |
17545 | ac_ext=cc |
17546 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17550 | ||
17551 | cat >conftest.$ac_ext <<_ACEOF | |
17552 | #line $LINENO "configure" | |
17553 | /* confdefs.h. */ | |
17554 | _ACEOF | |
17555 | cat confdefs.h >>conftest.$ac_ext | |
17556 | cat >>conftest.$ac_ext <<_ACEOF | |
17557 | /* end confdefs.h. */ | |
17558 | ||
17559 | int | |
17560 | main () | |
17561 | { | |
521196a2 | 17562 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17563 | ; |
17564 | return 0; | |
17565 | } | |
17566 | _ACEOF | |
17567 | rm -f conftest.$ac_objext | |
17568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17569 | (eval $ac_compile) 2>&5 | |
17570 | ac_status=$? | |
17571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17572 | (exit $ac_status); } && | |
17573 | { ac_try='test -s conftest.$ac_objext' | |
17574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17575 | (eval $ac_try) 2>&5 | |
17576 | ac_status=$? | |
17577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17578 | (exit $ac_status); }; }; then | |
521196a2 MB |
17579 | ac_cv_cxx_const_cast=yes |
17580 | else | |
e6cc62c6 VS |
17581 | echo "$as_me: failed program was:" >&5 |
17582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17583 | ||
17584 | ac_cv_cxx_const_cast=no | |
521196a2 | 17585 | fi |
e6cc62c6 | 17586 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17587 | ac_ext=c |
521196a2 | 17588 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17592 | |
17593 | ||
17594 | fi | |
e6cc62c6 VS |
17595 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17596 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17597 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17598 | |
17599 | cat >>confdefs.h <<\_ACEOF | |
17600 | #define HAVE_CONST_CAST | |
17601 | _ACEOF | |
521196a2 MB |
17602 | |
17603 | fi | |
17604 | ||
17605 | ||
8284b0c5 | 17606 | |
21d1c967 GD |
17607 | SEARCH_INCLUDE="\ |
17608 | /usr/local/include \ | |
17609 | \ | |
17610 | /usr/Motif-1.2/include \ | |
17611 | /usr/Motif-2.1/include \ | |
17612 | \ | |
17613 | /usr/include/Motif1.2 \ | |
17614 | /opt/xpm/include/X11 \ | |
17615 | /opt/GBxpm/include/ \ | |
17616 | /opt/GBxpm/X11/include/ \ | |
17617 | \ | |
17618 | /usr/Motif1.2/include \ | |
17619 | /usr/dt/include \ | |
17620 | /usr/openwin/include \ | |
17621 | \ | |
17622 | /usr/include/Xm \ | |
17623 | \ | |
17624 | /usr/X11R6/include \ | |
17625 | /usr/X11R6.4/include \ | |
17626 | /usr/X11R5/include \ | |
17627 | /usr/X11R4/include \ | |
17628 | \ | |
17629 | /usr/include/X11R6 \ | |
17630 | /usr/include/X11R5 \ | |
17631 | /usr/include/X11R4 \ | |
17632 | \ | |
17633 | /usr/local/X11R6/include \ | |
17634 | /usr/local/X11R5/include \ | |
17635 | /usr/local/X11R4/include \ | |
17636 | \ | |
17637 | /usr/local/include/X11R6 \ | |
17638 | /usr/local/include/X11R5 \ | |
17639 | /usr/local/include/X11R4 \ | |
17640 | \ | |
17641 | /usr/X11/include \ | |
17642 | /usr/include/X11 \ | |
17643 | /usr/local/X11/include \ | |
17644 | /usr/local/include/X11 \ | |
17645 | \ | |
17646 | /usr/X386/include \ | |
17647 | /usr/x386/include \ | |
17648 | /usr/XFree86/include/X11 \ | |
17649 | \ | |
17650 | X:/XFree86/include \ | |
17651 | X:/XFree86/include/X11 \ | |
17652 | \ | |
17653 | /usr/include/gtk \ | |
17654 | /usr/local/include/gtk \ | |
17655 | /usr/include/glib \ | |
17656 | /usr/local/include/glib \ | |
17657 | \ | |
17658 | /usr/include/qt \ | |
17659 | /usr/local/include/qt \ | |
17660 | \ | |
17661 | /usr/include/windows \ | |
17662 | /usr/include/wine \ | |
17663 | /usr/local/include/wine \ | |
17664 | \ | |
17665 | /usr/unsupported/include \ | |
17666 | /usr/athena/include \ | |
17667 | /usr/local/x11r5/include \ | |
17668 | /usr/lpp/Xamples/include \ | |
17669 | \ | |
2b5f62a0 | 17670 | /usr/openwin/share/include" |
21d1c967 GD |
17671 | |
17672 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17673 | ||
8284b0c5 | 17674 | |
e6cc62c6 | 17675 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17676 | # This file is a shell script that caches the results of configure |
17677 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17678 | # scripts and configure runs, see configure's option --config-cache. |
17679 | # It is not useful on other systems. If it contains results you don't | |
17680 | # want to keep, you may remove or edit it. | |
21d1c967 | 17681 | # |
e6cc62c6 VS |
17682 | # config.status only pays attention to the cache file if you give it |
17683 | # the --recheck option to rerun configure. | |
21d1c967 | 17684 | # |
e6cc62c6 VS |
17685 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17686 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17687 | # following values. | |
17688 | ||
17689 | _ACEOF | |
17690 | ||
21d1c967 GD |
17691 | # The following way of writing the cache mishandles newlines in values, |
17692 | # but we know of no workaround that is simple, portable, and efficient. | |
17693 | # So, don't put newlines in cache variables' values. | |
17694 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17695 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17696 | { |
17697 | (set) 2>&1 | | |
17698 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17699 | *ac_space=\ *) | |
17700 | # `set' does not quote correctly, so add quotes (double-quote | |
17701 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17702 | sed -n \ | |
17703 | "s/'/'\\\\''/g; | |
17704 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17705 | ;; | |
17706 | *) | |
17707 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17708 | sed -n \ | |
17709 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17710 | ;; | |
17711 | esac; | |
17712 | } | | |
17713 | sed ' | |
17714 | t clear | |
17715 | : clear | |
17716 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17717 | t end | |
17718 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17719 | : end' >>confcache | |
17720 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 17721 | if test -w $cache_file; then |
e6cc62c6 VS |
17722 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17723 | cat confcache >$cache_file | |
21d1c967 GD |
17724 | else |
17725 | echo "not updating unwritable cache $cache_file" | |
17726 | fi | |
ab9b9eab | 17727 | fi |
21d1c967 | 17728 | rm -f confcache |
ab9b9eab | 17729 | |
fe0895cf | 17730 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
17731 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
17732 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
17733 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
17734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17735 | else | |
17736 | ||
17737 | cat >conftest.$ac_ext <<_ACEOF | |
17738 | #line $LINENO "configure" | |
17739 | /* confdefs.h. */ | |
17740 | _ACEOF | |
17741 | cat confdefs.h >>conftest.$ac_ext | |
17742 | cat >>conftest.$ac_ext <<_ACEOF | |
17743 | /* end confdefs.h. */ | |
21d1c967 | 17744 | #include <features.h> |
e6cc62c6 VS |
17745 | int |
17746 | main () | |
17747 | { | |
ab9b9eab | 17748 | |
21d1c967 GD |
17749 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
17750 | #error not glibc2.1 | |
17751 | #endif | |
e6cc62c6 VS |
17752 | |
17753 | ; | |
17754 | return 0; | |
17755 | } | |
17756 | _ACEOF | |
17757 | rm -f conftest.$ac_objext | |
17758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17759 | (eval $ac_compile) 2>&5 | |
17760 | ac_status=$? | |
17761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17762 | (exit $ac_status); } && | |
17763 | { ac_try='test -s conftest.$ac_objext' | |
17764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17765 | (eval $ac_try) 2>&5 | |
17766 | ac_status=$? | |
17767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17768 | (exit $ac_status); }; }; then | |
17769 | ||
21d1c967 | 17770 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 17771 | |
698dcdb6 | 17772 | else |
e6cc62c6 VS |
17773 | echo "$as_me: failed program was:" >&5 |
17774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17775 | ||
17776 | ||
21d1c967 | 17777 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
17778 | |
17779 | ||
247f5006 | 17780 | fi |
e6cc62c6 | 17781 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17782 | |
e6cc62c6 VS |
17783 | fi |
17784 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
17785 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 17786 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 17787 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17788 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 17789 | _ACEOF |
1e487827 | 17790 | |
90dd450c | 17791 | fi |
ab9b9eab VZ |
17792 | fi |
17793 | ||
5c0a20c3 VZ |
17794 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
17795 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 17796 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 17797 | #define _GNU_SOURCE 1 |
e6cc62c6 | 17798 | _ACEOF |
5c0a20c3 VZ |
17799 | |
17800 | fi | |
17801 | fi | |
17802 | ||
8284b0c5 MB |
17803 | |
17804 | ||
21d1c967 GD |
17805 | REGEX_INCLUDE= |
17806 | if test "$wxUSE_REGEX" != "no"; then | |
e6cc62c6 | 17807 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17808 | #define wxUSE_REGEX 1 |
e6cc62c6 | 17809 | _ACEOF |
698dcdb6 | 17810 | |
8284b0c5 | 17811 | |
21d1c967 | 17812 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
17813 | if test "${ac_cv_header_regex_h+set}" = set; then |
17814 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17815 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17816 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17818 | fi | |
17819 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
17820 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17821 | else | |
17822 | # Is the header compilable? | |
17823 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
17824 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
17825 | cat >conftest.$ac_ext <<_ACEOF | |
17826 | #line $LINENO "configure" | |
17827 | /* confdefs.h. */ | |
17828 | _ACEOF | |
17829 | cat confdefs.h >>conftest.$ac_ext | |
17830 | cat >>conftest.$ac_ext <<_ACEOF | |
17831 | /* end confdefs.h. */ | |
17832 | $ac_includes_default | |
247f5006 | 17833 | #include <regex.h> |
e6cc62c6 VS |
17834 | _ACEOF |
17835 | rm -f conftest.$ac_objext | |
17836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17837 | (eval $ac_compile) 2>&5 | |
17838 | ac_status=$? | |
17839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17840 | (exit $ac_status); } && | |
17841 | { ac_try='test -s conftest.$ac_objext' | |
17842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17843 | (eval $ac_try) 2>&5 | |
17844 | ac_status=$? | |
17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17846 | (exit $ac_status); }; }; then | |
17847 | ac_header_compiler=yes | |
17848 | else | |
17849 | echo "$as_me: failed program was:" >&5 | |
17850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17851 | ||
17852 | ac_header_compiler=no | |
17853 | fi | |
17854 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17855 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17856 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17857 | ||
17858 | # Is the header present? | |
17859 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
17860 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
17861 | cat >conftest.$ac_ext <<_ACEOF | |
17862 | #line $LINENO "configure" | |
17863 | /* confdefs.h. */ | |
17864 | _ACEOF | |
17865 | cat confdefs.h >>conftest.$ac_ext | |
17866 | cat >>conftest.$ac_ext <<_ACEOF | |
17867 | /* end confdefs.h. */ | |
17868 | #include <regex.h> | |
17869 | _ACEOF | |
17870 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17871 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17872 | ac_status=$? | |
17873 | grep -v '^ *+' conftest.er1 >conftest.err | |
17874 | rm -f conftest.er1 | |
17875 | cat conftest.err >&5 | |
17876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17877 | (exit $ac_status); } >/dev/null; then | |
17878 | if test -s conftest.err; then | |
17879 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17880 | else | |
17881 | ac_cpp_err= | |
17882 | fi | |
17883 | else | |
17884 | ac_cpp_err=yes | |
17885 | fi | |
17886 | if test -z "$ac_cpp_err"; then | |
17887 | ac_header_preproc=yes | |
17888 | else | |
17889 | echo "$as_me: failed program was:" >&5 | |
17890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17891 | ||
17892 | ac_header_preproc=no | |
17893 | fi | |
17894 | rm -f conftest.err conftest.$ac_ext | |
17895 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17896 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17897 | ||
17898 | # So? What about this header? | |
17899 | case $ac_header_compiler:$ac_header_preproc in | |
17900 | yes:no ) | |
17901 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17902 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17903 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17904 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17905 | ( | |
17906 | cat <<\_ASBOX | |
17907 | ## ------------------------------------ ## | |
17908 | ## Report this to bug-autoconf@gnu.org. ## | |
17909 | ## ------------------------------------ ## | |
17910 | _ASBOX | |
17911 | ) | | |
17912 | sed "s/^/$as_me: WARNING: /" >&2 | |
17913 | ;; | |
17914 | no:yes ) | |
17915 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
17916 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
17917 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
17918 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
17919 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
17920 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
17921 | ( | |
17922 | cat <<\_ASBOX | |
17923 | ## ------------------------------------ ## | |
17924 | ## Report this to bug-autoconf@gnu.org. ## | |
17925 | ## ------------------------------------ ## | |
17926 | _ASBOX | |
17927 | ) | | |
17928 | sed "s/^/$as_me: WARNING: /" >&2 | |
17929 | ;; | |
17930 | esac | |
17931 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17932 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17933 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17935 | else | |
17936 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 17937 | fi |
e6cc62c6 VS |
17938 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
17939 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17940 | ||
698dcdb6 | 17941 | fi |
e6cc62c6 VS |
17942 | if test $ac_cv_header_regex_h = yes; then |
17943 | ||
17944 | for ac_func in regcomp | |
21d1c967 | 17945 | do |
e6cc62c6 VS |
17946 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17947 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17948 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17949 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17951 | else | |
17952 | cat >conftest.$ac_ext <<_ACEOF | |
17953 | #line $LINENO "configure" | |
17954 | /* confdefs.h. */ | |
17955 | _ACEOF | |
17956 | cat confdefs.h >>conftest.$ac_ext | |
17957 | cat >>conftest.$ac_ext <<_ACEOF | |
17958 | /* end confdefs.h. */ | |
a0b9e27f | 17959 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
17960 | which can conflict with char $ac_func (); below. |
17961 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17962 | <limits.h> exists even on freestanding compilers. */ | |
17963 | #ifdef __STDC__ | |
17964 | # include <limits.h> | |
17965 | #else | |
17966 | # include <assert.h> | |
17967 | #endif | |
21d1c967 | 17968 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
17969 | #ifdef __cplusplus |
17970 | extern "C" | |
17971 | { | |
17972 | #endif | |
21d1c967 | 17973 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
17974 | builtin and then its argument prototype would still apply. */ |
17975 | char $ac_func (); | |
21d1c967 GD |
17976 | /* The GNU C library defines this for functions which it implements |
17977 | to always fail with ENOSYS. Some functions are actually named | |
17978 | something starting with __ and the normal name is an alias. */ | |
17979 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17980 | choke me | |
17981 | #else | |
e6cc62c6 VS |
17982 | char (*f) () = $ac_func; |
17983 | #endif | |
17984 | #ifdef __cplusplus | |
17985 | } | |
21d1c967 | 17986 | #endif |
90dd450c | 17987 | |
e6cc62c6 VS |
17988 | int |
17989 | main () | |
17990 | { | |
17991 | return f != $ac_func; | |
17992 | ; | |
17993 | return 0; | |
17994 | } | |
17995 | _ACEOF | |
17996 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17998 | (eval $ac_link) 2>&5 | |
17999 | ac_status=$? | |
18000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18001 | (exit $ac_status); } && | |
18002 | { ac_try='test -s conftest$ac_exeext' | |
18003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18004 | (eval $ac_try) 2>&5 | |
18005 | ac_status=$? | |
18006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18007 | (exit $ac_status); }; }; then | |
18008 | eval "$as_ac_var=yes" | |
18009 | else | |
18010 | echo "$as_me: failed program was:" >&5 | |
18011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18012 | ||
18013 | eval "$as_ac_var=no" | |
18014 | fi | |
18015 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18016 | fi | |
18017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18018 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18019 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18020 | cat >>confdefs.h <<_ACEOF | |
18021 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18022 | _ACEOF | |
5c6fa7d2 | 18023 | |
698dcdb6 | 18024 | fi |
21d1c967 GD |
18025 | done |
18026 | ||
ab9b9eab VZ |
18027 | fi |
18028 | ||
8284b0c5 | 18029 | |
e6cc62c6 | 18030 | |
21d1c967 GD |
18031 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18032 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18033 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18034 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18035 | { (exit 1); exit 1; }; } | |
21d1c967 | 18036 | else |
e6cc62c6 VS |
18037 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18038 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18039 | wxUSE_REGEX=builtin |
18040 | fi | |
18041 | else | |
18042 | wxUSE_REGEX=sys | |
18043 | fi | |
ab9b9eab | 18044 | fi |
90dd450c | 18045 | |
21d1c967 GD |
18046 | if test "$wxUSE_REGEX" = "builtin" ; then |
18047 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 18048 | fi |
21d1c967 | 18049 | fi |
90dd450c | 18050 | |
8284b0c5 | 18051 | |
21d1c967 GD |
18052 | ZLIB_INCLUDE= |
18053 | ZLIB_LINK= | |
18054 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18055 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18056 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18057 | _ACEOF |
21d1c967 | 18058 | |
8284b0c5 | 18059 | |
21d1c967 | 18060 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18061 | if test "$USE_DARWIN" = 1; then |
18062 | system_zlib_h_ok="yes" | |
18063 | else | |
e6cc62c6 VS |
18064 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18065 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18066 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18068 | else |
18069 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18070 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18071 | |
d643b80e | 18072 | else |
e6cc62c6 VS |
18073 | cat >conftest.$ac_ext <<_ACEOF |
18074 | #line $LINENO "configure" | |
18075 | /* confdefs.h. */ | |
18076 | _ACEOF | |
18077 | cat confdefs.h >>conftest.$ac_ext | |
18078 | cat >>conftest.$ac_ext <<_ACEOF | |
18079 | /* end confdefs.h. */ | |
18080 | ||
ef33c576 | 18081 | #include <zlib.h> |
d775acfa | 18082 | #include <stdio.h> |
d643b80e | 18083 | |
d775acfa VZ |
18084 | int main() |
18085 | { | |
18086 | FILE *f=fopen("conftestval", "w"); | |
18087 | if (!f) exit(1); | |
18088 | fprintf(f, "%s", | |
18089 | ZLIB_VERSION[0] == '1' && | |
18090 | (ZLIB_VERSION[2] > '1' || | |
18091 | (ZLIB_VERSION[2] == '1' && | |
18092 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18093 | exit(0); | |
18094 | } | |
e6cc62c6 VS |
18095 | |
18096 | _ACEOF | |
18097 | rm -f conftest$ac_exeext | |
18098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18099 | (eval $ac_link) 2>&5 | |
18100 | ac_status=$? | |
18101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18102 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18104 | (eval $ac_try) 2>&5 | |
18105 | ac_status=$? | |
18106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18107 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18108 | ac_cv_header_zlib_h=`cat conftestval` |
18109 | else | |
e6cc62c6 VS |
18110 | echo "$as_me: program exited with status $ac_status" >&5 |
18111 | echo "$as_me: failed program was:" >&5 | |
18112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18113 | ||
18114 | ( exit $ac_status ) | |
18115 | ac_cv_header_zlib_h=no | |
d643b80e | 18116 | fi |
e6cc62c6 | 18117 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18118 | fi |
18119 | ||
d643b80e | 18120 | fi |
e6cc62c6 VS |
18121 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18122 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18123 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18124 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18125 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18126 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18128 | fi | |
18129 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18130 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18131 | else |
e6cc62c6 VS |
18132 | # Is the header compilable? |
18133 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18134 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18135 | cat >conftest.$ac_ext <<_ACEOF | |
18136 | #line $LINENO "configure" | |
18137 | /* confdefs.h. */ | |
18138 | _ACEOF | |
18139 | cat confdefs.h >>conftest.$ac_ext | |
18140 | cat >>conftest.$ac_ext <<_ACEOF | |
18141 | /* end confdefs.h. */ | |
18142 | $ac_includes_default | |
89e6bf6d | 18143 | #include <zlib.h> |
e6cc62c6 VS |
18144 | _ACEOF |
18145 | rm -f conftest.$ac_objext | |
18146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18147 | (eval $ac_compile) 2>&5 | |
18148 | ac_status=$? | |
18149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18150 | (exit $ac_status); } && | |
18151 | { ac_try='test -s conftest.$ac_objext' | |
18152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18153 | (eval $ac_try) 2>&5 | |
18154 | ac_status=$? | |
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18156 | (exit $ac_status); }; }; then | |
18157 | ac_header_compiler=yes | |
18158 | else | |
18159 | echo "$as_me: failed program was:" >&5 | |
18160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18161 | ||
18162 | ac_header_compiler=no | |
18163 | fi | |
18164 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18165 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18166 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18167 | ||
18168 | # Is the header present? | |
18169 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18170 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18171 | cat >conftest.$ac_ext <<_ACEOF | |
18172 | #line $LINENO "configure" | |
18173 | /* confdefs.h. */ | |
18174 | _ACEOF | |
18175 | cat confdefs.h >>conftest.$ac_ext | |
18176 | cat >>conftest.$ac_ext <<_ACEOF | |
18177 | /* end confdefs.h. */ | |
18178 | #include <zlib.h> | |
18179 | _ACEOF | |
18180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18182 | ac_status=$? | |
18183 | grep -v '^ *+' conftest.er1 >conftest.err | |
18184 | rm -f conftest.er1 | |
18185 | cat conftest.err >&5 | |
18186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18187 | (exit $ac_status); } >/dev/null; then | |
18188 | if test -s conftest.err; then | |
18189 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18190 | else | |
18191 | ac_cpp_err= | |
18192 | fi | |
18193 | else | |
18194 | ac_cpp_err=yes | |
18195 | fi | |
18196 | if test -z "$ac_cpp_err"; then | |
18197 | ac_header_preproc=yes | |
18198 | else | |
18199 | echo "$as_me: failed program was:" >&5 | |
18200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18201 | ||
18202 | ac_header_preproc=no | |
18203 | fi | |
18204 | rm -f conftest.err conftest.$ac_ext | |
18205 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18206 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18207 | ||
18208 | # So? What about this header? | |
18209 | case $ac_header_compiler:$ac_header_preproc in | |
18210 | yes:no ) | |
18211 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18212 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18213 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18214 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18215 | ( | |
18216 | cat <<\_ASBOX | |
18217 | ## ------------------------------------ ## | |
18218 | ## Report this to bug-autoconf@gnu.org. ## | |
18219 | ## ------------------------------------ ## | |
18220 | _ASBOX | |
18221 | ) | | |
18222 | sed "s/^/$as_me: WARNING: /" >&2 | |
18223 | ;; | |
18224 | no:yes ) | |
18225 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18226 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18227 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18228 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18229 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18230 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18231 | ( | |
18232 | cat <<\_ASBOX | |
18233 | ## ------------------------------------ ## | |
18234 | ## Report this to bug-autoconf@gnu.org. ## | |
18235 | ## ------------------------------------ ## | |
18236 | _ASBOX | |
18237 | ) | | |
18238 | sed "s/^/$as_me: WARNING: /" >&2 | |
18239 | ;; | |
18240 | esac | |
18241 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18242 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18243 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18245 | else |
e6cc62c6 VS |
18246 | ac_cv_header_zlib_h=$ac_header_preproc |
18247 | fi | |
18248 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18249 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18250 | ||
89e6bf6d VZ |
18251 | fi |
18252 | ||
d643b80e | 18253 | |
e6cc62c6 | 18254 | |
d775acfa VZ |
18255 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18256 | fi | |
18257 | ||
18258 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18259 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18260 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18261 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18263 | else |
e6cc62c6 | 18264 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18265 | LIBS="-lz $LIBS" |
e6cc62c6 VS |
18266 | cat >conftest.$ac_ext <<_ACEOF |
18267 | #line $LINENO "configure" | |
18268 | /* confdefs.h. */ | |
18269 | _ACEOF | |
18270 | cat confdefs.h >>conftest.$ac_ext | |
18271 | cat >>conftest.$ac_ext <<_ACEOF | |
18272 | /* end confdefs.h. */ | |
18273 | ||
21d1c967 | 18274 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18275 | #ifdef __cplusplus |
18276 | extern "C" | |
18277 | #endif | |
21d1c967 | 18278 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18279 | builtin and then its argument prototype would still apply. */ |
18280 | char deflate (); | |
18281 | int | |
18282 | main () | |
18283 | { | |
18284 | deflate (); | |
18285 | ; | |
18286 | return 0; | |
18287 | } | |
18288 | _ACEOF | |
18289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18291 | (eval $ac_link) 2>&5 | |
18292 | ac_status=$? | |
18293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18294 | (exit $ac_status); } && | |
18295 | { ac_try='test -s conftest$ac_exeext' | |
18296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18297 | (eval $ac_try) 2>&5 | |
18298 | ac_status=$? | |
18299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18300 | (exit $ac_status); }; }; then | |
18301 | ac_cv_lib_z_deflate=yes | |
18302 | else | |
18303 | echo "$as_me: failed program was:" >&5 | |
18304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18305 | ||
18306 | ac_cv_lib_z_deflate=no | |
18307 | fi | |
18308 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18309 | LIBS=$ac_check_lib_save_LIBS | |
18310 | fi | |
18311 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18312 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18313 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18314 | ZLIB_LINK=" -lz" |
a0b9e27f | 18315 | fi |
698dcdb6 | 18316 | |
d643b80e | 18317 | fi |
247f5006 | 18318 | |
21d1c967 GD |
18319 | if test "x$ZLIB_LINK" = "x" ; then |
18320 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18321 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18322 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18323 | { (exit 1); exit 1; }; } | |
21d1c967 | 18324 | else |
e6cc62c6 VS |
18325 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18326 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18327 | wxUSE_ZLIB=builtin |
18328 | fi | |
18329 | else | |
18330 | wxUSE_ZLIB=sys | |
18331 | fi | |
18332 | fi | |
18333 | ||
18334 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18335 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18336 | fi | |
ab9b9eab VZ |
18337 | fi |
18338 | ||
8284b0c5 | 18339 | |
21d1c967 GD |
18340 | PNG_INCLUDE= |
18341 | PNG_LINK= | |
18342 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18343 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18344 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18345 | _ACEOF |
90dd450c | 18346 | |
8284b0c5 | 18347 | |
21d1c967 | 18348 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18349 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18350 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18351 | wxUSE_LIBPNG=sys |
18352 | fi | |
90dd450c | 18353 | |
21d1c967 | 18354 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18355 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18356 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18357 | wxUSE_LIBPNG=builtin |
18358 | fi | |
18359 | ||
18360 | if test "$wxUSE_MGL" != 1 ; then | |
18361 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18362 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18363 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18364 | if test "${ac_cv_header_png_h+set}" = set; then | |
18365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18366 | else |
18367 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18368 | unset ac_cv_header_png_h |
e6cc62c6 | 18369 | |
5d3f766d | 18370 | else |
e6cc62c6 VS |
18371 | cat >conftest.$ac_ext <<_ACEOF |
18372 | #line $LINENO "configure" | |
18373 | /* confdefs.h. */ | |
18374 | _ACEOF | |
18375 | cat confdefs.h >>conftest.$ac_ext | |
18376 | cat >>conftest.$ac_ext <<_ACEOF | |
18377 | /* end confdefs.h. */ | |
18378 | ||
ef33c576 | 18379 | #include <png.h> |
5d3f766d VZ |
18380 | #include <stdio.h> |
18381 | ||
18382 | int main() | |
18383 | { | |
18384 | FILE *f=fopen("conftestval", "w"); | |
18385 | if (!f) exit(1); | |
18386 | fprintf(f, "%s", | |
18387 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18388 | exit(0); | |
18389 | } | |
e6cc62c6 VS |
18390 | |
18391 | _ACEOF | |
18392 | rm -f conftest$ac_exeext | |
18393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18394 | (eval $ac_link) 2>&5 | |
18395 | ac_status=$? | |
18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18399 | (eval $ac_try) 2>&5 | |
18400 | ac_status=$? | |
18401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18402 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18403 | ac_cv_header_png_h=`cat conftestval` |
18404 | else | |
e6cc62c6 VS |
18405 | echo "$as_me: program exited with status $ac_status" >&5 |
18406 | echo "$as_me: failed program was:" >&5 | |
18407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18408 | ||
18409 | ( exit $ac_status ) | |
18410 | ac_cv_header_png_h=no | |
5d3f766d | 18411 | fi |
e6cc62c6 | 18412 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18413 | fi |
18414 | ||
5d3f766d | 18415 | fi |
e6cc62c6 VS |
18416 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18417 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18418 | if test "${ac_cv_header_png_h+set}" = set; then | |
18419 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18420 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18421 | if test "${ac_cv_header_png_h+set}" = set; then | |
18422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18423 | fi | |
18424 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18425 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18426 | else |
e6cc62c6 VS |
18427 | # Is the header compilable? |
18428 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18429 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18430 | cat >conftest.$ac_ext <<_ACEOF | |
18431 | #line $LINENO "configure" | |
18432 | /* confdefs.h. */ | |
18433 | _ACEOF | |
18434 | cat confdefs.h >>conftest.$ac_ext | |
18435 | cat >>conftest.$ac_ext <<_ACEOF | |
18436 | /* end confdefs.h. */ | |
18437 | $ac_includes_default | |
89e6bf6d | 18438 | #include <png.h> |
e6cc62c6 VS |
18439 | _ACEOF |
18440 | rm -f conftest.$ac_objext | |
18441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18442 | (eval $ac_compile) 2>&5 | |
18443 | ac_status=$? | |
18444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18445 | (exit $ac_status); } && | |
18446 | { ac_try='test -s conftest.$ac_objext' | |
18447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18448 | (eval $ac_try) 2>&5 | |
18449 | ac_status=$? | |
18450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18451 | (exit $ac_status); }; }; then | |
18452 | ac_header_compiler=yes | |
18453 | else | |
18454 | echo "$as_me: failed program was:" >&5 | |
18455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18456 | ||
18457 | ac_header_compiler=no | |
18458 | fi | |
18459 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18460 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18461 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18462 | ||
18463 | # Is the header present? | |
18464 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18465 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18466 | cat >conftest.$ac_ext <<_ACEOF | |
18467 | #line $LINENO "configure" | |
18468 | /* confdefs.h. */ | |
18469 | _ACEOF | |
18470 | cat confdefs.h >>conftest.$ac_ext | |
18471 | cat >>conftest.$ac_ext <<_ACEOF | |
18472 | /* end confdefs.h. */ | |
18473 | #include <png.h> | |
18474 | _ACEOF | |
18475 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18476 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18477 | ac_status=$? | |
18478 | grep -v '^ *+' conftest.er1 >conftest.err | |
18479 | rm -f conftest.er1 | |
18480 | cat conftest.err >&5 | |
18481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18482 | (exit $ac_status); } >/dev/null; then | |
18483 | if test -s conftest.err; then | |
18484 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18485 | else | |
18486 | ac_cpp_err= | |
18487 | fi | |
18488 | else | |
18489 | ac_cpp_err=yes | |
18490 | fi | |
18491 | if test -z "$ac_cpp_err"; then | |
18492 | ac_header_preproc=yes | |
18493 | else | |
18494 | echo "$as_me: failed program was:" >&5 | |
18495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18496 | ||
18497 | ac_header_preproc=no | |
18498 | fi | |
18499 | rm -f conftest.err conftest.$ac_ext | |
18500 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18501 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18502 | ||
18503 | # So? What about this header? | |
18504 | case $ac_header_compiler:$ac_header_preproc in | |
18505 | yes:no ) | |
18506 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18507 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18508 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18509 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18510 | ( | |
18511 | cat <<\_ASBOX | |
18512 | ## ------------------------------------ ## | |
18513 | ## Report this to bug-autoconf@gnu.org. ## | |
18514 | ## ------------------------------------ ## | |
18515 | _ASBOX | |
18516 | ) | | |
18517 | sed "s/^/$as_me: WARNING: /" >&2 | |
18518 | ;; | |
18519 | no:yes ) | |
18520 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18521 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18522 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18523 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18524 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18525 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18526 | ( | |
18527 | cat <<\_ASBOX | |
18528 | ## ------------------------------------ ## | |
18529 | ## Report this to bug-autoconf@gnu.org. ## | |
18530 | ## ------------------------------------ ## | |
18531 | _ASBOX | |
18532 | ) | | |
18533 | sed "s/^/$as_me: WARNING: /" >&2 | |
18534 | ;; | |
18535 | esac | |
18536 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18537 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18538 | if test "${ac_cv_header_png_h+set}" = set; then | |
18539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18540 | else |
e6cc62c6 VS |
18541 | ac_cv_header_png_h=$ac_header_preproc |
18542 | fi | |
18543 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18544 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18545 | ||
89e6bf6d VZ |
18546 | fi |
18547 | ||
5d3f766d | 18548 | |
e6cc62c6 | 18549 | |
5d3f766d | 18550 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18551 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18552 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18553 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18555 | else |
e6cc62c6 | 18556 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18557 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 VS |
18558 | cat >conftest.$ac_ext <<_ACEOF |
18559 | #line $LINENO "configure" | |
18560 | /* confdefs.h. */ | |
18561 | _ACEOF | |
18562 | cat confdefs.h >>conftest.$ac_ext | |
18563 | cat >>conftest.$ac_ext <<_ACEOF | |
18564 | /* end confdefs.h. */ | |
18565 | ||
21d1c967 | 18566 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18567 | #ifdef __cplusplus |
18568 | extern "C" | |
18569 | #endif | |
21d1c967 | 18570 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18571 | builtin and then its argument prototype would still apply. */ |
18572 | char png_check_sig (); | |
18573 | int | |
18574 | main () | |
18575 | { | |
18576 | png_check_sig (); | |
18577 | ; | |
18578 | return 0; | |
18579 | } | |
18580 | _ACEOF | |
18581 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18583 | (eval $ac_link) 2>&5 | |
18584 | ac_status=$? | |
18585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18586 | (exit $ac_status); } && | |
18587 | { ac_try='test -s conftest$ac_exeext' | |
18588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18589 | (eval $ac_try) 2>&5 | |
18590 | ac_status=$? | |
18591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18592 | (exit $ac_status); }; }; then | |
18593 | ac_cv_lib_png_png_check_sig=yes | |
18594 | else | |
18595 | echo "$as_me: failed program was:" >&5 | |
18596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18597 | ||
18598 | ac_cv_lib_png_png_check_sig=no | |
18599 | fi | |
18600 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18601 | LIBS=$ac_check_lib_save_LIBS | |
18602 | fi | |
18603 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18604 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18605 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18606 | PNG_LINK=" -lpng" |
a0b9e27f | 18607 | fi |
90dd450c | 18608 | |
5d3f766d | 18609 | fi |
247f5006 | 18610 | |
21d1c967 GD |
18611 | if test "x$PNG_LINK" = "x" ; then |
18612 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18613 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18614 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18615 | { (exit 1); exit 1; }; } | |
21d1c967 | 18616 | else |
e6cc62c6 VS |
18617 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18618 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18619 | wxUSE_LIBPNG=builtin |
18620 | fi | |
18621 | else | |
2b5f62a0 | 18622 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18623 | fi |
18624 | fi | |
18625 | fi | |
90dd450c | 18626 | |
21d1c967 GD |
18627 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
18628 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18629 | fi | |
90dd450c | 18630 | |
21d1c967 | 18631 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18632 | fi |
18633 | ||
8284b0c5 | 18634 | |
21d1c967 GD |
18635 | JPEG_INCLUDE= |
18636 | JPEG_LINK= | |
18637 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18638 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18639 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18640 | _ACEOF |
90dd450c | 18641 | |
8284b0c5 | 18642 | |
21d1c967 | 18643 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18644 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18645 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18646 | wxUSE_LIBJPEG=sys |
18647 | fi | |
90dd450c | 18648 | |
21d1c967 GD |
18649 | if test "$wxUSE_MGL" != 1 ; then |
18650 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18651 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18652 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18653 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18655 | else | |
18656 | cat >conftest.$ac_ext <<_ACEOF | |
18657 | #line $LINENO "configure" | |
18658 | /* confdefs.h. */ | |
18659 | _ACEOF | |
18660 | cat confdefs.h >>conftest.$ac_ext | |
18661 | cat >>conftest.$ac_ext <<_ACEOF | |
18662 | /* end confdefs.h. */ | |
90dd450c | 18663 | |
21d1c967 GD |
18664 | #undef HAVE_STDLIB_H |
18665 | #include <stdio.h> | |
18666 | #include <jpeglib.h> | |
90dd450c | 18667 | |
e6cc62c6 VS |
18668 | int |
18669 | main () | |
18670 | { | |
18671 | ||
18672 | ||
18673 | ; | |
18674 | return 0; | |
18675 | } | |
18676 | _ACEOF | |
18677 | rm -f conftest.$ac_objext | |
18678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18679 | (eval $ac_compile) 2>&5 | |
18680 | ac_status=$? | |
18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18682 | (exit $ac_status); } && | |
18683 | { ac_try='test -s conftest.$ac_objext' | |
18684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18685 | (eval $ac_try) 2>&5 | |
18686 | ac_status=$? | |
18687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18688 | (exit $ac_status); }; }; then | |
21d1c967 | 18689 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18690 | else |
e6cc62c6 VS |
18691 | echo "$as_me: failed program was:" >&5 |
18692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18693 | ||
18694 | ac_cv_header_jpeglib_h=no | |
18695 | ||
90dd450c | 18696 | fi |
e6cc62c6 VS |
18697 | rm -f conftest.$ac_objext conftest.$ac_ext |
18698 | ||
90dd450c VZ |
18699 | fi |
18700 | ||
e6cc62c6 VS |
18701 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18702 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18703 | |
21d1c967 | 18704 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18705 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18706 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18707 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18709 | else |
e6cc62c6 | 18710 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18711 | LIBS="-ljpeg $LIBS" |
e6cc62c6 VS |
18712 | cat >conftest.$ac_ext <<_ACEOF |
18713 | #line $LINENO "configure" | |
18714 | /* confdefs.h. */ | |
18715 | _ACEOF | |
18716 | cat confdefs.h >>conftest.$ac_ext | |
18717 | cat >>conftest.$ac_ext <<_ACEOF | |
18718 | /* end confdefs.h. */ | |
18719 | ||
21d1c967 | 18720 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18721 | #ifdef __cplusplus |
18722 | extern "C" | |
18723 | #endif | |
21d1c967 | 18724 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18725 | builtin and then its argument prototype would still apply. */ |
18726 | char jpeg_read_header (); | |
18727 | int | |
18728 | main () | |
18729 | { | |
18730 | jpeg_read_header (); | |
18731 | ; | |
18732 | return 0; | |
18733 | } | |
18734 | _ACEOF | |
18735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18737 | (eval $ac_link) 2>&5 | |
18738 | ac_status=$? | |
18739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18740 | (exit $ac_status); } && | |
18741 | { ac_try='test -s conftest$ac_exeext' | |
18742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18743 | (eval $ac_try) 2>&5 | |
18744 | ac_status=$? | |
18745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18746 | (exit $ac_status); }; }; then | |
18747 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
18748 | else | |
18749 | echo "$as_me: failed program was:" >&5 | |
18750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18751 | ||
18752 | ac_cv_lib_jpeg_jpeg_read_header=no | |
18753 | fi | |
18754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18755 | LIBS=$ac_check_lib_save_LIBS | |
18756 | fi | |
18757 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
18758 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
18759 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 18760 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
18761 | fi |
18762 | ||
21d1c967 | 18763 | fi |
90dd450c | 18764 | |
21d1c967 GD |
18765 | if test "x$JPEG_LINK" = "x" ; then |
18766 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
18767 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
18768 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
18769 | { (exit 1); exit 1; }; } | |
21d1c967 | 18770 | else |
e6cc62c6 VS |
18771 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
18772 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18773 | wxUSE_LIBJPEG=builtin |
18774 | fi | |
18775 | else | |
18776 | wxUSE_LIBJPEG=sys | |
18777 | fi | |
18778 | fi | |
18779 | fi | |
90dd450c | 18780 | |
21d1c967 GD |
18781 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
18782 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
18783 | fi | |
18784 | fi | |
90dd450c | 18785 | |
8284b0c5 | 18786 | |
21d1c967 GD |
18787 | TIFF_INCLUDE= |
18788 | TIFF_LINK= | |
2b5f62a0 | 18789 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 18790 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 18791 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18792 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 18793 | _ACEOF |
21d1c967 | 18794 | |
8284b0c5 | 18795 | |
21d1c967 | 18796 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
18797 | if test "$wxUSE_LIBJPEG" = "sys"; then |
18798 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
18799 | fi | |
18800 | if test "$wxUSE_ZLIB" = "sys"; then | |
18801 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
18802 | fi | |
e6cc62c6 VS |
18803 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
18804 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18805 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18806 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18808 | fi | |
18809 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
18810 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18811 | else | |
18812 | # Is the header compilable? | |
18813 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
18814 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
18815 | cat >conftest.$ac_ext <<_ACEOF | |
18816 | #line $LINENO "configure" | |
18817 | /* confdefs.h. */ | |
18818 | _ACEOF | |
18819 | cat confdefs.h >>conftest.$ac_ext | |
18820 | cat >>conftest.$ac_ext <<_ACEOF | |
18821 | /* end confdefs.h. */ | |
18822 | $ac_includes_default | |
247f5006 | 18823 | #include <tiffio.h> |
e6cc62c6 VS |
18824 | _ACEOF |
18825 | rm -f conftest.$ac_objext | |
18826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18827 | (eval $ac_compile) 2>&5 | |
18828 | ac_status=$? | |
18829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18830 | (exit $ac_status); } && | |
18831 | { ac_try='test -s conftest.$ac_objext' | |
18832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18833 | (eval $ac_try) 2>&5 | |
18834 | ac_status=$? | |
18835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18836 | (exit $ac_status); }; }; then | |
18837 | ac_header_compiler=yes | |
18838 | else | |
18839 | echo "$as_me: failed program was:" >&5 | |
18840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18841 | ||
18842 | ac_header_compiler=no | |
18843 | fi | |
18844 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18845 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18846 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18847 | ||
18848 | # Is the header present? | |
18849 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
18850 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
18851 | cat >conftest.$ac_ext <<_ACEOF | |
18852 | #line $LINENO "configure" | |
18853 | /* confdefs.h. */ | |
18854 | _ACEOF | |
18855 | cat confdefs.h >>conftest.$ac_ext | |
18856 | cat >>conftest.$ac_ext <<_ACEOF | |
18857 | /* end confdefs.h. */ | |
18858 | #include <tiffio.h> | |
18859 | _ACEOF | |
18860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18862 | ac_status=$? | |
18863 | grep -v '^ *+' conftest.er1 >conftest.err | |
18864 | rm -f conftest.er1 | |
18865 | cat conftest.err >&5 | |
18866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18867 | (exit $ac_status); } >/dev/null; then | |
18868 | if test -s conftest.err; then | |
18869 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18870 | else | |
18871 | ac_cpp_err= | |
18872 | fi | |
18873 | else | |
18874 | ac_cpp_err=yes | |
18875 | fi | |
18876 | if test -z "$ac_cpp_err"; then | |
18877 | ac_header_preproc=yes | |
18878 | else | |
18879 | echo "$as_me: failed program was:" >&5 | |
18880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18881 | ||
18882 | ac_header_preproc=no | |
18883 | fi | |
18884 | rm -f conftest.err conftest.$ac_ext | |
18885 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18886 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18887 | ||
18888 | # So? What about this header? | |
18889 | case $ac_header_compiler:$ac_header_preproc in | |
18890 | yes:no ) | |
18891 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18892 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18893 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18894 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18895 | ( | |
18896 | cat <<\_ASBOX | |
18897 | ## ------------------------------------ ## | |
18898 | ## Report this to bug-autoconf@gnu.org. ## | |
18899 | ## ------------------------------------ ## | |
18900 | _ASBOX | |
18901 | ) | | |
18902 | sed "s/^/$as_me: WARNING: /" >&2 | |
18903 | ;; | |
18904 | no:yes ) | |
18905 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
18906 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
18907 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
18908 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
18909 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
18910 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
18911 | ( | |
18912 | cat <<\_ASBOX | |
18913 | ## ------------------------------------ ## | |
18914 | ## Report this to bug-autoconf@gnu.org. ## | |
18915 | ## ------------------------------------ ## | |
18916 | _ASBOX | |
18917 | ) | | |
18918 | sed "s/^/$as_me: WARNING: /" >&2 | |
18919 | ;; | |
18920 | esac | |
18921 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18922 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18923 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18925 | else | |
18926 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 18927 | fi |
e6cc62c6 VS |
18928 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
18929 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18930 | ||
21d1c967 | 18931 | fi |
e6cc62c6 VS |
18932 | if test $ac_cv_header_tiffio_h = yes; then |
18933 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
18934 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
18935 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
18936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 18937 | else |
e6cc62c6 | 18938 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 18939 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 VS |
18940 | cat >conftest.$ac_ext <<_ACEOF |
18941 | #line $LINENO "configure" | |
18942 | /* confdefs.h. */ | |
18943 | _ACEOF | |
18944 | cat confdefs.h >>conftest.$ac_ext | |
18945 | cat >>conftest.$ac_ext <<_ACEOF | |
18946 | /* end confdefs.h. */ | |
18947 | ||
ab9b9eab | 18948 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18949 | #ifdef __cplusplus |
18950 | extern "C" | |
18951 | #endif | |
ab9b9eab | 18952 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18953 | builtin and then its argument prototype would still apply. */ |
18954 | char TIFFError (); | |
18955 | int | |
18956 | main () | |
18957 | { | |
18958 | TIFFError (); | |
18959 | ; | |
18960 | return 0; | |
18961 | } | |
18962 | _ACEOF | |
18963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18965 | (eval $ac_link) 2>&5 | |
18966 | ac_status=$? | |
18967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18968 | (exit $ac_status); } && | |
18969 | { ac_try='test -s conftest$ac_exeext' | |
18970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18971 | (eval $ac_try) 2>&5 | |
18972 | ac_status=$? | |
18973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18974 | (exit $ac_status); }; }; then | |
18975 | ac_cv_lib_tiff_TIFFError=yes | |
18976 | else | |
18977 | echo "$as_me: failed program was:" >&5 | |
18978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18979 | ||
18980 | ac_cv_lib_tiff_TIFFError=no | |
18981 | fi | |
18982 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18983 | LIBS=$ac_check_lib_save_LIBS | |
18984 | fi | |
18985 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
18986 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
18987 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 18988 | TIFF_LINK=" -ltiff" |
a0b9e27f | 18989 | fi |
cd6d6d5b | 18990 | |
e6cc62c6 | 18991 | |
a0b9e27f | 18992 | fi |
8284b0c5 | 18993 | |
247f5006 | 18994 | |
e6cc62c6 | 18995 | |
21d1c967 GD |
18996 | if test "x$TIFF_LINK" = "x" ; then |
18997 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
18998 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
18999 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19000 | { (exit 1); exit 1; }; } | |
90dd450c | 19001 | else |
e6cc62c6 VS |
19002 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19003 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19004 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19005 | fi |
d8356fa3 | 19006 | else |
21d1c967 | 19007 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19008 | fi |
21d1c967 | 19009 | fi |
d8356fa3 | 19010 | |
21d1c967 GD |
19011 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
19012 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 19013 | fi |
21d1c967 | 19014 | fi |
10f2d63a | 19015 | |
8284b0c5 | 19016 | |
21d1c967 | 19017 | AFMINSTALL= |
2b5f62a0 | 19018 | WIN32INSTALL= |
90dd450c | 19019 | |
21d1c967 GD |
19020 | TOOLKIT= |
19021 | TOOLKIT_INCLUDE= | |
19022 | WIDGET_SET= | |
19023 | ||
19024 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19025 | |
19026 | for ac_header in w32api.h | |
21d1c967 | 19027 | do |
e6cc62c6 VS |
19028 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19029 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19030 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19034 | fi | |
19035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19036 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19037 | else | |
19038 | # Is the header compilable? | |
19039 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19040 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19041 | cat >conftest.$ac_ext <<_ACEOF | |
19042 | #line $LINENO "configure" | |
19043 | /* confdefs.h. */ | |
19044 | _ACEOF | |
19045 | cat confdefs.h >>conftest.$ac_ext | |
19046 | cat >>conftest.$ac_ext <<_ACEOF | |
19047 | /* end confdefs.h. */ | |
19048 | $ac_includes_default | |
19049 | #include <$ac_header> | |
19050 | _ACEOF | |
19051 | rm -f conftest.$ac_objext | |
19052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19053 | (eval $ac_compile) 2>&5 | |
19054 | ac_status=$? | |
19055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19056 | (exit $ac_status); } && | |
19057 | { ac_try='test -s conftest.$ac_objext' | |
19058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19059 | (eval $ac_try) 2>&5 | |
19060 | ac_status=$? | |
19061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19062 | (exit $ac_status); }; }; then | |
19063 | ac_header_compiler=yes | |
19064 | else | |
19065 | echo "$as_me: failed program was:" >&5 | |
19066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19067 | ||
19068 | ac_header_compiler=no | |
19069 | fi | |
19070 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19071 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19072 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19073 | ||
19074 | # Is the header present? | |
19075 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19076 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19077 | cat >conftest.$ac_ext <<_ACEOF | |
19078 | #line $LINENO "configure" | |
19079 | /* confdefs.h. */ | |
19080 | _ACEOF | |
19081 | cat confdefs.h >>conftest.$ac_ext | |
19082 | cat >>conftest.$ac_ext <<_ACEOF | |
19083 | /* end confdefs.h. */ | |
19084 | #include <$ac_header> | |
19085 | _ACEOF | |
19086 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19087 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19088 | ac_status=$? | |
19089 | grep -v '^ *+' conftest.er1 >conftest.err | |
19090 | rm -f conftest.er1 | |
19091 | cat conftest.err >&5 | |
19092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19093 | (exit $ac_status); } >/dev/null; then | |
19094 | if test -s conftest.err; then | |
19095 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19096 | else | |
19097 | ac_cpp_err= | |
19098 | fi | |
19099 | else | |
19100 | ac_cpp_err=yes | |
19101 | fi | |
19102 | if test -z "$ac_cpp_err"; then | |
19103 | ac_header_preproc=yes | |
19104 | else | |
19105 | echo "$as_me: failed program was:" >&5 | |
19106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19107 | ||
19108 | ac_header_preproc=no | |
19109 | fi | |
19110 | rm -f conftest.err conftest.$ac_ext | |
19111 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19112 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19113 | ||
19114 | # So? What about this header? | |
19115 | case $ac_header_compiler:$ac_header_preproc in | |
19116 | yes:no ) | |
19117 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19118 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19120 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19121 | ( | |
19122 | cat <<\_ASBOX | |
19123 | ## ------------------------------------ ## | |
19124 | ## Report this to bug-autoconf@gnu.org. ## | |
19125 | ## ------------------------------------ ## | |
19126 | _ASBOX | |
19127 | ) | | |
19128 | sed "s/^/$as_me: WARNING: /" >&2 | |
19129 | ;; | |
19130 | no:yes ) | |
19131 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19132 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19133 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19134 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19135 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19136 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19137 | ( | |
19138 | cat <<\_ASBOX | |
19139 | ## ------------------------------------ ## | |
19140 | ## Report this to bug-autoconf@gnu.org. ## | |
19141 | ## ------------------------------------ ## | |
19142 | _ASBOX | |
19143 | ) | | |
19144 | sed "s/^/$as_me: WARNING: /" >&2 | |
19145 | ;; | |
19146 | esac | |
19147 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19148 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19149 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19151 | else | |
19152 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 19153 | fi |
e6cc62c6 VS |
19154 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19155 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19156 | ||
21d1c967 | 19157 | fi |
e6cc62c6 VS |
19158 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19159 | cat >>confdefs.h <<_ACEOF | |
19160 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19161 | _ACEOF | |
19162 | ||
21d1c967 | 19163 | fi |
e6cc62c6 | 19164 | |
21d1c967 | 19165 | done |
f79bd02d | 19166 | |
e6cc62c6 VS |
19167 | if test "${ac_cv_header_windows_h+set}" = set; then |
19168 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19169 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19170 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19172 | fi | |
19173 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19174 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19175 | else | |
19176 | # Is the header compilable? | |
19177 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19178 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19179 | cat >conftest.$ac_ext <<_ACEOF | |
19180 | #line $LINENO "configure" | |
19181 | /* confdefs.h. */ | |
19182 | _ACEOF | |
19183 | cat confdefs.h >>conftest.$ac_ext | |
19184 | cat >>conftest.$ac_ext <<_ACEOF | |
19185 | /* end confdefs.h. */ | |
19186 | $ac_includes_default | |
247f5006 | 19187 | #include <windows.h> |
e6cc62c6 VS |
19188 | _ACEOF |
19189 | rm -f conftest.$ac_objext | |
19190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19191 | (eval $ac_compile) 2>&5 | |
19192 | ac_status=$? | |
19193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19194 | (exit $ac_status); } && | |
19195 | { ac_try='test -s conftest.$ac_objext' | |
19196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19197 | (eval $ac_try) 2>&5 | |
19198 | ac_status=$? | |
19199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19200 | (exit $ac_status); }; }; then | |
19201 | ac_header_compiler=yes | |
19202 | else | |
19203 | echo "$as_me: failed program was:" >&5 | |
19204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19205 | ||
19206 | ac_header_compiler=no | |
19207 | fi | |
19208 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19209 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19210 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19211 | ||
19212 | # Is the header present? | |
19213 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19214 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19215 | cat >conftest.$ac_ext <<_ACEOF | |
19216 | #line $LINENO "configure" | |
19217 | /* confdefs.h. */ | |
19218 | _ACEOF | |
19219 | cat confdefs.h >>conftest.$ac_ext | |
19220 | cat >>conftest.$ac_ext <<_ACEOF | |
19221 | /* end confdefs.h. */ | |
19222 | #include <windows.h> | |
19223 | _ACEOF | |
19224 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19225 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19226 | ac_status=$? | |
19227 | grep -v '^ *+' conftest.er1 >conftest.err | |
19228 | rm -f conftest.er1 | |
19229 | cat conftest.err >&5 | |
19230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19231 | (exit $ac_status); } >/dev/null; then | |
19232 | if test -s conftest.err; then | |
19233 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19234 | else | |
19235 | ac_cpp_err= | |
19236 | fi | |
19237 | else | |
19238 | ac_cpp_err=yes | |
19239 | fi | |
19240 | if test -z "$ac_cpp_err"; then | |
19241 | ac_header_preproc=yes | |
19242 | else | |
19243 | echo "$as_me: failed program was:" >&5 | |
19244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19245 | ||
19246 | ac_header_preproc=no | |
19247 | fi | |
19248 | rm -f conftest.err conftest.$ac_ext | |
19249 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19250 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19251 | ||
19252 | # So? What about this header? | |
19253 | case $ac_header_compiler:$ac_header_preproc in | |
19254 | yes:no ) | |
19255 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19256 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19257 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19258 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19259 | ( | |
19260 | cat <<\_ASBOX | |
19261 | ## ------------------------------------ ## | |
19262 | ## Report this to bug-autoconf@gnu.org. ## | |
19263 | ## ------------------------------------ ## | |
19264 | _ASBOX | |
19265 | ) | | |
19266 | sed "s/^/$as_me: WARNING: /" >&2 | |
19267 | ;; | |
19268 | no:yes ) | |
19269 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19270 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19271 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19272 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19273 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19274 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19275 | ( | |
19276 | cat <<\_ASBOX | |
19277 | ## ------------------------------------ ## | |
19278 | ## Report this to bug-autoconf@gnu.org. ## | |
19279 | ## ------------------------------------ ## | |
19280 | _ASBOX | |
19281 | ) | | |
19282 | sed "s/^/$as_me: WARNING: /" >&2 | |
19283 | ;; | |
19284 | esac | |
19285 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19286 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19287 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19289 | else | |
19290 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 19291 | fi |
e6cc62c6 VS |
19292 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
19293 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19294 | ||
90dd450c | 19295 | fi |
e6cc62c6 | 19296 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 19297 | : |
90dd450c | 19298 | else |
21d1c967 | 19299 | |
e6cc62c6 VS |
19300 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
19301 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19302 | { (exit 1); exit 1; }; } | |
19303 | ||
5c6fa7d2 | 19304 | fi |
7b4a847f | 19305 | |
5c6fa7d2 | 19306 | |
e6cc62c6 VS |
19307 | |
19308 | echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5 | |
19309 | echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6 | |
19310 | if test "${wx_cv_w32api_win32_ie+set}" = set; then | |
19311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 19312 | else |
e6cc62c6 VS |
19313 | |
19314 | cat >conftest.$ac_ext <<_ACEOF | |
19315 | #line $LINENO "configure" | |
19316 | /* confdefs.h. */ | |
19317 | _ACEOF | |
19318 | cat confdefs.h >>conftest.$ac_ext | |
19319 | cat >>conftest.$ac_ext <<_ACEOF | |
19320 | /* end confdefs.h. */ | |
21d1c967 | 19321 | #include <w32api.h> |
e6cc62c6 VS |
19322 | int |
19323 | main () | |
19324 | { | |
f79bd02d | 19325 | |
21d1c967 GD |
19326 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
19327 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
19328 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
19329 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
19330 | ||
19331 | #if !wxCHECK_W32API_VERSION(1,1) | |
19332 | #error You need w32api 1.1 or newer | |
19333 | #endif | |
e6cc62c6 VS |
19334 | |
19335 | ; | |
19336 | return 0; | |
19337 | } | |
19338 | _ACEOF | |
19339 | rm -f conftest.$ac_objext | |
19340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19341 | (eval $ac_compile) 2>&5 | |
19342 | ac_status=$? | |
19343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19344 | (exit $ac_status); } && | |
19345 | { ac_try='test -s conftest.$ac_objext' | |
19346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19347 | (eval $ac_try) 2>&5 | |
19348 | ac_status=$? | |
19349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19350 | (exit $ac_status); }; }; then | |
19351 | ||
21d1c967 | 19352 | wx_cv_w32api_win32_ie=yes |
e6cc62c6 | 19353 | |
f79bd02d | 19354 | else |
e6cc62c6 VS |
19355 | echo "$as_me: failed program was:" >&5 |
19356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19357 | ||
19358 | ||
21d1c967 | 19359 | wx_cv_w32api_win32_ie=no |
e6cc62c6 | 19360 | |
247f5006 | 19361 | fi |
e6cc62c6 | 19362 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 19363 | |
e6cc62c6 VS |
19364 | fi |
19365 | echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5 | |
19366 | echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6 | |
21d1c967 GD |
19367 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
19368 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
19369 | fi | |
f79bd02d | 19370 | |
21d1c967 GD |
19371 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
19372 | ||
7bb2947d MB |
19373 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
19374 | LIBS="$LIBS -loleacc" | |
19375 | fi | |
19376 | ||
21d1c967 GD |
19377 | case "${host}" in |
19378 | *-*-cygwin* ) | |
19379 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
19380 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 19381 | esac |
f79bd02d | 19382 | |
8647bec6 RG |
19383 | if test "$wxUSE_ODBC" = "sys" ; then |
19384 | wxUSE_ODBC = "yes" | |
21d1c967 | 19385 | fi |
8647bec6 RG |
19386 | if test "$wxUSE_ODBC" = "yes" ; then |
19387 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 19388 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 19389 | #define wxUSE_ODBC 1 |
e6cc62c6 | 19390 | _ACEOF |
f79bd02d | 19391 | |
8647bec6 | 19392 | fi |
e6cc62c6 | 19393 | |
21d1c967 GD |
19394 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
19395 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
19396 | |
19397 | WIN32INSTALL=win32install | |
f79bd02d | 19398 | fi |
f79bd02d | 19399 | |
b2fee376 | 19400 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 19401 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
19402 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
19403 | else | |
19404 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
19405 | fi | |
19406 | fi | |
19407 | ||
21d1c967 GD |
19408 | if test "$wxUSE_GUI" = "yes"; then |
19409 | USE_GUI=1 | |
f79bd02d | 19410 | |
21d1c967 | 19411 | GUI_TK_LIBRARY= |
f79bd02d | 19412 | |
21d1c967 GD |
19413 | WXGTK12= |
19414 | WXGTK127= | |
19415 | WXGTK20= | |
f79bd02d | 19416 | |
21d1c967 GD |
19417 | if test "$wxUSE_MSW" = 1 ; then |
19418 | TOOLKIT=MSW | |
19419 | GUIDIST=MSW_DIST | |
f79bd02d JS |
19420 | fi |
19421 | ||
21d1c967 | 19422 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
19423 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
19424 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
19425 | |
19426 | gtk_version_cached=1 | |
e6cc62c6 VS |
19427 | if test "${wx_cv_lib_gtk+set}" = set; then |
19428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 19429 | else |
e6cc62c6 | 19430 | |
21d1c967 | 19431 | gtk_version_cached=0 |
e6cc62c6 VS |
19432 | echo "$as_me:$LINENO: result: " >&5 |
19433 | echo "${ECHO_T}" >&6 | |
f79bd02d | 19434 | |
21d1c967 GD |
19435 | GTK_MODULES= |
19436 | if test "$wxUSE_THREADS" = "yes"; then | |
19437 | GTK_MODULES=gthread | |
19438 | fi | |
f79bd02d | 19439 | |
2b5f62a0 | 19440 | wx_cv_lib_gtk= |
21d1c967 GD |
19441 | if test "x$wxUSE_GTK2" = "xyes"; then |
19442 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19443 | if test "${enable_gtktest+set}" = set; then | |
19444 | enableval="$enable_gtktest" | |
e6cc62c6 | 19445 | |
f79bd02d | 19446 | else |
21d1c967 | 19447 | enable_gtktest=yes |
e6cc62c6 | 19448 | fi; |
f79bd02d | 19449 | |
21d1c967 GD |
19450 | pkg_config_args=gtk+-2.0 |
19451 | for module in . $GTK_MODULES | |
19452 | do | |
19453 | case "$module" in | |
e6cc62c6 | 19454 | gthread) |
21d1c967 GD |
19455 | pkg_config_args="$pkg_config_args gthread-2.0" |
19456 | ;; | |
19457 | esac | |
19458 | done | |
19459 | ||
19460 | no_gtk="" | |
f79bd02d | 19461 | |
21d1c967 GD |
19462 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19463 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
19464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19466 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19468 | else |
e6cc62c6 VS |
19469 | case $PKG_CONFIG in |
19470 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19471 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19472 | ;; | |
21d1c967 | 19473 | *) |
e6cc62c6 VS |
19474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19475 | for as_dir in $PATH | |
19476 | do | |
19477 | IFS=$as_save_IFS | |
19478 | test -z "$as_dir" && as_dir=. | |
19479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19480 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19481 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19483 | break 2 | |
19484 | fi | |
19485 | done | |
19486 | done | |
19487 | ||
21d1c967 GD |
19488 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19489 | ;; | |
19490 | esac | |
f79bd02d | 19491 | fi |
e6cc62c6 VS |
19492 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19493 | ||
21d1c967 | 19494 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
19495 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19496 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 19497 | else |
e6cc62c6 VS |
19498 | echo "$as_me:$LINENO: result: no" >&5 |
19499 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
19500 | fi |
19501 | ||
8284b0c5 | 19502 | |
21d1c967 GD |
19503 | if test x$PKG_CONFIG != xno ; then |
19504 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
19505 | : | |
19506 | else | |
19507 | echo *** pkg-config too old; version 0.7 or better required. | |
19508 | no_gtk=yes | |
19509 | PKG_CONFIG=no | |
19510 | fi | |
19511 | else | |
19512 | no_gtk=yes | |
19513 | fi | |
f79bd02d | 19514 | |
21d1c967 | 19515 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
19516 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
19517 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 19518 | |
21d1c967 GD |
19519 | if test x$PKG_CONFIG != xno ; then |
19520 | ## don't try to run the test against uninstalled libtool libs | |
19521 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
19522 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
19523 | enable_gtktest=no | |
19524 | fi | |
f79bd02d | 19525 | |
21d1c967 GD |
19526 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
19527 | : | |
19528 | else | |
19529 | no_gtk=yes | |
19530 | fi | |
19531 | fi | |
f79bd02d | 19532 | |
21d1c967 GD |
19533 | if test x"$no_gtk" = x ; then |
19534 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
19535 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
19536 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19537 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19538 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19539 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19540 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19541 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19542 | if test "x$enable_gtktest" = "xyes" ; then | |
19543 | ac_save_CFLAGS="$CFLAGS" | |
19544 | ac_save_LIBS="$LIBS" | |
19545 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19546 | LIBS="$GTK_LIBS $LIBS" | |
19547 | rm -f conf.gtktest | |
19548 | if test "$cross_compiling" = yes; then | |
19549 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19550 | else |
e6cc62c6 VS |
19551 | cat >conftest.$ac_ext <<_ACEOF |
19552 | #line $LINENO "configure" | |
19553 | /* confdefs.h. */ | |
19554 | _ACEOF | |
19555 | cat confdefs.h >>conftest.$ac_ext | |
19556 | cat >>conftest.$ac_ext <<_ACEOF | |
19557 | /* end confdefs.h. */ | |
f79bd02d | 19558 | |
21d1c967 GD |
19559 | #include <gtk/gtk.h> |
19560 | #include <stdio.h> | |
19561 | #include <stdlib.h> | |
f79bd02d | 19562 | |
e6cc62c6 | 19563 | int |
21d1c967 GD |
19564 | main () |
19565 | { | |
19566 | int major, minor, micro; | |
19567 | char *tmp_version; | |
f79bd02d | 19568 | |
21d1c967 | 19569 | system ("touch conf.gtktest"); |
f79bd02d | 19570 | |
21d1c967 GD |
19571 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
19572 | tmp_version = g_strdup("$min_gtk_version"); | |
19573 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19574 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19575 | exit(1); | |
19576 | } | |
f79bd02d | 19577 | |
21d1c967 GD |
19578 | if ((gtk_major_version != $gtk_config_major_version) || |
19579 | (gtk_minor_version != $gtk_config_minor_version) || | |
19580 | (gtk_micro_version != $gtk_config_micro_version)) | |
19581 | { | |
e6cc62c6 | 19582 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19583 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19584 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19585 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
19586 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19587 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19588 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19589 | printf("*** required on your system.\n"); | |
19590 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
19591 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 19592 | } |
21d1c967 GD |
19593 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
19594 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19595 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19596 | { | |
19597 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19598 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19599 | printf("*** library (version %d.%d.%d)\n", | |
19600 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19601 | } | |
19602 | else | |
19603 | { | |
19604 | if ((gtk_major_version > major) || | |
19605 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19606 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19607 | { | |
19608 | return 0; | |
19609 | } | |
19610 | else | |
19611 | { | |
19612 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19613 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19614 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19615 | major, minor, micro); | |
19616 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19617 | printf("***\n"); | |
19618 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19619 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
19620 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19621 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
19622 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
19623 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19624 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19625 | } | |
19626 | } | |
19627 | return 1; | |
19628 | } | |
f79bd02d | 19629 | |
e6cc62c6 VS |
19630 | _ACEOF |
19631 | rm -f conftest$ac_exeext | |
19632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19633 | (eval $ac_link) 2>&5 | |
19634 | ac_status=$? | |
19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19638 | (eval $ac_try) 2>&5 | |
19639 | ac_status=$? | |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19641 | (exit $ac_status); }; }; then | |
21d1c967 | 19642 | : |
f79bd02d | 19643 | else |
e6cc62c6 VS |
19644 | echo "$as_me: program exited with status $ac_status" >&5 |
19645 | echo "$as_me: failed program was:" >&5 | |
19646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19647 | ||
19648 | ( exit $ac_status ) | |
19649 | no_gtk=yes | |
f79bd02d | 19650 | fi |
e6cc62c6 | 19651 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 19652 | fi |
21d1c967 GD |
19653 | CFLAGS="$ac_save_CFLAGS" |
19654 | LIBS="$ac_save_LIBS" | |
19655 | fi | |
19656 | fi | |
19657 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
19658 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
19659 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
19660 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 19661 | else |
e6cc62c6 VS |
19662 | echo "$as_me:$LINENO: result: no" >&5 |
19663 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19664 | if test "$PKG_CONFIG" = "no" ; then |
19665 | echo "*** A new enough version of pkg-config was not found." | |
19666 | echo "*** See http://pkgconfig.sourceforge.net" | |
19667 | else | |
19668 | if test -f conf.gtktest ; then | |
19669 | : | |
19670 | else | |
19671 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
19672 | ac_save_CFLAGS="$CFLAGS" |
19673 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
19674 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
19675 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
19676 | cat >conftest.$ac_ext <<_ACEOF |
19677 | #line $LINENO "configure" | |
19678 | /* confdefs.h. */ | |
19679 | _ACEOF | |
19680 | cat confdefs.h >>conftest.$ac_ext | |
19681 | cat >>conftest.$ac_ext <<_ACEOF | |
19682 | /* end confdefs.h. */ | |
21d1c967 GD |
19683 | |
19684 | #include <gtk/gtk.h> | |
19685 | #include <stdio.h> | |
f79bd02d | 19686 | |
e6cc62c6 VS |
19687 | int |
19688 | main () | |
19689 | { | |
19690 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19691 | ; | |
19692 | return 0; | |
19693 | } | |
19694 | _ACEOF | |
19695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19697 | (eval $ac_link) 2>&5 | |
19698 | ac_status=$? | |
19699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19700 | (exit $ac_status); } && | |
19701 | { ac_try='test -s conftest$ac_exeext' | |
19702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19703 | (eval $ac_try) 2>&5 | |
19704 | ac_status=$? | |
19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19706 | (exit $ac_status); }; }; then | |
21d1c967 GD |
19707 | echo "*** The test program compiled, but did not run. This usually means" |
19708 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
19709 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
19710 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
19711 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
19712 | echo "*** is required on your system" | |
19713 | echo "***" | |
19714 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 19715 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 19716 | else |
e6cc62c6 VS |
19717 | echo "$as_me: failed program was:" >&5 |
19718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19719 | ||
19720 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 19721 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 19722 | fi |
e6cc62c6 | 19723 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
19724 | CFLAGS="$ac_save_CFLAGS" |
19725 | LIBS="$ac_save_LIBS" | |
19726 | fi | |
19727 | fi | |
19728 | GTK_CFLAGS="" | |
19729 | GTK_LIBS="" | |
19730 | : | |
19731 | fi | |
e6cc62c6 VS |
19732 | |
19733 | ||
21d1c967 | 19734 | rm -f conf.gtktest |
f79bd02d | 19735 | |
2b5f62a0 | 19736 | else |
e6cc62c6 VS |
19737 | |
19738 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
19739 | if test "${with_gtk_prefix+set}" = set; then |
19740 | withval="$with_gtk_prefix" | |
19741 | gtk_config_prefix="$withval" | |
19742 | else | |
19743 | gtk_config_prefix="" | |
e6cc62c6 | 19744 | fi; |
f79bd02d | 19745 | |
21d1c967 GD |
19746 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
19747 | if test "${with_gtk_exec_prefix+set}" = set; then | |
19748 | withval="$with_gtk_exec_prefix" | |
19749 | gtk_config_exec_prefix="$withval" | |
19750 | else | |
19751 | gtk_config_exec_prefix="" | |
e6cc62c6 | 19752 | fi; |
21d1c967 GD |
19753 | # Check whether --enable-gtktest or --disable-gtktest was given. |
19754 | if test "${enable_gtktest+set}" = set; then | |
19755 | enableval="$enable_gtktest" | |
e6cc62c6 | 19756 | |
21d1c967 GD |
19757 | else |
19758 | enable_gtktest=yes | |
e6cc62c6 | 19759 | fi; |
21d1c967 GD |
19760 | |
19761 | for module in . $GTK_MODULES | |
19762 | do | |
19763 | case "$module" in | |
e6cc62c6 | 19764 | gthread) |
21d1c967 GD |
19765 | gtk_config_args="$gtk_config_args gthread" |
19766 | ;; | |
19767 | esac | |
19768 | done | |
19769 | ||
19770 | if test x$gtk_config_exec_prefix != x ; then | |
19771 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
19772 | if test x${GTK_CONFIG+set} != xset ; then | |
19773 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
19774 | fi | |
19775 | fi | |
19776 | if test x$gtk_config_prefix != x ; then | |
19777 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
19778 | if test x${GTK_CONFIG+set} != xset ; then | |
19779 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
19780 | fi | |
19781 | fi | |
19782 | ||
19783 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
19784 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
19785 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19787 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
19788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19789 | else |
e6cc62c6 VS |
19790 | case $GTK_CONFIG in |
19791 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19792 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
19793 | ;; | |
21d1c967 | 19794 | *) |
e6cc62c6 VS |
19795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19796 | for as_dir in $PATH | |
19797 | do | |
19798 | IFS=$as_save_IFS | |
19799 | test -z "$as_dir" && as_dir=. | |
19800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19802 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19804 | break 2 | |
19805 | fi | |
19806 | done | |
19807 | done | |
19808 | ||
21d1c967 GD |
19809 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
19810 | ;; | |
19811 | esac | |
19812 | fi | |
e6cc62c6 VS |
19813 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
19814 | ||
21d1c967 | 19815 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
19816 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
19817 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 19818 | else |
e6cc62c6 VS |
19819 | echo "$as_me:$LINENO: result: no" >&5 |
19820 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19821 | fi |
19822 | ||
19823 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
19824 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
19825 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
19826 | no_gtk="" |
19827 | if test "$GTK_CONFIG" = "no" ; then | |
19828 | no_gtk=yes | |
19829 | else | |
19830 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
19831 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
19832 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19833 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19834 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19835 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19836 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
19837 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19838 | if test "x$enable_gtktest" = "xyes" ; then | |
19839 | ac_save_CFLAGS="$CFLAGS" | |
19840 | ac_save_LIBS="$LIBS" | |
19841 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19842 | LIBS="$GTK_LIBS $LIBS" | |
19843 | rm -f conf.gtktest | |
19844 | if test "$cross_compiling" = yes; then | |
19845 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19846 | else |
e6cc62c6 VS |
19847 | cat >conftest.$ac_ext <<_ACEOF |
19848 | #line $LINENO "configure" | |
19849 | /* confdefs.h. */ | |
19850 | _ACEOF | |
19851 | cat confdefs.h >>conftest.$ac_ext | |
19852 | cat >>conftest.$ac_ext <<_ACEOF | |
19853 | /* end confdefs.h. */ | |
f79bd02d | 19854 | |
21d1c967 GD |
19855 | #include <gtk/gtk.h> |
19856 | #include <stdio.h> | |
19857 | #include <stdlib.h> | |
f79bd02d | 19858 | |
e6cc62c6 | 19859 | int |
21d1c967 GD |
19860 | main () |
19861 | { | |
19862 | int major, minor, micro; | |
19863 | char *tmp_version; | |
19864 | ||
19865 | system ("touch conf.gtktest"); | |
19866 | ||
19867 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
19868 | tmp_version = g_strdup("$min_gtk_version"); | |
19869 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19870 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19871 | exit(1); | |
19872 | } | |
90dd450c | 19873 | |
21d1c967 GD |
19874 | if ((gtk_major_version != $gtk_config_major_version) || |
19875 | (gtk_minor_version != $gtk_config_minor_version) || | |
19876 | (gtk_micro_version != $gtk_config_micro_version)) | |
19877 | { | |
e6cc62c6 | 19878 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19879 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19880 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19881 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
19882 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19883 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19884 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19885 | printf("*** required on your system.\n"); | |
19886 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
19887 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
19888 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 19889 | } |
21d1c967 GD |
19890 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
19891 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
19892 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19893 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19894 | { | |
19895 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19896 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19897 | printf("*** library (version %d.%d.%d)\n", | |
19898 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19899 | } | |
19900 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
19901 | else | |
19902 | { | |
19903 | if ((gtk_major_version > major) || | |
19904 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19905 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19906 | { | |
19907 | return 0; | |
19908 | } | |
19909 | else | |
19910 | { | |
19911 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19912 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19913 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19914 | major, minor, micro); | |
19915 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19916 | printf("***\n"); | |
19917 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19918 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
19919 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19920 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
19921 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
19922 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19923 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19924 | } | |
19925 | } | |
19926 | return 1; | |
19927 | } | |
19928 | ||
e6cc62c6 VS |
19929 | _ACEOF |
19930 | rm -f conftest$ac_exeext | |
19931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19932 | (eval $ac_link) 2>&5 | |
19933 | ac_status=$? | |
19934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19935 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19937 | (eval $ac_try) 2>&5 | |
19938 | ac_status=$? | |
19939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19940 | (exit $ac_status); }; }; then | |
21d1c967 GD |
19941 | : |
19942 | else | |
e6cc62c6 VS |
19943 | echo "$as_me: program exited with status $ac_status" >&5 |
19944 | echo "$as_me: failed program was:" >&5 | |
19945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19946 | ||
19947 | ( exit $ac_status ) | |
19948 | no_gtk=yes | |
21d1c967 | 19949 | fi |
e6cc62c6 | 19950 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 19951 | fi |
21d1c967 GD |
19952 | CFLAGS="$ac_save_CFLAGS" |
19953 | LIBS="$ac_save_LIBS" | |
19954 | fi | |
19955 | fi | |
19956 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
19957 | echo "$as_me:$LINENO: result: yes" >&5 |
19958 | echo "${ECHO_T}yes" >&6 | |
19959 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 19960 | else |
e6cc62c6 VS |
19961 | echo "$as_me:$LINENO: result: no" >&5 |
19962 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
19963 | if test "$GTK_CONFIG" = "no" ; then |
19964 | echo "*** The gtk-config script installed by GTK could not be found" | |
19965 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
19966 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
19967 | echo "*** full path to gtk-config." | |
19968 | else | |
19969 | if test -f conf.gtktest ; then | |
19970 | : | |
19971 | else | |
19972 | echo "*** Could not run GTK test program, checking why..." | |
19973 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19974 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
19975 | cat >conftest.$ac_ext <<_ACEOF |
19976 | #line $LINENO "configure" | |
19977 | /* confdefs.h. */ | |
19978 | _ACEOF | |
19979 | cat confdefs.h >>conftest.$ac_ext | |
19980 | cat >>conftest.$ac_ext <<_ACEOF | |
19981 | /* end confdefs.h. */ | |
21d1c967 GD |
19982 | |
19983 | #include <gtk/gtk.h> | |
19984 | #include <stdio.h> | |
19985 | ||
e6cc62c6 VS |
19986 | int |
19987 | main () | |
19988 | { | |
19989 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
19990 | ; | |
19991 | return 0; | |
19992 | } | |
19993 | _ACEOF | |
19994 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19995 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19996 | (eval $ac_link) 2>&5 | |
19997 | ac_status=$? | |
19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19999 | (exit $ac_status); } && | |
20000 | { ac_try='test -s conftest$ac_exeext' | |
20001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20002 | (eval $ac_try) 2>&5 | |
20003 | ac_status=$? | |
20004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20005 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20006 | echo "*** The test program compiled, but did not run. This usually means" |
20007 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20008 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20009 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20010 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20011 | echo "*** is required on your system" | |
20012 | echo "***" | |
20013 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20014 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20015 | echo "***" | |
20016 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20017 | echo "*** came with the system with the command" | |
20018 | echo "***" | |
e6cc62c6 | 20019 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20020 | else |
e6cc62c6 VS |
20021 | echo "$as_me: failed program was:" >&5 |
20022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20023 | ||
20024 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20025 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20026 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20027 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20028 | fi |
e6cc62c6 | 20029 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20030 | CFLAGS="$ac_save_CFLAGS" |
20031 | LIBS="$ac_save_LIBS" | |
20032 | fi | |
20033 | fi | |
20034 | GTK_CFLAGS="" | |
20035 | GTK_LIBS="" | |
20036 | : | |
20037 | fi | |
e6cc62c6 VS |
20038 | |
20039 | ||
21d1c967 GD |
20040 | rm -f conf.gtktest |
20041 | ||
21d1c967 | 20042 | |
2b5f62a0 | 20043 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20044 | |
20045 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20046 | if test "${with_gtk_prefix+set}" = set; then |
20047 | withval="$with_gtk_prefix" | |
20048 | gtk_config_prefix="$withval" | |
20049 | else | |
20050 | gtk_config_prefix="" | |
e6cc62c6 | 20051 | fi; |
f79bd02d | 20052 | |
21d1c967 GD |
20053 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20054 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20055 | withval="$with_gtk_exec_prefix" | |
20056 | gtk_config_exec_prefix="$withval" | |
20057 | else | |
20058 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20059 | fi; |
21d1c967 GD |
20060 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20061 | if test "${enable_gtktest+set}" = set; then | |
20062 | enableval="$enable_gtktest" | |
e6cc62c6 | 20063 | |
90dd450c | 20064 | else |
21d1c967 | 20065 | enable_gtktest=yes |
e6cc62c6 | 20066 | fi; |
21d1c967 GD |
20067 | |
20068 | for module in . $GTK_MODULES | |
20069 | do | |
20070 | case "$module" in | |
e6cc62c6 | 20071 | gthread) |
21d1c967 GD |
20072 | gtk_config_args="$gtk_config_args gthread" |
20073 | ;; | |
20074 | esac | |
20075 | done | |
20076 | ||
20077 | if test x$gtk_config_exec_prefix != x ; then | |
20078 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20079 | if test x${GTK_CONFIG+set} != xset ; then | |
20080 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20081 | fi | |
20082 | fi | |
20083 | if test x$gtk_config_prefix != x ; then | |
20084 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20085 | if test x${GTK_CONFIG+set} != xset ; then | |
20086 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20087 | fi | |
20088 | fi | |
20089 | ||
20090 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20091 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20092 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20094 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20096 | else |
e6cc62c6 VS |
20097 | case $GTK_CONFIG in |
20098 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20099 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20100 | ;; | |
21d1c967 | 20101 | *) |
e6cc62c6 VS |
20102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20103 | for as_dir in $PATH | |
20104 | do | |
20105 | IFS=$as_save_IFS | |
20106 | test -z "$as_dir" && as_dir=. | |
20107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20108 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20109 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20110 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20111 | break 2 | |
20112 | fi | |
20113 | done | |
20114 | done | |
20115 | ||
21d1c967 GD |
20116 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20117 | ;; | |
20118 | esac | |
20119 | fi | |
e6cc62c6 VS |
20120 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20121 | ||
21d1c967 | 20122 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20123 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20124 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20125 | else |
e6cc62c6 VS |
20126 | echo "$as_me:$LINENO: result: no" >&5 |
20127 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20128 | fi |
20129 | ||
20130 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20131 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20132 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20133 | no_gtk="" |
20134 | if test "$GTK_CONFIG" = "no" ; then | |
20135 | no_gtk=yes | |
20136 | else | |
20137 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20138 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20139 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20140 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20141 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20142 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20143 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20144 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20145 | if test "x$enable_gtktest" = "xyes" ; then | |
20146 | ac_save_CFLAGS="$CFLAGS" | |
20147 | ac_save_LIBS="$LIBS" | |
20148 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20149 | LIBS="$GTK_LIBS $LIBS" | |
20150 | rm -f conf.gtktest | |
20151 | if test "$cross_compiling" = yes; then | |
20152 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20153 | else | |
e6cc62c6 VS |
20154 | cat >conftest.$ac_ext <<_ACEOF |
20155 | #line $LINENO "configure" | |
20156 | /* confdefs.h. */ | |
20157 | _ACEOF | |
20158 | cat confdefs.h >>conftest.$ac_ext | |
20159 | cat >>conftest.$ac_ext <<_ACEOF | |
20160 | /* end confdefs.h. */ | |
21d1c967 GD |
20161 | |
20162 | #include <gtk/gtk.h> | |
20163 | #include <stdio.h> | |
20164 | #include <stdlib.h> | |
20165 | ||
e6cc62c6 | 20166 | int |
21d1c967 GD |
20167 | main () |
20168 | { | |
20169 | int major, minor, micro; | |
20170 | char *tmp_version; | |
20171 | ||
20172 | system ("touch conf.gtktest"); | |
20173 | ||
20174 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20175 | tmp_version = g_strdup("$min_gtk_version"); | |
20176 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20177 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20178 | exit(1); | |
20179 | } | |
20180 | ||
20181 | if ((gtk_major_version != $gtk_config_major_version) || | |
20182 | (gtk_minor_version != $gtk_config_minor_version) || | |
20183 | (gtk_micro_version != $gtk_config_micro_version)) | |
20184 | { | |
e6cc62c6 | 20185 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20186 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20187 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20188 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20189 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20190 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20191 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20192 | printf("*** required on your system.\n"); | |
20193 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20194 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20195 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20196 | } |
21d1c967 GD |
20197 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20198 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20199 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20200 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20201 | { | |
20202 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20203 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20204 | printf("*** library (version %d.%d.%d)\n", | |
20205 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20206 | } | |
20207 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20208 | else | |
20209 | { | |
20210 | if ((gtk_major_version > major) || | |
20211 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20212 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20213 | { | |
20214 | return 0; | |
20215 | } | |
20216 | else | |
20217 | { | |
20218 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20219 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20220 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20221 | major, minor, micro); | |
20222 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20223 | printf("***\n"); | |
20224 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20225 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20226 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20227 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20228 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20229 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20230 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20231 | } | |
20232 | } | |
20233 | return 1; | |
20234 | } | |
20235 | ||
e6cc62c6 VS |
20236 | _ACEOF |
20237 | rm -f conftest$ac_exeext | |
20238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20239 | (eval $ac_link) 2>&5 | |
20240 | ac_status=$? | |
20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20244 | (eval $ac_try) 2>&5 | |
20245 | ac_status=$? | |
20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20247 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20248 | : |
20249 | else | |
e6cc62c6 VS |
20250 | echo "$as_me: program exited with status $ac_status" >&5 |
20251 | echo "$as_me: failed program was:" >&5 | |
20252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20253 | ||
20254 | ( exit $ac_status ) | |
20255 | no_gtk=yes | |
21d1c967 | 20256 | fi |
e6cc62c6 | 20257 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20258 | fi |
21d1c967 GD |
20259 | CFLAGS="$ac_save_CFLAGS" |
20260 | LIBS="$ac_save_LIBS" | |
20261 | fi | |
20262 | fi | |
20263 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20264 | echo "$as_me:$LINENO: result: yes" >&5 |
20265 | echo "${ECHO_T}yes" >&6 | |
20266 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20267 | else |
e6cc62c6 VS |
20268 | echo "$as_me:$LINENO: result: no" >&5 |
20269 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20270 | if test "$GTK_CONFIG" = "no" ; then |
20271 | echo "*** The gtk-config script installed by GTK could not be found" | |
20272 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20273 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20274 | echo "*** full path to gtk-config." | |
20275 | else | |
20276 | if test -f conf.gtktest ; then | |
20277 | : | |
20278 | else | |
20279 | echo "*** Could not run GTK test program, checking why..." | |
20280 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20281 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20282 | cat >conftest.$ac_ext <<_ACEOF |
20283 | #line $LINENO "configure" | |
20284 | /* confdefs.h. */ | |
20285 | _ACEOF | |
20286 | cat confdefs.h >>conftest.$ac_ext | |
20287 | cat >>conftest.$ac_ext <<_ACEOF | |
20288 | /* end confdefs.h. */ | |
21d1c967 GD |
20289 | |
20290 | #include <gtk/gtk.h> | |
20291 | #include <stdio.h> | |
f79bd02d | 20292 | |
e6cc62c6 VS |
20293 | int |
20294 | main () | |
20295 | { | |
20296 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20297 | ; | |
20298 | return 0; | |
20299 | } | |
20300 | _ACEOF | |
20301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20303 | (eval $ac_link) 2>&5 | |
20304 | ac_status=$? | |
20305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20306 | (exit $ac_status); } && | |
20307 | { ac_try='test -s conftest$ac_exeext' | |
20308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20309 | (eval $ac_try) 2>&5 | |
20310 | ac_status=$? | |
20311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20312 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20313 | echo "*** The test program compiled, but did not run. This usually means" |
20314 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20315 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20316 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20317 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20318 | echo "*** is required on your system" | |
20319 | echo "***" | |
20320 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20321 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20322 | echo "***" | |
20323 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20324 | echo "*** came with the system with the command" | |
20325 | echo "***" | |
e6cc62c6 | 20326 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20327 | else |
e6cc62c6 VS |
20328 | echo "$as_me: failed program was:" >&5 |
20329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20330 | ||
20331 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20332 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20333 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20334 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20335 | fi |
e6cc62c6 | 20336 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20337 | CFLAGS="$ac_save_CFLAGS" |
20338 | LIBS="$ac_save_LIBS" | |
20339 | fi | |
20340 | fi | |
20341 | GTK_CFLAGS="" | |
20342 | GTK_LIBS="" | |
20343 | : | |
20344 | fi | |
e6cc62c6 VS |
20345 | |
20346 | ||
21d1c967 | 20347 | rm -f conf.gtktest |
f79bd02d | 20348 | |
2b5f62a0 | 20349 | fi |
21d1c967 GD |
20350 | fi |
20351 | ||
20352 | if test -z "$wx_cv_lib_gtk"; then | |
20353 | wx_cv_lib_gtk=none | |
20354 | else | |
20355 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20356 | wx_cv_libs_gtk=$GTK_LIBS | |
20357 | fi | |
e6cc62c6 VS |
20358 | |
20359 | ||
5c6fa7d2 | 20360 | fi |
52127426 | 20361 | |
8284b0c5 | 20362 | |
21d1c967 | 20363 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
20364 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
20365 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
20366 | fi |
20367 | ||
20368 | case "$wx_cv_lib_gtk" in | |
20369 | 2.0) WXGTK20=1 | |
2b5f62a0 | 20370 | TOOLKIT_VERSION=2 |
21d1c967 GD |
20371 | ;; |
20372 | 1.2.7) WXGTK127=1 | |
20373 | WXGTK12=1 | |
20374 | ;; | |
20375 | 1.2.3) WXGTK12=1 | |
20376 | ;; | |
e6cc62c6 VS |
20377 | *) { { echo "$as_me:$LINENO: error: |
20378 | Please check that gtk-config is in path, the directory | |
20379 | where GTK+ libraries are installed (returned by | |
20380 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20381 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20382 | " >&5 | |
20383 | echo "$as_me: error: | |
247f5006 VZ |
20384 | Please check that gtk-config is in path, the directory |
20385 | where GTK+ libraries are installed (returned by | |
20386 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20387 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
20388 | " >&2;} |
20389 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20390 | ;; |
20391 | esac | |
20392 | ||
b13cd66e VZ |
20393 | if test "$WXGTK20" = 1; then |
20394 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 20395 | |
f09359cf VS |
20396 | succeeded=no |
20397 | ||
20398 | if test -z "$PKG_CONFIG"; then | |
20399 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20400 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20403 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 20405 | else |
e6cc62c6 VS |
20406 | case $PKG_CONFIG in |
20407 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
20408 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20409 | ;; | |
f09359cf | 20410 | *) |
e6cc62c6 VS |
20411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20412 | for as_dir in $PATH | |
20413 | do | |
20414 | IFS=$as_save_IFS | |
20415 | test -z "$as_dir" && as_dir=. | |
20416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20417 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20418 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20419 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20420 | break 2 | |
20421 | fi | |
20422 | done | |
20423 | done | |
20424 | ||
f09359cf VS |
20425 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20426 | ;; | |
20427 | esac | |
20428 | fi | |
e6cc62c6 VS |
20429 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20430 | ||
f09359cf | 20431 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20432 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20433 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 20434 | else |
e6cc62c6 VS |
20435 | echo "$as_me:$LINENO: result: no" >&5 |
20436 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
20437 | fi |
20438 | ||
20439 | fi | |
20440 | ||
20441 | if test "$PKG_CONFIG" = "no" ; then | |
20442 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20443 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20444 | echo "*** to the full path to pkg-config." | |
20445 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20446 | else | |
20447 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20448 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
20449 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
20450 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
20451 | |
20452 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
20453 | echo "$as_me:$LINENO: result: yes" >&5 |
20454 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
20455 | succeeded=yes |
20456 | ||
e6cc62c6 VS |
20457 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
20458 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 20459 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
20460 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
20461 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 20462 | |
e6cc62c6 VS |
20463 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
20464 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 20465 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
20466 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
20467 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
20468 | else |
20469 | PANGOFT2_CFLAGS="" | |
20470 | PANGOFT2_LIBS="" | |
e6cc62c6 | 20471 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
20472 | ## do set a variable so people can do so. |
20473 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 20474 | |
f09359cf VS |
20475 | fi |
20476 | ||
e6cc62c6 VS |
20477 | |
20478 | ||
f09359cf VS |
20479 | else |
20480 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20481 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20482 | fi | |
20483 | fi | |
20484 | ||
20485 | if test $succeeded = yes; then | |
e6cc62c6 | 20486 | |
b13cd66e VZ |
20487 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
20488 | LIBS="$LIBS $PANGOFT2_LIBS" | |
e6cc62c6 | 20489 | |
f09359cf | 20490 | else |
e6cc62c6 VS |
20491 | |
20492 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20493 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 20494 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
20495 | |
20496 | ||
f09359cf VS |
20497 | fi |
20498 | ||
b13cd66e | 20499 | fi |
2b5f62a0 VZ |
20500 | else |
20501 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
20502 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
20503 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
20504 | wxUSE_UNICODE=no |
20505 | fi | |
20506 | fi | |
20507 | ||
20508 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
20509 | |
20510 | for ac_func in poll | |
2b5f62a0 | 20511 | do |
e6cc62c6 VS |
20512 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20513 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20514 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20515 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20517 | else | |
20518 | cat >conftest.$ac_ext <<_ACEOF | |
20519 | #line $LINENO "configure" | |
20520 | /* confdefs.h. */ | |
20521 | _ACEOF | |
20522 | cat confdefs.h >>conftest.$ac_ext | |
20523 | cat >>conftest.$ac_ext <<_ACEOF | |
20524 | /* end confdefs.h. */ | |
2b5f62a0 | 20525 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
20526 | which can conflict with char $ac_func (); below. |
20527 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20528 | <limits.h> exists even on freestanding compilers. */ | |
20529 | #ifdef __STDC__ | |
20530 | # include <limits.h> | |
20531 | #else | |
20532 | # include <assert.h> | |
20533 | #endif | |
2b5f62a0 | 20534 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20535 | #ifdef __cplusplus |
20536 | extern "C" | |
20537 | { | |
20538 | #endif | |
2b5f62a0 | 20539 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20540 | builtin and then its argument prototype would still apply. */ |
20541 | char $ac_func (); | |
2b5f62a0 VZ |
20542 | /* The GNU C library defines this for functions which it implements |
20543 | to always fail with ENOSYS. Some functions are actually named | |
20544 | something starting with __ and the normal name is an alias. */ | |
20545 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20546 | choke me | |
20547 | #else | |
e6cc62c6 VS |
20548 | char (*f) () = $ac_func; |
20549 | #endif | |
20550 | #ifdef __cplusplus | |
20551 | } | |
2b5f62a0 VZ |
20552 | #endif |
20553 | ||
e6cc62c6 VS |
20554 | int |
20555 | main () | |
20556 | { | |
20557 | return f != $ac_func; | |
20558 | ; | |
20559 | return 0; | |
20560 | } | |
20561 | _ACEOF | |
20562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20564 | (eval $ac_link) 2>&5 | |
20565 | ac_status=$? | |
20566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20567 | (exit $ac_status); } && | |
20568 | { ac_try='test -s conftest$ac_exeext' | |
20569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20570 | (eval $ac_try) 2>&5 | |
20571 | ac_status=$? | |
20572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20573 | (exit $ac_status); }; }; then | |
20574 | eval "$as_ac_var=yes" | |
20575 | else | |
20576 | echo "$as_me: failed program was:" >&5 | |
20577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20578 | ||
20579 | eval "$as_ac_var=no" | |
20580 | fi | |
20581 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20582 | fi | |
20583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20584 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20585 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20586 | cat >>confdefs.h <<_ACEOF | |
20587 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20588 | _ACEOF | |
2b5f62a0 | 20589 | |
2b5f62a0 VZ |
20590 | fi |
20591 | done | |
20592 | ||
f09359cf VS |
20593 | fi |
20594 | ||
21d1c967 GD |
20595 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
20596 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
20597 | ||
20598 | AFMINSTALL=afminstall | |
20599 | TOOLKIT=GTK | |
20600 | GUIDIST=GTK_DIST | |
20601 | ||
e6cc62c6 VS |
20602 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
20603 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
20604 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
20605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20606 | else |
e6cc62c6 | 20607 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20608 | LIBS="-lgdk $LIBS" |
e6cc62c6 VS |
20609 | cat >conftest.$ac_ext <<_ACEOF |
20610 | #line $LINENO "configure" | |
20611 | /* confdefs.h. */ | |
20612 | _ACEOF | |
20613 | cat confdefs.h >>conftest.$ac_ext | |
20614 | cat >>conftest.$ac_ext <<_ACEOF | |
20615 | /* end confdefs.h. */ | |
20616 | ||
5c6fa7d2 | 20617 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20618 | #ifdef __cplusplus |
20619 | extern "C" | |
20620 | #endif | |
5c6fa7d2 | 20621 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20622 | builtin and then its argument prototype would still apply. */ |
20623 | char gdk_im_open (); | |
20624 | int | |
20625 | main () | |
20626 | { | |
20627 | gdk_im_open (); | |
20628 | ; | |
20629 | return 0; | |
20630 | } | |
20631 | _ACEOF | |
20632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20634 | (eval $ac_link) 2>&5 | |
20635 | ac_status=$? | |
20636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20637 | (exit $ac_status); } && | |
20638 | { ac_try='test -s conftest$ac_exeext' | |
20639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20640 | (eval $ac_try) 2>&5 | |
20641 | ac_status=$? | |
20642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20643 | (exit $ac_status); }; }; then | |
20644 | ac_cv_lib_gdk_gdk_im_open=yes | |
20645 | else | |
20646 | echo "$as_me: failed program was:" >&5 | |
20647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20648 | ||
20649 | ac_cv_lib_gdk_gdk_im_open=no | |
20650 | fi | |
20651 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20652 | LIBS=$ac_check_lib_save_LIBS | |
20653 | fi | |
20654 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
20655 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
20656 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
20657 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 20658 | #define HAVE_XIM 1 |
e6cc62c6 | 20659 | _ACEOF |
21d1c967 | 20660 | |
90dd450c | 20661 | fi |
1e6feb95 | 20662 | |
21d1c967 | 20663 | fi |
1e6feb95 | 20664 | |
21d1c967 | 20665 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
20666 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
20667 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 20668 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
20669 | echo "$as_me:$LINENO: result: not found" >&5 |
20670 | echo "${ECHO_T}not found" >&6 | |
20671 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
20672 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
20673 | { (exit 1); exit 1; }; } | |
21d1c967 | 20674 | else |
e6cc62c6 VS |
20675 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
20676 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
20677 | fi |
20678 | ||
e6cc62c6 VS |
20679 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
20680 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
21d1c967 GD |
20681 | case "${host}" in |
20682 | *-*-linux* ) | |
63a76696 VS |
20683 | if test "x$wxUSE_SHARED" = xyes ; then |
20684 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
20685 | else | |
20686 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
20687 | fi | |
21d1c967 GD |
20688 | ;; |
20689 | *-pc-msdosdjgpp ) | |
63a76696 | 20690 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
20691 | ;; |
20692 | *) | |
e6cc62c6 VS |
20693 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
20694 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
20695 | { (exit 1); exit 1; }; } | |
21d1c967 | 20696 | esac |
1e6feb95 | 20697 | |
21d1c967 | 20698 | mgl_lib_type="" |
63a76696 VS |
20699 | mgl_os="" |
20700 | ||
20701 | for mgl_os_i in $mgl_os_candidates ; do | |
20702 | if test "x$mgl_os" = x ; then | |
20703 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
20704 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
20705 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
20706 | mgl_lib_type=debug | |
20707 | mgl_os=$mgl_os_i | |
20708 | fi | |
20709 | fi | |
20710 | if test "x$mgl_lib_type" = x ; then | |
20711 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
20712 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
20713 | mgl_lib_type=release | |
20714 | mgl_os=$mgl_os_i | |
20715 | fi | |
20716 | fi | |
21d1c967 | 20717 | fi |
63a76696 | 20718 | done |
2224580a | 20719 | |
63a76696 | 20720 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
20721 | echo "$as_me:$LINENO: result: not found" >&5 |
20722 | echo "${ECHO_T}not found" >&6 | |
20723 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
20724 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
20725 | { (exit 1); exit 1; }; } | |
63a76696 | 20726 | fi |
e6cc62c6 VS |
20727 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
20728 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 20729 | |
1d1b75ac VZ |
20730 | wxUSE_UNIVERSAL="yes" |
20731 | ||
21d1c967 GD |
20732 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
20733 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
20734 | ||
90dd450c | 20735 | AFMINSTALL=afminstall |
21d1c967 GD |
20736 | TOOLKIT=MGL |
20737 | GUIDIST=MGL_DIST | |
20738 | fi | |
dad6c0ea | 20739 | |
21d1c967 | 20740 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
20741 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
20742 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 20743 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
20744 | echo "$as_me:$LINENO: result: not found" >&5 |
20745 | echo "${ECHO_T}not found" >&6 | |
20746 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
20747 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
20748 | { (exit 1); exit 1; }; } | |
21d1c967 | 20749 | else |
e6cc62c6 VS |
20750 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
20751 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 20752 | fi |
f6bcfd97 | 20753 | |
21d1c967 | 20754 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
20755 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
20756 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 20757 | else |
e6cc62c6 VS |
20758 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
20759 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
20760 | { (exit 1); exit 1; }; } | |
90dd450c | 20761 | fi |
0b2effe9 | 20762 | |
21d1c967 GD |
20763 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
20764 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
20765 | ||
1d1b75ac VZ |
20766 | wxUSE_UNIVERSAL="yes" |
20767 | ||
21d1c967 GD |
20768 | AFMINSTALL=afminstall |
20769 | TOOLKIT=MICROWIN | |
20770 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
20771 | |
20772 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 20773 | fi |
f6bcfd97 | 20774 | |
21d1c967 | 20775 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
20776 | echo "$as_me:$LINENO: checking for X" >&5 |
20777 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
20778 | ||
d8356fa3 | 20779 | |
21d1c967 GD |
20780 | # Check whether --with-x or --without-x was given. |
20781 | if test "${with_x+set}" = set; then | |
20782 | withval="$with_x" | |
2224580a | 20783 | |
e6cc62c6 | 20784 | fi; |
21d1c967 GD |
20785 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
20786 | if test "x$with_x" = xno; then | |
20787 | # The user explicitly disabled X. | |
20788 | have_x=disabled | |
20789 | else | |
20790 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
20791 | # Both variables are already set. | |
20792 | have_x=yes | |
20793 | else | |
e6cc62c6 VS |
20794 | if test "${ac_cv_have_x+set}" = set; then |
20795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
20796 | else |
20797 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
20798 | ac_x_includes=no ac_x_libraries=no |
20799 | rm -fr conftest.dir | |
20800 | if mkdir conftest.dir; then | |
20801 | cd conftest.dir | |
21d1c967 | 20802 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 20803 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
20804 | acfindx: |
20805 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 20806 | _ACEOF |
21d1c967 GD |
20807 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
20808 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
20809 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
20810 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
20811 | for ac_extension in a so sl; do | |
20812 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
e6cc62c6 | 20813 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
20814 | ac_im_usrlibdir=$ac_im_libdir; break |
20815 | fi | |
20816 | done | |
20817 | # Screen out bogus values from the imake configuration. They are | |
20818 | # bogus both because they are the default anyway, and because | |
20819 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 20820 | case $ac_im_incroot in |
21d1c967 | 20821 | /usr/include) ;; |
e6cc62c6 | 20822 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 20823 | esac |
e6cc62c6 | 20824 | case $ac_im_usrlibdir in |
21d1c967 | 20825 | /usr/lib | /lib) ;; |
e6cc62c6 | 20826 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
20827 | esac |
20828 | fi | |
20829 | cd .. | |
e6cc62c6 | 20830 | rm -fr conftest.dir |
21d1c967 | 20831 | fi |
10f2d63a | 20832 | |
e6cc62c6 VS |
20833 | # Standard set of common directories for X headers. |
20834 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
20835 | ac_x_header_dirs=' | |
20836 | /usr/X11/include | |
20837 | /usr/X11R6/include | |
20838 | /usr/X11R5/include | |
20839 | /usr/X11R4/include | |
20840 | ||
20841 | /usr/include/X11 | |
20842 | /usr/include/X11R6 | |
20843 | /usr/include/X11R5 | |
20844 | /usr/include/X11R4 | |
20845 | ||
20846 | /usr/local/X11/include | |
20847 | /usr/local/X11R6/include | |
20848 | /usr/local/X11R5/include | |
20849 | /usr/local/X11R4/include | |
20850 | ||
20851 | /usr/local/include/X11 | |
20852 | /usr/local/include/X11R6 | |
20853 | /usr/local/include/X11R5 | |
20854 | /usr/local/include/X11R4 | |
20855 | ||
20856 | /usr/X386/include | |
20857 | /usr/x386/include | |
20858 | /usr/XFree86/include/X11 | |
20859 | ||
20860 | /usr/include | |
20861 | /usr/local/include | |
20862 | /usr/unsupported/include | |
20863 | /usr/athena/include | |
20864 | /usr/local/x11r5/include | |
20865 | /usr/lpp/Xamples/include | |
20866 | ||
20867 | /usr/openwin/include | |
20868 | /usr/openwin/share/include' | |
20869 | ||
20870 | if test "$ac_x_includes" = no; then | |
20871 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 20872 | # First, try using that file with no special directory specified. |
e6cc62c6 VS |
20873 | cat >conftest.$ac_ext <<_ACEOF |
20874 | #line $LINENO "configure" | |
20875 | /* confdefs.h. */ | |
20876 | _ACEOF | |
20877 | cat confdefs.h >>conftest.$ac_ext | |
20878 | cat >>conftest.$ac_ext <<_ACEOF | |
20879 | /* end confdefs.h. */ | |
20880 | #include <X11/Intrinsic.h> | |
20881 | _ACEOF | |
20882 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20883 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20884 | ac_status=$? | |
20885 | grep -v '^ *+' conftest.er1 >conftest.err | |
20886 | rm -f conftest.er1 | |
20887 | cat conftest.err >&5 | |
20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20889 | (exit $ac_status); } >/dev/null; then | |
20890 | if test -s conftest.err; then | |
20891 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20892 | else | |
20893 | ac_cpp_err= | |
20894 | fi | |
20895 | else | |
20896 | ac_cpp_err=yes | |
20897 | fi | |
20898 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
20899 | # We can compile using X headers with no special include directory. |
20900 | ac_x_includes= | |
90dd450c | 20901 | else |
e6cc62c6 VS |
20902 | echo "$as_me: failed program was:" >&5 |
20903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20904 | ||
20905 | for ac_dir in $ac_x_header_dirs; do | |
20906 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
20907 | ac_x_includes=$ac_dir | |
20908 | break | |
20909 | fi | |
20910 | done | |
3a922bb4 | 20911 | fi |
e6cc62c6 VS |
20912 | rm -f conftest.err conftest.$ac_ext |
20913 | fi # $ac_x_includes = no | |
10f2d63a | 20914 | |
e6cc62c6 | 20915 | if test "$ac_x_libraries" = no; then |
21d1c967 | 20916 | # Check for the libraries. |
21d1c967 GD |
20917 | # See if we find them without any special options. |
20918 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
20919 | ac_save_LIBS=$LIBS |
20920 | LIBS="-lXt $LIBS" | |
20921 | cat >conftest.$ac_ext <<_ACEOF | |
20922 | #line $LINENO "configure" | |
20923 | /* confdefs.h. */ | |
20924 | _ACEOF | |
20925 | cat confdefs.h >>conftest.$ac_ext | |
20926 | cat >>conftest.$ac_ext <<_ACEOF | |
20927 | /* end confdefs.h. */ | |
20928 | #include <X11/Intrinsic.h> | |
20929 | int | |
20930 | main () | |
20931 | { | |
20932 | XtMalloc (0) | |
20933 | ; | |
20934 | return 0; | |
20935 | } | |
20936 | _ACEOF | |
20937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20939 | (eval $ac_link) 2>&5 | |
20940 | ac_status=$? | |
20941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20942 | (exit $ac_status); } && | |
20943 | { ac_try='test -s conftest$ac_exeext' | |
20944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20945 | (eval $ac_try) 2>&5 | |
20946 | ac_status=$? | |
20947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20948 | (exit $ac_status); }; }; then | |
20949 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
20950 | # We can link X programs with no special library path. |
20951 | ac_x_libraries= | |
3a922bb4 | 20952 | else |
e6cc62c6 VS |
20953 | echo "$as_me: failed program was:" >&5 |
20954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20955 | ||
20956 | LIBS=$ac_save_LIBS | |
20957 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 20958 | do |
e6cc62c6 | 20959 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 20960 | for ac_extension in a so sl; do |
e6cc62c6 | 20961 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
20962 | ac_x_libraries=$ac_dir |
20963 | break 2 | |
20964 | fi | |
20965 | done | |
20966 | done | |
3a922bb4 | 20967 | fi |
e6cc62c6 VS |
20968 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
20969 | fi # $ac_x_libraries = no | |
90dd450c | 20970 | |
e6cc62c6 | 20971 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
20972 | # Didn't find X anywhere. Cache the known absence of X. |
20973 | ac_cv_have_x="have_x=no" | |
20974 | else | |
20975 | # Record where we found X for the cache. | |
20976 | ac_cv_have_x="have_x=yes \ | |
20977 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 20978 | fi |
21d1c967 | 20979 | fi |
e6cc62c6 | 20980 | |
21d1c967 GD |
20981 | fi |
20982 | eval "$ac_cv_have_x" | |
20983 | fi # $with_x != no | |
90dd450c | 20984 | |
21d1c967 | 20985 | if test "$have_x" != yes; then |
e6cc62c6 VS |
20986 | echo "$as_me:$LINENO: result: $have_x" >&5 |
20987 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
20988 | no_x=yes |
20989 | else | |
20990 | # If each of the values was on the command line, it overrides each guess. | |
20991 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
20992 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
20993 | # Update the cache value to reflect the command line values. | |
20994 | ac_cv_have_x="have_x=yes \ | |
20995 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
20996 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
20997 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 20998 | fi |
90dd450c | 20999 | |
21d1c967 | 21000 | if test "$no_x" = yes; then |
90dd450c | 21001 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21002 | |
21003 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21004 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21005 | _ACEOF |
90dd450c VZ |
21006 | |
21007 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21008 | else | |
21009 | if test -n "$x_includes"; then | |
21010 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21011 | fi |
3a922bb4 | 21012 | |
90dd450c VZ |
21013 | # It would also be nice to do this for all -L options, not just this one. |
21014 | if test -n "$x_libraries"; then | |
21015 | X_LIBS="$X_LIBS -L$x_libraries" | |
21016 | # For Solaris; some versions of Sun CC require a space after -R and | |
21017 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21018 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21019 | "SunOS 5"*) |
e6cc62c6 VS |
21020 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21021 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21022 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21023 | cat >conftest.$ac_ext <<_ACEOF | |
21024 | #line $LINENO "configure" | |
21025 | /* confdefs.h. */ | |
21026 | _ACEOF | |
21027 | cat confdefs.h >>conftest.$ac_ext | |
21028 | cat >>conftest.$ac_ext <<_ACEOF | |
21029 | /* end confdefs.h. */ | |
21030 | ||
21031 | int | |
21032 | main () | |
21033 | { | |
90dd450c | 21034 | |
e6cc62c6 VS |
21035 | ; |
21036 | return 0; | |
21037 | } | |
21038 | _ACEOF | |
21039 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21040 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21041 | (eval $ac_link) 2>&5 | |
21042 | ac_status=$? | |
21043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21044 | (exit $ac_status); } && | |
21045 | { ac_try='test -s conftest$ac_exeext' | |
21046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21047 | (eval $ac_try) 2>&5 | |
21048 | ac_status=$? | |
21049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21050 | (exit $ac_status); }; }; then | |
90dd450c | 21051 | ac_R_nospace=yes |
3a922bb4 | 21052 | else |
e6cc62c6 VS |
21053 | echo "$as_me: failed program was:" >&5 |
21054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21055 | ||
21056 | ac_R_nospace=no | |
3a922bb4 | 21057 | fi |
e6cc62c6 | 21058 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21059 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21060 | echo "$as_me:$LINENO: result: no" >&5 |
21061 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21062 | X_LIBS="$X_LIBS -R$x_libraries" |
21063 | else | |
21064 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
21065 | cat >conftest.$ac_ext <<_ACEOF |
21066 | #line $LINENO "configure" | |
21067 | /* confdefs.h. */ | |
21068 | _ACEOF | |
21069 | cat confdefs.h >>conftest.$ac_ext | |
21070 | cat >>conftest.$ac_ext <<_ACEOF | |
21071 | /* end confdefs.h. */ | |
21072 | ||
21073 | int | |
21074 | main () | |
21075 | { | |
6f754473 | 21076 | |
e6cc62c6 VS |
21077 | ; |
21078 | return 0; | |
21079 | } | |
21080 | _ACEOF | |
21081 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21083 | (eval $ac_link) 2>&5 | |
21084 | ac_status=$? | |
21085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21086 | (exit $ac_status); } && | |
21087 | { ac_try='test -s conftest$ac_exeext' | |
21088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21089 | (eval $ac_try) 2>&5 | |
21090 | ac_status=$? | |
21091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21092 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21093 | ac_R_space=yes |
21094 | else | |
e6cc62c6 VS |
21095 | echo "$as_me: failed program was:" >&5 |
21096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21097 | ||
21098 | ac_R_space=no | |
90dd450c | 21099 | fi |
e6cc62c6 | 21100 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21101 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21102 | echo "$as_me:$LINENO: result: yes" >&5 |
21103 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21104 | X_LIBS="$X_LIBS -R $x_libraries" |
21105 | else | |
e6cc62c6 VS |
21106 | echo "$as_me:$LINENO: result: neither works" >&5 |
21107 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21108 | fi |
21109 | fi | |
e6cc62c6 | 21110 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21111 | esac |
21112 | fi | |
21113 | ||
21114 | # Check for system-dependent libraries X programs must link with. | |
21115 | # Do this before checking for the system-independent R6 libraries | |
21116 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21117 | |
90dd450c VZ |
21118 | if test "$ISC" = yes; then |
21119 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21120 | else | |
e6cc62c6 VS |
21121 | # Martyn Johnson says this is needed for Ultrix, if the X |
21122 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21123 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21124 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21125 | cat >conftest.$ac_ext <<_ACEOF | |
21126 | #line $LINENO "configure" | |
21127 | /* confdefs.h. */ | |
21128 | _ACEOF | |
21129 | cat confdefs.h >>conftest.$ac_ext | |
21130 | cat >>conftest.$ac_ext <<_ACEOF | |
21131 | /* end confdefs.h. */ | |
21132 | ||
247f5006 | 21133 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21134 | #ifdef __cplusplus |
21135 | extern "C" | |
21136 | #endif | |
247f5006 | 21137 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21138 | builtin and then its argument prototype would still apply. */ |
21139 | char XOpenDisplay (); | |
21140 | int | |
21141 | main () | |
21142 | { | |
21143 | XOpenDisplay (); | |
21144 | ; | |
21145 | return 0; | |
21146 | } | |
21147 | _ACEOF | |
21148 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21150 | (eval $ac_link) 2>&5 | |
21151 | ac_status=$? | |
21152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21153 | (exit $ac_status); } && | |
21154 | { ac_try='test -s conftest$ac_exeext' | |
21155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21156 | (eval $ac_try) 2>&5 | |
21157 | ac_status=$? | |
21158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21159 | (exit $ac_status); }; }; then | |
21160 | : | |
21161 | else | |
21162 | echo "$as_me: failed program was:" >&5 | |
21163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21164 | |
e6cc62c6 VS |
21165 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21166 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21167 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21169 | else |
e6cc62c6 VS |
21170 | ac_check_lib_save_LIBS=$LIBS |
21171 | LIBS="-ldnet $LIBS" | |
21172 | cat >conftest.$ac_ext <<_ACEOF | |
21173 | #line $LINENO "configure" | |
21174 | /* confdefs.h. */ | |
21175 | _ACEOF | |
21176 | cat confdefs.h >>conftest.$ac_ext | |
21177 | cat >>conftest.$ac_ext <<_ACEOF | |
21178 | /* end confdefs.h. */ | |
a0b9e27f | 21179 | |
e6cc62c6 VS |
21180 | /* Override any gcc2 internal prototype to avoid an error. */ |
21181 | #ifdef __cplusplus | |
21182 | extern "C" | |
21183 | #endif | |
21184 | /* We use char because int might match the return type of a gcc2 | |
21185 | builtin and then its argument prototype would still apply. */ | |
21186 | char dnet_ntoa (); | |
21187 | int | |
21188 | main () | |
21189 | { | |
21190 | dnet_ntoa (); | |
21191 | ; | |
21192 | return 0; | |
21193 | } | |
21194 | _ACEOF | |
21195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21197 | (eval $ac_link) 2>&5 | |
21198 | ac_status=$? | |
21199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21200 | (exit $ac_status); } && | |
21201 | { ac_try='test -s conftest$ac_exeext' | |
21202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21203 | (eval $ac_try) 2>&5 | |
21204 | ac_status=$? | |
21205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21206 | (exit $ac_status); }; }; then | |
21207 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21208 | else | |
21209 | echo "$as_me: failed program was:" >&5 | |
21210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21211 | ||
21212 | ac_cv_lib_dnet_dnet_ntoa=no | |
21213 | fi | |
21214 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21215 | LIBS=$ac_check_lib_save_LIBS | |
21216 | fi | |
21217 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21218 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21219 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21220 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21221 | fi |
21222 | ||
90dd450c | 21223 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21224 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21225 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21226 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21228 | else |
e6cc62c6 | 21229 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21230 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
21231 | cat >conftest.$ac_ext <<_ACEOF |
21232 | #line $LINENO "configure" | |
21233 | /* confdefs.h. */ | |
21234 | _ACEOF | |
21235 | cat confdefs.h >>conftest.$ac_ext | |
21236 | cat >>conftest.$ac_ext <<_ACEOF | |
21237 | /* end confdefs.h. */ | |
21238 | ||
90dd450c | 21239 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21240 | #ifdef __cplusplus |
21241 | extern "C" | |
21242 | #endif | |
90dd450c | 21243 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21244 | builtin and then its argument prototype would still apply. */ |
21245 | char dnet_ntoa (); | |
21246 | int | |
21247 | main () | |
21248 | { | |
21249 | dnet_ntoa (); | |
21250 | ; | |
21251 | return 0; | |
21252 | } | |
21253 | _ACEOF | |
21254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21256 | (eval $ac_link) 2>&5 | |
21257 | ac_status=$? | |
21258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21259 | (exit $ac_status); } && | |
21260 | { ac_try='test -s conftest$ac_exeext' | |
21261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21262 | (eval $ac_try) 2>&5 | |
21263 | ac_status=$? | |
21264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21265 | (exit $ac_status); }; }; then | |
21266 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21267 | else | |
21268 | echo "$as_me: failed program was:" >&5 | |
21269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21270 | ||
21271 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21272 | fi | |
21273 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21274 | LIBS=$ac_check_lib_save_LIBS | |
21275 | fi | |
21276 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21277 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21278 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21279 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21280 | fi |
21281 | ||
90dd450c | 21282 | fi |
e6cc62c6 VS |
21283 | fi |
21284 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21285 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 21286 | |
90dd450c VZ |
21287 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21288 | # to get the SysV transport functions. | |
e6cc62c6 | 21289 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21290 | # needs -lnsl. |
21291 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21292 | # on Irix 5.2, according to T.E. Dickey. |
21293 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21294 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21295 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21296 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21297 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21299 | else | |
21300 | cat >conftest.$ac_ext <<_ACEOF | |
21301 | #line $LINENO "configure" | |
21302 | /* confdefs.h. */ | |
21303 | _ACEOF | |
21304 | cat confdefs.h >>conftest.$ac_ext | |
21305 | cat >>conftest.$ac_ext <<_ACEOF | |
21306 | /* end confdefs.h. */ | |
90dd450c | 21307 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21308 | which can conflict with char gethostbyname (); below. |
21309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21310 | <limits.h> exists even on freestanding compilers. */ | |
21311 | #ifdef __STDC__ | |
21312 | # include <limits.h> | |
21313 | #else | |
21314 | # include <assert.h> | |
21315 | #endif | |
90dd450c | 21316 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21317 | #ifdef __cplusplus |
21318 | extern "C" | |
21319 | { | |
21320 | #endif | |
90dd450c | 21321 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21322 | builtin and then its argument prototype would still apply. */ |
21323 | char gethostbyname (); | |
90dd450c VZ |
21324 | /* The GNU C library defines this for functions which it implements |
21325 | to always fail with ENOSYS. Some functions are actually named | |
21326 | something starting with __ and the normal name is an alias. */ | |
21327 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21328 | choke me | |
21329 | #else | |
e6cc62c6 VS |
21330 | char (*f) () = gethostbyname; |
21331 | #endif | |
21332 | #ifdef __cplusplus | |
21333 | } | |
90dd450c | 21334 | #endif |
978f1259 | 21335 | |
e6cc62c6 VS |
21336 | int |
21337 | main () | |
21338 | { | |
21339 | return f != gethostbyname; | |
21340 | ; | |
21341 | return 0; | |
21342 | } | |
21343 | _ACEOF | |
21344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21346 | (eval $ac_link) 2>&5 | |
21347 | ac_status=$? | |
21348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21349 | (exit $ac_status); } && | |
21350 | { ac_try='test -s conftest$ac_exeext' | |
21351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21352 | (eval $ac_try) 2>&5 | |
21353 | ac_status=$? | |
21354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21355 | (exit $ac_status); }; }; then | |
21356 | ac_cv_func_gethostbyname=yes | |
21357 | else | |
21358 | echo "$as_me: failed program was:" >&5 | |
21359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21360 | ||
21361 | ac_cv_func_gethostbyname=no | |
21362 | fi | |
21363 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21364 | fi | |
21365 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21366 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 21367 | |
90dd450c | 21368 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
21369 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21370 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21371 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21373 | else |
e6cc62c6 | 21374 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21375 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
21376 | cat >conftest.$ac_ext <<_ACEOF |
21377 | #line $LINENO "configure" | |
21378 | /* confdefs.h. */ | |
21379 | _ACEOF | |
21380 | cat confdefs.h >>conftest.$ac_ext | |
21381 | cat >>conftest.$ac_ext <<_ACEOF | |
21382 | /* end confdefs.h. */ | |
21383 | ||
90dd450c | 21384 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21385 | #ifdef __cplusplus |
21386 | extern "C" | |
21387 | #endif | |
90dd450c | 21388 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21389 | builtin and then its argument prototype would still apply. */ |
21390 | char gethostbyname (); | |
21391 | int | |
21392 | main () | |
21393 | { | |
21394 | gethostbyname (); | |
21395 | ; | |
21396 | return 0; | |
21397 | } | |
21398 | _ACEOF | |
21399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21401 | (eval $ac_link) 2>&5 | |
21402 | ac_status=$? | |
21403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21404 | (exit $ac_status); } && | |
21405 | { ac_try='test -s conftest$ac_exeext' | |
21406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21407 | (eval $ac_try) 2>&5 | |
21408 | ac_status=$? | |
21409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21410 | (exit $ac_status); }; }; then | |
21411 | ac_cv_lib_nsl_gethostbyname=yes | |
21412 | else | |
21413 | echo "$as_me: failed program was:" >&5 | |
21414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21415 | ||
21416 | ac_cv_lib_nsl_gethostbyname=no | |
21417 | fi | |
21418 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21419 | LIBS=$ac_check_lib_save_LIBS | |
21420 | fi | |
21421 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21422 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21423 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21424 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 21425 | fi |
247f5006 | 21426 | |
e6cc62c6 VS |
21427 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
21428 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21429 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21430 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21432 | else |
e6cc62c6 VS |
21433 | ac_check_lib_save_LIBS=$LIBS |
21434 | LIBS="-lbsd $LIBS" | |
21435 | cat >conftest.$ac_ext <<_ACEOF | |
21436 | #line $LINENO "configure" | |
21437 | /* confdefs.h. */ | |
21438 | _ACEOF | |
21439 | cat confdefs.h >>conftest.$ac_ext | |
21440 | cat >>conftest.$ac_ext <<_ACEOF | |
21441 | /* end confdefs.h. */ | |
21442 | ||
21443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21444 | #ifdef __cplusplus | |
21445 | extern "C" | |
21446 | #endif | |
21447 | /* We use char because int might match the return type of a gcc2 | |
21448 | builtin and then its argument prototype would still apply. */ | |
21449 | char gethostbyname (); | |
21450 | int | |
21451 | main () | |
21452 | { | |
21453 | gethostbyname (); | |
21454 | ; | |
21455 | return 0; | |
21456 | } | |
21457 | _ACEOF | |
21458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21460 | (eval $ac_link) 2>&5 | |
21461 | ac_status=$? | |
21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21463 | (exit $ac_status); } && | |
21464 | { ac_try='test -s conftest$ac_exeext' | |
21465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21466 | (eval $ac_try) 2>&5 | |
21467 | ac_status=$? | |
21468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21469 | (exit $ac_status); }; }; then | |
21470 | ac_cv_lib_bsd_gethostbyname=yes | |
21471 | else | |
21472 | echo "$as_me: failed program was:" >&5 | |
21473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21474 | ||
21475 | ac_cv_lib_bsd_gethostbyname=no | |
21476 | fi | |
21477 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21478 | LIBS=$ac_check_lib_save_LIBS | |
21479 | fi | |
21480 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21481 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21482 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21483 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 21484 | fi |
b12915c1 | 21485 | |
e6cc62c6 | 21486 | fi |
90dd450c VZ |
21487 | fi |
21488 | ||
21489 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21490 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21491 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
21492 | # on later versions), says Simon Leinen: it contains gethostby* |
21493 | # variants that don't use the name server (or something). -lsocket | |
21494 | # must be given before -lnsl if both are needed. We assume that | |
21495 | # if connect needs -lnsl, so does gethostbyname. | |
21496 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21497 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21498 | if test "${ac_cv_func_connect+set}" = set; then | |
21499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21500 | else | |
21501 | cat >conftest.$ac_ext <<_ACEOF | |
21502 | #line $LINENO "configure" | |
21503 | /* confdefs.h. */ | |
21504 | _ACEOF | |
21505 | cat confdefs.h >>conftest.$ac_ext | |
21506 | cat >>conftest.$ac_ext <<_ACEOF | |
21507 | /* end confdefs.h. */ | |
90dd450c | 21508 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21509 | which can conflict with char connect (); below. |
21510 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21511 | <limits.h> exists even on freestanding compilers. */ | |
21512 | #ifdef __STDC__ | |
21513 | # include <limits.h> | |
21514 | #else | |
21515 | # include <assert.h> | |
21516 | #endif | |
90dd450c | 21517 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21518 | #ifdef __cplusplus |
21519 | extern "C" | |
21520 | { | |
21521 | #endif | |
90dd450c | 21522 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21523 | builtin and then its argument prototype would still apply. */ |
21524 | char connect (); | |
90dd450c VZ |
21525 | /* The GNU C library defines this for functions which it implements |
21526 | to always fail with ENOSYS. Some functions are actually named | |
21527 | something starting with __ and the normal name is an alias. */ | |
21528 | #if defined (__stub_connect) || defined (__stub___connect) | |
21529 | choke me | |
21530 | #else | |
e6cc62c6 VS |
21531 | char (*f) () = connect; |
21532 | #endif | |
21533 | #ifdef __cplusplus | |
21534 | } | |
90dd450c VZ |
21535 | #endif |
21536 | ||
e6cc62c6 VS |
21537 | int |
21538 | main () | |
21539 | { | |
21540 | return f != connect; | |
21541 | ; | |
21542 | return 0; | |
21543 | } | |
21544 | _ACEOF | |
21545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21547 | (eval $ac_link) 2>&5 | |
21548 | ac_status=$? | |
21549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21550 | (exit $ac_status); } && | |
21551 | { ac_try='test -s conftest$ac_exeext' | |
21552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21553 | (eval $ac_try) 2>&5 | |
21554 | ac_status=$? | |
21555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21556 | (exit $ac_status); }; }; then | |
21557 | ac_cv_func_connect=yes | |
21558 | else | |
21559 | echo "$as_me: failed program was:" >&5 | |
21560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21561 | ||
21562 | ac_cv_func_connect=no | |
21563 | fi | |
21564 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21565 | fi | |
21566 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
21567 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 21568 | |
90dd450c | 21569 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
21570 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
21571 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
21572 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
21573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21574 | else |
e6cc62c6 | 21575 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21576 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21577 | cat >conftest.$ac_ext <<_ACEOF |
21578 | #line $LINENO "configure" | |
21579 | /* confdefs.h. */ | |
21580 | _ACEOF | |
21581 | cat confdefs.h >>conftest.$ac_ext | |
21582 | cat >>conftest.$ac_ext <<_ACEOF | |
21583 | /* end confdefs.h. */ | |
21584 | ||
90dd450c | 21585 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21586 | #ifdef __cplusplus |
21587 | extern "C" | |
21588 | #endif | |
90dd450c | 21589 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21590 | builtin and then its argument prototype would still apply. */ |
21591 | char connect (); | |
21592 | int | |
21593 | main () | |
21594 | { | |
21595 | connect (); | |
21596 | ; | |
21597 | return 0; | |
21598 | } | |
21599 | _ACEOF | |
21600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21602 | (eval $ac_link) 2>&5 | |
21603 | ac_status=$? | |
21604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21605 | (exit $ac_status); } && | |
21606 | { ac_try='test -s conftest$ac_exeext' | |
21607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21608 | (eval $ac_try) 2>&5 | |
21609 | ac_status=$? | |
21610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21611 | (exit $ac_status); }; }; then | |
21612 | ac_cv_lib_socket_connect=yes | |
21613 | else | |
21614 | echo "$as_me: failed program was:" >&5 | |
21615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21616 | ||
21617 | ac_cv_lib_socket_connect=no | |
21618 | fi | |
21619 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21620 | LIBS=$ac_check_lib_save_LIBS | |
21621 | fi | |
21622 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
21623 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
21624 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 21625 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 21626 | fi |
77e13408 | 21627 | |
90dd450c | 21628 | fi |
25d0687a | 21629 | |
e6cc62c6 VS |
21630 | # Guillermo Gomez says -lposix is necessary on A/UX. |
21631 | echo "$as_me:$LINENO: checking for remove" >&5 | |
21632 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
21633 | if test "${ac_cv_func_remove+set}" = set; then | |
21634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21635 | else | |
21636 | cat >conftest.$ac_ext <<_ACEOF | |
21637 | #line $LINENO "configure" | |
21638 | /* confdefs.h. */ | |
21639 | _ACEOF | |
21640 | cat confdefs.h >>conftest.$ac_ext | |
21641 | cat >>conftest.$ac_ext <<_ACEOF | |
21642 | /* end confdefs.h. */ | |
90dd450c | 21643 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21644 | which can conflict with char remove (); below. |
21645 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21646 | <limits.h> exists even on freestanding compilers. */ | |
21647 | #ifdef __STDC__ | |
21648 | # include <limits.h> | |
21649 | #else | |
21650 | # include <assert.h> | |
21651 | #endif | |
90dd450c | 21652 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21653 | #ifdef __cplusplus |
21654 | extern "C" | |
21655 | { | |
21656 | #endif | |
90dd450c | 21657 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21658 | builtin and then its argument prototype would still apply. */ |
21659 | char remove (); | |
90dd450c VZ |
21660 | /* The GNU C library defines this for functions which it implements |
21661 | to always fail with ENOSYS. Some functions are actually named | |
21662 | something starting with __ and the normal name is an alias. */ | |
21663 | #if defined (__stub_remove) || defined (__stub___remove) | |
21664 | choke me | |
21665 | #else | |
e6cc62c6 VS |
21666 | char (*f) () = remove; |
21667 | #endif | |
21668 | #ifdef __cplusplus | |
21669 | } | |
90dd450c | 21670 | #endif |
55e80573 | 21671 | |
e6cc62c6 VS |
21672 | int |
21673 | main () | |
21674 | { | |
21675 | return f != remove; | |
21676 | ; | |
21677 | return 0; | |
21678 | } | |
21679 | _ACEOF | |
21680 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21682 | (eval $ac_link) 2>&5 | |
21683 | ac_status=$? | |
21684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21685 | (exit $ac_status); } && | |
21686 | { ac_try='test -s conftest$ac_exeext' | |
21687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21688 | (eval $ac_try) 2>&5 | |
21689 | ac_status=$? | |
21690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21691 | (exit $ac_status); }; }; then | |
21692 | ac_cv_func_remove=yes | |
21693 | else | |
21694 | echo "$as_me: failed program was:" >&5 | |
21695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21696 | ||
21697 | ac_cv_func_remove=no | |
21698 | fi | |
21699 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21700 | fi | |
21701 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
21702 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 21703 | |
90dd450c | 21704 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
21705 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
21706 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
21707 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
21708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21709 | else |
e6cc62c6 | 21710 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21711 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
21712 | cat >conftest.$ac_ext <<_ACEOF |
21713 | #line $LINENO "configure" | |
21714 | /* confdefs.h. */ | |
21715 | _ACEOF | |
21716 | cat confdefs.h >>conftest.$ac_ext | |
21717 | cat >>conftest.$ac_ext <<_ACEOF | |
21718 | /* end confdefs.h. */ | |
21719 | ||
90dd450c | 21720 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21721 | #ifdef __cplusplus |
21722 | extern "C" | |
21723 | #endif | |
90dd450c | 21724 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21725 | builtin and then its argument prototype would still apply. */ |
21726 | char remove (); | |
21727 | int | |
21728 | main () | |
21729 | { | |
21730 | remove (); | |
21731 | ; | |
21732 | return 0; | |
21733 | } | |
21734 | _ACEOF | |
21735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21737 | (eval $ac_link) 2>&5 | |
21738 | ac_status=$? | |
21739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21740 | (exit $ac_status); } && | |
21741 | { ac_try='test -s conftest$ac_exeext' | |
21742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21743 | (eval $ac_try) 2>&5 | |
21744 | ac_status=$? | |
21745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21746 | (exit $ac_status); }; }; then | |
21747 | ac_cv_lib_posix_remove=yes | |
21748 | else | |
21749 | echo "$as_me: failed program was:" >&5 | |
21750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21751 | ||
21752 | ac_cv_lib_posix_remove=no | |
21753 | fi | |
21754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21755 | LIBS=$ac_check_lib_save_LIBS | |
21756 | fi | |
21757 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
21758 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
21759 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 21760 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 21761 | fi |
f6bcfd97 | 21762 | |
6fa882bd RR |
21763 | fi |
21764 | ||
90dd450c | 21765 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
21766 | echo "$as_me:$LINENO: checking for shmat" >&5 |
21767 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
21768 | if test "${ac_cv_func_shmat+set}" = set; then | |
21769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21770 | else | |
21771 | cat >conftest.$ac_ext <<_ACEOF | |
21772 | #line $LINENO "configure" | |
21773 | /* confdefs.h. */ | |
21774 | _ACEOF | |
21775 | cat confdefs.h >>conftest.$ac_ext | |
21776 | cat >>conftest.$ac_ext <<_ACEOF | |
21777 | /* end confdefs.h. */ | |
90dd450c | 21778 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21779 | which can conflict with char shmat (); below. |
21780 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21781 | <limits.h> exists even on freestanding compilers. */ | |
21782 | #ifdef __STDC__ | |
21783 | # include <limits.h> | |
21784 | #else | |
21785 | # include <assert.h> | |
21786 | #endif | |
90dd450c | 21787 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21788 | #ifdef __cplusplus |
21789 | extern "C" | |
21790 | { | |
21791 | #endif | |
90dd450c | 21792 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21793 | builtin and then its argument prototype would still apply. */ |
21794 | char shmat (); | |
90dd450c VZ |
21795 | /* The GNU C library defines this for functions which it implements |
21796 | to always fail with ENOSYS. Some functions are actually named | |
21797 | something starting with __ and the normal name is an alias. */ | |
21798 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
21799 | choke me | |
21800 | #else | |
e6cc62c6 VS |
21801 | char (*f) () = shmat; |
21802 | #endif | |
21803 | #ifdef __cplusplus | |
21804 | } | |
90dd450c | 21805 | #endif |
10f2d63a | 21806 | |
e6cc62c6 VS |
21807 | int |
21808 | main () | |
21809 | { | |
21810 | return f != shmat; | |
21811 | ; | |
21812 | return 0; | |
21813 | } | |
21814 | _ACEOF | |
21815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21817 | (eval $ac_link) 2>&5 | |
21818 | ac_status=$? | |
21819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21820 | (exit $ac_status); } && | |
21821 | { ac_try='test -s conftest$ac_exeext' | |
21822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21823 | (eval $ac_try) 2>&5 | |
21824 | ac_status=$? | |
21825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21826 | (exit $ac_status); }; }; then | |
21827 | ac_cv_func_shmat=yes | |
21828 | else | |
21829 | echo "$as_me: failed program was:" >&5 | |
21830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21831 | ||
21832 | ac_cv_func_shmat=no | |
21833 | fi | |
21834 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21835 | fi | |
21836 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
21837 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 21838 | |
90dd450c | 21839 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
21840 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
21841 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
21842 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
21843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 21844 | else |
e6cc62c6 | 21845 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21846 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
21847 | cat >conftest.$ac_ext <<_ACEOF |
21848 | #line $LINENO "configure" | |
21849 | /* confdefs.h. */ | |
21850 | _ACEOF | |
21851 | cat confdefs.h >>conftest.$ac_ext | |
21852 | cat >>conftest.$ac_ext <<_ACEOF | |
21853 | /* end confdefs.h. */ | |
21854 | ||
8284b0c5 | 21855 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21856 | #ifdef __cplusplus |
21857 | extern "C" | |
21858 | #endif | |
90dd450c | 21859 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21860 | builtin and then its argument prototype would still apply. */ |
21861 | char shmat (); | |
21862 | int | |
21863 | main () | |
21864 | { | |
21865 | shmat (); | |
21866 | ; | |
21867 | return 0; | |
21868 | } | |
21869 | _ACEOF | |
21870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21872 | (eval $ac_link) 2>&5 | |
21873 | ac_status=$? | |
21874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21875 | (exit $ac_status); } && | |
21876 | { ac_try='test -s conftest$ac_exeext' | |
21877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21878 | (eval $ac_try) 2>&5 | |
21879 | ac_status=$? | |
21880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21881 | (exit $ac_status); }; }; then | |
21882 | ac_cv_lib_ipc_shmat=yes | |
21883 | else | |
21884 | echo "$as_me: failed program was:" >&5 | |
21885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21886 | ||
21887 | ac_cv_lib_ipc_shmat=no | |
21888 | fi | |
21889 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21890 | LIBS=$ac_check_lib_save_LIBS | |
21891 | fi | |
21892 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
21893 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
21894 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 21895 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
21896 | fi |
21897 | ||
d558c907 | 21898 | fi |
90dd450c | 21899 | fi |
3a922bb4 | 21900 | |
90dd450c | 21901 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 21902 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
21903 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
21904 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
21905 | # check for ICE first), but we must link in the order -lSM -lICE or | |
21906 | # we get undefined symbols. So assume we have SM if we have ICE. | |
21907 | # These have to be linked with before -lX11, unlike the other | |
21908 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
21909 | # John Interrante, Karl Berry |
21910 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
21911 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
21912 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
21913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21914 | else | |
21915 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 21916 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21917 | cat >conftest.$ac_ext <<_ACEOF |
21918 | #line $LINENO "configure" | |
21919 | /* confdefs.h. */ | |
21920 | _ACEOF | |
21921 | cat confdefs.h >>conftest.$ac_ext | |
21922 | cat >>conftest.$ac_ext <<_ACEOF | |
21923 | /* end confdefs.h. */ | |
21924 | ||
90dd450c | 21925 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21926 | #ifdef __cplusplus |
21927 | extern "C" | |
21928 | #endif | |
90dd450c | 21929 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21930 | builtin and then its argument prototype would still apply. */ |
21931 | char IceConnectionNumber (); | |
21932 | int | |
21933 | main () | |
21934 | { | |
21935 | IceConnectionNumber (); | |
21936 | ; | |
21937 | return 0; | |
21938 | } | |
21939 | _ACEOF | |
21940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21942 | (eval $ac_link) 2>&5 | |
21943 | ac_status=$? | |
21944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21945 | (exit $ac_status); } && | |
21946 | { ac_try='test -s conftest$ac_exeext' | |
21947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21948 | (eval $ac_try) 2>&5 | |
21949 | ac_status=$? | |
21950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21951 | (exit $ac_status); }; }; then | |
21952 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
21953 | else | |
21954 | echo "$as_me: failed program was:" >&5 | |
21955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21956 | ||
21957 | ac_cv_lib_ICE_IceConnectionNumber=no | |
21958 | fi | |
21959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21960 | LIBS=$ac_check_lib_save_LIBS | |
21961 | fi | |
21962 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
21963 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
21964 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 21965 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 21966 | fi |
10f2d63a | 21967 | |
e6cc62c6 | 21968 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
21969 | |
21970 | fi | |
21971 | ||
8284b0c5 | 21972 | |
90dd450c | 21973 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
21974 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
21975 | echo "$as_me: error: X11 not found" >&2;} | |
21976 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
21977 | fi |
21978 | ||
21979 | GUI_TK_LIBRARY="$X_LIBS" | |
21980 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
21981 | AFMINSTALL=afminstall | |
21982 | COMPILED_X_PROGRAM=0 | |
21983 | ||
21d1c967 | 21984 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
21985 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
21986 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 21987 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
21988 | echo "$as_me:$LINENO: result: not found" >&5 |
21989 | echo "${ECHO_T}not found" >&6 | |
21990 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
21991 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
21992 | { (exit 1); exit 1; }; } | |
90dd450c | 21993 | else |
e6cc62c6 VS |
21994 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
21995 | echo "${ECHO_T}$MICROWIN" >&6 | |
21996 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 21997 | #define wxUSE_NANOX 1 |
e6cc62c6 | 21998 | _ACEOF |
21d1c967 | 21999 | |
90dd450c VZ |
22000 | fi |
22001 | fi | |
22002 | ||
22003 | xpm_link= | |
e6cc62c6 VS |
22004 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
22005 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
22006 | ||
90dd450c | 22007 | ac_find_libraries= |
2b5f62a0 | 22008 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
22009 | do |
22010 | for ac_extension in a so sl dylib; do | |
22011 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
22012 | ac_find_libraries=$ac_dir | |
22013 | break 2 | |
22014 | fi | |
22015 | done | |
22016 | done | |
22017 | ||
22018 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 22019 | |
90dd450c VZ |
22020 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
22021 | result=$? | |
22022 | if test $result = 0; then | |
22023 | ac_path_to_link="" | |
22024 | else | |
22025 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 22026 | fi |
90dd450c | 22027 | |
21d1c967 GD |
22028 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
22029 | xpm_link=" -lXpm" | |
e6cc62c6 | 22030 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22031 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22032 | _ACEOF |
90dd450c | 22033 | |
e6cc62c6 VS |
22034 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
22035 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 22036 | else |
e6cc62c6 VS |
22037 | cat >conftest.$ac_ext <<_ACEOF |
22038 | #line $LINENO "configure" | |
22039 | /* confdefs.h. */ | |
22040 | _ACEOF | |
22041 | cat confdefs.h >>conftest.$ac_ext | |
22042 | cat >>conftest.$ac_ext <<_ACEOF | |
22043 | /* end confdefs.h. */ | |
90dd450c | 22044 | |
21d1c967 | 22045 | #include <X11/xpm.h> |
e6cc62c6 VS |
22046 | |
22047 | int | |
22048 | main () | |
22049 | { | |
6f72b082 | 22050 | |
21d1c967 GD |
22051 | int version; |
22052 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
22053 | |
22054 | ; | |
22055 | return 0; | |
22056 | } | |
22057 | _ACEOF | |
22058 | rm -f conftest.$ac_objext | |
22059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22060 | (eval $ac_compile) 2>&5 | |
22061 | ac_status=$? | |
22062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22063 | (exit $ac_status); } && | |
22064 | { ac_try='test -s conftest.$ac_objext' | |
22065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22066 | (eval $ac_try) 2>&5 | |
22067 | ac_status=$? | |
22068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22069 | (exit $ac_status); }; }; then | |
22070 | ||
21d1c967 | 22071 | xpm_link=" -lXpm" |
e6cc62c6 | 22072 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22073 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22074 | _ACEOF |
90dd450c | 22075 | |
e6cc62c6 VS |
22076 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
22077 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 22078 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 22079 | |
21d1c967 | 22080 | else |
e6cc62c6 VS |
22081 | echo "$as_me: failed program was:" >&5 |
22082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22083 | ||
22084 | ||
22085 | echo "$as_me:$LINENO: result: no" >&5 | |
22086 | echo "${ECHO_T}no" >&6 | |
22087 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22088 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22089 | ||
22090 | ||
6f72b082 | 22091 | fi |
e6cc62c6 | 22092 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22093 | fi |
90dd450c | 22094 | |
e6cc62c6 VS |
22095 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
22096 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22097 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f7f78039 | 22099 | else |
e6cc62c6 | 22100 | ac_check_lib_save_LIBS=$LIBS |
f7f78039 | 22101 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" |
e6cc62c6 VS |
22102 | cat >conftest.$ac_ext <<_ACEOF |
22103 | #line $LINENO "configure" | |
22104 | /* confdefs.h. */ | |
22105 | _ACEOF | |
22106 | cat confdefs.h >>conftest.$ac_ext | |
22107 | cat >>conftest.$ac_ext <<_ACEOF | |
22108 | /* end confdefs.h. */ | |
22109 | ||
f7f78039 | 22110 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22111 | #ifdef __cplusplus |
22112 | extern "C" | |
22113 | #endif | |
f7f78039 | 22114 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22115 | builtin and then its argument prototype would still apply. */ |
22116 | char XShapeQueryExtension (); | |
22117 | int | |
22118 | main () | |
22119 | { | |
22120 | XShapeQueryExtension (); | |
22121 | ; | |
22122 | return 0; | |
22123 | } | |
22124 | _ACEOF | |
22125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22127 | (eval $ac_link) 2>&5 | |
22128 | ac_status=$? | |
22129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22130 | (exit $ac_status); } && | |
22131 | { ac_try='test -s conftest$ac_exeext' | |
22132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22133 | (eval $ac_try) 2>&5 | |
22134 | ac_status=$? | |
22135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22136 | (exit $ac_status); }; }; then | |
22137 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22138 | else | |
22139 | echo "$as_me: failed program was:" >&5 | |
22140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22141 | ||
22142 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22143 | fi | |
22144 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22145 | LIBS=$ac_check_lib_save_LIBS | |
22146 | fi | |
22147 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22148 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22149 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
f7f78039 | 22150 | |
f7f78039 MB |
22151 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" |
22152 | wxHAVE_XEXT_LIB=1 | |
e6cc62c6 | 22153 | |
f7f78039 MB |
22154 | fi |
22155 | ||
22156 | ||
2b5f62a0 | 22157 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22158 | |
2b5f62a0 | 22159 | succeeded=no |
90dd450c | 22160 | |
2b5f62a0 VZ |
22161 | if test -z "$PKG_CONFIG"; then |
22162 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22163 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22164 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22165 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22166 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22168 | else |
e6cc62c6 VS |
22169 | case $PKG_CONFIG in |
22170 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22171 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22172 | ;; | |
2b5f62a0 | 22173 | *) |
e6cc62c6 VS |
22174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22175 | for as_dir in $PATH | |
22176 | do | |
22177 | IFS=$as_save_IFS | |
22178 | test -z "$as_dir" && as_dir=. | |
22179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22181 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22182 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22183 | break 2 | |
22184 | fi | |
22185 | done | |
22186 | done | |
22187 | ||
2b5f62a0 VZ |
22188 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22189 | ;; | |
22190 | esac | |
22191 | fi | |
e6cc62c6 VS |
22192 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22193 | ||
2b5f62a0 | 22194 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22195 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22196 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22197 | else |
e6cc62c6 VS |
22198 | echo "$as_me:$LINENO: result: no" >&5 |
22199 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22200 | fi |
22201 | ||
22202 | fi | |
22203 | ||
22204 | if test "$PKG_CONFIG" = "no" ; then | |
22205 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22206 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22207 | echo "*** to the full path to pkg-config." | |
22208 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22209 | else | |
22210 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22211 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22212 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22213 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22214 | |
22215 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22216 | echo "$as_me:$LINENO: result: yes" >&5 |
22217 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22218 | succeeded=yes |
22219 | ||
e6cc62c6 VS |
22220 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22221 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22222 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22223 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22224 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22225 | |
e6cc62c6 VS |
22226 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22227 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22228 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22229 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22230 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22231 | else |
22232 | PANGOX_CFLAGS="" | |
22233 | PANGOX_LIBS="" | |
e6cc62c6 | 22234 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22235 | ## do set a variable so people can do so. |
22236 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22237 | |
2b5f62a0 VZ |
22238 | fi |
22239 | ||
e6cc62c6 VS |
22240 | |
22241 | ||
2b5f62a0 VZ |
22242 | else |
22243 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22244 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22245 | fi | |
22246 | fi | |
22247 | ||
22248 | if test $succeeded = yes; then | |
e6cc62c6 | 22249 | |
2b5f62a0 VZ |
22250 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
22251 | LIBS="$LIBS $PANGOX_LIBS" | |
e6cc62c6 | 22252 | |
2b5f62a0 | 22253 | else |
e6cc62c6 VS |
22254 | |
22255 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22256 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22257 | { (exit 1); exit 1; }; } | |
22258 | ||
22259 | ||
2b5f62a0 VZ |
22260 | fi |
22261 | ||
e6cc62c6 | 22262 | |
2b5f62a0 VZ |
22263 | succeeded=no |
22264 | ||
22265 | if test -z "$PKG_CONFIG"; then | |
22266 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22267 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22268 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22270 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22272 | else |
e6cc62c6 VS |
22273 | case $PKG_CONFIG in |
22274 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22275 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22276 | ;; | |
2b5f62a0 | 22277 | *) |
e6cc62c6 VS |
22278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22279 | for as_dir in $PATH | |
22280 | do | |
22281 | IFS=$as_save_IFS | |
22282 | test -z "$as_dir" && as_dir=. | |
22283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22285 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22287 | break 2 | |
22288 | fi | |
22289 | done | |
22290 | done | |
22291 | ||
2b5f62a0 VZ |
22292 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22293 | ;; | |
22294 | esac | |
22295 | fi | |
e6cc62c6 VS |
22296 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22297 | ||
2b5f62a0 | 22298 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22299 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22300 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22301 | else |
e6cc62c6 VS |
22302 | echo "$as_me:$LINENO: result: no" >&5 |
22303 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22304 | fi |
22305 | ||
22306 | fi | |
22307 | ||
22308 | if test "$PKG_CONFIG" = "no" ; then | |
22309 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22310 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22311 | echo "*** to the full path to pkg-config." | |
22312 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22313 | else | |
22314 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22315 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22316 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22317 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22318 | |
22319 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22320 | echo "$as_me:$LINENO: result: yes" >&5 |
22321 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22322 | succeeded=yes |
22323 | ||
e6cc62c6 VS |
22324 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22325 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22326 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22327 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22328 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22329 | |
e6cc62c6 VS |
22330 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22331 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22332 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22333 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22334 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22335 | else |
22336 | PANGOFT2_CFLAGS="" | |
22337 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22338 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22339 | ## do set a variable so people can do so. |
22340 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22341 | |
2b5f62a0 VZ |
22342 | fi |
22343 | ||
e6cc62c6 VS |
22344 | |
22345 | ||
2b5f62a0 VZ |
22346 | else |
22347 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22348 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22349 | fi | |
22350 | fi | |
22351 | ||
22352 | if test $succeeded = yes; then | |
e6cc62c6 | 22353 | |
2b5f62a0 VZ |
22354 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
22355 | LIBS="$LIBS $PANGOFT2_LIBS" | |
e6cc62c6 | 22356 | |
2b5f62a0 | 22357 | else |
e6cc62c6 VS |
22358 | |
22359 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22360 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22361 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22362 | |
22363 | ||
2b5f62a0 VZ |
22364 | fi |
22365 | ||
e6cc62c6 | 22366 | |
2b5f62a0 VZ |
22367 | succeeded=no |
22368 | ||
22369 | if test -z "$PKG_CONFIG"; then | |
22370 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22371 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22374 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22376 | else |
e6cc62c6 VS |
22377 | case $PKG_CONFIG in |
22378 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22379 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22380 | ;; | |
2b5f62a0 | 22381 | *) |
e6cc62c6 VS |
22382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22383 | for as_dir in $PATH | |
22384 | do | |
22385 | IFS=$as_save_IFS | |
22386 | test -z "$as_dir" && as_dir=. | |
22387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22389 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22391 | break 2 | |
22392 | fi | |
22393 | done | |
22394 | done | |
22395 | ||
2b5f62a0 VZ |
22396 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22397 | ;; | |
22398 | esac | |
22399 | fi | |
e6cc62c6 VS |
22400 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22401 | ||
2b5f62a0 | 22402 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22403 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22404 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22405 | else |
e6cc62c6 VS |
22406 | echo "$as_me:$LINENO: result: no" >&5 |
22407 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22408 | fi |
22409 | ||
22410 | fi | |
22411 | ||
22412 | if test "$PKG_CONFIG" = "no" ; then | |
22413 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22414 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22415 | echo "*** to the full path to pkg-config." | |
22416 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22417 | else | |
22418 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22419 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22420 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22421 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22422 | |
22423 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22424 | echo "$as_me:$LINENO: result: yes" >&5 |
22425 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22426 | succeeded=yes |
22427 | ||
e6cc62c6 VS |
22428 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22429 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22430 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22431 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22432 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22433 | |
e6cc62c6 VS |
22434 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22435 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22436 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22437 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22438 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22439 | else |
22440 | PANGOXFT_CFLAGS="" | |
22441 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22442 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22443 | ## do set a variable so people can do so. |
22444 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22445 | |
2b5f62a0 VZ |
22446 | fi |
22447 | ||
e6cc62c6 VS |
22448 | |
22449 | ||
2b5f62a0 VZ |
22450 | else |
22451 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22452 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22453 | fi | |
22454 | fi | |
22455 | ||
22456 | if test $succeeded = yes; then | |
e6cc62c6 | 22457 | |
2b5f62a0 VZ |
22458 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
22459 | LIBS="$LIBS $PANGOXFT_LIBS" | |
e6cc62c6 | 22460 | |
2b5f62a0 | 22461 | else |
e6cc62c6 VS |
22462 | |
22463 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22464 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22465 | ||
22466 | ||
2b5f62a0 VZ |
22467 | fi |
22468 | ||
22469 | fi | |
22470 | ||
22471 | wxUSE_UNIVERSAL="yes" | |
22472 | ||
22473 | if test "$wxUSE_NANOX" = "yes"; then | |
22474 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 22475 | 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" |
2b5f62a0 VZ |
22476 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
22477 | else | |
22478 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22479 | fi | |
22480 | ||
22481 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22482 | TOOLKIT=X11 | |
22483 | GUIDIST=X11_DIST | |
22484 | fi | |
22485 | ||
21d1c967 GD |
22486 | if test "$wxUSE_MOTIF" = 1; then |
22487 | if test "$no_x" = yes; then | |
22488 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
22489 | |
22490 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22491 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22492 | _ACEOF |
21d1c967 GD |
22493 | |
22494 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22495 | else | |
22496 | if test -n "$x_includes"; then | |
22497 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
22498 | fi |
22499 | ||
21d1c967 GD |
22500 | # It would also be nice to do this for all -L options, not just this one. |
22501 | if test -n "$x_libraries"; then | |
22502 | X_LIBS="$X_LIBS -L$x_libraries" | |
22503 | # For Solaris; some versions of Sun CC require a space after -R and | |
22504 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22505 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 22506 | "SunOS 5"*) |
e6cc62c6 VS |
22507 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22508 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22509 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22510 | cat >conftest.$ac_ext <<_ACEOF | |
22511 | #line $LINENO "configure" | |
22512 | /* confdefs.h. */ | |
22513 | _ACEOF | |
22514 | cat confdefs.h >>conftest.$ac_ext | |
22515 | cat >>conftest.$ac_ext <<_ACEOF | |
22516 | /* end confdefs.h. */ | |
22517 | ||
22518 | int | |
22519 | main () | |
22520 | { | |
21d1c967 | 22521 | |
e6cc62c6 VS |
22522 | ; |
22523 | return 0; | |
22524 | } | |
22525 | _ACEOF | |
22526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22528 | (eval $ac_link) 2>&5 | |
22529 | ac_status=$? | |
22530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22531 | (exit $ac_status); } && | |
22532 | { ac_try='test -s conftest$ac_exeext' | |
22533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22534 | (eval $ac_try) 2>&5 | |
22535 | ac_status=$? | |
22536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22537 | (exit $ac_status); }; }; then | |
21d1c967 | 22538 | ac_R_nospace=yes |
698dcdb6 | 22539 | else |
e6cc62c6 VS |
22540 | echo "$as_me: failed program was:" >&5 |
22541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22542 | ||
22543 | ac_R_nospace=no | |
10f2d63a | 22544 | fi |
e6cc62c6 | 22545 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22546 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22547 | echo "$as_me:$LINENO: result: no" >&5 |
22548 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22549 | X_LIBS="$X_LIBS -R$x_libraries" |
22550 | else | |
22551 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
22552 | cat >conftest.$ac_ext <<_ACEOF |
22553 | #line $LINENO "configure" | |
22554 | /* confdefs.h. */ | |
22555 | _ACEOF | |
22556 | cat confdefs.h >>conftest.$ac_ext | |
22557 | cat >>conftest.$ac_ext <<_ACEOF | |
22558 | /* end confdefs.h. */ | |
22559 | ||
22560 | int | |
22561 | main () | |
22562 | { | |
f0c87536 | 22563 | |
e6cc62c6 VS |
22564 | ; |
22565 | return 0; | |
22566 | } | |
22567 | _ACEOF | |
22568 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22570 | (eval $ac_link) 2>&5 | |
22571 | ac_status=$? | |
22572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22573 | (exit $ac_status); } && | |
22574 | { ac_try='test -s conftest$ac_exeext' | |
22575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22576 | (eval $ac_try) 2>&5 | |
22577 | ac_status=$? | |
22578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22579 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22580 | ac_R_space=yes |
22581 | else | |
e6cc62c6 VS |
22582 | echo "$as_me: failed program was:" >&5 |
22583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22584 | ||
22585 | ac_R_space=no | |
21d1c967 | 22586 | fi |
e6cc62c6 | 22587 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22588 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22589 | echo "$as_me:$LINENO: result: yes" >&5 |
22590 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
22591 | X_LIBS="$X_LIBS -R $x_libraries" |
22592 | else | |
e6cc62c6 VS |
22593 | echo "$as_me:$LINENO: result: neither works" >&5 |
22594 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
22595 | fi |
22596 | fi | |
e6cc62c6 | 22597 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
22598 | esac |
22599 | fi | |
90dd450c | 22600 | |
21d1c967 GD |
22601 | # Check for system-dependent libraries X programs must link with. |
22602 | # Do this before checking for the system-independent R6 libraries | |
22603 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
22604 | ||
22605 | if test "$ISC" = yes; then | |
22606 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22607 | else | |
e6cc62c6 VS |
22608 | # Martyn Johnson says this is needed for Ultrix, if the X |
22609 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 22610 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22611 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22612 | cat >conftest.$ac_ext <<_ACEOF | |
22613 | #line $LINENO "configure" | |
22614 | /* confdefs.h. */ | |
22615 | _ACEOF | |
22616 | cat confdefs.h >>conftest.$ac_ext | |
22617 | cat >>conftest.$ac_ext <<_ACEOF | |
22618 | /* end confdefs.h. */ | |
22619 | ||
247f5006 | 22620 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22621 | #ifdef __cplusplus |
22622 | extern "C" | |
22623 | #endif | |
247f5006 | 22624 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22625 | builtin and then its argument prototype would still apply. */ |
22626 | char XOpenDisplay (); | |
22627 | int | |
22628 | main () | |
22629 | { | |
22630 | XOpenDisplay (); | |
22631 | ; | |
22632 | return 0; | |
22633 | } | |
22634 | _ACEOF | |
22635 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22637 | (eval $ac_link) 2>&5 | |
22638 | ac_status=$? | |
22639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22640 | (exit $ac_status); } && | |
22641 | { ac_try='test -s conftest$ac_exeext' | |
22642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22643 | (eval $ac_try) 2>&5 | |
22644 | ac_status=$? | |
22645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22646 | (exit $ac_status); }; }; then | |
22647 | : | |
22648 | else | |
22649 | echo "$as_me: failed program was:" >&5 | |
22650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 22651 | |
e6cc62c6 VS |
22652 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22653 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22654 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22656 | else |
e6cc62c6 VS |
22657 | ac_check_lib_save_LIBS=$LIBS |
22658 | LIBS="-ldnet $LIBS" | |
22659 | cat >conftest.$ac_ext <<_ACEOF | |
22660 | #line $LINENO "configure" | |
22661 | /* confdefs.h. */ | |
22662 | _ACEOF | |
22663 | cat confdefs.h >>conftest.$ac_ext | |
22664 | cat >>conftest.$ac_ext <<_ACEOF | |
22665 | /* end confdefs.h. */ | |
a0b9e27f | 22666 | |
e6cc62c6 VS |
22667 | /* Override any gcc2 internal prototype to avoid an error. */ |
22668 | #ifdef __cplusplus | |
22669 | extern "C" | |
22670 | #endif | |
22671 | /* We use char because int might match the return type of a gcc2 | |
22672 | builtin and then its argument prototype would still apply. */ | |
22673 | char dnet_ntoa (); | |
22674 | int | |
22675 | main () | |
22676 | { | |
22677 | dnet_ntoa (); | |
22678 | ; | |
22679 | return 0; | |
22680 | } | |
22681 | _ACEOF | |
22682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22684 | (eval $ac_link) 2>&5 | |
22685 | ac_status=$? | |
22686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22687 | (exit $ac_status); } && | |
22688 | { ac_try='test -s conftest$ac_exeext' | |
22689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22690 | (eval $ac_try) 2>&5 | |
22691 | ac_status=$? | |
22692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22693 | (exit $ac_status); }; }; then | |
22694 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22695 | else | |
22696 | echo "$as_me: failed program was:" >&5 | |
22697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22698 | ||
22699 | ac_cv_lib_dnet_dnet_ntoa=no | |
22700 | fi | |
22701 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22702 | LIBS=$ac_check_lib_save_LIBS | |
22703 | fi | |
22704 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22705 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22706 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 22707 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 22708 | fi |
0fb0dd83 | 22709 | |
21d1c967 | 22710 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
22711 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
22712 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
22713 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
22714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22715 | else |
e6cc62c6 | 22716 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22717 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
22718 | cat >conftest.$ac_ext <<_ACEOF |
22719 | #line $LINENO "configure" | |
22720 | /* confdefs.h. */ | |
22721 | _ACEOF | |
22722 | cat confdefs.h >>conftest.$ac_ext | |
22723 | cat >>conftest.$ac_ext <<_ACEOF | |
22724 | /* end confdefs.h. */ | |
22725 | ||
21d1c967 | 22726 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22727 | #ifdef __cplusplus |
22728 | extern "C" | |
22729 | #endif | |
21d1c967 | 22730 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22731 | builtin and then its argument prototype would still apply. */ |
22732 | char dnet_ntoa (); | |
22733 | int | |
22734 | main () | |
22735 | { | |
22736 | dnet_ntoa (); | |
22737 | ; | |
22738 | return 0; | |
22739 | } | |
22740 | _ACEOF | |
22741 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22743 | (eval $ac_link) 2>&5 | |
22744 | ac_status=$? | |
22745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22746 | (exit $ac_status); } && | |
22747 | { ac_try='test -s conftest$ac_exeext' | |
22748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22749 | (eval $ac_try) 2>&5 | |
22750 | ac_status=$? | |
22751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22752 | (exit $ac_status); }; }; then | |
22753 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
22754 | else | |
22755 | echo "$as_me: failed program was:" >&5 | |
22756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22757 | ||
22758 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
22759 | fi | |
22760 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22761 | LIBS=$ac_check_lib_save_LIBS | |
22762 | fi | |
22763 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
22764 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
22765 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 22766 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
22767 | fi |
22768 | ||
21d1c967 | 22769 | fi |
e6cc62c6 VS |
22770 | fi |
22771 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22772 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 22773 | |
21d1c967 GD |
22774 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
22775 | # to get the SysV transport functions. | |
e6cc62c6 | 22776 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
22777 | # needs -lnsl. |
22778 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
22779 | # on Irix 5.2, according to T.E. Dickey. |
22780 | # The functions gethostbyname, getservbyname, and inet_addr are | |
22781 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
22782 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
22783 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
22784 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
22785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22786 | else | |
22787 | cat >conftest.$ac_ext <<_ACEOF | |
22788 | #line $LINENO "configure" | |
22789 | /* confdefs.h. */ | |
22790 | _ACEOF | |
22791 | cat confdefs.h >>conftest.$ac_ext | |
22792 | cat >>conftest.$ac_ext <<_ACEOF | |
22793 | /* end confdefs.h. */ | |
21d1c967 | 22794 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22795 | which can conflict with char gethostbyname (); below. |
22796 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22797 | <limits.h> exists even on freestanding compilers. */ | |
22798 | #ifdef __STDC__ | |
22799 | # include <limits.h> | |
22800 | #else | |
22801 | # include <assert.h> | |
22802 | #endif | |
21d1c967 | 22803 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22804 | #ifdef __cplusplus |
22805 | extern "C" | |
22806 | { | |
22807 | #endif | |
21d1c967 | 22808 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22809 | builtin and then its argument prototype would still apply. */ |
22810 | char gethostbyname (); | |
21d1c967 GD |
22811 | /* The GNU C library defines this for functions which it implements |
22812 | to always fail with ENOSYS. Some functions are actually named | |
22813 | something starting with __ and the normal name is an alias. */ | |
22814 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
22815 | choke me | |
22816 | #else | |
e6cc62c6 VS |
22817 | char (*f) () = gethostbyname; |
22818 | #endif | |
22819 | #ifdef __cplusplus | |
22820 | } | |
21d1c967 | 22821 | #endif |
90dd450c | 22822 | |
e6cc62c6 VS |
22823 | int |
22824 | main () | |
22825 | { | |
22826 | return f != gethostbyname; | |
22827 | ; | |
22828 | return 0; | |
22829 | } | |
22830 | _ACEOF | |
22831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22833 | (eval $ac_link) 2>&5 | |
22834 | ac_status=$? | |
22835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22836 | (exit $ac_status); } && | |
22837 | { ac_try='test -s conftest$ac_exeext' | |
22838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22839 | (eval $ac_try) 2>&5 | |
22840 | ac_status=$? | |
22841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22842 | (exit $ac_status); }; }; then | |
22843 | ac_cv_func_gethostbyname=yes | |
22844 | else | |
22845 | echo "$as_me: failed program was:" >&5 | |
22846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22847 | ||
22848 | ac_cv_func_gethostbyname=no | |
22849 | fi | |
22850 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22851 | fi | |
22852 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
22853 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 22854 | |
21d1c967 | 22855 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
22856 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
22857 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
22858 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
22859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 22860 | else |
e6cc62c6 | 22861 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 22862 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
22863 | cat >conftest.$ac_ext <<_ACEOF |
22864 | #line $LINENO "configure" | |
22865 | /* confdefs.h. */ | |
22866 | _ACEOF | |
22867 | cat confdefs.h >>conftest.$ac_ext | |
22868 | cat >>conftest.$ac_ext <<_ACEOF | |
22869 | /* end confdefs.h. */ | |
22870 | ||
21d1c967 | 22871 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22872 | #ifdef __cplusplus |
22873 | extern "C" | |
22874 | #endif | |
21d1c967 | 22875 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22876 | builtin and then its argument prototype would still apply. */ |
22877 | char gethostbyname (); | |
22878 | int | |
22879 | main () | |
22880 | { | |
22881 | gethostbyname (); | |
22882 | ; | |
22883 | return 0; | |
22884 | } | |
22885 | _ACEOF | |
22886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22888 | (eval $ac_link) 2>&5 | |
22889 | ac_status=$? | |
22890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22891 | (exit $ac_status); } && | |
22892 | { ac_try='test -s conftest$ac_exeext' | |
22893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22894 | (eval $ac_try) 2>&5 | |
22895 | ac_status=$? | |
22896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22897 | (exit $ac_status); }; }; then | |
22898 | ac_cv_lib_nsl_gethostbyname=yes | |
22899 | else | |
22900 | echo "$as_me: failed program was:" >&5 | |
22901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22902 | ||
22903 | ac_cv_lib_nsl_gethostbyname=no | |
22904 | fi | |
22905 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22906 | LIBS=$ac_check_lib_save_LIBS | |
22907 | fi | |
22908 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
22909 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
22910 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
22911 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 22912 | fi |
247f5006 | 22913 | |
e6cc62c6 VS |
22914 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
22915 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
22916 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
22917 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
22918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22919 | else |
e6cc62c6 VS |
22920 | ac_check_lib_save_LIBS=$LIBS |
22921 | LIBS="-lbsd $LIBS" | |
22922 | cat >conftest.$ac_ext <<_ACEOF | |
22923 | #line $LINENO "configure" | |
22924 | /* confdefs.h. */ | |
22925 | _ACEOF | |
22926 | cat confdefs.h >>conftest.$ac_ext | |
22927 | cat >>conftest.$ac_ext <<_ACEOF | |
22928 | /* end confdefs.h. */ | |
22929 | ||
22930 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22931 | #ifdef __cplusplus | |
22932 | extern "C" | |
22933 | #endif | |
22934 | /* We use char because int might match the return type of a gcc2 | |
22935 | builtin and then its argument prototype would still apply. */ | |
22936 | char gethostbyname (); | |
22937 | int | |
22938 | main () | |
22939 | { | |
22940 | gethostbyname (); | |
22941 | ; | |
22942 | return 0; | |
22943 | } | |
22944 | _ACEOF | |
22945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22947 | (eval $ac_link) 2>&5 | |
22948 | ac_status=$? | |
22949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22950 | (exit $ac_status); } && | |
22951 | { ac_try='test -s conftest$ac_exeext' | |
22952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22953 | (eval $ac_try) 2>&5 | |
22954 | ac_status=$? | |
22955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22956 | (exit $ac_status); }; }; then | |
22957 | ac_cv_lib_bsd_gethostbyname=yes | |
22958 | else | |
22959 | echo "$as_me: failed program was:" >&5 | |
22960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22961 | ||
22962 | ac_cv_lib_bsd_gethostbyname=no | |
22963 | fi | |
22964 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22965 | LIBS=$ac_check_lib_save_LIBS | |
22966 | fi | |
22967 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
22968 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
22969 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
22970 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 22971 | fi |
90dd450c | 22972 | |
e6cc62c6 | 22973 | fi |
90dd450c VZ |
22974 | fi |
22975 | ||
21d1c967 GD |
22976 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
22977 | # socket/setsockopt and other routines are undefined under SCO ODT | |
22978 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
22979 | # on later versions), says Simon Leinen: it contains gethostby* |
22980 | # variants that don't use the name server (or something). -lsocket | |
22981 | # must be given before -lnsl if both are needed. We assume that | |
22982 | # if connect needs -lnsl, so does gethostbyname. | |
22983 | echo "$as_me:$LINENO: checking for connect" >&5 | |
22984 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
22985 | if test "${ac_cv_func_connect+set}" = set; then | |
22986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22987 | else | |
22988 | cat >conftest.$ac_ext <<_ACEOF | |
22989 | #line $LINENO "configure" | |
22990 | /* confdefs.h. */ | |
22991 | _ACEOF | |
22992 | cat confdefs.h >>conftest.$ac_ext | |
22993 | cat >>conftest.$ac_ext <<_ACEOF | |
22994 | /* end confdefs.h. */ | |
21d1c967 | 22995 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22996 | which can conflict with char connect (); below. |
22997 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22998 | <limits.h> exists even on freestanding compilers. */ | |
22999 | #ifdef __STDC__ | |
23000 | # include <limits.h> | |
23001 | #else | |
23002 | # include <assert.h> | |
23003 | #endif | |
21d1c967 | 23004 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23005 | #ifdef __cplusplus |
23006 | extern "C" | |
23007 | { | |
23008 | #endif | |
21d1c967 | 23009 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23010 | builtin and then its argument prototype would still apply. */ |
23011 | char connect (); | |
21d1c967 GD |
23012 | /* The GNU C library defines this for functions which it implements |
23013 | to always fail with ENOSYS. Some functions are actually named | |
23014 | something starting with __ and the normal name is an alias. */ | |
23015 | #if defined (__stub_connect) || defined (__stub___connect) | |
23016 | choke me | |
23017 | #else | |
e6cc62c6 VS |
23018 | char (*f) () = connect; |
23019 | #endif | |
23020 | #ifdef __cplusplus | |
23021 | } | |
21d1c967 | 23022 | #endif |
90dd450c | 23023 | |
e6cc62c6 VS |
23024 | int |
23025 | main () | |
23026 | { | |
23027 | return f != connect; | |
23028 | ; | |
23029 | return 0; | |
23030 | } | |
23031 | _ACEOF | |
23032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23034 | (eval $ac_link) 2>&5 | |
23035 | ac_status=$? | |
23036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23037 | (exit $ac_status); } && | |
23038 | { ac_try='test -s conftest$ac_exeext' | |
23039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23040 | (eval $ac_try) 2>&5 | |
23041 | ac_status=$? | |
23042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23043 | (exit $ac_status); }; }; then | |
23044 | ac_cv_func_connect=yes | |
23045 | else | |
23046 | echo "$as_me: failed program was:" >&5 | |
23047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23048 | ||
23049 | ac_cv_func_connect=no | |
23050 | fi | |
23051 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23052 | fi | |
23053 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23054 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23055 | |
21d1c967 | 23056 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23057 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23058 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23059 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23061 | else |
e6cc62c6 | 23062 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23063 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23064 | cat >conftest.$ac_ext <<_ACEOF |
23065 | #line $LINENO "configure" | |
23066 | /* confdefs.h. */ | |
23067 | _ACEOF | |
23068 | cat confdefs.h >>conftest.$ac_ext | |
23069 | cat >>conftest.$ac_ext <<_ACEOF | |
23070 | /* end confdefs.h. */ | |
23071 | ||
21d1c967 | 23072 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23073 | #ifdef __cplusplus |
23074 | extern "C" | |
23075 | #endif | |
21d1c967 | 23076 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23077 | builtin and then its argument prototype would still apply. */ |
23078 | char connect (); | |
23079 | int | |
23080 | main () | |
23081 | { | |
23082 | connect (); | |
23083 | ; | |
23084 | return 0; | |
23085 | } | |
23086 | _ACEOF | |
23087 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23089 | (eval $ac_link) 2>&5 | |
23090 | ac_status=$? | |
23091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23092 | (exit $ac_status); } && | |
23093 | { ac_try='test -s conftest$ac_exeext' | |
23094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23095 | (eval $ac_try) 2>&5 | |
23096 | ac_status=$? | |
23097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23098 | (exit $ac_status); }; }; then | |
23099 | ac_cv_lib_socket_connect=yes | |
23100 | else | |
23101 | echo "$as_me: failed program was:" >&5 | |
23102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23103 | ||
23104 | ac_cv_lib_socket_connect=no | |
23105 | fi | |
23106 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23107 | LIBS=$ac_check_lib_save_LIBS | |
23108 | fi | |
23109 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23110 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23111 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23112 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23113 | fi |
90dd450c | 23114 | |
21d1c967 | 23115 | fi |
90dd450c | 23116 | |
e6cc62c6 VS |
23117 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23118 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23119 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23120 | if test "${ac_cv_func_remove+set}" = set; then | |
23121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23122 | else | |
23123 | cat >conftest.$ac_ext <<_ACEOF | |
23124 | #line $LINENO "configure" | |
23125 | /* confdefs.h. */ | |
23126 | _ACEOF | |
23127 | cat confdefs.h >>conftest.$ac_ext | |
23128 | cat >>conftest.$ac_ext <<_ACEOF | |
23129 | /* end confdefs.h. */ | |
21d1c967 | 23130 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23131 | which can conflict with char remove (); below. |
23132 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23133 | <limits.h> exists even on freestanding compilers. */ | |
23134 | #ifdef __STDC__ | |
23135 | # include <limits.h> | |
23136 | #else | |
23137 | # include <assert.h> | |
23138 | #endif | |
21d1c967 | 23139 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23140 | #ifdef __cplusplus |
23141 | extern "C" | |
23142 | { | |
23143 | #endif | |
21d1c967 | 23144 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23145 | builtin and then its argument prototype would still apply. */ |
23146 | char remove (); | |
21d1c967 GD |
23147 | /* The GNU C library defines this for functions which it implements |
23148 | to always fail with ENOSYS. Some functions are actually named | |
23149 | something starting with __ and the normal name is an alias. */ | |
23150 | #if defined (__stub_remove) || defined (__stub___remove) | |
23151 | choke me | |
23152 | #else | |
e6cc62c6 VS |
23153 | char (*f) () = remove; |
23154 | #endif | |
23155 | #ifdef __cplusplus | |
23156 | } | |
21d1c967 | 23157 | #endif |
90dd450c | 23158 | |
e6cc62c6 VS |
23159 | int |
23160 | main () | |
23161 | { | |
23162 | return f != remove; | |
23163 | ; | |
23164 | return 0; | |
23165 | } | |
23166 | _ACEOF | |
23167 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23169 | (eval $ac_link) 2>&5 | |
23170 | ac_status=$? | |
23171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23172 | (exit $ac_status); } && | |
23173 | { ac_try='test -s conftest$ac_exeext' | |
23174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23175 | (eval $ac_try) 2>&5 | |
23176 | ac_status=$? | |
23177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23178 | (exit $ac_status); }; }; then | |
23179 | ac_cv_func_remove=yes | |
23180 | else | |
23181 | echo "$as_me: failed program was:" >&5 | |
23182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23183 | ||
23184 | ac_cv_func_remove=no | |
23185 | fi | |
23186 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23187 | fi | |
23188 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23189 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23190 | |
21d1c967 | 23191 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23192 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23193 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23194 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23196 | else |
e6cc62c6 | 23197 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23198 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
23199 | cat >conftest.$ac_ext <<_ACEOF |
23200 | #line $LINENO "configure" | |
23201 | /* confdefs.h. */ | |
23202 | _ACEOF | |
23203 | cat confdefs.h >>conftest.$ac_ext | |
23204 | cat >>conftest.$ac_ext <<_ACEOF | |
23205 | /* end confdefs.h. */ | |
23206 | ||
21d1c967 | 23207 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23208 | #ifdef __cplusplus |
23209 | extern "C" | |
23210 | #endif | |
21d1c967 | 23211 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23212 | builtin and then its argument prototype would still apply. */ |
23213 | char remove (); | |
23214 | int | |
23215 | main () | |
23216 | { | |
23217 | remove (); | |
23218 | ; | |
23219 | return 0; | |
23220 | } | |
23221 | _ACEOF | |
23222 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23224 | (eval $ac_link) 2>&5 | |
23225 | ac_status=$? | |
23226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23227 | (exit $ac_status); } && | |
23228 | { ac_try='test -s conftest$ac_exeext' | |
23229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23230 | (eval $ac_try) 2>&5 | |
23231 | ac_status=$? | |
23232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23233 | (exit $ac_status); }; }; then | |
23234 | ac_cv_lib_posix_remove=yes | |
23235 | else | |
23236 | echo "$as_me: failed program was:" >&5 | |
23237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23238 | ||
23239 | ac_cv_lib_posix_remove=no | |
23240 | fi | |
23241 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23242 | LIBS=$ac_check_lib_save_LIBS | |
23243 | fi | |
23244 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23245 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23246 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23247 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23248 | fi |
19bc6aad | 23249 | |
90dd450c | 23250 | fi |
19bc6aad | 23251 | |
21d1c967 | 23252 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23253 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23254 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23255 | if test "${ac_cv_func_shmat+set}" = set; then | |
23256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23257 | else | |
23258 | cat >conftest.$ac_ext <<_ACEOF | |
23259 | #line $LINENO "configure" | |
23260 | /* confdefs.h. */ | |
23261 | _ACEOF | |
23262 | cat confdefs.h >>conftest.$ac_ext | |
23263 | cat >>conftest.$ac_ext <<_ACEOF | |
23264 | /* end confdefs.h. */ | |
21d1c967 | 23265 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23266 | which can conflict with char shmat (); below. |
23267 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23268 | <limits.h> exists even on freestanding compilers. */ | |
23269 | #ifdef __STDC__ | |
23270 | # include <limits.h> | |
23271 | #else | |
23272 | # include <assert.h> | |
23273 | #endif | |
21d1c967 | 23274 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23275 | #ifdef __cplusplus |
23276 | extern "C" | |
23277 | { | |
23278 | #endif | |
21d1c967 | 23279 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23280 | builtin and then its argument prototype would still apply. */ |
23281 | char shmat (); | |
21d1c967 GD |
23282 | /* The GNU C library defines this for functions which it implements |
23283 | to always fail with ENOSYS. Some functions are actually named | |
23284 | something starting with __ and the normal name is an alias. */ | |
23285 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23286 | choke me | |
23287 | #else | |
e6cc62c6 VS |
23288 | char (*f) () = shmat; |
23289 | #endif | |
23290 | #ifdef __cplusplus | |
23291 | } | |
21d1c967 | 23292 | #endif |
90dd450c | 23293 | |
e6cc62c6 VS |
23294 | int |
23295 | main () | |
23296 | { | |
23297 | return f != shmat; | |
23298 | ; | |
23299 | return 0; | |
23300 | } | |
23301 | _ACEOF | |
23302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23304 | (eval $ac_link) 2>&5 | |
23305 | ac_status=$? | |
23306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23307 | (exit $ac_status); } && | |
23308 | { ac_try='test -s conftest$ac_exeext' | |
23309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23310 | (eval $ac_try) 2>&5 | |
23311 | ac_status=$? | |
23312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23313 | (exit $ac_status); }; }; then | |
23314 | ac_cv_func_shmat=yes | |
23315 | else | |
23316 | echo "$as_me: failed program was:" >&5 | |
23317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23318 | ||
23319 | ac_cv_func_shmat=no | |
23320 | fi | |
23321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23322 | fi | |
23323 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23324 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23325 | |
21d1c967 | 23326 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23327 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23328 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23329 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23331 | else |
e6cc62c6 | 23332 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23333 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
23334 | cat >conftest.$ac_ext <<_ACEOF |
23335 | #line $LINENO "configure" | |
23336 | /* confdefs.h. */ | |
23337 | _ACEOF | |
23338 | cat confdefs.h >>conftest.$ac_ext | |
23339 | cat >>conftest.$ac_ext <<_ACEOF | |
23340 | /* end confdefs.h. */ | |
23341 | ||
5c6fa7d2 | 23342 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23343 | #ifdef __cplusplus |
23344 | extern "C" | |
23345 | #endif | |
5c6fa7d2 | 23346 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23347 | builtin and then its argument prototype would still apply. */ |
23348 | char shmat (); | |
23349 | int | |
23350 | main () | |
23351 | { | |
23352 | shmat (); | |
23353 | ; | |
23354 | return 0; | |
23355 | } | |
23356 | _ACEOF | |
23357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23359 | (eval $ac_link) 2>&5 | |
23360 | ac_status=$? | |
23361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23362 | (exit $ac_status); } && | |
23363 | { ac_try='test -s conftest$ac_exeext' | |
23364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23365 | (eval $ac_try) 2>&5 | |
23366 | ac_status=$? | |
23367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23368 | (exit $ac_status); }; }; then | |
23369 | ac_cv_lib_ipc_shmat=yes | |
23370 | else | |
23371 | echo "$as_me: failed program was:" >&5 | |
23372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23373 | ||
23374 | ac_cv_lib_ipc_shmat=no | |
23375 | fi | |
23376 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23377 | LIBS=$ac_check_lib_save_LIBS | |
23378 | fi | |
23379 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23380 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23381 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23382 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23383 | fi |
90dd450c | 23384 | |
90dd450c | 23385 | fi |
21d1c967 | 23386 | fi |
10f2d63a | 23387 | |
21d1c967 | 23388 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23389 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23390 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23391 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23392 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23393 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23394 | # These have to be linked with before -lX11, unlike the other | |
23395 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23396 | # John Interrante, Karl Berry |
23397 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23398 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23399 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23401 | else | |
23402 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23403 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23404 | cat >conftest.$ac_ext <<_ACEOF |
23405 | #line $LINENO "configure" | |
23406 | /* confdefs.h. */ | |
23407 | _ACEOF | |
23408 | cat confdefs.h >>conftest.$ac_ext | |
23409 | cat >>conftest.$ac_ext <<_ACEOF | |
23410 | /* end confdefs.h. */ | |
23411 | ||
21d1c967 | 23412 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23413 | #ifdef __cplusplus |
23414 | extern "C" | |
23415 | #endif | |
21d1c967 | 23416 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23417 | builtin and then its argument prototype would still apply. */ |
23418 | char IceConnectionNumber (); | |
23419 | int | |
23420 | main () | |
23421 | { | |
23422 | IceConnectionNumber (); | |
23423 | ; | |
23424 | return 0; | |
23425 | } | |
23426 | _ACEOF | |
23427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23429 | (eval $ac_link) 2>&5 | |
23430 | ac_status=$? | |
23431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23432 | (exit $ac_status); } && | |
23433 | { ac_try='test -s conftest$ac_exeext' | |
23434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23435 | (eval $ac_try) 2>&5 | |
23436 | ac_status=$? | |
23437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23438 | (exit $ac_status); }; }; then | |
23439 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23440 | else | |
23441 | echo "$as_me: failed program was:" >&5 | |
23442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23443 | ||
23444 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23445 | fi | |
23446 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23447 | LIBS=$ac_check_lib_save_LIBS | |
23448 | fi | |
23449 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23450 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23451 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23452 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 23453 | fi |
21d1c967 | 23454 | |
e6cc62c6 | 23455 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 23456 | |
10f2d63a VZ |
23457 | fi |
23458 | ||
8284b0c5 | 23459 | |
21d1c967 | 23460 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23461 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23462 | echo "$as_me: error: X11 not found" >&2;} | |
23463 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
23464 | fi |
23465 | ||
2b5f62a0 VZ |
23466 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
23467 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
23468 | AFMINSTALL=afminstall |
23469 | COMPILED_X_PROGRAM=0 | |
23470 | ||
e6cc62c6 VS |
23471 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
23472 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23473 | ||
21d1c967 | 23474 | ac_find_includes= |
2b5f62a0 | 23475 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
23476 | do |
23477 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23478 | ac_find_includes=$ac_dir | |
23479 | break | |
23480 | fi | |
23481 | done | |
23482 | ||
23483 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
23484 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
23485 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23486 | ||
2b5f62a0 | 23487 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
23488 | ac_path_to_include="" |
23489 | else | |
2b5f62a0 VZ |
23490 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
23491 | result=$? | |
23492 | if test $result = 0; then | |
23493 | ac_path_to_include="" | |
23494 | else | |
23495 | ac_path_to_include=" -I$ac_find_includes" | |
23496 | fi | |
dd0e4a90 VZ |
23497 | fi |
23498 | ||
23499 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 23500 | else |
e6cc62c6 VS |
23501 | cat >conftest.$ac_ext <<_ACEOF |
23502 | #line $LINENO "configure" | |
23503 | /* confdefs.h. */ | |
23504 | _ACEOF | |
23505 | cat confdefs.h >>conftest.$ac_ext | |
23506 | cat >>conftest.$ac_ext <<_ACEOF | |
23507 | /* end confdefs.h. */ | |
21d1c967 GD |
23508 | |
23509 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23510 | |
23511 | int | |
23512 | main () | |
23513 | { | |
21d1c967 GD |
23514 | |
23515 | int version; | |
23516 | version = xmUseVersion; | |
e6cc62c6 VS |
23517 | |
23518 | ; | |
23519 | return 0; | |
23520 | } | |
23521 | _ACEOF | |
23522 | rm -f conftest.$ac_objext | |
23523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23524 | (eval $ac_compile) 2>&5 | |
23525 | ac_status=$? | |
23526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23527 | (exit $ac_status); } && | |
23528 | { ac_try='test -s conftest.$ac_objext' | |
23529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23530 | (eval $ac_try) 2>&5 | |
23531 | ac_status=$? | |
23532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23533 | (exit $ac_status); }; }; then | |
23534 | ||
23535 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23536 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23537 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23538 | |
10f2d63a | 23539 | else |
e6cc62c6 VS |
23540 | echo "$as_me: failed program was:" >&5 |
23541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23542 | ||
23543 | ||
23544 | echo "$as_me:$LINENO: result: no" >&5 | |
23545 | echo "${ECHO_T}no" >&6 | |
23546 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
23547 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
23548 | { (exit 1); exit 1; }; } | |
23549 | ||
23550 | ||
10f2d63a | 23551 | fi |
e6cc62c6 | 23552 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 23553 | fi |
10f2d63a | 23554 | |
21d1c967 | 23555 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
23556 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
23557 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
23558 | ||
21d1c967 | 23559 | ac_find_libraries= |
2b5f62a0 | 23560 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23561 | do |
23562 | for ac_extension in a so sl dylib; do | |
23563 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
23564 | ac_find_libraries=$ac_dir | |
23565 | break 2 | |
23566 | fi | |
23567 | done | |
23568 | done | |
23569 | ||
23570 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
23571 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23572 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23573 | ||
21d1c967 | 23574 | |
21d1c967 GD |
23575 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23576 | result=$? | |
23577 | if test $result = 0; then | |
23578 | ac_path_to_link="" | |
23579 | else | |
23580 | ac_path_to_link=" -L$ac_find_libraries" | |
23581 | fi | |
23582 | ||
21d1c967 | 23583 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 23584 | else |
dd0e4a90 VZ |
23585 | save_CFLAGS=$CFLAGS |
23586 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23587 | ||
e6cc62c6 VS |
23588 | cat >conftest.$ac_ext <<_ACEOF |
23589 | #line $LINENO "configure" | |
23590 | /* confdefs.h. */ | |
23591 | _ACEOF | |
23592 | cat confdefs.h >>conftest.$ac_ext | |
23593 | cat >>conftest.$ac_ext <<_ACEOF | |
23594 | /* end confdefs.h. */ | |
21d1c967 GD |
23595 | |
23596 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23597 | |
23598 | int | |
23599 | main () | |
23600 | { | |
21d1c967 GD |
23601 | |
23602 | int version; | |
23603 | version = xmUseVersion; | |
e6cc62c6 VS |
23604 | |
23605 | ; | |
23606 | return 0; | |
23607 | } | |
23608 | _ACEOF | |
23609 | rm -f conftest.$ac_objext | |
23610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23611 | (eval $ac_compile) 2>&5 | |
23612 | ac_status=$? | |
23613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23614 | (exit $ac_status); } && | |
23615 | { ac_try='test -s conftest.$ac_objext' | |
23616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23617 | (eval $ac_try) 2>&5 | |
23618 | ac_status=$? | |
23619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23620 | (exit $ac_status); }; }; then | |
23621 | ||
23622 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23623 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23624 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23625 | |
d836ee96 | 23626 | else |
e6cc62c6 VS |
23627 | echo "$as_me: failed program was:" >&5 |
23628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23629 | ||
23630 | ||
23631 | echo "$as_me:$LINENO: result: no" >&5 | |
23632 | echo "${ECHO_T}no" >&6 | |
23633 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
23634 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
23635 | { (exit 1); exit 1; }; } | |
23636 | ||
23637 | ||
d836ee96 | 23638 | fi |
e6cc62c6 | 23639 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23640 | |
23641 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23642 | fi |
23643 | fi | |
23644 | ||
23645 | xpm_link= | |
e6cc62c6 VS |
23646 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
23647 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
23648 | ||
21d1c967 | 23649 | ac_find_libraries= |
2b5f62a0 | 23650 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23651 | do |
23652 | for ac_extension in a so sl dylib; do | |
23653 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
23654 | ac_find_libraries=$ac_dir | |
23655 | break 2 | |
23656 | fi | |
23657 | done | |
23658 | done | |
23659 | ||
23660 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 23661 | |
21d1c967 GD |
23662 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23663 | result=$? | |
23664 | if test $result = 0; then | |
23665 | ac_path_to_link="" | |
23666 | else | |
23667 | ac_path_to_link=" -L$ac_find_libraries" | |
23668 | fi | |
23669 | ||
23670 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 23671 | |
21d1c967 | 23672 | xpm_link=" -lXpm" |
e6cc62c6 | 23673 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23674 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23675 | _ACEOF |
90dd450c | 23676 | |
e6cc62c6 VS |
23677 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23678 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 23679 | else |
dd0e4a90 VZ |
23680 | save_CFLAGS=$CFLAGS |
23681 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23682 | ||
e6cc62c6 VS |
23683 | cat >conftest.$ac_ext <<_ACEOF |
23684 | #line $LINENO "configure" | |
23685 | /* confdefs.h. */ | |
23686 | _ACEOF | |
23687 | cat confdefs.h >>conftest.$ac_ext | |
23688 | cat >>conftest.$ac_ext <<_ACEOF | |
23689 | /* end confdefs.h. */ | |
21d1c967 GD |
23690 | |
23691 | #include <X11/xpm.h> | |
e6cc62c6 VS |
23692 | |
23693 | int | |
23694 | main () | |
23695 | { | |
21d1c967 GD |
23696 | |
23697 | int version; | |
23698 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
23699 | |
23700 | ; | |
23701 | return 0; | |
23702 | } | |
23703 | _ACEOF | |
23704 | rm -f conftest.$ac_objext | |
23705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23706 | (eval $ac_compile) 2>&5 | |
23707 | ac_status=$? | |
23708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23709 | (exit $ac_status); } && | |
23710 | { ac_try='test -s conftest.$ac_objext' | |
23711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23712 | (eval $ac_try) 2>&5 | |
23713 | ac_status=$? | |
23714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23715 | (exit $ac_status); }; }; then | |
23716 | ||
21d1c967 | 23717 | xpm_link=" -lXpm" |
e6cc62c6 | 23718 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 23719 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 23720 | _ACEOF |
21d1c967 | 23721 | |
e6cc62c6 VS |
23722 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
23723 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23724 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 23725 | |
d836ee96 | 23726 | else |
e6cc62c6 VS |
23727 | echo "$as_me: failed program was:" >&5 |
23728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23729 | ||
23730 | ||
23731 | echo "$as_me:$LINENO: result: no" >&5 | |
23732 | echo "${ECHO_T}no" >&6 | |
23733 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
23734 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
23735 | ||
23736 | ||
d836ee96 | 23737 | fi |
e6cc62c6 | 23738 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23739 | |
23740 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
23741 | fi |
23742 | ||
e6cc62c6 VS |
23743 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
23744 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
23745 | libp_link="" |
23746 | libsm_ice_link="" | |
23747 | libs_found=0 | |
23748 | for libp in "" " -lXp"; do | |
23749 | if test "$libs_found" = "0"; then | |
23750 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 23751 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
23752 | save_LIBS="$LIBS" |
23753 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
23754 | save_CFLAGS=$CFLAGS |
23755 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23756 | ||
e6cc62c6 VS |
23757 | cat >conftest.$ac_ext <<_ACEOF |
23758 | #line $LINENO "configure" | |
23759 | /* confdefs.h. */ | |
23760 | _ACEOF | |
23761 | cat confdefs.h >>conftest.$ac_ext | |
23762 | cat >>conftest.$ac_ext <<_ACEOF | |
23763 | /* end confdefs.h. */ | |
17234b26 | 23764 | |
6a30f1c8 MB |
23765 | #include <Xm/Xm.h> |
23766 | #include <Xm/List.h> | |
e6cc62c6 VS |
23767 | |
23768 | int | |
23769 | main () | |
23770 | { | |
6a30f1c8 MB |
23771 | |
23772 | XmString string = NULL; | |
23773 | Widget w = NULL; | |
23774 | int position = 0; | |
23775 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
23776 | |
23777 | ; | |
23778 | return 0; | |
23779 | } | |
23780 | _ACEOF | |
23781 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23783 | (eval $ac_link) 2>&5 | |
23784 | ac_status=$? | |
23785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23786 | (exit $ac_status); } && | |
23787 | { ac_try='test -s conftest$ac_exeext' | |
23788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23789 | (eval $ac_try) 2>&5 | |
23790 | ac_status=$? | |
23791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23792 | (exit $ac_status); }; }; then | |
23793 | ||
6a30f1c8 MB |
23794 | libp_link="$libp" |
23795 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
23796 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
23797 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 23798 | libs_found=1 |
e6cc62c6 | 23799 | |
6a30f1c8 | 23800 | else |
e6cc62c6 VS |
23801 | echo "$as_me: failed program was:" >&5 |
23802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23803 | ||
23804 | ||
23805 | ||
6a30f1c8 | 23806 | fi |
e6cc62c6 | 23807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 23808 | |
6a30f1c8 | 23809 | LIBS="$save_LIBS" |
dd0e4a90 | 23810 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
23811 | fi |
23812 | done | |
23813 | fi | |
23814 | done | |
23815 | ||
23816 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
23817 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
23818 | echo "${ECHO_T}can't find the right libraries" >&6 | |
23819 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
23820 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
23821 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
23822 | fi |
23823 | ||
da494b40 MB |
23824 | save_CFLAGS=$CFLAGS |
23825 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
23826 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
23827 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
23828 | cat >conftest.$ac_ext <<_ACEOF | |
23829 | #line $LINENO "configure" | |
23830 | /* confdefs.h. */ | |
23831 | _ACEOF | |
23832 | cat confdefs.h >>conftest.$ac_ext | |
23833 | cat >>conftest.$ac_ext <<_ACEOF | |
23834 | /* end confdefs.h. */ | |
da494b40 MB |
23835 | |
23836 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23837 | |
23838 | int | |
23839 | main () | |
23840 | { | |
da494b40 MB |
23841 | |
23842 | #if XmVersion < 2000 | |
23843 | #error "Not Motif 2" | |
23844 | #endif | |
e6cc62c6 VS |
23845 | |
23846 | ; | |
23847 | return 0; | |
23848 | } | |
23849 | _ACEOF | |
23850 | rm -f conftest.$ac_objext | |
23851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23852 | (eval $ac_compile) 2>&5 | |
23853 | ac_status=$? | |
23854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23855 | (exit $ac_status); } && | |
23856 | { ac_try='test -s conftest.$ac_objext' | |
23857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23858 | (eval $ac_try) 2>&5 | |
23859 | ac_status=$? | |
23860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23861 | (exit $ac_status); }; }; then | |
23862 | ||
23863 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 23864 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
23865 | _ACEOF |
23866 | ||
23867 | echo "$as_me:$LINENO: result: found" >&5 | |
23868 | echo "${ECHO_T}found" >&6 | |
da494b40 | 23869 | |
da494b40 | 23870 | else |
e6cc62c6 VS |
23871 | echo "$as_me: failed program was:" >&5 |
23872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23873 | ||
23874 | ||
23875 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 23876 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
23877 | _ACEOF |
23878 | ||
23879 | echo "$as_me:$LINENO: result: not found" >&5 | |
23880 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 23881 | |
da494b40 | 23882 | fi |
e6cc62c6 | 23883 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
23884 | CFLAGS=$save_CFLAGS |
23885 | ||
6a30f1c8 | 23886 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 23887 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
23888 | TOOLKIT=MOTIF |
23889 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
23890 | wxHAVE_XEXT_LIB=1 |
23891 | fi | |
23892 | ||
23893 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
23894 | test "$wxHAVE_XEXT_LIB" = 1; then | |
23895 | save_CFLAGS="$CFLAGS" | |
23896 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23897 | ||
e6cc62c6 VS |
23898 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
23899 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
23900 | cat >conftest.$ac_ext <<_ACEOF | |
23901 | #line $LINENO "configure" | |
23902 | /* confdefs.h. */ | |
23903 | _ACEOF | |
23904 | cat confdefs.h >>conftest.$ac_ext | |
23905 | cat >>conftest.$ac_ext <<_ACEOF | |
23906 | /* end confdefs.h. */ | |
23907 | ||
23908 | #include <X11/Xlib.h> | |
f7f78039 | 23909 | #include <X11/extensions/shape.h> |
e6cc62c6 VS |
23910 | |
23911 | int | |
23912 | main () | |
23913 | { | |
f7f78039 MB |
23914 | |
23915 | int dummy1, dummy2; | |
23916 | XShapeQueryExtension((Display*)NULL, | |
23917 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
23918 | |
23919 | ; | |
23920 | return 0; | |
23921 | } | |
23922 | _ACEOF | |
23923 | rm -f conftest.$ac_objext | |
23924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23925 | (eval $ac_compile) 2>&5 | |
23926 | ac_status=$? | |
23927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23928 | (exit $ac_status); } && | |
23929 | { ac_try='test -s conftest.$ac_objext' | |
23930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23931 | (eval $ac_try) 2>&5 | |
23932 | ac_status=$? | |
23933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23934 | (exit $ac_status); }; }; then | |
23935 | ||
23936 | cat >>confdefs.h <<\_ACEOF | |
f7f78039 | 23937 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
23938 | _ACEOF |
23939 | ||
23940 | echo "$as_me:$LINENO: result: found" >&5 | |
23941 | echo "${ECHO_T}found" >&6 | |
f7f78039 | 23942 | |
f7f78039 | 23943 | else |
e6cc62c6 VS |
23944 | echo "$as_me: failed program was:" >&5 |
23945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23946 | ||
23947 | ||
23948 | echo "$as_me:$LINENO: result: not found" >&5 | |
23949 | echo "${ECHO_T}not found" >&6 | |
23950 | ||
f7f78039 | 23951 | fi |
e6cc62c6 | 23952 | rm -f conftest.$ac_objext conftest.$ac_ext |
f7f78039 | 23953 | CFLAGS="$save_CFLAGS" |
21d1c967 GD |
23954 | fi |
23955 | ||
23956 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 23957 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 23958 | |
0c98a14e | 23959 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
23960 | TOOLKIT=MAC |
23961 | GUIDIST=MACX_DIST | |
23962 | fi | |
23963 | ||
ac0c4cc3 DE |
23964 | if test "$wxUSE_COCOA" = 1; then |
23965 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
23966 | TOOLKIT=COCOA | |
23967 | GUIDIST=COCOA_DIST | |
23968 | fi | |
23969 | ||
21d1c967 GD |
23970 | if test "$wxUSE_PM" = 1; then |
23971 | TOOLKIT=PM | |
23972 | GUIDIST=GTK_DIST | |
e6cc62c6 VS |
23973 | { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5 |
23974 | echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;} | |
f657dbe7 | 23975 | wxUSE_THREADS="no" |
21d1c967 GD |
23976 | fi |
23977 | ||
23978 | if test "$TOOLKIT" = "PM" ; then | |
23979 | TOOLKIT_DIR="os2" | |
23980 | else | |
23981 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
23982 | fi | |
23983 | ||
23984 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
23985 | ||
23986 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
23987 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
23988 | ||
23989 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
23990 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
23991 | ||
23992 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
23993 | if test "$wxUSE_X11" = 1; then | |
23994 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
23995 | else | |
23996 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
23997 | fi | |
23998 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
23999 | WIDGET_SET=univ | |
24000 | else | |
24001 | ALL_OBJECTS="\$(GUIOBJS)" | |
24002 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24003 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24004 | fi | |
24005 | ||
24006 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24007 | ||
24008 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24009 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24010 | fi | |
24011 | ||
24012 | if test "$wxUSE_HTML" = "yes"; then | |
24013 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24014 | fi | |
24015 | ||
24016 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24017 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24018 | fi | |
24019 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24020 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24021 | fi | |
24022 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24023 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24024 | fi | |
24025 | ||
24026 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24027 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24028 | else |
21d1c967 GD |
24029 | USE_GUI=0 |
24030 | ||
24031 | TOOLKIT_DIR="base" | |
24032 | ||
24033 | if test "$USE_WIN32" = 1 ; then | |
24034 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24035 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24036 | ||
24037 | TOOLKIT="MSW" | |
24038 | else | |
24039 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24040 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24041 | fi | |
24042 | ||
24043 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24044 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24045 | ||
24046 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24047 | ||
24048 | GUIDIST="BASE_DIST" | |
24049 | DISTDIR="wxBase" | |
d836ee96 VZ |
24050 | fi |
24051 | ||
8284b0c5 | 24052 | |
8647bec6 RG |
24053 | |
24054 | ||
24055 | IODBC_C_SRC="" | |
24056 | ||
24057 | ||
24058 | if test "$TOOLKIT" != "MSW" ; then | |
24059 | ||
24060 | if test "$wxUSE_ODBC" != "no" ; then | |
e6cc62c6 | 24061 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 24062 | #define wxUSE_ODBC 1 |
e6cc62c6 | 24063 | _ACEOF |
8647bec6 RG |
24064 | |
24065 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
e6cc62c6 | 24066 | |
8647bec6 RG |
24067 | WXODBCFLAG="-D_IODBC_" |
24068 | ||
24069 | ||
24070 | if test "$wxUSE_ODBC" = "sys" ; then | |
e6cc62c6 VS |
24071 | |
24072 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24073 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24074 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24075 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24077 | fi | |
24078 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24079 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24080 | else | |
24081 | # Is the header compilable? | |
24082 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24083 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24084 | cat >conftest.$ac_ext <<_ACEOF | |
24085 | #line $LINENO "configure" | |
24086 | /* confdefs.h. */ | |
24087 | _ACEOF | |
24088 | cat confdefs.h >>conftest.$ac_ext | |
24089 | cat >>conftest.$ac_ext <<_ACEOF | |
24090 | /* end confdefs.h. */ | |
24091 | $ac_includes_default | |
8647bec6 | 24092 | #include <sql.h> |
e6cc62c6 VS |
24093 | _ACEOF |
24094 | rm -f conftest.$ac_objext | |
24095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24096 | (eval $ac_compile) 2>&5 | |
24097 | ac_status=$? | |
24098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24099 | (exit $ac_status); } && | |
24100 | { ac_try='test -s conftest.$ac_objext' | |
24101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24102 | (eval $ac_try) 2>&5 | |
24103 | ac_status=$? | |
24104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24105 | (exit $ac_status); }; }; then | |
24106 | ac_header_compiler=yes | |
24107 | else | |
24108 | echo "$as_me: failed program was:" >&5 | |
24109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24110 | ||
24111 | ac_header_compiler=no | |
24112 | fi | |
24113 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24114 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24115 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24116 | ||
24117 | # Is the header present? | |
24118 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24119 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24120 | cat >conftest.$ac_ext <<_ACEOF | |
24121 | #line $LINENO "configure" | |
24122 | /* confdefs.h. */ | |
24123 | _ACEOF | |
24124 | cat confdefs.h >>conftest.$ac_ext | |
24125 | cat >>conftest.$ac_ext <<_ACEOF | |
24126 | /* end confdefs.h. */ | |
24127 | #include <sql.h> | |
24128 | _ACEOF | |
24129 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24130 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24131 | ac_status=$? | |
24132 | grep -v '^ *+' conftest.er1 >conftest.err | |
24133 | rm -f conftest.er1 | |
24134 | cat conftest.err >&5 | |
24135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24136 | (exit $ac_status); } >/dev/null; then | |
24137 | if test -s conftest.err; then | |
24138 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24139 | else | |
24140 | ac_cpp_err= | |
24141 | fi | |
24142 | else | |
24143 | ac_cpp_err=yes | |
24144 | fi | |
24145 | if test -z "$ac_cpp_err"; then | |
24146 | ac_header_preproc=yes | |
24147 | else | |
24148 | echo "$as_me: failed program was:" >&5 | |
24149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24150 | ||
24151 | ac_header_preproc=no | |
24152 | fi | |
24153 | rm -f conftest.err conftest.$ac_ext | |
24154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24155 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24156 | ||
24157 | # So? What about this header? | |
24158 | case $ac_header_compiler:$ac_header_preproc in | |
24159 | yes:no ) | |
24160 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24161 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24162 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24163 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24164 | ( | |
24165 | cat <<\_ASBOX | |
24166 | ## ------------------------------------ ## | |
24167 | ## Report this to bug-autoconf@gnu.org. ## | |
24168 | ## ------------------------------------ ## | |
24169 | _ASBOX | |
24170 | ) | | |
24171 | sed "s/^/$as_me: WARNING: /" >&2 | |
24172 | ;; | |
24173 | no:yes ) | |
24174 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24175 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24176 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24177 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24178 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24179 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24180 | ( | |
24181 | cat <<\_ASBOX | |
24182 | ## ------------------------------------ ## | |
24183 | ## Report this to bug-autoconf@gnu.org. ## | |
24184 | ## ------------------------------------ ## | |
24185 | _ASBOX | |
24186 | ) | | |
24187 | sed "s/^/$as_me: WARNING: /" >&2 | |
24188 | ;; | |
24189 | esac | |
24190 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24191 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24192 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24194 | else |
e6cc62c6 VS |
24195 | ac_cv_header_sql_h=$ac_header_preproc |
24196 | fi | |
24197 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24198 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24199 | ||
8647bec6 RG |
24200 | fi |
24201 | ||
e6cc62c6 VS |
24202 | |
24203 | echo "$as_me:$LINENO: checking for library containing SQLAllocEnv" >&5 | |
24204 | echo $ECHO_N "checking for library containing SQLAllocEnv... $ECHO_C" >&6 | |
24205 | if test "${ac_cv_search_SQLAllocEnv+set}" = set; then | |
24206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24207 | else |
e6cc62c6 VS |
24208 | ac_func_search_save_LIBS=$LIBS |
24209 | ac_cv_search_SQLAllocEnv=no | |
24210 | cat >conftest.$ac_ext <<_ACEOF | |
24211 | #line $LINENO "configure" | |
24212 | /* confdefs.h. */ | |
24213 | _ACEOF | |
24214 | cat confdefs.h >>conftest.$ac_ext | |
24215 | cat >>conftest.$ac_ext <<_ACEOF | |
24216 | /* end confdefs.h. */ | |
24217 | ||
8647bec6 | 24218 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24219 | #ifdef __cplusplus |
24220 | extern "C" | |
24221 | #endif | |
8647bec6 | 24222 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24223 | builtin and then its argument prototype would still apply. */ |
24224 | char SQLAllocEnv (); | |
24225 | int | |
24226 | main () | |
24227 | { | |
24228 | SQLAllocEnv (); | |
24229 | ; | |
24230 | return 0; | |
24231 | } | |
24232 | _ACEOF | |
24233 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24235 | (eval $ac_link) 2>&5 | |
24236 | ac_status=$? | |
24237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24238 | (exit $ac_status); } && | |
24239 | { ac_try='test -s conftest$ac_exeext' | |
24240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24241 | (eval $ac_try) 2>&5 | |
24242 | ac_status=$? | |
24243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24244 | (exit $ac_status); }; }; then | |
8647bec6 RG |
24245 | ac_cv_search_SQLAllocEnv="none required" |
24246 | else | |
e6cc62c6 VS |
24247 | echo "$as_me: failed program was:" >&5 |
24248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24249 | ||
8647bec6 | 24250 | fi |
e6cc62c6 VS |
24251 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24252 | if test "$ac_cv_search_SQLAllocEnv" = no; then | |
24253 | for ac_lib in iodbc unixodbc odbc ; do | |
24254 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
24255 | cat >conftest.$ac_ext <<_ACEOF | |
24256 | #line $LINENO "configure" | |
24257 | /* confdefs.h. */ | |
24258 | _ACEOF | |
24259 | cat confdefs.h >>conftest.$ac_ext | |
24260 | cat >>conftest.$ac_ext <<_ACEOF | |
24261 | /* end confdefs.h. */ | |
24262 | ||
8647bec6 | 24263 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24264 | #ifdef __cplusplus |
24265 | extern "C" | |
24266 | #endif | |
8647bec6 | 24267 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
24268 | builtin and then its argument prototype would still apply. */ |
24269 | char SQLAllocEnv (); | |
24270 | int | |
24271 | main () | |
24272 | { | |
24273 | SQLAllocEnv (); | |
24274 | ; | |
24275 | return 0; | |
24276 | } | |
24277 | _ACEOF | |
24278 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24280 | (eval $ac_link) 2>&5 | |
24281 | ac_status=$? | |
24282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24283 | (exit $ac_status); } && | |
24284 | { ac_try='test -s conftest$ac_exeext' | |
24285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24286 | (eval $ac_try) 2>&5 | |
24287 | ac_status=$? | |
24288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24289 | (exit $ac_status); }; }; then | |
24290 | ac_cv_search_SQLAllocEnv="-l$ac_lib" | |
8647bec6 RG |
24291 | break |
24292 | else | |
e6cc62c6 VS |
24293 | echo "$as_me: failed program was:" >&5 |
24294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24295 | ||
8647bec6 | 24296 | fi |
e6cc62c6 VS |
24297 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24298 | done | |
8647bec6 | 24299 | fi |
e6cc62c6 VS |
24300 | LIBS=$ac_func_search_save_LIBS |
24301 | fi | |
24302 | echo "$as_me:$LINENO: result: $ac_cv_search_SQLAllocEnv" >&5 | |
24303 | echo "${ECHO_T}$ac_cv_search_SQLAllocEnv" >&6 | |
24304 | if test "$ac_cv_search_SQLAllocEnv" != no; then | |
8647bec6 | 24305 | test "$ac_cv_search_SQLAllocEnv" = "none required" || LIBS="$ac_cv_search_SQLAllocEnv $LIBS" |
e6cc62c6 VS |
24306 | |
24307 | else | |
24308 | ||
24309 | wxUSE_ODBC=builtin; | |
24310 | { echo "$as_me:$LINENO: WARNING: can't find system Odbc library falling back to builtin " >&5 | |
24311 | echo "$as_me: WARNING: can't find system Odbc library falling back to builtin " >&2;} | |
24312 | ||
8647bec6 | 24313 | fi |
e6cc62c6 | 24314 | |
fd3d7534 RG |
24315 | fi |
24316 | if test "$wxUSE_ODBC" != "sys" ; then | |
24317 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
8647bec6 RG |
24318 | fi |
24319 | ||
24320 | fi | |
e6cc62c6 | 24321 | |
6232543b | 24322 | fi |
21d1c967 GD |
24323 | |
24324 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24325 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 24326 | fi |
21d1c967 GD |
24327 | if test "$wxUSE_ZLIB" = "builtin" ; then |
24328 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
24329 | fi |
24330 | ||
8284b0c5 | 24331 | |
21d1c967 | 24332 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 24333 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
24334 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
24335 | elif test "$wxUSE_MSW" = 1; then | |
24336 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24337 | else | |
01aa5863 VS |
24338 | |
24339 | ||
24340 | ac_find_includes= | |
24341 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24342 | do | |
24343 | if test -f "$ac_dir/GL/gl.h"; then | |
24344 | ac_find_includes=$ac_dir | |
24345 | break | |
24346 | fi | |
24347 | done | |
24348 | ||
24349 | if test "$ac_find_includes" != "" ; then | |
24350 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24351 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
24352 | set -x | |
24353 | ||
24354 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24355 | ac_path_to_include="" | |
24356 | else | |
24357 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24358 | result=$? | |
24359 | if test $result = 0; then | |
24360 | ac_path_to_include="" | |
24361 | else | |
24362 | ac_path_to_include=" -I$ac_find_includes" | |
24363 | fi | |
24364 | fi | |
24365 | ||
24366 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
24367 | set +x | |
24368 | fi | |
24369 | ||
e6cc62c6 VS |
24370 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
24371 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24372 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24373 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24375 | fi | |
24376 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24377 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24378 | else | |
24379 | # Is the header compilable? | |
24380 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24381 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24382 | cat >conftest.$ac_ext <<_ACEOF | |
24383 | #line $LINENO "configure" | |
24384 | /* confdefs.h. */ | |
24385 | _ACEOF | |
24386 | cat confdefs.h >>conftest.$ac_ext | |
24387 | cat >>conftest.$ac_ext <<_ACEOF | |
24388 | /* end confdefs.h. */ | |
24389 | $ac_includes_default | |
21d1c967 | 24390 | #include <GL/gl.h> |
e6cc62c6 VS |
24391 | _ACEOF |
24392 | rm -f conftest.$ac_objext | |
24393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24394 | (eval $ac_compile) 2>&5 | |
24395 | ac_status=$? | |
24396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24397 | (exit $ac_status); } && | |
24398 | { ac_try='test -s conftest.$ac_objext' | |
24399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24400 | (eval $ac_try) 2>&5 | |
24401 | ac_status=$? | |
24402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24403 | (exit $ac_status); }; }; then | |
24404 | ac_header_compiler=yes | |
24405 | else | |
24406 | echo "$as_me: failed program was:" >&5 | |
24407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24408 | ||
24409 | ac_header_compiler=no | |
24410 | fi | |
24411 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24412 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24413 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24414 | ||
24415 | # Is the header present? | |
24416 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24417 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24418 | cat >conftest.$ac_ext <<_ACEOF | |
24419 | #line $LINENO "configure" | |
24420 | /* confdefs.h. */ | |
24421 | _ACEOF | |
24422 | cat confdefs.h >>conftest.$ac_ext | |
24423 | cat >>conftest.$ac_ext <<_ACEOF | |
24424 | /* end confdefs.h. */ | |
24425 | #include <GL/gl.h> | |
24426 | _ACEOF | |
24427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24429 | ac_status=$? | |
24430 | grep -v '^ *+' conftest.er1 >conftest.err | |
24431 | rm -f conftest.er1 | |
24432 | cat conftest.err >&5 | |
24433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24434 | (exit $ac_status); } >/dev/null; then | |
24435 | if test -s conftest.err; then | |
24436 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24437 | else | |
24438 | ac_cpp_err= | |
24439 | fi | |
24440 | else | |
24441 | ac_cpp_err=yes | |
24442 | fi | |
24443 | if test -z "$ac_cpp_err"; then | |
24444 | ac_header_preproc=yes | |
24445 | else | |
24446 | echo "$as_me: failed program was:" >&5 | |
24447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24448 | ||
24449 | ac_header_preproc=no | |
24450 | fi | |
24451 | rm -f conftest.err conftest.$ac_ext | |
24452 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24453 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24454 | ||
24455 | # So? What about this header? | |
24456 | case $ac_header_compiler:$ac_header_preproc in | |
24457 | yes:no ) | |
24458 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24459 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24460 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24461 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24462 | ( | |
24463 | cat <<\_ASBOX | |
24464 | ## ------------------------------------ ## | |
24465 | ## Report this to bug-autoconf@gnu.org. ## | |
24466 | ## ------------------------------------ ## | |
24467 | _ASBOX | |
24468 | ) | | |
24469 | sed "s/^/$as_me: WARNING: /" >&2 | |
24470 | ;; | |
24471 | no:yes ) | |
24472 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
24473 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
24474 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
24475 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
24476 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24477 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24478 | ( | |
24479 | cat <<\_ASBOX | |
24480 | ## ------------------------------------ ## | |
24481 | ## Report this to bug-autoconf@gnu.org. ## | |
24482 | ## ------------------------------------ ## | |
24483 | _ASBOX | |
24484 | ) | | |
24485 | sed "s/^/$as_me: WARNING: /" >&2 | |
24486 | ;; | |
24487 | esac | |
24488 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24489 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24490 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24492 | else | |
24493 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 24494 | fi |
e6cc62c6 VS |
24495 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
24496 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24497 | ||
698dcdb6 | 24498 | fi |
e6cc62c6 VS |
24499 | if test $ac_cv_header_GL_gl_h = yes; then |
24500 | ||
89e3b3e4 VZ |
24501 | found_gl=0 |
24502 | ||
e6cc62c6 VS |
24503 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
24504 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
24505 | ||
21d1c967 | 24506 | ac_find_libraries= |
2b5f62a0 | 24507 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24508 | do |
24509 | for ac_extension in a so sl dylib; do | |
24510 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
24511 | ac_find_libraries=$ac_dir | |
24512 | break 2 | |
24513 | fi | |
24514 | done | |
24515 | done | |
24516 | ||
24517 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24518 | |
21d1c967 GD |
24519 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24520 | result=$? | |
24521 | if test $result = 0; then | |
24522 | ac_path_to_link="" | |
24523 | else | |
24524 | ac_path_to_link=" -L$ac_find_libraries" | |
24525 | fi | |
24526 | ||
89e3b3e4 VZ |
24527 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
24528 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 24529 | fi |
89e3b3e4 | 24530 | |
e6cc62c6 | 24531 | |
89e3b3e4 VZ |
24532 | ac_find_libraries= |
24533 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24534 | do | |
24535 | for ac_extension in a so sl dylib; do | |
24536 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
24537 | ac_find_libraries=$ac_dir | |
24538 | break 2 | |
24539 | fi | |
24540 | done | |
24541 | done | |
24542 | ||
24543 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24544 | |
89e3b3e4 VZ |
24545 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24546 | result=$? | |
24547 | if test $result = 0; then | |
24548 | ac_path_to_link="" | |
24549 | else | |
24550 | ac_path_to_link=" -L$ac_find_libraries" | |
24551 | fi | |
24552 | ||
24553 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
24554 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
24555 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
24556 | fi | |
24557 | ||
24558 | found_gl=1 | |
24559 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
24560 | echo "$as_me:$LINENO: result: yes" >&5 |
24561 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
24562 | fi |
24563 | fi | |
24564 | ||
24565 | if "$found_gl" != 1; then | |
e6cc62c6 VS |
24566 | echo "$as_me:$LINENO: result: no" >&5 |
24567 | echo "${ECHO_T}no" >&6 | |
24568 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
24569 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
24570 | ||
21d1c967 | 24571 | ac_find_libraries= |
2b5f62a0 | 24572 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24573 | do |
24574 | for ac_extension in a so sl dylib; do | |
24575 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
24576 | ac_find_libraries=$ac_dir | |
24577 | break 2 | |
24578 | fi | |
24579 | done | |
24580 | done | |
24581 | ||
24582 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24583 | |
21d1c967 GD |
24584 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24585 | result=$? | |
24586 | if test $result = 0; then | |
24587 | ac_path_to_link="" | |
24588 | else | |
24589 | ac_path_to_link=" -L$ac_find_libraries" | |
24590 | fi | |
24591 | ||
24592 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
24593 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
24594 | echo "$as_me:$LINENO: result: yes" >&5 |
24595 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 24596 | else |
e6cc62c6 VS |
24597 | echo "$as_me:$LINENO: result: no" >&5 |
24598 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
24599 | fi |
24600 | fi | |
e6cc62c6 | 24601 | |
5c6fa7d2 | 24602 | fi |
52127426 | 24603 | |
8284b0c5 | 24604 | |
e6cc62c6 | 24605 | |
21d1c967 | 24606 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
24607 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
24608 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
24609 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
24610 | fi |
24611 | fi | |
90dd450c | 24612 | |
21d1c967 | 24613 | if test "$wxUSE_OPENGL" = "yes"; then |
e6cc62c6 | 24614 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24615 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 24616 | _ACEOF |
21d1c967 | 24617 | |
e6cc62c6 | 24618 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24619 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 24620 | _ACEOF |
21d1c967 GD |
24621 | |
24622 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
24623 | fi | |
10f2d63a | 24624 | fi |
21d1c967 GD |
24625 | |
24626 | if test -z "$TOOLKIT_VPATH" ; then | |
24627 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 24628 | fi |
21d1c967 GD |
24629 | |
24630 | if test -n "$TOOLKIT" ; then | |
24631 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
24632 | fi | |
24633 | ||
fe0895cf | 24634 | UNICODE=0 |
21d1c967 GD |
24635 | lib_unicode_suffix= |
24636 | if test "$wxUSE_UNICODE" = "yes"; then | |
24637 | lib_unicode_suffix=u | |
fe0895cf | 24638 | UNICODE=1 |
90dd450c | 24639 | fi |
698dcdb6 | 24640 | |
21d1c967 | 24641 | lib_debug_suffix= |
fe0895cf | 24642 | BUILD=release |
21d1c967 GD |
24643 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
24644 | lib_debug_suffix=d | |
fe0895cf | 24645 | BUILD=debug |
21d1c967 | 24646 | fi |
698dcdb6 | 24647 | |
2b5f62a0 VZ |
24648 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
24649 | ||
24650 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
24651 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
24652 | |
24653 | if test "$cross_compiling" = "yes"; then | |
24654 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
24655 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
24656 | fi | |
24657 | ||
24658 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
24659 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 24660 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
24661 | |
24662 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24663 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
24664 | ||
24665 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
24666 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24667 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
24668 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24669 | ||
24670 | case "${host}" in | |
24671 | *-*-cygwin* | *-*-mingw32* ) | |
24672 | ||
e6cc62c6 VS |
24673 | |
24674 | ||
17234b26 | 24675 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
24676 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
24677 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
24678 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
24679 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24680 | else | |
24681 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24682 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24683 | fi | |
24684 | ;; | |
24685 | ||
24686 | *-*-darwin* ) | |
e6cc62c6 | 24687 | |
05159a27 GD |
24688 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
24689 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
24690 | ||
24691 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
24692 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
24693 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
24694 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
24695 | ||
21d1c967 | 24696 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
24697 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
24698 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
24699 | fi |
24700 | ;; | |
24701 | esac | |
24702 | ||
24703 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
24704 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
24705 | ||
24706 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
24707 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
24708 | ||
24709 | if test "$wxUSE_OPENGL" = "yes"; then | |
24710 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
24711 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
24712 | fi | |
24713 | ||
8284b0c5 MB |
24714 | |
24715 | ||
21d1c967 GD |
24716 | if test "$wxUSE_SHARED" = "yes"; then |
24717 | case "${host}" in | |
24718 | *-pc-os2_emx | *-pc-os2-emx | \ | |
24719 | *-pc-msdosdjgpp ) | |
24720 | wxUSE_SHARED=no | |
e6cc62c6 VS |
24721 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
24722 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
24723 | ;; |
24724 | esac | |
24725 | fi | |
24726 | ||
fe0895cf | 24727 | SHARED=0 |
2b5f62a0 | 24728 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 24729 | SHARED=1 |
2b5f62a0 VZ |
24730 | |
24731 | if test "$wxUSE_OPENGL" = "yes"; then | |
24732 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
24733 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
24734 | else | |
24735 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
24736 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
24737 | fi | |
24738 | ||
24739 | if test "$GCC" = "yes"; then | |
24740 | PIC_FLAG="-fPIC" | |
24741 | fi | |
24742 | ||
24743 | ||
e6cc62c6 | 24744 | |
2b5f62a0 VZ |
24745 | found_versioning=no |
24746 | ||
e6cc62c6 | 24747 | |
2b5f62a0 | 24748 | if test $found_versioning = no ; then |
e6cc62c6 VS |
24749 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
24750 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
24751 | if test "${wx_cv_version_script+set}" = set; then | |
24752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 24753 | else |
e6cc62c6 | 24754 | |
2b5f62a0 VZ |
24755 | echo "VER_1 { *; };" >conftest.sym |
24756 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 24757 | |
2b5f62a0 VZ |
24758 | if { ac_try=' |
24759 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
24760 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
24761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24762 | (eval $ac_try) 2>&5 | |
24763 | ac_status=$? | |
24764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24765 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
24766 | if test -s conftest.stderr ; then |
24767 | wx_cv_version_script=no | |
24768 | else | |
24769 | wx_cv_version_script=yes | |
24770 | fi | |
24771 | else | |
24772 | wx_cv_version_script=no | |
24773 | fi | |
24774 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 24775 | |
e6cc62c6 VS |
24776 | fi |
24777 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
24778 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 24779 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 24780 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
24781 | fi |
24782 | fi | |
21d1c967 | 24783 | |
21d1c967 GD |
24784 | |
24785 | SHARED_LD="${CXX} -shared -o" | |
24786 | ||
24787 | case "${host}" in | |
24788 | *-hp-hpux* ) | |
ad2622f1 | 24789 | if test "$GCC" = "yes"; then |
85d5e282 | 24790 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
24791 | else |
24792 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
24793 | ||
24794 | SHARED_LD="${CXX} -b -o" | |
24795 | PIC_FLAG="+Z" | |
24796 | fi | |
24797 | ||
24798 | if test "$wxUSE_OPENGL" = "yes"; then | |
24799 | WX_ALL_INSTALLED="preinstall_gl" | |
24800 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
24801 | else | |
24802 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
24803 | fi | |
24804 | ;; | |
24805 | ||
fe0895cf | 24806 | *-*-linux* | *-*-gnu* ) |
21d1c967 | 24807 | if test "$GCC" != "yes"; then |
e6cc62c6 VS |
24808 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
24809 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
24810 | if test "${wx_cv_prog_icc+set}" = set; then | |
24811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 24812 | else |
90dd450c | 24813 | |
e6cc62c6 VS |
24814 | cat >conftest.$ac_ext <<_ACEOF |
24815 | #line $LINENO "configure" | |
24816 | /* confdefs.h. */ | |
24817 | _ACEOF | |
24818 | cat confdefs.h >>conftest.$ac_ext | |
24819 | cat >>conftest.$ac_ext <<_ACEOF | |
24820 | /* end confdefs.h. */ | |
24821 | ||
24822 | int | |
24823 | main () | |
24824 | { | |
90dd450c | 24825 | |
21d1c967 GD |
24826 | #ifndef __INTEL_COMPILER |
24827 | #error Not icc | |
24828 | #endif | |
e6cc62c6 VS |
24829 | |
24830 | ; | |
24831 | return 0; | |
24832 | } | |
24833 | _ACEOF | |
24834 | rm -f conftest.$ac_objext | |
24835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24836 | (eval $ac_compile) 2>&5 | |
24837 | ac_status=$? | |
24838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24839 | (exit $ac_status); } && | |
24840 | { ac_try='test -s conftest.$ac_objext' | |
24841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24842 | (eval $ac_try) 2>&5 | |
24843 | ac_status=$? | |
24844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24845 | (exit $ac_status); }; }; then | |
21d1c967 | 24846 | wx_cv_prog_icc=yes |
6232543b | 24847 | else |
e6cc62c6 VS |
24848 | echo "$as_me: failed program was:" >&5 |
24849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24850 | ||
24851 | wx_cv_prog_icc=no | |
24852 | ||
247f5006 | 24853 | fi |
e6cc62c6 | 24854 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 24855 | |
e6cc62c6 VS |
24856 | fi |
24857 | echo "$as_me:$LINENO: result: $wx_cv_prog_icc" >&5 | |
24858 | echo "${ECHO_T}$wx_cv_prog_icc" >&6 | |
21d1c967 GD |
24859 | if test "$wx_cv_prog_icc" = "yes"; then |
24860 | PIC_FLAG="-KPIC" | |
24861 | fi | |
24862 | fi | |
24863 | ||
e6cc62c6 | 24864 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
21d1c967 GD |
24865 | ;; |
24866 | ||
24867 | *-*-solaris2* ) | |
24868 | if test "$GCC" = yes ; then | |
24869 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
24870 | |
24871 | saveLdflags="$LDFLAGS" | |
24872 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
24873 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
24874 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
24875 | cat >conftest.$ac_ext <<_ACEOF | |
24876 | #line $LINENO "configure" | |
24877 | /* confdefs.h. */ | |
24878 | _ACEOF | |
24879 | cat confdefs.h >>conftest.$ac_ext | |
24880 | cat >>conftest.$ac_ext <<_ACEOF | |
24881 | /* end confdefs.h. */ | |
24882 | ||
24883 | int | |
24884 | main () | |
24885 | { | |
fe0895cf | 24886 | |
e6cc62c6 VS |
24887 | ; |
24888 | return 0; | |
24889 | } | |
24890 | _ACEOF | |
24891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24893 | (eval $ac_link) 2>&5 | |
24894 | ac_status=$? | |
24895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24896 | (exit $ac_status); } && | |
24897 | { ac_try='test -s conftest$ac_exeext' | |
24898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24899 | (eval $ac_try) 2>&5 | |
24900 | ac_status=$? | |
24901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24902 | (exit $ac_status); }; }; then | |
24903 | ||
24904 | echo "$as_me:$LINENO: result: yes" >&5 | |
24905 | echo "${ECHO_T}yes" >&6 | |
24906 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
24907 | ||
24908 | else | |
24909 | echo "$as_me: failed program was:" >&5 | |
24910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24911 | ||
24912 | ||
24913 | echo "$as_me:$LINENO: result: no" >&5 | |
24914 | echo "${ECHO_T}no" >&6 | |
24915 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
24916 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 24917 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 VS |
24918 | cat >conftest.$ac_ext <<_ACEOF |
24919 | #line $LINENO "configure" | |
24920 | /* confdefs.h. */ | |
24921 | _ACEOF | |
24922 | cat confdefs.h >>conftest.$ac_ext | |
24923 | cat >>conftest.$ac_ext <<_ACEOF | |
24924 | /* end confdefs.h. */ | |
24925 | ||
24926 | int | |
24927 | main () | |
24928 | { | |
24929 | ||
24930 | ; | |
24931 | return 0; | |
24932 | } | |
24933 | _ACEOF | |
24934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24936 | (eval $ac_link) 2>&5 | |
24937 | ac_status=$? | |
24938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24939 | (exit $ac_status); } && | |
24940 | { ac_try='test -s conftest$ac_exeext' | |
24941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24942 | (eval $ac_try) 2>&5 | |
24943 | ac_status=$? | |
24944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24945 | (exit $ac_status); }; }; then | |
24946 | ||
24947 | echo "$as_me:$LINENO: result: yes" >&5 | |
24948 | echo "${ECHO_T}yes" >&6 | |
24949 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
24950 | else | |
24951 | echo "$as_me: failed program was:" >&5 | |
24952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 24953 | |
fe0895cf | 24954 | |
e6cc62c6 VS |
24955 | echo "$as_me:$LINENO: result: no" >&5 |
24956 | echo "${ECHO_T}no" >&6 | |
24957 | ||
fe0895cf | 24958 | fi |
e6cc62c6 VS |
24959 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
24960 | ||
24961 | fi | |
24962 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 24963 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
24964 | else |
24965 | SHARED_LD="${CXX} -G -o" | |
24966 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 24967 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
24968 | fi |
24969 | ;; | |
24970 | ||
24971 | *-*-darwin* ) | |
b2fee376 GD |
24972 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
24973 | CFLAGS="$CFLAGS -fno-common" | |
24974 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
24975 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
24976 | PIC_FLAG="-dynamic -fPIC" | |
21d1c967 GD |
24977 | ;; |
24978 | ||
24979 | *-*-aix* ) | |
2b5f62a0 VZ |
24980 | if test "$GCC" != "yes"; then |
24981 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 24982 | set dummy makeC++SharedLib; ac_word=$2 |
e6cc62c6 VS |
24983 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
24984 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
24985 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
24986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
321d2b14 VZ |
24987 | else |
24988 | if test -n "$AIX_CXX_LD"; then | |
24989 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
24990 | else | |
e6cc62c6 VS |
24991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24992 | for as_dir in $PATH | |
24993 | do | |
24994 | IFS=$as_save_IFS | |
24995 | test -z "$as_dir" && as_dir=. | |
24996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
24997 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
24998 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
24999 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25000 | break 2 | |
25001 | fi | |
25002 | done | |
25003 | done | |
25004 | ||
321d2b14 VZ |
25005 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
25006 | fi | |
25007 | fi | |
e6cc62c6 | 25008 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
321d2b14 | 25009 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
25010 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
25011 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
321d2b14 | 25012 | else |
e6cc62c6 VS |
25013 | echo "$as_me:$LINENO: result: no" >&5 |
25014 | echo "${ECHO_T}no" >&6 | |
321d2b14 VZ |
25015 | fi |
25016 | ||
8284b0c5 | 25017 | |
2b5f62a0 VZ |
25018 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
25019 | fi | |
21d1c967 GD |
25020 | ;; |
25021 | ||
25022 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
25023 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
25024 | ||
25025 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
25026 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
25027 | ||
25028 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
25029 | ||
f657dbe7 MB |
25030 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" |
25031 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
25032 | ||
25033 | if test "$wxUSE_OPENGL" = "yes"; then | |
25034 | LIBS="${LIBS} ${OPENGL_LIBS}" | |
21d1c967 GD |
25035 | fi |
25036 | ;; | |
25037 | ||
25038 | *-*-beos* ) | |
25039 | SHARED_LD="${LD} -shared -o" | |
25040 | ;; | |
25041 | ||
2b5f62a0 VZ |
25042 | *-*-irix* ) |
25043 | if test "$GCC" != "yes"; then | |
25044 | PIC_FLAG="-KPIC" | |
25045 | fi | |
25046 | ;; | |
25047 | ||
21d1c967 GD |
25048 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
25049 | *-*-sunos4* | \ | |
21d1c967 GD |
25050 | *-*-osf* | \ |
25051 | *-*-dgux5* | \ | |
25052 | *-*-sysv5* ) | |
25053 | ;; | |
25054 | ||
25055 | *) | |
e6cc62c6 VS |
25056 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
25057 | echo "$as_me: error: unknown system type $host." >&2;} | |
25058 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
25059 | esac |
25060 | ||
25061 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
25062 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
25063 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
25064 | fi | |
25065 | ||
25066 | WX_TARGET_LIBRARY_TYPE="so" | |
25067 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 25068 | fi |
10f2d63a | 25069 | |
21d1c967 GD |
25070 | if test "$wxUSE_SHARED" = "no"; then |
25071 | ||
25072 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
25073 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
25074 | fi | |
25075 | ||
ac0c4cc3 | 25076 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
25077 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
25078 | fi | |
25079 | ||
25080 | if test "$wxUSE_OPENGL" = "yes"; then | |
25081 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
25082 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
25083 | else | |
25084 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
25085 | fi | |
25086 | ||
25087 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
25088 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
25089 | ||
25090 | WX_TARGET_LIBRARY_TYPE="a" | |
25091 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
25092 | |
25093 | STATIC_FLAG="yes" | |
25094 | else | |
25095 | STATIC_FLAG="no" | |
90dd450c | 25096 | fi |
1e487827 | 25097 | |
93fac604 VZ |
25098 | MACRESCOMP="@#" |
25099 | MACSETFILE="@#" | |
36825681 | 25100 | MACRESWXCONFIG="#" |
21d1c967 | 25101 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 25102 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
25103 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
25104 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
25105 | # Extract the first word of "Rez", so it can be a program name with args. | |
25106 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25107 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25108 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25109 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 25111 | else |
21d1c967 GD |
25112 | if test -n "$RESCOMP"; then |
25113 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 25114 | else |
e6cc62c6 VS |
25115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25116 | for as_dir in $PATH | |
25117 | do | |
25118 | IFS=$as_save_IFS | |
25119 | test -z "$as_dir" && as_dir=. | |
25120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25121 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25122 | ac_cv_prog_RESCOMP="Rez" | |
25123 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25124 | break 2 | |
25125 | fi | |
25126 | done | |
25127 | done | |
25128 | ||
21d1c967 | 25129 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 25130 | fi |
b93d0d08 | 25131 | fi |
e6cc62c6 | 25132 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 25133 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25134 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25135 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 25136 | else |
e6cc62c6 VS |
25137 | echo "$as_me:$LINENO: result: no" >&5 |
25138 | echo "${ECHO_T}no" >&6 | |
90dd450c | 25139 | fi |
b93d0d08 | 25140 | |
21d1c967 GD |
25141 | # Extract the first word of "DeRez", so it can be a program name with args. |
25142 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25145 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 25147 | else |
21d1c967 GD |
25148 | if test -n "$DEREZ"; then |
25149 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 25150 | else |
e6cc62c6 VS |
25151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25152 | for as_dir in $PATH | |
25153 | do | |
25154 | IFS=$as_save_IFS | |
25155 | test -z "$as_dir" && as_dir=. | |
25156 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25157 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25158 | ac_cv_prog_DEREZ="DeRez" | |
25159 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25160 | break 2 | |
25161 | fi | |
25162 | done | |
25163 | done | |
25164 | ||
21d1c967 | 25165 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25166 | fi |
90dd450c | 25167 | fi |
e6cc62c6 | 25168 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25169 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25170 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25171 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25172 | else |
e6cc62c6 VS |
25173 | echo "$as_me:$LINENO: result: no" >&5 |
25174 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25175 | fi |
698dcdb6 | 25176 | |
36825681 GD |
25177 | # Extract the first word of "SetFile", so it can be a program name with args. |
25178 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25179 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25181 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25183 | else |
25184 | if test -n "$SETFILE"; then | |
25185 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25186 | else | |
e6cc62c6 VS |
25187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25188 | for as_dir in $PATH | |
25189 | do | |
25190 | IFS=$as_save_IFS | |
25191 | test -z "$as_dir" && as_dir=. | |
25192 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25193 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25194 | ac_cv_prog_SETFILE="SetFile" | |
25195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25196 | break 2 | |
25197 | fi | |
25198 | done | |
25199 | done | |
25200 | ||
36825681 GD |
25201 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25202 | fi | |
25203 | fi | |
e6cc62c6 | 25204 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25205 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25206 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25207 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25208 | else |
e6cc62c6 VS |
25209 | echo "$as_me:$LINENO: result: no" >&5 |
25210 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25211 | fi |
25212 | ||
21d1c967 | 25213 | MACOSX_BUNDLE="bundle" |
36825681 GD |
25214 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
25215 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25216 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
25217 | elif test "$wxUSE_COCOA" = 1; then |
25218 | # Extract the first word of "Rez", so it can be a program name with args. | |
25219 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25220 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25222 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25224 | else |
25225 | if test -n "$RESCOMP"; then | |
25226 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25227 | else | |
e6cc62c6 VS |
25228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25229 | for as_dir in $PATH | |
25230 | do | |
25231 | IFS=$as_save_IFS | |
25232 | test -z "$as_dir" && as_dir=. | |
25233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25235 | ac_cv_prog_RESCOMP="Rez" | |
25236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25237 | break 2 | |
25238 | fi | |
25239 | done | |
25240 | done | |
25241 | ||
64440d77 DE |
25242 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
25243 | fi | |
25244 | fi | |
e6cc62c6 | 25245 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 25246 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25247 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25248 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 25249 | else |
e6cc62c6 VS |
25250 | echo "$as_me:$LINENO: result: no" >&5 |
25251 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25252 | fi |
25253 | ||
25254 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25255 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25256 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25258 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25260 | else |
25261 | if test -n "$DEREZ"; then | |
25262 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25263 | else | |
e6cc62c6 VS |
25264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25265 | for as_dir in $PATH | |
25266 | do | |
25267 | IFS=$as_save_IFS | |
25268 | test -z "$as_dir" && as_dir=. | |
25269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25270 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25271 | ac_cv_prog_DEREZ="DeRez" | |
25272 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25273 | break 2 | |
25274 | fi | |
25275 | done | |
25276 | done | |
25277 | ||
64440d77 DE |
25278 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
25279 | fi | |
25280 | fi | |
e6cc62c6 | 25281 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 25282 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25283 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25284 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 25285 | else |
e6cc62c6 VS |
25286 | echo "$as_me:$LINENO: result: no" >&5 |
25287 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25288 | fi |
25289 | ||
25290 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25291 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25292 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25294 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25296 | else |
25297 | if test -n "$SETFILE"; then | |
25298 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25299 | else | |
e6cc62c6 VS |
25300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25301 | for as_dir in $PATH | |
25302 | do | |
25303 | IFS=$as_save_IFS | |
25304 | test -z "$as_dir" && as_dir=. | |
25305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25306 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25307 | ac_cv_prog_SETFILE="SetFile" | |
25308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25309 | break 2 | |
25310 | fi | |
25311 | done | |
25312 | done | |
25313 | ||
64440d77 DE |
25314 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25315 | fi | |
25316 | fi | |
e6cc62c6 | 25317 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 25318 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25319 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25320 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 25321 | else |
e6cc62c6 VS |
25322 | echo "$as_me:$LINENO: result: no" >&5 |
25323 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25324 | fi |
25325 | ||
25326 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25327 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25328 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
25329 | else |
25330 | if test "$wxUSE_PM" = 1; then | |
36825681 | 25331 | MACRESCOMP="emxbind -ep" |
90dd450c | 25332 | fi |
4f14bcd8 | 25333 | fi |
10f2d63a | 25334 | |
8284b0c5 | 25335 | |
e6cc62c6 VS |
25336 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25337 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25338 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25340 | else |
e6cc62c6 VS |
25341 | cat >conftest.$ac_ext <<_ACEOF |
25342 | #line $LINENO "configure" | |
25343 | /* confdefs.h. */ | |
25344 | _ACEOF | |
25345 | cat confdefs.h >>conftest.$ac_ext | |
25346 | cat >>conftest.$ac_ext <<_ACEOF | |
25347 | /* end confdefs.h. */ | |
25348 | $ac_includes_default | |
25349 | int | |
25350 | main () | |
25351 | { | |
25352 | if ((mode_t *) 0) | |
25353 | return 0; | |
25354 | if (sizeof (mode_t)) | |
25355 | return 0; | |
25356 | ; | |
25357 | return 0; | |
25358 | } | |
25359 | _ACEOF | |
25360 | rm -f conftest.$ac_objext | |
25361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25362 | (eval $ac_compile) 2>&5 | |
25363 | ac_status=$? | |
25364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25365 | (exit $ac_status); } && | |
25366 | { ac_try='test -s conftest.$ac_objext' | |
25367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25368 | (eval $ac_try) 2>&5 | |
25369 | ac_status=$? | |
25370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25371 | (exit $ac_status); }; }; then | |
25372 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25373 | else |
e6cc62c6 VS |
25374 | echo "$as_me: failed program was:" >&5 |
25375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25376 | |
e6cc62c6 | 25377 | ac_cv_type_mode_t=no |
a0b9e27f | 25378 | fi |
e6cc62c6 | 25379 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25380 | fi |
e6cc62c6 VS |
25381 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25382 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25383 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25384 | : |
25385 | else | |
a0b9e27f | 25386 | |
e6cc62c6 VS |
25387 | cat >>confdefs.h <<_ACEOF |
25388 | #define mode_t int | |
25389 | _ACEOF | |
8284b0c5 MB |
25390 | |
25391 | fi | |
25392 | ||
e6cc62c6 VS |
25393 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25394 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25395 | if test "${ac_cv_type_off_t+set}" = set; then | |
25396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25397 | else |
e6cc62c6 VS |
25398 | cat >conftest.$ac_ext <<_ACEOF |
25399 | #line $LINENO "configure" | |
25400 | /* confdefs.h. */ | |
25401 | _ACEOF | |
25402 | cat confdefs.h >>conftest.$ac_ext | |
25403 | cat >>conftest.$ac_ext <<_ACEOF | |
25404 | /* end confdefs.h. */ | |
25405 | $ac_includes_default | |
25406 | int | |
25407 | main () | |
25408 | { | |
25409 | if ((off_t *) 0) | |
25410 | return 0; | |
25411 | if (sizeof (off_t)) | |
25412 | return 0; | |
25413 | ; | |
25414 | return 0; | |
25415 | } | |
25416 | _ACEOF | |
25417 | rm -f conftest.$ac_objext | |
25418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25419 | (eval $ac_compile) 2>&5 | |
25420 | ac_status=$? | |
25421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25422 | (exit $ac_status); } && | |
25423 | { ac_try='test -s conftest.$ac_objext' | |
25424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25425 | (eval $ac_try) 2>&5 | |
25426 | ac_status=$? | |
25427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25428 | (exit $ac_status); }; }; then | |
25429 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25430 | else |
e6cc62c6 VS |
25431 | echo "$as_me: failed program was:" >&5 |
25432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25433 | |
e6cc62c6 | 25434 | ac_cv_type_off_t=no |
8284b0c5 | 25435 | fi |
e6cc62c6 | 25436 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 25437 | fi |
e6cc62c6 VS |
25438 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
25439 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25440 | if test $ac_cv_type_off_t = yes; then | |
25441 | : | |
247f5006 VZ |
25442 | else |
25443 | ||
e6cc62c6 | 25444 | cat >>confdefs.h <<_ACEOF |
90dd450c | 25445 | #define off_t long |
e6cc62c6 | 25446 | _ACEOF |
10f2d63a | 25447 | |
90dd450c | 25448 | fi |
10f2d63a | 25449 | |
e6cc62c6 VS |
25450 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
25451 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25452 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25454 | else |
e6cc62c6 VS |
25455 | cat >conftest.$ac_ext <<_ACEOF |
25456 | #line $LINENO "configure" | |
25457 | /* confdefs.h. */ | |
25458 | _ACEOF | |
25459 | cat confdefs.h >>conftest.$ac_ext | |
25460 | cat >>conftest.$ac_ext <<_ACEOF | |
25461 | /* end confdefs.h. */ | |
25462 | $ac_includes_default | |
25463 | int | |
25464 | main () | |
25465 | { | |
25466 | if ((pid_t *) 0) | |
25467 | return 0; | |
25468 | if (sizeof (pid_t)) | |
25469 | return 0; | |
25470 | ; | |
25471 | return 0; | |
25472 | } | |
25473 | _ACEOF | |
25474 | rm -f conftest.$ac_objext | |
25475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25476 | (eval $ac_compile) 2>&5 | |
25477 | ac_status=$? | |
25478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25479 | (exit $ac_status); } && | |
25480 | { ac_try='test -s conftest.$ac_objext' | |
25481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25482 | (eval $ac_try) 2>&5 | |
25483 | ac_status=$? | |
25484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25485 | (exit $ac_status); }; }; then | |
90dd450c | 25486 | ac_cv_type_pid_t=yes |
698dcdb6 | 25487 | else |
e6cc62c6 VS |
25488 | echo "$as_me: failed program was:" >&5 |
25489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25490 | |
e6cc62c6 VS |
25491 | ac_cv_type_pid_t=no |
25492 | fi | |
25493 | rm -f conftest.$ac_objext conftest.$ac_ext | |
a0b9e27f | 25494 | fi |
e6cc62c6 VS |
25495 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25496 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25497 | if test $ac_cv_type_pid_t = yes; then | |
25498 | : | |
25499 | else | |
25500 | ||
25501 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25502 | #define pid_t int |
e6cc62c6 | 25503 | _ACEOF |
10f2d63a | 25504 | |
7b4a847f RR |
25505 | fi |
25506 | ||
e6cc62c6 VS |
25507 | echo "$as_me:$LINENO: checking for size_t" >&5 |
25508 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25509 | if test "${ac_cv_type_size_t+set}" = set; then | |
25510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 25511 | else |
e6cc62c6 VS |
25512 | cat >conftest.$ac_ext <<_ACEOF |
25513 | #line $LINENO "configure" | |
25514 | /* confdefs.h. */ | |
25515 | _ACEOF | |
25516 | cat confdefs.h >>conftest.$ac_ext | |
25517 | cat >>conftest.$ac_ext <<_ACEOF | |
25518 | /* end confdefs.h. */ | |
25519 | $ac_includes_default | |
25520 | int | |
25521 | main () | |
25522 | { | |
25523 | if ((size_t *) 0) | |
25524 | return 0; | |
25525 | if (sizeof (size_t)) | |
25526 | return 0; | |
25527 | ; | |
25528 | return 0; | |
25529 | } | |
25530 | _ACEOF | |
25531 | rm -f conftest.$ac_objext | |
25532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25533 | (eval $ac_compile) 2>&5 | |
25534 | ac_status=$? | |
25535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25536 | (exit $ac_status); } && | |
25537 | { ac_try='test -s conftest.$ac_objext' | |
25538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25539 | (eval $ac_try) 2>&5 | |
25540 | ac_status=$? | |
25541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25542 | (exit $ac_status); }; }; then | |
90dd450c | 25543 | ac_cv_type_size_t=yes |
18dbb1f6 | 25544 | else |
e6cc62c6 VS |
25545 | echo "$as_me: failed program was:" >&5 |
25546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25547 | |
e6cc62c6 | 25548 | ac_cv_type_size_t=no |
a0b9e27f | 25549 | fi |
e6cc62c6 VS |
25550 | rm -f conftest.$ac_objext conftest.$ac_ext |
25551 | fi | |
25552 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25553 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25554 | if test $ac_cv_type_size_t = yes; then | |
25555 | : | |
25556 | else | |
25557 | ||
25558 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25559 | #define size_t unsigned |
e6cc62c6 | 25560 | _ACEOF |
90dd450c VZ |
25561 | |
25562 | fi | |
25563 | ||
e6cc62c6 VS |
25564 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25565 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25566 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 25568 | else |
e6cc62c6 VS |
25569 | cat >conftest.$ac_ext <<_ACEOF |
25570 | #line $LINENO "configure" | |
25571 | /* confdefs.h. */ | |
25572 | _ACEOF | |
25573 | cat confdefs.h >>conftest.$ac_ext | |
25574 | cat >>conftest.$ac_ext <<_ACEOF | |
25575 | /* end confdefs.h. */ | |
90dd450c | 25576 | #include <sys/types.h> |
e6cc62c6 VS |
25577 | |
25578 | _ACEOF | |
90dd450c | 25579 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 25580 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 25581 | ac_cv_type_uid_t=yes |
b3e8d00a | 25582 | else |
90dd450c | 25583 | ac_cv_type_uid_t=no |
b3e8d00a | 25584 | fi |
90dd450c | 25585 | rm -f conftest* |
b3e8d00a | 25586 | |
4f14bcd8 | 25587 | fi |
e6cc62c6 VS |
25588 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25589 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 25590 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
25591 | |
25592 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25593 | #define uid_t int |
e6cc62c6 | 25594 | _ACEOF |
247f5006 | 25595 | |
e6cc62c6 VS |
25596 | |
25597 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25598 | #define gid_t int |
e6cc62c6 | 25599 | _ACEOF |
4f14bcd8 | 25600 | |
b3e8d00a | 25601 | fi |
b3e8d00a | 25602 | |
8284b0c5 MB |
25603 | |
25604 | ||
e6cc62c6 VS |
25605 | |
25606 | ac_ext=cc | |
4f14bcd8 | 25607 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
25608 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25609 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25610 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25611 | ||
25612 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
25613 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
25614 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
25615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25616 | else | |
25617 | ||
25618 | cat >conftest.$ac_ext <<_ACEOF | |
25619 | #line $LINENO "configure" | |
25620 | /* confdefs.h. */ | |
25621 | _ACEOF | |
25622 | cat confdefs.h >>conftest.$ac_ext | |
25623 | cat >>conftest.$ac_ext <<_ACEOF | |
25624 | /* end confdefs.h. */ | |
90dd450c | 25625 | #include <stddef.h> |
e6cc62c6 VS |
25626 | int |
25627 | main () | |
25628 | { | |
90dd450c VZ |
25629 | |
25630 | return 0; } | |
25631 | ||
25632 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
25633 | ||
25634 | int bar() { | |
e6cc62c6 VS |
25635 | |
25636 | ; | |
25637 | return 0; | |
25638 | } | |
25639 | _ACEOF | |
25640 | rm -f conftest.$ac_objext | |
25641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25642 | (eval $ac_compile) 2>&5 | |
25643 | ac_status=$? | |
25644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25645 | (exit $ac_status); } && | |
25646 | { ac_try='test -s conftest.$ac_objext' | |
25647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25648 | (eval $ac_try) 2>&5 | |
25649 | ac_status=$? | |
25650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25651 | (exit $ac_status); }; }; then | |
90dd450c | 25652 | wx_cv_size_t_is_uint=no |
698dcdb6 | 25653 | else |
e6cc62c6 VS |
25654 | echo "$as_me: failed program was:" >&5 |
25655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25656 | ||
25657 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 25658 | |
247f5006 | 25659 | fi |
e6cc62c6 VS |
25660 | rm -f conftest.$ac_objext conftest.$ac_ext |
25661 | ||
a0b9e27f | 25662 | |
e6cc62c6 VS |
25663 | fi |
25664 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
25665 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 25666 | |
90dd450c | 25667 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 25668 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25669 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 25670 | _ACEOF |
698dcdb6 | 25671 | |
90dd450c | 25672 | else |
e6cc62c6 VS |
25673 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
25674 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
25675 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
25676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25677 | else |
e6cc62c6 VS |
25678 | cat >conftest.$ac_ext <<_ACEOF |
25679 | #line $LINENO "configure" | |
25680 | /* confdefs.h. */ | |
25681 | _ACEOF | |
25682 | cat confdefs.h >>conftest.$ac_ext | |
25683 | cat >>conftest.$ac_ext <<_ACEOF | |
25684 | /* end confdefs.h. */ | |
90dd450c | 25685 | #include <stddef.h> |
e6cc62c6 VS |
25686 | int |
25687 | main () | |
25688 | { | |
90dd450c VZ |
25689 | |
25690 | return 0; } | |
25691 | ||
25692 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
25693 | ||
25694 | int bar() { | |
e6cc62c6 VS |
25695 | |
25696 | ; | |
25697 | return 0; | |
25698 | } | |
25699 | _ACEOF | |
25700 | rm -f conftest.$ac_objext | |
25701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25702 | (eval $ac_compile) 2>&5 | |
25703 | ac_status=$? | |
25704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25705 | (exit $ac_status); } && | |
25706 | { ac_try='test -s conftest.$ac_objext' | |
25707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25708 | (eval $ac_try) 2>&5 | |
25709 | ac_status=$? | |
25710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25711 | (exit $ac_status); }; }; then | |
90dd450c | 25712 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 25713 | else |
e6cc62c6 VS |
25714 | echo "$as_me: failed program was:" >&5 |
25715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25716 | ||
25717 | wx_cv_size_t_is_ulong=yes | |
25718 | ||
247f5006 | 25719 | fi |
e6cc62c6 | 25720 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25721 | |
e6cc62c6 VS |
25722 | fi |
25723 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
25724 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 25725 | |
90dd450c | 25726 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 25727 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25728 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 25729 | _ACEOF |
4f14bcd8 GD |
25730 | |
25731 | fi | |
90dd450c | 25732 | fi |
1e487827 | 25733 | |
90dd450c | 25734 | ac_ext=c |
4f14bcd8 | 25735 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
25736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 25739 | |
5c6fa7d2 | 25740 | |
8284b0c5 | 25741 | |
e6cc62c6 VS |
25742 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
25743 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
25744 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
25745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25746 | else |
e6cc62c6 VS |
25747 | |
25748 | cat >conftest.$ac_ext <<_ACEOF | |
25749 | #line $LINENO "configure" | |
25750 | /* confdefs.h. */ | |
25751 | _ACEOF | |
25752 | cat confdefs.h >>conftest.$ac_ext | |
25753 | cat >>conftest.$ac_ext <<_ACEOF | |
25754 | /* end confdefs.h. */ | |
90dd450c | 25755 | #include <pwd.h> |
e6cc62c6 VS |
25756 | int |
25757 | main () | |
25758 | { | |
f6bcfd97 | 25759 | |
90dd450c VZ |
25760 | char *p; |
25761 | struct passwd *pw; | |
25762 | p = pw->pw_gecos; | |
e6cc62c6 VS |
25763 | |
25764 | ; | |
25765 | return 0; | |
25766 | } | |
25767 | _ACEOF | |
25768 | rm -f conftest.$ac_objext | |
25769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25770 | (eval $ac_compile) 2>&5 | |
25771 | ac_status=$? | |
25772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25773 | (exit $ac_status); } && | |
25774 | { ac_try='test -s conftest.$ac_objext' | |
25775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25776 | (eval $ac_try) 2>&5 | |
25777 | ac_status=$? | |
25778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25779 | (exit $ac_status); }; }; then | |
25780 | ||
90dd450c | 25781 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 25782 | |
10f2d63a | 25783 | else |
e6cc62c6 VS |
25784 | echo "$as_me: failed program was:" >&5 |
25785 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25786 | ||
25787 | ||
90dd450c | 25788 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 25789 | |
247f5006 VZ |
25790 | |
25791 | fi | |
e6cc62c6 | 25792 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25793 | |
e6cc62c6 VS |
25794 | |
25795 | fi | |
25796 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
25797 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 25798 | |
90dd450c | 25799 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 25800 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25801 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 25802 | _ACEOF |
c521c494 | 25803 | |
90dd450c | 25804 | fi |
4f14bcd8 | 25805 | |
8284b0c5 | 25806 | |
d29b553b | 25807 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 25808 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 25809 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 25810 | _ACEOF |
d74f4b5a | 25811 | |
8284b0c5 | 25812 | |
d74f4b5a VZ |
25813 | WCSLEN_FOUND=0 |
25814 | WCHAR_LINK= | |
e6cc62c6 VS |
25815 | |
25816 | for ac_func in wcslen | |
7a30264c | 25817 | do |
e6cc62c6 VS |
25818 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25819 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25820 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25821 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25823 | else | |
25824 | cat >conftest.$ac_ext <<_ACEOF | |
25825 | #line $LINENO "configure" | |
25826 | /* confdefs.h. */ | |
25827 | _ACEOF | |
25828 | cat confdefs.h >>conftest.$ac_ext | |
25829 | cat >>conftest.$ac_ext <<_ACEOF | |
25830 | /* end confdefs.h. */ | |
7a30264c | 25831 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
25832 | which can conflict with char $ac_func (); below. |
25833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
25834 | <limits.h> exists even on freestanding compilers. */ | |
25835 | #ifdef __STDC__ | |
25836 | # include <limits.h> | |
25837 | #else | |
25838 | # include <assert.h> | |
25839 | #endif | |
4f14bcd8 | 25840 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25841 | #ifdef __cplusplus |
25842 | extern "C" | |
25843 | { | |
25844 | #endif | |
4f14bcd8 | 25845 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25846 | builtin and then its argument prototype would still apply. */ |
25847 | char $ac_func (); | |
7a30264c VZ |
25848 | /* The GNU C library defines this for functions which it implements |
25849 | to always fail with ENOSYS. Some functions are actually named | |
25850 | something starting with __ and the normal name is an alias. */ | |
25851 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25852 | choke me | |
25853 | #else | |
e6cc62c6 VS |
25854 | char (*f) () = $ac_func; |
25855 | #endif | |
25856 | #ifdef __cplusplus | |
25857 | } | |
7a30264c VZ |
25858 | #endif |
25859 | ||
e6cc62c6 VS |
25860 | int |
25861 | main () | |
25862 | { | |
25863 | return f != $ac_func; | |
25864 | ; | |
25865 | return 0; | |
25866 | } | |
25867 | _ACEOF | |
25868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25870 | (eval $ac_link) 2>&5 | |
25871 | ac_status=$? | |
25872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25873 | (exit $ac_status); } && | |
25874 | { ac_try='test -s conftest$ac_exeext' | |
25875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25876 | (eval $ac_try) 2>&5 | |
25877 | ac_status=$? | |
25878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25879 | (exit $ac_status); }; }; then | |
25880 | eval "$as_ac_var=yes" | |
25881 | else | |
25882 | echo "$as_me: failed program was:" >&5 | |
25883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25884 | ||
25885 | eval "$as_ac_var=no" | |
25886 | fi | |
25887 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25888 | fi | |
25889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25890 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25891 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25892 | cat >>confdefs.h <<_ACEOF | |
25893 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25894 | _ACEOF | |
d74f4b5a | 25895 | WCSLEN_FOUND=1 |
7a30264c VZ |
25896 | fi |
25897 | done | |
9d8deca0 | 25898 | |
8284b0c5 | 25899 | |
d74f4b5a | 25900 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 25901 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
25902 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
25903 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
25904 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
25905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 25906 | else |
e6cc62c6 | 25907 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 25908 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 VS |
25909 | cat >conftest.$ac_ext <<_ACEOF |
25910 | #line $LINENO "configure" | |
25911 | /* confdefs.h. */ | |
25912 | _ACEOF | |
25913 | cat confdefs.h >>conftest.$ac_ext | |
25914 | cat >>conftest.$ac_ext <<_ACEOF | |
25915 | /* end confdefs.h. */ | |
25916 | ||
4f14bcd8 | 25917 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25918 | #ifdef __cplusplus |
25919 | extern "C" | |
25920 | #endif | |
4f14bcd8 | 25921 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25922 | builtin and then its argument prototype would still apply. */ |
25923 | char wcslen (); | |
25924 | int | |
25925 | main () | |
25926 | { | |
25927 | wcslen (); | |
25928 | ; | |
25929 | return 0; | |
25930 | } | |
25931 | _ACEOF | |
25932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25934 | (eval $ac_link) 2>&5 | |
25935 | ac_status=$? | |
25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25937 | (exit $ac_status); } && | |
25938 | { ac_try='test -s conftest$ac_exeext' | |
25939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25940 | (eval $ac_try) 2>&5 | |
25941 | ac_status=$? | |
25942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25943 | (exit $ac_status); }; }; then | |
25944 | ac_cv_lib_msvcrt_wcslen=yes | |
25945 | else | |
25946 | echo "$as_me: failed program was:" >&5 | |
25947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25948 | ||
25949 | ac_cv_lib_msvcrt_wcslen=no | |
25950 | fi | |
25951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25952 | LIBS=$ac_check_lib_save_LIBS | |
25953 | fi | |
25954 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
25955 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
25956 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 25957 | WCHAR_OK=1 |
d29b553b | 25958 | fi |
698dcdb6 | 25959 | |
7a30264c | 25960 | else |
e6cc62c6 VS |
25961 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
25962 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
25963 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
25964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25965 | else |
e6cc62c6 | 25966 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 25967 | LIBS="-lw $LIBS" |
e6cc62c6 VS |
25968 | cat >conftest.$ac_ext <<_ACEOF |
25969 | #line $LINENO "configure" | |
25970 | /* confdefs.h. */ | |
25971 | _ACEOF | |
25972 | cat confdefs.h >>conftest.$ac_ext | |
25973 | cat >>conftest.$ac_ext <<_ACEOF | |
25974 | /* end confdefs.h. */ | |
25975 | ||
4f14bcd8 | 25976 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
25977 | #ifdef __cplusplus |
25978 | extern "C" | |
25979 | #endif | |
4f14bcd8 | 25980 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
25981 | builtin and then its argument prototype would still apply. */ |
25982 | char wcslen (); | |
25983 | int | |
25984 | main () | |
25985 | { | |
25986 | wcslen (); | |
25987 | ; | |
25988 | return 0; | |
25989 | } | |
25990 | _ACEOF | |
25991 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25992 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25993 | (eval $ac_link) 2>&5 | |
25994 | ac_status=$? | |
25995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25996 | (exit $ac_status); } && | |
25997 | { ac_try='test -s conftest$ac_exeext' | |
25998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25999 | (eval $ac_try) 2>&5 | |
26000 | ac_status=$? | |
26001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26002 | (exit $ac_status); }; }; then | |
26003 | ac_cv_lib_w_wcslen=yes | |
26004 | else | |
26005 | echo "$as_me: failed program was:" >&5 | |
26006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26007 | ||
26008 | ac_cv_lib_w_wcslen=no | |
26009 | fi | |
26010 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26011 | LIBS=$ac_check_lib_save_LIBS | |
26012 | fi | |
26013 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
26014 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
26015 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 26016 | |
7a30264c | 26017 | WCHAR_LINK=" -lw" |
d74f4b5a | 26018 | WCSLEN_FOUND=1 |
e6cc62c6 | 26019 | |
4f14bcd8 | 26020 | fi |
10f2d63a | 26021 | |
7a30264c | 26022 | fi |
d29b553b | 26023 | fi |
95c8801c | 26024 | |
d74f4b5a | 26025 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 26026 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26027 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 26028 | _ACEOF |
10f2d63a | 26029 | |
d74f4b5a | 26030 | fi |
52127426 | 26031 | |
e6cc62c6 VS |
26032 | |
26033 | for ac_func in wcsrtombs | |
eb4efbdc | 26034 | do |
e6cc62c6 VS |
26035 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26036 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26037 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26038 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26040 | else | |
26041 | cat >conftest.$ac_ext <<_ACEOF | |
26042 | #line $LINENO "configure" | |
26043 | /* confdefs.h. */ | |
26044 | _ACEOF | |
26045 | cat confdefs.h >>conftest.$ac_ext | |
26046 | cat >>conftest.$ac_ext <<_ACEOF | |
26047 | /* end confdefs.h. */ | |
eb4efbdc | 26048 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26049 | which can conflict with char $ac_func (); below. |
26050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26051 | <limits.h> exists even on freestanding compilers. */ | |
26052 | #ifdef __STDC__ | |
26053 | # include <limits.h> | |
26054 | #else | |
26055 | # include <assert.h> | |
26056 | #endif | |
eb4efbdc | 26057 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26058 | #ifdef __cplusplus |
26059 | extern "C" | |
26060 | { | |
26061 | #endif | |
4f14bcd8 | 26062 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26063 | builtin and then its argument prototype would still apply. */ |
26064 | char $ac_func (); | |
10f2d63a VZ |
26065 | /* The GNU C library defines this for functions which it implements |
26066 | to always fail with ENOSYS. Some functions are actually named | |
26067 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 26068 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
26069 | choke me |
26070 | #else | |
e6cc62c6 VS |
26071 | char (*f) () = $ac_func; |
26072 | #endif | |
26073 | #ifdef __cplusplus | |
26074 | } | |
10f2d63a VZ |
26075 | #endif |
26076 | ||
e6cc62c6 VS |
26077 | int |
26078 | main () | |
26079 | { | |
26080 | return f != $ac_func; | |
26081 | ; | |
26082 | return 0; | |
26083 | } | |
26084 | _ACEOF | |
26085 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26087 | (eval $ac_link) 2>&5 | |
26088 | ac_status=$? | |
26089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26090 | (exit $ac_status); } && | |
26091 | { ac_try='test -s conftest$ac_exeext' | |
26092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26093 | (eval $ac_try) 2>&5 | |
26094 | ac_status=$? | |
26095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26096 | (exit $ac_status); }; }; then | |
26097 | eval "$as_ac_var=yes" | |
26098 | else | |
26099 | echo "$as_me: failed program was:" >&5 | |
26100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26101 | ||
26102 | eval "$as_ac_var=no" | |
26103 | fi | |
26104 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26105 | fi | |
26106 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26107 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26108 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26109 | cat >>confdefs.h <<_ACEOF | |
26110 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26111 | _ACEOF | |
270a909e | 26112 | |
4f14bcd8 | 26113 | fi |
247f5006 | 26114 | done |
1e487827 | 26115 | |
af15babd | 26116 | else |
e6cc62c6 VS |
26117 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
26118 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 26119 | fi |
52127426 | 26120 | |
8284b0c5 | 26121 | |
e6cc62c6 VS |
26122 | |
26123 | ac_ext=cc | |
247f5006 | 26124 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26125 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26126 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26127 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26128 | ||
af15babd | 26129 | |
247f5006 VZ |
26130 | |
26131 | for ac_func in vsnprintf | |
26132 | do | |
e6cc62c6 VS |
26133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26134 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26136 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26138 | else | |
26139 | cat >conftest.$ac_ext <<_ACEOF | |
26140 | #line $LINENO "configure" | |
26141 | /* confdefs.h. */ | |
26142 | _ACEOF | |
26143 | cat confdefs.h >>conftest.$ac_ext | |
26144 | cat >>conftest.$ac_ext <<_ACEOF | |
26145 | /* end confdefs.h. */ | |
247f5006 | 26146 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26147 | which can conflict with char $ac_func (); below. |
26148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26149 | <limits.h> exists even on freestanding compilers. */ | |
26150 | #ifdef __STDC__ | |
26151 | # include <limits.h> | |
26152 | #else | |
26153 | # include <assert.h> | |
26154 | #endif | |
247f5006 VZ |
26155 | /* Override any gcc2 internal prototype to avoid an error. */ |
26156 | #ifdef __cplusplus | |
26157 | extern "C" | |
e6cc62c6 | 26158 | { |
247f5006 VZ |
26159 | #endif |
26160 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
26161 | builtin and then its argument prototype would still apply. */ |
26162 | char $ac_func (); | |
247f5006 VZ |
26163 | /* The GNU C library defines this for functions which it implements |
26164 | to always fail with ENOSYS. Some functions are actually named | |
26165 | something starting with __ and the normal name is an alias. */ | |
26166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26167 | choke me | |
26168 | #else | |
e6cc62c6 VS |
26169 | char (*f) () = $ac_func; |
26170 | #endif | |
26171 | #ifdef __cplusplus | |
26172 | } | |
247f5006 | 26173 | #endif |
af15babd | 26174 | |
e6cc62c6 VS |
26175 | int |
26176 | main () | |
26177 | { | |
26178 | return f != $ac_func; | |
26179 | ; | |
26180 | return 0; | |
26181 | } | |
26182 | _ACEOF | |
26183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26185 | (eval $ac_link) 2>&5 | |
26186 | ac_status=$? | |
26187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26188 | (exit $ac_status); } && | |
26189 | { ac_try='test -s conftest$ac_exeext' | |
26190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26191 | (eval $ac_try) 2>&5 | |
26192 | ac_status=$? | |
26193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26194 | (exit $ac_status); }; }; then | |
26195 | eval "$as_ac_var=yes" | |
26196 | else | |
26197 | echo "$as_me: failed program was:" >&5 | |
26198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26199 | ||
26200 | eval "$as_ac_var=no" | |
26201 | fi | |
26202 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26203 | fi | |
26204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26206 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26207 | cat >>confdefs.h <<_ACEOF | |
26208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26209 | _ACEOF | |
52127426 | 26210 | |
5c6fa7d2 | 26211 | fi |
247f5006 | 26212 | done |
8284b0c5 | 26213 | |
4f14bcd8 | 26214 | |
8d90d2f2 | 26215 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26216 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26217 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26218 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26220 | else |
e6cc62c6 VS |
26221 | |
26222 | cat >conftest.$ac_ext <<_ACEOF | |
26223 | #line $LINENO "configure" | |
26224 | /* confdefs.h. */ | |
26225 | _ACEOF | |
26226 | cat confdefs.h >>conftest.$ac_ext | |
26227 | cat >>conftest.$ac_ext <<_ACEOF | |
26228 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26229 | |
26230 | #include <stdio.h> | |
26231 | #include <stdarg.h> | |
e6cc62c6 VS |
26232 | |
26233 | int | |
26234 | main () | |
26235 | { | |
8d90d2f2 VZ |
26236 | |
26237 | char *buf; | |
26238 | va_list ap; | |
26239 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26240 | |
26241 | ; | |
26242 | return 0; | |
26243 | } | |
26244 | _ACEOF | |
26245 | rm -f conftest.$ac_objext | |
26246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26247 | (eval $ac_compile) 2>&5 | |
26248 | ac_status=$? | |
26249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26250 | (exit $ac_status); } && | |
26251 | { ac_try='test -s conftest.$ac_objext' | |
26252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26253 | (eval $ac_try) 2>&5 | |
26254 | ac_status=$? | |
26255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26256 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26257 | wx_cv_func_vsnprintf_decl=yes |
26258 | else | |
e6cc62c6 VS |
26259 | echo "$as_me: failed program was:" >&5 |
26260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26261 | ||
26262 | wx_cv_func_vsnprintf_decl=no | |
26263 | ||
8d90d2f2 | 26264 | fi |
e6cc62c6 VS |
26265 | rm -f conftest.$ac_objext conftest.$ac_ext |
26266 | ||
8d90d2f2 | 26267 | |
e6cc62c6 VS |
26268 | fi |
26269 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26270 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26271 | |
26272 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26273 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26274 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26275 | _ACEOF |
8d90d2f2 VZ |
26276 | |
26277 | fi | |
26278 | fi | |
26279 | ||
247f5006 | 26280 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26281 | |
26282 | ||
26283 | ||
26284 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26285 | do |
e6cc62c6 VS |
26286 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26287 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26288 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26289 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26291 | else | |
26292 | cat >conftest.$ac_ext <<_ACEOF | |
26293 | #line $LINENO "configure" | |
26294 | /* confdefs.h. */ | |
26295 | _ACEOF | |
26296 | cat confdefs.h >>conftest.$ac_ext | |
26297 | cat >>conftest.$ac_ext <<_ACEOF | |
26298 | /* end confdefs.h. */ | |
d74f4b5a | 26299 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26300 | which can conflict with char $ac_func (); below. |
26301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26302 | <limits.h> exists even on freestanding compilers. */ | |
26303 | #ifdef __STDC__ | |
26304 | # include <limits.h> | |
26305 | #else | |
26306 | # include <assert.h> | |
26307 | #endif | |
d74f4b5a | 26308 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26309 | #ifdef __cplusplus |
26310 | extern "C" | |
e6cc62c6 | 26311 | { |
247f5006 | 26312 | #endif |
d74f4b5a | 26313 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26314 | builtin and then its argument prototype would still apply. */ |
26315 | char $ac_func (); | |
d74f4b5a VZ |
26316 | /* The GNU C library defines this for functions which it implements |
26317 | to always fail with ENOSYS. Some functions are actually named | |
26318 | something starting with __ and the normal name is an alias. */ | |
26319 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26320 | choke me | |
26321 | #else | |
e6cc62c6 VS |
26322 | char (*f) () = $ac_func; |
26323 | #endif | |
26324 | #ifdef __cplusplus | |
26325 | } | |
d74f4b5a VZ |
26326 | #endif |
26327 | ||
e6cc62c6 VS |
26328 | int |
26329 | main () | |
26330 | { | |
26331 | return f != $ac_func; | |
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>&5 | |
26339 | ac_status=$? | |
26340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26341 | (exit $ac_status); } && | |
26342 | { ac_try='test -s conftest$ac_exeext' | |
26343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26344 | (eval $ac_try) 2>&5 | |
26345 | ac_status=$? | |
26346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26347 | (exit $ac_status); }; }; then | |
26348 | eval "$as_ac_var=yes" | |
26349 | else | |
26350 | echo "$as_me: failed program was:" >&5 | |
26351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26352 | ||
26353 | eval "$as_ac_var=no" | |
26354 | fi | |
26355 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26356 | fi | |
26357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26358 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26359 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26360 | cat >>confdefs.h <<_ACEOF | |
26361 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26362 | _ACEOF | |
d74f4b5a | 26363 | |
d74f4b5a VZ |
26364 | fi |
26365 | done | |
26366 | ||
8d90d2f2 | 26367 | |
e6cc62c6 VS |
26368 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26369 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26370 | cat >conftest.$ac_ext <<_ACEOF | |
26371 | #line $LINENO "configure" | |
26372 | /* confdefs.h. */ | |
26373 | _ACEOF | |
26374 | cat confdefs.h >>conftest.$ac_ext | |
26375 | cat >>conftest.$ac_ext <<_ACEOF | |
26376 | /* end confdefs.h. */ | |
79668cae | 26377 | #include <wchar.h> |
e6cc62c6 VS |
26378 | int |
26379 | main () | |
26380 | { | |
79668cae | 26381 | &_vsnwprintf; |
e6cc62c6 VS |
26382 | ; |
26383 | return 0; | |
26384 | } | |
26385 | _ACEOF | |
26386 | rm -f conftest.$ac_objext | |
26387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26388 | (eval $ac_compile) 2>&5 | |
26389 | ac_status=$? | |
26390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26391 | (exit $ac_status); } && | |
26392 | { ac_try='test -s conftest.$ac_objext' | |
26393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26394 | (eval $ac_try) 2>&5 | |
26395 | ac_status=$? | |
26396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26397 | (exit $ac_status); }; }; then | |
26398 | echo "$as_me:$LINENO: result: yes" >&5 | |
26399 | echo "${ECHO_T}yes" >&6 | |
26400 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26401 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26402 | _ACEOF |
79668cae MB |
26403 | |
26404 | else | |
e6cc62c6 VS |
26405 | echo "$as_me: failed program was:" >&5 |
26406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26407 | ||
26408 | echo "$as_me:$LINENO: result: no" >&5 | |
26409 | echo "${ECHO_T}no" >&6 | |
79668cae | 26410 | fi |
e6cc62c6 | 26411 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26412 | fi |
26413 | ||
247f5006 VZ |
26414 | ac_ext=c |
26415 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26416 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26417 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26418 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26419 | |
26420 | ||
26421 | ||
26422 | ||
4f14bcd8 | 26423 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26424 | |
8284b0c5 MB |
26425 | |
26426 | ||
e6cc62c6 VS |
26427 | |
26428 | ac_ext=cc | |
4f14bcd8 | 26429 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26430 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26431 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26432 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26433 | |
52127426 | 26434 | |
e6cc62c6 VS |
26435 | |
26436 | ||
26437 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
26438 | if test "${with_libiconv_prefix+set}" = set; then |
26439 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 26440 | |
b040e242 VS |
26441 | for dir in `echo "$withval" | tr : ' '`; do |
26442 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26443 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26444 | done | |
b040e242 | 26445 | |
e6cc62c6 | 26446 | fi; |
b040e242 | 26447 | |
e6cc62c6 VS |
26448 | echo "$as_me:$LINENO: checking for iconv" >&5 |
26449 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26450 | if test "${am_cv_func_iconv+set}" = set; then | |
26451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26452 | else |
e6cc62c6 | 26453 | |
b040e242 VS |
26454 | am_cv_func_iconv="no, consider installing GNU libiconv" |
26455 | am_cv_lib_iconv=no | |
e6cc62c6 VS |
26456 | cat >conftest.$ac_ext <<_ACEOF |
26457 | #line $LINENO "configure" | |
26458 | /* confdefs.h. */ | |
26459 | _ACEOF | |
26460 | cat confdefs.h >>conftest.$ac_ext | |
26461 | cat >>conftest.$ac_ext <<_ACEOF | |
26462 | /* end confdefs.h. */ | |
b040e242 | 26463 | #include <stdlib.h> |
4f14bcd8 | 26464 | #include <iconv.h> |
e6cc62c6 VS |
26465 | int |
26466 | main () | |
26467 | { | |
b040e242 VS |
26468 | iconv_t cd = iconv_open("",""); |
26469 | iconv(cd,NULL,NULL,NULL,NULL); | |
26470 | iconv_close(cd); | |
e6cc62c6 VS |
26471 | ; |
26472 | return 0; | |
26473 | } | |
26474 | _ACEOF | |
26475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26477 | (eval $ac_link) 2>&5 | |
26478 | ac_status=$? | |
26479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26480 | (exit $ac_status); } && | |
26481 | { ac_try='test -s conftest$ac_exeext' | |
26482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26483 | (eval $ac_try) 2>&5 | |
26484 | ac_status=$? | |
26485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26486 | (exit $ac_status); }; }; then | |
b040e242 | 26487 | am_cv_func_iconv=yes |
af15babd | 26488 | else |
e6cc62c6 VS |
26489 | echo "$as_me: failed program was:" >&5 |
26490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26491 | ||
b040e242 | 26492 | fi |
e6cc62c6 | 26493 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26494 | if test "$am_cv_func_iconv" != yes; then |
26495 | am_save_LIBS="$LIBS" | |
26496 | LIBS="$LIBS -liconv" | |
e6cc62c6 VS |
26497 | cat >conftest.$ac_ext <<_ACEOF |
26498 | #line $LINENO "configure" | |
26499 | /* confdefs.h. */ | |
26500 | _ACEOF | |
26501 | cat confdefs.h >>conftest.$ac_ext | |
26502 | cat >>conftest.$ac_ext <<_ACEOF | |
26503 | /* end confdefs.h. */ | |
b040e242 VS |
26504 | #include <stdlib.h> |
26505 | #include <iconv.h> | |
e6cc62c6 VS |
26506 | int |
26507 | main () | |
26508 | { | |
b040e242 VS |
26509 | iconv_t cd = iconv_open("",""); |
26510 | iconv(cd,NULL,NULL,NULL,NULL); | |
26511 | iconv_close(cd); | |
e6cc62c6 VS |
26512 | ; |
26513 | return 0; | |
26514 | } | |
26515 | _ACEOF | |
26516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26518 | (eval $ac_link) 2>&5 | |
26519 | ac_status=$? | |
26520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26521 | (exit $ac_status); } && | |
26522 | { ac_try='test -s conftest$ac_exeext' | |
26523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26524 | (eval $ac_try) 2>&5 | |
26525 | ac_status=$? | |
26526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26527 | (exit $ac_status); }; }; then | |
b040e242 VS |
26528 | am_cv_lib_iconv=yes |
26529 | am_cv_func_iconv=yes | |
26530 | else | |
e6cc62c6 VS |
26531 | echo "$as_me: failed program was:" >&5 |
26532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26533 | ||
af15babd | 26534 | fi |
e6cc62c6 | 26535 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26536 | LIBS="$am_save_LIBS" |
26537 | fi | |
247f5006 | 26538 | |
e6cc62c6 VS |
26539 | fi |
26540 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26541 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 26542 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
26543 | |
26544 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 26545 | #define HAVE_ICONV 1 |
e6cc62c6 | 26546 | _ACEOF |
b040e242 | 26547 | |
e6cc62c6 VS |
26548 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
26549 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26550 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 26552 | else |
e6cc62c6 VS |
26553 | cat >conftest.$ac_ext <<_ACEOF |
26554 | #line $LINENO "configure" | |
26555 | /* confdefs.h. */ | |
26556 | _ACEOF | |
26557 | cat confdefs.h >>conftest.$ac_ext | |
26558 | cat >>conftest.$ac_ext <<_ACEOF | |
26559 | /* end confdefs.h. */ | |
b040e242 VS |
26560 | |
26561 | #include <stdlib.h> | |
26562 | #include <iconv.h> | |
26563 | extern | |
26564 | #ifdef __cplusplus | |
26565 | "C" | |
26566 | #endif | |
26567 | #if defined(__STDC__) || defined(__cplusplus) | |
26568 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26569 | #else | |
26570 | size_t iconv(); | |
26571 | #endif | |
af15babd | 26572 | |
e6cc62c6 VS |
26573 | int |
26574 | main () | |
26575 | { | |
26576 | ||
26577 | ; | |
26578 | return 0; | |
26579 | } | |
26580 | _ACEOF | |
26581 | rm -f conftest.$ac_objext | |
26582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26583 | (eval $ac_compile) 2>&5 | |
26584 | ac_status=$? | |
26585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26586 | (exit $ac_status); } && | |
26587 | { ac_try='test -s conftest.$ac_objext' | |
26588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26589 | (eval $ac_try) 2>&5 | |
26590 | ac_status=$? | |
26591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26592 | (exit $ac_status); }; }; then | |
b7043674 | 26593 | wx_cv_func_iconv_const="no" |
b040e242 | 26594 | else |
e6cc62c6 VS |
26595 | echo "$as_me: failed program was:" >&5 |
26596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26597 | ||
26598 | wx_cv_func_iconv_const="yes" | |
26599 | ||
247f5006 | 26600 | fi |
e6cc62c6 | 26601 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26602 | |
e6cc62c6 VS |
26603 | fi |
26604 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26605 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
26606 | |
26607 | iconv_const= | |
1c405bb5 | 26608 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
26609 | iconv_const="const" |
26610 | fi | |
26611 | ||
e6cc62c6 VS |
26612 | |
26613 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 26614 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 26615 | _ACEOF |
b040e242 VS |
26616 | |
26617 | fi | |
26618 | LIBICONV= | |
26619 | if test "$am_cv_lib_iconv" = yes; then | |
26620 | LIBICONV="-liconv" | |
26621 | fi | |
e6cc62c6 | 26622 | |
b040e242 VS |
26623 | |
26624 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 26625 | ac_ext=c |
4f14bcd8 | 26626 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 26630 | |
5c6fa7d2 | 26631 | |
8284b0c5 | 26632 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
26633 | |
26634 | for ac_func in sigaction | |
af15babd | 26635 | do |
e6cc62c6 VS |
26636 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26637 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26638 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26639 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26641 | else | |
26642 | cat >conftest.$ac_ext <<_ACEOF | |
26643 | #line $LINENO "configure" | |
26644 | /* confdefs.h. */ | |
26645 | _ACEOF | |
26646 | cat confdefs.h >>conftest.$ac_ext | |
26647 | cat >>conftest.$ac_ext <<_ACEOF | |
26648 | /* end confdefs.h. */ | |
af15babd | 26649 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26650 | which can conflict with char $ac_func (); below. |
26651 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26652 | <limits.h> exists even on freestanding compilers. */ | |
26653 | #ifdef __STDC__ | |
26654 | # include <limits.h> | |
26655 | #else | |
26656 | # include <assert.h> | |
26657 | #endif | |
af15babd | 26658 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26659 | #ifdef __cplusplus |
26660 | extern "C" | |
26661 | { | |
26662 | #endif | |
af15babd | 26663 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26664 | builtin and then its argument prototype would still apply. */ |
26665 | char $ac_func (); | |
af15babd VZ |
26666 | /* The GNU C library defines this for functions which it implements |
26667 | to always fail with ENOSYS. Some functions are actually named | |
26668 | something starting with __ and the normal name is an alias. */ | |
26669 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26670 | choke me | |
26671 | #else | |
e6cc62c6 VS |
26672 | char (*f) () = $ac_func; |
26673 | #endif | |
26674 | #ifdef __cplusplus | |
26675 | } | |
af15babd VZ |
26676 | #endif |
26677 | ||
e6cc62c6 VS |
26678 | int |
26679 | main () | |
26680 | { | |
26681 | return f != $ac_func; | |
26682 | ; | |
26683 | return 0; | |
26684 | } | |
26685 | _ACEOF | |
26686 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26688 | (eval $ac_link) 2>&5 | |
26689 | ac_status=$? | |
26690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26691 | (exit $ac_status); } && | |
26692 | { ac_try='test -s conftest$ac_exeext' | |
26693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26694 | (eval $ac_try) 2>&5 | |
26695 | ac_status=$? | |
26696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26697 | (exit $ac_status); }; }; then | |
26698 | eval "$as_ac_var=yes" | |
26699 | else | |
26700 | echo "$as_me: failed program was:" >&5 | |
26701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26702 | ||
26703 | eval "$as_ac_var=no" | |
26704 | fi | |
26705 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26706 | fi | |
26707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26708 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26709 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26710 | cat >>confdefs.h <<_ACEOF | |
26711 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26712 | _ACEOF | |
7b4a847f | 26713 | |
4f14bcd8 GD |
26714 | fi |
26715 | done | |
26716 | ||
8284b0c5 | 26717 | |
4f14bcd8 | 26718 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
26719 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
26720 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
26721 | wxUSE_ON_FATAL_EXCEPTION=no |
26722 | fi | |
26723 | ||
26724 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
26725 | |
26726 | ||
26727 | ac_ext=cc | |
5c6fa7d2 | 26728 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26729 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26730 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26731 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 26732 | |
5c6fa7d2 | 26733 | |
e6cc62c6 VS |
26734 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
26735 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
26736 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
26737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26738 | else |
e6cc62c6 VS |
26739 | |
26740 | cat >conftest.$ac_ext <<_ACEOF | |
26741 | #line $LINENO "configure" | |
26742 | /* confdefs.h. */ | |
26743 | _ACEOF | |
26744 | cat confdefs.h >>conftest.$ac_ext | |
26745 | cat >>conftest.$ac_ext <<_ACEOF | |
26746 | /* end confdefs.h. */ | |
4f14bcd8 | 26747 | #include <signal.h> |
e6cc62c6 VS |
26748 | int |
26749 | main () | |
26750 | { | |
4f14bcd8 GD |
26751 | |
26752 | extern void testSigHandler(int); | |
26753 | ||
26754 | struct sigaction sa; | |
26755 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
26756 | |
26757 | ; | |
26758 | return 0; | |
26759 | } | |
26760 | _ACEOF | |
26761 | rm -f conftest.$ac_objext | |
26762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26763 | (eval $ac_compile) 2>&5 | |
26764 | ac_status=$? | |
26765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26766 | (exit $ac_status); } && | |
26767 | { ac_try='test -s conftest.$ac_objext' | |
26768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26769 | (eval $ac_try) 2>&5 | |
26770 | ac_status=$? | |
26771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26772 | (exit $ac_status); }; }; then | |
26773 | ||
4f14bcd8 | 26774 | wx_cv_type_sa_handler=int |
e6cc62c6 | 26775 | |
af15babd | 26776 | else |
e6cc62c6 VS |
26777 | echo "$as_me: failed program was:" >&5 |
26778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26779 | ||
26780 | ||
4f14bcd8 | 26781 | wx_cv_type_sa_handler=void |
e6cc62c6 | 26782 | |
247f5006 | 26783 | fi |
e6cc62c6 | 26784 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26785 | |
e6cc62c6 VS |
26786 | fi |
26787 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
26788 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
26789 | |
26790 | ac_ext=c | |
4f14bcd8 | 26791 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26792 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26793 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26794 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 26795 | |
8284b0c5 | 26796 | |
e6cc62c6 | 26797 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 26798 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 26799 | _ACEOF |
af15babd | 26800 | |
4f14bcd8 GD |
26801 | fi |
26802 | fi | |
af15babd | 26803 | |
e6cc62c6 VS |
26804 | |
26805 | ||
a1d22ad7 | 26806 | for ac_func in mkstemp mktemp |
af15babd | 26807 | do |
e6cc62c6 VS |
26808 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26809 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26810 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26811 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26813 | else | |
26814 | cat >conftest.$ac_ext <<_ACEOF | |
26815 | #line $LINENO "configure" | |
26816 | /* confdefs.h. */ | |
26817 | _ACEOF | |
26818 | cat confdefs.h >>conftest.$ac_ext | |
26819 | cat >>conftest.$ac_ext <<_ACEOF | |
26820 | /* end confdefs.h. */ | |
af15babd | 26821 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26822 | which can conflict with char $ac_func (); below. |
26823 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26824 | <limits.h> exists even on freestanding compilers. */ | |
26825 | #ifdef __STDC__ | |
26826 | # include <limits.h> | |
26827 | #else | |
26828 | # include <assert.h> | |
26829 | #endif | |
af15babd | 26830 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26831 | #ifdef __cplusplus |
26832 | extern "C" | |
26833 | { | |
26834 | #endif | |
af15babd | 26835 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26836 | builtin and then its argument prototype would still apply. */ |
26837 | char $ac_func (); | |
af15babd VZ |
26838 | /* The GNU C library defines this for functions which it implements |
26839 | to always fail with ENOSYS. Some functions are actually named | |
26840 | something starting with __ and the normal name is an alias. */ | |
26841 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26842 | choke me | |
26843 | #else | |
e6cc62c6 VS |
26844 | char (*f) () = $ac_func; |
26845 | #endif | |
26846 | #ifdef __cplusplus | |
26847 | } | |
af15babd VZ |
26848 | #endif |
26849 | ||
e6cc62c6 VS |
26850 | int |
26851 | main () | |
26852 | { | |
26853 | return f != $ac_func; | |
26854 | ; | |
26855 | return 0; | |
26856 | } | |
26857 | _ACEOF | |
26858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26860 | (eval $ac_link) 2>&5 | |
26861 | ac_status=$? | |
26862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26863 | (exit $ac_status); } && | |
26864 | { ac_try='test -s conftest$ac_exeext' | |
26865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26866 | (eval $ac_try) 2>&5 | |
26867 | ac_status=$? | |
26868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26869 | (exit $ac_status); }; }; then | |
26870 | eval "$as_ac_var=yes" | |
26871 | else | |
26872 | echo "$as_me: failed program was:" >&5 | |
26873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26874 | ||
26875 | eval "$as_ac_var=no" | |
26876 | fi | |
26877 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26878 | fi | |
26879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26880 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26881 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26882 | cat >>confdefs.h <<_ACEOF | |
26883 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26884 | _ACEOF | |
ade35f11 | 26885 | break |
ade35f11 VZ |
26886 | fi |
26887 | done | |
26888 | ||
8284b0c5 | 26889 | |
e6cc62c6 VS |
26890 | echo "$as_me:$LINENO: checking for statfs" >&5 |
26891 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
26892 | if test "${wx_cv_func_statfs+set}" = set; then | |
26893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 26894 | else |
e6cc62c6 VS |
26895 | cat >conftest.$ac_ext <<_ACEOF |
26896 | #line $LINENO "configure" | |
26897 | /* confdefs.h. */ | |
26898 | _ACEOF | |
26899 | cat confdefs.h >>conftest.$ac_ext | |
26900 | cat >>conftest.$ac_ext <<_ACEOF | |
26901 | /* end confdefs.h. */ | |
4f14bcd8 GD |
26902 | |
26903 | #if defined(__BSD__) | |
26904 | #include <sys/param.h> | |
26905 | #include <sys/mount.h> | |
26906 | #else | |
26907 | #include <sys/vfs.h> | |
26908 | #endif | |
e6cc62c6 VS |
26909 | |
26910 | int | |
26911 | main () | |
26912 | { | |
4f14bcd8 GD |
26913 | |
26914 | long l; | |
26915 | struct statfs fs; | |
26916 | statfs("/", &fs); | |
26917 | l = fs.f_bsize; | |
26918 | l += fs.f_blocks; | |
26919 | l += fs.f_bavail; | |
e6cc62c6 VS |
26920 | |
26921 | ; | |
26922 | return 0; | |
26923 | } | |
26924 | _ACEOF | |
26925 | rm -f conftest.$ac_objext | |
26926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26927 | (eval $ac_compile) 2>&5 | |
26928 | ac_status=$? | |
26929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26930 | (exit $ac_status); } && | |
26931 | { ac_try='test -s conftest.$ac_objext' | |
26932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26933 | (eval $ac_try) 2>&5 | |
26934 | ac_status=$? | |
26935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26936 | (exit $ac_status); }; }; then | |
26937 | ||
4f14bcd8 | 26938 | wx_cv_func_statfs=yes |
e6cc62c6 | 26939 | |
4f14bcd8 | 26940 | else |
e6cc62c6 VS |
26941 | echo "$as_me: failed program was:" >&5 |
26942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26943 | ||
26944 | ||
4f14bcd8 | 26945 | wx_cv_func_statfs=no |
e6cc62c6 | 26946 | |
8284b0c5 | 26947 | |
247f5006 | 26948 | fi |
e6cc62c6 | 26949 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26950 | |
e6cc62c6 VS |
26951 | fi |
26952 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
26953 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
26954 | |
26955 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 26956 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 26957 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26958 | #define HAVE_STATFS 1 |
e6cc62c6 | 26959 | _ACEOF |
4f14bcd8 GD |
26960 | |
26961 | else | |
e6cc62c6 VS |
26962 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
26963 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
26964 | if test "${wx_cv_func_statvfs+set}" = set; then | |
26965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26966 | else |
e6cc62c6 VS |
26967 | cat >conftest.$ac_ext <<_ACEOF |
26968 | #line $LINENO "configure" | |
26969 | /* confdefs.h. */ | |
26970 | _ACEOF | |
26971 | cat confdefs.h >>conftest.$ac_ext | |
26972 | cat >>conftest.$ac_ext <<_ACEOF | |
26973 | /* end confdefs.h. */ | |
af15babd | 26974 | |
54ab82b3 VZ |
26975 | #include <stddef.h> |
26976 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
26977 | |
26978 | int | |
26979 | main () | |
26980 | { | |
af15babd | 26981 | |
54ab82b3 | 26982 | statvfs("/", NULL); |
e6cc62c6 VS |
26983 | |
26984 | ; | |
26985 | return 0; | |
26986 | } | |
26987 | _ACEOF | |
26988 | rm -f conftest.$ac_objext | |
26989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26990 | (eval $ac_compile) 2>&5 | |
26991 | ac_status=$? | |
26992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26993 | (exit $ac_status); } && | |
26994 | { ac_try='test -s conftest.$ac_objext' | |
26995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26996 | (eval $ac_try) 2>&5 | |
26997 | ac_status=$? | |
26998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26999 | (exit $ac_status); }; }; then | |
54ab82b3 | 27000 | wx_cv_func_statvfs=yes |
af15babd | 27001 | else |
e6cc62c6 VS |
27002 | echo "$as_me: failed program was:" >&5 |
27003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27004 | ||
27005 | wx_cv_func_statvfs=no | |
27006 | ||
247f5006 | 27007 | fi |
e6cc62c6 | 27008 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27009 | |
e6cc62c6 VS |
27010 | fi |
27011 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
27012 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 27013 | |
4f14bcd8 | 27014 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
27015 | |
27016 | ||
27017 | ac_ext=cc | |
54ab82b3 | 27018 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27019 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27020 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27021 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
27022 | |
27023 | ||
e6cc62c6 VS |
27024 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
27025 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
27026 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
27027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 27028 | else |
e6cc62c6 VS |
27029 | cat >conftest.$ac_ext <<_ACEOF |
27030 | #line $LINENO "configure" | |
27031 | /* confdefs.h. */ | |
27032 | _ACEOF | |
27033 | cat confdefs.h >>conftest.$ac_ext | |
27034 | cat >>conftest.$ac_ext <<_ACEOF | |
27035 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27036 | |
27037 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27038 | |
27039 | int | |
27040 | main () | |
27041 | { | |
54ab82b3 VZ |
27042 | |
27043 | long l; | |
27044 | statvfs_t fs; | |
27045 | statvfs("/", &fs); | |
27046 | l = fs.f_bsize; | |
27047 | l += fs.f_blocks; | |
27048 | l += fs.f_bavail; | |
e6cc62c6 VS |
27049 | |
27050 | ; | |
27051 | return 0; | |
27052 | } | |
27053 | _ACEOF | |
27054 | rm -f conftest.$ac_objext | |
27055 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27056 | (eval $ac_compile) 2>&5 | |
27057 | ac_status=$? | |
27058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27059 | (exit $ac_status); } && | |
27060 | { ac_try='test -s conftest.$ac_objext' | |
27061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27062 | (eval $ac_try) 2>&5 | |
27063 | ac_status=$? | |
27064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27065 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27066 | wx_cv_type_statvfs_t=statvfs_t |
27067 | else | |
e6cc62c6 VS |
27068 | echo "$as_me: failed program was:" >&5 |
27069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27070 | ||
27071 | ||
27072 | cat >conftest.$ac_ext <<_ACEOF | |
27073 | #line $LINENO "configure" | |
27074 | /* confdefs.h. */ | |
27075 | _ACEOF | |
27076 | cat confdefs.h >>conftest.$ac_ext | |
27077 | cat >>conftest.$ac_ext <<_ACEOF | |
27078 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27079 | |
27080 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27081 | |
27082 | int | |
27083 | main () | |
27084 | { | |
54ab82b3 VZ |
27085 | |
27086 | long l; | |
65d8ef1e | 27087 | struct statvfs fs; |
54ab82b3 VZ |
27088 | statvfs("/", &fs); |
27089 | l = fs.f_bsize; | |
27090 | l += fs.f_blocks; | |
27091 | l += fs.f_bavail; | |
e6cc62c6 VS |
27092 | |
27093 | ; | |
27094 | return 0; | |
27095 | } | |
27096 | _ACEOF | |
27097 | rm -f conftest.$ac_objext | |
27098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27099 | (eval $ac_compile) 2>&5 | |
27100 | ac_status=$? | |
27101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27102 | (exit $ac_status); } && | |
27103 | { ac_try='test -s conftest.$ac_objext' | |
27104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27105 | (eval $ac_try) 2>&5 | |
27106 | ac_status=$? | |
27107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27108 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27109 | wx_cv_type_statvfs_t="struct statvfs" |
27110 | else | |
e6cc62c6 VS |
27111 | echo "$as_me: failed program was:" >&5 |
27112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27113 | ||
27114 | wx_cv_type_statvfs_t="unknown" | |
27115 | ||
54ab82b3 | 27116 | fi |
e6cc62c6 VS |
27117 | rm -f conftest.$ac_objext conftest.$ac_ext |
27118 | ||
27119 | ||
54ab82b3 | 27120 | fi |
e6cc62c6 | 27121 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 27122 | |
e6cc62c6 VS |
27123 | fi |
27124 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
27125 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
27126 | |
27127 | ac_ext=c | |
54ab82b3 | 27128 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27129 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27130 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27131 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
27132 | |
27133 | ||
27134 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 27135 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27136 | #define HAVE_STATVFS 1 |
e6cc62c6 | 27137 | _ACEOF |
af15babd | 27138 | |
54ab82b3 | 27139 | fi |
4f14bcd8 | 27140 | else |
54ab82b3 | 27141 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
27142 | fi |
27143 | fi | |
af15babd | 27144 | |
54ab82b3 | 27145 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 27146 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 27147 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 27148 | _ACEOF |
54ab82b3 VZ |
27149 | |
27150 | else | |
e6cc62c6 VS |
27151 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
27152 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
27153 | fi |
27154 | ||
4f14bcd8 | 27155 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
27156 | |
27157 | ||
27158 | for ac_func in fcntl flock | |
af15babd | 27159 | do |
e6cc62c6 VS |
27160 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27161 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27162 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27163 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27165 | else | |
27166 | cat >conftest.$ac_ext <<_ACEOF | |
27167 | #line $LINENO "configure" | |
27168 | /* confdefs.h. */ | |
27169 | _ACEOF | |
27170 | cat confdefs.h >>conftest.$ac_ext | |
27171 | cat >>conftest.$ac_ext <<_ACEOF | |
27172 | /* end confdefs.h. */ | |
af15babd | 27173 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27174 | which can conflict with char $ac_func (); below. |
27175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27176 | <limits.h> exists even on freestanding compilers. */ | |
27177 | #ifdef __STDC__ | |
27178 | # include <limits.h> | |
27179 | #else | |
27180 | # include <assert.h> | |
27181 | #endif | |
af15babd | 27182 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27183 | #ifdef __cplusplus |
27184 | extern "C" | |
27185 | { | |
27186 | #endif | |
af15babd | 27187 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27188 | builtin and then its argument prototype would still apply. */ |
27189 | char $ac_func (); | |
af15babd VZ |
27190 | /* The GNU C library defines this for functions which it implements |
27191 | to always fail with ENOSYS. Some functions are actually named | |
27192 | something starting with __ and the normal name is an alias. */ | |
27193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27194 | choke me | |
27195 | #else | |
e6cc62c6 VS |
27196 | char (*f) () = $ac_func; |
27197 | #endif | |
27198 | #ifdef __cplusplus | |
27199 | } | |
af15babd VZ |
27200 | #endif |
27201 | ||
e6cc62c6 VS |
27202 | int |
27203 | main () | |
27204 | { | |
27205 | return f != $ac_func; | |
27206 | ; | |
27207 | return 0; | |
27208 | } | |
27209 | _ACEOF | |
27210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27212 | (eval $ac_link) 2>&5 | |
27213 | ac_status=$? | |
27214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27215 | (exit $ac_status); } && | |
27216 | { ac_try='test -s conftest$ac_exeext' | |
27217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27218 | (eval $ac_try) 2>&5 | |
27219 | ac_status=$? | |
27220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27221 | (exit $ac_status); }; }; then | |
27222 | eval "$as_ac_var=yes" | |
27223 | else | |
27224 | echo "$as_me: failed program was:" >&5 | |
27225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27226 | ||
27227 | eval "$as_ac_var=no" | |
27228 | fi | |
27229 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27230 | fi | |
27231 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27232 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27233 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27234 | cat >>confdefs.h <<_ACEOF | |
27235 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27236 | _ACEOF | |
4f14bcd8 | 27237 | break |
af15babd VZ |
27238 | fi |
27239 | done | |
27240 | ||
8284b0c5 | 27241 | |
4f14bcd8 | 27242 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27243 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27244 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27245 | wxUSE_SNGLINST_CHECKER=no |
27246 | fi | |
27247 | fi | |
af15babd | 27248 | |
e6cc62c6 | 27249 | |
4f14bcd8 | 27250 | for ac_func in timegm |
af15babd | 27251 | do |
e6cc62c6 VS |
27252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27253 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27255 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27257 | else | |
27258 | cat >conftest.$ac_ext <<_ACEOF | |
27259 | #line $LINENO "configure" | |
27260 | /* confdefs.h. */ | |
27261 | _ACEOF | |
27262 | cat confdefs.h >>conftest.$ac_ext | |
27263 | cat >>conftest.$ac_ext <<_ACEOF | |
27264 | /* end confdefs.h. */ | |
af15babd | 27265 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27266 | which can conflict with char $ac_func (); below. |
27267 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27268 | <limits.h> exists even on freestanding compilers. */ | |
27269 | #ifdef __STDC__ | |
27270 | # include <limits.h> | |
27271 | #else | |
27272 | # include <assert.h> | |
27273 | #endif | |
af15babd | 27274 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27275 | #ifdef __cplusplus |
27276 | extern "C" | |
27277 | { | |
27278 | #endif | |
af15babd | 27279 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27280 | builtin and then its argument prototype would still apply. */ |
27281 | char $ac_func (); | |
af15babd VZ |
27282 | /* The GNU C library defines this for functions which it implements |
27283 | to always fail with ENOSYS. Some functions are actually named | |
27284 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27285 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27286 | choke me | |
27287 | #else | |
e6cc62c6 VS |
27288 | char (*f) () = $ac_func; |
27289 | #endif | |
27290 | #ifdef __cplusplus | |
27291 | } | |
247f5006 VZ |
27292 | #endif |
27293 | ||
e6cc62c6 VS |
27294 | int |
27295 | main () | |
27296 | { | |
27297 | return f != $ac_func; | |
27298 | ; | |
27299 | return 0; | |
27300 | } | |
27301 | _ACEOF | |
27302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27304 | (eval $ac_link) 2>&5 | |
27305 | ac_status=$? | |
27306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27307 | (exit $ac_status); } && | |
27308 | { ac_try='test -s conftest$ac_exeext' | |
27309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27310 | (eval $ac_try) 2>&5 | |
27311 | ac_status=$? | |
27312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27313 | (exit $ac_status); }; }; then | |
27314 | eval "$as_ac_var=yes" | |
27315 | else | |
27316 | echo "$as_me: failed program was:" >&5 | |
27317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27318 | ||
27319 | eval "$as_ac_var=no" | |
27320 | fi | |
27321 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27322 | fi | |
27323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27325 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27326 | cat >>confdefs.h <<_ACEOF | |
27327 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27328 | _ACEOF | |
703e0a69 | 27329 | |
af15babd VZ |
27330 | fi |
27331 | done | |
27332 | ||
8284b0c5 | 27333 | |
e6cc62c6 VS |
27334 | |
27335 | ||
4f14bcd8 | 27336 | for ac_func in putenv setenv |
10f2d63a | 27337 | do |
e6cc62c6 VS |
27338 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27339 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27340 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27341 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27343 | else | |
27344 | cat >conftest.$ac_ext <<_ACEOF | |
27345 | #line $LINENO "configure" | |
27346 | /* confdefs.h. */ | |
27347 | _ACEOF | |
27348 | cat confdefs.h >>conftest.$ac_ext | |
27349 | cat >>conftest.$ac_ext <<_ACEOF | |
27350 | /* end confdefs.h. */ | |
af15babd | 27351 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27352 | which can conflict with char $ac_func (); below. |
27353 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27354 | <limits.h> exists even on freestanding compilers. */ | |
27355 | #ifdef __STDC__ | |
27356 | # include <limits.h> | |
27357 | #else | |
27358 | # include <assert.h> | |
27359 | #endif | |
af15babd | 27360 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27361 | #ifdef __cplusplus |
27362 | extern "C" | |
27363 | { | |
27364 | #endif | |
af15babd | 27365 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27366 | builtin and then its argument prototype would still apply. */ |
27367 | char $ac_func (); | |
af15babd VZ |
27368 | /* The GNU C library defines this for functions which it implements |
27369 | to always fail with ENOSYS. Some functions are actually named | |
27370 | something starting with __ and the normal name is an alias. */ | |
27371 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27372 | choke me | |
27373 | #else | |
e6cc62c6 VS |
27374 | char (*f) () = $ac_func; |
27375 | #endif | |
27376 | #ifdef __cplusplus | |
27377 | } | |
af15babd VZ |
27378 | #endif |
27379 | ||
e6cc62c6 VS |
27380 | int |
27381 | main () | |
27382 | { | |
27383 | return f != $ac_func; | |
27384 | ; | |
27385 | return 0; | |
27386 | } | |
27387 | _ACEOF | |
27388 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27390 | (eval $ac_link) 2>&5 | |
27391 | ac_status=$? | |
27392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27393 | (exit $ac_status); } && | |
27394 | { ac_try='test -s conftest$ac_exeext' | |
27395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27396 | (eval $ac_try) 2>&5 | |
27397 | ac_status=$? | |
27398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27399 | (exit $ac_status); }; }; then | |
27400 | eval "$as_ac_var=yes" | |
27401 | else | |
27402 | echo "$as_me: failed program was:" >&5 | |
27403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27404 | ||
27405 | eval "$as_ac_var=no" | |
27406 | fi | |
27407 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27408 | fi | |
27409 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27410 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27411 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27412 | cat >>confdefs.h <<_ACEOF | |
27413 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27414 | _ACEOF | |
4f14bcd8 | 27415 | break |
af15babd | 27416 | fi |
af15babd VZ |
27417 | done |
27418 | ||
8284b0c5 | 27419 | |
4f14bcd8 GD |
27420 | HAVE_SOME_SLEEP_FUNC=0 |
27421 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27422 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27423 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27424 | _ACEOF |
af15babd | 27425 | |
4f14bcd8 | 27426 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27427 | fi |
27428 | ||
4f14bcd8 | 27429 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27430 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27431 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27432 | _ACEOF |
10f2d63a | 27433 | |
4f14bcd8 | 27434 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27435 | fi |
27436 | ||
4f14bcd8 GD |
27437 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
27438 | POSIX4_LINK= | |
e6cc62c6 VS |
27439 | |
27440 | for ac_func in nanosleep | |
4f14bcd8 | 27441 | do |
e6cc62c6 VS |
27442 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27443 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27444 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27445 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27447 | else | |
27448 | cat >conftest.$ac_ext <<_ACEOF | |
27449 | #line $LINENO "configure" | |
27450 | /* confdefs.h. */ | |
27451 | _ACEOF | |
27452 | cat confdefs.h >>conftest.$ac_ext | |
27453 | cat >>conftest.$ac_ext <<_ACEOF | |
27454 | /* end confdefs.h. */ | |
4f14bcd8 | 27455 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27456 | which can conflict with char $ac_func (); below. |
27457 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27458 | <limits.h> exists even on freestanding compilers. */ | |
27459 | #ifdef __STDC__ | |
27460 | # include <limits.h> | |
27461 | #else | |
27462 | # include <assert.h> | |
27463 | #endif | |
10f2d63a | 27464 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27465 | #ifdef __cplusplus |
27466 | extern "C" | |
27467 | { | |
27468 | #endif | |
10f2d63a | 27469 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27470 | builtin and then its argument prototype would still apply. */ |
27471 | char $ac_func (); | |
4f14bcd8 GD |
27472 | /* The GNU C library defines this for functions which it implements |
27473 | to always fail with ENOSYS. Some functions are actually named | |
27474 | something starting with __ and the normal name is an alias. */ | |
27475 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27476 | choke me | |
27477 | #else | |
e6cc62c6 VS |
27478 | char (*f) () = $ac_func; |
27479 | #endif | |
27480 | #ifdef __cplusplus | |
27481 | } | |
4f14bcd8 GD |
27482 | #endif |
27483 | ||
e6cc62c6 VS |
27484 | int |
27485 | main () | |
27486 | { | |
27487 | return f != $ac_func; | |
27488 | ; | |
27489 | return 0; | |
27490 | } | |
27491 | _ACEOF | |
27492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27494 | (eval $ac_link) 2>&5 | |
27495 | ac_status=$? | |
27496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27497 | (exit $ac_status); } && | |
27498 | { ac_try='test -s conftest$ac_exeext' | |
27499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27500 | (eval $ac_try) 2>&5 | |
27501 | ac_status=$? | |
27502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27503 | (exit $ac_status); }; }; then | |
27504 | eval "$as_ac_var=yes" | |
27505 | else | |
27506 | echo "$as_me: failed program was:" >&5 | |
27507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27508 | ||
27509 | eval "$as_ac_var=no" | |
27510 | fi | |
27511 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27512 | fi | |
27513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27514 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27515 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27516 | cat >>confdefs.h <<_ACEOF | |
27517 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27518 | _ACEOF | |
27519 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27520 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27521 | _ACEOF |
4f14bcd8 | 27522 | |
10f2d63a | 27523 | else |
e6cc62c6 VS |
27524 | |
27525 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27526 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27527 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27529 | else |
e6cc62c6 | 27530 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27531 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
27532 | cat >conftest.$ac_ext <<_ACEOF |
27533 | #line $LINENO "configure" | |
27534 | /* confdefs.h. */ | |
27535 | _ACEOF | |
27536 | cat confdefs.h >>conftest.$ac_ext | |
27537 | cat >>conftest.$ac_ext <<_ACEOF | |
27538 | /* end confdefs.h. */ | |
27539 | ||
10f2d63a | 27540 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27541 | #ifdef __cplusplus |
27542 | extern "C" | |
27543 | #endif | |
10f2d63a | 27544 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27545 | builtin and then its argument prototype would still apply. */ |
27546 | char nanosleep (); | |
27547 | int | |
27548 | main () | |
27549 | { | |
27550 | nanosleep (); | |
27551 | ; | |
27552 | return 0; | |
27553 | } | |
27554 | _ACEOF | |
27555 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27557 | (eval $ac_link) 2>&5 | |
27558 | ac_status=$? | |
27559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27560 | (exit $ac_status); } && | |
27561 | { ac_try='test -s conftest$ac_exeext' | |
27562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27563 | (eval $ac_try) 2>&5 | |
27564 | ac_status=$? | |
27565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27566 | (exit $ac_status); }; }; then | |
27567 | ac_cv_lib_posix4_nanosleep=yes | |
27568 | else | |
27569 | echo "$as_me: failed program was:" >&5 | |
27570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27571 | ||
27572 | ac_cv_lib_posix4_nanosleep=no | |
27573 | fi | |
27574 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27575 | LIBS=$ac_check_lib_save_LIBS | |
27576 | fi | |
27577 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27578 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27579 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27580 | ||
27581 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27582 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27583 | _ACEOF |
4f14bcd8 | 27584 | |
3d63bc3a | 27585 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 27586 | |
10f2d63a | 27587 | else |
10f2d63a | 27588 | |
e6cc62c6 VS |
27589 | |
27590 | for ac_func in usleep | |
4f14bcd8 | 27591 | do |
e6cc62c6 VS |
27592 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27593 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27594 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27595 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27597 | else | |
27598 | cat >conftest.$ac_ext <<_ACEOF | |
27599 | #line $LINENO "configure" | |
27600 | /* confdefs.h. */ | |
27601 | _ACEOF | |
27602 | cat confdefs.h >>conftest.$ac_ext | |
27603 | cat >>conftest.$ac_ext <<_ACEOF | |
27604 | /* end confdefs.h. */ | |
4f14bcd8 | 27605 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27606 | which can conflict with char $ac_func (); below. |
27607 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27608 | <limits.h> exists even on freestanding compilers. */ | |
27609 | #ifdef __STDC__ | |
27610 | # include <limits.h> | |
27611 | #else | |
27612 | # include <assert.h> | |
27613 | #endif | |
4f14bcd8 | 27614 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27615 | #ifdef __cplusplus |
27616 | extern "C" | |
27617 | { | |
27618 | #endif | |
4f14bcd8 | 27619 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27620 | builtin and then its argument prototype would still apply. */ |
27621 | char $ac_func (); | |
4f14bcd8 GD |
27622 | /* The GNU C library defines this for functions which it implements |
27623 | to always fail with ENOSYS. Some functions are actually named | |
27624 | something starting with __ and the normal name is an alias. */ | |
27625 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27626 | choke me | |
27627 | #else | |
e6cc62c6 VS |
27628 | char (*f) () = $ac_func; |
27629 | #endif | |
27630 | #ifdef __cplusplus | |
27631 | } | |
4f14bcd8 GD |
27632 | #endif |
27633 | ||
e6cc62c6 VS |
27634 | int |
27635 | main () | |
27636 | { | |
27637 | return f != $ac_func; | |
27638 | ; | |
27639 | return 0; | |
27640 | } | |
27641 | _ACEOF | |
27642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27644 | (eval $ac_link) 2>&5 | |
27645 | ac_status=$? | |
27646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27647 | (exit $ac_status); } && | |
27648 | { ac_try='test -s conftest$ac_exeext' | |
27649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27650 | (eval $ac_try) 2>&5 | |
27651 | ac_status=$? | |
27652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27653 | (exit $ac_status); }; }; then | |
27654 | eval "$as_ac_var=yes" | |
27655 | else | |
27656 | echo "$as_me: failed program was:" >&5 | |
27657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27658 | ||
27659 | eval "$as_ac_var=no" | |
27660 | fi | |
27661 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27662 | fi | |
27663 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27664 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27665 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27666 | cat >>confdefs.h <<_ACEOF | |
27667 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27668 | _ACEOF | |
27669 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27670 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27671 | _ACEOF |
4f14bcd8 | 27672 | |
698dcdb6 | 27673 | else |
e6cc62c6 VS |
27674 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
27675 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
27676 | ||
10f2d63a | 27677 | fi |
4f14bcd8 | 27678 | done |
10f2d63a | 27679 | |
e6cc62c6 VS |
27680 | |
27681 | ||
6232543b | 27682 | fi |
10f2d63a | 27683 | |
e6cc62c6 VS |
27684 | |
27685 | ||
1e487827 | 27686 | fi |
4f14bcd8 | 27687 | done |
703e0a69 | 27688 | |
10f2d63a VZ |
27689 | fi |
27690 | ||
e6cc62c6 VS |
27691 | |
27692 | ||
4f14bcd8 | 27693 | for ac_func in uname gethostname |
70846f0a | 27694 | do |
e6cc62c6 VS |
27695 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27696 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27697 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27698 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27700 | else | |
27701 | cat >conftest.$ac_ext <<_ACEOF | |
27702 | #line $LINENO "configure" | |
27703 | /* confdefs.h. */ | |
27704 | _ACEOF | |
27705 | cat confdefs.h >>conftest.$ac_ext | |
27706 | cat >>conftest.$ac_ext <<_ACEOF | |
27707 | /* end confdefs.h. */ | |
70846f0a | 27708 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27709 | which can conflict with char $ac_func (); below. |
27710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27711 | <limits.h> exists even on freestanding compilers. */ | |
27712 | #ifdef __STDC__ | |
27713 | # include <limits.h> | |
27714 | #else | |
27715 | # include <assert.h> | |
27716 | #endif | |
70846f0a | 27717 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27718 | #ifdef __cplusplus |
27719 | extern "C" | |
27720 | { | |
27721 | #endif | |
70846f0a | 27722 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27723 | builtin and then its argument prototype would still apply. */ |
27724 | char $ac_func (); | |
70846f0a VZ |
27725 | /* The GNU C library defines this for functions which it implements |
27726 | to always fail with ENOSYS. Some functions are actually named | |
27727 | something starting with __ and the normal name is an alias. */ | |
27728 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27729 | choke me | |
27730 | #else | |
e6cc62c6 VS |
27731 | char (*f) () = $ac_func; |
27732 | #endif | |
27733 | #ifdef __cplusplus | |
27734 | } | |
70846f0a VZ |
27735 | #endif |
27736 | ||
e6cc62c6 VS |
27737 | int |
27738 | main () | |
27739 | { | |
27740 | return f != $ac_func; | |
27741 | ; | |
27742 | return 0; | |
27743 | } | |
27744 | _ACEOF | |
27745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27747 | (eval $ac_link) 2>&5 | |
27748 | ac_status=$? | |
27749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27750 | (exit $ac_status); } && | |
27751 | { ac_try='test -s conftest$ac_exeext' | |
27752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27753 | (eval $ac_try) 2>&5 | |
27754 | ac_status=$? | |
27755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27756 | (exit $ac_status); }; }; then | |
27757 | eval "$as_ac_var=yes" | |
27758 | else | |
27759 | echo "$as_me: failed program was:" >&5 | |
27760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27761 | ||
27762 | eval "$as_ac_var=no" | |
27763 | fi | |
27764 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27765 | fi | |
27766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27767 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27768 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27769 | cat >>confdefs.h <<_ACEOF | |
27770 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27771 | _ACEOF | |
4f14bcd8 | 27772 | break |
70846f0a VZ |
27773 | fi |
27774 | done | |
27775 | ||
8284b0c5 MB |
27776 | |
27777 | ||
e6cc62c6 VS |
27778 | |
27779 | ac_ext=cc | |
4f14bcd8 | 27780 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27781 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27782 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27783 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27784 | ||
8284b0c5 | 27785 | |
4f14bcd8 GD |
27786 | |
27787 | for ac_func in strtok_r | |
10f2d63a | 27788 | do |
e6cc62c6 VS |
27789 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27790 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27791 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27792 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27794 | else | |
27795 | cat >conftest.$ac_ext <<_ACEOF | |
27796 | #line $LINENO "configure" | |
27797 | /* confdefs.h. */ | |
27798 | _ACEOF | |
27799 | cat confdefs.h >>conftest.$ac_ext | |
27800 | cat >>conftest.$ac_ext <<_ACEOF | |
27801 | /* end confdefs.h. */ | |
4f14bcd8 | 27802 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27803 | which can conflict with char $ac_func (); below. |
27804 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27805 | <limits.h> exists even on freestanding compilers. */ | |
27806 | #ifdef __STDC__ | |
27807 | # include <limits.h> | |
27808 | #else | |
27809 | # include <assert.h> | |
27810 | #endif | |
4f14bcd8 GD |
27811 | /* Override any gcc2 internal prototype to avoid an error. */ |
27812 | #ifdef __cplusplus | |
27813 | extern "C" | |
e6cc62c6 | 27814 | { |
4f14bcd8 GD |
27815 | #endif |
27816 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
27817 | builtin and then its argument prototype would still apply. */ |
27818 | char $ac_func (); | |
4f14bcd8 GD |
27819 | /* The GNU C library defines this for functions which it implements |
27820 | to always fail with ENOSYS. Some functions are actually named | |
27821 | something starting with __ and the normal name is an alias. */ | |
27822 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27823 | choke me | |
27824 | #else | |
e6cc62c6 VS |
27825 | char (*f) () = $ac_func; |
27826 | #endif | |
27827 | #ifdef __cplusplus | |
27828 | } | |
4f14bcd8 GD |
27829 | #endif |
27830 | ||
e6cc62c6 VS |
27831 | int |
27832 | main () | |
27833 | { | |
27834 | return f != $ac_func; | |
27835 | ; | |
27836 | return 0; | |
27837 | } | |
27838 | _ACEOF | |
27839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27841 | (eval $ac_link) 2>&5 | |
27842 | ac_status=$? | |
27843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27844 | (exit $ac_status); } && | |
27845 | { ac_try='test -s conftest$ac_exeext' | |
27846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27847 | (eval $ac_try) 2>&5 | |
27848 | ac_status=$? | |
27849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27850 | (exit $ac_status); }; }; then | |
27851 | eval "$as_ac_var=yes" | |
27852 | else | |
27853 | echo "$as_me: failed program was:" >&5 | |
27854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27855 | ||
27856 | eval "$as_ac_var=no" | |
27857 | fi | |
27858 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27859 | fi | |
27860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27861 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27862 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27863 | cat >>confdefs.h <<_ACEOF | |
27864 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27865 | _ACEOF | |
4f14bcd8 | 27866 | |
10f2d63a VZ |
27867 | fi |
27868 | done | |
27869 | ||
8284b0c5 | 27870 | |
4f14bcd8 | 27871 | ac_ext=c |
4f14bcd8 | 27872 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 27876 | |
5c6fa7d2 | 27877 | |
8284b0c5 | 27878 | INET_LINK= |
e6cc62c6 | 27879 | |
4f14bcd8 GD |
27880 | for ac_func in inet_addr |
27881 | do | |
e6cc62c6 VS |
27882 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27883 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27884 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27885 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27887 | else | |
27888 | cat >conftest.$ac_ext <<_ACEOF | |
27889 | #line $LINENO "configure" | |
27890 | /* confdefs.h. */ | |
27891 | _ACEOF | |
27892 | cat confdefs.h >>conftest.$ac_ext | |
27893 | cat >>conftest.$ac_ext <<_ACEOF | |
27894 | /* end confdefs.h. */ | |
4f14bcd8 | 27895 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27896 | which can conflict with char $ac_func (); below. |
27897 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27898 | <limits.h> exists even on freestanding compilers. */ | |
27899 | #ifdef __STDC__ | |
27900 | # include <limits.h> | |
27901 | #else | |
27902 | # include <assert.h> | |
27903 | #endif | |
10f2d63a | 27904 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27905 | #ifdef __cplusplus |
27906 | extern "C" | |
27907 | { | |
27908 | #endif | |
10f2d63a | 27909 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27910 | builtin and then its argument prototype would still apply. */ |
27911 | char $ac_func (); | |
4f14bcd8 GD |
27912 | /* The GNU C library defines this for functions which it implements |
27913 | to always fail with ENOSYS. Some functions are actually named | |
27914 | something starting with __ and the normal name is an alias. */ | |
27915 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27916 | choke me | |
27917 | #else | |
e6cc62c6 VS |
27918 | char (*f) () = $ac_func; |
27919 | #endif | |
27920 | #ifdef __cplusplus | |
27921 | } | |
4f14bcd8 GD |
27922 | #endif |
27923 | ||
e6cc62c6 VS |
27924 | int |
27925 | main () | |
27926 | { | |
27927 | return f != $ac_func; | |
27928 | ; | |
27929 | return 0; | |
27930 | } | |
27931 | _ACEOF | |
27932 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27933 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27934 | (eval $ac_link) 2>&5 | |
27935 | ac_status=$? | |
27936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27937 | (exit $ac_status); } && | |
27938 | { ac_try='test -s conftest$ac_exeext' | |
27939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27940 | (eval $ac_try) 2>&5 | |
27941 | ac_status=$? | |
27942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27943 | (exit $ac_status); }; }; then | |
27944 | eval "$as_ac_var=yes" | |
27945 | else | |
27946 | echo "$as_me: failed program was:" >&5 | |
27947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27948 | ||
27949 | eval "$as_ac_var=no" | |
27950 | fi | |
27951 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27952 | fi | |
27953 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27954 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27955 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27956 | cat >>confdefs.h <<_ACEOF | |
27957 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27958 | _ACEOF | |
27959 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27960 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 27961 | _ACEOF |
10f2d63a VZ |
27962 | |
27963 | else | |
e6cc62c6 VS |
27964 | |
27965 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
27966 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
27967 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
27968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27969 | else |
e6cc62c6 | 27970 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27971 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
27972 | cat >conftest.$ac_ext <<_ACEOF |
27973 | #line $LINENO "configure" | |
27974 | /* confdefs.h. */ | |
27975 | _ACEOF | |
27976 | cat confdefs.h >>conftest.$ac_ext | |
27977 | cat >>conftest.$ac_ext <<_ACEOF | |
27978 | /* end confdefs.h. */ | |
27979 | ||
10f2d63a | 27980 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27981 | #ifdef __cplusplus |
27982 | extern "C" | |
27983 | #endif | |
10f2d63a | 27984 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27985 | builtin and then its argument prototype would still apply. */ |
27986 | char inet_addr (); | |
27987 | int | |
27988 | main () | |
27989 | { | |
27990 | inet_addr (); | |
27991 | ; | |
27992 | return 0; | |
27993 | } | |
27994 | _ACEOF | |
27995 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27996 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27997 | (eval $ac_link) 2>&5 | |
27998 | ac_status=$? | |
27999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28000 | (exit $ac_status); } && | |
28001 | { ac_try='test -s conftest$ac_exeext' | |
28002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28003 | (eval $ac_try) 2>&5 | |
28004 | ac_status=$? | |
28005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28006 | (exit $ac_status); }; }; then | |
28007 | ac_cv_lib_nsl_inet_addr=yes | |
28008 | else | |
28009 | echo "$as_me: failed program was:" >&5 | |
28010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28011 | ||
28012 | ac_cv_lib_nsl_inet_addr=no | |
28013 | fi | |
28014 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28015 | LIBS=$ac_check_lib_save_LIBS | |
28016 | fi | |
28017 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
28018 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
28019 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 28020 | INET_LINK="nsl" |
10f2d63a | 28021 | else |
e6cc62c6 VS |
28022 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
28023 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
28024 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
28025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28026 | else |
e6cc62c6 | 28027 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28028 | LIBS="-lresolv $LIBS" |
e6cc62c6 VS |
28029 | cat >conftest.$ac_ext <<_ACEOF |
28030 | #line $LINENO "configure" | |
28031 | /* confdefs.h. */ | |
28032 | _ACEOF | |
28033 | cat confdefs.h >>conftest.$ac_ext | |
28034 | cat >>conftest.$ac_ext <<_ACEOF | |
28035 | /* end confdefs.h. */ | |
28036 | ||
5c6fa7d2 | 28037 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28038 | #ifdef __cplusplus |
28039 | extern "C" | |
28040 | #endif | |
5c6fa7d2 | 28041 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28042 | builtin and then its argument prototype would still apply. */ |
28043 | char inet_addr (); | |
28044 | int | |
28045 | main () | |
28046 | { | |
28047 | inet_addr (); | |
28048 | ; | |
28049 | return 0; | |
28050 | } | |
28051 | _ACEOF | |
28052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28054 | (eval $ac_link) 2>&5 | |
28055 | ac_status=$? | |
28056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28057 | (exit $ac_status); } && | |
28058 | { ac_try='test -s conftest$ac_exeext' | |
28059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28060 | (eval $ac_try) 2>&5 | |
28061 | ac_status=$? | |
28062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28063 | (exit $ac_status); }; }; then | |
28064 | ac_cv_lib_resolv_inet_addr=yes | |
28065 | else | |
28066 | echo "$as_me: failed program was:" >&5 | |
28067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28068 | ||
28069 | ac_cv_lib_resolv_inet_addr=no | |
28070 | fi | |
28071 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28072 | LIBS=$ac_check_lib_save_LIBS | |
28073 | fi | |
28074 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
28075 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
28076 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 28077 | INET_LINK="resolv" |
698dcdb6 | 28078 | else |
e6cc62c6 VS |
28079 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
28080 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
28081 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
28082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 28083 | else |
e6cc62c6 | 28084 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 28085 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
28086 | cat >conftest.$ac_ext <<_ACEOF |
28087 | #line $LINENO "configure" | |
28088 | /* confdefs.h. */ | |
28089 | _ACEOF | |
28090 | cat confdefs.h >>conftest.$ac_ext | |
28091 | cat >>conftest.$ac_ext <<_ACEOF | |
28092 | /* end confdefs.h. */ | |
28093 | ||
3c011993 | 28094 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28095 | #ifdef __cplusplus |
28096 | extern "C" | |
28097 | #endif | |
3c011993 | 28098 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28099 | builtin and then its argument prototype would still apply. */ |
28100 | char inet_addr (); | |
28101 | int | |
28102 | main () | |
28103 | { | |
28104 | inet_addr (); | |
28105 | ; | |
28106 | return 0; | |
28107 | } | |
28108 | _ACEOF | |
28109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28111 | (eval $ac_link) 2>&5 | |
28112 | ac_status=$? | |
28113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28114 | (exit $ac_status); } && | |
28115 | { ac_try='test -s conftest$ac_exeext' | |
28116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28117 | (eval $ac_try) 2>&5 | |
28118 | ac_status=$? | |
28119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28120 | (exit $ac_status); }; }; then | |
28121 | ac_cv_lib_socket_inet_addr=yes | |
28122 | else | |
28123 | echo "$as_me: failed program was:" >&5 | |
28124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28125 | ||
28126 | ac_cv_lib_socket_inet_addr=no | |
28127 | fi | |
28128 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28129 | LIBS=$ac_check_lib_save_LIBS | |
28130 | fi | |
28131 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
28132 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
28133 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
28134 | INET_LINK="socket" | |
4f14bcd8 | 28135 | |
8284b0c5 | 28136 | fi |
e6cc62c6 | 28137 | |
698dcdb6 | 28138 | |
7b4a847f | 28139 | fi |
e6cc62c6 VS |
28140 | |
28141 | ||
a0b9e27f | 28142 | fi |
579d8138 | 28143 | |
e6cc62c6 VS |
28144 | |
28145 | ||
5c6fa7d2 | 28146 | fi |
e6cc62c6 VS |
28147 | done |
28148 | ||
28149 | ||
28150 | ||
28151 | for ac_func in inet_aton | |
28152 | do | |
28153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28156 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28158 | else | |
28159 | cat >conftest.$ac_ext <<_ACEOF | |
28160 | #line $LINENO "configure" | |
28161 | /* confdefs.h. */ | |
28162 | _ACEOF | |
28163 | cat confdefs.h >>conftest.$ac_ext | |
28164 | cat >>conftest.$ac_ext <<_ACEOF | |
28165 | /* end confdefs.h. */ | |
28166 | /* System header to define __stub macros and hopefully few prototypes, | |
28167 | which can conflict with char $ac_func (); below. | |
28168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28169 | <limits.h> exists even on freestanding compilers. */ | |
28170 | #ifdef __STDC__ | |
28171 | # include <limits.h> | |
28172 | #else | |
28173 | # include <assert.h> | |
28174 | #endif | |
28175 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28176 | #ifdef __cplusplus | |
28177 | extern "C" | |
28178 | { | |
28179 | #endif | |
28180 | /* We use char because int might match the return type of a gcc2 | |
28181 | builtin and then its argument prototype would still apply. */ | |
28182 | char $ac_func (); | |
28183 | /* The GNU C library defines this for functions which it implements | |
28184 | to always fail with ENOSYS. Some functions are actually named | |
28185 | something starting with __ and the normal name is an alias. */ | |
28186 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28187 | choke me | |
28188 | #else | |
28189 | char (*f) () = $ac_func; | |
28190 | #endif | |
28191 | #ifdef __cplusplus | |
28192 | } | |
28193 | #endif | |
28194 | ||
28195 | int | |
28196 | main () | |
28197 | { | |
28198 | return f != $ac_func; | |
28199 | ; | |
28200 | return 0; | |
28201 | } | |
28202 | _ACEOF | |
28203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28205 | (eval $ac_link) 2>&5 | |
28206 | ac_status=$? | |
28207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28208 | (exit $ac_status); } && | |
28209 | { ac_try='test -s conftest$ac_exeext' | |
28210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28211 | (eval $ac_try) 2>&5 | |
28212 | ac_status=$? | |
28213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28214 | (exit $ac_status); }; }; then | |
28215 | eval "$as_ac_var=yes" | |
28216 | else | |
28217 | echo "$as_me: failed program was:" >&5 | |
28218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28219 | ||
28220 | eval "$as_ac_var=no" | |
28221 | fi | |
28222 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28223 | fi | |
28224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28225 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28226 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28227 | cat >>confdefs.h <<_ACEOF | |
28228 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28229 | _ACEOF | |
28230 | cat >>confdefs.h <<\_ACEOF | |
28231 | #define HAVE_INET_ATON 1 | |
28232 | _ACEOF | |
28233 | ||
28234 | else | |
28235 | ||
28236 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28237 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28238 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28239 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28241 | else | |
28242 | ac_check_lib_save_LIBS=$LIBS | |
28243 | LIBS="-l$INET_LINK $LIBS" | |
28244 | cat >conftest.$ac_ext <<_ACEOF | |
28245 | #line $LINENO "configure" | |
28246 | /* confdefs.h. */ | |
28247 | _ACEOF | |
28248 | cat confdefs.h >>conftest.$ac_ext | |
28249 | cat >>conftest.$ac_ext <<_ACEOF | |
28250 | /* end confdefs.h. */ | |
28251 | ||
28252 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28253 | #ifdef __cplusplus | |
28254 | extern "C" | |
28255 | #endif | |
28256 | /* We use char because int might match the return type of a gcc2 | |
28257 | builtin and then its argument prototype would still apply. */ | |
28258 | char inet_aton (); | |
28259 | int | |
28260 | main () | |
28261 | { | |
28262 | inet_aton (); | |
28263 | ; | |
28264 | return 0; | |
28265 | } | |
28266 | _ACEOF | |
28267 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28269 | (eval $ac_link) 2>&5 | |
28270 | ac_status=$? | |
28271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28272 | (exit $ac_status); } && | |
28273 | { ac_try='test -s conftest$ac_exeext' | |
28274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28275 | (eval $ac_try) 2>&5 | |
28276 | ac_status=$? | |
28277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28278 | (exit $ac_status); }; }; then | |
28279 | eval "$as_ac_Lib=yes" | |
28280 | else | |
28281 | echo "$as_me: failed program was:" >&5 | |
28282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28283 | ||
28284 | eval "$as_ac_Lib=no" | |
28285 | fi | |
28286 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28287 | LIBS=$ac_check_lib_save_LIBS | |
28288 | fi | |
28289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28290 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28291 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28292 | cat >>confdefs.h <<\_ACEOF | |
28293 | #define HAVE_INET_ATON 1 | |
28294 | _ACEOF | |
52127426 | 28295 | |
a0b9e27f | 28296 | fi |
247f5006 | 28297 | |
8284b0c5 | 28298 | |
698dcdb6 | 28299 | fi |
4f14bcd8 GD |
28300 | done |
28301 | ||
8284b0c5 | 28302 | |
e6cc62c6 VS |
28303 | if test "x$INET_LINK" != "x"; then |
28304 | cat >>confdefs.h <<\_ACEOF | |
28305 | #define HAVE_INET_ADDR 1 | |
28306 | _ACEOF | |
28307 | ||
28308 | INET_LINK=" -l$INET_LINK" | |
28309 | fi | |
28310 | ||
28311 | fi | |
a0b9e27f | 28312 | |
a0b9e27f | 28313 | |
4f14bcd8 | 28314 | |
e6cc62c6 VS |
28315 | ESD_LINK= |
28316 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28317 | echo "$as_me:$LINENO: checking for esd.h" >&5 | |
28318 | echo $ECHO_N "checking for esd.h... $ECHO_C" >&6 | |
28319 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28321 | fi | |
28322 | echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5 | |
28323 | echo "${ECHO_T}$ac_cv_header_esd_h" >&6 | |
28324 | else | |
28325 | # Is the header compilable? | |
28326 | echo "$as_me:$LINENO: checking esd.h usability" >&5 | |
28327 | echo $ECHO_N "checking esd.h usability... $ECHO_C" >&6 | |
28328 | cat >conftest.$ac_ext <<_ACEOF | |
28329 | #line $LINENO "configure" | |
28330 | /* confdefs.h. */ | |
28331 | _ACEOF | |
28332 | cat confdefs.h >>conftest.$ac_ext | |
28333 | cat >>conftest.$ac_ext <<_ACEOF | |
28334 | /* end confdefs.h. */ | |
28335 | $ac_includes_default | |
28336 | #include <esd.h> | |
28337 | _ACEOF | |
28338 | rm -f conftest.$ac_objext | |
28339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28340 | (eval $ac_compile) 2>&5 | |
28341 | ac_status=$? | |
28342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28343 | (exit $ac_status); } && | |
28344 | { ac_try='test -s conftest.$ac_objext' | |
28345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28346 | (eval $ac_try) 2>&5 | |
28347 | ac_status=$? | |
28348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28349 | (exit $ac_status); }; }; then | |
28350 | ac_header_compiler=yes | |
28351 | else | |
28352 | echo "$as_me: failed program was:" >&5 | |
28353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28354 | ||
28355 | ac_header_compiler=no | |
28356 | fi | |
28357 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28358 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28359 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28360 | ||
28361 | # Is the header present? | |
28362 | echo "$as_me:$LINENO: checking esd.h presence" >&5 | |
28363 | echo $ECHO_N "checking esd.h presence... $ECHO_C" >&6 | |
28364 | cat >conftest.$ac_ext <<_ACEOF | |
28365 | #line $LINENO "configure" | |
28366 | /* confdefs.h. */ | |
28367 | _ACEOF | |
28368 | cat confdefs.h >>conftest.$ac_ext | |
28369 | cat >>conftest.$ac_ext <<_ACEOF | |
28370 | /* end confdefs.h. */ | |
28371 | #include <esd.h> | |
28372 | _ACEOF | |
28373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28375 | ac_status=$? | |
28376 | grep -v '^ *+' conftest.er1 >conftest.err | |
28377 | rm -f conftest.er1 | |
28378 | cat conftest.err >&5 | |
28379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28380 | (exit $ac_status); } >/dev/null; then | |
28381 | if test -s conftest.err; then | |
28382 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28383 | else | |
28384 | ac_cpp_err= | |
28385 | fi | |
a0b9e27f | 28386 | else |
e6cc62c6 VS |
28387 | ac_cpp_err=yes |
28388 | fi | |
28389 | if test -z "$ac_cpp_err"; then | |
28390 | ac_header_preproc=yes | |
28391 | else | |
28392 | echo "$as_me: failed program was:" >&5 | |
28393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28394 | ||
28395 | ac_header_preproc=no | |
28396 | fi | |
28397 | rm -f conftest.err conftest.$ac_ext | |
28398 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28399 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28400 | ||
28401 | # So? What about this header? | |
28402 | case $ac_header_compiler:$ac_header_preproc in | |
28403 | yes:no ) | |
28404 | { echo "$as_me:$LINENO: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28405 | echo "$as_me: WARNING: esd.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28406 | { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5 | |
28407 | echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;} | |
28408 | ( | |
28409 | cat <<\_ASBOX | |
28410 | ## ------------------------------------ ## | |
28411 | ## Report this to bug-autoconf@gnu.org. ## | |
28412 | ## ------------------------------------ ## | |
28413 | _ASBOX | |
28414 | ) | | |
28415 | sed "s/^/$as_me: WARNING: /" >&2 | |
28416 | ;; | |
28417 | no:yes ) | |
28418 | { echo "$as_me:$LINENO: WARNING: esd.h: present but cannot be compiled" >&5 | |
28419 | echo "$as_me: WARNING: esd.h: present but cannot be compiled" >&2;} | |
28420 | { echo "$as_me:$LINENO: WARNING: esd.h: check for missing prerequisite headers?" >&5 | |
28421 | echo "$as_me: WARNING: esd.h: check for missing prerequisite headers?" >&2;} | |
28422 | { echo "$as_me:$LINENO: WARNING: esd.h: proceeding with the preprocessor's result" >&5 | |
28423 | echo "$as_me: WARNING: esd.h: proceeding with the preprocessor's result" >&2;} | |
28424 | ( | |
28425 | cat <<\_ASBOX | |
28426 | ## ------------------------------------ ## | |
28427 | ## Report this to bug-autoconf@gnu.org. ## | |
28428 | ## ------------------------------------ ## | |
28429 | _ASBOX | |
28430 | ) | | |
28431 | sed "s/^/$as_me: WARNING: /" >&2 | |
28432 | ;; | |
28433 | esac | |
28434 | echo "$as_me:$LINENO: checking for esd.h" >&5 | |
28435 | echo $ECHO_N "checking for esd.h... $ECHO_C" >&6 | |
28436 | if test "${ac_cv_header_esd_h+set}" = set; then | |
28437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28438 | else | |
28439 | ac_cv_header_esd_h=$ac_header_preproc | |
a0b9e27f | 28440 | fi |
e6cc62c6 VS |
28441 | echo "$as_me:$LINENO: result: $ac_cv_header_esd_h" >&5 |
28442 | echo "${ECHO_T}$ac_cv_header_esd_h" >&6 | |
a0b9e27f | 28443 | |
e6cc62c6 VS |
28444 | fi |
28445 | if test $ac_cv_header_esd_h = yes; then | |
4f14bcd8 | 28446 | |
e6cc62c6 VS |
28447 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 |
28448 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28449 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28451 | else |
e6cc62c6 VS |
28452 | ac_check_lib_save_LIBS=$LIBS |
28453 | LIBS="-lesd $LIBS" | |
28454 | cat >conftest.$ac_ext <<_ACEOF | |
28455 | #line $LINENO "configure" | |
28456 | /* confdefs.h. */ | |
28457 | _ACEOF | |
28458 | cat confdefs.h >>conftest.$ac_ext | |
28459 | cat >>conftest.$ac_ext <<_ACEOF | |
28460 | /* end confdefs.h. */ | |
28461 | ||
6232543b | 28462 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28463 | #ifdef __cplusplus |
28464 | extern "C" | |
28465 | #endif | |
6232543b | 28466 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28467 | builtin and then its argument prototype would still apply. */ |
28468 | char esd_close (); | |
28469 | int | |
28470 | main () | |
28471 | { | |
28472 | esd_close (); | |
28473 | ; | |
28474 | return 0; | |
28475 | } | |
28476 | _ACEOF | |
28477 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28479 | (eval $ac_link) 2>&5 | |
28480 | ac_status=$? | |
28481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28482 | (exit $ac_status); } && | |
28483 | { ac_try='test -s conftest$ac_exeext' | |
28484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28485 | (eval $ac_try) 2>&5 | |
28486 | ac_status=$? | |
28487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28488 | (exit $ac_status); }; }; then | |
28489 | ac_cv_lib_esd_esd_close=yes | |
a0b9e27f | 28490 | else |
e6cc62c6 VS |
28491 | echo "$as_me: failed program was:" >&5 |
28492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4f14bcd8 | 28493 | |
e6cc62c6 | 28494 | ac_cv_lib_esd_esd_close=no |
10f2d63a | 28495 | fi |
e6cc62c6 VS |
28496 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
28497 | LIBS=$ac_check_lib_save_LIBS | |
a0b9e27f | 28498 | fi |
e6cc62c6 VS |
28499 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 |
28500 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28501 | if test $ac_cv_lib_esd_esd_close = yes; then | |
247f5006 | 28502 | |
e6cc62c6 | 28503 | ESD_LINK="-lesd" |
10f2d63a | 28504 | |
e6cc62c6 | 28505 | fi |
8284b0c5 | 28506 | |
4f14bcd8 | 28507 | |
6232543b | 28508 | fi |
10f2d63a | 28509 | |
703e0a69 | 28510 | |
8284b0c5 | 28511 | |
e6cc62c6 VS |
28512 | |
28513 | ||
28514 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
28515 | # This file is a shell script that caches the results of configure |
28516 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
28517 | # scripts and configure runs, see configure's option --config-cache. |
28518 | # It is not useful on other systems. If it contains results you don't | |
28519 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 28520 | # |
e6cc62c6 VS |
28521 | # config.status only pays attention to the cache file if you give it |
28522 | # the --recheck option to rerun configure. | |
4f14bcd8 | 28523 | # |
e6cc62c6 VS |
28524 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
28525 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28526 | # following values. | |
28527 | ||
28528 | _ACEOF | |
28529 | ||
4f14bcd8 GD |
28530 | # The following way of writing the cache mishandles newlines in values, |
28531 | # but we know of no workaround that is simple, portable, and efficient. | |
28532 | # So, don't put newlines in cache variables' values. | |
28533 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28534 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
28535 | { |
28536 | (set) 2>&1 | | |
28537 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28538 | *ac_space=\ *) | |
28539 | # `set' does not quote correctly, so add quotes (double-quote | |
28540 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28541 | sed -n \ | |
28542 | "s/'/'\\\\''/g; | |
28543 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28544 | ;; | |
28545 | *) | |
28546 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28547 | sed -n \ | |
28548 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28549 | ;; | |
28550 | esac; | |
28551 | } | | |
28552 | sed ' | |
28553 | t clear | |
28554 | : clear | |
28555 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28556 | t end | |
28557 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28558 | : end' >>confcache | |
28559 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 28560 | if test -w $cache_file; then |
e6cc62c6 VS |
28561 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
28562 | cat confcache >$cache_file | |
f6bcfd97 | 28563 | else |
4f14bcd8 | 28564 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 28565 | fi |
4f14bcd8 GD |
28566 | fi |
28567 | rm -f confcache | |
f6bcfd97 | 28568 | |
8284b0c5 | 28569 | |
009fead0 | 28570 | CPP_MT_FLAG= |
4f14bcd8 GD |
28571 | if test "$TOOLKIT" != "MSW"; then |
28572 | ||
e6cc62c6 | 28573 | |
7274f1c7 | 28574 | THREADS_LINK= |
009fead0 | 28575 | THREADS_CFLAGS= |
7274f1c7 RL |
28576 | |
28577 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 28578 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
28579 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
28580 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
28581 | wxUSE_THREADS="no" |
28582 | fi | |
4f14bcd8 | 28583 | fi |
4f14bcd8 | 28584 | |
7274f1c7 | 28585 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28586 | |
28587 | ||
009fead0 VZ |
28588 | THREAD_OPTS="-pthread" |
28589 | case "${host}" in | |
28590 | *-*-solaris2* | *-*-sunos4* ) | |
28591 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 28592 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
28593 | else |
28594 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28595 | fi | |
28596 | ;; | |
28597 | *-*-freebsd*) | |
28598 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
28599 | ;; | |
17234b26 MB |
28600 | *-*-darwin* | *-*-cygwin* ) |
28601 | THREAD_OPTS="" | |
4101db81 | 28602 | ;; |
8f4a9a10 | 28603 | *-*-aix*) |
009fead0 VZ |
28604 | THREAD_OPTS="pthreads" |
28605 | ;; | |
4f5a7f74 VZ |
28606 | *-hp-hpux* ) |
28607 | if test "x$GCC" != "xyes"; then | |
28608 | THREAD_OPTS="" | |
28609 | fi | |
89e3b3e4 VZ |
28610 | ;; |
28611 | ||
28612 | *-*-irix* ) | |
28613 | if test "x$GCC" = "xyes"; then | |
28614 | THREAD_OPTS="" | |
28615 | fi | |
28616 | ;; | |
28617 | ||
28618 | *-*-*UnixWare*) | |
28619 | if test "x$GCC" != "xyes"; then | |
28620 | THREAD_OPTS="-Ethread" | |
28621 | fi | |
28622 | ;; | |
009fead0 | 28623 | esac |
4f14bcd8 | 28624 | |
02a1dfba | 28625 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 28626 | |
009fead0 VZ |
28627 | THREADS_OK=no |
28628 | for flag in $THREAD_OPTS; do | |
28629 | case $flag in | |
28630 | none) | |
e6cc62c6 VS |
28631 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
28632 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 28633 | ;; |
698dcdb6 | 28634 | |
009fead0 | 28635 | -*) |
e6cc62c6 VS |
28636 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
28637 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
28638 | THREADS_CFLAGS="$flag" |
28639 | ;; | |
698dcdb6 | 28640 | |
009fead0 | 28641 | *) |
e6cc62c6 VS |
28642 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
28643 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
28644 | THREADS_LINK="-l$flag" |
28645 | ;; | |
28646 | esac | |
10f2d63a | 28647 | |
009fead0 VZ |
28648 | save_LIBS="$LIBS" |
28649 | save_CFLAGS="$CFLAGS" | |
28650 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 28651 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 28652 | |
e6cc62c6 VS |
28653 | cat >conftest.$ac_ext <<_ACEOF |
28654 | #line $LINENO "configure" | |
28655 | /* confdefs.h. */ | |
28656 | _ACEOF | |
28657 | cat confdefs.h >>conftest.$ac_ext | |
28658 | cat >>conftest.$ac_ext <<_ACEOF | |
28659 | /* end confdefs.h. */ | |
009fead0 | 28660 | #include <pthread.h> |
e6cc62c6 VS |
28661 | int |
28662 | main () | |
28663 | { | |
009fead0 | 28664 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
28665 | ; |
28666 | return 0; | |
28667 | } | |
28668 | _ACEOF | |
28669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28671 | (eval $ac_link) 2>&5 | |
28672 | ac_status=$? | |
28673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28674 | (exit $ac_status); } && | |
28675 | { ac_try='test -s conftest$ac_exeext' | |
28676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28677 | (eval $ac_try) 2>&5 | |
28678 | ac_status=$? | |
28679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28680 | (exit $ac_status); }; }; then | |
009fead0 | 28681 | THREADS_OK=yes |
10f2d63a | 28682 | else |
e6cc62c6 VS |
28683 | echo "$as_me: failed program was:" >&5 |
28684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28685 | ||
6232543b | 28686 | fi |
e6cc62c6 | 28687 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 28688 | |
009fead0 VZ |
28689 | LIBS="$save_LIBS" |
28690 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 28691 | |
e6cc62c6 VS |
28692 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
28693 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
28694 | if test "x$THREADS_OK" = "xyes"; then |
28695 | break; | |
28696 | fi | |
d9b9876f | 28697 | |
009fead0 VZ |
28698 | THREADS_LINK="" |
28699 | THREADS_CFLAGS="" | |
28700 | done | |
4f14bcd8 | 28701 | |
009fead0 VZ |
28702 | if test "x$THREADS_OK" != "xyes"; then |
28703 | wxUSE_THREADS=no | |
e6cc62c6 VS |
28704 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
28705 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 28706 | else |
db82f09e VZ |
28707 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
28708 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 28709 | |
e6cc62c6 VS |
28710 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
28711 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
28712 | flag=no |
28713 | case "${host}" in | |
2b5f62a0 VZ |
28714 | *-aix*) |
28715 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
28716 | flag="-D_THREAD_SAFE" | |
28717 | ;; | |
28718 | *-freebsd*) | |
009fead0 VZ |
28719 | flag="-D_THREAD_SAFE" |
28720 | ;; | |
06313569 GD |
28721 | *-hp-hpux* ) |
28722 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
28723 | if test "x$GCC" != "xyes"; then |
28724 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
28725 | fi | |
06313569 | 28726 | ;; |
009fead0 VZ |
28727 | *solaris* | alpha*-osf*) |
28728 | flag="-D_REENTRANT" | |
28729 | ;; | |
28730 | esac | |
e6cc62c6 VS |
28731 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
28732 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 28733 | if test "x$flag" != xno; then |
04727afd | 28734 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
28735 | fi |
28736 | ||
009fead0 | 28737 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 28738 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
28739 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
28740 | fi | |
28741 | fi | |
4f14bcd8 | 28742 | fi |
4f14bcd8 | 28743 | |
7274f1c7 | 28744 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28745 | |
28746 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 28747 | do |
e6cc62c6 VS |
28748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28749 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28751 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28753 | else | |
28754 | cat >conftest.$ac_ext <<_ACEOF | |
28755 | #line $LINENO "configure" | |
28756 | /* confdefs.h. */ | |
28757 | _ACEOF | |
28758 | cat confdefs.h >>conftest.$ac_ext | |
28759 | cat >>conftest.$ac_ext <<_ACEOF | |
28760 | /* end confdefs.h. */ | |
4f14bcd8 | 28761 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28762 | which can conflict with char $ac_func (); below. |
28763 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28764 | <limits.h> exists even on freestanding compilers. */ | |
28765 | #ifdef __STDC__ | |
28766 | # include <limits.h> | |
28767 | #else | |
28768 | # include <assert.h> | |
28769 | #endif | |
4f14bcd8 | 28770 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28771 | #ifdef __cplusplus |
28772 | extern "C" | |
28773 | { | |
28774 | #endif | |
4f14bcd8 | 28775 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28776 | builtin and then its argument prototype would still apply. */ |
28777 | char $ac_func (); | |
4f14bcd8 GD |
28778 | /* The GNU C library defines this for functions which it implements |
28779 | to always fail with ENOSYS. Some functions are actually named | |
28780 | something starting with __ and the normal name is an alias. */ | |
28781 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28782 | choke me | |
28783 | #else | |
e6cc62c6 VS |
28784 | char (*f) () = $ac_func; |
28785 | #endif | |
28786 | #ifdef __cplusplus | |
28787 | } | |
4f14bcd8 GD |
28788 | #endif |
28789 | ||
e6cc62c6 VS |
28790 | int |
28791 | main () | |
28792 | { | |
28793 | return f != $ac_func; | |
28794 | ; | |
28795 | return 0; | |
28796 | } | |
28797 | _ACEOF | |
28798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28800 | (eval $ac_link) 2>&5 | |
28801 | ac_status=$? | |
28802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28803 | (exit $ac_status); } && | |
28804 | { ac_try='test -s conftest$ac_exeext' | |
28805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28806 | (eval $ac_try) 2>&5 | |
28807 | ac_status=$? | |
28808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28809 | (exit $ac_status); }; }; then | |
28810 | eval "$as_ac_var=yes" | |
28811 | else | |
28812 | echo "$as_me: failed program was:" >&5 | |
28813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28814 | ||
28815 | eval "$as_ac_var=no" | |
28816 | fi | |
28817 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28818 | fi | |
28819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28820 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28821 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28822 | cat >>confdefs.h <<_ACEOF | |
28823 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28824 | _ACEOF | |
698dcdb6 | 28825 | |
10f2d63a | 28826 | fi |
4f14bcd8 | 28827 | done |
10f2d63a | 28828 | |
8284b0c5 | 28829 | |
e6cc62c6 VS |
28830 | |
28831 | for ac_header in sched.h | |
4f14bcd8 | 28832 | do |
e6cc62c6 VS |
28833 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
28834 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28835 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28837 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28839 | fi | |
28840 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28841 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28842 | else | |
28843 | # Is the header compilable? | |
28844 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
28845 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
28846 | cat >conftest.$ac_ext <<_ACEOF | |
28847 | #line $LINENO "configure" | |
28848 | /* confdefs.h. */ | |
28849 | _ACEOF | |
28850 | cat confdefs.h >>conftest.$ac_ext | |
28851 | cat >>conftest.$ac_ext <<_ACEOF | |
28852 | /* end confdefs.h. */ | |
28853 | $ac_includes_default | |
28854 | #include <$ac_header> | |
28855 | _ACEOF | |
28856 | rm -f conftest.$ac_objext | |
28857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28858 | (eval $ac_compile) 2>&5 | |
28859 | ac_status=$? | |
28860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28861 | (exit $ac_status); } && | |
28862 | { ac_try='test -s conftest.$ac_objext' | |
28863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28864 | (eval $ac_try) 2>&5 | |
28865 | ac_status=$? | |
28866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28867 | (exit $ac_status); }; }; then | |
28868 | ac_header_compiler=yes | |
28869 | else | |
28870 | echo "$as_me: failed program was:" >&5 | |
28871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28872 | ||
28873 | ac_header_compiler=no | |
28874 | fi | |
28875 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28876 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28877 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28878 | ||
28879 | # Is the header present? | |
28880 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
28881 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
28882 | cat >conftest.$ac_ext <<_ACEOF | |
28883 | #line $LINENO "configure" | |
28884 | /* confdefs.h. */ | |
28885 | _ACEOF | |
28886 | cat confdefs.h >>conftest.$ac_ext | |
28887 | cat >>conftest.$ac_ext <<_ACEOF | |
28888 | /* end confdefs.h. */ | |
28889 | #include <$ac_header> | |
28890 | _ACEOF | |
28891 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28892 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28893 | ac_status=$? | |
28894 | grep -v '^ *+' conftest.er1 >conftest.err | |
28895 | rm -f conftest.er1 | |
28896 | cat conftest.err >&5 | |
28897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28898 | (exit $ac_status); } >/dev/null; then | |
28899 | if test -s conftest.err; then | |
28900 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28901 | else | |
28902 | ac_cpp_err= | |
28903 | fi | |
28904 | else | |
28905 | ac_cpp_err=yes | |
28906 | fi | |
28907 | if test -z "$ac_cpp_err"; then | |
28908 | ac_header_preproc=yes | |
28909 | else | |
28910 | echo "$as_me: failed program was:" >&5 | |
28911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28912 | ||
28913 | ac_header_preproc=no | |
28914 | fi | |
28915 | rm -f conftest.err conftest.$ac_ext | |
28916 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28917 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28918 | ||
28919 | # So? What about this header? | |
28920 | case $ac_header_compiler:$ac_header_preproc in | |
28921 | yes:no ) | |
28922 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28923 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28924 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28925 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28926 | ( | |
28927 | cat <<\_ASBOX | |
28928 | ## ------------------------------------ ## | |
28929 | ## Report this to bug-autoconf@gnu.org. ## | |
28930 | ## ------------------------------------ ## | |
28931 | _ASBOX | |
28932 | ) | | |
28933 | sed "s/^/$as_me: WARNING: /" >&2 | |
28934 | ;; | |
28935 | no:yes ) | |
28936 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
28937 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28938 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28939 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28940 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28941 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
28942 | ( | |
28943 | cat <<\_ASBOX | |
28944 | ## ------------------------------------ ## | |
28945 | ## Report this to bug-autoconf@gnu.org. ## | |
28946 | ## ------------------------------------ ## | |
28947 | _ASBOX | |
28948 | ) | | |
28949 | sed "s/^/$as_me: WARNING: /" >&2 | |
28950 | ;; | |
28951 | esac | |
28952 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28953 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28954 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28956 | else | |
28957 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 28958 | fi |
e6cc62c6 VS |
28959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28960 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28961 | ||
10f2d63a | 28962 | fi |
e6cc62c6 VS |
28963 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28964 | cat >>confdefs.h <<_ACEOF | |
28965 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28966 | _ACEOF | |
28967 | ||
f6bcfd97 | 28968 | fi |
e6cc62c6 | 28969 | |
4f14bcd8 | 28970 | done |
f6bcfd97 | 28971 | |
009fead0 | 28972 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
28973 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
28974 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
28975 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
28976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28977 | else | |
28978 | cat >conftest.$ac_ext <<_ACEOF | |
28979 | #line $LINENO "configure" | |
28980 | /* confdefs.h. */ | |
28981 | _ACEOF | |
28982 | cat confdefs.h >>conftest.$ac_ext | |
28983 | cat >>conftest.$ac_ext <<_ACEOF | |
28984 | /* end confdefs.h. */ | |
009fead0 | 28985 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28986 | which can conflict with char sched_yield (); below. |
28987 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28988 | <limits.h> exists even on freestanding compilers. */ | |
28989 | #ifdef __STDC__ | |
28990 | # include <limits.h> | |
28991 | #else | |
28992 | # include <assert.h> | |
28993 | #endif | |
4f14bcd8 | 28994 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28995 | #ifdef __cplusplus |
28996 | extern "C" | |
28997 | { | |
28998 | #endif | |
4f14bcd8 | 28999 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29000 | builtin and then its argument prototype would still apply. */ |
29001 | char sched_yield (); | |
009fead0 VZ |
29002 | /* The GNU C library defines this for functions which it implements |
29003 | to always fail with ENOSYS. Some functions are actually named | |
29004 | something starting with __ and the normal name is an alias. */ | |
29005 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
29006 | choke me | |
29007 | #else | |
e6cc62c6 VS |
29008 | char (*f) () = sched_yield; |
29009 | #endif | |
29010 | #ifdef __cplusplus | |
29011 | } | |
009fead0 VZ |
29012 | #endif |
29013 | ||
e6cc62c6 VS |
29014 | int |
29015 | main () | |
29016 | { | |
29017 | return f != sched_yield; | |
29018 | ; | |
29019 | return 0; | |
29020 | } | |
29021 | _ACEOF | |
29022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29024 | (eval $ac_link) 2>&5 | |
29025 | ac_status=$? | |
29026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29027 | (exit $ac_status); } && | |
29028 | { ac_try='test -s conftest$ac_exeext' | |
29029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29030 | (eval $ac_try) 2>&5 | |
29031 | ac_status=$? | |
29032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29033 | (exit $ac_status); }; }; then | |
29034 | ac_cv_func_sched_yield=yes | |
29035 | else | |
29036 | echo "$as_me: failed program was:" >&5 | |
29037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29038 | ||
29039 | ac_cv_func_sched_yield=no | |
29040 | fi | |
29041 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29042 | fi | |
29043 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
29044 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
29045 | if test $ac_cv_func_sched_yield = yes; then | |
29046 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29047 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29048 | _ACEOF |
10f2d63a | 29049 | |
4f14bcd8 | 29050 | else |
009fead0 | 29051 | |
e6cc62c6 VS |
29052 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
29053 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
29054 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
29055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29056 | else |
e6cc62c6 | 29057 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29058 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29059 | cat >conftest.$ac_ext <<_ACEOF |
29060 | #line $LINENO "configure" | |
29061 | /* confdefs.h. */ | |
29062 | _ACEOF | |
29063 | cat confdefs.h >>conftest.$ac_ext | |
29064 | cat >>conftest.$ac_ext <<_ACEOF | |
29065 | /* end confdefs.h. */ | |
29066 | ||
4f14bcd8 | 29067 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29068 | #ifdef __cplusplus |
29069 | extern "C" | |
29070 | #endif | |
4f14bcd8 | 29071 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29072 | builtin and then its argument prototype would still apply. */ |
29073 | char sched_yield (); | |
29074 | int | |
29075 | main () | |
29076 | { | |
29077 | sched_yield (); | |
29078 | ; | |
29079 | return 0; | |
29080 | } | |
29081 | _ACEOF | |
29082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29084 | (eval $ac_link) 2>&5 | |
29085 | ac_status=$? | |
29086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29087 | (exit $ac_status); } && | |
29088 | { ac_try='test -s conftest$ac_exeext' | |
29089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29090 | (eval $ac_try) 2>&5 | |
29091 | ac_status=$? | |
29092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29093 | (exit $ac_status); }; }; then | |
29094 | ac_cv_lib_posix4_sched_yield=yes | |
29095 | else | |
29096 | echo "$as_me: failed program was:" >&5 | |
29097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29098 | ||
29099 | ac_cv_lib_posix4_sched_yield=no | |
29100 | fi | |
29101 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29102 | LIBS=$ac_check_lib_save_LIBS | |
29103 | fi | |
29104 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
29105 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
29106 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
29107 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29108 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29109 | _ACEOF |
3d63bc3a | 29110 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 29111 | else |
e6cc62c6 VS |
29112 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
29113 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
29114 | ||
54276ccf VZ |
29115 | fi |
29116 | ||
e6cc62c6 VS |
29117 | |
29118 | ||
4f14bcd8 | 29119 | fi |
698dcdb6 | 29120 | |
009fead0 | 29121 | fi |
10f2d63a | 29122 | |
7274f1c7 | 29123 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
29124 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
29125 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
29126 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
29127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29128 | else | |
29129 | cat >conftest.$ac_ext <<_ACEOF | |
29130 | #line $LINENO "configure" | |
29131 | /* confdefs.h. */ | |
29132 | _ACEOF | |
29133 | cat confdefs.h >>conftest.$ac_ext | |
29134 | cat >>conftest.$ac_ext <<_ACEOF | |
29135 | /* end confdefs.h. */ | |
009fead0 | 29136 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29137 | which can conflict with char pthread_attr_getschedpolicy (); below. |
29138 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29139 | <limits.h> exists even on freestanding compilers. */ | |
29140 | #ifdef __STDC__ | |
29141 | # include <limits.h> | |
29142 | #else | |
29143 | # include <assert.h> | |
29144 | #endif | |
4f14bcd8 | 29145 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29146 | #ifdef __cplusplus |
29147 | extern "C" | |
29148 | { | |
29149 | #endif | |
4f14bcd8 | 29150 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29151 | builtin and then its argument prototype would still apply. */ |
29152 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
29153 | /* The GNU C library defines this for functions which it implements |
29154 | to always fail with ENOSYS. Some functions are actually named | |
29155 | something starting with __ and the normal name is an alias. */ | |
29156 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
29157 | choke me | |
29158 | #else | |
e6cc62c6 VS |
29159 | char (*f) () = pthread_attr_getschedpolicy; |
29160 | #endif | |
29161 | #ifdef __cplusplus | |
29162 | } | |
009fead0 VZ |
29163 | #endif |
29164 | ||
e6cc62c6 VS |
29165 | int |
29166 | main () | |
29167 | { | |
29168 | return f != pthread_attr_getschedpolicy; | |
29169 | ; | |
29170 | return 0; | |
29171 | } | |
29172 | _ACEOF | |
29173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29175 | (eval $ac_link) 2>&5 | |
29176 | ac_status=$? | |
29177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29178 | (exit $ac_status); } && | |
29179 | { ac_try='test -s conftest$ac_exeext' | |
29180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29181 | (eval $ac_try) 2>&5 | |
29182 | ac_status=$? | |
29183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29184 | (exit $ac_status); }; }; then | |
29185 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29186 | else | |
29187 | echo "$as_me: failed program was:" >&5 | |
29188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29189 | ||
29190 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29191 | fi | |
29192 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29193 | fi | |
29194 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29195 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29196 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29197 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29198 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29199 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29201 | else | |
29202 | cat >conftest.$ac_ext <<_ACEOF | |
29203 | #line $LINENO "configure" | |
29204 | /* confdefs.h. */ | |
29205 | _ACEOF | |
29206 | cat confdefs.h >>conftest.$ac_ext | |
29207 | cat >>conftest.$ac_ext <<_ACEOF | |
29208 | /* end confdefs.h. */ | |
a0b9e27f | 29209 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29210 | which can conflict with char pthread_attr_setschedparam (); below. |
29211 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29212 | <limits.h> exists even on freestanding compilers. */ | |
29213 | #ifdef __STDC__ | |
29214 | # include <limits.h> | |
29215 | #else | |
29216 | # include <assert.h> | |
29217 | #endif | |
422107f9 | 29218 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29219 | #ifdef __cplusplus |
29220 | extern "C" | |
29221 | { | |
29222 | #endif | |
422107f9 | 29223 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29224 | builtin and then its argument prototype would still apply. */ |
29225 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29226 | /* The GNU C library defines this for functions which it implements |
29227 | to always fail with ENOSYS. Some functions are actually named | |
29228 | something starting with __ and the normal name is an alias. */ | |
29229 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29230 | choke me | |
29231 | #else | |
e6cc62c6 VS |
29232 | char (*f) () = pthread_attr_setschedparam; |
29233 | #endif | |
29234 | #ifdef __cplusplus | |
29235 | } | |
009fead0 VZ |
29236 | #endif |
29237 | ||
e6cc62c6 VS |
29238 | int |
29239 | main () | |
29240 | { | |
29241 | return f != pthread_attr_setschedparam; | |
29242 | ; | |
29243 | return 0; | |
29244 | } | |
29245 | _ACEOF | |
29246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29248 | (eval $ac_link) 2>&5 | |
29249 | ac_status=$? | |
29250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29251 | (exit $ac_status); } && | |
29252 | { ac_try='test -s conftest$ac_exeext' | |
29253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29254 | (eval $ac_try) 2>&5 | |
29255 | ac_status=$? | |
29256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29257 | (exit $ac_status); }; }; then | |
29258 | ac_cv_func_pthread_attr_setschedparam=yes | |
29259 | else | |
29260 | echo "$as_me: failed program was:" >&5 | |
29261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29262 | ||
29263 | ac_cv_func_pthread_attr_setschedparam=no | |
29264 | fi | |
29265 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29266 | fi | |
29267 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29268 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29269 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29270 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29271 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29272 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29274 | else | |
29275 | cat >conftest.$ac_ext <<_ACEOF | |
29276 | #line $LINENO "configure" | |
29277 | /* confdefs.h. */ | |
29278 | _ACEOF | |
29279 | cat confdefs.h >>conftest.$ac_ext | |
29280 | cat >>conftest.$ac_ext <<_ACEOF | |
29281 | /* end confdefs.h. */ | |
ef33c576 | 29282 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29283 | which can conflict with char sched_get_priority_max (); below. |
29284 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29285 | <limits.h> exists even on freestanding compilers. */ | |
29286 | #ifdef __STDC__ | |
29287 | # include <limits.h> | |
29288 | #else | |
29289 | # include <assert.h> | |
29290 | #endif | |
4f14bcd8 | 29291 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29292 | #ifdef __cplusplus |
29293 | extern "C" | |
29294 | { | |
29295 | #endif | |
4f14bcd8 | 29296 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29297 | builtin and then its argument prototype would still apply. */ |
29298 | char sched_get_priority_max (); | |
009fead0 VZ |
29299 | /* The GNU C library defines this for functions which it implements |
29300 | to always fail with ENOSYS. Some functions are actually named | |
29301 | something starting with __ and the normal name is an alias. */ | |
29302 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29303 | choke me | |
29304 | #else | |
e6cc62c6 VS |
29305 | char (*f) () = sched_get_priority_max; |
29306 | #endif | |
29307 | #ifdef __cplusplus | |
29308 | } | |
009fead0 VZ |
29309 | #endif |
29310 | ||
e6cc62c6 VS |
29311 | int |
29312 | main () | |
29313 | { | |
29314 | return f != sched_get_priority_max; | |
29315 | ; | |
29316 | return 0; | |
29317 | } | |
29318 | _ACEOF | |
29319 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29321 | (eval $ac_link) 2>&5 | |
29322 | ac_status=$? | |
29323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29324 | (exit $ac_status); } && | |
29325 | { ac_try='test -s conftest$ac_exeext' | |
29326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29327 | (eval $ac_try) 2>&5 | |
29328 | ac_status=$? | |
29329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29330 | (exit $ac_status); }; }; then | |
29331 | ac_cv_func_sched_get_priority_max=yes | |
29332 | else | |
29333 | echo "$as_me: failed program was:" >&5 | |
29334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29335 | ||
29336 | ac_cv_func_sched_get_priority_max=no | |
29337 | fi | |
29338 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29339 | fi | |
29340 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29341 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29342 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29343 | HAVE_PRIOR_FUNCS=1 |
29344 | else | |
e6cc62c6 VS |
29345 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29346 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29347 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29349 | else |
e6cc62c6 | 29350 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29351 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29352 | cat >conftest.$ac_ext <<_ACEOF |
29353 | #line $LINENO "configure" | |
29354 | /* confdefs.h. */ | |
29355 | _ACEOF | |
29356 | cat confdefs.h >>conftest.$ac_ext | |
29357 | cat >>conftest.$ac_ext <<_ACEOF | |
29358 | /* end confdefs.h. */ | |
29359 | ||
422107f9 | 29360 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29361 | #ifdef __cplusplus |
29362 | extern "C" | |
29363 | #endif | |
422107f9 | 29364 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29365 | builtin and then its argument prototype would still apply. */ |
29366 | char sched_get_priority_max (); | |
29367 | int | |
29368 | main () | |
29369 | { | |
29370 | sched_get_priority_max (); | |
29371 | ; | |
29372 | return 0; | |
29373 | } | |
29374 | _ACEOF | |
29375 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29377 | (eval $ac_link) 2>&5 | |
29378 | ac_status=$? | |
29379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29380 | (exit $ac_status); } && | |
29381 | { ac_try='test -s conftest$ac_exeext' | |
29382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29383 | (eval $ac_try) 2>&5 | |
29384 | ac_status=$? | |
29385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29386 | (exit $ac_status); }; }; then | |
29387 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29388 | else | |
29389 | echo "$as_me: failed program was:" >&5 | |
29390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29391 | ||
29392 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29393 | fi | |
29394 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29395 | LIBS=$ac_check_lib_save_LIBS | |
29396 | fi | |
29397 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29398 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29399 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 29400 | |
7274f1c7 RL |
29401 | HAVE_PRIOR_FUNCS=1 |
29402 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 29403 | |
4f14bcd8 | 29404 | fi |
463abc64 | 29405 | |
e6cc62c6 | 29406 | |
328a083c | 29407 | fi |
463abc64 | 29408 | |
e6cc62c6 | 29409 | |
7b4a847f | 29410 | fi |
579d8138 | 29411 | |
e6cc62c6 | 29412 | |
5c6fa7d2 | 29413 | fi |
52127426 | 29414 | |
8284b0c5 | 29415 | |
7274f1c7 | 29416 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 29417 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29418 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 29419 | _ACEOF |
463abc64 | 29420 | |
7274f1c7 | 29421 | else |
e6cc62c6 VS |
29422 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
29423 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 29424 | fi |
463abc64 | 29425 | |
e6cc62c6 VS |
29426 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
29427 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29428 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29430 | else | |
29431 | cat >conftest.$ac_ext <<_ACEOF | |
29432 | #line $LINENO "configure" | |
29433 | /* confdefs.h. */ | |
29434 | _ACEOF | |
29435 | cat confdefs.h >>conftest.$ac_ext | |
29436 | cat >>conftest.$ac_ext <<_ACEOF | |
29437 | /* end confdefs.h. */ | |
009fead0 | 29438 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29439 | which can conflict with char pthread_cancel (); below. |
29440 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29441 | <limits.h> exists even on freestanding compilers. */ | |
29442 | #ifdef __STDC__ | |
29443 | # include <limits.h> | |
29444 | #else | |
29445 | # include <assert.h> | |
29446 | #endif | |
422107f9 | 29447 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29448 | #ifdef __cplusplus |
29449 | extern "C" | |
29450 | { | |
29451 | #endif | |
422107f9 | 29452 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29453 | builtin and then its argument prototype would still apply. */ |
29454 | char pthread_cancel (); | |
009fead0 VZ |
29455 | /* The GNU C library defines this for functions which it implements |
29456 | to always fail with ENOSYS. Some functions are actually named | |
29457 | something starting with __ and the normal name is an alias. */ | |
29458 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29459 | choke me | |
29460 | #else | |
e6cc62c6 VS |
29461 | char (*f) () = pthread_cancel; |
29462 | #endif | |
29463 | #ifdef __cplusplus | |
29464 | } | |
009fead0 VZ |
29465 | #endif |
29466 | ||
e6cc62c6 VS |
29467 | int |
29468 | main () | |
29469 | { | |
29470 | return f != pthread_cancel; | |
29471 | ; | |
29472 | return 0; | |
29473 | } | |
29474 | _ACEOF | |
29475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29477 | (eval $ac_link) 2>&5 | |
29478 | ac_status=$? | |
29479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29480 | (exit $ac_status); } && | |
29481 | { ac_try='test -s conftest$ac_exeext' | |
29482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29483 | (eval $ac_try) 2>&5 | |
29484 | ac_status=$? | |
29485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29486 | (exit $ac_status); }; }; then | |
29487 | ac_cv_func_pthread_cancel=yes | |
29488 | else | |
29489 | echo "$as_me: failed program was:" >&5 | |
29490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29491 | ||
29492 | ac_cv_func_pthread_cancel=no | |
29493 | fi | |
29494 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29495 | fi | |
29496 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29497 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29498 | if test $ac_cv_func_pthread_cancel = yes; then | |
29499 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29500 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 29501 | _ACEOF |
4f14bcd8 | 29502 | |
698dcdb6 | 29503 | else |
e6cc62c6 VS |
29504 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
29505 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
29506 | fi |
29507 | ||
5c6fa7d2 | 29508 | |
e6cc62c6 VS |
29509 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
29510 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29511 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29513 | else |
e6cc62c6 VS |
29514 | |
29515 | cat >conftest.$ac_ext <<_ACEOF | |
29516 | #line $LINENO "configure" | |
29517 | /* confdefs.h. */ | |
29518 | _ACEOF | |
29519 | cat confdefs.h >>conftest.$ac_ext | |
29520 | cat >>conftest.$ac_ext <<_ACEOF | |
29521 | /* end confdefs.h. */ | |
4f14bcd8 | 29522 | #include <pthread.h> |
e6cc62c6 VS |
29523 | int |
29524 | main () | |
29525 | { | |
4f14bcd8 | 29526 | |
7274f1c7 RL |
29527 | pthread_cleanup_push(NULL, NULL); |
29528 | pthread_cleanup_pop(0); | |
e6cc62c6 VS |
29529 | |
29530 | ; | |
29531 | return 0; | |
29532 | } | |
29533 | _ACEOF | |
29534 | rm -f conftest.$ac_objext | |
29535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29536 | (eval $ac_compile) 2>&5 | |
29537 | ac_status=$? | |
29538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29539 | (exit $ac_status); } && | |
29540 | { ac_try='test -s conftest.$ac_objext' | |
29541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29542 | (eval $ac_try) 2>&5 | |
29543 | ac_status=$? | |
29544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29545 | (exit $ac_status); }; }; then | |
29546 | ||
7274f1c7 | 29547 | wx_cv_func_pthread_cleanup_push=yes |
e6cc62c6 | 29548 | |
4f14bcd8 | 29549 | else |
e6cc62c6 VS |
29550 | echo "$as_me: failed program was:" >&5 |
29551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29552 | ||
29553 | ||
7274f1c7 | 29554 | wx_cv_func_pthread_cleanup_push=no |
e6cc62c6 | 29555 | |
247f5006 | 29556 | fi |
e6cc62c6 | 29557 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29558 | |
e6cc62c6 VS |
29559 | fi |
29560 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29561 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 29562 | |
7274f1c7 | 29563 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
e6cc62c6 | 29564 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29565 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
e6cc62c6 | 29566 | _ACEOF |
c7a2bf27 | 29567 | |
7274f1c7 | 29568 | fi |
4f14bcd8 | 29569 | |
e6cc62c6 VS |
29570 | |
29571 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29572 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29573 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 29575 | else |
e6cc62c6 VS |
29576 | |
29577 | cat >conftest.$ac_ext <<_ACEOF | |
29578 | #line $LINENO "configure" | |
29579 | /* confdefs.h. */ | |
29580 | _ACEOF | |
29581 | cat confdefs.h >>conftest.$ac_ext | |
29582 | cat >>conftest.$ac_ext <<_ACEOF | |
29583 | /* end confdefs.h. */ | |
4f14bcd8 | 29584 | #include <pthread.h> |
e6cc62c6 VS |
29585 | int |
29586 | main () | |
29587 | { | |
4f14bcd8 | 29588 | |
7274f1c7 RL |
29589 | pthread_mutexattr_t attr; |
29590 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
29591 | |
29592 | ; | |
29593 | return 0; | |
29594 | } | |
29595 | _ACEOF | |
29596 | rm -f conftest.$ac_objext | |
29597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29598 | (eval $ac_compile) 2>&5 | |
29599 | ac_status=$? | |
29600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29601 | (exit $ac_status); } && | |
29602 | { ac_try='test -s conftest.$ac_objext' | |
29603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29604 | (eval $ac_try) 2>&5 | |
29605 | ac_status=$? | |
29606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29607 | (exit $ac_status); }; }; then | |
29608 | ||
7274f1c7 | 29609 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 29610 | |
3fed1840 | 29611 | else |
e6cc62c6 VS |
29612 | echo "$as_me: failed program was:" >&5 |
29613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29614 | ||
29615 | ||
7274f1c7 | 29616 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
29617 | |
29618 | ||
247f5006 | 29619 | fi |
e6cc62c6 | 29620 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29621 | |
e6cc62c6 VS |
29622 | fi |
29623 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
29624 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 29625 | |
7274f1c7 | 29626 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 29627 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29628 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 29629 | _ACEOF |
4f14bcd8 | 29630 | |
7274f1c7 | 29631 | else |
e6cc62c6 VS |
29632 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
29633 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
29634 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
29635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29636 | else | |
29637 | ||
29638 | cat >conftest.$ac_ext <<_ACEOF | |
29639 | #line $LINENO "configure" | |
29640 | /* confdefs.h. */ | |
29641 | _ACEOF | |
29642 | cat confdefs.h >>conftest.$ac_ext | |
29643 | cat >>conftest.$ac_ext <<_ACEOF | |
29644 | /* end confdefs.h. */ | |
4f14bcd8 | 29645 | #include <pthread.h> |
e6cc62c6 VS |
29646 | int |
29647 | main () | |
29648 | { | |
4f14bcd8 | 29649 | |
7274f1c7 | 29650 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
29651 | |
29652 | ; | |
29653 | return 0; | |
29654 | } | |
29655 | _ACEOF | |
29656 | rm -f conftest.$ac_objext | |
29657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29658 | (eval $ac_compile) 2>&5 | |
29659 | ac_status=$? | |
29660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29661 | (exit $ac_status); } && | |
29662 | { ac_try='test -s conftest.$ac_objext' | |
29663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29664 | (eval $ac_try) 2>&5 | |
29665 | ac_status=$? | |
29666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29667 | (exit $ac_status); }; }; then | |
29668 | ||
7274f1c7 | 29669 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 29670 | |
698dcdb6 | 29671 | else |
e6cc62c6 VS |
29672 | echo "$as_me: failed program was:" >&5 |
29673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29674 | ||
29675 | ||
7274f1c7 | 29676 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
29677 | |
29678 | ||
247f5006 | 29679 | fi |
e6cc62c6 | 29680 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29681 | |
e6cc62c6 VS |
29682 | fi |
29683 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
29684 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 29685 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 29686 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29687 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 29688 | _ACEOF |
3fed1840 | 29689 | |
7274f1c7 | 29690 | else |
e6cc62c6 VS |
29691 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
29692 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
29693 | fi |
29694 | fi | |
7274f1c7 | 29695 | fi |
3fed1840 | 29696 | |
a0b9e27f MB |
29697 | else |
29698 | if test "$wxUSE_THREADS" = "yes" ; then | |
29699 | case "${host}" in | |
29700 | *-*-mingw32* ) | |
e6cc62c6 VS |
29701 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
29702 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
29703 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
29704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 29705 | else |
e6cc62c6 | 29706 | |
ca8e52b3 VZ |
29707 | CFLAGS_OLD="$CFLAGS" |
29708 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 VS |
29709 | cat >conftest.$ac_ext <<_ACEOF |
29710 | #line $LINENO "configure" | |
29711 | /* confdefs.h. */ | |
29712 | _ACEOF | |
29713 | cat confdefs.h >>conftest.$ac_ext | |
29714 | cat >>conftest.$ac_ext <<_ACEOF | |
29715 | /* end confdefs.h. */ | |
29716 | ||
29717 | int | |
29718 | main () | |
29719 | { | |
ca8e52b3 | 29720 | |
e6cc62c6 VS |
29721 | ; |
29722 | return 0; | |
29723 | } | |
29724 | _ACEOF | |
29725 | rm -f conftest.$ac_objext | |
29726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29727 | (eval $ac_compile) 2>&5 | |
29728 | ac_status=$? | |
29729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29730 | (exit $ac_status); } && | |
29731 | { ac_try='test -s conftest.$ac_objext' | |
29732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29733 | (eval $ac_try) 2>&5 | |
29734 | ac_status=$? | |
29735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29736 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
29737 | wx_cv_cflags_mthread=yes |
29738 | else | |
e6cc62c6 VS |
29739 | echo "$as_me: failed program was:" >&5 |
29740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29741 | ||
29742 | wx_cv_cflags_mthread=no | |
29743 | ||
ca8e52b3 | 29744 | fi |
e6cc62c6 VS |
29745 | rm -f conftest.$ac_objext conftest.$ac_ext |
29746 | ||
ca8e52b3 | 29747 | |
e6cc62c6 VS |
29748 | fi |
29749 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
29750 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
29751 | |
29752 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
29753 | CXXFLAGS="$CXXFLAGS -mthreads" | |
29754 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
29755 | LDFLAGS="$LDFLAGS -mthreads" | |
29756 | else | |
29757 | CFLAGS="$CFLAGS_OLD" | |
29758 | fi | |
a0b9e27f MB |
29759 | ;; |
29760 | esac | |
29761 | fi | |
4f14bcd8 GD |
29762 | fi |
29763 | ||
29764 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 29765 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29766 | #define wxUSE_THREADS 1 |
e6cc62c6 | 29767 | _ACEOF |
7b6058cd | 29768 | |
8284b0c5 | 29769 | |
4f14bcd8 | 29770 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 29771 | else |
4f14bcd8 | 29772 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
29773 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
29774 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
29775 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
29776 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
29777 | echo "$as_me:$LINENO: result: yes" >&5 |
29778 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 29779 | else |
e6cc62c6 VS |
29780 | echo "$as_me:$LINENO: result: no" >&5 |
29781 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
29782 | fi |
29783 | fi | |
29784 | fi | |
29785 | ||
29786 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 29787 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29788 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 29789 | _ACEOF |
4f14bcd8 GD |
29790 | |
29791 | WXGTK12=1 | |
10f2d63a | 29792 | fi |
4f14bcd8 GD |
29793 | |
29794 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 29795 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29796 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 29797 | _ACEOF |
4f14bcd8 | 29798 | |
10f2d63a | 29799 | fi |
698dcdb6 | 29800 | |
4f14bcd8 | 29801 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 29802 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 29803 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 29804 | _ACEOF |
4f14bcd8 | 29805 | |
698dcdb6 | 29806 | fi |
10f2d63a | 29807 | |
4f14bcd8 GD |
29808 | WXDEBUG= |
29809 | ||
29810 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
29811 | WXDEBUG="-g" | |
29812 | wxUSE_OPTIMISE=no | |
698dcdb6 | 29813 | fi |
4f14bcd8 GD |
29814 | |
29815 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
29816 | wxUSE_DEBUG_INFO=yes | |
29817 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
29818 | fi |
29819 | ||
4f14bcd8 | 29820 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 29821 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29822 | #define WXDEBUG 1 |
e6cc62c6 | 29823 | _ACEOF |
4f14bcd8 GD |
29824 | |
29825 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 29826 | else |
4f14bcd8 GD |
29827 | if test "$wxUSE_GTK" = 1 ; then |
29828 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
29829 | fi | |
29830 | fi | |
29831 | ||
29832 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 29833 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29834 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 29835 | _ACEOF |
4f14bcd8 | 29836 | |
e6cc62c6 | 29837 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29838 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 29839 | _ACEOF |
4f14bcd8 | 29840 | |
e6cc62c6 | 29841 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29842 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 29843 | _ACEOF |
4f14bcd8 GD |
29844 | |
29845 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
29846 | fi | |
29847 | ||
29848 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 29849 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
29850 | fi |
29851 | ||
29852 | PROFILE= | |
29853 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 29854 | PROFILE=" -pg" |
10f2d63a VZ |
29855 | fi |
29856 | ||
009fead0 VZ |
29857 | CODE_GEN_FLAGS= |
29858 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 29859 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
29860 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
29861 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 29862 | fi |
4f14bcd8 GD |
29863 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
29864 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
29865 | fi | |
29866 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
29867 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
29868 | fi | |
4f14bcd8 GD |
29869 | if test "$USE_WIN32" = 1 ; then |
29870 | # I'm not even really sure what this was ever added to solve, | |
29871 | # but someone added it for mingw native builds, so I guess | |
29872 | # they had a reason, right?? | |
29873 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
29874 | fi | |
1d1b75ac | 29875 | |
2b5f62a0 | 29876 | case "${host}" in |
1d1b75ac VZ |
29877 | powerpc*-*-aix* ) |
29878 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
29879 | ;; | |
2b5f62a0 VZ |
29880 | *-hppa* ) |
29881 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
29882 | ;; | |
1d1b75ac | 29883 | esac |
4f14bcd8 GD |
29884 | fi |
29885 | ||
af7b5345 | 29886 | OPTIMISE= |
4f14bcd8 | 29887 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
29888 | if test "$GCC" = yes ; then |
29889 | OPTIMISE="-O0" | |
29890 | fi | |
4f14bcd8 GD |
29891 | else |
29892 | if test "$GCC" = yes ; then | |
29893 | OPTIMISE="-O2" | |
af7b5345 VZ |
29894 | |
29895 | case "${host}" in | |
4f14bcd8 GD |
29896 | i586-*-*|i686-*-* ) |
29897 | OPTIMISE="${OPTIMISE} " | |
29898 | ;; | |
29899 | esac | |
29900 | else | |
29901 | OPTIMISE="-O" | |
29902 | fi | |
29903 | fi | |
29904 | ||
8d90d2f2 | 29905 | |
4f14bcd8 | 29906 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then |
e6cc62c6 | 29907 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29908 | #define WXWIN_COMPATIBILITY_2 1 |
e6cc62c6 | 29909 | _ACEOF |
4f14bcd8 | 29910 | |
8284b0c5 | 29911 | |
4f14bcd8 GD |
29912 | WXWIN_COMPATIBILITY_2_2="yes" |
29913 | fi | |
29914 | ||
65d8ef1e | 29915 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 29916 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29917 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 29918 | _ACEOF |
4f14bcd8 | 29919 | |
8d90d2f2 VZ |
29920 | |
29921 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
29922 | fi |
29923 | ||
65d8ef1e | 29924 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 29925 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 29926 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 29927 | _ACEOF |
65d8ef1e VS |
29928 | |
29929 | fi | |
29930 | ||
8284b0c5 | 29931 | |
10f2d63a | 29932 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 29933 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29934 | #define wxUSE_GUI 1 |
e6cc62c6 | 29935 | _ACEOF |
10f2d63a | 29936 | |
8284b0c5 | 29937 | |
10f2d63a | 29938 | else |
e6cc62c6 | 29939 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29940 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 29941 | _ACEOF |
10f2d63a VZ |
29942 | |
29943 | fi | |
29944 | ||
8284b0c5 | 29945 | |
10f2d63a | 29946 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 29947 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29948 | #define wxUSE_UNIX 1 |
e6cc62c6 | 29949 | _ACEOF |
10f2d63a VZ |
29950 | |
29951 | fi | |
29952 | ||
8284b0c5 | 29953 | |
10f2d63a | 29954 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 29955 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29956 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 29957 | _ACEOF |
10f2d63a VZ |
29958 | |
29959 | fi | |
29960 | ||
1e6feb95 | 29961 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 29962 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29963 | #define wxUSE_TIMER 1 |
e6cc62c6 | 29964 | _ACEOF |
1e6feb95 VZ |
29965 | |
29966 | fi | |
29967 | ||
10f2d63a | 29968 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 29969 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29970 | #define wxUSE_WAVE 1 |
e6cc62c6 | 29971 | _ACEOF |
10f2d63a VZ |
29972 | |
29973 | fi | |
29974 | ||
1e6feb95 | 29975 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 29976 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29977 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 29978 | _ACEOF |
1e6feb95 VZ |
29979 | |
29980 | fi | |
29981 | ||
29982 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 29983 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29984 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 29985 | _ACEOF |
1e6feb95 VZ |
29986 | |
29987 | fi | |
29988 | ||
29989 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 29990 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29991 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 29992 | _ACEOF |
1e6feb95 VZ |
29993 | |
29994 | fi | |
29995 | ||
10f2d63a | 29996 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 29997 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29998 | #define wxUSE_FILE 1 |
e6cc62c6 | 29999 | _ACEOF |
10f2d63a VZ |
30000 | |
30001 | fi | |
30002 | ||
1e6feb95 | 30003 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 30004 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30005 | #define wxUSE_FFILE 1 |
e6cc62c6 | 30006 | _ACEOF |
1e6feb95 VZ |
30007 | |
30008 | fi | |
30009 | ||
24528b0c | 30010 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 30011 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 30012 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 30013 | _ACEOF |
24528b0c VS |
30014 | |
30015 | fi | |
30016 | ||
10f2d63a | 30017 | if test "$wxUSE_FS_INET" = "yes"; then |
e6cc62c6 | 30018 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30019 | #define wxUSE_FS_INET 1 |
e6cc62c6 | 30020 | _ACEOF |
10f2d63a VZ |
30021 | |
30022 | fi | |
30023 | ||
30024 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
e6cc62c6 | 30025 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30026 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 30027 | _ACEOF |
10f2d63a VZ |
30028 | |
30029 | fi | |
30030 | ||
30031 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 30032 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30033 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 30034 | _ACEOF |
10f2d63a VZ |
30035 | |
30036 | fi | |
30037 | ||
eb4efbdc | 30038 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 30039 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 30040 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 30041 | _ACEOF |
eb4efbdc VZ |
30042 | |
30043 | fi | |
30044 | ||
4f3c5f06 | 30045 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 30046 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 30047 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 30048 | _ACEOF |
4f3c5f06 VZ |
30049 | |
30050 | fi | |
30051 | ||
10f2d63a | 30052 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 30053 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30054 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 30055 | _ACEOF |
10f2d63a VZ |
30056 | |
30057 | fi | |
30058 | ||
30059 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 30060 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30061 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 30062 | _ACEOF |
10f2d63a VZ |
30063 | |
30064 | fi | |
30065 | ||
a3a584a7 | 30066 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 30067 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 30068 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 30069 | _ACEOF |
a3a584a7 VZ |
30070 | |
30071 | fi | |
30072 | ||
10f2d63a | 30073 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 30074 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
30075 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
30076 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 30077 | else |
e6cc62c6 | 30078 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30079 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 30080 | _ACEOF |
10f2d63a VZ |
30081 | |
30082 | fi | |
30083 | fi | |
30084 | ||
30085 | if test "$wxUSE_CONFIG" = "yes" ; then | |
30086 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
30087 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
30088 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 30089 | else |
e6cc62c6 | 30090 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30091 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 30092 | _ACEOF |
10f2d63a VZ |
30093 | |
30094 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
30095 | fi | |
30096 | fi | |
30097 | ||
30098 | if test "$wxUSE_INTL" = "yes" ; then | |
30099 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
30100 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
30101 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 30102 | else |
e6cc62c6 | 30103 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30104 | #define wxUSE_INTL 1 |
e6cc62c6 | 30105 | _ACEOF |
10f2d63a VZ |
30106 | |
30107 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 30108 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
30109 | fi |
30110 | fi | |
30111 | ||
30112 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 30113 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30114 | #define wxUSE_LOG 1 |
e6cc62c6 | 30115 | _ACEOF |
10f2d63a | 30116 | |
8284b0c5 | 30117 | |
d73be714 | 30118 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 30119 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30120 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 30121 | _ACEOF |
d73be714 VZ |
30122 | |
30123 | fi | |
30124 | ||
30125 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 30126 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30127 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 30128 | _ACEOF |
69d27ff7 MB |
30129 | |
30130 | fi | |
30131 | ||
30132 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 30133 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 30134 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 30135 | _ACEOF |
d73be714 VZ |
30136 | |
30137 | fi | |
10f2d63a VZ |
30138 | fi |
30139 | ||
30140 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 30141 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30142 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 30143 | _ACEOF |
10f2d63a VZ |
30144 | |
30145 | fi | |
30146 | ||
e8f65ba6 | 30147 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 30148 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 30149 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 30150 | _ACEOF |
e8f65ba6 RR |
30151 | |
30152 | fi | |
30153 | ||
10f2d63a | 30154 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 30155 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30156 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 30157 | _ACEOF |
10f2d63a | 30158 | |
70f7a477 | 30159 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
30160 | fi |
30161 | ||
30162 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 30163 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30164 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30165 | _ACEOF |
10f2d63a VZ |
30166 | |
30167 | fi | |
30168 | ||
5c6fa7d2 | 30169 | |
8284b0c5 | 30170 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30171 | |
30172 | for ac_func in strptime | |
83307f33 | 30173 | do |
e6cc62c6 VS |
30174 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30175 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30176 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30177 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30179 | else | |
30180 | cat >conftest.$ac_ext <<_ACEOF | |
30181 | #line $LINENO "configure" | |
30182 | /* confdefs.h. */ | |
30183 | _ACEOF | |
30184 | cat confdefs.h >>conftest.$ac_ext | |
30185 | cat >>conftest.$ac_ext <<_ACEOF | |
30186 | /* end confdefs.h. */ | |
83307f33 | 30187 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30188 | which can conflict with char $ac_func (); below. |
30189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30190 | <limits.h> exists even on freestanding compilers. */ | |
30191 | #ifdef __STDC__ | |
30192 | # include <limits.h> | |
30193 | #else | |
30194 | # include <assert.h> | |
30195 | #endif | |
83307f33 | 30196 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30197 | #ifdef __cplusplus |
30198 | extern "C" | |
30199 | { | |
30200 | #endif | |
83307f33 | 30201 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30202 | builtin and then its argument prototype would still apply. */ |
30203 | char $ac_func (); | |
83307f33 VZ |
30204 | /* The GNU C library defines this for functions which it implements |
30205 | to always fail with ENOSYS. Some functions are actually named | |
30206 | something starting with __ and the normal name is an alias. */ | |
30207 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30208 | choke me | |
30209 | #else | |
e6cc62c6 VS |
30210 | char (*f) () = $ac_func; |
30211 | #endif | |
30212 | #ifdef __cplusplus | |
30213 | } | |
83307f33 VZ |
30214 | #endif |
30215 | ||
e6cc62c6 VS |
30216 | int |
30217 | main () | |
30218 | { | |
30219 | return f != $ac_func; | |
30220 | ; | |
30221 | return 0; | |
30222 | } | |
30223 | _ACEOF | |
30224 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30226 | (eval $ac_link) 2>&5 | |
30227 | ac_status=$? | |
30228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30229 | (exit $ac_status); } && | |
30230 | { ac_try='test -s conftest$ac_exeext' | |
30231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30232 | (eval $ac_try) 2>&5 | |
30233 | ac_status=$? | |
30234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30235 | (exit $ac_status); }; }; then | |
30236 | eval "$as_ac_var=yes" | |
30237 | else | |
30238 | echo "$as_me: failed program was:" >&5 | |
30239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30240 | ||
30241 | eval "$as_ac_var=no" | |
30242 | fi | |
30243 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30244 | fi | |
30245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30246 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30247 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30248 | cat >>confdefs.h <<_ACEOF | |
30249 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30250 | _ACEOF | |
83307f33 | 30251 | |
83307f33 VZ |
30252 | fi |
30253 | done | |
30254 | ||
5c6fa7d2 | 30255 | |
e6cc62c6 VS |
30256 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30257 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30258 | if test "${wx_cv_var_timezone+set}" = set; then | |
30259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30260 | else |
e6cc62c6 VS |
30261 | |
30262 | cat >conftest.$ac_ext <<_ACEOF | |
30263 | #line $LINENO "configure" | |
30264 | /* confdefs.h. */ | |
30265 | _ACEOF | |
30266 | cat confdefs.h >>conftest.$ac_ext | |
30267 | cat >>conftest.$ac_ext <<_ACEOF | |
30268 | /* end confdefs.h. */ | |
360d6699 | 30269 | |
b4085ce6 | 30270 | #include <time.h> |
e6cc62c6 VS |
30271 | |
30272 | int | |
30273 | main () | |
30274 | { | |
360d6699 VZ |
30275 | |
30276 | int tz; | |
4f11a343 | 30277 | tz = timezone; |
e6cc62c6 VS |
30278 | |
30279 | ; | |
30280 | return 0; | |
30281 | } | |
30282 | _ACEOF | |
30283 | rm -f conftest.$ac_objext | |
30284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30285 | (eval $ac_compile) 2>&5 | |
30286 | ac_status=$? | |
30287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30288 | (exit $ac_status); } && | |
30289 | { ac_try='test -s conftest.$ac_objext' | |
30290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30291 | (eval $ac_try) 2>&5 | |
30292 | ac_status=$? | |
30293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30294 | (exit $ac_status); }; }; then | |
30295 | ||
4f11a343 | 30296 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30297 | |
360d6699 | 30298 | else |
e6cc62c6 VS |
30299 | echo "$as_me: failed program was:" >&5 |
30300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30301 | ||
30302 | ||
30303 | cat >conftest.$ac_ext <<_ACEOF | |
30304 | #line $LINENO "configure" | |
30305 | /* confdefs.h. */ | |
30306 | _ACEOF | |
30307 | cat confdefs.h >>conftest.$ac_ext | |
30308 | cat >>conftest.$ac_ext <<_ACEOF | |
30309 | /* end confdefs.h. */ | |
360d6699 | 30310 | |
b4085ce6 | 30311 | #include <time.h> |
e6cc62c6 VS |
30312 | |
30313 | int | |
30314 | main () | |
30315 | { | |
360d6699 VZ |
30316 | |
30317 | int tz; | |
30318 | tz = _timezone; | |
e6cc62c6 VS |
30319 | |
30320 | ; | |
30321 | return 0; | |
30322 | } | |
30323 | _ACEOF | |
30324 | rm -f conftest.$ac_objext | |
30325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30326 | (eval $ac_compile) 2>&5 | |
30327 | ac_status=$? | |
30328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30329 | (exit $ac_status); } && | |
30330 | { ac_try='test -s conftest.$ac_objext' | |
30331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30332 | (eval $ac_try) 2>&5 | |
30333 | ac_status=$? | |
30334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30335 | (exit $ac_status); }; }; then | |
30336 | ||
360d6699 | 30337 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30338 | |
5357c8e8 | 30339 | else |
e6cc62c6 VS |
30340 | echo "$as_me: failed program was:" >&5 |
30341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30342 | ||
30343 | ||
30344 | cat >conftest.$ac_ext <<_ACEOF | |
30345 | #line $LINENO "configure" | |
30346 | /* confdefs.h. */ | |
30347 | _ACEOF | |
30348 | cat confdefs.h >>conftest.$ac_ext | |
30349 | cat >>conftest.$ac_ext <<_ACEOF | |
30350 | /* end confdefs.h. */ | |
5357c8e8 | 30351 | |
b4085ce6 | 30352 | #include <time.h> |
e6cc62c6 VS |
30353 | |
30354 | int | |
30355 | main () | |
30356 | { | |
5357c8e8 VZ |
30357 | |
30358 | int tz; | |
4f11a343 | 30359 | tz = __timezone; |
e6cc62c6 VS |
30360 | |
30361 | ; | |
30362 | return 0; | |
30363 | } | |
30364 | _ACEOF | |
30365 | rm -f conftest.$ac_objext | |
30366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30367 | (eval $ac_compile) 2>&5 | |
30368 | ac_status=$? | |
30369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30370 | (exit $ac_status); } && | |
30371 | { ac_try='test -s conftest.$ac_objext' | |
30372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30373 | (eval $ac_try) 2>&5 | |
30374 | ac_status=$? | |
30375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30376 | (exit $ac_status); }; }; then | |
30377 | ||
4f11a343 | 30378 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30379 | |
360d6699 | 30380 | else |
e6cc62c6 VS |
30381 | echo "$as_me: failed program was:" >&5 |
30382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30383 | ||
30384 | ||
f9bc1684 | 30385 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30386 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30387 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30388 | fi |
e6cc62c6 VS |
30389 | |
30390 | ||
7b4a847f | 30391 | fi |
e6cc62c6 VS |
30392 | rm -f conftest.$ac_objext conftest.$ac_ext |
30393 | ||
30394 | ||
5c6fa7d2 | 30395 | fi |
e6cc62c6 VS |
30396 | rm -f conftest.$ac_objext conftest.$ac_ext |
30397 | ||
30398 | ||
247f5006 | 30399 | fi |
e6cc62c6 | 30400 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30401 | |
e6cc62c6 VS |
30402 | |
30403 | fi | |
30404 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30405 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30406 | |
f9bc1684 | 30407 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30408 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30409 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30410 | _ACEOF |
360d6699 | 30411 | |
f9bc1684 | 30412 | fi |
698dcdb6 | 30413 | |
e6cc62c6 VS |
30414 | |
30415 | for ac_func in localtime | |
afc31813 | 30416 | do |
e6cc62c6 VS |
30417 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30418 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30419 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30420 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30422 | else | |
30423 | cat >conftest.$ac_ext <<_ACEOF | |
30424 | #line $LINENO "configure" | |
30425 | /* confdefs.h. */ | |
30426 | _ACEOF | |
30427 | cat confdefs.h >>conftest.$ac_ext | |
30428 | cat >>conftest.$ac_ext <<_ACEOF | |
30429 | /* end confdefs.h. */ | |
afc31813 | 30430 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30431 | which can conflict with char $ac_func (); below. |
30432 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30433 | <limits.h> exists even on freestanding compilers. */ | |
30434 | #ifdef __STDC__ | |
30435 | # include <limits.h> | |
30436 | #else | |
30437 | # include <assert.h> | |
30438 | #endif | |
afc31813 | 30439 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30440 | #ifdef __cplusplus |
30441 | extern "C" | |
30442 | { | |
30443 | #endif | |
afc31813 | 30444 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30445 | builtin and then its argument prototype would still apply. */ |
30446 | char $ac_func (); | |
afc31813 VZ |
30447 | /* The GNU C library defines this for functions which it implements |
30448 | to always fail with ENOSYS. Some functions are actually named | |
30449 | something starting with __ and the normal name is an alias. */ | |
30450 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30451 | choke me | |
30452 | #else | |
e6cc62c6 VS |
30453 | char (*f) () = $ac_func; |
30454 | #endif | |
30455 | #ifdef __cplusplus | |
30456 | } | |
afc31813 VZ |
30457 | #endif |
30458 | ||
e6cc62c6 VS |
30459 | int |
30460 | main () | |
30461 | { | |
30462 | return f != $ac_func; | |
30463 | ; | |
30464 | return 0; | |
30465 | } | |
30466 | _ACEOF | |
30467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30469 | (eval $ac_link) 2>&5 | |
30470 | ac_status=$? | |
30471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30472 | (exit $ac_status); } && | |
30473 | { ac_try='test -s conftest$ac_exeext' | |
30474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30475 | (eval $ac_try) 2>&5 | |
30476 | ac_status=$? | |
30477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30478 | (exit $ac_status); }; }; then | |
30479 | eval "$as_ac_var=yes" | |
30480 | else | |
30481 | echo "$as_me: failed program was:" >&5 | |
30482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30483 | ||
30484 | eval "$as_ac_var=no" | |
30485 | fi | |
30486 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30487 | fi | |
30488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30489 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30490 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30491 | cat >>confdefs.h <<_ACEOF | |
30492 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30493 | _ACEOF | |
afc31813 | 30494 | |
afc31813 VZ |
30495 | fi |
30496 | done | |
30497 | ||
5c6fa7d2 | 30498 | |
8284b0c5 | 30499 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
30500 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
30501 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30502 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30504 | else |
e6cc62c6 VS |
30505 | |
30506 | cat >conftest.$ac_ext <<_ACEOF | |
30507 | #line $LINENO "configure" | |
30508 | /* confdefs.h. */ | |
30509 | _ACEOF | |
30510 | cat confdefs.h >>conftest.$ac_ext | |
30511 | cat >>conftest.$ac_ext <<_ACEOF | |
30512 | /* end confdefs.h. */ | |
0470b1e6 | 30513 | |
b4085ce6 | 30514 | #include <time.h> |
e6cc62c6 VS |
30515 | |
30516 | int | |
30517 | main () | |
30518 | { | |
0470b1e6 VZ |
30519 | |
30520 | struct tm tm; | |
30521 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
30522 | |
30523 | ; | |
30524 | return 0; | |
30525 | } | |
30526 | _ACEOF | |
30527 | rm -f conftest.$ac_objext | |
30528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30529 | (eval $ac_compile) 2>&5 | |
30530 | ac_status=$? | |
30531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30532 | (exit $ac_status); } && | |
30533 | { ac_try='test -s conftest.$ac_objext' | |
30534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30535 | (eval $ac_try) 2>&5 | |
30536 | ac_status=$? | |
30537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30538 | (exit $ac_status); }; }; then | |
30539 | ||
f03a98d8 | 30540 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 30541 | |
0470b1e6 | 30542 | else |
e6cc62c6 VS |
30543 | echo "$as_me: failed program was:" >&5 |
30544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30545 | ||
30546 | wx_cv_struct_tm_has_gmtoff=no | |
30547 | ||
247f5006 | 30548 | fi |
e6cc62c6 | 30549 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30550 | |
e6cc62c6 VS |
30551 | fi |
30552 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30553 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
30554 | fi |
30555 | ||
30556 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 30557 | cat >>confdefs.h <<\_ACEOF |
6232543b | 30558 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 30559 | _ACEOF |
0470b1e6 | 30560 | |
3fcdd07b VZ |
30561 | fi |
30562 | ||
e6cc62c6 VS |
30563 | |
30564 | ||
30565 | for ac_func in gettimeofday ftime | |
3fcdd07b | 30566 | do |
e6cc62c6 VS |
30567 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30568 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30569 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30570 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30572 | else | |
30573 | cat >conftest.$ac_ext <<_ACEOF | |
30574 | #line $LINENO "configure" | |
30575 | /* confdefs.h. */ | |
30576 | _ACEOF | |
30577 | cat confdefs.h >>conftest.$ac_ext | |
30578 | cat >>conftest.$ac_ext <<_ACEOF | |
30579 | /* end confdefs.h. */ | |
3fcdd07b | 30580 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30581 | which can conflict with char $ac_func (); below. |
30582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30583 | <limits.h> exists even on freestanding compilers. */ | |
30584 | #ifdef __STDC__ | |
30585 | # include <limits.h> | |
30586 | #else | |
30587 | # include <assert.h> | |
30588 | #endif | |
3fcdd07b | 30589 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30590 | #ifdef __cplusplus |
30591 | extern "C" | |
30592 | { | |
30593 | #endif | |
3fcdd07b | 30594 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30595 | builtin and then its argument prototype would still apply. */ |
30596 | char $ac_func (); | |
3fcdd07b VZ |
30597 | /* The GNU C library defines this for functions which it implements |
30598 | to always fail with ENOSYS. Some functions are actually named | |
30599 | something starting with __ and the normal name is an alias. */ | |
30600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30601 | choke me | |
30602 | #else | |
e6cc62c6 VS |
30603 | char (*f) () = $ac_func; |
30604 | #endif | |
30605 | #ifdef __cplusplus | |
30606 | } | |
3fcdd07b VZ |
30607 | #endif |
30608 | ||
e6cc62c6 VS |
30609 | int |
30610 | main () | |
30611 | { | |
30612 | return f != $ac_func; | |
30613 | ; | |
30614 | return 0; | |
30615 | } | |
30616 | _ACEOF | |
30617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30619 | (eval $ac_link) 2>&5 | |
30620 | ac_status=$? | |
30621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30622 | (exit $ac_status); } && | |
30623 | { ac_try='test -s conftest$ac_exeext' | |
30624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30625 | (eval $ac_try) 2>&5 | |
30626 | ac_status=$? | |
30627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30628 | (exit $ac_status); }; }; then | |
30629 | eval "$as_ac_var=yes" | |
30630 | else | |
30631 | echo "$as_me: failed program was:" >&5 | |
30632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30633 | ||
30634 | eval "$as_ac_var=no" | |
30635 | fi | |
30636 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30637 | fi | |
30638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30639 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30640 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30641 | cat >>confdefs.h <<_ACEOF | |
30642 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30643 | _ACEOF | |
3fcdd07b | 30644 | break |
3fcdd07b VZ |
30645 | fi |
30646 | done | |
30647 | ||
698dcdb6 | 30648 | |
8284b0c5 | 30649 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
30650 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
30651 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
30652 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
30653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30654 | else | |
30655 | ||
30656 | ||
30657 | ||
30658 | ac_ext=cc | |
5c6fa7d2 | 30659 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30660 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30661 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30662 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 30663 | |
8284b0c5 | 30664 | |
e6cc62c6 VS |
30665 | cat >conftest.$ac_ext <<_ACEOF |
30666 | #line $LINENO "configure" | |
30667 | /* confdefs.h. */ | |
30668 | _ACEOF | |
30669 | cat confdefs.h >>conftest.$ac_ext | |
30670 | cat >>conftest.$ac_ext <<_ACEOF | |
30671 | /* end confdefs.h. */ | |
afc31813 VZ |
30672 | |
30673 | #include <sys/time.h> | |
30674 | #include <unistd.h> | |
e6cc62c6 VS |
30675 | |
30676 | int | |
30677 | main () | |
30678 | { | |
afc31813 VZ |
30679 | |
30680 | struct timeval tv; | |
776862b4 | 30681 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
30682 | |
30683 | ; | |
30684 | return 0; | |
30685 | } | |
30686 | _ACEOF | |
30687 | rm -f conftest.$ac_objext | |
30688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30689 | (eval $ac_compile) 2>&5 | |
30690 | ac_status=$? | |
30691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30692 | (exit $ac_status); } && | |
30693 | { ac_try='test -s conftest.$ac_objext' | |
30694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30695 | (eval $ac_try) 2>&5 | |
30696 | ac_status=$? | |
30697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30698 | (exit $ac_status); }; }; then | |
afc31813 | 30699 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 30700 | else |
e6cc62c6 VS |
30701 | echo "$as_me: failed program was:" >&5 |
30702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30703 | ||
30704 | cat >conftest.$ac_ext <<_ACEOF | |
30705 | #line $LINENO "configure" | |
30706 | /* confdefs.h. */ | |
30707 | _ACEOF | |
30708 | cat confdefs.h >>conftest.$ac_ext | |
30709 | cat >>conftest.$ac_ext <<_ACEOF | |
30710 | /* end confdefs.h. */ | |
afc31813 VZ |
30711 | |
30712 | #include <sys/time.h> | |
30713 | #include <unistd.h> | |
e6cc62c6 VS |
30714 | |
30715 | int | |
30716 | main () | |
30717 | { | |
afc31813 VZ |
30718 | |
30719 | struct timeval tv; | |
30720 | gettimeofday(&tv); | |
e6cc62c6 VS |
30721 | |
30722 | ; | |
30723 | return 0; | |
30724 | } | |
30725 | _ACEOF | |
30726 | rm -f conftest.$ac_objext | |
30727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30728 | (eval $ac_compile) 2>&5 | |
30729 | ac_status=$? | |
30730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30731 | (exit $ac_status); } && | |
30732 | { ac_try='test -s conftest.$ac_objext' | |
30733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30734 | (eval $ac_try) 2>&5 | |
30735 | ac_status=$? | |
30736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30737 | (exit $ac_status); }; }; then | |
afc31813 | 30738 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 30739 | else |
e6cc62c6 VS |
30740 | echo "$as_me: failed program was:" >&5 |
30741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30742 | ||
30743 | ||
30744 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
30745 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 30746 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
30747 | |
30748 | ||
10f2d63a | 30749 | fi |
e6cc62c6 VS |
30750 | rm -f conftest.$ac_objext conftest.$ac_ext |
30751 | ||
10f2d63a | 30752 | fi |
e6cc62c6 | 30753 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 30754 | ac_ext=c |
10f2d63a | 30755 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
30756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 30759 | |
a0b9e27f | 30760 | |
e6cc62c6 VS |
30761 | fi |
30762 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
30763 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 30764 | |
afc31813 | 30765 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 30766 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 30767 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 30768 | _ACEOF |
afc31813 VZ |
30769 | |
30770 | fi | |
30771 | fi | |
30772 | ||
afc31813 VZ |
30773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
30774 | fi | |
30775 | ||
8284b0c5 | 30776 | |
52127426 | 30777 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 30778 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
30779 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
30780 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
30781 | wxUSE_SOCKETS="no" |
30782 | fi | |
0feee163 | 30783 | fi |
b089607b | 30784 | |
0feee163 VZ |
30785 | if test "$wxUSE_SOCKETS" = "yes"; then |
30786 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
30787 | echo "$as_me:$LINENO: checking for socket" >&5 |
30788 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
30789 | if test "${ac_cv_func_socket+set}" = set; then | |
30790 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30791 | else | |
30792 | cat >conftest.$ac_ext <<_ACEOF | |
30793 | #line $LINENO "configure" | |
30794 | /* confdefs.h. */ | |
30795 | _ACEOF | |
30796 | cat confdefs.h >>conftest.$ac_ext | |
30797 | cat >>conftest.$ac_ext <<_ACEOF | |
30798 | /* end confdefs.h. */ | |
c63c7106 | 30799 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30800 | which can conflict with char socket (); below. |
30801 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30802 | <limits.h> exists even on freestanding compilers. */ | |
30803 | #ifdef __STDC__ | |
30804 | # include <limits.h> | |
30805 | #else | |
30806 | # include <assert.h> | |
30807 | #endif | |
c63c7106 | 30808 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30809 | #ifdef __cplusplus |
30810 | extern "C" | |
30811 | { | |
30812 | #endif | |
c63c7106 | 30813 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30814 | builtin and then its argument prototype would still apply. */ |
30815 | char socket (); | |
c63c7106 VZ |
30816 | /* The GNU C library defines this for functions which it implements |
30817 | to always fail with ENOSYS. Some functions are actually named | |
30818 | something starting with __ and the normal name is an alias. */ | |
30819 | #if defined (__stub_socket) || defined (__stub___socket) | |
30820 | choke me | |
30821 | #else | |
e6cc62c6 VS |
30822 | char (*f) () = socket; |
30823 | #endif | |
30824 | #ifdef __cplusplus | |
30825 | } | |
c63c7106 VZ |
30826 | #endif |
30827 | ||
e6cc62c6 VS |
30828 | int |
30829 | main () | |
30830 | { | |
30831 | return f != socket; | |
30832 | ; | |
30833 | return 0; | |
30834 | } | |
30835 | _ACEOF | |
30836 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30838 | (eval $ac_link) 2>&5 | |
30839 | ac_status=$? | |
30840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30841 | (exit $ac_status); } && | |
30842 | { ac_try='test -s conftest$ac_exeext' | |
30843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30844 | (eval $ac_try) 2>&5 | |
30845 | ac_status=$? | |
30846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30847 | (exit $ac_status); }; }; then | |
30848 | ac_cv_func_socket=yes | |
30849 | else | |
30850 | echo "$as_me: failed program was:" >&5 | |
30851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30852 | ||
30853 | ac_cv_func_socket=no | |
30854 | fi | |
30855 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30856 | fi | |
30857 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
30858 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
30859 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
30860 | : |
30861 | else | |
e6cc62c6 VS |
30862 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
30863 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
30864 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
30865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 30866 | else |
e6cc62c6 | 30867 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 30868 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
30869 | cat >conftest.$ac_ext <<_ACEOF |
30870 | #line $LINENO "configure" | |
30871 | /* confdefs.h. */ | |
30872 | _ACEOF | |
30873 | cat confdefs.h >>conftest.$ac_ext | |
30874 | cat >>conftest.$ac_ext <<_ACEOF | |
30875 | /* end confdefs.h. */ | |
30876 | ||
c63c7106 | 30877 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30878 | #ifdef __cplusplus |
30879 | extern "C" | |
30880 | #endif | |
c63c7106 | 30881 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30882 | builtin and then its argument prototype would still apply. */ |
30883 | char socket (); | |
30884 | int | |
30885 | main () | |
30886 | { | |
30887 | socket (); | |
30888 | ; | |
30889 | return 0; | |
30890 | } | |
30891 | _ACEOF | |
30892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30894 | (eval $ac_link) 2>&5 | |
30895 | ac_status=$? | |
30896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30897 | (exit $ac_status); } && | |
30898 | { ac_try='test -s conftest$ac_exeext' | |
30899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30900 | (eval $ac_try) 2>&5 | |
30901 | ac_status=$? | |
30902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30903 | (exit $ac_status); }; }; then | |
30904 | ac_cv_lib_socket_socket=yes | |
30905 | else | |
30906 | echo "$as_me: failed program was:" >&5 | |
30907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30908 | ||
30909 | ac_cv_lib_socket_socket=no | |
30910 | fi | |
30911 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30912 | LIBS=$ac_check_lib_save_LIBS | |
30913 | fi | |
30914 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
30915 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
30916 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 VS |
30917 | if test "$INET_LINK" != " -lsocket"; then |
30918 | INET_LINK="$INET_LINK -lsocket" | |
30919 | fi | |
c63c7106 | 30920 | else |
afc31813 | 30921 | |
e6cc62c6 VS |
30922 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
30923 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
3a922bb4 | 30924 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
30925 | |
30926 | ||
6232543b | 30927 | fi |
b089607b | 30928 | |
e6cc62c6 | 30929 | |
1e487827 | 30930 | fi |
afc31813 | 30931 | |
3a922bb4 | 30932 | fi |
0feee163 | 30933 | fi |
51a9faba | 30934 | |
0feee163 VZ |
30935 | if test "$wxUSE_SOCKETS" = "yes" ; then |
30936 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
30937 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
30938 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
30939 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
30940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30941 | else |
e6cc62c6 VS |
30942 | |
30943 | cat >conftest.$ac_ext <<_ACEOF | |
30944 | #line $LINENO "configure" | |
30945 | /* confdefs.h. */ | |
30946 | _ACEOF | |
30947 | cat confdefs.h >>conftest.$ac_ext | |
30948 | cat >>conftest.$ac_ext <<_ACEOF | |
30949 | /* end confdefs.h. */ | |
51a9faba | 30950 | |
3a922bb4 RL |
30951 | #include <sys/types.h> |
30952 | #include <sys/socket.h> | |
e6cc62c6 VS |
30953 | |
30954 | int | |
30955 | main () | |
30956 | { | |
51a9faba | 30957 | |
3a922bb4 RL |
30958 | socklen_t len; |
30959 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
30960 | |
30961 | ; | |
30962 | return 0; | |
30963 | } | |
30964 | _ACEOF | |
30965 | rm -f conftest.$ac_objext | |
30966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30967 | (eval $ac_compile) 2>&5 | |
30968 | ac_status=$? | |
30969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30970 | (exit $ac_status); } && | |
30971 | { ac_try='test -s conftest.$ac_objext' | |
30972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30973 | (eval $ac_try) 2>&5 | |
30974 | ac_status=$? | |
30975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30976 | (exit $ac_status); }; }; then | |
51a9faba | 30977 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 30978 | else |
e6cc62c6 VS |
30979 | echo "$as_me: failed program was:" >&5 |
30980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30981 | ||
30982 | ||
9711d31e GD |
30983 | CFLAGS_OLD="$CFLAGS" |
30984 | if test "$GCC" = yes ; then | |
30985 | CFLAGS="$CFLAGS -Werror" | |
30986 | fi | |
30987 | ||
e6cc62c6 VS |
30988 | cat >conftest.$ac_ext <<_ACEOF |
30989 | #line $LINENO "configure" | |
30990 | /* confdefs.h. */ | |
30991 | _ACEOF | |
30992 | cat confdefs.h >>conftest.$ac_ext | |
30993 | cat >>conftest.$ac_ext <<_ACEOF | |
30994 | /* end confdefs.h. */ | |
51a9faba | 30995 | |
9711d31e GD |
30996 | #include <sys/types.h> |
30997 | #include <sys/socket.h> | |
e6cc62c6 VS |
30998 | |
30999 | int | |
31000 | main () | |
31001 | { | |
51a9faba | 31002 | |
9711d31e GD |
31003 | size_t len; |
31004 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31005 | |
31006 | ; | |
31007 | return 0; | |
31008 | } | |
31009 | _ACEOF | |
31010 | rm -f conftest.$ac_objext | |
31011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31012 | (eval $ac_compile) 2>&5 | |
31013 | ac_status=$? | |
31014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31015 | (exit $ac_status); } && | |
31016 | { ac_try='test -s conftest.$ac_objext' | |
31017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31018 | (eval $ac_try) 2>&5 | |
31019 | ac_status=$? | |
31020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31021 | (exit $ac_status); }; }; then | |
51a9faba | 31022 | wx_cv_type_getsockname3=size_t |
afc31813 | 31023 | else |
e6cc62c6 VS |
31024 | echo "$as_me: failed program was:" >&5 |
31025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31026 | ||
31027 | cat >conftest.$ac_ext <<_ACEOF | |
31028 | #line $LINENO "configure" | |
31029 | /* confdefs.h. */ | |
31030 | _ACEOF | |
31031 | cat confdefs.h >>conftest.$ac_ext | |
31032 | cat >>conftest.$ac_ext <<_ACEOF | |
31033 | /* end confdefs.h. */ | |
51a9faba | 31034 | |
9711d31e GD |
31035 | #include <sys/types.h> |
31036 | #include <sys/socket.h> | |
e6cc62c6 VS |
31037 | |
31038 | int | |
31039 | main () | |
31040 | { | |
51a9faba | 31041 | |
9711d31e GD |
31042 | int len; |
31043 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31044 | |
31045 | ; | |
31046 | return 0; | |
31047 | } | |
31048 | _ACEOF | |
31049 | rm -f conftest.$ac_objext | |
31050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31051 | (eval $ac_compile) 2>&5 | |
31052 | ac_status=$? | |
31053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31054 | (exit $ac_status); } && | |
31055 | { ac_try='test -s conftest.$ac_objext' | |
31056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31057 | (eval $ac_try) 2>&5 | |
31058 | ac_status=$? | |
31059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31060 | (exit $ac_status); }; }; then | |
51a9faba | 31061 | wx_cv_type_getsockname3=int |
afc31813 | 31062 | else |
e6cc62c6 VS |
31063 | echo "$as_me: failed program was:" >&5 |
31064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31065 | ||
31066 | wx_cv_type_getsockname3=unknown | |
31067 | ||
afc31813 | 31068 | fi |
e6cc62c6 VS |
31069 | rm -f conftest.$ac_objext conftest.$ac_ext |
31070 | ||
afc31813 | 31071 | fi |
e6cc62c6 | 31072 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
31073 | |
31074 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
31075 | |
31076 | ||
247f5006 | 31077 | fi |
e6cc62c6 | 31078 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 31079 | |
e6cc62c6 VS |
31080 | fi |
31081 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
31082 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 31083 | |
3a922bb4 RL |
31084 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
31085 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
31086 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
31087 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 31088 | else |
e6cc62c6 | 31089 | cat >>confdefs.h <<_ACEOF |
51a9faba | 31090 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 31091 | _ACEOF |
51a9faba | 31092 | |
3a922bb4 | 31093 | fi |
51a9faba VZ |
31094 | fi |
31095 | fi | |
afc31813 | 31096 | |
51a9faba | 31097 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 31098 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31099 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 31100 | _ACEOF |
afc31813 | 31101 | |
70f7a477 | 31102 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
31103 | fi |
31104 | ||
8284b0c5 | 31105 | |
dc3d889d VZ |
31106 | if test "$wxUSE_GUI" = "yes"; then |
31107 | ||
ac0c4cc3 | 31108 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
31109 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
31110 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
31111 | wxUSE_JOYSTICK=no |
31112 | fi | |
31113 | if test "$TOOLKIT" = "MOTIF"; then | |
e6cc62c6 VS |
31114 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5 |
31115 | echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;} | |
156b2523 | 31116 | wxUSE_JOYSTICK=no |
f79bd02d JS |
31117 | fi |
31118 | if test "$TOOLKIT" = "X11"; then | |
e6cc62c6 VS |
31119 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5 |
31120 | echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;} | |
f79bd02d | 31121 | wxUSE_JOYSTICK=no |
156b2523 GD |
31122 | fi |
31123 | ||
3a922bb4 RL |
31124 | if test "$TOOLKIT" != "MSW"; then |
31125 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
e6cc62c6 VS |
31126 | |
31127 | for ac_header in linux/joystick.h | |
10f2d63a | 31128 | do |
e6cc62c6 VS |
31129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31135 | fi | |
31136 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31137 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31138 | else | |
31139 | # Is the header compilable? | |
31140 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31141 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31142 | cat >conftest.$ac_ext <<_ACEOF | |
31143 | #line $LINENO "configure" | |
31144 | /* confdefs.h. */ | |
31145 | _ACEOF | |
31146 | cat confdefs.h >>conftest.$ac_ext | |
31147 | cat >>conftest.$ac_ext <<_ACEOF | |
31148 | /* end confdefs.h. */ | |
31149 | $ac_includes_default | |
31150 | #include <$ac_header> | |
31151 | _ACEOF | |
31152 | rm -f conftest.$ac_objext | |
31153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31154 | (eval $ac_compile) 2>&5 | |
31155 | ac_status=$? | |
31156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31157 | (exit $ac_status); } && | |
31158 | { ac_try='test -s conftest.$ac_objext' | |
31159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31160 | (eval $ac_try) 2>&5 | |
31161 | ac_status=$? | |
31162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31163 | (exit $ac_status); }; }; then | |
31164 | ac_header_compiler=yes | |
31165 | else | |
31166 | echo "$as_me: failed program was:" >&5 | |
31167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31168 | ||
31169 | ac_header_compiler=no | |
31170 | fi | |
31171 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31172 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31173 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31174 | ||
31175 | # Is the header present? | |
31176 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31177 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31178 | cat >conftest.$ac_ext <<_ACEOF | |
31179 | #line $LINENO "configure" | |
31180 | /* confdefs.h. */ | |
31181 | _ACEOF | |
31182 | cat confdefs.h >>conftest.$ac_ext | |
31183 | cat >>conftest.$ac_ext <<_ACEOF | |
31184 | /* end confdefs.h. */ | |
31185 | #include <$ac_header> | |
31186 | _ACEOF | |
31187 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31188 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31189 | ac_status=$? | |
31190 | grep -v '^ *+' conftest.er1 >conftest.err | |
31191 | rm -f conftest.er1 | |
31192 | cat conftest.err >&5 | |
31193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31194 | (exit $ac_status); } >/dev/null; then | |
31195 | if test -s conftest.err; then | |
31196 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31197 | else | |
31198 | ac_cpp_err= | |
31199 | fi | |
31200 | else | |
31201 | ac_cpp_err=yes | |
31202 | fi | |
31203 | if test -z "$ac_cpp_err"; then | |
31204 | ac_header_preproc=yes | |
31205 | else | |
31206 | echo "$as_me: failed program was:" >&5 | |
31207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31208 | ||
31209 | ac_header_preproc=no | |
31210 | fi | |
31211 | rm -f conftest.err conftest.$ac_ext | |
31212 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31213 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31214 | ||
31215 | # So? What about this header? | |
31216 | case $ac_header_compiler:$ac_header_preproc in | |
31217 | yes:no ) | |
31218 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31219 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31221 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31222 | ( | |
31223 | cat <<\_ASBOX | |
31224 | ## ------------------------------------ ## | |
31225 | ## Report this to bug-autoconf@gnu.org. ## | |
31226 | ## ------------------------------------ ## | |
31227 | _ASBOX | |
31228 | ) | | |
31229 | sed "s/^/$as_me: WARNING: /" >&2 | |
31230 | ;; | |
31231 | no:yes ) | |
31232 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31233 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31234 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31235 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31238 | ( | |
31239 | cat <<\_ASBOX | |
31240 | ## ------------------------------------ ## | |
31241 | ## Report this to bug-autoconf@gnu.org. ## | |
31242 | ## ------------------------------------ ## | |
31243 | _ASBOX | |
31244 | ) | | |
31245 | sed "s/^/$as_me: WARNING: /" >&2 | |
31246 | ;; | |
31247 | esac | |
31248 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31249 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31250 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31252 | else | |
31253 | eval "$as_ac_Header=$ac_header_preproc" | |
247f5006 | 31254 | fi |
e6cc62c6 VS |
31255 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31256 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31257 | ||
10f2d63a | 31258 | fi |
e6cc62c6 VS |
31259 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31260 | cat >>confdefs.h <<_ACEOF | |
31261 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31262 | _ACEOF | |
31263 | ||
247f5006 | 31264 | fi |
e6cc62c6 | 31265 | |
10f2d63a VZ |
31266 | done |
31267 | ||
3a922bb4 RL |
31268 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31269 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31270 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31271 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31272 | fi |
31273 | fi | |
31274 | fi | |
b089607b | 31275 | |
3a922bb4 | 31276 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31277 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31278 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31279 | _ACEOF |
10f2d63a | 31280 | |
3a922bb4 RL |
31281 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31282 | fi | |
dc3d889d VZ |
31283 | fi |
31284 | ||
8284b0c5 | 31285 | |
b089607b VZ |
31286 | if test "$TOOLKIT" != "MSW"; then |
31287 | ||
3a922bb4 RL |
31288 | HAVE_DL_FUNCS=0 |
31289 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31290 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31291 | if test "$USE_DARWIN" = 1; then |
31292 | HAVE_DL_FUNCS=1 | |
31293 | else | |
e6cc62c6 VS |
31294 | |
31295 | for ac_func in dlopen | |
10f2d63a | 31296 | do |
e6cc62c6 VS |
31297 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31298 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31299 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31300 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31302 | else | |
31303 | cat >conftest.$ac_ext <<_ACEOF | |
31304 | #line $LINENO "configure" | |
31305 | /* confdefs.h. */ | |
31306 | _ACEOF | |
31307 | cat confdefs.h >>conftest.$ac_ext | |
31308 | cat >>conftest.$ac_ext <<_ACEOF | |
31309 | /* end confdefs.h. */ | |
10f2d63a | 31310 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31311 | which can conflict with char $ac_func (); below. |
31312 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31313 | <limits.h> exists even on freestanding compilers. */ | |
31314 | #ifdef __STDC__ | |
31315 | # include <limits.h> | |
31316 | #else | |
31317 | # include <assert.h> | |
31318 | #endif | |
10f2d63a | 31319 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31320 | #ifdef __cplusplus |
31321 | extern "C" | |
31322 | { | |
31323 | #endif | |
10f2d63a | 31324 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31325 | builtin and then its argument prototype would still apply. */ |
31326 | char $ac_func (); | |
10f2d63a VZ |
31327 | /* The GNU C library defines this for functions which it implements |
31328 | to always fail with ENOSYS. Some functions are actually named | |
31329 | something starting with __ and the normal name is an alias. */ | |
31330 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31331 | choke me | |
31332 | #else | |
e6cc62c6 VS |
31333 | char (*f) () = $ac_func; |
31334 | #endif | |
31335 | #ifdef __cplusplus | |
31336 | } | |
10f2d63a VZ |
31337 | #endif |
31338 | ||
e6cc62c6 VS |
31339 | int |
31340 | main () | |
31341 | { | |
31342 | return f != $ac_func; | |
31343 | ; | |
31344 | return 0; | |
31345 | } | |
31346 | _ACEOF | |
31347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31349 | (eval $ac_link) 2>&5 | |
31350 | ac_status=$? | |
31351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31352 | (exit $ac_status); } && | |
31353 | { ac_try='test -s conftest$ac_exeext' | |
31354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31355 | (eval $ac_try) 2>&5 | |
31356 | ac_status=$? | |
31357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31358 | (exit $ac_status); }; }; then | |
31359 | eval "$as_ac_var=yes" | |
31360 | else | |
31361 | echo "$as_me: failed program was:" >&5 | |
31362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31363 | ||
31364 | eval "$as_ac_var=no" | |
31365 | fi | |
31366 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31367 | fi | |
31368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31369 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31370 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31371 | cat >>confdefs.h <<_ACEOF | |
31372 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31373 | _ACEOF | |
31374 | ||
31375 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31376 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31377 | _ACEOF |
10f2d63a | 31378 | |
3a922bb4 | 31379 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31380 | |
10f2d63a | 31381 | else |
e6cc62c6 VS |
31382 | |
31383 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31384 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31385 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31387 | else |
e6cc62c6 | 31388 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 31389 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31390 | cat >conftest.$ac_ext <<_ACEOF |
31391 | #line $LINENO "configure" | |
31392 | /* confdefs.h. */ | |
31393 | _ACEOF | |
31394 | cat confdefs.h >>conftest.$ac_ext | |
31395 | cat >>conftest.$ac_ext <<_ACEOF | |
31396 | /* end confdefs.h. */ | |
31397 | ||
10f2d63a | 31398 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31399 | #ifdef __cplusplus |
31400 | extern "C" | |
31401 | #endif | |
10f2d63a | 31402 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31403 | builtin and then its argument prototype would still apply. */ |
31404 | char dlopen (); | |
31405 | int | |
31406 | main () | |
31407 | { | |
31408 | dlopen (); | |
31409 | ; | |
31410 | return 0; | |
31411 | } | |
31412 | _ACEOF | |
31413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31415 | (eval $ac_link) 2>&5 | |
31416 | ac_status=$? | |
31417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31418 | (exit $ac_status); } && | |
31419 | { ac_try='test -s conftest$ac_exeext' | |
31420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31421 | (eval $ac_try) 2>&5 | |
31422 | ac_status=$? | |
31423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31424 | (exit $ac_status); }; }; then | |
31425 | ac_cv_lib_dl_dlopen=yes | |
31426 | else | |
31427 | echo "$as_me: failed program was:" >&5 | |
31428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31429 | ||
31430 | ac_cv_lib_dl_dlopen=no | |
31431 | fi | |
31432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31433 | LIBS=$ac_check_lib_save_LIBS | |
31434 | fi | |
31435 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31436 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31437 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31438 | ||
31439 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31440 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31441 | _ACEOF |
10f2d63a | 31442 | |
3a922bb4 | 31443 | HAVE_DL_FUNCS=1 |
3d63bc3a | 31444 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 31445 | |
10f2d63a | 31446 | else |
10f2d63a | 31447 | |
e6cc62c6 VS |
31448 | |
31449 | for ac_func in shl_load | |
10f2d63a | 31450 | do |
e6cc62c6 VS |
31451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31452 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31454 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31455 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31456 | else | |
31457 | cat >conftest.$ac_ext <<_ACEOF | |
31458 | #line $LINENO "configure" | |
31459 | /* confdefs.h. */ | |
31460 | _ACEOF | |
31461 | cat confdefs.h >>conftest.$ac_ext | |
31462 | cat >>conftest.$ac_ext <<_ACEOF | |
31463 | /* end confdefs.h. */ | |
10f2d63a | 31464 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31465 | which can conflict with char $ac_func (); below. |
31466 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31467 | <limits.h> exists even on freestanding compilers. */ | |
31468 | #ifdef __STDC__ | |
31469 | # include <limits.h> | |
31470 | #else | |
31471 | # include <assert.h> | |
31472 | #endif | |
10f2d63a | 31473 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31474 | #ifdef __cplusplus |
31475 | extern "C" | |
31476 | { | |
31477 | #endif | |
10f2d63a | 31478 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31479 | builtin and then its argument prototype would still apply. */ |
31480 | char $ac_func (); | |
10f2d63a VZ |
31481 | /* The GNU C library defines this for functions which it implements |
31482 | to always fail with ENOSYS. Some functions are actually named | |
31483 | something starting with __ and the normal name is an alias. */ | |
31484 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31485 | choke me | |
31486 | #else | |
e6cc62c6 VS |
31487 | char (*f) () = $ac_func; |
31488 | #endif | |
31489 | #ifdef __cplusplus | |
31490 | } | |
10f2d63a VZ |
31491 | #endif |
31492 | ||
e6cc62c6 VS |
31493 | int |
31494 | main () | |
31495 | { | |
31496 | return f != $ac_func; | |
31497 | ; | |
31498 | return 0; | |
31499 | } | |
31500 | _ACEOF | |
31501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31503 | (eval $ac_link) 2>&5 | |
31504 | ac_status=$? | |
31505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31506 | (exit $ac_status); } && | |
31507 | { ac_try='test -s conftest$ac_exeext' | |
31508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31509 | (eval $ac_try) 2>&5 | |
31510 | ac_status=$? | |
31511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31512 | (exit $ac_status); }; }; then | |
31513 | eval "$as_ac_var=yes" | |
31514 | else | |
31515 | echo "$as_me: failed program was:" >&5 | |
31516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31517 | ||
31518 | eval "$as_ac_var=no" | |
31519 | fi | |
31520 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31521 | fi | |
31522 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31523 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31524 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31525 | cat >>confdefs.h <<_ACEOF | |
31526 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31527 | _ACEOF | |
31528 | ||
31529 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31530 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 31531 | _ACEOF |
10f2d63a | 31532 | |
3a922bb4 | 31533 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 31534 | |
10f2d63a | 31535 | else |
e6cc62c6 VS |
31536 | |
31537 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31538 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31539 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31541 | else |
e6cc62c6 | 31542 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31543 | LIBS="-lshl_load $LIBS" |
e6cc62c6 VS |
31544 | cat >conftest.$ac_ext <<_ACEOF |
31545 | #line $LINENO "configure" | |
31546 | /* confdefs.h. */ | |
31547 | _ACEOF | |
31548 | cat confdefs.h >>conftest.$ac_ext | |
31549 | cat >>conftest.$ac_ext <<_ACEOF | |
31550 | /* end confdefs.h. */ | |
31551 | ||
8284b0c5 | 31552 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31553 | #ifdef __cplusplus |
31554 | extern "C" | |
31555 | #endif | |
f6bcfd97 | 31556 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31557 | builtin and then its argument prototype would still apply. */ |
31558 | char dld (); | |
31559 | int | |
31560 | main () | |
31561 | { | |
31562 | dld (); | |
31563 | ; | |
31564 | return 0; | |
31565 | } | |
31566 | _ACEOF | |
31567 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31568 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31569 | (eval $ac_link) 2>&5 | |
31570 | ac_status=$? | |
31571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31572 | (exit $ac_status); } && | |
31573 | { ac_try='test -s conftest$ac_exeext' | |
31574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31575 | (eval $ac_try) 2>&5 | |
31576 | ac_status=$? | |
31577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31578 | (exit $ac_status); }; }; then | |
31579 | ac_cv_lib_shl_load_dld=yes | |
31580 | else | |
31581 | echo "$as_me: failed program was:" >&5 | |
31582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31583 | ||
31584 | ac_cv_lib_shl_load_dld=no | |
31585 | fi | |
31586 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31587 | LIBS=$ac_check_lib_save_LIBS | |
31588 | fi | |
31589 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31590 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31591 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 31592 | |
3a922bb4 | 31593 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 31594 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 31595 | |
f6bcfd97 BP |
31596 | fi |
31597 | ||
e6cc62c6 | 31598 | |
10f2d63a VZ |
31599 | fi |
31600 | done | |
31601 | ||
e6cc62c6 | 31602 | |
10f2d63a VZ |
31603 | fi |
31604 | ||
e6cc62c6 | 31605 | |
10f2d63a VZ |
31606 | fi |
31607 | done | |
31608 | ||
5c6fa7d2 | 31609 | |
8284b0c5 | 31610 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
31611 | |
31612 | for ac_func in dlerror | |
f6bcfd97 | 31613 | do |
e6cc62c6 VS |
31614 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31615 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31616 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31617 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31619 | else | |
31620 | cat >conftest.$ac_ext <<_ACEOF | |
31621 | #line $LINENO "configure" | |
31622 | /* confdefs.h. */ | |
31623 | _ACEOF | |
31624 | cat confdefs.h >>conftest.$ac_ext | |
31625 | cat >>conftest.$ac_ext <<_ACEOF | |
31626 | /* end confdefs.h. */ | |
f6bcfd97 | 31627 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31628 | which can conflict with char $ac_func (); below. |
31629 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31630 | <limits.h> exists even on freestanding compilers. */ | |
31631 | #ifdef __STDC__ | |
31632 | # include <limits.h> | |
31633 | #else | |
31634 | # include <assert.h> | |
31635 | #endif | |
f6bcfd97 | 31636 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31637 | #ifdef __cplusplus |
31638 | extern "C" | |
31639 | { | |
31640 | #endif | |
f6bcfd97 | 31641 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31642 | builtin and then its argument prototype would still apply. */ |
31643 | char $ac_func (); | |
f6bcfd97 BP |
31644 | /* The GNU C library defines this for functions which it implements |
31645 | to always fail with ENOSYS. Some functions are actually named | |
31646 | something starting with __ and the normal name is an alias. */ | |
31647 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31648 | choke me | |
31649 | #else | |
e6cc62c6 VS |
31650 | char (*f) () = $ac_func; |
31651 | #endif | |
31652 | #ifdef __cplusplus | |
31653 | } | |
f6bcfd97 BP |
31654 | #endif |
31655 | ||
e6cc62c6 VS |
31656 | int |
31657 | main () | |
31658 | { | |
31659 | return f != $ac_func; | |
31660 | ; | |
31661 | return 0; | |
31662 | } | |
31663 | _ACEOF | |
31664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31666 | (eval $ac_link) 2>&5 | |
31667 | ac_status=$? | |
31668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31669 | (exit $ac_status); } && | |
31670 | { ac_try='test -s conftest$ac_exeext' | |
31671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31672 | (eval $ac_try) 2>&5 | |
31673 | ac_status=$? | |
31674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31675 | (exit $ac_status); }; }; then | |
31676 | eval "$as_ac_var=yes" | |
31677 | else | |
31678 | echo "$as_me: failed program was:" >&5 | |
31679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31680 | ||
31681 | eval "$as_ac_var=no" | |
31682 | fi | |
31683 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31684 | fi | |
31685 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31686 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31687 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31688 | cat >>confdefs.h <<_ACEOF | |
31689 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31690 | _ACEOF | |
31691 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31692 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31693 | _ACEOF |
f6bcfd97 BP |
31694 | |
31695 | else | |
e6cc62c6 VS |
31696 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
31697 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
31698 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
31699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31700 | else |
e6cc62c6 | 31701 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31702 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31703 | cat >conftest.$ac_ext <<_ACEOF |
31704 | #line $LINENO "configure" | |
31705 | /* confdefs.h. */ | |
31706 | _ACEOF | |
31707 | cat confdefs.h >>conftest.$ac_ext | |
31708 | cat >>conftest.$ac_ext <<_ACEOF | |
31709 | /* end confdefs.h. */ | |
31710 | ||
f6bcfd97 | 31711 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31712 | #ifdef __cplusplus |
31713 | extern "C" | |
31714 | #endif | |
f6bcfd97 | 31715 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31716 | builtin and then its argument prototype would still apply. */ |
31717 | char dlerror (); | |
31718 | int | |
31719 | main () | |
31720 | { | |
31721 | dlerror (); | |
31722 | ; | |
31723 | return 0; | |
31724 | } | |
31725 | _ACEOF | |
31726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31728 | (eval $ac_link) 2>&5 | |
31729 | ac_status=$? | |
31730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31731 | (exit $ac_status); } && | |
31732 | { ac_try='test -s conftest$ac_exeext' | |
31733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31734 | (eval $ac_try) 2>&5 | |
31735 | ac_status=$? | |
31736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31737 | (exit $ac_status); }; }; then | |
31738 | ac_cv_lib_dl_dlerror=yes | |
31739 | else | |
31740 | echo "$as_me: failed program was:" >&5 | |
31741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31742 | ||
31743 | ac_cv_lib_dl_dlerror=no | |
31744 | fi | |
31745 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31746 | LIBS=$ac_check_lib_save_LIBS | |
31747 | fi | |
31748 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
31749 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
31750 | if test $ac_cv_lib_dl_dlerror = yes; then | |
31751 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 31752 | #define HAVE_DLERROR 1 |
e6cc62c6 | 31753 | _ACEOF |
f6bcfd97 | 31754 | |
f6bcfd97 BP |
31755 | fi |
31756 | ||
31757 | fi | |
31758 | done | |
31759 | ||
3a922bb4 RL |
31760 | fi |
31761 | fi | |
f6bcfd97 | 31762 | |
3a922bb4 RL |
31763 | if test "$HAVE_DL_FUNCS" = 0; then |
31764 | if test "$HAVE_SHL_FUNCS" = 0; then | |
31765 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
31766 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
31767 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 31768 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
31769 | wxUSE_DYNLIB_CLASS=no |
31770 | else | |
e6cc62c6 VS |
31771 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
31772 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
31773 | fi |
31774 | fi | |
10f2d63a VZ |
31775 | fi |
31776 | fi | |
31777 | fi | |
31778 | ||
0b9ab0bd | 31779 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 31780 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 31781 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 31782 | _ACEOF |
0b9ab0bd RL |
31783 | |
31784 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 31785 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31786 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 31787 | _ACEOF |
10f2d63a VZ |
31788 | |
31789 | fi | |
31790 | ||
8284b0c5 | 31791 | |
1e6feb95 | 31792 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 31793 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 31794 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 31795 | _ACEOF |
1e6feb95 VZ |
31796 | |
31797 | fi | |
31798 | ||
10f2d63a | 31799 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 31800 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31801 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 31802 | _ACEOF |
10f2d63a | 31803 | |
8284b0c5 | 31804 | |
bbc3925a VS |
31805 | if test "$wxUSE_MSW" != 1; then |
31806 | wxUSE_UNICODE_MSLU=no | |
31807 | fi | |
a72a4bfa VS |
31808 | |
31809 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
e6cc62c6 VS |
31810 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
31811 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
31812 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
31813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 31814 | else |
e6cc62c6 | 31815 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 31816 | LIBS="-lunicows $LIBS" |
e6cc62c6 VS |
31817 | cat >conftest.$ac_ext <<_ACEOF |
31818 | #line $LINENO "configure" | |
31819 | /* confdefs.h. */ | |
31820 | _ACEOF | |
31821 | cat confdefs.h >>conftest.$ac_ext | |
31822 | cat >>conftest.$ac_ext <<_ACEOF | |
31823 | /* end confdefs.h. */ | |
a72a4bfa | 31824 | |
8284b0c5 | 31825 | |
e6cc62c6 VS |
31826 | int |
31827 | main () | |
31828 | { | |
31829 | main (); | |
31830 | ; | |
31831 | return 0; | |
31832 | } | |
31833 | _ACEOF | |
31834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31836 | (eval $ac_link) 2>&5 | |
31837 | ac_status=$? | |
31838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31839 | (exit $ac_status); } && | |
31840 | { ac_try='test -s conftest$ac_exeext' | |
31841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31842 | (eval $ac_try) 2>&5 | |
31843 | ac_status=$? | |
31844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31845 | (exit $ac_status); }; }; then | |
31846 | ac_cv_lib_unicows_main=yes | |
31847 | else | |
31848 | echo "$as_me: failed program was:" >&5 | |
31849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31850 | ||
31851 | ac_cv_lib_unicows_main=no | |
31852 | fi | |
31853 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31854 | LIBS=$ac_check_lib_save_LIBS | |
31855 | fi | |
31856 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
31857 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
31858 | if test $ac_cv_lib_unicows_main = yes; then | |
31859 | ||
31860 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 31861 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
31862 | _ACEOF |
31863 | ||
a72a4bfa | 31864 | |
a72a4bfa | 31865 | else |
a72a4bfa | 31866 | |
e6cc62c6 VS |
31867 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
31868 | Applications will only run on Windows NT/2000/XP!" >&5 | |
31869 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
31870 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 31871 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 31872 | |
a72a4bfa VS |
31873 | fi |
31874 | ||
31875 | fi | |
10f2d63a VZ |
31876 | fi |
31877 | ||
10f2d63a | 31878 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 31879 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31880 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 31881 | _ACEOF |
10f2d63a VZ |
31882 | |
31883 | fi | |
31884 | ||
8284b0c5 | 31885 | |
10f2d63a | 31886 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 31887 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31888 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 31889 | _ACEOF |
10f2d63a VZ |
31890 | |
31891 | fi | |
31892 | ||
e6cc62c6 | 31893 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31894 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 31895 | _ACEOF |
10f2d63a | 31896 | |
8284b0c5 | 31897 | |
e6cc62c6 | 31898 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31899 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 31900 | _ACEOF |
10f2d63a | 31901 | |
8284b0c5 MB |
31902 | |
31903 | ||
10f2d63a | 31904 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 31905 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31906 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 31907 | _ACEOF |
10f2d63a VZ |
31908 | |
31909 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
31910 | fi | |
31911 | ||
31912 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 31913 | |
8284b0c5 | 31914 | |
bb811f17 | 31915 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
e6cc62c6 | 31916 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31917 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 31918 | _ACEOF |
10f2d63a | 31919 | |
bb811f17 JS |
31920 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
31921 | fi | |
10f2d63a VZ |
31922 | fi |
31923 | ||
31924 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 31925 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31926 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 31927 | _ACEOF |
10f2d63a VZ |
31928 | |
31929 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
31930 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
31931 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
31932 | fi | |
31933 | fi | |
31934 | ||
31935 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 31936 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31937 | #define wxUSE_HELP 1 |
e6cc62c6 | 31938 | _ACEOF |
10f2d63a VZ |
31939 | |
31940 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 31941 | |
77e13408 | 31942 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 31943 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 31944 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 31945 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 31946 | _ACEOF |
29fd3c0c | 31947 | |
3e44f09d | 31948 | fi |
3379ed37 | 31949 | fi |
031d8228 VS |
31950 | |
31951 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
31952 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 31953 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 31954 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 31955 | _ACEOF |
031d8228 VS |
31956 | |
31957 | else | |
e6cc62c6 VS |
31958 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
31959 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
31960 | wxUSE_WXHTML_HELP=no |
31961 | fi | |
31962 | fi | |
10f2d63a VZ |
31963 | fi |
31964 | ||
31965 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
31966 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
31967 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
31968 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 31969 | else |
e6cc62c6 | 31970 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31971 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 31972 | _ACEOF |
10f2d63a VZ |
31973 | |
31974 | fi | |
31975 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
31976 | fi | |
31977 | ||
e6cc62c6 VS |
31978 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
31979 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
31980 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
31981 | { (exit 1); exit 1; }; } | |
31982 | fi | |
31983 | ||
31984 | ||
31985 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
31986 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
31987 | -o "$wxUSE_OLE" = "yes" \ | |
31988 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
31989 | ||
31990 | for ac_header in ole2.h | |
31991 | do | |
31992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31998 | fi | |
31999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32000 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32001 | else | |
32002 | # Is the header compilable? | |
32003 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32004 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32005 | cat >conftest.$ac_ext <<_ACEOF | |
32006 | #line $LINENO "configure" | |
32007 | /* confdefs.h. */ | |
32008 | _ACEOF | |
32009 | cat confdefs.h >>conftest.$ac_ext | |
32010 | cat >>conftest.$ac_ext <<_ACEOF | |
32011 | /* end confdefs.h. */ | |
32012 | $ac_includes_default | |
32013 | #include <$ac_header> | |
32014 | _ACEOF | |
32015 | rm -f conftest.$ac_objext | |
32016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32017 | (eval $ac_compile) 2>&5 | |
32018 | ac_status=$? | |
32019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32020 | (exit $ac_status); } && | |
32021 | { ac_try='test -s conftest.$ac_objext' | |
32022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32023 | (eval $ac_try) 2>&5 | |
32024 | ac_status=$? | |
32025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32026 | (exit $ac_status); }; }; then | |
32027 | ac_header_compiler=yes | |
32028 | else | |
32029 | echo "$as_me: failed program was:" >&5 | |
32030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32031 | ||
32032 | ac_header_compiler=no | |
32033 | fi | |
32034 | rm -f conftest.$ac_objext conftest.$ac_ext | |
32035 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
32036 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32037 | ||
32038 | # Is the header present? | |
32039 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32040 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32041 | cat >conftest.$ac_ext <<_ACEOF | |
32042 | #line $LINENO "configure" | |
32043 | /* confdefs.h. */ | |
32044 | _ACEOF | |
32045 | cat confdefs.h >>conftest.$ac_ext | |
32046 | cat >>conftest.$ac_ext <<_ACEOF | |
32047 | /* end confdefs.h. */ | |
32048 | #include <$ac_header> | |
32049 | _ACEOF | |
32050 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32051 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32052 | ac_status=$? | |
32053 | grep -v '^ *+' conftest.er1 >conftest.err | |
32054 | rm -f conftest.er1 | |
32055 | cat conftest.err >&5 | |
32056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32057 | (exit $ac_status); } >/dev/null; then | |
32058 | if test -s conftest.err; then | |
32059 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32060 | else | |
32061 | ac_cpp_err= | |
32062 | fi | |
32063 | else | |
32064 | ac_cpp_err=yes | |
32065 | fi | |
32066 | if test -z "$ac_cpp_err"; then | |
32067 | ac_header_preproc=yes | |
32068 | else | |
32069 | echo "$as_me: failed program was:" >&5 | |
32070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32071 | ||
32072 | ac_header_preproc=no | |
32073 | fi | |
32074 | rm -f conftest.err conftest.$ac_ext | |
32075 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32076 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32077 | ||
32078 | # So? What about this header? | |
32079 | case $ac_header_compiler:$ac_header_preproc in | |
32080 | yes:no ) | |
32081 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
32082 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32084 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32085 | ( | |
32086 | cat <<\_ASBOX | |
32087 | ## ------------------------------------ ## | |
32088 | ## Report this to bug-autoconf@gnu.org. ## | |
32089 | ## ------------------------------------ ## | |
32090 | _ASBOX | |
32091 | ) | | |
32092 | sed "s/^/$as_me: WARNING: /" >&2 | |
32093 | ;; | |
32094 | no:yes ) | |
32095 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
32096 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32097 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
32098 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32099 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32100 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32101 | ( | |
32102 | cat <<\_ASBOX | |
32103 | ## ------------------------------------ ## | |
32104 | ## Report this to bug-autoconf@gnu.org. ## | |
32105 | ## ------------------------------------ ## | |
32106 | _ASBOX | |
32107 | ) | | |
32108 | sed "s/^/$as_me: WARNING: /" >&2 | |
32109 | ;; | |
32110 | esac | |
32111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32115 | else | |
32116 | eval "$as_ac_Header=$ac_header_preproc" | |
32117 | fi | |
32118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32119 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32120 | ||
10f2d63a | 32121 | fi |
e6cc62c6 VS |
32122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32123 | cat >>confdefs.h <<_ACEOF | |
32124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32125 | _ACEOF | |
10f2d63a | 32126 | |
10f2d63a | 32127 | fi |
e6cc62c6 | 32128 | |
10f2d63a VZ |
32129 | done |
32130 | ||
8284b0c5 | 32131 | |
2b9bdf71 VZ |
32132 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
32133 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
32134 | |
32135 | ||
e6cc62c6 VS |
32136 | ac_ext=cc |
32137 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32138 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32139 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32140 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32141 | ||
32142 | ||
32143 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
32144 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
32145 | cat >conftest.$ac_ext <<_ACEOF | |
32146 | #line $LINENO "configure" | |
32147 | /* confdefs.h. */ | |
32148 | _ACEOF | |
32149 | cat confdefs.h >>conftest.$ac_ext | |
32150 | cat >>conftest.$ac_ext <<_ACEOF | |
32151 | /* end confdefs.h. */ | |
8284b0c5 MB |
32152 | #include <windows.h> |
32153 | #include <ole2.h> | |
e6cc62c6 VS |
32154 | int |
32155 | main () | |
32156 | { | |
8284b0c5 | 32157 | |
e6cc62c6 VS |
32158 | ; |
32159 | return 0; | |
32160 | } | |
32161 | _ACEOF | |
32162 | rm -f conftest.$ac_objext | |
32163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32164 | (eval $ac_compile) 2>&5 | |
32165 | ac_status=$? | |
32166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32167 | (exit $ac_status); } && | |
32168 | { ac_try='test -s conftest.$ac_objext' | |
32169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32170 | (eval $ac_try) 2>&5 | |
32171 | ac_status=$? | |
32172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32173 | (exit $ac_status); }; }; then | |
32174 | echo "$as_me:$LINENO: result: no" >&5 | |
32175 | echo "${ECHO_T}no" >&6 | |
32176 | else | |
32177 | echo "$as_me: failed program was:" >&5 | |
32178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32179 | ||
32180 | echo "$as_me:$LINENO: result: yes" >&5 | |
32181 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32182 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32183 | fi | |
e6cc62c6 | 32184 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32185 | ac_ext=c |
8284b0c5 | 32186 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32190 | |
2b9bdf71 | 32191 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32192 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32193 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32194 | #define wxUSE_OLE 1 |
e6cc62c6 | 32195 | _ACEOF |
4f11a343 | 32196 | |
8284b0c5 | 32197 | |
2b9bdf71 VZ |
32198 | fi |
32199 | ||
e6cc62c6 | 32200 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32201 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32202 | _ACEOF |
2b9bdf71 VZ |
32203 | |
32204 | else | |
e6cc62c6 VS |
32205 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32206 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32207 | |
32208 | wxUSE_CLIPBOARD=no | |
32209 | wxUSE_DRAG_AND_DROP=no | |
32210 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32211 | wxUSE_OLE=no |
32212 | fi | |
32213 | ||
32214 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32215 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32216 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32217 | _ACEOF |
3bce6687 JS |
32218 | |
32219 | ||
e6cc62c6 | 32220 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32221 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32222 | _ACEOF |
3bce6687 JS |
32223 | |
32224 | fi | |
32225 | fi | |
32226 | ||
2b9bdf71 VZ |
32227 | if test "$wxUSE_IPC" = "yes"; then |
32228 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32229 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32230 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32231 | fi |
32232 | ||
e6cc62c6 | 32233 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32234 | #define wxUSE_IPC 1 |
e6cc62c6 | 32235 | _ACEOF |
2b9bdf71 VZ |
32236 | |
32237 | fi | |
32238 | ||
32239 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32240 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32241 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32242 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32243 | wxUSE_CLIPBOARD=no |
32244 | fi | |
32245 | ||
32246 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32247 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32248 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32249 | _ACEOF |
2b9bdf71 | 32250 | |
8284b0c5 | 32251 | |
e6cc62c6 | 32252 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32253 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32254 | _ACEOF |
673f4220 | 32255 | |
6c657b52 | 32256 | fi |
2b9bdf71 VZ |
32257 | fi |
32258 | ||
32259 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32260 | if test "$wxUSE_GTK" = 1; then | |
32261 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32262 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32263 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32264 | wxUSE_DRAG_AND_DROP=no |
32265 | fi | |
32266 | fi | |
32267 | ||
2b9bdf71 | 32268 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32269 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32270 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32271 | wxUSE_DRAG_AND_DROP=no |
32272 | fi | |
32273 | ||
f79bd02d | 32274 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32275 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32276 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32277 | wxUSE_DRAG_AND_DROP=no |
32278 | fi | |
32279 | ||
6c657b52 | 32280 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32281 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32282 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32283 | wxUSE_DRAG_AND_DROP=no |
32284 | fi | |
32285 | ||
10f2d63a | 32286 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32287 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32288 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32289 | _ACEOF |
10f2d63a VZ |
32290 | |
32291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32292 | fi | |
32293 | ||
32294 | fi | |
32295 | ||
32296 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32297 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32298 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32299 | _ACEOF |
10f2d63a VZ |
32300 | |
32301 | fi | |
32302 | ||
8284b0c5 | 32303 | |
1e6feb95 VZ |
32304 | USES_CONTROLS=0 |
32305 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32306 | USES_CONTROLS=1 | |
32307 | fi | |
32308 | ||
10f2d63a | 32309 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32310 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32311 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32312 | _ACEOF |
10f2d63a | 32313 | |
1e6feb95 VZ |
32314 | USES_CONTROLS=1 |
32315 | fi | |
32316 | ||
32317 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32318 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32319 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32320 | _ACEOF |
1e6feb95 VZ |
32321 | |
32322 | USES_CONTROLS=1 | |
32323 | fi | |
32324 | ||
32325 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32326 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32327 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32328 | _ACEOF |
1e6feb95 VZ |
32329 | |
32330 | USES_CONTROLS=1 | |
32331 | fi | |
32332 | ||
32333 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32334 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32335 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32336 | _ACEOF |
1e6feb95 VZ |
32337 | |
32338 | USES_CONTROLS=1 | |
32339 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32340 | fi |
32341 | ||
32342 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32343 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32344 | #define wxUSE_CARET 1 |
e6cc62c6 | 32345 | _ACEOF |
10f2d63a | 32346 | |
1e6feb95 | 32347 | USES_CONTROLS=1 |
10f2d63a VZ |
32348 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32349 | fi | |
32350 | ||
32351 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32352 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32353 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32354 | _ACEOF |
10f2d63a | 32355 | |
1e6feb95 | 32356 | USES_CONTROLS=1 |
10f2d63a VZ |
32357 | fi |
32358 | ||
32359 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32360 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32361 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32362 | _ACEOF |
10f2d63a | 32363 | |
1e6feb95 | 32364 | USES_CONTROLS=1 |
10f2d63a VZ |
32365 | fi |
32366 | ||
32367 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32368 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32369 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32370 | _ACEOF |
10f2d63a | 32371 | |
1e6feb95 | 32372 | USES_CONTROLS=1 |
10f2d63a VZ |
32373 | fi |
32374 | ||
32375 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32376 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32377 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32378 | _ACEOF |
10f2d63a | 32379 | |
1e6feb95 | 32380 | USES_CONTROLS=1 |
10f2d63a VZ |
32381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
32382 | fi | |
32383 | ||
da494b40 | 32384 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 32385 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 32386 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 32387 | _ACEOF |
da494b40 MB |
32388 | |
32389 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32390 | fi | |
32391 | ||
10f2d63a | 32392 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 32393 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32394 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 32395 | _ACEOF |
10f2d63a | 32396 | |
1e6feb95 | 32397 | USES_CONTROLS=1 |
10f2d63a VZ |
32398 | fi |
32399 | ||
d6a55c4b | 32400 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 32401 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 32402 | #define wxUSE_GRID 1 |
e6cc62c6 | 32403 | _ACEOF |
10f2d63a | 32404 | |
1e6feb95 | 32405 | USES_CONTROLS=1 |
d6a55c4b | 32406 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
32407 | fi |
32408 | ||
32409 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32410 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32411 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 32412 | _ACEOF |
10f2d63a VZ |
32413 | |
32414 | fi | |
32415 | ||
32416 | if test "$wxUSE_LISTBOX" = "yes"; then | |
e6cc62c6 | 32417 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32418 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 32419 | _ACEOF |
10f2d63a | 32420 | |
1e6feb95 | 32421 | USES_CONTROLS=1 |
10f2d63a VZ |
32422 | fi |
32423 | ||
32424 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32425 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32426 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32427 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 32428 | _ACEOF |
10f2d63a | 32429 | |
1e6feb95 | 32430 | USES_CONTROLS=1 |
10f2d63a VZ |
32431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
32432 | else | |
e6cc62c6 VS |
32433 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
32434 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32435 | fi |
32436 | fi | |
32437 | ||
32438 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 32439 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32440 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 32441 | _ACEOF |
10f2d63a | 32442 | |
1e6feb95 | 32443 | USES_CONTROLS=1 |
10f2d63a VZ |
32444 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
32445 | fi | |
32446 | ||
24176f2c | 32447 | |
10f2d63a | 32448 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 32449 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32450 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 32451 | _ACEOF |
10f2d63a | 32452 | |
1e6feb95 | 32453 | USES_CONTROLS=1 |
10f2d63a VZ |
32454 | fi |
32455 | ||
32456 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 32457 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32458 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 32459 | _ACEOF |
10f2d63a | 32460 | |
1e6feb95 | 32461 | USES_CONTROLS=1 |
10f2d63a VZ |
32462 | fi |
32463 | ||
32464 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 32465 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32466 | #define wxUSE_SASH 1 |
e6cc62c6 | 32467 | _ACEOF |
10f2d63a VZ |
32468 | |
32469 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32470 | fi | |
32471 | ||
32472 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 32473 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32474 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 32475 | _ACEOF |
10f2d63a | 32476 | |
1e6feb95 | 32477 | USES_CONTROLS=1 |
741a9306 | 32478 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
32479 | fi |
32480 | ||
32481 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 32482 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32483 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 32484 | _ACEOF |
10f2d63a | 32485 | |
1e6feb95 | 32486 | USES_CONTROLS=1 |
10f2d63a VZ |
32487 | fi |
32488 | ||
32489 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 32490 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32491 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 32492 | _ACEOF |
10f2d63a | 32493 | |
1e6feb95 | 32494 | USES_CONTROLS=1 |
10f2d63a VZ |
32495 | fi |
32496 | ||
56cfaa52 | 32497 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 32498 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 32499 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 32500 | _ACEOF |
56cfaa52 | 32501 | |
1e6feb95 | 32502 | USES_CONTROLS=1 |
56cfaa52 RR |
32503 | fi |
32504 | ||
10f2d63a | 32505 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 32506 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32507 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 32508 | _ACEOF |
10f2d63a VZ |
32509 | |
32510 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32511 | fi | |
32512 | ||
32513 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 32514 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32515 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 32516 | _ACEOF |
10f2d63a | 32517 | |
1e6feb95 | 32518 | USES_CONTROLS=1 |
10f2d63a VZ |
32519 | fi |
32520 | ||
32521 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 32522 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32523 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 32524 | _ACEOF |
10f2d63a | 32525 | |
1e6feb95 VZ |
32526 | USES_CONTROLS=1 |
32527 | fi | |
32528 | ||
32529 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 32530 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32531 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 32532 | _ACEOF |
1e6feb95 VZ |
32533 | |
32534 | USES_CONTROLS=1 | |
10f2d63a VZ |
32535 | fi |
32536 | ||
32537 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 32538 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32539 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 32540 | _ACEOF |
10f2d63a | 32541 | |
89e6bf6d | 32542 | USES_CONTROLS=1 |
10f2d63a VZ |
32543 | fi |
32544 | ||
32545 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 32546 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32547 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 32548 | _ACEOF |
10f2d63a | 32549 | |
1e6feb95 | 32550 | USES_CONTROLS=1 |
698dcdb6 | 32551 | |
2286341c | 32552 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
32553 | fi |
32554 | ||
32555 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 32556 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32557 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 32558 | _ACEOF |
10f2d63a VZ |
32559 | |
32560 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
32561 | fi | |
32562 | ||
1e6feb95 | 32563 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 32564 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32565 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 32566 | _ACEOF |
1e6feb95 VZ |
32567 | |
32568 | USES_CONTROLS=1 | |
32569 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
32570 | fi | |
32571 | ||
1db8dc4a | 32572 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 32573 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32574 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
32575 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
32576 | wxUSE_TOGGLEBTN=no |
32577 | fi | |
32578 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
32579 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
32580 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
32581 | wxUSE_TOGGLEBTN=no |
32582 | fi | |
32583 | ||
32584 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 32585 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 32586 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 32587 | _ACEOF |
1db8dc4a | 32588 | |
1e6feb95 | 32589 | USES_CONTROLS=1 |
a45d7ab7 | 32590 | fi |
1db8dc4a VZ |
32591 | fi |
32592 | ||
360d6699 | 32593 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 32594 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32595 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 32596 | _ACEOF |
360d6699 VZ |
32597 | |
32598 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 32599 | USES_CONTROLS=1 |
360d6699 VZ |
32600 | fi |
32601 | ||
10f2d63a | 32602 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 32603 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32604 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 32605 | _ACEOF |
10f2d63a | 32606 | |
1e6feb95 | 32607 | USES_CONTROLS=1 |
698dcdb6 | 32608 | |
360d6699 VZ |
32609 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
32610 | wxUSE_TOOLBAR_NATIVE="yes" | |
32611 | fi | |
32612 | ||
1e6feb95 | 32613 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 32614 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32615 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 32616 | _ACEOF |
360d6699 | 32617 | |
1e6feb95 VZ |
32618 | USES_CONTROLS=1 |
32619 | fi | |
32620 | ||
32621 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
32622 | fi |
32623 | ||
10f2d63a VZ |
32624 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
32625 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
32626 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
32627 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 32628 | else |
89e6bf6d | 32629 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
32630 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
32631 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 32632 | else |
e6cc62c6 | 32633 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32634 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 32635 | _ACEOF |
10f2d63a VZ |
32636 | |
32637 | fi | |
32638 | fi | |
32639 | fi | |
32640 | ||
32641 | if test "$wxUSE_TREECTRL" = "yes"; then | |
32642 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32643 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32644 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 32645 | _ACEOF |
10f2d63a | 32646 | |
1e6feb95 | 32647 | USES_CONTROLS=1 |
10f2d63a VZ |
32648 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
32649 | else | |
e6cc62c6 VS |
32650 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
32651 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32652 | fi |
32653 | fi | |
32654 | ||
9f41d601 | 32655 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 32656 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32657 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
32658 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 32659 | else |
485cf710 | 32660 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32661 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
32662 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 32663 | else |
3c011993 | 32664 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32665 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
32666 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32667 | else |
e6cc62c6 | 32668 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 32669 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 32670 | _ACEOF |
9f41d601 | 32671 | |
8284b0c5 | 32672 | |
3c011993 VZ |
32673 | USES_CONTROLS=1 |
32674 | fi | |
485cf710 | 32675 | fi |
6abe4b65 | 32676 | fi |
9f41d601 RR |
32677 | fi |
32678 | ||
dd964dcc | 32679 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 32680 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
32681 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
32682 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 32683 | else |
e6cc62c6 | 32684 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 32685 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 32686 | _ACEOF |
dd964dcc | 32687 | |
3c011993 | 32688 | fi |
dd964dcc VZ |
32689 | fi |
32690 | ||
1e6feb95 | 32691 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 32692 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32693 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 32694 | _ACEOF |
10f2d63a | 32695 | |
10f2d63a VZ |
32696 | fi |
32697 | ||
8284b0c5 | 32698 | |
1e6feb95 | 32699 | |
24fd6d87 | 32700 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 32701 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 32702 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 32703 | _ACEOF |
24fd6d87 VZ |
32704 | |
32705 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
32706 | fi | |
32707 | ||
7bb2947d | 32708 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
e6cc62c6 | 32709 | cat >>confdefs.h <<\_ACEOF |
7bb2947d | 32710 | #define wxUSE_ACCESSIBILITY 1 |
e6cc62c6 | 32711 | _ACEOF |
7bb2947d MB |
32712 | |
32713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
32714 | fi | |
32715 | ||
1e6feb95 | 32716 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 32717 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32718 | #define wxUSE_MENUS 1 |
e6cc62c6 | 32719 | _ACEOF |
10f2d63a | 32720 | |
1e6feb95 | 32721 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
32722 | fi |
32723 | ||
1e6feb95 | 32724 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 32725 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32726 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32727 | _ACEOF |
10f2d63a | 32728 | |
10f2d63a VZ |
32729 | fi |
32730 | ||
1e6feb95 | 32731 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 32732 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32733 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 32734 | _ACEOF |
10f2d63a | 32735 | |
10f2d63a VZ |
32736 | fi |
32737 | ||
3e44f09d | 32738 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 32739 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 32740 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 32741 | _ACEOF |
3e44f09d | 32742 | |
321d2b14 VZ |
32743 | if test "$TOOLKIT" = "MSW"; then |
32744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
32745 | fi | |
32746 | ||
3e44f09d VZ |
32747 | fi |
32748 | ||
4cdb0ab0 | 32749 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 32750 | if test "$wxUSE_SOCKETS" != "yes"; then |
e6cc62c6 VS |
32751 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 |
32752 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
3954f9ca VS |
32753 | wxUSE_PROTOCOL=no |
32754 | fi | |
32755 | ||
32756 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
e6cc62c6 | 32757 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32758 | #define wxUSE_PROTOCOL 1 |
e6cc62c6 | 32759 | _ACEOF |
4cdb0ab0 | 32760 | |
8284b0c5 | 32761 | |
3954f9ca | 32762 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
e6cc62c6 | 32763 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32764 | #define wxUSE_PROTOCOL_HTTP 1 |
e6cc62c6 | 32765 | _ACEOF |
4cdb0ab0 | 32766 | |
3954f9ca VS |
32767 | fi |
32768 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
e6cc62c6 | 32769 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 32770 | #define wxUSE_PROTOCOL_FTP 1 |
e6cc62c6 | 32771 | _ACEOF |
4cdb0ab0 | 32772 | |
3954f9ca VS |
32773 | fi |
32774 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
e6cc62c6 | 32775 | cat >>confdefs.h <<\_ACEOF |
3954f9ca | 32776 | #define wxUSE_PROTOCOL_FILE 1 |
e6cc62c6 | 32777 | _ACEOF |
3954f9ca VS |
32778 | |
32779 | fi | |
4cdb0ab0 | 32780 | fi |
3954f9ca VS |
32781 | fi |
32782 | ||
32783 | if test "$wxUSE_URL" = "yes"; then | |
32784 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
e6cc62c6 VS |
32785 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 |
32786 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
3954f9ca VS |
32787 | wxUSE_URL=no |
32788 | fi | |
32789 | if test "$wxUSE_URL" = "yes"; then | |
e6cc62c6 | 32790 | cat >>confdefs.h <<\_ACEOF |
3954f9ca | 32791 | #define wxUSE_URL 1 |
e6cc62c6 | 32792 | _ACEOF |
4cdb0ab0 VS |
32793 | |
32794 | fi | |
32795 | fi | |
32796 | ||
10f2d63a | 32797 | if test "$wxUSE_MINIFRAME" = "yes"; then |
e6cc62c6 | 32798 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32799 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 32800 | _ACEOF |
10f2d63a VZ |
32801 | |
32802 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
32803 | fi | |
32804 | ||
32805 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32806 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32807 | #define wxUSE_HTML 1 |
e6cc62c6 | 32808 | _ACEOF |
10f2d63a | 32809 | |
d2739ea6 | 32810 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html htlbox" |
10f2d63a VZ |
32811 | fi |
32812 | ||
32813 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
e6cc62c6 | 32814 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 32815 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 32816 | _ACEOF |
703e0a69 | 32817 | |
698dcdb6 VZ |
32818 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
32819 | fi | |
32820 | ||
edae8572 | 32821 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 32822 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 32823 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 32824 | _ACEOF |
edae8572 VZ |
32825 | |
32826 | fi | |
32827 | ||
698dcdb6 | 32828 | if test "$wxUSE_IMAGE" = "yes" ; then |
e6cc62c6 | 32829 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32830 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 32831 | _ACEOF |
698dcdb6 VZ |
32832 | |
32833 | fi | |
32834 | ||
32835 | if test "$wxUSE_GIF" = "yes" ; then | |
e6cc62c6 | 32836 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32837 | #define wxUSE_GIF 1 |
e6cc62c6 | 32838 | _ACEOF |
698dcdb6 VZ |
32839 | |
32840 | fi | |
32841 | ||
32842 | if test "$wxUSE_PCX" = "yes" ; then | |
e6cc62c6 | 32843 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32844 | #define wxUSE_PCX 1 |
e6cc62c6 | 32845 | _ACEOF |
698dcdb6 VZ |
32846 | |
32847 | fi | |
32848 | ||
4b6b4dfc | 32849 | if test "$wxUSE_IFF" = "yes" ; then |
e6cc62c6 | 32850 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 32851 | #define wxUSE_IFF 1 |
e6cc62c6 | 32852 | _ACEOF |
4b6b4dfc RR |
32853 | |
32854 | fi | |
32855 | ||
698dcdb6 | 32856 | if test "$wxUSE_PNM" = "yes" ; then |
e6cc62c6 | 32857 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32858 | #define wxUSE_PNM 1 |
e6cc62c6 | 32859 | _ACEOF |
698dcdb6 VZ |
32860 | |
32861 | fi | |
32862 | ||
32863 | if test "$wxUSE_XPM" = "yes" ; then | |
e6cc62c6 | 32864 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 32865 | #define wxUSE_XPM 1 |
e6cc62c6 | 32866 | _ACEOF |
698dcdb6 VZ |
32867 | |
32868 | fi | |
32869 | ||
658974ae | 32870 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
e6cc62c6 | 32871 | cat >>confdefs.h <<\_ACEOF |
658974ae | 32872 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 32873 | _ACEOF |
658974ae VS |
32874 | |
32875 | fi | |
32876 | ||
a72a4bfa VS |
32877 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
32878 | LIBS=" -lunicows $LIBS" | |
32879 | fi | |
32880 | ||
8284b0c5 | 32881 | |
1e6feb95 | 32882 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 32883 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32884 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 32885 | _ACEOF |
1e6feb95 VZ |
32886 | |
32887 | fi | |
32888 | ||
32889 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 32890 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32891 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 32892 | _ACEOF |
1e6feb95 VZ |
32893 | |
32894 | fi | |
32895 | ||
32896 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 32897 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32898 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 32899 | _ACEOF |
1e6feb95 VZ |
32900 | |
32901 | fi | |
32902 | ||
8db37e06 | 32903 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 32904 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 32905 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 32906 | _ACEOF |
8db37e06 VZ |
32907 | |
32908 | fi | |
32909 | ||
1e6feb95 | 32910 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 32911 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32912 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 32913 | _ACEOF |
1e6feb95 VZ |
32914 | |
32915 | fi | |
32916 | ||
32917 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 32918 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
32919 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
32920 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 32921 | else |
e6cc62c6 | 32922 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32923 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 32924 | _ACEOF |
1e6feb95 | 32925 | |
1e6feb95 VZ |
32926 | fi |
32927 | fi | |
32928 | ||
32929 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 32930 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32931 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 32932 | _ACEOF |
1e6feb95 VZ |
32933 | |
32934 | fi | |
32935 | ||
32936 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 32937 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32938 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 32939 | _ACEOF |
1e6feb95 VZ |
32940 | |
32941 | fi | |
32942 | ||
32943 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
32944 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32945 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
32946 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 32947 | else |
e6cc62c6 | 32948 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32949 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 32950 | _ACEOF |
1e6feb95 VZ |
32951 | |
32952 | fi | |
32953 | fi | |
32954 | ||
cbca9943 | 32955 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 32956 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 32957 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 32958 | _ACEOF |
cbca9943 VZ |
32959 | |
32960 | fi | |
32961 | ||
1e6feb95 VZ |
32962 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
32963 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32964 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
32965 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 32966 | else |
e6cc62c6 | 32967 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32968 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 32969 | _ACEOF |
1e6feb95 | 32970 | |
7b4a847f RR |
32971 | fi |
32972 | fi | |
579d8138 | 32973 | |
8284b0c5 | 32974 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 32975 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 32976 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 32977 | _ACEOF |
8284b0c5 MB |
32978 | |
32979 | fi | |
32980 | ||
32981 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 32982 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 32983 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 32984 | _ACEOF |
8284b0c5 MB |
32985 | |
32986 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
32987 | fi | |
32988 | ||
32989 | ||
32990 | if test "$cross_compiling" = "yes"; then | |
32991 | OSINFO="\"$host\"" | |
32992 | else | |
32993 | OSINFO=`uname -s -r -m` | |
32994 | OSINFO="\"$OSINFO\"" | |
32995 | fi | |
32996 | ||
e6cc62c6 | 32997 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 32998 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 32999 | _ACEOF |
8284b0c5 MB |
33000 | |
33001 | ||
33002 | ||
33003 | if test "x$prefix" != "xNONE"; then | |
33004 | wxPREFIX=$prefix | |
33005 | else | |
33006 | wxPREFIX=$ac_default_prefix | |
33007 | fi | |
33008 | ||
e6cc62c6 | 33009 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33010 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 33011 | _ACEOF |
8284b0c5 MB |
33012 | |
33013 | ||
e6cc62c6 | 33014 | top_builddir_wxconfig=`pwd` |
52c71b80 | 33015 | |
8284b0c5 MB |
33016 | |
33017 | ||
33018 | ||
33019 | if test "$wxUSE_MAC" = 1 ; then | |
33020 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
33021 | fi | |
ac0c4cc3 DE |
33022 | if test "$wxUSE_COCOA" = 1 ; then |
33023 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
33024 | fi | |
8284b0c5 MB |
33025 | |
33026 | ||
2b5f62a0 VZ |
33027 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
33028 | ||
33029 | have_cos=0 | |
33030 | have_floor=0 | |
e6cc62c6 | 33031 | |
2b5f62a0 VZ |
33032 | for ac_func in cos |
33033 | do | |
e6cc62c6 VS |
33034 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33035 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33036 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33037 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33039 | else | |
33040 | cat >conftest.$ac_ext <<_ACEOF | |
33041 | #line $LINENO "configure" | |
33042 | /* confdefs.h. */ | |
33043 | _ACEOF | |
33044 | cat confdefs.h >>conftest.$ac_ext | |
33045 | cat >>conftest.$ac_ext <<_ACEOF | |
33046 | /* end confdefs.h. */ | |
2b5f62a0 | 33047 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33048 | which can conflict with char $ac_func (); below. |
33049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33050 | <limits.h> exists even on freestanding compilers. */ | |
33051 | #ifdef __STDC__ | |
33052 | # include <limits.h> | |
33053 | #else | |
33054 | # include <assert.h> | |
33055 | #endif | |
2b5f62a0 | 33056 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33057 | #ifdef __cplusplus |
33058 | extern "C" | |
33059 | { | |
33060 | #endif | |
2b5f62a0 | 33061 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33062 | builtin and then its argument prototype would still apply. */ |
33063 | char $ac_func (); | |
2b5f62a0 VZ |
33064 | /* The GNU C library defines this for functions which it implements |
33065 | to always fail with ENOSYS. Some functions are actually named | |
33066 | something starting with __ and the normal name is an alias. */ | |
33067 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33068 | choke me | |
33069 | #else | |
e6cc62c6 VS |
33070 | char (*f) () = $ac_func; |
33071 | #endif | |
33072 | #ifdef __cplusplus | |
33073 | } | |
2b5f62a0 VZ |
33074 | #endif |
33075 | ||
e6cc62c6 VS |
33076 | int |
33077 | main () | |
33078 | { | |
33079 | return f != $ac_func; | |
33080 | ; | |
33081 | return 0; | |
33082 | } | |
33083 | _ACEOF | |
33084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33086 | (eval $ac_link) 2>&5 | |
33087 | ac_status=$? | |
33088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33089 | (exit $ac_status); } && | |
33090 | { ac_try='test -s conftest$ac_exeext' | |
33091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33092 | (eval $ac_try) 2>&5 | |
33093 | ac_status=$? | |
33094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33095 | (exit $ac_status); }; }; then | |
33096 | eval "$as_ac_var=yes" | |
33097 | else | |
33098 | echo "$as_me: failed program was:" >&5 | |
33099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33100 | ||
33101 | eval "$as_ac_var=no" | |
33102 | fi | |
33103 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33104 | fi | |
33105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33106 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33107 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33108 | cat >>confdefs.h <<_ACEOF | |
33109 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33110 | _ACEOF | |
2b5f62a0 | 33111 | have_cos=1 |
2b5f62a0 VZ |
33112 | fi |
33113 | done | |
33114 | ||
e6cc62c6 | 33115 | |
2b5f62a0 VZ |
33116 | for ac_func in floor |
33117 | do | |
e6cc62c6 VS |
33118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33119 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33121 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33123 | else | |
33124 | cat >conftest.$ac_ext <<_ACEOF | |
33125 | #line $LINENO "configure" | |
33126 | /* confdefs.h. */ | |
33127 | _ACEOF | |
33128 | cat confdefs.h >>conftest.$ac_ext | |
33129 | cat >>conftest.$ac_ext <<_ACEOF | |
33130 | /* end confdefs.h. */ | |
2b5f62a0 | 33131 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33132 | which can conflict with char $ac_func (); below. |
33133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33134 | <limits.h> exists even on freestanding compilers. */ | |
33135 | #ifdef __STDC__ | |
33136 | # include <limits.h> | |
33137 | #else | |
33138 | # include <assert.h> | |
33139 | #endif | |
2b5f62a0 | 33140 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33141 | #ifdef __cplusplus |
33142 | extern "C" | |
33143 | { | |
33144 | #endif | |
2b5f62a0 | 33145 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33146 | builtin and then its argument prototype would still apply. */ |
33147 | char $ac_func (); | |
2b5f62a0 VZ |
33148 | /* The GNU C library defines this for functions which it implements |
33149 | to always fail with ENOSYS. Some functions are actually named | |
33150 | something starting with __ and the normal name is an alias. */ | |
33151 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33152 | choke me | |
33153 | #else | |
e6cc62c6 VS |
33154 | char (*f) () = $ac_func; |
33155 | #endif | |
33156 | #ifdef __cplusplus | |
33157 | } | |
2b5f62a0 VZ |
33158 | #endif |
33159 | ||
e6cc62c6 VS |
33160 | int |
33161 | main () | |
33162 | { | |
33163 | return f != $ac_func; | |
33164 | ; | |
33165 | return 0; | |
33166 | } | |
33167 | _ACEOF | |
33168 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33170 | (eval $ac_link) 2>&5 | |
33171 | ac_status=$? | |
33172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33173 | (exit $ac_status); } && | |
33174 | { ac_try='test -s conftest$ac_exeext' | |
33175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33176 | (eval $ac_try) 2>&5 | |
33177 | ac_status=$? | |
33178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33179 | (exit $ac_status); }; }; then | |
33180 | eval "$as_ac_var=yes" | |
33181 | else | |
33182 | echo "$as_me: failed program was:" >&5 | |
33183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33184 | ||
33185 | eval "$as_ac_var=no" | |
33186 | fi | |
33187 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33188 | fi | |
33189 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33190 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33191 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33192 | cat >>confdefs.h <<_ACEOF | |
33193 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33194 | _ACEOF | |
2b5f62a0 | 33195 | have_floor=1 |
2b5f62a0 VZ |
33196 | fi |
33197 | done | |
33198 | ||
e6cc62c6 VS |
33199 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33200 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33201 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33202 | echo "$as_me:$LINENO: result: yes" >&5 |
33203 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33204 | else |
e6cc62c6 VS |
33205 | echo "$as_me:$LINENO: result: no" >&5 |
33206 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33207 | LIBS="$LIBS -lm" |
33208 | # use different functions to avoid configure caching | |
33209 | have_sin=0 | |
33210 | have_ceil=0 | |
e6cc62c6 VS |
33211 | |
33212 | for ac_func in sin | |
2b5f62a0 | 33213 | do |
e6cc62c6 VS |
33214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33215 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33217 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33219 | else | |
33220 | cat >conftest.$ac_ext <<_ACEOF | |
33221 | #line $LINENO "configure" | |
33222 | /* confdefs.h. */ | |
33223 | _ACEOF | |
33224 | cat confdefs.h >>conftest.$ac_ext | |
33225 | cat >>conftest.$ac_ext <<_ACEOF | |
33226 | /* end confdefs.h. */ | |
2b5f62a0 | 33227 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33228 | which can conflict with char $ac_func (); below. |
33229 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33230 | <limits.h> exists even on freestanding compilers. */ | |
33231 | #ifdef __STDC__ | |
33232 | # include <limits.h> | |
33233 | #else | |
33234 | # include <assert.h> | |
33235 | #endif | |
2b5f62a0 | 33236 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33237 | #ifdef __cplusplus |
33238 | extern "C" | |
33239 | { | |
33240 | #endif | |
2b5f62a0 | 33241 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33242 | builtin and then its argument prototype would still apply. */ |
33243 | char $ac_func (); | |
2b5f62a0 VZ |
33244 | /* The GNU C library defines this for functions which it implements |
33245 | to always fail with ENOSYS. Some functions are actually named | |
33246 | something starting with __ and the normal name is an alias. */ | |
33247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33248 | choke me | |
33249 | #else | |
e6cc62c6 VS |
33250 | char (*f) () = $ac_func; |
33251 | #endif | |
33252 | #ifdef __cplusplus | |
33253 | } | |
2b5f62a0 VZ |
33254 | #endif |
33255 | ||
e6cc62c6 VS |
33256 | int |
33257 | main () | |
33258 | { | |
33259 | return f != $ac_func; | |
33260 | ; | |
33261 | return 0; | |
33262 | } | |
33263 | _ACEOF | |
33264 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33266 | (eval $ac_link) 2>&5 | |
33267 | ac_status=$? | |
33268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33269 | (exit $ac_status); } && | |
33270 | { ac_try='test -s conftest$ac_exeext' | |
33271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33272 | (eval $ac_try) 2>&5 | |
33273 | ac_status=$? | |
33274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33275 | (exit $ac_status); }; }; then | |
33276 | eval "$as_ac_var=yes" | |
33277 | else | |
33278 | echo "$as_me: failed program was:" >&5 | |
33279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33280 | ||
33281 | eval "$as_ac_var=no" | |
33282 | fi | |
33283 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33284 | fi | |
33285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33286 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33287 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33288 | cat >>confdefs.h <<_ACEOF | |
33289 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33290 | _ACEOF | |
2b5f62a0 | 33291 | have_sin=1 |
2b5f62a0 VZ |
33292 | fi |
33293 | done | |
33294 | ||
e6cc62c6 VS |
33295 | |
33296 | for ac_func in ceil | |
2b5f62a0 | 33297 | do |
e6cc62c6 VS |
33298 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33299 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33300 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33301 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33303 | else | |
33304 | cat >conftest.$ac_ext <<_ACEOF | |
33305 | #line $LINENO "configure" | |
33306 | /* confdefs.h. */ | |
33307 | _ACEOF | |
33308 | cat confdefs.h >>conftest.$ac_ext | |
33309 | cat >>conftest.$ac_ext <<_ACEOF | |
33310 | /* end confdefs.h. */ | |
2b5f62a0 | 33311 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33312 | which can conflict with char $ac_func (); below. |
33313 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33314 | <limits.h> exists even on freestanding compilers. */ | |
33315 | #ifdef __STDC__ | |
33316 | # include <limits.h> | |
33317 | #else | |
33318 | # include <assert.h> | |
33319 | #endif | |
2b5f62a0 | 33320 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33321 | #ifdef __cplusplus |
33322 | extern "C" | |
33323 | { | |
33324 | #endif | |
2b5f62a0 | 33325 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33326 | builtin and then its argument prototype would still apply. */ |
33327 | char $ac_func (); | |
2b5f62a0 VZ |
33328 | /* The GNU C library defines this for functions which it implements |
33329 | to always fail with ENOSYS. Some functions are actually named | |
33330 | something starting with __ and the normal name is an alias. */ | |
33331 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33332 | choke me | |
33333 | #else | |
e6cc62c6 VS |
33334 | char (*f) () = $ac_func; |
33335 | #endif | |
33336 | #ifdef __cplusplus | |
33337 | } | |
2b5f62a0 VZ |
33338 | #endif |
33339 | ||
e6cc62c6 VS |
33340 | int |
33341 | main () | |
33342 | { | |
33343 | return f != $ac_func; | |
33344 | ; | |
33345 | return 0; | |
33346 | } | |
33347 | _ACEOF | |
33348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33350 | (eval $ac_link) 2>&5 | |
33351 | ac_status=$? | |
33352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33353 | (exit $ac_status); } && | |
33354 | { ac_try='test -s conftest$ac_exeext' | |
33355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33356 | (eval $ac_try) 2>&5 | |
33357 | ac_status=$? | |
33358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33359 | (exit $ac_status); }; }; then | |
33360 | eval "$as_ac_var=yes" | |
33361 | else | |
33362 | echo "$as_me: failed program was:" >&5 | |
33363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33364 | ||
33365 | eval "$as_ac_var=no" | |
33366 | fi | |
33367 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33368 | fi | |
33369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33370 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33371 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33372 | cat >>confdefs.h <<_ACEOF | |
33373 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33374 | _ACEOF | |
2b5f62a0 | 33375 | have_ceil=1 |
2b5f62a0 VZ |
33376 | fi |
33377 | done | |
33378 | ||
e6cc62c6 VS |
33379 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33380 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33381 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33382 | echo "$as_me:$LINENO: result: yes" >&5 |
33383 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33384 | else |
e6cc62c6 VS |
33385 | echo "$as_me:$LINENO: result: no" >&5 |
33386 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33387 | # not sure we should warn the user, crash, etc. |
33388 | fi | |
33389 | fi | |
8284b0c5 MB |
33390 | |
33391 | if test "$wxUSE_GUI" = "yes"; then | |
33392 | ||
33393 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
33394 | ||
e6cc62c6 | 33395 | |
8284b0c5 MB |
33396 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
33397 | drawing dynamic erase event exec font image \ | |
1542ea39 | 33398 | minimal propsize rotate shaped widgets" |
8284b0c5 MB |
33399 | else |
33400 | SAMPLES_SUBDIRS="console" | |
33401 | fi | |
33402 | ||
33403 | ||
e6cc62c6 | 33404 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
8284b0c5 MB |
33405 | -I\${top_srcdir}/include \ |
33406 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33407 | $TOOLKIT_INCLUDE" | |
33408 | ||
33409 | if test "$wxUSE_GTK" = 1; then | |
33410 | WXCONFIG_INCLUDE= | |
33411 | else | |
33412 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33413 | fi | |
33414 | ||
fe0895cf VS |
33415 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
33416 | WXUNIV=1 | |
33417 | else | |
33418 | WXUNIV=0 | |
8284b0c5 MB |
33419 | fi |
33420 | ||
8284b0c5 MB |
33421 | |
33422 | ||
33423 | ||
33424 | ||
33425 | ||
33426 | ||
33427 | ||
fe0895cf | 33428 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
8284b0c5 | 33429 | |
9747f85d VS |
33430 | if test $wxUSE_MONOLITHIC = "yes" ; then |
33431 | MONOLITHIC=1 | |
33432 | else | |
33433 | MONOLITHIC=0 | |
33434 | fi | |
8284b0c5 MB |
33435 | |
33436 | ||
33437 | ||
33438 | ||
33439 | ||
33440 | ||
33441 | ||
fe0895cf | 33442 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` |
8284b0c5 MB |
33443 | |
33444 | ||
33445 | ||
33446 | ||
33447 | ||
fe0895cf | 33448 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
33449 | |
33450 | if test -n "$ac_tool_prefix"; then | |
33451 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33452 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33455 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 33457 | else |
fe0895cf VS |
33458 | if test -n "$RANLIB"; then |
33459 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 33460 | else |
e6cc62c6 VS |
33461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33462 | for as_dir in $PATH | |
33463 | do | |
33464 | IFS=$as_save_IFS | |
33465 | test -z "$as_dir" && as_dir=. | |
33466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33468 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
33469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33470 | break 2 | |
33471 | fi | |
33472 | done | |
33473 | done | |
33474 | ||
10f2d63a | 33475 | fi |
10f2d63a | 33476 | fi |
e6cc62c6 | 33477 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 33478 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
33479 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
33480 | echo "${ECHO_T}$RANLIB" >&6 | |
33481 | else | |
33482 | echo "$as_me:$LINENO: result: no" >&5 | |
33483 | echo "${ECHO_T}no" >&6 | |
33484 | fi | |
33485 | ||
33486 | fi | |
33487 | if test -z "$ac_cv_prog_RANLIB"; then | |
33488 | ac_ct_RANLIB=$RANLIB | |
33489 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33490 | set dummy ranlib; ac_word=$2 | |
33491 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33492 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33493 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33495 | else | |
33496 | if test -n "$ac_ct_RANLIB"; then | |
33497 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
33498 | else | |
33499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33500 | for as_dir in $PATH | |
33501 | do | |
33502 | IFS=$as_save_IFS | |
33503 | test -z "$as_dir" && as_dir=. | |
33504 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33505 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33506 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
33507 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33508 | break 2 | |
33509 | fi | |
33510 | done | |
33511 | done | |
33512 | ||
33513 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
33514 | fi | |
33515 | fi | |
33516 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
33517 | if test -n "$ac_ct_RANLIB"; then | |
33518 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
33519 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 33520 | else |
e6cc62c6 VS |
33521 | echo "$as_me:$LINENO: result: no" >&5 |
33522 | echo "${ECHO_T}no" >&6 | |
33523 | fi | |
33524 | ||
33525 | RANLIB=$ac_ct_RANLIB | |
33526 | else | |
33527 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 33528 | fi |
665bbe97 | 33529 | |
fe0895cf VS |
33530 | # Find a good install program. We prefer a C program (faster), |
33531 | # so one script is as good as another. But avoid the broken or | |
33532 | # incompatible versions: | |
33533 | # SysV /etc/install, /usr/sbin/install | |
33534 | # SunOS /usr/etc/install | |
33535 | # IRIX /sbin/install | |
33536 | # AIX /bin/install | |
e6cc62c6 | 33537 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
33538 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
33539 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
33540 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
33541 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
33542 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
33543 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 33544 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
33545 | if test "${ac_cv_path_install+set}" = set; then |
33546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33547 | else | |
33548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33549 | for as_dir in $PATH | |
33550 | do | |
33551 | IFS=$as_save_IFS | |
33552 | test -z "$as_dir" && as_dir=. | |
33553 | # Account for people who put trailing slashes in PATH elements. | |
33554 | case $as_dir/ in | |
33555 | ./ | .// | /cC/* | \ | |
33556 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
33557 | /usr/ucb/* ) ;; | |
33558 | *) | |
33559 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
33560 | # Don't use installbsd from OSF since it installs stuff as root | |
33561 | # by default. | |
33562 | for ac_prog in ginstall scoinst install; do | |
33563 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33564 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
33565 | if test $ac_prog = install && | |
33566 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33567 | # AIX install. It has an incompatible calling convention. | |
33568 | : | |
33569 | elif test $ac_prog = install && | |
33570 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
33571 | # program-specific install script used by HP pwplus--don't use. | |
33572 | : | |
33573 | else | |
33574 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
33575 | break 3 | |
33576 | fi | |
33577 | fi | |
fe0895cf | 33578 | done |
e6cc62c6 VS |
33579 | done |
33580 | ;; | |
33581 | esac | |
33582 | done | |
33583 | ||
fe0895cf VS |
33584 | |
33585 | fi | |
33586 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 33587 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
33588 | else |
33589 | # As a last resort, use the slow shell script. We don't cache a | |
33590 | # path for INSTALL within a source directory, because that will | |
33591 | # break other packages using the cache if that directory is | |
33592 | # removed, or if the path is relative. | |
e6cc62c6 | 33593 | INSTALL=$ac_install_sh |
fe0895cf VS |
33594 | fi |
33595 | fi | |
e6cc62c6 VS |
33596 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
33597 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
33598 | |
33599 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
33600 | # It thinks the first close brace ends the variable substitution. | |
33601 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
33602 | ||
e6cc62c6 | 33603 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
33604 | |
33605 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
33606 | ||
e6cc62c6 VS |
33607 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
33608 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
33609 | LN_S=$as_ln_s | |
33610 | if test "$LN_S" = "ln -s"; then | |
33611 | echo "$as_me:$LINENO: result: yes" >&5 | |
33612 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 33613 | else |
e6cc62c6 VS |
33614 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
33615 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
33616 | fi |
33617 | ||
33618 | ||
e6cc62c6 VS |
33619 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
33620 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
33621 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
33622 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
33623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 33624 | else |
e6cc62c6 | 33625 | cat >conftest.make <<\_ACEOF |
fe0895cf | 33626 | all: |
e6cc62c6 VS |
33627 | @echo 'ac_maketemp="$(MAKE)"' |
33628 | _ACEOF | |
fe0895cf | 33629 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 33630 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
33631 | if test -n "$ac_maketemp"; then |
33632 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33633 | else | |
33634 | eval ac_cv_prog_make_${ac_make}_set=no | |
33635 | fi | |
e6cc62c6 | 33636 | rm -f conftest.make |
fe0895cf VS |
33637 | fi |
33638 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
33639 | echo "$as_me:$LINENO: result: yes" >&5 |
33640 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
33641 | SET_MAKE= |
33642 | else | |
e6cc62c6 VS |
33643 | echo "$as_me:$LINENO: result: no" >&5 |
33644 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33645 | SET_MAKE="MAKE=${MAKE-make}" |
33646 | fi | |
33647 | ||
e6cc62c6 VS |
33648 | |
33649 | ||
fe0895cf VS |
33650 | if test "$build" != "$host" ; then |
33651 | AR=$host_alias-ar | |
33652 | STRIP=$host_alias-strip | |
33653 | else | |
33654 | # Extract the first word of "ar", so it can be a program name with args. | |
33655 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
33656 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33657 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33658 | if test "${ac_cv_prog_AR+set}" = set; then | |
33659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33660 | else |
33661 | if test -n "$AR"; then | |
33662 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
33663 | else | |
e6cc62c6 VS |
33664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33665 | for as_dir in $PATH | |
33666 | do | |
33667 | IFS=$as_save_IFS | |
33668 | test -z "$as_dir" && as_dir=. | |
33669 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33670 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33671 | ac_cv_prog_AR="ar" | |
33672 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33673 | break 2 | |
33674 | fi | |
33675 | done | |
33676 | done | |
33677 | ||
fe0895cf VS |
33678 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
33679 | fi | |
33680 | fi | |
e6cc62c6 | 33681 | AR=$ac_cv_prog_AR |
fe0895cf | 33682 | if test -n "$AR"; then |
e6cc62c6 VS |
33683 | echo "$as_me:$LINENO: result: $AR" >&5 |
33684 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 33685 | else |
e6cc62c6 VS |
33686 | echo "$as_me:$LINENO: result: no" >&5 |
33687 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33688 | fi |
33689 | ||
33690 | # Extract the first word of "strip", so it can be a program name with args. | |
33691 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
33692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
33693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33694 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
33695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
33696 | else |
33697 | if test -n "$STRIP"; then | |
33698 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33699 | else | |
e6cc62c6 VS |
33700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33701 | for as_dir in $PATH | |
33702 | do | |
33703 | IFS=$as_save_IFS | |
33704 | test -z "$as_dir" && as_dir=. | |
33705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33707 | ac_cv_prog_STRIP="strip" | |
33708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33709 | break 2 | |
33710 | fi | |
33711 | done | |
33712 | done | |
33713 | ||
fe0895cf VS |
33714 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
33715 | fi | |
33716 | fi | |
e6cc62c6 | 33717 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 33718 | if test -n "$STRIP"; then |
e6cc62c6 VS |
33719 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
33720 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 33721 | else |
e6cc62c6 VS |
33722 | echo "$as_me:$LINENO: result: no" >&5 |
33723 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
33724 | fi |
33725 | ||
33726 | fi | |
33727 | ||
33728 | case ${host} in | |
33729 | *-hp-hpux* ) | |
33730 | INSTALL_DIR="mkdir" | |
33731 | ;; | |
33732 | *) INSTALL_DIR="$INSTALL -d" | |
33733 | ;; | |
33734 | esac | |
e6cc62c6 | 33735 | |
fe0895cf | 33736 | |
6b9d41a5 VS |
33737 | LDFLAGS_GUI= |
33738 | case ${host} in | |
33739 | *-*-cygwin* | *-*-mingw32* ) | |
33740 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
33741 | esac | |
33742 | ||
33743 | ||
fe0895cf | 33744 | fi |
e6cc62c6 VS |
33745 | |
33746 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
33747 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 33748 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 33749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 33750 | else |
e6cc62c6 | 33751 | |
fe0895cf VS |
33752 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
33753 | egrep -s GNU > /dev/null); then | |
33754 | bakefile_cv_prog_makeisgnu="yes" | |
33755 | else | |
33756 | bakefile_cv_prog_makeisgnu="no" | |
33757 | fi | |
fe0895cf | 33758 | |
e6cc62c6 | 33759 | fi |
49b0a3aa VS |
33760 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
33761 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
33762 | |
33763 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
33764 | IF_GNU_MAKE="" | |
33765 | else | |
33766 | IF_GNU_MAKE="#" | |
33767 | fi | |
fe0895cf | 33768 | |
e6cc62c6 VS |
33769 | |
33770 | ||
fe0895cf VS |
33771 | PLATFORM_UNIX=0 |
33772 | PLATFORM_WIN32=0 | |
33773 | PLATFORM_MSDOS=0 | |
33774 | PLATFORM_MAC=0 | |
33775 | PLATFORM_MACOSX=0 | |
e6cc62c6 | 33776 | |
fe0895cf VS |
33777 | case "${host}" in |
33778 | *-*-cygwin* | *-*-mingw32* ) | |
33779 | PLATFORM_WIN32=1 | |
33780 | ;; | |
33781 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
33782 | PLATFORM_MSDOS=1 | |
33783 | ;; | |
33784 | powerpc-*-darwin* ) | |
33785 | PLATFORM_MAC=1 | |
33786 | PLATFORM_MACOSX=1 | |
33787 | ;; | |
33788 | * ) | |
33789 | PLATFORM_UNIX=1 | |
33790 | ;; | |
33791 | esac | |
33792 | ||
fe0895cf | 33793 | |
e6cc62c6 VS |
33794 | |
33795 | ||
33796 | ||
33797 | ||
33798 | ||
33799 | ||
fe0895cf VS |
33800 | SO_SUFFIX="so" |
33801 | EXEEXT="" | |
33802 | DLLPREFIX=lib | |
e6cc62c6 | 33803 | |
fe0895cf VS |
33804 | case "${host}" in |
33805 | *-hp-hpux* ) | |
33806 | SO_SUFFIX="sl" | |
33807 | ;; | |
33808 | *-*-aix* ) | |
33809 | SO_SUFFIX="a" | |
33810 | ;; | |
33811 | *-*-cygwin* | *-*-mingw32* ) | |
33812 | SO_SUFFIX="dll" | |
33813 | EXEEXT=".exe" | |
33814 | DLLPREFIX="" | |
33815 | ;; | |
33816 | *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx ) | |
33817 | EXEEXT=".exe" | |
33818 | DLLPREFIX="" | |
33819 | ;; | |
33820 | powerpc-*-darwin* ) | |
33821 | SO_SUFFIX="dylib" | |
33822 | ;; | |
33823 | esac | |
33824 | ||
fe0895cf | 33825 | |
e6cc62c6 VS |
33826 | |
33827 | ||
33828 | ||
33829 | ||
fe0895cf VS |
33830 | SHARED_LD_CC="\$(CC) -shared -o" |
33831 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
33832 | ||
33833 | if test "x$GCC" = "xyes"; then | |
33834 | PIC_FLAG="-fPIC" | |
33835 | fi | |
33836 | ||
33837 | case "${host}" in | |
33838 | *-hp-hpux* ) | |
33839 | if test "x$GCC" = "xyes"; then | |
33840 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
33841 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
33842 | else | |
33843 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
33844 | ||
33845 | SHARED_LD_CC="${CC} -b -o" | |
33846 | SHARED_LD_CXX="${CXX} -b -o" | |
33847 | PIC_FLAG="+Z" | |
33848 | fi | |
33849 | ;; | |
33850 | ||
33851 | *-*-linux* ) | |
33852 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
33853 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
33854 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
33855 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
33856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 33857 | else |
fe0895cf | 33858 | |
e6cc62c6 VS |
33859 | cat >conftest.$ac_ext <<_ACEOF |
33860 | #line $LINENO "configure" | |
33861 | /* confdefs.h. */ | |
33862 | _ACEOF | |
33863 | cat confdefs.h >>conftest.$ac_ext | |
33864 | cat >>conftest.$ac_ext <<_ACEOF | |
33865 | /* end confdefs.h. */ | |
33866 | ||
33867 | int | |
33868 | main () | |
33869 | { | |
fe0895cf VS |
33870 | |
33871 | #ifndef __INTEL_COMPILER | |
33872 | #error Not icc | |
33873 | #endif | |
e6cc62c6 VS |
33874 | |
33875 | ; | |
33876 | return 0; | |
33877 | } | |
33878 | _ACEOF | |
33879 | rm -f conftest.$ac_objext | |
33880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33881 | (eval $ac_compile) 2>&5 | |
33882 | ac_status=$? | |
33883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33884 | (exit $ac_status); } && | |
33885 | { ac_try='test -s conftest.$ac_objext' | |
33886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33887 | (eval $ac_try) 2>&5 | |
33888 | ac_status=$? | |
33889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33890 | (exit $ac_status); }; }; then | |
fe0895cf VS |
33891 | bakefile_cv_prog_icc=yes |
33892 | else | |
e6cc62c6 VS |
33893 | echo "$as_me: failed program was:" >&5 |
33894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33895 | ||
33896 | bakefile_cv_prog_icc=no | |
33897 | ||
fe0895cf | 33898 | fi |
e6cc62c6 | 33899 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 33900 | |
e6cc62c6 VS |
33901 | fi |
33902 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
33903 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
33904 | if test "$bakefile_cv_prog_icc" = "yes"; then |
33905 | PIC_FLAG="-KPIC" | |
33906 | fi | |
33907 | fi | |
33908 | ;; | |
33909 | ||
33910 | *-*-solaris2* ) | |
33911 | if test "x$GCC" != xyes ; then | |
33912 | SHARED_LD_CC="${CC} -G -o" | |
33913 | SHARED_LD_CXX="${CXX} -G -o" | |
33914 | PIC_FLAG="-KPIC" | |
33915 | fi | |
33916 | ;; | |
33917 | ||
33918 | *-*-darwin* ) | |
33919 | CFLAGS="$CFLAGS -fno-common" | |
33920 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
33921 | |
33922 | ||
fe0895cf VS |
33923 | cat <<EOF >shared-ld-sh |
33924 | #!/bin/sh | |
33925 | #----------------------------------------------------------------------------- | |
33926 | #-- Name: distrib/mac/shared-ld-sh | |
33927 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
33928 | #-- Author: Gilles Depeyrot | |
33929 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
33930 | #-- Licence: any use permitted | |
33931 | #----------------------------------------------------------------------------- | |
33932 | ||
33933 | verbose=0 | |
33934 | args="" | |
33935 | objects="" | |
33936 | ||
33937 | while test \${#} -gt 0; do | |
33938 | case \${1} in | |
33939 | ||
33940 | -v) | |
33941 | verbose=1 | |
33942 | ;; | |
33943 | ||
33944 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
33945 | # collect these options and values | |
33946 | args="\${args} \${1} \${2}" | |
33947 | shift | |
33948 | ;; | |
33949 | ||
33950 | -l*|-L*|-flat_namespace) | |
33951 | # collect these options | |
33952 | args="\${args} \${1}" | |
33953 | ;; | |
33954 | ||
33955 | -dynamiclib) | |
33956 | # skip these options | |
33957 | ;; | |
33958 | ||
33959 | -*) | |
33960 | echo "shared-ld: unhandled option '\${1}'" | |
33961 | exit 1 | |
33962 | ;; | |
33963 | ||
33964 | *.o | *.a) | |
33965 | # collect object files | |
33966 | objects="\${objects} \${1}" | |
33967 | ;; | |
33968 | ||
33969 | *) | |
33970 | echo "shared-ld: unhandled argument '\${1}'" | |
33971 | exit 1 | |
33972 | ;; | |
33973 | ||
33974 | esac | |
33975 | shift | |
33976 | done | |
33977 | ||
33978 | # | |
33979 | # Link one module containing all the others | |
33980 | # | |
33981 | if test \${verbose} = 1; then | |
33982 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
33983 | fi | |
33984 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
33985 | status=\$? | |
33986 | if test \${status} != 0; then | |
33987 | exit \${status} | |
33988 | fi | |
33989 | ||
33990 | # | |
33991 | # Link the shared library from the single module created | |
33992 | # | |
33993 | if test \${verbose} = 1; then | |
33994 | echo "cc -dynamiclib master.\$\$.o \${args}" | |
33995 | fi | |
33996 | c++ -dynamiclib master.\$\$.o \${args} | |
33997 | status=\$? | |
33998 | if test \${status} != 0; then | |
33999 | exit \${status} | |
34000 | fi | |
34001 | ||
34002 | # | |
34003 | # Remove intermediate module | |
34004 | # | |
34005 | rm -f master.\$\$.o | |
34006 | ||
34007 | exit 0 | |
34008 | EOF | |
34009 | chmod +x shared-ld-sh | |
34010 | ||
34011 | SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o" | |
34012 | SHARED_LD_CXX="$SHARED_LD_CC" | |
34013 | PIC_FLAG="-dynamic -fPIC" | |
34014 | ;; | |
34015 | ||
34016 | *-*-aix* ) | |
34017 | if test "x$GCC" != "xyes"; then | |
34018 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
34019 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
34020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34022 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
34023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34024 | else |
34025 | if test -n "$AIX_CXX_LD"; then | |
34026 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
34027 | else | |
e6cc62c6 VS |
34028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34029 | for as_dir in $PATH | |
34030 | do | |
34031 | IFS=$as_save_IFS | |
34032 | test -z "$as_dir" && as_dir=. | |
34033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34035 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
34036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34037 | break 2 | |
34038 | fi | |
34039 | done | |
34040 | done | |
34041 | ||
fe0895cf VS |
34042 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
34043 | fi | |
34044 | fi | |
e6cc62c6 | 34045 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 34046 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
34047 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
34048 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 34049 | else |
e6cc62c6 VS |
34050 | echo "$as_me:$LINENO: result: no" >&5 |
34051 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34052 | fi |
34053 | ||
34054 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
34055 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
34056 | fi | |
34057 | ;; | |
34058 | ||
34059 | *-*-beos* ) | |
34060 | SHARED_LD_CC="${LD} -shared -o" | |
34061 | SHARED_LD_CXX="${LD} -shared -o" | |
34062 | ;; | |
34063 | ||
34064 | *-*-irix* ) | |
34065 | if test "x$GCC" != "xyes"; then | |
34066 | PIC_FLAG="-KPIC" | |
34067 | fi | |
34068 | ;; | |
e6cc62c6 | 34069 | |
fe0895cf VS |
34070 | *-*-cygwin* | *-*-mingw32* ) |
34071 | PIC_FLAG="" | |
34072 | ;; | |
e6cc62c6 | 34073 | |
fe0895cf VS |
34074 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
34075 | *-*-sunos4* | \ | |
34076 | *-*-osf* | \ | |
34077 | *-*-dgux5* | \ | |
34078 | *-*-sysv5* ) | |
34079 | ;; | |
34080 | ||
34081 | *) | |
e6cc62c6 VS |
34082 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
34083 | echo "$as_me: error: unknown system type $host." >&2;} | |
34084 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
34085 | esac |
34086 | ||
fe0895cf | 34087 | |
e6cc62c6 VS |
34088 | |
34089 | ||
34090 | ||
34091 | ||
fe0895cf VS |
34092 | USE_SOVERSION=0 |
34093 | USE_SOVERLINUX=0 | |
34094 | USE_SOVERSOLARIS=0 | |
34095 | USE_SOSYMLINKS=0 | |
34096 | USE_MACVERSION=0 | |
34097 | SONAME_FLAG= | |
34098 | ||
34099 | case "${host}" in | |
34100 | *-*-linux* ) | |
34101 | SONAME_FLAG="-Wl,-soname," | |
34102 | USE_SOVERSION=1 | |
34103 | USE_SOVERLINUX=1 | |
34104 | USE_SOSYMLINKS=1 | |
34105 | ;; | |
34106 | ||
34107 | *-*-solaris2* ) | |
34108 | SONAME_FLAG="-h " | |
34109 | USE_SOVERSION=1 | |
34110 | USE_SOVERSOLARIS=1 | |
34111 | USE_SOSYMLINKS=1 | |
34112 | ;; | |
34113 | ||
34114 | *-*-darwin* ) | |
34115 | USE_MACVERSION=1 | |
34116 | USE_SOVERSION=1 | |
34117 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 34118 | ;; |
fe0895cf VS |
34119 | esac |
34120 | ||
fe0895cf | 34121 | |
e6cc62c6 VS |
34122 | |
34123 | ||
34124 | ||
34125 | ||
34126 | ||
34127 | ||
34128 | ||
49b0a3aa VS |
34129 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
34130 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
34131 | DEPS_TRACKING=0 | |
34132 | ||
fe0895cf | 34133 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
34134 | DEPSMODE=gcc |
34135 | DEPS_TRACKING=1 | |
34136 | echo "$as_me:$LINENO: result: gcc" >&5 | |
34137 | echo "${ECHO_T}gcc" >&6 | |
34138 | else | |
34139 | echo "$as_me:$LINENO: result: none" >&5 | |
34140 | echo "${ECHO_T}none" >&6 | |
34141 | fi | |
34142 | ||
34143 | if test $DEPS_TRACKING = 1 ; then | |
34144 | cat <<EOF >bk-deps | |
34145 | #!/bin/sh | |
34146 | ||
34147 | # This script is part of Bakefile (http://bakefile.sf.net) autoconf script. | |
34148 | # It is used to track C/C++ files dependencies in portable way. | |
34149 | # | |
34150 | # Permission is given to use this file in any way. | |
34151 | ||
34152 | DEPSMODE=$DEPSMODE | |
34153 | DEPSDIR=.deps | |
34154 | ||
34155 | mkdir -p \$DEPSDIR | |
34156 | ||
34157 | if test \$DEPSMODE = gcc ; then | |
34158 | \${*} -MMD | |
34159 | status=\${?} | |
34160 | if test \${status} != 0 ; then | |
34161 | exit \${status} | |
34162 | fi | |
34163 | # move created file to the location we want it in: | |
34164 | while test \${#} -gt 0; do | |
34165 | case "\${1}" in | |
34166 | -o ) | |
34167 | shift | |
34168 | objfile=\${1} | |
34169 | ;; | |
34170 | -* ) | |
34171 | ;; | |
34172 | * ) | |
34173 | srcfile=\${1} | |
34174 | ;; | |
34175 | esac | |
34176 | shift | |
34177 | done | |
34178 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34179 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
34180 | if test -f \$depfile ; then |
34181 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34182 | rm -f \$depfile | |
34183 | else | |
34184 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34185 | if test -f \$depfile ; then | |
34186 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34187 | rm -f \$depfile | |
34188 | fi | |
34189 | fi | |
49b0a3aa VS |
34190 | exit 0 |
34191 | else | |
34192 | \${*} | |
34193 | exit \${?} | |
34194 | fi | |
34195 | EOF | |
34196 | chmod +x bk-deps | |
fe0895cf | 34197 | fi |
fe0895cf | 34198 | |
e6cc62c6 VS |
34199 | |
34200 | ||
34201 | ||
fe0895cf VS |
34202 | RESCOMP= |
34203 | SETFILE= | |
34204 | ||
e6cc62c6 | 34205 | case ${host} in |
fe0895cf VS |
34206 | *-*-cygwin* | *-*-mingw32* ) |
34207 | if test "$build" != "$host" ; then | |
34208 | RESCOMP=$host_alias-windres | |
34209 | else | |
34210 | # Extract the first word of "windres", so it can be a program name with args. | |
34211 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
34212 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34214 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34216 | else |
34217 | if test -n "$RESCOMP"; then | |
34218 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34219 | else | |
e6cc62c6 VS |
34220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34221 | for as_dir in $PATH | |
34222 | do | |
34223 | IFS=$as_save_IFS | |
34224 | test -z "$as_dir" && as_dir=. | |
34225 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34227 | ac_cv_prog_RESCOMP="windres" | |
34228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34229 | break 2 | |
34230 | fi | |
34231 | done | |
34232 | done | |
34233 | ||
fe0895cf VS |
34234 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
34235 | fi | |
34236 | fi | |
e6cc62c6 | 34237 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34238 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34239 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34240 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34241 | else |
e6cc62c6 VS |
34242 | echo "$as_me:$LINENO: result: no" >&5 |
34243 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34244 | fi |
34245 | ||
34246 | fi | |
34247 | ;; | |
e6cc62c6 | 34248 | |
fe0895cf VS |
34249 | *-*-darwin* ) |
34250 | # Extract the first word of "Rez", so it can be a program name with args. | |
34251 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
34252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34254 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34256 | else |
34257 | if test -n "$RESCOMP"; then | |
34258 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34259 | else | |
e6cc62c6 VS |
34260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34261 | for as_dir in $PATH | |
34262 | do | |
34263 | IFS=$as_save_IFS | |
34264 | test -z "$as_dir" && as_dir=. | |
34265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34267 | ac_cv_prog_RESCOMP="Rez" | |
34268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34269 | break 2 | |
34270 | fi | |
34271 | done | |
34272 | done | |
34273 | ||
fe0895cf VS |
34274 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
34275 | fi | |
34276 | fi | |
e6cc62c6 | 34277 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34278 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34279 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34280 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34281 | else |
e6cc62c6 VS |
34282 | echo "$as_me:$LINENO: result: no" >&5 |
34283 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34284 | fi |
34285 | ||
34286 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34287 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
34288 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34289 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34290 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34292 | else |
34293 | if test -n "$SETFILE"; then | |
34294 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34295 | else | |
e6cc62c6 VS |
34296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34297 | for as_dir in $PATH | |
34298 | do | |
34299 | IFS=$as_save_IFS | |
34300 | test -z "$as_dir" && as_dir=. | |
34301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34302 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34303 | ac_cv_prog_SETFILE="SetFile" | |
34304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34305 | break 2 | |
34306 | fi | |
34307 | done | |
34308 | done | |
34309 | ||
fe0895cf VS |
34310 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
34311 | fi | |
34312 | fi | |
e6cc62c6 | 34313 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 34314 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
34315 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
34316 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 34317 | else |
e6cc62c6 VS |
34318 | echo "$as_me:$LINENO: result: no" >&5 |
34319 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34320 | fi |
34321 | ||
34322 | ;; | |
34323 | esac | |
34324 | ||
fe0895cf VS |
34325 | |
34326 | ||
e6cc62c6 VS |
34327 | |
34328 | ||
34329 | ||
34330 | ||
6b9d41a5 VS |
34331 | COND_UNICODE_1="#" |
34332 | if test "x$UNICODE" = "x1" ; then | |
34333 | COND_UNICODE_1= | |
34334 | fi | |
34335 | ||
34336 | COND_BUILD_DEBUG="#" | |
34337 | if test "x$BUILD" = "xdebug" ; then | |
34338 | COND_BUILD_DEBUG= | |
34339 | fi | |
34340 | ||
34341 | COND_WXUSE_REGEX_BUILTIN="#" | |
34342 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
34343 | COND_WXUSE_REGEX_BUILTIN= | |
34344 | fi | |
34345 | ||
34346 | COND_DEPS_TRACKING_1="#" | |
34347 | if test "x$DEPS_TRACKING" = "x1" ; then | |
34348 | COND_DEPS_TRACKING_1= | |
34349 | fi | |
34350 | ||
34351 | COND_DEPS_TRACKING_0="#" | |
34352 | if test "x$DEPS_TRACKING" = "x0" ; then | |
34353 | COND_DEPS_TRACKING_0= | |
34354 | fi | |
34355 | ||
34356 | COND_PLATFORM_UNIX_1="#" | |
34357 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
34358 | COND_PLATFORM_UNIX_1= | |
34359 | fi | |
34360 | ||
34361 | COND_PLATFORM_WIN32_1="#" | |
34362 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
34363 | COND_PLATFORM_WIN32_1= | |
fe0895cf | 34364 | fi |
e6cc62c6 | 34365 | |
9747f85d VS |
34366 | COND_WXUSE_LIBPNG_BUILTIN="#" |
34367 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
34368 | COND_WXUSE_LIBPNG_BUILTIN= | |
fe0895cf | 34369 | fi |
e6cc62c6 | 34370 | |
6b9d41a5 VS |
34371 | COND_BUILD_RELEASE="#" |
34372 | if test "x$BUILD" = "xrelease" ; then | |
34373 | COND_BUILD_RELEASE= | |
34374 | fi | |
34375 | ||
34376 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
34377 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
34378 | COND_WXUSE_LIBTIFF_BUILTIN= | |
34379 | fi | |
34380 | ||
34381 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
34382 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
34383 | COND_WXUSE_LIBJPEG_BUILTIN= | |
34384 | fi | |
34385 | ||
34386 | COND_WXUNIV_1="#" | |
34387 | if test "x$WXUNIV" = "x1" ; then | |
34388 | COND_WXUNIV_1= | |
34389 | fi | |
34390 | ||
9747f85d VS |
34391 | COND_WXUSE_ZLIB_BUILTIN="#" |
34392 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
34393 | COND_WXUSE_ZLIB_BUILTIN= | |
fe0895cf | 34394 | fi |
e6cc62c6 | 34395 | |
6b9d41a5 VS |
34396 | COND_PLATFORM_MAC_1="#" |
34397 | if test "x$PLATFORM_MAC" = "x1" ; then | |
34398 | COND_PLATFORM_MAC_1= | |
34399 | fi | |
34400 | ||
34401 | COND_WXUSE_ODBC_BUILTIN="#" | |
34402 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
34403 | COND_WXUSE_ODBC_BUILTIN= | |
34404 | fi | |
34405 | ||
34406 | COND_TOOLKIT_MAC="#" | |
34407 | if test "x$TOOLKIT" = "xMAC" ; then | |
34408 | COND_TOOLKIT_MAC= | |
34409 | fi | |
34410 | ||
34411 | COND_MONOLITHIC_0="#" | |
34412 | if test "x$MONOLITHIC" = "x0" ; then | |
34413 | COND_MONOLITHIC_0= | |
34414 | fi | |
34415 | ||
34416 | COND_PLATFORM_WIN32_0="#" | |
34417 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
34418 | COND_PLATFORM_WIN32_0= | |
34419 | fi | |
34420 | ||
34421 | COND_MONOLITHIC_1="#" | |
34422 | if test "x$MONOLITHIC" = "x1" ; then | |
34423 | COND_MONOLITHIC_1= | |
34424 | fi | |
34425 | ||
34426 | COND_USE_GUI_0="#" | |
34427 | if test "x$USE_GUI" = "x0" ; then | |
34428 | COND_USE_GUI_0= | |
fe0895cf | 34429 | fi |
e6cc62c6 | 34430 | |
9747f85d VS |
34431 | COND_USE_GUI_1="#" |
34432 | if test "x$USE_GUI" = "x1" ; then | |
34433 | COND_USE_GUI_1= | |
fe0895cf | 34434 | fi |
e6cc62c6 | 34435 | |
6b9d41a5 VS |
34436 | COND_SHARED_1="#" |
34437 | if test "x$SHARED" = "x1" ; then | |
34438 | COND_SHARED_1= | |
34439 | fi | |
34440 | ||
34441 | COND_SHARED_1_MONOLITHIC_0="#" | |
34442 | if test "x$SHARED" = "x1" -a \ | |
34443 | "x$MONOLITHIC" = "x0" ; then | |
34444 | COND_SHARED_1_MONOLITHIC_0= | |
34445 | fi | |
34446 | ||
34447 | COND_USE_SOVERLINUX_1="#" | |
34448 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
34449 | COND_USE_SOVERLINUX_1= | |
34450 | fi | |
34451 | ||
34452 | COND_USE_SOVERSOLARIS_1="#" | |
34453 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
34454 | COND_USE_SOVERSOLARIS_1= | |
34455 | fi | |
34456 | ||
34457 | COND_USE_SOSYMLINKS_1="#" | |
34458 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
34459 | COND_USE_SOSYMLINKS_1= | |
fe0895cf | 34460 | fi |
e6cc62c6 | 34461 | |
9747f85d VS |
34462 | COND_TOOLKIT_X11="#" |
34463 | if test "x$TOOLKIT" = "xX11" ; then | |
34464 | COND_TOOLKIT_X11= | |
e6cc62c6 VS |
34465 | fi |
34466 | ||
9747f85d VS |
34467 | COND_TOOLKIT_MGL="#" |
34468 | if test "x$TOOLKIT" = "xMGL" ; then | |
34469 | COND_TOOLKIT_MGL= | |
fe0895cf | 34470 | fi |
e6cc62c6 VS |
34471 | |
34472 | COND_TOOLKIT_GTK="#" | |
fe0895cf | 34473 | if test "x$TOOLKIT" = "xGTK" ; then |
e6cc62c6 | 34474 | COND_TOOLKIT_GTK= |
fe0895cf | 34475 | fi |
e6cc62c6 | 34476 | |
e6cc62c6 | 34477 | COND_TOOLKIT_MSW="#" |
fe0895cf | 34478 | if test "x$TOOLKIT" = "xMSW" ; then |
e6cc62c6 | 34479 | COND_TOOLKIT_MSW= |
fe0895cf | 34480 | fi |
e6cc62c6 | 34481 | |
9747f85d VS |
34482 | COND_USE_SOVERSION_1_PLATFORM_MACOSX_0="#" |
34483 | if test "x$USE_SOVERSION" = "x1" -a \ | |
34484 | "x$PLATFORM_MACOSX" = "x0" ; then | |
34485 | COND_USE_SOVERSION_1_PLATFORM_MACOSX_0= | |
fe0895cf | 34486 | fi |
e6cc62c6 | 34487 | |
9747f85d VS |
34488 | COND_USE_SOVERSION_1_PLATFORM_MACOSX_1="#" |
34489 | if test "x$USE_SOVERSION" = "x1" -a \ | |
34490 | "x$PLATFORM_MACOSX" = "x1" ; then | |
34491 | COND_USE_SOVERSION_1_PLATFORM_MACOSX_1= | |
fe0895cf | 34492 | fi |
e6cc62c6 | 34493 | |
6b9d41a5 VS |
34494 | COND_USE_SOVERSION_0="#" |
34495 | if test "x$USE_SOVERSION" = "x0" ; then | |
34496 | COND_USE_SOVERSION_0= | |
fe0895cf | 34497 | fi |
e6cc62c6 | 34498 | |
9747f85d VS |
34499 | COND_SHARED_0_USE_GUI_1_MONOLITHIC_0="#" |
34500 | if test "x$SHARED" = "x0" -a \ | |
34501 | "x$USE_GUI" = "x1" -a \ | |
34502 | "x$MONOLITHIC" = "x0" ; then | |
34503 | COND_SHARED_0_USE_GUI_1_MONOLITHIC_0= | |
fe0895cf | 34504 | fi |
e6cc62c6 | 34505 | |
e6cc62c6 | 34506 | COND_PLATFORM_MACOSX_1="#" |
fe0895cf | 34507 | if test "x$PLATFORM_MACOSX" = "x1" ; then |
e6cc62c6 | 34508 | COND_PLATFORM_MACOSX_1= |
fe0895cf | 34509 | fi |
e6cc62c6 | 34510 | |
9747f85d VS |
34511 | COND_SHARED_1_USE_GUI_1_MONOLITHIC_0="#" |
34512 | if test "x$SHARED" = "x1" -a \ | |
34513 | "x$USE_GUI" = "x1" -a \ | |
34514 | "x$MONOLITHIC" = "x0" ; then | |
34515 | COND_SHARED_1_USE_GUI_1_MONOLITHIC_0= | |
fe0895cf | 34516 | fi |
e6cc62c6 | 34517 | |
9747f85d VS |
34518 | COND_TOOLKIT_MOTIF="#" |
34519 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
34520 | COND_TOOLKIT_MOTIF= | |
fe0895cf | 34521 | fi |
e6cc62c6 | 34522 | |
9747f85d VS |
34523 | COND_TOOLKIT_COCOA="#" |
34524 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
34525 | COND_TOOLKIT_COCOA= | |
fe0895cf | 34526 | fi |
e6cc62c6 | 34527 | |
9747f85d VS |
34528 | COND_TOOLKIT_OS2="#" |
34529 | if test "x$TOOLKIT" = "xOS2" ; then | |
34530 | COND_TOOLKIT_OS2= | |
fe0895cf | 34531 | fi |
e6cc62c6 | 34532 | |
9747f85d VS |
34533 | COND_SHARED_1_MONOLITHIC_1="#" |
34534 | if test "x$SHARED" = "x1" -a \ | |
34535 | "x$MONOLITHIC" = "x1" ; then | |
34536 | COND_SHARED_1_MONOLITHIC_1= | |
34537 | fi | |
34538 | ||
34539 | COND_SHARED_0_MONOLITHIC_1="#" | |
34540 | if test "x$SHARED" = "x0" -a \ | |
34541 | "x$MONOLITHIC" = "x1" ; then | |
34542 | COND_SHARED_0_MONOLITHIC_1= | |
34543 | fi | |
34544 | ||
e6cc62c6 | 34545 | COND_USE_GUI_1_WXUNIV_0="#" |
fe0895cf VS |
34546 | if test "x$USE_GUI" = "x1" -a \ |
34547 | "x$WXUNIV" = "x0" ; then | |
e6cc62c6 | 34548 | COND_USE_GUI_1_WXUNIV_0= |
fe0895cf | 34549 | fi |
e6cc62c6 VS |
34550 | |
34551 | COND_USE_GUI_1_WXUNIV_1="#" | |
fe0895cf VS |
34552 | if test "x$USE_GUI" = "x1" -a \ |
34553 | "x$WXUNIV" = "x1" ; then | |
e6cc62c6 VS |
34554 | COND_USE_GUI_1_WXUNIV_1= |
34555 | fi | |
34556 | ||
9747f85d | 34557 | COND_SHARED_0_MONOLITHIC_0="#" |
e6cc62c6 | 34558 | if test "x$SHARED" = "x0" -a \ |
9747f85d VS |
34559 | "x$MONOLITHIC" = "x0" ; then |
34560 | COND_SHARED_0_MONOLITHIC_0= | |
fe0895cf | 34561 | fi |
e6cc62c6 | 34562 | |
9747f85d VS |
34563 | COND_SHARED_0="#" |
34564 | if test "x$SHARED" = "x0" ; then | |
34565 | COND_SHARED_0= | |
34566 | fi | |
34567 | ||
fe0895cf VS |
34568 | |
34569 | ||
34570 | ||
34571 | if test "$GXX" = yes ; then | |
34572 | CXXWARNINGS="-Wall" | |
34573 | fi | |
34574 | ||
34575 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
34576 | ||
34577 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` | |
34578 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
34579 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
34580 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
34581 | ||
34582 | LDFLAGS="$LDFLAGS $PROFILE" | |
34583 | ||
34584 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
34585 | ||
34586 | ||
34587 | ||
34588 | ||
34589 | ||
34590 | ||
34591 | ||
34592 | ||
34593 | ||
34594 | ||
34595 | ||
34596 | ||
34597 | ||
34598 | ||
34599 | ||
34600 | ||
34601 | ||
34602 | ||
34603 | ||
34604 | ||
34605 | ||
34606 | ||
34607 | ||
34608 | ||
34609 | ||
34610 | ||
34611 | ||
34612 | ||
34613 | ||
34614 | ||
34615 | ||
34616 | ||
34617 | ||
34618 | ||
34619 | ||
34620 | ||
34621 | ||
34622 | ||
34623 | ||
34624 | ||
34625 | ||
34626 | ||
34627 | ||
34628 | ||
34629 | ||
34630 | ||
34631 | ||
34632 | ||
34633 | ||
34634 | ||
34635 | ||
34636 | ||
34637 | ||
34638 | ||
34639 | ||
34640 | ||
34641 | ||
34642 | ||
34643 | ||
34644 | ||
34645 | ||
34646 | ||
34647 | ||
34648 | ||
34649 | ||
34650 | ||
34651 | ||
34652 | ||
34653 | ||
34654 | ||
34655 | ||
34656 | ||
34657 | ||
34658 | ||
34659 | ||
34660 | ||
34661 | ||
34662 | ||
34663 | ||
34664 | ||
34665 | ||
34666 | ||
34667 | ||
34668 | ||
34669 | ||
34670 | ||
34671 | ||
34672 | ||
34673 | ||
34674 | ||
34675 | ||
34676 | ||
34677 | ||
34678 | ||
34679 | ||
34680 | ||
fe0895cf | 34681 | |
e6cc62c6 VS |
34682 | |
34683 | ||
34684 | ||
34685 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
34686 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
34687 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
34688 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
34689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34690 | else | |
34691 | cat >conftest.make <<\_ACEOF | |
34692 | all: | |
34693 | @echo 'ac_maketemp="$(MAKE)"' | |
34694 | _ACEOF | |
34695 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
34696 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
34697 | if test -n "$ac_maketemp"; then | |
34698 | eval ac_cv_prog_make_${ac_make}_set=yes | |
34699 | else | |
34700 | eval ac_cv_prog_make_${ac_make}_set=no | |
34701 | fi | |
34702 | rm -f conftest.make | |
34703 | fi | |
34704 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
34705 | echo "$as_me:$LINENO: result: yes" >&5 | |
34706 | echo "${ECHO_T}yes" >&6 | |
34707 | SET_MAKE= | |
34708 | else | |
34709 | echo "$as_me:$LINENO: result: no" >&5 | |
34710 | echo "${ECHO_T}no" >&6 | |
34711 | SET_MAKE="MAKE=${MAKE-make}" | |
34712 | fi | |
34713 | ||
34714 | ||
34715 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
34716 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
34717 | fi | |
34718 | ||
34719 | ac_config_headers="$ac_config_headers setup.h" | |
34720 | ||
34721 | ||
34722 | ac_config_files="$ac_config_files wx-config version-script Makefile" | |
34723 | ||
34724 | ||
34725 | ac_config_commands="$ac_config_commands default" | |
34726 | ||
34727 | ||
34728 | ||
9747f85d VS |
34729 | for subdir in samples demos utils contrib ; do |
34730 | if test -d ${srcdir}/${subdir} ; then | |
34731 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
34732 | for mkin in $makefiles ; do | |
34733 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
34734 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 34735 | |
9747f85d VS |
34736 | done |
34737 | fi | |
34738 | done | |
e6cc62c6 VS |
34739 | |
34740 | ||
34741 | cat >confcache <<\_ACEOF | |
34742 | # This file is a shell script that caches the results of configure | |
34743 | # tests run on this system so they can be shared between configure | |
34744 | # scripts and configure runs, see configure's option --config-cache. | |
34745 | # It is not useful on other systems. If it contains results you don't | |
34746 | # want to keep, you may remove or edit it. | |
34747 | # | |
34748 | # config.status only pays attention to the cache file if you give it | |
34749 | # the --recheck option to rerun configure. | |
34750 | # | |
34751 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
34752 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
34753 | # following values. | |
34754 | ||
34755 | _ACEOF | |
34756 | ||
34757 | # The following way of writing the cache mishandles newlines in values, | |
34758 | # but we know of no workaround that is simple, portable, and efficient. | |
34759 | # So, don't put newlines in cache variables' values. | |
34760 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
34761 | # and sets the high bit in the cache file unless we assign to the vars. | |
34762 | { | |
34763 | (set) 2>&1 | | |
34764 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
34765 | *ac_space=\ *) | |
34766 | # `set' does not quote correctly, so add quotes (double-quote | |
34767 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
34768 | sed -n \ | |
34769 | "s/'/'\\\\''/g; | |
34770 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
34771 | ;; | |
34772 | *) | |
34773 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
34774 | sed -n \ | |
34775 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
34776 | ;; | |
34777 | esac; | |
34778 | } | | |
34779 | sed ' | |
34780 | t clear | |
34781 | : clear | |
34782 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
34783 | t end | |
34784 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
34785 | : end' >>confcache | |
34786 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
34787 | if test -w $cache_file; then | |
34788 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
34789 | cat confcache >$cache_file | |
34790 | else | |
34791 | echo "not updating unwritable cache $cache_file" | |
34792 | fi | |
34793 | fi | |
34794 | rm -f confcache | |
34795 | ||
34796 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
34797 | # Let make expand exec_prefix. | |
34798 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
34799 | ||
34800 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
34801 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
34802 | # trailing colons and then remove the whole line if VPATH becomes empty | |
34803 | # (actually we leave an empty line to preserve line numbers). | |
34804 | if test "x$srcdir" = x.; then | |
34805 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
34806 | s/:*\$(srcdir):*/:/; | |
34807 | s/:*\${srcdir}:*/:/; | |
34808 | s/:*@srcdir@:*/:/; | |
34809 | s/^\([^=]*=[ ]*\):*/\1/; | |
34810 | s/:*$//; | |
34811 | s/^[^=]*=[ ]*$//; | |
34812 | }' | |
34813 | fi | |
34814 | ||
34815 | DEFS=-DHAVE_CONFIG_H | |
34816 | ||
34817 | ac_libobjs= | |
34818 | ac_ltlibobjs= | |
34819 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
34820 | # 1. Remove the extension, and $U if already installed. | |
34821 | ac_i=`echo "$ac_i" | | |
34822 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
34823 | # 2. Add them. | |
34824 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
34825 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
34826 | done | |
34827 | LIBOBJS=$ac_libobjs | |
34828 | ||
34829 | LTLIBOBJS=$ac_ltlibobjs | |
34830 | ||
34831 | ||
34832 | ||
34833 | : ${CONFIG_STATUS=./config.status} | |
34834 | ac_clean_files_save=$ac_clean_files | |
34835 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
34836 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
34837 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
34838 | cat >$CONFIG_STATUS <<_ACEOF | |
34839 | #! $SHELL | |
34840 | # Generated by $as_me. | |
34841 | # Run this file to recreate the current configuration. | |
34842 | # Compiler output produced by configure, useful for debugging | |
34843 | # configure, is in config.log if it exists. | |
34844 | ||
34845 | debug=false | |
34846 | ac_cs_recheck=false | |
34847 | ac_cs_silent=false | |
34848 | SHELL=\${CONFIG_SHELL-$SHELL} | |
34849 | _ACEOF | |
34850 | ||
34851 | cat >>$CONFIG_STATUS <<\_ACEOF | |
34852 | ## --------------------- ## | |
34853 | ## M4sh Initialization. ## | |
34854 | ## --------------------- ## | |
34855 | ||
34856 | # Be Bourne compatible | |
34857 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
34858 | emulate sh | |
34859 | NULLCMD=: | |
34860 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
34861 | # is contrary to our usage. Disable this feature. | |
34862 | alias -g '${1+"$@"}'='"$@"' | |
34863 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
34864 | set -o posix | |
34865 | fi | |
34866 | ||
34867 | # Support unset when possible. | |
34868 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
34869 | as_unset=unset | |
34870 | else | |
34871 | as_unset=false | |
34872 | fi | |
34873 | ||
34874 | ||
34875 | # Work around bugs in pre-3.0 UWIN ksh. | |
34876 | $as_unset ENV MAIL MAILPATH | |
34877 | PS1='$ ' | |
34878 | PS2='> ' | |
34879 | PS4='+ ' | |
34880 | ||
34881 | # NLS nuisances. | |
34882 | for as_var in \ | |
34883 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
34884 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
34885 | LC_TELEPHONE LC_TIME | |
34886 | do | |
34887 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
34888 | eval $as_var=C; export $as_var | |
34889 | else | |
34890 | $as_unset $as_var | |
34891 | fi | |
34892 | done | |
34893 | ||
34894 | # Required to use basename. | |
34895 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
34896 | as_expr=expr | |
34897 | else | |
34898 | as_expr=false | |
34899 | fi | |
34900 | ||
34901 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
34902 | as_basename=basename | |
34903 | else | |
34904 | as_basename=false | |
34905 | fi | |
34906 | ||
34907 | ||
34908 | # Name of the executable. | |
34909 | as_me=`$as_basename "$0" || | |
34910 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
34911 | X"$0" : 'X\(//\)$' \| \ | |
34912 | X"$0" : 'X\(/\)$' \| \ | |
34913 | . : '\(.\)' 2>/dev/null || | |
34914 | echo X/"$0" | | |
34915 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
34916 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
34917 | /^X\/\(\/\).*/{ s//\1/; q; } | |
34918 | s/.*/./; q'` | |
34919 | ||
34920 | ||
34921 | # PATH needs CR, and LINENO needs CR and PATH. | |
34922 | # Avoid depending upon Character Ranges. | |
34923 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
34924 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
34925 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
34926 | as_cr_digits='0123456789' | |
34927 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
34928 | ||
34929 | # The user is always right. | |
34930 | if test "${PATH_SEPARATOR+set}" != set; then | |
34931 | echo "#! /bin/sh" >conf$$.sh | |
34932 | echo "exit 0" >>conf$$.sh | |
34933 | chmod +x conf$$.sh | |
34934 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
34935 | PATH_SEPARATOR=';' | |
34936 | else | |
34937 | PATH_SEPARATOR=: | |
34938 | fi | |
34939 | rm -f conf$$.sh | |
34940 | fi | |
34941 | ||
34942 | ||
34943 | as_lineno_1=$LINENO | |
34944 | as_lineno_2=$LINENO | |
34945 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
34946 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
34947 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
34948 | # Find who we are. Look in the path if we contain no path at all | |
34949 | # relative or not. | |
34950 | case $0 in | |
34951 | *[\\/]* ) as_myself=$0 ;; | |
34952 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34953 | for as_dir in $PATH | |
34954 | do | |
34955 | IFS=$as_save_IFS | |
34956 | test -z "$as_dir" && as_dir=. | |
34957 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
34958 | done | |
34959 | ||
34960 | ;; | |
34961 | esac | |
34962 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
34963 | # in which case we are not to be found in the path. | |
34964 | if test "x$as_myself" = x; then | |
34965 | as_myself=$0 | |
34966 | fi | |
34967 | if test ! -f "$as_myself"; then | |
34968 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
34969 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
34970 | { (exit 1); exit 1; }; } | |
34971 | fi | |
34972 | case $CONFIG_SHELL in | |
34973 | '') | |
34974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34975 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
34976 | do | |
34977 | IFS=$as_save_IFS | |
34978 | test -z "$as_dir" && as_dir=. | |
34979 | for as_base in sh bash ksh sh5; do | |
34980 | case $as_dir in | |
34981 | /*) | |
34982 | if ("$as_dir/$as_base" -c ' | |
34983 | as_lineno_1=$LINENO | |
34984 | as_lineno_2=$LINENO | |
34985 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
34986 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
34987 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
34988 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
34989 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
34990 | CONFIG_SHELL=$as_dir/$as_base | |
34991 | export CONFIG_SHELL | |
34992 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
34993 | fi;; | |
34994 | esac | |
34995 | done | |
34996 | done | |
34997 | ;; | |
34998 | esac | |
34999 | ||
35000 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
35001 | # uniformly replaced by the line number. The first 'sed' inserts a | |
35002 | # line-number line before each line; the second 'sed' does the real | |
35003 | # work. The second script uses 'N' to pair each line-number line | |
35004 | # with the numbered line, and appends trailing '-' during | |
35005 | # substitution so that $LINENO is not a special case at line end. | |
35006 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
35007 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
35008 | sed '=' <$as_myself | | |
35009 | sed ' | |
35010 | N | |
35011 | s,$,-, | |
35012 | : loop | |
35013 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
35014 | t loop | |
35015 | s,-$,, | |
35016 | s,^['$as_cr_digits']*\n,, | |
35017 | ' >$as_me.lineno && | |
35018 | chmod +x $as_me.lineno || | |
35019 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
35020 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
35021 | { (exit 1); exit 1; }; } | |
35022 | ||
35023 | # Don't try to exec as it changes $[0], causing all sort of problems | |
35024 | # (the dirname of $[0] is not the place where we might find the | |
35025 | # original and so on. Autoconf is especially sensible to this). | |
35026 | . ./$as_me.lineno | |
35027 | # Exit status is that of the last command. | |
35028 | exit | |
35029 | } | |
35030 | ||
35031 | ||
35032 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
35033 | *c*,-n*) ECHO_N= ECHO_C=' | |
35034 | ' ECHO_T=' ' ;; | |
35035 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
35036 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
35037 | esac | |
35038 | ||
35039 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35040 | as_expr=expr | |
35041 | else | |
35042 | as_expr=false | |
35043 | fi | |
35044 | ||
35045 | rm -f conf$$ conf$$.exe conf$$.file | |
35046 | echo >conf$$.file | |
35047 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
35048 | # We could just check for DJGPP; but this test a) works b) is more generic | |
35049 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
35050 | if test -f conf$$.exe; then | |
35051 | # Don't use ln at all; we don't have any links | |
35052 | as_ln_s='cp -p' | |
35053 | else | |
35054 | as_ln_s='ln -s' | |
35055 | fi | |
35056 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35057 | as_ln_s=ln | |
35058 | else | |
35059 | as_ln_s='cp -p' | |
35060 | fi | |
35061 | rm -f conf$$ conf$$.exe conf$$.file | |
35062 | ||
35063 | if mkdir -p . 2>/dev/null; then | |
35064 | as_mkdir_p=: | |
35065 | else | |
35066 | as_mkdir_p=false | |
35067 | fi | |
35068 | ||
35069 | as_executable_p="test -f" | |
35070 | ||
35071 | # Sed expression to map a string onto a valid CPP name. | |
35072 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35073 | ||
35074 | # Sed expression to map a string onto a valid variable name. | |
35075 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35076 | ||
35077 | ||
35078 | # IFS | |
35079 | # We need space, tab and new line, in precisely that order. | |
35080 | as_nl=' | |
35081 | ' | |
35082 | IFS=" $as_nl" | |
35083 | ||
35084 | # CDPATH. | |
35085 | $as_unset CDPATH | |
35086 | ||
35087 | exec 6>&1 | |
35088 | ||
35089 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35090 | # report actual input values of CONFIG_FILES etc. instead of their | |
35091 | # values after options handling. Logging --version etc. is OK. | |
35092 | exec 5>>config.log | |
35093 | { | |
35094 | echo | |
35095 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35096 | ## Running $as_me. ## | |
35097 | _ASBOX | |
35098 | } >&5 | |
35099 | cat >&5 <<_CSEOF | |
35100 | ||
35101 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35102 | generated by GNU Autoconf 2.57. Invocation command line was | |
35103 | ||
35104 | CONFIG_FILES = $CONFIG_FILES | |
35105 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35106 | CONFIG_LINKS = $CONFIG_LINKS | |
35107 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35108 | $ $0 $@ | |
35109 | ||
35110 | _CSEOF | |
35111 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35112 | echo >&5 | |
35113 | _ACEOF | |
35114 | ||
35115 | # Files that config.status was made for. | |
35116 | if test -n "$ac_config_files"; then | |
35117 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35118 | fi | |
35119 | ||
35120 | if test -n "$ac_config_headers"; then | |
35121 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35122 | fi | |
35123 | ||
35124 | if test -n "$ac_config_links"; then | |
35125 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35126 | fi | |
35127 | ||
35128 | if test -n "$ac_config_commands"; then | |
35129 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35130 | fi | |
35131 | ||
35132 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35133 | ||
35134 | ac_cs_usage="\ | |
35135 | \`$as_me' instantiates files from templates according to the | |
35136 | current configuration. | |
35137 | ||
35138 | Usage: $0 [OPTIONS] [FILE]... | |
35139 | ||
35140 | -h, --help print this help, then exit | |
35141 | -V, --version print version number, then exit | |
35142 | -q, --quiet do not print progress messages | |
35143 | -d, --debug don't remove temporary files | |
35144 | --recheck update $as_me by reconfiguring in the same conditions | |
35145 | --file=FILE[:TEMPLATE] | |
35146 | instantiate the configuration file FILE | |
35147 | --header=FILE[:TEMPLATE] | |
35148 | instantiate the configuration header FILE | |
35149 | ||
35150 | Configuration files: | |
35151 | $config_files | |
35152 | ||
35153 | Configuration headers: | |
35154 | $config_headers | |
35155 | ||
35156 | Configuration commands: | |
35157 | $config_commands | |
35158 | ||
35159 | Report bugs to <bug-autoconf@gnu.org>." | |
35160 | _ACEOF | |
35161 | ||
35162 | cat >>$CONFIG_STATUS <<_ACEOF | |
35163 | ac_cs_version="\\ | |
35164 | wxWindows config.status 2.5.0 | |
35165 | configured by $0, generated by GNU Autoconf 2.57, | |
35166 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
35167 | ||
35168 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
35169 | Free Software Foundation, Inc. | |
35170 | This config.status script is free software; the Free Software Foundation | |
35171 | gives unlimited permission to copy, distribute and modify it." | |
35172 | srcdir=$srcdir | |
35173 | INSTALL="$INSTALL" | |
35174 | _ACEOF | |
35175 | ||
35176 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35177 | # If no file are specified by the user, then we need to provide default | |
35178 | # value. By we need to know if files were specified by the user. | |
35179 | ac_need_defaults=: | |
35180 | while test $# != 0 | |
35181 | do | |
35182 | case $1 in | |
35183 | --*=*) | |
35184 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
35185 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
35186 | ac_shift=: | |
35187 | ;; | |
35188 | -*) | |
35189 | ac_option=$1 | |
35190 | ac_optarg=$2 | |
35191 | ac_shift=shift | |
35192 | ;; | |
35193 | *) # This is not an option, so the user has probably given explicit | |
35194 | # arguments. | |
35195 | ac_option=$1 | |
35196 | ac_need_defaults=false;; | |
35197 | esac | |
35198 | ||
35199 | case $ac_option in | |
35200 | # Handling of the options. | |
35201 | _ACEOF | |
35202 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35203 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
35204 | ac_cs_recheck=: ;; | |
35205 | --version | --vers* | -V ) | |
35206 | echo "$ac_cs_version"; exit 0 ;; | |
35207 | --he | --h) | |
35208 | # Conflict between --help and --header | |
35209 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
35210 | Try \`$0 --help' for more information." >&5 | |
35211 | echo "$as_me: error: ambiguous option: $1 | |
35212 | Try \`$0 --help' for more information." >&2;} | |
35213 | { (exit 1); exit 1; }; };; | |
35214 | --help | --hel | -h ) | |
35215 | echo "$ac_cs_usage"; exit 0 ;; | |
35216 | --debug | --d* | -d ) | |
35217 | debug=: ;; | |
35218 | --file | --fil | --fi | --f ) | |
35219 | $ac_shift | |
35220 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
35221 | ac_need_defaults=false;; | |
35222 | --header | --heade | --head | --hea ) | |
35223 | $ac_shift | |
35224 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
35225 | ac_need_defaults=false;; | |
35226 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
35227 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
35228 | ac_cs_silent=: ;; | |
35229 | ||
35230 | # This is an error. | |
35231 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
35232 | Try \`$0 --help' for more information." >&5 | |
35233 | echo "$as_me: error: unrecognized option: $1 | |
35234 | Try \`$0 --help' for more information." >&2;} | |
35235 | { (exit 1); exit 1; }; } ;; | |
35236 | ||
35237 | *) ac_config_targets="$ac_config_targets $1" ;; | |
35238 | ||
35239 | esac | |
35240 | shift | |
35241 | done | |
35242 | ||
35243 | ac_configure_extra_args= | |
35244 | ||
35245 | if $ac_cs_silent; then | |
35246 | exec 6>/dev/null | |
35247 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
35248 | fi |
35249 | ||
e6cc62c6 VS |
35250 | _ACEOF |
35251 | cat >>$CONFIG_STATUS <<_ACEOF | |
35252 | if \$ac_cs_recheck; then | |
35253 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
35254 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
35255 | fi |
35256 | ||
e6cc62c6 | 35257 | _ACEOF |
fe0895cf | 35258 | |
e6cc62c6 | 35259 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 35260 | # |
e6cc62c6 | 35261 | # INIT-COMMANDS section. |
10f2d63a | 35262 | # |
10f2d63a | 35263 | |
a0b9e27f | 35264 | |
e6cc62c6 VS |
35265 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
35266 | LN_S="${LN_S}" | |
10f2d63a | 35267 | |
10f2d63a | 35268 | |
10f2d63a | 35269 | |
e6cc62c6 | 35270 | _ACEOF |
8284b0c5 | 35271 | |
52127426 | 35272 | |
247f5006 | 35273 | |
e6cc62c6 VS |
35274 | cat >>$CONFIG_STATUS <<\_ACEOF |
35275 | for ac_config_target in $ac_config_targets | |
247f5006 | 35276 | do |
e6cc62c6 VS |
35277 | case "$ac_config_target" in |
35278 | # Handling of arguments. | |
35279 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
35280 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
35281 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 35282 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
35283 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
35284 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
35285 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
35286 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
35287 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
35288 | esac |
35289 | done | |
35290 | ||
e6cc62c6 VS |
35291 | # If the user did not use the arguments to specify the items to instantiate, |
35292 | # then the envvar interface is used. Set only those that are not. | |
35293 | # We use the long form for the default assignment because of an extremely | |
35294 | # bizarre bug on SunOS 4.1.3. | |
35295 | if $ac_need_defaults; then | |
35296 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
35297 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
35298 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
35299 | fi | |
35300 | ||
35301 | # Have a temporary directory for convenience. Make it in the build tree | |
35302 | # simply because there is no reason to put it here, and in addition, | |
35303 | # creating and moving files from /tmp can sometimes cause problems. | |
35304 | # Create a temporary directory, and hook for its removal unless debugging. | |
35305 | $debug || | |
35306 | { | |
35307 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
35308 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
35309 | } | |
247f5006 | 35310 | |
e6cc62c6 | 35311 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 35312 | |
e6cc62c6 VS |
35313 | { |
35314 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
35315 | test -n "$tmp" && test -d "$tmp" | |
35316 | } || | |
35317 | { | |
35318 | tmp=./confstat$$-$RANDOM | |
35319 | (umask 077 && mkdir $tmp) | |
35320 | } || | |
35321 | { | |
35322 | echo "$me: cannot create a temporary directory in ." >&2 | |
35323 | { (exit 1); exit 1; } | |
35324 | } | |
35325 | ||
35326 | _ACEOF | |
35327 | ||
35328 | cat >>$CONFIG_STATUS <<_ACEOF | |
35329 | ||
35330 | # | |
35331 | # CONFIG_FILES section. | |
35332 | # | |
247f5006 | 35333 | |
e6cc62c6 VS |
35334 | # No need to generate the scripts if there are no CONFIG_FILES. |
35335 | # This happens for instance when ./config.status config.h | |
35336 | if test -n "\$CONFIG_FILES"; then | |
35337 | # Protect against being on the right side of a sed subst in config.status. | |
35338 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
35339 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
35340 | s,@SHELL@,$SHELL,;t t | |
35341 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
35342 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
35343 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
35344 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
35345 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
35346 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
35347 | s,@exec_prefix@,$exec_prefix,;t t | |
35348 | s,@prefix@,$prefix,;t t | |
35349 | s,@program_transform_name@,$program_transform_name,;t t | |
35350 | s,@bindir@,$bindir,;t t | |
35351 | s,@sbindir@,$sbindir,;t t | |
35352 | s,@libexecdir@,$libexecdir,;t t | |
35353 | s,@datadir@,$datadir,;t t | |
35354 | s,@sysconfdir@,$sysconfdir,;t t | |
35355 | s,@sharedstatedir@,$sharedstatedir,;t t | |
35356 | s,@localstatedir@,$localstatedir,;t t | |
35357 | s,@libdir@,$libdir,;t t | |
35358 | s,@includedir@,$includedir,;t t | |
35359 | s,@oldincludedir@,$oldincludedir,;t t | |
35360 | s,@infodir@,$infodir,;t t | |
35361 | s,@mandir@,$mandir,;t t | |
35362 | s,@build_alias@,$build_alias,;t t | |
35363 | s,@host_alias@,$host_alias,;t t | |
35364 | s,@target_alias@,$target_alias,;t t | |
35365 | s,@DEFS@,$DEFS,;t t | |
35366 | s,@ECHO_C@,$ECHO_C,;t t | |
35367 | s,@ECHO_N@,$ECHO_N,;t t | |
35368 | s,@ECHO_T@,$ECHO_T,;t t | |
35369 | s,@LIBS@,$LIBS,;t t | |
35370 | s,@build@,$build,;t t | |
35371 | s,@build_cpu@,$build_cpu,;t t | |
35372 | s,@build_vendor@,$build_vendor,;t t | |
35373 | s,@build_os@,$build_os,;t t | |
35374 | s,@host@,$host,;t t | |
35375 | s,@host_cpu@,$host_cpu,;t t | |
35376 | s,@host_vendor@,$host_vendor,;t t | |
35377 | s,@host_os@,$host_os,;t t | |
35378 | s,@target@,$target,;t t | |
35379 | s,@target_cpu@,$target_cpu,;t t | |
35380 | s,@target_vendor@,$target_vendor,;t t | |
35381 | s,@target_os@,$target_os,;t t | |
35382 | s,@CC@,$CC,;t t | |
35383 | s,@CFLAGS@,$CFLAGS,;t t | |
35384 | s,@LDFLAGS@,$LDFLAGS,;t t | |
35385 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
35386 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
35387 | s,@EXEEXT@,$EXEEXT,;t t | |
35388 | s,@OBJEXT@,$OBJEXT,;t t | |
35389 | s,@CPP@,$CPP,;t t | |
35390 | s,@EGREP@,$EGREP,;t t | |
35391 | s,@CXX@,$CXX,;t t | |
35392 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
35393 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
35394 | s,@RANLIB@,$RANLIB,;t t | |
35395 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
35396 | s,@AR@,$AR,;t t | |
35397 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
35398 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
35399 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
35400 | s,@STRIP@,$STRIP,;t t | |
35401 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
35402 | s,@YACC@,$YACC,;t t | |
35403 | s,@LEX@,$LEX,;t t | |
35404 | s,@LEXLIB@,$LEXLIB,;t t | |
35405 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
35406 | s,@LN_S@,$LN_S,;t t | |
35407 | s,@CXXCPP@,$CXXCPP,;t t | |
35408 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
35409 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
35410 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
35411 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
35412 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
35413 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
35414 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
35415 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
35416 | s,@X_LIBS@,$X_LIBS,;t t | |
35417 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
35418 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
35419 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
35420 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
35421 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
35422 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
35423 | s,@RESCOMP@,$RESCOMP,;t t | |
35424 | s,@DEREZ@,$DEREZ,;t t | |
35425 | s,@SETFILE@,$SETFILE,;t t | |
35426 | s,@LIBICONV@,$LIBICONV,;t t | |
35427 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
35428 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
35429 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
35430 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
35431 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
35432 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
35433 | s,@WXUNIV@,$WXUNIV,;t t | |
35434 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
35435 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
35436 | s,@UNICODE@,$UNICODE,;t t | |
35437 | s,@BUILD@,$BUILD,;t t | |
35438 | s,@SHARED@,$SHARED,;t t | |
35439 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
35440 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
35441 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
35442 | s,@SET_MAKE@,$SET_MAKE,;t t | |
35443 | s,@MAKE_SET@,$MAKE_SET,;t t | |
35444 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
6b9d41a5 | 35445 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
35446 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
35447 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
35448 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
35449 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
35450 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
35451 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
35452 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
35453 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
35454 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
35455 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
35456 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
35457 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
35458 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
35459 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
35460 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
35461 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 35462 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
6b9d41a5 VS |
35463 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
35464 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
35465 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
35466 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
35467 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
35468 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
35469 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
9747f85d | 35470 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t |
6b9d41a5 VS |
35471 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
35472 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
35473 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
35474 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t | |
e6cc62c6 | 35475 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t |
6b9d41a5 | 35476 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e6cc62c6 | 35477 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t |
6b9d41a5 VS |
35478 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
35479 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
35480 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
35481 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
35482 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
35483 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
35484 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
35485 | s,@COND_SHARED_1_MONOLITHIC_0@,$COND_SHARED_1_MONOLITHIC_0,;t t | |
35486 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
35487 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
35488 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
9747f85d VS |
35489 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
35490 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
e6cc62c6 | 35491 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t |
e6cc62c6 | 35492 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
e6cc62c6 VS |
35493 | s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_0@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_0,;t t |
35494 | s,@COND_USE_SOVERSION_1_PLATFORM_MACOSX_1@,$COND_USE_SOVERSION_1_PLATFORM_MACOSX_1,;t t | |
6b9d41a5 | 35495 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t |
9747f85d | 35496 | s,@COND_SHARED_0_USE_GUI_1_MONOLITHIC_0@,$COND_SHARED_0_USE_GUI_1_MONOLITHIC_0,;t t |
9747f85d | 35497 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
9747f85d | 35498 | s,@COND_SHARED_1_USE_GUI_1_MONOLITHIC_0@,$COND_SHARED_1_USE_GUI_1_MONOLITHIC_0,;t t |
9747f85d VS |
35499 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
35500 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
35501 | s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t | |
9747f85d | 35502 | s,@COND_SHARED_1_MONOLITHIC_1@,$COND_SHARED_1_MONOLITHIC_1,;t t |
e6cc62c6 | 35503 | s,@COND_SHARED_0_MONOLITHIC_1@,$COND_SHARED_0_MONOLITHIC_1,;t t |
9747f85d VS |
35504 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
35505 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
9747f85d | 35506 | s,@COND_SHARED_0_MONOLITHIC_0@,$COND_SHARED_0_MONOLITHIC_0,;t t |
9747f85d | 35507 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
e6cc62c6 VS |
35508 | s,@LEX_STEM@,$LEX_STEM,;t t |
35509 | s,@PATH_IFS@,$PATH_IFS,;t t | |
35510 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
35511 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
35512 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
35513 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
35514 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
35515 | s,@WX_LIBRARY_BASENAME@,$WX_LIBRARY_BASENAME,;t t | |
35516 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
35517 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
35518 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
35519 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
35520 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
35521 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
35522 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
35523 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
35524 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
35525 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
35526 | s,@WX_ALL@,$WX_ALL,;t t | |
35527 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
35528 | s,@SHARED_LD@,$SHARED_LD,;t t | |
35529 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t | |
35530 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
35531 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
35532 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
35533 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
35534 | s,@USE_GUI@,$USE_GUI,;t t | |
35535 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
35536 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
35537 | s,@TOOLKIT@,$TOOLKIT,;t t | |
35538 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
35539 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
35540 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
35541 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
35542 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
35543 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
35544 | s,@cross_compiling@,$cross_compiling,;t t | |
35545 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
35546 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
35547 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
35548 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
35549 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
35550 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
35551 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
35552 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
35553 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
35554 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
35555 | s,@GUIDIST@,$GUIDIST,;t t | |
35556 | s,@PORT_FILES@,$PORT_FILES,;t t | |
35557 | s,@DISTDIR@,$DISTDIR,;t t | |
35558 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
35559 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
35560 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
35561 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
35562 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
35563 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
35564 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
35565 | s,@RESFLAGS@,$RESFLAGS,;t t | |
35566 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
35567 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
35568 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
35569 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
35570 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
35571 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
35572 | s,@MACSETFILE@,$MACSETFILE,;t t | |
35573 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
35574 | s,@GCC@,$GCC,;t t | |
35575 | s,@DLLTOOL@,$DLLTOOL,;t t | |
35576 | s,@AS@,$AS,;t t | |
35577 | s,@NM@,$NM,;t t | |
35578 | s,@LD@,$LD,;t t | |
35579 | s,@MAKEINFO@,$MAKEINFO,;t t | |
35580 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
35581 | s,@ESD_LINK@,$ESD_LINK,;t t | |
35582 | s,@LIBOBJS@,$LIBOBJS,;t t | |
35583 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
35584 | CEOF |
35585 | ||
e6cc62c6 VS |
35586 | _ACEOF |
35587 | ||
35588 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35589 | # Split the substitutions into bite-sized pieces for seds with | |
35590 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
35591 | ac_max_sed_lines=48 | |
35592 | ac_sed_frag=1 # Number of current file. | |
35593 | ac_beg=1 # First line for current file. | |
35594 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
35595 | ac_more_lines=: | |
35596 | ac_sed_cmds= | |
35597 | while $ac_more_lines; do | |
35598 | if test $ac_beg -gt 1; then | |
35599 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 35600 | else |
e6cc62c6 VS |
35601 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
35602 | fi | |
35603 | if test ! -s $tmp/subs.frag; then | |
35604 | ac_more_lines=false | |
35605 | else | |
35606 | # The purpose of the label and of the branching condition is to | |
35607 | # speed up the sed processing (if there are no `@' at all, there | |
35608 | # is no need to browse any of the substitutions). | |
35609 | # These are the two extra sed commands mentioned above. | |
35610 | (echo ':t | |
35611 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
35612 | if test -z "$ac_sed_cmds"; then | |
35613 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
35614 | else | |
35615 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
35616 | fi | |
35617 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
35618 | ac_beg=$ac_end | |
35619 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 35620 | fi |
e6cc62c6 VS |
35621 | done |
35622 | if test -z "$ac_sed_cmds"; then | |
35623 | ac_sed_cmds=cat | |
10f2d63a | 35624 | fi |
e6cc62c6 | 35625 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 35626 | |
e6cc62c6 VS |
35627 | _ACEOF |
35628 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35629 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 35630 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
35631 | case $ac_file in |
35632 | - | *:- | *:-:* ) # input from stdin | |
35633 | cat >$tmp/stdin | |
35634 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35635 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35636 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35637 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35638 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a | 35639 | esac |
247f5006 | 35640 | |
e6cc62c6 VS |
35641 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
35642 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
35643 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35644 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
35645 | X"$ac_file" : 'X\(//\)$' \| \ | |
35646 | X"$ac_file" : 'X\(/\)' \| \ | |
35647 | . : '\(.\)' 2>/dev/null || | |
35648 | echo X"$ac_file" | | |
35649 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35650 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35651 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35652 | /^X\(\/\).*/{ s//\1/; q; } | |
35653 | s/.*/./; q'` | |
35654 | { if $as_mkdir_p; then | |
35655 | mkdir -p "$ac_dir" | |
a0b9e27f | 35656 | else |
e6cc62c6 VS |
35657 | as_dir="$ac_dir" |
35658 | as_dirs= | |
35659 | while test ! -d "$as_dir"; do | |
35660 | as_dirs="$as_dir $as_dirs" | |
35661 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
35662 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35663 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
35664 | X"$as_dir" : 'X\(//\)$' \| \ | |
35665 | X"$as_dir" : 'X\(/\)' \| \ | |
35666 | . : '\(.\)' 2>/dev/null || | |
35667 | echo X"$as_dir" | | |
35668 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35669 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35670 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35671 | /^X\(\/\).*/{ s//\1/; q; } | |
35672 | s/.*/./; q'` | |
35673 | done | |
35674 | test ! -n "$as_dirs" || mkdir $as_dirs | |
35675 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
35676 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
35677 | { (exit 1); exit 1; }; }; } | |
35678 | ||
35679 | ac_builddir=. | |
35680 | ||
35681 | if test "$ac_dir" != .; then | |
35682 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
35683 | # A "../" for each directory in $ac_dir_suffix. | |
35684 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
35685 | else | |
35686 | ac_dir_suffix= ac_top_builddir= | |
35687 | fi | |
247f5006 | 35688 | |
e6cc62c6 VS |
35689 | case $srcdir in |
35690 | .) # No --srcdir option. We are building in place. | |
35691 | ac_srcdir=. | |
35692 | if test -z "$ac_top_builddir"; then | |
35693 | ac_top_srcdir=. | |
35694 | else | |
35695 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
35696 | fi ;; | |
35697 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
35698 | ac_srcdir=$srcdir$ac_dir_suffix; | |
35699 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 35700 | *) # Relative path. |
e6cc62c6 VS |
35701 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
35702 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
35703 | esac | |
35704 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
35705 | # absolute. | |
35706 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
35707 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
35708 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
35709 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 35710 | |
247f5006 | 35711 | |
e6cc62c6 VS |
35712 | case $INSTALL in |
35713 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
35714 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 35715 | esac |
247f5006 | 35716 | |
e6cc62c6 VS |
35717 | if test x"$ac_file" != x-; then |
35718 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
35719 | echo "$as_me: creating $ac_file" >&6;} | |
35720 | rm -f "$ac_file" | |
35721 | fi | |
35722 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
35723 | # use $as_me), people would be surprised to read: | |
35724 | # /* config.h. Generated by config.status. */ | |
35725 | if test x"$ac_file" = x-; then | |
35726 | configure_input= | |
35727 | else | |
35728 | configure_input="$ac_file. " | |
35729 | fi | |
35730 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
35731 | sed 's,.*/,,'` by configure." | |
35732 | ||
35733 | # First look for the input files in the build tree, otherwise in the | |
35734 | # src tree. | |
35735 | ac_file_inputs=`IFS=: | |
35736 | for f in $ac_file_in; do | |
35737 | case $f in | |
35738 | -) echo $tmp/stdin ;; | |
35739 | [\\/$]*) | |
35740 | # Absolute (can't be DOS-style, as IFS=:) | |
35741 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35742 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35743 | { (exit 1); exit 1; }; } | |
35744 | echo $f;; | |
35745 | *) # Relative | |
35746 | if test -f "$f"; then | |
35747 | # Build tree | |
35748 | echo $f | |
35749 | elif test -f "$srcdir/$f"; then | |
35750 | # Source tree | |
35751 | echo $srcdir/$f | |
35752 | else | |
35753 | # /dev/null tree | |
35754 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35755 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35756 | { (exit 1); exit 1; }; } | |
35757 | fi;; | |
35758 | esac | |
35759 | done` || { (exit 1); exit 1; } | |
35760 | _ACEOF | |
35761 | cat >>$CONFIG_STATUS <<_ACEOF | |
35762 | sed "$ac_vpsub | |
35763 | $extrasub | |
35764 | _ACEOF | |
35765 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35766 | :t | |
35767 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
35768 | s,@configure_input@,$configure_input,;t t | |
35769 | s,@srcdir@,$ac_srcdir,;t t | |
35770 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
35771 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
35772 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
35773 | s,@builddir@,$ac_builddir,;t t | |
35774 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
35775 | s,@top_builddir@,$ac_top_builddir,;t t | |
35776 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
35777 | s,@INSTALL@,$ac_INSTALL,;t t | |
35778 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
35779 | rm -f $tmp/stdin | |
35780 | if test x"$ac_file" != x-; then | |
35781 | mv $tmp/out $ac_file | |
35782 | else | |
35783 | cat $tmp/out | |
35784 | rm -f $tmp/out | |
35785 | fi | |
35786 | ||
35787 | done | |
35788 | _ACEOF | |
35789 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35790 | ||
35791 | # | |
35792 | # CONFIG_HEADER section. | |
35793 | # | |
10f2d63a VZ |
35794 | |
35795 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
35796 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
35797 | # | |
35798 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e6cc62c6 VS |
35799 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
35800 | ac_dB='[ ].*$,\1#\2' | |
35801 | ac_dC=' ' | |
35802 | ac_dD=',;t' | |
35803 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
35804 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
35805 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 35806 | ac_uC=' ' |
e6cc62c6 VS |
35807 | ac_uD=',;t' |
35808 | ||
35809 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 35810 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
35811 | case $ac_file in |
35812 | - | *:- | *:-:* ) # input from stdin | |
35813 | cat >$tmp/stdin | |
35814 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35815 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35816 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
35817 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
35818 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
35819 | esac |
35820 | ||
e6cc62c6 VS |
35821 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
35822 | echo "$as_me: creating $ac_file" >&6;} | |
35823 | ||
35824 | # First look for the input files in the build tree, otherwise in the | |
35825 | # src tree. | |
35826 | ac_file_inputs=`IFS=: | |
35827 | for f in $ac_file_in; do | |
35828 | case $f in | |
35829 | -) echo $tmp/stdin ;; | |
35830 | [\\/$]*) | |
35831 | # Absolute (can't be DOS-style, as IFS=:) | |
35832 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35833 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35834 | { (exit 1); exit 1; }; } | |
35835 | echo $f;; | |
35836 | *) # Relative | |
35837 | if test -f "$f"; then | |
35838 | # Build tree | |
35839 | echo $f | |
35840 | elif test -f "$srcdir/$f"; then | |
35841 | # Source tree | |
35842 | echo $srcdir/$f | |
35843 | else | |
35844 | # /dev/null tree | |
35845 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
35846 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
35847 | { (exit 1); exit 1; }; } | |
35848 | fi;; | |
35849 | esac | |
35850 | done` || { (exit 1); exit 1; } | |
35851 | # Remove the trailing spaces. | |
35852 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
35853 | ||
35854 | _ACEOF | |
35855 | ||
35856 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
35857 | # `conftest.undefs', that substitutes the proper values into | |
35858 | # config.h.in to produce config.h. The first handles `#define' | |
35859 | # templates, and the second `#undef' templates. | |
35860 | # And first: Protect against being on the right side of a sed subst in | |
35861 | # config.status. Protect against being in an unquoted here document | |
35862 | # in config.status. | |
35863 | rm -f conftest.defines conftest.undefs | |
35864 | # Using a here document instead of a string reduces the quoting nightmare. | |
35865 | # Putting comments in sed scripts is not portable. | |
35866 | # | |
35867 | # `end' is used to avoid that the second main sed command (meant for | |
35868 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
35869 | # See the Autoconf documentation for `clear'. | |
35870 | cat >confdef2sed.sed <<\_ACEOF | |
35871 | s/[\\&,]/\\&/g | |
35872 | s,[\\$`],\\&,g | |
35873 | t clear | |
35874 | : clear | |
35875 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
35876 | t end | |
35877 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
35878 | : end | |
35879 | _ACEOF | |
35880 | # If some macros were called several times there might be several times | |
35881 | # the same #defines, which is useless. Nevertheless, we may not want to | |
35882 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
35883 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
35884 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
35885 | rm -f confdef2sed.sed | |
10f2d63a VZ |
35886 | |
35887 | # This sed command replaces #undef with comments. This is necessary, for | |
35888 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
35889 | # on some systems where configure will not decide to define it. | |
e6cc62c6 VS |
35890 | cat >>conftest.undefs <<\_ACEOF |
35891 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
35892 | _ACEOF | |
35893 | ||
35894 | # Break up conftest.defines because some shells have a limit on the size | |
35895 | # of here documents, and old seds have small limits too (100 cmds). | |
35896 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
35897 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
35898 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
35899 | echo ' :' >>$CONFIG_STATUS | |
35900 | rm -f conftest.tail | |
35901 | while grep . conftest.defines >/dev/null | |
35902 | do | |
35903 | # Write a limited-size here document to $tmp/defines.sed. | |
35904 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
35905 | # Speed up: don't consider the non `#define' lines. | |
35906 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
35907 | # Work around the forget-to-reset-the-flag bug. | |
35908 | echo 't clr' >>$CONFIG_STATUS | |
35909 | echo ': clr' >>$CONFIG_STATUS | |
35910 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
35911 | echo 'CEOF | |
35912 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
35913 | rm -f $tmp/in | |
35914 | mv $tmp/out $tmp/in | |
35915 | ' >>$CONFIG_STATUS | |
35916 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
35917 | rm -f conftest.defines | |
35918 | mv conftest.tail conftest.defines | |
35919 | done | |
35920 | rm -f conftest.defines | |
35921 | echo ' fi # grep' >>$CONFIG_STATUS | |
35922 | echo >>$CONFIG_STATUS | |
10f2d63a | 35923 | |
e6cc62c6 VS |
35924 | # Break up conftest.undefs because some shells have a limit on the size |
35925 | # of here documents, and old seds have small limits too (100 cmds). | |
35926 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 35927 | rm -f conftest.tail |
e6cc62c6 | 35928 | while grep . conftest.undefs >/dev/null |
10f2d63a | 35929 | do |
e6cc62c6 VS |
35930 | # Write a limited-size here document to $tmp/undefs.sed. |
35931 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
35932 | # Speed up: don't consider the non `#undef' | |
35933 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
35934 | # Work around the forget-to-reset-the-flag bug. | |
35935 | echo 't clr' >>$CONFIG_STATUS | |
35936 | echo ': clr' >>$CONFIG_STATUS | |
35937 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 35938 | echo 'CEOF |
e6cc62c6 VS |
35939 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
35940 | rm -f $tmp/in | |
35941 | mv $tmp/out $tmp/in | |
35942 | ' >>$CONFIG_STATUS | |
35943 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
35944 | rm -f conftest.undefs | |
35945 | mv conftest.tail conftest.undefs | |
10f2d63a | 35946 | done |
e6cc62c6 VS |
35947 | rm -f conftest.undefs |
35948 | ||
35949 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35950 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
35951 | # use $as_me), people would be surprised to read: | |
35952 | # /* config.h. Generated by config.status. */ | |
35953 | if test x"$ac_file" = x-; then | |
35954 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 35955 | else |
e6cc62c6 | 35956 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 35957 | fi |
e6cc62c6 VS |
35958 | cat $tmp/in >>$tmp/config.h |
35959 | rm -f $tmp/in | |
35960 | if test x"$ac_file" != x-; then | |
35961 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
35962 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
35963 | echo "$as_me: $ac_file is unchanged" >&6;} | |
35964 | else | |
35965 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
35966 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35967 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
35968 | X"$ac_file" : 'X\(//\)$' \| \ | |
35969 | X"$ac_file" : 'X\(/\)' \| \ | |
35970 | . : '\(.\)' 2>/dev/null || | |
35971 | echo X"$ac_file" | | |
35972 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35973 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35974 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35975 | /^X\(\/\).*/{ s//\1/; q; } | |
35976 | s/.*/./; q'` | |
35977 | { if $as_mkdir_p; then | |
35978 | mkdir -p "$ac_dir" | |
35979 | else | |
35980 | as_dir="$ac_dir" | |
35981 | as_dirs= | |
35982 | while test ! -d "$as_dir"; do | |
35983 | as_dirs="$as_dir $as_dirs" | |
35984 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
35985 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
35986 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
35987 | X"$as_dir" : 'X\(//\)$' \| \ | |
35988 | X"$as_dir" : 'X\(/\)' \| \ | |
35989 | . : '\(.\)' 2>/dev/null || | |
35990 | echo X"$as_dir" | | |
35991 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
35992 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
35993 | /^X\(\/\/\)$/{ s//\1/; q; } | |
35994 | /^X\(\/\).*/{ s//\1/; q; } | |
35995 | s/.*/./; q'` | |
35996 | done | |
35997 | test ! -n "$as_dirs" || mkdir $as_dirs | |
35998 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
35999 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36000 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 36001 | |
e6cc62c6 VS |
36002 | rm -f $ac_file |
36003 | mv $tmp/config.h $ac_file | |
36004 | fi | |
36005 | else | |
36006 | cat $tmp/config.h | |
36007 | rm -f $tmp/config.h | |
36008 | fi | |
36009 | done | |
36010 | _ACEOF | |
36011 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 36012 | |
e6cc62c6 VS |
36013 | # |
36014 | # CONFIG_COMMANDS section. | |
36015 | # | |
36016 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
36017 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
36018 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36019 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
36020 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36021 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
36022 | X"$ac_dest" : 'X\(//\)$' \| \ | |
36023 | X"$ac_dest" : 'X\(/\)' \| \ | |
36024 | . : '\(.\)' 2>/dev/null || | |
36025 | echo X"$ac_dest" | | |
36026 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36027 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36028 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36029 | /^X\(\/\).*/{ s//\1/; q; } | |
36030 | s/.*/./; q'` | |
36031 | ac_builddir=. | |
36032 | ||
36033 | if test "$ac_dir" != .; then | |
36034 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36035 | # A "../" for each directory in $ac_dir_suffix. | |
36036 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36037 | else | |
36038 | ac_dir_suffix= ac_top_builddir= | |
36039 | fi | |
36040 | ||
36041 | case $srcdir in | |
36042 | .) # No --srcdir option. We are building in place. | |
36043 | ac_srcdir=. | |
36044 | if test -z "$ac_top_builddir"; then | |
36045 | ac_top_srcdir=. | |
36046 | else | |
36047 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36048 | fi ;; | |
36049 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36050 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36051 | ac_top_srcdir=$srcdir ;; | |
36052 | *) # Relative path. | |
36053 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36054 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36055 | esac | |
36056 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36057 | # absolute. | |
36058 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36059 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36060 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36061 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36062 | ||
36063 | ||
36064 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36065 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36066 | case $ac_dest in | |
36067 | default ) | |
652d930d | 36068 | if test ! -h wx-config; then |
991a5759 | 36069 | chmod +x wx-config |
3a922bb4 RL |
36070 | mv wx-config wx${TOOLCHAIN_NAME}-config |
36071 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 36072 | fi |
665bbe97 | 36073 | |
00cf1208 RR |
36074 | if test ! -d lib; then |
36075 | mkdir lib | |
36076 | fi | |
36077 | if test ! -d lib/wx; then | |
36078 | mkdir lib/wx | |
36079 | fi | |
36080 | if test ! -d lib/wx/include; then | |
36081 | mkdir lib/wx/include | |
36082 | fi | |
3a922bb4 RL |
36083 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
36084 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 36085 | fi |
3a922bb4 RL |
36086 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
36087 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
36088 | fi |
36089 | if test -f setup.h; then | |
3a922bb4 | 36090 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 36091 | fi |
e6cc62c6 VS |
36092 | ;; |
36093 | esac | |
36094 | done | |
36095 | _ACEOF | |
2224580a | 36096 | |
e6cc62c6 | 36097 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 36098 | |
e6cc62c6 VS |
36099 | { (exit 0); exit 0; } |
36100 | _ACEOF | |
36101 | chmod +x $CONFIG_STATUS | |
36102 | ac_clean_files=$ac_clean_files_save | |
36103 | ||
36104 | ||
36105 | # configure is writing to config.log, and then calls config.status. | |
36106 | # config.status does its own redirection, appending to config.log. | |
36107 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
36108 | # by configure, so config.status won't be able to write to it; its | |
36109 | # output is simply discarded. So we exec the FD to /dev/null, | |
36110 | # effectively closing config.log, so it can be properly (re)opened and | |
36111 | # appended to by config.status. When coming back to configure, we | |
36112 | # need to make the FD available again. | |
36113 | if test "$no_create" != yes; then | |
36114 | ac_cs_success=: | |
36115 | ac_config_status_args= | |
36116 | test "$silent" = yes && | |
36117 | ac_config_status_args="$ac_config_status_args --quiet" | |
36118 | exec 5>/dev/null | |
36119 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
36120 | exec 5>>config.log | |
36121 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
36122 | # would make configure fail if this is the last instruction. | |
36123 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
36124 | fi |
36125 | ||
8284b0c5 | 36126 | |
2b5f62a0 VZ |
36127 | echo |
36128 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
36129 | echo "" | |
36130 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
9747f85d | 36131 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
36132 | |
36133 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
36134 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
36135 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
36136 | ||
0c98a14e GD |
36137 | echo " What level of wxWindows compatibility should be enabled?" |
36138 | echo " wxWindows 2.0 ${WXWIN_COMPATIBILITY_2:-no}" | |
65d8ef1e VS |
36139 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
36140 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 36141 | |
2b5f62a0 VZ |
36142 | echo " Which libraries should wxWindows use?" |
36143 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
36144 | echo " png ${wxUSE_LIBPNG-none}" | |
36145 | echo " regex ${wxUSE_REGEX}" | |
36146 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
36147 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 36148 | echo " odbc ${wxUSE_ODBC}" |
2b5f62a0 VZ |
36149 | |
36150 | echo "" | |
36151 |