]>
Commit | Line | Data |
---|---|---|
10f2d63a | 1 | #! /bin/sh |
247f5006 VZ |
2 | # From configure.in Id: configure.in. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by GNU Autoconf 2.53. | |
5 | # | |
6 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
7 | # Free Software Foundation, Inc. | |
8 | # This configure script is free software; the Free Software Foundation | |
9 | # gives unlimited permission to copy, distribute and modify it. | |
10f2d63a | 10 | |
247f5006 VZ |
11 | if expr a : '\(a\)' >/dev/null 2>&1; then |
12 | as_expr=expr | |
13 | else | |
14 | as_expr=false | |
15 | fi | |
52127426 | 16 | |
52127426 | 17 | |
247f5006 VZ |
18 | ## --------------------- ## |
19 | ## M4sh Initialization. ## | |
20 | ## --------------------- ## | |
8284b0c5 | 21 | |
247f5006 VZ |
22 | # Be Bourne compatible |
23 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
24 | emulate sh | |
25 | NULLCMD=: | |
26 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
27 | set -o posix | |
28 | fi | |
8284b0c5 | 29 | |
247f5006 VZ |
30 | # NLS nuisances. |
31 | # Support unset when possible. | |
32 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
33 | as_unset=unset | |
34 | else | |
35 | as_unset=false | |
36 | fi | |
37 | ||
38 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
39 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
40 | { LANG=C; export LANG; } | |
41 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
42 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
43 | { LC_ALL=C; export LC_ALL; } | |
44 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
45 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
46 | { LC_TIME=C; export LC_TIME; } | |
47 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
48 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
49 | { LC_CTYPE=C; export LC_CTYPE; } | |
50 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
51 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
52 | { LANGUAGE=C; export LANGUAGE; } | |
53 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
54 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
55 | { LC_COLLATE=C; export LC_COLLATE; } | |
56 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
57 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
58 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
59 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
60 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
61 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
62 | ||
63 | ||
64 | # Name of the executable. | |
65 | as_me=`(basename "$0") 2>/dev/null || | |
66 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
67 | X"$0" : 'X\(//\)$' \| \ | |
68 | X"$0" : 'X\(/\)$' \| \ | |
69 | . : '\(.\)' 2>/dev/null || | |
70 | echo X/"$0" | | |
71 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
72 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
73 | /^X\/\(\/\).*/{ s//\1/; q; } | |
74 | s/.*/./; q'` | |
75 | ||
76 | # PATH needs CR, and LINENO needs CR and PATH. | |
77 | # Avoid depending upon Character Ranges. | |
78 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
79 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
80 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
81 | as_cr_digits='0123456789' | |
82 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
83 | ||
84 | # The user is always right. | |
85 | if test "${PATH_SEPARATOR+set}" != set; then | |
86 | echo "#! /bin/sh" >conftest.sh | |
87 | echo "exit 0" >>conftest.sh | |
88 | chmod +x conftest.sh | |
89 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
90 | PATH_SEPARATOR=';' | |
91 | else | |
92 | PATH_SEPARATOR=: | |
93 | fi | |
94 | rm -f conftest.sh | |
95 | fi | |
8284b0c5 MB |
96 | |
97 | ||
247f5006 VZ |
98 | as_lineno_1=$LINENO |
99 | as_lineno_2=$LINENO | |
100 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
101 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
102 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
103 | # Find who we are. Look in the path if we contain no path at all | |
104 | # relative or not. | |
105 | case $0 in | |
106 | *[\\/]* ) as_myself=$0 ;; | |
107 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
108 | for as_dir in $PATH | |
109 | do | |
110 | IFS=$as_save_IFS | |
111 | test -z "$as_dir" && as_dir=. | |
112 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
113 | done | |
8284b0c5 | 114 | |
247f5006 VZ |
115 | ;; |
116 | esac | |
117 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
118 | # in which case we are not to be found in the path. | |
119 | if test "x$as_myself" = x; then | |
120 | as_myself=$0 | |
121 | fi | |
122 | if test ! -f "$as_myself"; then | |
123 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
124 | { (exit 1); exit 1; }; } | |
125 | fi | |
126 | case $CONFIG_SHELL in | |
127 | '') | |
128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
129 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
130 | do | |
131 | IFS=$as_save_IFS | |
132 | test -z "$as_dir" && as_dir=. | |
133 | for as_base in sh bash ksh sh5; do | |
134 | case $as_dir in | |
135 | /*) | |
136 | if ("$as_dir/$as_base" -c ' | |
137 | as_lineno_1=$LINENO | |
138 | as_lineno_2=$LINENO | |
139 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
140 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
141 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
142 | CONFIG_SHELL=$as_dir/$as_base | |
143 | export CONFIG_SHELL | |
144 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
145 | fi;; | |
146 | esac | |
147 | done | |
148 | done | |
149 | ;; | |
150 | esac | |
8284b0c5 | 151 | |
247f5006 VZ |
152 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
153 | # uniformly replaced by the line number. The first 'sed' inserts a | |
154 | # line-number line before each line; the second 'sed' does the real | |
155 | # work. The second script uses 'N' to pair each line-number line | |
156 | # with the numbered line, and appends trailing '-' during | |
157 | # substitution so that $LINENO is not a special case at line end. | |
158 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
159 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
160 | sed '=' <$as_myself | | |
161 | sed ' | |
162 | N | |
163 | s,$,-, | |
164 | : loop | |
165 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
166 | t loop | |
167 | s,-$,, | |
168 | s,^['$as_cr_digits']*\n,, | |
169 | ' >$as_me.lineno && | |
170 | chmod +x $as_me.lineno || | |
171 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
172 | { (exit 1); exit 1; }; } | |
173 | ||
174 | # Don't try to exec as it changes $[0], causing all sort of problems | |
175 | # (the dirname of $[0] is not the place where we might find the | |
176 | # original and so on. Autoconf is especially sensible to this). | |
177 | . ./$as_me.lineno | |
178 | # Exit status is that of the last command. | |
179 | exit | |
180 | } | |
8284b0c5 MB |
181 | |
182 | ||
247f5006 VZ |
183 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
184 | *c*,-n*) ECHO_N= ECHO_C=' | |
185 | ' ECHO_T=' ' ;; | |
186 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
187 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
188 | esac | |
8284b0c5 | 189 | |
247f5006 VZ |
190 | if expr a : '\(a\)' >/dev/null 2>&1; then |
191 | as_expr=expr | |
192 | else | |
193 | as_expr=false | |
194 | fi | |
8284b0c5 | 195 | |
247f5006 VZ |
196 | rm -f conf$$ conf$$.exe conf$$.file |
197 | echo >conf$$.file | |
198 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
199 | # We could just check for DJGPP; but this test a) works b) is more generic | |
200 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
201 | if test -f conf$$.exe; then | |
202 | # Don't use ln at all; we don't have any links | |
203 | as_ln_s='cp -p' | |
204 | else | |
205 | as_ln_s='ln -s' | |
206 | fi | |
207 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
208 | as_ln_s=ln | |
209 | else | |
210 | as_ln_s='cp -p' | |
211 | fi | |
212 | rm -f conf$$ conf$$.exe conf$$.file | |
8284b0c5 | 213 | |
247f5006 | 214 | as_executable_p="test -f" |
8284b0c5 | 215 | |
247f5006 VZ |
216 | # Sed expression to map a string onto a valid CPP name. |
217 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
8284b0c5 | 218 | |
247f5006 VZ |
219 | # Sed expression to map a string onto a valid variable name. |
220 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
8284b0c5 MB |
221 | |
222 | ||
247f5006 VZ |
223 | # IFS |
224 | # We need space, tab and new line, in precisely that order. | |
225 | as_nl=' | |
226 | ' | |
227 | IFS=" $as_nl" | |
8284b0c5 | 228 | |
247f5006 VZ |
229 | # CDPATH. |
230 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
8284b0c5 | 231 | |
8284b0c5 | 232 | |
247f5006 VZ |
233 | # Name of the host. |
234 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
235 | # so uname gets run too. | |
236 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
8284b0c5 | 237 | |
247f5006 | 238 | exec 6>&1 |
8284b0c5 | 239 | |
8284b0c5 | 240 | # |
247f5006 VZ |
241 | # Initializations. |
242 | # | |
8284b0c5 | 243 | ac_default_prefix=/usr/local |
247f5006 VZ |
244 | cross_compiling=no |
245 | subdirs= | |
246 | MFLAGS= | |
247 | MAKEFLAGS= | |
248 | SHELL=${CONFIG_SHELL-/bin/sh} | |
249 | ||
250 | # Maximum number of lines to put in a shell here document. | |
251 | # This variable seems obsolete. It should probably be removed, and | |
252 | # only ac_max_sed_lines should be used. | |
253 | : ${ac_max_here_lines=38} | |
254 | ||
255 | # Identity of this package. | |
256 | PACKAGE_NAME= | |
257 | PACKAGE_TARNAME= | |
258 | PACKAGE_VERSION= | |
259 | PACKAGE_STRING= | |
260 | PACKAGE_BUGREPORT= | |
261 | ||
262 | ac_unique_file="wx-config.in" | |
263 | # Factoring default headers for most tests. | |
264 | ac_includes_default="\ | |
265 | #include <stdio.h> | |
266 | #if HAVE_SYS_TYPES_H | |
267 | # include <sys/types.h> | |
268 | #endif | |
269 | #if HAVE_SYS_STAT_H | |
270 | # include <sys/stat.h> | |
271 | #endif | |
272 | #if STDC_HEADERS | |
273 | # include <stdlib.h> | |
274 | # include <stddef.h> | |
275 | #else | |
276 | # if HAVE_STDLIB_H | |
277 | # include <stdlib.h> | |
278 | # endif | |
279 | #endif | |
280 | #if HAVE_STRING_H | |
281 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
282 | # include <memory.h> | |
283 | # endif | |
284 | # include <string.h> | |
285 | #endif | |
286 | #if HAVE_STRINGS_H | |
287 | # include <strings.h> | |
288 | #endif | |
289 | #if HAVE_INTTYPES_H | |
290 | # include <inttypes.h> | |
291 | #else | |
292 | # if HAVE_STDINT_H | |
293 | # include <stdint.h> | |
294 | # endif | |
295 | #endif | |
296 | #if HAVE_UNISTD_H | |
297 | # include <unistd.h> | |
298 | #endif" | |
299 | ||
300 | ac_subdirs_all="$ac_subdirs_all demos samples utils contrib" | |
10f2d63a VZ |
301 | |
302 | # Initialize some variables set by options. | |
247f5006 VZ |
303 | ac_init_help= |
304 | ac_init_version=false | |
10f2d63a VZ |
305 | # The variables have the same names as the options, with |
306 | # dashes changed to underlines. | |
247f5006 | 307 | cache_file=/dev/null |
10f2d63a | 308 | exec_prefix=NONE |
10f2d63a | 309 | no_create= |
10f2d63a VZ |
310 | no_recursion= |
311 | prefix=NONE | |
312 | program_prefix=NONE | |
313 | program_suffix=NONE | |
314 | program_transform_name=s,x,x, | |
315 | silent= | |
316 | site= | |
317 | srcdir= | |
10f2d63a VZ |
318 | verbose= |
319 | x_includes=NONE | |
320 | x_libraries=NONE | |
247f5006 VZ |
321 | |
322 | # Installation directory options. | |
323 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
324 | # and all the variables that are supposed to be based on exec_prefix | |
325 | # by default will actually change. | |
326 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
327 | bindir='${exec_prefix}/bin' |
328 | sbindir='${exec_prefix}/sbin' | |
329 | libexecdir='${exec_prefix}/libexec' | |
330 | datadir='${prefix}/share' | |
331 | sysconfdir='${prefix}/etc' | |
332 | sharedstatedir='${prefix}/com' | |
333 | localstatedir='${prefix}/var' | |
334 | libdir='${exec_prefix}/lib' | |
335 | includedir='${prefix}/include' | |
336 | oldincludedir='/usr/include' | |
337 | infodir='${prefix}/info' | |
338 | mandir='${prefix}/man' | |
339 | ||
10f2d63a VZ |
340 | ac_prev= |
341 | for ac_option | |
342 | do | |
10f2d63a VZ |
343 | # If the previous option needs an argument, assign it. |
344 | if test -n "$ac_prev"; then | |
345 | eval "$ac_prev=\$ac_option" | |
346 | ac_prev= | |
347 | continue | |
348 | fi | |
349 | ||
247f5006 | 350 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
351 | |
352 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
353 | ||
247f5006 | 354 | case $ac_option in |
10f2d63a VZ |
355 | |
356 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
357 | ac_prev=bindir ;; | |
358 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
247f5006 | 359 | bindir=$ac_optarg ;; |
10f2d63a VZ |
360 | |
361 | -build | --build | --buil | --bui | --bu) | |
247f5006 | 362 | ac_prev=build_alias ;; |
10f2d63a | 363 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
247f5006 | 364 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
365 | |
366 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
367 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
368 | ac_prev=cache_file ;; | |
369 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
370 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
247f5006 VZ |
371 | cache_file=$ac_optarg ;; |
372 | ||
373 | --config-cache | -C) | |
374 | cache_file=config.cache ;; | |
10f2d63a VZ |
375 | |
376 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
377 | ac_prev=datadir ;; | |
378 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
379 | | --da=*) | |
247f5006 | 380 | datadir=$ac_optarg ;; |
10f2d63a VZ |
381 | |
382 | -disable-* | --disable-*) | |
247f5006 | 383 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 384 | # Reject names that are not valid shell variable names. |
247f5006 VZ |
385 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
386 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
387 | { (exit 1); exit 1; }; } | |
388 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
389 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
390 | |
391 | -enable-* | --enable-*) | |
247f5006 | 392 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 393 | # Reject names that are not valid shell variable names. |
247f5006 VZ |
394 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
395 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
396 | { (exit 1); exit 1; }; } | |
397 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
398 | case $ac_option in | |
399 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
400 | *) ac_optarg=yes ;; |
401 | esac | |
247f5006 | 402 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
403 | |
404 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
405 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
406 | | --exec | --exe | --ex) | |
407 | ac_prev=exec_prefix ;; | |
408 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
409 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
410 | | --exec=* | --exe=* | --ex=*) | |
247f5006 | 411 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
412 | |
413 | -gas | --gas | --ga | --g) | |
414 | # Obsolete; use --with-gas. | |
415 | with_gas=yes ;; | |
416 | ||
247f5006 VZ |
417 | -help | --help | --hel | --he | -h) |
418 | ac_init_help=long ;; | |
419 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
420 | ac_init_help=recursive ;; | |
421 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
422 | ac_init_help=short ;; | |
10f2d63a VZ |
423 | |
424 | -host | --host | --hos | --ho) | |
247f5006 | 425 | ac_prev=host_alias ;; |
10f2d63a | 426 | -host=* | --host=* | --hos=* | --ho=*) |
247f5006 | 427 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
428 | |
429 | -includedir | --includedir | --includedi | --included | --include \ | |
430 | | --includ | --inclu | --incl | --inc) | |
431 | ac_prev=includedir ;; | |
432 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
433 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
247f5006 | 434 | includedir=$ac_optarg ;; |
10f2d63a VZ |
435 | |
436 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
437 | ac_prev=infodir ;; | |
438 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
247f5006 | 439 | infodir=$ac_optarg ;; |
10f2d63a VZ |
440 | |
441 | -libdir | --libdir | --libdi | --libd) | |
442 | ac_prev=libdir ;; | |
443 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
247f5006 | 444 | libdir=$ac_optarg ;; |
10f2d63a VZ |
445 | |
446 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
447 | | --libexe | --libex | --libe) | |
448 | ac_prev=libexecdir ;; | |
449 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
450 | | --libexe=* | --libex=* | --libe=*) | |
247f5006 | 451 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
452 | |
453 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
454 | | --localstate | --localstat | --localsta | --localst \ | |
455 | | --locals | --local | --loca | --loc | --lo) | |
456 | ac_prev=localstatedir ;; | |
457 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
458 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
459 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
247f5006 | 460 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
461 | |
462 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
463 | ac_prev=mandir ;; | |
464 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
247f5006 | 465 | mandir=$ac_optarg ;; |
10f2d63a VZ |
466 | |
467 | -nfp | --nfp | --nf) | |
468 | # Obsolete; use --without-fp. | |
469 | with_fp=no ;; | |
470 | ||
471 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
247f5006 | 472 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
473 | no_create=yes ;; |
474 | ||
475 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
476 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
477 | no_recursion=yes ;; | |
478 | ||
479 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
480 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
481 | | --oldin | --oldi | --old | --ol | --o) | |
482 | ac_prev=oldincludedir ;; | |
483 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
484 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
485 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
247f5006 | 486 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
487 | |
488 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
489 | ac_prev=prefix ;; | |
490 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
247f5006 | 491 | prefix=$ac_optarg ;; |
10f2d63a VZ |
492 | |
493 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
494 | | --program-pre | --program-pr | --program-p) | |
495 | ac_prev=program_prefix ;; | |
496 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
497 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
247f5006 | 498 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
499 | |
500 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
501 | | --program-suf | --program-su | --program-s) | |
502 | ac_prev=program_suffix ;; | |
503 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
504 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
247f5006 | 505 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
506 | |
507 | -program-transform-name | --program-transform-name \ | |
508 | | --program-transform-nam | --program-transform-na \ | |
509 | | --program-transform-n | --program-transform- \ | |
510 | | --program-transform | --program-transfor \ | |
511 | | --program-transfo | --program-transf \ | |
512 | | --program-trans | --program-tran \ | |
513 | | --progr-tra | --program-tr | --program-t) | |
514 | ac_prev=program_transform_name ;; | |
515 | -program-transform-name=* | --program-transform-name=* \ | |
516 | | --program-transform-nam=* | --program-transform-na=* \ | |
517 | | --program-transform-n=* | --program-transform-=* \ | |
518 | | --program-transform=* | --program-transfor=* \ | |
519 | | --program-transfo=* | --program-transf=* \ | |
520 | | --program-trans=* | --program-tran=* \ | |
521 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
247f5006 | 522 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
523 | |
524 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
525 | | -silent | --silent | --silen | --sile | --sil) | |
526 | silent=yes ;; | |
527 | ||
528 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
529 | ac_prev=sbindir ;; | |
530 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
531 | | --sbi=* | --sb=*) | |
247f5006 | 532 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
533 | |
534 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
535 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
536 | | --sharedst | --shareds | --shared | --share | --shar \ | |
537 | | --sha | --sh) | |
538 | ac_prev=sharedstatedir ;; | |
539 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
540 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
541 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
542 | | --sha=* | --sh=*) | |
247f5006 | 543 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
544 | |
545 | -site | --site | --sit) | |
546 | ac_prev=site ;; | |
547 | -site=* | --site=* | --sit=*) | |
247f5006 | 548 | site=$ac_optarg ;; |
10f2d63a VZ |
549 | |
550 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
551 | ac_prev=srcdir ;; | |
552 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
247f5006 | 553 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
554 | |
555 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
556 | | --syscon | --sysco | --sysc | --sys | --sy) | |
557 | ac_prev=sysconfdir ;; | |
558 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
559 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
247f5006 | 560 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
561 | |
562 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
247f5006 | 563 | ac_prev=target_alias ;; |
10f2d63a | 564 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
247f5006 | 565 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
566 | |
567 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
568 | verbose=yes ;; | |
569 | ||
247f5006 VZ |
570 | -version | --version | --versio | --versi | --vers | -V) |
571 | ac_init_version=: ;; | |
10f2d63a VZ |
572 | |
573 | -with-* | --with-*) | |
247f5006 | 574 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 575 | # Reject names that are not valid shell variable names. |
247f5006 VZ |
576 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
577 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
578 | { (exit 1); exit 1; }; } | |
10f2d63a | 579 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
247f5006 VZ |
580 | case $ac_option in |
581 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
582 | *) ac_optarg=yes ;; |
583 | esac | |
247f5006 | 584 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
585 | |
586 | -without-* | --without-*) | |
247f5006 | 587 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 588 | # Reject names that are not valid shell variable names. |
247f5006 VZ |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
592 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
593 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
594 | |
595 | --x) | |
596 | # Obsolete; use --with-x. | |
597 | with_x=yes ;; | |
598 | ||
599 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
600 | | --x-incl | --x-inc | --x-in | --x-i) | |
601 | ac_prev=x_includes ;; | |
602 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
603 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
247f5006 | 604 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
605 | |
606 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
607 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
608 | ac_prev=x_libraries ;; | |
609 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
610 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
247f5006 | 611 | x_libraries=$ac_optarg ;; |
10f2d63a | 612 | |
247f5006 VZ |
613 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
614 | Try \`$0 --help' for more information." >&2 | |
615 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
616 | ;; |
617 | ||
247f5006 VZ |
618 | *=*) |
619 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
620 | # Reject names that are not valid shell variable names. | |
621 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
622 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
623 | { (exit 1); exit 1; }; } | |
624 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
625 | eval "$ac_envvar='$ac_optarg'" | |
626 | export $ac_envvar ;; | |
627 | ||
10f2d63a | 628 | *) |
247f5006 VZ |
629 | # FIXME: should be removed in autoconf 3.0. |
630 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
631 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
632 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
633 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
634 | ;; |
635 | ||
636 | esac | |
637 | done | |
638 | ||
639 | if test -n "$ac_prev"; then | |
247f5006 VZ |
640 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
641 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
642 | { (exit 1); exit 1; }; } | |
8284b0c5 | 643 | fi |
8284b0c5 | 644 | |
247f5006 VZ |
645 | # Be sure to have absolute paths. |
646 | for ac_var in exec_prefix prefix | |
647 | do | |
648 | eval ac_val=$`echo $ac_var` | |
649 | case $ac_val in | |
650 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
651 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
652 | { (exit 1); exit 1; }; };; | |
653 | esac | |
654 | done | |
8284b0c5 | 655 | |
247f5006 VZ |
656 | # Be sure to have absolute paths. |
657 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
658 | localstatedir libdir includedir oldincludedir infodir mandir | |
10f2d63a | 659 | do |
247f5006 VZ |
660 | eval ac_val=$`echo $ac_var` |
661 | case $ac_val in | |
662 | [\\/$]* | ?:[\\/]* ) ;; | |
663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
664 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
665 | esac |
666 | done | |
667 | ||
247f5006 VZ |
668 | # There might be people who depend on the old broken behavior: `$host' |
669 | # used to hold the argument of --host etc. | |
670 | # FIXME: To remove some day. | |
671 | build=$build_alias | |
672 | host=$host_alias | |
673 | target=$target_alias | |
674 | ||
675 | # FIXME: To remove some day. | |
676 | if test "x$host_alias" != x; then | |
677 | if test "x$build_alias" = x; then | |
678 | cross_compiling=maybe | |
679 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
680 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
681 | elif test "x$build_alias" != "x$host_alias"; then | |
682 | cross_compiling=yes | |
683 | fi | |
684 | fi | |
10f2d63a | 685 | |
247f5006 VZ |
686 | ac_tool_prefix= |
687 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
688 | ||
689 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 690 | |
10f2d63a VZ |
691 | |
692 | # Find the source files, if location was not specified. | |
693 | if test -z "$srcdir"; then | |
694 | ac_srcdir_defaulted=yes | |
695 | # Try the directory containing this script, then its parent. | |
247f5006 VZ |
696 | ac_confdir=`(dirname "$0") 2>/dev/null || |
697 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
698 | X"$0" : 'X\(//\)[^/]' \| \ | |
699 | X"$0" : 'X\(//\)$' \| \ | |
700 | X"$0" : 'X\(/\)' \| \ | |
701 | . : '\(.\)' 2>/dev/null || | |
702 | echo X"$0" | | |
703 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
704 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
705 | /^X\(\/\/\)$/{ s//\1/; q; } | |
706 | /^X\(\/\).*/{ s//\1/; q; } | |
707 | s/.*/./; q'` | |
10f2d63a VZ |
708 | srcdir=$ac_confdir |
709 | if test ! -r $srcdir/$ac_unique_file; then | |
710 | srcdir=.. | |
711 | fi | |
712 | else | |
713 | ac_srcdir_defaulted=no | |
714 | fi | |
715 | if test ! -r $srcdir/$ac_unique_file; then | |
716 | if test "$ac_srcdir_defaulted" = yes; then | |
247f5006 VZ |
717 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
718 | { (exit 1); exit 1; }; } | |
10f2d63a | 719 | else |
247f5006 VZ |
720 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
721 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
722 | fi |
723 | fi | |
247f5006 VZ |
724 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
725 | ac_env_build_alias_set=${build_alias+set} | |
726 | ac_env_build_alias_value=$build_alias | |
727 | ac_cv_env_build_alias_set=${build_alias+set} | |
728 | ac_cv_env_build_alias_value=$build_alias | |
729 | ac_env_host_alias_set=${host_alias+set} | |
730 | ac_env_host_alias_value=$host_alias | |
731 | ac_cv_env_host_alias_set=${host_alias+set} | |
732 | ac_cv_env_host_alias_value=$host_alias | |
733 | ac_env_target_alias_set=${target_alias+set} | |
734 | ac_env_target_alias_value=$target_alias | |
735 | ac_cv_env_target_alias_set=${target_alias+set} | |
736 | ac_cv_env_target_alias_value=$target_alias | |
737 | ac_env_CC_set=${CC+set} | |
738 | ac_env_CC_value=$CC | |
739 | ac_cv_env_CC_set=${CC+set} | |
740 | ac_cv_env_CC_value=$CC | |
741 | ac_env_CFLAGS_set=${CFLAGS+set} | |
742 | ac_env_CFLAGS_value=$CFLAGS | |
743 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
744 | ac_cv_env_CFLAGS_value=$CFLAGS | |
745 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
746 | ac_env_LDFLAGS_value=$LDFLAGS | |
747 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
748 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
749 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
750 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
751 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
752 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
753 | ac_env_CPP_set=${CPP+set} | |
754 | ac_env_CPP_value=$CPP | |
755 | ac_cv_env_CPP_set=${CPP+set} | |
756 | ac_cv_env_CPP_value=$CPP | |
757 | ac_env_CXX_set=${CXX+set} | |
758 | ac_env_CXX_value=$CXX | |
759 | ac_cv_env_CXX_set=${CXX+set} | |
760 | ac_cv_env_CXX_value=$CXX | |
761 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
762 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
763 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
764 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
765 | ac_env_CXXCPP_set=${CXXCPP+set} | |
766 | ac_env_CXXCPP_value=$CXXCPP | |
767 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
768 | ac_cv_env_CXXCPP_value=$CXXCPP | |
769 | ||
770 | # | |
771 | # Report the --help message. | |
772 | # | |
773 | if test "$ac_init_help" = "long"; then | |
774 | # Omit some internal or obsolete options to make the list less imposing. | |
775 | # This message is too long to be a string in the A/UX 3.1 sh. | |
776 | cat <<_ACEOF | |
777 | \`configure' configures this package to adapt to many kinds of systems. | |
778 | ||
779 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
780 | ||
781 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
782 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
783 | ||
784 | Defaults for the options are specified in brackets. | |
785 | ||
786 | Configuration: | |
787 | -h, --help display this help and exit | |
788 | --help=short display options specific to this package | |
789 | --help=recursive display the short help of all the included packages | |
790 | -V, --version display version information and exit | |
791 | -q, --quiet, --silent do not print \`checking...' messages | |
792 | --cache-file=FILE cache test results in FILE [disabled] | |
793 | -C, --config-cache alias for \`--cache-file=config.cache' | |
794 | -n, --no-create do not create output files | |
795 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
796 | ||
797 | _ACEOF | |
798 | ||
799 | cat <<_ACEOF | |
800 | Installation directories: | |
801 | --prefix=PREFIX install architecture-independent files in PREFIX | |
802 | [$ac_default_prefix] | |
803 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
804 | [PREFIX] | |
805 | ||
806 | By default, \`make install' will install all the files in | |
807 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
808 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
809 | for instance \`--prefix=\$HOME'. | |
810 | ||
811 | For better control, use the options below. | |
812 | ||
813 | Fine tuning of the installation directories: | |
814 | --bindir=DIR user executables [EPREFIX/bin] | |
815 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
816 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
817 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
818 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
819 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
820 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
821 | --libdir=DIR object code libraries [EPREFIX/lib] | |
822 | --includedir=DIR C header files [PREFIX/include] | |
823 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
824 | --infodir=DIR info documentation [PREFIX/info] | |
825 | --mandir=DIR man documentation [PREFIX/man] | |
826 | _ACEOF | |
827 | ||
828 | cat <<\_ACEOF | |
829 | ||
830 | X features: | |
831 | --x-includes=DIR X include files are in DIR | |
832 | --x-libraries=DIR X library files are in DIR | |
833 | ||
834 | System types: | |
835 | --build=BUILD configure for building on BUILD [guessed] | |
836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
837 | --target=TARGET configure for building compilers for TARGET [HOST] | |
838 | _ACEOF | |
839 | fi | |
840 | ||
841 | if test -n "$ac_init_help"; then | |
842 | ||
843 | cat <<\_ACEOF | |
844 | ||
845 | Optional Features: | |
846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
848 | --enable-gui use GUI classes | |
849 | --enable-universal use wxWindows GUI controls instead of native ones | |
850 | --enable-nanox use NanoX | |
851 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
852 | --enable-shared create shared library code | |
853 | --enable-soname set the DT_SONAME field in ELF shared libraries | |
854 | --enable-optimise create optimised code | |
855 | --enable-debug same as debug_flag and debug_info | |
856 | --enable-precomp enable use of precompiled headers (Mac OS X) | |
857 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
858 | --enable-debug_info create code with debugging information | |
859 | --enable-debug_gdb create code with extra GDB debugging information | |
860 | --enable-debug_cntxt use wxDebugContext | |
861 | --enable-mem_tracing create code with memory tracing | |
862 | --enable-profile create code with profiling information | |
863 | --enable-no_rtti create code without RTTI information | |
864 | --enable-no_exceptions create code without C++ exceptions handling | |
865 | --enable-permissive compile code disregarding strict ANSI | |
866 | --enable-no_deps create code without dependency information | |
867 | --enable-compat20 enable wxWindows 2.0 compatibility | |
868 | --disable-compat22 disable wxWindows 2.2 compatibility | |
869 | --enable-rpath=DIR output the rpath flag from wx-config | |
870 | --enable-intl use internationalization system | |
871 | --enable-config use wxConfig (and derived) classes | |
872 | --enable-protocols use wxProtocol and derived classes | |
873 | --enable-ftp use wxFTP (requires wxProtocol | |
874 | --enable-http use wxHTTP (requires wxProtocol | |
875 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
876 | --enable-sockets use socket/network classes | |
877 | --enable-ipc use interprocess communication (wxSocket etc.) | |
878 | --enable-cmdline use wxCmdLineParser class | |
879 | --enable-datetime use wxDateTime class | |
880 | --enable-timedate use obsolete wxDate/wxTime classes | |
881 | --enable-stopwatch use wxStopWatch class | |
882 | --enable-dialupman use dialup network classes | |
883 | --enable-apple_ieee use the Apple IEEE codec | |
884 | --enable-timer use wxTimer class | |
885 | --enable-wave use wxWave class | |
886 | --enable-fraction use wxFraction class | |
887 | --enable-dynlib use wxLibrary class for DLL loading | |
888 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
889 | --enable-longlong use wxLongLong class | |
890 | --enable-geometry use geometry class | |
891 | --enable-log use logging system | |
892 | --enable-streams use wxStream etc classes | |
893 | --enable-file use wxFile classes | |
894 | --enable-ffile use wxFFile classes | |
895 | --enable-textbuf use wxTextBuffer class | |
896 | --enable-textfile use wxTextFile class | |
897 | --enable-fontmap use font encodings conversion classes | |
898 | --enable-unicode compile wxString with Unicode support | |
899 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
900 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
901 | --enable-std_iostreams use standard C++ stream classes | |
902 | --enable-filesystem use virtual file systems classes | |
903 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
904 | --enable-fs_zip use virtual ZIP filesystems | |
905 | --enable-zipstream use wxZipInputStream | |
906 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
907 | --enable-snglinst use wxSingleInstanceChecker class | |
908 | --enable-mimetype use wxMimeTypesManager | |
909 | --enable-sysoptions use wxSystemOptions | |
910 | --enable-url use wxURL class | |
911 | --enable-protocol use wxProtocol class | |
912 | --enable-protocol-http HTTP support in wxProtocol | |
913 | --enable-protocol-ftp FTP support in wxProtocol | |
914 | --enable-protocol-file FILE support in wxProtocol | |
915 | --enable-threads use threads | |
916 | --enable-docview use document view architecture | |
917 | --enable-help use help subsystem | |
918 | --enable-mshtmlhelp use MS HTML Help (win32) | |
919 | --enable-html use wxHTML sub-library | |
920 | --enable-htmlhelp use wxHTML-based help | |
921 | --enable-constraints use layout-constraints system | |
922 | --enable-printarch use printing architecture | |
923 | --enable-mdi use multiple document interface architecture | |
924 | --enable-loggui use standard GUI logger | |
925 | --enable-logwin use wxLogWindow | |
926 | --enable-logdialog use wxLogDialog | |
927 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
928 | --enable-prologio use Prolog IO library | |
929 | --enable-resources use wxWindows resources | |
930 | --enable-xresources use X resources for save (default for gtk+) | |
931 | --enable-clipboard use wxClipboard classes | |
932 | --enable-dnd use Drag'n'Drop classes | |
933 | --enable-metafile use win32 metafiles | |
934 | --enable-treelayout use wxTreeLayout classes | |
935 | --enable-controls use all usual controls | |
936 | --enable-accel use accelerators | |
937 | --enable-button use wxButton class | |
938 | --enable-bmpbutton use wxBitmapButton class | |
939 | --enable-calendar use wxCalendarCtrl class | |
940 | --enable-caret use wxCaret class | |
941 | --enable-checkbox use wxCheckBox class | |
942 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
943 | --enable-choice use wxChoice class | |
944 | --enable-combobox use wxComboBox classes | |
945 | --enable-gauge use wxGauge class | |
946 | --enable-grid use wxGrid class | |
947 | --enable-newgrid use new wxGrid class | |
948 | --enable-imaglist use wxImageList class | |
949 | --enable-listbox use wxListBox class | |
950 | --enable-listctrl use wxListCtrl class | |
951 | --enable-notebook use wxNotebook class | |
952 | --enable-propsheet use wxPropertySheet class | |
953 | --enable-radiobox use wxRadioBox class | |
954 | --enable-radiobtn use wxRadioButton class | |
955 | --enable-sash use wxSashWindow class | |
956 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
957 | --enable-slider use wxSlider class | |
958 | --enable-spinbtn use wxSpinButton class | |
959 | --enable-spinctrl use wxSpinCtrl class | |
960 | --enable-splitter use wxSplitterWindow class | |
961 | --enable-statbmp use wxStaticBitmap class | |
962 | --enable-statbox use wxStaticBox class | |
963 | --enable-statline use wxStaticLine class | |
964 | --enable-stattext use wxStaticText class | |
965 | --enable-statusbar use wxStatusBar class | |
966 | --enable-tabdialog use wxTabControl class | |
967 | --enable-textctrl use wxTextCtrl class | |
968 | --enable-togglebtn use wxToggleButton class | |
969 | --enable-toolbar use wxToolBar class | |
970 | --enable-tbarnative use native wxToolBar class | |
971 | --enable-tbarsmpl use wxToolBarSimple class | |
972 | --enable-treectrl use wxTreeCtrl class | |
973 | --enable-tipwindow use wxTipWindow class | |
974 | --enable-popupwin use wxPopUpWindow class | |
975 | --enable-commondlg use all common dialogs | |
976 | --enable-choicedlg use wxChoiceDialog | |
977 | --enable-coldlg use wxColourDialog | |
978 | --enable-filedlg use wxFileDialog | |
979 | --enable-finddlg use wxFindReplaceDialog | |
980 | --enable-fontdlg use wxFontDialog | |
981 | --enable-dirdlg use wxDirDialog | |
982 | --enable-msgdlg use wxMessageDialog | |
983 | --enable-numberdlg use wxNumberEntryDialog | |
984 | --enable-splash use wxSplashScreen | |
985 | --enable-textdlg use wxTextDialog | |
986 | --enable-tipdlg use startup tips | |
987 | --enable-progressdlg use wxProgressDialog | |
988 | --enable-wizarddlg use wxWizard | |
989 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
990 | --enable-miniframe use wxMiniFrame class | |
991 | --enable-tooltips use wxToolTip class | |
992 | --enable-splines use spline drawing code | |
993 | --enable-validators use wxValidator and derived classes | |
994 | --enable-busyinfo use wxBusyInfo | |
995 | --enable-joystick use wxJoystick (Linux only) | |
996 | --enable-metafiles use wxMetaFile (Windows only) | |
997 | --enable-dragimage use wxDragImage | |
998 | --enable-palette use wxPalette class | |
999 | --enable-image use wxImage class | |
1000 | --enable-gif use gif images (GIF file format) | |
1001 | --enable-pcx use pcx images (PCX file format) | |
1002 | --enable-iff use iff images (IFF file format) | |
1003 | --enable-pnm use pnm images (PNM file format) | |
1004 | --enable-xpm use xpm images (XPM file format) | |
1005 | --enable-icocur use Windows ICO and CUR formats | |
1006 | --disable-largefile omit support for large files | |
1007 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1008 | --disable-gtktest Do not try to compile and run a test GTK program | |
1009 | ||
1010 | Optional Packages: | |
1011 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1012 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1013 | --with-gtk use GTK+ | |
1014 | --with-motif use Motif/Lesstif | |
1015 | --with-mac use Mac OS X | |
1016 | --with-wine use WINE | |
1017 | --with-msw use MS-Windows | |
1018 | --with-pm use OS/2 Presentation Manager | |
1019 | --with-mgl use SciTech MGL | |
1020 | --with-microwin use MicroWindows | |
1021 | --with-x11 use X11 | |
1022 | --with-libpng use libpng (PNG image format) | |
1023 | --with-libjpeg use libjpeg (JPEG file format) | |
1024 | --with-libtiff use libtiff (TIFF file format) | |
1025 | --with-opengl use OpenGL (or Mesa) | |
1026 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1027 | --with-regex enable support for wxRegEx class | |
1028 | --with-zlib use zlib for LZW compression | |
1029 | --with-odbc use the IODBC and wxODBC classes | |
1030 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1031 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1032 | --with-x use the X Window System | |
1033 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1034 | ||
1035 | Some influential environment variables: | |
1036 | CC C compiler command | |
1037 | CFLAGS C compiler flags | |
1038 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1039 | nonstandard directory <lib dir> | |
1040 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1041 | headers in a nonstandard directory <include dir> | |
1042 | CPP C preprocessor | |
1043 | CXX C++ compiler command | |
1044 | CXXFLAGS C++ compiler flags | |
1045 | CXXCPP C++ preprocessor | |
1046 | ||
1047 | Use these variables to override the choices made by `configure' or to help | |
1048 | it to find libraries and programs with nonstandard names/locations. | |
1049 | ||
1050 | _ACEOF | |
1051 | fi | |
1052 | ||
1053 | if test "$ac_init_help" = "recursive"; then | |
1054 | # If there are subdirs, report their specific --help. | |
1055 | ac_popdir=`pwd` | |
1056 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1057 | test -d $ac_dir || continue | |
1058 | ac_builddir=. | |
1059 | ||
1060 | if test "$ac_dir" != .; then | |
1061 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1062 | # A "../" for each directory in $ac_dir_suffix. | |
1063 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1064 | else | |
1065 | ac_dir_suffix= ac_top_builddir= | |
1066 | fi | |
1067 | ||
1068 | case $srcdir in | |
1069 | .) # No --srcdir option. We are building in place. | |
1070 | ac_srcdir=. | |
1071 | if test -z "$ac_top_builddir"; then | |
1072 | ac_top_srcdir=. | |
1073 | else | |
1074 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1075 | fi ;; | |
1076 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1077 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1078 | ac_top_srcdir=$srcdir ;; | |
1079 | *) # Relative path. | |
1080 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1081 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1082 | esac | |
1083 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1084 | # absolute. | |
1085 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1086 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
1087 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1088 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1089 | ||
1090 | cd $ac_dir | |
1091 | # Check for guested configure; otherwise get Cygnus style configure. | |
1092 | if test -f $ac_srcdir/configure.gnu; then | |
1093 | echo | |
1094 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1095 | elif test -f $ac_srcdir/configure; then | |
1096 | echo | |
1097 | $SHELL $ac_srcdir/configure --help=recursive | |
1098 | elif test -f $ac_srcdir/configure.ac || | |
1099 | test -f $ac_srcdir/configure.in; then | |
1100 | echo | |
1101 | $ac_configure --help | |
1102 | else | |
1103 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1104 | fi | |
1105 | cd $ac_popdir | |
1106 | done | |
1107 | fi | |
1108 | ||
1109 | test -n "$ac_init_help" && exit 0 | |
1110 | if $ac_init_version; then | |
1111 | cat <<\_ACEOF | |
1112 | ||
1113 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
1114 | Free Software Foundation, Inc. | |
1115 | This configure script is free software; the Free Software Foundation | |
1116 | gives unlimited permission to copy, distribute and modify it. | |
1117 | _ACEOF | |
1118 | exit 0 | |
1119 | fi | |
1120 | exec 5>config.log | |
1121 | cat >&5 <<_ACEOF | |
1122 | This file contains any messages produced by compilers while | |
1123 | running configure, to aid debugging if configure makes a mistake. | |
1124 | ||
1125 | It was created by $as_me, which was | |
1126 | generated by GNU Autoconf 2.53. Invocation command line was | |
1127 | ||
1128 | $ $0 $@ | |
1129 | ||
1130 | _ACEOF | |
1131 | { | |
1132 | cat <<_ASUNAME | |
1133 | ## --------- ## | |
1134 | ## Platform. ## | |
1135 | ## --------- ## | |
1136 | ||
1137 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1138 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1139 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1140 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1141 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1142 | ||
1143 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1144 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1145 | ||
1146 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1147 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1148 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1149 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1150 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1151 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1152 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1153 | ||
1154 | _ASUNAME | |
1155 | ||
1156 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1157 | for as_dir in $PATH | |
1158 | do | |
1159 | IFS=$as_save_IFS | |
1160 | test -z "$as_dir" && as_dir=. | |
1161 | echo "PATH: $as_dir" | |
1162 | done | |
1163 | ||
1164 | } >&5 | |
1165 | ||
1166 | cat >&5 <<_ACEOF | |
1167 | ||
1168 | ||
1169 | ## ----------- ## | |
1170 | ## Core tests. ## | |
1171 | ## ----------- ## | |
1172 | ||
1173 | _ACEOF | |
1174 | ||
328a083c | 1175 | |
247f5006 VZ |
1176 | # Keep a trace of the command line. |
1177 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1178 | # Also quote any args containing shell meta-characters. | |
1179 | ac_configure_args= | |
1180 | ac_sep= | |
1181 | for ac_arg | |
1182 | do | |
1183 | case $ac_arg in | |
1184 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1185 | | --no-cr | --no-c | -n ) continue ;; | |
1186 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1187 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1188 | continue ;; | |
1189 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1190 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1191 | esac | |
1192 | case " $ac_configure_args " in | |
1193 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1194 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1195 | ac_sep=" " ;; | |
1196 | esac | |
1197 | # Get rid of the leading space. | |
1198 | done | |
1199 | ||
1200 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1201 | # config.log. We remove comments because anyway the quotes in there | |
1202 | # would cause problems or look ugly. | |
1203 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1204 | # such as our DU 5.0 friend, will then `close' the trap. | |
1205 | trap 'exit_status=$? | |
1206 | # Save into config.log some information that might help in debugging. | |
1207 | { | |
1208 | echo | |
1209 | cat <<\_ASBOX | |
1210 | ## ---------------- ## | |
1211 | ## Cache variables. ## | |
1212 | ## ---------------- ## | |
1213 | _ASBOX | |
1214 | echo | |
1215 | # The following way of writing the cache mishandles newlines in values, | |
1216 | { | |
1217 | (set) 2>&1 | | |
1218 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1219 | *ac_space=\ *) | |
1220 | sed -n \ | |
1221 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1222 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1223 | ;; | |
1224 | *) | |
1225 | sed -n \ | |
1226 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1227 | ;; | |
1228 | esac; | |
1229 | } | |
1230 | echo | |
1231 | if test -s confdefs.h; then | |
1232 | cat <<\_ASBOX | |
1233 | ## ----------- ## | |
1234 | ## confdefs.h. ## | |
1235 | ## ----------- ## | |
1236 | _ASBOX | |
1237 | echo | |
1238 | sed "/^$/d" confdefs.h | |
1239 | echo | |
1240 | fi | |
1241 | test "$ac_signal" != 0 && | |
1242 | echo "$as_me: caught signal $ac_signal" | |
1243 | echo "$as_me: exit $exit_status" | |
1244 | } >&5 | |
1245 | rm -f core core.* *.core && | |
1246 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1247 | exit $exit_status | |
1248 | ' 0 | |
1249 | for ac_signal in 1 2 13 15; do | |
1250 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1251 | done | |
1252 | ac_signal=0 | |
1253 | ||
1254 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1255 | rm -rf conftest* confdefs.h | |
1256 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1257 | echo >confdefs.h | |
1258 | ||
1259 | # Predefined preprocessor variables. | |
1260 | ||
1261 | cat >>confdefs.h <<_ACEOF | |
1262 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1263 | _ACEOF | |
1264 | ||
1265 | ||
1266 | cat >>confdefs.h <<_ACEOF | |
1267 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1268 | _ACEOF | |
1269 | ||
1270 | ||
1271 | cat >>confdefs.h <<_ACEOF | |
1272 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1273 | _ACEOF | |
1274 | ||
1275 | ||
1276 | cat >>confdefs.h <<_ACEOF | |
1277 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1278 | _ACEOF | |
1279 | ||
1280 | ||
1281 | cat >>confdefs.h <<_ACEOF | |
1282 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1283 | _ACEOF | |
1284 | ||
1285 | ||
1286 | # Let the site file select an alternate cache file if it wants to. | |
10f2d63a VZ |
1287 | # Prefer explicitly selected file to automatically selected ones. |
1288 | if test -z "$CONFIG_SITE"; then | |
1289 | if test "x$prefix" != xNONE; then | |
1290 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1291 | else | |
1292 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1293 | fi | |
1294 | fi | |
1295 | for ac_site_file in $CONFIG_SITE; do | |
1296 | if test -r "$ac_site_file"; then | |
247f5006 VZ |
1297 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1298 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1299 | sed 's/^/| /' "$ac_site_file" >&5 | |
10f2d63a VZ |
1300 | . "$ac_site_file" |
1301 | fi | |
1302 | done | |
1303 | ||
1304 | if test -r "$cache_file"; then | |
247f5006 VZ |
1305 | # Some versions of bash will fail to source /dev/null (special |
1306 | # files actually), so we avoid doing that. | |
1307 | if test -f "$cache_file"; then | |
1308 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1309 | echo "$as_me: loading cache $cache_file" >&6;} | |
1310 | case $cache_file in | |
1311 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1312 | *) . ./$cache_file;; | |
1313 | esac | |
1314 | fi | |
10f2d63a | 1315 | else |
247f5006 VZ |
1316 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1317 | echo "$as_me: creating cache $cache_file" >&6;} | |
1318 | >$cache_file | |
1319 | fi | |
1320 | ||
1321 | # Check that the precious variables saved in the cache have kept the same | |
1322 | # value. | |
1323 | ac_cache_corrupted=false | |
1324 | for ac_var in `(set) 2>&1 | | |
1325 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1326 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1327 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1328 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1329 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1330 | case $ac_old_set,$ac_new_set in | |
1331 | set,) | |
1332 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1333 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1334 | ac_cache_corrupted=: ;; | |
1335 | ,set) | |
1336 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1337 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1338 | ac_cache_corrupted=: ;; | |
1339 | ,);; | |
1340 | *) | |
1341 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1342 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1343 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1344 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1345 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1346 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1347 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1348 | ac_cache_corrupted=: | |
1349 | fi;; | |
1350 | esac | |
1351 | # Pass precious variables to config.status. | |
1352 | if test "$ac_new_set" = set; then | |
1353 | case $ac_new_val in | |
1354 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1355 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1356 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1357 | esac | |
1358 | case " $ac_configure_args " in | |
1359 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1360 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1361 | esac | |
1362 | fi | |
1363 | done | |
1364 | if $ac_cache_corrupted; then | |
1365 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1366 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1367 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1368 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1369 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1370 | fi |
1371 | ||
1372 | ac_ext=c | |
10f2d63a | 1373 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
1374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1377 | ||
1378 | ||
1379 | ||
1380 | ||
1381 | ||
1382 | ||
1383 | ||
1384 | ||
1385 | ||
1386 | ||
1387 | ||
1388 | ||
1389 | ||
1390 | ||
1391 | ||
1392 | ||
8284b0c5 MB |
1393 | |
1394 | ||
10f2d63a | 1395 | |
7c66a493 VZ |
1396 | ac_aux_dir= |
1397 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1398 | if test -f $ac_dir/install-sh; then | |
1399 | ac_aux_dir=$ac_dir | |
1400 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1401 | break | |
1402 | elif test -f $ac_dir/install.sh; then | |
1403 | ac_aux_dir=$ac_dir | |
1404 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1405 | break | |
247f5006 VZ |
1406 | elif test -f $ac_dir/shtool; then |
1407 | ac_aux_dir=$ac_dir | |
1408 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1409 | break | |
1410 | fi | |
7c66a493 VZ |
1411 | done |
1412 | if test -z "$ac_aux_dir"; then | |
247f5006 VZ |
1413 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1414 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1415 | { (exit 1); exit 1; }; } | |
7c66a493 | 1416 | fi |
247f5006 VZ |
1417 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1418 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1419 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
698dcdb6 | 1420 | |
247f5006 VZ |
1421 | # Make sure we can run config.sub. |
1422 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1423 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1424 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1425 | { (exit 1); exit 1; }; } | |
1426 | ||
1427 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1428 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1429 | if test "${ac_cv_build+set}" = set; then | |
1430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1431 | else | |
1432 | ac_cv_build_alias=$build_alias | |
1433 | test -z "$ac_cv_build_alias" && | |
1434 | ac_cv_build_alias=`$ac_config_guess` | |
1435 | test -z "$ac_cv_build_alias" && | |
1436 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1437 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1438 | { (exit 1); exit 1; }; } | |
1439 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1440 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1441 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1442 | { (exit 1); exit 1; }; } | |
1443 | ||
1444 | fi | |
1445 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1446 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1447 | build=$ac_cv_build | |
1448 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1449 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1450 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1451 | ||
1452 | ||
1453 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1454 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1455 | if test "${ac_cv_host+set}" = set; then | |
1456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1457 | else | |
1458 | ac_cv_host_alias=$host_alias | |
1459 | test -z "$ac_cv_host_alias" && | |
1460 | ac_cv_host_alias=$ac_cv_build_alias | |
1461 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1462 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1463 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1464 | { (exit 1); exit 1; }; } | |
1465 | ||
1466 | fi | |
1467 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1468 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1469 | host=$ac_cv_host | |
1470 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1471 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1472 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1473 | ||
1474 | ||
1475 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1476 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1477 | if test "${ac_cv_target+set}" = set; then | |
1478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1479 | else | |
1480 | ac_cv_target_alias=$target_alias | |
1481 | test "x$ac_cv_target_alias" = "x" && | |
1482 | ac_cv_target_alias=$ac_cv_host_alias | |
1483 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1484 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1485 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1486 | { (exit 1); exit 1; }; } | |
1487 | ||
1488 | fi | |
1489 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1490 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1491 | target=$ac_cv_target | |
1492 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1493 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1494 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
8284b0c5 | 1495 | |
7c66a493 VZ |
1496 | |
1497 | # The aliases save the names the user supplied, while $host etc. | |
1498 | # will get canonicalized. | |
247f5006 | 1499 | test -n "$target_alias" && |
7c66a493 VZ |
1500 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1501 | NONENONEs,x,x, && | |
1502 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1503 | |
1504 | ||
10f2d63a | 1505 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1506 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1507 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1508 | |
10f2d63a | 1509 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1510 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1511 | |
978f1259 RL |
1512 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1513 | ||
a0d927d1 | 1514 | WX_CURRENT=2 |
6426998c RL |
1515 | WX_REVISION=0 |
1516 | WX_AGE=0 | |
1517 | ||
8284b0c5 MB |
1518 | |
1519 | ||
10f2d63a VZ |
1520 | USE_UNIX=1 |
1521 | USE_WIN32=0 | |
f9bc1684 | 1522 | USE_DOS=0 |
b12915c1 | 1523 | USE_BEOS=0 |
1216f52d | 1524 | USE_MAC=0 |
b12915c1 | 1525 | |
10f2d63a VZ |
1526 | USE_LINUX= |
1527 | USE_SGI= | |
1528 | USE_HPUX= | |
1529 | USE_SYSV= | |
1530 | USE_SVR4= | |
1531 | USE_AIX= | |
1532 | USE_SUN= | |
1533 | USE_SOLARIS= | |
1534 | USE_SUNOS= | |
1535 | USE_ALPHA= | |
1536 | USE_OSF= | |
1537 | USE_BSD= | |
f11bdd03 | 1538 | USE_DARWIN= |
10f2d63a | 1539 | USE_FREEBSD= |
95c8801c | 1540 | USE_OPENBSD= |
f6bcfd97 | 1541 | USE_NETBSD= |
10f2d63a VZ |
1542 | USE_VMS= |
1543 | USE_ULTRIX= | |
10f2d63a VZ |
1544 | USE_DATA_GENERAL= |
1545 | ||
ab9b9eab VZ |
1546 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1547 | ||
f79bd02d | 1548 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1549 | |
1550 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1551 | DEFAULT_wxUSE_MAC=0 |
1552 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1553 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1554 | DEFAULT_wxUSE_MOTIF=0 |
1555 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1556 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1557 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1558 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1559 | |
1560 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1561 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1562 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1563 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1564 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1565 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1566 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1567 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1568 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1569 | |
d6a55c4b | 1570 | PROGRAM_EXT= |
3a922bb4 | 1571 | SO_SUFFIX=so |
d6a55c4b | 1572 | |
10f2d63a VZ |
1573 | case "${host}" in |
1574 | *-hp-hpux* ) | |
1575 | USE_HPUX=1 | |
1576 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1577 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1578 | SO_SUFFIX=sl |
247f5006 | 1579 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1580 | #define __HPUX__ 1 |
247f5006 | 1581 | _ACEOF |
10f2d63a VZ |
1582 | |
1583 | ;; | |
1584 | *-*-linux* ) | |
1585 | USE_LINUX=1 | |
247f5006 | 1586 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1587 | #define __LINUX__ 1 |
247f5006 | 1588 | _ACEOF |
10f2d63a VZ |
1589 | |
1590 | TMP=`uname -m` | |
1591 | if test "x$TMP" = "xalpha"; then | |
1592 | USE_ALPHA=1 | |
247f5006 | 1593 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1594 | #define __ALPHA__ 1 |
247f5006 | 1595 | _ACEOF |
10f2d63a VZ |
1596 | |
1597 | fi | |
1598 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1599 | ;; | |
1600 | *-*-irix5* | *-*-irix6* ) | |
1601 | USE_SGI=1 | |
1602 | USE_SVR4=1 | |
247f5006 | 1603 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1604 | #define __SGI__ 1 |
247f5006 | 1605 | _ACEOF |
10f2d63a | 1606 | |
247f5006 | 1607 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1608 | #define __SVR4__ 1 |
247f5006 | 1609 | _ACEOF |
10f2d63a VZ |
1610 | |
1611 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1612 | ;; | |
1613 | *-*-solaris2* ) | |
1614 | USE_SUN=1 | |
1615 | USE_SOLARIS=1 | |
1616 | USE_SVR4=1 | |
247f5006 | 1617 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1618 | #define __SUN__ 1 |
247f5006 | 1619 | _ACEOF |
10f2d63a | 1620 | |
247f5006 | 1621 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1622 | #define __SOLARIS__ 1 |
247f5006 | 1623 | _ACEOF |
10f2d63a | 1624 | |
247f5006 | 1625 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1626 | #define __SVR4__ 1 |
247f5006 | 1627 | _ACEOF |
10f2d63a VZ |
1628 | |
1629 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1630 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1631 | ;; |
1632 | *-*-sunos4* ) | |
1633 | USE_SUN=1 | |
1634 | USE_SUNOS=1 | |
1635 | USE_BSD=1 | |
247f5006 | 1636 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1637 | #define __SUN__ 1 |
247f5006 | 1638 | _ACEOF |
10f2d63a | 1639 | |
247f5006 | 1640 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1641 | #define __SUNOS__ 1 |
247f5006 | 1642 | _ACEOF |
10f2d63a | 1643 | |
247f5006 | 1644 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1645 | #define __BSD__ 1 |
247f5006 | 1646 | _ACEOF |
10f2d63a VZ |
1647 | |
1648 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1649 | ;; | |
f6bcfd97 | 1650 | *-*-freebsd*) |
10f2d63a VZ |
1651 | USE_BSD=1 |
1652 | USE_FREEBSD=1 | |
247f5006 | 1653 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1654 | #define __FREEBSD__ 1 |
247f5006 | 1655 | _ACEOF |
10f2d63a | 1656 | |
247f5006 | 1657 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1658 | #define __BSD__ 1 |
247f5006 | 1659 | _ACEOF |
95c8801c VS |
1660 | |
1661 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1662 | ;; | |
1663 | *-*-openbsd*) | |
1664 | USE_BSD=1 | |
1665 | USE_OPENBSD=1 | |
247f5006 | 1666 | cat >>confdefs.h <<\_ACEOF |
95c8801c | 1667 | #define __FREEBSD__ 1 |
247f5006 | 1668 | _ACEOF |
95c8801c | 1669 | |
247f5006 | 1670 | cat >>confdefs.h <<\_ACEOF |
95c8801c | 1671 | #define __OPENBSD__ 1 |
247f5006 | 1672 | _ACEOF |
f6bcfd97 BP |
1673 | |
1674 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1675 | ;; | |
1676 | *-*-netbsd*) | |
1677 | USE_BSD=1 | |
1678 | USE_NETBSD=1 | |
247f5006 | 1679 | cat >>confdefs.h <<\_ACEOF |
f6bcfd97 | 1680 | #define __FREEBSD__ 1 |
247f5006 | 1681 | _ACEOF |
f6bcfd97 | 1682 | |
247f5006 | 1683 | cat >>confdefs.h <<\_ACEOF |
f6bcfd97 | 1684 | #define __NETBSD__ 1 |
247f5006 | 1685 | _ACEOF |
10f2d63a VZ |
1686 | |
1687 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1688 | ;; | |
1689 | *-*-osf* ) | |
1690 | USE_ALPHA=1 | |
1691 | USE_OSF=1 | |
247f5006 | 1692 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1693 | #define __ALPHA__ 1 |
247f5006 | 1694 | _ACEOF |
10f2d63a | 1695 | |
247f5006 | 1696 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1697 | #define __OSF__ 1 |
247f5006 | 1698 | _ACEOF |
10f2d63a VZ |
1699 | |
1700 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1701 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1702 | ;; |
1703 | *-*-dgux5* ) | |
1704 | USE_ALPHA=1 | |
1705 | USE_SVR4=1 | |
247f5006 | 1706 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1707 | #define __ALPHA__ 1 |
247f5006 | 1708 | _ACEOF |
10f2d63a | 1709 | |
247f5006 | 1710 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1711 | #define __SVR4__ 1 |
247f5006 | 1712 | _ACEOF |
10f2d63a VZ |
1713 | |
1714 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1715 | ;; | |
1716 | *-*-sysv5* ) | |
1717 | USE_SYSV=1 | |
1718 | USE_SVR4=1 | |
247f5006 | 1719 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1720 | #define __SYSV__ 1 |
247f5006 | 1721 | _ACEOF |
10f2d63a | 1722 | |
247f5006 | 1723 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1724 | #define __SVR4__ 1 |
247f5006 | 1725 | _ACEOF |
10f2d63a VZ |
1726 | |
1727 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1728 | ;; | |
1729 | *-*-aix* ) | |
1730 | USE_AIX=1 | |
1731 | USE_SYSV=1 | |
1732 | USE_SVR4=1 | |
321d2b14 | 1733 | SO_SUFFIX=a |
247f5006 | 1734 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1735 | #define __AIX__ 1 |
247f5006 | 1736 | _ACEOF |
10f2d63a | 1737 | |
247f5006 | 1738 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1739 | #define __SYSV__ 1 |
247f5006 | 1740 | _ACEOF |
10f2d63a | 1741 | |
247f5006 | 1742 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1743 | #define __SVR4__ 1 |
247f5006 | 1744 | _ACEOF |
10f2d63a VZ |
1745 | |
1746 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1747 | ;; | |
1748 | ||
1c8183e2 | 1749 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1750 | SO_SUFFIX=dll |
cf27ef00 | 1751 | PROGRAM_EXT=".exe" |
7b7a7637 | 1752 | RESCOMP=windres |
10f2d63a VZ |
1753 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1754 | ;; | |
1755 | ||
f9bc1684 VS |
1756 | *-pc-msdosdjgpp ) |
1757 | USE_UNIX=0 | |
1758 | USE_DOS=1 | |
247f5006 | 1759 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1760 | #define __DOS__ 1 |
247f5006 | 1761 | _ACEOF |
f9bc1684 VS |
1762 | |
1763 | PROGRAM_EXT=".exe" | |
1764 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1765 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1766 | ;; |
1767 | ||
6fa882bd | 1768 | *-pc-os2_emx | *-pc-os2-emx ) |
247f5006 | 1769 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1770 | #define __EMX__ 1 |
247f5006 | 1771 | _ACEOF |
10f2d63a | 1772 | |
cf27ef00 | 1773 | PROGRAM_EXT=".exe" |
e07802fc | 1774 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1775 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1776 | ;; |
1777 | ||
d08b457b GD |
1778 | powerpc-*-darwin* ) |
1779 | USE_BSD=1 | |
f11bdd03 | 1780 | USE_DARWIN=1 |
3a922bb4 | 1781 | SO_SUFFIX=dylib |
247f5006 | 1782 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1783 | #define __BSD__ 1 |
247f5006 | 1784 | _ACEOF |
b4085ce6 | 1785 | |
247f5006 | 1786 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1787 | #define __DARWIN__ 1 |
247f5006 | 1788 | _ACEOF |
d08b457b | 1789 | |
247f5006 | 1790 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1791 | #define __POWERPC__ 1 |
247f5006 | 1792 | _ACEOF |
b4085ce6 GD |
1793 | |
1794 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1795 | ;; | |
1796 | ||
b12915c1 VZ |
1797 | *-*-beos* ) |
1798 | USE_BEOS=1 | |
247f5006 | 1799 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1800 | #define __BEOS__ 1 |
247f5006 | 1801 | _ACEOF |
b12915c1 VZ |
1802 | |
1803 | ;; | |
1804 | ||
10f2d63a | 1805 | *) |
247f5006 VZ |
1806 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1807 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1808 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1809 | esac |
1810 | ||
8284b0c5 MB |
1811 | |
1812 | ||
1813 | ||
1814 | wx_arg_cache_file="configarg.cache" | |
1815 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1816 | rm -f ${wx_arg_cache_file}.tmp |
1817 | touch ${wx_arg_cache_file}.tmp | |
1818 | touch ${wx_arg_cache_file} | |
247f5006 | 1819 | |
10f2d63a VZ |
1820 | |
1821 | DEBUG_CONFIGURE=0 | |
1822 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1823 | DEFAULT_wxUSE_UNIVERSAL=no |
1824 | ||
d8356fa3 VZ |
1825 | DEFAULT_wxUSE_NANOX=no |
1826 | ||
10f2d63a VZ |
1827 | DEFAULT_wxUSE_THREADS=yes |
1828 | ||
1829 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1830 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1831 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1832 | DEFAULT_wxUSE_PROFILE=no |
1833 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1834 | DEFAULT_wxUSE_NO_RTTI=no |
1835 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1836 | DEFAULT_wxUSE_PERMISSIVE=no |
1837 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1838 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1839 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1840 | DEFAULT_wxUSE_MEM_TRACING=no | |
1841 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1842 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1843 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1844 | DEFAULT_wxUSE_APPLE_IEEE=no |
1845 | ||
1846 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1847 | DEFAULT_wxUSE_LOGWINDOW=no |
1848 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1849 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1850 | |
1851 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1852 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1853 | |
3e44f09d | 1854 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1855 | DEFAULT_wxUSE_ZLIB=no |
1856 | DEFAULT_wxUSE_LIBPNG=no | |
1857 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1858 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1859 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1860 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1861 | |
eb4efbdc | 1862 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1863 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1864 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1865 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1866 | DEFAULT_wxUSE_DATETIME=no | |
1867 | DEFAULT_wxUSE_TIMEDATE=no | |
1868 | DEFAULT_wxUSE_TIMER=no | |
1869 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1870 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1871 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1872 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1873 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1874 | DEFAULT_wxUSE_WAVE=no |
1875 | DEFAULT_wxUSE_INTL=no | |
1876 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1877 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1878 | DEFAULT_wxUSE_STREAMS=no |
1879 | DEFAULT_wxUSE_SOCKETS=no | |
1880 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1881 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1882 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1883 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1884 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1885 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1886 | |
1887 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1888 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1889 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1890 | ||
1891 | DEFAULT_wxUSE_X_RESOURCES=no | |
1892 | DEFAULT_wxUSE_CLIPBOARD=no | |
1893 | DEFAULT_wxUSE_TOOLTIPS=no | |
1894 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1895 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1896 | DEFAULT_wxUSE_SPLINES=no |
1897 | ||
1898 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1899 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1900 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1901 | ||
1902 | DEFAULT_wxUSE_PROLOGIO=no | |
1903 | DEFAULT_wxUSE_RESOURCES=no | |
1904 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1905 | DEFAULT_wxUSE_IPC=no | |
1906 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1907 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1908 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1909 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1910 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1911 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1912 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1913 | DEFAULT_wxUSE_PROTOCOL=no | |
1914 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1915 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1916 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1917 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1918 | |
10f2d63a | 1919 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1920 | DEFAULT_wxUSE_CHOICEDLG=no |
1921 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1922 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1923 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1924 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1925 | DEFAULT_wxUSE_FONTDLG=no |
1926 | DEFAULT_wxUSE_MSGDLG=no | |
1927 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1928 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1929 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1930 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1931 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1932 | DEFAULT_wxUSE_WIZARDDLG=no |
1933 | ||
1e6feb95 | 1934 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1935 | DEFAULT_wxUSE_MINIFRAME=no |
1936 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1937 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1938 | DEFAULT_wxUSE_FS_INET=no |
1939 | DEFAULT_wxUSE_FS_ZIP=no | |
1940 | DEFAULT_wxUSE_BUSYINFO=no | |
1941 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1942 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1943 | |
1944 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1945 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1946 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1947 | DEFAULT_wxUSE_CALCTRL=no |
1948 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1949 | DEFAULT_wxUSE_CHECKBOX=no |
1950 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1951 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1952 | DEFAULT_wxUSE_COMBOBOX=no |
1953 | DEFAULT_wxUSE_GAUGE=no | |
1954 | DEFAULT_wxUSE_GRID=no | |
1955 | DEFAULT_wxUSE_NEW_GRID=no | |
1956 | DEFAULT_wxUSE_IMAGLIST=no | |
1957 | DEFAULT_wxUSE_LISTBOX=no | |
1958 | DEFAULT_wxUSE_LISTCTRL=no | |
1959 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1960 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1961 | DEFAULT_wxUSE_RADIOBOX=no |
1962 | DEFAULT_wxUSE_RADIOBTN=no | |
1963 | DEFAULT_wxUSE_SASH=no | |
1964 | DEFAULT_wxUSE_SCROLLBAR=no | |
1965 | DEFAULT_wxUSE_SLIDER=no | |
1966 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1967 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1968 | DEFAULT_wxUSE_SPLITTER=no |
1969 | DEFAULT_wxUSE_STATBMP=no | |
1970 | DEFAULT_wxUSE_STATBOX=no | |
1971 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1972 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1973 | DEFAULT_wxUSE_STATUSBAR=yes |
1974 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1975 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1976 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1977 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1978 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1979 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1980 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1981 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1982 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1983 | |
1984 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1985 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1986 | DEFAULT_wxUSE_WCSRTOMBS=no |
1987 | ||
edae8572 | 1988 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1989 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1990 | DEFAULT_wxUSE_GIF=no |
1991 | DEFAULT_wxUSE_PCX=no | |
1992 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1993 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1994 | DEFAULT_wxUSE_XPM=no |
658974ae | 1995 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1996 | else |
1e6feb95 VZ |
1997 | DEFAULT_wxUSE_UNIVERSAL=no |
1998 | ||
d8356fa3 VZ |
1999 | DEFAULT_wxUSE_NANOX=no |
2000 | ||
10f2d63a VZ |
2001 | DEFAULT_wxUSE_THREADS=yes |
2002 | ||
2003 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 2004 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
2005 | DEFAULT_wxUSE_OPTIMISE=yes |
2006 | DEFAULT_wxUSE_PROFILE=no | |
2007 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2008 | DEFAULT_wxUSE_NO_RTTI=no |
2009 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2010 | DEFAULT_wxUSE_PERMISSIVE=no |
2011 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2012 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2013 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2014 | DEFAULT_wxUSE_MEM_TRACING=no | |
2015 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2016 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 2017 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
2018 | DEFAULT_wxUSE_APPLE_IEEE=yes |
2019 | ||
2020 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2021 | DEFAULT_wxUSE_LOGWINDOW=yes |
2022 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2023 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2024 | |
2025 | DEFAULT_wxUSE_GUI=yes | |
2026 | ||
831b3152 | 2027 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
2028 | DEFAULT_wxUSE_ZLIB=yes |
2029 | DEFAULT_wxUSE_LIBPNG=yes | |
2030 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2031 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2032 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2033 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2034 | |
eb4efbdc | 2035 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2036 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2037 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2038 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2039 | DEFAULT_wxUSE_DATETIME=yes | |
2040 | DEFAULT_wxUSE_TIMEDATE=no | |
2041 | DEFAULT_wxUSE_TIMER=yes | |
2042 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2043 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2044 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2045 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2046 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2047 | DEFAULT_wxUSE_WAVE=no |
2048 | DEFAULT_wxUSE_INTL=yes | |
2049 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2050 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2051 | DEFAULT_wxUSE_STREAMS=yes |
2052 | DEFAULT_wxUSE_SOCKETS=yes | |
2053 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 2054 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2055 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2056 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2057 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2058 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2059 | |
2060 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2061 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2062 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2063 | ||
2064 | DEFAULT_wxUSE_X_RESOURCES=no | |
2065 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2066 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2067 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2068 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2069 | DEFAULT_wxUSE_SPLINES=yes |
2070 | ||
2071 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2072 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2073 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2074 | ||
2075 | DEFAULT_wxUSE_PROLOGIO=yes | |
2076 | DEFAULT_wxUSE_RESOURCES=yes | |
2077 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2078 | DEFAULT_wxUSE_IPC=yes | |
2079 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2080 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2081 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2082 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2083 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2084 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2085 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2086 | DEFAULT_wxUSE_PROTOCOL=yes |
2087 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2088 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2089 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2090 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2091 | |
2092 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2093 | DEFAULT_wxUSE_CHOICEDLG=yes |
2094 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2095 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2096 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2097 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2098 | DEFAULT_wxUSE_FONTDLG=yes |
2099 | DEFAULT_wxUSE_MSGDLG=yes | |
2100 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2101 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2102 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2103 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2104 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2105 | DEFAULT_wxUSE_WIZARDDLG=yes |
2106 | ||
1e6feb95 | 2107 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2108 | DEFAULT_wxUSE_MINIFRAME=yes |
2109 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2110 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2111 | DEFAULT_wxUSE_FS_INET=yes |
2112 | DEFAULT_wxUSE_FS_ZIP=yes | |
2113 | DEFAULT_wxUSE_BUSYINFO=yes | |
2114 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2115 | DEFAULT_wxUSE_VALIDATORS=yes | |
2116 | ||
2117 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2118 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2119 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2120 | DEFAULT_wxUSE_CALCTRL=yes |
2121 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2122 | DEFAULT_wxUSE_CHECKBOX=yes |
2123 | DEFAULT_wxUSE_CHECKLST=yes | |
2124 | DEFAULT_wxUSE_CHOICE=yes | |
2125 | DEFAULT_wxUSE_COMBOBOX=yes | |
2126 | DEFAULT_wxUSE_GAUGE=yes | |
2127 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 2128 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
2129 | DEFAULT_wxUSE_IMAGLIST=yes |
2130 | DEFAULT_wxUSE_LISTBOX=yes | |
2131 | DEFAULT_wxUSE_LISTCTRL=yes | |
2132 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 2133 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
2134 | DEFAULT_wxUSE_RADIOBOX=yes |
2135 | DEFAULT_wxUSE_RADIOBTN=yes | |
2136 | DEFAULT_wxUSE_SASH=yes | |
2137 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2138 | DEFAULT_wxUSE_SLIDER=yes | |
2139 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2140 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2141 | DEFAULT_wxUSE_SPLITTER=yes |
2142 | DEFAULT_wxUSE_STATBMP=yes | |
2143 | DEFAULT_wxUSE_STATBOX=yes | |
2144 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2145 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2146 | DEFAULT_wxUSE_STATUSBAR=yes |
2147 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2148 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2149 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2150 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2151 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2152 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2153 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2154 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2155 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2156 | |
2157 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2158 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2159 | DEFAULT_wxUSE_WCSRTOMBS=no |
2160 | ||
edae8572 | 2161 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2162 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2163 | DEFAULT_wxUSE_GIF=yes |
2164 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2165 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2166 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2167 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2168 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
2169 | fi |
2170 | ||
8284b0c5 MB |
2171 | |
2172 | ||
10f2d63a | 2173 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2174 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2175 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2176 | has_toolkit_in_cache=1 |
2177 | eval "DEFAULT_$LINE" | |
2178 | eval "CACHE_$toolkit=1" | |
2179 | fi | |
2180 | done | |
2181 | ||
8284b0c5 MB |
2182 | |
2183 | ||
247f5006 VZ |
2184 | echo "$as_me:$LINENO: checking for --enable-gui" >&5 |
2185 | echo $ECHO_N "checking for --enable-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2186 | no_cache=0 |
2187 | # Check whether --enable-gui or --disable-gui was given. | |
2188 | if test "${enable_gui+set}" = set; then | |
2189 | enableval="$enable_gui" | |
247f5006 | 2190 | |
10f2d63a VZ |
2191 | if test "$enableval" = yes; then |
2192 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2193 | else | |
2194 | ac_cv_use_gui='wxUSE_GUI=no' | |
2195 | fi | |
247f5006 | 2196 | |
10f2d63a | 2197 | else |
247f5006 | 2198 | |
10f2d63a VZ |
2199 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2200 | if test "x$LINE" != x ; then | |
2201 | eval "DEFAULT_$LINE" | |
2202 | else | |
2203 | no_cache=1 | |
2204 | fi | |
2205 | ||
2206 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2207 | |
247f5006 | 2208 | fi; |
10f2d63a VZ |
2209 | |
2210 | eval "$ac_cv_use_gui" | |
2211 | if test "$no_cache" != 1; then | |
2212 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2213 | fi | |
2214 | ||
2215 | if test "$wxUSE_GUI" = yes; then | |
247f5006 VZ |
2216 | echo "$as_me:$LINENO: result: yes" >&5 |
2217 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2218 | else |
247f5006 VZ |
2219 | echo "$as_me:$LINENO: result: no" >&5 |
2220 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2221 | fi |
247f5006 | 2222 | |
10f2d63a | 2223 | |
b12915c1 | 2224 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2225 | |
8284b0c5 | 2226 | |
247f5006 VZ |
2227 | echo "$as_me:$LINENO: checking for --enable-universal" >&5 |
2228 | echo $ECHO_N "checking for --enable-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2229 | no_cache=0 |
2230 | # Check whether --enable-universal or --disable-universal was given. | |
2231 | if test "${enable_universal+set}" = set; then | |
2232 | enableval="$enable_universal" | |
247f5006 | 2233 | |
1e6feb95 VZ |
2234 | if test "$enableval" = yes; then |
2235 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2236 | else | |
2237 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2238 | fi | |
247f5006 | 2239 | |
1e6feb95 | 2240 | else |
247f5006 | 2241 | |
1e6feb95 VZ |
2242 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2243 | if test "x$LINE" != x ; then | |
2244 | eval "DEFAULT_$LINE" | |
2245 | else | |
2246 | no_cache=1 | |
2247 | fi | |
2248 | ||
2249 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2250 | |
247f5006 | 2251 | fi; |
1e6feb95 VZ |
2252 | |
2253 | eval "$ac_cv_use_universal" | |
2254 | if test "$no_cache" != 1; then | |
2255 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2256 | fi | |
2257 | ||
2258 | if test "$wxUSE_UNIVERSAL" = yes; then | |
247f5006 VZ |
2259 | echo "$as_me:$LINENO: result: yes" >&5 |
2260 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2261 | else |
247f5006 VZ |
2262 | echo "$as_me:$LINENO: result: no" >&5 |
2263 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2264 | fi |
247f5006 VZ |
2265 | |
2266 | ||
10f2d63a VZ |
2267 | # Check whether --with-gtk or --without-gtk was given. |
2268 | if test "${with_gtk+set}" = set; then | |
2269 | withval="$with_gtk" | |
2270 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
247f5006 | 2271 | fi; |
10f2d63a VZ |
2272 | |
2273 | # Check whether --with-motif or --without-motif was given. | |
2274 | if test "${with_motif+set}" = set; then | |
2275 | withval="$with_motif" | |
2276 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
247f5006 | 2277 | fi; |
10f2d63a | 2278 | |
b4085ce6 GD |
2279 | # Check whether --with-mac or --without-mac was given. |
2280 | if test "${with_mac+set}" = set; then | |
2281 | withval="$with_mac" | |
2282 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
247f5006 | 2283 | fi; |
b4085ce6 | 2284 | |
10f2d63a VZ |
2285 | # Check whether --with-wine or --without-wine was given. |
2286 | if test "${with_wine+set}" = set; then | |
2287 | withval="$with_wine" | |
2288 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
247f5006 | 2289 | fi; |
10f2d63a | 2290 | |
77e13408 RL |
2291 | # Check whether --with-msw or --without-msw was given. |
2292 | if test "${with_msw+set}" = set; then | |
2293 | withval="$with_msw" | |
b4efce5e | 2294 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
247f5006 | 2295 | fi; |
10f2d63a | 2296 | |
e07802fc VZ |
2297 | # Check whether --with-pm or --without-pm was given. |
2298 | if test "${with_pm+set}" = set; then | |
2299 | withval="$with_pm" | |
2300 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
247f5006 | 2301 | fi; |
698dcdb6 | 2302 | |
1e6feb95 VZ |
2303 | # Check whether --with-mgl or --without-mgl was given. |
2304 | if test "${with_mgl+set}" = set; then | |
2305 | withval="$with_mgl" | |
6c657b52 | 2306 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
247f5006 | 2307 | fi; |
1e6feb95 | 2308 | |
1725144d RR |
2309 | # Check whether --with-microwin or --without-microwin was given. |
2310 | if test "${with_microwin+set}" = set; then | |
2311 | withval="$with_microwin" | |
2312 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
247f5006 | 2313 | fi; |
1725144d | 2314 | |
f79bd02d JS |
2315 | # Check whether --with-x11 or --without-x11 was given. |
2316 | if test "${with_x11+set}" = set; then | |
2317 | withval="$with_x11" | |
3c011993 | 2318 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
247f5006 | 2319 | fi; |
10f2d63a | 2320 | |
247f5006 VZ |
2321 | echo "$as_me:$LINENO: checking for --enable-nanox" >&5 |
2322 | echo $ECHO_N "checking for --enable-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2323 | no_cache=0 |
ba875e66 VZ |
2324 | # Check whether --enable-nanox or --disable-nanox was given. |
2325 | if test "${enable_nanox+set}" = set; then | |
2326 | enableval="$enable_nanox" | |
247f5006 | 2327 | |
d8356fa3 | 2328 | if test "$enableval" = yes; then |
ba875e66 | 2329 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2330 | else |
ba875e66 | 2331 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2332 | fi |
247f5006 | 2333 | |
d8356fa3 | 2334 | else |
247f5006 | 2335 | |
d8356fa3 VZ |
2336 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2337 | if test "x$LINE" != x ; then | |
2338 | eval "DEFAULT_$LINE" | |
2339 | else | |
2340 | no_cache=1 | |
2341 | fi | |
2342 | ||
ba875e66 | 2343 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2344 | |
247f5006 | 2345 | fi; |
d8356fa3 | 2346 | |
ba875e66 | 2347 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2348 | if test "$no_cache" != 1; then |
ba875e66 | 2349 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2350 | fi |
2351 | ||
2352 | if test "$wxUSE_NANOX" = yes; then | |
247f5006 VZ |
2353 | echo "$as_me:$LINENO: result: yes" >&5 |
2354 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2355 | else |
247f5006 VZ |
2356 | echo "$as_me:$LINENO: result: no" >&5 |
2357 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2358 | fi |
8284b0c5 | 2359 | |
d74f4b5a | 2360 | |
247f5006 VZ |
2361 | |
2362 | echo "$as_me:$LINENO: checking for --enable-gtk2" >&5 | |
2363 | echo $ECHO_N "checking for --enable-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2364 | no_cache=0 |
2365 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2366 | if test "${enable_gtk2+set}" = set; then |
2367 | enableval="$enable_gtk2" | |
247f5006 | 2368 | |
d74f4b5a VZ |
2369 | if test "$enableval" = yes; then |
2370 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2371 | else | |
2372 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2373 | fi | |
247f5006 | 2374 | |
10f2d63a | 2375 | else |
247f5006 | 2376 | |
d74f4b5a VZ |
2377 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2378 | if test "x$LINE" != x ; then | |
2379 | eval "DEFAULT_$LINE" | |
2380 | else | |
2381 | no_cache=1 | |
2382 | fi | |
2383 | ||
2384 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2385 | |
247f5006 | 2386 | fi; |
328a083c | 2387 | |
d74f4b5a VZ |
2388 | eval "$ac_cv_use_gtk2" |
2389 | if test "$no_cache" != 1; then | |
2390 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2391 | fi | |
2392 | ||
2393 | if test "$wxUSE_GTK2" = yes; then | |
247f5006 VZ |
2394 | echo "$as_me:$LINENO: result: yes" >&5 |
2395 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2396 | else |
247f5006 VZ |
2397 | echo "$as_me:$LINENO: result: no" >&5 |
2398 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2399 | fi |
d74f4b5a | 2400 | |
5c6fa7d2 | 2401 | |
247f5006 VZ |
2402 | |
2403 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2404 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2405 | no_cache=0 |
247f5006 VZ |
2406 | |
2407 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2408 | if test "${with_libpng+set}" = set; then |
2409 | withval="$with_libpng" | |
247f5006 | 2410 | |
10f2d63a | 2411 | if test "$withval" = yes; then |
b12915c1 | 2412 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2413 | elif test "$withval" = no; then |
b12915c1 | 2414 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2415 | elif test "$withval" = sys; then |
2416 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2417 | elif test "$withval" = builtin; then |
2418 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2419 | else |
247f5006 VZ |
2420 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2421 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2422 | { (exit 1); exit 1; }; } | |
10f2d63a | 2423 | fi |
247f5006 | 2424 | |
10f2d63a | 2425 | else |
247f5006 | 2426 | |
b12915c1 | 2427 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2428 | if test "x$LINE" != x ; then |
2429 | eval "DEFAULT_$LINE" | |
2430 | else | |
2431 | no_cache=1 | |
2432 | fi | |
2433 | ||
b12915c1 | 2434 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2435 | |
247f5006 | 2436 | fi; |
10f2d63a | 2437 | |
b12915c1 | 2438 | eval "$ac_cv_use_libpng" |
10f2d63a | 2439 | if test "$no_cache" != 1; then |
b12915c1 | 2440 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2441 | fi |
2442 | ||
b12915c1 | 2443 | if test "$wxUSE_LIBPNG" = yes; then |
247f5006 VZ |
2444 | echo "$as_me:$LINENO: result: yes" >&5 |
2445 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2446 | elif test "$wxUSE_LIBPNG" = no; then |
247f5006 VZ |
2447 | echo "$as_me:$LINENO: result: no" >&5 |
2448 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2449 | elif test "$wxUSE_LIBPNG" = sys; then |
247f5006 VZ |
2450 | echo "$as_me:$LINENO: result: system version" >&5 |
2451 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2452 | elif test "$wxUSE_LIBPNG" = builtin; then |
247f5006 VZ |
2453 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2454 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2455 | else |
247f5006 VZ |
2456 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2457 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2458 | { (exit 1); exit 1; }; } | |
10f2d63a | 2459 | fi |
10f2d63a | 2460 | |
247f5006 VZ |
2461 | |
2462 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2463 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2464 | no_cache=0 |
247f5006 VZ |
2465 | |
2466 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2467 | if test "${with_libjpeg+set}" = set; then |
2468 | withval="$with_libjpeg" | |
247f5006 | 2469 | |
10f2d63a | 2470 | if test "$withval" = yes; then |
b12915c1 | 2471 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2472 | elif test "$withval" = no; then |
b12915c1 | 2473 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2474 | elif test "$withval" = sys; then |
2475 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2476 | elif test "$withval" = builtin; then |
2477 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2478 | else |
247f5006 VZ |
2479 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2480 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2481 | { (exit 1); exit 1; }; } | |
10f2d63a | 2482 | fi |
247f5006 | 2483 | |
10f2d63a | 2484 | else |
247f5006 | 2485 | |
b12915c1 | 2486 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2487 | if test "x$LINE" != x ; then |
2488 | eval "DEFAULT_$LINE" | |
2489 | else | |
2490 | no_cache=1 | |
2491 | fi | |
2492 | ||
b12915c1 | 2493 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2494 | |
247f5006 | 2495 | fi; |
10f2d63a | 2496 | |
b12915c1 | 2497 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2498 | if test "$no_cache" != 1; then |
b12915c1 | 2499 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2500 | fi |
2501 | ||
b12915c1 | 2502 | if test "$wxUSE_LIBJPEG" = yes; then |
247f5006 VZ |
2503 | echo "$as_me:$LINENO: result: yes" >&5 |
2504 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2505 | elif test "$wxUSE_LIBJPEG" = no; then |
247f5006 VZ |
2506 | echo "$as_me:$LINENO: result: no" >&5 |
2507 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2508 | elif test "$wxUSE_LIBJPEG" = sys; then |
247f5006 VZ |
2509 | echo "$as_me:$LINENO: result: system version" >&5 |
2510 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2511 | elif test "$wxUSE_LIBJPEG" = builtin; then |
247f5006 VZ |
2512 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2513 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2514 | else |
247f5006 VZ |
2515 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2516 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2517 | { (exit 1); exit 1; }; } | |
10f2d63a | 2518 | fi |
10f2d63a | 2519 | |
247f5006 VZ |
2520 | |
2521 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2522 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2523 | no_cache=0 |
247f5006 VZ |
2524 | |
2525 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2526 | if test "${with_libtiff+set}" = set; then |
2527 | withval="$with_libtiff" | |
247f5006 | 2528 | |
10f2d63a | 2529 | if test "$withval" = yes; then |
b12915c1 | 2530 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2531 | elif test "$withval" = no; then |
b12915c1 | 2532 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2533 | elif test "$withval" = sys; then |
2534 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2535 | elif test "$withval" = builtin; then |
2536 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2537 | else |
247f5006 VZ |
2538 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2539 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2540 | { (exit 1); exit 1; }; } | |
10f2d63a | 2541 | fi |
247f5006 | 2542 | |
10f2d63a | 2543 | else |
247f5006 | 2544 | |
b12915c1 | 2545 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2546 | if test "x$LINE" != x ; then |
2547 | eval "DEFAULT_$LINE" | |
2548 | else | |
2549 | no_cache=1 | |
2550 | fi | |
2551 | ||
b12915c1 | 2552 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2553 | |
247f5006 | 2554 | fi; |
10f2d63a | 2555 | |
b12915c1 | 2556 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2557 | if test "$no_cache" != 1; then |
b12915c1 | 2558 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2559 | fi |
2560 | ||
b12915c1 | 2561 | if test "$wxUSE_LIBTIFF" = yes; then |
247f5006 VZ |
2562 | echo "$as_me:$LINENO: result: yes" >&5 |
2563 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2564 | elif test "$wxUSE_LIBTIFF" = no; then |
247f5006 VZ |
2565 | echo "$as_me:$LINENO: result: no" >&5 |
2566 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2567 | elif test "$wxUSE_LIBTIFF" = sys; then |
247f5006 VZ |
2568 | echo "$as_me:$LINENO: result: system version" >&5 |
2569 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2570 | elif test "$wxUSE_LIBTIFF" = builtin; then |
247f5006 VZ |
2571 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2572 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2573 | else |
247f5006 VZ |
2574 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2575 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2576 | { (exit 1); exit 1; }; } | |
10f2d63a | 2577 | fi |
10f2d63a | 2578 | |
247f5006 VZ |
2579 | |
2580 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2581 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2582 | no_cache=0 |
247f5006 VZ |
2583 | |
2584 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2585 | if test "${with_opengl+set}" = set; then |
2586 | withval="$with_opengl" | |
247f5006 | 2587 | |
10f2d63a | 2588 | if test "$withval" = yes; then |
b12915c1 | 2589 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2590 | else |
b12915c1 | 2591 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2592 | fi |
247f5006 | 2593 | |
10f2d63a | 2594 | else |
247f5006 | 2595 | |
b12915c1 | 2596 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2597 | if test "x$LINE" != x ; then |
2598 | eval "DEFAULT_$LINE" | |
2599 | else | |
2600 | no_cache=1 | |
2601 | fi | |
2602 | ||
b12915c1 | 2603 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2604 | |
247f5006 | 2605 | fi; |
10f2d63a | 2606 | |
b12915c1 | 2607 | eval "$ac_cv_use_opengl" |
10f2d63a | 2608 | if test "$no_cache" != 1; then |
b12915c1 | 2609 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2610 | fi |
2611 | ||
b12915c1 | 2612 | if test "$wxUSE_OPENGL" = yes; then |
247f5006 VZ |
2613 | echo "$as_me:$LINENO: result: yes" >&5 |
2614 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2615 | else |
247f5006 VZ |
2616 | echo "$as_me:$LINENO: result: no" >&5 |
2617 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2618 | fi |
247f5006 | 2619 | |
10f2d63a | 2620 | |
b12915c1 VZ |
2621 | fi |
2622 | ||
5c6fa7d2 | 2623 | |
247f5006 VZ |
2624 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2625 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2626 | no_cache=0 |
247f5006 VZ |
2627 | |
2628 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2629 | if test "${with_dmalloc+set}" = set; then |
2630 | withval="$with_dmalloc" | |
247f5006 | 2631 | |
c7a2bf27 | 2632 | if test "$withval" = yes; then |
b12915c1 | 2633 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2634 | else |
b12915c1 | 2635 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2636 | fi |
247f5006 | 2637 | |
c7a2bf27 | 2638 | else |
247f5006 | 2639 | |
b12915c1 | 2640 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2641 | if test "x$LINE" != x ; then |
2642 | eval "DEFAULT_$LINE" | |
2643 | else | |
2644 | no_cache=1 | |
2645 | fi | |
2646 | ||
b12915c1 | 2647 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2648 | |
247f5006 | 2649 | fi; |
c7a2bf27 | 2650 | |
b12915c1 | 2651 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2652 | if test "$no_cache" != 1; then |
b12915c1 | 2653 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2654 | fi |
2655 | ||
b12915c1 | 2656 | if test "$wxUSE_DMALLOC" = yes; then |
247f5006 VZ |
2657 | echo "$as_me:$LINENO: result: yes" >&5 |
2658 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2659 | else |
247f5006 VZ |
2660 | echo "$as_me:$LINENO: result: no" >&5 |
2661 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2662 | fi |
c7a2bf27 | 2663 | |
247f5006 VZ |
2664 | |
2665 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2666 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2667 | no_cache=0 |
247f5006 VZ |
2668 | |
2669 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2670 | if test "${with_regex+set}" = set; then |
2671 | withval="$with_regex" | |
247f5006 | 2672 | |
3e44f09d VZ |
2673 | if test "$withval" = yes; then |
2674 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2675 | elif test "$withval" = no; then | |
2676 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2677 | elif test "$withval" = sys; then | |
2678 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2679 | elif test "$withval" = builtin; then |
2680 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2681 | else |
247f5006 VZ |
2682 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2683 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2684 | { (exit 1); exit 1; }; } | |
3e44f09d | 2685 | fi |
247f5006 | 2686 | |
3e44f09d | 2687 | else |
247f5006 | 2688 | |
3e44f09d VZ |
2689 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2690 | if test "x$LINE" != x ; then | |
2691 | eval "DEFAULT_$LINE" | |
2692 | else | |
2693 | no_cache=1 | |
2694 | fi | |
2695 | ||
2696 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2697 | |
247f5006 | 2698 | fi; |
3e44f09d VZ |
2699 | |
2700 | eval "$ac_cv_use_regex" | |
2701 | if test "$no_cache" != 1; then | |
2702 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2703 | fi | |
2704 | ||
2705 | if test "$wxUSE_REGEX" = yes; then | |
247f5006 VZ |
2706 | echo "$as_me:$LINENO: result: yes" >&5 |
2707 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2708 | elif test "$wxUSE_REGEX" = no; then |
247f5006 VZ |
2709 | echo "$as_me:$LINENO: result: no" >&5 |
2710 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2711 | elif test "$wxUSE_REGEX" = sys; then |
247f5006 VZ |
2712 | echo "$as_me:$LINENO: result: system version" >&5 |
2713 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2714 | elif test "$wxUSE_REGEX" = builtin; then |
247f5006 VZ |
2715 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2716 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2717 | else |
247f5006 VZ |
2718 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2719 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2720 | { (exit 1); exit 1; }; } | |
3e44f09d | 2721 | fi |
3e44f09d | 2722 | |
247f5006 VZ |
2723 | |
2724 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2725 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2726 | no_cache=0 |
247f5006 VZ |
2727 | |
2728 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2729 | if test "${with_zlib+set}" = set; then |
2730 | withval="$with_zlib" | |
247f5006 | 2731 | |
10f2d63a | 2732 | if test "$withval" = yes; then |
b12915c1 | 2733 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2734 | elif test "$withval" = no; then |
b12915c1 | 2735 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2736 | elif test "$withval" = sys; then |
2737 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2738 | elif test "$withval" = builtin; then |
2739 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2740 | else |
247f5006 VZ |
2741 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2742 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2743 | { (exit 1); exit 1; }; } | |
10f2d63a | 2744 | fi |
247f5006 | 2745 | |
10f2d63a | 2746 | else |
247f5006 | 2747 | |
b12915c1 | 2748 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2749 | if test "x$LINE" != x ; then |
2750 | eval "DEFAULT_$LINE" | |
2751 | else | |
2752 | no_cache=1 | |
2753 | fi | |
2754 | ||
b12915c1 | 2755 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2756 | |
247f5006 | 2757 | fi; |
10f2d63a | 2758 | |
b12915c1 | 2759 | eval "$ac_cv_use_zlib" |
10f2d63a | 2760 | if test "$no_cache" != 1; then |
b12915c1 | 2761 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2762 | fi |
2763 | ||
b12915c1 | 2764 | if test "$wxUSE_ZLIB" = yes; then |
247f5006 VZ |
2765 | echo "$as_me:$LINENO: result: yes" >&5 |
2766 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2767 | elif test "$wxUSE_ZLIB" = no; then |
247f5006 VZ |
2768 | echo "$as_me:$LINENO: result: no" >&5 |
2769 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2770 | elif test "$wxUSE_ZLIB" = sys; then |
247f5006 VZ |
2771 | echo "$as_me:$LINENO: result: system version" >&5 |
2772 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2773 | elif test "$wxUSE_ZLIB" = builtin; then |
247f5006 VZ |
2774 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2775 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2776 | else |
247f5006 VZ |
2777 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2778 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2779 | { (exit 1); exit 1; }; } | |
10f2d63a | 2780 | fi |
10f2d63a | 2781 | |
247f5006 VZ |
2782 | |
2783 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2784 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2785 | no_cache=0 |
247f5006 VZ |
2786 | |
2787 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2788 | if test "${with_odbc+set}" = set; then |
2789 | withval="$with_odbc" | |
247f5006 | 2790 | |
10f2d63a VZ |
2791 | if test "$withval" = yes; then |
2792 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2793 | else | |
2794 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2795 | fi | |
247f5006 | 2796 | |
10f2d63a | 2797 | else |
247f5006 | 2798 | |
10f2d63a VZ |
2799 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2800 | if test "x$LINE" != x ; then | |
2801 | eval "DEFAULT_$LINE" | |
2802 | else | |
2803 | no_cache=1 | |
2804 | fi | |
2805 | ||
2806 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 2807 | |
247f5006 | 2808 | fi; |
10f2d63a VZ |
2809 | |
2810 | eval "$ac_cv_use_odbc" | |
2811 | if test "$no_cache" != 1; then | |
2812 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2813 | fi | |
2814 | ||
2815 | if test "$wxUSE_ODBC" = yes; then | |
247f5006 VZ |
2816 | echo "$as_me:$LINENO: result: yes" >&5 |
2817 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2818 | else |
247f5006 VZ |
2819 | echo "$as_me:$LINENO: result: no" >&5 |
2820 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2821 | fi |
52127426 | 2822 | |
8284b0c5 MB |
2823 | |
2824 | ||
247f5006 VZ |
2825 | |
2826 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 | |
2827 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
2828 | no_cache=0 |
2829 | # Check whether --enable-shared or --disable-shared was given. | |
2830 | if test "${enable_shared+set}" = set; then | |
2831 | enableval="$enable_shared" | |
247f5006 | 2832 | |
10f2d63a VZ |
2833 | if test "$enableval" = yes; then |
2834 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2835 | else | |
2836 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2837 | fi | |
247f5006 | 2838 | |
10f2d63a | 2839 | else |
247f5006 | 2840 | |
10f2d63a VZ |
2841 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2842 | if test "x$LINE" != x ; then | |
2843 | eval "DEFAULT_$LINE" | |
2844 | else | |
2845 | no_cache=1 | |
2846 | fi | |
2847 | ||
2848 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 2849 | |
247f5006 | 2850 | fi; |
10f2d63a VZ |
2851 | |
2852 | eval "$ac_cv_use_shared" | |
2853 | if test "$no_cache" != 1; then | |
2854 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2855 | fi | |
2856 | ||
2857 | if test "$wxUSE_SHARED" = yes; then | |
247f5006 VZ |
2858 | echo "$as_me:$LINENO: result: yes" >&5 |
2859 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2860 | else |
247f5006 VZ |
2861 | echo "$as_me:$LINENO: result: no" >&5 |
2862 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2863 | fi |
10f2d63a | 2864 | |
247f5006 VZ |
2865 | |
2866 | echo "$as_me:$LINENO: checking for --enable-soname" >&5 | |
2867 | echo $ECHO_N "checking for --enable-soname... $ECHO_C" >&6 | |
00cf1208 | 2868 | no_cache=0 |
3a922bb4 RL |
2869 | # Check whether --enable-soname or --disable-soname was given. |
2870 | if test "${enable_soname+set}" = set; then | |
2871 | enableval="$enable_soname" | |
247f5006 | 2872 | |
00cf1208 | 2873 | if test "$enableval" = yes; then |
3a922bb4 | 2874 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2875 | else |
3a922bb4 | 2876 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2877 | fi |
247f5006 | 2878 | |
00cf1208 | 2879 | else |
247f5006 | 2880 | |
3a922bb4 | 2881 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2882 | if test "x$LINE" != x ; then |
2883 | eval "DEFAULT_$LINE" | |
2884 | else | |
2885 | no_cache=1 | |
2886 | fi | |
2887 | ||
3a922bb4 | 2888 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
00cf1208 | 2889 | |
247f5006 | 2890 | fi; |
00cf1208 | 2891 | |
3a922bb4 | 2892 | eval "$ac_cv_use_soname" |
00cf1208 | 2893 | if test "$no_cache" != 1; then |
3a922bb4 | 2894 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2895 | fi |
2896 | ||
3a922bb4 | 2897 | if test "$wxUSE_SONAME" = yes; then |
247f5006 VZ |
2898 | echo "$as_me:$LINENO: result: yes" >&5 |
2899 | echo "${ECHO_T}yes" >&6 | |
00cf1208 | 2900 | else |
247f5006 VZ |
2901 | echo "$as_me:$LINENO: result: no" >&5 |
2902 | echo "${ECHO_T}no" >&6 | |
00cf1208 | 2903 | fi |
00cf1208 | 2904 | |
247f5006 VZ |
2905 | |
2906 | echo "$as_me:$LINENO: checking for --enable-optimise" >&5 | |
2907 | echo $ECHO_N "checking for --enable-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
2908 | no_cache=0 |
2909 | # Check whether --enable-optimise or --disable-optimise was given. | |
2910 | if test "${enable_optimise+set}" = set; then | |
2911 | enableval="$enable_optimise" | |
247f5006 | 2912 | |
10f2d63a VZ |
2913 | if test "$enableval" = yes; then |
2914 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2915 | else | |
2916 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2917 | fi | |
247f5006 | 2918 | |
10f2d63a | 2919 | else |
247f5006 | 2920 | |
10f2d63a VZ |
2921 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2922 | if test "x$LINE" != x ; then | |
2923 | eval "DEFAULT_$LINE" | |
2924 | else | |
2925 | no_cache=1 | |
2926 | fi | |
2927 | ||
2928 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 2929 | |
247f5006 | 2930 | fi; |
10f2d63a VZ |
2931 | |
2932 | eval "$ac_cv_use_optimise" | |
2933 | if test "$no_cache" != 1; then | |
2934 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2935 | fi | |
2936 | ||
2937 | if test "$wxUSE_OPTIMISE" = yes; then | |
247f5006 VZ |
2938 | echo "$as_me:$LINENO: result: yes" >&5 |
2939 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2940 | else |
247f5006 VZ |
2941 | echo "$as_me:$LINENO: result: no" >&5 |
2942 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2943 | fi |
10f2d63a | 2944 | |
247f5006 VZ |
2945 | |
2946 | echo "$as_me:$LINENO: checking for --enable-debug" >&5 | |
2947 | echo $ECHO_N "checking for --enable-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
2948 | no_cache=0 |
2949 | # Check whether --enable-debug or --disable-debug was given. | |
2950 | if test "${enable_debug+set}" = set; then | |
2951 | enableval="$enable_debug" | |
247f5006 | 2952 | |
10f2d63a VZ |
2953 | if test "$enableval" = yes; then |
2954 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2955 | else | |
2956 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2957 | fi | |
247f5006 | 2958 | |
10f2d63a | 2959 | else |
247f5006 | 2960 | |
10f2d63a VZ |
2961 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2962 | if test "x$LINE" != x ; then | |
2963 | eval "DEFAULT_$LINE" | |
2964 | else | |
2965 | no_cache=1 | |
2966 | fi | |
2967 | ||
2968 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 2969 | |
247f5006 | 2970 | fi; |
10f2d63a VZ |
2971 | |
2972 | eval "$ac_cv_use_debug" | |
2973 | if test "$no_cache" != 1; then | |
2974 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2975 | fi | |
2976 | ||
2977 | if test "$wxUSE_DEBUG" = yes; then | |
247f5006 VZ |
2978 | echo "$as_me:$LINENO: result: yes" >&5 |
2979 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2980 | else |
247f5006 VZ |
2981 | echo "$as_me:$LINENO: result: no" >&5 |
2982 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2983 | fi |
52127426 | 2984 | |
8284b0c5 | 2985 | |
247f5006 VZ |
2986 | |
2987 | echo "$as_me:$LINENO: checking for --enable-precomp" >&5 | |
2988 | echo $ECHO_N "checking for --enable-precomp... $ECHO_C" >&6 | |
683dccda GD |
2989 | no_cache=0 |
2990 | # Check whether --enable-precomp or --disable-precomp was given. | |
2991 | if test "${enable_precomp+set}" = set; then | |
2992 | enableval="$enable_precomp" | |
247f5006 | 2993 | |
683dccda GD |
2994 | if test "$enableval" = yes; then |
2995 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2996 | else | |
2997 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2998 | fi | |
247f5006 | 2999 | |
683dccda | 3000 | else |
247f5006 | 3001 | |
683dccda GD |
3002 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
3003 | if test "x$LINE" != x ; then | |
3004 | eval "DEFAULT_$LINE" | |
3005 | else | |
3006 | no_cache=1 | |
3007 | fi | |
3008 | ||
3009 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
683dccda | 3010 | |
247f5006 | 3011 | fi; |
683dccda GD |
3012 | |
3013 | eval "$ac_cv_use_precomp" | |
3014 | if test "$no_cache" != 1; then | |
3015 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
3016 | fi | |
3017 | ||
3018 | if test "$wxUSE_PRECOMP" = yes; then | |
247f5006 VZ |
3019 | echo "$as_me:$LINENO: result: yes" >&5 |
3020 | echo "${ECHO_T}yes" >&6 | |
683dccda | 3021 | else |
247f5006 VZ |
3022 | echo "$as_me:$LINENO: result: no" >&5 |
3023 | echo "${ECHO_T}no" >&6 | |
683dccda | 3024 | fi |
247f5006 | 3025 | |
683dccda | 3026 | |
10f2d63a VZ |
3027 | if test "$wxUSE_DEBUG" = "yes"; then |
3028 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3029 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3030 | elif test "$wxUSE_DEBUG" = "no"; then | |
3031 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3032 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3033 | fi | |
3034 | ||
8284b0c5 | 3035 | |
247f5006 VZ |
3036 | echo "$as_me:$LINENO: checking for --enable-debug_flag" >&5 |
3037 | echo $ECHO_N "checking for --enable-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3038 | no_cache=0 |
3039 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3040 | if test "${enable_debug_flag+set}" = set; then | |
3041 | enableval="$enable_debug_flag" | |
247f5006 | 3042 | |
10f2d63a VZ |
3043 | if test "$enableval" = yes; then |
3044 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3045 | else | |
3046 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3047 | fi | |
247f5006 | 3048 | |
10f2d63a | 3049 | else |
247f5006 | 3050 | |
10f2d63a VZ |
3051 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3052 | if test "x$LINE" != x ; then | |
3053 | eval "DEFAULT_$LINE" | |
3054 | else | |
3055 | no_cache=1 | |
3056 | fi | |
3057 | ||
3058 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3059 | |
247f5006 | 3060 | fi; |
10f2d63a VZ |
3061 | |
3062 | eval "$ac_cv_use_debug_flag" | |
3063 | if test "$no_cache" != 1; then | |
3064 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3065 | fi | |
3066 | ||
3067 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
247f5006 VZ |
3068 | echo "$as_me:$LINENO: result: yes" >&5 |
3069 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3070 | else |
247f5006 VZ |
3071 | echo "$as_me:$LINENO: result: no" >&5 |
3072 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3073 | fi |
10f2d63a | 3074 | |
247f5006 VZ |
3075 | |
3076 | echo "$as_me:$LINENO: checking for --enable-debug_info" >&5 | |
3077 | echo $ECHO_N "checking for --enable-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3078 | no_cache=0 |
3079 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3080 | if test "${enable_debug_info+set}" = set; then | |
3081 | enableval="$enable_debug_info" | |
247f5006 | 3082 | |
10f2d63a VZ |
3083 | if test "$enableval" = yes; then |
3084 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3085 | else | |
3086 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3087 | fi | |
247f5006 | 3088 | |
10f2d63a | 3089 | else |
247f5006 | 3090 | |
10f2d63a VZ |
3091 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3092 | if test "x$LINE" != x ; then | |
3093 | eval "DEFAULT_$LINE" | |
3094 | else | |
3095 | no_cache=1 | |
3096 | fi | |
3097 | ||
3098 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3099 | |
247f5006 | 3100 | fi; |
10f2d63a VZ |
3101 | |
3102 | eval "$ac_cv_use_debug_info" | |
3103 | if test "$no_cache" != 1; then | |
3104 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3105 | fi | |
3106 | ||
3107 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
247f5006 VZ |
3108 | echo "$as_me:$LINENO: result: yes" >&5 |
3109 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3110 | else |
247f5006 VZ |
3111 | echo "$as_me:$LINENO: result: no" >&5 |
3112 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3113 | fi |
10f2d63a | 3114 | |
247f5006 VZ |
3115 | |
3116 | echo "$as_me:$LINENO: checking for --enable-debug_gdb" >&5 | |
3117 | echo $ECHO_N "checking for --enable-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3118 | no_cache=0 |
3119 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3120 | if test "${enable_debug_gdb+set}" = set; then | |
3121 | enableval="$enable_debug_gdb" | |
247f5006 | 3122 | |
10f2d63a VZ |
3123 | if test "$enableval" = yes; then |
3124 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3125 | else | |
3126 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3127 | fi | |
247f5006 | 3128 | |
10f2d63a | 3129 | else |
247f5006 | 3130 | |
10f2d63a VZ |
3131 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3132 | if test "x$LINE" != x ; then | |
3133 | eval "DEFAULT_$LINE" | |
3134 | else | |
3135 | no_cache=1 | |
3136 | fi | |
3137 | ||
3138 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3139 | |
247f5006 | 3140 | fi; |
10f2d63a VZ |
3141 | |
3142 | eval "$ac_cv_use_debug_gdb" | |
3143 | if test "$no_cache" != 1; then | |
3144 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3145 | fi | |
3146 | ||
3147 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
247f5006 VZ |
3148 | echo "$as_me:$LINENO: result: yes" >&5 |
3149 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3150 | else |
247f5006 VZ |
3151 | echo "$as_me:$LINENO: result: no" >&5 |
3152 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3153 | fi |
10f2d63a | 3154 | |
247f5006 VZ |
3155 | |
3156 | echo "$as_me:$LINENO: checking for --enable-debug_cntxt" >&5 | |
3157 | echo $ECHO_N "checking for --enable-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3158 | no_cache=0 |
3159 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3160 | if test "${enable_debug_cntxt+set}" = set; then | |
3161 | enableval="$enable_debug_cntxt" | |
247f5006 | 3162 | |
10f2d63a VZ |
3163 | if test "$enableval" = yes; then |
3164 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3165 | else | |
3166 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3167 | fi | |
247f5006 | 3168 | |
10f2d63a | 3169 | else |
247f5006 | 3170 | |
10f2d63a VZ |
3171 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3172 | if test "x$LINE" != x ; then | |
3173 | eval "DEFAULT_$LINE" | |
3174 | else | |
3175 | no_cache=1 | |
3176 | fi | |
3177 | ||
3178 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3179 | |
247f5006 | 3180 | fi; |
10f2d63a VZ |
3181 | |
3182 | eval "$ac_cv_use_debug_cntxt" | |
3183 | if test "$no_cache" != 1; then | |
3184 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3185 | fi | |
3186 | ||
3187 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
247f5006 VZ |
3188 | echo "$as_me:$LINENO: result: yes" >&5 |
3189 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3190 | else |
247f5006 VZ |
3191 | echo "$as_me:$LINENO: result: no" >&5 |
3192 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3193 | fi |
10f2d63a | 3194 | |
247f5006 VZ |
3195 | |
3196 | echo "$as_me:$LINENO: checking for --enable-mem_tracing" >&5 | |
3197 | echo $ECHO_N "checking for --enable-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3198 | no_cache=0 |
3199 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3200 | if test "${enable_mem_tracing+set}" = set; then | |
3201 | enableval="$enable_mem_tracing" | |
247f5006 | 3202 | |
10f2d63a VZ |
3203 | if test "$enableval" = yes; then |
3204 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3205 | else | |
3206 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3207 | fi | |
247f5006 | 3208 | |
10f2d63a | 3209 | else |
247f5006 | 3210 | |
10f2d63a VZ |
3211 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3212 | if test "x$LINE" != x ; then | |
3213 | eval "DEFAULT_$LINE" | |
3214 | else | |
3215 | no_cache=1 | |
3216 | fi | |
3217 | ||
3218 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3219 | |
247f5006 | 3220 | fi; |
10f2d63a VZ |
3221 | |
3222 | eval "$ac_cv_use_mem_tracing" | |
3223 | if test "$no_cache" != 1; then | |
3224 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3225 | fi | |
3226 | ||
3227 | if test "$wxUSE_MEM_TRACING" = yes; then | |
247f5006 VZ |
3228 | echo "$as_me:$LINENO: result: yes" >&5 |
3229 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3230 | else |
247f5006 VZ |
3231 | echo "$as_me:$LINENO: result: no" >&5 |
3232 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3233 | fi |
10f2d63a | 3234 | |
247f5006 VZ |
3235 | |
3236 | echo "$as_me:$LINENO: checking for --enable-profile" >&5 | |
3237 | echo $ECHO_N "checking for --enable-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3238 | no_cache=0 |
3239 | # Check whether --enable-profile or --disable-profile was given. | |
3240 | if test "${enable_profile+set}" = set; then | |
3241 | enableval="$enable_profile" | |
247f5006 | 3242 | |
10f2d63a VZ |
3243 | if test "$enableval" = yes; then |
3244 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3245 | else | |
3246 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3247 | fi | |
247f5006 | 3248 | |
10f2d63a | 3249 | else |
247f5006 | 3250 | |
10f2d63a VZ |
3251 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3252 | if test "x$LINE" != x ; then | |
3253 | eval "DEFAULT_$LINE" | |
3254 | else | |
3255 | no_cache=1 | |
3256 | fi | |
3257 | ||
3258 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3259 | |
247f5006 | 3260 | fi; |
10f2d63a VZ |
3261 | |
3262 | eval "$ac_cv_use_profile" | |
3263 | if test "$no_cache" != 1; then | |
3264 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3265 | fi | |
3266 | ||
3267 | if test "$wxUSE_PROFILE" = yes; then | |
247f5006 VZ |
3268 | echo "$as_me:$LINENO: result: yes" >&5 |
3269 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3270 | else |
247f5006 VZ |
3271 | echo "$as_me:$LINENO: result: no" >&5 |
3272 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3273 | fi |
10f2d63a | 3274 | |
247f5006 VZ |
3275 | |
3276 | echo "$as_me:$LINENO: checking for --enable-no_rtti" >&5 | |
3277 | echo $ECHO_N "checking for --enable-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3278 | no_cache=0 |
3279 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3280 | if test "${enable_no_rtti+set}" = set; then | |
3281 | enableval="$enable_no_rtti" | |
247f5006 | 3282 | |
10f2d63a VZ |
3283 | if test "$enableval" = yes; then |
3284 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3285 | else | |
3286 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3287 | fi | |
247f5006 | 3288 | |
10f2d63a | 3289 | else |
247f5006 | 3290 | |
10f2d63a VZ |
3291 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3292 | if test "x$LINE" != x ; then | |
3293 | eval "DEFAULT_$LINE" | |
3294 | else | |
3295 | no_cache=1 | |
3296 | fi | |
3297 | ||
3298 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3299 | |
247f5006 | 3300 | fi; |
10f2d63a VZ |
3301 | |
3302 | eval "$ac_cv_use_no_rtti" | |
3303 | if test "$no_cache" != 1; then | |
3304 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3305 | fi | |
3306 | ||
3307 | if test "$wxUSE_NO_RTTI" = yes; then | |
247f5006 VZ |
3308 | echo "$as_me:$LINENO: result: yes" >&5 |
3309 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3310 | else |
247f5006 VZ |
3311 | echo "$as_me:$LINENO: result: no" >&5 |
3312 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3313 | fi |
10f2d63a | 3314 | |
247f5006 VZ |
3315 | |
3316 | echo "$as_me:$LINENO: checking for --enable-no_exceptions" >&5 | |
3317 | echo $ECHO_N "checking for --enable-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3318 | no_cache=0 |
3319 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3320 | if test "${enable_no_exceptions+set}" = set; then | |
3321 | enableval="$enable_no_exceptions" | |
247f5006 | 3322 | |
10f2d63a VZ |
3323 | if test "$enableval" = yes; then |
3324 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3325 | else | |
3326 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3327 | fi | |
247f5006 | 3328 | |
10f2d63a | 3329 | else |
247f5006 | 3330 | |
10f2d63a VZ |
3331 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3332 | if test "x$LINE" != x ; then | |
3333 | eval "DEFAULT_$LINE" | |
3334 | else | |
3335 | no_cache=1 | |
3336 | fi | |
3337 | ||
3338 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3339 | |
247f5006 | 3340 | fi; |
10f2d63a VZ |
3341 | |
3342 | eval "$ac_cv_use_no_exceptions" | |
3343 | if test "$no_cache" != 1; then | |
3344 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3345 | fi | |
3346 | ||
3347 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
247f5006 VZ |
3348 | echo "$as_me:$LINENO: result: yes" >&5 |
3349 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3350 | else |
247f5006 VZ |
3351 | echo "$as_me:$LINENO: result: no" >&5 |
3352 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3353 | fi |
10f2d63a | 3354 | |
247f5006 VZ |
3355 | |
3356 | echo "$as_me:$LINENO: checking for --enable-permissive" >&5 | |
3357 | echo $ECHO_N "checking for --enable-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3358 | no_cache=0 |
3359 | # Check whether --enable-permissive or --disable-permissive was given. | |
3360 | if test "${enable_permissive+set}" = set; then | |
3361 | enableval="$enable_permissive" | |
247f5006 | 3362 | |
10f2d63a VZ |
3363 | if test "$enableval" = yes; then |
3364 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3365 | else | |
3366 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3367 | fi | |
247f5006 | 3368 | |
10f2d63a | 3369 | else |
247f5006 | 3370 | |
10f2d63a VZ |
3371 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3372 | if test "x$LINE" != x ; then | |
3373 | eval "DEFAULT_$LINE" | |
3374 | else | |
3375 | no_cache=1 | |
3376 | fi | |
3377 | ||
3378 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3379 | |
247f5006 | 3380 | fi; |
10f2d63a VZ |
3381 | |
3382 | eval "$ac_cv_use_permissive" | |
3383 | if test "$no_cache" != 1; then | |
3384 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3385 | fi | |
3386 | ||
3387 | if test "$wxUSE_PERMISSIVE" = yes; then | |
247f5006 VZ |
3388 | echo "$as_me:$LINENO: result: yes" >&5 |
3389 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3390 | else |
247f5006 VZ |
3391 | echo "$as_me:$LINENO: result: no" >&5 |
3392 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3393 | fi |
10f2d63a | 3394 | |
247f5006 VZ |
3395 | |
3396 | echo "$as_me:$LINENO: checking for --enable-no_deps" >&5 | |
3397 | echo $ECHO_N "checking for --enable-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3398 | no_cache=0 |
3399 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3400 | if test "${enable_no_deps+set}" = set; then | |
3401 | enableval="$enable_no_deps" | |
247f5006 | 3402 | |
10f2d63a VZ |
3403 | if test "$enableval" = yes; then |
3404 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3405 | else | |
3406 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3407 | fi | |
247f5006 | 3408 | |
10f2d63a | 3409 | else |
247f5006 | 3410 | |
10f2d63a VZ |
3411 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3412 | if test "x$LINE" != x ; then | |
3413 | eval "DEFAULT_$LINE" | |
3414 | else | |
3415 | no_cache=1 | |
3416 | fi | |
3417 | ||
3418 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3419 | |
247f5006 | 3420 | fi; |
10f2d63a VZ |
3421 | |
3422 | eval "$ac_cv_use_no_deps" | |
3423 | if test "$no_cache" != 1; then | |
3424 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3425 | fi | |
3426 | ||
3427 | if test "$wxUSE_NO_DEPS" = yes; then | |
247f5006 VZ |
3428 | echo "$as_me:$LINENO: result: yes" >&5 |
3429 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3430 | else |
247f5006 VZ |
3431 | echo "$as_me:$LINENO: result: no" >&5 |
3432 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3433 | fi |
52127426 | 3434 | |
8284b0c5 | 3435 | |
247f5006 VZ |
3436 | |
3437 | echo "$as_me:$LINENO: checking for --enable-compat20" >&5 | |
3438 | echo $ECHO_N "checking for --enable-compat20... $ECHO_C" >&6 | |
54276ccf VZ |
3439 | no_cache=0 |
3440 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
3441 | if test "${enable_compat20+set}" = set; then | |
3442 | enableval="$enable_compat20" | |
247f5006 | 3443 | |
54276ccf VZ |
3444 | if test "$enableval" = yes; then |
3445 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
3446 | else | |
3447 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
3448 | fi | |
247f5006 | 3449 | |
54276ccf | 3450 | else |
247f5006 | 3451 | |
54276ccf VZ |
3452 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
3453 | if test "x$LINE" != x ; then | |
3454 | eval "DEFAULT_$LINE" | |
3455 | else | |
3456 | no_cache=1 | |
3457 | fi | |
3458 | ||
3459 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
54276ccf | 3460 | |
247f5006 | 3461 | fi; |
54276ccf VZ |
3462 | |
3463 | eval "$ac_cv_use_compat20" | |
3464 | if test "$no_cache" != 1; then | |
3465 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3466 | fi | |
3467 | ||
3468 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
247f5006 VZ |
3469 | echo "$as_me:$LINENO: result: yes" >&5 |
3470 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3471 | else |
247f5006 VZ |
3472 | echo "$as_me:$LINENO: result: no" >&5 |
3473 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3474 | fi |
54276ccf | 3475 | |
247f5006 VZ |
3476 | |
3477 | echo "$as_me:$LINENO: checking for --enable-compat22" >&5 | |
3478 | echo $ECHO_N "checking for --enable-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3479 | no_cache=0 |
3480 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3481 | if test "${enable_compat22+set}" = set; then | |
3482 | enableval="$enable_compat22" | |
247f5006 | 3483 | |
54276ccf VZ |
3484 | if test "$enableval" = yes; then |
3485 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3486 | else | |
3487 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3488 | fi | |
247f5006 | 3489 | |
54276ccf | 3490 | else |
247f5006 | 3491 | |
54276ccf VZ |
3492 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3493 | if test "x$LINE" != x ; then | |
3494 | eval "DEFAULT_$LINE" | |
3495 | else | |
3496 | no_cache=1 | |
3497 | fi | |
3498 | ||
3499 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3500 | |
247f5006 | 3501 | fi; |
54276ccf VZ |
3502 | |
3503 | eval "$ac_cv_use_compat22" | |
3504 | if test "$no_cache" != 1; then | |
3505 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3506 | fi | |
3507 | ||
3508 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
247f5006 VZ |
3509 | echo "$as_me:$LINENO: result: yes" >&5 |
3510 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3511 | else |
247f5006 VZ |
3512 | echo "$as_me:$LINENO: result: no" >&5 |
3513 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3514 | fi |
247f5006 | 3515 | |
54276ccf | 3516 | |
3bd8fb5f RD |
3517 | # Check whether --enable-rpath or --disable-rpath was given. |
3518 | if test "${enable_rpath+set}" = set; then | |
3519 | enableval="$enable_rpath" | |
3520 | wxRPATH_DIR="$enableval" | |
247f5006 | 3521 | fi; |
3bd8fb5f RD |
3522 | |
3523 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3524 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3525 | fi | |
3526 | ||
8284b0c5 MB |
3527 | |
3528 | ||
3529 | ||
247f5006 VZ |
3530 | echo "$as_me:$LINENO: checking for --enable-intl" >&5 |
3531 | echo $ECHO_N "checking for --enable-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3532 | no_cache=0 |
3533 | # Check whether --enable-intl or --disable-intl was given. | |
3534 | if test "${enable_intl+set}" = set; then | |
3535 | enableval="$enable_intl" | |
247f5006 | 3536 | |
10f2d63a VZ |
3537 | if test "$enableval" = yes; then |
3538 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3539 | else | |
3540 | ac_cv_use_intl='wxUSE_INTL=no' | |
3541 | fi | |
247f5006 | 3542 | |
10f2d63a | 3543 | else |
247f5006 | 3544 | |
10f2d63a VZ |
3545 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3546 | if test "x$LINE" != x ; then | |
3547 | eval "DEFAULT_$LINE" | |
3548 | else | |
3549 | no_cache=1 | |
3550 | fi | |
3551 | ||
3552 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3553 | |
247f5006 | 3554 | fi; |
10f2d63a VZ |
3555 | |
3556 | eval "$ac_cv_use_intl" | |
3557 | if test "$no_cache" != 1; then | |
3558 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3559 | fi | |
3560 | ||
3561 | if test "$wxUSE_INTL" = yes; then | |
247f5006 VZ |
3562 | echo "$as_me:$LINENO: result: yes" >&5 |
3563 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3564 | else |
247f5006 VZ |
3565 | echo "$as_me:$LINENO: result: no" >&5 |
3566 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3567 | fi |
10f2d63a | 3568 | |
247f5006 VZ |
3569 | |
3570 | echo "$as_me:$LINENO: checking for --enable-config" >&5 | |
3571 | echo $ECHO_N "checking for --enable-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3572 | no_cache=0 |
3573 | # Check whether --enable-config or --disable-config was given. | |
3574 | if test "${enable_config+set}" = set; then | |
3575 | enableval="$enable_config" | |
247f5006 | 3576 | |
10f2d63a VZ |
3577 | if test "$enableval" = yes; then |
3578 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3579 | else | |
3580 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3581 | fi | |
247f5006 | 3582 | |
10f2d63a | 3583 | else |
247f5006 | 3584 | |
10f2d63a VZ |
3585 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3586 | if test "x$LINE" != x ; then | |
3587 | eval "DEFAULT_$LINE" | |
3588 | else | |
3589 | no_cache=1 | |
3590 | fi | |
3591 | ||
3592 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3593 | |
247f5006 | 3594 | fi; |
10f2d63a VZ |
3595 | |
3596 | eval "$ac_cv_use_config" | |
3597 | if test "$no_cache" != 1; then | |
3598 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3599 | fi | |
3600 | ||
3601 | if test "$wxUSE_CONFIG" = yes; then | |
247f5006 VZ |
3602 | echo "$as_me:$LINENO: result: yes" >&5 |
3603 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3604 | else |
247f5006 VZ |
3605 | echo "$as_me:$LINENO: result: no" >&5 |
3606 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3607 | fi |
52127426 | 3608 | |
8284b0c5 | 3609 | |
247f5006 VZ |
3610 | |
3611 | echo "$as_me:$LINENO: checking for --enable-protocols" >&5 | |
3612 | echo $ECHO_N "checking for --enable-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3613 | no_cache=0 |
3614 | # Check whether --enable-protocols or --disable-protocols was given. | |
3615 | if test "${enable_protocols+set}" = set; then | |
3616 | enableval="$enable_protocols" | |
247f5006 | 3617 | |
a1622950 VZ |
3618 | if test "$enableval" = yes; then |
3619 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3620 | else | |
3621 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3622 | fi | |
247f5006 | 3623 | |
a1622950 | 3624 | else |
247f5006 | 3625 | |
a1622950 VZ |
3626 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3627 | if test "x$LINE" != x ; then | |
3628 | eval "DEFAULT_$LINE" | |
3629 | else | |
3630 | no_cache=1 | |
3631 | fi | |
3632 | ||
3633 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3634 | |
247f5006 | 3635 | fi; |
a1622950 VZ |
3636 | |
3637 | eval "$ac_cv_use_protocols" | |
3638 | if test "$no_cache" != 1; then | |
3639 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3640 | fi | |
3641 | ||
3642 | if test "$wxUSE_PROTOCOL" = yes; then | |
247f5006 VZ |
3643 | echo "$as_me:$LINENO: result: yes" >&5 |
3644 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3645 | else |
247f5006 VZ |
3646 | echo "$as_me:$LINENO: result: no" >&5 |
3647 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3648 | fi |
a1622950 | 3649 | |
247f5006 VZ |
3650 | |
3651 | echo "$as_me:$LINENO: checking for --enable-ftp" >&5 | |
3652 | echo $ECHO_N "checking for --enable-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3653 | no_cache=0 |
3654 | # Check whether --enable-ftp or --disable-ftp was given. | |
3655 | if test "${enable_ftp+set}" = set; then | |
3656 | enableval="$enable_ftp" | |
247f5006 | 3657 | |
a1622950 VZ |
3658 | if test "$enableval" = yes; then |
3659 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3660 | else | |
3661 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3662 | fi | |
247f5006 | 3663 | |
a1622950 | 3664 | else |
247f5006 | 3665 | |
a1622950 VZ |
3666 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3667 | if test "x$LINE" != x ; then | |
3668 | eval "DEFAULT_$LINE" | |
3669 | else | |
3670 | no_cache=1 | |
3671 | fi | |
3672 | ||
3673 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3674 | |
247f5006 | 3675 | fi; |
a1622950 VZ |
3676 | |
3677 | eval "$ac_cv_use_ftp" | |
3678 | if test "$no_cache" != 1; then | |
3679 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3680 | fi | |
3681 | ||
3682 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
247f5006 VZ |
3683 | echo "$as_me:$LINENO: result: yes" >&5 |
3684 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3685 | else |
247f5006 VZ |
3686 | echo "$as_me:$LINENO: result: no" >&5 |
3687 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3688 | fi |
a1622950 | 3689 | |
247f5006 VZ |
3690 | |
3691 | echo "$as_me:$LINENO: checking for --enable-http" >&5 | |
3692 | echo $ECHO_N "checking for --enable-http... $ECHO_C" >&6 | |
a1622950 VZ |
3693 | no_cache=0 |
3694 | # Check whether --enable-http or --disable-http was given. | |
3695 | if test "${enable_http+set}" = set; then | |
3696 | enableval="$enable_http" | |
247f5006 | 3697 | |
a1622950 VZ |
3698 | if test "$enableval" = yes; then |
3699 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3700 | else | |
3701 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3702 | fi | |
247f5006 | 3703 | |
a1622950 | 3704 | else |
247f5006 | 3705 | |
a1622950 VZ |
3706 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3707 | if test "x$LINE" != x ; then | |
3708 | eval "DEFAULT_$LINE" | |
3709 | else | |
3710 | no_cache=1 | |
3711 | fi | |
3712 | ||
3713 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3714 | |
247f5006 | 3715 | fi; |
a1622950 VZ |
3716 | |
3717 | eval "$ac_cv_use_http" | |
3718 | if test "$no_cache" != 1; then | |
3719 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3720 | fi | |
3721 | ||
3722 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
247f5006 VZ |
3723 | echo "$as_me:$LINENO: result: yes" >&5 |
3724 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3725 | else |
247f5006 VZ |
3726 | echo "$as_me:$LINENO: result: no" >&5 |
3727 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3728 | fi |
a1622950 | 3729 | |
247f5006 VZ |
3730 | |
3731 | echo "$as_me:$LINENO: checking for --enable-fileproto" >&5 | |
3732 | echo $ECHO_N "checking for --enable-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
3733 | no_cache=0 |
3734 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3735 | if test "${enable_fileproto+set}" = set; then | |
3736 | enableval="$enable_fileproto" | |
247f5006 | 3737 | |
a1622950 VZ |
3738 | if test "$enableval" = yes; then |
3739 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3740 | else | |
3741 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3742 | fi | |
247f5006 | 3743 | |
a1622950 | 3744 | else |
247f5006 | 3745 | |
a1622950 VZ |
3746 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3747 | if test "x$LINE" != x ; then | |
3748 | eval "DEFAULT_$LINE" | |
3749 | else | |
3750 | no_cache=1 | |
3751 | fi | |
3752 | ||
3753 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 3754 | |
247f5006 | 3755 | fi; |
a1622950 VZ |
3756 | |
3757 | eval "$ac_cv_use_fileproto" | |
3758 | if test "$no_cache" != 1; then | |
3759 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3760 | fi | |
3761 | ||
3762 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
247f5006 VZ |
3763 | echo "$as_me:$LINENO: result: yes" >&5 |
3764 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3765 | else |
247f5006 VZ |
3766 | echo "$as_me:$LINENO: result: no" >&5 |
3767 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3768 | fi |
a1622950 | 3769 | |
247f5006 VZ |
3770 | |
3771 | echo "$as_me:$LINENO: checking for --enable-sockets" >&5 | |
3772 | echo $ECHO_N "checking for --enable-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
3773 | no_cache=0 |
3774 | # Check whether --enable-sockets or --disable-sockets was given. | |
3775 | if test "${enable_sockets+set}" = set; then | |
3776 | enableval="$enable_sockets" | |
247f5006 | 3777 | |
10f2d63a VZ |
3778 | if test "$enableval" = yes; then |
3779 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3780 | else | |
3781 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3782 | fi | |
247f5006 | 3783 | |
10f2d63a | 3784 | else |
247f5006 | 3785 | |
10f2d63a VZ |
3786 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3787 | if test "x$LINE" != x ; then | |
3788 | eval "DEFAULT_$LINE" | |
3789 | else | |
3790 | no_cache=1 | |
3791 | fi | |
3792 | ||
3793 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 3794 | |
247f5006 | 3795 | fi; |
10f2d63a VZ |
3796 | |
3797 | eval "$ac_cv_use_sockets" | |
3798 | if test "$no_cache" != 1; then | |
3799 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3800 | fi | |
3801 | ||
3802 | if test "$wxUSE_SOCKETS" = yes; then | |
247f5006 VZ |
3803 | echo "$as_me:$LINENO: result: yes" >&5 |
3804 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3805 | else |
247f5006 VZ |
3806 | echo "$as_me:$LINENO: result: no" >&5 |
3807 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3808 | fi |
8284b0c5 | 3809 | |
52127426 | 3810 | |
247f5006 VZ |
3811 | |
3812 | echo "$as_me:$LINENO: checking for --enable-ipc" >&5 | |
3813 | echo $ECHO_N "checking for --enable-ipc... $ECHO_C" >&6 | |
10f2d63a | 3814 | no_cache=0 |
eb4efbdc VZ |
3815 | # Check whether --enable-ipc or --disable-ipc was given. |
3816 | if test "${enable_ipc+set}" = set; then | |
3817 | enableval="$enable_ipc" | |
247f5006 | 3818 | |
10f2d63a | 3819 | if test "$enableval" = yes; then |
eb4efbdc | 3820 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3821 | else |
eb4efbdc | 3822 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3823 | fi |
247f5006 | 3824 | |
10f2d63a | 3825 | else |
247f5006 | 3826 | |
eb4efbdc | 3827 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3828 | if test "x$LINE" != x ; then |
3829 | eval "DEFAULT_$LINE" | |
3830 | else | |
3831 | no_cache=1 | |
3832 | fi | |
3833 | ||
eb4efbdc | 3834 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 3835 | |
247f5006 | 3836 | fi; |
10f2d63a | 3837 | |
eb4efbdc | 3838 | eval "$ac_cv_use_ipc" |
10f2d63a | 3839 | if test "$no_cache" != 1; then |
eb4efbdc | 3840 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3841 | fi |
3842 | ||
eb4efbdc | 3843 | if test "$wxUSE_IPC" = yes; then |
247f5006 VZ |
3844 | echo "$as_me:$LINENO: result: yes" >&5 |
3845 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3846 | else |
247f5006 VZ |
3847 | echo "$as_me:$LINENO: result: no" >&5 |
3848 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3849 | fi |
52127426 | 3850 | |
8284b0c5 | 3851 | |
247f5006 VZ |
3852 | |
3853 | echo "$as_me:$LINENO: checking for --enable-cmdline" >&5 | |
3854 | echo $ECHO_N "checking for --enable-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
3855 | no_cache=0 |
3856 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3857 | if test "${enable_cmdline+set}" = set; then | |
3858 | enableval="$enable_cmdline" | |
247f5006 | 3859 | |
1e6feb95 VZ |
3860 | if test "$enableval" = yes; then |
3861 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3862 | else | |
3863 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3864 | fi | |
247f5006 | 3865 | |
1e6feb95 | 3866 | else |
247f5006 | 3867 | |
1e6feb95 VZ |
3868 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3869 | if test "x$LINE" != x ; then | |
3870 | eval "DEFAULT_$LINE" | |
3871 | else | |
3872 | no_cache=1 | |
3873 | fi | |
3874 | ||
3875 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 3876 | |
247f5006 | 3877 | fi; |
1e6feb95 VZ |
3878 | |
3879 | eval "$ac_cv_use_cmdline" | |
3880 | if test "$no_cache" != 1; then | |
3881 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3882 | fi | |
3883 | ||
3884 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
247f5006 VZ |
3885 | echo "$as_me:$LINENO: result: yes" >&5 |
3886 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 3887 | else |
247f5006 VZ |
3888 | echo "$as_me:$LINENO: result: no" >&5 |
3889 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 3890 | fi |
1e6feb95 | 3891 | |
247f5006 VZ |
3892 | |
3893 | echo "$as_me:$LINENO: checking for --enable-datetime" >&5 | |
3894 | echo $ECHO_N "checking for --enable-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
3895 | no_cache=0 |
3896 | # Check whether --enable-datetime or --disable-datetime was given. | |
3897 | if test "${enable_datetime+set}" = set; then | |
3898 | enableval="$enable_datetime" | |
247f5006 | 3899 | |
1e6feb95 VZ |
3900 | if test "$enableval" = yes; then |
3901 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3902 | else | |
3903 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3904 | fi | |
247f5006 | 3905 | |
1e6feb95 | 3906 | else |
247f5006 | 3907 | |
1e6feb95 VZ |
3908 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3909 | if test "x$LINE" != x ; then | |
3910 | eval "DEFAULT_$LINE" | |
3911 | else | |
3912 | no_cache=1 | |
3913 | fi | |
3914 | ||
3915 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 3916 | |
247f5006 | 3917 | fi; |
1e6feb95 VZ |
3918 | |
3919 | eval "$ac_cv_use_datetime" | |
3920 | if test "$no_cache" != 1; then | |
3921 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3922 | fi | |
3923 | ||
3924 | if test "$wxUSE_DATETIME" = yes; then | |
247f5006 VZ |
3925 | echo "$as_me:$LINENO: result: yes" >&5 |
3926 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 3927 | else |
247f5006 VZ |
3928 | echo "$as_me:$LINENO: result: no" >&5 |
3929 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 3930 | fi |
1e6feb95 | 3931 | |
247f5006 VZ |
3932 | |
3933 | echo "$as_me:$LINENO: checking for --enable-timedate" >&5 | |
3934 | echo $ECHO_N "checking for --enable-timedate... $ECHO_C" >&6 | |
1e6feb95 VZ |
3935 | no_cache=0 |
3936 | # Check whether --enable-timedate or --disable-timedate was given. | |
3937 | if test "${enable_timedate+set}" = set; then | |
3938 | enableval="$enable_timedate" | |
247f5006 | 3939 | |
1e6feb95 VZ |
3940 | if test "$enableval" = yes; then |
3941 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3942 | else | |
3943 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3944 | fi | |
247f5006 | 3945 | |
1e6feb95 | 3946 | else |
247f5006 | 3947 | |
1e6feb95 VZ |
3948 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3949 | if test "x$LINE" != x ; then | |
3950 | eval "DEFAULT_$LINE" | |
3951 | else | |
3952 | no_cache=1 | |
3953 | fi | |
3954 | ||
3955 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
1e6feb95 | 3956 | |
247f5006 | 3957 | fi; |
1e6feb95 VZ |
3958 | |
3959 | eval "$ac_cv_use_timedate" | |
3960 | if test "$no_cache" != 1; then | |
3961 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3962 | fi | |
3963 | ||
3964 | if test "$wxUSE_TIMEDATE" = yes; then | |
247f5006 VZ |
3965 | echo "$as_me:$LINENO: result: yes" >&5 |
3966 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 3967 | else |
247f5006 VZ |
3968 | echo "$as_me:$LINENO: result: no" >&5 |
3969 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 3970 | fi |
1e6feb95 | 3971 | |
247f5006 VZ |
3972 | |
3973 | echo "$as_me:$LINENO: checking for --enable-stopwatch" >&5 | |
3974 | echo $ECHO_N "checking for --enable-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
3975 | no_cache=0 |
3976 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3977 | if test "${enable_stopwatch+set}" = set; then | |
3978 | enableval="$enable_stopwatch" | |
247f5006 | 3979 | |
1e6feb95 VZ |
3980 | if test "$enableval" = yes; then |
3981 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3982 | else | |
3983 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3984 | fi | |
247f5006 | 3985 | |
1e6feb95 | 3986 | else |
247f5006 | 3987 | |
1e6feb95 VZ |
3988 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3989 | if test "x$LINE" != x ; then | |
3990 | eval "DEFAULT_$LINE" | |
3991 | else | |
3992 | no_cache=1 | |
3993 | fi | |
3994 | ||
3995 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 3996 | |
247f5006 | 3997 | fi; |
1e6feb95 VZ |
3998 | |
3999 | eval "$ac_cv_use_stopwatch" | |
4000 | if test "$no_cache" != 1; then | |
4001 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4002 | fi | |
4003 | ||
4004 | if test "$wxUSE_STOPWATCH" = yes; then | |
247f5006 VZ |
4005 | echo "$as_me:$LINENO: result: yes" >&5 |
4006 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4007 | else |
247f5006 VZ |
4008 | echo "$as_me:$LINENO: result: no" >&5 |
4009 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4010 | fi |
1e6feb95 | 4011 | |
247f5006 VZ |
4012 | |
4013 | echo "$as_me:$LINENO: checking for --enable-dialupman" >&5 | |
4014 | echo $ECHO_N "checking for --enable-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4015 | no_cache=0 |
eb4efbdc VZ |
4016 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4017 | if test "${enable_dialupman+set}" = set; then | |
4018 | enableval="$enable_dialupman" | |
247f5006 | 4019 | |
10f2d63a | 4020 | if test "$enableval" = yes; then |
eb4efbdc | 4021 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4022 | else |
eb4efbdc | 4023 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4024 | fi |
247f5006 | 4025 | |
10f2d63a | 4026 | else |
247f5006 | 4027 | |
eb4efbdc | 4028 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4029 | if test "x$LINE" != x ; then |
4030 | eval "DEFAULT_$LINE" | |
4031 | else | |
4032 | no_cache=1 | |
4033 | fi | |
4034 | ||
eb4efbdc | 4035 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4036 | |
247f5006 | 4037 | fi; |
10f2d63a | 4038 | |
eb4efbdc | 4039 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4040 | if test "$no_cache" != 1; then |
eb4efbdc | 4041 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4042 | fi |
4043 | ||
eb4efbdc | 4044 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
247f5006 VZ |
4045 | echo "$as_me:$LINENO: result: yes" >&5 |
4046 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4047 | else |
247f5006 VZ |
4048 | echo "$as_me:$LINENO: result: no" >&5 |
4049 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4050 | fi |
10f2d63a | 4051 | |
247f5006 VZ |
4052 | |
4053 | echo "$as_me:$LINENO: checking for --enable-apple_ieee" >&5 | |
4054 | echo $ECHO_N "checking for --enable-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4055 | no_cache=0 |
4056 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4057 | if test "${enable_apple_ieee+set}" = set; then | |
4058 | enableval="$enable_apple_ieee" | |
247f5006 | 4059 | |
10f2d63a VZ |
4060 | if test "$enableval" = yes; then |
4061 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4062 | else | |
4063 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4064 | fi | |
247f5006 | 4065 | |
10f2d63a | 4066 | else |
247f5006 | 4067 | |
10f2d63a VZ |
4068 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4069 | if test "x$LINE" != x ; then | |
4070 | eval "DEFAULT_$LINE" | |
4071 | else | |
4072 | no_cache=1 | |
4073 | fi | |
4074 | ||
4075 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4076 | |
247f5006 | 4077 | fi; |
10f2d63a VZ |
4078 | |
4079 | eval "$ac_cv_use_apple_ieee" | |
4080 | if test "$no_cache" != 1; then | |
4081 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4082 | fi | |
4083 | ||
4084 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
247f5006 VZ |
4085 | echo "$as_me:$LINENO: result: yes" >&5 |
4086 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4087 | else |
247f5006 VZ |
4088 | echo "$as_me:$LINENO: result: no" >&5 |
4089 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4090 | fi |
10f2d63a | 4091 | |
247f5006 VZ |
4092 | |
4093 | echo "$as_me:$LINENO: checking for --enable-timer" >&5 | |
4094 | echo $ECHO_N "checking for --enable-timer... $ECHO_C" >&6 | |
10f2d63a | 4095 | no_cache=0 |
1e6feb95 VZ |
4096 | # Check whether --enable-timer or --disable-timer was given. |
4097 | if test "${enable_timer+set}" = set; then | |
4098 | enableval="$enable_timer" | |
247f5006 | 4099 | |
10f2d63a | 4100 | if test "$enableval" = yes; then |
1e6feb95 | 4101 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4102 | else |
1e6feb95 | 4103 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4104 | fi |
247f5006 | 4105 | |
10f2d63a | 4106 | else |
247f5006 | 4107 | |
1e6feb95 | 4108 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4109 | if test "x$LINE" != x ; then |
4110 | eval "DEFAULT_$LINE" | |
4111 | else | |
4112 | no_cache=1 | |
4113 | fi | |
4114 | ||
1e6feb95 | 4115 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4116 | |
247f5006 | 4117 | fi; |
10f2d63a | 4118 | |
1e6feb95 | 4119 | eval "$ac_cv_use_timer" |
10f2d63a | 4120 | if test "$no_cache" != 1; then |
1e6feb95 | 4121 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4122 | fi |
4123 | ||
1e6feb95 | 4124 | if test "$wxUSE_TIMER" = yes; then |
247f5006 VZ |
4125 | echo "$as_me:$LINENO: result: yes" >&5 |
4126 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4127 | else |
247f5006 VZ |
4128 | echo "$as_me:$LINENO: result: no" >&5 |
4129 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4130 | fi |
10f2d63a | 4131 | |
247f5006 VZ |
4132 | |
4133 | echo "$as_me:$LINENO: checking for --enable-wave" >&5 | |
4134 | echo $ECHO_N "checking for --enable-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4135 | no_cache=0 |
4136 | # Check whether --enable-wave or --disable-wave was given. | |
4137 | if test "${enable_wave+set}" = set; then | |
4138 | enableval="$enable_wave" | |
247f5006 | 4139 | |
10f2d63a VZ |
4140 | if test "$enableval" = yes; then |
4141 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4142 | else | |
4143 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4144 | fi | |
247f5006 | 4145 | |
10f2d63a | 4146 | else |
247f5006 | 4147 | |
10f2d63a VZ |
4148 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4149 | if test "x$LINE" != x ; then | |
4150 | eval "DEFAULT_$LINE" | |
4151 | else | |
4152 | no_cache=1 | |
4153 | fi | |
4154 | ||
4155 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4156 | |
247f5006 | 4157 | fi; |
10f2d63a VZ |
4158 | |
4159 | eval "$ac_cv_use_wave" | |
4160 | if test "$no_cache" != 1; then | |
4161 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4162 | fi | |
4163 | ||
4164 | if test "$wxUSE_WAVE" = yes; then | |
247f5006 VZ |
4165 | echo "$as_me:$LINENO: result: yes" >&5 |
4166 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4167 | else |
247f5006 VZ |
4168 | echo "$as_me:$LINENO: result: no" >&5 |
4169 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4170 | fi |
10f2d63a | 4171 | |
247f5006 VZ |
4172 | |
4173 | echo "$as_me:$LINENO: checking for --enable-fraction" >&5 | |
4174 | echo $ECHO_N "checking for --enable-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4175 | no_cache=0 |
4176 | # Check whether --enable-fraction or --disable-fraction was given. | |
4177 | if test "${enable_fraction+set}" = set; then | |
4178 | enableval="$enable_fraction" | |
247f5006 | 4179 | |
10f2d63a VZ |
4180 | if test "$enableval" = yes; then |
4181 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4182 | else | |
4183 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4184 | fi | |
247f5006 | 4185 | |
10f2d63a | 4186 | else |
247f5006 | 4187 | |
10f2d63a VZ |
4188 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4189 | if test "x$LINE" != x ; then | |
4190 | eval "DEFAULT_$LINE" | |
4191 | else | |
4192 | no_cache=1 | |
4193 | fi | |
4194 | ||
4195 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4196 | |
247f5006 | 4197 | fi; |
10f2d63a VZ |
4198 | |
4199 | eval "$ac_cv_use_fraction" | |
4200 | if test "$no_cache" != 1; then | |
4201 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4202 | fi | |
4203 | ||
4204 | if test "$wxUSE_FRACTION" = yes; then | |
247f5006 VZ |
4205 | echo "$as_me:$LINENO: result: yes" >&5 |
4206 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4207 | else |
247f5006 VZ |
4208 | echo "$as_me:$LINENO: result: no" >&5 |
4209 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4210 | fi |
10f2d63a | 4211 | |
247f5006 VZ |
4212 | |
4213 | echo "$as_me:$LINENO: checking for --enable-dynlib" >&5 | |
4214 | echo $ECHO_N "checking for --enable-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4215 | no_cache=0 |
4216 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4217 | if test "${enable_dynlib+set}" = set; then | |
4218 | enableval="$enable_dynlib" | |
247f5006 | 4219 | |
10f2d63a VZ |
4220 | if test "$enableval" = yes; then |
4221 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4222 | else | |
4223 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4224 | fi | |
247f5006 | 4225 | |
10f2d63a | 4226 | else |
247f5006 | 4227 | |
10f2d63a VZ |
4228 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4229 | if test "x$LINE" != x ; then | |
4230 | eval "DEFAULT_$LINE" | |
4231 | else | |
4232 | no_cache=1 | |
4233 | fi | |
4234 | ||
4235 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4236 | |
247f5006 | 4237 | fi; |
10f2d63a VZ |
4238 | |
4239 | eval "$ac_cv_use_dynlib" | |
4240 | if test "$no_cache" != 1; then | |
4241 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4242 | fi | |
4243 | ||
4244 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
247f5006 VZ |
4245 | echo "$as_me:$LINENO: result: yes" >&5 |
4246 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4247 | else |
247f5006 VZ |
4248 | echo "$as_me:$LINENO: result: no" >&5 |
4249 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4250 | fi |
10f2d63a | 4251 | |
247f5006 VZ |
4252 | |
4253 | echo "$as_me:$LINENO: checking for --enable-dynamicloader" >&5 | |
4254 | echo $ECHO_N "checking for --enable-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4255 | no_cache=0 |
4256 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4257 | if test "${enable_dynamicloader+set}" = set; then | |
4258 | enableval="$enable_dynamicloader" | |
247f5006 | 4259 | |
0b9ab0bd RL |
4260 | if test "$enableval" = yes; then |
4261 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4262 | else | |
4263 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4264 | fi | |
247f5006 | 4265 | |
0b9ab0bd | 4266 | else |
247f5006 | 4267 | |
0b9ab0bd RL |
4268 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4269 | if test "x$LINE" != x ; then | |
4270 | eval "DEFAULT_$LINE" | |
4271 | else | |
4272 | no_cache=1 | |
4273 | fi | |
4274 | ||
4275 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4276 | |
247f5006 | 4277 | fi; |
0b9ab0bd RL |
4278 | |
4279 | eval "$ac_cv_use_dynamicloader" | |
4280 | if test "$no_cache" != 1; then | |
4281 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4282 | fi | |
4283 | ||
4284 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
247f5006 VZ |
4285 | echo "$as_me:$LINENO: result: yes" >&5 |
4286 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4287 | else |
247f5006 VZ |
4288 | echo "$as_me:$LINENO: result: no" >&5 |
4289 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4290 | fi |
0b9ab0bd | 4291 | |
247f5006 VZ |
4292 | |
4293 | echo "$as_me:$LINENO: checking for --enable-longlong" >&5 | |
4294 | echo $ECHO_N "checking for --enable-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4295 | no_cache=0 |
4296 | # Check whether --enable-longlong or --disable-longlong was given. | |
4297 | if test "${enable_longlong+set}" = set; then | |
4298 | enableval="$enable_longlong" | |
247f5006 | 4299 | |
10f2d63a VZ |
4300 | if test "$enableval" = yes; then |
4301 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4302 | else | |
4303 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4304 | fi | |
247f5006 | 4305 | |
10f2d63a | 4306 | else |
247f5006 | 4307 | |
10f2d63a VZ |
4308 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4309 | if test "x$LINE" != x ; then | |
4310 | eval "DEFAULT_$LINE" | |
4311 | else | |
4312 | no_cache=1 | |
4313 | fi | |
4314 | ||
4315 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4316 | |
247f5006 | 4317 | fi; |
10f2d63a VZ |
4318 | |
4319 | eval "$ac_cv_use_longlong" | |
4320 | if test "$no_cache" != 1; then | |
4321 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4322 | fi | |
4323 | ||
4324 | if test "$wxUSE_LONGLONG" = yes; then | |
247f5006 VZ |
4325 | echo "$as_me:$LINENO: result: yes" >&5 |
4326 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4327 | else |
247f5006 VZ |
4328 | echo "$as_me:$LINENO: result: no" >&5 |
4329 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4330 | fi |
10f2d63a | 4331 | |
247f5006 VZ |
4332 | |
4333 | echo "$as_me:$LINENO: checking for --enable-geometry" >&5 | |
4334 | echo $ECHO_N "checking for --enable-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4335 | no_cache=0 |
4336 | # Check whether --enable-geometry or --disable-geometry was given. | |
4337 | if test "${enable_geometry+set}" = set; then | |
4338 | enableval="$enable_geometry" | |
247f5006 | 4339 | |
e8f65ba6 RR |
4340 | if test "$enableval" = yes; then |
4341 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4342 | else | |
4343 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4344 | fi | |
247f5006 | 4345 | |
e8f65ba6 | 4346 | else |
247f5006 | 4347 | |
e8f65ba6 RR |
4348 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4349 | if test "x$LINE" != x ; then | |
4350 | eval "DEFAULT_$LINE" | |
4351 | else | |
4352 | no_cache=1 | |
4353 | fi | |
4354 | ||
4355 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4356 | |
247f5006 | 4357 | fi; |
e8f65ba6 RR |
4358 | |
4359 | eval "$ac_cv_use_geometry" | |
4360 | if test "$no_cache" != 1; then | |
4361 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4362 | fi | |
4363 | ||
4364 | if test "$wxUSE_GEOMETRY" = yes; then | |
247f5006 VZ |
4365 | echo "$as_me:$LINENO: result: yes" >&5 |
4366 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4367 | else |
247f5006 VZ |
4368 | echo "$as_me:$LINENO: result: no" >&5 |
4369 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4370 | fi |
e8f65ba6 | 4371 | |
247f5006 VZ |
4372 | |
4373 | echo "$as_me:$LINENO: checking for --enable-log" >&5 | |
4374 | echo $ECHO_N "checking for --enable-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4375 | no_cache=0 |
4376 | # Check whether --enable-log or --disable-log was given. | |
4377 | if test "${enable_log+set}" = set; then | |
4378 | enableval="$enable_log" | |
247f5006 | 4379 | |
10f2d63a VZ |
4380 | if test "$enableval" = yes; then |
4381 | ac_cv_use_log='wxUSE_LOG=yes' | |
4382 | else | |
4383 | ac_cv_use_log='wxUSE_LOG=no' | |
4384 | fi | |
247f5006 | 4385 | |
10f2d63a | 4386 | else |
247f5006 | 4387 | |
10f2d63a VZ |
4388 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4389 | if test "x$LINE" != x ; then | |
4390 | eval "DEFAULT_$LINE" | |
4391 | else | |
4392 | no_cache=1 | |
4393 | fi | |
4394 | ||
4395 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4396 | |
247f5006 | 4397 | fi; |
10f2d63a VZ |
4398 | |
4399 | eval "$ac_cv_use_log" | |
4400 | if test "$no_cache" != 1; then | |
4401 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4402 | fi | |
4403 | ||
4404 | if test "$wxUSE_LOG" = yes; then | |
247f5006 VZ |
4405 | echo "$as_me:$LINENO: result: yes" >&5 |
4406 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4407 | else |
247f5006 VZ |
4408 | echo "$as_me:$LINENO: result: no" >&5 |
4409 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4410 | fi |
10f2d63a | 4411 | |
247f5006 VZ |
4412 | |
4413 | echo "$as_me:$LINENO: checking for --enable-streams" >&5 | |
4414 | echo $ECHO_N "checking for --enable-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4415 | no_cache=0 |
4416 | # Check whether --enable-streams or --disable-streams was given. | |
4417 | if test "${enable_streams+set}" = set; then | |
4418 | enableval="$enable_streams" | |
247f5006 | 4419 | |
10f2d63a VZ |
4420 | if test "$enableval" = yes; then |
4421 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4422 | else | |
4423 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4424 | fi | |
247f5006 | 4425 | |
10f2d63a | 4426 | else |
247f5006 | 4427 | |
10f2d63a VZ |
4428 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4429 | if test "x$LINE" != x ; then | |
4430 | eval "DEFAULT_$LINE" | |
4431 | else | |
4432 | no_cache=1 | |
4433 | fi | |
4434 | ||
4435 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4436 | |
247f5006 | 4437 | fi; |
10f2d63a VZ |
4438 | |
4439 | eval "$ac_cv_use_streams" | |
4440 | if test "$no_cache" != 1; then | |
4441 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4442 | fi | |
4443 | ||
4444 | if test "$wxUSE_STREAMS" = yes; then | |
247f5006 VZ |
4445 | echo "$as_me:$LINENO: result: yes" >&5 |
4446 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4447 | else |
247f5006 VZ |
4448 | echo "$as_me:$LINENO: result: no" >&5 |
4449 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4450 | fi |
10f2d63a | 4451 | |
247f5006 VZ |
4452 | |
4453 | echo "$as_me:$LINENO: checking for --enable-file" >&5 | |
4454 | echo $ECHO_N "checking for --enable-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4455 | no_cache=0 |
4456 | # Check whether --enable-file or --disable-file was given. | |
4457 | if test "${enable_file+set}" = set; then | |
4458 | enableval="$enable_file" | |
247f5006 | 4459 | |
10f2d63a VZ |
4460 | if test "$enableval" = yes; then |
4461 | ac_cv_use_file='wxUSE_FILE=yes' | |
4462 | else | |
4463 | ac_cv_use_file='wxUSE_FILE=no' | |
4464 | fi | |
247f5006 | 4465 | |
10f2d63a | 4466 | else |
247f5006 | 4467 | |
10f2d63a VZ |
4468 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4476 | |
247f5006 | 4477 | fi; |
10f2d63a VZ |
4478 | |
4479 | eval "$ac_cv_use_file" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_FILE" = yes; then | |
247f5006 VZ |
4485 | echo "$as_me:$LINENO: result: yes" >&5 |
4486 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4487 | else |
247f5006 VZ |
4488 | echo "$as_me:$LINENO: result: no" >&5 |
4489 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4490 | fi |
10f2d63a | 4491 | |
247f5006 VZ |
4492 | |
4493 | echo "$as_me:$LINENO: checking for --enable-ffile" >&5 | |
4494 | echo $ECHO_N "checking for --enable-ffile... $ECHO_C" >&6 | |
10f2d63a | 4495 | no_cache=0 |
1e6feb95 VZ |
4496 | # Check whether --enable-ffile or --disable-ffile was given. |
4497 | if test "${enable_ffile+set}" = set; then | |
4498 | enableval="$enable_ffile" | |
247f5006 | 4499 | |
10f2d63a | 4500 | if test "$enableval" = yes; then |
1e6feb95 | 4501 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4502 | else |
1e6feb95 | 4503 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4504 | fi |
247f5006 | 4505 | |
10f2d63a | 4506 | else |
247f5006 | 4507 | |
1e6feb95 | 4508 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4509 | if test "x$LINE" != x ; then |
4510 | eval "DEFAULT_$LINE" | |
4511 | else | |
4512 | no_cache=1 | |
4513 | fi | |
4514 | ||
1e6feb95 | 4515 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4516 | |
247f5006 | 4517 | fi; |
10f2d63a | 4518 | |
1e6feb95 | 4519 | eval "$ac_cv_use_ffile" |
10f2d63a | 4520 | if test "$no_cache" != 1; then |
1e6feb95 | 4521 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4522 | fi |
4523 | ||
1e6feb95 | 4524 | if test "$wxUSE_FFILE" = yes; then |
247f5006 VZ |
4525 | echo "$as_me:$LINENO: result: yes" >&5 |
4526 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4527 | else |
247f5006 VZ |
4528 | echo "$as_me:$LINENO: result: no" >&5 |
4529 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4530 | fi |
10f2d63a | 4531 | |
247f5006 VZ |
4532 | |
4533 | echo "$as_me:$LINENO: checking for --enable-textbuf" >&5 | |
4534 | echo $ECHO_N "checking for --enable-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4535 | no_cache=0 |
4536 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4537 | if test "${enable_textbuf+set}" = set; then | |
4538 | enableval="$enable_textbuf" | |
247f5006 | 4539 | |
a3a584a7 VZ |
4540 | if test "$enableval" = yes; then |
4541 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4542 | else | |
4543 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4544 | fi | |
247f5006 | 4545 | |
a3a584a7 | 4546 | else |
247f5006 | 4547 | |
a3a584a7 VZ |
4548 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4549 | if test "x$LINE" != x ; then | |
4550 | eval "DEFAULT_$LINE" | |
4551 | else | |
4552 | no_cache=1 | |
4553 | fi | |
4554 | ||
4555 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4556 | |
247f5006 | 4557 | fi; |
a3a584a7 VZ |
4558 | |
4559 | eval "$ac_cv_use_textbuf" | |
4560 | if test "$no_cache" != 1; then | |
4561 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4562 | fi | |
4563 | ||
4564 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
247f5006 VZ |
4565 | echo "$as_me:$LINENO: result: yes" >&5 |
4566 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4567 | else |
247f5006 VZ |
4568 | echo "$as_me:$LINENO: result: no" >&5 |
4569 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4570 | fi |
a3a584a7 | 4571 | |
247f5006 VZ |
4572 | |
4573 | echo "$as_me:$LINENO: checking for --enable-textfile" >&5 | |
4574 | echo $ECHO_N "checking for --enable-textfile... $ECHO_C" >&6 | |
10f2d63a | 4575 | no_cache=0 |
1e6feb95 VZ |
4576 | # Check whether --enable-textfile or --disable-textfile was given. |
4577 | if test "${enable_textfile+set}" = set; then | |
4578 | enableval="$enable_textfile" | |
247f5006 | 4579 | |
10f2d63a | 4580 | if test "$enableval" = yes; then |
1e6feb95 | 4581 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4582 | else |
1e6feb95 | 4583 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4584 | fi |
247f5006 | 4585 | |
10f2d63a | 4586 | else |
247f5006 | 4587 | |
1e6feb95 | 4588 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4589 | if test "x$LINE" != x ; then |
4590 | eval "DEFAULT_$LINE" | |
4591 | else | |
4592 | no_cache=1 | |
4593 | fi | |
4594 | ||
1e6feb95 | 4595 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4596 | |
247f5006 | 4597 | fi; |
10f2d63a | 4598 | |
1e6feb95 | 4599 | eval "$ac_cv_use_textfile" |
10f2d63a | 4600 | if test "$no_cache" != 1; then |
1e6feb95 | 4601 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4602 | fi |
4603 | ||
1e6feb95 | 4604 | if test "$wxUSE_TEXTFILE" = yes; then |
247f5006 VZ |
4605 | echo "$as_me:$LINENO: result: yes" >&5 |
4606 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4607 | else |
247f5006 VZ |
4608 | echo "$as_me:$LINENO: result: no" >&5 |
4609 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4610 | fi |
10f2d63a | 4611 | |
247f5006 VZ |
4612 | |
4613 | echo "$as_me:$LINENO: checking for --enable-fontmap" >&5 | |
4614 | echo $ECHO_N "checking for --enable-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4615 | no_cache=0 |
1e6feb95 VZ |
4616 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4617 | if test "${enable_fontmap+set}" = set; then | |
4618 | enableval="$enable_fontmap" | |
247f5006 | 4619 | |
10f2d63a | 4620 | if test "$enableval" = yes; then |
1e6feb95 | 4621 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4622 | else |
1e6feb95 | 4623 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4624 | fi |
247f5006 | 4625 | |
10f2d63a | 4626 | else |
247f5006 | 4627 | |
1e6feb95 | 4628 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4629 | if test "x$LINE" != x ; then |
4630 | eval "DEFAULT_$LINE" | |
4631 | else | |
4632 | no_cache=1 | |
4633 | fi | |
4634 | ||
1e6feb95 | 4635 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4636 | |
247f5006 | 4637 | fi; |
10f2d63a | 4638 | |
1e6feb95 | 4639 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4640 | if test "$no_cache" != 1; then |
1e6feb95 | 4641 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4642 | fi |
4643 | ||
1e6feb95 | 4644 | if test "$wxUSE_FONTMAP" = yes; then |
247f5006 VZ |
4645 | echo "$as_me:$LINENO: result: yes" >&5 |
4646 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4647 | else |
247f5006 VZ |
4648 | echo "$as_me:$LINENO: result: no" >&5 |
4649 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4650 | fi |
10f2d63a | 4651 | |
247f5006 VZ |
4652 | |
4653 | echo "$as_me:$LINENO: checking for --enable-unicode" >&5 | |
4654 | echo $ECHO_N "checking for --enable-unicode... $ECHO_C" >&6 | |
10f2d63a | 4655 | no_cache=0 |
1e6feb95 VZ |
4656 | # Check whether --enable-unicode or --disable-unicode was given. |
4657 | if test "${enable_unicode+set}" = set; then | |
4658 | enableval="$enable_unicode" | |
247f5006 | 4659 | |
1e6feb95 VZ |
4660 | if test "$enableval" = yes; then |
4661 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4662 | else | |
4663 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4664 | fi | |
247f5006 | 4665 | |
1e6feb95 | 4666 | else |
247f5006 | 4667 | |
1e6feb95 VZ |
4668 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4669 | if test "x$LINE" != x ; then | |
4670 | eval "DEFAULT_$LINE" | |
4671 | else | |
4672 | no_cache=1 | |
4673 | fi | |
4674 | ||
4675 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 4676 | |
247f5006 | 4677 | fi; |
1e6feb95 VZ |
4678 | |
4679 | eval "$ac_cv_use_unicode" | |
4680 | if test "$no_cache" != 1; then | |
4681 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4682 | fi | |
4683 | ||
4684 | if test "$wxUSE_UNICODE" = yes; then | |
247f5006 VZ |
4685 | echo "$as_me:$LINENO: result: yes" >&5 |
4686 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4687 | else |
247f5006 VZ |
4688 | echo "$as_me:$LINENO: result: no" >&5 |
4689 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4690 | fi |
1e6feb95 | 4691 | |
247f5006 VZ |
4692 | |
4693 | echo "$as_me:$LINENO: checking for --enable-mslu" >&5 | |
4694 | echo $ECHO_N "checking for --enable-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
4695 | no_cache=0 |
4696 | # Check whether --enable-mslu or --disable-mslu was given. | |
4697 | if test "${enable_mslu+set}" = set; then | |
4698 | enableval="$enable_mslu" | |
247f5006 | 4699 | |
a72a4bfa VS |
4700 | if test "$enableval" = yes; then |
4701 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4702 | else | |
4703 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4704 | fi | |
247f5006 | 4705 | |
a72a4bfa | 4706 | else |
247f5006 | 4707 | |
a72a4bfa VS |
4708 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4709 | if test "x$LINE" != x ; then | |
4710 | eval "DEFAULT_$LINE" | |
4711 | else | |
4712 | no_cache=1 | |
4713 | fi | |
4714 | ||
4715 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 4716 | |
247f5006 | 4717 | fi; |
a72a4bfa VS |
4718 | |
4719 | eval "$ac_cv_use_mslu" | |
4720 | if test "$no_cache" != 1; then | |
4721 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4722 | fi | |
4723 | ||
4724 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
247f5006 VZ |
4725 | echo "$as_me:$LINENO: result: yes" >&5 |
4726 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 4727 | else |
247f5006 VZ |
4728 | echo "$as_me:$LINENO: result: no" >&5 |
4729 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 4730 | fi |
a72a4bfa | 4731 | |
247f5006 VZ |
4732 | |
4733 | echo "$as_me:$LINENO: checking for --enable-wxprintfv" >&5 | |
4734 | echo $ECHO_N "checking for --enable-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
4735 | no_cache=0 |
4736 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4737 | if test "${enable_wxprintfv+set}" = set; then | |
4738 | enableval="$enable_wxprintfv" | |
247f5006 | 4739 | |
1e6feb95 | 4740 | if test "$enableval" = yes; then |
10f2d63a VZ |
4741 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4742 | else | |
4743 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4744 | fi | |
247f5006 | 4745 | |
10f2d63a | 4746 | else |
247f5006 | 4747 | |
10f2d63a VZ |
4748 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4749 | if test "x$LINE" != x ; then | |
4750 | eval "DEFAULT_$LINE" | |
4751 | else | |
4752 | no_cache=1 | |
4753 | fi | |
4754 | ||
4755 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 4756 | |
247f5006 | 4757 | fi; |
10f2d63a VZ |
4758 | |
4759 | eval "$ac_cv_use_wxprintfv" | |
4760 | if test "$no_cache" != 1; then | |
4761 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4762 | fi | |
4763 | ||
4764 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
247f5006 VZ |
4765 | echo "$as_me:$LINENO: result: yes" >&5 |
4766 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4767 | else |
247f5006 VZ |
4768 | echo "$as_me:$LINENO: result: no" >&5 |
4769 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4770 | fi |
10f2d63a | 4771 | |
247f5006 VZ |
4772 | |
4773 | echo "$as_me:$LINENO: checking for --enable-std_iostreams" >&5 | |
4774 | echo $ECHO_N "checking for --enable-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
4775 | no_cache=0 |
4776 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4777 | if test "${enable_std_iostreams+set}" = set; then | |
4778 | enableval="$enable_std_iostreams" | |
247f5006 | 4779 | |
10f2d63a VZ |
4780 | if test "$enableval" = yes; then |
4781 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4782 | else | |
4783 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4784 | fi | |
247f5006 | 4785 | |
10f2d63a | 4786 | else |
247f5006 | 4787 | |
10f2d63a VZ |
4788 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4789 | if test "x$LINE" != x ; then | |
4790 | eval "DEFAULT_$LINE" | |
4791 | else | |
4792 | no_cache=1 | |
4793 | fi | |
4794 | ||
4795 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 4796 | |
247f5006 | 4797 | fi; |
10f2d63a VZ |
4798 | |
4799 | eval "$ac_cv_use_std_iostreams" | |
4800 | if test "$no_cache" != 1; then | |
4801 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4802 | fi | |
4803 | ||
4804 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
247f5006 VZ |
4805 | echo "$as_me:$LINENO: result: yes" >&5 |
4806 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4807 | else |
247f5006 VZ |
4808 | echo "$as_me:$LINENO: result: no" >&5 |
4809 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4810 | fi |
10f2d63a | 4811 | |
247f5006 VZ |
4812 | |
4813 | echo "$as_me:$LINENO: checking for --enable-filesystem" >&5 | |
4814 | echo $ECHO_N "checking for --enable-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
4815 | no_cache=0 |
4816 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4817 | if test "${enable_filesystem+set}" = set; then | |
4818 | enableval="$enable_filesystem" | |
247f5006 | 4819 | |
24528b0c VS |
4820 | if test "$enableval" = yes; then |
4821 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4822 | else | |
4823 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4824 | fi | |
247f5006 | 4825 | |
24528b0c | 4826 | else |
247f5006 | 4827 | |
24528b0c VS |
4828 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4829 | if test "x$LINE" != x ; then | |
4830 | eval "DEFAULT_$LINE" | |
4831 | else | |
4832 | no_cache=1 | |
4833 | fi | |
4834 | ||
4835 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 4836 | |
247f5006 | 4837 | fi; |
24528b0c VS |
4838 | |
4839 | eval "$ac_cv_use_filesystem" | |
4840 | if test "$no_cache" != 1; then | |
4841 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4842 | fi | |
4843 | ||
4844 | if test "$wxUSE_FILESYSTEM" = yes; then | |
247f5006 VZ |
4845 | echo "$as_me:$LINENO: result: yes" >&5 |
4846 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 4847 | else |
247f5006 VZ |
4848 | echo "$as_me:$LINENO: result: no" >&5 |
4849 | echo "${ECHO_T}no" >&6 | |
24528b0c | 4850 | fi |
24528b0c | 4851 | |
247f5006 VZ |
4852 | |
4853 | echo "$as_me:$LINENO: checking for --enable-fs_inet" >&5 | |
4854 | echo $ECHO_N "checking for --enable-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
4855 | no_cache=0 |
4856 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4857 | if test "${enable_fs_inet+set}" = set; then | |
4858 | enableval="$enable_fs_inet" | |
247f5006 | 4859 | |
10f2d63a VZ |
4860 | if test "$enableval" = yes; then |
4861 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4862 | else | |
4863 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4864 | fi | |
247f5006 | 4865 | |
10f2d63a | 4866 | else |
247f5006 | 4867 | |
10f2d63a VZ |
4868 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4869 | if test "x$LINE" != x ; then | |
4870 | eval "DEFAULT_$LINE" | |
4871 | else | |
4872 | no_cache=1 | |
4873 | fi | |
4874 | ||
4875 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 4876 | |
247f5006 | 4877 | fi; |
10f2d63a VZ |
4878 | |
4879 | eval "$ac_cv_use_fs_inet" | |
4880 | if test "$no_cache" != 1; then | |
4881 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4882 | fi | |
4883 | ||
4884 | if test "$wxUSE_FS_INET" = yes; then | |
247f5006 VZ |
4885 | echo "$as_me:$LINENO: result: yes" >&5 |
4886 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4887 | else |
247f5006 VZ |
4888 | echo "$as_me:$LINENO: result: no" >&5 |
4889 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4890 | fi |
10f2d63a | 4891 | |
247f5006 VZ |
4892 | |
4893 | echo "$as_me:$LINENO: checking for --enable-fs_zip" >&5 | |
4894 | echo $ECHO_N "checking for --enable-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
4895 | no_cache=0 |
4896 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4897 | if test "${enable_fs_zip+set}" = set; then | |
4898 | enableval="$enable_fs_zip" | |
247f5006 | 4899 | |
10f2d63a VZ |
4900 | if test "$enableval" = yes; then |
4901 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4902 | else | |
4903 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4904 | fi | |
247f5006 | 4905 | |
10f2d63a | 4906 | else |
247f5006 | 4907 | |
10f2d63a VZ |
4908 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4909 | if test "x$LINE" != x ; then | |
4910 | eval "DEFAULT_$LINE" | |
4911 | else | |
4912 | no_cache=1 | |
4913 | fi | |
4914 | ||
4915 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 4916 | |
247f5006 | 4917 | fi; |
10f2d63a VZ |
4918 | |
4919 | eval "$ac_cv_use_fs_zip" | |
4920 | if test "$no_cache" != 1; then | |
4921 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4922 | fi | |
4923 | ||
4924 | if test "$wxUSE_FS_ZIP" = yes; then | |
247f5006 VZ |
4925 | echo "$as_me:$LINENO: result: yes" >&5 |
4926 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4927 | else |
247f5006 VZ |
4928 | echo "$as_me:$LINENO: result: no" >&5 |
4929 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4930 | fi |
10f2d63a | 4931 | |
247f5006 VZ |
4932 | |
4933 | echo "$as_me:$LINENO: checking for --enable-zipstream" >&5 | |
4934 | echo $ECHO_N "checking for --enable-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
4935 | no_cache=0 |
4936 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4937 | if test "${enable_zipstream+set}" = set; then | |
4938 | enableval="$enable_zipstream" | |
247f5006 | 4939 | |
10f2d63a VZ |
4940 | if test "$enableval" = yes; then |
4941 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4942 | else | |
4943 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4944 | fi | |
247f5006 | 4945 | |
10f2d63a | 4946 | else |
247f5006 | 4947 | |
10f2d63a VZ |
4948 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4949 | if test "x$LINE" != x ; then | |
4950 | eval "DEFAULT_$LINE" | |
4951 | else | |
4952 | no_cache=1 | |
4953 | fi | |
4954 | ||
4955 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 4956 | |
247f5006 | 4957 | fi; |
10f2d63a VZ |
4958 | |
4959 | eval "$ac_cv_use_zipstream" | |
4960 | if test "$no_cache" != 1; then | |
4961 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4962 | fi | |
4963 | ||
4964 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
247f5006 VZ |
4965 | echo "$as_me:$LINENO: result: yes" >&5 |
4966 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4967 | else |
247f5006 VZ |
4968 | echo "$as_me:$LINENO: result: no" >&5 |
4969 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4970 | fi |
8284b0c5 | 4971 | |
52127426 | 4972 | |
247f5006 VZ |
4973 | |
4974 | echo "$as_me:$LINENO: checking for --enable-catch_segvs" >&5 | |
4975 | echo $ECHO_N "checking for --enable-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
4976 | no_cache=0 |
4977 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4978 | if test "${enable_catch_segvs+set}" = set; then | |
4979 | enableval="$enable_catch_segvs" | |
247f5006 | 4980 | |
eb4efbdc VZ |
4981 | if test "$enableval" = yes; then |
4982 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4983 | else | |
4984 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4985 | fi | |
247f5006 | 4986 | |
eb4efbdc | 4987 | else |
247f5006 | 4988 | |
eb4efbdc VZ |
4989 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4990 | if test "x$LINE" != x ; then | |
4991 | eval "DEFAULT_$LINE" | |
4992 | else | |
4993 | no_cache=1 | |
4994 | fi | |
4995 | ||
4996 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 4997 | |
247f5006 | 4998 | fi; |
eb4efbdc VZ |
4999 | |
5000 | eval "$ac_cv_use_catch_segvs" | |
5001 | if test "$no_cache" != 1; then | |
5002 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5003 | fi | |
5004 | ||
5005 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
247f5006 VZ |
5006 | echo "$as_me:$LINENO: result: yes" >&5 |
5007 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5008 | else |
247f5006 VZ |
5009 | echo "$as_me:$LINENO: result: no" >&5 |
5010 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5011 | fi |
eb4efbdc | 5012 | |
247f5006 VZ |
5013 | |
5014 | echo "$as_me:$LINENO: checking for --enable-snglinst" >&5 | |
5015 | echo $ECHO_N "checking for --enable-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5016 | no_cache=0 |
5017 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5018 | if test "${enable_snglinst+set}" = set; then | |
5019 | enableval="$enable_snglinst" | |
247f5006 | 5020 | |
4f3c5f06 VZ |
5021 | if test "$enableval" = yes; then |
5022 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5023 | else | |
5024 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5025 | fi | |
247f5006 | 5026 | |
4f3c5f06 | 5027 | else |
247f5006 | 5028 | |
4f3c5f06 VZ |
5029 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5030 | if test "x$LINE" != x ; then | |
5031 | eval "DEFAULT_$LINE" | |
5032 | else | |
5033 | no_cache=1 | |
5034 | fi | |
5035 | ||
5036 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5037 | |
247f5006 | 5038 | fi; |
4f3c5f06 VZ |
5039 | |
5040 | eval "$ac_cv_use_snglinst" | |
5041 | if test "$no_cache" != 1; then | |
5042 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5043 | fi | |
5044 | ||
5045 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
247f5006 VZ |
5046 | echo "$as_me:$LINENO: result: yes" >&5 |
5047 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5048 | else |
247f5006 VZ |
5049 | echo "$as_me:$LINENO: result: no" >&5 |
5050 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5051 | fi |
52127426 | 5052 | |
8284b0c5 | 5053 | |
247f5006 VZ |
5054 | |
5055 | echo "$as_me:$LINENO: checking for --enable-mimetype" >&5 | |
5056 | echo $ECHO_N "checking for --enable-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5057 | no_cache=0 |
5058 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5059 | if test "${enable_mimetype+set}" = set; then | |
5060 | enableval="$enable_mimetype" | |
247f5006 | 5061 | |
1e6feb95 VZ |
5062 | if test "$enableval" = yes; then |
5063 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5064 | else | |
5065 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5066 | fi | |
247f5006 | 5067 | |
1e6feb95 | 5068 | else |
247f5006 | 5069 | |
1e6feb95 VZ |
5070 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5071 | if test "x$LINE" != x ; then | |
5072 | eval "DEFAULT_$LINE" | |
5073 | else | |
5074 | no_cache=1 | |
5075 | fi | |
5076 | ||
5077 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5078 | |
247f5006 | 5079 | fi; |
1e6feb95 VZ |
5080 | |
5081 | eval "$ac_cv_use_mimetype" | |
5082 | if test "$no_cache" != 1; then | |
5083 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5084 | fi | |
5085 | ||
5086 | if test "$wxUSE_MIMETYPE" = yes; then | |
247f5006 VZ |
5087 | echo "$as_me:$LINENO: result: yes" >&5 |
5088 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5089 | else |
247f5006 VZ |
5090 | echo "$as_me:$LINENO: result: no" >&5 |
5091 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5092 | fi |
1e6feb95 | 5093 | |
247f5006 VZ |
5094 | |
5095 | echo "$as_me:$LINENO: checking for --enable-system_options" >&5 | |
5096 | echo $ECHO_N "checking for --enable-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5097 | no_cache=0 |
5098 | # Check whether --enable-system_options or --disable-system_options was given. | |
5099 | if test "${enable_system_options+set}" = set; then | |
5100 | enableval="$enable_system_options" | |
247f5006 | 5101 | |
3e44f09d VZ |
5102 | if test "$enableval" = yes; then |
5103 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5104 | else | |
5105 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5106 | fi | |
247f5006 | 5107 | |
3e44f09d | 5108 | else |
247f5006 | 5109 | |
3e44f09d VZ |
5110 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5111 | if test "x$LINE" != x ; then | |
5112 | eval "DEFAULT_$LINE" | |
5113 | else | |
5114 | no_cache=1 | |
5115 | fi | |
5116 | ||
5117 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5118 | |
247f5006 | 5119 | fi; |
3e44f09d VZ |
5120 | |
5121 | eval "$ac_cv_use_system_options" | |
5122 | if test "$no_cache" != 1; then | |
5123 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5124 | fi | |
5125 | ||
5126 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
247f5006 VZ |
5127 | echo "$as_me:$LINENO: result: yes" >&5 |
5128 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5129 | else |
247f5006 VZ |
5130 | echo "$as_me:$LINENO: result: no" >&5 |
5131 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5132 | fi |
8284b0c5 | 5133 | |
52127426 | 5134 | |
247f5006 VZ |
5135 | |
5136 | echo "$as_me:$LINENO: checking for --enable-url" >&5 | |
5137 | echo $ECHO_N "checking for --enable-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5138 | no_cache=0 |
5139 | # Check whether --enable-url or --disable-url was given. | |
5140 | if test "${enable_url+set}" = set; then | |
5141 | enableval="$enable_url" | |
247f5006 | 5142 | |
4cdb0ab0 VS |
5143 | if test "$enableval" = yes; then |
5144 | ac_cv_use_url='wxUSE_URL=yes' | |
5145 | else | |
5146 | ac_cv_use_url='wxUSE_URL=no' | |
5147 | fi | |
247f5006 | 5148 | |
4cdb0ab0 | 5149 | else |
247f5006 | 5150 | |
4cdb0ab0 VS |
5151 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5152 | if test "x$LINE" != x ; then | |
5153 | eval "DEFAULT_$LINE" | |
5154 | else | |
5155 | no_cache=1 | |
5156 | fi | |
5157 | ||
5158 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5159 | |
247f5006 | 5160 | fi; |
4cdb0ab0 VS |
5161 | |
5162 | eval "$ac_cv_use_url" | |
5163 | if test "$no_cache" != 1; then | |
5164 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5165 | fi | |
5166 | ||
5167 | if test "$wxUSE_URL" = yes; then | |
247f5006 VZ |
5168 | echo "$as_me:$LINENO: result: yes" >&5 |
5169 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5170 | else |
247f5006 VZ |
5171 | echo "$as_me:$LINENO: result: no" >&5 |
5172 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5173 | fi |
4cdb0ab0 | 5174 | |
247f5006 VZ |
5175 | |
5176 | echo "$as_me:$LINENO: checking for --enable-protocol" >&5 | |
5177 | echo $ECHO_N "checking for --enable-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5178 | no_cache=0 |
5179 | # Check whether --enable-protocol or --disable-protocol was given. | |
5180 | if test "${enable_protocol+set}" = set; then | |
5181 | enableval="$enable_protocol" | |
247f5006 | 5182 | |
4cdb0ab0 VS |
5183 | if test "$enableval" = yes; then |
5184 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5185 | else | |
5186 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5187 | fi | |
247f5006 | 5188 | |
4cdb0ab0 | 5189 | else |
247f5006 | 5190 | |
4cdb0ab0 VS |
5191 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5192 | if test "x$LINE" != x ; then | |
5193 | eval "DEFAULT_$LINE" | |
5194 | else | |
5195 | no_cache=1 | |
5196 | fi | |
5197 | ||
5198 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5199 | |
247f5006 | 5200 | fi; |
4cdb0ab0 VS |
5201 | |
5202 | eval "$ac_cv_use_protocol" | |
5203 | if test "$no_cache" != 1; then | |
5204 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5205 | fi | |
5206 | ||
5207 | if test "$wxUSE_PROTOCOL" = yes; then | |
247f5006 VZ |
5208 | echo "$as_me:$LINENO: result: yes" >&5 |
5209 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5210 | else |
247f5006 VZ |
5211 | echo "$as_me:$LINENO: result: no" >&5 |
5212 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5213 | fi |
4cdb0ab0 | 5214 | |
247f5006 VZ |
5215 | |
5216 | echo "$as_me:$LINENO: checking for --enable-protocol_http" >&5 | |
5217 | echo $ECHO_N "checking for --enable-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5218 | no_cache=0 |
5219 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5220 | if test "${enable_protocol_http+set}" = set; then | |
5221 | enableval="$enable_protocol_http" | |
247f5006 | 5222 | |
4cdb0ab0 VS |
5223 | if test "$enableval" = yes; then |
5224 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5225 | else | |
5226 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5227 | fi | |
247f5006 | 5228 | |
4cdb0ab0 | 5229 | else |
247f5006 | 5230 | |
4cdb0ab0 VS |
5231 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5232 | if test "x$LINE" != x ; then | |
5233 | eval "DEFAULT_$LINE" | |
5234 | else | |
5235 | no_cache=1 | |
5236 | fi | |
5237 | ||
5238 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5239 | |
247f5006 | 5240 | fi; |
4cdb0ab0 VS |
5241 | |
5242 | eval "$ac_cv_use_protocol_http" | |
5243 | if test "$no_cache" != 1; then | |
5244 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5245 | fi | |
5246 | ||
5247 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
247f5006 VZ |
5248 | echo "$as_me:$LINENO: result: yes" >&5 |
5249 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5250 | else |
247f5006 VZ |
5251 | echo "$as_me:$LINENO: result: no" >&5 |
5252 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5253 | fi |
4cdb0ab0 | 5254 | |
247f5006 VZ |
5255 | |
5256 | echo "$as_me:$LINENO: checking for --enable-protocol_ftp" >&5 | |
5257 | echo $ECHO_N "checking for --enable-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5258 | no_cache=0 |
5259 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5260 | if test "${enable_protocol_ftp+set}" = set; then | |
5261 | enableval="$enable_protocol_ftp" | |
247f5006 | 5262 | |
4cdb0ab0 VS |
5263 | if test "$enableval" = yes; then |
5264 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5265 | else | |
5266 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5267 | fi | |
247f5006 | 5268 | |
4cdb0ab0 | 5269 | else |
247f5006 | 5270 | |
4cdb0ab0 VS |
5271 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5272 | if test "x$LINE" != x ; then | |
5273 | eval "DEFAULT_$LINE" | |
5274 | else | |
5275 | no_cache=1 | |
5276 | fi | |
5277 | ||
5278 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5279 | |
247f5006 | 5280 | fi; |
4cdb0ab0 VS |
5281 | |
5282 | eval "$ac_cv_use_protocol_ftp" | |
5283 | if test "$no_cache" != 1; then | |
5284 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5285 | fi | |
5286 | ||
5287 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
247f5006 VZ |
5288 | echo "$as_me:$LINENO: result: yes" >&5 |
5289 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5290 | else |
247f5006 VZ |
5291 | echo "$as_me:$LINENO: result: no" >&5 |
5292 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5293 | fi |
4cdb0ab0 | 5294 | |
247f5006 VZ |
5295 | |
5296 | echo "$as_me:$LINENO: checking for --enable-protocol_file" >&5 | |
5297 | echo $ECHO_N "checking for --enable-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5298 | no_cache=0 |
5299 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5300 | if test "${enable_protocol_file+set}" = set; then | |
5301 | enableval="$enable_protocol_file" | |
247f5006 | 5302 | |
4cdb0ab0 VS |
5303 | if test "$enableval" = yes; then |
5304 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5305 | else | |
5306 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5307 | fi | |
247f5006 | 5308 | |
4cdb0ab0 | 5309 | else |
247f5006 | 5310 | |
4cdb0ab0 VS |
5311 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5312 | if test "x$LINE" != x ; then | |
5313 | eval "DEFAULT_$LINE" | |
5314 | else | |
5315 | no_cache=1 | |
5316 | fi | |
5317 | ||
5318 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5319 | |
247f5006 | 5320 | fi; |
4cdb0ab0 VS |
5321 | |
5322 | eval "$ac_cv_use_protocol_file" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
247f5006 VZ |
5328 | echo "$as_me:$LINENO: result: yes" >&5 |
5329 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5330 | else |
247f5006 VZ |
5331 | echo "$as_me:$LINENO: result: no" >&5 |
5332 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5333 | fi |
52127426 | 5334 | |
8284b0c5 MB |
5335 | |
5336 | ||
5337 | ||
247f5006 VZ |
5338 | |
5339 | echo "$as_me:$LINENO: checking for --enable-threads" >&5 | |
5340 | echo $ECHO_N "checking for --enable-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5341 | no_cache=0 |
5342 | # Check whether --enable-threads or --disable-threads was given. | |
5343 | if test "${enable_threads+set}" = set; then | |
5344 | enableval="$enable_threads" | |
247f5006 | 5345 | |
10f2d63a VZ |
5346 | if test "$enableval" = yes; then |
5347 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5348 | else | |
5349 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5350 | fi | |
247f5006 | 5351 | |
10f2d63a | 5352 | else |
247f5006 | 5353 | |
10f2d63a VZ |
5354 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5355 | if test "x$LINE" != x ; then | |
5356 | eval "DEFAULT_$LINE" | |
5357 | else | |
5358 | no_cache=1 | |
5359 | fi | |
5360 | ||
5361 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5362 | |
247f5006 | 5363 | fi; |
10f2d63a VZ |
5364 | |
5365 | eval "$ac_cv_use_threads" | |
5366 | if test "$no_cache" != 1; then | |
5367 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5368 | fi | |
5369 | ||
5370 | if test "$wxUSE_THREADS" = yes; then | |
247f5006 VZ |
5371 | echo "$as_me:$LINENO: result: yes" >&5 |
5372 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5373 | else |
247f5006 VZ |
5374 | echo "$as_me:$LINENO: result: no" >&5 |
5375 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5376 | fi |
247f5006 | 5377 | |
10f2d63a | 5378 | |
b12915c1 VZ |
5379 | if test "$wxUSE_GUI" = "yes"; then |
5380 | ||
8284b0c5 MB |
5381 | |
5382 | ||
247f5006 VZ |
5383 | echo "$as_me:$LINENO: checking for --enable-docview" >&5 |
5384 | echo $ECHO_N "checking for --enable-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5385 | no_cache=0 |
5386 | # Check whether --enable-docview or --disable-docview was given. | |
5387 | if test "${enable_docview+set}" = set; then | |
5388 | enableval="$enable_docview" | |
247f5006 | 5389 | |
10f2d63a VZ |
5390 | if test "$enableval" = yes; then |
5391 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5392 | else | |
5393 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5394 | fi | |
247f5006 | 5395 | |
10f2d63a | 5396 | else |
247f5006 | 5397 | |
10f2d63a VZ |
5398 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5399 | if test "x$LINE" != x ; then | |
5400 | eval "DEFAULT_$LINE" | |
5401 | else | |
5402 | no_cache=1 | |
5403 | fi | |
5404 | ||
5405 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5406 | |
247f5006 | 5407 | fi; |
10f2d63a VZ |
5408 | |
5409 | eval "$ac_cv_use_docview" | |
5410 | if test "$no_cache" != 1; then | |
5411 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5412 | fi | |
5413 | ||
5414 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
247f5006 VZ |
5415 | echo "$as_me:$LINENO: result: yes" >&5 |
5416 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5417 | else |
247f5006 VZ |
5418 | echo "$as_me:$LINENO: result: no" >&5 |
5419 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5420 | fi |
10f2d63a | 5421 | |
247f5006 VZ |
5422 | |
5423 | echo "$as_me:$LINENO: checking for --enable-help" >&5 | |
5424 | echo $ECHO_N "checking for --enable-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5425 | no_cache=0 |
5426 | # Check whether --enable-help or --disable-help was given. | |
5427 | if test "${enable_help+set}" = set; then | |
5428 | enableval="$enable_help" | |
247f5006 | 5429 | |
10f2d63a VZ |
5430 | if test "$enableval" = yes; then |
5431 | ac_cv_use_help='wxUSE_HELP=yes' | |
5432 | else | |
5433 | ac_cv_use_help='wxUSE_HELP=no' | |
5434 | fi | |
247f5006 | 5435 | |
10f2d63a | 5436 | else |
247f5006 | 5437 | |
10f2d63a VZ |
5438 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5439 | if test "x$LINE" != x ; then | |
5440 | eval "DEFAULT_$LINE" | |
5441 | else | |
5442 | no_cache=1 | |
5443 | fi | |
5444 | ||
5445 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5446 | |
247f5006 | 5447 | fi; |
10f2d63a VZ |
5448 | |
5449 | eval "$ac_cv_use_help" | |
5450 | if test "$no_cache" != 1; then | |
5451 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5452 | fi | |
5453 | ||
5454 | if test "$wxUSE_HELP" = yes; then | |
247f5006 VZ |
5455 | echo "$as_me:$LINENO: result: yes" >&5 |
5456 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5457 | else |
247f5006 VZ |
5458 | echo "$as_me:$LINENO: result: no" >&5 |
5459 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5460 | fi |
10f2d63a | 5461 | |
247f5006 VZ |
5462 | |
5463 | echo "$as_me:$LINENO: checking for --enable-mshtmlhelp" >&5 | |
5464 | echo $ECHO_N "checking for --enable-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5465 | no_cache=0 |
5466 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5467 | if test "${enable_mshtmlhelp+set}" = set; then | |
5468 | enableval="$enable_mshtmlhelp" | |
247f5006 | 5469 | |
29fd3c0c VS |
5470 | if test "$enableval" = yes; then |
5471 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5472 | else | |
5473 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5474 | fi | |
247f5006 | 5475 | |
29fd3c0c | 5476 | else |
247f5006 | 5477 | |
29fd3c0c VS |
5478 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5479 | if test "x$LINE" != x ; then | |
5480 | eval "DEFAULT_$LINE" | |
5481 | else | |
5482 | no_cache=1 | |
5483 | fi | |
5484 | ||
5485 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5486 | |
247f5006 | 5487 | fi; |
29fd3c0c VS |
5488 | |
5489 | eval "$ac_cv_use_mshtmlhelp" | |
5490 | if test "$no_cache" != 1; then | |
5491 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5492 | fi | |
5493 | ||
5494 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
247f5006 VZ |
5495 | echo "$as_me:$LINENO: result: yes" >&5 |
5496 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5497 | else |
247f5006 VZ |
5498 | echo "$as_me:$LINENO: result: no" >&5 |
5499 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5500 | fi |
29fd3c0c | 5501 | |
247f5006 VZ |
5502 | |
5503 | echo "$as_me:$LINENO: checking for --enable-html" >&5 | |
5504 | echo $ECHO_N "checking for --enable-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5505 | no_cache=0 |
5506 | # Check whether --enable-html or --disable-html was given. | |
5507 | if test "${enable_html+set}" = set; then | |
5508 | enableval="$enable_html" | |
247f5006 | 5509 | |
3379ed37 VZ |
5510 | if test "$enableval" = yes; then |
5511 | ac_cv_use_html='wxUSE_HTML=yes' | |
5512 | else | |
5513 | ac_cv_use_html='wxUSE_HTML=no' | |
5514 | fi | |
247f5006 | 5515 | |
3379ed37 | 5516 | else |
247f5006 | 5517 | |
3379ed37 VZ |
5518 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5519 | if test "x$LINE" != x ; then | |
5520 | eval "DEFAULT_$LINE" | |
5521 | else | |
5522 | no_cache=1 | |
5523 | fi | |
5524 | ||
5525 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5526 | |
247f5006 | 5527 | fi; |
3379ed37 VZ |
5528 | |
5529 | eval "$ac_cv_use_html" | |
5530 | if test "$no_cache" != 1; then | |
5531 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5532 | fi | |
5533 | ||
5534 | if test "$wxUSE_HTML" = yes; then | |
247f5006 VZ |
5535 | echo "$as_me:$LINENO: result: yes" >&5 |
5536 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5537 | else |
247f5006 VZ |
5538 | echo "$as_me:$LINENO: result: no" >&5 |
5539 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5540 | fi |
3379ed37 | 5541 | |
247f5006 VZ |
5542 | |
5543 | echo "$as_me:$LINENO: checking for --enable-htmlhelp" >&5 | |
5544 | echo $ECHO_N "checking for --enable-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5545 | no_cache=0 |
5546 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5547 | if test "${enable_htmlhelp+set}" = set; then | |
5548 | enableval="$enable_htmlhelp" | |
247f5006 | 5549 | |
3379ed37 VZ |
5550 | if test "$enableval" = yes; then |
5551 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5552 | else | |
5553 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5554 | fi | |
247f5006 | 5555 | |
3379ed37 | 5556 | else |
247f5006 | 5557 | |
3379ed37 VZ |
5558 | LINE=`grep "wxUSE_WXHTML_HELP" ${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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5566 | |
247f5006 | 5567 | fi; |
3379ed37 VZ |
5568 | |
5569 | eval "$ac_cv_use_htmlhelp" | |
5570 | if test "$no_cache" != 1; then | |
5571 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5572 | fi | |
5573 | ||
5574 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
247f5006 VZ |
5575 | echo "$as_me:$LINENO: result: yes" >&5 |
5576 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5577 | else |
247f5006 VZ |
5578 | echo "$as_me:$LINENO: result: no" >&5 |
5579 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5580 | fi |
3379ed37 | 5581 | |
247f5006 VZ |
5582 | |
5583 | echo "$as_me:$LINENO: checking for --enable-constraints" >&5 | |
5584 | echo $ECHO_N "checking for --enable-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5585 | no_cache=0 |
5586 | # Check whether --enable-constraints or --disable-constraints was given. | |
5587 | if test "${enable_constraints+set}" = set; then | |
5588 | enableval="$enable_constraints" | |
247f5006 | 5589 | |
10f2d63a VZ |
5590 | if test "$enableval" = yes; then |
5591 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5592 | else | |
5593 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5594 | fi | |
247f5006 | 5595 | |
10f2d63a | 5596 | else |
247f5006 | 5597 | |
10f2d63a VZ |
5598 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5599 | if test "x$LINE" != x ; then | |
5600 | eval "DEFAULT_$LINE" | |
5601 | else | |
5602 | no_cache=1 | |
5603 | fi | |
5604 | ||
5605 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5606 | |
247f5006 | 5607 | fi; |
10f2d63a VZ |
5608 | |
5609 | eval "$ac_cv_use_constraints" | |
5610 | if test "$no_cache" != 1; then | |
5611 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5612 | fi | |
5613 | ||
5614 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
247f5006 VZ |
5615 | echo "$as_me:$LINENO: result: yes" >&5 |
5616 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5617 | else |
247f5006 VZ |
5618 | echo "$as_me:$LINENO: result: no" >&5 |
5619 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5620 | fi |
10f2d63a | 5621 | |
247f5006 VZ |
5622 | |
5623 | echo "$as_me:$LINENO: checking for --enable-printarch" >&5 | |
5624 | echo $ECHO_N "checking for --enable-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5625 | no_cache=0 |
5626 | # Check whether --enable-printarch or --disable-printarch was given. | |
5627 | if test "${enable_printarch+set}" = set; then | |
5628 | enableval="$enable_printarch" | |
247f5006 | 5629 | |
10f2d63a VZ |
5630 | if test "$enableval" = yes; then |
5631 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5632 | else | |
5633 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5634 | fi | |
247f5006 | 5635 | |
10f2d63a | 5636 | else |
247f5006 | 5637 | |
10f2d63a VZ |
5638 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5639 | if test "x$LINE" != x ; then | |
5640 | eval "DEFAULT_$LINE" | |
5641 | else | |
5642 | no_cache=1 | |
5643 | fi | |
5644 | ||
5645 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 5646 | |
247f5006 | 5647 | fi; |
10f2d63a VZ |
5648 | |
5649 | eval "$ac_cv_use_printarch" | |
5650 | if test "$no_cache" != 1; then | |
5651 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5652 | fi | |
5653 | ||
5654 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
247f5006 VZ |
5655 | echo "$as_me:$LINENO: result: yes" >&5 |
5656 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5657 | else |
247f5006 VZ |
5658 | echo "$as_me:$LINENO: result: no" >&5 |
5659 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5660 | fi |
10f2d63a | 5661 | |
247f5006 VZ |
5662 | |
5663 | echo "$as_me:$LINENO: checking for --enable-mdi" >&5 | |
5664 | echo $ECHO_N "checking for --enable-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
5665 | no_cache=0 |
5666 | # Check whether --enable-mdi or --disable-mdi was given. | |
5667 | if test "${enable_mdi+set}" = set; then | |
5668 | enableval="$enable_mdi" | |
247f5006 | 5669 | |
10f2d63a VZ |
5670 | if test "$enableval" = yes; then |
5671 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5672 | else | |
5673 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5674 | fi | |
247f5006 | 5675 | |
10f2d63a | 5676 | else |
247f5006 | 5677 | |
10f2d63a VZ |
5678 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5679 | if test "x$LINE" != x ; then | |
5680 | eval "DEFAULT_$LINE" | |
5681 | else | |
5682 | no_cache=1 | |
5683 | fi | |
5684 | ||
5685 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 5686 | |
247f5006 | 5687 | fi; |
10f2d63a VZ |
5688 | |
5689 | eval "$ac_cv_use_mdi" | |
5690 | if test "$no_cache" != 1; then | |
5691 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5692 | fi | |
5693 | ||
5694 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
247f5006 VZ |
5695 | echo "$as_me:$LINENO: result: yes" >&5 |
5696 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5697 | else |
247f5006 VZ |
5698 | echo "$as_me:$LINENO: result: no" >&5 |
5699 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5700 | fi |
698dcdb6 | 5701 | |
247f5006 VZ |
5702 | |
5703 | echo "$as_me:$LINENO: checking for --enable-loggui" >&5 | |
5704 | echo $ECHO_N "checking for --enable-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
5705 | no_cache=0 |
5706 | # Check whether --enable-loggui or --disable-loggui was given. | |
5707 | if test "${enable_loggui+set}" = set; then | |
5708 | enableval="$enable_loggui" | |
247f5006 | 5709 | |
1e6feb95 VZ |
5710 | if test "$enableval" = yes; then |
5711 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5712 | else | |
5713 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5714 | fi | |
247f5006 | 5715 | |
1e6feb95 | 5716 | else |
247f5006 | 5717 | |
1e6feb95 VZ |
5718 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5719 | if test "x$LINE" != x ; then | |
5720 | eval "DEFAULT_$LINE" | |
5721 | else | |
5722 | no_cache=1 | |
5723 | fi | |
5724 | ||
5725 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 5726 | |
247f5006 | 5727 | fi; |
1e6feb95 VZ |
5728 | |
5729 | eval "$ac_cv_use_loggui" | |
5730 | if test "$no_cache" != 1; then | |
5731 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5732 | fi | |
5733 | ||
5734 | if test "$wxUSE_LOGGUI" = yes; then | |
247f5006 VZ |
5735 | echo "$as_me:$LINENO: result: yes" >&5 |
5736 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5737 | else |
247f5006 VZ |
5738 | echo "$as_me:$LINENO: result: no" >&5 |
5739 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5740 | fi |
1e6feb95 | 5741 | |
247f5006 VZ |
5742 | |
5743 | echo "$as_me:$LINENO: checking for --enable-logwin" >&5 | |
5744 | echo $ECHO_N "checking for --enable-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
5745 | no_cache=0 |
5746 | # Check whether --enable-logwin or --disable-logwin was given. | |
5747 | if test "${enable_logwin+set}" = set; then | |
5748 | enableval="$enable_logwin" | |
247f5006 | 5749 | |
1e6feb95 VZ |
5750 | if test "$enableval" = yes; then |
5751 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5752 | else | |
5753 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5754 | fi | |
247f5006 | 5755 | |
1e6feb95 | 5756 | else |
247f5006 | 5757 | |
1e6feb95 VZ |
5758 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5759 | if test "x$LINE" != x ; then | |
5760 | eval "DEFAULT_$LINE" | |
5761 | else | |
5762 | no_cache=1 | |
5763 | fi | |
5764 | ||
5765 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 5766 | |
247f5006 | 5767 | fi; |
1e6feb95 VZ |
5768 | |
5769 | eval "$ac_cv_use_logwin" | |
5770 | if test "$no_cache" != 1; then | |
5771 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5772 | fi | |
5773 | ||
5774 | if test "$wxUSE_LOGWINDOW" = yes; then | |
247f5006 VZ |
5775 | echo "$as_me:$LINENO: result: yes" >&5 |
5776 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5777 | else |
247f5006 VZ |
5778 | echo "$as_me:$LINENO: result: no" >&5 |
5779 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5780 | fi |
1e6feb95 | 5781 | |
247f5006 VZ |
5782 | |
5783 | echo "$as_me:$LINENO: checking for --enable-logdialog" >&5 | |
5784 | echo $ECHO_N "checking for --enable-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
5785 | no_cache=0 |
5786 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5787 | if test "${enable_logdialog+set}" = set; then | |
5788 | enableval="$enable_logdialog" | |
247f5006 | 5789 | |
69d27ff7 MB |
5790 | if test "$enableval" = yes; then |
5791 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5792 | else | |
5793 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5794 | fi | |
247f5006 | 5795 | |
69d27ff7 | 5796 | else |
247f5006 | 5797 | |
69d27ff7 MB |
5798 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5799 | if test "x$LINE" != x ; then | |
5800 | eval "DEFAULT_$LINE" | |
5801 | else | |
5802 | no_cache=1 | |
5803 | fi | |
5804 | ||
5805 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 5806 | |
247f5006 | 5807 | fi; |
69d27ff7 MB |
5808 | |
5809 | eval "$ac_cv_use_logdialog" | |
5810 | if test "$no_cache" != 1; then | |
5811 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5812 | fi | |
5813 | ||
5814 | if test "$wxUSE_LOGDIALOG" = yes; then | |
247f5006 VZ |
5815 | echo "$as_me:$LINENO: result: yes" >&5 |
5816 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 5817 | else |
247f5006 VZ |
5818 | echo "$as_me:$LINENO: result: no" >&5 |
5819 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 5820 | fi |
8284b0c5 | 5821 | |
52127426 | 5822 | |
247f5006 VZ |
5823 | |
5824 | echo "$as_me:$LINENO: checking for --enable-postscript" >&5 | |
5825 | echo $ECHO_N "checking for --enable-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
5826 | no_cache=0 |
5827 | # Check whether --enable-postscript or --disable-postscript was given. | |
5828 | if test "${enable_postscript+set}" = set; then | |
5829 | enableval="$enable_postscript" | |
247f5006 | 5830 | |
10f2d63a VZ |
5831 | if test "$enableval" = yes; then |
5832 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5833 | else | |
5834 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5835 | fi | |
247f5006 | 5836 | |
10f2d63a | 5837 | else |
247f5006 | 5838 | |
10f2d63a VZ |
5839 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5840 | if test "x$LINE" != x ; then | |
5841 | eval "DEFAULT_$LINE" | |
5842 | else | |
5843 | no_cache=1 | |
5844 | fi | |
5845 | ||
5846 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 5847 | |
247f5006 | 5848 | fi; |
10f2d63a VZ |
5849 | |
5850 | eval "$ac_cv_use_postscript" | |
5851 | if test "$no_cache" != 1; then | |
5852 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5853 | fi | |
5854 | ||
5855 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
247f5006 VZ |
5856 | echo "$as_me:$LINENO: result: yes" >&5 |
5857 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5858 | else |
247f5006 VZ |
5859 | echo "$as_me:$LINENO: result: no" >&5 |
5860 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5861 | fi |
8284b0c5 MB |
5862 | |
5863 | ||
52127426 | 5864 | |
8284b0c5 | 5865 | |
247f5006 VZ |
5866 | |
5867 | echo "$as_me:$LINENO: checking for --enable-prologio" >&5 | |
5868 | echo $ECHO_N "checking for --enable-prologio... $ECHO_C" >&6 | |
10f2d63a VZ |
5869 | no_cache=0 |
5870 | # Check whether --enable-prologio or --disable-prologio was given. | |
5871 | if test "${enable_prologio+set}" = set; then | |
5872 | enableval="$enable_prologio" | |
247f5006 | 5873 | |
10f2d63a VZ |
5874 | if test "$enableval" = yes; then |
5875 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5876 | else | |
5877 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5878 | fi | |
247f5006 | 5879 | |
10f2d63a | 5880 | else |
247f5006 | 5881 | |
10f2d63a VZ |
5882 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5883 | if test "x$LINE" != x ; then | |
5884 | eval "DEFAULT_$LINE" | |
5885 | else | |
5886 | no_cache=1 | |
5887 | fi | |
5888 | ||
5889 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
10f2d63a | 5890 | |
247f5006 | 5891 | fi; |
10f2d63a VZ |
5892 | |
5893 | eval "$ac_cv_use_prologio" | |
5894 | if test "$no_cache" != 1; then | |
5895 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5896 | fi | |
5897 | ||
5898 | if test "$wxUSE_PROLOGIO" = yes; then | |
247f5006 VZ |
5899 | echo "$as_me:$LINENO: result: yes" >&5 |
5900 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5901 | else |
247f5006 VZ |
5902 | echo "$as_me:$LINENO: result: no" >&5 |
5903 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5904 | fi |
10f2d63a | 5905 | |
247f5006 VZ |
5906 | |
5907 | echo "$as_me:$LINENO: checking for --enable-resources" >&5 | |
5908 | echo $ECHO_N "checking for --enable-resources... $ECHO_C" >&6 | |
10f2d63a VZ |
5909 | no_cache=0 |
5910 | # Check whether --enable-resources or --disable-resources was given. | |
5911 | if test "${enable_resources+set}" = set; then | |
5912 | enableval="$enable_resources" | |
247f5006 | 5913 | |
10f2d63a VZ |
5914 | if test "$enableval" = yes; then |
5915 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5916 | else | |
5917 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5918 | fi | |
247f5006 | 5919 | |
10f2d63a | 5920 | else |
247f5006 | 5921 | |
10f2d63a VZ |
5922 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5923 | if test "x$LINE" != x ; then | |
5924 | eval "DEFAULT_$LINE" | |
5925 | else | |
5926 | no_cache=1 | |
5927 | fi | |
5928 | ||
5929 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
10f2d63a | 5930 | |
247f5006 | 5931 | fi; |
10f2d63a VZ |
5932 | |
5933 | eval "$ac_cv_use_resources" | |
5934 | if test "$no_cache" != 1; then | |
5935 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5936 | fi | |
5937 | ||
5938 | if test "$wxUSE_RESOURCES" = yes; then | |
247f5006 VZ |
5939 | echo "$as_me:$LINENO: result: yes" >&5 |
5940 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5941 | else |
247f5006 VZ |
5942 | echo "$as_me:$LINENO: result: no" >&5 |
5943 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5944 | fi |
8284b0c5 | 5945 | |
52127426 | 5946 | |
247f5006 VZ |
5947 | |
5948 | echo "$as_me:$LINENO: checking for --enable-xresources" >&5 | |
5949 | echo $ECHO_N "checking for --enable-xresources... $ECHO_C" >&6 | |
10f2d63a VZ |
5950 | no_cache=0 |
5951 | # Check whether --enable-xresources or --disable-xresources was given. | |
5952 | if test "${enable_xresources+set}" = set; then | |
5953 | enableval="$enable_xresources" | |
247f5006 | 5954 | |
10f2d63a VZ |
5955 | if test "$enableval" = yes; then |
5956 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5957 | else | |
5958 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5959 | fi | |
247f5006 | 5960 | |
10f2d63a | 5961 | else |
247f5006 | 5962 | |
10f2d63a VZ |
5963 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5964 | if test "x$LINE" != x ; then | |
5965 | eval "DEFAULT_$LINE" | |
5966 | else | |
5967 | no_cache=1 | |
5968 | fi | |
5969 | ||
5970 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
10f2d63a | 5971 | |
247f5006 | 5972 | fi; |
10f2d63a VZ |
5973 | |
5974 | eval "$ac_cv_use_xresources" | |
5975 | if test "$no_cache" != 1; then | |
5976 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5977 | fi | |
5978 | ||
5979 | if test "$wxUSE_X_RESOURCES" = yes; then | |
247f5006 VZ |
5980 | echo "$as_me:$LINENO: result: yes" >&5 |
5981 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5982 | else |
247f5006 VZ |
5983 | echo "$as_me:$LINENO: result: no" >&5 |
5984 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5985 | fi |
8284b0c5 MB |
5986 | |
5987 | ||
52127426 | 5988 | |
247f5006 VZ |
5989 | |
5990 | echo "$as_me:$LINENO: checking for --enable-clipboard" >&5 | |
5991 | echo $ECHO_N "checking for --enable-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
5992 | no_cache=0 |
5993 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5994 | if test "${enable_clipboard+set}" = set; then | |
5995 | enableval="$enable_clipboard" | |
247f5006 | 5996 | |
10f2d63a VZ |
5997 | if test "$enableval" = yes; then |
5998 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5999 | else | |
6000 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6001 | fi | |
247f5006 | 6002 | |
10f2d63a | 6003 | else |
247f5006 | 6004 | |
10f2d63a VZ |
6005 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6006 | if test "x$LINE" != x ; then | |
6007 | eval "DEFAULT_$LINE" | |
6008 | else | |
6009 | no_cache=1 | |
6010 | fi | |
6011 | ||
6012 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6013 | |
247f5006 | 6014 | fi; |
10f2d63a VZ |
6015 | |
6016 | eval "$ac_cv_use_clipboard" | |
6017 | if test "$no_cache" != 1; then | |
6018 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6019 | fi | |
6020 | ||
6021 | if test "$wxUSE_CLIPBOARD" = yes; then | |
247f5006 VZ |
6022 | echo "$as_me:$LINENO: result: yes" >&5 |
6023 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6024 | else |
247f5006 VZ |
6025 | echo "$as_me:$LINENO: result: no" >&5 |
6026 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6027 | fi |
10f2d63a | 6028 | |
247f5006 VZ |
6029 | |
6030 | echo "$as_me:$LINENO: checking for --enable-dnd" >&5 | |
6031 | echo $ECHO_N "checking for --enable-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6032 | no_cache=0 |
6033 | # Check whether --enable-dnd or --disable-dnd was given. | |
6034 | if test "${enable_dnd+set}" = set; then | |
6035 | enableval="$enable_dnd" | |
247f5006 | 6036 | |
10f2d63a VZ |
6037 | if test "$enableval" = yes; then |
6038 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6039 | else | |
6040 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6041 | fi | |
247f5006 | 6042 | |
10f2d63a | 6043 | else |
247f5006 | 6044 | |
10f2d63a VZ |
6045 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6046 | if test "x$LINE" != x ; then | |
6047 | eval "DEFAULT_$LINE" | |
6048 | else | |
6049 | no_cache=1 | |
6050 | fi | |
6051 | ||
6052 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6053 | |
247f5006 | 6054 | fi; |
10f2d63a VZ |
6055 | |
6056 | eval "$ac_cv_use_dnd" | |
6057 | if test "$no_cache" != 1; then | |
6058 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6059 | fi | |
6060 | ||
6061 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
247f5006 VZ |
6062 | echo "$as_me:$LINENO: result: yes" >&5 |
6063 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6064 | else |
247f5006 VZ |
6065 | echo "$as_me:$LINENO: result: no" >&5 |
6066 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6067 | fi |
10f2d63a | 6068 | |
247f5006 VZ |
6069 | |
6070 | echo "$as_me:$LINENO: checking for --enable-metafile" >&5 | |
6071 | echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6072 | no_cache=0 |
6073 | # Check whether --enable-metafile or --disable-metafile was given. | |
6074 | if test "${enable_metafile+set}" = set; then | |
6075 | enableval="$enable_metafile" | |
247f5006 | 6076 | |
b64f0a5f RL |
6077 | if test "$enableval" = yes; then |
6078 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6079 | else | |
6080 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6081 | fi | |
247f5006 | 6082 | |
b64f0a5f | 6083 | else |
247f5006 | 6084 | |
b64f0a5f RL |
6085 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6086 | if test "x$LINE" != x ; then | |
6087 | eval "DEFAULT_$LINE" | |
6088 | else | |
6089 | no_cache=1 | |
6090 | fi | |
6091 | ||
6092 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6093 | |
247f5006 | 6094 | fi; |
b64f0a5f RL |
6095 | |
6096 | eval "$ac_cv_use_metafile" | |
6097 | if test "$no_cache" != 1; then | |
6098 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6099 | fi | |
6100 | ||
6101 | if test "$wxUSE_METAFILE" = yes; then | |
247f5006 VZ |
6102 | echo "$as_me:$LINENO: result: yes" >&5 |
6103 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6104 | else |
247f5006 VZ |
6105 | echo "$as_me:$LINENO: result: no" >&5 |
6106 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6107 | fi |
52127426 | 6108 | |
8284b0c5 | 6109 | |
247f5006 VZ |
6110 | |
6111 | echo "$as_me:$LINENO: checking for --enable-treelayout" >&5 | |
6112 | echo $ECHO_N "checking for --enable-treelayout... $ECHO_C" >&6 | |
10f2d63a | 6113 | no_cache=0 |
24176f2c GD |
6114 | # Check whether --enable-treelayout or --disable-treelayout was given. |
6115 | if test "${enable_treelayout+set}" = set; then | |
6116 | enableval="$enable_treelayout" | |
247f5006 | 6117 | |
10f2d63a | 6118 | if test "$enableval" = yes; then |
24176f2c | 6119 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 6120 | else |
24176f2c | 6121 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 6122 | fi |
247f5006 | 6123 | |
10f2d63a | 6124 | else |
247f5006 | 6125 | |
24176f2c | 6126 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
6127 | if test "x$LINE" != x ; then |
6128 | eval "DEFAULT_$LINE" | |
6129 | else | |
6130 | no_cache=1 | |
6131 | fi | |
6132 | ||
24176f2c | 6133 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
10f2d63a | 6134 | |
247f5006 | 6135 | fi; |
10f2d63a | 6136 | |
24176f2c | 6137 | eval "$ac_cv_use_treelayout" |
10f2d63a | 6138 | if test "$no_cache" != 1; then |
24176f2c | 6139 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6140 | fi |
6141 | ||
24176f2c | 6142 | if test "$wxUSE_TREELAYOUT" = yes; then |
247f5006 VZ |
6143 | echo "$as_me:$LINENO: result: yes" >&5 |
6144 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6145 | else |
247f5006 VZ |
6146 | echo "$as_me:$LINENO: result: no" >&5 |
6147 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6148 | fi |
8284b0c5 | 6149 | |
52127426 | 6150 | |
8284b0c5 | 6151 | |
247f5006 VZ |
6152 | |
6153 | echo "$as_me:$LINENO: checking for --enable-controls" >&5 | |
6154 | echo $ECHO_N "checking for --enable-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6155 | no_cache=0 |
6156 | # Check whether --enable-controls or --disable-controls was given. | |
6157 | if test "${enable_controls+set}" = set; then | |
6158 | enableval="$enable_controls" | |
247f5006 | 6159 | |
10f2d63a VZ |
6160 | if test "$enableval" = yes; then |
6161 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6162 | else | |
6163 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6164 | fi | |
247f5006 | 6165 | |
10f2d63a | 6166 | else |
247f5006 | 6167 | |
10f2d63a VZ |
6168 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6169 | if test "x$LINE" != x ; then | |
6170 | eval "DEFAULT_$LINE" | |
6171 | else | |
6172 | no_cache=1 | |
6173 | fi | |
6174 | ||
6175 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6176 | |
247f5006 | 6177 | fi; |
10f2d63a VZ |
6178 | |
6179 | eval "$ac_cv_use_controls" | |
6180 | if test "$no_cache" != 1; then | |
6181 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6182 | fi | |
6183 | ||
6184 | if test "$wxUSE_CONTROLS" = yes; then | |
247f5006 VZ |
6185 | echo "$as_me:$LINENO: result: yes" >&5 |
6186 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6187 | else |
247f5006 VZ |
6188 | echo "$as_me:$LINENO: result: no" >&5 |
6189 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6190 | fi |
247f5006 | 6191 | |
10f2d63a VZ |
6192 | |
6193 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6194 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6195 | DEFAULT_wxUSE_BMPBUTTON=yes |
6196 | DEFAULT_wxUSE_BUTTON=yes | |
6197 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6198 | DEFAULT_wxUSE_CARET=yes |
6199 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6200 | DEFAULT_wxUSE_CHECKBOX=yes |
6201 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6202 | DEFAULT_wxUSE_CHOICE=yes | |
6203 | DEFAULT_wxUSE_GAUGE=yes | |
6204 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 6205 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
6206 | DEFAULT_wxUSE_IMAGLIST=yes |
6207 | DEFAULT_wxUSE_LISTBOX=yes | |
6208 | DEFAULT_wxUSE_LISTCTRL=yes | |
6209 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 6210 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
6211 | DEFAULT_wxUSE_RADIOBOX=yes |
6212 | DEFAULT_wxUSE_RADIOBTN=yes | |
6213 | DEFAULT_wxUSE_SASH=yes | |
6214 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6215 | DEFAULT_wxUSE_SLIDER=yes | |
6216 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6217 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6218 | DEFAULT_wxUSE_SPLITTER=yes |
6219 | DEFAULT_wxUSE_STATBMP=yes | |
6220 | DEFAULT_wxUSE_STATBOX=yes | |
6221 | DEFAULT_wxUSE_STATLINE=yes | |
6222 | DEFAULT_wxUSE_STATUSBAR=yes | |
6223 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6224 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6225 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6226 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6227 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6228 | DEFAULT_wxUSE_TOOLTIPS=yes |
6229 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6230 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6231 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6232 | elif test "$wxUSE_CONTROLS" = "no"; then |
6233 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6234 | DEFAULT_wxUSE_BMPBUTTON=no |
6235 | DEFAULT_wxUSE_BUTTON=no | |
6236 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6237 | DEFAULT_wxUSE_CARET=no |
6238 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6239 | DEFAULT_wxUSE_CHECKBOX=no |
6240 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6241 | DEFAULT_wxUSE_CHOICE=no | |
6242 | DEFAULT_wxUSE_GAUGE=no | |
6243 | DEFAULT_wxUSE_GRID=no | |
6244 | DEFAULT_wxUSE_NEW_GRID=no | |
6245 | DEFAULT_wxUSE_IMAGLIST=no | |
6246 | DEFAULT_wxUSE_LISTBOX=no | |
6247 | DEFAULT_wxUSE_LISTCTRL=no | |
6248 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 6249 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
6250 | DEFAULT_wxUSE_RADIOBOX=no |
6251 | DEFAULT_wxUSE_RADIOBTN=no | |
6252 | DEFAULT_wxUSE_SASH=no | |
6253 | DEFAULT_wxUSE_SCROLLBAR=no | |
6254 | DEFAULT_wxUSE_SLIDER=no | |
6255 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6256 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6257 | DEFAULT_wxUSE_SPLITTER=no |
6258 | DEFAULT_wxUSE_STATBMP=no | |
6259 | DEFAULT_wxUSE_STATBOX=no | |
6260 | DEFAULT_wxUSE_STATLINE=no | |
6261 | DEFAULT_wxUSE_STATUSBAR=no | |
6262 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6263 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6264 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6265 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6266 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6267 | DEFAULT_wxUSE_TOOLTIPS=no |
6268 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6269 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6270 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6271 | fi |
6272 | ||
8284b0c5 | 6273 | |
247f5006 VZ |
6274 | echo "$as_me:$LINENO: checking for --enable-accel" >&5 |
6275 | echo $ECHO_N "checking for --enable-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6276 | no_cache=0 |
6277 | # Check whether --enable-accel or --disable-accel was given. | |
6278 | if test "${enable_accel+set}" = set; then | |
6279 | enableval="$enable_accel" | |
247f5006 | 6280 | |
10f2d63a VZ |
6281 | if test "$enableval" = yes; then |
6282 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6283 | else | |
6284 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6285 | fi | |
247f5006 | 6286 | |
10f2d63a | 6287 | else |
247f5006 | 6288 | |
10f2d63a VZ |
6289 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6290 | if test "x$LINE" != x ; then | |
6291 | eval "DEFAULT_$LINE" | |
6292 | else | |
6293 | no_cache=1 | |
6294 | fi | |
6295 | ||
6296 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6297 | |
247f5006 | 6298 | fi; |
10f2d63a VZ |
6299 | |
6300 | eval "$ac_cv_use_accel" | |
6301 | if test "$no_cache" != 1; then | |
6302 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6303 | fi | |
6304 | ||
6305 | if test "$wxUSE_ACCEL" = yes; then | |
247f5006 VZ |
6306 | echo "$as_me:$LINENO: result: yes" >&5 |
6307 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6308 | else |
247f5006 VZ |
6309 | echo "$as_me:$LINENO: result: no" >&5 |
6310 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6311 | fi |
10f2d63a | 6312 | |
247f5006 VZ |
6313 | |
6314 | echo "$as_me:$LINENO: checking for --enable-button" >&5 | |
6315 | echo $ECHO_N "checking for --enable-button... $ECHO_C" >&6 | |
10f2d63a | 6316 | no_cache=0 |
1e6feb95 VZ |
6317 | # Check whether --enable-button or --disable-button was given. |
6318 | if test "${enable_button+set}" = set; then | |
6319 | enableval="$enable_button" | |
247f5006 | 6320 | |
10f2d63a | 6321 | if test "$enableval" = yes; then |
1e6feb95 | 6322 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6323 | else |
1e6feb95 | 6324 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6325 | fi |
247f5006 | 6326 | |
10f2d63a | 6327 | else |
247f5006 | 6328 | |
1e6feb95 | 6329 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6330 | if test "x$LINE" != x ; then |
6331 | eval "DEFAULT_$LINE" | |
6332 | else | |
6333 | no_cache=1 | |
6334 | fi | |
6335 | ||
1e6feb95 | 6336 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6337 | |
247f5006 | 6338 | fi; |
10f2d63a | 6339 | |
1e6feb95 | 6340 | eval "$ac_cv_use_button" |
10f2d63a | 6341 | if test "$no_cache" != 1; then |
1e6feb95 | 6342 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6343 | fi |
6344 | ||
1e6feb95 | 6345 | if test "$wxUSE_BUTTON" = yes; then |
247f5006 VZ |
6346 | echo "$as_me:$LINENO: result: yes" >&5 |
6347 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6348 | else |
247f5006 VZ |
6349 | echo "$as_me:$LINENO: result: no" >&5 |
6350 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6351 | fi |
10f2d63a | 6352 | |
247f5006 VZ |
6353 | |
6354 | echo "$as_me:$LINENO: checking for --enable-bmpbutton" >&5 | |
6355 | echo $ECHO_N "checking for --enable-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6356 | no_cache=0 |
6357 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6358 | if test "${enable_bmpbutton+set}" = set; then | |
6359 | enableval="$enable_bmpbutton" | |
247f5006 | 6360 | |
10f2d63a VZ |
6361 | if test "$enableval" = yes; then |
6362 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6363 | else | |
6364 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6365 | fi | |
247f5006 | 6366 | |
10f2d63a | 6367 | else |
247f5006 | 6368 | |
10f2d63a VZ |
6369 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6370 | if test "x$LINE" != x ; then | |
6371 | eval "DEFAULT_$LINE" | |
6372 | else | |
6373 | no_cache=1 | |
6374 | fi | |
6375 | ||
6376 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6377 | |
247f5006 | 6378 | fi; |
10f2d63a VZ |
6379 | |
6380 | eval "$ac_cv_use_bmpbutton" | |
6381 | if test "$no_cache" != 1; then | |
6382 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6383 | fi | |
6384 | ||
6385 | if test "$wxUSE_BMPBUTTON" = yes; then | |
247f5006 VZ |
6386 | echo "$as_me:$LINENO: result: yes" >&5 |
6387 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6388 | else |
247f5006 VZ |
6389 | echo "$as_me:$LINENO: result: no" >&5 |
6390 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6391 | fi |
10f2d63a | 6392 | |
247f5006 VZ |
6393 | |
6394 | echo "$as_me:$LINENO: checking for --enable-calendar" >&5 | |
6395 | echo $ECHO_N "checking for --enable-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6396 | no_cache=0 |
6397 | # Check whether --enable-calendar or --disable-calendar was given. | |
6398 | if test "${enable_calendar+set}" = set; then | |
6399 | enableval="$enable_calendar" | |
247f5006 | 6400 | |
1e6feb95 VZ |
6401 | if test "$enableval" = yes; then |
6402 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6403 | else | |
6404 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6405 | fi | |
247f5006 | 6406 | |
1e6feb95 | 6407 | else |
247f5006 | 6408 | |
1e6feb95 VZ |
6409 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6410 | if test "x$LINE" != x ; then | |
6411 | eval "DEFAULT_$LINE" | |
6412 | else | |
6413 | no_cache=1 | |
6414 | fi | |
6415 | ||
6416 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6417 | |
247f5006 | 6418 | fi; |
1e6feb95 VZ |
6419 | |
6420 | eval "$ac_cv_use_calendar" | |
6421 | if test "$no_cache" != 1; then | |
6422 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6423 | fi | |
6424 | ||
6425 | if test "$wxUSE_CALCTRL" = yes; then | |
247f5006 VZ |
6426 | echo "$as_me:$LINENO: result: yes" >&5 |
6427 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6428 | else |
247f5006 VZ |
6429 | echo "$as_me:$LINENO: result: no" >&5 |
6430 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6431 | fi |
1e6feb95 | 6432 | |
247f5006 VZ |
6433 | |
6434 | echo "$as_me:$LINENO: checking for --enable-caret" >&5 | |
6435 | echo $ECHO_N "checking for --enable-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6436 | no_cache=0 |
6437 | # Check whether --enable-caret or --disable-caret was given. | |
6438 | if test "${enable_caret+set}" = set; then | |
6439 | enableval="$enable_caret" | |
247f5006 | 6440 | |
1e6feb95 VZ |
6441 | if test "$enableval" = yes; then |
6442 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6443 | else | |
6444 | ac_cv_use_caret='wxUSE_CARET=no' | |
6445 | fi | |
247f5006 | 6446 | |
1e6feb95 | 6447 | else |
247f5006 | 6448 | |
1e6feb95 VZ |
6449 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6450 | if test "x$LINE" != x ; then | |
6451 | eval "DEFAULT_$LINE" | |
6452 | else | |
6453 | no_cache=1 | |
6454 | fi | |
6455 | ||
6456 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6457 | |
247f5006 | 6458 | fi; |
1e6feb95 VZ |
6459 | |
6460 | eval "$ac_cv_use_caret" | |
6461 | if test "$no_cache" != 1; then | |
6462 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6463 | fi | |
6464 | ||
6465 | if test "$wxUSE_CARET" = yes; then | |
247f5006 VZ |
6466 | echo "$as_me:$LINENO: result: yes" >&5 |
6467 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6468 | else |
247f5006 VZ |
6469 | echo "$as_me:$LINENO: result: no" >&5 |
6470 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6471 | fi |
1e6feb95 | 6472 | |
247f5006 VZ |
6473 | |
6474 | echo "$as_me:$LINENO: checking for --enable-checkbox" >&5 | |
6475 | echo $ECHO_N "checking for --enable-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6476 | no_cache=0 |
6477 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6478 | if test "${enable_checkbox+set}" = set; then | |
6479 | enableval="$enable_checkbox" | |
247f5006 | 6480 | |
10f2d63a VZ |
6481 | if test "$enableval" = yes; then |
6482 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6483 | else | |
6484 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6485 | fi | |
247f5006 | 6486 | |
10f2d63a | 6487 | else |
247f5006 | 6488 | |
10f2d63a VZ |
6489 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6490 | if test "x$LINE" != x ; then | |
6491 | eval "DEFAULT_$LINE" | |
6492 | else | |
6493 | no_cache=1 | |
6494 | fi | |
6495 | ||
6496 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6497 | |
247f5006 | 6498 | fi; |
10f2d63a VZ |
6499 | |
6500 | eval "$ac_cv_use_checkbox" | |
6501 | if test "$no_cache" != 1; then | |
6502 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6503 | fi | |
6504 | ||
6505 | if test "$wxUSE_CHECKBOX" = yes; then | |
247f5006 VZ |
6506 | echo "$as_me:$LINENO: result: yes" >&5 |
6507 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6508 | else |
247f5006 VZ |
6509 | echo "$as_me:$LINENO: result: no" >&5 |
6510 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6511 | fi |
10f2d63a | 6512 | |
247f5006 VZ |
6513 | |
6514 | echo "$as_me:$LINENO: checking for --enable-checklst" >&5 | |
6515 | echo $ECHO_N "checking for --enable-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6516 | no_cache=0 |
6517 | # Check whether --enable-checklst or --disable-checklst was given. | |
6518 | if test "${enable_checklst+set}" = set; then | |
6519 | enableval="$enable_checklst" | |
247f5006 | 6520 | |
10f2d63a VZ |
6521 | if test "$enableval" = yes; then |
6522 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6523 | else | |
6524 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6525 | fi | |
247f5006 | 6526 | |
10f2d63a | 6527 | else |
247f5006 | 6528 | |
10f2d63a VZ |
6529 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6530 | if test "x$LINE" != x ; then | |
6531 | eval "DEFAULT_$LINE" | |
6532 | else | |
6533 | no_cache=1 | |
6534 | fi | |
6535 | ||
6536 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6537 | |
247f5006 | 6538 | fi; |
10f2d63a VZ |
6539 | |
6540 | eval "$ac_cv_use_checklst" | |
6541 | if test "$no_cache" != 1; then | |
6542 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6543 | fi | |
6544 | ||
6545 | if test "$wxUSE_CHECKLST" = yes; then | |
247f5006 VZ |
6546 | echo "$as_me:$LINENO: result: yes" >&5 |
6547 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6548 | else |
247f5006 VZ |
6549 | echo "$as_me:$LINENO: result: no" >&5 |
6550 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6551 | fi |
10f2d63a | 6552 | |
247f5006 VZ |
6553 | |
6554 | echo "$as_me:$LINENO: checking for --enable-choice" >&5 | |
6555 | echo $ECHO_N "checking for --enable-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6556 | no_cache=0 |
6557 | # Check whether --enable-choice or --disable-choice was given. | |
6558 | if test "${enable_choice+set}" = set; then | |
6559 | enableval="$enable_choice" | |
247f5006 | 6560 | |
10f2d63a VZ |
6561 | if test "$enableval" = yes; then |
6562 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6563 | else | |
6564 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6565 | fi | |
247f5006 | 6566 | |
10f2d63a | 6567 | else |
247f5006 | 6568 | |
10f2d63a VZ |
6569 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6570 | if test "x$LINE" != x ; then | |
6571 | eval "DEFAULT_$LINE" | |
6572 | else | |
6573 | no_cache=1 | |
6574 | fi | |
6575 | ||
6576 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6577 | |
247f5006 | 6578 | fi; |
10f2d63a VZ |
6579 | |
6580 | eval "$ac_cv_use_choice" | |
6581 | if test "$no_cache" != 1; then | |
6582 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6583 | fi | |
6584 | ||
6585 | if test "$wxUSE_CHOICE" = yes; then | |
247f5006 VZ |
6586 | echo "$as_me:$LINENO: result: yes" >&5 |
6587 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6588 | else |
247f5006 VZ |
6589 | echo "$as_me:$LINENO: result: no" >&5 |
6590 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6591 | fi |
10f2d63a | 6592 | |
247f5006 VZ |
6593 | |
6594 | echo "$as_me:$LINENO: checking for --enable-combobox" >&5 | |
6595 | echo $ECHO_N "checking for --enable-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6596 | no_cache=0 |
6597 | # Check whether --enable-combobox or --disable-combobox was given. | |
6598 | if test "${enable_combobox+set}" = set; then | |
6599 | enableval="$enable_combobox" | |
247f5006 | 6600 | |
10f2d63a VZ |
6601 | if test "$enableval" = yes; then |
6602 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6603 | else | |
6604 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6605 | fi | |
247f5006 | 6606 | |
10f2d63a | 6607 | else |
247f5006 | 6608 | |
10f2d63a VZ |
6609 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6610 | if test "x$LINE" != x ; then | |
6611 | eval "DEFAULT_$LINE" | |
6612 | else | |
6613 | no_cache=1 | |
6614 | fi | |
6615 | ||
6616 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6617 | |
247f5006 | 6618 | fi; |
10f2d63a VZ |
6619 | |
6620 | eval "$ac_cv_use_combobox" | |
6621 | if test "$no_cache" != 1; then | |
6622 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6623 | fi | |
6624 | ||
6625 | if test "$wxUSE_COMBOBOX" = yes; then | |
247f5006 VZ |
6626 | echo "$as_me:$LINENO: result: yes" >&5 |
6627 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6628 | else |
247f5006 VZ |
6629 | echo "$as_me:$LINENO: result: no" >&5 |
6630 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6631 | fi |
10f2d63a | 6632 | |
247f5006 VZ |
6633 | |
6634 | echo "$as_me:$LINENO: checking for --enable-gauge" >&5 | |
6635 | echo $ECHO_N "checking for --enable-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6636 | no_cache=0 |
6637 | # Check whether --enable-gauge or --disable-gauge was given. | |
6638 | if test "${enable_gauge+set}" = set; then | |
6639 | enableval="$enable_gauge" | |
247f5006 | 6640 | |
10f2d63a VZ |
6641 | if test "$enableval" = yes; then |
6642 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6643 | else | |
6644 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6645 | fi | |
247f5006 | 6646 | |
10f2d63a | 6647 | else |
247f5006 | 6648 | |
10f2d63a VZ |
6649 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6650 | if test "x$LINE" != x ; then | |
6651 | eval "DEFAULT_$LINE" | |
6652 | else | |
6653 | no_cache=1 | |
6654 | fi | |
6655 | ||
6656 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 6657 | |
247f5006 | 6658 | fi; |
10f2d63a VZ |
6659 | |
6660 | eval "$ac_cv_use_gauge" | |
6661 | if test "$no_cache" != 1; then | |
6662 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6663 | fi | |
6664 | ||
6665 | if test "$wxUSE_GAUGE" = yes; then | |
247f5006 VZ |
6666 | echo "$as_me:$LINENO: result: yes" >&5 |
6667 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6668 | else |
247f5006 VZ |
6669 | echo "$as_me:$LINENO: result: no" >&5 |
6670 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6671 | fi |
10f2d63a | 6672 | |
247f5006 VZ |
6673 | |
6674 | echo "$as_me:$LINENO: checking for --enable-grid" >&5 | |
6675 | echo $ECHO_N "checking for --enable-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
6676 | no_cache=0 |
6677 | # Check whether --enable-grid or --disable-grid was given. | |
6678 | if test "${enable_grid+set}" = set; then | |
6679 | enableval="$enable_grid" | |
247f5006 | 6680 | |
10f2d63a VZ |
6681 | if test "$enableval" = yes; then |
6682 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6683 | else | |
6684 | ac_cv_use_grid='wxUSE_GRID=no' | |
6685 | fi | |
247f5006 | 6686 | |
10f2d63a | 6687 | else |
247f5006 | 6688 | |
10f2d63a VZ |
6689 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6690 | if test "x$LINE" != x ; then | |
6691 | eval "DEFAULT_$LINE" | |
6692 | else | |
6693 | no_cache=1 | |
6694 | fi | |
6695 | ||
6696 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 6697 | |
247f5006 | 6698 | fi; |
10f2d63a VZ |
6699 | |
6700 | eval "$ac_cv_use_grid" | |
6701 | if test "$no_cache" != 1; then | |
6702 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6703 | fi | |
6704 | ||
6705 | if test "$wxUSE_GRID" = yes; then | |
247f5006 VZ |
6706 | echo "$as_me:$LINENO: result: yes" >&5 |
6707 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6708 | else |
247f5006 VZ |
6709 | echo "$as_me:$LINENO: result: no" >&5 |
6710 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6711 | fi |
10f2d63a | 6712 | |
247f5006 VZ |
6713 | |
6714 | echo "$as_me:$LINENO: checking for --enable-newgrid" >&5 | |
6715 | echo $ECHO_N "checking for --enable-newgrid... $ECHO_C" >&6 | |
10f2d63a VZ |
6716 | no_cache=0 |
6717 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6718 | if test "${enable_newgrid+set}" = set; then | |
6719 | enableval="$enable_newgrid" | |
247f5006 | 6720 | |
10f2d63a VZ |
6721 | if test "$enableval" = yes; then |
6722 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6723 | else | |
6724 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6725 | fi | |
247f5006 | 6726 | |
10f2d63a | 6727 | else |
247f5006 | 6728 | |
10f2d63a VZ |
6729 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6730 | if test "x$LINE" != x ; then | |
6731 | eval "DEFAULT_$LINE" | |
6732 | else | |
6733 | no_cache=1 | |
6734 | fi | |
6735 | ||
6736 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
10f2d63a | 6737 | |
247f5006 | 6738 | fi; |
10f2d63a VZ |
6739 | |
6740 | eval "$ac_cv_use_newgrid" | |
6741 | if test "$no_cache" != 1; then | |
6742 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6743 | fi | |
6744 | ||
6745 | if test "$wxUSE_NEW_GRID" = yes; then | |
247f5006 VZ |
6746 | echo "$as_me:$LINENO: result: yes" >&5 |
6747 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6748 | else |
247f5006 VZ |
6749 | echo "$as_me:$LINENO: result: no" >&5 |
6750 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6751 | fi |
10f2d63a | 6752 | |
247f5006 VZ |
6753 | |
6754 | echo "$as_me:$LINENO: checking for --enable-imaglist" >&5 | |
6755 | echo $ECHO_N "checking for --enable-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
6756 | no_cache=0 |
6757 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6758 | if test "${enable_imaglist+set}" = set; then | |
6759 | enableval="$enable_imaglist" | |
247f5006 | 6760 | |
10f2d63a VZ |
6761 | if test "$enableval" = yes; then |
6762 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6763 | else | |
6764 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6765 | fi | |
247f5006 | 6766 | |
10f2d63a | 6767 | else |
247f5006 | 6768 | |
10f2d63a VZ |
6769 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6770 | if test "x$LINE" != x ; then | |
6771 | eval "DEFAULT_$LINE" | |
6772 | else | |
6773 | no_cache=1 | |
6774 | fi | |
6775 | ||
6776 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 6777 | |
247f5006 | 6778 | fi; |
10f2d63a VZ |
6779 | |
6780 | eval "$ac_cv_use_imaglist" | |
6781 | if test "$no_cache" != 1; then | |
6782 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6783 | fi | |
6784 | ||
6785 | if test "$wxUSE_IMAGLIST" = yes; then | |
247f5006 VZ |
6786 | echo "$as_me:$LINENO: result: yes" >&5 |
6787 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6788 | else |
247f5006 VZ |
6789 | echo "$as_me:$LINENO: result: no" >&5 |
6790 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6791 | fi |
10f2d63a | 6792 | |
247f5006 VZ |
6793 | |
6794 | echo "$as_me:$LINENO: checking for --enable-listbox" >&5 | |
6795 | echo $ECHO_N "checking for --enable-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6796 | no_cache=0 |
6797 | # Check whether --enable-listbox or --disable-listbox was given. | |
6798 | if test "${enable_listbox+set}" = set; then | |
6799 | enableval="$enable_listbox" | |
247f5006 | 6800 | |
10f2d63a VZ |
6801 | if test "$enableval" = yes; then |
6802 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6803 | else | |
6804 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6805 | fi | |
247f5006 | 6806 | |
10f2d63a | 6807 | else |
247f5006 | 6808 | |
10f2d63a VZ |
6809 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6810 | if test "x$LINE" != x ; then | |
6811 | eval "DEFAULT_$LINE" | |
6812 | else | |
6813 | no_cache=1 | |
6814 | fi | |
6815 | ||
6816 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 6817 | |
247f5006 | 6818 | fi; |
10f2d63a VZ |
6819 | |
6820 | eval "$ac_cv_use_listbox" | |
6821 | if test "$no_cache" != 1; then | |
6822 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6823 | fi | |
6824 | ||
6825 | if test "$wxUSE_LISTBOX" = yes; then | |
247f5006 VZ |
6826 | echo "$as_me:$LINENO: result: yes" >&5 |
6827 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6828 | else |
247f5006 VZ |
6829 | echo "$as_me:$LINENO: result: no" >&5 |
6830 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6831 | fi |
10f2d63a | 6832 | |
247f5006 VZ |
6833 | |
6834 | echo "$as_me:$LINENO: checking for --enable-listctrl" >&5 | |
6835 | echo $ECHO_N "checking for --enable-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
6836 | no_cache=0 |
6837 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6838 | if test "${enable_listctrl+set}" = set; then | |
6839 | enableval="$enable_listctrl" | |
247f5006 | 6840 | |
10f2d63a VZ |
6841 | if test "$enableval" = yes; then |
6842 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6843 | else | |
6844 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6845 | fi | |
247f5006 | 6846 | |
10f2d63a | 6847 | else |
247f5006 | 6848 | |
10f2d63a VZ |
6849 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6850 | if test "x$LINE" != x ; then | |
6851 | eval "DEFAULT_$LINE" | |
6852 | else | |
6853 | no_cache=1 | |
6854 | fi | |
6855 | ||
6856 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 6857 | |
247f5006 | 6858 | fi; |
10f2d63a VZ |
6859 | |
6860 | eval "$ac_cv_use_listctrl" | |
6861 | if test "$no_cache" != 1; then | |
6862 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6863 | fi | |
6864 | ||
6865 | if test "$wxUSE_LISTCTRL" = yes; then | |
247f5006 VZ |
6866 | echo "$as_me:$LINENO: result: yes" >&5 |
6867 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6868 | else |
247f5006 VZ |
6869 | echo "$as_me:$LINENO: result: no" >&5 |
6870 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6871 | fi |
10f2d63a | 6872 | |
247f5006 VZ |
6873 | |
6874 | echo "$as_me:$LINENO: checking for --enable-notebook" >&5 | |
6875 | echo $ECHO_N "checking for --enable-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
6876 | no_cache=0 |
6877 | # Check whether --enable-notebook or --disable-notebook was given. | |
6878 | if test "${enable_notebook+set}" = set; then | |
6879 | enableval="$enable_notebook" | |
247f5006 | 6880 | |
10f2d63a VZ |
6881 | if test "$enableval" = yes; then |
6882 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6883 | else | |
6884 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6885 | fi | |
247f5006 | 6886 | |
10f2d63a | 6887 | else |
247f5006 | 6888 | |
10f2d63a VZ |
6889 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6890 | if test "x$LINE" != x ; then | |
6891 | eval "DEFAULT_$LINE" | |
6892 | else | |
6893 | no_cache=1 | |
6894 | fi | |
6895 | ||
6896 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 6897 | |
247f5006 | 6898 | fi; |
10f2d63a VZ |
6899 | |
6900 | eval "$ac_cv_use_notebook" | |
6901 | if test "$no_cache" != 1; then | |
6902 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6903 | fi | |
6904 | ||
6905 | if test "$wxUSE_NOTEBOOK" = yes; then | |
247f5006 VZ |
6906 | echo "$as_me:$LINENO: result: yes" >&5 |
6907 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6908 | else |
247f5006 VZ |
6909 | echo "$as_me:$LINENO: result: no" >&5 |
6910 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6911 | fi |
10f2d63a | 6912 | |
247f5006 VZ |
6913 | |
6914 | echo "$as_me:$LINENO: checking for --enable-propsheet" >&5 | |
6915 | echo $ECHO_N "checking for --enable-propsheet... $ECHO_C" >&6 | |
24176f2c GD |
6916 | no_cache=0 |
6917 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6918 | if test "${enable_propsheet+set}" = set; then | |
6919 | enableval="$enable_propsheet" | |
247f5006 | 6920 | |
24176f2c GD |
6921 | if test "$enableval" = yes; then |
6922 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6923 | else | |
6924 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6925 | fi | |
247f5006 | 6926 | |
24176f2c | 6927 | else |
247f5006 | 6928 | |
24176f2c GD |
6929 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6930 | if test "x$LINE" != x ; then | |
6931 | eval "DEFAULT_$LINE" | |
6932 | else | |
6933 | no_cache=1 | |
6934 | fi | |
6935 | ||
6936 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
24176f2c | 6937 | |
247f5006 | 6938 | fi; |
24176f2c GD |
6939 | |
6940 | eval "$ac_cv_use_propsheet" | |
6941 | if test "$no_cache" != 1; then | |
6942 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6943 | fi | |
6944 | ||
6945 | if test "$wxUSE_PROPSHEET" = yes; then | |
247f5006 VZ |
6946 | echo "$as_me:$LINENO: result: yes" >&5 |
6947 | echo "${ECHO_T}yes" >&6 | |
24176f2c | 6948 | else |
247f5006 VZ |
6949 | echo "$as_me:$LINENO: result: no" >&5 |
6950 | echo "${ECHO_T}no" >&6 | |
24176f2c | 6951 | fi |
24176f2c | 6952 | |
247f5006 VZ |
6953 | |
6954 | echo "$as_me:$LINENO: checking for --enable-radiobox" >&5 | |
6955 | echo $ECHO_N "checking for --enable-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6956 | no_cache=0 |
6957 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6958 | if test "${enable_radiobox+set}" = set; then | |
6959 | enableval="$enable_radiobox" | |
247f5006 | 6960 | |
10f2d63a VZ |
6961 | if test "$enableval" = yes; then |
6962 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6963 | else | |
6964 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6965 | fi | |
247f5006 | 6966 | |
10f2d63a | 6967 | else |
247f5006 | 6968 | |
10f2d63a VZ |
6969 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6970 | if test "x$LINE" != x ; then | |
6971 | eval "DEFAULT_$LINE" | |
6972 | else | |
6973 | no_cache=1 | |
6974 | fi | |
6975 | ||
6976 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 6977 | |
247f5006 | 6978 | fi; |
10f2d63a VZ |
6979 | |
6980 | eval "$ac_cv_use_radiobox" | |
6981 | if test "$no_cache" != 1; then | |
6982 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6983 | fi | |
6984 | ||
6985 | if test "$wxUSE_RADIOBOX" = yes; then | |
247f5006 VZ |
6986 | echo "$as_me:$LINENO: result: yes" >&5 |
6987 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6988 | else |
247f5006 VZ |
6989 | echo "$as_me:$LINENO: result: no" >&5 |
6990 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6991 | fi |
10f2d63a | 6992 | |
247f5006 VZ |
6993 | |
6994 | echo "$as_me:$LINENO: checking for --enable-radiobtn" >&5 | |
6995 | echo $ECHO_N "checking for --enable-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
6996 | no_cache=0 |
6997 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6998 | if test "${enable_radiobtn+set}" = set; then | |
6999 | enableval="$enable_radiobtn" | |
247f5006 | 7000 | |
10f2d63a VZ |
7001 | if test "$enableval" = yes; then |
7002 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7003 | else | |
7004 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7005 | fi | |
247f5006 | 7006 | |
10f2d63a | 7007 | else |
247f5006 | 7008 | |
10f2d63a VZ |
7009 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7010 | if test "x$LINE" != x ; then | |
7011 | eval "DEFAULT_$LINE" | |
7012 | else | |
7013 | no_cache=1 | |
7014 | fi | |
7015 | ||
7016 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7017 | |
247f5006 | 7018 | fi; |
10f2d63a VZ |
7019 | |
7020 | eval "$ac_cv_use_radiobtn" | |
7021 | if test "$no_cache" != 1; then | |
7022 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7023 | fi | |
7024 | ||
7025 | if test "$wxUSE_RADIOBTN" = yes; then | |
247f5006 VZ |
7026 | echo "$as_me:$LINENO: result: yes" >&5 |
7027 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7028 | else |
247f5006 VZ |
7029 | echo "$as_me:$LINENO: result: no" >&5 |
7030 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7031 | fi |
10f2d63a | 7032 | |
247f5006 VZ |
7033 | |
7034 | echo "$as_me:$LINENO: checking for --enable-sash" >&5 | |
7035 | echo $ECHO_N "checking for --enable-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7036 | no_cache=0 |
7037 | # Check whether --enable-sash or --disable-sash was given. | |
7038 | if test "${enable_sash+set}" = set; then | |
7039 | enableval="$enable_sash" | |
247f5006 | 7040 | |
10f2d63a VZ |
7041 | if test "$enableval" = yes; then |
7042 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7043 | else | |
7044 | ac_cv_use_sash='wxUSE_SASH=no' | |
7045 | fi | |
247f5006 | 7046 | |
10f2d63a | 7047 | else |
247f5006 | 7048 | |
10f2d63a VZ |
7049 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7050 | if test "x$LINE" != x ; then | |
7051 | eval "DEFAULT_$LINE" | |
7052 | else | |
7053 | no_cache=1 | |
7054 | fi | |
7055 | ||
7056 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7057 | |
247f5006 | 7058 | fi; |
10f2d63a VZ |
7059 | |
7060 | eval "$ac_cv_use_sash" | |
7061 | if test "$no_cache" != 1; then | |
7062 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7063 | fi | |
7064 | ||
7065 | if test "$wxUSE_SASH" = yes; then | |
247f5006 VZ |
7066 | echo "$as_me:$LINENO: result: yes" >&5 |
7067 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7068 | else |
247f5006 VZ |
7069 | echo "$as_me:$LINENO: result: no" >&5 |
7070 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7071 | fi |
10f2d63a | 7072 | |
247f5006 VZ |
7073 | |
7074 | echo "$as_me:$LINENO: checking for --enable-scrollbar" >&5 | |
7075 | echo $ECHO_N "checking for --enable-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7076 | no_cache=0 |
7077 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7078 | if test "${enable_scrollbar+set}" = set; then | |
7079 | enableval="$enable_scrollbar" | |
247f5006 | 7080 | |
10f2d63a VZ |
7081 | if test "$enableval" = yes; then |
7082 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7083 | else | |
7084 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7085 | fi | |
247f5006 | 7086 | |
10f2d63a | 7087 | else |
247f5006 | 7088 | |
10f2d63a VZ |
7089 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7090 | if test "x$LINE" != x ; then | |
7091 | eval "DEFAULT_$LINE" | |
7092 | else | |
7093 | no_cache=1 | |
7094 | fi | |
7095 | ||
7096 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7097 | |
247f5006 | 7098 | fi; |
10f2d63a VZ |
7099 | |
7100 | eval "$ac_cv_use_scrollbar" | |
7101 | if test "$no_cache" != 1; then | |
7102 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7103 | fi | |
7104 | ||
7105 | if test "$wxUSE_SCROLLBAR" = yes; then | |
247f5006 VZ |
7106 | echo "$as_me:$LINENO: result: yes" >&5 |
7107 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7108 | else |
247f5006 VZ |
7109 | echo "$as_me:$LINENO: result: no" >&5 |
7110 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7111 | fi |
10f2d63a | 7112 | |
247f5006 VZ |
7113 | |
7114 | echo "$as_me:$LINENO: checking for --enable-slider" >&5 | |
7115 | echo $ECHO_N "checking for --enable-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7116 | no_cache=0 |
7117 | # Check whether --enable-slider or --disable-slider was given. | |
7118 | if test "${enable_slider+set}" = set; then | |
7119 | enableval="$enable_slider" | |
247f5006 | 7120 | |
10f2d63a VZ |
7121 | if test "$enableval" = yes; then |
7122 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7123 | else | |
7124 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7125 | fi | |
247f5006 | 7126 | |
10f2d63a | 7127 | else |
247f5006 | 7128 | |
10f2d63a VZ |
7129 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7130 | if test "x$LINE" != x ; then | |
7131 | eval "DEFAULT_$LINE" | |
7132 | else | |
7133 | no_cache=1 | |
7134 | fi | |
7135 | ||
7136 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7137 | |
247f5006 | 7138 | fi; |
10f2d63a VZ |
7139 | |
7140 | eval "$ac_cv_use_slider" | |
7141 | if test "$no_cache" != 1; then | |
7142 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7143 | fi | |
7144 | ||
7145 | if test "$wxUSE_SLIDER" = yes; then | |
247f5006 VZ |
7146 | echo "$as_me:$LINENO: result: yes" >&5 |
7147 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7148 | else |
247f5006 VZ |
7149 | echo "$as_me:$LINENO: result: no" >&5 |
7150 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7151 | fi |
10f2d63a | 7152 | |
247f5006 VZ |
7153 | |
7154 | echo "$as_me:$LINENO: checking for --enable-spinbtn" >&5 | |
7155 | echo $ECHO_N "checking for --enable-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7156 | no_cache=0 |
7157 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7158 | if test "${enable_spinbtn+set}" = set; then | |
7159 | enableval="$enable_spinbtn" | |
247f5006 | 7160 | |
10f2d63a VZ |
7161 | if test "$enableval" = yes; then |
7162 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7163 | else | |
7164 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7165 | fi | |
247f5006 | 7166 | |
10f2d63a | 7167 | else |
247f5006 | 7168 | |
10f2d63a VZ |
7169 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7170 | if test "x$LINE" != x ; then | |
7171 | eval "DEFAULT_$LINE" | |
7172 | else | |
7173 | no_cache=1 | |
7174 | fi | |
7175 | ||
7176 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7177 | |
247f5006 | 7178 | fi; |
10f2d63a VZ |
7179 | |
7180 | eval "$ac_cv_use_spinbtn" | |
7181 | if test "$no_cache" != 1; then | |
7182 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7183 | fi | |
7184 | ||
7185 | if test "$wxUSE_SPINBTN" = yes; then | |
247f5006 VZ |
7186 | echo "$as_me:$LINENO: result: yes" >&5 |
7187 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7188 | else |
247f5006 VZ |
7189 | echo "$as_me:$LINENO: result: no" >&5 |
7190 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7191 | fi |
10f2d63a | 7192 | |
247f5006 VZ |
7193 | |
7194 | echo "$as_me:$LINENO: checking for --enable-spinctrl" >&5 | |
7195 | echo $ECHO_N "checking for --enable-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7196 | no_cache=0 |
7197 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7198 | if test "${enable_spinctrl+set}" = set; then | |
7199 | enableval="$enable_spinctrl" | |
247f5006 | 7200 | |
56cfaa52 RR |
7201 | if test "$enableval" = yes; then |
7202 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7203 | else | |
7204 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7205 | fi | |
247f5006 | 7206 | |
56cfaa52 | 7207 | else |
247f5006 | 7208 | |
56cfaa52 RR |
7209 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7210 | if test "x$LINE" != x ; then | |
7211 | eval "DEFAULT_$LINE" | |
7212 | else | |
7213 | no_cache=1 | |
7214 | fi | |
7215 | ||
7216 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7217 | |
247f5006 | 7218 | fi; |
56cfaa52 RR |
7219 | |
7220 | eval "$ac_cv_use_spinctrl" | |
7221 | if test "$no_cache" != 1; then | |
7222 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7223 | fi | |
7224 | ||
7225 | if test "$wxUSE_SPINCTRL" = yes; then | |
247f5006 VZ |
7226 | echo "$as_me:$LINENO: result: yes" >&5 |
7227 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7228 | else |
247f5006 VZ |
7229 | echo "$as_me:$LINENO: result: no" >&5 |
7230 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7231 | fi |
56cfaa52 | 7232 | |
247f5006 VZ |
7233 | |
7234 | echo "$as_me:$LINENO: checking for --enable-splitter" >&5 | |
7235 | echo $ECHO_N "checking for --enable-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7236 | no_cache=0 |
7237 | # Check whether --enable-splitter or --disable-splitter was given. | |
7238 | if test "${enable_splitter+set}" = set; then | |
7239 | enableval="$enable_splitter" | |
247f5006 | 7240 | |
10f2d63a VZ |
7241 | if test "$enableval" = yes; then |
7242 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7243 | else | |
7244 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7245 | fi | |
247f5006 | 7246 | |
10f2d63a | 7247 | else |
247f5006 | 7248 | |
10f2d63a VZ |
7249 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7250 | if test "x$LINE" != x ; then | |
7251 | eval "DEFAULT_$LINE" | |
7252 | else | |
7253 | no_cache=1 | |
7254 | fi | |
7255 | ||
7256 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7257 | |
247f5006 | 7258 | fi; |
10f2d63a VZ |
7259 | |
7260 | eval "$ac_cv_use_splitter" | |
7261 | if test "$no_cache" != 1; then | |
7262 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7263 | fi | |
7264 | ||
7265 | if test "$wxUSE_SPLITTER" = yes; then | |
247f5006 VZ |
7266 | echo "$as_me:$LINENO: result: yes" >&5 |
7267 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7268 | else |
247f5006 VZ |
7269 | echo "$as_me:$LINENO: result: no" >&5 |
7270 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7271 | fi |
10f2d63a | 7272 | |
247f5006 VZ |
7273 | |
7274 | echo "$as_me:$LINENO: checking for --enable-statbmp" >&5 | |
7275 | echo $ECHO_N "checking for --enable-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7276 | no_cache=0 |
7277 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7278 | if test "${enable_statbmp+set}" = set; then | |
7279 | enableval="$enable_statbmp" | |
247f5006 | 7280 | |
10f2d63a VZ |
7281 | if test "$enableval" = yes; then |
7282 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7283 | else | |
7284 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7285 | fi | |
247f5006 | 7286 | |
10f2d63a | 7287 | else |
247f5006 | 7288 | |
10f2d63a VZ |
7289 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7290 | if test "x$LINE" != x ; then | |
7291 | eval "DEFAULT_$LINE" | |
7292 | else | |
7293 | no_cache=1 | |
7294 | fi | |
7295 | ||
7296 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7297 | |
247f5006 | 7298 | fi; |
10f2d63a VZ |
7299 | |
7300 | eval "$ac_cv_use_statbmp" | |
7301 | if test "$no_cache" != 1; then | |
7302 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7303 | fi | |
7304 | ||
7305 | if test "$wxUSE_STATBMP" = yes; then | |
247f5006 VZ |
7306 | echo "$as_me:$LINENO: result: yes" >&5 |
7307 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7308 | else |
247f5006 VZ |
7309 | echo "$as_me:$LINENO: result: no" >&5 |
7310 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7311 | fi |
10f2d63a | 7312 | |
247f5006 VZ |
7313 | |
7314 | echo "$as_me:$LINENO: checking for --enable-statbox" >&5 | |
7315 | echo $ECHO_N "checking for --enable-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7316 | no_cache=0 |
7317 | # Check whether --enable-statbox or --disable-statbox was given. | |
7318 | if test "${enable_statbox+set}" = set; then | |
7319 | enableval="$enable_statbox" | |
247f5006 | 7320 | |
10f2d63a VZ |
7321 | if test "$enableval" = yes; then |
7322 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7323 | else | |
7324 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7325 | fi | |
247f5006 | 7326 | |
10f2d63a | 7327 | else |
247f5006 | 7328 | |
10f2d63a VZ |
7329 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7330 | if test "x$LINE" != x ; then | |
7331 | eval "DEFAULT_$LINE" | |
7332 | else | |
7333 | no_cache=1 | |
7334 | fi | |
7335 | ||
7336 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7337 | |
247f5006 | 7338 | fi; |
10f2d63a VZ |
7339 | |
7340 | eval "$ac_cv_use_statbox" | |
7341 | if test "$no_cache" != 1; then | |
7342 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7343 | fi | |
7344 | ||
7345 | if test "$wxUSE_STATBOX" = yes; then | |
247f5006 VZ |
7346 | echo "$as_me:$LINENO: result: yes" >&5 |
7347 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7348 | else |
247f5006 VZ |
7349 | echo "$as_me:$LINENO: result: no" >&5 |
7350 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7351 | fi |
10f2d63a | 7352 | |
247f5006 VZ |
7353 | |
7354 | echo "$as_me:$LINENO: checking for --enable-statline" >&5 | |
7355 | echo $ECHO_N "checking for --enable-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7356 | no_cache=0 |
7357 | # Check whether --enable-statline or --disable-statline was given. | |
7358 | if test "${enable_statline+set}" = set; then | |
7359 | enableval="$enable_statline" | |
247f5006 | 7360 | |
10f2d63a VZ |
7361 | if test "$enableval" = yes; then |
7362 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7363 | else | |
7364 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7365 | fi | |
247f5006 | 7366 | |
10f2d63a | 7367 | else |
247f5006 | 7368 | |
10f2d63a VZ |
7369 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7370 | if test "x$LINE" != x ; then | |
7371 | eval "DEFAULT_$LINE" | |
7372 | else | |
7373 | no_cache=1 | |
7374 | fi | |
7375 | ||
7376 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7377 | |
247f5006 | 7378 | fi; |
10f2d63a VZ |
7379 | |
7380 | eval "$ac_cv_use_statline" | |
7381 | if test "$no_cache" != 1; then | |
7382 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7383 | fi | |
7384 | ||
7385 | if test "$wxUSE_STATLINE" = yes; then | |
247f5006 VZ |
7386 | echo "$as_me:$LINENO: result: yes" >&5 |
7387 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7388 | else |
247f5006 VZ |
7389 | echo "$as_me:$LINENO: result: no" >&5 |
7390 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7391 | fi |
10f2d63a | 7392 | |
247f5006 VZ |
7393 | |
7394 | echo "$as_me:$LINENO: checking for --enable-stattext" >&5 | |
7395 | echo $ECHO_N "checking for --enable-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7396 | no_cache=0 |
7397 | # Check whether --enable-stattext or --disable-stattext was given. | |
7398 | if test "${enable_stattext+set}" = set; then | |
7399 | enableval="$enable_stattext" | |
247f5006 | 7400 | |
1e6feb95 VZ |
7401 | if test "$enableval" = yes; then |
7402 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7403 | else | |
7404 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7405 | fi | |
247f5006 | 7406 | |
1e6feb95 | 7407 | else |
247f5006 | 7408 | |
1e6feb95 VZ |
7409 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7410 | if test "x$LINE" != x ; then | |
7411 | eval "DEFAULT_$LINE" | |
7412 | else | |
7413 | no_cache=1 | |
7414 | fi | |
7415 | ||
7416 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7417 | |
247f5006 | 7418 | fi; |
1e6feb95 VZ |
7419 | |
7420 | eval "$ac_cv_use_stattext" | |
7421 | if test "$no_cache" != 1; then | |
7422 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7423 | fi | |
7424 | ||
7425 | if test "$wxUSE_STATTEXT" = yes; then | |
247f5006 VZ |
7426 | echo "$as_me:$LINENO: result: yes" >&5 |
7427 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7428 | else |
247f5006 VZ |
7429 | echo "$as_me:$LINENO: result: no" >&5 |
7430 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7431 | fi |
1e6feb95 | 7432 | |
247f5006 VZ |
7433 | |
7434 | echo "$as_me:$LINENO: checking for --enable-statusbar" >&5 | |
7435 | echo $ECHO_N "checking for --enable-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7436 | no_cache=0 |
7437 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7438 | if test "${enable_statusbar+set}" = set; then | |
7439 | enableval="$enable_statusbar" | |
247f5006 | 7440 | |
10f2d63a VZ |
7441 | if test "$enableval" = yes; then |
7442 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7443 | else | |
7444 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7445 | fi | |
247f5006 | 7446 | |
10f2d63a | 7447 | else |
247f5006 | 7448 | |
10f2d63a VZ |
7449 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7450 | if test "x$LINE" != x ; then | |
7451 | eval "DEFAULT_$LINE" | |
7452 | else | |
7453 | no_cache=1 | |
7454 | fi | |
7455 | ||
7456 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7457 | |
247f5006 | 7458 | fi; |
10f2d63a VZ |
7459 | |
7460 | eval "$ac_cv_use_statusbar" | |
7461 | if test "$no_cache" != 1; then | |
7462 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7463 | fi | |
7464 | ||
7465 | if test "$wxUSE_STATUSBAR" = yes; then | |
247f5006 VZ |
7466 | echo "$as_me:$LINENO: result: yes" >&5 |
7467 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7468 | else |
247f5006 VZ |
7469 | echo "$as_me:$LINENO: result: no" >&5 |
7470 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7471 | fi |
10f2d63a | 7472 | |
247f5006 VZ |
7473 | |
7474 | echo "$as_me:$LINENO: checking for --enable-tabdialog" >&5 | |
7475 | echo $ECHO_N "checking for --enable-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7476 | no_cache=0 |
7477 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7478 | if test "${enable_tabdialog+set}" = set; then | |
7479 | enableval="$enable_tabdialog" | |
247f5006 | 7480 | |
10f2d63a VZ |
7481 | if test "$enableval" = yes; then |
7482 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7483 | else | |
7484 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7485 | fi | |
247f5006 | 7486 | |
10f2d63a | 7487 | else |
247f5006 | 7488 | |
10f2d63a VZ |
7489 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7490 | if test "x$LINE" != x ; then | |
7491 | eval "DEFAULT_$LINE" | |
7492 | else | |
7493 | no_cache=1 | |
7494 | fi | |
7495 | ||
7496 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7497 | |
247f5006 | 7498 | fi; |
10f2d63a VZ |
7499 | |
7500 | eval "$ac_cv_use_tabdialog" | |
7501 | if test "$no_cache" != 1; then | |
7502 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7503 | fi | |
7504 | ||
7505 | if test "$wxUSE_TABDIALOG" = yes; then | |
247f5006 VZ |
7506 | echo "$as_me:$LINENO: result: yes" >&5 |
7507 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7508 | else |
247f5006 VZ |
7509 | echo "$as_me:$LINENO: result: no" >&5 |
7510 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7511 | fi |
10f2d63a | 7512 | |
247f5006 VZ |
7513 | |
7514 | echo "$as_me:$LINENO: checking for --enable-textctrl" >&5 | |
7515 | echo $ECHO_N "checking for --enable-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7516 | no_cache=0 |
7517 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7518 | if test "${enable_textctrl+set}" = set; then | |
7519 | enableval="$enable_textctrl" | |
247f5006 | 7520 | |
1e6feb95 VZ |
7521 | if test "$enableval" = yes; then |
7522 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7523 | else | |
7524 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7525 | fi | |
247f5006 | 7526 | |
1e6feb95 | 7527 | else |
247f5006 | 7528 | |
1e6feb95 VZ |
7529 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7530 | if test "x$LINE" != x ; then | |
7531 | eval "DEFAULT_$LINE" | |
7532 | else | |
7533 | no_cache=1 | |
7534 | fi | |
7535 | ||
7536 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7537 | |
247f5006 | 7538 | fi; |
1e6feb95 VZ |
7539 | |
7540 | eval "$ac_cv_use_textctrl" | |
7541 | if test "$no_cache" != 1; then | |
7542 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7543 | fi | |
7544 | ||
7545 | if test "$wxUSE_TEXTCTRL" = yes; then | |
247f5006 VZ |
7546 | echo "$as_me:$LINENO: result: yes" >&5 |
7547 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7548 | else |
247f5006 VZ |
7549 | echo "$as_me:$LINENO: result: no" >&5 |
7550 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7551 | fi |
1e6feb95 | 7552 | |
247f5006 VZ |
7553 | |
7554 | echo "$as_me:$LINENO: checking for --enable-togglebtn" >&5 | |
7555 | echo $ECHO_N "checking for --enable-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7556 | no_cache=0 |
7557 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7558 | if test "${enable_togglebtn+set}" = set; then | |
7559 | enableval="$enable_togglebtn" | |
247f5006 | 7560 | |
1db8dc4a VZ |
7561 | if test "$enableval" = yes; then |
7562 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7563 | else | |
7564 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7565 | fi | |
247f5006 | 7566 | |
1db8dc4a | 7567 | else |
247f5006 | 7568 | |
1db8dc4a VZ |
7569 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7570 | if test "x$LINE" != x ; then | |
7571 | eval "DEFAULT_$LINE" | |
7572 | else | |
7573 | no_cache=1 | |
7574 | fi | |
7575 | ||
7576 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7577 | |
247f5006 | 7578 | fi; |
1db8dc4a VZ |
7579 | |
7580 | eval "$ac_cv_use_togglebtn" | |
7581 | if test "$no_cache" != 1; then | |
7582 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7583 | fi | |
7584 | ||
7585 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
247f5006 VZ |
7586 | echo "$as_me:$LINENO: result: yes" >&5 |
7587 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7588 | else |
247f5006 VZ |
7589 | echo "$as_me:$LINENO: result: no" >&5 |
7590 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7591 | fi |
1db8dc4a | 7592 | |
247f5006 VZ |
7593 | |
7594 | echo "$as_me:$LINENO: checking for --enable-toolbar" >&5 | |
7595 | echo $ECHO_N "checking for --enable-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7596 | no_cache=0 |
7597 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7598 | if test "${enable_toolbar+set}" = set; then | |
7599 | enableval="$enable_toolbar" | |
247f5006 | 7600 | |
10f2d63a VZ |
7601 | if test "$enableval" = yes; then |
7602 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7603 | else | |
7604 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7605 | fi | |
247f5006 | 7606 | |
10f2d63a | 7607 | else |
247f5006 | 7608 | |
10f2d63a VZ |
7609 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7610 | if test "x$LINE" != x ; then | |
7611 | eval "DEFAULT_$LINE" | |
7612 | else | |
7613 | no_cache=1 | |
7614 | fi | |
7615 | ||
7616 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7617 | |
247f5006 | 7618 | fi; |
10f2d63a VZ |
7619 | |
7620 | eval "$ac_cv_use_toolbar" | |
7621 | if test "$no_cache" != 1; then | |
7622 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7623 | fi | |
7624 | ||
7625 | if test "$wxUSE_TOOLBAR" = yes; then | |
247f5006 VZ |
7626 | echo "$as_me:$LINENO: result: yes" >&5 |
7627 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7628 | else |
247f5006 VZ |
7629 | echo "$as_me:$LINENO: result: no" >&5 |
7630 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7631 | fi |
10f2d63a | 7632 | |
247f5006 VZ |
7633 | |
7634 | echo "$as_me:$LINENO: checking for --enable-tbarnative" >&5 | |
7635 | echo $ECHO_N "checking for --enable-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7636 | no_cache=0 |
7637 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7638 | if test "${enable_tbarnative+set}" = set; then | |
7639 | enableval="$enable_tbarnative" | |
247f5006 | 7640 | |
360d6699 VZ |
7641 | if test "$enableval" = yes; then |
7642 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7643 | else | |
7644 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7645 | fi | |
247f5006 | 7646 | |
360d6699 | 7647 | else |
247f5006 | 7648 | |
360d6699 VZ |
7649 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${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_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7657 | |
247f5006 | 7658 | fi; |
360d6699 VZ |
7659 | |
7660 | eval "$ac_cv_use_tbarnative" | |
7661 | if test "$no_cache" != 1; then | |
7662 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7663 | fi | |
7664 | ||
7665 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
247f5006 VZ |
7666 | echo "$as_me:$LINENO: result: yes" >&5 |
7667 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7668 | else |
247f5006 VZ |
7669 | echo "$as_me:$LINENO: result: no" >&5 |
7670 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7671 | fi |
360d6699 | 7672 | |
247f5006 VZ |
7673 | |
7674 | echo "$as_me:$LINENO: checking for --enable-tbarsmpl" >&5 | |
7675 | echo $ECHO_N "checking for --enable-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
7676 | no_cache=0 |
7677 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7678 | if test "${enable_tbarsmpl+set}" = set; then | |
7679 | enableval="$enable_tbarsmpl" | |
247f5006 | 7680 | |
360d6699 VZ |
7681 | if test "$enableval" = yes; then |
7682 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7683 | else | |
7684 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7685 | fi | |
247f5006 | 7686 | |
360d6699 | 7687 | else |
247f5006 | 7688 | |
360d6699 VZ |
7689 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7690 | if test "x$LINE" != x ; then | |
7691 | eval "DEFAULT_$LINE" | |
7692 | else | |
7693 | no_cache=1 | |
7694 | fi | |
7695 | ||
7696 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 7697 | |
247f5006 | 7698 | fi; |
360d6699 VZ |
7699 | |
7700 | eval "$ac_cv_use_tbarsmpl" | |
7701 | if test "$no_cache" != 1; then | |
7702 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7703 | fi | |
7704 | ||
7705 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
247f5006 VZ |
7706 | echo "$as_me:$LINENO: result: yes" >&5 |
7707 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7708 | else |
247f5006 VZ |
7709 | echo "$as_me:$LINENO: result: no" >&5 |
7710 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7711 | fi |
360d6699 | 7712 | |
247f5006 VZ |
7713 | |
7714 | echo "$as_me:$LINENO: checking for --enable-treectrl" >&5 | |
7715 | echo $ECHO_N "checking for --enable-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7716 | no_cache=0 |
7717 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7718 | if test "${enable_treectrl+set}" = set; then | |
7719 | enableval="$enable_treectrl" | |
247f5006 | 7720 | |
10f2d63a VZ |
7721 | if test "$enableval" = yes; then |
7722 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7723 | else | |
7724 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7725 | fi | |
247f5006 | 7726 | |
10f2d63a | 7727 | else |
247f5006 | 7728 | |
10f2d63a VZ |
7729 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7730 | if test "x$LINE" != x ; then | |
7731 | eval "DEFAULT_$LINE" | |
7732 | else | |
7733 | no_cache=1 | |
7734 | fi | |
7735 | ||
7736 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 7737 | |
247f5006 | 7738 | fi; |
10f2d63a | 7739 | |
1e6feb95 VZ |
7740 | eval "$ac_cv_use_treectrl" |
7741 | if test "$no_cache" != 1; then | |
7742 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7743 | fi | |
7744 | ||
7745 | if test "$wxUSE_TREECTRL" = yes; then | |
247f5006 VZ |
7746 | echo "$as_me:$LINENO: result: yes" >&5 |
7747 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7748 | else |
247f5006 VZ |
7749 | echo "$as_me:$LINENO: result: no" >&5 |
7750 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7751 | fi |
1e6feb95 | 7752 | |
247f5006 VZ |
7753 | |
7754 | echo "$as_me:$LINENO: checking for --enable-tipwindow" >&5 | |
7755 | echo $ECHO_N "checking for --enable-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
7756 | no_cache=0 |
7757 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7758 | if test "${enable_tipwindow+set}" = set; then | |
7759 | enableval="$enable_tipwindow" | |
247f5006 | 7760 | |
9926e4a4 VZ |
7761 | if test "$enableval" = yes; then |
7762 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7763 | else | |
7764 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7765 | fi | |
247f5006 | 7766 | |
9926e4a4 | 7767 | else |
247f5006 | 7768 | |
9926e4a4 VZ |
7769 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7770 | if test "x$LINE" != x ; then | |
7771 | eval "DEFAULT_$LINE" | |
7772 | else | |
7773 | no_cache=1 | |
7774 | fi | |
7775 | ||
7776 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 7777 | |
247f5006 | 7778 | fi; |
9926e4a4 VZ |
7779 | |
7780 | eval "$ac_cv_use_tipwindow" | |
7781 | if test "$no_cache" != 1; then | |
7782 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7783 | fi | |
7784 | ||
7785 | if test "$wxUSE_TIPWINDOW" = yes; then | |
247f5006 VZ |
7786 | echo "$as_me:$LINENO: result: yes" >&5 |
7787 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 7788 | else |
247f5006 VZ |
7789 | echo "$as_me:$LINENO: result: no" >&5 |
7790 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 7791 | fi |
9926e4a4 | 7792 | |
247f5006 VZ |
7793 | |
7794 | echo "$as_me:$LINENO: checking for --enable-popupwin" >&5 | |
7795 | echo $ECHO_N "checking for --enable-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
7796 | no_cache=0 |
7797 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7798 | if test "${enable_popupwin+set}" = set; then | |
7799 | enableval="$enable_popupwin" | |
247f5006 | 7800 | |
9f41d601 RR |
7801 | if test "$enableval" = yes; then |
7802 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7803 | else | |
7804 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7805 | fi | |
247f5006 | 7806 | |
9f41d601 | 7807 | else |
247f5006 | 7808 | |
9f41d601 RR |
7809 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7810 | if test "x$LINE" != x ; then | |
7811 | eval "DEFAULT_$LINE" | |
7812 | else | |
7813 | no_cache=1 | |
7814 | fi | |
7815 | ||
7816 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 7817 | |
247f5006 | 7818 | fi; |
9f41d601 RR |
7819 | |
7820 | eval "$ac_cv_use_popupwin" | |
7821 | if test "$no_cache" != 1; then | |
7822 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7823 | fi | |
7824 | ||
7825 | if test "$wxUSE_POPUPWIN" = yes; then | |
247f5006 VZ |
7826 | echo "$as_me:$LINENO: result: yes" >&5 |
7827 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 7828 | else |
247f5006 VZ |
7829 | echo "$as_me:$LINENO: result: no" >&5 |
7830 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 7831 | fi |
52127426 | 7832 | |
8284b0c5 MB |
7833 | |
7834 | ||
247f5006 VZ |
7835 | |
7836 | echo "$as_me:$LINENO: checking for --enable-commondlg" >&5 | |
7837 | echo $ECHO_N "checking for --enable-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
7838 | no_cache=0 |
7839 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7840 | if test "${enable_commondlg+set}" = set; then | |
7841 | enableval="$enable_commondlg" | |
247f5006 | 7842 | |
1e6feb95 VZ |
7843 | if test "$enableval" = yes; then |
7844 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7845 | else | |
7846 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7847 | fi | |
247f5006 | 7848 | |
1e6feb95 | 7849 | else |
247f5006 | 7850 | |
1e6feb95 VZ |
7851 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7852 | if test "x$LINE" != x ; then | |
7853 | eval "DEFAULT_$LINE" | |
7854 | else | |
7855 | no_cache=1 | |
7856 | fi | |
7857 | ||
7858 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 7859 | |
247f5006 | 7860 | fi; |
1e6feb95 VZ |
7861 | |
7862 | eval "$ac_cv_use_commondlg" | |
7863 | if test "$no_cache" != 1; then | |
7864 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7865 | fi | |
7866 | ||
7867 | if test "$wxUSE_COMMONDLGS" = yes; then | |
247f5006 VZ |
7868 | echo "$as_me:$LINENO: result: yes" >&5 |
7869 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7870 | else |
247f5006 VZ |
7871 | echo "$as_me:$LINENO: result: no" >&5 |
7872 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7873 | fi |
1e6feb95 | 7874 | |
247f5006 VZ |
7875 | |
7876 | echo "$as_me:$LINENO: checking for --enable-choicedlg" >&5 | |
7877 | echo $ECHO_N "checking for --enable-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
7878 | no_cache=0 |
7879 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7880 | if test "${enable_choicedlg+set}" = set; then | |
7881 | enableval="$enable_choicedlg" | |
247f5006 | 7882 | |
1e6feb95 VZ |
7883 | if test "$enableval" = yes; then |
7884 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7885 | else | |
7886 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7887 | fi | |
247f5006 | 7888 | |
1e6feb95 | 7889 | else |
247f5006 | 7890 | |
1e6feb95 VZ |
7891 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7892 | if test "x$LINE" != x ; then | |
7893 | eval "DEFAULT_$LINE" | |
7894 | else | |
7895 | no_cache=1 | |
7896 | fi | |
7897 | ||
7898 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 7899 | |
247f5006 | 7900 | fi; |
1e6feb95 VZ |
7901 | |
7902 | eval "$ac_cv_use_choicedlg" | |
7903 | if test "$no_cache" != 1; then | |
7904 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7905 | fi | |
7906 | ||
7907 | if test "$wxUSE_CHOICEDLG" = yes; then | |
247f5006 VZ |
7908 | echo "$as_me:$LINENO: result: yes" >&5 |
7909 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7910 | else |
247f5006 VZ |
7911 | echo "$as_me:$LINENO: result: no" >&5 |
7912 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7913 | fi |
1e6feb95 | 7914 | |
247f5006 VZ |
7915 | |
7916 | echo "$as_me:$LINENO: checking for --enable-coldlg" >&5 | |
7917 | echo $ECHO_N "checking for --enable-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
7918 | no_cache=0 |
7919 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7920 | if test "${enable_coldlg+set}" = set; then | |
7921 | enableval="$enable_coldlg" | |
247f5006 | 7922 | |
1e6feb95 VZ |
7923 | if test "$enableval" = yes; then |
7924 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7925 | else | |
7926 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7927 | fi | |
247f5006 | 7928 | |
1e6feb95 | 7929 | else |
247f5006 | 7930 | |
1e6feb95 VZ |
7931 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7932 | if test "x$LINE" != x ; then | |
7933 | eval "DEFAULT_$LINE" | |
7934 | else | |
7935 | no_cache=1 | |
7936 | fi | |
7937 | ||
7938 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 7939 | |
247f5006 | 7940 | fi; |
1e6feb95 VZ |
7941 | |
7942 | eval "$ac_cv_use_coldlg" | |
7943 | if test "$no_cache" != 1; then | |
7944 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7945 | fi | |
7946 | ||
7947 | if test "$wxUSE_COLOURDLG" = yes; then | |
247f5006 VZ |
7948 | echo "$as_me:$LINENO: result: yes" >&5 |
7949 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7950 | else |
247f5006 VZ |
7951 | echo "$as_me:$LINENO: result: no" >&5 |
7952 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7953 | fi |
1e6feb95 | 7954 | |
247f5006 VZ |
7955 | |
7956 | echo "$as_me:$LINENO: checking for --enable-filedlg" >&5 | |
7957 | echo $ECHO_N "checking for --enable-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
7958 | no_cache=0 |
7959 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7960 | if test "${enable_filedlg+set}" = set; then | |
7961 | enableval="$enable_filedlg" | |
247f5006 | 7962 | |
1e6feb95 VZ |
7963 | if test "$enableval" = yes; then |
7964 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7965 | else | |
7966 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7967 | fi | |
247f5006 | 7968 | |
1e6feb95 | 7969 | else |
247f5006 | 7970 | |
1e6feb95 VZ |
7971 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7972 | if test "x$LINE" != x ; then | |
7973 | eval "DEFAULT_$LINE" | |
7974 | else | |
7975 | no_cache=1 | |
7976 | fi | |
7977 | ||
7978 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 7979 | |
247f5006 | 7980 | fi; |
1e6feb95 VZ |
7981 | |
7982 | eval "$ac_cv_use_filedlg" | |
7983 | if test "$no_cache" != 1; then | |
7984 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7985 | fi | |
7986 | ||
7987 | if test "$wxUSE_FILEDLG" = yes; then | |
247f5006 VZ |
7988 | echo "$as_me:$LINENO: result: yes" >&5 |
7989 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7990 | else |
247f5006 VZ |
7991 | echo "$as_me:$LINENO: result: no" >&5 |
7992 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7993 | fi |
1e6feb95 | 7994 | |
247f5006 VZ |
7995 | |
7996 | echo "$as_me:$LINENO: checking for --enable-finddlg" >&5 | |
7997 | echo $ECHO_N "checking for --enable-finddlg... $ECHO_C" >&6 | |
8db37e06 | 7998 | no_cache=0 |
69d27ff7 MB |
7999 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8000 | if test "${enable_finddlg+set}" = set; then | |
8001 | enableval="$enable_finddlg" | |
247f5006 | 8002 | |
8db37e06 | 8003 | if test "$enableval" = yes; then |
69d27ff7 | 8004 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8005 | else |
69d27ff7 | 8006 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8007 | fi |
247f5006 | 8008 | |
8db37e06 | 8009 | else |
247f5006 | 8010 | |
8db37e06 VZ |
8011 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8012 | if test "x$LINE" != x ; then | |
8013 | eval "DEFAULT_$LINE" | |
8014 | else | |
8015 | no_cache=1 | |
8016 | fi | |
8017 | ||
69d27ff7 | 8018 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8019 | |
247f5006 | 8020 | fi; |
8db37e06 | 8021 | |
69d27ff7 | 8022 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8023 | if test "$no_cache" != 1; then |
69d27ff7 | 8024 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8025 | fi |
8026 | ||
8027 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
247f5006 VZ |
8028 | echo "$as_me:$LINENO: result: yes" >&5 |
8029 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8030 | else |
247f5006 VZ |
8031 | echo "$as_me:$LINENO: result: no" >&5 |
8032 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8033 | fi |
8db37e06 | 8034 | |
247f5006 VZ |
8035 | |
8036 | echo "$as_me:$LINENO: checking for --enable-fontdlg" >&5 | |
8037 | echo $ECHO_N "checking for --enable-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8038 | no_cache=0 |
8039 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8040 | if test "${enable_fontdlg+set}" = set; then | |
8041 | enableval="$enable_fontdlg" | |
247f5006 | 8042 | |
1e6feb95 VZ |
8043 | if test "$enableval" = yes; then |
8044 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8045 | else | |
8046 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8047 | fi | |
247f5006 | 8048 | |
1e6feb95 | 8049 | else |
247f5006 | 8050 | |
1e6feb95 VZ |
8051 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8052 | if test "x$LINE" != x ; then | |
8053 | eval "DEFAULT_$LINE" | |
8054 | else | |
8055 | no_cache=1 | |
8056 | fi | |
8057 | ||
8058 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8059 | |
247f5006 | 8060 | fi; |
1e6feb95 VZ |
8061 | |
8062 | eval "$ac_cv_use_fontdlg" | |
8063 | if test "$no_cache" != 1; then | |
8064 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8065 | fi | |
8066 | ||
8067 | if test "$wxUSE_FONTDLG" = yes; then | |
247f5006 VZ |
8068 | echo "$as_me:$LINENO: result: yes" >&5 |
8069 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8070 | else |
247f5006 VZ |
8071 | echo "$as_me:$LINENO: result: no" >&5 |
8072 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8073 | fi |
1e6feb95 | 8074 | |
247f5006 VZ |
8075 | |
8076 | echo "$as_me:$LINENO: checking for --enable-dirdlg" >&5 | |
8077 | echo $ECHO_N "checking for --enable-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8078 | no_cache=0 |
8079 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8080 | if test "${enable_dirdlg+set}" = set; then | |
8081 | enableval="$enable_dirdlg" | |
247f5006 | 8082 | |
1e6feb95 VZ |
8083 | if test "$enableval" = yes; then |
8084 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8085 | else | |
8086 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8087 | fi | |
247f5006 | 8088 | |
1e6feb95 | 8089 | else |
247f5006 | 8090 | |
1e6feb95 VZ |
8091 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8092 | if test "x$LINE" != x ; then | |
8093 | eval "DEFAULT_$LINE" | |
8094 | else | |
8095 | no_cache=1 | |
8096 | fi | |
8097 | ||
8098 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8099 | |
247f5006 | 8100 | fi; |
1e6feb95 VZ |
8101 | |
8102 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8103 | if test "$no_cache" != 1; then |
1e6feb95 | 8104 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8105 | fi |
8106 | ||
1e6feb95 | 8107 | if test "$wxUSE_DIRDLG" = yes; then |
247f5006 VZ |
8108 | echo "$as_me:$LINENO: result: yes" >&5 |
8109 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8110 | else |
247f5006 VZ |
8111 | echo "$as_me:$LINENO: result: no" >&5 |
8112 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8113 | fi |
698dcdb6 | 8114 | |
247f5006 VZ |
8115 | |
8116 | echo "$as_me:$LINENO: checking for --enable-msgdlg" >&5 | |
8117 | echo $ECHO_N "checking for --enable-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8118 | no_cache=0 |
1e6feb95 VZ |
8119 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8120 | if test "${enable_msgdlg+set}" = set; then | |
8121 | enableval="$enable_msgdlg" | |
247f5006 | 8122 | |
10f2d63a | 8123 | if test "$enableval" = yes; then |
1e6feb95 | 8124 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8125 | else |
1e6feb95 | 8126 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8127 | fi |
247f5006 | 8128 | |
10f2d63a | 8129 | else |
247f5006 | 8130 | |
1e6feb95 | 8131 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8132 | if test "x$LINE" != x ; then |
8133 | eval "DEFAULT_$LINE" | |
8134 | else | |
8135 | no_cache=1 | |
8136 | fi | |
8137 | ||
1e6feb95 | 8138 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8139 | |
247f5006 | 8140 | fi; |
10f2d63a | 8141 | |
1e6feb95 | 8142 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8143 | if test "$no_cache" != 1; then |
1e6feb95 | 8144 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8145 | fi |
8146 | ||
1e6feb95 | 8147 | if test "$wxUSE_MSGDLG" = yes; then |
247f5006 VZ |
8148 | echo "$as_me:$LINENO: result: yes" >&5 |
8149 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8150 | else |
247f5006 VZ |
8151 | echo "$as_me:$LINENO: result: no" >&5 |
8152 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8153 | fi |
10f2d63a | 8154 | |
247f5006 VZ |
8155 | |
8156 | echo "$as_me:$LINENO: checking for --enable-numberdlg" >&5 | |
8157 | echo $ECHO_N "checking for --enable-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8158 | no_cache=0 |
1e6feb95 VZ |
8159 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8160 | if test "${enable_numberdlg+set}" = set; then | |
8161 | enableval="$enable_numberdlg" | |
247f5006 | 8162 | |
10f2d63a | 8163 | if test "$enableval" = yes; then |
1e6feb95 | 8164 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8165 | else |
1e6feb95 | 8166 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8167 | fi |
247f5006 | 8168 | |
10f2d63a | 8169 | else |
247f5006 | 8170 | |
1e6feb95 | 8171 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8172 | if test "x$LINE" != x ; then |
8173 | eval "DEFAULT_$LINE" | |
8174 | else | |
8175 | no_cache=1 | |
8176 | fi | |
8177 | ||
1e6feb95 | 8178 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8179 | |
247f5006 | 8180 | fi; |
10f2d63a | 8181 | |
1e6feb95 | 8182 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8183 | if test "$no_cache" != 1; then |
1e6feb95 | 8184 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8185 | fi |
8186 | ||
1e6feb95 | 8187 | if test "$wxUSE_NUMBERDLG" = yes; then |
247f5006 VZ |
8188 | echo "$as_me:$LINENO: result: yes" >&5 |
8189 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8190 | else |
247f5006 VZ |
8191 | echo "$as_me:$LINENO: result: no" >&5 |
8192 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8193 | fi |
10f2d63a | 8194 | |
247f5006 VZ |
8195 | |
8196 | echo "$as_me:$LINENO: checking for --enable-splash" >&5 | |
8197 | echo $ECHO_N "checking for --enable-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8198 | no_cache=0 |
8199 | # Check whether --enable-splash or --disable-splash was given. | |
8200 | if test "${enable_splash+set}" = set; then | |
8201 | enableval="$enable_splash" | |
247f5006 | 8202 | |
cbca9943 VZ |
8203 | if test "$enableval" = yes; then |
8204 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8205 | else | |
8206 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8207 | fi | |
247f5006 | 8208 | |
cbca9943 | 8209 | else |
247f5006 | 8210 | |
cbca9943 VZ |
8211 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8212 | if test "x$LINE" != x ; then | |
8213 | eval "DEFAULT_$LINE" | |
8214 | else | |
8215 | no_cache=1 | |
8216 | fi | |
8217 | ||
8218 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8219 | |
247f5006 | 8220 | fi; |
cbca9943 VZ |
8221 | |
8222 | eval "$ac_cv_use_splash" | |
8223 | if test "$no_cache" != 1; then | |
8224 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8225 | fi | |
8226 | ||
8227 | if test "$wxUSE_SPLASH" = yes; then | |
247f5006 VZ |
8228 | echo "$as_me:$LINENO: result: yes" >&5 |
8229 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8230 | else |
247f5006 VZ |
8231 | echo "$as_me:$LINENO: result: no" >&5 |
8232 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8233 | fi |
cbca9943 | 8234 | |
247f5006 VZ |
8235 | |
8236 | echo "$as_me:$LINENO: checking for --enable-textdlg" >&5 | |
8237 | echo $ECHO_N "checking for --enable-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8238 | no_cache=0 |
8239 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8240 | if test "${enable_textdlg+set}" = set; then | |
8241 | enableval="$enable_textdlg" | |
247f5006 | 8242 | |
10f2d63a VZ |
8243 | if test "$enableval" = yes; then |
8244 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8245 | else | |
8246 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8247 | fi | |
247f5006 | 8248 | |
10f2d63a | 8249 | else |
247f5006 | 8250 | |
10f2d63a VZ |
8251 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8252 | if test "x$LINE" != x ; then | |
8253 | eval "DEFAULT_$LINE" | |
8254 | else | |
8255 | no_cache=1 | |
8256 | fi | |
8257 | ||
8258 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8259 | |
247f5006 | 8260 | fi; |
10f2d63a VZ |
8261 | |
8262 | eval "$ac_cv_use_textdlg" | |
8263 | if test "$no_cache" != 1; then | |
8264 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8265 | fi | |
8266 | ||
8267 | if test "$wxUSE_TEXTDLG" = yes; then | |
247f5006 VZ |
8268 | echo "$as_me:$LINENO: result: yes" >&5 |
8269 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8270 | else |
247f5006 VZ |
8271 | echo "$as_me:$LINENO: result: no" >&5 |
8272 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8273 | fi |
10f2d63a | 8274 | |
247f5006 VZ |
8275 | |
8276 | echo "$as_me:$LINENO: checking for --enable-tipdlg" >&5 | |
8277 | echo $ECHO_N "checking for --enable-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8278 | no_cache=0 |
8279 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8280 | if test "${enable_tipdlg+set}" = set; then | |
8281 | enableval="$enable_tipdlg" | |
247f5006 | 8282 | |
10f2d63a VZ |
8283 | if test "$enableval" = yes; then |
8284 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8285 | else | |
8286 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8287 | fi | |
247f5006 | 8288 | |
10f2d63a | 8289 | else |
247f5006 | 8290 | |
10f2d63a VZ |
8291 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8292 | if test "x$LINE" != x ; then | |
8293 | eval "DEFAULT_$LINE" | |
8294 | else | |
8295 | no_cache=1 | |
8296 | fi | |
8297 | ||
8298 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8299 | |
247f5006 | 8300 | fi; |
10f2d63a VZ |
8301 | |
8302 | eval "$ac_cv_use_tipdlg" | |
8303 | if test "$no_cache" != 1; then | |
8304 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8305 | fi | |
8306 | ||
8307 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
247f5006 VZ |
8308 | echo "$as_me:$LINENO: result: yes" >&5 |
8309 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8310 | else |
247f5006 VZ |
8311 | echo "$as_me:$LINENO: result: no" >&5 |
8312 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8313 | fi |
10f2d63a | 8314 | |
247f5006 VZ |
8315 | |
8316 | echo "$as_me:$LINENO: checking for --enable-progressdlg" >&5 | |
8317 | echo $ECHO_N "checking for --enable-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8318 | no_cache=0 |
8319 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8320 | if test "${enable_progressdlg+set}" = set; then | |
8321 | enableval="$enable_progressdlg" | |
247f5006 | 8322 | |
10f2d63a VZ |
8323 | if test "$enableval" = yes; then |
8324 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8325 | else | |
8326 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8327 | fi | |
247f5006 | 8328 | |
10f2d63a | 8329 | else |
247f5006 | 8330 | |
10f2d63a VZ |
8331 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8332 | if test "x$LINE" != x ; then | |
8333 | eval "DEFAULT_$LINE" | |
8334 | else | |
8335 | no_cache=1 | |
8336 | fi | |
8337 | ||
8338 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8339 | |
247f5006 | 8340 | fi; |
10f2d63a VZ |
8341 | |
8342 | eval "$ac_cv_use_progressdlg" | |
8343 | if test "$no_cache" != 1; then | |
8344 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8345 | fi | |
8346 | ||
8347 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
247f5006 VZ |
8348 | echo "$as_me:$LINENO: result: yes" >&5 |
8349 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8350 | else |
247f5006 VZ |
8351 | echo "$as_me:$LINENO: result: no" >&5 |
8352 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8353 | fi |
10f2d63a | 8354 | |
247f5006 VZ |
8355 | |
8356 | echo "$as_me:$LINENO: checking for --enable-wizarddlg" >&5 | |
8357 | echo $ECHO_N "checking for --enable-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8358 | no_cache=0 |
8359 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8360 | if test "${enable_wizarddlg+set}" = set; then | |
8361 | enableval="$enable_wizarddlg" | |
247f5006 | 8362 | |
b1f5d087 VZ |
8363 | if test "$enableval" = yes; then |
8364 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8365 | else | |
8366 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8367 | fi | |
247f5006 | 8368 | |
b1f5d087 | 8369 | else |
247f5006 | 8370 | |
b1f5d087 VZ |
8371 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8372 | if test "x$LINE" != x ; then | |
8373 | eval "DEFAULT_$LINE" | |
8374 | else | |
8375 | no_cache=1 | |
8376 | fi | |
8377 | ||
8378 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8379 | |
247f5006 | 8380 | fi; |
b1f5d087 VZ |
8381 | |
8382 | eval "$ac_cv_use_wizarddlg" | |
8383 | if test "$no_cache" != 1; then | |
8384 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8385 | fi | |
8386 | ||
8387 | if test "$wxUSE_WIZARDDLG" = yes; then | |
247f5006 VZ |
8388 | echo "$as_me:$LINENO: result: yes" >&5 |
8389 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8390 | else |
247f5006 VZ |
8391 | echo "$as_me:$LINENO: result: no" >&5 |
8392 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8393 | fi |
8284b0c5 MB |
8394 | |
8395 | ||
52127426 | 8396 | |
247f5006 VZ |
8397 | |
8398 | echo "$as_me:$LINENO: checking for --enable-menus" >&5 | |
8399 | echo $ECHO_N "checking for --enable-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8400 | no_cache=0 |
8401 | # Check whether --enable-menus or --disable-menus was given. | |
8402 | if test "${enable_menus+set}" = set; then | |
8403 | enableval="$enable_menus" | |
247f5006 | 8404 | |
1e6feb95 VZ |
8405 | if test "$enableval" = yes; then |
8406 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8407 | else | |
8408 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8409 | fi | |
247f5006 | 8410 | |
1e6feb95 | 8411 | else |
247f5006 | 8412 | |
1e6feb95 VZ |
8413 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8414 | if test "x$LINE" != x ; then | |
8415 | eval "DEFAULT_$LINE" | |
8416 | else | |
8417 | no_cache=1 | |
8418 | fi | |
8419 | ||
8420 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8421 | |
247f5006 | 8422 | fi; |
1e6feb95 VZ |
8423 | |
8424 | eval "$ac_cv_use_menus" | |
8425 | if test "$no_cache" != 1; then | |
8426 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8427 | fi | |
8428 | ||
8429 | if test "$wxUSE_MENUS" = yes; then | |
247f5006 VZ |
8430 | echo "$as_me:$LINENO: result: yes" >&5 |
8431 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8432 | else |
247f5006 VZ |
8433 | echo "$as_me:$LINENO: result: no" >&5 |
8434 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8435 | fi |
1e6feb95 | 8436 | |
247f5006 VZ |
8437 | |
8438 | echo "$as_me:$LINENO: checking for --enable-miniframe" >&5 | |
8439 | echo $ECHO_N "checking for --enable-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8440 | no_cache=0 |
8441 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8442 | if test "${enable_miniframe+set}" = set; then | |
8443 | enableval="$enable_miniframe" | |
247f5006 | 8444 | |
10f2d63a VZ |
8445 | if test "$enableval" = yes; then |
8446 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8447 | else | |
8448 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8449 | fi | |
247f5006 | 8450 | |
10f2d63a | 8451 | else |
247f5006 | 8452 | |
10f2d63a VZ |
8453 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8454 | if test "x$LINE" != x ; then | |
8455 | eval "DEFAULT_$LINE" | |
8456 | else | |
8457 | no_cache=1 | |
8458 | fi | |
8459 | ||
8460 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8461 | |
247f5006 | 8462 | fi; |
10f2d63a VZ |
8463 | |
8464 | eval "$ac_cv_use_miniframe" | |
8465 | if test "$no_cache" != 1; then | |
8466 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8467 | fi | |
8468 | ||
8469 | if test "$wxUSE_MINIFRAME" = yes; then | |
247f5006 VZ |
8470 | echo "$as_me:$LINENO: result: yes" >&5 |
8471 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8472 | else |
247f5006 VZ |
8473 | echo "$as_me:$LINENO: result: no" >&5 |
8474 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8475 | fi |
10f2d63a | 8476 | |
247f5006 VZ |
8477 | |
8478 | echo "$as_me:$LINENO: checking for --enable-tooltips" >&5 | |
8479 | echo $ECHO_N "checking for --enable-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8480 | no_cache=0 |
8481 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8482 | if test "${enable_tooltips+set}" = set; then | |
8483 | enableval="$enable_tooltips" | |
247f5006 | 8484 | |
10f2d63a VZ |
8485 | if test "$enableval" = yes; then |
8486 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8487 | else | |
8488 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8489 | fi | |
247f5006 | 8490 | |
10f2d63a | 8491 | else |
247f5006 | 8492 | |
10f2d63a VZ |
8493 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8494 | if test "x$LINE" != x ; then | |
8495 | eval "DEFAULT_$LINE" | |
8496 | else | |
8497 | no_cache=1 | |
8498 | fi | |
8499 | ||
8500 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8501 | |
247f5006 | 8502 | fi; |
10f2d63a VZ |
8503 | |
8504 | eval "$ac_cv_use_tooltips" | |
8505 | if test "$no_cache" != 1; then | |
8506 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8507 | fi | |
8508 | ||
8509 | if test "$wxUSE_TOOLTIPS" = yes; then | |
247f5006 VZ |
8510 | echo "$as_me:$LINENO: result: yes" >&5 |
8511 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8512 | else |
247f5006 VZ |
8513 | echo "$as_me:$LINENO: result: no" >&5 |
8514 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8515 | fi |
10f2d63a | 8516 | |
247f5006 VZ |
8517 | |
8518 | echo "$as_me:$LINENO: checking for --enable-splines" >&5 | |
8519 | echo $ECHO_N "checking for --enable-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8520 | no_cache=0 |
8521 | # Check whether --enable-splines or --disable-splines was given. | |
8522 | if test "${enable_splines+set}" = set; then | |
8523 | enableval="$enable_splines" | |
247f5006 | 8524 | |
10f2d63a VZ |
8525 | if test "$enableval" = yes; then |
8526 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8527 | else | |
8528 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8529 | fi | |
247f5006 | 8530 | |
10f2d63a | 8531 | else |
247f5006 | 8532 | |
10f2d63a VZ |
8533 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8534 | if test "x$LINE" != x ; then | |
8535 | eval "DEFAULT_$LINE" | |
8536 | else | |
8537 | no_cache=1 | |
8538 | fi | |
8539 | ||
8540 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8541 | |
247f5006 | 8542 | fi; |
10f2d63a VZ |
8543 | |
8544 | eval "$ac_cv_use_splines" | |
8545 | if test "$no_cache" != 1; then | |
8546 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8547 | fi | |
8548 | ||
8549 | if test "$wxUSE_SPLINES" = yes; then | |
247f5006 VZ |
8550 | echo "$as_me:$LINENO: result: yes" >&5 |
8551 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8552 | else |
247f5006 VZ |
8553 | echo "$as_me:$LINENO: result: no" >&5 |
8554 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8555 | fi |
10f2d63a | 8556 | |
247f5006 VZ |
8557 | |
8558 | echo "$as_me:$LINENO: checking for --enable-validators" >&5 | |
8559 | echo $ECHO_N "checking for --enable-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8560 | no_cache=0 |
8561 | # Check whether --enable-validators or --disable-validators was given. | |
8562 | if test "${enable_validators+set}" = set; then | |
8563 | enableval="$enable_validators" | |
247f5006 | 8564 | |
10f2d63a VZ |
8565 | if test "$enableval" = yes; then |
8566 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8567 | else | |
8568 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8569 | fi | |
247f5006 | 8570 | |
10f2d63a | 8571 | else |
247f5006 | 8572 | |
10f2d63a VZ |
8573 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8574 | if test "x$LINE" != x ; then | |
8575 | eval "DEFAULT_$LINE" | |
8576 | else | |
8577 | no_cache=1 | |
8578 | fi | |
8579 | ||
8580 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8581 | |
247f5006 | 8582 | fi; |
10f2d63a VZ |
8583 | |
8584 | eval "$ac_cv_use_validators" | |
8585 | if test "$no_cache" != 1; then | |
8586 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8587 | fi | |
8588 | ||
8589 | if test "$wxUSE_VALIDATORS" = yes; then | |
247f5006 VZ |
8590 | echo "$as_me:$LINENO: result: yes" >&5 |
8591 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8592 | else |
247f5006 VZ |
8593 | echo "$as_me:$LINENO: result: no" >&5 |
8594 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8595 | fi |
10f2d63a | 8596 | |
247f5006 VZ |
8597 | |
8598 | echo "$as_me:$LINENO: checking for --enable-busyinfo" >&5 | |
8599 | echo $ECHO_N "checking for --enable-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8600 | no_cache=0 |
8601 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8602 | if test "${enable_busyinfo+set}" = set; then | |
8603 | enableval="$enable_busyinfo" | |
247f5006 | 8604 | |
10f2d63a VZ |
8605 | if test "$enableval" = yes; then |
8606 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8607 | else | |
8608 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8609 | fi | |
247f5006 | 8610 | |
10f2d63a | 8611 | else |
247f5006 | 8612 | |
10f2d63a VZ |
8613 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8614 | if test "x$LINE" != x ; then | |
8615 | eval "DEFAULT_$LINE" | |
8616 | else | |
8617 | no_cache=1 | |
8618 | fi | |
8619 | ||
8620 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8621 | |
247f5006 | 8622 | fi; |
10f2d63a VZ |
8623 | |
8624 | eval "$ac_cv_use_busyinfo" | |
8625 | if test "$no_cache" != 1; then | |
8626 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8627 | fi | |
8628 | ||
8629 | if test "$wxUSE_BUSYINFO" = yes; then | |
247f5006 VZ |
8630 | echo "$as_me:$LINENO: result: yes" >&5 |
8631 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8632 | else |
247f5006 VZ |
8633 | echo "$as_me:$LINENO: result: no" >&5 |
8634 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8635 | fi |
10f2d63a | 8636 | |
247f5006 VZ |
8637 | |
8638 | echo "$as_me:$LINENO: checking for --enable-joystick" >&5 | |
8639 | echo $ECHO_N "checking for --enable-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8640 | no_cache=0 |
8641 | # Check whether --enable-joystick or --disable-joystick was given. | |
8642 | if test "${enable_joystick+set}" = set; then | |
8643 | enableval="$enable_joystick" | |
247f5006 | 8644 | |
f6bcfd97 BP |
8645 | if test "$enableval" = yes; then |
8646 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8647 | else | |
8648 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8649 | fi | |
247f5006 | 8650 | |
f6bcfd97 | 8651 | else |
247f5006 | 8652 | |
f6bcfd97 BP |
8653 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8654 | if test "x$LINE" != x ; then | |
8655 | eval "DEFAULT_$LINE" | |
8656 | else | |
8657 | no_cache=1 | |
8658 | fi | |
8659 | ||
8660 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 8661 | |
247f5006 | 8662 | fi; |
f6bcfd97 BP |
8663 | |
8664 | eval "$ac_cv_use_joystick" | |
8665 | if test "$no_cache" != 1; then | |
8666 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8667 | fi | |
8668 | ||
8669 | if test "$wxUSE_JOYSTICK" = yes; then | |
247f5006 VZ |
8670 | echo "$as_me:$LINENO: result: yes" >&5 |
8671 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 8672 | else |
247f5006 VZ |
8673 | echo "$as_me:$LINENO: result: no" >&5 |
8674 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 8675 | fi |
698dcdb6 | 8676 | |
247f5006 VZ |
8677 | |
8678 | echo "$as_me:$LINENO: checking for --enable-metafile" >&5 | |
8679 | echo $ECHO_N "checking for --enable-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
8680 | no_cache=0 |
8681 | # Check whether --enable-metafile or --disable-metafile was given. | |
8682 | if test "${enable_metafile+set}" = set; then | |
8683 | enableval="$enable_metafile" | |
247f5006 | 8684 | |
1e6feb95 VZ |
8685 | if test "$enableval" = yes; then |
8686 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8687 | else | |
8688 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8689 | fi | |
247f5006 | 8690 | |
1e6feb95 | 8691 | else |
247f5006 | 8692 | |
1e6feb95 VZ |
8693 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8694 | if test "x$LINE" != x ; then | |
8695 | eval "DEFAULT_$LINE" | |
8696 | else | |
8697 | no_cache=1 | |
8698 | fi | |
8699 | ||
8700 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 8701 | |
247f5006 | 8702 | fi; |
1e6feb95 VZ |
8703 | |
8704 | eval "$ac_cv_use_metafile" | |
8705 | if test "$no_cache" != 1; then | |
8706 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8707 | fi | |
8708 | ||
8709 | if test "$wxUSE_METAFILE" = yes; then | |
247f5006 VZ |
8710 | echo "$as_me:$LINENO: result: yes" >&5 |
8711 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8712 | else |
247f5006 VZ |
8713 | echo "$as_me:$LINENO: result: no" >&5 |
8714 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8715 | fi |
1e6feb95 | 8716 | |
247f5006 VZ |
8717 | |
8718 | echo "$as_me:$LINENO: checking for --enable-dragimage" >&5 | |
8719 | echo $ECHO_N "checking for --enable-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
8720 | no_cache=0 |
8721 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8722 | if test "${enable_dragimage+set}" = set; then | |
8723 | enableval="$enable_dragimage" | |
247f5006 | 8724 | |
24fd6d87 VZ |
8725 | if test "$enableval" = yes; then |
8726 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8727 | else | |
8728 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8729 | fi | |
247f5006 | 8730 | |
24fd6d87 | 8731 | else |
247f5006 | 8732 | |
24fd6d87 VZ |
8733 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8734 | if test "x$LINE" != x ; then | |
8735 | eval "DEFAULT_$LINE" | |
8736 | else | |
8737 | no_cache=1 | |
8738 | fi | |
8739 | ||
8740 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 8741 | |
247f5006 | 8742 | fi; |
24fd6d87 VZ |
8743 | |
8744 | eval "$ac_cv_use_dragimage" | |
8745 | if test "$no_cache" != 1; then | |
8746 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8747 | fi | |
8748 | ||
8749 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
247f5006 VZ |
8750 | echo "$as_me:$LINENO: result: yes" >&5 |
8751 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 8752 | else |
247f5006 VZ |
8753 | echo "$as_me:$LINENO: result: no" >&5 |
8754 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 8755 | fi |
52127426 | 8756 | |
8284b0c5 MB |
8757 | |
8758 | ||
247f5006 VZ |
8759 | |
8760 | echo "$as_me:$LINENO: checking for --enable-palette" >&5 | |
8761 | echo $ECHO_N "checking for --enable-palette... $ECHO_C" >&6 | |
edae8572 VZ |
8762 | no_cache=0 |
8763 | # Check whether --enable-palette or --disable-palette was given. | |
8764 | if test "${enable_palette+set}" = set; then | |
8765 | enableval="$enable_palette" | |
247f5006 | 8766 | |
edae8572 VZ |
8767 | if test "$enableval" = yes; then |
8768 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8769 | else | |
8770 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8771 | fi | |
247f5006 | 8772 | |
edae8572 | 8773 | else |
247f5006 | 8774 | |
edae8572 VZ |
8775 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8776 | if test "x$LINE" != x ; then | |
8777 | eval "DEFAULT_$LINE" | |
8778 | else | |
8779 | no_cache=1 | |
8780 | fi | |
8781 | ||
8782 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 8783 | |
247f5006 | 8784 | fi; |
edae8572 VZ |
8785 | |
8786 | eval "$ac_cv_use_palette" | |
8787 | if test "$no_cache" != 1; then | |
8788 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8789 | fi | |
8790 | ||
8791 | if test "$wxUSE_PALETTE" = yes; then | |
247f5006 VZ |
8792 | echo "$as_me:$LINENO: result: yes" >&5 |
8793 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 8794 | else |
247f5006 VZ |
8795 | echo "$as_me:$LINENO: result: no" >&5 |
8796 | echo "${ECHO_T}no" >&6 | |
edae8572 | 8797 | fi |
edae8572 | 8798 | |
247f5006 VZ |
8799 | |
8800 | echo "$as_me:$LINENO: checking for --enable-image" >&5 | |
8801 | echo $ECHO_N "checking for --enable-image... $ECHO_C" >&6 | |
0046ff7c VS |
8802 | no_cache=0 |
8803 | # Check whether --enable-image or --disable-image was given. | |
8804 | if test "${enable_image+set}" = set; then | |
8805 | enableval="$enable_image" | |
247f5006 | 8806 | |
0046ff7c VS |
8807 | if test "$enableval" = yes; then |
8808 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8809 | else | |
8810 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8811 | fi | |
247f5006 | 8812 | |
0046ff7c | 8813 | else |
247f5006 | 8814 | |
0046ff7c VS |
8815 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8816 | if test "x$LINE" != x ; then | |
8817 | eval "DEFAULT_$LINE" | |
8818 | else | |
8819 | no_cache=1 | |
8820 | fi | |
8821 | ||
8822 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 8823 | |
247f5006 | 8824 | fi; |
0046ff7c VS |
8825 | |
8826 | eval "$ac_cv_use_image" | |
8827 | if test "$no_cache" != 1; then | |
8828 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8829 | fi | |
8830 | ||
8831 | if test "$wxUSE_IMAGE" = yes; then | |
247f5006 VZ |
8832 | echo "$as_me:$LINENO: result: yes" >&5 |
8833 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 8834 | else |
247f5006 VZ |
8835 | echo "$as_me:$LINENO: result: no" >&5 |
8836 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 8837 | fi |
0046ff7c | 8838 | |
247f5006 VZ |
8839 | |
8840 | echo "$as_me:$LINENO: checking for --enable-gif" >&5 | |
8841 | echo $ECHO_N "checking for --enable-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
8842 | no_cache=0 |
8843 | # Check whether --enable-gif or --disable-gif was given. | |
8844 | if test "${enable_gif+set}" = set; then | |
8845 | enableval="$enable_gif" | |
247f5006 | 8846 | |
10f2d63a VZ |
8847 | if test "$enableval" = yes; then |
8848 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8849 | else | |
8850 | ac_cv_use_gif='wxUSE_GIF=no' | |
8851 | fi | |
247f5006 | 8852 | |
10f2d63a | 8853 | else |
247f5006 | 8854 | |
10f2d63a VZ |
8855 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8856 | if test "x$LINE" != x ; then | |
8857 | eval "DEFAULT_$LINE" | |
8858 | else | |
8859 | no_cache=1 | |
8860 | fi | |
8861 | ||
8862 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 8863 | |
247f5006 | 8864 | fi; |
10f2d63a VZ |
8865 | |
8866 | eval "$ac_cv_use_gif" | |
8867 | if test "$no_cache" != 1; then | |
8868 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8869 | fi | |
8870 | ||
8871 | if test "$wxUSE_GIF" = yes; then | |
247f5006 VZ |
8872 | echo "$as_me:$LINENO: result: yes" >&5 |
8873 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8874 | else |
247f5006 VZ |
8875 | echo "$as_me:$LINENO: result: no" >&5 |
8876 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8877 | fi |
10f2d63a | 8878 | |
247f5006 VZ |
8879 | |
8880 | echo "$as_me:$LINENO: checking for --enable-pcx" >&5 | |
8881 | echo $ECHO_N "checking for --enable-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
8882 | no_cache=0 |
8883 | # Check whether --enable-pcx or --disable-pcx was given. | |
8884 | if test "${enable_pcx+set}" = set; then | |
8885 | enableval="$enable_pcx" | |
247f5006 | 8886 | |
10f2d63a VZ |
8887 | if test "$enableval" = yes; then |
8888 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8889 | else | |
8890 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8891 | fi | |
247f5006 | 8892 | |
10f2d63a | 8893 | else |
247f5006 | 8894 | |
10f2d63a VZ |
8895 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8896 | if test "x$LINE" != x ; then | |
8897 | eval "DEFAULT_$LINE" | |
8898 | else | |
8899 | no_cache=1 | |
8900 | fi | |
8901 | ||
8902 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 8903 | |
247f5006 | 8904 | fi; |
10f2d63a VZ |
8905 | |
8906 | eval "$ac_cv_use_pcx" | |
8907 | if test "$no_cache" != 1; then | |
8908 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8909 | fi | |
8910 | ||
8911 | if test "$wxUSE_PCX" = yes; then | |
247f5006 VZ |
8912 | echo "$as_me:$LINENO: result: yes" >&5 |
8913 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8914 | else |
247f5006 VZ |
8915 | echo "$as_me:$LINENO: result: no" >&5 |
8916 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8917 | fi |
10f2d63a | 8918 | |
247f5006 VZ |
8919 | |
8920 | echo "$as_me:$LINENO: checking for --enable-iff" >&5 | |
8921 | echo $ECHO_N "checking for --enable-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
8922 | no_cache=0 |
8923 | # Check whether --enable-iff or --disable-iff was given. | |
8924 | if test "${enable_iff+set}" = set; then | |
8925 | enableval="$enable_iff" | |
247f5006 | 8926 | |
4b6b4dfc RR |
8927 | if test "$enableval" = yes; then |
8928 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8929 | else | |
8930 | ac_cv_use_iff='wxUSE_IFF=no' | |
8931 | fi | |
247f5006 | 8932 | |
4b6b4dfc | 8933 | else |
247f5006 | 8934 | |
4b6b4dfc RR |
8935 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8936 | if test "x$LINE" != x ; then | |
8937 | eval "DEFAULT_$LINE" | |
8938 | else | |
8939 | no_cache=1 | |
8940 | fi | |
8941 | ||
8942 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 8943 | |
247f5006 | 8944 | fi; |
4b6b4dfc RR |
8945 | |
8946 | eval "$ac_cv_use_iff" | |
8947 | if test "$no_cache" != 1; then | |
8948 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8949 | fi | |
8950 | ||
8951 | if test "$wxUSE_IFF" = yes; then | |
247f5006 VZ |
8952 | echo "$as_me:$LINENO: result: yes" >&5 |
8953 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 8954 | else |
247f5006 VZ |
8955 | echo "$as_me:$LINENO: result: no" >&5 |
8956 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 8957 | fi |
4b6b4dfc | 8958 | |
247f5006 VZ |
8959 | |
8960 | echo "$as_me:$LINENO: checking for --enable-pnm" >&5 | |
8961 | echo $ECHO_N "checking for --enable-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
8962 | no_cache=0 |
8963 | # Check whether --enable-pnm or --disable-pnm was given. | |
8964 | if test "${enable_pnm+set}" = set; then | |
8965 | enableval="$enable_pnm" | |
247f5006 | 8966 | |
10f2d63a VZ |
8967 | if test "$enableval" = yes; then |
8968 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8969 | else | |
8970 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8971 | fi | |
247f5006 | 8972 | |
10f2d63a | 8973 | else |
247f5006 | 8974 | |
10f2d63a VZ |
8975 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8976 | if test "x$LINE" != x ; then | |
8977 | eval "DEFAULT_$LINE" | |
8978 | else | |
8979 | no_cache=1 | |
8980 | fi | |
8981 | ||
8982 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 8983 | |
247f5006 | 8984 | fi; |
10f2d63a VZ |
8985 | |
8986 | eval "$ac_cv_use_pnm" | |
8987 | if test "$no_cache" != 1; then | |
8988 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8989 | fi | |
8990 | ||
8991 | if test "$wxUSE_PNM" = yes; then | |
247f5006 VZ |
8992 | echo "$as_me:$LINENO: result: yes" >&5 |
8993 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8994 | else |
247f5006 VZ |
8995 | echo "$as_me:$LINENO: result: no" >&5 |
8996 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8997 | fi |
10f2d63a | 8998 | |
247f5006 VZ |
8999 | |
9000 | echo "$as_me:$LINENO: checking for --enable-xpm" >&5 | |
9001 | echo $ECHO_N "checking for --enable-xpm... $ECHO_C" >&6 | |
0046ff7c | 9002 | no_cache=0 |
69d27ff7 MB |
9003 | # Check whether --enable-xpm or --disable-xpm was given. |
9004 | if test "${enable_xpm+set}" = set; then | |
9005 | enableval="$enable_xpm" | |
247f5006 | 9006 | |
0046ff7c | 9007 | if test "$enableval" = yes; then |
69d27ff7 | 9008 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9009 | else |
69d27ff7 | 9010 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9011 | fi |
247f5006 | 9012 | |
0046ff7c | 9013 | else |
247f5006 | 9014 | |
0046ff7c VS |
9015 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9016 | if test "x$LINE" != x ; then | |
9017 | eval "DEFAULT_$LINE" | |
9018 | else | |
9019 | no_cache=1 | |
9020 | fi | |
9021 | ||
69d27ff7 | 9022 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9023 | |
247f5006 | 9024 | fi; |
0046ff7c | 9025 | |
69d27ff7 | 9026 | eval "$ac_cv_use_xpm" |
0046ff7c | 9027 | if test "$no_cache" != 1; then |
69d27ff7 | 9028 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9029 | fi |
9030 | ||
9031 | if test "$wxUSE_XPM" = yes; then | |
247f5006 VZ |
9032 | echo "$as_me:$LINENO: result: yes" >&5 |
9033 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9034 | else |
247f5006 VZ |
9035 | echo "$as_me:$LINENO: result: no" >&5 |
9036 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9037 | fi |
0046ff7c | 9038 | |
247f5006 VZ |
9039 | |
9040 | echo "$as_me:$LINENO: checking for --enable-ico_cur" >&5 | |
9041 | echo $ECHO_N "checking for --enable-ico_cur... $ECHO_C" >&6 | |
658974ae | 9042 | no_cache=0 |
c7206e64 VS |
9043 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9044 | if test "${enable_ico_cur+set}" = set; then | |
9045 | enableval="$enable_ico_cur" | |
247f5006 | 9046 | |
658974ae | 9047 | if test "$enableval" = yes; then |
c7206e64 | 9048 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9049 | else |
c7206e64 | 9050 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9051 | fi |
247f5006 | 9052 | |
658974ae | 9053 | else |
247f5006 | 9054 | |
658974ae VS |
9055 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9056 | if test "x$LINE" != x ; then | |
9057 | eval "DEFAULT_$LINE" | |
9058 | else | |
9059 | no_cache=1 | |
9060 | fi | |
9061 | ||
c7206e64 | 9062 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9063 | |
247f5006 | 9064 | fi; |
658974ae | 9065 | |
c7206e64 | 9066 | eval "$ac_cv_use_ico_cur" |
658974ae | 9067 | if test "$no_cache" != 1; then |
c7206e64 | 9068 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9069 | fi |
9070 | ||
9071 | if test "$wxUSE_ICO_CUR" = yes; then | |
247f5006 VZ |
9072 | echo "$as_me:$LINENO: result: yes" >&5 |
9073 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9074 | else |
247f5006 VZ |
9075 | echo "$as_me:$LINENO: result: no" >&5 |
9076 | echo "${ECHO_T}no" >&6 | |
658974ae | 9077 | fi |
247f5006 | 9078 | |
658974ae | 9079 | |
b12915c1 VZ |
9080 | fi |
9081 | ||
d558c907 VS |
9082 | case "${host}" in |
9083 | *-pc-os2_emx | *-pc-os2-emx ) | |
9084 | LEX_STEM="lexyy" | |
9085 | ;; | |
9086 | *) | |
9087 | PATH_IFS=':' | |
9088 | LEX_STEM="lex.yy" | |
9089 | ;; | |
9090 | esac | |
9091 | ||
8284b0c5 MB |
9092 | |
9093 | ||
10f2d63a VZ |
9094 | echo "saving argument cache $wx_arg_cache_file" |
9095 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9096 | |
8284b0c5 | 9097 | |
247f5006 VZ |
9098 | |
9099 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9100 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10f2d63a VZ |
9101 | |
9102 | if test "$wxUSE_GUI" = "yes"; then | |
9103 | ||
3a922bb4 | 9104 | if test "$USE_BEOS" = 1; then |
247f5006 VZ |
9105 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9106 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9107 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9108 | fi |
b12915c1 | 9109 | |
3a922bb4 RL |
9110 | if test "$TOOLKIT_GIVEN" = 1; then |
9111 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9112 | var=wxUSE_$toolkit | |
9113 | eval "value=\$${var}" | |
9114 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9115 | done | |
10f2d63a | 9116 | else |
3a922bb4 RL |
9117 | for toolkit in `echo $ALL_TOOLKITS`; do |
9118 | if test "$has_toolkit_in_cache" != 1; then | |
9119 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9120 | else | |
9121 | var=DEFAULT_wxUSE_$toolkit | |
9122 | fi | |
9123 | eval "wxUSE_$toolkit=\$${var}" | |
9124 | done | |
10f2d63a | 9125 | fi |
10f2d63a | 9126 | |
3a922bb4 | 9127 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 9128 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 9129 | |
d558c907 | 9130 | case "${host}" in |
6fa882bd | 9131 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9132 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9133 | esac |
10f2d63a | 9134 | |
3a922bb4 RL |
9135 | case "$NUM_TOOLKITS" in |
9136 | 1) | |
9137 | ;; | |
9138 | 0) | |
247f5006 VZ |
9139 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9140 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9141 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9142 | ;; |
9143 | *) | |
247f5006 VZ |
9144 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9145 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9146 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9147 | esac |
10f2d63a | 9148 | |
3a922bb4 RL |
9149 | for toolkit in `echo $ALL_TOOLKITS`; do |
9150 | var=wxUSE_$toolkit | |
9151 | eval "value=\$${var}" | |
9152 | if test "x$value" != x; then | |
9153 | cache_var=CACHE_$toolkit | |
9154 | eval "cache=\$${cache_var}" | |
9155 | if test "$cache" = 1; then | |
9156 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9157 | fi | |
9158 | if test "$value" = 1; then | |
9159 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
247f5006 VZ |
9160 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9161 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9162 | fi |
9163 | fi | |
9164 | done | |
10f2d63a | 9165 | else |
247f5006 VZ |
9166 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 |
9167 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10f2d63a VZ |
9168 | fi |
9169 | ||
8284b0c5 | 9170 | |
43d99b6d VS |
9171 | wants_win32=0 |
9172 | doesnt_want_win32=0 | |
17234b26 MB |
9173 | case "${host}" in |
9174 | *-*-cygwin*) | |
9175 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9176 | wants_win32=1 |
9177 | else | |
9178 | doesnt_want_win32=1 | |
17234b26 MB |
9179 | fi |
9180 | ;; | |
9181 | *-*-mingw*) | |
43d99b6d | 9182 | wants_win32=1 |
17234b26 MB |
9183 | ;; |
9184 | esac | |
9185 | ||
43d99b6d | 9186 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9187 | USE_UNIX=0 |
9188 | USE_WIN32=1 | |
247f5006 | 9189 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9190 | #define __WIN32__ 1 |
247f5006 | 9191 | _ACEOF |
17234b26 | 9192 | |
247f5006 | 9193 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9194 | #define __WIN95__ 1 |
247f5006 | 9195 | _ACEOF |
17234b26 | 9196 | |
247f5006 | 9197 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9198 | #define __WINDOWS__ 1 |
247f5006 | 9199 | _ACEOF |
17234b26 | 9200 | |
247f5006 | 9201 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9202 | #define __GNUWIN32__ 1 |
247f5006 | 9203 | _ACEOF |
17234b26 | 9204 | |
247f5006 | 9205 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9206 | #define STRICT 1 |
247f5006 | 9207 | _ACEOF |
17234b26 | 9208 | |
247f5006 | 9209 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9210 | #define WINVER 0x0400 |
247f5006 | 9211 | _ACEOF |
17234b26 | 9212 | |
43d99b6d VS |
9213 | fi |
9214 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9215 | USE_UNIX=1 |
9216 | USE_WIN32=0 | |
9217 | fi | |
9218 | ||
9219 | if test "$USE_UNIX" = 1 ; then | |
9220 | wxUSE_UNIX=yes | |
247f5006 | 9221 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9222 | #define __UNIX__ 1 |
247f5006 | 9223 | _ACEOF |
17234b26 MB |
9224 | |
9225 | fi | |
9226 | ||
8284b0c5 | 9227 | |
247f5006 | 9228 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9229 | # This file is a shell script that caches the results of configure |
9230 | # tests run on this system so they can be shared between configure | |
247f5006 VZ |
9231 | # scripts and configure runs, see configure's option --config-cache. |
9232 | # It is not useful on other systems. If it contains results you don't | |
9233 | # want to keep, you may remove or edit it. | |
10f2d63a | 9234 | # |
247f5006 VZ |
9235 | # config.status only pays attention to the cache file if you give it |
9236 | # the --recheck option to rerun configure. | |
10f2d63a | 9237 | # |
247f5006 VZ |
9238 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
9239 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9240 | # following values. | |
9241 | ||
9242 | _ACEOF | |
9243 | ||
10f2d63a VZ |
9244 | # The following way of writing the cache mishandles newlines in values, |
9245 | # but we know of no workaround that is simple, portable, and efficient. | |
9246 | # So, don't put newlines in cache variables' values. | |
9247 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9248 | # and sets the high bit in the cache file unless we assign to the vars. | |
247f5006 VZ |
9249 | { |
9250 | (set) 2>&1 | | |
9251 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9252 | *ac_space=\ *) | |
9253 | # `set' does not quote correctly, so add quotes (double-quote | |
9254 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9255 | sed -n \ | |
9256 | "s/'/'\\\\''/g; | |
9257 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9258 | ;; | |
9259 | *) | |
9260 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9261 | sed -n \ | |
9262 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9263 | ;; | |
9264 | esac; | |
9265 | } | | |
9266 | sed ' | |
9267 | t clear | |
9268 | : clear | |
9269 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9270 | t end | |
9271 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9272 | : end' >>confcache | |
9273 | if cmp -s $cache_file confcache; then :; else | |
10f2d63a | 9274 | if test -w $cache_file; then |
247f5006 VZ |
9275 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9276 | cat confcache >$cache_file | |
10f2d63a VZ |
9277 | else |
9278 | echo "not updating unwritable cache $cache_file" | |
9279 | fi | |
9280 | fi | |
9281 | rm -f confcache | |
9282 | ||
e59890c3 | 9283 | if test "$build" != "$host" ; then |
9d353d4a | 9284 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9285 | CC=$host_alias-gcc |
9286 | CXX=$host_alias-c++ | |
9287 | AR=$host_alias-ar | |
9288 | RANLIB=$host_alias-ranlib | |
9289 | DLLTOOL=$host_alias-dlltool | |
9290 | RESCOMP=$host_alias-windres | |
9291 | LD=$host_alias-ld | |
9292 | NM=$host_alias-nm | |
9293 | STRIP=$host_alias-strip | |
9294 | else | |
247f5006 VZ |
9295 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9296 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9297 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9298 | fi |
10f2d63a VZ |
9299 | fi |
9300 | ||
ec603395 | 9301 | CFLAGS=${CFLAGS:=} |
247f5006 VZ |
9302 | ac_ext=c |
9303 | ac_cpp='$CPP $CPPFLAGS' | |
9304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9307 | if test -n "$ac_tool_prefix"; then | |
9308 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9309 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9310 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9311 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9312 | if test "${ac_cv_prog_CC+set}" = set; then | |
9313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9314 | else | |
9315 | if test -n "$CC"; then | |
9316 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9317 | else | |
9318 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9319 | for as_dir in $PATH | |
9320 | do | |
9321 | IFS=$as_save_IFS | |
9322 | test -z "$as_dir" && as_dir=. | |
9323 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9324 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9325 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9326 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9327 | break 2 | |
9328 | fi | |
9329 | done | |
9330 | done | |
9331 | ||
9332 | fi | |
9333 | fi | |
9334 | CC=$ac_cv_prog_CC | |
9335 | if test -n "$CC"; then | |
9336 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9337 | echo "${ECHO_T}$CC" >&6 | |
9338 | else | |
9339 | echo "$as_me:$LINENO: result: no" >&5 | |
9340 | echo "${ECHO_T}no" >&6 | |
9341 | fi | |
9342 | ||
9343 | fi | |
9344 | if test -z "$ac_cv_prog_CC"; then | |
9345 | ac_ct_CC=$CC | |
9346 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9347 | set dummy gcc; ac_word=$2 |
247f5006 VZ |
9348 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9349 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9350 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9352 | else | |
9353 | if test -n "$ac_ct_CC"; then | |
9354 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9355 | else | |
9356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9357 | for as_dir in $PATH | |
9358 | do | |
9359 | IFS=$as_save_IFS | |
9360 | test -z "$as_dir" && as_dir=. | |
9361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9362 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9363 | ac_cv_prog_ac_ct_CC="gcc" | |
9364 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9365 | break 2 | |
9366 | fi | |
9367 | done | |
9368 | done | |
9369 | ||
9370 | fi | |
9371 | fi | |
9372 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9373 | if test -n "$ac_ct_CC"; then | |
9374 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9375 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9376 | else | |
9377 | echo "$as_me:$LINENO: result: no" >&5 | |
9378 | echo "${ECHO_T}no" >&6 | |
9379 | fi | |
9380 | ||
9381 | CC=$ac_ct_CC | |
9382 | else | |
9383 | CC="$ac_cv_prog_CC" | |
9384 | fi | |
9385 | ||
9386 | if test -z "$CC"; then | |
9387 | if test -n "$ac_tool_prefix"; then | |
9388 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9389 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9392 | if test "${ac_cv_prog_CC+set}" = set; then | |
9393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9394 | else |
9395 | if test -n "$CC"; then | |
9396 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9397 | else |
247f5006 VZ |
9398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9399 | for as_dir in $PATH | |
9400 | do | |
9401 | IFS=$as_save_IFS | |
9402 | test -z "$as_dir" && as_dir=. | |
9403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9405 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9407 | break 2 | |
9408 | fi | |
9409 | done | |
9410 | done | |
9411 | ||
10f2d63a | 9412 | fi |
6232543b | 9413 | fi |
247f5006 | 9414 | CC=$ac_cv_prog_CC |
6232543b | 9415 | if test -n "$CC"; then |
247f5006 VZ |
9416 | echo "$as_me:$LINENO: result: $CC" >&5 |
9417 | echo "${ECHO_T}$CC" >&6 | |
9418 | else | |
9419 | echo "$as_me:$LINENO: result: no" >&5 | |
9420 | echo "${ECHO_T}no" >&6 | |
9421 | fi | |
9422 | ||
9423 | fi | |
9424 | if test -z "$ac_cv_prog_CC"; then | |
9425 | ac_ct_CC=$CC | |
9426 | # Extract the first word of "cc", so it can be a program name with args. | |
9427 | set dummy cc; ac_word=$2 | |
9428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9430 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9432 | else | |
9433 | if test -n "$ac_ct_CC"; then | |
9434 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9435 | else | |
9436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9437 | for as_dir in $PATH | |
9438 | do | |
9439 | IFS=$as_save_IFS | |
9440 | test -z "$as_dir" && as_dir=. | |
9441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9443 | ac_cv_prog_ac_ct_CC="cc" | |
9444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9445 | break 2 | |
9446 | fi | |
9447 | done | |
9448 | done | |
9449 | ||
9450 | fi | |
9451 | fi | |
9452 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9453 | if test -n "$ac_ct_CC"; then | |
9454 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9455 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9456 | else | |
9457 | echo "$as_me:$LINENO: result: no" >&5 | |
9458 | echo "${ECHO_T}no" >&6 | |
9459 | fi | |
9460 | ||
9461 | CC=$ac_ct_CC | |
5c6fa7d2 | 9462 | else |
247f5006 | 9463 | CC="$ac_cv_prog_CC" |
1e487827 | 9464 | fi |
6232543b | 9465 | |
247f5006 | 9466 | fi |
5c6fa7d2 RR |
9467 | if test -z "$CC"; then |
9468 | # Extract the first word of "cc", so it can be a program name with args. | |
9469 | set dummy cc; ac_word=$2 | |
247f5006 VZ |
9470 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9472 | if test "${ac_cv_prog_CC+set}" = set; then | |
9473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9474 | else |
9475 | if test -n "$CC"; then | |
9476 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9477 | else | |
9478 | ac_prog_rejected=no | |
247f5006 VZ |
9479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9480 | for as_dir in $PATH | |
9481 | do | |
9482 | IFS=$as_save_IFS | |
9483 | test -z "$as_dir" && as_dir=. | |
9484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9485 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9486 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9487 | ac_prog_rejected=yes | |
9488 | continue | |
9489 | fi | |
9490 | ac_cv_prog_CC="cc" | |
9491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9492 | break 2 | |
9493 | fi | |
9494 | done | |
9495 | done | |
9496 | ||
328a083c RR |
9497 | if test $ac_prog_rejected = yes; then |
9498 | # We found a bogon in the path, so make sure we never use it. | |
9499 | set dummy $ac_cv_prog_CC | |
9500 | shift | |
247f5006 | 9501 | if test $# != 0; then |
328a083c | 9502 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9503 | # However, it has the same basename, so the bogon will be chosen |
9504 | # first if we set CC to just the basename; use the full file name. | |
9505 | shift | |
247f5006 | 9506 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
1e487827 VS |
9507 | shift |
9508 | ac_cv_prog_CC="$@" | |
703e0a69 | 9509 | fi |
1e487827 VS |
9510 | fi |
9511 | fi | |
9512 | fi | |
247f5006 | 9513 | CC=$ac_cv_prog_CC |
1e487827 | 9514 | if test -n "$CC"; then |
247f5006 VZ |
9515 | echo "$as_me:$LINENO: result: $CC" >&5 |
9516 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9517 | else |
247f5006 VZ |
9518 | echo "$as_me:$LINENO: result: no" >&5 |
9519 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9520 | fi |
1e487827 | 9521 | |
247f5006 VZ |
9522 | fi |
9523 | if test -z "$CC"; then | |
9524 | if test -n "$ac_tool_prefix"; then | |
9525 | for ac_prog in cl | |
9526 | do | |
9527 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9528 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9529 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9530 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9531 | if test "${ac_cv_prog_CC+set}" = set; then | |
9532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9533 | else |
9534 | if test -n "$CC"; then | |
9535 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9536 | else | |
247f5006 VZ |
9537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9538 | for as_dir in $PATH | |
9539 | do | |
9540 | IFS=$as_save_IFS | |
9541 | test -z "$as_dir" && as_dir=. | |
9542 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9543 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9544 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
9545 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9546 | break 2 | |
9547 | fi | |
9548 | done | |
9549 | done | |
9550 | ||
f09359cf VS |
9551 | fi |
9552 | fi | |
247f5006 | 9553 | CC=$ac_cv_prog_CC |
f09359cf | 9554 | if test -n "$CC"; then |
247f5006 VZ |
9555 | echo "$as_me:$LINENO: result: $CC" >&5 |
9556 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 9557 | else |
247f5006 VZ |
9558 | echo "$as_me:$LINENO: result: no" >&5 |
9559 | echo "${ECHO_T}no" >&6 | |
7b4a847f | 9560 | fi |
247f5006 VZ |
9561 | |
9562 | test -n "$CC" && break | |
9563 | done | |
9564 | fi | |
9565 | if test -z "$CC"; then | |
9566 | ac_ct_CC=$CC | |
9567 | for ac_prog in cl | |
9568 | do | |
9569 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9570 | set dummy $ac_prog; ac_word=$2 | |
9571 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9573 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9575 | else | |
9576 | if test -n "$ac_ct_CC"; then | |
9577 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9578 | else | |
9579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9580 | for as_dir in $PATH | |
9581 | do | |
9582 | IFS=$as_save_IFS | |
9583 | test -z "$as_dir" && as_dir=. | |
9584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9586 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
9587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9588 | break 2 | |
8284b0c5 | 9589 | fi |
247f5006 VZ |
9590 | done |
9591 | done | |
9592 | ||
9593 | fi | |
9594 | fi | |
9595 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9596 | if test -n "$ac_ct_CC"; then | |
9597 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9598 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9599 | else | |
9600 | echo "$as_me:$LINENO: result: no" >&5 | |
9601 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 9602 | fi |
1e487827 | 9603 | |
247f5006 VZ |
9604 | test -n "$ac_ct_CC" && break |
9605 | done | |
f09359cf | 9606 | |
247f5006 VZ |
9607 | CC=$ac_ct_CC |
9608 | fi | |
f09359cf | 9609 | |
247f5006 VZ |
9610 | fi |
9611 | ||
9612 | ||
9613 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 | |
9614 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} | |
9615 | { (exit 1); exit 1; }; } | |
9616 | ||
9617 | # Provide some information about the compiler. | |
9618 | echo "$as_me:$LINENO:" \ | |
9619 | "checking for C compiler version" >&5 | |
9620 | ac_compiler=`set X $ac_compile; echo $2` | |
9621 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
9622 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
9623 | ac_status=$? | |
9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9625 | (exit $ac_status); } | |
9626 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
9627 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
9628 | ac_status=$? | |
9629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9630 | (exit $ac_status); } | |
9631 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
9632 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
9633 | ac_status=$? | |
9634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9635 | (exit $ac_status); } | |
7b4a847f | 9636 | |
247f5006 VZ |
9637 | cat >conftest.$ac_ext <<_ACEOF |
9638 | #line $LINENO "configure" | |
8284b0c5 | 9639 | #include "confdefs.h" |
5c6fa7d2 | 9640 | |
247f5006 VZ |
9641 | #ifdef F77_DUMMY_MAIN |
9642 | # ifdef __cplusplus | |
9643 | extern "C" | |
9644 | # endif | |
9645 | int F77_DUMMY_MAIN() { return 1; } | |
9646 | #endif | |
9647 | int | |
9648 | main () | |
9649 | { | |
9650 | ||
9651 | ; | |
9652 | return 0; | |
9653 | } | |
9654 | _ACEOF | |
9655 | ac_clean_files_save=$ac_clean_files | |
9656 | ac_clean_files="$ac_clean_files a.out a.exe" | |
9657 | # Try to create an executable without -o first, disregard a.out. | |
9658 | # It will help us diagnose broken compilers, and finding out an intuition | |
9659 | # of exeext. | |
9660 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
9661 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
9662 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
9663 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
9664 | (eval $ac_link_default) 2>&5 | |
9665 | ac_status=$? | |
9666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9667 | (exit $ac_status); }; then | |
9668 | # Find the output, starting from the most likely. This scheme is | |
9669 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
9670 | # resort. | |
9671 | ||
9672 | # Be careful to initialize this variable, since it used to be cached. | |
9673 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
9674 | ac_cv_exeext= | |
9675 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; | |
9676 | ls a.out conftest 2>/dev/null; | |
9677 | ls a.* conftest.* 2>/dev/null`; do | |
9678 | case $ac_file in | |
9679 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; | |
9680 | a.out ) # We found the default executable, but exeext='' is most | |
9681 | # certainly right. | |
9682 | break;; | |
9683 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
9684 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
9685 | export ac_cv_exeext | |
9686 | break;; | |
9687 | * ) break;; | |
9688 | esac | |
9689 | done | |
9690 | else | |
9691 | echo "$as_me: failed program was:" >&5 | |
9692 | cat conftest.$ac_ext >&5 | |
9693 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 | |
9694 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
9695 | { (exit 77); exit 77; }; } | |
9696 | fi | |
9697 | ||
9698 | ac_exeext=$ac_cv_exeext | |
9699 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
9700 | echo "${ECHO_T}$ac_file" >&6 | |
9701 | ||
9702 | # Check the compiler produces executables we can run. If not, either | |
9703 | # the compiler is broken, or we cross compile. | |
9704 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
9705 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
9706 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
9707 | # If not cross compiling, check that we can run a simple program. | |
9708 | if test "$cross_compiling" != yes; then | |
9709 | if { ac_try='./$ac_file' | |
9710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9711 | (eval $ac_try) 2>&5 | |
9712 | ac_status=$? | |
9713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9714 | (exit $ac_status); }; }; then | |
9715 | cross_compiling=no | |
698dcdb6 | 9716 | else |
247f5006 VZ |
9717 | if test "$cross_compiling" = maybe; then |
9718 | cross_compiling=yes | |
9719 | else | |
9720 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
9721 | If you meant to cross compile, use \`--host'." >&5 | |
9722 | echo "$as_me: error: cannot run C compiled programs. | |
9723 | If you meant to cross compile, use \`--host'." >&2;} | |
9724 | { (exit 1); exit 1; }; } | |
9725 | fi | |
698dcdb6 | 9726 | fi |
247f5006 VZ |
9727 | fi |
9728 | echo "$as_me:$LINENO: result: yes" >&5 | |
9729 | echo "${ECHO_T}yes" >&6 | |
9730 | ||
9731 | rm -f a.out a.exe conftest$ac_cv_exeext | |
9732 | ac_clean_files=$ac_clean_files_save | |
9733 | # Check the compiler produces executables we can run. If not, either | |
9734 | # the compiler is broken, or we cross compile. | |
9735 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
9736 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
9737 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
9738 | echo "${ECHO_T}$cross_compiling" >&6 | |
9739 | ||
9740 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
9741 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
9742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9743 | (eval $ac_link) 2>&5 | |
9744 | ac_status=$? | |
9745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9746 | (exit $ac_status); }; then | |
9747 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
9748 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
9749 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
9750 | # `rm'. | |
9751 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
9752 | case $ac_file in | |
9753 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
9754 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
9755 | export ac_cv_exeext | |
9756 | break;; | |
9757 | * ) break;; | |
9758 | esac | |
9759 | done | |
7b4a847f | 9760 | else |
247f5006 VZ |
9761 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
9762 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} | |
9763 | { (exit 1); exit 1; }; } | |
52127426 | 9764 | fi |
8284b0c5 | 9765 | |
247f5006 VZ |
9766 | rm -f conftest$ac_cv_exeext |
9767 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
9768 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
8284b0c5 | 9769 | |
247f5006 VZ |
9770 | rm -f conftest.$ac_ext |
9771 | EXEEXT=$ac_cv_exeext | |
9772 | ac_exeext=$EXEEXT | |
9773 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
9774 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
9775 | if test "${ac_cv_objext+set}" = set; then | |
9776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 9777 | else |
247f5006 VZ |
9778 | cat >conftest.$ac_ext <<_ACEOF |
9779 | #line $LINENO "configure" | |
9780 | #include "confdefs.h" | |
9781 | ||
9782 | #ifdef F77_DUMMY_MAIN | |
9783 | # ifdef __cplusplus | |
9784 | extern "C" | |
9785 | # endif | |
9786 | int F77_DUMMY_MAIN() { return 1; } | |
8284b0c5 | 9787 | #endif |
247f5006 VZ |
9788 | int |
9789 | main () | |
9790 | { | |
9791 | ||
9792 | ; | |
9793 | return 0; | |
9794 | } | |
9795 | _ACEOF | |
9796 | rm -f conftest.o conftest.obj | |
9797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9798 | (eval $ac_compile) 2>&5 | |
9799 | ac_status=$? | |
9800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9801 | (exit $ac_status); }; then | |
9802 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
9803 | case $ac_file in | |
9804 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
9805 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
9806 | break;; | |
9807 | esac | |
9808 | done | |
5c6fa7d2 | 9809 | else |
247f5006 VZ |
9810 | echo "$as_me: failed program was:" >&5 |
9811 | cat conftest.$ac_ext >&5 | |
9812 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 | |
9813 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} | |
9814 | { (exit 1); exit 1; }; } | |
8284b0c5 | 9815 | fi |
247f5006 VZ |
9816 | |
9817 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
8284b0c5 | 9818 | fi |
247f5006 VZ |
9819 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
9820 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
9821 | OBJEXT=$ac_cv_objext | |
9822 | ac_objext=$OBJEXT | |
9823 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
9824 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
9825 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
9826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9827 | else | |
9828 | cat >conftest.$ac_ext <<_ACEOF | |
9829 | #line $LINENO "configure" | |
9830 | #include "confdefs.h" | |
5c6fa7d2 | 9831 | |
247f5006 VZ |
9832 | #ifdef F77_DUMMY_MAIN |
9833 | # ifdef __cplusplus | |
9834 | extern "C" | |
9835 | # endif | |
9836 | int F77_DUMMY_MAIN() { return 1; } | |
9837 | #endif | |
9838 | int | |
9839 | main () | |
9840 | { | |
9841 | #ifndef __GNUC__ | |
9842 | choke me | |
9843 | #endif | |
1e487827 | 9844 | |
247f5006 VZ |
9845 | ; |
9846 | return 0; | |
9847 | } | |
9848 | _ACEOF | |
9849 | rm -f conftest.$ac_objext | |
9850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9851 | (eval $ac_compile) 2>&5 | |
9852 | ac_status=$? | |
9853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9854 | (exit $ac_status); } && | |
9855 | { ac_try='test -s conftest.$ac_objext' | |
9856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9857 | (eval $ac_try) 2>&5 | |
9858 | ac_status=$? | |
9859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9860 | (exit $ac_status); }; }; then | |
9861 | ac_compiler_gnu=yes | |
9862 | else | |
9863 | echo "$as_me: failed program was:" >&5 | |
9864 | cat conftest.$ac_ext >&5 | |
9865 | ac_compiler_gnu=no | |
9866 | fi | |
9867 | rm -f conftest.$ac_objext conftest.$ac_ext | |
9868 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
9869 | ||
9870 | fi | |
9871 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
9872 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
9873 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
9874 | ac_test_CFLAGS=${CFLAGS+set} | |
9875 | ac_save_CFLAGS=$CFLAGS | |
9876 | CFLAGS="-g" | |
9877 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
9878 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
9879 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
9880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9881 | else | |
9882 | cat >conftest.$ac_ext <<_ACEOF | |
9883 | #line $LINENO "configure" | |
9884 | #include "confdefs.h" | |
f09359cf | 9885 | |
247f5006 VZ |
9886 | #ifdef F77_DUMMY_MAIN |
9887 | # ifdef __cplusplus | |
9888 | extern "C" | |
9889 | # endif | |
9890 | int F77_DUMMY_MAIN() { return 1; } | |
9891 | #endif | |
9892 | int | |
9893 | main () | |
9894 | { | |
9895 | ||
9896 | ; | |
9897 | return 0; | |
9898 | } | |
9899 | _ACEOF | |
9900 | rm -f conftest.$ac_objext | |
9901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9902 | (eval $ac_compile) 2>&5 | |
9903 | ac_status=$? | |
9904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9905 | (exit $ac_status); } && | |
9906 | { ac_try='test -s conftest.$ac_objext' | |
9907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9908 | (eval $ac_try) 2>&5 | |
9909 | ac_status=$? | |
9910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9911 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
9912 | ac_cv_prog_cc_g=yes |
9913 | else | |
247f5006 VZ |
9914 | echo "$as_me: failed program was:" >&5 |
9915 | cat conftest.$ac_ext >&5 | |
9916 | ac_cv_prog_cc_g=no | |
10f2d63a | 9917 | fi |
247f5006 | 9918 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a | 9919 | fi |
247f5006 VZ |
9920 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
9921 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 9922 | if test "$ac_test_CFLAGS" = set; then |
247f5006 | 9923 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
9924 | elif test $ac_cv_prog_cc_g = yes; then |
9925 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9926 | CFLAGS="-g -O2" |
9927 | else | |
f09359cf | 9928 | CFLAGS="-g" |
10f2d63a | 9929 | fi |
5c0a20c3 | 9930 | else |
f09359cf VS |
9931 | if test "$GCC" = yes; then |
9932 | CFLAGS="-O2" | |
9933 | else | |
9934 | CFLAGS= | |
9935 | fi | |
10f2d63a | 9936 | fi |
247f5006 VZ |
9937 | # Some people use a C++ compiler to compile C. Since we use `exit', |
9938 | # in C++ we need to declare it. In case someone uses the same compiler | |
9939 | # for both compiling C and C++ we need to have the C++ compiler decide | |
9940 | # the declaration of exit, since it's the most demanding environment. | |
9941 | cat >conftest.$ac_ext <<_ACEOF | |
9942 | #ifndef __cplusplus | |
9943 | choke me | |
9944 | #endif | |
9945 | _ACEOF | |
9946 | rm -f conftest.$ac_objext | |
9947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9948 | (eval $ac_compile) 2>&5 | |
9949 | ac_status=$? | |
9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9951 | (exit $ac_status); } && | |
9952 | { ac_try='test -s conftest.$ac_objext' | |
9953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9954 | (eval $ac_try) 2>&5 | |
9955 | ac_status=$? | |
9956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9957 | (exit $ac_status); }; }; then | |
9958 | for ac_declaration in \ | |
9959 | ''\ | |
9960 | '#include <stdlib.h>' \ | |
9961 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
9962 | 'extern "C" void std::exit (int); using std::exit;' \ | |
9963 | 'extern "C" void exit (int) throw ();' \ | |
9964 | 'extern "C" void exit (int);' \ | |
9965 | 'void exit (int);' | |
9966 | do | |
9967 | cat >conftest.$ac_ext <<_ACEOF | |
9968 | #line $LINENO "configure" | |
9969 | #include "confdefs.h" | |
9970 | #include <stdlib.h> | |
9971 | $ac_declaration | |
9972 | #ifdef F77_DUMMY_MAIN | |
9973 | # ifdef __cplusplus | |
9974 | extern "C" | |
9975 | # endif | |
9976 | int F77_DUMMY_MAIN() { return 1; } | |
9977 | #endif | |
9978 | int | |
9979 | main () | |
9980 | { | |
9981 | exit (42); | |
9982 | ; | |
9983 | return 0; | |
9984 | } | |
9985 | _ACEOF | |
9986 | rm -f conftest.$ac_objext | |
9987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9988 | (eval $ac_compile) 2>&5 | |
9989 | ac_status=$? | |
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9991 | (exit $ac_status); } && | |
9992 | { ac_try='test -s conftest.$ac_objext' | |
9993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9994 | (eval $ac_try) 2>&5 | |
9995 | ac_status=$? | |
9996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9997 | (exit $ac_status); }; }; then | |
9998 | : | |
9999 | else | |
10000 | echo "$as_me: failed program was:" >&5 | |
10001 | cat conftest.$ac_ext >&5 | |
10002 | continue | |
10003 | fi | |
10004 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10005 | cat >conftest.$ac_ext <<_ACEOF | |
10006 | #line $LINENO "configure" | |
10007 | #include "confdefs.h" | |
10008 | $ac_declaration | |
10009 | #ifdef F77_DUMMY_MAIN | |
10010 | # ifdef __cplusplus | |
10011 | extern "C" | |
10012 | # endif | |
10013 | int F77_DUMMY_MAIN() { return 1; } | |
10014 | #endif | |
10015 | int | |
10016 | main () | |
10017 | { | |
10018 | exit (42); | |
10019 | ; | |
10020 | return 0; | |
10021 | } | |
10022 | _ACEOF | |
10023 | rm -f conftest.$ac_objext | |
10024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10025 | (eval $ac_compile) 2>&5 | |
10026 | ac_status=$? | |
10027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10028 | (exit $ac_status); } && | |
10029 | { ac_try='test -s conftest.$ac_objext' | |
10030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10031 | (eval $ac_try) 2>&5 | |
10032 | ac_status=$? | |
10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10034 | (exit $ac_status); }; }; then | |
10035 | break | |
10036 | else | |
10037 | echo "$as_me: failed program was:" >&5 | |
10038 | cat conftest.$ac_ext >&5 | |
10039 | fi | |
10040 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10041 | done | |
10042 | rm -f conftest* | |
10043 | if test -n "$ac_declaration"; then | |
10044 | echo '#ifdef __cplusplus' >>confdefs.h | |
10045 | echo $ac_declaration >>confdefs.h | |
10046 | echo '#endif' >>confdefs.h | |
10047 | fi | |
10048 | ||
10049 | else | |
10050 | echo "$as_me: failed program was:" >&5 | |
10051 | cat conftest.$ac_ext >&5 | |
10052 | fi | |
10053 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10054 | ac_ext=c | |
10055 | ac_cpp='$CPP $CPPFLAGS' | |
10056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10059 | ||
10f2d63a VZ |
10060 | |
10061 | ||
247f5006 VZ |
10062 | ac_ext=c |
10063 | ac_cpp='$CPP $CPPFLAGS' | |
10064 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10065 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10066 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10067 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10068 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10069 | # On Suns, sometimes $CPP names a directory. |
10070 | if test -n "$CPP" && test -d "$CPP"; then | |
10071 | CPP= | |
10072 | fi | |
10073 | if test -z "$CPP"; then | |
247f5006 VZ |
10074 | if test "${ac_cv_prog_CPP+set}" = set; then |
10075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10076 | else | |
10077 | # Double quotes because CPP needs to be expanded | |
10078 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10079 | do | |
10080 | ac_preproc_ok=false | |
10081 | for ac_c_preproc_warn_flag in '' yes | |
10082 | do | |
10083 | # Use a header file that comes with gcc, so configuring glibc | |
10084 | # with a fresh cross-compiler works. | |
10f2d63a | 10085 | # On the NeXT, cc -E runs the code through the compiler's parser, |
247f5006 VZ |
10086 | # not just through cpp. "Syntax error" is here to catch this case. |
10087 | cat >conftest.$ac_ext <<_ACEOF | |
10088 | #line $LINENO "configure" | |
10f2d63a VZ |
10089 | #include "confdefs.h" |
10090 | #include <assert.h> | |
247f5006 VZ |
10091 | Syntax error |
10092 | _ACEOF | |
10093 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10094 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10095 | ac_status=$? | |
10096 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10097 | rm -f conftest.er1 | |
10098 | cat conftest.err >&5 | |
10099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10100 | (exit $ac_status); } >/dev/null; then | |
10101 | if test -s conftest.err; then | |
10102 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10103 | else | |
10104 | ac_cpp_err= | |
10105 | fi | |
10106 | else | |
10107 | ac_cpp_err=yes | |
10108 | fi | |
10109 | if test -z "$ac_cpp_err"; then | |
10f2d63a VZ |
10110 | : |
10111 | else | |
247f5006 | 10112 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 10113 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
10114 | # Broken: fails on valid input. |
10115 | continue | |
10116 | fi | |
10117 | rm -f conftest.err conftest.$ac_ext | |
10118 | ||
10119 | # OK, works on sane cases. Now check whether non-existent headers | |
10120 | # can be detected and how. | |
10121 | cat >conftest.$ac_ext <<_ACEOF | |
10122 | #line $LINENO "configure" | |
f09359cf | 10123 | #include "confdefs.h" |
247f5006 VZ |
10124 | #include <ac_nonexistent.h> |
10125 | _ACEOF | |
10126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10128 | ac_status=$? | |
10129 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10130 | rm -f conftest.er1 | |
10131 | cat conftest.err >&5 | |
10132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10133 | (exit $ac_status); } >/dev/null; then | |
10134 | if test -s conftest.err; then | |
10135 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10136 | else | |
10137 | ac_cpp_err= | |
10138 | fi | |
f09359cf | 10139 | else |
247f5006 VZ |
10140 | ac_cpp_err=yes |
10141 | fi | |
10142 | if test -z "$ac_cpp_err"; then | |
10143 | # Broken: success on invalid input. | |
10144 | continue | |
10145 | else | |
10146 | echo "$as_me: failed program was:" >&5 | |
f09359cf | 10147 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
10148 | # Passes both tests. |
10149 | ac_preproc_ok=: | |
10150 | break | |
10151 | fi | |
10152 | rm -f conftest.err conftest.$ac_ext | |
10153 | ||
10154 | done | |
10155 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10156 | rm -f conftest.err conftest.$ac_ext | |
10157 | if $ac_preproc_ok; then | |
10158 | break | |
10159 | fi | |
10160 | ||
10161 | done | |
10162 | ac_cv_prog_CPP=$CPP | |
10163 | ||
10164 | fi | |
10165 | CPP=$ac_cv_prog_CPP | |
10166 | else | |
10167 | ac_cv_prog_CPP=$CPP | |
10168 | fi | |
10169 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10170 | echo "${ECHO_T}$CPP" >&6 | |
10171 | ac_preproc_ok=false | |
10172 | for ac_c_preproc_warn_flag in '' yes | |
10173 | do | |
10174 | # Use a header file that comes with gcc, so configuring glibc | |
10175 | # with a fresh cross-compiler works. | |
10176 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10177 | # not just through cpp. "Syntax error" is here to catch this case. | |
10178 | cat >conftest.$ac_ext <<_ACEOF | |
10179 | #line $LINENO "configure" | |
10f2d63a VZ |
10180 | #include "confdefs.h" |
10181 | #include <assert.h> | |
247f5006 VZ |
10182 | Syntax error |
10183 | _ACEOF | |
10184 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10185 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10186 | ac_status=$? | |
10187 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10188 | rm -f conftest.er1 | |
10189 | cat conftest.err >&5 | |
10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10191 | (exit $ac_status); } >/dev/null; then | |
10192 | if test -s conftest.err; then | |
10193 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10194 | else | |
10195 | ac_cpp_err= | |
10196 | fi | |
10197 | else | |
10198 | ac_cpp_err=yes | |
10199 | fi | |
10200 | if test -z "$ac_cpp_err"; then | |
10f2d63a VZ |
10201 | : |
10202 | else | |
247f5006 | 10203 | echo "$as_me: failed program was:" >&5 |
10f2d63a | 10204 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
10205 | # Broken: fails on valid input. |
10206 | continue | |
579d8138 | 10207 | fi |
247f5006 VZ |
10208 | rm -f conftest.err conftest.$ac_ext |
10209 | ||
10210 | # OK, works on sane cases. Now check whether non-existent headers | |
10211 | # can be detected and how. | |
10212 | cat >conftest.$ac_ext <<_ACEOF | |
10213 | #line $LINENO "configure" | |
10214 | #include "confdefs.h" | |
10215 | #include <ac_nonexistent.h> | |
10216 | _ACEOF | |
10217 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10218 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10219 | ac_status=$? | |
10220 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
10221 | rm -f conftest.er1 | |
10222 | cat conftest.err >&5 | |
10223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10224 | (exit $ac_status); } >/dev/null; then | |
10225 | if test -s conftest.err; then | |
10226 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10227 | else | |
10228 | ac_cpp_err= | |
10229 | fi | |
10230 | else | |
10231 | ac_cpp_err=yes | |
52127426 | 10232 | fi |
247f5006 VZ |
10233 | if test -z "$ac_cpp_err"; then |
10234 | # Broken: success on invalid input. | |
10235 | continue | |
10236 | else | |
10237 | echo "$as_me: failed program was:" >&5 | |
10238 | cat conftest.$ac_ext >&5 | |
10239 | # Passes both tests. | |
10240 | ac_preproc_ok=: | |
10241 | break | |
8284b0c5 | 10242 | fi |
247f5006 VZ |
10243 | rm -f conftest.err conftest.$ac_ext |
10244 | ||
10245 | done | |
10246 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10247 | rm -f conftest.err conftest.$ac_ext | |
10248 | if $ac_preproc_ok; then | |
10249 | : | |
10f2d63a | 10250 | else |
247f5006 VZ |
10251 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
10252 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
10253 | { (exit 1); exit 1; }; } | |
10f2d63a | 10254 | fi |
10f2d63a | 10255 | |
247f5006 VZ |
10256 | ac_ext=c |
10257 | ac_cpp='$CPP $CPPFLAGS' | |
10258 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10259 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10260 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10261 | ||
10262 | ||
10263 | if test $ac_cv_c_compiler_gnu = yes; then | |
10264 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10265 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10266 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10268 | else |
10269 | ac_pattern="Autoconf.*'x'" | |
247f5006 VZ |
10270 | cat >conftest.$ac_ext <<_ACEOF |
10271 | #line $LINENO "configure" | |
10f2d63a VZ |
10272 | #include "confdefs.h" |
10273 | #include <sgtty.h> | |
10274 | Autoconf TIOCGETP | |
247f5006 | 10275 | _ACEOF |
10f2d63a VZ |
10276 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
10277 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
10f2d63a VZ |
10278 | ac_cv_prog_gcc_traditional=yes |
10279 | else | |
10f2d63a VZ |
10280 | ac_cv_prog_gcc_traditional=no |
10281 | fi | |
10282 | rm -f conftest* | |
10283 | ||
8284b0c5 | 10284 | |
10f2d63a | 10285 | if test $ac_cv_prog_gcc_traditional = no; then |
247f5006 VZ |
10286 | cat >conftest.$ac_ext <<_ACEOF |
10287 | #line $LINENO "configure" | |
10f2d63a VZ |
10288 | #include "confdefs.h" |
10289 | #include <termio.h> | |
10290 | Autoconf TCGETA | |
247f5006 | 10291 | _ACEOF |
10f2d63a VZ |
10292 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
10293 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
10f2d63a VZ |
10294 | ac_cv_prog_gcc_traditional=yes |
10295 | fi | |
10296 | rm -f conftest* | |
10297 | ||
10298 | fi | |
10299 | fi | |
247f5006 VZ |
10300 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10301 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10302 | if test $ac_cv_prog_gcc_traditional = yes; then |
10303 | CC="$CC -traditional" | |
10304 | fi | |
10305 | fi | |
10306 | ||
8284b0c5 MB |
10307 | |
10308 | ||
247f5006 VZ |
10309 | |
10310 | ac_ext=cc | |
1e487827 | 10311 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
10312 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10313 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10314 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10315 | |
698dcdb6 | 10316 | |
ec603395 | 10317 | CXXFLAGS=${CXXFLAGS:=} |
247f5006 VZ |
10318 | ac_ext=cc |
10319 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10320 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10321 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10322 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10323 | if test -n "$ac_tool_prefix"; then | |
10324 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10325 | do | |
10326 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10327 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10328 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10329 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10330 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10332 | else |
10333 | if test -n "$CXX"; then | |
10334 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10335 | else | |
247f5006 VZ |
10336 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10337 | for as_dir in $PATH | |
10338 | do | |
10339 | IFS=$as_save_IFS | |
10340 | test -z "$as_dir" && as_dir=. | |
10341 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10342 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10343 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10344 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10345 | break 2 | |
10346 | fi | |
10347 | done | |
10348 | done | |
10349 | ||
10f2d63a VZ |
10350 | fi |
10351 | fi | |
247f5006 | 10352 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10353 | if test -n "$CXX"; then |
247f5006 VZ |
10354 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10355 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10356 | else |
247f5006 VZ |
10357 | echo "$as_me:$LINENO: result: no" >&5 |
10358 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10359 | fi |
10360 | ||
247f5006 VZ |
10361 | test -n "$CXX" && break |
10362 | done | |
10363 | fi | |
10364 | if test -z "$CXX"; then | |
10365 | ac_ct_CXX=$CXX | |
10366 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10367 | do | |
10368 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10369 | set dummy $ac_prog; ac_word=$2 | |
10370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10372 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
10373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10374 | else | |
10375 | if test -n "$ac_ct_CXX"; then | |
10376 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
10377 | else | |
10378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10379 | for as_dir in $PATH | |
10380 | do | |
10381 | IFS=$as_save_IFS | |
10382 | test -z "$as_dir" && as_dir=. | |
10383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10384 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10385 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
10386 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10387 | break 2 | |
10388 | fi | |
10389 | done | |
10f2d63a | 10390 | done |
f09359cf | 10391 | |
247f5006 VZ |
10392 | fi |
10393 | fi | |
10394 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
10395 | if test -n "$ac_ct_CXX"; then | |
10396 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
10397 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
8284b0c5 | 10398 | else |
247f5006 VZ |
10399 | echo "$as_me:$LINENO: result: no" >&5 |
10400 | echo "${ECHO_T}no" >&6 | |
8284b0c5 | 10401 | fi |
8284b0c5 | 10402 | |
247f5006 VZ |
10403 | test -n "$ac_ct_CXX" && break |
10404 | done | |
10405 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
10406 | ||
10407 | CXX=$ac_ct_CXX | |
10408 | fi | |
10409 | ||
10410 | ||
10411 | # Provide some information about the compiler. | |
10412 | echo "$as_me:$LINENO:" \ | |
10413 | "checking for C++ compiler version" >&5 | |
10414 | ac_compiler=`set X $ac_compile; echo $2` | |
10415 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10416 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10417 | ac_status=$? | |
10418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10419 | (exit $ac_status); } | |
10420 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10421 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10422 | ac_status=$? | |
10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10424 | (exit $ac_status); } | |
10425 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10426 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10427 | ac_status=$? | |
10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10429 | (exit $ac_status); } | |
10430 | ||
10431 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
10432 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
10433 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
10434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10435 | else | |
10436 | cat >conftest.$ac_ext <<_ACEOF | |
10437 | #line $LINENO "configure" | |
10438 | #include "confdefs.h" | |
8284b0c5 | 10439 | |
247f5006 VZ |
10440 | #ifdef F77_DUMMY_MAIN |
10441 | # ifdef __cplusplus | |
10442 | extern "C" | |
10443 | # endif | |
10444 | int F77_DUMMY_MAIN() { return 1; } | |
10445 | #endif | |
10446 | int | |
10447 | main () | |
10448 | { | |
10449 | #ifndef __GNUC__ | |
10450 | choke me | |
10f2d63a | 10451 | #endif |
10f2d63a | 10452 | |
247f5006 VZ |
10453 | ; |
10454 | return 0; | |
10455 | } | |
10456 | _ACEOF | |
10457 | rm -f conftest.$ac_objext | |
10458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10459 | (eval $ac_compile) 2>&5 | |
10460 | ac_status=$? | |
10461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10462 | (exit $ac_status); } && | |
10463 | { ac_try='test -s conftest.$ac_objext' | |
10464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10465 | (eval $ac_try) 2>&5 | |
10466 | ac_status=$? | |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); }; }; then | |
10469 | ac_compiler_gnu=yes | |
10470 | else | |
10471 | echo "$as_me: failed program was:" >&5 | |
10472 | cat conftest.$ac_ext >&5 | |
10473 | ac_compiler_gnu=no | |
10474 | fi | |
10475 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10476 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
10477 | ||
10478 | fi | |
10479 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
10480 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
10481 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
10482 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
10483 | ac_save_CXXFLAGS=$CXXFLAGS | |
10484 | CXXFLAGS="-g" | |
10485 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
10486 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
10487 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
10488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10489 | else | |
10490 | cat >conftest.$ac_ext <<_ACEOF | |
10491 | #line $LINENO "configure" | |
10492 | #include "confdefs.h" | |
10f2d63a | 10493 | |
247f5006 VZ |
10494 | #ifdef F77_DUMMY_MAIN |
10495 | # ifdef __cplusplus | |
10496 | extern "C" | |
10497 | # endif | |
10498 | int F77_DUMMY_MAIN() { return 1; } | |
10499 | #endif | |
10500 | int | |
10501 | main () | |
10502 | { | |
f09359cf | 10503 | |
247f5006 VZ |
10504 | ; |
10505 | return 0; | |
10506 | } | |
10507 | _ACEOF | |
10508 | rm -f conftest.$ac_objext | |
10509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10510 | (eval $ac_compile) 2>&5 | |
10511 | ac_status=$? | |
10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10513 | (exit $ac_status); } && | |
10514 | { ac_try='test -s conftest.$ac_objext' | |
10515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10516 | (eval $ac_try) 2>&5 | |
10517 | ac_status=$? | |
10518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10519 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10520 | ac_cv_prog_cxx_g=yes |
10521 | else | |
247f5006 VZ |
10522 | echo "$as_me: failed program was:" >&5 |
10523 | cat conftest.$ac_ext >&5 | |
10524 | ac_cv_prog_cxx_g=no | |
10f2d63a | 10525 | fi |
247f5006 | 10526 | rm -f conftest.$ac_objext conftest.$ac_ext |
10f2d63a | 10527 | fi |
247f5006 VZ |
10528 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
10529 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 10530 | if test "$ac_test_CXXFLAGS" = set; then |
247f5006 | 10531 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
10532 | elif test $ac_cv_prog_cxx_g = yes; then |
10533 | if test "$GXX" = yes; then | |
10f2d63a VZ |
10534 | CXXFLAGS="-g -O2" |
10535 | else | |
f09359cf | 10536 | CXXFLAGS="-g" |
10f2d63a | 10537 | fi |
5c0a20c3 | 10538 | else |
f09359cf VS |
10539 | if test "$GXX" = yes; then |
10540 | CXXFLAGS="-O2" | |
10541 | else | |
10542 | CXXFLAGS= | |
10543 | fi | |
10f2d63a | 10544 | fi |
247f5006 VZ |
10545 | for ac_declaration in \ |
10546 | ''\ | |
10547 | '#include <stdlib.h>' \ | |
10548 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
10549 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10550 | 'extern "C" void exit (int) throw ();' \ | |
10551 | 'extern "C" void exit (int);' \ | |
10552 | 'void exit (int);' | |
10553 | do | |
10554 | cat >conftest.$ac_ext <<_ACEOF | |
10555 | #line $LINENO "configure" | |
10556 | #include "confdefs.h" | |
10557 | #include <stdlib.h> | |
10558 | $ac_declaration | |
10559 | #ifdef F77_DUMMY_MAIN | |
10560 | # ifdef __cplusplus | |
10561 | extern "C" | |
10562 | # endif | |
10563 | int F77_DUMMY_MAIN() { return 1; } | |
10564 | #endif | |
10565 | int | |
10566 | main () | |
10567 | { | |
10568 | exit (42); | |
10569 | ; | |
10570 | return 0; | |
10571 | } | |
10572 | _ACEOF | |
10573 | rm -f conftest.$ac_objext | |
10574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10575 | (eval $ac_compile) 2>&5 | |
10576 | ac_status=$? | |
10577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10578 | (exit $ac_status); } && | |
10579 | { ac_try='test -s conftest.$ac_objext' | |
10580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10581 | (eval $ac_try) 2>&5 | |
10582 | ac_status=$? | |
10583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10584 | (exit $ac_status); }; }; then | |
10585 | : | |
10586 | else | |
10587 | echo "$as_me: failed program was:" >&5 | |
10588 | cat conftest.$ac_ext >&5 | |
10589 | continue | |
10590 | fi | |
10591 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10592 | cat >conftest.$ac_ext <<_ACEOF | |
10593 | #line $LINENO "configure" | |
10594 | #include "confdefs.h" | |
10595 | $ac_declaration | |
10596 | #ifdef F77_DUMMY_MAIN | |
10597 | # ifdef __cplusplus | |
10598 | extern "C" | |
10599 | # endif | |
10600 | int F77_DUMMY_MAIN() { return 1; } | |
10601 | #endif | |
10602 | int | |
10603 | main () | |
10604 | { | |
10605 | exit (42); | |
10606 | ; | |
10607 | return 0; | |
10608 | } | |
10609 | _ACEOF | |
10610 | rm -f conftest.$ac_objext | |
10611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10612 | (eval $ac_compile) 2>&5 | |
10613 | ac_status=$? | |
10614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10615 | (exit $ac_status); } && | |
10616 | { ac_try='test -s conftest.$ac_objext' | |
10617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10618 | (eval $ac_try) 2>&5 | |
10619 | ac_status=$? | |
10620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10621 | (exit $ac_status); }; }; then | |
10622 | break | |
10623 | else | |
10624 | echo "$as_me: failed program was:" >&5 | |
10625 | cat conftest.$ac_ext >&5 | |
10626 | fi | |
10627 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10628 | done | |
10629 | rm -f conftest* | |
10630 | if test -n "$ac_declaration"; then | |
10631 | echo '#ifdef __cplusplus' >>confdefs.h | |
10632 | echo $ac_declaration >>confdefs.h | |
10633 | echo '#endif' >>confdefs.h | |
10634 | fi | |
10635 | ||
10636 | ac_ext=cc | |
10637 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10638 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10639 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10640 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
10641 | |
10642 | ||
10f2d63a | 10643 | ac_ext=c |
10f2d63a | 10644 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
10645 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10646 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10647 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
10648 | |
10649 | ||
247f5006 VZ |
10650 | if test -n "$ac_tool_prefix"; then |
10651 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
10652 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
10653 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10655 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
10656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10657 | else |
10658 | if test -n "$RANLIB"; then | |
10659 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10660 | else | |
247f5006 VZ |
10661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10662 | for as_dir in $PATH | |
10663 | do | |
10664 | IFS=$as_save_IFS | |
10665 | test -z "$as_dir" && as_dir=. | |
10666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10668 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
10669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10670 | break 2 | |
10671 | fi | |
10672 | done | |
10673 | done | |
10674 | ||
10f2d63a VZ |
10675 | fi |
10676 | fi | |
247f5006 | 10677 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 10678 | if test -n "$RANLIB"; then |
247f5006 VZ |
10679 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
10680 | echo "${ECHO_T}$RANLIB" >&6 | |
10681 | else | |
10682 | echo "$as_me:$LINENO: result: no" >&5 | |
10683 | echo "${ECHO_T}no" >&6 | |
10684 | fi | |
10685 | ||
10686 | fi | |
10687 | if test -z "$ac_cv_prog_RANLIB"; then | |
10688 | ac_ct_RANLIB=$RANLIB | |
10689 | # Extract the first word of "ranlib", so it can be a program name with args. | |
10690 | set dummy ranlib; ac_word=$2 | |
10691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10693 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
10694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10695 | else | |
10696 | if test -n "$ac_ct_RANLIB"; then | |
10697 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
10698 | else | |
10699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10700 | for as_dir in $PATH | |
10701 | do | |
10702 | IFS=$as_save_IFS | |
10703 | test -z "$as_dir" && as_dir=. | |
10704 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10705 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10706 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
10707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10708 | break 2 | |
10709 | fi | |
10710 | done | |
10711 | done | |
10712 | ||
10713 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
10714 | fi | |
10715 | fi | |
10716 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
10717 | if test -n "$ac_ct_RANLIB"; then | |
10718 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
10719 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10720 | else | |
10721 | echo "$as_me:$LINENO: result: no" >&5 | |
10722 | echo "${ECHO_T}no" >&6 | |
10723 | fi | |
10724 | ||
10725 | RANLIB=$ac_ct_RANLIB | |
328a083c | 10726 | else |
247f5006 | 10727 | RANLIB="$ac_cv_prog_RANLIB" |
328a083c RR |
10728 | fi |
10729 | ||
10f2d63a VZ |
10730 | |
10731 | # Extract the first word of "ar", so it can be a program name with args. | |
10732 | set dummy ar; ac_word=$2 | |
247f5006 VZ |
10733 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10735 | if test "${ac_cv_prog_AR+set}" = set; then | |
10736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10737 | else |
10738 | if test -n "$AR"; then | |
10739 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
10740 | else | |
247f5006 VZ |
10741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10742 | for as_dir in $PATH | |
10743 | do | |
10744 | IFS=$as_save_IFS | |
10745 | test -z "$as_dir" && as_dir=. | |
10746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10747 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10748 | ac_cv_prog_AR="ar" | |
10749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10750 | break 2 | |
10751 | fi | |
10752 | done | |
10753 | done | |
10754 | ||
10f2d63a VZ |
10755 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
10756 | fi | |
10757 | fi | |
247f5006 | 10758 | AR=$ac_cv_prog_AR |
10f2d63a | 10759 | if test -n "$AR"; then |
247f5006 VZ |
10760 | echo "$as_me:$LINENO: result: $AR" >&5 |
10761 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 10762 | else |
247f5006 VZ |
10763 | echo "$as_me:$LINENO: result: no" >&5 |
10764 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10765 | fi |
10766 | ||
8284b0c5 | 10767 | |
6054113a | 10768 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
10769 | # so one script is as good as another. But avoid the broken or |
10770 | # incompatible versions: | |
10771 | # SysV /etc/install, /usr/sbin/install | |
10772 | # SunOS /usr/etc/install | |
10773 | # IRIX /sbin/install | |
10774 | # AIX /bin/install | |
247f5006 | 10775 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 10776 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
10777 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
10778 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
10779 | # ./install, which can be erroneously created by make from ./install.sh. | |
247f5006 VZ |
10780 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
10781 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 10782 | if test -z "$INSTALL"; then |
247f5006 VZ |
10783 | if test "${ac_cv_path_install+set}" = set; then |
10784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10785 | else | |
10786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10787 | for as_dir in $PATH | |
10788 | do | |
10789 | IFS=$as_save_IFS | |
10790 | test -z "$as_dir" && as_dir=. | |
10791 | # Account for people who put trailing slashes in PATH elements. | |
10792 | case $as_dir/ in | |
10793 | ./ | .// | /cC/* | \ | |
10794 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
10795 | /usr/ucb/* ) ;; | |
10796 | *) | |
10797 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
10798 | # Don't use installbsd from OSF since it installs stuff as root | |
10799 | # by default. | |
10800 | for ac_prog in ginstall scoinst install; do | |
10801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10802 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
10803 | if test $ac_prog = install && | |
10804 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10805 | # AIX install. It has an incompatible calling convention. | |
10806 | : | |
10807 | elif test $ac_prog = install && | |
10808 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
10809 | # program-specific install script used by HP pwplus--don't use. | |
10810 | : | |
10811 | else | |
10812 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
10813 | break 3 | |
10814 | fi | |
10815 | fi | |
10f2d63a | 10816 | done |
247f5006 VZ |
10817 | done |
10818 | ;; | |
10819 | esac | |
10820 | done | |
10821 | ||
10f2d63a VZ |
10822 | |
10823 | fi | |
10824 | if test "${ac_cv_path_install+set}" = set; then | |
247f5006 | 10825 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
10826 | else |
10827 | # As a last resort, use the slow shell script. We don't cache a | |
10828 | # path for INSTALL within a source directory, because that will | |
10829 | # break other packages using the cache if that directory is | |
10830 | # removed, or if the path is relative. | |
247f5006 | 10831 | INSTALL=$ac_install_sh |
10f2d63a VZ |
10832 | fi |
10833 | fi | |
247f5006 VZ |
10834 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
10835 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
10836 | |
10837 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
10838 | # It thinks the first close brace ends the variable substitution. | |
10839 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
10840 | ||
247f5006 | 10841 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 10842 | |
10f2d63a VZ |
10843 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
10844 | ||
8284b0c5 | 10845 | |
1d1b75ac VZ |
10846 | case ${INSTALL} in |
10847 | /* ) # Absolute | |
10848 | ;; | |
3bd8fb5f | 10849 | *) |
1d1b75ac VZ |
10850 | INSTALL=`pwd`/${INSTALL} ;; |
10851 | esac | |
10852 | ||
8284b0c5 | 10853 | |
6054113a GD |
10854 | case "${host}" in |
10855 | ||
b5853384 | 10856 | powerpc-*-darwin* ) |
eb99ae0b GD |
10857 | INSTALL_PROGRAM="cp -fp" |
10858 | INSTALL_DATA="cp -fp" | |
6054113a GD |
10859 | ;; |
10860 | *) | |
10861 | ;; | |
d6853540 | 10862 | esac |
698dcdb6 | 10863 | |
10f2d63a VZ |
10864 | # Extract the first word of "strip", so it can be a program name with args. |
10865 | set dummy strip; ac_word=$2 | |
247f5006 VZ |
10866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10868 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10870 | else |
10871 | if test -n "$STRIP"; then | |
10872 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
10873 | else | |
247f5006 VZ |
10874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10875 | for as_dir in $PATH | |
10876 | do | |
10877 | IFS=$as_save_IFS | |
10878 | test -z "$as_dir" && as_dir=. | |
10879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10881 | ac_cv_prog_STRIP="strip" | |
10882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10883 | break 2 | |
10884 | fi | |
10885 | done | |
10886 | done | |
10887 | ||
10f2d63a VZ |
10888 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
10889 | fi | |
10890 | fi | |
247f5006 | 10891 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 10892 | if test -n "$STRIP"; then |
247f5006 VZ |
10893 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
10894 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 10895 | else |
247f5006 VZ |
10896 | echo "$as_me:$LINENO: result: no" >&5 |
10897 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10898 | fi |
10899 | ||
5c6fa7d2 | 10900 | |
247f5006 VZ |
10901 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
10902 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
10903 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
10904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 10905 | else |
247f5006 | 10906 | |
414eab6d | 10907 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 10908 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
10909 | wx_cv_prog_makeisgnu="yes" |
10910 | else | |
10911 | wx_cv_prog_makeisgnu="no" | |
10912 | fi | |
10913 | ||
10914 | fi | |
247f5006 VZ |
10915 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
10916 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
10917 | |
10918 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
10919 | IF_GNU_MAKE="" | |
10920 | else | |
10921 | IF_GNU_MAKE="#" | |
10922 | fi | |
10923 | ||
8284b0c5 MB |
10924 | |
10925 | ||
414eab6d | 10926 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
247f5006 VZ |
10927 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
10928 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
10929 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
10930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 10931 | else |
247f5006 | 10932 | |
10f2d63a VZ |
10933 | cat - << EOF > confMake |
10934 | check : file | |
10935 | cp \$? \$@ | |
10936 | cp \$? final_file | |
10937 | EOF | |
10938 | ||
10939 | if test ! -d sub ; then | |
10940 | mkdir sub | |
10941 | fi | |
10942 | echo dummy > sub/file | |
f6bcfd97 | 10943 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
10944 | RESULT=$? |
10945 | rm -f sub/file check final_file confMake | |
10946 | rmdir sub | |
10947 | if test "$RESULT" = 0; then | |
04e7a216 | 10948 | wx_cv_prog_makevpath="yes" |
10f2d63a | 10949 | else |
04e7a216 VZ |
10950 | wx_cv_prog_makevpath="no" |
10951 | fi | |
10952 | ||
10953 | fi | |
247f5006 VZ |
10954 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
10955 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
10956 | |
10957 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
247f5006 VZ |
10958 | { { echo "$as_me:$LINENO: error: |
10959 | You need a make-utility that is able to use the variable | |
10960 | VPATH correctly. | |
10961 | If your version of make does not support VPATH correctly, | |
10962 | please install GNU-make (possibly as gmake), and start | |
10963 | configure with the following command: | |
10964 | export MAKE=gmake; ./configure for sh-type shells | |
10965 | setenv MAKE gmake; ./configure for csh-type shells | |
10966 | Also please do remember to use gmake in this case every time | |
10967 | you are trying to compile. | |
10968 | " >&5 | |
10969 | echo "$as_me: error: | |
5c6fa7d2 RR |
10970 | You need a make-utility that is able to use the variable |
10971 | VPATH correctly. | |
10972 | If your version of make does not support VPATH correctly, | |
10973 | please install GNU-make (possibly as gmake), and start | |
10974 | configure with the following command: | |
10975 | export MAKE=gmake; ./configure for sh-type shells | |
10976 | setenv MAKE gmake; ./configure for csh-type shells | |
10977 | Also please do remember to use gmake in this case every time | |
10978 | you are trying to compile. | |
247f5006 VZ |
10979 | " >&2;} |
10980 | { (exit 1); exit 1; }; } | |
10981 | fi fi | |
10f2d63a VZ |
10982 | for ac_prog in 'bison -y' byacc |
10983 | do | |
247f5006 | 10984 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 10985 | set dummy $ac_prog; ac_word=$2 |
247f5006 VZ |
10986 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10988 | if test "${ac_cv_prog_YACC+set}" = set; then | |
10989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10990 | else |
10991 | if test -n "$YACC"; then | |
10992 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
10993 | else | |
247f5006 VZ |
10994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10995 | for as_dir in $PATH | |
10996 | do | |
10997 | IFS=$as_save_IFS | |
10998 | test -z "$as_dir" && as_dir=. | |
10999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11001 | ac_cv_prog_YACC="$ac_prog" | |
11002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11003 | break 2 | |
11004 | fi | |
11005 | done | |
11006 | done | |
11007 | ||
10f2d63a VZ |
11008 | fi |
11009 | fi | |
247f5006 | 11010 | YACC=$ac_cv_prog_YACC |
10f2d63a | 11011 | if test -n "$YACC"; then |
247f5006 VZ |
11012 | echo "$as_me:$LINENO: result: $YACC" >&5 |
11013 | echo "${ECHO_T}$YACC" >&6 | |
10f2d63a | 11014 | else |
247f5006 VZ |
11015 | echo "$as_me:$LINENO: result: no" >&5 |
11016 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11017 | fi |
11018 | ||
247f5006 | 11019 | test -n "$YACC" && break |
10f2d63a VZ |
11020 | done |
11021 | test -n "$YACC" || YACC="yacc" | |
11022 | ||
8284b0c5 | 11023 | |
247f5006 VZ |
11024 | for ac_prog in flex lex |
11025 | do | |
11026 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11027 | set dummy $ac_prog; ac_word=$2 | |
11028 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11029 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11030 | if test "${ac_cv_prog_LEX+set}" = set; then | |
11031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11032 | else |
11033 | if test -n "$LEX"; then | |
11034 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
11035 | else | |
247f5006 VZ |
11036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11037 | for as_dir in $PATH | |
11038 | do | |
11039 | IFS=$as_save_IFS | |
11040 | test -z "$as_dir" && as_dir=. | |
11041 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11042 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11043 | ac_cv_prog_LEX="$ac_prog" | |
11044 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11045 | break 2 | |
11046 | fi | |
11047 | done | |
11048 | done | |
11049 | ||
10f2d63a VZ |
11050 | fi |
11051 | fi | |
247f5006 | 11052 | LEX=$ac_cv_prog_LEX |
10f2d63a | 11053 | if test -n "$LEX"; then |
247f5006 VZ |
11054 | echo "$as_me:$LINENO: result: $LEX" >&5 |
11055 | echo "${ECHO_T}$LEX" >&6 | |
10f2d63a | 11056 | else |
247f5006 VZ |
11057 | echo "$as_me:$LINENO: result: no" >&5 |
11058 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11059 | fi |
11060 | ||
247f5006 VZ |
11061 | test -n "$LEX" && break |
11062 | done | |
11063 | test -n "$LEX" || LEX=":" | |
11064 | ||
10f2d63a VZ |
11065 | if test -z "$LEXLIB" |
11066 | then | |
247f5006 VZ |
11067 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
11068 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 | |
11069 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then | |
11070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11071 | else | |
11072 | ac_check_lib_save_LIBS=$LIBS | |
11073 | LIBS="-lfl $LIBS" | |
11074 | cat >conftest.$ac_ext <<_ACEOF | |
11075 | #line $LINENO "configure" | |
10f2d63a | 11076 | #include "confdefs.h" |
247f5006 | 11077 | |
10f2d63a | 11078 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
11079 | #ifdef __cplusplus |
11080 | extern "C" | |
11081 | #endif | |
10f2d63a | 11082 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
11083 | builtin and then its argument prototype would still apply. */ |
11084 | char yywrap (); | |
11085 | #ifdef F77_DUMMY_MAIN | |
11086 | # ifdef __cplusplus | |
11087 | extern "C" | |
11088 | # endif | |
11089 | int F77_DUMMY_MAIN() { return 1; } | |
11090 | #endif | |
11091 | int | |
11092 | main () | |
11093 | { | |
11094 | yywrap (); | |
11095 | ; | |
11096 | return 0; | |
11097 | } | |
11098 | _ACEOF | |
11099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11101 | (eval $ac_link) 2>&5 | |
11102 | ac_status=$? | |
11103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11104 | (exit $ac_status); } && | |
11105 | { ac_try='test -s conftest$ac_exeext' | |
11106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11107 | (eval $ac_try) 2>&5 | |
11108 | ac_status=$? | |
11109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11110 | (exit $ac_status); }; }; then | |
11111 | ac_cv_lib_fl_yywrap=yes | |
11112 | else | |
11113 | echo "$as_me: failed program was:" >&5 | |
11114 | cat conftest.$ac_ext >&5 | |
11115 | ac_cv_lib_fl_yywrap=no | |
11116 | fi | |
11117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11118 | LIBS=$ac_check_lib_save_LIBS | |
11119 | fi | |
11120 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 | |
11121 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 | |
11122 | if test $ac_cv_lib_fl_yywrap = yes; then | |
11123 | LEXLIB="-lfl" | |
11124 | else | |
11125 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 | |
11126 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 | |
11127 | if test "${ac_cv_lib_l_yywrap+set}" = set; then | |
11128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11129 | else | |
11130 | ac_check_lib_save_LIBS=$LIBS | |
11131 | LIBS="-ll $LIBS" | |
11132 | cat >conftest.$ac_ext <<_ACEOF | |
11133 | #line $LINENO "configure" | |
11134 | #include "confdefs.h" | |
11135 | ||
11136 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11137 | #ifdef __cplusplus | |
11138 | extern "C" | |
11139 | #endif | |
11140 | /* We use char because int might match the return type of a gcc2 | |
11141 | builtin and then its argument prototype would still apply. */ | |
11142 | char yywrap (); | |
11143 | #ifdef F77_DUMMY_MAIN | |
11144 | # ifdef __cplusplus | |
11145 | extern "C" | |
11146 | # endif | |
11147 | int F77_DUMMY_MAIN() { return 1; } | |
11148 | #endif | |
11149 | int | |
11150 | main () | |
11151 | { | |
11152 | yywrap (); | |
11153 | ; | |
11154 | return 0; | |
11155 | } | |
11156 | _ACEOF | |
11157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11159 | (eval $ac_link) 2>&5 | |
11160 | ac_status=$? | |
11161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11162 | (exit $ac_status); } && | |
11163 | { ac_try='test -s conftest$ac_exeext' | |
11164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11165 | (eval $ac_try) 2>&5 | |
11166 | ac_status=$? | |
11167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11168 | (exit $ac_status); }; }; then | |
11169 | ac_cv_lib_l_yywrap=yes | |
11170 | else | |
11171 | echo "$as_me: failed program was:" >&5 | |
11172 | cat conftest.$ac_ext >&5 | |
11173 | ac_cv_lib_l_yywrap=no | |
11174 | fi | |
11175 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11176 | LIBS=$ac_check_lib_save_LIBS | |
11177 | fi | |
11178 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 | |
11179 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 | |
11180 | if test $ac_cv_lib_l_yywrap = yes; then | |
11181 | LEXLIB="-ll" | |
11182 | fi | |
11183 | ||
11184 | fi | |
11185 | ||
11186 | fi | |
11187 | ||
11188 | if test "x$LEX" != "x:"; then | |
11189 | echo "$as_me:$LINENO: checking lex output file root" >&5 | |
11190 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 | |
11191 | if test "${ac_cv_prog_lex_root+set}" = set; then | |
11192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11193 | else | |
11194 | # The minimal lex program is just a single line: %%. But some broken lexes | |
11195 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
11196 | cat >conftest.l <<_ACEOF | |
11197 | %% | |
11198 | %% | |
11199 | _ACEOF | |
11200 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 | |
11201 | (eval $LEX conftest.l) 2>&5 | |
11202 | ac_status=$? | |
11203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11204 | (exit $ac_status); } | |
11205 | if test -f lex.yy.c; then | |
11206 | ac_cv_prog_lex_root=lex.yy | |
11207 | elif test -f lexyy.c; then | |
11208 | ac_cv_prog_lex_root=lexyy | |
11209 | else | |
11210 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | |
11211 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | |
11212 | { (exit 1); exit 1; }; } | |
11213 | fi | |
11214 | fi | |
11215 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | |
11216 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 | |
11217 | rm -f conftest.l | |
11218 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
11219 | ||
11220 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | |
11221 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 | |
11222 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | |
11223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11224 | else | |
11225 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
11226 | # default is implementation-dependent. Figure out which it is, since | |
11227 | # not all implementations provide the %pointer and %array declarations. | |
11228 | ac_cv_prog_lex_yytext_pointer=no | |
11229 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
11230 | ac_save_LIBS=$LIBS | |
11231 | LIBS="$LIBS $LEXLIB" | |
11232 | cat >conftest.$ac_ext <<_ACEOF | |
11233 | `cat $LEX_OUTPUT_ROOT.c` | |
11234 | _ACEOF | |
11235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11237 | (eval $ac_link) 2>&5 | |
11238 | ac_status=$? | |
11239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11240 | (exit $ac_status); } && | |
11241 | { ac_try='test -s conftest$ac_exeext' | |
11242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11243 | (eval $ac_try) 2>&5 | |
11244 | ac_status=$? | |
11245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11246 | (exit $ac_status); }; }; then | |
11247 | ac_cv_prog_lex_yytext_pointer=yes | |
11248 | else | |
11249 | echo "$as_me: failed program was:" >&5 | |
11250 | cat conftest.$ac_ext >&5 | |
11251 | fi | |
11252 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11253 | LIBS=$ac_save_LIBS | |
11254 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
11255 | ||
11256 | fi | |
11257 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
11258 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 | |
11259 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
11260 | ||
11261 | cat >>confdefs.h <<\_ACEOF | |
11262 | #define YYTEXT_POINTER 1 | |
11263 | _ACEOF | |
10f2d63a | 11264 | |
10f2d63a | 11265 | fi |
8284b0c5 | 11266 | |
10f2d63a | 11267 | fi |
247f5006 VZ |
11268 | |
11269 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
11270 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11271 | LN_S=$as_ln_s | |
11272 | if test "$LN_S" = "ln -s"; then | |
11273 | echo "$as_me:$LINENO: result: yes" >&5 | |
11274 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 | 11275 | else |
247f5006 VZ |
11276 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11277 | echo "${ECHO_T}no, using $LN_S" >&6 | |
10f2d63a VZ |
11278 | fi |
11279 | ||
10f2d63a VZ |
11280 | |
11281 | ||
247f5006 VZ |
11282 | if test "$wxUSE_MAC" != 1; then |
11283 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
11284 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
11285 | if test "${ac_cv_header_stdc+set}" = set; then | |
11286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11287 | else |
247f5006 VZ |
11288 | cat >conftest.$ac_ext <<_ACEOF |
11289 | #line $LINENO "configure" | |
11290 | #include "confdefs.h" | |
11291 | #include <stdlib.h> | |
11292 | #include <stdarg.h> | |
11293 | #include <string.h> | |
11294 | #include <float.h> | |
11295 | ||
11296 | _ACEOF | |
11297 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11298 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11299 | ac_status=$? | |
11300 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11301 | rm -f conftest.er1 | |
11302 | cat conftest.err >&5 | |
11303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11304 | (exit $ac_status); } >/dev/null; then | |
11305 | if test -s conftest.err; then | |
11306 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11307 | else | |
11308 | ac_cpp_err= | |
11309 | fi | |
10f2d63a | 11310 | else |
247f5006 | 11311 | ac_cpp_err=yes |
10f2d63a | 11312 | fi |
247f5006 VZ |
11313 | if test -z "$ac_cpp_err"; then |
11314 | ac_cv_header_stdc=yes | |
10f2d63a | 11315 | else |
247f5006 VZ |
11316 | echo "$as_me: failed program was:" >&5 |
11317 | cat conftest.$ac_ext >&5 | |
11318 | ac_cv_header_stdc=no | |
5c6fa7d2 | 11319 | fi |
247f5006 | 11320 | rm -f conftest.err conftest.$ac_ext |
5c6fa7d2 | 11321 | |
247f5006 VZ |
11322 | if test $ac_cv_header_stdc = yes; then |
11323 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11324 | cat >conftest.$ac_ext <<_ACEOF | |
11325 | #line $LINENO "configure" | |
19bc6aad | 11326 | #include "confdefs.h" |
247f5006 VZ |
11327 | #include <string.h> |
11328 | ||
11329 | _ACEOF | |
11330 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11331 | egrep "memchr" >/dev/null 2>&1; then | |
11332 | : | |
8284b0c5 | 11333 | else |
247f5006 | 11334 | ac_cv_header_stdc=no |
21d1c967 | 11335 | fi |
247f5006 | 11336 | rm -f conftest* |
19bc6aad | 11337 | |
19bc6aad VZ |
11338 | fi |
11339 | ||
247f5006 VZ |
11340 | if test $ac_cv_header_stdc = yes; then |
11341 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11342 | cat >conftest.$ac_ext <<_ACEOF | |
11343 | #line $LINENO "configure" | |
18dbb1f6 | 11344 | #include "confdefs.h" |
247f5006 VZ |
11345 | #include <stdlib.h> |
11346 | ||
11347 | _ACEOF | |
11348 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11349 | egrep "free" >/dev/null 2>&1; then | |
11350 | : | |
11351 | else | |
11352 | ac_cv_header_stdc=no | |
18dbb1f6 | 11353 | fi |
8284b0c5 | 11354 | rm -f conftest* |
247f5006 | 11355 | |
90dd450c | 11356 | fi |
90dd450c | 11357 | |
247f5006 VZ |
11358 | if test $ac_cv_header_stdc = yes; then |
11359 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11360 | if test "$cross_compiling" = yes; then | |
11361 | : | |
11362 | else | |
11363 | cat >conftest.$ac_ext <<_ACEOF | |
11364 | #line $LINENO "configure" | |
90dd450c | 11365 | #include "confdefs.h" |
247f5006 VZ |
11366 | #include <ctype.h> |
11367 | #if ((' ' & 0x0FF) == 0x020) | |
11368 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11369 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11370 | #else | |
11371 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
11372 | || ('j' <= (c) && (c) <= 'r') \ | |
11373 | || ('s' <= (c) && (c) <= 'z')) | |
11374 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11375 | #endif | |
11376 | ||
11377 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11378 | int | |
11379 | main () | |
11380 | { | |
11381 | int i; | |
11382 | for (i = 0; i < 256; i++) | |
11383 | if (XOR (islower (i), ISLOWER (i)) | |
11384 | || toupper (i) != TOUPPER (i)) | |
11385 | exit(2); | |
11386 | exit (0); | |
11387 | } | |
11388 | _ACEOF | |
11389 | rm -f conftest$ac_exeext | |
11390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11391 | (eval $ac_link) 2>&5 | |
11392 | ac_status=$? | |
11393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11394 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11396 | (eval $ac_try) 2>&5 | |
11397 | ac_status=$? | |
11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11399 | (exit $ac_status); }; }; then | |
11400 | : | |
8284b0c5 | 11401 | else |
247f5006 VZ |
11402 | echo "$as_me: program exited with status $ac_status" >&5 |
11403 | echo "$as_me: failed program was:" >&5 | |
11404 | cat conftest.$ac_ext >&5 | |
11405 | ( exit $ac_status ) | |
11406 | ac_cv_header_stdc=no | |
21d1c967 | 11407 | fi |
247f5006 | 11408 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3a922bb4 | 11409 | fi |
90dd450c | 11410 | fi |
21d1c967 | 11411 | fi |
247f5006 VZ |
11412 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
11413 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
11414 | if test $ac_cv_header_stdc = yes; then | |
11415 | ||
11416 | cat >>confdefs.h <<\_ACEOF | |
11417 | #define STDC_HEADERS 1 | |
11418 | _ACEOF | |
11419 | ||
11420 | fi | |
90dd450c | 11421 | |
247f5006 VZ |
11422 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
11433 | inttypes.h stdint.h unistd.h | |
21d1c967 | 11434 | do |
247f5006 VZ |
11435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11436 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11440 | else | |
11441 | cat >conftest.$ac_ext <<_ACEOF | |
11442 | #line $LINENO "configure" | |
4f14bcd8 | 11443 | #include "confdefs.h" |
247f5006 VZ |
11444 | $ac_includes_default |
11445 | ||
11446 | #include <$ac_header> | |
11447 | _ACEOF | |
11448 | rm -f conftest.$ac_objext | |
11449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11450 | (eval $ac_compile) 2>&5 | |
11451 | ac_status=$? | |
11452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11453 | (exit $ac_status); } && | |
11454 | { ac_try='test -s conftest.$ac_objext' | |
11455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11456 | (eval $ac_try) 2>&5 | |
11457 | ac_status=$? | |
11458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11459 | (exit $ac_status); }; }; then | |
11460 | eval "$as_ac_Header=yes" | |
11461 | else | |
11462 | echo "$as_me: failed program was:" >&5 | |
11463 | cat conftest.$ac_ext >&5 | |
11464 | eval "$as_ac_Header=no" | |
11465 | fi | |
11466 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11467 | fi | |
11468 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11469 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11470 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11471 | cat >>confdefs.h <<_ACEOF | |
11472 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11473 | _ACEOF | |
11474 | ||
21d1c967 | 11475 | fi |
247f5006 | 11476 | |
21d1c967 | 11477 | done |
4f14bcd8 | 11478 | |
5c6fa7d2 | 11479 | |
247f5006 VZ |
11480 | |
11481 | for ac_header in strings.h | |
21d1c967 | 11482 | do |
247f5006 VZ |
11483 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11489 | fi | |
11490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11491 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11492 | else | |
11493 | # Is the header compilable? | |
11494 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11495 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11496 | cat >conftest.$ac_ext <<_ACEOF | |
11497 | #line $LINENO "configure" | |
d4158b5d | 11498 | #include "confdefs.h" |
247f5006 VZ |
11499 | $ac_includes_default |
11500 | #include <$ac_header> | |
11501 | _ACEOF | |
11502 | rm -f conftest.$ac_objext | |
11503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11504 | (eval $ac_compile) 2>&5 | |
11505 | ac_status=$? | |
11506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11507 | (exit $ac_status); } && | |
11508 | { ac_try='test -s conftest.$ac_objext' | |
11509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11510 | (eval $ac_try) 2>&5 | |
11511 | ac_status=$? | |
11512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11513 | (exit $ac_status); }; }; then | |
11514 | ac_header_compiler=yes | |
11515 | else | |
11516 | echo "$as_me: failed program was:" >&5 | |
11517 | cat conftest.$ac_ext >&5 | |
11518 | ac_header_compiler=no | |
11519 | fi | |
11520 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11521 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11522 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11523 | ||
11524 | # Is the header present? | |
11525 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11526 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11527 | cat >conftest.$ac_ext <<_ACEOF | |
11528 | #line $LINENO "configure" | |
11529 | #include "confdefs.h" | |
11530 | #include <$ac_header> | |
11531 | _ACEOF | |
11532 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11533 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11534 | ac_status=$? | |
11535 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11536 | rm -f conftest.er1 | |
11537 | cat conftest.err >&5 | |
11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11539 | (exit $ac_status); } >/dev/null; then | |
11540 | if test -s conftest.err; then | |
11541 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11542 | else | |
11543 | ac_cpp_err= | |
11544 | fi | |
11545 | else | |
11546 | ac_cpp_err=yes | |
11547 | fi | |
11548 | if test -z "$ac_cpp_err"; then | |
11549 | ac_header_preproc=yes | |
11550 | else | |
11551 | echo "$as_me: failed program was:" >&5 | |
d4158b5d | 11552 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
11553 | ac_header_preproc=no |
11554 | fi | |
11555 | rm -f conftest.err conftest.$ac_ext | |
11556 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11557 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11558 | ||
11559 | # So? What about this header? | |
11560 | case $ac_header_compiler:$ac_header_preproc in | |
11561 | yes:no ) | |
11562 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11563 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11564 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11565 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11566 | no:yes ) | |
11567 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11568 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11569 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11570 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11571 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11572 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11573 | esac | |
11574 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11578 | else | |
11579 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 11580 | fi |
247f5006 VZ |
11581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11582 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11583 | ||
21d1c967 | 11584 | fi |
247f5006 VZ |
11585 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11586 | cat >>confdefs.h <<_ACEOF | |
11587 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11588 | _ACEOF | |
11589 | ||
d4158b5d | 11590 | fi |
247f5006 | 11591 | |
21d1c967 | 11592 | done |
f6bcfd97 | 11593 | |
90dd450c | 11594 | fi |
90dd450c | 11595 | |
247f5006 VZ |
11596 | |
11597 | for ac_header in stdlib.h | |
21d1c967 | 11598 | do |
247f5006 VZ |
11599 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11600 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11601 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11605 | fi | |
11606 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11607 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11608 | else | |
11609 | # Is the header compilable? | |
11610 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11611 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11612 | cat >conftest.$ac_ext <<_ACEOF | |
11613 | #line $LINENO "configure" | |
90dd450c | 11614 | #include "confdefs.h" |
247f5006 VZ |
11615 | $ac_includes_default |
11616 | #include <$ac_header> | |
11617 | _ACEOF | |
11618 | rm -f conftest.$ac_objext | |
11619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11620 | (eval $ac_compile) 2>&5 | |
11621 | ac_status=$? | |
11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11623 | (exit $ac_status); } && | |
11624 | { ac_try='test -s conftest.$ac_objext' | |
11625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11626 | (eval $ac_try) 2>&5 | |
11627 | ac_status=$? | |
11628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11629 | (exit $ac_status); }; }; then | |
11630 | ac_header_compiler=yes | |
11631 | else | |
11632 | echo "$as_me: failed program was:" >&5 | |
11633 | cat conftest.$ac_ext >&5 | |
11634 | ac_header_compiler=no | |
11635 | fi | |
11636 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11637 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11638 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11639 | ||
11640 | # Is the header present? | |
11641 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11642 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11643 | cat >conftest.$ac_ext <<_ACEOF | |
11644 | #line $LINENO "configure" | |
11645 | #include "confdefs.h" | |
11646 | #include <$ac_header> | |
11647 | _ACEOF | |
11648 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11649 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11650 | ac_status=$? | |
11651 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11652 | rm -f conftest.er1 | |
11653 | cat conftest.err >&5 | |
11654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11655 | (exit $ac_status); } >/dev/null; then | |
11656 | if test -s conftest.err; then | |
11657 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11658 | else | |
11659 | ac_cpp_err= | |
11660 | fi | |
11661 | else | |
11662 | ac_cpp_err=yes | |
11663 | fi | |
11664 | if test -z "$ac_cpp_err"; then | |
11665 | ac_header_preproc=yes | |
11666 | else | |
11667 | echo "$as_me: failed program was:" >&5 | |
3a922bb4 | 11668 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
11669 | ac_header_preproc=no |
11670 | fi | |
11671 | rm -f conftest.err conftest.$ac_ext | |
11672 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11673 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11674 | ||
11675 | # So? What about this header? | |
11676 | case $ac_header_compiler:$ac_header_preproc in | |
11677 | yes:no ) | |
11678 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11679 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11680 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11681 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11682 | no:yes ) | |
11683 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11684 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11685 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11686 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11687 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11688 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11689 | esac | |
11690 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11691 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11692 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11694 | else | |
11695 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 11696 | fi |
247f5006 VZ |
11697 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11698 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11699 | ||
4f14bcd8 | 11700 | fi |
247f5006 VZ |
11701 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11702 | cat >>confdefs.h <<_ACEOF | |
11703 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11704 | _ACEOF | |
11705 | ||
21d1c967 | 11706 | fi |
247f5006 | 11707 | |
21d1c967 | 11708 | done |
90dd450c | 11709 | |
5c6fa7d2 | 11710 | |
247f5006 | 11711 | for ac_header in malloc.h |
21d1c967 | 11712 | do |
247f5006 VZ |
11713 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11715 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11716 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11717 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11719 | fi | |
11720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11721 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11722 | else | |
11723 | # Is the header compilable? | |
11724 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11725 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11726 | cat >conftest.$ac_ext <<_ACEOF | |
11727 | #line $LINENO "configure" | |
90dd450c | 11728 | #include "confdefs.h" |
247f5006 VZ |
11729 | $ac_includes_default |
11730 | #include <$ac_header> | |
11731 | _ACEOF | |
11732 | rm -f conftest.$ac_objext | |
11733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11734 | (eval $ac_compile) 2>&5 | |
11735 | ac_status=$? | |
11736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11737 | (exit $ac_status); } && | |
11738 | { ac_try='test -s conftest.$ac_objext' | |
11739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11740 | (eval $ac_try) 2>&5 | |
11741 | ac_status=$? | |
11742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11743 | (exit $ac_status); }; }; then | |
11744 | ac_header_compiler=yes | |
11745 | else | |
11746 | echo "$as_me: failed program was:" >&5 | |
11747 | cat conftest.$ac_ext >&5 | |
11748 | ac_header_compiler=no | |
11749 | fi | |
11750 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11751 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11752 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11753 | ||
11754 | # Is the header present? | |
11755 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11756 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11757 | cat >conftest.$ac_ext <<_ACEOF | |
11758 | #line $LINENO "configure" | |
11759 | #include "confdefs.h" | |
11760 | #include <$ac_header> | |
11761 | _ACEOF | |
11762 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11763 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11764 | ac_status=$? | |
11765 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11766 | rm -f conftest.er1 | |
11767 | cat conftest.err >&5 | |
11768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11769 | (exit $ac_status); } >/dev/null; then | |
11770 | if test -s conftest.err; then | |
11771 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11772 | else | |
11773 | ac_cpp_err= | |
11774 | fi | |
11775 | else | |
11776 | ac_cpp_err=yes | |
11777 | fi | |
11778 | if test -z "$ac_cpp_err"; then | |
11779 | ac_header_preproc=yes | |
8284b0c5 | 11780 | else |
247f5006 | 11781 | echo "$as_me: failed program was:" >&5 |
8284b0c5 | 11782 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
11783 | ac_header_preproc=no |
11784 | fi | |
11785 | rm -f conftest.err conftest.$ac_ext | |
11786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11787 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11788 | ||
11789 | # So? What about this header? | |
11790 | case $ac_header_compiler:$ac_header_preproc in | |
11791 | yes:no ) | |
11792 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11793 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11794 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11795 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11796 | no:yes ) | |
11797 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11798 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11799 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11800 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11801 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11802 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11803 | esac | |
11804 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11808 | else | |
11809 | eval "$as_ac_Header=$ac_header_preproc" | |
8284b0c5 | 11810 | fi |
247f5006 VZ |
11811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11812 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11813 | ||
8284b0c5 | 11814 | fi |
247f5006 VZ |
11815 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11816 | cat >>confdefs.h <<_ACEOF | |
11817 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11818 | _ACEOF | |
32832908 | 11819 | |
21d1c967 | 11820 | fi |
247f5006 | 11821 | |
21d1c967 | 11822 | done |
90dd450c VZ |
11823 | |
11824 | ||
247f5006 | 11825 | for ac_header in unistd.h |
21d1c967 | 11826 | do |
247f5006 VZ |
11827 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11829 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11830 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11831 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11833 | fi | |
11834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11835 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11836 | else | |
11837 | # Is the header compilable? | |
11838 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11839 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11840 | cat >conftest.$ac_ext <<_ACEOF | |
11841 | #line $LINENO "configure" | |
90dd450c | 11842 | #include "confdefs.h" |
247f5006 VZ |
11843 | $ac_includes_default |
11844 | #include <$ac_header> | |
11845 | _ACEOF | |
11846 | rm -f conftest.$ac_objext | |
11847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11848 | (eval $ac_compile) 2>&5 | |
11849 | ac_status=$? | |
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11851 | (exit $ac_status); } && | |
11852 | { ac_try='test -s conftest.$ac_objext' | |
11853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11854 | (eval $ac_try) 2>&5 | |
11855 | ac_status=$? | |
11856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11857 | (exit $ac_status); }; }; then | |
11858 | ac_header_compiler=yes | |
11859 | else | |
11860 | echo "$as_me: failed program was:" >&5 | |
11861 | cat conftest.$ac_ext >&5 | |
11862 | ac_header_compiler=no | |
11863 | fi | |
11864 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11865 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11866 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11867 | ||
11868 | # Is the header present? | |
11869 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11870 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11871 | cat >conftest.$ac_ext <<_ACEOF | |
11872 | #line $LINENO "configure" | |
11873 | #include "confdefs.h" | |
11874 | #include <$ac_header> | |
11875 | _ACEOF | |
11876 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11877 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11878 | ac_status=$? | |
11879 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11880 | rm -f conftest.er1 | |
11881 | cat conftest.err >&5 | |
11882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11883 | (exit $ac_status); } >/dev/null; then | |
11884 | if test -s conftest.err; then | |
11885 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11886 | else | |
11887 | ac_cpp_err= | |
11888 | fi | |
11889 | else | |
11890 | ac_cpp_err=yes | |
11891 | fi | |
11892 | if test -z "$ac_cpp_err"; then | |
11893 | ac_header_preproc=yes | |
11894 | else | |
11895 | echo "$as_me: failed program was:" >&5 | |
90dd450c | 11896 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
11897 | ac_header_preproc=no |
11898 | fi | |
11899 | rm -f conftest.err conftest.$ac_ext | |
11900 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11901 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11902 | ||
11903 | # So? What about this header? | |
11904 | case $ac_header_compiler:$ac_header_preproc in | |
11905 | yes:no ) | |
11906 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11907 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11910 | no:yes ) | |
11911 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11912 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11913 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11914 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11915 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11916 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
11917 | esac | |
11918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11922 | else | |
11923 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 11924 | fi |
247f5006 VZ |
11925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11926 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11927 | ||
4f14bcd8 | 11928 | fi |
247f5006 VZ |
11929 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11930 | cat >>confdefs.h <<_ACEOF | |
11931 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11932 | _ACEOF | |
11933 | ||
21d1c967 | 11934 | fi |
247f5006 | 11935 | |
21d1c967 | 11936 | done |
3a922bb4 | 11937 | |
8284b0c5 | 11938 | |
247f5006 | 11939 | for ac_header in wchar.h |
21d1c967 | 11940 | do |
247f5006 VZ |
11941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11947 | fi | |
11948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11950 | else | |
11951 | # Is the header compilable? | |
11952 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11953 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11954 | cat >conftest.$ac_ext <<_ACEOF | |
11955 | #line $LINENO "configure" | |
90dd450c | 11956 | #include "confdefs.h" |
247f5006 VZ |
11957 | $ac_includes_default |
11958 | #include <$ac_header> | |
11959 | _ACEOF | |
11960 | rm -f conftest.$ac_objext | |
11961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11962 | (eval $ac_compile) 2>&5 | |
11963 | ac_status=$? | |
11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11965 | (exit $ac_status); } && | |
11966 | { ac_try='test -s conftest.$ac_objext' | |
11967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11968 | (eval $ac_try) 2>&5 | |
11969 | ac_status=$? | |
11970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11971 | (exit $ac_status); }; }; then | |
11972 | ac_header_compiler=yes | |
11973 | else | |
11974 | echo "$as_me: failed program was:" >&5 | |
11975 | cat conftest.$ac_ext >&5 | |
11976 | ac_header_compiler=no | |
11977 | fi | |
11978 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11979 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11980 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11981 | ||
11982 | # Is the header present? | |
11983 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11984 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11985 | cat >conftest.$ac_ext <<_ACEOF | |
11986 | #line $LINENO "configure" | |
11987 | #include "confdefs.h" | |
11988 | #include <$ac_header> | |
11989 | _ACEOF | |
11990 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11992 | ac_status=$? | |
11993 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
11994 | rm -f conftest.er1 | |
11995 | cat conftest.err >&5 | |
11996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11997 | (exit $ac_status); } >/dev/null; then | |
11998 | if test -s conftest.err; then | |
11999 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12000 | else | |
12001 | ac_cpp_err= | |
12002 | fi | |
12003 | else | |
12004 | ac_cpp_err=yes | |
12005 | fi | |
12006 | if test -z "$ac_cpp_err"; then | |
12007 | ac_header_preproc=yes | |
12008 | else | |
12009 | echo "$as_me: failed program was:" >&5 | |
90dd450c | 12010 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
12011 | ac_header_preproc=no |
12012 | fi | |
12013 | rm -f conftest.err conftest.$ac_ext | |
12014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12015 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12016 | ||
12017 | # So? What about this header? | |
12018 | case $ac_header_compiler:$ac_header_preproc in | |
12019 | yes:no ) | |
12020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12023 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12024 | no:yes ) | |
12025 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12026 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12027 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12028 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12029 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12030 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12031 | esac | |
12032 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12033 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12034 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12036 | else | |
12037 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 12038 | fi |
247f5006 VZ |
12039 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12040 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12041 | ||
90dd450c | 12042 | fi |
247f5006 VZ |
12043 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12044 | cat >>confdefs.h <<_ACEOF | |
12045 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12046 | _ACEOF | |
12047 | ||
12048 | fi | |
12049 | ||
12050 | done | |
12051 | ||
12052 | ||
12053 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12054 | ||
12055 | for ac_header in wcstr.h | |
12056 | do | |
12057 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12058 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12059 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12060 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12061 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12063 | fi | |
12064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12065 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12066 | else | |
12067 | # Is the header compilable? | |
12068 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12069 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12070 | cat >conftest.$ac_ext <<_ACEOF | |
12071 | #line $LINENO "configure" | |
12072 | #include "confdefs.h" | |
12073 | $ac_includes_default | |
12074 | #include <$ac_header> | |
12075 | _ACEOF | |
12076 | rm -f conftest.$ac_objext | |
12077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12078 | (eval $ac_compile) 2>&5 | |
12079 | ac_status=$? | |
12080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12081 | (exit $ac_status); } && | |
12082 | { ac_try='test -s conftest.$ac_objext' | |
12083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12084 | (eval $ac_try) 2>&5 | |
12085 | ac_status=$? | |
12086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12087 | (exit $ac_status); }; }; then | |
12088 | ac_header_compiler=yes | |
12089 | else | |
12090 | echo "$as_me: failed program was:" >&5 | |
12091 | cat conftest.$ac_ext >&5 | |
12092 | ac_header_compiler=no | |
12093 | fi | |
12094 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12095 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12096 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12097 | ||
12098 | # Is the header present? | |
12099 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12100 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12101 | cat >conftest.$ac_ext <<_ACEOF | |
12102 | #line $LINENO "configure" | |
12103 | #include "confdefs.h" | |
12104 | #include <$ac_header> | |
12105 | _ACEOF | |
12106 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12107 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12108 | ac_status=$? | |
12109 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12110 | rm -f conftest.er1 | |
12111 | cat conftest.err >&5 | |
12112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12113 | (exit $ac_status); } >/dev/null; then | |
12114 | if test -s conftest.err; then | |
12115 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12116 | else | |
12117 | ac_cpp_err= | |
12118 | fi | |
12119 | else | |
12120 | ac_cpp_err=yes | |
12121 | fi | |
12122 | if test -z "$ac_cpp_err"; then | |
12123 | ac_header_preproc=yes | |
12124 | else | |
12125 | echo "$as_me: failed program was:" >&5 | |
12126 | cat conftest.$ac_ext >&5 | |
12127 | ac_header_preproc=no | |
12128 | fi | |
12129 | rm -f conftest.err conftest.$ac_ext | |
12130 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12131 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12132 | ||
12133 | # So? What about this header? | |
12134 | case $ac_header_compiler:$ac_header_preproc in | |
12135 | yes:no ) | |
12136 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12137 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12138 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12139 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12140 | no:yes ) | |
12141 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12142 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12143 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12144 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12145 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12146 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12147 | esac | |
12148 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12149 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12151 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 12152 | else |
247f5006 VZ |
12153 | eval "$as_ac_Header=$ac_header_preproc" |
12154 | fi | |
12155 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12156 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12157 | ||
12158 | fi | |
12159 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12160 | cat >>confdefs.h <<_ACEOF | |
12161 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12162 | _ACEOF | |
12163 | ||
21d1c967 | 12164 | fi |
247f5006 | 12165 | |
21d1c967 | 12166 | done |
10f2d63a | 12167 | |
90dd450c | 12168 | fi |
81809c07 | 12169 | |
8284b0c5 | 12170 | |
247f5006 VZ |
12171 | for ac_header in fnmatch.h |
12172 | do | |
12173 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12175 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12176 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12179 | fi | |
12180 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12181 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12182 | else | |
12183 | # Is the header compilable? | |
12184 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12185 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12186 | cat >conftest.$ac_ext <<_ACEOF | |
12187 | #line $LINENO "configure" | |
12188 | #include "confdefs.h" | |
12189 | $ac_includes_default | |
12190 | #include <$ac_header> | |
12191 | _ACEOF | |
12192 | rm -f conftest.$ac_objext | |
12193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12194 | (eval $ac_compile) 2>&5 | |
12195 | ac_status=$? | |
12196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12197 | (exit $ac_status); } && | |
12198 | { ac_try='test -s conftest.$ac_objext' | |
12199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12200 | (eval $ac_try) 2>&5 | |
12201 | ac_status=$? | |
12202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12203 | (exit $ac_status); }; }; then | |
12204 | ac_header_compiler=yes | |
12205 | else | |
12206 | echo "$as_me: failed program was:" >&5 | |
12207 | cat conftest.$ac_ext >&5 | |
12208 | ac_header_compiler=no | |
12209 | fi | |
12210 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12211 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12212 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12213 | ||
12214 | # Is the header present? | |
12215 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12216 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12217 | cat >conftest.$ac_ext <<_ACEOF | |
12218 | #line $LINENO "configure" | |
12219 | #include "confdefs.h" | |
12220 | #include <$ac_header> | |
12221 | _ACEOF | |
12222 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12223 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12224 | ac_status=$? | |
12225 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12226 | rm -f conftest.er1 | |
12227 | cat conftest.err >&5 | |
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12229 | (exit $ac_status); } >/dev/null; then | |
12230 | if test -s conftest.err; then | |
12231 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12232 | else | |
12233 | ac_cpp_err= | |
12234 | fi | |
8168de4c | 12235 | else |
247f5006 VZ |
12236 | ac_cpp_err=yes |
12237 | fi | |
12238 | if test -z "$ac_cpp_err"; then | |
12239 | ac_header_preproc=yes | |
12240 | else | |
12241 | echo "$as_me: failed program was:" >&5 | |
12242 | cat conftest.$ac_ext >&5 | |
12243 | ac_header_preproc=no | |
12244 | fi | |
12245 | rm -f conftest.err conftest.$ac_ext | |
12246 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12247 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12248 | ||
12249 | # So? What about this header? | |
12250 | case $ac_header_compiler:$ac_header_preproc in | |
12251 | yes:no ) | |
12252 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12253 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12254 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12255 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12256 | no:yes ) | |
12257 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12258 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12259 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12260 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12262 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12263 | esac | |
12264 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12265 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12266 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12268 | else | |
12269 | eval "$as_ac_Header=$ac_header_preproc" | |
12270 | fi | |
12271 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12272 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12273 | ||
12274 | fi | |
12275 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12276 | cat >>confdefs.h <<_ACEOF | |
12277 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12278 | _ACEOF | |
12279 | ||
12280 | fi | |
12281 | ||
12282 | done | |
12283 | ||
12284 | ||
12285 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
12286 | ||
12287 | for ac_func in fnmatch | |
12288 | do | |
12289 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12290 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12291 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12292 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12294 | else | |
12295 | cat >conftest.$ac_ext <<_ACEOF | |
12296 | #line $LINENO "configure" | |
4f14bcd8 | 12297 | #include "confdefs.h" |
247f5006 VZ |
12298 | /* System header to define __stub macros and hopefully few prototypes, |
12299 | which can conflict with char $ac_func (); below. */ | |
12300 | #include <assert.h> | |
12301 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12302 | #ifdef __cplusplus | |
12303 | extern "C" | |
12304 | #endif | |
12305 | /* We use char because int might match the return type of a gcc2 | |
12306 | builtin and then its argument prototype would still apply. */ | |
12307 | char $ac_func (); | |
12308 | char (*f) (); | |
12309 | ||
12310 | #ifdef F77_DUMMY_MAIN | |
12311 | # ifdef __cplusplus | |
12312 | extern "C" | |
12313 | # endif | |
12314 | int F77_DUMMY_MAIN() { return 1; } | |
12315 | #endif | |
12316 | int | |
12317 | main () | |
12318 | { | |
12319 | /* The GNU C library defines this for functions which it implements | |
12320 | to always fail with ENOSYS. Some functions are actually named | |
12321 | something starting with __ and the normal name is an alias. */ | |
12322 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12323 | choke me | |
12324 | #else | |
12325 | f = $ac_func; | |
12326 | #endif | |
8284b0c5 | 12327 | |
247f5006 VZ |
12328 | ; |
12329 | return 0; | |
52127426 | 12330 | } |
247f5006 VZ |
12331 | _ACEOF |
12332 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12334 | (eval $ac_link) 2>&5 | |
12335 | ac_status=$? | |
12336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12337 | (exit $ac_status); } && | |
12338 | { ac_try='test -s conftest$ac_exeext' | |
12339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12340 | (eval $ac_try) 2>&5 | |
12341 | ac_status=$? | |
12342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12343 | (exit $ac_status); }; }; then | |
12344 | eval "$as_ac_var=yes" | |
12345 | else | |
12346 | echo "$as_me: failed program was:" >&5 | |
12347 | cat conftest.$ac_ext >&5 | |
12348 | eval "$as_ac_var=no" | |
12349 | fi | |
12350 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
12351 | fi | |
12352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12353 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12354 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12355 | cat >>confdefs.h <<_ACEOF | |
12356 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12357 | _ACEOF | |
12358 | ||
12359 | fi | |
12360 | done | |
12361 | ||
12362 | fi | |
12363 | ||
12364 | ||
12365 | for ac_header in langinfo.h | |
12366 | do | |
12367 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12369 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12370 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12371 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12373 | fi | |
12374 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12375 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12376 | else | |
12377 | # Is the header compilable? | |
12378 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12379 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12380 | cat >conftest.$ac_ext <<_ACEOF | |
12381 | #line $LINENO "configure" | |
12382 | #include "confdefs.h" | |
12383 | $ac_includes_default | |
12384 | #include <$ac_header> | |
12385 | _ACEOF | |
12386 | rm -f conftest.$ac_objext | |
12387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12388 | (eval $ac_compile) 2>&5 | |
12389 | ac_status=$? | |
12390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12391 | (exit $ac_status); } && | |
12392 | { ac_try='test -s conftest.$ac_objext' | |
12393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12394 | (eval $ac_try) 2>&5 | |
12395 | ac_status=$? | |
12396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12397 | (exit $ac_status); }; }; then | |
12398 | ac_header_compiler=yes | |
12399 | else | |
12400 | echo "$as_me: failed program was:" >&5 | |
12401 | cat conftest.$ac_ext >&5 | |
12402 | ac_header_compiler=no | |
12403 | fi | |
12404 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12405 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12406 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12407 | ||
12408 | # Is the header present? | |
12409 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12410 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12411 | cat >conftest.$ac_ext <<_ACEOF | |
12412 | #line $LINENO "configure" | |
12413 | #include "confdefs.h" | |
12414 | #include <$ac_header> | |
12415 | _ACEOF | |
12416 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12417 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12418 | ac_status=$? | |
12419 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12420 | rm -f conftest.er1 | |
12421 | cat conftest.err >&5 | |
12422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12423 | (exit $ac_status); } >/dev/null; then | |
12424 | if test -s conftest.err; then | |
12425 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12426 | else | |
12427 | ac_cpp_err= | |
12428 | fi | |
12429 | else | |
12430 | ac_cpp_err=yes | |
12431 | fi | |
12432 | if test -z "$ac_cpp_err"; then | |
12433 | ac_header_preproc=yes | |
12434 | else | |
12435 | echo "$as_me: failed program was:" >&5 | |
12436 | cat conftest.$ac_ext >&5 | |
12437 | ac_header_preproc=no | |
12438 | fi | |
12439 | rm -f conftest.err conftest.$ac_ext | |
12440 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12441 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12442 | ||
12443 | # So? What about this header? | |
12444 | case $ac_header_compiler:$ac_header_preproc in | |
12445 | yes:no ) | |
12446 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12447 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12448 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12449 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12450 | no:yes ) | |
12451 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12452 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12453 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12454 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12456 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12457 | esac | |
12458 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12459 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12460 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12462 | else | |
12463 | eval "$as_ac_Header=$ac_header_preproc" | |
12464 | fi | |
12465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12467 | ||
12468 | fi | |
12469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12470 | cat >>confdefs.h <<_ACEOF | |
12471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12472 | _ACEOF | |
12473 | ||
12474 | fi | |
12475 | ||
12476 | done | |
12477 | ||
12478 | ||
12479 | if test "$wxUSE_GUI" = "yes"; then | |
12480 | if test "$wxUSE_UNIX" = "yes"; then | |
12481 | ||
12482 | for ac_header in X11/XKBlib.h | |
12483 | do | |
12484 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12486 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12490 | fi | |
12491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12492 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12493 | else | |
12494 | # Is the header compilable? | |
12495 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12496 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12497 | cat >conftest.$ac_ext <<_ACEOF | |
12498 | #line $LINENO "configure" | |
12499 | #include "confdefs.h" | |
12500 | $ac_includes_default | |
12501 | #include <$ac_header> | |
12502 | _ACEOF | |
12503 | rm -f conftest.$ac_objext | |
12504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12505 | (eval $ac_compile) 2>&5 | |
12506 | ac_status=$? | |
12507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12508 | (exit $ac_status); } && | |
12509 | { ac_try='test -s conftest.$ac_objext' | |
12510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12511 | (eval $ac_try) 2>&5 | |
12512 | ac_status=$? | |
12513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12514 | (exit $ac_status); }; }; then | |
12515 | ac_header_compiler=yes | |
12516 | else | |
12517 | echo "$as_me: failed program was:" >&5 | |
12518 | cat conftest.$ac_ext >&5 | |
12519 | ac_header_compiler=no | |
12520 | fi | |
12521 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12522 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12523 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12524 | ||
12525 | # Is the header present? | |
12526 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12527 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12528 | cat >conftest.$ac_ext <<_ACEOF | |
12529 | #line $LINENO "configure" | |
12530 | #include "confdefs.h" | |
12531 | #include <$ac_header> | |
12532 | _ACEOF | |
12533 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12534 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12535 | ac_status=$? | |
12536 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
12537 | rm -f conftest.er1 | |
12538 | cat conftest.err >&5 | |
12539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12540 | (exit $ac_status); } >/dev/null; then | |
12541 | if test -s conftest.err; then | |
12542 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12543 | else | |
12544 | ac_cpp_err= | |
12545 | fi | |
12546 | else | |
12547 | ac_cpp_err=yes | |
12548 | fi | |
12549 | if test -z "$ac_cpp_err"; then | |
12550 | ac_header_preproc=yes | |
12551 | else | |
12552 | echo "$as_me: failed program was:" >&5 | |
12553 | cat conftest.$ac_ext >&5 | |
12554 | ac_header_preproc=no | |
12555 | fi | |
12556 | rm -f conftest.err conftest.$ac_ext | |
12557 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12558 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12559 | ||
12560 | # So? What about this header? | |
12561 | case $ac_header_compiler:$ac_header_preproc in | |
12562 | yes:no ) | |
12563 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12564 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12566 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12567 | no:yes ) | |
12568 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12569 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12570 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12571 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12572 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12573 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
12574 | esac | |
12575 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12576 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12577 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12579 | else | |
12580 | eval "$as_ac_Header=$ac_header_preproc" | |
12581 | fi | |
12582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12583 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12584 | ||
12585 | fi | |
12586 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12587 | cat >>confdefs.h <<_ACEOF | |
12588 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12589 | _ACEOF | |
12590 | ||
12591 | fi | |
12592 | ||
12593 | done | |
12594 | ||
12595 | fi | |
12596 | fi | |
12597 | ||
12598 | ||
12599 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
12600 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
12601 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
12602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12603 | else | |
12604 | ac_cv_prog_cc_stdc=no | |
12605 | ac_save_CC=$CC | |
12606 | cat >conftest.$ac_ext <<_ACEOF | |
12607 | #line $LINENO "configure" | |
12608 | #include "confdefs.h" | |
12609 | #include <stdarg.h> | |
12610 | #include <stdio.h> | |
12611 | #include <sys/types.h> | |
12612 | #include <sys/stat.h> | |
12613 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
12614 | struct buf { int x; }; | |
12615 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
12616 | static char *e (p, i) | |
12617 | char **p; | |
12618 | int i; | |
12619 | { | |
12620 | return p[i]; | |
7b4a847f | 12621 | } |
247f5006 VZ |
12622 | static char *f (char * (*g) (char **, int), char **p, ...) |
12623 | { | |
12624 | char *s; | |
12625 | va_list v; | |
12626 | va_start (v,p); | |
12627 | s = g (p, va_arg (v,int)); | |
12628 | va_end (v); | |
12629 | return s; | |
8284b0c5 | 12630 | } |
247f5006 VZ |
12631 | int test (int i, double x); |
12632 | struct s1 {int (*f) (int a);}; | |
12633 | struct s2 {int (*f) (double a);}; | |
12634 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
12635 | int argc; | |
12636 | char **argv; | |
12637 | #ifdef F77_DUMMY_MAIN | |
12638 | # ifdef __cplusplus | |
12639 | extern "C" | |
12640 | # endif | |
12641 | int F77_DUMMY_MAIN() { return 1; } | |
12642 | #endif | |
12643 | int | |
12644 | main () | |
12645 | { | |
12646 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
12647 | ; | |
12648 | return 0; | |
5c6fa7d2 | 12649 | } |
247f5006 VZ |
12650 | _ACEOF |
12651 | # Don't try gcc -ansi; that turns off useful extensions and | |
12652 | # breaks some systems' header files. | |
12653 | # AIX -qlanglvl=ansi | |
12654 | # Ultrix and OSF/1 -std1 | |
12655 | # HP-UX 10.20 and later -Ae | |
12656 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
12657 | # SVR4 -Xc -D__EXTENSIONS__ | |
12658 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
12659 | do | |
12660 | CC="$ac_save_CC $ac_arg" | |
12661 | rm -f conftest.$ac_objext | |
12662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12663 | (eval $ac_compile) 2>&5 | |
12664 | ac_status=$? | |
12665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12666 | (exit $ac_status); } && | |
12667 | { ac_try='test -s conftest.$ac_objext' | |
12668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12669 | (eval $ac_try) 2>&5 | |
12670 | ac_status=$? | |
12671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12672 | (exit $ac_status); }; }; then | |
12673 | ac_cv_prog_cc_stdc=$ac_arg | |
12674 | break | |
12675 | else | |
12676 | echo "$as_me: failed program was:" >&5 | |
12677 | cat conftest.$ac_ext >&5 | |
12678 | fi | |
12679 | rm -f conftest.$ac_objext | |
12680 | done | |
12681 | rm -f conftest.$ac_ext conftest.$ac_objext | |
12682 | CC=$ac_save_CC | |
8284b0c5 | 12683 | |
247f5006 VZ |
12684 | fi |
12685 | ||
12686 | case "x$ac_cv_prog_cc_stdc" in | |
12687 | x|xno) | |
12688 | echo "$as_me:$LINENO: result: none needed" >&5 | |
12689 | echo "${ECHO_T}none needed" >&6 ;; | |
12690 | *) | |
12691 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
12692 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12693 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12694 | esac | |
12695 | ||
12696 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
12697 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
12698 | if test "${ac_cv_c_const+set}" = set; then | |
12699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12700 | else | |
12701 | cat >conftest.$ac_ext <<_ACEOF | |
12702 | #line $LINENO "configure" | |
12703 | #include "confdefs.h" | |
12704 | ||
12705 | #ifdef F77_DUMMY_MAIN | |
12706 | # ifdef __cplusplus | |
12707 | extern "C" | |
12708 | # endif | |
12709 | int F77_DUMMY_MAIN() { return 1; } | |
12710 | #endif | |
12711 | int | |
12712 | main () | |
12713 | { | |
12714 | /* FIXME: Include the comments suggested by Paul. */ | |
12715 | #ifndef __cplusplus | |
12716 | /* Ultrix mips cc rejects this. */ | |
12717 | typedef int charset[2]; | |
12718 | const charset x; | |
12719 | /* SunOS 4.1.1 cc rejects this. */ | |
12720 | char const *const *ccp; | |
12721 | char **p; | |
12722 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12723 | struct point {int x, y;}; | |
12724 | static struct point const zero = {0,0}; | |
12725 | /* AIX XL C 1.02.0.0 rejects this. | |
12726 | It does not let you subtract one const X* pointer from another in | |
12727 | an arm of an if-expression whose if-part is not a constant | |
12728 | expression */ | |
12729 | const char *g = "string"; | |
12730 | ccp = &g + (g ? g-g : 0); | |
12731 | /* HPUX 7.0 cc rejects these. */ | |
12732 | ++ccp; | |
12733 | p = (char**) ccp; | |
12734 | ccp = (char const *const *) p; | |
12735 | { /* SCO 3.2v4 cc rejects this. */ | |
12736 | char *t; | |
12737 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
12738 | ||
12739 | *t++ = 0; | |
12740 | } | |
12741 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12742 | int x[] = {25, 17}; | |
12743 | const int *foo = &x[0]; | |
12744 | ++foo; | |
12745 | } | |
12746 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12747 | typedef const int *iptr; | |
12748 | iptr p = 0; | |
12749 | ++p; | |
12750 | } | |
12751 | { /* AIX XL C 1.02.0.0 rejects this saying | |
12752 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12753 | struct s { int j; const int *ap[3]; }; | |
12754 | struct s *b; b->j = 5; | |
12755 | } | |
12756 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12757 | const int foo = 10; | |
12758 | } | |
12759 | #endif | |
12760 | ||
12761 | ; | |
12762 | return 0; | |
12763 | } | |
12764 | _ACEOF | |
12765 | rm -f conftest.$ac_objext | |
12766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12767 | (eval $ac_compile) 2>&5 | |
12768 | ac_status=$? | |
12769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12770 | (exit $ac_status); } && | |
12771 | { ac_try='test -s conftest.$ac_objext' | |
12772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12773 | (eval $ac_try) 2>&5 | |
12774 | ac_status=$? | |
12775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12776 | (exit $ac_status); }; }; then | |
21d1c967 | 12777 | ac_cv_c_const=yes |
6f72b082 | 12778 | else |
247f5006 VZ |
12779 | echo "$as_me: failed program was:" >&5 |
12780 | cat conftest.$ac_ext >&5 | |
12781 | ac_cv_c_const=no | |
4f14bcd8 | 12782 | fi |
247f5006 | 12783 | rm -f conftest.$ac_objext conftest.$ac_ext |
698dcdb6 | 12784 | fi |
247f5006 VZ |
12785 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
12786 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
8284b0c5 | 12787 | if test $ac_cv_c_const = no; then |
247f5006 VZ |
12788 | |
12789 | cat >>confdefs.h <<\_ACEOF | |
12790 | #define const | |
12791 | _ACEOF | |
90dd450c | 12792 | |
21d1c967 | 12793 | fi |
90dd450c | 12794 | |
247f5006 VZ |
12795 | echo "$as_me:$LINENO: checking for inline" >&5 |
12796 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
12797 | if test "${ac_cv_c_inline+set}" = set; then | |
12798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6f72b082 | 12799 | else |
21d1c967 GD |
12800 | ac_cv_c_inline=no |
12801 | for ac_kw in inline __inline__ __inline; do | |
247f5006 VZ |
12802 | cat >conftest.$ac_ext <<_ACEOF |
12803 | #line $LINENO "configure" | |
4f14bcd8 | 12804 | #include "confdefs.h" |
247f5006 VZ |
12805 | #ifndef __cplusplus |
12806 | static $ac_kw int static_foo () {return 0; } | |
12807 | $ac_kw int foo () {return 0; } | |
12808 | #endif | |
90dd450c | 12809 | |
247f5006 VZ |
12810 | _ACEOF |
12811 | rm -f conftest.$ac_objext | |
12812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12813 | (eval $ac_compile) 2>&5 | |
12814 | ac_status=$? | |
12815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12816 | (exit $ac_status); } && | |
12817 | { ac_try='test -s conftest.$ac_objext' | |
12818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12819 | (eval $ac_try) 2>&5 | |
12820 | ac_status=$? | |
12821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12822 | (exit $ac_status); }; }; then | |
21d1c967 | 12823 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 12824 | else |
247f5006 VZ |
12825 | echo "$as_me: failed program was:" >&5 |
12826 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 12827 | fi |
247f5006 | 12828 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 12829 | done |
4f14bcd8 | 12830 | |
21d1c967 | 12831 | fi |
247f5006 VZ |
12832 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
12833 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
12834 | case $ac_cv_c_inline in | |
21d1c967 | 12835 | inline | yes) ;; |
247f5006 VZ |
12836 | no) |
12837 | cat >>confdefs.h <<\_ACEOF | |
12838 | #define inline | |
12839 | _ACEOF | |
21d1c967 | 12840 | ;; |
247f5006 | 12841 | *) cat >>confdefs.h <<_ACEOF |
21d1c967 | 12842 | #define inline $ac_cv_c_inline |
247f5006 | 12843 | _ACEOF |
21d1c967 GD |
12844 | ;; |
12845 | esac | |
4f14bcd8 | 12846 | |
5c6fa7d2 | 12847 | |
247f5006 VZ |
12848 | echo "$as_me:$LINENO: checking for char" >&5 |
12849 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
12850 | if test "${ac_cv_type_char+set}" = set; then | |
12851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12852 | else | |
12853 | cat >conftest.$ac_ext <<_ACEOF | |
12854 | #line $LINENO "configure" | |
12855 | #include "confdefs.h" | |
12856 | $ac_includes_default | |
12857 | #ifdef F77_DUMMY_MAIN | |
12858 | # ifdef __cplusplus | |
12859 | extern "C" | |
12860 | # endif | |
12861 | int F77_DUMMY_MAIN() { return 1; } | |
12862 | #endif | |
12863 | int | |
12864 | main () | |
12865 | { | |
12866 | if ((char *) 0) | |
12867 | return 0; | |
12868 | if (sizeof (char)) | |
12869 | return 0; | |
12870 | ; | |
12871 | return 0; | |
12872 | } | |
12873 | _ACEOF | |
12874 | rm -f conftest.$ac_objext | |
12875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12876 | (eval $ac_compile) 2>&5 | |
12877 | ac_status=$? | |
12878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12879 | (exit $ac_status); } && | |
12880 | { ac_try='test -s conftest.$ac_objext' | |
12881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12882 | (eval $ac_try) 2>&5 | |
12883 | ac_status=$? | |
12884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12885 | (exit $ac_status); }; }; then | |
12886 | ac_cv_type_char=yes | |
12887 | else | |
12888 | echo "$as_me: failed program was:" >&5 | |
12889 | cat conftest.$ac_ext >&5 | |
12890 | ac_cv_type_char=no | |
12891 | fi | |
12892 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12893 | fi | |
12894 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
12895 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
12896 | ||
12897 | echo "$as_me:$LINENO: checking size of char" >&5 | |
12898 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
12899 | if test "${ac_cv_sizeof_char+set}" = set; then | |
12900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12901 | else | |
12902 | if test "$ac_cv_type_char" = yes; then | |
12903 | # The cast to unsigned long works around a bug in the HP C Compiler | |
12904 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12905 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12906 | # This bug is HP SR number 8606223364. | |
12907 | if test "$cross_compiling" = yes; then | |
12908 | # Depending upon the size, compute the lo and hi bounds. | |
12909 | cat >conftest.$ac_ext <<_ACEOF | |
12910 | #line $LINENO "configure" | |
12911 | #include "confdefs.h" | |
12912 | $ac_includes_default | |
12913 | #ifdef F77_DUMMY_MAIN | |
12914 | # ifdef __cplusplus | |
12915 | extern "C" | |
12916 | # endif | |
12917 | int F77_DUMMY_MAIN() { return 1; } | |
12918 | #endif | |
12919 | int | |
12920 | main () | |
12921 | { | |
12922 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
12923 | test_array [0] = 0 | |
12924 | ||
12925 | ; | |
12926 | return 0; | |
12927 | } | |
12928 | _ACEOF | |
12929 | rm -f conftest.$ac_objext | |
12930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12931 | (eval $ac_compile) 2>&5 | |
12932 | ac_status=$? | |
12933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12934 | (exit $ac_status); } && | |
12935 | { ac_try='test -s conftest.$ac_objext' | |
12936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12937 | (eval $ac_try) 2>&5 | |
12938 | ac_status=$? | |
12939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12940 | (exit $ac_status); }; }; then | |
12941 | ac_lo=0 ac_mid=0 | |
12942 | while :; do | |
12943 | cat >conftest.$ac_ext <<_ACEOF | |
12944 | #line $LINENO "configure" | |
12945 | #include "confdefs.h" | |
12946 | $ac_includes_default | |
12947 | #ifdef F77_DUMMY_MAIN | |
12948 | # ifdef __cplusplus | |
12949 | extern "C" | |
12950 | # endif | |
12951 | int F77_DUMMY_MAIN() { return 1; } | |
12952 | #endif | |
12953 | int | |
12954 | main () | |
12955 | { | |
12956 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
12957 | test_array [0] = 0 | |
12958 | ||
12959 | ; | |
12960 | return 0; | |
12961 | } | |
12962 | _ACEOF | |
12963 | rm -f conftest.$ac_objext | |
12964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12965 | (eval $ac_compile) 2>&5 | |
12966 | ac_status=$? | |
12967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12968 | (exit $ac_status); } && | |
12969 | { ac_try='test -s conftest.$ac_objext' | |
12970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12971 | (eval $ac_try) 2>&5 | |
12972 | ac_status=$? | |
12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12974 | (exit $ac_status); }; }; then | |
12975 | ac_hi=$ac_mid; break | |
12976 | else | |
12977 | echo "$as_me: failed program was:" >&5 | |
12978 | cat conftest.$ac_ext >&5 | |
12979 | ac_lo=`expr $ac_mid + 1` | |
12980 | if test $ac_lo -le $ac_mid; then | |
12981 | ac_lo= ac_hi= | |
12982 | break | |
12983 | fi | |
12984 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
12985 | fi | |
12986 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12987 | done | |
12988 | else | |
12989 | echo "$as_me: failed program was:" >&5 | |
12990 | cat conftest.$ac_ext >&5 | |
12991 | cat >conftest.$ac_ext <<_ACEOF | |
12992 | #line $LINENO "configure" | |
12993 | #include "confdefs.h" | |
12994 | $ac_includes_default | |
12995 | #ifdef F77_DUMMY_MAIN | |
12996 | # ifdef __cplusplus | |
12997 | extern "C" | |
12998 | # endif | |
12999 | int F77_DUMMY_MAIN() { return 1; } | |
13000 | #endif | |
13001 | int | |
13002 | main () | |
13003 | { | |
13004 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13005 | test_array [0] = 0 | |
13006 | ||
13007 | ; | |
13008 | return 0; | |
13009 | } | |
13010 | _ACEOF | |
13011 | rm -f conftest.$ac_objext | |
13012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13013 | (eval $ac_compile) 2>&5 | |
13014 | ac_status=$? | |
13015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13016 | (exit $ac_status); } && | |
13017 | { ac_try='test -s conftest.$ac_objext' | |
13018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13019 | (eval $ac_try) 2>&5 | |
13020 | ac_status=$? | |
13021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13022 | (exit $ac_status); }; }; then | |
13023 | ac_hi=-1 ac_mid=-1 | |
13024 | while :; do | |
13025 | cat >conftest.$ac_ext <<_ACEOF | |
13026 | #line $LINENO "configure" | |
13027 | #include "confdefs.h" | |
13028 | $ac_includes_default | |
13029 | #ifdef F77_DUMMY_MAIN | |
13030 | # ifdef __cplusplus | |
13031 | extern "C" | |
13032 | # endif | |
13033 | int F77_DUMMY_MAIN() { return 1; } | |
13034 | #endif | |
13035 | int | |
13036 | main () | |
13037 | { | |
13038 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13039 | test_array [0] = 0 | |
13040 | ||
13041 | ; | |
13042 | return 0; | |
13043 | } | |
13044 | _ACEOF | |
13045 | rm -f conftest.$ac_objext | |
13046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13047 | (eval $ac_compile) 2>&5 | |
13048 | ac_status=$? | |
13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13050 | (exit $ac_status); } && | |
13051 | { ac_try='test -s conftest.$ac_objext' | |
13052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13053 | (eval $ac_try) 2>&5 | |
13054 | ac_status=$? | |
13055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13056 | (exit $ac_status); }; }; then | |
13057 | ac_lo=$ac_mid; break | |
13058 | else | |
13059 | echo "$as_me: failed program was:" >&5 | |
13060 | cat conftest.$ac_ext >&5 | |
13061 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13062 | if test $ac_mid -le $ac_hi; then | |
13063 | ac_lo= ac_hi= | |
13064 | break | |
13065 | fi | |
13066 | ac_mid=`expr 2 '*' $ac_mid` | |
13067 | fi | |
13068 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13069 | done | |
13070 | else | |
13071 | echo "$as_me: failed program was:" >&5 | |
13072 | cat conftest.$ac_ext >&5 | |
13073 | ac_lo= ac_hi= | |
13074 | fi | |
13075 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13076 | fi | |
13077 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13078 | # Binary search between lo and hi bounds. | |
13079 | while test "x$ac_lo" != "x$ac_hi"; do | |
13080 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13081 | cat >conftest.$ac_ext <<_ACEOF | |
13082 | #line $LINENO "configure" | |
13083 | #include "confdefs.h" | |
13084 | $ac_includes_default | |
13085 | #ifdef F77_DUMMY_MAIN | |
13086 | # ifdef __cplusplus | |
13087 | extern "C" | |
13088 | # endif | |
13089 | int F77_DUMMY_MAIN() { return 1; } | |
13090 | #endif | |
13091 | int | |
13092 | main () | |
13093 | { | |
13094 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13095 | test_array [0] = 0 | |
13096 | ||
13097 | ; | |
13098 | return 0; | |
13099 | } | |
13100 | _ACEOF | |
13101 | rm -f conftest.$ac_objext | |
13102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13103 | (eval $ac_compile) 2>&5 | |
13104 | ac_status=$? | |
13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13106 | (exit $ac_status); } && | |
13107 | { ac_try='test -s conftest.$ac_objext' | |
13108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13109 | (eval $ac_try) 2>&5 | |
13110 | ac_status=$? | |
13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13112 | (exit $ac_status); }; }; then | |
13113 | ac_hi=$ac_mid | |
13114 | else | |
13115 | echo "$as_me: failed program was:" >&5 | |
13116 | cat conftest.$ac_ext >&5 | |
13117 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13118 | fi | |
13119 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13120 | done | |
13121 | case $ac_lo in | |
13122 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
13123 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | |
13124 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | |
13125 | { (exit 1); exit 1; }; } ;; | |
13126 | esac | |
13127 | else | |
13128 | if test "$cross_compiling" = yes; then | |
13129 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
13130 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13131 | { (exit 1); exit 1; }; } | |
13132 | else | |
13133 | cat >conftest.$ac_ext <<_ACEOF | |
13134 | #line $LINENO "configure" | |
13135 | #include "confdefs.h" | |
13136 | $ac_includes_default | |
13137 | long longval () { return (long) (sizeof (char)); } | |
13138 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
13139 | #include <stdio.h> | |
13140 | #include <stdlib.h> | |
13141 | #ifdef F77_DUMMY_MAIN | |
13142 | # ifdef __cplusplus | |
13143 | extern "C" | |
13144 | # endif | |
13145 | int F77_DUMMY_MAIN() { return 1; } | |
13146 | #endif | |
13147 | int | |
13148 | main () | |
13149 | { | |
13150 | ||
13151 | FILE *f = fopen ("conftest.val", "w"); | |
13152 | if (! f) | |
13153 | exit (1); | |
13154 | if (((long) (sizeof (char))) < 0) | |
13155 | { | |
13156 | long i = longval (); | |
13157 | if (i != ((long) (sizeof (char)))) | |
13158 | exit (1); | |
13159 | fprintf (f, "%ld\n", i); | |
13160 | } | |
13161 | else | |
13162 | { | |
13163 | unsigned long i = ulongval (); | |
13164 | if (i != ((long) (sizeof (char)))) | |
13165 | exit (1); | |
13166 | fprintf (f, "%lu\n", i); | |
13167 | } | |
13168 | exit (ferror (f) || fclose (f) != 0); | |
13169 | ||
13170 | ; | |
13171 | return 0; | |
13172 | } | |
13173 | _ACEOF | |
13174 | rm -f conftest$ac_exeext | |
13175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13176 | (eval $ac_link) 2>&5 | |
13177 | ac_status=$? | |
13178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13181 | (eval $ac_try) 2>&5 | |
13182 | ac_status=$? | |
13183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13184 | (exit $ac_status); }; }; then | |
13185 | ac_cv_sizeof_char=`cat conftest.val` | |
13186 | else | |
13187 | echo "$as_me: program exited with status $ac_status" >&5 | |
13188 | echo "$as_me: failed program was:" >&5 | |
13189 | cat conftest.$ac_ext >&5 | |
13190 | ( exit $ac_status ) | |
13191 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 | |
13192 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} | |
13193 | { (exit 1); exit 1; }; } | |
13194 | fi | |
13195 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13196 | fi | |
13197 | fi | |
13198 | rm -f conftest.val | |
13199 | else | |
13200 | ac_cv_sizeof_char=0 | |
13201 | fi | |
13202 | fi | |
13203 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
13204 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
13205 | cat >>confdefs.h <<_ACEOF | |
13206 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13207 | _ACEOF | |
13208 | ||
13209 | ||
13210 | echo "$as_me:$LINENO: checking for short" >&5 | |
13211 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
13212 | if test "${ac_cv_type_short+set}" = set; then | |
13213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13214 | else | |
13215 | cat >conftest.$ac_ext <<_ACEOF | |
13216 | #line $LINENO "configure" | |
13217 | #include "confdefs.h" | |
13218 | $ac_includes_default | |
13219 | #ifdef F77_DUMMY_MAIN | |
13220 | # ifdef __cplusplus | |
13221 | extern "C" | |
13222 | # endif | |
13223 | int F77_DUMMY_MAIN() { return 1; } | |
13224 | #endif | |
13225 | int | |
13226 | main () | |
13227 | { | |
13228 | if ((short *) 0) | |
13229 | return 0; | |
13230 | if (sizeof (short)) | |
13231 | return 0; | |
13232 | ; | |
13233 | return 0; | |
13234 | } | |
13235 | _ACEOF | |
13236 | rm -f conftest.$ac_objext | |
13237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13238 | (eval $ac_compile) 2>&5 | |
13239 | ac_status=$? | |
13240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13241 | (exit $ac_status); } && | |
13242 | { ac_try='test -s conftest.$ac_objext' | |
13243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13244 | (eval $ac_try) 2>&5 | |
13245 | ac_status=$? | |
13246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13247 | (exit $ac_status); }; }; then | |
13248 | ac_cv_type_short=yes | |
13249 | else | |
13250 | echo "$as_me: failed program was:" >&5 | |
13251 | cat conftest.$ac_ext >&5 | |
13252 | ac_cv_type_short=no | |
13253 | fi | |
13254 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13255 | fi | |
13256 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
13257 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
13258 | ||
13259 | echo "$as_me:$LINENO: checking size of short" >&5 | |
13260 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
13261 | if test "${ac_cv_sizeof_short+set}" = set; then | |
13262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13263 | else | |
13264 | if test "$ac_cv_type_short" = yes; then | |
13265 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13266 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13267 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13268 | # This bug is HP SR number 8606223364. | |
13269 | if test "$cross_compiling" = yes; then | |
13270 | # Depending upon the size, compute the lo and hi bounds. | |
13271 | cat >conftest.$ac_ext <<_ACEOF | |
13272 | #line $LINENO "configure" | |
13273 | #include "confdefs.h" | |
13274 | $ac_includes_default | |
13275 | #ifdef F77_DUMMY_MAIN | |
13276 | # ifdef __cplusplus | |
13277 | extern "C" | |
13278 | # endif | |
13279 | int F77_DUMMY_MAIN() { return 1; } | |
13280 | #endif | |
13281 | int | |
13282 | main () | |
13283 | { | |
13284 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
13285 | test_array [0] = 0 | |
13286 | ||
13287 | ; | |
13288 | return 0; | |
13289 | } | |
13290 | _ACEOF | |
13291 | rm -f conftest.$ac_objext | |
13292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13293 | (eval $ac_compile) 2>&5 | |
13294 | ac_status=$? | |
13295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13296 | (exit $ac_status); } && | |
13297 | { ac_try='test -s conftest.$ac_objext' | |
13298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13299 | (eval $ac_try) 2>&5 | |
13300 | ac_status=$? | |
13301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13302 | (exit $ac_status); }; }; then | |
13303 | ac_lo=0 ac_mid=0 | |
13304 | while :; do | |
13305 | cat >conftest.$ac_ext <<_ACEOF | |
13306 | #line $LINENO "configure" | |
13307 | #include "confdefs.h" | |
13308 | $ac_includes_default | |
13309 | #ifdef F77_DUMMY_MAIN | |
13310 | # ifdef __cplusplus | |
13311 | extern "C" | |
13312 | # endif | |
13313 | int F77_DUMMY_MAIN() { return 1; } | |
13314 | #endif | |
13315 | int | |
13316 | main () | |
13317 | { | |
13318 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
13319 | test_array [0] = 0 | |
13320 | ||
13321 | ; | |
13322 | return 0; | |
13323 | } | |
13324 | _ACEOF | |
13325 | rm -f conftest.$ac_objext | |
13326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13327 | (eval $ac_compile) 2>&5 | |
13328 | ac_status=$? | |
13329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13330 | (exit $ac_status); } && | |
13331 | { ac_try='test -s conftest.$ac_objext' | |
13332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13333 | (eval $ac_try) 2>&5 | |
13334 | ac_status=$? | |
13335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13336 | (exit $ac_status); }; }; then | |
13337 | ac_hi=$ac_mid; break | |
13338 | else | |
13339 | echo "$as_me: failed program was:" >&5 | |
13340 | cat conftest.$ac_ext >&5 | |
13341 | ac_lo=`expr $ac_mid + 1` | |
13342 | if test $ac_lo -le $ac_mid; then | |
13343 | ac_lo= ac_hi= | |
13344 | break | |
13345 | fi | |
13346 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13347 | fi | |
13348 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13349 | done | |
13350 | else | |
13351 | echo "$as_me: failed program was:" >&5 | |
13352 | cat conftest.$ac_ext >&5 | |
13353 | cat >conftest.$ac_ext <<_ACEOF | |
13354 | #line $LINENO "configure" | |
13355 | #include "confdefs.h" | |
13356 | $ac_includes_default | |
13357 | #ifdef F77_DUMMY_MAIN | |
13358 | # ifdef __cplusplus | |
13359 | extern "C" | |
13360 | # endif | |
13361 | int F77_DUMMY_MAIN() { return 1; } | |
13362 | #endif | |
13363 | int | |
13364 | main () | |
13365 | { | |
13366 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
13367 | test_array [0] = 0 | |
13368 | ||
13369 | ; | |
13370 | return 0; | |
13371 | } | |
13372 | _ACEOF | |
13373 | rm -f conftest.$ac_objext | |
13374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13375 | (eval $ac_compile) 2>&5 | |
13376 | ac_status=$? | |
13377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13378 | (exit $ac_status); } && | |
13379 | { ac_try='test -s conftest.$ac_objext' | |
13380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13381 | (eval $ac_try) 2>&5 | |
13382 | ac_status=$? | |
13383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13384 | (exit $ac_status); }; }; then | |
13385 | ac_hi=-1 ac_mid=-1 | |
13386 | while :; do | |
13387 | cat >conftest.$ac_ext <<_ACEOF | |
13388 | #line $LINENO "configure" | |
13389 | #include "confdefs.h" | |
13390 | $ac_includes_default | |
13391 | #ifdef F77_DUMMY_MAIN | |
13392 | # ifdef __cplusplus | |
13393 | extern "C" | |
13394 | # endif | |
13395 | int F77_DUMMY_MAIN() { return 1; } | |
13396 | #endif | |
13397 | int | |
13398 | main () | |
13399 | { | |
13400 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
13401 | test_array [0] = 0 | |
13402 | ||
13403 | ; | |
13404 | return 0; | |
13405 | } | |
13406 | _ACEOF | |
13407 | rm -f conftest.$ac_objext | |
13408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13409 | (eval $ac_compile) 2>&5 | |
13410 | ac_status=$? | |
13411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13412 | (exit $ac_status); } && | |
13413 | { ac_try='test -s conftest.$ac_objext' | |
13414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13415 | (eval $ac_try) 2>&5 | |
13416 | ac_status=$? | |
13417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13418 | (exit $ac_status); }; }; then | |
13419 | ac_lo=$ac_mid; break | |
13420 | else | |
13421 | echo "$as_me: failed program was:" >&5 | |
13422 | cat conftest.$ac_ext >&5 | |
13423 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13424 | if test $ac_mid -le $ac_hi; then | |
13425 | ac_lo= ac_hi= | |
13426 | break | |
13427 | fi | |
13428 | ac_mid=`expr 2 '*' $ac_mid` | |
13429 | fi | |
13430 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13431 | done | |
13432 | else | |
13433 | echo "$as_me: failed program was:" >&5 | |
13434 | cat conftest.$ac_ext >&5 | |
13435 | ac_lo= ac_hi= | |
13436 | fi | |
13437 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13438 | fi | |
13439 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13440 | # Binary search between lo and hi bounds. | |
13441 | while test "x$ac_lo" != "x$ac_hi"; do | |
13442 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13443 | cat >conftest.$ac_ext <<_ACEOF | |
13444 | #line $LINENO "configure" | |
13445 | #include "confdefs.h" | |
13446 | $ac_includes_default | |
13447 | #ifdef F77_DUMMY_MAIN | |
13448 | # ifdef __cplusplus | |
13449 | extern "C" | |
13450 | # endif | |
13451 | int F77_DUMMY_MAIN() { return 1; } | |
13452 | #endif | |
13453 | int | |
13454 | main () | |
13455 | { | |
13456 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
13457 | test_array [0] = 0 | |
13458 | ||
13459 | ; | |
13460 | return 0; | |
13461 | } | |
13462 | _ACEOF | |
13463 | rm -f conftest.$ac_objext | |
13464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13465 | (eval $ac_compile) 2>&5 | |
13466 | ac_status=$? | |
13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13468 | (exit $ac_status); } && | |
13469 | { ac_try='test -s conftest.$ac_objext' | |
13470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13471 | (eval $ac_try) 2>&5 | |
13472 | ac_status=$? | |
13473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13474 | (exit $ac_status); }; }; then | |
13475 | ac_hi=$ac_mid | |
13476 | else | |
13477 | echo "$as_me: failed program was:" >&5 | |
13478 | cat conftest.$ac_ext >&5 | |
13479 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13480 | fi | |
13481 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13482 | done | |
13483 | case $ac_lo in | |
13484 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
13485 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 | |
13486 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} | |
13487 | { (exit 1); exit 1; }; } ;; | |
13488 | esac | |
13489 | else | |
13490 | if test "$cross_compiling" = yes; then | |
13491 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
13492 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13493 | { (exit 1); exit 1; }; } | |
13494 | else | |
13495 | cat >conftest.$ac_ext <<_ACEOF | |
13496 | #line $LINENO "configure" | |
13497 | #include "confdefs.h" | |
13498 | $ac_includes_default | |
13499 | long longval () { return (long) (sizeof (short)); } | |
13500 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
13501 | #include <stdio.h> | |
13502 | #include <stdlib.h> | |
13503 | #ifdef F77_DUMMY_MAIN | |
13504 | # ifdef __cplusplus | |
13505 | extern "C" | |
13506 | # endif | |
13507 | int F77_DUMMY_MAIN() { return 1; } | |
13508 | #endif | |
13509 | int | |
13510 | main () | |
13511 | { | |
13512 | ||
13513 | FILE *f = fopen ("conftest.val", "w"); | |
13514 | if (! f) | |
13515 | exit (1); | |
13516 | if (((long) (sizeof (short))) < 0) | |
13517 | { | |
13518 | long i = longval (); | |
13519 | if (i != ((long) (sizeof (short)))) | |
13520 | exit (1); | |
13521 | fprintf (f, "%ld\n", i); | |
13522 | } | |
13523 | else | |
13524 | { | |
13525 | unsigned long i = ulongval (); | |
13526 | if (i != ((long) (sizeof (short)))) | |
13527 | exit (1); | |
13528 | fprintf (f, "%lu\n", i); | |
13529 | } | |
13530 | exit (ferror (f) || fclose (f) != 0); | |
13531 | ||
13532 | ; | |
13533 | return 0; | |
13534 | } | |
13535 | _ACEOF | |
13536 | rm -f conftest$ac_exeext | |
13537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13538 | (eval $ac_link) 2>&5 | |
13539 | ac_status=$? | |
13540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13543 | (eval $ac_try) 2>&5 | |
13544 | ac_status=$? | |
13545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13546 | (exit $ac_status); }; }; then | |
13547 | ac_cv_sizeof_short=`cat conftest.val` | |
13548 | else | |
13549 | echo "$as_me: program exited with status $ac_status" >&5 | |
13550 | echo "$as_me: failed program was:" >&5 | |
13551 | cat conftest.$ac_ext >&5 | |
13552 | ( exit $ac_status ) | |
13553 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 | |
13554 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} | |
13555 | { (exit 1); exit 1; }; } | |
13556 | fi | |
13557 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13558 | fi | |
13559 | fi | |
13560 | rm -f conftest.val | |
13561 | else | |
13562 | ac_cv_sizeof_short=0 | |
13563 | fi | |
13564 | fi | |
13565 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
13566 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
13567 | cat >>confdefs.h <<_ACEOF | |
13568 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13569 | _ACEOF | |
13570 | ||
13571 | ||
13572 | echo "$as_me:$LINENO: checking for void *" >&5 | |
13573 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
13574 | if test "${ac_cv_type_void_p+set}" = set; then | |
13575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13576 | else | |
13577 | cat >conftest.$ac_ext <<_ACEOF | |
13578 | #line $LINENO "configure" | |
13579 | #include "confdefs.h" | |
13580 | $ac_includes_default | |
13581 | #ifdef F77_DUMMY_MAIN | |
13582 | # ifdef __cplusplus | |
13583 | extern "C" | |
13584 | # endif | |
13585 | int F77_DUMMY_MAIN() { return 1; } | |
13586 | #endif | |
13587 | int | |
13588 | main () | |
13589 | { | |
13590 | if ((void * *) 0) | |
13591 | return 0; | |
13592 | if (sizeof (void *)) | |
13593 | return 0; | |
13594 | ; | |
13595 | return 0; | |
13596 | } | |
13597 | _ACEOF | |
13598 | rm -f conftest.$ac_objext | |
13599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13600 | (eval $ac_compile) 2>&5 | |
13601 | ac_status=$? | |
13602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13603 | (exit $ac_status); } && | |
13604 | { ac_try='test -s conftest.$ac_objext' | |
13605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13606 | (eval $ac_try) 2>&5 | |
13607 | ac_status=$? | |
13608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13609 | (exit $ac_status); }; }; then | |
13610 | ac_cv_type_void_p=yes | |
13611 | else | |
13612 | echo "$as_me: failed program was:" >&5 | |
13613 | cat conftest.$ac_ext >&5 | |
13614 | ac_cv_type_void_p=no | |
13615 | fi | |
13616 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13617 | fi | |
13618 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
13619 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
13620 | ||
13621 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
13622 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
13623 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
13624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13625 | else | |
13626 | if test "$ac_cv_type_void_p" = yes; then | |
13627 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13628 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13629 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13630 | # This bug is HP SR number 8606223364. | |
13631 | if test "$cross_compiling" = yes; then | |
13632 | # Depending upon the size, compute the lo and hi bounds. | |
13633 | cat >conftest.$ac_ext <<_ACEOF | |
13634 | #line $LINENO "configure" | |
13635 | #include "confdefs.h" | |
13636 | $ac_includes_default | |
13637 | #ifdef F77_DUMMY_MAIN | |
13638 | # ifdef __cplusplus | |
13639 | extern "C" | |
13640 | # endif | |
13641 | int F77_DUMMY_MAIN() { return 1; } | |
13642 | #endif | |
13643 | int | |
13644 | main () | |
13645 | { | |
13646 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
13647 | test_array [0] = 0 | |
13648 | ||
13649 | ; | |
13650 | return 0; | |
13651 | } | |
13652 | _ACEOF | |
13653 | rm -f conftest.$ac_objext | |
13654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13655 | (eval $ac_compile) 2>&5 | |
13656 | ac_status=$? | |
13657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13658 | (exit $ac_status); } && | |
13659 | { ac_try='test -s conftest.$ac_objext' | |
13660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13661 | (eval $ac_try) 2>&5 | |
13662 | ac_status=$? | |
13663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13664 | (exit $ac_status); }; }; then | |
13665 | ac_lo=0 ac_mid=0 | |
13666 | while :; do | |
13667 | cat >conftest.$ac_ext <<_ACEOF | |
13668 | #line $LINENO "configure" | |
13669 | #include "confdefs.h" | |
13670 | $ac_includes_default | |
13671 | #ifdef F77_DUMMY_MAIN | |
13672 | # ifdef __cplusplus | |
13673 | extern "C" | |
13674 | # endif | |
13675 | int F77_DUMMY_MAIN() { return 1; } | |
13676 | #endif | |
13677 | int | |
13678 | main () | |
13679 | { | |
13680 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
13681 | test_array [0] = 0 | |
13682 | ||
13683 | ; | |
13684 | return 0; | |
13685 | } | |
13686 | _ACEOF | |
13687 | rm -f conftest.$ac_objext | |
13688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13689 | (eval $ac_compile) 2>&5 | |
13690 | ac_status=$? | |
13691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13692 | (exit $ac_status); } && | |
13693 | { ac_try='test -s conftest.$ac_objext' | |
13694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13695 | (eval $ac_try) 2>&5 | |
13696 | ac_status=$? | |
13697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13698 | (exit $ac_status); }; }; then | |
13699 | ac_hi=$ac_mid; break | |
13700 | else | |
13701 | echo "$as_me: failed program was:" >&5 | |
13702 | cat conftest.$ac_ext >&5 | |
13703 | ac_lo=`expr $ac_mid + 1` | |
13704 | if test $ac_lo -le $ac_mid; then | |
13705 | ac_lo= ac_hi= | |
13706 | break | |
13707 | fi | |
13708 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13709 | fi | |
13710 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13711 | done | |
13712 | else | |
13713 | echo "$as_me: failed program was:" >&5 | |
13714 | cat conftest.$ac_ext >&5 | |
13715 | cat >conftest.$ac_ext <<_ACEOF | |
13716 | #line $LINENO "configure" | |
13717 | #include "confdefs.h" | |
13718 | $ac_includes_default | |
13719 | #ifdef F77_DUMMY_MAIN | |
13720 | # ifdef __cplusplus | |
13721 | extern "C" | |
13722 | # endif | |
13723 | int F77_DUMMY_MAIN() { return 1; } | |
13724 | #endif | |
13725 | int | |
13726 | main () | |
13727 | { | |
13728 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
13729 | test_array [0] = 0 | |
13730 | ||
13731 | ; | |
13732 | return 0; | |
13733 | } | |
13734 | _ACEOF | |
13735 | rm -f conftest.$ac_objext | |
13736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13737 | (eval $ac_compile) 2>&5 | |
13738 | ac_status=$? | |
13739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13740 | (exit $ac_status); } && | |
13741 | { ac_try='test -s conftest.$ac_objext' | |
13742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13743 | (eval $ac_try) 2>&5 | |
13744 | ac_status=$? | |
13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13746 | (exit $ac_status); }; }; then | |
13747 | ac_hi=-1 ac_mid=-1 | |
13748 | while :; do | |
13749 | cat >conftest.$ac_ext <<_ACEOF | |
13750 | #line $LINENO "configure" | |
13751 | #include "confdefs.h" | |
13752 | $ac_includes_default | |
13753 | #ifdef F77_DUMMY_MAIN | |
13754 | # ifdef __cplusplus | |
13755 | extern "C" | |
13756 | # endif | |
13757 | int F77_DUMMY_MAIN() { return 1; } | |
13758 | #endif | |
13759 | int | |
13760 | main () | |
13761 | { | |
13762 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
13763 | test_array [0] = 0 | |
13764 | ||
13765 | ; | |
13766 | return 0; | |
13767 | } | |
13768 | _ACEOF | |
13769 | rm -f conftest.$ac_objext | |
13770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13771 | (eval $ac_compile) 2>&5 | |
13772 | ac_status=$? | |
13773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13774 | (exit $ac_status); } && | |
13775 | { ac_try='test -s conftest.$ac_objext' | |
13776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13777 | (eval $ac_try) 2>&5 | |
13778 | ac_status=$? | |
13779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13780 | (exit $ac_status); }; }; then | |
13781 | ac_lo=$ac_mid; break | |
13782 | else | |
13783 | echo "$as_me: failed program was:" >&5 | |
13784 | cat conftest.$ac_ext >&5 | |
13785 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13786 | if test $ac_mid -le $ac_hi; then | |
13787 | ac_lo= ac_hi= | |
13788 | break | |
13789 | fi | |
13790 | ac_mid=`expr 2 '*' $ac_mid` | |
13791 | fi | |
13792 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13793 | done | |
13794 | else | |
13795 | echo "$as_me: failed program was:" >&5 | |
13796 | cat conftest.$ac_ext >&5 | |
13797 | ac_lo= ac_hi= | |
13798 | fi | |
13799 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13800 | fi | |
13801 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13802 | # Binary search between lo and hi bounds. | |
13803 | while test "x$ac_lo" != "x$ac_hi"; do | |
13804 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13805 | cat >conftest.$ac_ext <<_ACEOF | |
13806 | #line $LINENO "configure" | |
13807 | #include "confdefs.h" | |
13808 | $ac_includes_default | |
13809 | #ifdef F77_DUMMY_MAIN | |
13810 | # ifdef __cplusplus | |
13811 | extern "C" | |
13812 | # endif | |
13813 | int F77_DUMMY_MAIN() { return 1; } | |
13814 | #endif | |
13815 | int | |
13816 | main () | |
13817 | { | |
13818 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
13819 | test_array [0] = 0 | |
13820 | ||
13821 | ; | |
13822 | return 0; | |
13823 | } | |
13824 | _ACEOF | |
13825 | rm -f conftest.$ac_objext | |
13826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13827 | (eval $ac_compile) 2>&5 | |
13828 | ac_status=$? | |
13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13830 | (exit $ac_status); } && | |
13831 | { ac_try='test -s conftest.$ac_objext' | |
13832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13833 | (eval $ac_try) 2>&5 | |
13834 | ac_status=$? | |
13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13836 | (exit $ac_status); }; }; then | |
13837 | ac_hi=$ac_mid | |
13838 | else | |
13839 | echo "$as_me: failed program was:" >&5 | |
13840 | cat conftest.$ac_ext >&5 | |
13841 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13842 | fi | |
13843 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13844 | done | |
13845 | case $ac_lo in | |
13846 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
13847 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 | |
13848 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} | |
13849 | { (exit 1); exit 1; }; } ;; | |
13850 | esac | |
13851 | else | |
13852 | if test "$cross_compiling" = yes; then | |
13853 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
13854 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
13855 | { (exit 1); exit 1; }; } | |
13856 | else | |
13857 | cat >conftest.$ac_ext <<_ACEOF | |
13858 | #line $LINENO "configure" | |
13859 | #include "confdefs.h" | |
13860 | $ac_includes_default | |
13861 | long longval () { return (long) (sizeof (void *)); } | |
13862 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
13863 | #include <stdio.h> | |
13864 | #include <stdlib.h> | |
13865 | #ifdef F77_DUMMY_MAIN | |
13866 | # ifdef __cplusplus | |
13867 | extern "C" | |
13868 | # endif | |
13869 | int F77_DUMMY_MAIN() { return 1; } | |
13870 | #endif | |
13871 | int | |
13872 | main () | |
13873 | { | |
13874 | ||
13875 | FILE *f = fopen ("conftest.val", "w"); | |
13876 | if (! f) | |
13877 | exit (1); | |
13878 | if (((long) (sizeof (void *))) < 0) | |
13879 | { | |
13880 | long i = longval (); | |
13881 | if (i != ((long) (sizeof (void *)))) | |
13882 | exit (1); | |
13883 | fprintf (f, "%ld\n", i); | |
13884 | } | |
13885 | else | |
13886 | { | |
13887 | unsigned long i = ulongval (); | |
13888 | if (i != ((long) (sizeof (void *)))) | |
13889 | exit (1); | |
13890 | fprintf (f, "%lu\n", i); | |
13891 | } | |
13892 | exit (ferror (f) || fclose (f) != 0); | |
13893 | ||
13894 | ; | |
13895 | return 0; | |
13896 | } | |
13897 | _ACEOF | |
13898 | rm -f conftest$ac_exeext | |
13899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13900 | (eval $ac_link) 2>&5 | |
13901 | ac_status=$? | |
13902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13905 | (eval $ac_try) 2>&5 | |
13906 | ac_status=$? | |
13907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13908 | (exit $ac_status); }; }; then | |
13909 | ac_cv_sizeof_void_p=`cat conftest.val` | |
13910 | else | |
13911 | echo "$as_me: program exited with status $ac_status" >&5 | |
13912 | echo "$as_me: failed program was:" >&5 | |
13913 | cat conftest.$ac_ext >&5 | |
13914 | ( exit $ac_status ) | |
13915 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 | |
13916 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} | |
13917 | { (exit 1); exit 1; }; } | |
13918 | fi | |
13919 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13920 | fi | |
13921 | fi | |
13922 | rm -f conftest.val | |
13923 | else | |
13924 | ac_cv_sizeof_void_p=0 | |
13925 | fi | |
13926 | fi | |
13927 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
13928 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
13929 | cat >>confdefs.h <<_ACEOF | |
13930 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
13931 | _ACEOF | |
13932 | ||
13933 | ||
13934 | echo "$as_me:$LINENO: checking for int" >&5 | |
13935 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
13936 | if test "${ac_cv_type_int+set}" = set; then | |
13937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13938 | else | |
13939 | cat >conftest.$ac_ext <<_ACEOF | |
13940 | #line $LINENO "configure" | |
13941 | #include "confdefs.h" | |
13942 | $ac_includes_default | |
13943 | #ifdef F77_DUMMY_MAIN | |
13944 | # ifdef __cplusplus | |
13945 | extern "C" | |
13946 | # endif | |
13947 | int F77_DUMMY_MAIN() { return 1; } | |
13948 | #endif | |
13949 | int | |
13950 | main () | |
13951 | { | |
13952 | if ((int *) 0) | |
13953 | return 0; | |
13954 | if (sizeof (int)) | |
13955 | return 0; | |
13956 | ; | |
13957 | return 0; | |
13958 | } | |
13959 | _ACEOF | |
13960 | rm -f conftest.$ac_objext | |
13961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13962 | (eval $ac_compile) 2>&5 | |
13963 | ac_status=$? | |
13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13965 | (exit $ac_status); } && | |
13966 | { ac_try='test -s conftest.$ac_objext' | |
13967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13968 | (eval $ac_try) 2>&5 | |
13969 | ac_status=$? | |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13971 | (exit $ac_status); }; }; then | |
13972 | ac_cv_type_int=yes | |
13973 | else | |
13974 | echo "$as_me: failed program was:" >&5 | |
13975 | cat conftest.$ac_ext >&5 | |
13976 | ac_cv_type_int=no | |
13977 | fi | |
13978 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13979 | fi | |
13980 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
13981 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
13982 | ||
13983 | echo "$as_me:$LINENO: checking size of int" >&5 | |
13984 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
13985 | if test "${ac_cv_sizeof_int+set}" = set; then | |
13986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13987 | else | |
13988 | if test "$ac_cv_type_int" = yes; then | |
13989 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13990 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13991 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13992 | # This bug is HP SR number 8606223364. | |
13993 | if test "$cross_compiling" = yes; then | |
13994 | # Depending upon the size, compute the lo and hi bounds. | |
13995 | cat >conftest.$ac_ext <<_ACEOF | |
13996 | #line $LINENO "configure" | |
13997 | #include "confdefs.h" | |
13998 | $ac_includes_default | |
13999 | #ifdef F77_DUMMY_MAIN | |
14000 | # ifdef __cplusplus | |
14001 | extern "C" | |
14002 | # endif | |
14003 | int F77_DUMMY_MAIN() { return 1; } | |
14004 | #endif | |
14005 | int | |
14006 | main () | |
14007 | { | |
14008 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14009 | test_array [0] = 0 | |
14010 | ||
14011 | ; | |
14012 | return 0; | |
14013 | } | |
14014 | _ACEOF | |
14015 | rm -f conftest.$ac_objext | |
14016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14017 | (eval $ac_compile) 2>&5 | |
14018 | ac_status=$? | |
14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14020 | (exit $ac_status); } && | |
14021 | { ac_try='test -s conftest.$ac_objext' | |
14022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14023 | (eval $ac_try) 2>&5 | |
14024 | ac_status=$? | |
14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14026 | (exit $ac_status); }; }; then | |
14027 | ac_lo=0 ac_mid=0 | |
14028 | while :; do | |
14029 | cat >conftest.$ac_ext <<_ACEOF | |
14030 | #line $LINENO "configure" | |
14031 | #include "confdefs.h" | |
14032 | $ac_includes_default | |
14033 | #ifdef F77_DUMMY_MAIN | |
14034 | # ifdef __cplusplus | |
14035 | extern "C" | |
14036 | # endif | |
14037 | int F77_DUMMY_MAIN() { return 1; } | |
14038 | #endif | |
14039 | int | |
14040 | main () | |
14041 | { | |
14042 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14043 | test_array [0] = 0 | |
14044 | ||
14045 | ; | |
14046 | return 0; | |
14047 | } | |
14048 | _ACEOF | |
14049 | rm -f conftest.$ac_objext | |
14050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14051 | (eval $ac_compile) 2>&5 | |
14052 | ac_status=$? | |
14053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14054 | (exit $ac_status); } && | |
14055 | { ac_try='test -s conftest.$ac_objext' | |
14056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14057 | (eval $ac_try) 2>&5 | |
14058 | ac_status=$? | |
14059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14060 | (exit $ac_status); }; }; then | |
14061 | ac_hi=$ac_mid; break | |
14062 | else | |
14063 | echo "$as_me: failed program was:" >&5 | |
14064 | cat conftest.$ac_ext >&5 | |
14065 | ac_lo=`expr $ac_mid + 1` | |
14066 | if test $ac_lo -le $ac_mid; then | |
14067 | ac_lo= ac_hi= | |
14068 | break | |
14069 | fi | |
14070 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14071 | fi | |
14072 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14073 | done | |
14074 | else | |
14075 | echo "$as_me: failed program was:" >&5 | |
14076 | cat conftest.$ac_ext >&5 | |
14077 | cat >conftest.$ac_ext <<_ACEOF | |
14078 | #line $LINENO "configure" | |
14079 | #include "confdefs.h" | |
14080 | $ac_includes_default | |
14081 | #ifdef F77_DUMMY_MAIN | |
14082 | # ifdef __cplusplus | |
14083 | extern "C" | |
14084 | # endif | |
14085 | int F77_DUMMY_MAIN() { return 1; } | |
14086 | #endif | |
14087 | int | |
14088 | main () | |
14089 | { | |
14090 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14091 | test_array [0] = 0 | |
14092 | ||
14093 | ; | |
14094 | return 0; | |
14095 | } | |
14096 | _ACEOF | |
14097 | rm -f conftest.$ac_objext | |
14098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14099 | (eval $ac_compile) 2>&5 | |
14100 | ac_status=$? | |
14101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14102 | (exit $ac_status); } && | |
14103 | { ac_try='test -s conftest.$ac_objext' | |
14104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14105 | (eval $ac_try) 2>&5 | |
14106 | ac_status=$? | |
14107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14108 | (exit $ac_status); }; }; then | |
14109 | ac_hi=-1 ac_mid=-1 | |
14110 | while :; do | |
14111 | cat >conftest.$ac_ext <<_ACEOF | |
14112 | #line $LINENO "configure" | |
14113 | #include "confdefs.h" | |
14114 | $ac_includes_default | |
14115 | #ifdef F77_DUMMY_MAIN | |
14116 | # ifdef __cplusplus | |
14117 | extern "C" | |
14118 | # endif | |
14119 | int F77_DUMMY_MAIN() { return 1; } | |
14120 | #endif | |
14121 | int | |
14122 | main () | |
14123 | { | |
14124 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14125 | test_array [0] = 0 | |
14126 | ||
14127 | ; | |
14128 | return 0; | |
14129 | } | |
14130 | _ACEOF | |
14131 | rm -f conftest.$ac_objext | |
14132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14133 | (eval $ac_compile) 2>&5 | |
14134 | ac_status=$? | |
14135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14136 | (exit $ac_status); } && | |
14137 | { ac_try='test -s conftest.$ac_objext' | |
14138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14139 | (eval $ac_try) 2>&5 | |
14140 | ac_status=$? | |
14141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14142 | (exit $ac_status); }; }; then | |
14143 | ac_lo=$ac_mid; break | |
14144 | else | |
14145 | echo "$as_me: failed program was:" >&5 | |
14146 | cat conftest.$ac_ext >&5 | |
14147 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14148 | if test $ac_mid -le $ac_hi; then | |
14149 | ac_lo= ac_hi= | |
14150 | break | |
14151 | fi | |
14152 | ac_mid=`expr 2 '*' $ac_mid` | |
14153 | fi | |
14154 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14155 | done | |
14156 | else | |
14157 | echo "$as_me: failed program was:" >&5 | |
14158 | cat conftest.$ac_ext >&5 | |
14159 | ac_lo= ac_hi= | |
14160 | fi | |
14161 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14162 | fi | |
14163 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14164 | # Binary search between lo and hi bounds. | |
14165 | while test "x$ac_lo" != "x$ac_hi"; do | |
14166 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14167 | cat >conftest.$ac_ext <<_ACEOF | |
14168 | #line $LINENO "configure" | |
14169 | #include "confdefs.h" | |
14170 | $ac_includes_default | |
14171 | #ifdef F77_DUMMY_MAIN | |
14172 | # ifdef __cplusplus | |
14173 | extern "C" | |
14174 | # endif | |
14175 | int F77_DUMMY_MAIN() { return 1; } | |
14176 | #endif | |
14177 | int | |
14178 | main () | |
14179 | { | |
14180 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14181 | test_array [0] = 0 | |
14182 | ||
14183 | ; | |
14184 | return 0; | |
14185 | } | |
14186 | _ACEOF | |
14187 | rm -f conftest.$ac_objext | |
14188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14189 | (eval $ac_compile) 2>&5 | |
14190 | ac_status=$? | |
14191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14192 | (exit $ac_status); } && | |
14193 | { ac_try='test -s conftest.$ac_objext' | |
14194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14195 | (eval $ac_try) 2>&5 | |
14196 | ac_status=$? | |
14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14198 | (exit $ac_status); }; }; then | |
14199 | ac_hi=$ac_mid | |
14200 | else | |
14201 | echo "$as_me: failed program was:" >&5 | |
14202 | cat conftest.$ac_ext >&5 | |
14203 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14204 | fi | |
14205 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14206 | done | |
14207 | case $ac_lo in | |
14208 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
14209 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | |
14210 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | |
14211 | { (exit 1); exit 1; }; } ;; | |
14212 | esac | |
14213 | else | |
14214 | if test "$cross_compiling" = yes; then | |
14215 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 | |
14216 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
14217 | { (exit 1); exit 1; }; } | |
14218 | else | |
14219 | cat >conftest.$ac_ext <<_ACEOF | |
14220 | #line $LINENO "configure" | |
14221 | #include "confdefs.h" | |
14222 | $ac_includes_default | |
14223 | long longval () { return (long) (sizeof (int)); } | |
14224 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
14225 | #include <stdio.h> | |
14226 | #include <stdlib.h> | |
14227 | #ifdef F77_DUMMY_MAIN | |
14228 | # ifdef __cplusplus | |
14229 | extern "C" | |
14230 | # endif | |
14231 | int F77_DUMMY_MAIN() { return 1; } | |
14232 | #endif | |
14233 | int | |
14234 | main () | |
14235 | { | |
14236 | ||
14237 | FILE *f = fopen ("conftest.val", "w"); | |
14238 | if (! f) | |
14239 | exit (1); | |
14240 | if (((long) (sizeof (int))) < 0) | |
14241 | { | |
14242 | long i = longval (); | |
14243 | if (i != ((long) (sizeof (int)))) | |
14244 | exit (1); | |
14245 | fprintf (f, "%ld\n", i); | |
14246 | } | |
14247 | else | |
14248 | { | |
14249 | unsigned long i = ulongval (); | |
14250 | if (i != ((long) (sizeof (int)))) | |
14251 | exit (1); | |
14252 | fprintf (f, "%lu\n", i); | |
14253 | } | |
14254 | exit (ferror (f) || fclose (f) != 0); | |
14255 | ||
14256 | ; | |
14257 | return 0; | |
14258 | } | |
14259 | _ACEOF | |
14260 | rm -f conftest$ac_exeext | |
14261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14262 | (eval $ac_link) 2>&5 | |
14263 | ac_status=$? | |
14264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14265 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14267 | (eval $ac_try) 2>&5 | |
14268 | ac_status=$? | |
14269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14270 | (exit $ac_status); }; }; then | |
14271 | ac_cv_sizeof_int=`cat conftest.val` | |
14272 | else | |
14273 | echo "$as_me: program exited with status $ac_status" >&5 | |
14274 | echo "$as_me: failed program was:" >&5 | |
14275 | cat conftest.$ac_ext >&5 | |
14276 | ( exit $ac_status ) | |
14277 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 | |
14278 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} | |
14279 | { (exit 1); exit 1; }; } | |
14280 | fi | |
14281 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14282 | fi | |
14283 | fi | |
14284 | rm -f conftest.val | |
14285 | else | |
14286 | ac_cv_sizeof_int=0 | |
14287 | fi | |
14288 | fi | |
14289 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
14290 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
14291 | cat >>confdefs.h <<_ACEOF | |
14292 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14293 | _ACEOF | |
14294 | ||
14295 | ||
14296 | echo "$as_me:$LINENO: checking for long" >&5 | |
14297 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
14298 | if test "${ac_cv_type_long+set}" = set; then | |
14299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14300 | else | |
14301 | cat >conftest.$ac_ext <<_ACEOF | |
14302 | #line $LINENO "configure" | |
14303 | #include "confdefs.h" | |
14304 | $ac_includes_default | |
14305 | #ifdef F77_DUMMY_MAIN | |
14306 | # ifdef __cplusplus | |
14307 | extern "C" | |
14308 | # endif | |
14309 | int F77_DUMMY_MAIN() { return 1; } | |
14310 | #endif | |
14311 | int | |
14312 | main () | |
14313 | { | |
14314 | if ((long *) 0) | |
14315 | return 0; | |
14316 | if (sizeof (long)) | |
14317 | return 0; | |
14318 | ; | |
14319 | return 0; | |
14320 | } | |
14321 | _ACEOF | |
14322 | rm -f conftest.$ac_objext | |
14323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14324 | (eval $ac_compile) 2>&5 | |
14325 | ac_status=$? | |
14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14327 | (exit $ac_status); } && | |
14328 | { ac_try='test -s conftest.$ac_objext' | |
14329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14330 | (eval $ac_try) 2>&5 | |
14331 | ac_status=$? | |
14332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14333 | (exit $ac_status); }; }; then | |
14334 | ac_cv_type_long=yes | |
14335 | else | |
14336 | echo "$as_me: failed program was:" >&5 | |
14337 | cat conftest.$ac_ext >&5 | |
14338 | ac_cv_type_long=no | |
14339 | fi | |
14340 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14341 | fi | |
14342 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
14343 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
14344 | ||
14345 | echo "$as_me:$LINENO: checking size of long" >&5 | |
14346 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
14347 | if test "${ac_cv_sizeof_long+set}" = set; then | |
14348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14349 | else | |
14350 | if test "$ac_cv_type_long" = yes; then | |
14351 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14352 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14353 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14354 | # This bug is HP SR number 8606223364. | |
14355 | if test "$cross_compiling" = yes; then | |
14356 | # Depending upon the size, compute the lo and hi bounds. | |
14357 | cat >conftest.$ac_ext <<_ACEOF | |
14358 | #line $LINENO "configure" | |
14359 | #include "confdefs.h" | |
14360 | $ac_includes_default | |
14361 | #ifdef F77_DUMMY_MAIN | |
14362 | # ifdef __cplusplus | |
14363 | extern "C" | |
14364 | # endif | |
14365 | int F77_DUMMY_MAIN() { return 1; } | |
14366 | #endif | |
14367 | int | |
14368 | main () | |
14369 | { | |
14370 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
14371 | test_array [0] = 0 | |
14372 | ||
14373 | ; | |
14374 | return 0; | |
14375 | } | |
14376 | _ACEOF | |
14377 | rm -f conftest.$ac_objext | |
14378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14379 | (eval $ac_compile) 2>&5 | |
14380 | ac_status=$? | |
14381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14382 | (exit $ac_status); } && | |
14383 | { ac_try='test -s conftest.$ac_objext' | |
14384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14385 | (eval $ac_try) 2>&5 | |
14386 | ac_status=$? | |
14387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14388 | (exit $ac_status); }; }; then | |
14389 | ac_lo=0 ac_mid=0 | |
14390 | while :; do | |
14391 | cat >conftest.$ac_ext <<_ACEOF | |
14392 | #line $LINENO "configure" | |
14393 | #include "confdefs.h" | |
14394 | $ac_includes_default | |
14395 | #ifdef F77_DUMMY_MAIN | |
14396 | # ifdef __cplusplus | |
14397 | extern "C" | |
14398 | # endif | |
14399 | int F77_DUMMY_MAIN() { return 1; } | |
14400 | #endif | |
14401 | int | |
14402 | main () | |
14403 | { | |
14404 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
14405 | test_array [0] = 0 | |
14406 | ||
14407 | ; | |
14408 | return 0; | |
14409 | } | |
14410 | _ACEOF | |
14411 | rm -f conftest.$ac_objext | |
14412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14413 | (eval $ac_compile) 2>&5 | |
14414 | ac_status=$? | |
14415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14416 | (exit $ac_status); } && | |
14417 | { ac_try='test -s conftest.$ac_objext' | |
14418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14419 | (eval $ac_try) 2>&5 | |
14420 | ac_status=$? | |
14421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14422 | (exit $ac_status); }; }; then | |
14423 | ac_hi=$ac_mid; break | |
14424 | else | |
14425 | echo "$as_me: failed program was:" >&5 | |
14426 | cat conftest.$ac_ext >&5 | |
14427 | ac_lo=`expr $ac_mid + 1` | |
14428 | if test $ac_lo -le $ac_mid; then | |
14429 | ac_lo= ac_hi= | |
14430 | break | |
14431 | fi | |
14432 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14433 | fi | |
14434 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14435 | done | |
14436 | else | |
14437 | echo "$as_me: failed program was:" >&5 | |
14438 | cat conftest.$ac_ext >&5 | |
14439 | cat >conftest.$ac_ext <<_ACEOF | |
14440 | #line $LINENO "configure" | |
14441 | #include "confdefs.h" | |
14442 | $ac_includes_default | |
14443 | #ifdef F77_DUMMY_MAIN | |
14444 | # ifdef __cplusplus | |
14445 | extern "C" | |
14446 | # endif | |
14447 | int F77_DUMMY_MAIN() { return 1; } | |
14448 | #endif | |
14449 | int | |
14450 | main () | |
14451 | { | |
14452 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
14453 | test_array [0] = 0 | |
14454 | ||
14455 | ; | |
14456 | return 0; | |
14457 | } | |
14458 | _ACEOF | |
14459 | rm -f conftest.$ac_objext | |
14460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14461 | (eval $ac_compile) 2>&5 | |
14462 | ac_status=$? | |
14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14464 | (exit $ac_status); } && | |
14465 | { ac_try='test -s conftest.$ac_objext' | |
14466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14467 | (eval $ac_try) 2>&5 | |
14468 | ac_status=$? | |
14469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14470 | (exit $ac_status); }; }; then | |
14471 | ac_hi=-1 ac_mid=-1 | |
14472 | while :; do | |
14473 | cat >conftest.$ac_ext <<_ACEOF | |
14474 | #line $LINENO "configure" | |
14475 | #include "confdefs.h" | |
14476 | $ac_includes_default | |
14477 | #ifdef F77_DUMMY_MAIN | |
14478 | # ifdef __cplusplus | |
14479 | extern "C" | |
14480 | # endif | |
14481 | int F77_DUMMY_MAIN() { return 1; } | |
14482 | #endif | |
14483 | int | |
14484 | main () | |
14485 | { | |
14486 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
14487 | test_array [0] = 0 | |
14488 | ||
14489 | ; | |
14490 | return 0; | |
14491 | } | |
14492 | _ACEOF | |
14493 | rm -f conftest.$ac_objext | |
14494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14495 | (eval $ac_compile) 2>&5 | |
14496 | ac_status=$? | |
14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14498 | (exit $ac_status); } && | |
14499 | { ac_try='test -s conftest.$ac_objext' | |
14500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14501 | (eval $ac_try) 2>&5 | |
14502 | ac_status=$? | |
14503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14504 | (exit $ac_status); }; }; then | |
14505 | ac_lo=$ac_mid; break | |
14506 | else | |
14507 | echo "$as_me: failed program was:" >&5 | |
14508 | cat conftest.$ac_ext >&5 | |
14509 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14510 | if test $ac_mid -le $ac_hi; then | |
14511 | ac_lo= ac_hi= | |
14512 | break | |
14513 | fi | |
14514 | ac_mid=`expr 2 '*' $ac_mid` | |
14515 | fi | |
14516 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14517 | done | |
14518 | else | |
14519 | echo "$as_me: failed program was:" >&5 | |
14520 | cat conftest.$ac_ext >&5 | |
14521 | ac_lo= ac_hi= | |
14522 | fi | |
14523 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14524 | fi | |
14525 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14526 | # Binary search between lo and hi bounds. | |
14527 | while test "x$ac_lo" != "x$ac_hi"; do | |
14528 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14529 | cat >conftest.$ac_ext <<_ACEOF | |
14530 | #line $LINENO "configure" | |
14531 | #include "confdefs.h" | |
14532 | $ac_includes_default | |
14533 | #ifdef F77_DUMMY_MAIN | |
14534 | # ifdef __cplusplus | |
14535 | extern "C" | |
14536 | # endif | |
14537 | int F77_DUMMY_MAIN() { return 1; } | |
14538 | #endif | |
14539 | int | |
14540 | main () | |
14541 | { | |
14542 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
14543 | test_array [0] = 0 | |
14544 | ||
14545 | ; | |
14546 | return 0; | |
14547 | } | |
14548 | _ACEOF | |
14549 | rm -f conftest.$ac_objext | |
14550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14551 | (eval $ac_compile) 2>&5 | |
14552 | ac_status=$? | |
14553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14554 | (exit $ac_status); } && | |
14555 | { ac_try='test -s conftest.$ac_objext' | |
14556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14557 | (eval $ac_try) 2>&5 | |
14558 | ac_status=$? | |
14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14560 | (exit $ac_status); }; }; then | |
14561 | ac_hi=$ac_mid | |
14562 | else | |
14563 | echo "$as_me: failed program was:" >&5 | |
14564 | cat conftest.$ac_ext >&5 | |
14565 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14566 | fi | |
14567 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14568 | done | |
14569 | case $ac_lo in | |
14570 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
14571 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 | |
14572 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} | |
14573 | { (exit 1); exit 1; }; } ;; | |
14574 | esac | |
7b4a847f | 14575 | else |
8284b0c5 | 14576 | if test "$cross_compiling" = yes; then |
247f5006 VZ |
14577 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
14578 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
14579 | { (exit 1); exit 1; }; } | |
5c6fa7d2 | 14580 | else |
247f5006 VZ |
14581 | cat >conftest.$ac_ext <<_ACEOF |
14582 | #line $LINENO "configure" | |
5c6fa7d2 | 14583 | #include "confdefs.h" |
247f5006 VZ |
14584 | $ac_includes_default |
14585 | long longval () { return (long) (sizeof (long)); } | |
14586 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
8284b0c5 | 14587 | #include <stdio.h> |
247f5006 VZ |
14588 | #include <stdlib.h> |
14589 | #ifdef F77_DUMMY_MAIN | |
14590 | # ifdef __cplusplus | |
14591 | extern "C" | |
14592 | # endif | |
14593 | int F77_DUMMY_MAIN() { return 1; } | |
14594 | #endif | |
14595 | int | |
14596 | main () | |
8284b0c5 | 14597 | { |
247f5006 VZ |
14598 | |
14599 | FILE *f = fopen ("conftest.val", "w"); | |
14600 | if (! f) | |
14601 | exit (1); | |
14602 | if (((long) (sizeof (long))) < 0) | |
14603 | { | |
14604 | long i = longval (); | |
14605 | if (i != ((long) (sizeof (long)))) | |
14606 | exit (1); | |
14607 | fprintf (f, "%ld\n", i); | |
14608 | } | |
14609 | else | |
14610 | { | |
14611 | unsigned long i = ulongval (); | |
14612 | if (i != ((long) (sizeof (long)))) | |
14613 | exit (1); | |
14614 | fprintf (f, "%lu\n", i); | |
14615 | } | |
14616 | exit (ferror (f) || fclose (f) != 0); | |
14617 | ||
14618 | ; | |
14619 | return 0; | |
8284b0c5 | 14620 | } |
247f5006 VZ |
14621 | _ACEOF |
14622 | rm -f conftest$ac_exeext | |
14623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14624 | (eval $ac_link) 2>&5 | |
14625 | ac_status=$? | |
14626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14627 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14629 | (eval $ac_try) 2>&5 | |
14630 | ac_status=$? | |
14631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14632 | (exit $ac_status); }; }; then | |
14633 | ac_cv_sizeof_long=`cat conftest.val` | |
14634 | else | |
14635 | echo "$as_me: program exited with status $ac_status" >&5 | |
14636 | echo "$as_me: failed program was:" >&5 | |
14637 | cat conftest.$ac_ext >&5 | |
14638 | ( exit $ac_status ) | |
14639 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 | |
14640 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} | |
14641 | { (exit 1); exit 1; }; } | |
14642 | fi | |
14643 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14644 | fi | |
14645 | fi | |
14646 | rm -f conftest.val | |
5c6fa7d2 | 14647 | else |
247f5006 | 14648 | ac_cv_sizeof_long=0 |
8284b0c5 | 14649 | fi |
7b4a847f | 14650 | fi |
247f5006 VZ |
14651 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
14652 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
14653 | cat >>confdefs.h <<_ACEOF | |
14654 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14655 | _ACEOF | |
328a083c | 14656 | |
7b4a847f | 14657 | |
5c6fa7d2 | 14658 | |
247f5006 VZ |
14659 | case "${host}" in |
14660 | arm-*-linux* ) | |
14661 | echo "$as_me:$LINENO: checking for long long" >&5 | |
14662 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
14663 | if test "${ac_cv_type_long_long+set}" = set; then | |
14664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 14665 | else |
247f5006 VZ |
14666 | cat >conftest.$ac_ext <<_ACEOF |
14667 | #line $LINENO "configure" | |
14668 | #include "confdefs.h" | |
14669 | $ac_includes_default | |
14670 | #ifdef F77_DUMMY_MAIN | |
14671 | # ifdef __cplusplus | |
14672 | extern "C" | |
14673 | # endif | |
14674 | int F77_DUMMY_MAIN() { return 1; } | |
14675 | #endif | |
14676 | int | |
14677 | main () | |
14678 | { | |
14679 | if ((long long *) 0) | |
14680 | return 0; | |
14681 | if (sizeof (long long)) | |
14682 | return 0; | |
14683 | ; | |
14684 | return 0; | |
14685 | } | |
14686 | _ACEOF | |
14687 | rm -f conftest.$ac_objext | |
14688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14689 | (eval $ac_compile) 2>&5 | |
14690 | ac_status=$? | |
14691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14692 | (exit $ac_status); } && | |
14693 | { ac_try='test -s conftest.$ac_objext' | |
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_type_long_long=yes | |
14700 | else | |
14701 | echo "$as_me: failed program was:" >&5 | |
14702 | cat conftest.$ac_ext >&5 | |
14703 | ac_cv_type_long_long=no | |
14704 | fi | |
14705 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14706 | fi | |
14707 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
14708 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
14709 | ||
14710 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
14711 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
14712 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
14713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14714 | else | |
14715 | if test "$ac_cv_type_long_long" = yes; then | |
14716 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14717 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14718 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14719 | # This bug is HP SR number 8606223364. | |
21d1c967 | 14720 | if test "$cross_compiling" = yes; then |
247f5006 VZ |
14721 | # Depending upon the size, compute the lo and hi bounds. |
14722 | cat >conftest.$ac_ext <<_ACEOF | |
14723 | #line $LINENO "configure" | |
21d1c967 | 14724 | #include "confdefs.h" |
247f5006 VZ |
14725 | $ac_includes_default |
14726 | #ifdef F77_DUMMY_MAIN | |
14727 | # ifdef __cplusplus | |
14728 | extern "C" | |
14729 | # endif | |
14730 | int F77_DUMMY_MAIN() { return 1; } | |
14731 | #endif | |
14732 | int | |
14733 | main () | |
21d1c967 | 14734 | { |
247f5006 VZ |
14735 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
14736 | test_array [0] = 0 | |
14737 | ||
14738 | ; | |
14739 | return 0; | |
21d1c967 | 14740 | } |
247f5006 VZ |
14741 | _ACEOF |
14742 | rm -f conftest.$ac_objext | |
14743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14744 | (eval $ac_compile) 2>&5 | |
14745 | ac_status=$? | |
14746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14747 | (exit $ac_status); } && | |
14748 | { ac_try='test -s conftest.$ac_objext' | |
14749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14750 | (eval $ac_try) 2>&5 | |
14751 | ac_status=$? | |
14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14753 | (exit $ac_status); }; }; then | |
14754 | ac_lo=0 ac_mid=0 | |
14755 | while :; do | |
14756 | cat >conftest.$ac_ext <<_ACEOF | |
14757 | #line $LINENO "configure" | |
14758 | #include "confdefs.h" | |
14759 | $ac_includes_default | |
14760 | #ifdef F77_DUMMY_MAIN | |
14761 | # ifdef __cplusplus | |
14762 | extern "C" | |
14763 | # endif | |
14764 | int F77_DUMMY_MAIN() { return 1; } | |
14765 | #endif | |
14766 | int | |
14767 | main () | |
14768 | { | |
14769 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
14770 | test_array [0] = 0 | |
4f14bcd8 | 14771 | |
247f5006 VZ |
14772 | ; |
14773 | return 0; | |
14774 | } | |
14775 | _ACEOF | |
14776 | rm -f conftest.$ac_objext | |
14777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14778 | (eval $ac_compile) 2>&5 | |
14779 | ac_status=$? | |
14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14781 | (exit $ac_status); } && | |
14782 | { ac_try='test -s conftest.$ac_objext' | |
14783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14784 | (eval $ac_try) 2>&5 | |
14785 | ac_status=$? | |
14786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14787 | (exit $ac_status); }; }; then | |
14788 | ac_hi=$ac_mid; break | |
14789 | else | |
14790 | echo "$as_me: failed program was:" >&5 | |
14791 | cat conftest.$ac_ext >&5 | |
14792 | ac_lo=`expr $ac_mid + 1` | |
14793 | if test $ac_lo -le $ac_mid; then | |
14794 | ac_lo= ac_hi= | |
14795 | break | |
14796 | fi | |
14797 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4f14bcd8 | 14798 | fi |
247f5006 VZ |
14799 | rm -f conftest.$ac_objext conftest.$ac_ext |
14800 | done | |
5c6fa7d2 | 14801 | else |
247f5006 VZ |
14802 | echo "$as_me: failed program was:" >&5 |
14803 | cat conftest.$ac_ext >&5 | |
14804 | cat >conftest.$ac_ext <<_ACEOF | |
14805 | #line $LINENO "configure" | |
5c6fa7d2 | 14806 | #include "confdefs.h" |
247f5006 VZ |
14807 | $ac_includes_default |
14808 | #ifdef F77_DUMMY_MAIN | |
14809 | # ifdef __cplusplus | |
14810 | extern "C" | |
14811 | # endif | |
14812 | int F77_DUMMY_MAIN() { return 1; } | |
14813 | #endif | |
14814 | int | |
14815 | main () | |
5c6fa7d2 | 14816 | { |
247f5006 VZ |
14817 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
14818 | test_array [0] = 0 | |
14819 | ||
14820 | ; | |
14821 | return 0; | |
5c6fa7d2 | 14822 | } |
247f5006 VZ |
14823 | _ACEOF |
14824 | rm -f conftest.$ac_objext | |
14825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14826 | (eval $ac_compile) 2>&5 | |
14827 | ac_status=$? | |
14828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14829 | (exit $ac_status); } && | |
14830 | { ac_try='test -s conftest.$ac_objext' | |
14831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14832 | (eval $ac_try) 2>&5 | |
14833 | ac_status=$? | |
14834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14835 | (exit $ac_status); }; }; then | |
14836 | ac_hi=-1 ac_mid=-1 | |
14837 | while :; do | |
14838 | cat >conftest.$ac_ext <<_ACEOF | |
14839 | #line $LINENO "configure" | |
14840 | #include "confdefs.h" | |
14841 | $ac_includes_default | |
14842 | #ifdef F77_DUMMY_MAIN | |
14843 | # ifdef __cplusplus | |
14844 | extern "C" | |
14845 | # endif | |
14846 | int F77_DUMMY_MAIN() { return 1; } | |
14847 | #endif | |
14848 | int | |
14849 | main () | |
14850 | { | |
14851 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
14852 | test_array [0] = 0 | |
14853 | ||
14854 | ; | |
14855 | return 0; | |
14856 | } | |
14857 | _ACEOF | |
14858 | rm -f conftest.$ac_objext | |
14859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14860 | (eval $ac_compile) 2>&5 | |
14861 | ac_status=$? | |
14862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14863 | (exit $ac_status); } && | |
14864 | { ac_try='test -s conftest.$ac_objext' | |
14865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14866 | (eval $ac_try) 2>&5 | |
14867 | ac_status=$? | |
14868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14869 | (exit $ac_status); }; }; then | |
14870 | ac_lo=$ac_mid; break | |
14871 | else | |
14872 | echo "$as_me: failed program was:" >&5 | |
14873 | cat conftest.$ac_ext >&5 | |
14874 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14875 | if test $ac_mid -le $ac_hi; then | |
14876 | ac_lo= ac_hi= | |
14877 | break | |
14878 | fi | |
14879 | ac_mid=`expr 2 '*' $ac_mid` | |
14880 | fi | |
14881 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14882 | done | |
5c6fa7d2 | 14883 | else |
247f5006 VZ |
14884 | echo "$as_me: failed program was:" >&5 |
14885 | cat conftest.$ac_ext >&5 | |
14886 | ac_lo= ac_hi= | |
7b4a847f | 14887 | fi |
247f5006 | 14888 | rm -f conftest.$ac_objext conftest.$ac_ext |
5c6fa7d2 | 14889 | fi |
247f5006 VZ |
14890 | rm -f conftest.$ac_objext conftest.$ac_ext |
14891 | # Binary search between lo and hi bounds. | |
14892 | while test "x$ac_lo" != "x$ac_hi"; do | |
14893 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14894 | cat >conftest.$ac_ext <<_ACEOF | |
14895 | #line $LINENO "configure" | |
14896 | #include "confdefs.h" | |
14897 | $ac_includes_default | |
14898 | #ifdef F77_DUMMY_MAIN | |
14899 | # ifdef __cplusplus | |
14900 | extern "C" | |
14901 | # endif | |
14902 | int F77_DUMMY_MAIN() { return 1; } | |
14903 | #endif | |
14904 | int | |
14905 | main () | |
14906 | { | |
14907 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
14908 | test_array [0] = 0 | |
8284b0c5 | 14909 | |
247f5006 VZ |
14910 | ; |
14911 | return 0; | |
14912 | } | |
14913 | _ACEOF | |
14914 | rm -f conftest.$ac_objext | |
14915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14916 | (eval $ac_compile) 2>&5 | |
14917 | ac_status=$? | |
14918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14919 | (exit $ac_status); } && | |
14920 | { ac_try='test -s conftest.$ac_objext' | |
14921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14922 | (eval $ac_try) 2>&5 | |
14923 | ac_status=$? | |
14924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14925 | (exit $ac_status); }; }; then | |
14926 | ac_hi=$ac_mid | |
14927 | else | |
14928 | echo "$as_me: failed program was:" >&5 | |
14929 | cat conftest.$ac_ext >&5 | |
14930 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14931 | fi | |
14932 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14933 | done | |
14934 | case $ac_lo in | |
14935 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
14936 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 | |
14937 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} | |
14938 | { (exit 1); exit 1; }; } ;; | |
14939 | esac | |
7b4a847f | 14940 | else |
5c6fa7d2 | 14941 | if test "$cross_compiling" = yes; then |
247f5006 VZ |
14942 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
14943 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
14944 | { (exit 1); exit 1; }; } | |
5c6fa7d2 | 14945 | else |
247f5006 VZ |
14946 | cat >conftest.$ac_ext <<_ACEOF |
14947 | #line $LINENO "configure" | |
5c6fa7d2 | 14948 | #include "confdefs.h" |
247f5006 VZ |
14949 | $ac_includes_default |
14950 | long longval () { return (long) (sizeof (long long)); } | |
14951 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 14952 | #include <stdio.h> |
247f5006 VZ |
14953 | #include <stdlib.h> |
14954 | #ifdef F77_DUMMY_MAIN | |
14955 | # ifdef __cplusplus | |
14956 | extern "C" | |
14957 | # endif | |
14958 | int F77_DUMMY_MAIN() { return 1; } | |
14959 | #endif | |
14960 | int | |
14961 | main () | |
5c6fa7d2 | 14962 | { |
247f5006 VZ |
14963 | |
14964 | FILE *f = fopen ("conftest.val", "w"); | |
14965 | if (! f) | |
14966 | exit (1); | |
14967 | if (((long) (sizeof (long long))) < 0) | |
14968 | { | |
14969 | long i = longval (); | |
14970 | if (i != ((long) (sizeof (long long)))) | |
14971 | exit (1); | |
14972 | fprintf (f, "%ld\n", i); | |
14973 | } | |
14974 | else | |
14975 | { | |
14976 | unsigned long i = ulongval (); | |
14977 | if (i != ((long) (sizeof (long long)))) | |
14978 | exit (1); | |
14979 | fprintf (f, "%lu\n", i); | |
14980 | } | |
14981 | exit (ferror (f) || fclose (f) != 0); | |
14982 | ||
14983 | ; | |
14984 | return 0; | |
5c6fa7d2 | 14985 | } |
247f5006 VZ |
14986 | _ACEOF |
14987 | rm -f conftest$ac_exeext | |
14988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14989 | (eval $ac_link) 2>&5 | |
14990 | ac_status=$? | |
14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14997 | (exit $ac_status); }; }; then | |
14998 | ac_cv_sizeof_long_long=`cat conftest.val` | |
14999 | else | |
15000 | echo "$as_me: program exited with status $ac_status" >&5 | |
15001 | echo "$as_me: failed program was:" >&5 | |
15002 | cat conftest.$ac_ext >&5 | |
15003 | ( exit $ac_status ) | |
15004 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 | |
15005 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} | |
15006 | { (exit 1); exit 1; }; } | |
15007 | fi | |
15008 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15009 | fi | |
15010 | fi | |
15011 | rm -f conftest.val | |
5c6fa7d2 | 15012 | else |
247f5006 | 15013 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 15014 | fi |
5c6fa7d2 | 15015 | fi |
247f5006 VZ |
15016 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15017 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15018 | cat >>confdefs.h <<_ACEOF | |
15019 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15020 | _ACEOF | |
90dd450c | 15021 | |
8284b0c5 | 15022 | |
247f5006 VZ |
15023 | ;; |
15024 | * ) | |
15025 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15026 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15027 | if test "${ac_cv_type_long_long+set}" = set; then | |
15028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 15029 | else |
247f5006 VZ |
15030 | cat >conftest.$ac_ext <<_ACEOF |
15031 | #line $LINENO "configure" | |
15032 | #include "confdefs.h" | |
15033 | $ac_includes_default | |
15034 | #ifdef F77_DUMMY_MAIN | |
15035 | # ifdef __cplusplus | |
15036 | extern "C" | |
15037 | # endif | |
15038 | int F77_DUMMY_MAIN() { return 1; } | |
15039 | #endif | |
15040 | int | |
15041 | main () | |
15042 | { | |
15043 | if ((long long *) 0) | |
15044 | return 0; | |
15045 | if (sizeof (long long)) | |
15046 | return 0; | |
15047 | ; | |
15048 | return 0; | |
15049 | } | |
15050 | _ACEOF | |
15051 | rm -f conftest.$ac_objext | |
15052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15053 | (eval $ac_compile) 2>&5 | |
15054 | ac_status=$? | |
15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15056 | (exit $ac_status); } && | |
15057 | { ac_try='test -s conftest.$ac_objext' | |
15058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15059 | (eval $ac_try) 2>&5 | |
15060 | ac_status=$? | |
15061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15062 | (exit $ac_status); }; }; then | |
15063 | ac_cv_type_long_long=yes | |
15064 | else | |
15065 | echo "$as_me: failed program was:" >&5 | |
15066 | cat conftest.$ac_ext >&5 | |
15067 | ac_cv_type_long_long=no | |
15068 | fi | |
15069 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15070 | fi | |
15071 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15072 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15073 | ||
15074 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15075 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15076 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15078 | else | |
15079 | if test "$ac_cv_type_long_long" = yes; then | |
15080 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15081 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15082 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15083 | # This bug is HP SR number 8606223364. | |
5c6fa7d2 | 15084 | if test "$cross_compiling" = yes; then |
247f5006 VZ |
15085 | # Depending upon the size, compute the lo and hi bounds. |
15086 | cat >conftest.$ac_ext <<_ACEOF | |
15087 | #line $LINENO "configure" | |
5c6fa7d2 | 15088 | #include "confdefs.h" |
247f5006 VZ |
15089 | $ac_includes_default |
15090 | #ifdef F77_DUMMY_MAIN | |
15091 | # ifdef __cplusplus | |
15092 | extern "C" | |
15093 | # endif | |
15094 | int F77_DUMMY_MAIN() { return 1; } | |
15095 | #endif | |
15096 | int | |
15097 | main () | |
5c6fa7d2 | 15098 | { |
247f5006 VZ |
15099 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
15100 | test_array [0] = 0 | |
15101 | ||
15102 | ; | |
15103 | return 0; | |
5c6fa7d2 | 15104 | } |
247f5006 VZ |
15105 | _ACEOF |
15106 | rm -f conftest.$ac_objext | |
15107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15108 | (eval $ac_compile) 2>&5 | |
15109 | ac_status=$? | |
15110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15111 | (exit $ac_status); } && | |
15112 | { ac_try='test -s conftest.$ac_objext' | |
15113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15114 | (eval $ac_try) 2>&5 | |
15115 | ac_status=$? | |
15116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15117 | (exit $ac_status); }; }; then | |
15118 | ac_lo=0 ac_mid=0 | |
15119 | while :; do | |
15120 | cat >conftest.$ac_ext <<_ACEOF | |
15121 | #line $LINENO "configure" | |
15122 | #include "confdefs.h" | |
15123 | $ac_includes_default | |
15124 | #ifdef F77_DUMMY_MAIN | |
15125 | # ifdef __cplusplus | |
15126 | extern "C" | |
15127 | # endif | |
15128 | int F77_DUMMY_MAIN() { return 1; } | |
15129 | #endif | |
15130 | int | |
15131 | main () | |
15132 | { | |
15133 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15134 | test_array [0] = 0 | |
52127426 | 15135 | |
247f5006 VZ |
15136 | ; |
15137 | return 0; | |
15138 | } | |
15139 | _ACEOF | |
15140 | rm -f conftest.$ac_objext | |
15141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15142 | (eval $ac_compile) 2>&5 | |
15143 | ac_status=$? | |
15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15145 | (exit $ac_status); } && | |
15146 | { ac_try='test -s conftest.$ac_objext' | |
15147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15148 | (eval $ac_try) 2>&5 | |
15149 | ac_status=$? | |
15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15151 | (exit $ac_status); }; }; then | |
15152 | ac_hi=$ac_mid; break | |
15153 | else | |
15154 | echo "$as_me: failed program was:" >&5 | |
15155 | cat conftest.$ac_ext >&5 | |
15156 | ac_lo=`expr $ac_mid + 1` | |
15157 | if test $ac_lo -le $ac_mid; then | |
15158 | ac_lo= ac_hi= | |
15159 | break | |
15160 | fi | |
15161 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5c6fa7d2 | 15162 | fi |
247f5006 VZ |
15163 | rm -f conftest.$ac_objext conftest.$ac_ext |
15164 | done | |
7b4a847f | 15165 | else |
247f5006 VZ |
15166 | echo "$as_me: failed program was:" >&5 |
15167 | cat conftest.$ac_ext >&5 | |
15168 | cat >conftest.$ac_ext <<_ACEOF | |
15169 | #line $LINENO "configure" | |
7b4a847f | 15170 | #include "confdefs.h" |
247f5006 VZ |
15171 | $ac_includes_default |
15172 | #ifdef F77_DUMMY_MAIN | |
15173 | # ifdef __cplusplus | |
15174 | extern "C" | |
15175 | # endif | |
15176 | int F77_DUMMY_MAIN() { return 1; } | |
15177 | #endif | |
15178 | int | |
15179 | main () | |
7b4a847f | 15180 | { |
247f5006 VZ |
15181 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
15182 | test_array [0] = 0 | |
15183 | ||
15184 | ; | |
15185 | return 0; | |
7b4a847f | 15186 | } |
247f5006 VZ |
15187 | _ACEOF |
15188 | rm -f conftest.$ac_objext | |
15189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15190 | (eval $ac_compile) 2>&5 | |
15191 | ac_status=$? | |
15192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15193 | (exit $ac_status); } && | |
15194 | { ac_try='test -s conftest.$ac_objext' | |
15195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15196 | (eval $ac_try) 2>&5 | |
15197 | ac_status=$? | |
15198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15199 | (exit $ac_status); }; }; then | |
15200 | ac_hi=-1 ac_mid=-1 | |
15201 | while :; do | |
15202 | cat >conftest.$ac_ext <<_ACEOF | |
15203 | #line $LINENO "configure" | |
15204 | #include "confdefs.h" | |
15205 | $ac_includes_default | |
15206 | #ifdef F77_DUMMY_MAIN | |
15207 | # ifdef __cplusplus | |
15208 | extern "C" | |
15209 | # endif | |
15210 | int F77_DUMMY_MAIN() { return 1; } | |
15211 | #endif | |
15212 | int | |
15213 | main () | |
15214 | { | |
15215 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15216 | test_array [0] = 0 | |
15217 | ||
15218 | ; | |
15219 | return 0; | |
15220 | } | |
15221 | _ACEOF | |
15222 | rm -f conftest.$ac_objext | |
15223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15224 | (eval $ac_compile) 2>&5 | |
15225 | ac_status=$? | |
15226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15227 | (exit $ac_status); } && | |
15228 | { ac_try='test -s conftest.$ac_objext' | |
15229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15230 | (eval $ac_try) 2>&5 | |
15231 | ac_status=$? | |
15232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15233 | (exit $ac_status); }; }; then | |
15234 | ac_lo=$ac_mid; break | |
15235 | else | |
15236 | echo "$as_me: failed program was:" >&5 | |
15237 | cat conftest.$ac_ext >&5 | |
15238 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15239 | if test $ac_mid -le $ac_hi; then | |
15240 | ac_lo= ac_hi= | |
15241 | break | |
15242 | fi | |
15243 | ac_mid=`expr 2 '*' $ac_mid` | |
15244 | fi | |
15245 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15246 | done | |
7b4a847f | 15247 | else |
247f5006 VZ |
15248 | echo "$as_me: failed program was:" >&5 |
15249 | cat conftest.$ac_ext >&5 | |
15250 | ac_lo= ac_hi= | |
5c6fa7d2 | 15251 | fi |
247f5006 | 15252 | rm -f conftest.$ac_objext conftest.$ac_ext |
5c6fa7d2 | 15253 | fi |
247f5006 VZ |
15254 | rm -f conftest.$ac_objext conftest.$ac_ext |
15255 | # Binary search between lo and hi bounds. | |
15256 | while test "x$ac_lo" != "x$ac_hi"; do | |
15257 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15258 | cat >conftest.$ac_ext <<_ACEOF | |
15259 | #line $LINENO "configure" | |
15260 | #include "confdefs.h" | |
15261 | $ac_includes_default | |
15262 | #ifdef F77_DUMMY_MAIN | |
15263 | # ifdef __cplusplus | |
15264 | extern "C" | |
15265 | # endif | |
15266 | int F77_DUMMY_MAIN() { return 1; } | |
15267 | #endif | |
15268 | int | |
15269 | main () | |
15270 | { | |
15271 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15272 | test_array [0] = 0 | |
8284b0c5 | 15273 | |
247f5006 VZ |
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_hi=$ac_mid | |
15291 | else | |
15292 | echo "$as_me: failed program was:" >&5 | |
15293 | cat conftest.$ac_ext >&5 | |
15294 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15295 | fi | |
15296 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15297 | done | |
15298 | case $ac_lo in | |
15299 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15300 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 | |
15301 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} | |
15302 | { (exit 1); exit 1; }; } ;; | |
15303 | esac | |
8284b0c5 MB |
15304 | else |
15305 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
15306 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
15307 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} | |
15308 | { (exit 1); exit 1; }; } | |
8284b0c5 | 15309 | else |
247f5006 VZ |
15310 | cat >conftest.$ac_ext <<_ACEOF |
15311 | #line $LINENO "configure" | |
8284b0c5 | 15312 | #include "confdefs.h" |
247f5006 VZ |
15313 | $ac_includes_default |
15314 | long longval () { return (long) (sizeof (long long)); } | |
15315 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 15316 | #include <stdio.h> |
247f5006 VZ |
15317 | #include <stdlib.h> |
15318 | #ifdef F77_DUMMY_MAIN | |
15319 | # ifdef __cplusplus | |
15320 | extern "C" | |
15321 | # endif | |
15322 | int F77_DUMMY_MAIN() { return 1; } | |
15323 | #endif | |
15324 | int | |
15325 | main () | |
8284b0c5 | 15326 | { |
247f5006 VZ |
15327 | |
15328 | FILE *f = fopen ("conftest.val", "w"); | |
15329 | if (! f) | |
15330 | exit (1); | |
15331 | if (((long) (sizeof (long long))) < 0) | |
15332 | { | |
15333 | long i = longval (); | |
15334 | if (i != ((long) (sizeof (long long)))) | |
15335 | exit (1); | |
15336 | fprintf (f, "%ld\n", i); | |
15337 | } | |
15338 | else | |
15339 | { | |
15340 | unsigned long i = ulongval (); | |
15341 | if (i != ((long) (sizeof (long long)))) | |
15342 | exit (1); | |
15343 | fprintf (f, "%lu\n", i); | |
15344 | } | |
15345 | exit (ferror (f) || fclose (f) != 0); | |
15346 | ||
15347 | ; | |
15348 | return 0; | |
8284b0c5 | 15349 | } |
247f5006 VZ |
15350 | _ACEOF |
15351 | rm -f conftest$ac_exeext | |
15352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15353 | (eval $ac_link) 2>&5 | |
15354 | ac_status=$? | |
15355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15356 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15358 | (eval $ac_try) 2>&5 | |
15359 | ac_status=$? | |
15360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15361 | (exit $ac_status); }; }; then | |
15362 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15363 | else | |
15364 | echo "$as_me: program exited with status $ac_status" >&5 | |
15365 | echo "$as_me: failed program was:" >&5 | |
15366 | cat conftest.$ac_ext >&5 | |
15367 | ( exit $ac_status ) | |
15368 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 | |
15369 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} | |
15370 | { (exit 1); exit 1; }; } | |
15371 | fi | |
15372 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15373 | fi | |
15374 | fi | |
15375 | rm -f conftest.val | |
5c6fa7d2 RR |
15376 | else |
15377 | ac_cv_sizeof_long_long=0 | |
52127426 | 15378 | fi |
7b4a847f | 15379 | fi |
247f5006 VZ |
15380 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15381 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15382 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 15383 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
247f5006 | 15384 | _ACEOF |
9e691f46 | 15385 | |
8284b0c5 | 15386 | |
21d1c967 GD |
15387 | esac |
15388 | ||
247f5006 VZ |
15389 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
15390 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
15391 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
15392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 15393 | else |
247f5006 | 15394 | |
21d1c967 GD |
15395 | if test "$cross_compiling" = yes; then |
15396 | wx_cv_sizeof_wchar_t=4 | |
247f5006 | 15397 | |
6f72b082 | 15398 | else |
247f5006 VZ |
15399 | cat >conftest.$ac_ext <<_ACEOF |
15400 | #line $LINENO "configure" | |
6f72b082 | 15401 | #include "confdefs.h" |
21d1c967 GD |
15402 | |
15403 | #ifdef HAVE_WCHAR_H | |
15404 | # ifdef __CYGWIN__ | |
15405 | # include <stddef.h> | |
15406 | # endif | |
15407 | # include <wchar.h> | |
15408 | #endif | |
15409 | #ifdef HAVE_STDLIB_H | |
15410 | # include <stdlib.h> | |
15411 | #endif | |
15412 | #include <stdio.h> | |
15413 | int main() | |
15414 | { | |
15415 | FILE *f=fopen("conftestval", "w"); | |
15416 | if (!f) exit(1); | |
15417 | fprintf(f, "%i", sizeof(wchar_t)); | |
15418 | exit(0); | |
15419 | } | |
247f5006 VZ |
15420 | |
15421 | _ACEOF | |
15422 | rm -f conftest$ac_exeext | |
15423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15424 | (eval $ac_link) 2>&5 | |
15425 | ac_status=$? | |
15426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15427 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15429 | (eval $ac_try) 2>&5 | |
15430 | ac_status=$? | |
15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15432 | (exit $ac_status); }; }; then | |
21d1c967 | 15433 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 15434 | else |
247f5006 VZ |
15435 | echo "$as_me: program exited with status $ac_status" >&5 |
15436 | echo "$as_me: failed program was:" >&5 | |
15437 | cat conftest.$ac_ext >&5 | |
15438 | ( exit $ac_status ) | |
15439 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 15440 | fi |
247f5006 | 15441 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 15442 | fi |
6f72b082 | 15443 | |
3f345b47 | 15444 | fi |
247f5006 VZ |
15445 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
15446 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 15447 | |
247f5006 | 15448 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 15449 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
247f5006 | 15450 | _ACEOF |
90dd450c | 15451 | |
8284b0c5 | 15452 | |
21d1c967 GD |
15453 | # Check whether --enable-largefile or --disable-largefile was given. |
15454 | if test "${enable_largefile+set}" = set; then | |
15455 | enableval="$enable_largefile" | |
3f345b47 | 15456 | |
247f5006 | 15457 | fi; |
21d1c967 GD |
15458 | if test "$enable_largefile" != no; then |
15459 | wx_largefile=no | |
247f5006 VZ |
15460 | |
15461 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
15462 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
15463 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
15464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15465 | else | |
15466 | ||
15467 | cat >conftest.$ac_ext <<_ACEOF | |
15468 | #line $LINENO "configure" | |
90dd450c | 15469 | #include "confdefs.h" |
21d1c967 GD |
15470 | #define _FILE_OFFSET_BITS 64 |
15471 | #include <sys/types.h> | |
247f5006 VZ |
15472 | #ifdef F77_DUMMY_MAIN |
15473 | # ifdef __cplusplus | |
15474 | extern "C" | |
15475 | # endif | |
15476 | int F77_DUMMY_MAIN() { return 1; } | |
15477 | #endif | |
15478 | int | |
15479 | main () | |
15480 | { | |
21d1c967 GD |
15481 | typedef struct { |
15482 | unsigned int field: sizeof(off_t) == 8; | |
15483 | } wxlf; | |
15484 | ||
247f5006 VZ |
15485 | ; |
15486 | return 0; | |
15487 | } | |
15488 | _ACEOF | |
15489 | rm -f conftest.$ac_objext | |
15490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15491 | (eval $ac_compile) 2>&5 | |
15492 | ac_status=$? | |
15493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15494 | (exit $ac_status); } && | |
15495 | { ac_try='test -s conftest.$ac_objext' | |
15496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15497 | (eval $ac_try) 2>&5 | |
15498 | ac_status=$? | |
15499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15500 | (exit $ac_status); }; }; then | |
21d1c967 | 15501 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 15502 | else |
247f5006 VZ |
15503 | echo "$as_me: failed program was:" >&5 |
15504 | cat conftest.$ac_ext >&5 | |
15505 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 15506 | fi |
247f5006 VZ |
15507 | rm -f conftest.$ac_objext conftest.$ac_ext |
15508 | ||
8284b0c5 | 15509 | |
247f5006 VZ |
15510 | fi |
15511 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
15512 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
15513 | |
15514 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
15515 | wx_largefile=yes | |
247f5006 | 15516 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 15517 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
247f5006 | 15518 | _ACEOF |
21d1c967 GD |
15519 | |
15520 | fi | |
15521 | ||
15522 | if test "x$wx_largefile" != "xyes"; then | |
247f5006 VZ |
15523 | |
15524 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
15525 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
15526 | if test "${ac_cv_sys_large_files+set}" = set; then | |
15527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15528 | else | |
15529 | ||
15530 | cat >conftest.$ac_ext <<_ACEOF | |
15531 | #line $LINENO "configure" | |
f6bcfd97 | 15532 | #include "confdefs.h" |
21d1c967 GD |
15533 | #define _LARGE_FILES 1 |
15534 | #include <sys/types.h> | |
247f5006 VZ |
15535 | #ifdef F77_DUMMY_MAIN |
15536 | # ifdef __cplusplus | |
15537 | extern "C" | |
15538 | # endif | |
15539 | int F77_DUMMY_MAIN() { return 1; } | |
15540 | #endif | |
15541 | int | |
15542 | main () | |
15543 | { | |
21d1c967 GD |
15544 | typedef struct { |
15545 | unsigned int field: sizeof(off_t) == 8; | |
15546 | } wxlf; | |
15547 | ||
247f5006 VZ |
15548 | ; |
15549 | return 0; | |
15550 | } | |
15551 | _ACEOF | |
15552 | rm -f conftest.$ac_objext | |
15553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15554 | (eval $ac_compile) 2>&5 | |
15555 | ac_status=$? | |
15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15557 | (exit $ac_status); } && | |
15558 | { ac_try='test -s conftest.$ac_objext' | |
15559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15560 | (eval $ac_try) 2>&5 | |
15561 | ac_status=$? | |
15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15563 | (exit $ac_status); }; }; then | |
21d1c967 | 15564 | ac_cv_sys_large_files=1 |
f6bcfd97 | 15565 | else |
247f5006 VZ |
15566 | echo "$as_me: failed program was:" >&5 |
15567 | cat conftest.$ac_ext >&5 | |
15568 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 15569 | fi |
247f5006 VZ |
15570 | rm -f conftest.$ac_objext conftest.$ac_ext |
15571 | ||
8284b0c5 | 15572 | |
247f5006 VZ |
15573 | fi |
15574 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
15575 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 15576 | |
21d1c967 GD |
15577 | if test "$ac_cv_sys_large_files" != no; then |
15578 | wx_largefile=yes | |
247f5006 | 15579 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 15580 | #define _LARGE_FILES $ac_cv_sys_large_files |
247f5006 | 15581 | _ACEOF |
90dd450c | 15582 | |
90dd450c VZ |
15583 | fi |
15584 | ||
90dd450c | 15585 | fi |
90dd450c | 15586 | |
247f5006 VZ |
15587 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
15588 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 15589 | if test "x$wx_largefile" = "xyes"; then |
247f5006 | 15590 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 15591 | #define HAVE_LARGEFILE_SUPPORT 1 |
247f5006 | 15592 | _ACEOF |
90dd450c | 15593 | |
90dd450c | 15594 | fi |
247f5006 VZ |
15595 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
15596 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 15597 | fi |
90dd450c | 15598 | |
8284b0c5 | 15599 | |
247f5006 VZ |
15600 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
15601 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
15602 | if test "${ac_cv_c_bigendian+set}" = set; then | |
15603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 15604 | else |
21d1c967 GD |
15605 | ac_cv_c_bigendian=unknown |
15606 | # See if sys/param.h defines the BYTE_ORDER macro. | |
247f5006 VZ |
15607 | cat >conftest.$ac_ext <<_ACEOF |
15608 | #line $LINENO "configure" | |
90dd450c | 15609 | #include "confdefs.h" |
21d1c967 GD |
15610 | #include <sys/types.h> |
15611 | #include <sys/param.h> | |
247f5006 VZ |
15612 | #ifdef F77_DUMMY_MAIN |
15613 | # ifdef __cplusplus | |
15614 | extern "C" | |
15615 | # endif | |
15616 | int F77_DUMMY_MAIN() { return 1; } | |
15617 | #endif | |
15618 | int | |
15619 | main () | |
15620 | { | |
21d1c967 GD |
15621 | |
15622 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
15623 | bogus endian macros | |
15624 | #endif | |
247f5006 VZ |
15625 | ; |
15626 | return 0; | |
15627 | } | |
15628 | _ACEOF | |
15629 | rm -f conftest.$ac_objext | |
15630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15631 | (eval $ac_compile) 2>&5 | |
15632 | ac_status=$? | |
15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15634 | (exit $ac_status); } && | |
15635 | { ac_try='test -s conftest.$ac_objext' | |
15636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15637 | (eval $ac_try) 2>&5 | |
15638 | ac_status=$? | |
15639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15640 | (exit $ac_status); }; }; then | |
21d1c967 | 15641 | # It does; now see whether it defined to BIG_ENDIAN or not. |
247f5006 VZ |
15642 | cat >conftest.$ac_ext <<_ACEOF |
15643 | #line $LINENO "configure" | |
90dd450c | 15644 | #include "confdefs.h" |
21d1c967 GD |
15645 | #include <sys/types.h> |
15646 | #include <sys/param.h> | |
247f5006 VZ |
15647 | #ifdef F77_DUMMY_MAIN |
15648 | # ifdef __cplusplus | |
15649 | extern "C" | |
15650 | # endif | |
15651 | int F77_DUMMY_MAIN() { return 1; } | |
15652 | #endif | |
15653 | int | |
15654 | main () | |
15655 | { | |
21d1c967 GD |
15656 | |
15657 | #if BYTE_ORDER != BIG_ENDIAN | |
15658 | not big endian | |
15659 | #endif | |
247f5006 VZ |
15660 | ; |
15661 | return 0; | |
15662 | } | |
15663 | _ACEOF | |
15664 | rm -f conftest.$ac_objext | |
15665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15666 | (eval $ac_compile) 2>&5 | |
15667 | ac_status=$? | |
15668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15669 | (exit $ac_status); } && | |
15670 | { ac_try='test -s conftest.$ac_objext' | |
15671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15672 | (eval $ac_try) 2>&5 | |
15673 | ac_status=$? | |
15674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15675 | (exit $ac_status); }; }; then | |
21d1c967 | 15676 | ac_cv_c_bigendian=yes |
3f345b47 | 15677 | else |
247f5006 VZ |
15678 | echo "$as_me: failed program was:" >&5 |
15679 | cat conftest.$ac_ext >&5 | |
15680 | ac_cv_c_bigendian=no | |
3f345b47 | 15681 | fi |
247f5006 | 15682 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 15683 | else |
247f5006 VZ |
15684 | echo "$as_me: failed program was:" >&5 |
15685 | cat conftest.$ac_ext >&5 | |
3f345b47 | 15686 | fi |
247f5006 | 15687 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
15688 | if test $ac_cv_c_bigendian = unknown; then |
15689 | if test "$cross_compiling" = yes; then | |
15690 | ac_cv_c_bigendian=unknown | |
10f2d63a | 15691 | else |
247f5006 VZ |
15692 | cat >conftest.$ac_ext <<_ACEOF |
15693 | #line $LINENO "configure" | |
90dd450c | 15694 | #include "confdefs.h" |
21d1c967 GD |
15695 | main () { |
15696 | /* Are we little or big endian? From Harbison&Steele. */ | |
15697 | union | |
15698 | { | |
15699 | long l; | |
15700 | char c[sizeof (long)]; | |
15701 | } u; | |
15702 | u.l = 1; | |
15703 | exit (u.c[sizeof (long) - 1] == 1); | |
15704 | } | |
247f5006 VZ |
15705 | _ACEOF |
15706 | rm -f conftest$ac_exeext | |
15707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15708 | (eval $ac_link) 2>&5 | |
15709 | ac_status=$? | |
15710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15711 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15713 | (eval $ac_try) 2>&5 | |
15714 | ac_status=$? | |
15715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15716 | (exit $ac_status); }; }; then | |
21d1c967 | 15717 | ac_cv_c_bigendian=no |
3f345b47 | 15718 | else |
247f5006 VZ |
15719 | echo "$as_me: program exited with status $ac_status" >&5 |
15720 | echo "$as_me: failed program was:" >&5 | |
15721 | cat conftest.$ac_ext >&5 | |
15722 | ( exit $ac_status ) | |
15723 | ac_cv_c_bigendian=yes | |
15724 | fi | |
15725 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15726 | fi | |
3f345b47 | 15727 | fi |
8168de4c | 15728 | fi |
247f5006 VZ |
15729 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
15730 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
15731 | if test $ac_cv_c_bigendian = unknown; then | |
15732 | { 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 | |
15733 | 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;} | |
15734 | fi | |
15735 | if test $ac_cv_c_bigendian = yes; then | |
15736 | cat >>confdefs.h <<\_ACEOF | |
15737 | #define WORDS_BIGENDIAN 1 | |
15738 | _ACEOF | |
15739 | ||
15740 | fi | |
15741 | ||
15742 | ||
8284b0c5 | 15743 | |
247f5006 VZ |
15744 | ac_ext=cc |
15745 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15746 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15747 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15748 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15749 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
15750 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
15751 | if test -z "$CXXCPP"; then | |
15752 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
15753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15754 | else | |
15755 | # Double quotes because CXXCPP needs to be expanded | |
15756 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
15757 | do | |
15758 | ac_preproc_ok=false | |
15759 | for ac_cxx_preproc_warn_flag in '' yes | |
15760 | do | |
15761 | # Use a header file that comes with gcc, so configuring glibc | |
15762 | # with a fresh cross-compiler works. | |
15763 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15764 | # not just through cpp. "Syntax error" is here to catch this case. | |
15765 | cat >conftest.$ac_ext <<_ACEOF | |
15766 | #line $LINENO "configure" | |
15767 | #include "confdefs.h" | |
15768 | #include <assert.h> | |
15769 | Syntax error | |
15770 | _ACEOF | |
15771 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15772 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15773 | ac_status=$? | |
15774 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
15775 | rm -f conftest.er1 | |
15776 | cat conftest.err >&5 | |
15777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15778 | (exit $ac_status); } >/dev/null; then | |
15779 | if test -s conftest.err; then | |
15780 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15781 | else | |
15782 | ac_cpp_err= | |
15783 | fi | |
15784 | else | |
15785 | ac_cpp_err=yes | |
21d1c967 | 15786 | fi |
247f5006 VZ |
15787 | if test -z "$ac_cpp_err"; then |
15788 | : | |
15789 | else | |
15790 | echo "$as_me: failed program was:" >&5 | |
15791 | cat conftest.$ac_ext >&5 | |
15792 | # Broken: fails on valid input. | |
15793 | continue | |
21d1c967 | 15794 | fi |
247f5006 | 15795 | rm -f conftest.err conftest.$ac_ext |
8284b0c5 | 15796 | |
247f5006 VZ |
15797 | # OK, works on sane cases. Now check whether non-existent headers |
15798 | # can be detected and how. | |
15799 | cat >conftest.$ac_ext <<_ACEOF | |
15800 | #line $LINENO "configure" | |
15801 | #include "confdefs.h" | |
15802 | #include <ac_nonexistent.h> | |
15803 | _ACEOF | |
15804 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15805 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15806 | ac_status=$? | |
15807 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
15808 | rm -f conftest.er1 | |
15809 | cat conftest.err >&5 | |
15810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15811 | (exit $ac_status); } >/dev/null; then | |
15812 | if test -s conftest.err; then | |
15813 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15814 | else | |
15815 | ac_cpp_err= | |
15816 | fi | |
15817 | else | |
15818 | ac_cpp_err=yes | |
21d1c967 | 15819 | fi |
247f5006 VZ |
15820 | if test -z "$ac_cpp_err"; then |
15821 | # Broken: success on invalid input. | |
15822 | continue | |
15823 | else | |
15824 | echo "$as_me: failed program was:" >&5 | |
15825 | cat conftest.$ac_ext >&5 | |
15826 | # Passes both tests. | |
15827 | ac_preproc_ok=: | |
15828 | break | |
15829 | fi | |
15830 | rm -f conftest.err conftest.$ac_ext | |
21d1c967 | 15831 | |
247f5006 VZ |
15832 | done |
15833 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15834 | rm -f conftest.err conftest.$ac_ext | |
15835 | if $ac_preproc_ok; then | |
15836 | break | |
21d1c967 GD |
15837 | fi |
15838 | ||
247f5006 VZ |
15839 | done |
15840 | ac_cv_prog_CXXCPP=$CXXCPP | |
5c6fa7d2 | 15841 | |
247f5006 VZ |
15842 | fi |
15843 | CXXCPP=$ac_cv_prog_CXXCPP | |
5c6fa7d2 | 15844 | else |
247f5006 VZ |
15845 | ac_cv_prog_CXXCPP=$CXXCPP |
15846 | fi | |
15847 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
15848 | echo "${ECHO_T}$CXXCPP" >&6 | |
15849 | ac_preproc_ok=false | |
15850 | for ac_cxx_preproc_warn_flag in '' yes | |
15851 | do | |
15852 | # Use a header file that comes with gcc, so configuring glibc | |
15853 | # with a fresh cross-compiler works. | |
15854 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15855 | # not just through cpp. "Syntax error" is here to catch this case. | |
15856 | cat >conftest.$ac_ext <<_ACEOF | |
15857 | #line $LINENO "configure" | |
5c6fa7d2 | 15858 | #include "confdefs.h" |
247f5006 VZ |
15859 | #include <assert.h> |
15860 | Syntax error | |
15861 | _ACEOF | |
15862 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15863 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15864 | ac_status=$? | |
15865 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
15866 | rm -f conftest.er1 | |
15867 | cat conftest.err >&5 | |
15868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15869 | (exit $ac_status); } >/dev/null; then | |
15870 | if test -s conftest.err; then | |
15871 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15872 | else | |
15873 | ac_cpp_err= | |
15874 | fi | |
15875 | else | |
15876 | ac_cpp_err=yes | |
15877 | fi | |
15878 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 15879 | : |
698dcdb6 | 15880 | else |
247f5006 | 15881 | echo "$as_me: failed program was:" >&5 |
698dcdb6 | 15882 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
15883 | # Broken: fails on valid input. |
15884 | continue | |
5c6fa7d2 | 15885 | fi |
247f5006 VZ |
15886 | rm -f conftest.err conftest.$ac_ext |
15887 | ||
15888 | # OK, works on sane cases. Now check whether non-existent headers | |
15889 | # can be detected and how. | |
15890 | cat >conftest.$ac_ext <<_ACEOF | |
15891 | #line $LINENO "configure" | |
15892 | #include "confdefs.h" | |
15893 | #include <ac_nonexistent.h> | |
15894 | _ACEOF | |
15895 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15896 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15897 | ac_status=$? | |
15898 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
15899 | rm -f conftest.er1 | |
15900 | cat conftest.err >&5 | |
15901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15902 | (exit $ac_status); } >/dev/null; then | |
15903 | if test -s conftest.err; then | |
15904 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15905 | else | |
15906 | ac_cpp_err= | |
15907 | fi | |
15908 | else | |
15909 | ac_cpp_err=yes | |
15910 | fi | |
15911 | if test -z "$ac_cpp_err"; then | |
15912 | # Broken: success on invalid input. | |
15913 | continue | |
15914 | else | |
15915 | echo "$as_me: failed program was:" >&5 | |
15916 | cat conftest.$ac_ext >&5 | |
15917 | # Passes both tests. | |
15918 | ac_preproc_ok=: | |
15919 | break | |
328a083c | 15920 | fi |
247f5006 VZ |
15921 | rm -f conftest.err conftest.$ac_ext |
15922 | ||
15923 | done | |
15924 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15925 | rm -f conftest.err conftest.$ac_ext | |
15926 | if $ac_preproc_ok; then | |
15927 | : | |
15928 | else | |
15929 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5 | |
15930 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;} | |
15931 | { (exit 1); exit 1; }; } | |
90dd450c | 15932 | fi |
247f5006 VZ |
15933 | |
15934 | ac_ext=cc | |
15935 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15936 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15937 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15938 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15939 | ||
1e6feb95 | 15940 | |
1725144d | 15941 | |
21d1c967 | 15942 | if test "$cross_compiling" = "yes"; then |
247f5006 | 15943 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 15944 | #define wxUSE_IOSTREAMH 1 |
247f5006 | 15945 | _ACEOF |
ab9b9eab | 15946 | |
21d1c967 | 15947 | else |
247f5006 VZ |
15948 | |
15949 | ||
15950 | ac_ext=cc | |
5c6fa7d2 | 15951 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
15952 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
15953 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15954 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 15955 | |
52127426 | 15956 | |
247f5006 VZ |
15957 | |
15958 | for ac_header in iostream | |
21d1c967 | 15959 | do |
247f5006 VZ |
15960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
15961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15966 | fi | |
15967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15968 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15969 | else | |
15970 | # Is the header compilable? | |
15971 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15972 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15973 | cat >conftest.$ac_ext <<_ACEOF | |
15974 | #line $LINENO "configure" | |
ab9b9eab | 15975 | #include "confdefs.h" |
247f5006 VZ |
15976 | $ac_includes_default |
15977 | #include <$ac_header> | |
15978 | _ACEOF | |
15979 | rm -f conftest.$ac_objext | |
15980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15981 | (eval $ac_compile) 2>&5 | |
15982 | ac_status=$? | |
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15984 | (exit $ac_status); } && | |
15985 | { ac_try='test -s conftest.$ac_objext' | |
15986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15987 | (eval $ac_try) 2>&5 | |
15988 | ac_status=$? | |
15989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15990 | (exit $ac_status); }; }; then | |
15991 | ac_header_compiler=yes | |
15992 | else | |
15993 | echo "$as_me: failed program was:" >&5 | |
15994 | cat conftest.$ac_ext >&5 | |
15995 | ac_header_compiler=no | |
15996 | fi | |
15997 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15998 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
15999 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16000 | ||
16001 | # Is the header present? | |
16002 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16003 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16004 | cat >conftest.$ac_ext <<_ACEOF | |
16005 | #line $LINENO "configure" | |
16006 | #include "confdefs.h" | |
16007 | #include <$ac_header> | |
16008 | _ACEOF | |
16009 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16010 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16011 | ac_status=$? | |
16012 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
16013 | rm -f conftest.er1 | |
16014 | cat conftest.err >&5 | |
16015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16016 | (exit $ac_status); } >/dev/null; then | |
16017 | if test -s conftest.err; then | |
16018 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16019 | else | |
16020 | ac_cpp_err= | |
16021 | fi | |
16022 | else | |
16023 | ac_cpp_err=yes | |
16024 | fi | |
16025 | if test -z "$ac_cpp_err"; then | |
16026 | ac_header_preproc=yes | |
16027 | else | |
16028 | echo "$as_me: failed program was:" >&5 | |
ab9b9eab | 16029 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
16030 | ac_header_preproc=no |
16031 | fi | |
16032 | rm -f conftest.err conftest.$ac_ext | |
16033 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16034 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16035 | ||
16036 | # So? What about this header? | |
16037 | case $ac_header_compiler:$ac_header_preproc in | |
16038 | yes:no ) | |
16039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16042 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
16043 | no:yes ) | |
16044 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16045 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16046 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16047 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16048 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16049 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
16050 | esac | |
16051 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16053 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16055 | else | |
16056 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 16057 | fi |
247f5006 VZ |
16058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16060 | ||
90dd450c | 16061 | fi |
247f5006 VZ |
16062 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
16063 | cat >>confdefs.h <<_ACEOF | |
16064 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16065 | _ACEOF | |
16066 | ||
90dd450c | 16067 | fi |
247f5006 | 16068 | |
21d1c967 | 16069 | done |
10f2d63a | 16070 | |
8284b0c5 | 16071 | |
21d1c967 GD |
16072 | if test "$ac_cv_header_iostream" = "yes" ; then |
16073 | : | |
16074 | else | |
247f5006 | 16075 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16076 | #define wxUSE_IOSTREAMH 1 |
247f5006 | 16077 | _ACEOF |
788deba1 | 16078 | |
90dd450c | 16079 | fi |
ab9b9eab | 16080 | |
21d1c967 | 16081 | ac_ext=c |
21d1c967 | 16082 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
16083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 16086 | |
21d1c967 | 16087 | fi |
ab9b9eab | 16088 | |
52127426 | 16089 | |
8284b0c5 | 16090 | |
247f5006 VZ |
16091 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
16092 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
16093 | if test "${wx_cv_cpp_bool+set}" = set; then | |
16094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 16095 | else |
247f5006 VZ |
16096 | |
16097 | ||
16098 | ||
16099 | ac_ext=cc | |
5c6fa7d2 | 16100 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
16101 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16102 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16103 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 16104 | |
8284b0c5 | 16105 | |
247f5006 VZ |
16106 | cat >conftest.$ac_ext <<_ACEOF |
16107 | #line $LINENO "configure" | |
ab9b9eab | 16108 | #include "confdefs.h" |
21d1c967 | 16109 | |
247f5006 VZ |
16110 | |
16111 | #ifdef F77_DUMMY_MAIN | |
16112 | # ifdef __cplusplus | |
16113 | extern "C" | |
16114 | # endif | |
16115 | int F77_DUMMY_MAIN() { return 1; } | |
16116 | #endif | |
16117 | int | |
16118 | main () | |
16119 | { | |
21d1c967 GD |
16120 | |
16121 | bool b = true; | |
16122 | ||
16123 | return 0; | |
247f5006 VZ |
16124 | |
16125 | ; | |
16126 | return 0; | |
16127 | } | |
16128 | _ACEOF | |
16129 | rm -f conftest.$ac_objext | |
16130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16131 | (eval $ac_compile) 2>&5 | |
16132 | ac_status=$? | |
16133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16134 | (exit $ac_status); } && | |
16135 | { ac_try='test -s conftest.$ac_objext' | |
16136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16137 | (eval $ac_try) 2>&5 | |
16138 | ac_status=$? | |
16139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16140 | (exit $ac_status); }; }; then | |
16141 | ||
21d1c967 | 16142 | wx_cv_cpp_bool=yes |
247f5006 | 16143 | |
698dcdb6 | 16144 | else |
247f5006 VZ |
16145 | echo "$as_me: failed program was:" >&5 |
16146 | cat conftest.$ac_ext >&5 | |
16147 | ||
21d1c967 | 16148 | wx_cv_cpp_bool=no |
247f5006 VZ |
16149 | |
16150 | ||
698dcdb6 | 16151 | fi |
247f5006 | 16152 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16153 | |
16154 | ac_ext=c | |
21d1c967 | 16155 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
16156 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16157 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16158 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21d1c967 | 16159 | |
8284b0c5 | 16160 | |
247f5006 VZ |
16161 | fi |
16162 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
16163 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
16164 | |
16165 | if test "$wx_cv_cpp_bool" = "yes"; then | |
247f5006 | 16166 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16167 | #define HAVE_BOOL 1 |
247f5006 | 16168 | _ACEOF |
ab9b9eab | 16169 | |
21d1c967 GD |
16170 | fi |
16171 | ||
52127426 | 16172 | |
8284b0c5 | 16173 | |
247f5006 VZ |
16174 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
16175 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
16176 | if test "${wx_cv_explicit+set}" = set; then | |
16177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 16178 | else |
247f5006 VZ |
16179 | |
16180 | ||
16181 | ||
16182 | ac_ext=cc | |
5c6fa7d2 | 16183 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
16184 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16185 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16186 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 16187 | |
8284b0c5 | 16188 | |
247f5006 VZ |
16189 | cat >conftest.$ac_ext <<_ACEOF |
16190 | #line $LINENO "configure" | |
986ecc86 VZ |
16191 | #include "confdefs.h" |
16192 | ||
16193 | class Foo { public: explicit Foo(int) {} }; | |
247f5006 VZ |
16194 | |
16195 | #ifdef F77_DUMMY_MAIN | |
16196 | # ifdef __cplusplus | |
16197 | extern "C" | |
16198 | # endif | |
16199 | int F77_DUMMY_MAIN() { return 1; } | |
16200 | #endif | |
16201 | int | |
16202 | main () | |
16203 | { | |
986ecc86 VZ |
16204 | |
16205 | return 0; | |
247f5006 VZ |
16206 | |
16207 | ; | |
16208 | return 0; | |
16209 | } | |
16210 | _ACEOF | |
16211 | rm -f conftest.$ac_objext | |
16212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16213 | (eval $ac_compile) 2>&5 | |
16214 | ac_status=$? | |
16215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16216 | (exit $ac_status); } && | |
16217 | { ac_try='test -s conftest.$ac_objext' | |
16218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16219 | (eval $ac_try) 2>&5 | |
16220 | ac_status=$? | |
16221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16222 | (exit $ac_status); }; }; then | |
16223 | ||
16224 | cat >conftest.$ac_ext <<_ACEOF | |
16225 | #line $LINENO "configure" | |
986ecc86 VZ |
16226 | #include "confdefs.h" |
16227 | ||
16228 | class Foo { public: explicit Foo(int) {} }; | |
16229 | static void TakeFoo(const Foo& foo) { } | |
247f5006 VZ |
16230 | |
16231 | #ifdef F77_DUMMY_MAIN | |
16232 | # ifdef __cplusplus | |
16233 | extern "C" | |
16234 | # endif | |
16235 | int F77_DUMMY_MAIN() { return 1; } | |
16236 | #endif | |
16237 | int | |
16238 | main () | |
16239 | { | |
986ecc86 VZ |
16240 | |
16241 | TakeFoo(17); | |
16242 | return 0; | |
247f5006 VZ |
16243 | |
16244 | ; | |
16245 | return 0; | |
16246 | } | |
16247 | _ACEOF | |
16248 | rm -f conftest.$ac_objext | |
16249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16250 | (eval $ac_compile) 2>&5 | |
16251 | ac_status=$? | |
16252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16253 | (exit $ac_status); } && | |
16254 | { ac_try='test -s conftest.$ac_objext' | |
16255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16256 | (eval $ac_try) 2>&5 | |
16257 | ac_status=$? | |
16258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16259 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
16260 | wx_cv_explicit=no |
16261 | else | |
247f5006 VZ |
16262 | echo "$as_me: failed program was:" >&5 |
16263 | cat conftest.$ac_ext >&5 | |
16264 | wx_cv_explicit=yes | |
16265 | ||
986ecc86 | 16266 | fi |
247f5006 VZ |
16267 | rm -f conftest.$ac_objext conftest.$ac_ext |
16268 | ||
986ecc86 | 16269 | else |
247f5006 VZ |
16270 | echo "$as_me: failed program was:" >&5 |
16271 | cat conftest.$ac_ext >&5 | |
16272 | wx_cv_explicit=no | |
16273 | ||
986ecc86 | 16274 | fi |
247f5006 | 16275 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
16276 | |
16277 | ac_ext=c | |
986ecc86 | 16278 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
16279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
986ecc86 | 16282 | |
8284b0c5 | 16283 | |
247f5006 VZ |
16284 | fi |
16285 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
16286 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
16287 | |
16288 | if test "$wx_cv_explicit" = "yes"; then | |
247f5006 | 16289 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 16290 | #define HAVE_EXPLICIT 1 |
247f5006 | 16291 | _ACEOF |
986ecc86 VZ |
16292 | |
16293 | fi | |
16294 | ||
8284b0c5 MB |
16295 | |
16296 | ||
21d1c967 GD |
16297 | SEARCH_INCLUDE="\ |
16298 | /usr/local/include \ | |
16299 | \ | |
16300 | /usr/Motif-1.2/include \ | |
16301 | /usr/Motif-2.1/include \ | |
16302 | \ | |
16303 | /usr/include/Motif1.2 \ | |
16304 | /opt/xpm/include/X11 \ | |
16305 | /opt/GBxpm/include/ \ | |
16306 | /opt/GBxpm/X11/include/ \ | |
16307 | \ | |
16308 | /usr/Motif1.2/include \ | |
16309 | /usr/dt/include \ | |
16310 | /usr/openwin/include \ | |
16311 | \ | |
16312 | /usr/include/Xm \ | |
16313 | \ | |
16314 | /usr/X11R6/include \ | |
16315 | /usr/X11R6.4/include \ | |
16316 | /usr/X11R5/include \ | |
16317 | /usr/X11R4/include \ | |
16318 | \ | |
16319 | /usr/include/X11R6 \ | |
16320 | /usr/include/X11R5 \ | |
16321 | /usr/include/X11R4 \ | |
16322 | \ | |
16323 | /usr/local/X11R6/include \ | |
16324 | /usr/local/X11R5/include \ | |
16325 | /usr/local/X11R4/include \ | |
16326 | \ | |
16327 | /usr/local/include/X11R6 \ | |
16328 | /usr/local/include/X11R5 \ | |
16329 | /usr/local/include/X11R4 \ | |
16330 | \ | |
16331 | /usr/X11/include \ | |
16332 | /usr/include/X11 \ | |
16333 | /usr/local/X11/include \ | |
16334 | /usr/local/include/X11 \ | |
16335 | \ | |
16336 | /usr/X386/include \ | |
16337 | /usr/x386/include \ | |
16338 | /usr/XFree86/include/X11 \ | |
16339 | \ | |
16340 | X:/XFree86/include \ | |
16341 | X:/XFree86/include/X11 \ | |
16342 | \ | |
16343 | /usr/include/gtk \ | |
16344 | /usr/local/include/gtk \ | |
16345 | /usr/include/glib \ | |
16346 | /usr/local/include/glib \ | |
16347 | \ | |
16348 | /usr/include/qt \ | |
16349 | /usr/local/include/qt \ | |
16350 | \ | |
16351 | /usr/include/windows \ | |
16352 | /usr/include/wine \ | |
16353 | /usr/local/include/wine \ | |
16354 | \ | |
16355 | /usr/unsupported/include \ | |
16356 | /usr/athena/include \ | |
16357 | /usr/local/x11r5/include \ | |
16358 | /usr/lpp/Xamples/include \ | |
16359 | \ | |
16360 | /usr/openwin/share/include \ | |
16361 | \ | |
16362 | /usr/include" | |
16363 | ||
16364 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
16365 | ||
8284b0c5 | 16366 | |
247f5006 | 16367 | cat >confcache <<\_ACEOF |
21d1c967 GD |
16368 | # This file is a shell script that caches the results of configure |
16369 | # tests run on this system so they can be shared between configure | |
247f5006 VZ |
16370 | # scripts and configure runs, see configure's option --config-cache. |
16371 | # It is not useful on other systems. If it contains results you don't | |
16372 | # want to keep, you may remove or edit it. | |
21d1c967 | 16373 | # |
247f5006 VZ |
16374 | # config.status only pays attention to the cache file if you give it |
16375 | # the --recheck option to rerun configure. | |
21d1c967 | 16376 | # |
247f5006 VZ |
16377 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
16378 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16379 | # following values. | |
16380 | ||
16381 | _ACEOF | |
16382 | ||
21d1c967 GD |
16383 | # The following way of writing the cache mishandles newlines in values, |
16384 | # but we know of no workaround that is simple, portable, and efficient. | |
16385 | # So, don't put newlines in cache variables' values. | |
16386 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16387 | # and sets the high bit in the cache file unless we assign to the vars. | |
247f5006 VZ |
16388 | { |
16389 | (set) 2>&1 | | |
16390 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
16391 | *ac_space=\ *) | |
16392 | # `set' does not quote correctly, so add quotes (double-quote | |
16393 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
16394 | sed -n \ | |
16395 | "s/'/'\\\\''/g; | |
16396 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16397 | ;; | |
16398 | *) | |
16399 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16400 | sed -n \ | |
16401 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
16402 | ;; | |
16403 | esac; | |
16404 | } | | |
16405 | sed ' | |
16406 | t clear | |
16407 | : clear | |
16408 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16409 | t end | |
16410 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16411 | : end' >>confcache | |
16412 | if cmp -s $cache_file confcache; then :; else | |
21d1c967 | 16413 | if test -w $cache_file; then |
247f5006 VZ |
16414 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
16415 | cat confcache >$cache_file | |
21d1c967 GD |
16416 | else |
16417 | echo "not updating unwritable cache $cache_file" | |
16418 | fi | |
ab9b9eab | 16419 | fi |
21d1c967 | 16420 | rm -f confcache |
ab9b9eab | 16421 | |
8284b0c5 | 16422 | if test "$USE_LINUX" = 1; then |
247f5006 VZ |
16423 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
16424 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
16425 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
16426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16427 | else | |
16428 | ||
16429 | cat >conftest.$ac_ext <<_ACEOF | |
16430 | #line $LINENO "configure" | |
ab9b9eab | 16431 | #include "confdefs.h" |
21d1c967 | 16432 | #include <features.h> |
247f5006 VZ |
16433 | #ifdef F77_DUMMY_MAIN |
16434 | # ifdef __cplusplus | |
16435 | extern "C" | |
16436 | # endif | |
16437 | int F77_DUMMY_MAIN() { return 1; } | |
16438 | #endif | |
16439 | int | |
16440 | main () | |
16441 | { | |
ab9b9eab | 16442 | |
21d1c967 GD |
16443 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
16444 | #error not glibc2.1 | |
16445 | #endif | |
247f5006 VZ |
16446 | |
16447 | ; | |
16448 | return 0; | |
16449 | } | |
16450 | _ACEOF | |
16451 | rm -f conftest.$ac_objext | |
16452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16453 | (eval $ac_compile) 2>&5 | |
16454 | ac_status=$? | |
16455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16456 | (exit $ac_status); } && | |
16457 | { ac_try='test -s conftest.$ac_objext' | |
16458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16459 | (eval $ac_try) 2>&5 | |
16460 | ac_status=$? | |
16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16462 | (exit $ac_status); }; }; then | |
16463 | ||
21d1c967 | 16464 | wx_cv_lib_glibc21=yes |
247f5006 | 16465 | |
698dcdb6 | 16466 | else |
247f5006 VZ |
16467 | echo "$as_me: failed program was:" >&5 |
16468 | cat conftest.$ac_ext >&5 | |
16469 | ||
21d1c967 | 16470 | wx_cv_lib_glibc21=no |
247f5006 VZ |
16471 | |
16472 | ||
5c6fa7d2 | 16473 | fi |
247f5006 | 16474 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 16475 | |
247f5006 VZ |
16476 | fi |
16477 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
16478 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 16479 | if test "$wx_cv_lib_glibc21" = "yes"; then |
247f5006 | 16480 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16481 | #define wxHAVE_GLIBC2 1 |
247f5006 | 16482 | _ACEOF |
1e487827 | 16483 | |
90dd450c | 16484 | fi |
ab9b9eab VZ |
16485 | fi |
16486 | ||
5c0a20c3 VZ |
16487 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
16488 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
247f5006 | 16489 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 16490 | #define _GNU_SOURCE 1 |
247f5006 | 16491 | _ACEOF |
5c0a20c3 VZ |
16492 | |
16493 | fi | |
16494 | fi | |
16495 | ||
8284b0c5 MB |
16496 | |
16497 | ||
21d1c967 GD |
16498 | REGEX_INCLUDE= |
16499 | if test "$wxUSE_REGEX" != "no"; then | |
247f5006 | 16500 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16501 | #define wxUSE_REGEX 1 |
247f5006 | 16502 | _ACEOF |
698dcdb6 | 16503 | |
8284b0c5 | 16504 | |
21d1c967 | 16505 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
247f5006 VZ |
16506 | if test "${ac_cv_header_regex_h+set}" = set; then |
16507 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
16508 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
16509 | if test "${ac_cv_header_regex_h+set}" = set; then | |
16510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16511 | fi | |
16512 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
16513 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
16514 | else | |
16515 | # Is the header compilable? | |
16516 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
16517 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
16518 | cat >conftest.$ac_ext <<_ACEOF | |
16519 | #line $LINENO "configure" | |
21d1c967 | 16520 | #include "confdefs.h" |
247f5006 | 16521 | $ac_includes_default |
21d1c967 | 16522 | #include <regex.h> |
247f5006 VZ |
16523 | _ACEOF |
16524 | rm -f conftest.$ac_objext | |
16525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16526 | (eval $ac_compile) 2>&5 | |
16527 | ac_status=$? | |
16528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16529 | (exit $ac_status); } && | |
16530 | { ac_try='test -s conftest.$ac_objext' | |
16531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16532 | (eval $ac_try) 2>&5 | |
16533 | ac_status=$? | |
16534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16535 | (exit $ac_status); }; }; then | |
16536 | ac_header_compiler=yes | |
16537 | else | |
16538 | echo "$as_me: failed program was:" >&5 | |
16539 | cat conftest.$ac_ext >&5 | |
16540 | ac_header_compiler=no | |
16541 | fi | |
16542 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16543 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16544 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16545 | ||
16546 | # Is the header present? | |
16547 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
16548 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
16549 | cat >conftest.$ac_ext <<_ACEOF | |
16550 | #line $LINENO "configure" | |
16551 | #include "confdefs.h" | |
16552 | #include <regex.h> | |
16553 | _ACEOF | |
16554 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16556 | ac_status=$? | |
16557 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
16558 | rm -f conftest.er1 | |
16559 | cat conftest.err >&5 | |
16560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16561 | (exit $ac_status); } >/dev/null; then | |
16562 | if test -s conftest.err; then | |
16563 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16564 | else | |
16565 | ac_cpp_err= | |
16566 | fi | |
16567 | else | |
16568 | ac_cpp_err=yes | |
16569 | fi | |
16570 | if test -z "$ac_cpp_err"; then | |
16571 | ac_header_preproc=yes | |
16572 | else | |
16573 | echo "$as_me: failed program was:" >&5 | |
21d1c967 | 16574 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
16575 | ac_header_preproc=no |
16576 | fi | |
16577 | rm -f conftest.err conftest.$ac_ext | |
16578 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16579 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16580 | ||
16581 | # So? What about this header? | |
16582 | case $ac_header_compiler:$ac_header_preproc in | |
16583 | yes:no ) | |
16584 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16585 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16586 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
16587 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;};; | |
16588 | no:yes ) | |
16589 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
16590 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
16591 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
16592 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
16593 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
16594 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;};; | |
16595 | esac | |
16596 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
16597 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
16598 | if test "${ac_cv_header_regex_h+set}" = set; then | |
16599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16600 | else | |
16601 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 16602 | fi |
247f5006 VZ |
16603 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
16604 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
16605 | ||
698dcdb6 | 16606 | fi |
247f5006 VZ |
16607 | if test $ac_cv_header_regex_h = yes; then |
16608 | ||
16609 | for ac_func in regcomp | |
21d1c967 | 16610 | do |
247f5006 VZ |
16611 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16612 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16613 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16614 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16616 | else | |
16617 | cat >conftest.$ac_ext <<_ACEOF | |
16618 | #line $LINENO "configure" | |
8284b0c5 | 16619 | #include "confdefs.h" |
247f5006 VZ |
16620 | /* System header to define __stub macros and hopefully few prototypes |
16621 | else | |
16622 | which can conflict with char $ac_func (); below. */ | |
21d1c967 GD |
16623 | #include <assert.h> |
16624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
16625 | #ifdef __cplusplus |
16626 | extern "C" | |
16627 | #endif | |
21d1c967 | 16628 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
16629 | builtin and then its argument prototype would still apply. */ |
16630 | char $ac_func (); | |
16631 | char (*f) (); | |
16632 | ||
16633 | #ifdef F77_DUMMY_MAIN | |
16634 | # ifdef __cplusplus | |
16635 | extern "C" | |
16636 | # endif | |
16637 | int F77_DUMMY_MAIN() { return 1; } | |
16638 | #endif | |
16639 | int | |
16640 | main () | |
16641 | { | |
21d1c967 GD |
16642 | /* The GNU C library defines this for functions which it implements |
16643 | to always fail with ENOSYS. Some functions are actually named | |
16644 | something starting with __ and the normal name is an alias. */ | |
16645 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16646 | choke me | |
16647 | #else | |
247f5006 | 16648 | f = $ac_func; |
21d1c967 | 16649 | #endif |
90dd450c | 16650 | |
247f5006 VZ |
16651 | ; |
16652 | return 0; | |
16653 | } | |
16654 | _ACEOF | |
16655 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16657 | (eval $ac_link) 2>&5 | |
16658 | ac_status=$? | |
16659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16660 | (exit $ac_status); } && | |
16661 | { ac_try='test -s conftest$ac_exeext' | |
16662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16663 | (eval $ac_try) 2>&5 | |
16664 | ac_status=$? | |
16665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16666 | (exit $ac_status); }; }; then | |
16667 | eval "$as_ac_var=yes" | |
16668 | else | |
16669 | echo "$as_me: failed program was:" >&5 | |
16670 | cat conftest.$ac_ext >&5 | |
16671 | eval "$as_ac_var=no" | |
16672 | fi | |
16673 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16674 | fi | |
16675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16676 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16677 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16678 | cat >>confdefs.h <<_ACEOF | |
16679 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16680 | _ACEOF | |
5c6fa7d2 | 16681 | |
698dcdb6 | 16682 | fi |
21d1c967 GD |
16683 | done |
16684 | ||
ab9b9eab VZ |
16685 | fi |
16686 | ||
8284b0c5 | 16687 | |
247f5006 | 16688 | |
21d1c967 GD |
16689 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
16690 | if test "$wxUSE_REGEX" = "sys" ; then | |
247f5006 VZ |
16691 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
16692 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
16693 | { (exit 1); exit 1; }; } | |
21d1c967 | 16694 | else |
247f5006 VZ |
16695 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
16696 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
16697 | wxUSE_REGEX=builtin |
16698 | fi | |
16699 | else | |
16700 | wxUSE_REGEX=sys | |
16701 | fi | |
ab9b9eab | 16702 | fi |
90dd450c | 16703 | |
21d1c967 GD |
16704 | if test "$wxUSE_REGEX" = "builtin" ; then |
16705 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 16706 | fi |
21d1c967 | 16707 | fi |
90dd450c | 16708 | |
8284b0c5 | 16709 | |
21d1c967 GD |
16710 | ZLIB_INCLUDE= |
16711 | ZLIB_LINK= | |
16712 | if test "$wxUSE_ZLIB" != "no" ; then | |
247f5006 | 16713 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16714 | #define wxUSE_ZLIB 1 |
247f5006 | 16715 | _ACEOF |
21d1c967 | 16716 | |
8284b0c5 | 16717 | |
21d1c967 | 16718 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
247f5006 VZ |
16719 | if test "${ac_cv_header_zlib_h+set}" = set; then |
16720 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
16721 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
16722 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
16723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16724 | fi | |
16725 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
16726 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
16727 | else | |
16728 | # Is the header compilable? | |
16729 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
16730 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
16731 | cat >conftest.$ac_ext <<_ACEOF | |
16732 | #line $LINENO "configure" | |
ab9b9eab | 16733 | #include "confdefs.h" |
247f5006 | 16734 | $ac_includes_default |
21d1c967 | 16735 | #include <zlib.h> |
247f5006 VZ |
16736 | _ACEOF |
16737 | rm -f conftest.$ac_objext | |
16738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16739 | (eval $ac_compile) 2>&5 | |
16740 | ac_status=$? | |
16741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16742 | (exit $ac_status); } && | |
16743 | { ac_try='test -s conftest.$ac_objext' | |
16744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16745 | (eval $ac_try) 2>&5 | |
16746 | ac_status=$? | |
16747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16748 | (exit $ac_status); }; }; then | |
16749 | ac_header_compiler=yes | |
16750 | else | |
16751 | echo "$as_me: failed program was:" >&5 | |
16752 | cat conftest.$ac_ext >&5 | |
16753 | ac_header_compiler=no | |
16754 | fi | |
16755 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16756 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16757 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16758 | ||
16759 | # Is the header present? | |
16760 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
16761 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
16762 | cat >conftest.$ac_ext <<_ACEOF | |
16763 | #line $LINENO "configure" | |
16764 | #include "confdefs.h" | |
16765 | #include <zlib.h> | |
16766 | _ACEOF | |
16767 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16768 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16769 | ac_status=$? | |
16770 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
16771 | rm -f conftest.er1 | |
16772 | cat conftest.err >&5 | |
16773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16774 | (exit $ac_status); } >/dev/null; then | |
16775 | if test -s conftest.err; then | |
16776 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16777 | else | |
16778 | ac_cpp_err= | |
16779 | fi | |
16780 | else | |
16781 | ac_cpp_err=yes | |
16782 | fi | |
16783 | if test -z "$ac_cpp_err"; then | |
16784 | ac_header_preproc=yes | |
16785 | else | |
16786 | echo "$as_me: failed program was:" >&5 | |
698dcdb6 | 16787 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
16788 | ac_header_preproc=no |
16789 | fi | |
16790 | rm -f conftest.err conftest.$ac_ext | |
16791 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16792 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16793 | ||
16794 | # So? What about this header? | |
16795 | case $ac_header_compiler:$ac_header_preproc in | |
16796 | yes:no ) | |
16797 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16798 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16799 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
16800 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};; | |
16801 | no:yes ) | |
16802 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
16803 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
16804 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
16805 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
16806 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
16807 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;};; | |
16808 | esac | |
16809 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
16810 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
16811 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
16812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16813 | else | |
16814 | ac_cv_header_zlib_h=$ac_header_preproc | |
698dcdb6 | 16815 | fi |
247f5006 VZ |
16816 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
16817 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
16818 | ||
ab9b9eab | 16819 | fi |
247f5006 VZ |
16820 | if test $ac_cv_header_zlib_h = yes; then |
16821 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
16822 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
16823 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
16824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16825 | else |
247f5006 | 16826 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 16827 | LIBS="-lz $LIBS" |
247f5006 VZ |
16828 | cat >conftest.$ac_ext <<_ACEOF |
16829 | #line $LINENO "configure" | |
ab9b9eab | 16830 | #include "confdefs.h" |
247f5006 | 16831 | |
21d1c967 | 16832 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
16833 | #ifdef __cplusplus |
16834 | extern "C" | |
16835 | #endif | |
21d1c967 | 16836 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
16837 | builtin and then its argument prototype would still apply. */ |
16838 | char deflate (); | |
16839 | #ifdef F77_DUMMY_MAIN | |
16840 | # ifdef __cplusplus | |
16841 | extern "C" | |
16842 | # endif | |
16843 | int F77_DUMMY_MAIN() { return 1; } | |
16844 | #endif | |
16845 | int | |
16846 | main () | |
16847 | { | |
16848 | deflate (); | |
16849 | ; | |
16850 | return 0; | |
16851 | } | |
16852 | _ACEOF | |
16853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16855 | (eval $ac_link) 2>&5 | |
16856 | ac_status=$? | |
16857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16858 | (exit $ac_status); } && | |
16859 | { ac_try='test -s conftest$ac_exeext' | |
16860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16861 | (eval $ac_try) 2>&5 | |
16862 | ac_status=$? | |
16863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16864 | (exit $ac_status); }; }; then | |
16865 | ac_cv_lib_z_deflate=yes | |
16866 | else | |
16867 | echo "$as_me: failed program was:" >&5 | |
16868 | cat conftest.$ac_ext >&5 | |
16869 | ac_cv_lib_z_deflate=no | |
16870 | fi | |
16871 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
16872 | LIBS=$ac_check_lib_save_LIBS | |
16873 | fi | |
16874 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
16875 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
16876 | if test $ac_cv_lib_z_deflate = yes; then | |
21d1c967 | 16877 | ZLIB_LINK=" -lz" |
90dd450c | 16878 | fi |
698dcdb6 | 16879 | |
698dcdb6 | 16880 | fi |
698dcdb6 | 16881 | |
8284b0c5 | 16882 | |
247f5006 | 16883 | |
21d1c967 GD |
16884 | if test "x$ZLIB_LINK" = "x" ; then |
16885 | if test "$wxUSE_ZLIB" = "sys" ; then | |
247f5006 VZ |
16886 | { { echo "$as_me:$LINENO: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" >&5 |
16887 | echo "$as_me: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" >&2;} | |
16888 | { (exit 1); exit 1; }; } | |
21d1c967 | 16889 | else |
247f5006 VZ |
16890 | { echo "$as_me:$LINENO: WARNING: system zlib compression library not found, will use built-in instead" >&5 |
16891 | echo "$as_me: WARNING: system zlib compression library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
16892 | wxUSE_ZLIB=builtin |
16893 | fi | |
16894 | else | |
16895 | wxUSE_ZLIB=sys | |
16896 | fi | |
16897 | fi | |
16898 | ||
16899 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
16900 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
16901 | fi | |
ab9b9eab VZ |
16902 | fi |
16903 | ||
8284b0c5 | 16904 | |
21d1c967 GD |
16905 | PNG_INCLUDE= |
16906 | PNG_LINK= | |
16907 | if test "$wxUSE_LIBPNG" != "no" ; then | |
247f5006 | 16908 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16909 | #define wxUSE_LIBPNG 1 |
247f5006 | 16910 | _ACEOF |
90dd450c | 16911 | |
8284b0c5 | 16912 | |
21d1c967 | 16913 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
247f5006 VZ |
16914 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
16915 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
16916 | wxUSE_LIBPNG=sys |
16917 | fi | |
90dd450c | 16918 | |
21d1c967 | 16919 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
247f5006 VZ |
16920 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
16921 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
16922 | wxUSE_LIBPNG=builtin |
16923 | fi | |
16924 | ||
16925 | if test "$wxUSE_MGL" != 1 ; then | |
16926 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
247f5006 VZ |
16927 | if test "${ac_cv_header_png_h+set}" = set; then |
16928 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
16929 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
16930 | if test "${ac_cv_header_png_h+set}" = set; then | |
16931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16932 | fi | |
16933 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
16934 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
16935 | else | |
16936 | # Is the header compilable? | |
16937 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
16938 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
16939 | cat >conftest.$ac_ext <<_ACEOF | |
16940 | #line $LINENO "configure" | |
21d1c967 | 16941 | #include "confdefs.h" |
247f5006 | 16942 | $ac_includes_default |
21d1c967 | 16943 | #include <png.h> |
247f5006 VZ |
16944 | _ACEOF |
16945 | rm -f conftest.$ac_objext | |
16946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16947 | (eval $ac_compile) 2>&5 | |
16948 | ac_status=$? | |
16949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16950 | (exit $ac_status); } && | |
16951 | { ac_try='test -s conftest.$ac_objext' | |
16952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16953 | (eval $ac_try) 2>&5 | |
16954 | ac_status=$? | |
16955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16956 | (exit $ac_status); }; }; then | |
16957 | ac_header_compiler=yes | |
16958 | else | |
16959 | echo "$as_me: failed program was:" >&5 | |
16960 | cat conftest.$ac_ext >&5 | |
16961 | ac_header_compiler=no | |
16962 | fi | |
16963 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16964 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
16965 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16966 | ||
16967 | # Is the header present? | |
16968 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
16969 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
16970 | cat >conftest.$ac_ext <<_ACEOF | |
16971 | #line $LINENO "configure" | |
16972 | #include "confdefs.h" | |
16973 | #include <png.h> | |
16974 | _ACEOF | |
16975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16977 | ac_status=$? | |
16978 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
16979 | rm -f conftest.er1 | |
16980 | cat conftest.err >&5 | |
16981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16982 | (exit $ac_status); } >/dev/null; then | |
16983 | if test -s conftest.err; then | |
16984 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16985 | else | |
16986 | ac_cpp_err= | |
16987 | fi | |
16988 | else | |
16989 | ac_cpp_err=yes | |
16990 | fi | |
16991 | if test -z "$ac_cpp_err"; then | |
16992 | ac_header_preproc=yes | |
16993 | else | |
16994 | echo "$as_me: failed program was:" >&5 | |
90dd450c | 16995 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
16996 | ac_header_preproc=no |
16997 | fi | |
16998 | rm -f conftest.err conftest.$ac_ext | |
16999 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17000 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17001 | ||
17002 | # So? What about this header? | |
17003 | case $ac_header_compiler:$ac_header_preproc in | |
17004 | yes:no ) | |
17005 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17006 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17007 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
17008 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};; | |
17009 | no:yes ) | |
17010 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
17011 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
17012 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
17013 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
17014 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
17015 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};; | |
17016 | esac | |
17017 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
17018 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
17019 | if test "${ac_cv_header_png_h+set}" = set; then | |
17020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17021 | else | |
17022 | ac_cv_header_png_h=$ac_header_preproc | |
90dd450c | 17023 | fi |
247f5006 VZ |
17024 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
17025 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
17026 | ||
90dd450c | 17027 | fi |
247f5006 VZ |
17028 | if test $ac_cv_header_png_h = yes; then |
17029 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
17030 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
17031 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
17032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17033 | else |
247f5006 | 17034 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 17035 | LIBS="-lpng -lz -lm $LIBS" |
247f5006 VZ |
17036 | cat >conftest.$ac_ext <<_ACEOF |
17037 | #line $LINENO "configure" | |
90dd450c | 17038 | #include "confdefs.h" |
247f5006 | 17039 | |
21d1c967 | 17040 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
17041 | #ifdef __cplusplus |
17042 | extern "C" | |
17043 | #endif | |
21d1c967 | 17044 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
17045 | builtin and then its argument prototype would still apply. */ |
17046 | char png_check_sig (); | |
17047 | #ifdef F77_DUMMY_MAIN | |
17048 | # ifdef __cplusplus | |
17049 | extern "C" | |
17050 | # endif | |
17051 | int F77_DUMMY_MAIN() { return 1; } | |
17052 | #endif | |
17053 | int | |
17054 | main () | |
17055 | { | |
17056 | png_check_sig (); | |
17057 | ; | |
17058 | return 0; | |
17059 | } | |
17060 | _ACEOF | |
17061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17063 | (eval $ac_link) 2>&5 | |
17064 | ac_status=$? | |
17065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17066 | (exit $ac_status); } && | |
17067 | { ac_try='test -s conftest$ac_exeext' | |
17068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17069 | (eval $ac_try) 2>&5 | |
17070 | ac_status=$? | |
17071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17072 | (exit $ac_status); }; }; then | |
17073 | ac_cv_lib_png_png_check_sig=yes | |
17074 | else | |
17075 | echo "$as_me: failed program was:" >&5 | |
17076 | cat conftest.$ac_ext >&5 | |
17077 | ac_cv_lib_png_png_check_sig=no | |
17078 | fi | |
17079 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17080 | LIBS=$ac_check_lib_save_LIBS | |
17081 | fi | |
17082 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
17083 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
17084 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
21d1c967 | 17085 | PNG_LINK=" -lpng" |
90dd450c VZ |
17086 | fi |
17087 | ||
247f5006 | 17088 | |
90dd450c VZ |
17089 | fi |
17090 | ||
8284b0c5 | 17091 | |
247f5006 | 17092 | |
21d1c967 GD |
17093 | if test "x$PNG_LINK" = "x" ; then |
17094 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
247f5006 VZ |
17095 | { { echo "$as_me:$LINENO: error: system png library not found! Use --with-libpng=builtin to use built-in version" >&5 |
17096 | echo "$as_me: error: system png library not found! Use --with-libpng=builtin to use built-in version" >&2;} | |
17097 | { (exit 1); exit 1; }; } | |
21d1c967 | 17098 | else |
247f5006 VZ |
17099 | { echo "$as_me:$LINENO: WARNING: system png library not found, will use built-in instead" >&5 |
17100 | echo "$as_me: WARNING: system png library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
17101 | wxUSE_LIBPNG=builtin |
17102 | fi | |
17103 | else | |
17104 | wxUSE_LIBPNG=yes | |
17105 | fi | |
17106 | fi | |
17107 | fi | |
90dd450c | 17108 | |
21d1c967 GD |
17109 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
17110 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
17111 | fi | |
90dd450c | 17112 | |
21d1c967 | 17113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
17114 | fi |
17115 | ||
8284b0c5 | 17116 | |
21d1c967 GD |
17117 | JPEG_INCLUDE= |
17118 | JPEG_LINK= | |
17119 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
247f5006 | 17120 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17121 | #define wxUSE_LIBJPEG 1 |
247f5006 | 17122 | _ACEOF |
90dd450c | 17123 | |
8284b0c5 | 17124 | |
21d1c967 | 17125 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
247f5006 VZ |
17126 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
17127 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
17128 | wxUSE_LIBJPEG=sys |
17129 | fi | |
90dd450c | 17130 | |
21d1c967 GD |
17131 | if test "$wxUSE_MGL" != 1 ; then |
17132 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
247f5006 VZ |
17133 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
17134 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
17135 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
17136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17137 | else |
247f5006 VZ |
17138 | cat >conftest.$ac_ext <<_ACEOF |
17139 | #line $LINENO "configure" | |
21d1c967 | 17140 | #include "confdefs.h" |
90dd450c | 17141 | |
21d1c967 GD |
17142 | #undef HAVE_STDLIB_H |
17143 | #include <stdio.h> | |
17144 | #include <jpeglib.h> | |
90dd450c | 17145 | |
247f5006 VZ |
17146 | #ifdef F77_DUMMY_MAIN |
17147 | # ifdef __cplusplus | |
17148 | extern "C" | |
17149 | # endif | |
17150 | int F77_DUMMY_MAIN() { return 1; } | |
17151 | #endif | |
17152 | int | |
17153 | main () | |
17154 | { | |
17155 | ||
17156 | ||
17157 | ; | |
17158 | return 0; | |
17159 | } | |
17160 | _ACEOF | |
17161 | rm -f conftest.$ac_objext | |
17162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17163 | (eval $ac_compile) 2>&5 | |
17164 | ac_status=$? | |
17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17166 | (exit $ac_status); } && | |
17167 | { ac_try='test -s conftest.$ac_objext' | |
17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17169 | (eval $ac_try) 2>&5 | |
17170 | ac_status=$? | |
17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17172 | (exit $ac_status); }; }; then | |
21d1c967 | 17173 | ac_cv_header_jpeglib_h=yes |
90dd450c | 17174 | else |
247f5006 VZ |
17175 | echo "$as_me: failed program was:" >&5 |
17176 | cat conftest.$ac_ext >&5 | |
17177 | ac_cv_header_jpeglib_h=no | |
17178 | ||
90dd450c | 17179 | fi |
247f5006 VZ |
17180 | rm -f conftest.$ac_objext conftest.$ac_ext |
17181 | ||
90dd450c VZ |
17182 | fi |
17183 | ||
247f5006 VZ |
17184 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
17185 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 17186 | |
21d1c967 | 17187 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
247f5006 VZ |
17188 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
17189 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
17190 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
17191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17192 | else |
247f5006 | 17193 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 17194 | LIBS="-ljpeg $LIBS" |
247f5006 VZ |
17195 | cat >conftest.$ac_ext <<_ACEOF |
17196 | #line $LINENO "configure" | |
21d1c967 | 17197 | #include "confdefs.h" |
247f5006 | 17198 | |
21d1c967 | 17199 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
17200 | #ifdef __cplusplus |
17201 | extern "C" | |
17202 | #endif | |
21d1c967 | 17203 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
17204 | builtin and then its argument prototype would still apply. */ |
17205 | char jpeg_read_header (); | |
17206 | #ifdef F77_DUMMY_MAIN | |
17207 | # ifdef __cplusplus | |
17208 | extern "C" | |
17209 | # endif | |
17210 | int F77_DUMMY_MAIN() { return 1; } | |
17211 | #endif | |
17212 | int | |
17213 | main () | |
17214 | { | |
17215 | jpeg_read_header (); | |
17216 | ; | |
17217 | return 0; | |
17218 | } | |
17219 | _ACEOF | |
17220 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17222 | (eval $ac_link) 2>&5 | |
17223 | ac_status=$? | |
17224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17225 | (exit $ac_status); } && | |
17226 | { ac_try='test -s conftest$ac_exeext' | |
17227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17228 | (eval $ac_try) 2>&5 | |
17229 | ac_status=$? | |
17230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17231 | (exit $ac_status); }; }; then | |
17232 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
17233 | else | |
17234 | echo "$as_me: failed program was:" >&5 | |
17235 | cat conftest.$ac_ext >&5 | |
17236 | ac_cv_lib_jpeg_jpeg_read_header=no | |
17237 | fi | |
17238 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17239 | LIBS=$ac_check_lib_save_LIBS | |
17240 | fi | |
17241 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
17242 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
17243 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 17244 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
17245 | fi |
17246 | ||
21d1c967 | 17247 | fi |
90dd450c | 17248 | |
21d1c967 GD |
17249 | if test "x$JPEG_LINK" = "x" ; then |
17250 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
247f5006 VZ |
17251 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
17252 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
17253 | { (exit 1); exit 1; }; } | |
21d1c967 | 17254 | else |
247f5006 VZ |
17255 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
17256 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
17257 | wxUSE_LIBJPEG=builtin |
17258 | fi | |
17259 | else | |
17260 | wxUSE_LIBJPEG=sys | |
17261 | fi | |
17262 | fi | |
17263 | fi | |
90dd450c | 17264 | |
21d1c967 GD |
17265 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
17266 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
17267 | fi | |
17268 | fi | |
90dd450c | 17269 | |
8284b0c5 | 17270 | |
21d1c967 GD |
17271 | TIFF_INCLUDE= |
17272 | TIFF_LINK= | |
17273 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
247f5006 | 17274 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17275 | #define wxUSE_LIBTIFF 1 |
247f5006 | 17276 | _ACEOF |
21d1c967 | 17277 | |
8284b0c5 | 17278 | |
21d1c967 | 17279 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
247f5006 VZ |
17280 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
17281 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
17282 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
17283 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
17284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17285 | fi | |
17286 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
17287 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
17288 | else | |
17289 | # Is the header compilable? | |
17290 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
17291 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
17292 | cat >conftest.$ac_ext <<_ACEOF | |
17293 | #line $LINENO "configure" | |
21d1c967 | 17294 | #include "confdefs.h" |
247f5006 | 17295 | $ac_includes_default |
21d1c967 | 17296 | #include <tiffio.h> |
247f5006 VZ |
17297 | _ACEOF |
17298 | rm -f conftest.$ac_objext | |
17299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17300 | (eval $ac_compile) 2>&5 | |
17301 | ac_status=$? | |
17302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17303 | (exit $ac_status); } && | |
17304 | { ac_try='test -s conftest.$ac_objext' | |
17305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17306 | (eval $ac_try) 2>&5 | |
17307 | ac_status=$? | |
17308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17309 | (exit $ac_status); }; }; then | |
17310 | ac_header_compiler=yes | |
17311 | else | |
17312 | echo "$as_me: failed program was:" >&5 | |
17313 | cat conftest.$ac_ext >&5 | |
17314 | ac_header_compiler=no | |
17315 | fi | |
17316 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17317 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17318 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17319 | ||
17320 | # Is the header present? | |
17321 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
17322 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
17323 | cat >conftest.$ac_ext <<_ACEOF | |
17324 | #line $LINENO "configure" | |
17325 | #include "confdefs.h" | |
17326 | #include <tiffio.h> | |
17327 | _ACEOF | |
17328 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17329 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17330 | ac_status=$? | |
17331 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
17332 | rm -f conftest.er1 | |
17333 | cat conftest.err >&5 | |
17334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17335 | (exit $ac_status); } >/dev/null; then | |
17336 | if test -s conftest.err; then | |
17337 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17338 | else | |
17339 | ac_cpp_err= | |
17340 | fi | |
17341 | else | |
17342 | ac_cpp_err=yes | |
17343 | fi | |
17344 | if test -z "$ac_cpp_err"; then | |
17345 | ac_header_preproc=yes | |
17346 | else | |
17347 | echo "$as_me: failed program was:" >&5 | |
21d1c967 | 17348 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
17349 | ac_header_preproc=no |
17350 | fi | |
17351 | rm -f conftest.err conftest.$ac_ext | |
17352 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17353 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17354 | ||
17355 | # So? What about this header? | |
17356 | case $ac_header_compiler:$ac_header_preproc in | |
17357 | yes:no ) | |
17358 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17359 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17360 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
17361 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};; | |
17362 | no:yes ) | |
17363 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
17364 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
17365 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
17366 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
17367 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
17368 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};; | |
17369 | esac | |
17370 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
17371 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
17372 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
17373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17374 | else | |
17375 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 17376 | fi |
247f5006 VZ |
17377 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
17378 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
17379 | ||
21d1c967 | 17380 | fi |
247f5006 VZ |
17381 | if test $ac_cv_header_tiffio_h = yes; then |
17382 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
17383 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
17384 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
17385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 17386 | else |
247f5006 | 17387 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 17388 | LIBS="-ltiff -lm $LIBS" |
247f5006 VZ |
17389 | cat >conftest.$ac_ext <<_ACEOF |
17390 | #line $LINENO "configure" | |
ab9b9eab | 17391 | #include "confdefs.h" |
247f5006 | 17392 | |
ab9b9eab | 17393 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
17394 | #ifdef __cplusplus |
17395 | extern "C" | |
17396 | #endif | |
ab9b9eab | 17397 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
17398 | builtin and then its argument prototype would still apply. */ |
17399 | char TIFFError (); | |
17400 | #ifdef F77_DUMMY_MAIN | |
17401 | # ifdef __cplusplus | |
17402 | extern "C" | |
17403 | # endif | |
17404 | int F77_DUMMY_MAIN() { return 1; } | |
17405 | #endif | |
17406 | int | |
17407 | main () | |
17408 | { | |
17409 | TIFFError (); | |
17410 | ; | |
17411 | return 0; | |
17412 | } | |
17413 | _ACEOF | |
17414 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17416 | (eval $ac_link) 2>&5 | |
17417 | ac_status=$? | |
17418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17419 | (exit $ac_status); } && | |
17420 | { ac_try='test -s conftest$ac_exeext' | |
17421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17422 | (eval $ac_try) 2>&5 | |
17423 | ac_status=$? | |
17424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17425 | (exit $ac_status); }; }; then | |
17426 | ac_cv_lib_tiff_TIFFError=yes | |
17427 | else | |
17428 | echo "$as_me: failed program was:" >&5 | |
17429 | cat conftest.$ac_ext >&5 | |
17430 | ac_cv_lib_tiff_TIFFError=no | |
17431 | fi | |
17432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
17433 | LIBS=$ac_check_lib_save_LIBS | |
17434 | fi | |
17435 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
17436 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
17437 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
21d1c967 | 17438 | TIFF_LINK=" -ltiff" |
ab9b9eab VZ |
17439 | fi |
17440 | ||
247f5006 | 17441 | |
21d1c967 | 17442 | fi |
cd6d6d5b | 17443 | |
8284b0c5 | 17444 | |
247f5006 | 17445 | |
21d1c967 GD |
17446 | if test "x$TIFF_LINK" = "x" ; then |
17447 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
247f5006 VZ |
17448 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
17449 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
17450 | { (exit 1); exit 1; }; } | |
90dd450c | 17451 | else |
247f5006 VZ |
17452 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
17453 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 17454 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 17455 | fi |
d8356fa3 | 17456 | else |
21d1c967 | 17457 | wxUSE_LIBTIFF=sys |
d8356fa3 | 17458 | fi |
21d1c967 | 17459 | fi |
d8356fa3 | 17460 | |
21d1c967 GD |
17461 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
17462 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 17463 | fi |
21d1c967 | 17464 | fi |
10f2d63a | 17465 | |
8284b0c5 | 17466 | |
21d1c967 | 17467 | AFMINSTALL= |
90dd450c | 17468 | |
21d1c967 GD |
17469 | TOOLKIT= |
17470 | TOOLKIT_INCLUDE= | |
17471 | WIDGET_SET= | |
17472 | ||
17473 | if test "$USE_WIN32" = 1 ; then | |
247f5006 VZ |
17474 | |
17475 | for ac_header in w32api.h | |
21d1c967 | 17476 | do |
247f5006 VZ |
17477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17479 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17480 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17481 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17483 | fi | |
17484 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17485 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17486 | else | |
17487 | # Is the header compilable? | |
17488 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17489 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17490 | cat >conftest.$ac_ext <<_ACEOF | |
17491 | #line $LINENO "configure" | |
f79bd02d | 17492 | #include "confdefs.h" |
247f5006 VZ |
17493 | $ac_includes_default |
17494 | #include <$ac_header> | |
17495 | _ACEOF | |
17496 | rm -f conftest.$ac_objext | |
17497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17498 | (eval $ac_compile) 2>&5 | |
17499 | ac_status=$? | |
17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17501 | (exit $ac_status); } && | |
17502 | { ac_try='test -s conftest.$ac_objext' | |
17503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17504 | (eval $ac_try) 2>&5 | |
17505 | ac_status=$? | |
17506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17507 | (exit $ac_status); }; }; then | |
17508 | ac_header_compiler=yes | |
17509 | else | |
17510 | echo "$as_me: failed program was:" >&5 | |
17511 | cat conftest.$ac_ext >&5 | |
17512 | ac_header_compiler=no | |
17513 | fi | |
17514 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17515 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17516 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17517 | ||
17518 | # Is the header present? | |
17519 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17520 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17521 | cat >conftest.$ac_ext <<_ACEOF | |
17522 | #line $LINENO "configure" | |
17523 | #include "confdefs.h" | |
17524 | #include <$ac_header> | |
17525 | _ACEOF | |
17526 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17527 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17528 | ac_status=$? | |
17529 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
17530 | rm -f conftest.er1 | |
17531 | cat conftest.err >&5 | |
17532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17533 | (exit $ac_status); } >/dev/null; then | |
17534 | if test -s conftest.err; then | |
17535 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17536 | else | |
17537 | ac_cpp_err= | |
17538 | fi | |
17539 | else | |
17540 | ac_cpp_err=yes | |
17541 | fi | |
17542 | if test -z "$ac_cpp_err"; then | |
17543 | ac_header_preproc=yes | |
17544 | else | |
17545 | echo "$as_me: failed program was:" >&5 | |
f79bd02d | 17546 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
17547 | ac_header_preproc=no |
17548 | fi | |
17549 | rm -f conftest.err conftest.$ac_ext | |
17550 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17551 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17552 | ||
17553 | # So? What about this header? | |
17554 | case $ac_header_compiler:$ac_header_preproc in | |
17555 | yes:no ) | |
17556 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17557 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17558 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17559 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
17560 | no:yes ) | |
17561 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17562 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17563 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17564 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17566 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
17567 | esac | |
17568 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17569 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17570 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17572 | else | |
17573 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 17574 | fi |
247f5006 VZ |
17575 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17576 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17577 | ||
21d1c967 | 17578 | fi |
247f5006 VZ |
17579 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17580 | cat >>confdefs.h <<_ACEOF | |
17581 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17582 | _ACEOF | |
17583 | ||
21d1c967 | 17584 | fi |
247f5006 | 17585 | |
21d1c967 | 17586 | done |
f79bd02d | 17587 | |
247f5006 VZ |
17588 | if test "${ac_cv_header_windows_h+set}" = set; then |
17589 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
17590 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
17591 | if test "${ac_cv_header_windows_h+set}" = set; then | |
17592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17593 | fi | |
17594 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
17595 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
21d1c967 | 17596 | else |
247f5006 VZ |
17597 | # Is the header compilable? |
17598 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
17599 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
17600 | cat >conftest.$ac_ext <<_ACEOF | |
17601 | #line $LINENO "configure" | |
90dd450c | 17602 | #include "confdefs.h" |
247f5006 | 17603 | $ac_includes_default |
21d1c967 | 17604 | #include <windows.h> |
247f5006 VZ |
17605 | _ACEOF |
17606 | rm -f conftest.$ac_objext | |
17607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17608 | (eval $ac_compile) 2>&5 | |
17609 | ac_status=$? | |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17611 | (exit $ac_status); } && | |
17612 | { ac_try='test -s conftest.$ac_objext' | |
17613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17614 | (eval $ac_try) 2>&5 | |
17615 | ac_status=$? | |
17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17617 | (exit $ac_status); }; }; then | |
17618 | ac_header_compiler=yes | |
17619 | else | |
17620 | echo "$as_me: failed program was:" >&5 | |
17621 | cat conftest.$ac_ext >&5 | |
17622 | ac_header_compiler=no | |
17623 | fi | |
17624 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17625 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17626 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17627 | ||
17628 | # Is the header present? | |
17629 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
17630 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
17631 | cat >conftest.$ac_ext <<_ACEOF | |
17632 | #line $LINENO "configure" | |
17633 | #include "confdefs.h" | |
17634 | #include <windows.h> | |
17635 | _ACEOF | |
17636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17638 | ac_status=$? | |
17639 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
17640 | rm -f conftest.er1 | |
17641 | cat conftest.err >&5 | |
17642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17643 | (exit $ac_status); } >/dev/null; then | |
17644 | if test -s conftest.err; then | |
17645 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17646 | else | |
17647 | ac_cpp_err= | |
17648 | fi | |
17649 | else | |
17650 | ac_cpp_err=yes | |
17651 | fi | |
17652 | if test -z "$ac_cpp_err"; then | |
17653 | ac_header_preproc=yes | |
17654 | else | |
17655 | echo "$as_me: failed program was:" >&5 | |
90dd450c | 17656 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
17657 | ac_header_preproc=no |
17658 | fi | |
17659 | rm -f conftest.err conftest.$ac_ext | |
17660 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17661 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17662 | ||
17663 | # So? What about this header? | |
17664 | case $ac_header_compiler:$ac_header_preproc in | |
17665 | yes:no ) | |
17666 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17667 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17668 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
17669 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;};; | |
17670 | no:yes ) | |
17671 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
17672 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
17673 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
17674 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
17675 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
17676 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;};; | |
17677 | esac | |
17678 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
17679 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
17680 | if test "${ac_cv_header_windows_h+set}" = set; then | |
17681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17682 | else | |
17683 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 17684 | fi |
247f5006 VZ |
17685 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
17686 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
17687 | ||
90dd450c | 17688 | fi |
247f5006 | 17689 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 17690 | : |
90dd450c | 17691 | else |
21d1c967 | 17692 | |
247f5006 VZ |
17693 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
17694 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
17695 | { (exit 1); exit 1; }; } | |
17696 | ||
5c6fa7d2 | 17697 | fi |
7b4a847f | 17698 | |
5c6fa7d2 | 17699 | |
247f5006 VZ |
17700 | |
17701 | echo "$as_me:$LINENO: checking if w32api has good enough MSIE support" >&5 | |
17702 | echo $ECHO_N "checking if w32api has good enough MSIE support... $ECHO_C" >&6 | |
17703 | if test "${wx_cv_w32api_win32_ie+set}" = set; then | |
17704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17705 | else |
247f5006 VZ |
17706 | |
17707 | cat >conftest.$ac_ext <<_ACEOF | |
17708 | #line $LINENO "configure" | |
f79bd02d | 17709 | #include "confdefs.h" |
21d1c967 | 17710 | #include <w32api.h> |
247f5006 VZ |
17711 | #ifdef F77_DUMMY_MAIN |
17712 | # ifdef __cplusplus | |
17713 | extern "C" | |
17714 | # endif | |
17715 | int F77_DUMMY_MAIN() { return 1; } | |
17716 | #endif | |
17717 | int | |
17718 | main () | |
17719 | { | |
f79bd02d | 17720 | |
21d1c967 GD |
17721 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
17722 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
17723 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
17724 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
17725 | ||
17726 | #if !wxCHECK_W32API_VERSION(1,1) | |
17727 | #error You need w32api 1.1 or newer | |
17728 | #endif | |
247f5006 VZ |
17729 | |
17730 | ; | |
17731 | return 0; | |
17732 | } | |
17733 | _ACEOF | |
17734 | rm -f conftest.$ac_objext | |
17735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17736 | (eval $ac_compile) 2>&5 | |
17737 | ac_status=$? | |
17738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17739 | (exit $ac_status); } && | |
17740 | { ac_try='test -s conftest.$ac_objext' | |
17741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17742 | (eval $ac_try) 2>&5 | |
17743 | ac_status=$? | |
17744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17745 | (exit $ac_status); }; }; then | |
17746 | ||
21d1c967 | 17747 | wx_cv_w32api_win32_ie=yes |
247f5006 | 17748 | |
f79bd02d | 17749 | else |
247f5006 VZ |
17750 | echo "$as_me: failed program was:" >&5 |
17751 | cat conftest.$ac_ext >&5 | |
17752 | ||
21d1c967 | 17753 | wx_cv_w32api_win32_ie=no |
247f5006 | 17754 | |
5c6fa7d2 | 17755 | fi |
247f5006 | 17756 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 17757 | |
247f5006 VZ |
17758 | fi |
17759 | echo "$as_me:$LINENO: result: $wx_cv_w32api_win32_ie" >&5 | |
17760 | echo "${ECHO_T}$wx_cv_w32api_win32_ie" >&6 | |
21d1c967 GD |
17761 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
17762 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
17763 | fi | |
f79bd02d | 17764 | |
21d1c967 GD |
17765 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
17766 | ||
17767 | case "${host}" in | |
17768 | *-*-cygwin* ) | |
17769 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
17770 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 17771 | esac |
f79bd02d | 17772 | |
21d1c967 GD |
17773 | if test "$wxUSE_ODBC" = "yes" ; then |
17774 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
17775 | fi | |
f79bd02d | 17776 | |
21d1c967 GD |
17777 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
17778 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 17779 | fi |
f79bd02d | 17780 | |
21d1c967 GD |
17781 | if test "$wxUSE_GUI" = "yes"; then |
17782 | USE_GUI=1 | |
f79bd02d | 17783 | |
21d1c967 | 17784 | GUI_TK_LIBRARY= |
f79bd02d | 17785 | |
21d1c967 GD |
17786 | WXGTK12= |
17787 | WXGTK127= | |
17788 | WXGTK20= | |
f79bd02d | 17789 | |
21d1c967 GD |
17790 | if test "$wxUSE_MSW" = 1 ; then |
17791 | TOOLKIT=MSW | |
17792 | GUIDIST=MSW_DIST | |
f79bd02d | 17793 | |
21d1c967 GD |
17794 | case "${host}" in |
17795 | *-*-mingw32* ) | |
17796 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
17797 | esac | |
f79bd02d JS |
17798 | fi |
17799 | ||
21d1c967 | 17800 | if test "$wxUSE_GTK" = 1; then |
247f5006 VZ |
17801 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
17802 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
17803 | |
17804 | gtk_version_cached=1 | |
247f5006 VZ |
17805 | if test "${wx_cv_lib_gtk+set}" = set; then |
17806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 17807 | else |
247f5006 | 17808 | |
21d1c967 | 17809 | gtk_version_cached=0 |
247f5006 VZ |
17810 | echo "$as_me:$LINENO: result: " >&5 |
17811 | echo "${ECHO_T}" >&6 | |
f79bd02d | 17812 | |
21d1c967 GD |
17813 | GTK_MODULES= |
17814 | if test "$wxUSE_THREADS" = "yes"; then | |
17815 | GTK_MODULES=gthread | |
17816 | fi | |
f79bd02d | 17817 | |
21d1c967 GD |
17818 | wx_cv_lib_gtk= |
17819 | if test "x$wxUSE_GTK2" = "xyes"; then | |
17820 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
17821 | if test "${enable_gtktest+set}" = set; then | |
17822 | enableval="$enable_gtktest" | |
247f5006 | 17823 | |
f79bd02d | 17824 | else |
21d1c967 | 17825 | enable_gtktest=yes |
247f5006 | 17826 | fi; |
f79bd02d | 17827 | |
21d1c967 GD |
17828 | pkg_config_args=gtk+-2.0 |
17829 | for module in . $GTK_MODULES | |
17830 | do | |
17831 | case "$module" in | |
247f5006 | 17832 | gthread) |
21d1c967 GD |
17833 | pkg_config_args="$pkg_config_args gthread-2.0" |
17834 | ;; | |
17835 | esac | |
17836 | done | |
17837 | ||
17838 | no_gtk="" | |
f79bd02d | 17839 | |
21d1c967 GD |
17840 | # Extract the first word of "pkg-config", so it can be a program name with args. |
17841 | set dummy pkg-config; ac_word=$2 | |
247f5006 VZ |
17842 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
17843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
17844 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
17845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 17846 | else |
247f5006 VZ |
17847 | case $PKG_CONFIG in |
17848 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
17849 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
17850 | ;; | |
21d1c967 | 17851 | *) |
247f5006 VZ |
17852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
17853 | for as_dir in $PATH | |
17854 | do | |
17855 | IFS=$as_save_IFS | |
17856 | test -z "$as_dir" && as_dir=. | |
17857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
17859 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
17860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
17861 | break 2 | |
17862 | fi | |
17863 | done | |
17864 | done | |
17865 | ||
21d1c967 GD |
17866 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
17867 | ;; | |
17868 | esac | |
f79bd02d | 17869 | fi |
247f5006 VZ |
17870 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
17871 | ||
21d1c967 | 17872 | if test -n "$PKG_CONFIG"; then |
247f5006 VZ |
17873 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
17874 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 17875 | else |
247f5006 VZ |
17876 | echo "$as_me:$LINENO: result: no" >&5 |
17877 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
17878 | fi |
17879 | ||
8284b0c5 | 17880 | |
21d1c967 GD |
17881 | if test x$PKG_CONFIG != xno ; then |
17882 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
17883 | : | |
17884 | else | |
17885 | echo *** pkg-config too old; version 0.7 or better required. | |
17886 | no_gtk=yes | |
17887 | PKG_CONFIG=no | |
17888 | fi | |
17889 | else | |
17890 | no_gtk=yes | |
17891 | fi | |
f79bd02d | 17892 | |
21d1c967 | 17893 | min_gtk_version=2.0.0 |
247f5006 VZ |
17894 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
17895 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 17896 | |
21d1c967 GD |
17897 | if test x$PKG_CONFIG != xno ; then |
17898 | ## don't try to run the test against uninstalled libtool libs | |
17899 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
17900 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
17901 | enable_gtktest=no | |
17902 | fi | |
f79bd02d | 17903 | |
21d1c967 GD |
17904 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
17905 | : | |
17906 | else | |
17907 | no_gtk=yes | |
17908 | fi | |
17909 | fi | |
f79bd02d | 17910 | |
21d1c967 GD |
17911 | if test x"$no_gtk" = x ; then |
17912 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
17913 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
17914 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
17915 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
17916 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
17917 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
17918 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
17919 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
17920 | if test "x$enable_gtktest" = "xyes" ; then | |
17921 | ac_save_CFLAGS="$CFLAGS" | |
17922 | ac_save_LIBS="$LIBS" | |
17923 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
17924 | LIBS="$GTK_LIBS $LIBS" | |
17925 | rm -f conf.gtktest | |
17926 | if test "$cross_compiling" = yes; then | |
17927 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 17928 | else |
247f5006 VZ |
17929 | cat >conftest.$ac_ext <<_ACEOF |
17930 | #line $LINENO "configure" | |
f79bd02d | 17931 | #include "confdefs.h" |
f79bd02d | 17932 | |
21d1c967 GD |
17933 | #include <gtk/gtk.h> |
17934 | #include <stdio.h> | |
17935 | #include <stdlib.h> | |
f79bd02d | 17936 | |
247f5006 | 17937 | int |
21d1c967 GD |
17938 | main () |
17939 | { | |
17940 | int major, minor, micro; | |
17941 | char *tmp_version; | |
f79bd02d | 17942 | |
21d1c967 | 17943 | system ("touch conf.gtktest"); |
f79bd02d | 17944 | |
21d1c967 GD |
17945 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
17946 | tmp_version = g_strdup("$min_gtk_version"); | |
17947 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
17948 | printf("%s, bad version string\n", "$min_gtk_version"); | |
17949 | exit(1); | |
17950 | } | |
f79bd02d | 17951 | |
21d1c967 GD |
17952 | if ((gtk_major_version != $gtk_config_major_version) || |
17953 | (gtk_minor_version != $gtk_config_minor_version) || | |
17954 | (gtk_micro_version != $gtk_config_micro_version)) | |
17955 | { | |
247f5006 | 17956 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
17957 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
17958 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
17959 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
17960 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
17961 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
17962 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
17963 | printf("*** required on your system.\n"); | |
17964 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
17965 | printf("*** to point to the correct configuration files\n"); | |
247f5006 | 17966 | } |
21d1c967 GD |
17967 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
17968 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
17969 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
17970 | { | |
17971 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
17972 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
17973 | printf("*** library (version %d.%d.%d)\n", | |
17974 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
17975 | } | |
17976 | else | |
17977 | { | |
17978 | if ((gtk_major_version > major) || | |
17979 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
17980 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
17981 | { | |
17982 | return 0; | |
17983 | } | |
17984 | else | |
17985 | { | |
17986 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
17987 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
17988 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
17989 | major, minor, micro); | |
17990 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
17991 | printf("***\n"); | |
17992 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
17993 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
17994 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
17995 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
17996 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
17997 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
17998 | printf("*** so that the correct libraries are found at run-time))\n"); | |
17999 | } | |
18000 | } | |
18001 | return 1; | |
18002 | } | |
f79bd02d | 18003 | |
247f5006 VZ |
18004 | _ACEOF |
18005 | rm -f conftest$ac_exeext | |
18006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18007 | (eval $ac_link) 2>&5 | |
18008 | ac_status=$? | |
18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18010 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18012 | (eval $ac_try) 2>&5 | |
18013 | ac_status=$? | |
18014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18015 | (exit $ac_status); }; }; then | |
21d1c967 | 18016 | : |
f79bd02d | 18017 | else |
247f5006 VZ |
18018 | echo "$as_me: program exited with status $ac_status" >&5 |
18019 | echo "$as_me: failed program was:" >&5 | |
18020 | cat conftest.$ac_ext >&5 | |
18021 | ( exit $ac_status ) | |
18022 | no_gtk=yes | |
f79bd02d | 18023 | fi |
247f5006 | 18024 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 18025 | fi |
21d1c967 GD |
18026 | CFLAGS="$ac_save_CFLAGS" |
18027 | LIBS="$ac_save_LIBS" | |
18028 | fi | |
18029 | fi | |
18030 | if test "x$no_gtk" = x ; then | |
247f5006 VZ |
18031 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
18032 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
18033 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 18034 | else |
247f5006 VZ |
18035 | echo "$as_me:$LINENO: result: no" >&5 |
18036 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
18037 | if test "$PKG_CONFIG" = "no" ; then |
18038 | echo "*** A new enough version of pkg-config was not found." | |
18039 | echo "*** See http://pkgconfig.sourceforge.net" | |
18040 | else | |
18041 | if test -f conf.gtktest ; then | |
18042 | : | |
18043 | else | |
18044 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
18045 | ac_save_CFLAGS="$CFLAGS" |
18046 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
18047 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
18048 | LIBS="$LIBS $GTK_LIBS" | |
247f5006 VZ |
18049 | cat >conftest.$ac_ext <<_ACEOF |
18050 | #line $LINENO "configure" | |
f79bd02d | 18051 | #include "confdefs.h" |
21d1c967 GD |
18052 | |
18053 | #include <gtk/gtk.h> | |
18054 | #include <stdio.h> | |
f79bd02d | 18055 | |
247f5006 VZ |
18056 | #ifdef F77_DUMMY_MAIN |
18057 | # ifdef __cplusplus | |
18058 | extern "C" | |
18059 | # endif | |
18060 | int F77_DUMMY_MAIN() { return 1; } | |
18061 | #endif | |
18062 | int | |
18063 | main () | |
18064 | { | |
18065 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
18066 | ; | |
18067 | return 0; | |
18068 | } | |
18069 | _ACEOF | |
18070 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18072 | (eval $ac_link) 2>&5 | |
18073 | ac_status=$? | |
18074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18075 | (exit $ac_status); } && | |
18076 | { ac_try='test -s conftest$ac_exeext' | |
18077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18078 | (eval $ac_try) 2>&5 | |
18079 | ac_status=$? | |
18080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18081 | (exit $ac_status); }; }; then | |
21d1c967 GD |
18082 | echo "*** The test program compiled, but did not run. This usually means" |
18083 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
18084 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
18085 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
18086 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
18087 | echo "*** is required on your system" | |
18088 | echo "***" | |
18089 | echo "*** If you have an old version installed, it is best to remove it, although" | |
247f5006 | 18090 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 18091 | else |
247f5006 VZ |
18092 | echo "$as_me: failed program was:" >&5 |
18093 | cat conftest.$ac_ext >&5 | |
18094 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 18095 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 18096 | fi |
247f5006 | 18097 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
18098 | CFLAGS="$ac_save_CFLAGS" |
18099 | LIBS="$ac_save_LIBS" | |
18100 | fi | |
18101 | fi | |
18102 | GTK_CFLAGS="" | |
18103 | GTK_LIBS="" | |
18104 | : | |
18105 | fi | |
247f5006 VZ |
18106 | |
18107 | ||
21d1c967 | 18108 | rm -f conf.gtktest |
f79bd02d | 18109 | |
21d1c967 | 18110 | fi |
f79bd02d | 18111 | |
21d1c967 | 18112 | if test -z "$wx_cv_lib_gtk"; then |
247f5006 VZ |
18113 | |
18114 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
18115 | if test "${with_gtk_prefix+set}" = set; then |
18116 | withval="$with_gtk_prefix" | |
18117 | gtk_config_prefix="$withval" | |
18118 | else | |
18119 | gtk_config_prefix="" | |
247f5006 | 18120 | fi; |
f79bd02d | 18121 | |
21d1c967 GD |
18122 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
18123 | if test "${with_gtk_exec_prefix+set}" = set; then | |
18124 | withval="$with_gtk_exec_prefix" | |
18125 | gtk_config_exec_prefix="$withval" | |
18126 | else | |
18127 | gtk_config_exec_prefix="" | |
247f5006 | 18128 | fi; |
21d1c967 GD |
18129 | # Check whether --enable-gtktest or --disable-gtktest was given. |
18130 | if test "${enable_gtktest+set}" = set; then | |
18131 | enableval="$enable_gtktest" | |
247f5006 | 18132 | |
21d1c967 GD |
18133 | else |
18134 | enable_gtktest=yes | |
247f5006 | 18135 | fi; |
21d1c967 GD |
18136 | |
18137 | for module in . $GTK_MODULES | |
18138 | do | |
18139 | case "$module" in | |
247f5006 | 18140 | gthread) |
21d1c967 GD |
18141 | gtk_config_args="$gtk_config_args gthread" |
18142 | ;; | |
18143 | esac | |
18144 | done | |
18145 | ||
18146 | if test x$gtk_config_exec_prefix != x ; then | |
18147 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
18148 | if test x${GTK_CONFIG+set} != xset ; then | |
18149 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
18150 | fi | |
18151 | fi | |
18152 | if test x$gtk_config_prefix != x ; then | |
18153 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
18154 | if test x${GTK_CONFIG+set} != xset ; then | |
18155 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
18156 | fi | |
18157 | fi | |
18158 | ||
18159 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
18160 | set dummy gtk-config; ac_word=$2 | |
247f5006 VZ |
18161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
18162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
18163 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
18164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18165 | else |
247f5006 VZ |
18166 | case $GTK_CONFIG in |
18167 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
18168 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
18169 | ;; | |
21d1c967 | 18170 | *) |
247f5006 VZ |
18171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
18172 | for as_dir in $PATH | |
18173 | do | |
18174 | IFS=$as_save_IFS | |
18175 | test -z "$as_dir" && as_dir=. | |
18176 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18177 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18178 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
18179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18180 | break 2 | |
18181 | fi | |
18182 | done | |
18183 | done | |
18184 | ||
21d1c967 GD |
18185 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
18186 | ;; | |
18187 | esac | |
18188 | fi | |
247f5006 VZ |
18189 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
18190 | ||
21d1c967 | 18191 | if test -n "$GTK_CONFIG"; then |
247f5006 VZ |
18192 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
18193 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 18194 | else |
247f5006 VZ |
18195 | echo "$as_me:$LINENO: result: no" >&5 |
18196 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
18197 | fi |
18198 | ||
18199 | min_gtk_version=1.2.7 | |
247f5006 VZ |
18200 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
18201 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
18202 | no_gtk="" |
18203 | if test "$GTK_CONFIG" = "no" ; then | |
18204 | no_gtk=yes | |
18205 | else | |
18206 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
18207 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
18208 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
18209 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
18210 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
18211 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
18212 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
18213 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
18214 | if test "x$enable_gtktest" = "xyes" ; then | |
18215 | ac_save_CFLAGS="$CFLAGS" | |
18216 | ac_save_LIBS="$LIBS" | |
18217 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
18218 | LIBS="$GTK_LIBS $LIBS" | |
18219 | rm -f conf.gtktest | |
18220 | if test "$cross_compiling" = yes; then | |
18221 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 18222 | else |
247f5006 VZ |
18223 | cat >conftest.$ac_ext <<_ACEOF |
18224 | #line $LINENO "configure" | |
f79bd02d JS |
18225 | #include "confdefs.h" |
18226 | ||
21d1c967 GD |
18227 | #include <gtk/gtk.h> |
18228 | #include <stdio.h> | |
18229 | #include <stdlib.h> | |
f79bd02d | 18230 | |
247f5006 | 18231 | int |
21d1c967 GD |
18232 | main () |
18233 | { | |
18234 | int major, minor, micro; | |
18235 | char *tmp_version; | |
18236 | ||
18237 | system ("touch conf.gtktest"); | |
18238 | ||
18239 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
18240 | tmp_version = g_strdup("$min_gtk_version"); | |
18241 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
18242 | printf("%s, bad version string\n", "$min_gtk_version"); | |
18243 | exit(1); | |
18244 | } | |
90dd450c | 18245 | |
21d1c967 GD |
18246 | if ((gtk_major_version != $gtk_config_major_version) || |
18247 | (gtk_minor_version != $gtk_config_minor_version) || | |
18248 | (gtk_micro_version != $gtk_config_micro_version)) | |
18249 | { | |
247f5006 | 18250 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
18251 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
18252 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
18253 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
18254 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
18255 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
18256 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
18257 | printf("*** required on your system.\n"); | |
18258 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
18259 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
18260 | printf("*** before re-running configure\n"); | |
247f5006 | 18261 | } |
21d1c967 GD |
18262 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
18263 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
18264 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
18265 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
18266 | { | |
18267 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
18268 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
18269 | printf("*** library (version %d.%d.%d)\n", | |
18270 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
18271 | } | |
18272 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
18273 | else | |
18274 | { | |
18275 | if ((gtk_major_version > major) || | |
18276 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
18277 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
18278 | { | |
18279 | return 0; | |
18280 | } | |
18281 | else | |
18282 | { | |
18283 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
18284 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
18285 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
18286 | major, minor, micro); | |
18287 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
18288 | printf("***\n"); | |
18289 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
18290 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
18291 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
18292 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
18293 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
18294 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
18295 | printf("*** so that the correct libraries are found at run-time))\n"); | |
18296 | } | |
18297 | } | |
18298 | return 1; | |
18299 | } | |
18300 | ||
247f5006 VZ |
18301 | _ACEOF |
18302 | rm -f conftest$ac_exeext | |
18303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18304 | (eval $ac_link) 2>&5 | |
18305 | ac_status=$? | |
18306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18307 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18309 | (eval $ac_try) 2>&5 | |
18310 | ac_status=$? | |
18311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18312 | (exit $ac_status); }; }; then | |
21d1c967 GD |
18313 | : |
18314 | else | |
247f5006 VZ |
18315 | echo "$as_me: program exited with status $ac_status" >&5 |
18316 | echo "$as_me: failed program was:" >&5 | |
18317 | cat conftest.$ac_ext >&5 | |
18318 | ( exit $ac_status ) | |
18319 | no_gtk=yes | |
21d1c967 | 18320 | fi |
247f5006 | 18321 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 18322 | fi |
21d1c967 GD |
18323 | CFLAGS="$ac_save_CFLAGS" |
18324 | LIBS="$ac_save_LIBS" | |
18325 | fi | |
18326 | fi | |
18327 | if test "x$no_gtk" = x ; then | |
247f5006 VZ |
18328 | echo "$as_me:$LINENO: result: yes" >&5 |
18329 | echo "${ECHO_T}yes" >&6 | |
18330 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 18331 | else |
247f5006 VZ |
18332 | echo "$as_me:$LINENO: result: no" >&5 |
18333 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
18334 | if test "$GTK_CONFIG" = "no" ; then |
18335 | echo "*** The gtk-config script installed by GTK could not be found" | |
18336 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
18337 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
18338 | echo "*** full path to gtk-config." | |
18339 | else | |
18340 | if test -f conf.gtktest ; then | |
18341 | : | |
18342 | else | |
18343 | echo "*** Could not run GTK test program, checking why..." | |
18344 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
18345 | LIBS="$LIBS $GTK_LIBS" | |
247f5006 VZ |
18346 | cat >conftest.$ac_ext <<_ACEOF |
18347 | #line $LINENO "configure" | |
21d1c967 GD |
18348 | #include "confdefs.h" |
18349 | ||
18350 | #include <gtk/gtk.h> | |
18351 | #include <stdio.h> | |
18352 | ||
247f5006 VZ |
18353 | #ifdef F77_DUMMY_MAIN |
18354 | # ifdef __cplusplus | |
18355 | extern "C" | |
18356 | # endif | |
18357 | int F77_DUMMY_MAIN() { return 1; } | |
18358 | #endif | |
18359 | int | |
18360 | main () | |
18361 | { | |
18362 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
18363 | ; | |
18364 | return 0; | |
18365 | } | |
18366 | _ACEOF | |
18367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18369 | (eval $ac_link) 2>&5 | |
18370 | ac_status=$? | |
18371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18372 | (exit $ac_status); } && | |
18373 | { ac_try='test -s conftest$ac_exeext' | |
18374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18375 | (eval $ac_try) 2>&5 | |
18376 | ac_status=$? | |
18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18378 | (exit $ac_status); }; }; then | |
21d1c967 GD |
18379 | echo "*** The test program compiled, but did not run. This usually means" |
18380 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
18381 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
18382 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
18383 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
18384 | echo "*** is required on your system" | |
18385 | echo "***" | |
18386 | echo "*** If you have an old version installed, it is best to remove it, although" | |
18387 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
18388 | echo "***" | |
18389 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
18390 | echo "*** came with the system with the command" | |
18391 | echo "***" | |
247f5006 | 18392 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 18393 | else |
247f5006 VZ |
18394 | echo "$as_me: failed program was:" >&5 |
18395 | cat conftest.$ac_ext >&5 | |
18396 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
18397 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
18398 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
247f5006 | 18399 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 18400 | fi |
247f5006 | 18401 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
18402 | CFLAGS="$ac_save_CFLAGS" |
18403 | LIBS="$ac_save_LIBS" | |
18404 | fi | |
18405 | fi | |
18406 | GTK_CFLAGS="" | |
18407 | GTK_LIBS="" | |
18408 | : | |
18409 | fi | |
247f5006 VZ |
18410 | |
18411 | ||
21d1c967 GD |
18412 | rm -f conf.gtktest |
18413 | ||
18414 | fi | |
18415 | ||
18416 | if test -z "$wx_cv_lib_gtk"; then | |
247f5006 VZ |
18417 | |
18418 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
18419 | if test "${with_gtk_prefix+set}" = set; then |
18420 | withval="$with_gtk_prefix" | |
18421 | gtk_config_prefix="$withval" | |
18422 | else | |
18423 | gtk_config_prefix="" | |
247f5006 | 18424 | fi; |
f79bd02d | 18425 | |
21d1c967 GD |
18426 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
18427 | if test "${with_gtk_exec_prefix+set}" = set; then | |
18428 | withval="$with_gtk_exec_prefix" | |
18429 | gtk_config_exec_prefix="$withval" | |
18430 | else | |
18431 | gtk_config_exec_prefix="" | |
247f5006 | 18432 | fi; |
21d1c967 GD |
18433 | # Check whether --enable-gtktest or --disable-gtktest was given. |
18434 | if test "${enable_gtktest+set}" = set; then | |
18435 | enableval="$enable_gtktest" | |
247f5006 | 18436 | |
90dd450c | 18437 | else |
21d1c967 | 18438 | enable_gtktest=yes |
247f5006 | 18439 | fi; |
21d1c967 GD |
18440 | |
18441 | for module in . $GTK_MODULES | |
18442 | do | |
18443 | case "$module" in | |
247f5006 | 18444 | gthread) |
21d1c967 GD |
18445 | gtk_config_args="$gtk_config_args gthread" |
18446 | ;; | |
18447 | esac | |
18448 | done | |
18449 | ||
18450 | if test x$gtk_config_exec_prefix != x ; then | |
18451 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
18452 | if test x${GTK_CONFIG+set} != xset ; then | |
18453 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
18454 | fi | |
18455 | fi | |
18456 | if test x$gtk_config_prefix != x ; then | |
18457 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
18458 | if test x${GTK_CONFIG+set} != xset ; then | |
18459 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
18460 | fi | |
18461 | fi | |
18462 | ||
18463 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
18464 | set dummy gtk-config; ac_word=$2 | |
247f5006 VZ |
18465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
18466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
18467 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
18468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 18469 | else |
247f5006 VZ |
18470 | case $GTK_CONFIG in |
18471 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
18472 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
18473 | ;; | |
21d1c967 | 18474 | *) |
247f5006 VZ |
18475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
18476 | for as_dir in $PATH | |
18477 | do | |
18478 | IFS=$as_save_IFS | |
18479 | test -z "$as_dir" && as_dir=. | |
18480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18481 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18482 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
18483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18484 | break 2 | |
18485 | fi | |
18486 | done | |
18487 | done | |
18488 | ||
21d1c967 GD |
18489 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
18490 | ;; | |
18491 | esac | |
18492 | fi | |
247f5006 VZ |
18493 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
18494 | ||
21d1c967 | 18495 | if test -n "$GTK_CONFIG"; then |
247f5006 VZ |
18496 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
18497 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 18498 | else |
247f5006 VZ |
18499 | echo "$as_me:$LINENO: result: no" >&5 |
18500 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
18501 | fi |
18502 | ||
18503 | min_gtk_version=1.2.3 | |
247f5006 VZ |
18504 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
18505 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
18506 | no_gtk="" |
18507 | if test "$GTK_CONFIG" = "no" ; then | |
18508 | no_gtk=yes | |
18509 | else | |
18510 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
18511 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
18512 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
18513 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
18514 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
18515 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
18516 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
18517 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
18518 | if test "x$enable_gtktest" = "xyes" ; then | |
18519 | ac_save_CFLAGS="$CFLAGS" | |
18520 | ac_save_LIBS="$LIBS" | |
18521 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
18522 | LIBS="$GTK_LIBS $LIBS" | |
18523 | rm -f conf.gtktest | |
18524 | if test "$cross_compiling" = yes; then | |
18525 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
18526 | else | |
247f5006 VZ |
18527 | cat >conftest.$ac_ext <<_ACEOF |
18528 | #line $LINENO "configure" | |
f79bd02d | 18529 | #include "confdefs.h" |
21d1c967 GD |
18530 | |
18531 | #include <gtk/gtk.h> | |
18532 | #include <stdio.h> | |
18533 | #include <stdlib.h> | |
18534 | ||
247f5006 | 18535 | int |
21d1c967 GD |
18536 | main () |
18537 | { | |
18538 | int major, minor, micro; | |
18539 | char *tmp_version; | |
18540 | ||
18541 | system ("touch conf.gtktest"); | |
18542 | ||
18543 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
18544 | tmp_version = g_strdup("$min_gtk_version"); | |
18545 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
18546 | printf("%s, bad version string\n", "$min_gtk_version"); | |
18547 | exit(1); | |
18548 | } | |
18549 | ||
18550 | if ((gtk_major_version != $gtk_config_major_version) || | |
18551 | (gtk_minor_version != $gtk_config_minor_version) || | |
18552 | (gtk_micro_version != $gtk_config_micro_version)) | |
18553 | { | |
247f5006 | 18554 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
18555 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
18556 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
18557 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
18558 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
18559 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
18560 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
18561 | printf("*** required on your system.\n"); | |
18562 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
18563 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
18564 | printf("*** before re-running configure\n"); | |
247f5006 | 18565 | } |
21d1c967 GD |
18566 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
18567 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
18568 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
18569 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
18570 | { | |
18571 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
18572 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
18573 | printf("*** library (version %d.%d.%d)\n", | |
18574 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
18575 | } | |
18576 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
18577 | else | |
18578 | { | |
18579 | if ((gtk_major_version > major) || | |
18580 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
18581 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
18582 | { | |
18583 | return 0; | |
18584 | } | |
18585 | else | |
18586 | { | |
18587 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
18588 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
18589 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
18590 | major, minor, micro); | |
18591 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
18592 | printf("***\n"); | |
18593 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
18594 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
18595 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
18596 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
18597 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
18598 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
18599 | printf("*** so that the correct libraries are found at run-time))\n"); | |
18600 | } | |
18601 | } | |
18602 | return 1; | |
18603 | } | |
18604 | ||
247f5006 VZ |
18605 | _ACEOF |
18606 | rm -f conftest$ac_exeext | |
18607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18608 | (eval $ac_link) 2>&5 | |
18609 | ac_status=$? | |
18610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18611 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18613 | (eval $ac_try) 2>&5 | |
18614 | ac_status=$? | |
18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18616 | (exit $ac_status); }; }; then | |
21d1c967 GD |
18617 | : |
18618 | else | |
247f5006 VZ |
18619 | echo "$as_me: program exited with status $ac_status" >&5 |
18620 | echo "$as_me: failed program was:" >&5 | |
18621 | cat conftest.$ac_ext >&5 | |
18622 | ( exit $ac_status ) | |
18623 | no_gtk=yes | |
21d1c967 | 18624 | fi |
247f5006 | 18625 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 18626 | fi |
21d1c967 GD |
18627 | CFLAGS="$ac_save_CFLAGS" |
18628 | LIBS="$ac_save_LIBS" | |
18629 | fi | |
18630 | fi | |
18631 | if test "x$no_gtk" = x ; then | |
247f5006 VZ |
18632 | echo "$as_me:$LINENO: result: yes" >&5 |
18633 | echo "${ECHO_T}yes" >&6 | |
18634 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 18635 | else |
247f5006 VZ |
18636 | echo "$as_me:$LINENO: result: no" >&5 |
18637 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
18638 | if test "$GTK_CONFIG" = "no" ; then |
18639 | echo "*** The gtk-config script installed by GTK could not be found" | |
18640 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
18641 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
18642 | echo "*** full path to gtk-config." | |
18643 | else | |
18644 | if test -f conf.gtktest ; then | |
18645 | : | |
18646 | else | |
18647 | echo "*** Could not run GTK test program, checking why..." | |
18648 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
18649 | LIBS="$LIBS $GTK_LIBS" | |
247f5006 VZ |
18650 | cat >conftest.$ac_ext <<_ACEOF |
18651 | #line $LINENO "configure" | |
21d1c967 GD |
18652 | #include "confdefs.h" |
18653 | ||
18654 | #include <gtk/gtk.h> | |
18655 | #include <stdio.h> | |
f79bd02d | 18656 | |
247f5006 VZ |
18657 | #ifdef F77_DUMMY_MAIN |
18658 | # ifdef __cplusplus | |
18659 | extern "C" | |
18660 | # endif | |
18661 | int F77_DUMMY_MAIN() { return 1; } | |
18662 | #endif | |
18663 | int | |
18664 | main () | |
18665 | { | |
18666 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
18667 | ; | |
18668 | return 0; | |
18669 | } | |
18670 | _ACEOF | |
18671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18673 | (eval $ac_link) 2>&5 | |
18674 | ac_status=$? | |
18675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18676 | (exit $ac_status); } && | |
18677 | { ac_try='test -s conftest$ac_exeext' | |
18678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18679 | (eval $ac_try) 2>&5 | |
18680 | ac_status=$? | |
18681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18682 | (exit $ac_status); }; }; then | |
21d1c967 GD |
18683 | echo "*** The test program compiled, but did not run. This usually means" |
18684 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
18685 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
18686 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
18687 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
18688 | echo "*** is required on your system" | |
18689 | echo "***" | |
18690 | echo "*** If you have an old version installed, it is best to remove it, although" | |
18691 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
18692 | echo "***" | |
18693 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
18694 | echo "*** came with the system with the command" | |
18695 | echo "***" | |
247f5006 | 18696 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 18697 | else |
247f5006 VZ |
18698 | echo "$as_me: failed program was:" >&5 |
18699 | cat conftest.$ac_ext >&5 | |
18700 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
18701 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
18702 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
247f5006 | 18703 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 18704 | fi |
247f5006 | 18705 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
18706 | CFLAGS="$ac_save_CFLAGS" |
18707 | LIBS="$ac_save_LIBS" | |
18708 | fi | |
18709 | fi | |
18710 | GTK_CFLAGS="" | |
18711 | GTK_LIBS="" | |
18712 | : | |
18713 | fi | |
247f5006 VZ |
18714 | |
18715 | ||
21d1c967 | 18716 | rm -f conf.gtktest |
f79bd02d | 18717 | |
21d1c967 GD |
18718 | fi |
18719 | ||
18720 | if test -z "$wx_cv_lib_gtk"; then | |
18721 | wx_cv_lib_gtk=none | |
18722 | else | |
18723 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
18724 | wx_cv_libs_gtk=$GTK_LIBS | |
18725 | fi | |
247f5006 VZ |
18726 | |
18727 | ||
5c6fa7d2 | 18728 | fi |
52127426 | 18729 | |
8284b0c5 | 18730 | |
21d1c967 | 18731 | if test "$gtk_version_cached" = 1; then |
247f5006 VZ |
18732 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
18733 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
18734 | fi |
18735 | ||
18736 | case "$wx_cv_lib_gtk" in | |
18737 | 2.0) WXGTK20=1 | |
18738 | ;; | |
18739 | 1.2.7) WXGTK127=1 | |
18740 | WXGTK12=1 | |
18741 | ;; | |
18742 | 1.2.3) WXGTK12=1 | |
18743 | ;; | |
247f5006 VZ |
18744 | *) { { echo "$as_me:$LINENO: error: |
18745 | Please check that gtk-config is in path, the directory | |
18746 | where GTK+ libraries are installed (returned by | |
18747 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
18748 | equivalent variable and GTK+ is version 1.2.3 or above. | |
18749 | " >&5 | |
18750 | echo "$as_me: error: | |
328a083c RR |
18751 | Please check that gtk-config is in path, the directory |
18752 | where GTK+ libraries are installed (returned by | |
18753 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
18754 | equivalent variable and GTK+ is version 1.2.3 or above. | |
247f5006 VZ |
18755 | " >&2;} |
18756 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
18757 | ;; |
18758 | esac | |
18759 | ||
b13cd66e VZ |
18760 | if test "$WXGTK20" = 1; then |
18761 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
247f5006 | 18762 | |
f09359cf VS |
18763 | succeeded=no |
18764 | ||
18765 | if test -z "$PKG_CONFIG"; then | |
18766 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
18767 | set dummy pkg-config; ac_word=$2 | |
247f5006 VZ |
18768 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
18769 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
18770 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
18771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 18772 | else |
247f5006 VZ |
18773 | case $PKG_CONFIG in |
18774 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
18775 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
18776 | ;; | |
f09359cf | 18777 | *) |
247f5006 VZ |
18778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
18779 | for as_dir in $PATH | |
18780 | do | |
18781 | IFS=$as_save_IFS | |
18782 | test -z "$as_dir" && as_dir=. | |
18783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
18785 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
18786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18787 | break 2 | |
18788 | fi | |
18789 | done | |
18790 | done | |
18791 | ||
f09359cf VS |
18792 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
18793 | ;; | |
18794 | esac | |
18795 | fi | |
247f5006 VZ |
18796 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
18797 | ||
f09359cf | 18798 | if test -n "$PKG_CONFIG"; then |
247f5006 VZ |
18799 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
18800 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 18801 | else |
247f5006 VZ |
18802 | echo "$as_me:$LINENO: result: no" >&5 |
18803 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
18804 | fi |
18805 | ||
18806 | fi | |
18807 | ||
18808 | if test "$PKG_CONFIG" = "no" ; then | |
18809 | echo "*** The pkg-config script could not be found. Make sure it is" | |
18810 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
18811 | echo "*** to the full path to pkg-config." | |
18812 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
18813 | else | |
18814 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
18815 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
247f5006 VZ |
18816 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
18817 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
18818 | |
18819 | if $PKG_CONFIG --exists "pangoft2" ; then | |
247f5006 VZ |
18820 | echo "$as_me:$LINENO: result: yes" >&5 |
18821 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
18822 | succeeded=yes |
18823 | ||
247f5006 VZ |
18824 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
18825 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 18826 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
247f5006 VZ |
18827 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
18828 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 18829 | |
247f5006 VZ |
18830 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
18831 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 18832 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
247f5006 VZ |
18833 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
18834 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
18835 | else |
18836 | PANGOFT2_CFLAGS="" | |
18837 | PANGOFT2_LIBS="" | |
247f5006 | 18838 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
18839 | ## do set a variable so people can do so. |
18840 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
247f5006 | 18841 | |
f09359cf VS |
18842 | fi |
18843 | ||
247f5006 VZ |
18844 | |
18845 | ||
f09359cf VS |
18846 | else |
18847 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
18848 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
18849 | fi | |
18850 | fi | |
18851 | ||
18852 | if test $succeeded = yes; then | |
247f5006 | 18853 | |
b13cd66e VZ |
18854 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
18855 | LIBS="$LIBS $PANGOFT2_LIBS" | |
247f5006 | 18856 | |
f09359cf | 18857 | else |
247f5006 VZ |
18858 | |
18859 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
18860 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 18861 | wxUSE_PRINTING_ARCHITECTURE="no" |
247f5006 VZ |
18862 | |
18863 | ||
f09359cf VS |
18864 | fi |
18865 | ||
b13cd66e | 18866 | fi |
f09359cf VS |
18867 | fi |
18868 | ||
21d1c967 GD |
18869 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
18870 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
18871 | ||
18872 | AFMINSTALL=afminstall | |
18873 | TOOLKIT=GTK | |
18874 | GUIDIST=GTK_DIST | |
18875 | ||
247f5006 VZ |
18876 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
18877 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
18878 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
18879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 18880 | else |
247f5006 | 18881 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18882 | LIBS="-lgdk $LIBS" |
247f5006 VZ |
18883 | cat >conftest.$ac_ext <<_ACEOF |
18884 | #line $LINENO "configure" | |
90dd450c | 18885 | #include "confdefs.h" |
247f5006 | 18886 | |
5c6fa7d2 | 18887 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
18888 | #ifdef __cplusplus |
18889 | extern "C" | |
18890 | #endif | |
5c6fa7d2 | 18891 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
18892 | builtin and then its argument prototype would still apply. */ |
18893 | char gdk_im_open (); | |
18894 | #ifdef F77_DUMMY_MAIN | |
18895 | # ifdef __cplusplus | |
18896 | extern "C" | |
18897 | # endif | |
18898 | int F77_DUMMY_MAIN() { return 1; } | |
18899 | #endif | |
18900 | int | |
18901 | main () | |
18902 | { | |
18903 | gdk_im_open (); | |
18904 | ; | |
18905 | return 0; | |
18906 | } | |
18907 | _ACEOF | |
18908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18910 | (eval $ac_link) 2>&5 | |
18911 | ac_status=$? | |
18912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18913 | (exit $ac_status); } && | |
18914 | { ac_try='test -s conftest$ac_exeext' | |
18915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18916 | (eval $ac_try) 2>&5 | |
18917 | ac_status=$? | |
18918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18919 | (exit $ac_status); }; }; then | |
18920 | ac_cv_lib_gdk_gdk_im_open=yes | |
18921 | else | |
18922 | echo "$as_me: failed program was:" >&5 | |
18923 | cat conftest.$ac_ext >&5 | |
18924 | ac_cv_lib_gdk_gdk_im_open=no | |
18925 | fi | |
18926 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18927 | LIBS=$ac_check_lib_save_LIBS | |
18928 | fi | |
18929 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
18930 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
18931 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
18932 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 18933 | #define HAVE_XIM 1 |
247f5006 | 18934 | _ACEOF |
21d1c967 | 18935 | |
90dd450c | 18936 | fi |
1e6feb95 | 18937 | |
21d1c967 | 18938 | fi |
1e6feb95 | 18939 | |
21d1c967 | 18940 | if test "$wxUSE_MGL" = 1; then |
247f5006 VZ |
18941 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
18942 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 18943 | if test "x$MGL_ROOT" = x ; then |
247f5006 VZ |
18944 | echo "$as_me:$LINENO: result: not found" >&5 |
18945 | echo "${ECHO_T}not found" >&6 | |
18946 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
18947 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
18948 | { (exit 1); exit 1; }; } | |
21d1c967 | 18949 | else |
247f5006 VZ |
18950 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
18951 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
18952 | fi |
18953 | ||
18954 | case "${host}" in | |
18955 | *-*-linux* ) | |
18956 | mgl_os=linux/gcc/glibc | |
18957 | ;; | |
18958 | *-pc-msdosdjgpp ) | |
18959 | mgl_os=dos32/dj2 | |
18960 | ;; | |
18961 | *) | |
247f5006 VZ |
18962 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
18963 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
18964 | { (exit 1); exit 1; }; } | |
21d1c967 | 18965 | esac |
1e6feb95 | 18966 | |
21d1c967 | 18967 | mgl_lib_type="" |
3fcdd07b | 18968 | |
21d1c967 GD |
18969 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
18970 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
18971 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
18972 | mgl_lib_type=debug | |
18973 | fi | |
18974 | fi | |
18975 | if test "x$mgl_lib_type" = x ; then | |
18976 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
18977 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
18978 | mgl_lib_type=release | |
18979 | else | |
247f5006 VZ |
18980 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 |
18981 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
18982 | { (exit 1); exit 1; }; } | |
21d1c967 | 18983 | fi |
90dd450c | 18984 | fi |
2224580a | 18985 | |
1d1b75ac VZ |
18986 | wxUSE_UNIVERSAL="yes" |
18987 | ||
21d1c967 GD |
18988 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
18989 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
18990 | ||
90dd450c | 18991 | AFMINSTALL=afminstall |
21d1c967 GD |
18992 | TOOLKIT=MGL |
18993 | GUIDIST=MGL_DIST | |
18994 | fi | |
dad6c0ea | 18995 | |
21d1c967 | 18996 | if test "$wxUSE_MICROWIN" = 1; then |
247f5006 VZ |
18997 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
18998 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 18999 | if test "x$MICROWINDOWS" = x ; then |
247f5006 VZ |
19000 | echo "$as_me:$LINENO: result: not found" >&5 |
19001 | echo "${ECHO_T}not found" >&6 | |
19002 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
19003 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
19004 | { (exit 1); exit 1; }; } | |
21d1c967 | 19005 | else |
247f5006 VZ |
19006 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
19007 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 19008 | fi |
f6bcfd97 | 19009 | |
21d1c967 | 19010 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
247f5006 VZ |
19011 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
19012 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 19013 | else |
247f5006 VZ |
19014 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
19015 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
19016 | { (exit 1); exit 1; }; } | |
90dd450c | 19017 | fi |
0b2effe9 | 19018 | |
21d1c967 GD |
19019 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
19020 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
19021 | ||
1d1b75ac VZ |
19022 | wxUSE_UNIVERSAL="yes" |
19023 | ||
21d1c967 GD |
19024 | AFMINSTALL=afminstall |
19025 | TOOLKIT=MICROWIN | |
19026 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
19027 | |
19028 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 19029 | fi |
f6bcfd97 | 19030 | |
21d1c967 | 19031 | if test "$wxUSE_X11" = 1; then |
247f5006 VZ |
19032 | echo "$as_me:$LINENO: checking for X" >&5 |
19033 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
19034 | ||
d8356fa3 | 19035 | |
21d1c967 GD |
19036 | # Check whether --with-x or --without-x was given. |
19037 | if test "${with_x+set}" = set; then | |
19038 | withval="$with_x" | |
2224580a | 19039 | |
247f5006 | 19040 | fi; |
21d1c967 GD |
19041 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
19042 | if test "x$with_x" = xno; then | |
19043 | # The user explicitly disabled X. | |
19044 | have_x=disabled | |
19045 | else | |
19046 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
19047 | # Both variables are already set. | |
19048 | have_x=yes | |
19049 | else | |
247f5006 VZ |
19050 | if test "${ac_cv_have_x+set}" = set; then |
19051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
19052 | else |
19053 | # One or both of the vars are not set, and there is no cached value. | |
247f5006 VZ |
19054 | ac_x_includes=no ac_x_libraries=no |
19055 | rm -fr conftest.dir | |
19056 | if mkdir conftest.dir; then | |
19057 | cd conftest.dir | |
21d1c967 | 19058 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
247f5006 | 19059 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
19060 | acfindx: |
19061 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
247f5006 | 19062 | _ACEOF |
21d1c967 GD |
19063 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
19064 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
19065 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
19066 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
19067 | for ac_extension in a so sl; do | |
19068 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
247f5006 | 19069 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
19070 | ac_im_usrlibdir=$ac_im_libdir; break |
19071 | fi | |
19072 | done | |
19073 | # Screen out bogus values from the imake configuration. They are | |
19074 | # bogus both because they are the default anyway, and because | |
19075 | # using them would break gcc on systems where it needs fixed includes. | |
247f5006 | 19076 | case $ac_im_incroot in |
21d1c967 | 19077 | /usr/include) ;; |
247f5006 | 19078 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 19079 | esac |
247f5006 | 19080 | case $ac_im_usrlibdir in |
21d1c967 | 19081 | /usr/lib | /lib) ;; |
247f5006 | 19082 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
19083 | esac |
19084 | fi | |
19085 | cd .. | |
247f5006 | 19086 | rm -fr conftest.dir |
21d1c967 | 19087 | fi |
10f2d63a | 19088 | |
247f5006 VZ |
19089 | # Standard set of common directories for X headers. |
19090 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
19091 | ac_x_header_dirs=' | |
19092 | /usr/X11/include | |
19093 | /usr/X11R6/include | |
19094 | /usr/X11R5/include | |
19095 | /usr/X11R4/include | |
19096 | ||
19097 | /usr/include/X11 | |
19098 | /usr/include/X11R6 | |
19099 | /usr/include/X11R5 | |
19100 | /usr/include/X11R4 | |
19101 | ||
19102 | /usr/local/X11/include | |
19103 | /usr/local/X11R6/include | |
19104 | /usr/local/X11R5/include | |
19105 | /usr/local/X11R4/include | |
19106 | ||
19107 | /usr/local/include/X11 | |
19108 | /usr/local/include/X11R6 | |
19109 | /usr/local/include/X11R5 | |
19110 | /usr/local/include/X11R4 | |
19111 | ||
19112 | /usr/X386/include | |
19113 | /usr/x386/include | |
19114 | /usr/XFree86/include/X11 | |
19115 | ||
19116 | /usr/include | |
19117 | /usr/local/include | |
19118 | /usr/unsupported/include | |
19119 | /usr/athena/include | |
19120 | /usr/local/x11r5/include | |
19121 | /usr/lpp/Xamples/include | |
19122 | ||
19123 | /usr/openwin/include | |
19124 | /usr/openwin/share/include' | |
19125 | ||
19126 | if test "$ac_x_includes" = no; then | |
19127 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 19128 | # First, try using that file with no special directory specified. |
247f5006 VZ |
19129 | cat >conftest.$ac_ext <<_ACEOF |
19130 | #line $LINENO "configure" | |
21d1c967 | 19131 | #include "confdefs.h" |
247f5006 VZ |
19132 | #include <X11/Intrinsic.h> |
19133 | _ACEOF | |
19134 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19135 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19136 | ac_status=$? | |
19137 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
19138 | rm -f conftest.er1 | |
19139 | cat conftest.err >&5 | |
19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19141 | (exit $ac_status); } >/dev/null; then | |
19142 | if test -s conftest.err; then | |
19143 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19144 | else | |
19145 | ac_cpp_err= | |
19146 | fi | |
19147 | else | |
19148 | ac_cpp_err=yes | |
19149 | fi | |
19150 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
19151 | # We can compile using X headers with no special include directory. |
19152 | ac_x_includes= | |
90dd450c | 19153 | else |
247f5006 | 19154 | echo "$as_me: failed program was:" >&5 |
90dd450c | 19155 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
19156 | for ac_dir in $ac_x_header_dirs; do |
19157 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
19158 | ac_x_includes=$ac_dir | |
19159 | break | |
19160 | fi | |
19161 | done | |
3a922bb4 | 19162 | fi |
247f5006 VZ |
19163 | rm -f conftest.err conftest.$ac_ext |
19164 | fi # $ac_x_includes = no | |
10f2d63a | 19165 | |
247f5006 | 19166 | if test "$ac_x_libraries" = no; then |
21d1c967 | 19167 | # Check for the libraries. |
21d1c967 GD |
19168 | # See if we find them without any special options. |
19169 | # Don't add to $LIBS permanently. | |
247f5006 VZ |
19170 | ac_save_LIBS=$LIBS |
19171 | LIBS="-lXt $LIBS" | |
19172 | cat >conftest.$ac_ext <<_ACEOF | |
19173 | #line $LINENO "configure" | |
3a922bb4 | 19174 | #include "confdefs.h" |
247f5006 VZ |
19175 | #include <X11/Intrinsic.h> |
19176 | #ifdef F77_DUMMY_MAIN | |
19177 | # ifdef __cplusplus | |
19178 | extern "C" | |
19179 | # endif | |
19180 | int F77_DUMMY_MAIN() { return 1; } | |
19181 | #endif | |
19182 | int | |
19183 | main () | |
19184 | { | |
19185 | XtMalloc (0) | |
19186 | ; | |
19187 | return 0; | |
19188 | } | |
19189 | _ACEOF | |
19190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19192 | (eval $ac_link) 2>&5 | |
19193 | ac_status=$? | |
19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19195 | (exit $ac_status); } && | |
19196 | { ac_try='test -s conftest$ac_exeext' | |
19197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19198 | (eval $ac_try) 2>&5 | |
19199 | ac_status=$? | |
19200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19201 | (exit $ac_status); }; }; then | |
19202 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
19203 | # We can link X programs with no special library path. |
19204 | ac_x_libraries= | |
3a922bb4 | 19205 | else |
247f5006 VZ |
19206 | echo "$as_me: failed program was:" >&5 |
19207 | cat conftest.$ac_ext >&5 | |
19208 | LIBS=$ac_save_LIBS | |
19209 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 19210 | do |
247f5006 | 19211 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 19212 | for ac_extension in a so sl; do |
247f5006 | 19213 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
19214 | ac_x_libraries=$ac_dir |
19215 | break 2 | |
19216 | fi | |
19217 | done | |
19218 | done | |
3a922bb4 | 19219 | fi |
247f5006 VZ |
19220 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
19221 | fi # $ac_x_libraries = no | |
90dd450c | 19222 | |
247f5006 | 19223 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
19224 | # Didn't find X anywhere. Cache the known absence of X. |
19225 | ac_cv_have_x="have_x=no" | |
19226 | else | |
19227 | # Record where we found X for the cache. | |
19228 | ac_cv_have_x="have_x=yes \ | |
19229 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 19230 | fi |
21d1c967 | 19231 | fi |
247f5006 | 19232 | |
21d1c967 GD |
19233 | fi |
19234 | eval "$ac_cv_have_x" | |
19235 | fi # $with_x != no | |
90dd450c | 19236 | |
21d1c967 | 19237 | if test "$have_x" != yes; then |
247f5006 VZ |
19238 | echo "$as_me:$LINENO: result: $have_x" >&5 |
19239 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
19240 | no_x=yes |
19241 | else | |
19242 | # If each of the values was on the command line, it overrides each guess. | |
19243 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
19244 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
19245 | # Update the cache value to reflect the command line values. | |
19246 | ac_cv_have_x="have_x=yes \ | |
19247 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
247f5006 VZ |
19248 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
19249 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 19250 | fi |
90dd450c | 19251 | |
21d1c967 | 19252 | if test "$no_x" = yes; then |
90dd450c | 19253 | # Not all programs may use this symbol, but it does not hurt to define it. |
247f5006 VZ |
19254 | |
19255 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 19256 | #define X_DISPLAY_MISSING 1 |
247f5006 | 19257 | _ACEOF |
90dd450c VZ |
19258 | |
19259 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
19260 | else | |
19261 | if test -n "$x_includes"; then | |
19262 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 19263 | fi |
3a922bb4 | 19264 | |
90dd450c VZ |
19265 | # It would also be nice to do this for all -L options, not just this one. |
19266 | if test -n "$x_libraries"; then | |
19267 | X_LIBS="$X_LIBS -L$x_libraries" | |
19268 | # For Solaris; some versions of Sun CC require a space after -R and | |
19269 | # others require no space. Words are not sufficient . . . . | |
247f5006 | 19270 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 19271 | "SunOS 5"*) |
247f5006 VZ |
19272 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
19273 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
19274 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
19275 | cat >conftest.$ac_ext <<_ACEOF | |
19276 | #line $LINENO "configure" | |
90dd450c VZ |
19277 | #include "confdefs.h" |
19278 | ||
247f5006 VZ |
19279 | #ifdef F77_DUMMY_MAIN |
19280 | # ifdef __cplusplus | |
19281 | extern "C" | |
19282 | # endif | |
19283 | int F77_DUMMY_MAIN() { return 1; } | |
19284 | #endif | |
19285 | int | |
19286 | main () | |
19287 | { | |
90dd450c | 19288 | |
247f5006 VZ |
19289 | ; |
19290 | return 0; | |
19291 | } | |
19292 | _ACEOF | |
19293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19295 | (eval $ac_link) 2>&5 | |
19296 | ac_status=$? | |
19297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19298 | (exit $ac_status); } && | |
19299 | { ac_try='test -s conftest$ac_exeext' | |
19300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19301 | (eval $ac_try) 2>&5 | |
19302 | ac_status=$? | |
19303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19304 | (exit $ac_status); }; }; then | |
90dd450c | 19305 | ac_R_nospace=yes |
3a922bb4 | 19306 | else |
247f5006 VZ |
19307 | echo "$as_me: failed program was:" >&5 |
19308 | cat conftest.$ac_ext >&5 | |
19309 | ac_R_nospace=no | |
3a922bb4 | 19310 | fi |
247f5006 | 19311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 19312 | if test $ac_R_nospace = yes; then |
247f5006 VZ |
19313 | echo "$as_me:$LINENO: result: no" >&5 |
19314 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
19315 | X_LIBS="$X_LIBS -R$x_libraries" |
19316 | else | |
19317 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
247f5006 VZ |
19318 | cat >conftest.$ac_ext <<_ACEOF |
19319 | #line $LINENO "configure" | |
90dd450c | 19320 | #include "confdefs.h" |
3a922bb4 | 19321 | |
247f5006 VZ |
19322 | #ifdef F77_DUMMY_MAIN |
19323 | # ifdef __cplusplus | |
19324 | extern "C" | |
19325 | # endif | |
19326 | int F77_DUMMY_MAIN() { return 1; } | |
19327 | #endif | |
19328 | int | |
19329 | main () | |
19330 | { | |
6f754473 | 19331 | |
247f5006 VZ |
19332 | ; |
19333 | return 0; | |
19334 | } | |
19335 | _ACEOF | |
19336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19338 | (eval $ac_link) 2>&5 | |
19339 | ac_status=$? | |
19340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19341 | (exit $ac_status); } && | |
19342 | { ac_try='test -s conftest$ac_exeext' | |
19343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19344 | (eval $ac_try) 2>&5 | |
19345 | ac_status=$? | |
19346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19347 | (exit $ac_status); }; }; then | |
90dd450c VZ |
19348 | ac_R_space=yes |
19349 | else | |
247f5006 VZ |
19350 | echo "$as_me: failed program was:" >&5 |
19351 | cat conftest.$ac_ext >&5 | |
19352 | ac_R_space=no | |
90dd450c | 19353 | fi |
247f5006 | 19354 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 19355 | if test $ac_R_space = yes; then |
247f5006 VZ |
19356 | echo "$as_me:$LINENO: result: yes" >&5 |
19357 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
19358 | X_LIBS="$X_LIBS -R $x_libraries" |
19359 | else | |
247f5006 VZ |
19360 | echo "$as_me:$LINENO: result: neither works" >&5 |
19361 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
19362 | fi |
19363 | fi | |
247f5006 | 19364 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
19365 | esac |
19366 | fi | |
19367 | ||
19368 | # Check for system-dependent libraries X programs must link with. | |
19369 | # Do this before checking for the system-independent R6 libraries | |
19370 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 19371 | |
90dd450c VZ |
19372 | if test "$ISC" = yes; then |
19373 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
19374 | else | |
247f5006 VZ |
19375 | # Martyn Johnson says this is needed for Ultrix, if the X |
19376 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 19377 | # the Alpha needs dnet_stub (dnet does not exist). |
247f5006 VZ |
19378 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
19379 | cat >conftest.$ac_ext <<_ACEOF | |
19380 | #line $LINENO "configure" | |
5c6fa7d2 | 19381 | #include "confdefs.h" |
247f5006 | 19382 | |
5c6fa7d2 | 19383 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
19384 | #ifdef __cplusplus |
19385 | extern "C" | |
19386 | #endif | |
5c6fa7d2 | 19387 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
19388 | builtin and then its argument prototype would still apply. */ |
19389 | char XOpenDisplay (); | |
19390 | #ifdef F77_DUMMY_MAIN | |
19391 | # ifdef __cplusplus | |
19392 | extern "C" | |
19393 | # endif | |
19394 | int F77_DUMMY_MAIN() { return 1; } | |
19395 | #endif | |
19396 | int | |
19397 | main () | |
19398 | { | |
19399 | XOpenDisplay (); | |
19400 | ; | |
19401 | return 0; | |
19402 | } | |
19403 | _ACEOF | |
19404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19406 | (eval $ac_link) 2>&5 | |
19407 | ac_status=$? | |
19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19409 | (exit $ac_status); } && | |
19410 | { ac_try='test -s conftest$ac_exeext' | |
19411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19412 | (eval $ac_try) 2>&5 | |
19413 | ac_status=$? | |
19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19415 | (exit $ac_status); }; }; then | |
19416 | : | |
8284b0c5 | 19417 | else |
247f5006 VZ |
19418 | echo "$as_me: failed program was:" >&5 |
19419 | cat conftest.$ac_ext >&5 | |
19420 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
19421 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
19422 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
19423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19424 | else | |
19425 | ac_check_lib_save_LIBS=$LIBS | |
19426 | LIBS="-ldnet $LIBS" | |
19427 | cat >conftest.$ac_ext <<_ACEOF | |
19428 | #line $LINENO "configure" | |
19429 | #include "confdefs.h" | |
8284b0c5 | 19430 | |
247f5006 VZ |
19431 | /* Override any gcc2 internal prototype to avoid an error. */ |
19432 | #ifdef __cplusplus | |
19433 | extern "C" | |
19434 | #endif | |
19435 | /* We use char because int might match the return type of a gcc2 | |
19436 | builtin and then its argument prototype would still apply. */ | |
19437 | char dnet_ntoa (); | |
19438 | #ifdef F77_DUMMY_MAIN | |
19439 | # ifdef __cplusplus | |
19440 | extern "C" | |
19441 | # endif | |
19442 | int F77_DUMMY_MAIN() { return 1; } | |
19443 | #endif | |
19444 | int | |
19445 | main () | |
19446 | { | |
19447 | dnet_ntoa (); | |
19448 | ; | |
19449 | return 0; | |
19450 | } | |
19451 | _ACEOF | |
19452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19454 | (eval $ac_link) 2>&5 | |
19455 | ac_status=$? | |
19456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19457 | (exit $ac_status); } && | |
19458 | { ac_try='test -s conftest$ac_exeext' | |
19459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19460 | (eval $ac_try) 2>&5 | |
19461 | ac_status=$? | |
19462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19463 | (exit $ac_status); }; }; then | |
19464 | ac_cv_lib_dnet_dnet_ntoa=yes | |
19465 | else | |
19466 | echo "$as_me: failed program was:" >&5 | |
19467 | cat conftest.$ac_ext >&5 | |
19468 | ac_cv_lib_dnet_dnet_ntoa=no | |
19469 | fi | |
19470 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19471 | LIBS=$ac_check_lib_save_LIBS | |
19472 | fi | |
19473 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
19474 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
19475 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 19476 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
19477 | fi |
19478 | ||
90dd450c | 19479 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
247f5006 VZ |
19480 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
19481 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
19482 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
19483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 19484 | else |
247f5006 | 19485 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 19486 | LIBS="-ldnet_stub $LIBS" |
247f5006 VZ |
19487 | cat >conftest.$ac_ext <<_ACEOF |
19488 | #line $LINENO "configure" | |
90dd450c | 19489 | #include "confdefs.h" |
247f5006 | 19490 | |
90dd450c | 19491 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
19492 | #ifdef __cplusplus |
19493 | extern "C" | |
19494 | #endif | |
90dd450c | 19495 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
19496 | builtin and then its argument prototype would still apply. */ |
19497 | char dnet_ntoa (); | |
19498 | #ifdef F77_DUMMY_MAIN | |
19499 | # ifdef __cplusplus | |
19500 | extern "C" | |
19501 | # endif | |
19502 | int F77_DUMMY_MAIN() { return 1; } | |
19503 | #endif | |
19504 | int | |
19505 | main () | |
19506 | { | |
19507 | dnet_ntoa (); | |
19508 | ; | |
19509 | return 0; | |
19510 | } | |
19511 | _ACEOF | |
19512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19514 | (eval $ac_link) 2>&5 | |
19515 | ac_status=$? | |
19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19517 | (exit $ac_status); } && | |
19518 | { ac_try='test -s conftest$ac_exeext' | |
19519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19520 | (eval $ac_try) 2>&5 | |
19521 | ac_status=$? | |
19522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19523 | (exit $ac_status); }; }; then | |
19524 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
19525 | else | |
19526 | echo "$as_me: failed program was:" >&5 | |
19527 | cat conftest.$ac_ext >&5 | |
19528 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
19529 | fi | |
19530 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19531 | LIBS=$ac_check_lib_save_LIBS | |
19532 | fi | |
19533 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
19534 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
19535 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 19536 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
19537 | fi |
19538 | ||
90dd450c | 19539 | fi |
247f5006 VZ |
19540 | fi |
19541 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19542 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 19543 | |
90dd450c VZ |
19544 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
19545 | # to get the SysV transport functions. | |
247f5006 | 19546 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
19547 | # needs -lnsl. |
19548 | # The nsl library prevents programs from opening the X display | |
247f5006 VZ |
19549 | # on Irix 5.2, according to T.E. Dickey. |
19550 | # The functions gethostbyname, getservbyname, and inet_addr are | |
19551 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
19552 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
19553 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
19554 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
19555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19556 | else | |
19557 | cat >conftest.$ac_ext <<_ACEOF | |
19558 | #line $LINENO "configure" | |
90dd450c VZ |
19559 | #include "confdefs.h" |
19560 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 19561 | which can conflict with char gethostbyname (); below. */ |
90dd450c VZ |
19562 | #include <assert.h> |
19563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
19564 | #ifdef __cplusplus |
19565 | extern "C" | |
19566 | #endif | |
90dd450c | 19567 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
19568 | builtin and then its argument prototype would still apply. */ |
19569 | char gethostbyname (); | |
19570 | char (*f) (); | |
19571 | ||
19572 | #ifdef F77_DUMMY_MAIN | |
19573 | # ifdef __cplusplus | |
19574 | extern "C" | |
19575 | # endif | |
19576 | int F77_DUMMY_MAIN() { return 1; } | |
19577 | #endif | |
19578 | int | |
19579 | main () | |
19580 | { | |
90dd450c VZ |
19581 | /* The GNU C library defines this for functions which it implements |
19582 | to always fail with ENOSYS. Some functions are actually named | |
19583 | something starting with __ and the normal name is an alias. */ | |
19584 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
19585 | choke me | |
19586 | #else | |
247f5006 | 19587 | f = gethostbyname; |
90dd450c | 19588 | #endif |
978f1259 | 19589 | |
247f5006 VZ |
19590 | ; |
19591 | return 0; | |
19592 | } | |
19593 | _ACEOF | |
19594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19596 | (eval $ac_link) 2>&5 | |
19597 | ac_status=$? | |
19598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19599 | (exit $ac_status); } && | |
19600 | { ac_try='test -s conftest$ac_exeext' | |
19601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19602 | (eval $ac_try) 2>&5 | |
19603 | ac_status=$? | |
19604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19605 | (exit $ac_status); }; }; then | |
19606 | ac_cv_func_gethostbyname=yes | |
19607 | else | |
19608 | echo "$as_me: failed program was:" >&5 | |
19609 | cat conftest.$ac_ext >&5 | |
19610 | ac_cv_func_gethostbyname=no | |
19611 | fi | |
19612 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19613 | fi | |
19614 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
19615 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 19616 | |
90dd450c | 19617 | if test $ac_cv_func_gethostbyname = no; then |
247f5006 VZ |
19618 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
19619 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
19620 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
19621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 19622 | else |
247f5006 | 19623 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 19624 | LIBS="-lnsl $LIBS" |
247f5006 VZ |
19625 | cat >conftest.$ac_ext <<_ACEOF |
19626 | #line $LINENO "configure" | |
90dd450c | 19627 | #include "confdefs.h" |
247f5006 | 19628 | |
90dd450c | 19629 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
19630 | #ifdef __cplusplus |
19631 | extern "C" | |
19632 | #endif | |
90dd450c | 19633 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
19634 | builtin and then its argument prototype would still apply. */ |
19635 | char gethostbyname (); | |
19636 | #ifdef F77_DUMMY_MAIN | |
19637 | # ifdef __cplusplus | |
19638 | extern "C" | |
19639 | # endif | |
19640 | int F77_DUMMY_MAIN() { return 1; } | |
19641 | #endif | |
19642 | int | |
19643 | main () | |
19644 | { | |
19645 | gethostbyname (); | |
19646 | ; | |
19647 | return 0; | |
19648 | } | |
19649 | _ACEOF | |
19650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19652 | (eval $ac_link) 2>&5 | |
19653 | ac_status=$? | |
19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19655 | (exit $ac_status); } && | |
19656 | { ac_try='test -s conftest$ac_exeext' | |
19657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19658 | (eval $ac_try) 2>&5 | |
19659 | ac_status=$? | |
19660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19661 | (exit $ac_status); }; }; then | |
19662 | ac_cv_lib_nsl_gethostbyname=yes | |
19663 | else | |
19664 | echo "$as_me: failed program was:" >&5 | |
19665 | cat conftest.$ac_ext >&5 | |
19666 | ac_cv_lib_nsl_gethostbyname=no | |
19667 | fi | |
19668 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19669 | LIBS=$ac_check_lib_save_LIBS | |
19670 | fi | |
19671 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
19672 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
19673 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
19674 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8284b0c5 | 19675 | fi |
5c6fa7d2 | 19676 | |
247f5006 VZ |
19677 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
19678 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
19679 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
19680 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
19681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 19682 | else |
247f5006 VZ |
19683 | ac_check_lib_save_LIBS=$LIBS |
19684 | LIBS="-lbsd $LIBS" | |
19685 | cat >conftest.$ac_ext <<_ACEOF | |
19686 | #line $LINENO "configure" | |
19687 | #include "confdefs.h" | |
19688 | ||
19689 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19690 | #ifdef __cplusplus | |
19691 | extern "C" | |
19692 | #endif | |
19693 | /* We use char because int might match the return type of a gcc2 | |
19694 | builtin and then its argument prototype would still apply. */ | |
19695 | char gethostbyname (); | |
19696 | #ifdef F77_DUMMY_MAIN | |
19697 | # ifdef __cplusplus | |
19698 | extern "C" | |
19699 | # endif | |
19700 | int F77_DUMMY_MAIN() { return 1; } | |
19701 | #endif | |
19702 | int | |
19703 | main () | |
19704 | { | |
19705 | gethostbyname (); | |
19706 | ; | |
19707 | return 0; | |
19708 | } | |
19709 | _ACEOF | |
19710 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19712 | (eval $ac_link) 2>&5 | |
19713 | ac_status=$? | |
19714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19715 | (exit $ac_status); } && | |
19716 | { ac_try='test -s conftest$ac_exeext' | |
19717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19718 | (eval $ac_try) 2>&5 | |
19719 | ac_status=$? | |
19720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19721 | (exit $ac_status); }; }; then | |
19722 | ac_cv_lib_bsd_gethostbyname=yes | |
19723 | else | |
19724 | echo "$as_me: failed program was:" >&5 | |
19725 | cat conftest.$ac_ext >&5 | |
19726 | ac_cv_lib_bsd_gethostbyname=no | |
19727 | fi | |
19728 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19729 | LIBS=$ac_check_lib_save_LIBS | |
19730 | fi | |
19731 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
19732 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
19733 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
19734 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 19735 | fi |
b12915c1 | 19736 | |
247f5006 | 19737 | fi |
90dd450c VZ |
19738 | fi |
19739 | ||
19740 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
19741 | # socket/setsockopt and other routines are undefined under SCO ODT | |
19742 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
247f5006 VZ |
19743 | # on later versions), says Simon Leinen: it contains gethostby* |
19744 | # variants that don't use the nameserver (or something). -lsocket | |
19745 | # must be given before -lnsl if both are needed. We assume that | |
19746 | # if connect needs -lnsl, so does gethostbyname. | |
19747 | echo "$as_me:$LINENO: checking for connect" >&5 | |
19748 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
19749 | if test "${ac_cv_func_connect+set}" = set; then | |
19750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19751 | else | |
19752 | cat >conftest.$ac_ext <<_ACEOF | |
19753 | #line $LINENO "configure" | |
55e80573 | 19754 | #include "confdefs.h" |
90dd450c | 19755 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 19756 | which can conflict with char connect (); below. */ |
90dd450c VZ |
19757 | #include <assert.h> |
19758 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
19759 | #ifdef __cplusplus |
19760 | extern "C" | |
19761 | #endif | |
90dd450c | 19762 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
19763 | builtin and then its argument prototype would still apply. */ |
19764 | char connect (); | |
19765 | char (*f) (); | |
19766 | ||
19767 | #ifdef F77_DUMMY_MAIN | |
19768 | # ifdef __cplusplus | |
19769 | extern "C" | |
19770 | # endif | |
19771 | int F77_DUMMY_MAIN() { return 1; } | |
19772 | #endif | |
19773 | int | |
19774 | main () | |
19775 | { | |
90dd450c VZ |
19776 | /* The GNU C library defines this for functions which it implements |
19777 | to always fail with ENOSYS. Some functions are actually named | |
19778 | something starting with __ and the normal name is an alias. */ | |
19779 | #if defined (__stub_connect) || defined (__stub___connect) | |
19780 | choke me | |
19781 | #else | |
247f5006 | 19782 | f = connect; |
90dd450c VZ |
19783 | #endif |
19784 | ||
247f5006 VZ |
19785 | ; |
19786 | return 0; | |
19787 | } | |
19788 | _ACEOF | |
19789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19791 | (eval $ac_link) 2>&5 | |
19792 | ac_status=$? | |
19793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19794 | (exit $ac_status); } && | |
19795 | { ac_try='test -s conftest$ac_exeext' | |
19796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19797 | (eval $ac_try) 2>&5 | |
19798 | ac_status=$? | |
19799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19800 | (exit $ac_status); }; }; then | |
19801 | ac_cv_func_connect=yes | |
19802 | else | |
19803 | echo "$as_me: failed program was:" >&5 | |
19804 | cat conftest.$ac_ext >&5 | |
19805 | ac_cv_func_connect=no | |
19806 | fi | |
19807 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19808 | fi | |
19809 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
19810 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 19811 | |
90dd450c | 19812 | if test $ac_cv_func_connect = no; then |
247f5006 VZ |
19813 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
19814 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
19815 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
19816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 19817 | else |
247f5006 | 19818 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 19819 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
247f5006 VZ |
19820 | cat >conftest.$ac_ext <<_ACEOF |
19821 | #line $LINENO "configure" | |
90dd450c | 19822 | #include "confdefs.h" |
247f5006 | 19823 | |
90dd450c | 19824 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
19825 | #ifdef __cplusplus |
19826 | extern "C" | |
19827 | #endif | |
90dd450c | 19828 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
19829 | builtin and then its argument prototype would still apply. */ |
19830 | char connect (); | |
19831 | #ifdef F77_DUMMY_MAIN | |
19832 | # ifdef __cplusplus | |
19833 | extern "C" | |
19834 | # endif | |
19835 | int F77_DUMMY_MAIN() { return 1; } | |
19836 | #endif | |
19837 | int | |
19838 | main () | |
19839 | { | |
19840 | connect (); | |
19841 | ; | |
19842 | return 0; | |
19843 | } | |
19844 | _ACEOF | |
19845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19847 | (eval $ac_link) 2>&5 | |
19848 | ac_status=$? | |
19849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19850 | (exit $ac_status); } && | |
19851 | { ac_try='test -s conftest$ac_exeext' | |
19852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19853 | (eval $ac_try) 2>&5 | |
19854 | ac_status=$? | |
19855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19856 | (exit $ac_status); }; }; then | |
19857 | ac_cv_lib_socket_connect=yes | |
19858 | else | |
19859 | echo "$as_me: failed program was:" >&5 | |
19860 | cat conftest.$ac_ext >&5 | |
19861 | ac_cv_lib_socket_connect=no | |
19862 | fi | |
19863 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19864 | LIBS=$ac_check_lib_save_LIBS | |
19865 | fi | |
19866 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
19867 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
19868 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 19869 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 19870 | fi |
77e13408 | 19871 | |
90dd450c | 19872 | fi |
25d0687a | 19873 | |
247f5006 VZ |
19874 | # Guillermo Gomez says -lposix is necessary on A/UX. |
19875 | echo "$as_me:$LINENO: checking for remove" >&5 | |
19876 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
19877 | if test "${ac_cv_func_remove+set}" = set; then | |
19878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 19879 | else |
247f5006 VZ |
19880 | cat >conftest.$ac_ext <<_ACEOF |
19881 | #line $LINENO "configure" | |
90dd450c VZ |
19882 | #include "confdefs.h" |
19883 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 19884 | which can conflict with char remove (); below. */ |
90dd450c VZ |
19885 | #include <assert.h> |
19886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
19887 | #ifdef __cplusplus |
19888 | extern "C" | |
19889 | #endif | |
90dd450c | 19890 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
19891 | builtin and then its argument prototype would still apply. */ |
19892 | char remove (); | |
19893 | char (*f) (); | |
19894 | ||
19895 | #ifdef F77_DUMMY_MAIN | |
19896 | # ifdef __cplusplus | |
19897 | extern "C" | |
19898 | # endif | |
19899 | int F77_DUMMY_MAIN() { return 1; } | |
19900 | #endif | |
19901 | int | |
19902 | main () | |
19903 | { | |
90dd450c VZ |
19904 | /* The GNU C library defines this for functions which it implements |
19905 | to always fail with ENOSYS. Some functions are actually named | |
19906 | something starting with __ and the normal name is an alias. */ | |
19907 | #if defined (__stub_remove) || defined (__stub___remove) | |
19908 | choke me | |
19909 | #else | |
247f5006 | 19910 | f = remove; |
90dd450c | 19911 | #endif |
55e80573 | 19912 | |
247f5006 VZ |
19913 | ; |
19914 | return 0; | |
19915 | } | |
19916 | _ACEOF | |
19917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19919 | (eval $ac_link) 2>&5 | |
19920 | ac_status=$? | |
19921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19922 | (exit $ac_status); } && | |
19923 | { ac_try='test -s conftest$ac_exeext' | |
19924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19925 | (eval $ac_try) 2>&5 | |
19926 | ac_status=$? | |
19927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19928 | (exit $ac_status); }; }; then | |
19929 | ac_cv_func_remove=yes | |
19930 | else | |
19931 | echo "$as_me: failed program was:" >&5 | |
19932 | cat conftest.$ac_ext >&5 | |
19933 | ac_cv_func_remove=no | |
19934 | fi | |
19935 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19936 | fi | |
19937 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
19938 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 19939 | |
90dd450c | 19940 | if test $ac_cv_func_remove = no; then |
247f5006 VZ |
19941 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
19942 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
19943 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
19944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 19945 | else |
247f5006 | 19946 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 19947 | LIBS="-lposix $LIBS" |
247f5006 VZ |
19948 | cat >conftest.$ac_ext <<_ACEOF |
19949 | #line $LINENO "configure" | |
90dd450c | 19950 | #include "confdefs.h" |
247f5006 | 19951 | |
90dd450c | 19952 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
19953 | #ifdef __cplusplus |
19954 | extern "C" | |
19955 | #endif | |
90dd450c | 19956 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
19957 | builtin and then its argument prototype would still apply. */ |
19958 | char remove (); | |
19959 | #ifdef F77_DUMMY_MAIN | |
19960 | # ifdef __cplusplus | |
19961 | extern "C" | |
19962 | # endif | |
19963 | int F77_DUMMY_MAIN() { return 1; } | |
19964 | #endif | |
19965 | int | |
19966 | main () | |
19967 | { | |
19968 | remove (); | |
19969 | ; | |
19970 | return 0; | |
19971 | } | |
19972 | _ACEOF | |
19973 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19975 | (eval $ac_link) 2>&5 | |
19976 | ac_status=$? | |
19977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19978 | (exit $ac_status); } && | |
19979 | { ac_try='test -s conftest$ac_exeext' | |
19980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19981 | (eval $ac_try) 2>&5 | |
19982 | ac_status=$? | |
19983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19984 | (exit $ac_status); }; }; then | |
19985 | ac_cv_lib_posix_remove=yes | |
19986 | else | |
19987 | echo "$as_me: failed program was:" >&5 | |
19988 | cat conftest.$ac_ext >&5 | |
19989 | ac_cv_lib_posix_remove=no | |
19990 | fi | |
19991 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19992 | LIBS=$ac_check_lib_save_LIBS | |
19993 | fi | |
19994 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
19995 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
19996 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 19997 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 19998 | fi |
f6bcfd97 | 19999 | |
6fa882bd RR |
20000 | fi |
20001 | ||
90dd450c | 20002 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
247f5006 VZ |
20003 | echo "$as_me:$LINENO: checking for shmat" >&5 |
20004 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
20005 | if test "${ac_cv_func_shmat+set}" = set; then | |
20006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20007 | else |
247f5006 VZ |
20008 | cat >conftest.$ac_ext <<_ACEOF |
20009 | #line $LINENO "configure" | |
90dd450c VZ |
20010 | #include "confdefs.h" |
20011 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 20012 | which can conflict with char shmat (); below. */ |
90dd450c VZ |
20013 | #include <assert.h> |
20014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
20015 | #ifdef __cplusplus |
20016 | extern "C" | |
20017 | #endif | |
90dd450c | 20018 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
20019 | builtin and then its argument prototype would still apply. */ |
20020 | char shmat (); | |
20021 | char (*f) (); | |
20022 | ||
20023 | #ifdef F77_DUMMY_MAIN | |
20024 | # ifdef __cplusplus | |
20025 | extern "C" | |
20026 | # endif | |
20027 | int F77_DUMMY_MAIN() { return 1; } | |
20028 | #endif | |
20029 | int | |
20030 | main () | |
20031 | { | |
90dd450c VZ |
20032 | /* The GNU C library defines this for functions which it implements |
20033 | to always fail with ENOSYS. Some functions are actually named | |
20034 | something starting with __ and the normal name is an alias. */ | |
20035 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
20036 | choke me | |
20037 | #else | |
247f5006 | 20038 | f = shmat; |
90dd450c | 20039 | #endif |
10f2d63a | 20040 | |
247f5006 VZ |
20041 | ; |
20042 | return 0; | |
20043 | } | |
20044 | _ACEOF | |
20045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20047 | (eval $ac_link) 2>&5 | |
20048 | ac_status=$? | |
20049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20050 | (exit $ac_status); } && | |
20051 | { ac_try='test -s conftest$ac_exeext' | |
20052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20053 | (eval $ac_try) 2>&5 | |
20054 | ac_status=$? | |
20055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20056 | (exit $ac_status); }; }; then | |
20057 | ac_cv_func_shmat=yes | |
20058 | else | |
20059 | echo "$as_me: failed program was:" >&5 | |
20060 | cat conftest.$ac_ext >&5 | |
20061 | ac_cv_func_shmat=no | |
20062 | fi | |
20063 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20064 | fi | |
20065 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
20066 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 20067 | |
90dd450c | 20068 | if test $ac_cv_func_shmat = no; then |
247f5006 VZ |
20069 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
20070 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
20071 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
20072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 20073 | else |
247f5006 | 20074 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 20075 | LIBS="-lipc $LIBS" |
247f5006 VZ |
20076 | cat >conftest.$ac_ext <<_ACEOF |
20077 | #line $LINENO "configure" | |
90dd450c | 20078 | #include "confdefs.h" |
247f5006 | 20079 | |
8284b0c5 | 20080 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
20081 | #ifdef __cplusplus |
20082 | extern "C" | |
20083 | #endif | |
90dd450c | 20084 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
20085 | builtin and then its argument prototype would still apply. */ |
20086 | char shmat (); | |
20087 | #ifdef F77_DUMMY_MAIN | |
20088 | # ifdef __cplusplus | |
20089 | extern "C" | |
20090 | # endif | |
20091 | int F77_DUMMY_MAIN() { return 1; } | |
20092 | #endif | |
20093 | int | |
20094 | main () | |
20095 | { | |
20096 | shmat (); | |
20097 | ; | |
20098 | return 0; | |
20099 | } | |
20100 | _ACEOF | |
20101 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20103 | (eval $ac_link) 2>&5 | |
20104 | ac_status=$? | |
20105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20106 | (exit $ac_status); } && | |
20107 | { ac_try='test -s conftest$ac_exeext' | |
20108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20109 | (eval $ac_try) 2>&5 | |
20110 | ac_status=$? | |
20111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20112 | (exit $ac_status); }; }; then | |
20113 | ac_cv_lib_ipc_shmat=yes | |
20114 | else | |
20115 | echo "$as_me: failed program was:" >&5 | |
20116 | cat conftest.$ac_ext >&5 | |
20117 | ac_cv_lib_ipc_shmat=no | |
20118 | fi | |
20119 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20120 | LIBS=$ac_check_lib_save_LIBS | |
20121 | fi | |
20122 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
20123 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
20124 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 20125 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
20126 | fi |
20127 | ||
d558c907 | 20128 | fi |
90dd450c | 20129 | fi |
3a922bb4 | 20130 | |
90dd450c | 20131 | # Check for libraries that X11R6 Xt/Xaw programs need. |
247f5006 | 20132 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
20133 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
20134 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
20135 | # check for ICE first), but we must link in the order -lSM -lICE or | |
20136 | # we get undefined symbols. So assume we have SM if we have ICE. | |
20137 | # These have to be linked with before -lX11, unlike the other | |
20138 | # libraries we check for below, so use a different variable. | |
247f5006 VZ |
20139 | # John Interrante, Karl Berry |
20140 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
20141 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
20142 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
20143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20144 | else | |
20145 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 20146 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
247f5006 VZ |
20147 | cat >conftest.$ac_ext <<_ACEOF |
20148 | #line $LINENO "configure" | |
9cfadba2 | 20149 | #include "confdefs.h" |
247f5006 | 20150 | |
90dd450c | 20151 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
20152 | #ifdef __cplusplus |
20153 | extern "C" | |
20154 | #endif | |
90dd450c | 20155 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
20156 | builtin and then its argument prototype would still apply. */ |
20157 | char IceConnectionNumber (); | |
20158 | #ifdef F77_DUMMY_MAIN | |
20159 | # ifdef __cplusplus | |
20160 | extern "C" | |
20161 | # endif | |
20162 | int F77_DUMMY_MAIN() { return 1; } | |
20163 | #endif | |
20164 | int | |
20165 | main () | |
20166 | { | |
20167 | IceConnectionNumber (); | |
20168 | ; | |
20169 | return 0; | |
20170 | } | |
20171 | _ACEOF | |
20172 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20174 | (eval $ac_link) 2>&5 | |
20175 | ac_status=$? | |
20176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20177 | (exit $ac_status); } && | |
20178 | { ac_try='test -s conftest$ac_exeext' | |
20179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20180 | (eval $ac_try) 2>&5 | |
20181 | ac_status=$? | |
20182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20183 | (exit $ac_status); }; }; then | |
20184 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
20185 | else | |
20186 | echo "$as_me: failed program was:" >&5 | |
20187 | cat conftest.$ac_ext >&5 | |
20188 | ac_cv_lib_ICE_IceConnectionNumber=no | |
20189 | fi | |
20190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20191 | LIBS=$ac_check_lib_save_LIBS | |
20192 | fi | |
20193 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
20194 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
20195 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 20196 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 20197 | fi |
10f2d63a | 20198 | |
247f5006 | 20199 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
20200 | |
20201 | fi | |
20202 | ||
8284b0c5 | 20203 | |
90dd450c | 20204 | if test "$no_x" = "yes"; then |
247f5006 VZ |
20205 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
20206 | echo "$as_me: error: X11 not found" >&2;} | |
20207 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
20208 | fi |
20209 | ||
20210 | GUI_TK_LIBRARY="$X_LIBS" | |
20211 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
20212 | AFMINSTALL=afminstall | |
20213 | COMPILED_X_PROGRAM=0 | |
20214 | ||
21d1c967 | 20215 | if test "$wxUSE_NANOX" = "yes"; then |
247f5006 VZ |
20216 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
20217 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 20218 | if test "x$MICROWIN" = x ; then |
247f5006 VZ |
20219 | echo "$as_me:$LINENO: result: not found" >&5 |
20220 | echo "${ECHO_T}not found" >&6 | |
20221 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
20222 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
20223 | { (exit 1); exit 1; }; } | |
90dd450c | 20224 | else |
247f5006 VZ |
20225 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
20226 | echo "${ECHO_T}$MICROWIN" >&6 | |
20227 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 20228 | #define wxUSE_NANOX 1 |
247f5006 | 20229 | _ACEOF |
21d1c967 | 20230 | |
90dd450c VZ |
20231 | fi |
20232 | fi | |
20233 | ||
20234 | xpm_link= | |
247f5006 VZ |
20235 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
20236 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
20237 | ||
90dd450c VZ |
20238 | ac_find_libraries= |
20239 | for ac_dir in $SEARCH_LIB; | |
20240 | do | |
20241 | for ac_extension in a so sl dylib; do | |
20242 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
20243 | ac_find_libraries=$ac_dir | |
20244 | break 2 | |
20245 | fi | |
20246 | done | |
20247 | done | |
20248 | ||
20249 | if test "$ac_find_libraries" != "" ; then | |
247f5006 | 20250 | |
90dd450c VZ |
20251 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
20252 | result=$? | |
20253 | if test $result = 0; then | |
20254 | ac_path_to_link="" | |
20255 | else | |
20256 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 20257 | fi |
90dd450c | 20258 | |
21d1c967 GD |
20259 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
20260 | xpm_link=" -lXpm" | |
247f5006 | 20261 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20262 | #define wxHAVE_LIB_XPM 1 |
247f5006 | 20263 | _ACEOF |
90dd450c | 20264 | |
247f5006 VZ |
20265 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
20266 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 20267 | else |
247f5006 VZ |
20268 | cat >conftest.$ac_ext <<_ACEOF |
20269 | #line $LINENO "configure" | |
21d1c967 | 20270 | #include "confdefs.h" |
90dd450c | 20271 | |
21d1c967 | 20272 | #include <X11/xpm.h> |
247f5006 VZ |
20273 | |
20274 | #ifdef F77_DUMMY_MAIN | |
20275 | # ifdef __cplusplus | |
20276 | extern "C" | |
20277 | # endif | |
20278 | int F77_DUMMY_MAIN() { return 1; } | |
20279 | #endif | |
20280 | int | |
20281 | main () | |
20282 | { | |
6f72b082 | 20283 | |
21d1c967 GD |
20284 | int version; |
20285 | version = XpmLibraryVersion(); | |
247f5006 VZ |
20286 | |
20287 | ; | |
20288 | return 0; | |
20289 | } | |
20290 | _ACEOF | |
20291 | rm -f conftest.$ac_objext | |
20292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20293 | (eval $ac_compile) 2>&5 | |
20294 | ac_status=$? | |
20295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20296 | (exit $ac_status); } && | |
20297 | { ac_try='test -s conftest.$ac_objext' | |
20298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20299 | (eval $ac_try) 2>&5 | |
20300 | ac_status=$? | |
20301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20302 | (exit $ac_status); }; }; then | |
20303 | ||
21d1c967 | 20304 | xpm_link=" -lXpm" |
247f5006 | 20305 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20306 | #define wxHAVE_LIB_XPM 1 |
247f5006 | 20307 | _ACEOF |
90dd450c | 20308 | |
247f5006 VZ |
20309 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
20310 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 20311 | COMPILED_X_PROGRAM=0 |
247f5006 | 20312 | |
21d1c967 | 20313 | else |
247f5006 VZ |
20314 | echo "$as_me: failed program was:" >&5 |
20315 | cat conftest.$ac_ext >&5 | |
20316 | ||
20317 | echo "$as_me:$LINENO: result: no" >&5 | |
20318 | echo "${ECHO_T}no" >&6 | |
20319 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
20320 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
20321 | ||
20322 | ||
6f72b082 | 20323 | fi |
247f5006 | 20324 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20325 | fi |
90dd450c | 20326 | |
1d1b75ac VZ |
20327 | wxUSE_UNIVERSAL="yes" |
20328 | ||
21d1c967 GD |
20329 | if test "$wxUSE_NANOX" = "yes"; then |
20330 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
20331 | 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 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
20332 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
20333 | else | |
20334 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
20335 | fi | |
6f72b082 | 20336 | |
21d1c967 GD |
20337 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
20338 | TOOLKIT=X11 | |
20339 | GUIDIST=X11_DIST | |
20340 | fi | |
90dd450c | 20341 | |
21d1c967 | 20342 | if test "$wxUSE_WINE" = 1; then |
247f5006 VZ |
20343 | if test "${ac_cv_header_windows_h+set}" = set; then |
20344 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20345 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20346 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20348 | fi | |
20349 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
20350 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20351 | else | |
20352 | # Is the header compilable? | |
20353 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
20354 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
20355 | cat >conftest.$ac_ext <<_ACEOF | |
20356 | #line $LINENO "configure" | |
6f72b082 | 20357 | #include "confdefs.h" |
247f5006 | 20358 | $ac_includes_default |
21d1c967 | 20359 | #include <windows.h> |
247f5006 VZ |
20360 | _ACEOF |
20361 | rm -f conftest.$ac_objext | |
20362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20363 | (eval $ac_compile) 2>&5 | |
20364 | ac_status=$? | |
20365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20366 | (exit $ac_status); } && | |
20367 | { ac_try='test -s conftest.$ac_objext' | |
20368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20369 | (eval $ac_try) 2>&5 | |
20370 | ac_status=$? | |
20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20372 | (exit $ac_status); }; }; then | |
20373 | ac_header_compiler=yes | |
20374 | else | |
20375 | echo "$as_me: failed program was:" >&5 | |
20376 | cat conftest.$ac_ext >&5 | |
20377 | ac_header_compiler=no | |
20378 | fi | |
20379 | rm -f conftest.$ac_objext conftest.$ac_ext | |
20380 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20381 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20382 | ||
20383 | # Is the header present? | |
20384 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
20385 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
20386 | cat >conftest.$ac_ext <<_ACEOF | |
20387 | #line $LINENO "configure" | |
20388 | #include "confdefs.h" | |
20389 | #include <windows.h> | |
20390 | _ACEOF | |
20391 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20392 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20393 | ac_status=$? | |
20394 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
20395 | rm -f conftest.er1 | |
20396 | cat conftest.err >&5 | |
20397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20398 | (exit $ac_status); } >/dev/null; then | |
20399 | if test -s conftest.err; then | |
20400 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20401 | else | |
20402 | ac_cpp_err= | |
20403 | fi | |
20404 | else | |
20405 | ac_cpp_err=yes | |
20406 | fi | |
20407 | if test -z "$ac_cpp_err"; then | |
20408 | ac_header_preproc=yes | |
20409 | else | |
20410 | echo "$as_me: failed program was:" >&5 | |
10f2d63a | 20411 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
20412 | ac_header_preproc=no |
20413 | fi | |
20414 | rm -f conftest.err conftest.$ac_ext | |
20415 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20416 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20417 | ||
20418 | # So? What about this header? | |
20419 | case $ac_header_compiler:$ac_header_preproc in | |
20420 | yes:no ) | |
20421 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20422 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20423 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
20424 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;};; | |
20425 | no:yes ) | |
20426 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
20427 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
20428 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
20429 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
20430 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
20431 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;};; | |
20432 | esac | |
20433 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20434 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20435 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20437 | else | |
20438 | ac_cv_header_windows_h=$ac_header_preproc | |
10f2d63a | 20439 | fi |
247f5006 VZ |
20440 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
20441 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20442 | ||
10f2d63a | 20443 | fi |
247f5006 | 20444 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 GD |
20445 | : |
20446 | else | |
21d1c967 | 20447 | |
247f5006 VZ |
20448 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
20449 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
20450 | { (exit 1); exit 1; }; } | |
20451 | ||
5c6fa7d2 | 20452 | fi |
7b4a847f | 20453 | |
5c6fa7d2 | 20454 | |
247f5006 | 20455 | |
8284b0c5 | 20456 | xpm_link= |
247f5006 VZ |
20457 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
20458 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
20459 | ||
90dd450c VZ |
20460 | ac_find_libraries= |
20461 | for ac_dir in $SEARCH_LIB; | |
20462 | do | |
20463 | for ac_extension in a so sl dylib; do | |
21d1c967 | 20464 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
20465 | ac_find_libraries=$ac_dir |
20466 | break 2 | |
20467 | fi | |
20468 | done | |
20469 | done | |
20470 | ||
21d1c967 GD |
20471 | if test "$ac_find_libraries" != "" ; then |
20472 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
20473 | xpm_link=" -lXpm" | |
247f5006 | 20474 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 20475 | #define wxHAVE_LIB_XPM 1 |
247f5006 | 20476 | _ACEOF |
90dd450c | 20477 | |
247f5006 VZ |
20478 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
20479 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 20480 | else |
247f5006 VZ |
20481 | echo "$as_me:$LINENO: result: no" >&5 |
20482 | echo "${ECHO_T}no" >&6 | |
20483 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
20484 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
21d1c967 GD |
20485 | fi |
20486 | ||
20487 | mesa_link= | |
247f5006 VZ |
20488 | echo "$as_me:$LINENO: checking for Mesa library" >&5 |
20489 | echo $ECHO_N "checking for Mesa library... $ECHO_C" >&6 | |
20490 | ||
90dd450c VZ |
20491 | ac_find_libraries= |
20492 | for ac_dir in $SEARCH_LIB; | |
20493 | do | |
20494 | for ac_extension in a so sl dylib; do | |
20495 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
20496 | ac_find_libraries=$ac_dir | |
20497 | break 2 | |
20498 | fi | |
20499 | done | |
20500 | done | |
20501 | ||
21d1c967 GD |
20502 | if test "$ac_find_libraries" != "" ; then |
20503 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
20504 | mesa_link=" -lMesaGL" | |
247f5006 VZ |
20505 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
20506 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 20507 | else |
247f5006 VZ |
20508 | { { echo "$as_me:$LINENO: error: no" >&5 |
20509 | echo "$as_me: error: no" >&2;} | |
20510 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20511 | fi |
20512 | ||
20513 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
20514 | TOOLKIT=MSW | |
20515 | GUIDIST=MSW_DIST | |
20516 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
20517 | fi | |
20518 | ||
20519 | if test "$wxUSE_MOTIF" = 1; then | |
20520 | if test "$no_x" = yes; then | |
20521 | # Not all programs may use this symbol, but it does not hurt to define it. | |
247f5006 VZ |
20522 | |
20523 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 20524 | #define X_DISPLAY_MISSING 1 |
247f5006 | 20525 | _ACEOF |
21d1c967 GD |
20526 | |
20527 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
20528 | else | |
20529 | if test -n "$x_includes"; then | |
20530 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
20531 | fi |
20532 | ||
21d1c967 GD |
20533 | # It would also be nice to do this for all -L options, not just this one. |
20534 | if test -n "$x_libraries"; then | |
20535 | X_LIBS="$X_LIBS -L$x_libraries" | |
20536 | # For Solaris; some versions of Sun CC require a space after -R and | |
20537 | # others require no space. Words are not sufficient . . . . | |
247f5006 | 20538 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 20539 | "SunOS 5"*) |
247f5006 VZ |
20540 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
20541 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
20542 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
20543 | cat >conftest.$ac_ext <<_ACEOF | |
20544 | #line $LINENO "configure" | |
21d1c967 GD |
20545 | #include "confdefs.h" |
20546 | ||
247f5006 VZ |
20547 | #ifdef F77_DUMMY_MAIN |
20548 | # ifdef __cplusplus | |
20549 | extern "C" | |
20550 | # endif | |
20551 | int F77_DUMMY_MAIN() { return 1; } | |
20552 | #endif | |
20553 | int | |
20554 | main () | |
20555 | { | |
21d1c967 | 20556 | |
247f5006 VZ |
20557 | ; |
20558 | return 0; | |
20559 | } | |
20560 | _ACEOF | |
20561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20563 | (eval $ac_link) 2>&5 | |
20564 | ac_status=$? | |
20565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20566 | (exit $ac_status); } && | |
20567 | { ac_try='test -s conftest$ac_exeext' | |
20568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20569 | (eval $ac_try) 2>&5 | |
20570 | ac_status=$? | |
20571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20572 | (exit $ac_status); }; }; then | |
21d1c967 | 20573 | ac_R_nospace=yes |
698dcdb6 | 20574 | else |
247f5006 VZ |
20575 | echo "$as_me: failed program was:" >&5 |
20576 | cat conftest.$ac_ext >&5 | |
20577 | ac_R_nospace=no | |
10f2d63a | 20578 | fi |
247f5006 | 20579 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 20580 | if test $ac_R_nospace = yes; then |
247f5006 VZ |
20581 | echo "$as_me:$LINENO: result: no" >&5 |
20582 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20583 | X_LIBS="$X_LIBS -R$x_libraries" |
20584 | else | |
20585 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
247f5006 VZ |
20586 | cat >conftest.$ac_ext <<_ACEOF |
20587 | #line $LINENO "configure" | |
21d1c967 | 20588 | #include "confdefs.h" |
10f2d63a | 20589 | |
247f5006 VZ |
20590 | #ifdef F77_DUMMY_MAIN |
20591 | # ifdef __cplusplus | |
20592 | extern "C" | |
20593 | # endif | |
20594 | int F77_DUMMY_MAIN() { return 1; } | |
20595 | #endif | |
20596 | int | |
20597 | main () | |
20598 | { | |
f0c87536 | 20599 | |
247f5006 VZ |
20600 | ; |
20601 | return 0; | |
20602 | } | |
20603 | _ACEOF | |
20604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20606 | (eval $ac_link) 2>&5 | |
20607 | ac_status=$? | |
20608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20609 | (exit $ac_status); } && | |
20610 | { ac_try='test -s conftest$ac_exeext' | |
20611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20612 | (eval $ac_try) 2>&5 | |
20613 | ac_status=$? | |
20614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20615 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20616 | ac_R_space=yes |
20617 | else | |
247f5006 VZ |
20618 | echo "$as_me: failed program was:" >&5 |
20619 | cat conftest.$ac_ext >&5 | |
20620 | ac_R_space=no | |
21d1c967 | 20621 | fi |
247f5006 | 20622 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 20623 | if test $ac_R_space = yes; then |
247f5006 VZ |
20624 | echo "$as_me:$LINENO: result: yes" >&5 |
20625 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
20626 | X_LIBS="$X_LIBS -R $x_libraries" |
20627 | else | |
247f5006 VZ |
20628 | echo "$as_me:$LINENO: result: neither works" >&5 |
20629 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
20630 | fi |
20631 | fi | |
247f5006 | 20632 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
20633 | esac |
20634 | fi | |
90dd450c | 20635 | |
21d1c967 GD |
20636 | # Check for system-dependent libraries X programs must link with. |
20637 | # Do this before checking for the system-independent R6 libraries | |
20638 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
20639 | ||
20640 | if test "$ISC" = yes; then | |
20641 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
20642 | else | |
247f5006 VZ |
20643 | # Martyn Johnson says this is needed for Ultrix, if the X |
20644 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 20645 | # the Alpha needs dnet_stub (dnet does not exist). |
247f5006 VZ |
20646 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
20647 | cat >conftest.$ac_ext <<_ACEOF | |
20648 | #line $LINENO "configure" | |
5c6fa7d2 | 20649 | #include "confdefs.h" |
247f5006 | 20650 | |
5c6fa7d2 | 20651 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
20652 | #ifdef __cplusplus |
20653 | extern "C" | |
20654 | #endif | |
5c6fa7d2 | 20655 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
20656 | builtin and then its argument prototype would still apply. */ |
20657 | char XOpenDisplay (); | |
20658 | #ifdef F77_DUMMY_MAIN | |
20659 | # ifdef __cplusplus | |
20660 | extern "C" | |
20661 | # endif | |
20662 | int F77_DUMMY_MAIN() { return 1; } | |
20663 | #endif | |
20664 | int | |
20665 | main () | |
20666 | { | |
20667 | XOpenDisplay (); | |
20668 | ; | |
20669 | return 0; | |
20670 | } | |
20671 | _ACEOF | |
20672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20674 | (eval $ac_link) 2>&5 | |
20675 | ac_status=$? | |
20676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20677 | (exit $ac_status); } && | |
20678 | { ac_try='test -s conftest$ac_exeext' | |
20679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20680 | (eval $ac_try) 2>&5 | |
20681 | ac_status=$? | |
20682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20683 | (exit $ac_status); }; }; then | |
20684 | : | |
8284b0c5 | 20685 | else |
247f5006 VZ |
20686 | echo "$as_me: failed program was:" >&5 |
20687 | cat conftest.$ac_ext >&5 | |
20688 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
20689 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
20690 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
20691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20692 | else | |
20693 | ac_check_lib_save_LIBS=$LIBS | |
20694 | LIBS="-ldnet $LIBS" | |
20695 | cat >conftest.$ac_ext <<_ACEOF | |
20696 | #line $LINENO "configure" | |
20697 | #include "confdefs.h" | |
8284b0c5 | 20698 | |
247f5006 VZ |
20699 | /* Override any gcc2 internal prototype to avoid an error. */ |
20700 | #ifdef __cplusplus | |
20701 | extern "C" | |
20702 | #endif | |
20703 | /* We use char because int might match the return type of a gcc2 | |
20704 | builtin and then its argument prototype would still apply. */ | |
20705 | char dnet_ntoa (); | |
20706 | #ifdef F77_DUMMY_MAIN | |
20707 | # ifdef __cplusplus | |
20708 | extern "C" | |
20709 | # endif | |
20710 | int F77_DUMMY_MAIN() { return 1; } | |
20711 | #endif | |
20712 | int | |
20713 | main () | |
20714 | { | |
20715 | dnet_ntoa (); | |
20716 | ; | |
20717 | return 0; | |
20718 | } | |
20719 | _ACEOF | |
20720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20722 | (eval $ac_link) 2>&5 | |
20723 | ac_status=$? | |
20724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20725 | (exit $ac_status); } && | |
20726 | { ac_try='test -s conftest$ac_exeext' | |
20727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20728 | (eval $ac_try) 2>&5 | |
20729 | ac_status=$? | |
20730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20731 | (exit $ac_status); }; }; then | |
20732 | ac_cv_lib_dnet_dnet_ntoa=yes | |
20733 | else | |
20734 | echo "$as_me: failed program was:" >&5 | |
20735 | cat conftest.$ac_ext >&5 | |
20736 | ac_cv_lib_dnet_dnet_ntoa=no | |
20737 | fi | |
20738 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20739 | LIBS=$ac_check_lib_save_LIBS | |
20740 | fi | |
20741 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
20742 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
20743 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 20744 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 20745 | fi |
0fb0dd83 | 20746 | |
21d1c967 | 20747 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
247f5006 VZ |
20748 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
20749 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
20750 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
20751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20752 | else |
247f5006 | 20753 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20754 | LIBS="-ldnet_stub $LIBS" |
247f5006 VZ |
20755 | cat >conftest.$ac_ext <<_ACEOF |
20756 | #line $LINENO "configure" | |
21d1c967 | 20757 | #include "confdefs.h" |
247f5006 | 20758 | |
21d1c967 | 20759 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
20760 | #ifdef __cplusplus |
20761 | extern "C" | |
20762 | #endif | |
21d1c967 | 20763 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
20764 | builtin and then its argument prototype would still apply. */ |
20765 | char dnet_ntoa (); | |
20766 | #ifdef F77_DUMMY_MAIN | |
20767 | # ifdef __cplusplus | |
20768 | extern "C" | |
20769 | # endif | |
20770 | int F77_DUMMY_MAIN() { return 1; } | |
20771 | #endif | |
20772 | int | |
20773 | main () | |
20774 | { | |
20775 | dnet_ntoa (); | |
20776 | ; | |
20777 | return 0; | |
20778 | } | |
20779 | _ACEOF | |
20780 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20782 | (eval $ac_link) 2>&5 | |
20783 | ac_status=$? | |
20784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20785 | (exit $ac_status); } && | |
20786 | { ac_try='test -s conftest$ac_exeext' | |
20787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20788 | (eval $ac_try) 2>&5 | |
20789 | ac_status=$? | |
20790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20791 | (exit $ac_status); }; }; then | |
20792 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
20793 | else | |
20794 | echo "$as_me: failed program was:" >&5 | |
20795 | cat conftest.$ac_ext >&5 | |
20796 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
20797 | fi | |
20798 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20799 | LIBS=$ac_check_lib_save_LIBS | |
20800 | fi | |
20801 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
20802 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
20803 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 20804 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
20805 | fi |
20806 | ||
21d1c967 | 20807 | fi |
247f5006 VZ |
20808 | fi |
20809 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20810 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 20811 | |
21d1c967 GD |
20812 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
20813 | # to get the SysV transport functions. | |
247f5006 | 20814 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
20815 | # needs -lnsl. |
20816 | # The nsl library prevents programs from opening the X display | |
247f5006 VZ |
20817 | # on Irix 5.2, according to T.E. Dickey. |
20818 | # The functions gethostbyname, getservbyname, and inet_addr are | |
20819 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
20820 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
20821 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
20822 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
20823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20824 | else | |
20825 | cat >conftest.$ac_ext <<_ACEOF | |
20826 | #line $LINENO "configure" | |
21d1c967 GD |
20827 | #include "confdefs.h" |
20828 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 20829 | which can conflict with char gethostbyname (); below. */ |
21d1c967 GD |
20830 | #include <assert.h> |
20831 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
20832 | #ifdef __cplusplus |
20833 | extern "C" | |
20834 | #endif | |
21d1c967 | 20835 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
20836 | builtin and then its argument prototype would still apply. */ |
20837 | char gethostbyname (); | |
20838 | char (*f) (); | |
20839 | ||
20840 | #ifdef F77_DUMMY_MAIN | |
20841 | # ifdef __cplusplus | |
20842 | extern "C" | |
20843 | # endif | |
20844 | int F77_DUMMY_MAIN() { return 1; } | |
20845 | #endif | |
20846 | int | |
20847 | main () | |
20848 | { | |
21d1c967 GD |
20849 | /* The GNU C library defines this for functions which it implements |
20850 | to always fail with ENOSYS. Some functions are actually named | |
20851 | something starting with __ and the normal name is an alias. */ | |
20852 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
20853 | choke me | |
20854 | #else | |
247f5006 | 20855 | f = gethostbyname; |
21d1c967 | 20856 | #endif |
90dd450c | 20857 | |
247f5006 VZ |
20858 | ; |
20859 | return 0; | |
20860 | } | |
20861 | _ACEOF | |
20862 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20864 | (eval $ac_link) 2>&5 | |
20865 | ac_status=$? | |
20866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20867 | (exit $ac_status); } && | |
20868 | { ac_try='test -s conftest$ac_exeext' | |
20869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20870 | (eval $ac_try) 2>&5 | |
20871 | ac_status=$? | |
20872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20873 | (exit $ac_status); }; }; then | |
20874 | ac_cv_func_gethostbyname=yes | |
20875 | else | |
20876 | echo "$as_me: failed program was:" >&5 | |
20877 | cat conftest.$ac_ext >&5 | |
20878 | ac_cv_func_gethostbyname=no | |
20879 | fi | |
20880 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20881 | fi | |
20882 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
20883 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 20884 | |
21d1c967 | 20885 | if test $ac_cv_func_gethostbyname = no; then |
247f5006 VZ |
20886 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
20887 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
20888 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
20889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20890 | else |
247f5006 | 20891 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20892 | LIBS="-lnsl $LIBS" |
247f5006 VZ |
20893 | cat >conftest.$ac_ext <<_ACEOF |
20894 | #line $LINENO "configure" | |
21d1c967 | 20895 | #include "confdefs.h" |
247f5006 | 20896 | |
21d1c967 | 20897 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
20898 | #ifdef __cplusplus |
20899 | extern "C" | |
20900 | #endif | |
21d1c967 | 20901 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
20902 | builtin and then its argument prototype would still apply. */ |
20903 | char gethostbyname (); | |
20904 | #ifdef F77_DUMMY_MAIN | |
20905 | # ifdef __cplusplus | |
20906 | extern "C" | |
20907 | # endif | |
20908 | int F77_DUMMY_MAIN() { return 1; } | |
20909 | #endif | |
20910 | int | |
20911 | main () | |
20912 | { | |
20913 | gethostbyname (); | |
20914 | ; | |
20915 | return 0; | |
20916 | } | |
20917 | _ACEOF | |
20918 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20919 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20920 | (eval $ac_link) 2>&5 | |
20921 | ac_status=$? | |
20922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20923 | (exit $ac_status); } && | |
20924 | { ac_try='test -s conftest$ac_exeext' | |
20925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20926 | (eval $ac_try) 2>&5 | |
20927 | ac_status=$? | |
20928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20929 | (exit $ac_status); }; }; then | |
20930 | ac_cv_lib_nsl_gethostbyname=yes | |
20931 | else | |
20932 | echo "$as_me: failed program was:" >&5 | |
20933 | cat conftest.$ac_ext >&5 | |
20934 | ac_cv_lib_nsl_gethostbyname=no | |
20935 | fi | |
20936 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20937 | LIBS=$ac_check_lib_save_LIBS | |
20938 | fi | |
20939 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
20940 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
20941 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
20942 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
8284b0c5 | 20943 | fi |
5c6fa7d2 | 20944 | |
247f5006 VZ |
20945 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
20946 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
20947 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
20948 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
20949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 20950 | else |
247f5006 VZ |
20951 | ac_check_lib_save_LIBS=$LIBS |
20952 | LIBS="-lbsd $LIBS" | |
20953 | cat >conftest.$ac_ext <<_ACEOF | |
20954 | #line $LINENO "configure" | |
20955 | #include "confdefs.h" | |
20956 | ||
20957 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20958 | #ifdef __cplusplus | |
20959 | extern "C" | |
20960 | #endif | |
20961 | /* We use char because int might match the return type of a gcc2 | |
20962 | builtin and then its argument prototype would still apply. */ | |
20963 | char gethostbyname (); | |
20964 | #ifdef F77_DUMMY_MAIN | |
20965 | # ifdef __cplusplus | |
20966 | extern "C" | |
20967 | # endif | |
20968 | int F77_DUMMY_MAIN() { return 1; } | |
20969 | #endif | |
20970 | int | |
20971 | main () | |
20972 | { | |
20973 | gethostbyname (); | |
20974 | ; | |
20975 | return 0; | |
20976 | } | |
20977 | _ACEOF | |
20978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20980 | (eval $ac_link) 2>&5 | |
20981 | ac_status=$? | |
20982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20983 | (exit $ac_status); } && | |
20984 | { ac_try='test -s conftest$ac_exeext' | |
20985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20986 | (eval $ac_try) 2>&5 | |
20987 | ac_status=$? | |
20988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20989 | (exit $ac_status); }; }; then | |
20990 | ac_cv_lib_bsd_gethostbyname=yes | |
20991 | else | |
20992 | echo "$as_me: failed program was:" >&5 | |
20993 | cat conftest.$ac_ext >&5 | |
20994 | ac_cv_lib_bsd_gethostbyname=no | |
20995 | fi | |
20996 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20997 | LIBS=$ac_check_lib_save_LIBS | |
20998 | fi | |
20999 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21000 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21001 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21002 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 21003 | fi |
90dd450c | 21004 | |
247f5006 | 21005 | fi |
90dd450c VZ |
21006 | fi |
21007 | ||
21d1c967 GD |
21008 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
21009 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21010 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
247f5006 VZ |
21011 | # on later versions), says Simon Leinen: it contains gethostby* |
21012 | # variants that don't use the nameserver (or something). -lsocket | |
21013 | # must be given before -lnsl if both are needed. We assume that | |
21014 | # if connect needs -lnsl, so does gethostbyname. | |
21015 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21016 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21017 | if test "${ac_cv_func_connect+set}" = set; then | |
21018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21019 | else | |
21020 | cat >conftest.$ac_ext <<_ACEOF | |
21021 | #line $LINENO "configure" | |
21d1c967 GD |
21022 | #include "confdefs.h" |
21023 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 21024 | which can conflict with char connect (); below. */ |
21d1c967 GD |
21025 | #include <assert.h> |
21026 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
21027 | #ifdef __cplusplus |
21028 | extern "C" | |
21029 | #endif | |
21d1c967 | 21030 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
21031 | builtin and then its argument prototype would still apply. */ |
21032 | char connect (); | |
21033 | char (*f) (); | |
21034 | ||
21035 | #ifdef F77_DUMMY_MAIN | |
21036 | # ifdef __cplusplus | |
21037 | extern "C" | |
21038 | # endif | |
21039 | int F77_DUMMY_MAIN() { return 1; } | |
21040 | #endif | |
21041 | int | |
21042 | main () | |
21043 | { | |
21d1c967 GD |
21044 | /* The GNU C library defines this for functions which it implements |
21045 | to always fail with ENOSYS. Some functions are actually named | |
21046 | something starting with __ and the normal name is an alias. */ | |
21047 | #if defined (__stub_connect) || defined (__stub___connect) | |
21048 | choke me | |
21049 | #else | |
247f5006 | 21050 | f = connect; |
21d1c967 | 21051 | #endif |
90dd450c | 21052 | |
247f5006 VZ |
21053 | ; |
21054 | return 0; | |
21055 | } | |
21056 | _ACEOF | |
21057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21059 | (eval $ac_link) 2>&5 | |
21060 | ac_status=$? | |
21061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21062 | (exit $ac_status); } && | |
21063 | { ac_try='test -s conftest$ac_exeext' | |
21064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21065 | (eval $ac_try) 2>&5 | |
21066 | ac_status=$? | |
21067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21068 | (exit $ac_status); }; }; then | |
21069 | ac_cv_func_connect=yes | |
21070 | else | |
21071 | echo "$as_me: failed program was:" >&5 | |
21072 | cat conftest.$ac_ext >&5 | |
21073 | ac_cv_func_connect=no | |
21074 | fi | |
21075 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21076 | fi | |
21077 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
21078 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 21079 | |
21d1c967 | 21080 | if test $ac_cv_func_connect = no; then |
247f5006 VZ |
21081 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
21082 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
21083 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
21084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 21085 | else |
247f5006 | 21086 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 21087 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
247f5006 VZ |
21088 | cat >conftest.$ac_ext <<_ACEOF |
21089 | #line $LINENO "configure" | |
0fbb762e | 21090 | #include "confdefs.h" |
247f5006 | 21091 | |
21d1c967 | 21092 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
21093 | #ifdef __cplusplus |
21094 | extern "C" | |
21095 | #endif | |
21d1c967 | 21096 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
21097 | builtin and then its argument prototype would still apply. */ |
21098 | char connect (); | |
21099 | #ifdef F77_DUMMY_MAIN | |
21100 | # ifdef __cplusplus | |
21101 | extern "C" | |
21102 | # endif | |
21103 | int F77_DUMMY_MAIN() { return 1; } | |
21104 | #endif | |
21105 | int | |
21106 | main () | |
21107 | { | |
21108 | connect (); | |
21109 | ; | |
21110 | return 0; | |
21111 | } | |
21112 | _ACEOF | |
21113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21115 | (eval $ac_link) 2>&5 | |
21116 | ac_status=$? | |
21117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21118 | (exit $ac_status); } && | |
21119 | { ac_try='test -s conftest$ac_exeext' | |
21120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21121 | (eval $ac_try) 2>&5 | |
21122 | ac_status=$? | |
21123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21124 | (exit $ac_status); }; }; then | |
21125 | ac_cv_lib_socket_connect=yes | |
21126 | else | |
21127 | echo "$as_me: failed program was:" >&5 | |
21128 | cat conftest.$ac_ext >&5 | |
21129 | ac_cv_lib_socket_connect=no | |
21130 | fi | |
21131 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21132 | LIBS=$ac_check_lib_save_LIBS | |
21133 | fi | |
21134 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
21135 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
21136 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 21137 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 21138 | fi |
90dd450c | 21139 | |
21d1c967 | 21140 | fi |
90dd450c | 21141 | |
247f5006 VZ |
21142 | # Guillermo Gomez says -lposix is necessary on A/UX. |
21143 | echo "$as_me:$LINENO: checking for remove" >&5 | |
21144 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
21145 | if test "${ac_cv_func_remove+set}" = set; then | |
21146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21147 | else |
247f5006 VZ |
21148 | cat >conftest.$ac_ext <<_ACEOF |
21149 | #line $LINENO "configure" | |
21d1c967 GD |
21150 | #include "confdefs.h" |
21151 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 21152 | which can conflict with char remove (); below. */ |
21d1c967 GD |
21153 | #include <assert.h> |
21154 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
21155 | #ifdef __cplusplus |
21156 | extern "C" | |
21157 | #endif | |
21d1c967 | 21158 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
21159 | builtin and then its argument prototype would still apply. */ |
21160 | char remove (); | |
21161 | char (*f) (); | |
21162 | ||
21163 | #ifdef F77_DUMMY_MAIN | |
21164 | # ifdef __cplusplus | |
21165 | extern "C" | |
21166 | # endif | |
21167 | int F77_DUMMY_MAIN() { return 1; } | |
21168 | #endif | |
21169 | int | |
21170 | main () | |
21171 | { | |
21d1c967 GD |
21172 | /* The GNU C library defines this for functions which it implements |
21173 | to always fail with ENOSYS. Some functions are actually named | |
21174 | something starting with __ and the normal name is an alias. */ | |
21175 | #if defined (__stub_remove) || defined (__stub___remove) | |
21176 | choke me | |
21177 | #else | |
247f5006 | 21178 | f = remove; |
21d1c967 | 21179 | #endif |
90dd450c | 21180 | |
247f5006 VZ |
21181 | ; |
21182 | return 0; | |
21183 | } | |
21184 | _ACEOF | |
21185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21187 | (eval $ac_link) 2>&5 | |
21188 | ac_status=$? | |
21189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21190 | (exit $ac_status); } && | |
21191 | { ac_try='test -s conftest$ac_exeext' | |
21192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21193 | (eval $ac_try) 2>&5 | |
21194 | ac_status=$? | |
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21196 | (exit $ac_status); }; }; then | |
21197 | ac_cv_func_remove=yes | |
21198 | else | |
21199 | echo "$as_me: failed program was:" >&5 | |
21200 | cat conftest.$ac_ext >&5 | |
21201 | ac_cv_func_remove=no | |
21202 | fi | |
21203 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21204 | fi | |
21205 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
21206 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 21207 | |
21d1c967 | 21208 | if test $ac_cv_func_remove = no; then |
247f5006 VZ |
21209 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
21210 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
21211 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
21212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21213 | else |
247f5006 | 21214 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 21215 | LIBS="-lposix $LIBS" |
247f5006 VZ |
21216 | cat >conftest.$ac_ext <<_ACEOF |
21217 | #line $LINENO "configure" | |
21d1c967 | 21218 | #include "confdefs.h" |
247f5006 | 21219 | |
21d1c967 | 21220 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
21221 | #ifdef __cplusplus |
21222 | extern "C" | |
21223 | #endif | |
21d1c967 | 21224 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
21225 | builtin and then its argument prototype would still apply. */ |
21226 | char remove (); | |
21227 | #ifdef F77_DUMMY_MAIN | |
21228 | # ifdef __cplusplus | |
21229 | extern "C" | |
21230 | # endif | |
21231 | int F77_DUMMY_MAIN() { return 1; } | |
21232 | #endif | |
21233 | int | |
21234 | main () | |
21235 | { | |
21236 | remove (); | |
21237 | ; | |
21238 | return 0; | |
21239 | } | |
21240 | _ACEOF | |
21241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21243 | (eval $ac_link) 2>&5 | |
21244 | ac_status=$? | |
21245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21246 | (exit $ac_status); } && | |
21247 | { ac_try='test -s conftest$ac_exeext' | |
21248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21249 | (eval $ac_try) 2>&5 | |
21250 | ac_status=$? | |
21251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21252 | (exit $ac_status); }; }; then | |
21253 | ac_cv_lib_posix_remove=yes | |
21254 | else | |
21255 | echo "$as_me: failed program was:" >&5 | |
21256 | cat conftest.$ac_ext >&5 | |
21257 | ac_cv_lib_posix_remove=no | |
21258 | fi | |
21259 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21260 | LIBS=$ac_check_lib_save_LIBS | |
21261 | fi | |
21262 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
21263 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
21264 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 21265 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 21266 | fi |
19bc6aad | 21267 | |
90dd450c | 21268 | fi |
19bc6aad | 21269 | |
21d1c967 | 21270 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
247f5006 VZ |
21271 | echo "$as_me:$LINENO: checking for shmat" >&5 |
21272 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
21273 | if test "${ac_cv_func_shmat+set}" = set; then | |
21274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 21275 | else |
247f5006 VZ |
21276 | cat >conftest.$ac_ext <<_ACEOF |
21277 | #line $LINENO "configure" | |
21d1c967 GD |
21278 | #include "confdefs.h" |
21279 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 21280 | which can conflict with char shmat (); below. */ |
21d1c967 GD |
21281 | #include <assert.h> |
21282 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
21283 | #ifdef __cplusplus |
21284 | extern "C" | |
21285 | #endif | |
21d1c967 | 21286 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
21287 | builtin and then its argument prototype would still apply. */ |
21288 | char shmat (); | |
21289 | char (*f) (); | |
21290 | ||
21291 | #ifdef F77_DUMMY_MAIN | |
21292 | # ifdef __cplusplus | |
21293 | extern "C" | |
21294 | # endif | |
21295 | int F77_DUMMY_MAIN() { return 1; } | |
21296 | #endif | |
21297 | int | |
21298 | main () | |
21299 | { | |
21d1c967 GD |
21300 | /* The GNU C library defines this for functions which it implements |
21301 | to always fail with ENOSYS. Some functions are actually named | |
21302 | something starting with __ and the normal name is an alias. */ | |
21303 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
21304 | choke me | |
21305 | #else | |
247f5006 | 21306 | f = shmat; |
21d1c967 | 21307 | #endif |
90dd450c | 21308 | |
247f5006 VZ |
21309 | ; |
21310 | return 0; | |
21311 | } | |
21312 | _ACEOF | |
21313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21315 | (eval $ac_link) 2>&5 | |
21316 | ac_status=$? | |
21317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21318 | (exit $ac_status); } && | |
21319 | { ac_try='test -s conftest$ac_exeext' | |
21320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21321 | (eval $ac_try) 2>&5 | |
21322 | ac_status=$? | |
21323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21324 | (exit $ac_status); }; }; then | |
21325 | ac_cv_func_shmat=yes | |
21326 | else | |
21327 | echo "$as_me: failed program was:" >&5 | |
21328 | cat conftest.$ac_ext >&5 | |
21329 | ac_cv_func_shmat=no | |
21330 | fi | |
21331 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21332 | fi | |
21333 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
21334 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 21335 | |
21d1c967 | 21336 | if test $ac_cv_func_shmat = no; then |
247f5006 VZ |
21337 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
21338 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
21339 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
21340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 21341 | else |
247f5006 | 21342 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 21343 | LIBS="-lipc $LIBS" |
247f5006 VZ |
21344 | cat >conftest.$ac_ext <<_ACEOF |
21345 | #line $LINENO "configure" | |
5c6fa7d2 | 21346 | #include "confdefs.h" |
247f5006 | 21347 | |
5c6fa7d2 | 21348 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
21349 | #ifdef __cplusplus |
21350 | extern "C" | |
21351 | #endif | |
5c6fa7d2 | 21352 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
21353 | builtin and then its argument prototype would still apply. */ |
21354 | char shmat (); | |
21355 | #ifdef F77_DUMMY_MAIN | |
21356 | # ifdef __cplusplus | |
21357 | extern "C" | |
21358 | # endif | |
21359 | int F77_DUMMY_MAIN() { return 1; } | |
21360 | #endif | |
21361 | int | |
21362 | main () | |
21363 | { | |
21364 | shmat (); | |
21365 | ; | |
21366 | return 0; | |
21367 | } | |
21368 | _ACEOF | |
21369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21371 | (eval $ac_link) 2>&5 | |
21372 | ac_status=$? | |
21373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21374 | (exit $ac_status); } && | |
21375 | { ac_try='test -s conftest$ac_exeext' | |
21376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21377 | (eval $ac_try) 2>&5 | |
21378 | ac_status=$? | |
21379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21380 | (exit $ac_status); }; }; then | |
21381 | ac_cv_lib_ipc_shmat=yes | |
21382 | else | |
21383 | echo "$as_me: failed program was:" >&5 | |
21384 | cat conftest.$ac_ext >&5 | |
21385 | ac_cv_lib_ipc_shmat=no | |
21386 | fi | |
21387 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21388 | LIBS=$ac_check_lib_save_LIBS | |
21389 | fi | |
21390 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
21391 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
21392 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 21393 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 21394 | fi |
90dd450c | 21395 | |
90dd450c | 21396 | fi |
21d1c967 | 21397 | fi |
10f2d63a | 21398 | |
21d1c967 | 21399 | # Check for libraries that X11R6 Xt/Xaw programs need. |
247f5006 | 21400 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
21401 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
21402 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
21403 | # check for ICE first), but we must link in the order -lSM -lICE or | |
21404 | # we get undefined symbols. So assume we have SM if we have ICE. | |
21405 | # These have to be linked with before -lX11, unlike the other | |
21406 | # libraries we check for below, so use a different variable. | |
247f5006 VZ |
21407 | # John Interrante, Karl Berry |
21408 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
21409 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
21410 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
21411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21412 | else | |
21413 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 21414 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
247f5006 VZ |
21415 | cat >conftest.$ac_ext <<_ACEOF |
21416 | #line $LINENO "configure" | |
29fd3c0c | 21417 | #include "confdefs.h" |
247f5006 | 21418 | |
21d1c967 | 21419 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
21420 | #ifdef __cplusplus |
21421 | extern "C" | |
21422 | #endif | |
21d1c967 | 21423 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
21424 | builtin and then its argument prototype would still apply. */ |
21425 | char IceConnectionNumber (); | |
21426 | #ifdef F77_DUMMY_MAIN | |
21427 | # ifdef __cplusplus | |
21428 | extern "C" | |
21429 | # endif | |
21430 | int F77_DUMMY_MAIN() { return 1; } | |
21431 | #endif | |
21432 | int | |
21433 | main () | |
21434 | { | |
21435 | IceConnectionNumber (); | |
21436 | ; | |
21437 | return 0; | |
21438 | } | |
21439 | _ACEOF | |
21440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21442 | (eval $ac_link) 2>&5 | |
21443 | ac_status=$? | |
21444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21445 | (exit $ac_status); } && | |
21446 | { ac_try='test -s conftest$ac_exeext' | |
21447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21448 | (eval $ac_try) 2>&5 | |
21449 | ac_status=$? | |
21450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21451 | (exit $ac_status); }; }; then | |
21452 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
21453 | else | |
21454 | echo "$as_me: failed program was:" >&5 | |
21455 | cat conftest.$ac_ext >&5 | |
21456 | ac_cv_lib_ICE_IceConnectionNumber=no | |
21457 | fi | |
21458 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21459 | LIBS=$ac_check_lib_save_LIBS | |
21460 | fi | |
21461 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
21462 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
21463 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 21464 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 21465 | fi |
21d1c967 | 21466 | |
247f5006 | 21467 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 21468 | |
10f2d63a VZ |
21469 | fi |
21470 | ||
8284b0c5 | 21471 | |
21d1c967 | 21472 | if test "$no_x" = "yes"; then |
247f5006 VZ |
21473 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
21474 | echo "$as_me: error: X11 not found" >&2;} | |
21475 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
21476 | fi |
21477 | ||
21478 | GUI_TK_LIBRARY="$X_LIBS" | |
21479 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
21480 | AFMINSTALL=afminstall | |
21481 | COMPILED_X_PROGRAM=0 | |
21482 | ||
247f5006 VZ |
21483 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
21484 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
21485 | ||
21d1c967 GD |
21486 | ac_find_includes= |
21487 | for ac_dir in $SEARCH_INCLUDE; | |
21488 | do | |
21489 | if test -f "$ac_dir/Xm/Xm.h"; then | |
21490 | ac_find_includes=$ac_dir | |
21491 | break | |
21492 | fi | |
21493 | done | |
21494 | ||
21495 | if test "$ac_find_includes" != "" ; then | |
247f5006 VZ |
21496 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
21497 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
21498 | ||
dd0e4a90 VZ |
21499 | ac_path_to_include=$ac_find_includes |
21500 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
21501 | result=$? | |
21502 | if test $result = 0; then | |
21503 | ac_path_to_include="" | |
21504 | else | |
21505 | ac_path_to_include=" -I$ac_find_includes" | |
21506 | fi | |
21507 | ||
21508 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 21509 | else |
247f5006 VZ |
21510 | cat >conftest.$ac_ext <<_ACEOF |
21511 | #line $LINENO "configure" | |
10f2d63a | 21512 | #include "confdefs.h" |
21d1c967 GD |
21513 | |
21514 | #include <Xm/Xm.h> | |
247f5006 VZ |
21515 | |
21516 | #ifdef F77_DUMMY_MAIN | |
21517 | # ifdef __cplusplus | |
21518 | extern "C" | |
21519 | # endif | |
21520 | int F77_DUMMY_MAIN() { return 1; } | |
21521 | #endif | |
21522 | int | |
21523 | main () | |
21524 | { | |
21d1c967 GD |
21525 | |
21526 | int version; | |
21527 | version = xmUseVersion; | |
247f5006 VZ |
21528 | |
21529 | ; | |
21530 | return 0; | |
21531 | } | |
21532 | _ACEOF | |
21533 | rm -f conftest.$ac_objext | |
21534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21535 | (eval $ac_compile) 2>&5 | |
21536 | ac_status=$? | |
21537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21538 | (exit $ac_status); } && | |
21539 | { ac_try='test -s conftest.$ac_objext' | |
21540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21541 | (eval $ac_try) 2>&5 | |
21542 | ac_status=$? | |
21543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21544 | (exit $ac_status); }; }; then | |
21545 | ||
21546 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
21547 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 21548 | COMPILED_X_PROGRAM=1 |
247f5006 | 21549 | |
10f2d63a | 21550 | else |
247f5006 VZ |
21551 | echo "$as_me: failed program was:" >&5 |
21552 | cat conftest.$ac_ext >&5 | |
21553 | ||
21554 | echo "$as_me:$LINENO: result: no" >&5 | |
21555 | echo "${ECHO_T}no" >&6 | |
21556 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
21557 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
21558 | { (exit 1); exit 1; }; } | |
21559 | ||
21560 | ||
10f2d63a | 21561 | fi |
247f5006 | 21562 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 21563 | fi |
10f2d63a | 21564 | |
21d1c967 | 21565 | if test "$COMPILED_X_PROGRAM" = 0; then |
247f5006 VZ |
21566 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
21567 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
21568 | ||
21d1c967 GD |
21569 | ac_find_libraries= |
21570 | for ac_dir in $SEARCH_LIB; | |
21571 | do | |
21572 | for ac_extension in a so sl dylib; do | |
21573 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
21574 | ac_find_libraries=$ac_dir | |
21575 | break 2 | |
21576 | fi | |
21577 | done | |
21578 | done | |
21579 | ||
21580 | if test "$ac_find_libraries" != "" ; then | |
247f5006 VZ |
21581 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
21582 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21583 | ||
21d1c967 | 21584 | |
21d1c967 GD |
21585 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
21586 | result=$? | |
21587 | if test $result = 0; then | |
21588 | ac_path_to_link="" | |
21589 | else | |
21590 | ac_path_to_link=" -L$ac_find_libraries" | |
21591 | fi | |
21592 | ||
21d1c967 | 21593 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 21594 | else |
dd0e4a90 VZ |
21595 | save_CFLAGS=$CFLAGS |
21596 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
21597 | ||
247f5006 VZ |
21598 | cat >conftest.$ac_ext <<_ACEOF |
21599 | #line $LINENO "configure" | |
d836ee96 | 21600 | #include "confdefs.h" |
21d1c967 GD |
21601 | |
21602 | #include <Xm/Xm.h> | |
247f5006 VZ |
21603 | |
21604 | #ifdef F77_DUMMY_MAIN | |
21605 | # ifdef __cplusplus | |
21606 | extern "C" | |
21607 | # endif | |
21608 | int F77_DUMMY_MAIN() { return 1; } | |
21609 | #endif | |
21610 | int | |
21611 | main () | |
21612 | { | |
21d1c967 GD |
21613 | |
21614 | int version; | |
21615 | version = xmUseVersion; | |
247f5006 VZ |
21616 | |
21617 | ; | |
21618 | return 0; | |
21619 | } | |
21620 | _ACEOF | |
21621 | rm -f conftest.$ac_objext | |
21622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21623 | (eval $ac_compile) 2>&5 | |
21624 | ac_status=$? | |
21625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21626 | (exit $ac_status); } && | |
21627 | { ac_try='test -s conftest.$ac_objext' | |
21628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21629 | (eval $ac_try) 2>&5 | |
21630 | ac_status=$? | |
21631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21632 | (exit $ac_status); }; }; then | |
21633 | ||
21634 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
21635 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 21636 | COMPILED_X_PROGRAM=1 |
247f5006 | 21637 | |
d836ee96 | 21638 | else |
247f5006 VZ |
21639 | echo "$as_me: failed program was:" >&5 |
21640 | cat conftest.$ac_ext >&5 | |
21641 | ||
21642 | echo "$as_me:$LINENO: result: no" >&5 | |
21643 | echo "${ECHO_T}no" >&6 | |
21644 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
21645 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
21646 | { (exit 1); exit 1; }; } | |
21647 | ||
21648 | ||
d836ee96 | 21649 | fi |
247f5006 | 21650 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
21651 | |
21652 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
21653 | fi |
21654 | fi | |
21655 | ||
21656 | xpm_link= | |
247f5006 VZ |
21657 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
21658 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
21659 | ||
21d1c967 GD |
21660 | ac_find_libraries= |
21661 | for ac_dir in $SEARCH_LIB; | |
21662 | do | |
21663 | for ac_extension in a so sl dylib; do | |
21664 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
21665 | ac_find_libraries=$ac_dir | |
21666 | break 2 | |
21667 | fi | |
21668 | done | |
21669 | done | |
21670 | ||
21671 | if test "$ac_find_libraries" != "" ; then | |
247f5006 | 21672 | |
21d1c967 GD |
21673 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
21674 | result=$? | |
21675 | if test $result = 0; then | |
21676 | ac_path_to_link="" | |
21677 | else | |
21678 | ac_path_to_link=" -L$ac_find_libraries" | |
21679 | fi | |
21680 | ||
21681 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 21682 | |
21d1c967 | 21683 | xpm_link=" -lXpm" |
247f5006 | 21684 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 21685 | #define wxHAVE_LIB_XPM 1 |
247f5006 | 21686 | _ACEOF |
90dd450c | 21687 | |
247f5006 VZ |
21688 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
21689 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 21690 | else |
dd0e4a90 VZ |
21691 | save_CFLAGS=$CFLAGS |
21692 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
21693 | ||
247f5006 VZ |
21694 | cat >conftest.$ac_ext <<_ACEOF |
21695 | #line $LINENO "configure" | |
d836ee96 | 21696 | #include "confdefs.h" |
21d1c967 GD |
21697 | |
21698 | #include <X11/xpm.h> | |
247f5006 VZ |
21699 | |
21700 | #ifdef F77_DUMMY_MAIN | |
21701 | # ifdef __cplusplus | |
21702 | extern "C" | |
21703 | # endif | |
21704 | int F77_DUMMY_MAIN() { return 1; } | |
21705 | #endif | |
21706 | int | |
21707 | main () | |
21708 | { | |
21d1c967 GD |
21709 | |
21710 | int version; | |
21711 | version = XpmLibraryVersion(); | |
247f5006 VZ |
21712 | |
21713 | ; | |
21714 | return 0; | |
21715 | } | |
21716 | _ACEOF | |
21717 | rm -f conftest.$ac_objext | |
21718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21719 | (eval $ac_compile) 2>&5 | |
21720 | ac_status=$? | |
21721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21722 | (exit $ac_status); } && | |
21723 | { ac_try='test -s conftest.$ac_objext' | |
21724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21725 | (eval $ac_try) 2>&5 | |
21726 | ac_status=$? | |
21727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21728 | (exit $ac_status); }; }; then | |
21729 | ||
21d1c967 | 21730 | xpm_link=" -lXpm" |
247f5006 | 21731 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 21732 | #define wxHAVE_LIB_XPM 1 |
247f5006 | 21733 | _ACEOF |
21d1c967 | 21734 | |
247f5006 VZ |
21735 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
21736 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 21737 | COMPILED_X_PROGRAM=0 |
247f5006 | 21738 | |
d836ee96 | 21739 | else |
247f5006 VZ |
21740 | echo "$as_me: failed program was:" >&5 |
21741 | cat conftest.$ac_ext >&5 | |
21742 | ||
21743 | echo "$as_me:$LINENO: result: no" >&5 | |
21744 | echo "${ECHO_T}no" >&6 | |
21745 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
21746 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
21747 | ||
21748 | ||
d836ee96 | 21749 | fi |
247f5006 | 21750 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
21751 | |
21752 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
21753 | fi |
21754 | ||
247f5006 VZ |
21755 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
21756 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
21757 | libp_link="" |
21758 | libsm_ice_link="" | |
21759 | libs_found=0 | |
21760 | for libp in "" " -lXp"; do | |
21761 | if test "$libs_found" = "0"; then | |
21762 | for libsm_ice in " -lSM -lICE"; do | |
247f5006 | 21763 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
21764 | save_LIBS="$LIBS" |
21765 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
21766 | save_CFLAGS=$CFLAGS |
21767 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
21768 | ||
247f5006 VZ |
21769 | cat >conftest.$ac_ext <<_ACEOF |
21770 | #line $LINENO "configure" | |
6a30f1c8 | 21771 | #include "confdefs.h" |
17234b26 | 21772 | |
6a30f1c8 MB |
21773 | #include <Xm/Xm.h> |
21774 | #include <Xm/List.h> | |
247f5006 VZ |
21775 | |
21776 | #ifdef F77_DUMMY_MAIN | |
21777 | # ifdef __cplusplus | |
21778 | extern "C" | |
21779 | # endif | |
21780 | int F77_DUMMY_MAIN() { return 1; } | |
21781 | #endif | |
21782 | int | |
21783 | main () | |
21784 | { | |
6a30f1c8 MB |
21785 | |
21786 | XmString string = NULL; | |
21787 | Widget w = NULL; | |
21788 | int position = 0; | |
21789 | XmListAddItem(w, string, position); | |
247f5006 VZ |
21790 | |
21791 | ; | |
21792 | return 0; | |
21793 | } | |
21794 | _ACEOF | |
21795 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21797 | (eval $ac_link) 2>&5 | |
21798 | ac_status=$? | |
21799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21800 | (exit $ac_status); } && | |
21801 | { ac_try='test -s conftest$ac_exeext' | |
21802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21803 | (eval $ac_try) 2>&5 | |
21804 | ac_status=$? | |
21805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21806 | (exit $ac_status); }; }; then | |
21807 | ||
6a30f1c8 MB |
21808 | libp_link="$libp" |
21809 | libsm_ice_link="$libsm_ice" | |
247f5006 VZ |
21810 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
21811 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 21812 | libs_found=1 |
247f5006 | 21813 | |
6a30f1c8 | 21814 | else |
247f5006 VZ |
21815 | echo "$as_me: failed program was:" >&5 |
21816 | cat conftest.$ac_ext >&5 | |
21817 | ||
21818 | ||
6a30f1c8 | 21819 | fi |
247f5006 | 21820 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 21821 | |
6a30f1c8 | 21822 | LIBS="$save_LIBS" |
dd0e4a90 | 21823 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
21824 | fi |
21825 | done | |
21826 | fi | |
21827 | done | |
21828 | ||
21829 | if test "$libs_found" = "0"; then | |
247f5006 VZ |
21830 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
21831 | echo "${ECHO_T}can't find the right libraries" >&6 | |
21832 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
21833 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
21834 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
21835 | fi |
21836 | ||
21837 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
21838 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
21839 | TOOLKIT=MOTIF | |
21840 | GUIDIST=MOTIF_DIST | |
21841 | fi | |
21842 | ||
21843 | if test "$wxUSE_MAC" = 1; then | |
21844 | if test "$wxUSE_PRECOMP" = "yes"; then | |
21845 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
21846 | else | |
21847 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
21848 | fi | |
21849 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
21850 | CFLAGS="$CFLAGS -fpascal-strings" | |
21851 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
21852 | ||
21853 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
21854 | TOOLKIT=MAC | |
21855 | GUIDIST=MACX_DIST | |
21856 | fi | |
21857 | ||
21858 | if test "$wxUSE_PM" = 1; then | |
21859 | TOOLKIT=PM | |
21860 | GUIDIST=GTK_DIST | |
21861 | fi | |
21862 | ||
21863 | if test "$TOOLKIT" = "PM" ; then | |
21864 | TOOLKIT_DIR="os2" | |
21865 | else | |
21866 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
21867 | fi | |
21868 | ||
21869 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
21870 | ||
21871 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
21872 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
21873 | ||
21874 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
21875 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
21876 | ||
21877 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
21878 | if test "$wxUSE_X11" = 1; then | |
21879 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
21880 | else | |
21881 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
21882 | fi | |
21883 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
21884 | WIDGET_SET=univ | |
21885 | else | |
21886 | ALL_OBJECTS="\$(GUIOBJS)" | |
21887 | ALL_SOURCES="\$(ALL_SOURCES)" | |
21888 | ALL_HEADERS="\$(ALL_HEADERS)" | |
21889 | fi | |
21890 | ||
21891 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
21892 | ||
21893 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
21894 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
21895 | fi | |
21896 | ||
21897 | if test "$wxUSE_HTML" = "yes"; then | |
21898 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
21899 | fi | |
21900 | ||
21901 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
21902 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
21903 | fi | |
21904 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
21905 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
21906 | fi | |
21907 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
21908 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
21909 | fi | |
21910 | ||
21911 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
21912 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 21913 | else |
21d1c967 GD |
21914 | USE_GUI=0 |
21915 | ||
21916 | TOOLKIT_DIR="base" | |
21917 | ||
21918 | if test "$USE_WIN32" = 1 ; then | |
21919 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
21920 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
21921 | ||
21922 | TOOLKIT="MSW" | |
21923 | else | |
21924 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
21925 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
21926 | fi | |
21927 | ||
21928 | ALL_SOURCES="\$(ALL_SOURCES)" | |
21929 | ALL_HEADERS="\$(ALL_HEADERS)" | |
21930 | ||
21931 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
21932 | ||
21933 | GUIDIST="BASE_DIST" | |
21934 | DISTDIR="wxBase" | |
d836ee96 VZ |
21935 | fi |
21936 | ||
8284b0c5 | 21937 | |
21d1c967 GD |
21938 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
21939 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 21940 | fi |
21d1c967 GD |
21941 | |
21942 | if test "$wxUSE_REGEX" = "builtin" ; then | |
21943 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 21944 | fi |
21d1c967 GD |
21945 | if test "$wxUSE_ZLIB" = "builtin" ; then |
21946 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
21947 | fi |
21948 | ||
8284b0c5 | 21949 | |
21d1c967 GD |
21950 | if test "$wxUSE_OPENGL" = "yes"; then |
21951 | if test "$wxUSE_MAC" = 1; then | |
21952 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
21953 | elif test "$wxUSE_MSW" = 1; then | |
21954 | OPENGL_LIBS="-lopengl32 -lglu32" | |
21955 | else | |
247f5006 VZ |
21956 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
21957 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
21958 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
21959 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
21960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21961 | fi | |
21962 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
21963 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
21964 | else | |
21965 | # Is the header compilable? | |
21966 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
21967 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
21968 | cat >conftest.$ac_ext <<_ACEOF | |
21969 | #line $LINENO "configure" | |
10f2d63a | 21970 | #include "confdefs.h" |
247f5006 | 21971 | $ac_includes_default |
21d1c967 | 21972 | #include <GL/gl.h> |
247f5006 VZ |
21973 | _ACEOF |
21974 | rm -f conftest.$ac_objext | |
21975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21976 | (eval $ac_compile) 2>&5 | |
21977 | ac_status=$? | |
21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21979 | (exit $ac_status); } && | |
21980 | { ac_try='test -s conftest.$ac_objext' | |
21981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21982 | (eval $ac_try) 2>&5 | |
21983 | ac_status=$? | |
21984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21985 | (exit $ac_status); }; }; then | |
21986 | ac_header_compiler=yes | |
21987 | else | |
21988 | echo "$as_me: failed program was:" >&5 | |
21989 | cat conftest.$ac_ext >&5 | |
21990 | ac_header_compiler=no | |
21991 | fi | |
21992 | rm -f conftest.$ac_objext conftest.$ac_ext | |
21993 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21994 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21995 | ||
21996 | # Is the header present? | |
21997 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
21998 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
21999 | cat >conftest.$ac_ext <<_ACEOF | |
22000 | #line $LINENO "configure" | |
22001 | #include "confdefs.h" | |
22002 | #include <GL/gl.h> | |
22003 | _ACEOF | |
22004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22006 | ac_status=$? | |
22007 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
22008 | rm -f conftest.er1 | |
22009 | cat conftest.err >&5 | |
22010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22011 | (exit $ac_status); } >/dev/null; then | |
22012 | if test -s conftest.err; then | |
22013 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22014 | else | |
22015 | ac_cpp_err= | |
22016 | fi | |
22017 | else | |
22018 | ac_cpp_err=yes | |
22019 | fi | |
22020 | if test -z "$ac_cpp_err"; then | |
22021 | ac_header_preproc=yes | |
22022 | else | |
22023 | echo "$as_me: failed program was:" >&5 | |
698dcdb6 | 22024 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
22025 | ac_header_preproc=no |
22026 | fi | |
22027 | rm -f conftest.err conftest.$ac_ext | |
22028 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22029 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22030 | ||
22031 | # So? What about this header? | |
22032 | case $ac_header_compiler:$ac_header_preproc in | |
22033 | yes:no ) | |
22034 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22035 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22036 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
22037 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};; | |
22038 | no:yes ) | |
22039 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
22040 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
22041 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
22042 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
22043 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
22044 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;};; | |
22045 | esac | |
22046 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
22047 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
22048 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
22049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22050 | else | |
22051 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 22052 | fi |
247f5006 VZ |
22053 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
22054 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
22055 | ||
698dcdb6 | 22056 | fi |
247f5006 VZ |
22057 | if test $ac_cv_header_GL_gl_h = yes; then |
22058 | ||
22059 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
22060 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
22061 | ||
21d1c967 GD |
22062 | ac_find_libraries= |
22063 | for ac_dir in $SEARCH_LIB; | |
22064 | do | |
22065 | for ac_extension in a so sl dylib; do | |
22066 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
22067 | ac_find_libraries=$ac_dir | |
22068 | break 2 | |
22069 | fi | |
22070 | done | |
22071 | done | |
22072 | ||
22073 | if test "$ac_find_libraries" != "" ; then | |
247f5006 | 22074 | |
21d1c967 GD |
22075 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
22076 | result=$? | |
22077 | if test $result = 0; then | |
22078 | ac_path_to_link="" | |
22079 | else | |
22080 | ac_path_to_link=" -L$ac_find_libraries" | |
22081 | fi | |
22082 | ||
22083 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
22084 | LDFLAGS_GL="$LDFLAGS" | |
22085 | else | |
22086 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
22087 | fi | |
22088 | OPENGL_LIBS="-lGL -lGLU" | |
247f5006 VZ |
22089 | echo "$as_me:$LINENO: result: yes" >&5 |
22090 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 22091 | else |
247f5006 VZ |
22092 | echo "$as_me:$LINENO: result: no" >&5 |
22093 | echo "${ECHO_T}no" >&6 | |
22094 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
22095 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
22096 | ||
21d1c967 GD |
22097 | ac_find_libraries= |
22098 | for ac_dir in $SEARCH_LIB; | |
22099 | do | |
22100 | for ac_extension in a so sl dylib; do | |
22101 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
22102 | ac_find_libraries=$ac_dir | |
22103 | break 2 | |
22104 | fi | |
22105 | done | |
22106 | done | |
22107 | ||
22108 | if test "$ac_find_libraries" != "" ; then | |
247f5006 | 22109 | |
21d1c967 GD |
22110 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
22111 | result=$? | |
22112 | if test $result = 0; then | |
22113 | ac_path_to_link="" | |
22114 | else | |
22115 | ac_path_to_link=" -L$ac_find_libraries" | |
22116 | fi | |
22117 | ||
22118 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
22119 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
247f5006 VZ |
22120 | echo "$as_me:$LINENO: result: yes" >&5 |
22121 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 22122 | else |
247f5006 VZ |
22123 | echo "$as_me:$LINENO: result: no" >&5 |
22124 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22125 | fi |
22126 | fi | |
247f5006 | 22127 | |
5c6fa7d2 | 22128 | fi |
52127426 | 22129 | |
8284b0c5 | 22130 | |
247f5006 | 22131 | |
21d1c967 | 22132 | if test "x$OPENGL_LIBS" = "x"; then |
247f5006 VZ |
22133 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
22134 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
22135 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
22136 | fi |
22137 | fi | |
90dd450c | 22138 | |
21d1c967 | 22139 | if test "$wxUSE_OPENGL" = "yes"; then |
247f5006 | 22140 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22141 | #define wxUSE_OPENGL 1 |
247f5006 | 22142 | _ACEOF |
21d1c967 | 22143 | |
247f5006 | 22144 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22145 | #define wxUSE_GLCANVAS 1 |
247f5006 | 22146 | _ACEOF |
21d1c967 GD |
22147 | |
22148 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
22149 | fi | |
10f2d63a | 22150 | fi |
21d1c967 GD |
22151 | |
22152 | if test -z "$TOOLKIT_VPATH" ; then | |
22153 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 22154 | fi |
21d1c967 GD |
22155 | |
22156 | if test -n "$TOOLKIT" ; then | |
22157 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
22158 | fi | |
22159 | ||
22160 | lib_unicode_suffix= | |
22161 | if test "$wxUSE_UNICODE" = "yes"; then | |
22162 | lib_unicode_suffix=u | |
90dd450c | 22163 | fi |
698dcdb6 | 22164 | |
21d1c967 GD |
22165 | lib_debug_suffix= |
22166 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
22167 | lib_debug_suffix=d | |
22168 | fi | |
698dcdb6 | 22169 | |
21d1c967 GD |
22170 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
22171 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
22172 | ||
22173 | if test "$cross_compiling" = "yes"; then | |
22174 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
22175 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
22176 | fi | |
22177 | ||
22178 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
22179 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
22180 | ||
22181 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
22182 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
22183 | ||
22184 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
22185 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
22186 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
22187 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
22188 | ||
22189 | case "${host}" in | |
22190 | *-*-cygwin* | *-*-mingw32* ) | |
22191 | ||
247f5006 VZ |
22192 | |
22193 | ||
17234b26 | 22194 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
22195 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
22196 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
22197 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
22198 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
22199 | else | |
22200 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
22201 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
22202 | fi | |
22203 | ;; | |
22204 | ||
22205 | *-*-darwin* ) | |
22206 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 22207 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
22208 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
22209 | fi | |
22210 | ;; | |
22211 | esac | |
22212 | ||
22213 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
22214 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
22215 | ||
22216 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
22217 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
22218 | ||
22219 | if test "$wxUSE_OPENGL" = "yes"; then | |
22220 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
22221 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
22222 | fi | |
22223 | ||
8284b0c5 MB |
22224 | |
22225 | ||
21d1c967 GD |
22226 | if test "$wxUSE_SHARED" = "yes"; then |
22227 | case "${host}" in | |
22228 | *-pc-os2_emx | *-pc-os2-emx | \ | |
22229 | *-pc-msdosdjgpp ) | |
22230 | wxUSE_SHARED=no | |
247f5006 VZ |
22231 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
22232 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
22233 | ;; |
22234 | esac | |
22235 | fi | |
22236 | ||
22237 | if test "$wxUSE_SHARED" = "yes"; then | |
22238 | ||
22239 | if test "$wxUSE_OPENGL" = "yes"; then | |
22240 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
22241 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
22242 | else | |
22243 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
22244 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
22245 | fi | |
22246 | ||
22247 | if test "$GCC" = "yes"; then | |
22248 | PIC_FLAG="-fPIC" | |
22249 | fi | |
22250 | ||
22251 | SHARED_LD="${CXX} -shared -o" | |
22252 | ||
22253 | case "${host}" in | |
22254 | *-hp-hpux* ) | |
22255 | if test "$GCC" == "yes"; then | |
22256 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
22257 | else | |
22258 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
22259 | ||
22260 | SHARED_LD="${CXX} -b -o" | |
22261 | PIC_FLAG="+Z" | |
22262 | fi | |
22263 | ||
22264 | if test "$wxUSE_OPENGL" = "yes"; then | |
22265 | WX_ALL_INSTALLED="preinstall_gl" | |
22266 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
22267 | else | |
22268 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
22269 | fi | |
22270 | ;; | |
22271 | ||
22272 | *-*-linux* ) | |
22273 | if test "$GCC" != "yes"; then | |
247f5006 VZ |
22274 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
22275 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
22276 | if test "${wx_cv_prog_icc+set}" = set; then | |
22277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22278 | else | |
22279 | ||
22280 | cat >conftest.$ac_ext <<_ACEOF | |
22281 | #line $LINENO "configure" | |
698dcdb6 | 22282 | #include "confdefs.h" |
90dd450c | 22283 | |
247f5006 VZ |
22284 | #ifdef F77_DUMMY_MAIN |
22285 | # ifdef __cplusplus | |
22286 | extern "C" | |
22287 | # endif | |
22288 | int F77_DUMMY_MAIN() { return 1; } | |
22289 | #endif | |
22290 | int | |
22291 | main () | |
22292 | { | |
90dd450c | 22293 | |
21d1c967 GD |
22294 | #ifndef __INTEL_COMPILER |
22295 | #error Not icc | |
22296 | #endif | |
247f5006 VZ |
22297 | |
22298 | ; | |
22299 | return 0; | |
22300 | } | |
22301 | _ACEOF | |
22302 | rm -f conftest.$ac_objext | |
22303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22304 | (eval $ac_compile) 2>&5 | |
22305 | ac_status=$? | |
22306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22307 | (exit $ac_status); } && | |
22308 | { ac_try='test -s conftest.$ac_objext' | |
22309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22310 | (eval $ac_try) 2>&5 | |
22311 | ac_status=$? | |
22312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22313 | (exit $ac_status); }; }; then | |
21d1c967 | 22314 | wx_cv_prog_icc=yes |
6232543b | 22315 | else |
247f5006 VZ |
22316 | echo "$as_me: failed program was:" >&5 |
22317 | cat conftest.$ac_ext >&5 | |
22318 | wx_cv_prog_icc=no | |
22319 | ||
5c6fa7d2 | 22320 | fi |
247f5006 | 22321 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 22322 | |
247f5006 VZ |
22323 | fi |
22324 | echo "$as_me:$LINENO: result: $wx_cv_prog_icc" >&5 | |
22325 | echo "${ECHO_T}$wx_cv_prog_icc" >&6 | |
21d1c967 GD |
22326 | if test "$wx_cv_prog_icc" = "yes"; then |
22327 | PIC_FLAG="-KPIC" | |
22328 | fi | |
22329 | fi | |
22330 | ||
22331 | if test "$wxUSE_SONAME" = "yes" ; then | |
22332 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
22333 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
22334 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
22335 | fi | |
22336 | ;; | |
22337 | ||
22338 | *-*-solaris2* ) | |
22339 | if test "$GCC" = yes ; then | |
22340 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
22341 | else | |
22342 | SHARED_LD="${CXX} -G -o" | |
22343 | PIC_FLAG="-KPIC" | |
22344 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
22345 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
22346 | fi | |
22347 | ;; | |
22348 | ||
22349 | *-*-darwin* ) | |
22350 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
22351 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
22352 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
22353 | PIC_FLAG="-dynamic -fPIC" | |
22354 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
22355 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
22356 | ;; | |
22357 | ||
22358 | *-*-aix* ) | |
321d2b14 VZ |
22359 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
22360 | set dummy makeC++SharedLib; ac_word=$2 | |
247f5006 VZ |
22361 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22363 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
22364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
321d2b14 VZ |
22365 | else |
22366 | if test -n "$AIX_CXX_LD"; then | |
22367 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
22368 | else | |
247f5006 VZ |
22369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22370 | for as_dir in $PATH | |
22371 | do | |
22372 | IFS=$as_save_IFS | |
22373 | test -z "$as_dir" && as_dir=. | |
22374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22375 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22376 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
22377 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22378 | break 2 | |
22379 | fi | |
22380 | done | |
22381 | done | |
22382 | ||
321d2b14 VZ |
22383 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
22384 | fi | |
22385 | fi | |
247f5006 | 22386 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
321d2b14 | 22387 | if test -n "$AIX_CXX_LD"; then |
247f5006 VZ |
22388 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
22389 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
321d2b14 | 22390 | else |
247f5006 VZ |
22391 | echo "$as_me:$LINENO: result: no" >&5 |
22392 | echo "${ECHO_T}no" >&6 | |
321d2b14 VZ |
22393 | fi |
22394 | ||
8284b0c5 | 22395 | |
321d2b14 | 22396 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
21d1c967 GD |
22397 | ;; |
22398 | ||
22399 | *-*-cygwin* | *-*-mingw32* ) | |
22400 | ||
22401 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
22402 | ||
22403 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
22404 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
22405 | ||
22406 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
22407 | ||
22408 | if test "$wxUSE_OPENGL" = "yes"; then | |
22409 | WX_ALL_INSTALLED="preinstall_gl" | |
22410 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
22411 | else | |
22412 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
22413 | fi | |
22414 | ;; | |
22415 | ||
22416 | *-*-beos* ) | |
22417 | SHARED_LD="${LD} -shared -o" | |
22418 | ;; | |
22419 | ||
22420 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
22421 | *-*-sunos4* | \ | |
22422 | *-*-irix5* | *-*-irix6* | \ | |
22423 | *-*-osf* | \ | |
22424 | *-*-dgux5* | \ | |
22425 | *-*-sysv5* ) | |
22426 | ;; | |
22427 | ||
22428 | *) | |
247f5006 VZ |
22429 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
22430 | echo "$as_me: error: unknown system type $host." >&2;} | |
22431 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
22432 | esac |
22433 | ||
22434 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
22435 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
22436 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
22437 | fi | |
22438 | ||
22439 | WX_TARGET_LIBRARY_TYPE="so" | |
22440 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 22441 | fi |
10f2d63a | 22442 | |
21d1c967 GD |
22443 | if test "$wxUSE_SHARED" = "no"; then |
22444 | ||
22445 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
22446 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
22447 | fi | |
22448 | ||
22449 | if test "$wxUSE_MAC" = 1; then | |
22450 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
22451 | fi | |
22452 | ||
22453 | if test "$wxUSE_OPENGL" = "yes"; then | |
22454 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
22455 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
22456 | else | |
22457 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
22458 | fi | |
22459 | ||
22460 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
22461 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
22462 | ||
22463 | WX_TARGET_LIBRARY_TYPE="a" | |
22464 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 22465 | fi |
1e487827 | 22466 | |
21d1c967 GD |
22467 | if test "$wxUSE_MAC" = 1; then |
22468 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
22469 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
22470 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
22471 | # Extract the first word of "Rez", so it can be a program name with args. | |
22472 | set dummy Rez; ac_word=$2 | |
247f5006 VZ |
22473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22475 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
22476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 22477 | else |
21d1c967 GD |
22478 | if test -n "$RESCOMP"; then |
22479 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 22480 | else |
247f5006 VZ |
22481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22482 | for as_dir in $PATH | |
22483 | do | |
22484 | IFS=$as_save_IFS | |
22485 | test -z "$as_dir" && as_dir=. | |
22486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22488 | ac_cv_prog_RESCOMP="Rez" | |
22489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22490 | break 2 | |
22491 | fi | |
22492 | done | |
22493 | done | |
22494 | ||
21d1c967 | 22495 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 22496 | fi |
b93d0d08 | 22497 | fi |
247f5006 | 22498 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 22499 | if test -n "$RESCOMP"; then |
247f5006 VZ |
22500 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
22501 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 22502 | else |
247f5006 VZ |
22503 | echo "$as_me:$LINENO: result: no" >&5 |
22504 | echo "${ECHO_T}no" >&6 | |
90dd450c | 22505 | fi |
b93d0d08 | 22506 | |
21d1c967 GD |
22507 | # Extract the first word of "DeRez", so it can be a program name with args. |
22508 | set dummy DeRez; ac_word=$2 | |
247f5006 VZ |
22509 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22510 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22511 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
22512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 22513 | else |
21d1c967 GD |
22514 | if test -n "$DEREZ"; then |
22515 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 22516 | else |
247f5006 VZ |
22517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22518 | for as_dir in $PATH | |
22519 | do | |
22520 | IFS=$as_save_IFS | |
22521 | test -z "$as_dir" && as_dir=. | |
22522 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22523 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22524 | ac_cv_prog_DEREZ="DeRez" | |
22525 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22526 | break 2 | |
22527 | fi | |
22528 | done | |
22529 | done | |
22530 | ||
21d1c967 | 22531 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 22532 | fi |
90dd450c | 22533 | fi |
247f5006 | 22534 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 22535 | if test -n "$DEREZ"; then |
247f5006 VZ |
22536 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
22537 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 22538 | else |
247f5006 VZ |
22539 | echo "$as_me:$LINENO: result: no" >&5 |
22540 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 22541 | fi |
698dcdb6 | 22542 | |
21d1c967 GD |
22543 | MACOSX_BUNDLE="bundle" |
22544 | if test "$wxUSE_SHARED" = "yes"; then | |
22545 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
22546 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
22547 | else | |
22548 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
22549 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
22550 | fi | |
22551 | else | |
22552 | if test "$wxUSE_PM" = 1; then | |
22553 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 22554 | fi |
4f14bcd8 | 22555 | fi |
10f2d63a | 22556 | |
8284b0c5 | 22557 | |
247f5006 VZ |
22558 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
22559 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
22560 | if test "${ac_cv_type_mode_t+set}" = set; then | |
22561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 22562 | else |
247f5006 VZ |
22563 | cat >conftest.$ac_ext <<_ACEOF |
22564 | #line $LINENO "configure" | |
52127426 | 22565 | #include "confdefs.h" |
247f5006 VZ |
22566 | $ac_includes_default |
22567 | #ifdef F77_DUMMY_MAIN | |
22568 | # ifdef __cplusplus | |
22569 | extern "C" | |
22570 | # endif | |
22571 | int F77_DUMMY_MAIN() { return 1; } | |
8284b0c5 | 22572 | #endif |
247f5006 VZ |
22573 | int |
22574 | main () | |
22575 | { | |
22576 | if ((mode_t *) 0) | |
22577 | return 0; | |
22578 | if (sizeof (mode_t)) | |
22579 | return 0; | |
22580 | ; | |
22581 | return 0; | |
22582 | } | |
22583 | _ACEOF | |
22584 | rm -f conftest.$ac_objext | |
22585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22586 | (eval $ac_compile) 2>&5 | |
22587 | ac_status=$? | |
22588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22589 | (exit $ac_status); } && | |
22590 | { ac_try='test -s conftest.$ac_objext' | |
22591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22592 | (eval $ac_try) 2>&5 | |
22593 | ac_status=$? | |
22594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22595 | (exit $ac_status); }; }; then | |
8284b0c5 | 22596 | ac_cv_type_mode_t=yes |
7b4a847f | 22597 | else |
247f5006 VZ |
22598 | echo "$as_me: failed program was:" >&5 |
22599 | cat conftest.$ac_ext >&5 | |
22600 | ac_cv_type_mode_t=no | |
52127426 | 22601 | fi |
247f5006 | 22602 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 22603 | fi |
247f5006 VZ |
22604 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
22605 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
22606 | if test $ac_cv_type_mode_t = yes; then | |
22607 | : | |
22608 | else | |
22609 | ||
22610 | cat >>confdefs.h <<_ACEOF | |
8284b0c5 | 22611 | #define mode_t int |
247f5006 | 22612 | _ACEOF |
8284b0c5 MB |
22613 | |
22614 | fi | |
22615 | ||
247f5006 VZ |
22616 | echo "$as_me:$LINENO: checking for off_t" >&5 |
22617 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
22618 | if test "${ac_cv_type_off_t+set}" = set; then | |
22619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 22620 | else |
247f5006 VZ |
22621 | cat >conftest.$ac_ext <<_ACEOF |
22622 | #line $LINENO "configure" | |
8284b0c5 | 22623 | #include "confdefs.h" |
247f5006 VZ |
22624 | $ac_includes_default |
22625 | #ifdef F77_DUMMY_MAIN | |
22626 | # ifdef __cplusplus | |
22627 | extern "C" | |
22628 | # endif | |
22629 | int F77_DUMMY_MAIN() { return 1; } | |
8284b0c5 | 22630 | #endif |
247f5006 VZ |
22631 | int |
22632 | main () | |
22633 | { | |
22634 | if ((off_t *) 0) | |
22635 | return 0; | |
22636 | if (sizeof (off_t)) | |
22637 | return 0; | |
22638 | ; | |
22639 | return 0; | |
22640 | } | |
22641 | _ACEOF | |
22642 | rm -f conftest.$ac_objext | |
22643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22644 | (eval $ac_compile) 2>&5 | |
22645 | ac_status=$? | |
22646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22647 | (exit $ac_status); } && | |
22648 | { ac_try='test -s conftest.$ac_objext' | |
22649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22650 | (eval $ac_try) 2>&5 | |
22651 | ac_status=$? | |
22652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22653 | (exit $ac_status); }; }; then | |
8284b0c5 | 22654 | ac_cv_type_off_t=yes |
5c6fa7d2 | 22655 | else |
247f5006 VZ |
22656 | echo "$as_me: failed program was:" >&5 |
22657 | cat conftest.$ac_ext >&5 | |
22658 | ac_cv_type_off_t=no | |
8284b0c5 | 22659 | fi |
247f5006 | 22660 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 22661 | fi |
247f5006 VZ |
22662 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
22663 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
22664 | if test $ac_cv_type_off_t = yes; then | |
22665 | : | |
22666 | else | |
22667 | ||
22668 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 22669 | #define off_t long |
247f5006 | 22670 | _ACEOF |
10f2d63a | 22671 | |
90dd450c | 22672 | fi |
10f2d63a | 22673 | |
247f5006 VZ |
22674 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
22675 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
22676 | if test "${ac_cv_type_pid_t+set}" = set; then | |
22677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 22678 | else |
247f5006 VZ |
22679 | cat >conftest.$ac_ext <<_ACEOF |
22680 | #line $LINENO "configure" | |
10f2d63a | 22681 | #include "confdefs.h" |
247f5006 VZ |
22682 | $ac_includes_default |
22683 | #ifdef F77_DUMMY_MAIN | |
22684 | # ifdef __cplusplus | |
22685 | extern "C" | |
22686 | # endif | |
22687 | int F77_DUMMY_MAIN() { return 1; } | |
8284b0c5 | 22688 | #endif |
247f5006 VZ |
22689 | int |
22690 | main () | |
22691 | { | |
22692 | if ((pid_t *) 0) | |
22693 | return 0; | |
22694 | if (sizeof (pid_t)) | |
22695 | return 0; | |
22696 | ; | |
22697 | return 0; | |
22698 | } | |
22699 | _ACEOF | |
22700 | rm -f conftest.$ac_objext | |
22701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22702 | (eval $ac_compile) 2>&5 | |
22703 | ac_status=$? | |
22704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22705 | (exit $ac_status); } && | |
22706 | { ac_try='test -s conftest.$ac_objext' | |
22707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22708 | (eval $ac_try) 2>&5 | |
22709 | ac_status=$? | |
22710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22711 | (exit $ac_status); }; }; then | |
90dd450c | 22712 | ac_cv_type_pid_t=yes |
698dcdb6 | 22713 | else |
247f5006 VZ |
22714 | echo "$as_me: failed program was:" >&5 |
22715 | cat conftest.$ac_ext >&5 | |
22716 | ac_cv_type_pid_t=no | |
579d8138 | 22717 | fi |
247f5006 | 22718 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 22719 | fi |
247f5006 VZ |
22720 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
22721 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
22722 | if test $ac_cv_type_pid_t = yes; then | |
22723 | : | |
22724 | else | |
22725 | ||
22726 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 22727 | #define pid_t int |
247f5006 | 22728 | _ACEOF |
10f2d63a | 22729 | |
7b4a847f RR |
22730 | fi |
22731 | ||
247f5006 VZ |
22732 | echo "$as_me:$LINENO: checking for size_t" >&5 |
22733 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
22734 | if test "${ac_cv_type_size_t+set}" = set; then | |
22735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 22736 | else |
247f5006 VZ |
22737 | cat >conftest.$ac_ext <<_ACEOF |
22738 | #line $LINENO "configure" | |
7b4a847f | 22739 | #include "confdefs.h" |
247f5006 VZ |
22740 | $ac_includes_default |
22741 | #ifdef F77_DUMMY_MAIN | |
22742 | # ifdef __cplusplus | |
22743 | extern "C" | |
22744 | # endif | |
22745 | int F77_DUMMY_MAIN() { return 1; } | |
8284b0c5 | 22746 | #endif |
247f5006 VZ |
22747 | int |
22748 | main () | |
22749 | { | |
22750 | if ((size_t *) 0) | |
22751 | return 0; | |
22752 | if (sizeof (size_t)) | |
22753 | return 0; | |
22754 | ; | |
22755 | return 0; | |
22756 | } | |
22757 | _ACEOF | |
22758 | rm -f conftest.$ac_objext | |
22759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22760 | (eval $ac_compile) 2>&5 | |
22761 | ac_status=$? | |
22762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22763 | (exit $ac_status); } && | |
22764 | { ac_try='test -s conftest.$ac_objext' | |
22765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22766 | (eval $ac_try) 2>&5 | |
22767 | ac_status=$? | |
22768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22769 | (exit $ac_status); }; }; then | |
90dd450c | 22770 | ac_cv_type_size_t=yes |
18dbb1f6 | 22771 | else |
247f5006 VZ |
22772 | echo "$as_me: failed program was:" >&5 |
22773 | cat conftest.$ac_ext >&5 | |
22774 | ac_cv_type_size_t=no | |
52127426 | 22775 | fi |
247f5006 | 22776 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 22777 | fi |
247f5006 VZ |
22778 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
22779 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
22780 | if test $ac_cv_type_size_t = yes; then | |
22781 | : | |
22782 | else | |
22783 | ||
22784 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 22785 | #define size_t unsigned |
247f5006 | 22786 | _ACEOF |
90dd450c VZ |
22787 | |
22788 | fi | |
22789 | ||
247f5006 VZ |
22790 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
22791 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
22792 | if test "${ac_cv_type_uid_t+set}" = set; then | |
22793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 22794 | else |
247f5006 VZ |
22795 | cat >conftest.$ac_ext <<_ACEOF |
22796 | #line $LINENO "configure" | |
b3e8d00a | 22797 | #include "confdefs.h" |
90dd450c | 22798 | #include <sys/types.h> |
247f5006 VZ |
22799 | |
22800 | _ACEOF | |
90dd450c VZ |
22801 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
22802 | egrep "uid_t" >/dev/null 2>&1; then | |
90dd450c | 22803 | ac_cv_type_uid_t=yes |
b3e8d00a | 22804 | else |
90dd450c | 22805 | ac_cv_type_uid_t=no |
b3e8d00a | 22806 | fi |
90dd450c | 22807 | rm -f conftest* |
b3e8d00a | 22808 | |
4f14bcd8 | 22809 | fi |
247f5006 VZ |
22810 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
22811 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
8284b0c5 | 22812 | if test $ac_cv_type_uid_t = no; then |
247f5006 VZ |
22813 | |
22814 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 22815 | #define uid_t int |
247f5006 | 22816 | _ACEOF |
90dd450c | 22817 | |
247f5006 VZ |
22818 | |
22819 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 22820 | #define gid_t int |
247f5006 | 22821 | _ACEOF |
4f14bcd8 | 22822 | |
b3e8d00a | 22823 | fi |
b3e8d00a | 22824 | |
8284b0c5 MB |
22825 | |
22826 | ||
247f5006 VZ |
22827 | |
22828 | ac_ext=cc | |
4f14bcd8 | 22829 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
22830 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
22831 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22832 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
90dd450c | 22833 | |
247f5006 VZ |
22834 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
22835 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
22836 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
22837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22838 | else |
247f5006 VZ |
22839 | cat >conftest.$ac_ext <<_ACEOF |
22840 | #line $LINENO "configure" | |
10f2d63a | 22841 | #include "confdefs.h" |
90dd450c | 22842 | #include <stddef.h> |
247f5006 VZ |
22843 | #ifdef F77_DUMMY_MAIN |
22844 | # ifdef __cplusplus | |
22845 | extern "C" | |
22846 | # endif | |
22847 | int F77_DUMMY_MAIN() { return 1; } | |
22848 | #endif | |
22849 | int | |
22850 | main () | |
22851 | { | |
90dd450c VZ |
22852 | |
22853 | return 0; } | |
22854 | ||
22855 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
22856 | ||
22857 | int bar() { | |
247f5006 VZ |
22858 | |
22859 | ; | |
22860 | return 0; | |
22861 | } | |
22862 | _ACEOF | |
22863 | rm -f conftest.$ac_objext | |
22864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22865 | (eval $ac_compile) 2>&5 | |
22866 | ac_status=$? | |
22867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22868 | (exit $ac_status); } && | |
22869 | { ac_try='test -s conftest.$ac_objext' | |
22870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22871 | (eval $ac_try) 2>&5 | |
22872 | ac_status=$? | |
22873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22874 | (exit $ac_status); }; }; then | |
90dd450c | 22875 | wx_cv_size_t_is_uint=no |
698dcdb6 | 22876 | else |
247f5006 VZ |
22877 | echo "$as_me: failed program was:" >&5 |
22878 | cat conftest.$ac_ext >&5 | |
22879 | wx_cv_size_t_is_uint=yes | |
52127426 | 22880 | |
5c6fa7d2 | 22881 | fi |
247f5006 | 22882 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 22883 | |
247f5006 VZ |
22884 | fi |
22885 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
22886 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 22887 | |
90dd450c | 22888 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
247f5006 | 22889 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 22890 | #define wxSIZE_T_IS_UINT 1 |
247f5006 | 22891 | _ACEOF |
698dcdb6 | 22892 | |
90dd450c | 22893 | else |
247f5006 VZ |
22894 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
22895 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
22896 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
22897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 22898 | else |
247f5006 VZ |
22899 | cat >conftest.$ac_ext <<_ACEOF |
22900 | #line $LINENO "configure" | |
10f2d63a | 22901 | #include "confdefs.h" |
90dd450c | 22902 | #include <stddef.h> |
247f5006 VZ |
22903 | #ifdef F77_DUMMY_MAIN |
22904 | # ifdef __cplusplus | |
22905 | extern "C" | |
22906 | # endif | |
22907 | int F77_DUMMY_MAIN() { return 1; } | |
22908 | #endif | |
22909 | int | |
22910 | main () | |
22911 | { | |
90dd450c VZ |
22912 | |
22913 | return 0; } | |
22914 | ||
22915 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
22916 | ||
22917 | int bar() { | |
247f5006 VZ |
22918 | |
22919 | ; | |
22920 | return 0; | |
22921 | } | |
22922 | _ACEOF | |
22923 | rm -f conftest.$ac_objext | |
22924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22925 | (eval $ac_compile) 2>&5 | |
22926 | ac_status=$? | |
22927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22928 | (exit $ac_status); } && | |
22929 | { ac_try='test -s conftest.$ac_objext' | |
22930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22931 | (eval $ac_try) 2>&5 | |
22932 | ac_status=$? | |
22933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22934 | (exit $ac_status); }; }; then | |
90dd450c | 22935 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 22936 | else |
247f5006 VZ |
22937 | echo "$as_me: failed program was:" >&5 |
22938 | cat conftest.$ac_ext >&5 | |
22939 | wx_cv_size_t_is_ulong=yes | |
22940 | ||
5c6fa7d2 | 22941 | fi |
247f5006 | 22942 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 22943 | |
247f5006 VZ |
22944 | fi |
22945 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
22946 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 22947 | |
90dd450c | 22948 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
247f5006 | 22949 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 22950 | #define wxSIZE_T_IS_ULONG 1 |
247f5006 | 22951 | _ACEOF |
4f14bcd8 GD |
22952 | |
22953 | fi | |
90dd450c | 22954 | fi |
1e487827 | 22955 | |
90dd450c | 22956 | ac_ext=c |
4f14bcd8 | 22957 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
22958 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
22959 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22960 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 22961 | |
5c6fa7d2 | 22962 | |
8284b0c5 | 22963 | |
247f5006 VZ |
22964 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
22965 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
22966 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
22967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 22968 | else |
247f5006 VZ |
22969 | |
22970 | cat >conftest.$ac_ext <<_ACEOF | |
22971 | #line $LINENO "configure" | |
4f14bcd8 | 22972 | #include "confdefs.h" |
90dd450c | 22973 | #include <pwd.h> |
247f5006 VZ |
22974 | #ifdef F77_DUMMY_MAIN |
22975 | # ifdef __cplusplus | |
22976 | extern "C" | |
22977 | # endif | |
22978 | int F77_DUMMY_MAIN() { return 1; } | |
22979 | #endif | |
22980 | int | |
22981 | main () | |
22982 | { | |
f6bcfd97 | 22983 | |
90dd450c VZ |
22984 | char *p; |
22985 | struct passwd *pw; | |
22986 | p = pw->pw_gecos; | |
247f5006 VZ |
22987 | |
22988 | ; | |
22989 | return 0; | |
22990 | } | |
22991 | _ACEOF | |
22992 | rm -f conftest.$ac_objext | |
22993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22994 | (eval $ac_compile) 2>&5 | |
22995 | ac_status=$? | |
22996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22997 | (exit $ac_status); } && | |
22998 | { ac_try='test -s conftest.$ac_objext' | |
22999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23000 | (eval $ac_try) 2>&5 | |
23001 | ac_status=$? | |
23002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23003 | (exit $ac_status); }; }; then | |
23004 | ||
90dd450c | 23005 | wx_cv_struct_pw_gecos=yes |
247f5006 | 23006 | |
10f2d63a | 23007 | else |
247f5006 VZ |
23008 | echo "$as_me: failed program was:" >&5 |
23009 | cat conftest.$ac_ext >&5 | |
23010 | ||
90dd450c | 23011 | wx_cv_struct_pw_gecos=no |
247f5006 | 23012 | |
52127426 | 23013 | |
5c6fa7d2 | 23014 | fi |
247f5006 | 23015 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 23016 | |
247f5006 VZ |
23017 | |
23018 | fi | |
23019 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
23020 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 23021 | |
90dd450c | 23022 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
247f5006 | 23023 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 23024 | #define HAVE_PW_GECOS 1 |
247f5006 | 23025 | _ACEOF |
c521c494 | 23026 | |
90dd450c | 23027 | fi |
4f14bcd8 | 23028 | |
8284b0c5 | 23029 | |
d29b553b | 23030 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
247f5006 | 23031 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 23032 | #define wxUSE_WCHAR_T 1 |
247f5006 | 23033 | _ACEOF |
d74f4b5a | 23034 | |
8284b0c5 | 23035 | |
d74f4b5a VZ |
23036 | WCSLEN_FOUND=0 |
23037 | WCHAR_LINK= | |
247f5006 VZ |
23038 | |
23039 | for ac_func in wcslen | |
7a30264c | 23040 | do |
247f5006 VZ |
23041 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23042 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23043 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23044 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23046 | else | |
23047 | cat >conftest.$ac_ext <<_ACEOF | |
23048 | #line $LINENO "configure" | |
4f14bcd8 | 23049 | #include "confdefs.h" |
7a30264c | 23050 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 23051 | which can conflict with char $ac_func (); below. */ |
7a30264c | 23052 | #include <assert.h> |
4f14bcd8 | 23053 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
23054 | #ifdef __cplusplus |
23055 | extern "C" | |
23056 | #endif | |
4f14bcd8 | 23057 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
23058 | builtin and then its argument prototype would still apply. */ |
23059 | char $ac_func (); | |
23060 | char (*f) (); | |
23061 | ||
23062 | #ifdef F77_DUMMY_MAIN | |
23063 | # ifdef __cplusplus | |
23064 | extern "C" | |
23065 | # endif | |
23066 | int F77_DUMMY_MAIN() { return 1; } | |
23067 | #endif | |
23068 | int | |
23069 | main () | |
23070 | { | |
7a30264c VZ |
23071 | /* The GNU C library defines this for functions which it implements |
23072 | to always fail with ENOSYS. Some functions are actually named | |
23073 | something starting with __ and the normal name is an alias. */ | |
23074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23075 | choke me | |
23076 | #else | |
247f5006 | 23077 | f = $ac_func; |
7a30264c VZ |
23078 | #endif |
23079 | ||
247f5006 VZ |
23080 | ; |
23081 | return 0; | |
23082 | } | |
23083 | _ACEOF | |
23084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23086 | (eval $ac_link) 2>&5 | |
23087 | ac_status=$? | |
23088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23089 | (exit $ac_status); } && | |
23090 | { ac_try='test -s conftest$ac_exeext' | |
23091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23092 | (eval $ac_try) 2>&5 | |
23093 | ac_status=$? | |
23094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23095 | (exit $ac_status); }; }; then | |
23096 | eval "$as_ac_var=yes" | |
23097 | else | |
23098 | echo "$as_me: failed program was:" >&5 | |
23099 | cat conftest.$ac_ext >&5 | |
23100 | eval "$as_ac_var=no" | |
23101 | fi | |
23102 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23103 | fi | |
23104 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23105 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23106 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23107 | cat >>confdefs.h <<_ACEOF | |
23108 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23109 | _ACEOF | |
d74f4b5a | 23110 | WCSLEN_FOUND=1 |
7a30264c VZ |
23111 | fi |
23112 | done | |
9d8deca0 | 23113 | |
8284b0c5 | 23114 | |
d74f4b5a | 23115 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 23116 | if test "$TOOLKIT" = "MSW"; then |
247f5006 VZ |
23117 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
23118 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
23119 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
23120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 23121 | else |
247f5006 | 23122 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 23123 | LIBS="-lmsvcrt $LIBS" |
247f5006 VZ |
23124 | cat >conftest.$ac_ext <<_ACEOF |
23125 | #line $LINENO "configure" | |
10f2d63a | 23126 | #include "confdefs.h" |
247f5006 | 23127 | |
4f14bcd8 | 23128 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
23129 | #ifdef __cplusplus |
23130 | extern "C" | |
23131 | #endif | |
4f14bcd8 | 23132 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
23133 | builtin and then its argument prototype would still apply. */ |
23134 | char wcslen (); | |
23135 | #ifdef F77_DUMMY_MAIN | |
23136 | # ifdef __cplusplus | |
23137 | extern "C" | |
23138 | # endif | |
23139 | int F77_DUMMY_MAIN() { return 1; } | |
23140 | #endif | |
23141 | int | |
23142 | main () | |
23143 | { | |
23144 | wcslen (); | |
23145 | ; | |
23146 | return 0; | |
23147 | } | |
23148 | _ACEOF | |
23149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23151 | (eval $ac_link) 2>&5 | |
23152 | ac_status=$? | |
23153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23154 | (exit $ac_status); } && | |
23155 | { ac_try='test -s conftest$ac_exeext' | |
23156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23157 | (eval $ac_try) 2>&5 | |
23158 | ac_status=$? | |
23159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23160 | (exit $ac_status); }; }; then | |
23161 | ac_cv_lib_msvcrt_wcslen=yes | |
23162 | else | |
23163 | echo "$as_me: failed program was:" >&5 | |
23164 | cat conftest.$ac_ext >&5 | |
23165 | ac_cv_lib_msvcrt_wcslen=no | |
23166 | fi | |
23167 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23168 | LIBS=$ac_check_lib_save_LIBS | |
23169 | fi | |
23170 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
23171 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
23172 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 23173 | WCHAR_OK=1 |
d29b553b | 23174 | fi |
698dcdb6 | 23175 | |
7a30264c | 23176 | else |
247f5006 VZ |
23177 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
23178 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
23179 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
23180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 23181 | else |
247f5006 | 23182 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 23183 | LIBS="-lw $LIBS" |
247f5006 VZ |
23184 | cat >conftest.$ac_ext <<_ACEOF |
23185 | #line $LINENO "configure" | |
95c8801c | 23186 | #include "confdefs.h" |
247f5006 | 23187 | |
4f14bcd8 | 23188 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
23189 | #ifdef __cplusplus |
23190 | extern "C" | |
23191 | #endif | |
4f14bcd8 | 23192 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
23193 | builtin and then its argument prototype would still apply. */ |
23194 | char wcslen (); | |
23195 | #ifdef F77_DUMMY_MAIN | |
23196 | # ifdef __cplusplus | |
23197 | extern "C" | |
23198 | # endif | |
23199 | int F77_DUMMY_MAIN() { return 1; } | |
23200 | #endif | |
23201 | int | |
23202 | main () | |
23203 | { | |
23204 | wcslen (); | |
23205 | ; | |
23206 | return 0; | |
23207 | } | |
23208 | _ACEOF | |
23209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23211 | (eval $ac_link) 2>&5 | |
23212 | ac_status=$? | |
23213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23214 | (exit $ac_status); } && | |
23215 | { ac_try='test -s conftest$ac_exeext' | |
23216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23217 | (eval $ac_try) 2>&5 | |
23218 | ac_status=$? | |
23219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23220 | (exit $ac_status); }; }; then | |
23221 | ac_cv_lib_w_wcslen=yes | |
23222 | else | |
23223 | echo "$as_me: failed program was:" >&5 | |
23224 | cat conftest.$ac_ext >&5 | |
23225 | ac_cv_lib_w_wcslen=no | |
23226 | fi | |
23227 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23228 | LIBS=$ac_check_lib_save_LIBS | |
23229 | fi | |
23230 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
23231 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
23232 | if test $ac_cv_lib_w_wcslen = yes; then | |
52127426 | 23233 | |
7a30264c | 23234 | WCHAR_LINK=" -lw" |
d74f4b5a | 23235 | WCSLEN_FOUND=1 |
247f5006 | 23236 | |
4f14bcd8 | 23237 | fi |
10f2d63a | 23238 | |
7a30264c | 23239 | fi |
d29b553b | 23240 | fi |
95c8801c | 23241 | |
d74f4b5a | 23242 | if test "$WCSLEN_FOUND" = 1; then |
247f5006 | 23243 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 23244 | #define HAVE_WCSLEN 1 |
247f5006 | 23245 | _ACEOF |
10f2d63a | 23246 | |
d74f4b5a | 23247 | fi |
52127426 | 23248 | |
247f5006 VZ |
23249 | |
23250 | for ac_func in wcsrtombs | |
eb4efbdc | 23251 | do |
247f5006 VZ |
23252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23253 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23255 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23257 | else | |
23258 | cat >conftest.$ac_ext <<_ACEOF | |
23259 | #line $LINENO "configure" | |
eb4efbdc VZ |
23260 | #include "confdefs.h" |
23261 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 23262 | which can conflict with char $ac_func (); below. */ |
eb4efbdc VZ |
23263 | #include <assert.h> |
23264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
23265 | #ifdef __cplusplus |
23266 | extern "C" | |
eb4efbdc | 23267 | #endif |
4f14bcd8 | 23268 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
23269 | builtin and then its argument prototype would still apply. */ |
23270 | char $ac_func (); | |
23271 | char (*f) (); | |
23272 | ||
23273 | #ifdef F77_DUMMY_MAIN | |
23274 | # ifdef __cplusplus | |
23275 | extern "C" | |
23276 | # endif | |
23277 | int F77_DUMMY_MAIN() { return 1; } | |
4f14bcd8 | 23278 | #endif |
247f5006 VZ |
23279 | int |
23280 | main () | |
23281 | { | |
10f2d63a VZ |
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. */ | |
247f5006 | 23285 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
23286 | choke me |
23287 | #else | |
247f5006 | 23288 | f = $ac_func; |
10f2d63a VZ |
23289 | #endif |
23290 | ||
247f5006 VZ |
23291 | ; |
23292 | return 0; | |
23293 | } | |
23294 | _ACEOF | |
23295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23297 | (eval $ac_link) 2>&5 | |
23298 | ac_status=$? | |
23299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23300 | (exit $ac_status); } && | |
23301 | { ac_try='test -s conftest$ac_exeext' | |
23302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23303 | (eval $ac_try) 2>&5 | |
23304 | ac_status=$? | |
23305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23306 | (exit $ac_status); }; }; then | |
23307 | eval "$as_ac_var=yes" | |
23308 | else | |
23309 | echo "$as_me: failed program was:" >&5 | |
23310 | cat conftest.$ac_ext >&5 | |
23311 | eval "$as_ac_var=no" | |
23312 | fi | |
23313 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23314 | fi | |
23315 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23316 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23317 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23318 | cat >>confdefs.h <<_ACEOF | |
23319 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23320 | _ACEOF | |
270a909e | 23321 | |
4f14bcd8 | 23322 | fi |
247f5006 | 23323 | done |
1e487827 | 23324 | |
af15babd | 23325 | else |
247f5006 VZ |
23326 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
23327 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 23328 | fi |
52127426 | 23329 | |
8284b0c5 | 23330 | |
af15babd | 23331 | |
247f5006 VZ |
23332 | ac_ext=cc |
23333 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23334 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23335 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23336 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4f14bcd8 | 23337 | |
af15babd | 23338 | |
247f5006 VZ |
23339 | |
23340 | for ac_func in vsnprintf | |
23341 | do | |
23342 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23343 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23344 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23345 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23347 | else | |
23348 | cat >conftest.$ac_ext <<_ACEOF | |
23349 | #line $LINENO "configure" | |
af15babd | 23350 | #include "confdefs.h" |
247f5006 VZ |
23351 | /* System header to define __stub macros and hopefully few prototypes, |
23352 | which can conflict with char $ac_func (); below. */ | |
23353 | #include <assert.h> | |
23354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23355 | #ifdef __cplusplus | |
23356 | extern "C" | |
23357 | #endif | |
23358 | /* We use char because int might match the return type of a gcc2 | |
23359 | builtin and then its argument prototype would still apply. */ | |
23360 | char $ac_func (); | |
23361 | char (*f) (); | |
23362 | ||
23363 | #ifdef F77_DUMMY_MAIN | |
23364 | # ifdef __cplusplus | |
23365 | extern "C" | |
23366 | # endif | |
23367 | int F77_DUMMY_MAIN() { return 1; } | |
23368 | #endif | |
23369 | int | |
23370 | main () | |
23371 | { | |
23372 | /* The GNU C library defines this for functions which it implements | |
23373 | to always fail with ENOSYS. Some functions are actually named | |
23374 | something starting with __ and the normal name is an alias. */ | |
23375 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23376 | choke me | |
23377 | #else | |
23378 | f = $ac_func; | |
23379 | #endif | |
af15babd | 23380 | |
247f5006 VZ |
23381 | ; |
23382 | return 0; | |
23383 | } | |
23384 | _ACEOF | |
23385 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23387 | (eval $ac_link) 2>&5 | |
23388 | ac_status=$? | |
23389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23390 | (exit $ac_status); } && | |
23391 | { ac_try='test -s conftest$ac_exeext' | |
23392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23393 | (eval $ac_try) 2>&5 | |
23394 | ac_status=$? | |
23395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23396 | (exit $ac_status); }; }; then | |
23397 | eval "$as_ac_var=yes" | |
23398 | else | |
23399 | echo "$as_me: failed program was:" >&5 | |
23400 | cat conftest.$ac_ext >&5 | |
23401 | eval "$as_ac_var=no" | |
23402 | fi | |
23403 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23404 | fi | |
23405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23406 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23407 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23408 | cat >>confdefs.h <<_ACEOF | |
23409 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23410 | _ACEOF | |
52127426 | 23411 | |
5c6fa7d2 | 23412 | fi |
247f5006 | 23413 | done |
8284b0c5 | 23414 | |
4f14bcd8 | 23415 | |
247f5006 | 23416 | if test "$wxUSE_UNICODE" = yes; then |
4f14bcd8 | 23417 | |
af15babd | 23418 | |
247f5006 VZ |
23419 | |
23420 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 23421 | do |
247f5006 VZ |
23422 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23423 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23424 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23425 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23427 | else | |
23428 | cat >conftest.$ac_ext <<_ACEOF | |
23429 | #line $LINENO "configure" | |
d74f4b5a VZ |
23430 | #include "confdefs.h" |
23431 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 23432 | which can conflict with char $ac_func (); below. */ |
d74f4b5a VZ |
23433 | #include <assert.h> |
23434 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
23435 | #ifdef __cplusplus |
23436 | extern "C" | |
23437 | #endif | |
d74f4b5a | 23438 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
23439 | builtin and then its argument prototype would still apply. */ |
23440 | char $ac_func (); | |
23441 | char (*f) (); | |
23442 | ||
23443 | #ifdef F77_DUMMY_MAIN | |
23444 | # ifdef __cplusplus | |
23445 | extern "C" | |
23446 | # endif | |
23447 | int F77_DUMMY_MAIN() { return 1; } | |
23448 | #endif | |
23449 | int | |
23450 | main () | |
23451 | { | |
d74f4b5a VZ |
23452 | /* The GNU C library defines this for functions which it implements |
23453 | to always fail with ENOSYS. Some functions are actually named | |
23454 | something starting with __ and the normal name is an alias. */ | |
23455 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23456 | choke me | |
23457 | #else | |
247f5006 | 23458 | f = $ac_func; |
d74f4b5a VZ |
23459 | #endif |
23460 | ||
247f5006 VZ |
23461 | ; |
23462 | return 0; | |
23463 | } | |
23464 | _ACEOF | |
23465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23467 | (eval $ac_link) 2>&5 | |
23468 | ac_status=$? | |
23469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23470 | (exit $ac_status); } && | |
23471 | { ac_try='test -s conftest$ac_exeext' | |
23472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23473 | (eval $ac_try) 2>&5 | |
23474 | ac_status=$? | |
23475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23476 | (exit $ac_status); }; }; then | |
23477 | eval "$as_ac_var=yes" | |
23478 | else | |
23479 | echo "$as_me: failed program was:" >&5 | |
23480 | cat conftest.$ac_ext >&5 | |
23481 | eval "$as_ac_var=no" | |
23482 | fi | |
23483 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23484 | fi | |
23485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23486 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23487 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23488 | cat >>confdefs.h <<_ACEOF | |
23489 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23490 | _ACEOF | |
d74f4b5a | 23491 | |
d74f4b5a VZ |
23492 | fi |
23493 | done | |
23494 | ||
23495 | fi | |
23496 | ||
247f5006 VZ |
23497 | ac_ext=c |
23498 | ac_cpp='$CPP $CPPFLAGS' | |
23499 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23500 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23501 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23502 | ||
23503 | ||
23504 | ||
23505 | ||
4f14bcd8 | 23506 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 23507 | |
8284b0c5 MB |
23508 | |
23509 | ||
247f5006 VZ |
23510 | |
23511 | ac_ext=cc | |
4f14bcd8 | 23512 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
23513 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
23514 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23515 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23516 | ||
8284b0c5 | 23517 | |
52127426 | 23518 | |
247f5006 VZ |
23519 | |
23520 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
23521 | if test "${with_libiconv_prefix+set}" = set; then |
23522 | withval="$with_libiconv_prefix" | |
247f5006 | 23523 | |
b040e242 VS |
23524 | for dir in `echo "$withval" | tr : ' '`; do |
23525 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
23526 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
23527 | done | |
b040e242 | 23528 | |
247f5006 | 23529 | fi; |
b040e242 | 23530 | |
247f5006 VZ |
23531 | echo "$as_me:$LINENO: checking for iconv" >&5 |
23532 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
23533 | if test "${am_cv_func_iconv+set}" = set; then | |
23534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 23535 | else |
247f5006 | 23536 | |
b040e242 VS |
23537 | am_cv_func_iconv="no, consider installing GNU libiconv" |
23538 | am_cv_lib_iconv=no | |
247f5006 VZ |
23539 | cat >conftest.$ac_ext <<_ACEOF |
23540 | #line $LINENO "configure" | |
af15babd | 23541 | #include "confdefs.h" |
b040e242 | 23542 | #include <stdlib.h> |
4f14bcd8 | 23543 | #include <iconv.h> |
247f5006 VZ |
23544 | #ifdef F77_DUMMY_MAIN |
23545 | # ifdef __cplusplus | |
23546 | extern "C" | |
23547 | # endif | |
23548 | int F77_DUMMY_MAIN() { return 1; } | |
23549 | #endif | |
23550 | int | |
23551 | main () | |
23552 | { | |
b040e242 VS |
23553 | iconv_t cd = iconv_open("",""); |
23554 | iconv(cd,NULL,NULL,NULL,NULL); | |
23555 | iconv_close(cd); | |
247f5006 VZ |
23556 | ; |
23557 | return 0; | |
23558 | } | |
23559 | _ACEOF | |
23560 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23562 | (eval $ac_link) 2>&5 | |
23563 | ac_status=$? | |
23564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23565 | (exit $ac_status); } && | |
23566 | { ac_try='test -s conftest$ac_exeext' | |
23567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23568 | (eval $ac_try) 2>&5 | |
23569 | ac_status=$? | |
23570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23571 | (exit $ac_status); }; }; then | |
b040e242 | 23572 | am_cv_func_iconv=yes |
af15babd | 23573 | else |
247f5006 VZ |
23574 | echo "$as_me: failed program was:" >&5 |
23575 | cat conftest.$ac_ext >&5 | |
b040e242 | 23576 | fi |
247f5006 | 23577 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
23578 | if test "$am_cv_func_iconv" != yes; then |
23579 | am_save_LIBS="$LIBS" | |
23580 | LIBS="$LIBS -liconv" | |
247f5006 VZ |
23581 | cat >conftest.$ac_ext <<_ACEOF |
23582 | #line $LINENO "configure" | |
b040e242 VS |
23583 | #include "confdefs.h" |
23584 | #include <stdlib.h> | |
23585 | #include <iconv.h> | |
247f5006 VZ |
23586 | #ifdef F77_DUMMY_MAIN |
23587 | # ifdef __cplusplus | |
23588 | extern "C" | |
23589 | # endif | |
23590 | int F77_DUMMY_MAIN() { return 1; } | |
23591 | #endif | |
23592 | int | |
23593 | main () | |
23594 | { | |
b040e242 VS |
23595 | iconv_t cd = iconv_open("",""); |
23596 | iconv(cd,NULL,NULL,NULL,NULL); | |
23597 | iconv_close(cd); | |
247f5006 VZ |
23598 | ; |
23599 | return 0; | |
23600 | } | |
23601 | _ACEOF | |
23602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23604 | (eval $ac_link) 2>&5 | |
23605 | ac_status=$? | |
23606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23607 | (exit $ac_status); } && | |
23608 | { ac_try='test -s conftest$ac_exeext' | |
23609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23610 | (eval $ac_try) 2>&5 | |
23611 | ac_status=$? | |
23612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23613 | (exit $ac_status); }; }; then | |
b040e242 VS |
23614 | am_cv_lib_iconv=yes |
23615 | am_cv_func_iconv=yes | |
23616 | else | |
247f5006 VZ |
23617 | echo "$as_me: failed program was:" >&5 |
23618 | cat conftest.$ac_ext >&5 | |
af15babd | 23619 | fi |
247f5006 | 23620 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
23621 | LIBS="$am_save_LIBS" |
23622 | fi | |
5c6fa7d2 | 23623 | |
247f5006 VZ |
23624 | fi |
23625 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
23626 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
8284b0c5 | 23627 | if test "$am_cv_func_iconv" = yes; then |
247f5006 VZ |
23628 | |
23629 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 23630 | #define HAVE_ICONV 1 |
247f5006 | 23631 | _ACEOF |
b040e242 | 23632 | |
247f5006 VZ |
23633 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
23634 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
23635 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
23636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 23637 | else |
247f5006 VZ |
23638 | cat >conftest.$ac_ext <<_ACEOF |
23639 | #line $LINENO "configure" | |
b040e242 VS |
23640 | #include "confdefs.h" |
23641 | ||
23642 | #include <stdlib.h> | |
23643 | #include <iconv.h> | |
23644 | extern | |
23645 | #ifdef __cplusplus | |
23646 | "C" | |
23647 | #endif | |
23648 | #if defined(__STDC__) || defined(__cplusplus) | |
23649 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
23650 | #else | |
23651 | size_t iconv(); | |
23652 | #endif | |
af15babd | 23653 | |
247f5006 VZ |
23654 | #ifdef F77_DUMMY_MAIN |
23655 | # ifdef __cplusplus | |
23656 | extern "C" | |
23657 | # endif | |
23658 | int F77_DUMMY_MAIN() { return 1; } | |
23659 | #endif | |
23660 | int | |
23661 | main () | |
23662 | { | |
23663 | ||
23664 | ; | |
23665 | return 0; | |
23666 | } | |
23667 | _ACEOF | |
23668 | rm -f conftest.$ac_objext | |
23669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23670 | (eval $ac_compile) 2>&5 | |
23671 | ac_status=$? | |
23672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23673 | (exit $ac_status); } && | |
23674 | { ac_try='test -s conftest.$ac_objext' | |
23675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23676 | (eval $ac_try) 2>&5 | |
23677 | ac_status=$? | |
23678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23679 | (exit $ac_status); }; }; then | |
b7043674 | 23680 | wx_cv_func_iconv_const="no" |
b040e242 | 23681 | else |
247f5006 VZ |
23682 | echo "$as_me: failed program was:" >&5 |
23683 | cat conftest.$ac_ext >&5 | |
23684 | wx_cv_func_iconv_const="yes" | |
23685 | ||
5c6fa7d2 | 23686 | fi |
247f5006 | 23687 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 23688 | |
247f5006 VZ |
23689 | fi |
23690 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
23691 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
23692 | |
23693 | iconv_const= | |
1c405bb5 | 23694 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
23695 | iconv_const="const" |
23696 | fi | |
23697 | ||
247f5006 VZ |
23698 | |
23699 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 23700 | #define ICONV_CONST $iconv_const |
247f5006 | 23701 | _ACEOF |
b040e242 VS |
23702 | |
23703 | fi | |
23704 | LIBICONV= | |
23705 | if test "$am_cv_lib_iconv" = yes; then | |
23706 | LIBICONV="-liconv" | |
23707 | fi | |
247f5006 | 23708 | |
b040e242 VS |
23709 | |
23710 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 23711 | ac_ext=c |
4f14bcd8 | 23712 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
23713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
23714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 23716 | |
5c6fa7d2 | 23717 | |
8284b0c5 | 23718 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
247f5006 VZ |
23719 | |
23720 | for ac_func in sigaction | |
af15babd | 23721 | do |
247f5006 VZ |
23722 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23723 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23724 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23725 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23727 | else | |
23728 | cat >conftest.$ac_ext <<_ACEOF | |
23729 | #line $LINENO "configure" | |
af15babd VZ |
23730 | #include "confdefs.h" |
23731 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 23732 | which can conflict with char $ac_func (); below. */ |
af15babd VZ |
23733 | #include <assert.h> |
23734 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
23735 | #ifdef __cplusplus |
23736 | extern "C" | |
23737 | #endif | |
af15babd | 23738 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
23739 | builtin and then its argument prototype would still apply. */ |
23740 | char $ac_func (); | |
23741 | char (*f) (); | |
23742 | ||
23743 | #ifdef F77_DUMMY_MAIN | |
23744 | # ifdef __cplusplus | |
23745 | extern "C" | |
23746 | # endif | |
23747 | int F77_DUMMY_MAIN() { return 1; } | |
23748 | #endif | |
23749 | int | |
23750 | main () | |
23751 | { | |
af15babd VZ |
23752 | /* The GNU C library defines this for functions which it implements |
23753 | to always fail with ENOSYS. Some functions are actually named | |
23754 | something starting with __ and the normal name is an alias. */ | |
23755 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23756 | choke me | |
23757 | #else | |
247f5006 | 23758 | f = $ac_func; |
af15babd VZ |
23759 | #endif |
23760 | ||
247f5006 VZ |
23761 | ; |
23762 | return 0; | |
23763 | } | |
23764 | _ACEOF | |
23765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23767 | (eval $ac_link) 2>&5 | |
23768 | ac_status=$? | |
23769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23770 | (exit $ac_status); } && | |
23771 | { ac_try='test -s conftest$ac_exeext' | |
23772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23773 | (eval $ac_try) 2>&5 | |
23774 | ac_status=$? | |
23775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23776 | (exit $ac_status); }; }; then | |
23777 | eval "$as_ac_var=yes" | |
23778 | else | |
23779 | echo "$as_me: failed program was:" >&5 | |
23780 | cat conftest.$ac_ext >&5 | |
23781 | eval "$as_ac_var=no" | |
23782 | fi | |
23783 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23784 | fi | |
23785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23786 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23787 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23788 | cat >>confdefs.h <<_ACEOF | |
23789 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23790 | _ACEOF | |
7b4a847f | 23791 | |
4f14bcd8 GD |
23792 | fi |
23793 | done | |
23794 | ||
8284b0c5 | 23795 | |
4f14bcd8 | 23796 | if test "$ac_cv_func_sigaction" = "no"; then |
247f5006 VZ |
23797 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
23798 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
23799 | wxUSE_ON_FATAL_EXCEPTION=no |
23800 | fi | |
23801 | ||
23802 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
247f5006 VZ |
23803 | |
23804 | ||
23805 | ac_ext=cc | |
5c6fa7d2 | 23806 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
23807 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
23808 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23809 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 23810 | |
5c6fa7d2 | 23811 | |
247f5006 VZ |
23812 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
23813 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
23814 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
23815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 23816 | else |
247f5006 VZ |
23817 | |
23818 | cat >conftest.$ac_ext <<_ACEOF | |
23819 | #line $LINENO "configure" | |
af15babd | 23820 | #include "confdefs.h" |
4f14bcd8 | 23821 | #include <signal.h> |
247f5006 VZ |
23822 | #ifdef F77_DUMMY_MAIN |
23823 | # ifdef __cplusplus | |
23824 | extern "C" | |
23825 | # endif | |
23826 | int F77_DUMMY_MAIN() { return 1; } | |
23827 | #endif | |
23828 | int | |
23829 | main () | |
23830 | { | |
4f14bcd8 GD |
23831 | |
23832 | extern void testSigHandler(int); | |
23833 | ||
23834 | struct sigaction sa; | |
23835 | sa.sa_handler = testSigHandler; | |
247f5006 VZ |
23836 | |
23837 | ; | |
23838 | return 0; | |
23839 | } | |
23840 | _ACEOF | |
23841 | rm -f conftest.$ac_objext | |
23842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23843 | (eval $ac_compile) 2>&5 | |
23844 | ac_status=$? | |
23845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23846 | (exit $ac_status); } && | |
23847 | { ac_try='test -s conftest.$ac_objext' | |
23848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23849 | (eval $ac_try) 2>&5 | |
23850 | ac_status=$? | |
23851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23852 | (exit $ac_status); }; }; then | |
23853 | ||
4f14bcd8 | 23854 | wx_cv_type_sa_handler=int |
247f5006 | 23855 | |
af15babd | 23856 | else |
247f5006 VZ |
23857 | echo "$as_me: failed program was:" >&5 |
23858 | cat conftest.$ac_ext >&5 | |
23859 | ||
4f14bcd8 | 23860 | wx_cv_type_sa_handler=void |
247f5006 | 23861 | |
5c6fa7d2 | 23862 | fi |
247f5006 | 23863 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 23864 | |
247f5006 VZ |
23865 | fi |
23866 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
23867 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
23868 | |
23869 | ac_ext=c | |
4f14bcd8 | 23870 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
23871 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
23872 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23873 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 23874 | |
8284b0c5 | 23875 | |
247f5006 | 23876 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 23877 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
247f5006 | 23878 | _ACEOF |
af15babd | 23879 | |
4f14bcd8 GD |
23880 | fi |
23881 | fi | |
af15babd | 23882 | |
247f5006 | 23883 | |
4f14bcd8 | 23884 | for ac_func in vfork |
af15babd | 23885 | do |
247f5006 VZ |
23886 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23887 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23888 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23889 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23891 | else | |
23892 | cat >conftest.$ac_ext <<_ACEOF | |
23893 | #line $LINENO "configure" | |
af15babd VZ |
23894 | #include "confdefs.h" |
23895 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 23896 | which can conflict with char $ac_func (); below. */ |
af15babd VZ |
23897 | #include <assert.h> |
23898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
23899 | #ifdef __cplusplus |
23900 | extern "C" | |
23901 | #endif | |
af15babd | 23902 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
23903 | builtin and then its argument prototype would still apply. */ |
23904 | char $ac_func (); | |
23905 | char (*f) (); | |
23906 | ||
23907 | #ifdef F77_DUMMY_MAIN | |
23908 | # ifdef __cplusplus | |
23909 | extern "C" | |
23910 | # endif | |
23911 | int F77_DUMMY_MAIN() { return 1; } | |
23912 | #endif | |
23913 | int | |
23914 | main () | |
23915 | { | |
af15babd VZ |
23916 | /* The GNU C library defines this for functions which it implements |
23917 | to always fail with ENOSYS. Some functions are actually named | |
23918 | something starting with __ and the normal name is an alias. */ | |
23919 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23920 | choke me | |
23921 | #else | |
247f5006 | 23922 | f = $ac_func; |
af15babd VZ |
23923 | #endif |
23924 | ||
247f5006 VZ |
23925 | ; |
23926 | return 0; | |
23927 | } | |
23928 | _ACEOF | |
23929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23931 | (eval $ac_link) 2>&5 | |
23932 | ac_status=$? | |
23933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23934 | (exit $ac_status); } && | |
23935 | { ac_try='test -s conftest$ac_exeext' | |
23936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23937 | (eval $ac_try) 2>&5 | |
23938 | ac_status=$? | |
23939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23940 | (exit $ac_status); }; }; then | |
23941 | eval "$as_ac_var=yes" | |
23942 | else | |
23943 | echo "$as_me: failed program was:" >&5 | |
23944 | cat conftest.$ac_ext >&5 | |
23945 | eval "$as_ac_var=no" | |
23946 | fi | |
23947 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23948 | fi | |
23949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23950 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23951 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23952 | cat >>confdefs.h <<_ACEOF | |
23953 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23954 | _ACEOF | |
af15babd | 23955 | |
af15babd VZ |
23956 | fi |
23957 | done | |
23958 | ||
8284b0c5 | 23959 | |
247f5006 VZ |
23960 | |
23961 | ||
ade35f11 VZ |
23962 | for ac_func in mkstemp mktemp |
23963 | do | |
247f5006 VZ |
23964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23965 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23967 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23969 | else | |
23970 | cat >conftest.$ac_ext <<_ACEOF | |
23971 | #line $LINENO "configure" | |
ade35f11 VZ |
23972 | #include "confdefs.h" |
23973 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 23974 | which can conflict with char $ac_func (); below. */ |
ade35f11 VZ |
23975 | #include <assert.h> |
23976 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
23977 | #ifdef __cplusplus |
23978 | extern "C" | |
23979 | #endif | |
ade35f11 | 23980 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
23981 | builtin and then its argument prototype would still apply. */ |
23982 | char $ac_func (); | |
23983 | char (*f) (); | |
23984 | ||
23985 | #ifdef F77_DUMMY_MAIN | |
23986 | # ifdef __cplusplus | |
23987 | extern "C" | |
23988 | # endif | |
23989 | int F77_DUMMY_MAIN() { return 1; } | |
23990 | #endif | |
23991 | int | |
23992 | main () | |
23993 | { | |
ade35f11 VZ |
23994 | /* The GNU C library defines this for functions which it implements |
23995 | to always fail with ENOSYS. Some functions are actually named | |
23996 | something starting with __ and the normal name is an alias. */ | |
23997 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23998 | choke me | |
23999 | #else | |
247f5006 | 24000 | f = $ac_func; |
ade35f11 VZ |
24001 | #endif |
24002 | ||
247f5006 VZ |
24003 | ; |
24004 | return 0; | |
24005 | } | |
24006 | _ACEOF | |
24007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24009 | (eval $ac_link) 2>&5 | |
24010 | ac_status=$? | |
24011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24012 | (exit $ac_status); } && | |
24013 | { ac_try='test -s conftest$ac_exeext' | |
24014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24015 | (eval $ac_try) 2>&5 | |
24016 | ac_status=$? | |
24017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24018 | (exit $ac_status); }; }; then | |
24019 | eval "$as_ac_var=yes" | |
24020 | else | |
24021 | echo "$as_me: failed program was:" >&5 | |
24022 | cat conftest.$ac_ext >&5 | |
24023 | eval "$as_ac_var=no" | |
24024 | fi | |
24025 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24026 | fi | |
24027 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24028 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24029 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24030 | cat >>confdefs.h <<_ACEOF | |
24031 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24032 | _ACEOF | |
ade35f11 | 24033 | break |
ade35f11 VZ |
24034 | fi |
24035 | done | |
24036 | ||
8284b0c5 | 24037 | |
247f5006 VZ |
24038 | echo "$as_me:$LINENO: checking for statfs" >&5 |
24039 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
24040 | if test "${wx_cv_func_statfs+set}" = set; then | |
24041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 24042 | else |
247f5006 VZ |
24043 | cat >conftest.$ac_ext <<_ACEOF |
24044 | #line $LINENO "configure" | |
4f14bcd8 GD |
24045 | #include "confdefs.h" |
24046 | ||
24047 | #if defined(__BSD__) | |
24048 | #include <sys/param.h> | |
24049 | #include <sys/mount.h> | |
24050 | #else | |
24051 | #include <sys/vfs.h> | |
24052 | #endif | |
247f5006 VZ |
24053 | |
24054 | #ifdef F77_DUMMY_MAIN | |
24055 | # ifdef __cplusplus | |
24056 | extern "C" | |
24057 | # endif | |
24058 | int F77_DUMMY_MAIN() { return 1; } | |
24059 | #endif | |
24060 | int | |
24061 | main () | |
24062 | { | |
4f14bcd8 GD |
24063 | |
24064 | long l; | |
24065 | struct statfs fs; | |
24066 | statfs("/", &fs); | |
24067 | l = fs.f_bsize; | |
24068 | l += fs.f_blocks; | |
24069 | l += fs.f_bavail; | |
247f5006 VZ |
24070 | |
24071 | ; | |
24072 | return 0; | |
24073 | } | |
24074 | _ACEOF | |
24075 | rm -f conftest.$ac_objext | |
24076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24077 | (eval $ac_compile) 2>&5 | |
24078 | ac_status=$? | |
24079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24080 | (exit $ac_status); } && | |
24081 | { ac_try='test -s conftest.$ac_objext' | |
24082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24083 | (eval $ac_try) 2>&5 | |
24084 | ac_status=$? | |
24085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24086 | (exit $ac_status); }; }; then | |
24087 | ||
4f14bcd8 | 24088 | wx_cv_func_statfs=yes |
247f5006 | 24089 | |
4f14bcd8 | 24090 | else |
247f5006 VZ |
24091 | echo "$as_me: failed program was:" >&5 |
24092 | cat conftest.$ac_ext >&5 | |
24093 | ||
4f14bcd8 | 24094 | wx_cv_func_statfs=no |
247f5006 | 24095 | |
52127426 | 24096 | |
5c6fa7d2 | 24097 | fi |
247f5006 | 24098 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 24099 | |
247f5006 VZ |
24100 | fi |
24101 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
24102 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
24103 | |
24104 | if test "$wx_cv_func_statfs" = "yes"; then | |
247f5006 | 24105 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 24106 | #define HAVE_STATFS 1 |
247f5006 | 24107 | _ACEOF |
4f14bcd8 GD |
24108 | |
24109 | else | |
247f5006 VZ |
24110 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
24111 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
24112 | if test "${wx_cv_func_statvfs+set}" = set; then | |
24113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 24114 | else |
247f5006 VZ |
24115 | cat >conftest.$ac_ext <<_ACEOF |
24116 | #line $LINENO "configure" | |
af15babd | 24117 | #include "confdefs.h" |
af15babd | 24118 | |
4f14bcd8 | 24119 | #include <sys/statvfs.h> |
247f5006 VZ |
24120 | |
24121 | #ifdef F77_DUMMY_MAIN | |
24122 | # ifdef __cplusplus | |
24123 | extern "C" | |
24124 | # endif | |
24125 | int F77_DUMMY_MAIN() { return 1; } | |
24126 | #endif | |
24127 | int | |
24128 | main () | |
24129 | { | |
af15babd | 24130 | |
4f14bcd8 GD |
24131 | long l; |
24132 | struct statvfs fs; | |
24133 | statvfs("/", &fs); | |
24134 | l = fs.f_bsize; | |
24135 | l += fs.f_blocks; | |
24136 | l += fs.f_bavail; | |
247f5006 VZ |
24137 | |
24138 | ; | |
24139 | return 0; | |
24140 | } | |
24141 | _ACEOF | |
24142 | rm -f conftest.$ac_objext | |
24143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24144 | (eval $ac_compile) 2>&5 | |
24145 | ac_status=$? | |
24146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24147 | (exit $ac_status); } && | |
24148 | { ac_try='test -s conftest.$ac_objext' | |
24149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24150 | (eval $ac_try) 2>&5 | |
24151 | ac_status=$? | |
24152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24153 | (exit $ac_status); }; }; then | |
24154 | ||
4f14bcd8 | 24155 | wx_cv_func_statvfs=yes |
247f5006 | 24156 | |
af15babd | 24157 | else |
247f5006 VZ |
24158 | echo "$as_me: failed program was:" >&5 |
24159 | cat conftest.$ac_ext >&5 | |
24160 | ||
4f14bcd8 | 24161 | wx_cv_func_statvfs=no |
247f5006 VZ |
24162 | |
24163 | ||
5c6fa7d2 | 24164 | fi |
247f5006 | 24165 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 24166 | |
247f5006 VZ |
24167 | fi |
24168 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
24169 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 24170 | |
4f14bcd8 | 24171 | if test "$wx_cv_func_statvfs" = "yes"; then |
247f5006 | 24172 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 24173 | #define HAVE_STATVFS 1 |
247f5006 | 24174 | _ACEOF |
af15babd | 24175 | |
4f14bcd8 | 24176 | else |
247f5006 VZ |
24177 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
24178 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
4f14bcd8 GD |
24179 | fi |
24180 | fi | |
af15babd | 24181 | |
4f14bcd8 | 24182 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
247f5006 VZ |
24183 | |
24184 | ||
24185 | for ac_func in fcntl flock | |
af15babd | 24186 | do |
247f5006 VZ |
24187 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24188 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24189 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24190 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24192 | else | |
24193 | cat >conftest.$ac_ext <<_ACEOF | |
24194 | #line $LINENO "configure" | |
af15babd VZ |
24195 | #include "confdefs.h" |
24196 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 24197 | which can conflict with char $ac_func (); below. */ |
af15babd VZ |
24198 | #include <assert.h> |
24199 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
24200 | #ifdef __cplusplus |
24201 | extern "C" | |
24202 | #endif | |
af15babd | 24203 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24204 | builtin and then its argument prototype would still apply. */ |
24205 | char $ac_func (); | |
24206 | char (*f) (); | |
24207 | ||
24208 | #ifdef F77_DUMMY_MAIN | |
24209 | # ifdef __cplusplus | |
24210 | extern "C" | |
24211 | # endif | |
24212 | int F77_DUMMY_MAIN() { return 1; } | |
24213 | #endif | |
24214 | int | |
24215 | main () | |
24216 | { | |
af15babd VZ |
24217 | /* The GNU C library defines this for functions which it implements |
24218 | to always fail with ENOSYS. Some functions are actually named | |
24219 | something starting with __ and the normal name is an alias. */ | |
24220 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24221 | choke me | |
24222 | #else | |
247f5006 | 24223 | f = $ac_func; |
af15babd VZ |
24224 | #endif |
24225 | ||
247f5006 VZ |
24226 | ; |
24227 | return 0; | |
24228 | } | |
24229 | _ACEOF | |
24230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24232 | (eval $ac_link) 2>&5 | |
24233 | ac_status=$? | |
24234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24235 | (exit $ac_status); } && | |
24236 | { ac_try='test -s conftest$ac_exeext' | |
24237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24238 | (eval $ac_try) 2>&5 | |
24239 | ac_status=$? | |
24240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24241 | (exit $ac_status); }; }; then | |
24242 | eval "$as_ac_var=yes" | |
24243 | else | |
24244 | echo "$as_me: failed program was:" >&5 | |
24245 | cat conftest.$ac_ext >&5 | |
24246 | eval "$as_ac_var=no" | |
24247 | fi | |
24248 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24249 | fi | |
24250 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24251 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24252 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24253 | cat >>confdefs.h <<_ACEOF | |
24254 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24255 | _ACEOF | |
4f14bcd8 | 24256 | break |
af15babd VZ |
24257 | fi |
24258 | done | |
24259 | ||
8284b0c5 | 24260 | |
4f14bcd8 | 24261 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
247f5006 VZ |
24262 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
24263 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
24264 | wxUSE_SNGLINST_CHECKER=no |
24265 | fi | |
24266 | fi | |
af15babd | 24267 | |
247f5006 | 24268 | |
4f14bcd8 | 24269 | for ac_func in timegm |
af15babd | 24270 | do |
247f5006 VZ |
24271 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24272 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24273 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24274 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24276 | else | |
24277 | cat >conftest.$ac_ext <<_ACEOF | |
24278 | #line $LINENO "configure" | |
af15babd VZ |
24279 | #include "confdefs.h" |
24280 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 24281 | which can conflict with char $ac_func (); below. */ |
af15babd VZ |
24282 | #include <assert.h> |
24283 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
24284 | #ifdef __cplusplus |
24285 | extern "C" | |
24286 | #endif | |
af15babd | 24287 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24288 | builtin and then its argument prototype would still apply. */ |
24289 | char $ac_func (); | |
24290 | char (*f) (); | |
24291 | ||
24292 | #ifdef F77_DUMMY_MAIN | |
24293 | # ifdef __cplusplus | |
24294 | extern "C" | |
24295 | # endif | |
24296 | int F77_DUMMY_MAIN() { return 1; } | |
24297 | #endif | |
24298 | int | |
24299 | main () | |
24300 | { | |
af15babd VZ |
24301 | /* The GNU C library defines this for functions which it implements |
24302 | to always fail with ENOSYS. Some functions are actually named | |
24303 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
24304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
24305 | choke me | |
24306 | #else | |
24307 | f = $ac_func; | |
24308 | #endif | |
24309 | ||
24310 | ; | |
24311 | return 0; | |
24312 | } | |
24313 | _ACEOF | |
24314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24316 | (eval $ac_link) 2>&5 | |
24317 | ac_status=$? | |
24318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24319 | (exit $ac_status); } && | |
24320 | { ac_try='test -s conftest$ac_exeext' | |
24321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24322 | (eval $ac_try) 2>&5 | |
24323 | ac_status=$? | |
24324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24325 | (exit $ac_status); }; }; then | |
24326 | eval "$as_ac_var=yes" | |
24327 | else | |
24328 | echo "$as_me: failed program was:" >&5 | |
24329 | cat conftest.$ac_ext >&5 | |
24330 | eval "$as_ac_var=no" | |
24331 | fi | |
24332 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24333 | fi | |
24334 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24335 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24336 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24337 | cat >>confdefs.h <<_ACEOF | |
24338 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24339 | _ACEOF | |
703e0a69 | 24340 | |
af15babd VZ |
24341 | fi |
24342 | done | |
24343 | ||
8284b0c5 | 24344 | |
247f5006 VZ |
24345 | |
24346 | ||
4f14bcd8 | 24347 | for ac_func in putenv setenv |
10f2d63a | 24348 | do |
247f5006 VZ |
24349 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24350 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24351 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24352 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24354 | else | |
24355 | cat >conftest.$ac_ext <<_ACEOF | |
24356 | #line $LINENO "configure" | |
af15babd VZ |
24357 | #include "confdefs.h" |
24358 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 24359 | which can conflict with char $ac_func (); below. */ |
af15babd VZ |
24360 | #include <assert.h> |
24361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
24362 | #ifdef __cplusplus |
24363 | extern "C" | |
24364 | #endif | |
af15babd | 24365 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24366 | builtin and then its argument prototype would still apply. */ |
24367 | char $ac_func (); | |
24368 | char (*f) (); | |
24369 | ||
24370 | #ifdef F77_DUMMY_MAIN | |
24371 | # ifdef __cplusplus | |
24372 | extern "C" | |
24373 | # endif | |
24374 | int F77_DUMMY_MAIN() { return 1; } | |
24375 | #endif | |
24376 | int | |
24377 | main () | |
24378 | { | |
af15babd VZ |
24379 | /* The GNU C library defines this for functions which it implements |
24380 | to always fail with ENOSYS. Some functions are actually named | |
24381 | something starting with __ and the normal name is an alias. */ | |
24382 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24383 | choke me | |
24384 | #else | |
247f5006 | 24385 | f = $ac_func; |
af15babd VZ |
24386 | #endif |
24387 | ||
247f5006 VZ |
24388 | ; |
24389 | return 0; | |
24390 | } | |
24391 | _ACEOF | |
24392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24394 | (eval $ac_link) 2>&5 | |
24395 | ac_status=$? | |
24396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24397 | (exit $ac_status); } && | |
24398 | { ac_try='test -s conftest$ac_exeext' | |
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 | eval "$as_ac_var=yes" | |
24405 | else | |
24406 | echo "$as_me: failed program was:" >&5 | |
24407 | cat conftest.$ac_ext >&5 | |
24408 | eval "$as_ac_var=no" | |
24409 | fi | |
24410 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24411 | fi | |
24412 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24413 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24414 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24415 | cat >>confdefs.h <<_ACEOF | |
24416 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24417 | _ACEOF | |
4f14bcd8 | 24418 | break |
af15babd | 24419 | fi |
af15babd VZ |
24420 | done |
24421 | ||
8284b0c5 | 24422 | |
4f14bcd8 GD |
24423 | HAVE_SOME_SLEEP_FUNC=0 |
24424 | if test "$USE_BEOS" = 1; then | |
247f5006 | 24425 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 24426 | #define HAVE_SLEEP 1 |
247f5006 | 24427 | _ACEOF |
af15babd | 24428 | |
4f14bcd8 | 24429 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
24430 | fi |
24431 | ||
4f14bcd8 | 24432 | if test "$USE_DARWIN" = 1; then |
247f5006 | 24433 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 24434 | #define HAVE_USLEEP 1 |
247f5006 | 24435 | _ACEOF |
10f2d63a | 24436 | |
4f14bcd8 | 24437 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
24438 | fi |
24439 | ||
4f14bcd8 GD |
24440 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
24441 | POSIX4_LINK= | |
247f5006 VZ |
24442 | |
24443 | for ac_func in nanosleep | |
4f14bcd8 | 24444 | do |
247f5006 VZ |
24445 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24446 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24447 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24448 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24450 | else | |
24451 | cat >conftest.$ac_ext <<_ACEOF | |
24452 | #line $LINENO "configure" | |
10f2d63a | 24453 | #include "confdefs.h" |
4f14bcd8 | 24454 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 24455 | which can conflict with char $ac_func (); below. */ |
4f14bcd8 | 24456 | #include <assert.h> |
10f2d63a | 24457 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
24458 | #ifdef __cplusplus |
24459 | extern "C" | |
24460 | #endif | |
10f2d63a | 24461 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24462 | builtin and then its argument prototype would still apply. */ |
24463 | char $ac_func (); | |
24464 | char (*f) (); | |
24465 | ||
24466 | #ifdef F77_DUMMY_MAIN | |
24467 | # ifdef __cplusplus | |
24468 | extern "C" | |
24469 | # endif | |
24470 | int F77_DUMMY_MAIN() { return 1; } | |
24471 | #endif | |
24472 | int | |
24473 | main () | |
24474 | { | |
4f14bcd8 GD |
24475 | /* The GNU C library defines this for functions which it implements |
24476 | to always fail with ENOSYS. Some functions are actually named | |
24477 | something starting with __ and the normal name is an alias. */ | |
24478 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24479 | choke me | |
24480 | #else | |
247f5006 | 24481 | f = $ac_func; |
4f14bcd8 GD |
24482 | #endif |
24483 | ||
247f5006 VZ |
24484 | ; |
24485 | return 0; | |
24486 | } | |
24487 | _ACEOF | |
24488 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24490 | (eval $ac_link) 2>&5 | |
24491 | ac_status=$? | |
24492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24493 | (exit $ac_status); } && | |
24494 | { ac_try='test -s conftest$ac_exeext' | |
24495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24496 | (eval $ac_try) 2>&5 | |
24497 | ac_status=$? | |
24498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24499 | (exit $ac_status); }; }; then | |
24500 | eval "$as_ac_var=yes" | |
24501 | else | |
24502 | echo "$as_me: failed program was:" >&5 | |
24503 | cat conftest.$ac_ext >&5 | |
24504 | eval "$as_ac_var=no" | |
24505 | fi | |
24506 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24507 | fi | |
24508 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24509 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24510 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24511 | cat >>confdefs.h <<_ACEOF | |
24512 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24513 | _ACEOF | |
24514 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 24515 | #define HAVE_NANOSLEEP 1 |
247f5006 | 24516 | _ACEOF |
4f14bcd8 | 24517 | |
10f2d63a | 24518 | else |
247f5006 VZ |
24519 | |
24520 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
24521 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
24522 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
24523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 24524 | else |
247f5006 | 24525 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 24526 | LIBS="-lposix4 $LIBS" |
247f5006 VZ |
24527 | cat >conftest.$ac_ext <<_ACEOF |
24528 | #line $LINENO "configure" | |
10f2d63a | 24529 | #include "confdefs.h" |
247f5006 | 24530 | |
10f2d63a | 24531 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
24532 | #ifdef __cplusplus |
24533 | extern "C" | |
24534 | #endif | |
10f2d63a | 24535 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24536 | builtin and then its argument prototype would still apply. */ |
24537 | char nanosleep (); | |
24538 | #ifdef F77_DUMMY_MAIN | |
24539 | # ifdef __cplusplus | |
24540 | extern "C" | |
24541 | # endif | |
24542 | int F77_DUMMY_MAIN() { return 1; } | |
24543 | #endif | |
24544 | int | |
24545 | main () | |
24546 | { | |
24547 | nanosleep (); | |
24548 | ; | |
24549 | return 0; | |
24550 | } | |
24551 | _ACEOF | |
24552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24554 | (eval $ac_link) 2>&5 | |
24555 | ac_status=$? | |
24556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24557 | (exit $ac_status); } && | |
24558 | { ac_try='test -s conftest$ac_exeext' | |
24559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24560 | (eval $ac_try) 2>&5 | |
24561 | ac_status=$? | |
24562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24563 | (exit $ac_status); }; }; then | |
24564 | ac_cv_lib_posix4_nanosleep=yes | |
24565 | else | |
24566 | echo "$as_me: failed program was:" >&5 | |
24567 | cat conftest.$ac_ext >&5 | |
24568 | ac_cv_lib_posix4_nanosleep=no | |
24569 | fi | |
24570 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24571 | LIBS=$ac_check_lib_save_LIBS | |
24572 | fi | |
24573 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
24574 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
24575 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
24576 | ||
24577 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 24578 | #define HAVE_NANOSLEEP 1 |
247f5006 | 24579 | _ACEOF |
4f14bcd8 | 24580 | |
3d63bc3a | 24581 | POSIX4_LINK=" -lposix4" |
247f5006 | 24582 | |
10f2d63a | 24583 | else |
10f2d63a | 24584 | |
247f5006 VZ |
24585 | |
24586 | for ac_func in usleep | |
4f14bcd8 | 24587 | do |
247f5006 VZ |
24588 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24589 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24590 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24591 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24593 | else | |
24594 | cat >conftest.$ac_ext <<_ACEOF | |
24595 | #line $LINENO "configure" | |
10f2d63a | 24596 | #include "confdefs.h" |
4f14bcd8 | 24597 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 24598 | which can conflict with char $ac_func (); below. */ |
4f14bcd8 GD |
24599 | #include <assert.h> |
24600 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
24601 | #ifdef __cplusplus |
24602 | extern "C" | |
24603 | #endif | |
4f14bcd8 | 24604 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24605 | builtin and then its argument prototype would still apply. */ |
24606 | char $ac_func (); | |
24607 | char (*f) (); | |
24608 | ||
24609 | #ifdef F77_DUMMY_MAIN | |
24610 | # ifdef __cplusplus | |
24611 | extern "C" | |
24612 | # endif | |
24613 | int F77_DUMMY_MAIN() { return 1; } | |
24614 | #endif | |
24615 | int | |
24616 | main () | |
24617 | { | |
4f14bcd8 GD |
24618 | /* The GNU C library defines this for functions which it implements |
24619 | to always fail with ENOSYS. Some functions are actually named | |
24620 | something starting with __ and the normal name is an alias. */ | |
24621 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24622 | choke me | |
24623 | #else | |
247f5006 | 24624 | f = $ac_func; |
4f14bcd8 GD |
24625 | #endif |
24626 | ||
247f5006 VZ |
24627 | ; |
24628 | return 0; | |
24629 | } | |
24630 | _ACEOF | |
24631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24633 | (eval $ac_link) 2>&5 | |
24634 | ac_status=$? | |
24635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24636 | (exit $ac_status); } && | |
24637 | { ac_try='test -s conftest$ac_exeext' | |
24638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24639 | (eval $ac_try) 2>&5 | |
24640 | ac_status=$? | |
24641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24642 | (exit $ac_status); }; }; then | |
24643 | eval "$as_ac_var=yes" | |
24644 | else | |
24645 | echo "$as_me: failed program was:" >&5 | |
24646 | cat conftest.$ac_ext >&5 | |
24647 | eval "$as_ac_var=no" | |
24648 | fi | |
24649 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24650 | fi | |
24651 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24652 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24653 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24654 | cat >>confdefs.h <<_ACEOF | |
24655 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24656 | _ACEOF | |
24657 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 24658 | #define HAVE_USLEEP 1 |
247f5006 | 24659 | _ACEOF |
4f14bcd8 | 24660 | |
698dcdb6 | 24661 | else |
247f5006 VZ |
24662 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
24663 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
24664 | ||
10f2d63a | 24665 | fi |
4f14bcd8 | 24666 | done |
10f2d63a | 24667 | |
247f5006 VZ |
24668 | |
24669 | ||
6232543b | 24670 | fi |
10f2d63a | 24671 | |
247f5006 VZ |
24672 | |
24673 | ||
1e487827 | 24674 | fi |
4f14bcd8 | 24675 | done |
703e0a69 | 24676 | |
10f2d63a VZ |
24677 | fi |
24678 | ||
247f5006 VZ |
24679 | |
24680 | ||
4f14bcd8 | 24681 | for ac_func in uname gethostname |
70846f0a | 24682 | do |
247f5006 VZ |
24683 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24684 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24685 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24686 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24688 | else | |
24689 | cat >conftest.$ac_ext <<_ACEOF | |
24690 | #line $LINENO "configure" | |
70846f0a VZ |
24691 | #include "confdefs.h" |
24692 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 24693 | which can conflict with char $ac_func (); below. */ |
70846f0a VZ |
24694 | #include <assert.h> |
24695 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
24696 | #ifdef __cplusplus |
24697 | extern "C" | |
24698 | #endif | |
70846f0a | 24699 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24700 | builtin and then its argument prototype would still apply. */ |
24701 | char $ac_func (); | |
24702 | char (*f) (); | |
24703 | ||
24704 | #ifdef F77_DUMMY_MAIN | |
24705 | # ifdef __cplusplus | |
24706 | extern "C" | |
24707 | # endif | |
24708 | int F77_DUMMY_MAIN() { return 1; } | |
24709 | #endif | |
24710 | int | |
24711 | main () | |
24712 | { | |
70846f0a VZ |
24713 | /* The GNU C library defines this for functions which it implements |
24714 | to always fail with ENOSYS. Some functions are actually named | |
24715 | something starting with __ and the normal name is an alias. */ | |
24716 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24717 | choke me | |
24718 | #else | |
247f5006 | 24719 | f = $ac_func; |
70846f0a VZ |
24720 | #endif |
24721 | ||
247f5006 VZ |
24722 | ; |
24723 | return 0; | |
24724 | } | |
24725 | _ACEOF | |
24726 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24728 | (eval $ac_link) 2>&5 | |
24729 | ac_status=$? | |
24730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24731 | (exit $ac_status); } && | |
24732 | { ac_try='test -s conftest$ac_exeext' | |
24733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24734 | (eval $ac_try) 2>&5 | |
24735 | ac_status=$? | |
24736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24737 | (exit $ac_status); }; }; then | |
24738 | eval "$as_ac_var=yes" | |
24739 | else | |
24740 | echo "$as_me: failed program was:" >&5 | |
24741 | cat conftest.$ac_ext >&5 | |
24742 | eval "$as_ac_var=no" | |
24743 | fi | |
24744 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24745 | fi | |
24746 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24747 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24748 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24749 | cat >>confdefs.h <<_ACEOF | |
24750 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24751 | _ACEOF | |
4f14bcd8 | 24752 | break |
70846f0a VZ |
24753 | fi |
24754 | done | |
24755 | ||
8284b0c5 MB |
24756 | |
24757 | ||
247f5006 VZ |
24758 | |
24759 | ac_ext=cc | |
4f14bcd8 | 24760 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
24761 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
24762 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24763 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
24764 | ||
8284b0c5 | 24765 | |
4f14bcd8 GD |
24766 | |
24767 | for ac_func in strtok_r | |
10f2d63a | 24768 | do |
247f5006 VZ |
24769 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24770 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24771 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24772 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24774 | else | |
24775 | cat >conftest.$ac_ext <<_ACEOF | |
24776 | #line $LINENO "configure" | |
10f2d63a | 24777 | #include "confdefs.h" |
4f14bcd8 | 24778 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 24779 | which can conflict with char $ac_func (); below. */ |
4f14bcd8 GD |
24780 | #include <assert.h> |
24781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24782 | #ifdef __cplusplus | |
24783 | extern "C" | |
24784 | #endif | |
24785 | /* We use char because int might match the return type of a gcc2 | |
247f5006 VZ |
24786 | builtin and then its argument prototype would still apply. */ |
24787 | char $ac_func (); | |
24788 | char (*f) (); | |
24789 | ||
24790 | #ifdef F77_DUMMY_MAIN | |
24791 | # ifdef __cplusplus | |
24792 | extern "C" | |
24793 | # endif | |
24794 | int F77_DUMMY_MAIN() { return 1; } | |
24795 | #endif | |
24796 | int | |
24797 | main () | |
24798 | { | |
4f14bcd8 GD |
24799 | /* The GNU C library defines this for functions which it implements |
24800 | to always fail with ENOSYS. Some functions are actually named | |
24801 | something starting with __ and the normal name is an alias. */ | |
24802 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24803 | choke me | |
24804 | #else | |
247f5006 | 24805 | f = $ac_func; |
4f14bcd8 GD |
24806 | #endif |
24807 | ||
247f5006 VZ |
24808 | ; |
24809 | return 0; | |
24810 | } | |
24811 | _ACEOF | |
24812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24814 | (eval $ac_link) 2>&5 | |
24815 | ac_status=$? | |
24816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24817 | (exit $ac_status); } && | |
24818 | { ac_try='test -s conftest$ac_exeext' | |
24819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24820 | (eval $ac_try) 2>&5 | |
24821 | ac_status=$? | |
24822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24823 | (exit $ac_status); }; }; then | |
24824 | eval "$as_ac_var=yes" | |
24825 | else | |
24826 | echo "$as_me: failed program was:" >&5 | |
24827 | cat conftest.$ac_ext >&5 | |
24828 | eval "$as_ac_var=no" | |
24829 | fi | |
24830 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24831 | fi | |
24832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24833 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24834 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24835 | cat >>confdefs.h <<_ACEOF | |
24836 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24837 | _ACEOF | |
4f14bcd8 | 24838 | |
10f2d63a VZ |
24839 | fi |
24840 | done | |
24841 | ||
8284b0c5 | 24842 | |
4f14bcd8 | 24843 | ac_ext=c |
4f14bcd8 | 24844 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
24845 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
24846 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
24847 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 24848 | |
5c6fa7d2 | 24849 | |
8284b0c5 | 24850 | INET_LINK= |
247f5006 | 24851 | |
4f14bcd8 GD |
24852 | for ac_func in inet_addr |
24853 | do | |
247f5006 VZ |
24854 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24855 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24856 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24857 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24859 | else | |
24860 | cat >conftest.$ac_ext <<_ACEOF | |
24861 | #line $LINENO "configure" | |
10f2d63a | 24862 | #include "confdefs.h" |
4f14bcd8 | 24863 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 24864 | which can conflict with char $ac_func (); below. */ |
4f14bcd8 | 24865 | #include <assert.h> |
10f2d63a | 24866 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
24867 | #ifdef __cplusplus |
24868 | extern "C" | |
24869 | #endif | |
10f2d63a | 24870 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24871 | builtin and then its argument prototype would still apply. */ |
24872 | char $ac_func (); | |
24873 | char (*f) (); | |
24874 | ||
24875 | #ifdef F77_DUMMY_MAIN | |
24876 | # ifdef __cplusplus | |
24877 | extern "C" | |
24878 | # endif | |
24879 | int F77_DUMMY_MAIN() { return 1; } | |
24880 | #endif | |
24881 | int | |
24882 | main () | |
24883 | { | |
4f14bcd8 GD |
24884 | /* The GNU C library defines this for functions which it implements |
24885 | to always fail with ENOSYS. Some functions are actually named | |
24886 | something starting with __ and the normal name is an alias. */ | |
24887 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24888 | choke me | |
24889 | #else | |
247f5006 | 24890 | f = $ac_func; |
4f14bcd8 GD |
24891 | #endif |
24892 | ||
247f5006 VZ |
24893 | ; |
24894 | return 0; | |
24895 | } | |
24896 | _ACEOF | |
24897 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24899 | (eval $ac_link) 2>&5 | |
24900 | ac_status=$? | |
24901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24902 | (exit $ac_status); } && | |
24903 | { ac_try='test -s conftest$ac_exeext' | |
24904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24905 | (eval $ac_try) 2>&5 | |
24906 | ac_status=$? | |
24907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24908 | (exit $ac_status); }; }; then | |
24909 | eval "$as_ac_var=yes" | |
24910 | else | |
24911 | echo "$as_me: failed program was:" >&5 | |
24912 | cat conftest.$ac_ext >&5 | |
24913 | eval "$as_ac_var=no" | |
24914 | fi | |
24915 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24916 | fi | |
24917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24918 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24919 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24920 | cat >>confdefs.h <<_ACEOF | |
24921 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24922 | _ACEOF | |
24923 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 24924 | #define HAVE_INET_ADDR 1 |
247f5006 | 24925 | _ACEOF |
10f2d63a VZ |
24926 | |
24927 | else | |
247f5006 VZ |
24928 | |
24929 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
24930 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
24931 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
24932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 24933 | else |
247f5006 | 24934 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 24935 | LIBS="-lnsl $LIBS" |
247f5006 VZ |
24936 | cat >conftest.$ac_ext <<_ACEOF |
24937 | #line $LINENO "configure" | |
10f2d63a | 24938 | #include "confdefs.h" |
247f5006 | 24939 | |
10f2d63a | 24940 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
24941 | #ifdef __cplusplus |
24942 | extern "C" | |
24943 | #endif | |
10f2d63a | 24944 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
24945 | builtin and then its argument prototype would still apply. */ |
24946 | char inet_addr (); | |
24947 | #ifdef F77_DUMMY_MAIN | |
24948 | # ifdef __cplusplus | |
24949 | extern "C" | |
24950 | # endif | |
24951 | int F77_DUMMY_MAIN() { return 1; } | |
24952 | #endif | |
24953 | int | |
24954 | main () | |
24955 | { | |
24956 | inet_addr (); | |
24957 | ; | |
24958 | return 0; | |
24959 | } | |
24960 | _ACEOF | |
24961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24963 | (eval $ac_link) 2>&5 | |
24964 | ac_status=$? | |
24965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24966 | (exit $ac_status); } && | |
24967 | { ac_try='test -s conftest$ac_exeext' | |
24968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24969 | (eval $ac_try) 2>&5 | |
24970 | ac_status=$? | |
24971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24972 | (exit $ac_status); }; }; then | |
24973 | ac_cv_lib_nsl_inet_addr=yes | |
24974 | else | |
24975 | echo "$as_me: failed program was:" >&5 | |
24976 | cat conftest.$ac_ext >&5 | |
24977 | ac_cv_lib_nsl_inet_addr=no | |
24978 | fi | |
24979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24980 | LIBS=$ac_check_lib_save_LIBS | |
24981 | fi | |
24982 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
24983 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
24984 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 24985 | INET_LINK="nsl" |
10f2d63a | 24986 | else |
247f5006 VZ |
24987 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 |
24988 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
24989 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
24990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 24991 | else |
247f5006 | 24992 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 24993 | LIBS="-lresolv $LIBS" |
247f5006 VZ |
24994 | cat >conftest.$ac_ext <<_ACEOF |
24995 | #line $LINENO "configure" | |
7b4a847f | 24996 | #include "confdefs.h" |
247f5006 | 24997 | |
5c6fa7d2 | 24998 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
24999 | #ifdef __cplusplus |
25000 | extern "C" | |
25001 | #endif | |
5c6fa7d2 | 25002 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25003 | builtin and then its argument prototype would still apply. */ |
25004 | char inet_addr (); | |
25005 | #ifdef F77_DUMMY_MAIN | |
25006 | # ifdef __cplusplus | |
25007 | extern "C" | |
25008 | # endif | |
25009 | int F77_DUMMY_MAIN() { return 1; } | |
25010 | #endif | |
25011 | int | |
25012 | main () | |
25013 | { | |
25014 | inet_addr (); | |
25015 | ; | |
25016 | return 0; | |
25017 | } | |
25018 | _ACEOF | |
25019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25021 | (eval $ac_link) 2>&5 | |
25022 | ac_status=$? | |
25023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25024 | (exit $ac_status); } && | |
25025 | { ac_try='test -s conftest$ac_exeext' | |
25026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25027 | (eval $ac_try) 2>&5 | |
25028 | ac_status=$? | |
25029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25030 | (exit $ac_status); }; }; then | |
25031 | ac_cv_lib_resolv_inet_addr=yes | |
25032 | else | |
25033 | echo "$as_me: failed program was:" >&5 | |
25034 | cat conftest.$ac_ext >&5 | |
25035 | ac_cv_lib_resolv_inet_addr=no | |
25036 | fi | |
25037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25038 | LIBS=$ac_check_lib_save_LIBS | |
25039 | fi | |
25040 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
25041 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
25042 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 25043 | INET_LINK="resolv" |
698dcdb6 | 25044 | else |
247f5006 VZ |
25045 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 |
25046 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
25047 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
25048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 25049 | else |
247f5006 | 25050 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 25051 | LIBS="-lsocket $LIBS" |
247f5006 VZ |
25052 | cat >conftest.$ac_ext <<_ACEOF |
25053 | #line $LINENO "configure" | |
3c011993 | 25054 | #include "confdefs.h" |
247f5006 | 25055 | |
3c011993 | 25056 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
25057 | #ifdef __cplusplus |
25058 | extern "C" | |
25059 | #endif | |
3c011993 | 25060 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25061 | builtin and then its argument prototype would still apply. */ |
25062 | char inet_addr (); | |
25063 | #ifdef F77_DUMMY_MAIN | |
25064 | # ifdef __cplusplus | |
25065 | extern "C" | |
25066 | # endif | |
25067 | int F77_DUMMY_MAIN() { return 1; } | |
25068 | #endif | |
25069 | int | |
25070 | main () | |
25071 | { | |
25072 | inet_addr (); | |
25073 | ; | |
25074 | return 0; | |
25075 | } | |
25076 | _ACEOF | |
25077 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25079 | (eval $ac_link) 2>&5 | |
25080 | ac_status=$? | |
25081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25082 | (exit $ac_status); } && | |
25083 | { ac_try='test -s conftest$ac_exeext' | |
25084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25085 | (eval $ac_try) 2>&5 | |
25086 | ac_status=$? | |
25087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25088 | (exit $ac_status); }; }; then | |
25089 | ac_cv_lib_socket_inet_addr=yes | |
25090 | else | |
25091 | echo "$as_me: failed program was:" >&5 | |
25092 | cat conftest.$ac_ext >&5 | |
25093 | ac_cv_lib_socket_inet_addr=no | |
25094 | fi | |
25095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25096 | LIBS=$ac_check_lib_save_LIBS | |
25097 | fi | |
25098 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
25099 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
25100 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
25101 | INET_LINK="socket" | |
4f14bcd8 | 25102 | |
8284b0c5 | 25103 | fi |
8284b0c5 | 25104 | |
698dcdb6 | 25105 | |
7b4a847f | 25106 | fi |
579d8138 | 25107 | |
247f5006 | 25108 | |
5c6fa7d2 | 25109 | fi |
52127426 | 25110 | |
247f5006 | 25111 | |
8284b0c5 | 25112 | |
698dcdb6 | 25113 | fi |
4f14bcd8 GD |
25114 | done |
25115 | ||
8284b0c5 | 25116 | |
247f5006 | 25117 | |
4f14bcd8 GD |
25118 | for ac_func in inet_aton |
25119 | do | |
247f5006 VZ |
25120 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25121 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25122 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25123 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25125 | else | |
25126 | cat >conftest.$ac_ext <<_ACEOF | |
25127 | #line $LINENO "configure" | |
f6bcfd97 | 25128 | #include "confdefs.h" |
4f14bcd8 | 25129 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 25130 | which can conflict with char $ac_func (); below. */ |
4f14bcd8 | 25131 | #include <assert.h> |
f6bcfd97 | 25132 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
25133 | #ifdef __cplusplus |
25134 | extern "C" | |
25135 | #endif | |
f6bcfd97 | 25136 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25137 | builtin and then its argument prototype would still apply. */ |
25138 | char $ac_func (); | |
25139 | char (*f) (); | |
25140 | ||
25141 | #ifdef F77_DUMMY_MAIN | |
25142 | # ifdef __cplusplus | |
25143 | extern "C" | |
25144 | # endif | |
25145 | int F77_DUMMY_MAIN() { return 1; } | |
25146 | #endif | |
25147 | int | |
25148 | main () | |
25149 | { | |
4f14bcd8 GD |
25150 | /* The GNU C library defines this for functions which it implements |
25151 | to always fail with ENOSYS. Some functions are actually named | |
25152 | something starting with __ and the normal name is an alias. */ | |
25153 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25154 | choke me | |
25155 | #else | |
247f5006 | 25156 | f = $ac_func; |
4f14bcd8 GD |
25157 | #endif |
25158 | ||
247f5006 VZ |
25159 | ; |
25160 | return 0; | |
25161 | } | |
25162 | _ACEOF | |
25163 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25164 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25165 | (eval $ac_link) 2>&5 | |
25166 | ac_status=$? | |
25167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25168 | (exit $ac_status); } && | |
25169 | { ac_try='test -s conftest$ac_exeext' | |
25170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25171 | (eval $ac_try) 2>&5 | |
25172 | ac_status=$? | |
25173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25174 | (exit $ac_status); }; }; then | |
25175 | eval "$as_ac_var=yes" | |
25176 | else | |
25177 | echo "$as_me: failed program was:" >&5 | |
25178 | cat conftest.$ac_ext >&5 | |
25179 | eval "$as_ac_var=no" | |
25180 | fi | |
25181 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25182 | fi | |
25183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25184 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25185 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25186 | cat >>confdefs.h <<_ACEOF | |
25187 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25188 | _ACEOF | |
25189 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 25190 | #define HAVE_INET_ATON 1 |
247f5006 | 25191 | _ACEOF |
4f14bcd8 | 25192 | |
10f2d63a | 25193 | else |
247f5006 VZ |
25194 | |
25195 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
25196 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
25197 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
25198 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
25199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1e487827 | 25200 | else |
247f5006 | 25201 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 25202 | LIBS="-l$INET_LINK $LIBS" |
247f5006 VZ |
25203 | cat >conftest.$ac_ext <<_ACEOF |
25204 | #line $LINENO "configure" | |
10f2d63a | 25205 | #include "confdefs.h" |
247f5006 | 25206 | |
6232543b | 25207 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
25208 | #ifdef __cplusplus |
25209 | extern "C" | |
25210 | #endif | |
6232543b | 25211 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25212 | builtin and then its argument prototype would still apply. */ |
25213 | char inet_aton (); | |
25214 | #ifdef F77_DUMMY_MAIN | |
25215 | # ifdef __cplusplus | |
25216 | extern "C" | |
25217 | # endif | |
25218 | int F77_DUMMY_MAIN() { return 1; } | |
25219 | #endif | |
25220 | int | |
25221 | main () | |
25222 | { | |
25223 | inet_aton (); | |
25224 | ; | |
25225 | return 0; | |
25226 | } | |
25227 | _ACEOF | |
25228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25230 | (eval $ac_link) 2>&5 | |
25231 | ac_status=$? | |
25232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25233 | (exit $ac_status); } && | |
25234 | { ac_try='test -s conftest$ac_exeext' | |
25235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25236 | (eval $ac_try) 2>&5 | |
25237 | ac_status=$? | |
25238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25239 | (exit $ac_status); }; }; then | |
25240 | eval "$as_ac_Lib=yes" | |
25241 | else | |
25242 | echo "$as_me: failed program was:" >&5 | |
25243 | cat conftest.$ac_ext >&5 | |
25244 | eval "$as_ac_Lib=no" | |
25245 | fi | |
25246 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25247 | LIBS=$ac_check_lib_save_LIBS | |
25248 | fi | |
25249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
25250 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
25251 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
25252 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 25253 | #define HAVE_INET_ATON 1 |
247f5006 | 25254 | _ACEOF |
4f14bcd8 | 25255 | |
10f2d63a VZ |
25256 | fi |
25257 | ||
247f5006 | 25258 | |
10f2d63a | 25259 | fi |
4f14bcd8 | 25260 | done |
10f2d63a | 25261 | |
8284b0c5 | 25262 | |
4f14bcd8 | 25263 | if test "x$INET_LINK" != "x"; then |
247f5006 | 25264 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 25265 | #define HAVE_INET_ADDR 1 |
247f5006 | 25266 | _ACEOF |
4f14bcd8 | 25267 | |
3d63bc3a | 25268 | INET_LINK=" -l$INET_LINK" |
6232543b | 25269 | fi |
10f2d63a | 25270 | |
1e487827 | 25271 | fi |
703e0a69 | 25272 | |
8284b0c5 | 25273 | |
247f5006 | 25274 | cat >confcache <<\_ACEOF |
4f14bcd8 GD |
25275 | # This file is a shell script that caches the results of configure |
25276 | # tests run on this system so they can be shared between configure | |
247f5006 VZ |
25277 | # scripts and configure runs, see configure's option --config-cache. |
25278 | # It is not useful on other systems. If it contains results you don't | |
25279 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 25280 | # |
247f5006 VZ |
25281 | # config.status only pays attention to the cache file if you give it |
25282 | # the --recheck option to rerun configure. | |
4f14bcd8 | 25283 | # |
247f5006 VZ |
25284 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
25285 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
25286 | # following values. | |
25287 | ||
25288 | _ACEOF | |
25289 | ||
4f14bcd8 GD |
25290 | # The following way of writing the cache mishandles newlines in values, |
25291 | # but we know of no workaround that is simple, portable, and efficient. | |
25292 | # So, don't put newlines in cache variables' values. | |
25293 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
25294 | # and sets the high bit in the cache file unless we assign to the vars. | |
247f5006 VZ |
25295 | { |
25296 | (set) 2>&1 | | |
25297 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
25298 | *ac_space=\ *) | |
25299 | # `set' does not quote correctly, so add quotes (double-quote | |
25300 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
25301 | sed -n \ | |
25302 | "s/'/'\\\\''/g; | |
25303 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
25304 | ;; | |
25305 | *) | |
25306 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
25307 | sed -n \ | |
25308 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
25309 | ;; | |
25310 | esac; | |
25311 | } | | |
25312 | sed ' | |
25313 | t clear | |
25314 | : clear | |
25315 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
25316 | t end | |
25317 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
25318 | : end' >>confcache | |
25319 | if cmp -s $cache_file confcache; then :; else | |
4f14bcd8 | 25320 | if test -w $cache_file; then |
247f5006 VZ |
25321 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
25322 | cat confcache >$cache_file | |
f6bcfd97 | 25323 | else |
4f14bcd8 | 25324 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 25325 | fi |
4f14bcd8 GD |
25326 | fi |
25327 | rm -f confcache | |
f6bcfd97 | 25328 | |
8284b0c5 | 25329 | |
009fead0 | 25330 | CPP_MT_FLAG= |
4f14bcd8 GD |
25331 | if test "$TOOLKIT" != "MSW"; then |
25332 | ||
247f5006 | 25333 | |
7274f1c7 | 25334 | THREADS_LINK= |
009fead0 | 25335 | THREADS_CFLAGS= |
7274f1c7 RL |
25336 | |
25337 | if test "$wxUSE_THREADS" = "yes" ; then | |
25338 | if test "$wxUSE_WINE" = 1 ; then | |
247f5006 VZ |
25339 | { echo "$as_me:$LINENO: WARNING: Threads are not supported under WINE... disabled" >&5 |
25340 | echo "$as_me: WARNING: Threads are not supported under WINE... disabled" >&2;} | |
7274f1c7 RL |
25341 | wxUSE_THREADS="no" |
25342 | elif test "$USE_BEOS" = 1; then | |
247f5006 VZ |
25343 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
25344 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
25345 | wxUSE_THREADS="no" |
25346 | fi | |
4f14bcd8 | 25347 | fi |
4f14bcd8 | 25348 | |
7274f1c7 | 25349 | if test "$wxUSE_THREADS" = "yes" ; then |
247f5006 VZ |
25350 | |
25351 | ||
009fead0 VZ |
25352 | THREAD_OPTS="-pthread" |
25353 | case "${host}" in | |
25354 | *-*-solaris2* | *-*-sunos4* ) | |
25355 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 25356 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
25357 | else |
25358 | THREAD_OPTS="-mt $THREAD_OPTS" | |
25359 | fi | |
25360 | ;; | |
25361 | *-*-freebsd*) | |
25362 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
25363 | ;; | |
17234b26 MB |
25364 | *-*-darwin* | *-*-cygwin* ) |
25365 | THREAD_OPTS="" | |
4101db81 | 25366 | ;; |
8f4a9a10 | 25367 | *-*-aix*) |
009fead0 VZ |
25368 | THREAD_OPTS="pthreads" |
25369 | ;; | |
009fead0 | 25370 | esac |
4f14bcd8 | 25371 | |
02a1dfba | 25372 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 25373 | |
009fead0 VZ |
25374 | THREADS_OK=no |
25375 | for flag in $THREAD_OPTS; do | |
25376 | case $flag in | |
25377 | none) | |
247f5006 VZ |
25378 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
25379 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 25380 | ;; |
698dcdb6 | 25381 | |
009fead0 | 25382 | -*) |
247f5006 VZ |
25383 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
25384 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
25385 | THREADS_CFLAGS="$flag" |
25386 | ;; | |
698dcdb6 | 25387 | |
009fead0 | 25388 | *) |
247f5006 VZ |
25389 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
25390 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
25391 | THREADS_LINK="-l$flag" |
25392 | ;; | |
25393 | esac | |
10f2d63a | 25394 | |
009fead0 VZ |
25395 | save_LIBS="$LIBS" |
25396 | save_CFLAGS="$CFLAGS" | |
25397 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 25398 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 25399 | |
247f5006 VZ |
25400 | cat >conftest.$ac_ext <<_ACEOF |
25401 | #line $LINENO "configure" | |
009fead0 VZ |
25402 | #include "confdefs.h" |
25403 | #include <pthread.h> | |
247f5006 VZ |
25404 | #ifdef F77_DUMMY_MAIN |
25405 | # ifdef __cplusplus | |
25406 | extern "C" | |
25407 | # endif | |
25408 | int F77_DUMMY_MAIN() { return 1; } | |
25409 | #endif | |
25410 | int | |
25411 | main () | |
25412 | { | |
009fead0 | 25413 | pthread_create(0,0,0,0); |
247f5006 VZ |
25414 | ; |
25415 | return 0; | |
25416 | } | |
25417 | _ACEOF | |
25418 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25420 | (eval $ac_link) 2>&5 | |
25421 | ac_status=$? | |
25422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25423 | (exit $ac_status); } && | |
25424 | { ac_try='test -s conftest$ac_exeext' | |
25425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25426 | (eval $ac_try) 2>&5 | |
25427 | ac_status=$? | |
25428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25429 | (exit $ac_status); }; }; then | |
009fead0 | 25430 | THREADS_OK=yes |
10f2d63a | 25431 | else |
247f5006 VZ |
25432 | echo "$as_me: failed program was:" >&5 |
25433 | cat conftest.$ac_ext >&5 | |
6232543b | 25434 | fi |
247f5006 | 25435 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 25436 | |
009fead0 VZ |
25437 | LIBS="$save_LIBS" |
25438 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 25439 | |
247f5006 VZ |
25440 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
25441 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
25442 | if test "x$THREADS_OK" = "xyes"; then |
25443 | break; | |
25444 | fi | |
d9b9876f | 25445 | |
009fead0 VZ |
25446 | THREADS_LINK="" |
25447 | THREADS_CFLAGS="" | |
25448 | done | |
4f14bcd8 | 25449 | |
009fead0 VZ |
25450 | if test "x$THREADS_OK" != "xyes"; then |
25451 | wxUSE_THREADS=no | |
247f5006 VZ |
25452 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
25453 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 25454 | else |
fe5a9cab VZ |
25455 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
25456 | ||
247f5006 VZ |
25457 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
25458 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
25459 | flag=no |
25460 | case "${host}" in | |
25461 | *-aix* | *-freebsd*) | |
25462 | flag="-D_THREAD_SAFE" | |
25463 | ;; | |
25464 | *solaris* | alpha*-osf*) | |
25465 | flag="-D_REENTRANT" | |
25466 | ;; | |
25467 | esac | |
247f5006 VZ |
25468 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
25469 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 25470 | if test "x$flag" != xno; then |
04727afd | 25471 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
25472 | fi |
25473 | ||
009fead0 | 25474 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 25475 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
25476 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
25477 | fi | |
25478 | fi | |
4f14bcd8 | 25479 | fi |
4f14bcd8 | 25480 | |
7274f1c7 | 25481 | if test "$wxUSE_THREADS" = "yes" ; then |
247f5006 VZ |
25482 | |
25483 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 25484 | do |
247f5006 VZ |
25485 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25486 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
25487 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
25488 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
25489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25490 | else | |
25491 | cat >conftest.$ac_ext <<_ACEOF | |
25492 | #line $LINENO "configure" | |
d9b9876f | 25493 | #include "confdefs.h" |
4f14bcd8 | 25494 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 25495 | which can conflict with char $ac_func (); below. */ |
4f14bcd8 GD |
25496 | #include <assert.h> |
25497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
25498 | #ifdef __cplusplus |
25499 | extern "C" | |
25500 | #endif | |
4f14bcd8 | 25501 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25502 | builtin and then its argument prototype would still apply. */ |
25503 | char $ac_func (); | |
25504 | char (*f) (); | |
25505 | ||
25506 | #ifdef F77_DUMMY_MAIN | |
25507 | # ifdef __cplusplus | |
25508 | extern "C" | |
25509 | # endif | |
25510 | int F77_DUMMY_MAIN() { return 1; } | |
25511 | #endif | |
25512 | int | |
25513 | main () | |
25514 | { | |
4f14bcd8 GD |
25515 | /* The GNU C library defines this for functions which it implements |
25516 | to always fail with ENOSYS. Some functions are actually named | |
25517 | something starting with __ and the normal name is an alias. */ | |
25518 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
25519 | choke me | |
25520 | #else | |
247f5006 | 25521 | f = $ac_func; |
4f14bcd8 GD |
25522 | #endif |
25523 | ||
247f5006 VZ |
25524 | ; |
25525 | return 0; | |
25526 | } | |
25527 | _ACEOF | |
25528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25530 | (eval $ac_link) 2>&5 | |
25531 | ac_status=$? | |
25532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25533 | (exit $ac_status); } && | |
25534 | { ac_try='test -s conftest$ac_exeext' | |
25535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25536 | (eval $ac_try) 2>&5 | |
25537 | ac_status=$? | |
25538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25539 | (exit $ac_status); }; }; then | |
25540 | eval "$as_ac_var=yes" | |
25541 | else | |
25542 | echo "$as_me: failed program was:" >&5 | |
25543 | cat conftest.$ac_ext >&5 | |
25544 | eval "$as_ac_var=no" | |
25545 | fi | |
25546 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25547 | fi | |
25548 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
25549 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
25550 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25551 | cat >>confdefs.h <<_ACEOF | |
25552 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
25553 | _ACEOF | |
698dcdb6 | 25554 | |
10f2d63a | 25555 | fi |
4f14bcd8 | 25556 | done |
10f2d63a | 25557 | |
8284b0c5 | 25558 | |
247f5006 VZ |
25559 | |
25560 | for ac_header in sched.h | |
4f14bcd8 | 25561 | do |
247f5006 VZ |
25562 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
25563 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25564 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25566 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25568 | fi | |
25569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25570 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25571 | else | |
25572 | # Is the header compilable? | |
25573 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25574 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25575 | cat >conftest.$ac_ext <<_ACEOF | |
25576 | #line $LINENO "configure" | |
4f14bcd8 | 25577 | #include "confdefs.h" |
247f5006 VZ |
25578 | $ac_includes_default |
25579 | #include <$ac_header> | |
25580 | _ACEOF | |
25581 | rm -f conftest.$ac_objext | |
25582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25583 | (eval $ac_compile) 2>&5 | |
25584 | ac_status=$? | |
25585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25586 | (exit $ac_status); } && | |
25587 | { ac_try='test -s conftest.$ac_objext' | |
25588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25589 | (eval $ac_try) 2>&5 | |
25590 | ac_status=$? | |
25591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25592 | (exit $ac_status); }; }; then | |
25593 | ac_header_compiler=yes | |
25594 | else | |
25595 | echo "$as_me: failed program was:" >&5 | |
25596 | cat conftest.$ac_ext >&5 | |
25597 | ac_header_compiler=no | |
25598 | fi | |
25599 | rm -f conftest.$ac_objext conftest.$ac_ext | |
25600 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
25601 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25602 | ||
25603 | # Is the header present? | |
25604 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25605 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
25606 | cat >conftest.$ac_ext <<_ACEOF | |
25607 | #line $LINENO "configure" | |
25608 | #include "confdefs.h" | |
25609 | #include <$ac_header> | |
25610 | _ACEOF | |
25611 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25612 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25613 | ac_status=$? | |
25614 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
25615 | rm -f conftest.er1 | |
25616 | cat conftest.err >&5 | |
25617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25618 | (exit $ac_status); } >/dev/null; then | |
25619 | if test -s conftest.err; then | |
25620 | ac_cpp_err=$ac_c_preproc_warn_flag | |
25621 | else | |
25622 | ac_cpp_err= | |
25623 | fi | |
25624 | else | |
25625 | ac_cpp_err=yes | |
25626 | fi | |
25627 | if test -z "$ac_cpp_err"; then | |
25628 | ac_header_preproc=yes | |
25629 | else | |
25630 | echo "$as_me: failed program was:" >&5 | |
4f14bcd8 | 25631 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
25632 | ac_header_preproc=no |
25633 | fi | |
25634 | rm -f conftest.err conftest.$ac_ext | |
25635 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25636 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25637 | ||
25638 | # So? What about this header? | |
25639 | case $ac_header_compiler:$ac_header_preproc in | |
25640 | yes:no ) | |
25641 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
25642 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
25643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
25644 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
25645 | no:yes ) | |
25646 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
25647 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
25648 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
25649 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25650 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
25651 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
25652 | esac | |
25653 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25654 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25655 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25657 | else | |
25658 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 25659 | fi |
247f5006 VZ |
25660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
25661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25662 | ||
10f2d63a | 25663 | fi |
247f5006 VZ |
25664 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25665 | cat >>confdefs.h <<_ACEOF | |
25666 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25667 | _ACEOF | |
25668 | ||
f6bcfd97 | 25669 | fi |
247f5006 | 25670 | |
4f14bcd8 | 25671 | done |
f6bcfd97 | 25672 | |
009fead0 | 25673 | if test "$ac_cv_header_sched_h" = "yes"; then |
247f5006 VZ |
25674 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
25675 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
25676 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
25677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25678 | else |
247f5006 VZ |
25679 | cat >conftest.$ac_ext <<_ACEOF |
25680 | #line $LINENO "configure" | |
4f14bcd8 | 25681 | #include "confdefs.h" |
009fead0 | 25682 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 25683 | which can conflict with char sched_yield (); below. */ |
009fead0 | 25684 | #include <assert.h> |
4f14bcd8 | 25685 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
25686 | #ifdef __cplusplus |
25687 | extern "C" | |
25688 | #endif | |
4f14bcd8 | 25689 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25690 | builtin and then its argument prototype would still apply. */ |
25691 | char sched_yield (); | |
25692 | char (*f) (); | |
25693 | ||
25694 | #ifdef F77_DUMMY_MAIN | |
25695 | # ifdef __cplusplus | |
25696 | extern "C" | |
25697 | # endif | |
25698 | int F77_DUMMY_MAIN() { return 1; } | |
25699 | #endif | |
25700 | int | |
25701 | main () | |
25702 | { | |
009fead0 VZ |
25703 | /* The GNU C library defines this for functions which it implements |
25704 | to always fail with ENOSYS. Some functions are actually named | |
25705 | something starting with __ and the normal name is an alias. */ | |
25706 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
25707 | choke me | |
25708 | #else | |
247f5006 | 25709 | f = sched_yield; |
009fead0 VZ |
25710 | #endif |
25711 | ||
247f5006 VZ |
25712 | ; |
25713 | return 0; | |
25714 | } | |
25715 | _ACEOF | |
25716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25718 | (eval $ac_link) 2>&5 | |
25719 | ac_status=$? | |
25720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25721 | (exit $ac_status); } && | |
25722 | { ac_try='test -s conftest$ac_exeext' | |
25723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25724 | (eval $ac_try) 2>&5 | |
25725 | ac_status=$? | |
25726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25727 | (exit $ac_status); }; }; then | |
25728 | ac_cv_func_sched_yield=yes | |
25729 | else | |
25730 | echo "$as_me: failed program was:" >&5 | |
25731 | cat conftest.$ac_ext >&5 | |
25732 | ac_cv_func_sched_yield=no | |
25733 | fi | |
25734 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25735 | fi | |
25736 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
25737 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
25738 | if test $ac_cv_func_sched_yield = yes; then | |
25739 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 25740 | #define HAVE_SCHED_YIELD 1 |
247f5006 | 25741 | _ACEOF |
10f2d63a | 25742 | |
4f14bcd8 | 25743 | else |
009fead0 | 25744 | |
247f5006 VZ |
25745 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
25746 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
25747 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
25748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25749 | else |
247f5006 | 25750 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 25751 | LIBS="-lposix4 $LIBS" |
247f5006 VZ |
25752 | cat >conftest.$ac_ext <<_ACEOF |
25753 | #line $LINENO "configure" | |
4f14bcd8 | 25754 | #include "confdefs.h" |
247f5006 | 25755 | |
4f14bcd8 | 25756 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
25757 | #ifdef __cplusplus |
25758 | extern "C" | |
25759 | #endif | |
4f14bcd8 | 25760 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25761 | builtin and then its argument prototype would still apply. */ |
25762 | char sched_yield (); | |
25763 | #ifdef F77_DUMMY_MAIN | |
25764 | # ifdef __cplusplus | |
25765 | extern "C" | |
25766 | # endif | |
25767 | int F77_DUMMY_MAIN() { return 1; } | |
25768 | #endif | |
25769 | int | |
25770 | main () | |
25771 | { | |
25772 | sched_yield (); | |
25773 | ; | |
25774 | return 0; | |
25775 | } | |
25776 | _ACEOF | |
25777 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25779 | (eval $ac_link) 2>&5 | |
25780 | ac_status=$? | |
25781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25782 | (exit $ac_status); } && | |
25783 | { ac_try='test -s conftest$ac_exeext' | |
25784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25785 | (eval $ac_try) 2>&5 | |
25786 | ac_status=$? | |
25787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25788 | (exit $ac_status); }; }; then | |
25789 | ac_cv_lib_posix4_sched_yield=yes | |
25790 | else | |
25791 | echo "$as_me: failed program was:" >&5 | |
25792 | cat conftest.$ac_ext >&5 | |
25793 | ac_cv_lib_posix4_sched_yield=no | |
25794 | fi | |
25795 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25796 | LIBS=$ac_check_lib_save_LIBS | |
25797 | fi | |
25798 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
25799 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
25800 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
25801 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 25802 | #define HAVE_SCHED_YIELD 1 |
247f5006 | 25803 | _ACEOF |
3d63bc3a | 25804 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 25805 | else |
247f5006 VZ |
25806 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
25807 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
25808 | ||
54276ccf VZ |
25809 | fi |
25810 | ||
247f5006 VZ |
25811 | |
25812 | ||
4f14bcd8 | 25813 | fi |
698dcdb6 | 25814 | |
009fead0 | 25815 | fi |
10f2d63a | 25816 | |
7274f1c7 | 25817 | HAVE_PRIOR_FUNCS=0 |
247f5006 VZ |
25818 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
25819 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
25820 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
25821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25822 | else |
247f5006 VZ |
25823 | cat >conftest.$ac_ext <<_ACEOF |
25824 | #line $LINENO "configure" | |
422107f9 | 25825 | #include "confdefs.h" |
009fead0 | 25826 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 25827 | which can conflict with char pthread_attr_getschedpolicy (); below. */ |
009fead0 | 25828 | #include <assert.h> |
4f14bcd8 | 25829 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
25830 | #ifdef __cplusplus |
25831 | extern "C" | |
25832 | #endif | |
4f14bcd8 | 25833 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25834 | builtin and then its argument prototype would still apply. */ |
25835 | char pthread_attr_getschedpolicy (); | |
25836 | char (*f) (); | |
25837 | ||
25838 | #ifdef F77_DUMMY_MAIN | |
25839 | # ifdef __cplusplus | |
25840 | extern "C" | |
25841 | # endif | |
25842 | int F77_DUMMY_MAIN() { return 1; } | |
25843 | #endif | |
25844 | int | |
25845 | main () | |
25846 | { | |
009fead0 VZ |
25847 | /* The GNU C library defines this for functions which it implements |
25848 | to always fail with ENOSYS. Some functions are actually named | |
25849 | something starting with __ and the normal name is an alias. */ | |
25850 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
25851 | choke me | |
25852 | #else | |
247f5006 | 25853 | f = pthread_attr_getschedpolicy; |
009fead0 VZ |
25854 | #endif |
25855 | ||
247f5006 VZ |
25856 | ; |
25857 | return 0; | |
25858 | } | |
25859 | _ACEOF | |
25860 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25862 | (eval $ac_link) 2>&5 | |
25863 | ac_status=$? | |
25864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25865 | (exit $ac_status); } && | |
25866 | { ac_try='test -s conftest$ac_exeext' | |
25867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25868 | (eval $ac_try) 2>&5 | |
25869 | ac_status=$? | |
25870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25871 | (exit $ac_status); }; }; then | |
25872 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
25873 | else | |
25874 | echo "$as_me: failed program was:" >&5 | |
25875 | cat conftest.$ac_ext >&5 | |
25876 | ac_cv_func_pthread_attr_getschedpolicy=no | |
25877 | fi | |
25878 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25879 | fi | |
25880 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
25881 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
25882 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
25883 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
25884 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
25885 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
25886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25887 | else | |
25888 | cat >conftest.$ac_ext <<_ACEOF | |
25889 | #line $LINENO "configure" | |
8284b0c5 | 25890 | #include "confdefs.h" |
247f5006 VZ |
25891 | /* System header to define __stub macros and hopefully few prototypes |
25892 | else | |
25893 | which can conflict with char pthread_attr_setschedparam (); below. */ | |
009fead0 | 25894 | #include <assert.h> |
422107f9 | 25895 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
25896 | #ifdef __cplusplus |
25897 | extern "C" | |
25898 | #endif | |
422107f9 | 25899 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25900 | builtin and then its argument prototype would still apply. */ |
25901 | char pthread_attr_setschedparam (); | |
25902 | char (*f) (); | |
25903 | ||
25904 | #ifdef F77_DUMMY_MAIN | |
25905 | # ifdef __cplusplus | |
25906 | extern "C" | |
25907 | # endif | |
25908 | int F77_DUMMY_MAIN() { return 1; } | |
25909 | #endif | |
25910 | int | |
25911 | main () | |
25912 | { | |
009fead0 VZ |
25913 | /* The GNU C library defines this for functions which it implements |
25914 | to always fail with ENOSYS. Some functions are actually named | |
25915 | something starting with __ and the normal name is an alias. */ | |
25916 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
25917 | choke me | |
25918 | #else | |
247f5006 | 25919 | f = pthread_attr_setschedparam; |
009fead0 VZ |
25920 | #endif |
25921 | ||
247f5006 VZ |
25922 | ; |
25923 | return 0; | |
25924 | } | |
25925 | _ACEOF | |
25926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25928 | (eval $ac_link) 2>&5 | |
25929 | ac_status=$? | |
25930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25931 | (exit $ac_status); } && | |
25932 | { ac_try='test -s conftest$ac_exeext' | |
25933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25934 | (eval $ac_try) 2>&5 | |
25935 | ac_status=$? | |
25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25937 | (exit $ac_status); }; }; then | |
25938 | ac_cv_func_pthread_attr_setschedparam=yes | |
25939 | else | |
25940 | echo "$as_me: failed program was:" >&5 | |
25941 | cat conftest.$ac_ext >&5 | |
25942 | ac_cv_func_pthread_attr_setschedparam=no | |
25943 | fi | |
25944 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
25945 | fi | |
25946 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
25947 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
25948 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
25949 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
25950 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
25951 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
25952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25953 | else | |
25954 | cat >conftest.$ac_ext <<_ACEOF | |
25955 | #line $LINENO "configure" | |
422107f9 | 25956 | #include "confdefs.h" |
009fead0 VZ |
25957 | /* System header to define __stub macros and hopefully few prototypes |
25958 | else | |
247f5006 | 25959 | which can conflict with char sched_get_priority_max (); below. */ |
009fead0 | 25960 | #include <assert.h> |
4f14bcd8 | 25961 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
25962 | #ifdef __cplusplus |
25963 | extern "C" | |
25964 | #endif | |
4f14bcd8 | 25965 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
25966 | builtin and then its argument prototype would still apply. */ |
25967 | char sched_get_priority_max (); | |
25968 | char (*f) (); | |
25969 | ||
25970 | #ifdef F77_DUMMY_MAIN | |
25971 | # ifdef __cplusplus | |
25972 | extern "C" | |
25973 | # endif | |
25974 | int F77_DUMMY_MAIN() { return 1; } | |
25975 | #endif | |
25976 | int | |
25977 | main () | |
25978 | { | |
009fead0 VZ |
25979 | /* The GNU C library defines this for functions which it implements |
25980 | to always fail with ENOSYS. Some functions are actually named | |
25981 | something starting with __ and the normal name is an alias. */ | |
25982 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
25983 | choke me | |
25984 | #else | |
247f5006 | 25985 | f = sched_get_priority_max; |
009fead0 VZ |
25986 | #endif |
25987 | ||
247f5006 VZ |
25988 | ; |
25989 | return 0; | |
25990 | } | |
25991 | _ACEOF | |
25992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25994 | (eval $ac_link) 2>&5 | |
25995 | ac_status=$? | |
25996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25997 | (exit $ac_status); } && | |
25998 | { ac_try='test -s conftest$ac_exeext' | |
25999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26000 | (eval $ac_try) 2>&5 | |
26001 | ac_status=$? | |
26002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26003 | (exit $ac_status); }; }; then | |
26004 | ac_cv_func_sched_get_priority_max=yes | |
26005 | else | |
26006 | echo "$as_me: failed program was:" >&5 | |
26007 | cat conftest.$ac_ext >&5 | |
26008 | ac_cv_func_sched_get_priority_max=no | |
26009 | fi | |
26010 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26011 | fi | |
26012 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
26013 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
26014 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
26015 | HAVE_PRIOR_FUNCS=1 |
26016 | else | |
247f5006 VZ |
26017 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
26018 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
26019 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
26020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 26021 | else |
247f5006 | 26022 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 26023 | LIBS="-lposix4 $LIBS" |
247f5006 VZ |
26024 | cat >conftest.$ac_ext <<_ACEOF |
26025 | #line $LINENO "configure" | |
422107f9 | 26026 | #include "confdefs.h" |
247f5006 | 26027 | |
422107f9 | 26028 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26029 | #ifdef __cplusplus |
26030 | extern "C" | |
26031 | #endif | |
422107f9 | 26032 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
26033 | builtin and then its argument prototype would still apply. */ |
26034 | char sched_get_priority_max (); | |
26035 | #ifdef F77_DUMMY_MAIN | |
26036 | # ifdef __cplusplus | |
26037 | extern "C" | |
26038 | # endif | |
26039 | int F77_DUMMY_MAIN() { return 1; } | |
26040 | #endif | |
26041 | int | |
26042 | main () | |
26043 | { | |
26044 | sched_get_priority_max (); | |
26045 | ; | |
26046 | return 0; | |
26047 | } | |
26048 | _ACEOF | |
26049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26051 | (eval $ac_link) 2>&5 | |
26052 | ac_status=$? | |
26053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26054 | (exit $ac_status); } && | |
26055 | { ac_try='test -s conftest$ac_exeext' | |
26056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26057 | (eval $ac_try) 2>&5 | |
26058 | ac_status=$? | |
26059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26060 | (exit $ac_status); }; }; then | |
26061 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
26062 | else | |
26063 | echo "$as_me: failed program was:" >&5 | |
26064 | cat conftest.$ac_ext >&5 | |
26065 | ac_cv_lib_posix4_sched_get_priority_max=no | |
26066 | fi | |
26067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26068 | LIBS=$ac_check_lib_save_LIBS | |
26069 | fi | |
26070 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
26071 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
26072 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 26073 | |
7274f1c7 RL |
26074 | HAVE_PRIOR_FUNCS=1 |
26075 | POSIX4_LINK=" -lposix4" | |
247f5006 | 26076 | |
4f14bcd8 | 26077 | fi |
463abc64 | 26078 | |
247f5006 | 26079 | |
328a083c | 26080 | fi |
463abc64 | 26081 | |
247f5006 | 26082 | |
7b4a847f | 26083 | fi |
579d8138 | 26084 | |
247f5006 | 26085 | |
5c6fa7d2 | 26086 | fi |
52127426 | 26087 | |
8284b0c5 | 26088 | |
7274f1c7 | 26089 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
247f5006 | 26090 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26091 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
247f5006 | 26092 | _ACEOF |
463abc64 | 26093 | |
7274f1c7 | 26094 | else |
247f5006 VZ |
26095 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
26096 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 26097 | fi |
463abc64 | 26098 | |
247f5006 VZ |
26099 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
26100 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
26101 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
26102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 26103 | else |
247f5006 VZ |
26104 | cat >conftest.$ac_ext <<_ACEOF |
26105 | #line $LINENO "configure" | |
422107f9 | 26106 | #include "confdefs.h" |
009fead0 | 26107 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 26108 | which can conflict with char pthread_cancel (); below. */ |
009fead0 | 26109 | #include <assert.h> |
422107f9 | 26110 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26111 | #ifdef __cplusplus |
26112 | extern "C" | |
26113 | #endif | |
422107f9 | 26114 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
26115 | builtin and then its argument prototype would still apply. */ |
26116 | char pthread_cancel (); | |
26117 | char (*f) (); | |
26118 | ||
26119 | #ifdef F77_DUMMY_MAIN | |
26120 | # ifdef __cplusplus | |
26121 | extern "C" | |
26122 | # endif | |
26123 | int F77_DUMMY_MAIN() { return 1; } | |
26124 | #endif | |
26125 | int | |
26126 | main () | |
26127 | { | |
009fead0 VZ |
26128 | /* The GNU C library defines this for functions which it implements |
26129 | to always fail with ENOSYS. Some functions are actually named | |
26130 | something starting with __ and the normal name is an alias. */ | |
26131 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
26132 | choke me | |
26133 | #else | |
247f5006 | 26134 | f = pthread_cancel; |
009fead0 VZ |
26135 | #endif |
26136 | ||
247f5006 VZ |
26137 | ; |
26138 | return 0; | |
26139 | } | |
26140 | _ACEOF | |
26141 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26143 | (eval $ac_link) 2>&5 | |
26144 | ac_status=$? | |
26145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26146 | (exit $ac_status); } && | |
26147 | { ac_try='test -s conftest$ac_exeext' | |
26148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26149 | (eval $ac_try) 2>&5 | |
26150 | ac_status=$? | |
26151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26152 | (exit $ac_status); }; }; then | |
26153 | ac_cv_func_pthread_cancel=yes | |
26154 | else | |
26155 | echo "$as_me: failed program was:" >&5 | |
26156 | cat conftest.$ac_ext >&5 | |
26157 | ac_cv_func_pthread_cancel=no | |
26158 | fi | |
26159 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26160 | fi | |
26161 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
26162 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
26163 | if test $ac_cv_func_pthread_cancel = yes; then | |
26164 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 26165 | #define HAVE_PTHREAD_CANCEL 1 |
247f5006 | 26166 | _ACEOF |
4f14bcd8 | 26167 | |
698dcdb6 | 26168 | else |
247f5006 VZ |
26169 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
26170 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
26171 | fi |
26172 | ||
5c6fa7d2 | 26173 | |
247f5006 VZ |
26174 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
26175 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
26176 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
26177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26178 | else |
247f5006 VZ |
26179 | |
26180 | cat >conftest.$ac_ext <<_ACEOF | |
26181 | #line $LINENO "configure" | |
4f14bcd8 GD |
26182 | #include "confdefs.h" |
26183 | #include <pthread.h> | |
247f5006 VZ |
26184 | #ifdef F77_DUMMY_MAIN |
26185 | # ifdef __cplusplus | |
26186 | extern "C" | |
26187 | # endif | |
26188 | int F77_DUMMY_MAIN() { return 1; } | |
26189 | #endif | |
26190 | int | |
26191 | main () | |
26192 | { | |
4f14bcd8 | 26193 | |
7274f1c7 RL |
26194 | pthread_cleanup_push(NULL, NULL); |
26195 | pthread_cleanup_pop(0); | |
247f5006 VZ |
26196 | |
26197 | ; | |
26198 | return 0; | |
26199 | } | |
26200 | _ACEOF | |
26201 | rm -f conftest.$ac_objext | |
26202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26203 | (eval $ac_compile) 2>&5 | |
26204 | ac_status=$? | |
26205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26206 | (exit $ac_status); } && | |
26207 | { ac_try='test -s conftest.$ac_objext' | |
26208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26209 | (eval $ac_try) 2>&5 | |
26210 | ac_status=$? | |
26211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26212 | (exit $ac_status); }; }; then | |
26213 | ||
7274f1c7 | 26214 | wx_cv_func_pthread_cleanup_push=yes |
247f5006 | 26215 | |
4f14bcd8 | 26216 | else |
247f5006 VZ |
26217 | echo "$as_me: failed program was:" >&5 |
26218 | cat conftest.$ac_ext >&5 | |
26219 | ||
7274f1c7 | 26220 | wx_cv_func_pthread_cleanup_push=no |
247f5006 | 26221 | |
5c6fa7d2 | 26222 | fi |
247f5006 | 26223 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 26224 | |
247f5006 VZ |
26225 | fi |
26226 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
26227 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 26228 | |
7274f1c7 | 26229 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
247f5006 | 26230 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26231 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
247f5006 | 26232 | _ACEOF |
c7a2bf27 | 26233 | |
7274f1c7 | 26234 | fi |
4f14bcd8 | 26235 | |
247f5006 VZ |
26236 | |
26237 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
26238 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
26239 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
26240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26241 | else |
247f5006 VZ |
26242 | |
26243 | cat >conftest.$ac_ext <<_ACEOF | |
26244 | #line $LINENO "configure" | |
0dcf9893 | 26245 | #include "confdefs.h" |
4f14bcd8 | 26246 | #include <pthread.h> |
247f5006 VZ |
26247 | #ifdef F77_DUMMY_MAIN |
26248 | # ifdef __cplusplus | |
26249 | extern "C" | |
26250 | # endif | |
26251 | int F77_DUMMY_MAIN() { return 1; } | |
26252 | #endif | |
26253 | int | |
26254 | main () | |
26255 | { | |
4f14bcd8 | 26256 | |
7274f1c7 RL |
26257 | pthread_mutexattr_t attr; |
26258 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
247f5006 VZ |
26259 | |
26260 | ; | |
26261 | return 0; | |
26262 | } | |
26263 | _ACEOF | |
26264 | rm -f conftest.$ac_objext | |
26265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26266 | (eval $ac_compile) 2>&5 | |
26267 | ac_status=$? | |
26268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26269 | (exit $ac_status); } && | |
26270 | { ac_try='test -s conftest.$ac_objext' | |
26271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26272 | (eval $ac_try) 2>&5 | |
26273 | ac_status=$? | |
26274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26275 | (exit $ac_status); }; }; then | |
26276 | ||
7274f1c7 | 26277 | wx_cv_type_pthread_mutexattr_t=yes |
247f5006 | 26278 | |
3fed1840 | 26279 | else |
247f5006 VZ |
26280 | echo "$as_me: failed program was:" >&5 |
26281 | cat conftest.$ac_ext >&5 | |
26282 | ||
7274f1c7 | 26283 | wx_cv_type_pthread_mutexattr_t=no |
247f5006 VZ |
26284 | |
26285 | ||
5c6fa7d2 | 26286 | fi |
247f5006 | 26287 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 26288 | |
247f5006 VZ |
26289 | fi |
26290 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
26291 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 26292 | |
7274f1c7 | 26293 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
247f5006 | 26294 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26295 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
247f5006 | 26296 | _ACEOF |
4f14bcd8 | 26297 | |
7274f1c7 | 26298 | else |
247f5006 VZ |
26299 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
26300 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
26301 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
26302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26303 | else | |
26304 | ||
26305 | cat >conftest.$ac_ext <<_ACEOF | |
26306 | #line $LINENO "configure" | |
3fed1840 | 26307 | #include "confdefs.h" |
4f14bcd8 | 26308 | #include <pthread.h> |
247f5006 VZ |
26309 | #ifdef F77_DUMMY_MAIN |
26310 | # ifdef __cplusplus | |
26311 | extern "C" | |
26312 | # endif | |
26313 | int F77_DUMMY_MAIN() { return 1; } | |
26314 | #endif | |
26315 | int | |
26316 | main () | |
26317 | { | |
4f14bcd8 | 26318 | |
7274f1c7 | 26319 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
247f5006 VZ |
26320 | |
26321 | ; | |
26322 | return 0; | |
26323 | } | |
26324 | _ACEOF | |
26325 | rm -f conftest.$ac_objext | |
26326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26327 | (eval $ac_compile) 2>&5 | |
26328 | ac_status=$? | |
26329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26330 | (exit $ac_status); } && | |
26331 | { ac_try='test -s conftest.$ac_objext' | |
26332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26333 | (eval $ac_try) 2>&5 | |
26334 | ac_status=$? | |
26335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26336 | (exit $ac_status); }; }; then | |
26337 | ||
7274f1c7 | 26338 | wx_cv_type_pthread_rec_mutex_init=yes |
247f5006 | 26339 | |
698dcdb6 | 26340 | else |
247f5006 VZ |
26341 | echo "$as_me: failed program was:" >&5 |
26342 | cat conftest.$ac_ext >&5 | |
26343 | ||
7274f1c7 | 26344 | wx_cv_type_pthread_rec_mutex_init=no |
247f5006 VZ |
26345 | |
26346 | ||
5c6fa7d2 | 26347 | fi |
247f5006 | 26348 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 26349 | |
247f5006 VZ |
26350 | fi |
26351 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
26352 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 26353 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
247f5006 | 26354 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26355 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
247f5006 | 26356 | _ACEOF |
3fed1840 | 26357 | |
7274f1c7 | 26358 | else |
247f5006 VZ |
26359 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
26360 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
26361 | fi |
26362 | fi | |
7274f1c7 | 26363 | fi |
3fed1840 | 26364 | |
4f14bcd8 GD |
26365 | fi |
26366 | ||
26367 | if test "$wxUSE_THREADS" = "yes"; then | |
247f5006 | 26368 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26369 | #define wxUSE_THREADS 1 |
247f5006 | 26370 | _ACEOF |
7b6058cd | 26371 | |
8284b0c5 | 26372 | |
4f14bcd8 | 26373 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 26374 | else |
4f14bcd8 | 26375 | if test "$ac_cv_func_strtok_r" = "yes"; then |
247f5006 VZ |
26376 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
26377 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
26378 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
26379 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
247f5006 VZ |
26380 | echo "$as_me:$LINENO: result: yes" >&5 |
26381 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 26382 | else |
247f5006 VZ |
26383 | echo "$as_me:$LINENO: result: no" >&5 |
26384 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
26385 | fi |
26386 | fi | |
26387 | fi | |
26388 | ||
26389 | if test "$WXGTK20" = 1 ; then | |
247f5006 | 26390 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 26391 | #define __WXGTK20__ $WXGTK20 |
247f5006 | 26392 | _ACEOF |
4f14bcd8 GD |
26393 | |
26394 | WXGTK12=1 | |
10f2d63a | 26395 | fi |
4f14bcd8 GD |
26396 | |
26397 | if test "$WXGTK12" = 1 ; then | |
247f5006 | 26398 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 26399 | #define __WXGTK12__ $WXGTK12 |
247f5006 | 26400 | _ACEOF |
4f14bcd8 | 26401 | |
10f2d63a | 26402 | fi |
698dcdb6 | 26403 | |
4f14bcd8 | 26404 | if test "$WXGTK127" = 1 ; then |
247f5006 | 26405 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 26406 | #define __WXGTK127__ $WXGTK127 |
247f5006 | 26407 | _ACEOF |
4f14bcd8 | 26408 | |
698dcdb6 | 26409 | fi |
10f2d63a | 26410 | |
4f14bcd8 GD |
26411 | WXDEBUG= |
26412 | ||
26413 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
26414 | WXDEBUG="-g" | |
26415 | wxUSE_OPTIMISE=no | |
698dcdb6 | 26416 | fi |
4f14bcd8 GD |
26417 | |
26418 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
26419 | wxUSE_DEBUG_INFO=yes | |
26420 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
26421 | fi |
26422 | ||
4f14bcd8 | 26423 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
247f5006 | 26424 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26425 | #define WXDEBUG 1 |
247f5006 | 26426 | _ACEOF |
4f14bcd8 GD |
26427 | |
26428 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 26429 | else |
4f14bcd8 GD |
26430 | if test "$wxUSE_GTK" = 1 ; then |
26431 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
26432 | fi | |
26433 | fi | |
26434 | ||
26435 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
247f5006 | 26436 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26437 | #define wxUSE_MEMORY_TRACING 1 |
247f5006 | 26438 | _ACEOF |
4f14bcd8 | 26439 | |
247f5006 | 26440 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26441 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
247f5006 | 26442 | _ACEOF |
4f14bcd8 | 26443 | |
247f5006 | 26444 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26445 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
247f5006 | 26446 | _ACEOF |
4f14bcd8 GD |
26447 | |
26448 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
26449 | fi | |
26450 | ||
26451 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 26452 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
26453 | fi |
26454 | ||
26455 | PROFILE= | |
26456 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 26457 | PROFILE=" -pg" |
10f2d63a VZ |
26458 | fi |
26459 | ||
009fead0 VZ |
26460 | CODE_GEN_FLAGS= |
26461 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 26462 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
26463 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
26464 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 26465 | fi |
4f14bcd8 GD |
26466 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
26467 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
26468 | fi | |
26469 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
26470 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
26471 | fi | |
4f14bcd8 GD |
26472 | if test "$USE_WIN32" = 1 ; then |
26473 | # I'm not even really sure what this was ever added to solve, | |
26474 | # but someone added it for mingw native builds, so I guess | |
26475 | # they had a reason, right?? | |
26476 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
26477 | fi | |
1d1b75ac VZ |
26478 | |
26479 | case "${host}" in | |
26480 | powerpc*-*-aix* ) | |
26481 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
26482 | ;; | |
26483 | esac | |
4f14bcd8 GD |
26484 | fi |
26485 | ||
4f14bcd8 GD |
26486 | if test "$wxUSE_OPTIMISE" = "no" ; then |
26487 | OPTIMISE= | |
26488 | else | |
26489 | if test "$GCC" = yes ; then | |
26490 | OPTIMISE="-O2" | |
26491 | case "${host}" in | |
26492 | i586-*-*|i686-*-* ) | |
26493 | OPTIMISE="${OPTIMISE} " | |
26494 | ;; | |
26495 | esac | |
26496 | else | |
26497 | OPTIMISE="-O" | |
26498 | fi | |
26499 | fi | |
26500 | ||
26501 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
247f5006 | 26502 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26503 | #define WXWIN_COMPATIBILITY_2 1 |
247f5006 | 26504 | _ACEOF |
4f14bcd8 | 26505 | |
8284b0c5 | 26506 | |
4f14bcd8 GD |
26507 | WXWIN_COMPATIBILITY_2_2="yes" |
26508 | fi | |
26509 | ||
0c9a1c32 | 26510 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
247f5006 | 26511 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 26512 | #define WXWIN_COMPATIBILITY_2_2 1 |
247f5006 | 26513 | _ACEOF |
4f14bcd8 | 26514 | |
10f2d63a VZ |
26515 | fi |
26516 | ||
8284b0c5 | 26517 | |
10f2d63a | 26518 | if test "$wxUSE_GUI" = "yes"; then |
247f5006 | 26519 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26520 | #define wxUSE_GUI 1 |
247f5006 | 26521 | _ACEOF |
10f2d63a | 26522 | |
8284b0c5 | 26523 | |
10f2d63a | 26524 | else |
247f5006 | 26525 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26526 | #define wxUSE_NOGUI 1 |
247f5006 | 26527 | _ACEOF |
10f2d63a VZ |
26528 | |
26529 | fi | |
26530 | ||
8284b0c5 | 26531 | |
10f2d63a | 26532 | if test "$wxUSE_UNIX" = "yes"; then |
247f5006 | 26533 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26534 | #define wxUSE_UNIX 1 |
247f5006 | 26535 | _ACEOF |
10f2d63a VZ |
26536 | |
26537 | fi | |
26538 | ||
8284b0c5 | 26539 | |
10f2d63a | 26540 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
247f5006 | 26541 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26542 | #define wxUSE_APPLE_IEEE 1 |
247f5006 | 26543 | _ACEOF |
10f2d63a VZ |
26544 | |
26545 | fi | |
26546 | ||
1e6feb95 | 26547 | if test "$wxUSE_TIMER" = "yes"; then |
247f5006 | 26548 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 26549 | #define wxUSE_TIMER 1 |
247f5006 | 26550 | _ACEOF |
1e6feb95 VZ |
26551 | |
26552 | fi | |
26553 | ||
10f2d63a | 26554 | if test "$wxUSE_WAVE" = "yes"; then |
247f5006 | 26555 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26556 | #define wxUSE_WAVE 1 |
247f5006 | 26557 | _ACEOF |
10f2d63a VZ |
26558 | |
26559 | fi | |
26560 | ||
1e6feb95 | 26561 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
247f5006 | 26562 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 26563 | #define wxUSE_CMDLINE_PARSER 1 |
247f5006 | 26564 | _ACEOF |
1e6feb95 VZ |
26565 | |
26566 | fi | |
26567 | ||
26568 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
247f5006 | 26569 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 26570 | #define wxUSE_STOPWATCH 1 |
247f5006 | 26571 | _ACEOF |
1e6feb95 VZ |
26572 | |
26573 | fi | |
26574 | ||
26575 | if test "$wxUSE_DATETIME" = "yes"; then | |
247f5006 | 26576 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 26577 | #define wxUSE_DATETIME 1 |
247f5006 | 26578 | _ACEOF |
1e6feb95 VZ |
26579 | |
26580 | fi | |
26581 | ||
26582 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
247f5006 | 26583 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 26584 | #define wxUSE_TIMEDATE 1 |
247f5006 | 26585 | _ACEOF |
1e6feb95 VZ |
26586 | |
26587 | fi | |
26588 | ||
10f2d63a | 26589 | if test "$wxUSE_FILE" = "yes"; then |
247f5006 | 26590 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26591 | #define wxUSE_FILE 1 |
247f5006 | 26592 | _ACEOF |
10f2d63a VZ |
26593 | |
26594 | fi | |
26595 | ||
1e6feb95 | 26596 | if test "$wxUSE_FFILE" = "yes"; then |
247f5006 | 26597 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 26598 | #define wxUSE_FFILE 1 |
247f5006 | 26599 | _ACEOF |
1e6feb95 VZ |
26600 | |
26601 | fi | |
26602 | ||
24528b0c | 26603 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
247f5006 | 26604 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 26605 | #define wxUSE_FILESYSTEM 1 |
247f5006 | 26606 | _ACEOF |
24528b0c VS |
26607 | |
26608 | fi | |
26609 | ||
10f2d63a | 26610 | if test "$wxUSE_FS_INET" = "yes"; then |
247f5006 | 26611 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26612 | #define wxUSE_FS_INET 1 |
247f5006 | 26613 | _ACEOF |
10f2d63a VZ |
26614 | |
26615 | fi | |
26616 | ||
26617 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
247f5006 | 26618 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26619 | #define wxUSE_FS_ZIP 1 |
247f5006 | 26620 | _ACEOF |
10f2d63a VZ |
26621 | |
26622 | fi | |
26623 | ||
26624 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
247f5006 | 26625 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26626 | #define wxUSE_ZIPSTREAM 1 |
247f5006 | 26627 | _ACEOF |
10f2d63a VZ |
26628 | |
26629 | fi | |
26630 | ||
eb4efbdc | 26631 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
247f5006 | 26632 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 26633 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
247f5006 | 26634 | _ACEOF |
eb4efbdc VZ |
26635 | |
26636 | fi | |
26637 | ||
4f3c5f06 | 26638 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
247f5006 | 26639 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 26640 | #define wxUSE_SNGLINST_CHECKER 1 |
247f5006 | 26641 | _ACEOF |
4f3c5f06 VZ |
26642 | |
26643 | fi | |
26644 | ||
10f2d63a | 26645 | if test "$wxUSE_BUSYINFO" = "yes"; then |
247f5006 | 26646 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26647 | #define wxUSE_BUSYINFO 1 |
247f5006 | 26648 | _ACEOF |
10f2d63a VZ |
26649 | |
26650 | fi | |
26651 | ||
26652 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
247f5006 | 26653 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26654 | #define wxUSE_STD_IOSTREAM 1 |
247f5006 | 26655 | _ACEOF |
10f2d63a VZ |
26656 | |
26657 | fi | |
26658 | ||
a3a584a7 | 26659 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
247f5006 | 26660 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 26661 | #define wxUSE_TEXTBUFFER 1 |
247f5006 | 26662 | _ACEOF |
a3a584a7 VZ |
26663 | |
26664 | fi | |
26665 | ||
10f2d63a | 26666 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 26667 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
247f5006 VZ |
26668 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
26669 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 26670 | else |
247f5006 | 26671 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26672 | #define wxUSE_TEXTFILE 1 |
247f5006 | 26673 | _ACEOF |
10f2d63a VZ |
26674 | |
26675 | fi | |
26676 | fi | |
26677 | ||
26678 | if test "$wxUSE_CONFIG" = "yes" ; then | |
26679 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
247f5006 VZ |
26680 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
26681 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 26682 | else |
247f5006 | 26683 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26684 | #define wxUSE_CONFIG 1 |
247f5006 | 26685 | _ACEOF |
10f2d63a VZ |
26686 | |
26687 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
26688 | fi | |
26689 | fi | |
26690 | ||
26691 | if test "$wxUSE_INTL" = "yes" ; then | |
26692 | if test "$wxUSE_FILE" != "yes"; then | |
247f5006 VZ |
26693 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
26694 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 26695 | else |
247f5006 | 26696 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26697 | #define wxUSE_INTL 1 |
247f5006 | 26698 | _ACEOF |
10f2d63a VZ |
26699 | |
26700 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 26701 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
26702 | fi |
26703 | fi | |
26704 | ||
26705 | if test "$wxUSE_LOG" = "yes"; then | |
247f5006 | 26706 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26707 | #define wxUSE_LOG 1 |
247f5006 | 26708 | _ACEOF |
10f2d63a | 26709 | |
8284b0c5 | 26710 | |
d73be714 | 26711 | if test "$wxUSE_LOGGUI" = "yes"; then |
247f5006 | 26712 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 26713 | #define wxUSE_LOGGUI 1 |
247f5006 | 26714 | _ACEOF |
d73be714 VZ |
26715 | |
26716 | fi | |
26717 | ||
26718 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
247f5006 | 26719 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 26720 | #define wxUSE_LOGWINDOW 1 |
247f5006 | 26721 | _ACEOF |
69d27ff7 MB |
26722 | |
26723 | fi | |
26724 | ||
26725 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
247f5006 | 26726 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 26727 | #define wxUSE_LOG_DIALOG 1 |
247f5006 | 26728 | _ACEOF |
d73be714 VZ |
26729 | |
26730 | fi | |
10f2d63a VZ |
26731 | fi |
26732 | ||
26733 | if test "$wxUSE_LONGLONG" = "yes"; then | |
247f5006 | 26734 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26735 | #define wxUSE_LONGLONG 1 |
247f5006 | 26736 | _ACEOF |
10f2d63a VZ |
26737 | |
26738 | fi | |
26739 | ||
e8f65ba6 | 26740 | if test "$wxUSE_GEOMETRY" = "yes"; then |
247f5006 | 26741 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 26742 | #define wxUSE_GEOMETRY 1 |
247f5006 | 26743 | _ACEOF |
e8f65ba6 RR |
26744 | |
26745 | fi | |
26746 | ||
10f2d63a | 26747 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
247f5006 | 26748 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26749 | #define wxUSE_DIALUP_MANAGER 1 |
247f5006 | 26750 | _ACEOF |
10f2d63a | 26751 | |
70f7a477 | 26752 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
26753 | fi |
26754 | ||
26755 | if test "$wxUSE_STREAMS" = "yes" ; then | |
247f5006 | 26756 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 26757 | #define wxUSE_STREAMS 1 |
247f5006 | 26758 | _ACEOF |
10f2d63a VZ |
26759 | |
26760 | fi | |
26761 | ||
5c6fa7d2 | 26762 | |
8284b0c5 | 26763 | if test "$wxUSE_DATETIME" = "yes"; then |
247f5006 VZ |
26764 | |
26765 | for ac_func in strptime | |
83307f33 | 26766 | do |
247f5006 VZ |
26767 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26768 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26769 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26770 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26772 | else | |
26773 | cat >conftest.$ac_ext <<_ACEOF | |
26774 | #line $LINENO "configure" | |
83307f33 VZ |
26775 | #include "confdefs.h" |
26776 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 26777 | which can conflict with char $ac_func (); below. */ |
83307f33 VZ |
26778 | #include <assert.h> |
26779 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
26780 | #ifdef __cplusplus |
26781 | extern "C" | |
26782 | #endif | |
83307f33 | 26783 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
26784 | builtin and then its argument prototype would still apply. */ |
26785 | char $ac_func (); | |
26786 | char (*f) (); | |
26787 | ||
26788 | #ifdef F77_DUMMY_MAIN | |
26789 | # ifdef __cplusplus | |
26790 | extern "C" | |
26791 | # endif | |
26792 | int F77_DUMMY_MAIN() { return 1; } | |
26793 | #endif | |
26794 | int | |
26795 | main () | |
26796 | { | |
83307f33 VZ |
26797 | /* The GNU C library defines this for functions which it implements |
26798 | to always fail with ENOSYS. Some functions are actually named | |
26799 | something starting with __ and the normal name is an alias. */ | |
26800 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26801 | choke me | |
26802 | #else | |
247f5006 | 26803 | f = $ac_func; |
83307f33 VZ |
26804 | #endif |
26805 | ||
247f5006 VZ |
26806 | ; |
26807 | return 0; | |
26808 | } | |
26809 | _ACEOF | |
26810 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26812 | (eval $ac_link) 2>&5 | |
26813 | ac_status=$? | |
26814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26815 | (exit $ac_status); } && | |
26816 | { ac_try='test -s conftest$ac_exeext' | |
26817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26818 | (eval $ac_try) 2>&5 | |
26819 | ac_status=$? | |
26820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26821 | (exit $ac_status); }; }; then | |
26822 | eval "$as_ac_var=yes" | |
26823 | else | |
26824 | echo "$as_me: failed program was:" >&5 | |
26825 | cat conftest.$ac_ext >&5 | |
26826 | eval "$as_ac_var=no" | |
26827 | fi | |
26828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26829 | fi | |
26830 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26831 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26832 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26833 | cat >>confdefs.h <<_ACEOF | |
26834 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26835 | _ACEOF | |
83307f33 | 26836 | |
83307f33 VZ |
26837 | fi |
26838 | done | |
26839 | ||
5c6fa7d2 | 26840 | |
247f5006 VZ |
26841 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
26842 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
26843 | if test "${wx_cv_var_timezone+set}" = set; then | |
26844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26845 | else |
247f5006 VZ |
26846 | |
26847 | cat >conftest.$ac_ext <<_ACEOF | |
26848 | #line $LINENO "configure" | |
360d6699 VZ |
26849 | #include "confdefs.h" |
26850 | ||
b4085ce6 | 26851 | #include <time.h> |
247f5006 VZ |
26852 | |
26853 | #ifdef F77_DUMMY_MAIN | |
26854 | # ifdef __cplusplus | |
26855 | extern "C" | |
26856 | # endif | |
26857 | int F77_DUMMY_MAIN() { return 1; } | |
26858 | #endif | |
26859 | int | |
26860 | main () | |
26861 | { | |
360d6699 VZ |
26862 | |
26863 | int tz; | |
4f11a343 | 26864 | tz = timezone; |
247f5006 VZ |
26865 | |
26866 | ; | |
26867 | return 0; | |
26868 | } | |
26869 | _ACEOF | |
26870 | rm -f conftest.$ac_objext | |
26871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26872 | (eval $ac_compile) 2>&5 | |
26873 | ac_status=$? | |
26874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26875 | (exit $ac_status); } && | |
26876 | { ac_try='test -s conftest.$ac_objext' | |
26877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26878 | (eval $ac_try) 2>&5 | |
26879 | ac_status=$? | |
26880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26881 | (exit $ac_status); }; }; then | |
26882 | ||
4f11a343 | 26883 | wx_cv_var_timezone=timezone |
247f5006 | 26884 | |
360d6699 | 26885 | else |
247f5006 VZ |
26886 | echo "$as_me: failed program was:" >&5 |
26887 | cat conftest.$ac_ext >&5 | |
26888 | ||
26889 | cat >conftest.$ac_ext <<_ACEOF | |
26890 | #line $LINENO "configure" | |
360d6699 VZ |
26891 | #include "confdefs.h" |
26892 | ||
b4085ce6 | 26893 | #include <time.h> |
247f5006 VZ |
26894 | |
26895 | #ifdef F77_DUMMY_MAIN | |
26896 | # ifdef __cplusplus | |
26897 | extern "C" | |
26898 | # endif | |
26899 | int F77_DUMMY_MAIN() { return 1; } | |
26900 | #endif | |
26901 | int | |
26902 | main () | |
26903 | { | |
360d6699 VZ |
26904 | |
26905 | int tz; | |
26906 | tz = _timezone; | |
247f5006 VZ |
26907 | |
26908 | ; | |
26909 | return 0; | |
26910 | } | |
26911 | _ACEOF | |
26912 | rm -f conftest.$ac_objext | |
26913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26914 | (eval $ac_compile) 2>&5 | |
26915 | ac_status=$? | |
26916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26917 | (exit $ac_status); } && | |
26918 | { ac_try='test -s conftest.$ac_objext' | |
26919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26920 | (eval $ac_try) 2>&5 | |
26921 | ac_status=$? | |
26922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26923 | (exit $ac_status); }; }; then | |
26924 | ||
360d6699 | 26925 | wx_cv_var_timezone=_timezone |
247f5006 | 26926 | |
5357c8e8 | 26927 | else |
247f5006 VZ |
26928 | echo "$as_me: failed program was:" >&5 |
26929 | cat conftest.$ac_ext >&5 | |
26930 | ||
26931 | cat >conftest.$ac_ext <<_ACEOF | |
26932 | #line $LINENO "configure" | |
5357c8e8 VZ |
26933 | #include "confdefs.h" |
26934 | ||
b4085ce6 | 26935 | #include <time.h> |
247f5006 VZ |
26936 | |
26937 | #ifdef F77_DUMMY_MAIN | |
26938 | # ifdef __cplusplus | |
26939 | extern "C" | |
26940 | # endif | |
26941 | int F77_DUMMY_MAIN() { return 1; } | |
26942 | #endif | |
26943 | int | |
26944 | main () | |
26945 | { | |
5357c8e8 VZ |
26946 | |
26947 | int tz; | |
4f11a343 | 26948 | tz = __timezone; |
247f5006 VZ |
26949 | |
26950 | ; | |
26951 | return 0; | |
26952 | } | |
26953 | _ACEOF | |
26954 | rm -f conftest.$ac_objext | |
26955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26956 | (eval $ac_compile) 2>&5 | |
26957 | ac_status=$? | |
26958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26959 | (exit $ac_status); } && | |
26960 | { ac_try='test -s conftest.$ac_objext' | |
26961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26962 | (eval $ac_try) 2>&5 | |
26963 | ac_status=$? | |
26964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26965 | (exit $ac_status); }; }; then | |
26966 | ||
4f11a343 | 26967 | wx_cv_var_timezone=__timezone |
247f5006 | 26968 | |
360d6699 | 26969 | else |
247f5006 VZ |
26970 | echo "$as_me: failed program was:" >&5 |
26971 | cat conftest.$ac_ext >&5 | |
26972 | ||
f9bc1684 | 26973 | if test "$USE_DOS" = 0 ; then |
247f5006 VZ |
26974 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
26975 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 26976 | fi |
247f5006 VZ |
26977 | |
26978 | ||
328a083c | 26979 | fi |
247f5006 VZ |
26980 | rm -f conftest.$ac_objext conftest.$ac_ext |
26981 | ||
26982 | ||
7b4a847f | 26983 | fi |
247f5006 VZ |
26984 | rm -f conftest.$ac_objext conftest.$ac_ext |
26985 | ||
26986 | ||
5c6fa7d2 | 26987 | fi |
247f5006 | 26988 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 26989 | |
247f5006 VZ |
26990 | |
26991 | fi | |
26992 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
26993 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 26994 | |
f9bc1684 | 26995 | if test "x$wx_cv_var_timezone" != x ; then |
247f5006 | 26996 | cat >>confdefs.h <<_ACEOF |
360d6699 | 26997 | #define WX_TIMEZONE $wx_cv_var_timezone |
247f5006 | 26998 | _ACEOF |
360d6699 | 26999 | |
f9bc1684 | 27000 | fi |
698dcdb6 | 27001 | |
247f5006 VZ |
27002 | |
27003 | for ac_func in localtime | |
afc31813 | 27004 | do |
247f5006 VZ |
27005 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27006 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27007 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27008 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27010 | else | |
27011 | cat >conftest.$ac_ext <<_ACEOF | |
27012 | #line $LINENO "configure" | |
10f2d63a | 27013 | #include "confdefs.h" |
afc31813 | 27014 | /* System header to define __stub macros and hopefully few prototypes, |
247f5006 | 27015 | which can conflict with char $ac_func (); below. */ |
afc31813 VZ |
27016 | #include <assert.h> |
27017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
27018 | #ifdef __cplusplus |
27019 | extern "C" | |
27020 | #endif | |
afc31813 | 27021 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
27022 | builtin and then its argument prototype would still apply. */ |
27023 | char $ac_func (); | |
27024 | char (*f) (); | |
27025 | ||
27026 | #ifdef F77_DUMMY_MAIN | |
27027 | # ifdef __cplusplus | |
27028 | extern "C" | |
27029 | # endif | |
27030 | int F77_DUMMY_MAIN() { return 1; } | |
27031 | #endif | |
27032 | int | |
27033 | main () | |
27034 | { | |
afc31813 VZ |
27035 | /* The GNU C library defines this for functions which it implements |
27036 | to always fail with ENOSYS. Some functions are actually named | |
27037 | something starting with __ and the normal name is an alias. */ | |
27038 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27039 | choke me | |
27040 | #else | |
247f5006 | 27041 | f = $ac_func; |
afc31813 VZ |
27042 | #endif |
27043 | ||
247f5006 VZ |
27044 | ; |
27045 | return 0; | |
27046 | } | |
27047 | _ACEOF | |
27048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27050 | (eval $ac_link) 2>&5 | |
27051 | ac_status=$? | |
27052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27053 | (exit $ac_status); } && | |
27054 | { ac_try='test -s conftest$ac_exeext' | |
27055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27056 | (eval $ac_try) 2>&5 | |
27057 | ac_status=$? | |
27058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27059 | (exit $ac_status); }; }; then | |
27060 | eval "$as_ac_var=yes" | |
27061 | else | |
27062 | echo "$as_me: failed program was:" >&5 | |
27063 | cat conftest.$ac_ext >&5 | |
27064 | eval "$as_ac_var=no" | |
27065 | fi | |
27066 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27067 | fi | |
27068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27069 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27070 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27071 | cat >>confdefs.h <<_ACEOF | |
27072 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27073 | _ACEOF | |
afc31813 | 27074 | |
afc31813 VZ |
27075 | fi |
27076 | done | |
27077 | ||
5c6fa7d2 | 27078 | |
8284b0c5 | 27079 | if test "$ac_cv_func_localtime" = "yes"; then |
247f5006 VZ |
27080 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
27081 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
27082 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
27083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27084 | else | |
27085 | ||
27086 | cat >conftest.$ac_ext <<_ACEOF | |
27087 | #line $LINENO "configure" | |
0470b1e6 VZ |
27088 | #include "confdefs.h" |
27089 | ||
b4085ce6 | 27090 | #include <time.h> |
247f5006 VZ |
27091 | |
27092 | #ifdef F77_DUMMY_MAIN | |
27093 | # ifdef __cplusplus | |
27094 | extern "C" | |
27095 | # endif | |
27096 | int F77_DUMMY_MAIN() { return 1; } | |
27097 | #endif | |
27098 | int | |
27099 | main () | |
27100 | { | |
0470b1e6 VZ |
27101 | |
27102 | struct tm tm; | |
27103 | tm.tm_gmtoff++; | |
247f5006 VZ |
27104 | |
27105 | ; | |
27106 | return 0; | |
27107 | } | |
27108 | _ACEOF | |
27109 | rm -f conftest.$ac_objext | |
27110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27111 | (eval $ac_compile) 2>&5 | |
27112 | ac_status=$? | |
27113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27114 | (exit $ac_status); } && | |
27115 | { ac_try='test -s conftest.$ac_objext' | |
27116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27117 | (eval $ac_try) 2>&5 | |
27118 | ac_status=$? | |
27119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27120 | (exit $ac_status); }; }; then | |
27121 | ||
f03a98d8 | 27122 | wx_cv_struct_tm_has_gmtoff=yes |
247f5006 | 27123 | |
0470b1e6 | 27124 | else |
247f5006 VZ |
27125 | echo "$as_me: failed program was:" >&5 |
27126 | cat conftest.$ac_ext >&5 | |
27127 | wx_cv_struct_tm_has_gmtoff=no | |
27128 | ||
5c6fa7d2 | 27129 | fi |
247f5006 | 27130 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 27131 | |
247f5006 VZ |
27132 | fi |
27133 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
27134 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
27135 | fi |
27136 | ||
27137 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
247f5006 | 27138 | cat >>confdefs.h <<\_ACEOF |
6232543b | 27139 | #define WX_GMTOFF_IN_TM 1 |
247f5006 | 27140 | _ACEOF |
0470b1e6 | 27141 | |
3fcdd07b VZ |
27142 | fi |
27143 | ||
247f5006 VZ |
27144 | |
27145 | ||
27146 | for ac_func in gettimeofday ftime | |
3fcdd07b | 27147 | do |
247f5006 VZ |
27148 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27149 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27150 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27151 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27153 | else | |
27154 | cat >conftest.$ac_ext <<_ACEOF | |
27155 | #line $LINENO "configure" | |
3fcdd07b VZ |
27156 | #include "confdefs.h" |
27157 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 27158 | which can conflict with char $ac_func (); below. */ |
3fcdd07b VZ |
27159 | #include <assert.h> |
27160 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
27161 | #ifdef __cplusplus |
27162 | extern "C" | |
27163 | #endif | |
3fcdd07b | 27164 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
27165 | builtin and then its argument prototype would still apply. */ |
27166 | char $ac_func (); | |
27167 | char (*f) (); | |
27168 | ||
27169 | #ifdef F77_DUMMY_MAIN | |
27170 | # ifdef __cplusplus | |
27171 | extern "C" | |
27172 | # endif | |
27173 | int F77_DUMMY_MAIN() { return 1; } | |
27174 | #endif | |
27175 | int | |
27176 | main () | |
27177 | { | |
3fcdd07b VZ |
27178 | /* The GNU C library defines this for functions which it implements |
27179 | to always fail with ENOSYS. Some functions are actually named | |
27180 | something starting with __ and the normal name is an alias. */ | |
27181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27182 | choke me | |
27183 | #else | |
247f5006 | 27184 | f = $ac_func; |
3fcdd07b VZ |
27185 | #endif |
27186 | ||
247f5006 VZ |
27187 | ; |
27188 | return 0; | |
27189 | } | |
27190 | _ACEOF | |
27191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27193 | (eval $ac_link) 2>&5 | |
27194 | ac_status=$? | |
27195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27196 | (exit $ac_status); } && | |
27197 | { ac_try='test -s conftest$ac_exeext' | |
27198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27199 | (eval $ac_try) 2>&5 | |
27200 | ac_status=$? | |
27201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27202 | (exit $ac_status); }; }; then | |
27203 | eval "$as_ac_var=yes" | |
27204 | else | |
27205 | echo "$as_me: failed program was:" >&5 | |
27206 | cat conftest.$ac_ext >&5 | |
27207 | eval "$as_ac_var=no" | |
27208 | fi | |
27209 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27210 | fi | |
27211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27212 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27213 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27214 | cat >>confdefs.h <<_ACEOF | |
27215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27216 | _ACEOF | |
3fcdd07b | 27217 | break |
3fcdd07b VZ |
27218 | fi |
27219 | done | |
27220 | ||
698dcdb6 | 27221 | |
8284b0c5 | 27222 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
247f5006 VZ |
27223 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
27224 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
27225 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
27226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27227 | else | |
27228 | ||
27229 | ||
27230 | ||
27231 | ac_ext=cc | |
5c6fa7d2 | 27232 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
27233 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27234 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27235 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 27236 | |
8284b0c5 | 27237 | |
247f5006 VZ |
27238 | cat >conftest.$ac_ext <<_ACEOF |
27239 | #line $LINENO "configure" | |
10f2d63a | 27240 | #include "confdefs.h" |
afc31813 VZ |
27241 | |
27242 | #include <sys/time.h> | |
27243 | #include <unistd.h> | |
247f5006 VZ |
27244 | |
27245 | #ifdef F77_DUMMY_MAIN | |
27246 | # ifdef __cplusplus | |
27247 | extern "C" | |
27248 | # endif | |
27249 | int F77_DUMMY_MAIN() { return 1; } | |
27250 | #endif | |
27251 | int | |
27252 | main () | |
27253 | { | |
afc31813 VZ |
27254 | |
27255 | struct timeval tv; | |
776862b4 | 27256 | gettimeofday(&tv, NULL); |
247f5006 VZ |
27257 | |
27258 | ; | |
27259 | return 0; | |
27260 | } | |
27261 | _ACEOF | |
27262 | rm -f conftest.$ac_objext | |
27263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27264 | (eval $ac_compile) 2>&5 | |
27265 | ac_status=$? | |
27266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27267 | (exit $ac_status); } && | |
27268 | { ac_try='test -s conftest.$ac_objext' | |
27269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27270 | (eval $ac_try) 2>&5 | |
27271 | ac_status=$? | |
27272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27273 | (exit $ac_status); }; }; then | |
afc31813 | 27274 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 27275 | else |
247f5006 VZ |
27276 | echo "$as_me: failed program was:" >&5 |
27277 | cat conftest.$ac_ext >&5 | |
27278 | cat >conftest.$ac_ext <<_ACEOF | |
27279 | #line $LINENO "configure" | |
10f2d63a | 27280 | #include "confdefs.h" |
afc31813 VZ |
27281 | |
27282 | #include <sys/time.h> | |
27283 | #include <unistd.h> | |
247f5006 VZ |
27284 | |
27285 | #ifdef F77_DUMMY_MAIN | |
27286 | # ifdef __cplusplus | |
27287 | extern "C" | |
27288 | # endif | |
27289 | int F77_DUMMY_MAIN() { return 1; } | |
27290 | #endif | |
27291 | int | |
27292 | main () | |
27293 | { | |
afc31813 VZ |
27294 | |
27295 | struct timeval tv; | |
27296 | gettimeofday(&tv); | |
247f5006 VZ |
27297 | |
27298 | ; | |
27299 | return 0; | |
27300 | } | |
27301 | _ACEOF | |
27302 | rm -f conftest.$ac_objext | |
27303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27304 | (eval $ac_compile) 2>&5 | |
27305 | ac_status=$? | |
27306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27307 | (exit $ac_status); } && | |
27308 | { ac_try='test -s conftest.$ac_objext' | |
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 | |
afc31813 | 27314 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 27315 | else |
247f5006 VZ |
27316 | echo "$as_me: failed program was:" >&5 |
27317 | cat conftest.$ac_ext >&5 | |
27318 | ||
27319 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
27320 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 27321 | wx_cv_func_gettimeofday_has_2_args=unknown |
247f5006 VZ |
27322 | |
27323 | ||
10f2d63a | 27324 | fi |
247f5006 VZ |
27325 | rm -f conftest.$ac_objext conftest.$ac_ext |
27326 | ||
10f2d63a | 27327 | fi |
247f5006 | 27328 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 27329 | ac_ext=c |
10f2d63a | 27330 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
27331 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27332 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27333 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a | 27334 | |
8284b0c5 | 27335 | |
247f5006 VZ |
27336 | fi |
27337 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
27338 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 27339 | |
afc31813 | 27340 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
247f5006 | 27341 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 27342 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
247f5006 | 27343 | _ACEOF |
afc31813 VZ |
27344 | |
27345 | fi | |
27346 | fi | |
27347 | ||
247f5006 | 27348 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 27349 | #define wxUSE_TIMEDATE 1 |
247f5006 | 27350 | _ACEOF |
afc31813 VZ |
27351 | |
27352 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
27353 | fi | |
27354 | ||
8284b0c5 | 27355 | |
52127426 | 27356 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 27357 | if test "$wxUSE_MGL" = "1"; then |
247f5006 VZ |
27358 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
27359 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
27360 | wxUSE_SOCKETS="no" |
27361 | fi | |
0feee163 | 27362 | fi |
b089607b | 27363 | |
0feee163 VZ |
27364 | if test "$wxUSE_SOCKETS" = "yes"; then |
27365 | if test "$TOOLKIT" != "MSW"; then | |
247f5006 VZ |
27366 | echo "$as_me:$LINENO: checking for socket" >&5 |
27367 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
27368 | if test "${ac_cv_func_socket+set}" = set; then | |
27369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 27370 | else |
247f5006 VZ |
27371 | cat >conftest.$ac_ext <<_ACEOF |
27372 | #line $LINENO "configure" | |
c63c7106 VZ |
27373 | #include "confdefs.h" |
27374 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 27375 | which can conflict with char socket (); below. */ |
c63c7106 VZ |
27376 | #include <assert.h> |
27377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
27378 | #ifdef __cplusplus |
27379 | extern "C" | |
27380 | #endif | |
c63c7106 | 27381 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
27382 | builtin and then its argument prototype would still apply. */ |
27383 | char socket (); | |
27384 | char (*f) (); | |
27385 | ||
27386 | #ifdef F77_DUMMY_MAIN | |
27387 | # ifdef __cplusplus | |
27388 | extern "C" | |
27389 | # endif | |
27390 | int F77_DUMMY_MAIN() { return 1; } | |
27391 | #endif | |
27392 | int | |
27393 | main () | |
27394 | { | |
c63c7106 VZ |
27395 | /* The GNU C library defines this for functions which it implements |
27396 | to always fail with ENOSYS. Some functions are actually named | |
27397 | something starting with __ and the normal name is an alias. */ | |
27398 | #if defined (__stub_socket) || defined (__stub___socket) | |
27399 | choke me | |
27400 | #else | |
247f5006 | 27401 | f = socket; |
c63c7106 VZ |
27402 | #endif |
27403 | ||
247f5006 VZ |
27404 | ; |
27405 | return 0; | |
27406 | } | |
27407 | _ACEOF | |
27408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27410 | (eval $ac_link) 2>&5 | |
27411 | ac_status=$? | |
27412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27413 | (exit $ac_status); } && | |
27414 | { ac_try='test -s conftest$ac_exeext' | |
27415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27416 | (eval $ac_try) 2>&5 | |
27417 | ac_status=$? | |
27418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27419 | (exit $ac_status); }; }; then | |
27420 | ac_cv_func_socket=yes | |
27421 | else | |
27422 | echo "$as_me: failed program was:" >&5 | |
27423 | cat conftest.$ac_ext >&5 | |
27424 | ac_cv_func_socket=no | |
27425 | fi | |
27426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27427 | fi | |
27428 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
27429 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
27430 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
27431 | : |
27432 | else | |
247f5006 VZ |
27433 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
27434 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
27435 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
27436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 27437 | else |
247f5006 | 27438 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 27439 | LIBS="-lsocket $LIBS" |
247f5006 VZ |
27440 | cat >conftest.$ac_ext <<_ACEOF |
27441 | #line $LINENO "configure" | |
c63c7106 | 27442 | #include "confdefs.h" |
247f5006 | 27443 | |
c63c7106 | 27444 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
27445 | #ifdef __cplusplus |
27446 | extern "C" | |
27447 | #endif | |
c63c7106 | 27448 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
27449 | builtin and then its argument prototype would still apply. */ |
27450 | char socket (); | |
27451 | #ifdef F77_DUMMY_MAIN | |
27452 | # ifdef __cplusplus | |
27453 | extern "C" | |
27454 | # endif | |
27455 | int F77_DUMMY_MAIN() { return 1; } | |
27456 | #endif | |
27457 | int | |
27458 | main () | |
27459 | { | |
27460 | socket (); | |
27461 | ; | |
27462 | return 0; | |
27463 | } | |
27464 | _ACEOF | |
27465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27467 | (eval $ac_link) 2>&5 | |
27468 | ac_status=$? | |
27469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27470 | (exit $ac_status); } && | |
27471 | { ac_try='test -s conftest$ac_exeext' | |
27472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27473 | (eval $ac_try) 2>&5 | |
27474 | ac_status=$? | |
27475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27476 | (exit $ac_status); }; }; then | |
27477 | ac_cv_lib_socket_socket=yes | |
27478 | else | |
27479 | echo "$as_me: failed program was:" >&5 | |
27480 | cat conftest.$ac_ext >&5 | |
27481 | ac_cv_lib_socket_socket=no | |
27482 | fi | |
27483 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27484 | LIBS=$ac_check_lib_save_LIBS | |
27485 | fi | |
27486 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
27487 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
27488 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 VS |
27489 | if test "$INET_LINK" != " -lsocket"; then |
27490 | INET_LINK="$INET_LINK -lsocket" | |
27491 | fi | |
c63c7106 | 27492 | else |
afc31813 | 27493 | |
247f5006 VZ |
27494 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
27495 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
3a922bb4 | 27496 | wxUSE_SOCKETS=no |
247f5006 VZ |
27497 | |
27498 | ||
6232543b | 27499 | fi |
b089607b | 27500 | |
247f5006 | 27501 | |
1e487827 | 27502 | fi |
afc31813 | 27503 | |
3a922bb4 | 27504 | fi |
0feee163 | 27505 | fi |
51a9faba | 27506 | |
0feee163 VZ |
27507 | if test "$wxUSE_SOCKETS" = "yes" ; then |
27508 | if test "$TOOLKIT" != "MSW"; then | |
247f5006 VZ |
27509 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
27510 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
27511 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
27512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27513 | else | |
27514 | ||
27515 | ||
27516 | ||
27517 | ac_ext=cc | |
5c6fa7d2 | 27518 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
27519 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27520 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27521 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
698dcdb6 | 27522 | |
8284b0c5 | 27523 | |
247f5006 VZ |
27524 | cat >conftest.$ac_ext <<_ACEOF |
27525 | #line $LINENO "configure" | |
afc31813 | 27526 | #include "confdefs.h" |
51a9faba | 27527 | |
3a922bb4 RL |
27528 | #include <sys/types.h> |
27529 | #include <sys/socket.h> | |
247f5006 VZ |
27530 | |
27531 | #ifdef F77_DUMMY_MAIN | |
27532 | # ifdef __cplusplus | |
27533 | extern "C" | |
27534 | # endif | |
27535 | int F77_DUMMY_MAIN() { return 1; } | |
27536 | #endif | |
27537 | int | |
27538 | main () | |
27539 | { | |
51a9faba | 27540 | |
3a922bb4 RL |
27541 | socklen_t len; |
27542 | getsockname(0, 0, &len); | |
247f5006 VZ |
27543 | |
27544 | ; | |
27545 | return 0; | |
27546 | } | |
27547 | _ACEOF | |
27548 | rm -f conftest.$ac_objext | |
27549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27550 | (eval $ac_compile) 2>&5 | |
27551 | ac_status=$? | |
27552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27553 | (exit $ac_status); } && | |
27554 | { ac_try='test -s conftest.$ac_objext' | |
27555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27556 | (eval $ac_try) 2>&5 | |
27557 | ac_status=$? | |
27558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27559 | (exit $ac_status); }; }; then | |
51a9faba | 27560 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 27561 | else |
247f5006 VZ |
27562 | echo "$as_me: failed program was:" >&5 |
27563 | cat conftest.$ac_ext >&5 | |
27564 | cat >conftest.$ac_ext <<_ACEOF | |
27565 | #line $LINENO "configure" | |
afc31813 | 27566 | #include "confdefs.h" |
51a9faba | 27567 | |
3a922bb4 RL |
27568 | #include <sys/types.h> |
27569 | #include <sys/socket.h> | |
247f5006 VZ |
27570 | |
27571 | #ifdef F77_DUMMY_MAIN | |
27572 | # ifdef __cplusplus | |
27573 | extern "C" | |
27574 | # endif | |
27575 | int F77_DUMMY_MAIN() { return 1; } | |
27576 | #endif | |
27577 | int | |
27578 | main () | |
27579 | { | |
51a9faba | 27580 | |
3a922bb4 RL |
27581 | size_t len; |
27582 | getsockname(0, 0, &len); | |
247f5006 VZ |
27583 | |
27584 | ; | |
27585 | return 0; | |
27586 | } | |
27587 | _ACEOF | |
27588 | rm -f conftest.$ac_objext | |
27589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27590 | (eval $ac_compile) 2>&5 | |
27591 | ac_status=$? | |
27592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27593 | (exit $ac_status); } && | |
27594 | { ac_try='test -s conftest.$ac_objext' | |
27595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27596 | (eval $ac_try) 2>&5 | |
27597 | ac_status=$? | |
27598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27599 | (exit $ac_status); }; }; then | |
51a9faba | 27600 | wx_cv_type_getsockname3=size_t |
afc31813 | 27601 | else |
247f5006 VZ |
27602 | echo "$as_me: failed program was:" >&5 |
27603 | cat conftest.$ac_ext >&5 | |
27604 | cat >conftest.$ac_ext <<_ACEOF | |
27605 | #line $LINENO "configure" | |
afc31813 | 27606 | #include "confdefs.h" |
51a9faba | 27607 | |
3a922bb4 RL |
27608 | #include <sys/types.h> |
27609 | #include <sys/socket.h> | |
247f5006 VZ |
27610 | |
27611 | #ifdef F77_DUMMY_MAIN | |
27612 | # ifdef __cplusplus | |
27613 | extern "C" | |
27614 | # endif | |
27615 | int F77_DUMMY_MAIN() { return 1; } | |
27616 | #endif | |
27617 | int | |
27618 | main () | |
27619 | { | |
51a9faba | 27620 | |
3a922bb4 RL |
27621 | int len; |
27622 | getsockname(0, 0, &len); | |
247f5006 VZ |
27623 | |
27624 | ; | |
27625 | return 0; | |
27626 | } | |
27627 | _ACEOF | |
27628 | rm -f conftest.$ac_objext | |
27629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27630 | (eval $ac_compile) 2>&5 | |
27631 | ac_status=$? | |
27632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27633 | (exit $ac_status); } && | |
27634 | { ac_try='test -s conftest.$ac_objext' | |
27635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27636 | (eval $ac_try) 2>&5 | |
27637 | ac_status=$? | |
27638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27639 | (exit $ac_status); }; }; then | |
51a9faba | 27640 | wx_cv_type_getsockname3=int |
afc31813 | 27641 | else |
247f5006 VZ |
27642 | echo "$as_me: failed program was:" >&5 |
27643 | cat conftest.$ac_ext >&5 | |
27644 | wx_cv_type_getsockname3=unknown | |
27645 | ||
afc31813 | 27646 | fi |
247f5006 VZ |
27647 | rm -f conftest.$ac_objext conftest.$ac_ext |
27648 | ||
afc31813 | 27649 | fi |
247f5006 VZ |
27650 | rm -f conftest.$ac_objext conftest.$ac_ext |
27651 | ||
afc31813 | 27652 | fi |
247f5006 | 27653 | rm -f conftest.$ac_objext conftest.$ac_ext |
51a9faba | 27654 | |
3a922bb4 | 27655 | ac_ext=c |
afc31813 | 27656 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
27657 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27658 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27659 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
afc31813 | 27660 | |
8284b0c5 | 27661 | |
247f5006 VZ |
27662 | fi |
27663 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
27664 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 27665 | |
3a922bb4 RL |
27666 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
27667 | wxUSE_SOCKETS=no | |
247f5006 VZ |
27668 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
27669 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 27670 | else |
247f5006 | 27671 | cat >>confdefs.h <<_ACEOF |
51a9faba | 27672 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
247f5006 | 27673 | _ACEOF |
51a9faba | 27674 | |
3a922bb4 | 27675 | fi |
51a9faba VZ |
27676 | fi |
27677 | fi | |
afc31813 | 27678 | |
51a9faba | 27679 | if test "$wxUSE_SOCKETS" = "yes" ; then |
247f5006 | 27680 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 27681 | #define wxUSE_SOCKETS 1 |
247f5006 | 27682 | _ACEOF |
afc31813 | 27683 | |
70f7a477 | 27684 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
27685 | fi |
27686 | ||
8284b0c5 | 27687 | |
dc3d889d VZ |
27688 | if test "$wxUSE_GUI" = "yes"; then |
27689 | ||
156b2523 | 27690 | if test "$TOOLKIT" = "MAC"; then |
247f5006 VZ |
27691 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
27692 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
27693 | wxUSE_JOYSTICK=no |
27694 | fi | |
27695 | if test "$TOOLKIT" = "MOTIF"; then | |
247f5006 VZ |
27696 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Motif... disabled" >&5 |
27697 | echo "$as_me: WARNING: Joystick not yet supported under Motif... disabled" >&2;} | |
156b2523 | 27698 | wxUSE_JOYSTICK=no |
f79bd02d JS |
27699 | fi |
27700 | if test "$TOOLKIT" = "X11"; then | |
247f5006 VZ |
27701 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under X11... disabled" >&5 |
27702 | echo "$as_me: WARNING: Joystick not yet supported under X11... disabled" >&2;} | |
f79bd02d | 27703 | wxUSE_JOYSTICK=no |
156b2523 GD |
27704 | fi |
27705 | ||
3a922bb4 RL |
27706 | if test "$TOOLKIT" != "MSW"; then |
27707 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
247f5006 VZ |
27708 | |
27709 | for ac_header in linux/joystick.h | |
10f2d63a | 27710 | do |
247f5006 VZ |
27711 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
27712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27713 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27714 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27715 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27717 | fi | |
27718 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27719 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27720 | else | |
27721 | # Is the header compilable? | |
27722 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
27723 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
27724 | cat >conftest.$ac_ext <<_ACEOF | |
27725 | #line $LINENO "configure" | |
10f2d63a | 27726 | #include "confdefs.h" |
247f5006 VZ |
27727 | $ac_includes_default |
27728 | #include <$ac_header> | |
27729 | _ACEOF | |
27730 | rm -f conftest.$ac_objext | |
27731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27732 | (eval $ac_compile) 2>&5 | |
27733 | ac_status=$? | |
27734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27735 | (exit $ac_status); } && | |
27736 | { ac_try='test -s conftest.$ac_objext' | |
27737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27738 | (eval $ac_try) 2>&5 | |
27739 | ac_status=$? | |
27740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27741 | (exit $ac_status); }; }; then | |
27742 | ac_header_compiler=yes | |
27743 | else | |
27744 | echo "$as_me: failed program was:" >&5 | |
27745 | cat conftest.$ac_ext >&5 | |
27746 | ac_header_compiler=no | |
27747 | fi | |
27748 | rm -f conftest.$ac_objext conftest.$ac_ext | |
27749 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
27750 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
27751 | ||
27752 | # Is the header present? | |
27753 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
27754 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
27755 | cat >conftest.$ac_ext <<_ACEOF | |
27756 | #line $LINENO "configure" | |
27757 | #include "confdefs.h" | |
27758 | #include <$ac_header> | |
27759 | _ACEOF | |
27760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27762 | ac_status=$? | |
27763 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
27764 | rm -f conftest.er1 | |
27765 | cat conftest.err >&5 | |
27766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27767 | (exit $ac_status); } >/dev/null; then | |
27768 | if test -s conftest.err; then | |
27769 | ac_cpp_err=$ac_c_preproc_warn_flag | |
27770 | else | |
27771 | ac_cpp_err= | |
27772 | fi | |
27773 | else | |
27774 | ac_cpp_err=yes | |
10f2d63a | 27775 | fi |
247f5006 VZ |
27776 | if test -z "$ac_cpp_err"; then |
27777 | ac_header_preproc=yes | |
27778 | else | |
27779 | echo "$as_me: failed program was:" >&5 | |
27780 | cat conftest.$ac_ext >&5 | |
27781 | ac_header_preproc=no | |
27782 | fi | |
27783 | rm -f conftest.err conftest.$ac_ext | |
27784 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
27785 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
27786 | ||
27787 | # So? What about this header? | |
27788 | case $ac_header_compiler:$ac_header_preproc in | |
27789 | yes:no ) | |
27790 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
27791 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
27792 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
27793 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
27794 | no:yes ) | |
27795 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
27796 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
27797 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
27798 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
27799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
27800 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
27801 | esac | |
27802 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
27803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
27804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
27805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27806 | else |
247f5006 VZ |
27807 | eval "$as_ac_Header=$ac_header_preproc" |
27808 | fi | |
27809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
27810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
27811 | ||
10f2d63a | 27812 | fi |
247f5006 VZ |
27813 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
27814 | cat >>confdefs.h <<_ACEOF | |
27815 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
27816 | _ACEOF | |
27817 | ||
27818 | fi | |
27819 | ||
10f2d63a VZ |
27820 | done |
27821 | ||
3a922bb4 RL |
27822 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
27823 | wxUSE_JOYSTICK=no | |
247f5006 VZ |
27824 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
27825 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
27826 | fi |
27827 | fi | |
27828 | fi | |
b089607b | 27829 | |
3a922bb4 | 27830 | if test "$wxUSE_JOYSTICK" = "yes"; then |
247f5006 | 27831 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 27832 | #define wxUSE_JOYSTICK 1 |
247f5006 | 27833 | _ACEOF |
10f2d63a | 27834 | |
3a922bb4 RL |
27835 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
27836 | fi | |
dc3d889d VZ |
27837 | fi |
27838 | ||
8284b0c5 | 27839 | |
b089607b VZ |
27840 | if test "$TOOLKIT" != "MSW"; then |
27841 | ||
3a922bb4 RL |
27842 | HAVE_DL_FUNCS=0 |
27843 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 27844 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
27845 | if test "$USE_DARWIN" = 1; then |
27846 | HAVE_DL_FUNCS=1 | |
27847 | else | |
247f5006 VZ |
27848 | |
27849 | for ac_func in dlopen | |
10f2d63a | 27850 | do |
247f5006 VZ |
27851 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27852 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27853 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27854 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27856 | else | |
27857 | cat >conftest.$ac_ext <<_ACEOF | |
27858 | #line $LINENO "configure" | |
10f2d63a VZ |
27859 | #include "confdefs.h" |
27860 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 27861 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
27862 | #include <assert.h> |
27863 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
27864 | #ifdef __cplusplus |
27865 | extern "C" | |
27866 | #endif | |
10f2d63a | 27867 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
27868 | builtin and then its argument prototype would still apply. */ |
27869 | char $ac_func (); | |
27870 | char (*f) (); | |
27871 | ||
27872 | #ifdef F77_DUMMY_MAIN | |
27873 | # ifdef __cplusplus | |
27874 | extern "C" | |
27875 | # endif | |
27876 | int F77_DUMMY_MAIN() { return 1; } | |
27877 | #endif | |
27878 | int | |
27879 | main () | |
27880 | { | |
10f2d63a VZ |
27881 | /* The GNU C library defines this for functions which it implements |
27882 | to always fail with ENOSYS. Some functions are actually named | |
27883 | something starting with __ and the normal name is an alias. */ | |
27884 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27885 | choke me | |
27886 | #else | |
247f5006 | 27887 | f = $ac_func; |
10f2d63a VZ |
27888 | #endif |
27889 | ||
247f5006 VZ |
27890 | ; |
27891 | return 0; | |
27892 | } | |
27893 | _ACEOF | |
27894 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27895 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27896 | (eval $ac_link) 2>&5 | |
27897 | ac_status=$? | |
27898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27899 | (exit $ac_status); } && | |
27900 | { ac_try='test -s conftest$ac_exeext' | |
27901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27902 | (eval $ac_try) 2>&5 | |
27903 | ac_status=$? | |
27904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27905 | (exit $ac_status); }; }; then | |
27906 | eval "$as_ac_var=yes" | |
27907 | else | |
27908 | echo "$as_me: failed program was:" >&5 | |
27909 | cat conftest.$ac_ext >&5 | |
27910 | eval "$as_ac_var=no" | |
27911 | fi | |
27912 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27913 | fi | |
27914 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27915 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27916 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27917 | cat >>confdefs.h <<_ACEOF | |
27918 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27919 | _ACEOF | |
27920 | ||
27921 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 27922 | #define HAVE_DLOPEN 1 |
247f5006 | 27923 | _ACEOF |
10f2d63a | 27924 | |
3a922bb4 | 27925 | HAVE_DL_FUNCS=1 |
247f5006 | 27926 | |
10f2d63a | 27927 | else |
247f5006 VZ |
27928 | |
27929 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
27930 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
27931 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
27932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27933 | else |
247f5006 | 27934 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 27935 | LIBS="-ldl $LIBS" |
247f5006 VZ |
27936 | cat >conftest.$ac_ext <<_ACEOF |
27937 | #line $LINENO "configure" | |
10f2d63a | 27938 | #include "confdefs.h" |
247f5006 | 27939 | |
10f2d63a | 27940 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
27941 | #ifdef __cplusplus |
27942 | extern "C" | |
27943 | #endif | |
10f2d63a | 27944 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
27945 | builtin and then its argument prototype would still apply. */ |
27946 | char dlopen (); | |
27947 | #ifdef F77_DUMMY_MAIN | |
27948 | # ifdef __cplusplus | |
27949 | extern "C" | |
27950 | # endif | |
27951 | int F77_DUMMY_MAIN() { return 1; } | |
27952 | #endif | |
27953 | int | |
27954 | main () | |
27955 | { | |
27956 | dlopen (); | |
27957 | ; | |
27958 | return 0; | |
27959 | } | |
27960 | _ACEOF | |
27961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27963 | (eval $ac_link) 2>&5 | |
27964 | ac_status=$? | |
27965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27966 | (exit $ac_status); } && | |
27967 | { ac_try='test -s conftest$ac_exeext' | |
27968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27969 | (eval $ac_try) 2>&5 | |
27970 | ac_status=$? | |
27971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27972 | (exit $ac_status); }; }; then | |
27973 | ac_cv_lib_dl_dlopen=yes | |
27974 | else | |
27975 | echo "$as_me: failed program was:" >&5 | |
27976 | cat conftest.$ac_ext >&5 | |
27977 | ac_cv_lib_dl_dlopen=no | |
27978 | fi | |
27979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27980 | LIBS=$ac_check_lib_save_LIBS | |
27981 | fi | |
27982 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
27983 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
27984 | if test $ac_cv_lib_dl_dlopen = yes; then | |
27985 | ||
27986 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 27987 | #define HAVE_DLOPEN 1 |
247f5006 | 27988 | _ACEOF |
10f2d63a | 27989 | |
3a922bb4 | 27990 | HAVE_DL_FUNCS=1 |
3d63bc3a | 27991 | DL_LINK=" -ldl$DL_LINK" |
247f5006 | 27992 | |
10f2d63a | 27993 | else |
10f2d63a | 27994 | |
247f5006 VZ |
27995 | |
27996 | for ac_func in shl_load | |
10f2d63a | 27997 | do |
247f5006 VZ |
27998 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27999 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28000 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28001 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28003 | else | |
28004 | cat >conftest.$ac_ext <<_ACEOF | |
28005 | #line $LINENO "configure" | |
10f2d63a VZ |
28006 | #include "confdefs.h" |
28007 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 28008 | which can conflict with char $ac_func (); below. */ |
10f2d63a VZ |
28009 | #include <assert.h> |
28010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
28011 | #ifdef __cplusplus |
28012 | extern "C" | |
28013 | #endif | |
10f2d63a | 28014 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
28015 | builtin and then its argument prototype would still apply. */ |
28016 | char $ac_func (); | |
28017 | char (*f) (); | |
28018 | ||
28019 | #ifdef F77_DUMMY_MAIN | |
28020 | # ifdef __cplusplus | |
28021 | extern "C" | |
28022 | # endif | |
28023 | int F77_DUMMY_MAIN() { return 1; } | |
28024 | #endif | |
28025 | int | |
28026 | main () | |
28027 | { | |
10f2d63a VZ |
28028 | /* The GNU C library defines this for functions which it implements |
28029 | to always fail with ENOSYS. Some functions are actually named | |
28030 | something starting with __ and the normal name is an alias. */ | |
28031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28032 | choke me | |
28033 | #else | |
247f5006 | 28034 | f = $ac_func; |
10f2d63a VZ |
28035 | #endif |
28036 | ||
247f5006 VZ |
28037 | ; |
28038 | return 0; | |
28039 | } | |
28040 | _ACEOF | |
28041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28043 | (eval $ac_link) 2>&5 | |
28044 | ac_status=$? | |
28045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28046 | (exit $ac_status); } && | |
28047 | { ac_try='test -s conftest$ac_exeext' | |
28048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28049 | (eval $ac_try) 2>&5 | |
28050 | ac_status=$? | |
28051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28052 | (exit $ac_status); }; }; then | |
28053 | eval "$as_ac_var=yes" | |
28054 | else | |
28055 | echo "$as_me: failed program was:" >&5 | |
28056 | cat conftest.$ac_ext >&5 | |
28057 | eval "$as_ac_var=no" | |
28058 | fi | |
28059 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28060 | fi | |
28061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28062 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28063 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28064 | cat >>confdefs.h <<_ACEOF | |
28065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28066 | _ACEOF | |
28067 | ||
28068 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 28069 | #define HAVE_SHL_LOAD 1 |
247f5006 | 28070 | _ACEOF |
10f2d63a | 28071 | |
3a922bb4 | 28072 | HAVE_SHL_FUNCS=1 |
247f5006 | 28073 | |
10f2d63a | 28074 | else |
247f5006 VZ |
28075 | |
28076 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
28077 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
28078 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
28079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 28080 | else |
247f5006 | 28081 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 28082 | LIBS="-lshl_load $LIBS" |
247f5006 VZ |
28083 | cat >conftest.$ac_ext <<_ACEOF |
28084 | #line $LINENO "configure" | |
f6bcfd97 | 28085 | #include "confdefs.h" |
247f5006 | 28086 | |
8284b0c5 | 28087 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
28088 | #ifdef __cplusplus |
28089 | extern "C" | |
28090 | #endif | |
f6bcfd97 | 28091 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
28092 | builtin and then its argument prototype would still apply. */ |
28093 | char dld (); | |
28094 | #ifdef F77_DUMMY_MAIN | |
28095 | # ifdef __cplusplus | |
28096 | extern "C" | |
28097 | # endif | |
28098 | int F77_DUMMY_MAIN() { return 1; } | |
28099 | #endif | |
28100 | int | |
28101 | main () | |
28102 | { | |
28103 | dld (); | |
28104 | ; | |
28105 | return 0; | |
28106 | } | |
28107 | _ACEOF | |
28108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28110 | (eval $ac_link) 2>&5 | |
28111 | ac_status=$? | |
28112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28113 | (exit $ac_status); } && | |
28114 | { ac_try='test -s conftest$ac_exeext' | |
28115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28116 | (eval $ac_try) 2>&5 | |
28117 | ac_status=$? | |
28118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28119 | (exit $ac_status); }; }; then | |
28120 | ac_cv_lib_shl_load_dld=yes | |
28121 | else | |
28122 | echo "$as_me: failed program was:" >&5 | |
28123 | cat conftest.$ac_ext >&5 | |
28124 | ac_cv_lib_shl_load_dld=no | |
28125 | fi | |
28126 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28127 | LIBS=$ac_check_lib_save_LIBS | |
28128 | fi | |
28129 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
28130 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
28131 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 28132 | |
3a922bb4 | 28133 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 28134 | DL_LINK=" -ldld$DL_LINK" |
247f5006 | 28135 | |
f6bcfd97 BP |
28136 | fi |
28137 | ||
247f5006 | 28138 | |
10f2d63a VZ |
28139 | fi |
28140 | done | |
28141 | ||
247f5006 | 28142 | |
10f2d63a VZ |
28143 | fi |
28144 | ||
247f5006 | 28145 | |
10f2d63a VZ |
28146 | fi |
28147 | done | |
28148 | ||
5c6fa7d2 | 28149 | |
8284b0c5 | 28150 | if test "$HAVE_DL_FUNCS" = 1; then |
247f5006 VZ |
28151 | |
28152 | for ac_func in dlerror | |
f6bcfd97 | 28153 | do |
247f5006 VZ |
28154 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28155 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28156 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28157 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28159 | else | |
28160 | cat >conftest.$ac_ext <<_ACEOF | |
28161 | #line $LINENO "configure" | |
f6bcfd97 BP |
28162 | #include "confdefs.h" |
28163 | /* System header to define __stub macros and hopefully few prototypes, | |
247f5006 | 28164 | which can conflict with char $ac_func (); below. */ |
f6bcfd97 BP |
28165 | #include <assert.h> |
28166 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
28167 | #ifdef __cplusplus |
28168 | extern "C" | |
28169 | #endif | |
f6bcfd97 | 28170 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
28171 | builtin and then its argument prototype would still apply. */ |
28172 | char $ac_func (); | |
28173 | char (*f) (); | |
28174 | ||
28175 | #ifdef F77_DUMMY_MAIN | |
28176 | # ifdef __cplusplus | |
28177 | extern "C" | |
28178 | # endif | |
28179 | int F77_DUMMY_MAIN() { return 1; } | |
28180 | #endif | |
28181 | int | |
28182 | main () | |
28183 | { | |
f6bcfd97 BP |
28184 | /* The GNU C library defines this for functions which it implements |
28185 | to always fail with ENOSYS. Some functions are actually named | |
28186 | something starting with __ and the normal name is an alias. */ | |
28187 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28188 | choke me | |
28189 | #else | |
247f5006 | 28190 | f = $ac_func; |
f6bcfd97 BP |
28191 | #endif |
28192 | ||
247f5006 VZ |
28193 | ; |
28194 | return 0; | |
28195 | } | |
28196 | _ACEOF | |
28197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28199 | (eval $ac_link) 2>&5 | |
28200 | ac_status=$? | |
28201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28202 | (exit $ac_status); } && | |
28203 | { ac_try='test -s conftest$ac_exeext' | |
28204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28205 | (eval $ac_try) 2>&5 | |
28206 | ac_status=$? | |
28207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28208 | (exit $ac_status); }; }; then | |
28209 | eval "$as_ac_var=yes" | |
28210 | else | |
28211 | echo "$as_me: failed program was:" >&5 | |
28212 | cat conftest.$ac_ext >&5 | |
28213 | eval "$as_ac_var=no" | |
28214 | fi | |
28215 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28216 | fi | |
28217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28218 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28219 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28220 | cat >>confdefs.h <<_ACEOF | |
28221 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28222 | _ACEOF | |
28223 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 28224 | #define HAVE_DLERROR 1 |
247f5006 | 28225 | _ACEOF |
f6bcfd97 BP |
28226 | |
28227 | else | |
247f5006 VZ |
28228 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 |
28229 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
28230 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
28231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 28232 | else |
247f5006 | 28233 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 28234 | LIBS="-ldl $LIBS" |
247f5006 VZ |
28235 | cat >conftest.$ac_ext <<_ACEOF |
28236 | #line $LINENO "configure" | |
f6bcfd97 | 28237 | #include "confdefs.h" |
247f5006 | 28238 | |
f6bcfd97 | 28239 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
28240 | #ifdef __cplusplus |
28241 | extern "C" | |
28242 | #endif | |
f6bcfd97 | 28243 | /* We use char because int might match the return type of a gcc2 |
247f5006 VZ |
28244 | builtin and then its argument prototype would still apply. */ |
28245 | char dlerror (); | |
28246 | #ifdef F77_DUMMY_MAIN | |
28247 | # ifdef __cplusplus | |
28248 | extern "C" | |
28249 | # endif | |
28250 | int F77_DUMMY_MAIN() { return 1; } | |
28251 | #endif | |
28252 | int | |
28253 | main () | |
28254 | { | |
28255 | dlerror (); | |
28256 | ; | |
28257 | return 0; | |
28258 | } | |
28259 | _ACEOF | |
28260 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28262 | (eval $ac_link) 2>&5 | |
28263 | ac_status=$? | |
28264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28265 | (exit $ac_status); } && | |
28266 | { ac_try='test -s conftest$ac_exeext' | |
28267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28268 | (eval $ac_try) 2>&5 | |
28269 | ac_status=$? | |
28270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28271 | (exit $ac_status); }; }; then | |
28272 | ac_cv_lib_dl_dlerror=yes | |
28273 | else | |
28274 | echo "$as_me: failed program was:" >&5 | |
28275 | cat conftest.$ac_ext >&5 | |
28276 | ac_cv_lib_dl_dlerror=no | |
28277 | fi | |
28278 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28279 | LIBS=$ac_check_lib_save_LIBS | |
28280 | fi | |
28281 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
28282 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
28283 | if test $ac_cv_lib_dl_dlerror = yes; then | |
28284 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 28285 | #define HAVE_DLERROR 1 |
247f5006 | 28286 | _ACEOF |
f6bcfd97 | 28287 | |
f6bcfd97 BP |
28288 | fi |
28289 | ||
28290 | fi | |
28291 | done | |
28292 | ||
3a922bb4 RL |
28293 | fi |
28294 | fi | |
f6bcfd97 | 28295 | |
3a922bb4 RL |
28296 | if test "$HAVE_DL_FUNCS" = 0; then |
28297 | if test "$HAVE_SHL_FUNCS" = 0; then | |
28298 | if test "$USE_UNIX" = 1; then | |
247f5006 VZ |
28299 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
28300 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 28301 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
28302 | wxUSE_DYNLIB_CLASS=no |
28303 | else | |
247f5006 VZ |
28304 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
28305 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
28306 | fi |
28307 | fi | |
10f2d63a VZ |
28308 | fi |
28309 | fi | |
28310 | fi | |
28311 | ||
0b9ab0bd | 28312 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
247f5006 | 28313 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 28314 | #define wxUSE_DYNAMIC_LOADER 1 |
247f5006 | 28315 | _ACEOF |
0b9ab0bd RL |
28316 | |
28317 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
247f5006 | 28318 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28319 | #define wxUSE_DYNLIB_CLASS 1 |
247f5006 | 28320 | _ACEOF |
10f2d63a VZ |
28321 | |
28322 | fi | |
28323 | ||
8284b0c5 | 28324 | |
1e6feb95 | 28325 | if test "$wxUSE_FONTMAP" = "yes" ; then |
247f5006 | 28326 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 28327 | #define wxUSE_FONTMAP 1 |
247f5006 | 28328 | _ACEOF |
1e6feb95 VZ |
28329 | |
28330 | fi | |
28331 | ||
10f2d63a | 28332 | if test "$wxUSE_UNICODE" = "yes" ; then |
247f5006 | 28333 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28334 | #define wxUSE_UNICODE 1 |
247f5006 | 28335 | _ACEOF |
10f2d63a | 28336 | |
8284b0c5 | 28337 | |
bbc3925a VS |
28338 | if test "$wxUSE_MSW" != 1; then |
28339 | wxUSE_UNICODE_MSLU=no | |
28340 | fi | |
a72a4bfa VS |
28341 | |
28342 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
247f5006 VZ |
28343 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
28344 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
28345 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
28346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 28347 | else |
247f5006 | 28348 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 28349 | LIBS="-lunicows $LIBS" |
247f5006 VZ |
28350 | cat >conftest.$ac_ext <<_ACEOF |
28351 | #line $LINENO "configure" | |
a72a4bfa VS |
28352 | #include "confdefs.h" |
28353 | ||
8284b0c5 | 28354 | |
247f5006 VZ |
28355 | #ifdef F77_DUMMY_MAIN |
28356 | # ifdef __cplusplus | |
28357 | extern "C" | |
28358 | # endif | |
28359 | int F77_DUMMY_MAIN() { return 1; } | |
28360 | #endif | |
28361 | int | |
28362 | main () | |
28363 | { | |
28364 | main (); | |
28365 | ; | |
28366 | return 0; | |
28367 | } | |
28368 | _ACEOF | |
28369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28371 | (eval $ac_link) 2>&5 | |
28372 | ac_status=$? | |
28373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28374 | (exit $ac_status); } && | |
28375 | { ac_try='test -s conftest$ac_exeext' | |
28376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28377 | (eval $ac_try) 2>&5 | |
28378 | ac_status=$? | |
28379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28380 | (exit $ac_status); }; }; then | |
28381 | ac_cv_lib_unicows_main=yes | |
28382 | else | |
28383 | echo "$as_me: failed program was:" >&5 | |
28384 | cat conftest.$ac_ext >&5 | |
28385 | ac_cv_lib_unicows_main=no | |
28386 | fi | |
28387 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28388 | LIBS=$ac_check_lib_save_LIBS | |
28389 | fi | |
28390 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
28391 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
28392 | if test $ac_cv_lib_unicows_main = yes; then | |
28393 | ||
28394 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 28395 | #define wxUSE_UNICODE_MSLU 1 |
247f5006 VZ |
28396 | _ACEOF |
28397 | ||
a72a4bfa | 28398 | |
a72a4bfa | 28399 | else |
a72a4bfa | 28400 | |
247f5006 VZ |
28401 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
28402 | Applications will only run on Windows NT/2000/XP!" >&5 | |
28403 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
28404 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 28405 | wxUSE_UNICODE_MSLU=no |
247f5006 | 28406 | |
a72a4bfa VS |
28407 | fi |
28408 | ||
28409 | fi | |
10f2d63a VZ |
28410 | fi |
28411 | ||
10f2d63a | 28412 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
247f5006 | 28413 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28414 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
247f5006 | 28415 | _ACEOF |
10f2d63a VZ |
28416 | |
28417 | fi | |
28418 | ||
8284b0c5 MB |
28419 | |
28420 | ||
10f2d63a VZ |
28421 | IODBC_C_SRC="" |
28422 | if test "$wxUSE_ODBC" = "yes" ; then | |
247f5006 | 28423 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28424 | #define wxUSE_ODBC 1 |
247f5006 | 28425 | _ACEOF |
10f2d63a VZ |
28426 | |
28427 | WXODBCFLAG="-D_IODBC_" | |
28428 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
28429 | fi |
28430 | ||
8284b0c5 | 28431 | |
10f2d63a | 28432 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
247f5006 | 28433 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28434 | #define wxUSE_POSTSCRIPT 1 |
247f5006 | 28435 | _ACEOF |
10f2d63a VZ |
28436 | |
28437 | fi | |
28438 | ||
247f5006 | 28439 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28440 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
247f5006 | 28441 | _ACEOF |
10f2d63a | 28442 | |
8284b0c5 | 28443 | |
247f5006 | 28444 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28445 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
247f5006 | 28446 | _ACEOF |
10f2d63a | 28447 | |
8284b0c5 MB |
28448 | |
28449 | ||
10f2d63a | 28450 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
247f5006 | 28451 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28452 | #define wxUSE_CONSTRAINTS 1 |
247f5006 | 28453 | _ACEOF |
10f2d63a VZ |
28454 | |
28455 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
28456 | fi | |
28457 | ||
28458 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 28459 | |
8284b0c5 | 28460 | |
bb811f17 | 28461 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
247f5006 | 28462 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28463 | #define wxUSE_MDI_ARCHITECTURE 1 |
247f5006 | 28464 | _ACEOF |
10f2d63a | 28465 | |
bb811f17 JS |
28466 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
28467 | fi | |
10f2d63a VZ |
28468 | fi |
28469 | ||
28470 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
247f5006 | 28471 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28472 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
247f5006 | 28473 | _ACEOF |
10f2d63a VZ |
28474 | |
28475 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
28476 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
28477 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
28478 | fi | |
28479 | fi | |
28480 | ||
28481 | if test "$wxUSE_HELP" = "yes"; then | |
247f5006 | 28482 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28483 | #define wxUSE_HELP 1 |
247f5006 | 28484 | _ACEOF |
10f2d63a VZ |
28485 | |
28486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 28487 | |
77e13408 | 28488 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 28489 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
247f5006 | 28490 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 28491 | #define wxUSE_MS_HTML_HELP 1 |
247f5006 | 28492 | _ACEOF |
29fd3c0c | 28493 | |
3e44f09d | 28494 | fi |
3379ed37 | 28495 | fi |
031d8228 VS |
28496 | |
28497 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
28498 | if test "$wxUSE_HTML" = "yes"; then | |
247f5006 | 28499 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 28500 | #define wxUSE_WXHTML_HELP 1 |
247f5006 | 28501 | _ACEOF |
031d8228 VS |
28502 | |
28503 | else | |
247f5006 VZ |
28504 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
28505 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
28506 | wxUSE_WXHTML_HELP=no |
28507 | fi | |
28508 | fi | |
10f2d63a VZ |
28509 | fi |
28510 | ||
28511 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
28512 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
247f5006 VZ |
28513 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
28514 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 28515 | else |
247f5006 | 28516 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28517 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
247f5006 | 28518 | _ACEOF |
10f2d63a VZ |
28519 | |
28520 | fi | |
28521 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
28522 | fi | |
28523 | ||
28524 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
247f5006 | 28525 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28526 | #define wxUSE_PROLOGIO 1 |
247f5006 | 28527 | _ACEOF |
10f2d63a VZ |
28528 | |
28529 | fi | |
28530 | ||
28531 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 28532 | if test "$wxUSE_NANOX" = "yes"; then |
247f5006 VZ |
28533 | { echo "$as_me:$LINENO: WARNING: Cannot use resource database functions in NanoX" >&5 |
28534 | echo "$as_me: WARNING: Cannot use resource database functions in NanoX" >&2;} | |
e334d0ea | 28535 | else |
247f5006 | 28536 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28537 | #define wxUSE_RESOURCES 1 |
247f5006 | 28538 | _ACEOF |
10f2d63a | 28539 | |
e334d0ea JS |
28540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
28541 | fi | |
10f2d63a VZ |
28542 | fi |
28543 | ||
28544 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
247f5006 | 28545 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28546 | #define wxUSE_X_RESOURCES 1 |
247f5006 | 28547 | _ACEOF |
10f2d63a VZ |
28548 | |
28549 | fi | |
28550 | ||
8284b0c5 | 28551 | |
77e13408 RL |
28552 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
28553 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
28554 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
247f5006 VZ |
28555 | |
28556 | for ac_header in ole2.h | |
10f2d63a | 28557 | do |
247f5006 VZ |
28558 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
28559 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28560 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28564 | fi | |
28565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
28566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28567 | else | |
28568 | # Is the header compilable? | |
28569 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
28570 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
28571 | cat >conftest.$ac_ext <<_ACEOF | |
28572 | #line $LINENO "configure" | |
10f2d63a | 28573 | #include "confdefs.h" |
247f5006 VZ |
28574 | $ac_includes_default |
28575 | #include <$ac_header> | |
28576 | _ACEOF | |
28577 | rm -f conftest.$ac_objext | |
28578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28579 | (eval $ac_compile) 2>&5 | |
28580 | ac_status=$? | |
28581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28582 | (exit $ac_status); } && | |
28583 | { ac_try='test -s conftest.$ac_objext' | |
28584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28585 | (eval $ac_try) 2>&5 | |
28586 | ac_status=$? | |
28587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28588 | (exit $ac_status); }; }; then | |
28589 | ac_header_compiler=yes | |
28590 | else | |
28591 | echo "$as_me: failed program was:" >&5 | |
28592 | cat conftest.$ac_ext >&5 | |
28593 | ac_header_compiler=no | |
28594 | fi | |
28595 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28596 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28597 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28598 | ||
28599 | # Is the header present? | |
28600 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
28601 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
28602 | cat >conftest.$ac_ext <<_ACEOF | |
28603 | #line $LINENO "configure" | |
28604 | #include "confdefs.h" | |
28605 | #include <$ac_header> | |
28606 | _ACEOF | |
28607 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28608 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28609 | ac_status=$? | |
28610 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
28611 | rm -f conftest.er1 | |
28612 | cat conftest.err >&5 | |
28613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28614 | (exit $ac_status); } >/dev/null; then | |
28615 | if test -s conftest.err; then | |
28616 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28617 | else | |
28618 | ac_cpp_err= | |
28619 | fi | |
28620 | else | |
28621 | ac_cpp_err=yes | |
28622 | fi | |
28623 | if test -z "$ac_cpp_err"; then | |
28624 | ac_header_preproc=yes | |
28625 | else | |
28626 | echo "$as_me: failed program was:" >&5 | |
10f2d63a | 28627 | cat conftest.$ac_ext >&5 |
247f5006 VZ |
28628 | ac_header_preproc=no |
28629 | fi | |
28630 | rm -f conftest.err conftest.$ac_ext | |
28631 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28632 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28633 | ||
28634 | # So? What about this header? | |
28635 | case $ac_header_compiler:$ac_header_preproc in | |
28636 | yes:no ) | |
28637 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
28638 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28639 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28640 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
28641 | no:yes ) | |
28642 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
28643 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28644 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28645 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28646 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28647 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; | |
28648 | esac | |
28649 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28653 | else | |
28654 | eval "$as_ac_Header=$ac_header_preproc" | |
10f2d63a | 28655 | fi |
247f5006 VZ |
28656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
28658 | ||
10f2d63a | 28659 | fi |
247f5006 VZ |
28660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28661 | cat >>confdefs.h <<_ACEOF | |
28662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
28663 | _ACEOF | |
28664 | ||
10f2d63a | 28665 | fi |
247f5006 | 28666 | |
10f2d63a VZ |
28667 | done |
28668 | ||
8284b0c5 | 28669 | |
2b9bdf71 VZ |
28670 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
28671 | if test "$GCC" = yes ; then | |
247f5006 VZ |
28672 | |
28673 | ||
28674 | ac_ext=cc | |
8284b0c5 | 28675 | ac_cpp='$CXXCPP $CPPFLAGS' |
247f5006 VZ |
28676 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28677 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28678 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 MB |
28679 | |
28680 | ||
247f5006 VZ |
28681 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
28682 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
28683 | cat >conftest.$ac_ext <<_ACEOF | |
28684 | #line $LINENO "configure" | |
8284b0c5 MB |
28685 | #include "confdefs.h" |
28686 | #include <windows.h> | |
28687 | #include <ole2.h> | |
247f5006 VZ |
28688 | #ifdef F77_DUMMY_MAIN |
28689 | # ifdef __cplusplus | |
28690 | extern "C" | |
28691 | # endif | |
28692 | int F77_DUMMY_MAIN() { return 1; } | |
28693 | #endif | |
28694 | int | |
28695 | main () | |
28696 | { | |
8284b0c5 | 28697 | |
247f5006 VZ |
28698 | ; |
28699 | return 0; | |
28700 | } | |
28701 | _ACEOF | |
28702 | rm -f conftest.$ac_objext | |
28703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28704 | (eval $ac_compile) 2>&5 | |
28705 | ac_status=$? | |
28706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28707 | (exit $ac_status); } && | |
28708 | { ac_try='test -s conftest.$ac_objext' | |
28709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28710 | (eval $ac_try) 2>&5 | |
28711 | ac_status=$? | |
28712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28713 | (exit $ac_status); }; }; then | |
28714 | echo "$as_me:$LINENO: result: no" >&5 | |
28715 | echo "${ECHO_T}no" >&6 | |
28716 | else | |
28717 | echo "$as_me: failed program was:" >&5 | |
28718 | cat conftest.$ac_ext >&5 | |
28719 | echo "$as_me:$LINENO: result: yes" >&5 | |
28720 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
28721 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
28722 | fi | |
247f5006 | 28723 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 28724 | ac_ext=c |
8284b0c5 | 28725 | ac_cpp='$CPP $CPPFLAGS' |
247f5006 VZ |
28726 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28727 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28728 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 28729 | |
2b9bdf71 | 28730 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 28731 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
247f5006 | 28732 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 28733 | #define wxUSE_OLE 1 |
247f5006 | 28734 | _ACEOF |
4f11a343 | 28735 | |
8284b0c5 | 28736 | |
2b9bdf71 VZ |
28737 | fi |
28738 | ||
247f5006 | 28739 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 28740 | #define wxUSE_DATAOBJ 1 |
247f5006 | 28741 | _ACEOF |
2b9bdf71 VZ |
28742 | |
28743 | else | |
247f5006 VZ |
28744 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
28745 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
28746 | |
28747 | wxUSE_CLIPBOARD=no | |
28748 | wxUSE_DRAG_AND_DROP=no | |
28749 | wxUSE_DATAOBJ=no | |
28750 | fi | |
28751 | ||
77e13408 | 28752 | if test "$wxUSE_METAFILE" = "yes"; then |
247f5006 | 28753 | cat >>confdefs.h <<\_ACEOF |
b64f0a5f | 28754 | #define wxUSE_METAFILE 1 |
247f5006 | 28755 | _ACEOF |
b64f0a5f | 28756 | |
8284b0c5 | 28757 | |
247f5006 | 28758 | cat >>confdefs.h <<\_ACEOF |
b64f0a5f | 28759 | #define wxUSE_ENH_METAFILE 1 |
247f5006 | 28760 | _ACEOF |
b64f0a5f | 28761 | |
2b9bdf71 VZ |
28762 | fi |
28763 | fi | |
28764 | ||
28765 | if test "$wxUSE_IPC" = "yes"; then | |
28766 | if test "$wxUSE_SOCKETS" != "yes"; then | |
247f5006 VZ |
28767 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
28768 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
28769 | fi |
28770 | ||
247f5006 | 28771 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 28772 | #define wxUSE_IPC 1 |
247f5006 | 28773 | _ACEOF |
2b9bdf71 VZ |
28774 | |
28775 | fi | |
28776 | ||
28777 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 28778 | if test "$wxUSE_MGL" = 1; then |
247f5006 VZ |
28779 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
28780 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
28781 | wxUSE_CLIPBOARD=no |
28782 | fi | |
28783 | ||
28784 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
247f5006 | 28785 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 28786 | #define wxUSE_CLIPBOARD 1 |
247f5006 | 28787 | _ACEOF |
2b9bdf71 | 28788 | |
8284b0c5 | 28789 | |
247f5006 | 28790 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 28791 | #define wxUSE_DATAOBJ 1 |
247f5006 | 28792 | _ACEOF |
673f4220 | 28793 | |
6c657b52 | 28794 | fi |
2b9bdf71 VZ |
28795 | fi |
28796 | ||
28797 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
28798 | if test "$wxUSE_GTK" = 1; then | |
28799 | if test "$WXGTK12" != 1; then | |
247f5006 VZ |
28800 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
28801 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
28802 | wxUSE_DRAG_AND_DROP=no |
28803 | fi | |
28804 | fi | |
28805 | ||
2b9bdf71 | 28806 | if test "$wxUSE_MOTIF" = 1; then |
247f5006 VZ |
28807 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
28808 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
28809 | wxUSE_DRAG_AND_DROP=no |
28810 | fi | |
28811 | ||
f79bd02d | 28812 | if test "$wxUSE_X11" = 1; then |
247f5006 VZ |
28813 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
28814 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
28815 | wxUSE_DRAG_AND_DROP=no |
28816 | fi | |
28817 | ||
6c657b52 | 28818 | if test "$wxUSE_MGL" = 1; then |
247f5006 VZ |
28819 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
28820 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
28821 | wxUSE_DRAG_AND_DROP=no |
28822 | fi | |
28823 | ||
10f2d63a | 28824 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
247f5006 | 28825 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28826 | #define wxUSE_DRAG_AND_DROP 1 |
247f5006 | 28827 | _ACEOF |
10f2d63a VZ |
28828 | |
28829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
28830 | fi | |
28831 | ||
28832 | fi | |
28833 | ||
28834 | if test "$wxUSE_SPLINES" = "yes" ; then | |
247f5006 | 28835 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28836 | #define wxUSE_SPLINES 1 |
247f5006 | 28837 | _ACEOF |
10f2d63a VZ |
28838 | |
28839 | fi | |
28840 | ||
8284b0c5 | 28841 | |
1e6feb95 VZ |
28842 | USES_CONTROLS=0 |
28843 | if test "$wxUSE_CONTROLS" = "yes"; then | |
28844 | USES_CONTROLS=1 | |
28845 | fi | |
28846 | ||
10f2d63a | 28847 | if test "$wxUSE_ACCEL" = "yes"; then |
247f5006 | 28848 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28849 | #define wxUSE_ACCEL 1 |
247f5006 | 28850 | _ACEOF |
10f2d63a | 28851 | |
1e6feb95 VZ |
28852 | USES_CONTROLS=1 |
28853 | fi | |
28854 | ||
28855 | if test "$wxUSE_BUTTON" = "yes"; then | |
247f5006 | 28856 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 28857 | #define wxUSE_BUTTON 1 |
247f5006 | 28858 | _ACEOF |
1e6feb95 VZ |
28859 | |
28860 | USES_CONTROLS=1 | |
28861 | fi | |
28862 | ||
28863 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
247f5006 | 28864 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 28865 | #define wxUSE_BMPBUTTON 1 |
247f5006 | 28866 | _ACEOF |
1e6feb95 VZ |
28867 | |
28868 | USES_CONTROLS=1 | |
28869 | fi | |
28870 | ||
28871 | if test "$wxUSE_CALCTRL" = "yes"; then | |
247f5006 | 28872 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 28873 | #define wxUSE_CALENDARCTRL 1 |
247f5006 | 28874 | _ACEOF |
1e6feb95 VZ |
28875 | |
28876 | USES_CONTROLS=1 | |
28877 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
28878 | fi |
28879 | ||
28880 | if test "$wxUSE_CARET" = "yes"; then | |
247f5006 | 28881 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28882 | #define wxUSE_CARET 1 |
247f5006 | 28883 | _ACEOF |
10f2d63a | 28884 | |
1e6feb95 | 28885 | USES_CONTROLS=1 |
10f2d63a VZ |
28886 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
28887 | fi | |
28888 | ||
28889 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
247f5006 | 28890 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28891 | #define wxUSE_COMBOBOX 1 |
247f5006 | 28892 | _ACEOF |
10f2d63a | 28893 | |
1e6feb95 | 28894 | USES_CONTROLS=1 |
10f2d63a VZ |
28895 | fi |
28896 | ||
28897 | if test "$wxUSE_CHOICE" = "yes"; then | |
247f5006 | 28898 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28899 | #define wxUSE_CHOICE 1 |
247f5006 | 28900 | _ACEOF |
10f2d63a | 28901 | |
1e6feb95 | 28902 | USES_CONTROLS=1 |
10f2d63a VZ |
28903 | fi |
28904 | ||
28905 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
247f5006 | 28906 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28907 | #define wxUSE_CHECKBOX 1 |
247f5006 | 28908 | _ACEOF |
10f2d63a | 28909 | |
1e6feb95 | 28910 | USES_CONTROLS=1 |
10f2d63a VZ |
28911 | fi |
28912 | ||
28913 | if test "$wxUSE_CHECKLST" = "yes"; then | |
247f5006 | 28914 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28915 | #define wxUSE_CHECKLISTBOX 1 |
247f5006 | 28916 | _ACEOF |
10f2d63a | 28917 | |
1e6feb95 | 28918 | USES_CONTROLS=1 |
10f2d63a VZ |
28919 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
28920 | fi | |
28921 | ||
28922 | if test "$wxUSE_GAUGE" = "yes"; then | |
247f5006 | 28923 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28924 | #define wxUSE_GAUGE 1 |
247f5006 | 28925 | _ACEOF |
10f2d63a | 28926 | |
1e6feb95 | 28927 | USES_CONTROLS=1 |
10f2d63a VZ |
28928 | fi |
28929 | ||
d6a55c4b VZ |
28930 | if test "$wxUSE_NEW_GRID" = "yes"; then |
28931 | wxUSE_GRID="yes" | |
247f5006 | 28932 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 28933 | #define wxUSE_NEW_GRID 1 |
247f5006 | 28934 | _ACEOF |
10f2d63a | 28935 | |
1e6feb95 | 28936 | USES_CONTROLS=1 |
d6a55c4b | 28937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
28938 | fi |
28939 | ||
d6a55c4b | 28940 | if test "$wxUSE_GRID" = "yes"; then |
247f5006 | 28941 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 28942 | #define wxUSE_GRID 1 |
247f5006 | 28943 | _ACEOF |
10f2d63a | 28944 | |
1e6feb95 | 28945 | USES_CONTROLS=1 |
d6a55c4b | 28946 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
28947 | fi |
28948 | ||
28949 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
247f5006 | 28950 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28951 | #define wxUSE_IMAGLIST 1 |
247f5006 | 28952 | _ACEOF |
10f2d63a VZ |
28953 | |
28954 | fi | |
28955 | ||
28956 | if test "$wxUSE_LISTBOX" = "yes"; then | |
247f5006 | 28957 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28958 | #define wxUSE_LISTBOX 1 |
247f5006 | 28959 | _ACEOF |
10f2d63a | 28960 | |
1e6feb95 | 28961 | USES_CONTROLS=1 |
10f2d63a VZ |
28962 | fi |
28963 | ||
28964 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
28965 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
247f5006 | 28966 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28967 | #define wxUSE_LISTCTRL 1 |
247f5006 | 28968 | _ACEOF |
10f2d63a | 28969 | |
1e6feb95 | 28970 | USES_CONTROLS=1 |
10f2d63a VZ |
28971 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
28972 | else | |
247f5006 VZ |
28973 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
28974 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
28975 | fi |
28976 | fi | |
28977 | ||
28978 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
247f5006 | 28979 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28980 | #define wxUSE_NOTEBOOK 1 |
247f5006 | 28981 | _ACEOF |
10f2d63a | 28982 | |
1e6feb95 | 28983 | USES_CONTROLS=1 |
10f2d63a VZ |
28984 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
28985 | fi | |
28986 | ||
24176f2c | 28987 | if test "$wxUSE_PROPSHEET" = "yes"; then |
247f5006 | 28988 | cat >>confdefs.h <<\_ACEOF |
24176f2c | 28989 | #define wxUSE_PROPSHEET 1 |
247f5006 | 28990 | _ACEOF |
24176f2c GD |
28991 | |
28992 | USES_CONTROLS=1 | |
28993 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
28994 | fi | |
28995 | ||
10f2d63a | 28996 | if test "$wxUSE_RADIOBOX" = "yes"; then |
247f5006 | 28997 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 28998 | #define wxUSE_RADIOBOX 1 |
247f5006 | 28999 | _ACEOF |
10f2d63a | 29000 | |
1e6feb95 | 29001 | USES_CONTROLS=1 |
10f2d63a VZ |
29002 | fi |
29003 | ||
29004 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
247f5006 | 29005 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29006 | #define wxUSE_RADIOBTN 1 |
247f5006 | 29007 | _ACEOF |
10f2d63a | 29008 | |
1e6feb95 | 29009 | USES_CONTROLS=1 |
10f2d63a VZ |
29010 | fi |
29011 | ||
29012 | if test "$wxUSE_SASH" = "yes"; then | |
247f5006 | 29013 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29014 | #define wxUSE_SASH 1 |
247f5006 | 29015 | _ACEOF |
10f2d63a VZ |
29016 | |
29017 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
29018 | fi | |
29019 | ||
29020 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
247f5006 | 29021 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29022 | #define wxUSE_SCROLLBAR 1 |
247f5006 | 29023 | _ACEOF |
10f2d63a | 29024 | |
1e6feb95 | 29025 | USES_CONTROLS=1 |
741a9306 | 29026 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
29027 | fi |
29028 | ||
29029 | if test "$wxUSE_SLIDER" = "yes"; then | |
247f5006 | 29030 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29031 | #define wxUSE_SLIDER 1 |
247f5006 | 29032 | _ACEOF |
10f2d63a | 29033 | |
1e6feb95 | 29034 | USES_CONTROLS=1 |
10f2d63a VZ |
29035 | fi |
29036 | ||
29037 | if test "$wxUSE_SPINBTN" = "yes"; then | |
247f5006 | 29038 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29039 | #define wxUSE_SPINBTN 1 |
247f5006 | 29040 | _ACEOF |
10f2d63a | 29041 | |
1e6feb95 | 29042 | USES_CONTROLS=1 |
10f2d63a VZ |
29043 | fi |
29044 | ||
56cfaa52 | 29045 | if test "$wxUSE_SPINCTRL" = "yes"; then |
247f5006 | 29046 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 29047 | #define wxUSE_SPINCTRL 1 |
247f5006 | 29048 | _ACEOF |
56cfaa52 | 29049 | |
1e6feb95 | 29050 | USES_CONTROLS=1 |
56cfaa52 RR |
29051 | fi |
29052 | ||
10f2d63a | 29053 | if test "$wxUSE_SPLITTER" = "yes"; then |
247f5006 | 29054 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29055 | #define wxUSE_SPLITTER 1 |
247f5006 | 29056 | _ACEOF |
10f2d63a VZ |
29057 | |
29058 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
29059 | fi | |
29060 | ||
29061 | if test "$wxUSE_STATBMP" = "yes"; then | |
247f5006 | 29062 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29063 | #define wxUSE_STATBMP 1 |
247f5006 | 29064 | _ACEOF |
10f2d63a | 29065 | |
1e6feb95 | 29066 | USES_CONTROLS=1 |
10f2d63a VZ |
29067 | fi |
29068 | ||
29069 | if test "$wxUSE_STATBOX" = "yes"; then | |
247f5006 | 29070 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29071 | #define wxUSE_STATBOX 1 |
247f5006 | 29072 | _ACEOF |
10f2d63a | 29073 | |
1e6feb95 VZ |
29074 | USES_CONTROLS=1 |
29075 | fi | |
29076 | ||
29077 | if test "$wxUSE_STATTEXT" = "yes"; then | |
247f5006 | 29078 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29079 | #define wxUSE_STATTEXT 1 |
247f5006 | 29080 | _ACEOF |
1e6feb95 VZ |
29081 | |
29082 | USES_CONTROLS=1 | |
10f2d63a VZ |
29083 | fi |
29084 | ||
29085 | if test "$wxUSE_STATLINE" = "yes"; then | |
29086 | if test "$wxUSE_WINE" = 1 ; then | |
247f5006 VZ |
29087 | { echo "$as_me:$LINENO: WARNING: wxStaticLine is not supported under WINE" >&5 |
29088 | echo "$as_me: WARNING: wxStaticLine is not supported under WINE" >&2;} | |
10f2d63a | 29089 | else |
247f5006 | 29090 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29091 | #define wxUSE_STATLINE 1 |
247f5006 | 29092 | _ACEOF |
10f2d63a | 29093 | |
1e6feb95 | 29094 | USES_CONTROLS=1 |
10f2d63a VZ |
29095 | fi |
29096 | fi | |
29097 | ||
29098 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
247f5006 | 29099 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29100 | #define wxUSE_STATUSBAR 1 |
247f5006 | 29101 | _ACEOF |
10f2d63a | 29102 | |
1e6feb95 | 29103 | USES_CONTROLS=1 |
698dcdb6 | 29104 | |
2286341c | 29105 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
29106 | fi |
29107 | ||
29108 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
247f5006 | 29109 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29110 | #define wxUSE_TAB_DIALOG 1 |
247f5006 | 29111 | _ACEOF |
10f2d63a VZ |
29112 | |
29113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
29114 | fi | |
29115 | ||
1e6feb95 | 29116 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
247f5006 | 29117 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29118 | #define wxUSE_TEXTCTRL 1 |
247f5006 | 29119 | _ACEOF |
1e6feb95 VZ |
29120 | |
29121 | USES_CONTROLS=1 | |
29122 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
29123 | fi | |
29124 | ||
1db8dc4a | 29125 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 29126 | if test "$wxUSE_MAC" = 1; then |
247f5006 VZ |
29127 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
29128 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
29129 | wxUSE_TOGGLEBTN=no |
29130 | fi | |
29131 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
247f5006 VZ |
29132 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
29133 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
29134 | wxUSE_TOGGLEBTN=no |
29135 | fi | |
29136 | ||
29137 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
247f5006 | 29138 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 29139 | #define wxUSE_TOGGLEBTN 1 |
247f5006 | 29140 | _ACEOF |
1db8dc4a | 29141 | |
1e6feb95 | 29142 | USES_CONTROLS=1 |
a45d7ab7 | 29143 | fi |
1db8dc4a VZ |
29144 | fi |
29145 | ||
360d6699 | 29146 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
247f5006 | 29147 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 29148 | #define wxUSE_TOOLBAR_SIMPLE 1 |
247f5006 | 29149 | _ACEOF |
360d6699 VZ |
29150 | |
29151 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 29152 | USES_CONTROLS=1 |
360d6699 VZ |
29153 | fi |
29154 | ||
10f2d63a | 29155 | if test "$wxUSE_TOOLBAR" = "yes"; then |
247f5006 | 29156 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29157 | #define wxUSE_TOOLBAR 1 |
247f5006 | 29158 | _ACEOF |
10f2d63a | 29159 | |
1e6feb95 | 29160 | USES_CONTROLS=1 |
698dcdb6 | 29161 | |
360d6699 VZ |
29162 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
29163 | wxUSE_TOOLBAR_NATIVE="yes" | |
29164 | fi | |
29165 | ||
1e6feb95 | 29166 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
247f5006 | 29167 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 29168 | #define wxUSE_TOOLBAR_NATIVE 1 |
247f5006 | 29169 | _ACEOF |
360d6699 | 29170 | |
1e6feb95 VZ |
29171 | USES_CONTROLS=1 |
29172 | fi | |
29173 | ||
29174 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
29175 | fi |
29176 | ||
10f2d63a VZ |
29177 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
29178 | if test "$wxUSE_MOTIF" = 1; then | |
247f5006 VZ |
29179 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
29180 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a VZ |
29181 | else |
29182 | if test "$wxUSE_WINE" = 1; then | |
247f5006 VZ |
29183 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported under WINE... disabled" >&5 |
29184 | echo "$as_me: WARNING: wxTooltip not supported under WINE... disabled" >&2;} | |
10f2d63a | 29185 | else |
69d27ff7 | 29186 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
247f5006 VZ |
29187 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
29188 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
69d27ff7 | 29189 | else |
247f5006 | 29190 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29191 | #define wxUSE_TOOLTIPS 1 |
247f5006 | 29192 | _ACEOF |
10f2d63a | 29193 | |
69d27ff7 | 29194 | fi |
10f2d63a VZ |
29195 | fi |
29196 | fi | |
29197 | fi | |
29198 | ||
29199 | if test "$wxUSE_TREECTRL" = "yes"; then | |
29200 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
247f5006 | 29201 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29202 | #define wxUSE_TREECTRL 1 |
247f5006 | 29203 | _ACEOF |
10f2d63a | 29204 | |
1e6feb95 | 29205 | USES_CONTROLS=1 |
10f2d63a VZ |
29206 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
29207 | else | |
247f5006 VZ |
29208 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
29209 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
29210 | fi |
29211 | fi | |
29212 | ||
9f41d601 | 29213 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 29214 | if test "$wxUSE_MAC" = 1; then |
247f5006 VZ |
29215 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
29216 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 29217 | else |
485cf710 | 29218 | if test "$wxUSE_MOTIF" = 1; then |
247f5006 VZ |
29219 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
29220 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 29221 | else |
3c011993 | 29222 | if test "$wxUSE_PM" = 1; then |
247f5006 VZ |
29223 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
29224 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 29225 | else |
247f5006 | 29226 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 29227 | #define wxUSE_POPUPWIN 1 |
247f5006 | 29228 | _ACEOF |
9f41d601 | 29229 | |
8284b0c5 | 29230 | |
3c011993 VZ |
29231 | USES_CONTROLS=1 |
29232 | fi | |
485cf710 | 29233 | fi |
6abe4b65 | 29234 | fi |
9f41d601 RR |
29235 | fi |
29236 | ||
dd964dcc | 29237 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 29238 | if test "$wxUSE_PM" = 1; then |
247f5006 VZ |
29239 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
29240 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 29241 | else |
247f5006 | 29242 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 29243 | #define wxUSE_TIPWINDOW 1 |
247f5006 | 29244 | _ACEOF |
dd964dcc | 29245 | |
3c011993 | 29246 | fi |
dd964dcc VZ |
29247 | fi |
29248 | ||
1e6feb95 | 29249 | if test "$USES_CONTROLS" = 1; then |
247f5006 | 29250 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29251 | #define wxUSE_CONTROLS 1 |
247f5006 | 29252 | _ACEOF |
10f2d63a | 29253 | |
10f2d63a VZ |
29254 | fi |
29255 | ||
8284b0c5 | 29256 | |
24176f2c | 29257 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
247f5006 | 29258 | cat >>confdefs.h <<\_ACEOF |
24176f2c | 29259 | #define wxUSE_TREELAYOUT 1 |
247f5006 | 29260 | _ACEOF |
24176f2c GD |
29261 | |
29262 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
29263 | fi | |
1e6feb95 | 29264 | |
24fd6d87 | 29265 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
247f5006 | 29266 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 29267 | #define wxUSE_DRAGIMAGE 1 |
247f5006 | 29268 | _ACEOF |
24fd6d87 VZ |
29269 | |
29270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
29271 | fi | |
29272 | ||
1e6feb95 | 29273 | if test "$wxUSE_MENUS" = "yes"; then |
247f5006 | 29274 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29275 | #define wxUSE_MENUS 1 |
247f5006 | 29276 | _ACEOF |
10f2d63a | 29277 | |
1e6feb95 | 29278 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
29279 | fi |
29280 | ||
1e6feb95 | 29281 | if test "$wxUSE_METAFILE" = "yes"; then |
247f5006 | 29282 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29283 | #define wxUSE_METAFILE 1 |
247f5006 | 29284 | _ACEOF |
10f2d63a | 29285 | |
10f2d63a VZ |
29286 | fi |
29287 | ||
1e6feb95 | 29288 | if test "$wxUSE_MIMETYPE" = "yes"; then |
247f5006 | 29289 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29290 | #define wxUSE_MIMETYPE 1 |
247f5006 | 29291 | _ACEOF |
10f2d63a | 29292 | |
10f2d63a VZ |
29293 | fi |
29294 | ||
3e44f09d | 29295 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
247f5006 | 29296 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 29297 | #define wxUSE_SYSTEM_OPTIONS 1 |
247f5006 | 29298 | _ACEOF |
3e44f09d | 29299 | |
321d2b14 VZ |
29300 | if test "$TOOLKIT" = "MSW"; then |
29301 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
29302 | fi | |
29303 | ||
3e44f09d VZ |
29304 | fi |
29305 | ||
4cdb0ab0 | 29306 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 29307 | if test "$wxUSE_SOCKETS" != "yes"; then |
247f5006 VZ |
29308 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 |
29309 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
3954f9ca VS |
29310 | wxUSE_PROTOCOL=no |
29311 | fi | |
29312 | ||
29313 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
247f5006 | 29314 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 29315 | #define wxUSE_PROTOCOL 1 |
247f5006 | 29316 | _ACEOF |
4cdb0ab0 | 29317 | |
8284b0c5 | 29318 | |
3954f9ca | 29319 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
247f5006 | 29320 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 29321 | #define wxUSE_PROTOCOL_HTTP 1 |
247f5006 | 29322 | _ACEOF |
4cdb0ab0 | 29323 | |
3954f9ca VS |
29324 | fi |
29325 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
247f5006 | 29326 | cat >>confdefs.h <<\_ACEOF |
4cdb0ab0 | 29327 | #define wxUSE_PROTOCOL_FTP 1 |
247f5006 | 29328 | _ACEOF |
4cdb0ab0 | 29329 | |
3954f9ca VS |
29330 | fi |
29331 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
247f5006 | 29332 | cat >>confdefs.h <<\_ACEOF |
3954f9ca | 29333 | #define wxUSE_PROTOCOL_FILE 1 |
247f5006 | 29334 | _ACEOF |
3954f9ca VS |
29335 | |
29336 | fi | |
4cdb0ab0 | 29337 | fi |
3954f9ca VS |
29338 | fi |
29339 | ||
29340 | if test "$wxUSE_URL" = "yes"; then | |
29341 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
247f5006 VZ |
29342 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 |
29343 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
3954f9ca VS |
29344 | wxUSE_URL=no |
29345 | fi | |
29346 | if test "$wxUSE_URL" = "yes"; then | |
247f5006 | 29347 | cat >>confdefs.h <<\_ACEOF |
3954f9ca | 29348 | #define wxUSE_URL 1 |
247f5006 | 29349 | _ACEOF |
4cdb0ab0 VS |
29350 | |
29351 | fi | |
29352 | fi | |
29353 | ||
10f2d63a | 29354 | if test "$wxUSE_MINIFRAME" = "yes"; then |
247f5006 | 29355 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29356 | #define wxUSE_MINIFRAME 1 |
247f5006 | 29357 | _ACEOF |
10f2d63a VZ |
29358 | |
29359 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
29360 | fi | |
29361 | ||
29362 | if test "$wxUSE_HTML" = "yes"; then | |
247f5006 | 29363 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 29364 | #define wxUSE_HTML 1 |
247f5006 | 29365 | _ACEOF |
10f2d63a VZ |
29366 | |
29367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
29368 | fi |
29369 | ||
29370 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
247f5006 | 29371 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 29372 | #define wxUSE_VALIDATORS 1 |
247f5006 | 29373 | _ACEOF |
703e0a69 | 29374 | |
698dcdb6 VZ |
29375 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
29376 | fi | |
29377 | ||
edae8572 | 29378 | if test "$wxUSE_PALETTE" = "yes" ; then |
247f5006 | 29379 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 29380 | #define wxUSE_PALETTE 1 |
247f5006 | 29381 | _ACEOF |
edae8572 VZ |
29382 | |
29383 | fi | |
29384 | ||
698dcdb6 | 29385 | if test "$wxUSE_IMAGE" = "yes" ; then |
247f5006 | 29386 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 29387 | #define wxUSE_IMAGE 1 |
247f5006 | 29388 | _ACEOF |
698dcdb6 VZ |
29389 | |
29390 | fi | |
29391 | ||
29392 | if test "$wxUSE_GIF" = "yes" ; then | |
247f5006 | 29393 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 29394 | #define wxUSE_GIF 1 |
247f5006 | 29395 | _ACEOF |
698dcdb6 VZ |
29396 | |
29397 | fi | |
29398 | ||
29399 | if test "$wxUSE_PCX" = "yes" ; then | |
247f5006 | 29400 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 29401 | #define wxUSE_PCX 1 |
247f5006 | 29402 | _ACEOF |
698dcdb6 VZ |
29403 | |
29404 | fi | |
29405 | ||
4b6b4dfc | 29406 | if test "$wxUSE_IFF" = "yes" ; then |
247f5006 | 29407 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 29408 | #define wxUSE_IFF 1 |
247f5006 | 29409 | _ACEOF |
4b6b4dfc RR |
29410 | |
29411 | fi | |
29412 | ||
698dcdb6 | 29413 | if test "$wxUSE_PNM" = "yes" ; then |
247f5006 | 29414 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 29415 | #define wxUSE_PNM 1 |
247f5006 | 29416 | _ACEOF |
698dcdb6 VZ |
29417 | |
29418 | fi | |
29419 | ||
29420 | if test "$wxUSE_XPM" = "yes" ; then | |
247f5006 | 29421 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 29422 | #define wxUSE_XPM 1 |
247f5006 | 29423 | _ACEOF |
698dcdb6 VZ |
29424 | |
29425 | fi | |
29426 | ||
658974ae | 29427 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
247f5006 | 29428 | cat >>confdefs.h <<\_ACEOF |
658974ae | 29429 | #define wxUSE_ICO_CUR 1 |
247f5006 | 29430 | _ACEOF |
658974ae VS |
29431 | |
29432 | fi | |
29433 | ||
a72a4bfa VS |
29434 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
29435 | LIBS=" -lunicows $LIBS" | |
29436 | fi | |
29437 | ||
8284b0c5 | 29438 | |
1e6feb95 | 29439 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
247f5006 | 29440 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29441 | #define wxUSE_CHOICEDLG 1 |
247f5006 | 29442 | _ACEOF |
1e6feb95 VZ |
29443 | |
29444 | fi | |
29445 | ||
29446 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
247f5006 | 29447 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29448 | #define wxUSE_COLOURDLG 1 |
247f5006 | 29449 | _ACEOF |
1e6feb95 VZ |
29450 | |
29451 | fi | |
29452 | ||
29453 | if test "$wxUSE_FILEDLG" = "yes"; then | |
247f5006 | 29454 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29455 | #define wxUSE_FILEDLG 1 |
247f5006 | 29456 | _ACEOF |
1e6feb95 VZ |
29457 | |
29458 | fi | |
29459 | ||
8db37e06 | 29460 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
247f5006 | 29461 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 29462 | #define wxUSE_FINDREPLDLG 1 |
247f5006 | 29463 | _ACEOF |
8db37e06 VZ |
29464 | |
29465 | fi | |
29466 | ||
1e6feb95 | 29467 | if test "$wxUSE_FONTDLG" = "yes"; then |
247f5006 | 29468 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29469 | #define wxUSE_FONTDLG 1 |
247f5006 | 29470 | _ACEOF |
1e6feb95 VZ |
29471 | |
29472 | fi | |
29473 | ||
29474 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 29475 | if test "$wxUSE_TREECTRL" != "yes"; then |
247f5006 VZ |
29476 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
29477 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 29478 | else |
247f5006 | 29479 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29480 | #define wxUSE_DIRDLG 1 |
247f5006 | 29481 | _ACEOF |
1e6feb95 | 29482 | |
1e6feb95 VZ |
29483 | fi |
29484 | fi | |
29485 | ||
29486 | if test "$wxUSE_MSGDLG" = "yes"; then | |
247f5006 | 29487 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29488 | #define wxUSE_MSGDLG 1 |
247f5006 | 29489 | _ACEOF |
1e6feb95 VZ |
29490 | |
29491 | fi | |
29492 | ||
29493 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
247f5006 | 29494 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29495 | #define wxUSE_NUMBERDLG 1 |
247f5006 | 29496 | _ACEOF |
1e6feb95 VZ |
29497 | |
29498 | fi | |
29499 | ||
29500 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
29501 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
247f5006 VZ |
29502 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
29503 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 29504 | else |
247f5006 | 29505 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29506 | #define wxUSE_PROGRESSDLG 1 |
247f5006 | 29507 | _ACEOF |
1e6feb95 VZ |
29508 | |
29509 | fi | |
29510 | fi | |
29511 | ||
cbca9943 | 29512 | if test "$wxUSE_SPLASH" = "yes"; then |
247f5006 | 29513 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 29514 | #define wxUSE_SPLASH 1 |
247f5006 | 29515 | _ACEOF |
cbca9943 VZ |
29516 | |
29517 | fi | |
29518 | ||
1e6feb95 VZ |
29519 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
29520 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
247f5006 VZ |
29521 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
29522 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 29523 | else |
247f5006 | 29524 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 29525 | #define wxUSE_STARTUP_TIPS 1 |
247f5006 | 29526 | _ACEOF |
1e6feb95 | 29527 | |
7b4a847f RR |
29528 | fi |
29529 | fi | |
579d8138 | 29530 | |
8284b0c5 | 29531 | if test "$wxUSE_TEXTDLG" = "yes"; then |
247f5006 | 29532 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 29533 | #define wxUSE_TEXTDLG 1 |
247f5006 | 29534 | _ACEOF |
8284b0c5 MB |
29535 | |
29536 | fi | |
29537 | ||
29538 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
247f5006 | 29539 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 29540 | #define wxUSE_WIZARDDLG 1 |
247f5006 | 29541 | _ACEOF |
8284b0c5 MB |
29542 | |
29543 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
29544 | fi | |
29545 | ||
29546 | ||
29547 | if test "$cross_compiling" = "yes"; then | |
29548 | OSINFO="\"$host\"" | |
29549 | else | |
29550 | OSINFO=`uname -s -r -m` | |
29551 | OSINFO="\"$OSINFO\"" | |
29552 | fi | |
29553 | ||
247f5006 | 29554 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 29555 | #define WXWIN_OS_DESCRIPTION $OSINFO |
247f5006 | 29556 | _ACEOF |
8284b0c5 MB |
29557 | |
29558 | ||
29559 | ||
29560 | if test "x$prefix" != "xNONE"; then | |
29561 | wxPREFIX=$prefix | |
29562 | else | |
29563 | wxPREFIX=$ac_default_prefix | |
29564 | fi | |
29565 | ||
247f5006 | 29566 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 29567 | #define wxINSTALL_PREFIX "$wxPREFIX" |
247f5006 | 29568 | _ACEOF |
8284b0c5 MB |
29569 | |
29570 | ||
29571 | ||
29572 | ||
29573 | ||
29574 | if test "$wxUSE_MAC" = 1 ; then | |
29575 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
29576 | fi | |
29577 | ||
29578 | ||
29579 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
29580 | ||
29581 | if test "$wxUSE_GUI" = "yes"; then | |
29582 | ||
29583 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
29584 | ||
247f5006 | 29585 | |
8284b0c5 MB |
29586 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
29587 | drawing dynamic erase event exec font image \ | |
29588 | minimal propsize rotate widgets" | |
29589 | ||
29590 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
29591 | else | |
29592 | SAMPLES_SUBDIRS="console" | |
29593 | fi | |
29594 | ||
29595 | ||
29596 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
29597 | -I\${top_srcdir}/include \ | |
29598 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
29599 | $TOOLKIT_INCLUDE" | |
29600 | ||
29601 | if test "$wxUSE_GTK" = 1; then | |
29602 | WXCONFIG_INCLUDE= | |
29603 | else | |
29604 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
29605 | fi | |
29606 | ||
29607 | if test "$GXX" = yes ; then | |
29608 | CXXWARNINGS="-Wall" | |
247f5006 | 29609 | |
8284b0c5 MB |
29610 | if test "$wxUSE_NO_DEPS" = "no" ; then |
29611 | CFLAGS="-MMD $CFLAGS" | |
29612 | CXXFLAGS="-MMD $CXXFLAGS" | |
29613 | fi | |
29614 | fi | |
29615 | ||
29616 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
29617 | ||
29618 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
29619 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
29620 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
29621 | ||
29622 | LDFLAGS="$LDFLAGS $PROFILE" | |
29623 | ||
29624 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
29625 | ||
29626 | ||
29627 | ||
29628 | ||
29629 | ||
29630 | ||
29631 | ||
29632 | ||
29633 | ||
29634 | ||
29635 | ||
29636 | ||
29637 | ||
29638 | ||
29639 | ||
29640 | ||
29641 | ||
29642 | ||
29643 | ||
29644 | ||
29645 | ||
29646 | ||
29647 | ||
29648 | ||
29649 | ||
29650 | ||
29651 | ||
29652 | ||
29653 | ||
29654 | ||
29655 | ||
29656 | ||
29657 | ||
29658 | ||
29659 | ||
29660 | ||
29661 | ||
29662 | ||
29663 | ||
29664 | ||
29665 | ||
29666 | ||
29667 | ||
29668 | ||
29669 | ||
29670 | ||
29671 | ||
29672 | ||
29673 | ||
29674 | ||
29675 | ||
29676 | ||
29677 | ||
29678 | ||
29679 | ||
29680 | ||
29681 | ||
29682 | ||
29683 | ||
29684 | ||
29685 | ||
29686 | ||
29687 | ||
29688 | ||
29689 | ||
29690 | ||
29691 | ||
29692 | ||
2f51a9ec GD |
29693 | |
29694 | ||
29695 | ||
29696 | ||
f6bcfd97 | 29697 | |
dad6c0ea | 29698 | |
caa2c79b | 29699 | |
3711412e | 29700 | |
1e6feb95 VZ |
29701 | |
29702 | ||
885d4bf5 VS |
29703 | |
29704 | ||
29705 | ||
29706 | ||
9b695262 VZ |
29707 | |
29708 | ||
62d0491b | 29709 | |
ef7f2189 | 29710 | |
40f7145c | 29711 | |
3bd8fb5f | 29712 | |
10f2d63a VZ |
29713 | |
29714 | ||
247f5006 VZ |
29715 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
29716 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 | |
29717 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
29718 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
29719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 29720 | else |
247f5006 | 29721 | cat >conftest.make <<\_ACEOF |
10f2d63a VZ |
29722 | all: |
29723 | @echo 'ac_maketemp="${MAKE}"' | |
247f5006 | 29724 | _ACEOF |
10f2d63a | 29725 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
247f5006 | 29726 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
10f2d63a VZ |
29727 | if test -n "$ac_maketemp"; then |
29728 | eval ac_cv_prog_make_${ac_make}_set=yes | |
29729 | else | |
29730 | eval ac_cv_prog_make_${ac_make}_set=no | |
29731 | fi | |
247f5006 | 29732 | rm -f conftest.make |
10f2d63a VZ |
29733 | fi |
29734 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
247f5006 VZ |
29735 | echo "$as_me:$LINENO: result: yes" >&5 |
29736 | echo "${ECHO_T}yes" >&6 | |
10f2d63a VZ |
29737 | SET_MAKE= |
29738 | else | |
247f5006 VZ |
29739 | echo "$as_me:$LINENO: result: no" >&5 |
29740 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
29741 | SET_MAKE="MAKE=${MAKE-make}" |
29742 | fi | |
29743 | ||
8284b0c5 | 29744 | |
3a922bb4 RL |
29745 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
29746 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 29747 | fi |
665bbe97 | 29748 | |
247f5006 | 29749 | ac_config_headers="$ac_config_headers setup.h:setup.h.in" |
8284b0c5 | 29750 | |
10f2d63a | 29751 | |
57973b9c VZ |
29752 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
29753 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
29754 | wx_cv_path_ifs=$PATH_IFS | |
29755 | wx_cv_program_ext=$PROGRAM_EXT | |
29756 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
29757 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
29758 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
29759 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
29760 | wx_cv_path_ifs wx_cv_program_ext \ | |
29761 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
29762 | ||
8284b0c5 | 29763 | |
10f2d63a | 29764 | |
247f5006 VZ |
29765 | subdirs="$subdirs demos samples utils contrib" |
29766 | ||
29767 | ||
29768 | ac_config_files="$ac_config_files wx-config src/make.env src/makeprog.env src/makelib.env Makefile" | |
29769 | ac_config_commands="$ac_config_commands default" | |
29770 | cat >confcache <<\_ACEOF | |
10f2d63a VZ |
29771 | # This file is a shell script that caches the results of configure |
29772 | # tests run on this system so they can be shared between configure | |
247f5006 VZ |
29773 | # scripts and configure runs, see configure's option --config-cache. |
29774 | # It is not useful on other systems. If it contains results you don't | |
29775 | # want to keep, you may remove or edit it. | |
10f2d63a | 29776 | # |
247f5006 VZ |
29777 | # config.status only pays attention to the cache file if you give it |
29778 | # the --recheck option to rerun configure. | |
10f2d63a | 29779 | # |
247f5006 VZ |
29780 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
29781 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
29782 | # following values. | |
29783 | ||
29784 | _ACEOF | |
29785 | ||
10f2d63a VZ |
29786 | # The following way of writing the cache mishandles newlines in values, |
29787 | # but we know of no workaround that is simple, portable, and efficient. | |
29788 | # So, don't put newlines in cache variables' values. | |
29789 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
29790 | # and sets the high bit in the cache file unless we assign to the vars. | |
247f5006 VZ |
29791 | { |
29792 | (set) 2>&1 | | |
29793 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
29794 | *ac_space=\ *) | |
29795 | # `set' does not quote correctly, so add quotes (double-quote | |
29796 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
29797 | sed -n \ | |
29798 | "s/'/'\\\\''/g; | |
29799 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
29800 | ;; | |
29801 | *) | |
29802 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
29803 | sed -n \ | |
29804 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
29805 | ;; | |
29806 | esac; | |
29807 | } | | |
29808 | sed ' | |
29809 | t clear | |
29810 | : clear | |
29811 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
29812 | t end | |
29813 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
29814 | : end' >>confcache | |
29815 | if cmp -s $cache_file confcache; then :; else | |
10f2d63a | 29816 | if test -w $cache_file; then |
247f5006 VZ |
29817 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
29818 | cat confcache >$cache_file | |
10f2d63a VZ |
29819 | else |
29820 | echo "not updating unwritable cache $cache_file" | |
29821 | fi | |
29822 | fi | |
29823 | rm -f confcache | |
29824 | ||
10f2d63a VZ |
29825 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
29826 | # Let make expand exec_prefix. | |
29827 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
29828 | ||
247f5006 VZ |
29829 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
29830 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
29831 | # trailing colons and then remove the whole line if VPATH becomes empty | |
29832 | # (actually we leave an empty line to preserve line numbers). | |
10f2d63a | 29833 | if test "x$srcdir" = x.; then |
247f5006 VZ |
29834 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
29835 | s/:*\$(srcdir):*/:/; | |
29836 | s/:*\${srcdir}:*/:/; | |
29837 | s/:*@srcdir@:*/:/; | |
29838 | s/^\([^=]*=[ ]*\):*/\1/; | |
29839 | s/:*$//; | |
29840 | s/^[^=]*=[ ]*$//; | |
29841 | }' | |
10f2d63a VZ |
29842 | fi |
29843 | ||
10f2d63a VZ |
29844 | DEFS=-DHAVE_CONFIG_H |
29845 | ||
8284b0c5 | 29846 | |
247f5006 VZ |
29847 | : ${CONFIG_STATUS=./config.status} |
29848 | ac_clean_files_save=$ac_clean_files | |
29849 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
29850 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
29851 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
29852 | cat >$CONFIG_STATUS <<_ACEOF | |
29853 | #! $SHELL | |
29854 | # Generated by $as_me. | |
10f2d63a | 29855 | # Run this file to recreate the current configuration. |
8284b0c5 | 29856 | # Compiler output produced by configure, useful for debugging |
247f5006 | 29857 | # configure, is in config.log if it exists. |
52127426 | 29858 | |
247f5006 VZ |
29859 | debug=false |
29860 | SHELL=\${CONFIG_SHELL-$SHELL} | |
29861 | _ACEOF | |
29862 | ||
29863 | cat >>$CONFIG_STATUS <<\_ACEOF | |
29864 | ||
29865 | ## --------------------- ## | |
29866 | ## M4sh Initialization. ## | |
29867 | ## --------------------- ## | |
29868 | ||
29869 | # Be Bourne compatible | |
29870 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
29871 | emulate sh | |
29872 | NULLCMD=: | |
29873 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
29874 | set -o posix | |
29875 | fi | |
29876 | ||
29877 | # NLS nuisances. | |
29878 | # Support unset when possible. | |
29879 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
29880 | as_unset=unset | |
29881 | else | |
29882 | as_unset=false | |
29883 | fi | |
29884 | ||
29885 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
29886 | { $as_unset LANG || test "${LANG+set}" != set; } || | |
29887 | { LANG=C; export LANG; } | |
29888 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
29889 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
29890 | { LC_ALL=C; export LC_ALL; } | |
29891 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
29892 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
29893 | { LC_TIME=C; export LC_TIME; } | |
29894 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
29895 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
29896 | { LC_CTYPE=C; export LC_CTYPE; } | |
29897 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
29898 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
29899 | { LANGUAGE=C; export LANGUAGE; } | |
29900 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
29901 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
29902 | { LC_COLLATE=C; export LC_COLLATE; } | |
29903 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
29904 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
29905 | { LC_NUMERIC=C; export LC_NUMERIC; } | |
29906 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
29907 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
29908 | { LC_MESSAGES=C; export LC_MESSAGES; } | |
29909 | ||
29910 | ||
29911 | # Name of the executable. | |
29912 | as_me=`(basename "$0") 2>/dev/null || | |
29913 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
29914 | X"$0" : 'X\(//\)$' \| \ | |
29915 | X"$0" : 'X\(/\)$' \| \ | |
29916 | . : '\(.\)' 2>/dev/null || | |
29917 | echo X/"$0" | | |
29918 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
29919 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
29920 | /^X\/\(\/\).*/{ s//\1/; q; } | |
29921 | s/.*/./; q'` | |
29922 | ||
29923 | # PATH needs CR, and LINENO needs CR and PATH. | |
29924 | # Avoid depending upon Character Ranges. | |
29925 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
29926 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
29927 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
29928 | as_cr_digits='0123456789' | |
29929 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
29930 | ||
29931 | # The user is always right. | |
29932 | if test "${PATH_SEPARATOR+set}" != set; then | |
29933 | echo "#! /bin/sh" >conftest.sh | |
29934 | echo "exit 0" >>conftest.sh | |
29935 | chmod +x conftest.sh | |
29936 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
29937 | PATH_SEPARATOR=';' | |
29938 | else | |
29939 | PATH_SEPARATOR=: | |
29940 | fi | |
29941 | rm -f conftest.sh | |
29942 | fi | |
29943 | ||
29944 | ||
29945 | as_lineno_1=$LINENO | |
29946 | as_lineno_2=$LINENO | |
29947 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
29948 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
29949 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
29950 | # Find who we are. Look in the path if we contain no path at all | |
29951 | # relative or not. | |
29952 | case $0 in | |
29953 | *[\\/]* ) as_myself=$0 ;; | |
29954 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29955 | for as_dir in $PATH | |
5c6fa7d2 | 29956 | do |
247f5006 VZ |
29957 | IFS=$as_save_IFS |
29958 | test -z "$as_dir" && as_dir=. | |
29959 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
29960 | done | |
29961 | ||
29962 | ;; | |
5c6fa7d2 | 29963 | esac |
247f5006 VZ |
29964 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
29965 | # in which case we are not to be found in the path. | |
29966 | if test "x$as_myself" = x; then | |
29967 | as_myself=$0 | |
29968 | fi | |
29969 | if test ! -f "$as_myself"; then | |
29970 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
29971 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
29972 | { (exit 1); exit 1; }; } | |
29973 | fi | |
29974 | case $CONFIG_SHELL in | |
29975 | '') | |
29976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29977 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
29978 | do | |
29979 | IFS=$as_save_IFS | |
29980 | test -z "$as_dir" && as_dir=. | |
29981 | for as_base in sh bash ksh sh5; do | |
29982 | case $as_dir in | |
29983 | /*) | |
29984 | if ("$as_dir/$as_base" -c ' | |
29985 | as_lineno_1=$LINENO | |
29986 | as_lineno_2=$LINENO | |
29987 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
29988 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
29989 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
29990 | CONFIG_SHELL=$as_dir/$as_base | |
29991 | export CONFIG_SHELL | |
29992 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
29993 | fi;; | |
29994 | esac | |
29995 | done | |
52127426 | 29996 | done |
247f5006 VZ |
29997 | ;; |
29998 | esac | |
5c6fa7d2 | 29999 | |
247f5006 VZ |
30000 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
30001 | # uniformly replaced by the line number. The first 'sed' inserts a | |
30002 | # line-number line before each line; the second 'sed' does the real | |
30003 | # work. The second script uses 'N' to pair each line-number line | |
30004 | # with the numbered line, and appends trailing '-' during | |
30005 | # substitution so that $LINENO is not a special case at line end. | |
30006 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
30007 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
30008 | sed '=' <$as_myself | | |
30009 | sed ' | |
30010 | N | |
30011 | s,$,-, | |
30012 | : loop | |
30013 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
30014 | t loop | |
30015 | s,-$,, | |
30016 | s,^['$as_cr_digits']*\n,, | |
30017 | ' >$as_me.lineno && | |
30018 | chmod +x $as_me.lineno || | |
30019 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
30020 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
30021 | { (exit 1); exit 1; }; } | |
30022 | ||
30023 | # Don't try to exec as it changes $[0], causing all sort of problems | |
30024 | # (the dirname of $[0] is not the place where we might find the | |
30025 | # original and so on. Autoconf is especially sensible to this). | |
30026 | . ./$as_me.lineno | |
30027 | # Exit status is that of the last command. | |
30028 | exit | |
30029 | } | |
5c6fa7d2 | 30030 | |
5c6fa7d2 | 30031 | |
247f5006 VZ |
30032 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
30033 | *c*,-n*) ECHO_N= ECHO_C=' | |
30034 | ' ECHO_T=' ' ;; | |
30035 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
30036 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
30037 | esac | |
5c6fa7d2 | 30038 | |
247f5006 VZ |
30039 | if expr a : '\(a\)' >/dev/null 2>&1; then |
30040 | as_expr=expr | |
30041 | else | |
30042 | as_expr=false | |
30043 | fi | |
52127426 | 30044 | |
247f5006 VZ |
30045 | rm -f conf$$ conf$$.exe conf$$.file |
30046 | echo >conf$$.file | |
30047 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
30048 | # We could just check for DJGPP; but this test a) works b) is more generic | |
30049 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
30050 | if test -f conf$$.exe; then | |
30051 | # Don't use ln at all; we don't have any links | |
30052 | as_ln_s='cp -p' | |
8284b0c5 | 30053 | else |
247f5006 | 30054 | as_ln_s='ln -s' |
8284b0c5 | 30055 | fi |
247f5006 VZ |
30056 | elif ln conf$$.file conf$$ 2>/dev/null; then |
30057 | as_ln_s=ln | |
30058 | else | |
30059 | as_ln_s='cp -p' | |
8284b0c5 | 30060 | fi |
247f5006 | 30061 | rm -f conf$$ conf$$.exe conf$$.file |
8284b0c5 | 30062 | |
247f5006 | 30063 | as_executable_p="test -f" |
698dcdb6 | 30064 | |
247f5006 VZ |
30065 | # Sed expression to map a string onto a valid CPP name. |
30066 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
30067 | ||
30068 | # Sed expression to map a string onto a valid variable name. | |
30069 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
30070 | ||
30071 | ||
30072 | # IFS | |
30073 | # We need space, tab and new line, in precisely that order. | |
30074 | as_nl=' | |
30075 | ' | |
30076 | IFS=" $as_nl" | |
30077 | ||
30078 | # CDPATH. | |
30079 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
30080 | ||
30081 | exec 6>&1 | |
30082 | ||
30083 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
30084 | # report actual input values of CONFIG_FILES etc. instead of their | |
30085 | # values after options handling. Logging --version etc. is OK. | |
30086 | exec 5>>config.log | |
30087 | { | |
30088 | echo | |
30089 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
30090 | ## Running $as_me. ## | |
30091 | _ASBOX | |
30092 | } >&5 | |
30093 | cat >&5 <<_CSEOF | |
30094 | ||
30095 | This file was extended by $as_me, which was | |
30096 | generated by GNU Autoconf 2.53. Invocation command line was | |
30097 | ||
30098 | CONFIG_FILES = $CONFIG_FILES | |
30099 | CONFIG_HEADERS = $CONFIG_HEADERS | |
30100 | CONFIG_LINKS = $CONFIG_LINKS | |
30101 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
30102 | $ $0 $@ | |
30103 | ||
30104 | _CSEOF | |
30105 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
30106 | echo >&5 | |
30107 | _ACEOF | |
30108 | ||
30109 | # Files that config.status was made for. | |
30110 | if test -n "$ac_config_files"; then | |
30111 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
30112 | fi | |
30113 | ||
30114 | if test -n "$ac_config_headers"; then | |
30115 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
30116 | fi | |
30117 | ||
30118 | if test -n "$ac_config_links"; then | |
30119 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
30120 | fi | |
30121 | ||
30122 | if test -n "$ac_config_commands"; then | |
30123 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
30124 | fi | |
30125 | ||
30126 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30127 | ||
30128 | ac_cs_usage="\ | |
30129 | \`$as_me' instantiates files from templates according to the | |
30130 | current configuration. | |
30131 | ||
30132 | Usage: $0 [OPTIONS] [FILE]... | |
30133 | ||
30134 | -h, --help print this help, then exit | |
30135 | -V, --version print version number, then exit | |
30136 | -d, --debug don't remove temporary files | |
30137 | --recheck update $as_me by reconfiguring in the same conditions | |
30138 | --file=FILE[:TEMPLATE] | |
30139 | instantiate the configuration file FILE | |
30140 | --header=FILE[:TEMPLATE] | |
30141 | instantiate the configuration header FILE | |
30142 | ||
30143 | Configuration files: | |
30144 | $config_files | |
30145 | ||
30146 | Configuration headers: | |
30147 | $config_headers | |
30148 | ||
30149 | Configuration commands: | |
30150 | $config_commands | |
30151 | ||
30152 | Report bugs to <bug-autoconf@gnu.org>." | |
30153 | _ACEOF | |
30154 | ||
30155 | cat >>$CONFIG_STATUS <<_ACEOF | |
30156 | ac_cs_version="\\ | |
30157 | config.status | |
30158 | configured by $0, generated by GNU Autoconf 2.53, | |
30159 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
30160 | ||
30161 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
30162 | Free Software Foundation, Inc. | |
30163 | This config.status script is free software; the Free Software Foundation | |
30164 | gives unlimited permission to copy, distribute and modify it." | |
30165 | srcdir=$srcdir | |
30166 | INSTALL="$INSTALL" | |
30167 | _ACEOF | |
30168 | ||
30169 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30170 | # If no file are specified by the user, then we need to provide default | |
30171 | # value. By we need to know if files were specified by the user. | |
30172 | ac_need_defaults=: | |
30173 | while test $# != 0 | |
30174 | do | |
30175 | case $1 in | |
30176 | --*=*) | |
30177 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
30178 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
30179 | shift | |
30180 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
30181 | shift | |
30182 | ;; | |
30183 | -*);; | |
30184 | *) # This is not an option, so the user has probably given explicit | |
30185 | # arguments. | |
30186 | ac_need_defaults=false;; | |
10f2d63a VZ |
30187 | esac |
30188 | ||
247f5006 VZ |
30189 | case $1 in |
30190 | # Handling of the options. | |
30191 | _ACEOF | |
30192 | cat >>$CONFIG_STATUS <<_ACEOF | |
30193 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
30194 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
30195 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
30196 | _ACEOF | |
30197 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30198 | --version | --vers* | -V ) | |
30199 | echo "$ac_cs_version"; exit 0 ;; | |
30200 | --he | --h) | |
30201 | # Conflict between --help and --header | |
30202 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
30203 | Try \`$0 --help' for more information." >&5 | |
30204 | echo "$as_me: error: ambiguous option: $1 | |
30205 | Try \`$0 --help' for more information." >&2;} | |
30206 | { (exit 1); exit 1; }; };; | |
30207 | --help | --hel | -h ) | |
30208 | echo "$ac_cs_usage"; exit 0 ;; | |
30209 | --debug | --d* | -d ) | |
30210 | debug=: ;; | |
30211 | --file | --fil | --fi | --f ) | |
30212 | shift | |
30213 | CONFIG_FILES="$CONFIG_FILES $1" | |
30214 | ac_need_defaults=false;; | |
30215 | --header | --heade | --head | --hea ) | |
30216 | shift | |
30217 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
30218 | ac_need_defaults=false;; | |
30219 | ||
30220 | # This is an error. | |
30221 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
30222 | Try \`$0 --help' for more information." >&5 | |
30223 | echo "$as_me: error: unrecognized option: $1 | |
30224 | Try \`$0 --help' for more information." >&2;} | |
30225 | { (exit 1); exit 1; }; } ;; | |
5c6fa7d2 | 30226 | |
247f5006 VZ |
30227 | *) ac_config_targets="$ac_config_targets $1" ;; |
30228 | ||
30229 | esac | |
30230 | shift | |
30231 | done | |
30232 | ||
30233 | _ACEOF | |
30234 | ||
30235 | cat >>$CONFIG_STATUS <<_ACEOF | |
30236 | # | |
30237 | # INIT-COMMANDS section. | |
30238 | # | |
30239 | ||
30240 | ||
30241 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
30242 | LN_S="${LN_S}" | |
30243 | ||
30244 | ||
30245 | ||
30246 | _ACEOF | |
30247 | ||
30248 | ||
30249 | ||
30250 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30251 | for ac_config_target in $ac_config_targets | |
30252 | do | |
30253 | case "$ac_config_target" in | |
30254 | # Handling of arguments. | |
30255 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
30256 | "src/make.env" ) CONFIG_FILES="$CONFIG_FILES src/make.env" ;; | |
30257 | "src/makeprog.env" ) CONFIG_FILES="$CONFIG_FILES src/makeprog.env" ;; | |
30258 | "src/makelib.env" ) CONFIG_FILES="$CONFIG_FILES src/makelib.env" ;; | |
30259 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
30260 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
30261 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h:setup.h.in" ;; | |
30262 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
30263 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
30264 | { (exit 1); exit 1; }; };; | |
30265 | esac | |
30266 | done | |
30267 | ||
30268 | # If the user did not use the arguments to specify the items to instantiate, | |
30269 | # then the envvar interface is used. Set only those that are not. | |
30270 | # We use the long form for the default assignment because of an extremely | |
30271 | # bizarre bug on SunOS 4.1.3. | |
30272 | if $ac_need_defaults; then | |
30273 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
30274 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
30275 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
30276 | fi | |
30277 | ||
30278 | # Create a temporary directory, and hook for its removal unless debugging. | |
30279 | $debug || | |
30280 | { | |
30281 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
30282 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
30283 | } | |
30284 | ||
30285 | # Create a (secure) tmp directory for tmp files. | |
30286 | : ${TMPDIR=/tmp} | |
30287 | { | |
30288 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
30289 | test -n "$tmp" && test -d "$tmp" | |
30290 | } || | |
30291 | { | |
30292 | tmp=$TMPDIR/cs$$-$RANDOM | |
30293 | (umask 077 && mkdir $tmp) | |
30294 | } || | |
30295 | { | |
30296 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
30297 | { (exit 1); exit 1; } | |
30298 | } | |
30299 | ||
30300 | _ACEOF | |
30301 | ||
30302 | cat >>$CONFIG_STATUS <<_ACEOF | |
30303 | ||
30304 | # | |
30305 | # CONFIG_FILES section. | |
30306 | # | |
30307 | ||
30308 | # No need to generate the scripts if there are no CONFIG_FILES. | |
30309 | # This happens for instance when ./config.status config.h | |
30310 | if test -n "\$CONFIG_FILES"; then | |
30311 | # Protect against being on the right side of a sed subst in config.status. | |
30312 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
30313 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
30314 | s,@SHELL@,$SHELL,;t t | |
30315 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
30316 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
30317 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
30318 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
30319 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
30320 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
30321 | s,@exec_prefix@,$exec_prefix,;t t | |
30322 | s,@prefix@,$prefix,;t t | |
30323 | s,@program_transform_name@,$program_transform_name,;t t | |
30324 | s,@bindir@,$bindir,;t t | |
30325 | s,@sbindir@,$sbindir,;t t | |
30326 | s,@libexecdir@,$libexecdir,;t t | |
30327 | s,@datadir@,$datadir,;t t | |
30328 | s,@sysconfdir@,$sysconfdir,;t t | |
30329 | s,@sharedstatedir@,$sharedstatedir,;t t | |
30330 | s,@localstatedir@,$localstatedir,;t t | |
30331 | s,@libdir@,$libdir,;t t | |
30332 | s,@includedir@,$includedir,;t t | |
30333 | s,@oldincludedir@,$oldincludedir,;t t | |
30334 | s,@infodir@,$infodir,;t t | |
30335 | s,@mandir@,$mandir,;t t | |
30336 | s,@build_alias@,$build_alias,;t t | |
30337 | s,@host_alias@,$host_alias,;t t | |
30338 | s,@target_alias@,$target_alias,;t t | |
30339 | s,@DEFS@,$DEFS,;t t | |
30340 | s,@ECHO_C@,$ECHO_C,;t t | |
30341 | s,@ECHO_N@,$ECHO_N,;t t | |
30342 | s,@ECHO_T@,$ECHO_T,;t t | |
30343 | s,@LIBS@,$LIBS,;t t | |
30344 | s,@build@,$build,;t t | |
30345 | s,@build_cpu@,$build_cpu,;t t | |
30346 | s,@build_vendor@,$build_vendor,;t t | |
30347 | s,@build_os@,$build_os,;t t | |
30348 | s,@host@,$host,;t t | |
30349 | s,@host_cpu@,$host_cpu,;t t | |
30350 | s,@host_vendor@,$host_vendor,;t t | |
30351 | s,@host_os@,$host_os,;t t | |
30352 | s,@target@,$target,;t t | |
30353 | s,@target_cpu@,$target_cpu,;t t | |
30354 | s,@target_vendor@,$target_vendor,;t t | |
30355 | s,@target_os@,$target_os,;t t | |
30356 | s,@CC@,$CC,;t t | |
30357 | s,@CFLAGS@,$CFLAGS,;t t | |
30358 | s,@LDFLAGS@,$LDFLAGS,;t t | |
30359 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
30360 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
30361 | s,@EXEEXT@,$EXEEXT,;t t | |
30362 | s,@OBJEXT@,$OBJEXT,;t t | |
30363 | s,@CPP@,$CPP,;t t | |
30364 | s,@CXX@,$CXX,;t t | |
30365 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
30366 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
30367 | s,@RANLIB@,$RANLIB,;t t | |
30368 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
30369 | s,@AR@,$AR,;t t | |
30370 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
30371 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
30372 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
30373 | s,@STRIP@,$STRIP,;t t | |
30374 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
30375 | s,@YACC@,$YACC,;t t | |
30376 | s,@LEX@,$LEX,;t t | |
30377 | s,@LEXLIB@,$LEXLIB,;t t | |
30378 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t | |
30379 | s,@LN_S@,$LN_S,;t t | |
30380 | s,@CXXCPP@,$CXXCPP,;t t | |
30381 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
30382 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
30383 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
30384 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
30385 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
30386 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
30387 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
30388 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
30389 | s,@X_LIBS@,$X_LIBS,;t t | |
30390 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
30391 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
30392 | s,@RESCOMP@,$RESCOMP,;t t | |
30393 | s,@DEREZ@,$DEREZ,;t t | |
30394 | s,@LIBICONV@,$LIBICONV,;t t | |
30395 | s,@LEX_STEM@,$LEX_STEM,;t t | |
30396 | s,@PATH_IFS@,$PATH_IFS,;t t | |
30397 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
30398 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
30399 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
30400 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
30401 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
30402 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
30403 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
30404 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
30405 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
30406 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
30407 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
30408 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
30409 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
30410 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
30411 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
30412 | s,@WX_ALL@,$WX_ALL,;t t | |
30413 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
30414 | s,@SHARED_LD@,$SHARED_LD,;t t | |
30415 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
30416 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t | |
30417 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
30418 | s,@SONAME_FLAGS@,$SONAME_FLAGS,;t t | |
30419 | s,@SONAME_FLAGS_GL@,$SONAME_FLAGS_GL,;t t | |
30420 | s,@WX_TARGET_LIBRARY_SONAME@,$WX_TARGET_LIBRARY_SONAME,;t t | |
30421 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
30422 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
30423 | s,@USE_GUI@,$USE_GUI,;t t | |
30424 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
30425 | s,@TOOLKIT@,$TOOLKIT,;t t | |
30426 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
30427 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
30428 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
30429 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
30430 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
30431 | s,@cross_compiling@,$cross_compiling,;t t | |
30432 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
30433 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
30434 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
30435 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
30436 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
30437 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
30438 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
30439 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
30440 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
30441 | s,@GUIDIST@,$GUIDIST,;t t | |
30442 | s,@PORT_FILES@,$PORT_FILES,;t t | |
30443 | s,@DISTDIR@,$DISTDIR,;t t | |
30444 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
30445 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
30446 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
30447 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
30448 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
30449 | s,@EXTRADEFS@,$EXTRADEFS,;t t | |
30450 | s,@RESFLAGS@,$RESFLAGS,;t t | |
30451 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
30452 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
30453 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
30454 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
30455 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
30456 | s,@LIBWXMACRESCOMP@,$LIBWXMACRESCOMP,;t t | |
30457 | s,@LIBWXMACRESWXCONFIG@,$LIBWXMACRESWXCONFIG,;t t | |
30458 | s,@DLLTOOL@,$DLLTOOL,;t t | |
30459 | s,@AS@,$AS,;t t | |
30460 | s,@NM@,$NM,;t t | |
30461 | s,@LD@,$LD,;t t | |
30462 | s,@MAKEINFO@,$MAKEINFO,;t t | |
30463 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
30464 | s,@SET_MAKE@,$SET_MAKE,;t t | |
30465 | s,@subdirs@,$subdirs,;t t | |
30466 | CEOF | |
30467 | ||
30468 | _ACEOF | |
30469 | ||
30470 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30471 | # Split the substitutions into bite-sized pieces for seds with | |
30472 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
30473 | ac_max_sed_lines=48 | |
30474 | ac_sed_frag=1 # Number of current file. | |
30475 | ac_beg=1 # First line for current file. | |
30476 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
30477 | ac_more_lines=: | |
30478 | ac_sed_cmds= | |
30479 | while $ac_more_lines; do | |
30480 | if test $ac_beg -gt 1; then | |
30481 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
30482 | else | |
30483 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
30484 | fi | |
30485 | if test ! -s $tmp/subs.frag; then | |
30486 | ac_more_lines=false | |
30487 | else | |
30488 | # The purpose of the label and of the branching condition is to | |
30489 | # speed up the sed processing (if there are no `@' at all, there | |
30490 | # is no need to browse any of the substitutions). | |
30491 | # These are the two extra sed commands mentioned above. | |
30492 | (echo ':t | |
30493 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
30494 | if test -z "$ac_sed_cmds"; then | |
30495 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
30496 | else | |
30497 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
30498 | fi | |
30499 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
30500 | ac_beg=$ac_end | |
30501 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
30502 | fi | |
30503 | done | |
30504 | if test -z "$ac_sed_cmds"; then | |
30505 | ac_sed_cmds=cat | |
10f2d63a | 30506 | fi |
247f5006 | 30507 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 30508 | |
247f5006 VZ |
30509 | _ACEOF |
30510 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30511 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
30512 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
30513 | case $ac_file in | |
30514 | - | *:- | *:-:* ) # input from stdin | |
30515 | cat >$tmp/stdin | |
30516 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
30517 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
30518 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
30519 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
30520 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
30521 | esac |
30522 | ||
247f5006 VZ |
30523 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
30524 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
30525 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30526 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
30527 | X"$ac_file" : 'X\(//\)$' \| \ | |
30528 | X"$ac_file" : 'X\(/\)' \| \ | |
30529 | . : '\(.\)' 2>/dev/null || | |
30530 | echo X"$ac_file" | | |
30531 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30532 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30533 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30534 | /^X\(\/\).*/{ s//\1/; q; } | |
30535 | s/.*/./; q'` | |
30536 | { case "$ac_dir" in | |
30537 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
30538 | *) as_incr_dir=.;; | |
30539 | esac | |
30540 | as_dummy="$ac_dir" | |
30541 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
30542 | case $as_mkdir_dir in | |
30543 | # Skip DOS drivespec | |
30544 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
30545 | *) | |
30546 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
30547 | test -d "$as_incr_dir" || | |
30548 | mkdir "$as_incr_dir" || | |
30549 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
30550 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
30551 | { (exit 1); exit 1; }; } | |
30552 | ;; | |
10f2d63a | 30553 | esac |
247f5006 VZ |
30554 | done; } |
30555 | ||
30556 | ac_builddir=. | |
30557 | ||
30558 | if test "$ac_dir" != .; then | |
30559 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
30560 | # A "../" for each directory in $ac_dir_suffix. | |
30561 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
30562 | else | |
30563 | ac_dir_suffix= ac_top_builddir= | |
30564 | fi | |
30565 | ||
30566 | case $srcdir in | |
30567 | .) # No --srcdir option. We are building in place. | |
30568 | ac_srcdir=. | |
30569 | if test -z "$ac_top_builddir"; then | |
30570 | ac_top_srcdir=. | |
30571 | else | |
30572 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
30573 | fi ;; | |
30574 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
30575 | ac_srcdir=$srcdir$ac_dir_suffix; | |
30576 | ac_top_srcdir=$srcdir ;; | |
30577 | *) # Relative path. | |
30578 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
30579 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
30580 | esac | |
30581 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
30582 | # absolute. | |
30583 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
30584 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
30585 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
30586 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
30587 | ||
10f2d63a | 30588 | |
247f5006 VZ |
30589 | case $INSTALL in |
30590 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
30591 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
8284b0c5 | 30592 | esac |
10f2d63a | 30593 | |
247f5006 VZ |
30594 | if test x"$ac_file" != x-; then |
30595 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
30596 | echo "$as_me: creating $ac_file" >&6;} | |
30597 | rm -f "$ac_file" | |
30598 | fi | |
30599 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
30600 | # use $as_me), people would be surprised to read: | |
30601 | # /* config.h. Generated by config.status. */ | |
30602 | if test x"$ac_file" = x-; then | |
30603 | configure_input= | |
30604 | else | |
30605 | configure_input="$ac_file. " | |
30606 | fi | |
30607 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
30608 | sed 's,.*/,,'` by configure." | |
30609 | ||
30610 | # First look for the input files in the build tree, otherwise in the | |
30611 | # src tree. | |
30612 | ac_file_inputs=`IFS=: | |
30613 | for f in $ac_file_in; do | |
30614 | case $f in | |
30615 | -) echo $tmp/stdin ;; | |
30616 | [\\/$]*) | |
30617 | # Absolute (can't be DOS-style, as IFS=:) | |
30618 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
30619 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
30620 | { (exit 1); exit 1; }; } | |
30621 | echo $f;; | |
30622 | *) # Relative | |
30623 | if test -f "$f"; then | |
30624 | # Build tree | |
30625 | echo $f | |
30626 | elif test -f "$srcdir/$f"; then | |
30627 | # Source tree | |
30628 | echo $srcdir/$f | |
30629 | else | |
30630 | # /dev/null tree | |
30631 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
30632 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
30633 | { (exit 1); exit 1; }; } | |
30634 | fi;; | |
30635 | esac | |
30636 | done` || { (exit 1); exit 1; } | |
30637 | _ACEOF | |
30638 | cat >>$CONFIG_STATUS <<_ACEOF | |
30639 | sed "$ac_vpsub | |
30640 | $extrasub | |
30641 | _ACEOF | |
30642 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30643 | :t | |
30644 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
30645 | s,@configure_input@,$configure_input,;t t | |
30646 | s,@srcdir@,$ac_srcdir,;t t | |
30647 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
30648 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
30649 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
30650 | s,@builddir@,$ac_builddir,;t t | |
30651 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
30652 | s,@top_builddir@,$ac_top_builddir,;t t | |
30653 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
30654 | s,@INSTALL@,$ac_INSTALL,;t t | |
30655 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
30656 | rm -f $tmp/stdin | |
30657 | if test x"$ac_file" != x-; then | |
30658 | mv $tmp/out $ac_file | |
30659 | else | |
30660 | cat $tmp/out | |
30661 | rm -f $tmp/out | |
30662 | fi | |
30663 | ||
30664 | done | |
30665 | _ACEOF | |
30666 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30667 | ||
30668 | # | |
30669 | # CONFIG_HEADER section. | |
30670 | # | |
10f2d63a VZ |
30671 | |
30672 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
30673 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
30674 | # | |
30675 | # ac_d sets the value in "#define NAME VALUE" lines. | |
247f5006 VZ |
30676 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
30677 | ac_dB='[ ].*$,\1#\2' | |
30678 | ac_dC=' ' | |
30679 | ac_dD=',;t' | |
30680 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
30681 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
30682 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 30683 | ac_uC=' ' |
247f5006 VZ |
30684 | ac_uD=',;t' |
30685 | ||
30686 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 30687 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
247f5006 VZ |
30688 | case $ac_file in |
30689 | - | *:- | *:-:* ) # input from stdin | |
30690 | cat >$tmp/stdin | |
30691 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
30692 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
30693 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
30694 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
30695 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
30696 | esac |
30697 | ||
247f5006 VZ |
30698 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
30699 | echo "$as_me: creating $ac_file" >&6;} | |
30700 | ||
30701 | # First look for the input files in the build tree, otherwise in the | |
30702 | # src tree. | |
30703 | ac_file_inputs=`IFS=: | |
30704 | for f in $ac_file_in; do | |
30705 | case $f in | |
30706 | -) echo $tmp/stdin ;; | |
30707 | [\\/$]*) | |
30708 | # Absolute (can't be DOS-style, as IFS=:) | |
30709 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
30710 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
30711 | { (exit 1); exit 1; }; } | |
30712 | echo $f;; | |
30713 | *) # Relative | |
30714 | if test -f "$f"; then | |
30715 | # Build tree | |
30716 | echo $f | |
30717 | elif test -f "$srcdir/$f"; then | |
30718 | # Source tree | |
30719 | echo $srcdir/$f | |
30720 | else | |
30721 | # /dev/null tree | |
30722 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
30723 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
30724 | { (exit 1); exit 1; }; } | |
30725 | fi;; | |
30726 | esac | |
30727 | done` || { (exit 1); exit 1; } | |
30728 | # Remove the trailing spaces. | |
30729 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
30730 | ||
30731 | _ACEOF | |
30732 | ||
30733 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
30734 | # `conftest.undefs', that substitutes the proper values into | |
30735 | # config.h.in to produce config.h. The first handles `#define' | |
30736 | # templates, and the second `#undef' templates. | |
30737 | # And first: Protect against being on the right side of a sed subst in | |
30738 | # config.status. Protect against being in an unquoted here document | |
30739 | # in config.status. | |
30740 | rm -f conftest.defines conftest.undefs | |
30741 | # Using a here document instead of a string reduces the quoting nightmare. | |
30742 | # Putting comments in sed scripts is not portable. | |
30743 | # | |
30744 | # `end' is used to avoid that the second main sed command (meant for | |
30745 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
30746 | # See the Autoconf documentation for `clear'. | |
30747 | cat >confdef2sed.sed <<\_ACEOF | |
30748 | s/[\\&,]/\\&/g | |
30749 | s,[\\$`],\\&,g | |
30750 | t clear | |
30751 | : clear | |
30752 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
30753 | t end | |
30754 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
30755 | : end | |
30756 | _ACEOF | |
30757 | # If some macros were called several times there might be several times | |
30758 | # the same #defines, which is useless. Nevertheless, we may not want to | |
30759 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
30760 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
30761 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
30762 | rm -f confdef2sed.sed | |
10f2d63a VZ |
30763 | |
30764 | # This sed command replaces #undef with comments. This is necessary, for | |
30765 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
30766 | # on some systems where configure will not decide to define it. | |
247f5006 VZ |
30767 | cat >>conftest.undefs <<\_ACEOF |
30768 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
30769 | _ACEOF | |
30770 | ||
30771 | # Break up conftest.defines because some shells have a limit on the size | |
30772 | # of here documents, and old seds have small limits too (100 cmds). | |
30773 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
30774 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
30775 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
30776 | echo ' :' >>$CONFIG_STATUS | |
30777 | rm -f conftest.tail | |
30778 | while grep . conftest.defines >/dev/null | |
30779 | do | |
30780 | # Write a limited-size here document to $tmp/defines.sed. | |
30781 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
30782 | # Speed up: don't consider the non `#define' lines. | |
30783 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
30784 | # Work around the forget-to-reset-the-flag bug. | |
30785 | echo 't clr' >>$CONFIG_STATUS | |
30786 | echo ': clr' >>$CONFIG_STATUS | |
30787 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
30788 | echo 'CEOF | |
30789 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
30790 | rm -f $tmp/in | |
30791 | mv $tmp/out $tmp/in | |
30792 | ' >>$CONFIG_STATUS | |
30793 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
30794 | rm -f conftest.defines | |
30795 | mv conftest.tail conftest.defines | |
30796 | done | |
30797 | rm -f conftest.defines | |
30798 | echo ' fi # egrep' >>$CONFIG_STATUS | |
30799 | echo >>$CONFIG_STATUS | |
10f2d63a | 30800 | |
247f5006 VZ |
30801 | # Break up conftest.undefs because some shells have a limit on the size |
30802 | # of here documents, and old seds have small limits too (100 cmds). | |
30803 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 30804 | rm -f conftest.tail |
247f5006 | 30805 | while grep . conftest.undefs >/dev/null |
10f2d63a | 30806 | do |
247f5006 VZ |
30807 | # Write a limited-size here document to $tmp/undefs.sed. |
30808 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
30809 | # Speed up: don't consider the non `#undef' | |
30810 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
30811 | # Work around the forget-to-reset-the-flag bug. | |
30812 | echo 't clr' >>$CONFIG_STATUS | |
30813 | echo ': clr' >>$CONFIG_STATUS | |
30814 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 30815 | echo 'CEOF |
247f5006 VZ |
30816 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
30817 | rm -f $tmp/in | |
30818 | mv $tmp/out $tmp/in | |
30819 | ' >>$CONFIG_STATUS | |
30820 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
30821 | rm -f conftest.undefs | |
30822 | mv conftest.tail conftest.undefs | |
10f2d63a | 30823 | done |
247f5006 VZ |
30824 | rm -f conftest.undefs |
30825 | ||
30826 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30827 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
30828 | # use $as_me), people would be surprised to read: | |
30829 | # /* config.h. Generated by config.status. */ | |
30830 | if test x"$ac_file" = x-; then | |
30831 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 30832 | else |
247f5006 | 30833 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
10f2d63a | 30834 | fi |
247f5006 VZ |
30835 | cat $tmp/in >>$tmp/config.h |
30836 | rm -f $tmp/in | |
30837 | if test x"$ac_file" != x-; then | |
30838 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
30839 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
30840 | echo "$as_me: $ac_file is unchanged" >&6;} | |
30841 | else | |
30842 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
30843 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30844 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
30845 | X"$ac_file" : 'X\(//\)$' \| \ | |
30846 | X"$ac_file" : 'X\(/\)' \| \ | |
30847 | . : '\(.\)' 2>/dev/null || | |
30848 | echo X"$ac_file" | | |
30849 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30850 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30851 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30852 | /^X\(\/\).*/{ s//\1/; q; } | |
30853 | s/.*/./; q'` | |
30854 | { case "$ac_dir" in | |
30855 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
30856 | *) as_incr_dir=.;; | |
30857 | esac | |
30858 | as_dummy="$ac_dir" | |
30859 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
30860 | case $as_mkdir_dir in | |
30861 | # Skip DOS drivespec | |
30862 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
30863 | *) | |
30864 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
30865 | test -d "$as_incr_dir" || | |
30866 | mkdir "$as_incr_dir" || | |
30867 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
30868 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
30869 | { (exit 1); exit 1; }; } | |
30870 | ;; | |
30871 | esac | |
30872 | done; } | |
10f2d63a | 30873 | |
247f5006 VZ |
30874 | rm -f $ac_file |
30875 | mv $tmp/config.h $ac_file | |
30876 | fi | |
30877 | else | |
30878 | cat $tmp/config.h | |
30879 | rm -f $tmp/config.h | |
30880 | fi | |
30881 | done | |
30882 | _ACEOF | |
30883 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 30884 | |
247f5006 VZ |
30885 | # |
30886 | # CONFIG_COMMANDS section. | |
30887 | # | |
30888 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
30889 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
30890 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
30891 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
30892 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
30893 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
30894 | X"$ac_dest" : 'X\(//\)$' \| \ | |
30895 | X"$ac_dest" : 'X\(/\)' \| \ | |
30896 | . : '\(.\)' 2>/dev/null || | |
30897 | echo X"$ac_dest" | | |
30898 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
30899 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
30900 | /^X\(\/\/\)$/{ s//\1/; q; } | |
30901 | /^X\(\/\).*/{ s//\1/; q; } | |
30902 | s/.*/./; q'` | |
30903 | ac_builddir=. | |
30904 | ||
30905 | if test "$ac_dir" != .; then | |
30906 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
30907 | # A "../" for each directory in $ac_dir_suffix. | |
30908 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
30909 | else | |
30910 | ac_dir_suffix= ac_top_builddir= | |
30911 | fi | |
30912 | ||
30913 | case $srcdir in | |
30914 | .) # No --srcdir option. We are building in place. | |
30915 | ac_srcdir=. | |
30916 | if test -z "$ac_top_builddir"; then | |
30917 | ac_top_srcdir=. | |
30918 | else | |
30919 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
30920 | fi ;; | |
30921 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
30922 | ac_srcdir=$srcdir$ac_dir_suffix; | |
30923 | ac_top_srcdir=$srcdir ;; | |
30924 | *) # Relative path. | |
30925 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
30926 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
30927 | esac | |
30928 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
30929 | # absolute. | |
30930 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
30931 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
30932 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
30933 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
30934 | ||
30935 | ||
30936 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
30937 | echo "$as_me: executing $ac_dest commands" >&6;} | |
30938 | case $ac_dest in | |
30939 | default ) | |
652d930d | 30940 | if test ! -h wx-config; then |
991a5759 | 30941 | chmod +x wx-config |
3a922bb4 RL |
30942 | mv wx-config wx${TOOLCHAIN_NAME}-config |
30943 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 30944 | fi |
665bbe97 | 30945 | |
00cf1208 RR |
30946 | if test ! -d lib; then |
30947 | mkdir lib | |
30948 | fi | |
30949 | if test ! -d lib/wx; then | |
30950 | mkdir lib/wx | |
30951 | fi | |
30952 | if test ! -d lib/wx/include; then | |
30953 | mkdir lib/wx/include | |
30954 | fi | |
3a922bb4 RL |
30955 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
30956 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 30957 | fi |
3a922bb4 RL |
30958 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
30959 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
30960 | fi |
30961 | if test -f setup.h; then | |
3a922bb4 | 30962 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 30963 | fi |
247f5006 VZ |
30964 | ;; |
30965 | esac | |
30966 | done | |
30967 | _ACEOF | |
30968 | ||
30969 | cat >>$CONFIG_STATUS <<\_ACEOF | |
30970 | ||
30971 | { (exit 0); exit 0; } | |
30972 | _ACEOF | |
10f2d63a | 30973 | chmod +x $CONFIG_STATUS |
247f5006 VZ |
30974 | ac_clean_files=$ac_clean_files_save |
30975 | ||
30976 | ||
30977 | # configure is writing to config.log, and then calls config.status. | |
30978 | # config.status does its own redirection, appending to config.log. | |
30979 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
30980 | # by configure, so config.status won't be able to write to it; its | |
30981 | # output is simply discarded. So we exec the FD to /dev/null, | |
30982 | # effectively closing config.log, so it can be properly (re)opened and | |
30983 | # appended to by config.status. When coming back to configure, we | |
30984 | # need to make the FD available again. | |
30985 | if test "$no_create" != yes; then | |
30986 | ac_cs_success=: | |
30987 | exec 5>/dev/null | |
30988 | $SHELL $CONFIG_STATUS || ac_cs_success=false | |
30989 | exec 5>>config.log | |
30990 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
30991 | # would make configure fail if this is the last instruction. | |
30992 | $ac_cs_success || { (exit 1); exit 1; } | |
30993 | fi | |
10f2d63a | 30994 | |
247f5006 VZ |
30995 | # |
30996 | # CONFIG_SUBDIRS section. | |
30997 | # | |
2224580a VZ |
30998 | if test "$no_recursion" != yes; then |
30999 | ||
31000 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
31001 | ac_sub_configure_args= | |
31002 | ac_prev= | |
31003 | for ac_arg in $ac_configure_args; do | |
31004 | if test -n "$ac_prev"; then | |
31005 | ac_prev= | |
31006 | continue | |
31007 | fi | |
247f5006 | 31008 | case $ac_arg in |
2224580a VZ |
31009 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
31010 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
31011 | ac_prev=cache_file ;; | |
31012 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
247f5006 VZ |
31013 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
31014 | | --c=*) | |
31015 | ;; | |
31016 | --config-cache | -C) | |
2224580a VZ |
31017 | ;; |
31018 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
31019 | ac_prev=srcdir ;; | |
31020 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
31021 | ;; | |
247f5006 VZ |
31022 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
31023 | ac_prev=prefix ;; | |
31024 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
31025 | ;; | |
2224580a VZ |
31026 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
31027 | esac | |
31028 | done | |
31029 | ||
247f5006 VZ |
31030 | # Always prepend --prefix to ensure using the same prefix |
31031 | # in subdir configurations. | |
31032 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
31033 | ||
31034 | ac_popdir=`pwd` | |
31035 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
2224580a VZ |
31036 | |
31037 | # Do not complain, so a configure script can configure whichever | |
31038 | # parts of a large source tree are present. | |
247f5006 | 31039 | test -d $srcdir/$ac_dir || continue |
2224580a | 31040 | |
247f5006 VZ |
31041 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
31042 | echo "$as_me: configuring in $ac_dir" >&6;} | |
31043 | { case "$ac_dir" in | |
31044 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
31045 | *) as_incr_dir=.;; | |
31046 | esac | |
31047 | as_dummy="$ac_dir" | |
31048 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
31049 | case $as_mkdir_dir in | |
31050 | # Skip DOS drivespec | |
31051 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
2224580a | 31052 | *) |
247f5006 VZ |
31053 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
31054 | test -d "$as_incr_dir" || | |
31055 | mkdir "$as_incr_dir" || | |
31056 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 | |
31057 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} | |
31058 | { (exit 1); exit 1; }; } | |
31059 | ;; | |
31060 | esac | |
31061 | done; } | |
2224580a | 31062 | |
247f5006 | 31063 | ac_builddir=. |
2224580a | 31064 | |
247f5006 VZ |
31065 | if test "$ac_dir" != .; then |
31066 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
31067 | # A "../" for each directory in $ac_dir_suffix. | |
31068 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
31069 | else | |
31070 | ac_dir_suffix= ac_top_builddir= | |
31071 | fi | |
2224580a | 31072 | |
247f5006 VZ |
31073 | case $srcdir in |
31074 | .) # No --srcdir option. We are building in place. | |
31075 | ac_srcdir=. | |
31076 | if test -z "$ac_top_builddir"; then | |
31077 | ac_top_srcdir=. | |
31078 | else | |
31079 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
31080 | fi ;; | |
31081 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
31082 | ac_srcdir=$srcdir$ac_dir_suffix; | |
31083 | ac_top_srcdir=$srcdir ;; | |
31084 | *) # Relative path. | |
31085 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
31086 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
31087 | esac | |
31088 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
31089 | # absolute. | |
31090 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
31091 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` | |
31092 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
31093 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
31094 | ||
31095 | ||
31096 | cd $ac_dir | |
2224580a VZ |
31097 | |
31098 | # Check for guested configure; otherwise get Cygnus style configure. | |
247f5006 VZ |
31099 | if test -f $ac_srcdir/configure.gnu; then |
31100 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
31101 | elif test -f $ac_srcdir/configure; then | |
31102 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
31103 | elif test -f $ac_srcdir/configure.in; then | |
2224580a VZ |
31104 | ac_sub_configure=$ac_configure |
31105 | else | |
247f5006 VZ |
31106 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
31107 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
2224580a VZ |
31108 | ac_sub_configure= |
31109 | fi | |
31110 | ||
31111 | # The recursion is here. | |
31112 | if test -n "$ac_sub_configure"; then | |
2224580a | 31113 | # Make the cache file name correct relative to the subdirectory. |
247f5006 VZ |
31114 | case $cache_file in |
31115 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
2224580a | 31116 | *) # Relative path. |
247f5006 | 31117 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
2224580a | 31118 | esac |
2224580a | 31119 | |
247f5006 VZ |
31120 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
31121 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
2224580a | 31122 | # The eval makes quoting arguments work. |
247f5006 VZ |
31123 | eval $ac_sub_configure $ac_sub_configure_args \ |
31124 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
31125 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
31126 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
31127 | { (exit 1); exit 1; }; } | |
2224580a VZ |
31128 | fi |
31129 | ||
31130 | cd $ac_popdir | |
31131 | done | |
31132 | fi | |
31133 | ||
8284b0c5 | 31134 |