]>
Commit | Line | Data |
---|---|---|
a848cd7e | 1 | #! /bin/sh |
33f270af | 2 | # From configure.in Id. |
a848cd7e | 3 | # Guess values for system-dependent variables and create Makefiles. |
eff9d7f5 | 4 | # Generated by GNU Autoconf 2.69 for wxWidgets 2.9.5. |
a848cd7e | 5 | # |
77ffb593 | 6 | # Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e | 7 | # |
3dd30495 | 8 | # |
eff9d7f5 | 9 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
3dd30495 VZ |
10 | # |
11 | # | |
a848cd7e SC |
12 | # This configure script is free software; the Free Software Foundation |
13 | # gives unlimited permission to copy, distribute and modify it. | |
3dd30495 VZ |
14 | ## -------------------- ## |
15 | ## M4sh Initialization. ## | |
16 | ## -------------------- ## | |
a848cd7e | 17 | |
47964710 VS |
18 | # Be more Bourne compatible |
19 | DUALCASE=1; export DUALCASE # for MKS sh | |
3dd30495 | 20 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
a848cd7e SC |
21 | emulate sh |
22 | NULLCMD=: | |
3dd30495 | 23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a848cd7e SC |
24 | # is contrary to our usage. Disable this feature. |
25 | alias -g '${1+"$@"}'='"$@"' | |
47964710 VS |
26 | setopt NO_GLOB_SUBST |
27 | else | |
3dd30495 VZ |
28 | case `(set -o) 2>/dev/null` in #( |
29 | *posix*) : | |
30 | set -o posix ;; #( | |
31 | *) : | |
32 | ;; | |
47964710 | 33 | esac |
47964710 VS |
34 | fi |
35 | ||
36 | ||
3dd30495 VZ |
37 | as_nl=' |
38 | ' | |
39 | export as_nl | |
40 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
41 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
45 | # but without wasting forks for bash or zsh. | |
46 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
47 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='print -r --' | |
49 | as_echo_n='print -rn --' | |
50 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
51 | as_echo='printf %s\n' | |
52 | as_echo_n='printf %s' | |
53 | else | |
54 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
55 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
56 | as_echo_n='/usr/ucb/echo -n' | |
d589327a | 57 | else |
3dd30495 VZ |
58 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
59 | as_echo_n_body='eval | |
60 | arg=$1; | |
61 | case $arg in #( | |
62 | *"$as_nl"*) | |
63 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
64 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
65 | esac; | |
66 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
67 | ' | |
68 | export as_echo_n_body | |
69 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
d589327a | 70 | fi |
3dd30495 VZ |
71 | export as_echo_body |
72 | as_echo='sh -c $as_echo_body as_echo' | |
7fd3acaf RD |
73 | fi |
74 | ||
3dd30495 VZ |
75 | # The user is always right. |
76 | if test "${PATH_SEPARATOR+set}" != set; then | |
77 | PATH_SEPARATOR=: | |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
a848cd7e SC |
82 | fi |
83 | ||
84 | ||
47964710 VS |
85 | # IFS |
86 | # We need space, tab and new line, in precisely that order. Quoting is | |
87 | # there to prevent editors from complaining about space-tab. | |
88 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
89 | # splitting by setting IFS to empty value.) | |
47964710 VS |
90 | IFS=" "" $as_nl" |
91 | ||
92 | # Find who we are. Look in the path if we contain no directory separator. | |
eff9d7f5 | 93 | as_myself= |
3dd30495 | 94 | case $0 in #(( |
47964710 VS |
95 | *[\\/]* ) as_myself=$0 ;; |
96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
97 | for as_dir in $PATH | |
98 | do | |
99 | IFS=$as_save_IFS | |
100 | test -z "$as_dir" && as_dir=. | |
3dd30495 VZ |
101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
102 | done | |
47964710 VS |
103 | IFS=$as_save_IFS |
104 | ||
105 | ;; | |
106 | esac | |
107 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
108 | # in which case we are not to be found in the path. | |
109 | if test "x$as_myself" = x; then | |
110 | as_myself=$0 | |
111 | fi | |
112 | if test ! -f "$as_myself"; then | |
3dd30495 VZ |
113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
114 | exit 1 | |
47964710 VS |
115 | fi |
116 | ||
3dd30495 VZ |
117 | # Unset variables that we do not need and which cause bugs (e.g. in |
118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
119 | # suppresses any "Segmentation fault" message there. '((' could | |
120 | # trigger a bug in pdksh 5.2.14. | |
121 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
122 | do eval test x\${$as_var+set} = xset \ | |
123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
47964710 | 124 | done |
a848cd7e SC |
125 | PS1='$ ' |
126 | PS2='> ' | |
127 | PS4='+ ' | |
128 | ||
129 | # NLS nuisances. | |
3dd30495 VZ |
130 | LC_ALL=C |
131 | export LC_ALL | |
132 | LANGUAGE=C | |
133 | export LANGUAGE | |
7fd3acaf | 134 | |
47964710 | 135 | # CDPATH. |
3dd30495 | 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
faa5c14f | 137 | |
eff9d7f5 VZ |
138 | # Use a proper internal environment variable to ensure we don't fall |
139 | # into an infinite loop, continuously re-executing ourselves. | |
140 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
141 | _as_can_reexec=no; export _as_can_reexec; | |
142 | # We cannot yet assume a decent shell, so we have to provide a | |
143 | # neutralization value for shells without unset; and this also | |
144 | # works around shells that cannot unset nonexistent variables. | |
145 | # Preserve -v and -x to the replacement shell. | |
146 | BASH_ENV=/dev/null | |
147 | ENV=/dev/null | |
148 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
149 | case $- in # (((( | |
150 | *v*x* | *x*v* ) as_opts=-vx ;; | |
151 | *v* ) as_opts=-v ;; | |
152 | *x* ) as_opts=-x ;; | |
153 | * ) as_opts= ;; | |
154 | esac | |
155 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
156 | # Admittedly, this is quite paranoid, since all the known shells bail | |
157 | # out after a failed `exec'. | |
158 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
159 | as_fn_exit 255 | |
160 | fi | |
161 | # We don't want this to propagate to other subprocesses. | |
162 | { _as_can_reexec=; unset _as_can_reexec;} | |
47964710 | 163 | if test "x$CONFIG_SHELL" = x; then |
3dd30495 VZ |
164 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
165 | emulate sh | |
166 | NULLCMD=: | |
167 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
168 | # is contrary to our usage. Disable this feature. | |
169 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
170 | setopt NO_GLOB_SUBST | |
47964710 | 171 | else |
3dd30495 VZ |
172 | case \`(set -o) 2>/dev/null\` in #( |
173 | *posix*) : | |
174 | set -o posix ;; #( | |
175 | *) : | |
176 | ;; | |
177 | esac | |
47964710 | 178 | fi |
3dd30495 VZ |
179 | " |
180 | as_required="as_fn_return () { (exit \$1); } | |
181 | as_fn_success () { as_fn_return 0; } | |
182 | as_fn_failure () { as_fn_return 1; } | |
183 | as_fn_ret_success () { return 0; } | |
184 | as_fn_ret_failure () { return 1; } | |
47964710 VS |
185 | |
186 | exitcode=0 | |
3dd30495 VZ |
187 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
188 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
189 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
190 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
191 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
192 | ||
193 | else | |
194 | exitcode=1; echo positional parameters were not saved. | |
195 | fi | |
eff9d7f5 VZ |
196 | test x\$exitcode = x0 || exit 1 |
197 | test -x / || exit 1" | |
3dd30495 VZ |
198 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
199 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
200 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
201 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
202 | test \$(( 1 + 1 )) = 2 || exit 1" | |
203 | if (eval "$as_required") 2>/dev/null; then : | |
204 | as_have_required=yes | |
47964710 | 205 | else |
3dd30495 | 206 | as_have_required=no |
47964710 | 207 | fi |
3dd30495 | 208 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
47964710 | 209 | |
47964710 | 210 | else |
3dd30495 VZ |
211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
212 | as_found=false | |
ebe1d157 | 213 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
a848cd7e SC |
214 | do |
215 | IFS=$as_save_IFS | |
216 | test -z "$as_dir" && as_dir=. | |
3dd30495 VZ |
217 | as_found=: |
218 | case $as_dir in #( | |
a848cd7e | 219 | /*) |
47964710 | 220 | for as_base in sh bash ksh sh5; do |
3dd30495 VZ |
221 | # Try only shells that exist, to save several forks. |
222 | as_shell=$as_dir/$as_base | |
223 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
224 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
225 | CONFIG_SHELL=$as_shell as_have_required=yes | |
226 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
227 | break 2 | |
228 | fi | |
229 | fi | |
47964710 VS |
230 | done;; |
231 | esac | |
3dd30495 | 232 | as_found=false |
47964710 | 233 | done |
3dd30495 VZ |
234 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
235 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
236 | CONFIG_SHELL=$SHELL as_have_required=yes | |
237 | fi; } | |
47964710 VS |
238 | IFS=$as_save_IFS |
239 | ||
240 | ||
3dd30495 | 241 | if test "x$CONFIG_SHELL" != x; then : |
eff9d7f5 VZ |
242 | export CONFIG_SHELL |
243 | # We cannot yet assume a decent shell, so we have to provide a | |
244 | # neutralization value for shells without unset; and this also | |
245 | # works around shells that cannot unset nonexistent variables. | |
246 | # Preserve -v and -x to the replacement shell. | |
247 | BASH_ENV=/dev/null | |
248 | ENV=/dev/null | |
249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
250 | case $- in # (((( | |
251 | *v*x* | *x*v* ) as_opts=-vx ;; | |
252 | *v* ) as_opts=-v ;; | |
253 | *x* ) as_opts=-x ;; | |
254 | * ) as_opts= ;; | |
255 | esac | |
256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
257 | # Admittedly, this is quite paranoid, since all the known shells bail | |
258 | # out after a failed `exec'. | |
259 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
260 | exit 255 | |
47964710 VS |
261 | fi |
262 | ||
3dd30495 VZ |
263 | if test x$as_have_required = xno; then : |
264 | $as_echo "$0: This script requires a shell more modern than all" | |
265 | $as_echo "$0: the shells that I found on your system." | |
266 | if test x${ZSH_VERSION+set} = xset ; then | |
267 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
268 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
269 | else | |
270 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
271 | $0: wx-dev@lists.wxwidgets.org about your system, including | |
272 | $0: any error possibly output before this message. Then | |
273 | $0: install a modern shell, or manually run the script | |
274 | $0: under such a shell if you do have one." | |
275 | fi | |
276 | exit 1 | |
47964710 | 277 | fi |
47964710 | 278 | fi |
47964710 | 279 | fi |
3dd30495 VZ |
280 | SHELL=${CONFIG_SHELL-/bin/sh} |
281 | export SHELL | |
282 | # Unset more variables known to interfere with behavior of common tools. | |
283 | CLICOLOR_FORCE= GREP_OPTIONS= | |
284 | unset CLICOLOR_FORCE GREP_OPTIONS | |
47964710 | 285 | |
3dd30495 VZ |
286 | ## --------------------- ## |
287 | ## M4sh Shell Functions. ## | |
288 | ## --------------------- ## | |
289 | # as_fn_unset VAR | |
290 | # --------------- | |
291 | # Portably unset VAR. | |
292 | as_fn_unset () | |
293 | { | |
294 | { eval $1=; unset $1;} | |
295 | } | |
296 | as_unset=as_fn_unset | |
47964710 | 297 | |
3dd30495 VZ |
298 | # as_fn_set_status STATUS |
299 | # ----------------------- | |
300 | # Set $? to STATUS, without forking. | |
301 | as_fn_set_status () | |
302 | { | |
303 | return $1 | |
304 | } # as_fn_set_status | |
47964710 | 305 | |
3dd30495 VZ |
306 | # as_fn_exit STATUS |
307 | # ----------------- | |
308 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
309 | as_fn_exit () | |
310 | { | |
311 | set +e | |
312 | as_fn_set_status $1 | |
313 | exit $1 | |
314 | } # as_fn_exit | |
47964710 | 315 | |
3dd30495 VZ |
316 | # as_fn_mkdir_p |
317 | # ------------- | |
318 | # Create "$as_dir" as a directory, including parents if necessary. | |
319 | as_fn_mkdir_p () | |
320 | { | |
47964710 | 321 | |
3dd30495 VZ |
322 | case $as_dir in #( |
323 | -*) as_dir=./$as_dir;; | |
324 | esac | |
325 | test -d "$as_dir" || eval $as_mkdir_p || { | |
326 | as_dirs= | |
327 | while :; do | |
328 | case $as_dir in #( | |
329 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
330 | *) as_qdir=$as_dir;; | |
331 | esac | |
332 | as_dirs="'$as_qdir' $as_dirs" | |
333 | as_dir=`$as_dirname -- "$as_dir" || | |
334 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
335 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
336 | X"$as_dir" : 'X\(//\)$' \| \ | |
337 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
338 | $as_echo X"$as_dir" | | |
339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
340 | s//\1/ | |
341 | q | |
342 | } | |
343 | /^X\(\/\/\)[^/].*/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)$/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\).*/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | s/.*/./; q'` | |
356 | test -d "$as_dir" && break | |
357 | done | |
358 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
359 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
360 | ||
361 | ||
362 | } # as_fn_mkdir_p | |
eff9d7f5 VZ |
363 | |
364 | # as_fn_executable_p FILE | |
365 | # ----------------------- | |
366 | # Test if FILE is an executable regular file. | |
367 | as_fn_executable_p () | |
368 | { | |
369 | test -f "$1" && test -x "$1" | |
370 | } # as_fn_executable_p | |
3dd30495 VZ |
371 | # as_fn_append VAR VALUE |
372 | # ---------------------- | |
373 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
374 | # advantage of any shell optimizations that allow amortized linear growth over | |
375 | # repeated appends, instead of the typical quadratic growth present in naive | |
376 | # implementations. | |
377 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
378 | eval 'as_fn_append () | |
379 | { | |
380 | eval $1+=\$2 | |
381 | }' | |
382 | else | |
383 | as_fn_append () | |
384 | { | |
385 | eval $1=\$$1\$2 | |
386 | } | |
387 | fi # as_fn_append | |
388 | ||
389 | # as_fn_arith ARG... | |
390 | # ------------------ | |
391 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
392 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
393 | # must be portable across $(()) and expr. | |
394 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
395 | eval 'as_fn_arith () | |
396 | { | |
397 | as_val=$(( $* )) | |
398 | }' | |
399 | else | |
400 | as_fn_arith () | |
401 | { | |
402 | as_val=`expr "$@" || test $? -eq 1` | |
403 | } | |
404 | fi # as_fn_arith | |
47964710 VS |
405 | |
406 | ||
3dd30495 VZ |
407 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
408 | # ---------------------------------------- | |
409 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
410 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
411 | # script with STATUS, using 1 if that was 0. | |
412 | as_fn_error () | |
413 | { | |
414 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
415 | if test "$4"; then | |
416 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
417 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
418 | fi | |
419 | $as_echo "$as_me: error: $2" >&2 | |
420 | as_fn_exit $as_status | |
421 | } # as_fn_error | |
47964710 | 422 | |
3dd30495 VZ |
423 | if expr a : '\(a\)' >/dev/null 2>&1 && |
424 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
425 | as_expr=expr | |
47964710 | 426 | else |
3dd30495 | 427 | as_expr=false |
47964710 VS |
428 | fi |
429 | ||
3dd30495 VZ |
430 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
431 | as_basename=basename | |
47964710 | 432 | else |
3dd30495 | 433 | as_basename=false |
47964710 VS |
434 | fi |
435 | ||
3dd30495 VZ |
436 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
437 | as_dirname=dirname | |
47964710 | 438 | else |
3dd30495 | 439 | as_dirname=false |
47964710 VS |
440 | fi |
441 | ||
3dd30495 VZ |
442 | as_me=`$as_basename -- "$0" || |
443 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
444 | X"$0" : 'X\(//\)$' \| \ | |
445 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
446 | $as_echo X/"$0" | | |
447 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
448 | s//\1/ | |
449 | q | |
450 | } | |
451 | /^X\/\(\/\/\)$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\).*/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | s/.*/./; q'` | |
47964710 | 460 | |
3dd30495 VZ |
461 | # Avoid depending upon Character Ranges. |
462 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
463 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
464 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
465 | as_cr_digits='0123456789' | |
466 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
47964710 | 467 | |
a848cd7e | 468 | |
3dd30495 VZ |
469 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
470 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
471 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
472 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
473 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
47964710 VS |
474 | sed -n ' |
475 | p | |
476 | /[$]LINENO/= | |
477 | ' <$as_myself | | |
a848cd7e | 478 | sed ' |
47964710 VS |
479 | s/[$]LINENO.*/&-/ |
480 | t lineno | |
481 | b | |
482 | :lineno | |
a848cd7e | 483 | N |
47964710 VS |
484 | :loop |
485 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
a848cd7e | 486 | t loop |
47964710 | 487 | s/-\n.*// |
a848cd7e | 488 | ' >$as_me.lineno && |
47964710 | 489 | chmod +x "$as_me.lineno" || |
3dd30495 | 490 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
a848cd7e | 491 | |
eff9d7f5 VZ |
492 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
493 | # already done that, so ensure we don't try to do so again and fall | |
494 | # in an infinite loop. This has already happened in practice. | |
495 | _as_can_reexec=no; export _as_can_reexec | |
a848cd7e SC |
496 | # Don't try to exec as it changes $[0], causing all sort of problems |
497 | # (the dirname of $[0] is not the place where we might find the | |
47964710 VS |
498 | # original and so on. Autoconf is especially sensitive to this). |
499 | . "./$as_me.lineno" | |
a848cd7e SC |
500 | # Exit status is that of the last command. |
501 | exit | |
502 | } | |
503 | ||
47964710 | 504 | ECHO_C= ECHO_N= ECHO_T= |
3dd30495 | 505 | case `echo -n x` in #((((( |
47964710 | 506 | -n*) |
3dd30495 | 507 | case `echo 'xy\c'` in |
47964710 | 508 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
3dd30495 VZ |
509 | xy) ECHO_C='\c';; |
510 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
511 | ECHO_T=' ';; | |
47964710 VS |
512 | esac;; |
513 | *) | |
514 | ECHO_N='-n';; | |
a848cd7e | 515 | esac |
d589327a | 516 | |
a848cd7e | 517 | rm -f conf$$ conf$$.exe conf$$.file |
47964710 VS |
518 | if test -d conf$$.dir; then |
519 | rm -f conf$$.dir/conf$$.file | |
520 | else | |
521 | rm -f conf$$.dir | |
3dd30495 VZ |
522 | mkdir conf$$.dir 2>/dev/null |
523 | fi | |
524 | if (echo >conf$$.file) 2>/dev/null; then | |
525 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
526 | as_ln_s='ln -s' | |
527 | # ... but there are two gotchas: | |
528 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
529 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
eff9d7f5 | 530 | # In both cases, we have to default to `cp -pR'. |
3dd30495 | 531 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
eff9d7f5 | 532 | as_ln_s='cp -pR' |
3dd30495 VZ |
533 | elif ln conf$$.file conf$$ 2>/dev/null; then |
534 | as_ln_s=ln | |
535 | else | |
eff9d7f5 | 536 | as_ln_s='cp -pR' |
3dd30495 | 537 | fi |
a848cd7e | 538 | else |
eff9d7f5 | 539 | as_ln_s='cp -pR' |
a848cd7e | 540 | fi |
47964710 VS |
541 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
542 | rmdir conf$$.dir 2>/dev/null | |
a848cd7e SC |
543 | |
544 | if mkdir -p . 2>/dev/null; then | |
3dd30495 | 545 | as_mkdir_p='mkdir -p "$as_dir"' |
a848cd7e | 546 | else |
ac1cb8d3 | 547 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
548 | as_mkdir_p=false |
549 | fi | |
550 | ||
eff9d7f5 VZ |
551 | as_test_x='test -x' |
552 | as_executable_p=as_fn_executable_p | |
a848cd7e SC |
553 | |
554 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 555 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
556 | |
557 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 558 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
559 | |
560 | ||
3dd30495 VZ |
561 | test -n "$DJDIR" || exec 7<&0 </dev/null |
562 | exec 6>&1 | |
a848cd7e SC |
563 | |
564 | # Name of the host. | |
3dd30495 | 565 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
a848cd7e SC |
566 | # so uname gets run too. |
567 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
568 | ||
a848cd7e SC |
569 | # |
570 | # Initializations. | |
571 | # | |
572 | ac_default_prefix=/usr/local | |
47964710 | 573 | ac_clean_files= |
a848cd7e | 574 | ac_config_libobj_dir=. |
47964710 | 575 | LIBOBJS= |
a848cd7e SC |
576 | cross_compiling=no |
577 | subdirs= | |
578 | MFLAGS= | |
579 | MAKEFLAGS= | |
a848cd7e | 580 | |
a848cd7e | 581 | # Identity of this package. |
77ffb593 JS |
582 | PACKAGE_NAME='wxWidgets' |
583 | PACKAGE_TARNAME='wxwidgets' | |
9b1e7719 RD |
584 | PACKAGE_VERSION='2.9.5' |
585 | PACKAGE_STRING='wxWidgets 2.9.5' | |
77ffb593 | 586 | PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org' |
3dd30495 | 587 | PACKAGE_URL='' |
a848cd7e SC |
588 | |
589 | ac_unique_file="wx-config.in" | |
590 | # Factoring default headers for most tests. | |
591 | ac_includes_default="\ | |
592 | #include <stdio.h> | |
47964710 | 593 | #ifdef HAVE_SYS_TYPES_H |
a848cd7e SC |
594 | # include <sys/types.h> |
595 | #endif | |
47964710 | 596 | #ifdef HAVE_SYS_STAT_H |
a848cd7e SC |
597 | # include <sys/stat.h> |
598 | #endif | |
47964710 | 599 | #ifdef STDC_HEADERS |
a848cd7e SC |
600 | # include <stdlib.h> |
601 | # include <stddef.h> | |
602 | #else | |
47964710 | 603 | # ifdef HAVE_STDLIB_H |
a848cd7e SC |
604 | # include <stdlib.h> |
605 | # endif | |
606 | #endif | |
47964710 VS |
607 | #ifdef HAVE_STRING_H |
608 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
a848cd7e SC |
609 | # include <memory.h> |
610 | # endif | |
611 | # include <string.h> | |
612 | #endif | |
47964710 | 613 | #ifdef HAVE_STRINGS_H |
a848cd7e SC |
614 | # include <strings.h> |
615 | #endif | |
47964710 | 616 | #ifdef HAVE_INTTYPES_H |
a848cd7e | 617 | # include <inttypes.h> |
7fd3acaf | 618 | #endif |
47964710 VS |
619 | #ifdef HAVE_STDINT_H |
620 | # include <stdint.h> | |
621 | #endif | |
622 | #ifdef HAVE_UNISTD_H | |
a848cd7e SC |
623 | # include <unistd.h> |
624 | #endif" | |
625 | ||
3dd30495 VZ |
626 | enable_option_checking=no |
627 | ac_subst_vars='LTLIBOBJS | |
d589327a | 628 | LIBOBJS |
3dd30495 VZ |
629 | CPPUNIT_CONFIG |
630 | DLLTOOL | |
631 | GCC | |
632 | MACSETFILE | |
633 | POSTLINK_COMMAND | |
634 | LIBWXMACRES | |
635 | WX_RESOURCES_MACOSX_DATA | |
636 | WX_RESOURCES_MACOSX_ASCII | |
637 | RESPROGRAMOBJ | |
638 | RESFLAGS | |
639 | RESCOMP | |
640 | WX_VERSION_TAG | |
641 | DMALLOC_LIBS | |
642 | OPENGL_LIBS | |
643 | LDFLAGS_GL | |
644 | SAMPLES_SUBDIRS | |
645 | DISTDIR | |
646 | GUIDIST | |
647 | WXCONFIG_RESFLAGS | |
648 | WXCONFIG_LDFLAGS_GUI | |
649 | WXCONFIG_LDFLAGS | |
650 | WXCONFIG_RPATH | |
651 | WXCONFIG_LIBS | |
652 | WXCONFIG_CXXFLAGS | |
653 | WXCONFIG_CFLAGS | |
654 | WXCONFIG_CPPFLAGS | |
655 | WX_CHARTYPE | |
656 | WX_SUBVERSION | |
657 | WX_VERSION | |
658 | WX_RELEASE | |
659 | WIDGET_SET | |
660 | cross_compiling | |
661 | TOOLCHAIN_FULLNAME | |
662 | TOOLCHAIN_NAME | |
663 | TOOLKIT_DIR | |
664 | TOOLKIT | |
665 | WIN32INSTALL | |
666 | AFMINSTALL | |
667 | USE_GUI | |
668 | WX_LIBRARY_BASENAME_GUI | |
669 | WX_LIBRARY_BASENAME_NOGUI | |
670 | SHARED | |
671 | DEREZ | |
672 | COND_wxUSE_ZLIB_builtin | |
673 | COND_wxUSE_REGEX_builtin | |
674 | COND_wxUSE_LIBTIFF_builtin | |
675 | COND_wxUSE_LIBPNG_builtin | |
676 | COND_wxUSE_LIBJPEG_builtin | |
677 | COND_wxUSE_EXPAT_builtin | |
678 | COND_WXUSE_ZLIB_BUILTIN | |
679 | COND_WXUSE_REGEX_BUILTIN | |
680 | COND_WXUSE_LIBTIFF_BUILTIN | |
681 | COND_WXUSE_LIBPNG_BUILTIN | |
682 | COND_WXUSE_LIBJPEG_BUILTIN | |
683 | COND_WXUSE_EXPAT_BUILTIN | |
684 | COND_WXUNIV_1 | |
685 | COND_WXUNIV_0 | |
686 | COND_WITH_PLUGIN_SDL_1 | |
687 | COND_WINDOWS_IMPLIB_1 | |
688 | COND_USE_XRC_1 | |
689 | COND_USE_THREADS_1 | |
690 | COND_USE_THREADS_0 | |
691 | COND_USE_STC_1 | |
692 | COND_USE_SOVERSOLARIS_1 | |
693 | COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1 | |
694 | COND_USE_SOVERSION_0 | |
695 | COND_USE_SOVERLINUX_1 | |
696 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 | |
697 | COND_USE_SOTWOSYMLINKS_1 | |
698 | COND_USE_RTTI_1 | |
699 | COND_USE_RTTI_0 | |
700 | COND_USE_PLUGINS_0 | |
701 | COND_USE_PCH_1 | |
702 | COND_USE_OPENGL_1 | |
703 | COND_USE_GUI_1_wxUSE_LIBTIFF_builtin | |
704 | COND_USE_GUI_1_wxUSE_LIBPNG_builtin | |
705 | COND_USE_GUI_1_wxUSE_LIBJPEG_builtin | |
706 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN | |
707 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN | |
708 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN | |
709 | COND_USE_GUI_1_WXUNIV_1 | |
710 | COND_USE_GUI_1_WXUNIV_0 | |
711 | COND_USE_GUI_1_USE_OPENGL_1 | |
712 | COND_USE_GUI_1 | |
713 | COND_USE_GUI_0 | |
714 | COND_USE_EXCEPTIONS_1 | |
715 | COND_USE_EXCEPTIONS_0 | |
716 | COND_USE_CAIRO_1 | |
717 | COND_UNICODE_1 | |
718 | COND_TOOLKIT_X11_USE_GUI_1 | |
719 | COND_TOOLKIT_X11 | |
720 | COND_TOOLKIT_WINCE_WXUNIV_0 | |
721 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 | |
722 | COND_TOOLKIT_WINCE_USE_GUI_1 | |
723 | COND_TOOLKIT_WINCE | |
724 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 | |
725 | COND_TOOLKIT_PM_USE_GUI_1 | |
726 | COND_TOOLKIT_PM | |
727 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0 | |
728 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1 | |
729 | COND_TOOLKIT_OSX_IPHONE | |
730 | COND_TOOLKIT_OSX_COCOA_USE_GUI_1 | |
731 | COND_TOOLKIT_OSX_COCOA | |
732 | COND_TOOLKIT_OSX_CARBON_USE_GUI_1 | |
733 | COND_TOOLKIT_OSX_CARBON | |
734 | COND_TOOLKIT_MSW_WXUNIV_0 | |
735 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 | |
736 | COND_TOOLKIT_MSW_USE_GUI_1 | |
737 | COND_TOOLKIT_MSW | |
738 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 | |
739 | COND_TOOLKIT_MOTIF_USE_GUI_1 | |
740 | COND_TOOLKIT_MOTIF | |
741 | COND_TOOLKIT_MAC | |
742 | COND_TOOLKIT_GTK_USE_GUI_1 | |
743 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 | |
744 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 | |
9dc44eff PC |
745 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_WXUNIV_0 |
746 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1_WXUNIV_0 | |
747 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1 | |
748 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3 | |
d48f13a1 | 749 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_1 |
9dc44eff | 750 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0 |
d48f13a1 | 751 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_1 |
3dd30495 VZ |
752 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 |
753 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 | |
754 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 | |
755 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_ | |
756 | COND_TOOLKIT_GTK | |
757 | COND_TOOLKIT_DFB_USE_GUI_1 | |
758 | COND_TOOLKIT_DFB | |
759 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 | |
760 | COND_TOOLKIT_COCOA_USE_GUI_1 | |
761 | COND_TOOLKIT_COCOA | |
762 | COND_TOOLKIT_ | |
763 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 | |
764 | COND_SHARED_1 | |
765 | COND_SHARED_0_wxUSE_ZLIB_builtin | |
766 | COND_SHARED_0_wxUSE_REGEX_builtin | |
767 | COND_SHARED_0_wxUSE_EXPAT_builtin | |
768 | COND_SHARED_0_USE_STC_1 | |
769 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin | |
770 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin | |
771 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin | |
772 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 | |
773 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 | |
774 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 | |
775 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 | |
776 | COND_SHARED_0 | |
d48f13a1 VZ |
777 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1 |
778 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_3 | |
779 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 | |
780 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_2 | |
3dd30495 VZ |
781 | COND_PLATFORM_WIN32_1_SHARED_0 |
782 | COND_PLATFORM_WIN32_1 | |
d48f13a1 | 783 | COND_PLATFORM_WIN32_0_TOOLKIT_GTK_TOOLKIT_VERSION_3 |
3dd30495 VZ |
784 | COND_PLATFORM_WIN32_0 |
785 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0 | |
786 | COND_PLATFORM_UNIX_1_USE_GUI_1 | |
9dc44eff PC |
787 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1 |
788 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3 | |
3dd30495 VZ |
789 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 |
790 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2 | |
791 | COND_PLATFORM_UNIX_1 | |
792 | COND_PLATFORM_UNIX_0 | |
793 | COND_PLATFORM_OS2_1 | |
794 | COND_PLATFORM_MSDOS_1 | |
795 | COND_PLATFORM_MSDOS_0 | |
796 | COND_PLATFORM_MAC_1 | |
797 | COND_PLATFORM_MAC_0 | |
798 | COND_PLATFORM_MACOS_1 | |
799 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 | |
800 | COND_PLATFORM_MACOSX_1_USE_OPENGL_1 | |
801 | COND_PLATFORM_MACOSX_1_USE_GUI_1 | |
802 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0 | |
803 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1 | |
804 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0 | |
805 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1 | |
806 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0 | |
807 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1 | |
eff9d7f5 VZ |
808 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1 |
809 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3 | |
810 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 | |
811 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2 | |
3dd30495 VZ |
812 | COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0 |
813 | COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0 | |
814 | COND_PLATFORM_MACOSX_1 | |
815 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 | |
816 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 | |
817 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 | |
818 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 | |
819 | COND_MONOLITHIC_1_SHARED_1 | |
820 | COND_MONOLITHIC_1_SHARED_0 | |
821 | COND_MONOLITHIC_1 | |
822 | COND_MONOLITHIC_0_USE_XRC_1 | |
823 | COND_MONOLITHIC_0_USE_WEBVIEW_1 | |
824 | COND_MONOLITHIC_0_USE_STC_1 | |
825 | COND_MONOLITHIC_0_USE_RICHTEXT_1 | |
826 | COND_MONOLITHIC_0_USE_RIBBON_1 | |
827 | COND_MONOLITHIC_0_USE_QA_1 | |
828 | COND_MONOLITHIC_0_USE_PROPGRID_1 | |
829 | COND_MONOLITHIC_0_USE_MEDIA_1 | |
830 | COND_MONOLITHIC_0_USE_HTML_1 | |
831 | COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1 | |
832 | COND_MONOLITHIC_0_USE_GUI_1 | |
833 | COND_MONOLITHIC_0_USE_AUI_1 | |
834 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 | |
835 | COND_MONOLITHIC_0_SHARED_1_USE_STC_1 | |
836 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1 | |
837 | COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1 | |
838 | COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1 | |
839 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1 | |
840 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 | |
841 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1 | |
842 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 | |
843 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 | |
844 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1 | |
845 | COND_MONOLITHIC_0_SHARED_1 | |
846 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 | |
847 | COND_MONOLITHIC_0_SHARED_0_USE_STC_1 | |
848 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1 | |
849 | COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1 | |
850 | COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1 | |
851 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1 | |
852 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 | |
853 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 | |
854 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 | |
855 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 | |
856 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 | |
857 | COND_MONOLITHIC_0_SHARED_0 | |
858 | COND_MONOLITHIC_0 | |
859 | COND_ICC_PCH_1 | |
860 | COND_GCC_PCH_1 | |
861 | COND_DEPS_TRACKING_1 | |
862 | COND_DEPS_TRACKING_0 | |
863 | COND_DEBUG_INFO_1 | |
864 | COND_DEBUG_INFO_0 | |
865 | COND_DEBUG_FLAG_1 | |
866 | COND_DEBUG_FLAG_0 | |
867 | COND_BUILD_release_UNICODE_1 | |
868 | COND_BUILD_release_UNICODE_0 | |
869 | COND_BUILD_release_DEBUG_INFO_default | |
870 | COND_BUILD_release | |
871 | COND_BUILD_debug_UNICODE_1 | |
872 | COND_BUILD_debug_UNICODE_0 | |
873 | COND_BUILD_debug_DEBUG_INFO_default | |
874 | COND_BUILD_debug_DEBUG_FLAG_default | |
875 | COND_BUILD_debug | |
876 | COND_BUILD_RELEASE_UNICODE_1 | |
877 | COND_BUILD_RELEASE_UNICODE_0 | |
878 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT | |
879 | COND_BUILD_RELEASE | |
880 | COND_BUILD_DEBUG_UNICODE_1 | |
881 | COND_BUILD_DEBUG_UNICODE_0 | |
882 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT | |
883 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT | |
884 | COND_BUILD_DEBUG | |
885 | BK_MAKE_PCH | |
886 | ICC_PCH_USE_SWITCH | |
887 | ICC_PCH_CREATE_SWITCH | |
888 | ICC_PCH | |
889 | GCC_PCH | |
890 | OBJCXXFLAGS | |
891 | SETFILE | |
892 | REZ | |
893 | WINDRES | |
894 | BK_DEPS | |
895 | DEPS_TRACKING | |
896 | SONAME_FLAG | |
897 | USE_SOTWOSYMLINKS | |
898 | USE_MACVERSION | |
899 | USE_SOVERCYGWIN | |
900 | USE_SOVERSOLARIS | |
901 | USE_SOVERLINUX | |
902 | USE_SOVERSION | |
903 | WINDOWS_IMPLIB | |
904 | PIC_FLAG | |
905 | SHARED_LD_MODULE_CXX | |
906 | SHARED_LD_MODULE_CC | |
907 | SHARED_LD_CXX | |
908 | SHARED_LD_CC | |
909 | AIX_CXX_LD | |
910 | dlldir | |
911 | DLLPREFIX_MODULE | |
912 | DLLPREFIX | |
913 | LIBEXT | |
914 | LIBPREFIX | |
915 | DLLIMP_SUFFIX | |
916 | SO_SUFFIX_MODULE | |
917 | SO_SUFFIX | |
918 | PLATFORM_BEOS | |
919 | PLATFORM_OS2 | |
920 | PLATFORM_MACOSX | |
921 | PLATFORM_MACOS | |
922 | PLATFORM_MAC | |
923 | PLATFORM_MSDOS | |
924 | PLATFORM_WIN32 | |
925 | PLATFORM_UNIX | |
926 | IF_GNU_MAKE | |
927 | LDFLAGS_GUI | |
928 | INSTALL_DIR | |
929 | NM | |
930 | STRIP | |
931 | AROPTIONS | |
932 | MAKE_SET | |
933 | SET_MAKE | |
934 | LN_S | |
935 | INSTALL_DATA | |
936 | INSTALL_SCRIPT | |
937 | INSTALL_PROGRAM | |
938 | RANLIB | |
939 | CPPUNIT_LIBS | |
940 | CPPUNIT_CFLAGS | |
941 | HOST_SUFFIX | |
942 | HEADER_PAD_OPTION | |
943 | SAMPLES_RPATH_FLAG | |
944 | DYLIB_RPATH_POSTLINK | |
945 | DYLIB_RPATH_INSTALL | |
946 | TOOLKIT_VERSION | |
947 | TOOLKIT_LOWERCASE | |
948 | DEBUG_FLAG | |
949 | DEBUG_INFO | |
950 | UNICODE | |
3dd30495 VZ |
951 | WITH_PLUGIN_SDL |
952 | EXTRALIBS_STC | |
953 | EXTRALIBS_SDL | |
954 | EXTRALIBS_OPENGL | |
955 | EXTRALIBS_GUI | |
956 | EXTRALIBS_MEDIA | |
957 | EXTRALIBS_HTML | |
958 | EXTRALIBS_XML | |
959 | EXTRALIBS | |
960 | CXXWARNINGS | |
961 | USE_PLUGINS | |
962 | MONOLITHIC | |
963 | WXUNIV | |
964 | WX_LIB_FLAVOUR | |
965 | WX_FLAVOUR | |
966 | OFFICIAL_BUILD | |
967 | VENDOR | |
968 | wxUSE_LIBTIFF | |
969 | wxUSE_LIBPNG | |
970 | wxUSE_LIBJPEG | |
971 | wxUSE_EXPAT | |
972 | wxUSE_REGEX | |
973 | wxUSE_ZLIB | |
974 | STD_GUI_LIBS | |
975 | STD_BASE_LIBS | |
976 | BUILT_WX_LIBS | |
977 | ALL_WX_LIBS | |
978 | GST_LIBS | |
979 | GST_CFLAGS | |
980 | CAIRO_LIBS | |
981 | CAIRO_CFLAGS | |
982 | WEBKIT_LIBS | |
983 | WEBKIT_CFLAGS | |
984 | COND_PYTHON | |
985 | PYTHON | |
986 | HILDON2_LIBS | |
987 | HILDON2_CFLAGS | |
988 | HILDON_LIBS | |
989 | HILDON_CFLAGS | |
afbf46a3 VZ |
990 | LIBNOTIFY_LIBS |
991 | LIBNOTIFY_CFLAGS | |
3dd30495 VZ |
992 | GNOMEVFS_LIBS |
993 | GNOMEVFS_CFLAGS | |
994 | LIBGNOMEPRINTUI_LIBS | |
995 | LIBGNOMEPRINTUI_CFLAGS | |
996 | GTKPRINT_LIBS | |
997 | GTKPRINT_CFLAGS | |
998 | SDL_LIBS | |
999 | SDL_CFLAGS | |
1000 | SDL_CONFIG | |
1001 | GXX_VERSION | |
1002 | LIBICONV | |
1003 | CXXFLAGS_VISIBILITY | |
1004 | CFLAGS_VISIBILITY | |
1005 | MesaGL_LIBS | |
1006 | MesaGL_CFLAGS | |
1007 | GLU_LIBS | |
1008 | GLU_CFLAGS | |
1009 | GL_LIBS | |
1010 | GL_CFLAGS | |
1011 | SM_LIBS | |
1012 | SM_CFLAGS | |
1013 | Xxf86vm_LIBS | |
1014 | Xxf86vm_CFLAGS | |
1015 | Xinerama_LIBS | |
1016 | Xinerama_CFLAGS | |
1017 | PANGOXFT_LIBS | |
1018 | PANGOXFT_CFLAGS | |
1019 | PANGOFT2_LIBS | |
1020 | PANGOFT2_CFLAGS | |
1021 | PANGOX_LIBS | |
1022 | PANGOX_CFLAGS | |
1023 | X_EXTRA_LIBS | |
1024 | X_LIBS | |
1025 | X_PRE_LIBS | |
1026 | X_CFLAGS | |
1027 | XMKMF | |
1028 | DIRECTFB_LIBS | |
1029 | DIRECTFB_CFLAGS | |
1030 | GTK_CONFIG | |
1031 | GTK_LIBS | |
1032 | GTK_CFLAGS | |
1033 | PKG_CONFIG | |
1034 | subdirs | |
1035 | CXXCPP | |
3dd30495 VZ |
1036 | AR |
1037 | ac_ct_CXX | |
1038 | CXXFLAGS | |
1039 | CXX | |
1040 | EGREP | |
1041 | GREP | |
1042 | CPP | |
1043 | OBJEXT | |
1044 | EXEEXT | |
1045 | ac_ct_CC | |
1046 | CPPFLAGS | |
1047 | LDFLAGS | |
1048 | CFLAGS | |
1049 | CC | |
1050 | wx_top_builddir | |
1051 | host_os | |
1052 | host_vendor | |
1053 | host_cpu | |
1054 | host | |
1055 | build_os | |
1056 | build_vendor | |
1057 | build_cpu | |
1058 | build | |
1059 | target_alias | |
1060 | host_alias | |
1061 | build_alias | |
1062 | LIBS | |
1063 | ECHO_T | |
1064 | ECHO_N | |
1065 | ECHO_C | |
1066 | DEFS | |
1067 | mandir | |
1068 | localedir | |
1069 | libdir | |
1070 | psdir | |
1071 | pdfdir | |
1072 | dvidir | |
1073 | htmldir | |
1074 | infodir | |
1075 | docdir | |
1076 | oldincludedir | |
1077 | includedir | |
1078 | localstatedir | |
1079 | sharedstatedir | |
1080 | sysconfdir | |
1081 | datadir | |
1082 | datarootdir | |
1083 | libexecdir | |
1084 | sbindir | |
1085 | bindir | |
1086 | program_transform_name | |
1087 | prefix | |
1088 | exec_prefix | |
1089 | PACKAGE_URL | |
1090 | PACKAGE_BUGREPORT | |
1091 | PACKAGE_STRING | |
1092 | PACKAGE_VERSION | |
1093 | PACKAGE_TARNAME | |
1094 | PACKAGE_NAME | |
1095 | PATH_SEPARATOR | |
1096 | SHELL' | |
1097 | ac_subst_files='' | |
1098 | ac_user_opts=' | |
1099 | enable_option_checking | |
1100 | enable_gui | |
1101 | enable_monolithic | |
1102 | enable_plugins | |
1103 | with_subdirs | |
1104 | with_flavour | |
1105 | enable_official_build | |
1106 | enable_vendor | |
1107 | enable_all_features | |
1108 | enable_universal | |
1109 | with_themes | |
1110 | with_gtk | |
1111 | with_motif | |
1112 | with_osx_carbon | |
1113 | with_osx_cocoa | |
1114 | with_osx_iphone | |
1115 | with_osx | |
1116 | with_carbon | |
1117 | with_cocoa | |
1118 | with_iphone | |
1119 | with_mac | |
1120 | with_old_cocoa | |
1121 | with_wine | |
1122 | with_msw | |
1123 | with_pm | |
1124 | with_directfb | |
1125 | with_microwin | |
1126 | with_x11 | |
1127 | enable_nanox | |
3dd30495 VZ |
1128 | enable_gpe |
1129 | with_libpng | |
1130 | with_libjpeg | |
1131 | with_libtiff | |
1132 | with_libxpm | |
1133 | with_libiconv | |
1134 | with_libmspack | |
1135 | with_gtkprint | |
1136 | with_gnomeprint | |
1137 | with_gnomevfs | |
afbf46a3 | 1138 | with_libnotify |
3dd30495 VZ |
1139 | with_hildon |
1140 | with_opengl | |
1141 | with_dmalloc | |
1142 | with_sdl | |
1143 | with_regex | |
1144 | with_zlib | |
1145 | with_expat | |
1146 | with_macosx_sdk | |
1147 | with_macosx_version_min | |
1148 | enable_debug | |
1149 | enable_debug_flag | |
1150 | enable_debug_info | |
1151 | enable_debug_gdb | |
1152 | enable_debug_cntxt | |
1153 | enable_mem_tracing | |
1154 | enable_shared | |
1155 | enable_stl | |
1156 | enable_std_containers | |
1157 | enable_std_iostreams | |
1158 | enable_std_string | |
1159 | enable_std_string_conv_in_wxstring | |
1160 | enable_unicode | |
1161 | enable_mslu | |
1162 | enable_utf8 | |
1163 | enable_utf8only | |
1164 | enable_extended_rtti | |
1165 | enable_omf | |
1166 | enable_optimise | |
1167 | enable_profile | |
1168 | enable_no_rtti | |
1169 | enable_no_exceptions | |
1170 | enable_permissive | |
1171 | enable_no_deps | |
1172 | enable_vararg_macros | |
1173 | enable_universal_binary | |
1174 | enable_macosx_arch | |
1175 | enable_compat26 | |
1176 | enable_compat28 | |
1177 | enable_rpath | |
1178 | enable_objc_uniquifying | |
1179 | enable_visibility | |
1180 | enable_tls | |
1181 | enable_intl | |
1182 | enable_xlocale | |
1183 | enable_config | |
1184 | enable_protocols | |
1185 | enable_ftp | |
1186 | enable_http | |
1187 | enable_fileproto | |
1188 | enable_sockets | |
1189 | enable_ipv6 | |
1190 | enable_ole | |
1191 | enable_dataobj | |
1192 | enable_ipc | |
1193 | enable_baseevtloop | |
1194 | enable_epollloop | |
1195 | enable_selectloop | |
1196 | enable_any | |
1197 | enable_apple_ieee | |
1198 | enable_arcstream | |
1199 | enable_base64 | |
1200 | enable_backtrace | |
1201 | enable_catch_segvs | |
1202 | enable_cmdline | |
1203 | enable_datetime | |
1204 | enable_debugreport | |
1205 | enable_dialupman | |
1206 | enable_dynlib | |
1207 | enable_dynamicloader | |
1208 | enable_exceptions | |
1209 | enable_ffile | |
1210 | enable_file | |
1211 | enable_filehistory | |
1212 | enable_filesystem | |
1213 | enable_fontenum | |
1214 | enable_fontmap | |
1215 | enable_fs_archive | |
1216 | enable_fs_inet | |
1217 | enable_fs_zip | |
1218 | enable_fswatcher | |
1219 | enable_geometry | |
1220 | enable_log | |
1221 | enable_longlong | |
1222 | enable_mimetype | |
1223 | enable_printfposparam | |
1224 | enable_snglinst | |
1225 | enable_sound | |
1226 | enable_stdpaths | |
1227 | enable_stopwatch | |
1228 | enable_streams | |
1229 | enable_sysoptions | |
1230 | enable_tarstream | |
1231 | enable_textbuf | |
1232 | enable_textfile | |
1233 | enable_timer | |
1234 | enable_variant | |
1235 | enable_zipstream | |
1236 | enable_url | |
1237 | enable_protocol | |
1238 | enable_protocol_http | |
1239 | enable_protocol_ftp | |
1240 | enable_protocol_file | |
1241 | enable_threads | |
1242 | enable_iniconf | |
1243 | enable_regkey | |
1244 | enable_docview | |
1245 | enable_help | |
1246 | enable_mshtmlhelp | |
1247 | enable_html | |
1248 | enable_htmlhelp | |
1249 | enable_xrc | |
1250 | enable_aui | |
1251 | enable_propgrid | |
1252 | enable_ribbon | |
1253 | enable_stc | |
1254 | enable_constraints | |
1255 | enable_loggui | |
1256 | enable_logwin | |
1257 | enable_logdialog | |
1258 | enable_mdi | |
1259 | enable_mdidoc | |
1260 | enable_mediactrl | |
1261 | enable_gstreamer8 | |
1262 | enable_richtext | |
1263 | enable_postscript | |
1264 | enable_printarch | |
1265 | enable_svg | |
1266 | enable_webkit | |
1267 | enable_webview | |
1268 | enable_graphics_ctx | |
1269 | enable_clipboard | |
1270 | enable_dnd | |
1271 | enable_controls | |
1272 | enable_markup | |
1273 | enable_accel | |
1274 | enable_animatectrl | |
1275 | enable_bannerwindow | |
1276 | enable_artstd | |
1277 | enable_arttango | |
1278 | enable_bmpbutton | |
1279 | enable_bmpcombobox | |
1280 | enable_button | |
1281 | enable_calendar | |
1282 | enable_caret | |
1283 | enable_checkbox | |
1284 | enable_checklst | |
1285 | enable_choice | |
1286 | enable_choicebook | |
1287 | enable_collpane | |
1288 | enable_colourpicker | |
1289 | enable_combobox | |
1290 | enable_comboctrl | |
1291 | enable_commandlinkbutton | |
1292 | enable_dataviewctrl | |
1293 | enable_datepick | |
1294 | enable_detect_sm | |
1295 | enable_dirpicker | |
1296 | enable_display | |
1297 | enable_editablebox | |
1298 | enable_filectrl | |
1299 | enable_filepicker | |
1300 | enable_fontpicker | |
1301 | enable_gauge | |
1302 | enable_grid | |
1303 | enable_headerctrl | |
1304 | enable_hyperlink | |
1305 | enable_imaglist | |
1306 | enable_infobar | |
1307 | enable_listbook | |
1308 | enable_listbox | |
1309 | enable_listctrl | |
1310 | enable_notebook | |
1311 | enable_notifmsg | |
1312 | enable_odcombobox | |
1313 | enable_popupwin | |
1314 | enable_radiobox | |
1315 | enable_radiobtn | |
1316 | enable_richmsgdlg | |
1317 | enable_richtooltip | |
1318 | enable_rearrangectrl | |
1319 | enable_sash | |
1320 | enable_scrollbar | |
1321 | enable_searchctrl | |
1322 | enable_slider | |
1323 | enable_spinbtn | |
1324 | enable_spinctrl | |
1325 | enable_splitter | |
1326 | enable_statbmp | |
1327 | enable_statbox | |
1328 | enable_statline | |
1329 | enable_stattext | |
1330 | enable_statusbar | |
1331 | enable_taskbaricon | |
1332 | enable_tbarnative | |
1333 | enable_textctrl | |
1334 | enable_tipwindow | |
1335 | enable_togglebtn | |
1336 | enable_toolbar | |
1337 | enable_toolbook | |
1338 | enable_treebook | |
1339 | enable_treectrl | |
1340 | enable_treelist | |
1341 | enable_commondlg | |
1342 | enable_aboutdlg | |
1343 | enable_choicedlg | |
1344 | enable_coldlg | |
1345 | enable_filedlg | |
1346 | enable_finddlg | |
1347 | enable_fontdlg | |
1348 | enable_dirdlg | |
1349 | enable_msgdlg | |
1350 | enable_numberdlg | |
1351 | enable_splash | |
1352 | enable_textdlg | |
1353 | enable_tipdlg | |
1354 | enable_progressdlg | |
1355 | enable_wizarddlg | |
1356 | enable_menus | |
1357 | enable_miniframe | |
1358 | enable_tooltips | |
1359 | enable_splines | |
1360 | enable_mousewheel | |
1361 | enable_validators | |
1362 | enable_busyinfo | |
1363 | enable_hotkey | |
1364 | enable_joystick | |
1365 | enable_metafile | |
1366 | enable_dragimage | |
1367 | enable_accessibility | |
1368 | enable_uiactionsim | |
1369 | enable_dctransform | |
1370 | enable_webviewwebkit | |
1371 | enable_palette | |
1372 | enable_image | |
1373 | enable_gif | |
1374 | enable_pcx | |
1375 | enable_tga | |
1376 | enable_iff | |
1377 | enable_pnm | |
1378 | enable_xpm | |
1379 | enable_ico_cur | |
1380 | enable_dccache | |
1381 | enable_ps_in_msw | |
1382 | enable_ownerdrawn | |
1383 | enable_uxtheme | |
1384 | enable_wxdib | |
1385 | enable_webviewie | |
1386 | enable_autoidman | |
1387 | enable_largefile | |
1388 | enable_gtktest | |
1389 | with_gtk_prefix | |
1390 | with_gtk_exec_prefix | |
1391 | with_x | |
1392 | with_libiconv_prefix | |
1393 | with_sdl_prefix | |
1394 | with_sdl_exec_prefix | |
1395 | enable_sdltest | |
1396 | enable_dependency_tracking | |
1397 | enable_precomp_headers | |
1398 | with_cppunit_prefix | |
1399 | with_cppunit_exec_prefix | |
1400 | ' | |
1401 | ac_precious_vars='build_alias | |
1402 | host_alias | |
1403 | target_alias | |
1404 | CC | |
1405 | CFLAGS | |
1406 | LDFLAGS | |
1407 | LIBS | |
1408 | CPPFLAGS | |
1409 | CPP | |
1410 | CXX | |
1411 | CXXFLAGS | |
1412 | CCC | |
1413 | CXXCPP | |
1414 | PKG_CONFIG | |
1415 | DIRECTFB_CFLAGS | |
1416 | DIRECTFB_LIBS | |
1417 | XMKMF | |
1418 | PANGOX_CFLAGS | |
1419 | PANGOX_LIBS | |
1420 | PANGOFT2_CFLAGS | |
1421 | PANGOFT2_LIBS | |
1422 | PANGOXFT_CFLAGS | |
1423 | PANGOXFT_LIBS | |
1424 | Xinerama_CFLAGS | |
1425 | Xinerama_LIBS | |
1426 | Xxf86vm_CFLAGS | |
1427 | Xxf86vm_LIBS | |
1428 | SM_CFLAGS | |
1429 | SM_LIBS | |
1430 | GL_CFLAGS | |
1431 | GL_LIBS | |
1432 | GLU_CFLAGS | |
1433 | GLU_LIBS | |
1434 | MesaGL_CFLAGS | |
1435 | MesaGL_LIBS | |
1436 | GTKPRINT_CFLAGS | |
1437 | GTKPRINT_LIBS | |
1438 | LIBGNOMEPRINTUI_CFLAGS | |
1439 | LIBGNOMEPRINTUI_LIBS | |
1440 | GNOMEVFS_CFLAGS | |
1441 | GNOMEVFS_LIBS | |
afbf46a3 VZ |
1442 | LIBNOTIFY_CFLAGS |
1443 | LIBNOTIFY_LIBS | |
3dd30495 VZ |
1444 | HILDON_CFLAGS |
1445 | HILDON_LIBS | |
1446 | HILDON2_CFLAGS | |
1447 | HILDON2_LIBS | |
1448 | WEBKIT_CFLAGS | |
1449 | WEBKIT_LIBS | |
1450 | CAIRO_CFLAGS | |
1451 | CAIRO_LIBS | |
1452 | GST_CFLAGS | |
1453 | GST_LIBS' | |
1454 | ac_subdirs_all='src/tiff | |
1455 | src/expat' | |
d1c38808 | 1456 | |
3dd30495 VZ |
1457 | # Initialize some variables set by options. |
1458 | ac_init_help= | |
1459 | ac_init_version=false | |
1460 | ac_unrecognized_opts= | |
1461 | ac_unrecognized_sep= | |
1462 | # The variables have the same names as the options, with | |
1463 | # dashes changed to underlines. | |
1464 | cache_file=/dev/null | |
1465 | exec_prefix=NONE | |
1466 | no_create= | |
1467 | no_recursion= | |
1468 | prefix=NONE | |
1469 | program_prefix=NONE | |
1470 | program_suffix=NONE | |
1471 | program_transform_name=s,x,x, | |
1472 | silent= | |
1473 | site= | |
1474 | srcdir= | |
1475 | verbose= | |
1476 | x_includes=NONE | |
1477 | x_libraries=NONE | |
2b850ae1 | 1478 | |
3dd30495 VZ |
1479 | # Installation directory options. |
1480 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1481 | # and all the variables that are supposed to be based on exec_prefix | |
1482 | # by default will actually change. | |
1483 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
1484 | # (The list follows the same order as the GNU Coding Standards.) | |
1485 | bindir='${exec_prefix}/bin' | |
1486 | sbindir='${exec_prefix}/sbin' | |
1487 | libexecdir='${exec_prefix}/libexec' | |
1488 | datarootdir='${prefix}/share' | |
1489 | datadir='${datarootdir}' | |
1490 | sysconfdir='${prefix}/etc' | |
1491 | sharedstatedir='${prefix}/com' | |
1492 | localstatedir='${prefix}/var' | |
1493 | includedir='${prefix}/include' | |
1494 | oldincludedir='/usr/include' | |
1495 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
1496 | infodir='${datarootdir}/info' | |
1497 | htmldir='${docdir}' | |
1498 | dvidir='${docdir}' | |
1499 | pdfdir='${docdir}' | |
1500 | psdir='${docdir}' | |
1501 | libdir='${exec_prefix}/lib' | |
1502 | localedir='${datarootdir}/locale' | |
1503 | mandir='${datarootdir}/man' | |
2b850ae1 | 1504 | |
3dd30495 VZ |
1505 | ac_prev= |
1506 | ac_dashdash= | |
1507 | for ac_option | |
1508 | do | |
1509 | # If the previous option needs an argument, assign it. | |
1510 | if test -n "$ac_prev"; then | |
1511 | eval $ac_prev=\$ac_option | |
1512 | ac_prev= | |
1513 | continue | |
1514 | fi | |
2b850ae1 | 1515 | |
3dd30495 VZ |
1516 | case $ac_option in |
1517 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1518 | *=) ac_optarg= ;; | |
1519 | *) ac_optarg=yes ;; | |
1520 | esac | |
2b850ae1 | 1521 | |
3dd30495 | 1522 | # Accept the important Cygnus configure options, so we can diagnose typos. |
47964710 | 1523 | |
3dd30495 VZ |
1524 | case $ac_dashdash$ac_option in |
1525 | --) | |
1526 | ac_dashdash=yes ;; | |
2b850ae1 | 1527 | |
3dd30495 VZ |
1528 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1529 | ac_prev=bindir ;; | |
1530 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1531 | bindir=$ac_optarg ;; | |
2b850ae1 | 1532 | |
3dd30495 VZ |
1533 | -build | --build | --buil | --bui | --bu) |
1534 | ac_prev=build_alias ;; | |
1535 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1536 | build_alias=$ac_optarg ;; | |
2b850ae1 | 1537 | |
3dd30495 VZ |
1538 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
1539 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1540 | ac_prev=cache_file ;; | |
1541 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1542 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1543 | cache_file=$ac_optarg ;; | |
6e198e97 | 1544 | |
3dd30495 VZ |
1545 | --config-cache | -C) |
1546 | cache_file=config.cache ;; | |
2b850ae1 | 1547 | |
3dd30495 VZ |
1548 | -datadir | --datadir | --datadi | --datad) |
1549 | ac_prev=datadir ;; | |
1550 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1551 | datadir=$ac_optarg ;; | |
3565d135 | 1552 | |
3dd30495 VZ |
1553 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1554 | | --dataroo | --dataro | --datar) | |
1555 | ac_prev=datarootdir ;; | |
1556 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1557 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1558 | datarootdir=$ac_optarg ;; | |
3565d135 | 1559 | |
3dd30495 VZ |
1560 | -disable-* | --disable-*) |
1561 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1562 | # Reject names that are not valid shell variable names. | |
1563 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1564 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1565 | ac_useropt_orig=$ac_useropt | |
1566 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1567 | case $ac_user_opts in | |
1568 | *" | |
1569 | "enable_$ac_useropt" | |
1570 | "*) ;; | |
1571 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1572 | ac_unrecognized_sep=', ';; | |
1573 | esac | |
1574 | eval enable_$ac_useropt=no ;; | |
3565d135 | 1575 | |
3dd30495 VZ |
1576 | -docdir | --docdir | --docdi | --doc | --do) |
1577 | ac_prev=docdir ;; | |
1578 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1579 | docdir=$ac_optarg ;; | |
3565d135 | 1580 | |
3dd30495 VZ |
1581 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1582 | ac_prev=dvidir ;; | |
1583 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1584 | dvidir=$ac_optarg ;; | |
47964710 | 1585 | |
3dd30495 VZ |
1586 | -enable-* | --enable-*) |
1587 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1588 | # Reject names that are not valid shell variable names. | |
1589 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1590 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1591 | ac_useropt_orig=$ac_useropt | |
1592 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1593 | case $ac_user_opts in | |
1594 | *" | |
1595 | "enable_$ac_useropt" | |
1596 | "*) ;; | |
1597 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1598 | ac_unrecognized_sep=', ';; | |
1599 | esac | |
1600 | eval enable_$ac_useropt=\$ac_optarg ;; | |
3565d135 | 1601 | |
3dd30495 VZ |
1602 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1603 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1604 | | --exec | --exe | --ex) | |
1605 | ac_prev=exec_prefix ;; | |
1606 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1607 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1608 | | --exec=* | --exe=* | --ex=*) | |
1609 | exec_prefix=$ac_optarg ;; | |
3565d135 | 1610 | |
3dd30495 VZ |
1611 | -gas | --gas | --ga | --g) |
1612 | # Obsolete; use --with-gas. | |
1613 | with_gas=yes ;; | |
3565d135 | 1614 | |
3dd30495 VZ |
1615 | -help | --help | --hel | --he | -h) |
1616 | ac_init_help=long ;; | |
1617 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1618 | ac_init_help=recursive ;; | |
1619 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1620 | ac_init_help=short ;; | |
6e198e97 | 1621 | |
3dd30495 VZ |
1622 | -host | --host | --hos | --ho) |
1623 | ac_prev=host_alias ;; | |
1624 | -host=* | --host=* | --hos=* | --ho=*) | |
1625 | host_alias=$ac_optarg ;; | |
3565d135 | 1626 | |
3dd30495 VZ |
1627 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1628 | ac_prev=htmldir ;; | |
1629 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1630 | | --ht=*) | |
1631 | htmldir=$ac_optarg ;; | |
a848cd7e | 1632 | |
3dd30495 VZ |
1633 | -includedir | --includedir | --includedi | --included | --include \ |
1634 | | --includ | --inclu | --incl | --inc) | |
1635 | ac_prev=includedir ;; | |
1636 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1637 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1638 | includedir=$ac_optarg ;; | |
a848cd7e | 1639 | |
3dd30495 VZ |
1640 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1641 | ac_prev=infodir ;; | |
1642 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1643 | infodir=$ac_optarg ;; | |
a848cd7e | 1644 | |
3dd30495 VZ |
1645 | -libdir | --libdir | --libdi | --libd) |
1646 | ac_prev=libdir ;; | |
1647 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1648 | libdir=$ac_optarg ;; | |
a848cd7e | 1649 | |
3dd30495 VZ |
1650 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1651 | | --libexe | --libex | --libe) | |
1652 | ac_prev=libexecdir ;; | |
1653 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1654 | | --libexe=* | --libex=* | --libe=*) | |
1655 | libexecdir=$ac_optarg ;; | |
47964710 | 1656 | |
3dd30495 VZ |
1657 | -localedir | --localedir | --localedi | --localed | --locale) |
1658 | ac_prev=localedir ;; | |
1659 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1660 | localedir=$ac_optarg ;; | |
a848cd7e | 1661 | |
3dd30495 VZ |
1662 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
1663 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1664 | ac_prev=localstatedir ;; | |
1665 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1666 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1667 | localstatedir=$ac_optarg ;; | |
a848cd7e | 1668 | |
3dd30495 VZ |
1669 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1670 | ac_prev=mandir ;; | |
1671 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1672 | mandir=$ac_optarg ;; | |
a848cd7e | 1673 | |
3dd30495 VZ |
1674 | -nfp | --nfp | --nf) |
1675 | # Obsolete; use --without-fp. | |
1676 | with_fp=no ;; | |
a848cd7e | 1677 | |
3dd30495 VZ |
1678 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1679 | | --no-cr | --no-c | -n) | |
1680 | no_create=yes ;; | |
4353a8df | 1681 | |
3dd30495 VZ |
1682 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1683 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1684 | no_recursion=yes ;; | |
a848cd7e | 1685 | |
3dd30495 VZ |
1686 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1687 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1688 | | --oldin | --oldi | --old | --ol | --o) | |
1689 | ac_prev=oldincludedir ;; | |
1690 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1691 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1692 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1693 | oldincludedir=$ac_optarg ;; | |
a848cd7e | 1694 | |
3dd30495 VZ |
1695 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1696 | ac_prev=prefix ;; | |
1697 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1698 | prefix=$ac_optarg ;; | |
a848cd7e | 1699 | |
3dd30495 VZ |
1700 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1701 | | --program-pre | --program-pr | --program-p) | |
1702 | ac_prev=program_prefix ;; | |
1703 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1704 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1705 | program_prefix=$ac_optarg ;; | |
a848cd7e | 1706 | |
3dd30495 VZ |
1707 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1708 | | --program-suf | --program-su | --program-s) | |
1709 | ac_prev=program_suffix ;; | |
1710 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1711 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1712 | program_suffix=$ac_optarg ;; | |
a848cd7e | 1713 | |
3dd30495 VZ |
1714 | -program-transform-name | --program-transform-name \ |
1715 | | --program-transform-nam | --program-transform-na \ | |
1716 | | --program-transform-n | --program-transform- \ | |
1717 | | --program-transform | --program-transfor \ | |
1718 | | --program-transfo | --program-transf \ | |
1719 | | --program-trans | --program-tran \ | |
1720 | | --progr-tra | --program-tr | --program-t) | |
1721 | ac_prev=program_transform_name ;; | |
1722 | -program-transform-name=* | --program-transform-name=* \ | |
1723 | | --program-transform-nam=* | --program-transform-na=* \ | |
1724 | | --program-transform-n=* | --program-transform-=* \ | |
1725 | | --program-transform=* | --program-transfor=* \ | |
1726 | | --program-transfo=* | --program-transf=* \ | |
1727 | | --program-trans=* | --program-tran=* \ | |
1728 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1729 | program_transform_name=$ac_optarg ;; | |
a848cd7e | 1730 | |
3dd30495 VZ |
1731 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1732 | ac_prev=pdfdir ;; | |
1733 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1734 | pdfdir=$ac_optarg ;; | |
47964710 | 1735 | |
3dd30495 VZ |
1736 | -psdir | --psdir | --psdi | --psd | --ps) |
1737 | ac_prev=psdir ;; | |
1738 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1739 | psdir=$ac_optarg ;; | |
a848cd7e | 1740 | |
3dd30495 VZ |
1741 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1742 | | -silent | --silent | --silen | --sile | --sil) | |
1743 | silent=yes ;; | |
a848cd7e | 1744 | |
3dd30495 VZ |
1745 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1746 | ac_prev=sbindir ;; | |
1747 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1748 | | --sbi=* | --sb=*) | |
1749 | sbindir=$ac_optarg ;; | |
a848cd7e | 1750 | |
3dd30495 VZ |
1751 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1752 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1753 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1754 | | --sha | --sh) | |
1755 | ac_prev=sharedstatedir ;; | |
1756 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1757 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1758 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1759 | | --sha=* | --sh=*) | |
1760 | sharedstatedir=$ac_optarg ;; | |
6e198e97 | 1761 | |
3dd30495 VZ |
1762 | -site | --site | --sit) |
1763 | ac_prev=site ;; | |
1764 | -site=* | --site=* | --sit=*) | |
1765 | site=$ac_optarg ;; | |
a848cd7e | 1766 | |
3dd30495 VZ |
1767 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1768 | ac_prev=srcdir ;; | |
1769 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1770 | srcdir=$ac_optarg ;; | |
a848cd7e | 1771 | |
3dd30495 VZ |
1772 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1773 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1774 | ac_prev=sysconfdir ;; | |
1775 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1776 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1777 | sysconfdir=$ac_optarg ;; | |
84ebfcbd | 1778 | |
3dd30495 VZ |
1779 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1780 | ac_prev=target_alias ;; | |
1781 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1782 | target_alias=$ac_optarg ;; | |
84ebfcbd | 1783 | |
3dd30495 VZ |
1784 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1785 | verbose=yes ;; | |
84ebfcbd | 1786 | |
3dd30495 VZ |
1787 | -version | --version | --versio | --versi | --vers | -V) |
1788 | ac_init_version=: ;; | |
47964710 | 1789 | |
3dd30495 VZ |
1790 | -with-* | --with-*) |
1791 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1792 | # Reject names that are not valid shell variable names. | |
1793 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1794 | as_fn_error $? "invalid package name: $ac_useropt" | |
1795 | ac_useropt_orig=$ac_useropt | |
1796 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1797 | case $ac_user_opts in | |
1798 | *" | |
1799 | "with_$ac_useropt" | |
1800 | "*) ;; | |
1801 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1802 | ac_unrecognized_sep=', ';; | |
1803 | esac | |
1804 | eval with_$ac_useropt=\$ac_optarg ;; | |
84ebfcbd | 1805 | |
3dd30495 VZ |
1806 | -without-* | --without-*) |
1807 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1808 | # Reject names that are not valid shell variable names. | |
1809 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1810 | as_fn_error $? "invalid package name: $ac_useropt" | |
1811 | ac_useropt_orig=$ac_useropt | |
1812 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1813 | case $ac_user_opts in | |
1814 | *" | |
1815 | "with_$ac_useropt" | |
1816 | "*) ;; | |
1817 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1818 | ac_unrecognized_sep=', ';; | |
1819 | esac | |
1820 | eval with_$ac_useropt=no ;; | |
84ebfcbd | 1821 | |
3dd30495 VZ |
1822 | --x) |
1823 | # Obsolete; use --with-x. | |
1824 | with_x=yes ;; | |
84ebfcbd | 1825 | |
3dd30495 VZ |
1826 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1827 | | --x-incl | --x-inc | --x-in | --x-i) | |
1828 | ac_prev=x_includes ;; | |
1829 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1830 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1831 | x_includes=$ac_optarg ;; | |
84ebfcbd | 1832 | |
3dd30495 VZ |
1833 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1834 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1835 | ac_prev=x_libraries ;; | |
1836 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1837 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1838 | x_libraries=$ac_optarg ;; | |
84ebfcbd | 1839 | |
3dd30495 VZ |
1840 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1841 | Try \`$0 --help' for more information" | |
1842 | ;; | |
84ebfcbd | 1843 | |
3dd30495 VZ |
1844 | *=*) |
1845 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1846 | # Reject names that are not valid shell variable names. | |
1847 | case $ac_envvar in #( | |
1848 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1849 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1850 | esac | |
1851 | eval $ac_envvar=\$ac_optarg | |
1852 | export $ac_envvar ;; | |
a848cd7e | 1853 | |
3dd30495 VZ |
1854 | *) |
1855 | # FIXME: should be removed in autoconf 3.0. | |
1856 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1857 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1858 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
eff9d7f5 | 1859 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
3dd30495 | 1860 | ;; |
a848cd7e | 1861 | |
3dd30495 VZ |
1862 | esac |
1863 | done | |
a848cd7e | 1864 | |
3dd30495 VZ |
1865 | if test -n "$ac_prev"; then |
1866 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1867 | as_fn_error $? "missing argument to $ac_option" | |
47964710 VS |
1868 | fi |
1869 | ||
3dd30495 VZ |
1870 | if test -n "$ac_unrecognized_opts"; then |
1871 | case $enable_option_checking in | |
1872 | no) ;; | |
1873 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1874 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1875 | esac | |
1876 | fi | |
a848cd7e | 1877 | |
3dd30495 VZ |
1878 | # Check all directory arguments for consistency. |
1879 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1880 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1881 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1882 | libdir localedir mandir | |
1883 | do | |
1884 | eval ac_val=\$$ac_var | |
1885 | # Remove trailing slashes. | |
1886 | case $ac_val in | |
1887 | */ ) | |
1888 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1889 | eval $ac_var=\$ac_val;; | |
1890 | esac | |
1891 | # Be sure to have absolute directory names. | |
1892 | case $ac_val in | |
1893 | [\\/$]* | ?:[\\/]* ) continue;; | |
1894 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1895 | esac | |
1896 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1897 | done | |
a848cd7e | 1898 | |
3dd30495 VZ |
1899 | # There might be people who depend on the old broken behavior: `$host' |
1900 | # used to hold the argument of --host etc. | |
1901 | # FIXME: To remove some day. | |
1902 | build=$build_alias | |
1903 | host=$host_alias | |
1904 | target=$target_alias | |
a848cd7e | 1905 | |
3dd30495 VZ |
1906 | # FIXME: To remove some day. |
1907 | if test "x$host_alias" != x; then | |
1908 | if test "x$build_alias" = x; then | |
1909 | cross_compiling=maybe | |
3dd30495 VZ |
1910 | elif test "x$build_alias" != "x$host_alias"; then |
1911 | cross_compiling=yes | |
1912 | fi | |
47964710 VS |
1913 | fi |
1914 | ||
3dd30495 VZ |
1915 | ac_tool_prefix= |
1916 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
a848cd7e | 1917 | |
3dd30495 | 1918 | test "$silent" = yes && exec 6>/dev/null |
a848cd7e SC |
1919 | |
1920 | ||
3dd30495 VZ |
1921 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1922 | ac_ls_di=`ls -di .` && | |
1923 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1924 | as_fn_error $? "working directory cannot be determined" | |
1925 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1926 | as_fn_error $? "pwd does not report name of working directory" | |
a848cd7e | 1927 | |
a848cd7e | 1928 | |
3dd30495 VZ |
1929 | # Find the source files, if location was not specified. |
1930 | if test -z "$srcdir"; then | |
1931 | ac_srcdir_defaulted=yes | |
1932 | # Try the directory containing this script, then the parent directory. | |
1933 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1934 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1935 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1936 | X"$as_myself" : 'X\(//\)$' \| \ | |
1937 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1938 | $as_echo X"$as_myself" | | |
1939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1940 | s//\1/ | |
1941 | q | |
1942 | } | |
1943 | /^X\(\/\/\)[^/].*/{ | |
1944 | s//\1/ | |
1945 | q | |
1946 | } | |
1947 | /^X\(\/\/\)$/{ | |
1948 | s//\1/ | |
1949 | q | |
1950 | } | |
1951 | /^X\(\/\).*/{ | |
1952 | s//\1/ | |
1953 | q | |
1954 | } | |
1955 | s/.*/./; q'` | |
1956 | srcdir=$ac_confdir | |
1957 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1958 | srcdir=.. | |
1959 | fi | |
a848cd7e | 1960 | else |
3dd30495 | 1961 | ac_srcdir_defaulted=no |
47964710 | 1962 | fi |
3dd30495 VZ |
1963 | if test ! -r "$srcdir/$ac_unique_file"; then |
1964 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1965 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
47964710 | 1966 | fi |
3dd30495 VZ |
1967 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1968 | ac_abs_confdir=`( | |
1969 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1970 | pwd)` | |
1971 | # When building in place, set srcdir=. | |
1972 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1973 | srcdir=. | |
1974 | fi | |
1975 | # Remove unnecessary trailing slashes from srcdir. | |
1976 | # Double slashes in file names in object file debugging info | |
1977 | # mess up M-x gdb in Emacs. | |
1978 | case $srcdir in | |
1979 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1980 | esac | |
1981 | for ac_var in $ac_precious_vars; do | |
1982 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1983 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1984 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1985 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1986 | done | |
47964710 | 1987 | |
3dd30495 VZ |
1988 | # |
1989 | # Report the --help message. | |
1990 | # | |
1991 | if test "$ac_init_help" = "long"; then | |
1992 | # Omit some internal or obsolete options to make the list less imposing. | |
1993 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1994 | cat <<_ACEOF | |
9b1e7719 | 1995 | \`configure' configures wxWidgets 2.9.5 to adapt to many kinds of systems. |
b4e05bdd | 1996 | |
3dd30495 | 1997 | Usage: $0 [OPTION]... [VAR=VALUE]... |
47964710 | 1998 | |
3dd30495 VZ |
1999 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
2000 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
b4e05bdd | 2001 | |
3dd30495 | 2002 | Defaults for the options are specified in brackets. |
a848cd7e | 2003 | |
3dd30495 VZ |
2004 | Configuration: |
2005 | -h, --help display this help and exit | |
2006 | --help=short display options specific to this package | |
2007 | --help=recursive display the short help of all the included packages | |
2008 | -V, --version display version information and exit | |
2009 | -q, --quiet, --silent do not print \`checking ...' messages | |
2010 | --cache-file=FILE cache test results in FILE [disabled] | |
2011 | -C, --config-cache alias for \`--cache-file=config.cache' | |
2012 | -n, --no-create do not create output files | |
2013 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
a848cd7e | 2014 | |
3dd30495 VZ |
2015 | Installation directories: |
2016 | --prefix=PREFIX install architecture-independent files in PREFIX | |
2017 | [$ac_default_prefix] | |
2018 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
2019 | [PREFIX] | |
a848cd7e | 2020 | |
3dd30495 VZ |
2021 | By default, \`make install' will install all the files in |
2022 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
2023 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
2024 | for instance \`--prefix=\$HOME'. | |
47964710 | 2025 | |
3dd30495 | 2026 | For better control, use the options below. |
a848cd7e | 2027 | |
3dd30495 VZ |
2028 | Fine tuning of the installation directories: |
2029 | --bindir=DIR user executables [EPREFIX/bin] | |
2030 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
2031 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
2032 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
2033 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
2034 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
2035 | --libdir=DIR object code libraries [EPREFIX/lib] | |
2036 | --includedir=DIR C header files [PREFIX/include] | |
2037 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
2038 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
2039 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
2040 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
2041 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
2042 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
2043 | --docdir=DIR documentation root [DATAROOTDIR/doc/wxwidgets] | |
2044 | --htmldir=DIR html documentation [DOCDIR] | |
2045 | --dvidir=DIR dvi documentation [DOCDIR] | |
2046 | --pdfdir=DIR pdf documentation [DOCDIR] | |
2047 | --psdir=DIR ps documentation [DOCDIR] | |
2048 | _ACEOF | |
a848cd7e | 2049 | |
3dd30495 | 2050 | cat <<\_ACEOF |
a848cd7e | 2051 | |
3dd30495 VZ |
2052 | X features: |
2053 | --x-includes=DIR X include files are in DIR | |
2054 | --x-libraries=DIR X library files are in DIR | |
6e198e97 | 2055 | |
3dd30495 VZ |
2056 | System types: |
2057 | --build=BUILD configure for building on BUILD [guessed] | |
2058 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
2059 | _ACEOF | |
2060 | fi | |
a848cd7e | 2061 | |
3dd30495 VZ |
2062 | if test -n "$ac_init_help"; then |
2063 | case $ac_init_help in | |
9b1e7719 | 2064 | short | recursive ) echo "Configuration of wxWidgets 2.9.5:";; |
3dd30495 VZ |
2065 | esac |
2066 | cat <<\_ACEOF | |
89b1afb4 | 2067 | |
3dd30495 VZ |
2068 | Optional Features: |
2069 | --disable-option-checking ignore unrecognized --enable/--with options | |
2070 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
2071 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
2072 | --disable-gui don't build GUI parts of the library | |
2073 | --enable-monolithic build wxWidgets as single library | |
2074 | --enable-plugins build parts of wxWidgets as loadable components | |
2075 | --enable-official_build official build of wxWidgets (win32 DLL only) | |
2076 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
2077 | --disable-all-features disable all optional features to build minimal library | |
2078 | --enable-universal use wxWidgets GUI controls instead of native ones | |
2079 | --enable-nanox use NanoX | |
3dd30495 VZ |
2080 | --enable-gpe use GNOME PDA Environment features if possible |
2081 | --enable-debug build library for debugging | |
2082 | --disable-debug_flag disable all debugging support | |
2083 | --enable-debug_info generate debug information | |
2084 | --enable-debug_gdb create code with extra GDB debugging information | |
2085 | --enable-debug_cntxt obsolete, don't use: use wxDebugContext | |
2086 | --enable-mem_tracing obsolete, don't use: create code with memory tracing | |
2087 | --disable-shared create static library instead of shared | |
2088 | --enable-stl use standard C++ classes for everything | |
2089 | --enable-std_containers use standard C++ container classes | |
2090 | --enable-std_iostreams use standard C++ stream classes | |
2091 | --enable-std_string use standard C++ string classes | |
2092 | --enable-std_string_conv_in_wxstring provide implicit conversion to std::string in wxString | |
2093 | --disable-unicode compile without Unicode support | |
2094 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
2095 | --enable-utf8 use UTF-8 representation for strings (Unix only) | |
2096 | --enable-utf8only only support UTF-8 locales in UTF-8 build (Unix only) | |
2097 | --enable-extended_rtti use extended RTTI (XTI) | |
2098 | --enable-omf use OMF object format | |
2099 | --disable-optimise compile without optimisations | |
2100 | --enable-profile create code with profiling information | |
2101 | --enable-no_rtti create code without RTTI information | |
2102 | --enable-no_exceptions create code without C++ exceptions handling | |
2103 | --enable-permissive compile code disregarding strict ANSI | |
2104 | --enable-no_deps create code without dependency information | |
2105 | --disable-vararg_macros don't use vararg macros, even if they are supported | |
2106 | --enable-universal_binary=archs create universal binary for the specified (or all supported) architectures | |
2107 | --enable-macosx_arch=ARCH build for just the specified architecture | |
2108 | --enable-compat26 enable wxWidgets 2.6 compatibility | |
2109 | --disable-compat28 disable wxWidgets 2.8 compatibility | |
2110 | --disable-rpath disable use of rpath for uninstalled builds | |
2111 | --enable-objc_uniquifying enable Objective-C class name uniquifying | |
2112 | --disable-visibility disable use of ELF symbols visibility even if supported | |
2113 | --disable-tls disable use of compiler TLS support | |
2114 | --enable-intl use internationalization system | |
2115 | --enable-xlocale use x-locale support (requires wxLocale) | |
2116 | --enable-config use wxConfig (and derived) classes | |
2117 | --enable-protocols use wxProtocol and derived classes | |
2118 | --enable-ftp use wxFTP (requires wxProtocol | |
2119 | --enable-http use wxHTTP (requires wxProtocol | |
2120 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
2121 | --enable-sockets use socket/network classes | |
2122 | --enable-ipv6 enable IPv6 support in wxSocket | |
2123 | --enable-ole use OLE classes (Win32 only) | |
2124 | --enable-dataobj use data object classes | |
2125 | --enable-ipc use interprocess communication (wxSocket etc.) | |
2126 | --enable-baseevtloop use event loop in console programs too | |
2127 | --enable-epollloop use wxEpollDispatcher class (Linux only) | |
2128 | --enable-selectloop use wxSelectDispatcher class | |
2129 | --enable-any use wxAny class | |
2130 | --enable-apple_ieee use the Apple IEEE codec | |
2131 | --enable-arcstream use wxArchive streams | |
2132 | --enable-base64 use base64 encoding/decoding functions | |
2133 | --enable-backtrace use wxStackWalker class for getting backtraces | |
2134 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
2135 | --enable-cmdline use wxCmdLineParser class | |
2136 | --enable-datetime use wxDateTime class | |
2137 | --enable-debugreport use wxDebugReport class | |
2138 | --enable-dialupman use dialup network classes | |
2139 | --enable-dynlib use wxLibrary class for DLL loading | |
2140 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
2141 | --enable-exceptions build exception-safe library | |
2142 | --enable-ffile use wxFFile class | |
2143 | --enable-file use wxFile class | |
2144 | --enable-filehistory use wxFileHistory class | |
2145 | --enable-filesystem use virtual file systems classes | |
2146 | --enable-fontenum use wxFontEnumerator class | |
2147 | --enable-fontmap use font encodings conversion classes | |
2148 | --enable-fs_archive use virtual archive filesystems | |
2149 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
2150 | --enable-fs_zip now replaced by fs_archive | |
2151 | --enable-fswatcher use wxFileSystemWatcher class | |
2152 | --enable-geometry use geometry class | |
2153 | --enable-log use logging system | |
2154 | --enable-longlong use wxLongLong class | |
2155 | --enable-mimetype use wxMimeTypesManager | |
2156 | --enable-printfposparam use wxVsnprintf() which supports positional parameters | |
2157 | --enable-snglinst use wxSingleInstanceChecker class | |
2158 | --enable-sound use wxSound class | |
2159 | --enable-stdpaths use wxStandardPaths class | |
2160 | --enable-stopwatch use wxStopWatch class | |
2161 | --enable-streams use wxStream etc classes | |
2162 | --enable-sysoptions use wxSystemOptions | |
2163 | --enable-tarstream use wxTar streams | |
2164 | --enable-textbuf use wxTextBuffer class | |
2165 | --enable-textfile use wxTextFile class | |
2166 | --enable-timer use wxTimer class | |
2167 | --enable-variant use wxVariant class | |
2168 | --enable-zipstream use wxZip streams | |
2169 | --enable-url use wxURL class | |
2170 | --enable-protocol use wxProtocol class | |
2171 | --enable-protocol-http HTTP support in wxProtocol | |
2172 | --enable-protocol-ftp FTP support in wxProtocol | |
2173 | --enable-protocol-file FILE support in wxProtocol | |
2174 | --enable-threads use threads | |
2175 | --enable-iniconf use wxIniConfig (Win32 only) | |
2176 | --enable-regkey use wxRegKey class (Win32 only) | |
2177 | --enable-docview use document view architecture | |
2178 | --enable-help use help subsystem | |
2179 | --enable-mshtmlhelp use MS HTML Help (win32) | |
2180 | --enable-html use wxHTML sub-library | |
2181 | --enable-htmlhelp use wxHTML-based help | |
2182 | --enable-xrc use XRC resources sub-library | |
2183 | --enable-aui use AUI docking library | |
2184 | --enable-propgrid use wxPropertyGrid library | |
2185 | --enable-ribbon use wxRibbon library | |
2186 | --enable-stc use wxStyledTextCtrl library | |
2187 | --enable-constraints use layout-constraints system | |
2188 | --enable-loggui use standard GUI logger | |
2189 | --enable-logwin use wxLogWindow | |
2190 | --enable-logdialog use wxLogDialog | |
2191 | --enable-mdi use multiple document interface architecture | |
2192 | --enable-mdidoc use docview architecture with MDI | |
2193 | --enable-mediactrl use wxMediaCtrl class | |
2194 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix | |
2195 | --enable-richtext use wxRichTextCtrl | |
2196 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
2197 | --enable-printarch use printing architecture | |
2198 | --enable-svg use wxSVGFileDC device context | |
2199 | --enable-webkit use wxWebKitCtrl (Mac-only, use wxWebView instead) | |
2200 | --enable-webview use wxWebView library | |
2201 | --enable-graphics_ctx use graphics context 2D drawing API | |
2202 | --enable-clipboard use wxClipboard class | |
2203 | --enable-dnd use Drag'n'Drop classes | |
2204 | --disable-controls disable compilation of all standard controls | |
2205 | --enable-markup support wxControl::SetLabelMarkup | |
2206 | --enable-accel use accelerators | |
2207 | --enable-animatectrl use wxAnimationCtrl class | |
2208 | --enable-bannerwindow use wxBannerWindow class | |
2209 | --enable-artstd use standard XPM icons in wxArtProvider | |
2210 | --enable-arttango use Tango icons in wxArtProvider | |
2211 | --enable-bmpbutton use wxBitmapButton class | |
2212 | --enable-bmpcombobox use wxBitmapComboBox class | |
2213 | --enable-button use wxButton class | |
2214 | --enable-calendar use wxCalendarCtrl class | |
2215 | --enable-caret use wxCaret class | |
2216 | --enable-checkbox use wxCheckBox class | |
2217 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
2218 | --enable-choice use wxChoice class | |
2219 | --enable-choicebook use wxChoicebook class | |
2220 | --enable-collpane use wxCollapsiblePane class | |
2221 | --enable-colourpicker use wxColourPickerCtrl class | |
2222 | --enable-combobox use wxComboBox class | |
2223 | --enable-comboctrl use wxComboCtrl class | |
2224 | --enable-commandlinkbutton use wxCommmandLinkButton class | |
2225 | --enable-dataviewctrl use wxDataViewCtrl class | |
2226 | --enable-datepick use wxDatePickerCtrl class | |
2227 | --enable-detect_sm use code to detect X11 session manager | |
2228 | --enable-dirpicker use wxDirPickerCtrl class | |
2229 | --enable-display use wxDisplay class | |
2230 | --enable-editablebox use wxEditableListBox class | |
2231 | --enable-filectrl use wxFileCtrl class | |
2232 | --enable-filepicker use wxFilePickerCtrl class | |
2233 | --enable-fontpicker use wxFontPickerCtrl class | |
2234 | --enable-gauge use wxGauge class | |
2235 | --enable-grid use wxGrid class | |
2236 | --enable-headerctrl use wxHeaderCtrl class | |
2237 | --enable-hyperlink use wxHyperlinkCtrl class | |
2238 | --enable-imaglist use wxImageList class | |
2239 | --enable-infobar use wxInfoBar class | |
2240 | --enable-listbook use wxListbook class | |
2241 | --enable-listbox use wxListBox class | |
2242 | --enable-listctrl use wxListCtrl class | |
2243 | --enable-notebook use wxNotebook class | |
2244 | --enable-notifmsg use wxNotificationMessage class | |
2245 | --enable-odcombobox use wxOwnerDrawnComboBox class | |
2246 | --enable-popupwin use wxPopUpWindow class | |
2247 | --enable-radiobox use wxRadioBox class | |
2248 | --enable-radiobtn use wxRadioButton class | |
2249 | --enable-richmsgdlg use wxRichMessageDialog class | |
2250 | --enable-richtooltip use wxRichToolTip class | |
2251 | --enable-rearrangectrl use wxRearrangeList/Ctrl/Dialog | |
2252 | --enable-sash use wxSashWindow class | |
2253 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
2254 | --enable-searchctrl use wxSearchCtrl class | |
2255 | --enable-slider use wxSlider class | |
2256 | --enable-spinbtn use wxSpinButton class | |
2257 | --enable-spinctrl use wxSpinCtrl class | |
2258 | --enable-splitter use wxSplitterWindow class | |
2259 | --enable-statbmp use wxStaticBitmap class | |
2260 | --enable-statbox use wxStaticBox class | |
2261 | --enable-statline use wxStaticLine class | |
2262 | --enable-stattext use wxStaticText class | |
2263 | --enable-statusbar use wxStatusBar class | |
2264 | --enable-taskbaricon use wxTaskBarIcon class | |
2265 | --enable-tbarnative use native wxToolBar class | |
2266 | --enable-textctrl use wxTextCtrl class | |
2267 | --enable-timepick use wxTimePickerCtrl class | |
2268 | --enable-tipwindow use wxTipWindow class | |
2269 | --enable-togglebtn use wxToggleButton class | |
2270 | --enable-toolbar use wxToolBar class | |
2271 | --enable-toolbook use wxToolbook class | |
2272 | --enable-treebook use wxTreebook class | |
2273 | --enable-treectrl use wxTreeCtrl class | |
2274 | --enable-treelist use wxTreeListCtrl class | |
2275 | --enable-commondlg use all common dialogs | |
2276 | --enable-aboutdlg use wxAboutBox | |
2277 | --enable-choicedlg use wxChoiceDialog | |
2278 | --enable-coldlg use wxColourDialog | |
2279 | --enable-filedlg use wxFileDialog | |
2280 | --enable-finddlg use wxFindReplaceDialog | |
2281 | --enable-fontdlg use wxFontDialog | |
2282 | --enable-dirdlg use wxDirDialog | |
2283 | --enable-msgdlg use wxMessageDialog | |
2284 | --enable-numberdlg use wxNumberEntryDialog | |
2285 | --enable-splash use wxSplashScreen | |
2286 | --enable-textdlg use wxTextDialog | |
2287 | --enable-tipdlg use startup tips | |
2288 | --enable-progressdlg use wxProgressDialog | |
2289 | --enable-wizarddlg use wxWizard | |
2290 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
2291 | --enable-miniframe use wxMiniFrame class | |
2292 | --enable-tooltips use wxToolTip class | |
2293 | --enable-splines use spline drawing code | |
2294 | --enable-mousewheel use mousewheel | |
2295 | --enable-validators use wxValidator and derived classes | |
2296 | --enable-busyinfo use wxBusyInfo | |
2297 | --enable-hotkey use wxWindow::RegisterHotKey() | |
2298 | --enable-joystick use wxJoystick | |
2299 | --enable-metafiles use wxMetaFile | |
2300 | --enable-dragimage use wxDragImage | |
2301 | --enable-accessibility enable accessibility support | |
2302 | --enable-uiactionsim use wxUIActionSimulator (experimental) | |
2303 | --enable-dctransform use wxDC::SetTransformMatrix and related | |
3a75a4d4 | 2304 | --enable-webviewwebkit use wxWebView WebKit backend |
3dd30495 VZ |
2305 | --enable-palette use wxPalette class |
2306 | --enable-image use wxImage class | |
2307 | --enable-gif use gif images (GIF file format) | |
2308 | --enable-pcx use pcx images (PCX file format) | |
2309 | --enable-tga use tga images (TGA file format) | |
2310 | --enable-iff use iff images (IFF file format) | |
2311 | --enable-pnm use pnm images (PNM file format) | |
2312 | --enable-xpm use xpm images (XPM file format) | |
2313 | --enable-ico_cur use Windows ICO and CUR formats | |
2314 | --enable-dccache cache temporary wxDC objects (Win32 only) | |
2315 | --enable-ps-in-msw use PS printing in wxMSW (Win32 only) | |
2316 | --enable-ownerdrawn use owner drawn controls (Win32 and OS/2 only) | |
2317 | --enable-uxtheme enable support for Windows XP themed look (Win32 only) | |
2318 | --enable-wxdib use wxDIB class (Win32 only) | |
3a75a4d4 | 2319 | --enable-webviewie use wxWebView IE backend (Win32 only) |
3dd30495 VZ |
2320 | --enable-autoidman use automatic ids management |
2321 | --disable-largefile omit support for large files | |
2322 | --disable-gtktest do not try to compile and run a test GTK+ program | |
2323 | --disable-gtktest Do not try to compile and run a test GTK program | |
2324 | --disable-sdltest Do not try to compile and run a test SDL program | |
2325 | --enable-omf use OMF object format (OS/2) | |
2326 | --disable-dependency-tracking | |
2327 | don't use dependency tracking even if the compiler | |
2328 | can | |
2329 | --disable-precomp-headers | |
2330 | don't use precompiled headers even if compiler can | |
6e198e97 | 2331 | |
3dd30495 VZ |
2332 | Optional Packages: |
2333 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
2334 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
2335 | --without-subdirs don't generate makefiles for samples/demos/... | |
2336 | --with-flavour=NAME specify a name to identify this build | |
2337 | --with-themes=all|list use only the specified comma-separated list of wxUniversal themes | |
9dc44eff | 2338 | --with-gtk[=VERSION] use GTK+, VERSION can be 3, 2 (default), 1 or "any" |
3dd30495 VZ |
2339 | --with-motif use Motif/Lesstif |
2340 | --with-osx_carbon use Mac OS X (Carbon) | |
2341 | --with-osx_cocoa use Mac OS X (Cocoa) | |
2342 | --with-osx_iphone use iPhone OS X port | |
2343 | --with-osx use Mac OS X (default port, currently Carbon) | |
2344 | --with-carbon same as --with-osx_carbon | |
2345 | --with-cocoa same as --with-osx_cocoa | |
2346 | --with-iphone same as --with-osx_iphone | |
2347 | --with-mac same as --with-osx | |
2348 | --with-old_cocoa use old, deprecated, Cocoa port | |
2349 | --with-wine use Wine | |
2350 | --with-msw use MS-Windows | |
2351 | --with-pm use OS/2 Presentation Manager | |
2352 | --with-directfb use DirectFB | |
2353 | --with-microwin use MicroWindows | |
2354 | --with-x11 use X11 | |
2355 | --with-libpng use libpng (PNG image format) | |
2356 | --with-libjpeg use libjpeg (JPEG file format) | |
2357 | --with-libtiff use libtiff (TIFF file format) | |
2358 | --with-libxpm use libxpm (XPM file format) | |
2359 | --with-libiconv use libiconv (character conversion) | |
2360 | --with-libmspack use libmspack (CHM help files loading) | |
2361 | --without-gtkprint don't use GTK printing support | |
2362 | --without-gnomeprint don't use GNOME printing libraries | |
2363 | --with-gnomevfs use GNOME VFS for associating MIME types | |
afbf46a3 | 2364 | --with-libnotify use libnotify for notifications |
3dd30495 VZ |
2365 | --with-hildon use Hildon framework for Nokia 770/800/810 |
2366 | --with-opengl use OpenGL (or Mesa) | |
2367 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
2368 | --with-sdl use SDL for audio on Unix | |
2369 | --with-regex enable support for wxRegEx class | |
2370 | --with-zlib use zlib for LZW compression | |
2371 | --with-expat enable XML support using expat parser | |
2372 | --with-macosx-sdk=PATH use an OS X SDK at PATH | |
2373 | --with-macosx-version-min=VER build binaries which require at least this OS X version | |
2374 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
2375 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
2376 | --with-x use the X Window System | |
2377 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
2378 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
2379 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
2380 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
2381 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
a848cd7e | 2382 | |
3dd30495 VZ |
2383 | Some influential environment variables: |
2384 | CC C compiler command | |
2385 | CFLAGS C compiler flags | |
2386 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
2387 | nonstandard directory <lib dir> | |
2388 | LIBS libraries to pass to the linker, e.g. -l<library> | |
2389 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
2390 | you have headers in a nonstandard directory <include dir> | |
2391 | CPP C preprocessor | |
2392 | CXX C++ compiler command | |
2393 | CXXFLAGS C++ compiler flags | |
2394 | CXXCPP C++ preprocessor | |
2395 | PKG_CONFIG path to pkg-config utility | |
2396 | DIRECTFB_CFLAGS | |
2397 | C compiler flags for DIRECTFB, overriding pkg-config | |
2398 | DIRECTFB_LIBS | |
2399 | linker flags for DIRECTFB, overriding pkg-config | |
2400 | XMKMF Path to xmkmf, Makefile generator for X Window System | |
2401 | PANGOX_CFLAGS | |
2402 | C compiler flags for PANGOX, overriding pkg-config | |
2403 | PANGOX_LIBS linker flags for PANGOX, overriding pkg-config | |
2404 | PANGOFT2_CFLAGS | |
2405 | C compiler flags for PANGOFT2, overriding pkg-config | |
2406 | PANGOFT2_LIBS | |
2407 | linker flags for PANGOFT2, overriding pkg-config | |
2408 | PANGOXFT_CFLAGS | |
2409 | C compiler flags for PANGOXFT, overriding pkg-config | |
2410 | PANGOXFT_LIBS | |
2411 | linker flags for PANGOXFT, overriding pkg-config | |
2412 | Xinerama_CFLAGS | |
2413 | C compiler flags for Xinerama, overriding pkg-config | |
2414 | Xinerama_LIBS | |
2415 | linker flags for Xinerama, overriding pkg-config | |
2416 | Xxf86vm_CFLAGS | |
2417 | C compiler flags for Xxf86vm, overriding pkg-config | |
2418 | Xxf86vm_LIBS | |
2419 | linker flags for Xxf86vm, overriding pkg-config | |
2420 | SM_CFLAGS C compiler flags for SM, overriding pkg-config | |
2421 | SM_LIBS linker flags for SM, overriding pkg-config | |
2422 | GL_CFLAGS C compiler flags for GL, overriding pkg-config | |
2423 | GL_LIBS linker flags for GL, overriding pkg-config | |
2424 | GLU_CFLAGS C compiler flags for GLU, overriding pkg-config | |
2425 | GLU_LIBS linker flags for GLU, overriding pkg-config | |
2426 | MesaGL_CFLAGS | |
2427 | C compiler flags for MesaGL, overriding pkg-config | |
2428 | MesaGL_LIBS linker flags for MesaGL, overriding pkg-config | |
2429 | GTKPRINT_CFLAGS | |
2430 | C compiler flags for GTKPRINT, overriding pkg-config | |
2431 | GTKPRINT_LIBS | |
2432 | linker flags for GTKPRINT, overriding pkg-config | |
2433 | LIBGNOMEPRINTUI_CFLAGS | |
2434 | C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config | |
2435 | LIBGNOMEPRINTUI_LIBS | |
2436 | linker flags for LIBGNOMEPRINTUI, overriding pkg-config | |
2437 | GNOMEVFS_CFLAGS | |
2438 | C compiler flags for GNOMEVFS, overriding pkg-config | |
2439 | GNOMEVFS_LIBS | |
2440 | linker flags for GNOMEVFS, overriding pkg-config | |
afbf46a3 VZ |
2441 | LIBNOTIFY_CFLAGS |
2442 | C compiler flags for LIBNOTIFY, overriding pkg-config | |
2443 | LIBNOTIFY_LIBS | |
2444 | linker flags for LIBNOTIFY, overriding pkg-config | |
3dd30495 VZ |
2445 | HILDON_CFLAGS |
2446 | C compiler flags for HILDON, overriding pkg-config | |
2447 | HILDON_LIBS linker flags for HILDON, overriding pkg-config | |
2448 | HILDON2_CFLAGS | |
2449 | C compiler flags for HILDON2, overriding pkg-config | |
2450 | HILDON2_LIBS | |
2451 | linker flags for HILDON2, overriding pkg-config | |
2452 | WEBKIT_CFLAGS | |
2453 | C compiler flags for WEBKIT, overriding pkg-config | |
2454 | WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config | |
2455 | CAIRO_CFLAGS | |
2456 | C compiler flags for CAIRO, overriding pkg-config | |
2457 | CAIRO_LIBS linker flags for CAIRO, overriding pkg-config | |
2458 | GST_CFLAGS C compiler flags for GST, overriding pkg-config | |
2459 | GST_LIBS linker flags for GST, overriding pkg-config | |
a848cd7e | 2460 | |
3dd30495 VZ |
2461 | Use these variables to override the choices made by `configure' or to help |
2462 | it to find libraries and programs with nonstandard names/locations. | |
a848cd7e | 2463 | |
3dd30495 VZ |
2464 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
2465 | _ACEOF | |
2466 | ac_status=$? | |
47964710 VS |
2467 | fi |
2468 | ||
3dd30495 VZ |
2469 | if test "$ac_init_help" = "recursive"; then |
2470 | # If there are subdirs, report their specific --help. | |
2471 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
2472 | test -d "$ac_dir" || | |
2473 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
2474 | continue | |
2475 | ac_builddir=. | |
a848cd7e | 2476 | |
3dd30495 VZ |
2477 | case "$ac_dir" in |
2478 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2479 | *) | |
2480 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
2481 | # A ".." for each directory in $ac_dir_suffix. | |
2482 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
2483 | case $ac_top_builddir_sub in | |
2484 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
2485 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
2486 | esac ;; | |
2487 | esac | |
2488 | ac_abs_top_builddir=$ac_pwd | |
2489 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
2490 | # for backward compatibility: | |
2491 | ac_top_builddir=$ac_top_build_prefix | |
a848cd7e | 2492 | |
3dd30495 VZ |
2493 | case $srcdir in |
2494 | .) # We are building in place. | |
2495 | ac_srcdir=. | |
2496 | ac_top_srcdir=$ac_top_builddir_sub | |
2497 | ac_abs_top_srcdir=$ac_pwd ;; | |
2498 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
2499 | ac_srcdir=$srcdir$ac_dir_suffix; | |
2500 | ac_top_srcdir=$srcdir | |
2501 | ac_abs_top_srcdir=$srcdir ;; | |
2502 | *) # Relative name. | |
2503 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
2504 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
2505 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
2506 | esac | |
2507 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
a848cd7e | 2508 | |
3dd30495 VZ |
2509 | cd "$ac_dir" || { ac_status=$?; continue; } |
2510 | # Check for guested configure. | |
2511 | if test -f "$ac_srcdir/configure.gnu"; then | |
2512 | echo && | |
2513 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
2514 | elif test -f "$ac_srcdir/configure"; then | |
2515 | echo && | |
2516 | $SHELL "$ac_srcdir/configure" --help=recursive | |
2517 | else | |
2518 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
2519 | fi || ac_status=$? | |
2520 | cd "$ac_pwd" || { ac_status=$?; break; } | |
2521 | done | |
2522 | fi | |
6e198e97 | 2523 | |
3dd30495 VZ |
2524 | test -n "$ac_init_help" && exit $ac_status |
2525 | if $ac_init_version; then | |
2526 | cat <<\_ACEOF | |
9b1e7719 | 2527 | wxWidgets configure 2.9.5 |
eff9d7f5 | 2528 | generated by GNU Autoconf 2.69 |
a848cd7e | 2529 | |
eff9d7f5 | 2530 | Copyright (C) 2012 Free Software Foundation, Inc. |
3dd30495 VZ |
2531 | This configure script is free software; the Free Software Foundation |
2532 | gives unlimited permission to copy, distribute and modify it. | |
2533 | _ACEOF | |
2534 | exit | |
2535 | fi | |
6e198e97 | 2536 | |
3dd30495 VZ |
2537 | ## ------------------------ ## |
2538 | ## Autoconf initialization. ## | |
2539 | ## ------------------------ ## | |
a848cd7e | 2540 | |
3dd30495 VZ |
2541 | # ac_fn_c_try_compile LINENO |
2542 | # -------------------------- | |
2543 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2544 | ac_fn_c_try_compile () | |
2545 | { | |
2546 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2547 | rm -f conftest.$ac_objext | |
2548 | if { { ac_try="$ac_compile" | |
2549 | case "(($ac_try" in | |
2550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2551 | *) ac_try_echo=$ac_try;; | |
2552 | esac | |
2553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2554 | $as_echo "$ac_try_echo"; } >&5 | |
2555 | (eval "$ac_compile") 2>conftest.err | |
2556 | ac_status=$? | |
2557 | if test -s conftest.err; then | |
2558 | grep -v '^ *+' conftest.err >conftest.er1 | |
2559 | cat conftest.er1 >&5 | |
2560 | mv -f conftest.er1 conftest.err | |
2561 | fi | |
2562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2563 | test $ac_status = 0; } && { | |
2564 | test -z "$ac_c_werror_flag" || | |
2565 | test ! -s conftest.err | |
2566 | } && test -s conftest.$ac_objext; then : | |
2567 | ac_retval=0 | |
a848cd7e | 2568 | else |
3dd30495 VZ |
2569 | $as_echo "$as_me: failed program was:" >&5 |
2570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a848cd7e | 2571 | |
3dd30495 | 2572 | ac_retval=1 |
47964710 | 2573 | fi |
eff9d7f5 | 2574 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 2575 | as_fn_set_status $ac_retval |
47964710 | 2576 | |
3dd30495 | 2577 | } # ac_fn_c_try_compile |
a848cd7e | 2578 | |
3dd30495 VZ |
2579 | # ac_fn_c_try_cpp LINENO |
2580 | # ---------------------- | |
2581 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
2582 | ac_fn_c_try_cpp () | |
2583 | { | |
2584 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2585 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
2586 | case "(($ac_try" in | |
2587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2588 | *) ac_try_echo=$ac_try;; | |
2589 | esac | |
2590 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2591 | $as_echo "$ac_try_echo"; } >&5 | |
2592 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
2593 | ac_status=$? | |
2594 | if test -s conftest.err; then | |
2595 | grep -v '^ *+' conftest.err >conftest.er1 | |
2596 | cat conftest.er1 >&5 | |
2597 | mv -f conftest.er1 conftest.err | |
2598 | fi | |
2599 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2600 | test $ac_status = 0; } > conftest.i && { | |
2601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
2602 | test ! -s conftest.err | |
2603 | }; then : | |
2604 | ac_retval=0 | |
81727065 | 2605 | else |
3dd30495 VZ |
2606 | $as_echo "$as_me: failed program was:" >&5 |
2607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
81727065 | 2608 | |
3dd30495 | 2609 | ac_retval=1 |
47964710 | 2610 | fi |
eff9d7f5 | 2611 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 2612 | as_fn_set_status $ac_retval |
47964710 | 2613 | |
3dd30495 | 2614 | } # ac_fn_c_try_cpp |
81727065 | 2615 | |
3dd30495 VZ |
2616 | # ac_fn_cxx_try_compile LINENO |
2617 | # ---------------------------- | |
2618 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2619 | ac_fn_cxx_try_compile () | |
2620 | { | |
2621 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2622 | rm -f conftest.$ac_objext | |
2623 | if { { ac_try="$ac_compile" | |
2624 | case "(($ac_try" in | |
2625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2626 | *) ac_try_echo=$ac_try;; | |
2627 | esac | |
2628 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2629 | $as_echo "$ac_try_echo"; } >&5 | |
2630 | (eval "$ac_compile") 2>conftest.err | |
2631 | ac_status=$? | |
2632 | if test -s conftest.err; then | |
2633 | grep -v '^ *+' conftest.err >conftest.er1 | |
2634 | cat conftest.er1 >&5 | |
2635 | mv -f conftest.er1 conftest.err | |
2636 | fi | |
2637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2638 | test $ac_status = 0; } && { | |
2639 | test -z "$ac_cxx_werror_flag" || | |
2640 | test ! -s conftest.err | |
2641 | } && test -s conftest.$ac_objext; then : | |
2642 | ac_retval=0 | |
a848cd7e | 2643 | else |
3dd30495 VZ |
2644 | $as_echo "$as_me: failed program was:" >&5 |
2645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a848cd7e | 2646 | |
3dd30495 | 2647 | ac_retval=1 |
47964710 | 2648 | fi |
eff9d7f5 | 2649 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 2650 | as_fn_set_status $ac_retval |
47964710 | 2651 | |
3dd30495 | 2652 | } # ac_fn_cxx_try_compile |
a848cd7e | 2653 | |
3dd30495 VZ |
2654 | # ac_fn_c_try_link LINENO |
2655 | # ----------------------- | |
2656 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2657 | ac_fn_c_try_link () | |
2658 | { | |
2659 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2661 | if { { ac_try="$ac_link" | |
2662 | case "(($ac_try" in | |
2663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2664 | *) ac_try_echo=$ac_try;; | |
2665 | esac | |
2666 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2667 | $as_echo "$ac_try_echo"; } >&5 | |
2668 | (eval "$ac_link") 2>conftest.err | |
2669 | ac_status=$? | |
2670 | if test -s conftest.err; then | |
2671 | grep -v '^ *+' conftest.err >conftest.er1 | |
2672 | cat conftest.er1 >&5 | |
2673 | mv -f conftest.er1 conftest.err | |
2674 | fi | |
2675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2676 | test $ac_status = 0; } && { | |
2677 | test -z "$ac_c_werror_flag" || | |
2678 | test ! -s conftest.err | |
2679 | } && test -s conftest$ac_exeext && { | |
2680 | test "$cross_compiling" = yes || | |
eff9d7f5 | 2681 | test -x conftest$ac_exeext |
3dd30495 VZ |
2682 | }; then : |
2683 | ac_retval=0 | |
2684 | else | |
2685 | $as_echo "$as_me: failed program was:" >&5 | |
2686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a848cd7e | 2687 | |
3dd30495 VZ |
2688 | ac_retval=1 |
2689 | fi | |
2690 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2691 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2692 | # interfere with the next link command; also delete a directory that is | |
2693 | # left behind by Apple's compiler. We do this before executing the actions. | |
2694 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
eff9d7f5 | 2695 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 2696 | as_fn_set_status $ac_retval |
a848cd7e | 2697 | |
3dd30495 | 2698 | } # ac_fn_c_try_link |
a848cd7e | 2699 | |
3dd30495 VZ |
2700 | # ac_fn_cxx_try_link LINENO |
2701 | # ------------------------- | |
2702 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2703 | ac_fn_cxx_try_link () | |
2704 | { | |
2705 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2707 | if { { ac_try="$ac_link" | |
2708 | case "(($ac_try" in | |
2709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2710 | *) ac_try_echo=$ac_try;; | |
2711 | esac | |
2712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2713 | $as_echo "$ac_try_echo"; } >&5 | |
2714 | (eval "$ac_link") 2>conftest.err | |
2715 | ac_status=$? | |
2716 | if test -s conftest.err; then | |
2717 | grep -v '^ *+' conftest.err >conftest.er1 | |
2718 | cat conftest.er1 >&5 | |
2719 | mv -f conftest.er1 conftest.err | |
2720 | fi | |
2721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2722 | test $ac_status = 0; } && { | |
2723 | test -z "$ac_cxx_werror_flag" || | |
2724 | test ! -s conftest.err | |
2725 | } && test -s conftest$ac_exeext && { | |
2726 | test "$cross_compiling" = yes || | |
eff9d7f5 | 2727 | test -x conftest$ac_exeext |
3dd30495 VZ |
2728 | }; then : |
2729 | ac_retval=0 | |
a848cd7e | 2730 | else |
3dd30495 VZ |
2731 | $as_echo "$as_me: failed program was:" >&5 |
2732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a848cd7e | 2733 | |
3dd30495 | 2734 | ac_retval=1 |
47964710 | 2735 | fi |
3dd30495 VZ |
2736 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
2737 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2738 | # interfere with the next link command; also delete a directory that is | |
2739 | # left behind by Apple's compiler. We do this before executing the actions. | |
2740 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
eff9d7f5 | 2741 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 2742 | as_fn_set_status $ac_retval |
47964710 | 2743 | |
3dd30495 | 2744 | } # ac_fn_cxx_try_link |
a848cd7e | 2745 | |
3dd30495 VZ |
2746 | # ac_fn_c_try_run LINENO |
2747 | # ---------------------- | |
2748 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
2749 | # that executables *can* be run. | |
2750 | ac_fn_c_try_run () | |
2751 | { | |
2752 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2753 | if { { ac_try="$ac_link" | |
2754 | case "(($ac_try" in | |
2755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2756 | *) ac_try_echo=$ac_try;; | |
2757 | esac | |
2758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2759 | $as_echo "$ac_try_echo"; } >&5 | |
2760 | (eval "$ac_link") 2>&5 | |
2761 | ac_status=$? | |
2762 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2763 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2764 | { { case "(($ac_try" in | |
2765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2766 | *) ac_try_echo=$ac_try;; | |
2767 | esac | |
2768 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2769 | $as_echo "$ac_try_echo"; } >&5 | |
2770 | (eval "$ac_try") 2>&5 | |
2771 | ac_status=$? | |
2772 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2773 | test $ac_status = 0; }; }; then : | |
2774 | ac_retval=0 | |
2775 | else | |
2776 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
2777 | $as_echo "$as_me: failed program was:" >&5 | |
2778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a848cd7e | 2779 | |
3dd30495 VZ |
2780 | ac_retval=$ac_status |
2781 | fi | |
2782 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
eff9d7f5 | 2783 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 2784 | as_fn_set_status $ac_retval |
6e198e97 | 2785 | |
3dd30495 | 2786 | } # ac_fn_c_try_run |
a848cd7e | 2787 | |
3dd30495 VZ |
2788 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
2789 | # ------------------------------------------------------- | |
2790 | # Tests whether HEADER exists and can be compiled using the include files in | |
2791 | # INCLUDES, setting the cache variable VAR accordingly. | |
2792 | ac_fn_c_check_header_compile () | |
2793 | { | |
2794 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2796 | $as_echo_n "checking for $2... " >&6; } | |
eff9d7f5 | 2797 | if eval \${$3+:} false; then : |
3dd30495 VZ |
2798 | $as_echo_n "(cached) " >&6 |
2799 | else | |
2800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2801 | /* end confdefs.h. */ | |
2802 | $4 | |
2803 | #include <$2> | |
2804 | _ACEOF | |
2805 | if ac_fn_c_try_compile "$LINENO"; then : | |
2806 | eval "$3=yes" | |
2807 | else | |
2808 | eval "$3=no" | |
2809 | fi | |
2810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2811 | fi | |
2812 | eval ac_res=\$$3 | |
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2814 | $as_echo "$ac_res" >&6; } | |
eff9d7f5 | 2815 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
89b1afb4 | 2816 | |
3dd30495 | 2817 | } # ac_fn_c_check_header_compile |
89b1afb4 | 2818 | |
e02ea203 VZ |
2819 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES |
2820 | # --------------------------------------------------------- | |
2821 | # Tests whether HEADER exists and can be compiled using the include files in | |
2822 | # INCLUDES, setting the cache variable VAR accordingly. | |
2823 | ac_fn_cxx_check_header_compile () | |
2824 | { | |
2825 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2827 | $as_echo_n "checking for $2... " >&6; } | |
2828 | if eval \${$3+:} false; then : | |
2829 | $as_echo_n "(cached) " >&6 | |
2830 | else | |
2831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2832 | /* end confdefs.h. */ | |
2833 | $4 | |
2834 | #include <$2> | |
2835 | _ACEOF | |
2836 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
2837 | eval "$3=yes" | |
2838 | else | |
2839 | eval "$3=no" | |
2840 | fi | |
2841 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2842 | fi | |
2843 | eval ac_res=\$$3 | |
2844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2845 | $as_echo "$ac_res" >&6; } | |
2846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2847 | ||
2848 | } # ac_fn_cxx_check_header_compile | |
2849 | ||
3dd30495 VZ |
2850 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
2851 | # -------------------------------------------- | |
2852 | # Tries to find the compile-time value of EXPR in a program that includes | |
2853 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2854 | # computed | |
2855 | ac_fn_c_compute_int () | |
2856 | { | |
2857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2858 | if test "$cross_compiling" = yes; then | |
2859 | # Depending upon the size, compute the lo and hi bounds. | |
2860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2861 | /* end confdefs.h. */ | |
2862 | $4 | |
2863 | int | |
2864 | main () | |
2865 | { | |
2866 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
eff9d7f5 VZ |
2867 | test_array [0] = 0; |
2868 | return test_array [0]; | |
6e198e97 | 2869 | |
3dd30495 VZ |
2870 | ; |
2871 | return 0; | |
2872 | } | |
2873 | _ACEOF | |
2874 | if ac_fn_c_try_compile "$LINENO"; then : | |
2875 | ac_lo=0 ac_mid=0 | |
2876 | while :; do | |
2877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2878 | /* end confdefs.h. */ | |
2879 | $4 | |
2880 | int | |
2881 | main () | |
2882 | { | |
2883 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
eff9d7f5 VZ |
2884 | test_array [0] = 0; |
2885 | return test_array [0]; | |
a848cd7e | 2886 | |
3dd30495 VZ |
2887 | ; |
2888 | return 0; | |
2889 | } | |
2890 | _ACEOF | |
2891 | if ac_fn_c_try_compile "$LINENO"; then : | |
2892 | ac_hi=$ac_mid; break | |
2893 | else | |
2894 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2895 | if test $ac_lo -le $ac_mid; then | |
2896 | ac_lo= ac_hi= | |
2897 | break | |
2898 | fi | |
2899 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2900 | fi | |
2901 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2902 | done | |
a848cd7e | 2903 | else |
3dd30495 VZ |
2904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2905 | /* end confdefs.h. */ | |
2906 | $4 | |
2907 | int | |
2908 | main () | |
2909 | { | |
2910 | static int test_array [1 - 2 * !(($2) < 0)]; | |
eff9d7f5 VZ |
2911 | test_array [0] = 0; |
2912 | return test_array [0]; | |
a848cd7e | 2913 | |
3dd30495 VZ |
2914 | ; |
2915 | return 0; | |
2916 | } | |
2917 | _ACEOF | |
2918 | if ac_fn_c_try_compile "$LINENO"; then : | |
2919 | ac_hi=-1 ac_mid=-1 | |
2920 | while :; do | |
2921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2922 | /* end confdefs.h. */ | |
2923 | $4 | |
2924 | int | |
2925 | main () | |
2926 | { | |
2927 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
eff9d7f5 VZ |
2928 | test_array [0] = 0; |
2929 | return test_array [0]; | |
a848cd7e | 2930 | |
3dd30495 VZ |
2931 | ; |
2932 | return 0; | |
2933 | } | |
2934 | _ACEOF | |
2935 | if ac_fn_c_try_compile "$LINENO"; then : | |
2936 | ac_lo=$ac_mid; break | |
2937 | else | |
2938 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2939 | if test $ac_mid -le $ac_hi; then | |
2940 | ac_lo= ac_hi= | |
2941 | break | |
2942 | fi | |
2943 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2944 | fi | |
2945 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2946 | done | |
2947 | else | |
2948 | ac_lo= ac_hi= | |
2949 | fi | |
2950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
47964710 | 2951 | fi |
3dd30495 VZ |
2952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2953 | # Binary search between lo and hi bounds. | |
2954 | while test "x$ac_lo" != "x$ac_hi"; do | |
2955 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2957 | /* end confdefs.h. */ | |
2958 | $4 | |
2959 | int | |
2960 | main () | |
2961 | { | |
2962 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
eff9d7f5 VZ |
2963 | test_array [0] = 0; |
2964 | return test_array [0]; | |
47964710 | 2965 | |
3dd30495 VZ |
2966 | ; |
2967 | return 0; | |
2968 | } | |
2969 | _ACEOF | |
2970 | if ac_fn_c_try_compile "$LINENO"; then : | |
2971 | ac_hi=$ac_mid | |
2972 | else | |
2973 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2974 | fi | |
2975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2976 | done | |
2977 | case $ac_lo in #(( | |
2978 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2979 | '') ac_retval=1 ;; | |
2980 | esac | |
2981 | else | |
2982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2983 | /* end confdefs.h. */ | |
2984 | $4 | |
2985 | static long int longval () { return $2; } | |
2986 | static unsigned long int ulongval () { return $2; } | |
2987 | #include <stdio.h> | |
2988 | #include <stdlib.h> | |
2989 | int | |
2990 | main () | |
2991 | { | |
a848cd7e | 2992 | |
3dd30495 VZ |
2993 | FILE *f = fopen ("conftest.val", "w"); |
2994 | if (! f) | |
2995 | return 1; | |
2996 | if (($2) < 0) | |
2997 | { | |
2998 | long int i = longval (); | |
2999 | if (i != ($2)) | |
3000 | return 1; | |
3001 | fprintf (f, "%ld", i); | |
3002 | } | |
3003 | else | |
3004 | { | |
3005 | unsigned long int i = ulongval (); | |
3006 | if (i != ($2)) | |
3007 | return 1; | |
3008 | fprintf (f, "%lu", i); | |
3009 | } | |
3010 | /* Do not output a trailing newline, as this causes \r\n confusion | |
3011 | on some platforms. */ | |
3012 | return ferror (f) || fclose (f) != 0; | |
a848cd7e | 3013 | |
3dd30495 VZ |
3014 | ; |
3015 | return 0; | |
3016 | } | |
3017 | _ACEOF | |
3018 | if ac_fn_c_try_run "$LINENO"; then : | |
3019 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
3020 | else | |
3021 | ac_retval=1 | |
3022 | fi | |
3023 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3024 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3025 | rm -f conftest.val | |
a848cd7e | 3026 | |
3dd30495 | 3027 | fi |
eff9d7f5 | 3028 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 3029 | as_fn_set_status $ac_retval |
6e198e97 | 3030 | |
3dd30495 | 3031 | } # ac_fn_c_compute_int |
a848cd7e | 3032 | |
3dd30495 VZ |
3033 | # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
3034 | # --------------------------------------------- | |
3035 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
3036 | # variable VAR accordingly. | |
3037 | ac_fn_cxx_check_type () | |
3038 | { | |
3039 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
3041 | $as_echo_n "checking for $2... " >&6; } | |
eff9d7f5 | 3042 | if eval \${$3+:} false; then : |
3dd30495 | 3043 | $as_echo_n "(cached) " >&6 |
6e198e97 | 3044 | else |
3dd30495 VZ |
3045 | eval "$3=no" |
3046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3047 | /* end confdefs.h. */ | |
3048 | $4 | |
3049 | int | |
3050 | main () | |
3051 | { | |
3052 | if (sizeof ($2)) | |
3053 | return 0; | |
3054 | ; | |
3055 | return 0; | |
3056 | } | |
3057 | _ACEOF | |
3058 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3060 | /* end confdefs.h. */ | |
3061 | $4 | |
3062 | int | |
3063 | main () | |
3064 | { | |
3065 | if (sizeof (($2))) | |
3066 | return 0; | |
3067 | ; | |
3068 | return 0; | |
3069 | } | |
3070 | _ACEOF | |
3071 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6e198e97 | 3072 | |
3dd30495 VZ |
3073 | else |
3074 | eval "$3=yes" | |
47964710 | 3075 | fi |
3dd30495 VZ |
3076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3077 | fi | |
3078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3079 | fi | |
3080 | eval ac_res=\$$3 | |
3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3082 | $as_echo "$ac_res" >&6; } | |
eff9d7f5 | 3083 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
47964710 | 3084 | |
3dd30495 | 3085 | } # ac_fn_cxx_check_type |
6e198e97 | 3086 | |
3dd30495 VZ |
3087 | # ac_fn_cxx_try_cpp LINENO |
3088 | # ------------------------ | |
3089 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
3090 | ac_fn_cxx_try_cpp () | |
3091 | { | |
3092 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3093 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
3094 | case "(($ac_try" in | |
3095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3096 | *) ac_try_echo=$ac_try;; | |
3097 | esac | |
3098 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3099 | $as_echo "$ac_try_echo"; } >&5 | |
3100 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
3101 | ac_status=$? | |
3102 | if test -s conftest.err; then | |
3103 | grep -v '^ *+' conftest.err >conftest.er1 | |
3104 | cat conftest.er1 >&5 | |
3105 | mv -f conftest.er1 conftest.err | |
3106 | fi | |
3107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3108 | test $ac_status = 0; } > conftest.i && { | |
3109 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
3110 | test ! -s conftest.err | |
3111 | }; then : | |
3112 | ac_retval=0 | |
3113 | else | |
3114 | $as_echo "$as_me: failed program was:" >&5 | |
3115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6e198e97 | 3116 | |
3dd30495 VZ |
3117 | ac_retval=1 |
3118 | fi | |
eff9d7f5 | 3119 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 3120 | as_fn_set_status $ac_retval |
6e198e97 | 3121 | |
3dd30495 | 3122 | } # ac_fn_cxx_try_cpp |
6e198e97 | 3123 | |
3dd30495 VZ |
3124 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
3125 | # --------------------------------------------------------- | |
3126 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
3127 | # the include files in INCLUDES and setting the cache variable VAR | |
3128 | # accordingly. | |
3129 | ac_fn_cxx_check_header_mongrel () | |
3130 | { | |
3131 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
eff9d7f5 | 3132 | if eval \${$3+:} false; then : |
3dd30495 VZ |
3133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
3134 | $as_echo_n "checking for $2... " >&6; } | |
eff9d7f5 | 3135 | if eval \${$3+:} false; then : |
3dd30495 VZ |
3136 | $as_echo_n "(cached) " >&6 |
3137 | fi | |
3138 | eval ac_res=\$$3 | |
3139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3140 | $as_echo "$ac_res" >&6; } | |
3141 | else | |
3142 | # Is the header compilable? | |
3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
3144 | $as_echo_n "checking $2 usability... " >&6; } | |
3145 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3146 | /* end confdefs.h. */ | |
3147 | $4 | |
3148 | #include <$2> | |
3149 | _ACEOF | |
3150 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3151 | ac_header_compiler=yes | |
3152 | else | |
3153 | ac_header_compiler=no | |
3154 | fi | |
3155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
3157 | $as_echo "$ac_header_compiler" >&6; } | |
3158 | ||
3159 | # Is the header present? | |
3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
3161 | $as_echo_n "checking $2 presence... " >&6; } | |
3162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3163 | /* end confdefs.h. */ | |
3164 | #include <$2> | |
3165 | _ACEOF | |
3166 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
3167 | ac_header_preproc=yes | |
3168 | else | |
3169 | ac_header_preproc=no | |
7311debd | 3170 | fi |
3dd30495 VZ |
3171 | rm -f conftest.err conftest.i conftest.$ac_ext |
3172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
3173 | $as_echo "$ac_header_preproc" >&6; } | |
6e198e97 | 3174 | |
3dd30495 VZ |
3175 | # So? What about this header? |
3176 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
3177 | yes:no: ) | |
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3179 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
3181 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
3182 | ;; | |
3183 | no:yes:* ) | |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
3185 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
3187 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
3189 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
3190 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
3191 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
3192 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
3193 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
3194 | ( $as_echo "## ----------------------------------------- ## | |
3195 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
3196 | ## ----------------------------------------- ##" | |
3197 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
3198 | ;; | |
3199 | esac | |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
3201 | $as_echo_n "checking for $2... " >&6; } | |
eff9d7f5 | 3202 | if eval \${$3+:} false; then : |
3dd30495 VZ |
3203 | $as_echo_n "(cached) " >&6 |
3204 | else | |
3205 | eval "$3=\$ac_header_compiler" | |
3206 | fi | |
3207 | eval ac_res=\$$3 | |
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3209 | $as_echo "$ac_res" >&6; } | |
3210 | fi | |
eff9d7f5 | 3211 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
01871bf6 | 3212 | |
3dd30495 | 3213 | } # ac_fn_cxx_check_header_mongrel |
01871bf6 | 3214 | |
3dd30495 VZ |
3215 | # ac_fn_c_check_func LINENO FUNC VAR |
3216 | # ---------------------------------- | |
3217 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
3218 | ac_fn_c_check_func () | |
3219 | { | |
3220 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
3222 | $as_echo_n "checking for $2... " >&6; } | |
eff9d7f5 | 3223 | if eval \${$3+:} false; then : |
3dd30495 | 3224 | $as_echo_n "(cached) " >&6 |
01871bf6 | 3225 | else |
3dd30495 VZ |
3226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3227 | /* end confdefs.h. */ | |
3228 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
3229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3230 | #define $2 innocuous_$2 | |
01871bf6 | 3231 | |
3dd30495 VZ |
3232 | /* System header to define __stub macros and hopefully few prototypes, |
3233 | which can conflict with char $2 (); below. | |
3234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3235 | <limits.h> exists even on freestanding compilers. */ | |
01871bf6 | 3236 | |
3dd30495 VZ |
3237 | #ifdef __STDC__ |
3238 | # include <limits.h> | |
3239 | #else | |
3240 | # include <assert.h> | |
3241 | #endif | |
01871bf6 | 3242 | |
3dd30495 | 3243 | #undef $2 |
01871bf6 | 3244 | |
3dd30495 VZ |
3245 | /* Override any GCC internal prototype to avoid an error. |
3246 | Use char because int might match the return type of a GCC | |
3247 | builtin and then its argument prototype would still apply. */ | |
3248 | #ifdef __cplusplus | |
3249 | extern "C" | |
3250 | #endif | |
3251 | char $2 (); | |
3252 | /* The GNU C library defines this for functions which it implements | |
3253 | to always fail with ENOSYS. Some functions are actually named | |
3254 | something starting with __ and the normal name is an alias. */ | |
3255 | #if defined __stub_$2 || defined __stub___$2 | |
3256 | choke me | |
3257 | #endif | |
01871bf6 | 3258 | |
3dd30495 VZ |
3259 | int |
3260 | main () | |
3261 | { | |
3262 | return $2 (); | |
3263 | ; | |
3264 | return 0; | |
3265 | } | |
3266 | _ACEOF | |
3267 | if ac_fn_c_try_link "$LINENO"; then : | |
3268 | eval "$3=yes" | |
3269 | else | |
3270 | eval "$3=no" | |
3271 | fi | |
3272 | rm -f core conftest.err conftest.$ac_objext \ | |
3273 | conftest$ac_exeext conftest.$ac_ext | |
3274 | fi | |
3275 | eval ac_res=\$$3 | |
3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3277 | $as_echo "$ac_res" >&6; } | |
eff9d7f5 | 3278 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
01871bf6 | 3279 | |
3dd30495 | 3280 | } # ac_fn_c_check_func |
01871bf6 | 3281 | |
3dd30495 VZ |
3282 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
3283 | # ------------------------------------------- | |
3284 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
3285 | # variable VAR accordingly. | |
3286 | ac_fn_c_check_type () | |
3287 | { | |
3288 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
3290 | $as_echo_n "checking for $2... " >&6; } | |
eff9d7f5 | 3291 | if eval \${$3+:} false; then : |
3dd30495 VZ |
3292 | $as_echo_n "(cached) " >&6 |
3293 | else | |
3294 | eval "$3=no" | |
3295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3296 | /* end confdefs.h. */ | |
3297 | $4 | |
3298 | int | |
3299 | main () | |
3300 | { | |
3301 | if (sizeof ($2)) | |
3302 | return 0; | |
3303 | ; | |
3304 | return 0; | |
3305 | } | |
3306 | _ACEOF | |
3307 | if ac_fn_c_try_compile "$LINENO"; then : | |
3308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3309 | /* end confdefs.h. */ | |
3310 | $4 | |
3311 | int | |
3312 | main () | |
3313 | { | |
3314 | if (sizeof (($2))) | |
3315 | return 0; | |
3316 | ; | |
3317 | return 0; | |
3318 | } | |
3319 | _ACEOF | |
3320 | if ac_fn_c_try_compile "$LINENO"; then : | |
01871bf6 | 3321 | |
3dd30495 VZ |
3322 | else |
3323 | eval "$3=yes" | |
3324 | fi | |
3325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3326 | fi | |
3327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3328 | fi | |
3329 | eval ac_res=\$$3 | |
3330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
3331 | $as_echo "$ac_res" >&6; } | |
eff9d7f5 | 3332 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6e198e97 | 3333 | |
3dd30495 | 3334 | } # ac_fn_c_check_type |
6e198e97 | 3335 | |
3dd30495 VZ |
3336 | # ac_fn_cxx_try_run LINENO |
3337 | # ------------------------ | |
3338 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
3339 | # that executables *can* be run. | |
3340 | ac_fn_cxx_try_run () | |
3341 | { | |
3342 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
3343 | if { { ac_try="$ac_link" | |
3344 | case "(($ac_try" in | |
3345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3346 | *) ac_try_echo=$ac_try;; | |
3347 | esac | |
3348 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3349 | $as_echo "$ac_try_echo"; } >&5 | |
3350 | (eval "$ac_link") 2>&5 | |
3351 | ac_status=$? | |
3352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3353 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
3354 | { { case "(($ac_try" in | |
3355 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3356 | *) ac_try_echo=$ac_try;; | |
3357 | esac | |
3358 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3359 | $as_echo "$ac_try_echo"; } >&5 | |
3360 | (eval "$ac_try") 2>&5 | |
3361 | ac_status=$? | |
3362 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3363 | test $ac_status = 0; }; }; then : | |
3364 | ac_retval=0 | |
6e198e97 | 3365 | else |
3dd30495 VZ |
3366 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
3367 | $as_echo "$as_me: failed program was:" >&5 | |
3368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6e198e97 | 3369 | |
3dd30495 | 3370 | ac_retval=$ac_status |
47964710 | 3371 | fi |
3dd30495 | 3372 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
eff9d7f5 | 3373 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
3dd30495 | 3374 | as_fn_set_status $ac_retval |
47964710 | 3375 | |
3dd30495 VZ |
3376 | } # ac_fn_cxx_try_run |
3377 | cat >config.log <<_ACEOF | |
3378 | This file contains any messages produced by compilers while | |
3379 | running configure, to aid debugging if configure makes a mistake. | |
6e198e97 | 3380 | |
9b1e7719 | 3381 | It was created by wxWidgets $as_me 2.9.5, which was |
eff9d7f5 | 3382 | generated by GNU Autoconf 2.69. Invocation command line was |
6e198e97 | 3383 | |
3dd30495 | 3384 | $ $0 $@ |
6e198e97 | 3385 | |
3dd30495 VZ |
3386 | _ACEOF |
3387 | exec 5>>config.log | |
3388 | { | |
3389 | cat <<_ASUNAME | |
3390 | ## --------- ## | |
3391 | ## Platform. ## | |
3392 | ## --------- ## | |
6e198e97 | 3393 | |
3dd30495 VZ |
3394 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
3395 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
3396 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
3397 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
3398 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
6e198e97 | 3399 | |
3dd30495 VZ |
3400 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
3401 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
6e198e97 | 3402 | |
3dd30495 VZ |
3403 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
3404 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
3405 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
3406 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
3407 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
3408 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
3409 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
6e198e97 | 3410 | |
3dd30495 | 3411 | _ASUNAME |
6e198e97 | 3412 | |
3dd30495 VZ |
3413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3414 | for as_dir in $PATH | |
3415 | do | |
3416 | IFS=$as_save_IFS | |
3417 | test -z "$as_dir" && as_dir=. | |
3418 | $as_echo "PATH: $as_dir" | |
3419 | done | |
3420 | IFS=$as_save_IFS | |
6e198e97 | 3421 | |
3dd30495 | 3422 | } >&5 |
47964710 | 3423 | |
3dd30495 | 3424 | cat >&5 <<_ACEOF |
6e198e97 | 3425 | |
6e198e97 | 3426 | |
3dd30495 VZ |
3427 | ## ----------- ## |
3428 | ## Core tests. ## | |
3429 | ## ----------- ## | |
6e198e97 | 3430 | |
3dd30495 | 3431 | _ACEOF |
6e198e97 | 3432 | |
6e198e97 | 3433 | |
3dd30495 VZ |
3434 | # Keep a trace of the command line. |
3435 | # Strip out --no-create and --no-recursion so they do not pile up. | |
3436 | # Strip out --silent because we don't want to record it for future runs. | |
3437 | # Also quote any args containing shell meta-characters. | |
3438 | # Make two passes to allow for proper duplicate-argument suppression. | |
3439 | ac_configure_args= | |
3440 | ac_configure_args0= | |
3441 | ac_configure_args1= | |
3442 | ac_must_keep_next=false | |
3443 | for ac_pass in 1 2 | |
3444 | do | |
3445 | for ac_arg | |
3446 | do | |
3447 | case $ac_arg in | |
3448 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
3449 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
3450 | | -silent | --silent | --silen | --sile | --sil) | |
3451 | continue ;; | |
3452 | *\'*) | |
3453 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3454 | esac | |
3455 | case $ac_pass in | |
3456 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
3457 | 2) | |
3458 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
3459 | if test $ac_must_keep_next = true; then | |
3460 | ac_must_keep_next=false # Got value, back to normal. | |
3461 | else | |
3462 | case $ac_arg in | |
3463 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
3464 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
3465 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
3466 | | -with-* | --with-* | -without-* | --without-* | --x) | |
3467 | case "$ac_configure_args0 " in | |
3468 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
3469 | esac | |
3470 | ;; | |
3471 | -* ) ac_must_keep_next=true ;; | |
3472 | esac | |
3473 | fi | |
3474 | as_fn_append ac_configure_args " '$ac_arg'" | |
3475 | ;; | |
3476 | esac | |
3477 | done | |
3478 | done | |
3479 | { ac_configure_args0=; unset ac_configure_args0;} | |
3480 | { ac_configure_args1=; unset ac_configure_args1;} | |
01871bf6 | 3481 | |
3dd30495 VZ |
3482 | # When interrupted or exit'd, cleanup temporary files, and complete |
3483 | # config.log. We remove comments because anyway the quotes in there | |
3484 | # would cause problems or look ugly. | |
3485 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
3486 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
3487 | trap 'exit_status=$? | |
3488 | # Save into config.log some information that might help in debugging. | |
3489 | { | |
3490 | echo | |
01871bf6 | 3491 | |
3dd30495 VZ |
3492 | $as_echo "## ---------------- ## |
3493 | ## Cache variables. ## | |
3494 | ## ---------------- ##" | |
3495 | echo | |
3496 | # The following way of writing the cache mishandles newlines in values, | |
3497 | ( | |
3498 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
3499 | eval ac_val=\$$ac_var | |
3500 | case $ac_val in #( | |
3501 | *${as_nl}*) | |
3502 | case $ac_var in #( | |
3503 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
3504 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3505 | esac | |
3506 | case $ac_var in #( | |
3507 | _ | IFS | as_nl) ;; #( | |
3508 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3509 | *) { eval $ac_var=; unset $ac_var;} ;; | |
3510 | esac ;; | |
3511 | esac | |
3512 | done | |
3513 | (set) 2>&1 | | |
3514 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
3515 | *${as_nl}ac_space=\ *) | |
3516 | sed -n \ | |
3517 | "s/'\''/'\''\\\\'\'''\''/g; | |
3518 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
3519 | ;; #( | |
3520 | *) | |
3521 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
3522 | ;; | |
3523 | esac | | |
3524 | sort | |
3525 | ) | |
3526 | echo | |
01871bf6 | 3527 | |
3dd30495 VZ |
3528 | $as_echo "## ----------------- ## |
3529 | ## Output variables. ## | |
3530 | ## ----------------- ##" | |
3531 | echo | |
3532 | for ac_var in $ac_subst_vars | |
3533 | do | |
3534 | eval ac_val=\$$ac_var | |
3535 | case $ac_val in | |
3536 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
3537 | esac | |
3538 | $as_echo "$ac_var='\''$ac_val'\''" | |
3539 | done | sort | |
3540 | echo | |
01871bf6 | 3541 | |
3dd30495 VZ |
3542 | if test -n "$ac_subst_files"; then |
3543 | $as_echo "## ------------------- ## | |
3544 | ## File substitutions. ## | |
3545 | ## ------------------- ##" | |
3546 | echo | |
3547 | for ac_var in $ac_subst_files | |
3548 | do | |
3549 | eval ac_val=\$$ac_var | |
3550 | case $ac_val in | |
3551 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
3552 | esac | |
3553 | $as_echo "$ac_var='\''$ac_val'\''" | |
3554 | done | sort | |
3555 | echo | |
3556 | fi | |
01871bf6 | 3557 | |
3dd30495 VZ |
3558 | if test -s confdefs.h; then |
3559 | $as_echo "## ----------- ## | |
3560 | ## confdefs.h. ## | |
3561 | ## ----------- ##" | |
3562 | echo | |
3563 | cat confdefs.h | |
3564 | echo | |
3565 | fi | |
3566 | test "$ac_signal" != 0 && | |
3567 | $as_echo "$as_me: caught signal $ac_signal" | |
3568 | $as_echo "$as_me: exit $exit_status" | |
3569 | } >&5 | |
3570 | rm -f core *.core core.conftest.* && | |
3571 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
3572 | exit $exit_status | |
3573 | ' 0 | |
3574 | for ac_signal in 1 2 13 15; do | |
3575 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
3576 | done | |
3577 | ac_signal=0 | |
01871bf6 | 3578 | |
3dd30495 VZ |
3579 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
3580 | rm -f -r conftest* confdefs.h | |
01871bf6 | 3581 | |
3dd30495 | 3582 | $as_echo "/* confdefs.h */" > confdefs.h |
01871bf6 | 3583 | |
3dd30495 | 3584 | # Predefined preprocessor variables. |
01871bf6 | 3585 | |
3dd30495 VZ |
3586 | cat >>confdefs.h <<_ACEOF |
3587 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
3588 | _ACEOF | |
01871bf6 | 3589 | |
3dd30495 VZ |
3590 | cat >>confdefs.h <<_ACEOF |
3591 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
3592 | _ACEOF | |
6e198e97 | 3593 | |
3dd30495 VZ |
3594 | cat >>confdefs.h <<_ACEOF |
3595 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
3596 | _ACEOF | |
6e198e97 | 3597 | |
3dd30495 VZ |
3598 | cat >>confdefs.h <<_ACEOF |
3599 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
3600 | _ACEOF | |
6e198e97 | 3601 | |
3dd30495 VZ |
3602 | cat >>confdefs.h <<_ACEOF |
3603 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
3604 | _ACEOF | |
6e198e97 | 3605 | |
3dd30495 VZ |
3606 | cat >>confdefs.h <<_ACEOF |
3607 | #define PACKAGE_URL "$PACKAGE_URL" | |
3608 | _ACEOF | |
47964710 | 3609 | |
6e198e97 | 3610 | |
3dd30495 VZ |
3611 | # Let the site file select an alternate cache file if it wants to. |
3612 | # Prefer an explicitly selected file to automatically selected ones. | |
3613 | ac_site_file1=NONE | |
3614 | ac_site_file2=NONE | |
3615 | if test -n "$CONFIG_SITE"; then | |
3616 | # We do not want a PATH search for config.site. | |
3617 | case $CONFIG_SITE in #(( | |
3618 | -*) ac_site_file1=./$CONFIG_SITE;; | |
3619 | */*) ac_site_file1=$CONFIG_SITE;; | |
3620 | *) ac_site_file1=./$CONFIG_SITE;; | |
3621 | esac | |
3622 | elif test "x$prefix" != xNONE; then | |
3623 | ac_site_file1=$prefix/share/config.site | |
3624 | ac_site_file2=$prefix/etc/config.site | |
3625 | else | |
3626 | ac_site_file1=$ac_default_prefix/share/config.site | |
3627 | ac_site_file2=$ac_default_prefix/etc/config.site | |
3628 | fi | |
3629 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
3630 | do | |
3631 | test "x$ac_site_file" = xNONE && continue | |
3632 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
3633 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
3634 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
3635 | sed 's/^/| /' "$ac_site_file" >&5 | |
3636 | . "$ac_site_file" \ | |
3637 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3638 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3639 | as_fn_error $? "failed to load site script $ac_site_file | |
eff9d7f5 | 3640 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
3641 | fi |
3642 | done | |
6e198e97 | 3643 | |
3dd30495 VZ |
3644 | if test -r "$cache_file"; then |
3645 | # Some versions of bash will fail to source /dev/null (special files | |
3646 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
3647 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
3649 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
3650 | case $cache_file in | |
3651 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
3652 | *) . "./$cache_file";; | |
3653 | esac | |
3654 | fi | |
3655 | else | |
3656 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
3657 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
3658 | >$cache_file | |
3659 | fi | |
6e198e97 | 3660 | |
3dd30495 VZ |
3661 | # Check that the precious variables saved in the cache have kept the same |
3662 | # value. | |
3663 | ac_cache_corrupted=false | |
3664 | for ac_var in $ac_precious_vars; do | |
3665 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
3666 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3667 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
3668 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3669 | case $ac_old_set,$ac_new_set in | |
3670 | set,) | |
3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
3672 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
3673 | ac_cache_corrupted=: ;; | |
3674 | ,set) | |
3675 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
3676 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
3677 | ac_cache_corrupted=: ;; | |
3678 | ,);; | |
3679 | *) | |
3680 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3681 | # differences in whitespace do not lead to failure. | |
3682 | ac_old_val_w=`echo x $ac_old_val` | |
3683 | ac_new_val_w=`echo x $ac_new_val` | |
3684 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
3686 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
3687 | ac_cache_corrupted=: | |
3688 | else | |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
3690 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
3691 | eval $ac_var=\$ac_old_val | |
3692 | fi | |
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
3694 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
3696 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
3697 | fi;; | |
3698 | esac | |
3699 | # Pass precious variables to config.status. | |
3700 | if test "$ac_new_set" = set; then | |
3701 | case $ac_new_val in | |
3702 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3703 | *) ac_arg=$ac_var=$ac_new_val ;; | |
3704 | esac | |
3705 | case " $ac_configure_args " in | |
3706 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
3707 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
3708 | esac | |
3709 | fi | |
3710 | done | |
3711 | if $ac_cache_corrupted; then | |
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3713 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3715 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
3716 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
3717 | fi | |
3718 | ## -------------------- ## | |
3719 | ## Main body of script. ## | |
3720 | ## -------------------- ## | |
6e198e97 | 3721 | |
3dd30495 VZ |
3722 | ac_ext=c |
3723 | ac_cpp='$CPP $CPPFLAGS' | |
3724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6e198e97 | 3727 | |
6e198e97 | 3728 | |
6e198e97 | 3729 | |
6e198e97 | 3730 | |
6e198e97 | 3731 | |
3dd30495 VZ |
3732 | ac_aux_dir= |
3733 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
3734 | if test -f "$ac_dir/install-sh"; then | |
3735 | ac_aux_dir=$ac_dir | |
3736 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
3737 | break | |
3738 | elif test -f "$ac_dir/install.sh"; then | |
3739 | ac_aux_dir=$ac_dir | |
3740 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
3741 | break | |
3742 | elif test -f "$ac_dir/shtool"; then | |
3743 | ac_aux_dir=$ac_dir | |
3744 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
3745 | break | |
3746 | fi | |
3747 | done | |
3748 | if test -z "$ac_aux_dir"; then | |
3749 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
47964710 VS |
3750 | fi |
3751 | ||
3dd30495 VZ |
3752 | # These three variables are undocumented and unsupported, |
3753 | # and are intended to be withdrawn in a future Autoconf release. | |
3754 | # They can cause serious problems if a builder's source tree is in a directory | |
3755 | # whose full name contains unusual characters. | |
3756 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
3757 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
3758 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
6e198e97 | 3759 | |
6e198e97 | 3760 | |
3dd30495 VZ |
3761 | # Make sure we can run config.sub. |
3762 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
3763 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
6e198e97 | 3764 | |
3dd30495 VZ |
3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
3766 | $as_echo_n "checking build system type... " >&6; } | |
eff9d7f5 | 3767 | if ${ac_cv_build+:} false; then : |
3dd30495 VZ |
3768 | $as_echo_n "(cached) " >&6 |
3769 | else | |
3770 | ac_build_alias=$build_alias | |
3771 | test "x$ac_build_alias" = x && | |
3772 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
3773 | test "x$ac_build_alias" = x && | |
3774 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3775 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
3776 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
6e198e97 | 3777 | |
3dd30495 VZ |
3778 | fi |
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3780 | $as_echo "$ac_cv_build" >&6; } | |
3781 | case $ac_cv_build in | |
3782 | *-*-*) ;; | |
eff9d7f5 | 3783 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
3dd30495 VZ |
3784 | esac |
3785 | build=$ac_cv_build | |
3786 | ac_save_IFS=$IFS; IFS='-' | |
3787 | set x $ac_cv_build | |
3788 | shift | |
3789 | build_cpu=$1 | |
3790 | build_vendor=$2 | |
3791 | shift; shift | |
3792 | # Remember, the first character of IFS is used to create $*, | |
3793 | # except with old shells: | |
3794 | build_os=$* | |
3795 | IFS=$ac_save_IFS | |
3796 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
6e198e97 | 3797 | |
89b1afb4 | 3798 | |
3dd30495 VZ |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3800 | $as_echo_n "checking host system type... " >&6; } | |
eff9d7f5 | 3801 | if ${ac_cv_host+:} false; then : |
3dd30495 | 3802 | $as_echo_n "(cached) " >&6 |
89b1afb4 | 3803 | else |
3dd30495 VZ |
3804 | if test "x$host_alias" = x; then |
3805 | ac_cv_host=$ac_cv_build | |
3806 | else | |
3807 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
3808 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
3809 | fi | |
8e33c2e4 | 3810 | |
44710405 | 3811 | fi |
3dd30495 VZ |
3812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3813 | $as_echo "$ac_cv_host" >&6; } | |
3814 | case $ac_cv_host in | |
3815 | *-*-*) ;; | |
eff9d7f5 | 3816 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
3dd30495 VZ |
3817 | esac |
3818 | host=$ac_cv_host | |
3819 | ac_save_IFS=$IFS; IFS='-' | |
3820 | set x $ac_cv_host | |
3821 | shift | |
3822 | host_cpu=$1 | |
3823 | host_vendor=$2 | |
3824 | shift; shift | |
3825 | # Remember, the first character of IFS is used to create $*, | |
3826 | # except with old shells: | |
3827 | host_os=$* | |
3828 | IFS=$ac_save_IFS | |
3829 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
44710405 VZ |
3830 | |
3831 | ||
89b1afb4 | 3832 | |
3dd30495 VZ |
3833 | if test "$cross_compiling" != "no"; then |
3834 | HOST_PREFIX="${host_alias}-" | |
3835 | HOST_SUFFIX="-$host_alias" | |
3836 | else | |
3837 | HOST_PREFIX= | |
3838 | HOST_SUFFIX= | |
3839 | fi | |
89b1afb4 VZ |
3840 | |
3841 | ||
3dd30495 VZ |
3842 | wx_major_version_number=2 |
3843 | wx_minor_version_number=9 | |
9b1e7719 | 3844 | wx_release_number=5 |
3dd30495 | 3845 | wx_subrelease_number=0 |
44710405 | 3846 | |
3dd30495 VZ |
3847 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
3848 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
3849 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
44710405 | 3850 | |
3dd30495 | 3851 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
44710405 | 3852 | |
44710405 | 3853 | |
3dd30495 | 3854 | wx_top_builddir="`pwd`" |
44710405 VZ |
3855 | |
3856 | ||
44710405 | 3857 | |
44710405 | 3858 | |
3dd30495 VZ |
3859 | USE_UNIX=1 |
3860 | USE_OS2=0 | |
3861 | USE_WIN32=0 | |
3862 | USE_DOS=0 | |
3863 | USE_BEOS=0 | |
3864 | USE_MAC=0 | |
44710405 | 3865 | |
3dd30495 VZ |
3866 | USE_AIX= |
3867 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
3868 | USE_GNU= USE_HPUX= | |
3869 | USE_LINUX= | |
3870 | USE_NETBSD= | |
3871 | USE_OPENBSD= | |
3872 | USE_OSF= USE_SGI= | |
3873 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
3874 | USE_ULTRIX= | |
3875 | USE_UNIXWARE= | |
44710405 | 3876 | |
3dd30495 | 3877 | USE_ALPHA= |
6e198e97 | 3878 | |
3dd30495 | 3879 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
6e198e97 | 3880 | |
3dd30495 | 3881 | ALL_TOOLKITS="COCOA GTK OSX_CARBON OSX_COCOA OSX_IPHONE MICROWIN MOTIF MSW PM X11 DFB" |
6e198e97 | 3882 | |
3dd30495 VZ |
3883 | DEFAULT_wxUSE_OLD_COCOA=0 |
3884 | DEFAULT_wxUSE_GTK=0 | |
3885 | DEFAULT_wxUSE_OSX_CARBON=0 | |
3886 | DEFAULT_wxUSE_OSX_COCOA=0 | |
3887 | DEFAULT_wxUSE_OSX_IPHONE=0 | |
3888 | DEFAULT_wxUSE_MICROWIN=0 | |
3889 | DEFAULT_wxUSE_MOTIF=0 | |
3890 | DEFAULT_wxUSE_MSW=0 | |
3891 | DEFAULT_wxUSE_PM=0 | |
3892 | DEFAULT_wxUSE_X11=0 | |
3893 | DEFAULT_wxUSE_DFB=0 | |
6e198e97 | 3894 | |
3dd30495 VZ |
3895 | DEFAULT_DEFAULT_wxUSE_OLD_COCOA=0 |
3896 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
3897 | DEFAULT_DEFAULT_wxUSE_OSX_CARBON=0 | |
3898 | DEFAULT_DEFAULT_wxUSE_OSX_COCOA=0 | |
3899 | DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=0 | |
3900 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
3901 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
3902 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
3903 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
3904 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
3905 | DEFAULT_DEFAULT_wxUSE_DFB=0 | |
47964710 | 3906 | |
3dd30495 VZ |
3907 | PROGRAM_EXT= |
3908 | SAMPLES_RPATH_FLAG= | |
3909 | DYLIB_RPATH_INSTALL= | |
3910 | DYLIB_RPATH_POSTLINK= | |
6e198e97 | 3911 | |
3dd30495 | 3912 | DEFAULT_STD_FLAG=yes |
6e198e97 | 3913 | |
3dd30495 VZ |
3914 | case "${host}" in |
3915 | *-hp-hpux* ) | |
3916 | USE_HPUX=1 | |
3917 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
3918 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
3919 | $as_echo "#define __HPUX__ 1" >>confdefs.h | |
6e198e97 | 3920 | |
6e198e97 | 3921 | |
3dd30495 VZ |
3922 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
3923 | ;; | |
3924 | *-*-linux* ) | |
3925 | USE_LINUX=1 | |
3926 | $as_echo "#define __LINUX__ 1" >>confdefs.h | |
6e198e97 | 3927 | |
3dd30495 VZ |
3928 | TMP=`uname -m` |
3929 | if test "x$TMP" = "xalpha"; then | |
3930 | USE_ALPHA=1 | |
3931 | $as_echo "#define __ALPHA__ 1" >>confdefs.h | |
6e198e97 | 3932 | |
3dd30495 VZ |
3933 | fi |
3934 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
3935 | ;; | |
3936 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
3937 | USE_GNU=1 | |
3938 | TMP=`uname -m` | |
3939 | if test "x$TMP" = "xalpha"; then | |
3940 | USE_ALPHA=1 | |
3941 | $as_echo "#define __ALPHA__ 1" >>confdefs.h | |
a848cd7e | 3942 | |
3dd30495 VZ |
3943 | fi |
3944 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
3945 | ;; | |
3946 | *-*-irix5* | *-*-irix6* ) | |
3947 | USE_SGI=1 | |
3948 | USE_SVR4=1 | |
3949 | $as_echo "#define __SGI__ 1" >>confdefs.h | |
a848cd7e | 3950 | |
3dd30495 | 3951 | $as_echo "#define __SVR4__ 1" >>confdefs.h |
a848cd7e | 3952 | |
3dd30495 VZ |
3953 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 |
3954 | ;; | |
3955 | *-*-qnx*) | |
3956 | USE_QNX=1 | |
3957 | $as_echo "#define __QNX__ 1" >>confdefs.h | |
47964710 | 3958 | |
3dd30495 VZ |
3959 | DEFAULT_DEFAULT_wxUSE_X11=1 |
3960 | ;; | |
3961 | *-*-solaris2* ) | |
3962 | USE_SUN=1 | |
3963 | USE_SOLARIS=1 | |
3964 | USE_SVR4=1 | |
3965 | $as_echo "#define __SUN__ 1" >>confdefs.h | |
a848cd7e | 3966 | |
3dd30495 | 3967 | $as_echo "#define __SOLARIS__ 1" >>confdefs.h |
a848cd7e | 3968 | |
3dd30495 | 3969 | $as_echo "#define __SVR4__ 1" >>confdefs.h |
a848cd7e | 3970 | |
3dd30495 VZ |
3971 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 |
3972 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
3973 | ;; | |
3974 | *-*-sunos4* ) | |
3975 | USE_SUN=1 | |
3976 | USE_SUNOS=1 | |
3977 | USE_BSD=1 | |
3978 | $as_echo "#define __SUN__ 1" >>confdefs.h | |
6e198e97 | 3979 | |
3dd30495 | 3980 | $as_echo "#define __SUNOS__ 1" >>confdefs.h |
a848cd7e | 3981 | |
3dd30495 | 3982 | $as_echo "#define __BSD__ 1" >>confdefs.h |
89b1afb4 | 3983 | |
3dd30495 VZ |
3984 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 |
3985 | ;; | |
3986 | *-*-freebsd*) | |
3987 | USE_BSD=1 | |
3988 | USE_FREEBSD=1 | |
3989 | $as_echo "#define __FREEBSD__ 1" >>confdefs.h | |
6e198e97 | 3990 | |
3dd30495 | 3991 | $as_echo "#define __BSD__ 1" >>confdefs.h |
a848cd7e | 3992 | |
3dd30495 VZ |
3993 | DEFAULT_DEFAULT_wxUSE_GTK=1 |
3994 | ;; | |
3995 | *-*-openbsd*|*-*-mirbsd*) | |
3996 | USE_BSD=1 | |
3997 | USE_OPENBSD=1 | |
3998 | $as_echo "#define __OPENBSD__ 1" >>confdefs.h | |
a848cd7e | 3999 | |
3dd30495 | 4000 | $as_echo "#define __BSD__ 1" >>confdefs.h |
a848cd7e | 4001 | |
3dd30495 VZ |
4002 | DEFAULT_DEFAULT_wxUSE_GTK=1 |
4003 | ;; | |
4004 | *-*-netbsd*) | |
4005 | USE_BSD=1 | |
4006 | USE_NETBSD=1 | |
4007 | $as_echo "#define __NETBSD__ 1" >>confdefs.h | |
47964710 | 4008 | |
3dd30495 | 4009 | $as_echo "#define __BSD__ 1" >>confdefs.h |
a848cd7e | 4010 | |
3dd30495 VZ |
4011 | DEFAULT_DEFAULT_wxUSE_GTK=1 |
4012 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
a848cd7e | 4013 | |
3dd30495 VZ |
4014 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
4015 | ;; | |
4016 | *-*-osf* ) | |
4017 | USE_ALPHA=1 | |
4018 | USE_OSF=1 | |
4019 | $as_echo "#define __ALPHA__ 1" >>confdefs.h | |
a848cd7e | 4020 | |
3dd30495 | 4021 | $as_echo "#define __OSF__ 1" >>confdefs.h |
6e198e97 | 4022 | |
3dd30495 VZ |
4023 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 |
4024 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
4025 | ;; | |
4026 | *-*-dgux5* ) | |
4027 | USE_ALPHA=1 | |
4028 | USE_SVR4=1 | |
4029 | $as_echo "#define __ALPHA__ 1" >>confdefs.h | |
a848cd7e | 4030 | |
3dd30495 | 4031 | $as_echo "#define __SVR4__ 1" >>confdefs.h |
89b1afb4 | 4032 | |
3dd30495 VZ |
4033 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 |
4034 | ;; | |
4035 | *-*-sysv5* ) | |
4036 | USE_SYSV=1 | |
4037 | USE_SVR4=1 | |
4038 | $as_echo "#define __SYSV__ 1" >>confdefs.h | |
6e198e97 | 4039 | |
3dd30495 | 4040 | $as_echo "#define __SVR4__ 1" >>confdefs.h |
a848cd7e | 4041 | |
3dd30495 VZ |
4042 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 |
4043 | ;; | |
4044 | *-*-aix* ) | |
4045 | USE_AIX=1 | |
4046 | USE_SYSV=1 | |
4047 | USE_SVR4=1 | |
4048 | $as_echo "#define __AIX__ 1" >>confdefs.h | |
a848cd7e | 4049 | |
3dd30495 | 4050 | $as_echo "#define __SYSV__ 1" >>confdefs.h |
a848cd7e | 4051 | |
3dd30495 | 4052 | $as_echo "#define __SVR4__ 1" >>confdefs.h |
47964710 | 4053 | |
3dd30495 VZ |
4054 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 |
4055 | ;; | |
a848cd7e | 4056 | |
3dd30495 VZ |
4057 | *-*-*UnixWare*) |
4058 | USE_SYSV=1 | |
4059 | USE_SVR4=1 | |
4060 | USE_UNIXWARE=1 | |
4061 | $as_echo "#define __UNIXWARE__ 1" >>confdefs.h | |
a848cd7e | 4062 | |
3dd30495 | 4063 | ;; |
a848cd7e | 4064 | |
3dd30495 VZ |
4065 | *-*-cygwin* | *-*-mingw32* ) |
4066 | PROGRAM_EXT=".exe" | |
4067 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
4068 | ;; | |
6e198e97 | 4069 | |
3dd30495 VZ |
4070 | *-pc-msdosdjgpp ) |
4071 | USE_UNIX=0 | |
4072 | USE_DOS=1 | |
4073 | $as_echo "#define __DOS__ 1" >>confdefs.h | |
a848cd7e | 4074 | |
3dd30495 VZ |
4075 | PROGRAM_EXT=".exe" |
4076 | ;; | |
6e198e97 | 4077 | |
3dd30495 VZ |
4078 | *-pc-os2_emx | *-pc-os2-emx ) |
4079 | $as_echo "#define __EMX__ 1" >>confdefs.h | |
a848cd7e | 4080 | |
3dd30495 VZ |
4081 | USE_OS2=1 |
4082 | $as_echo "#define __OS2__ 1" >>confdefs.h | |
a848cd7e | 4083 | |
3dd30495 VZ |
4084 | PROGRAM_EXT=".exe" |
4085 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
4086 | CXX=gcc | |
4087 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
4088 | ac_executable_extensions=".exe" | |
4089 | export ac_executable_extensions | |
4090 | ac_save_IFS="$IFS" | |
4091 | IFS='\\' | |
4092 | ac_TEMP_PATH= | |
4093 | for ac_dir in $PATH; do | |
4094 | IFS=$ac_save_IFS | |
4095 | if test -z "$ac_TEMP_PATH"; then | |
4096 | ac_TEMP_PATH="$ac_dir" | |
4097 | else | |
4098 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
4099 | fi | |
4100 | done | |
4101 | export PATH="$ac_TEMP_PATH" | |
4102 | unset ac_TEMP_PATH | |
4103 | DEFAULT_STD_FLAG=no | |
4104 | ;; | |
a848cd7e | 4105 | |
3dd30495 VZ |
4106 | arm-apple-darwin*) |
4107 | USE_BSD=1 | |
4108 | USE_DARWIN=1 | |
4109 | $as_echo "#define __BSD__ 1" >>confdefs.h | |
47964710 | 4110 | |
3dd30495 | 4111 | $as_echo "#define __DARWIN__ 1" >>confdefs.h |
a848cd7e | 4112 | |
3dd30495 VZ |
4113 | DEFAULT_DEFAULT_wxUSE_OSX_IPHONE=1 |
4114 | ;; | |
a848cd7e | 4115 | |
3dd30495 VZ |
4116 | *-*-darwin* ) |
4117 | USE_BSD=1 | |
4118 | USE_DARWIN=1 | |
4119 | $as_echo "#define __BSD__ 1" >>confdefs.h | |
a848cd7e | 4120 | |
3dd30495 | 4121 | $as_echo "#define __DARWIN__ 1" >>confdefs.h |
6e198e97 | 4122 | |
3dd30495 | 4123 | $as_echo "#define TARGET_CARBON 1" >>confdefs.h |
a848cd7e | 4124 | |
3dd30495 VZ |
4125 | DEFAULT_DEFAULT_wxUSE_OSX_CARBON=1 |
4126 | ;; | |
6e198e97 | 4127 | |
3dd30495 VZ |
4128 | *-*-beos* ) |
4129 | USE_BEOS=1 | |
4130 | $as_echo "#define __BEOS__ 1" >>confdefs.h | |
a848cd7e | 4131 | |
3dd30495 | 4132 | ;; |
a848cd7e | 4133 | |
3dd30495 VZ |
4134 | *) |
4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5 | |
4136 | $as_echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;} | |
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5 | |
4138 | $as_echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;} | |
a848cd7e | 4139 | |
3dd30495 VZ |
4140 | DEFAULT_DEFAULT_wxUSE_X11=1 |
4141 | DEFAULT_wxUSE_SHARED=no | |
4142 | esac | |
47964710 | 4143 | |
a848cd7e | 4144 | |
a848cd7e | 4145 | |
3dd30495 | 4146 | DEFAULT_wxUSE_ALL_FEATURES=yes |
a848cd7e | 4147 | |
3dd30495 VZ |
4148 | DEFAULT_wxUSE_STD_CONTAINERS=no |
4149 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG | |
4150 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
6e198e97 | 4151 | |
3dd30495 VZ |
4152 | DEFAULT_wxUSE_DMALLOC=no |
4153 | DEFAULT_wxUSE_LIBGNOMEVFS=no | |
4154 | DEFAULT_wxUSE_LIBHILDON=no | |
4155 | DEFAULT_wxUSE_LIBHILDON2=no | |
4156 | DEFAULT_wxUSE_LIBMSPACK=no | |
4157 | DEFAULT_wxUSE_LIBSDL=no | |
a848cd7e | 4158 | |
3dd30495 VZ |
4159 | DEFAULT_wxUSE_ACCESSIBILITY=no |
4160 | DEFAULT_wxUSE_IPV6=no | |
4161 | DEFAULT_wxUSE_GSTREAMER8=no | |
4162 | DEFAULT_wxUSE_UNICODE_UTF8=no | |
4163 | DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no | |
6e198e97 | 4164 | |
3dd30495 VZ |
4165 | DEFAULT_wxUSE_ARTPROVIDER_TANGO=auto |
4166 | DEFAULT_wxUSE_OPENGL=auto | |
4167 | DEFAULT_wxUSE_MEDIACTRL=auto | |
4168 | DEFAULT_wxUSE_COMPILER_TLS=auto | |
4169 | DEFAULT_wxUSE_HOTKEY=auto | |
4170 | DEFAULT_wxUSE_METAFILE=auto | |
a848cd7e | 4171 | |
3dd30495 VZ |
4172 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
4173 | DEFAULT_wxUSE_MAC_ARCH=no | |
a848cd7e | 4174 | |
3dd30495 | 4175 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
a848cd7e | 4176 | |
3dd30495 | 4177 | DEFAULT_wxUSE_OBJC_UNIQUIFYING=no |
a848cd7e | 4178 | |
a848cd7e | 4179 | |
a848cd7e | 4180 | |
6e198e97 | 4181 | |
a848cd7e | 4182 | |
3dd30495 | 4183 | enablestring=disable |
6e198e97 | 4184 | defaultval= |
238663c1 | 4185 | if test -z "$defaultval"; then |
6e198e97 VZ |
4186 | if test x"$enablestring" = xdisable; then |
4187 | defaultval=yes | |
4188 | else | |
4189 | defaultval=no | |
4190 | fi | |
4191 | fi | |
4192 | ||
3dd30495 VZ |
4193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-gui" >&5 |
4194 | $as_echo_n "checking for --${enablestring:-enable}-gui... " >&6; } | |
4195 | # Check whether --enable-gui was given. | |
4196 | if test "${enable_gui+set}" = set; then : | |
4197 | enableval=$enable_gui; | |
a848cd7e | 4198 | if test "$enableval" = yes; then |
3dd30495 | 4199 | wx_cv_use_gui='wxUSE_GUI=yes' |
a848cd7e | 4200 | else |
3dd30495 | 4201 | wx_cv_use_gui='wxUSE_GUI=no' |
a848cd7e SC |
4202 | fi |
4203 | ||
4204 | else | |
4205 | ||
3dd30495 | 4206 | wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}" |
a848cd7e | 4207 | |
47964710 VS |
4208 | fi |
4209 | ||
a848cd7e | 4210 | |
3dd30495 | 4211 | eval "$wx_cv_use_gui" |
a848cd7e | 4212 | |
6e198e97 | 4213 | if test x"$enablestring" = xdisable; then |
3dd30495 | 4214 | if test $wxUSE_GUI = no; then |
6e198e97 | 4215 | result=yes |
7ac0e38e VZ |
4216 | else |
4217 | result=no | |
6e198e97 | 4218 | fi |
a848cd7e | 4219 | else |
3dd30495 | 4220 | result=$wxUSE_GUI |
a848cd7e SC |
4221 | fi |
4222 | ||
3dd30495 VZ |
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4224 | $as_echo "$result" >&6; } | |
6e198e97 VZ |
4225 | |
4226 | ||
3dd30495 | 4227 | enablestring= |
6e198e97 | 4228 | defaultval= |
238663c1 | 4229 | if test -z "$defaultval"; then |
6e198e97 VZ |
4230 | if test x"$enablestring" = xdisable; then |
4231 | defaultval=yes | |
4232 | else | |
4233 | defaultval=no | |
4234 | fi | |
4235 | fi | |
a848cd7e | 4236 | |
3dd30495 VZ |
4237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-monolithic" >&5 |
4238 | $as_echo_n "checking for --${enablestring:-enable}-monolithic... " >&6; } | |
4239 | # Check whether --enable-monolithic was given. | |
4240 | if test "${enable_monolithic+set}" = set; then : | |
4241 | enableval=$enable_monolithic; | |
70c536f3 | 4242 | if test "$enableval" = yes; then |
3dd30495 | 4243 | wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes' |
70c536f3 | 4244 | else |
3dd30495 | 4245 | wx_cv_use_monolithic='wxUSE_MONOLITHIC=no' |
70c536f3 VZ |
4246 | fi |
4247 | ||
4248 | else | |
4249 | ||
3dd30495 | 4250 | wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}" |
70c536f3 | 4251 | |
47964710 VS |
4252 | fi |
4253 | ||
70c536f3 | 4254 | |
3dd30495 | 4255 | eval "$wx_cv_use_monolithic" |
70c536f3 | 4256 | |
6e198e97 | 4257 | if test x"$enablestring" = xdisable; then |
3dd30495 | 4258 | if test $wxUSE_MONOLITHIC = no; then |
6e198e97 | 4259 | result=yes |
7ac0e38e VZ |
4260 | else |
4261 | result=no | |
6e198e97 | 4262 | fi |
70c536f3 | 4263 | else |
3dd30495 | 4264 | result=$wxUSE_MONOLITHIC |
70c536f3 VZ |
4265 | fi |
4266 | ||
3dd30495 VZ |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4268 | $as_echo "$result" >&6; } | |
80367c29 | 4269 | |
a848cd7e | 4270 | |
6e198e97 VZ |
4271 | enablestring= |
4272 | defaultval= | |
238663c1 | 4273 | if test -z "$defaultval"; then |
6e198e97 VZ |
4274 | if test x"$enablestring" = xdisable; then |
4275 | defaultval=yes | |
4276 | else | |
4277 | defaultval=no | |
4278 | fi | |
4279 | fi | |
4280 | ||
3dd30495 VZ |
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-plugins" >&5 |
4282 | $as_echo_n "checking for --${enablestring:-enable}-plugins... " >&6; } | |
4283 | # Check whether --enable-plugins was given. | |
4284 | if test "${enable_plugins+set}" = set; then : | |
4285 | enableval=$enable_plugins; | |
a848cd7e | 4286 | if test "$enableval" = yes; then |
3dd30495 | 4287 | wx_cv_use_plugins='wxUSE_PLUGINS=yes' |
a848cd7e | 4288 | else |
3dd30495 | 4289 | wx_cv_use_plugins='wxUSE_PLUGINS=no' |
a848cd7e SC |
4290 | fi |
4291 | ||
4292 | else | |
4293 | ||
3dd30495 | 4294 | wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}" |
a848cd7e | 4295 | |
47964710 VS |
4296 | fi |
4297 | ||
a848cd7e | 4298 | |
3dd30495 | 4299 | eval "$wx_cv_use_plugins" |
a848cd7e | 4300 | |
6e198e97 | 4301 | if test x"$enablestring" = xdisable; then |
3dd30495 | 4302 | if test $wxUSE_PLUGINS = no; then |
6e198e97 | 4303 | result=yes |
7ac0e38e VZ |
4304 | else |
4305 | result=no | |
6e198e97 | 4306 | fi |
a848cd7e | 4307 | else |
3dd30495 | 4308 | result=$wxUSE_PLUGINS |
a848cd7e SC |
4309 | fi |
4310 | ||
3dd30495 VZ |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4312 | $as_echo "$result" >&6; } | |
6e198e97 | 4313 | |
a848cd7e | 4314 | |
3dd30495 VZ |
4315 | withstring=without |
4316 | defaultval=$wxUSE_ALL_FEATURES | |
238663c1 | 4317 | if test -z "$defaultval"; then |
3dd30495 | 4318 | if test x"$withstring" = xwithout; then |
6e198e97 VZ |
4319 | defaultval=yes |
4320 | else | |
4321 | defaultval=no | |
4322 | fi | |
4323 | fi | |
3dd30495 VZ |
4324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-subdirs" >&5 |
4325 | $as_echo_n "checking for --${withstring:-with}-subdirs... " >&6; } | |
6e198e97 | 4326 | |
3dd30495 VZ |
4327 | # Check whether --with-subdirs was given. |
4328 | if test "${with_subdirs+set}" = set; then : | |
4329 | withval=$with_subdirs; | |
4330 | if test "$withval" = yes; then | |
4331 | wx_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
4332 | else | |
4333 | wx_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
4334 | fi | |
abb6edd1 VS |
4335 | |
4336 | else | |
4337 | ||
3dd30495 | 4338 | wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}" |
abb6edd1 | 4339 | |
47964710 VS |
4340 | fi |
4341 | ||
abb6edd1 | 4342 | |
3dd30495 | 4343 | eval "$wx_cv_use_subdirs" |
abb6edd1 | 4344 | |
3dd30495 VZ |
4345 | if test x"$withstring" = xwithout; then |
4346 | if test $wxWITH_SUBDIRS = yes; then | |
7ac0e38e | 4347 | result=no |
3dd30495 VZ |
4348 | else |
4349 | result=yes | |
6e198e97 | 4350 | fi |
abb6edd1 | 4351 | else |
3dd30495 | 4352 | result=$wxWITH_SUBDIRS |
abb6edd1 VS |
4353 | fi |
4354 | ||
3dd30495 VZ |
4355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4356 | $as_echo "$result" >&6; } | |
abb6edd1 | 4357 | |
ffa0583f | 4358 | |
3dd30495 VZ |
4359 | # Check whether --with-flavour was given. |
4360 | if test "${with_flavour+set}" = set; then : | |
4361 | withval=$with_flavour; WX_FLAVOUR="$withval" | |
4362 | fi | |
6e198e97 | 4363 | |
3dd30495 VZ |
4364 | |
4365 | enablestring= | |
6e198e97 | 4366 | defaultval= |
238663c1 | 4367 | if test -z "$defaultval"; then |
6e198e97 VZ |
4368 | if test x"$enablestring" = xdisable; then |
4369 | defaultval=yes | |
4370 | else | |
4371 | defaultval=no | |
4372 | fi | |
4373 | fi | |
4374 | ||
3dd30495 VZ |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-official_build" >&5 |
4376 | $as_echo_n "checking for --${enablestring:-enable}-official_build... " >&6; } | |
4377 | # Check whether --enable-official_build was given. | |
4378 | if test "${enable_official_build+set}" = set; then : | |
4379 | enableval=$enable_official_build; | |
ffa0583f | 4380 | if test "$enableval" = yes; then |
3dd30495 | 4381 | wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' |
ffa0583f | 4382 | else |
3dd30495 | 4383 | wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' |
ffa0583f RL |
4384 | fi |
4385 | ||
4386 | else | |
4387 | ||
3dd30495 | 4388 | wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}" |
ffa0583f | 4389 | |
47964710 VS |
4390 | fi |
4391 | ||
a848cd7e | 4392 | |
3dd30495 | 4393 | eval "$wx_cv_use_official_build" |
ffa0583f | 4394 | |
6e198e97 | 4395 | if test x"$enablestring" = xdisable; then |
3dd30495 | 4396 | if test $wxUSE_OFFICIAL_BUILD = no; then |
6e198e97 | 4397 | result=yes |
7ac0e38e VZ |
4398 | else |
4399 | result=no | |
6e198e97 | 4400 | fi |
ffa0583f | 4401 | else |
3dd30495 | 4402 | result=$wxUSE_OFFICIAL_BUILD |
ffa0583f RL |
4403 | fi |
4404 | ||
3dd30495 VZ |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4406 | $as_echo "$result" >&6; } | |
4407 | ||
4408 | # Check whether --enable-vendor was given. | |
4409 | if test "${enable_vendor+set}" = set; then : | |
4410 | enableval=$enable_vendor; VENDOR="$enableval" | |
4411 | fi | |
6e198e97 | 4412 | |
3dd30495 VZ |
4413 | if test "x$VENDOR" = "x"; then |
4414 | VENDOR="custom" | |
4415 | fi | |
a848cd7e SC |
4416 | |
4417 | ||
3dd30495 | 4418 | enablestring=disable |
6e198e97 | 4419 | defaultval= |
238663c1 | 4420 | if test -z "$defaultval"; then |
6e198e97 VZ |
4421 | if test x"$enablestring" = xdisable; then |
4422 | defaultval=yes | |
4423 | else | |
4424 | defaultval=no | |
4425 | fi | |
4426 | fi | |
4427 | ||
3dd30495 VZ |
4428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-all-features" >&5 |
4429 | $as_echo_n "checking for --${enablestring:-enable}-all-features... " >&6; } | |
4430 | # Check whether --enable-all-features was given. | |
4431 | if test "${enable_all_features+set}" = set; then : | |
4432 | enableval=$enable_all_features; | |
931d7698 | 4433 | if test "$enableval" = yes; then |
3dd30495 | 4434 | wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes' |
931d7698 | 4435 | else |
3dd30495 | 4436 | wx_cv_use_all_features='wxUSE_ALL_FEATURES=no' |
931d7698 DE |
4437 | fi |
4438 | ||
4439 | else | |
4440 | ||
3dd30495 | 4441 | wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}" |
931d7698 | 4442 | |
47964710 VS |
4443 | fi |
4444 | ||
931d7698 | 4445 | |
3dd30495 | 4446 | eval "$wx_cv_use_all_features" |
931d7698 | 4447 | |
6e198e97 | 4448 | if test x"$enablestring" = xdisable; then |
3dd30495 | 4449 | if test $wxUSE_ALL_FEATURES = no; then |
6e198e97 | 4450 | result=yes |
7ac0e38e VZ |
4451 | else |
4452 | result=no | |
6e198e97 | 4453 | fi |
931d7698 | 4454 | else |
3dd30495 | 4455 | result=$wxUSE_ALL_FEATURES |
931d7698 DE |
4456 | fi |
4457 | ||
3dd30495 VZ |
4458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4459 | $as_echo "$result" >&6; } | |
4460 | ||
6e198e97 | 4461 | |
3dd30495 VZ |
4462 | if test "$wxUSE_ALL_FEATURES" = "no"; then |
4463 | DEFAULT_wxUSE_ARTPROVIDER_TANGO=no | |
4464 | DEFAULT_wxUSE_MEDIACTRL=no | |
4465 | fi | |
931d7698 | 4466 | |
a848cd7e | 4467 | |
3dd30495 VZ |
4468 | if test "$wxUSE_GUI" = "yes"; then |
4469 | ||
4470 | ||
4471 | enablestring= | |
a2bd84a5 VS |
4472 | defaultval= |
4473 | if test -z "$defaultval"; then | |
4474 | if test x"$enablestring" = xdisable; then | |
4475 | defaultval=yes | |
4476 | else | |
4477 | defaultval=no | |
4478 | fi | |
4479 | fi | |
4480 | ||
3dd30495 VZ |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-universal" >&5 |
4482 | $as_echo_n "checking for --${enablestring:-enable}-universal... " >&6; } | |
4483 | # Check whether --enable-universal was given. | |
4484 | if test "${enable_universal+set}" = set; then : | |
4485 | enableval=$enable_universal; | |
a2bd84a5 | 4486 | if test "$enableval" = yes; then |
3dd30495 | 4487 | wx_cv_use_universal='wxUSE_UNIVERSAL=yes' |
a2bd84a5 | 4488 | else |
3dd30495 | 4489 | wx_cv_use_universal='wxUSE_UNIVERSAL=no' |
a2bd84a5 VS |
4490 | fi |
4491 | ||
4492 | else | |
4493 | ||
3dd30495 | 4494 | wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}" |
a2bd84a5 | 4495 | |
47964710 VS |
4496 | fi |
4497 | ||
a2bd84a5 | 4498 | |
3dd30495 | 4499 | eval "$wx_cv_use_universal" |
a2bd84a5 VS |
4500 | |
4501 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 4502 | if test $wxUSE_UNIVERSAL = no; then |
a2bd84a5 | 4503 | result=yes |
7ac0e38e VZ |
4504 | else |
4505 | result=no | |
a2bd84a5 VS |
4506 | fi |
4507 | else | |
3dd30495 | 4508 | result=$wxUSE_UNIVERSAL |
a2bd84a5 VS |
4509 | fi |
4510 | ||
3dd30495 VZ |
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4512 | $as_echo "$result" >&6; } | |
a2bd84a5 | 4513 | |
3dd30495 | 4514 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a2bd84a5 | 4515 | |
3dd30495 VZ |
4516 | # Check whether --with-themes was given. |
4517 | if test "${with_themes+set}" = set; then : | |
4518 | withval=$with_themes; wxUNIV_THEMES="$withval" | |
4519 | fi | |
7beff712 | 4520 | |
3dd30495 | 4521 | fi |
7beff712 | 4522 | |
7beff712 | 4523 | |
3dd30495 VZ |
4524 | # Check whether --with-gtk was given. |
4525 | if test "${with_gtk+set}" = set; then : | |
4526 | withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
4527 | fi | |
4528 | ||
7beff712 | 4529 | |
3dd30495 VZ |
4530 | # Check whether --with-motif was given. |
4531 | if test "${with_motif+set}" = set; then : | |
4532 | withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
7beff712 VZ |
4533 | fi |
4534 | ||
4535 | ||
3dd30495 VZ |
4536 | # Check whether --with-osx_carbon was given. |
4537 | if test "${with_osx_carbon+set}" = set; then : | |
4538 | withval=$with_osx_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1 | |
4539 | fi | |
7beff712 | 4540 | |
7beff712 | 4541 | |
3dd30495 VZ |
4542 | # Check whether --with-osx_cocoa was given. |
4543 | if test "${with_osx_cocoa+set}" = set; then : | |
4544 | withval=$with_osx_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1 | |
4545 | fi | |
7beff712 VZ |
4546 | |
4547 | ||
3dd30495 VZ |
4548 | # Check whether --with-osx_iphone was given. |
4549 | if test "${with_osx_iphone+set}" = set; then : | |
4550 | withval=$with_osx_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1 | |
4551 | fi | |
a2bd84a5 | 4552 | |
a848cd7e | 4553 | |
3dd30495 VZ |
4554 | # Check whether --with-osx was given. |
4555 | if test "${with_osx+set}" = set; then : | |
4556 | withval=$with_osx; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1 | |
4557 | fi | |
6e198e97 | 4558 | |
a848cd7e | 4559 | |
3dd30495 VZ |
4560 | # Check whether --with-carbon was given. |
4561 | if test "${with_carbon+set}" = set; then : | |
4562 | withval=$with_carbon; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1 | |
4563 | fi | |
a848cd7e | 4564 | |
a848cd7e | 4565 | |
3dd30495 VZ |
4566 | # Check whether --with-cocoa was given. |
4567 | if test "${with_cocoa+set}" = set; then : | |
4568 | withval=$with_cocoa; wxUSE_OSX_COCOA="$withval" CACHE_OSX_COCOA=1 TOOLKIT_GIVEN=1 | |
47964710 VS |
4569 | fi |
4570 | ||
a848cd7e | 4571 | |
3dd30495 VZ |
4572 | # Check whether --with-iphone was given. |
4573 | if test "${with_iphone+set}" = set; then : | |
4574 | withval=$with_iphone; wxUSE_OSX_IPHONE="$withval" CACHE_OSX_IPHONE=1 TOOLKIT_GIVEN=1 | |
4575 | fi | |
a848cd7e | 4576 | |
a848cd7e | 4577 | |
3dd30495 VZ |
4578 | # Check whether --with-mac was given. |
4579 | if test "${with_mac+set}" = set; then : | |
4580 | withval=$with_mac; wxUSE_OSX_CARBON="$withval" CACHE_OSX_CARBON=1 TOOLKIT_GIVEN=1 | |
4581 | fi | |
6e198e97 | 4582 | |
a848cd7e | 4583 | |
3dd30495 VZ |
4584 | # Check whether --with-old_cocoa was given. |
4585 | if test "${with_old_cocoa+set}" = set; then : | |
4586 | withval=$with_old_cocoa; wxUSE_OLD_COCOA="$withval" CACHE_OLD_COCOA=1 TOOLKIT_GIVEN=1 | |
4587 | fi | |
6e4ae332 | 4588 | |
6e4ae332 | 4589 | |
3dd30495 VZ |
4590 | # Check whether --with-wine was given. |
4591 | if test "${with_wine+set}" = set; then : | |
4592 | withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1 | |
4593 | fi | |
6e4ae332 | 4594 | |
6e4ae332 | 4595 | |
3dd30495 VZ |
4596 | # Check whether --with-msw was given. |
4597 | if test "${with_msw+set}" = set; then : | |
4598 | withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
6e4ae332 VZ |
4599 | fi |
4600 | ||
4601 | ||
3dd30495 VZ |
4602 | # Check whether --with-pm was given. |
4603 | if test "${with_pm+set}" = set; then : | |
4604 | withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
4605 | fi | |
4606 | ||
4607 | ||
4608 | # Check whether --with-directfb was given. | |
4609 | if test "${with_directfb+set}" = set; then : | |
4610 | withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1 | |
4611 | fi | |
4612 | ||
4613 | ||
4614 | # Check whether --with-microwin was given. | |
4615 | if test "${with_microwin+set}" = set; then : | |
4616 | withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
4617 | fi | |
6e4ae332 | 4618 | |
6e4ae332 | 4619 | |
3dd30495 VZ |
4620 | # Check whether --with-x11 was given. |
4621 | if test "${with_x11+set}" = set; then : | |
4622 | withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
4623 | fi | |
6e4ae332 VZ |
4624 | |
4625 | ||
077c7880 | 4626 | enablestring= |
3dd30495 | 4627 | defaultval= |
238663c1 | 4628 | if test -z "$defaultval"; then |
6e198e97 VZ |
4629 | if test x"$enablestring" = xdisable; then |
4630 | defaultval=yes | |
4631 | else | |
4632 | defaultval=no | |
4633 | fi | |
4634 | fi | |
4635 | ||
3dd30495 VZ |
4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-nanox" >&5 |
4637 | $as_echo_n "checking for --${enablestring:-enable}-nanox... " >&6; } | |
4638 | # Check whether --enable-nanox was given. | |
4639 | if test "${enable_nanox+set}" = set; then : | |
4640 | enableval=$enable_nanox; | |
a848cd7e | 4641 | if test "$enableval" = yes; then |
3dd30495 | 4642 | wx_cv_use_nanox='wxUSE_NANOX=yes' |
a848cd7e | 4643 | else |
3dd30495 | 4644 | wx_cv_use_nanox='wxUSE_NANOX=no' |
a848cd7e SC |
4645 | fi |
4646 | ||
4647 | else | |
4648 | ||
3dd30495 | 4649 | wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}" |
a848cd7e | 4650 | |
47964710 VS |
4651 | fi |
4652 | ||
a848cd7e | 4653 | |
3dd30495 | 4654 | eval "$wx_cv_use_nanox" |
a848cd7e | 4655 | |
6e198e97 | 4656 | if test x"$enablestring" = xdisable; then |
3dd30495 | 4657 | if test $wxUSE_NANOX = no; then |
6e198e97 | 4658 | result=yes |
7ac0e38e VZ |
4659 | else |
4660 | result=no | |
6e198e97 | 4661 | fi |
a848cd7e | 4662 | else |
3dd30495 | 4663 | result=$wxUSE_NANOX |
a848cd7e SC |
4664 | fi |
4665 | ||
3dd30495 VZ |
4666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4667 | $as_echo "$result" >&6; } | |
4668 | ||
6e198e97 | 4669 | |
077c7880 | 4670 | enablestring= |
3dd30495 | 4671 | defaultval= |
238663c1 | 4672 | if test -z "$defaultval"; then |
6e198e97 VZ |
4673 | if test x"$enablestring" = xdisable; then |
4674 | defaultval=yes | |
4675 | else | |
4676 | defaultval=no | |
4677 | fi | |
4678 | fi | |
4679 | ||
3dd30495 VZ |
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-gpe" >&5 |
4681 | $as_echo_n "checking for --${enablestring:-enable}-gpe... " >&6; } | |
4682 | # Check whether --enable-gpe was given. | |
4683 | if test "${enable_gpe+set}" = set; then : | |
4684 | enableval=$enable_gpe; | |
a848cd7e | 4685 | if test "$enableval" = yes; then |
3dd30495 | 4686 | wx_cv_use_gpe='wxUSE_GPE=yes' |
a848cd7e | 4687 | else |
3dd30495 | 4688 | wx_cv_use_gpe='wxUSE_GPE=no' |
a848cd7e SC |
4689 | fi |
4690 | ||
4691 | else | |
4692 | ||
3dd30495 | 4693 | wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}" |
a848cd7e | 4694 | |
47964710 VS |
4695 | fi |
4696 | ||
a848cd7e | 4697 | |
3dd30495 | 4698 | eval "$wx_cv_use_gpe" |
a848cd7e | 4699 | |
6e198e97 | 4700 | if test x"$enablestring" = xdisable; then |
3dd30495 | 4701 | if test $wxUSE_GPE = no; then |
6e198e97 | 4702 | result=yes |
7ac0e38e VZ |
4703 | else |
4704 | result=no | |
6e198e97 | 4705 | fi |
a848cd7e | 4706 | else |
3dd30495 | 4707 | result=$wxUSE_GPE |
a848cd7e SC |
4708 | fi |
4709 | ||
3dd30495 VZ |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
4711 | $as_echo "$result" >&6; } | |
6e198e97 | 4712 | |
a848cd7e | 4713 | |
6e198e97 | 4714 | |
3dd30495 VZ |
4715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolkit" >&5 |
4716 | $as_echo_n "checking for toolkit... " >&6; } | |
a848cd7e | 4717 | |
a848cd7e | 4718 | |
a848cd7e | 4719 | |
3dd30495 VZ |
4720 | # In Wine, we need to default to MSW, not GTK or MOTIF |
4721 | if test "$wxUSE_WINE" = "yes"; then | |
4722 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
4723 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
4724 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
4725 | wxUSE_SHARED=no | |
4726 | CC=${CC:-winegcc} | |
4727 | CXX=${CXX:-wineg++} | |
47964710 VS |
4728 | fi |
4729 | ||
a848cd7e | 4730 | |
3dd30495 | 4731 | if test "$wxUSE_GUI" = "yes"; then |
a848cd7e | 4732 | |
3dd30495 VZ |
4733 | if test "$USE_BEOS" = 1; then |
4734 | as_fn_error $? "BeOS GUI is not supported yet, use --disable-gui" "$LINENO" 5 | |
4735 | fi | |
a848cd7e | 4736 | |
3dd30495 VZ |
4737 | if test "$TOOLKIT_GIVEN" = 1; then |
4738 | for toolkit in $ALL_TOOLKITS; do | |
4739 | var=wxUSE_$toolkit | |
4740 | eval "value=\$${var}" | |
4741 | if test "x$value" = "xno"; then | |
4742 | eval "$var=0" | |
4743 | elif test "x$value" != "x"; then | |
4744 | eval "$var=1" | |
4745 | fi | |
6e198e97 | 4746 | |
3dd30495 VZ |
4747 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then |
4748 | eval "wx${toolkit}_VERSION=$value" | |
4749 | fi | |
4750 | done | |
4751 | else | |
4752 | for toolkit in $ALL_TOOLKITS; do | |
4753 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
4754 | eval "wxUSE_$toolkit=\$${var}" | |
4755 | done | |
4756 | fi | |
a848cd7e | 4757 | |
3dd30495 VZ |
4758 | NUM_TOOLKITS=`expr ${wxUSE_OLD_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_OSX_CARBON:-0} \ |
4759 | + ${wxUSE_OSX_COCOA:-0} + ${wxUSE_OSX_IPHONE:-0} + ${wxUSE_DFB:-0} \ | |
4760 | + ${wxUSE_MICROWIN:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
6e198e97 | 4761 | |
3dd30495 VZ |
4762 | case "${host}" in |
4763 | *-pc-os2_emx | *-pc-os2-emx ) | |
4764 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
4765 | esac | |
4766 | ||
4767 | case "$NUM_TOOLKITS" in | |
4768 | 1) | |
4769 | ;; | |
4770 | 0) | |
4771 | as_fn_error $? "Please specify a toolkit -- cannot determine the default for ${host}" "$LINENO" 5 | |
4772 | ;; | |
4773 | *) | |
4774 | as_fn_error $? "Please specify at most one toolkit" "$LINENO" 5 | |
4775 | esac | |
4776 | ||
3dd30495 VZ |
4777 | for toolkit in $ALL_TOOLKITS; do |
4778 | var=wxUSE_$toolkit | |
4779 | eval "value=\$${var}" | |
4780 | if test "$value" = 1; then | |
4781 | toolkit_echo=`echo $toolkit | tr '[A-Z]' '[a-z]'` | |
4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $toolkit_echo" >&5 | |
4783 | $as_echo "$toolkit_echo" >&6; } | |
4784 | fi | |
4785 | done | |
4786 | else | |
4787 | if test "x$host_alias" != "x"; then | |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: base ($host_alias hosted) only" >&5 | |
4789 | $as_echo "base ($host_alias hosted) only" >&6; } | |
4790 | else | |
4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: base only" >&5 | |
4792 | $as_echo "base only" >&6; } | |
4793 | fi | |
4794 | fi | |
4795 | ||
4796 | wxUSE_MAC=0 | |
4797 | if test "$wxUSE_OSX_CARBON" = 1 \ | |
4798 | -o "$wxUSE_OSX_COCOA" = 1 \ | |
4799 | -o "$wxUSE_OSX_IPHONE" = 1; then | |
4800 | wxUSE_MAC=1 | |
4801 | fi | |
4802 | ||
4803 | ||
4804 | ||
4805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libpng" >&5 | |
4806 | $as_echo_n "checking for --with-libpng... " >&6; } | |
4807 | ||
4808 | # Check whether --with-libpng was given. | |
4809 | if test "${with_libpng+set}" = set; then : | |
4810 | withval=$with_libpng; | |
4811 | if test "$withval" = yes; then | |
4812 | wx_cv_use_libpng='wxUSE_LIBPNG=yes' | |
4813 | elif test "$withval" = no; then | |
4814 | wx_cv_use_libpng='wxUSE_LIBPNG=no' | |
4815 | elif test "$withval" = sys; then | |
4816 | wx_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4817 | elif test "$withval" = builtin; then | |
4818 | wx_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
4819 | else | |
4820 | as_fn_error $? "Invalid value for --with-libpng: should be yes, no, sys, or builtin" "$LINENO" 5 | |
4821 | fi | |
a848cd7e SC |
4822 | |
4823 | else | |
4824 | ||
3dd30495 | 4825 | wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 4826 | |
47964710 VS |
4827 | fi |
4828 | ||
a848cd7e | 4829 | |
3dd30495 | 4830 | eval "$wx_cv_use_libpng" |
a848cd7e | 4831 | |
3dd30495 VZ |
4832 | if test "$wxUSE_LIBPNG" = yes; then |
4833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4834 | $as_echo "yes" >&6; } | |
4835 | elif test "$wxUSE_LIBPNG" = no; then | |
4836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4837 | $as_echo "no" >&6; } | |
4838 | elif test "$wxUSE_LIBPNG" = sys; then | |
4839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: system version" >&5 | |
4840 | $as_echo "system version" >&6; } | |
4841 | elif test "$wxUSE_LIBPNG" = builtin; then | |
4842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin version" >&5 | |
4843 | $as_echo "builtin version" >&6; } | |
a848cd7e | 4844 | else |
3dd30495 | 4845 | as_fn_error $? "Invalid value for --with-libpng: should be yes, no, sys, or builtin" "$LINENO" 5 |
a848cd7e SC |
4846 | fi |
4847 | ||
6e198e97 | 4848 | |
3dd30495 VZ |
4849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libjpeg" >&5 |
4850 | $as_echo_n "checking for --with-libjpeg... " >&6; } | |
a848cd7e | 4851 | |
3dd30495 VZ |
4852 | # Check whether --with-libjpeg was given. |
4853 | if test "${with_libjpeg+set}" = set; then : | |
4854 | withval=$with_libjpeg; | |
4855 | if test "$withval" = yes; then | |
4856 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
4857 | elif test "$withval" = no; then | |
4858 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
4859 | elif test "$withval" = sys; then | |
4860 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4861 | elif test "$withval" = builtin; then | |
4862 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
4863 | else | |
4864 | as_fn_error $? "Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" "$LINENO" 5 | |
4865 | fi | |
a848cd7e SC |
4866 | |
4867 | else | |
4868 | ||
3dd30495 | 4869 | wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 4870 | |
47964710 VS |
4871 | fi |
4872 | ||
a848cd7e | 4873 | |
3dd30495 | 4874 | eval "$wx_cv_use_libjpeg" |
a848cd7e | 4875 | |
3dd30495 VZ |
4876 | if test "$wxUSE_LIBJPEG" = yes; then |
4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4878 | $as_echo "yes" >&6; } | |
4879 | elif test "$wxUSE_LIBJPEG" = no; then | |
4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4881 | $as_echo "no" >&6; } | |
4882 | elif test "$wxUSE_LIBJPEG" = sys; then | |
4883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: system version" >&5 | |
4884 | $as_echo "system version" >&6; } | |
4885 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
4886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin version" >&5 | |
4887 | $as_echo "builtin version" >&6; } | |
a848cd7e | 4888 | else |
3dd30495 | 4889 | as_fn_error $? "Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" "$LINENO" 5 |
a848cd7e SC |
4890 | fi |
4891 | ||
6e198e97 | 4892 | |
3dd30495 VZ |
4893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libtiff" >&5 |
4894 | $as_echo_n "checking for --with-libtiff... " >&6; } | |
a848cd7e | 4895 | |
3dd30495 VZ |
4896 | # Check whether --with-libtiff was given. |
4897 | if test "${with_libtiff+set}" = set; then : | |
4898 | withval=$with_libtiff; | |
4899 | if test "$withval" = yes; then | |
4900 | wx_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
4901 | elif test "$withval" = no; then | |
4902 | wx_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
4903 | elif test "$withval" = sys; then | |
4904 | wx_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4905 | elif test "$withval" = builtin; then | |
4906 | wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
4907 | else | |
4908 | as_fn_error $? "Invalid value for --with-libtiff: should be yes, no, sys, or builtin" "$LINENO" 5 | |
4909 | fi | |
a848cd7e SC |
4910 | |
4911 | else | |
4912 | ||
3dd30495 | 4913 | wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 4914 | |
47964710 VS |
4915 | fi |
4916 | ||
a848cd7e | 4917 | |
3dd30495 | 4918 | eval "$wx_cv_use_libtiff" |
a848cd7e | 4919 | |
3dd30495 VZ |
4920 | if test "$wxUSE_LIBTIFF" = yes; then |
4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4922 | $as_echo "yes" >&6; } | |
4923 | elif test "$wxUSE_LIBTIFF" = no; then | |
4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4925 | $as_echo "no" >&6; } | |
4926 | elif test "$wxUSE_LIBTIFF" = sys; then | |
4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: system version" >&5 | |
4928 | $as_echo "system version" >&6; } | |
4929 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin version" >&5 | |
4931 | $as_echo "builtin version" >&6; } | |
a848cd7e | 4932 | else |
3dd30495 | 4933 | as_fn_error $? "Invalid value for --with-libtiff: should be yes, no, sys, or builtin" "$LINENO" 5 |
a848cd7e SC |
4934 | fi |
4935 | ||
6e198e97 | 4936 | |
3dd30495 VZ |
4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libxpm" >&5 |
4938 | $as_echo_n "checking for --with-libxpm... " >&6; } | |
a848cd7e | 4939 | |
3dd30495 VZ |
4940 | # Check whether --with-libxpm was given. |
4941 | if test "${with_libxpm+set}" = set; then : | |
4942 | withval=$with_libxpm; | |
4943 | if test "$withval" = yes; then | |
4944 | wx_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
4945 | elif test "$withval" = no; then | |
4946 | wx_cv_use_libxpm='wxUSE_LIBXPM=no' | |
4947 | elif test "$withval" = sys; then | |
4948 | wx_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
4949 | elif test "$withval" = builtin; then | |
4950 | wx_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
4951 | else | |
4952 | as_fn_error $? "Invalid value for --with-libxpm: should be yes, no, sys, or builtin" "$LINENO" 5 | |
4953 | fi | |
8575ff50 VZ |
4954 | |
4955 | else | |
4956 | ||
3dd30495 | 4957 | wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}" |
8575ff50 VZ |
4958 | |
4959 | fi | |
4960 | ||
4961 | ||
3dd30495 | 4962 | eval "$wx_cv_use_libxpm" |
8575ff50 | 4963 | |
3dd30495 VZ |
4964 | if test "$wxUSE_LIBXPM" = yes; then |
4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4966 | $as_echo "yes" >&6; } | |
4967 | elif test "$wxUSE_LIBXPM" = no; then | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4969 | $as_echo "no" >&6; } | |
4970 | elif test "$wxUSE_LIBXPM" = sys; then | |
4971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: system version" >&5 | |
4972 | $as_echo "system version" >&6; } | |
4973 | elif test "$wxUSE_LIBXPM" = builtin; then | |
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin version" >&5 | |
4975 | $as_echo "builtin version" >&6; } | |
8575ff50 | 4976 | else |
3dd30495 | 4977 | as_fn_error $? "Invalid value for --with-libxpm: should be yes, no, sys, or builtin" "$LINENO" 5 |
8575ff50 VZ |
4978 | fi |
4979 | ||
8575ff50 | 4980 | |
3dd30495 | 4981 | withstring= |
6e198e97 | 4982 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 4983 | if test -z "$defaultval"; then |
3dd30495 | 4984 | if test x"$withstring" = xwithout; then |
6e198e97 VZ |
4985 | defaultval=yes |
4986 | else | |
4987 | defaultval=no | |
4988 | fi | |
4989 | fi | |
3dd30495 VZ |
4990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-libiconv" >&5 |
4991 | $as_echo_n "checking for --${withstring:-with}-libiconv... " >&6; } | |
6e198e97 | 4992 | |
3dd30495 VZ |
4993 | # Check whether --with-libiconv was given. |
4994 | if test "${with_libiconv+set}" = set; then : | |
4995 | withval=$with_libiconv; | |
4996 | if test "$withval" = yes; then | |
4997 | wx_cv_use_libiconv='wxUSE_LIBICONV=yes' | |
4998 | else | |
4999 | wx_cv_use_libiconv='wxUSE_LIBICONV=no' | |
5000 | fi | |
a848cd7e SC |
5001 | |
5002 | else | |
5003 | ||
3dd30495 | 5004 | wx_cv_use_libiconv='wxUSE_LIBICONV=${'DEFAULT_wxUSE_LIBICONV":-$defaultval}" |
a848cd7e | 5005 | |
47964710 VS |
5006 | fi |
5007 | ||
a848cd7e | 5008 | |
3dd30495 | 5009 | eval "$wx_cv_use_libiconv" |
a848cd7e | 5010 | |
3dd30495 VZ |
5011 | if test x"$withstring" = xwithout; then |
5012 | if test $wxUSE_LIBICONV = yes; then | |
7ac0e38e | 5013 | result=no |
3dd30495 VZ |
5014 | else |
5015 | result=yes | |
6e198e97 | 5016 | fi |
a848cd7e | 5017 | else |
3dd30495 | 5018 | result=$wxUSE_LIBICONV |
a848cd7e SC |
5019 | fi |
5020 | ||
3dd30495 VZ |
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5022 | $as_echo "$result" >&6; } | |
6e198e97 | 5023 | |
a848cd7e | 5024 | |
3dd30495 | 5025 | withstring= |
6e198e97 | 5026 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5027 | if test -z "$defaultval"; then |
3dd30495 | 5028 | if test x"$withstring" = xwithout; then |
6e198e97 VZ |
5029 | defaultval=yes |
5030 | else | |
5031 | defaultval=no | |
5032 | fi | |
5033 | fi | |
3dd30495 VZ |
5034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-libmspack" >&5 |
5035 | $as_echo_n "checking for --${withstring:-with}-libmspack... " >&6; } | |
6e198e97 | 5036 | |
3dd30495 VZ |
5037 | # Check whether --with-libmspack was given. |
5038 | if test "${with_libmspack+set}" = set; then : | |
5039 | withval=$with_libmspack; | |
5040 | if test "$withval" = yes; then | |
5041 | wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
5042 | else | |
5043 | wx_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
5044 | fi | |
a848cd7e SC |
5045 | |
5046 | else | |
5047 | ||
3dd30495 | 5048 | wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}" |
a848cd7e | 5049 | |
47964710 VS |
5050 | fi |
5051 | ||
a848cd7e | 5052 | |
3dd30495 | 5053 | eval "$wx_cv_use_libmspack" |
a848cd7e | 5054 | |
3dd30495 VZ |
5055 | if test x"$withstring" = xwithout; then |
5056 | if test $wxUSE_LIBMSPACK = yes; then | |
7ac0e38e | 5057 | result=no |
3dd30495 VZ |
5058 | else |
5059 | result=yes | |
6e198e97 | 5060 | fi |
a848cd7e | 5061 | else |
3dd30495 | 5062 | result=$wxUSE_LIBMSPACK |
a848cd7e SC |
5063 | fi |
5064 | ||
3dd30495 VZ |
5065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5066 | $as_echo "$result" >&6; } | |
a848cd7e SC |
5067 | |
5068 | ||
3dd30495 | 5069 | withstring=without |
6e198e97 | 5070 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5071 | if test -z "$defaultval"; then |
3dd30495 | 5072 | if test x"$withstring" = xwithout; then |
6e198e97 VZ |
5073 | defaultval=yes |
5074 | else | |
5075 | defaultval=no | |
5076 | fi | |
5077 | fi | |
3dd30495 VZ |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-gtkprint" >&5 |
5079 | $as_echo_n "checking for --${withstring:-with}-gtkprint... " >&6; } | |
6e198e97 | 5080 | |
3dd30495 VZ |
5081 | # Check whether --with-gtkprint was given. |
5082 | if test "${with_gtkprint+set}" = set; then : | |
5083 | withval=$with_gtkprint; | |
5084 | if test "$withval" = yes; then | |
5085 | wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes' | |
5086 | else | |
5087 | wx_cv_use_gtkprint='wxUSE_GTKPRINT=no' | |
5088 | fi | |
a848cd7e SC |
5089 | |
5090 | else | |
5091 | ||
3dd30495 | 5092 | wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}" |
a848cd7e | 5093 | |
47964710 VS |
5094 | fi |
5095 | ||
a848cd7e | 5096 | |
3dd30495 | 5097 | eval "$wx_cv_use_gtkprint" |
a848cd7e | 5098 | |
3dd30495 VZ |
5099 | if test x"$withstring" = xwithout; then |
5100 | if test $wxUSE_GTKPRINT = yes; then | |
7ac0e38e | 5101 | result=no |
3dd30495 VZ |
5102 | else |
5103 | result=yes | |
6e198e97 | 5104 | fi |
a848cd7e | 5105 | else |
3dd30495 | 5106 | result=$wxUSE_GTKPRINT |
a848cd7e SC |
5107 | fi |
5108 | ||
3dd30495 VZ |
5109 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5110 | $as_echo "$result" >&6; } | |
6e198e97 | 5111 | |
a848cd7e | 5112 | |
3dd30495 | 5113 | withstring=without |
39931206 VZ |
5114 | defaultval=$wxUSE_ALL_FEATURES |
5115 | if test -z "$defaultval"; then | |
3dd30495 | 5116 | if test x"$withstring" = xwithout; then |
39931206 VZ |
5117 | defaultval=yes |
5118 | else | |
5119 | defaultval=no | |
5120 | fi | |
5121 | fi | |
3dd30495 VZ |
5122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-gnomeprint" >&5 |
5123 | $as_echo_n "checking for --${withstring:-with}-gnomeprint... " >&6; } | |
39931206 | 5124 | |
3dd30495 VZ |
5125 | # Check whether --with-gnomeprint was given. |
5126 | if test "${with_gnomeprint+set}" = set; then : | |
5127 | withval=$with_gnomeprint; | |
5128 | if test "$withval" = yes; then | |
5129 | wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
5130 | else | |
5131 | wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
5132 | fi | |
39931206 VZ |
5133 | |
5134 | else | |
5135 | ||
3dd30495 | 5136 | wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}" |
39931206 | 5137 | |
47964710 VS |
5138 | fi |
5139 | ||
39931206 | 5140 | |
3dd30495 | 5141 | eval "$wx_cv_use_gnomeprint" |
39931206 | 5142 | |
3dd30495 VZ |
5143 | if test x"$withstring" = xwithout; then |
5144 | if test $wxUSE_LIBGNOMEPRINT = yes; then | |
7ac0e38e | 5145 | result=no |
3dd30495 VZ |
5146 | else |
5147 | result=yes | |
39931206 VZ |
5148 | fi |
5149 | else | |
3dd30495 | 5150 | result=$wxUSE_LIBGNOMEPRINT |
39931206 VZ |
5151 | fi |
5152 | ||
3dd30495 VZ |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5154 | $as_echo "$result" >&6; } | |
39931206 VZ |
5155 | |
5156 | ||
3dd30495 | 5157 | withstring= |
39931206 VZ |
5158 | defaultval=$wxUSE_ALL_FEATURES |
5159 | if test -z "$defaultval"; then | |
3dd30495 | 5160 | if test x"$withstring" = xwithout; then |
39931206 VZ |
5161 | defaultval=yes |
5162 | else | |
5163 | defaultval=no | |
5164 | fi | |
5165 | fi | |
3dd30495 VZ |
5166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-gnomevfs" >&5 |
5167 | $as_echo_n "checking for --${withstring:-with}-gnomevfs... " >&6; } | |
39931206 | 5168 | |
3dd30495 VZ |
5169 | # Check whether --with-gnomevfs was given. |
5170 | if test "${with_gnomevfs+set}" = set; then : | |
5171 | withval=$with_gnomevfs; | |
5172 | if test "$withval" = yes; then | |
5173 | wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' | |
5174 | else | |
5175 | wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' | |
5176 | fi | |
39931206 VZ |
5177 | |
5178 | else | |
5179 | ||
3dd30495 | 5180 | wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}" |
39931206 | 5181 | |
47964710 VS |
5182 | fi |
5183 | ||
39931206 | 5184 | |
3dd30495 | 5185 | eval "$wx_cv_use_gnomevfs" |
39931206 | 5186 | |
3dd30495 VZ |
5187 | if test x"$withstring" = xwithout; then |
5188 | if test $wxUSE_LIBGNOMEVFS = yes; then | |
7ac0e38e | 5189 | result=no |
3dd30495 VZ |
5190 | else |
5191 | result=yes | |
39931206 VZ |
5192 | fi |
5193 | else | |
3dd30495 | 5194 | result=$wxUSE_LIBGNOMEVFS |
39931206 VZ |
5195 | fi |
5196 | ||
3dd30495 VZ |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5198 | $as_echo "$result" >&6; } | |
39931206 VZ |
5199 | |
5200 | ||
afbf46a3 VZ |
5201 | withstring= |
5202 | defaultval=$wxUSE_ALL_FEATURES | |
5203 | if test -z "$defaultval"; then | |
5204 | if test x"$withstring" = xwithout; then | |
5205 | defaultval=yes | |
5206 | else | |
5207 | defaultval=no | |
5208 | fi | |
5209 | fi | |
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-libnotify" >&5 | |
5211 | $as_echo_n "checking for --${withstring:-with}-libnotify... " >&6; } | |
5212 | ||
5213 | # Check whether --with-libnotify was given. | |
5214 | if test "${with_libnotify+set}" = set; then : | |
5215 | withval=$with_libnotify; | |
5216 | if test "$withval" = yes; then | |
5217 | wx_cv_use_libnotify='wxUSE_LIBNOTIFY=yes' | |
5218 | else | |
5219 | wx_cv_use_libnotify='wxUSE_LIBNOTIFY=no' | |
5220 | fi | |
5221 | ||
5222 | else | |
5223 | ||
5224 | wx_cv_use_libnotify='wxUSE_LIBNOTIFY=${'DEFAULT_wxUSE_LIBNOTIFY":-$defaultval}" | |
5225 | ||
5226 | fi | |
5227 | ||
5228 | ||
5229 | eval "$wx_cv_use_libnotify" | |
5230 | ||
5231 | if test x"$withstring" = xwithout; then | |
5232 | if test $wxUSE_LIBNOTIFY = yes; then | |
5233 | result=no | |
5234 | else | |
5235 | result=yes | |
5236 | fi | |
5237 | else | |
5238 | result=$wxUSE_LIBNOTIFY | |
5239 | fi | |
5240 | ||
5241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 | |
5242 | $as_echo "$result" >&6; } | |
5243 | ||
5244 | ||
3dd30495 | 5245 | withstring= |
39931206 VZ |
5246 | defaultval=$wxUSE_ALL_FEATURES |
5247 | if test -z "$defaultval"; then | |
3dd30495 | 5248 | if test x"$withstring" = xwithout; then |
39931206 VZ |
5249 | defaultval=yes |
5250 | else | |
5251 | defaultval=no | |
5252 | fi | |
5253 | fi | |
3dd30495 VZ |
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-hildon" >&5 |
5255 | $as_echo_n "checking for --${withstring:-with}-hildon... " >&6; } | |
39931206 | 5256 | |
3dd30495 VZ |
5257 | # Check whether --with-hildon was given. |
5258 | if test "${with_hildon+set}" = set; then : | |
5259 | withval=$with_hildon; | |
5260 | if test "$withval" = yes; then | |
5261 | wx_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
5262 | else | |
5263 | wx_cv_use_hildon='wxUSE_LIBHILDON=no' | |
5264 | fi | |
39931206 VZ |
5265 | |
5266 | else | |
5267 | ||
3dd30495 | 5268 | wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}" |
39931206 | 5269 | |
47964710 VS |
5270 | fi |
5271 | ||
39931206 | 5272 | |
3dd30495 | 5273 | eval "$wx_cv_use_hildon" |
39931206 | 5274 | |
3dd30495 VZ |
5275 | if test x"$withstring" = xwithout; then |
5276 | if test $wxUSE_LIBHILDON = yes; then | |
7ac0e38e | 5277 | result=no |
3dd30495 VZ |
5278 | else |
5279 | result=yes | |
39931206 VZ |
5280 | fi |
5281 | else | |
3dd30495 | 5282 | result=$wxUSE_LIBHILDON |
39931206 VZ |
5283 | fi |
5284 | ||
3dd30495 VZ |
5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5286 | $as_echo "$result" >&6; } | |
39931206 VZ |
5287 | |
5288 | ||
3dd30495 | 5289 | withstring= |
178c7760 JS |
5290 | defaultval=$wxUSE_ALL_FEATURES |
5291 | if test -z "$defaultval"; then | |
3dd30495 | 5292 | if test x"$withstring" = xwithout; then |
178c7760 JS |
5293 | defaultval=yes |
5294 | else | |
5295 | defaultval=no | |
5296 | fi | |
5297 | fi | |
3dd30495 VZ |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-opengl" >&5 |
5299 | $as_echo_n "checking for --${withstring:-with}-opengl... " >&6; } | |
178c7760 | 5300 | |
3dd30495 VZ |
5301 | # Check whether --with-opengl was given. |
5302 | if test "${with_opengl+set}" = set; then : | |
5303 | withval=$with_opengl; | |
5304 | if test "$withval" = yes; then | |
5305 | wx_cv_use_opengl='wxUSE_OPENGL=yes' | |
5306 | else | |
5307 | wx_cv_use_opengl='wxUSE_OPENGL=no' | |
5308 | fi | |
178c7760 JS |
5309 | |
5310 | else | |
5311 | ||
3dd30495 | 5312 | wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}" |
178c7760 JS |
5313 | |
5314 | fi | |
5315 | ||
5316 | ||
3dd30495 | 5317 | eval "$wx_cv_use_opengl" |
178c7760 | 5318 | |
3dd30495 VZ |
5319 | if test x"$withstring" = xwithout; then |
5320 | if test $wxUSE_OPENGL = yes; then | |
178c7760 | 5321 | result=no |
3dd30495 VZ |
5322 | else |
5323 | result=yes | |
178c7760 JS |
5324 | fi |
5325 | else | |
3dd30495 | 5326 | result=$wxUSE_OPENGL |
178c7760 JS |
5327 | fi |
5328 | ||
3dd30495 VZ |
5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5330 | $as_echo "$result" >&6; } | |
178c7760 JS |
5331 | |
5332 | ||
3dd30495 VZ |
5333 | fi |
5334 | ||
5335 | ||
5336 | withstring= | |
6e198e97 | 5337 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5338 | if test -z "$defaultval"; then |
3dd30495 | 5339 | if test x"$withstring" = xwithout; then |
6e198e97 VZ |
5340 | defaultval=yes |
5341 | else | |
5342 | defaultval=no | |
5343 | fi | |
5344 | fi | |
3dd30495 VZ |
5345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-dmalloc" >&5 |
5346 | $as_echo_n "checking for --${withstring:-with}-dmalloc... " >&6; } | |
6e198e97 | 5347 | |
3dd30495 VZ |
5348 | # Check whether --with-dmalloc was given. |
5349 | if test "${with_dmalloc+set}" = set; then : | |
5350 | withval=$with_dmalloc; | |
5351 | if test "$withval" = yes; then | |
5352 | wx_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
5353 | else | |
5354 | wx_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
5355 | fi | |
a848cd7e SC |
5356 | |
5357 | else | |
5358 | ||
3dd30495 | 5359 | wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}" |
a848cd7e | 5360 | |
47964710 VS |
5361 | fi |
5362 | ||
a848cd7e | 5363 | |
3dd30495 | 5364 | eval "$wx_cv_use_dmalloc" |
a848cd7e | 5365 | |
3dd30495 VZ |
5366 | if test x"$withstring" = xwithout; then |
5367 | if test $wxUSE_DMALLOC = yes; then | |
7ac0e38e | 5368 | result=no |
3dd30495 VZ |
5369 | else |
5370 | result=yes | |
6e198e97 | 5371 | fi |
a848cd7e | 5372 | else |
3dd30495 | 5373 | result=$wxUSE_DMALLOC |
a848cd7e SC |
5374 | fi |
5375 | ||
3dd30495 VZ |
5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5377 | $as_echo "$result" >&6; } | |
6e198e97 | 5378 | |
a848cd7e | 5379 | |
3dd30495 | 5380 | withstring= |
6e198e97 | 5381 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 5382 | if test -z "$defaultval"; then |
3dd30495 | 5383 | if test x"$withstring" = xwithout; then |
6e198e97 VZ |
5384 | defaultval=yes |
5385 | else | |
5386 | defaultval=no | |
5387 | fi | |
5388 | fi | |
3dd30495 VZ |
5389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${withstring:-with}-sdl" >&5 |
5390 | $as_echo_n "checking for --${withstring:-with}-sdl... " >&6; } | |
6e198e97 | 5391 | |
3dd30495 VZ |
5392 | # Check whether --with-sdl was given. |
5393 | if test "${with_sdl+set}" = set; then : | |
5394 | withval=$with_sdl; | |
5395 | if test "$withval" = yes; then | |
5396 | wx_cv_use_sdl='wxUSE_LIBSDL=yes' | |
5397 | else | |
5398 | wx_cv_use_sdl='wxUSE_LIBSDL=no' | |
5399 | fi | |
81f90336 MW |
5400 | |
5401 | else | |
5402 | ||
3dd30495 | 5403 | wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}" |
81f90336 | 5404 | |
47964710 VS |
5405 | fi |
5406 | ||
81f90336 | 5407 | |
3dd30495 | 5408 | eval "$wx_cv_use_sdl" |
81f90336 | 5409 | |
3dd30495 VZ |
5410 | if test x"$withstring" = xwithout; then |
5411 | if test $wxUSE_LIBSDL = yes; then | |
7ac0e38e | 5412 | result=no |
3dd30495 VZ |
5413 | else |
5414 | result=yes | |
6e198e97 | 5415 | fi |
81f90336 | 5416 | else |
3dd30495 | 5417 | result=$wxUSE_LIBSDL |
81f90336 MW |
5418 | fi |
5419 | ||
3dd30495 VZ |
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5421 | $as_echo "$result" >&6; } | |
6e198e97 | 5422 | |
81f90336 | 5423 | |
3dd30495 VZ |
5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-regex" >&5 |
5425 | $as_echo_n "checking for --with-regex... " >&6; } | |
6e198e97 | 5426 | |
3dd30495 VZ |
5427 | # Check whether --with-regex was given. |
5428 | if test "${with_regex+set}" = set; then : | |
5429 | withval=$with_regex; | |
5430 | if test "$withval" = yes; then | |
5431 | wx_cv_use_regex='wxUSE_REGEX=yes' | |
5432 | elif test "$withval" = no; then | |
5433 | wx_cv_use_regex='wxUSE_REGEX=no' | |
5434 | elif test "$withval" = sys; then | |
5435 | wx_cv_use_regex='wxUSE_REGEX=sys' | |
5436 | elif test "$withval" = builtin; then | |
5437 | wx_cv_use_regex='wxUSE_REGEX=builtin' | |
5438 | else | |
5439 | as_fn_error $? "Invalid value for --with-regex: should be yes, no, sys, or builtin" "$LINENO" 5 | |
5440 | fi | |
4db03d26 VZ |
5441 | |
5442 | else | |
5443 | ||
3dd30495 | 5444 | wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}" |
4db03d26 | 5445 | |
47964710 VS |
5446 | fi |
5447 | ||
4db03d26 | 5448 | |
3dd30495 | 5449 | eval "$wx_cv_use_regex" |
4db03d26 | 5450 | |
3dd30495 VZ |
5451 | if test "$wxUSE_REGEX" = yes; then |
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5453 | $as_echo "yes" >&6; } | |
5454 | elif test "$wxUSE_REGEX" = no; then | |
5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5456 | $as_echo "no" >&6; } | |
5457 | elif test "$wxUSE_REGEX" = sys; then | |
5458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: system version" >&5 | |
5459 | $as_echo "system version" >&6; } | |
5460 | elif test "$wxUSE_REGEX" = builtin; then | |
5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin version" >&5 | |
5462 | $as_echo "builtin version" >&6; } | |
4db03d26 | 5463 | else |
3dd30495 | 5464 | as_fn_error $? "Invalid value for --with-regex: should be yes, no, sys, or builtin" "$LINENO" 5 |
4db03d26 VZ |
5465 | fi |
5466 | ||
6e198e97 | 5467 | |
3dd30495 VZ |
5468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-zlib" >&5 |
5469 | $as_echo_n "checking for --with-zlib... " >&6; } | |
4db03d26 | 5470 | |
3dd30495 VZ |
5471 | # Check whether --with-zlib was given. |
5472 | if test "${with_zlib+set}" = set; then : | |
5473 | withval=$with_zlib; | |
5474 | if test "$withval" = yes; then | |
5475 | wx_cv_use_zlib='wxUSE_ZLIB=yes' | |
5476 | elif test "$withval" = no; then | |
5477 | wx_cv_use_zlib='wxUSE_ZLIB=no' | |
5478 | elif test "$withval" = sys; then | |
5479 | wx_cv_use_zlib='wxUSE_ZLIB=sys' | |
5480 | elif test "$withval" = builtin; then | |
5481 | wx_cv_use_zlib='wxUSE_ZLIB=builtin' | |
5482 | else | |
5483 | as_fn_error $? "Invalid value for --with-zlib: should be yes, no, sys, or builtin" "$LINENO" 5 | |
5484 | fi | |
a848cd7e SC |
5485 | |
5486 | else | |
5487 | ||
3dd30495 | 5488 | wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}" |
a848cd7e | 5489 | |
47964710 VS |
5490 | fi |
5491 | ||
a848cd7e | 5492 | |
3dd30495 | 5493 | eval "$wx_cv_use_zlib" |
a848cd7e | 5494 | |
3dd30495 VZ |
5495 | if test "$wxUSE_ZLIB" = yes; then |
5496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5497 | $as_echo "yes" >&6; } | |
5498 | elif test "$wxUSE_ZLIB" = no; then | |
5499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5500 | $as_echo "no" >&6; } | |
5501 | elif test "$wxUSE_ZLIB" = sys; then | |
5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: system version" >&5 | |
5503 | $as_echo "system version" >&6; } | |
5504 | elif test "$wxUSE_ZLIB" = builtin; then | |
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin version" >&5 | |
5506 | $as_echo "builtin version" >&6; } | |
a848cd7e | 5507 | else |
3dd30495 | 5508 | as_fn_error $? "Invalid value for --with-zlib: should be yes, no, sys, or builtin" "$LINENO" 5 |
a848cd7e SC |
5509 | fi |
5510 | ||
6e198e97 | 5511 | |
3dd30495 VZ |
5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-expat" >&5 |
5513 | $as_echo_n "checking for --with-expat... " >&6; } | |
a848cd7e | 5514 | |
3dd30495 VZ |
5515 | # Check whether --with-expat was given. |
5516 | if test "${with_expat+set}" = set; then : | |
5517 | withval=$with_expat; | |
5518 | if test "$withval" = yes; then | |
5519 | wx_cv_use_expat='wxUSE_EXPAT=yes' | |
5520 | elif test "$withval" = no; then | |
5521 | wx_cv_use_expat='wxUSE_EXPAT=no' | |
5522 | elif test "$withval" = sys; then | |
5523 | wx_cv_use_expat='wxUSE_EXPAT=sys' | |
5524 | elif test "$withval" = builtin; then | |
5525 | wx_cv_use_expat='wxUSE_EXPAT=builtin' | |
5526 | else | |
5527 | as_fn_error $? "Invalid value for --with-expat: should be yes, no, sys, or builtin" "$LINENO" 5 | |
5528 | fi | |
eaff0f0d VZ |
5529 | |
5530 | else | |
5531 | ||
3dd30495 | 5532 | wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}" |
eaff0f0d | 5533 | |
47964710 VS |
5534 | fi |
5535 | ||
eaff0f0d | 5536 | |
3dd30495 | 5537 | eval "$wx_cv_use_expat" |
eaff0f0d | 5538 | |
3dd30495 VZ |
5539 | if test "$wxUSE_EXPAT" = yes; then |
5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5541 | $as_echo "yes" >&6; } | |
5542 | elif test "$wxUSE_EXPAT" = no; then | |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5544 | $as_echo "no" >&6; } | |
5545 | elif test "$wxUSE_EXPAT" = sys; then | |
5546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: system version" >&5 | |
5547 | $as_echo "system version" >&6; } | |
5548 | elif test "$wxUSE_EXPAT" = builtin; then | |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: builtin version" >&5 | |
5550 | $as_echo "builtin version" >&6; } | |
eaff0f0d | 5551 | else |
3dd30495 | 5552 | as_fn_error $? "Invalid value for --with-expat: should be yes, no, sys, or builtin" "$LINENO" 5 |
6e198e97 VZ |
5553 | fi |
5554 | ||
a848cd7e | 5555 | |
3dd30495 VZ |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-macosx-sdk" >&5 |
5557 | $as_echo_n "checking for --with-macosx-sdk... " >&6; } | |
a848cd7e | 5558 | |
3dd30495 VZ |
5559 | # Check whether --with-macosx-sdk was given. |
5560 | if test "${with_macosx_sdk+set}" = set; then : | |
5561 | withval=$with_macosx_sdk; | |
5562 | wxUSE_MACOSX_SDK=$withval | |
5563 | wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval" | |
a848cd7e | 5564 | |
47964710 VS |
5565 | fi |
5566 | ||
3dd30495 VZ |
5567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_SDK" >&5 |
5568 | $as_echo "$wxUSE_MACOSX_SDK" >&6; } | |
a848cd7e | 5569 | |
3dd30495 VZ |
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-macosx-version-min" >&5 |
5571 | $as_echo_n "checking for --with-macosx-version-min... " >&6; } | |
a848cd7e | 5572 | |
3dd30495 VZ |
5573 | # Check whether --with-macosx-version-min was given. |
5574 | if test "${with_macosx_version_min+set}" = set; then : | |
5575 | withval=$with_macosx_version_min; | |
5576 | wxUSE_MACOSX_VERSION_MIN=$withval | |
5577 | wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval" | |
a848cd7e | 5578 | |
3dd30495 | 5579 | fi |
6e198e97 | 5580 | |
3dd30495 VZ |
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_VERSION_MIN" >&5 |
5582 | $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; } | |
a848cd7e | 5583 | |
6e198e97 | 5584 | |
3dd30495 VZ |
5585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-debug" >&5 |
5586 | $as_echo_n "checking for --enable-debug... " >&6; } | |
5587 | # Check whether --enable-debug was given. | |
5588 | if test "${enable_debug+set}" = set; then : | |
5589 | enableval=$enable_debug; | |
5590 | if test "$enableval" = yes; then | |
5591 | wxUSE_DEBUG=yes | |
5592 | elif test "$enableval" = no; then | |
5593 | wxUSE_DEBUG=no | |
5594 | elif test "$enableval" = max; then | |
5595 | wxUSE_DEBUG=yes | |
5596 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=2" | |
5597 | else | |
5598 | as_fn_error $? "Invalid --enable-debug value, must be yes, no or max" "$LINENO" 5 | |
5599 | fi | |
a848cd7e SC |
5600 | |
5601 | else | |
3dd30495 | 5602 | wxUSE_DEBUG=default |
a848cd7e | 5603 | |
47964710 VS |
5604 | fi |
5605 | ||
3dd30495 VZ |
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_debug-default}" >&5 |
5607 | $as_echo "${enable_debug-default}" >&6; } | |
a848cd7e | 5608 | |
3dd30495 VZ |
5609 | case "$wxUSE_DEBUG" in |
5610 | yes) | |
5611 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
5612 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
a848cd7e | 5613 | |
3dd30495 VZ |
5614 | DEFAULT_wxUSE_OPTIMISE=no |
5615 | ;; | |
a848cd7e | 5616 | |
3dd30495 VZ |
5617 | no) |
5618 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
5619 | DEFAULT_wxUSE_DEBUG_INFO=no | |
5620 | ;; | |
5621 | ||
5622 | default) | |
5623 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
5624 | DEFAULT_wxUSE_DEBUG_INFO=no | |
5625 | ;; | |
5626 | esac | |
6e198e97 | 5627 | |
a848cd7e | 5628 | |
3dd30495 VZ |
5629 | enablestring=disable |
5630 | defaultval= | |
238663c1 | 5631 | if test -z "$defaultval"; then |
6e198e97 VZ |
5632 | if test x"$enablestring" = xdisable; then |
5633 | defaultval=yes | |
5634 | else | |
5635 | defaultval=no | |
5636 | fi | |
5637 | fi | |
5638 | ||
3dd30495 VZ |
5639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-debug_flag" >&5 |
5640 | $as_echo_n "checking for --${enablestring:-enable}-debug_flag... " >&6; } | |
5641 | # Check whether --enable-debug_flag was given. | |
5642 | if test "${enable_debug_flag+set}" = set; then : | |
5643 | enableval=$enable_debug_flag; | |
36b6448c | 5644 | if test "$enableval" = yes; then |
3dd30495 | 5645 | wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' |
36b6448c | 5646 | else |
3dd30495 | 5647 | wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' |
36b6448c VZ |
5648 | fi |
5649 | ||
5650 | else | |
5651 | ||
3dd30495 | 5652 | wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}" |
36b6448c | 5653 | |
47964710 VS |
5654 | fi |
5655 | ||
36b6448c | 5656 | |
3dd30495 | 5657 | eval "$wx_cv_use_debug_flag" |
36b6448c | 5658 | |
6e198e97 | 5659 | if test x"$enablestring" = xdisable; then |
3dd30495 | 5660 | if test $wxUSE_DEBUG_FLAG = no; then |
6e198e97 | 5661 | result=yes |
7ac0e38e VZ |
5662 | else |
5663 | result=no | |
6e198e97 | 5664 | fi |
36b6448c | 5665 | else |
3dd30495 | 5666 | result=$wxUSE_DEBUG_FLAG |
36b6448c VZ |
5667 | fi |
5668 | ||
3dd30495 VZ |
5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5670 | $as_echo "$result" >&6; } | |
6e198e97 | 5671 | |
36b6448c | 5672 | |
077c7880 | 5673 | enablestring= |
3dd30495 | 5674 | defaultval= |
238663c1 | 5675 | if test -z "$defaultval"; then |
6e198e97 VZ |
5676 | if test x"$enablestring" = xdisable; then |
5677 | defaultval=yes | |
5678 | else | |
5679 | defaultval=no | |
5680 | fi | |
5681 | fi | |
5682 | ||
3dd30495 VZ |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-debug_info" >&5 |
5684 | $as_echo_n "checking for --${enablestring:-enable}-debug_info... " >&6; } | |
5685 | # Check whether --enable-debug_info was given. | |
5686 | if test "${enable_debug_info+set}" = set; then : | |
5687 | enableval=$enable_debug_info; | |
a848cd7e | 5688 | if test "$enableval" = yes; then |
3dd30495 | 5689 | wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' |
a848cd7e | 5690 | else |
3dd30495 | 5691 | wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no' |
a848cd7e SC |
5692 | fi |
5693 | ||
5694 | else | |
5695 | ||
3dd30495 | 5696 | wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}" |
a848cd7e | 5697 | |
47964710 VS |
5698 | fi |
5699 | ||
a848cd7e | 5700 | |
3dd30495 | 5701 | eval "$wx_cv_use_debug_info" |
a848cd7e | 5702 | |
6e198e97 | 5703 | if test x"$enablestring" = xdisable; then |
3dd30495 | 5704 | if test $wxUSE_DEBUG_INFO = no; then |
6e198e97 | 5705 | result=yes |
7ac0e38e VZ |
5706 | else |
5707 | result=no | |
6e198e97 | 5708 | fi |
a848cd7e | 5709 | else |
3dd30495 | 5710 | result=$wxUSE_DEBUG_INFO |
a848cd7e SC |
5711 | fi |
5712 | ||
3dd30495 VZ |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5714 | $as_echo "$result" >&6; } | |
5715 | ||
5716 | ||
6e198e97 | 5717 | |
a848cd7e | 5718 | |
077c7880 | 5719 | enablestring= |
3dd30495 | 5720 | defaultval= |
238663c1 | 5721 | if test -z "$defaultval"; then |
6e198e97 VZ |
5722 | if test x"$enablestring" = xdisable; then |
5723 | defaultval=yes | |
5724 | else | |
5725 | defaultval=no | |
5726 | fi | |
5727 | fi | |
5728 | ||
3dd30495 VZ |
5729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-debug_gdb" >&5 |
5730 | $as_echo_n "checking for --${enablestring:-enable}-debug_gdb... " >&6; } | |
5731 | # Check whether --enable-debug_gdb was given. | |
5732 | if test "${enable_debug_gdb+set}" = set; then : | |
5733 | enableval=$enable_debug_gdb; | |
a848cd7e | 5734 | if test "$enableval" = yes; then |
3dd30495 | 5735 | wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' |
a848cd7e | 5736 | else |
3dd30495 | 5737 | wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' |
a848cd7e SC |
5738 | fi |
5739 | ||
5740 | else | |
5741 | ||
3dd30495 | 5742 | wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}" |
a848cd7e | 5743 | |
47964710 VS |
5744 | fi |
5745 | ||
a848cd7e | 5746 | |
3dd30495 | 5747 | eval "$wx_cv_use_debug_gdb" |
a848cd7e | 5748 | |
6e198e97 | 5749 | if test x"$enablestring" = xdisable; then |
3dd30495 | 5750 | if test $wxUSE_DEBUG_GDB = no; then |
6e198e97 | 5751 | result=yes |
7ac0e38e VZ |
5752 | else |
5753 | result=no | |
6e198e97 | 5754 | fi |
a848cd7e | 5755 | else |
3dd30495 | 5756 | result=$wxUSE_DEBUG_GDB |
a848cd7e SC |
5757 | fi |
5758 | ||
3dd30495 VZ |
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5760 | $as_echo "$result" >&6; } | |
6e198e97 | 5761 | |
a848cd7e | 5762 | |
077c7880 | 5763 | enablestring= |
3dd30495 | 5764 | defaultval= |
238663c1 | 5765 | if test -z "$defaultval"; then |
6e198e97 VZ |
5766 | if test x"$enablestring" = xdisable; then |
5767 | defaultval=yes | |
5768 | else | |
5769 | defaultval=no | |
5770 | fi | |
5771 | fi | |
5772 | ||
3dd30495 VZ |
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
5774 | $as_echo_n "checking for --${enablestring:-enable}-debug_cntxt... " >&6; } | |
5775 | # Check whether --enable-debug_cntxt was given. | |
5776 | if test "${enable_debug_cntxt+set}" = set; then : | |
5777 | enableval=$enable_debug_cntxt; | |
a848cd7e | 5778 | if test "$enableval" = yes; then |
3dd30495 | 5779 | wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' |
a848cd7e | 5780 | else |
3dd30495 | 5781 | wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' |
a848cd7e SC |
5782 | fi |
5783 | ||
5784 | else | |
5785 | ||
3dd30495 | 5786 | wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}" |
a848cd7e | 5787 | |
47964710 VS |
5788 | fi |
5789 | ||
a848cd7e | 5790 | |
3dd30495 | 5791 | eval "$wx_cv_use_debug_cntxt" |
a848cd7e | 5792 | |
6e198e97 | 5793 | if test x"$enablestring" = xdisable; then |
3dd30495 | 5794 | if test $wxUSE_DEBUG_CONTEXT = no; then |
6e198e97 | 5795 | result=yes |
7ac0e38e VZ |
5796 | else |
5797 | result=no | |
6e198e97 | 5798 | fi |
a848cd7e | 5799 | else |
3dd30495 | 5800 | result=$wxUSE_DEBUG_CONTEXT |
a848cd7e SC |
5801 | fi |
5802 | ||
3dd30495 VZ |
5803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5804 | $as_echo "$result" >&6; } | |
6e198e97 | 5805 | |
a848cd7e | 5806 | |
077c7880 | 5807 | enablestring= |
3dd30495 | 5808 | defaultval= |
238663c1 | 5809 | if test -z "$defaultval"; then |
6e198e97 VZ |
5810 | if test x"$enablestring" = xdisable; then |
5811 | defaultval=yes | |
5812 | else | |
5813 | defaultval=no | |
5814 | fi | |
5815 | fi | |
5816 | ||
3dd30495 VZ |
5817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-mem_tracing" >&5 |
5818 | $as_echo_n "checking for --${enablestring:-enable}-mem_tracing... " >&6; } | |
5819 | # Check whether --enable-mem_tracing was given. | |
5820 | if test "${enable_mem_tracing+set}" = set; then : | |
5821 | enableval=$enable_mem_tracing; | |
a848cd7e | 5822 | if test "$enableval" = yes; then |
3dd30495 | 5823 | wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' |
a848cd7e | 5824 | else |
3dd30495 | 5825 | wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' |
a848cd7e SC |
5826 | fi |
5827 | ||
5828 | else | |
5829 | ||
3dd30495 | 5830 | wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}" |
a848cd7e | 5831 | |
47964710 VS |
5832 | fi |
5833 | ||
a848cd7e | 5834 | |
3dd30495 | 5835 | eval "$wx_cv_use_mem_tracing" |
a848cd7e | 5836 | |
6e198e97 | 5837 | if test x"$enablestring" = xdisable; then |
3dd30495 | 5838 | if test $wxUSE_MEM_TRACING = no; then |
6e198e97 | 5839 | result=yes |
7ac0e38e VZ |
5840 | else |
5841 | result=no | |
6e198e97 | 5842 | fi |
a848cd7e | 5843 | else |
3dd30495 | 5844 | result=$wxUSE_MEM_TRACING |
a848cd7e SC |
5845 | fi |
5846 | ||
3dd30495 VZ |
5847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5848 | $as_echo "$result" >&6; } | |
6e198e97 | 5849 | |
a848cd7e | 5850 | |
3dd30495 VZ |
5851 | |
5852 | ||
5853 | enablestring=disable | |
5854 | defaultval= | |
238663c1 | 5855 | if test -z "$defaultval"; then |
6e198e97 VZ |
5856 | if test x"$enablestring" = xdisable; then |
5857 | defaultval=yes | |
5858 | else | |
5859 | defaultval=no | |
5860 | fi | |
5861 | fi | |
5862 | ||
3dd30495 VZ |
5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-shared" >&5 |
5864 | $as_echo_n "checking for --${enablestring:-enable}-shared... " >&6; } | |
5865 | # Check whether --enable-shared was given. | |
5866 | if test "${enable_shared+set}" = set; then : | |
5867 | enableval=$enable_shared; | |
a848cd7e | 5868 | if test "$enableval" = yes; then |
3dd30495 | 5869 | wx_cv_use_shared='wxUSE_SHARED=yes' |
a848cd7e | 5870 | else |
3dd30495 | 5871 | wx_cv_use_shared='wxUSE_SHARED=no' |
a848cd7e SC |
5872 | fi |
5873 | ||
5874 | else | |
5875 | ||
3dd30495 | 5876 | wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}" |
a848cd7e | 5877 | |
47964710 VS |
5878 | fi |
5879 | ||
a848cd7e | 5880 | |
3dd30495 | 5881 | eval "$wx_cv_use_shared" |
a848cd7e | 5882 | |
6e198e97 | 5883 | if test x"$enablestring" = xdisable; then |
3dd30495 | 5884 | if test $wxUSE_SHARED = no; then |
6e198e97 | 5885 | result=yes |
7ac0e38e VZ |
5886 | else |
5887 | result=no | |
6e198e97 | 5888 | fi |
a848cd7e | 5889 | else |
3dd30495 | 5890 | result=$wxUSE_SHARED |
a848cd7e SC |
5891 | fi |
5892 | ||
3dd30495 VZ |
5893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5894 | $as_echo "$result" >&6; } | |
6e198e97 | 5895 | |
a848cd7e | 5896 | |
077c7880 | 5897 | enablestring= |
3dd30495 | 5898 | defaultval= |
238663c1 | 5899 | if test -z "$defaultval"; then |
6e198e97 VZ |
5900 | if test x"$enablestring" = xdisable; then |
5901 | defaultval=yes | |
5902 | else | |
5903 | defaultval=no | |
5904 | fi | |
5905 | fi | |
5906 | ||
3dd30495 VZ |
5907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-stl" >&5 |
5908 | $as_echo_n "checking for --${enablestring:-enable}-stl... " >&6; } | |
5909 | # Check whether --enable-stl was given. | |
5910 | if test "${enable_stl+set}" = set; then : | |
5911 | enableval=$enable_stl; | |
a848cd7e | 5912 | if test "$enableval" = yes; then |
3dd30495 | 5913 | wx_cv_use_stl='wxUSE_STL=yes' |
a848cd7e | 5914 | else |
3dd30495 | 5915 | wx_cv_use_stl='wxUSE_STL=no' |
a848cd7e SC |
5916 | fi |
5917 | ||
5918 | else | |
5919 | ||
3dd30495 | 5920 | wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}" |
a848cd7e | 5921 | |
47964710 VS |
5922 | fi |
5923 | ||
a848cd7e | 5924 | |
3dd30495 | 5925 | eval "$wx_cv_use_stl" |
a848cd7e | 5926 | |
6e198e97 | 5927 | if test x"$enablestring" = xdisable; then |
3dd30495 | 5928 | if test $wxUSE_STL = no; then |
6e198e97 | 5929 | result=yes |
7ac0e38e VZ |
5930 | else |
5931 | result=no | |
6e198e97 | 5932 | fi |
a848cd7e | 5933 | else |
3dd30495 | 5934 | result=$wxUSE_STL |
a848cd7e SC |
5935 | fi |
5936 | ||
3dd30495 VZ |
5937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5938 | $as_echo "$result" >&6; } | |
6e198e97 | 5939 | |
3dd30495 VZ |
5940 | if test "$wxUSE_STL" = "yes"; then |
5941 | DEFAULT_wxUSE_STD_CONTAINERS=yes | |
5942 | DEFAULT_wxUSE_STD_IOSTREAM=yes | |
5943 | DEFAULT_wxUSE_STD_STRING=yes | |
5944 | fi | |
a848cd7e | 5945 | |
a0219e45 | 5946 | enablestring= |
3dd30495 | 5947 | defaultval= |
a0219e45 VS |
5948 | if test -z "$defaultval"; then |
5949 | if test x"$enablestring" = xdisable; then | |
5950 | defaultval=yes | |
5951 | else | |
5952 | defaultval=no | |
5953 | fi | |
5954 | fi | |
5955 | ||
3dd30495 VZ |
5956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-std_containers" >&5 |
5957 | $as_echo_n "checking for --${enablestring:-enable}-std_containers... " >&6; } | |
5958 | # Check whether --enable-std_containers was given. | |
5959 | if test "${enable_std_containers+set}" = set; then : | |
5960 | enableval=$enable_std_containers; | |
a0219e45 | 5961 | if test "$enableval" = yes; then |
3dd30495 | 5962 | wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=yes' |
a0219e45 | 5963 | else |
3dd30495 | 5964 | wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=no' |
a0219e45 VS |
5965 | fi |
5966 | ||
5967 | else | |
5968 | ||
3dd30495 | 5969 | wx_cv_use_std_containers='wxUSE_STD_CONTAINERS=${'DEFAULT_wxUSE_STD_CONTAINERS":-$defaultval}" |
a0219e45 VS |
5970 | |
5971 | fi | |
5972 | ||
5973 | ||
3dd30495 | 5974 | eval "$wx_cv_use_std_containers" |
a0219e45 VS |
5975 | |
5976 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 5977 | if test $wxUSE_STD_CONTAINERS = no; then |
a0219e45 VS |
5978 | result=yes |
5979 | else | |
5980 | result=no | |
5981 | fi | |
5982 | else | |
3dd30495 | 5983 | result=$wxUSE_STD_CONTAINERS |
a0219e45 VS |
5984 | fi |
5985 | ||
3dd30495 VZ |
5986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
5987 | $as_echo "$result" >&6; } | |
a0219e45 VS |
5988 | |
5989 | ||
077c7880 | 5990 | enablestring= |
3dd30495 | 5991 | defaultval= |
238663c1 | 5992 | if test -z "$defaultval"; then |
6e198e97 VZ |
5993 | if test x"$enablestring" = xdisable; then |
5994 | defaultval=yes | |
5995 | else | |
5996 | defaultval=no | |
5997 | fi | |
5998 | fi | |
5999 | ||
3dd30495 VZ |
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-std_iostreams" >&5 |
6001 | $as_echo_n "checking for --${enablestring:-enable}-std_iostreams... " >&6; } | |
6002 | # Check whether --enable-std_iostreams was given. | |
6003 | if test "${enable_std_iostreams+set}" = set; then : | |
6004 | enableval=$enable_std_iostreams; | |
a848cd7e | 6005 | if test "$enableval" = yes; then |
3dd30495 | 6006 | wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 6007 | else |
3dd30495 | 6008 | wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
6009 | fi |
6010 | ||
6011 | else | |
6012 | ||
3dd30495 | 6013 | wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}" |
a848cd7e | 6014 | |
47964710 VS |
6015 | fi |
6016 | ||
a848cd7e | 6017 | |
3dd30495 | 6018 | eval "$wx_cv_use_std_iostreams" |
a848cd7e | 6019 | |
6e198e97 | 6020 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6021 | if test $wxUSE_STD_IOSTREAM = no; then |
6e198e97 | 6022 | result=yes |
7ac0e38e VZ |
6023 | else |
6024 | result=no | |
6e198e97 | 6025 | fi |
a848cd7e | 6026 | else |
3dd30495 | 6027 | result=$wxUSE_STD_IOSTREAM |
a848cd7e SC |
6028 | fi |
6029 | ||
3dd30495 VZ |
6030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6031 | $as_echo "$result" >&6; } | |
6e198e97 | 6032 | |
a848cd7e | 6033 | |
ff427585 | 6034 | enablestring= |
3dd30495 | 6035 | defaultval= |
ff427585 VZ |
6036 | if test -z "$defaultval"; then |
6037 | if test x"$enablestring" = xdisable; then | |
6038 | defaultval=yes | |
6039 | else | |
6040 | defaultval=no | |
6041 | fi | |
6042 | fi | |
6043 | ||
3dd30495 VZ |
6044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-std_string" >&5 |
6045 | $as_echo_n "checking for --${enablestring:-enable}-std_string... " >&6; } | |
6046 | # Check whether --enable-std_string was given. | |
6047 | if test "${enable_std_string+set}" = set; then : | |
6048 | enableval=$enable_std_string; | |
ff427585 | 6049 | if test "$enableval" = yes; then |
3dd30495 | 6050 | wx_cv_use_std_string='wxUSE_STD_STRING=yes' |
ff427585 | 6051 | else |
3dd30495 | 6052 | wx_cv_use_std_string='wxUSE_STD_STRING=no' |
ff427585 VZ |
6053 | fi |
6054 | ||
6055 | else | |
6056 | ||
3dd30495 | 6057 | wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}" |
ff427585 | 6058 | |
47964710 VS |
6059 | fi |
6060 | ||
ff427585 | 6061 | |
3dd30495 | 6062 | eval "$wx_cv_use_std_string" |
ff427585 VZ |
6063 | |
6064 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 6065 | if test $wxUSE_STD_STRING = no; then |
ff427585 | 6066 | result=yes |
7ac0e38e VZ |
6067 | else |
6068 | result=no | |
ff427585 VZ |
6069 | fi |
6070 | else | |
3dd30495 | 6071 | result=$wxUSE_STD_STRING |
ff427585 VZ |
6072 | fi |
6073 | ||
3dd30495 VZ |
6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6075 | $as_echo "$result" >&6; } | |
ff427585 VZ |
6076 | |
6077 | ||
077c7880 | 6078 | enablestring= |
3dd30495 | 6079 | defaultval= |
238663c1 | 6080 | if test -z "$defaultval"; then |
6e198e97 VZ |
6081 | if test x"$enablestring" = xdisable; then |
6082 | defaultval=yes | |
6083 | else | |
6084 | defaultval=no | |
6085 | fi | |
6086 | fi | |
6087 | ||
3dd30495 VZ |
6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-std_string_conv_in_wxstring" >&5 |
6089 | $as_echo_n "checking for --${enablestring:-enable}-std_string_conv_in_wxstring... " >&6; } | |
6090 | # Check whether --enable-std_string_conv_in_wxstring was given. | |
6091 | if test "${enable_std_string_conv_in_wxstring+set}" = set; then : | |
6092 | enableval=$enable_std_string_conv_in_wxstring; | |
a848cd7e | 6093 | if test "$enableval" = yes; then |
3dd30495 | 6094 | wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=yes' |
a848cd7e | 6095 | else |
3dd30495 | 6096 | wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=no' |
a848cd7e SC |
6097 | fi |
6098 | ||
6099 | else | |
6100 | ||
3dd30495 | 6101 | wx_cv_use_std_string_conv_in_wxstring='wxUSE_STD_STRING_CONV_IN_WXSTRING=${'DEFAULT_wxUSE_STD_STRING_CONV_IN_WXSTRING":-$defaultval}" |
a848cd7e | 6102 | |
47964710 VS |
6103 | fi |
6104 | ||
a848cd7e | 6105 | |
3dd30495 | 6106 | eval "$wx_cv_use_std_string_conv_in_wxstring" |
a848cd7e | 6107 | |
6e198e97 | 6108 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6109 | if test $wxUSE_STD_STRING_CONV_IN_WXSTRING = no; then |
6e198e97 | 6110 | result=yes |
7ac0e38e VZ |
6111 | else |
6112 | result=no | |
6e198e97 | 6113 | fi |
a848cd7e | 6114 | else |
3dd30495 | 6115 | result=$wxUSE_STD_STRING_CONV_IN_WXSTRING |
a848cd7e SC |
6116 | fi |
6117 | ||
3dd30495 VZ |
6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6119 | $as_echo "$result" >&6; } | |
6e198e97 | 6120 | |
a848cd7e | 6121 | |
3dd30495 VZ |
6122 | enablestring=disable |
6123 | defaultval= | |
238663c1 | 6124 | if test -z "$defaultval"; then |
6e198e97 VZ |
6125 | if test x"$enablestring" = xdisable; then |
6126 | defaultval=yes | |
6127 | else | |
6128 | defaultval=no | |
6129 | fi | |
6130 | fi | |
6131 | ||
3dd30495 VZ |
6132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-unicode" >&5 |
6133 | $as_echo_n "checking for --${enablestring:-enable}-unicode... " >&6; } | |
6134 | # Check whether --enable-unicode was given. | |
6135 | if test "${enable_unicode+set}" = set; then : | |
6136 | enableval=$enable_unicode; | |
26e422a9 | 6137 | if test "$enableval" = yes; then |
3dd30495 | 6138 | wx_cv_use_unicode='wxUSE_UNICODE=yes' |
26e422a9 | 6139 | else |
3dd30495 | 6140 | wx_cv_use_unicode='wxUSE_UNICODE=no' |
26e422a9 MW |
6141 | fi |
6142 | ||
6143 | else | |
6144 | ||
3dd30495 | 6145 | wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}" |
26e422a9 | 6146 | |
47964710 VS |
6147 | fi |
6148 | ||
26e422a9 | 6149 | |
3dd30495 | 6150 | eval "$wx_cv_use_unicode" |
26e422a9 | 6151 | |
6e198e97 | 6152 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6153 | if test $wxUSE_UNICODE = no; then |
6e198e97 | 6154 | result=yes |
7ac0e38e VZ |
6155 | else |
6156 | result=no | |
6e198e97 | 6157 | fi |
26e422a9 | 6158 | else |
3dd30495 | 6159 | result=$wxUSE_UNICODE |
26e422a9 MW |
6160 | fi |
6161 | ||
3dd30495 VZ |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6163 | $as_echo "$result" >&6; } | |
6e198e97 | 6164 | |
26e422a9 | 6165 | |
077c7880 | 6166 | enablestring= |
3dd30495 | 6167 | defaultval= |
238663c1 | 6168 | if test -z "$defaultval"; then |
6e198e97 VZ |
6169 | if test x"$enablestring" = xdisable; then |
6170 | defaultval=yes | |
6171 | else | |
6172 | defaultval=no | |
6173 | fi | |
6174 | fi | |
6175 | ||
3dd30495 VZ |
6176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-mslu" >&5 |
6177 | $as_echo_n "checking for --${enablestring:-enable}-mslu... " >&6; } | |
6178 | # Check whether --enable-mslu was given. | |
6179 | if test "${enable_mslu+set}" = set; then : | |
6180 | enableval=$enable_mslu; | |
a848cd7e | 6181 | if test "$enableval" = yes; then |
3dd30495 | 6182 | wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' |
a848cd7e | 6183 | else |
3dd30495 | 6184 | wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no' |
a848cd7e SC |
6185 | fi |
6186 | ||
6187 | else | |
6188 | ||
3dd30495 | 6189 | wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}" |
a848cd7e | 6190 | |
47964710 VS |
6191 | fi |
6192 | ||
a848cd7e | 6193 | |
3dd30495 | 6194 | eval "$wx_cv_use_mslu" |
a848cd7e | 6195 | |
6e198e97 | 6196 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6197 | if test $wxUSE_UNICODE_MSLU = no; then |
6e198e97 | 6198 | result=yes |
7ac0e38e VZ |
6199 | else |
6200 | result=no | |
6e198e97 | 6201 | fi |
a848cd7e | 6202 | else |
3dd30495 | 6203 | result=$wxUSE_UNICODE_MSLU |
a848cd7e SC |
6204 | fi |
6205 | ||
3dd30495 VZ |
6206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6207 | $as_echo "$result" >&6; } | |
6e198e97 | 6208 | |
a848cd7e | 6209 | |
077c7880 | 6210 | enablestring= |
3dd30495 VZ |
6211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-utf8" >&5 |
6212 | $as_echo_n "checking for --${enablestring:-enable}-utf8... " >&6; } | |
6213 | # Check whether --enable-utf8 was given. | |
6214 | if test "${enable_utf8+set}" = set; then : | |
6215 | enableval=$enable_utf8; | |
6216 | wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'" | |
a848cd7e SC |
6217 | |
6218 | else | |
6219 | ||
3dd30495 | 6220 | wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8 |
a848cd7e | 6221 | |
47964710 VS |
6222 | fi |
6223 | ||
a848cd7e | 6224 | |
3dd30495 | 6225 | eval "$wx_cv_use_utf8" |
a848cd7e | 6226 | |
3dd30495 VZ |
6227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_UNICODE_UTF8" >&5 |
6228 | $as_echo "$wxUSE_UNICODE_UTF8" >&6; } | |
6e198e97 | 6229 | |
a848cd7e | 6230 | |
6b8ef0b3 | 6231 | enablestring= |
3dd30495 | 6232 | defaultval= |
6b8ef0b3 VZ |
6233 | if test -z "$defaultval"; then |
6234 | if test x"$enablestring" = xdisable; then | |
6235 | defaultval=yes | |
6236 | else | |
6237 | defaultval=no | |
6238 | fi | |
6239 | fi | |
6240 | ||
3dd30495 VZ |
6241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-utf8only" >&5 |
6242 | $as_echo_n "checking for --${enablestring:-enable}-utf8only... " >&6; } | |
6243 | # Check whether --enable-utf8only was given. | |
6244 | if test "${enable_utf8only+set}" = set; then : | |
6245 | enableval=$enable_utf8only; | |
6b8ef0b3 | 6246 | if test "$enableval" = yes; then |
3dd30495 | 6247 | wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes' |
6b8ef0b3 | 6248 | else |
3dd30495 | 6249 | wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no' |
6b8ef0b3 VZ |
6250 | fi |
6251 | ||
6252 | else | |
6253 | ||
3dd30495 | 6254 | wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}" |
6b8ef0b3 VZ |
6255 | |
6256 | fi | |
6257 | ||
6258 | ||
3dd30495 | 6259 | eval "$wx_cv_use_utf8only" |
6b8ef0b3 VZ |
6260 | |
6261 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 6262 | if test $wxUSE_UNICODE_UTF8_LOCALE = no; then |
6b8ef0b3 VZ |
6263 | result=yes |
6264 | else | |
6265 | result=no | |
6266 | fi | |
6267 | else | |
3dd30495 | 6268 | result=$wxUSE_UNICODE_UTF8_LOCALE |
6b8ef0b3 VZ |
6269 | fi |
6270 | ||
3dd30495 VZ |
6271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6272 | $as_echo "$result" >&6; } | |
6b8ef0b3 VZ |
6273 | |
6274 | ||
077c7880 | 6275 | enablestring= |
3dd30495 | 6276 | defaultval= |
238663c1 | 6277 | if test -z "$defaultval"; then |
6e198e97 VZ |
6278 | if test x"$enablestring" = xdisable; then |
6279 | defaultval=yes | |
6280 | else | |
6281 | defaultval=no | |
6282 | fi | |
6283 | fi | |
6284 | ||
3dd30495 VZ |
6285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-extended_rtti" >&5 |
6286 | $as_echo_n "checking for --${enablestring:-enable}-extended_rtti... " >&6; } | |
6287 | # Check whether --enable-extended_rtti was given. | |
6288 | if test "${enable_extended_rtti+set}" = set; then : | |
6289 | enableval=$enable_extended_rtti; | |
a848cd7e | 6290 | if test "$enableval" = yes; then |
3dd30495 | 6291 | wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes' |
a848cd7e | 6292 | else |
3dd30495 | 6293 | wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no' |
a848cd7e SC |
6294 | fi |
6295 | ||
6296 | else | |
6297 | ||
3dd30495 | 6298 | wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}" |
a848cd7e | 6299 | |
47964710 VS |
6300 | fi |
6301 | ||
a848cd7e | 6302 | |
3dd30495 | 6303 | eval "$wx_cv_use_extended_rtti" |
a848cd7e | 6304 | |
6e198e97 | 6305 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6306 | if test $wxUSE_EXTENDED_RTTI = no; then |
6e198e97 | 6307 | result=yes |
7ac0e38e VZ |
6308 | else |
6309 | result=no | |
6e198e97 | 6310 | fi |
a848cd7e | 6311 | else |
3dd30495 | 6312 | result=$wxUSE_EXTENDED_RTTI |
a848cd7e SC |
6313 | fi |
6314 | ||
3dd30495 VZ |
6315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6316 | $as_echo "$result" >&6; } | |
6e198e97 | 6317 | |
3dd30495 VZ |
6318 | if test "$USE_OS2" = 1; then |
6319 | DEFAULT_wxUSE_OMF=no | |
a848cd7e | 6320 | |
077c7880 | 6321 | enablestring= |
3dd30495 | 6322 | defaultval= |
238663c1 | 6323 | if test -z "$defaultval"; then |
6e198e97 VZ |
6324 | if test x"$enablestring" = xdisable; then |
6325 | defaultval=yes | |
6326 | else | |
6327 | defaultval=no | |
6328 | fi | |
6329 | fi | |
6330 | ||
3dd30495 VZ |
6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-omf" >&5 |
6332 | $as_echo_n "checking for --${enablestring:-enable}-omf... " >&6; } | |
6333 | # Check whether --enable-omf was given. | |
6334 | if test "${enable_omf+set}" = set; then : | |
6335 | enableval=$enable_omf; | |
a848cd7e | 6336 | if test "$enableval" = yes; then |
3dd30495 | 6337 | wx_cv_use_omf='wxUSE_OMF=yes' |
a848cd7e | 6338 | else |
3dd30495 | 6339 | wx_cv_use_omf='wxUSE_OMF=no' |
a848cd7e SC |
6340 | fi |
6341 | ||
6342 | else | |
6343 | ||
3dd30495 | 6344 | wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}" |
a848cd7e | 6345 | |
47964710 VS |
6346 | fi |
6347 | ||
a848cd7e | 6348 | |
3dd30495 | 6349 | eval "$wx_cv_use_omf" |
a848cd7e | 6350 | |
6e198e97 | 6351 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6352 | if test $wxUSE_OMF = no; then |
6e198e97 | 6353 | result=yes |
7ac0e38e VZ |
6354 | else |
6355 | result=no | |
6e198e97 | 6356 | fi |
a848cd7e | 6357 | else |
3dd30495 | 6358 | result=$wxUSE_OMF |
a848cd7e SC |
6359 | fi |
6360 | ||
3dd30495 VZ |
6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6362 | $as_echo "$result" >&6; } | |
6e198e97 | 6363 | |
3dd30495 | 6364 | fi |
a848cd7e | 6365 | |
3dd30495 VZ |
6366 | |
6367 | enablestring=disable | |
6368 | defaultval= | |
238663c1 | 6369 | if test -z "$defaultval"; then |
6e198e97 VZ |
6370 | if test x"$enablestring" = xdisable; then |
6371 | defaultval=yes | |
6372 | else | |
6373 | defaultval=no | |
6374 | fi | |
6375 | fi | |
6376 | ||
3dd30495 VZ |
6377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-optimise" >&5 |
6378 | $as_echo_n "checking for --${enablestring:-enable}-optimise... " >&6; } | |
6379 | # Check whether --enable-optimise was given. | |
6380 | if test "${enable_optimise+set}" = set; then : | |
6381 | enableval=$enable_optimise; | |
a848cd7e | 6382 | if test "$enableval" = yes; then |
3dd30495 | 6383 | wx_cv_use_optimise='wxUSE_OPTIMISE=yes' |
a848cd7e | 6384 | else |
3dd30495 | 6385 | wx_cv_use_optimise='wxUSE_OPTIMISE=no' |
a848cd7e SC |
6386 | fi |
6387 | ||
6388 | else | |
6389 | ||
3dd30495 | 6390 | wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}" |
a848cd7e | 6391 | |
47964710 VS |
6392 | fi |
6393 | ||
a848cd7e | 6394 | |
3dd30495 | 6395 | eval "$wx_cv_use_optimise" |
a848cd7e | 6396 | |
6e198e97 | 6397 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6398 | if test $wxUSE_OPTIMISE = no; then |
6e198e97 | 6399 | result=yes |
7ac0e38e VZ |
6400 | else |
6401 | result=no | |
6e198e97 | 6402 | fi |
a848cd7e | 6403 | else |
3dd30495 | 6404 | result=$wxUSE_OPTIMISE |
a848cd7e SC |
6405 | fi |
6406 | ||
3dd30495 VZ |
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6408 | $as_echo "$result" >&6; } | |
6409 | ||
6e198e97 | 6410 | |
a848cd7e | 6411 | |
077c7880 | 6412 | enablestring= |
3dd30495 | 6413 | defaultval= |
238663c1 | 6414 | if test -z "$defaultval"; then |
6e198e97 VZ |
6415 | if test x"$enablestring" = xdisable; then |
6416 | defaultval=yes | |
6417 | else | |
6418 | defaultval=no | |
6419 | fi | |
6420 | fi | |
6421 | ||
3dd30495 VZ |
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-profile" >&5 |
6423 | $as_echo_n "checking for --${enablestring:-enable}-profile... " >&6; } | |
6424 | # Check whether --enable-profile was given. | |
6425 | if test "${enable_profile+set}" = set; then : | |
6426 | enableval=$enable_profile; | |
a848cd7e | 6427 | if test "$enableval" = yes; then |
3dd30495 | 6428 | wx_cv_use_profile='wxUSE_PROFILE=yes' |
a848cd7e | 6429 | else |
3dd30495 | 6430 | wx_cv_use_profile='wxUSE_PROFILE=no' |
a848cd7e SC |
6431 | fi |
6432 | ||
6433 | else | |
6434 | ||
3dd30495 | 6435 | wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}" |
a848cd7e | 6436 | |
47964710 VS |
6437 | fi |
6438 | ||
a848cd7e | 6439 | |
3dd30495 | 6440 | eval "$wx_cv_use_profile" |
a848cd7e | 6441 | |
6e198e97 | 6442 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6443 | if test $wxUSE_PROFILE = no; then |
6e198e97 | 6444 | result=yes |
7ac0e38e VZ |
6445 | else |
6446 | result=no | |
6e198e97 | 6447 | fi |
a848cd7e | 6448 | else |
3dd30495 | 6449 | result=$wxUSE_PROFILE |
81727065 VS |
6450 | fi |
6451 | ||
3dd30495 VZ |
6452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6453 | $as_echo "$result" >&6; } | |
81727065 VS |
6454 | |
6455 | ||
4732e2dc | 6456 | enablestring= |
3dd30495 | 6457 | defaultval= |
4732e2dc VZ |
6458 | if test -z "$defaultval"; then |
6459 | if test x"$enablestring" = xdisable; then | |
6460 | defaultval=yes | |
6461 | else | |
6462 | defaultval=no | |
6463 | fi | |
6464 | fi | |
6465 | ||
3dd30495 VZ |
6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-no_rtti" >&5 |
6467 | $as_echo_n "checking for --${enablestring:-enable}-no_rtti... " >&6; } | |
6468 | # Check whether --enable-no_rtti was given. | |
6469 | if test "${enable_no_rtti+set}" = set; then : | |
6470 | enableval=$enable_no_rtti; | |
4732e2dc | 6471 | if test "$enableval" = yes; then |
3dd30495 | 6472 | wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes' |
4732e2dc | 6473 | else |
3dd30495 | 6474 | wx_cv_use_no_rtti='wxUSE_NO_RTTI=no' |
4732e2dc VZ |
6475 | fi |
6476 | ||
6477 | else | |
6478 | ||
3dd30495 | 6479 | wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}" |
4732e2dc VZ |
6480 | |
6481 | fi | |
6482 | ||
6483 | ||
3dd30495 | 6484 | eval "$wx_cv_use_no_rtti" |
4732e2dc VZ |
6485 | |
6486 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 6487 | if test $wxUSE_NO_RTTI = no; then |
4732e2dc | 6488 | result=yes |
7ac0e38e VZ |
6489 | else |
6490 | result=no | |
4732e2dc VZ |
6491 | fi |
6492 | else | |
3dd30495 | 6493 | result=$wxUSE_NO_RTTI |
4732e2dc VZ |
6494 | fi |
6495 | ||
3dd30495 VZ |
6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6497 | $as_echo "$result" >&6; } | |
4732e2dc VZ |
6498 | |
6499 | ||
111d9948 | 6500 | enablestring= |
3dd30495 | 6501 | defaultval= |
238663c1 | 6502 | if test -z "$defaultval"; then |
6e198e97 VZ |
6503 | if test x"$enablestring" = xdisable; then |
6504 | defaultval=yes | |
6505 | else | |
6506 | defaultval=no | |
6507 | fi | |
111d9948 VS |
6508 | fi |
6509 | ||
3dd30495 VZ |
6510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-no_exceptions" >&5 |
6511 | $as_echo_n "checking for --${enablestring:-enable}-no_exceptions... " >&6; } | |
6512 | # Check whether --enable-no_exceptions was given. | |
6513 | if test "${enable_no_exceptions+set}" = set; then : | |
6514 | enableval=$enable_no_exceptions; | |
a848cd7e | 6515 | if test "$enableval" = yes; then |
3dd30495 | 6516 | wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' |
a848cd7e | 6517 | else |
3dd30495 | 6518 | wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' |
a848cd7e SC |
6519 | fi |
6520 | ||
6521 | else | |
6522 | ||
3dd30495 | 6523 | wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}" |
a848cd7e | 6524 | |
47964710 VS |
6525 | fi |
6526 | ||
a848cd7e | 6527 | |
3dd30495 | 6528 | eval "$wx_cv_use_no_exceptions" |
a848cd7e | 6529 | |
6e198e97 | 6530 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6531 | if test $wxUSE_NO_EXCEPTIONS = no; then |
6e198e97 | 6532 | result=yes |
7ac0e38e VZ |
6533 | else |
6534 | result=no | |
6e198e97 | 6535 | fi |
a848cd7e | 6536 | else |
3dd30495 | 6537 | result=$wxUSE_NO_EXCEPTIONS |
a848cd7e SC |
6538 | fi |
6539 | ||
3dd30495 VZ |
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6541 | $as_echo "$result" >&6; } | |
a848cd7e SC |
6542 | |
6543 | ||
4732e2dc | 6544 | enablestring= |
3dd30495 | 6545 | defaultval= |
4732e2dc VZ |
6546 | if test -z "$defaultval"; then |
6547 | if test x"$enablestring" = xdisable; then | |
6548 | defaultval=yes | |
6549 | else | |
6550 | defaultval=no | |
6551 | fi | |
6552 | fi | |
6553 | ||
3dd30495 VZ |
6554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-permissive" >&5 |
6555 | $as_echo_n "checking for --${enablestring:-enable}-permissive... " >&6; } | |
6556 | # Check whether --enable-permissive was given. | |
6557 | if test "${enable_permissive+set}" = set; then : | |
6558 | enableval=$enable_permissive; | |
4732e2dc | 6559 | if test "$enableval" = yes; then |
3dd30495 | 6560 | wx_cv_use_permissive='wxUSE_PERMISSIVE=yes' |
4732e2dc | 6561 | else |
3dd30495 | 6562 | wx_cv_use_permissive='wxUSE_PERMISSIVE=no' |
4732e2dc VZ |
6563 | fi |
6564 | ||
6565 | else | |
6566 | ||
3dd30495 | 6567 | wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}" |
4732e2dc VZ |
6568 | |
6569 | fi | |
6570 | ||
6571 | ||
3dd30495 | 6572 | eval "$wx_cv_use_permissive" |
4732e2dc VZ |
6573 | |
6574 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 6575 | if test $wxUSE_PERMISSIVE = no; then |
4732e2dc | 6576 | result=yes |
7ac0e38e VZ |
6577 | else |
6578 | result=no | |
4732e2dc VZ |
6579 | fi |
6580 | else | |
3dd30495 | 6581 | result=$wxUSE_PERMISSIVE |
4732e2dc VZ |
6582 | fi |
6583 | ||
3dd30495 VZ |
6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6585 | $as_echo "$result" >&6; } | |
4732e2dc VZ |
6586 | |
6587 | ||
077c7880 | 6588 | enablestring= |
3dd30495 | 6589 | defaultval= |
238663c1 | 6590 | if test -z "$defaultval"; then |
6e198e97 VZ |
6591 | if test x"$enablestring" = xdisable; then |
6592 | defaultval=yes | |
6593 | else | |
6594 | defaultval=no | |
6595 | fi | |
59746b65 MW |
6596 | fi |
6597 | ||
3dd30495 VZ |
6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-no_deps" >&5 |
6599 | $as_echo_n "checking for --${enablestring:-enable}-no_deps... " >&6; } | |
6600 | # Check whether --enable-no_deps was given. | |
6601 | if test "${enable_no_deps+set}" = set; then : | |
6602 | enableval=$enable_no_deps; | |
a848cd7e | 6603 | if test "$enableval" = yes; then |
3dd30495 | 6604 | wx_cv_use_no_deps='wxUSE_NO_DEPS=yes' |
a848cd7e | 6605 | else |
3dd30495 | 6606 | wx_cv_use_no_deps='wxUSE_NO_DEPS=no' |
a848cd7e SC |
6607 | fi |
6608 | ||
6609 | else | |
6610 | ||
3dd30495 | 6611 | wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}" |
a848cd7e | 6612 | |
47964710 VS |
6613 | fi |
6614 | ||
a848cd7e | 6615 | |
3dd30495 | 6616 | eval "$wx_cv_use_no_deps" |
a848cd7e | 6617 | |
6e198e97 | 6618 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6619 | if test $wxUSE_NO_DEPS = no; then |
6e198e97 | 6620 | result=yes |
7ac0e38e VZ |
6621 | else |
6622 | result=no | |
6e198e97 | 6623 | fi |
a848cd7e | 6624 | else |
3dd30495 | 6625 | result=$wxUSE_NO_DEPS |
a848cd7e SC |
6626 | fi |
6627 | ||
3dd30495 VZ |
6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6629 | $as_echo "$result" >&6; } | |
6e198e97 | 6630 | |
a848cd7e | 6631 | |
3dd30495 VZ |
6632 | enablestring=disable |
6633 | defaultval= | |
238663c1 | 6634 | if test -z "$defaultval"; then |
6e198e97 VZ |
6635 | if test x"$enablestring" = xdisable; then |
6636 | defaultval=yes | |
6637 | else | |
6638 | defaultval=no | |
6639 | fi | |
6640 | fi | |
6641 | ||
3dd30495 VZ |
6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-vararg_macros" >&5 |
6643 | $as_echo_n "checking for --${enablestring:-enable}-vararg_macros... " >&6; } | |
6644 | # Check whether --enable-vararg_macros was given. | |
6645 | if test "${enable_vararg_macros+set}" = set; then : | |
6646 | enableval=$enable_vararg_macros; | |
a848cd7e | 6647 | if test "$enableval" = yes; then |
3dd30495 | 6648 | wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes' |
a848cd7e | 6649 | else |
3dd30495 | 6650 | wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no' |
a848cd7e SC |
6651 | fi |
6652 | ||
6653 | else | |
6654 | ||
3dd30495 | 6655 | wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}" |
a848cd7e | 6656 | |
47964710 VS |
6657 | fi |
6658 | ||
a848cd7e | 6659 | |
3dd30495 | 6660 | eval "$wx_cv_use_vararg_macros" |
6e198e97 VZ |
6661 | |
6662 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 6663 | if test $wxUSE_VARARG_MACROS = no; then |
6e198e97 | 6664 | result=yes |
7ac0e38e VZ |
6665 | else |
6666 | result=no | |
6e198e97 | 6667 | fi |
a848cd7e | 6668 | else |
3dd30495 | 6669 | result=$wxUSE_VARARG_MACROS |
a848cd7e SC |
6670 | fi |
6671 | ||
3dd30495 VZ |
6672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6673 | $as_echo "$result" >&6; } | |
6674 | ||
6e198e97 | 6675 | |
a848cd7e | 6676 | |
077c7880 | 6677 | enablestring= |
3dd30495 VZ |
6678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-universal_binary" >&5 |
6679 | $as_echo_n "checking for --${enablestring:-enable}-universal_binary... " >&6; } | |
6680 | # Check whether --enable-universal_binary was given. | |
6681 | if test "${enable_universal_binary+set}" = set; then : | |
6682 | enableval=$enable_universal_binary; | |
6683 | wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'" | |
6e198e97 | 6684 | |
3dd30495 VZ |
6685 | else |
6686 | ||
6687 | wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY | |
6688 | ||
6689 | fi | |
6690 | ||
6691 | ||
6692 | eval "$wx_cv_use_universal_binary" | |
6693 | ||
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_UNIVERSAL_BINARY" >&5 | |
6695 | $as_echo "$wxUSE_UNIVERSAL_BINARY" >&6; } | |
6696 | ||
6697 | ||
6698 | enablestring= | |
6699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-macosx_arch" >&5 | |
6700 | $as_echo_n "checking for --${enablestring:-enable}-macosx_arch... " >&6; } | |
6701 | # Check whether --enable-macosx_arch was given. | |
6702 | if test "${enable_macosx_arch+set}" = set; then : | |
6703 | enableval=$enable_macosx_arch; | |
6704 | wx_cv_use_macosx_arch="wxUSE_MAC_ARCH='$enableval'" | |
07158944 VZ |
6705 | |
6706 | else | |
6707 | ||
3dd30495 | 6708 | wx_cv_use_macosx_arch='wxUSE_MAC_ARCH='$DEFAULT_wxUSE_MAC_ARCH |
07158944 | 6709 | |
47964710 VS |
6710 | fi |
6711 | ||
07158944 | 6712 | |
3dd30495 | 6713 | eval "$wx_cv_use_macosx_arch" |
07158944 | 6714 | |
3dd30495 VZ |
6715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MAC_ARCH" >&5 |
6716 | $as_echo "$wxUSE_MAC_ARCH" >&6; } | |
07158944 | 6717 | |
6e198e97 | 6718 | |
07158944 | 6719 | |
077c7880 | 6720 | enablestring= |
3dd30495 | 6721 | defaultval= |
238663c1 | 6722 | if test -z "$defaultval"; then |
6e198e97 VZ |
6723 | if test x"$enablestring" = xdisable; then |
6724 | defaultval=yes | |
6725 | else | |
6726 | defaultval=no | |
6727 | fi | |
6728 | fi | |
6729 | ||
3dd30495 VZ |
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-compat26" >&5 |
6731 | $as_echo_n "checking for --${enablestring:-enable}-compat26... " >&6; } | |
6732 | # Check whether --enable-compat26 was given. | |
6733 | if test "${enable_compat26+set}" = set; then : | |
6734 | enableval=$enable_compat26; | |
a848cd7e | 6735 | if test "$enableval" = yes; then |
3dd30495 | 6736 | wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 6737 | else |
3dd30495 | 6738 | wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
6739 | fi |
6740 | ||
6741 | else | |
6742 | ||
3dd30495 | 6743 | wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}" |
a848cd7e | 6744 | |
47964710 VS |
6745 | fi |
6746 | ||
a848cd7e | 6747 | |
3dd30495 | 6748 | eval "$wx_cv_use_compat26" |
a848cd7e | 6749 | |
6e198e97 | 6750 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6751 | if test $WXWIN_COMPATIBILITY_2_6 = no; then |
6e198e97 | 6752 | result=yes |
7ac0e38e VZ |
6753 | else |
6754 | result=no | |
6e198e97 | 6755 | fi |
a848cd7e | 6756 | else |
3dd30495 | 6757 | result=$WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
6758 | fi |
6759 | ||
3dd30495 VZ |
6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6761 | $as_echo "$result" >&6; } | |
6e198e97 | 6762 | |
a848cd7e | 6763 | |
3dd30495 VZ |
6764 | enablestring=disable |
6765 | defaultval= | |
238663c1 | 6766 | if test -z "$defaultval"; then |
6e198e97 VZ |
6767 | if test x"$enablestring" = xdisable; then |
6768 | defaultval=yes | |
6769 | else | |
6770 | defaultval=no | |
6771 | fi | |
6772 | fi | |
6773 | ||
3dd30495 VZ |
6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-compat28" >&5 |
6775 | $as_echo_n "checking for --${enablestring:-enable}-compat28... " >&6; } | |
6776 | # Check whether --enable-compat28 was given. | |
6777 | if test "${enable_compat28+set}" = set; then : | |
6778 | enableval=$enable_compat28; | |
26e422a9 | 6779 | if test "$enableval" = yes; then |
3dd30495 | 6780 | wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes' |
26e422a9 | 6781 | else |
3dd30495 | 6782 | wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no' |
26e422a9 MW |
6783 | fi |
6784 | ||
6785 | else | |
6786 | ||
3dd30495 | 6787 | wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}" |
26e422a9 | 6788 | |
47964710 VS |
6789 | fi |
6790 | ||
26e422a9 | 6791 | |
3dd30495 | 6792 | eval "$wx_cv_use_compat28" |
26e422a9 | 6793 | |
6e198e97 | 6794 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6795 | if test $WXWIN_COMPATIBILITY_2_8 = no; then |
6e198e97 | 6796 | result=yes |
7ac0e38e VZ |
6797 | else |
6798 | result=no | |
6e198e97 | 6799 | fi |
26e422a9 | 6800 | else |
3dd30495 | 6801 | result=$WXWIN_COMPATIBILITY_2_8 |
26e422a9 MW |
6802 | fi |
6803 | ||
3dd30495 VZ |
6804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6805 | $as_echo "$result" >&6; } | |
6e198e97 | 6806 | |
26e422a9 | 6807 | |
3dd30495 VZ |
6808 | |
6809 | enablestring=disable | |
6810 | defaultval= | |
238663c1 | 6811 | if test -z "$defaultval"; then |
6e198e97 VZ |
6812 | if test x"$enablestring" = xdisable; then |
6813 | defaultval=yes | |
6814 | else | |
6815 | defaultval=no | |
6816 | fi | |
6817 | fi | |
6818 | ||
3dd30495 VZ |
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-rpath" >&5 |
6820 | $as_echo_n "checking for --${enablestring:-enable}-rpath... " >&6; } | |
6821 | # Check whether --enable-rpath was given. | |
6822 | if test "${enable_rpath+set}" = set; then : | |
6823 | enableval=$enable_rpath; | |
a848cd7e | 6824 | if test "$enableval" = yes; then |
3dd30495 | 6825 | wx_cv_use_rpath='wxUSE_RPATH=yes' |
a848cd7e | 6826 | else |
3dd30495 | 6827 | wx_cv_use_rpath='wxUSE_RPATH=no' |
a848cd7e SC |
6828 | fi |
6829 | ||
6830 | else | |
6831 | ||
3dd30495 | 6832 | wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}" |
a848cd7e | 6833 | |
47964710 VS |
6834 | fi |
6835 | ||
a848cd7e | 6836 | |
3dd30495 | 6837 | eval "$wx_cv_use_rpath" |
a848cd7e | 6838 | |
6e198e97 | 6839 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6840 | if test $wxUSE_RPATH = no; then |
6e198e97 | 6841 | result=yes |
7ac0e38e VZ |
6842 | else |
6843 | result=no | |
6e198e97 | 6844 | fi |
a848cd7e | 6845 | else |
3dd30495 | 6846 | result=$wxUSE_RPATH |
a848cd7e SC |
6847 | fi |
6848 | ||
3dd30495 VZ |
6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6850 | $as_echo "$result" >&6; } | |
6851 | ||
6e198e97 | 6852 | |
a848cd7e | 6853 | |
077c7880 | 6854 | enablestring= |
3dd30495 | 6855 | defaultval= |
238663c1 | 6856 | if test -z "$defaultval"; then |
6e198e97 VZ |
6857 | if test x"$enablestring" = xdisable; then |
6858 | defaultval=yes | |
6859 | else | |
6860 | defaultval=no | |
6861 | fi | |
6862 | fi | |
6863 | ||
3dd30495 VZ |
6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-objc_uniquifying" >&5 |
6865 | $as_echo_n "checking for --${enablestring:-enable}-objc_uniquifying... " >&6; } | |
6866 | # Check whether --enable-objc_uniquifying was given. | |
6867 | if test "${enable_objc_uniquifying+set}" = set; then : | |
6868 | enableval=$enable_objc_uniquifying; | |
a848cd7e | 6869 | if test "$enableval" = yes; then |
3dd30495 | 6870 | wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes' |
a848cd7e | 6871 | else |
3dd30495 | 6872 | wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no' |
a848cd7e SC |
6873 | fi |
6874 | ||
6875 | else | |
6876 | ||
3dd30495 | 6877 | wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}" |
a848cd7e | 6878 | |
47964710 VS |
6879 | fi |
6880 | ||
a848cd7e | 6881 | |
3dd30495 | 6882 | eval "$wx_cv_use_objc_uniquifying" |
a848cd7e | 6883 | |
6e198e97 | 6884 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6885 | if test $wxUSE_OBJC_UNIQUIFYING = no; then |
6e198e97 | 6886 | result=yes |
7ac0e38e VZ |
6887 | else |
6888 | result=no | |
6e198e97 | 6889 | fi |
a848cd7e | 6890 | else |
3dd30495 | 6891 | result=$wxUSE_OBJC_UNIQUIFYING |
a848cd7e SC |
6892 | fi |
6893 | ||
3dd30495 VZ |
6894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6895 | $as_echo "$result" >&6; } | |
6e198e97 | 6896 | |
a848cd7e | 6897 | |
3dd30495 VZ |
6898 | |
6899 | enablestring=disable | |
6900 | defaultval= | |
238663c1 | 6901 | if test -z "$defaultval"; then |
6e198e97 VZ |
6902 | if test x"$enablestring" = xdisable; then |
6903 | defaultval=yes | |
6904 | else | |
6905 | defaultval=no | |
6906 | fi | |
6907 | fi | |
6908 | ||
3dd30495 VZ |
6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-visibility" >&5 |
6910 | $as_echo_n "checking for --${enablestring:-enable}-visibility... " >&6; } | |
6911 | # Check whether --enable-visibility was given. | |
6912 | if test "${enable_visibility+set}" = set; then : | |
6913 | enableval=$enable_visibility; | |
a848cd7e | 6914 | if test "$enableval" = yes; then |
3dd30495 | 6915 | wx_cv_use_visibility='wxUSE_VISIBILITY=yes' |
a848cd7e | 6916 | else |
3dd30495 | 6917 | wx_cv_use_visibility='wxUSE_VISIBILITY=no' |
a848cd7e SC |
6918 | fi |
6919 | ||
6920 | else | |
6921 | ||
3dd30495 | 6922 | wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}" |
a848cd7e | 6923 | |
47964710 VS |
6924 | fi |
6925 | ||
a848cd7e | 6926 | |
3dd30495 | 6927 | eval "$wx_cv_use_visibility" |
a848cd7e | 6928 | |
6e198e97 | 6929 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6930 | if test $wxUSE_VISIBILITY = no; then |
6e198e97 | 6931 | result=yes |
7ac0e38e VZ |
6932 | else |
6933 | result=no | |
6e198e97 | 6934 | fi |
a848cd7e | 6935 | else |
3dd30495 | 6936 | result=$wxUSE_VISIBILITY |
a848cd7e SC |
6937 | fi |
6938 | ||
3dd30495 VZ |
6939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6940 | $as_echo "$result" >&6; } | |
a848cd7e | 6941 | |
a848cd7e | 6942 | |
3dd30495 VZ |
6943 | enablestring=disable |
6944 | defaultval= | |
238663c1 | 6945 | if test -z "$defaultval"; then |
6e198e97 VZ |
6946 | if test x"$enablestring" = xdisable; then |
6947 | defaultval=yes | |
6948 | else | |
6949 | defaultval=no | |
6950 | fi | |
a848cd7e SC |
6951 | fi |
6952 | ||
3dd30495 VZ |
6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-tls" >&5 |
6954 | $as_echo_n "checking for --${enablestring:-enable}-tls... " >&6; } | |
6955 | # Check whether --enable-tls was given. | |
6956 | if test "${enable_tls+set}" = set; then : | |
6957 | enableval=$enable_tls; | |
f10e38c4 | 6958 | if test "$enableval" = yes; then |
3dd30495 | 6959 | wx_cv_use_tls='wxUSE_COMPILER_TLS=yes' |
f10e38c4 | 6960 | else |
3dd30495 | 6961 | wx_cv_use_tls='wxUSE_COMPILER_TLS=no' |
f10e38c4 VZ |
6962 | fi |
6963 | ||
6964 | else | |
6965 | ||
3dd30495 | 6966 | wx_cv_use_tls='wxUSE_COMPILER_TLS=${'DEFAULT_wxUSE_COMPILER_TLS":-$defaultval}" |
f10e38c4 | 6967 | |
47964710 VS |
6968 | fi |
6969 | ||
f10e38c4 | 6970 | |
3dd30495 | 6971 | eval "$wx_cv_use_tls" |
f10e38c4 | 6972 | |
6e198e97 | 6973 | if test x"$enablestring" = xdisable; then |
3dd30495 | 6974 | if test $wxUSE_COMPILER_TLS = no; then |
6e198e97 | 6975 | result=yes |
7ac0e38e VZ |
6976 | else |
6977 | result=no | |
6e198e97 | 6978 | fi |
f10e38c4 | 6979 | else |
3dd30495 | 6980 | result=$wxUSE_COMPILER_TLS |
f10e38c4 VZ |
6981 | fi |
6982 | ||
3dd30495 VZ |
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
6984 | $as_echo "$result" >&6; } | |
6985 | ||
6986 | ||
6e198e97 | 6987 | |
f10e38c4 | 6988 | |
077c7880 | 6989 | enablestring= |
6e198e97 | 6990 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 6991 | if test -z "$defaultval"; then |
6e198e97 VZ |
6992 | if test x"$enablestring" = xdisable; then |
6993 | defaultval=yes | |
6994 | else | |
6995 | defaultval=no | |
6996 | fi | |
6997 | fi | |
6998 | ||
3dd30495 VZ |
6999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-intl" >&5 |
7000 | $as_echo_n "checking for --${enablestring:-enable}-intl... " >&6; } | |
7001 | # Check whether --enable-intl was given. | |
7002 | if test "${enable_intl+set}" = set; then : | |
7003 | enableval=$enable_intl; | |
a848cd7e | 7004 | if test "$enableval" = yes; then |
3dd30495 | 7005 | wx_cv_use_intl='wxUSE_INTL=yes' |
a848cd7e | 7006 | else |
3dd30495 | 7007 | wx_cv_use_intl='wxUSE_INTL=no' |
a848cd7e SC |
7008 | fi |
7009 | ||
7010 | else | |
7011 | ||
3dd30495 | 7012 | wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}" |
a848cd7e | 7013 | |
47964710 VS |
7014 | fi |
7015 | ||
a848cd7e | 7016 | |
3dd30495 | 7017 | eval "$wx_cv_use_intl" |
a848cd7e | 7018 | |
6e198e97 | 7019 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7020 | if test $wxUSE_INTL = no; then |
6e198e97 | 7021 | result=yes |
7ac0e38e VZ |
7022 | else |
7023 | result=no | |
6e198e97 | 7024 | fi |
a848cd7e | 7025 | else |
3dd30495 | 7026 | result=$wxUSE_INTL |
a848cd7e SC |
7027 | fi |
7028 | ||
3dd30495 VZ |
7029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7030 | $as_echo "$result" >&6; } | |
a848cd7e | 7031 | |
a848cd7e | 7032 | |
077c7880 | 7033 | enablestring= |
6e198e97 | 7034 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7035 | if test -z "$defaultval"; then |
6e198e97 VZ |
7036 | if test x"$enablestring" = xdisable; then |
7037 | defaultval=yes | |
7038 | else | |
7039 | defaultval=no | |
7040 | fi | |
7041 | fi | |
7042 | ||
3dd30495 VZ |
7043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-xlocale" >&5 |
7044 | $as_echo_n "checking for --${enablestring:-enable}-xlocale... " >&6; } | |
7045 | # Check whether --enable-xlocale was given. | |
7046 | if test "${enable_xlocale+set}" = set; then : | |
7047 | enableval=$enable_xlocale; | |
a848cd7e | 7048 | if test "$enableval" = yes; then |
3dd30495 | 7049 | wx_cv_use_xlocale='wxUSE_XLOCALE=yes' |
a848cd7e | 7050 | else |
3dd30495 | 7051 | wx_cv_use_xlocale='wxUSE_XLOCALE=no' |
a848cd7e SC |
7052 | fi |
7053 | ||
7054 | else | |
7055 | ||
3dd30495 | 7056 | wx_cv_use_xlocale='wxUSE_XLOCALE=${'DEFAULT_wxUSE_XLOCALE":-$defaultval}" |
a848cd7e | 7057 | |
47964710 VS |
7058 | fi |
7059 | ||
a848cd7e | 7060 | |
3dd30495 | 7061 | eval "$wx_cv_use_xlocale" |
a848cd7e | 7062 | |
6e198e97 | 7063 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7064 | if test $wxUSE_XLOCALE = no; then |
6e198e97 | 7065 | result=yes |
7ac0e38e VZ |
7066 | else |
7067 | result=no | |
6e198e97 | 7068 | fi |
a848cd7e | 7069 | else |
3dd30495 | 7070 | result=$wxUSE_XLOCALE |
a848cd7e SC |
7071 | fi |
7072 | ||
3dd30495 VZ |
7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7074 | $as_echo "$result" >&6; } | |
6e198e97 | 7075 | |
a848cd7e | 7076 | |
077c7880 | 7077 | enablestring= |
6e198e97 | 7078 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7079 | if test -z "$defaultval"; then |
6e198e97 VZ |
7080 | if test x"$enablestring" = xdisable; then |
7081 | defaultval=yes | |
7082 | else | |
7083 | defaultval=no | |
7084 | fi | |
7085 | fi | |
7086 | ||
3dd30495 VZ |
7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-config" >&5 |
7088 | $as_echo_n "checking for --${enablestring:-enable}-config... " >&6; } | |
7089 | # Check whether --enable-config was given. | |
7090 | if test "${enable_config+set}" = set; then : | |
7091 | enableval=$enable_config; | |
a848cd7e | 7092 | if test "$enableval" = yes; then |
3dd30495 | 7093 | wx_cv_use_config='wxUSE_CONFIG=yes' |
a848cd7e | 7094 | else |
3dd30495 | 7095 | wx_cv_use_config='wxUSE_CONFIG=no' |
a848cd7e SC |
7096 | fi |
7097 | ||
7098 | else | |
7099 | ||
3dd30495 | 7100 | wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}" |
a848cd7e | 7101 | |
47964710 VS |
7102 | fi |
7103 | ||
a848cd7e | 7104 | |
3dd30495 | 7105 | eval "$wx_cv_use_config" |
a848cd7e | 7106 | |
6e198e97 | 7107 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7108 | if test $wxUSE_CONFIG = no; then |
6e198e97 | 7109 | result=yes |
7ac0e38e VZ |
7110 | else |
7111 | result=no | |
6e198e97 | 7112 | fi |
a848cd7e | 7113 | else |
3dd30495 | 7114 | result=$wxUSE_CONFIG |
a848cd7e SC |
7115 | fi |
7116 | ||
3dd30495 VZ |
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7118 | $as_echo "$result" >&6; } | |
7119 | ||
6e198e97 | 7120 | |
a848cd7e | 7121 | |
077c7880 | 7122 | enablestring= |
6e198e97 | 7123 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7124 | if test -z "$defaultval"; then |
6e198e97 VZ |
7125 | if test x"$enablestring" = xdisable; then |
7126 | defaultval=yes | |
7127 | else | |
7128 | defaultval=no | |
7129 | fi | |
7130 | fi | |
7131 | ||
3dd30495 VZ |
7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-protocols" >&5 |
7133 | $as_echo_n "checking for --${enablestring:-enable}-protocols... " >&6; } | |
7134 | # Check whether --enable-protocols was given. | |
7135 | if test "${enable_protocols+set}" = set; then : | |
7136 | enableval=$enable_protocols; | |
a848cd7e | 7137 | if test "$enableval" = yes; then |
3dd30495 | 7138 | wx_cv_use_protocols='wxUSE_PROTOCOL=yes' |
a848cd7e | 7139 | else |
3dd30495 | 7140 | wx_cv_use_protocols='wxUSE_PROTOCOL=no' |
a848cd7e SC |
7141 | fi |
7142 | ||
7143 | else | |
7144 | ||
3dd30495 | 7145 | wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}" |
a848cd7e | 7146 | |
47964710 VS |
7147 | fi |
7148 | ||
a848cd7e | 7149 | |
3dd30495 | 7150 | eval "$wx_cv_use_protocols" |
a848cd7e | 7151 | |
6e198e97 | 7152 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7153 | if test $wxUSE_PROTOCOL = no; then |
6e198e97 | 7154 | result=yes |
7ac0e38e VZ |
7155 | else |
7156 | result=no | |
6e198e97 | 7157 | fi |
a848cd7e | 7158 | else |
3dd30495 | 7159 | result=$wxUSE_PROTOCOL |
a848cd7e SC |
7160 | fi |
7161 | ||
3dd30495 VZ |
7162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7163 | $as_echo "$result" >&6; } | |
6e198e97 | 7164 | |
a848cd7e | 7165 | |
077c7880 | 7166 | enablestring= |
6e198e97 | 7167 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7168 | if test -z "$defaultval"; then |
6e198e97 VZ |
7169 | if test x"$enablestring" = xdisable; then |
7170 | defaultval=yes | |
7171 | else | |
7172 | defaultval=no | |
7173 | fi | |
7174 | fi | |
7175 | ||
3dd30495 VZ |
7176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ftp" >&5 |
7177 | $as_echo_n "checking for --${enablestring:-enable}-ftp... " >&6; } | |
7178 | # Check whether --enable-ftp was given. | |
7179 | if test "${enable_ftp+set}" = set; then : | |
7180 | enableval=$enable_ftp; | |
a848cd7e | 7181 | if test "$enableval" = yes; then |
3dd30495 | 7182 | wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' |
a848cd7e | 7183 | else |
3dd30495 | 7184 | wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' |
a848cd7e SC |
7185 | fi |
7186 | ||
7187 | else | |
7188 | ||
3dd30495 | 7189 | wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}" |
a848cd7e | 7190 | |
47964710 VS |
7191 | fi |
7192 | ||
a848cd7e | 7193 | |
3dd30495 | 7194 | eval "$wx_cv_use_ftp" |
a848cd7e | 7195 | |
6e198e97 | 7196 | if test x"$enablestring" = xdisable; then |
7ac0e38e | 7197 | if test $wxUSE_PROTOCOL_FTP = no; then |
6e198e97 | 7198 | result=yes |
7ac0e38e VZ |
7199 | else |
7200 | result=no | |
6e198e97 | 7201 | fi |
a848cd7e | 7202 | else |
6e198e97 | 7203 | result=$wxUSE_PROTOCOL_FTP |
a848cd7e SC |
7204 | fi |
7205 | ||
3dd30495 VZ |
7206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7207 | $as_echo "$result" >&6; } | |
6e198e97 | 7208 | |
a848cd7e | 7209 | |
077c7880 | 7210 | enablestring= |
6e198e97 | 7211 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7212 | if test -z "$defaultval"; then |
6e198e97 VZ |
7213 | if test x"$enablestring" = xdisable; then |
7214 | defaultval=yes | |
7215 | else | |
7216 | defaultval=no | |
7217 | fi | |
7218 | fi | |
7219 | ||
3dd30495 VZ |
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-http" >&5 |
7221 | $as_echo_n "checking for --${enablestring:-enable}-http... " >&6; } | |
7222 | # Check whether --enable-http was given. | |
7223 | if test "${enable_http+set}" = set; then : | |
7224 | enableval=$enable_http; | |
a848cd7e | 7225 | if test "$enableval" = yes; then |
3dd30495 | 7226 | wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' |
a848cd7e | 7227 | else |
3dd30495 | 7228 | wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no' |
a848cd7e SC |
7229 | fi |
7230 | ||
7231 | else | |
7232 | ||
3dd30495 | 7233 | wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}" |
a848cd7e | 7234 | |
47964710 VS |
7235 | fi |
7236 | ||
a848cd7e | 7237 | |
3dd30495 | 7238 | eval "$wx_cv_use_http" |
a848cd7e | 7239 | |
6e198e97 | 7240 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7241 | if test $wxUSE_PROTOCOL_HTTP = no; then |
6e198e97 | 7242 | result=yes |
7ac0e38e VZ |
7243 | else |
7244 | result=no | |
6e198e97 | 7245 | fi |
a848cd7e | 7246 | else |
3dd30495 | 7247 | result=$wxUSE_PROTOCOL_HTTP |
a848cd7e SC |
7248 | fi |
7249 | ||
3dd30495 VZ |
7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7251 | $as_echo "$result" >&6; } | |
a848cd7e SC |
7252 | |
7253 | ||
077c7880 | 7254 | enablestring= |
6e198e97 | 7255 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7256 | if test -z "$defaultval"; then |
6e198e97 VZ |
7257 | if test x"$enablestring" = xdisable; then |
7258 | defaultval=yes | |
7259 | else | |
7260 | defaultval=no | |
7261 | fi | |
7262 | fi | |
7263 | ||
3dd30495 VZ |
7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fileproto" >&5 |
7265 | $as_echo_n "checking for --${enablestring:-enable}-fileproto... " >&6; } | |
7266 | # Check whether --enable-fileproto was given. | |
7267 | if test "${enable_fileproto+set}" = set; then : | |
7268 | enableval=$enable_fileproto; | |
a848cd7e | 7269 | if test "$enableval" = yes; then |
3dd30495 | 7270 | wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' |
a848cd7e | 7271 | else |
3dd30495 | 7272 | wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' |
a848cd7e SC |
7273 | fi |
7274 | ||
7275 | else | |
7276 | ||
3dd30495 | 7277 | wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}" |
a848cd7e | 7278 | |
47964710 VS |
7279 | fi |
7280 | ||
a848cd7e | 7281 | |
3dd30495 | 7282 | eval "$wx_cv_use_fileproto" |
a848cd7e | 7283 | |
6e198e97 | 7284 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7285 | if test $wxUSE_PROTOCOL_FILE = no; then |
6e198e97 | 7286 | result=yes |
7ac0e38e VZ |
7287 | else |
7288 | result=no | |
6e198e97 | 7289 | fi |
a848cd7e | 7290 | else |
3dd30495 | 7291 | result=$wxUSE_PROTOCOL_FILE |
a848cd7e SC |
7292 | fi |
7293 | ||
3dd30495 VZ |
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7295 | $as_echo "$result" >&6; } | |
a848cd7e | 7296 | |
91a5e00c VS |
7297 | |
7298 | enablestring= | |
3dd30495 | 7299 | defaultval=$wxUSE_ALL_FEATURES |
91a5e00c VS |
7300 | if test -z "$defaultval"; then |
7301 | if test x"$enablestring" = xdisable; then | |
7302 | defaultval=yes | |
7303 | else | |
7304 | defaultval=no | |
7305 | fi | |
7306 | fi | |
7307 | ||
3dd30495 VZ |
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-sockets" >&5 |
7309 | $as_echo_n "checking for --${enablestring:-enable}-sockets... " >&6; } | |
7310 | # Check whether --enable-sockets was given. | |
7311 | if test "${enable_sockets+set}" = set; then : | |
7312 | enableval=$enable_sockets; | |
91a5e00c | 7313 | if test "$enableval" = yes; then |
3dd30495 | 7314 | wx_cv_use_sockets='wxUSE_SOCKETS=yes' |
91a5e00c | 7315 | else |
3dd30495 | 7316 | wx_cv_use_sockets='wxUSE_SOCKETS=no' |
91a5e00c | 7317 | fi |
91a5e00c VS |
7318 | |
7319 | else | |
7320 | ||
3dd30495 | 7321 | wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}" |
91a5e00c | 7322 | |
47964710 VS |
7323 | fi |
7324 | ||
91a5e00c | 7325 | |
3dd30495 | 7326 | eval "$wx_cv_use_sockets" |
91a5e00c VS |
7327 | |
7328 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 7329 | if test $wxUSE_SOCKETS = no; then |
91a5e00c | 7330 | result=yes |
7ac0e38e VZ |
7331 | else |
7332 | result=no | |
91a5e00c VS |
7333 | fi |
7334 | else | |
3dd30495 | 7335 | result=$wxUSE_SOCKETS |
91a5e00c VS |
7336 | fi |
7337 | ||
3dd30495 VZ |
7338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7339 | $as_echo "$result" >&6; } | |
91a5e00c VS |
7340 | |
7341 | ||
7342 | enablestring= | |
7343 | defaultval=$wxUSE_ALL_FEATURES | |
7344 | if test -z "$defaultval"; then | |
7345 | if test x"$enablestring" = xdisable; then | |
7346 | defaultval=yes | |
7347 | else | |
7348 | defaultval=no | |
7349 | fi | |
7350 | fi | |
7351 | ||
3dd30495 VZ |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ipv6" >&5 |
7353 | $as_echo_n "checking for --${enablestring:-enable}-ipv6... " >&6; } | |
7354 | # Check whether --enable-ipv6 was given. | |
7355 | if test "${enable_ipv6+set}" = set; then : | |
7356 | enableval=$enable_ipv6; | |
91a5e00c | 7357 | if test "$enableval" = yes; then |
3dd30495 | 7358 | wx_cv_use_ipv6='wxUSE_IPV6=yes' |
91a5e00c | 7359 | else |
3dd30495 | 7360 | wx_cv_use_ipv6='wxUSE_IPV6=no' |
91a5e00c | 7361 | fi |
91a5e00c VS |
7362 | |
7363 | else | |
7364 | ||
3dd30495 | 7365 | wx_cv_use_ipv6='wxUSE_IPV6=${'DEFAULT_wxUSE_IPV6":-$defaultval}" |
91a5e00c | 7366 | |
47964710 VS |
7367 | fi |
7368 | ||
91a5e00c | 7369 | |
3dd30495 | 7370 | eval "$wx_cv_use_ipv6" |
91a5e00c VS |
7371 | |
7372 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 7373 | if test $wxUSE_IPV6 = no; then |
91a5e00c | 7374 | result=yes |
7ac0e38e VZ |
7375 | else |
7376 | result=no | |
91a5e00c VS |
7377 | fi |
7378 | else | |
3dd30495 | 7379 | result=$wxUSE_IPV6 |
91a5e00c VS |
7380 | fi |
7381 | ||
3dd30495 VZ |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7383 | $as_echo "$result" >&6; } | |
a848cd7e SC |
7384 | |
7385 | ||
077c7880 | 7386 | enablestring= |
6e198e97 | 7387 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7388 | if test -z "$defaultval"; then |
6e198e97 VZ |
7389 | if test x"$enablestring" = xdisable; then |
7390 | defaultval=yes | |
7391 | else | |
7392 | defaultval=no | |
7393 | fi | |
7394 | fi | |
7395 | ||
3dd30495 VZ |
7396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ole" >&5 |
7397 | $as_echo_n "checking for --${enablestring:-enable}-ole... " >&6; } | |
7398 | # Check whether --enable-ole was given. | |
7399 | if test "${enable_ole+set}" = set; then : | |
7400 | enableval=$enable_ole; | |
a848cd7e | 7401 | if test "$enableval" = yes; then |
3dd30495 | 7402 | wx_cv_use_ole='wxUSE_OLE=yes' |
a848cd7e | 7403 | else |
3dd30495 | 7404 | wx_cv_use_ole='wxUSE_OLE=no' |
a848cd7e SC |
7405 | fi |
7406 | ||
7407 | else | |
7408 | ||
3dd30495 | 7409 | wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}" |
a848cd7e | 7410 | |
47964710 VS |
7411 | fi |
7412 | ||
a848cd7e | 7413 | |
3dd30495 | 7414 | eval "$wx_cv_use_ole" |
a848cd7e | 7415 | |
6e198e97 | 7416 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7417 | if test $wxUSE_OLE = no; then |
6e198e97 | 7418 | result=yes |
7ac0e38e VZ |
7419 | else |
7420 | result=no | |
6e198e97 | 7421 | fi |
a848cd7e | 7422 | else |
3dd30495 | 7423 | result=$wxUSE_OLE |
a848cd7e SC |
7424 | fi |
7425 | ||
3dd30495 VZ |
7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7427 | $as_echo "$result" >&6; } | |
6e198e97 | 7428 | |
a848cd7e | 7429 | |
077c7880 | 7430 | enablestring= |
6e198e97 | 7431 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7432 | if test -z "$defaultval"; then |
6e198e97 VZ |
7433 | if test x"$enablestring" = xdisable; then |
7434 | defaultval=yes | |
7435 | else | |
7436 | defaultval=no | |
7437 | fi | |
7438 | fi | |
7439 | ||
3dd30495 VZ |
7440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dataobj" >&5 |
7441 | $as_echo_n "checking for --${enablestring:-enable}-dataobj... " >&6; } | |
7442 | # Check whether --enable-dataobj was given. | |
7443 | if test "${enable_dataobj+set}" = set; then : | |
7444 | enableval=$enable_dataobj; | |
a848cd7e | 7445 | if test "$enableval" = yes; then |
3dd30495 | 7446 | wx_cv_use_dataobj='wxUSE_DATAOBJ=yes' |
a848cd7e | 7447 | else |
3dd30495 | 7448 | wx_cv_use_dataobj='wxUSE_DATAOBJ=no' |
a848cd7e SC |
7449 | fi |
7450 | ||
7451 | else | |
7452 | ||
3dd30495 | 7453 | wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}" |
a848cd7e | 7454 | |
47964710 VS |
7455 | fi |
7456 | ||
a848cd7e | 7457 | |
3dd30495 | 7458 | eval "$wx_cv_use_dataobj" |
a848cd7e | 7459 | |
6e198e97 | 7460 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7461 | if test $wxUSE_DATAOBJ = no; then |
6e198e97 | 7462 | result=yes |
7ac0e38e VZ |
7463 | else |
7464 | result=no | |
6e198e97 | 7465 | fi |
a848cd7e | 7466 | else |
3dd30495 | 7467 | result=$wxUSE_DATAOBJ |
a848cd7e SC |
7468 | fi |
7469 | ||
3dd30495 VZ |
7470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7471 | $as_echo "$result" >&6; } | |
7472 | ||
6e198e97 | 7473 | |
a848cd7e | 7474 | |
077c7880 | 7475 | enablestring= |
6e198e97 | 7476 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7477 | if test -z "$defaultval"; then |
6e198e97 VZ |
7478 | if test x"$enablestring" = xdisable; then |
7479 | defaultval=yes | |
7480 | else | |
7481 | defaultval=no | |
7482 | fi | |
7483 | fi | |
7484 | ||
3dd30495 VZ |
7485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ipc" >&5 |
7486 | $as_echo_n "checking for --${enablestring:-enable}-ipc... " >&6; } | |
7487 | # Check whether --enable-ipc was given. | |
7488 | if test "${enable_ipc+set}" = set; then : | |
7489 | enableval=$enable_ipc; | |
a848cd7e | 7490 | if test "$enableval" = yes; then |
3dd30495 | 7491 | wx_cv_use_ipc='wxUSE_IPC=yes' |
a848cd7e | 7492 | else |
3dd30495 | 7493 | wx_cv_use_ipc='wxUSE_IPC=no' |
a848cd7e SC |
7494 | fi |
7495 | ||
7496 | else | |
7497 | ||
3dd30495 | 7498 | wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}" |
a848cd7e | 7499 | |
47964710 VS |
7500 | fi |
7501 | ||
a848cd7e | 7502 | |
3dd30495 | 7503 | eval "$wx_cv_use_ipc" |
a848cd7e | 7504 | |
6e198e97 | 7505 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7506 | if test $wxUSE_IPC = no; then |
6e198e97 | 7507 | result=yes |
7ac0e38e VZ |
7508 | else |
7509 | result=no | |
6e198e97 | 7510 | fi |
a848cd7e | 7511 | else |
3dd30495 | 7512 | result=$wxUSE_IPC |
a848cd7e SC |
7513 | fi |
7514 | ||
3dd30495 VZ |
7515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7516 | $as_echo "$result" >&6; } | |
7517 | ||
6e198e97 | 7518 | |
a848cd7e | 7519 | |
077c7880 | 7520 | enablestring= |
6e198e97 | 7521 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7522 | if test -z "$defaultval"; then |
6e198e97 VZ |
7523 | if test x"$enablestring" = xdisable; then |
7524 | defaultval=yes | |
7525 | else | |
7526 | defaultval=no | |
7527 | fi | |
7528 | fi | |
7529 | ||
3dd30495 VZ |
7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-baseevtloop" >&5 |
7531 | $as_echo_n "checking for --${enablestring:-enable}-baseevtloop... " >&6; } | |
7532 | # Check whether --enable-baseevtloop was given. | |
7533 | if test "${enable_baseevtloop+set}" = set; then : | |
7534 | enableval=$enable_baseevtloop; | |
a848cd7e | 7535 | if test "$enableval" = yes; then |
3dd30495 | 7536 | wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes' |
a848cd7e | 7537 | else |
3dd30495 | 7538 | wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no' |
a848cd7e SC |
7539 | fi |
7540 | ||
7541 | else | |
7542 | ||
3dd30495 | 7543 | wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}" |
a848cd7e | 7544 | |
47964710 VS |
7545 | fi |
7546 | ||
a848cd7e | 7547 | |
3dd30495 | 7548 | eval "$wx_cv_use_baseevtloop" |
a848cd7e | 7549 | |
6e198e97 | 7550 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7551 | if test $wxUSE_CONSOLE_EVENTLOOP = no; then |
6e198e97 | 7552 | result=yes |
7ac0e38e VZ |
7553 | else |
7554 | result=no | |
6e198e97 | 7555 | fi |
a848cd7e | 7556 | else |
3dd30495 | 7557 | result=$wxUSE_CONSOLE_EVENTLOOP |
a848cd7e SC |
7558 | fi |
7559 | ||
3dd30495 VZ |
7560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7561 | $as_echo "$result" >&6; } | |
6e198e97 | 7562 | |
a848cd7e | 7563 | |
077c7880 | 7564 | enablestring= |
6e198e97 | 7565 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7566 | if test -z "$defaultval"; then |
6e198e97 VZ |
7567 | if test x"$enablestring" = xdisable; then |
7568 | defaultval=yes | |
7569 | else | |
7570 | defaultval=no | |
7571 | fi | |
7572 | fi | |
7573 | ||
3dd30495 VZ |
7574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-epollloop" >&5 |
7575 | $as_echo_n "checking for --${enablestring:-enable}-epollloop... " >&6; } | |
7576 | # Check whether --enable-epollloop was given. | |
7577 | if test "${enable_epollloop+set}" = set; then : | |
7578 | enableval=$enable_epollloop; | |
a848cd7e | 7579 | if test "$enableval" = yes; then |
3dd30495 | 7580 | wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes' |
a848cd7e | 7581 | else |
3dd30495 | 7582 | wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no' |
a848cd7e SC |
7583 | fi |
7584 | ||
7585 | else | |
7586 | ||
3dd30495 | 7587 | wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}" |
a848cd7e | 7588 | |
47964710 VS |
7589 | fi |
7590 | ||
a848cd7e | 7591 | |
3dd30495 | 7592 | eval "$wx_cv_use_epollloop" |
a848cd7e | 7593 | |
6e198e97 | 7594 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7595 | if test $wxUSE_EPOLL_DISPATCHER = no; then |
6e198e97 | 7596 | result=yes |
7ac0e38e VZ |
7597 | else |
7598 | result=no | |
6e198e97 | 7599 | fi |
a848cd7e | 7600 | else |
3dd30495 | 7601 | result=$wxUSE_EPOLL_DISPATCHER |
a848cd7e SC |
7602 | fi |
7603 | ||
3dd30495 VZ |
7604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7605 | $as_echo "$result" >&6; } | |
6e198e97 | 7606 | |
a848cd7e | 7607 | |
077c7880 | 7608 | enablestring= |
6e198e97 | 7609 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7610 | if test -z "$defaultval"; then |
6e198e97 VZ |
7611 | if test x"$enablestring" = xdisable; then |
7612 | defaultval=yes | |
7613 | else | |
7614 | defaultval=no | |
7615 | fi | |
7616 | fi | |
7617 | ||
3dd30495 VZ |
7618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-selectloop" >&5 |
7619 | $as_echo_n "checking for --${enablestring:-enable}-selectloop... " >&6; } | |
7620 | # Check whether --enable-selectloop was given. | |
7621 | if test "${enable_selectloop+set}" = set; then : | |
7622 | enableval=$enable_selectloop; | |
9a8f0513 | 7623 | if test "$enableval" = yes; then |
3dd30495 | 7624 | wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes' |
9a8f0513 | 7625 | else |
3dd30495 | 7626 | wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no' |
9a8f0513 VS |
7627 | fi |
7628 | ||
7629 | else | |
7630 | ||
3dd30495 | 7631 | wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}" |
9a8f0513 | 7632 | |
47964710 VS |
7633 | fi |
7634 | ||
9a8f0513 | 7635 | |
3dd30495 | 7636 | eval "$wx_cv_use_selectloop" |
9a8f0513 | 7637 | |
6e198e97 | 7638 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7639 | if test $wxUSE_SELECT_DISPATCHER = no; then |
6e198e97 | 7640 | result=yes |
7ac0e38e VZ |
7641 | else |
7642 | result=no | |
6e198e97 | 7643 | fi |
9a8f0513 | 7644 | else |
3dd30495 | 7645 | result=$wxUSE_SELECT_DISPATCHER |
9a8f0513 VS |
7646 | fi |
7647 | ||
3dd30495 VZ |
7648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7649 | $as_echo "$result" >&6; } | |
7650 | ||
6e198e97 | 7651 | |
9a8f0513 | 7652 | |
077c7880 | 7653 | enablestring= |
6e198e97 | 7654 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7655 | if test -z "$defaultval"; then |
6e198e97 VZ |
7656 | if test x"$enablestring" = xdisable; then |
7657 | defaultval=yes | |
7658 | else | |
7659 | defaultval=no | |
7660 | fi | |
7661 | fi | |
7662 | ||
3dd30495 VZ |
7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-any" >&5 |
7664 | $as_echo_n "checking for --${enablestring:-enable}-any... " >&6; } | |
7665 | # Check whether --enable-any was given. | |
7666 | if test "${enable_any+set}" = set; then : | |
7667 | enableval=$enable_any; | |
3f60522a | 7668 | if test "$enableval" = yes; then |
3dd30495 | 7669 | wx_cv_use_any='wxUSE_ANY=yes' |
3f60522a | 7670 | else |
3dd30495 | 7671 | wx_cv_use_any='wxUSE_ANY=no' |
3f60522a JS |
7672 | fi |
7673 | ||
7674 | else | |
7675 | ||
3dd30495 | 7676 | wx_cv_use_any='wxUSE_ANY=${'DEFAULT_wxUSE_ANY":-$defaultval}" |
3f60522a | 7677 | |
47964710 VS |
7678 | fi |
7679 | ||
3f60522a | 7680 | |
3dd30495 | 7681 | eval "$wx_cv_use_any" |
3f60522a | 7682 | |
6e198e97 | 7683 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7684 | if test $wxUSE_ANY = no; then |
6e198e97 | 7685 | result=yes |
7ac0e38e VZ |
7686 | else |
7687 | result=no | |
6e198e97 | 7688 | fi |
3f60522a | 7689 | else |
3dd30495 | 7690 | result=$wxUSE_ANY |
3f60522a JS |
7691 | fi |
7692 | ||
3dd30495 VZ |
7693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7694 | $as_echo "$result" >&6; } | |
6e198e97 | 7695 | |
3f60522a | 7696 | |
1c4293cb VZ |
7697 | enablestring= |
7698 | defaultval=$wxUSE_ALL_FEATURES | |
7699 | if test -z "$defaultval"; then | |
7700 | if test x"$enablestring" = xdisable; then | |
7701 | defaultval=yes | |
7702 | else | |
7703 | defaultval=no | |
7704 | fi | |
7705 | fi | |
7706 | ||
3dd30495 VZ |
7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-apple_ieee" >&5 |
7708 | $as_echo_n "checking for --${enablestring:-enable}-apple_ieee... " >&6; } | |
7709 | # Check whether --enable-apple_ieee was given. | |
7710 | if test "${enable_apple_ieee+set}" = set; then : | |
7711 | enableval=$enable_apple_ieee; | |
1c4293cb | 7712 | if test "$enableval" = yes; then |
3dd30495 | 7713 | wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
1c4293cb | 7714 | else |
3dd30495 | 7715 | wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
1c4293cb VZ |
7716 | fi |
7717 | ||
7718 | else | |
7719 | ||
3dd30495 | 7720 | wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}" |
1c4293cb VZ |
7721 | |
7722 | fi | |
7723 | ||
7724 | ||
3dd30495 | 7725 | eval "$wx_cv_use_apple_ieee" |
1c4293cb VZ |
7726 | |
7727 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 7728 | if test $wxUSE_APPLE_IEEE = no; then |
1c4293cb | 7729 | result=yes |
7ac0e38e VZ |
7730 | else |
7731 | result=no | |
1c4293cb VZ |
7732 | fi |
7733 | else | |
3dd30495 | 7734 | result=$wxUSE_APPLE_IEEE |
1c4293cb VZ |
7735 | fi |
7736 | ||
3dd30495 VZ |
7737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7738 | $as_echo "$result" >&6; } | |
1c4293cb VZ |
7739 | |
7740 | ||
d33ccbe1 VZ |
7741 | enablestring= |
7742 | defaultval=$wxUSE_ALL_FEATURES | |
7743 | if test -z "$defaultval"; then | |
7744 | if test x"$enablestring" = xdisable; then | |
7745 | defaultval=yes | |
7746 | else | |
7747 | defaultval=no | |
7748 | fi | |
7749 | fi | |
7750 | ||
3dd30495 VZ |
7751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-arcstream" >&5 |
7752 | $as_echo_n "checking for --${enablestring:-enable}-arcstream... " >&6; } | |
7753 | # Check whether --enable-arcstream was given. | |
7754 | if test "${enable_arcstream+set}" = set; then : | |
7755 | enableval=$enable_arcstream; | |
d33ccbe1 | 7756 | if test "$enableval" = yes; then |
3dd30495 | 7757 | wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
d33ccbe1 | 7758 | else |
3dd30495 | 7759 | wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
d33ccbe1 VZ |
7760 | fi |
7761 | ||
7762 | else | |
7763 | ||
3dd30495 | 7764 | wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}" |
d33ccbe1 VZ |
7765 | |
7766 | fi | |
7767 | ||
7768 | ||
3dd30495 | 7769 | eval "$wx_cv_use_arcstream" |
d33ccbe1 VZ |
7770 | |
7771 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 7772 | if test $wxUSE_ARCHIVE_STREAMS = no; then |
d33ccbe1 VZ |
7773 | result=yes |
7774 | else | |
7775 | result=no | |
7776 | fi | |
7777 | else | |
3dd30495 | 7778 | result=$wxUSE_ARCHIVE_STREAMS |
d33ccbe1 VZ |
7779 | fi |
7780 | ||
3dd30495 VZ |
7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7782 | $as_echo "$result" >&6; } | |
d33ccbe1 VZ |
7783 | |
7784 | ||
54429bb3 | 7785 | enablestring= |
6e198e97 | 7786 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7787 | if test -z "$defaultval"; then |
6e198e97 VZ |
7788 | if test x"$enablestring" = xdisable; then |
7789 | defaultval=yes | |
7790 | else | |
7791 | defaultval=no | |
7792 | fi | |
7793 | fi | |
7794 | ||
3dd30495 VZ |
7795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-base64" >&5 |
7796 | $as_echo_n "checking for --${enablestring:-enable}-base64... " >&6; } | |
7797 | # Check whether --enable-base64 was given. | |
7798 | if test "${enable_base64+set}" = set; then : | |
7799 | enableval=$enable_base64; | |
54429bb3 | 7800 | if test "$enableval" = yes; then |
3dd30495 | 7801 | wx_cv_use_base64='wxUSE_BASE64=yes' |
54429bb3 | 7802 | else |
3dd30495 | 7803 | wx_cv_use_base64='wxUSE_BASE64=no' |
54429bb3 RD |
7804 | fi |
7805 | ||
7806 | else | |
7807 | ||
3dd30495 | 7808 | wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}" |
54429bb3 | 7809 | |
47964710 VS |
7810 | fi |
7811 | ||
54429bb3 | 7812 | |
3dd30495 | 7813 | eval "$wx_cv_use_base64" |
54429bb3 | 7814 | |
6e198e97 | 7815 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7816 | if test $wxUSE_BASE64 = no; then |
6e198e97 | 7817 | result=yes |
7ac0e38e VZ |
7818 | else |
7819 | result=no | |
6e198e97 | 7820 | fi |
54429bb3 | 7821 | else |
3dd30495 | 7822 | result=$wxUSE_BASE64 |
54429bb3 RD |
7823 | fi |
7824 | ||
3dd30495 VZ |
7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7826 | $as_echo "$result" >&6; } | |
6e198e97 | 7827 | |
54429bb3 | 7828 | |
077c7880 | 7829 | enablestring= |
6e198e97 | 7830 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7831 | if test -z "$defaultval"; then |
6e198e97 VZ |
7832 | if test x"$enablestring" = xdisable; then |
7833 | defaultval=yes | |
7834 | else | |
7835 | defaultval=no | |
7836 | fi | |
7837 | fi | |
7838 | ||
3dd30495 VZ |
7839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-backtrace" >&5 |
7840 | $as_echo_n "checking for --${enablestring:-enable}-backtrace... " >&6; } | |
7841 | # Check whether --enable-backtrace was given. | |
7842 | if test "${enable_backtrace+set}" = set; then : | |
7843 | enableval=$enable_backtrace; | |
a848cd7e | 7844 | if test "$enableval" = yes; then |
3dd30495 | 7845 | wx_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 7846 | else |
3dd30495 | 7847 | wx_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
7848 | fi |
7849 | ||
7850 | else | |
7851 | ||
3dd30495 | 7852 | wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}" |
a848cd7e | 7853 | |
47964710 VS |
7854 | fi |
7855 | ||
a848cd7e | 7856 | |
3dd30495 | 7857 | eval "$wx_cv_use_backtrace" |
a848cd7e | 7858 | |
6e198e97 | 7859 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7860 | if test $wxUSE_STACKWALKER = no; then |
6e198e97 | 7861 | result=yes |
7ac0e38e VZ |
7862 | else |
7863 | result=no | |
6e198e97 | 7864 | fi |
a848cd7e | 7865 | else |
3dd30495 | 7866 | result=$wxUSE_STACKWALKER |
a848cd7e SC |
7867 | fi |
7868 | ||
3dd30495 VZ |
7869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7870 | $as_echo "$result" >&6; } | |
6e198e97 | 7871 | |
a848cd7e | 7872 | |
077c7880 | 7873 | enablestring= |
6e198e97 | 7874 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7875 | if test -z "$defaultval"; then |
6e198e97 VZ |
7876 | if test x"$enablestring" = xdisable; then |
7877 | defaultval=yes | |
7878 | else | |
7879 | defaultval=no | |
7880 | fi | |
7881 | fi | |
7882 | ||
3dd30495 VZ |
7883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-catch_segvs" >&5 |
7884 | $as_echo_n "checking for --${enablestring:-enable}-catch_segvs... " >&6; } | |
7885 | # Check whether --enable-catch_segvs was given. | |
7886 | if test "${enable_catch_segvs+set}" = set; then : | |
7887 | enableval=$enable_catch_segvs; | |
a848cd7e | 7888 | if test "$enableval" = yes; then |
3dd30495 | 7889 | wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
a848cd7e | 7890 | else |
3dd30495 | 7891 | wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
a848cd7e SC |
7892 | fi |
7893 | ||
7894 | else | |
7895 | ||
3dd30495 | 7896 | wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}" |
a848cd7e | 7897 | |
47964710 VS |
7898 | fi |
7899 | ||
a848cd7e | 7900 | |
3dd30495 | 7901 | eval "$wx_cv_use_catch_segvs" |
a848cd7e | 7902 | |
6e198e97 | 7903 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7904 | if test $wxUSE_ON_FATAL_EXCEPTION = no; then |
6e198e97 | 7905 | result=yes |
7ac0e38e VZ |
7906 | else |
7907 | result=no | |
6e198e97 | 7908 | fi |
a848cd7e | 7909 | else |
3dd30495 | 7910 | result=$wxUSE_ON_FATAL_EXCEPTION |
a848cd7e SC |
7911 | fi |
7912 | ||
3dd30495 VZ |
7913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7914 | $as_echo "$result" >&6; } | |
6e198e97 | 7915 | |
a848cd7e | 7916 | |
077c7880 | 7917 | enablestring= |
6e198e97 | 7918 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7919 | if test -z "$defaultval"; then |
6e198e97 VZ |
7920 | if test x"$enablestring" = xdisable; then |
7921 | defaultval=yes | |
7922 | else | |
7923 | defaultval=no | |
7924 | fi | |
7925 | fi | |
7926 | ||
3dd30495 VZ |
7927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-cmdline" >&5 |
7928 | $as_echo_n "checking for --${enablestring:-enable}-cmdline... " >&6; } | |
7929 | # Check whether --enable-cmdline was given. | |
7930 | if test "${enable_cmdline+set}" = set; then : | |
7931 | enableval=$enable_cmdline; | |
a848cd7e | 7932 | if test "$enableval" = yes; then |
3dd30495 | 7933 | wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
a848cd7e | 7934 | else |
3dd30495 | 7935 | wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
a848cd7e SC |
7936 | fi |
7937 | ||
7938 | else | |
7939 | ||
3dd30495 | 7940 | wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}" |
a848cd7e | 7941 | |
47964710 VS |
7942 | fi |
7943 | ||
a848cd7e | 7944 | |
3dd30495 | 7945 | eval "$wx_cv_use_cmdline" |
a848cd7e | 7946 | |
6e198e97 | 7947 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7948 | if test $wxUSE_CMDLINE_PARSER = no; then |
6e198e97 | 7949 | result=yes |
7ac0e38e VZ |
7950 | else |
7951 | result=no | |
6e198e97 | 7952 | fi |
8a7b1113 | 7953 | else |
3dd30495 | 7954 | result=$wxUSE_CMDLINE_PARSER |
8a7b1113 VZ |
7955 | fi |
7956 | ||
3dd30495 VZ |
7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
7958 | $as_echo "$result" >&6; } | |
6e198e97 | 7959 | |
8a7b1113 | 7960 | |
077c7880 | 7961 | enablestring= |
6e198e97 | 7962 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 7963 | if test -z "$defaultval"; then |
6e198e97 VZ |
7964 | if test x"$enablestring" = xdisable; then |
7965 | defaultval=yes | |
7966 | else | |
7967 | defaultval=no | |
7968 | fi | |
7969 | fi | |
7970 | ||
3dd30495 VZ |
7971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-datetime" >&5 |
7972 | $as_echo_n "checking for --${enablestring:-enable}-datetime... " >&6; } | |
7973 | # Check whether --enable-datetime was given. | |
7974 | if test "${enable_datetime+set}" = set; then : | |
7975 | enableval=$enable_datetime; | |
8a7b1113 | 7976 | if test "$enableval" = yes; then |
3dd30495 | 7977 | wx_cv_use_datetime='wxUSE_DATETIME=yes' |
8a7b1113 | 7978 | else |
3dd30495 | 7979 | wx_cv_use_datetime='wxUSE_DATETIME=no' |
8a7b1113 VZ |
7980 | fi |
7981 | ||
7982 | else | |
7983 | ||
3dd30495 | 7984 | wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}" |
8a7b1113 | 7985 | |
47964710 VS |
7986 | fi |
7987 | ||
8a7b1113 | 7988 | |
3dd30495 | 7989 | eval "$wx_cv_use_datetime" |
8a7b1113 | 7990 | |
6e198e97 | 7991 | if test x"$enablestring" = xdisable; then |
3dd30495 | 7992 | if test $wxUSE_DATETIME = no; then |
6e198e97 | 7993 | result=yes |
7ac0e38e VZ |
7994 | else |
7995 | result=no | |
6e198e97 | 7996 | fi |
a848cd7e | 7997 | else |
3dd30495 | 7998 | result=$wxUSE_DATETIME |
a848cd7e SC |
7999 | fi |
8000 | ||
3dd30495 VZ |
8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8002 | $as_echo "$result" >&6; } | |
6e198e97 | 8003 | |
a848cd7e | 8004 | |
077c7880 | 8005 | enablestring= |
6e198e97 | 8006 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8007 | if test -z "$defaultval"; then |
6e198e97 VZ |
8008 | if test x"$enablestring" = xdisable; then |
8009 | defaultval=yes | |
8010 | else | |
8011 | defaultval=no | |
8012 | fi | |
8013 | fi | |
8014 | ||
3dd30495 VZ |
8015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-debugreport" >&5 |
8016 | $as_echo_n "checking for --${enablestring:-enable}-debugreport... " >&6; } | |
8017 | # Check whether --enable-debugreport was given. | |
8018 | if test "${enable_debugreport+set}" = set; then : | |
8019 | enableval=$enable_debugreport; | |
a848cd7e | 8020 | if test "$enableval" = yes; then |
3dd30495 | 8021 | wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' |
a848cd7e | 8022 | else |
3dd30495 | 8023 | wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no' |
a848cd7e SC |
8024 | fi |
8025 | ||
8026 | else | |
8027 | ||
3dd30495 | 8028 | wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}" |
a848cd7e | 8029 | |
47964710 VS |
8030 | fi |
8031 | ||
a848cd7e | 8032 | |
3dd30495 | 8033 | eval "$wx_cv_use_debugreport" |
a848cd7e | 8034 | |
6e198e97 | 8035 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8036 | if test $wxUSE_DEBUGREPORT = no; then |
6e198e97 | 8037 | result=yes |
7ac0e38e VZ |
8038 | else |
8039 | result=no | |
6e198e97 | 8040 | fi |
a848cd7e | 8041 | else |
3dd30495 | 8042 | result=$wxUSE_DEBUGREPORT |
a848cd7e SC |
8043 | fi |
8044 | ||
3dd30495 VZ |
8045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8046 | $as_echo "$result" >&6; } | |
6e198e97 | 8047 | |
a848cd7e | 8048 | |
077c7880 | 8049 | enablestring= |
6e198e97 | 8050 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8051 | if test -z "$defaultval"; then |
6e198e97 VZ |
8052 | if test x"$enablestring" = xdisable; then |
8053 | defaultval=yes | |
8054 | else | |
8055 | defaultval=no | |
8056 | fi | |
8057 | fi | |
8058 | ||
3dd30495 VZ |
8059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dialupman" >&5 |
8060 | $as_echo_n "checking for --${enablestring:-enable}-dialupman... " >&6; } | |
8061 | # Check whether --enable-dialupman was given. | |
8062 | if test "${enable_dialupman+set}" = set; then : | |
8063 | enableval=$enable_dialupman; | |
a848cd7e | 8064 | if test "$enableval" = yes; then |
3dd30495 | 8065 | wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
a848cd7e | 8066 | else |
3dd30495 | 8067 | wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
a848cd7e SC |
8068 | fi |
8069 | ||
8070 | else | |
8071 | ||
3dd30495 | 8072 | wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}" |
a848cd7e | 8073 | |
47964710 VS |
8074 | fi |
8075 | ||
a848cd7e | 8076 | |
3dd30495 | 8077 | eval "$wx_cv_use_dialupman" |
a848cd7e | 8078 | |
6e198e97 | 8079 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8080 | if test $wxUSE_DIALUP_MANAGER = no; then |
6e198e97 | 8081 | result=yes |
7ac0e38e VZ |
8082 | else |
8083 | result=no | |
6e198e97 | 8084 | fi |
a848cd7e | 8085 | else |
3dd30495 | 8086 | result=$wxUSE_DIALUP_MANAGER |
a848cd7e SC |
8087 | fi |
8088 | ||
3dd30495 VZ |
8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8090 | $as_echo "$result" >&6; } | |
6e198e97 | 8091 | |
a848cd7e | 8092 | |
077c7880 | 8093 | enablestring= |
6e198e97 | 8094 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8095 | if test -z "$defaultval"; then |
6e198e97 VZ |
8096 | if test x"$enablestring" = xdisable; then |
8097 | defaultval=yes | |
8098 | else | |
8099 | defaultval=no | |
8100 | fi | |
8101 | fi | |
8102 | ||
3dd30495 VZ |
8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dynlib" >&5 |
8104 | $as_echo_n "checking for --${enablestring:-enable}-dynlib... " >&6; } | |
8105 | # Check whether --enable-dynlib was given. | |
8106 | if test "${enable_dynlib+set}" = set; then : | |
8107 | enableval=$enable_dynlib; | |
a848cd7e | 8108 | if test "$enableval" = yes; then |
3dd30495 | 8109 | wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' |
a848cd7e | 8110 | else |
3dd30495 | 8111 | wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' |
a848cd7e SC |
8112 | fi |
8113 | ||
8114 | else | |
8115 | ||
3dd30495 | 8116 | wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}" |
a848cd7e | 8117 | |
47964710 VS |
8118 | fi |
8119 | ||
a848cd7e | 8120 | |
3dd30495 | 8121 | eval "$wx_cv_use_dynlib" |
a848cd7e | 8122 | |
6e198e97 | 8123 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8124 | if test $wxUSE_DYNLIB_CLASS = no; then |
6e198e97 | 8125 | result=yes |
7ac0e38e VZ |
8126 | else |
8127 | result=no | |
6e198e97 | 8128 | fi |
a848cd7e | 8129 | else |
3dd30495 | 8130 | result=$wxUSE_DYNLIB_CLASS |
4732e2dc VZ |
8131 | fi |
8132 | ||
3dd30495 VZ |
8133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8134 | $as_echo "$result" >&6; } | |
4732e2dc VZ |
8135 | |
8136 | ||
8137 | enablestring= | |
8138 | defaultval=$wxUSE_ALL_FEATURES | |
8139 | if test -z "$defaultval"; then | |
8140 | if test x"$enablestring" = xdisable; then | |
8141 | defaultval=yes | |
8142 | else | |
8143 | defaultval=no | |
8144 | fi | |
8145 | fi | |
8146 | ||
3dd30495 VZ |
8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dynamicloader" >&5 |
8148 | $as_echo_n "checking for --${enablestring:-enable}-dynamicloader... " >&6; } | |
8149 | # Check whether --enable-dynamicloader was given. | |
8150 | if test "${enable_dynamicloader+set}" = set; then : | |
8151 | enableval=$enable_dynamicloader; | |
4732e2dc | 8152 | if test "$enableval" = yes; then |
3dd30495 | 8153 | wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' |
4732e2dc | 8154 | else |
3dd30495 | 8155 | wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' |
4732e2dc VZ |
8156 | fi |
8157 | ||
8158 | else | |
8159 | ||
3dd30495 | 8160 | wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}" |
4732e2dc VZ |
8161 | |
8162 | fi | |
8163 | ||
8164 | ||
3dd30495 | 8165 | eval "$wx_cv_use_dynamicloader" |
4732e2dc VZ |
8166 | |
8167 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8168 | if test $wxUSE_DYNAMIC_LOADER = no; then |
4732e2dc | 8169 | result=yes |
7ac0e38e VZ |
8170 | else |
8171 | result=no | |
4732e2dc VZ |
8172 | fi |
8173 | else | |
3dd30495 | 8174 | result=$wxUSE_DYNAMIC_LOADER |
a848cd7e SC |
8175 | fi |
8176 | ||
3dd30495 VZ |
8177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8178 | $as_echo "$result" >&6; } | |
6e198e97 | 8179 | |
a848cd7e | 8180 | |
077c7880 | 8181 | enablestring= |
6e198e97 | 8182 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8183 | if test -z "$defaultval"; then |
6e198e97 VZ |
8184 | if test x"$enablestring" = xdisable; then |
8185 | defaultval=yes | |
8186 | else | |
8187 | defaultval=no | |
8188 | fi | |
8189 | fi | |
8190 | ||
3dd30495 VZ |
8191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-exceptions" >&5 |
8192 | $as_echo_n "checking for --${enablestring:-enable}-exceptions... " >&6; } | |
8193 | # Check whether --enable-exceptions was given. | |
8194 | if test "${enable_exceptions+set}" = set; then : | |
8195 | enableval=$enable_exceptions; | |
91dea314 | 8196 | if test "$enableval" = yes; then |
3dd30495 | 8197 | wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
91dea314 | 8198 | else |
3dd30495 | 8199 | wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
91dea314 MW |
8200 | fi |
8201 | ||
8202 | else | |
8203 | ||
3dd30495 | 8204 | wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}" |
91dea314 | 8205 | |
47964710 VS |
8206 | fi |
8207 | ||
91dea314 | 8208 | |
3dd30495 | 8209 | eval "$wx_cv_use_exceptions" |
91dea314 | 8210 | |
6e198e97 | 8211 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8212 | if test $wxUSE_EXCEPTIONS = no; then |
6e198e97 | 8213 | result=yes |
7ac0e38e VZ |
8214 | else |
8215 | result=no | |
6e198e97 | 8216 | fi |
91dea314 | 8217 | else |
3dd30495 | 8218 | result=$wxUSE_EXCEPTIONS |
91dea314 MW |
8219 | fi |
8220 | ||
3dd30495 VZ |
8221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8222 | $as_echo "$result" >&6; } | |
6e198e97 | 8223 | |
91dea314 | 8224 | |
077c7880 | 8225 | enablestring= |
6e198e97 | 8226 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8227 | if test -z "$defaultval"; then |
6e198e97 VZ |
8228 | if test x"$enablestring" = xdisable; then |
8229 | defaultval=yes | |
8230 | else | |
8231 | defaultval=no | |
8232 | fi | |
8233 | fi | |
8234 | ||
3dd30495 VZ |
8235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ffile" >&5 |
8236 | $as_echo_n "checking for --${enablestring:-enable}-ffile... " >&6; } | |
8237 | # Check whether --enable-ffile was given. | |
8238 | if test "${enable_ffile+set}" = set; then : | |
8239 | enableval=$enable_ffile; | |
a848cd7e | 8240 | if test "$enableval" = yes; then |
3dd30495 | 8241 | wx_cv_use_ffile='wxUSE_FFILE=yes' |
a848cd7e | 8242 | else |
3dd30495 | 8243 | wx_cv_use_ffile='wxUSE_FFILE=no' |
a848cd7e SC |
8244 | fi |
8245 | ||
8246 | else | |
8247 | ||
3dd30495 | 8248 | wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}" |
a848cd7e | 8249 | |
47964710 VS |
8250 | fi |
8251 | ||
a848cd7e | 8252 | |
3dd30495 | 8253 | eval "$wx_cv_use_ffile" |
a848cd7e | 8254 | |
6e198e97 | 8255 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8256 | if test $wxUSE_FFILE = no; then |
6e198e97 | 8257 | result=yes |
7ac0e38e VZ |
8258 | else |
8259 | result=no | |
6e198e97 | 8260 | fi |
a848cd7e | 8261 | else |
3dd30495 | 8262 | result=$wxUSE_FFILE |
a848cd7e SC |
8263 | fi |
8264 | ||
3dd30495 VZ |
8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8266 | $as_echo "$result" >&6; } | |
a848cd7e SC |
8267 | |
8268 | ||
4732e2dc VZ |
8269 | enablestring= |
8270 | defaultval=$wxUSE_ALL_FEATURES | |
8271 | if test -z "$defaultval"; then | |
8272 | if test x"$enablestring" = xdisable; then | |
8273 | defaultval=yes | |
8274 | else | |
8275 | defaultval=no | |
8276 | fi | |
8277 | fi | |
8278 | ||
3dd30495 VZ |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-file" >&5 |
8280 | $as_echo_n "checking for --${enablestring:-enable}-file... " >&6; } | |
8281 | # Check whether --enable-file was given. | |
8282 | if test "${enable_file+set}" = set; then : | |
8283 | enableval=$enable_file; | |
4732e2dc | 8284 | if test "$enableval" = yes; then |
3dd30495 | 8285 | wx_cv_use_file='wxUSE_FILE=yes' |
4732e2dc | 8286 | else |
3dd30495 | 8287 | wx_cv_use_file='wxUSE_FILE=no' |
4732e2dc VZ |
8288 | fi |
8289 | ||
8290 | else | |
8291 | ||
3dd30495 | 8292 | wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}" |
4732e2dc VZ |
8293 | |
8294 | fi | |
8295 | ||
8296 | ||
3dd30495 | 8297 | eval "$wx_cv_use_file" |
4732e2dc VZ |
8298 | |
8299 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8300 | if test $wxUSE_FILE = no; then |
4732e2dc | 8301 | result=yes |
7ac0e38e VZ |
8302 | else |
8303 | result=no | |
4732e2dc VZ |
8304 | fi |
8305 | else | |
3dd30495 | 8306 | result=$wxUSE_FILE |
4732e2dc VZ |
8307 | fi |
8308 | ||
3dd30495 VZ |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8310 | $as_echo "$result" >&6; } | |
4732e2dc VZ |
8311 | |
8312 | ||
b0fc907f VZ |
8313 | enablestring= |
8314 | defaultval=$wxUSE_ALL_FEATURES | |
238663c1 | 8315 | if test -z "$defaultval"; then |
b0fc907f VZ |
8316 | if test x"$enablestring" = xdisable; then |
8317 | defaultval=yes | |
8318 | else | |
8319 | defaultval=no | |
8320 | fi | |
8321 | fi | |
8322 | ||
3dd30495 VZ |
8323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-filehistory" >&5 |
8324 | $as_echo_n "checking for --${enablestring:-enable}-filehistory... " >&6; } | |
8325 | # Check whether --enable-filehistory was given. | |
8326 | if test "${enable_filehistory+set}" = set; then : | |
8327 | enableval=$enable_filehistory; | |
b0fc907f | 8328 | if test "$enableval" = yes; then |
3dd30495 | 8329 | wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes' |
b0fc907f | 8330 | else |
3dd30495 | 8331 | wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no' |
b0fc907f VZ |
8332 | fi |
8333 | ||
8334 | else | |
8335 | ||
3dd30495 | 8336 | wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}" |
b0fc907f | 8337 | |
47964710 VS |
8338 | fi |
8339 | ||
b0fc907f | 8340 | |
3dd30495 | 8341 | eval "$wx_cv_use_filehistory" |
b0fc907f VZ |
8342 | |
8343 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8344 | if test $wxUSE_FILE_HISTORY = no; then |
b0fc907f | 8345 | result=yes |
7ac0e38e VZ |
8346 | else |
8347 | result=no | |
b0fc907f VZ |
8348 | fi |
8349 | else | |
3dd30495 | 8350 | result=$wxUSE_FILE_HISTORY |
b0fc907f VZ |
8351 | fi |
8352 | ||
3dd30495 VZ |
8353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8354 | $as_echo "$result" >&6; } | |
b0fc907f VZ |
8355 | |
8356 | ||
88cc66f7 VZ |
8357 | enablestring= |
8358 | defaultval=$wxUSE_ALL_FEATURES | |
8359 | if test -z "$defaultval"; then | |
8360 | if test x"$enablestring" = xdisable; then | |
8361 | defaultval=yes | |
8362 | else | |
8363 | defaultval=no | |
8364 | fi | |
8365 | fi | |
8366 | ||
3dd30495 VZ |
8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-filesystem" >&5 |
8368 | $as_echo_n "checking for --${enablestring:-enable}-filesystem... " >&6; } | |
8369 | # Check whether --enable-filesystem was given. | |
8370 | if test "${enable_filesystem+set}" = set; then : | |
8371 | enableval=$enable_filesystem; | |
88cc66f7 | 8372 | if test "$enableval" = yes; then |
3dd30495 | 8373 | wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
88cc66f7 | 8374 | else |
3dd30495 | 8375 | wx_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
88cc66f7 VZ |
8376 | fi |
8377 | ||
8378 | else | |
8379 | ||
3dd30495 | 8380 | wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}" |
88cc66f7 VZ |
8381 | |
8382 | fi | |
8383 | ||
8384 | ||
3dd30495 | 8385 | eval "$wx_cv_use_filesystem" |
88cc66f7 VZ |
8386 | |
8387 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8388 | if test $wxUSE_FILESYSTEM = no; then |
88cc66f7 VZ |
8389 | result=yes |
8390 | else | |
8391 | result=no | |
8392 | fi | |
8393 | else | |
3dd30495 | 8394 | result=$wxUSE_FILESYSTEM |
88cc66f7 VZ |
8395 | fi |
8396 | ||
3dd30495 VZ |
8397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8398 | $as_echo "$result" >&6; } | |
88cc66f7 VZ |
8399 | |
8400 | ||
b550ad2a VZ |
8401 | enablestring= |
8402 | defaultval=$wxUSE_ALL_FEATURES | |
8403 | if test -z "$defaultval"; then | |
8404 | if test x"$enablestring" = xdisable; then | |
8405 | defaultval=yes | |
8406 | else | |
8407 | defaultval=no | |
8408 | fi | |
8409 | fi | |
8410 | ||
3dd30495 VZ |
8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fontenum" >&5 |
8412 | $as_echo_n "checking for --${enablestring:-enable}-fontenum... " >&6; } | |
8413 | # Check whether --enable-fontenum was given. | |
8414 | if test "${enable_fontenum+set}" = set; then : | |
8415 | enableval=$enable_fontenum; | |
b550ad2a | 8416 | if test "$enableval" = yes; then |
3dd30495 | 8417 | wx_cv_use_fontenum='wxUSE_FONTENUM=yes' |
b550ad2a | 8418 | else |
3dd30495 | 8419 | wx_cv_use_fontenum='wxUSE_FONTENUM=no' |
b550ad2a VZ |
8420 | fi |
8421 | ||
8422 | else | |
8423 | ||
3dd30495 | 8424 | wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}" |
b550ad2a VZ |
8425 | |
8426 | fi | |
8427 | ||
8428 | ||
3dd30495 | 8429 | eval "$wx_cv_use_fontenum" |
b550ad2a VZ |
8430 | |
8431 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8432 | if test $wxUSE_FONTENUM = no; then |
b550ad2a VZ |
8433 | result=yes |
8434 | else | |
8435 | result=no | |
8436 | fi | |
8437 | else | |
3dd30495 | 8438 | result=$wxUSE_FONTENUM |
b550ad2a VZ |
8439 | fi |
8440 | ||
3dd30495 VZ |
8441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8442 | $as_echo "$result" >&6; } | |
b550ad2a VZ |
8443 | |
8444 | ||
a12bd55b VZ |
8445 | enablestring= |
8446 | defaultval=$wxUSE_ALL_FEATURES | |
8447 | if test -z "$defaultval"; then | |
8448 | if test x"$enablestring" = xdisable; then | |
8449 | defaultval=yes | |
8450 | else | |
8451 | defaultval=no | |
8452 | fi | |
8453 | fi | |
8454 | ||
3dd30495 VZ |
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fontmap" >&5 |
8456 | $as_echo_n "checking for --${enablestring:-enable}-fontmap... " >&6; } | |
8457 | # Check whether --enable-fontmap was given. | |
8458 | if test "${enable_fontmap+set}" = set; then : | |
8459 | enableval=$enable_fontmap; | |
a12bd55b | 8460 | if test "$enableval" = yes; then |
3dd30495 | 8461 | wx_cv_use_fontmap='wxUSE_FONTMAP=yes' |
a12bd55b | 8462 | else |
3dd30495 | 8463 | wx_cv_use_fontmap='wxUSE_FONTMAP=no' |
a12bd55b VZ |
8464 | fi |
8465 | ||
8466 | else | |
8467 | ||
3dd30495 | 8468 | wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}" |
a12bd55b VZ |
8469 | |
8470 | fi | |
8471 | ||
8472 | ||
3dd30495 | 8473 | eval "$wx_cv_use_fontmap" |
a12bd55b VZ |
8474 | |
8475 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8476 | if test $wxUSE_FONTMAP = no; then |
a12bd55b VZ |
8477 | result=yes |
8478 | else | |
8479 | result=no | |
8480 | fi | |
8481 | else | |
3dd30495 | 8482 | result=$wxUSE_FONTMAP |
a12bd55b VZ |
8483 | fi |
8484 | ||
3dd30495 VZ |
8485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8486 | $as_echo "$result" >&6; } | |
a848cd7e SC |
8487 | |
8488 | ||
077c7880 | 8489 | enablestring= |
6e198e97 | 8490 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8491 | if test -z "$defaultval"; then |
6e198e97 VZ |
8492 | if test x"$enablestring" = xdisable; then |
8493 | defaultval=yes | |
8494 | else | |
8495 | defaultval=no | |
8496 | fi | |
8497 | fi | |
8498 | ||
3dd30495 VZ |
8499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fs_archive" >&5 |
8500 | $as_echo_n "checking for --${enablestring:-enable}-fs_archive... " >&6; } | |
8501 | # Check whether --enable-fs_archive was given. | |
8502 | if test "${enable_fs_archive+set}" = set; then : | |
8503 | enableval=$enable_fs_archive; | |
a848cd7e | 8504 | if test "$enableval" = yes; then |
3dd30495 | 8505 | wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes' |
a848cd7e | 8506 | else |
3dd30495 | 8507 | wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no' |
a848cd7e SC |
8508 | fi |
8509 | ||
8510 | else | |
8511 | ||
3dd30495 | 8512 | wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}" |
a848cd7e | 8513 | |
47964710 VS |
8514 | fi |
8515 | ||
a848cd7e | 8516 | |
3dd30495 | 8517 | eval "$wx_cv_use_fs_archive" |
a848cd7e | 8518 | |
6e198e97 | 8519 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8520 | if test $wxUSE_FS_ARCHIVE = no; then |
6e198e97 | 8521 | result=yes |
7ac0e38e VZ |
8522 | else |
8523 | result=no | |
6e198e97 | 8524 | fi |
a848cd7e | 8525 | else |
3dd30495 | 8526 | result=$wxUSE_FS_ARCHIVE |
a848cd7e SC |
8527 | fi |
8528 | ||
3dd30495 VZ |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8530 | $as_echo "$result" >&6; } | |
6e198e97 | 8531 | |
a848cd7e | 8532 | |
077c7880 | 8533 | enablestring= |
6e198e97 | 8534 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8535 | if test -z "$defaultval"; then |
6e198e97 VZ |
8536 | if test x"$enablestring" = xdisable; then |
8537 | defaultval=yes | |
8538 | else | |
8539 | defaultval=no | |
8540 | fi | |
8541 | fi | |
8542 | ||
3dd30495 VZ |
8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fs_inet" >&5 |
8544 | $as_echo_n "checking for --${enablestring:-enable}-fs_inet... " >&6; } | |
8545 | # Check whether --enable-fs_inet was given. | |
8546 | if test "${enable_fs_inet+set}" = set; then : | |
8547 | enableval=$enable_fs_inet; | |
a848cd7e | 8548 | if test "$enableval" = yes; then |
3dd30495 | 8549 | wx_cv_use_fs_inet='wxUSE_FS_INET=yes' |
a848cd7e | 8550 | else |
3dd30495 | 8551 | wx_cv_use_fs_inet='wxUSE_FS_INET=no' |
a848cd7e SC |
8552 | fi |
8553 | ||
8554 | else | |
8555 | ||
3dd30495 | 8556 | wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}" |
a848cd7e | 8557 | |
47964710 VS |
8558 | fi |
8559 | ||
a848cd7e | 8560 | |
3dd30495 | 8561 | eval "$wx_cv_use_fs_inet" |
a848cd7e | 8562 | |
6e198e97 | 8563 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8564 | if test $wxUSE_FS_INET = no; then |
6e198e97 | 8565 | result=yes |
7ac0e38e VZ |
8566 | else |
8567 | result=no | |
6e198e97 | 8568 | fi |
a848cd7e | 8569 | else |
3dd30495 | 8570 | result=$wxUSE_FS_INET |
a848cd7e SC |
8571 | fi |
8572 | ||
3dd30495 VZ |
8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8574 | $as_echo "$result" >&6; } | |
a848cd7e | 8575 | |
a848cd7e | 8576 | |
3dd30495 VZ |
8577 | enablestring= |
8578 | defaultval=$wxUSE_ALL_FEATURES | |
238663c1 | 8579 | if test -z "$defaultval"; then |
6e198e97 VZ |
8580 | if test x"$enablestring" = xdisable; then |
8581 | defaultval=yes | |
8582 | else | |
8583 | defaultval=no | |
8584 | fi | |
8585 | fi | |
8586 | ||
3dd30495 VZ |
8587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fs_zip" >&5 |
8588 | $as_echo_n "checking for --${enablestring:-enable}-fs_zip... " >&6; } | |
8589 | # Check whether --enable-fs_zip was given. | |
8590 | if test "${enable_fs_zip+set}" = set; then : | |
8591 | enableval=$enable_fs_zip; | |
a848cd7e | 8592 | if test "$enableval" = yes; then |
3dd30495 | 8593 | wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a848cd7e | 8594 | else |
3dd30495 | 8595 | wx_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a848cd7e SC |
8596 | fi |
8597 | ||
8598 | else | |
8599 | ||
3dd30495 | 8600 | wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}" |
a848cd7e | 8601 | |
47964710 VS |
8602 | fi |
8603 | ||
a848cd7e | 8604 | |
3dd30495 | 8605 | eval "$wx_cv_use_fs_zip" |
a848cd7e | 8606 | |
6e198e97 | 8607 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8608 | if test $wxUSE_FS_ZIP = no; then |
6e198e97 | 8609 | result=yes |
7ac0e38e VZ |
8610 | else |
8611 | result=no | |
6e198e97 | 8612 | fi |
a848cd7e | 8613 | else |
3dd30495 | 8614 | result=$wxUSE_FS_ZIP |
a848cd7e SC |
8615 | fi |
8616 | ||
3dd30495 VZ |
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8618 | $as_echo "$result" >&6; } | |
a848cd7e | 8619 | |
a848cd7e | 8620 | |
f5bdfc69 VZ |
8621 | enablestring= |
8622 | defaultval=$wxUSE_ALL_FEATURES | |
8623 | if test -z "$defaultval"; then | |
8624 | if test x"$enablestring" = xdisable; then | |
8625 | defaultval=yes | |
8626 | else | |
8627 | defaultval=no | |
8628 | fi | |
8629 | fi | |
8630 | ||
3dd30495 VZ |
8631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fswatcher" >&5 |
8632 | $as_echo_n "checking for --${enablestring:-enable}-fswatcher... " >&6; } | |
8633 | # Check whether --enable-fswatcher was given. | |
8634 | if test "${enable_fswatcher+set}" = set; then : | |
8635 | enableval=$enable_fswatcher; | |
f5bdfc69 | 8636 | if test "$enableval" = yes; then |
3dd30495 | 8637 | wx_cv_use_fswatcher='wxUSE_FSWATCHER=yes' |
f5bdfc69 | 8638 | else |
3dd30495 | 8639 | wx_cv_use_fswatcher='wxUSE_FSWATCHER=no' |
f5bdfc69 VZ |
8640 | fi |
8641 | ||
8642 | else | |
8643 | ||
3dd30495 | 8644 | wx_cv_use_fswatcher='wxUSE_FSWATCHER=${'DEFAULT_wxUSE_FSWATCHER":-$defaultval}" |
f5bdfc69 VZ |
8645 | |
8646 | fi | |
8647 | ||
8648 | ||
3dd30495 | 8649 | eval "$wx_cv_use_fswatcher" |
f5bdfc69 VZ |
8650 | |
8651 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8652 | if test $wxUSE_FSWATCHER = no; then |
f5bdfc69 VZ |
8653 | result=yes |
8654 | else | |
8655 | result=no | |
8656 | fi | |
8657 | else | |
3dd30495 | 8658 | result=$wxUSE_FSWATCHER |
f5bdfc69 VZ |
8659 | fi |
8660 | ||
3dd30495 VZ |
8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8662 | $as_echo "$result" >&6; } | |
f5bdfc69 VZ |
8663 | |
8664 | ||
077c7880 | 8665 | enablestring= |
6e198e97 | 8666 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8667 | if test -z "$defaultval"; then |
6e198e97 VZ |
8668 | if test x"$enablestring" = xdisable; then |
8669 | defaultval=yes | |
8670 | else | |
8671 | defaultval=no | |
8672 | fi | |
8673 | fi | |
8674 | ||
3dd30495 VZ |
8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-geometry" >&5 |
8676 | $as_echo_n "checking for --${enablestring:-enable}-geometry... " >&6; } | |
8677 | # Check whether --enable-geometry was given. | |
8678 | if test "${enable_geometry+set}" = set; then : | |
8679 | enableval=$enable_geometry; | |
a848cd7e | 8680 | if test "$enableval" = yes; then |
3dd30495 | 8681 | wx_cv_use_geometry='wxUSE_GEOMETRY=yes' |
a848cd7e | 8682 | else |
3dd30495 | 8683 | wx_cv_use_geometry='wxUSE_GEOMETRY=no' |
a848cd7e SC |
8684 | fi |
8685 | ||
8686 | else | |
8687 | ||
3dd30495 | 8688 | wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}" |
a848cd7e | 8689 | |
47964710 VS |
8690 | fi |
8691 | ||
a848cd7e | 8692 | |
3dd30495 | 8693 | eval "$wx_cv_use_geometry" |
a848cd7e | 8694 | |
6e198e97 | 8695 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8696 | if test $wxUSE_GEOMETRY = no; then |
6e198e97 | 8697 | result=yes |
7ac0e38e VZ |
8698 | else |
8699 | result=no | |
6e198e97 | 8700 | fi |
a848cd7e | 8701 | else |
3dd30495 | 8702 | result=$wxUSE_GEOMETRY |
a848cd7e SC |
8703 | fi |
8704 | ||
3dd30495 VZ |
8705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8706 | $as_echo "$result" >&6; } | |
6e198e97 | 8707 | |
a848cd7e | 8708 | |
077c7880 | 8709 | enablestring= |
6e198e97 | 8710 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8711 | if test -z "$defaultval"; then |
6e198e97 VZ |
8712 | if test x"$enablestring" = xdisable; then |
8713 | defaultval=yes | |
8714 | else | |
8715 | defaultval=no | |
8716 | fi | |
8717 | fi | |
8718 | ||
3dd30495 VZ |
8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-log" >&5 |
8720 | $as_echo_n "checking for --${enablestring:-enable}-log... " >&6; } | |
8721 | # Check whether --enable-log was given. | |
8722 | if test "${enable_log+set}" = set; then : | |
8723 | enableval=$enable_log; | |
3ea50042 | 8724 | if test "$enableval" = yes; then |
3dd30495 | 8725 | wx_cv_use_log='wxUSE_LOG=yes' |
3ea50042 | 8726 | else |
3dd30495 | 8727 | wx_cv_use_log='wxUSE_LOG=no' |
3ea50042 VZ |
8728 | fi |
8729 | ||
8730 | else | |
8731 | ||
3dd30495 | 8732 | wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}" |
3ea50042 | 8733 | |
47964710 VS |
8734 | fi |
8735 | ||
3ea50042 | 8736 | |
3dd30495 | 8737 | eval "$wx_cv_use_log" |
3ea50042 | 8738 | |
6e198e97 | 8739 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8740 | if test $wxUSE_LOG = no; then |
6e198e97 | 8741 | result=yes |
7ac0e38e VZ |
8742 | else |
8743 | result=no | |
6e198e97 | 8744 | fi |
3ea50042 | 8745 | else |
3dd30495 | 8746 | result=$wxUSE_LOG |
3ea50042 VZ |
8747 | fi |
8748 | ||
3dd30495 VZ |
8749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8750 | $as_echo "$result" >&6; } | |
6e198e97 | 8751 | |
3ea50042 | 8752 | |
ea11bf3a VZ |
8753 | enablestring= |
8754 | defaultval=$wxUSE_ALL_FEATURES | |
8755 | if test -z "$defaultval"; then | |
8756 | if test x"$enablestring" = xdisable; then | |
8757 | defaultval=yes | |
8758 | else | |
8759 | defaultval=no | |
8760 | fi | |
8761 | fi | |
8762 | ||
3dd30495 VZ |
8763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-longlong" >&5 |
8764 | $as_echo_n "checking for --${enablestring:-enable}-longlong... " >&6; } | |
8765 | # Check whether --enable-longlong was given. | |
8766 | if test "${enable_longlong+set}" = set; then : | |
8767 | enableval=$enable_longlong; | |
ea11bf3a | 8768 | if test "$enableval" = yes; then |
3dd30495 | 8769 | wx_cv_use_longlong='wxUSE_LONGLONG=yes' |
ea11bf3a | 8770 | else |
3dd30495 | 8771 | wx_cv_use_longlong='wxUSE_LONGLONG=no' |
ea11bf3a VZ |
8772 | fi |
8773 | ||
8774 | else | |
8775 | ||
3dd30495 | 8776 | wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}" |
ea11bf3a VZ |
8777 | |
8778 | fi | |
8779 | ||
8780 | ||
3dd30495 | 8781 | eval "$wx_cv_use_longlong" |
ea11bf3a VZ |
8782 | |
8783 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8784 | if test $wxUSE_LONGLONG = no; then |
ea11bf3a VZ |
8785 | result=yes |
8786 | else | |
8787 | result=no | |
8788 | fi | |
8789 | else | |
3dd30495 | 8790 | result=$wxUSE_LONGLONG |
ea11bf3a VZ |
8791 | fi |
8792 | ||
3dd30495 VZ |
8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8794 | $as_echo "$result" >&6; } | |
ea11bf3a VZ |
8795 | |
8796 | ||
2e9b5717 VZ |
8797 | enablestring= |
8798 | defaultval=$wxUSE_ALL_FEATURES | |
8799 | if test -z "$defaultval"; then | |
8800 | if test x"$enablestring" = xdisable; then | |
8801 | defaultval=yes | |
8802 | else | |
8803 | defaultval=no | |
8804 | fi | |
8805 | fi | |
8806 | ||
3dd30495 VZ |
8807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-mimetype" >&5 |
8808 | $as_echo_n "checking for --${enablestring:-enable}-mimetype... " >&6; } | |
8809 | # Check whether --enable-mimetype was given. | |
8810 | if test "${enable_mimetype+set}" = set; then : | |
8811 | enableval=$enable_mimetype; | |
2e9b5717 | 8812 | if test "$enableval" = yes; then |
3dd30495 | 8813 | wx_cv_use_mimetype='wxUSE_MIMETYPE=yes' |
2e9b5717 | 8814 | else |
3dd30495 | 8815 | wx_cv_use_mimetype='wxUSE_MIMETYPE=no' |
2e9b5717 VZ |
8816 | fi |
8817 | ||
8818 | else | |
8819 | ||
3dd30495 | 8820 | wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}" |
2e9b5717 VZ |
8821 | |
8822 | fi | |
8823 | ||
8824 | ||
3dd30495 | 8825 | eval "$wx_cv_use_mimetype" |
2e9b5717 VZ |
8826 | |
8827 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8828 | if test $wxUSE_MIMETYPE = no; then |
2e9b5717 VZ |
8829 | result=yes |
8830 | else | |
8831 | result=no | |
8832 | fi | |
8833 | else | |
3dd30495 | 8834 | result=$wxUSE_MIMETYPE |
2e9b5717 VZ |
8835 | fi |
8836 | ||
3dd30495 VZ |
8837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8838 | $as_echo "$result" >&6; } | |
2e9b5717 VZ |
8839 | |
8840 | ||
c1d2466a VZ |
8841 | enablestring= |
8842 | defaultval=$wxUSE_ALL_FEATURES | |
8843 | if test -z "$defaultval"; then | |
8844 | if test x"$enablestring" = xdisable; then | |
8845 | defaultval=yes | |
8846 | else | |
8847 | defaultval=no | |
8848 | fi | |
8849 | fi | |
8850 | ||
3dd30495 VZ |
8851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-printfposparam" >&5 |
8852 | $as_echo_n "checking for --${enablestring:-enable}-printfposparam... " >&6; } | |
8853 | # Check whether --enable-printfposparam was given. | |
8854 | if test "${enable_printfposparam+set}" = set; then : | |
8855 | enableval=$enable_printfposparam; | |
c1d2466a | 8856 | if test "$enableval" = yes; then |
3dd30495 | 8857 | wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes' |
c1d2466a | 8858 | else |
3dd30495 | 8859 | wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no' |
c1d2466a VZ |
8860 | fi |
8861 | ||
8862 | else | |
8863 | ||
3dd30495 | 8864 | wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}" |
c1d2466a VZ |
8865 | |
8866 | fi | |
8867 | ||
8868 | ||
3dd30495 | 8869 | eval "$wx_cv_use_printfposparam" |
c1d2466a VZ |
8870 | |
8871 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 8872 | if test $wxUSE_PRINTF_POS_PARAMS = no; then |
c1d2466a VZ |
8873 | result=yes |
8874 | else | |
8875 | result=no | |
8876 | fi | |
8877 | else | |
3dd30495 | 8878 | result=$wxUSE_PRINTF_POS_PARAMS |
c1d2466a VZ |
8879 | fi |
8880 | ||
3dd30495 VZ |
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8882 | $as_echo "$result" >&6; } | |
c1d2466a VZ |
8883 | |
8884 | ||
077c7880 | 8885 | enablestring= |
6e198e97 | 8886 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8887 | if test -z "$defaultval"; then |
6e198e97 VZ |
8888 | if test x"$enablestring" = xdisable; then |
8889 | defaultval=yes | |
8890 | else | |
8891 | defaultval=no | |
8892 | fi | |
8893 | fi | |
8894 | ||
3dd30495 VZ |
8895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-snglinst" >&5 |
8896 | $as_echo_n "checking for --${enablestring:-enable}-snglinst... " >&6; } | |
8897 | # Check whether --enable-snglinst was given. | |
8898 | if test "${enable_snglinst+set}" = set; then : | |
8899 | enableval=$enable_snglinst; | |
a848cd7e | 8900 | if test "$enableval" = yes; then |
3dd30495 | 8901 | wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
a848cd7e | 8902 | else |
3dd30495 | 8903 | wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
a848cd7e SC |
8904 | fi |
8905 | ||
8906 | else | |
8907 | ||
3dd30495 | 8908 | wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}" |
a848cd7e | 8909 | |
47964710 VS |
8910 | fi |
8911 | ||
a848cd7e | 8912 | |
3dd30495 | 8913 | eval "$wx_cv_use_snglinst" |
a848cd7e | 8914 | |
6e198e97 | 8915 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8916 | if test $wxUSE_SNGLINST_CHECKER = no; then |
6e198e97 | 8917 | result=yes |
7ac0e38e VZ |
8918 | else |
8919 | result=no | |
6e198e97 | 8920 | fi |
a848cd7e | 8921 | else |
3dd30495 | 8922 | result=$wxUSE_SNGLINST_CHECKER |
a848cd7e SC |
8923 | fi |
8924 | ||
3dd30495 VZ |
8925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8926 | $as_echo "$result" >&6; } | |
6e198e97 | 8927 | |
a848cd7e | 8928 | |
077c7880 | 8929 | enablestring= |
6e198e97 | 8930 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8931 | if test -z "$defaultval"; then |
6e198e97 VZ |
8932 | if test x"$enablestring" = xdisable; then |
8933 | defaultval=yes | |
8934 | else | |
8935 | defaultval=no | |
8936 | fi | |
8937 | fi | |
8938 | ||
3dd30495 VZ |
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-sound" >&5 |
8940 | $as_echo_n "checking for --${enablestring:-enable}-sound... " >&6; } | |
8941 | # Check whether --enable-sound was given. | |
8942 | if test "${enable_sound+set}" = set; then : | |
8943 | enableval=$enable_sound; | |
a848cd7e | 8944 | if test "$enableval" = yes; then |
3dd30495 | 8945 | wx_cv_use_sound='wxUSE_SOUND=yes' |
a848cd7e | 8946 | else |
3dd30495 | 8947 | wx_cv_use_sound='wxUSE_SOUND=no' |
a848cd7e SC |
8948 | fi |
8949 | ||
8950 | else | |
8951 | ||
3dd30495 | 8952 | wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}" |
a848cd7e | 8953 | |
47964710 VS |
8954 | fi |
8955 | ||
a848cd7e | 8956 | |
3dd30495 | 8957 | eval "$wx_cv_use_sound" |
a848cd7e | 8958 | |
6e198e97 | 8959 | if test x"$enablestring" = xdisable; then |
3dd30495 | 8960 | if test $wxUSE_SOUND = no; then |
6e198e97 | 8961 | result=yes |
7ac0e38e VZ |
8962 | else |
8963 | result=no | |
6e198e97 | 8964 | fi |
a848cd7e | 8965 | else |
3dd30495 | 8966 | result=$wxUSE_SOUND |
a848cd7e SC |
8967 | fi |
8968 | ||
3dd30495 VZ |
8969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
8970 | $as_echo "$result" >&6; } | |
6e198e97 | 8971 | |
a848cd7e | 8972 | |
077c7880 | 8973 | enablestring= |
6e198e97 | 8974 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 8975 | if test -z "$defaultval"; then |
6e198e97 VZ |
8976 | if test x"$enablestring" = xdisable; then |
8977 | defaultval=yes | |
8978 | else | |
8979 | defaultval=no | |
8980 | fi | |
8981 | fi | |
8982 | ||
3dd30495 VZ |
8983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-stdpaths" >&5 |
8984 | $as_echo_n "checking for --${enablestring:-enable}-stdpaths... " >&6; } | |
8985 | # Check whether --enable-stdpaths was given. | |
8986 | if test "${enable_stdpaths+set}" = set; then : | |
8987 | enableval=$enable_stdpaths; | |
95a46303 | 8988 | if test "$enableval" = yes; then |
3dd30495 | 8989 | wx_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
95a46303 | 8990 | else |
3dd30495 | 8991 | wx_cv_use_stdpaths='wxUSE_STDPATHS=no' |
95a46303 RR |
8992 | fi |
8993 | ||
8994 | else | |
8995 | ||
3dd30495 | 8996 | wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}" |
95a46303 | 8997 | |
47964710 VS |
8998 | fi |
8999 | ||
95a46303 | 9000 | |
3dd30495 | 9001 | eval "$wx_cv_use_stdpaths" |
95a46303 | 9002 | |
6e198e97 | 9003 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9004 | if test $wxUSE_STDPATHS = no; then |
6e198e97 | 9005 | result=yes |
7ac0e38e VZ |
9006 | else |
9007 | result=no | |
6e198e97 | 9008 | fi |
95a46303 | 9009 | else |
3dd30495 | 9010 | result=$wxUSE_STDPATHS |
95a46303 RR |
9011 | fi |
9012 | ||
3dd30495 VZ |
9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9014 | $as_echo "$result" >&6; } | |
6e198e97 | 9015 | |
95a46303 | 9016 | |
077c7880 | 9017 | enablestring= |
6e198e97 | 9018 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9019 | if test -z "$defaultval"; then |
6e198e97 VZ |
9020 | if test x"$enablestring" = xdisable; then |
9021 | defaultval=yes | |
9022 | else | |
9023 | defaultval=no | |
9024 | fi | |
9025 | fi | |
9026 | ||
3dd30495 VZ |
9027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-stopwatch" >&5 |
9028 | $as_echo_n "checking for --${enablestring:-enable}-stopwatch... " >&6; } | |
9029 | # Check whether --enable-stopwatch was given. | |
9030 | if test "${enable_stopwatch+set}" = set; then : | |
9031 | enableval=$enable_stopwatch; | |
a848cd7e | 9032 | if test "$enableval" = yes; then |
3dd30495 | 9033 | wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
a848cd7e | 9034 | else |
3dd30495 | 9035 | wx_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
a848cd7e SC |
9036 | fi |
9037 | ||
9038 | else | |
9039 | ||
3dd30495 | 9040 | wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}" |
a848cd7e | 9041 | |
47964710 VS |
9042 | fi |
9043 | ||
a848cd7e | 9044 | |
3dd30495 | 9045 | eval "$wx_cv_use_stopwatch" |
a848cd7e | 9046 | |
6e198e97 | 9047 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9048 | if test $wxUSE_STOPWATCH = no; then |
6e198e97 | 9049 | result=yes |
7ac0e38e VZ |
9050 | else |
9051 | result=no | |
6e198e97 | 9052 | fi |
a848cd7e | 9053 | else |
3dd30495 | 9054 | result=$wxUSE_STOPWATCH |
a848cd7e SC |
9055 | fi |
9056 | ||
3dd30495 VZ |
9057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9058 | $as_echo "$result" >&6; } | |
6e198e97 | 9059 | |
a848cd7e | 9060 | |
077c7880 | 9061 | enablestring= |
6e198e97 | 9062 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9063 | if test -z "$defaultval"; then |
6e198e97 VZ |
9064 | if test x"$enablestring" = xdisable; then |
9065 | defaultval=yes | |
9066 | else | |
9067 | defaultval=no | |
9068 | fi | |
9069 | fi | |
9070 | ||
3dd30495 VZ |
9071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-streams" >&5 |
9072 | $as_echo_n "checking for --${enablestring:-enable}-streams... " >&6; } | |
9073 | # Check whether --enable-streams was given. | |
9074 | if test "${enable_streams+set}" = set; then : | |
9075 | enableval=$enable_streams; | |
a848cd7e | 9076 | if test "$enableval" = yes; then |
3dd30495 | 9077 | wx_cv_use_streams='wxUSE_STREAMS=yes' |
a848cd7e | 9078 | else |
3dd30495 | 9079 | wx_cv_use_streams='wxUSE_STREAMS=no' |
a848cd7e SC |
9080 | fi |
9081 | ||
9082 | else | |
9083 | ||
3dd30495 | 9084 | wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}" |
a848cd7e | 9085 | |
47964710 VS |
9086 | fi |
9087 | ||
a848cd7e | 9088 | |
3dd30495 | 9089 | eval "$wx_cv_use_streams" |
a848cd7e | 9090 | |
6e198e97 | 9091 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9092 | if test $wxUSE_STREAMS = no; then |
6e198e97 | 9093 | result=yes |
7ac0e38e VZ |
9094 | else |
9095 | result=no | |
6e198e97 | 9096 | fi |
a848cd7e | 9097 | else |
3dd30495 | 9098 | result=$wxUSE_STREAMS |
a848cd7e SC |
9099 | fi |
9100 | ||
3dd30495 VZ |
9101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9102 | $as_echo "$result" >&6; } | |
6e198e97 | 9103 | |
a848cd7e | 9104 | |
077c7880 | 9105 | enablestring= |
6e198e97 | 9106 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9107 | if test -z "$defaultval"; then |
6e198e97 VZ |
9108 | if test x"$enablestring" = xdisable; then |
9109 | defaultval=yes | |
9110 | else | |
9111 | defaultval=no | |
9112 | fi | |
9113 | fi | |
9114 | ||
3dd30495 VZ |
9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-sysoptions" >&5 |
9116 | $as_echo_n "checking for --${enablestring:-enable}-sysoptions... " >&6; } | |
9117 | # Check whether --enable-sysoptions was given. | |
9118 | if test "${enable_sysoptions+set}" = set; then : | |
9119 | enableval=$enable_sysoptions; | |
a848cd7e | 9120 | if test "$enableval" = yes; then |
3dd30495 | 9121 | wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=yes' |
a848cd7e | 9122 | else |
3dd30495 | 9123 | wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=no' |
a848cd7e SC |
9124 | fi |
9125 | ||
9126 | else | |
9127 | ||
3dd30495 | 9128 | wx_cv_use_sysoptions='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}" |
a848cd7e | 9129 | |
47964710 VS |
9130 | fi |
9131 | ||
a848cd7e | 9132 | |
3dd30495 | 9133 | eval "$wx_cv_use_sysoptions" |
a848cd7e | 9134 | |
6e198e97 | 9135 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9136 | if test $wxUSE_SYSTEM_OPTIONS = no; then |
6e198e97 | 9137 | result=yes |
7ac0e38e VZ |
9138 | else |
9139 | result=no | |
6e198e97 | 9140 | fi |
a848cd7e | 9141 | else |
3dd30495 | 9142 | result=$wxUSE_SYSTEM_OPTIONS |
a848cd7e SC |
9143 | fi |
9144 | ||
3dd30495 VZ |
9145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9146 | $as_echo "$result" >&6; } | |
6e198e97 | 9147 | |
a848cd7e | 9148 | |
077c7880 | 9149 | enablestring= |
6e198e97 | 9150 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9151 | if test -z "$defaultval"; then |
6e198e97 VZ |
9152 | if test x"$enablestring" = xdisable; then |
9153 | defaultval=yes | |
9154 | else | |
9155 | defaultval=no | |
9156 | fi | |
9157 | fi | |
9158 | ||
3dd30495 VZ |
9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-tarstream" >&5 |
9160 | $as_echo_n "checking for --${enablestring:-enable}-tarstream... " >&6; } | |
9161 | # Check whether --enable-tarstream was given. | |
9162 | if test "${enable_tarstream+set}" = set; then : | |
9163 | enableval=$enable_tarstream; | |
a848cd7e | 9164 | if test "$enableval" = yes; then |
3dd30495 | 9165 | wx_cv_use_tarstream='wxUSE_TARSTREAM=yes' |
a848cd7e | 9166 | else |
3dd30495 | 9167 | wx_cv_use_tarstream='wxUSE_TARSTREAM=no' |
a848cd7e SC |
9168 | fi |
9169 | ||
9170 | else | |
9171 | ||
3dd30495 | 9172 | wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}" |
a848cd7e | 9173 | |
47964710 VS |
9174 | fi |
9175 | ||
a848cd7e | 9176 | |
3dd30495 | 9177 | eval "$wx_cv_use_tarstream" |
a848cd7e | 9178 | |
6e198e97 | 9179 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9180 | if test $wxUSE_TARSTREAM = no; then |
6e198e97 | 9181 | result=yes |
7ac0e38e VZ |
9182 | else |
9183 | result=no | |
6e198e97 | 9184 | fi |
a848cd7e | 9185 | else |
3dd30495 | 9186 | result=$wxUSE_TARSTREAM |
a848cd7e SC |
9187 | fi |
9188 | ||
3dd30495 VZ |
9189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9190 | $as_echo "$result" >&6; } | |
6e198e97 | 9191 | |
a848cd7e | 9192 | |
077c7880 | 9193 | enablestring= |
6e198e97 | 9194 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9195 | if test -z "$defaultval"; then |
6e198e97 VZ |
9196 | if test x"$enablestring" = xdisable; then |
9197 | defaultval=yes | |
9198 | else | |
9199 | defaultval=no | |
9200 | fi | |
9201 | fi | |
9202 | ||
3dd30495 VZ |
9203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-textbuf" >&5 |
9204 | $as_echo_n "checking for --${enablestring:-enable}-textbuf... " >&6; } | |
9205 | # Check whether --enable-textbuf was given. | |
9206 | if test "${enable_textbuf+set}" = set; then : | |
9207 | enableval=$enable_textbuf; | |
a848cd7e | 9208 | if test "$enableval" = yes; then |
3dd30495 | 9209 | wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
a848cd7e | 9210 | else |
3dd30495 | 9211 | wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
a848cd7e SC |
9212 | fi |
9213 | ||
9214 | else | |
9215 | ||
3dd30495 | 9216 | wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}" |
a848cd7e | 9217 | |
47964710 VS |
9218 | fi |
9219 | ||
a848cd7e | 9220 | |
3dd30495 | 9221 | eval "$wx_cv_use_textbuf" |
a848cd7e | 9222 | |
6e198e97 | 9223 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9224 | if test $wxUSE_TEXTBUFFER = no; then |
6e198e97 | 9225 | result=yes |
7ac0e38e VZ |
9226 | else |
9227 | result=no | |
6e198e97 | 9228 | fi |
a848cd7e | 9229 | else |
3dd30495 | 9230 | result=$wxUSE_TEXTBUFFER |
a848cd7e SC |
9231 | fi |
9232 | ||
3dd30495 VZ |
9233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9234 | $as_echo "$result" >&6; } | |
6e198e97 | 9235 | |
a848cd7e | 9236 | |
077c7880 | 9237 | enablestring= |
6e198e97 | 9238 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9239 | if test -z "$defaultval"; then |
6e198e97 VZ |
9240 | if test x"$enablestring" = xdisable; then |
9241 | defaultval=yes | |
9242 | else | |
9243 | defaultval=no | |
9244 | fi | |
9245 | fi | |
9246 | ||
3dd30495 VZ |
9247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-textfile" >&5 |
9248 | $as_echo_n "checking for --${enablestring:-enable}-textfile... " >&6; } | |
9249 | # Check whether --enable-textfile was given. | |
9250 | if test "${enable_textfile+set}" = set; then : | |
9251 | enableval=$enable_textfile; | |
92bbdbcd | 9252 | if test "$enableval" = yes; then |
3dd30495 | 9253 | wx_cv_use_textfile='wxUSE_TEXTFILE=yes' |
92bbdbcd | 9254 | else |
3dd30495 | 9255 | wx_cv_use_textfile='wxUSE_TEXTFILE=no' |
92bbdbcd WS |
9256 | fi |
9257 | ||
9258 | else | |
9259 | ||
3dd30495 | 9260 | wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}" |
92bbdbcd | 9261 | |
47964710 VS |
9262 | fi |
9263 | ||
92bbdbcd | 9264 | |
3dd30495 | 9265 | eval "$wx_cv_use_textfile" |
92bbdbcd | 9266 | |
6e198e97 | 9267 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9268 | if test $wxUSE_TEXTFILE = no; then |
6e198e97 | 9269 | result=yes |
7ac0e38e VZ |
9270 | else |
9271 | result=no | |
6e198e97 | 9272 | fi |
92bbdbcd | 9273 | else |
3dd30495 | 9274 | result=$wxUSE_TEXTFILE |
92bbdbcd WS |
9275 | fi |
9276 | ||
3dd30495 VZ |
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9278 | $as_echo "$result" >&6; } | |
6e198e97 | 9279 | |
92bbdbcd | 9280 | |
077c7880 | 9281 | enablestring= |
6e198e97 | 9282 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9283 | if test -z "$defaultval"; then |
6e198e97 VZ |
9284 | if test x"$enablestring" = xdisable; then |
9285 | defaultval=yes | |
9286 | else | |
9287 | defaultval=no | |
9288 | fi | |
9289 | fi | |
9290 | ||
3dd30495 VZ |
9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-timer" >&5 |
9292 | $as_echo_n "checking for --${enablestring:-enable}-timer... " >&6; } | |
9293 | # Check whether --enable-timer was given. | |
9294 | if test "${enable_timer+set}" = set; then : | |
9295 | enableval=$enable_timer; | |
bd915ace | 9296 | if test "$enableval" = yes; then |
3dd30495 | 9297 | wx_cv_use_timer='wxUSE_TIMER=yes' |
bd915ace | 9298 | else |
3dd30495 | 9299 | wx_cv_use_timer='wxUSE_TIMER=no' |
bd915ace RR |
9300 | fi |
9301 | ||
9302 | else | |
9303 | ||
3dd30495 | 9304 | wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}" |
bd915ace | 9305 | |
47964710 VS |
9306 | fi |
9307 | ||
bd915ace | 9308 | |
3dd30495 | 9309 | eval "$wx_cv_use_timer" |
bd915ace | 9310 | |
6e198e97 | 9311 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9312 | if test $wxUSE_TIMER = no; then |
6e198e97 | 9313 | result=yes |
7ac0e38e VZ |
9314 | else |
9315 | result=no | |
6e198e97 | 9316 | fi |
bd915ace | 9317 | else |
3dd30495 | 9318 | result=$wxUSE_TIMER |
bd915ace RR |
9319 | fi |
9320 | ||
3dd30495 VZ |
9321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9322 | $as_echo "$result" >&6; } | |
6e198e97 | 9323 | |
bd915ace | 9324 | |
077c7880 | 9325 | enablestring= |
6e198e97 | 9326 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9327 | if test -z "$defaultval"; then |
6e198e97 VZ |
9328 | if test x"$enablestring" = xdisable; then |
9329 | defaultval=yes | |
9330 | else | |
9331 | defaultval=no | |
9332 | fi | |
9333 | fi | |
9334 | ||
3dd30495 VZ |
9335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-variant" >&5 |
9336 | $as_echo_n "checking for --${enablestring:-enable}-variant... " >&6; } | |
9337 | # Check whether --enable-variant was given. | |
9338 | if test "${enable_variant+set}" = set; then : | |
9339 | enableval=$enable_variant; | |
e9263684 | 9340 | if test "$enableval" = yes; then |
3dd30495 | 9341 | wx_cv_use_variant='wxUSE_VARIANT=yes' |
e9263684 | 9342 | else |
3dd30495 | 9343 | wx_cv_use_variant='wxUSE_VARIANT=no' |
e9263684 VZ |
9344 | fi |
9345 | ||
9346 | else | |
9347 | ||
3dd30495 | 9348 | wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}" |
e9263684 | 9349 | |
47964710 VS |
9350 | fi |
9351 | ||
e9263684 | 9352 | |
3dd30495 | 9353 | eval "$wx_cv_use_variant" |
e9263684 | 9354 | |
6e198e97 | 9355 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9356 | if test $wxUSE_VARIANT = no; then |
6e198e97 | 9357 | result=yes |
7ac0e38e VZ |
9358 | else |
9359 | result=no | |
6e198e97 | 9360 | fi |
e9263684 | 9361 | else |
3dd30495 | 9362 | result=$wxUSE_VARIANT |
e9263684 VZ |
9363 | fi |
9364 | ||
3dd30495 VZ |
9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9366 | $as_echo "$result" >&6; } | |
6e198e97 | 9367 | |
e9263684 | 9368 | |
077c7880 | 9369 | enablestring= |
6e198e97 | 9370 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9371 | if test -z "$defaultval"; then |
6e198e97 VZ |
9372 | if test x"$enablestring" = xdisable; then |
9373 | defaultval=yes | |
9374 | else | |
9375 | defaultval=no | |
9376 | fi | |
9377 | fi | |
9378 | ||
3dd30495 VZ |
9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-zipstream" >&5 |
9380 | $as_echo_n "checking for --${enablestring:-enable}-zipstream... " >&6; } | |
9381 | # Check whether --enable-zipstream was given. | |
9382 | if test "${enable_zipstream+set}" = set; then : | |
9383 | enableval=$enable_zipstream; | |
a848cd7e | 9384 | if test "$enableval" = yes; then |
3dd30495 | 9385 | wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
a848cd7e | 9386 | else |
3dd30495 | 9387 | wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
a848cd7e SC |
9388 | fi |
9389 | ||
9390 | else | |
9391 | ||
3dd30495 | 9392 | wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}" |
a848cd7e | 9393 | |
47964710 VS |
9394 | fi |
9395 | ||
a848cd7e | 9396 | |
3dd30495 | 9397 | eval "$wx_cv_use_zipstream" |
a848cd7e | 9398 | |
6e198e97 | 9399 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9400 | if test $wxUSE_ZIPSTREAM = no; then |
6e198e97 | 9401 | result=yes |
7ac0e38e VZ |
9402 | else |
9403 | result=no | |
6e198e97 | 9404 | fi |
a848cd7e | 9405 | else |
3dd30495 | 9406 | result=$wxUSE_ZIPSTREAM |
a848cd7e SC |
9407 | fi |
9408 | ||
3dd30495 VZ |
9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9410 | $as_echo "$result" >&6; } | |
9411 | ||
6e198e97 | 9412 | |
a848cd7e | 9413 | |
077c7880 | 9414 | enablestring= |
6e198e97 | 9415 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9416 | if test -z "$defaultval"; then |
6e198e97 VZ |
9417 | if test x"$enablestring" = xdisable; then |
9418 | defaultval=yes | |
9419 | else | |
9420 | defaultval=no | |
9421 | fi | |
9422 | fi | |
9423 | ||
3dd30495 VZ |
9424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-url" >&5 |
9425 | $as_echo_n "checking for --${enablestring:-enable}-url... " >&6; } | |
9426 | # Check whether --enable-url was given. | |
9427 | if test "${enable_url+set}" = set; then : | |
9428 | enableval=$enable_url; | |
642bcba9 | 9429 | if test "$enableval" = yes; then |
3dd30495 | 9430 | wx_cv_use_url='wxUSE_URL=yes' |
642bcba9 | 9431 | else |
3dd30495 | 9432 | wx_cv_use_url='wxUSE_URL=no' |
642bcba9 VZ |
9433 | fi |
9434 | ||
9435 | else | |
9436 | ||
3dd30495 | 9437 | wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}" |
642bcba9 | 9438 | |
47964710 VS |
9439 | fi |
9440 | ||
642bcba9 | 9441 | |
3dd30495 | 9442 | eval "$wx_cv_use_url" |
642bcba9 | 9443 | |
6e198e97 | 9444 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9445 | if test $wxUSE_URL = no; then |
6e198e97 | 9446 | result=yes |
7ac0e38e VZ |
9447 | else |
9448 | result=no | |
6e198e97 | 9449 | fi |
642bcba9 | 9450 | else |
3dd30495 | 9451 | result=$wxUSE_URL |
642bcba9 VZ |
9452 | fi |
9453 | ||
3dd30495 VZ |
9454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9455 | $as_echo "$result" >&6; } | |
6e198e97 | 9456 | |
642bcba9 | 9457 | |
3571e1ad VZ |
9458 | enablestring= |
9459 | defaultval=$wxUSE_ALL_FEATURES | |
9460 | if test -z "$defaultval"; then | |
9461 | if test x"$enablestring" = xdisable; then | |
9462 | defaultval=yes | |
9463 | else | |
9464 | defaultval=no | |
9465 | fi | |
9466 | fi | |
9467 | ||
3dd30495 VZ |
9468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-protocol" >&5 |
9469 | $as_echo_n "checking for --${enablestring:-enable}-protocol... " >&6; } | |
9470 | # Check whether --enable-protocol was given. | |
9471 | if test "${enable_protocol+set}" = set; then : | |
9472 | enableval=$enable_protocol; | |
3571e1ad | 9473 | if test "$enableval" = yes; then |
3dd30495 | 9474 | wx_cv_use_protocol='wxUSE_PROTOCOL=yes' |
3571e1ad | 9475 | else |
3dd30495 | 9476 | wx_cv_use_protocol='wxUSE_PROTOCOL=no' |
3571e1ad VZ |
9477 | fi |
9478 | ||
9479 | else | |
9480 | ||
3dd30495 | 9481 | wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}" |
3571e1ad VZ |
9482 | |
9483 | fi | |
9484 | ||
9485 | ||
3dd30495 | 9486 | eval "$wx_cv_use_protocol" |
3571e1ad VZ |
9487 | |
9488 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 9489 | if test $wxUSE_PROTOCOL = no; then |
3571e1ad VZ |
9490 | result=yes |
9491 | else | |
9492 | result=no | |
9493 | fi | |
9494 | else | |
3dd30495 | 9495 | result=$wxUSE_PROTOCOL |
3571e1ad VZ |
9496 | fi |
9497 | ||
3dd30495 VZ |
9498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9499 | $as_echo "$result" >&6; } | |
3571e1ad VZ |
9500 | |
9501 | ||
e6d984e2 VZ |
9502 | enablestring= |
9503 | defaultval=$wxUSE_ALL_FEATURES | |
9504 | if test -z "$defaultval"; then | |
9505 | if test x"$enablestring" = xdisable; then | |
9506 | defaultval=yes | |
9507 | else | |
9508 | defaultval=no | |
9509 | fi | |
9510 | fi | |
9511 | ||
3dd30495 VZ |
9512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-protocol_http" >&5 |
9513 | $as_echo_n "checking for --${enablestring:-enable}-protocol_http... " >&6; } | |
9514 | # Check whether --enable-protocol_http was given. | |
9515 | if test "${enable_protocol_http+set}" = set; then : | |
9516 | enableval=$enable_protocol_http; | |
e6d984e2 | 9517 | if test "$enableval" = yes; then |
3dd30495 | 9518 | wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' |
e6d984e2 | 9519 | else |
3dd30495 | 9520 | wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' |
e6d984e2 VZ |
9521 | fi |
9522 | ||
9523 | else | |
9524 | ||
3dd30495 | 9525 | wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}" |
e6d984e2 VZ |
9526 | |
9527 | fi | |
9528 | ||
9529 | ||
3dd30495 | 9530 | eval "$wx_cv_use_protocol_http" |
e6d984e2 VZ |
9531 | |
9532 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 9533 | if test $wxUSE_PROTOCOL_HTTP = no; then |
e6d984e2 | 9534 | result=yes |
7ac0e38e VZ |
9535 | else |
9536 | result=no | |
e6d984e2 VZ |
9537 | fi |
9538 | else | |
3dd30495 | 9539 | result=$wxUSE_PROTOCOL_HTTP |
e6d984e2 VZ |
9540 | fi |
9541 | ||
3dd30495 VZ |
9542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9543 | $as_echo "$result" >&6; } | |
e6d984e2 VZ |
9544 | |
9545 | ||
077c7880 | 9546 | enablestring= |
6e198e97 | 9547 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9548 | if test -z "$defaultval"; then |
6e198e97 VZ |
9549 | if test x"$enablestring" = xdisable; then |
9550 | defaultval=yes | |
9551 | else | |
9552 | defaultval=no | |
9553 | fi | |
9554 | fi | |
9555 | ||
3dd30495 VZ |
9556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
9557 | $as_echo_n "checking for --${enablestring:-enable}-protocol_ftp... " >&6; } | |
9558 | # Check whether --enable-protocol_ftp was given. | |
9559 | if test "${enable_protocol_ftp+set}" = set; then : | |
9560 | enableval=$enable_protocol_ftp; | |
da98e9be | 9561 | if test "$enableval" = yes; then |
3dd30495 | 9562 | wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' |
da98e9be | 9563 | else |
3dd30495 | 9564 | wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' |
da98e9be VZ |
9565 | fi |
9566 | ||
9567 | else | |
9568 | ||
3dd30495 | 9569 | wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}" |
da98e9be | 9570 | |
47964710 VS |
9571 | fi |
9572 | ||
da98e9be | 9573 | |
3dd30495 | 9574 | eval "$wx_cv_use_protocol_ftp" |
da98e9be | 9575 | |
6e198e97 | 9576 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9577 | if test $wxUSE_PROTOCOL_FTP = no; then |
6e198e97 | 9578 | result=yes |
7ac0e38e VZ |
9579 | else |
9580 | result=no | |
6e198e97 | 9581 | fi |
da98e9be | 9582 | else |
3dd30495 | 9583 | result=$wxUSE_PROTOCOL_FTP |
da98e9be VZ |
9584 | fi |
9585 | ||
3dd30495 VZ |
9586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9587 | $as_echo "$result" >&6; } | |
6e198e97 | 9588 | |
da98e9be | 9589 | |
077c7880 | 9590 | enablestring= |
6e198e97 | 9591 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9592 | if test -z "$defaultval"; then |
6e198e97 VZ |
9593 | if test x"$enablestring" = xdisable; then |
9594 | defaultval=yes | |
9595 | else | |
9596 | defaultval=no | |
9597 | fi | |
9598 | fi | |
9599 | ||
3dd30495 VZ |
9600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-protocol_file" >&5 |
9601 | $as_echo_n "checking for --${enablestring:-enable}-protocol_file... " >&6; } | |
9602 | # Check whether --enable-protocol_file was given. | |
9603 | if test "${enable_protocol_file+set}" = set; then : | |
9604 | enableval=$enable_protocol_file; | |
e9263684 | 9605 | if test "$enableval" = yes; then |
3dd30495 | 9606 | wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' |
e9263684 | 9607 | else |
3dd30495 | 9608 | wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' |
e9263684 VZ |
9609 | fi |
9610 | ||
9611 | else | |
9612 | ||
3dd30495 | 9613 | wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}" |
e9263684 | 9614 | |
47964710 VS |
9615 | fi |
9616 | ||
e9263684 | 9617 | |
3dd30495 | 9618 | eval "$wx_cv_use_protocol_file" |
e9263684 | 9619 | |
6e198e97 | 9620 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9621 | if test $wxUSE_PROTOCOL_FILE = no; then |
6e198e97 | 9622 | result=yes |
7ac0e38e VZ |
9623 | else |
9624 | result=no | |
6e198e97 | 9625 | fi |
e9263684 | 9626 | else |
3dd30495 | 9627 | result=$wxUSE_PROTOCOL_FILE |
e9263684 VZ |
9628 | fi |
9629 | ||
3dd30495 VZ |
9630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9631 | $as_echo "$result" >&6; } | |
9632 | ||
6e198e97 | 9633 | |
e9263684 | 9634 | |
077c7880 | 9635 | enablestring= |
6e198e97 | 9636 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9637 | if test -z "$defaultval"; then |
6e198e97 VZ |
9638 | if test x"$enablestring" = xdisable; then |
9639 | defaultval=yes | |
9640 | else | |
9641 | defaultval=no | |
9642 | fi | |
9643 | fi | |
9644 | ||
3dd30495 VZ |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-threads" >&5 |
9646 | $as_echo_n "checking for --${enablestring:-enable}-threads... " >&6; } | |
9647 | # Check whether --enable-threads was given. | |
9648 | if test "${enable_threads+set}" = set; then : | |
9649 | enableval=$enable_threads; | |
a848cd7e | 9650 | if test "$enableval" = yes; then |
3dd30495 | 9651 | wx_cv_use_threads='wxUSE_THREADS=yes' |
a848cd7e | 9652 | else |
3dd30495 | 9653 | wx_cv_use_threads='wxUSE_THREADS=no' |
a848cd7e SC |
9654 | fi |
9655 | ||
9656 | else | |
9657 | ||
3dd30495 | 9658 | wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}" |
a848cd7e | 9659 | |
47964710 VS |
9660 | fi |
9661 | ||
a848cd7e | 9662 | |
3dd30495 | 9663 | eval "$wx_cv_use_threads" |
a848cd7e | 9664 | |
6e198e97 | 9665 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9666 | if test $wxUSE_THREADS = no; then |
6e198e97 | 9667 | result=yes |
7ac0e38e VZ |
9668 | else |
9669 | result=no | |
6e198e97 | 9670 | fi |
a848cd7e | 9671 | else |
3dd30495 | 9672 | result=$wxUSE_THREADS |
a848cd7e SC |
9673 | fi |
9674 | ||
3dd30495 VZ |
9675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9676 | $as_echo "$result" >&6; } | |
9677 | ||
6e198e97 | 9678 | |
a848cd7e | 9679 | |
077c7880 | 9680 | enablestring= |
3dd30495 | 9681 | defaultval= |
238663c1 | 9682 | if test -z "$defaultval"; then |
6e198e97 VZ |
9683 | if test x"$enablestring" = xdisable; then |
9684 | defaultval=yes | |
9685 | else | |
9686 | defaultval=no | |
9687 | fi | |
9688 | fi | |
9689 | ||
3dd30495 VZ |
9690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-iniconf" >&5 |
9691 | $as_echo_n "checking for --${enablestring:-enable}-iniconf... " >&6; } | |
9692 | # Check whether --enable-iniconf was given. | |
9693 | if test "${enable_iniconf+set}" = set; then : | |
9694 | enableval=$enable_iniconf; | |
88bbc332 | 9695 | if test "$enableval" = yes; then |
3dd30495 | 9696 | wx_cv_use_iniconf='wxUSE_INICONF=yes' |
88bbc332 | 9697 | else |
3dd30495 | 9698 | wx_cv_use_iniconf='wxUSE_INICONF=no' |
88bbc332 RR |
9699 | fi |
9700 | ||
9701 | else | |
9702 | ||
3dd30495 | 9703 | wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}" |
88bbc332 | 9704 | |
47964710 VS |
9705 | fi |
9706 | ||
88bbc332 | 9707 | |
3dd30495 | 9708 | eval "$wx_cv_use_iniconf" |
88bbc332 | 9709 | |
6e198e97 | 9710 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9711 | if test $wxUSE_INICONF = no; then |
6e198e97 | 9712 | result=yes |
7ac0e38e VZ |
9713 | else |
9714 | result=no | |
6e198e97 | 9715 | fi |
23575150 | 9716 | else |
3dd30495 | 9717 | result=$wxUSE_INICONF |
23575150 RR |
9718 | fi |
9719 | ||
3dd30495 VZ |
9720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9721 | $as_echo "$result" >&6; } | |
6e198e97 | 9722 | |
23575150 RR |
9723 | |
9724 | enablestring= | |
6e198e97 | 9725 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9726 | if test -z "$defaultval"; then |
6e198e97 VZ |
9727 | if test x"$enablestring" = xdisable; then |
9728 | defaultval=yes | |
9729 | else | |
9730 | defaultval=no | |
9731 | fi | |
9732 | fi | |
9733 | ||
3dd30495 VZ |
9734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-regkey" >&5 |
9735 | $as_echo_n "checking for --${enablestring:-enable}-regkey... " >&6; } | |
9736 | # Check whether --enable-regkey was given. | |
9737 | if test "${enable_regkey+set}" = set; then : | |
9738 | enableval=$enable_regkey; | |
23575150 | 9739 | if test "$enableval" = yes; then |
3dd30495 | 9740 | wx_cv_use_regkey='wxUSE_REGKEY=yes' |
23575150 | 9741 | else |
3dd30495 | 9742 | wx_cv_use_regkey='wxUSE_REGKEY=no' |
23575150 RR |
9743 | fi |
9744 | ||
9745 | else | |
9746 | ||
3dd30495 | 9747 | wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}" |
23575150 | 9748 | |
47964710 VS |
9749 | fi |
9750 | ||
23575150 | 9751 | |
3dd30495 | 9752 | eval "$wx_cv_use_regkey" |
23575150 | 9753 | |
6e198e97 | 9754 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9755 | if test $wxUSE_REGKEY = no; then |
6e198e97 | 9756 | result=yes |
7ac0e38e VZ |
9757 | else |
9758 | result=no | |
6e198e97 | 9759 | fi |
88bbc332 | 9760 | else |
3dd30495 | 9761 | result=$wxUSE_REGKEY |
88bbc332 RR |
9762 | fi |
9763 | ||
3dd30495 VZ |
9764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9765 | $as_echo "$result" >&6; } | |
9766 | ||
9767 | ||
9768 | if test "$wxUSE_GUI" = "yes"; then | |
9769 | ||
6e198e97 | 9770 | |
88bbc332 | 9771 | |
077c7880 | 9772 | enablestring= |
6e198e97 | 9773 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9774 | if test -z "$defaultval"; then |
6e198e97 VZ |
9775 | if test x"$enablestring" = xdisable; then |
9776 | defaultval=yes | |
9777 | else | |
9778 | defaultval=no | |
9779 | fi | |
9780 | fi | |
9781 | ||
3dd30495 VZ |
9782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-docview" >&5 |
9783 | $as_echo_n "checking for --${enablestring:-enable}-docview... " >&6; } | |
9784 | # Check whether --enable-docview was given. | |
9785 | if test "${enable_docview+set}" = set; then : | |
9786 | enableval=$enable_docview; | |
e9263684 | 9787 | if test "$enableval" = yes; then |
3dd30495 | 9788 | wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' |
e9263684 | 9789 | else |
3dd30495 | 9790 | wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' |
e9263684 VZ |
9791 | fi |
9792 | ||
9793 | else | |
9794 | ||
3dd30495 | 9795 | wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}" |
e9263684 | 9796 | |
47964710 VS |
9797 | fi |
9798 | ||
e9263684 | 9799 | |
3dd30495 | 9800 | eval "$wx_cv_use_docview" |
e9263684 | 9801 | |
6e198e97 | 9802 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9803 | if test $wxUSE_DOC_VIEW_ARCHITECTURE = no; then |
6e198e97 | 9804 | result=yes |
7ac0e38e VZ |
9805 | else |
9806 | result=no | |
6e198e97 | 9807 | fi |
e9263684 | 9808 | else |
3dd30495 | 9809 | result=$wxUSE_DOC_VIEW_ARCHITECTURE |
e9263684 VZ |
9810 | fi |
9811 | ||
3dd30495 VZ |
9812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9813 | $as_echo "$result" >&6; } | |
6e198e97 | 9814 | |
e9263684 | 9815 | |
0cf3e587 VZ |
9816 | enablestring= |
9817 | defaultval=$wxUSE_ALL_FEATURES | |
9818 | if test -z "$defaultval"; then | |
9819 | if test x"$enablestring" = xdisable; then | |
9820 | defaultval=yes | |
9821 | else | |
9822 | defaultval=no | |
9823 | fi | |
9824 | fi | |
9825 | ||
3dd30495 VZ |
9826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-help" >&5 |
9827 | $as_echo_n "checking for --${enablestring:-enable}-help... " >&6; } | |
9828 | # Check whether --enable-help was given. | |
9829 | if test "${enable_help+set}" = set; then : | |
9830 | enableval=$enable_help; | |
0cf3e587 | 9831 | if test "$enableval" = yes; then |
3dd30495 | 9832 | wx_cv_use_help='wxUSE_HELP=yes' |
0cf3e587 | 9833 | else |
3dd30495 | 9834 | wx_cv_use_help='wxUSE_HELP=no' |
0cf3e587 | 9835 | fi |
0cf3e587 VZ |
9836 | |
9837 | else | |
9838 | ||
3dd30495 | 9839 | wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}" |
0cf3e587 VZ |
9840 | |
9841 | fi | |
9842 | ||
9843 | ||
3dd30495 | 9844 | eval "$wx_cv_use_help" |
0cf3e587 VZ |
9845 | |
9846 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 9847 | if test $wxUSE_HELP = no; then |
0cf3e587 | 9848 | result=yes |
7ac0e38e VZ |
9849 | else |
9850 | result=no | |
0cf3e587 VZ |
9851 | fi |
9852 | else | |
3dd30495 | 9853 | result=$wxUSE_HELP |
0cf3e587 VZ |
9854 | fi |
9855 | ||
3dd30495 VZ |
9856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9857 | $as_echo "$result" >&6; } | |
0cf3e587 VZ |
9858 | |
9859 | ||
077c7880 | 9860 | enablestring= |
6e198e97 | 9861 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9862 | if test -z "$defaultval"; then |
6e198e97 VZ |
9863 | if test x"$enablestring" = xdisable; then |
9864 | defaultval=yes | |
9865 | else | |
9866 | defaultval=no | |
9867 | fi | |
9868 | fi | |
9869 | ||
3dd30495 VZ |
9870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
9871 | $as_echo_n "checking for --${enablestring:-enable}-mshtmlhelp... " >&6; } | |
9872 | # Check whether --enable-mshtmlhelp was given. | |
9873 | if test "${enable_mshtmlhelp+set}" = set; then : | |
9874 | enableval=$enable_mshtmlhelp; | |
e9263684 | 9875 | if test "$enableval" = yes; then |
3dd30495 | 9876 | wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' |
e9263684 | 9877 | else |
3dd30495 | 9878 | wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' |
e9263684 VZ |
9879 | fi |
9880 | ||
9881 | else | |
9882 | ||
3dd30495 | 9883 | wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}" |
e9263684 | 9884 | |
47964710 VS |
9885 | fi |
9886 | ||
e9263684 | 9887 | |
3dd30495 | 9888 | eval "$wx_cv_use_mshtmlhelp" |
e9263684 | 9889 | |
6e198e97 | 9890 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9891 | if test $wxUSE_MS_HTML_HELP = no; then |
6e198e97 | 9892 | result=yes |
7ac0e38e VZ |
9893 | else |
9894 | result=no | |
6e198e97 | 9895 | fi |
e9263684 | 9896 | else |
3dd30495 | 9897 | result=$wxUSE_MS_HTML_HELP |
e9263684 VZ |
9898 | fi |
9899 | ||
3dd30495 VZ |
9900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9901 | $as_echo "$result" >&6; } | |
6e198e97 | 9902 | |
e9263684 | 9903 | |
077c7880 | 9904 | enablestring= |
6e198e97 | 9905 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9906 | if test -z "$defaultval"; then |
6e198e97 VZ |
9907 | if test x"$enablestring" = xdisable; then |
9908 | defaultval=yes | |
9909 | else | |
9910 | defaultval=no | |
9911 | fi | |
9912 | fi | |
9913 | ||
3dd30495 VZ |
9914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-html" >&5 |
9915 | $as_echo_n "checking for --${enablestring:-enable}-html... " >&6; } | |
9916 | # Check whether --enable-html was given. | |
9917 | if test "${enable_html+set}" = set; then : | |
9918 | enableval=$enable_html; | |
a848cd7e | 9919 | if test "$enableval" = yes; then |
3dd30495 | 9920 | wx_cv_use_html='wxUSE_HTML=yes' |
a848cd7e | 9921 | else |
3dd30495 | 9922 | wx_cv_use_html='wxUSE_HTML=no' |
a848cd7e SC |
9923 | fi |
9924 | ||
9925 | else | |
9926 | ||
3dd30495 | 9927 | wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}" |
a848cd7e | 9928 | |
47964710 VS |
9929 | fi |
9930 | ||
a848cd7e | 9931 | |
3dd30495 | 9932 | eval "$wx_cv_use_html" |
a848cd7e | 9933 | |
6e198e97 | 9934 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9935 | if test $wxUSE_HTML = no; then |
6e198e97 | 9936 | result=yes |
7ac0e38e VZ |
9937 | else |
9938 | result=no | |
6e198e97 | 9939 | fi |
a848cd7e | 9940 | else |
3dd30495 | 9941 | result=$wxUSE_HTML |
a848cd7e SC |
9942 | fi |
9943 | ||
3dd30495 VZ |
9944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9945 | $as_echo "$result" >&6; } | |
6e198e97 | 9946 | |
a848cd7e | 9947 | |
077c7880 | 9948 | enablestring= |
6e198e97 | 9949 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 9950 | if test -z "$defaultval"; then |
6e198e97 VZ |
9951 | if test x"$enablestring" = xdisable; then |
9952 | defaultval=yes | |
9953 | else | |
9954 | defaultval=no | |
9955 | fi | |
9956 | fi | |
9957 | ||
3dd30495 VZ |
9958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-htmlhelp" >&5 |
9959 | $as_echo_n "checking for --${enablestring:-enable}-htmlhelp... " >&6; } | |
9960 | # Check whether --enable-htmlhelp was given. | |
9961 | if test "${enable_htmlhelp+set}" = set; then : | |
9962 | enableval=$enable_htmlhelp; | |
a848cd7e | 9963 | if test "$enableval" = yes; then |
3dd30495 | 9964 | wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' |
a848cd7e | 9965 | else |
3dd30495 | 9966 | wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' |
a848cd7e SC |
9967 | fi |
9968 | ||
9969 | else | |
9970 | ||
3dd30495 | 9971 | wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}" |
a848cd7e | 9972 | |
47964710 VS |
9973 | fi |
9974 | ||
a848cd7e | 9975 | |
3dd30495 | 9976 | eval "$wx_cv_use_htmlhelp" |
a848cd7e | 9977 | |
6e198e97 | 9978 | if test x"$enablestring" = xdisable; then |
3dd30495 | 9979 | if test $wxUSE_WXHTML_HELP = no; then |
6e198e97 | 9980 | result=yes |
7ac0e38e VZ |
9981 | else |
9982 | result=no | |
6e198e97 | 9983 | fi |
a848cd7e | 9984 | else |
3dd30495 | 9985 | result=$wxUSE_WXHTML_HELP |
a848cd7e SC |
9986 | fi |
9987 | ||
3dd30495 VZ |
9988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
9989 | $as_echo "$result" >&6; } | |
6e198e97 | 9990 | |
a848cd7e | 9991 | |
e721a2a2 VZ |
9992 | enablestring= |
9993 | defaultval=$wxUSE_ALL_FEATURES | |
9994 | if test -z "$defaultval"; then | |
9995 | if test x"$enablestring" = xdisable; then | |
9996 | defaultval=yes | |
9997 | else | |
9998 | defaultval=no | |
9999 | fi | |
10000 | fi | |
10001 | ||
3dd30495 VZ |
10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-xrc" >&5 |
10003 | $as_echo_n "checking for --${enablestring:-enable}-xrc... " >&6; } | |
10004 | # Check whether --enable-xrc was given. | |
10005 | if test "${enable_xrc+set}" = set; then : | |
10006 | enableval=$enable_xrc; | |
e721a2a2 | 10007 | if test "$enableval" = yes; then |
3dd30495 | 10008 | wx_cv_use_xrc='wxUSE_XRC=yes' |
e721a2a2 | 10009 | else |
3dd30495 | 10010 | wx_cv_use_xrc='wxUSE_XRC=no' |
e721a2a2 VZ |
10011 | fi |
10012 | ||
10013 | else | |
10014 | ||
3dd30495 | 10015 | wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}" |
e721a2a2 VZ |
10016 | |
10017 | fi | |
10018 | ||
10019 | ||
3dd30495 | 10020 | eval "$wx_cv_use_xrc" |
e721a2a2 VZ |
10021 | |
10022 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 10023 | if test $wxUSE_XRC = no; then |
e721a2a2 | 10024 | result=yes |
7ac0e38e VZ |
10025 | else |
10026 | result=no | |
e721a2a2 VZ |
10027 | fi |
10028 | else | |
3dd30495 | 10029 | result=$wxUSE_XRC |
e721a2a2 VZ |
10030 | fi |
10031 | ||
3dd30495 VZ |
10032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10033 | $as_echo "$result" >&6; } | |
e721a2a2 VZ |
10034 | |
10035 | ||
077c7880 | 10036 | enablestring= |
6e198e97 | 10037 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10038 | if test -z "$defaultval"; then |
6e198e97 VZ |
10039 | if test x"$enablestring" = xdisable; then |
10040 | defaultval=yes | |
10041 | else | |
10042 | defaultval=no | |
10043 | fi | |
10044 | fi | |
10045 | ||
3dd30495 VZ |
10046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-aui" >&5 |
10047 | $as_echo_n "checking for --${enablestring:-enable}-aui... " >&6; } | |
10048 | # Check whether --enable-aui was given. | |
10049 | if test "${enable_aui+set}" = set; then : | |
10050 | enableval=$enable_aui; | |
20e34ecc | 10051 | if test "$enableval" = yes; then |
3dd30495 | 10052 | wx_cv_use_aui='wxUSE_AUI=yes' |
20e34ecc | 10053 | else |
3dd30495 | 10054 | wx_cv_use_aui='wxUSE_AUI=no' |
20e34ecc RR |
10055 | fi |
10056 | ||
10057 | else | |
10058 | ||
3dd30495 | 10059 | wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}" |
20e34ecc | 10060 | |
47964710 VS |
10061 | fi |
10062 | ||
20e34ecc | 10063 | |
3dd30495 | 10064 | eval "$wx_cv_use_aui" |
20e34ecc | 10065 | |
6e198e97 | 10066 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10067 | if test $wxUSE_AUI = no; then |
6e198e97 | 10068 | result=yes |
7ac0e38e VZ |
10069 | else |
10070 | result=no | |
6e198e97 | 10071 | fi |
6954625c | 10072 | else |
3dd30495 | 10073 | result=$wxUSE_AUI |
6954625c VZ |
10074 | fi |
10075 | ||
3dd30495 VZ |
10076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10077 | $as_echo "$result" >&6; } | |
6e198e97 | 10078 | |
6954625c | 10079 | |
077c7880 | 10080 | enablestring= |
6e198e97 | 10081 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10082 | if test -z "$defaultval"; then |
6e198e97 VZ |
10083 | if test x"$enablestring" = xdisable; then |
10084 | defaultval=yes | |
10085 | else | |
10086 | defaultval=no | |
10087 | fi | |
10088 | fi | |
10089 | ||
3dd30495 VZ |
10090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-propgrid" >&5 |
10091 | $as_echo_n "checking for --${enablestring:-enable}-propgrid... " >&6; } | |
10092 | # Check whether --enable-propgrid was given. | |
10093 | if test "${enable_propgrid+set}" = set; then : | |
10094 | enableval=$enable_propgrid; | |
a848cd7e | 10095 | if test "$enableval" = yes; then |
3dd30495 | 10096 | wx_cv_use_propgrid='wxUSE_PROPGRID=yes' |
a848cd7e | 10097 | else |
3dd30495 | 10098 | wx_cv_use_propgrid='wxUSE_PROPGRID=no' |
a848cd7e SC |
10099 | fi |
10100 | ||
10101 | else | |
10102 | ||
3dd30495 | 10103 | wx_cv_use_propgrid='wxUSE_PROPGRID=${'DEFAULT_wxUSE_PROPGRID":-$defaultval}" |
a848cd7e | 10104 | |
47964710 VS |
10105 | fi |
10106 | ||
a848cd7e | 10107 | |
3dd30495 | 10108 | eval "$wx_cv_use_propgrid" |
a848cd7e | 10109 | |
6e198e97 | 10110 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10111 | if test $wxUSE_PROPGRID = no; then |
6e198e97 | 10112 | result=yes |
7ac0e38e VZ |
10113 | else |
10114 | result=no | |
6e198e97 | 10115 | fi |
a848cd7e | 10116 | else |
3dd30495 | 10117 | result=$wxUSE_PROPGRID |
a848cd7e SC |
10118 | fi |
10119 | ||
3dd30495 VZ |
10120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10121 | $as_echo "$result" >&6; } | |
6e198e97 | 10122 | |
a848cd7e | 10123 | |
a92b5dfe VZ |
10124 | enablestring= |
10125 | defaultval=$wxUSE_ALL_FEATURES | |
10126 | if test -z "$defaultval"; then | |
10127 | if test x"$enablestring" = xdisable; then | |
10128 | defaultval=yes | |
10129 | else | |
10130 | defaultval=no | |
10131 | fi | |
10132 | fi | |
10133 | ||
3dd30495 VZ |
10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ribbon" >&5 |
10135 | $as_echo_n "checking for --${enablestring:-enable}-ribbon... " >&6; } | |
10136 | # Check whether --enable-ribbon was given. | |
10137 | if test "${enable_ribbon+set}" = set; then : | |
10138 | enableval=$enable_ribbon; | |
a92b5dfe | 10139 | if test "$enableval" = yes; then |
3dd30495 | 10140 | wx_cv_use_ribbon='wxUSE_RIBBON=yes' |
a92b5dfe | 10141 | else |
3dd30495 | 10142 | wx_cv_use_ribbon='wxUSE_RIBBON=no' |
a92b5dfe VZ |
10143 | fi |
10144 | ||
10145 | else | |
10146 | ||
3dd30495 | 10147 | wx_cv_use_ribbon='wxUSE_RIBBON=${'DEFAULT_wxUSE_RIBBON":-$defaultval}" |
a92b5dfe VZ |
10148 | |
10149 | fi | |
10150 | ||
10151 | ||
3dd30495 | 10152 | eval "$wx_cv_use_ribbon" |
a92b5dfe VZ |
10153 | |
10154 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 10155 | if test $wxUSE_RIBBON = no; then |
a92b5dfe VZ |
10156 | result=yes |
10157 | else | |
10158 | result=no | |
10159 | fi | |
10160 | else | |
3dd30495 | 10161 | result=$wxUSE_RIBBON |
a92b5dfe VZ |
10162 | fi |
10163 | ||
3dd30495 VZ |
10164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10165 | $as_echo "$result" >&6; } | |
a92b5dfe VZ |
10166 | |
10167 | ||
077c7880 | 10168 | enablestring= |
6e198e97 | 10169 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10170 | if test -z "$defaultval"; then |
6e198e97 VZ |
10171 | if test x"$enablestring" = xdisable; then |
10172 | defaultval=yes | |
10173 | else | |
10174 | defaultval=no | |
10175 | fi | |
10176 | fi | |
10177 | ||
3dd30495 VZ |
10178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-stc" >&5 |
10179 | $as_echo_n "checking for --${enablestring:-enable}-stc... " >&6; } | |
10180 | # Check whether --enable-stc was given. | |
10181 | if test "${enable_stc+set}" = set; then : | |
10182 | enableval=$enable_stc; | |
a848cd7e | 10183 | if test "$enableval" = yes; then |
3dd30495 | 10184 | wx_cv_use_stc='wxUSE_STC=yes' |
a848cd7e | 10185 | else |
3dd30495 | 10186 | wx_cv_use_stc='wxUSE_STC=no' |
a848cd7e SC |
10187 | fi |
10188 | ||
10189 | else | |
10190 | ||
3dd30495 | 10191 | wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}" |
a848cd7e | 10192 | |
47964710 VS |
10193 | fi |
10194 | ||
a848cd7e | 10195 | |
3dd30495 | 10196 | eval "$wx_cv_use_stc" |
a848cd7e | 10197 | |
6e198e97 | 10198 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10199 | if test $wxUSE_STC = no; then |
6e198e97 | 10200 | result=yes |
7ac0e38e VZ |
10201 | else |
10202 | result=no | |
6e198e97 | 10203 | fi |
a848cd7e | 10204 | else |
3dd30495 | 10205 | result=$wxUSE_STC |
a848cd7e SC |
10206 | fi |
10207 | ||
3dd30495 VZ |
10208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10209 | $as_echo "$result" >&6; } | |
6e198e97 | 10210 | |
a848cd7e | 10211 | |
077c7880 | 10212 | enablestring= |
6e198e97 | 10213 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10214 | if test -z "$defaultval"; then |
6e198e97 VZ |
10215 | if test x"$enablestring" = xdisable; then |
10216 | defaultval=yes | |
10217 | else | |
10218 | defaultval=no | |
10219 | fi | |
10220 | fi | |
10221 | ||
3dd30495 VZ |
10222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-constraints" >&5 |
10223 | $as_echo_n "checking for --${enablestring:-enable}-constraints... " >&6; } | |
10224 | # Check whether --enable-constraints was given. | |
10225 | if test "${enable_constraints+set}" = set; then : | |
10226 | enableval=$enable_constraints; | |
a848cd7e | 10227 | if test "$enableval" = yes; then |
3dd30495 | 10228 | wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes' |
a848cd7e | 10229 | else |
3dd30495 | 10230 | wx_cv_use_constraints='wxUSE_CONSTRAINTS=no' |
a848cd7e SC |
10231 | fi |
10232 | ||
10233 | else | |
10234 | ||
3dd30495 | 10235 | wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}" |
a848cd7e | 10236 | |
47964710 VS |
10237 | fi |
10238 | ||
a848cd7e | 10239 | |
3dd30495 | 10240 | eval "$wx_cv_use_constraints" |
a848cd7e | 10241 | |
6e198e97 | 10242 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10243 | if test $wxUSE_CONSTRAINTS = no; then |
6e198e97 | 10244 | result=yes |
7ac0e38e VZ |
10245 | else |
10246 | result=no | |
6e198e97 | 10247 | fi |
a848cd7e | 10248 | else |
3dd30495 | 10249 | result=$wxUSE_CONSTRAINTS |
a848cd7e SC |
10250 | fi |
10251 | ||
3dd30495 VZ |
10252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10253 | $as_echo "$result" >&6; } | |
6e198e97 | 10254 | |
a848cd7e | 10255 | |
077c7880 | 10256 | enablestring= |
6e198e97 | 10257 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10258 | if test -z "$defaultval"; then |
6e198e97 VZ |
10259 | if test x"$enablestring" = xdisable; then |
10260 | defaultval=yes | |
10261 | else | |
10262 | defaultval=no | |
10263 | fi | |
10264 | fi | |
10265 | ||
3dd30495 VZ |
10266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-loggui" >&5 |
10267 | $as_echo_n "checking for --${enablestring:-enable}-loggui... " >&6; } | |
10268 | # Check whether --enable-loggui was given. | |
10269 | if test "${enable_loggui+set}" = set; then : | |
10270 | enableval=$enable_loggui; | |
a848cd7e | 10271 | if test "$enableval" = yes; then |
3dd30495 | 10272 | wx_cv_use_loggui='wxUSE_LOGGUI=yes' |
a848cd7e | 10273 | else |
3dd30495 | 10274 | wx_cv_use_loggui='wxUSE_LOGGUI=no' |
a848cd7e SC |
10275 | fi |
10276 | ||
10277 | else | |
10278 | ||
3dd30495 | 10279 | wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}" |
a848cd7e | 10280 | |
47964710 VS |
10281 | fi |
10282 | ||
a848cd7e | 10283 | |
3dd30495 | 10284 | eval "$wx_cv_use_loggui" |
a848cd7e | 10285 | |
6e198e97 | 10286 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10287 | if test $wxUSE_LOGGUI = no; then |
6e198e97 | 10288 | result=yes |
7ac0e38e VZ |
10289 | else |
10290 | result=no | |
6e198e97 | 10291 | fi |
a848cd7e | 10292 | else |
3dd30495 | 10293 | result=$wxUSE_LOGGUI |
a848cd7e SC |
10294 | fi |
10295 | ||
3dd30495 VZ |
10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10297 | $as_echo "$result" >&6; } | |
6e198e97 | 10298 | |
a848cd7e | 10299 | |
077c7880 | 10300 | enablestring= |
6e198e97 | 10301 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10302 | if test -z "$defaultval"; then |
6e198e97 VZ |
10303 | if test x"$enablestring" = xdisable; then |
10304 | defaultval=yes | |
10305 | else | |
10306 | defaultval=no | |
10307 | fi | |
10308 | fi | |
10309 | ||
3dd30495 VZ |
10310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-logwin" >&5 |
10311 | $as_echo_n "checking for --${enablestring:-enable}-logwin... " >&6; } | |
10312 | # Check whether --enable-logwin was given. | |
10313 | if test "${enable_logwin+set}" = set; then : | |
10314 | enableval=$enable_logwin; | |
a848cd7e | 10315 | if test "$enableval" = yes; then |
3dd30495 | 10316 | wx_cv_use_logwin='wxUSE_LOGWINDOW=yes' |
a848cd7e | 10317 | else |
3dd30495 | 10318 | wx_cv_use_logwin='wxUSE_LOGWINDOW=no' |
a848cd7e SC |
10319 | fi |
10320 | ||
10321 | else | |
10322 | ||
3dd30495 | 10323 | wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}" |
a848cd7e | 10324 | |
47964710 VS |
10325 | fi |
10326 | ||
a848cd7e | 10327 | |
3dd30495 | 10328 | eval "$wx_cv_use_logwin" |
a848cd7e | 10329 | |
6e198e97 | 10330 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10331 | if test $wxUSE_LOGWINDOW = no; then |
6e198e97 | 10332 | result=yes |
7ac0e38e VZ |
10333 | else |
10334 | result=no | |
6e198e97 | 10335 | fi |
a848cd7e | 10336 | else |
3dd30495 | 10337 | result=$wxUSE_LOGWINDOW |
a848cd7e SC |
10338 | fi |
10339 | ||
3dd30495 VZ |
10340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10341 | $as_echo "$result" >&6; } | |
6e198e97 | 10342 | |
a848cd7e | 10343 | |
e36a1739 VZ |
10344 | enablestring= |
10345 | defaultval=$wxUSE_ALL_FEATURES | |
10346 | if test -z "$defaultval"; then | |
10347 | if test x"$enablestring" = xdisable; then | |
10348 | defaultval=yes | |
10349 | else | |
10350 | defaultval=no | |
10351 | fi | |
10352 | fi | |
10353 | ||
3dd30495 VZ |
10354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-logdialog" >&5 |
10355 | $as_echo_n "checking for --${enablestring:-enable}-logdialog... " >&6; } | |
10356 | # Check whether --enable-logdialog was given. | |
10357 | if test "${enable_logdialog+set}" = set; then : | |
10358 | enableval=$enable_logdialog; | |
e36a1739 | 10359 | if test "$enableval" = yes; then |
3dd30495 | 10360 | wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes' |
e36a1739 | 10361 | else |
3dd30495 | 10362 | wx_cv_use_logdialog='wxUSE_LOGDIALOG=no' |
e36a1739 VZ |
10363 | fi |
10364 | ||
10365 | else | |
10366 | ||
3dd30495 | 10367 | wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}" |
e36a1739 VZ |
10368 | |
10369 | fi | |
10370 | ||
10371 | ||
3dd30495 | 10372 | eval "$wx_cv_use_logdialog" |
e36a1739 VZ |
10373 | |
10374 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 10375 | if test $wxUSE_LOGDIALOG = no; then |
e36a1739 | 10376 | result=yes |
7ac0e38e VZ |
10377 | else |
10378 | result=no | |
e36a1739 VZ |
10379 | fi |
10380 | else | |
3dd30495 | 10381 | result=$wxUSE_LOGDIALOG |
e36a1739 VZ |
10382 | fi |
10383 | ||
3dd30495 VZ |
10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10385 | $as_echo "$result" >&6; } | |
e36a1739 VZ |
10386 | |
10387 | ||
077c7880 | 10388 | enablestring= |
6e198e97 | 10389 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10390 | if test -z "$defaultval"; then |
6e198e97 VZ |
10391 | if test x"$enablestring" = xdisable; then |
10392 | defaultval=yes | |
10393 | else | |
10394 | defaultval=no | |
10395 | fi | |
10396 | fi | |
10397 | ||
3dd30495 VZ |
10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-mdi" >&5 |
10399 | $as_echo_n "checking for --${enablestring:-enable}-mdi... " >&6; } | |
10400 | # Check whether --enable-mdi was given. | |
10401 | if test "${enable_mdi+set}" = set; then : | |
10402 | enableval=$enable_mdi; | |
642bcba9 | 10403 | if test "$enableval" = yes; then |
3dd30495 | 10404 | wx_cv_use_mdi='wxUSE_MDI=yes' |
642bcba9 | 10405 | else |
3dd30495 | 10406 | wx_cv_use_mdi='wxUSE_MDI=no' |
642bcba9 VZ |
10407 | fi |
10408 | ||
10409 | else | |
10410 | ||
3dd30495 | 10411 | wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}" |
642bcba9 | 10412 | |
47964710 VS |
10413 | fi |
10414 | ||
642bcba9 | 10415 | |
3dd30495 | 10416 | eval "$wx_cv_use_mdi" |
642bcba9 | 10417 | |
6e198e97 | 10418 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10419 | if test $wxUSE_MDI = no; then |
6e198e97 | 10420 | result=yes |
7ac0e38e VZ |
10421 | else |
10422 | result=no | |
6e198e97 | 10423 | fi |
642bcba9 | 10424 | else |
3dd30495 | 10425 | result=$wxUSE_MDI |
642bcba9 VZ |
10426 | fi |
10427 | ||
3dd30495 VZ |
10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10429 | $as_echo "$result" >&6; } | |
6e198e97 | 10430 | |
642bcba9 | 10431 | |
e6d984e2 VZ |
10432 | enablestring= |
10433 | defaultval=$wxUSE_ALL_FEATURES | |
10434 | if test -z "$defaultval"; then | |
10435 | if test x"$enablestring" = xdisable; then | |
10436 | defaultval=yes | |
10437 | else | |
10438 | defaultval=no | |
10439 | fi | |
10440 | fi | |
10441 | ||
3dd30495 VZ |
10442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-mdidoc" >&5 |
10443 | $as_echo_n "checking for --${enablestring:-enable}-mdidoc... " >&6; } | |
10444 | # Check whether --enable-mdidoc was given. | |
10445 | if test "${enable_mdidoc+set}" = set; then : | |
10446 | enableval=$enable_mdidoc; | |
e6d984e2 | 10447 | if test "$enableval" = yes; then |
3dd30495 | 10448 | wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' |
e6d984e2 | 10449 | else |
3dd30495 | 10450 | wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' |
e6d984e2 VZ |
10451 | fi |
10452 | ||
10453 | else | |
10454 | ||
3dd30495 | 10455 | wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}" |
e6d984e2 VZ |
10456 | |
10457 | fi | |
10458 | ||
10459 | ||
3dd30495 | 10460 | eval "$wx_cv_use_mdidoc" |
e6d984e2 VZ |
10461 | |
10462 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 10463 | if test $wxUSE_MDI_ARCHITECTURE = no; then |
e6d984e2 | 10464 | result=yes |
7ac0e38e VZ |
10465 | else |
10466 | result=no | |
e6d984e2 VZ |
10467 | fi |
10468 | else | |
3dd30495 | 10469 | result=$wxUSE_MDI_ARCHITECTURE |
e6d984e2 VZ |
10470 | fi |
10471 | ||
3dd30495 VZ |
10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10473 | $as_echo "$result" >&6; } | |
e6d984e2 VZ |
10474 | |
10475 | ||
077c7880 | 10476 | enablestring= |
6e198e97 | 10477 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10478 | if test -z "$defaultval"; then |
6e198e97 VZ |
10479 | if test x"$enablestring" = xdisable; then |
10480 | defaultval=yes | |
10481 | else | |
10482 | defaultval=no | |
10483 | fi | |
10484 | fi | |
10485 | ||
3dd30495 VZ |
10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-mediactrl" >&5 |
10487 | $as_echo_n "checking for --${enablestring:-enable}-mediactrl... " >&6; } | |
10488 | # Check whether --enable-mediactrl was given. | |
10489 | if test "${enable_mediactrl+set}" = set; then : | |
10490 | enableval=$enable_mediactrl; | |
a848cd7e | 10491 | if test "$enableval" = yes; then |
3dd30495 | 10492 | wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' |
a848cd7e | 10493 | else |
3dd30495 | 10494 | wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no' |
a848cd7e SC |
10495 | fi |
10496 | ||
10497 | else | |
10498 | ||
3dd30495 | 10499 | wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}" |
a848cd7e | 10500 | |
47964710 VS |
10501 | fi |
10502 | ||
a848cd7e | 10503 | |
3dd30495 | 10504 | eval "$wx_cv_use_mediactrl" |
a848cd7e | 10505 | |
6e198e97 | 10506 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10507 | if test $wxUSE_MEDIACTRL = no; then |
6e198e97 | 10508 | result=yes |
7ac0e38e VZ |
10509 | else |
10510 | result=no | |
6e198e97 | 10511 | fi |
a848cd7e | 10512 | else |
3dd30495 | 10513 | result=$wxUSE_MEDIACTRL |
a848cd7e SC |
10514 | fi |
10515 | ||
3dd30495 VZ |
10516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10517 | $as_echo "$result" >&6; } | |
6e198e97 | 10518 | |
a848cd7e | 10519 | |
077c7880 | 10520 | enablestring= |
6e198e97 | 10521 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10522 | if test -z "$defaultval"; then |
6e198e97 VZ |
10523 | if test x"$enablestring" = xdisable; then |
10524 | defaultval=yes | |
10525 | else | |
10526 | defaultval=no | |
10527 | fi | |
10528 | fi | |
10529 | ||
3dd30495 VZ |
10530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-gstreamer8" >&5 |
10531 | $as_echo_n "checking for --${enablestring:-enable}-gstreamer8... " >&6; } | |
10532 | # Check whether --enable-gstreamer8 was given. | |
10533 | if test "${enable_gstreamer8+set}" = set; then : | |
10534 | enableval=$enable_gstreamer8; | |
a848cd7e | 10535 | if test "$enableval" = yes; then |
3dd30495 | 10536 | wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' |
a848cd7e | 10537 | else |
3dd30495 | 10538 | wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' |
a848cd7e SC |
10539 | fi |
10540 | ||
10541 | else | |
10542 | ||
3dd30495 | 10543 | wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}" |
a848cd7e | 10544 | |
47964710 VS |
10545 | fi |
10546 | ||
a848cd7e | 10547 | |
3dd30495 | 10548 | eval "$wx_cv_use_gstreamer8" |
a848cd7e | 10549 | |
6e198e97 | 10550 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10551 | if test $wxUSE_GSTREAMER8 = no; then |
6e198e97 | 10552 | result=yes |
7ac0e38e VZ |
10553 | else |
10554 | result=no | |
6e198e97 | 10555 | fi |
a848cd7e | 10556 | else |
3dd30495 | 10557 | result=$wxUSE_GSTREAMER8 |
a848cd7e SC |
10558 | fi |
10559 | ||
3dd30495 VZ |
10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10561 | $as_echo "$result" >&6; } | |
6e198e97 | 10562 | |
a848cd7e | 10563 | |
a1bdd4ab VZ |
10564 | enablestring= |
10565 | defaultval=$wxUSE_ALL_FEATURES | |
10566 | if test -z "$defaultval"; then | |
10567 | if test x"$enablestring" = xdisable; then | |
10568 | defaultval=yes | |
10569 | else | |
10570 | defaultval=no | |
10571 | fi | |
10572 | fi | |
10573 | ||
3dd30495 VZ |
10574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-richtext" >&5 |
10575 | $as_echo_n "checking for --${enablestring:-enable}-richtext... " >&6; } | |
10576 | # Check whether --enable-richtext was given. | |
10577 | if test "${enable_richtext+set}" = set; then : | |
10578 | enableval=$enable_richtext; | |
a1bdd4ab | 10579 | if test "$enableval" = yes; then |
3dd30495 | 10580 | wx_cv_use_richtext='wxUSE_RICHTEXT=yes' |
a1bdd4ab | 10581 | else |
3dd30495 | 10582 | wx_cv_use_richtext='wxUSE_RICHTEXT=no' |
a1bdd4ab VZ |
10583 | fi |
10584 | ||
10585 | else | |
10586 | ||
3dd30495 | 10587 | wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}" |
a1bdd4ab VZ |
10588 | |
10589 | fi | |
10590 | ||
10591 | ||
3dd30495 | 10592 | eval "$wx_cv_use_richtext" |
a1bdd4ab VZ |
10593 | |
10594 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 10595 | if test $wxUSE_RICHTEXT = no; then |
a1bdd4ab VZ |
10596 | result=yes |
10597 | else | |
10598 | result=no | |
10599 | fi | |
10600 | else | |
3dd30495 | 10601 | result=$wxUSE_RICHTEXT |
a1bdd4ab VZ |
10602 | fi |
10603 | ||
3dd30495 VZ |
10604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10605 | $as_echo "$result" >&6; } | |
a1bdd4ab VZ |
10606 | |
10607 | ||
e520c3f7 VZ |
10608 | enablestring= |
10609 | defaultval=$wxUSE_ALL_FEATURES | |
10610 | if test -z "$defaultval"; then | |
10611 | if test x"$enablestring" = xdisable; then | |
10612 | defaultval=yes | |
10613 | else | |
10614 | defaultval=no | |
10615 | fi | |
10616 | fi | |
10617 | ||
3dd30495 VZ |
10618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-postscript" >&5 |
10619 | $as_echo_n "checking for --${enablestring:-enable}-postscript... " >&6; } | |
10620 | # Check whether --enable-postscript was given. | |
10621 | if test "${enable_postscript+set}" = set; then : | |
10622 | enableval=$enable_postscript; | |
e520c3f7 | 10623 | if test "$enableval" = yes; then |
3dd30495 | 10624 | wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes' |
e520c3f7 | 10625 | else |
3dd30495 | 10626 | wx_cv_use_postscript='wxUSE_POSTSCRIPT=no' |
e520c3f7 VZ |
10627 | fi |
10628 | ||
10629 | else | |
10630 | ||
3dd30495 | 10631 | wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}" |
e520c3f7 VZ |
10632 | |
10633 | fi | |
10634 | ||
10635 | ||
3dd30495 | 10636 | eval "$wx_cv_use_postscript" |
e520c3f7 VZ |
10637 | |
10638 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 10639 | if test $wxUSE_POSTSCRIPT = no; then |
e520c3f7 VZ |
10640 | result=yes |
10641 | else | |
10642 | result=no | |
10643 | fi | |
10644 | else | |
3dd30495 | 10645 | result=$wxUSE_POSTSCRIPT |
e520c3f7 VZ |
10646 | fi |
10647 | ||
3dd30495 VZ |
10648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10649 | $as_echo "$result" >&6; } | |
e520c3f7 VZ |
10650 | |
10651 | ||
f0bb342f VZ |
10652 | enablestring= |
10653 | defaultval=$wxUSE_ALL_FEATURES | |
10654 | if test -z "$defaultval"; then | |
10655 | if test x"$enablestring" = xdisable; then | |
10656 | defaultval=yes | |
10657 | else | |
10658 | defaultval=no | |
10659 | fi | |
10660 | fi | |
10661 | ||
3dd30495 VZ |
10662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-printarch" >&5 |
10663 | $as_echo_n "checking for --${enablestring:-enable}-printarch... " >&6; } | |
10664 | # Check whether --enable-printarch was given. | |
10665 | if test "${enable_printarch+set}" = set; then : | |
10666 | enableval=$enable_printarch; | |
f0bb342f | 10667 | if test "$enableval" = yes; then |
3dd30495 | 10668 | wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' |
f0bb342f | 10669 | else |
3dd30495 | 10670 | wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' |
f0bb342f VZ |
10671 | fi |
10672 | ||
10673 | else | |
10674 | ||
3dd30495 | 10675 | wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}" |
f0bb342f VZ |
10676 | |
10677 | fi | |
10678 | ||
10679 | ||
3dd30495 | 10680 | eval "$wx_cv_use_printarch" |
f0bb342f VZ |
10681 | |
10682 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 10683 | if test $wxUSE_PRINTING_ARCHITECTURE = no; then |
f0bb342f | 10684 | result=yes |
7ac0e38e VZ |
10685 | else |
10686 | result=no | |
f0bb342f VZ |
10687 | fi |
10688 | else | |
3dd30495 | 10689 | result=$wxUSE_PRINTING_ARCHITECTURE |
f0bb342f VZ |
10690 | fi |
10691 | ||
3dd30495 VZ |
10692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10693 | $as_echo "$result" >&6; } | |
f0bb342f VZ |
10694 | |
10695 | ||
077c7880 | 10696 | enablestring= |
6e198e97 | 10697 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10698 | if test -z "$defaultval"; then |
6e198e97 VZ |
10699 | if test x"$enablestring" = xdisable; then |
10700 | defaultval=yes | |
10701 | else | |
10702 | defaultval=no | |
10703 | fi | |
10704 | fi | |
10705 | ||
3dd30495 VZ |
10706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-svg" >&5 |
10707 | $as_echo_n "checking for --${enablestring:-enable}-svg... " >&6; } | |
10708 | # Check whether --enable-svg was given. | |
10709 | if test "${enable_svg+set}" = set; then : | |
10710 | enableval=$enable_svg; | |
a848cd7e | 10711 | if test "$enableval" = yes; then |
3dd30495 | 10712 | wx_cv_use_svg='wxUSE_SVG=yes' |
a848cd7e | 10713 | else |
3dd30495 | 10714 | wx_cv_use_svg='wxUSE_SVG=no' |
a848cd7e SC |
10715 | fi |
10716 | ||
10717 | else | |
10718 | ||
3dd30495 | 10719 | wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}" |
a848cd7e | 10720 | |
47964710 VS |
10721 | fi |
10722 | ||
a848cd7e | 10723 | |
3dd30495 | 10724 | eval "$wx_cv_use_svg" |
a848cd7e | 10725 | |
6e198e97 | 10726 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10727 | if test $wxUSE_SVG = no; then |
6e198e97 | 10728 | result=yes |
7ac0e38e VZ |
10729 | else |
10730 | result=no | |
6e198e97 | 10731 | fi |
a848cd7e | 10732 | else |
3dd30495 | 10733 | result=$wxUSE_SVG |
a848cd7e SC |
10734 | fi |
10735 | ||
3dd30495 VZ |
10736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10737 | $as_echo "$result" >&6; } | |
6e198e97 | 10738 | |
a848cd7e | 10739 | |
077c7880 | 10740 | enablestring= |
6e198e97 | 10741 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10742 | if test -z "$defaultval"; then |
6e198e97 VZ |
10743 | if test x"$enablestring" = xdisable; then |
10744 | defaultval=yes | |
10745 | else | |
10746 | defaultval=no | |
10747 | fi | |
10748 | fi | |
10749 | ||
3dd30495 VZ |
10750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-webkit" >&5 |
10751 | $as_echo_n "checking for --${enablestring:-enable}-webkit... " >&6; } | |
10752 | # Check whether --enable-webkit was given. | |
10753 | if test "${enable_webkit+set}" = set; then : | |
10754 | enableval=$enable_webkit; | |
a848cd7e | 10755 | if test "$enableval" = yes; then |
3dd30495 | 10756 | wx_cv_use_webkit='wxUSE_WEBKIT=yes' |
a848cd7e | 10757 | else |
3dd30495 | 10758 | wx_cv_use_webkit='wxUSE_WEBKIT=no' |
a848cd7e SC |
10759 | fi |
10760 | ||
10761 | else | |
10762 | ||
3dd30495 | 10763 | wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}" |
a848cd7e | 10764 | |
47964710 VS |
10765 | fi |
10766 | ||
a848cd7e | 10767 | |
3dd30495 | 10768 | eval "$wx_cv_use_webkit" |
a848cd7e | 10769 | |
6e198e97 | 10770 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10771 | if test $wxUSE_WEBKIT = no; then |
6e198e97 | 10772 | result=yes |
7ac0e38e VZ |
10773 | else |
10774 | result=no | |
6e198e97 | 10775 | fi |
a848cd7e | 10776 | else |
3dd30495 | 10777 | result=$wxUSE_WEBKIT |
a848cd7e SC |
10778 | fi |
10779 | ||
3dd30495 VZ |
10780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10781 | $as_echo "$result" >&6; } | |
6e198e97 | 10782 | |
a848cd7e | 10783 | |
077c7880 | 10784 | enablestring= |
6e198e97 | 10785 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10786 | if test -z "$defaultval"; then |
6e198e97 VZ |
10787 | if test x"$enablestring" = xdisable; then |
10788 | defaultval=yes | |
10789 | else | |
10790 | defaultval=no | |
10791 | fi | |
10792 | fi | |
10793 | ||
3dd30495 VZ |
10794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-webview" >&5 |
10795 | $as_echo_n "checking for --${enablestring:-enable}-webview... " >&6; } | |
10796 | # Check whether --enable-webview was given. | |
10797 | if test "${enable_webview+set}" = set; then : | |
10798 | enableval=$enable_webview; | |
3f7f284d | 10799 | if test "$enableval" = yes; then |
3dd30495 | 10800 | wx_cv_use_webview='wxUSE_WEBVIEW=yes' |
3f7f284d | 10801 | else |
3dd30495 | 10802 | wx_cv_use_webview='wxUSE_WEBVIEW=no' |
3f7f284d | 10803 | fi |
a848cd7e | 10804 | |
3f7f284d RD |
10805 | else |
10806 | ||
3dd30495 | 10807 | wx_cv_use_webview='wxUSE_WEBVIEW=${'DEFAULT_wxUSE_WEBVIEW":-$defaultval}" |
3f7f284d | 10808 | |
47964710 VS |
10809 | fi |
10810 | ||
3f7f284d | 10811 | |
3dd30495 | 10812 | eval "$wx_cv_use_webview" |
3f7f284d | 10813 | |
6e198e97 | 10814 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10815 | if test $wxUSE_WEBVIEW = no; then |
6e198e97 | 10816 | result=yes |
7ac0e38e VZ |
10817 | else |
10818 | result=no | |
6e198e97 | 10819 | fi |
3f7f284d | 10820 | else |
3dd30495 | 10821 | result=$wxUSE_WEBVIEW |
3f7f284d RD |
10822 | fi |
10823 | ||
3dd30495 VZ |
10824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10825 | $as_echo "$result" >&6; } | |
10826 | ||
6e198e97 | 10827 | |
3dd30495 | 10828 | if test "$wxUSE_MAC" != 1; then |
3f7f284d RD |
10829 | |
10830 | enablestring= | |
6e198e97 | 10831 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10832 | if test -z "$defaultval"; then |
6e198e97 VZ |
10833 | if test x"$enablestring" = xdisable; then |
10834 | defaultval=yes | |
10835 | else | |
10836 | defaultval=no | |
10837 | fi | |
10838 | fi | |
10839 | ||
3dd30495 VZ |
10840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-graphics_ctx" >&5 |
10841 | $as_echo_n "checking for --${enablestring:-enable}-graphics_ctx... " >&6; } | |
10842 | # Check whether --enable-graphics_ctx was given. | |
10843 | if test "${enable_graphics_ctx+set}" = set; then : | |
10844 | enableval=$enable_graphics_ctx; | |
a848cd7e | 10845 | if test "$enableval" = yes; then |
3dd30495 | 10846 | wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes' |
a848cd7e | 10847 | else |
3dd30495 | 10848 | wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no' |
a848cd7e SC |
10849 | fi |
10850 | ||
10851 | else | |
10852 | ||
3dd30495 | 10853 | wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}" |
a848cd7e | 10854 | |
47964710 VS |
10855 | fi |
10856 | ||
a848cd7e | 10857 | |
3dd30495 | 10858 | eval "$wx_cv_use_graphics_ctx" |
a848cd7e | 10859 | |
6e198e97 | 10860 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10861 | if test $wxUSE_GRAPHICS_CONTEXT = no; then |
6e198e97 | 10862 | result=yes |
7ac0e38e VZ |
10863 | else |
10864 | result=no | |
6e198e97 | 10865 | fi |
a848cd7e | 10866 | else |
3dd30495 | 10867 | result=$wxUSE_GRAPHICS_CONTEXT |
a848cd7e SC |
10868 | fi |
10869 | ||
3dd30495 VZ |
10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10871 | $as_echo "$result" >&6; } | |
10872 | ||
10873 | fi | |
10874 | ||
6e198e97 | 10875 | |
a848cd7e | 10876 | |
077c7880 | 10877 | enablestring= |
6e198e97 | 10878 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10879 | if test -z "$defaultval"; then |
6e198e97 VZ |
10880 | if test x"$enablestring" = xdisable; then |
10881 | defaultval=yes | |
10882 | else | |
10883 | defaultval=no | |
10884 | fi | |
10885 | fi | |
10886 | ||
3dd30495 VZ |
10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-clipboard" >&5 |
10888 | $as_echo_n "checking for --${enablestring:-enable}-clipboard... " >&6; } | |
10889 | # Check whether --enable-clipboard was given. | |
10890 | if test "${enable_clipboard+set}" = set; then : | |
10891 | enableval=$enable_clipboard; | |
a848cd7e | 10892 | if test "$enableval" = yes; then |
3dd30495 | 10893 | wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes' |
a848cd7e | 10894 | else |
3dd30495 | 10895 | wx_cv_use_clipboard='wxUSE_CLIPBOARD=no' |
a848cd7e SC |
10896 | fi |
10897 | ||
10898 | else | |
10899 | ||
3dd30495 | 10900 | wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}" |
a848cd7e | 10901 | |
47964710 VS |
10902 | fi |
10903 | ||
a848cd7e | 10904 | |
3dd30495 | 10905 | eval "$wx_cv_use_clipboard" |
a848cd7e | 10906 | |
6e198e97 | 10907 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10908 | if test $wxUSE_CLIPBOARD = no; then |
6e198e97 | 10909 | result=yes |
7ac0e38e VZ |
10910 | else |
10911 | result=no | |
6e198e97 | 10912 | fi |
a848cd7e | 10913 | else |
3dd30495 | 10914 | result=$wxUSE_CLIPBOARD |
a848cd7e SC |
10915 | fi |
10916 | ||
3dd30495 VZ |
10917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10918 | $as_echo "$result" >&6; } | |
6e198e97 | 10919 | |
a848cd7e | 10920 | |
077c7880 | 10921 | enablestring= |
6e198e97 | 10922 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 10923 | if test -z "$defaultval"; then |
6e198e97 VZ |
10924 | if test x"$enablestring" = xdisable; then |
10925 | defaultval=yes | |
10926 | else | |
10927 | defaultval=no | |
10928 | fi | |
10929 | fi | |
10930 | ||
3dd30495 VZ |
10931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dnd" >&5 |
10932 | $as_echo_n "checking for --${enablestring:-enable}-dnd... " >&6; } | |
10933 | # Check whether --enable-dnd was given. | |
10934 | if test "${enable_dnd+set}" = set; then : | |
10935 | enableval=$enable_dnd; | |
a848cd7e | 10936 | if test "$enableval" = yes; then |
3dd30495 | 10937 | wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' |
a848cd7e | 10938 | else |
3dd30495 | 10939 | wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' |
a848cd7e SC |
10940 | fi |
10941 | ||
10942 | else | |
10943 | ||
3dd30495 | 10944 | wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}" |
a848cd7e | 10945 | |
47964710 VS |
10946 | fi |
10947 | ||
a848cd7e | 10948 | |
3dd30495 | 10949 | eval "$wx_cv_use_dnd" |
a848cd7e | 10950 | |
6e198e97 | 10951 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10952 | if test $wxUSE_DRAG_AND_DROP = no; then |
6e198e97 | 10953 | result=yes |
7ac0e38e VZ |
10954 | else |
10955 | result=no | |
6e198e97 | 10956 | fi |
a848cd7e | 10957 | else |
3dd30495 | 10958 | result=$wxUSE_DRAG_AND_DROP |
a848cd7e SC |
10959 | fi |
10960 | ||
3dd30495 VZ |
10961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
10962 | $as_echo "$result" >&6; } | |
6e198e97 | 10963 | |
a848cd7e | 10964 | |
3dd30495 VZ |
10965 | |
10966 | DEFAULT_wxUSE_CONTROLS=none | |
10967 | ||
10968 | enablestring=disable | |
10969 | defaultval= | |
238663c1 | 10970 | if test -z "$defaultval"; then |
6e198e97 VZ |
10971 | if test x"$enablestring" = xdisable; then |
10972 | defaultval=yes | |
10973 | else | |
10974 | defaultval=no | |
10975 | fi | |
10976 | fi | |
10977 | ||
3dd30495 VZ |
10978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-controls" >&5 |
10979 | $as_echo_n "checking for --${enablestring:-enable}-controls... " >&6; } | |
10980 | # Check whether --enable-controls was given. | |
10981 | if test "${enable_controls+set}" = set; then : | |
10982 | enableval=$enable_controls; | |
a848cd7e | 10983 | if test "$enableval" = yes; then |
3dd30495 | 10984 | wx_cv_use_controls='wxUSE_CONTROLS=yes' |
a848cd7e | 10985 | else |
3dd30495 | 10986 | wx_cv_use_controls='wxUSE_CONTROLS=no' |
a848cd7e SC |
10987 | fi |
10988 | ||
10989 | else | |
10990 | ||
3dd30495 | 10991 | wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}" |
a848cd7e | 10992 | |
47964710 VS |
10993 | fi |
10994 | ||
a848cd7e | 10995 | |
3dd30495 | 10996 | eval "$wx_cv_use_controls" |
a848cd7e | 10997 | |
6e198e97 | 10998 | if test x"$enablestring" = xdisable; then |
3dd30495 | 10999 | if test $wxUSE_CONTROLS = no; then |
6e198e97 | 11000 | result=yes |
7ac0e38e VZ |
11001 | else |
11002 | result=no | |
6e198e97 | 11003 | fi |
a848cd7e | 11004 | else |
3dd30495 | 11005 | result=$wxUSE_CONTROLS |
a848cd7e SC |
11006 | fi |
11007 | ||
3dd30495 VZ |
11008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11009 | $as_echo "$result" >&6; } | |
11010 | ||
11011 | ||
11012 | if test "$wxUSE_CONTROLS" = "no"; then | |
11013 | DEFAULT_wxUSE_ACCEL=no | |
11014 | DEFAULT_wxUSE_ANIMATIONCTRL=no | |
11015 | DEFAULT_wxUSE_BANNERWINDOW=no | |
11016 | DEFAULT_wxUSE_BMPBUTTON=no | |
11017 | DEFAULT_wxUSE_BUTTON=no | |
11018 | DEFAULT_wxUSE_CALCTRL=no | |
11019 | DEFAULT_wxUSE_CARET=no | |
11020 | DEFAULT_wxUSE_CHECKBOX=no | |
11021 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
11022 | DEFAULT_wxUSE_CHOICE=no | |
11023 | DEFAULT_wxUSE_CHOICEBOOK=no | |
11024 | DEFAULT_wxUSE_COLLPANE=no | |
11025 | DEFAULT_wxUSE_COLOURPICKERCTRL=no | |
11026 | DEFAULT_wxUSE_COMBOBOX=no | |
11027 | DEFAULT_wxUSE_COMBOBOX=no | |
11028 | DEFAULT_wxUSE_COMMANDLINKBUTTON=no | |
11029 | DEFAULT_wxUSE_DATAVIEWCTRL=no | |
11030 | DEFAULT_wxUSE_DATEPICKCTRL=no | |
11031 | DEFAULT_wxUSE_DETECT_SM=no | |
11032 | DEFAULT_wxUSE_DIRPICKERCTRL=no | |
11033 | DEFAULT_wxUSE_DISPLAY=no | |
11034 | DEFAULT_wxUSE_FILECTRL=no | |
11035 | DEFAULT_wxUSE_FILEPICKERCTRL=no | |
11036 | DEFAULT_wxUSE_FONTPICKERCTRL=no | |
11037 | DEFAULT_wxUSE_GAUGE=no | |
11038 | DEFAULT_wxUSE_GRID=no | |
11039 | DEFAULT_wxUSE_HEADERCTRL=no | |
11040 | DEFAULT_wxUSE_HYPERLINKCTRL=no | |
11041 | DEFAULT_wxUSE_IMAGLIST=no | |
11042 | DEFAULT_wxUSE_LISTBOOK=no | |
11043 | DEFAULT_wxUSE_LISTBOX=no | |
11044 | DEFAULT_wxUSE_LISTCTRL=no | |
11045 | DEFAULT_wxUSE_MARKUP=no | |
11046 | DEFAULT_wxUSE_NOTEBOOK=no | |
11047 | DEFAULT_wxUSE_POPUPWIN=no | |
11048 | DEFAULT_wxUSE_RADIOBOX=no | |
11049 | DEFAULT_wxUSE_RADIOBTN=no | |
11050 | DEFAULT_wxUSE_RICHMSGDLG=no | |
11051 | DEFAULT_wxUSE_RICHTOOLTIP=no | |
11052 | DEFAULT_wxUSE_REARRANGECTRL=no | |
11053 | DEFAULT_wxUSE_SASH=no | |
11054 | DEFAULT_wxUSE_SCROLLBAR=no | |
11055 | DEFAULT_wxUSE_SEARCHCTRL=no | |
11056 | DEFAULT_wxUSE_SLIDER=no | |
11057 | DEFAULT_wxUSE_SPINBTN=no | |
11058 | DEFAULT_wxUSE_SPINCTRL=no | |
11059 | DEFAULT_wxUSE_SPLITTER=no | |
11060 | DEFAULT_wxUSE_STATBMP=no | |
11061 | DEFAULT_wxUSE_STATBOX=no | |
11062 | DEFAULT_wxUSE_STATLINE=no | |
11063 | DEFAULT_wxUSE_STATUSBAR=no | |
11064 | DEFAULT_wxUSE_TIMEPICKCTRL=no | |
11065 | DEFAULT_wxUSE_TIPWINDOW=no | |
11066 | DEFAULT_wxUSE_TOGGLEBTN=no | |
11067 | DEFAULT_wxUSE_TOOLBAR=no | |
11068 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
11069 | DEFAULT_wxUSE_TOOLBOOK=no | |
11070 | DEFAULT_wxUSE_TOOLTIPS=no | |
11071 | DEFAULT_wxUSE_TREEBOOK=no | |
11072 | DEFAULT_wxUSE_TREECTRL=no | |
11073 | DEFAULT_wxUSE_TREELISTCTRL=no | |
11074 | fi | |
6e198e97 | 11075 | |
a848cd7e | 11076 | |
077c7880 | 11077 | enablestring= |
6e198e97 | 11078 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11079 | if test -z "$defaultval"; then |
6e198e97 VZ |
11080 | if test x"$enablestring" = xdisable; then |
11081 | defaultval=yes | |
11082 | else | |
11083 | defaultval=no | |
11084 | fi | |
11085 | fi | |
11086 | ||
3dd30495 VZ |
11087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-markup" >&5 |
11088 | $as_echo_n "checking for --${enablestring:-enable}-markup... " >&6; } | |
11089 | # Check whether --enable-markup was given. | |
11090 | if test "${enable_markup+set}" = set; then : | |
11091 | enableval=$enable_markup; | |
a848cd7e | 11092 | if test "$enableval" = yes; then |
3dd30495 | 11093 | wx_cv_use_markup='wxUSE_MARKUP=yes' |
a848cd7e | 11094 | else |
3dd30495 | 11095 | wx_cv_use_markup='wxUSE_MARKUP=no' |
a848cd7e SC |
11096 | fi |
11097 | ||
11098 | else | |
11099 | ||
3dd30495 | 11100 | wx_cv_use_markup='wxUSE_MARKUP=${'DEFAULT_wxUSE_MARKUP":-$defaultval}" |
a848cd7e | 11101 | |
47964710 VS |
11102 | fi |
11103 | ||
a848cd7e | 11104 | |
3dd30495 | 11105 | eval "$wx_cv_use_markup" |
a848cd7e | 11106 | |
6e198e97 | 11107 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11108 | if test $wxUSE_MARKUP = no; then |
6e198e97 | 11109 | result=yes |
7ac0e38e VZ |
11110 | else |
11111 | result=no | |
6e198e97 | 11112 | fi |
a848cd7e | 11113 | else |
3dd30495 | 11114 | result=$wxUSE_MARKUP |
a848cd7e SC |
11115 | fi |
11116 | ||
3dd30495 VZ |
11117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11118 | $as_echo "$result" >&6; } | |
11119 | ||
6e198e97 | 11120 | |
a848cd7e | 11121 | |
077c7880 | 11122 | enablestring= |
6e198e97 | 11123 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11124 | if test -z "$defaultval"; then |
6e198e97 VZ |
11125 | if test x"$enablestring" = xdisable; then |
11126 | defaultval=yes | |
11127 | else | |
11128 | defaultval=no | |
11129 | fi | |
11130 | fi | |
11131 | ||
3dd30495 VZ |
11132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-accel" >&5 |
11133 | $as_echo_n "checking for --${enablestring:-enable}-accel... " >&6; } | |
11134 | # Check whether --enable-accel was given. | |
11135 | if test "${enable_accel+set}" = set; then : | |
11136 | enableval=$enable_accel; | |
a848cd7e | 11137 | if test "$enableval" = yes; then |
3dd30495 | 11138 | wx_cv_use_accel='wxUSE_ACCEL=yes' |
a848cd7e | 11139 | else |
3dd30495 | 11140 | wx_cv_use_accel='wxUSE_ACCEL=no' |
a848cd7e SC |
11141 | fi |
11142 | ||
11143 | else | |
11144 | ||
3dd30495 | 11145 | wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}" |
a848cd7e | 11146 | |
47964710 VS |
11147 | fi |
11148 | ||
a848cd7e | 11149 | |
3dd30495 | 11150 | eval "$wx_cv_use_accel" |
a848cd7e | 11151 | |
6e198e97 | 11152 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11153 | if test $wxUSE_ACCEL = no; then |
6e198e97 | 11154 | result=yes |
7ac0e38e VZ |
11155 | else |
11156 | result=no | |
6e198e97 | 11157 | fi |
a848cd7e | 11158 | else |
3dd30495 | 11159 | result=$wxUSE_ACCEL |
a848cd7e SC |
11160 | fi |
11161 | ||
3dd30495 VZ |
11162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11163 | $as_echo "$result" >&6; } | |
6e198e97 | 11164 | |
a848cd7e | 11165 | |
077c7880 | 11166 | enablestring= |
6e198e97 | 11167 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11168 | if test -z "$defaultval"; then |
6e198e97 VZ |
11169 | if test x"$enablestring" = xdisable; then |
11170 | defaultval=yes | |
11171 | else | |
11172 | defaultval=no | |
11173 | fi | |
11174 | fi | |
11175 | ||
3dd30495 VZ |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-animatectrl" >&5 |
11177 | $as_echo_n "checking for --${enablestring:-enable}-animatectrl... " >&6; } | |
11178 | # Check whether --enable-animatectrl was given. | |
11179 | if test "${enable_animatectrl+set}" = set; then : | |
11180 | enableval=$enable_animatectrl; | |
a848cd7e | 11181 | if test "$enableval" = yes; then |
3dd30495 | 11182 | wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes' |
a848cd7e | 11183 | else |
3dd30495 | 11184 | wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no' |
a848cd7e SC |
11185 | fi |
11186 | ||
11187 | else | |
11188 | ||
3dd30495 | 11189 | wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}" |
a848cd7e | 11190 | |
47964710 VS |
11191 | fi |
11192 | ||
a848cd7e | 11193 | |
3dd30495 | 11194 | eval "$wx_cv_use_animatectrl" |
a848cd7e | 11195 | |
6e198e97 | 11196 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11197 | if test $wxUSE_ANIMATIONCTRL = no; then |
6e198e97 | 11198 | result=yes |
7ac0e38e VZ |
11199 | else |
11200 | result=no | |
6e198e97 | 11201 | fi |
a848cd7e | 11202 | else |
3dd30495 | 11203 | result=$wxUSE_ANIMATIONCTRL |
a848cd7e SC |
11204 | fi |
11205 | ||
3dd30495 VZ |
11206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11207 | $as_echo "$result" >&6; } | |
6e198e97 | 11208 | |
a848cd7e | 11209 | |
077c7880 | 11210 | enablestring= |
6e198e97 | 11211 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11212 | if test -z "$defaultval"; then |
6e198e97 VZ |
11213 | if test x"$enablestring" = xdisable; then |
11214 | defaultval=yes | |
11215 | else | |
11216 | defaultval=no | |
11217 | fi | |
11218 | fi | |
11219 | ||
3dd30495 VZ |
11220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-bannerwindow" >&5 |
11221 | $as_echo_n "checking for --${enablestring:-enable}-bannerwindow... " >&6; } | |
11222 | # Check whether --enable-bannerwindow was given. | |
11223 | if test "${enable_bannerwindow+set}" = set; then : | |
11224 | enableval=$enable_bannerwindow; | |
a848cd7e | 11225 | if test "$enableval" = yes; then |
3dd30495 | 11226 | wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=yes' |
a848cd7e | 11227 | else |
3dd30495 | 11228 | wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=no' |
a848cd7e SC |
11229 | fi |
11230 | ||
11231 | else | |
11232 | ||
3dd30495 | 11233 | wx_cv_use_bannerwindow='wxUSE_BANNERWINDOW=${'DEFAULT_wxUSE_BANNERWINDOW":-$defaultval}" |
a848cd7e | 11234 | |
47964710 VS |
11235 | fi |
11236 | ||
a848cd7e | 11237 | |
3dd30495 | 11238 | eval "$wx_cv_use_bannerwindow" |
a848cd7e | 11239 | |
6e198e97 | 11240 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11241 | if test $wxUSE_BANNERWINDOW = no; then |
6e198e97 | 11242 | result=yes |
7ac0e38e VZ |
11243 | else |
11244 | result=no | |
6e198e97 | 11245 | fi |
a848cd7e | 11246 | else |
3dd30495 | 11247 | result=$wxUSE_BANNERWINDOW |
a848cd7e SC |
11248 | fi |
11249 | ||
3dd30495 VZ |
11250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11251 | $as_echo "$result" >&6; } | |
6e198e97 | 11252 | |
a848cd7e | 11253 | |
077c7880 | 11254 | enablestring= |
6e198e97 | 11255 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11256 | if test -z "$defaultval"; then |
6e198e97 VZ |
11257 | if test x"$enablestring" = xdisable; then |
11258 | defaultval=yes | |
11259 | else | |
11260 | defaultval=no | |
11261 | fi | |
11262 | fi | |
11263 | ||
3dd30495 VZ |
11264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-artstd" >&5 |
11265 | $as_echo_n "checking for --${enablestring:-enable}-artstd... " >&6; } | |
11266 | # Check whether --enable-artstd was given. | |
11267 | if test "${enable_artstd+set}" = set; then : | |
11268 | enableval=$enable_artstd; | |
a848cd7e | 11269 | if test "$enableval" = yes; then |
3dd30495 | 11270 | wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=yes' |
a848cd7e | 11271 | else |
3dd30495 | 11272 | wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=no' |
a848cd7e SC |
11273 | fi |
11274 | ||
11275 | else | |
11276 | ||
3dd30495 | 11277 | wx_cv_use_artstd='wxUSE_ARTPROVIDER_STD=${'DEFAULT_wxUSE_ARTPROVIDER_STD":-$defaultval}" |
a848cd7e | 11278 | |
47964710 VS |
11279 | fi |
11280 | ||
a848cd7e | 11281 | |
3dd30495 | 11282 | eval "$wx_cv_use_artstd" |
a848cd7e | 11283 | |
6e198e97 | 11284 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11285 | if test $wxUSE_ARTPROVIDER_STD = no; then |
6e198e97 | 11286 | result=yes |
7ac0e38e VZ |
11287 | else |
11288 | result=no | |
6e198e97 | 11289 | fi |
a848cd7e | 11290 | else |
3dd30495 | 11291 | result=$wxUSE_ARTPROVIDER_STD |
a848cd7e SC |
11292 | fi |
11293 | ||
3dd30495 VZ |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11295 | $as_echo "$result" >&6; } | |
6e198e97 | 11296 | |
a848cd7e | 11297 | |
4f167b46 VZ |
11298 | enablestring= |
11299 | defaultval=$wxUSE_ALL_FEATURES | |
11300 | if test -z "$defaultval"; then | |
11301 | if test x"$enablestring" = xdisable; then | |
11302 | defaultval=yes | |
11303 | else | |
11304 | defaultval=no | |
11305 | fi | |
11306 | fi | |
11307 | ||
3dd30495 VZ |
11308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-arttango" >&5 |
11309 | $as_echo_n "checking for --${enablestring:-enable}-arttango... " >&6; } | |
11310 | # Check whether --enable-arttango was given. | |
11311 | if test "${enable_arttango+set}" = set; then : | |
11312 | enableval=$enable_arttango; | |
4f167b46 | 11313 | if test "$enableval" = yes; then |
3dd30495 | 11314 | wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=yes' |
4f167b46 | 11315 | else |
3dd30495 | 11316 | wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=no' |
4f167b46 VZ |
11317 | fi |
11318 | ||
11319 | else | |
11320 | ||
3dd30495 | 11321 | wx_cv_use_arttango='wxUSE_ARTPROVIDER_TANGO=${'DEFAULT_wxUSE_ARTPROVIDER_TANGO":-$defaultval}" |
4f167b46 | 11322 | |
47964710 VS |
11323 | fi |
11324 | ||
4f167b46 | 11325 | |
3dd30495 | 11326 | eval "$wx_cv_use_arttango" |
4f167b46 VZ |
11327 | |
11328 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 11329 | if test $wxUSE_ARTPROVIDER_TANGO = no; then |
4f167b46 | 11330 | result=yes |
7ac0e38e VZ |
11331 | else |
11332 | result=no | |
4f167b46 VZ |
11333 | fi |
11334 | else | |
3dd30495 | 11335 | result=$wxUSE_ARTPROVIDER_TANGO |
4f167b46 VZ |
11336 | fi |
11337 | ||
3dd30495 VZ |
11338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11339 | $as_echo "$result" >&6; } | |
4f167b46 VZ |
11340 | |
11341 | ||
077c7880 | 11342 | enablestring= |
6e198e97 | 11343 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11344 | if test -z "$defaultval"; then |
6e198e97 VZ |
11345 | if test x"$enablestring" = xdisable; then |
11346 | defaultval=yes | |
11347 | else | |
11348 | defaultval=no | |
11349 | fi | |
11350 | fi | |
11351 | ||
3dd30495 VZ |
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-bmpbutton" >&5 |
11353 | $as_echo_n "checking for --${enablestring:-enable}-bmpbutton... " >&6; } | |
11354 | # Check whether --enable-bmpbutton was given. | |
11355 | if test "${enable_bmpbutton+set}" = set; then : | |
11356 | enableval=$enable_bmpbutton; | |
a848cd7e | 11357 | if test "$enableval" = yes; then |
3dd30495 | 11358 | wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' |
a848cd7e | 11359 | else |
3dd30495 | 11360 | wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' |
a848cd7e SC |
11361 | fi |
11362 | ||
11363 | else | |
11364 | ||
3dd30495 | 11365 | wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}" |
a848cd7e | 11366 | |
47964710 VS |
11367 | fi |
11368 | ||
a848cd7e | 11369 | |
3dd30495 | 11370 | eval "$wx_cv_use_bmpbutton" |
a848cd7e | 11371 | |
6e198e97 | 11372 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11373 | if test $wxUSE_BMPBUTTON = no; then |
6e198e97 | 11374 | result=yes |
7ac0e38e VZ |
11375 | else |
11376 | result=no | |
6e198e97 | 11377 | fi |
a848cd7e | 11378 | else |
3dd30495 | 11379 | result=$wxUSE_BMPBUTTON |
a848cd7e SC |
11380 | fi |
11381 | ||
3dd30495 VZ |
11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11383 | $as_echo "$result" >&6; } | |
6e198e97 | 11384 | |
a848cd7e | 11385 | |
077c7880 | 11386 | enablestring= |
6e198e97 | 11387 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11388 | if test -z "$defaultval"; then |
6e198e97 VZ |
11389 | if test x"$enablestring" = xdisable; then |
11390 | defaultval=yes | |
11391 | else | |
11392 | defaultval=no | |
11393 | fi | |
11394 | fi | |
11395 | ||
3dd30495 VZ |
11396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-bmpcombobox" >&5 |
11397 | $as_echo_n "checking for --${enablestring:-enable}-bmpcombobox... " >&6; } | |
11398 | # Check whether --enable-bmpcombobox was given. | |
11399 | if test "${enable_bmpcombobox+set}" = set; then : | |
11400 | enableval=$enable_bmpcombobox; | |
a848cd7e | 11401 | if test "$enableval" = yes; then |
3dd30495 | 11402 | wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes' |
a848cd7e | 11403 | else |
3dd30495 | 11404 | wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no' |
a848cd7e SC |
11405 | fi |
11406 | ||
11407 | else | |
11408 | ||
3dd30495 | 11409 | wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}" |
a848cd7e | 11410 | |
47964710 VS |
11411 | fi |
11412 | ||
a848cd7e | 11413 | |
3dd30495 | 11414 | eval "$wx_cv_use_bmpcombobox" |
a848cd7e | 11415 | |
6e198e97 | 11416 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11417 | if test $wxUSE_BITMAPCOMBOBOX = no; then |
6e198e97 | 11418 | result=yes |
7ac0e38e VZ |
11419 | else |
11420 | result=no | |
6e198e97 | 11421 | fi |
a848cd7e | 11422 | else |
3dd30495 | 11423 | result=$wxUSE_BITMAPCOMBOBOX |
a848cd7e SC |
11424 | fi |
11425 | ||
3dd30495 VZ |
11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11427 | $as_echo "$result" >&6; } | |
6e198e97 | 11428 | |
a848cd7e | 11429 | |
569c7d8c VZ |
11430 | enablestring= |
11431 | defaultval=$wxUSE_ALL_FEATURES | |
11432 | if test -z "$defaultval"; then | |
11433 | if test x"$enablestring" = xdisable; then | |
11434 | defaultval=yes | |
11435 | else | |
11436 | defaultval=no | |
11437 | fi | |
11438 | fi | |
11439 | ||
3dd30495 VZ |
11440 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-button" >&5 |
11441 | $as_echo_n "checking for --${enablestring:-enable}-button... " >&6; } | |
11442 | # Check whether --enable-button was given. | |
11443 | if test "${enable_button+set}" = set; then : | |
11444 | enableval=$enable_button; | |
569c7d8c | 11445 | if test "$enableval" = yes; then |
3dd30495 | 11446 | wx_cv_use_button='wxUSE_BUTTON=yes' |
569c7d8c | 11447 | else |
3dd30495 | 11448 | wx_cv_use_button='wxUSE_BUTTON=no' |
569c7d8c VZ |
11449 | fi |
11450 | ||
11451 | else | |
11452 | ||
3dd30495 | 11453 | wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}" |
569c7d8c VZ |
11454 | |
11455 | fi | |
11456 | ||
11457 | ||
3dd30495 | 11458 | eval "$wx_cv_use_button" |
569c7d8c VZ |
11459 | |
11460 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 11461 | if test $wxUSE_BUTTON = no; then |
569c7d8c VZ |
11462 | result=yes |
11463 | else | |
11464 | result=no | |
11465 | fi | |
11466 | else | |
3dd30495 | 11467 | result=$wxUSE_BUTTON |
569c7d8c VZ |
11468 | fi |
11469 | ||
3dd30495 VZ |
11470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11471 | $as_echo "$result" >&6; } | |
569c7d8c VZ |
11472 | |
11473 | ||
077c7880 | 11474 | enablestring= |
6e198e97 | 11475 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11476 | if test -z "$defaultval"; then |
6e198e97 VZ |
11477 | if test x"$enablestring" = xdisable; then |
11478 | defaultval=yes | |
11479 | else | |
11480 | defaultval=no | |
11481 | fi | |
11482 | fi | |
11483 | ||
3dd30495 VZ |
11484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-calendar" >&5 |
11485 | $as_echo_n "checking for --${enablestring:-enable}-calendar... " >&6; } | |
11486 | # Check whether --enable-calendar was given. | |
11487 | if test "${enable_calendar+set}" = set; then : | |
11488 | enableval=$enable_calendar; | |
a848cd7e | 11489 | if test "$enableval" = yes; then |
3dd30495 | 11490 | wx_cv_use_calendar='wxUSE_CALCTRL=yes' |
a848cd7e | 11491 | else |
3dd30495 | 11492 | wx_cv_use_calendar='wxUSE_CALCTRL=no' |
a848cd7e SC |
11493 | fi |
11494 | ||
11495 | else | |
11496 | ||
3dd30495 | 11497 | wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}" |
a848cd7e | 11498 | |
47964710 VS |
11499 | fi |
11500 | ||
a848cd7e | 11501 | |
3dd30495 | 11502 | eval "$wx_cv_use_calendar" |
a848cd7e | 11503 | |
6e198e97 | 11504 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11505 | if test $wxUSE_CALCTRL = no; then |
6e198e97 | 11506 | result=yes |
7ac0e38e VZ |
11507 | else |
11508 | result=no | |
6e198e97 | 11509 | fi |
a848cd7e | 11510 | else |
3dd30495 | 11511 | result=$wxUSE_CALCTRL |
a848cd7e SC |
11512 | fi |
11513 | ||
3dd30495 VZ |
11514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11515 | $as_echo "$result" >&6; } | |
6e198e97 | 11516 | |
a848cd7e | 11517 | |
077c7880 | 11518 | enablestring= |
6e198e97 | 11519 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11520 | if test -z "$defaultval"; then |
6e198e97 VZ |
11521 | if test x"$enablestring" = xdisable; then |
11522 | defaultval=yes | |
11523 | else | |
11524 | defaultval=no | |
11525 | fi | |
11526 | fi | |
11527 | ||
3dd30495 VZ |
11528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-caret" >&5 |
11529 | $as_echo_n "checking for --${enablestring:-enable}-caret... " >&6; } | |
11530 | # Check whether --enable-caret was given. | |
11531 | if test "${enable_caret+set}" = set; then : | |
11532 | enableval=$enable_caret; | |
a848cd7e | 11533 | if test "$enableval" = yes; then |
3dd30495 | 11534 | wx_cv_use_caret='wxUSE_CARET=yes' |
a848cd7e | 11535 | else |
3dd30495 | 11536 | wx_cv_use_caret='wxUSE_CARET=no' |
a848cd7e SC |
11537 | fi |
11538 | ||
11539 | else | |
11540 | ||
3dd30495 | 11541 | wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}" |
a848cd7e | 11542 | |
47964710 VS |
11543 | fi |
11544 | ||
a848cd7e | 11545 | |
3dd30495 | 11546 | eval "$wx_cv_use_caret" |
a848cd7e | 11547 | |
6e198e97 | 11548 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11549 | if test $wxUSE_CARET = no; then |
6e198e97 | 11550 | result=yes |
7ac0e38e VZ |
11551 | else |
11552 | result=no | |
6e198e97 | 11553 | fi |
a848cd7e | 11554 | else |
3dd30495 | 11555 | result=$wxUSE_CARET |
a848cd7e SC |
11556 | fi |
11557 | ||
3dd30495 VZ |
11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11559 | $as_echo "$result" >&6; } | |
6e198e97 | 11560 | |
a848cd7e | 11561 | |
077c7880 | 11562 | enablestring= |
6e198e97 | 11563 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11564 | if test -z "$defaultval"; then |
6e198e97 VZ |
11565 | if test x"$enablestring" = xdisable; then |
11566 | defaultval=yes | |
11567 | else | |
11568 | defaultval=no | |
11569 | fi | |
11570 | fi | |
11571 | ||
3dd30495 VZ |
11572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-checkbox" >&5 |
11573 | $as_echo_n "checking for --${enablestring:-enable}-checkbox... " >&6; } | |
11574 | # Check whether --enable-checkbox was given. | |
11575 | if test "${enable_checkbox+set}" = set; then : | |
11576 | enableval=$enable_checkbox; | |
0093c2fc | 11577 | if test "$enableval" = yes; then |
3dd30495 | 11578 | wx_cv_use_checkbox='wxUSE_CHECKBOX=yes' |
0093c2fc | 11579 | else |
3dd30495 | 11580 | wx_cv_use_checkbox='wxUSE_CHECKBOX=no' |
0093c2fc VZ |
11581 | fi |
11582 | ||
11583 | else | |
11584 | ||
3dd30495 | 11585 | wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}" |
0093c2fc | 11586 | |
47964710 VS |
11587 | fi |
11588 | ||
0093c2fc | 11589 | |
3dd30495 | 11590 | eval "$wx_cv_use_checkbox" |
0093c2fc | 11591 | |
6e198e97 | 11592 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11593 | if test $wxUSE_CHECKBOX = no; then |
6e198e97 | 11594 | result=yes |
7ac0e38e VZ |
11595 | else |
11596 | result=no | |
6e198e97 | 11597 | fi |
0093c2fc | 11598 | else |
3dd30495 | 11599 | result=$wxUSE_CHECKBOX |
0093c2fc VZ |
11600 | fi |
11601 | ||
3dd30495 VZ |
11602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11603 | $as_echo "$result" >&6; } | |
6e198e97 | 11604 | |
0093c2fc | 11605 | |
077c7880 | 11606 | enablestring= |
6e198e97 | 11607 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11608 | if test -z "$defaultval"; then |
6e198e97 VZ |
11609 | if test x"$enablestring" = xdisable; then |
11610 | defaultval=yes | |
11611 | else | |
11612 | defaultval=no | |
11613 | fi | |
11614 | fi | |
11615 | ||
3dd30495 VZ |
11616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-checklst" >&5 |
11617 | $as_echo_n "checking for --${enablestring:-enable}-checklst... " >&6; } | |
11618 | # Check whether --enable-checklst was given. | |
11619 | if test "${enable_checklst+set}" = set; then : | |
11620 | enableval=$enable_checklst; | |
5ec3bc43 | 11621 | if test "$enableval" = yes; then |
3dd30495 | 11622 | wx_cv_use_checklst='wxUSE_CHECKLST=yes' |
5ec3bc43 | 11623 | else |
3dd30495 | 11624 | wx_cv_use_checklst='wxUSE_CHECKLST=no' |
5ec3bc43 JS |
11625 | fi |
11626 | ||
11627 | else | |
11628 | ||
3dd30495 | 11629 | wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}" |
5ec3bc43 | 11630 | |
47964710 VS |
11631 | fi |
11632 | ||
5ec3bc43 | 11633 | |
3dd30495 | 11634 | eval "$wx_cv_use_checklst" |
5ec3bc43 | 11635 | |
6e198e97 | 11636 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11637 | if test $wxUSE_CHECKLST = no; then |
6e198e97 | 11638 | result=yes |
7ac0e38e VZ |
11639 | else |
11640 | result=no | |
6e198e97 | 11641 | fi |
5ec3bc43 | 11642 | else |
3dd30495 | 11643 | result=$wxUSE_CHECKLST |
5ec3bc43 JS |
11644 | fi |
11645 | ||
3dd30495 VZ |
11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11647 | $as_echo "$result" >&6; } | |
6e198e97 | 11648 | |
5ec3bc43 | 11649 | |
077c7880 | 11650 | enablestring= |
6e198e97 | 11651 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11652 | if test -z "$defaultval"; then |
6e198e97 VZ |
11653 | if test x"$enablestring" = xdisable; then |
11654 | defaultval=yes | |
11655 | else | |
11656 | defaultval=no | |
11657 | fi | |
11658 | fi | |
11659 | ||
3dd30495 VZ |
11660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-choice" >&5 |
11661 | $as_echo_n "checking for --${enablestring:-enable}-choice... " >&6; } | |
11662 | # Check whether --enable-choice was given. | |
11663 | if test "${enable_choice+set}" = set; then : | |
11664 | enableval=$enable_choice; | |
a848cd7e | 11665 | if test "$enableval" = yes; then |
3dd30495 | 11666 | wx_cv_use_choice='wxUSE_CHOICE=yes' |
a848cd7e | 11667 | else |
3dd30495 | 11668 | wx_cv_use_choice='wxUSE_CHOICE=no' |
a848cd7e SC |
11669 | fi |
11670 | ||
11671 | else | |
11672 | ||
3dd30495 | 11673 | wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}" |
a848cd7e | 11674 | |
47964710 VS |
11675 | fi |
11676 | ||
a848cd7e | 11677 | |
3dd30495 | 11678 | eval "$wx_cv_use_choice" |
a848cd7e | 11679 | |
6e198e97 | 11680 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11681 | if test $wxUSE_CHOICE = no; then |
6e198e97 | 11682 | result=yes |
7ac0e38e VZ |
11683 | else |
11684 | result=no | |
6e198e97 | 11685 | fi |
a848cd7e | 11686 | else |
3dd30495 | 11687 | result=$wxUSE_CHOICE |
a848cd7e SC |
11688 | fi |
11689 | ||
3dd30495 VZ |
11690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11691 | $as_echo "$result" >&6; } | |
6e198e97 | 11692 | |
a848cd7e | 11693 | |
077c7880 | 11694 | enablestring= |
6e198e97 | 11695 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11696 | if test -z "$defaultval"; then |
6e198e97 VZ |
11697 | if test x"$enablestring" = xdisable; then |
11698 | defaultval=yes | |
11699 | else | |
11700 | defaultval=no | |
11701 | fi | |
11702 | fi | |
11703 | ||
3dd30495 VZ |
11704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-choicebook" >&5 |
11705 | $as_echo_n "checking for --${enablestring:-enable}-choicebook... " >&6; } | |
11706 | # Check whether --enable-choicebook was given. | |
11707 | if test "${enable_choicebook+set}" = set; then : | |
11708 | enableval=$enable_choicebook; | |
a848cd7e | 11709 | if test "$enableval" = yes; then |
3dd30495 | 11710 | wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' |
a848cd7e | 11711 | else |
3dd30495 | 11712 | wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no' |
a848cd7e SC |
11713 | fi |
11714 | ||
11715 | else | |
11716 | ||
3dd30495 | 11717 | wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}" |
a848cd7e | 11718 | |
47964710 VS |
11719 | fi |
11720 | ||
a848cd7e | 11721 | |
3dd30495 | 11722 | eval "$wx_cv_use_choicebook" |
a848cd7e | 11723 | |
6e198e97 | 11724 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11725 | if test $wxUSE_CHOICEBOOK = no; then |
6e198e97 | 11726 | result=yes |
7ac0e38e VZ |
11727 | else |
11728 | result=no | |
6e198e97 | 11729 | fi |
a848cd7e | 11730 | else |
3dd30495 | 11731 | result=$wxUSE_CHOICEBOOK |
a848cd7e SC |
11732 | fi |
11733 | ||
3dd30495 VZ |
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11735 | $as_echo "$result" >&6; } | |
6e198e97 | 11736 | |
a848cd7e | 11737 | |
524cb040 VZ |
11738 | enablestring= |
11739 | defaultval=$wxUSE_ALL_FEATURES | |
11740 | if test -z "$defaultval"; then | |
11741 | if test x"$enablestring" = xdisable; then | |
11742 | defaultval=yes | |
11743 | else | |
11744 | defaultval=no | |
11745 | fi | |
11746 | fi | |
11747 | ||
3dd30495 VZ |
11748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-collpane" >&5 |
11749 | $as_echo_n "checking for --${enablestring:-enable}-collpane... " >&6; } | |
11750 | # Check whether --enable-collpane was given. | |
11751 | if test "${enable_collpane+set}" = set; then : | |
11752 | enableval=$enable_collpane; | |
524cb040 | 11753 | if test "$enableval" = yes; then |
3dd30495 | 11754 | wx_cv_use_collpane='wxUSE_COLLPANE=yes' |
524cb040 | 11755 | else |
3dd30495 | 11756 | wx_cv_use_collpane='wxUSE_COLLPANE=no' |
524cb040 VZ |
11757 | fi |
11758 | ||
11759 | else | |
11760 | ||
3dd30495 | 11761 | wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}" |
524cb040 VZ |
11762 | |
11763 | fi | |
11764 | ||
11765 | ||
3dd30495 | 11766 | eval "$wx_cv_use_collpane" |
524cb040 VZ |
11767 | |
11768 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 11769 | if test $wxUSE_COLLPANE = no; then |
524cb040 VZ |
11770 | result=yes |
11771 | else | |
11772 | result=no | |
11773 | fi | |
11774 | else | |
3dd30495 | 11775 | result=$wxUSE_COLLPANE |
524cb040 VZ |
11776 | fi |
11777 | ||
3dd30495 VZ |
11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11779 | $as_echo "$result" >&6; } | |
a848cd7e SC |
11780 | |
11781 | ||
077c7880 | 11782 | enablestring= |
6e198e97 | 11783 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11784 | if test -z "$defaultval"; then |
6e198e97 VZ |
11785 | if test x"$enablestring" = xdisable; then |
11786 | defaultval=yes | |
11787 | else | |
11788 | defaultval=no | |
11789 | fi | |
11790 | fi | |
11791 | ||
3dd30495 VZ |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-colourpicker" >&5 |
11793 | $as_echo_n "checking for --${enablestring:-enable}-colourpicker... " >&6; } | |
11794 | # Check whether --enable-colourpicker was given. | |
11795 | if test "${enable_colourpicker+set}" = set; then : | |
11796 | enableval=$enable_colourpicker; | |
a848cd7e | 11797 | if test "$enableval" = yes; then |
3dd30495 | 11798 | wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes' |
a848cd7e | 11799 | else |
3dd30495 | 11800 | wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no' |
a848cd7e SC |
11801 | fi |
11802 | ||
11803 | else | |
11804 | ||
3dd30495 | 11805 | wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}" |
a848cd7e | 11806 | |
47964710 VS |
11807 | fi |
11808 | ||
a848cd7e | 11809 | |
3dd30495 | 11810 | eval "$wx_cv_use_colourpicker" |
a848cd7e | 11811 | |
6e198e97 | 11812 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11813 | if test $wxUSE_COLOURPICKERCTRL = no; then |
6e198e97 | 11814 | result=yes |
7ac0e38e VZ |
11815 | else |
11816 | result=no | |
6e198e97 | 11817 | fi |
a848cd7e | 11818 | else |
3dd30495 | 11819 | result=$wxUSE_COLOURPICKERCTRL |
a848cd7e SC |
11820 | fi |
11821 | ||
3dd30495 VZ |
11822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11823 | $as_echo "$result" >&6; } | |
6e198e97 | 11824 | |
a848cd7e | 11825 | |
077c7880 | 11826 | enablestring= |
6e198e97 | 11827 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11828 | if test -z "$defaultval"; then |
6e198e97 VZ |
11829 | if test x"$enablestring" = xdisable; then |
11830 | defaultval=yes | |
11831 | else | |
11832 | defaultval=no | |
11833 | fi | |
11834 | fi | |
11835 | ||
3dd30495 VZ |
11836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-combobox" >&5 |
11837 | $as_echo_n "checking for --${enablestring:-enable}-combobox... " >&6; } | |
11838 | # Check whether --enable-combobox was given. | |
11839 | if test "${enable_combobox+set}" = set; then : | |
11840 | enableval=$enable_combobox; | |
319c5ed4 | 11841 | if test "$enableval" = yes; then |
3dd30495 | 11842 | wx_cv_use_combobox='wxUSE_COMBOBOX=yes' |
319c5ed4 | 11843 | else |
3dd30495 | 11844 | wx_cv_use_combobox='wxUSE_COMBOBOX=no' |
319c5ed4 VZ |
11845 | fi |
11846 | ||
11847 | else | |
11848 | ||
3dd30495 | 11849 | wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}" |
319c5ed4 | 11850 | |
47964710 VS |
11851 | fi |
11852 | ||
319c5ed4 | 11853 | |
3dd30495 | 11854 | eval "$wx_cv_use_combobox" |
319c5ed4 | 11855 | |
6e198e97 | 11856 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11857 | if test $wxUSE_COMBOBOX = no; then |
6e198e97 | 11858 | result=yes |
7ac0e38e VZ |
11859 | else |
11860 | result=no | |
6e198e97 | 11861 | fi |
319c5ed4 | 11862 | else |
3dd30495 | 11863 | result=$wxUSE_COMBOBOX |
319c5ed4 VZ |
11864 | fi |
11865 | ||
3dd30495 VZ |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11867 | $as_echo "$result" >&6; } | |
6e198e97 | 11868 | |
319c5ed4 | 11869 | |
077c7880 | 11870 | enablestring= |
6e198e97 | 11871 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11872 | if test -z "$defaultval"; then |
6e198e97 VZ |
11873 | if test x"$enablestring" = xdisable; then |
11874 | defaultval=yes | |
11875 | else | |
11876 | defaultval=no | |
11877 | fi | |
11878 | fi | |
11879 | ||
3dd30495 VZ |
11880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-comboctrl" >&5 |
11881 | $as_echo_n "checking for --${enablestring:-enable}-comboctrl... " >&6; } | |
11882 | # Check whether --enable-comboctrl was given. | |
11883 | if test "${enable_comboctrl+set}" = set; then : | |
11884 | enableval=$enable_comboctrl; | |
a848cd7e | 11885 | if test "$enableval" = yes; then |
3dd30495 | 11886 | wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes' |
a848cd7e | 11887 | else |
3dd30495 | 11888 | wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no' |
a848cd7e SC |
11889 | fi |
11890 | ||
11891 | else | |
11892 | ||
3dd30495 | 11893 | wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}" |
a848cd7e | 11894 | |
47964710 VS |
11895 | fi |
11896 | ||
a848cd7e | 11897 | |
3dd30495 | 11898 | eval "$wx_cv_use_comboctrl" |
a848cd7e | 11899 | |
6e198e97 | 11900 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11901 | if test $wxUSE_COMBOCTRL = no; then |
6e198e97 | 11902 | result=yes |
7ac0e38e VZ |
11903 | else |
11904 | result=no | |
6e198e97 | 11905 | fi |
a848cd7e | 11906 | else |
3dd30495 | 11907 | result=$wxUSE_COMBOCTRL |
a848cd7e SC |
11908 | fi |
11909 | ||
3dd30495 VZ |
11910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11911 | $as_echo "$result" >&6; } | |
6e198e97 | 11912 | |
a848cd7e | 11913 | |
077c7880 | 11914 | enablestring= |
6e198e97 | 11915 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11916 | if test -z "$defaultval"; then |
6e198e97 VZ |
11917 | if test x"$enablestring" = xdisable; then |
11918 | defaultval=yes | |
11919 | else | |
11920 | defaultval=no | |
11921 | fi | |
11922 | fi | |
11923 | ||
3dd30495 VZ |
11924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-commandlinkbutton" >&5 |
11925 | $as_echo_n "checking for --${enablestring:-enable}-commandlinkbutton... " >&6; } | |
11926 | # Check whether --enable-commandlinkbutton was given. | |
11927 | if test "${enable_commandlinkbutton+set}" = set; then : | |
11928 | enableval=$enable_commandlinkbutton; | |
a848cd7e | 11929 | if test "$enableval" = yes; then |
3dd30495 | 11930 | wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=yes' |
a848cd7e | 11931 | else |
3dd30495 | 11932 | wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=no' |
a848cd7e SC |
11933 | fi |
11934 | ||
11935 | else | |
11936 | ||
3dd30495 | 11937 | wx_cv_use_commandlinkbutton='wxUSE_COMMANDLINKBUTTON=${'DEFAULT_wxUSE_COMMANDLINKBUTTON":-$defaultval}" |
a848cd7e | 11938 | |
47964710 VS |
11939 | fi |
11940 | ||
a848cd7e | 11941 | |
3dd30495 | 11942 | eval "$wx_cv_use_commandlinkbutton" |
a848cd7e | 11943 | |
6e198e97 | 11944 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11945 | if test $wxUSE_COMMANDLINKBUTTON = no; then |
6e198e97 | 11946 | result=yes |
7ac0e38e VZ |
11947 | else |
11948 | result=no | |
6e198e97 | 11949 | fi |
a848cd7e | 11950 | else |
3dd30495 | 11951 | result=$wxUSE_COMMANDLINKBUTTON |
a848cd7e SC |
11952 | fi |
11953 | ||
3dd30495 VZ |
11954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11955 | $as_echo "$result" >&6; } | |
6e198e97 | 11956 | |
a848cd7e | 11957 | |
077c7880 | 11958 | enablestring= |
6e198e97 | 11959 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 11960 | if test -z "$defaultval"; then |
6e198e97 VZ |
11961 | if test x"$enablestring" = xdisable; then |
11962 | defaultval=yes | |
11963 | else | |
11964 | defaultval=no | |
11965 | fi | |
11966 | fi | |
11967 | ||
3dd30495 VZ |
11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dataviewctrl" >&5 |
11969 | $as_echo_n "checking for --${enablestring:-enable}-dataviewctrl... " >&6; } | |
11970 | # Check whether --enable-dataviewctrl was given. | |
11971 | if test "${enable_dataviewctrl+set}" = set; then : | |
11972 | enableval=$enable_dataviewctrl; | |
a848cd7e | 11973 | if test "$enableval" = yes; then |
3dd30495 | 11974 | wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' |
a848cd7e | 11975 | else |
3dd30495 | 11976 | wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' |
a848cd7e SC |
11977 | fi |
11978 | ||
11979 | else | |
11980 | ||
3dd30495 | 11981 | wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}" |
a848cd7e | 11982 | |
47964710 VS |
11983 | fi |
11984 | ||
a848cd7e | 11985 | |
3dd30495 | 11986 | eval "$wx_cv_use_dataviewctrl" |
a848cd7e | 11987 | |
6e198e97 | 11988 | if test x"$enablestring" = xdisable; then |
3dd30495 | 11989 | if test $wxUSE_DATAVIEWCTRL = no; then |
6e198e97 | 11990 | result=yes |
7ac0e38e VZ |
11991 | else |
11992 | result=no | |
6e198e97 | 11993 | fi |
a848cd7e | 11994 | else |
3dd30495 | 11995 | result=$wxUSE_DATAVIEWCTRL |
a848cd7e SC |
11996 | fi |
11997 | ||
3dd30495 VZ |
11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
11999 | $as_echo "$result" >&6; } | |
6e198e97 | 12000 | |
a848cd7e | 12001 | |
077c7880 | 12002 | enablestring= |
6e198e97 | 12003 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12004 | if test -z "$defaultval"; then |
6e198e97 VZ |
12005 | if test x"$enablestring" = xdisable; then |
12006 | defaultval=yes | |
12007 | else | |
12008 | defaultval=no | |
12009 | fi | |
12010 | fi | |
12011 | ||
3dd30495 VZ |
12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-datepick" >&5 |
12013 | $as_echo_n "checking for --${enablestring:-enable}-datepick... " >&6; } | |
12014 | # Check whether --enable-datepick was given. | |
12015 | if test "${enable_datepick+set}" = set; then : | |
12016 | enableval=$enable_datepick; | |
a848cd7e | 12017 | if test "$enableval" = yes; then |
3dd30495 | 12018 | wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' |
a848cd7e | 12019 | else |
3dd30495 | 12020 | wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no' |
a848cd7e SC |
12021 | fi |
12022 | ||
12023 | else | |
12024 | ||
3dd30495 | 12025 | wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}" |
a848cd7e | 12026 | |
47964710 VS |
12027 | fi |
12028 | ||
a848cd7e | 12029 | |
3dd30495 | 12030 | eval "$wx_cv_use_datepick" |
a848cd7e | 12031 | |
6e198e97 | 12032 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12033 | if test $wxUSE_DATEPICKCTRL = no; then |
6e198e97 | 12034 | result=yes |
7ac0e38e VZ |
12035 | else |
12036 | result=no | |
6e198e97 | 12037 | fi |
a848cd7e | 12038 | else |
3dd30495 | 12039 | result=$wxUSE_DATEPICKCTRL |
a848cd7e SC |
12040 | fi |
12041 | ||
3dd30495 VZ |
12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12043 | $as_echo "$result" >&6; } | |
6e198e97 | 12044 | |
a848cd7e | 12045 | |
077c7880 | 12046 | enablestring= |
6e198e97 | 12047 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12048 | if test -z "$defaultval"; then |
6e198e97 VZ |
12049 | if test x"$enablestring" = xdisable; then |
12050 | defaultval=yes | |
12051 | else | |
12052 | defaultval=no | |
12053 | fi | |
12054 | fi | |
12055 | ||
3dd30495 VZ |
12056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-detect_sm" >&5 |
12057 | $as_echo_n "checking for --${enablestring:-enable}-detect_sm... " >&6; } | |
12058 | # Check whether --enable-detect_sm was given. | |
12059 | if test "${enable_detect_sm+set}" = set; then : | |
12060 | enableval=$enable_detect_sm; | |
a848cd7e | 12061 | if test "$enableval" = yes; then |
3dd30495 | 12062 | wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes' |
a848cd7e | 12063 | else |
3dd30495 | 12064 | wx_cv_use_detect_sm='wxUSE_DETECT_SM=no' |
a848cd7e SC |
12065 | fi |
12066 | ||
12067 | else | |
12068 | ||
3dd30495 | 12069 | wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}" |
a848cd7e | 12070 | |
47964710 VS |
12071 | fi |
12072 | ||
a848cd7e | 12073 | |
3dd30495 | 12074 | eval "$wx_cv_use_detect_sm" |
a848cd7e | 12075 | |
6e198e97 | 12076 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12077 | if test $wxUSE_DETECT_SM = no; then |
6e198e97 | 12078 | result=yes |
7ac0e38e VZ |
12079 | else |
12080 | result=no | |
6e198e97 | 12081 | fi |
a848cd7e | 12082 | else |
3dd30495 | 12083 | result=$wxUSE_DETECT_SM |
a848cd7e SC |
12084 | fi |
12085 | ||
3dd30495 VZ |
12086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12087 | $as_echo "$result" >&6; } | |
6e198e97 | 12088 | |
a848cd7e | 12089 | |
077c7880 | 12090 | enablestring= |
6e198e97 | 12091 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12092 | if test -z "$defaultval"; then |
6e198e97 VZ |
12093 | if test x"$enablestring" = xdisable; then |
12094 | defaultval=yes | |
12095 | else | |
12096 | defaultval=no | |
12097 | fi | |
12098 | fi | |
12099 | ||
3dd30495 VZ |
12100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dirpicker" >&5 |
12101 | $as_echo_n "checking for --${enablestring:-enable}-dirpicker... " >&6; } | |
12102 | # Check whether --enable-dirpicker was given. | |
12103 | if test "${enable_dirpicker+set}" = set; then : | |
12104 | enableval=$enable_dirpicker; | |
a848cd7e | 12105 | if test "$enableval" = yes; then |
3dd30495 | 12106 | wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes' |
a848cd7e | 12107 | else |
3dd30495 | 12108 | wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no' |
a848cd7e SC |
12109 | fi |
12110 | ||
12111 | else | |
12112 | ||
3dd30495 | 12113 | wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}" |
a848cd7e | 12114 | |
47964710 VS |
12115 | fi |
12116 | ||
a848cd7e | 12117 | |
3dd30495 | 12118 | eval "$wx_cv_use_dirpicker" |
a848cd7e | 12119 | |
6e198e97 | 12120 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12121 | if test $wxUSE_DIRPICKERCTRL = no; then |
6e198e97 | 12122 | result=yes |
7ac0e38e VZ |
12123 | else |
12124 | result=no | |
6e198e97 | 12125 | fi |
a848cd7e | 12126 | else |
3dd30495 | 12127 | result=$wxUSE_DIRPICKERCTRL |
a848cd7e SC |
12128 | fi |
12129 | ||
3dd30495 VZ |
12130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12131 | $as_echo "$result" >&6; } | |
6e198e97 | 12132 | |
a848cd7e | 12133 | |
077c7880 | 12134 | enablestring= |
6e198e97 | 12135 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12136 | if test -z "$defaultval"; then |
6e198e97 VZ |
12137 | if test x"$enablestring" = xdisable; then |
12138 | defaultval=yes | |
12139 | else | |
12140 | defaultval=no | |
12141 | fi | |
12142 | fi | |
12143 | ||
3dd30495 VZ |
12144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-display" >&5 |
12145 | $as_echo_n "checking for --${enablestring:-enable}-display... " >&6; } | |
12146 | # Check whether --enable-display was given. | |
12147 | if test "${enable_display+set}" = set; then : | |
12148 | enableval=$enable_display; | |
a848cd7e | 12149 | if test "$enableval" = yes; then |
3dd30495 | 12150 | wx_cv_use_display='wxUSE_DISPLAY=yes' |
a848cd7e | 12151 | else |
3dd30495 | 12152 | wx_cv_use_display='wxUSE_DISPLAY=no' |
a848cd7e SC |
12153 | fi |
12154 | ||
12155 | else | |
12156 | ||
3dd30495 | 12157 | wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}" |
a848cd7e | 12158 | |
47964710 VS |
12159 | fi |
12160 | ||
a848cd7e | 12161 | |
3dd30495 | 12162 | eval "$wx_cv_use_display" |
a848cd7e | 12163 | |
6e198e97 | 12164 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12165 | if test $wxUSE_DISPLAY = no; then |
6e198e97 | 12166 | result=yes |
7ac0e38e VZ |
12167 | else |
12168 | result=no | |
6e198e97 | 12169 | fi |
a848cd7e | 12170 | else |
3dd30495 | 12171 | result=$wxUSE_DISPLAY |
a848cd7e SC |
12172 | fi |
12173 | ||
3dd30495 VZ |
12174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12175 | $as_echo "$result" >&6; } | |
6e198e97 | 12176 | |
a848cd7e | 12177 | |
077c7880 | 12178 | enablestring= |
6e198e97 | 12179 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12180 | if test -z "$defaultval"; then |
6e198e97 VZ |
12181 | if test x"$enablestring" = xdisable; then |
12182 | defaultval=yes | |
12183 | else | |
12184 | defaultval=no | |
12185 | fi | |
12186 | fi | |
12187 | ||
3dd30495 VZ |
12188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-editablebox" >&5 |
12189 | $as_echo_n "checking for --${enablestring:-enable}-editablebox... " >&6; } | |
12190 | # Check whether --enable-editablebox was given. | |
12191 | if test "${enable_editablebox+set}" = set; then : | |
12192 | enableval=$enable_editablebox; | |
a848cd7e | 12193 | if test "$enableval" = yes; then |
3dd30495 | 12194 | wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes' |
a848cd7e | 12195 | else |
3dd30495 | 12196 | wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no' |
a848cd7e SC |
12197 | fi |
12198 | ||
12199 | else | |
12200 | ||
3dd30495 | 12201 | wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}" |
a848cd7e | 12202 | |
47964710 VS |
12203 | fi |
12204 | ||
a848cd7e | 12205 | |
3dd30495 | 12206 | eval "$wx_cv_use_editablebox" |
a848cd7e | 12207 | |
6e198e97 | 12208 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12209 | if test $wxUSE_EDITABLELISTBOX = no; then |
6e198e97 | 12210 | result=yes |
7ac0e38e VZ |
12211 | else |
12212 | result=no | |
6e198e97 | 12213 | fi |
a848cd7e | 12214 | else |
3dd30495 | 12215 | result=$wxUSE_EDITABLELISTBOX |
a848cd7e SC |
12216 | fi |
12217 | ||
3dd30495 VZ |
12218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12219 | $as_echo "$result" >&6; } | |
6e198e97 | 12220 | |
a848cd7e | 12221 | |
077c7880 | 12222 | enablestring= |
6e198e97 | 12223 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12224 | if test -z "$defaultval"; then |
6e198e97 VZ |
12225 | if test x"$enablestring" = xdisable; then |
12226 | defaultval=yes | |
12227 | else | |
12228 | defaultval=no | |
12229 | fi | |
12230 | fi | |
12231 | ||
3dd30495 VZ |
12232 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-filectrl" >&5 |
12233 | $as_echo_n "checking for --${enablestring:-enable}-filectrl... " >&6; } | |
12234 | # Check whether --enable-filectrl was given. | |
12235 | if test "${enable_filectrl+set}" = set; then : | |
12236 | enableval=$enable_filectrl; | |
a848cd7e | 12237 | if test "$enableval" = yes; then |
3dd30495 | 12238 | wx_cv_use_filectrl='wxUSE_FILECTRL=yes' |
a848cd7e | 12239 | else |
3dd30495 | 12240 | wx_cv_use_filectrl='wxUSE_FILECTRL=no' |
a848cd7e SC |
12241 | fi |
12242 | ||
12243 | else | |
12244 | ||
3dd30495 | 12245 | wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}" |
a848cd7e | 12246 | |
47964710 VS |
12247 | fi |
12248 | ||
a848cd7e | 12249 | |
3dd30495 | 12250 | eval "$wx_cv_use_filectrl" |
a848cd7e | 12251 | |
6e198e97 | 12252 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12253 | if test $wxUSE_FILECTRL = no; then |
6e198e97 | 12254 | result=yes |
7ac0e38e VZ |
12255 | else |
12256 | result=no | |
6e198e97 | 12257 | fi |
a848cd7e | 12258 | else |
3dd30495 | 12259 | result=$wxUSE_FILECTRL |
a848cd7e SC |
12260 | fi |
12261 | ||
3dd30495 VZ |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12263 | $as_echo "$result" >&6; } | |
6e198e97 | 12264 | |
a848cd7e | 12265 | |
077c7880 | 12266 | enablestring= |
6e198e97 | 12267 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12268 | if test -z "$defaultval"; then |
6e198e97 VZ |
12269 | if test x"$enablestring" = xdisable; then |
12270 | defaultval=yes | |
12271 | else | |
12272 | defaultval=no | |
12273 | fi | |
12274 | fi | |
12275 | ||
3dd30495 VZ |
12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-filepicker" >&5 |
12277 | $as_echo_n "checking for --${enablestring:-enable}-filepicker... " >&6; } | |
12278 | # Check whether --enable-filepicker was given. | |
12279 | if test "${enable_filepicker+set}" = set; then : | |
12280 | enableval=$enable_filepicker; | |
a848cd7e | 12281 | if test "$enableval" = yes; then |
3dd30495 | 12282 | wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes' |
a848cd7e | 12283 | else |
3dd30495 | 12284 | wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no' |
a848cd7e SC |
12285 | fi |
12286 | ||
12287 | else | |
12288 | ||
3dd30495 | 12289 | wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}" |
a848cd7e | 12290 | |
47964710 VS |
12291 | fi |
12292 | ||
a848cd7e | 12293 | |
3dd30495 | 12294 | eval "$wx_cv_use_filepicker" |
a848cd7e | 12295 | |
6e198e97 | 12296 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12297 | if test $wxUSE_FILEPICKERCTRL = no; then |
6e198e97 | 12298 | result=yes |
7ac0e38e VZ |
12299 | else |
12300 | result=no | |
6e198e97 | 12301 | fi |
a848cd7e | 12302 | else |
3dd30495 | 12303 | result=$wxUSE_FILEPICKERCTRL |
a848cd7e SC |
12304 | fi |
12305 | ||
3dd30495 VZ |
12306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12307 | $as_echo "$result" >&6; } | |
6e198e97 | 12308 | |
a848cd7e | 12309 | |
077c7880 | 12310 | enablestring= |
6e198e97 | 12311 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12312 | if test -z "$defaultval"; then |
6e198e97 VZ |
12313 | if test x"$enablestring" = xdisable; then |
12314 | defaultval=yes | |
12315 | else | |
12316 | defaultval=no | |
12317 | fi | |
12318 | fi | |
12319 | ||
3dd30495 VZ |
12320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fontpicker" >&5 |
12321 | $as_echo_n "checking for --${enablestring:-enable}-fontpicker... " >&6; } | |
12322 | # Check whether --enable-fontpicker was given. | |
12323 | if test "${enable_fontpicker+set}" = set; then : | |
12324 | enableval=$enable_fontpicker; | |
a848cd7e | 12325 | if test "$enableval" = yes; then |
3dd30495 | 12326 | wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes' |
a848cd7e | 12327 | else |
3dd30495 | 12328 | wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no' |
a848cd7e SC |
12329 | fi |
12330 | ||
12331 | else | |
12332 | ||
3dd30495 | 12333 | wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}" |
a848cd7e | 12334 | |
47964710 VS |
12335 | fi |
12336 | ||
a848cd7e | 12337 | |
3dd30495 | 12338 | eval "$wx_cv_use_fontpicker" |
a848cd7e | 12339 | |
6e198e97 | 12340 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12341 | if test $wxUSE_FONTPICKERCTRL = no; then |
6e198e97 | 12342 | result=yes |
7ac0e38e VZ |
12343 | else |
12344 | result=no | |
6e198e97 | 12345 | fi |
a848cd7e | 12346 | else |
3dd30495 | 12347 | result=$wxUSE_FONTPICKERCTRL |
a848cd7e SC |
12348 | fi |
12349 | ||
3dd30495 VZ |
12350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12351 | $as_echo "$result" >&6; } | |
6e198e97 | 12352 | |
a848cd7e | 12353 | |
077c7880 | 12354 | enablestring= |
6e198e97 | 12355 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12356 | if test -z "$defaultval"; then |
6e198e97 VZ |
12357 | if test x"$enablestring" = xdisable; then |
12358 | defaultval=yes | |
12359 | else | |
12360 | defaultval=no | |
12361 | fi | |
12362 | fi | |
12363 | ||
3dd30495 VZ |
12364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-gauge" >&5 |
12365 | $as_echo_n "checking for --${enablestring:-enable}-gauge... " >&6; } | |
12366 | # Check whether --enable-gauge was given. | |
12367 | if test "${enable_gauge+set}" = set; then : | |
12368 | enableval=$enable_gauge; | |
a848cd7e | 12369 | if test "$enableval" = yes; then |
3dd30495 | 12370 | wx_cv_use_gauge='wxUSE_GAUGE=yes' |
a848cd7e | 12371 | else |
3dd30495 | 12372 | wx_cv_use_gauge='wxUSE_GAUGE=no' |
a848cd7e SC |
12373 | fi |
12374 | ||
12375 | else | |
12376 | ||
3dd30495 | 12377 | wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}" |
a848cd7e | 12378 | |
47964710 VS |
12379 | fi |
12380 | ||
a848cd7e | 12381 | |
3dd30495 | 12382 | eval "$wx_cv_use_gauge" |
a848cd7e | 12383 | |
6e198e97 | 12384 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12385 | if test $wxUSE_GAUGE = no; then |
6e198e97 | 12386 | result=yes |
7ac0e38e VZ |
12387 | else |
12388 | result=no | |
6e198e97 | 12389 | fi |
a848cd7e | 12390 | else |
3dd30495 | 12391 | result=$wxUSE_GAUGE |
a848cd7e SC |
12392 | fi |
12393 | ||
3dd30495 VZ |
12394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12395 | $as_echo "$result" >&6; } | |
6e198e97 | 12396 | |
a848cd7e | 12397 | |
077c7880 | 12398 | enablestring= |
6e198e97 | 12399 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12400 | if test -z "$defaultval"; then |
6e198e97 VZ |
12401 | if test x"$enablestring" = xdisable; then |
12402 | defaultval=yes | |
12403 | else | |
12404 | defaultval=no | |
12405 | fi | |
12406 | fi | |
12407 | ||
3dd30495 VZ |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-grid" >&5 |
12409 | $as_echo_n "checking for --${enablestring:-enable}-grid... " >&6; } | |
12410 | # Check whether --enable-grid was given. | |
12411 | if test "${enable_grid+set}" = set; then : | |
12412 | enableval=$enable_grid; | |
a848cd7e | 12413 | if test "$enableval" = yes; then |
3dd30495 | 12414 | wx_cv_use_grid='wxUSE_GRID=yes' |
a848cd7e | 12415 | else |
3dd30495 | 12416 | wx_cv_use_grid='wxUSE_GRID=no' |
a848cd7e SC |
12417 | fi |
12418 | ||
12419 | else | |
12420 | ||
3dd30495 | 12421 | wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}" |
a848cd7e | 12422 | |
47964710 VS |
12423 | fi |
12424 | ||
a848cd7e | 12425 | |
3dd30495 | 12426 | eval "$wx_cv_use_grid" |
a848cd7e | 12427 | |
6e198e97 | 12428 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12429 | if test $wxUSE_GRID = no; then |
6e198e97 | 12430 | result=yes |
7ac0e38e VZ |
12431 | else |
12432 | result=no | |
6e198e97 | 12433 | fi |
a848cd7e | 12434 | else |
3dd30495 | 12435 | result=$wxUSE_GRID |
a848cd7e SC |
12436 | fi |
12437 | ||
3dd30495 VZ |
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12439 | $as_echo "$result" >&6; } | |
a848cd7e SC |
12440 | |
12441 | ||
077c7880 | 12442 | enablestring= |
6e198e97 | 12443 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12444 | if test -z "$defaultval"; then |
6e198e97 VZ |
12445 | if test x"$enablestring" = xdisable; then |
12446 | defaultval=yes | |
12447 | else | |
12448 | defaultval=no | |
12449 | fi | |
12450 | fi | |
12451 | ||
3dd30495 VZ |
12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-headerctrl" >&5 |
12453 | $as_echo_n "checking for --${enablestring:-enable}-headerctrl... " >&6; } | |
12454 | # Check whether --enable-headerctrl was given. | |
12455 | if test "${enable_headerctrl+set}" = set; then : | |
12456 | enableval=$enable_headerctrl; | |
a848cd7e | 12457 | if test "$enableval" = yes; then |
3dd30495 | 12458 | wx_cv_use_headerctrl='wxUSE_HEADERCTRL=yes' |
a848cd7e | 12459 | else |
3dd30495 | 12460 | wx_cv_use_headerctrl='wxUSE_HEADERCTRL=no' |
a848cd7e SC |
12461 | fi |
12462 | ||
12463 | else | |
12464 | ||
3dd30495 | 12465 | wx_cv_use_headerctrl='wxUSE_HEADERCTRL=${'DEFAULT_wxUSE_HEADERCTRL":-$defaultval}" |
a848cd7e | 12466 | |
47964710 VS |
12467 | fi |
12468 | ||
a848cd7e | 12469 | |
3dd30495 | 12470 | eval "$wx_cv_use_headerctrl" |
a848cd7e | 12471 | |
6e198e97 | 12472 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12473 | if test $wxUSE_HEADERCTRL = no; then |
6e198e97 | 12474 | result=yes |
7ac0e38e VZ |
12475 | else |
12476 | result=no | |
6e198e97 | 12477 | fi |
a848cd7e | 12478 | else |
3dd30495 | 12479 | result=$wxUSE_HEADERCTRL |
a848cd7e SC |
12480 | fi |
12481 | ||
3dd30495 VZ |
12482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12483 | $as_echo "$result" >&6; } | |
6e198e97 | 12484 | |
a848cd7e | 12485 | |
077c7880 | 12486 | enablestring= |
6e198e97 | 12487 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12488 | if test -z "$defaultval"; then |
6e198e97 VZ |
12489 | if test x"$enablestring" = xdisable; then |
12490 | defaultval=yes | |
12491 | else | |
12492 | defaultval=no | |
12493 | fi | |
12494 | fi | |
12495 | ||
3dd30495 VZ |
12496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-hyperlink" >&5 |
12497 | $as_echo_n "checking for --${enablestring:-enable}-hyperlink... " >&6; } | |
12498 | # Check whether --enable-hyperlink was given. | |
12499 | if test "${enable_hyperlink+set}" = set; then : | |
12500 | enableval=$enable_hyperlink; | |
a848cd7e | 12501 | if test "$enableval" = yes; then |
3dd30495 | 12502 | wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes' |
a848cd7e | 12503 | else |
3dd30495 | 12504 | wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no' |
a848cd7e SC |
12505 | fi |
12506 | ||
12507 | else | |
12508 | ||
3dd30495 | 12509 | wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}" |
a848cd7e | 12510 | |
47964710 VS |
12511 | fi |
12512 | ||
a848cd7e | 12513 | |
3dd30495 | 12514 | eval "$wx_cv_use_hyperlink" |
a848cd7e | 12515 | |
6e198e97 | 12516 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12517 | if test $wxUSE_HYPERLINKCTRL = no; then |
6e198e97 | 12518 | result=yes |
7ac0e38e VZ |
12519 | else |
12520 | result=no | |
6e198e97 | 12521 | fi |
a848cd7e | 12522 | else |
3dd30495 | 12523 | result=$wxUSE_HYPERLINKCTRL |
a848cd7e SC |
12524 | fi |
12525 | ||
3dd30495 VZ |
12526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12527 | $as_echo "$result" >&6; } | |
6e198e97 | 12528 | |
a848cd7e | 12529 | |
077c7880 | 12530 | enablestring= |
6e198e97 | 12531 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12532 | if test -z "$defaultval"; then |
6e198e97 VZ |
12533 | if test x"$enablestring" = xdisable; then |
12534 | defaultval=yes | |
12535 | else | |
12536 | defaultval=no | |
12537 | fi | |
12538 | fi | |
12539 | ||
3dd30495 VZ |
12540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-imaglist" >&5 |
12541 | $as_echo_n "checking for --${enablestring:-enable}-imaglist... " >&6; } | |
12542 | # Check whether --enable-imaglist was given. | |
12543 | if test "${enable_imaglist+set}" = set; then : | |
12544 | enableval=$enable_imaglist; | |
a848cd7e | 12545 | if test "$enableval" = yes; then |
3dd30495 | 12546 | wx_cv_use_imaglist='wxUSE_IMAGLIST=yes' |
a848cd7e | 12547 | else |
3dd30495 | 12548 | wx_cv_use_imaglist='wxUSE_IMAGLIST=no' |
a848cd7e SC |
12549 | fi |
12550 | ||
12551 | else | |
12552 | ||
3dd30495 | 12553 | wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}" |
a848cd7e | 12554 | |
47964710 VS |
12555 | fi |
12556 | ||
a848cd7e | 12557 | |
3dd30495 | 12558 | eval "$wx_cv_use_imaglist" |
a848cd7e | 12559 | |
6e198e97 | 12560 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12561 | if test $wxUSE_IMAGLIST = no; then |
6e198e97 | 12562 | result=yes |
7ac0e38e VZ |
12563 | else |
12564 | result=no | |
6e198e97 | 12565 | fi |
a848cd7e | 12566 | else |
3dd30495 | 12567 | result=$wxUSE_IMAGLIST |
a848cd7e SC |
12568 | fi |
12569 | ||
3dd30495 VZ |
12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12571 | $as_echo "$result" >&6; } | |
6e198e97 | 12572 | |
a848cd7e | 12573 | |
077c7880 | 12574 | enablestring= |
6e198e97 | 12575 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12576 | if test -z "$defaultval"; then |
6e198e97 VZ |
12577 | if test x"$enablestring" = xdisable; then |
12578 | defaultval=yes | |
12579 | else | |
12580 | defaultval=no | |
12581 | fi | |
12582 | fi | |
12583 | ||
3dd30495 VZ |
12584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-infobar" >&5 |
12585 | $as_echo_n "checking for --${enablestring:-enable}-infobar... " >&6; } | |
12586 | # Check whether --enable-infobar was given. | |
12587 | if test "${enable_infobar+set}" = set; then : | |
12588 | enableval=$enable_infobar; | |
a848cd7e | 12589 | if test "$enableval" = yes; then |
3dd30495 | 12590 | wx_cv_use_infobar='wxUSE_INFOBAR=yes' |
a848cd7e | 12591 | else |
3dd30495 | 12592 | wx_cv_use_infobar='wxUSE_INFOBAR=no' |
a848cd7e SC |
12593 | fi |
12594 | ||
12595 | else | |
12596 | ||
3dd30495 | 12597 | wx_cv_use_infobar='wxUSE_INFOBAR=${'DEFAULT_wxUSE_INFOBAR":-$defaultval}" |
a848cd7e | 12598 | |
47964710 VS |
12599 | fi |
12600 | ||
a848cd7e | 12601 | |
3dd30495 | 12602 | eval "$wx_cv_use_infobar" |
a848cd7e | 12603 | |
6e198e97 | 12604 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12605 | if test $wxUSE_INFOBAR = no; then |
6e198e97 | 12606 | result=yes |
7ac0e38e VZ |
12607 | else |
12608 | result=no | |
6e198e97 | 12609 | fi |
a848cd7e | 12610 | else |
3dd30495 | 12611 | result=$wxUSE_INFOBAR |
a848cd7e SC |
12612 | fi |
12613 | ||
3dd30495 VZ |
12614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12615 | $as_echo "$result" >&6; } | |
6e198e97 | 12616 | |
a848cd7e | 12617 | |
077c7880 | 12618 | enablestring= |
6e198e97 | 12619 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12620 | if test -z "$defaultval"; then |
6e198e97 VZ |
12621 | if test x"$enablestring" = xdisable; then |
12622 | defaultval=yes | |
12623 | else | |
12624 | defaultval=no | |
12625 | fi | |
12626 | fi | |
12627 | ||
3dd30495 VZ |
12628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-listbook" >&5 |
12629 | $as_echo_n "checking for --${enablestring:-enable}-listbook... " >&6; } | |
12630 | # Check whether --enable-listbook was given. | |
12631 | if test "${enable_listbook+set}" = set; then : | |
12632 | enableval=$enable_listbook; | |
fbe2ca43 | 12633 | if test "$enableval" = yes; then |
3dd30495 | 12634 | wx_cv_use_listbook='wxUSE_LISTBOOK=yes' |
fbe2ca43 | 12635 | else |
3dd30495 | 12636 | wx_cv_use_listbook='wxUSE_LISTBOOK=no' |
fbe2ca43 SN |
12637 | fi |
12638 | ||
12639 | else | |
12640 | ||
3dd30495 | 12641 | wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}" |
fbe2ca43 | 12642 | |
47964710 VS |
12643 | fi |
12644 | ||
fbe2ca43 | 12645 | |
3dd30495 | 12646 | eval "$wx_cv_use_listbook" |
fbe2ca43 | 12647 | |
6e198e97 | 12648 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12649 | if test $wxUSE_LISTBOOK = no; then |
6e198e97 | 12650 | result=yes |
7ac0e38e VZ |
12651 | else |
12652 | result=no | |
6e198e97 | 12653 | fi |
fbe2ca43 | 12654 | else |
3dd30495 | 12655 | result=$wxUSE_LISTBOOK |
fbe2ca43 SN |
12656 | fi |
12657 | ||
3dd30495 VZ |
12658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12659 | $as_echo "$result" >&6; } | |
6e198e97 | 12660 | |
fbe2ca43 | 12661 | |
077c7880 | 12662 | enablestring= |
6e198e97 | 12663 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12664 | if test -z "$defaultval"; then |
6e198e97 VZ |
12665 | if test x"$enablestring" = xdisable; then |
12666 | defaultval=yes | |
12667 | else | |
12668 | defaultval=no | |
12669 | fi | |
12670 | fi | |
12671 | ||
3dd30495 VZ |
12672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-listbox" >&5 |
12673 | $as_echo_n "checking for --${enablestring:-enable}-listbox... " >&6; } | |
12674 | # Check whether --enable-listbox was given. | |
12675 | if test "${enable_listbox+set}" = set; then : | |
12676 | enableval=$enable_listbox; | |
a848cd7e | 12677 | if test "$enableval" = yes; then |
3dd30495 | 12678 | wx_cv_use_listbox='wxUSE_LISTBOX=yes' |
a848cd7e | 12679 | else |
3dd30495 | 12680 | wx_cv_use_listbox='wxUSE_LISTBOX=no' |
a848cd7e SC |
12681 | fi |
12682 | ||
12683 | else | |
12684 | ||
3dd30495 | 12685 | wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}" |
a848cd7e | 12686 | |
47964710 VS |
12687 | fi |
12688 | ||
a848cd7e | 12689 | |
3dd30495 | 12690 | eval "$wx_cv_use_listbox" |
a848cd7e | 12691 | |
6e198e97 | 12692 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12693 | if test $wxUSE_LISTBOX = no; then |
6e198e97 | 12694 | result=yes |
7ac0e38e VZ |
12695 | else |
12696 | result=no | |
6e198e97 | 12697 | fi |
a848cd7e | 12698 | else |
3dd30495 | 12699 | result=$wxUSE_LISTBOX |
a848cd7e SC |
12700 | fi |
12701 | ||
3dd30495 VZ |
12702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12703 | $as_echo "$result" >&6; } | |
6e198e97 | 12704 | |
a848cd7e | 12705 | |
077c7880 | 12706 | enablestring= |
6e198e97 | 12707 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12708 | if test -z "$defaultval"; then |
6e198e97 VZ |
12709 | if test x"$enablestring" = xdisable; then |
12710 | defaultval=yes | |
12711 | else | |
12712 | defaultval=no | |
12713 | fi | |
12714 | fi | |
12715 | ||
3dd30495 VZ |
12716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-listctrl" >&5 |
12717 | $as_echo_n "checking for --${enablestring:-enable}-listctrl... " >&6; } | |
12718 | # Check whether --enable-listctrl was given. | |
12719 | if test "${enable_listctrl+set}" = set; then : | |
12720 | enableval=$enable_listctrl; | |
a848cd7e | 12721 | if test "$enableval" = yes; then |
3dd30495 | 12722 | wx_cv_use_listctrl='wxUSE_LISTCTRL=yes' |
a848cd7e | 12723 | else |
3dd30495 | 12724 | wx_cv_use_listctrl='wxUSE_LISTCTRL=no' |
a848cd7e SC |
12725 | fi |
12726 | ||
12727 | else | |
12728 | ||
3dd30495 | 12729 | wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}" |
a848cd7e | 12730 | |
47964710 VS |
12731 | fi |
12732 | ||
a848cd7e | 12733 | |
3dd30495 | 12734 | eval "$wx_cv_use_listctrl" |
a848cd7e | 12735 | |
6e198e97 | 12736 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12737 | if test $wxUSE_LISTCTRL = no; then |
6e198e97 | 12738 | result=yes |
7ac0e38e VZ |
12739 | else |
12740 | result=no | |
6e198e97 | 12741 | fi |
a848cd7e | 12742 | else |
3dd30495 | 12743 | result=$wxUSE_LISTCTRL |
a848cd7e SC |
12744 | fi |
12745 | ||
3dd30495 VZ |
12746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12747 | $as_echo "$result" >&6; } | |
6e198e97 | 12748 | |
a848cd7e | 12749 | |
97e477c5 VZ |
12750 | enablestring= |
12751 | defaultval=$wxUSE_ALL_FEATURES | |
12752 | if test -z "$defaultval"; then | |
12753 | if test x"$enablestring" = xdisable; then | |
12754 | defaultval=yes | |
12755 | else | |
12756 | defaultval=no | |
12757 | fi | |
12758 | fi | |
12759 | ||
3dd30495 VZ |
12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-notebook" >&5 |
12761 | $as_echo_n "checking for --${enablestring:-enable}-notebook... " >&6; } | |
12762 | # Check whether --enable-notebook was given. | |
12763 | if test "${enable_notebook+set}" = set; then : | |
12764 | enableval=$enable_notebook; | |
97e477c5 | 12765 | if test "$enableval" = yes; then |
3dd30495 | 12766 | wx_cv_use_notebook='wxUSE_NOTEBOOK=yes' |
97e477c5 | 12767 | else |
3dd30495 | 12768 | wx_cv_use_notebook='wxUSE_NOTEBOOK=no' |
97e477c5 VZ |
12769 | fi |
12770 | ||
12771 | else | |
12772 | ||
3dd30495 | 12773 | wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}" |
97e477c5 VZ |
12774 | |
12775 | fi | |
12776 | ||
12777 | ||
3dd30495 | 12778 | eval "$wx_cv_use_notebook" |
97e477c5 VZ |
12779 | |
12780 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 12781 | if test $wxUSE_NOTEBOOK = no; then |
97e477c5 VZ |
12782 | result=yes |
12783 | else | |
12784 | result=no | |
12785 | fi | |
12786 | else | |
3dd30495 | 12787 | result=$wxUSE_NOTEBOOK |
97e477c5 VZ |
12788 | fi |
12789 | ||
3dd30495 VZ |
12790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12791 | $as_echo "$result" >&6; } | |
97e477c5 VZ |
12792 | |
12793 | ||
077c7880 | 12794 | enablestring= |
6e198e97 | 12795 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12796 | if test -z "$defaultval"; then |
6e198e97 VZ |
12797 | if test x"$enablestring" = xdisable; then |
12798 | defaultval=yes | |
12799 | else | |
12800 | defaultval=no | |
12801 | fi | |
12802 | fi | |
12803 | ||
3dd30495 VZ |
12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-notifmsg" >&5 |
12805 | $as_echo_n "checking for --${enablestring:-enable}-notifmsg... " >&6; } | |
12806 | # Check whether --enable-notifmsg was given. | |
12807 | if test "${enable_notifmsg+set}" = set; then : | |
12808 | enableval=$enable_notifmsg; | |
a848cd7e | 12809 | if test "$enableval" = yes; then |
3dd30495 | 12810 | wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=yes' |
a848cd7e | 12811 | else |
3dd30495 | 12812 | wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=no' |
a848cd7e SC |
12813 | fi |
12814 | ||
12815 | else | |
12816 | ||
3dd30495 | 12817 | wx_cv_use_notifmsg='wxUSE_NOTIFICATION_MESSAGE=${'DEFAULT_wxUSE_NOTIFICATION_MESSAGE":-$defaultval}" |
a848cd7e | 12818 | |
47964710 VS |
12819 | fi |
12820 | ||
a848cd7e | 12821 | |
3dd30495 | 12822 | eval "$wx_cv_use_notifmsg" |
a848cd7e | 12823 | |
6e198e97 | 12824 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12825 | if test $wxUSE_NOTIFICATION_MESSAGE = no; then |
6e198e97 | 12826 | result=yes |
7ac0e38e VZ |
12827 | else |
12828 | result=no | |
6e198e97 | 12829 | fi |
a848cd7e | 12830 | else |
3dd30495 | 12831 | result=$wxUSE_NOTIFICATION_MESSAGE |
a848cd7e SC |
12832 | fi |
12833 | ||
3dd30495 VZ |
12834 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12835 | $as_echo "$result" >&6; } | |
6e198e97 | 12836 | |
a848cd7e | 12837 | |
077c7880 | 12838 | enablestring= |
6e198e97 | 12839 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12840 | if test -z "$defaultval"; then |
6e198e97 VZ |
12841 | if test x"$enablestring" = xdisable; then |
12842 | defaultval=yes | |
12843 | else | |
12844 | defaultval=no | |
12845 | fi | |
12846 | fi | |
12847 | ||
3dd30495 VZ |
12848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-odcombobox" >&5 |
12849 | $as_echo_n "checking for --${enablestring:-enable}-odcombobox... " >&6; } | |
12850 | # Check whether --enable-odcombobox was given. | |
12851 | if test "${enable_odcombobox+set}" = set; then : | |
12852 | enableval=$enable_odcombobox; | |
a848cd7e | 12853 | if test "$enableval" = yes; then |
3dd30495 | 12854 | wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes' |
a848cd7e | 12855 | else |
3dd30495 | 12856 | wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no' |
a848cd7e SC |
12857 | fi |
12858 | ||
12859 | else | |
12860 | ||
3dd30495 | 12861 | wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}" |
a848cd7e | 12862 | |
47964710 VS |
12863 | fi |
12864 | ||
a848cd7e | 12865 | |
3dd30495 | 12866 | eval "$wx_cv_use_odcombobox" |
a848cd7e | 12867 | |
6e198e97 | 12868 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12869 | if test $wxUSE_ODCOMBOBOX = no; then |
6e198e97 | 12870 | result=yes |
7ac0e38e VZ |
12871 | else |
12872 | result=no | |
6e198e97 | 12873 | fi |
a848cd7e | 12874 | else |
3dd30495 | 12875 | result=$wxUSE_ODCOMBOBOX |
a848cd7e SC |
12876 | fi |
12877 | ||
3dd30495 VZ |
12878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12879 | $as_echo "$result" >&6; } | |
6e198e97 | 12880 | |
a848cd7e | 12881 | |
077c7880 | 12882 | enablestring= |
6e198e97 | 12883 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12884 | if test -z "$defaultval"; then |
6e198e97 VZ |
12885 | if test x"$enablestring" = xdisable; then |
12886 | defaultval=yes | |
12887 | else | |
12888 | defaultval=no | |
12889 | fi | |
12890 | fi | |
12891 | ||
3dd30495 VZ |
12892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-popupwin" >&5 |
12893 | $as_echo_n "checking for --${enablestring:-enable}-popupwin... " >&6; } | |
12894 | # Check whether --enable-popupwin was given. | |
12895 | if test "${enable_popupwin+set}" = set; then : | |
12896 | enableval=$enable_popupwin; | |
a848cd7e | 12897 | if test "$enableval" = yes; then |
3dd30495 | 12898 | wx_cv_use_popupwin='wxUSE_POPUPWIN=yes' |
a848cd7e | 12899 | else |
3dd30495 | 12900 | wx_cv_use_popupwin='wxUSE_POPUPWIN=no' |
a848cd7e SC |
12901 | fi |
12902 | ||
12903 | else | |
12904 | ||
3dd30495 | 12905 | wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}" |
a848cd7e | 12906 | |
47964710 VS |
12907 | fi |
12908 | ||
a848cd7e | 12909 | |
3dd30495 | 12910 | eval "$wx_cv_use_popupwin" |
a848cd7e | 12911 | |
6e198e97 | 12912 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12913 | if test $wxUSE_POPUPWIN = no; then |
6e198e97 | 12914 | result=yes |
7ac0e38e VZ |
12915 | else |
12916 | result=no | |
6e198e97 | 12917 | fi |
a848cd7e | 12918 | else |
3dd30495 | 12919 | result=$wxUSE_POPUPWIN |
a848cd7e SC |
12920 | fi |
12921 | ||
3dd30495 VZ |
12922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12923 | $as_echo "$result" >&6; } | |
6e198e97 | 12924 | |
a848cd7e | 12925 | |
077c7880 | 12926 | enablestring= |
6e198e97 | 12927 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 12928 | if test -z "$defaultval"; then |
6e198e97 VZ |
12929 | if test x"$enablestring" = xdisable; then |
12930 | defaultval=yes | |
12931 | else | |
12932 | defaultval=no | |
12933 | fi | |
12934 | fi | |
12935 | ||
3dd30495 VZ |
12936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-radiobox" >&5 |
12937 | $as_echo_n "checking for --${enablestring:-enable}-radiobox... " >&6; } | |
12938 | # Check whether --enable-radiobox was given. | |
12939 | if test "${enable_radiobox+set}" = set; then : | |
12940 | enableval=$enable_radiobox; | |
a848cd7e | 12941 | if test "$enableval" = yes; then |
3dd30495 | 12942 | wx_cv_use_radiobox='wxUSE_RADIOBOX=yes' |
a848cd7e | 12943 | else |
3dd30495 | 12944 | wx_cv_use_radiobox='wxUSE_RADIOBOX=no' |
a848cd7e SC |
12945 | fi |
12946 | ||
12947 | else | |
12948 | ||
3dd30495 | 12949 | wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}" |
a848cd7e | 12950 | |
47964710 VS |
12951 | fi |
12952 | ||
a848cd7e | 12953 | |
3dd30495 | 12954 | eval "$wx_cv_use_radiobox" |
a848cd7e | 12955 | |
6e198e97 | 12956 | if test x"$enablestring" = xdisable; then |
3dd30495 | 12957 | if test $wxUSE_RADIOBOX = no; then |
6e198e97 | 12958 | result=yes |
7ac0e38e VZ |
12959 | else |
12960 | result=no | |
6e198e97 | 12961 | fi |
a848cd7e | 12962 | else |
3dd30495 | 12963 | result=$wxUSE_RADIOBOX |
a848cd7e SC |
12964 | fi |
12965 | ||
3dd30495 VZ |
12966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
12967 | $as_echo "$result" >&6; } | |
6e198e97 | 12968 | |
a848cd7e | 12969 | |
9b7e0226 VZ |
12970 | enablestring= |
12971 | defaultval=$wxUSE_ALL_FEATURES | |
12972 | if test -z "$defaultval"; then | |
12973 | if test x"$enablestring" = xdisable; then | |
12974 | defaultval=yes | |
12975 | else | |
12976 | defaultval=no | |
12977 | fi | |
12978 | fi | |
12979 | ||
3dd30495 VZ |
12980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-radiobtn" >&5 |
12981 | $as_echo_n "checking for --${enablestring:-enable}-radiobtn... " >&6; } | |
12982 | # Check whether --enable-radiobtn was given. | |
12983 | if test "${enable_radiobtn+set}" = set; then : | |
12984 | enableval=$enable_radiobtn; | |
9b7e0226 | 12985 | if test "$enableval" = yes; then |
3dd30495 | 12986 | wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes' |
9b7e0226 | 12987 | else |
3dd30495 | 12988 | wx_cv_use_radiobtn='wxUSE_RADIOBTN=no' |
9b7e0226 VZ |
12989 | fi |
12990 | ||
12991 | else | |
12992 | ||
3dd30495 | 12993 | wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}" |
9b7e0226 VZ |
12994 | |
12995 | fi | |
12996 | ||
12997 | ||
3dd30495 | 12998 | eval "$wx_cv_use_radiobtn" |
9b7e0226 VZ |
12999 | |
13000 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13001 | if test $wxUSE_RADIOBTN = no; then |
9b7e0226 VZ |
13002 | result=yes |
13003 | else | |
13004 | result=no | |
13005 | fi | |
13006 | else | |
3dd30495 | 13007 | result=$wxUSE_RADIOBTN |
9b7e0226 VZ |
13008 | fi |
13009 | ||
3dd30495 VZ |
13010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13011 | $as_echo "$result" >&6; } | |
9b7e0226 VZ |
13012 | |
13013 | ||
e71508e1 VZ |
13014 | enablestring= |
13015 | defaultval=$wxUSE_ALL_FEATURES | |
13016 | if test -z "$defaultval"; then | |
13017 | if test x"$enablestring" = xdisable; then | |
13018 | defaultval=yes | |
13019 | else | |
13020 | defaultval=no | |
13021 | fi | |
13022 | fi | |
13023 | ||
3dd30495 VZ |
13024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-richmsgdlg" >&5 |
13025 | $as_echo_n "checking for --${enablestring:-enable}-richmsgdlg... " >&6; } | |
13026 | # Check whether --enable-richmsgdlg was given. | |
13027 | if test "${enable_richmsgdlg+set}" = set; then : | |
13028 | enableval=$enable_richmsgdlg; | |
e71508e1 | 13029 | if test "$enableval" = yes; then |
3dd30495 | 13030 | wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=yes' |
e71508e1 | 13031 | else |
3dd30495 | 13032 | wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=no' |
e71508e1 VZ |
13033 | fi |
13034 | ||
13035 | else | |
13036 | ||
3dd30495 | 13037 | wx_cv_use_richmsgdlg='wxUSE_RICHMSGDLG=${'DEFAULT_wxUSE_RICHMSGDLG":-$defaultval}" |
e71508e1 VZ |
13038 | |
13039 | fi | |
13040 | ||
13041 | ||
3dd30495 | 13042 | eval "$wx_cv_use_richmsgdlg" |
e71508e1 VZ |
13043 | |
13044 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13045 | if test $wxUSE_RICHMSGDLG = no; then |
e71508e1 VZ |
13046 | result=yes |
13047 | else | |
13048 | result=no | |
13049 | fi | |
13050 | else | |
3dd30495 | 13051 | result=$wxUSE_RICHMSGDLG |
e71508e1 VZ |
13052 | fi |
13053 | ||
3dd30495 VZ |
13054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13055 | $as_echo "$result" >&6; } | |
e71508e1 VZ |
13056 | |
13057 | ||
b550ad2a VZ |
13058 | enablestring= |
13059 | defaultval=$wxUSE_ALL_FEATURES | |
13060 | if test -z "$defaultval"; then | |
13061 | if test x"$enablestring" = xdisable; then | |
13062 | defaultval=yes | |
13063 | else | |
13064 | defaultval=no | |
13065 | fi | |
13066 | fi | |
13067 | ||
3dd30495 VZ |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-richtooltip" >&5 |
13069 | $as_echo_n "checking for --${enablestring:-enable}-richtooltip... " >&6; } | |
13070 | # Check whether --enable-richtooltip was given. | |
13071 | if test "${enable_richtooltip+set}" = set; then : | |
13072 | enableval=$enable_richtooltip; | |
b550ad2a | 13073 | if test "$enableval" = yes; then |
3dd30495 | 13074 | wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=yes' |
b550ad2a | 13075 | else |
3dd30495 | 13076 | wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=no' |
b550ad2a VZ |
13077 | fi |
13078 | ||
13079 | else | |
13080 | ||
3dd30495 | 13081 | wx_cv_use_richtooltip='wxUSE_RICHTOOLTIP=${'DEFAULT_wxUSE_RICHTOOLTIP":-$defaultval}" |
b550ad2a VZ |
13082 | |
13083 | fi | |
13084 | ||
13085 | ||
3dd30495 | 13086 | eval "$wx_cv_use_richtooltip" |
b550ad2a VZ |
13087 | |
13088 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13089 | if test $wxUSE_RICHTOOLTIP = no; then |
b550ad2a VZ |
13090 | result=yes |
13091 | else | |
13092 | result=no | |
13093 | fi | |
13094 | else | |
3dd30495 | 13095 | result=$wxUSE_RICHTOOLTIP |
b550ad2a VZ |
13096 | fi |
13097 | ||
3dd30495 VZ |
13098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13099 | $as_echo "$result" >&6; } | |
a848cd7e SC |
13100 | |
13101 | ||
077c7880 | 13102 | enablestring= |
6e198e97 | 13103 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13104 | if test -z "$defaultval"; then |
6e198e97 VZ |
13105 | if test x"$enablestring" = xdisable; then |
13106 | defaultval=yes | |
13107 | else | |
13108 | defaultval=no | |
13109 | fi | |
13110 | fi | |
13111 | ||
3dd30495 VZ |
13112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-rearrangectrl" >&5 |
13113 | $as_echo_n "checking for --${enablestring:-enable}-rearrangectrl... " >&6; } | |
13114 | # Check whether --enable-rearrangectrl was given. | |
13115 | if test "${enable_rearrangectrl+set}" = set; then : | |
13116 | enableval=$enable_rearrangectrl; | |
a848cd7e | 13117 | if test "$enableval" = yes; then |
3dd30495 | 13118 | wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=yes' |
a848cd7e | 13119 | else |
3dd30495 | 13120 | wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=no' |
a848cd7e SC |
13121 | fi |
13122 | ||
13123 | else | |
13124 | ||
3dd30495 | 13125 | wx_cv_use_rearrangectrl='wxUSE_REARRANGECTRL=${'DEFAULT_wxUSE_REARRANGECTRL":-$defaultval}" |
a848cd7e | 13126 | |
47964710 VS |
13127 | fi |
13128 | ||
a848cd7e | 13129 | |
3dd30495 | 13130 | eval "$wx_cv_use_rearrangectrl" |
a848cd7e | 13131 | |
6e198e97 | 13132 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13133 | if test $wxUSE_REARRANGECTRL = no; then |
6e198e97 | 13134 | result=yes |
7ac0e38e VZ |
13135 | else |
13136 | result=no | |
6e198e97 | 13137 | fi |
a848cd7e | 13138 | else |
3dd30495 | 13139 | result=$wxUSE_REARRANGECTRL |
a848cd7e SC |
13140 | fi |
13141 | ||
3dd30495 VZ |
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13143 | $as_echo "$result" >&6; } | |
6e198e97 | 13144 | |
a848cd7e | 13145 | |
077c7880 | 13146 | enablestring= |
6e198e97 | 13147 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13148 | if test -z "$defaultval"; then |
6e198e97 VZ |
13149 | if test x"$enablestring" = xdisable; then |
13150 | defaultval=yes | |
13151 | else | |
13152 | defaultval=no | |
13153 | fi | |
13154 | fi | |
13155 | ||
3dd30495 VZ |
13156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-sash" >&5 |
13157 | $as_echo_n "checking for --${enablestring:-enable}-sash... " >&6; } | |
13158 | # Check whether --enable-sash was given. | |
13159 | if test "${enable_sash+set}" = set; then : | |
13160 | enableval=$enable_sash; | |
a848cd7e | 13161 | if test "$enableval" = yes; then |
3dd30495 | 13162 | wx_cv_use_sash='wxUSE_SASH=yes' |
a848cd7e | 13163 | else |
3dd30495 | 13164 | wx_cv_use_sash='wxUSE_SASH=no' |
a848cd7e SC |
13165 | fi |
13166 | ||
13167 | else | |
13168 | ||
3dd30495 | 13169 | wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}" |
a848cd7e | 13170 | |
47964710 VS |
13171 | fi |
13172 | ||
a848cd7e | 13173 | |
3dd30495 | 13174 | eval "$wx_cv_use_sash" |
a848cd7e | 13175 | |
6e198e97 | 13176 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13177 | if test $wxUSE_SASH = no; then |
6e198e97 | 13178 | result=yes |
7ac0e38e VZ |
13179 | else |
13180 | result=no | |
6e198e97 | 13181 | fi |
a848cd7e | 13182 | else |
3dd30495 | 13183 | result=$wxUSE_SASH |
a848cd7e SC |
13184 | fi |
13185 | ||
3dd30495 VZ |
13186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13187 | $as_echo "$result" >&6; } | |
6e198e97 | 13188 | |
a848cd7e | 13189 | |
077c7880 | 13190 | enablestring= |
6e198e97 | 13191 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13192 | if test -z "$defaultval"; then |
6e198e97 VZ |
13193 | if test x"$enablestring" = xdisable; then |
13194 | defaultval=yes | |
13195 | else | |
13196 | defaultval=no | |
13197 | fi | |
13198 | fi | |
13199 | ||
3dd30495 VZ |
13200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-scrollbar" >&5 |
13201 | $as_echo_n "checking for --${enablestring:-enable}-scrollbar... " >&6; } | |
13202 | # Check whether --enable-scrollbar was given. | |
13203 | if test "${enable_scrollbar+set}" = set; then : | |
13204 | enableval=$enable_scrollbar; | |
a848cd7e | 13205 | if test "$enableval" = yes; then |
3dd30495 | 13206 | wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' |
a848cd7e | 13207 | else |
3dd30495 | 13208 | wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no' |
a848cd7e SC |
13209 | fi |
13210 | ||
13211 | else | |
13212 | ||
3dd30495 | 13213 | wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}" |
a848cd7e | 13214 | |
47964710 VS |
13215 | fi |
13216 | ||
a848cd7e | 13217 | |
3dd30495 | 13218 | eval "$wx_cv_use_scrollbar" |
a848cd7e | 13219 | |
6e198e97 | 13220 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13221 | if test $wxUSE_SCROLLBAR = no; then |
6e198e97 | 13222 | result=yes |
7ac0e38e VZ |
13223 | else |
13224 | result=no | |
6e198e97 | 13225 | fi |
a848cd7e | 13226 | else |
3dd30495 | 13227 | result=$wxUSE_SCROLLBAR |
a848cd7e SC |
13228 | fi |
13229 | ||
3dd30495 VZ |
13230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13231 | $as_echo "$result" >&6; } | |
6e198e97 | 13232 | |
a848cd7e | 13233 | |
077c7880 | 13234 | enablestring= |
6e198e97 | 13235 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13236 | if test -z "$defaultval"; then |
6e198e97 VZ |
13237 | if test x"$enablestring" = xdisable; then |
13238 | defaultval=yes | |
13239 | else | |
13240 | defaultval=no | |
13241 | fi | |
13242 | fi | |
13243 | ||
3dd30495 VZ |
13244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-searchctrl" >&5 |
13245 | $as_echo_n "checking for --${enablestring:-enable}-searchctrl... " >&6; } | |
13246 | # Check whether --enable-searchctrl was given. | |
13247 | if test "${enable_searchctrl+set}" = set; then : | |
13248 | enableval=$enable_searchctrl; | |
a848cd7e | 13249 | if test "$enableval" = yes; then |
3dd30495 | 13250 | wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes' |
a848cd7e | 13251 | else |
3dd30495 | 13252 | wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no' |
a848cd7e SC |
13253 | fi |
13254 | ||
13255 | else | |
13256 | ||
3dd30495 | 13257 | wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}" |
a848cd7e | 13258 | |
47964710 VS |
13259 | fi |
13260 | ||
a848cd7e | 13261 | |
3dd30495 | 13262 | eval "$wx_cv_use_searchctrl" |
a848cd7e | 13263 | |
6e198e97 | 13264 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13265 | if test $wxUSE_SEARCHCTRL = no; then |
6e198e97 | 13266 | result=yes |
7ac0e38e VZ |
13267 | else |
13268 | result=no | |
6e198e97 | 13269 | fi |
a848cd7e | 13270 | else |
3dd30495 | 13271 | result=$wxUSE_SEARCHCTRL |
a848cd7e SC |
13272 | fi |
13273 | ||
3dd30495 VZ |
13274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13275 | $as_echo "$result" >&6; } | |
6e198e97 | 13276 | |
a848cd7e | 13277 | |
077c7880 | 13278 | enablestring= |
6e198e97 | 13279 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13280 | if test -z "$defaultval"; then |
6e198e97 VZ |
13281 | if test x"$enablestring" = xdisable; then |
13282 | defaultval=yes | |
13283 | else | |
13284 | defaultval=no | |
13285 | fi | |
13286 | fi | |
13287 | ||
3dd30495 VZ |
13288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-slider" >&5 |
13289 | $as_echo_n "checking for --${enablestring:-enable}-slider... " >&6; } | |
13290 | # Check whether --enable-slider was given. | |
13291 | if test "${enable_slider+set}" = set; then : | |
13292 | enableval=$enable_slider; | |
bb9e79c0 | 13293 | if test "$enableval" = yes; then |
3dd30495 | 13294 | wx_cv_use_slider='wxUSE_SLIDER=yes' |
bb9e79c0 | 13295 | else |
3dd30495 | 13296 | wx_cv_use_slider='wxUSE_SLIDER=no' |
bb9e79c0 VZ |
13297 | fi |
13298 | ||
13299 | else | |
13300 | ||
3dd30495 | 13301 | wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}" |
bb9e79c0 | 13302 | |
47964710 VS |
13303 | fi |
13304 | ||
bb9e79c0 | 13305 | |
3dd30495 | 13306 | eval "$wx_cv_use_slider" |
bb9e79c0 | 13307 | |
6e198e97 | 13308 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13309 | if test $wxUSE_SLIDER = no; then |
6e198e97 | 13310 | result=yes |
7ac0e38e VZ |
13311 | else |
13312 | result=no | |
6e198e97 | 13313 | fi |
bb9e79c0 | 13314 | else |
3dd30495 | 13315 | result=$wxUSE_SLIDER |
bb9e79c0 VZ |
13316 | fi |
13317 | ||
3dd30495 VZ |
13318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13319 | $as_echo "$result" >&6; } | |
6e198e97 | 13320 | |
bb9e79c0 | 13321 | |
077c7880 | 13322 | enablestring= |
6e198e97 | 13323 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13324 | if test -z "$defaultval"; then |
6e198e97 VZ |
13325 | if test x"$enablestring" = xdisable; then |
13326 | defaultval=yes | |
13327 | else | |
13328 | defaultval=no | |
13329 | fi | |
13330 | fi | |
13331 | ||
3dd30495 VZ |
13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-spinbtn" >&5 |
13333 | $as_echo_n "checking for --${enablestring:-enable}-spinbtn... " >&6; } | |
13334 | # Check whether --enable-spinbtn was given. | |
13335 | if test "${enable_spinbtn+set}" = set; then : | |
13336 | enableval=$enable_spinbtn; | |
a848cd7e | 13337 | if test "$enableval" = yes; then |
3dd30495 | 13338 | wx_cv_use_spinbtn='wxUSE_SPINBTN=yes' |
a848cd7e | 13339 | else |
3dd30495 | 13340 | wx_cv_use_spinbtn='wxUSE_SPINBTN=no' |
a848cd7e SC |
13341 | fi |
13342 | ||
13343 | else | |
13344 | ||
3dd30495 | 13345 | wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}" |
a848cd7e | 13346 | |
47964710 VS |
13347 | fi |
13348 | ||
a848cd7e | 13349 | |
3dd30495 | 13350 | eval "$wx_cv_use_spinbtn" |
a848cd7e | 13351 | |
6e198e97 | 13352 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13353 | if test $wxUSE_SPINBTN = no; then |
6e198e97 | 13354 | result=yes |
7ac0e38e VZ |
13355 | else |
13356 | result=no | |
6e198e97 | 13357 | fi |
a848cd7e | 13358 | else |
3dd30495 | 13359 | result=$wxUSE_SPINBTN |
a848cd7e SC |
13360 | fi |
13361 | ||
3dd30495 VZ |
13362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13363 | $as_echo "$result" >&6; } | |
6e198e97 | 13364 | |
a848cd7e | 13365 | |
077c7880 | 13366 | enablestring= |
6e198e97 | 13367 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13368 | if test -z "$defaultval"; then |
6e198e97 VZ |
13369 | if test x"$enablestring" = xdisable; then |
13370 | defaultval=yes | |
13371 | else | |
13372 | defaultval=no | |
13373 | fi | |
13374 | fi | |
13375 | ||
3dd30495 VZ |
13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-spinctrl" >&5 |
13377 | $as_echo_n "checking for --${enablestring:-enable}-spinctrl... " >&6; } | |
13378 | # Check whether --enable-spinctrl was given. | |
13379 | if test "${enable_spinctrl+set}" = set; then : | |
13380 | enableval=$enable_spinctrl; | |
a848cd7e | 13381 | if test "$enableval" = yes; then |
3dd30495 | 13382 | wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes' |
a848cd7e | 13383 | else |
3dd30495 | 13384 | wx_cv_use_spinctrl='wxUSE_SPINCTRL=no' |
a848cd7e SC |
13385 | fi |
13386 | ||
13387 | else | |
13388 | ||
3dd30495 | 13389 | wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}" |
a848cd7e | 13390 | |
47964710 VS |
13391 | fi |
13392 | ||
a848cd7e | 13393 | |
3dd30495 | 13394 | eval "$wx_cv_use_spinctrl" |
a848cd7e | 13395 | |
6e198e97 | 13396 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13397 | if test $wxUSE_SPINCTRL = no; then |
6e198e97 | 13398 | result=yes |
7ac0e38e VZ |
13399 | else |
13400 | result=no | |
6e198e97 | 13401 | fi |
a848cd7e | 13402 | else |
3dd30495 | 13403 | result=$wxUSE_SPINCTRL |
a848cd7e SC |
13404 | fi |
13405 | ||
3dd30495 VZ |
13406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13407 | $as_echo "$result" >&6; } | |
6e198e97 | 13408 | |
a848cd7e | 13409 | |
077c7880 | 13410 | enablestring= |
6e198e97 | 13411 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13412 | if test -z "$defaultval"; then |
6e198e97 VZ |
13413 | if test x"$enablestring" = xdisable; then |
13414 | defaultval=yes | |
13415 | else | |
13416 | defaultval=no | |
13417 | fi | |
13418 | fi | |
13419 | ||
3dd30495 VZ |
13420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-splitter" >&5 |
13421 | $as_echo_n "checking for --${enablestring:-enable}-splitter... " >&6; } | |
13422 | # Check whether --enable-splitter was given. | |
13423 | if test "${enable_splitter+set}" = set; then : | |
13424 | enableval=$enable_splitter; | |
a848cd7e | 13425 | if test "$enableval" = yes; then |
3dd30495 | 13426 | wx_cv_use_splitter='wxUSE_SPLITTER=yes' |
a848cd7e | 13427 | else |
3dd30495 | 13428 | wx_cv_use_splitter='wxUSE_SPLITTER=no' |
a848cd7e SC |
13429 | fi |
13430 | ||
13431 | else | |
13432 | ||
3dd30495 | 13433 | wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}" |
a848cd7e | 13434 | |
47964710 VS |
13435 | fi |
13436 | ||
a848cd7e | 13437 | |
3dd30495 | 13438 | eval "$wx_cv_use_splitter" |
a848cd7e | 13439 | |
6e198e97 | 13440 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13441 | if test $wxUSE_SPLITTER = no; then |
6e198e97 | 13442 | result=yes |
7ac0e38e VZ |
13443 | else |
13444 | result=no | |
6e198e97 | 13445 | fi |
a848cd7e | 13446 | else |
3dd30495 | 13447 | result=$wxUSE_SPLITTER |
a848cd7e SC |
13448 | fi |
13449 | ||
3dd30495 VZ |
13450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13451 | $as_echo "$result" >&6; } | |
6e198e97 | 13452 | |
a848cd7e | 13453 | |
077c7880 | 13454 | enablestring= |
6e198e97 | 13455 | defaultval=$wxUSE_ALL_FEATURES |
238663c1 | 13456 | if test -z "$defaultval"; then |
6e198e97 VZ |
13457 | if test x"$enablestring" = xdisable; then |
13458 | defaultval=yes | |
13459 | else | |
13460 | defaultval=no | |
13461 | fi | |
13462 | fi | |
13463 | ||
3dd30495 VZ |
13464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-statbmp" >&5 |
13465 | $as_echo_n "checking for --${enablestring:-enable}-statbmp... " >&6; } | |
13466 | # Check whether --enable-statbmp was given. | |
13467 | if test "${enable_statbmp+set}" = set; then : | |
13468 | enableval=$enable_statbmp; | |
a848cd7e | 13469 | if test "$enableval" = yes; then |
3dd30495 | 13470 | wx_cv_use_statbmp='wxUSE_STATBMP=yes' |
a848cd7e | 13471 | else |
3dd30495 | 13472 | wx_cv_use_statbmp='wxUSE_STATBMP=no' |
a848cd7e SC |
13473 | fi |
13474 | ||
13475 | else | |
13476 | ||
3dd30495 | 13477 | wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}" |
a848cd7e | 13478 | |
47964710 VS |
13479 | fi |
13480 | ||
a848cd7e | 13481 | |
3dd30495 | 13482 | eval "$wx_cv_use_statbmp" |
a848cd7e | 13483 | |
6e198e97 | 13484 | if test x"$enablestring" = xdisable; then |
3dd30495 | 13485 | if test $wxUSE_STATBMP = no; then |
6e198e97 | 13486 | result=yes |
7ac0e38e VZ |
13487 | else |
13488 | result=no | |
6e198e97 | 13489 | fi |
a848cd7e | 13490 | else |
3dd30495 | 13491 | result=$wxUSE_STATBMP |
a848cd7e SC |
13492 | fi |
13493 | ||
3dd30495 VZ |
13494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13495 | $as_echo "$result" >&6; } | |
5d18e029 VZ |
13496 | |
13497 | ||
13498 | enablestring= | |
13499 | defaultval=$wxUSE_ALL_FEATURES | |
13500 | if test -z "$defaultval"; then | |
13501 | if test x"$enablestring" = xdisable; then | |
13502 | defaultval=yes | |
13503 | else | |
13504 | defaultval=no | |
13505 | fi | |
13506 | fi | |
13507 | ||
3dd30495 VZ |
13508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-statbox" >&5 |
13509 | $as_echo_n "checking for --${enablestring:-enable}-statbox... " >&6; } | |
13510 | # Check whether --enable-statbox was given. | |
13511 | if test "${enable_statbox+set}" = set; then : | |
13512 | enableval=$enable_statbox; | |
5d18e029 | 13513 | if test "$enableval" = yes; then |
3dd30495 | 13514 | wx_cv_use_statbox='wxUSE_STATBOX=yes' |
5d18e029 | 13515 | else |
3dd30495 | 13516 | wx_cv_use_statbox='wxUSE_STATBOX=no' |
5d18e029 VZ |
13517 | fi |
13518 | ||
13519 | else | |
13520 | ||
3dd30495 | 13521 | wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}" |
5d18e029 | 13522 | |
47964710 VS |
13523 | fi |
13524 | ||
5d18e029 | 13525 | |
3dd30495 | 13526 | eval "$wx_cv_use_statbox" |
5d18e029 VZ |
13527 | |
13528 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13529 | if test $wxUSE_STATBOX = no; then |
5d18e029 | 13530 | result=yes |
7ac0e38e VZ |
13531 | else |
13532 | result=no | |
5d18e029 VZ |
13533 | fi |
13534 | else | |
3dd30495 | 13535 | result=$wxUSE_STATBOX |
5d18e029 VZ |
13536 | fi |
13537 | ||
3dd30495 VZ |
13538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13539 | $as_echo "$result" >&6; } | |
5d18e029 VZ |
13540 | |
13541 | ||
0295153c VZ |
13542 | enablestring= |
13543 | defaultval=$wxUSE_ALL_FEATURES | |
13544 | if test -z "$defaultval"; then | |
13545 | if test x"$enablestring" = xdisable; then | |
13546 | defaultval=yes | |
13547 | else | |
13548 | defaultval=no | |
13549 | fi | |
13550 | fi | |
13551 | ||
3dd30495 VZ |
13552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-statline" >&5 |
13553 | $as_echo_n "checking for --${enablestring:-enable}-statline... " >&6; } | |
13554 | # Check whether --enable-statline was given. | |
13555 | if test "${enable_statline+set}" = set; then : | |
13556 | enableval=$enable_statline; | |
0295153c | 13557 | if test "$enableval" = yes; then |
3dd30495 | 13558 | wx_cv_use_statline='wxUSE_STATLINE=yes' |
0295153c | 13559 | else |
3dd30495 | 13560 | wx_cv_use_statline='wxUSE_STATLINE=no' |
0295153c | 13561 | fi |
0295153c VZ |
13562 | |
13563 | else | |
13564 | ||
3dd30495 | 13565 | wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}" |
0295153c | 13566 | |
47964710 VS |
13567 | fi |
13568 | ||
0295153c | 13569 | |
3dd30495 | 13570 | eval "$wx_cv_use_statline" |
0295153c VZ |
13571 | |
13572 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13573 | if test $wxUSE_STATLINE = no; then |
0295153c | 13574 | result=yes |
7ac0e38e VZ |
13575 | else |
13576 | result=no | |
0295153c VZ |
13577 | fi |
13578 | else | |
3dd30495 | 13579 | result=$wxUSE_STATLINE |
0295153c VZ |
13580 | fi |
13581 | ||
3dd30495 VZ |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13583 | $as_echo "$result" >&6; } | |
0295153c VZ |
13584 | |
13585 | ||
6fdf2acc VZ |
13586 | enablestring= |
13587 | defaultval=$wxUSE_ALL_FEATURES | |
13588 | if test -z "$defaultval"; then | |
13589 | if test x"$enablestring" = xdisable; then | |
13590 | defaultval=yes | |
13591 | else | |
13592 | defaultval=no | |
13593 | fi | |
13594 | fi | |
13595 | ||
3dd30495 VZ |
13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-stattext" >&5 |
13597 | $as_echo_n "checking for --${enablestring:-enable}-stattext... " >&6; } | |
13598 | # Check whether --enable-stattext was given. | |
13599 | if test "${enable_stattext+set}" = set; then : | |
13600 | enableval=$enable_stattext; | |
6fdf2acc | 13601 | if test "$enableval" = yes; then |
3dd30495 | 13602 | wx_cv_use_stattext='wxUSE_STATTEXT=yes' |
6fdf2acc | 13603 | else |
3dd30495 | 13604 | wx_cv_use_stattext='wxUSE_STATTEXT=no' |
6fdf2acc | 13605 | fi |
6fdf2acc VZ |
13606 | |
13607 | else | |
13608 | ||
3dd30495 | 13609 | wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}" |
6fdf2acc | 13610 | |
47964710 VS |
13611 | fi |
13612 | ||
6fdf2acc | 13613 | |
3dd30495 | 13614 | eval "$wx_cv_use_stattext" |
6fdf2acc VZ |
13615 | |
13616 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13617 | if test $wxUSE_STATTEXT = no; then |
6fdf2acc | 13618 | result=yes |
7ac0e38e VZ |
13619 | else |
13620 | result=no | |
6fdf2acc VZ |
13621 | fi |
13622 | else | |
3dd30495 | 13623 | result=$wxUSE_STATTEXT |
6fdf2acc VZ |
13624 | fi |
13625 | ||
3dd30495 VZ |
13626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13627 | $as_echo "$result" >&6; } | |
6fdf2acc VZ |
13628 | |
13629 | ||
5d18e029 VZ |
13630 | enablestring= |
13631 | defaultval=$wxUSE_ALL_FEATURES | |
13632 | if test -z "$defaultval"; then | |
13633 | if test x"$enablestring" = xdisable; then | |
13634 | defaultval=yes | |
13635 | else | |
13636 | defaultval=no | |
13637 | fi | |
13638 | fi | |
13639 | ||
3dd30495 VZ |
13640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-statusbar" >&5 |
13641 | $as_echo_n "checking for --${enablestring:-enable}-statusbar... " >&6; } | |
13642 | # Check whether --enable-statusbar was given. | |
13643 | if test "${enable_statusbar+set}" = set; then : | |
13644 | enableval=$enable_statusbar; | |
5d18e029 | 13645 | if test "$enableval" = yes; then |
3dd30495 | 13646 | wx_cv_use_statusbar='wxUSE_STATUSBAR=yes' |
5d18e029 | 13647 | else |
3dd30495 | 13648 | wx_cv_use_statusbar='wxUSE_STATUSBAR=no' |
5d18e029 VZ |
13649 | fi |
13650 | ||
13651 | else | |
13652 | ||
3dd30495 | 13653 | wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}" |
5d18e029 | 13654 | |
47964710 VS |
13655 | fi |
13656 | ||
5d18e029 | 13657 | |
3dd30495 | 13658 | eval "$wx_cv_use_statusbar" |
5d18e029 VZ |
13659 | |
13660 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13661 | if test $wxUSE_STATUSBAR = no; then |
5d18e029 | 13662 | result=yes |
7ac0e38e VZ |
13663 | else |
13664 | result=no | |
5d18e029 VZ |
13665 | fi |
13666 | else | |
3dd30495 | 13667 | result=$wxUSE_STATUSBAR |
5d18e029 VZ |
13668 | fi |
13669 | ||
3dd30495 VZ |
13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13671 | $as_echo "$result" >&6; } | |
5d18e029 VZ |
13672 | |
13673 | ||
508d12b2 VZ |
13674 | enablestring= |
13675 | defaultval=$wxUSE_ALL_FEATURES | |
13676 | if test -z "$defaultval"; then | |
13677 | if test x"$enablestring" = xdisable; then | |
13678 | defaultval=yes | |
13679 | else | |
13680 | defaultval=no | |
13681 | fi | |
13682 | fi | |
13683 | ||
3dd30495 VZ |
13684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-taskbaricon" >&5 |
13685 | $as_echo_n "checking for --${enablestring:-enable}-taskbaricon... " >&6; } | |
13686 | # Check whether --enable-taskbaricon was given. | |
13687 | if test "${enable_taskbaricon+set}" = set; then : | |
13688 | enableval=$enable_taskbaricon; | |
508d12b2 | 13689 | if test "$enableval" = yes; then |
3dd30495 | 13690 | wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes' |
508d12b2 | 13691 | else |
3dd30495 | 13692 | wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no' |
508d12b2 | 13693 | fi |
508d12b2 VZ |
13694 | |
13695 | else | |
13696 | ||
3dd30495 | 13697 | wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}" |
508d12b2 | 13698 | |
47964710 VS |
13699 | fi |
13700 | ||
508d12b2 | 13701 | |
3dd30495 | 13702 | eval "$wx_cv_use_taskbaricon" |
508d12b2 VZ |
13703 | |
13704 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13705 | if test $wxUSE_TASKBARICON = no; then |
508d12b2 | 13706 | result=yes |
7ac0e38e VZ |
13707 | else |
13708 | result=no | |
508d12b2 VZ |
13709 | fi |
13710 | else | |
3dd30495 | 13711 | result=$wxUSE_TASKBARICON |
508d12b2 VZ |
13712 | fi |
13713 | ||
3dd30495 VZ |
13714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13715 | $as_echo "$result" >&6; } | |
508d12b2 VZ |
13716 | |
13717 | ||
b550ad2a VZ |
13718 | enablestring= |
13719 | defaultval=$wxUSE_ALL_FEATURES | |
13720 | if test -z "$defaultval"; then | |
13721 | if test x"$enablestring" = xdisable; then | |
13722 | defaultval=yes | |
13723 | else | |
13724 | defaultval=no | |
13725 | fi | |
13726 | fi | |
13727 | ||
3dd30495 VZ |
13728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-tbarnative" >&5 |
13729 | $as_echo_n "checking for --${enablestring:-enable}-tbarnative... " >&6; } | |
13730 | # Check whether --enable-tbarnative was given. | |
13731 | if test "${enable_tbarnative+set}" = set; then : | |
13732 | enableval=$enable_tbarnative; | |
b550ad2a | 13733 | if test "$enableval" = yes; then |
3dd30495 | 13734 | wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' |
b550ad2a | 13735 | else |
3dd30495 | 13736 | wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' |
b550ad2a VZ |
13737 | fi |
13738 | ||
13739 | else | |
13740 | ||
3dd30495 | 13741 | wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}" |
b550ad2a VZ |
13742 | |
13743 | fi | |
13744 | ||
13745 | ||
3dd30495 | 13746 | eval "$wx_cv_use_tbarnative" |
b550ad2a VZ |
13747 | |
13748 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13749 | if test $wxUSE_TOOLBAR_NATIVE = no; then |
b550ad2a VZ |
13750 | result=yes |
13751 | else | |
13752 | result=no | |
13753 | fi | |
13754 | else | |
3dd30495 | 13755 | result=$wxUSE_TOOLBAR_NATIVE |
b550ad2a VZ |
13756 | fi |
13757 | ||
3dd30495 VZ |
13758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13759 | $as_echo "$result" >&6; } | |
91a2809d VZ |
13760 | |
13761 | ||
75a29ef1 VZ |
13762 | enablestring= |
13763 | defaultval=$wxUSE_ALL_FEATURES | |
13764 | if test -z "$defaultval"; then | |
13765 | if test x"$enablestring" = xdisable; then | |
13766 | defaultval=yes | |
13767 | else | |
13768 | defaultval=no | |
13769 | fi | |
13770 | fi | |
13771 | ||
3dd30495 VZ |
13772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-textctrl" >&5 |
13773 | $as_echo_n "checking for --${enablestring:-enable}-textctrl... " >&6; } | |
13774 | # Check whether --enable-textctrl was given. | |
13775 | if test "${enable_textctrl+set}" = set; then : | |
13776 | enableval=$enable_textctrl; | |
75a29ef1 | 13777 | if test "$enableval" = yes; then |
3dd30495 | 13778 | wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes' |
75a29ef1 | 13779 | else |
3dd30495 | 13780 | wx_cv_use_textctrl='wxUSE_TEXTCTRL=no' |
75a29ef1 VZ |
13781 | fi |
13782 | ||
13783 | else | |
13784 | ||
3dd30495 | 13785 | wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}" |
75a29ef1 VZ |
13786 | |
13787 | fi | |
13788 | ||
13789 | ||
3dd30495 | 13790 | eval "$wx_cv_use_textctrl" |
75a29ef1 VZ |
13791 | |
13792 | if test x"$enablestring" = xdisable; then | |
3dd30495 | 13793 | if test $wxUSE_TEXTCTRL = no; then |
75a29ef1 | 13794 | result=yes |
7ac0e38e VZ |
13795 | else |
13796 | result=no | |
75a29ef1 VZ |
13797 | fi |
13798 | else | |
3dd30495 | 13799 | result=$wxUSE_TEXTCTRL |
75a29ef1 VZ |
13800 | fi |
13801 | ||
3dd30495 VZ |
13802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13803 | $as_echo "$result" >&6; } | |
47964710 | 13804 | |
a848cd7e | 13805 | |
3dd30495 VZ |
13806 | enablestring= |
13807 | defaultval=$wxUSE_ALL_FEATURES | |
13808 | if test -z "$defaultval"; then | |
13809 | if test x"$enablestring" = xdisable; then | |
13810 | defaultval=yes | |
13811 | else | |
13812 | defaultval=no | |
13813 | fi | |
13814 | fi | |
a848cd7e | 13815 | |
3dd30495 VZ |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-datepick" >&5 |
13817 | $as_echo_n "checking for --${enablestring:-enable}-datepick... " >&6; } | |
13818 | # Check whether --enable-datepick was given. | |
13819 | if test "${enable_datepick+set}" = set; then : | |
13820 | enableval=$enable_datepick; | |
13821 | if test "$enableval" = yes; then | |
13822 | wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=yes' | |
13823 | else | |
13824 | wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=no' | |
13825 | fi | |
a848cd7e | 13826 | |
a848cd7e | 13827 | else |
a848cd7e | 13828 | |
3dd30495 VZ |
13829 | wx_cv_use_datepick='wxUSE_TIMEPICKCTRL=${'DEFAULT_wxUSE_TIMEPICKCTRL":-$defaultval}" |
13830 | ||
4db03d26 VZ |
13831 | fi |
13832 | ||
bd8a7646 | 13833 | |
3dd30495 | 13834 | eval "$wx_cv_use_datepick" |
a848cd7e | 13835 | |
3dd30495 VZ |
13836 | if test x"$enablestring" = xdisable; then |
13837 | if test $wxUSE_TIMEPICKCTRL = no; then | |
13838 | result=yes | |
13839 | else | |
13840 | result=no | |
13841 | fi | |
13842 | else | |
13843 | result=$wxUSE_TIMEPICKCTRL | |
13844 | fi | |
a848cd7e | 13845 | |
3dd30495 VZ |
13846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13847 | $as_echo "$result" >&6; } | |
47964710 | 13848 | |
a848cd7e | 13849 | |
3dd30495 VZ |
13850 | enablestring= |
13851 | defaultval=$wxUSE_ALL_FEATURES | |
13852 | if test -z "$defaultval"; then | |
13853 | if test x"$enablestring" = xdisable; then | |
13854 | defaultval=yes | |
13855 | else | |
13856 | defaultval=no | |
13857 | fi | |
13858 | fi | |
a848cd7e | 13859 | |
3dd30495 VZ |
13860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-tipwindow" >&5 |
13861 | $as_echo_n "checking for --${enablestring:-enable}-tipwindow... " >&6; } | |
13862 | # Check whether --enable-tipwindow was given. | |
13863 | if test "${enable_tipwindow+set}" = set; then : | |
13864 | enableval=$enable_tipwindow; | |
13865 | if test "$enableval" = yes; then | |
13866 | wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
13867 | else | |
13868 | wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
13869 | fi | |
47964710 | 13870 | |
a848cd7e | 13871 | else |
a848cd7e | 13872 | |
3dd30495 VZ |
13873 | wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}" |
13874 | ||
a848cd7e SC |
13875 | fi |
13876 | ||
47964710 | 13877 | |
3dd30495 | 13878 | eval "$wx_cv_use_tipwindow" |
a848cd7e | 13879 | |
3dd30495 VZ |
13880 | if test x"$enablestring" = xdisable; then |
13881 | if test $wxUSE_TIPWINDOW = no; then | |
13882 | result=yes | |
13883 | else | |
13884 | result=no | |
13885 | fi | |
13886 | else | |
13887 | result=$wxUSE_TIPWINDOW | |
13888 | fi | |
13889 | ||
13890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 | |
13891 | $as_echo "$result" >&6; } | |
13892 | ||
13893 | ||
13894 | enablestring= | |
13895 | defaultval=$wxUSE_ALL_FEATURES | |
13896 | if test -z "$defaultval"; then | |
13897 | if test x"$enablestring" = xdisable; then | |
13898 | defaultval=yes | |
13899 | else | |
13900 | defaultval=no | |
13901 | fi | |
13902 | fi | |
13903 | ||
13904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-togglebtn" >&5 | |
13905 | $as_echo_n "checking for --${enablestring:-enable}-togglebtn... " >&6; } | |
13906 | # Check whether --enable-togglebtn was given. | |
13907 | if test "${enable_togglebtn+set}" = set; then : | |
13908 | enableval=$enable_togglebtn; | |
13909 | if test "$enableval" = yes; then | |
13910 | wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
13911 | else | |
13912 | wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
13913 | fi | |
13914 | ||
13915 | else | |
13916 | ||
13917 | wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}" | |
a848cd7e SC |
13918 | |
13919 | fi | |
13920 | ||
13921 | ||
3dd30495 | 13922 | eval "$wx_cv_use_togglebtn" |
a848cd7e | 13923 | |
3dd30495 VZ |
13924 | if test x"$enablestring" = xdisable; then |
13925 | if test $wxUSE_TOGGLEBTN = no; then | |
13926 | result=yes | |
13927 | else | |
13928 | result=no | |
13929 | fi | |
13930 | else | |
13931 | result=$wxUSE_TOGGLEBTN | |
13932 | fi | |
a848cd7e | 13933 | |
3dd30495 VZ |
13934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13935 | $as_echo "$result" >&6; } | |
a848cd7e | 13936 | |
a848cd7e | 13937 | |
3dd30495 VZ |
13938 | enablestring= |
13939 | defaultval=$wxUSE_ALL_FEATURES | |
13940 | if test -z "$defaultval"; then | |
13941 | if test x"$enablestring" = xdisable; then | |
13942 | defaultval=yes | |
13943 | else | |
13944 | defaultval=no | |
13945 | fi | |
13946 | fi | |
47964710 | 13947 | |
3dd30495 VZ |
13948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-toolbar" >&5 |
13949 | $as_echo_n "checking for --${enablestring:-enable}-toolbar... " >&6; } | |
13950 | # Check whether --enable-toolbar was given. | |
13951 | if test "${enable_toolbar+set}" = set; then : | |
13952 | enableval=$enable_toolbar; | |
13953 | if test "$enableval" = yes; then | |
13954 | wx_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
13955 | else | |
13956 | wx_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
13957 | fi | |
47964710 | 13958 | |
a848cd7e | 13959 | else |
47964710 | 13960 | |
3dd30495 | 13961 | wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}" |
a848cd7e | 13962 | |
a848cd7e SC |
13963 | fi |
13964 | ||
a848cd7e | 13965 | |
3dd30495 | 13966 | eval "$wx_cv_use_toolbar" |
a848cd7e | 13967 | |
3dd30495 VZ |
13968 | if test x"$enablestring" = xdisable; then |
13969 | if test $wxUSE_TOOLBAR = no; then | |
13970 | result=yes | |
13971 | else | |
13972 | result=no | |
13973 | fi | |
13974 | else | |
13975 | result=$wxUSE_TOOLBAR | |
13976 | fi | |
6da4ac91 | 13977 | |
3dd30495 VZ |
13978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
13979 | $as_echo "$result" >&6; } | |
8bf7f1a9 | 13980 | |
6da4ac91 | 13981 | |
3dd30495 VZ |
13982 | enablestring= |
13983 | defaultval=$wxUSE_ALL_FEATURES | |
13984 | if test -z "$defaultval"; then | |
13985 | if test x"$enablestring" = xdisable; then | |
13986 | defaultval=yes | |
13987 | else | |
13988 | defaultval=no | |
13989 | fi | |
13990 | fi | |
13991 | ||
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-toolbook" >&5 | |
13993 | $as_echo_n "checking for --${enablestring:-enable}-toolbook... " >&6; } | |
13994 | # Check whether --enable-toolbook was given. | |
13995 | if test "${enable_toolbook+set}" = set; then : | |
13996 | enableval=$enable_toolbook; | |
13997 | if test "$enableval" = yes; then | |
13998 | wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
13999 | else | |
14000 | wx_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
14001 | fi | |
6da4ac91 | 14002 | |
8bf7f1a9 | 14003 | else |
6da4ac91 | 14004 | |
3dd30495 | 14005 | wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}" |
6da4ac91 | 14006 | |
8bf7f1a9 | 14007 | fi |
6da4ac91 | 14008 | |
6da4ac91 | 14009 | |
3dd30495 | 14010 | eval "$wx_cv_use_toolbook" |
6da4ac91 | 14011 | |
3dd30495 VZ |
14012 | if test x"$enablestring" = xdisable; then |
14013 | if test $wxUSE_TOOLBOOK = no; then | |
14014 | result=yes | |
14015 | else | |
14016 | result=no | |
14017 | fi | |
14018 | else | |
14019 | result=$wxUSE_TOOLBOOK | |
14020 | fi | |
47964710 | 14021 | |
3dd30495 VZ |
14022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14023 | $as_echo "$result" >&6; } | |
6da4ac91 | 14024 | |
3f7f284d | 14025 | |
3dd30495 VZ |
14026 | enablestring= |
14027 | defaultval=$wxUSE_ALL_FEATURES | |
14028 | if test -z "$defaultval"; then | |
14029 | if test x"$enablestring" = xdisable; then | |
14030 | defaultval=yes | |
14031 | else | |
14032 | defaultval=no | |
14033 | fi | |
14034 | fi | |
14035 | ||
14036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-treebook" >&5 | |
14037 | $as_echo_n "checking for --${enablestring:-enable}-treebook... " >&6; } | |
14038 | # Check whether --enable-treebook was given. | |
14039 | if test "${enable_treebook+set}" = set; then : | |
14040 | enableval=$enable_treebook; | |
14041 | if test "$enableval" = yes; then | |
14042 | wx_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
14043 | else | |
14044 | wx_cv_use_treebook='wxUSE_TREEBOOK=no' | |
14045 | fi | |
3f7f284d | 14046 | |
47964710 | 14047 | else |
47964710 | 14048 | |
3dd30495 | 14049 | wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}" |
47964710 | 14050 | |
3dd30495 | 14051 | fi |
47964710 | 14052 | |
47964710 | 14053 | |
3dd30495 VZ |
14054 | eval "$wx_cv_use_treebook" |
14055 | ||
14056 | if test x"$enablestring" = xdisable; then | |
14057 | if test $wxUSE_TREEBOOK = no; then | |
14058 | result=yes | |
14059 | else | |
14060 | result=no | |
14061 | fi | |
14062 | else | |
14063 | result=$wxUSE_TREEBOOK | |
14064 | fi | |
47964710 | 14065 | |
3dd30495 VZ |
14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14067 | $as_echo "$result" >&6; } | |
14068 | ||
14069 | ||
14070 | enablestring= | |
14071 | defaultval=$wxUSE_ALL_FEATURES | |
14072 | if test -z "$defaultval"; then | |
14073 | if test x"$enablestring" = xdisable; then | |
14074 | defaultval=yes | |
14075 | else | |
14076 | defaultval=no | |
14077 | fi | |
14078 | fi | |
14079 | ||
14080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-treectrl" >&5 | |
14081 | $as_echo_n "checking for --${enablestring:-enable}-treectrl... " >&6; } | |
14082 | # Check whether --enable-treectrl was given. | |
14083 | if test "${enable_treectrl+set}" = set; then : | |
14084 | enableval=$enable_treectrl; | |
14085 | if test "$enableval" = yes; then | |
14086 | wx_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
14087 | else | |
14088 | wx_cv_use_treectrl='wxUSE_TREECTRL=no' | |
14089 | fi | |
47964710 | 14090 | |
7fd3acaf | 14091 | else |
7fd3acaf | 14092 | |
3dd30495 | 14093 | wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}" |
47964710 | 14094 | |
6da4ac91 | 14095 | fi |
47964710 | 14096 | |
47964710 | 14097 | |
3dd30495 | 14098 | eval "$wx_cv_use_treectrl" |
47964710 | 14099 | |
3dd30495 VZ |
14100 | if test x"$enablestring" = xdisable; then |
14101 | if test $wxUSE_TREECTRL = no; then | |
14102 | result=yes | |
14103 | else | |
14104 | result=no | |
14105 | fi | |
14106 | else | |
14107 | result=$wxUSE_TREECTRL | |
14108 | fi | |
6da4ac91 | 14109 | |
3dd30495 VZ |
14110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14111 | $as_echo "$result" >&6; } | |
6da4ac91 | 14112 | |
47964710 | 14113 | |
3dd30495 VZ |
14114 | enablestring= |
14115 | defaultval=$wxUSE_ALL_FEATURES | |
14116 | if test -z "$defaultval"; then | |
14117 | if test x"$enablestring" = xdisable; then | |
14118 | defaultval=yes | |
14119 | else | |
14120 | defaultval=no | |
14121 | fi | |
14122 | fi | |
14123 | ||
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-treelist" >&5 | |
14125 | $as_echo_n "checking for --${enablestring:-enable}-treelist... " >&6; } | |
14126 | # Check whether --enable-treelist was given. | |
14127 | if test "${enable_treelist+set}" = set; then : | |
14128 | enableval=$enable_treelist; | |
14129 | if test "$enableval" = yes; then | |
14130 | wx_cv_use_treelist='wxUSE_TREELISTCTRL=yes' | |
14131 | else | |
14132 | wx_cv_use_treelist='wxUSE_TREELISTCTRL=no' | |
14133 | fi | |
14134 | ||
6da4ac91 | 14135 | else |
6da4ac91 | 14136 | |
3dd30495 | 14137 | wx_cv_use_treelist='wxUSE_TREELISTCTRL=${'DEFAULT_wxUSE_TREELISTCTRL":-$defaultval}" |
47964710 | 14138 | |
6da4ac91 | 14139 | fi |
47964710 | 14140 | |
6da4ac91 | 14141 | |
3dd30495 | 14142 | eval "$wx_cv_use_treelist" |
6da4ac91 | 14143 | |
3dd30495 VZ |
14144 | if test x"$enablestring" = xdisable; then |
14145 | if test $wxUSE_TREELISTCTRL = no; then | |
14146 | result=yes | |
14147 | else | |
14148 | result=no | |
14149 | fi | |
14150 | else | |
14151 | result=$wxUSE_TREELISTCTRL | |
14152 | fi | |
bd8a7646 | 14153 | |
3dd30495 VZ |
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14155 | $as_echo "$result" >&6; } | |
6da4ac91 VZ |
14156 | |
14157 | ||
ab0ad5f1 | 14158 | |
43a7c679 | 14159 | |
3dd30495 VZ |
14160 | enablestring= |
14161 | defaultval=$wxUSE_ALL_FEATURES | |
14162 | if test -z "$defaultval"; then | |
14163 | if test x"$enablestring" = xdisable; then | |
14164 | defaultval=yes | |
14165 | else | |
14166 | defaultval=no | |
14167 | fi | |
14168 | fi | |
0f895b0c | 14169 | |
3dd30495 VZ |
14170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-commondlg" >&5 |
14171 | $as_echo_n "checking for --${enablestring:-enable}-commondlg... " >&6; } | |
14172 | # Check whether --enable-commondlg was given. | |
14173 | if test "${enable_commondlg+set}" = set; then : | |
14174 | enableval=$enable_commondlg; | |
14175 | if test "$enableval" = yes; then | |
14176 | wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
14177 | else | |
14178 | wx_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
14179 | fi | |
0f895b0c | 14180 | |
3dd30495 | 14181 | else |
0f895b0c | 14182 | |
3dd30495 | 14183 | wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}" |
0f895b0c | 14184 | |
3dd30495 | 14185 | fi |
ab0ad5f1 | 14186 | |
ab0ad5f1 | 14187 | |
3dd30495 | 14188 | eval "$wx_cv_use_commondlg" |
ab0ad5f1 | 14189 | |
3dd30495 VZ |
14190 | if test x"$enablestring" = xdisable; then |
14191 | if test $wxUSE_COMMONDLGS = no; then | |
14192 | result=yes | |
14193 | else | |
14194 | result=no | |
14195 | fi | |
14196 | else | |
14197 | result=$wxUSE_COMMONDLGS | |
14198 | fi | |
ab0ad5f1 | 14199 | |
3dd30495 VZ |
14200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14201 | $as_echo "$result" >&6; } | |
ab0ad5f1 | 14202 | |
ab0ad5f1 | 14203 | |
3dd30495 VZ |
14204 | enablestring= |
14205 | defaultval=$wxUSE_ALL_FEATURES | |
14206 | if test -z "$defaultval"; then | |
14207 | if test x"$enablestring" = xdisable; then | |
14208 | defaultval=yes | |
14209 | else | |
14210 | defaultval=no | |
14211 | fi | |
14212 | fi | |
47964710 | 14213 | |
3dd30495 VZ |
14214 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-aboutdlg" >&5 |
14215 | $as_echo_n "checking for --${enablestring:-enable}-aboutdlg... " >&6; } | |
14216 | # Check whether --enable-aboutdlg was given. | |
14217 | if test "${enable_aboutdlg+set}" = set; then : | |
14218 | enableval=$enable_aboutdlg; | |
14219 | if test "$enableval" = yes; then | |
14220 | wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes' | |
14221 | else | |
14222 | wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no' | |
14223 | fi | |
14224 | ||
14225 | else | |
ab0ad5f1 | 14226 | |
3dd30495 | 14227 | wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}" |
ab0ad5f1 VZ |
14228 | |
14229 | fi | |
ab0ad5f1 | 14230 | |
43a7c679 | 14231 | |
3dd30495 VZ |
14232 | eval "$wx_cv_use_aboutdlg" |
14233 | ||
14234 | if test x"$enablestring" = xdisable; then | |
14235 | if test $wxUSE_ABOUTDLG = no; then | |
14236 | result=yes | |
14237 | else | |
14238 | result=no | |
14239 | fi | |
14240 | else | |
14241 | result=$wxUSE_ABOUTDLG | |
14242 | fi | |
ab0ad5f1 | 14243 | |
3dd30495 VZ |
14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14245 | $as_echo "$result" >&6; } | |
ab0ad5f1 | 14246 | |
05622061 | 14247 | |
3dd30495 VZ |
14248 | enablestring= |
14249 | defaultval=$wxUSE_ALL_FEATURES | |
14250 | if test -z "$defaultval"; then | |
14251 | if test x"$enablestring" = xdisable; then | |
14252 | defaultval=yes | |
14253 | else | |
14254 | defaultval=no | |
14255 | fi | |
14256 | fi | |
05622061 | 14257 | |
3dd30495 VZ |
14258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-choicedlg" >&5 |
14259 | $as_echo_n "checking for --${enablestring:-enable}-choicedlg... " >&6; } | |
14260 | # Check whether --enable-choicedlg was given. | |
14261 | if test "${enable_choicedlg+set}" = set; then : | |
14262 | enableval=$enable_choicedlg; | |
14263 | if test "$enableval" = yes; then | |
14264 | wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
14265 | else | |
14266 | wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
14267 | fi | |
05622061 | 14268 | |
05622061 | 14269 | else |
05622061 | 14270 | |
3dd30495 | 14271 | wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}" |
05622061 | 14272 | |
3dd30495 | 14273 | fi |
05622061 | 14274 | |
05622061 | 14275 | |
3dd30495 | 14276 | eval "$wx_cv_use_choicedlg" |
05622061 | 14277 | |
3dd30495 VZ |
14278 | if test x"$enablestring" = xdisable; then |
14279 | if test $wxUSE_CHOICEDLG = no; then | |
14280 | result=yes | |
14281 | else | |
14282 | result=no | |
14283 | fi | |
14284 | else | |
14285 | result=$wxUSE_CHOICEDLG | |
14286 | fi | |
05622061 | 14287 | |
3dd30495 VZ |
14288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14289 | $as_echo "$result" >&6; } | |
05622061 VZ |
14290 | |
14291 | ||
3dd30495 VZ |
14292 | enablestring= |
14293 | defaultval=$wxUSE_ALL_FEATURES | |
14294 | if test -z "$defaultval"; then | |
14295 | if test x"$enablestring" = xdisable; then | |
14296 | defaultval=yes | |
14297 | else | |
14298 | defaultval=no | |
14299 | fi | |
14300 | fi | |
05622061 | 14301 | |
3dd30495 VZ |
14302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-coldlg" >&5 |
14303 | $as_echo_n "checking for --${enablestring:-enable}-coldlg... " >&6; } | |
14304 | # Check whether --enable-coldlg was given. | |
14305 | if test "${enable_coldlg+set}" = set; then : | |
14306 | enableval=$enable_coldlg; | |
14307 | if test "$enableval" = yes; then | |
14308 | wx_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
14309 | else | |
14310 | wx_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
14311 | fi | |
05622061 | 14312 | |
3dd30495 | 14313 | else |
05622061 | 14314 | |
3dd30495 | 14315 | wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}" |
05622061 | 14316 | |
3dd30495 | 14317 | fi |
05622061 | 14318 | |
05622061 | 14319 | |
3dd30495 | 14320 | eval "$wx_cv_use_coldlg" |
05622061 | 14321 | |
3dd30495 VZ |
14322 | if test x"$enablestring" = xdisable; then |
14323 | if test $wxUSE_COLOURDLG = no; then | |
14324 | result=yes | |
14325 | else | |
14326 | result=no | |
14327 | fi | |
14328 | else | |
14329 | result=$wxUSE_COLOURDLG | |
14330 | fi | |
05622061 | 14331 | |
3dd30495 VZ |
14332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14333 | $as_echo "$result" >&6; } | |
14334 | ||
14335 | ||
14336 | enablestring= | |
14337 | defaultval=$wxUSE_ALL_FEATURES | |
14338 | if test -z "$defaultval"; then | |
14339 | if test x"$enablestring" = xdisable; then | |
14340 | defaultval=yes | |
14341 | else | |
14342 | defaultval=no | |
14343 | fi | |
14344 | fi | |
14345 | ||
14346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-filedlg" >&5 | |
14347 | $as_echo_n "checking for --${enablestring:-enable}-filedlg... " >&6; } | |
14348 | # Check whether --enable-filedlg was given. | |
14349 | if test "${enable_filedlg+set}" = set; then : | |
14350 | enableval=$enable_filedlg; | |
14351 | if test "$enableval" = yes; then | |
14352 | wx_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
14353 | else | |
14354 | wx_cv_use_filedlg='wxUSE_FILEDLG=no' | |
14355 | fi | |
05622061 | 14356 | |
05622061 | 14357 | else |
05622061 | 14358 | |
3dd30495 | 14359 | wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}" |
05622061 VZ |
14360 | |
14361 | fi | |
14362 | ||
05622061 | 14363 | |
3dd30495 | 14364 | eval "$wx_cv_use_filedlg" |
05622061 | 14365 | |
3dd30495 VZ |
14366 | if test x"$enablestring" = xdisable; then |
14367 | if test $wxUSE_FILEDLG = no; then | |
14368 | result=yes | |
14369 | else | |
14370 | result=no | |
14371 | fi | |
14372 | else | |
14373 | result=$wxUSE_FILEDLG | |
14374 | fi | |
05622061 | 14375 | |
3dd30495 VZ |
14376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14377 | $as_echo "$result" >&6; } | |
05622061 VZ |
14378 | |
14379 | ||
3dd30495 VZ |
14380 | enablestring= |
14381 | defaultval=$wxUSE_ALL_FEATURES | |
14382 | if test -z "$defaultval"; then | |
14383 | if test x"$enablestring" = xdisable; then | |
14384 | defaultval=yes | |
14385 | else | |
14386 | defaultval=no | |
14387 | fi | |
14388 | fi | |
14389 | ||
14390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-finddlg" >&5 | |
14391 | $as_echo_n "checking for --${enablestring:-enable}-finddlg... " >&6; } | |
14392 | # Check whether --enable-finddlg was given. | |
14393 | if test "${enable_finddlg+set}" = set; then : | |
14394 | enableval=$enable_finddlg; | |
14395 | if test "$enableval" = yes; then | |
14396 | wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
14397 | else | |
14398 | wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
14399 | fi | |
05622061 | 14400 | |
480ccd21 | 14401 | else |
480ccd21 | 14402 | |
3dd30495 | 14403 | wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}" |
480ccd21 | 14404 | |
3dd30495 VZ |
14405 | fi |
14406 | ||
14407 | ||
14408 | eval "$wx_cv_use_finddlg" | |
14409 | ||
14410 | if test x"$enablestring" = xdisable; then | |
14411 | if test $wxUSE_FINDREPLDLG = no; then | |
14412 | result=yes | |
14413 | else | |
14414 | result=no | |
14415 | fi | |
14416 | else | |
14417 | result=$wxUSE_FINDREPLDLG | |
14418 | fi | |
480ccd21 | 14419 | |
3dd30495 VZ |
14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14421 | $as_echo "$result" >&6; } | |
480ccd21 | 14422 | |
480ccd21 | 14423 | |
3dd30495 VZ |
14424 | enablestring= |
14425 | defaultval=$wxUSE_ALL_FEATURES | |
14426 | if test -z "$defaultval"; then | |
14427 | if test x"$enablestring" = xdisable; then | |
14428 | defaultval=yes | |
14429 | else | |
14430 | defaultval=no | |
14431 | fi | |
14432 | fi | |
14433 | ||
14434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-fontdlg" >&5 | |
14435 | $as_echo_n "checking for --${enablestring:-enable}-fontdlg... " >&6; } | |
14436 | # Check whether --enable-fontdlg was given. | |
14437 | if test "${enable_fontdlg+set}" = set; then : | |
14438 | enableval=$enable_fontdlg; | |
14439 | if test "$enableval" = yes; then | |
14440 | wx_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
14441 | else | |
14442 | wx_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
14443 | fi | |
480ccd21 | 14444 | |
480ccd21 | 14445 | else |
3f7f284d | 14446 | |
3dd30495 | 14447 | wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}" |
3f7f284d | 14448 | |
3dd30495 | 14449 | fi |
47964710 | 14450 | |
47964710 | 14451 | |
3dd30495 | 14452 | eval "$wx_cv_use_fontdlg" |
47964710 | 14453 | |
3dd30495 VZ |
14454 | if test x"$enablestring" = xdisable; then |
14455 | if test $wxUSE_FONTDLG = no; then | |
14456 | result=yes | |
14457 | else | |
14458 | result=no | |
14459 | fi | |
14460 | else | |
14461 | result=$wxUSE_FONTDLG | |
14462 | fi | |
47964710 | 14463 | |
3dd30495 VZ |
14464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14465 | $as_echo "$result" >&6; } | |
47964710 | 14466 | |
47964710 | 14467 | |
3dd30495 VZ |
14468 | enablestring= |
14469 | defaultval=$wxUSE_ALL_FEATURES | |
14470 | if test -z "$defaultval"; then | |
14471 | if test x"$enablestring" = xdisable; then | |
14472 | defaultval=yes | |
14473 | else | |
14474 | defaultval=no | |
14475 | fi | |
14476 | fi | |
14477 | ||
14478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dirdlg" >&5 | |
14479 | $as_echo_n "checking for --${enablestring:-enable}-dirdlg... " >&6; } | |
14480 | # Check whether --enable-dirdlg was given. | |
14481 | if test "${enable_dirdlg+set}" = set; then : | |
14482 | enableval=$enable_dirdlg; | |
14483 | if test "$enableval" = yes; then | |
14484 | wx_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
14485 | else | |
14486 | wx_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
14487 | fi | |
14488 | ||
480ccd21 | 14489 | else |
480ccd21 | 14490 | |
3dd30495 | 14491 | wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}" |
47964710 | 14492 | |
7fd3acaf | 14493 | fi |
47964710 | 14494 | |
47964710 | 14495 | |
3dd30495 | 14496 | eval "$wx_cv_use_dirdlg" |
47964710 | 14497 | |
3dd30495 VZ |
14498 | if test x"$enablestring" = xdisable; then |
14499 | if test $wxUSE_DIRDLG = no; then | |
14500 | result=yes | |
14501 | else | |
14502 | result=no | |
3006edc0 | 14503 | fi |
3dd30495 VZ |
14504 | else |
14505 | result=$wxUSE_DIRDLG | |
14506 | fi | |
3006edc0 | 14507 | |
3dd30495 VZ |
14508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14509 | $as_echo "$result" >&6; } | |
43a7c679 VZ |
14510 | |
14511 | ||
3dd30495 VZ |
14512 | enablestring= |
14513 | defaultval=$wxUSE_ALL_FEATURES | |
14514 | if test -z "$defaultval"; then | |
14515 | if test x"$enablestring" = xdisable; then | |
14516 | defaultval=yes | |
14517 | else | |
14518 | defaultval=no | |
14519 | fi | |
14520 | fi | |
14521 | ||
14522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-msgdlg" >&5 | |
14523 | $as_echo_n "checking for --${enablestring:-enable}-msgdlg... " >&6; } | |
14524 | # Check whether --enable-msgdlg was given. | |
14525 | if test "${enable_msgdlg+set}" = set; then : | |
14526 | enableval=$enable_msgdlg; | |
14527 | if test "$enableval" = yes; then | |
14528 | wx_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
14529 | else | |
14530 | wx_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
14531 | fi | |
3006edc0 | 14532 | |
faa5c14f | 14533 | else |
faa5c14f | 14534 | |
3dd30495 | 14535 | wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}" |
43a7c679 | 14536 | |
3dd30495 | 14537 | fi |
faa5c14f | 14538 | |
faa5c14f | 14539 | |
3dd30495 | 14540 | eval "$wx_cv_use_msgdlg" |
43a7c679 | 14541 | |
3dd30495 VZ |
14542 | if test x"$enablestring" = xdisable; then |
14543 | if test $wxUSE_MSGDLG = no; then | |
14544 | result=yes | |
14545 | else | |
14546 | result=no | |
14547 | fi | |
14548 | else | |
14549 | result=$wxUSE_MSGDLG | |
14550 | fi | |
47964710 | 14551 | |
3dd30495 VZ |
14552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14553 | $as_echo "$result" >&6; } | |
faa5c14f | 14554 | |
faa5c14f | 14555 | |
3dd30495 VZ |
14556 | enablestring= |
14557 | defaultval=$wxUSE_ALL_FEATURES | |
14558 | if test -z "$defaultval"; then | |
14559 | if test x"$enablestring" = xdisable; then | |
14560 | defaultval=yes | |
14561 | else | |
14562 | defaultval=no | |
14563 | fi | |
14564 | fi | |
faa5c14f | 14565 | |
3dd30495 VZ |
14566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-numberdlg" >&5 |
14567 | $as_echo_n "checking for --${enablestring:-enable}-numberdlg... " >&6; } | |
14568 | # Check whether --enable-numberdlg was given. | |
14569 | if test "${enable_numberdlg+set}" = set; then : | |
14570 | enableval=$enable_numberdlg; | |
14571 | if test "$enableval" = yes; then | |
14572 | wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
14573 | else | |
14574 | wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
14575 | fi | |
faa5c14f | 14576 | |
3dd30495 | 14577 | else |
43a7c679 | 14578 | |
3dd30495 | 14579 | wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}" |
faa5c14f | 14580 | |
3dd30495 | 14581 | fi |
43a7c679 VZ |
14582 | |
14583 | ||
3dd30495 | 14584 | eval "$wx_cv_use_numberdlg" |
faa5c14f | 14585 | |
3dd30495 VZ |
14586 | if test x"$enablestring" = xdisable; then |
14587 | if test $wxUSE_NUMBERDLG = no; then | |
14588 | result=yes | |
14589 | else | |
14590 | result=no | |
14591 | fi | |
14592 | else | |
14593 | result=$wxUSE_NUMBERDLG | |
14594 | fi | |
faa5c14f | 14595 | |
3dd30495 VZ |
14596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14597 | $as_echo "$result" >&6; } | |
43a7c679 | 14598 | |
faa5c14f | 14599 | |
3dd30495 VZ |
14600 | enablestring= |
14601 | defaultval=$wxUSE_ALL_FEATURES | |
14602 | if test -z "$defaultval"; then | |
14603 | if test x"$enablestring" = xdisable; then | |
14604 | defaultval=yes | |
14605 | else | |
14606 | defaultval=no | |
14607 | fi | |
14608 | fi | |
14609 | ||
14610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-splash" >&5 | |
14611 | $as_echo_n "checking for --${enablestring:-enable}-splash... " >&6; } | |
14612 | # Check whether --enable-splash was given. | |
14613 | if test "${enable_splash+set}" = set; then : | |
14614 | enableval=$enable_splash; | |
14615 | if test "$enableval" = yes; then | |
14616 | wx_cv_use_splash='wxUSE_SPLASH=yes' | |
14617 | else | |
14618 | wx_cv_use_splash='wxUSE_SPLASH=no' | |
14619 | fi | |
14620 | ||
faa5c14f | 14621 | else |
faa5c14f | 14622 | |
3dd30495 | 14623 | wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}" |
43a7c679 | 14624 | |
faa5c14f | 14625 | fi |
47964710 | 14626 | |
faa5c14f | 14627 | |
3dd30495 | 14628 | eval "$wx_cv_use_splash" |
faa5c14f | 14629 | |
3dd30495 VZ |
14630 | if test x"$enablestring" = xdisable; then |
14631 | if test $wxUSE_SPLASH = no; then | |
14632 | result=yes | |
14633 | else | |
14634 | result=no | |
14635 | fi | |
14636 | else | |
14637 | result=$wxUSE_SPLASH | |
14638 | fi | |
faa5c14f | 14639 | |
3dd30495 VZ |
14640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14641 | $as_echo "$result" >&6; } | |
43a7c679 VZ |
14642 | |
14643 | ||
3dd30495 VZ |
14644 | enablestring= |
14645 | defaultval=$wxUSE_ALL_FEATURES | |
14646 | if test -z "$defaultval"; then | |
14647 | if test x"$enablestring" = xdisable; then | |
14648 | defaultval=yes | |
14649 | else | |
14650 | defaultval=no | |
14651 | fi | |
14652 | fi | |
43a7c679 | 14653 | |
3dd30495 VZ |
14654 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-textdlg" >&5 |
14655 | $as_echo_n "checking for --${enablestring:-enable}-textdlg... " >&6; } | |
14656 | # Check whether --enable-textdlg was given. | |
14657 | if test "${enable_textdlg+set}" = set; then : | |
14658 | enableval=$enable_textdlg; | |
14659 | if test "$enableval" = yes; then | |
14660 | wx_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
14661 | else | |
14662 | wx_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
14663 | fi | |
faa5c14f | 14664 | |
3006edc0 | 14665 | else |
3006edc0 | 14666 | |
3dd30495 | 14667 | wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}" |
43a7c679 | 14668 | |
3dd30495 | 14669 | fi |
3006edc0 | 14670 | |
3006edc0 | 14671 | |
3dd30495 | 14672 | eval "$wx_cv_use_textdlg" |
43a7c679 | 14673 | |
3dd30495 VZ |
14674 | if test x"$enablestring" = xdisable; then |
14675 | if test $wxUSE_TEXTDLG = no; then | |
14676 | result=yes | |
14677 | else | |
14678 | result=no | |
14679 | fi | |
14680 | else | |
14681 | result=$wxUSE_TEXTDLG | |
14682 | fi | |
47964710 | 14683 | |
3dd30495 VZ |
14684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14685 | $as_echo "$result" >&6; } | |
9273ffba | 14686 | |
9273ffba | 14687 | |
3dd30495 VZ |
14688 | enablestring= |
14689 | defaultval=$wxUSE_ALL_FEATURES | |
14690 | if test -z "$defaultval"; then | |
14691 | if test x"$enablestring" = xdisable; then | |
14692 | defaultval=yes | |
14693 | else | |
14694 | defaultval=no | |
14695 | fi | |
14696 | fi | |
9273ffba | 14697 | |
3dd30495 VZ |
14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-tipdlg" >&5 |
14699 | $as_echo_n "checking for --${enablestring:-enable}-tipdlg... " >&6; } | |
14700 | # Check whether --enable-tipdlg was given. | |
14701 | if test "${enable_tipdlg+set}" = set; then : | |
14702 | enableval=$enable_tipdlg; | |
14703 | if test "$enableval" = yes; then | |
14704 | wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
14705 | else | |
14706 | wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
14707 | fi | |
9273ffba | 14708 | |
3dd30495 | 14709 | else |
43a7c679 | 14710 | |
3dd30495 | 14711 | wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}" |
3006edc0 | 14712 | |
3dd30495 | 14713 | fi |
a848cd7e | 14714 | |
6dcfc289 | 14715 | |
3dd30495 | 14716 | eval "$wx_cv_use_tipdlg" |
0ad5d837 | 14717 | |
3dd30495 VZ |
14718 | if test x"$enablestring" = xdisable; then |
14719 | if test $wxUSE_STARTUP_TIPS = no; then | |
14720 | result=yes | |
14721 | else | |
14722 | result=no | |
14723 | fi | |
14724 | else | |
14725 | result=$wxUSE_STARTUP_TIPS | |
14726 | fi | |
0ad5d837 | 14727 | |
3dd30495 VZ |
14728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14729 | $as_echo "$result" >&6; } | |
0ad5d837 | 14730 | |
0ad5d837 | 14731 | |
3dd30495 VZ |
14732 | enablestring= |
14733 | defaultval=$wxUSE_ALL_FEATURES | |
14734 | if test -z "$defaultval"; then | |
14735 | if test x"$enablestring" = xdisable; then | |
14736 | defaultval=yes | |
14737 | else | |
14738 | defaultval=no | |
14739 | fi | |
14740 | fi | |
14741 | ||
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-progressdlg" >&5 | |
14743 | $as_echo_n "checking for --${enablestring:-enable}-progressdlg... " >&6; } | |
14744 | # Check whether --enable-progressdlg was given. | |
14745 | if test "${enable_progressdlg+set}" = set; then : | |
14746 | enableval=$enable_progressdlg; | |
14747 | if test "$enableval" = yes; then | |
14748 | wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
14749 | else | |
14750 | wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
14751 | fi | |
14752 | ||
0ad5d837 | 14753 | else |
0ad5d837 | 14754 | |
3dd30495 | 14755 | wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}" |
0ad5d837 VZ |
14756 | |
14757 | fi | |
47964710 | 14758 | |
0ad5d837 | 14759 | |
3dd30495 | 14760 | eval "$wx_cv_use_progressdlg" |
0ad5d837 | 14761 | |
3dd30495 VZ |
14762 | if test x"$enablestring" = xdisable; then |
14763 | if test $wxUSE_PROGRESSDLG = no; then | |
14764 | result=yes | |
14765 | else | |
14766 | result=no | |
14767 | fi | |
14768 | else | |
14769 | result=$wxUSE_PROGRESSDLG | |
14770 | fi | |
14771 | ||
14772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 | |
14773 | $as_echo "$result" >&6; } | |
0ad5d837 | 14774 | |
43a7c679 | 14775 | |
3dd30495 VZ |
14776 | enablestring= |
14777 | defaultval=$wxUSE_ALL_FEATURES | |
14778 | if test -z "$defaultval"; then | |
14779 | if test x"$enablestring" = xdisable; then | |
14780 | defaultval=yes | |
14781 | else | |
14782 | defaultval=no | |
14783 | fi | |
14784 | fi | |
14785 | ||
14786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
14787 | $as_echo_n "checking for --${enablestring:-enable}-wizarddlg... " >&6; } | |
14788 | # Check whether --enable-wizarddlg was given. | |
14789 | if test "${enable_wizarddlg+set}" = set; then : | |
14790 | enableval=$enable_wizarddlg; | |
14791 | if test "$enableval" = yes; then | |
14792 | wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
14793 | else | |
14794 | wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
14795 | fi | |
43a7c679 | 14796 | |
3dd30495 | 14797 | else |
43a7c679 | 14798 | |
3dd30495 | 14799 | wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}" |
43a7c679 | 14800 | |
3dd30495 | 14801 | fi |
43a7c679 | 14802 | |
43a7c679 | 14803 | |
3dd30495 | 14804 | eval "$wx_cv_use_wizarddlg" |
43a7c679 | 14805 | |
3dd30495 VZ |
14806 | if test x"$enablestring" = xdisable; then |
14807 | if test $wxUSE_WIZARDDLG = no; then | |
14808 | result=yes | |
14809 | else | |
14810 | result=no | |
14811 | fi | |
14812 | else | |
14813 | result=$wxUSE_WIZARDDLG | |
14814 | fi | |
43a7c679 | 14815 | |
3dd30495 VZ |
14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14817 | $as_echo "$result" >&6; } | |
43a7c679 | 14818 | |
43a7c679 | 14819 | |
43a7c679 | 14820 | |
47964710 | 14821 | |
3dd30495 VZ |
14822 | enablestring= |
14823 | defaultval=$wxUSE_ALL_FEATURES | |
14824 | if test -z "$defaultval"; then | |
14825 | if test x"$enablestring" = xdisable; then | |
14826 | defaultval=yes | |
14827 | else | |
14828 | defaultval=no | |
14829 | fi | |
14830 | fi | |
43a7c679 | 14831 | |
3dd30495 VZ |
14832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-menus" >&5 |
14833 | $as_echo_n "checking for --${enablestring:-enable}-menus... " >&6; } | |
14834 | # Check whether --enable-menus was given. | |
14835 | if test "${enable_menus+set}" = set; then : | |
14836 | enableval=$enable_menus; | |
14837 | if test "$enableval" = yes; then | |
14838 | wx_cv_use_menus='wxUSE_MENUS=yes' | |
14839 | else | |
14840 | wx_cv_use_menus='wxUSE_MENUS=no' | |
14841 | fi | |
43a7c679 | 14842 | |
3dd30495 | 14843 | else |
43a7c679 | 14844 | |
3dd30495 | 14845 | wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}" |
0ad5d837 | 14846 | |
3dd30495 | 14847 | fi |
0ad5d837 | 14848 | |
3006edc0 | 14849 | |
3dd30495 | 14850 | eval "$wx_cv_use_menus" |
3006edc0 | 14851 | |
3dd30495 VZ |
14852 | if test x"$enablestring" = xdisable; then |
14853 | if test $wxUSE_MENUS = no; then | |
14854 | result=yes | |
14855 | else | |
14856 | result=no | |
14857 | fi | |
14858 | else | |
14859 | result=$wxUSE_MENUS | |
14860 | fi | |
3006edc0 | 14861 | |
3dd30495 VZ |
14862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14863 | $as_echo "$result" >&6; } | |
3006edc0 | 14864 | |
3006edc0 | 14865 | |
3dd30495 VZ |
14866 | enablestring= |
14867 | defaultval=$wxUSE_ALL_FEATURES | |
14868 | if test -z "$defaultval"; then | |
14869 | if test x"$enablestring" = xdisable; then | |
14870 | defaultval=yes | |
14871 | else | |
14872 | defaultval=no | |
14873 | fi | |
14874 | fi | |
3006edc0 | 14875 | |
3dd30495 VZ |
14876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-miniframe" >&5 |
14877 | $as_echo_n "checking for --${enablestring:-enable}-miniframe... " >&6; } | |
14878 | # Check whether --enable-miniframe was given. | |
14879 | if test "${enable_miniframe+set}" = set; then : | |
14880 | enableval=$enable_miniframe; | |
14881 | if test "$enableval" = yes; then | |
14882 | wx_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
14883 | else | |
14884 | wx_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
14885 | fi | |
3006edc0 | 14886 | |
3006edc0 | 14887 | else |
3006edc0 | 14888 | |
3dd30495 | 14889 | wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}" |
3006edc0 VZ |
14890 | |
14891 | fi | |
47964710 | 14892 | |
3006edc0 | 14893 | |
3dd30495 | 14894 | eval "$wx_cv_use_miniframe" |
3006edc0 | 14895 | |
3dd30495 VZ |
14896 | if test x"$enablestring" = xdisable; then |
14897 | if test $wxUSE_MINIFRAME = no; then | |
14898 | result=yes | |
14899 | else | |
14900 | result=no | |
14901 | fi | |
14902 | else | |
14903 | result=$wxUSE_MINIFRAME | |
14904 | fi | |
3006edc0 | 14905 | |
3dd30495 VZ |
14906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14907 | $as_echo "$result" >&6; } | |
a1aa0349 VZ |
14908 | |
14909 | ||
3dd30495 VZ |
14910 | enablestring= |
14911 | defaultval=$wxUSE_ALL_FEATURES | |
14912 | if test -z "$defaultval"; then | |
14913 | if test x"$enablestring" = xdisable; then | |
14914 | defaultval=yes | |
14915 | else | |
14916 | defaultval=no | |
14917 | fi | |
14918 | fi | |
a1aa0349 | 14919 | |
3dd30495 VZ |
14920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-tooltips" >&5 |
14921 | $as_echo_n "checking for --${enablestring:-enable}-tooltips... " >&6; } | |
14922 | # Check whether --enable-tooltips was given. | |
14923 | if test "${enable_tooltips+set}" = set; then : | |
14924 | enableval=$enable_tooltips; | |
14925 | if test "$enableval" = yes; then | |
14926 | wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
14927 | else | |
14928 | wx_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
14929 | fi | |
a1aa0349 | 14930 | |
3dd30495 | 14931 | else |
a1aa0349 | 14932 | |
3dd30495 | 14933 | wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}" |
a1aa0349 | 14934 | |
3dd30495 | 14935 | fi |
a1aa0349 | 14936 | |
a1aa0349 | 14937 | |
3dd30495 | 14938 | eval "$wx_cv_use_tooltips" |
a1aa0349 | 14939 | |
3dd30495 VZ |
14940 | if test x"$enablestring" = xdisable; then |
14941 | if test $wxUSE_TOOLTIPS = no; then | |
14942 | result=yes | |
14943 | else | |
14944 | result=no | |
14945 | fi | |
14946 | else | |
14947 | result=$wxUSE_TOOLTIPS | |
14948 | fi | |
a1aa0349 | 14949 | |
3dd30495 VZ |
14950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14951 | $as_echo "$result" >&6; } | |
a1aa0349 | 14952 | |
47964710 | 14953 | |
3dd30495 VZ |
14954 | enablestring= |
14955 | defaultval=$wxUSE_ALL_FEATURES | |
14956 | if test -z "$defaultval"; then | |
14957 | if test x"$enablestring" = xdisable; then | |
14958 | defaultval=yes | |
14959 | else | |
14960 | defaultval=no | |
14961 | fi | |
14962 | fi | |
a1aa0349 | 14963 | |
3dd30495 VZ |
14964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-splines" >&5 |
14965 | $as_echo_n "checking for --${enablestring:-enable}-splines... " >&6; } | |
14966 | # Check whether --enable-splines was given. | |
14967 | if test "${enable_splines+set}" = set; then : | |
14968 | enableval=$enable_splines; | |
14969 | if test "$enableval" = yes; then | |
14970 | wx_cv_use_splines='wxUSE_SPLINES=yes' | |
14971 | else | |
14972 | wx_cv_use_splines='wxUSE_SPLINES=no' | |
14973 | fi | |
a1aa0349 | 14974 | |
3dd30495 | 14975 | else |
a1aa0349 | 14976 | |
3dd30495 | 14977 | wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}" |
0093c2fc | 14978 | |
3dd30495 | 14979 | fi |
0093c2fc | 14980 | |
0093c2fc | 14981 | |
3dd30495 | 14982 | eval "$wx_cv_use_splines" |
0093c2fc | 14983 | |
3dd30495 VZ |
14984 | if test x"$enablestring" = xdisable; then |
14985 | if test $wxUSE_SPLINES = no; then | |
14986 | result=yes | |
14987 | else | |
14988 | result=no | |
14989 | fi | |
14990 | else | |
14991 | result=$wxUSE_SPLINES | |
14992 | fi | |
0093c2fc | 14993 | |
3dd30495 VZ |
14994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
14995 | $as_echo "$result" >&6; } | |
0093c2fc | 14996 | |
0093c2fc | 14997 | |
3dd30495 VZ |
14998 | enablestring= |
14999 | defaultval=$wxUSE_ALL_FEATURES | |
15000 | if test -z "$defaultval"; then | |
15001 | if test x"$enablestring" = xdisable; then | |
15002 | defaultval=yes | |
15003 | else | |
15004 | defaultval=no | |
15005 | fi | |
15006 | fi | |
0093c2fc | 15007 | |
3dd30495 VZ |
15008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-mousewheel" >&5 |
15009 | $as_echo_n "checking for --${enablestring:-enable}-mousewheel... " >&6; } | |
15010 | # Check whether --enable-mousewheel was given. | |
15011 | if test "${enable_mousewheel+set}" = set; then : | |
15012 | enableval=$enable_mousewheel; | |
15013 | if test "$enableval" = yes; then | |
15014 | wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
15015 | else | |
15016 | wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
15017 | fi | |
0093c2fc | 15018 | |
0093c2fc | 15019 | else |
0093c2fc | 15020 | |
3dd30495 | 15021 | wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}" |
0093c2fc VZ |
15022 | |
15023 | fi | |
47964710 | 15024 | |
0093c2fc | 15025 | |
3dd30495 | 15026 | eval "$wx_cv_use_mousewheel" |
0093c2fc | 15027 | |
3dd30495 VZ |
15028 | if test x"$enablestring" = xdisable; then |
15029 | if test $wxUSE_MOUSEWHEEL = no; then | |
15030 | result=yes | |
15031 | else | |
15032 | result=no | |
15033 | fi | |
15034 | else | |
15035 | result=$wxUSE_MOUSEWHEEL | |
15036 | fi | |
3006edc0 | 15037 | |
3dd30495 VZ |
15038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15039 | $as_echo "$result" >&6; } | |
3006edc0 | 15040 | |
a9e5b1f0 | 15041 | |
3dd30495 VZ |
15042 | enablestring= |
15043 | defaultval=$wxUSE_ALL_FEATURES | |
15044 | if test -z "$defaultval"; then | |
15045 | if test x"$enablestring" = xdisable; then | |
15046 | defaultval=yes | |
15047 | else | |
15048 | defaultval=no | |
15049 | fi | |
15050 | fi | |
a9e5b1f0 | 15051 | |
3dd30495 VZ |
15052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-validators" >&5 |
15053 | $as_echo_n "checking for --${enablestring:-enable}-validators... " >&6; } | |
15054 | # Check whether --enable-validators was given. | |
15055 | if test "${enable_validators+set}" = set; then : | |
15056 | enableval=$enable_validators; | |
15057 | if test "$enableval" = yes; then | |
15058 | wx_cv_use_validators='wxUSE_VALIDATORS=yes' | |
15059 | else | |
15060 | wx_cv_use_validators='wxUSE_VALIDATORS=no' | |
15061 | fi | |
3006edc0 | 15062 | |
a848cd7e | 15063 | else |
a848cd7e | 15064 | |
3dd30495 VZ |
15065 | wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}" |
15066 | ||
a848cd7e | 15067 | fi |
47964710 | 15068 | |
a848cd7e | 15069 | |
3dd30495 | 15070 | eval "$wx_cv_use_validators" |
a848cd7e | 15071 | |
3dd30495 VZ |
15072 | if test x"$enablestring" = xdisable; then |
15073 | if test $wxUSE_VALIDATORS = no; then | |
15074 | result=yes | |
15075 | else | |
15076 | result=no | |
15077 | fi | |
15078 | else | |
15079 | result=$wxUSE_VALIDATORS | |
15080 | fi | |
47964710 | 15081 | |
3dd30495 VZ |
15082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15083 | $as_echo "$result" >&6; } | |
a848cd7e | 15084 | |
a848cd7e | 15085 | |
3dd30495 VZ |
15086 | enablestring= |
15087 | defaultval=$wxUSE_ALL_FEATURES | |
15088 | if test -z "$defaultval"; then | |
15089 | if test x"$enablestring" = xdisable; then | |
15090 | defaultval=yes | |
15091 | else | |
15092 | defaultval=no | |
15093 | fi | |
15094 | fi | |
15095 | ||
15096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-busyinfo" >&5 | |
15097 | $as_echo_n "checking for --${enablestring:-enable}-busyinfo... " >&6; } | |
15098 | # Check whether --enable-busyinfo was given. | |
15099 | if test "${enable_busyinfo+set}" = set; then : | |
15100 | enableval=$enable_busyinfo; | |
15101 | if test "$enableval" = yes; then | |
15102 | wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
15103 | else | |
15104 | wx_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
15105 | fi | |
a848cd7e | 15106 | |
a848cd7e | 15107 | else |
a848cd7e | 15108 | |
3dd30495 VZ |
15109 | wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}" |
15110 | ||
a848cd7e | 15111 | fi |
47964710 | 15112 | |
a848cd7e | 15113 | |
3dd30495 VZ |
15114 | eval "$wx_cv_use_busyinfo" |
15115 | ||
15116 | if test x"$enablestring" = xdisable; then | |
15117 | if test $wxUSE_BUSYINFO = no; then | |
15118 | result=yes | |
15119 | else | |
15120 | result=no | |
15121 | fi | |
15122 | else | |
15123 | result=$wxUSE_BUSYINFO | |
15124 | fi | |
a848cd7e | 15125 | |
3dd30495 VZ |
15126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15127 | $as_echo "$result" >&6; } | |
47964710 | 15128 | |
a848cd7e | 15129 | |
3dd30495 VZ |
15130 | enablestring= |
15131 | defaultval=$wxUSE_ALL_FEATURES | |
15132 | if test -z "$defaultval"; then | |
15133 | if test x"$enablestring" = xdisable; then | |
15134 | defaultval=yes | |
15135 | else | |
15136 | defaultval=no | |
15137 | fi | |
15138 | fi | |
15139 | ||
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-hotkey" >&5 | |
15141 | $as_echo_n "checking for --${enablestring:-enable}-hotkey... " >&6; } | |
15142 | # Check whether --enable-hotkey was given. | |
15143 | if test "${enable_hotkey+set}" = set; then : | |
15144 | enableval=$enable_hotkey; | |
15145 | if test "$enableval" = yes; then | |
15146 | wx_cv_use_hotkey='wxUSE_HOTKEY=yes' | |
15147 | else | |
15148 | wx_cv_use_hotkey='wxUSE_HOTKEY=no' | |
15149 | fi | |
15150 | ||
a848cd7e | 15151 | else |
a848cd7e | 15152 | |
3dd30495 | 15153 | wx_cv_use_hotkey='wxUSE_HOTKEY=${'DEFAULT_wxUSE_HOTKEY":-$defaultval}" |
a848cd7e | 15154 | |
3dd30495 | 15155 | fi |
a848cd7e | 15156 | |
47964710 | 15157 | |
3dd30495 | 15158 | eval "$wx_cv_use_hotkey" |
d589327a | 15159 | |
3dd30495 VZ |
15160 | if test x"$enablestring" = xdisable; then |
15161 | if test $wxUSE_HOTKEY = no; then | |
15162 | result=yes | |
15163 | else | |
15164 | result=no | |
15165 | fi | |
15166 | else | |
15167 | result=$wxUSE_HOTKEY | |
15168 | fi | |
d589327a | 15169 | |
3dd30495 VZ |
15170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15171 | $as_echo "$result" >&6; } | |
d589327a VZ |
15172 | |
15173 | ||
3dd30495 VZ |
15174 | enablestring= |
15175 | defaultval=$wxUSE_ALL_FEATURES | |
15176 | if test -z "$defaultval"; then | |
15177 | if test x"$enablestring" = xdisable; then | |
15178 | defaultval=yes | |
15179 | else | |
15180 | defaultval=no | |
15181 | fi | |
15182 | fi | |
d589327a | 15183 | |
3dd30495 VZ |
15184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-joystick" >&5 |
15185 | $as_echo_n "checking for --${enablestring:-enable}-joystick... " >&6; } | |
15186 | # Check whether --enable-joystick was given. | |
15187 | if test "${enable_joystick+set}" = set; then : | |
15188 | enableval=$enable_joystick; | |
15189 | if test "$enableval" = yes; then | |
15190 | wx_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
15191 | else | |
15192 | wx_cv_use_joystick='wxUSE_JOYSTICK=no' | |
15193 | fi | |
d589327a | 15194 | |
47964710 | 15195 | else |
47964710 | 15196 | |
3dd30495 | 15197 | wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}" |
d589327a | 15198 | |
47964710 | 15199 | fi |
47964710 VS |
15200 | |
15201 | ||
3dd30495 | 15202 | eval "$wx_cv_use_joystick" |
d589327a | 15203 | |
3dd30495 VZ |
15204 | if test x"$enablestring" = xdisable; then |
15205 | if test $wxUSE_JOYSTICK = no; then | |
15206 | result=yes | |
15207 | else | |
15208 | result=no | |
15209 | fi | |
15210 | else | |
15211 | result=$wxUSE_JOYSTICK | |
15212 | fi | |
d589327a | 15213 | |
3dd30495 VZ |
15214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15215 | $as_echo "$result" >&6; } | |
d589327a VZ |
15216 | |
15217 | ||
3dd30495 VZ |
15218 | enablestring= |
15219 | defaultval=$wxUSE_ALL_FEATURES | |
15220 | if test -z "$defaultval"; then | |
15221 | if test x"$enablestring" = xdisable; then | |
15222 | defaultval=yes | |
15223 | else | |
15224 | defaultval=no | |
15225 | fi | |
15226 | fi | |
d589327a | 15227 | |
3dd30495 VZ |
15228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-metafile" >&5 |
15229 | $as_echo_n "checking for --${enablestring:-enable}-metafile... " >&6; } | |
15230 | # Check whether --enable-metafile was given. | |
15231 | if test "${enable_metafile+set}" = set; then : | |
15232 | enableval=$enable_metafile; | |
15233 | if test "$enableval" = yes; then | |
15234 | wx_cv_use_metafile='wxUSE_METAFILE=yes' | |
15235 | else | |
15236 | wx_cv_use_metafile='wxUSE_METAFILE=no' | |
15237 | fi | |
d589327a | 15238 | |
47964710 | 15239 | else |
47964710 | 15240 | |
3dd30495 | 15241 | wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}" |
d589327a | 15242 | |
7fd3acaf | 15243 | fi |
a848cd7e SC |
15244 | |
15245 | ||
3dd30495 | 15246 | eval "$wx_cv_use_metafile" |
a848cd7e | 15247 | |
3dd30495 VZ |
15248 | if test x"$enablestring" = xdisable; then |
15249 | if test $wxUSE_METAFILE = no; then | |
15250 | result=yes | |
15251 | else | |
15252 | result=no | |
15253 | fi | |
15254 | else | |
15255 | result=$wxUSE_METAFILE | |
15256 | fi | |
a848cd7e | 15257 | |
3dd30495 VZ |
15258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15259 | $as_echo "$result" >&6; } | |
a848cd7e | 15260 | |
a848cd7e | 15261 | |
3dd30495 VZ |
15262 | enablestring= |
15263 | defaultval=$wxUSE_ALL_FEATURES | |
15264 | if test -z "$defaultval"; then | |
15265 | if test x"$enablestring" = xdisable; then | |
15266 | defaultval=yes | |
15267 | else | |
15268 | defaultval=no | |
15269 | fi | |
15270 | fi | |
a848cd7e | 15271 | |
3dd30495 VZ |
15272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dragimage" >&5 |
15273 | $as_echo_n "checking for --${enablestring:-enable}-dragimage... " >&6; } | |
15274 | # Check whether --enable-dragimage was given. | |
15275 | if test "${enable_dragimage+set}" = set; then : | |
15276 | enableval=$enable_dragimage; | |
15277 | if test "$enableval" = yes; then | |
15278 | wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
15279 | else | |
15280 | wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
15281 | fi | |
a848cd7e | 15282 | |
a848cd7e | 15283 | else |
a848cd7e | 15284 | |
3dd30495 | 15285 | wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}" |
47964710 | 15286 | |
a848cd7e | 15287 | fi |
a848cd7e | 15288 | |
a848cd7e | 15289 | |
3dd30495 | 15290 | eval "$wx_cv_use_dragimage" |
47964710 | 15291 | |
3dd30495 VZ |
15292 | if test x"$enablestring" = xdisable; then |
15293 | if test $wxUSE_DRAGIMAGE = no; then | |
15294 | result=yes | |
15295 | else | |
15296 | result=no | |
15297 | fi | |
15298 | else | |
15299 | result=$wxUSE_DRAGIMAGE | |
15300 | fi | |
a848cd7e | 15301 | |
3dd30495 VZ |
15302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15303 | $as_echo "$result" >&6; } | |
a848cd7e | 15304 | |
a848cd7e | 15305 | |
3dd30495 VZ |
15306 | enablestring= |
15307 | defaultval=$wxUSE_ALL_FEATURES | |
15308 | if test -z "$defaultval"; then | |
15309 | if test x"$enablestring" = xdisable; then | |
15310 | defaultval=yes | |
15311 | else | |
15312 | defaultval=no | |
15313 | fi | |
15314 | fi | |
a848cd7e | 15315 | |
3dd30495 VZ |
15316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-accessibility" >&5 |
15317 | $as_echo_n "checking for --${enablestring:-enable}-accessibility... " >&6; } | |
15318 | # Check whether --enable-accessibility was given. | |
15319 | if test "${enable_accessibility+set}" = set; then : | |
15320 | enableval=$enable_accessibility; | |
15321 | if test "$enableval" = yes; then | |
15322 | wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
15323 | else | |
15324 | wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
15325 | fi | |
a848cd7e | 15326 | |
a848cd7e | 15327 | else |
47964710 | 15328 | |
3dd30495 | 15329 | wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}" |
a848cd7e SC |
15330 | |
15331 | fi | |
a848cd7e | 15332 | |
a848cd7e | 15333 | |
3dd30495 | 15334 | eval "$wx_cv_use_accessibility" |
a848cd7e | 15335 | |
3dd30495 VZ |
15336 | if test x"$enablestring" = xdisable; then |
15337 | if test $wxUSE_ACCESSIBILITY = no; then | |
15338 | result=yes | |
15339 | else | |
15340 | result=no | |
15341 | fi | |
15342 | else | |
15343 | result=$wxUSE_ACCESSIBILITY | |
15344 | fi | |
47964710 | 15345 | |
3dd30495 VZ |
15346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15347 | $as_echo "$result" >&6; } | |
47964710 | 15348 | |
a848cd7e | 15349 | |
3dd30495 VZ |
15350 | enablestring= |
15351 | defaultval=$wxUSE_ALL_FEATURES | |
15352 | if test -z "$defaultval"; then | |
15353 | if test x"$enablestring" = xdisable; then | |
15354 | defaultval=yes | |
15355 | else | |
15356 | defaultval=no | |
15357 | fi | |
15358 | fi | |
47964710 | 15359 | |
3dd30495 VZ |
15360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-uiactionsim" >&5 |
15361 | $as_echo_n "checking for --${enablestring:-enable}-uiactionsim... " >&6; } | |
15362 | # Check whether --enable-uiactionsim was given. | |
15363 | if test "${enable_uiactionsim+set}" = set; then : | |
15364 | enableval=$enable_uiactionsim; | |
15365 | if test "$enableval" = yes; then | |
15366 | wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=yes' | |
15367 | else | |
15368 | wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=no' | |
15369 | fi | |
47964710 | 15370 | |
a848cd7e | 15371 | else |
a848cd7e | 15372 | |
3dd30495 | 15373 | wx_cv_use_uiactionsim='wxUSE_UIACTIONSIMULATOR=${'DEFAULT_wxUSE_UIACTIONSIMULATOR":-$defaultval}" |
47964710 | 15374 | |
84ebfcbd | 15375 | fi |
47964710 | 15376 | |
47964710 | 15377 | |
3dd30495 | 15378 | eval "$wx_cv_use_uiactionsim" |
a848cd7e | 15379 | |
3dd30495 VZ |
15380 | if test x"$enablestring" = xdisable; then |
15381 | if test $wxUSE_UIACTIONSIMULATOR = no; then | |
15382 | result=yes | |
15383 | else | |
15384 | result=no | |
15385 | fi | |
15386 | else | |
15387 | result=$wxUSE_UIACTIONSIMULATOR | |
15388 | fi | |
15389 | ||
15390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 | |
15391 | $as_echo "$result" >&6; } | |
15392 | ||
15393 | ||
15394 | enablestring= | |
15395 | defaultval=$wxUSE_ALL_FEATURES | |
15396 | if test -z "$defaultval"; then | |
15397 | if test x"$enablestring" = xdisable; then | |
15398 | defaultval=yes | |
15399 | else | |
15400 | defaultval=no | |
15401 | fi | |
15402 | fi | |
a848cd7e | 15403 | |
3dd30495 VZ |
15404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dctransform" >&5 |
15405 | $as_echo_n "checking for --${enablestring:-enable}-dctransform... " >&6; } | |
15406 | # Check whether --enable-dctransform was given. | |
15407 | if test "${enable_dctransform+set}" = set; then : | |
15408 | enableval=$enable_dctransform; | |
15409 | if test "$enableval" = yes; then | |
15410 | wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=yes' | |
15411 | else | |
15412 | wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=no' | |
15413 | fi | |
ab0ad5f1 | 15414 | |
3dd30495 | 15415 | else |
ab0ad5f1 | 15416 | |
3dd30495 | 15417 | wx_cv_use_dctransform='wxUSE_DC_TRANSFORM_MATRIX=${'DEFAULT_wxUSE_DC_TRANSFORM_MATRIX":-$defaultval}" |
43a7c679 | 15418 | |
3dd30495 | 15419 | fi |
0f895b0c VS |
15420 | |
15421 | ||
3dd30495 | 15422 | eval "$wx_cv_use_dctransform" |
0f895b0c | 15423 | |
3dd30495 VZ |
15424 | if test x"$enablestring" = xdisable; then |
15425 | if test $wxUSE_DC_TRANSFORM_MATRIX = no; then | |
15426 | result=yes | |
15427 | else | |
15428 | result=no | |
15429 | fi | |
15430 | else | |
15431 | result=$wxUSE_DC_TRANSFORM_MATRIX | |
15432 | fi | |
0f895b0c | 15433 | |
3dd30495 VZ |
15434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15435 | $as_echo "$result" >&6; } | |
ab0ad5f1 | 15436 | |
ab0ad5f1 | 15437 | |
3dd30495 VZ |
15438 | enablestring= |
15439 | defaultval=$wxUSE_ALL_FEATURES | |
15440 | if test -z "$defaultval"; then | |
15441 | if test x"$enablestring" = xdisable; then | |
15442 | defaultval=yes | |
15443 | else | |
15444 | defaultval=no | |
15445 | fi | |
15446 | fi | |
ab0ad5f1 | 15447 | |
3dd30495 VZ |
15448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-webviewwebkit" >&5 |
15449 | $as_echo_n "checking for --${enablestring:-enable}-webviewwebkit... " >&6; } | |
15450 | # Check whether --enable-webviewwebkit was given. | |
15451 | if test "${enable_webviewwebkit+set}" = set; then : | |
15452 | enableval=$enable_webviewwebkit; | |
15453 | if test "$enableval" = yes; then | |
15454 | wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=yes' | |
15455 | else | |
15456 | wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=no' | |
15457 | fi | |
ab0ad5f1 | 15458 | |
ab0ad5f1 | 15459 | else |
ab0ad5f1 | 15460 | |
3dd30495 | 15461 | wx_cv_use_webviewwebkit='wxUSE_WEBVIEW_WEBKIT=${'DEFAULT_wxUSE_WEBVIEW_WEBKIT":-$defaultval}" |
ab0ad5f1 VZ |
15462 | |
15463 | fi | |
47964710 | 15464 | |
ab0ad5f1 | 15465 | |
3dd30495 | 15466 | eval "$wx_cv_use_webviewwebkit" |
ab0ad5f1 | 15467 | |
3dd30495 VZ |
15468 | if test x"$enablestring" = xdisable; then |
15469 | if test $wxUSE_WEBVIEW_WEBKIT = no; then | |
15470 | result=yes | |
15471 | else | |
15472 | result=no | |
15473 | fi | |
15474 | else | |
15475 | result=$wxUSE_WEBVIEW_WEBKIT | |
15476 | fi | |
ab0ad5f1 | 15477 | |
3dd30495 VZ |
15478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15479 | $as_echo "$result" >&6; } | |
43a7c679 | 15480 | |
ab0ad5f1 VZ |
15481 | |
15482 | ||
05622061 | 15483 | |
3dd30495 VZ |
15484 | enablestring= |
15485 | defaultval=$wxUSE_ALL_FEATURES | |
15486 | if test -z "$defaultval"; then | |
15487 | if test x"$enablestring" = xdisable; then | |
15488 | defaultval=yes | |
15489 | else | |
15490 | defaultval=no | |
15491 | fi | |
15492 | fi | |
05622061 | 15493 | |
3dd30495 VZ |
15494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-palette" >&5 |
15495 | $as_echo_n "checking for --${enablestring:-enable}-palette... " >&6; } | |
15496 | # Check whether --enable-palette was given. | |
15497 | if test "${enable_palette+set}" = set; then : | |
15498 | enableval=$enable_palette; | |
15499 | if test "$enableval" = yes; then | |
15500 | wx_cv_use_palette='wxUSE_PALETTE=yes' | |
15501 | else | |
15502 | wx_cv_use_palette='wxUSE_PALETTE=no' | |
15503 | fi | |
05622061 | 15504 | |
05622061 | 15505 | else |
05622061 | 15506 | |
3dd30495 | 15507 | wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}" |
05622061 | 15508 | |
3dd30495 | 15509 | fi |
05622061 | 15510 | |
05622061 | 15511 | |
3dd30495 | 15512 | eval "$wx_cv_use_palette" |
05622061 | 15513 | |
3dd30495 VZ |
15514 | if test x"$enablestring" = xdisable; then |
15515 | if test $wxUSE_PALETTE = no; then | |
15516 | result=yes | |
15517 | else | |
15518 | result=no | |
15519 | fi | |
15520 | else | |
15521 | result=$wxUSE_PALETTE | |
15522 | fi | |
05622061 | 15523 | |
3dd30495 VZ |
15524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15525 | $as_echo "$result" >&6; } | |
05622061 VZ |
15526 | |
15527 | ||
3dd30495 VZ |
15528 | enablestring= |
15529 | defaultval=$wxUSE_ALL_FEATURES | |
15530 | if test -z "$defaultval"; then | |
15531 | if test x"$enablestring" = xdisable; then | |
15532 | defaultval=yes | |
15533 | else | |
15534 | defaultval=no | |
15535 | fi | |
15536 | fi | |
05622061 | 15537 | |
3dd30495 VZ |
15538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-image" >&5 |
15539 | $as_echo_n "checking for --${enablestring:-enable}-image... " >&6; } | |
15540 | # Check whether --enable-image was given. | |
15541 | if test "${enable_image+set}" = set; then : | |
15542 | enableval=$enable_image; | |
15543 | if test "$enableval" = yes; then | |
15544 | wx_cv_use_image='wxUSE_IMAGE=yes' | |
15545 | else | |
15546 | wx_cv_use_image='wxUSE_IMAGE=no' | |
15547 | fi | |
05622061 | 15548 | |
3dd30495 | 15549 | else |
05622061 | 15550 | |
3dd30495 | 15551 | wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}" |
05622061 | 15552 | |
3dd30495 | 15553 | fi |
05622061 | 15554 | |
05622061 | 15555 | |
3dd30495 | 15556 | eval "$wx_cv_use_image" |
05622061 | 15557 | |
3dd30495 VZ |
15558 | if test x"$enablestring" = xdisable; then |
15559 | if test $wxUSE_IMAGE = no; then | |
15560 | result=yes | |
15561 | else | |
15562 | result=no | |
15563 | fi | |
15564 | else | |
15565 | result=$wxUSE_IMAGE | |
15566 | fi | |
05622061 | 15567 | |
3dd30495 VZ |
15568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15569 | $as_echo "$result" >&6; } | |
05622061 | 15570 | |
05622061 | 15571 | |
3dd30495 VZ |
15572 | enablestring= |
15573 | defaultval=$wxUSE_ALL_FEATURES | |
15574 | if test -z "$defaultval"; then | |
15575 | if test x"$enablestring" = xdisable; then | |
15576 | defaultval=yes | |
15577 | else | |
15578 | defaultval=no | |
15579 | fi | |
15580 | fi | |
05622061 | 15581 | |
3dd30495 VZ |
15582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-gif" >&5 |
15583 | $as_echo_n "checking for --${enablestring:-enable}-gif... " >&6; } | |
15584 | # Check whether --enable-gif was given. | |
15585 | if test "${enable_gif+set}" = set; then : | |
15586 | enableval=$enable_gif; | |
15587 | if test "$enableval" = yes; then | |
15588 | wx_cv_use_gif='wxUSE_GIF=yes' | |
15589 | else | |
15590 | wx_cv_use_gif='wxUSE_GIF=no' | |
15591 | fi | |
05622061 | 15592 | |
3dd30495 | 15593 | else |
05622061 | 15594 | |
3dd30495 | 15595 | wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}" |
05622061 VZ |
15596 | |
15597 | fi | |
05622061 VZ |
15598 | |
15599 | ||
3dd30495 | 15600 | eval "$wx_cv_use_gif" |
05622061 | 15601 | |
3dd30495 VZ |
15602 | if test x"$enablestring" = xdisable; then |
15603 | if test $wxUSE_GIF = no; then | |
15604 | result=yes | |
15605 | else | |
15606 | result=no | |
15607 | fi | |
15608 | else | |
15609 | result=$wxUSE_GIF | |
15610 | fi | |
05622061 | 15611 | |
3dd30495 VZ |
15612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15613 | $as_echo "$result" >&6; } | |
480ccd21 | 15614 | |
480ccd21 | 15615 | |
3dd30495 VZ |
15616 | enablestring= |
15617 | defaultval=$wxUSE_ALL_FEATURES | |
15618 | if test -z "$defaultval"; then | |
15619 | if test x"$enablestring" = xdisable; then | |
15620 | defaultval=yes | |
15621 | else | |
15622 | defaultval=no | |
15623 | fi | |
15624 | fi | |
480ccd21 | 15625 | |
3dd30495 VZ |
15626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-pcx" >&5 |
15627 | $as_echo_n "checking for --${enablestring:-enable}-pcx... " >&6; } | |
15628 | # Check whether --enable-pcx was given. | |
15629 | if test "${enable_pcx+set}" = set; then : | |
15630 | enableval=$enable_pcx; | |
15631 | if test "$enableval" = yes; then | |
15632 | wx_cv_use_pcx='wxUSE_PCX=yes' | |
15633 | else | |
15634 | wx_cv_use_pcx='wxUSE_PCX=no' | |
15635 | fi | |
480ccd21 | 15636 | |
3dd30495 | 15637 | else |
480ccd21 | 15638 | |
3dd30495 | 15639 | wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}" |
480ccd21 | 15640 | |
3dd30495 | 15641 | fi |
3f7f284d | 15642 | |
3f7f284d | 15643 | |
3dd30495 | 15644 | eval "$wx_cv_use_pcx" |
47964710 | 15645 | |
3dd30495 VZ |
15646 | if test x"$enablestring" = xdisable; then |
15647 | if test $wxUSE_PCX = no; then | |
15648 | result=yes | |
15649 | else | |
15650 | result=no | |
15651 | fi | |
15652 | else | |
15653 | result=$wxUSE_PCX | |
15654 | fi | |
47964710 | 15655 | |
3dd30495 VZ |
15656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15657 | $as_echo "$result" >&6; } | |
47964710 | 15658 | |
47964710 | 15659 | |
3dd30495 VZ |
15660 | enablestring= |
15661 | defaultval=$wxUSE_ALL_FEATURES | |
15662 | if test -z "$defaultval"; then | |
15663 | if test x"$enablestring" = xdisable; then | |
15664 | defaultval=yes | |
15665 | else | |
15666 | defaultval=no | |
15667 | fi | |
15668 | fi | |
47964710 | 15669 | |
3dd30495 VZ |
15670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-tga" >&5 |
15671 | $as_echo_n "checking for --${enablestring:-enable}-tga... " >&6; } | |
15672 | # Check whether --enable-tga was given. | |
15673 | if test "${enable_tga+set}" = set; then : | |
15674 | enableval=$enable_tga; | |
15675 | if test "$enableval" = yes; then | |
15676 | wx_cv_use_tga='wxUSE_TGA=yes' | |
15677 | else | |
15678 | wx_cv_use_tga='wxUSE_TGA=no' | |
15679 | fi | |
47964710 | 15680 | |
480ccd21 | 15681 | else |
480ccd21 | 15682 | |
3dd30495 | 15683 | wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}" |
47964710 VS |
15684 | |
15685 | fi | |
15686 | ||
47964710 | 15687 | |
3dd30495 | 15688 | eval "$wx_cv_use_tga" |
47964710 | 15689 | |
3dd30495 VZ |
15690 | if test x"$enablestring" = xdisable; then |
15691 | if test $wxUSE_TGA = no; then | |
15692 | result=yes | |
15693 | else | |
15694 | result=no | |
3006edc0 | 15695 | fi |
3dd30495 VZ |
15696 | else |
15697 | result=$wxUSE_TGA | |
15698 | fi | |
3006edc0 | 15699 | |
3dd30495 VZ |
15700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15701 | $as_echo "$result" >&6; } | |
3006edc0 | 15702 | |
3006edc0 | 15703 | |
3dd30495 VZ |
15704 | enablestring= |
15705 | defaultval=$wxUSE_ALL_FEATURES | |
15706 | if test -z "$defaultval"; then | |
15707 | if test x"$enablestring" = xdisable; then | |
15708 | defaultval=yes | |
15709 | else | |
15710 | defaultval=no | |
15711 | fi | |
15712 | fi | |
15713 | ||
15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-iff" >&5 | |
15715 | $as_echo_n "checking for --${enablestring:-enable}-iff... " >&6; } | |
15716 | # Check whether --enable-iff was given. | |
15717 | if test "${enable_iff+set}" = set; then : | |
15718 | enableval=$enable_iff; | |
15719 | if test "$enableval" = yes; then | |
15720 | wx_cv_use_iff='wxUSE_IFF=yes' | |
15721 | else | |
15722 | wx_cv_use_iff='wxUSE_IFF=no' | |
15723 | fi | |
95986553 | 15724 | |
95986553 | 15725 | else |
95986553 | 15726 | |
3dd30495 | 15727 | wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}" |
43a7c679 | 15728 | |
3dd30495 | 15729 | fi |
95986553 | 15730 | |
95986553 | 15731 | |
3dd30495 VZ |
15732 | eval "$wx_cv_use_iff" |
15733 | ||
15734 | if test x"$enablestring" = xdisable; then | |
15735 | if test $wxUSE_IFF = no; then | |
15736 | result=yes | |
15737 | else | |
15738 | result=no | |
15739 | fi | |
15740 | else | |
15741 | result=$wxUSE_IFF | |
15742 | fi | |
15743 | ||
15744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 | |
15745 | $as_echo "$result" >&6; } | |
15746 | ||
15747 | ||
15748 | enablestring= | |
15749 | defaultval=$wxUSE_ALL_FEATURES | |
15750 | if test -z "$defaultval"; then | |
15751 | if test x"$enablestring" = xdisable; then | |
15752 | defaultval=yes | |
15753 | else | |
15754 | defaultval=no | |
15755 | fi | |
15756 | fi | |
43a7c679 | 15757 | |
3dd30495 VZ |
15758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-pnm" >&5 |
15759 | $as_echo_n "checking for --${enablestring:-enable}-pnm... " >&6; } | |
15760 | # Check whether --enable-pnm was given. | |
15761 | if test "${enable_pnm+set}" = set; then : | |
15762 | enableval=$enable_pnm; | |
15763 | if test "$enableval" = yes; then | |
15764 | wx_cv_use_pnm='wxUSE_PNM=yes' | |
15765 | else | |
15766 | wx_cv_use_pnm='wxUSE_PNM=no' | |
15767 | fi | |
47964710 | 15768 | |
3dd30495 | 15769 | else |
43a7c679 | 15770 | |
3dd30495 | 15771 | wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}" |
95986553 DE |
15772 | |
15773 | fi | |
43a7c679 VZ |
15774 | |
15775 | ||
3dd30495 | 15776 | eval "$wx_cv_use_pnm" |
43a7c679 | 15777 | |
3dd30495 VZ |
15778 | if test x"$enablestring" = xdisable; then |
15779 | if test $wxUSE_PNM = no; then | |
15780 | result=yes | |
15781 | else | |
15782 | result=no | |
15783 | fi | |
15784 | else | |
15785 | result=$wxUSE_PNM | |
15786 | fi | |
43a7c679 | 15787 | |
3dd30495 VZ |
15788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15789 | $as_echo "$result" >&6; } | |
43a7c679 | 15790 | |
43a7c679 | 15791 | |
3dd30495 VZ |
15792 | enablestring= |
15793 | defaultval=$wxUSE_ALL_FEATURES | |
15794 | if test -z "$defaultval"; then | |
15795 | if test x"$enablestring" = xdisable; then | |
15796 | defaultval=yes | |
15797 | else | |
15798 | defaultval=no | |
15799 | fi | |
15800 | fi | |
43a7c679 | 15801 | |
3dd30495 VZ |
15802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-xpm" >&5 |
15803 | $as_echo_n "checking for --${enablestring:-enable}-xpm... " >&6; } | |
15804 | # Check whether --enable-xpm was given. | |
15805 | if test "${enable_xpm+set}" = set; then : | |
15806 | enableval=$enable_xpm; | |
15807 | if test "$enableval" = yes; then | |
15808 | wx_cv_use_xpm='wxUSE_XPM=yes' | |
15809 | else | |
15810 | wx_cv_use_xpm='wxUSE_XPM=no' | |
15811 | fi | |
43a7c679 | 15812 | |
43a7c679 | 15813 | else |
43a7c679 | 15814 | |
3dd30495 | 15815 | wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}" |
43a7c679 VZ |
15816 | |
15817 | fi | |
95986553 DE |
15818 | |
15819 | ||
3dd30495 | 15820 | eval "$wx_cv_use_xpm" |
43a7c679 | 15821 | |
3dd30495 VZ |
15822 | if test x"$enablestring" = xdisable; then |
15823 | if test $wxUSE_XPM = no; then | |
15824 | result=yes | |
15825 | else | |
15826 | result=no | |
15827 | fi | |
15828 | else | |
15829 | result=$wxUSE_XPM | |
15830 | fi | |
43a7c679 | 15831 | |
3dd30495 VZ |
15832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15833 | $as_echo "$result" >&6; } | |
9273ffba | 15834 | |
9273ffba | 15835 | |
3dd30495 VZ |
15836 | enablestring= |
15837 | defaultval=$wxUSE_ALL_FEATURES | |
15838 | if test -z "$defaultval"; then | |
15839 | if test x"$enablestring" = xdisable; then | |
15840 | defaultval=yes | |
15841 | else | |
15842 | defaultval=no | |
15843 | fi | |
15844 | fi | |
43a7c679 | 15845 | |
3dd30495 VZ |
15846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ico_cur" >&5 |
15847 | $as_echo_n "checking for --${enablestring:-enable}-ico_cur... " >&6; } | |
15848 | # Check whether --enable-ico_cur was given. | |
15849 | if test "${enable_ico_cur+set}" = set; then : | |
15850 | enableval=$enable_ico_cur; | |
15851 | if test "$enableval" = yes; then | |
15852 | wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
15853 | else | |
15854 | wx_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
15855 | fi | |
9273ffba | 15856 | |
9273ffba | 15857 | else |
9273ffba | 15858 | |
3dd30495 | 15859 | wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}" |
43a7c679 | 15860 | |
9273ffba | 15861 | fi |
47964710 | 15862 | |
9273ffba | 15863 | |
3dd30495 | 15864 | eval "$wx_cv_use_ico_cur" |
9273ffba | 15865 | |
3dd30495 VZ |
15866 | if test x"$enablestring" = xdisable; then |
15867 | if test $wxUSE_ICO_CUR = no; then | |
15868 | result=yes | |
15869 | else | |
15870 | result=no | |
15871 | fi | |
15872 | else | |
15873 | result=$wxUSE_ICO_CUR | |
15874 | fi | |
9273ffba | 15875 | |
3dd30495 VZ |
15876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15877 | $as_echo "$result" >&6; } | |
9273ffba | 15878 | |
43a7c679 | 15879 | |
3006edc0 | 15880 | |
95986553 | 15881 | |
3dd30495 VZ |
15882 | enablestring= |
15883 | defaultval=$wxUSE_ALL_FEATURES | |
15884 | if test -z "$defaultval"; then | |
15885 | if test x"$enablestring" = xdisable; then | |
15886 | defaultval=yes | |
15887 | else | |
15888 | defaultval=no | |
15889 | fi | |
15890 | fi | |
6dcfc289 | 15891 | |
3dd30495 VZ |
15892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-dccache" >&5 |
15893 | $as_echo_n "checking for --${enablestring:-enable}-dccache... " >&6; } | |
15894 | # Check whether --enable-dccache was given. | |
15895 | if test "${enable_dccache+set}" = set; then : | |
15896 | enableval=$enable_dccache; | |
15897 | if test "$enableval" = yes; then | |
15898 | wx_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
15899 | else | |
15900 | wx_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
15901 | fi | |
0ad5d837 | 15902 | |
0ad5d837 | 15903 | else |
0ad5d837 | 15904 | |
3dd30495 | 15905 | wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}" |
0ad5d837 | 15906 | |
3dd30495 | 15907 | fi |
0ad5d837 | 15908 | |
0ad5d837 | 15909 | |
3dd30495 | 15910 | eval "$wx_cv_use_dccache" |
0ad5d837 | 15911 | |
3dd30495 VZ |
15912 | if test x"$enablestring" = xdisable; then |
15913 | if test $wxUSE_DC_CACHEING = no; then | |
15914 | result=yes | |
15915 | else | |
15916 | result=no | |
15917 | fi | |
15918 | else | |
15919 | result=$wxUSE_DC_CACHEING | |
15920 | fi | |
47964710 | 15921 | |
3dd30495 VZ |
15922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15923 | $as_echo "$result" >&6; } | |
0ad5d837 VZ |
15924 | |
15925 | ||
3dd30495 VZ |
15926 | enablestring= |
15927 | defaultval=$wxUSE_ALL_FEATURES | |
15928 | if test -z "$defaultval"; then | |
15929 | if test x"$enablestring" = xdisable; then | |
15930 | defaultval=yes | |
15931 | else | |
15932 | defaultval=no | |
15933 | fi | |
15934 | fi | |
15935 | ||
15936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ps-in-msw" >&5 | |
15937 | $as_echo_n "checking for --${enablestring:-enable}-ps-in-msw... " >&6; } | |
15938 | # Check whether --enable-ps-in-msw was given. | |
15939 | if test "${enable_ps_in_msw+set}" = set; then : | |
15940 | enableval=$enable_ps_in_msw; | |
15941 | if test "$enableval" = yes; then | |
15942 | wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes' | |
15943 | else | |
15944 | wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no' | |
15945 | fi | |
0ad5d837 | 15946 | |
3dd30495 | 15947 | else |
43a7c679 | 15948 | |
3dd30495 | 15949 | wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}" |
43a7c679 | 15950 | |
3dd30495 | 15951 | fi |
43a7c679 | 15952 | |
43a7c679 | 15953 | |
3dd30495 | 15954 | eval "$wx_cv_use_ps_in_msw" |
43a7c679 | 15955 | |
3dd30495 VZ |
15956 | if test x"$enablestring" = xdisable; then |
15957 | if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = no; then | |
15958 | result=yes | |
15959 | else | |
15960 | result=no | |
15961 | fi | |
15962 | else | |
15963 | result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW | |
15964 | fi | |
43a7c679 | 15965 | |
3dd30495 VZ |
15966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
15967 | $as_echo "$result" >&6; } | |
43a7c679 | 15968 | |
43a7c679 | 15969 | |
3dd30495 VZ |
15970 | enablestring= |
15971 | defaultval=$wxUSE_ALL_FEATURES | |
15972 | if test -z "$defaultval"; then | |
15973 | if test x"$enablestring" = xdisable; then | |
15974 | defaultval=yes | |
15975 | else | |
15976 | defaultval=no | |
15977 | fi | |
15978 | fi | |
15979 | ||
15980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-ownerdrawn" >&5 | |
15981 | $as_echo_n "checking for --${enablestring:-enable}-ownerdrawn... " >&6; } | |
15982 | # Check whether --enable-ownerdrawn was given. | |
15983 | if test "${enable_ownerdrawn+set}" = set; then : | |
15984 | enableval=$enable_ownerdrawn; | |
15985 | if test "$enableval" = yes; then | |
15986 | wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes' | |
15987 | else | |
15988 | wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no' | |
15989 | fi | |
43a7c679 | 15990 | |
43a7c679 | 15991 | else |
43a7c679 | 15992 | |
3dd30495 | 15993 | wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}" |
43a7c679 VZ |
15994 | |
15995 | fi | |
47964710 | 15996 | |
43a7c679 | 15997 | |
3dd30495 | 15998 | eval "$wx_cv_use_ownerdrawn" |
43a7c679 | 15999 | |
3dd30495 VZ |
16000 | if test x"$enablestring" = xdisable; then |
16001 | if test $wxUSE_OWNER_DRAWN = no; then | |
16002 | result=yes | |
16003 | else | |
16004 | result=no | |
16005 | fi | |
16006 | else | |
16007 | result=$wxUSE_OWNER_DRAWN | |
16008 | fi | |
43a7c679 | 16009 | |
3dd30495 VZ |
16010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
16011 | $as_echo "$result" >&6; } | |
0ad5d837 VZ |
16012 | |
16013 | ||
3dd30495 VZ |
16014 | enablestring= |
16015 | defaultval=$wxUSE_ALL_FEATURES | |
16016 | if test -z "$defaultval"; then | |
16017 | if test x"$enablestring" = xdisable; then | |
16018 | defaultval=yes | |
16019 | else | |
16020 | defaultval=no | |
16021 | fi | |
16022 | fi | |
3006edc0 | 16023 | |
3dd30495 VZ |
16024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-uxtheme" >&5 |
16025 | $as_echo_n "checking for --${enablestring:-enable}-uxtheme... " >&6; } | |
16026 | # Check whether --enable-uxtheme was given. | |
16027 | if test "${enable_uxtheme+set}" = set; then : | |
16028 | enableval=$enable_uxtheme; | |
16029 | if test "$enableval" = yes; then | |
16030 | wx_cv_use_uxtheme='wxUSE_UXTHEME=yes' | |
16031 | else | |
16032 | wx_cv_use_uxtheme='wxUSE_UXTHEME=no' | |
16033 | fi | |
3006edc0 | 16034 | |
3dd30495 | 16035 | else |
3006edc0 | 16036 | |
3dd30495 | 16037 | wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}" |
3006edc0 | 16038 | |
3dd30495 | 16039 | fi |
3006edc0 | 16040 | |
3006edc0 | 16041 | |
3dd30495 | 16042 | eval "$wx_cv_use_uxtheme" |
3006edc0 | 16043 | |
3dd30495 VZ |
16044 | if test x"$enablestring" = xdisable; then |
16045 | if test $wxUSE_UXTHEME = no; then | |
16046 | result=yes | |
16047 | else | |
16048 | result=no | |
16049 | fi | |
16050 | else | |
16051 | result=$wxUSE_UXTHEME | |
16052 | fi | |
3006edc0 | 16053 | |
3dd30495 VZ |
16054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
16055 | $as_echo "$result" >&6; } | |
3006edc0 | 16056 | |
47964710 | 16057 | |
3dd30495 VZ |
16058 | enablestring= |
16059 | defaultval=$wxUSE_ALL_FEATURES | |
16060 | if test -z "$defaultval"; then | |
16061 | if test x"$enablestring" = xdisable; then | |
16062 | defaultval=yes | |
16063 | else | |
16064 | defaultval=no | |
16065 | fi | |
16066 | fi | |
3006edc0 | 16067 | |
3dd30495 VZ |
16068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-wxdib" >&5 |
16069 | $as_echo_n "checking for --${enablestring:-enable}-wxdib... " >&6; } | |
16070 | # Check whether --enable-wxdib was given. | |
16071 | if test "${enable_wxdib+set}" = set; then : | |
16072 | enableval=$enable_wxdib; | |
16073 | if test "$enableval" = yes; then | |
16074 | wx_cv_use_wxdib='wxUSE_DIB=yes' | |
16075 | else | |
16076 | wx_cv_use_wxdib='wxUSE_DIB=no' | |
16077 | fi | |
3006edc0 | 16078 | |
3dd30495 | 16079 | else |
3006edc0 | 16080 | |
3dd30495 | 16081 | wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}" |
a1aa0349 | 16082 | |
3dd30495 | 16083 | fi |
a1aa0349 | 16084 | |
a1aa0349 | 16085 | |
3dd30495 | 16086 | eval "$wx_cv_use_wxdib" |
a1aa0349 | 16087 | |
3dd30495 VZ |
16088 | if test x"$enablestring" = xdisable; then |
16089 | if test $wxUSE_DIB = no; then | |
16090 | result=yes | |
16091 | else | |
16092 | result=no | |
16093 | fi | |
16094 | else | |
16095 | result=$wxUSE_DIB | |
16096 | fi | |
a1aa0349 | 16097 | |
3dd30495 VZ |
16098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
16099 | $as_echo "$result" >&6; } | |
a1aa0349 | 16100 | |
a1aa0349 | 16101 | |
3dd30495 VZ |
16102 | enablestring= |
16103 | defaultval=$wxUSE_ALL_FEATURES | |
16104 | if test -z "$defaultval"; then | |
16105 | if test x"$enablestring" = xdisable; then | |
16106 | defaultval=yes | |
16107 | else | |
16108 | defaultval=no | |
16109 | fi | |
16110 | fi | |
a1aa0349 | 16111 | |
3dd30495 VZ |
16112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-webviewie" >&5 |
16113 | $as_echo_n "checking for --${enablestring:-enable}-webviewie... " >&6; } | |
16114 | # Check whether --enable-webviewie was given. | |
16115 | if test "${enable_webviewie+set}" = set; then : | |
16116 | enableval=$enable_webviewie; | |
16117 | if test "$enableval" = yes; then | |
16118 | wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=yes' | |
16119 | else | |
16120 | wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=no' | |
16121 | fi | |
a1aa0349 | 16122 | |
a1aa0349 | 16123 | else |
a1aa0349 | 16124 | |
3dd30495 | 16125 | wx_cv_use_webviewie='wxUSE_WEBVIEW_IE=${'DEFAULT_wxUSE_WEBVIEW_IE":-$defaultval}" |
a1aa0349 VZ |
16126 | |
16127 | fi | |
47964710 | 16128 | |
a1aa0349 | 16129 | |
3dd30495 | 16130 | eval "$wx_cv_use_webviewie" |
a1aa0349 | 16131 | |
3dd30495 VZ |
16132 | if test x"$enablestring" = xdisable; then |
16133 | if test $wxUSE_WEBVIEW_IE = no; then | |
16134 | result=yes | |
16135 | else | |
16136 | result=no | |
16137 | fi | |
16138 | else | |
16139 | result=$wxUSE_WEBVIEW_IE | |
16140 | fi | |
a1aa0349 | 16141 | |
3dd30495 VZ |
16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
16143 | $as_echo "$result" >&6; } | |
0093c2fc VZ |
16144 | |
16145 | ||
3dd30495 VZ |
16146 | if test "$wxUSE_MSW" != 1; then |
16147 | DEFAULT_wxUSE_AUTOID_MANAGEMENT=no | |
16148 | fi | |
0093c2fc | 16149 | |
0093c2fc | 16150 | |
3dd30495 VZ |
16151 | enablestring= |
16152 | defaultval=$wxUSE_ALL_FEATURES | |
16153 | if test -z "$defaultval"; then | |
16154 | if test x"$enablestring" = xdisable; then | |
16155 | defaultval=yes | |
16156 | else | |
16157 | defaultval=no | |
16158 | fi | |
16159 | fi | |
0093c2fc | 16160 | |
3dd30495 VZ |
16161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --${enablestring:-enable}-autoidman" >&5 |
16162 | $as_echo_n "checking for --${enablestring:-enable}-autoidman... " >&6; } | |
16163 | # Check whether --enable-autoidman was given. | |
16164 | if test "${enable_autoidman+set}" = set; then : | |
16165 | enableval=$enable_autoidman; | |
16166 | if test "$enableval" = yes; then | |
16167 | wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=yes' | |
16168 | else | |
16169 | wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=no' | |
16170 | fi | |
0093c2fc | 16171 | |
0093c2fc | 16172 | else |
0093c2fc | 16173 | |
3dd30495 | 16174 | wx_cv_use_autoidman='wxUSE_AUTOID_MANAGEMENT=${'DEFAULT_wxUSE_AUTOID_MANAGEMENT":-$defaultval}" |
0093c2fc | 16175 | |
3dd30495 | 16176 | fi |
0093c2fc | 16177 | |
0093c2fc | 16178 | |
3dd30495 | 16179 | eval "$wx_cv_use_autoidman" |
0093c2fc | 16180 | |
3dd30495 VZ |
16181 | if test x"$enablestring" = xdisable; then |
16182 | if test $wxUSE_AUTOID_MANAGEMENT = no; then | |
16183 | result=yes | |
16184 | else | |
16185 | result=no | |
16186 | fi | |
16187 | else | |
16188 | result=$wxUSE_AUTOID_MANAGEMENT | |
16189 | fi | |
47964710 | 16190 | |
3dd30495 VZ |
16191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
16192 | $as_echo "$result" >&6; } | |
0093c2fc VZ |
16193 | |
16194 | ||
16195 | fi | |
a9e5b1f0 MW |
16196 | |
16197 | ||
3dd30495 VZ |
16198 | cat >confcache <<\_ACEOF |
16199 | # This file is a shell script that caches the results of configure | |
16200 | # tests run on this system so they can be shared between configure | |
16201 | # scripts and configure runs, see configure's option --config-cache. | |
16202 | # It is not useful on other systems. If it contains results you don't | |
16203 | # want to keep, you may remove or edit it. | |
16204 | # | |
16205 | # config.status only pays attention to the cache file if you give it | |
16206 | # the --recheck option to rerun configure. | |
16207 | # | |
16208 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
16209 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
16210 | # following values. | |
3006edc0 | 16211 | |
3dd30495 | 16212 | _ACEOF |
3006edc0 | 16213 | |
3dd30495 VZ |
16214 | # The following way of writing the cache mishandles newlines in values, |
16215 | # but we know of no workaround that is simple, portable, and efficient. | |
16216 | # So, we kill variables containing newlines. | |
16217 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16218 | # and sets the high bit in the cache file unless we assign to the vars. | |
16219 | ( | |
16220 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16221 | eval ac_val=\$$ac_var | |
16222 | case $ac_val in #( | |
16223 | *${as_nl}*) | |
16224 | case $ac_var in #( | |
16225 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16226 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16227 | esac | |
16228 | case $ac_var in #( | |
16229 | _ | IFS | as_nl) ;; #( | |
16230 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16231 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16232 | esac ;; | |
16233 | esac | |
16234 | done | |
3006edc0 | 16235 | |
3dd30495 VZ |
16236 | (set) 2>&1 | |
16237 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16238 | *${as_nl}ac_space=\ *) | |
16239 | # `set' does not quote correctly, so add quotes: double-quote | |
16240 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16241 | sed -n \ | |
16242 | "s/'/'\\\\''/g; | |
16243 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16244 | ;; #( | |
16245 | *) | |
16246 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
16247 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16248 | ;; | |
16249 | esac | | |
16250 | sort | |
16251 | ) | | |
16252 | sed ' | |
16253 | /^ac_cv_env_/b end | |
16254 | t clear | |
16255 | :clear | |
16256 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
16257 | t end | |
16258 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16259 | :end' >>confcache | |
16260 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16261 | if test -w "$cache_file"; then | |
eff9d7f5 | 16262 | if test "x$cache_file" != "x/dev/null"; then |
3dd30495 VZ |
16263 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
16264 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
eff9d7f5 VZ |
16265 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
16266 | cat confcache >"$cache_file" | |
16267 | else | |
16268 | case $cache_file in #( | |
16269 | */* | ?:*) | |
16270 | mv -f confcache "$cache_file"$$ && | |
16271 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16272 | *) | |
16273 | mv -f confcache "$cache_file" ;; | |
16274 | esac | |
16275 | fi | |
16276 | fi | |
3dd30495 VZ |
16277 | else |
16278 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16279 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16280 | fi | |
d5e0be7d | 16281 | fi |
3dd30495 | 16282 | rm -f confcache |
d5e0be7d | 16283 | |
3dd30495 VZ |
16284 | CFLAGS=${CFLAGS:=} |
16285 | ac_ext=c | |
16286 | ac_cpp='$CPP $CPPFLAGS' | |
16287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
16290 | if test -n "$ac_tool_prefix"; then | |
16291 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
16292 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
16293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16294 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 16295 | if ${ac_cv_prog_CC+:} false; then : |
3dd30495 | 16296 | $as_echo_n "(cached) " >&6 |
a848cd7e | 16297 | else |
3dd30495 VZ |
16298 | if test -n "$CC"; then |
16299 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
a848cd7e SC |
16300 | else |
16301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16302 | for as_dir in $PATH | |
16303 | do | |
16304 | IFS=$as_save_IFS | |
16305 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 16306 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 16307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
16308 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
16309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
a848cd7e SC |
16310 | break 2 |
16311 | fi | |
16312 | done | |
3dd30495 | 16313 | done |
47964710 | 16314 | IFS=$as_save_IFS |
a848cd7e SC |
16315 | |
16316 | fi | |
16317 | fi | |
3dd30495 VZ |
16318 | CC=$ac_cv_prog_CC |
16319 | if test -n "$CC"; then | |
16320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
16321 | $as_echo "$CC" >&6; } | |
a848cd7e | 16322 | else |
3dd30495 VZ |
16323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16324 | $as_echo "no" >&6; } | |
a848cd7e SC |
16325 | fi |
16326 | ||
47964710 | 16327 | |
8c80d384 | 16328 | fi |
3dd30495 VZ |
16329 | if test -z "$ac_cv_prog_CC"; then |
16330 | ac_ct_CC=$CC | |
16331 | # Extract the first word of "gcc", so it can be a program name with args. | |
16332 | set dummy gcc; ac_word=$2 | |
16333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16334 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 16335 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3dd30495 | 16336 | $as_echo_n "(cached) " >&6 |
8c80d384 | 16337 | else |
3dd30495 VZ |
16338 | if test -n "$ac_ct_CC"; then |
16339 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
8c80d384 DE |
16340 | else |
16341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16342 | for as_dir in $PATH | |
16343 | do | |
16344 | IFS=$as_save_IFS | |
16345 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 16346 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 16347 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
16348 | ac_cv_prog_ac_ct_CC="gcc" |
16349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8c80d384 DE |
16350 | break 2 |
16351 | fi | |
16352 | done | |
3dd30495 | 16353 | done |
47964710 | 16354 | IFS=$as_save_IFS |
8c80d384 DE |
16355 | |
16356 | fi | |
16357 | fi | |
3dd30495 VZ |
16358 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
16359 | if test -n "$ac_ct_CC"; then | |
16360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
16361 | $as_echo "$ac_ct_CC" >&6; } | |
8c80d384 | 16362 | else |
3dd30495 VZ |
16363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16364 | $as_echo "no" >&6; } | |
8c80d384 DE |
16365 | fi |
16366 | ||
3dd30495 VZ |
16367 | if test "x$ac_ct_CC" = x; then |
16368 | CC="" | |
47964710 VS |
16369 | else |
16370 | case $cross_compiling:$ac_tool_warned in | |
16371 | yes:) | |
3dd30495 VZ |
16372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
16373 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
16374 | ac_tool_warned=yes ;; |
16375 | esac | |
3dd30495 | 16376 | CC=$ac_ct_CC |
47964710 | 16377 | fi |
8c80d384 | 16378 | else |
3dd30495 | 16379 | CC="$ac_cv_prog_CC" |
a848cd7e SC |
16380 | fi |
16381 | ||
3dd30495 VZ |
16382 | if test -z "$CC"; then |
16383 | if test -n "$ac_tool_prefix"; then | |
16384 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
16385 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
16386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16387 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 16388 | if ${ac_cv_prog_CC+:} false; then : |
3dd30495 VZ |
16389 | $as_echo_n "(cached) " >&6 |
16390 | else | |
16391 | if test -n "$CC"; then | |
16392 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
16393 | else | |
16394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16395 | for as_dir in $PATH | |
16396 | do | |
16397 | IFS=$as_save_IFS | |
16398 | test -z "$as_dir" && as_dir=. | |
16399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 16400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
16401 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
16402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16403 | break 2 | |
16404 | fi | |
16405 | done | |
16406 | done | |
16407 | IFS=$as_save_IFS | |
6c254c52 | 16408 | |
3dd30495 VZ |
16409 | fi |
16410 | fi | |
16411 | CC=$ac_cv_prog_CC | |
16412 | if test -n "$CC"; then | |
16413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
16414 | $as_echo "$CC" >&6; } | |
33f270af | 16415 | else |
3dd30495 VZ |
16416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16417 | $as_echo "no" >&6; } | |
33f270af | 16418 | fi |
b4e05bdd | 16419 | |
33f270af | 16420 | |
3dd30495 | 16421 | fi |
33f270af | 16422 | fi |
3dd30495 VZ |
16423 | if test -z "$CC"; then |
16424 | # Extract the first word of "cc", so it can be a program name with args. | |
16425 | set dummy cc; ac_word=$2 | |
16426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16427 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 16428 | if ${ac_cv_prog_CC+:} false; then : |
3dd30495 VZ |
16429 | $as_echo_n "(cached) " >&6 |
16430 | else | |
16431 | if test -n "$CC"; then | |
16432 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
16433 | else | |
16434 | ac_prog_rejected=no | |
16435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16436 | for as_dir in $PATH | |
16437 | do | |
16438 | IFS=$as_save_IFS | |
16439 | test -z "$as_dir" && as_dir=. | |
16440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 16441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
16442 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
16443 | ac_prog_rejected=yes | |
16444 | continue | |
16445 | fi | |
16446 | ac_cv_prog_CC="cc" | |
16447 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16448 | break 2 | |
16449 | fi | |
16450 | done | |
16451 | done | |
16452 | IFS=$as_save_IFS | |
80367c29 | 16453 | |
3dd30495 VZ |
16454 | if test $ac_prog_rejected = yes; then |
16455 | # We found a bogon in the path, so make sure we never use it. | |
16456 | set dummy $ac_cv_prog_CC | |
16457 | shift | |
16458 | if test $# != 0; then | |
16459 | # We chose a different compiler from the bogus one. | |
16460 | # However, it has the same basename, so the bogon will be chosen | |
16461 | # first if we set CC to just the basename; use the full file name. | |
16462 | shift | |
16463 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
16464 | fi | |
16465 | fi | |
16466 | fi | |
16467 | fi | |
16468 | CC=$ac_cv_prog_CC | |
16469 | if test -n "$CC"; then | |
16470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
16471 | $as_echo "$CC" >&6; } | |
16472 | else | |
16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16474 | $as_echo "no" >&6; } | |
b4e05bdd DE |
16475 | fi |
16476 | ||
16477 | ||
3dd30495 VZ |
16478 | fi |
16479 | if test -z "$CC"; then | |
16480 | if test -n "$ac_tool_prefix"; then | |
16481 | for ac_prog in cl.exe | |
16482 | do | |
16483 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
16484 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
16485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16486 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 16487 | if ${ac_cv_prog_CC+:} false; then : |
3dd30495 VZ |
16488 | $as_echo_n "(cached) " >&6 |
16489 | else | |
16490 | if test -n "$CC"; then | |
16491 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
16492 | else | |
16493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16494 | for as_dir in $PATH | |
16495 | do | |
16496 | IFS=$as_save_IFS | |
16497 | test -z "$as_dir" && as_dir=. | |
16498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 16499 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
16500 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
16501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16502 | break 2 | |
16503 | fi | |
16504 | done | |
16505 | done | |
16506 | IFS=$as_save_IFS | |
11804291 | 16507 | |
3dd30495 VZ |
16508 | fi |
16509 | fi | |
16510 | CC=$ac_cv_prog_CC | |
16511 | if test -n "$CC"; then | |
16512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
16513 | $as_echo "$CC" >&6; } | |
16514 | else | |
16515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16516 | $as_echo "no" >&6; } | |
16517 | fi | |
11804291 | 16518 | |
11804291 | 16519 | |
3dd30495 VZ |
16520 | test -n "$CC" && break |
16521 | done | |
16522 | fi | |
16523 | if test -z "$CC"; then | |
16524 | ac_ct_CC=$CC | |
16525 | for ac_prog in cl.exe | |
06a08679 VZ |
16526 | do |
16527 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16528 | set dummy $ac_prog; ac_word=$2 | |
3dd30495 VZ |
16529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
16530 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 16531 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3dd30495 | 16532 | $as_echo_n "(cached) " >&6 |
06a08679 | 16533 | else |
3dd30495 VZ |
16534 | if test -n "$ac_ct_CC"; then |
16535 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
06a08679 VZ |
16536 | else |
16537 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16538 | for as_dir in $PATH | |
16539 | do | |
16540 | IFS=$as_save_IFS | |
16541 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 16542 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 16543 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
16544 | ac_cv_prog_ac_ct_CC="$ac_prog" |
16545 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
06a08679 VZ |
16546 | break 2 |
16547 | fi | |
16548 | done | |
3dd30495 | 16549 | done |
06a08679 VZ |
16550 | IFS=$as_save_IFS |
16551 | ||
16552 | fi | |
16553 | fi | |
3dd30495 VZ |
16554 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
16555 | if test -n "$ac_ct_CC"; then | |
16556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
16557 | $as_echo "$ac_ct_CC" >&6; } | |
06a08679 | 16558 | else |
3dd30495 VZ |
16559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16560 | $as_echo "no" >&6; } | |
06a08679 VZ |
16561 | fi |
16562 | ||
16563 | ||
3dd30495 | 16564 | test -n "$ac_ct_CC" && break |
06a08679 VZ |
16565 | done |
16566 | ||
3dd30495 VZ |
16567 | if test "x$ac_ct_CC" = x; then |
16568 | CC="" | |
16569 | else | |
16570 | case $cross_compiling:$ac_tool_warned in | |
16571 | yes:) | |
16572 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16573 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16574 | ac_tool_warned=yes ;; | |
16575 | esac | |
16576 | CC=$ac_ct_CC | |
16577 | fi | |
8e6b680d KO |
16578 | fi |
16579 | ||
8e6b680d KO |
16580 | fi |
16581 | ||
8e6b680d | 16582 | |
3dd30495 VZ |
16583 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
16584 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16585 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
eff9d7f5 | 16586 | See \`config.log' for more details" "$LINENO" 5; } |
8e6b680d | 16587 | |
3dd30495 VZ |
16588 | # Provide some information about the compiler. |
16589 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
16590 | set X $ac_compile | |
16591 | ac_compiler=$2 | |
16592 | for ac_option in --version -v -V -qversion; do | |
16593 | { { ac_try="$ac_compiler $ac_option >&5" | |
16594 | case "(($ac_try" in | |
16595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16596 | *) ac_try_echo=$ac_try;; | |
16597 | esac | |
16598 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16599 | $as_echo "$ac_try_echo"; } >&5 | |
16600 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
16601 | ac_status=$? | |
16602 | if test -s conftest.err; then | |
16603 | sed '10a\ | |
16604 | ... rest of stderr output deleted ... | |
16605 | 10q' conftest.err >conftest.er1 | |
16606 | cat conftest.er1 >&5 | |
16607 | fi | |
16608 | rm -f conftest.er1 conftest.err | |
16609 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16610 | test $ac_status = 0; } | |
16611 | done | |
b4e05bdd | 16612 | |
3dd30495 VZ |
16613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
16614 | /* end confdefs.h. */ | |
e3e89e62 | 16615 | |
3dd30495 VZ |
16616 | int |
16617 | main () | |
16618 | { | |
16619 | ||
16620 | ; | |
16621 | return 0; | |
16622 | } | |
16623 | _ACEOF | |
16624 | ac_clean_files_save=$ac_clean_files | |
16625 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
16626 | # Try to create an executable without -o first, disregard a.out. | |
16627 | # It will help us diagnose broken compilers, and finding out an intuition | |
16628 | # of exeext. | |
16629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
16630 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
16631 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
16632 | ||
16633 | # The possible output files: | |
16634 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
16635 | ||
16636 | ac_rmfiles= | |
16637 | for ac_file in $ac_files | |
16638 | do | |
16639 | case $ac_file in | |
16640 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
16641 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
16642 | esac | |
16643 | done | |
16644 | rm -f $ac_rmfiles | |
16645 | ||
16646 | if { { ac_try="$ac_link_default" | |
16647 | case "(($ac_try" in | |
16648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16649 | *) ac_try_echo=$ac_try;; | |
16650 | esac | |
16651 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16652 | $as_echo "$ac_try_echo"; } >&5 | |
16653 | (eval "$ac_link_default") 2>&5 | |
16654 | ac_status=$? | |
16655 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16656 | test $ac_status = 0; }; then : | |
16657 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
16658 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
16659 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
16660 | # so that the user can short-circuit this test for compilers unknown to | |
16661 | # Autoconf. | |
16662 | for ac_file in $ac_files '' | |
16663 | do | |
16664 | test -f "$ac_file" || continue | |
16665 | case $ac_file in | |
16666 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
16667 | ;; | |
16668 | [ab].out ) | |
16669 | # We found the default executable, but exeext='' is most | |
16670 | # certainly right. | |
16671 | break;; | |
16672 | *.* ) | |
16673 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
16674 | then :; else | |
16675 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
16676 | fi | |
16677 | # We set ac_cv_exeext here because the later test for it is not | |
16678 | # safe: cross compilers may not add the suffix if given an `-o' | |
16679 | # argument, so we may need to know it at that point already. | |
16680 | # Even if this section looks crufty: it has the advantage of | |
16681 | # actually working. | |
16682 | break;; | |
16683 | * ) | |
16684 | break;; | |
16685 | esac | |
16686 | done | |
16687 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
16688 | ||
16689 | else | |
16690 | ac_file='' | |
b4e05bdd | 16691 | fi |
3dd30495 VZ |
16692 | if test -z "$ac_file"; then : |
16693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16694 | $as_echo "no" >&6; } | |
16695 | $as_echo "$as_me: failed program was:" >&5 | |
16696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b4e05bdd | 16697 | |
3dd30495 VZ |
16698 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
16699 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16700 | as_fn_error 77 "C compiler cannot create executables | |
eff9d7f5 | 16701 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
16702 | else |
16703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16704 | $as_echo "yes" >&6; } | |
16705 | fi | |
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
16707 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
16708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
16709 | $as_echo "$ac_file" >&6; } | |
16710 | ac_exeext=$ac_cv_exeext | |
b4e05bdd | 16711 | |
3dd30495 VZ |
16712 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
16713 | ac_clean_files=$ac_clean_files_save | |
16714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
16715 | $as_echo_n "checking for suffix of executables... " >&6; } | |
16716 | if { { ac_try="$ac_link" | |
16717 | case "(($ac_try" in | |
16718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16719 | *) ac_try_echo=$ac_try;; | |
16720 | esac | |
16721 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16722 | $as_echo "$ac_try_echo"; } >&5 | |
16723 | (eval "$ac_link") 2>&5 | |
16724 | ac_status=$? | |
16725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16726 | test $ac_status = 0; }; then : | |
16727 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
16728 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
16729 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
16730 | # `rm'. | |
16731 | for ac_file in conftest.exe conftest conftest.*; do | |
16732 | test -f "$ac_file" || continue | |
16733 | case $ac_file in | |
16734 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
16735 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
16736 | break;; | |
16737 | * ) break;; | |
16738 | esac | |
16739 | done | |
16740 | else | |
16741 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16742 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16743 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
eff9d7f5 | 16744 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
16745 | fi |
16746 | rm -f conftest conftest$ac_cv_exeext | |
16747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
16748 | $as_echo "$ac_cv_exeext" >&6; } | |
b4e05bdd | 16749 | |
3dd30495 VZ |
16750 | rm -f conftest.$ac_ext |
16751 | EXEEXT=$ac_cv_exeext | |
16752 | ac_exeext=$EXEEXT | |
16753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16754 | /* end confdefs.h. */ | |
16755 | #include <stdio.h> | |
b4e05bdd DE |
16756 | int |
16757 | main () | |
16758 | { | |
3dd30495 VZ |
16759 | FILE *f = fopen ("conftest.out", "w"); |
16760 | return ferror (f) || fclose (f) != 0; | |
b4e05bdd DE |
16761 | |
16762 | ; | |
16763 | return 0; | |
16764 | } | |
16765 | _ACEOF | |
3dd30495 VZ |
16766 | ac_clean_files="$ac_clean_files conftest.out" |
16767 | # Check that the compiler produces executables we can run. If not, either | |
16768 | # the compiler is broken, or we cross compile. | |
16769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
16770 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
16771 | if test "$cross_compiling" != yes; then | |
16772 | { { ac_try="$ac_link" | |
47964710 VS |
16773 | case "(($ac_try" in |
16774 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16775 | *) ac_try_echo=$ac_try;; | |
16776 | esac | |
3dd30495 VZ |
16777 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
16778 | $as_echo "$ac_try_echo"; } >&5 | |
16779 | (eval "$ac_link") 2>&5 | |
b4e05bdd | 16780 | ac_status=$? |
3dd30495 VZ |
16781 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16782 | test $ac_status = 0; } | |
16783 | if { ac_try='./conftest$ac_cv_exeext' | |
16784 | { { case "(($ac_try" in | |
16785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16786 | *) ac_try_echo=$ac_try;; | |
16787 | esac | |
16788 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
16789 | $as_echo "$ac_try_echo"; } >&5 | |
16790 | (eval "$ac_try") 2>&5 | |
16791 | ac_status=$? | |
16792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16793 | test $ac_status = 0; }; }; then | |
16794 | cross_compiling=no | |
16795 | else | |
16796 | if test "$cross_compiling" = maybe; then | |
16797 | cross_compiling=yes | |
16798 | else | |
16799 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
16800 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16801 | as_fn_error $? "cannot run C compiled programs. | |
16802 | If you meant to cross compile, use \`--host'. | |
eff9d7f5 | 16803 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
16804 | fi |
16805 | fi | |
b4e05bdd | 16806 | fi |
3dd30495 VZ |
16807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
16808 | $as_echo "$cross_compiling" >&6; } | |
47964710 | 16809 | |
3dd30495 VZ |
16810 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
16811 | ac_clean_files=$ac_clean_files_save | |
16812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
16813 | $as_echo_n "checking for suffix of object files... " >&6; } | |
eff9d7f5 | 16814 | if ${ac_cv_objext+:} false; then : |
3dd30495 VZ |
16815 | $as_echo_n "(cached) " >&6 |
16816 | else | |
16817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
b4e05bdd DE |
16818 | /* end confdefs.h. */ |
16819 | ||
16820 | int | |
16821 | main () | |
16822 | { | |
16823 | ||
16824 | ; | |
16825 | return 0; | |
16826 | } | |
16827 | _ACEOF | |
3dd30495 VZ |
16828 | rm -f conftest.o conftest.obj |
16829 | if { { ac_try="$ac_compile" | |
47964710 VS |
16830 | case "(($ac_try" in |
16831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16832 | *) ac_try_echo=$ac_try;; | |
16833 | esac | |
3dd30495 VZ |
16834 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
16835 | $as_echo "$ac_try_echo"; } >&5 | |
16836 | (eval "$ac_compile") 2>&5 | |
b4e05bdd | 16837 | ac_status=$? |
3dd30495 VZ |
16838 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
16839 | test $ac_status = 0; }; then : | |
16840 | for ac_file in conftest.o conftest.obj conftest.*; do | |
16841 | test -f "$ac_file" || continue; | |
16842 | case $ac_file in | |
16843 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
16844 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
16845 | break;; | |
16846 | esac | |
16847 | done | |
b4e05bdd | 16848 | else |
3dd30495 | 16849 | $as_echo "$as_me: failed program was:" >&5 |
b4e05bdd DE |
16850 | sed 's/^/| /' conftest.$ac_ext >&5 |
16851 | ||
3dd30495 VZ |
16852 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
16853 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16854 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
eff9d7f5 | 16855 | See \`config.log' for more details" "$LINENO" 5; } |
b4e05bdd | 16856 | fi |
3dd30495 | 16857 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
6c254c52 | 16858 | fi |
3dd30495 VZ |
16859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
16860 | $as_echo "$ac_cv_objext" >&6; } | |
16861 | OBJEXT=$ac_cv_objext | |
16862 | ac_objext=$OBJEXT | |
16863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
16864 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
eff9d7f5 | 16865 | if ${ac_cv_c_compiler_gnu+:} false; then : |
3dd30495 VZ |
16866 | $as_echo_n "(cached) " >&6 |
16867 | else | |
16868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16869 | /* end confdefs.h. */ | |
a848cd7e | 16870 | |
3dd30495 VZ |
16871 | int |
16872 | main () | |
16873 | { | |
16874 | #ifndef __GNUC__ | |
16875 | choke me | |
16876 | #endif | |
a848cd7e | 16877 | |
3dd30495 VZ |
16878 | ; |
16879 | return 0; | |
16880 | } | |
be1c88bf | 16881 | _ACEOF |
3dd30495 VZ |
16882 | if ac_fn_c_try_compile "$LINENO"; then : |
16883 | ac_compiler_gnu=yes | |
16884 | else | |
16885 | ac_compiler_gnu=no | |
be1c88bf | 16886 | fi |
3dd30495 VZ |
16887 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16888 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
be1c88bf | 16889 | |
9273ffba | 16890 | fi |
3dd30495 VZ |
16891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
16892 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
16893 | if test $ac_compiler_gnu = yes; then | |
16894 | GCC=yes | |
16895 | else | |
16896 | GCC= | |
16897 | fi | |
16898 | ac_test_CFLAGS=${CFLAGS+set} | |
16899 | ac_save_CFLAGS=$CFLAGS | |
16900 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
16901 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
eff9d7f5 | 16902 | if ${ac_cv_prog_cc_g+:} false; then : |
3dd30495 VZ |
16903 | $as_echo_n "(cached) " >&6 |
16904 | else | |
16905 | ac_save_c_werror_flag=$ac_c_werror_flag | |
16906 | ac_c_werror_flag=yes | |
16907 | ac_cv_prog_cc_g=no | |
16908 | CFLAGS="-g" | |
16909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4d7ec9f1 DE |
16910 | /* end confdefs.h. */ |
16911 | ||
16912 | int | |
16913 | main () | |
16914 | { | |
4d7ec9f1 DE |
16915 | |
16916 | ; | |
16917 | return 0; | |
16918 | } | |
16919 | _ACEOF | |
3dd30495 VZ |
16920 | if ac_fn_c_try_compile "$LINENO"; then : |
16921 | ac_cv_prog_cc_g=yes | |
4d7ec9f1 | 16922 | else |
3dd30495 VZ |
16923 | CFLAGS="" |
16924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16925 | /* end confdefs.h. */ | |
47964710 | 16926 | |
3dd30495 VZ |
16927 | int |
16928 | main () | |
16929 | { | |
cfda0ea8 | 16930 | |
3dd30495 VZ |
16931 | ; |
16932 | return 0; | |
16933 | } | |
4d7ec9f1 | 16934 | _ACEOF |
3dd30495 VZ |
16935 | if ac_fn_c_try_compile "$LINENO"; then : |
16936 | ||
16937 | else | |
16938 | ac_c_werror_flag=$ac_save_c_werror_flag | |
16939 | CFLAGS="-g" | |
16940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4d7ec9f1 | 16941 | /* end confdefs.h. */ |
4d7ec9f1 DE |
16942 | |
16943 | int | |
16944 | main () | |
16945 | { | |
16946 | ||
16947 | ; | |
16948 | return 0; | |
16949 | } | |
16950 | _ACEOF | |
3dd30495 VZ |
16951 | if ac_fn_c_try_compile "$LINENO"; then : |
16952 | ac_cv_prog_cc_g=yes | |
16953 | fi | |
16954 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16955 | fi | |
16956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16957 | fi | |
16958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16959 | ac_c_werror_flag=$ac_save_c_werror_flag | |
16960 | fi | |
16961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
16962 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
16963 | if test "$ac_test_CFLAGS" = set; then | |
16964 | CFLAGS=$ac_save_CFLAGS | |
16965 | elif test $ac_cv_prog_cc_g = yes; then | |
16966 | if test "$GCC" = yes; then | |
16967 | CFLAGS="-g -O2" | |
16968 | else | |
16969 | CFLAGS="-g" | |
16970 | fi | |
4d7ec9f1 | 16971 | else |
3dd30495 VZ |
16972 | if test "$GCC" = yes; then |
16973 | CFLAGS="-O2" | |
16974 | else | |
16975 | CFLAGS= | |
16976 | fi | |
16977 | fi | |
16978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
16979 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
eff9d7f5 | 16980 | if ${ac_cv_prog_cc_c89+:} false; then : |
3dd30495 VZ |
16981 | $as_echo_n "(cached) " >&6 |
16982 | else | |
16983 | ac_cv_prog_cc_c89=no | |
16984 | ac_save_CC=$CC | |
16985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4d7ec9f1 | 16986 | /* end confdefs.h. */ |
3dd30495 VZ |
16987 | #include <stdarg.h> |
16988 | #include <stdio.h> | |
eff9d7f5 | 16989 | struct stat; |
3dd30495 VZ |
16990 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
16991 | struct buf { int x; }; | |
16992 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
16993 | static char *e (p, i) | |
16994 | char **p; | |
16995 | int i; | |
16996 | { | |
16997 | return p[i]; | |
16998 | } | |
16999 | static char *f (char * (*g) (char **, int), char **p, ...) | |
17000 | { | |
17001 | char *s; | |
17002 | va_list v; | |
17003 | va_start (v,p); | |
17004 | s = g (p, va_arg (v,int)); | |
17005 | va_end (v); | |
17006 | return s; | |
17007 | } | |
17008 | ||
17009 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
17010 | function prototypes and stuff, but not '\xHH' hex character constants. | |
17011 | These don't provoke an error unfortunately, instead are silently treated | |
17012 | as 'x'. The following induces an error, until -std is added to get | |
17013 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
17014 | array size at least. It's necessary to write '\x00'==0 to get something | |
17015 | that's true only with -std. */ | |
17016 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
17017 | ||
17018 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
17019 | inside strings and character constants. */ | |
17020 | #define FOO(x) 'x' | |
17021 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4d7ec9f1 | 17022 | |
3dd30495 VZ |
17023 | int test (int i, double x); |
17024 | struct s1 {int (*f) (int a);}; | |
17025 | struct s2 {int (*f) (double a);}; | |
17026 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
17027 | int argc; | |
17028 | char **argv; | |
4d7ec9f1 DE |
17029 | int |
17030 | main () | |
17031 | { | |
3dd30495 | 17032 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4d7ec9f1 DE |
17033 | ; |
17034 | return 0; | |
17035 | } | |
17036 | _ACEOF | |
3dd30495 VZ |
17037 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
17038 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
17039 | do | |
17040 | CC="$ac_save_CC $ac_arg" | |
17041 | if ac_fn_c_try_compile "$LINENO"; then : | |
17042 | ac_cv_prog_cc_c89=$ac_arg | |
17043 | fi | |
17044 | rm -f core conftest.err conftest.$ac_objext | |
17045 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
17046 | done | |
17047 | rm -f conftest.$ac_ext | |
17048 | CC=$ac_save_CC | |
4d7ec9f1 | 17049 | |
3dd30495 VZ |
17050 | fi |
17051 | # AC_CACHE_VAL | |
17052 | case "x$ac_cv_prog_cc_c89" in | |
17053 | x) | |
17054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
17055 | $as_echo "none needed" >&6; } ;; | |
17056 | xno) | |
17057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
17058 | $as_echo "unsupported" >&6; } ;; | |
17059 | *) | |
17060 | CC="$CC $ac_cv_prog_cc_c89" | |
17061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
17062 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
17063 | esac | |
17064 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4d7ec9f1 DE |
17065 | |
17066 | fi | |
47964710 | 17067 | |
3dd30495 VZ |
17068 | ac_ext=c |
17069 | ac_cpp='$CPP $CPPFLAGS' | |
17070 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17071 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17072 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4d7ec9f1 DE |
17073 | |
17074 | ||
47964710 | 17075 | |
4d7ec9f1 | 17076 | |
8bf7f1a9 | 17077 | |
3dd30495 VZ |
17078 | |
17079 | ||
17080 | ||
17081 | ac_ext=c | |
17082 | ac_cpp='$CPP $CPPFLAGS' | |
17083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17086 | ||
17087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel C compiler" >&5 | |
17088 | $as_echo_n "checking whether we are using the Intel C compiler... " >&6; } | |
eff9d7f5 | 17089 | if ${bakefile_cv_c_compiler___INTEL_COMPILER+:} false; then : |
3dd30495 VZ |
17090 | $as_echo_n "(cached) " >&6 |
17091 | else | |
17092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8bf7f1a9 VZ |
17093 | /* end confdefs.h. */ |
17094 | ||
17095 | int | |
17096 | main () | |
17097 | { | |
17098 | ||
3dd30495 VZ |
17099 | #ifndef __INTEL_COMPILER |
17100 | choke me | |
17101 | #endif | |
8bf7f1a9 VZ |
17102 | |
17103 | ; | |
17104 | return 0; | |
17105 | } | |
17106 | _ACEOF | |
3dd30495 VZ |
17107 | if ac_fn_c_try_compile "$LINENO"; then : |
17108 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
8bf7f1a9 | 17109 | else |
3dd30495 | 17110 | bakefile_cv_c_compiler___INTEL_COMPILER=no |
8bf7f1a9 VZ |
17111 | |
17112 | fi | |
47964710 | 17113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8bf7f1a9 VZ |
17114 | |
17115 | ||
17116 | fi | |
3dd30495 VZ |
17117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 |
17118 | $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; } | |
17119 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
17120 | :; INTELCC=yes | |
17121 | else | |
17122 | :; | |
17123 | fi | |
17124 | ac_ext=c | |
17125 | ac_cpp='$CPP $CPPFLAGS' | |
17126 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17127 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17128 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8bf7f1a9 | 17129 | |
8bf7f1a9 | 17130 | |
8bf7f1a9 | 17131 | |
8bf7f1a9 | 17132 | |
3dd30495 | 17133 | if test "$INTELCC" = "yes"; then |
8bf7f1a9 | 17134 | |
8bf7f1a9 | 17135 | |
3dd30495 VZ |
17136 | ac_ext=c |
17137 | ac_cpp='$CPP $CPPFLAGS' | |
17138 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17139 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17140 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17141 | ||
17142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v8 or later" >&5 | |
17143 | $as_echo_n "checking whether we are using Intel C compiler v8 or later... " >&6; } | |
eff9d7f5 | 17144 | if ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_800+:} false; then : |
3dd30495 VZ |
17145 | $as_echo_n "(cached) " >&6 |
17146 | else | |
17147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17148 | /* end confdefs.h. */ | |
17149 | ||
17150 | int | |
17151 | main () | |
17152 | { | |
17153 | ||
17154 | #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800 | |
17155 | choke me | |
17156 | #endif | |
8bf7f1a9 | 17157 | |
3dd30495 VZ |
17158 | ; |
17159 | return 0; | |
17160 | } | |
8bf7f1a9 | 17161 | _ACEOF |
3dd30495 VZ |
17162 | if ac_fn_c_try_compile "$LINENO"; then : |
17163 | bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=yes | |
17164 | else | |
17165 | bakefile_cv_c_compiler___INTEL_COMPILER_lt_800=no | |
8bf7f1a9 VZ |
17166 | |
17167 | fi | |
3dd30495 | 17168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
8bf7f1a9 | 17169 | |
8bf7f1a9 VZ |
17170 | |
17171 | fi | |
3dd30495 VZ |
17172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&5 |
17173 | $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" >&6; } | |
17174 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_800" = "xyes"; then | |
17175 | :; INTELCC8=yes | |
17176 | else | |
17177 | :; | |
17178 | fi | |
17179 | ac_ext=c | |
17180 | ac_cpp='$CPP $CPPFLAGS' | |
17181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8bf7f1a9 | 17184 | |
3dd30495 VZ |
17185 | |
17186 | ||
17187 | ||
17188 | ||
17189 | ac_ext=c | |
17190 | ac_cpp='$CPP $CPPFLAGS' | |
17191 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17192 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17193 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17194 | ||
17195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler v10 or later" >&5 | |
17196 | $as_echo_n "checking whether we are using Intel C compiler v10 or later... " >&6; } | |
eff9d7f5 | 17197 | if ${bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000+:} false; then : |
3dd30495 | 17198 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17199 | else |
3dd30495 | 17200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
17201 | /* end confdefs.h. */ |
17202 | ||
a848cd7e SC |
17203 | int |
17204 | main () | |
17205 | { | |
3dd30495 VZ |
17206 | |
17207 | #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000 | |
17208 | choke me | |
17209 | #endif | |
17210 | ||
a848cd7e SC |
17211 | ; |
17212 | return 0; | |
17213 | } | |
17214 | _ACEOF | |
3dd30495 VZ |
17215 | if ac_fn_c_try_compile "$LINENO"; then : |
17216 | bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=yes | |
a848cd7e | 17217 | else |
3dd30495 | 17218 | bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000=no |
a848cd7e | 17219 | |
a848cd7e | 17220 | fi |
3dd30495 VZ |
17221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17222 | ||
47964710 | 17223 | |
a848cd7e | 17224 | fi |
3dd30495 VZ |
17225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&5 |
17226 | $as_echo "$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" >&6; } | |
17227 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then | |
17228 | :; INTELCC10=yes | |
17229 | else | |
17230 | :; | |
17231 | fi | |
17232 | ac_ext=c | |
17233 | ac_cpp='$CPP $CPPFLAGS' | |
17234 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17235 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17236 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17237 | |
a848cd7e | 17238 | |
391a765e | 17239 | |
3dd30495 VZ |
17240 | fi |
17241 | ||
17242 | if test "x$GCC" != "xyes"; then | |
17243 | if test "xCC" = "xC"; then | |
17244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler requires -ext o" >&5 | |
17245 | $as_echo_n "checking if the C compiler requires -ext o... " >&6; } | |
eff9d7f5 | 17246 | if ${bakefile_cv_c_exto+:} false; then : |
3dd30495 | 17247 | $as_echo_n "(cached) " >&6 |
391a765e | 17248 | else |
3dd30495 | 17249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
17250 | /* end confdefs.h. */ |
17251 | ||
3dd30495 VZ |
17252 | int |
17253 | main () | |
17254 | { | |
17255 | ||
17256 | ; | |
17257 | return 0; | |
17258 | } | |
17259 | _ACEOF | |
17260 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
17261 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
17262 | (eval $ac_compile) 2>&5 | |
a848cd7e | 17263 | ac_status=$? |
3dd30495 VZ |
17264 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
17265 | test $ac_status = 0; }; then : | |
17266 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
17267 | case $ac_file in | |
17268 | conftest.$ac_ext.o) | |
17269 | bakefile_cv_c_exto="-ext o" | |
17270 | ;; | |
17271 | *) | |
17272 | ;; | |
17273 | esac | |
17274 | done | |
a848cd7e | 17275 | else |
3dd30495 VZ |
17276 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
17277 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17278 | as_fn_error $? "cannot figure out if compiler needs -ext o: cannot compile | |
eff9d7f5 | 17279 | See \`config.log' for more details" "$LINENO" 5; } |
a848cd7e | 17280 | |
a848cd7e | 17281 | fi |
3dd30495 | 17282 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext |
47964710 | 17283 | |
a848cd7e | 17284 | fi |
3dd30495 VZ |
17285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_exto" >&5 |
17286 | $as_echo "$bakefile_cv_c_exto" >&6; } | |
17287 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
17288 | if test "c" = "c"; then | |
17289 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" | |
17290 | fi | |
17291 | if test "c" = "cxx"; then | |
17292 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" | |
17293 | fi | |
17294 | fi | |
a848cd7e | 17295 | |
3dd30495 VZ |
17296 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
17297 | unset ac_cv_prog_cc_g | |
17298 | ac_test_CFLAGS=${CFLAGS+set} | |
17299 | ac_save_CFLAGS=$CFLAGS | |
17300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
17301 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
eff9d7f5 | 17302 | if ${ac_cv_prog_cc_g+:} false; then : |
3dd30495 | 17303 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17304 | else |
3dd30495 VZ |
17305 | ac_save_c_werror_flag=$ac_c_werror_flag |
17306 | ac_c_werror_flag=yes | |
17307 | ac_cv_prog_cc_g=no | |
17308 | CFLAGS="-g" | |
17309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17310 | /* end confdefs.h. */ | |
17311 | ||
17312 | int | |
17313 | main () | |
17314 | { | |
a848cd7e | 17315 | |
3dd30495 VZ |
17316 | ; |
17317 | return 0; | |
17318 | } | |
a848cd7e | 17319 | _ACEOF |
3dd30495 VZ |
17320 | if ac_fn_c_try_compile "$LINENO"; then : |
17321 | ac_cv_prog_cc_g=yes | |
17322 | else | |
17323 | CFLAGS="" | |
17324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e SC |
17325 | /* end confdefs.h. */ |
17326 | ||
a848cd7e SC |
17327 | int |
17328 | main () | |
17329 | { | |
17330 | ||
a848cd7e SC |
17331 | ; |
17332 | return 0; | |
17333 | } | |
17334 | _ACEOF | |
3dd30495 VZ |
17335 | if ac_fn_c_try_compile "$LINENO"; then : |
17336 | ||
a848cd7e | 17337 | else |
3dd30495 VZ |
17338 | ac_c_werror_flag=$ac_save_c_werror_flag |
17339 | CFLAGS="-g" | |
17340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17341 | /* end confdefs.h. */ | |
a848cd7e | 17342 | |
3dd30495 VZ |
17343 | int |
17344 | main () | |
17345 | { | |
a848cd7e | 17346 | |
3dd30495 VZ |
17347 | ; |
17348 | return 0; | |
17349 | } | |
17350 | _ACEOF | |
17351 | if ac_fn_c_try_compile "$LINENO"; then : | |
17352 | ac_cv_prog_cc_g=yes | |
17353 | fi | |
17354 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17355 | fi | |
17356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17357 | fi | |
17358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17359 | ac_c_werror_flag=$ac_save_c_werror_flag | |
17360 | fi | |
17361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
17362 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
17363 | if test "$ac_test_CFLAGS" = set; then | |
17364 | CFLAGS=$ac_save_CFLAGS | |
17365 | elif test $ac_cv_prog_cc_g = yes; then | |
17366 | if test "$GCC" = yes; then | |
17367 | CFLAGS="-g -O2" | |
17368 | else | |
17369 | CFLAGS="-g" | |
17370 | fi | |
17371 | else | |
17372 | if test "$GCC" = yes; then | |
17373 | CFLAGS="-O2" | |
17374 | else | |
17375 | CFLAGS= | |
17376 | fi | |
a848cd7e | 17377 | fi |
3dd30495 VZ |
17378 | fi |
17379 | fi | |
47964710 | 17380 | |
3dd30495 VZ |
17381 | case `uname -s` in |
17382 | AIX*) | |
a848cd7e | 17383 | |
a848cd7e | 17384 | |
3dd30495 VZ |
17385 | ac_ext=c |
17386 | ac_cpp='$CPP $CPPFLAGS' | |
17387 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17388 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17389 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17390 | |
3dd30495 VZ |
17391 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5 |
17392 | $as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; } | |
eff9d7f5 | 17393 | if ${bakefile_cv_c_compiler___xlC__+:} false; then : |
3dd30495 | 17394 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17395 | else |
3dd30495 | 17396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
17397 | /* end confdefs.h. */ |
17398 | ||
a848cd7e SC |
17399 | int |
17400 | main () | |
17401 | { | |
17402 | ||
3dd30495 VZ |
17403 | #ifndef __xlC__ |
17404 | choke me | |
17405 | #endif | |
a848cd7e SC |
17406 | |
17407 | ; | |
17408 | return 0; | |
17409 | } | |
17410 | _ACEOF | |
3dd30495 VZ |
17411 | if ac_fn_c_try_compile "$LINENO"; then : |
17412 | bakefile_cv_c_compiler___xlC__=yes | |
a848cd7e | 17413 | else |
3dd30495 | 17414 | bakefile_cv_c_compiler___xlC__=no |
a848cd7e SC |
17415 | |
17416 | fi | |
3dd30495 | 17417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47964710 | 17418 | |
a848cd7e SC |
17419 | |
17420 | fi | |
3dd30495 VZ |
17421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5 |
17422 | $as_echo "$bakefile_cv_c_compiler___xlC__" >&6; } | |
17423 | if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then | |
17424 | :; XLCC=yes | |
17425 | else | |
17426 | :; | |
17427 | fi | |
17428 | ac_ext=c | |
17429 | ac_cpp='$CPP $CPPFLAGS' | |
17430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17433 | |
a848cd7e | 17434 | |
a848cd7e | 17435 | |
3dd30495 | 17436 | ;; |
a848cd7e | 17437 | |
3dd30495 VZ |
17438 | Darwin) |
17439 | ||
17440 | ||
17441 | ac_ext=c | |
17442 | ac_cpp='$CPP $CPPFLAGS' | |
17443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17446 | |
3dd30495 VZ |
17447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Metrowerks C compiler" >&5 |
17448 | $as_echo_n "checking whether we are using the Metrowerks C compiler... " >&6; } | |
eff9d7f5 | 17449 | if ${bakefile_cv_c_compiler___MWERKS__+:} false; then : |
3dd30495 | 17450 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17451 | else |
3dd30495 | 17452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 17453 | /* end confdefs.h. */ |
a848cd7e SC |
17454 | |
17455 | int | |
17456 | main () | |
17457 | { | |
17458 | ||
3dd30495 VZ |
17459 | #ifndef __MWERKS__ |
17460 | choke me | |
17461 | #endif | |
17462 | ||
a848cd7e SC |
17463 | ; |
17464 | return 0; | |
17465 | } | |
17466 | _ACEOF | |
3dd30495 VZ |
17467 | if ac_fn_c_try_compile "$LINENO"; then : |
17468 | bakefile_cv_c_compiler___MWERKS__=yes | |
a848cd7e | 17469 | else |
3dd30495 | 17470 | bakefile_cv_c_compiler___MWERKS__=no |
a848cd7e | 17471 | |
a848cd7e | 17472 | fi |
47964710 | 17473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17474 | |
a848cd7e | 17475 | |
a848cd7e | 17476 | fi |
3dd30495 VZ |
17477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___MWERKS__" >&5 |
17478 | $as_echo "$bakefile_cv_c_compiler___MWERKS__" >&6; } | |
17479 | if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then | |
17480 | :; MWCC=yes | |
17481 | else | |
17482 | :; | |
17483 | fi | |
17484 | ac_ext=c | |
17485 | ac_cpp='$CPP $CPPFLAGS' | |
17486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17489 | |
a848cd7e | 17490 | |
a848cd7e | 17491 | |
3dd30495 | 17492 | if test "$MWCC" != "yes"; then |
a848cd7e | 17493 | |
a848cd7e | 17494 | |
3dd30495 VZ |
17495 | ac_ext=c |
17496 | ac_cpp='$CPP $CPPFLAGS' | |
17497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17500 | ||
17501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C compiler" >&5 | |
17502 | $as_echo_n "checking whether we are using the IBM xlC C compiler... " >&6; } | |
eff9d7f5 | 17503 | if ${bakefile_cv_c_compiler___xlC__+:} false; then : |
3dd30495 | 17504 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17505 | else |
3dd30495 | 17506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 17507 | /* end confdefs.h. */ |
a848cd7e | 17508 | |
a848cd7e SC |
17509 | int |
17510 | main () | |
17511 | { | |
3dd30495 VZ |
17512 | |
17513 | #ifndef __xlC__ | |
17514 | choke me | |
17515 | #endif | |
17516 | ||
17517 | ; | |
47964710 | 17518 | return 0; |
a848cd7e SC |
17519 | } |
17520 | _ACEOF | |
3dd30495 VZ |
17521 | if ac_fn_c_try_compile "$LINENO"; then : |
17522 | bakefile_cv_c_compiler___xlC__=yes | |
a848cd7e | 17523 | else |
3dd30495 | 17524 | bakefile_cv_c_compiler___xlC__=no |
47964710 | 17525 | |
a848cd7e | 17526 | fi |
3dd30495 | 17527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17528 | |
a848cd7e SC |
17529 | |
17530 | fi | |
3dd30495 VZ |
17531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___xlC__" >&5 |
17532 | $as_echo "$bakefile_cv_c_compiler___xlC__" >&6; } | |
17533 | if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then | |
17534 | :; XLCC=yes | |
17535 | else | |
17536 | :; | |
17537 | fi | |
17538 | ac_ext=c | |
17539 | ac_cpp='$CPP $CPPFLAGS' | |
17540 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17541 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17542 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e SC |
17543 | |
17544 | ||
17545 | ||
3dd30495 VZ |
17546 | fi |
17547 | ;; | |
a848cd7e | 17548 | |
3dd30495 | 17549 | IRIX*) |
a848cd7e SC |
17550 | |
17551 | ||
3dd30495 VZ |
17552 | ac_ext=c |
17553 | ac_cpp='$CPP $CPPFLAGS' | |
17554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17557 | |
3dd30495 VZ |
17558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the SGI C compiler" >&5 |
17559 | $as_echo_n "checking whether we are using the SGI C compiler... " >&6; } | |
eff9d7f5 | 17560 | if ${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+:} false; then : |
3dd30495 | 17561 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17562 | else |
3dd30495 | 17563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 17564 | /* end confdefs.h. */ |
a848cd7e | 17565 | |
3dd30495 VZ |
17566 | int |
17567 | main () | |
17568 | { | |
17569 | ||
17570 | #ifndef _SGI_COMPILER_VERSION | |
17571 | choke me | |
17572 | #endif | |
17573 | ||
17574 | ; | |
17575 | return 0; | |
17576 | } | |
a848cd7e | 17577 | _ACEOF |
3dd30495 VZ |
17578 | if ac_fn_c_try_compile "$LINENO"; then : |
17579 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
a848cd7e | 17580 | else |
3dd30495 | 17581 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no |
a848cd7e | 17582 | |
a848cd7e | 17583 | fi |
47964710 | 17584 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 | 17585 | |
a848cd7e SC |
17586 | |
17587 | fi | |
3dd30495 VZ |
17588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 |
17589 | $as_echo "$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; } | |
17590 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
17591 | :; SGICC=yes | |
17592 | else | |
17593 | :; | |
17594 | fi | |
17595 | ac_ext=c | |
17596 | ac_cpp='$CPP $CPPFLAGS' | |
17597 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17598 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17599 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17600 | |
a848cd7e SC |
17601 | |
17602 | ||
3dd30495 | 17603 | ;; |
a848cd7e | 17604 | |
3dd30495 VZ |
17605 | Linux*) |
17606 | if test "$INTELCC" != "yes"; then | |
a848cd7e | 17607 | |
3dd30495 VZ |
17608 | |
17609 | ac_ext=c | |
17610 | ac_cpp='$CPP $CPPFLAGS' | |
17611 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17612 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17613 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17614 | ||
17615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5 | |
17616 | $as_echo_n "checking whether we are using the Sun C compiler... " >&6; } | |
eff9d7f5 | 17617 | if ${bakefile_cv_c_compiler___SUNPRO_C+:} false; then : |
3dd30495 | 17618 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17619 | else |
3dd30495 | 17620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 17621 | /* end confdefs.h. */ |
6e7b8bcb | 17622 | |
3dd30495 VZ |
17623 | int |
17624 | main () | |
17625 | { | |
17626 | ||
17627 | #ifndef __SUNPRO_C | |
17628 | choke me | |
17629 | #endif | |
17630 | ||
17631 | ; | |
17632 | return 0; | |
17633 | } | |
a848cd7e | 17634 | _ACEOF |
3dd30495 VZ |
17635 | if ac_fn_c_try_compile "$LINENO"; then : |
17636 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
a848cd7e | 17637 | else |
3dd30495 | 17638 | bakefile_cv_c_compiler___SUNPRO_C=no |
a848cd7e | 17639 | |
a848cd7e | 17640 | fi |
47964710 | 17641 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 | 17642 | |
a848cd7e SC |
17643 | |
17644 | fi | |
3dd30495 VZ |
17645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 |
17646 | $as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; } | |
17647 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
17648 | :; SUNCC=yes | |
17649 | else | |
17650 | :; | |
17651 | fi | |
17652 | ac_ext=c | |
17653 | ac_cpp='$CPP $CPPFLAGS' | |
17654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17657 | |
a848cd7e | 17658 | |
a848cd7e | 17659 | |
3dd30495 VZ |
17660 | fi |
17661 | ;; | |
1f7e12cc | 17662 | |
3dd30495 VZ |
17663 | HP-UX*) |
17664 | ||
17665 | ||
17666 | ac_ext=c | |
17667 | ac_cpp='$CPP $CPPFLAGS' | |
17668 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17669 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17670 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17671 | ||
17672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the HP C compiler" >&5 | |
17673 | $as_echo_n "checking whether we are using the HP C compiler... " >&6; } | |
eff9d7f5 | 17674 | if ${bakefile_cv_c_compiler___HP_cc+:} false; then : |
3dd30495 | 17675 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17676 | else |
3dd30495 | 17677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 17678 | /* end confdefs.h. */ |
6e7b8bcb | 17679 | |
3dd30495 VZ |
17680 | int |
17681 | main () | |
17682 | { | |
17683 | ||
17684 | #ifndef __HP_cc | |
17685 | choke me | |
17686 | #endif | |
17687 | ||
17688 | ; | |
17689 | return 0; | |
17690 | } | |
a848cd7e | 17691 | _ACEOF |
3dd30495 VZ |
17692 | if ac_fn_c_try_compile "$LINENO"; then : |
17693 | bakefile_cv_c_compiler___HP_cc=yes | |
a848cd7e | 17694 | else |
3dd30495 | 17695 | bakefile_cv_c_compiler___HP_cc=no |
a848cd7e | 17696 | |
a848cd7e | 17697 | fi |
47964710 | 17698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 | 17699 | |
1f7e12cc DE |
17700 | |
17701 | fi | |
3dd30495 VZ |
17702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
17703 | $as_echo "$bakefile_cv_c_compiler___HP_cc" >&6; } | |
17704 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then | |
17705 | :; HPCC=yes | |
17706 | else | |
17707 | :; | |
17708 | fi | |
17709 | ac_ext=c | |
17710 | ac_cpp='$CPP $CPPFLAGS' | |
17711 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17714 | |
a848cd7e | 17715 | |
a848cd7e | 17716 | |
3dd30495 | 17717 | ;; |
a848cd7e | 17718 | |
3dd30495 | 17719 | OSF1) |
1f7e12cc | 17720 | |
3dd30495 VZ |
17721 | |
17722 | ac_ext=c | |
17723 | ac_cpp='$CPP $CPPFLAGS' | |
17724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17727 | ||
17728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Compaq C compiler" >&5 | |
17729 | $as_echo_n "checking whether we are using the Compaq C compiler... " >&6; } | |
eff9d7f5 | 17730 | if ${bakefile_cv_c_compiler___DECC+:} false; then : |
3dd30495 | 17731 | $as_echo_n "(cached) " >&6 |
bc023abb | 17732 | else |
3dd30495 | 17733 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bc023abb | 17734 | /* end confdefs.h. */ |
6e7b8bcb | 17735 | |
3dd30495 VZ |
17736 | int |
17737 | main () | |
17738 | { | |
17739 | ||
17740 | #ifndef __DECC | |
17741 | choke me | |
17742 | #endif | |
17743 | ||
17744 | ; | |
17745 | return 0; | |
17746 | } | |
bc023abb | 17747 | _ACEOF |
3dd30495 VZ |
17748 | if ac_fn_c_try_compile "$LINENO"; then : |
17749 | bakefile_cv_c_compiler___DECC=yes | |
bc023abb | 17750 | else |
3dd30495 | 17751 | bakefile_cv_c_compiler___DECC=no |
bc023abb | 17752 | |
bc023abb | 17753 | fi |
47964710 | 17754 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 | 17755 | |
1f7e12cc DE |
17756 | |
17757 | fi | |
3dd30495 VZ |
17758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___DECC" >&5 |
17759 | $as_echo "$bakefile_cv_c_compiler___DECC" >&6; } | |
17760 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then | |
17761 | :; COMPAQCC=yes | |
17762 | else | |
17763 | :; | |
17764 | fi | |
17765 | ac_ext=c | |
17766 | ac_cpp='$CPP $CPPFLAGS' | |
17767 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17768 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17769 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7fd3acaf | 17770 | |
bc023abb | 17771 | |
bc023abb | 17772 | |
3dd30495 VZ |
17773 | ;; |
17774 | ||
17775 | SunOS) | |
17776 | ||
17777 | ||
17778 | ac_ext=c | |
17779 | ac_cpp='$CPP $CPPFLAGS' | |
17780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17783 | |
3dd30495 VZ |
17784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C compiler" >&5 |
17785 | $as_echo_n "checking whether we are using the Sun C compiler... " >&6; } | |
eff9d7f5 | 17786 | if ${bakefile_cv_c_compiler___SUNPRO_C+:} false; then : |
3dd30495 | 17787 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17788 | else |
3dd30495 | 17789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
17790 | /* end confdefs.h. */ |
17791 | ||
17792 | int | |
17793 | main () | |
17794 | { | |
a848cd7e | 17795 | |
3dd30495 VZ |
17796 | #ifndef __SUNPRO_C |
17797 | choke me | |
17798 | #endif | |
a848cd7e SC |
17799 | |
17800 | ; | |
17801 | return 0; | |
17802 | } | |
17803 | _ACEOF | |
3dd30495 VZ |
17804 | if ac_fn_c_try_compile "$LINENO"; then : |
17805 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
a848cd7e | 17806 | else |
3dd30495 | 17807 | bakefile_cv_c_compiler___SUNPRO_C=no |
a848cd7e | 17808 | |
a848cd7e | 17809 | fi |
47964710 | 17810 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17811 | |
a848cd7e SC |
17812 | |
17813 | fi | |
3dd30495 VZ |
17814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 |
17815 | $as_echo "$bakefile_cv_c_compiler___SUNPRO_C" >&6; } | |
17816 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
17817 | :; SUNCC=yes | |
17818 | else | |
17819 | :; | |
17820 | fi | |
17821 | ac_ext=c | |
17822 | ac_cpp='$CPP $CPPFLAGS' | |
17823 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17824 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17825 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17826 | |
3dd30495 VZ |
17827 | |
17828 | ||
17829 | ;; | |
17830 | esac | |
17831 | fi | |
17832 | ||
17833 | ||
17834 | ||
17835 | ac_ext=c | |
17836 | ac_cpp='$CPP $CPPFLAGS' | |
17837 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17838 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17839 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
17841 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
17842 | # On Suns, sometimes $CPP names a directory. | |
17843 | if test -n "$CPP" && test -d "$CPP"; then | |
17844 | CPP= | |
17845 | fi | |
17846 | if test -z "$CPP"; then | |
eff9d7f5 | 17847 | if ${ac_cv_prog_CPP+:} false; then : |
3dd30495 | 17848 | $as_echo_n "(cached) " >&6 |
a848cd7e | 17849 | else |
3dd30495 VZ |
17850 | # Double quotes because CPP needs to be expanded |
17851 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
17852 | do | |
17853 | ac_preproc_ok=false | |
17854 | for ac_c_preproc_warn_flag in '' yes | |
17855 | do | |
17856 | # Use a header file that comes with gcc, so configuring glibc | |
17857 | # with a fresh cross-compiler works. | |
17858 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17859 | # <limits.h> exists even on freestanding compilers. | |
17860 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17861 | # not just through cpp. "Syntax error" is here to catch this case. | |
17862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 17863 | /* end confdefs.h. */ |
3dd30495 VZ |
17864 | #ifdef __STDC__ |
17865 | # include <limits.h> | |
17866 | #else | |
17867 | # include <assert.h> | |
a848cd7e | 17868 | #endif |
3dd30495 | 17869 | Syntax error |
a848cd7e | 17870 | _ACEOF |
3dd30495 | 17871 | if ac_fn_c_try_cpp "$LINENO"; then : |
a848cd7e | 17872 | |
3dd30495 VZ |
17873 | else |
17874 | # Broken: fails on valid input. | |
17875 | continue | |
17876 | fi | |
17877 | rm -f conftest.err conftest.i conftest.$ac_ext | |
47964710 | 17878 | |
3dd30495 VZ |
17879 | # OK, works on sane cases. Now check whether nonexistent headers |
17880 | # can be detected and how. | |
17881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17882 | /* end confdefs.h. */ | |
17883 | #include <ac_nonexistent.h> | |
17884 | _ACEOF | |
17885 | if ac_fn_c_try_cpp "$LINENO"; then : | |
17886 | # Broken: success on invalid input. | |
17887 | continue | |
17888 | else | |
17889 | # Passes both tests. | |
17890 | ac_preproc_ok=: | |
17891 | break | |
a848cd7e | 17892 | fi |
3dd30495 | 17893 | rm -f conftest.err conftest.i conftest.$ac_ext |
47964710 | 17894 | |
a848cd7e | 17895 | done |
3dd30495 VZ |
17896 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
17897 | rm -f conftest.i conftest.err conftest.$ac_ext | |
17898 | if $ac_preproc_ok; then : | |
17899 | break | |
a848cd7e | 17900 | fi |
ac1cb8d3 | 17901 | |
3dd30495 VZ |
17902 | done |
17903 | ac_cv_prog_CPP=$CPP | |
ac1cb8d3 | 17904 | |
3dd30495 VZ |
17905 | fi |
17906 | CPP=$ac_cv_prog_CPP | |
17907 | else | |
17908 | ac_cv_prog_CPP=$CPP | |
17909 | fi | |
17910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
17911 | $as_echo "$CPP" >&6; } | |
17912 | ac_preproc_ok=false | |
17913 | for ac_c_preproc_warn_flag in '' yes | |
17914 | do | |
17915 | # Use a header file that comes with gcc, so configuring glibc | |
17916 | # with a fresh cross-compiler works. | |
17917 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17918 | # <limits.h> exists even on freestanding compilers. | |
17919 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17920 | # not just through cpp. "Syntax error" is here to catch this case. | |
17921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17922 | /* end confdefs.h. */ | |
17923 | #ifdef __STDC__ | |
17924 | # include <limits.h> | |
17925 | #else | |
17926 | # include <assert.h> | |
ac1cb8d3 | 17927 | #endif |
3dd30495 | 17928 | Syntax error |
de59c161 | 17929 | _ACEOF |
3dd30495 | 17930 | if ac_fn_c_try_cpp "$LINENO"; then : |
a848cd7e | 17931 | |
d589327a | 17932 | else |
3dd30495 VZ |
17933 | # Broken: fails on valid input. |
17934 | continue | |
17935 | fi | |
17936 | rm -f conftest.err conftest.i conftest.$ac_ext | |
17937 | ||
17938 | # OK, works on sane cases. Now check whether nonexistent headers | |
17939 | # can be detected and how. | |
17940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d589327a | 17941 | /* end confdefs.h. */ |
3dd30495 | 17942 | #include <ac_nonexistent.h> |
d589327a | 17943 | _ACEOF |
3dd30495 VZ |
17944 | if ac_fn_c_try_cpp "$LINENO"; then : |
17945 | # Broken: success on invalid input. | |
17946 | continue | |
d589327a | 17947 | else |
3dd30495 VZ |
17948 | # Passes both tests. |
17949 | ac_preproc_ok=: | |
17950 | break | |
d589327a | 17951 | fi |
3dd30495 | 17952 | rm -f conftest.err conftest.i conftest.$ac_ext |
d589327a | 17953 | |
3dd30495 VZ |
17954 | done |
17955 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17956 | rm -f conftest.i conftest.err conftest.$ac_ext | |
17957 | if $ac_preproc_ok; then : | |
d589327a | 17958 | |
a848cd7e | 17959 | else |
3dd30495 VZ |
17960 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
17961 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
17962 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
eff9d7f5 | 17963 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 | 17964 | fi |
a848cd7e | 17965 | |
3dd30495 VZ |
17966 | ac_ext=c |
17967 | ac_cpp='$CPP $CPPFLAGS' | |
17968 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17969 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17970 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e | 17971 | |
3dd30495 VZ |
17972 | |
17973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
17974 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
eff9d7f5 | 17975 | if ${ac_cv_path_GREP+:} false; then : |
3dd30495 VZ |
17976 | $as_echo_n "(cached) " >&6 |
17977 | else | |
17978 | if test -z "$GREP"; then | |
17979 | ac_path_GREP_found=false | |
17980 | # Loop through the user's path and test for each of PROGNAME-LIST | |
17981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
17982 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
17983 | do | |
17984 | IFS=$as_save_IFS | |
17985 | test -z "$as_dir" && as_dir=. | |
17986 | for ac_prog in grep ggrep; do | |
17987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
17988 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
eff9d7f5 | 17989 | as_fn_executable_p "$ac_path_GREP" || continue |
3dd30495 VZ |
17990 | # Check for GNU ac_path_GREP and select it if it is found. |
17991 | # Check for GNU $ac_path_GREP | |
17992 | case `"$ac_path_GREP" --version 2>&1` in | |
17993 | *GNU*) | |
17994 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
17995 | *) | |
17996 | ac_count=0 | |
17997 | $as_echo_n 0123456789 >"conftest.in" | |
17998 | while : | |
17999 | do | |
18000 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
18001 | mv "conftest.tmp" "conftest.in" | |
18002 | cp "conftest.in" "conftest.nl" | |
18003 | $as_echo 'GREP' >> "conftest.nl" | |
18004 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
18005 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
18006 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
18007 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
18008 | # Best one so far, save it but keep looking for a better one | |
18009 | ac_cv_path_GREP="$ac_path_GREP" | |
18010 | ac_path_GREP_max=$ac_count | |
18011 | fi | |
18012 | # 10*(2^10) chars as input seems more than enough | |
18013 | test $ac_count -gt 10 && break | |
18014 | done | |
18015 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
47964710 | 18016 | esac |
3dd30495 VZ |
18017 | |
18018 | $ac_path_GREP_found && break 3 | |
18019 | done | |
18020 | done | |
18021 | done | |
18022 | IFS=$as_save_IFS | |
18023 | if test -z "$ac_cv_path_GREP"; then | |
18024 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
18025 | fi | |
a848cd7e | 18026 | else |
3dd30495 VZ |
18027 | ac_cv_path_GREP=$GREP |
18028 | fi | |
a848cd7e | 18029 | |
a848cd7e | 18030 | fi |
3dd30495 VZ |
18031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
18032 | $as_echo "$ac_cv_path_GREP" >&6; } | |
18033 | GREP="$ac_cv_path_GREP" | |
47964710 | 18034 | |
3dd30495 VZ |
18035 | |
18036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
18037 | $as_echo_n "checking for egrep... " >&6; } | |
eff9d7f5 | 18038 | if ${ac_cv_path_EGREP+:} false; then : |
3dd30495 VZ |
18039 | $as_echo_n "(cached) " >&6 |
18040 | else | |
18041 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
18042 | then ac_cv_path_EGREP="$GREP -E" | |
18043 | else | |
18044 | if test -z "$EGREP"; then | |
18045 | ac_path_EGREP_found=false | |
18046 | # Loop through the user's path and test for each of PROGNAME-LIST | |
18047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18048 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
18049 | do | |
18050 | IFS=$as_save_IFS | |
18051 | test -z "$as_dir" && as_dir=. | |
18052 | for ac_prog in egrep; do | |
18053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
18054 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
eff9d7f5 | 18055 | as_fn_executable_p "$ac_path_EGREP" || continue |
3dd30495 VZ |
18056 | # Check for GNU ac_path_EGREP and select it if it is found. |
18057 | # Check for GNU $ac_path_EGREP | |
18058 | case `"$ac_path_EGREP" --version 2>&1` in | |
18059 | *GNU*) | |
18060 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
18061 | *) | |
18062 | ac_count=0 | |
18063 | $as_echo_n 0123456789 >"conftest.in" | |
18064 | while : | |
18065 | do | |
18066 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
18067 | mv "conftest.tmp" "conftest.in" | |
18068 | cp "conftest.in" "conftest.nl" | |
18069 | $as_echo 'EGREP' >> "conftest.nl" | |
18070 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
18071 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
18072 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
18073 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
18074 | # Best one so far, save it but keep looking for a better one | |
18075 | ac_cv_path_EGREP="$ac_path_EGREP" | |
18076 | ac_path_EGREP_max=$ac_count | |
18077 | fi | |
18078 | # 10*(2^10) chars as input seems more than enough | |
18079 | test $ac_count -gt 10 && break | |
18080 | done | |
18081 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
18082 | esac | |
18083 | ||
18084 | $ac_path_EGREP_found && break 3 | |
18085 | done | |
a848cd7e | 18086 | done |
3dd30495 VZ |
18087 | done |
18088 | IFS=$as_save_IFS | |
18089 | if test -z "$ac_cv_path_EGREP"; then | |
18090 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
18091 | fi | |
a848cd7e | 18092 | else |
3dd30495 VZ |
18093 | ac_cv_path_EGREP=$EGREP |
18094 | fi | |
a848cd7e | 18095 | |
3dd30495 VZ |
18096 | fi |
18097 | fi | |
18098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
18099 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
18100 | EGREP="$ac_cv_path_EGREP" | |
a848cd7e | 18101 | |
a848cd7e | 18102 | |
3dd30495 VZ |
18103 | if test $ac_cv_c_compiler_gnu = yes; then |
18104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
18105 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
eff9d7f5 | 18106 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
3dd30495 VZ |
18107 | $as_echo_n "(cached) " >&6 |
18108 | else | |
18109 | ac_pattern="Autoconf.*'x'" | |
18110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18111 | /* end confdefs.h. */ | |
18112 | #include <sgtty.h> | |
18113 | Autoconf TIOCGETP | |
a848cd7e | 18114 | _ACEOF |
3dd30495 VZ |
18115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
18116 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
18117 | ac_cv_prog_gcc_traditional=yes | |
a848cd7e | 18118 | else |
3dd30495 VZ |
18119 | ac_cv_prog_gcc_traditional=no |
18120 | fi | |
18121 | rm -f conftest* | |
a848cd7e | 18122 | |
3dd30495 VZ |
18123 | |
18124 | if test $ac_cv_prog_gcc_traditional = no; then | |
18125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18126 | /* end confdefs.h. */ | |
18127 | #include <termio.h> | |
18128 | Autoconf TCGETA | |
18129 | _ACEOF | |
18130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
18131 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
18132 | ac_cv_prog_gcc_traditional=yes | |
a848cd7e | 18133 | fi |
3dd30495 | 18134 | rm -f conftest* |
47964710 | 18135 | |
3dd30495 VZ |
18136 | fi |
18137 | fi | |
18138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
18139 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
18140 | if test $ac_cv_prog_gcc_traditional = yes; then | |
18141 | CC="$CC -traditional" | |
18142 | fi | |
18143 | fi | |
18144 | ||
18145 | ||
18146 | CXXFLAGS=${CXXFLAGS:=} | |
18147 | ac_ext=cpp | |
18148 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18149 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18150 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18151 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18152 | if test -z "$CXX"; then | |
18153 | if test -n "$CCC"; then | |
18154 | CXX=$CCC | |
18155 | else | |
18156 | if test -n "$ac_tool_prefix"; then | |
18157 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18158 | do | |
18159 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
18160 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
18161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18162 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 18163 | if ${ac_cv_prog_CXX+:} false; then : |
3dd30495 | 18164 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18165 | else |
3dd30495 VZ |
18166 | if test -n "$CXX"; then |
18167 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
18168 | else | |
18169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18170 | for as_dir in $PATH | |
18171 | do | |
18172 | IFS=$as_save_IFS | |
18173 | test -z "$as_dir" && as_dir=. | |
18174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 18175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
18176 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
18177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18178 | break 2 | |
18179 | fi | |
18180 | done | |
18181 | done | |
18182 | IFS=$as_save_IFS | |
a848cd7e | 18183 | |
a848cd7e | 18184 | fi |
3dd30495 VZ |
18185 | fi |
18186 | CXX=$ac_cv_prog_CXX | |
18187 | if test -n "$CXX"; then | |
18188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
18189 | $as_echo "$CXX" >&6; } | |
18190 | else | |
18191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18192 | $as_echo "no" >&6; } | |
a848cd7e | 18193 | fi |
47964710 | 18194 | |
a848cd7e | 18195 | |
3dd30495 VZ |
18196 | test -n "$CXX" && break |
18197 | done | |
18198 | fi | |
18199 | if test -z "$CXX"; then | |
18200 | ac_ct_CXX=$CXX | |
18201 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
18202 | do | |
18203 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
18204 | set dummy $ac_prog; ac_word=$2 | |
18205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
18206 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 18207 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
3dd30495 | 18208 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18209 | else |
3dd30495 VZ |
18210 | if test -n "$ac_ct_CXX"; then |
18211 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
18212 | else | |
18213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18214 | for as_dir in $PATH | |
18215 | do | |
18216 | IFS=$as_save_IFS | |
18217 | test -z "$as_dir" && as_dir=. | |
18218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 18219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
18220 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
18221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
18222 | break 2 | |
18223 | fi | |
18224 | done | |
18225 | done | |
18226 | IFS=$as_save_IFS | |
a848cd7e | 18227 | |
3dd30495 VZ |
18228 | fi |
18229 | fi | |
18230 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
18231 | if test -n "$ac_ct_CXX"; then | |
18232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
18233 | $as_echo "$ac_ct_CXX" >&6; } | |
18234 | else | |
18235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18236 | $as_echo "no" >&6; } | |
a848cd7e | 18237 | fi |
47964710 | 18238 | |
3dd30495 VZ |
18239 | |
18240 | test -n "$ac_ct_CXX" && break | |
a848cd7e | 18241 | done |
a848cd7e | 18242 | |
3dd30495 VZ |
18243 | if test "x$ac_ct_CXX" = x; then |
18244 | CXX="g++" | |
a848cd7e | 18245 | else |
3dd30495 VZ |
18246 | case $cross_compiling:$ac_tool_warned in |
18247 | yes:) | |
18248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
18249 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
18250 | ac_tool_warned=yes ;; | |
18251 | esac | |
18252 | CXX=$ac_ct_CXX | |
18253 | fi | |
18254 | fi | |
a848cd7e | 18255 | |
3dd30495 VZ |
18256 | fi |
18257 | fi | |
18258 | # Provide some information about the compiler. | |
18259 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
18260 | set X $ac_compile | |
18261 | ac_compiler=$2 | |
18262 | for ac_option in --version -v -V -qversion; do | |
18263 | { { ac_try="$ac_compiler $ac_option >&5" | |
47964710 VS |
18264 | case "(($ac_try" in |
18265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18266 | *) ac_try_echo=$ac_try;; | |
18267 | esac | |
3dd30495 VZ |
18268 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
18269 | $as_echo "$ac_try_echo"; } >&5 | |
18270 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
a848cd7e | 18271 | ac_status=$? |
3dd30495 VZ |
18272 | if test -s conftest.err; then |
18273 | sed '10a\ | |
18274 | ... rest of stderr output deleted ... | |
18275 | 10q' conftest.err >conftest.er1 | |
18276 | cat conftest.er1 >&5 | |
18277 | fi | |
18278 | rm -f conftest.er1 conftest.err | |
18279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
18280 | test $ac_status = 0; } | |
18281 | done | |
a848cd7e | 18282 | |
3dd30495 VZ |
18283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
18284 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
eff9d7f5 | 18285 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
3dd30495 | 18286 | $as_echo_n "(cached) " >&6 |
d589327a | 18287 | else |
3dd30495 | 18288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d589327a | 18289 | /* end confdefs.h. */ |
3dd30495 | 18290 | |
d589327a VZ |
18291 | int |
18292 | main () | |
18293 | { | |
3dd30495 VZ |
18294 | #ifndef __GNUC__ |
18295 | choke me | |
18296 | #endif | |
18297 | ||
d589327a VZ |
18298 | ; |
18299 | return 0; | |
18300 | } | |
18301 | _ACEOF | |
3dd30495 VZ |
18302 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18303 | ac_compiler_gnu=yes | |
d589327a | 18304 | else |
3dd30495 | 18305 | ac_compiler_gnu=no |
d589327a | 18306 | fi |
d589327a | 18307 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 | 18308 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
d589327a | 18309 | |
3dd30495 VZ |
18310 | fi |
18311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
18312 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
18313 | if test $ac_compiler_gnu = yes; then | |
18314 | GXX=yes | |
a848cd7e | 18315 | else |
3dd30495 VZ |
18316 | GXX= |
18317 | fi | |
18318 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
18319 | ac_save_CXXFLAGS=$CXXFLAGS | |
18320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
18321 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
eff9d7f5 | 18322 | if ${ac_cv_prog_cxx_g+:} false; then : |
3dd30495 VZ |
18323 | $as_echo_n "(cached) " >&6 |
18324 | else | |
18325 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
18326 | ac_cxx_werror_flag=yes | |
18327 | ac_cv_prog_cxx_g=no | |
18328 | CXXFLAGS="-g" | |
18329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 18330 | /* end confdefs.h. */ |
3dd30495 | 18331 | |
a848cd7e SC |
18332 | int |
18333 | main () | |
18334 | { | |
a848cd7e SC |
18335 | |
18336 | ; | |
18337 | return 0; | |
18338 | } | |
18339 | _ACEOF | |
3dd30495 VZ |
18340 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18341 | ac_cv_prog_cxx_g=yes | |
18342 | else | |
18343 | CXXFLAGS="" | |
18344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 18345 | /* end confdefs.h. */ |
3dd30495 | 18346 | |
a848cd7e SC |
18347 | int |
18348 | main () | |
18349 | { | |
a848cd7e SC |
18350 | |
18351 | ; | |
18352 | return 0; | |
18353 | } | |
18354 | _ACEOF | |
3dd30495 | 18355 | if ac_fn_cxx_try_compile "$LINENO"; then : |
47964710 | 18356 | |
a848cd7e | 18357 | else |
3dd30495 VZ |
18358 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
18359 | CXXFLAGS="-g" | |
18360 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 18361 | /* end confdefs.h. */ |
a848cd7e | 18362 | |
a848cd7e SC |
18363 | int |
18364 | main () | |
18365 | { | |
a848cd7e SC |
18366 | |
18367 | ; | |
18368 | return 0; | |
18369 | } | |
18370 | _ACEOF | |
3dd30495 VZ |
18371 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18372 | ac_cv_prog_cxx_g=yes | |
a848cd7e | 18373 | fi |
47964710 | 18374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18375 | fi |
47964710 | 18376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18377 | fi |
47964710 | 18378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 | 18379 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
a848cd7e | 18380 | fi |
3dd30495 VZ |
18381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
18382 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
18383 | if test "$ac_test_CXXFLAGS" = set; then | |
18384 | CXXFLAGS=$ac_save_CXXFLAGS | |
18385 | elif test $ac_cv_prog_cxx_g = yes; then | |
18386 | if test "$GXX" = yes; then | |
18387 | CXXFLAGS="-g -O2" | |
a848cd7e | 18388 | else |
3dd30495 VZ |
18389 | CXXFLAGS="-g" |
18390 | fi | |
a848cd7e | 18391 | else |
3dd30495 VZ |
18392 | if test "$GXX" = yes; then |
18393 | CXXFLAGS="-O2" | |
18394 | else | |
18395 | CXXFLAGS= | |
18396 | fi | |
bd8a7646 | 18397 | fi |
3dd30495 VZ |
18398 | ac_ext=c |
18399 | ac_cpp='$CPP $CPPFLAGS' | |
18400 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18401 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18402 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
47964710 VS |
18403 | |
18404 | ||
18405 | ||
a848cd7e SC |
18406 | |
18407 | ||
d589327a | 18408 | |
d589327a | 18409 | |
d589327a | 18410 | |
3dd30495 VZ |
18411 | ac_ext=cpp |
18412 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18413 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18414 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18415 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18416 | ||
18417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Intel C++ compiler" >&5 | |
18418 | $as_echo_n "checking whether we are using the Intel C++ compiler... " >&6; } | |
eff9d7f5 | 18419 | if ${bakefile_cv_cxx_compiler___INTEL_COMPILER+:} false; then : |
3dd30495 | 18420 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18421 | else |
3dd30495 | 18422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 18423 | /* end confdefs.h. */ |
a848cd7e | 18424 | |
a848cd7e SC |
18425 | int |
18426 | main () | |
18427 | { | |
3dd30495 VZ |
18428 | |
18429 | #ifndef __INTEL_COMPILER | |
18430 | choke me | |
18431 | #endif | |
a848cd7e SC |
18432 | |
18433 | ; | |
18434 | return 0; | |
18435 | } | |
18436 | _ACEOF | |
3dd30495 VZ |
18437 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18438 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
a848cd7e | 18439 | else |
3dd30495 | 18440 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no |
a848cd7e | 18441 | |
a848cd7e | 18442 | fi |
47964710 | 18443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18444 | |
a848cd7e | 18445 | |
a848cd7e | 18446 | fi |
3dd30495 VZ |
18447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 |
18448 | $as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; } | |
18449 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
18450 | :; INTELCXX=yes | |
18451 | else | |
18452 | :; | |
18453 | fi | |
18454 | ac_ext=c | |
18455 | ac_cpp='$CPP $CPPFLAGS' | |
18456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
47964710 | 18459 | |
a848cd7e | 18460 | |
47964710 | 18461 | |
47964710 | 18462 | |
3dd30495 | 18463 | if test "$INTELCXX" = "yes"; then |
a848cd7e | 18464 | |
a848cd7e | 18465 | |
3dd30495 VZ |
18466 | ac_ext=cpp |
18467 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18468 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18469 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18470 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
47964710 | 18471 | |
3dd30495 VZ |
18472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C++ compiler v8 or later" >&5 |
18473 | $as_echo_n "checking whether we are using Intel C++ compiler v8 or later... " >&6; } | |
eff9d7f5 | 18474 | if ${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800+:} false; then : |
3dd30495 | 18475 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18476 | else |
3dd30495 | 18477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 18478 | /* end confdefs.h. */ |
3dd30495 | 18479 | |
a848cd7e SC |
18480 | int |
18481 | main () | |
18482 | { | |
18483 | ||
3dd30495 VZ |
18484 | #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 800 |
18485 | choke me | |
18486 | #endif | |
a848cd7e SC |
18487 | |
18488 | ; | |
18489 | return 0; | |
18490 | } | |
18491 | _ACEOF | |
3dd30495 VZ |
18492 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18493 | bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=yes | |
a848cd7e | 18494 | else |
3dd30495 | 18495 | bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800=no |
a848cd7e | 18496 | |
a848cd7e | 18497 | fi |
3dd30495 VZ |
18498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18499 | ||
18500 | ||
4db03d26 | 18501 | fi |
3dd30495 VZ |
18502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&5 |
18503 | $as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" >&6; } | |
18504 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_800" = "xyes"; then | |
18505 | :; INTELCXX8=yes | |
18506 | else | |
18507 | :; | |
18508 | fi | |
18509 | ac_ext=c | |
18510 | ac_cpp='$CPP $CPPFLAGS' | |
18511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18514 | ||
47964710 VS |
18515 | |
18516 | ||
18517 | ||
a848cd7e | 18518 | |
3dd30495 VZ |
18519 | ac_ext=cpp |
18520 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18521 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18522 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18523 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e | 18524 | |
3dd30495 VZ |
18525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C++ compiler v10 or later" >&5 |
18526 | $as_echo_n "checking whether we are using Intel C++ compiler v10 or later... " >&6; } | |
eff9d7f5 | 18527 | if ${bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000+:} false; then : |
3dd30495 | 18528 | $as_echo_n "(cached) " >&6 |
d589327a | 18529 | else |
3dd30495 | 18530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d589327a | 18531 | /* end confdefs.h. */ |
3dd30495 | 18532 | |
d589327a VZ |
18533 | int |
18534 | main () | |
18535 | { | |
3dd30495 VZ |
18536 | |
18537 | #ifndef __INTEL_COMPILER || __INTEL_COMPILER < 1000 | |
18538 | choke me | |
18539 | #endif | |
18540 | ||
d589327a VZ |
18541 | ; |
18542 | return 0; | |
18543 | } | |
18544 | _ACEOF | |
3dd30495 VZ |
18545 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18546 | bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=yes | |
d589327a | 18547 | else |
3dd30495 | 18548 | bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000=no |
d589327a | 18549 | |
d589327a | 18550 | fi |
d589327a | 18551 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 VZ |
18552 | |
18553 | ||
d589327a | 18554 | fi |
3dd30495 VZ |
18555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&5 |
18556 | $as_echo "$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" >&6; } | |
18557 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER_lt_1000" = "xyes"; then | |
18558 | :; INTELCXX10=yes | |
18559 | else | |
18560 | :; | |
18561 | fi | |
18562 | ac_ext=c | |
18563 | ac_cpp='$CPP $CPPFLAGS' | |
18564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d589327a | 18567 | |
3dd30495 VZ |
18568 | |
18569 | ||
18570 | fi | |
18571 | ||
18572 | if test "x$GCXX" != "xyes"; then | |
18573 | if test "xCXX" = "xC"; then | |
18574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler requires -ext o" >&5 | |
18575 | $as_echo_n "checking if the C compiler requires -ext o... " >&6; } | |
eff9d7f5 | 18576 | if ${bakefile_cv_c_exto+:} false; then : |
3dd30495 | 18577 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18578 | else |
3dd30495 | 18579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 18580 | /* end confdefs.h. */ |
a848cd7e | 18581 | |
a848cd7e SC |
18582 | int |
18583 | main () | |
18584 | { | |
a848cd7e SC |
18585 | |
18586 | ; | |
18587 | return 0; | |
18588 | } | |
18589 | _ACEOF | |
3dd30495 VZ |
18590 | rm -f conftest.$ac_objext conftest.$ac_ext.o |
18591 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
18592 | (eval $ac_compile) 2>&5 | |
a848cd7e | 18593 | ac_status=$? |
3dd30495 VZ |
18594 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
18595 | test $ac_status = 0; }; then : | |
18596 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
18597 | case $ac_file in | |
18598 | conftest.$ac_ext.o) | |
18599 | bakefile_cv_c_exto="-ext o" | |
18600 | ;; | |
18601 | *) | |
18602 | ;; | |
18603 | esac | |
18604 | done | |
a848cd7e | 18605 | else |
3dd30495 VZ |
18606 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
18607 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
18608 | as_fn_error $? "cannot figure out if compiler needs -ext o: cannot compile | |
eff9d7f5 | 18609 | See \`config.log' for more details" "$LINENO" 5; } |
a848cd7e | 18610 | |
3dd30495 VZ |
18611 | fi |
18612 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
18613 | ||
18614 | fi | |
18615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_c_exto" >&5 | |
18616 | $as_echo "$bakefile_cv_c_exto" >&6; } | |
18617 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
18618 | if test "c" = "c"; then | |
18619 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" | |
18620 | fi | |
18621 | if test "c" = "cxx"; then | |
18622 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" | |
18623 | fi | |
a848cd7e | 18624 | fi |
47964710 | 18625 | |
3dd30495 VZ |
18626 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
18627 | unset ac_cv_prog_cc_g | |
18628 | ac_test_CFLAGS=${CFLAGS+set} | |
18629 | ac_save_CFLAGS=$CFLAGS | |
18630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
18631 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
eff9d7f5 | 18632 | if ${ac_cv_prog_cc_g+:} false; then : |
3dd30495 | 18633 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18634 | else |
3dd30495 VZ |
18635 | ac_save_c_werror_flag=$ac_c_werror_flag |
18636 | ac_c_werror_flag=yes | |
18637 | ac_cv_prog_cc_g=no | |
18638 | CFLAGS="-g" | |
18639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 18640 | /* end confdefs.h. */ |
3dd30495 | 18641 | |
a848cd7e SC |
18642 | int |
18643 | main () | |
18644 | { | |
a848cd7e SC |
18645 | |
18646 | ; | |
18647 | return 0; | |
18648 | } | |
18649 | _ACEOF | |
3dd30495 VZ |
18650 | if ac_fn_c_try_compile "$LINENO"; then : |
18651 | ac_cv_prog_cc_g=yes | |
18652 | else | |
18653 | CFLAGS="" | |
18654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 18655 | /* end confdefs.h. */ |
3dd30495 | 18656 | |
a848cd7e SC |
18657 | int |
18658 | main () | |
18659 | { | |
a848cd7e SC |
18660 | |
18661 | ; | |
18662 | return 0; | |
18663 | } | |
18664 | _ACEOF | |
3dd30495 | 18665 | if ac_fn_c_try_compile "$LINENO"; then : |
47964710 | 18666 | |
a848cd7e | 18667 | else |
3dd30495 VZ |
18668 | ac_c_werror_flag=$ac_save_c_werror_flag |
18669 | CFLAGS="-g" | |
18670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 18671 | /* end confdefs.h. */ |
3dd30495 | 18672 | |
a848cd7e SC |
18673 | int |
18674 | main () | |
18675 | { | |
a848cd7e SC |
18676 | |
18677 | ; | |
18678 | return 0; | |
18679 | } | |
18680 | _ACEOF | |
3dd30495 VZ |
18681 | if ac_fn_c_try_compile "$LINENO"; then : |
18682 | ac_cv_prog_cc_g=yes | |
18683 | fi | |
18684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18685 | fi | |
18686 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18687 | fi | |
18688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18689 | ac_c_werror_flag=$ac_save_c_werror_flag | |
18690 | fi | |
18691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
18692 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
18693 | if test "$ac_test_CFLAGS" = set; then | |
18694 | CFLAGS=$ac_save_CFLAGS | |
18695 | elif test $ac_cv_prog_cc_g = yes; then | |
18696 | if test "$GCC" = yes; then | |
18697 | CFLAGS="-g -O2" | |
18698 | else | |
18699 | CFLAGS="-g" | |
18700 | fi | |
a848cd7e | 18701 | else |
3dd30495 VZ |
18702 | if test "$GCC" = yes; then |
18703 | CFLAGS="-O2" | |
18704 | else | |
18705 | CFLAGS= | |
18706 | fi | |
a848cd7e | 18707 | fi |
3dd30495 VZ |
18708 | fi |
18709 | fi | |
47964710 | 18710 | |
3dd30495 VZ |
18711 | case `uname -s` in |
18712 | AIX*) | |
18713 | ||
18714 | ||
18715 | ac_ext=cpp | |
18716 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18717 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18718 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18719 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18720 | ||
18721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C++ compiler" >&5 | |
18722 | $as_echo_n "checking whether we are using the IBM xlC C++ compiler... " >&6; } | |
eff9d7f5 | 18723 | if ${bakefile_cv_cxx_compiler___xlC__+:} false; then : |
3dd30495 | 18724 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18725 | else |
3dd30495 | 18726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 18727 | /* end confdefs.h. */ |
3dd30495 | 18728 | |
a848cd7e SC |
18729 | int |
18730 | main () | |
18731 | { | |
18732 | ||
3dd30495 VZ |
18733 | #ifndef __xlC__ |
18734 | choke me | |
18735 | #endif | |
a848cd7e SC |
18736 | |
18737 | ; | |
18738 | return 0; | |
18739 | } | |
18740 | _ACEOF | |
3dd30495 VZ |
18741 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18742 | bakefile_cv_cxx_compiler___xlC__=yes | |
a848cd7e | 18743 | else |
3dd30495 | 18744 | bakefile_cv_cxx_compiler___xlC__=no |
a848cd7e | 18745 | |
a848cd7e | 18746 | fi |
3dd30495 VZ |
18747 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18748 | ||
18749 | ||
bd8a7646 | 18750 | fi |
3dd30495 VZ |
18751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___xlC__" >&5 |
18752 | $as_echo "$bakefile_cv_cxx_compiler___xlC__" >&6; } | |
18753 | if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then | |
18754 | :; XLCXX=yes | |
18755 | else | |
18756 | :; | |
18757 | fi | |
18758 | ac_ext=c | |
18759 | ac_cpp='$CPP $CPPFLAGS' | |
18760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
47964710 VS |
18763 | |
18764 | ||
18765 | ||
3dd30495 VZ |
18766 | ;; |
18767 | ||
18768 | Darwin) | |
18769 | ||
a848cd7e | 18770 | |
3dd30495 VZ |
18771 | ac_ext=cpp |
18772 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18773 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18774 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18775 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e | 18776 | |
3dd30495 VZ |
18777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Metrowerks C++ compiler" >&5 |
18778 | $as_echo_n "checking whether we are using the Metrowerks C++ compiler... " >&6; } | |
eff9d7f5 | 18779 | if ${bakefile_cv_cxx_compiler___MWERKS__+:} false; then : |
3dd30495 | 18780 | $as_echo_n "(cached) " >&6 |
d589327a | 18781 | else |
3dd30495 | 18782 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d589327a | 18783 | /* end confdefs.h. */ |
3dd30495 | 18784 | |
d589327a VZ |
18785 | int |
18786 | main () | |
18787 | { | |
3dd30495 VZ |
18788 | |
18789 | #ifndef __MWERKS__ | |
18790 | choke me | |
18791 | #endif | |
18792 | ||
d589327a VZ |
18793 | ; |
18794 | return 0; | |
18795 | } | |
18796 | _ACEOF | |
3dd30495 VZ |
18797 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18798 | bakefile_cv_cxx_compiler___MWERKS__=yes | |
d589327a | 18799 | else |
3dd30495 | 18800 | bakefile_cv_cxx_compiler___MWERKS__=no |
d589327a | 18801 | |
d589327a | 18802 | fi |
d589327a | 18803 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 VZ |
18804 | |
18805 | ||
d589327a | 18806 | fi |
3dd30495 VZ |
18807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5 |
18808 | $as_echo "$bakefile_cv_cxx_compiler___MWERKS__" >&6; } | |
18809 | if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then | |
18810 | :; MWCXX=yes | |
18811 | else | |
18812 | :; | |
18813 | fi | |
18814 | ac_ext=c | |
18815 | ac_cpp='$CPP $CPPFLAGS' | |
18816 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18817 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18818 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d589327a | 18819 | |
3dd30495 VZ |
18820 | |
18821 | ||
18822 | if test "$MWCXX" != "yes"; then | |
18823 | ||
18824 | ||
18825 | ac_ext=cpp | |
18826 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18830 | ||
18831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the IBM xlC C++ compiler" >&5 | |
18832 | $as_echo_n "checking whether we are using the IBM xlC C++ compiler... " >&6; } | |
eff9d7f5 | 18833 | if ${bakefile_cv_cxx_compiler___xlC__+:} false; then : |
3dd30495 | 18834 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18835 | else |
3dd30495 | 18836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 18837 | /* end confdefs.h. */ |
a848cd7e | 18838 | |
a848cd7e SC |
18839 | int |
18840 | main () | |
18841 | { | |
3dd30495 VZ |
18842 | |
18843 | #ifndef __xlC__ | |
18844 | choke me | |
18845 | #endif | |
a848cd7e SC |
18846 | |
18847 | ; | |
18848 | return 0; | |
18849 | } | |
18850 | _ACEOF | |
3dd30495 VZ |
18851 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18852 | bakefile_cv_cxx_compiler___xlC__=yes | |
a848cd7e | 18853 | else |
3dd30495 | 18854 | bakefile_cv_cxx_compiler___xlC__=no |
a848cd7e | 18855 | |
a848cd7e | 18856 | fi |
47964710 | 18857 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18858 | |
a848cd7e | 18859 | |
3dd30495 VZ |
18860 | fi |
18861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___xlC__" >&5 | |
18862 | $as_echo "$bakefile_cv_cxx_compiler___xlC__" >&6; } | |
18863 | if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then | |
18864 | :; XLCXX=yes | |
18865 | else | |
18866 | :; | |
18867 | fi | |
18868 | ac_ext=c | |
18869 | ac_cpp='$CPP $CPPFLAGS' | |
18870 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18871 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18872 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18873 | ||
18874 | ||
18875 | ||
18876 | fi | |
18877 | ;; | |
18878 | ||
18879 | IRIX*) | |
18880 | ||
18881 | ||
18882 | ac_ext=cpp | |
18883 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18884 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18885 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18886 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18887 | ||
18888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the SGI C++ compiler" >&5 | |
18889 | $as_echo_n "checking whether we are using the SGI C++ compiler... " >&6; } | |
eff9d7f5 | 18890 | if ${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+:} false; then : |
3dd30495 VZ |
18891 | $as_echo_n "(cached) " >&6 |
18892 | else | |
18893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 18894 | /* end confdefs.h. */ |
3dd30495 | 18895 | |
a848cd7e SC |
18896 | int |
18897 | main () | |
18898 | { | |
3dd30495 VZ |
18899 | |
18900 | #ifndef _SGI_COMPILER_VERSION | |
18901 | choke me | |
18902 | #endif | |
a848cd7e SC |
18903 | |
18904 | ; | |
18905 | return 0; | |
18906 | } | |
18907 | _ACEOF | |
3dd30495 VZ |
18908 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18909 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
a848cd7e | 18910 | else |
3dd30495 | 18911 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no |
a848cd7e | 18912 | |
a848cd7e | 18913 | fi |
47964710 | 18914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18915 | |
47964710 | 18916 | |
a848cd7e | 18917 | fi |
3dd30495 VZ |
18918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 |
18919 | $as_echo "$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; } | |
18920 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
18921 | :; SGICXX=yes | |
18922 | else | |
18923 | :; | |
18924 | fi | |
18925 | ac_ext=c | |
18926 | ac_cpp='$CPP $CPPFLAGS' | |
18927 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18928 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18929 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
47964710 | 18930 | |
a848cd7e | 18931 | |
a848cd7e | 18932 | |
3dd30495 | 18933 | ;; |
47964710 | 18934 | |
3dd30495 VZ |
18935 | Linux*) |
18936 | if test "$INTELCXX" != "yes"; then | |
18937 | ||
18938 | ||
18939 | ac_ext=cpp | |
18940 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18941 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18942 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18943 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18944 | ||
18945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C++ compiler" >&5 | |
18946 | $as_echo_n "checking whether we are using the Sun C++ compiler... " >&6; } | |
eff9d7f5 | 18947 | if ${bakefile_cv_cxx_compiler___SUNPRO_CC+:} false; then : |
3dd30495 | 18948 | $as_echo_n "(cached) " >&6 |
a848cd7e | 18949 | else |
3dd30495 | 18950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 18951 | /* end confdefs.h. */ |
3dd30495 VZ |
18952 | |
18953 | int | |
18954 | main () | |
18955 | { | |
18956 | ||
18957 | #ifndef __SUNPRO_CC | |
18958 | choke me | |
18959 | #endif | |
a848cd7e SC |
18960 | |
18961 | ; | |
18962 | return 0; | |
18963 | } | |
18964 | _ACEOF | |
3dd30495 VZ |
18965 | if ac_fn_cxx_try_compile "$LINENO"; then : |
18966 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
a848cd7e | 18967 | else |
3dd30495 | 18968 | bakefile_cv_cxx_compiler___SUNPRO_CC=no |
a848cd7e | 18969 | |
a848cd7e | 18970 | fi |
3dd30495 VZ |
18971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
18972 | ||
18973 | ||
4db03d26 | 18974 | fi |
3dd30495 VZ |
18975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 |
18976 | $as_echo "$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; } | |
18977 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
18978 | :; SUNCXX=yes | |
18979 | else | |
18980 | :; | |
18981 | fi | |
18982 | ac_ext=c | |
18983 | ac_cpp='$CPP $CPPFLAGS' | |
18984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
47964710 VS |
18987 | |
18988 | ||
18989 | ||
3dd30495 VZ |
18990 | fi |
18991 | ;; | |
a848cd7e | 18992 | |
3dd30495 | 18993 | HP-UX*) |
a848cd7e SC |
18994 | |
18995 | ||
3dd30495 VZ |
18996 | ac_ext=cpp |
18997 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18998 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18999 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19000 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19001 | ||
19002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the HP C++ compiler" >&5 | |
19003 | $as_echo_n "checking whether we are using the HP C++ compiler... " >&6; } | |
eff9d7f5 | 19004 | if ${bakefile_cv_cxx_compiler___HP_aCC+:} false; then : |
3dd30495 | 19005 | $as_echo_n "(cached) " >&6 |
d589327a | 19006 | else |
3dd30495 | 19007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d589327a | 19008 | /* end confdefs.h. */ |
3dd30495 | 19009 | |
d589327a VZ |
19010 | int |
19011 | main () | |
19012 | { | |
3dd30495 VZ |
19013 | |
19014 | #ifndef __HP_aCC | |
19015 | choke me | |
19016 | #endif | |
19017 | ||
d589327a VZ |
19018 | ; |
19019 | return 0; | |
19020 | } | |
19021 | _ACEOF | |
3dd30495 VZ |
19022 | if ac_fn_cxx_try_compile "$LINENO"; then : |
19023 | bakefile_cv_cxx_compiler___HP_aCC=yes | |
d589327a | 19024 | else |
3dd30495 | 19025 | bakefile_cv_cxx_compiler___HP_aCC=no |
d589327a | 19026 | |
d589327a | 19027 | fi |
d589327a | 19028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 VZ |
19029 | |
19030 | ||
d589327a | 19031 | fi |
3dd30495 VZ |
19032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
19033 | $as_echo "$bakefile_cv_cxx_compiler___HP_aCC" >&6; } | |
19034 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then | |
19035 | :; HPCXX=yes | |
19036 | else | |
19037 | :; | |
19038 | fi | |
19039 | ac_ext=c | |
19040 | ac_cpp='$CPP $CPPFLAGS' | |
19041 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19042 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19043 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d589327a | 19044 | |
3dd30495 VZ |
19045 | |
19046 | ||
19047 | ;; | |
19048 | ||
19049 | OSF1) | |
19050 | ||
19051 | ||
19052 | ac_ext=cpp | |
19053 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19054 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19055 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19056 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19057 | ||
19058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Compaq C++ compiler" >&5 | |
19059 | $as_echo_n "checking whether we are using the Compaq C++ compiler... " >&6; } | |
eff9d7f5 | 19060 | if ${bakefile_cv_cxx_compiler___DECCXX+:} false; then : |
3dd30495 | 19061 | $as_echo_n "(cached) " >&6 |
a848cd7e | 19062 | else |
3dd30495 | 19063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 19064 | /* end confdefs.h. */ |
3dd30495 | 19065 | |
a848cd7e SC |
19066 | int |
19067 | main () | |
19068 | { | |
3dd30495 VZ |
19069 | |
19070 | #ifndef __DECCXX | |
19071 | choke me | |
19072 | #endif | |
a848cd7e SC |
19073 | |
19074 | ; | |
19075 | return 0; | |
19076 | } | |
19077 | _ACEOF | |
3dd30495 VZ |
19078 | if ac_fn_cxx_try_compile "$LINENO"; then : |
19079 | bakefile_cv_cxx_compiler___DECCXX=yes | |
19080 | else | |
19081 | bakefile_cv_cxx_compiler___DECCXX=no | |
19082 | ||
19083 | fi | |
19084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19085 | ||
19086 | ||
19087 | fi | |
19088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 | |
19089 | $as_echo "$bakefile_cv_cxx_compiler___DECCXX" >&6; } | |
19090 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then | |
19091 | :; COMPAQCXX=yes | |
19092 | else | |
19093 | :; | |
19094 | fi | |
19095 | ac_ext=c | |
19096 | ac_cpp='$CPP $CPPFLAGS' | |
19097 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19098 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19099 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19100 | ||
19101 | ||
19102 | ||
19103 | ;; | |
19104 | ||
19105 | SunOS) | |
19106 | ||
19107 | ||
19108 | ac_ext=cpp | |
19109 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19110 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19111 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19112 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19113 | ||
19114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Sun C++ compiler" >&5 | |
19115 | $as_echo_n "checking whether we are using the Sun C++ compiler... " >&6; } | |
eff9d7f5 | 19116 | if ${bakefile_cv_cxx_compiler___SUNPRO_CC+:} false; then : |
3dd30495 VZ |
19117 | $as_echo_n "(cached) " >&6 |
19118 | else | |
19119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 19120 | /* end confdefs.h. */ |
3dd30495 | 19121 | |
a848cd7e SC |
19122 | int |
19123 | main () | |
19124 | { | |
3dd30495 VZ |
19125 | |
19126 | #ifndef __SUNPRO_CC | |
19127 | choke me | |
19128 | #endif | |
a848cd7e SC |
19129 | |
19130 | ; | |
19131 | return 0; | |
19132 | } | |
19133 | _ACEOF | |
3dd30495 VZ |
19134 | if ac_fn_cxx_try_compile "$LINENO"; then : |
19135 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
a848cd7e | 19136 | else |
3dd30495 | 19137 | bakefile_cv_cxx_compiler___SUNPRO_CC=no |
a848cd7e | 19138 | |
a848cd7e | 19139 | fi |
47964710 | 19140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 VZ |
19141 | |
19142 | ||
19143 | fi | |
19144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
19145 | $as_echo "$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; } | |
19146 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
19147 | :; SUNCXX=yes | |
19148 | else | |
19149 | :; | |
19150 | fi | |
19151 | ac_ext=c | |
19152 | ac_cpp='$CPP $CPPFLAGS' | |
19153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19156 | ||
19157 | ||
19158 | ||
19159 | ;; | |
19160 | esac | |
19161 | fi | |
19162 | ||
19163 | ||
19164 | ||
19165 | if test "$CXX" = "g++" -a "$GXX" != "yes"; then | |
19166 | as_fn_error $? "C++ compiler is needed to build wxWidgets" "$LINENO" 5 | |
19167 | fi | |
19168 | ||
19169 | if test "x$SUNCXX" != xyes; then | |
19170 | if test -n "$ac_tool_prefix"; then | |
19171 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
19172 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
19173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19174 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 19175 | if ${ac_cv_prog_AR+:} false; then : |
3dd30495 VZ |
19176 | $as_echo_n "(cached) " >&6 |
19177 | else | |
19178 | if test -n "$AR"; then | |
19179 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
19180 | else | |
19181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19182 | for as_dir in $PATH | |
19183 | do | |
19184 | IFS=$as_save_IFS | |
19185 | test -z "$as_dir" && as_dir=. | |
19186 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 19187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
19188 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
19189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19190 | break 2 | |
19191 | fi | |
19192 | done | |
a848cd7e | 19193 | done |
3dd30495 VZ |
19194 | IFS=$as_save_IFS |
19195 | ||
19196 | fi | |
19197 | fi | |
19198 | AR=$ac_cv_prog_AR | |
19199 | if test -n "$AR"; then | |
19200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
19201 | $as_echo "$AR" >&6; } | |
a848cd7e | 19202 | else |
3dd30495 VZ |
19203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19204 | $as_echo "no" >&6; } | |
19205 | fi | |
a848cd7e | 19206 | |
a848cd7e | 19207 | |
3dd30495 VZ |
19208 | fi |
19209 | if test -z "$ac_cv_prog_AR"; then | |
19210 | ac_ct_AR=$AR | |
19211 | # Extract the first word of "ar", so it can be a program name with args. | |
19212 | set dummy ar; ac_word=$2 | |
19213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
19214 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 19215 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
3dd30495 VZ |
19216 | $as_echo_n "(cached) " >&6 |
19217 | else | |
19218 | if test -n "$ac_ct_AR"; then | |
19219 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
19220 | else | |
19221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19222 | for as_dir in $PATH | |
19223 | do | |
19224 | IFS=$as_save_IFS | |
19225 | test -z "$as_dir" && as_dir=. | |
19226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 19227 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3dd30495 VZ |
19228 | ac_cv_prog_ac_ct_AR="ar" |
19229 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19230 | break 2 | |
19231 | fi | |
19232 | done | |
19233 | done | |
19234 | IFS=$as_save_IFS | |
a848cd7e | 19235 | |
3dd30495 VZ |
19236 | fi |
19237 | fi | |
19238 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
19239 | if test -n "$ac_ct_AR"; then | |
19240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
19241 | $as_echo "$ac_ct_AR" >&6; } | |
19242 | else | |
19243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19244 | $as_echo "no" >&6; } | |
19245 | fi | |
19246 | ||
19247 | if test "x$ac_ct_AR" = x; then | |
19248 | AR="" | |
19249 | else | |
19250 | case $cross_compiling:$ac_tool_warned in | |
19251 | yes:) | |
19252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
19253 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
19254 | ac_tool_warned=yes ;; | |
47964710 | 19255 | esac |
3dd30495 VZ |
19256 | AR=$ac_ct_AR |
19257 | fi | |
a848cd7e | 19258 | else |
3dd30495 VZ |
19259 | AR="$ac_cv_prog_AR" |
19260 | fi | |
a848cd7e | 19261 | |
3dd30495 VZ |
19262 | if test "x$AR" = "x" ; then |
19263 | as_fn_error $? "ar is needed to build wxWidgets" "$LINENO" 5 | |
19264 | fi | |
a848cd7e | 19265 | fi |
47964710 | 19266 | |
3dd30495 VZ |
19267 | |
19268 | if test "$wxUSE_MAC" = 1; then | |
19269 | ||
19270 | retest_macosx_linking=no | |
19271 | ||
19272 | OSX_ARCH_OPTS="" | |
19273 | ||
19274 | if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then | |
19275 | if test "x$wxUSE_MAC_ARCH" != xno; then | |
19276 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-macosx_arch is ignored when --enable-universal_binary is used." >&5 | |
19277 | $as_echo "$as_me: WARNING: --enable-macosx_arch is ignored when --enable-universal_binary is used." >&2;} | |
19278 | fi | |
19279 | ||
19280 | if test "x$wxUSE_UNIVERSAL_BINARY" != xyes; then | |
19281 | OSX_ARCH_OPTS=$wxUSE_UNIVERSAL_BINARY | |
19282 | else OSX_ARCH_OPTS="ppc,i386" | |
19283 | if test "$wxUSE_OSX_COCOA" = 1; then | |
19284 | OSX_ARCH_OPTS="$OSX_ARCH_OPTS,x86_64" | |
19285 | fi | |
19286 | fi | |
19287 | ||
19288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for architectures to use in universal binary" >&5 | |
19289 | $as_echo_n "checking for architectures to use in universal binary... " >&6; } | |
19290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OSX_ARCH_OPTS" >&5 | |
19291 | $as_echo "$OSX_ARCH_OPTS" >&6; } | |
19292 | ||
19293 | retest_macosx_linking=yes | |
3dd30495 VZ |
19294 | else |
19295 | if test "x$wxUSE_MAC_ARCH" != xno; then | |
19296 | OSX_ARCH_OPTS=$wxUSE_MAC_ARCH | |
19297 | fi | |
19298 | fi | |
19299 | ||
19300 | if test "x$OSX_ARCH_OPTS" != "x"; then | |
e269b28e | 19301 | if echo $OSX_ARCH_OPTS | grep -q ","; then |
41d170ce | 19302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling dependency tracking due to universal binary build." >&5 |
9b1e7719 | 19303 | $as_echo "$as_me: WARNING: Disabling dependency tracking due to universal binary build." >&2;} |
e269b28e | 19304 | disable_macosx_deps=yes |
9b1e7719 | 19305 | |
41d170ce | 19306 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling precompiled headers due to universal binary build." >&5 |
9b1e7719 | 19307 | $as_echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;} |
41d170ce | 19308 | bk_use_pch=no |
e269b28e RD |
19309 | fi |
19310 | ||
3dd30495 VZ |
19311 | OSX_ARCH_OPTS=`echo $OSX_ARCH_OPTS | sed -e 's/^/-arch /' -e 's/,/ -arch /g'` |
19312 | ||
19313 | CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS" | |
19314 | CFLAGS="$OSX_ARCH_OPTS $CFLAGS" | |
19315 | OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS" | |
19316 | OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS" | |
19317 | LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS" | |
19318 | fi | |
19319 | ||
19320 | if test "x$wxUSE_MACOSX_SDK" = "xno"; then | |
19321 | wxUSE_MACOSX_SDK= | |
19322 | elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then | |
19323 | # TODO: Search for most recent SDK and use it. | |
19324 | wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk" | |
19325 | fi | |
19326 | ||
19327 | ||
19328 | if test "x$wxUSE_MACOSX_SDK" != "x"; then | |
19329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDK directory $wxUSE_MACOSX_SDK" >&5 | |
19330 | $as_echo_n "checking for SDK directory $wxUSE_MACOSX_SDK... " >&6; } | |
19331 | if ! test -d "$wxUSE_MACOSX_SDK"; then | |
19332 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
19333 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19334 | as_fn_error $? "not found | |
eff9d7f5 | 19335 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
19336 | else |
19337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: exists" >&5 | |
19338 | $as_echo "exists" >&6; } | |
19339 | fi | |
19340 | MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK" | |
19341 | retest_macosx_linking=yes | |
19342 | fi | |
19343 | ||
19344 | if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then | |
19345 | wxUSE_MACOSX_VERSION_MIN= | |
19346 | elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then | |
19347 | if test "x$wxUSE_MACOSX_SDK" != "x"; then | |
19348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SDK deployment version" >&5 | |
19349 | $as_echo_n "checking SDK deployment version... " >&6; } | |
19350 | ||
19351 | MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" buildSettings | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` | |
19352 | ||
19353 | # If that failed, try again with the new key | |
19354 | if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then | |
19355 | ||
19356 | MACOSX_SDK_PLIST_VERSION_MIN=`defaults read "$wxUSE_MACOSX_SDK/SDKSettings" DefaultProperties | grep '^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}[^"]*"\{0,1\}; *$' | sed 's/^ *"\{0,1\}MACOSX_DEPLOYMENT_TARGET"\{0,1\} *= *"\{0,1\}\([^"]*\)"\{0,1\} *; *$/\1/'` | |
19357 | ||
19358 | fi | |
19359 | ||
19360 | if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then | |
19361 | wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN | |
19362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_MACOSX_VERSION_MIN" >&5 | |
19363 | $as_echo "$wxUSE_MACOSX_VERSION_MIN" >&6; } | |
19364 | else | |
19365 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine deployment target from SDKSettings.plist" >&5 | |
19366 | $as_echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;} | |
19367 | wxUSE_MACOSX_VERSION_MIN= | |
19368 | fi | |
19369 | else | |
19370 | wxUSE_MACOSX_VERSION_MIN= | |
19371 | fi | |
19372 | elif test "x$wxUSE_MACOSX_VERSION_MIN" = "x"; then | |
a83354f8 | 19373 | wxUSE_MACOSX_VERSION_MIN=10.5 |
3dd30495 VZ |
19374 | fi |
19375 | ||
19376 | if test "x$MACOSX_SDK_OPTS" != "x"; then | |
19377 | eval "CC=\"$CC $MACOSX_SDK_OPTS\"" | |
19378 | eval "CXX=\"$CXX $MACOSX_SDK_OPTS\"" | |
19379 | eval "LD=\"$LD $MACOSX_SDK_OPTS\"" | |
a83354f8 | 19380 | retest_macosx_linking=yes |
3dd30495 VZ |
19381 | fi |
19382 | ||
19383 | if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then | |
19384 | if test "$wxUSE_OSX_IPHONE" = 1; then | |
19385 | MACOSX_VERSION_MIN_OPTS="-miphoneos-version-min=$wxUSE_MACOSX_VERSION_MIN" | |
19386 | else | |
19387 | MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN" | |
19388 | fi | |
19389 | eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\"" | |
19390 | eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\"" | |
19391 | eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\"" | |
19392 | retest_macosx_linking=yes | |
19393 | fi | |
19394 | ||
19395 | if test "x$retest_macosx_linking" = "xyes"; then | |
19396 | ac_ext=c | |
19397 | ac_cpp='$CPP $CPPFLAGS' | |
19398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19401 | ||
a83354f8 VZ |
19402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler ($CC) works with SDK/version options" >&5 |
19403 | $as_echo_n "checking if C compiler ($CC) works with SDK/version options... " >&6; } | |
3dd30495 | 19404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 19405 | /* end confdefs.h. */ |
3dd30495 | 19406 | |
a848cd7e SC |
19407 | int |
19408 | main () | |
19409 | { | |
a848cd7e SC |
19410 | |
19411 | ; | |
19412 | return 0; | |
19413 | } | |
19414 | _ACEOF | |
3dd30495 VZ |
19415 | if ac_fn_c_try_link "$LINENO"; then : |
19416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19417 | $as_echo "yes" >&6; } | |
a848cd7e | 19418 | else |
3dd30495 VZ |
19419 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
19420 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19421 | as_fn_error $? "no. Try a different SDK | |
eff9d7f5 | 19422 | See \`config.log' for more details" "$LINENO" 5; }; exit 1 |
a848cd7e | 19423 | fi |
3dd30495 VZ |
19424 | rm -f core conftest.err conftest.$ac_objext \ |
19425 | conftest$ac_exeext conftest.$ac_ext | |
19426 | ac_ext=c | |
19427 | ac_cpp='$CPP $CPPFLAGS' | |
19428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19431 | ||
19432 | ||
19433 | ac_ext=cpp | |
19434 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19435 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19436 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19437 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
47964710 | 19438 | |
a83354f8 VZ |
19439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler ($CXX) works with SDK/version options" >&5 |
19440 | $as_echo_n "checking if C++ compiler ($CXX) works with SDK/version options... " >&6; } | |
3dd30495 | 19441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 19442 | /* end confdefs.h. */ |
3dd30495 | 19443 | |
a848cd7e SC |
19444 | int |
19445 | main () | |
19446 | { | |
19447 | ||
a848cd7e SC |
19448 | ; |
19449 | return 0; | |
19450 | } | |
19451 | _ACEOF | |
3dd30495 VZ |
19452 | if ac_fn_cxx_try_link "$LINENO"; then : |
19453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19454 | $as_echo "yes" >&6; } | |
a848cd7e | 19455 | else |
3dd30495 VZ |
19456 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
19457 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19458 | as_fn_error $? "no. Try a different SDK | |
eff9d7f5 | 19459 | See \`config.log' for more details" "$LINENO" 5; }; exit 1 |
a848cd7e | 19460 | fi |
3dd30495 VZ |
19461 | rm -f core conftest.err conftest.$ac_objext \ |
19462 | conftest$ac_exeext conftest.$ac_ext | |
19463 | ac_ext=c | |
19464 | ac_cpp='$CPP $CPPFLAGS' | |
19465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19468 | ||
a848cd7e | 19469 | fi |
3dd30495 | 19470 | |
bd8a7646 | 19471 | fi |
3dd30495 | 19472 | case "${host}" in |
47964710 | 19473 | |
3dd30495 VZ |
19474 | *-*-darwin* ) |
19475 | INSTALL_PROGRAM="cp -fp" | |
19476 | INSTALL_DATA="cp -fp" | |
19477 | ;; | |
19478 | *) | |
19479 | ;; | |
19480 | esac | |
47964710 VS |
19481 | |
19482 | ||
3dd30495 VZ |
19483 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
19484 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
a848cd7e SC |
19485 | |
19486 | ||
3dd30495 VZ |
19487 | GNU_SOURCE_FLAG="-D_GNU_SOURCE" |
19488 | CFLAGS="$GNU_SOURCE_FLAG $CFLAGS" | |
19489 | fi | |
19490 | ||
19491 | if test "x$USE_AIX" = "x1"; then | |
19492 | if test "x$XLCXX" = "xyes"; then | |
19493 | CXXFLAGS="-qunique $CXXFLAGS" | |
19494 | fi | |
19495 | ||
19496 | CPPFLAGS="-D_LINUX_SOURCE_COMPAT $CPPFLAGS" | |
19497 | fi | |
19498 | ||
19499 | case "${host}" in | |
19500 | powerpc-*-darwin* ) | |
19501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __POWERPC__ is already defined" >&5 | |
19502 | $as_echo_n "checking if __POWERPC__ is already defined... " >&6; } | |
19503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d589327a | 19504 | /* end confdefs.h. */ |
3dd30495 | 19505 | |
d589327a VZ |
19506 | int |
19507 | main () | |
19508 | { | |
3dd30495 VZ |
19509 | #ifndef __POWERPC__ |
19510 | choke me for lack of PowerPC | |
19511 | #endif | |
19512 | ||
d589327a VZ |
19513 | ; |
19514 | return 0; | |
19515 | } | |
19516 | _ACEOF | |
3dd30495 VZ |
19517 | if ac_fn_c_try_compile "$LINENO"; then : |
19518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19519 | $as_echo "yes" >&6; } | |
d589327a | 19520 | else |
3dd30495 VZ |
19521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
19522 | $as_echo "no" >&6; } | |
19523 | $as_echo "#define __POWERPC__ 1" >>confdefs.h | |
d589327a | 19524 | |
d589327a | 19525 | |
d589327a | 19526 | fi |
3dd30495 VZ |
19527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19528 | ;; | |
19529 | esac | |
d589327a | 19530 | |
3dd30495 VZ |
19531 | case "${host}" in |
19532 | *-*-darwin* ) | |
19533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CoreFoundation/CFBase.h is usable" >&5 | |
19534 | $as_echo_n "checking if CoreFoundation/CFBase.h is usable... " >&6; } | |
19535 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 19536 | /* end confdefs.h. */ |
3dd30495 VZ |
19537 | #include <CoreFoundation/CFBase.h> |
19538 | ||
a848cd7e SC |
19539 | int |
19540 | main () | |
19541 | { | |
a848cd7e SC |
19542 | |
19543 | ; | |
19544 | return 0; | |
19545 | } | |
19546 | _ACEOF | |
3dd30495 VZ |
19547 | if ac_fn_c_try_compile "$LINENO"; then : |
19548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19549 | $as_echo "yes" >&6; } | |
19550 | else | |
19551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
19552 | $as_echo "no" >&6; } | |
19553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
19554 | $as_echo_n "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... " >&6; } | |
19555 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 19556 | /* end confdefs.h. */ |
3dd30495 VZ |
19557 | #define __CF_USE_FRAMEWORK_INCLUDES__ |
19558 | #include <CoreFoundation/CFBase.h> | |
19559 | ||
a848cd7e SC |
19560 | int |
19561 | main () | |
19562 | { | |
a848cd7e SC |
19563 | |
19564 | ; | |
19565 | return 0; | |
19566 | } | |
19567 | _ACEOF | |
3dd30495 VZ |
19568 | if ac_fn_c_try_compile "$LINENO"; then : |
19569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
19570 | $as_echo "yes" >&6; } | |
19571 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" | |
a848cd7e | 19572 | else |
3dd30495 VZ |
19573 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
19574 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
19575 | as_fn_error $? "no. CoreFoundation not available. | |
eff9d7f5 | 19576 | See \`config.log' for more details" "$LINENO" 5; } |
a848cd7e | 19577 | |
a848cd7e | 19578 | fi |
3dd30495 | 19579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
47964710 | 19580 | |
3dd30495 VZ |
19581 | |
19582 | fi | |
47964710 | 19583 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3dd30495 VZ |
19584 | ;; |
19585 | esac | |
19586 | ||
19587 | wants_win32=0 | |
19588 | doesnt_want_win32=0 | |
19589 | case "${host}" in | |
19590 | *-*-cygwin*) | |
19591 | if test "$wxUSE_MSW" = 1 ; then | |
19592 | wants_win32=1 | |
19593 | else | |
19594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -mno-cygwin is in effect" >&5 | |
19595 | $as_echo_n "checking if -mno-cygwin is in effect... " >&6; } | |
eff9d7f5 | 19596 | if ${wx_cv_nocygwin+:} false; then : |
3dd30495 | 19597 | $as_echo_n "(cached) " >&6 |
a848cd7e | 19598 | else |
a848cd7e | 19599 | |
3dd30495 | 19600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 19601 | /* end confdefs.h. */ |
3dd30495 | 19602 | |
a848cd7e SC |
19603 | int |
19604 | main () | |
19605 | { | |
3dd30495 VZ |
19606 | |
19607 | #ifdef __MINGW32__ | |
19608 | choke me | |
19609 | #endif | |
a848cd7e SC |
19610 | |
19611 | ; | |
19612 | return 0; | |
19613 | } | |
19614 | _ACEOF | |
3dd30495 VZ |
19615 | if ac_fn_c_try_compile "$LINENO"; then : |
19616 | wx_cv_nocygwin=no | |
19617 | else | |
19618 | wx_cv_nocygwin=yes | |
19619 | ||
19620 | fi | |
19621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19622 | ||
19623 | ||
19624 | fi | |
19625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_nocygwin" >&5 | |
19626 | $as_echo "$wx_cv_nocygwin" >&6; } | |
19627 | ||
19628 | if test "$wx_cv_nocygwin" = "yes"; then | |
19629 | wants_win32=1 | |
19630 | else | |
19631 | doesnt_want_win32=1 | |
19632 | fi | |
19633 | fi | |
19634 | if test "$wants_win32" = 1 ; then | |
19635 | BAKEFILE_FORCE_PLATFORM=win32 | |
19636 | fi | |
19637 | ;; | |
19638 | *-*-mingw*) | |
19639 | wants_win32=1 | |
19640 | ;; | |
47964710 | 19641 | esac |
3dd30495 VZ |
19642 | |
19643 | if test "$wxUSE_WINE" = "yes"; then | |
19644 | wants_win32=1 | |
19645 | LDFLAGS_GUI="-mwindows" | |
19646 | fi | |
19647 | ||
19648 | if test "$wants_win32" = 1 ; then | |
19649 | USE_UNIX=0 | |
19650 | USE_WIN32=1 | |
19651 | $as_echo "#define __WIN32__ 1" >>confdefs.h | |
19652 | ||
19653 | $as_echo "#define __WIN95__ 1" >>confdefs.h | |
19654 | ||
19655 | $as_echo "#define __WINDOWS__ 1" >>confdefs.h | |
19656 | ||
19657 | $as_echo "#define __GNUWIN32__ 1" >>confdefs.h | |
19658 | ||
19659 | $as_echo "#define STRICT 1" >>confdefs.h | |
19660 | ||
19661 | fi | |
19662 | if test "$doesnt_want_win32" = 1 ; then | |
19663 | USE_UNIX=1 | |
19664 | USE_WIN32=0 | |
19665 | fi | |
19666 | ||
19667 | if test "$USE_UNIX" = 1 ; then | |
19668 | wxUSE_UNIX=yes | |
19669 | $as_echo "#define __UNIX__ 1" >>confdefs.h | |
19670 | ||
19671 | fi | |
19672 | ||
19673 | case "${host}" in | |
19674 | *-pc-os2_emx | *-pc-os2-emx ) | |
19675 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
19676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for drand48 in -lcExt" >&5 | |
19677 | $as_echo_n "checking for drand48 in -lcExt... " >&6; } | |
eff9d7f5 | 19678 | if ${ac_cv_lib_cExt_drand48+:} false; then : |
3dd30495 VZ |
19679 | $as_echo_n "(cached) " >&6 |
19680 | else | |
19681 | ac_check_lib_save_LIBS=$LIBS | |
19682 | LIBS="-lcExt $LIBS" | |
19683 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 19684 | /* end confdefs.h. */ |
3dd30495 VZ |
19685 | |
19686 | /* Override any GCC internal prototype to avoid an error. | |
19687 | Use char because int might match the return type of a GCC | |
19688 | builtin and then its argument prototype would still apply. */ | |
19689 | #ifdef __cplusplus | |
19690 | extern "C" | |
19691 | #endif | |
19692 | char drand48 (); | |
a848cd7e SC |
19693 | int |
19694 | main () | |
19695 | { | |
3dd30495 | 19696 | return drand48 (); |
a848cd7e SC |
19697 | ; |
19698 | return 0; | |
19699 | } | |
19700 | _ACEOF | |
3dd30495 VZ |
19701 | if ac_fn_c_try_link "$LINENO"; then : |
19702 | ac_cv_lib_cExt_drand48=yes | |
a848cd7e | 19703 | else |
3dd30495 VZ |
19704 | ac_cv_lib_cExt_drand48=no |
19705 | fi | |
19706 | rm -f core conftest.err conftest.$ac_objext \ | |
19707 | conftest$ac_exeext conftest.$ac_ext | |
19708 | LIBS=$ac_check_lib_save_LIBS | |
19709 | fi | |
19710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cExt_drand48" >&5 | |
19711 | $as_echo "$ac_cv_lib_cExt_drand48" >&6; } | |
eff9d7f5 | 19712 | if test "x$ac_cv_lib_cExt_drand48" = xyes; then : |
3dd30495 | 19713 | LIBS="$LIBS -lcExt" |
a848cd7e | 19714 | fi |
47964710 | 19715 | |
3dd30495 VZ |
19716 | else |
19717 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
19718 | fi | |
19719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc/libc version" >&5 | |
19720 | $as_echo_n "checking for gcc/libc version... " >&6; } | |
eff9d7f5 | 19721 | if ${wx_cv_gccversion+:} false; then : |
3dd30495 | 19722 | $as_echo_n "(cached) " >&6 |
a848cd7e | 19723 | else |
a848cd7e | 19724 | |
3dd30495 VZ |
19725 | if test "$cross_compiling" = yes; then : |
19726 | wx_cv_gccversion="EMX2" | |
19727 | ||
19728 | else | |
19729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19730 | /* end confdefs.h. */ | |
19731 | ||
19732 | #include <stdio.h> | |
19733 | ||
19734 | int main() | |
19735 | { | |
19736 | FILE *f=fopen("conftestval", "w"); | |
19737 | if (!f) exit(1); | |
19738 | fprintf(f, | |
19739 | #if (__GNUC__ < 3) | |
19740 | "EMX2" | |
19741 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
19742 | "EMX3" | |
19743 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
19744 | "Innotek5" | |
19745 | #else | |
19746 | "Innotek6" | |
19747 | #endif | |
19748 | ); | |
19749 | exit(0); | |
19750 | } | |
19751 | ||
19752 | _ACEOF | |
19753 | if ac_fn_c_try_run "$LINENO"; then : | |
19754 | wx_cv_gccversion=`cat conftestval` | |
19755 | else | |
19756 | wx_cv_gccversion="EMX2" | |
19757 | fi | |
19758 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
19759 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a848cd7e | 19760 | fi |
47964710 | 19761 | |
3dd30495 | 19762 | |
a848cd7e | 19763 | fi |
3dd30495 VZ |
19764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_gccversion" >&5 |
19765 | $as_echo "$wx_cv_gccversion" >&6; } | |
19766 | if test "$wx_cv_gccversion" = "EMX2"; then | |
19767 | LIBS="$LIBS -lstdcpp" | |
19768 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
19769 | else | |
19770 | if test "$wx_cv_gccversion" = "EMX3"; then | |
19771 | LIBS="$LIBS -lstdcxx -lgcc" | |
19772 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
19773 | else | |
19774 | LIBS="$LIBS -lstdc++" | |
19775 | fi | |
19776 | fi | |
19777 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then | |
19778 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
19779 | $as_echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
19780 | wxUSE_OMF=yes | |
19781 | enable_omf=yes | |
19782 | fi | |
19783 | ;; | |
19784 | *) | |
47964710 | 19785 | |
3dd30495 VZ |
19786 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp() in string.h" >&5 |
19787 | $as_echo_n "checking for strcasecmp() in string.h... " >&6; } | |
eff9d7f5 | 19788 | if ${ac_cv_string_strcasecmp+:} false; then : |
3dd30495 VZ |
19789 | $as_echo_n "(cached) " >&6 |
19790 | else | |
19791 | ||
19792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 19793 | /* end confdefs.h. */ |
3dd30495 VZ |
19794 | |
19795 | #include <string.h> | |
19796 | ||
a848cd7e SC |
19797 | int |
19798 | main () | |
19799 | { | |
3dd30495 VZ |
19800 | |
19801 | strcasecmp("foo", "bar"); | |
a848cd7e SC |
19802 | |
19803 | ; | |
19804 | return 0; | |
19805 | } | |
19806 | _ACEOF | |
3dd30495 VZ |
19807 | if ac_fn_c_try_link "$LINENO"; then : |
19808 | ac_cv_string_strcasecmp=yes | |
a848cd7e | 19809 | else |
3dd30495 | 19810 | ac_cv_string_strcasecmp=no |
a848cd7e | 19811 | |
a848cd7e | 19812 | fi |
3dd30495 VZ |
19813 | rm -f core conftest.err conftest.$ac_objext \ |
19814 | conftest$ac_exeext conftest.$ac_ext | |
47964710 | 19815 | |
3dd30495 VZ |
19816 | fi |
19817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_string_strcasecmp" >&5 | |
19818 | $as_echo "$ac_cv_string_strcasecmp" >&6; } | |
19819 | ||
19820 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
19821 | $as_echo "#define HAVE_STRCASECMP_IN_STRING_H 1" >>confdefs.h | |
19822 | ||
19823 | else | |
19824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp() in strings.h" >&5 | |
19825 | $as_echo_n "checking for strcasecmp() in strings.h... " >&6; } | |
eff9d7f5 | 19826 | if ${ac_cv_strings_strcasecmp+:} false; then : |
3dd30495 | 19827 | $as_echo_n "(cached) " >&6 |
a848cd7e | 19828 | else |
3dd30495 VZ |
19829 | |
19830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 19831 | /* end confdefs.h. */ |
3dd30495 VZ |
19832 | |
19833 | #include <strings.h> | |
19834 | ||
a848cd7e SC |
19835 | int |
19836 | main () | |
19837 | { | |
19838 | ||
3dd30495 | 19839 | strcasecmp("foo", "bar"); |
a848cd7e SC |
19840 | |
19841 | ; | |
19842 | return 0; | |
19843 | } | |
19844 | _ACEOF | |
3dd30495 VZ |
19845 | if ac_fn_c_try_link "$LINENO"; then : |
19846 | ac_cv_strings_strcasecmp=yes | |
a848cd7e | 19847 | else |
3dd30495 | 19848 | ac_cv_strings_strcasecmp=no |
a848cd7e | 19849 | |
a848cd7e | 19850 | fi |
3dd30495 VZ |
19851 | rm -f core conftest.err conftest.$ac_objext \ |
19852 | conftest$ac_exeext conftest.$ac_ext | |
19853 | ||
bd8a7646 | 19854 | fi |
3dd30495 VZ |
19855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strings_strcasecmp" >&5 |
19856 | $as_echo "$ac_cv_strings_strcasecmp" >&6; } | |
47964710 | 19857 | |
3dd30495 VZ |
19858 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
19859 | $as_echo "#define HAVE_STRCASECMP_IN_STRINGS_H 1" >>confdefs.h | |
47964710 | 19860 | |
3dd30495 VZ |
19861 | else |
19862 | as_fn_error $? "No case-insensitive string comparison function found." "$LINENO" 5 | |
19863 | fi | |
19864 | fi | |
47964710 | 19865 | |
3dd30495 VZ |
19866 | ;; |
19867 | esac | |
a848cd7e SC |
19868 | |
19869 | ||
3dd30495 VZ |
19870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
19871 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
eff9d7f5 | 19872 | if ${ac_cv_header_stdc+:} false; then : |
3dd30495 | 19873 | $as_echo_n "(cached) " >&6 |
d589327a | 19874 | else |
3dd30495 | 19875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d589327a | 19876 | /* end confdefs.h. */ |
3dd30495 VZ |
19877 | #include <stdlib.h> |
19878 | #include <stdarg.h> | |
19879 | #include <string.h> | |
19880 | #include <float.h> | |
19881 | ||
d589327a VZ |
19882 | int |
19883 | main () | |
19884 | { | |
3dd30495 | 19885 | |
d589327a VZ |
19886 | ; |
19887 | return 0; | |
19888 | } | |
19889 | _ACEOF | |
3dd30495 VZ |
19890 | if ac_fn_c_try_compile "$LINENO"; then : |
19891 | ac_cv_header_stdc=yes | |
d589327a | 19892 | else |
3dd30495 VZ |
19893 | ac_cv_header_stdc=no |
19894 | fi | |
19895 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
19896 | ||
19897 | if test $ac_cv_header_stdc = yes; then | |
19898 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
19899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19900 | /* end confdefs.h. */ | |
19901 | #include <string.h> | |
19902 | ||
19903 | _ACEOF | |
19904 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
19905 | $EGREP "memchr" >/dev/null 2>&1; then : | |
d589327a | 19906 | |
3dd30495 VZ |
19907 | else |
19908 | ac_cv_header_stdc=no | |
d589327a | 19909 | fi |
3dd30495 | 19910 | rm -f conftest* |
d589327a | 19911 | |
d589327a | 19912 | fi |
d589327a | 19913 | |
3dd30495 VZ |
19914 | if test $ac_cv_header_stdc = yes; then |
19915 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
19916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
19917 | /* end confdefs.h. */ | |
19918 | #include <stdlib.h> | |
19919 | ||
a848cd7e | 19920 | _ACEOF |
3dd30495 VZ |
19921 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19922 | $EGREP "free" >/dev/null 2>&1; then : | |
19923 | ||
19924 | else | |
19925 | ac_cv_header_stdc=no | |
19926 | fi | |
19927 | rm -f conftest* | |
19928 | ||
19929 | fi | |
19930 | ||
19931 | if test $ac_cv_header_stdc = yes; then | |
19932 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
19933 | if test "$cross_compiling" = yes; then : | |
19934 | : | |
19935 | else | |
19936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 19937 | /* end confdefs.h. */ |
3dd30495 VZ |
19938 | #include <ctype.h> |
19939 | #include <stdlib.h> | |
19940 | #if ((' ' & 0x0FF) == 0x020) | |
19941 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
19942 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
19943 | #else | |
19944 | # define ISLOWER(c) \ | |
19945 | (('a' <= (c) && (c) <= 'i') \ | |
19946 | || ('j' <= (c) && (c) <= 'r') \ | |
19947 | || ('s' <= (c) && (c) <= 'z')) | |
19948 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
19949 | #endif | |
19950 | ||
19951 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
a848cd7e SC |
19952 | int |
19953 | main () | |
19954 | { | |
3dd30495 VZ |
19955 | int i; |
19956 | for (i = 0; i < 256; i++) | |
19957 | if (XOR (islower (i), ISLOWER (i)) | |
19958 | || toupper (i) != TOUPPER (i)) | |
19959 | return 2; | |
a848cd7e SC |
19960 | return 0; |
19961 | } | |
19962 | _ACEOF | |
3dd30495 VZ |
19963 | if ac_fn_c_try_run "$LINENO"; then : |
19964 | ||
19965 | else | |
19966 | ac_cv_header_stdc=no | |
19967 | fi | |
19968 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
19969 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
19970 | fi | |
19971 | ||
19972 | fi | |
19973 | fi | |
19974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
19975 | $as_echo "$ac_cv_header_stdc" >&6; } | |
19976 | if test $ac_cv_header_stdc = yes; then | |
19977 | ||
19978 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
19979 | ||
19980 | fi | |
19981 | ||
19982 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
19983 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
19984 | inttypes.h stdint.h unistd.h | |
19985 | do : | |
19986 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
19987 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
19988 | " | |
19989 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
19990 | cat >>confdefs.h <<_ACEOF | |
19991 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a848cd7e | 19992 | _ACEOF |
a848cd7e | 19993 | |
3dd30495 VZ |
19994 | fi |
19995 | ||
19996 | done | |
19997 | ||
19998 | ||
19999 | for ac_header in langinfo.h wchar.h | |
20000 | do : | |
20001 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20002 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
20003 | " | |
20004 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
20005 | cat >>confdefs.h <<_ACEOF | |
20006 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
a848cd7e | 20007 | _ACEOF |
a848cd7e | 20008 | |
a848cd7e | 20009 | fi |
47964710 | 20010 | |
3dd30495 | 20011 | done |
a848cd7e | 20012 | |
a848cd7e | 20013 | |
3dd30495 VZ |
20014 | if test "$ac_cv_header_wchar_h" != "yes"; then |
20015 | for ac_header in wcstr.h | |
20016 | do : | |
20017 | ac_fn_c_check_header_compile "$LINENO" "wcstr.h" "ac_cv_header_wcstr_h" "$ac_includes_default | |
20018 | " | |
eff9d7f5 | 20019 | if test "x$ac_cv_header_wcstr_h" = xyes; then : |
3dd30495 VZ |
20020 | cat >>confdefs.h <<_ACEOF |
20021 | #define HAVE_WCSTR_H 1 | |
a848cd7e | 20022 | _ACEOF |
3dd30495 VZ |
20023 | |
20024 | fi | |
20025 | ||
20026 | done | |
20027 | ||
20028 | fi | |
20029 | ||
20030 | case "${host}" in | |
20031 | *-pc-os2_emx | *-pc-os2-emx ) | |
20032 | if test $ac_cv_header_langinfo_h = "yes" \ | |
20033 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
20034 | -o "$wx_cv_gccversion" = "EMX3" \ | |
20035 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
20036 | LIBS="$LIBS -lintl" | |
20037 | fi | |
20038 | ;; | |
47964710 | 20039 | esac |
a848cd7e | 20040 | |
3dd30495 | 20041 | if test "$USE_UNIX" = 1 ; then |
e02ea203 | 20042 | for ac_header in sys/select.h |
3dd30495 VZ |
20043 | do : |
20044 | ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default | |
20045 | " | |
eff9d7f5 | 20046 | if test "x$ac_cv_header_sys_select_h" = xyes; then : |
3dd30495 VZ |
20047 | cat >>confdefs.h <<_ACEOF |
20048 | #define HAVE_SYS_SELECT_H 1 | |
a848cd7e | 20049 | _ACEOF |
a848cd7e | 20050 | |
a848cd7e | 20051 | fi |
47964710 | 20052 | |
3dd30495 | 20053 | done |
a848cd7e | 20054 | |
e02ea203 VZ |
20055 | |
20056 | ac_ext=cpp | |
20057 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20058 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20059 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20060 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20061 | ||
20062 | for ac_header in cxxabi.h | |
20063 | do : | |
20064 | ac_fn_cxx_check_header_compile "$LINENO" "cxxabi.h" "ac_cv_header_cxxabi_h" "$ac_includes_default | |
20065 | " | |
20066 | if test "x$ac_cv_header_cxxabi_h" = xyes; then : | |
20067 | cat >>confdefs.h <<_ACEOF | |
20068 | #define HAVE_CXXABI_H 1 | |
20069 | _ACEOF | |
20070 | ||
20071 | fi | |
20072 | ||
20073 | done | |
20074 | ||
20075 | ac_ext=c | |
20076 | ac_cpp='$CPP $CPPFLAGS' | |
20077 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20078 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20079 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20080 | ||
a848cd7e | 20081 | fi |
47964710 | 20082 | |
47964710 | 20083 | |
3dd30495 VZ |
20084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
20085 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
eff9d7f5 | 20086 | if ${ac_cv_c_const+:} false; then : |
3dd30495 VZ |
20087 | $as_echo_n "(cached) " >&6 |
20088 | else | |
20089 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 20090 | /* end confdefs.h. */ |
3dd30495 | 20091 | |
a848cd7e SC |
20092 | int |
20093 | main () | |
20094 | { | |
eff9d7f5 | 20095 | |
3dd30495 | 20096 | #ifndef __cplusplus |
eff9d7f5 | 20097 | /* Ultrix mips cc rejects this sort of thing. */ |
3dd30495 | 20098 | typedef int charset[2]; |
eff9d7f5 | 20099 | const charset cs = { 0, 0 }; |
3dd30495 VZ |
20100 | /* SunOS 4.1.1 cc rejects this. */ |
20101 | char const *const *pcpcc; | |
20102 | char **ppc; | |
20103 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
20104 | struct point {int x, y;}; | |
20105 | static struct point const zero = {0,0}; | |
20106 | /* AIX XL C 1.02.0.0 rejects this. | |
20107 | It does not let you subtract one const X* pointer from another in | |
20108 | an arm of an if-expression whose if-part is not a constant | |
20109 | expression */ | |
20110 | const char *g = "string"; | |
20111 | pcpcc = &g + (g ? g-g : 0); | |
20112 | /* HPUX 7.0 cc rejects these. */ | |
20113 | ++pcpcc; | |
20114 | ppc = (char**) pcpcc; | |
20115 | pcpcc = (char const *const *) ppc; | |
eff9d7f5 VZ |
20116 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
20117 | char tx; | |
20118 | char *t = &tx; | |
3dd30495 VZ |
20119 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
20120 | ||
20121 | *t++ = 0; | |
20122 | if (s) return 0; | |
20123 | } | |
20124 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
20125 | int x[] = {25, 17}; | |
20126 | const int *foo = &x[0]; | |
20127 | ++foo; | |
20128 | } | |
20129 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
20130 | typedef const int *iptr; | |
20131 | iptr p = 0; | |
20132 | ++p; | |
20133 | } | |
eff9d7f5 | 20134 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
3dd30495 | 20135 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
eff9d7f5 VZ |
20136 | struct s { int j; const int *ap[3]; } bx; |
20137 | struct s *b = &bx; b->j = 5; | |
3dd30495 VZ |
20138 | } |
20139 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
20140 | const int foo = 10; | |
20141 | if (!foo) return 0; | |
20142 | } | |
20143 | return !cs[0] && !zero.x; | |
20144 | #endif | |
a848cd7e SC |
20145 | |
20146 | ; | |
20147 | return 0; | |
20148 | } | |
20149 | _ACEOF | |
3dd30495 VZ |
20150 | if ac_fn_c_try_compile "$LINENO"; then : |
20151 | ac_cv_c_const=yes | |
a848cd7e | 20152 | else |
3dd30495 VZ |
20153 | ac_cv_c_const=no |
20154 | fi | |
20155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20156 | fi | |
20157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
20158 | $as_echo "$ac_cv_c_const" >&6; } | |
20159 | if test $ac_cv_c_const = no; then | |
20160 | ||
20161 | $as_echo "#define const /**/" >>confdefs.h | |
a848cd7e | 20162 | |
a848cd7e | 20163 | fi |
47964710 | 20164 | |
3dd30495 VZ |
20165 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
20166 | $as_echo_n "checking for inline... " >&6; } | |
eff9d7f5 | 20167 | if ${ac_cv_c_inline+:} false; then : |
3dd30495 | 20168 | $as_echo_n "(cached) " >&6 |
a848cd7e | 20169 | else |
3dd30495 VZ |
20170 | ac_cv_c_inline=no |
20171 | for ac_kw in inline __inline__ __inline; do | |
20172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 20173 | /* end confdefs.h. */ |
3dd30495 VZ |
20174 | #ifndef __cplusplus |
20175 | typedef int foo_t; | |
20176 | static $ac_kw foo_t static_foo () {return 0; } | |
20177 | $ac_kw foo_t foo () {return 0; } | |
20178 | #endif | |
a848cd7e | 20179 | |
3dd30495 VZ |
20180 | _ACEOF |
20181 | if ac_fn_c_try_compile "$LINENO"; then : | |
20182 | ac_cv_c_inline=$ac_kw | |
20183 | fi | |
20184 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
20185 | test "$ac_cv_c_inline" != no && break | |
20186 | done | |
a848cd7e | 20187 | |
3dd30495 VZ |
20188 | fi |
20189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
20190 | $as_echo "$ac_cv_c_inline" >&6; } | |
20191 | ||
20192 | case $ac_cv_c_inline in | |
20193 | inline | yes) ;; | |
20194 | *) | |
20195 | case $ac_cv_c_inline in | |
20196 | no) ac_val=;; | |
20197 | *) ac_val=$ac_cv_c_inline;; | |
20198 | esac | |
20199 | cat >>confdefs.h <<_ACEOF | |
20200 | #ifndef __cplusplus | |
20201 | #define inline $ac_val | |
20202 | #endif | |
a848cd7e | 20203 | _ACEOF |
3dd30495 | 20204 | ;; |
47964710 | 20205 | esac |
3dd30495 VZ |
20206 | |
20207 | ||
20208 | # The cast to long int works around a bug in the HP C Compiler | |
20209 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20210 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20211 | # This bug is HP SR number 8606223364. | |
20212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
20213 | $as_echo_n "checking size of short... " >&6; } | |
eff9d7f5 | 20214 | if ${ac_cv_sizeof_short+:} false; then : |
3dd30495 | 20215 | $as_echo_n "(cached) " >&6 |
a848cd7e | 20216 | else |
3dd30495 | 20217 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
a848cd7e | 20218 | |
3dd30495 VZ |
20219 | else |
20220 | if test "$ac_cv_type_short" = yes; then | |
20221 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20222 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20223 | as_fn_error 77 "cannot compute sizeof (short) | |
eff9d7f5 | 20224 | See \`config.log' for more details" "$LINENO" 5; } |
47964710 | 20225 | else |
3dd30495 | 20226 | ac_cv_sizeof_short=0 |
47964710 | 20227 | fi |
a848cd7e | 20228 | fi |
3dd30495 | 20229 | |
4db03d26 | 20230 | fi |
3dd30495 VZ |
20231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
20232 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
47964710 VS |
20233 | |
20234 | ||
20235 | ||
a848cd7e | 20236 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 20237 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
a848cd7e SC |
20238 | _ACEOF |
20239 | ||
20240 | ||
3dd30495 VZ |
20241 | # The cast to long int works around a bug in the HP C Compiler |
20242 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20243 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20244 | # This bug is HP SR number 8606223364. | |
20245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
20246 | $as_echo_n "checking size of void *... " >&6; } | |
eff9d7f5 | 20247 | if ${ac_cv_sizeof_void_p+:} false; then : |
3dd30495 VZ |
20248 | $as_echo_n "(cached) " >&6 |
20249 | else | |
20250 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : | |
a848cd7e | 20251 | |
d589327a | 20252 | else |
3dd30495 VZ |
20253 | if test "$ac_cv_type_void_p" = yes; then |
20254 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20255 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20256 | as_fn_error 77 "cannot compute sizeof (void *) | |
eff9d7f5 | 20257 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
20258 | else |
20259 | ac_cv_sizeof_void_p=0 | |
20260 | fi | |
20261 | fi | |
d589327a | 20262 | |
3dd30495 VZ |
20263 | fi |
20264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 | |
20265 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
d589327a VZ |
20266 | |
20267 | ||
20268 | ||
3dd30495 VZ |
20269 | cat >>confdefs.h <<_ACEOF |
20270 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
d589327a | 20271 | _ACEOF |
3dd30495 VZ |
20272 | |
20273 | ||
20274 | # The cast to long int works around a bug in the HP C Compiler | |
20275 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20276 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20277 | # This bug is HP SR number 8606223364. | |
20278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
20279 | $as_echo_n "checking size of int... " >&6; } | |
eff9d7f5 | 20280 | if ${ac_cv_sizeof_int+:} false; then : |
3dd30495 | 20281 | $as_echo_n "(cached) " >&6 |
d589327a | 20282 | else |
3dd30495 | 20283 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
d589327a | 20284 | |
3dd30495 VZ |
20285 | else |
20286 | if test "$ac_cv_type_int" = yes; then | |
20287 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20288 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20289 | as_fn_error 77 "cannot compute sizeof (int) | |
eff9d7f5 | 20290 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
20291 | else |
20292 | ac_cv_sizeof_int=0 | |
20293 | fi | |
d589327a VZ |
20294 | fi |
20295 | ||
d589327a | 20296 | fi |
3dd30495 VZ |
20297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
20298 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
20299 | ||
20300 | ||
20301 | ||
20302 | cat >>confdefs.h <<_ACEOF | |
20303 | #define SIZEOF_INT $ac_cv_sizeof_int | |
20304 | _ACEOF | |
20305 | ||
d589327a | 20306 | |
47964710 VS |
20307 | # The cast to long int works around a bug in the HP C Compiler |
20308 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20309 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20310 | # This bug is HP SR number 8606223364. | |
3dd30495 VZ |
20311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
20312 | $as_echo_n "checking size of long... " >&6; } | |
eff9d7f5 | 20313 | if ${ac_cv_sizeof_long+:} false; then : |
3dd30495 | 20314 | $as_echo_n "(cached) " >&6 |
a848cd7e | 20315 | else |
3dd30495 | 20316 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
238ecede | 20317 | |
3dd30495 VZ |
20318 | else |
20319 | if test "$ac_cv_type_long" = yes; then | |
20320 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20322 | as_fn_error 77 "cannot compute sizeof (long) | |
eff9d7f5 | 20323 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
20324 | else |
20325 | ac_cv_sizeof_long=0 | |
20326 | fi | |
20327 | fi | |
238ecede | 20328 | |
3dd30495 VZ |
20329 | fi |
20330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
20331 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
238ecede MW |
20332 | |
20333 | ||
238ecede | 20334 | |
3dd30495 VZ |
20335 | cat >>confdefs.h <<_ACEOF |
20336 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
238ecede | 20337 | _ACEOF |
238ecede MW |
20338 | |
20339 | ||
3dd30495 VZ |
20340 | # The cast to long int works around a bug in the HP C Compiler |
20341 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20342 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20343 | # This bug is HP SR number 8606223364. | |
20344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 | |
20345 | $as_echo_n "checking size of size_t... " >&6; } | |
eff9d7f5 | 20346 | if ${ac_cv_sizeof_size_t+:} false; then : |
3dd30495 VZ |
20347 | $as_echo_n "(cached) " >&6 |
20348 | else | |
20349 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : | |
4db03d26 | 20350 | |
4db03d26 | 20351 | else |
3dd30495 VZ |
20352 | if test "$ac_cv_type_size_t" = yes; then |
20353 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20354 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20355 | as_fn_error 77 "cannot compute sizeof (size_t) | |
eff9d7f5 | 20356 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
20357 | else |
20358 | ac_cv_sizeof_size_t=0 | |
20359 | fi | |
20360 | fi | |
4db03d26 | 20361 | |
4db03d26 | 20362 | fi |
3dd30495 VZ |
20363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
20364 | $as_echo "$ac_cv_sizeof_size_t" >&6; } | |
47964710 | 20365 | |
4db03d26 | 20366 | |
3dd30495 VZ |
20367 | |
20368 | cat >>confdefs.h <<_ACEOF | |
20369 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
4db03d26 | 20370 | _ACEOF |
4db03d26 | 20371 | |
4db03d26 VZ |
20372 | |
20373 | ||
3dd30495 VZ |
20374 | case "${host}" in |
20375 | arm-*-linux* ) | |
20376 | # The cast to long int works around a bug in the HP C Compiler | |
20377 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20378 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20379 | # This bug is HP SR number 8606223364. | |
20380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
20381 | $as_echo_n "checking size of long long... " >&6; } | |
eff9d7f5 | 20382 | if ${ac_cv_sizeof_long_long+:} false; then : |
3dd30495 VZ |
20383 | $as_echo_n "(cached) " >&6 |
20384 | else | |
20385 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
4db03d26 | 20386 | |
3dd30495 VZ |
20387 | else |
20388 | if test "$ac_cv_type_long_long" = yes; then | |
20389 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20390 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20391 | as_fn_error 77 "cannot compute sizeof (long long) | |
eff9d7f5 | 20392 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
20393 | else |
20394 | ac_cv_sizeof_long_long=0 | |
20395 | fi | |
20396 | fi | |
238ecede | 20397 | |
3dd30495 VZ |
20398 | fi |
20399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
20400 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
39b61aa3 | 20401 | |
39b61aa3 VZ |
20402 | |
20403 | ||
3dd30495 VZ |
20404 | cat >>confdefs.h <<_ACEOF |
20405 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20406 | _ACEOF | |
39b61aa3 | 20407 | |
39b61aa3 | 20408 | |
3dd30495 VZ |
20409 | ;; |
20410 | *-hp-hpux* ) | |
20411 | # The cast to long int works around a bug in the HP C Compiler | |
20412 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20413 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20414 | # This bug is HP SR number 8606223364. | |
20415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
20416 | $as_echo_n "checking size of long long... " >&6; } | |
eff9d7f5 | 20417 | if ${ac_cv_sizeof_long_long+:} false; then : |
3dd30495 | 20418 | $as_echo_n "(cached) " >&6 |
39b61aa3 | 20419 | else |
3dd30495 | 20420 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
39b61aa3 | 20421 | |
3dd30495 VZ |
20422 | else |
20423 | if test "$ac_cv_type_long_long" = yes; then | |
20424 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20425 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20426 | as_fn_error 77 "cannot compute sizeof (long long) | |
eff9d7f5 | 20427 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
20428 | else |
20429 | ac_cv_sizeof_long_long=0 | |
20430 | fi | |
39b61aa3 | 20431 | fi |
47964710 | 20432 | |
3dd30495 VZ |
20433 | fi |
20434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
20435 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
20436 | ||
20437 | ||
20438 | ||
20439 | cat >>confdefs.h <<_ACEOF | |
20440 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20441 | _ACEOF | |
20442 | ||
20443 | ||
20444 | if test "$ac_cv_sizeof_long_long" != 0; then | |
20445 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" | |
20446 | fi | |
20447 | ;; | |
20448 | * ) | |
20449 | # The cast to long int works around a bug in the HP C Compiler | |
20450 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20451 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20452 | # This bug is HP SR number 8606223364. | |
20453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
20454 | $as_echo_n "checking size of long long... " >&6; } | |
eff9d7f5 | 20455 | if ${ac_cv_sizeof_long_long+:} false; then : |
3dd30495 | 20456 | $as_echo_n "(cached) " >&6 |
39b61aa3 | 20457 | else |
3dd30495 | 20458 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
39b61aa3 | 20459 | |
3dd30495 VZ |
20460 | else |
20461 | if test "$ac_cv_type_long_long" = yes; then | |
20462 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20463 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20464 | as_fn_error 77 "cannot compute sizeof (long long) | |
eff9d7f5 | 20465 | See \`config.log' for more details" "$LINENO" 5; } |
3dd30495 VZ |
20466 | else |
20467 | ac_cv_sizeof_long_long=0 | |
20468 | fi | |
39b61aa3 | 20469 | fi |
47964710 | 20470 | |
39b61aa3 | 20471 | fi |
3dd30495 VZ |
20472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
20473 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
39b61aa3 VZ |
20474 | |
20475 | ||
39b61aa3 | 20476 | |
3dd30495 VZ |
20477 | cat >>confdefs.h <<_ACEOF |
20478 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
39b61aa3 | 20479 | _ACEOF |
39b61aa3 | 20480 | |
47964710 | 20481 | |
39b61aa3 | 20482 | esac |
238ecede | 20483 | |
3dd30495 VZ |
20484 | # The cast to long int works around a bug in the HP C Compiler |
20485 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20486 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20487 | # This bug is HP SR number 8606223364. | |
20488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 | |
20489 | $as_echo_n "checking size of wchar_t... " >&6; } | |
eff9d7f5 | 20490 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
3dd30495 VZ |
20491 | $as_echo_n "(cached) " >&6 |
20492 | else | |
20493 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" " | |
83d8eb47 MW |
20494 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20495 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
3dd30495 | 20496 | # error \"fake wchar_t\" |
238ecede MW |
20497 | #endif |
20498 | #ifdef HAVE_WCHAR_H | |
20499 | # ifdef __CYGWIN__ | |
20500 | # include <stddef.h> | |
20501 | # endif | |
20502 | # include <wchar.h> | |
20503 | #endif | |
20504 | #ifdef HAVE_STDLIB_H | |
20505 | # include <stdlib.h> | |
20506 | #endif | |
20507 | #include <stdio.h> | |
20508 | ||
20509 | ||
3dd30495 | 20510 | "; then : |
238ecede | 20511 | |
a848cd7e | 20512 | else |
3dd30495 VZ |
20513 | if test "$ac_cv_type_wchar_t" = yes; then |
20514 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
20515 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
20516 | as_fn_error 77 "cannot compute sizeof (wchar_t) | |
eff9d7f5 | 20517 | See \`config.log' for more details" "$LINENO" 5; } |
47964710 VS |
20518 | else |
20519 | ac_cv_sizeof_wchar_t=0 | |
20520 | fi | |
a848cd7e | 20521 | fi |
3dd30495 | 20522 | |
238ecede | 20523 | fi |
3dd30495 VZ |
20524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
20525 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } | |
47964710 VS |
20526 | |
20527 | ||
20528 | ||
a848cd7e | 20529 | cat >>confdefs.h <<_ACEOF |
238ecede | 20530 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
20531 | _ACEOF |
20532 | ||
20533 | ||
86970434 | 20534 | if test "$ac_cv_sizeof_wchar_t" = 0; then |
3dd30495 | 20535 | as_fn_error $? "wxWidgets requires wchar_t support." "$LINENO" 5 |
47a7e797 | 20536 | fi |
3dd30495 | 20537 | $as_echo "#define wxUSE_WCHAR_T 1" >>confdefs.h |
86970434 | 20538 | |
238ecede | 20539 | |
3dd30495 VZ |
20540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 |
20541 | $as_echo_n "checking for va_copy... " >&6; } | |
eff9d7f5 | 20542 | if ${wx_cv_func_va_copy+:} false; then : |
3dd30495 | 20543 | $as_echo_n "(cached) " >&6 |
ba3d13e1 VZ |
20544 | else |
20545 | ||
47964710 | 20546 | ac_ext=cpp |
65c11337 VZ |
20547 | ac_cpp='$CXXCPP $CPPFLAGS' |
20548 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20549 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20550 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20551 | ||
3dd30495 | 20552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ea8dd857 VZ |
20553 | /* end confdefs.h. */ |
20554 | ||
3dd30495 | 20555 | |
ea8dd857 VZ |
20556 | #include <stdarg.h> |
20557 | void foo(char *f, ...) | |
20558 | { | |
20559 | va_list ap1, ap2; | |
20560 | va_start(ap1, f); | |
20561 | va_copy(ap2, ap1); | |
20562 | va_end(ap2); | |
20563 | va_end(ap1); | |
20564 | } | |
20565 | int main() | |
20566 | { | |
20567 | foo("hi", 17); | |
20568 | return 0; | |
20569 | } | |
20570 | ||
ba3d13e1 | 20571 | _ACEOF |
3dd30495 | 20572 | if ac_fn_cxx_try_link "$LINENO"; then : |
ba3d13e1 VZ |
20573 | wx_cv_func_va_copy=yes |
20574 | else | |
3dd30495 | 20575 | wx_cv_func_va_copy=no |
ba3d13e1 VZ |
20576 | |
20577 | fi | |
3dd30495 VZ |
20578 | rm -f core conftest.err conftest.$ac_objext \ |
20579 | conftest$ac_exeext conftest.$ac_ext | |
65c11337 VZ |
20580 | ac_ext=c |
20581 | ac_cpp='$CPP $CPPFLAGS' | |
20582 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20583 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20584 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20585 | ||
ba3d13e1 VZ |
20586 | |
20587 | ||
20588 | fi | |
3dd30495 VZ |
20589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_va_copy" >&5 |
20590 | $as_echo "$wx_cv_func_va_copy" >&6; } | |
ba3d13e1 VZ |
20591 | |
20592 | if test $wx_cv_func_va_copy = "yes"; then | |
3dd30495 | 20593 | $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h |
ba3d13e1 VZ |
20594 | |
20595 | else | |
3dd30495 VZ |
20596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if va_list can be copied by value" >&5 |
20597 | $as_echo_n "checking if va_list can be copied by value... " >&6; } | |
eff9d7f5 | 20598 | if ${wx_cv_type_va_list_lvalue+:} false; then : |
3dd30495 | 20599 | $as_echo_n "(cached) " >&6 |
ba3d13e1 VZ |
20600 | else |
20601 | ||
3dd30495 | 20602 | if test "$cross_compiling" = yes; then : |
ba3d13e1 VZ |
20603 | wx_cv_type_va_list_lvalue=yes |
20604 | ||
20605 | else | |
3dd30495 | 20606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ea8dd857 VZ |
20607 | /* end confdefs.h. */ |
20608 | ||
3dd30495 | 20609 | |
ea8dd857 VZ |
20610 | #include <stdarg.h> |
20611 | int foo(char *f, ...) | |
20612 | { | |
20613 | va_list ap1, ap2; | |
20614 | va_start(ap1, f); | |
20615 | ap2 = ap1; | |
20616 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
20617 | return 1; | |
20618 | va_end(ap2); | |
20619 | va_end(ap1); | |
20620 | return 0; | |
20621 | } | |
20622 | int main() | |
20623 | { | |
20624 | return foo("hi", 17); | |
20625 | } | |
20626 | ||
ba3d13e1 | 20627 | _ACEOF |
3dd30495 | 20628 | if ac_fn_c_try_run "$LINENO"; then : |
ba3d13e1 VZ |
20629 | wx_cv_type_va_list_lvalue=yes |
20630 | else | |
3dd30495 | 20631 | wx_cv_type_va_list_lvalue=no |
ba3d13e1 | 20632 | fi |
3dd30495 VZ |
20633 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
20634 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
ba3d13e1 VZ |
20635 | fi |
20636 | ||
20637 | ||
47964710 | 20638 | |
ba3d13e1 | 20639 | fi |
3dd30495 VZ |
20640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_va_list_lvalue" >&5 |
20641 | $as_echo "$wx_cv_type_va_list_lvalue" >&6; } | |
ba3d13e1 VZ |
20642 | |
20643 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
3dd30495 | 20644 | $as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h |
ba3d13e1 VZ |
20645 | |
20646 | fi | |
20647 | fi | |
20648 | ||
70c536f3 VZ |
20649 | if test "$wxUSE_VARARG_MACROS" = "yes"; then |
20650 | ||
3dd30495 VZ |
20651 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports variadic macros" >&5 |
20652 | $as_echo_n "checking whether the compiler supports variadic macros... " >&6; } | |
eff9d7f5 | 20653 | if ${wx_cv_have_variadic_macros+:} false; then : |
3dd30495 | 20654 | $as_echo_n "(cached) " >&6 |
ca766534 VS |
20655 | else |
20656 | ||
47964710 | 20657 | ac_ext=cpp |
38c6938f VZ |
20658 | ac_cpp='$CXXCPP $CPPFLAGS' |
20659 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20660 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20661 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20662 | ||
3dd30495 | 20663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ca766534 VS |
20664 | /* end confdefs.h. */ |
20665 | ||
3dd30495 | 20666 | |
ca766534 VS |
20667 | #include <stdio.h> |
20668 | #define test(fmt, ...) printf(fmt, __VA_ARGS__) | |
20669 | ||
20670 | int | |
20671 | main () | |
20672 | { | |
20673 | ||
20674 | test("%s %d %p", "test", 1, 0); | |
20675 | ||
20676 | ||
20677 | ; | |
20678 | return 0; | |
20679 | } | |
20680 | _ACEOF | |
3dd30495 | 20681 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ca766534 VS |
20682 | wx_cv_have_variadic_macros=yes |
20683 | else | |
3dd30495 | 20684 | wx_cv_have_variadic_macros=no |
ca766534 VS |
20685 | |
20686 | fi | |
47964710 | 20687 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
38c6938f VZ |
20688 | ac_ext=c |
20689 | ac_cpp='$CPP $CPPFLAGS' | |
20690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20693 | ||
ca766534 VS |
20694 | |
20695 | ||
20696 | fi | |
3dd30495 VZ |
20697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_have_variadic_macros" >&5 |
20698 | $as_echo "$wx_cv_have_variadic_macros" >&6; } | |
ca766534 VS |
20699 | |
20700 | if test $wx_cv_have_variadic_macros = "yes"; then | |
3dd30495 | 20701 | $as_echo "#define HAVE_VARIADIC_MACROS 1" >>confdefs.h |
ca766534 VS |
20702 | |
20703 | fi | |
20704 | ||
70c536f3 | 20705 | fi |
41148443 VZ |
20706 | |
20707 | LARGEFILE_CPPFLAGS= | |
47964710 | 20708 | # Check whether --enable-largefile was given. |
3dd30495 | 20709 | if test "${enable_largefile+set}" = set; then : |
47964710 VS |
20710 | enableval=$enable_largefile; |
20711 | fi | |
a848cd7e | 20712 | |
a848cd7e SC |
20713 | if test "$enable_largefile" != no; then |
20714 | wx_largefile=no | |
20715 | ||
3dd30495 VZ |
20716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
20717 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
eff9d7f5 | 20718 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
3dd30495 | 20719 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
20720 | else |
20721 | ||
3dd30495 | 20722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
20723 | /* end confdefs.h. */ |
20724 | #define _FILE_OFFSET_BITS 64 | |
20725 | #include <sys/types.h> | |
20726 | int | |
20727 | main () | |
20728 | { | |
20729 | typedef struct { | |
20730 | unsigned int field: sizeof(off_t) == 8; | |
20731 | } wxlf; | |
20732 | ||
20733 | ; | |
20734 | return 0; | |
20735 | } | |
20736 | _ACEOF | |
3dd30495 | 20737 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
20738 | ac_cv_sys_file_offset_bits=64 |
20739 | else | |
3dd30495 | 20740 | ac_cv_sys_file_offset_bits=no |
a848cd7e | 20741 | fi |
47964710 | 20742 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20743 | |
20744 | ||
20745 | fi | |
3dd30495 VZ |
20746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
20747 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
a848cd7e SC |
20748 | |
20749 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
20750 | wx_largefile=yes | |
20751 | cat >>confdefs.h <<_ACEOF | |
20752 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
20753 | _ACEOF | |
20754 | ||
20755 | fi | |
20756 | ||
20757 | if test "x$wx_largefile" != "xyes"; then | |
20758 | ||
3dd30495 VZ |
20759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
20760 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
eff9d7f5 | 20761 | if ${ac_cv_sys_large_files+:} false; then : |
3dd30495 | 20762 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
20763 | else |
20764 | ||
3dd30495 | 20765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
20766 | /* end confdefs.h. */ |
20767 | #define _LARGE_FILES 1 | |
20768 | #include <sys/types.h> | |
20769 | int | |
20770 | main () | |
20771 | { | |
20772 | typedef struct { | |
20773 | unsigned int field: sizeof(off_t) == 8; | |
20774 | } wxlf; | |
20775 | ||
20776 | ; | |
20777 | return 0; | |
20778 | } | |
20779 | _ACEOF | |
3dd30495 | 20780 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
20781 | ac_cv_sys_large_files=1 |
20782 | else | |
3dd30495 | 20783 | ac_cv_sys_large_files=no |
a848cd7e | 20784 | fi |
47964710 | 20785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20786 | |
20787 | ||
20788 | fi | |
3dd30495 VZ |
20789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
20790 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
a848cd7e SC |
20791 | |
20792 | if test "$ac_cv_sys_large_files" != no; then | |
20793 | wx_largefile=yes | |
20794 | cat >>confdefs.h <<_ACEOF | |
20795 | #define _LARGE_FILES $ac_cv_sys_large_files | |
20796 | _ACEOF | |
20797 | ||
20798 | fi | |
20799 | ||
20800 | fi | |
20801 | ||
3dd30495 VZ |
20802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if large file support is available" >&5 |
20803 | $as_echo_n "checking if large file support is available... " >&6; } | |
a848cd7e | 20804 | if test "x$wx_largefile" = "xyes"; then |
3dd30495 | 20805 | $as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h |
a848cd7e SC |
20806 | |
20807 | fi | |
3dd30495 VZ |
20808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_largefile" >&5 |
20809 | $as_echo "$wx_largefile" >&6; } | |
a848cd7e SC |
20810 | fi |
20811 | ||
41148443 VZ |
20812 | if test "$ac_cv_sys_file_offset_bits" = "64"; then |
20813 | LARGEFILE_CPPFLAGS="-D_FILE_OFFSET_BITS=64" | |
20814 | elif test "$ac_cv_sys_large_files" = 1; then | |
20815 | LARGEFILE_CPPFLAGS="-D_LARGE_FILES" | |
20816 | fi | |
5b674b9d | 20817 | |
41148443 VZ |
20818 | if test -n "$LARGEFILE_CPPFLAGS"; then |
20819 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $LARGEFILE_CPPFLAGS" | |
00421666 | 20820 | |
41148443 | 20821 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then |
3dd30495 VZ |
20822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D__STDC_EXT__ is required" >&5 |
20823 | $as_echo_n "checking if -D__STDC_EXT__ is required... " >&6; } | |
eff9d7f5 | 20824 | if ${wx_cv_STDC_EXT_required+:} false; then : |
3dd30495 | 20825 | $as_echo_n "(cached) " >&6 |
00421666 MW |
20826 | else |
20827 | ||
41148443 | 20828 | ac_ext=cpp |
9b8888f9 VZ |
20829 | ac_cpp='$CXXCPP $CPPFLAGS' |
20830 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20831 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20832 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20833 | ||
3dd30495 | 20834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
00421666 MW |
20835 | /* end confdefs.h. */ |
20836 | ||
20837 | int | |
20838 | main () | |
20839 | { | |
20840 | ||
41148443 VZ |
20841 | #ifndef __STDC_EXT__ |
20842 | choke me | |
20843 | #endif | |
00421666 MW |
20844 | |
20845 | ; | |
20846 | return 0; | |
20847 | } | |
20848 | _ACEOF | |
3dd30495 | 20849 | if ac_fn_cxx_try_compile "$LINENO"; then : |
00421666 MW |
20850 | wx_cv_STDC_EXT_required=no |
20851 | else | |
3dd30495 | 20852 | wx_cv_STDC_EXT_required=yes |
00421666 MW |
20853 | |
20854 | fi | |
47964710 | 20855 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
41148443 | 20856 | ac_ext=c |
9b8888f9 VZ |
20857 | ac_cpp='$CPP $CPPFLAGS' |
20858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20861 | ||
00421666 MW |
20862 | |
20863 | ||
20864 | fi | |
3dd30495 VZ |
20865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_STDC_EXT_required" >&5 |
20866 | $as_echo "$wx_cv_STDC_EXT_required" >&6; } | |
41148443 VZ |
20867 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then |
20868 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" | |
00421666 | 20869 | fi |
5b674b9d | 20870 | fi |
41148443 VZ |
20871 | fi |
20872 | ||
20873 | ac_ext=cpp | |
20874 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20875 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20876 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20877 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20878 | ||
20879 | old_CPPFLAGS="$CPPFLAGS" | |
20880 | CPPFLAGS="$CPPFLAGS $LARGEFILE_CPPFLAGS" | |
3dd30495 VZ |
20881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
20882 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } | |
eff9d7f5 | 20883 | if ${ac_cv_sys_largefile_source+:} false; then : |
3dd30495 | 20884 | $as_echo_n "(cached) " >&6 |
5294a27e VZ |
20885 | else |
20886 | while :; do | |
3dd30495 | 20887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5294a27e | 20888 | /* end confdefs.h. */ |
b550ad2a VZ |
20889 | #include <sys/types.h> /* for off_t */ |
20890 | #include <stdio.h> | |
5294a27e VZ |
20891 | int |
20892 | main () | |
20893 | { | |
b550ad2a VZ |
20894 | int (*fp) (FILE *, off_t, int) = fseeko; |
20895 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
5294a27e VZ |
20896 | ; |
20897 | return 0; | |
20898 | } | |
20899 | _ACEOF | |
3dd30495 | 20900 | if ac_fn_cxx_try_link "$LINENO"; then : |
47964710 | 20901 | ac_cv_sys_largefile_source=no; break |
5294a27e | 20902 | fi |
3dd30495 VZ |
20903 | rm -f core conftest.err conftest.$ac_objext \ |
20904 | conftest$ac_exeext conftest.$ac_ext | |
20905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5294a27e VZ |
20906 | /* end confdefs.h. */ |
20907 | #define _LARGEFILE_SOURCE 1 | |
b550ad2a VZ |
20908 | #include <sys/types.h> /* for off_t */ |
20909 | #include <stdio.h> | |
5294a27e VZ |
20910 | int |
20911 | main () | |
20912 | { | |
b550ad2a VZ |
20913 | int (*fp) (FILE *, off_t, int) = fseeko; |
20914 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); | |
5294a27e VZ |
20915 | ; |
20916 | return 0; | |
20917 | } | |
20918 | _ACEOF | |
3dd30495 | 20919 | if ac_fn_cxx_try_link "$LINENO"; then : |
5294a27e | 20920 | ac_cv_sys_largefile_source=1; break |
5294a27e | 20921 | fi |
3dd30495 VZ |
20922 | rm -f core conftest.err conftest.$ac_objext \ |
20923 | conftest$ac_exeext conftest.$ac_ext | |
47964710 | 20924 | ac_cv_sys_largefile_source=unknown |
5294a27e VZ |
20925 | break |
20926 | done | |
20927 | fi | |
3dd30495 VZ |
20928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
20929 | $as_echo "$ac_cv_sys_largefile_source" >&6; } | |
47964710 VS |
20930 | case $ac_cv_sys_largefile_source in #( |
20931 | no | unknown) ;; | |
20932 | *) | |
5294a27e VZ |
20933 | cat >>confdefs.h <<_ACEOF |
20934 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
20935 | _ACEOF | |
47964710 VS |
20936 | ;; |
20937 | esac | |
3dd30495 | 20938 | rm -rf conftest* |
5294a27e VZ |
20939 | |
20940 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
20941 | # in glibc 2.1.3, but that breaks too many other things. | |
20942 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
47964710 | 20943 | if test $ac_cv_sys_largefile_source != unknown; then |
5294a27e | 20944 | |
3dd30495 | 20945 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
5294a27e VZ |
20946 | |
20947 | fi | |
20948 | ||
41148443 VZ |
20949 | CPPFLAGS="$old_CPPFLAGS" |
20950 | ac_ext=c | |
20951 | ac_cpp='$CPP $CPPFLAGS' | |
20952 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20953 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20954 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20955 | ||
20956 | if test "$ac_cv_sys_largefile_source" != no; then | |
20957 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
20958 | fi |
20959 | ||
3dd30495 VZ |
20960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
20961 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
eff9d7f5 | 20962 | if ${ac_cv_c_bigendian+:} false; then : |
3dd30495 | 20963 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
20964 | else |
20965 | ac_cv_c_bigendian=unknown | |
20966 | # See if sys/param.h defines the BYTE_ORDER macro. | |
3dd30495 | 20967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
20968 | /* end confdefs.h. */ |
20969 | #include <sys/types.h> | |
20970 | #include <sys/param.h> | |
20971 | int | |
20972 | main () | |
20973 | { | |
20974 | ||
20975 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
20976 | bogus endian macros | |
20977 | #endif | |
20978 | ; | |
20979 | return 0; | |
20980 | } | |
20981 | _ACEOF | |
3dd30495 | 20982 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e | 20983 | # It does; now see whether it defined to BIG_ENDIAN or not. |
3dd30495 | 20984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
20985 | /* end confdefs.h. */ |
20986 | #include <sys/types.h> | |
20987 | #include <sys/param.h> | |
20988 | int | |
20989 | main () | |
20990 | { | |
20991 | ||
20992 | #if BYTE_ORDER != BIG_ENDIAN | |
20993 | not big endian | |
20994 | #endif | |
20995 | ; | |
20996 | return 0; | |
20997 | } | |
20998 | _ACEOF | |
3dd30495 | 20999 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
21000 | ac_cv_c_bigendian=yes |
21001 | else | |
3dd30495 | 21002 | ac_cv_c_bigendian=no |
a848cd7e | 21003 | fi |
47964710 | 21004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21005 | fi |
47964710 | 21006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21007 | if test $ac_cv_c_bigendian = unknown; then |
3dd30495 | 21008 | if test "$cross_compiling" = yes; then : |
a848cd7e SC |
21009 | ac_cv_c_bigendian=unknown |
21010 | else | |
3dd30495 | 21011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
21012 | /* end confdefs.h. */ |
21013 | main () { | |
21014 | /* Are we little or big endian? From Harbison&Steele. */ | |
21015 | union | |
21016 | { | |
21017 | long l; | |
21018 | char c[sizeof (long)]; | |
21019 | } u; | |
21020 | u.l = 1; | |
21021 | exit (u.c[sizeof (long) - 1] == 1); | |
21022 | } | |
21023 | _ACEOF | |
3dd30495 | 21024 | if ac_fn_c_try_run "$LINENO"; then : |
a848cd7e SC |
21025 | ac_cv_c_bigendian=no |
21026 | else | |
3dd30495 | 21027 | ac_cv_c_bigendian=yes |
a848cd7e | 21028 | fi |
3dd30495 VZ |
21029 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
21030 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a848cd7e | 21031 | fi |
47964710 | 21032 | |
a848cd7e SC |
21033 | fi |
21034 | fi | |
3dd30495 VZ |
21035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
21036 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
a848cd7e | 21037 | if test $ac_cv_c_bigendian = unknown; then |
3dd30495 VZ |
21038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5 |
21039 | $as_echo "$as_me: WARNING: Assuming little-endian target machine - this may be overridden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;} | |
a848cd7e SC |
21040 | fi |
21041 | if test $ac_cv_c_bigendian = yes; then | |
3dd30495 | 21042 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
a848cd7e SC |
21043 | |
21044 | fi | |
21045 | ||
21046 | ||
a848cd7e SC |
21047 | |
21048 | ||
47964710 | 21049 | ac_ext=cpp |
a848cd7e SC |
21050 | ac_cpp='$CXXCPP $CPPFLAGS' |
21051 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21052 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21053 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21054 | ||
21055 | ||
3dd30495 VZ |
21056 | for ac_header in iostream |
21057 | do : | |
21058 | ac_fn_cxx_check_header_compile "$LINENO" "iostream" "ac_cv_header_iostream" " | |
21059 | " | |
eff9d7f5 | 21060 | if test "x$ac_cv_header_iostream" = xyes; then : |
1f7e12cc | 21061 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 21062 | #define HAVE_IOSTREAM 1 |
1f7e12cc | 21063 | _ACEOF |
7fd3acaf | 21064 | |
1f7e12cc DE |
21065 | fi |
21066 | ||
21067 | done | |
fd5199d6 VZ |
21068 | |
21069 | ||
21070 | if test "$ac_cv_header_iostream" = "yes" ; then | |
21071 | : | |
21072 | else | |
3dd30495 | 21073 | $as_echo "#define wxUSE_IOSTREAMH 1" >>confdefs.h |
fd5199d6 VZ |
21074 | |
21075 | fi | |
21076 | ||
21077 | ac_ext=c | |
21078 | ac_cpp='$CPP $CPPFLAGS' | |
21079 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21080 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21081 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21082 | ||
21083 | ||
21084 | ||
21085 | ||
3dd30495 VZ |
21086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C++ compiler supports the explicit keyword" >&5 |
21087 | $as_echo_n "checking if C++ compiler supports the explicit keyword... " >&6; } | |
eff9d7f5 | 21088 | if ${wx_cv_explicit+:} false; then : |
3dd30495 | 21089 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
21090 | else |
21091 | ||
21092 | ||
47964710 | 21093 | ac_ext=cpp |
a848cd7e SC |
21094 | ac_cpp='$CXXCPP $CPPFLAGS' |
21095 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21096 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21097 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21098 | ||
21099 | ||
3dd30495 | 21100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
21101 | /* end confdefs.h. */ |
21102 | ||
21103 | class Foo { public: explicit Foo(int) {} }; | |
21104 | ||
21105 | int | |
21106 | main () | |
21107 | { | |
21108 | ||
21109 | return 0; | |
21110 | ||
21111 | ; | |
21112 | return 0; | |
21113 | } | |
21114 | _ACEOF | |
3dd30495 | 21115 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e | 21116 | |
3dd30495 | 21117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
21118 | /* end confdefs.h. */ |
21119 | ||
21120 | class Foo { public: explicit Foo(int) {} }; | |
21121 | static void TakeFoo(const Foo& foo) { } | |
21122 | ||
21123 | int | |
21124 | main () | |
21125 | { | |
21126 | ||
21127 | TakeFoo(17); | |
21128 | return 0; | |
21129 | ||
21130 | ; | |
21131 | return 0; | |
21132 | } | |
21133 | _ACEOF | |
3dd30495 | 21134 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
21135 | wx_cv_explicit=no |
21136 | else | |
3dd30495 | 21137 | wx_cv_explicit=yes |
a848cd7e SC |
21138 | |
21139 | fi | |
47964710 | 21140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21141 | |
21142 | else | |
3dd30495 | 21143 | wx_cv_explicit=no |
a848cd7e SC |
21144 | |
21145 | fi | |
47964710 | 21146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21147 | |
fd5199d6 VZ |
21148 | ac_ext=c |
21149 | ac_cpp='$CPP $CPPFLAGS' | |
21150 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21151 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21152 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e SC |
21153 | |
21154 | ||
21155 | fi | |
3dd30495 VZ |
21156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_explicit" >&5 |
21157 | $as_echo "$wx_cv_explicit" >&6; } | |
a848cd7e SC |
21158 | |
21159 | if test "$wx_cv_explicit" = "yes"; then | |
3dd30495 | 21160 | $as_echo "#define HAVE_EXPLICIT 1" >>confdefs.h |
a848cd7e SC |
21161 | |
21162 | fi | |
21163 | ||
21164 | ||
3c28b7cb | 21165 | if test "x$SUNCXX" = xyes; then |
eef2e91f | 21166 | CXXFLAGS="-features=tmplife $GNU_SOURCE_FLAG $CXXFLAGS" |
3c28b7cb MW |
21167 | fi |
21168 | ||
9122d155 | 21169 | if test "x$SUNCC" = xyes; then |
c92ad099 | 21170 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
21171 | fi |
21172 | ||
0ad5d837 | 21173 | if test "x$SGICC" = "xyes"; then |
3dd30495 VZ |
21174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cc version is 7.4.4 or greater" >&5 |
21175 | $as_echo_n "checking if cc version is 7.4.4 or greater... " >&6; } | |
eff9d7f5 | 21176 | if ${wx_cv_prog_sgicc744+:} false; then : |
3dd30495 | 21177 | $as_echo_n "(cached) " >&6 |
321f760b VZ |
21178 | else |
21179 | ||
3dd30495 | 21180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
321f760b VZ |
21181 | /* end confdefs.h. */ |
21182 | ||
21183 | int | |
21184 | main () | |
21185 | { | |
21186 | ||
21187 | #if _SGI_COMPILER_VERSION >= 744 | |
21188 | chock me: mipsPro is 7.4.4 or later | |
21189 | #endif | |
21190 | ||
21191 | ; | |
21192 | return 0; | |
21193 | } | |
21194 | _ACEOF | |
3dd30495 | 21195 | if ac_fn_c_try_compile "$LINENO"; then : |
321f760b VZ |
21196 | wx_cv_prog_sgicc744=no |
21197 | else | |
3dd30495 | 21198 | wx_cv_prog_sgicc744=yes |
321f760b VZ |
21199 | |
21200 | fi | |
321f760b VZ |
21201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21202 | ||
21203 | ||
21204 | fi | |
3dd30495 VZ |
21205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_prog_sgicc744" >&5 |
21206 | $as_echo "$wx_cv_prog_sgicc744" >&6; } | |
321f760b VZ |
21207 | |
21208 | if test "x$wx_cv_prog_sgicc744" = "xyes"; then | |
21209 | CFLAGS="-woff 3970 $CFLAGS" | |
21210 | fi | |
0ad5d837 VZ |
21211 | fi |
21212 | if test "x$SGICXX" = "xyes"; then | |
3dd30495 VZ |
21213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC version is 7.4.4 or greater" >&5 |
21214 | $as_echo_n "checking if CC version is 7.4.4 or greater... " >&6; } | |
eff9d7f5 | 21215 | if ${wx_cv_prog_sgicxx744+:} false; then : |
3dd30495 | 21216 | $as_echo_n "(cached) " >&6 |
321f760b VZ |
21217 | else |
21218 | ||
21219 | ac_ext=cpp | |
21220 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21221 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21222 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21223 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21224 | ||
3dd30495 | 21225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
321f760b VZ |
21226 | /* end confdefs.h. */ |
21227 | ||
21228 | int | |
21229 | main () | |
21230 | { | |
21231 | ||
21232 | #if _SGI_COMPILER_VERSION >= 744 | |
21233 | chock me: mipsPro is 7.4.4 or later | |
21234 | #endif | |
21235 | ||
21236 | ; | |
21237 | return 0; | |
21238 | } | |
21239 | _ACEOF | |
3dd30495 | 21240 | if ac_fn_cxx_try_compile "$LINENO"; then : |
321f760b VZ |
21241 | wx_cv_prog_sgicxx744=no |
21242 | else | |
3dd30495 | 21243 | wx_cv_prog_sgicxx744=yes |
321f760b VZ |
21244 | |
21245 | fi | |
321f760b VZ |
21246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21247 | ac_ext=c | |
21248 | ac_cpp='$CPP $CPPFLAGS' | |
21249 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21250 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21251 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21252 | ||
21253 | ||
21254 | ||
21255 | fi | |
3dd30495 VZ |
21256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_prog_sgicxx744" >&5 |
21257 | $as_echo "$wx_cv_prog_sgicxx744" >&6; } | |
321f760b VZ |
21258 | |
21259 | if test "x$wx_cv_prog_sgicxx744" = "xyes"; then | |
21260 | CXXFLAGS="-woff 3970 $CXXFLAGS" | |
21261 | fi | |
0ad5d837 VZ |
21262 | fi |
21263 | ||
2eef8513 | 21264 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 21265 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
21266 | fi |
21267 | if test "x$HPCXX" = "xyes"; then | |
e4513a5e | 21268 | CXXFLAGS="+W 2340,4232 $CXXFLAGS" |
2eef8513 VZ |
21269 | fi |
21270 | ||
21271 | if test "x$COMPAQCXX" = "xyes"; then | |
21272 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
21273 | fi | |
21274 | ||
47964710 | 21275 | ac_ext=cpp |
9b8888f9 VZ |
21276 | ac_cpp='$CXXCPP $CPPFLAGS' |
21277 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21278 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21279 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21280 | ||
21281 | ||
f56c22b4 | 21282 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
21283 | if test "$wxUSE_UNICODE" = "yes"; then |
21284 | std_string="std::wstring" | |
21285 | char_type="wchar_t" | |
21286 | else | |
21287 | std_string="std::string" | |
21288 | char_type="char" | |
21289 | fi | |
21290 | ||
3dd30495 VZ |
21291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $std_string in <string>" >&5 |
21292 | $as_echo_n "checking for $std_string in <string>... " >&6; } | |
eff9d7f5 | 21293 | if ${wx_cv_class_stdstring+:} false; then : |
3dd30495 | 21294 | $as_echo_n "(cached) " >&6 |
9b8888f9 VZ |
21295 | else |
21296 | ||
3dd30495 | 21297 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
21298 | /* end confdefs.h. */ |
21299 | #include <string> | |
a848cd7e SC |
21300 | int |
21301 | main () | |
21302 | { | |
f56c22b4 | 21303 | $std_string foo; |
a848cd7e SC |
21304 | ; |
21305 | return 0; | |
21306 | } | |
21307 | _ACEOF | |
3dd30495 | 21308 | if ac_fn_cxx_try_compile "$LINENO"; then : |
9b8888f9 | 21309 | wx_cv_class_stdstring=yes |
a848cd7e | 21310 | else |
3dd30495 | 21311 | wx_cv_class_stdstring=no |
9b8888f9 VZ |
21312 | |
21313 | fi | |
47964710 | 21314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9b8888f9 VZ |
21315 | |
21316 | ||
21317 | fi | |
3dd30495 VZ |
21318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_class_stdstring" >&5 |
21319 | $as_echo "$wx_cv_class_stdstring" >&6; } | |
9b8888f9 VZ |
21320 | |
21321 | if test "$wx_cv_class_stdstring" = yes; then | |
21322 | if test "$wxUSE_UNICODE" = "yes"; then | |
3dd30495 | 21323 | $as_echo "#define HAVE_STD_WSTRING 1" >>confdefs.h |
9b8888f9 VZ |
21324 | |
21325 | fi | |
21326 | else | |
3dd30495 VZ |
21327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if std::basic_string<$char_type> works" >&5 |
21328 | $as_echo_n "checking if std::basic_string<$char_type> works... " >&6; } | |
eff9d7f5 | 21329 | if ${wx_cv_class_stdbasicstring+:} false; then : |
3dd30495 | 21330 | $as_echo_n "(cached) " >&6 |
9b8888f9 VZ |
21331 | else |
21332 | ||
3dd30495 | 21333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0a08f02a MB |
21334 | /* end confdefs.h. */ |
21335 | ||
9b8888f9 VZ |
21336 | #ifdef HAVE_WCHAR_H |
21337 | # ifdef __CYGWIN__ | |
21338 | # include <stddef.h> | |
21339 | # endif | |
21340 | # include <wchar.h> | |
21341 | #endif | |
21342 | #ifdef HAVE_STDLIB_H | |
21343 | # include <stdlib.h> | |
21344 | #endif | |
21345 | #include <stdio.h> | |
21346 | #include <string> | |
0a08f02a MB |
21347 | |
21348 | int | |
21349 | main () | |
21350 | { | |
f56c22b4 | 21351 | std::basic_string<$char_type> foo; |
9b8888f9 | 21352 | const $char_type* dummy = foo.c_str(); |
0a08f02a MB |
21353 | ; |
21354 | return 0; | |
21355 | } | |
21356 | _ACEOF | |
3dd30495 | 21357 | if ac_fn_cxx_try_compile "$LINENO"; then : |
9b8888f9 | 21358 | wx_cv_class_stdbasicstring=yes |
0a08f02a | 21359 | else |
3dd30495 | 21360 | wx_cv_class_stdbasicstring=no |
0a08f02a | 21361 | |
a848cd7e | 21362 | fi |
47964710 | 21363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21364 | |
9b8888f9 | 21365 | |
0a08f02a | 21366 | fi |
3dd30495 VZ |
21367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_class_stdbasicstring" >&5 |
21368 | $as_echo "$wx_cv_class_stdbasicstring" >&6; } | |
9b8888f9 VZ |
21369 | |
21370 | if test "$wx_cv_class_stdbasicstring" != yes; then | |
21371 | if test "$wxUSE_STL" = "yes"; then | |
3dd30495 | 21372 | as_fn_error $? "Can't use --enable-stl without $std_string or std::basic_string<$char_type>" "$LINENO" 5 |
105a81f3 | 21373 | elif test "$wxUSE_STD_STRING" = "yes"; then |
3dd30495 | 21374 | as_fn_error $? "Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" "$LINENO" 5 |
9b8888f9 | 21375 | else |
3dd30495 VZ |
21376 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 |
21377 | $as_echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
9b8888f9 VZ |
21378 | wxUSE_STD_STRING=no |
21379 | fi | |
21380 | fi | |
21381 | fi | |
f56c22b4 MW |
21382 | fi |
21383 | ||
21384 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
3dd30495 VZ |
21385 | ac_fn_cxx_check_type "$LINENO" "std::istream" "ac_cv_type_std__istream" "#include <iostream> |
21386 | " | |
eff9d7f5 | 21387 | if test "x$ac_cv_type_std__istream" = xyes; then : |
f56c22b4 MW |
21388 | |
21389 | cat >>confdefs.h <<_ACEOF | |
21390 | #define HAVE_STD__ISTREAM 1 | |
21391 | _ACEOF | |
21392 | ||
21393 | ||
21394 | else | |
21395 | wxUSE_STD_IOSTREAM=no | |
21396 | fi | |
3dd30495 VZ |
21397 | ac_fn_cxx_check_type "$LINENO" "std::ostream" "ac_cv_type_std__ostream" "#include <iostream> |
21398 | " | |
eff9d7f5 | 21399 | if test "x$ac_cv_type_std__ostream" = xyes; then : |
f56c22b4 MW |
21400 | |
21401 | cat >>confdefs.h <<_ACEOF | |
21402 | #define HAVE_STD__OSTREAM 1 | |
21403 | _ACEOF | |
21404 | ||
21405 | ||
21406 | else | |
21407 | wxUSE_STD_IOSTREAM=no | |
21408 | fi | |
21409 | ||
21410 | ||
21411 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
105a81f3 | 21412 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then |
3dd30495 | 21413 | as_fn_error $? "Can't use --enable-std_iostreams without std::istream and std::ostream" "$LINENO" 5 |
4b9918c5 | 21414 | else |
3dd30495 VZ |
21415 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 |
21416 | $as_echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} | |
4b9918c5 | 21417 | fi |
f56c22b4 | 21418 | fi |
0a08f02a MB |
21419 | fi |
21420 | ||
21421 | if test "$wxUSE_STL" = "yes"; then | |
3dd30495 VZ |
21422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic STL functionality" >&5 |
21423 | $as_echo_n "checking for basic STL functionality... " >&6; } | |
eff9d7f5 | 21424 | if ${wx_cv_lib_stl+:} false; then : |
3dd30495 | 21425 | $as_echo_n "(cached) " >&6 |
9b8888f9 | 21426 | else |
3dd30495 | 21427 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
21428 | /* end confdefs.h. */ |
21429 | #include <string> | |
9b8888f9 VZ |
21430 | #include <functional> |
21431 | #include <algorithm> | |
21432 | #include <vector> | |
21433 | #include <list> | |
a848cd7e SC |
21434 | int |
21435 | main () | |
21436 | { | |
0a08f02a | 21437 | std::vector<int> moo; |
9b8888f9 VZ |
21438 | std::list<int> foo; |
21439 | std::vector<int>::iterator it = | |
21440 | std::find_if(moo.begin(), moo.end(), | |
21441 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
21442 | ; |
21443 | return 0; | |
21444 | } | |
21445 | _ACEOF | |
3dd30495 | 21446 | if ac_fn_cxx_try_compile "$LINENO"; then : |
9b8888f9 | 21447 | wx_cv_lib_stl=yes |
a848cd7e | 21448 | else |
3dd30495 | 21449 | wx_cv_lib_stl=no |
9b8888f9 | 21450 | |
a848cd7e | 21451 | fi |
47964710 | 21452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21453 | |
9b8888f9 | 21454 | fi |
3dd30495 VZ |
21455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_lib_stl" >&5 |
21456 | $as_echo "$wx_cv_lib_stl" >&6; } | |
9b8888f9 VZ |
21457 | |
21458 | if test "$wx_cv_lib_stl" != yes; then | |
3dd30495 | 21459 | as_fn_error $? "Can't use --enable-stl as basic STL functionality is missing" "$LINENO" 5 |
9b8888f9 VZ |
21460 | fi |
21461 | ||
3dd30495 VZ |
21462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compliant std::string::compare" >&5 |
21463 | $as_echo_n "checking for compliant std::string::compare... " >&6; } | |
eff9d7f5 | 21464 | if ${wx_cv_func_stdstring_compare+:} false; then : |
3dd30495 | 21465 | $as_echo_n "(cached) " >&6 |
9b8888f9 | 21466 | else |
3dd30495 | 21467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
21468 | /* end confdefs.h. */ |
21469 | #include <string> | |
21470 | int | |
21471 | main () | |
21472 | { | |
21473 | std::string foo, bar; | |
9b8888f9 VZ |
21474 | foo.compare(bar); |
21475 | foo.compare(1, 1, bar); | |
21476 | foo.compare(1, 1, bar, 1, 1); | |
21477 | foo.compare(""); | |
21478 | foo.compare(1, 1, ""); | |
21479 | foo.compare(1, 1, "", 2); | |
a848cd7e SC |
21480 | ; |
21481 | return 0; | |
21482 | } | |
21483 | _ACEOF | |
3dd30495 | 21484 | if ac_fn_cxx_try_compile "$LINENO"; then : |
9b8888f9 | 21485 | wx_cv_func_stdstring_compare=yes |
a848cd7e | 21486 | else |
3dd30495 | 21487 | wx_cv_func_stdstring_compare=no |
9b8888f9 | 21488 | |
a848cd7e | 21489 | fi |
47964710 | 21490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a | 21491 | |
9b8888f9 | 21492 | fi |
3dd30495 VZ |
21493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_stdstring_compare" >&5 |
21494 | $as_echo "$wx_cv_func_stdstring_compare" >&6; } | |
9b8888f9 VZ |
21495 | |
21496 | if test "$wx_cv_func_stdstring_compare" = yes; then | |
3dd30495 | 21497 | $as_echo "#define HAVE_STD_STRING_COMPARE 1" >>confdefs.h |
9b8888f9 VZ |
21498 | |
21499 | fi | |
21500 | ||
01684023 | 21501 | if test "$wx_cv_class_gnuhashmapset" = yes; then |
3dd30495 | 21502 | $as_echo "#define HAVE_EXT_HASH_MAP 1" >>confdefs.h |
01684023 | 21503 | |
3dd30495 | 21504 | $as_echo "#define HAVE_GNU_CXX_HASH_MAP 1" >>confdefs.h |
01684023 VZ |
21505 | |
21506 | fi | |
21507 | ||
3dd30495 | 21508 | ac_fn_cxx_check_header_compile "$LINENO" "unordered_map" "ac_cv_header_unordered_map" " |
47964710 | 21509 | |
3dd30495 | 21510 | " |
eff9d7f5 | 21511 | if test "x$ac_cv_header_unordered_map" = xyes; then : |
3dd30495 VZ |
21512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unordered_map and unordered_set in std" >&5 |
21513 | $as_echo_n "checking for unordered_map and unordered_set in std... " >&6; } | |
eff9d7f5 | 21514 | if ${wx_cv_class_stdunorderedmapset+:} false; then : |
3dd30495 | 21515 | $as_echo_n "(cached) " >&6 |
9b8888f9 | 21516 | else |
3dd30495 | 21517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bdcade0a | 21518 | /* end confdefs.h. */ |
01684023 VZ |
21519 | #include <unordered_map> |
21520 | #include <unordered_set> | |
bdcade0a MB |
21521 | int |
21522 | main () | |
21523 | { | |
01684023 VZ |
21524 | std::unordered_map<double*, char*> test1; |
21525 | std::unordered_set<char*> test2; | |
bdcade0a MB |
21526 | ; |
21527 | return 0; | |
21528 | } | |
21529 | _ACEOF | |
3dd30495 | 21530 | if ac_fn_cxx_try_compile "$LINENO"; then : |
01684023 | 21531 | wx_cv_class_stdunorderedmapset=yes |
bdcade0a | 21532 | else |
3dd30495 | 21533 | wx_cv_class_stdunorderedmapset=no |
bdcade0a | 21534 | fi |
47964710 | 21535 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a | 21536 | |
9b8888f9 VZ |
21537 | |
21538 | fi | |
3dd30495 VZ |
21539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_class_stdunorderedmapset" >&5 |
21540 | $as_echo "$wx_cv_class_stdunorderedmapset" >&6; } | |
bdcade0a MB |
21541 | fi |
21542 | ||
21543 | ||
21544 | ||
01684023 | 21545 | if test "$wx_cv_class_stdunorderedmapset" = yes; then |
3dd30495 | 21546 | $as_echo "#define HAVE_STD_UNORDERED_MAP 1" >>confdefs.h |
9b8888f9 | 21547 | |
3dd30495 | 21548 | $as_echo "#define HAVE_STD_UNORDERED_SET 1" >>confdefs.h |
9b8888f9 | 21549 | |
01684023 | 21550 | else |
3dd30495 | 21551 | ac_fn_cxx_check_header_compile "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" " |
47964710 | 21552 | |
3dd30495 | 21553 | " |
eff9d7f5 | 21554 | if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : |
3dd30495 VZ |
21555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unordered_map and unordered_set in std::tr1" >&5 |
21556 | $as_echo_n "checking for unordered_map and unordered_set in std::tr1... " >&6; } | |
eff9d7f5 | 21557 | if ${wx_cv_class_tr1unorderedmapset+:} false; then : |
3dd30495 | 21558 | $as_echo_n "(cached) " >&6 |
9b8888f9 | 21559 | else |
3dd30495 | 21560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bdcade0a | 21561 | /* end confdefs.h. */ |
01684023 VZ |
21562 | #include <tr1/unordered_map> |
21563 | #include <tr1/unordered_set> | |
bdcade0a MB |
21564 | int |
21565 | main () | |
21566 | { | |
01684023 VZ |
21567 | std::tr1::unordered_map<double*, char*> test1; |
21568 | std::tr1::unordered_set<char*> test2; | |
21569 | #if defined(__GNUC__) && (__GNUC__==4) && (__GNUC_MINOR__<2) | |
21570 | #error can't use unordered_{map,set} with gcc-4.[01]: http://gcc.gnu.org/PR24389 | |
21571 | #endif | |
bdcade0a MB |
21572 | ; |
21573 | return 0; | |
21574 | } | |
21575 | _ACEOF | |
3dd30495 | 21576 | if ac_fn_cxx_try_compile "$LINENO"; then : |
01684023 | 21577 | wx_cv_class_tr1unorderedmapset=yes |
bdcade0a | 21578 | else |
3dd30495 | 21579 | wx_cv_class_tr1unorderedmapset=no |
bdcade0a | 21580 | fi |
47964710 | 21581 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a | 21582 | |
9b8888f9 | 21583 | |
bdcade0a | 21584 | fi |
3dd30495 VZ |
21585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_class_tr1unorderedmapset" >&5 |
21586 | $as_echo "$wx_cv_class_tr1unorderedmapset" >&6; } | |
9b8888f9 VZ |
21587 | fi |
21588 | ||
bdcade0a MB |
21589 | |
21590 | ||
01684023 | 21591 | if test "$wx_cv_class_tr1unorderedmapset" = yes; then |
3dd30495 | 21592 | $as_echo "#define HAVE_TR1_UNORDERED_MAP 1" >>confdefs.h |
f380544a | 21593 | |
3dd30495 | 21594 | $as_echo "#define HAVE_TR1_UNORDERED_SET 1" >>confdefs.h |
f380544a | 21595 | |
3dd30495 VZ |
21596 | else |
21597 | ac_fn_cxx_check_header_compile "$LINENO" "hash_map" "ac_cv_header_hash_map" " | |
f380544a | 21598 | |
3dd30495 | 21599 | " |
eff9d7f5 | 21600 | if test "x$ac_cv_header_hash_map" = xyes; then : |
3dd30495 VZ |
21601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::hash_map and hash_set" >&5 |
21602 | $as_echo_n "checking for std::hash_map and hash_set... " >&6; } | |
eff9d7f5 | 21603 | if ${wx_cv_class_stdhashmapset+:} false; then : |
3dd30495 | 21604 | $as_echo_n "(cached) " >&6 |
f380544a | 21605 | else |
3dd30495 | 21606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f380544a | 21607 | /* end confdefs.h. */ |
01684023 VZ |
21608 | #include <hash_map> |
21609 | #include <hash_set> | |
f380544a VZ |
21610 | int |
21611 | main () | |
21612 | { | |
01684023 VZ |
21613 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; |
21614 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
f380544a VZ |
21615 | ; |
21616 | return 0; | |
21617 | } | |
21618 | _ACEOF | |
3dd30495 | 21619 | if ac_fn_cxx_try_compile "$LINENO"; then : |
01684023 | 21620 | wx_cv_class_stdhashmapset=yes |
f380544a | 21621 | else |
3dd30495 | 21622 | wx_cv_class_stdhashmapset=no |
f380544a | 21623 | fi |
f380544a VZ |
21624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21625 | ||
21626 | ||
21627 | fi | |
3dd30495 VZ |
21628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_class_stdhashmapset" >&5 |
21629 | $as_echo "$wx_cv_class_stdhashmapset" >&6; } | |
f380544a VZ |
21630 | fi |
21631 | ||
21632 | ||
21633 | ||
01684023 | 21634 | if test "$wx_cv_class_stdhashmapset" = yes; then |
3dd30495 | 21635 | $as_echo "#define HAVE_HASH_MAP 1" >>confdefs.h |
f380544a | 21636 | |
3dd30495 | 21637 | $as_echo "#define HAVE_STD_HASH_MAP 1" >>confdefs.h |
f380544a | 21638 | |
01684023 VZ |
21639 | fi |
21640 | ||
3dd30495 | 21641 | ac_fn_cxx_check_header_compile "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" " |
f380544a | 21642 | |
3dd30495 | 21643 | " |
eff9d7f5 | 21644 | if test "x$ac_cv_header_ext_hash_map" = xyes; then : |
3dd30495 VZ |
21645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU hash_map and hash_set" >&5 |
21646 | $as_echo_n "checking for GNU hash_map and hash_set... " >&6; } | |
eff9d7f5 | 21647 | if ${wx_cv_class_gnuhashmapset+:} false; then : |
3dd30495 | 21648 | $as_echo_n "(cached) " >&6 |
f380544a | 21649 | else |
3dd30495 | 21650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f380544a | 21651 | /* end confdefs.h. */ |
01684023 VZ |
21652 | #include <ext/hash_map> |
21653 | #include <ext/hash_set> | |
f380544a VZ |
21654 | int |
21655 | main () | |
21656 | { | |
01684023 VZ |
21657 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; |
21658 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
f380544a VZ |
21659 | ; |
21660 | return 0; | |
21661 | } | |
21662 | _ACEOF | |
3dd30495 | 21663 | if ac_fn_cxx_try_compile "$LINENO"; then : |
01684023 | 21664 | wx_cv_class_gnuhashmapset=yes |
f380544a | 21665 | else |
3dd30495 | 21666 | wx_cv_class_gnuhashmapset=no |
f380544a | 21667 | fi |
f380544a VZ |
21668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21669 | ||
21670 | ||
21671 | fi | |
3dd30495 VZ |
21672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_class_gnuhashmapset" >&5 |
21673 | $as_echo "$wx_cv_class_gnuhashmapset" >&6; } | |
f380544a VZ |
21674 | fi |
21675 | ||
21676 | ||
21677 | ||
f380544a VZ |
21678 | fi |
21679 | fi | |
a848cd7e SC |
21680 | fi |
21681 | ||
0f895b0c VS |
21682 | ac_ext=cpp |
21683 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21684 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21685 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21686 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3dd30495 VZ |
21687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
21688 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
0f895b0c | 21689 | if test -z "$CXXCPP"; then |
eff9d7f5 | 21690 | if ${ac_cv_prog_CXXCPP+:} false; then : |
3dd30495 | 21691 | $as_echo_n "(cached) " >&6 |
0f895b0c VS |
21692 | else |
21693 | # Double quotes because CXXCPP needs to be expanded | |
21694 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
21695 | do | |
21696 | ac_preproc_ok=false | |
21697 | for ac_cxx_preproc_warn_flag in '' yes | |
21698 | do | |
21699 | # Use a header file that comes with gcc, so configuring glibc | |
21700 | # with a fresh cross-compiler works. | |
21701 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21702 | # <limits.h> exists even on freestanding compilers. | |
21703 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21704 | # not just through cpp. "Syntax error" is here to catch this case. | |
3dd30495 | 21705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0f895b0c VS |
21706 | /* end confdefs.h. */ |
21707 | #ifdef __STDC__ | |
21708 | # include <limits.h> | |
21709 | #else | |
21710 | # include <assert.h> | |
21711 | #endif | |
21712 | Syntax error | |
21713 | _ACEOF | |
3dd30495 | 21714 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
0f895b0c | 21715 | |
3dd30495 | 21716 | else |
0f895b0c VS |
21717 | # Broken: fails on valid input. |
21718 | continue | |
21719 | fi | |
3dd30495 | 21720 | rm -f conftest.err conftest.i conftest.$ac_ext |
0f895b0c VS |
21721 | |
21722 | # OK, works on sane cases. Now check whether nonexistent headers | |
21723 | # can be detected and how. | |
3dd30495 | 21724 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0f895b0c VS |
21725 | /* end confdefs.h. */ |
21726 | #include <ac_nonexistent.h> | |
21727 | _ACEOF | |
3dd30495 | 21728 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
0f895b0c VS |
21729 | # Broken: success on invalid input. |
21730 | continue | |
21731 | else | |
0f895b0c VS |
21732 | # Passes both tests. |
21733 | ac_preproc_ok=: | |
21734 | break | |
21735 | fi | |
3dd30495 | 21736 | rm -f conftest.err conftest.i conftest.$ac_ext |
0f895b0c VS |
21737 | |
21738 | done | |
21739 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3dd30495 VZ |
21740 | rm -f conftest.i conftest.err conftest.$ac_ext |
21741 | if $ac_preproc_ok; then : | |
0f895b0c VS |
21742 | break |
21743 | fi | |
21744 | ||
21745 | done | |
21746 | ac_cv_prog_CXXCPP=$CXXCPP | |
21747 | ||
21748 | fi | |
21749 | CXXCPP=$ac_cv_prog_CXXCPP | |
21750 | else | |
21751 | ac_cv_prog_CXXCPP=$CXXCPP | |
21752 | fi | |
3dd30495 VZ |
21753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
21754 | $as_echo "$CXXCPP" >&6; } | |
0f895b0c VS |
21755 | ac_preproc_ok=false |
21756 | for ac_cxx_preproc_warn_flag in '' yes | |
21757 | do | |
21758 | # Use a header file that comes with gcc, so configuring glibc | |
21759 | # with a fresh cross-compiler works. | |
21760 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21761 | # <limits.h> exists even on freestanding compilers. | |
21762 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21763 | # not just through cpp. "Syntax error" is here to catch this case. | |
3dd30495 | 21764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0f895b0c VS |
21765 | /* end confdefs.h. */ |
21766 | #ifdef __STDC__ | |
21767 | # include <limits.h> | |
21768 | #else | |
21769 | # include <assert.h> | |
21770 | #endif | |
21771 | Syntax error | |
21772 | _ACEOF | |
3dd30495 | 21773 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
0f895b0c | 21774 | |
3dd30495 | 21775 | else |
0f895b0c VS |
21776 | # Broken: fails on valid input. |
21777 | continue | |
21778 | fi | |
3dd30495 | 21779 | rm -f conftest.err conftest.i conftest.$ac_ext |
0f895b0c VS |
21780 | |
21781 | # OK, works on sane cases. Now check whether nonexistent headers | |
21782 | # can be detected and how. | |
3dd30495 | 21783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0f895b0c VS |
21784 | /* end confdefs.h. */ |
21785 | #include <ac_nonexistent.h> | |
21786 | _ACEOF | |
3dd30495 | 21787 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
0f895b0c VS |
21788 | # Broken: success on invalid input. |
21789 | continue | |
21790 | else | |
0f895b0c VS |
21791 | # Passes both tests. |
21792 | ac_preproc_ok=: | |
21793 | break | |
21794 | fi | |
3dd30495 | 21795 | rm -f conftest.err conftest.i conftest.$ac_ext |
0f895b0c VS |
21796 | |
21797 | done | |
21798 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3dd30495 VZ |
21799 | rm -f conftest.i conftest.err conftest.$ac_ext |
21800 | if $ac_preproc_ok; then : | |
21801 | ||
0f895b0c | 21802 | else |
3dd30495 VZ |
21803 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
21804 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21805 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
eff9d7f5 | 21806 | See \`config.log' for more details" "$LINENO" 5; } |
0f895b0c VS |
21807 | fi |
21808 | ||
21809 | ac_ext=cpp | |
21810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21814 | ||
21815 | ||
0f895b0c | 21816 | for ac_header in type_traits tr1/type_traits |
3dd30495 VZ |
21817 | do : |
21818 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21819 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
21820 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
0f895b0c | 21821 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 21822 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
0f895b0c VS |
21823 | _ACEOF |
21824 | ||
21825 | fi | |
21826 | ||
21827 | done | |
21828 | ||
21829 | ||
47964710 VS |
21830 | |
21831 | ||
21832 | if test -n "$GCC"; then | |
3dd30495 VZ |
21833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins" >&5 |
21834 | $as_echo_n "checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... " >&6; } | |
eff9d7f5 | 21835 | if ${wx_cv_cc_gcc_atomic_builtins+:} false; then : |
3dd30495 | 21836 | $as_echo_n "(cached) " >&6 |
47964710 VS |
21837 | else |
21838 | ||
3dd30495 | 21839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
47964710 VS |
21840 | /* end confdefs.h. */ |
21841 | ||
21842 | int | |
21843 | main () | |
21844 | { | |
21845 | ||
9dcff96b | 21846 | unsigned int value=0; |
9d5507f7 VS |
21847 | /* wxAtomicInc doesn't use return value here */ |
21848 | __sync_fetch_and_add(&value, 2); | |
47964710 | 21849 | __sync_sub_and_fetch(&value, 1); |
9d5507f7 VS |
21850 | /* but wxAtomicDec does, so mimic that: */ |
21851 | unsigned int r2 = __sync_sub_and_fetch(&value, 1); | |
47964710 VS |
21852 | |
21853 | ; | |
21854 | return 0; | |
21855 | } | |
21856 | _ACEOF | |
3dd30495 | 21857 | if ac_fn_cxx_try_link "$LINENO"; then : |
47964710 VS |
21858 | wx_cv_cc_gcc_atomic_builtins=yes |
21859 | else | |
3dd30495 | 21860 | wx_cv_cc_gcc_atomic_builtins=no |
47964710 | 21861 | fi |
3dd30495 VZ |
21862 | rm -f core conftest.err conftest.$ac_objext \ |
21863 | conftest$ac_exeext conftest.$ac_ext | |
47964710 VS |
21864 | |
21865 | fi | |
21866 | ||
3dd30495 VZ |
21867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_cc_gcc_atomic_builtins" >&5 |
21868 | $as_echo "$wx_cv_cc_gcc_atomic_builtins" >&6; } | |
47964710 | 21869 | if test $wx_cv_cc_gcc_atomic_builtins = yes; then |
3dd30495 | 21870 | $as_echo "#define HAVE_GCC_ATOMIC_BUILTINS 1" >>confdefs.h |
47964710 VS |
21871 | |
21872 | fi | |
21873 | fi | |
21874 | ||
21875 | ||
9b8888f9 VZ |
21876 | ac_ext=c |
21877 | ac_cpp='$CPP $CPPFLAGS' | |
21878 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21879 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21880 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21881 | ||
21882 | ||
a848cd7e SC |
21883 | |
21884 | SEARCH_INCLUDE="\ | |
21885 | /usr/local/include \ | |
235cdc6d VZ |
21886 | /usr/local/X11/include \ |
21887 | /usr/local/include/X11 \ | |
256cddd7 | 21888 | /usr/local/X11R7/include \ |
235cdc6d | 21889 | /usr/local/X11R6/include \ |
256cddd7 | 21890 | /usr/local/include/X11R7 \ |
235cdc6d | 21891 | /usr/local/include/X11R6 \ |
a848cd7e SC |
21892 | \ |
21893 | /usr/Motif-2.1/include \ | |
21894 | /usr/Motif-1.2/include \ | |
21895 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
21896 | \ |
21897 | /usr/dt/include \ | |
21898 | /usr/openwin/include \ | |
21899 | \ | |
21900 | /usr/include/Xm \ | |
21901 | \ | |
256cddd7 | 21902 | /usr/X11R7/include \ |
a848cd7e SC |
21903 | /usr/X11R6/include \ |
21904 | /usr/X11R6.4/include \ | |
a848cd7e | 21905 | \ |
256cddd7 | 21906 | /usr/include/X11R7 \ |
a848cd7e | 21907 | /usr/include/X11R6 \ |
a848cd7e SC |
21908 | \ |
21909 | /usr/X11/include \ | |
21910 | /usr/include/X11 \ | |
a848cd7e | 21911 | \ |
a848cd7e | 21912 | /usr/XFree86/include/X11 \ |
e051b34e MW |
21913 | /usr/pkg/include \ |
21914 | \ | |
235cdc6d VZ |
21915 | /usr/local/X1R5/include \ |
21916 | /usr/local/include/X11R5 \ | |
21917 | /usr/X11R5/include \ | |
21918 | /usr/include/X11R5 \ | |
21919 | \ | |
21920 | /usr/local/X11R4/include \ | |
21921 | /usr/local/include/X11R4 \ | |
21922 | /usr/X11R4/include \ | |
21923 | /usr/include/X11R4 \ | |
21924 | \ | |
a848cd7e SC |
21925 | /usr/openwin/share/include" |
21926 | ||
3dd30495 VZ |
21927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries directories" >&5 |
21928 | $as_echo_n "checking for libraries directories... " >&6; } | |
6f9cf1e6 MW |
21929 | |
21930 | case "${host}" in | |
21931 | *-*-irix6* ) | |
eff9d7f5 | 21932 | if ${wx_cv_std_libpath+:} false; then : |
3dd30495 | 21933 | $as_echo_n "(cached) " >&6 |
0ad5d837 VZ |
21934 | else |
21935 | ||
c687b303 VZ |
21936 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
21937 | for e in a so sl dylib dll.a; do | |
21938 | libc="$d/libc.$e" | |
21939 | if test -f $libc; then | |
21940 | save_LIBS="$LIBS" | |
21941 | LIBS="$libc" | |
3dd30495 | 21942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ea8dd857 | 21943 | /* end confdefs.h. */ |
3dd30495 VZ |
21944 | |
21945 | int main() { return 0; } | |
ea8dd857 | 21946 | |
0ad5d837 | 21947 | _ACEOF |
3dd30495 | 21948 | if ac_fn_c_try_link "$LINENO"; then : |
0ad5d837 | 21949 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` |
0ad5d837 | 21950 | fi |
3dd30495 VZ |
21951 | rm -f core conftest.err conftest.$ac_objext \ |
21952 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
21953 | LIBS="$save_LIBS" |
21954 | if test "x$wx_cv_std_libpath" != "x"; then | |
21955 | break 2 | |
21956 | fi | |
21957 | fi | |
21958 | done | |
21959 | done | |
0ad5d837 VZ |
21960 | |
21961 | ||
21962 | fi | |
6f9cf1e6 MW |
21963 | |
21964 | ;; | |
21965 | ||
21966 | *-*-solaris2* ) | |
21967 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
21968 | wx_cv_std_libpath="lib/64" | |
6f9cf1e6 MW |
21969 | fi |
21970 | ;; | |
21971 | ||
21972 | *-*-linux* ) | |
87d2c6f5 VZ |
21973 | if test "$ac_cv_sizeof_void_p" = 8; then |
21974 | if test -d "/usr/lib/`uname -m`-linux-gnu"; then | |
21975 | wx_cv_std_libfullpath="/usr/lib/`uname -m`-linux-gnu" | |
21976 | elif test -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
21977 | wx_cv_std_libpath="lib64" | |
21978 | fi | |
6f9cf1e6 | 21979 | else |
87d2c6f5 VZ |
21980 | case "${host}" in |
21981 | i*86-*-linux* ) | |
21982 | if test -d '/usr/lib/i386-linux-gnu'; then | |
21983 | wx_cv_std_libfullpath='/usr/lib/i386-linux-gnu' | |
21984 | fi | |
21985 | esac | |
6f9cf1e6 | 21986 | fi |
c687b303 | 21987 | |
87d2c6f5 VZ |
21988 | if test -n "$wx_cv_std_libfullpath" -a -d "/usr/lib"; then |
21989 | wx_cv_std_libfullpath="$wx_cv_std_libfullpath /usr/lib" | |
21990 | fi | |
c687b303 VZ |
21991 | ;; |
21992 | esac | |
0ad5d837 | 21993 | |
87d2c6f5 VZ |
21994 | if test -z "$wx_cv_std_libpath"; then |
21995 | wx_cv_std_libpath="lib" | |
21996 | fi | |
21997 | ||
21998 | if test -z "$wx_cv_std_libfullpath"; then | |
21999 | wx_cv_std_libfullpath="/usr/$wx_cv_std_libpath" | |
22000 | fi | |
22001 | ||
22002 | ||
3dd30495 VZ |
22003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_std_libfullpath" >&5 |
22004 | $as_echo "$wx_cv_std_libfullpath" >&6; } | |
6f9cf1e6 | 22005 | |
87d2c6f5 | 22006 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` $wx_cv_std_libfullpath" |
a848cd7e | 22007 | |
3eca31dc MW |
22008 | if test "$build" != "$host" -a "$GCC" = yes; then |
22009 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
22010 | cross_root=`dirname $cross_root` | |
22011 | cross_root=`dirname $cross_root` | |
22012 | ||
22013 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
22014 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 22015 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
22016 | |
22017 | if test -z "$PKG_CONFIG_PATH"; then | |
22018 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
22019 | export PKG_CONFIG_PATH | |
22020 | fi | |
22021 | ||
22022 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
22023 | ||
22024 | ac_find_includes= | |
00eef16d | 22025 | for ac_dir in $SEARCH_INCLUDE /usr/include |
3eca31dc MW |
22026 | do |
22027 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
22028 | ac_find_includes=$ac_dir | |
22029 | break | |
22030 | fi | |
22031 | done | |
22032 | ||
22033 | x_includes=$ac_find_includes | |
22034 | fi | |
22035 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
22036 | ||
0ad5d837 | 22037 | ac_find_libraries= |
76ff3d06 | 22038 | for ac_dir in $SEARCH_LIB |
3eca31dc MW |
22039 | do |
22040 | for ac_extension in a so sl dylib dll.a; do | |
22041 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
22042 | ac_find_libraries=$ac_dir | |
22043 | break 2 | |
22044 | fi | |
22045 | done | |
22046 | done | |
22047 | ||
22048 | x_libraries=$ac_find_libraries | |
22049 | fi | |
22050 | fi | |
22051 | fi | |
22052 | ||
a848cd7e SC |
22053 | |
22054 | cat >confcache <<\_ACEOF | |
22055 | # This file is a shell script that caches the results of configure | |
22056 | # tests run on this system so they can be shared between configure | |
22057 | # scripts and configure runs, see configure's option --config-cache. | |
22058 | # It is not useful on other systems. If it contains results you don't | |
22059 | # want to keep, you may remove or edit it. | |
22060 | # | |
22061 | # config.status only pays attention to the cache file if you give it | |
22062 | # the --recheck option to rerun configure. | |
22063 | # | |
22064 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22065 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22066 | # following values. | |
22067 | ||
22068 | _ACEOF | |
22069 | ||
22070 | # The following way of writing the cache mishandles newlines in values, | |
22071 | # but we know of no workaround that is simple, portable, and efficient. | |
47964710 | 22072 | # So, we kill variables containing newlines. |
a848cd7e SC |
22073 | # Ultrix sh set writes to stderr and can't be redirected directly, |
22074 | # and sets the high bit in the cache file unless we assign to the vars. | |
47964710 VS |
22075 | ( |
22076 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
22077 | eval ac_val=\$$ac_var | |
22078 | case $ac_val in #( | |
22079 | *${as_nl}*) | |
22080 | case $ac_var in #( | |
3dd30495 VZ |
22081 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
22082 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
47964710 VS |
22083 | esac |
22084 | case $ac_var in #( | |
22085 | _ | IFS | as_nl) ;; #( | |
3dd30495 VZ |
22086 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
22087 | *) { eval $ac_var=; unset $ac_var;} ;; | |
47964710 VS |
22088 | esac ;; |
22089 | esac | |
22090 | done | |
22091 | ||
a848cd7e | 22092 | (set) 2>&1 | |
47964710 VS |
22093 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
22094 | *${as_nl}ac_space=\ *) | |
3dd30495 VZ |
22095 | # `set' does not quote correctly, so add quotes: double-quote |
22096 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
a848cd7e | 22097 | sed -n \ |
ac1cb8d3 VS |
22098 | "s/'/'\\\\''/g; |
22099 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
47964710 | 22100 | ;; #( |
a848cd7e SC |
22101 | *) |
22102 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
47964710 | 22103 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a848cd7e | 22104 | ;; |
47964710 VS |
22105 | esac | |
22106 | sort | |
22107 | ) | | |
a848cd7e | 22108 | sed ' |
47964710 | 22109 | /^ac_cv_env_/b end |
a848cd7e | 22110 | t clear |
47964710 | 22111 | :clear |
a848cd7e SC |
22112 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
22113 | t end | |
47964710 VS |
22114 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
22115 | :end' >>confcache | |
22116 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
22117 | if test -w "$cache_file"; then | |
eff9d7f5 | 22118 | if test "x$cache_file" != "x/dev/null"; then |
3dd30495 VZ |
22119 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
22120 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
eff9d7f5 VZ |
22121 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
22122 | cat confcache >"$cache_file" | |
22123 | else | |
22124 | case $cache_file in #( | |
22125 | */* | ?:*) | |
22126 | mv -f confcache "$cache_file"$$ && | |
22127 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
22128 | *) | |
22129 | mv -f confcache "$cache_file" ;; | |
22130 | esac | |
22131 | fi | |
22132 | fi | |
a848cd7e | 22133 | else |
3dd30495 VZ |
22134 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
22135 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a848cd7e SC |
22136 | fi |
22137 | fi | |
22138 | rm -f confcache | |
22139 | ||
5d7b7554 VZ |
22140 | have_cos=0 |
22141 | have_floor=0 | |
5d7b7554 | 22142 | for ac_func in cos |
3dd30495 VZ |
22143 | do : |
22144 | ac_fn_c_check_func "$LINENO" "cos" "ac_cv_func_cos" | |
eff9d7f5 | 22145 | if test "x$ac_cv_func_cos" = xyes; then : |
7fd3acaf | 22146 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 22147 | #define HAVE_COS 1 |
7fd3acaf RD |
22148 | _ACEOF |
22149 | have_cos=1 | |
22150 | fi | |
22151 | done | |
22152 | ||
7fd3acaf | 22153 | for ac_func in floor |
3dd30495 VZ |
22154 | do : |
22155 | ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor" | |
eff9d7f5 | 22156 | if test "x$ac_cv_func_floor" = xyes; then : |
7fd3acaf | 22157 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 22158 | #define HAVE_FLOOR 1 |
7fd3acaf RD |
22159 | _ACEOF |
22160 | have_floor=1 | |
22161 | fi | |
22162 | done | |
22163 | ||
3dd30495 VZ |
22164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if floating point functions link without -lm" >&5 |
22165 | $as_echo_n "checking if floating point functions link without -lm... " >&6; } | |
7fd3acaf | 22166 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
3dd30495 VZ |
22167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
22168 | $as_echo "yes" >&6; } | |
7fd3acaf | 22169 | else |
3dd30495 VZ |
22170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22171 | $as_echo "no" >&6; } | |
7fd3acaf RD |
22172 | LIBS="$LIBS -lm" |
22173 | # use different functions to avoid configure caching | |
22174 | have_sin=0 | |
22175 | have_ceil=0 | |
3dd30495 VZ |
22176 | for ac_func in sin |
22177 | do : | |
22178 | ac_fn_c_check_func "$LINENO" "sin" "ac_cv_func_sin" | |
eff9d7f5 | 22179 | if test "x$ac_cv_func_sin" = xyes; then : |
5d7b7554 | 22180 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 22181 | #define HAVE_SIN 1 |
5d7b7554 VZ |
22182 | _ACEOF |
22183 | have_sin=1 | |
22184 | fi | |
22185 | done | |
22186 | ||
3dd30495 VZ |
22187 | for ac_func in ceil |
22188 | do : | |
22189 | ac_fn_c_check_func "$LINENO" "ceil" "ac_cv_func_ceil" | |
eff9d7f5 | 22190 | if test "x$ac_cv_func_ceil" = xyes; then : |
5d7b7554 | 22191 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 22192 | #define HAVE_CEIL 1 |
5d7b7554 VZ |
22193 | _ACEOF |
22194 | have_ceil=1 | |
22195 | fi | |
22196 | done | |
22197 | ||
3dd30495 VZ |
22198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if floating point functions link with -lm" >&5 |
22199 | $as_echo_n "checking if floating point functions link with -lm... " >&6; } | |
5d7b7554 | 22200 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
3dd30495 VZ |
22201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
22202 | $as_echo "yes" >&6; } | |
5d7b7554 | 22203 | else |
3dd30495 VZ |
22204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
22205 | $as_echo "no" >&6; } | |
5d7b7554 VZ |
22206 | # not sure we should warn the user, crash, etc. |
22207 | fi | |
22208 | fi | |
22209 | ||
47964710 | 22210 | ac_ext=cpp |
7fd3acaf RD |
22211 | ac_cpp='$CXXCPP $CPPFLAGS' |
22212 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22213 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22214 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22215 | ||
ec3edcc9 VZ |
22216 | if test "wxUSE_UNICODE" = "yes"; then |
22217 | ||
fd5199d6 VZ |
22218 | for wx_func in wcstoull |
22219 | do | |
3dd30495 VZ |
22220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
22221 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 22222 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 22223 | $as_echo_n "(cached) " >&6 |
ec3edcc9 | 22224 | else |
fd5199d6 | 22225 | |
3dd30495 | 22226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ec3edcc9 | 22227 | /* end confdefs.h. */ |
ec3edcc9 | 22228 | |
ec3edcc9 | 22229 | |
3dd30495 | 22230 | |
fd5199d6 | 22231 | $ac_includes_default |
ec3edcc9 VZ |
22232 | |
22233 | int | |
22234 | main () | |
22235 | { | |
fd5199d6 VZ |
22236 | |
22237 | #ifndef $wx_func | |
22238 | &$wx_func; | |
22239 | #endif | |
22240 | ||
22241 | ||
ec3edcc9 VZ |
22242 | ; |
22243 | return 0; | |
22244 | } | |
fd5199d6 | 22245 | |
ec3edcc9 | 22246 | _ACEOF |
3dd30495 | 22247 | if ac_fn_cxx_try_link "$LINENO"; then : |
fd5199d6 | 22248 | eval wx_cv_func_$wx_func=yes |
ec3edcc9 | 22249 | else |
3dd30495 | 22250 | eval wx_cv_func_$wx_func=no |
ec3edcc9 | 22251 | fi |
3dd30495 VZ |
22252 | rm -f core conftest.err conftest.$ac_objext \ |
22253 | conftest$ac_exeext conftest.$ac_ext | |
54429bb3 RD |
22254 | |
22255 | fi | |
3dd30495 VZ |
22256 | eval ac_res=\$wx_cv_func_$wx_func |
22257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
22258 | $as_echo "$ac_res" >&6; } | |
54429bb3 RD |
22259 | |
22260 | if eval test \$wx_cv_func_$wx_func = yes | |
22261 | then | |
22262 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 22263 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
54429bb3 RD |
22264 | _ACEOF |
22265 | ||
22266 | ||
22267 | else | |
22268 | : | |
22269 | ||
22270 | fi | |
22271 | done | |
22272 | ||
22273 | else | |
22274 | ||
22275 | for wx_func in strtoull | |
22276 | do | |
3dd30495 VZ |
22277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
22278 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 22279 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 22280 | $as_echo_n "(cached) " >&6 |
54429bb3 RD |
22281 | else |
22282 | ||
3dd30495 | 22283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54429bb3 RD |
22284 | /* end confdefs.h. */ |
22285 | ||
22286 | ||
3dd30495 | 22287 | |
54429bb3 RD |
22288 | $ac_includes_default |
22289 | ||
22290 | int | |
22291 | main () | |
22292 | { | |
22293 | ||
22294 | #ifndef $wx_func | |
22295 | &$wx_func; | |
22296 | #endif | |
22297 | ||
22298 | ||
22299 | ; | |
22300 | return 0; | |
22301 | } | |
22302 | ||
22303 | _ACEOF | |
3dd30495 | 22304 | if ac_fn_cxx_try_link "$LINENO"; then : |
54429bb3 RD |
22305 | eval wx_cv_func_$wx_func=yes |
22306 | else | |
3dd30495 VZ |
22307 | eval wx_cv_func_$wx_func=no |
22308 | fi | |
22309 | rm -f core conftest.err conftest.$ac_objext \ | |
22310 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 22311 | |
a848cd7e | 22312 | fi |
3dd30495 VZ |
22313 | eval ac_res=\$wx_cv_func_$wx_func |
22314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
22315 | $as_echo "$ac_res" >&6; } | |
22316 | ||
22317 | if eval test \$wx_cv_func_$wx_func = yes | |
22318 | then | |
22319 | cat >>confdefs.h <<_ACEOF | |
22320 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 | |
22321 | _ACEOF | |
22322 | ||
22323 | ||
22324 | else | |
22325 | : | |
22326 | ||
22327 | fi | |
22328 | done | |
47964710 | 22329 | |
a848cd7e | 22330 | fi |
3dd30495 VZ |
22331 | ac_ext=c |
22332 | ac_cpp='$CPP $CPPFLAGS' | |
22333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22336 | ||
22337 | ||
22338 | ||
22339 | ||
22340 | if test "$wxUSE_REGEX" != "no"; then | |
22341 | $as_echo "#define wxUSE_REGEX 1" >>confdefs.h | |
22342 | ||
22343 | ||
22344 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
22345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Defaulting to the builtin regex library for Unicode build." >&5 | |
22346 | $as_echo "$as_me: WARNING: Defaulting to the builtin regex library for Unicode build." >&2;} | |
22347 | wxUSE_REGEX=builtin | |
22348 | fi | |
22349 | ||
22350 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
22351 | ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" " | |
22352 | " | |
eff9d7f5 | 22353 | if test "x$ac_cv_header_regex_h" = xyes; then : |
3dd30495 VZ |
22354 | for ac_func in regcomp re_search |
22355 | do : | |
22356 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22357 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
22358 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a848cd7e | 22359 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 22360 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
22361 | _ACEOF |
22362 | ||
22363 | fi | |
22364 | done | |
22365 | ||
22366 | fi | |
22367 | ||
22368 | ||
22369 | ||
22370 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
22371 | if test "$wxUSE_REGEX" = "sys" ; then | |
3dd30495 | 22372 | as_fn_error $? "system regex library not found! Use --with-regex to use built-in version" "$LINENO" 5 |
a848cd7e | 22373 | else |
3dd30495 VZ |
22374 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system regex library not found, will use built-in instead" >&5 |
22375 | $as_echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
a848cd7e SC |
22376 | wxUSE_REGEX=builtin |
22377 | fi | |
22378 | else | |
22379 | wxUSE_REGEX=sys | |
3dd30495 | 22380 | $as_echo "#define WX_NO_REGEX_ADVANCED 1" >>confdefs.h |
a848cd7e SC |
22381 | |
22382 | fi | |
22383 | fi | |
22384 | fi | |
22385 | ||
22386 | ||
22387 | ZLIB_LINK= | |
22388 | if test "$wxUSE_ZLIB" != "no" ; then | |
3dd30495 | 22389 | $as_echo "#define wxUSE_ZLIB 1" >>confdefs.h |
a848cd7e SC |
22390 | |
22391 | ||
22392 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
22393 | if test "$USE_DARWIN" = 1; then | |
22394 | system_zlib_h_ok="yes" | |
22395 | else | |
3dd30495 VZ |
22396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib.h >= 1.1.4" >&5 |
22397 | $as_echo_n "checking for zlib.h >= 1.1.4... " >&6; } | |
eff9d7f5 | 22398 | if ${ac_cv_header_zlib_h+:} false; then : |
3dd30495 | 22399 | $as_echo_n "(cached) " >&6 |
a848cd7e | 22400 | else |
3dd30495 | 22401 | if test "$cross_compiling" = yes; then : |
a848cd7e SC |
22402 | unset ac_cv_header_zlib_h |
22403 | ||
22404 | else | |
3dd30495 | 22405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
22406 | /* end confdefs.h. */ |
22407 | ||
22408 | #include <zlib.h> | |
22409 | #include <stdio.h> | |
22410 | ||
22411 | int main() | |
22412 | { | |
22413 | FILE *f=fopen("conftestval", "w"); | |
22414 | if (!f) exit(1); | |
22415 | fprintf(f, "%s", | |
22416 | ZLIB_VERSION[0] == '1' && | |
22417 | (ZLIB_VERSION[2] > '1' || | |
22418 | (ZLIB_VERSION[2] == '1' && | |
22419 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
22420 | exit(0); | |
22421 | } | |
22422 | ||
22423 | _ACEOF | |
3dd30495 | 22424 | if ac_fn_c_try_run "$LINENO"; then : |
a848cd7e SC |
22425 | ac_cv_header_zlib_h=`cat conftestval` |
22426 | else | |
3dd30495 | 22427 | ac_cv_header_zlib_h=no |
a848cd7e | 22428 | fi |
3dd30495 VZ |
22429 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
22430 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a848cd7e | 22431 | fi |
6e7b8bcb PC |
22432 | |
22433 | ||
a848cd7e | 22434 | fi |
3dd30495 VZ |
22435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_zlib_h" >&5 |
22436 | $as_echo "$ac_cv_header_zlib_h" >&6; } | |
22437 | ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" " | |
22438 | " | |
eff9d7f5 | 22439 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
47964710 | 22440 | |
a848cd7e | 22441 | fi |
a848cd7e | 22442 | |
a848cd7e SC |
22443 | |
22444 | ||
22445 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
22446 | fi | |
22447 | ||
22448 | if test "$system_zlib_h_ok" = "yes"; then | |
3dd30495 VZ |
22449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 |
22450 | $as_echo_n "checking for deflate in -lz... " >&6; } | |
eff9d7f5 | 22451 | if ${ac_cv_lib_z_deflate+:} false; then : |
3dd30495 | 22452 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
22453 | else |
22454 | ac_check_lib_save_LIBS=$LIBS | |
22455 | LIBS="-lz $LIBS" | |
3dd30495 | 22456 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
22457 | /* end confdefs.h. */ |
22458 | ||
47964710 VS |
22459 | /* Override any GCC internal prototype to avoid an error. |
22460 | Use char because int might match the return type of a GCC | |
22461 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
22462 | #ifdef __cplusplus |
22463 | extern "C" | |
22464 | #endif | |
a848cd7e SC |
22465 | char deflate (); |
22466 | int | |
22467 | main () | |
22468 | { | |
47964710 | 22469 | return deflate (); |
a848cd7e SC |
22470 | ; |
22471 | return 0; | |
22472 | } | |
22473 | _ACEOF | |
3dd30495 | 22474 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
22475 | ac_cv_lib_z_deflate=yes |
22476 | else | |
3dd30495 | 22477 | ac_cv_lib_z_deflate=no |
a848cd7e | 22478 | fi |
3dd30495 VZ |
22479 | rm -f core conftest.err conftest.$ac_objext \ |
22480 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22481 | LIBS=$ac_check_lib_save_LIBS |
22482 | fi | |
3dd30495 VZ |
22483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 |
22484 | $as_echo "$ac_cv_lib_z_deflate" >&6; } | |
eff9d7f5 | 22485 | if test "x$ac_cv_lib_z_deflate" = xyes; then : |
a848cd7e SC |
22486 | ZLIB_LINK=" -lz" |
22487 | fi | |
22488 | ||
22489 | fi | |
22490 | ||
22491 | if test "x$ZLIB_LINK" = "x" ; then | |
22492 | if test "$wxUSE_ZLIB" = "sys" ; then | |
3dd30495 | 22493 | as_fn_error $? "zlib library not found or too old! Use --with-zlib=builtin to use built-in version" "$LINENO" 5 |
a848cd7e | 22494 | else |
3dd30495 VZ |
22495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
22496 | $as_echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
a848cd7e SC |
22497 | wxUSE_ZLIB=builtin |
22498 | fi | |
22499 | else | |
22500 | wxUSE_ZLIB=sys | |
22501 | fi | |
22502 | fi | |
22503 | fi | |
22504 | ||
22505 | ||
22506 | PNG_LINK= | |
22507 | if test "$wxUSE_LIBPNG" != "no" ; then | |
3dd30495 | 22508 | $as_echo "#define wxUSE_LIBPNG 1" >>confdefs.h |
a848cd7e SC |
22509 | |
22510 | ||
0e1f8ea4 | 22511 | if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
3dd30495 VZ |
22512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
22513 | $as_echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
a848cd7e SC |
22514 | wxUSE_LIBPNG=builtin |
22515 | fi | |
22516 | ||
0e1f8ea4 | 22517 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then |
3dd30495 VZ |
22518 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png.h > 0.90" >&5 |
22519 | $as_echo_n "checking for png.h > 0.90... " >&6; } | |
eff9d7f5 | 22520 | if ${ac_cv_header_png_h+:} false; then : |
3dd30495 | 22521 | $as_echo_n "(cached) " >&6 |
a848cd7e | 22522 | else |
3dd30495 | 22523 | if test "$cross_compiling" = yes; then : |
0e1f8ea4 | 22524 | unset ac_cv_header_png_h |
a848cd7e SC |
22525 | |
22526 | else | |
3dd30495 | 22527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
22528 | /* end confdefs.h. */ |
22529 | ||
0e1f8ea4 VZ |
22530 | #include <png.h> |
22531 | #include <stdio.h> | |
a848cd7e | 22532 | |
0e1f8ea4 VZ |
22533 | int main() |
22534 | { | |
22535 | FILE *f=fopen("conftestval", "w"); | |
22536 | if (!f) exit(1); | |
22537 | fprintf(f, "%s", | |
22538 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
22539 | exit(0); | |
22540 | } | |
a848cd7e SC |
22541 | |
22542 | _ACEOF | |
3dd30495 | 22543 | if ac_fn_c_try_run "$LINENO"; then : |
a848cd7e SC |
22544 | ac_cv_header_png_h=`cat conftestval` |
22545 | else | |
3dd30495 | 22546 | ac_cv_header_png_h=no |
a848cd7e | 22547 | fi |
3dd30495 VZ |
22548 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
22549 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a848cd7e SC |
22550 | fi |
22551 | ||
47964710 | 22552 | |
a848cd7e | 22553 | fi |
3dd30495 VZ |
22554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_png_h" >&5 |
22555 | $as_echo "$ac_cv_header_png_h" >&6; } | |
22556 | ac_fn_c_check_header_compile "$LINENO" "png.h" "ac_cv_header_png_h" " | |
22557 | " | |
eff9d7f5 | 22558 | if test "x$ac_cv_header_png_h" = xyes; then : |
47964710 | 22559 | |
a848cd7e | 22560 | fi |
a848cd7e | 22561 | |
a848cd7e SC |
22562 | |
22563 | ||
0e1f8ea4 | 22564 | if test "$ac_cv_header_png_h" = "yes"; then |
3dd30495 VZ |
22565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_sig_cmp in -lpng" >&5 |
22566 | $as_echo_n "checking for png_sig_cmp in -lpng... " >&6; } | |
eff9d7f5 | 22567 | if ${ac_cv_lib_png_png_sig_cmp+:} false; then : |
3dd30495 | 22568 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
22569 | else |
22570 | ac_check_lib_save_LIBS=$LIBS | |
22571 | LIBS="-lpng -lz -lm $LIBS" | |
3dd30495 | 22572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
22573 | /* end confdefs.h. */ |
22574 | ||
47964710 VS |
22575 | /* Override any GCC internal prototype to avoid an error. |
22576 | Use char because int might match the return type of a GCC | |
22577 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
22578 | #ifdef __cplusplus |
22579 | extern "C" | |
22580 | #endif | |
4cdbd8f3 | 22581 | char png_sig_cmp (); |
a848cd7e SC |
22582 | int |
22583 | main () | |
22584 | { | |
4cdbd8f3 | 22585 | return png_sig_cmp (); |
a848cd7e SC |
22586 | ; |
22587 | return 0; | |
22588 | } | |
22589 | _ACEOF | |
3dd30495 | 22590 | if ac_fn_c_try_link "$LINENO"; then : |
4cdbd8f3 | 22591 | ac_cv_lib_png_png_sig_cmp=yes |
a848cd7e | 22592 | else |
3dd30495 | 22593 | ac_cv_lib_png_png_sig_cmp=no |
a848cd7e | 22594 | fi |
3dd30495 VZ |
22595 | rm -f core conftest.err conftest.$ac_objext \ |
22596 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22597 | LIBS=$ac_check_lib_save_LIBS |
22598 | fi | |
3dd30495 VZ |
22599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_sig_cmp" >&5 |
22600 | $as_echo "$ac_cv_lib_png_png_sig_cmp" >&6; } | |
eff9d7f5 | 22601 | if test "x$ac_cv_lib_png_png_sig_cmp" = xyes; then : |
a848cd7e SC |
22602 | PNG_LINK=" -lpng -lz" |
22603 | fi | |
22604 | ||
0e1f8ea4 | 22605 | fi |
a848cd7e | 22606 | |
0e1f8ea4 VZ |
22607 | if test "x$PNG_LINK" = "x" ; then |
22608 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
3dd30495 | 22609 | as_fn_error $? "system png library not found or too old! Use --with-libpng=builtin to use built-in version" "$LINENO" 5 |
a848cd7e | 22610 | else |
3dd30495 VZ |
22611 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system png library not found or too old, will use built-in instead" >&5 |
22612 | $as_echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
0e1f8ea4 | 22613 | wxUSE_LIBPNG=builtin |
a848cd7e | 22614 | fi |
0e1f8ea4 VZ |
22615 | else |
22616 | wxUSE_LIBPNG=sys | |
a848cd7e SC |
22617 | fi |
22618 | fi | |
a848cd7e SC |
22619 | fi |
22620 | ||
22621 | ||
22622 | JPEG_LINK= | |
22623 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
3dd30495 | 22624 | $as_echo "#define wxUSE_LIBJPEG 1" >>confdefs.h |
a848cd7e SC |
22625 | |
22626 | ||
0e1f8ea4 | 22627 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then |
3dd30495 VZ |
22628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeglib.h" >&5 |
22629 | $as_echo_n "checking for jpeglib.h... " >&6; } | |
eff9d7f5 | 22630 | if ${ac_cv_header_jpeglib_h+:} false; then : |
3dd30495 | 22631 | $as_echo_n "(cached) " >&6 |
a848cd7e | 22632 | else |
3dd30495 | 22633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
22634 | /* end confdefs.h. */ |
22635 | ||
0e1f8ea4 VZ |
22636 | #undef HAVE_STDLIB_H |
22637 | #include <stdio.h> | |
22638 | #include <jpeglib.h> | |
a848cd7e SC |
22639 | |
22640 | int | |
22641 | main () | |
22642 | { | |
22643 | ||
22644 | ||
22645 | ; | |
22646 | return 0; | |
22647 | } | |
22648 | _ACEOF | |
3dd30495 | 22649 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
22650 | ac_cv_header_jpeglib_h=yes |
22651 | else | |
3dd30495 | 22652 | ac_cv_header_jpeglib_h=no |
a848cd7e SC |
22653 | |
22654 | fi | |
47964710 | 22655 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22656 | |
22657 | fi | |
22658 | ||
3dd30495 VZ |
22659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_jpeglib_h" >&5 |
22660 | $as_echo "$ac_cv_header_jpeglib_h" >&6; } | |
a848cd7e | 22661 | |
0e1f8ea4 | 22662 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
3dd30495 VZ |
22663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5 |
22664 | $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; } | |
eff9d7f5 | 22665 | if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then : |
3dd30495 | 22666 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
22667 | else |
22668 | ac_check_lib_save_LIBS=$LIBS | |
22669 | LIBS="-ljpeg $LIBS" | |
3dd30495 | 22670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
22671 | /* end confdefs.h. */ |
22672 | ||
47964710 VS |
22673 | /* Override any GCC internal prototype to avoid an error. |
22674 | Use char because int might match the return type of a GCC | |
22675 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
22676 | #ifdef __cplusplus |
22677 | extern "C" | |
22678 | #endif | |
a848cd7e SC |
22679 | char jpeg_read_header (); |
22680 | int | |
22681 | main () | |
22682 | { | |
47964710 | 22683 | return jpeg_read_header (); |
a848cd7e SC |
22684 | ; |
22685 | return 0; | |
22686 | } | |
22687 | _ACEOF | |
3dd30495 | 22688 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
22689 | ac_cv_lib_jpeg_jpeg_read_header=yes |
22690 | else | |
3dd30495 | 22691 | ac_cv_lib_jpeg_jpeg_read_header=no |
a848cd7e | 22692 | fi |
3dd30495 VZ |
22693 | rm -f core conftest.err conftest.$ac_objext \ |
22694 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22695 | LIBS=$ac_check_lib_save_LIBS |
22696 | fi | |
3dd30495 VZ |
22697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 |
22698 | $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; } | |
eff9d7f5 | 22699 | if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then : |
a848cd7e SC |
22700 | JPEG_LINK=" -ljpeg" |
22701 | fi | |
22702 | ||
0e1f8ea4 | 22703 | fi |
a848cd7e | 22704 | |
0e1f8ea4 VZ |
22705 | if test "x$JPEG_LINK" = "x" ; then |
22706 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
3dd30495 | 22707 | as_fn_error $? "system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" "$LINENO" 5 |
a848cd7e | 22708 | else |
3dd30495 VZ |
22709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system jpeg library not found, will use built-in instead" >&5 |
22710 | $as_echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
0e1f8ea4 VZ |
22711 | wxUSE_LIBJPEG=builtin |
22712 | fi | |
22713 | else | |
22714 | wxUSE_LIBJPEG=sys | |
90eaf433 | 22715 | |
0e1f8ea4 | 22716 | if test "$wxUSE_MSW" = 1; then |
3dd30495 VZ |
22717 | ac_fn_c_check_type "$LINENO" "boolean" "ac_cv_type_boolean" "#include <windows.h> |
22718 | " | |
eff9d7f5 | 22719 | if test "x$ac_cv_type_boolean" = xyes; then : |
d589327a VZ |
22720 | |
22721 | cat >>confdefs.h <<_ACEOF | |
22722 | #define HAVE_BOOLEAN 1 | |
22723 | _ACEOF | |
22724 | ||
22725 | ||
3dd30495 | 22726 | # The cast to long int works around a bug in the HP C Compiler |
47964710 VS |
22727 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
22728 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
22729 | # This bug is HP SR number 8606223364. | |
3dd30495 VZ |
22730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of boolean" >&5 |
22731 | $as_echo_n "checking size of boolean... " >&6; } | |
eff9d7f5 | 22732 | if ${ac_cv_sizeof_boolean+:} false; then : |
3dd30495 | 22733 | $as_echo_n "(cached) " >&6 |
90eaf433 | 22734 | else |
3dd30495 | 22735 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (boolean))" "ac_cv_sizeof_boolean" " |
0e1f8ea4 VZ |
22736 | #undef HAVE_BOOLEAN |
22737 | #include <stdio.h> | |
22738 | #include <jpeglib.h> | |
90eaf433 | 22739 | |
3dd30495 | 22740 | "; then : |
90eaf433 | 22741 | |
90eaf433 | 22742 | else |
3dd30495 VZ |
22743 | if test "$ac_cv_type_boolean" = yes; then |
22744 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
22745 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
22746 | as_fn_error 77 "cannot compute sizeof (boolean) | |
eff9d7f5 | 22747 | See \`config.log' for more details" "$LINENO" 5; } |
47964710 VS |
22748 | else |
22749 | ac_cv_sizeof_boolean=0 | |
22750 | fi | |
90eaf433 | 22751 | fi |
3dd30495 | 22752 | |
90eaf433 | 22753 | fi |
3dd30495 VZ |
22754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_boolean" >&5 |
22755 | $as_echo "$ac_cv_sizeof_boolean" >&6; } | |
47964710 VS |
22756 | |
22757 | ||
22758 | ||
90eaf433 MW |
22759 | cat >>confdefs.h <<_ACEOF |
22760 | #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean | |
22761 | _ACEOF | |
22762 | ||
22763 | ||
0e1f8ea4 | 22764 | cat >>confdefs.h <<_ACEOF |
90eaf433 MW |
22765 | #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean` |
22766 | _ACEOF | |
22767 | ||
22768 | ||
22769 | fi | |
22770 | ||
a848cd7e SC |
22771 | fi |
22772 | fi | |
22773 | fi | |
2956d9e1 VZ |
22774 | fi |
22775 | ||
22776 | ||
22777 | TIFF_LINK= | |
22778 | TIFF_PREREQ_LINKS=-lm | |
22779 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
3dd30495 | 22780 | $as_echo "#define wxUSE_LIBTIFF 1" >>confdefs.h |
2956d9e1 VZ |
22781 | |
22782 | ||
22783 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
22784 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
22785 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
22786 | fi | |
22787 | if test "$wxUSE_ZLIB" = "sys"; then | |
22788 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
22789 | fi | |
3dd30495 | 22790 | ac_fn_c_check_header_compile "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" " |
2956d9e1 | 22791 | |
3dd30495 | 22792 | " |
eff9d7f5 | 22793 | if test "x$ac_cv_header_tiffio_h" = xyes; then : |
2956d9e1 | 22794 | |
3dd30495 VZ |
22795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFError in -ltiff" >&5 |
22796 | $as_echo_n "checking for TIFFError in -ltiff... " >&6; } | |
eff9d7f5 | 22797 | if ${ac_cv_lib_tiff_TIFFError+:} false; then : |
3dd30495 | 22798 | $as_echo_n "(cached) " >&6 |
2956d9e1 VZ |
22799 | else |
22800 | ac_check_lib_save_LIBS=$LIBS | |
22801 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
3dd30495 | 22802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2956d9e1 VZ |
22803 | /* end confdefs.h. */ |
22804 | ||
22805 | /* Override any GCC internal prototype to avoid an error. | |
22806 | Use char because int might match the return type of a GCC | |
22807 | builtin and then its argument prototype would still apply. */ | |
22808 | #ifdef __cplusplus | |
22809 | extern "C" | |
22810 | #endif | |
22811 | char TIFFError (); | |
22812 | int | |
22813 | main () | |
22814 | { | |
22815 | return TIFFError (); | |
22816 | ; | |
22817 | return 0; | |
22818 | } | |
22819 | _ACEOF | |
3dd30495 | 22820 | if ac_fn_c_try_link "$LINENO"; then : |
2956d9e1 | 22821 | ac_cv_lib_tiff_TIFFError=yes |
bef5e9e5 | 22822 | else |
3dd30495 | 22823 | ac_cv_lib_tiff_TIFFError=no |
2956d9e1 | 22824 | fi |
3dd30495 VZ |
22825 | rm -f core conftest.err conftest.$ac_objext \ |
22826 | conftest$ac_exeext conftest.$ac_ext | |
2956d9e1 VZ |
22827 | LIBS=$ac_check_lib_save_LIBS |
22828 | fi | |
3dd30495 VZ |
22829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFError" >&5 |
22830 | $as_echo "$ac_cv_lib_tiff_TIFFError" >&6; } | |
eff9d7f5 | 22831 | if test "x$ac_cv_lib_tiff_TIFFError" = xyes; then : |
2956d9e1 VZ |
22832 | TIFF_LINK=" -ltiff" |
22833 | fi | |
22834 | ||
22835 | ||
22836 | fi | |
22837 | ||
22838 | ||
22839 | ||
22840 | if test "x$TIFF_LINK" = "x" ; then | |
22841 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
3dd30495 | 22842 | as_fn_error $? "system tiff library not found! Use --with-libtiff=builtin to use built-in version" "$LINENO" 5 |
2956d9e1 | 22843 | else |
3dd30495 VZ |
22844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system tiff library not found, will use built-in instead" >&5 |
22845 | $as_echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
2956d9e1 VZ |
22846 | wxUSE_LIBTIFF=builtin |
22847 | fi | |
22848 | else | |
22849 | wxUSE_LIBTIFF=sys | |
22850 | fi | |
22851 | fi | |
22852 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
22853 | if test "$wxUSE_LIBJPEG" = "no"; then | |
22854 | ac_configure_args="$ac_configure_args --disable-jpeg" | |
22855 | fi | |
3dd30495 VZ |
22856 | |
22857 | ||
22858 | subdirs="$subdirs src/tiff" | |
2956d9e1 | 22859 | |
a848cd7e SC |
22860 | fi |
22861 | fi | |
22862 | ||
22863 | ||
22864 | if test "$wxUSE_EXPAT" != "no"; then | |
22865 | wxUSE_XML=yes | |
3dd30495 | 22866 | $as_echo "#define wxUSE_EXPAT 1" >>confdefs.h |
a848cd7e | 22867 | |
3dd30495 | 22868 | $as_echo "#define wxUSE_XML 1" >>confdefs.h |
a848cd7e SC |
22869 | |
22870 | ||
22871 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
3dd30495 VZ |
22872 | ac_fn_c_check_header_compile "$LINENO" "expat.h" "ac_cv_header_expat_h" " |
22873 | " | |
eff9d7f5 | 22874 | if test "x$ac_cv_header_expat_h" = xyes; then : |
a848cd7e SC |
22875 | found_expat_h=1 |
22876 | fi | |
22877 | ||
22878 | ||
22879 | if test "x$found_expat_h" = "x1"; then | |
3dd30495 VZ |
22880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if expat.h is valid C++ header" >&5 |
22881 | $as_echo_n "checking if expat.h is valid C++ header... " >&6; } | |
eff9d7f5 | 22882 | if ${wx_cv_expat_is_not_broken+:} false; then : |
3dd30495 | 22883 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
22884 | else |
22885 | ||
47964710 | 22886 | ac_ext=cpp |
9b8888f9 VZ |
22887 | ac_cpp='$CXXCPP $CPPFLAGS' |
22888 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22889 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22890 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22891 | ||
3dd30495 | 22892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
22893 | /* end confdefs.h. */ |
22894 | #include <expat.h> | |
22895 | int | |
22896 | main () | |
22897 | { | |
22898 | ||
22899 | ; | |
22900 | return 0; | |
22901 | } | |
22902 | _ACEOF | |
3dd30495 | 22903 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
22904 | wx_cv_expat_is_not_broken=yes |
22905 | else | |
3dd30495 | 22906 | wx_cv_expat_is_not_broken=no |
a848cd7e SC |
22907 | |
22908 | fi | |
47964710 | 22909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9b8888f9 VZ |
22910 | ac_ext=c |
22911 | ac_cpp='$CPP $CPPFLAGS' | |
22912 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22913 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22914 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22915 | ||
a848cd7e SC |
22916 | |
22917 | ||
22918 | fi | |
3dd30495 VZ |
22919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_expat_is_not_broken" >&5 |
22920 | $as_echo "$wx_cv_expat_is_not_broken" >&6; } | |
a848cd7e | 22921 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then |
3dd30495 VZ |
22922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5 |
22923 | $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; } | |
eff9d7f5 | 22924 | if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then : |
3dd30495 | 22925 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
22926 | else |
22927 | ac_check_lib_save_LIBS=$LIBS | |
22928 | LIBS="-lexpat $LIBS" | |
3dd30495 | 22929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
22930 | /* end confdefs.h. */ |
22931 | ||
47964710 VS |
22932 | /* Override any GCC internal prototype to avoid an error. |
22933 | Use char because int might match the return type of a GCC | |
22934 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
22935 | #ifdef __cplusplus |
22936 | extern "C" | |
22937 | #endif | |
a848cd7e SC |
22938 | char XML_ParserCreate (); |
22939 | int | |
22940 | main () | |
22941 | { | |
47964710 | 22942 | return XML_ParserCreate (); |
a848cd7e SC |
22943 | ; |
22944 | return 0; | |
22945 | } | |
22946 | _ACEOF | |
3dd30495 | 22947 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
22948 | ac_cv_lib_expat_XML_ParserCreate=yes |
22949 | else | |
3dd30495 | 22950 | ac_cv_lib_expat_XML_ParserCreate=no |
a848cd7e | 22951 | fi |
3dd30495 VZ |
22952 | rm -f core conftest.err conftest.$ac_objext \ |
22953 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
22954 | LIBS=$ac_check_lib_save_LIBS |
22955 | fi | |
3dd30495 VZ |
22956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 |
22957 | $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; } | |
eff9d7f5 | 22958 | if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then : |
a848cd7e SC |
22959 | EXPAT_LINK=" -lexpat" |
22960 | fi | |
22961 | ||
22962 | fi | |
22963 | fi | |
22964 | if test "x$EXPAT_LINK" = "x" ; then | |
22965 | if test "$wxUSE_EXPAT" = "sys" ; then | |
3dd30495 | 22966 | as_fn_error $? "system expat library not found! Use --with-expat=builtin to use built-in version" "$LINENO" 5 |
a848cd7e | 22967 | else |
3dd30495 VZ |
22968 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system expat library not found, will use built-in instead" >&5 |
22969 | $as_echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
a848cd7e SC |
22970 | wxUSE_EXPAT=builtin |
22971 | fi | |
22972 | else | |
22973 | wxUSE_EXPAT=sys | |
22974 | fi | |
22975 | fi | |
22976 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
47964710 | 22977 | subdirs="$subdirs src/expat" |
a848cd7e SC |
22978 | |
22979 | fi | |
22980 | fi | |
22981 | ||
22982 | ||
22983 | ||
22984 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
3dd30495 VZ |
22985 | ac_fn_c_check_header_compile "$LINENO" "mspack.h" "ac_cv_header_mspack_h" " |
22986 | " | |
eff9d7f5 | 22987 | if test "x$ac_cv_header_mspack_h" = xyes; then : |
a848cd7e SC |
22988 | found_mspack_h=1 |
22989 | fi | |
22990 | ||
22991 | ||
22992 | if test "x$found_mspack_h" = "x1"; then | |
3dd30495 VZ |
22993 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mspack_create_chm_decompressor in -lmspack" >&5 |
22994 | $as_echo_n "checking for mspack_create_chm_decompressor in -lmspack... " >&6; } | |
eff9d7f5 | 22995 | if ${ac_cv_lib_mspack_mspack_create_chm_decompressor+:} false; then : |
3dd30495 | 22996 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
22997 | else |
22998 | ac_check_lib_save_LIBS=$LIBS | |
22999 | LIBS="-lmspack $LIBS" | |
3dd30495 | 23000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
23001 | /* end confdefs.h. */ |
23002 | ||
47964710 VS |
23003 | /* Override any GCC internal prototype to avoid an error. |
23004 | Use char because int might match the return type of a GCC | |
23005 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
23006 | #ifdef __cplusplus |
23007 | extern "C" | |
23008 | #endif | |
a848cd7e SC |
23009 | char mspack_create_chm_decompressor (); |
23010 | int | |
23011 | main () | |
23012 | { | |
47964710 | 23013 | return mspack_create_chm_decompressor (); |
a848cd7e SC |
23014 | ; |
23015 | return 0; | |
23016 | } | |
23017 | _ACEOF | |
3dd30495 | 23018 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
23019 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes |
23020 | else | |
3dd30495 | 23021 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no |
a848cd7e | 23022 | fi |
3dd30495 VZ |
23023 | rm -f core conftest.err conftest.$ac_objext \ |
23024 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23025 | LIBS=$ac_check_lib_save_LIBS |
23026 | fi | |
3dd30495 VZ |
23027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 |
23028 | $as_echo "$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; } | |
eff9d7f5 | 23029 | if test "x$ac_cv_lib_mspack_mspack_create_chm_decompressor" = xyes; then : |
a848cd7e SC |
23030 | MSPACK_LINK=" -lmspack" |
23031 | fi | |
23032 | ||
23033 | fi | |
23034 | if test "x$MSPACK_LINK" = "x" ; then | |
23035 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
23036 | fi |
23037 | fi | |
23038 | ||
23039 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
3dd30495 | 23040 | $as_echo "#define wxUSE_LIBMSPACK 1" >>confdefs.h |
a848cd7e | 23041 | |
a848cd7e SC |
23042 | fi |
23043 | ||
23044 | ||
23045 | ||
23046 | AFMINSTALL= | |
23047 | WIN32INSTALL= | |
23048 | ||
23049 | TOOLKIT= | |
23050 | TOOLKIT_INCLUDE= | |
23051 | WIDGET_SET= | |
23052 | ||
23053 | if test "$USE_WIN32" = 1 ; then | |
3dd30495 VZ |
23054 | for ac_header in w32api.h |
23055 | do : | |
23056 | ac_fn_c_check_header_compile "$LINENO" "w32api.h" "ac_cv_header_w32api_h" " | |
23057 | " | |
eff9d7f5 | 23058 | if test "x$ac_cv_header_w32api_h" = xyes; then : |
be2ad872 | 23059 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 23060 | #define HAVE_W32API_H 1 |
be2ad872 PC |
23061 | _ACEOF |
23062 | ||
23063 | fi | |
7fd3acaf | 23064 | |
be2ad872 | 23065 | done |
f321ab7f | 23066 | |
3dd30495 VZ |
23067 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" " |
23068 | " | |
eff9d7f5 | 23069 | if test "x$ac_cv_header_windows_h" = xyes; then : |
6e7b8bcb | 23070 | |
f321ab7f | 23071 | else |
f321ab7f | 23072 | |
3dd30495 | 23073 | as_fn_error $? "please set CFLAGS to contain the location of windows.h" "$LINENO" 5 |
a848cd7e SC |
23074 | |
23075 | fi | |
23076 | ||
23077 | ||
23078 | ||
78dfd1fd VZ |
23079 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -ladvapi32 -lwsock32 -lgdi32" |
23080 | case "${host}" in | |
03773e40 | 23081 | x86_64-*-mingw32* ) |
da16724e | 23082 | WINDRES_CPU_DEFINE="--define WX_CPU_AMD64" |
f380544a | 23083 | ;; |
f380544a | 23084 | esac |
a848cd7e SC |
23085 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
23086 | LIBS="$LIBS -loleacc" | |
23087 | fi | |
23088 | ||
23089 | case "${host}" in | |
23090 | *-*-cygwin* ) | |
23091 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
23092 | esac |
23093 | ||
ef5dbede | 23094 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE" |
a848cd7e SC |
23095 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
23096 | ||
ef5dbede | 23097 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__ $WINDRES_CPU_DEFINE" |
370d2fd7 | 23098 | |
a848cd7e SC |
23099 | WIN32INSTALL=win32install |
23100 | fi | |
23101 | ||
23102 | if test "$wxUSE_GUI" = "yes"; then | |
23103 | USE_GUI=1 | |
23104 | ||
23105 | GUI_TK_LIBRARY= | |
23106 | ||
9dc44eff | 23107 | WXGTK1= |
a848cd7e | 23108 | WXGTK127= |
88262190 | 23109 | WXGTK2= |
9dc44eff | 23110 | WXGTK3= |
a848cd7e SC |
23111 | WXGPE= |
23112 | ||
f10f4c87 | 23113 | if test "$wxUSE_OLD_COCOA" = 1 ; then |
207bc66c | 23114 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then |
3dd30495 VZ |
23115 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 |
23116 | $as_echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
207bc66c RN |
23117 | wxUSE_PRINTING_ARCHITECTURE=no |
23118 | fi | |
23119 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
3dd30495 VZ |
23120 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 |
23121 | $as_echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
207bc66c RN |
23122 | wxUSE_DRAG_AND_DROP=no |
23123 | fi | |
23124 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
3dd30495 VZ |
23125 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5 |
23126 | $as_echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;} | |
207bc66c RN |
23127 | wxUSE_DRAGIMAGE=no |
23128 | fi | |
23129 | fi | |
23130 | ||
a848cd7e SC |
23131 | if test "$wxUSE_MSW" = 1 ; then |
23132 | TOOLKIT=MSW | |
23133 | GUIDIST=MSW_DIST | |
23134 | ||
ceec2216 | 23135 | case "${host}" in |
a848cd7e SC |
23136 | *-*-mingw32* ) |
23137 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
23138 | esac | |
23139 | fi | |
23140 | ||
23141 | if test "$wxUSE_GTK" = 1; then | |
3dd30495 VZ |
23142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ version" >&5 |
23143 | $as_echo_n "checking for GTK+ version... " >&6; } | |
a848cd7e SC |
23144 | |
23145 | gtk_version_cached=1 | |
eff9d7f5 | 23146 | if ${wx_cv_lib_gtk+:} false; then : |
3dd30495 | 23147 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
23148 | else |
23149 | ||
23150 | gtk_version_cached=0 | |
3dd30495 VZ |
23151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5 |
23152 | $as_echo "" >&6; } | |
a848cd7e SC |
23153 | |
23154 | GTK_MODULES= | |
23155 | if test "$wxUSE_THREADS" = "yes"; then | |
23156 | GTK_MODULES=gthread | |
23157 | fi | |
23158 | ||
9dc44eff PC |
23159 | if test -z "$wxGTK_VERSION"; then |
23160 | wxGTK_VERSION=any | |
23161 | fi | |
23162 | ||
f597b41c | 23163 | wx_cv_lib_gtk= |
5001df0d MW |
23164 | if test "x$wxGTK_VERSION" != "x1" |
23165 | then | |
23166 | case "${host}" in | |
23167 | *-*-solaris2* ) | |
23168 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
43a7c679 | 23169 | enable_gtktest=no |
5001df0d MW |
23170 | fi |
23171 | esac | |
23172 | ||
9dc44eff PC |
23173 | if test "$wxGTK_VERSION" != 3; then |
23174 | # Check whether --enable-gtktest was given. | |
3dd30495 | 23175 | if test "${enable_gtktest+set}" = set; then : |
47964710 | 23176 | enableval=$enable_gtktest; |
a848cd7e SC |
23177 | else |
23178 | enable_gtktest=yes | |
47964710 VS |
23179 | fi |
23180 | ||
a848cd7e SC |
23181 | |
23182 | pkg_config_args=gtk+-2.0 | |
23183 | for module in . $GTK_MODULES | |
23184 | do | |
23185 | case "$module" in | |
23186 | gthread) | |
23187 | pkg_config_args="$pkg_config_args gthread-2.0" | |
23188 | ;; | |
23189 | esac | |
23190 | done | |
23191 | ||
23192 | no_gtk="" | |
23193 | ||
23194 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23195 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
23196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
23197 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 23198 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 23199 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
23200 | else |
23201 | case $PKG_CONFIG in | |
23202 | [\\/]* | ?:[\\/]*) | |
23203 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23204 | ;; | |
23205 | *) | |
23206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23207 | for as_dir in $PATH | |
23208 | do | |
23209 | IFS=$as_save_IFS | |
23210 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 23211 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 23212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 23213 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 23214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
23215 | break 2 |
23216 | fi | |
23217 | done | |
3dd30495 | 23218 | done |
47964710 | 23219 | IFS=$as_save_IFS |
a848cd7e SC |
23220 | |
23221 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23222 | ;; | |
23223 | esac | |
23224 | fi | |
23225 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
a848cd7e | 23226 | if test -n "$PKG_CONFIG"; then |
3dd30495 VZ |
23227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
23228 | $as_echo "$PKG_CONFIG" >&6; } | |
a848cd7e | 23229 | else |
3dd30495 VZ |
23230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23231 | $as_echo "no" >&6; } | |
a848cd7e SC |
23232 | fi |
23233 | ||
23234 | ||
47964710 | 23235 | |
a848cd7e SC |
23236 | if test x$PKG_CONFIG != xno ; then |
23237 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
23238 | : | |
23239 | else | |
c2218763 | 23240 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
23241 | no_gtk=yes |
23242 | PKG_CONFIG=no | |
23243 | fi | |
23244 | else | |
23245 | no_gtk=yes | |
23246 | fi | |
23247 | ||
4e621d24 | 23248 | min_gtk_version=2.6.0 |
3dd30495 VZ |
23249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 |
23250 | $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } | |
a848cd7e SC |
23251 | |
23252 | if test x$PKG_CONFIG != xno ; then | |
23253 | ## don't try to run the test against uninstalled libtool libs | |
23254 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
23255 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
23256 | enable_gtktest=no | |
23257 | fi | |
23258 | ||
23259 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
23260 | : | |
23261 | else | |
23262 | no_gtk=yes | |
23263 | fi | |
23264 | fi | |
23265 | ||
23266 | if test x"$no_gtk" = x ; then | |
23267 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
23268 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
23269 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23270 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23271 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23272 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23273 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
23274 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23275 | if test "x$enable_gtktest" = "xyes" ; then | |
23276 | ac_save_CFLAGS="$CFLAGS" | |
23277 | ac_save_LIBS="$LIBS" | |
23278 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23279 | LIBS="$GTK_LIBS $LIBS" | |
23280 | rm -f conf.gtktest | |
3dd30495 | 23281 | if test "$cross_compiling" = yes; then : |
a848cd7e SC |
23282 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
23283 | else | |
3dd30495 | 23284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
23285 | /* end confdefs.h. */ |
23286 | ||
23287 | #include <gtk/gtk.h> | |
23288 | #include <stdio.h> | |
23289 | #include <stdlib.h> | |
23290 | ||
23291 | int | |
23292 | main () | |
23293 | { | |
23294 | int major, minor, micro; | |
23295 | char *tmp_version; | |
23296 | ||
23297 | system ("touch conf.gtktest"); | |
23298 | ||
23299 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23300 | tmp_version = g_strdup("$min_gtk_version"); | |
23301 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23302 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23303 | exit(1); | |
23304 | } | |
23305 | ||
23306 | if ((gtk_major_version != $gtk_config_major_version) || | |
23307 | (gtk_minor_version != $gtk_config_minor_version) || | |
23308 | (gtk_micro_version != $gtk_config_micro_version)) | |
23309 | { | |
23310 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23311 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23312 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23313 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
23314 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
1eff6081 | 23315 | printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n"); |
a848cd7e SC |
23316 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
23317 | printf("*** required on your system.\n"); | |
23318 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
23319 | printf("*** to point to the correct configuration files\n"); | |
23320 | } | |
23321 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23322 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23323 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23324 | { | |
23325 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23326 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23327 | printf("*** library (version %d.%d.%d)\n", | |
23328 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23329 | } | |
23330 | else | |
23331 | { | |
23332 | if ((gtk_major_version > major) || | |
23333 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23334 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23335 | { | |
23336 | return 0; | |
23337 | } | |
23338 | else | |
23339 | { | |
23340 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23341 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23342 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23343 | major, minor, micro); | |
23344 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23345 | printf("***\n"); | |
23346 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23347 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
23348 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23349 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
23350 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
1eff6081 | 23351 | printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n"); |
a848cd7e SC |
23352 | printf("*** so that the correct libraries are found at run-time))\n"); |
23353 | } | |
23354 | } | |
23355 | return 1; | |
23356 | } | |
23357 | ||
23358 | _ACEOF | |
3dd30495 | 23359 | if ac_fn_c_try_run "$LINENO"; then : |
a848cd7e | 23360 | |
3dd30495 VZ |
23361 | else |
23362 | no_gtk=yes | |
a848cd7e | 23363 | fi |
3dd30495 VZ |
23364 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
23365 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a848cd7e | 23366 | fi |
47964710 | 23367 | |
a848cd7e SC |
23368 | CFLAGS="$ac_save_CFLAGS" |
23369 | LIBS="$ac_save_LIBS" | |
23370 | fi | |
23371 | fi | |
23372 | if test "x$no_gtk" = x ; then | |
3dd30495 VZ |
23373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
23374 | $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } | |
a848cd7e SC |
23375 | wx_cv_lib_gtk=2.0 |
23376 | else | |
3dd30495 VZ |
23377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23378 | $as_echo "no" >&6; } | |
a848cd7e SC |
23379 | if test "$PKG_CONFIG" = "no" ; then |
23380 | echo "*** A new enough version of pkg-config was not found." | |
23381 | echo "*** See http://pkgconfig.sourceforge.net" | |
23382 | else | |
23383 | if test -f conf.gtktest ; then | |
23384 | : | |
23385 | else | |
23386 | echo "*** Could not run GTK+ test program, checking why..." | |
23387 | ac_save_CFLAGS="$CFLAGS" | |
23388 | ac_save_LIBS="$LIBS" | |
23389 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23390 | LIBS="$LIBS $GTK_LIBS" | |
3dd30495 | 23391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
23392 | /* end confdefs.h. */ |
23393 | ||
23394 | #include <gtk/gtk.h> | |
23395 | #include <stdio.h> | |
23396 | ||
23397 | int | |
23398 | main () | |
23399 | { | |
23400 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23401 | ; | |
23402 | return 0; | |
23403 | } | |
23404 | _ACEOF | |
3dd30495 | 23405 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
23406 | echo "*** The test program compiled, but did not run. This usually means" |
23407 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
23408 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
23409 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23410 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23411 | echo "*** is required on your system" | |
23412 | echo "***" | |
23413 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23414 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23415 | else | |
3dd30495 | 23416 | echo "*** The test program failed to compile or link. See the file config.log for the" |
1eff6081 | 23417 | echo "*** exact error that occurred. This usually means GTK+ is incorrectly installed." |
a848cd7e | 23418 | fi |
3dd30495 VZ |
23419 | rm -f core conftest.err conftest.$ac_objext \ |
23420 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23421 | CFLAGS="$ac_save_CFLAGS" |
23422 | LIBS="$ac_save_LIBS" | |
23423 | fi | |
23424 | fi | |
23425 | GTK_CFLAGS="" | |
23426 | GTK_LIBS="" | |
23427 | : | |
23428 | fi | |
23429 | ||
23430 | ||
23431 | rm -f conf.gtktest | |
23432 | ||
9dc44eff PC |
23433 | fi |
23434 | if test -z "$wx_cv_lib_gtk"; then | |
23435 | if test "$wxGTK_VERSION" = 3 -o "$wxGTK_VERSION" = any; then | |
23436 | # Check whether --enable-gtktest was given. | |
23437 | if test "${enable_gtktest+set}" = set; then : | |
23438 | enableval=$enable_gtktest; | |
23439 | else | |
23440 | enable_gtktest=yes | |
23441 | fi | |
23442 | ||
23443 | ||
23444 | pkg_config_args=gtk+-3.0 | |
23445 | for module in . $GTK_MODULES | |
23446 | do | |
23447 | case "$module" in | |
23448 | gthread) | |
23449 | pkg_config_args="$pkg_config_args gthread-2.0" | |
23450 | ;; | |
23451 | esac | |
23452 | done | |
23453 | ||
23454 | no_gtk="" | |
23455 | ||
23456 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23457 | set dummy pkg-config; ac_word=$2 | |
23458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
23459 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 23460 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
9dc44eff PC |
23461 | $as_echo_n "(cached) " >&6 |
23462 | else | |
23463 | case $PKG_CONFIG in | |
23464 | [\\/]* | ?:[\\/]*) | |
23465 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23466 | ;; | |
23467 | *) | |
23468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23469 | for as_dir in $PATH | |
23470 | do | |
23471 | IFS=$as_save_IFS | |
23472 | test -z "$as_dir" && as_dir=. | |
23473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 23474 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9dc44eff PC |
23475 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
23476 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23477 | break 2 | |
23478 | fi | |
23479 | done | |
23480 | done | |
23481 | IFS=$as_save_IFS | |
23482 | ||
23483 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23484 | ;; | |
23485 | esac | |
23486 | fi | |
23487 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23488 | if test -n "$PKG_CONFIG"; then | |
23489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
23490 | $as_echo "$PKG_CONFIG" >&6; } | |
23491 | else | |
23492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23493 | $as_echo "no" >&6; } | |
23494 | fi | |
23495 | ||
23496 | ||
23497 | ||
23498 | if test x$PKG_CONFIG != xno ; then | |
23499 | if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then | |
23500 | : | |
23501 | else | |
23502 | echo "*** pkg-config too old; version 0.7 or better required." | |
23503 | no_gtk=yes | |
23504 | PKG_CONFIG=no | |
23505 | fi | |
23506 | else | |
23507 | no_gtk=yes | |
23508 | fi | |
23509 | ||
23510 | min_gtk_version=3.0.0 | |
23511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 | |
23512 | $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; } | |
23513 | ||
23514 | if test x$PKG_CONFIG != xno ; then | |
23515 | ## don't try to run the test against uninstalled libtool libs | |
23516 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
23517 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
23518 | enable_gtktest=no | |
23519 | fi | |
23520 | ||
23521 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
23522 | : | |
23523 | else | |
23524 | no_gtk=yes | |
23525 | fi | |
23526 | fi | |
23527 | ||
23528 | if test x"$no_gtk" = x ; then | |
23529 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
23530 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
23531 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ | |
23532 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23533 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ | |
23534 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23535 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ | |
23536 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23537 | if test "x$enable_gtktest" = "xyes" ; then | |
23538 | ac_save_CFLAGS="$CFLAGS" | |
23539 | ac_save_LIBS="$LIBS" | |
23540 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23541 | LIBS="$GTK_LIBS $LIBS" | |
23542 | rm -f conf.gtktest | |
23543 | if test "$cross_compiling" = yes; then : | |
23544 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
23545 | else | |
23546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23547 | /* end confdefs.h. */ | |
23548 | ||
23549 | #include <gtk/gtk.h> | |
23550 | #include <stdio.h> | |
23551 | #include <stdlib.h> | |
23552 | ||
23553 | int | |
23554 | main () | |
23555 | { | |
23556 | int major, minor, micro; | |
23557 | char *tmp_version; | |
23558 | ||
23559 | fclose (fopen ("conf.gtktest", "w")); | |
23560 | ||
23561 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23562 | tmp_version = g_strdup("$min_gtk_version"); | |
23563 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23564 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23565 | exit(1); | |
23566 | } | |
23567 | ||
23568 | if ((gtk_major_version != $gtk_config_major_version) || | |
23569 | (gtk_minor_version != $gtk_config_minor_version) || | |
23570 | (gtk_micro_version != $gtk_config_micro_version)) | |
23571 | { | |
23572 | printf("\n*** 'pkg-config --modversion gtk+-3.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23573 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23574 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23575 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
23576 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
23577 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
23578 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
23579 | printf("*** required on your system.\n"); | |
23580 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
23581 | printf("*** to point to the correct configuration files\n"); | |
23582 | } | |
23583 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23584 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23585 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23586 | { | |
23587 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23588 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23589 | printf("*** library (version %d.%d.%d)\n", | |
23590 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23591 | } | |
23592 | else | |
23593 | { | |
23594 | if ((gtk_major_version > major) || | |
23595 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23596 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23597 | { | |
23598 | return 0; | |
23599 | } | |
23600 | else | |
23601 | { | |
23602 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23603 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23604 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23605 | major, minor, micro); | |
23606 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23607 | printf("***\n"); | |
23608 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23609 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
23610 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23611 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
23612 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
23613 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
23614 | printf("*** so that the correct libraries are found at run-time))\n"); | |
23615 | } | |
23616 | } | |
23617 | return 1; | |
23618 | } | |
23619 | ||
23620 | _ACEOF | |
23621 | if ac_fn_c_try_run "$LINENO"; then : | |
23622 | ||
23623 | else | |
23624 | no_gtk=yes | |
23625 | fi | |
23626 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
23627 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
23628 | fi | |
23629 | ||
23630 | CFLAGS="$ac_save_CFLAGS" | |
23631 | LIBS="$ac_save_LIBS" | |
23632 | fi | |
23633 | fi | |
23634 | if test "x$no_gtk" = x ; then | |
23635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
23636 | $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } | |
23637 | wx_cv_lib_gtk=3 | |
23638 | else | |
23639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
23640 | $as_echo "no" >&6; } | |
23641 | if test "$PKG_CONFIG" = "no" ; then | |
23642 | echo "*** A new enough version of pkg-config was not found." | |
23643 | echo "*** See http://pkgconfig.sourceforge.net" | |
23644 | else | |
23645 | if test -f conf.gtktest ; then | |
23646 | : | |
23647 | else | |
23648 | echo "*** Could not run GTK+ test program, checking why..." | |
23649 | ac_save_CFLAGS="$CFLAGS" | |
23650 | ac_save_LIBS="$LIBS" | |
23651 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23652 | LIBS="$LIBS $GTK_LIBS" | |
23653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
23654 | /* end confdefs.h. */ | |
23655 | ||
23656 | #include <gtk/gtk.h> | |
23657 | #include <stdio.h> | |
23658 | ||
23659 | int | |
23660 | main () | |
23661 | { | |
23662 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23663 | ; | |
23664 | return 0; | |
23665 | } | |
23666 | _ACEOF | |
23667 | if ac_fn_c_try_link "$LINENO"; then : | |
23668 | echo "*** The test program compiled, but did not run. This usually means" | |
23669 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
23670 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
23671 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23672 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23673 | echo "*** is required on your system" | |
23674 | echo "***" | |
23675 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23676 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23677 | else | |
23678 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
23679 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
23680 | fi | |
23681 | rm -f core conftest.err conftest.$ac_objext \ | |
23682 | conftest$ac_exeext conftest.$ac_ext | |
23683 | CFLAGS="$ac_save_CFLAGS" | |
23684 | LIBS="$ac_save_LIBS" | |
23685 | fi | |
23686 | fi | |
23687 | GTK_CFLAGS="" | |
23688 | GTK_LIBS="" | |
23689 | : | |
23690 | fi | |
23691 | ||
23692 | ||
23693 | rm -f conf.gtktest | |
23694 | ||
23695 | fi | |
23696 | fi | |
f597b41c MW |
23697 | fi |
23698 | ||
f34ca037 MW |
23699 | if test -z "$wx_cv_lib_gtk"; then |
23700 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e | 23701 | |
47964710 | 23702 | # Check whether --with-gtk-prefix was given. |
3dd30495 | 23703 | if test "${with_gtk_prefix+set}" = set; then : |
47964710 | 23704 | withval=$with_gtk_prefix; gtk_config_prefix="$withval" |
a848cd7e SC |
23705 | else |
23706 | gtk_config_prefix="" | |
47964710 | 23707 | fi |
84ebfcbd | 23708 | |
47964710 VS |
23709 | |
23710 | # Check whether --with-gtk-exec-prefix was given. | |
3dd30495 | 23711 | if test "${with_gtk_exec_prefix+set}" = set; then : |
47964710 | 23712 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" |
a848cd7e SC |
23713 | else |
23714 | gtk_config_exec_prefix="" | |
47964710 | 23715 | fi |
bd8a7646 | 23716 | |
47964710 | 23717 | # Check whether --enable-gtktest was given. |
3dd30495 | 23718 | if test "${enable_gtktest+set}" = set; then : |
47964710 | 23719 | enableval=$enable_gtktest; |
a848cd7e SC |
23720 | else |
23721 | enable_gtktest=yes | |
47964710 VS |
23722 | fi |
23723 | ||
a848cd7e SC |
23724 | |
23725 | for module in . $GTK_MODULES | |
23726 | do | |
23727 | case "$module" in | |
23728 | gthread) | |
23729 | gtk_config_args="$gtk_config_args gthread" | |
23730 | ;; | |
23731 | esac | |
23732 | done | |
23733 | ||
23734 | if test x$gtk_config_exec_prefix != x ; then | |
23735 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
23736 | if test x${GTK_CONFIG+set} != xset ; then | |
23737 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
23738 | fi | |
23739 | fi | |
23740 | if test x$gtk_config_prefix != x ; then | |
23741 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
23742 | if test x${GTK_CONFIG+set} != xset ; then | |
23743 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
23744 | fi | |
23745 | fi | |
23746 | ||
23747 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
23748 | set dummy gtk-config; ac_word=$2 | |
3dd30495 VZ |
23749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
23750 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 23751 | if ${ac_cv_path_GTK_CONFIG+:} false; then : |
3dd30495 | 23752 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
23753 | else |
23754 | case $GTK_CONFIG in | |
23755 | [\\/]* | ?:[\\/]*) | |
23756 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
23757 | ;; | |
23758 | *) | |
23759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23760 | for as_dir in $PATH | |
23761 | do | |
23762 | IFS=$as_save_IFS | |
23763 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 23764 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 23765 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 23766 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 23767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
23768 | break 2 |
23769 | fi | |
23770 | done | |
3dd30495 | 23771 | done |
47964710 | 23772 | IFS=$as_save_IFS |
a848cd7e SC |
23773 | |
23774 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
23775 | ;; | |
23776 | esac | |
23777 | fi | |
23778 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
a848cd7e | 23779 | if test -n "$GTK_CONFIG"; then |
3dd30495 VZ |
23780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5 |
23781 | $as_echo "$GTK_CONFIG" >&6; } | |
a848cd7e | 23782 | else |
3dd30495 VZ |
23783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23784 | $as_echo "no" >&6; } | |
a848cd7e SC |
23785 | fi |
23786 | ||
47964710 | 23787 | |
a848cd7e | 23788 | min_gtk_version=1.2.7 |
3dd30495 VZ |
23789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 |
23790 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } | |
a848cd7e SC |
23791 | no_gtk="" |
23792 | if test "$GTK_CONFIG" = "no" ; then | |
23793 | no_gtk=yes | |
23794 | else | |
23795 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
23796 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
23797 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23798 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
23799 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23800 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
23801 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
23802 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
23803 | if test "x$enable_gtktest" = "xyes" ; then | |
23804 | ac_save_CFLAGS="$CFLAGS" | |
23805 | ac_save_LIBS="$LIBS" | |
23806 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23807 | LIBS="$GTK_LIBS $LIBS" | |
23808 | rm -f conf.gtktest | |
3dd30495 | 23809 | if test "$cross_compiling" = yes; then : |
a848cd7e SC |
23810 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
23811 | else | |
3dd30495 | 23812 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
23813 | /* end confdefs.h. */ |
23814 | ||
23815 | #include <gtk/gtk.h> | |
23816 | #include <stdio.h> | |
23817 | #include <stdlib.h> | |
23818 | ||
23819 | int | |
23820 | main () | |
23821 | { | |
23822 | int major, minor, micro; | |
23823 | char *tmp_version; | |
23824 | ||
23825 | system ("touch conf.gtktest"); | |
23826 | ||
23827 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
23828 | tmp_version = g_strdup("$min_gtk_version"); | |
23829 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
23830 | printf("%s, bad version string\n", "$min_gtk_version"); | |
23831 | exit(1); | |
23832 | } | |
23833 | ||
23834 | if ((gtk_major_version != $gtk_config_major_version) || | |
23835 | (gtk_minor_version != $gtk_config_minor_version) || | |
23836 | (gtk_micro_version != $gtk_config_micro_version)) | |
23837 | { | |
23838 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
23839 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
23840 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23841 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
23842 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
1eff6081 | 23843 | printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n"); |
a848cd7e SC |
23844 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
23845 | printf("*** required on your system.\n"); | |
23846 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
23847 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
23848 | printf("*** before re-running configure\n"); | |
23849 | } | |
23850 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
23851 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
23852 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
23853 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
23854 | { | |
23855 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
23856 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
23857 | printf("*** library (version %d.%d.%d)\n", | |
23858 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23859 | } | |
23860 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
23861 | else | |
23862 | { | |
23863 | if ((gtk_major_version > major) || | |
23864 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
23865 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
23866 | { | |
23867 | return 0; | |
23868 | } | |
23869 | else | |
23870 | { | |
23871 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
23872 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
23873 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
23874 | major, minor, micro); | |
23875 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
23876 | printf("***\n"); | |
23877 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
23878 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
23879 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
23880 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
23881 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
1eff6081 | 23882 | printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n"); |
a848cd7e SC |
23883 | printf("*** so that the correct libraries are found at run-time))\n"); |
23884 | } | |
23885 | } | |
23886 | return 1; | |
23887 | } | |
23888 | ||
23889 | _ACEOF | |
3dd30495 | 23890 | if ac_fn_c_try_run "$LINENO"; then : |
a848cd7e | 23891 | |
3dd30495 VZ |
23892 | else |
23893 | no_gtk=yes | |
a848cd7e | 23894 | fi |
3dd30495 VZ |
23895 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
23896 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a848cd7e | 23897 | fi |
47964710 | 23898 | |
a848cd7e SC |
23899 | CFLAGS="$ac_save_CFLAGS" |
23900 | LIBS="$ac_save_LIBS" | |
23901 | fi | |
23902 | fi | |
23903 | if test "x$no_gtk" = x ; then | |
3dd30495 VZ |
23904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
23905 | $as_echo "yes" >&6; } | |
a848cd7e SC |
23906 | wx_cv_lib_gtk=1.2.7 |
23907 | else | |
3dd30495 VZ |
23908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
23909 | $as_echo "no" >&6; } | |
a848cd7e SC |
23910 | if test "$GTK_CONFIG" = "no" ; then |
23911 | echo "*** The gtk-config script installed by GTK could not be found" | |
23912 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
23913 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
23914 | echo "*** full path to gtk-config." | |
23915 | else | |
23916 | if test -f conf.gtktest ; then | |
23917 | : | |
23918 | else | |
23919 | echo "*** Could not run GTK test program, checking why..." | |
23920 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
23921 | LIBS="$LIBS $GTK_LIBS" | |
3dd30495 | 23922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
23923 | /* end confdefs.h. */ |
23924 | ||
23925 | #include <gtk/gtk.h> | |
23926 | #include <stdio.h> | |
23927 | ||
23928 | int | |
23929 | main () | |
23930 | { | |
23931 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
23932 | ; | |
23933 | return 0; | |
23934 | } | |
23935 | _ACEOF | |
3dd30495 | 23936 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
23937 | echo "*** The test program compiled, but did not run. This usually means" |
23938 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
23939 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
23940 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
23941 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
23942 | echo "*** is required on your system" | |
23943 | echo "***" | |
23944 | echo "*** If you have an old version installed, it is best to remove it, although" | |
23945 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
23946 | echo "***" | |
23947 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
23948 | echo "*** came with the system with the command" | |
23949 | echo "***" | |
23950 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
23951 | else | |
3dd30495 | 23952 | echo "*** The test program failed to compile or link. See the file config.log for the" |
1eff6081 | 23953 | echo "*** exact error that occurred. This usually means GTK was incorrectly installed" |
a848cd7e SC |
23954 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
23955 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
23956 | fi | |
3dd30495 VZ |
23957 | rm -f core conftest.err conftest.$ac_objext \ |
23958 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23959 | CFLAGS="$ac_save_CFLAGS" |
23960 | LIBS="$ac_save_LIBS" | |
23961 | fi | |
23962 | fi | |
23963 | GTK_CFLAGS="" | |
23964 | GTK_LIBS="" | |
23965 | : | |
23966 | fi | |
23967 | ||
23968 | ||
23969 | rm -f conf.gtktest | |
23970 | ||
23971 | ||
f34ca037 | 23972 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e | 23973 | |
47964710 | 23974 | # Check whether --with-gtk-prefix was given. |
3dd30495 | 23975 | if test "${with_gtk_prefix+set}" = set; then : |
47964710 | 23976 | withval=$with_gtk_prefix; gtk_config_prefix="$withval" |
a848cd7e SC |
23977 | else |
23978 | gtk_config_prefix="" | |
47964710 VS |
23979 | fi |
23980 | ||
84ebfcbd | 23981 | |
47964710 | 23982 | # Check whether --with-gtk-exec-prefix was given. |
3dd30495 | 23983 | if test "${with_gtk_exec_prefix+set}" = set; then : |
47964710 | 23984 | withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" |
a848cd7e SC |
23985 | else |
23986 | gtk_config_exec_prefix="" | |
47964710 | 23987 | fi |
bd8a7646 | 23988 | |
47964710 | 23989 | # Check whether --enable-gtktest was given. |
3dd30495 | 23990 | if test "${enable_gtktest+set}" = set; then : |
47964710 | 23991 | enableval=$enable_gtktest; |
a848cd7e SC |
23992 | else |
23993 | enable_gtktest=yes | |
47964710 VS |
23994 | fi |
23995 | ||
a848cd7e SC |
23996 | |
23997 | for module in . $GTK_MODULES | |
23998 | do | |
23999 | case "$module" in | |
24000 | gthread) | |
24001 | gtk_config_args="$gtk_config_args gthread" | |
24002 | ;; | |
24003 | esac | |
24004 | done | |
24005 | ||
24006 | if test x$gtk_config_exec_prefix != x ; then | |
24007 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
24008 | if test x${GTK_CONFIG+set} != xset ; then | |
24009 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
24010 | fi | |
24011 | fi | |
24012 | if test x$gtk_config_prefix != x ; then | |
24013 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
24014 | if test x${GTK_CONFIG+set} != xset ; then | |
24015 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
24016 | fi | |
24017 | fi | |
24018 | ||
24019 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
24020 | set dummy gtk-config; ac_word=$2 | |
3dd30495 VZ |
24021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
24022 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 24023 | if ${ac_cv_path_GTK_CONFIG+:} false; then : |
3dd30495 | 24024 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
24025 | else |
24026 | case $GTK_CONFIG in | |
24027 | [\\/]* | ?:[\\/]*) | |
24028 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
24029 | ;; | |
24030 | *) | |
24031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24032 | for as_dir in $PATH | |
24033 | do | |
24034 | IFS=$as_save_IFS | |
24035 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 24036 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 24037 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 24038 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 24039 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
24040 | break 2 |
24041 | fi | |
24042 | done | |
3dd30495 | 24043 | done |
47964710 | 24044 | IFS=$as_save_IFS |
a848cd7e SC |
24045 | |
24046 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
24047 | ;; | |
24048 | esac | |
24049 | fi | |
24050 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
a848cd7e | 24051 | if test -n "$GTK_CONFIG"; then |
3dd30495 VZ |
24052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5 |
24053 | $as_echo "$GTK_CONFIG" >&6; } | |
a848cd7e | 24054 | else |
3dd30495 VZ |
24055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24056 | $as_echo "no" >&6; } | |
a848cd7e SC |
24057 | fi |
24058 | ||
47964710 | 24059 | |
a848cd7e | 24060 | min_gtk_version=1.2.3 |
3dd30495 VZ |
24061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 |
24062 | $as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } | |
a848cd7e SC |
24063 | no_gtk="" |
24064 | if test "$GTK_CONFIG" = "no" ; then | |
24065 | no_gtk=yes | |
24066 | else | |
24067 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
24068 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
24069 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24070 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
24071 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24072 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
24073 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
24074 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
24075 | if test "x$enable_gtktest" = "xyes" ; then | |
24076 | ac_save_CFLAGS="$CFLAGS" | |
24077 | ac_save_LIBS="$LIBS" | |
24078 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24079 | LIBS="$GTK_LIBS $LIBS" | |
24080 | rm -f conf.gtktest | |
3dd30495 | 24081 | if test "$cross_compiling" = yes; then : |
a848cd7e SC |
24082 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
24083 | else | |
3dd30495 | 24084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
24085 | /* end confdefs.h. */ |
24086 | ||
24087 | #include <gtk/gtk.h> | |
24088 | #include <stdio.h> | |
24089 | #include <stdlib.h> | |
24090 | ||
24091 | int | |
24092 | main () | |
24093 | { | |
24094 | int major, minor, micro; | |
24095 | char *tmp_version; | |
24096 | ||
24097 | system ("touch conf.gtktest"); | |
24098 | ||
24099 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
24100 | tmp_version = g_strdup("$min_gtk_version"); | |
24101 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
24102 | printf("%s, bad version string\n", "$min_gtk_version"); | |
24103 | exit(1); | |
24104 | } | |
24105 | ||
24106 | if ((gtk_major_version != $gtk_config_major_version) || | |
24107 | (gtk_minor_version != $gtk_config_minor_version) || | |
24108 | (gtk_micro_version != $gtk_config_micro_version)) | |
24109 | { | |
24110 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
24111 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
24112 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24113 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
24114 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
1eff6081 | 24115 | printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n"); |
a848cd7e SC |
24116 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
24117 | printf("*** required on your system.\n"); | |
24118 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
24119 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
24120 | printf("*** before re-running configure\n"); | |
24121 | } | |
24122 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
24123 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
24124 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
24125 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
24126 | { | |
24127 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
24128 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
24129 | printf("*** library (version %d.%d.%d)\n", | |
24130 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24131 | } | |
24132 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
24133 | else | |
24134 | { | |
24135 | if ((gtk_major_version > major) || | |
24136 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
24137 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
24138 | { | |
24139 | return 0; | |
24140 | } | |
24141 | else | |
24142 | { | |
24143 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
24144 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
24145 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
24146 | major, minor, micro); | |
24147 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
24148 | printf("***\n"); | |
24149 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
24150 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
24151 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
24152 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
24153 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
1eff6081 | 24154 | printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n"); |
a848cd7e SC |
24155 | printf("*** so that the correct libraries are found at run-time))\n"); |
24156 | } | |
24157 | } | |
24158 | return 1; | |
24159 | } | |
24160 | ||
24161 | _ACEOF | |
3dd30495 | 24162 | if ac_fn_c_try_run "$LINENO"; then : |
a848cd7e | 24163 | |
3dd30495 VZ |
24164 | else |
24165 | no_gtk=yes | |
a848cd7e | 24166 | fi |
3dd30495 VZ |
24167 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
24168 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a848cd7e | 24169 | fi |
47964710 | 24170 | |
a848cd7e SC |
24171 | CFLAGS="$ac_save_CFLAGS" |
24172 | LIBS="$ac_save_LIBS" | |
24173 | fi | |
24174 | fi | |
24175 | if test "x$no_gtk" = x ; then | |
3dd30495 VZ |
24176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24177 | $as_echo "yes" >&6; } | |
a848cd7e SC |
24178 | wx_cv_lib_gtk=1.2.3 |
24179 | else | |
3dd30495 VZ |
24180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24181 | $as_echo "no" >&6; } | |
a848cd7e SC |
24182 | if test "$GTK_CONFIG" = "no" ; then |
24183 | echo "*** The gtk-config script installed by GTK could not be found" | |
24184 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
24185 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
24186 | echo "*** full path to gtk-config." | |
24187 | else | |
24188 | if test -f conf.gtktest ; then | |
24189 | : | |
24190 | else | |
24191 | echo "*** Could not run GTK test program, checking why..." | |
24192 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
24193 | LIBS="$LIBS $GTK_LIBS" | |
3dd30495 | 24194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
24195 | /* end confdefs.h. */ |
24196 | ||
24197 | #include <gtk/gtk.h> | |
24198 | #include <stdio.h> | |
24199 | ||
24200 | int | |
24201 | main () | |
24202 | { | |
24203 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
24204 | ; | |
24205 | return 0; | |
24206 | } | |
24207 | _ACEOF | |
3dd30495 | 24208 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
24209 | echo "*** The test program compiled, but did not run. This usually means" |
24210 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
24211 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
24212 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
24213 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
24214 | echo "*** is required on your system" | |
24215 | echo "***" | |
24216 | echo "*** If you have an old version installed, it is best to remove it, although" | |
24217 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
24218 | echo "***" | |
24219 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
24220 | echo "*** came with the system with the command" | |
24221 | echo "***" | |
24222 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
24223 | else | |
3dd30495 | 24224 | echo "*** The test program failed to compile or link. See the file config.log for the" |
1eff6081 | 24225 | echo "*** exact error that occurred. This usually means GTK was incorrectly installed" |
a848cd7e SC |
24226 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" |
24227 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
24228 | fi | |
3dd30495 VZ |
24229 | rm -f core conftest.err conftest.$ac_objext \ |
24230 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24231 | CFLAGS="$ac_save_CFLAGS" |
24232 | LIBS="$ac_save_LIBS" | |
24233 | fi | |
24234 | fi | |
24235 | GTK_CFLAGS="" | |
24236 | GTK_LIBS="" | |
24237 | : | |
24238 | fi | |
24239 | ||
24240 | ||
24241 | rm -f conf.gtktest | |
24242 | ||
f34ca037 | 24243 | fi |
a848cd7e SC |
24244 | fi |
24245 | fi | |
24246 | ||
24247 | if test -z "$wx_cv_lib_gtk"; then | |
24248 | wx_cv_lib_gtk=none | |
24249 | else | |
fb6e5bff PC |
24250 | GTK_LIBS="$GTK_LIBS -lX11" |
24251 | ||
a848cd7e | 24252 | wx_cv_cflags_gtk=$GTK_CFLAGS |
38fd5bad | 24253 | wx_cv_libs_gtk=$GTK_LIBS |
a848cd7e SC |
24254 | fi |
24255 | ||
24256 | ||
24257 | fi | |
24258 | ||
24259 | ||
24260 | if test "$gtk_version_cached" = 1; then | |
3dd30495 VZ |
24261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_lib_gtk" >&5 |
24262 | $as_echo "$wx_cv_lib_gtk" >&6; } | |
a848cd7e SC |
24263 | fi |
24264 | ||
24265 | case "$wx_cv_lib_gtk" in | |
9dc44eff PC |
24266 | 3) WXGTK3=1 |
24267 | TOOLKIT_VERSION=3 | |
24268 | ;; | |
88262190 | 24269 | 2.0) WXGTK2=1 |
a848cd7e SC |
24270 | TOOLKIT_VERSION=2 |
24271 | ;; | |
24272 | 1.2.7) WXGTK127=1 | |
9dc44eff | 24273 | WXGTK1=1 |
a848cd7e | 24274 | ;; |
9dc44eff | 24275 | 1.2*) WXGTK1=1 ;; |
3dd30495 | 24276 | *) as_fn_error $? " |
f597b41c MW |
24277 | The development files for GTK+ were not found. For GTK+ 2, please |
24278 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
24279 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
24280 | and that the version is 1.2.3 or above. Also check that the | |
24281 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
24282 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
3dd30495 | 24283 | " "$LINENO" 5 |
a848cd7e SC |
24284 | ;; |
24285 | esac | |
24286 | ||
9dc44eff PC |
24287 | if test "$WXGTK3" = 1; then |
24288 | $as_echo "#define __WXGTK218__ 1" >>confdefs.h | |
24289 | ||
24290 | $as_echo "#define __WXGTK210__ 1" >>confdefs.h | |
24291 | ||
9dc44eff | 24292 | elif test "$WXGTK2" = 1; then |
6954625c | 24293 | save_CFLAGS="$CFLAGS" |
304205f1 | 24294 | save_LIBS="$LIBS" |
6954625c | 24295 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 24296 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 24297 | |
3dd30495 VZ |
24298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GTK+ is version >= 2.18" >&5 |
24299 | $as_echo_n "checking if GTK+ is version >= 2.18... " >&6; } | |
24300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
e9263684 VZ |
24301 | /* end confdefs.h. */ |
24302 | ||
24303 | #include <gtk/gtk.h> | |
24304 | ||
24305 | int | |
24306 | main () | |
24307 | { | |
24308 | ||
d85aece1 VZ |
24309 | #if !GTK_CHECK_VERSION(2,18,0) |
24310 | Not GTK+ 2.18 | |
e9263684 VZ |
24311 | #endif |
24312 | ||
24313 | ; | |
24314 | return 0; | |
24315 | } | |
24316 | _ACEOF | |
3dd30495 | 24317 | if ac_fn_c_try_compile "$LINENO"; then : |
e9263684 | 24318 | |
3dd30495 | 24319 | $as_echo "#define __WXGTK218__ 1" >>confdefs.h |
d85aece1 | 24320 | |
3dd30495 | 24321 | $as_echo "#define __WXGTK210__ 1" >>confdefs.h |
a48b6595 | 24322 | |
3dd30495 VZ |
24323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24324 | $as_echo "yes" >&6; } | |
d85aece1 | 24325 | ac_wxgtk218=1 |
e9263684 VZ |
24326 | |
24327 | else | |
e9263684 | 24328 | |
3dd30495 VZ |
24329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24330 | $as_echo "no" >&6; } | |
d85aece1 | 24331 | ac_wxgtk218=0 |
a48b6595 VZ |
24332 | |
24333 | fi | |
47964710 | 24334 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a48b6595 | 24335 | |
d85aece1 | 24336 | if test "$ac_wxgtk218" = 0; then |
3dd30495 VZ |
24337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GTK+ is version >= 2.10" >&5 |
24338 | $as_echo_n "checking if GTK+ is version >= 2.10... " >&6; } | |
24339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a48b6595 VZ |
24340 | /* end confdefs.h. */ |
24341 | ||
24342 | #include <gtk/gtk.h> | |
24343 | ||
24344 | int | |
24345 | main () | |
24346 | { | |
24347 | ||
d85aece1 VZ |
24348 | #if !GTK_CHECK_VERSION(2,10,0) |
24349 | Not GTK+ 2.10 | |
a48b6595 VZ |
24350 | #endif |
24351 | ||
24352 | ; | |
24353 | return 0; | |
24354 | } | |
24355 | _ACEOF | |
3dd30495 | 24356 | if ac_fn_c_try_compile "$LINENO"; then : |
a48b6595 | 24357 | |
3dd30495 | 24358 | $as_echo "#define __WXGTK210__ 1" >>confdefs.h |
d85aece1 | 24359 | |
3dd30495 VZ |
24360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24361 | $as_echo "yes" >&6; } | |
d85aece1 | 24362 | ac_wxgtk210=1 |
a48b6595 VZ |
24363 | |
24364 | else | |
a48b6595 | 24365 | |
3dd30495 VZ |
24366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24367 | $as_echo "no" >&6; } | |
d85aece1 VZ |
24368 | ac_wxgtk210=0 |
24369 | ||
24370 | fi | |
d85aece1 | 24371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e9263684 | 24372 | fi |
9755e73b | 24373 | |
6954625c | 24374 | CFLAGS="$save_CFLAGS" |
304205f1 | 24375 | LIBS="$save_LIBS" |
a848cd7e SC |
24376 | else |
24377 | if test "$wxUSE_UNICODE" = "yes"; then | |
3dd30495 VZ |
24378 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
24379 | $as_echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
a848cd7e SC |
24380 | wxUSE_UNICODE=no |
24381 | fi | |
64b75e64 | 24382 | |
3dd30495 VZ |
24383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk_im_open in -lgdk" >&5 |
24384 | $as_echo_n "checking for gdk_im_open in -lgdk... " >&6; } | |
eff9d7f5 | 24385 | if ${ac_cv_lib_gdk_gdk_im_open+:} false; then : |
3dd30495 | 24386 | $as_echo_n "(cached) " >&6 |
64b75e64 RD |
24387 | else |
24388 | ac_check_lib_save_LIBS=$LIBS | |
24389 | LIBS="-lgdk $LIBS" | |
3dd30495 | 24390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
64b75e64 RD |
24391 | /* end confdefs.h. */ |
24392 | ||
47964710 VS |
24393 | /* Override any GCC internal prototype to avoid an error. |
24394 | Use char because int might match the return type of a GCC | |
24395 | builtin and then its argument prototype would still apply. */ | |
64b75e64 RD |
24396 | #ifdef __cplusplus |
24397 | extern "C" | |
24398 | #endif | |
64b75e64 RD |
24399 | char gdk_im_open (); |
24400 | int | |
24401 | main () | |
24402 | { | |
47964710 | 24403 | return gdk_im_open (); |
64b75e64 RD |
24404 | ; |
24405 | return 0; | |
24406 | } | |
24407 | _ACEOF | |
3dd30495 | 24408 | if ac_fn_c_try_link "$LINENO"; then : |
64b75e64 RD |
24409 | ac_cv_lib_gdk_gdk_im_open=yes |
24410 | else | |
3dd30495 | 24411 | ac_cv_lib_gdk_gdk_im_open=no |
64b75e64 | 24412 | fi |
3dd30495 VZ |
24413 | rm -f core conftest.err conftest.$ac_objext \ |
24414 | conftest$ac_exeext conftest.$ac_ext | |
64b75e64 RD |
24415 | LIBS=$ac_check_lib_save_LIBS |
24416 | fi | |
3dd30495 VZ |
24417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdk_gdk_im_open" >&5 |
24418 | $as_echo "$ac_cv_lib_gdk_gdk_im_open" >&6; } | |
eff9d7f5 | 24419 | if test "x$ac_cv_lib_gdk_gdk_im_open" = xyes; then : |
3dd30495 | 24420 | $as_echo "#define HAVE_XIM 1" >>confdefs.h |
64b75e64 RD |
24421 | |
24422 | fi | |
24423 | ||
a848cd7e | 24424 | |
7fd3acaf | 24425 | if test "$USE_DARWIN" != 1; then |
3dd30495 VZ |
24426 | for ac_func in poll |
24427 | do : | |
24428 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
eff9d7f5 | 24429 | if test "x$ac_cv_func_poll" = xyes; then : |
a848cd7e | 24430 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 24431 | #define HAVE_POLL 1 |
a848cd7e SC |
24432 | _ACEOF |
24433 | ||
24434 | fi | |
24435 | done | |
24436 | ||
7fd3acaf | 24437 | fi |
a848cd7e SC |
24438 | fi |
24439 | ||
24440 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
24441 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
a848cd7e SC |
24442 | AFMINSTALL=afminstall |
24443 | TOOLKIT=GTK | |
24444 | GUIDIST=GTK_DIST | |
24445 | ||
a848cd7e | 24446 | if test "$wxUSE_GPE" = "yes"; then |
3dd30495 VZ |
24447 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpewidget library" >&5 |
24448 | $as_echo_n "checking for gpewidget library... " >&6; } | |
a848cd7e | 24449 | |
0ad5d837 | 24450 | ac_find_libraries= |
76ff3d06 | 24451 | for ac_dir in $SEARCH_LIB |
a848cd7e | 24452 | do |
3eca31dc | 24453 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
24454 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
24455 | ac_find_libraries=$ac_dir | |
24456 | break 2 | |
24457 | fi | |
24458 | done | |
24459 | done | |
24460 | ||
24461 | if test "$ac_find_libraries" != "" ; then | |
24462 | ||
0ad5d837 | 24463 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
24464 | ac_path_to_link="" |
24465 | else | |
0ad5d837 VZ |
24466 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
24467 | result=$? | |
24468 | if test $result = 0; then | |
24469 | ac_path_to_link="" | |
24470 | else | |
24471 | ac_path_to_link=" -L$ac_find_libraries" | |
24472 | fi | |
a848cd7e SC |
24473 | fi |
24474 | ||
24475 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
24476 | WXGPE=1 | |
3dd30495 VZ |
24477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ac_find_libraries" >&5 |
24478 | $as_echo "found in $ac_find_libraries" >&6; } | |
a848cd7e | 24479 | else |
3dd30495 VZ |
24480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
24481 | $as_echo "not found" >&6; } | |
a848cd7e SC |
24482 | fi |
24483 | ||
24484 | fi | |
24485 | fi | |
24486 | ||
b3c86150 VS |
24487 | if test "$wxUSE_DFB" = 1; then |
24488 | ||
24489 | ||
24490 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
24491 | if test -n "$ac_tool_prefix"; then | |
24492 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
24493 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
24494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
24495 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 24496 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 24497 | $as_echo_n "(cached) " >&6 |
b3c86150 VS |
24498 | else |
24499 | case $PKG_CONFIG in | |
24500 | [\\/]* | ?:[\\/]*) | |
24501 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
24502 | ;; | |
24503 | *) | |
24504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24505 | for as_dir in $PATH | |
24506 | do | |
24507 | IFS=$as_save_IFS | |
24508 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 24509 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 24510 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b3c86150 | 24511 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 24512 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3c86150 VS |
24513 | break 2 |
24514 | fi | |
24515 | done | |
3dd30495 | 24516 | done |
47964710 | 24517 | IFS=$as_save_IFS |
b3c86150 VS |
24518 | |
24519 | ;; | |
24520 | esac | |
24521 | fi | |
24522 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
b3c86150 | 24523 | if test -n "$PKG_CONFIG"; then |
3dd30495 VZ |
24524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
24525 | $as_echo "$PKG_CONFIG" >&6; } | |
b3c86150 | 24526 | else |
3dd30495 VZ |
24527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24528 | $as_echo "no" >&6; } | |
b3c86150 VS |
24529 | fi |
24530 | ||
47964710 | 24531 | |
b3c86150 VS |
24532 | fi |
24533 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
24534 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
24535 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
24536 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
24537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
24538 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 24539 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 24540 | $as_echo_n "(cached) " >&6 |
b3c86150 VS |
24541 | else |
24542 | case $ac_pt_PKG_CONFIG in | |
24543 | [\\/]* | ?:[\\/]*) | |
24544 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
24545 | ;; | |
24546 | *) | |
24547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24548 | for as_dir in $PATH | |
24549 | do | |
24550 | IFS=$as_save_IFS | |
24551 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 24552 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 24553 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
b3c86150 | 24554 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 24555 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
b3c86150 VS |
24556 | break 2 |
24557 | fi | |
24558 | done | |
3dd30495 | 24559 | done |
47964710 | 24560 | IFS=$as_save_IFS |
b3c86150 VS |
24561 | |
24562 | ;; | |
24563 | esac | |
24564 | fi | |
24565 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
b3c86150 | 24566 | if test -n "$ac_pt_PKG_CONFIG"; then |
3dd30495 VZ |
24567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
24568 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
b3c86150 | 24569 | else |
3dd30495 VZ |
24570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24571 | $as_echo "no" >&6; } | |
b3c86150 VS |
24572 | fi |
24573 | ||
47964710 VS |
24574 | if test "x$ac_pt_PKG_CONFIG" = x; then |
24575 | PKG_CONFIG="" | |
24576 | else | |
24577 | case $cross_compiling:$ac_tool_warned in | |
24578 | yes:) | |
3dd30495 VZ |
24579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
24580 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
24581 | ac_tool_warned=yes ;; |
24582 | esac | |
24583 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
24584 | fi | |
b3c86150 VS |
24585 | else |
24586 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
24587 | fi | |
24588 | ||
24589 | fi | |
24590 | if test -n "$PKG_CONFIG"; then | |
24591 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
24592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
24593 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
b3c86150 | 24594 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
24595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24596 | $as_echo "yes" >&6; } | |
b3c86150 | 24597 | else |
3dd30495 VZ |
24598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
24599 | $as_echo "no" >&6; } | |
b3c86150 VS |
24600 | PKG_CONFIG="" |
24601 | fi | |
24602 | ||
24603 | fi | |
24604 | ||
479c790c | 24605 | |
b3c86150 | 24606 | pkg_failed=no |
3dd30495 VZ |
24607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRECTFB" >&5 |
24608 | $as_echo_n "checking for DIRECTFB... " >&6; } | |
b3c86150 VS |
24609 | |
24610 | if test -n "$PKG_CONFIG"; then | |
24611 | if test -n "$DIRECTFB_CFLAGS"; then | |
24612 | pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS" | |
24613 | else | |
24614 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 24615 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\""; } >&5 |
d7ae4a62 | 24616 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5 |
b3c86150 | 24617 | ac_status=$? |
3dd30495 VZ |
24618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
24619 | test $ac_status = 0; }; then | |
d7ae4a62 | 24620 | pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null` |
b3c86150 VS |
24621 | else |
24622 | pkg_failed=yes | |
24623 | fi | |
24624 | fi | |
24625 | else | |
24626 | pkg_failed=untried | |
24627 | fi | |
24628 | if test -n "$PKG_CONFIG"; then | |
24629 | if test -n "$DIRECTFB_LIBS"; then | |
24630 | pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS" | |
24631 | else | |
24632 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 24633 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\""; } >&5 |
d7ae4a62 | 24634 | ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5 |
b3c86150 | 24635 | ac_status=$? |
3dd30495 VZ |
24636 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
24637 | test $ac_status = 0; }; then | |
d7ae4a62 | 24638 | pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null` |
b3c86150 VS |
24639 | else |
24640 | pkg_failed=yes | |
24641 | fi | |
24642 | fi | |
24643 | else | |
24644 | pkg_failed=untried | |
24645 | fi | |
24646 | ||
24647 | ||
24648 | ||
24649 | if test $pkg_failed = yes; then | |
24650 | ||
24651 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
24652 | _pkg_short_errors_supported=yes | |
24653 | else | |
24654 | _pkg_short_errors_supported=no | |
24655 | fi | |
24656 | if test $_pkg_short_errors_supported = yes; then | |
d7ae4a62 | 24657 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"` |
b3c86150 | 24658 | else |
d7ae4a62 | 24659 | DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"` |
b3c86150 VS |
24660 | fi |
24661 | # Put the nasty error message in config.log where it belongs | |
24662 | echo "$DIRECTFB_PKG_ERRORS" >&5 | |
24663 | ||
24664 | ||
3dd30495 | 24665 | as_fn_error $? "DirectFB not found." "$LINENO" 5 |
b3c86150 VS |
24666 | |
24667 | ||
24668 | elif test $pkg_failed = untried; then | |
24669 | ||
3dd30495 | 24670 | as_fn_error $? "DirectFB not found." "$LINENO" 5 |
b3c86150 VS |
24671 | |
24672 | ||
24673 | else | |
24674 | DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS | |
24675 | DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS | |
3dd30495 VZ |
24676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
24677 | $as_echo "yes" >&6; } | |
b3c86150 VS |
24678 | |
24679 | wxUSE_UNIVERSAL="yes" | |
24680 | TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS" | |
24681 | GUI_TK_LIBRARY="$DIRECTFB_LIBS" | |
24682 | TOOLKIT=DFB | |
24683 | GUIDIST=DFB_DIST | |
24684 | ||
24685 | fi | |
24686 | fi | |
24687 | ||
a848cd7e | 24688 | if test "$wxUSE_MICROWIN" = 1; then |
3dd30495 VZ |
24689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MicroWindows" >&5 |
24690 | $as_echo_n "checking for MicroWindows... " >&6; } | |
a848cd7e | 24691 | if test "x$MICROWINDOWS" = x ; then |
3dd30495 VZ |
24692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
24693 | $as_echo "not found" >&6; } | |
24694 | as_fn_error $? "Cannot find MicroWindows library. Make sure MICROWINDOWS is set." "$LINENO" 5 | |
a848cd7e | 24695 | else |
3dd30495 VZ |
24696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MICROWINDOWS" >&5 |
24697 | $as_echo "$MICROWINDOWS" >&6; } | |
a848cd7e SC |
24698 | fi |
24699 | ||
24700 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
3dd30495 VZ |
24701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: MicroWindows' libraries found." >&5 |
24702 | $as_echo "MicroWindows' libraries found." >&6; } | |
a848cd7e | 24703 | else |
3dd30495 | 24704 | as_fn_error $? "Cannot find MicroWindows libraries, make sure they are compiled." "$LINENO" 5 |
a848cd7e SC |
24705 | fi |
24706 | ||
24707 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
24708 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
24709 | ||
24710 | wxUSE_UNIVERSAL="yes" | |
24711 | ||
24712 | AFMINSTALL=afminstall | |
24713 | TOOLKIT=MICROWIN | |
24714 | GUIDIST=MICROWIN_DIST | |
24715 | ||
24716 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
24717 | fi | |
24718 | ||
74b84332 | 24719 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
3dd30495 VZ |
24720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
24721 | $as_echo_n "checking for X... " >&6; } | |
bb9e79c0 | 24722 | |
f321ab7f | 24723 | |
47964710 | 24724 | # Check whether --with-x was given. |
3dd30495 | 24725 | if test "${with_x+set}" = set; then : |
47964710 VS |
24726 | withval=$with_x; |
24727 | fi | |
a848cd7e | 24728 | |
a848cd7e SC |
24729 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
24730 | if test "x$with_x" = xno; then | |
24731 | # The user explicitly disabled X. | |
24732 | have_x=disabled | |
24733 | else | |
47964710 | 24734 | case $x_includes,$x_libraries in #( |
eff9d7f5 VZ |
24735 | *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( |
24736 | *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : | |
3dd30495 | 24737 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
24738 | else |
24739 | # One or both of the vars are not set, and there is no cached value. | |
24740 | ac_x_includes=no ac_x_libraries=no | |
47964710 | 24741 | rm -f -r conftest.dir |
a848cd7e SC |
24742 | if mkdir conftest.dir; then |
24743 | cd conftest.dir | |
a848cd7e | 24744 | cat >Imakefile <<'_ACEOF' |
47964710 VS |
24745 | incroot: |
24746 | @echo incroot='${INCROOT}' | |
24747 | usrlibdir: | |
24748 | @echo usrlibdir='${USRLIBDIR}' | |
24749 | libdir: | |
24750 | @echo libdir='${LIBDIR}' | |
24751 | _ACEOF | |
24752 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
3dd30495 | 24753 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
47964710 VS |
24754 | for ac_var in incroot usrlibdir libdir; do |
24755 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
24756 | done | |
a848cd7e | 24757 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
3dd30495 | 24758 | for ac_extension in a so sl dylib la dll; do |
47964710 VS |
24759 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
24760 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
ac1cb8d3 | 24761 | ac_im_usrlibdir=$ac_im_libdir; break |
a848cd7e SC |
24762 | fi |
24763 | done | |
24764 | # Screen out bogus values from the imake configuration. They are | |
24765 | # bogus both because they are the default anyway, and because | |
24766 | # using them would break gcc on systems where it needs fixed includes. | |
24767 | case $ac_im_incroot in | |
47964710 | 24768 | /usr/include) ac_x_includes= ;; |
a848cd7e SC |
24769 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
24770 | esac | |
24771 | case $ac_im_usrlibdir in | |
3dd30495 | 24772 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
a848cd7e SC |
24773 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
24774 | esac | |
24775 | fi | |
24776 | cd .. | |
47964710 | 24777 | rm -f -r conftest.dir |
a848cd7e SC |
24778 | fi |
24779 | ||
24780 | # Standard set of common directories for X headers. | |
24781 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
24782 | ac_x_header_dirs=' | |
24783 | /usr/X11/include | |
3dd30495 | 24784 | /usr/X11R7/include |
a848cd7e SC |
24785 | /usr/X11R6/include |
24786 | /usr/X11R5/include | |
24787 | /usr/X11R4/include | |
24788 | ||
24789 | /usr/include/X11 | |
3dd30495 | 24790 | /usr/include/X11R7 |
a848cd7e SC |
24791 | /usr/include/X11R6 |
24792 | /usr/include/X11R5 | |
24793 | /usr/include/X11R4 | |
24794 | ||
24795 | /usr/local/X11/include | |
3dd30495 | 24796 | /usr/local/X11R7/include |
a848cd7e SC |
24797 | /usr/local/X11R6/include |
24798 | /usr/local/X11R5/include | |
24799 | /usr/local/X11R4/include | |
24800 | ||
24801 | /usr/local/include/X11 | |
3dd30495 | 24802 | /usr/local/include/X11R7 |
a848cd7e SC |
24803 | /usr/local/include/X11R6 |
24804 | /usr/local/include/X11R5 | |
24805 | /usr/local/include/X11R4 | |
24806 | ||
24807 | /usr/X386/include | |
24808 | /usr/x386/include | |
24809 | /usr/XFree86/include/X11 | |
24810 | ||
24811 | /usr/include | |
24812 | /usr/local/include | |
24813 | /usr/unsupported/include | |
24814 | /usr/athena/include | |
24815 | /usr/local/x11r5/include | |
24816 | /usr/lpp/Xamples/include | |
24817 | ||
24818 | /usr/openwin/include | |
24819 | /usr/openwin/share/include' | |
24820 | ||
24821 | if test "$ac_x_includes" = no; then | |
47964710 | 24822 | # Guess where to find include files, by looking for Xlib.h. |
a848cd7e | 24823 | # First, try using that file with no special directory specified. |
3dd30495 | 24824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 24825 | /* end confdefs.h. */ |
47964710 | 24826 | #include <X11/Xlib.h> |
a848cd7e | 24827 | _ACEOF |
3dd30495 | 24828 | if ac_fn_c_try_cpp "$LINENO"; then : |
a848cd7e SC |
24829 | # We can compile using X headers with no special include directory. |
24830 | ac_x_includes= | |
24831 | else | |
a848cd7e | 24832 | for ac_dir in $ac_x_header_dirs; do |
47964710 | 24833 | if test -r "$ac_dir/X11/Xlib.h"; then |
a848cd7e SC |
24834 | ac_x_includes=$ac_dir |
24835 | break | |
24836 | fi | |
24837 | done | |
24838 | fi | |
3dd30495 | 24839 | rm -f conftest.err conftest.i conftest.$ac_ext |
a848cd7e SC |
24840 | fi # $ac_x_includes = no |
24841 | ||
24842 | if test "$ac_x_libraries" = no; then | |
24843 | # Check for the libraries. | |
24844 | # See if we find them without any special options. | |
24845 | # Don't add to $LIBS permanently. | |
24846 | ac_save_LIBS=$LIBS | |
47964710 | 24847 | LIBS="-lX11 $LIBS" |
3dd30495 | 24848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 24849 | /* end confdefs.h. */ |
47964710 | 24850 | #include <X11/Xlib.h> |
a848cd7e SC |
24851 | int |
24852 | main () | |
24853 | { | |
47964710 | 24854 | XrmInitialize () |
a848cd7e SC |
24855 | ; |
24856 | return 0; | |
24857 | } | |
24858 | _ACEOF | |
3dd30495 | 24859 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
24860 | LIBS=$ac_save_LIBS |
24861 | # We can link X programs with no special library path. | |
24862 | ac_x_libraries= | |
24863 | else | |
3dd30495 VZ |
24864 | LIBS=$ac_save_LIBS |
24865 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
a848cd7e SC |
24866 | do |
24867 | # Don't even attempt the hair of trying to link an X program! | |
3dd30495 | 24868 | for ac_extension in a so sl dylib la dll; do |
47964710 | 24869 | if test -r "$ac_dir/libX11.$ac_extension"; then |
a848cd7e SC |
24870 | ac_x_libraries=$ac_dir |
24871 | break 2 | |
24872 | fi | |
24873 | done | |
24874 | done | |
24875 | fi | |
3dd30495 VZ |
24876 | rm -f core conftest.err conftest.$ac_objext \ |
24877 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24878 | fi # $ac_x_libraries = no |
24879 | ||
47964710 VS |
24880 | case $ac_x_includes,$ac_x_libraries in #( |
24881 | no,* | *,no | *\'*) | |
24882 | # Didn't find X, or a directory has "'" in its name. | |
24883 | ac_cv_have_x="have_x=no";; #( | |
24884 | *) | |
24885 | # Record where we found X for the cache. | |
24886 | ac_cv_have_x="have_x=yes\ | |
24887 | ac_x_includes='$ac_x_includes'\ | |
24888 | ac_x_libraries='$ac_x_libraries'" | |
24889 | esac | |
bd8a7646 | 24890 | fi |
47964710 VS |
24891 | ;; #( |
24892 | *) have_x=yes;; | |
24893 | esac | |
a848cd7e SC |
24894 | eval "$ac_cv_have_x" |
24895 | fi # $with_x != no | |
24896 | ||
24897 | if test "$have_x" != yes; then | |
3dd30495 VZ |
24898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
24899 | $as_echo "$have_x" >&6; } | |
a848cd7e SC |
24900 | no_x=yes |
24901 | else | |
24902 | # If each of the values was on the command line, it overrides each guess. | |
24903 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
24904 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
24905 | # Update the cache value to reflect the command line values. | |
47964710 VS |
24906 | ac_cv_have_x="have_x=yes\ |
24907 | ac_x_includes='$x_includes'\ | |
24908 | ac_x_libraries='$x_libraries'" | |
3dd30495 VZ |
24909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
24910 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | |
a848cd7e SC |
24911 | fi |
24912 | ||
24913 | if test "$no_x" = yes; then | |
24914 | # Not all programs may use this symbol, but it does not hurt to define it. | |
24915 | ||
3dd30495 | 24916 | $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h |
a848cd7e SC |
24917 | |
24918 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
24919 | else | |
24920 | if test -n "$x_includes"; then | |
24921 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
24922 | fi | |
24923 | ||
24924 | # It would also be nice to do this for all -L options, not just this one. | |
24925 | if test -n "$x_libraries"; then | |
24926 | X_LIBS="$X_LIBS -L$x_libraries" | |
24927 | # For Solaris; some versions of Sun CC require a space after -R and | |
24928 | # others require no space. Words are not sufficient . . . . | |
3dd30495 VZ |
24929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 |
24930 | $as_echo_n "checking whether -R must be followed by a space... " >&6; } | |
47964710 VS |
24931 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
24932 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
24933 | ac_c_werror_flag=yes | |
3dd30495 | 24934 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
24935 | /* end confdefs.h. */ |
24936 | ||
24937 | int | |
24938 | main () | |
24939 | { | |
24940 | ||
24941 | ; | |
24942 | return 0; | |
24943 | } | |
24944 | _ACEOF | |
3dd30495 VZ |
24945 | if ac_fn_c_try_link "$LINENO"; then : |
24946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
24947 | $as_echo "no" >&6; } | |
47964710 | 24948 | X_LIBS="$X_LIBS -R$x_libraries" |
a848cd7e | 24949 | else |
3dd30495 VZ |
24950 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
24951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e SC |
24952 | /* end confdefs.h. */ |
24953 | ||
24954 | int | |
24955 | main () | |
24956 | { | |
24957 | ||
24958 | ; | |
24959 | return 0; | |
24960 | } | |
24961 | _ACEOF | |
3dd30495 VZ |
24962 | if ac_fn_c_try_link "$LINENO"; then : |
24963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
24964 | $as_echo "yes" >&6; } | |
47964710 | 24965 | X_LIBS="$X_LIBS -R $x_libraries" |
a848cd7e | 24966 | else |
3dd30495 VZ |
24967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 |
24968 | $as_echo "neither works" >&6; } | |
faa5c14f | 24969 | fi |
3dd30495 VZ |
24970 | rm -f core conftest.err conftest.$ac_objext \ |
24971 | conftest$ac_exeext conftest.$ac_ext | |
47964710 | 24972 | fi |
3dd30495 VZ |
24973 | rm -f core conftest.err conftest.$ac_objext \ |
24974 | conftest$ac_exeext conftest.$ac_ext | |
47964710 VS |
24975 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
24976 | LIBS=$ac_xsave_LIBS | |
a848cd7e SC |
24977 | fi |
24978 | ||
24979 | # Check for system-dependent libraries X programs must link with. | |
24980 | # Do this before checking for the system-independent R6 libraries | |
24981 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
24982 | ||
24983 | if test "$ISC" = yes; then | |
24984 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
24985 | else | |
24986 | # Martyn Johnson says this is needed for Ultrix, if the X | |
24987 | # libraries were built with DECnet support. And Karl Berry says | |
24988 | # the Alpha needs dnet_stub (dnet does not exist). | |
24989 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
3dd30495 | 24990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
24991 | /* end confdefs.h. */ |
24992 | ||
47964710 VS |
24993 | /* Override any GCC internal prototype to avoid an error. |
24994 | Use char because int might match the return type of a GCC | |
24995 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
24996 | #ifdef __cplusplus |
24997 | extern "C" | |
24998 | #endif | |
a848cd7e SC |
24999 | char XOpenDisplay (); |
25000 | int | |
25001 | main () | |
25002 | { | |
47964710 | 25003 | return XOpenDisplay (); |
a848cd7e SC |
25004 | ; |
25005 | return 0; | |
25006 | } | |
25007 | _ACEOF | |
3dd30495 | 25008 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e | 25009 | |
3dd30495 VZ |
25010 | else |
25011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | |
25012 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | |
eff9d7f5 | 25013 | if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : |
3dd30495 | 25014 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
25015 | else |
25016 | ac_check_lib_save_LIBS=$LIBS | |
25017 | LIBS="-ldnet $LIBS" | |
3dd30495 | 25018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25019 | /* end confdefs.h. */ |
25020 | ||
47964710 VS |
25021 | /* Override any GCC internal prototype to avoid an error. |
25022 | Use char because int might match the return type of a GCC | |
25023 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
25024 | #ifdef __cplusplus |
25025 | extern "C" | |
25026 | #endif | |
a848cd7e SC |
25027 | char dnet_ntoa (); |
25028 | int | |
25029 | main () | |
25030 | { | |
47964710 | 25031 | return dnet_ntoa (); |
a848cd7e SC |
25032 | ; |
25033 | return 0; | |
25034 | } | |
25035 | _ACEOF | |
3dd30495 | 25036 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
25037 | ac_cv_lib_dnet_dnet_ntoa=yes |
25038 | else | |
3dd30495 | 25039 | ac_cv_lib_dnet_dnet_ntoa=no |
a848cd7e | 25040 | fi |
3dd30495 VZ |
25041 | rm -f core conftest.err conftest.$ac_objext \ |
25042 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25043 | LIBS=$ac_check_lib_save_LIBS |
25044 | fi | |
3dd30495 VZ |
25045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
25046 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
eff9d7f5 | 25047 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : |
a848cd7e SC |
25048 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
25049 | fi | |
25050 | ||
25051 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
3dd30495 VZ |
25052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 |
25053 | $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | |
eff9d7f5 | 25054 | if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : |
3dd30495 | 25055 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
25056 | else |
25057 | ac_check_lib_save_LIBS=$LIBS | |
25058 | LIBS="-ldnet_stub $LIBS" | |
3dd30495 | 25059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25060 | /* end confdefs.h. */ |
25061 | ||
47964710 VS |
25062 | /* Override any GCC internal prototype to avoid an error. |
25063 | Use char because int might match the return type of a GCC | |
25064 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
25065 | #ifdef __cplusplus |
25066 | extern "C" | |
25067 | #endif | |
a848cd7e SC |
25068 | char dnet_ntoa (); |
25069 | int | |
25070 | main () | |
25071 | { | |
47964710 | 25072 | return dnet_ntoa (); |
a848cd7e SC |
25073 | ; |
25074 | return 0; | |
25075 | } | |
25076 | _ACEOF | |
3dd30495 | 25077 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
25078 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
25079 | else | |
3dd30495 | 25080 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
a848cd7e | 25081 | fi |
3dd30495 VZ |
25082 | rm -f core conftest.err conftest.$ac_objext \ |
25083 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25084 | LIBS=$ac_check_lib_save_LIBS |
25085 | fi | |
3dd30495 VZ |
25086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
25087 | $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | |
eff9d7f5 | 25088 | if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : |
a848cd7e SC |
25089 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
25090 | fi | |
25091 | ||
25092 | fi | |
25093 | fi | |
3dd30495 VZ |
25094 | rm -f core conftest.err conftest.$ac_objext \ |
25095 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25096 | LIBS="$ac_xsave_LIBS" |
25097 | ||
25098 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
25099 | # to get the SysV transport functions. | |
25100 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
25101 | # needs -lnsl. | |
25102 | # The nsl library prevents programs from opening the X display | |
25103 | # on Irix 5.2, according to T.E. Dickey. | |
25104 | # The functions gethostbyname, getservbyname, and inet_addr are | |
25105 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
3dd30495 | 25106 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
eff9d7f5 | 25107 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
ac1cb8d3 | 25108 | |
a848cd7e | 25109 | fi |
47964710 | 25110 | |
a848cd7e | 25111 | if test $ac_cv_func_gethostbyname = no; then |
3dd30495 VZ |
25112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 |
25113 | $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
eff9d7f5 | 25114 | if ${ac_cv_lib_nsl_gethostbyname+:} false; then : |
3dd30495 | 25115 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
25116 | else |
25117 | ac_check_lib_save_LIBS=$LIBS | |
25118 | LIBS="-lnsl $LIBS" | |
3dd30495 | 25119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25120 | /* end confdefs.h. */ |
25121 | ||
47964710 VS |
25122 | /* Override any GCC internal prototype to avoid an error. |
25123 | Use char because int might match the return type of a GCC | |
25124 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
25125 | #ifdef __cplusplus |
25126 | extern "C" | |
25127 | #endif | |
a848cd7e SC |
25128 | char gethostbyname (); |
25129 | int | |
25130 | main () | |
25131 | { | |
47964710 | 25132 | return gethostbyname (); |
a848cd7e SC |
25133 | ; |
25134 | return 0; | |
25135 | } | |
25136 | _ACEOF | |
3dd30495 | 25137 | if ac_fn_c_try_link "$LINENO"; then : |
ac1cb8d3 VS |
25138 | ac_cv_lib_nsl_gethostbyname=yes |
25139 | else | |
3dd30495 | 25140 | ac_cv_lib_nsl_gethostbyname=no |
ac1cb8d3 | 25141 | fi |
3dd30495 VZ |
25142 | rm -f core conftest.err conftest.$ac_objext \ |
25143 | conftest$ac_exeext conftest.$ac_ext | |
ac1cb8d3 VS |
25144 | LIBS=$ac_check_lib_save_LIBS |
25145 | fi | |
3dd30495 VZ |
25146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
25147 | $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
eff9d7f5 | 25148 | if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : |
ac1cb8d3 VS |
25149 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
25150 | fi | |
25151 | ||
25152 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
3dd30495 VZ |
25153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 |
25154 | $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | |
eff9d7f5 | 25155 | if ${ac_cv_lib_bsd_gethostbyname+:} false; then : |
3dd30495 | 25156 | $as_echo_n "(cached) " >&6 |
ac1cb8d3 VS |
25157 | else |
25158 | ac_check_lib_save_LIBS=$LIBS | |
25159 | LIBS="-lbsd $LIBS" | |
3dd30495 | 25160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ac1cb8d3 VS |
25161 | /* end confdefs.h. */ |
25162 | ||
47964710 VS |
25163 | /* Override any GCC internal prototype to avoid an error. |
25164 | Use char because int might match the return type of a GCC | |
25165 | builtin and then its argument prototype would still apply. */ | |
ac1cb8d3 VS |
25166 | #ifdef __cplusplus |
25167 | extern "C" | |
25168 | #endif | |
ac1cb8d3 VS |
25169 | char gethostbyname (); |
25170 | int | |
25171 | main () | |
25172 | { | |
47964710 | 25173 | return gethostbyname (); |
ac1cb8d3 VS |
25174 | ; |
25175 | return 0; | |
25176 | } | |
25177 | _ACEOF | |
3dd30495 | 25178 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
25179 | ac_cv_lib_bsd_gethostbyname=yes |
25180 | else | |
3dd30495 | 25181 | ac_cv_lib_bsd_gethostbyname=no |
a848cd7e | 25182 | fi |
3dd30495 VZ |
25183 | rm -f core conftest.err conftest.$ac_objext \ |
25184 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25185 | LIBS=$ac_check_lib_save_LIBS |
25186 | fi | |
3dd30495 VZ |
25187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
25188 | $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | |
eff9d7f5 | 25189 | if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : |
a848cd7e SC |
25190 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
25191 | fi | |
25192 | ||
25193 | fi | |
25194 | fi | |
25195 | ||
25196 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
25197 | # socket/setsockopt and other routines are undefined under SCO ODT | |
25198 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
25199 | # on later versions), says Simon Leinen: it contains gethostby* | |
25200 | # variants that don't use the name server (or something). -lsocket | |
25201 | # must be given before -lnsl if both are needed. We assume that | |
25202 | # if connect needs -lnsl, so does gethostbyname. | |
3dd30495 | 25203 | ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" |
eff9d7f5 | 25204 | if test "x$ac_cv_func_connect" = xyes; then : |
a848cd7e | 25205 | |
a848cd7e | 25206 | fi |
47964710 | 25207 | |
a848cd7e | 25208 | if test $ac_cv_func_connect = no; then |
3dd30495 VZ |
25209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 |
25210 | $as_echo_n "checking for connect in -lsocket... " >&6; } | |
eff9d7f5 | 25211 | if ${ac_cv_lib_socket_connect+:} false; then : |
3dd30495 | 25212 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
25213 | else |
25214 | ac_check_lib_save_LIBS=$LIBS | |
25215 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
3dd30495 | 25216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25217 | /* end confdefs.h. */ |
25218 | ||
47964710 VS |
25219 | /* Override any GCC internal prototype to avoid an error. |
25220 | Use char because int might match the return type of a GCC | |
25221 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
25222 | #ifdef __cplusplus |
25223 | extern "C" | |
25224 | #endif | |
a848cd7e SC |
25225 | char connect (); |
25226 | int | |
25227 | main () | |
25228 | { | |
47964710 | 25229 | return connect (); |
a848cd7e SC |
25230 | ; |
25231 | return 0; | |
25232 | } | |
25233 | _ACEOF | |
3dd30495 | 25234 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
25235 | ac_cv_lib_socket_connect=yes |
25236 | else | |
3dd30495 | 25237 | ac_cv_lib_socket_connect=no |
a848cd7e | 25238 | fi |
3dd30495 VZ |
25239 | rm -f core conftest.err conftest.$ac_objext \ |
25240 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25241 | LIBS=$ac_check_lib_save_LIBS |
25242 | fi | |
3dd30495 VZ |
25243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 |
25244 | $as_echo "$ac_cv_lib_socket_connect" >&6; } | |
eff9d7f5 | 25245 | if test "x$ac_cv_lib_socket_connect" = xyes; then : |
a848cd7e SC |
25246 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
25247 | fi | |
25248 | ||
25249 | fi | |
25250 | ||
25251 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
3dd30495 | 25252 | ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" |
eff9d7f5 | 25253 | if test "x$ac_cv_func_remove" = xyes; then : |
ac1cb8d3 | 25254 | |
a848cd7e | 25255 | fi |
a848cd7e SC |
25256 | |
25257 | if test $ac_cv_func_remove = no; then | |
3dd30495 VZ |
25258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 |
25259 | $as_echo_n "checking for remove in -lposix... " >&6; } | |
eff9d7f5 | 25260 | if ${ac_cv_lib_posix_remove+:} false; then : |
3dd30495 | 25261 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
25262 | else |
25263 | ac_check_lib_save_LIBS=$LIBS | |
25264 | LIBS="-lposix $LIBS" | |
3dd30495 | 25265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25266 | /* end confdefs.h. */ |
25267 | ||
47964710 VS |
25268 | /* Override any GCC internal prototype to avoid an error. |
25269 | Use char because int might match the return type of a GCC | |
25270 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
25271 | #ifdef __cplusplus |
25272 | extern "C" | |
25273 | #endif | |
a848cd7e SC |
25274 | char remove (); |
25275 | int | |
25276 | main () | |
25277 | { | |
47964710 | 25278 | return remove (); |
a848cd7e SC |
25279 | ; |
25280 | return 0; | |
25281 | } | |
25282 | _ACEOF | |
3dd30495 | 25283 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
25284 | ac_cv_lib_posix_remove=yes |
25285 | else | |
3dd30495 | 25286 | ac_cv_lib_posix_remove=no |
a848cd7e | 25287 | fi |
3dd30495 VZ |
25288 | rm -f core conftest.err conftest.$ac_objext \ |
25289 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25290 | LIBS=$ac_check_lib_save_LIBS |
25291 | fi | |
3dd30495 VZ |
25292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 |
25293 | $as_echo "$ac_cv_lib_posix_remove" >&6; } | |
eff9d7f5 | 25294 | if test "x$ac_cv_lib_posix_remove" = xyes; then : |
a848cd7e SC |
25295 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
25296 | fi | |
25297 | ||
25298 | fi | |
25299 | ||
25300 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
3dd30495 | 25301 | ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" |
eff9d7f5 | 25302 | if test "x$ac_cv_func_shmat" = xyes; then : |
a848cd7e | 25303 | |
a848cd7e | 25304 | fi |
47964710 | 25305 | |
a848cd7e | 25306 | if test $ac_cv_func_shmat = no; then |
3dd30495 VZ |
25307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 |
25308 | $as_echo_n "checking for shmat in -lipc... " >&6; } | |
eff9d7f5 | 25309 | if ${ac_cv_lib_ipc_shmat+:} false; then : |
3dd30495 | 25310 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
25311 | else |
25312 | ac_check_lib_save_LIBS=$LIBS | |
25313 | LIBS="-lipc $LIBS" | |
3dd30495 | 25314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25315 | /* end confdefs.h. */ |
25316 | ||
47964710 VS |
25317 | /* Override any GCC internal prototype to avoid an error. |
25318 | Use char because int might match the return type of a GCC | |
25319 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
25320 | #ifdef __cplusplus |
25321 | extern "C" | |
25322 | #endif | |
a848cd7e SC |
25323 | char shmat (); |
25324 | int | |
25325 | main () | |
25326 | { | |
47964710 | 25327 | return shmat (); |
a848cd7e SC |
25328 | ; |
25329 | return 0; | |
25330 | } | |
25331 | _ACEOF | |
3dd30495 | 25332 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
25333 | ac_cv_lib_ipc_shmat=yes |
25334 | else | |
3dd30495 | 25335 | ac_cv_lib_ipc_shmat=no |
a848cd7e | 25336 | fi |
3dd30495 VZ |
25337 | rm -f core conftest.err conftest.$ac_objext \ |
25338 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25339 | LIBS=$ac_check_lib_save_LIBS |
25340 | fi | |
3dd30495 VZ |
25341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 |
25342 | $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | |
eff9d7f5 | 25343 | if test "x$ac_cv_lib_ipc_shmat" = xyes; then : |
a848cd7e SC |
25344 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
25345 | fi | |
25346 | ||
25347 | fi | |
25348 | fi | |
25349 | ||
25350 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
25351 | ac_save_LDFLAGS=$LDFLAGS | |
25352 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
25353 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
25354 | # check for ICE first), but we must link in the order -lSM -lICE or | |
25355 | # we get undefined symbols. So assume we have SM if we have ICE. | |
25356 | # These have to be linked with before -lX11, unlike the other | |
25357 | # libraries we check for below, so use a different variable. | |
25358 | # John Interrante, Karl Berry | |
3dd30495 VZ |
25359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 |
25360 | $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | |
eff9d7f5 | 25361 | if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : |
3dd30495 | 25362 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
25363 | else |
25364 | ac_check_lib_save_LIBS=$LIBS | |
25365 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
3dd30495 | 25366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25367 | /* end confdefs.h. */ |
25368 | ||
47964710 VS |
25369 | /* Override any GCC internal prototype to avoid an error. |
25370 | Use char because int might match the return type of a GCC | |
25371 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
25372 | #ifdef __cplusplus |
25373 | extern "C" | |
25374 | #endif | |
a848cd7e SC |
25375 | char IceConnectionNumber (); |
25376 | int | |
25377 | main () | |
25378 | { | |
47964710 | 25379 | return IceConnectionNumber (); |
a848cd7e SC |
25380 | ; |
25381 | return 0; | |
25382 | } | |
25383 | _ACEOF | |
3dd30495 | 25384 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
25385 | ac_cv_lib_ICE_IceConnectionNumber=yes |
25386 | else | |
3dd30495 | 25387 | ac_cv_lib_ICE_IceConnectionNumber=no |
a848cd7e | 25388 | fi |
3dd30495 VZ |
25389 | rm -f core conftest.err conftest.$ac_objext \ |
25390 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25391 | LIBS=$ac_check_lib_save_LIBS |
25392 | fi | |
3dd30495 VZ |
25393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
25394 | $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | |
eff9d7f5 | 25395 | if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : |
a848cd7e SC |
25396 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
25397 | fi | |
25398 | ||
25399 | LDFLAGS=$ac_save_LDFLAGS | |
25400 | ||
25401 | fi | |
25402 | ||
25403 | ||
25404 | if test "$no_x" = "yes"; then | |
3dd30495 | 25405 | as_fn_error $? "X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" "$LINENO" 5 |
a848cd7e SC |
25406 | fi |
25407 | ||
74b84332 VS |
25408 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
25409 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
25410 | AFMINSTALL=afminstall |
25411 | COMPILED_X_PROGRAM=0 | |
25412 | ||
74b84332 VS |
25413 | fi |
25414 | ||
25415 | if test "$wxUSE_X11" = 1; then | |
a848cd7e | 25416 | if test "$wxUSE_NANOX" = "yes"; then |
3dd30495 VZ |
25417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MicroWindows/NanoX distribution" >&5 |
25418 | $as_echo_n "checking for MicroWindows/NanoX distribution... " >&6; } | |
a848cd7e | 25419 | if test "x$MICROWIN" = x ; then |
3dd30495 VZ |
25420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
25421 | $as_echo "not found" >&6; } | |
25422 | as_fn_error $? "Cannot find MicroWindows library. Make sure MICROWIN is set." "$LINENO" 5 | |
a848cd7e | 25423 | else |
3dd30495 VZ |
25424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MICROWIN" >&5 |
25425 | $as_echo "$MICROWIN" >&6; } | |
25426 | $as_echo "#define wxUSE_NANOX 1" >>confdefs.h | |
a848cd7e SC |
25427 | |
25428 | fi | |
25429 | fi | |
25430 | ||
25431 | if test "$wxUSE_UNICODE" = "yes"; then | |
25432 | ||
479c790c VZ |
25433 | |
25434 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
25435 | if test -n "$ac_tool_prefix"; then | |
25436 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
25437 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
25438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
25439 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 25440 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 25441 | $as_echo_n "(cached) " >&6 |
479c790c VZ |
25442 | else |
25443 | case $PKG_CONFIG in | |
25444 | [\\/]* | ?:[\\/]*) | |
25445 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25446 | ;; | |
25447 | *) | |
25448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25449 | for as_dir in $PATH | |
25450 | do | |
25451 | IFS=$as_save_IFS | |
25452 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 25453 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 25454 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
479c790c | 25455 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 25456 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
479c790c VZ |
25457 | break 2 |
25458 | fi | |
25459 | done | |
3dd30495 | 25460 | done |
47964710 | 25461 | IFS=$as_save_IFS |
479c790c VZ |
25462 | |
25463 | ;; | |
25464 | esac | |
25465 | fi | |
25466 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
479c790c | 25467 | if test -n "$PKG_CONFIG"; then |
3dd30495 VZ |
25468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
25469 | $as_echo "$PKG_CONFIG" >&6; } | |
479c790c | 25470 | else |
3dd30495 VZ |
25471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25472 | $as_echo "no" >&6; } | |
479c790c VZ |
25473 | fi |
25474 | ||
47964710 | 25475 | |
479c790c VZ |
25476 | fi |
25477 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
25478 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
25479 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25480 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
25481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
25482 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 25483 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 25484 | $as_echo_n "(cached) " >&6 |
479c790c VZ |
25485 | else |
25486 | case $ac_pt_PKG_CONFIG in | |
25487 | [\\/]* | ?:[\\/]*) | |
25488 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
25489 | ;; | |
25490 | *) | |
25491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25492 | for as_dir in $PATH | |
25493 | do | |
25494 | IFS=$as_save_IFS | |
25495 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 25496 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 25497 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
479c790c | 25498 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 25499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
479c790c VZ |
25500 | break 2 |
25501 | fi | |
25502 | done | |
3dd30495 | 25503 | done |
47964710 | 25504 | IFS=$as_save_IFS |
479c790c VZ |
25505 | |
25506 | ;; | |
25507 | esac | |
25508 | fi | |
25509 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
479c790c | 25510 | if test -n "$ac_pt_PKG_CONFIG"; then |
3dd30495 VZ |
25511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
25512 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
479c790c | 25513 | else |
3dd30495 VZ |
25514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25515 | $as_echo "no" >&6; } | |
479c790c VZ |
25516 | fi |
25517 | ||
47964710 VS |
25518 | if test "x$ac_pt_PKG_CONFIG" = x; then |
25519 | PKG_CONFIG="" | |
25520 | else | |
25521 | case $cross_compiling:$ac_tool_warned in | |
25522 | yes:) | |
3dd30495 VZ |
25523 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
25524 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
25525 | ac_tool_warned=yes ;; |
25526 | esac | |
25527 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
25528 | fi | |
479c790c VZ |
25529 | else |
25530 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
25531 | fi | |
25532 | ||
25533 | fi | |
25534 | if test -n "$PKG_CONFIG"; then | |
25535 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
25536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
25537 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
479c790c | 25538 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
25539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25540 | $as_echo "yes" >&6; } | |
479c790c | 25541 | else |
3dd30495 VZ |
25542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25543 | $as_echo "no" >&6; } | |
479c790c VZ |
25544 | PKG_CONFIG="" |
25545 | fi | |
25546 | ||
25547 | fi | |
25548 | ||
25549 | ||
3ecd9f92 | 25550 | pkg_failed=no |
3dd30495 VZ |
25551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGOX" >&5 |
25552 | $as_echo_n "checking for PANGOX... " >&6; } | |
a848cd7e | 25553 | |
3ecd9f92 MW |
25554 | if test -n "$PKG_CONFIG"; then |
25555 | if test -n "$PANGOX_CFLAGS"; then | |
25556 | pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS" | |
25557 | else | |
25558 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 25559 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangox\""; } >&5 |
3ecd9f92 MW |
25560 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 |
25561 | ac_status=$? | |
3dd30495 VZ |
25562 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
25563 | test $ac_status = 0; }; then | |
3ecd9f92 MW |
25564 | pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null` |
25565 | else | |
25566 | pkg_failed=yes | |
25567 | fi | |
25568 | fi | |
25569 | else | |
25570 | pkg_failed=untried | |
25571 | fi | |
25572 | if test -n "$PKG_CONFIG"; then | |
25573 | if test -n "$PANGOX_LIBS"; then | |
25574 | pkg_cv_PANGOX_LIBS="$PANGOX_LIBS" | |
25575 | else | |
25576 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 25577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangox\""; } >&5 |
3ecd9f92 MW |
25578 | ($PKG_CONFIG --exists --print-errors "pangox") 2>&5 |
25579 | ac_status=$? | |
3dd30495 VZ |
25580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
25581 | test $ac_status = 0; }; then | |
3ecd9f92 MW |
25582 | pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null` |
25583 | else | |
25584 | pkg_failed=yes | |
25585 | fi | |
25586 | fi | |
25587 | else | |
25588 | pkg_failed=untried | |
25589 | fi | |
25590 | ||
25591 | ||
25592 | ||
25593 | if test $pkg_failed = yes; then | |
25594 | ||
25595 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25596 | _pkg_short_errors_supported=yes | |
25597 | else | |
25598 | _pkg_short_errors_supported=no | |
25599 | fi | |
25600 | if test $_pkg_short_errors_supported = yes; then | |
25601 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"` | |
25602 | else | |
25603 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
a848cd7e | 25604 | fi |
3ecd9f92 MW |
25605 | # Put the nasty error message in config.log where it belongs |
25606 | echo "$PANGOX_PKG_ERRORS" >&5 | |
a848cd7e SC |
25607 | |
25608 | ||
3dd30495 | 25609 | as_fn_error $? "pangox library not found, library cannot be compiled in Unicode mode" "$LINENO" 5 |
a848cd7e | 25610 | |
a848cd7e | 25611 | |
3ecd9f92 | 25612 | elif test $pkg_failed = untried; then |
a848cd7e | 25613 | |
3dd30495 | 25614 | as_fn_error $? "pangox library not found, library cannot be compiled in Unicode mode" "$LINENO" 5 |
3ecd9f92 MW |
25615 | |
25616 | ||
25617 | else | |
25618 | PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS | |
25619 | PANGOX_LIBS=$pkg_cv_PANGOX_LIBS | |
3dd30495 VZ |
25620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25621 | $as_echo "yes" >&6; } | |
3ecd9f92 | 25622 | |
9b8888f9 | 25623 | CFLAGS="$PANGOX_CFLAGS $CFLAGS" |
479c790c VZ |
25624 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
25625 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
3ecd9f92 MW |
25626 | |
25627 | fi | |
25628 | ||
25629 | pkg_failed=no | |
3dd30495 VZ |
25630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGOFT2" >&5 |
25631 | $as_echo_n "checking for PANGOFT2... " >&6; } | |
3ecd9f92 MW |
25632 | |
25633 | if test -n "$PKG_CONFIG"; then | |
25634 | if test -n "$PANGOFT2_CFLAGS"; then | |
25635 | pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS" | |
25636 | else | |
25637 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 25638 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5 |
3ecd9f92 MW |
25639 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 |
25640 | ac_status=$? | |
3dd30495 VZ |
25641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
25642 | test $ac_status = 0; }; then | |
3ecd9f92 MW |
25643 | pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null` |
25644 | else | |
25645 | pkg_failed=yes | |
25646 | fi | |
25647 | fi | |
25648 | else | |
25649 | pkg_failed=untried | |
25650 | fi | |
25651 | if test -n "$PKG_CONFIG"; then | |
25652 | if test -n "$PANGOFT2_LIBS"; then | |
25653 | pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS" | |
25654 | else | |
25655 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 25656 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5 |
3ecd9f92 MW |
25657 | ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5 |
25658 | ac_status=$? | |
3dd30495 VZ |
25659 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
25660 | test $ac_status = 0; }; then | |
3ecd9f92 MW |
25661 | pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null` |
25662 | else | |
25663 | pkg_failed=yes | |
25664 | fi | |
25665 | fi | |
25666 | else | |
25667 | pkg_failed=untried | |
25668 | fi | |
25669 | ||
25670 | ||
25671 | ||
25672 | if test $pkg_failed = yes; then | |
25673 | ||
25674 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
25675 | _pkg_short_errors_supported=yes | |
25676 | else | |
25677 | _pkg_short_errors_supported=no | |
25678 | fi | |
25679 | if test $_pkg_short_errors_supported = yes; then | |
25680 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"` | |
25681 | else | |
25682 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
25683 | fi | |
25684 | # Put the nasty error message in config.log where it belongs | |
25685 | echo "$PANGOFT2_PKG_ERRORS" >&5 | |
a848cd7e | 25686 | |
a848cd7e | 25687 | |
3dd30495 VZ |
25688 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 |
25689 | $as_echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
479c790c | 25690 | wxUSE_PRINTING_ARCHITECTURE="no" |
a848cd7e SC |
25691 | |
25692 | ||
3ecd9f92 | 25693 | elif test $pkg_failed = untried; then |
a848cd7e | 25694 | |
3dd30495 VZ |
25695 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 |
25696 | $as_echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
479c790c | 25697 | wxUSE_PRINTING_ARCHITECTURE="no" |
a848cd7e | 25698 | |
a848cd7e | 25699 | |
a848cd7e | 25700 | else |
3ecd9f92 MW |
25701 | PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS |
25702 | PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS | |
3dd30495 VZ |
25703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25704 | $as_echo "yes" >&6; } | |
3ecd9f92 | 25705 | |
9b8888f9 | 25706 | CFLAGS="$PANGOFT2_CFLAGS $CFLAGS" |
479c790c VZ |
25707 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
25708 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
a848cd7e | 25709 | |
a848cd7e | 25710 | fi |
3ecd9f92 MW |
25711 | |
25712 | pkg_failed=no | |
3dd30495 VZ |
25713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGOXFT" >&5 |
25714 | $as_echo_n "checking for PANGOXFT... " >&6; } | |
a848cd7e SC |
25715 | |
25716 | if test -n "$PKG_CONFIG"; then | |
3ecd9f92 MW |
25717 | if test -n "$PANGOXFT_CFLAGS"; then |
25718 | pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS" | |
25719 | else | |
25720 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 25721 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoxft\""; } >&5 |
3ecd9f92 MW |
25722 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 |
25723 | ac_status=$? | |
3dd30495 VZ |
25724 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
25725 | test $ac_status = 0; }; then | |
3ecd9f92 | 25726 | pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null` |
a848cd7e | 25727 | else |
3ecd9f92 MW |
25728 | pkg_failed=yes |
25729 | fi | |
25730 | fi | |
25731 | else | |
25732 | pkg_failed=untried | |
25733 | fi | |
25734 | if test -n "$PKG_CONFIG"; then | |
25735 | if test -n "$PANGOXFT_LIBS"; then | |
25736 | pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS" | |
25737 | else | |
25738 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 25739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoxft\""; } >&5 |
3ecd9f92 MW |
25740 | ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5 |
25741 | ac_status=$? | |
3dd30495 VZ |
25742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
25743 | test $ac_status = 0; }; then | |
3ecd9f92 MW |
25744 | pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null` |
25745 | else | |
25746 | pkg_failed=yes | |
25747 | fi | |
25748 | fi | |
25749 | else | |
25750 | pkg_failed=untried | |
a848cd7e SC |
25751 | fi |
25752 | ||
a848cd7e | 25753 | |
a848cd7e | 25754 | |
3ecd9f92 | 25755 | if test $pkg_failed = yes; then |
a848cd7e | 25756 | |
3ecd9f92 MW |
25757 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
25758 | _pkg_short_errors_supported=yes | |
25759 | else | |
25760 | _pkg_short_errors_supported=no | |
25761 | fi | |
25762 | if test $_pkg_short_errors_supported = yes; then | |
25763 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"` | |
25764 | else | |
25765 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
a848cd7e | 25766 | fi |
3ecd9f92 MW |
25767 | # Put the nasty error message in config.log where it belongs |
25768 | echo "$PANGOXFT_PKG_ERRORS" >&5 | |
a848cd7e SC |
25769 | |
25770 | ||
3dd30495 VZ |
25771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
25772 | $as_echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
3ecd9f92 | 25773 | |
a848cd7e | 25774 | |
3ecd9f92 | 25775 | elif test $pkg_failed = untried; then |
a848cd7e | 25776 | |
3dd30495 VZ |
25777 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 |
25778 | $as_echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
3ecd9f92 MW |
25779 | |
25780 | ||
25781 | else | |
25782 | PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS | |
25783 | PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS | |
3dd30495 VZ |
25784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
25785 | $as_echo "yes" >&6; } | |
a848cd7e | 25786 | |
3dd30495 | 25787 | $as_echo "#define HAVE_PANGO_XFT 1" >>confdefs.h |
4ae1af05 | 25788 | |
9b8888f9 | 25789 | CFLAGS="$PANGOXFT_CFLAGS $CFLAGS" |
479c790c VZ |
25790 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
25791 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
a848cd7e | 25792 | |
3ecd9f92 | 25793 | fi |
479c790c | 25794 | save_LIBS="$LIBS" |
479c790c | 25795 | LIBS="$LIBS $PANGOX_LIBS" |
3dd30495 VZ |
25796 | for ac_func in pango_font_family_is_monospace |
25797 | do : | |
25798 | ac_fn_c_check_func "$LINENO" "pango_font_family_is_monospace" "ac_cv_func_pango_font_family_is_monospace" | |
eff9d7f5 | 25799 | if test "x$ac_cv_func_pango_font_family_is_monospace" = xyes; then : |
304205f1 | 25800 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 25801 | #define HAVE_PANGO_FONT_FAMILY_IS_MONOSPACE 1 |
304205f1 VS |
25802 | _ACEOF |
25803 | ||
25804 | fi | |
25805 | done | |
25806 | ||
479c790c | 25807 | LIBS="$save_LIBS" |
a848cd7e SC |
25808 | fi |
25809 | ||
25810 | wxUSE_UNIVERSAL="yes" | |
25811 | ||
25812 | if test "$wxUSE_NANOX" = "yes"; then | |
25813 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
25814 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
25815 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
25816 | else | |
25817 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
25818 | fi | |
25819 | ||
a848cd7e SC |
25820 | TOOLKIT=X11 |
25821 | GUIDIST=X11_DIST | |
25822 | fi | |
25823 | ||
25824 | if test "$wxUSE_MOTIF" = 1; then | |
3dd30495 VZ |
25825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif/Lesstif headers" >&5 |
25826 | $as_echo_n "checking for Motif/Lesstif headers... " >&6; } | |
a848cd7e | 25827 | |
74b84332 | 25828 | ac_find_includes= |
00eef16d | 25829 | for ac_dir in $SEARCH_INCLUDE /usr/include |
74b84332 VS |
25830 | do |
25831 | if test -f "$ac_dir/Xm/Xm.h"; then | |
25832 | ac_find_includes=$ac_dir | |
25833 | break | |
25834 | fi | |
25835 | done | |
a848cd7e | 25836 | |
74b84332 | 25837 | if test "$ac_find_includes" != "" ; then |
3dd30495 VZ |
25838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ac_find_includes" >&5 |
25839 | $as_echo "found in $ac_find_includes" >&6; } | |
74b84332 VS |
25840 | |
25841 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25842 | ac_path_to_include="" | |
25843 | else | |
25844 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
25845 | result=$? | |
25846 | if test $result = 0; then | |
25847 | ac_path_to_include="" | |
25848 | else | |
25849 | ac_path_to_include=" -I$ac_find_includes" | |
25850 | fi | |
a848cd7e SC |
25851 | fi |
25852 | ||
74b84332 VS |
25853 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
25854 | else | |
9b8888f9 VZ |
25855 | save_CFLAGS=$CFLAGS |
25856 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
e051b34e | 25857 | |
3dd30495 | 25858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25859 | /* end confdefs.h. */ |
25860 | ||
74b84332 VS |
25861 | #include <Xm/Xm.h> |
25862 | ||
a848cd7e SC |
25863 | int |
25864 | main () | |
25865 | { | |
25866 | ||
74b84332 VS |
25867 | int version; |
25868 | version = xmUseVersion; | |
25869 | ||
a848cd7e SC |
25870 | ; |
25871 | return 0; | |
25872 | } | |
25873 | _ACEOF | |
3dd30495 | 25874 | if ac_fn_c_try_compile "$LINENO"; then : |
74b84332 | 25875 | |
3dd30495 VZ |
25876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in default search path" >&5 |
25877 | $as_echo "found in default search path" >&6; } | |
74b84332 VS |
25878 | COMPILED_X_PROGRAM=1 |
25879 | ||
a848cd7e | 25880 | else |
a848cd7e | 25881 | |
3dd30495 VZ |
25882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25883 | $as_echo "no" >&6; } | |
25884 | as_fn_error $? "please set CPPFLAGS to contain the location of Xm/Xm.h" "$LINENO" 5 | |
a848cd7e | 25885 | |
a848cd7e | 25886 | |
a848cd7e | 25887 | fi |
47964710 | 25888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 25889 | |
9b8888f9 | 25890 | CFLAGS=$save_CFLAGS |
74b84332 VS |
25891 | fi |
25892 | ||
0ad5d837 | 25893 | |
3dd30495 VZ |
25894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif/Lesstif library" >&5 |
25895 | $as_echo_n "checking for Motif/Lesstif library... " >&6; } | |
74b84332 | 25896 | |
0ad5d837 | 25897 | ac_find_libraries= |
76ff3d06 | 25898 | for ac_dir in $SEARCH_LIB |
74b84332 | 25899 | do |
3eca31dc | 25900 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
25901 | if test -f "$ac_dir/libXm.$ac_extension"; then |
25902 | ac_find_libraries=$ac_dir | |
25903 | break 2 | |
a848cd7e | 25904 | fi |
74b84332 VS |
25905 | done |
25906 | done | |
a848cd7e | 25907 | |
0ad5d837 VZ |
25908 | |
25909 | if test "x$ac_find_libraries" != "x" ; then | |
3dd30495 VZ |
25910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ac_find_libraries" >&5 |
25911 | $as_echo "found in $ac_find_libraries" >&6; } | |
a848cd7e | 25912 | |
74b84332 | 25913 | |
0ad5d837 | 25914 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 25915 | ac_path_to_link="" |
a848cd7e | 25916 | else |
0ad5d837 VZ |
25917 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
25918 | result=$? | |
25919 | if test $result = 0; then | |
25920 | ac_path_to_link="" | |
25921 | else | |
25922 | ac_path_to_link=" -L$ac_find_libraries" | |
25923 | fi | |
74b84332 VS |
25924 | fi |
25925 | ||
0ad5d837 VZ |
25926 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
25927 | else | |
9b8888f9 VZ |
25928 | save_CFLAGS=$CFLAGS |
25929 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
6f9cf1e6 MW |
25930 | save_LIBS="$LIBS" |
25931 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 25932 | |
3dd30495 | 25933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25934 | /* end confdefs.h. */ |
25935 | ||
0ad5d837 | 25936 | #include <Xm/Xm.h> |
74b84332 | 25937 | |
a848cd7e SC |
25938 | int |
25939 | main () | |
25940 | { | |
74b84332 | 25941 | |
0ad5d837 VZ |
25942 | int version; |
25943 | version = xmUseVersion; | |
74b84332 | 25944 | |
a848cd7e SC |
25945 | ; |
25946 | return 0; | |
25947 | } | |
25948 | _ACEOF | |
3dd30495 | 25949 | if ac_fn_c_try_link "$LINENO"; then : |
74b84332 | 25950 | |
3dd30495 VZ |
25951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in default search path" >&5 |
25952 | $as_echo "found in default search path" >&6; } | |
0ad5d837 | 25953 | COMPILED_X_PROGRAM=1 |
74b84332 | 25954 | |
a848cd7e | 25955 | else |
74b84332 | 25956 | |
3dd30495 VZ |
25957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
25958 | $as_echo "no" >&6; } | |
25959 | as_fn_error $? "please set LDFLAGS to contain the location of libXm" "$LINENO" 5 | |
74b84332 VS |
25960 | |
25961 | ||
25962 | fi | |
3dd30495 VZ |
25963 | rm -f core conftest.err conftest.$ac_objext \ |
25964 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 25965 | |
9b8888f9 | 25966 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 25967 | LIBS="$save_LIBS" |
74b84332 VS |
25968 | fi |
25969 | ||
3dd30495 VZ |
25970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need -lXp and/or -lSM -lICE" >&5 |
25971 | $as_echo_n "checking if we need -lXp and/or -lSM -lICE... " >&6; } | |
74b84332 VS |
25972 | libp_link="" |
25973 | libsm_ice_link="" | |
25974 | libs_found=0 | |
25975 | for libp in "" " -lXp"; do | |
6517fa86 | 25976 | if test "$libs_found" = 0; then |
74b84332 | 25977 | for libsm_ice in "" " -lSM -lICE"; do |
6517fa86 | 25978 | if test "$libs_found" = 0; then |
74b84332 VS |
25979 | save_LIBS="$LIBS" |
25980 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
9b8888f9 VZ |
25981 | save_CFLAGS=$CFLAGS |
25982 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
74b84332 | 25983 | |
3dd30495 | 25984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
25985 | /* end confdefs.h. */ |
25986 | ||
74b84332 VS |
25987 | #include <Xm/Xm.h> |
25988 | #include <Xm/List.h> | |
25989 | ||
a848cd7e SC |
25990 | int |
25991 | main () | |
25992 | { | |
74b84332 VS |
25993 | |
25994 | XmString string = NULL; | |
25995 | Widget w = NULL; | |
25996 | int position = 0; | |
25997 | XmListAddItem(w, string, position); | |
25998 | ||
a848cd7e SC |
25999 | ; |
26000 | return 0; | |
26001 | } | |
26002 | _ACEOF | |
3dd30495 | 26003 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
26004 | |
26005 | libp_link="$libp" | |
26006 | libsm_ice_link="$libsm_ice" | |
3dd30495 VZ |
26007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: need${libp_link}${libsm_ice_link}" >&5 |
26008 | $as_echo "need${libp_link}${libsm_ice_link}" >&6; } | |
a848cd7e SC |
26009 | libs_found=1 |
26010 | ||
a848cd7e | 26011 | fi |
3dd30495 VZ |
26012 | rm -f core conftest.err conftest.$ac_objext \ |
26013 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26014 | |
26015 | LIBS="$save_LIBS" | |
9b8888f9 | 26016 | CFLAGS=$save_CFLAGS |
a848cd7e SC |
26017 | fi |
26018 | done | |
26019 | fi | |
26020 | done | |
26021 | ||
6517fa86 | 26022 | if test "$libs_found" = 0; then |
3dd30495 VZ |
26023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find the right libraries" >&5 |
26024 | $as_echo "can't find the right libraries" >&6; } | |
26025 | as_fn_error $? "can't link a simple motif program" "$LINENO" 5 | |
a848cd7e SC |
26026 | fi |
26027 | ||
3dd30495 VZ |
26028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SgCreateList in -lSgm" >&5 |
26029 | $as_echo_n "checking for SgCreateList in -lSgm... " >&6; } | |
eff9d7f5 | 26030 | if ${ac_cv_lib_Sgm_SgCreateList+:} false; then : |
3dd30495 | 26031 | $as_echo_n "(cached) " >&6 |
62fa8b3a MW |
26032 | else |
26033 | ac_check_lib_save_LIBS=$LIBS | |
26034 | LIBS="-lSgm $LIBS" | |
3dd30495 | 26035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
62fa8b3a MW |
26036 | /* end confdefs.h. */ |
26037 | ||
47964710 VS |
26038 | /* Override any GCC internal prototype to avoid an error. |
26039 | Use char because int might match the return type of a GCC | |
26040 | builtin and then its argument prototype would still apply. */ | |
62fa8b3a MW |
26041 | #ifdef __cplusplus |
26042 | extern "C" | |
26043 | #endif | |
62fa8b3a MW |
26044 | char SgCreateList (); |
26045 | int | |
26046 | main () | |
26047 | { | |
47964710 | 26048 | return SgCreateList (); |
62fa8b3a MW |
26049 | ; |
26050 | return 0; | |
26051 | } | |
26052 | _ACEOF | |
3dd30495 | 26053 | if ac_fn_c_try_link "$LINENO"; then : |
62fa8b3a MW |
26054 | ac_cv_lib_Sgm_SgCreateList=yes |
26055 | else | |
3dd30495 | 26056 | ac_cv_lib_Sgm_SgCreateList=no |
62fa8b3a | 26057 | fi |
3dd30495 VZ |
26058 | rm -f core conftest.err conftest.$ac_objext \ |
26059 | conftest$ac_exeext conftest.$ac_ext | |
62fa8b3a MW |
26060 | LIBS=$ac_check_lib_save_LIBS |
26061 | fi | |
3dd30495 VZ |
26062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Sgm_SgCreateList" >&5 |
26063 | $as_echo "$ac_cv_lib_Sgm_SgCreateList" >&6; } | |
eff9d7f5 | 26064 | if test "x$ac_cv_lib_Sgm_SgCreateList" = xyes; then : |
62fa8b3a MW |
26065 | libsgm_link=" -lSgm" |
26066 | fi | |
26067 | ||
26068 | ||
9b8888f9 VZ |
26069 | save_CFLAGS=$CFLAGS |
26070 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
0ad5d837 | 26071 | |
3dd30495 VZ |
26072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif 2" >&5 |
26073 | $as_echo_n "checking for Motif 2... " >&6; } | |
eff9d7f5 | 26074 | if ${wx_cv_lib_motif2+:} false; then : |
3dd30495 | 26075 | $as_echo_n "(cached) " >&6 |
0ad5d837 | 26076 | else |
3dd30495 | 26077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
26078 | /* end confdefs.h. */ |
26079 | ||
0ad5d837 | 26080 | #include <Xm/Xm.h> |
a848cd7e SC |
26081 | |
26082 | int | |
26083 | main () | |
26084 | { | |
26085 | ||
0ad5d837 VZ |
26086 | #if XmVersion < 2000 |
26087 | Not Motif 2 | |
26088 | #endif | |
a848cd7e SC |
26089 | |
26090 | ; | |
26091 | return 0; | |
26092 | } | |
26093 | _ACEOF | |
3dd30495 | 26094 | if ac_fn_c_try_compile "$LINENO"; then : |
0ad5d837 | 26095 | wx_cv_lib_motif2="yes" |
a848cd7e | 26096 | else |
3dd30495 | 26097 | wx_cv_lib_motif2="no" |
0ad5d837 | 26098 | fi |
47964710 | 26099 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0ad5d837 | 26100 | fi |
3dd30495 VZ |
26101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_lib_motif2" >&5 |
26102 | $as_echo "$wx_cv_lib_motif2" >&6; } | |
0ad5d837 | 26103 | if test "$wx_cv_lib_motif2" = "yes"; then |
3dd30495 | 26104 | $as_echo "#define __WXMOTIF20__ 1" >>confdefs.h |
a848cd7e | 26105 | |
0ad5d837 | 26106 | else |
3dd30495 | 26107 | $as_echo "#define __WXMOTIF20__ 0" >>confdefs.h |
a848cd7e | 26108 | |
0ad5d837 | 26109 | fi |
2113bc77 | 26110 | |
3dd30495 VZ |
26111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Motif is Lesstif" >&5 |
26112 | $as_echo_n "checking whether Motif is Lesstif... " >&6; } | |
eff9d7f5 | 26113 | if ${wx_cv_lib_lesstif+:} false; then : |
3dd30495 | 26114 | $as_echo_n "(cached) " >&6 |
0ad5d837 | 26115 | else |
3dd30495 | 26116 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2113bc77 MW |
26117 | /* end confdefs.h. */ |
26118 | ||
0ad5d837 | 26119 | #include <Xm/Xm.h> |
2113bc77 MW |
26120 | |
26121 | int | |
26122 | main () | |
26123 | { | |
26124 | ||
0ad5d837 VZ |
26125 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
26126 | Not Lesstif | |
26127 | #endif | |
2113bc77 MW |
26128 | |
26129 | ; | |
26130 | return 0; | |
26131 | } | |
26132 | _ACEOF | |
3dd30495 | 26133 | if ac_fn_c_try_compile "$LINENO"; then : |
0ad5d837 | 26134 | wx_cv_lib_lesstif="yes" |
2113bc77 | 26135 | else |
3dd30495 | 26136 | wx_cv_lib_lesstif="no" |
0ad5d837 | 26137 | fi |
47964710 | 26138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2113bc77 | 26139 | |
0ad5d837 | 26140 | fi |
3dd30495 VZ |
26141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_lib_lesstif" >&5 |
26142 | $as_echo "$wx_cv_lib_lesstif" >&6; } | |
0ad5d837 | 26143 | if test "$wx_cv_lib_lesstif" = "yes"; then |
3dd30495 | 26144 | $as_echo "#define __WXLESSTIF__ 1" >>confdefs.h |
0ad5d837 VZ |
26145 | |
26146 | else | |
3dd30495 | 26147 | $as_echo "#define __WXLESSTIF__ 0" >>confdefs.h |
2113bc77 | 26148 | |
0ad5d837 | 26149 | fi |
2113bc77 | 26150 | |
9b8888f9 | 26151 | CFLAGS=$save_CFLAGS |
a848cd7e | 26152 | |
62fa8b3a | 26153 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
26154 | TOOLKIT=MOTIF |
26155 | GUIDIST=MOTIF_DIST | |
26156 | fi | |
26157 | ||
74b84332 | 26158 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e | 26159 | if test "$wxUSE_LIBXPM" = "sys"; then |
3dd30495 VZ |
26160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xpm library" >&5 |
26161 | $as_echo_n "checking for Xpm library... " >&6; } | |
a848cd7e | 26162 | |
0ad5d837 | 26163 | ac_find_libraries= |
76ff3d06 | 26164 | for ac_dir in $SEARCH_LIB |
a848cd7e | 26165 | do |
3eca31dc | 26166 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
26167 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
26168 | ac_find_libraries=$ac_dir | |
26169 | break 2 | |
26170 | fi | |
26171 | done | |
26172 | done | |
26173 | ||
26174 | if test "$ac_find_libraries" != "" ; then | |
26175 | ||
0ad5d837 | 26176 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
26177 | ac_path_to_link="" |
26178 | else | |
0ad5d837 VZ |
26179 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
26180 | result=$? | |
26181 | if test $result = 0; then | |
26182 | ac_path_to_link="" | |
26183 | else | |
26184 | ac_path_to_link=" -L$ac_find_libraries" | |
26185 | fi | |
a848cd7e SC |
26186 | fi |
26187 | ||
26188 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
3dd30495 VZ |
26189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ac_find_libraries" >&5 |
26190 | $as_echo "found in $ac_find_libraries" >&6; } | |
a848cd7e | 26191 | |
3dd30495 VZ |
26192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/xpm.h" >&5 |
26193 | $as_echo_n "checking for X11/xpm.h... " >&6; } | |
eff9d7f5 | 26194 | if ${wx_cv_x11_xpm_h+:} false; then : |
3dd30495 | 26195 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
26196 | else |
26197 | ||
9b8888f9 VZ |
26198 | save_CFLAGS=$CFLAGS |
26199 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
a848cd7e | 26200 | |
3dd30495 | 26201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
26202 | /* end confdefs.h. */ |
26203 | ||
26204 | #include <X11/xpm.h> | |
26205 | ||
26206 | int | |
26207 | main () | |
26208 | { | |
26209 | ||
26210 | int version; | |
26211 | version = XpmLibraryVersion(); | |
26212 | ||
26213 | ; | |
26214 | return 0; | |
26215 | } | |
26216 | _ACEOF | |
3dd30495 | 26217 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
26218 | wx_cv_x11_xpm_h=yes |
26219 | else | |
3dd30495 | 26220 | wx_cv_x11_xpm_h=no |
a848cd7e SC |
26221 | |
26222 | fi | |
47964710 | 26223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 26224 | |
9b8888f9 | 26225 | CFLAGS=$save_CFLAGS |
a848cd7e SC |
26226 | |
26227 | ||
26228 | fi | |
3dd30495 VZ |
26229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_x11_xpm_h" >&5 |
26230 | $as_echo "$wx_cv_x11_xpm_h" >&6; } | |
a848cd7e SC |
26231 | |
26232 | if test $wx_cv_x11_xpm_h = "yes"; then | |
26233 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
3dd30495 | 26234 | $as_echo "#define wxHAVE_LIB_XPM 1" >>confdefs.h |
a848cd7e SC |
26235 | |
26236 | else | |
3dd30495 VZ |
26237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: built-in less efficient XPM decoder will be used" >&5 |
26238 | $as_echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
a848cd7e SC |
26239 | fi |
26240 | fi | |
26241 | ||
26242 | fi | |
26243 | ||
3dd30495 VZ |
26244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
26245 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } | |
eff9d7f5 | 26246 | if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : |
3dd30495 | 26247 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
26248 | else |
26249 | ac_check_lib_save_LIBS=$LIBS | |
26250 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
3dd30495 | 26251 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
26252 | /* end confdefs.h. */ |
26253 | ||
47964710 VS |
26254 | /* Override any GCC internal prototype to avoid an error. |
26255 | Use char because int might match the return type of a GCC | |
26256 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
26257 | #ifdef __cplusplus |
26258 | extern "C" | |
26259 | #endif | |
a848cd7e SC |
26260 | char XShapeQueryExtension (); |
26261 | int | |
26262 | main () | |
26263 | { | |
47964710 | 26264 | return XShapeQueryExtension (); |
a848cd7e SC |
26265 | ; |
26266 | return 0; | |
26267 | } | |
26268 | _ACEOF | |
3dd30495 | 26269 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
26270 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
26271 | else | |
3dd30495 | 26272 | ac_cv_lib_Xext_XShapeQueryExtension=no |
a848cd7e | 26273 | fi |
3dd30495 VZ |
26274 | rm -f core conftest.err conftest.$ac_objext \ |
26275 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26276 | LIBS=$ac_check_lib_save_LIBS |
26277 | fi | |
3dd30495 VZ |
26278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
26279 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
eff9d7f5 | 26280 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : |
a848cd7e SC |
26281 | |
26282 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
26283 | wxHAVE_XEXT_LIB=1 | |
26284 | ||
26285 | fi | |
26286 | ||
26287 | ||
26288 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
9b8888f9 VZ |
26289 | save_CFLAGS="$CFLAGS" |
26290 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" | |
a848cd7e | 26291 | |
3dd30495 VZ |
26292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/extensions/shape.h" >&5 |
26293 | $as_echo_n "checking for X11/extensions/shape.h... " >&6; } | |
26294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e SC |
26295 | /* end confdefs.h. */ |
26296 | ||
26297 | #include <X11/Xlib.h> | |
26298 | #include <X11/extensions/shape.h> | |
26299 | ||
26300 | int | |
26301 | main () | |
26302 | { | |
26303 | ||
26304 | int dummy1, dummy2; | |
26305 | XShapeQueryExtension((Display*)NULL, | |
26306 | (int*)NULL, (int*)NULL); | |
26307 | ||
26308 | ; | |
26309 | return 0; | |
26310 | } | |
26311 | _ACEOF | |
3dd30495 | 26312 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e | 26313 | |
3dd30495 | 26314 | $as_echo "#define HAVE_XSHAPE 1" >>confdefs.h |
a848cd7e | 26315 | |
3dd30495 VZ |
26316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
26317 | $as_echo "found" >&6; } | |
a848cd7e SC |
26318 | |
26319 | else | |
a848cd7e | 26320 | |
3dd30495 VZ |
26321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
26322 | $as_echo "not found" >&6; } | |
a848cd7e SC |
26323 | |
26324 | fi | |
47964710 | 26325 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9b8888f9 | 26326 | CFLAGS="$save_CFLAGS" |
a848cd7e SC |
26327 | |
26328 | fi | |
26329 | fi | |
26330 | ||
2ea057f9 | 26331 | if test "$wxUSE_OSX_CARBON" = 1; then |
3dd30495 VZ |
26332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler syntax to enable Pascal strings" >&5 |
26333 | $as_echo_n "checking for compiler syntax to enable Pascal strings... " >&6; } | |
a848cd7e | 26334 | if test "$GCC" = yes; then |
3dd30495 VZ |
26335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc" >&5 |
26336 | $as_echo "gcc" >&6; } | |
a848cd7e SC |
26337 | CPPFLAGS_PASCAL="-fpascal-strings" |
26338 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
3dd30495 VZ |
26339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: xlc" >&5 |
26340 | $as_echo "xlc" >&6; } | |
a848cd7e SC |
26341 | CPPFLAGS_PASCAL="-qmacpstr" |
26342 | else | |
3dd30495 VZ |
26343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
26344 | $as_echo "none" >&6; } | |
a848cd7e SC |
26345 | fi |
26346 | ||
1e9e8aba | 26347 | if test "x$wxUSE_UNIX" = "xyes"; then |
9ed154da | 26348 | CPPFLAGS="$CPPFLAGS_PASCAL -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 26349 | else |
9ed154da | 26350 | CPPFLAGS="$CPPFLAGS_PASCAL -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 26351 | fi |
a848cd7e | 26352 | |
2ea057f9 SC |
26353 | TOOLKIT=OSX_CARBON |
26354 | GUIDIST=OSX_CARBON_DIST | |
dd21ced8 | 26355 | WXBASEPORT="_carbon" |
17005cd7 VZ |
26356 | |
26357 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__" | |
a848cd7e SC |
26358 | fi |
26359 | ||
2ea057f9 SC |
26360 | if test "$wxUSE_OSX_COCOA" = 1; then |
26361 | TOOLKIT=OSX_COCOA | |
26362 | GUIDIST=OSX_COCOA_DIST | |
17005cd7 VZ |
26363 | |
26364 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMAC__ -D__WXOSX__" | |
2ea057f9 SC |
26365 | fi |
26366 | ||
80aa2a2f VZ |
26367 | if test "$wxUSE_OSX_IPHONE" = 1; then |
26368 | TOOLKIT=OSX_IPHONE | |
26369 | fi | |
26370 | ||
f10f4c87 | 26371 | if test "$wxUSE_OLD_COCOA" = 1; then |
a848cd7e SC |
26372 | TOOLKIT=COCOA |
26373 | GUIDIST=COCOA_DIST | |
26374 | fi | |
26375 | ||
26376 | if test "$wxUSE_PM" = 1; then | |
26377 | TOOLKIT=PM | |
de59c161 | 26378 | GUIDIST=PM_DIST |
3dd30495 VZ |
26379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type SPBCDATA" >&5 |
26380 | $as_echo_n "checking for type SPBCDATA... " >&6; } | |
eff9d7f5 | 26381 | if ${wx_cv_spbcdata+:} false; then : |
3dd30495 | 26382 | $as_echo_n "(cached) " >&6 |
de59c161 RD |
26383 | else |
26384 | ||
3dd30495 | 26385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
de59c161 RD |
26386 | /* end confdefs.h. */ |
26387 | ||
26388 | #define INCL_PM | |
26389 | #include <os2.h> | |
26390 | ||
26391 | int | |
26392 | main () | |
26393 | { | |
26394 | ||
26395 | SPBCDATA test; | |
26396 | ||
26397 | ; | |
26398 | return 0; | |
26399 | } | |
26400 | _ACEOF | |
3dd30495 | 26401 | if ac_fn_c_try_compile "$LINENO"; then : |
de59c161 RD |
26402 | wx_cv_spbcdata=yes |
26403 | else | |
3dd30495 | 26404 | wx_cv_spbcdata=no |
de59c161 RD |
26405 | |
26406 | fi | |
47964710 | 26407 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
26408 | |
26409 | ||
26410 | fi | |
3dd30495 VZ |
26411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_spbcdata" >&5 |
26412 | $as_echo "$wx_cv_spbcdata" >&6; } | |
de59c161 RD |
26413 | |
26414 | if test $wx_cv_spbcdata = "yes"; then | |
3dd30495 | 26415 | $as_echo "#define HAVE_SPBCDATA 1" >>confdefs.h |
de59c161 RD |
26416 | |
26417 | fi | |
a848cd7e SC |
26418 | fi |
26419 | ||
26420 | if test "$TOOLKIT" = "PM" ; then | |
26421 | TOOLKIT_DIR="os2" | |
26422 | else | |
435a5ad0 | 26423 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr '[A-Z]' '[a-z]'` |
a848cd7e SC |
26424 | fi |
26425 | ||
a848cd7e | 26426 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
26427 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
26428 | WIDGET_SET=univ | |
a848cd7e SC |
26429 | fi |
26430 | ||
26431 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
26432 | DISTDIR="wx\$(TOOLKIT)" | |
26433 | else | |
26434 | USE_GUI=0 | |
26435 | ||
26436 | TOOLKIT_DIR="base" | |
26437 | ||
26438 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 26439 | TOOLKIT="MSW" |
a848cd7e SC |
26440 | fi |
26441 | ||
a848cd7e SC |
26442 | GUIDIST="BASE_DIST" |
26443 | DISTDIR="wxBase" | |
26444 | fi | |
26445 | ||
26446 | ||
ca4c9b7e | 26447 | |
d12aef51 VZ |
26448 | if test "$wxUSE_GUI" = "yes"; then |
26449 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
3dd30495 VZ |
26450 | for ac_header in X11/Xlib.h |
26451 | do : | |
26452 | ac_fn_c_check_header_compile "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" " | |
26453 | " | |
eff9d7f5 | 26454 | if test "x$ac_cv_header_X11_Xlib_h" = xyes; then : |
1f7e12cc | 26455 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 26456 | #define HAVE_X11_XLIB_H 1 |
1f7e12cc DE |
26457 | _ACEOF |
26458 | ||
26459 | fi | |
7fd3acaf | 26460 | |
1f7e12cc | 26461 | done |
d12aef51 | 26462 | |
3dd30495 VZ |
26463 | for ac_header in X11/XKBlib.h |
26464 | do : | |
26465 | ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" " | |
d12aef51 VZ |
26466 | #if HAVE_X11_XLIB_H |
26467 | #include <X11/Xlib.h> | |
26468 | #endif | |
26469 | ||
3dd30495 | 26470 | " |
eff9d7f5 | 26471 | if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then : |
1f7e12cc | 26472 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 26473 | #define HAVE_X11_XKBLIB_H 1 |
1f7e12cc DE |
26474 | _ACEOF |
26475 | ||
26476 | fi | |
d12aef51 | 26477 | |
1f7e12cc | 26478 | done |
d12aef51 VZ |
26479 | |
26480 | fi | |
26481 | fi | |
26482 | ||
a848cd7e SC |
26483 | |
26484 | ||
bfd62c8c | 26485 | USE_XINERAMA=0 |
a848cd7e | 26486 | if test "$wxUSE_DISPLAY" = "yes"; then |
9dc44eff | 26487 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$WXGTK1" = 1; then |
d0260bd8 VZ |
26488 | |
26489 | ac_find_libraries= | |
26490 | ||
26491 | fl_pkgname=`echo "Xinerama" | tr [:upper:] [:lower:]` | |
26492 | ||
26493 | ||
26494 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
26495 | if test -n "$ac_tool_prefix"; then | |
26496 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
26497 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
26498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
26499 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 26500 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 26501 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
26502 | else |
26503 | case $PKG_CONFIG in | |
26504 | [\\/]* | ?:[\\/]*) | |
26505 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26506 | ;; | |
26507 | *) | |
26508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26509 | for as_dir in $PATH | |
26510 | do | |
26511 | IFS=$as_save_IFS | |
26512 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 26513 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 26514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 26515 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 26516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
26517 | break 2 |
26518 | fi | |
26519 | done | |
3dd30495 | 26520 | done |
d0260bd8 VZ |
26521 | IFS=$as_save_IFS |
26522 | ||
26523 | ;; | |
26524 | esac | |
26525 | fi | |
26526 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26527 | if test -n "$PKG_CONFIG"; then | |
3dd30495 VZ |
26528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
26529 | $as_echo "$PKG_CONFIG" >&6; } | |
d0260bd8 | 26530 | else |
3dd30495 VZ |
26531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26532 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
26533 | fi |
26534 | ||
26535 | ||
26536 | fi | |
26537 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
26538 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
26539 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26540 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
26541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
26542 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 26543 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 26544 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
26545 | else |
26546 | case $ac_pt_PKG_CONFIG in | |
26547 | [\\/]* | ?:[\\/]*) | |
26548 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
26549 | ;; | |
26550 | *) | |
26551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26552 | for as_dir in $PATH | |
26553 | do | |
26554 | IFS=$as_save_IFS | |
26555 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 26556 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 26557 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 26558 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 26559 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
26560 | break 2 |
26561 | fi | |
26562 | done | |
3dd30495 | 26563 | done |
d0260bd8 VZ |
26564 | IFS=$as_save_IFS |
26565 | ||
26566 | ;; | |
26567 | esac | |
26568 | fi | |
26569 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
26570 | if test -n "$ac_pt_PKG_CONFIG"; then | |
3dd30495 VZ |
26571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
26572 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
d0260bd8 | 26573 | else |
3dd30495 VZ |
26574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26575 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
26576 | fi |
26577 | ||
26578 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
26579 | PKG_CONFIG="" | |
26580 | else | |
26581 | case $cross_compiling:$ac_tool_warned in | |
26582 | yes:) | |
3dd30495 VZ |
26583 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
26584 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0260bd8 VZ |
26585 | ac_tool_warned=yes ;; |
26586 | esac | |
26587 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
26588 | fi | |
26589 | else | |
26590 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
26591 | fi | |
26592 | ||
26593 | fi | |
26594 | if test -n "$PKG_CONFIG"; then | |
26595 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
26596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
26597 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
d0260bd8 | 26598 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
26599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
26600 | $as_echo "yes" >&6; } | |
d0260bd8 | 26601 | else |
3dd30495 VZ |
26602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26603 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
26604 | PKG_CONFIG="" |
26605 | fi | |
26606 | ||
26607 | fi 6> /dev/null | |
26608 | ||
26609 | pkg_failed=no | |
3dd30495 VZ |
26610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xinerama" >&5 |
26611 | $as_echo_n "checking for Xinerama... " >&6; } | |
a848cd7e | 26612 | |
d0260bd8 VZ |
26613 | if test -n "$PKG_CONFIG"; then |
26614 | if test -n "$Xinerama_CFLAGS"; then | |
26615 | pkg_cv_Xinerama_CFLAGS="$Xinerama_CFLAGS" | |
26616 | else | |
26617 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 26618 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
26619 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
26620 | ac_status=$? | |
3dd30495 VZ |
26621 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
26622 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
26623 | pkg_cv_Xinerama_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null` |
26624 | else | |
26625 | pkg_failed=yes | |
26626 | fi | |
26627 | fi | |
26628 | else | |
26629 | pkg_failed=untried | |
26630 | fi | |
26631 | if test -n "$PKG_CONFIG"; then | |
26632 | if test -n "$Xinerama_LIBS"; then | |
26633 | pkg_cv_Xinerama_LIBS="$Xinerama_LIBS" | |
26634 | else | |
26635 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 26636 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
26637 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
26638 | ac_status=$? | |
3dd30495 VZ |
26639 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
26640 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
26641 | pkg_cv_Xinerama_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null` |
26642 | else | |
26643 | pkg_failed=yes | |
26644 | fi | |
26645 | fi | |
26646 | else | |
26647 | pkg_failed=untried | |
26648 | fi | |
26649 | ||
26650 | ||
26651 | ||
26652 | if test $pkg_failed = yes; then | |
26653 | ||
26654 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
26655 | _pkg_short_errors_supported=yes | |
26656 | else | |
26657 | _pkg_short_errors_supported=no | |
26658 | fi | |
26659 | if test $_pkg_short_errors_supported = yes; then | |
26660 | Xinerama_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"` | |
26661 | else | |
26662 | Xinerama_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"` | |
26663 | fi | |
26664 | # Put the nasty error message in config.log where it belongs | |
26665 | echo "$Xinerama_PKG_ERRORS" >&5 | |
26666 | ||
26667 | ||
26668 | if test "x$ac_find_libraries" = "x"; then | |
26669 | if test "xXineramaQueryScreens" != "x"; then | |
3dd30495 VZ |
26670 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5 |
26671 | $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; } | |
eff9d7f5 | 26672 | if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then : |
3dd30495 | 26673 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
26674 | else |
26675 | ac_check_lib_save_LIBS=$LIBS | |
26676 | LIBS="-lXinerama $LIBS" | |
3dd30495 | 26677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
26678 | /* end confdefs.h. */ |
26679 | ||
26680 | /* Override any GCC internal prototype to avoid an error. | |
26681 | Use char because int might match the return type of a GCC | |
26682 | builtin and then its argument prototype would still apply. */ | |
26683 | #ifdef __cplusplus | |
26684 | extern "C" | |
26685 | #endif | |
26686 | char XineramaQueryScreens (); | |
26687 | int | |
26688 | main () | |
26689 | { | |
26690 | return XineramaQueryScreens (); | |
26691 | ; | |
26692 | return 0; | |
26693 | } | |
26694 | _ACEOF | |
3dd30495 | 26695 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
26696 | ac_cv_lib_Xinerama_XineramaQueryScreens=yes |
26697 | else | |
3dd30495 | 26698 | ac_cv_lib_Xinerama_XineramaQueryScreens=no |
d0260bd8 | 26699 | fi |
3dd30495 VZ |
26700 | rm -f core conftest.err conftest.$ac_objext \ |
26701 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
26702 | LIBS=$ac_check_lib_save_LIBS |
26703 | fi | |
3dd30495 VZ |
26704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 |
26705 | $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; } | |
eff9d7f5 | 26706 | if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then : |
d0260bd8 VZ |
26707 | ac_find_libraries="std" |
26708 | fi | |
26709 | ||
26710 | fi | |
26711 | fi | |
26712 | ||
26713 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
26714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
26715 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
26716 | |
26717 | ac_find_libraries= | |
76ff3d06 | 26718 | for ac_dir in $SEARCH_LIB |
d0260bd8 VZ |
26719 | do |
26720 | for ac_extension in a so sl dylib dll.a; do | |
26721 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26722 | ac_find_libraries=$ac_dir | |
26723 | break 2 | |
26724 | fi | |
26725 | done | |
26726 | done | |
26727 | ||
26728 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
26729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
26730 | $as_echo "yes" >&6; } | |
d0260bd8 | 26731 | else |
3dd30495 VZ |
26732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26733 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
26734 | fi |
26735 | fi | |
26736 | ||
26737 | elif test $pkg_failed = untried; then | |
26738 | ||
26739 | if test "x$ac_find_libraries" = "x"; then | |
26740 | if test "xXineramaQueryScreens" != "x"; then | |
3dd30495 VZ |
26741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5 |
26742 | $as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; } | |
eff9d7f5 | 26743 | if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then : |
3dd30495 | 26744 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
26745 | else |
26746 | ac_check_lib_save_LIBS=$LIBS | |
26747 | LIBS="-lXinerama $LIBS" | |
3dd30495 | 26748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
26749 | /* end confdefs.h. */ |
26750 | ||
26751 | /* Override any GCC internal prototype to avoid an error. | |
26752 | Use char because int might match the return type of a GCC | |
26753 | builtin and then its argument prototype would still apply. */ | |
26754 | #ifdef __cplusplus | |
26755 | extern "C" | |
26756 | #endif | |
26757 | char XineramaQueryScreens (); | |
26758 | int | |
26759 | main () | |
26760 | { | |
26761 | return XineramaQueryScreens (); | |
26762 | ; | |
26763 | return 0; | |
26764 | } | |
26765 | _ACEOF | |
3dd30495 | 26766 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
26767 | ac_cv_lib_Xinerama_XineramaQueryScreens=yes |
26768 | else | |
3dd30495 | 26769 | ac_cv_lib_Xinerama_XineramaQueryScreens=no |
d0260bd8 | 26770 | fi |
3dd30495 VZ |
26771 | rm -f core conftest.err conftest.$ac_objext \ |
26772 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
26773 | LIBS=$ac_check_lib_save_LIBS |
26774 | fi | |
3dd30495 VZ |
26775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 |
26776 | $as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; } | |
eff9d7f5 | 26777 | if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then : |
d0260bd8 VZ |
26778 | ac_find_libraries="std" |
26779 | fi | |
26780 | ||
26781 | fi | |
26782 | fi | |
26783 | ||
26784 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
26785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
26786 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 | 26787 | |
0ad5d837 | 26788 | ac_find_libraries= |
76ff3d06 | 26789 | for ac_dir in $SEARCH_LIB |
0ad5d837 VZ |
26790 | do |
26791 | for ac_extension in a so sl dylib dll.a; do | |
26792 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
26793 | ac_find_libraries=$ac_dir | |
26794 | break 2 | |
26795 | fi | |
26796 | done | |
26797 | done | |
26798 | ||
d0260bd8 | 26799 | if test "x$ac_find_libraries" != "x"; then |
3dd30495 VZ |
26800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
26801 | $as_echo "yes" >&6; } | |
d0260bd8 | 26802 | else |
3dd30495 VZ |
26803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26804 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
26805 | fi |
26806 | fi | |
26807 | ||
26808 | else | |
26809 | Xinerama_CFLAGS=$pkg_cv_Xinerama_CFLAGS | |
26810 | Xinerama_LIBS=$pkg_cv_Xinerama_LIBS | |
3dd30495 VZ |
26811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
26812 | $as_echo "yes" >&6; } | |
d0260bd8 VZ |
26813 | |
26814 | ac_find_libraries="std" | |
26815 | ||
26816 | eval ac_find_cflags=\$Xinerama_CFLAGS | |
26817 | eval fl_libs=\$Xinerama_LIBS | |
26818 | ||
26819 | for fl_path in $fl_libs | |
26820 | do | |
26821 | if test `echo "$fl_path" | cut -c 1-2` = "-L"; then | |
26822 | ac_find_libraries=`echo "$fl_path" | cut -c 3-` | |
26823 | fi | |
26824 | done | |
26825 | ||
26826 | fi | |
26827 | ||
a848cd7e | 26828 | if test "$ac_find_libraries" != "" ; then |
d0260bd8 VZ |
26829 | if test "$ac_find_libraries" != "std" ; then |
26830 | ||
26831 | if test "$ac_find_libraries" = "default location"; then | |
26832 | ac_path_to_link="" | |
26833 | else | |
26834 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26835 | result=$? | |
26836 | if test $result = 0; then | |
26837 | ac_path_to_link="" | |
26838 | else | |
26839 | ac_path_to_link=" -L$ac_find_libraries" | |
26840 | fi | |
26841 | fi | |
26842 | ||
26843 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26844 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
26845 | fi | |
26846 | fi | |
26847 | USE_XINERAMA=1 | |
26848 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
26849 | else | |
3dd30495 VZ |
26850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
26851 | $as_echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
d0260bd8 VZ |
26852 | wxUSE_DISPLAY="no" |
26853 | fi | |
26854 | elif test "$wxUSE_MSW" = 1; then | |
3dd30495 VZ |
26855 | ac_fn_c_check_header_compile "$LINENO" "ddraw.h" "ac_cv_header_ddraw_h" "#include <windows.h> |
26856 | " | |
eff9d7f5 | 26857 | if test "x$ac_cv_header_ddraw_h" = xyes; then : |
d0260bd8 | 26858 | |
d0260bd8 | 26859 | fi |
d0260bd8 VZ |
26860 | |
26861 | ||
26862 | fi | |
26863 | fi | |
26864 | ||
26865 | if test "$wxUSE_DISPLAY" = "yes"; then | |
26866 | if test "$USE_XINERAMA" = 1 -o "$wxUSE_GTK" = 1; then | |
26867 | ||
26868 | ac_find_libraries= | |
26869 | ||
26870 | fl_pkgname=`echo "Xxf86vm" | tr [:upper:] [:lower:]` | |
26871 | ||
26872 | ||
26873 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
26874 | if test -n "$ac_tool_prefix"; then | |
26875 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
26876 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
26877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
26878 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 26879 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 26880 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
26881 | else |
26882 | case $PKG_CONFIG in | |
26883 | [\\/]* | ?:[\\/]*) | |
26884 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26885 | ;; | |
26886 | *) | |
26887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26888 | for as_dir in $PATH | |
26889 | do | |
26890 | IFS=$as_save_IFS | |
26891 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 26892 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 26893 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 26894 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 26895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
26896 | break 2 |
26897 | fi | |
26898 | done | |
3dd30495 | 26899 | done |
d0260bd8 VZ |
26900 | IFS=$as_save_IFS |
26901 | ||
26902 | ;; | |
26903 | esac | |
26904 | fi | |
26905 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26906 | if test -n "$PKG_CONFIG"; then | |
3dd30495 VZ |
26907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
26908 | $as_echo "$PKG_CONFIG" >&6; } | |
d0260bd8 | 26909 | else |
3dd30495 VZ |
26910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26911 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
26912 | fi |
26913 | ||
26914 | ||
26915 | fi | |
26916 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
26917 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
26918 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26919 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
26920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
26921 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 26922 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 26923 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
26924 | else |
26925 | case $ac_pt_PKG_CONFIG in | |
26926 | [\\/]* | ?:[\\/]*) | |
26927 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
26928 | ;; | |
26929 | *) | |
26930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26931 | for as_dir in $PATH | |
26932 | do | |
26933 | IFS=$as_save_IFS | |
26934 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 26935 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 26936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 26937 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 26938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
26939 | break 2 |
26940 | fi | |
26941 | done | |
3dd30495 | 26942 | done |
d0260bd8 VZ |
26943 | IFS=$as_save_IFS |
26944 | ||
26945 | ;; | |
26946 | esac | |
26947 | fi | |
26948 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
26949 | if test -n "$ac_pt_PKG_CONFIG"; then | |
3dd30495 VZ |
26950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
26951 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
d0260bd8 | 26952 | else |
3dd30495 VZ |
26953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26954 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
26955 | fi |
26956 | ||
26957 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
26958 | PKG_CONFIG="" | |
26959 | else | |
26960 | case $cross_compiling:$ac_tool_warned in | |
26961 | yes:) | |
3dd30495 VZ |
26962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
26963 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0260bd8 VZ |
26964 | ac_tool_warned=yes ;; |
26965 | esac | |
26966 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
26967 | fi | |
26968 | else | |
26969 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
26970 | fi | |
26971 | ||
26972 | fi | |
26973 | if test -n "$PKG_CONFIG"; then | |
26974 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
26975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
26976 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
d0260bd8 | 26977 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
26978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
26979 | $as_echo "yes" >&6; } | |
d0260bd8 | 26980 | else |
3dd30495 VZ |
26981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
26982 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
26983 | PKG_CONFIG="" |
26984 | fi | |
26985 | ||
26986 | fi 6> /dev/null | |
26987 | ||
26988 | pkg_failed=no | |
3dd30495 VZ |
26989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xxf86vm" >&5 |
26990 | $as_echo_n "checking for Xxf86vm... " >&6; } | |
d0260bd8 VZ |
26991 | |
26992 | if test -n "$PKG_CONFIG"; then | |
26993 | if test -n "$Xxf86vm_CFLAGS"; then | |
26994 | pkg_cv_Xxf86vm_CFLAGS="$Xxf86vm_CFLAGS" | |
26995 | else | |
26996 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 26997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
26998 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
26999 | ac_status=$? | |
3dd30495 VZ |
27000 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
27001 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
27002 | pkg_cv_Xxf86vm_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null` |
27003 | else | |
27004 | pkg_failed=yes | |
27005 | fi | |
27006 | fi | |
27007 | else | |
27008 | pkg_failed=untried | |
27009 | fi | |
27010 | if test -n "$PKG_CONFIG"; then | |
27011 | if test -n "$Xxf86vm_LIBS"; then | |
27012 | pkg_cv_Xxf86vm_LIBS="$Xxf86vm_LIBS" | |
27013 | else | |
27014 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 27015 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
27016 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
27017 | ac_status=$? | |
3dd30495 VZ |
27018 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
27019 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
27020 | pkg_cv_Xxf86vm_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null` |
27021 | else | |
27022 | pkg_failed=yes | |
27023 | fi | |
27024 | fi | |
27025 | else | |
27026 | pkg_failed=untried | |
27027 | fi | |
27028 | ||
27029 | ||
27030 | ||
27031 | if test $pkg_failed = yes; then | |
27032 | ||
27033 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27034 | _pkg_short_errors_supported=yes | |
27035 | else | |
27036 | _pkg_short_errors_supported=no | |
27037 | fi | |
27038 | if test $_pkg_short_errors_supported = yes; then | |
27039 | Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"` | |
27040 | else | |
27041 | Xxf86vm_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"` | |
27042 | fi | |
27043 | # Put the nasty error message in config.log where it belongs | |
27044 | echo "$Xxf86vm_PKG_ERRORS" >&5 | |
27045 | ||
27046 | ||
27047 | if test "x$ac_find_libraries" = "x"; then | |
27048 | if test "xXF86VidModeQueryExtension" != "x"; then | |
3dd30495 VZ |
27049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
27050 | $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; } | |
eff9d7f5 | 27051 | if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then : |
3dd30495 | 27052 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27053 | else |
27054 | ac_check_lib_save_LIBS=$LIBS | |
27055 | LIBS="-lXxf86vm $LIBS" | |
3dd30495 | 27056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
27057 | /* end confdefs.h. */ |
27058 | ||
27059 | /* Override any GCC internal prototype to avoid an error. | |
27060 | Use char because int might match the return type of a GCC | |
27061 | builtin and then its argument prototype would still apply. */ | |
27062 | #ifdef __cplusplus | |
27063 | extern "C" | |
27064 | #endif | |
27065 | char XF86VidModeQueryExtension (); | |
27066 | int | |
27067 | main () | |
27068 | { | |
27069 | return XF86VidModeQueryExtension (); | |
27070 | ; | |
27071 | return 0; | |
27072 | } | |
27073 | _ACEOF | |
3dd30495 | 27074 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
27075 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
27076 | else | |
3dd30495 | 27077 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
d0260bd8 | 27078 | fi |
3dd30495 VZ |
27079 | rm -f core conftest.err conftest.$ac_objext \ |
27080 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
27081 | LIBS=$ac_check_lib_save_LIBS |
27082 | fi | |
3dd30495 VZ |
27083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
27084 | $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; } | |
eff9d7f5 | 27085 | if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then : |
d0260bd8 VZ |
27086 | ac_find_libraries="std" |
27087 | fi | |
27088 | ||
27089 | fi | |
27090 | fi | |
27091 | ||
27092 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
27093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
27094 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
27095 | |
27096 | ac_find_libraries= | |
76ff3d06 | 27097 | for ac_dir in $SEARCH_LIB |
d0260bd8 VZ |
27098 | do |
27099 | for ac_extension in a so sl dylib dll.a; do | |
27100 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27101 | ac_find_libraries=$ac_dir | |
27102 | break 2 | |
27103 | fi | |
27104 | done | |
27105 | done | |
27106 | ||
27107 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
27108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27109 | $as_echo "yes" >&6; } | |
d0260bd8 | 27110 | else |
3dd30495 VZ |
27111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27112 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27113 | fi |
27114 | fi | |
27115 | ||
27116 | elif test $pkg_failed = untried; then | |
27117 | ||
27118 | if test "x$ac_find_libraries" = "x"; then | |
27119 | if test "xXF86VidModeQueryExtension" != "x"; then | |
3dd30495 VZ |
27120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
27121 | $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; } | |
eff9d7f5 | 27122 | if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then : |
3dd30495 | 27123 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27124 | else |
27125 | ac_check_lib_save_LIBS=$LIBS | |
27126 | LIBS="-lXxf86vm $LIBS" | |
3dd30495 | 27127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
27128 | /* end confdefs.h. */ |
27129 | ||
27130 | /* Override any GCC internal prototype to avoid an error. | |
27131 | Use char because int might match the return type of a GCC | |
27132 | builtin and then its argument prototype would still apply. */ | |
27133 | #ifdef __cplusplus | |
27134 | extern "C" | |
27135 | #endif | |
27136 | char XF86VidModeQueryExtension (); | |
27137 | int | |
27138 | main () | |
27139 | { | |
27140 | return XF86VidModeQueryExtension (); | |
27141 | ; | |
27142 | return 0; | |
27143 | } | |
27144 | _ACEOF | |
3dd30495 | 27145 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
27146 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
27147 | else | |
3dd30495 | 27148 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
d0260bd8 | 27149 | fi |
3dd30495 VZ |
27150 | rm -f core conftest.err conftest.$ac_objext \ |
27151 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
27152 | LIBS=$ac_check_lib_save_LIBS |
27153 | fi | |
3dd30495 VZ |
27154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
27155 | $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; } | |
eff9d7f5 | 27156 | if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then : |
d0260bd8 VZ |
27157 | ac_find_libraries="std" |
27158 | fi | |
27159 | ||
27160 | fi | |
27161 | fi | |
27162 | ||
27163 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
27164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
27165 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
27166 | |
27167 | ac_find_libraries= | |
76ff3d06 | 27168 | for ac_dir in $SEARCH_LIB |
d0260bd8 VZ |
27169 | do |
27170 | for ac_extension in a so sl dylib dll.a; do | |
27171 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
27172 | ac_find_libraries=$ac_dir | |
27173 | break 2 | |
27174 | fi | |
27175 | done | |
27176 | done | |
27177 | ||
27178 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
27179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27180 | $as_echo "yes" >&6; } | |
d0260bd8 | 27181 | else |
3dd30495 VZ |
27182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27183 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27184 | fi |
27185 | fi | |
27186 | ||
27187 | else | |
27188 | Xxf86vm_CFLAGS=$pkg_cv_Xxf86vm_CFLAGS | |
27189 | Xxf86vm_LIBS=$pkg_cv_Xxf86vm_LIBS | |
3dd30495 VZ |
27190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27191 | $as_echo "yes" >&6; } | |
d0260bd8 VZ |
27192 | |
27193 | ac_find_libraries="std" | |
27194 | ||
27195 | eval ac_find_cflags=\$Xxf86vm_CFLAGS | |
27196 | eval fl_libs=\$Xxf86vm_LIBS | |
27197 | ||
27198 | for fl_path in $fl_libs | |
27199 | do | |
27200 | if test `echo "$fl_path" | cut -c 1-2` = "-L"; then | |
27201 | ac_find_libraries=`echo "$fl_path" | cut -c 3-` | |
27202 | fi | |
27203 | done | |
27204 | ||
27205 | fi | |
27206 | ||
27207 | if test "$ac_find_libraries" != "" ; then | |
3dd30495 VZ |
27208 | for ac_header in X11/extensions/xf86vmode.h |
27209 | do : | |
27210 | ac_fn_c_check_header_compile "$LINENO" "X11/extensions/xf86vmode.h" "ac_cv_header_X11_extensions_xf86vmode_h" " | |
d0260bd8 VZ |
27211 | #if HAVE_X11_XLIB_H |
27212 | #include <X11/Xlib.h> | |
27213 | #endif | |
27214 | ||
3dd30495 | 27215 | " |
eff9d7f5 | 27216 | if test "x$ac_cv_header_X11_extensions_xf86vmode_h" = xyes; then : |
d0260bd8 | 27217 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 27218 | #define HAVE_X11_EXTENSIONS_XF86VMODE_H 1 |
d0260bd8 VZ |
27219 | _ACEOF |
27220 | ||
27221 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
27222 | ||
27223 | fi | |
27224 | ||
27225 | done | |
27226 | ||
27227 | fi | |
27228 | fi | |
27229 | fi | |
27230 | ||
27231 | if test "$wxUSE_DETECT_SM" = "yes"; then | |
27232 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1; then | |
27233 | ||
27234 | ac_find_libraries= | |
27235 | ||
27236 | fl_pkgname=`echo "SM" | tr [:upper:] [:lower:]` | |
27237 | ||
27238 | ||
27239 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
27240 | if test -n "$ac_tool_prefix"; then | |
27241 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
27242 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
27243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
27244 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 27245 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 27246 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27247 | else |
27248 | case $PKG_CONFIG in | |
27249 | [\\/]* | ?:[\\/]*) | |
27250 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27251 | ;; | |
27252 | *) | |
27253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27254 | for as_dir in $PATH | |
27255 | do | |
27256 | IFS=$as_save_IFS | |
27257 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 27258 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 27259 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 27260 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 27261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
27262 | break 2 |
27263 | fi | |
27264 | done | |
3dd30495 | 27265 | done |
d0260bd8 VZ |
27266 | IFS=$as_save_IFS |
27267 | ||
27268 | ;; | |
27269 | esac | |
27270 | fi | |
27271 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27272 | if test -n "$PKG_CONFIG"; then | |
3dd30495 VZ |
27273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
27274 | $as_echo "$PKG_CONFIG" >&6; } | |
d0260bd8 | 27275 | else |
3dd30495 VZ |
27276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27277 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27278 | fi |
27279 | ||
27280 | ||
27281 | fi | |
27282 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
27283 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
27284 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27285 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
27286 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
27287 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 27288 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 27289 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27290 | else |
27291 | case $ac_pt_PKG_CONFIG in | |
27292 | [\\/]* | ?:[\\/]*) | |
27293 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
27294 | ;; | |
27295 | *) | |
27296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27297 | for as_dir in $PATH | |
27298 | do | |
27299 | IFS=$as_save_IFS | |
27300 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 27301 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 27302 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 27303 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 27304 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
27305 | break 2 |
27306 | fi | |
27307 | done | |
3dd30495 | 27308 | done |
d0260bd8 VZ |
27309 | IFS=$as_save_IFS |
27310 | ||
27311 | ;; | |
27312 | esac | |
27313 | fi | |
27314 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
27315 | if test -n "$ac_pt_PKG_CONFIG"; then | |
3dd30495 VZ |
27316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
27317 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
d0260bd8 | 27318 | else |
3dd30495 VZ |
27319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27320 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27321 | fi |
27322 | ||
27323 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
27324 | PKG_CONFIG="" | |
27325 | else | |
27326 | case $cross_compiling:$ac_tool_warned in | |
27327 | yes:) | |
3dd30495 VZ |
27328 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
27329 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0260bd8 VZ |
27330 | ac_tool_warned=yes ;; |
27331 | esac | |
27332 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
27333 | fi | |
27334 | else | |
27335 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
27336 | fi | |
27337 | ||
27338 | fi | |
27339 | if test -n "$PKG_CONFIG"; then | |
27340 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
27341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
27342 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
d0260bd8 | 27343 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
27344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27345 | $as_echo "yes" >&6; } | |
d0260bd8 | 27346 | else |
3dd30495 VZ |
27347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27348 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27349 | PKG_CONFIG="" |
27350 | fi | |
27351 | ||
27352 | fi 6> /dev/null | |
27353 | ||
27354 | pkg_failed=no | |
3dd30495 VZ |
27355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SM" >&5 |
27356 | $as_echo_n "checking for SM... " >&6; } | |
d0260bd8 VZ |
27357 | |
27358 | if test -n "$PKG_CONFIG"; then | |
27359 | if test -n "$SM_CFLAGS"; then | |
27360 | pkg_cv_SM_CFLAGS="$SM_CFLAGS" | |
27361 | else | |
27362 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 27363 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
27364 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
27365 | ac_status=$? | |
3dd30495 VZ |
27366 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
27367 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
27368 | pkg_cv_SM_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null` |
27369 | else | |
27370 | pkg_failed=yes | |
27371 | fi | |
27372 | fi | |
27373 | else | |
27374 | pkg_failed=untried | |
27375 | fi | |
27376 | if test -n "$PKG_CONFIG"; then | |
27377 | if test -n "$SM_LIBS"; then | |
27378 | pkg_cv_SM_LIBS="$SM_LIBS" | |
27379 | else | |
27380 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 27381 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
27382 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
27383 | ac_status=$? | |
3dd30495 VZ |
27384 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
27385 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
27386 | pkg_cv_SM_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null` |
27387 | else | |
27388 | pkg_failed=yes | |
27389 | fi | |
27390 | fi | |
27391 | else | |
27392 | pkg_failed=untried | |
27393 | fi | |
27394 | ||
27395 | ||
27396 | ||
27397 | if test $pkg_failed = yes; then | |
27398 | ||
27399 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27400 | _pkg_short_errors_supported=yes | |
27401 | else | |
27402 | _pkg_short_errors_supported=no | |
27403 | fi | |
27404 | if test $_pkg_short_errors_supported = yes; then | |
27405 | SM_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"` | |
27406 | else | |
27407 | SM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"` | |
27408 | fi | |
27409 | # Put the nasty error message in config.log where it belongs | |
27410 | echo "$SM_PKG_ERRORS" >&5 | |
27411 | ||
27412 | ||
27413 | if test "x$ac_find_libraries" = "x"; then | |
27414 | if test "xSmcOpenConnection" != "x"; then | |
3dd30495 VZ |
27415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 |
27416 | $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } | |
eff9d7f5 | 27417 | if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then : |
3dd30495 | 27418 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27419 | else |
27420 | ac_check_lib_save_LIBS=$LIBS | |
27421 | LIBS="-lSM $LIBS" | |
3dd30495 | 27422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
27423 | /* end confdefs.h. */ |
27424 | ||
27425 | /* Override any GCC internal prototype to avoid an error. | |
27426 | Use char because int might match the return type of a GCC | |
27427 | builtin and then its argument prototype would still apply. */ | |
27428 | #ifdef __cplusplus | |
27429 | extern "C" | |
27430 | #endif | |
27431 | char SmcOpenConnection (); | |
27432 | int | |
27433 | main () | |
27434 | { | |
27435 | return SmcOpenConnection (); | |
27436 | ; | |
27437 | return 0; | |
27438 | } | |
27439 | _ACEOF | |
3dd30495 | 27440 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
27441 | ac_cv_lib_SM_SmcOpenConnection=yes |
27442 | else | |
3dd30495 | 27443 | ac_cv_lib_SM_SmcOpenConnection=no |
d0260bd8 | 27444 | fi |
3dd30495 VZ |
27445 | rm -f core conftest.err conftest.$ac_objext \ |
27446 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
27447 | LIBS=$ac_check_lib_save_LIBS |
27448 | fi | |
3dd30495 VZ |
27449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
27450 | $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } | |
eff9d7f5 | 27451 | if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then : |
d0260bd8 VZ |
27452 | ac_find_libraries="std" |
27453 | fi | |
27454 | ||
27455 | fi | |
27456 | fi | |
27457 | ||
27458 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
27459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
27460 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
27461 | |
27462 | ac_find_libraries= | |
76ff3d06 | 27463 | for ac_dir in $SEARCH_LIB |
d0260bd8 VZ |
27464 | do |
27465 | for ac_extension in a so sl dylib dll.a; do | |
27466 | if test -f "$ac_dir/libSM.$ac_extension"; then | |
27467 | ac_find_libraries=$ac_dir | |
27468 | break 2 | |
27469 | fi | |
27470 | done | |
27471 | done | |
27472 | ||
27473 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
27474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27475 | $as_echo "yes" >&6; } | |
d0260bd8 | 27476 | else |
3dd30495 VZ |
27477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27478 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27479 | fi |
27480 | fi | |
27481 | ||
27482 | elif test $pkg_failed = untried; then | |
27483 | ||
27484 | if test "x$ac_find_libraries" = "x"; then | |
27485 | if test "xSmcOpenConnection" != "x"; then | |
3dd30495 VZ |
27486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 |
27487 | $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } | |
eff9d7f5 | 27488 | if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then : |
3dd30495 | 27489 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27490 | else |
27491 | ac_check_lib_save_LIBS=$LIBS | |
27492 | LIBS="-lSM $LIBS" | |
3dd30495 | 27493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
27494 | /* end confdefs.h. */ |
27495 | ||
27496 | /* Override any GCC internal prototype to avoid an error. | |
27497 | Use char because int might match the return type of a GCC | |
27498 | builtin and then its argument prototype would still apply. */ | |
27499 | #ifdef __cplusplus | |
27500 | extern "C" | |
27501 | #endif | |
27502 | char SmcOpenConnection (); | |
27503 | int | |
27504 | main () | |
27505 | { | |
27506 | return SmcOpenConnection (); | |
27507 | ; | |
27508 | return 0; | |
27509 | } | |
27510 | _ACEOF | |
3dd30495 | 27511 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
27512 | ac_cv_lib_SM_SmcOpenConnection=yes |
27513 | else | |
3dd30495 | 27514 | ac_cv_lib_SM_SmcOpenConnection=no |
d0260bd8 | 27515 | fi |
3dd30495 VZ |
27516 | rm -f core conftest.err conftest.$ac_objext \ |
27517 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
27518 | LIBS=$ac_check_lib_save_LIBS |
27519 | fi | |
3dd30495 VZ |
27520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
27521 | $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } | |
eff9d7f5 | 27522 | if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then : |
d0260bd8 VZ |
27523 | ac_find_libraries="std" |
27524 | fi | |
27525 | ||
27526 | fi | |
27527 | fi | |
27528 | ||
27529 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
27530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
27531 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
27532 | |
27533 | ac_find_libraries= | |
76ff3d06 | 27534 | for ac_dir in $SEARCH_LIB |
d0260bd8 VZ |
27535 | do |
27536 | for ac_extension in a so sl dylib dll.a; do | |
27537 | if test -f "$ac_dir/libSM.$ac_extension"; then | |
27538 | ac_find_libraries=$ac_dir | |
27539 | break 2 | |
27540 | fi | |
27541 | done | |
27542 | done | |
27543 | ||
27544 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
27545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27546 | $as_echo "yes" >&6; } | |
d0260bd8 | 27547 | else |
3dd30495 VZ |
27548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27549 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27550 | fi |
27551 | fi | |
27552 | ||
27553 | else | |
27554 | SM_CFLAGS=$pkg_cv_SM_CFLAGS | |
27555 | SM_LIBS=$pkg_cv_SM_LIBS | |
3dd30495 VZ |
27556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27557 | $as_echo "yes" >&6; } | |
d0260bd8 VZ |
27558 | |
27559 | ac_find_libraries="std" | |
27560 | ||
27561 | eval ac_find_cflags=\$SM_CFLAGS | |
27562 | eval fl_libs=\$SM_LIBS | |
27563 | ||
27564 | for fl_path in $fl_libs | |
27565 | do | |
27566 | if test `echo "$fl_path" | cut -c 1-2` = "-L"; then | |
27567 | ac_find_libraries=`echo "$fl_path" | cut -c 3-` | |
27568 | fi | |
27569 | done | |
27570 | ||
27571 | fi | |
27572 | ||
27573 | if test "$ac_find_libraries" != "" ; then | |
27574 | if test "$ac_find_libraries" != "std" ; then | |
27575 | ||
27576 | if test "$ac_find_libraries" = "default location"; then | |
27577 | ac_path_to_link="" | |
27578 | else | |
27579 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
27580 | result=$? | |
27581 | if test $result = 0; then | |
27582 | ac_path_to_link="" | |
27583 | else | |
27584 | ac_path_to_link=" -L$ac_find_libraries" | |
27585 | fi | |
27586 | fi | |
27587 | ||
27588 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
27589 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
27590 | fi | |
27591 | fi | |
27592 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM" | |
27593 | else | |
3dd30495 VZ |
27594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libSM not found; disabling session management detection" >&5 |
27595 | $as_echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;} | |
d0260bd8 VZ |
27596 | wxUSE_DETECT_SM="no" |
27597 | fi | |
27598 | else | |
27599 | wxUSE_DETECT_SM="no" | |
27600 | fi | |
27601 | fi | |
27602 | ||
27603 | ||
27604 | ||
27605 | USE_OPENGL=0 | |
27606 | if test "$wxUSE_OPENGL" = "yes" -o "$wxUSE_OPENGL" = "auto"; then | |
27607 | ||
27608 | ||
27609 | if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then | |
27610 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
27611 | elif test "$wxUSE_MSW" = 1; then | |
27612 | OPENGL_LIBS="-lopengl32 -lglu32" | |
9dc44eff | 27613 | elif test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_GTK" = 1; then |
d0260bd8 | 27614 | |
3dd30495 VZ |
27615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL headers" >&5 |
27616 | $as_echo_n "checking for OpenGL headers... " >&6; } | |
d0260bd8 VZ |
27617 | |
27618 | ac_find_includes= | |
27619 | for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include | |
27620 | do | |
27621 | if test -f "$ac_dir/GL/gl.h"; then | |
27622 | ac_find_includes=$ac_dir | |
27623 | break | |
27624 | fi | |
27625 | done | |
27626 | ||
27627 | if test "$ac_find_includes" != "" ; then | |
3dd30495 VZ |
27628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $ac_find_includes" >&5 |
27629 | $as_echo "found in $ac_find_includes" >&6; } | |
d0260bd8 VZ |
27630 | |
27631 | if test "x$ac_find_includes" = "x/usr/include"; then | |
27632 | ac_path_to_include="" | |
27633 | else | |
27634 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
27635 | result=$? | |
27636 | if test $result = 0; then | |
27637 | ac_path_to_include="" | |
27638 | else | |
27639 | ac_path_to_include=" -I$ac_find_includes" | |
27640 | fi | |
27641 | fi | |
27642 | ||
27643 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" | |
27644 | else | |
3dd30495 VZ |
27645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
27646 | $as_echo "not found" >&6; } | |
d0260bd8 VZ |
27647 | fi |
27648 | ||
3dd30495 VZ |
27649 | ac_fn_c_check_header_compile "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" " |
27650 | " | |
eff9d7f5 | 27651 | if test "x$ac_cv_header_GL_gl_h" = xyes; then : |
d0260bd8 | 27652 | |
3dd30495 VZ |
27653 | ac_fn_c_check_header_compile "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" " |
27654 | " | |
eff9d7f5 | 27655 | if test "x$ac_cv_header_GL_glu_h" = xyes; then : |
d0260bd8 VZ |
27656 | |
27657 | found_gl=0 | |
27658 | ||
27659 | ||
27660 | ac_find_libraries= | |
27661 | ||
27662 | fl_pkgname=`echo "GL" | tr [:upper:] [:lower:]` | |
27663 | ||
27664 | ||
27665 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
27666 | if test -n "$ac_tool_prefix"; then | |
27667 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
27668 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
27669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
27670 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 27671 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 27672 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27673 | else |
27674 | case $PKG_CONFIG in | |
27675 | [\\/]* | ?:[\\/]*) | |
27676 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
27677 | ;; | |
27678 | *) | |
27679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27680 | for as_dir in $PATH | |
27681 | do | |
27682 | IFS=$as_save_IFS | |
27683 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 27684 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 27685 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 27686 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 27687 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
27688 | break 2 |
27689 | fi | |
27690 | done | |
3dd30495 | 27691 | done |
d0260bd8 VZ |
27692 | IFS=$as_save_IFS |
27693 | ||
27694 | ;; | |
27695 | esac | |
27696 | fi | |
27697 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
27698 | if test -n "$PKG_CONFIG"; then | |
3dd30495 VZ |
27699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
27700 | $as_echo "$PKG_CONFIG" >&6; } | |
d0260bd8 | 27701 | else |
3dd30495 VZ |
27702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27703 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27704 | fi |
27705 | ||
27706 | ||
27707 | fi | |
27708 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
27709 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
27710 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
27711 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
27712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
27713 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 27714 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 27715 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27716 | else |
27717 | case $ac_pt_PKG_CONFIG in | |
27718 | [\\/]* | ?:[\\/]*) | |
27719 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
27720 | ;; | |
27721 | *) | |
27722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27723 | for as_dir in $PATH | |
27724 | do | |
27725 | IFS=$as_save_IFS | |
27726 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 27727 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 27728 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 27729 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 27730 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
27731 | break 2 |
27732 | fi | |
27733 | done | |
3dd30495 | 27734 | done |
d0260bd8 VZ |
27735 | IFS=$as_save_IFS |
27736 | ||
27737 | ;; | |
27738 | esac | |
27739 | fi | |
27740 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
27741 | if test -n "$ac_pt_PKG_CONFIG"; then | |
3dd30495 VZ |
27742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
27743 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
d0260bd8 | 27744 | else |
3dd30495 VZ |
27745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27746 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27747 | fi |
27748 | ||
27749 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
27750 | PKG_CONFIG="" | |
27751 | else | |
27752 | case $cross_compiling:$ac_tool_warned in | |
27753 | yes:) | |
3dd30495 VZ |
27754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
27755 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0260bd8 VZ |
27756 | ac_tool_warned=yes ;; |
27757 | esac | |
27758 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
27759 | fi | |
27760 | else | |
27761 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
27762 | fi | |
27763 | ||
27764 | fi | |
27765 | if test -n "$PKG_CONFIG"; then | |
27766 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
27767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
27768 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
d0260bd8 | 27769 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
27770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27771 | $as_echo "yes" >&6; } | |
d0260bd8 | 27772 | else |
3dd30495 VZ |
27773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27774 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27775 | PKG_CONFIG="" |
27776 | fi | |
27777 | ||
27778 | fi 6> /dev/null | |
27779 | ||
27780 | pkg_failed=no | |
3dd30495 VZ |
27781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL" >&5 |
27782 | $as_echo_n "checking for GL... " >&6; } | |
d0260bd8 VZ |
27783 | |
27784 | if test -n "$PKG_CONFIG"; then | |
27785 | if test -n "$GL_CFLAGS"; then | |
27786 | pkg_cv_GL_CFLAGS="$GL_CFLAGS" | |
27787 | else | |
27788 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 27789 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
27790 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
27791 | ac_status=$? | |
3dd30495 VZ |
27792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
27793 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
27794 | pkg_cv_GL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null` |
27795 | else | |
27796 | pkg_failed=yes | |
27797 | fi | |
27798 | fi | |
27799 | else | |
27800 | pkg_failed=untried | |
27801 | fi | |
27802 | if test -n "$PKG_CONFIG"; then | |
27803 | if test -n "$GL_LIBS"; then | |
27804 | pkg_cv_GL_LIBS="$GL_LIBS" | |
27805 | else | |
27806 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 27807 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
27808 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
27809 | ac_status=$? | |
3dd30495 VZ |
27810 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
27811 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
27812 | pkg_cv_GL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null` |
27813 | else | |
27814 | pkg_failed=yes | |
27815 | fi | |
27816 | fi | |
27817 | else | |
27818 | pkg_failed=untried | |
27819 | fi | |
27820 | ||
27821 | ||
27822 | ||
27823 | if test $pkg_failed = yes; then | |
27824 | ||
27825 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
27826 | _pkg_short_errors_supported=yes | |
27827 | else | |
27828 | _pkg_short_errors_supported=no | |
27829 | fi | |
27830 | if test $_pkg_short_errors_supported = yes; then | |
27831 | GL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"` | |
27832 | else | |
27833 | GL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"` | |
27834 | fi | |
27835 | # Put the nasty error message in config.log where it belongs | |
27836 | echo "$GL_PKG_ERRORS" >&5 | |
27837 | ||
27838 | ||
27839 | if test "x$ac_find_libraries" = "x"; then | |
27840 | if test "xglBegin" != "x"; then | |
3dd30495 VZ |
27841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5 |
27842 | $as_echo_n "checking for glBegin in -lGL... " >&6; } | |
eff9d7f5 | 27843 | if ${ac_cv_lib_GL_glBegin+:} false; then : |
3dd30495 | 27844 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27845 | else |
27846 | ac_check_lib_save_LIBS=$LIBS | |
27847 | LIBS="-lGL $LIBS" | |
3dd30495 | 27848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
27849 | /* end confdefs.h. */ |
27850 | ||
27851 | /* Override any GCC internal prototype to avoid an error. | |
27852 | Use char because int might match the return type of a GCC | |
27853 | builtin and then its argument prototype would still apply. */ | |
27854 | #ifdef __cplusplus | |
27855 | extern "C" | |
27856 | #endif | |
27857 | char glBegin (); | |
27858 | int | |
27859 | main () | |
27860 | { | |
27861 | return glBegin (); | |
27862 | ; | |
27863 | return 0; | |
27864 | } | |
27865 | _ACEOF | |
3dd30495 | 27866 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
27867 | ac_cv_lib_GL_glBegin=yes |
27868 | else | |
3dd30495 | 27869 | ac_cv_lib_GL_glBegin=no |
d0260bd8 | 27870 | fi |
3dd30495 VZ |
27871 | rm -f core conftest.err conftest.$ac_objext \ |
27872 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
27873 | LIBS=$ac_check_lib_save_LIBS |
27874 | fi | |
3dd30495 VZ |
27875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5 |
27876 | $as_echo "$ac_cv_lib_GL_glBegin" >&6; } | |
eff9d7f5 | 27877 | if test "x$ac_cv_lib_GL_glBegin" = xyes; then : |
d0260bd8 VZ |
27878 | ac_find_libraries="std" |
27879 | fi | |
27880 | ||
27881 | fi | |
27882 | fi | |
27883 | ||
27884 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
27885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
27886 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
27887 | |
27888 | ac_find_libraries= | |
76ff3d06 | 27889 | for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB |
d0260bd8 VZ |
27890 | do |
27891 | for ac_extension in a so sl dylib dll.a; do | |
27892 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27893 | ac_find_libraries=$ac_dir | |
27894 | break 2 | |
27895 | fi | |
27896 | done | |
27897 | done | |
27898 | ||
27899 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
27900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27901 | $as_echo "yes" >&6; } | |
d0260bd8 | 27902 | else |
3dd30495 VZ |
27903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27904 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27905 | fi |
27906 | fi | |
27907 | ||
27908 | elif test $pkg_failed = untried; then | |
27909 | ||
27910 | if test "x$ac_find_libraries" = "x"; then | |
27911 | if test "xglBegin" != "x"; then | |
3dd30495 VZ |
27912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5 |
27913 | $as_echo_n "checking for glBegin in -lGL... " >&6; } | |
eff9d7f5 | 27914 | if ${ac_cv_lib_GL_glBegin+:} false; then : |
3dd30495 | 27915 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
27916 | else |
27917 | ac_check_lib_save_LIBS=$LIBS | |
27918 | LIBS="-lGL $LIBS" | |
3dd30495 | 27919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
27920 | /* end confdefs.h. */ |
27921 | ||
27922 | /* Override any GCC internal prototype to avoid an error. | |
27923 | Use char because int might match the return type of a GCC | |
27924 | builtin and then its argument prototype would still apply. */ | |
27925 | #ifdef __cplusplus | |
27926 | extern "C" | |
27927 | #endif | |
27928 | char glBegin (); | |
27929 | int | |
27930 | main () | |
27931 | { | |
27932 | return glBegin (); | |
27933 | ; | |
27934 | return 0; | |
27935 | } | |
27936 | _ACEOF | |
3dd30495 | 27937 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
27938 | ac_cv_lib_GL_glBegin=yes |
27939 | else | |
3dd30495 | 27940 | ac_cv_lib_GL_glBegin=no |
d0260bd8 | 27941 | fi |
3dd30495 VZ |
27942 | rm -f core conftest.err conftest.$ac_objext \ |
27943 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
27944 | LIBS=$ac_check_lib_save_LIBS |
27945 | fi | |
3dd30495 VZ |
27946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5 |
27947 | $as_echo "$ac_cv_lib_GL_glBegin" >&6; } | |
eff9d7f5 | 27948 | if test "x$ac_cv_lib_GL_glBegin" = xyes; then : |
d0260bd8 VZ |
27949 | ac_find_libraries="std" |
27950 | fi | |
27951 | ||
27952 | fi | |
27953 | fi | |
27954 | ||
27955 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
27956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
27957 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
27958 | |
27959 | ac_find_libraries= | |
76ff3d06 | 27960 | for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB |
d0260bd8 VZ |
27961 | do |
27962 | for ac_extension in a so sl dylib dll.a; do | |
27963 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
27964 | ac_find_libraries=$ac_dir | |
27965 | break 2 | |
27966 | fi | |
27967 | done | |
27968 | done | |
27969 | ||
27970 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
27971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27972 | $as_echo "yes" >&6; } | |
d0260bd8 | 27973 | else |
3dd30495 VZ |
27974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
27975 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
27976 | fi |
27977 | fi | |
27978 | ||
27979 | else | |
27980 | GL_CFLAGS=$pkg_cv_GL_CFLAGS | |
27981 | GL_LIBS=$pkg_cv_GL_LIBS | |
3dd30495 VZ |
27982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
27983 | $as_echo "yes" >&6; } | |
d0260bd8 VZ |
27984 | |
27985 | ac_find_libraries="std" | |
27986 | ||
27987 | eval ac_find_cflags=\$GL_CFLAGS | |
27988 | eval fl_libs=\$GL_LIBS | |
27989 | ||
27990 | for fl_path in $fl_libs | |
27991 | do | |
27992 | if test `echo "$fl_path" | cut -c 1-2` = "-L"; then | |
27993 | ac_find_libraries=`echo "$fl_path" | cut -c 3-` | |
27994 | fi | |
27995 | done | |
27996 | ||
27997 | fi | |
27998 | ||
27999 | if test "$ac_find_libraries" != "" ; then | |
28000 | if test "$ac_find_libraries" != "std" ; then | |
28001 | ||
28002 | if test "$ac_find_libraries" = "default location"; then | |
28003 | ac_path_to_link="" | |
28004 | else | |
28005 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28006 | result=$? | |
28007 | if test $result = 0; then | |
28008 | ac_path_to_link="" | |
28009 | else | |
28010 | ac_path_to_link=" -L$ac_find_libraries" | |
28011 | fi | |
28012 | fi | |
28013 | ||
28014 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
28015 | LDFLAGS_GL="$ac_path_to_link" | |
28016 | fi | |
28017 | fi | |
28018 | ||
28019 | ||
28020 | ac_find_libraries= | |
28021 | ||
28022 | fl_pkgname=`echo "GLU" | tr [:upper:] [:lower:]` | |
28023 | ||
28024 | ||
28025 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
28026 | if test -n "$ac_tool_prefix"; then | |
28027 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
28028 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
28029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
28030 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 28031 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 28032 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
28033 | else |
28034 | case $PKG_CONFIG in | |
28035 | [\\/]* | ?:[\\/]*) | |
28036 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28037 | ;; | |
28038 | *) | |
28039 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28040 | for as_dir in $PATH | |
28041 | do | |
28042 | IFS=$as_save_IFS | |
28043 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 28044 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 28045 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 28046 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 28047 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
28048 | break 2 |
28049 | fi | |
28050 | done | |
3dd30495 | 28051 | done |
d0260bd8 VZ |
28052 | IFS=$as_save_IFS |
28053 | ||
28054 | ;; | |
28055 | esac | |
28056 | fi | |
28057 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28058 | if test -n "$PKG_CONFIG"; then | |
3dd30495 VZ |
28059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
28060 | $as_echo "$PKG_CONFIG" >&6; } | |
d0260bd8 | 28061 | else |
3dd30495 VZ |
28062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28063 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28064 | fi |
28065 | ||
28066 | ||
28067 | fi | |
28068 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
28069 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
28070 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28071 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
28072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
28073 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 28074 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 28075 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
28076 | else |
28077 | case $ac_pt_PKG_CONFIG in | |
28078 | [\\/]* | ?:[\\/]*) | |
28079 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
28080 | ;; | |
28081 | *) | |
28082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28083 | for as_dir in $PATH | |
28084 | do | |
28085 | IFS=$as_save_IFS | |
28086 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 28087 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 28088 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 28089 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 28090 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
28091 | break 2 |
28092 | fi | |
28093 | done | |
3dd30495 | 28094 | done |
d0260bd8 VZ |
28095 | IFS=$as_save_IFS |
28096 | ||
28097 | ;; | |
28098 | esac | |
28099 | fi | |
28100 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
28101 | if test -n "$ac_pt_PKG_CONFIG"; then | |
3dd30495 VZ |
28102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
28103 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
d0260bd8 | 28104 | else |
3dd30495 VZ |
28105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28106 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28107 | fi |
28108 | ||
28109 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
28110 | PKG_CONFIG="" | |
28111 | else | |
28112 | case $cross_compiling:$ac_tool_warned in | |
28113 | yes:) | |
3dd30495 VZ |
28114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
28115 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0260bd8 VZ |
28116 | ac_tool_warned=yes ;; |
28117 | esac | |
28118 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
28119 | fi | |
28120 | else | |
28121 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
28122 | fi | |
28123 | ||
28124 | fi | |
28125 | if test -n "$PKG_CONFIG"; then | |
28126 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
28127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
28128 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
d0260bd8 | 28129 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
28130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28131 | $as_echo "yes" >&6; } | |
d0260bd8 | 28132 | else |
3dd30495 VZ |
28133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28134 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28135 | PKG_CONFIG="" |
28136 | fi | |
28137 | ||
28138 | fi 6> /dev/null | |
28139 | ||
28140 | pkg_failed=no | |
3dd30495 VZ |
28141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLU" >&5 |
28142 | $as_echo_n "checking for GLU... " >&6; } | |
d0260bd8 VZ |
28143 | |
28144 | if test -n "$PKG_CONFIG"; then | |
28145 | if test -n "$GLU_CFLAGS"; then | |
28146 | pkg_cv_GLU_CFLAGS="$GLU_CFLAGS" | |
28147 | else | |
28148 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 28149 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
28150 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
28151 | ac_status=$? | |
3dd30495 VZ |
28152 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
28153 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
28154 | pkg_cv_GLU_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null` |
28155 | else | |
28156 | pkg_failed=yes | |
28157 | fi | |
28158 | fi | |
28159 | else | |
28160 | pkg_failed=untried | |
28161 | fi | |
28162 | if test -n "$PKG_CONFIG"; then | |
28163 | if test -n "$GLU_LIBS"; then | |
28164 | pkg_cv_GLU_LIBS="$GLU_LIBS" | |
28165 | else | |
28166 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 28167 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
28168 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
28169 | ac_status=$? | |
3dd30495 VZ |
28170 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
28171 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
28172 | pkg_cv_GLU_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null` |
28173 | else | |
28174 | pkg_failed=yes | |
28175 | fi | |
28176 | fi | |
28177 | else | |
28178 | pkg_failed=untried | |
28179 | fi | |
28180 | ||
28181 | ||
28182 | ||
28183 | if test $pkg_failed = yes; then | |
28184 | ||
28185 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
28186 | _pkg_short_errors_supported=yes | |
28187 | else | |
28188 | _pkg_short_errors_supported=no | |
28189 | fi | |
28190 | if test $_pkg_short_errors_supported = yes; then | |
28191 | GLU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"` | |
28192 | else | |
28193 | GLU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"` | |
28194 | fi | |
28195 | # Put the nasty error message in config.log where it belongs | |
28196 | echo "$GLU_PKG_ERRORS" >&5 | |
28197 | ||
28198 | ||
28199 | if test "x$ac_find_libraries" = "x"; then | |
28200 | if test "xgluBeginCurve" != "x"; then | |
3dd30495 VZ |
28201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluBeginCurve in -lGLU" >&5 |
28202 | $as_echo_n "checking for gluBeginCurve in -lGLU... " >&6; } | |
eff9d7f5 | 28203 | if ${ac_cv_lib_GLU_gluBeginCurve+:} false; then : |
3dd30495 | 28204 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
28205 | else |
28206 | ac_check_lib_save_LIBS=$LIBS | |
28207 | LIBS="-lGLU $LIBS" | |
3dd30495 | 28208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
28209 | /* end confdefs.h. */ |
28210 | ||
28211 | /* Override any GCC internal prototype to avoid an error. | |
28212 | Use char because int might match the return type of a GCC | |
28213 | builtin and then its argument prototype would still apply. */ | |
28214 | #ifdef __cplusplus | |
28215 | extern "C" | |
28216 | #endif | |
28217 | char gluBeginCurve (); | |
28218 | int | |
28219 | main () | |
28220 | { | |
28221 | return gluBeginCurve (); | |
28222 | ; | |
28223 | return 0; | |
28224 | } | |
28225 | _ACEOF | |
3dd30495 | 28226 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
28227 | ac_cv_lib_GLU_gluBeginCurve=yes |
28228 | else | |
3dd30495 | 28229 | ac_cv_lib_GLU_gluBeginCurve=no |
d0260bd8 | 28230 | fi |
3dd30495 VZ |
28231 | rm -f core conftest.err conftest.$ac_objext \ |
28232 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
28233 | LIBS=$ac_check_lib_save_LIBS |
28234 | fi | |
3dd30495 VZ |
28235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluBeginCurve" >&5 |
28236 | $as_echo "$ac_cv_lib_GLU_gluBeginCurve" >&6; } | |
eff9d7f5 | 28237 | if test "x$ac_cv_lib_GLU_gluBeginCurve" = xyes; then : |
d0260bd8 VZ |
28238 | ac_find_libraries="std" |
28239 | fi | |
28240 | ||
28241 | fi | |
28242 | fi | |
28243 | ||
28244 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
28245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
28246 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
28247 | |
28248 | ac_find_libraries= | |
76ff3d06 | 28249 | for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB |
d0260bd8 VZ |
28250 | do |
28251 | for ac_extension in a so sl dylib dll.a; do | |
28252 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
28253 | ac_find_libraries=$ac_dir | |
28254 | break 2 | |
28255 | fi | |
28256 | done | |
28257 | done | |
28258 | ||
28259 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
28260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28261 | $as_echo "yes" >&6; } | |
d0260bd8 | 28262 | else |
3dd30495 VZ |
28263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28264 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28265 | fi |
28266 | fi | |
28267 | ||
28268 | elif test $pkg_failed = untried; then | |
28269 | ||
28270 | if test "x$ac_find_libraries" = "x"; then | |
28271 | if test "xgluBeginCurve" != "x"; then | |
3dd30495 VZ |
28272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluBeginCurve in -lGLU" >&5 |
28273 | $as_echo_n "checking for gluBeginCurve in -lGLU... " >&6; } | |
eff9d7f5 | 28274 | if ${ac_cv_lib_GLU_gluBeginCurve+:} false; then : |
3dd30495 | 28275 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
28276 | else |
28277 | ac_check_lib_save_LIBS=$LIBS | |
28278 | LIBS="-lGLU $LIBS" | |
3dd30495 | 28279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d0260bd8 VZ |
28280 | /* end confdefs.h. */ |
28281 | ||
28282 | /* Override any GCC internal prototype to avoid an error. | |
28283 | Use char because int might match the return type of a GCC | |
28284 | builtin and then its argument prototype would still apply. */ | |
28285 | #ifdef __cplusplus | |
28286 | extern "C" | |
28287 | #endif | |
28288 | char gluBeginCurve (); | |
28289 | int | |
28290 | main () | |
28291 | { | |
28292 | return gluBeginCurve (); | |
28293 | ; | |
28294 | return 0; | |
28295 | } | |
28296 | _ACEOF | |
3dd30495 | 28297 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 VZ |
28298 | ac_cv_lib_GLU_gluBeginCurve=yes |
28299 | else | |
3dd30495 | 28300 | ac_cv_lib_GLU_gluBeginCurve=no |
d0260bd8 | 28301 | fi |
3dd30495 VZ |
28302 | rm -f core conftest.err conftest.$ac_objext \ |
28303 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 VZ |
28304 | LIBS=$ac_check_lib_save_LIBS |
28305 | fi | |
3dd30495 VZ |
28306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluBeginCurve" >&5 |
28307 | $as_echo "$ac_cv_lib_GLU_gluBeginCurve" >&6; } | |
eff9d7f5 | 28308 | if test "x$ac_cv_lib_GLU_gluBeginCurve" = xyes; then : |
d0260bd8 VZ |
28309 | ac_find_libraries="std" |
28310 | fi | |
28311 | ||
28312 | fi | |
28313 | fi | |
28314 | ||
28315 | if test "x$ac_find_libraries" = "x"; then | |
3dd30495 VZ |
28316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
28317 | $as_echo_n "checking elsewhere... " >&6; } | |
d0260bd8 VZ |
28318 | |
28319 | ac_find_libraries= | |
76ff3d06 | 28320 | for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB |
d0260bd8 VZ |
28321 | do |
28322 | for ac_extension in a so sl dylib dll.a; do | |
28323 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
28324 | ac_find_libraries=$ac_dir | |
28325 | break 2 | |
28326 | fi | |
28327 | done | |
28328 | done | |
28329 | ||
28330 | if test "x$ac_find_libraries" != "x"; then | |
3dd30495 VZ |
28331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28332 | $as_echo "yes" >&6; } | |
d0260bd8 | 28333 | else |
3dd30495 VZ |
28334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28335 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28336 | fi |
28337 | fi | |
28338 | ||
28339 | else | |
28340 | GLU_CFLAGS=$pkg_cv_GLU_CFLAGS | |
28341 | GLU_LIBS=$pkg_cv_GLU_LIBS | |
3dd30495 VZ |
28342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28343 | $as_echo "yes" >&6; } | |
d0260bd8 VZ |
28344 | |
28345 | ac_find_libraries="std" | |
28346 | ||
28347 | eval ac_find_cflags=\$GLU_CFLAGS | |
28348 | eval fl_libs=\$GLU_LIBS | |
28349 | ||
28350 | for fl_path in $fl_libs | |
28351 | do | |
28352 | if test `echo "$fl_path" | cut -c 1-2` = "-L"; then | |
28353 | ac_find_libraries=`echo "$fl_path" | cut -c 3-` | |
28354 | fi | |
28355 | done | |
28356 | ||
28357 | fi | |
28358 | ||
28359 | if test "$ac_find_libraries" != "" ; then | |
28360 | if test "$ac_find_libraries" != "std" ; then | |
28361 | ||
28362 | if test "$ac_find_libraries" = "default location"; then | |
28363 | ac_path_to_link="" | |
28364 | else | |
28365 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
28366 | result=$? | |
28367 | if test $result = 0; then | |
28368 | ac_path_to_link="" | |
28369 | else | |
28370 | ac_path_to_link=" -L$ac_find_libraries" | |
28371 | fi | |
28372 | fi | |
28373 | ||
28374 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
28375 | "$ac_path_to_link" != "$LDFLAGS_GL" ; then | |
28376 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
28377 | fi | |
28378 | fi | |
28379 | ||
28380 | found_gl=1 | |
28381 | OPENGL_LIBS="-lGL -lGLU" | |
28382 | fi | |
28383 | fi | |
28384 | ||
28385 | if test "$found_gl" != 1; then | |
28386 | ||
28387 | ac_find_libraries= | |
28388 | ||
28389 | fl_pkgname=`echo "MesaGL" | tr [:upper:] [:lower:]` | |
28390 | ||
28391 | ||
28392 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
28393 | if test -n "$ac_tool_prefix"; then | |
28394 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
28395 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
28396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
28397 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 28398 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 28399 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
28400 | else |
28401 | case $PKG_CONFIG in | |
28402 | [\\/]* | ?:[\\/]*) | |
28403 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28404 | ;; | |
28405 | *) | |
28406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28407 | for as_dir in $PATH | |
28408 | do | |
28409 | IFS=$as_save_IFS | |
28410 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 28411 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 28412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 28413 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 28414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
28415 | break 2 |
28416 | fi | |
28417 | done | |
3dd30495 | 28418 | done |
d0260bd8 VZ |
28419 | IFS=$as_save_IFS |
28420 | ||
28421 | ;; | |
28422 | esac | |
28423 | fi | |
28424 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28425 | if test -n "$PKG_CONFIG"; then | |
3dd30495 VZ |
28426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
28427 | $as_echo "$PKG_CONFIG" >&6; } | |
d0260bd8 | 28428 | else |
3dd30495 VZ |
28429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28430 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28431 | fi |
28432 | ||
28433 | ||
28434 | fi | |
28435 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
28436 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
28437 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28438 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
28439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
28440 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 28441 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 28442 | $as_echo_n "(cached) " >&6 |
d0260bd8 VZ |
28443 | else |
28444 | case $ac_pt_PKG_CONFIG in | |
28445 | [\\/]* | ?:[\\/]*) | |
28446 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
28447 | ;; | |
28448 | *) | |
28449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28450 | for as_dir in $PATH | |
28451 | do | |
28452 | IFS=$as_save_IFS | |
28453 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 28454 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 28455 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d0260bd8 | 28456 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 28457 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d0260bd8 VZ |
28458 | break 2 |
28459 | fi | |
28460 | done | |
3dd30495 | 28461 | done |
d0260bd8 VZ |
28462 | IFS=$as_save_IFS |
28463 | ||
28464 | ;; | |
28465 | esac | |
28466 | fi | |
28467 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
28468 | if test -n "$ac_pt_PKG_CONFIG"; then | |
3dd30495 VZ |
28469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
28470 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
d0260bd8 | 28471 | else |
3dd30495 VZ |
28472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28473 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28474 | fi |
28475 | ||
28476 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
28477 | PKG_CONFIG="" | |
28478 | else | |
28479 | case $cross_compiling:$ac_tool_warned in | |
28480 | yes:) | |
3dd30495 VZ |
28481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
28482 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
d0260bd8 VZ |
28483 | ac_tool_warned=yes ;; |
28484 | esac | |
28485 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
28486 | fi | |
28487 | else | |
28488 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
28489 | fi | |
28490 | ||
28491 | fi | |
28492 | if test -n "$PKG_CONFIG"; then | |
28493 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
28494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
28495 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
d0260bd8 | 28496 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
28497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28498 | $as_echo "yes" >&6; } | |
d0260bd8 | 28499 | else |
3dd30495 VZ |
28500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28501 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28502 | PKG_CONFIG="" |
28503 | fi | |
28504 | ||
28505 | fi 6> /dev/null | |
28506 | ||
28507 | pkg_failed=no | |
3dd30495 VZ |
28508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MesaGL" >&5 |
28509 | $as_echo_n "checking for MesaGL... " >&6; } | |
a848cd7e | 28510 | |
d0260bd8 VZ |
28511 | if test -n "$PKG_CONFIG"; then |
28512 | if test -n "$MesaGL_CFLAGS"; then | |
28513 | pkg_cv_MesaGL_CFLAGS="$MesaGL_CFLAGS" | |
0ad5d837 | 28514 | else |
d0260bd8 | 28515 | if test -n "$PKG_CONFIG" && \ |
3dd30495 | 28516 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 VZ |
28517 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
28518 | ac_status=$? | |
3dd30495 VZ |
28519 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
28520 | test $ac_status = 0; }; then | |
d0260bd8 VZ |
28521 | pkg_cv_MesaGL_CFLAGS=`$PKG_CONFIG --cflags "$fl_pkgname" 2>/dev/null` |
28522 | else | |
28523 | pkg_failed=yes | |
28524 | fi | |
0ad5d837 | 28525 | fi |
bfd62c8c | 28526 | else |
d0260bd8 VZ |
28527 | pkg_failed=untried |
28528 | fi | |
28529 | if test -n "$PKG_CONFIG"; then | |
28530 | if test -n "$MesaGL_LIBS"; then | |
28531 | pkg_cv_MesaGL_LIBS="$MesaGL_LIBS" | |
28532 | else | |
28533 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 28534 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$fl_pkgname\""; } >&5 |
d0260bd8 | 28535 | ($PKG_CONFIG --exists --print-errors "$fl_pkgname") 2>&5 |
bfd62c8c | 28536 | ac_status=$? |
3dd30495 VZ |
28537 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
28538 | test $ac_status = 0; }; then | |
d0260bd8 | 28539 | pkg_cv_MesaGL_LIBS=`$PKG_CONFIG --libs "$fl_pkgname" 2>/dev/null` |
bfd62c8c | 28540 | else |
d0260bd8 | 28541 | pkg_failed=yes |
bfd62c8c | 28542 | fi |
d0260bd8 VZ |
28543 | fi |
28544 | else | |
28545 | pkg_failed=untried | |
bfd62c8c | 28546 | fi |
bfd62c8c VZ |
28547 | |
28548 | ||
bfd62c8c | 28549 | |
d0260bd8 | 28550 | if test $pkg_failed = yes; then |
a848cd7e | 28551 | |
d0260bd8 VZ |
28552 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
28553 | _pkg_short_errors_supported=yes | |
28554 | else | |
28555 | _pkg_short_errors_supported=no | |
28556 | fi | |
28557 | if test $_pkg_short_errors_supported = yes; then | |
28558 | MesaGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$fl_pkgname"` | |
28559 | else | |
28560 | MesaGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$fl_pkgname"` | |
28561 | fi | |
28562 | # Put the nasty error message in config.log where it belongs | |
28563 | echo "$MesaGL_PKG_ERRORS" >&5 | |
a848cd7e | 28564 | |
1f7e12cc | 28565 | |
d0260bd8 VZ |
28566 | if test "x$ac_find_libraries" = "x"; then |
28567 | if test "xglEnable" != "x"; then | |
3dd30495 VZ |
28568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lMesaGL" >&5 |
28569 | $as_echo_n "checking for glEnable in -lMesaGL... " >&6; } | |
eff9d7f5 | 28570 | if ${ac_cv_lib_MesaGL_glEnable+:} false; then : |
3dd30495 | 28571 | $as_echo_n "(cached) " >&6 |
a848cd7e | 28572 | else |
d0260bd8 VZ |
28573 | ac_check_lib_save_LIBS=$LIBS |
28574 | LIBS="-lMesaGL $LIBS" | |
3dd30495 | 28575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
28576 | /* end confdefs.h. */ |
28577 | ||
d0260bd8 VZ |
28578 | /* Override any GCC internal prototype to avoid an error. |
28579 | Use char because int might match the return type of a GCC | |
28580 | builtin and then its argument prototype would still apply. */ | |
28581 | #ifdef __cplusplus | |
28582 | extern "C" | |
28583 | #endif | |
28584 | char glEnable (); | |
28585 | int | |
28586 | main () | |
28587 | { | |
28588 | return glEnable (); | |
28589 | ; | |
28590 | return 0; | |
28591 | } | |
a848cd7e | 28592 | _ACEOF |
3dd30495 | 28593 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 | 28594 | ac_cv_lib_MesaGL_glEnable=yes |
a848cd7e | 28595 | else |
3dd30495 | 28596 | ac_cv_lib_MesaGL_glEnable=no |
a848cd7e | 28597 | fi |
3dd30495 VZ |
28598 | rm -f core conftest.err conftest.$ac_objext \ |
28599 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 | 28600 | LIBS=$ac_check_lib_save_LIBS |
a848cd7e | 28601 | fi |
3dd30495 VZ |
28602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glEnable" >&5 |
28603 | $as_echo "$ac_cv_lib_MesaGL_glEnable" >&6; } | |
eff9d7f5 | 28604 | if test "x$ac_cv_lib_MesaGL_glEnable" = xyes; then : |
d0260bd8 | 28605 | ac_find_libraries="std" |
a848cd7e SC |
28606 | fi |
28607 | ||
a848cd7e | 28608 | fi |
d0260bd8 | 28609 | fi |
a848cd7e | 28610 | |
d0260bd8 | 28611 | if test "x$ac_find_libraries" = "x"; then |
3dd30495 VZ |
28612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
28613 | $as_echo_n "checking elsewhere... " >&6; } | |
88bbc332 RR |
28614 | |
28615 | ac_find_libraries= | |
76ff3d06 | 28616 | for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB |
88bbc332 RR |
28617 | do |
28618 | for ac_extension in a so sl dylib dll.a; do | |
d0260bd8 | 28619 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
88bbc332 RR |
28620 | ac_find_libraries=$ac_dir |
28621 | break 2 | |
28622 | fi | |
28623 | done | |
28624 | done | |
28625 | ||
d0260bd8 | 28626 | if test "x$ac_find_libraries" != "x"; then |
3dd30495 VZ |
28627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28628 | $as_echo "yes" >&6; } | |
88bbc332 | 28629 | else |
3dd30495 VZ |
28630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28631 | $as_echo "no" >&6; } | |
88bbc332 | 28632 | fi |
d0260bd8 | 28633 | fi |
a848cd7e | 28634 | |
d0260bd8 | 28635 | elif test $pkg_failed = untried; then |
a848cd7e | 28636 | |
d0260bd8 VZ |
28637 | if test "x$ac_find_libraries" = "x"; then |
28638 | if test "xglEnable" != "x"; then | |
3dd30495 VZ |
28639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glEnable in -lMesaGL" >&5 |
28640 | $as_echo_n "checking for glEnable in -lMesaGL... " >&6; } | |
eff9d7f5 | 28641 | if ${ac_cv_lib_MesaGL_glEnable+:} false; then : |
3dd30495 | 28642 | $as_echo_n "(cached) " >&6 |
a848cd7e | 28643 | else |
d0260bd8 VZ |
28644 | ac_check_lib_save_LIBS=$LIBS |
28645 | LIBS="-lMesaGL $LIBS" | |
3dd30495 | 28646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 28647 | /* end confdefs.h. */ |
6e7b8bcb | 28648 | |
d0260bd8 VZ |
28649 | /* Override any GCC internal prototype to avoid an error. |
28650 | Use char because int might match the return type of a GCC | |
28651 | builtin and then its argument prototype would still apply. */ | |
28652 | #ifdef __cplusplus | |
28653 | extern "C" | |
28654 | #endif | |
28655 | char glEnable (); | |
28656 | int | |
28657 | main () | |
28658 | { | |
28659 | return glEnable (); | |
28660 | ; | |
28661 | return 0; | |
28662 | } | |
a848cd7e | 28663 | _ACEOF |
3dd30495 | 28664 | if ac_fn_c_try_link "$LINENO"; then : |
d0260bd8 | 28665 | ac_cv_lib_MesaGL_glEnable=yes |
a848cd7e | 28666 | else |
3dd30495 | 28667 | ac_cv_lib_MesaGL_glEnable=no |
a848cd7e | 28668 | fi |
3dd30495 VZ |
28669 | rm -f core conftest.err conftest.$ac_objext \ |
28670 | conftest$ac_exeext conftest.$ac_ext | |
d0260bd8 | 28671 | LIBS=$ac_check_lib_save_LIBS |
5dfc7e56 | 28672 | fi |
3dd30495 VZ |
28673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glEnable" >&5 |
28674 | $as_echo "$ac_cv_lib_MesaGL_glEnable" >&6; } | |
eff9d7f5 | 28675 | if test "x$ac_cv_lib_MesaGL_glEnable" = xyes; then : |
d0260bd8 | 28676 | ac_find_libraries="std" |
5dfc7e56 | 28677 | fi |
a848cd7e | 28678 | |
d0260bd8 | 28679 | fi |
a848cd7e | 28680 | fi |
a848cd7e | 28681 | |
d0260bd8 | 28682 | if test "x$ac_find_libraries" = "x"; then |
3dd30495 VZ |
28683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking elsewhere" >&5 |
28684 | $as_echo_n "checking elsewhere... " >&6; } | |
a848cd7e | 28685 | |
0ad5d837 | 28686 | ac_find_libraries= |
76ff3d06 | 28687 | for ac_dir in /opt/graphics/OpenGL/lib $SEARCH_LIB |
0ad5d837 VZ |
28688 | do |
28689 | for ac_extension in a so sl dylib dll.a; do | |
d0260bd8 | 28690 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
0ad5d837 VZ |
28691 | ac_find_libraries=$ac_dir |
28692 | break 2 | |
28693 | fi | |
28694 | done | |
28695 | done | |
28696 | ||
d0260bd8 | 28697 | if test "x$ac_find_libraries" != "x"; then |
3dd30495 VZ |
28698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28699 | $as_echo "yes" >&6; } | |
d0260bd8 | 28700 | else |
3dd30495 VZ |
28701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
28702 | $as_echo "no" >&6; } | |
d0260bd8 VZ |
28703 | fi |
28704 | fi | |
a848cd7e | 28705 | |
d0260bd8 VZ |
28706 | else |
28707 | MesaGL_CFLAGS=$pkg_cv_MesaGL_CFLAGS | |
28708 | MesaGL_LIBS=$pkg_cv_MesaGL_LIBS | |
3dd30495 VZ |
28709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
28710 | $as_echo "yes" >&6; } | |
a848cd7e | 28711 | |
d0260bd8 | 28712 | ac_find_libraries="std" |
a848cd7e | 28713 | |
d0260bd8 VZ |
28714 | eval ac_find_cflags=\$MesaGL_CFLAGS |
28715 | eval fl_libs=\$MesaGL_LIBS | |
a848cd7e | 28716 | |
d0260bd8 VZ |
28717 | for fl_path in $fl_libs |
28718 | do | |
28719 | if test `echo "$fl_path" | cut -c 1-2` = "-L"; then | |
28720 | ac_find_libraries=`echo "$fl_path" | cut -c 3-` | |
28721 | fi | |
28722 | done | |
a848cd7e | 28723 | |
d0260bd8 | 28724 | fi |
a848cd7e SC |
28725 | |
28726 | if test "$ac_find_libraries" != "" ; then | |
d0260bd8 | 28727 | if test "$ac_find_libraries" != "std" ; then |
a848cd7e | 28728 | |
0ad5d837 | 28729 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
28730 | ac_path_to_link="" |
28731 | else | |
0ad5d837 VZ |
28732 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
28733 | result=$? | |
28734 | if test $result = 0; then | |
28735 | ac_path_to_link="" | |
28736 | else | |
28737 | ac_path_to_link=" -L$ac_find_libraries" | |
28738 | fi | |
a848cd7e SC |
28739 | fi |
28740 | ||
d0260bd8 VZ |
28741 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
28742 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
28743 | fi | |
28744 | fi | |
28745 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a848cd7e SC |
28746 | fi |
28747 | fi | |
28748 | ||
28749 | fi | |
28750 | ||
28751 | ||
28752 | ||
5dfc7e56 VZ |
28753 | fi |
28754 | ||
28755 | ||
28756 | ||
a848cd7e | 28757 | if test "x$OPENGL_LIBS" = "x"; then |
f03637a2 | 28758 | if test "$wxUSE_OPENGL" = "yes"; then |
3dd30495 | 28759 | as_fn_error $? "OpenGL libraries not available" "$LINENO" 5 |
f03637a2 | 28760 | else |
3dd30495 VZ |
28761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&5 |
28762 | $as_echo "$as_me: WARNING: OpenGL libraries not available, disabling support for OpenGL" >&2;} | |
f03637a2 FM |
28763 | wxUSE_OPENGL=no |
28764 | USE_OPENGL=0 | |
28765 | fi | |
a848cd7e | 28766 | fi |
0dd9646e | 28767 | else |
3dd30495 VZ |
28768 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5 |
28769 | $as_echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;} | |
0dd9646e | 28770 | wxUSE_OPENGL="no" |
a848cd7e SC |
28771 | fi |
28772 | ||
3dd63e02 VZ |
28773 | if test "$wxUSE_OPENGL" = "auto"; then |
28774 | wxUSE_OPENGL=yes | |
28775 | fi | |
28776 | ||
a848cd7e SC |
28777 | if test "$wxUSE_OPENGL" = "yes"; then |
28778 | USE_OPENGL=1 | |
3dd30495 | 28779 | $as_echo "#define wxUSE_OPENGL 1" >>confdefs.h |
a848cd7e | 28780 | |
3dd30495 | 28781 | $as_echo "#define wxUSE_GLCANVAS 1" >>confdefs.h |
a848cd7e SC |
28782 | |
28783 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
28784 | fi | |
28785 | fi | |
28786 | ||
a848cd7e SC |
28787 | |
28788 | if test -n "$TOOLKIT" ; then | |
28789 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
28790 | fi | |
28791 | ||
a848cd7e SC |
28792 | |
28793 | ||
28794 | if test "$wxUSE_SHARED" = "yes"; then | |
28795 | case "${host}" in | |
28796 | *-pc-msdosdjgpp ) | |
28797 | wxUSE_SHARED=no | |
3dd30495 VZ |
28798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
28799 | $as_echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
a848cd7e SC |
28800 | ;; |
28801 | esac | |
28802 | fi | |
28803 | ||
a848cd7e | 28804 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
28805 | |
28806 | ||
077c7880 VZ |
28807 | case "${host}" in |
28808 | *-*-cygwin* | *-*-mingw* ) | |
2dbd07cb | 28809 | wx_cv_version_script=no |
077c7880 | 28810 | ;; |
a848cd7e | 28811 | |
077c7880 | 28812 | *) |
3dd30495 VZ |
28813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts --version-script" >&5 |
28814 | $as_echo_n "checking if the linker accepts --version-script... " >&6; } | |
eff9d7f5 | 28815 | if ${wx_cv_version_script+:} false; then : |
3dd30495 | 28816 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
28817 | else |
28818 | ||
077c7880 VZ |
28819 | echo "VER_1 { *; };" >conftest.sym |
28820 | echo "int main() { return 0; }" >conftest.cpp | |
a848cd7e | 28821 | |
077c7880 VZ |
28822 | if { ac_try=' |
28823 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28824 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
3dd30495 | 28825 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
a848cd7e SC |
28826 | (eval $ac_try) 2>&5 |
28827 | ac_status=$? | |
3dd30495 VZ |
28828 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
28829 | test $ac_status = 0; }; } ; then | |
077c7880 VZ |
28830 | if test -s conftest.stderr ; then |
28831 | wx_cv_version_script=no | |
28832 | else | |
28833 | wx_cv_version_script=yes | |
28834 | fi | |
28835 | else | |
28836 | wx_cv_version_script=no | |
28837 | fi | |
e5d4b470 | 28838 | |
077c7880 VZ |
28839 | if test $wx_cv_version_script = yes |
28840 | then | |
28841 | echo "struct B { virtual ~B() { } }; \ | |
28842 | struct D : public B { }; \ | |
28843 | void F() { D d; }" > conftest.cpp | |
e5d4b470 | 28844 | |
077c7880 VZ |
28845 | if { ac_try=' |
28846 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28847 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
3dd30495 | 28848 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
e5d4b470 MW |
28849 | (eval $ac_try) 2>&5 |
28850 | ac_status=$? | |
3dd30495 VZ |
28851 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
28852 | test $ac_status = 0; }; } && | |
077c7880 VZ |
28853 | { ac_try=' |
28854 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28855 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
3dd30495 | 28856 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
e5d4b470 MW |
28857 | (eval $ac_try) 2>&5 |
28858 | ac_status=$? | |
3dd30495 VZ |
28859 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
28860 | test $ac_status = 0; }; } | |
077c7880 VZ |
28861 | then |
28862 | if { ac_try=' | |
28863 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
28864 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
3dd30495 | 28865 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
e5d4b470 MW |
28866 | (eval $ac_try) 2>&5 |
28867 | ac_status=$? | |
3dd30495 VZ |
28868 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
28869 | test $ac_status = 0; }; } | |
077c7880 VZ |
28870 | then |
28871 | wx_cv_version_script=yes | |
28872 | else | |
28873 | wx_cv_version_script=no | |
28874 | fi | |
28875 | fi | |
28876 | fi | |
e5d4b470 | 28877 | |
077c7880 VZ |
28878 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
28879 | rm -f conftest1.output conftest2.output conftest3.output | |
a848cd7e SC |
28880 | |
28881 | fi | |
3dd30495 VZ |
28882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_version_script" >&5 |
28883 | $as_echo "$wx_cv_version_script" >&6; } | |
077c7880 VZ |
28884 | |
28885 | if test $wx_cv_version_script = yes ; then | |
28886 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script" | |
28887 | fi | |
28888 | ;; | |
28889 | esac | |
a848cd7e SC |
28890 | |
28891 | ||
a2bd84a5 | 28892 | if test "$wxUSE_VISIBILITY" != "no"; then |
0ff20b9f VS |
28893 | |
28894 | ||
28895 | if test -n "$GCC"; then | |
28896 | CFLAGS_VISIBILITY="-fvisibility=hidden" | |
28897 | CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden" | |
3dd30495 VZ |
28898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbols visibility support" >&5 |
28899 | $as_echo_n "checking for symbols visibility support... " >&6; } | |
eff9d7f5 | 28900 | if ${wx_cv_cc_visibility+:} false; then : |
3dd30495 | 28901 | $as_echo_n "(cached) " >&6 |
0ff20b9f VS |
28902 | else |
28903 | ||
28904 | wx_save_CXXFLAGS="$CXXFLAGS" | |
28905 | CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY" | |
47964710 | 28906 | ac_ext=cpp |
0ff20b9f VS |
28907 | ac_cpp='$CXXCPP $CPPFLAGS' |
28908 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28909 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28910 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28911 | ||
3dd30495 | 28912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0ff20b9f VS |
28913 | /* end confdefs.h. */ |
28914 | ||
28915 | /* we need gcc >= 4.0, older versions with visibility support | |
28916 | didn't have class visibility: */ | |
28917 | #if defined(__GNUC__) && __GNUC__ < 4 | |
28918 | error this gcc is too old; | |
28919 | #endif | |
28920 | ||
b9d4eff6 VS |
28921 | /* visibility only makes sense for ELF shared libs: */ |
28922 | #if !defined(__ELF__) && !defined(__APPLE__) | |
28923 | error this platform has no visibility; | |
28924 | #endif | |
28925 | ||
7198c336 VS |
28926 | /* at the time of Xcode 4.1 / Clang 3, Clang++ still didn't have the bugs sorted out: */ |
28927 | #if defined(__clang__) | |
28928 | clang compiler is still broken w.r.t. visibility; | |
28929 | #endif | |
28930 | ||
0ff20b9f VS |
28931 | extern __attribute__((__visibility__("hidden"))) int hiddenvar; |
28932 | extern __attribute__((__visibility__("default"))) int exportedvar; | |
28933 | extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); | |
28934 | extern __attribute__((__visibility__("default"))) int exportedfunc (void); | |
28935 | class __attribute__((__visibility__("default"))) Foo { | |
28936 | Foo() {} | |
28937 | }; | |
28938 | ||
28939 | int | |
28940 | main () | |
28941 | { | |
28942 | ||
28943 | ; | |
28944 | return 0; | |
28945 | } | |
28946 | _ACEOF | |
3dd30495 | 28947 | if ac_fn_cxx_try_compile "$LINENO"; then : |
0ff20b9f VS |
28948 | wx_cv_cc_visibility=yes |
28949 | else | |
3dd30495 | 28950 | wx_cv_cc_visibility=no |
0ff20b9f | 28951 | fi |
47964710 | 28952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
0ff20b9f VS |
28953 | ac_ext=c |
28954 | ac_cpp='$CPP $CPPFLAGS' | |
28955 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28956 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28957 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28958 | ||
28959 | CXXFLAGS="$wx_save_CXXFLAGS" | |
28960 | fi | |
28961 | ||
3dd30495 VZ |
28962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_cc_visibility" >&5 |
28963 | $as_echo "$wx_cv_cc_visibility" >&6; } | |
0ff20b9f | 28964 | if test $wx_cv_cc_visibility = yes; then |
3dd30495 VZ |
28965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken libstdc++ visibility" >&5 |
28966 | $as_echo_n "checking for broken libstdc++ visibility... " >&6; } | |
eff9d7f5 | 28967 | if ${wx_cv_cc_broken_libstdcxx_visibility+:} false; then : |
3dd30495 | 28968 | $as_echo_n "(cached) " >&6 |
d6f513f8 VS |
28969 | else |
28970 | ||
28971 | wx_save_CXXFLAGS="$CXXFLAGS" | |
34b340a0 | 28972 | wx_save_LDFLAGS="$LDFLAGS" |
d6f513f8 | 28973 | CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY" |
34b340a0 | 28974 | LDFLAGS="$LDFLAGS -shared -fPIC" |
47964710 | 28975 | ac_ext=cpp |
d6f513f8 VS |
28976 | ac_cpp='$CXXCPP $CPPFLAGS' |
28977 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28978 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28979 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28980 | ||
3dd30495 | 28981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d6f513f8 VS |
28982 | /* end confdefs.h. */ |
28983 | ||
28984 | #include <string> | |
28985 | ||
28986 | int | |
28987 | main () | |
28988 | { | |
28989 | ||
34b340a0 VS |
28990 | std::string s("hello"); |
28991 | return s.length(); | |
d6f513f8 VS |
28992 | |
28993 | ; | |
28994 | return 0; | |
28995 | } | |
28996 | _ACEOF | |
3dd30495 | 28997 | if ac_fn_cxx_try_link "$LINENO"; then : |
d6f513f8 VS |
28998 | wx_cv_cc_broken_libstdcxx_visibility=no |
28999 | else | |
3dd30495 | 29000 | wx_cv_cc_broken_libstdcxx_visibility=yes |
d6f513f8 | 29001 | fi |
3dd30495 VZ |
29002 | rm -f core conftest.err conftest.$ac_objext \ |
29003 | conftest$ac_exeext conftest.$ac_ext | |
d6f513f8 VS |
29004 | ac_ext=c |
29005 | ac_cpp='$CPP $CPPFLAGS' | |
29006 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29007 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29008 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29009 | ||
29010 | CXXFLAGS="$wx_save_CXXFLAGS" | |
34b340a0 | 29011 | LDFLAGS="$wx_save_LDFLAGS" |
d6f513f8 VS |
29012 | fi |
29013 | ||
3dd30495 VZ |
29014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5 |
29015 | $as_echo "$wx_cv_cc_broken_libstdcxx_visibility" >&6; } | |
c9bd045b VZ |
29016 | |
29017 | if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then | |
3dd30495 VZ |
29018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can work around it" >&5 |
29019 | $as_echo_n "checking whether we can work around it... " >&6; } | |
eff9d7f5 | 29020 | if ${wx_cv_cc_visibility_workaround+:} false; then : |
3dd30495 | 29021 | $as_echo_n "(cached) " >&6 |
c9bd045b VZ |
29022 | else |
29023 | ||
29024 | ac_ext=cpp | |
29025 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29026 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29027 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29028 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29029 | ||
3dd30495 | 29030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c9bd045b VZ |
29031 | /* end confdefs.h. */ |
29032 | ||
29033 | #pragma GCC visibility push(default) | |
29034 | #include <string> | |
29035 | #pragma GCC visibility pop | |
29036 | ||
29037 | int | |
29038 | main () | |
29039 | { | |
29040 | ||
29041 | std::string s("hello"); | |
29042 | return s.length(); | |
29043 | ||
29044 | ; | |
29045 | return 0; | |
29046 | } | |
29047 | _ACEOF | |
3dd30495 | 29048 | if ac_fn_cxx_try_link "$LINENO"; then : |
c9bd045b VZ |
29049 | wx_cv_cc_visibility_workaround=no |
29050 | else | |
3dd30495 | 29051 | wx_cv_cc_visibility_workaround=yes |
c9bd045b | 29052 | fi |
3dd30495 VZ |
29053 | rm -f core conftest.err conftest.$ac_objext \ |
29054 | conftest$ac_exeext conftest.$ac_ext | |
c9bd045b VZ |
29055 | ac_ext=c |
29056 | ac_cpp='$CPP $CPPFLAGS' | |
29057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29060 | ||
29061 | ||
29062 | fi | |
29063 | ||
3dd30495 VZ |
29064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_cc_visibility_workaround" >&5 |
29065 | $as_echo "$wx_cv_cc_visibility_workaround" >&6; } | |
c9bd045b VZ |
29066 | |
29067 | if test $wx_cv_cc_visibility_workaround = no; then | |
29068 | wx_cv_cc_visibility=no | |
29069 | fi | |
29070 | fi | |
29071 | fi | |
29072 | ||
29073 | if test $wx_cv_cc_visibility = yes; then | |
3dd30495 | 29074 | $as_echo "#define HAVE_VISIBILITY 1" >>confdefs.h |
c9bd045b | 29075 | |
d6f513f8 | 29076 | if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then |
3dd30495 | 29077 | $as_echo "#define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1" >>confdefs.h |
d6f513f8 VS |
29078 | |
29079 | fi | |
0ff20b9f VS |
29080 | else |
29081 | CFLAGS_VISIBILITY="" | |
29082 | CXXFLAGS_VISIBILITY="" | |
29083 | fi | |
29084 | ||
29085 | ||
29086 | fi | |
29087 | ||
a2bd84a5 | 29088 | fi |
0ff20b9f | 29089 | |
43a7c679 VZ |
29090 | if test "x$SUNCXX" = xyes; then |
29091 | SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib" | |
29092 | WXCONFIG_RPATH="-R\$libdir" | |
29093 | else | |
a848cd7e SC |
29094 | case "${host}" in |
29095 | *-*-linux* | *-*-gnu* ) | |
02b05020 | 29096 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib" |
ffa0583f | 29097 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 29098 | ;; |
a848cd7e SC |
29099 | |
29100 | *-*-solaris2* ) | |
a848cd7e | 29101 | |
43a7c679 VZ |
29102 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
29103 | ||
29104 | saveLdflags="$LDFLAGS" | |
29105 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
3dd30495 VZ |
29106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -rpath" >&5 |
29107 | $as_echo_n "checking if the linker accepts -rpath... " >&6; } | |
29108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e SC |
29109 | /* end confdefs.h. */ |
29110 | ||
29111 | int | |
29112 | main () | |
29113 | { | |
29114 | ||
29115 | ; | |
29116 | return 0; | |
29117 | } | |
29118 | _ACEOF | |
3dd30495 | 29119 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e | 29120 | |
3dd30495 VZ |
29121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
29122 | $as_echo "yes" >&6; } | |
43a7c679 VZ |
29123 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib" |
29124 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" | |
a848cd7e SC |
29125 | |
29126 | else | |
a848cd7e | 29127 | |
3dd30495 VZ |
29128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
29129 | $as_echo "no" >&6; } | |
29130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -R" >&5 | |
29131 | $as_echo_n "checking if the linker accepts -R... " >&6; } | |
43a7c679 | 29132 | LDFLAGS="$saveLdflags -Wl,-R,/" |
3dd30495 | 29133 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
29134 | /* end confdefs.h. */ |
29135 | ||
29136 | int | |
29137 | main () | |
29138 | { | |
29139 | ||
29140 | ; | |
29141 | return 0; | |
29142 | } | |
29143 | _ACEOF | |
3dd30495 | 29144 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e | 29145 | |
3dd30495 VZ |
29146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
29147 | $as_echo "yes" >&6; } | |
43a7c679 VZ |
29148 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib" |
29149 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
ffa0583f | 29150 | |
a848cd7e | 29151 | else |
a848cd7e | 29152 | |
3dd30495 VZ |
29153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
29154 | $as_echo "no" >&6; } | |
a848cd7e SC |
29155 | |
29156 | fi | |
3dd30495 VZ |
29157 | rm -f core conftest.err conftest.$ac_objext \ |
29158 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29159 | |
29160 | fi | |
3dd30495 VZ |
29161 | rm -f core conftest.err conftest.$ac_objext \ |
29162 | conftest$ac_exeext conftest.$ac_ext | |
43a7c679 | 29163 | LDFLAGS="$saveLdflags" |
a848cd7e SC |
29164 | ;; |
29165 | ||
cfda0ea8 | 29166 | *-*-darwin* ) |
ddd121d7 | 29167 | install_name_tool=`which ${HOST_PREFIX}install_name_tool` |
0caebc27 | 29168 | if test "$install_name_tool" -a -x "$install_name_tool"; then |
2fd71613 | 29169 | DYLIB_RPATH_POSTLINK="${HOST_PREFIX}install_name_tool -id \$@ \$@" |
0caebc27 | 29170 | cat <<EOF >change-install-names |
a848cd7e | 29171 | #!/bin/sh |
3fbba098 | 29172 | libnames=\`cd \${2} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` |
a848cd7e | 29173 | for i in \${libnames} ; do |
3fbba098 | 29174 | ${HOST_PREFIX}install_name_tool -id \${3}/\${i} \${1}/\${i} |
2fd71613 | 29175 | for dep in \${libnames} ; do |
3fbba098 | 29176 | ${HOST_PREFIX}install_name_tool -change \${2}/\${dep} \${3}/\${dep} \${1}/\${i} |
2fd71613 | 29177 | done |
a848cd7e | 29178 | done |
a848cd7e | 29179 | EOF |
0caebc27 | 29180 | chmod +x change-install-names |
3fbba098 | 29181 | DYLIB_RPATH_INSTALL="\$(wx_top_builddir)/change-install-names \${DESTDIR}\${libdir} \$(wx_top_builddir)/lib \${libdir}" |
0caebc27 | 29182 | fi |
516cf181 FM |
29183 | |
29184 | HEADER_PAD_OPTION="-headerpad_max_install_names" | |
a848cd7e SC |
29185 | ;; |
29186 | ||
29187 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 | 29188 | ;; |
a848cd7e | 29189 | |
81f90336 | 29190 | *-*-hpux* ) |
02b05020 | 29191 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib" |
81f90336 | 29192 | WXCONFIG_RPATH="-Wl,+b,\$libdir" |
5ff751d6 | 29193 | ;; |
81f90336 | 29194 | |
a848cd7e | 29195 | esac |
43a7c679 | 29196 | fi |
ceec2216 | 29197 | |
d3b8fe10 VZ |
29198 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
29199 | ||
ffa0583f RL |
29200 | if test $wxUSE_RPATH = "no"; then |
29201 | SAMPLES_RPATH_FLAG='' | |
2fd71613 | 29202 | DYLIB_PATH_POSTLINK='' |
ffa0583f RL |
29203 | WXCONFIG_RPATH='' |
29204 | fi | |
29205 | ||
29206 | SHARED=1 | |
29207 | ||
29208 | else | |
29209 | ||
ceec2216 RL |
29210 | config_linkage_component="-static" |
29211 | SHARED=0 | |
ffa0583f | 29212 | |
ceec2216 | 29213 | fi |
a848cd7e | 29214 | |
a848cd7e | 29215 | |
ceec2216 RL |
29216 | UNICODE=0 |
29217 | lib_unicode_suffix= | |
29218 | WX_CHARTYPE="ansi" | |
29219 | if test "$wxUSE_UNICODE" = "yes"; then | |
29220 | lib_unicode_suffix=u | |
29221 | WX_CHARTYPE="unicode" | |
29222 | UNICODE=1 | |
a848cd7e SC |
29223 | fi |
29224 | ||
ceec2216 RL |
29225 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
29226 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 29227 | |
ceec2216 RL |
29228 | DEBUG_INFO=0 |
29229 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
29230 | DEBUG_INFO=1 | |
29231 | fi | |
a848cd7e | 29232 | |
89b1afb4 | 29233 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr '[a-z]' '[A-Z]'` |
a848cd7e | 29234 | |
89b1afb4 | 29235 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e | 29236 | |
89b1afb4 | 29237 | TOOLCHAIN_FULLNAME="${HOST_PREFIX}${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 29238 | |
f0bb342f | 29239 | |
f10f4c87 | 29240 | if test "$wxUSE_OSX_CARBON" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OLD_COCOA" = 1; then |
89b1afb4 | 29241 | WX_LIBRARY_BASENAME_NOGUI="wx_base${lib_unicode_suffix}${WX_LIB_FLAVOUR}" |
f0bb342f | 29242 | else |
89b1afb4 | 29243 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${WX_LIB_FLAVOUR}" |
f0bb342f | 29244 | fi |
abc736fd | 29245 | if test "${TOOLKIT_DIR}" = "os2"; then |
89b1afb4 | 29246 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}" |
abc736fd | 29247 | else |
89b1afb4 | 29248 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${WX_LIB_FLAVOUR}" |
abc736fd | 29249 | fi |
ceec2216 RL |
29250 | |
29251 | ||
29252 | ||
f10f4c87 | 29253 | if test "$wxUSE_OLD_COCOA" = 1; then |
1d1af5ea | 29254 | |
1d1af5ea DE |
29255 | ac_ext=c |
29256 | ac_cpp='$CPP $CPPFLAGS' | |
29257 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29258 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29259 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29260 | ||
29261 | ac_ext=m | |
29262 | ||
3dd30495 VZ |
29263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 |
29264 | $as_echo_n "checking if AppKit/NSEvent.h conflicts with CoreFoundation... " >&6; } | |
29265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1d1af5ea DE |
29266 | /* end confdefs.h. */ |
29267 | #include <AppKit/NSEvent.h> | |
29268 | #include <CoreFoundation/CoreFoundation.h> | |
29269 | ||
29270 | int | |
29271 | main () | |
29272 | { | |
29273 | ||
29274 | ; | |
29275 | return 0; | |
29276 | } | |
29277 | _ACEOF | |
3dd30495 VZ |
29278 | if ac_fn_c_try_compile "$LINENO"; then : |
29279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
29280 | $as_echo "no" >&6; } | |
1d1af5ea | 29281 | else |
3dd30495 VZ |
29282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
29283 | $as_echo "yes" >&6; } | |
29284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if defining __Point__ will fix it" >&5 | |
29285 | $as_echo_n "checking if defining __Point__ will fix it... " >&6; } | |
29286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1d1af5ea DE |
29287 | /* end confdefs.h. */ |
29288 | #define __Point__ 1 | |
29289 | #include <AppKit/NSEvent.h> | |
29290 | #include <CoreFoundation/CoreFoundation.h> | |
29291 | ||
29292 | int | |
29293 | main () | |
29294 | { | |
29295 | ||
29296 | ; | |
29297 | return 0; | |
29298 | } | |
29299 | _ACEOF | |
3dd30495 VZ |
29300 | if ac_fn_c_try_compile "$LINENO"; then : |
29301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
29302 | $as_echo "yes" >&6; } | |
29303 | $as_echo "#define __Point__ 1" >>confdefs.h | |
1d1af5ea DE |
29304 | |
29305 | ||
29306 | else | |
3dd30495 VZ |
29307 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
29308 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
29309 | as_fn_error $? "no | |
eff9d7f5 | 29310 | See \`config.log' for more details" "$LINENO" 5; } |
1d1af5ea DE |
29311 | |
29312 | fi | |
47964710 | 29313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1d1af5ea DE |
29314 | |
29315 | fi | |
47964710 | 29316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fd5199d6 VZ |
29317 | ac_ext=c |
29318 | ac_cpp='$CPP $CPPFLAGS' | |
29319 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29320 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29321 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1d1af5ea DE |
29322 | |
29323 | fi | |
29324 | ||
a848cd7e | 29325 | |
3dd30495 | 29326 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
eff9d7f5 | 29327 | if test "x$ac_cv_type_mode_t" = xyes; then : |
47964710 | 29328 | |
a848cd7e SC |
29329 | else |
29330 | ||
29331 | cat >>confdefs.h <<_ACEOF | |
29332 | #define mode_t int | |
29333 | _ACEOF | |
29334 | ||
29335 | fi | |
29336 | ||
3dd30495 | 29337 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
eff9d7f5 | 29338 | if test "x$ac_cv_type_off_t" = xyes; then : |
47964710 | 29339 | |
a848cd7e SC |
29340 | else |
29341 | ||
29342 | cat >>confdefs.h <<_ACEOF | |
47964710 | 29343 | #define off_t long int |
a848cd7e SC |
29344 | _ACEOF |
29345 | ||
29346 | fi | |
29347 | ||
3dd30495 | 29348 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
eff9d7f5 | 29349 | if test "x$ac_cv_type_pid_t" = xyes; then : |
47964710 | 29350 | |
a848cd7e SC |
29351 | else |
29352 | ||
29353 | cat >>confdefs.h <<_ACEOF | |
29354 | #define pid_t int | |
29355 | _ACEOF | |
29356 | ||
29357 | fi | |
29358 | ||
3dd30495 | 29359 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
eff9d7f5 | 29360 | if test "x$ac_cv_type_size_t" = xyes; then : |
47964710 | 29361 | |
a848cd7e SC |
29362 | else |
29363 | ||
29364 | cat >>confdefs.h <<_ACEOF | |
47964710 | 29365 | #define size_t unsigned int |
a848cd7e SC |
29366 | _ACEOF |
29367 | ||
29368 | fi | |
29369 | ||
a848cd7e | 29370 | |
3dd30495 | 29371 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" |
eff9d7f5 | 29372 | if test "x$ac_cv_type_ssize_t" = xyes; then : |
d51253e8 RL |
29373 | |
29374 | cat >>confdefs.h <<_ACEOF | |
29375 | #define HAVE_SSIZE_T 1 | |
29376 | _ACEOF | |
29377 | ||
29378 | ||
29379 | fi | |
29380 | ||
29381 | ||
47964710 | 29382 | ac_ext=cpp |
9b8888f9 VZ |
29383 | ac_cpp='$CXXCPP $CPPFLAGS' |
29384 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29385 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29386 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3dd30495 VZ |
29387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if size_t is unsigned int" >&5 |
29388 | $as_echo_n "checking if size_t is unsigned int... " >&6; } | |
eff9d7f5 | 29389 | if ${wx_cv_size_t_is_uint+:} false; then : |
3dd30495 | 29390 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
29391 | else |
29392 | ||
3dd30495 | 29393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
29394 | /* end confdefs.h. */ |
29395 | #include <stddef.h> | |
29396 | int | |
29397 | main () | |
29398 | { | |
29399 | ||
29400 | return 0; } | |
29401 | ||
29402 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
29403 | ||
29404 | int bar() { | |
29405 | ||
29406 | ; | |
29407 | return 0; | |
29408 | } | |
29409 | _ACEOF | |
3dd30495 | 29410 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
29411 | wx_cv_size_t_is_uint=no |
29412 | else | |
3dd30495 | 29413 | wx_cv_size_t_is_uint=yes |
a848cd7e SC |
29414 | |
29415 | fi | |
47964710 | 29416 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29417 | |
29418 | ||
29419 | fi | |
3dd30495 VZ |
29420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_size_t_is_uint" >&5 |
29421 | $as_echo "$wx_cv_size_t_is_uint" >&6; } | |
a848cd7e SC |
29422 | |
29423 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
3dd30495 | 29424 | $as_echo "#define wxSIZE_T_IS_UINT 1" >>confdefs.h |
a848cd7e SC |
29425 | |
29426 | else | |
3dd30495 VZ |
29427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if size_t is unsigned long" >&5 |
29428 | $as_echo_n "checking if size_t is unsigned long... " >&6; } | |
eff9d7f5 | 29429 | if ${wx_cv_size_t_is_ulong+:} false; then : |
3dd30495 | 29430 | $as_echo_n "(cached) " >&6 |
a848cd7e | 29431 | else |
3dd30495 | 29432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
29433 | /* end confdefs.h. */ |
29434 | #include <stddef.h> | |
29435 | int | |
29436 | main () | |
29437 | { | |
29438 | ||
29439 | return 0; } | |
29440 | ||
29441 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
29442 | ||
29443 | int bar() { | |
29444 | ||
29445 | ; | |
29446 | return 0; | |
29447 | } | |
29448 | _ACEOF | |
3dd30495 | 29449 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
29450 | wx_cv_size_t_is_ulong=no |
29451 | else | |
3dd30495 | 29452 | wx_cv_size_t_is_ulong=yes |
a848cd7e SC |
29453 | |
29454 | fi | |
47964710 | 29455 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29456 | |
29457 | fi | |
3dd30495 VZ |
29458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_size_t_is_ulong" >&5 |
29459 | $as_echo "$wx_cv_size_t_is_ulong" >&6; } | |
a848cd7e SC |
29460 | |
29461 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
3dd30495 | 29462 | $as_echo "#define wxSIZE_T_IS_ULONG 1" >>confdefs.h |
a848cd7e SC |
29463 | |
29464 | fi | |
29465 | fi | |
29466 | ||
3dd30495 VZ |
29467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if wchar_t is separate type" >&5 |
29468 | $as_echo_n "checking if wchar_t is separate type... " >&6; } | |
eff9d7f5 | 29469 | if ${wx_cv_wchar_t_is_separate_type+:} false; then : |
3dd30495 | 29470 | $as_echo_n "(cached) " >&6 |
21f0762a | 29471 | else |
3dd30495 | 29472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
21f0762a VS |
29473 | /* end confdefs.h. */ |
29474 | #include <wchar.h> | |
29475 | int | |
29476 | main () | |
29477 | { | |
29478 | ||
29479 | return 0; } | |
29480 | ||
29481 | struct Foo { void foo(wchar_t); | |
29482 | void foo(unsigned short); | |
29483 | void foo(unsigned int); | |
29484 | void foo(unsigned long); }; | |
29485 | ||
29486 | int bar() { | |
29487 | ||
29488 | ; | |
29489 | return 0; | |
29490 | } | |
29491 | _ACEOF | |
3dd30495 | 29492 | if ac_fn_cxx_try_compile "$LINENO"; then : |
21f0762a VS |
29493 | wx_cv_wchar_t_is_separate_type=yes |
29494 | else | |
3dd30495 | 29495 | wx_cv_wchar_t_is_separate_type=no |
21f0762a VS |
29496 | |
29497 | fi | |
47964710 | 29498 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21f0762a VS |
29499 | |
29500 | fi | |
3dd30495 VZ |
29501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_wchar_t_is_separate_type" >&5 |
29502 | $as_echo "$wx_cv_wchar_t_is_separate_type" >&6; } | |
21f0762a VS |
29503 | |
29504 | if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then | |
3dd30495 | 29505 | $as_echo "#define wxWCHAR_T_IS_REAL_TYPE 1" >>confdefs.h |
21f0762a | 29506 | |
4d62edfb | 29507 | else |
3dd30495 | 29508 | $as_echo "#define wxWCHAR_T_IS_REAL_TYPE 0" >>confdefs.h |
4d62edfb | 29509 | |
21f0762a VS |
29510 | fi |
29511 | ||
9b8888f9 VZ |
29512 | ac_ext=c |
29513 | ac_cpp='$CPP $CPPFLAGS' | |
29514 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29515 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29516 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29517 | ||
a848cd7e | 29518 | |
3dd30495 VZ |
29519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pw_gecos in struct passwd" >&5 |
29520 | $as_echo_n "checking for pw_gecos in struct passwd... " >&6; } | |
eff9d7f5 | 29521 | if ${wx_cv_struct_pw_gecos+:} false; then : |
3dd30495 VZ |
29522 | $as_echo_n "(cached) " >&6 |
29523 | else | |
29524 | ||
29525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
29526 | /* end confdefs.h. */ | |
29527 | #include <pwd.h> | |
8a02058a VS |
29528 | int |
29529 | main () | |
29530 | { | |
3dd30495 VZ |
29531 | |
29532 | char *p; | |
29533 | struct passwd *pw; | |
29534 | p = pw->pw_gecos; | |
29535 | ||
8a02058a VS |
29536 | ; |
29537 | return 0; | |
29538 | } | |
29539 | _ACEOF | |
3dd30495 VZ |
29540 | if ac_fn_c_try_compile "$LINENO"; then : |
29541 | ||
29542 | wx_cv_struct_pw_gecos=yes | |
29543 | ||
8a02058a | 29544 | else |
8a02058a | 29545 | |
3dd30495 VZ |
29546 | wx_cv_struct_pw_gecos=no |
29547 | ||
29548 | ||
8a02058a | 29549 | fi |
3dd30495 VZ |
29550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
29551 | ||
47964710 | 29552 | |
8a02058a | 29553 | fi |
3dd30495 VZ |
29554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_struct_pw_gecos" >&5 |
29555 | $as_echo "$wx_cv_struct_pw_gecos" >&6; } | |
29556 | ||
29557 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
29558 | $as_echo "#define HAVE_PW_GECOS 1" >>confdefs.h | |
8a02058a VS |
29559 | |
29560 | fi | |
8a02058a VS |
29561 | |
29562 | ||
3dd30495 VZ |
29563 | WCSLEN_FOUND=0 |
29564 | WCHAR_LINK= | |
29565 | for ac_func in wcslen | |
29566 | do : | |
29567 | ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen" | |
eff9d7f5 | 29568 | if test "x$ac_cv_func_wcslen" = xyes; then : |
3dd30495 VZ |
29569 | cat >>confdefs.h <<_ACEOF |
29570 | #define HAVE_WCSLEN 1 | |
29571 | _ACEOF | |
29572 | WCSLEN_FOUND=1 | |
86970434 | 29573 | fi |
3dd30495 | 29574 | done |
473276a9 | 29575 | |
3dd30495 VZ |
29576 | |
29577 | if test "$WCSLEN_FOUND" = 0; then | |
29578 | if test "$TOOLKIT" = "MSW"; then | |
29579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcslen in -lmsvcrt" >&5 | |
29580 | $as_echo_n "checking for wcslen in -lmsvcrt... " >&6; } | |
eff9d7f5 | 29581 | if ${ac_cv_lib_msvcrt_wcslen+:} false; then : |
3dd30495 | 29582 | $as_echo_n "(cached) " >&6 |
efdf6afe | 29583 | else |
3dd30495 VZ |
29584 | ac_check_lib_save_LIBS=$LIBS |
29585 | LIBS="-lmsvcrt $LIBS" | |
29586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
aa113d87 | 29587 | /* end confdefs.h. */ |
aa113d87 | 29588 | |
3dd30495 VZ |
29589 | /* Override any GCC internal prototype to avoid an error. |
29590 | Use char because int might match the return type of a GCC | |
29591 | builtin and then its argument prototype would still apply. */ | |
29592 | #ifdef __cplusplus | |
29593 | extern "C" | |
29594 | #endif | |
29595 | char wcslen (); | |
aa113d87 FM |
29596 | int |
29597 | main () | |
29598 | { | |
3dd30495 | 29599 | return wcslen (); |
efdf6afe VZ |
29600 | ; |
29601 | return 0; | |
29602 | } | |
29603 | _ACEOF | |
3dd30495 VZ |
29604 | if ac_fn_c_try_link "$LINENO"; then : |
29605 | ac_cv_lib_msvcrt_wcslen=yes | |
efdf6afe | 29606 | else |
3dd30495 | 29607 | ac_cv_lib_msvcrt_wcslen=no |
efdf6afe | 29608 | fi |
3dd30495 VZ |
29609 | rm -f core conftest.err conftest.$ac_objext \ |
29610 | conftest$ac_exeext conftest.$ac_ext | |
29611 | LIBS=$ac_check_lib_save_LIBS | |
29612 | fi | |
29613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
29614 | $as_echo "$ac_cv_lib_msvcrt_wcslen" >&6; } | |
eff9d7f5 | 29615 | if test "x$ac_cv_lib_msvcrt_wcslen" = xyes; then : |
3dd30495 | 29616 | WCHAR_OK=1 |
efdf6afe | 29617 | fi |
a848cd7e | 29618 | |
3dd30495 VZ |
29619 | else |
29620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wcslen in -lw" >&5 | |
29621 | $as_echo_n "checking for wcslen in -lw... " >&6; } | |
eff9d7f5 | 29622 | if ${ac_cv_lib_w_wcslen+:} false; then : |
3dd30495 | 29623 | $as_echo_n "(cached) " >&6 |
a848cd7e | 29624 | else |
3dd30495 VZ |
29625 | ac_check_lib_save_LIBS=$LIBS |
29626 | LIBS="-lw $LIBS" | |
29627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 29628 | /* end confdefs.h. */ |
ac1cb8d3 | 29629 | |
47964710 VS |
29630 | /* Override any GCC internal prototype to avoid an error. |
29631 | Use char because int might match the return type of a GCC | |
29632 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
29633 | #ifdef __cplusplus |
29634 | extern "C" | |
a848cd7e | 29635 | #endif |
3dd30495 | 29636 | char wcslen (); |
a848cd7e SC |
29637 | int |
29638 | main () | |
29639 | { | |
3dd30495 | 29640 | return wcslen (); |
a848cd7e SC |
29641 | ; |
29642 | return 0; | |
29643 | } | |
29644 | _ACEOF | |
3dd30495 VZ |
29645 | if ac_fn_c_try_link "$LINENO"; then : |
29646 | ac_cv_lib_w_wcslen=yes | |
a848cd7e | 29647 | else |
3dd30495 | 29648 | ac_cv_lib_w_wcslen=no |
a848cd7e | 29649 | fi |
3dd30495 VZ |
29650 | rm -f core conftest.err conftest.$ac_objext \ |
29651 | conftest$ac_exeext conftest.$ac_ext | |
29652 | LIBS=$ac_check_lib_save_LIBS | |
a848cd7e | 29653 | fi |
3dd30495 VZ |
29654 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wcslen" >&5 |
29655 | $as_echo "$ac_cv_lib_w_wcslen" >&6; } | |
eff9d7f5 | 29656 | if test "x$ac_cv_lib_w_wcslen" = xyes; then : |
a848cd7e | 29657 | |
3dd30495 VZ |
29658 | WCHAR_LINK=" -lw" |
29659 | WCSLEN_FOUND=1 | |
a848cd7e | 29660 | |
efdf6afe VZ |
29661 | fi |
29662 | ||
3dd30495 VZ |
29663 | fi |
29664 | fi | |
a848cd7e | 29665 | |
3dd30495 VZ |
29666 | if test "$WCSLEN_FOUND" = 1; then |
29667 | $as_echo "#define HAVE_WCSLEN 1" >>confdefs.h | |
a848cd7e | 29668 | |
3dd30495 | 29669 | fi |
4a767dd5 | 29670 | |
3dd30495 VZ |
29671 | for ac_func in wcsdup wcsftime strnlen wcsnlen wcscasecmp wcsncasecmp |
29672 | do : | |
29673 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29674 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
29675 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
29676 | cat >>confdefs.h <<_ACEOF | |
29677 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
a848cd7e | 29678 | _ACEOF |
ac1cb8d3 | 29679 | |
3dd30495 VZ |
29680 | fi |
29681 | done | |
ac1cb8d3 | 29682 | |
ac1cb8d3 | 29683 | |
3dd30495 VZ |
29684 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
29685 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" | |
29686 | fi | |
ac1cb8d3 | 29687 | |
3dd30495 VZ |
29688 | ac_fn_c_check_type "$LINENO" "mbstate_t" "ac_cv_type_mbstate_t" "#include <wchar.h> |
29689 | " | |
eff9d7f5 | 29690 | if test "x$ac_cv_type_mbstate_t" = xyes; then : |
a848cd7e | 29691 | |
3dd30495 VZ |
29692 | cat >>confdefs.h <<_ACEOF |
29693 | #define HAVE_MBSTATE_T 1 | |
29694 | _ACEOF | |
29695 | ||
29696 | for ac_func in wcsrtombs | |
29697 | do : | |
29698 | ac_fn_c_check_func "$LINENO" "wcsrtombs" "ac_cv_func_wcsrtombs" | |
eff9d7f5 | 29699 | if test "x$ac_cv_func_wcsrtombs" = xyes; then : |
3dd30495 VZ |
29700 | cat >>confdefs.h <<_ACEOF |
29701 | #define HAVE_WCSRTOMBS 1 | |
a848cd7e | 29702 | _ACEOF |
a848cd7e | 29703 | |
a848cd7e | 29704 | fi |
3dd30495 | 29705 | done |
47964710 | 29706 | |
a848cd7e | 29707 | fi |
3dd30495 VZ |
29708 | |
29709 | ||
29710 | for ac_func in snprintf vsnprintf vsscanf | |
29711 | do : | |
29712 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29713 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
29714 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a848cd7e | 29715 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 29716 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
29717 | _ACEOF |
29718 | ||
29719 | fi | |
29720 | done | |
29721 | ||
29722 | ||
5cfbef2a | 29723 | ac_ext=cpp |
e203535f SN |
29724 | ac_cpp='$CXXCPP $CPPFLAGS' |
29725 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29726 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29727 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29728 | ||
a848cd7e | 29729 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
3dd30495 VZ |
29730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsnprintf declaration" >&5 |
29731 | $as_echo_n "checking for vsnprintf declaration... " >&6; } | |
eff9d7f5 | 29732 | if ${wx_cv_func_vsnprintf_decl+:} false; then : |
3dd30495 | 29733 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
29734 | else |
29735 | ||
3dd30495 | 29736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
29737 | /* end confdefs.h. */ |
29738 | ||
29739 | #include <stdio.h> | |
29740 | #include <stdarg.h> | |
29741 | ||
29742 | int | |
29743 | main () | |
29744 | { | |
29745 | ||
29746 | char *buf; | |
29747 | va_list ap; | |
62fa8b3a | 29748 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
29749 | |
29750 | ; | |
29751 | return 0; | |
29752 | } | |
29753 | _ACEOF | |
3dd30495 | 29754 | if ac_fn_cxx_try_compile "$LINENO"; then : |
c122b164 DE |
29755 | wx_cv_func_vsnprintf_decl=yes |
29756 | else | |
3dd30495 | 29757 | wx_cv_func_vsnprintf_decl=no |
a848cd7e SC |
29758 | |
29759 | fi | |
47964710 | 29760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29761 | |
29762 | ||
29763 | fi | |
3dd30495 VZ |
29764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_vsnprintf_decl" >&5 |
29765 | $as_echo "$wx_cv_func_vsnprintf_decl" >&6; } | |
a848cd7e SC |
29766 | |
29767 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
3dd30495 | 29768 | $as_echo "#define HAVE_VSNPRINTF_DECL 1" >>confdefs.h |
a848cd7e | 29769 | |
62fa8b3a | 29770 | |
3dd30495 VZ |
29771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if vsnprintf declaration is broken" >&5 |
29772 | $as_echo_n "checking if vsnprintf declaration is broken... " >&6; } | |
eff9d7f5 | 29773 | if ${wx_cv_func_broken_vsnprintf_decl+:} false; then : |
3dd30495 | 29774 | $as_echo_n "(cached) " >&6 |
62fa8b3a MW |
29775 | else |
29776 | ||
3dd30495 | 29777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
62fa8b3a MW |
29778 | /* end confdefs.h. */ |
29779 | ||
29780 | #include <stdio.h> | |
29781 | #include <stdarg.h> | |
29782 | #ifdef __MSL__ | |
29783 | #if __MSL__ >= 0x6000 | |
29784 | namespace std {} | |
29785 | using namespace std; | |
29786 | #endif | |
29787 | #endif | |
29788 | ||
29789 | int | |
29790 | main () | |
29791 | { | |
29792 | ||
29793 | char *buf; | |
29794 | va_list ap; | |
29795 | const char *fmt = "%s"; | |
29796 | vsnprintf(buf, 10u, fmt, ap); | |
29797 | ||
29798 | ; | |
29799 | return 0; | |
29800 | } | |
29801 | _ACEOF | |
3dd30495 | 29802 | if ac_fn_cxx_try_compile "$LINENO"; then : |
62fa8b3a MW |
29803 | wx_cv_func_broken_vsnprintf_decl=no |
29804 | else | |
3dd30495 | 29805 | wx_cv_func_broken_vsnprintf_decl=yes |
62fa8b3a MW |
29806 | |
29807 | fi | |
47964710 | 29808 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
62fa8b3a MW |
29809 | |
29810 | ||
29811 | fi | |
3dd30495 VZ |
29812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_broken_vsnprintf_decl" >&5 |
29813 | $as_echo "$wx_cv_func_broken_vsnprintf_decl" >&6; } | |
62fa8b3a MW |
29814 | |
29815 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
3dd30495 | 29816 | $as_echo "#define HAVE_BROKEN_VSNPRINTF_DECL 1" >>confdefs.h |
62fa8b3a MW |
29817 | |
29818 | fi | |
a848cd7e SC |
29819 | fi |
29820 | fi | |
29821 | ||
4a767dd5 | 29822 | if test "$ac_cv_func_snprintf" = "yes"; then |
3dd30495 VZ |
29823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snprintf declaration" >&5 |
29824 | $as_echo_n "checking for snprintf declaration... " >&6; } | |
eff9d7f5 | 29825 | if ${wx_cv_func_snprintf_decl+:} false; then : |
3dd30495 | 29826 | $as_echo_n "(cached) " >&6 |
4a767dd5 VZ |
29827 | else |
29828 | ||
3dd30495 | 29829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4a767dd5 VZ |
29830 | /* end confdefs.h. */ |
29831 | ||
29832 | #include <stdio.h> | |
29833 | #include <stdarg.h> | |
29834 | #ifdef __MSL__ | |
29835 | #if __MSL__ >= 0x6000 | |
29836 | namespace std {} | |
29837 | using namespace std; | |
29838 | #endif | |
29839 | #endif | |
29840 | ||
29841 | int | |
29842 | main () | |
29843 | { | |
29844 | ||
29845 | char *buf; | |
62fa8b3a | 29846 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
29847 | |
29848 | ; | |
29849 | return 0; | |
29850 | } | |
29851 | _ACEOF | |
3dd30495 | 29852 | if ac_fn_cxx_try_compile "$LINENO"; then : |
4a767dd5 VZ |
29853 | wx_cv_func_snprintf_decl=yes |
29854 | else | |
3dd30495 | 29855 | wx_cv_func_snprintf_decl=no |
4a767dd5 VZ |
29856 | |
29857 | fi | |
47964710 | 29858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4a767dd5 VZ |
29859 | |
29860 | ||
29861 | fi | |
3dd30495 VZ |
29862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_snprintf_decl" >&5 |
29863 | $as_echo "$wx_cv_func_snprintf_decl" >&6; } | |
4a767dd5 VZ |
29864 | |
29865 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
3dd30495 | 29866 | $as_echo "#define HAVE_SNPRINTF_DECL 1" >>confdefs.h |
4a767dd5 | 29867 | |
8b6682b9 JS |
29868 | fi |
29869 | ||
29870 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then | |
29871 | ||
3dd30495 VZ |
29872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if snprintf supports positional arguments" >&5 |
29873 | $as_echo_n "checking if snprintf supports positional arguments... " >&6; } | |
eff9d7f5 | 29874 | if ${wx_cv_func_snprintf_pos_params+:} false; then : |
3dd30495 | 29875 | $as_echo_n "(cached) " >&6 |
8b6682b9 JS |
29876 | else |
29877 | ||
3dd30495 | 29878 | if test "$cross_compiling" = yes; then : |
5039a2df | 29879 | |
3dd30495 | 29880 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming Unix98 printf() is not available, |
5039a2df | 29881 | define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5 |
3dd30495 | 29882 | $as_echo "$as_me: WARNING: Assuming Unix98 printf() is not available, |
5039a2df VZ |
29883 | define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;} |
29884 | wx_cv_func_snprintf_pos_params=no | |
29885 | ||
29886 | ||
8b6682b9 | 29887 | else |
3dd30495 | 29888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8b6682b9 JS |
29889 | /* end confdefs.h. */ |
29890 | ||
29891 | #include <stdio.h> | |
29892 | ||
29893 | int main (void) | |
29894 | { | |
29895 | char buffer[128]; | |
f321ab7f | 29896 | snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3); |
8b6682b9 JS |
29897 | if (strcmp ("2 3 1", buffer) == 0) |
29898 | exit (0); | |
29899 | exit (1); | |
29900 | } | |
29901 | ||
29902 | _ACEOF | |
3dd30495 | 29903 | if ac_fn_cxx_try_run "$LINENO"; then : |
8b6682b9 JS |
29904 | wx_cv_func_snprintf_pos_params=no |
29905 | else | |
3dd30495 | 29906 | wx_cv_func_snprintf_pos_params=yes |
8b6682b9 | 29907 | fi |
3dd30495 VZ |
29908 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
29909 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8b6682b9 JS |
29910 | fi |
29911 | ||
29912 | ||
47964710 | 29913 | |
8b6682b9 | 29914 | fi |
3dd30495 VZ |
29915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_snprintf_pos_params" >&5 |
29916 | $as_echo "$wx_cv_func_snprintf_pos_params" >&6; } | |
8b6682b9 JS |
29917 | |
29918 | if test "$wx_cv_func_snprintf_pos_params" = "yes"; then | |
3dd30495 | 29919 | $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h |
62fa8b3a MW |
29920 | |
29921 | fi | |
4a767dd5 VZ |
29922 | fi |
29923 | fi | |
29924 | ||
d7bf6c20 | 29925 | if test "$ac_cv_func_vsscanf" = "yes"; then |
3dd30495 VZ |
29926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vsscanf declaration" >&5 |
29927 | $as_echo_n "checking for vsscanf declaration... " >&6; } | |
eff9d7f5 | 29928 | if ${wx_cv_func_vsscanf_decl+:} false; then : |
3dd30495 | 29929 | $as_echo_n "(cached) " >&6 |
d7bf6c20 VZ |
29930 | else |
29931 | ||
3dd30495 | 29932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7bf6c20 VZ |
29933 | /* end confdefs.h. */ |
29934 | ||
29935 | #include <stdio.h> | |
29936 | #include <stdarg.h> | |
29937 | #ifdef __MSL__ | |
29938 | #if __MSL__ >= 0x6000 | |
29939 | namespace std {} | |
29940 | using namespace std; | |
29941 | #endif | |
29942 | #endif | |
29943 | ||
29944 | int | |
29945 | main () | |
29946 | { | |
29947 | ||
efce184b VZ |
29948 | char *buf; |
29949 | va_list args; | |
29950 | vsscanf(buf, "%s", args); | |
d7bf6c20 VZ |
29951 | |
29952 | ; | |
29953 | return 0; | |
29954 | } | |
29955 | _ACEOF | |
3dd30495 | 29956 | if ac_fn_cxx_try_compile "$LINENO"; then : |
d7bf6c20 VZ |
29957 | wx_cv_func_vsscanf_decl=yes |
29958 | else | |
3dd30495 | 29959 | wx_cv_func_vsscanf_decl=no |
d7bf6c20 VZ |
29960 | |
29961 | fi | |
d7bf6c20 VZ |
29962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
29963 | ||
29964 | ||
29965 | fi | |
3dd30495 VZ |
29966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_vsscanf_decl" >&5 |
29967 | $as_echo "$wx_cv_func_vsscanf_decl" >&6; } | |
d7bf6c20 VZ |
29968 | |
29969 | if test "$wx_cv_func_vsscanf_decl" = "yes"; then | |
3dd30495 | 29970 | $as_echo "#define HAVE_VSSCANF_DECL 1" >>confdefs.h |
d7bf6c20 VZ |
29971 | |
29972 | fi | |
29973 | fi | |
5cfbef2a | 29974 | ac_ext=c |
e203535f SN |
29975 | ac_cpp='$CPP $CPPFLAGS' |
29976 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29977 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29978 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29979 | ||
d7bf6c20 | 29980 | |
a848cd7e SC |
29981 | if test "$wxUSE_UNICODE" = yes; then |
29982 | ||
a49ffb32 VZ |
29983 | wchar_headers="#include <stdio.h> |
29984 | #include <wchar.h>" | |
29985 | case "${host}" in | |
29986 | *-*-solaris2* ) | |
3dd30495 VZ |
29987 | for ac_header in widec.h |
29988 | do : | |
29989 | ac_fn_c_check_header_compile "$LINENO" "widec.h" "ac_cv_header_widec_h" "$ac_includes_default | |
29990 | " | |
eff9d7f5 | 29991 | if test "x$ac_cv_header_widec_h" = xyes; then : |
be2ad872 | 29992 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 29993 | #define HAVE_WIDEC_H 1 |
be2ad872 | 29994 | _ACEOF |
7fd3acaf | 29995 | |
be2ad872 PC |
29996 | fi |
29997 | ||
29998 | done | |
a49ffb32 VZ |
29999 | |
30000 | if test "$ac_cv_header_widec_h" = "yes"; then | |
30001 | wchar_headers="$wchar_headers | |
30002 | #include <widec.h>" | |
30003 | fi | |
30004 | esac | |
30005 | ||
6a5c9b3f | 30006 | |
ccd96bfe | 30007 | for wx_func in putws fputws wprintf vswprintf vswscanf |
fd5199d6 | 30008 | do |
3dd30495 VZ |
30009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
30010 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 30011 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 30012 | $as_echo_n "(cached) " >&6 |
a848cd7e | 30013 | else |
fd5199d6 | 30014 | |
3dd30495 | 30015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 30016 | /* end confdefs.h. */ |
ac1cb8d3 | 30017 | |
3dd30495 | 30018 | |
a49ffb32 | 30019 | $wchar_headers |
fd5199d6 | 30020 | $ac_includes_default |
a848cd7e SC |
30021 | |
30022 | int | |
30023 | main () | |
30024 | { | |
fd5199d6 VZ |
30025 | |
30026 | #ifndef $wx_func | |
30027 | &$wx_func; | |
30028 | #endif | |
30029 | ||
30030 | ||
a848cd7e SC |
30031 | ; |
30032 | return 0; | |
30033 | } | |
fd5199d6 | 30034 | |
a848cd7e | 30035 | _ACEOF |
3dd30495 | 30036 | if ac_fn_c_try_link "$LINENO"; then : |
fd5199d6 | 30037 | eval wx_cv_func_$wx_func=yes |
a848cd7e | 30038 | else |
3dd30495 | 30039 | eval wx_cv_func_$wx_func=no |
a848cd7e | 30040 | fi |
3dd30495 VZ |
30041 | rm -f core conftest.err conftest.$ac_objext \ |
30042 | conftest$ac_exeext conftest.$ac_ext | |
fd5199d6 | 30043 | |
a848cd7e | 30044 | fi |
3dd30495 VZ |
30045 | eval ac_res=\$wx_cv_func_$wx_func |
30046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
30047 | $as_echo "$ac_res" >&6; } | |
fd5199d6 VZ |
30048 | |
30049 | if eval test \$wx_cv_func_$wx_func = yes | |
30050 | then | |
30051 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 30052 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
a848cd7e SC |
30053 | _ACEOF |
30054 | ||
fd5199d6 VZ |
30055 | |
30056 | else | |
30057 | : | |
30058 | ||
30059 | fi | |
30060 | done | |
a848cd7e SC |
30061 | |
30062 | ||
3dd30495 VZ |
30063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _vsnwprintf" >&5 |
30064 | $as_echo_n "checking for _vsnwprintf... " >&6; } | |
30065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e SC |
30066 | /* end confdefs.h. */ |
30067 | #include <wchar.h> | |
30068 | int | |
30069 | main () | |
30070 | { | |
30071 | &_vsnwprintf; | |
30072 | ; | |
30073 | return 0; | |
30074 | } | |
30075 | _ACEOF | |
3dd30495 VZ |
30076 | if ac_fn_c_try_compile "$LINENO"; then : |
30077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
30078 | $as_echo "yes" >&6; } | |
30079 | $as_echo "#define HAVE__VSNWPRINTF 1" >>confdefs.h | |
a848cd7e SC |
30080 | |
30081 | else | |
3dd30495 VZ |
30082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
30083 | $as_echo "no" >&6; } | |
a848cd7e | 30084 | fi |
47964710 | 30085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
30086 | fi |
30087 | ||
6ebeb4c7 VZ |
30088 | if test "$wxUSE_FILE" = "yes"; then |
30089 | ||
fd5199d6 VZ |
30090 | for wx_func in fsync |
30091 | do | |
3dd30495 VZ |
30092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
30093 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 30094 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 30095 | $as_echo_n "(cached) " >&6 |
6ebeb4c7 | 30096 | else |
fd5199d6 | 30097 | |
3dd30495 | 30098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6ebeb4c7 | 30099 | /* end confdefs.h. */ |
6ebeb4c7 | 30100 | |
6ebeb4c7 | 30101 | |
3dd30495 | 30102 | |
fd5199d6 | 30103 | $ac_includes_default |
6ebeb4c7 VZ |
30104 | |
30105 | int | |
30106 | main () | |
30107 | { | |
fd5199d6 VZ |
30108 | |
30109 | #ifndef $wx_func | |
30110 | &$wx_func; | |
30111 | #endif | |
30112 | ||
30113 | ||
6ebeb4c7 VZ |
30114 | ; |
30115 | return 0; | |
30116 | } | |
fd5199d6 | 30117 | |
6ebeb4c7 | 30118 | _ACEOF |
3dd30495 | 30119 | if ac_fn_c_try_link "$LINENO"; then : |
fd5199d6 | 30120 | eval wx_cv_func_$wx_func=yes |
6ebeb4c7 | 30121 | else |
3dd30495 | 30122 | eval wx_cv_func_$wx_func=no |
6ebeb4c7 | 30123 | fi |
3dd30495 VZ |
30124 | rm -f core conftest.err conftest.$ac_objext \ |
30125 | conftest$ac_exeext conftest.$ac_ext | |
fd5199d6 | 30126 | |
6ebeb4c7 | 30127 | fi |
3dd30495 VZ |
30128 | eval ac_res=\$wx_cv_func_$wx_func |
30129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
30130 | $as_echo "$ac_res" >&6; } | |
fd5199d6 VZ |
30131 | |
30132 | if eval test \$wx_cv_func_$wx_func = yes | |
30133 | then | |
30134 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 30135 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
6ebeb4c7 VZ |
30136 | _ACEOF |
30137 | ||
fd5199d6 VZ |
30138 | |
30139 | else | |
30140 | : | |
30141 | ||
30142 | fi | |
30143 | done | |
6ebeb4c7 VZ |
30144 | |
30145 | fi | |
a848cd7e | 30146 | |
47964710 | 30147 | ac_ext=cpp |
371bc2f7 VZ |
30148 | ac_cpp='$CXXCPP $CPPFLAGS' |
30149 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30150 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30151 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30152 | ||
a848cd7e | 30153 | |
fd5199d6 VZ |
30154 | for wx_func in round |
30155 | do | |
3dd30495 VZ |
30156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
30157 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 30158 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 30159 | $as_echo_n "(cached) " >&6 |
c2e9ada4 | 30160 | else |
fd5199d6 | 30161 | |
3dd30495 | 30162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
c2e9ada4 | 30163 | /* end confdefs.h. */ |
c2e9ada4 | 30164 | |
3dd30495 | 30165 | |
fd5199d6 VZ |
30166 | #include <math.h> |
30167 | $ac_includes_default | |
c2e9ada4 VZ |
30168 | |
30169 | int | |
30170 | main () | |
30171 | { | |
fd5199d6 VZ |
30172 | |
30173 | #ifndef $wx_func | |
30174 | &$wx_func; | |
30175 | #endif | |
30176 | ||
30177 | ||
c2e9ada4 VZ |
30178 | ; |
30179 | return 0; | |
30180 | } | |
fd5199d6 | 30181 | |
c2e9ada4 | 30182 | _ACEOF |
3dd30495 | 30183 | if ac_fn_cxx_try_link "$LINENO"; then : |
fd5199d6 | 30184 | eval wx_cv_func_$wx_func=yes |
c2e9ada4 | 30185 | else |
3dd30495 | 30186 | eval wx_cv_func_$wx_func=no |
c2e9ada4 | 30187 | fi |
3dd30495 VZ |
30188 | rm -f core conftest.err conftest.$ac_objext \ |
30189 | conftest$ac_exeext conftest.$ac_ext | |
c2e9ada4 | 30190 | |
c2e9ada4 | 30191 | fi |
3dd30495 VZ |
30192 | eval ac_res=\$wx_cv_func_$wx_func |
30193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
30194 | $as_echo "$ac_res" >&6; } | |
c2e9ada4 | 30195 | |
fd5199d6 VZ |
30196 | if eval test \$wx_cv_func_$wx_func = yes |
30197 | then | |
30198 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 30199 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
c2e9ada4 VZ |
30200 | _ACEOF |
30201 | ||
30202 | ||
fd5199d6 VZ |
30203 | else |
30204 | : | |
c2e9ada4 | 30205 | |
fd5199d6 VZ |
30206 | fi |
30207 | done | |
c2e9ada4 | 30208 | |
371bc2f7 VZ |
30209 | ac_ext=c |
30210 | ac_cpp='$CPP $CPPFLAGS' | |
30211 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30212 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30213 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30214 | ||
c2e9ada4 | 30215 | |
a848cd7e SC |
30216 | if test "$TOOLKIT" != "MSW"; then |
30217 | ||
e9efd9f1 | 30218 | if test "$wxUSE_LIBICONV" != "no" ; then |
a848cd7e SC |
30219 | |
30220 | ||
30221 | ||
47964710 | 30222 | # Check whether --with-libiconv-prefix was given. |
3dd30495 | 30223 | if test "${with_libiconv_prefix+set}" = set; then : |
47964710 | 30224 | withval=$with_libiconv_prefix; |
a848cd7e SC |
30225 | for dir in `echo "$withval" | tr : ' '`; do |
30226 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
30227 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
30228 | done | |
30229 | ||
47964710 | 30230 | fi |
faa5c14f | 30231 | |
47964710 | 30232 | |
3dd30495 VZ |
30233 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
30234 | $as_echo_n "checking for iconv... " >&6; } | |
eff9d7f5 | 30235 | if ${am_cv_func_iconv+:} false; then : |
3dd30495 | 30236 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
30237 | else |
30238 | ||
30239 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
30240 | am_cv_lib_iconv=no | |
3dd30495 | 30241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30242 | /* end confdefs.h. */ |
30243 | #include <stdlib.h> | |
30244 | #include <iconv.h> | |
30245 | int | |
30246 | main () | |
30247 | { | |
30248 | iconv_t cd = iconv_open("",""); | |
30249 | iconv(cd,NULL,NULL,NULL,NULL); | |
30250 | iconv_close(cd); | |
30251 | ; | |
30252 | return 0; | |
30253 | } | |
30254 | _ACEOF | |
3dd30495 | 30255 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e | 30256 | am_cv_func_iconv=yes |
a848cd7e | 30257 | fi |
3dd30495 VZ |
30258 | rm -f core conftest.err conftest.$ac_objext \ |
30259 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30260 | if test "$am_cv_func_iconv" != yes; then |
30261 | am_save_LIBS="$LIBS" | |
30262 | LIBS="$LIBS -liconv" | |
3dd30495 | 30263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30264 | /* end confdefs.h. */ |
30265 | #include <stdlib.h> | |
30266 | #include <iconv.h> | |
30267 | int | |
30268 | main () | |
30269 | { | |
30270 | iconv_t cd = iconv_open("",""); | |
30271 | iconv(cd,NULL,NULL,NULL,NULL); | |
30272 | iconv_close(cd); | |
30273 | ; | |
30274 | return 0; | |
30275 | } | |
30276 | _ACEOF | |
3dd30495 | 30277 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
30278 | am_cv_lib_iconv=yes |
30279 | am_cv_func_iconv=yes | |
a848cd7e | 30280 | fi |
3dd30495 VZ |
30281 | rm -f core conftest.err conftest.$ac_objext \ |
30282 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30283 | LIBS="$am_save_LIBS" |
30284 | fi | |
30285 | ||
30286 | fi | |
3dd30495 VZ |
30287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
30288 | $as_echo "$am_cv_func_iconv" >&6; } | |
a848cd7e SC |
30289 | if test "$am_cv_func_iconv" = yes; then |
30290 | ||
3dd30495 | 30291 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
a848cd7e | 30292 | |
3dd30495 VZ |
30293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if iconv needs const" >&5 |
30294 | $as_echo_n "checking if iconv needs const... " >&6; } | |
eff9d7f5 | 30295 | if ${wx_cv_func_iconv_const+:} false; then : |
3dd30495 | 30296 | $as_echo_n "(cached) " >&6 |
a848cd7e | 30297 | else |
3dd30495 | 30298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30299 | /* end confdefs.h. */ |
30300 | ||
30301 | #include <stdlib.h> | |
30302 | #include <iconv.h> | |
30303 | extern | |
30304 | #ifdef __cplusplus | |
30305 | "C" | |
30306 | #endif | |
30307 | #if defined(__STDC__) || defined(__cplusplus) | |
30308 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
30309 | #else | |
30310 | size_t iconv(); | |
30311 | #endif | |
30312 | ||
30313 | int | |
30314 | main () | |
30315 | { | |
30316 | ||
30317 | ; | |
30318 | return 0; | |
30319 | } | |
30320 | _ACEOF | |
3dd30495 | 30321 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
30322 | wx_cv_func_iconv_const="no" |
30323 | else | |
3dd30495 | 30324 | wx_cv_func_iconv_const="yes" |
a848cd7e SC |
30325 | |
30326 | fi | |
47964710 | 30327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30328 | |
30329 | fi | |
3dd30495 VZ |
30330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_iconv_const" >&5 |
30331 | $as_echo "$wx_cv_func_iconv_const" >&6; } | |
a848cd7e SC |
30332 | |
30333 | iconv_const= | |
30334 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
30335 | iconv_const="const" | |
30336 | fi | |
30337 | ||
30338 | ||
30339 | cat >>confdefs.h <<_ACEOF | |
30340 | #define ICONV_CONST $iconv_const | |
30341 | _ACEOF | |
30342 | ||
30343 | fi | |
30344 | LIBICONV= | |
30345 | if test "$am_cv_lib_iconv" = yes; then | |
30346 | LIBICONV="-liconv" | |
30347 | fi | |
30348 | ||
30349 | ||
e9efd9f1 VZ |
30350 | LIBS="$LIBICONV $LIBS" |
30351 | fi | |
a848cd7e SC |
30352 | |
30353 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
3dd30495 VZ |
30354 | for ac_func in sigaction |
30355 | do : | |
30356 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" | |
eff9d7f5 | 30357 | if test "x$ac_cv_func_sigaction" = xyes; then : |
a848cd7e | 30358 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 30359 | #define HAVE_SIGACTION 1 |
a848cd7e SC |
30360 | _ACEOF |
30361 | ||
30362 | fi | |
30363 | done | |
30364 | ||
30365 | ||
30366 | if test "$ac_cv_func_sigaction" = "no"; then | |
3dd30495 VZ |
30367 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
30368 | $as_echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
a848cd7e SC |
30369 | wxUSE_ON_FATAL_EXCEPTION=no |
30370 | fi | |
30371 | ||
30372 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
3dd30495 VZ |
30373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_handler type" >&5 |
30374 | $as_echo_n "checking for sa_handler type... " >&6; } | |
eff9d7f5 | 30375 | if ${wx_cv_type_sa_handler+:} false; then : |
3dd30495 | 30376 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
30377 | else |
30378 | ||
47964710 | 30379 | ac_ext=cpp |
9b8888f9 VZ |
30380 | ac_cpp='$CXXCPP $CPPFLAGS' |
30381 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30382 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30383 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30384 | ||
3dd30495 | 30385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30386 | /* end confdefs.h. */ |
30387 | #include <signal.h> | |
30388 | int | |
30389 | main () | |
30390 | { | |
30391 | ||
30392 | extern void testSigHandler(int); | |
30393 | ||
30394 | struct sigaction sa; | |
30395 | sa.sa_handler = testSigHandler; | |
30396 | ||
30397 | ; | |
30398 | return 0; | |
30399 | } | |
30400 | _ACEOF | |
3dd30495 | 30401 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
30402 | |
30403 | wx_cv_type_sa_handler=int | |
30404 | ||
30405 | else | |
a848cd7e SC |
30406 | |
30407 | wx_cv_type_sa_handler=void | |
30408 | ||
30409 | fi | |
47964710 | 30410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9b8888f9 VZ |
30411 | ac_ext=c |
30412 | ac_cpp='$CPP $CPPFLAGS' | |
30413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30416 | ||
a848cd7e SC |
30417 | |
30418 | fi | |
3dd30495 VZ |
30419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_sa_handler" >&5 |
30420 | $as_echo "$wx_cv_type_sa_handler" >&6; } | |
a848cd7e | 30421 | |
a848cd7e SC |
30422 | cat >>confdefs.h <<_ACEOF |
30423 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
30424 | _ACEOF | |
30425 | ||
30426 | fi | |
30427 | fi | |
30428 | ||
eaff0f0d | 30429 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
3dd30495 VZ |
30430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace() in <execinfo.h>" >&5 |
30431 | $as_echo_n "checking for backtrace() in <execinfo.h>... " >&6; } | |
eff9d7f5 | 30432 | if ${wx_cv_func_backtrace+:} false; then : |
3dd30495 | 30433 | $as_echo_n "(cached) " >&6 |
a12bd55b VZ |
30434 | else |
30435 | ||
b873ba78 PC |
30436 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5 |
30437 | $as_echo_n "checking for library containing backtrace... " >&6; } | |
30438 | if ${ac_cv_search_backtrace+:} false; then : | |
30439 | $as_echo_n "(cached) " >&6 | |
30440 | else | |
30441 | ac_func_search_save_LIBS=$LIBS | |
30442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
30443 | /* end confdefs.h. */ | |
30444 | ||
30445 | /* Override any GCC internal prototype to avoid an error. | |
30446 | Use char because int might match the return type of a GCC | |
30447 | builtin and then its argument prototype would still apply. */ | |
30448 | #ifdef __cplusplus | |
30449 | extern "C" | |
30450 | #endif | |
30451 | char backtrace (); | |
30452 | int | |
30453 | main () | |
30454 | { | |
30455 | return backtrace (); | |
30456 | ; | |
30457 | return 0; | |
30458 | } | |
30459 | _ACEOF | |
30460 | for ac_lib in '' execinfo; do | |
30461 | if test -z "$ac_lib"; then | |
30462 | ac_res="none required" | |
30463 | else | |
30464 | ac_res=-l$ac_lib | |
30465 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
30466 | fi | |
30467 | if ac_fn_c_try_link "$LINENO"; then : | |
30468 | ac_cv_search_backtrace=$ac_res | |
30469 | fi | |
30470 | rm -f core conftest.err conftest.$ac_objext \ | |
30471 | conftest$ac_exeext | |
30472 | if ${ac_cv_search_backtrace+:} false; then : | |
30473 | break | |
30474 | fi | |
30475 | done | |
30476 | if ${ac_cv_search_backtrace+:} false; then : | |
30477 | ||
30478 | else | |
30479 | ac_cv_search_backtrace=no | |
30480 | fi | |
30481 | rm conftest.$ac_ext | |
30482 | LIBS=$ac_func_search_save_LIBS | |
30483 | fi | |
30484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5 | |
30485 | $as_echo "$ac_cv_search_backtrace" >&6; } | |
30486 | ac_res=$ac_cv_search_backtrace | |
30487 | if test "$ac_res" != no; then : | |
30488 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
30489 | ||
30490 | ac_ext=cpp | |
9b8888f9 VZ |
30491 | ac_cpp='$CXXCPP $CPPFLAGS' |
30492 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30493 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30494 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30495 | ||
b873ba78 | 30496 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
eaff0f0d VZ |
30497 | /* end confdefs.h. */ |
30498 | #include <execinfo.h> | |
30499 | int | |
30500 | main () | |
30501 | { | |
30502 | ||
b873ba78 PC |
30503 | void *trace[1]; |
30504 | char **messages; | |
30505 | backtrace(trace, 1); | |
30506 | messages = backtrace_symbols(trace, 1); | |
eaff0f0d VZ |
30507 | |
30508 | ; | |
30509 | return 0; | |
30510 | } | |
30511 | _ACEOF | |
b873ba78 | 30512 | if ac_fn_cxx_try_link "$LINENO"; then : |
eaff0f0d VZ |
30513 | wx_cv_func_backtrace=yes |
30514 | else | |
3dd30495 | 30515 | wx_cv_func_backtrace=no |
eaff0f0d VZ |
30516 | |
30517 | fi | |
b873ba78 PC |
30518 | rm -f core conftest.err conftest.$ac_objext \ |
30519 | conftest$ac_exeext conftest.$ac_ext | |
30520 | ac_ext=c | |
a12bd55b VZ |
30521 | ac_cpp='$CPP $CPPFLAGS' |
30522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30525 | ||
30526 | ||
b873ba78 PC |
30527 | else |
30528 | wx_cv_func_backtrace=no | |
30529 | ||
30530 | fi | |
30531 | ||
30532 | ||
eaff0f0d VZ |
30533 | |
30534 | fi | |
3dd30495 VZ |
30535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_backtrace" >&5 |
30536 | $as_echo "$wx_cv_func_backtrace" >&6; } | |
eaff0f0d | 30537 | |
eaff0f0d | 30538 | if test "$wx_cv_func_backtrace" = "no"; then |
3dd30495 VZ |
30539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 |
30540 | $as_echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
eaff0f0d VZ |
30541 | wxUSE_STACKWALKER=no |
30542 | else | |
89b3361e VZ |
30543 | if test "$ac_cv_header_cxxabi_h" = "yes"; then |
30544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
3dd30495 | 30545 | $as_echo_n "checking for __cxa_demangle() in <cxxabi.h>... " >&6; } |
eff9d7f5 | 30546 | if ${wx_cv_func_cxa_demangle+:} false; then : |
3dd30495 | 30547 | $as_echo_n "(cached) " >&6 |
eaff0f0d VZ |
30548 | else |
30549 | ||
89b3361e | 30550 | ac_ext=cpp |
a12bd55b VZ |
30551 | ac_cpp='$CXXCPP $CPPFLAGS' |
30552 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30553 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30554 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30555 | ||
89b3361e | 30556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3dd30495 VZ |
30557 | /* end confdefs.h. */ |
30558 | #include <cxxabi.h> | |
a848cd7e SC |
30559 | int |
30560 | main () | |
30561 | { | |
3dd30495 | 30562 | |
89b3361e VZ |
30563 | int rc; |
30564 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
3dd30495 | 30565 | |
a848cd7e SC |
30566 | ; |
30567 | return 0; | |
30568 | } | |
30569 | _ACEOF | |
3dd30495 VZ |
30570 | if ac_fn_cxx_try_link "$LINENO"; then : |
30571 | wx_cv_func_cxa_demangle=yes | |
a848cd7e | 30572 | else |
3dd30495 VZ |
30573 | wx_cv_func_cxa_demangle=no |
30574 | ||
30575 | fi | |
30576 | rm -f core conftest.err conftest.$ac_objext \ | |
30577 | conftest$ac_exeext conftest.$ac_ext | |
89b3361e | 30578 | ac_ext=c |
3dd30495 VZ |
30579 | ac_cpp='$CPP $CPPFLAGS' |
30580 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30581 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30582 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30583 | ||
30584 | ||
a848cd7e | 30585 | |
a848cd7e | 30586 | fi |
3dd30495 VZ |
30587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_cxa_demangle" >&5 |
30588 | $as_echo "$wx_cv_func_cxa_demangle" >&6; } | |
89b3361e VZ |
30589 | else |
30590 | wx_cv_func_cxa_demangle=no | |
30591 | fi | |
47964710 | 30592 | |
3dd30495 VZ |
30593 | if test "$wx_cv_func_cxa_demangle" = "yes"; then |
30594 | $as_echo "#define HAVE_CXA_DEMANGLE 1" >>confdefs.h | |
30595 | ||
30596 | fi | |
30597 | fi | |
30598 | fi | |
30599 | ||
30600 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != 1 -a "$USE_UNIX" != 1; then | |
30601 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
30602 | $as_echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
30603 | wxUSE_STACKWALKER=no | |
a848cd7e | 30604 | fi |
3dd30495 VZ |
30605 | |
30606 | ||
30607 | for ac_func in mkstemp mktemp | |
30608 | do : | |
30609 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30610 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
30611 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a848cd7e | 30612 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 30613 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
30614 | _ACEOF |
30615 | break | |
30616 | fi | |
30617 | done | |
30618 | ||
30619 | ||
3dd30495 VZ |
30620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs" >&5 |
30621 | $as_echo_n "checking for statfs... " >&6; } | |
eff9d7f5 | 30622 | if ${wx_cv_func_statfs+:} false; then : |
3dd30495 | 30623 | $as_echo_n "(cached) " >&6 |
a848cd7e | 30624 | else |
3dd30495 | 30625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30626 | /* end confdefs.h. */ |
30627 | ||
30628 | #if defined(__BSD__) | |
84ae7ca4 VZ |
30629 | #include <sys/param.h> |
30630 | #include <sys/mount.h> | |
a848cd7e | 30631 | #else |
84ae7ca4 | 30632 | #include <sys/vfs.h> |
a848cd7e SC |
30633 | #endif |
30634 | ||
30635 | int | |
30636 | main () | |
30637 | { | |
30638 | ||
30639 | long l; | |
30640 | struct statfs fs; | |
30641 | statfs("/", &fs); | |
30642 | l = fs.f_bsize; | |
30643 | l += fs.f_blocks; | |
30644 | l += fs.f_bavail; | |
30645 | ||
30646 | ; | |
30647 | return 0; | |
30648 | } | |
30649 | _ACEOF | |
3dd30495 | 30650 | if ac_fn_c_try_compile "$LINENO"; then : |
84ae7ca4 | 30651 | wx_cv_func_statfs=yes |
a848cd7e | 30652 | else |
3dd30495 | 30653 | wx_cv_func_statfs=no |
a848cd7e SC |
30654 | |
30655 | fi | |
47964710 | 30656 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30657 | |
30658 | fi | |
3dd30495 VZ |
30659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_statfs" >&5 |
30660 | $as_echo "$wx_cv_func_statfs" >&6; } | |
a848cd7e SC |
30661 | |
30662 | if test "$wx_cv_func_statfs" = "yes"; then | |
3dd30495 VZ |
30663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statfs declaration" >&5 |
30664 | $as_echo_n "checking for statfs declaration... " >&6; } | |
eff9d7f5 | 30665 | if ${wx_cv_func_statfs_decl+:} false; then : |
3dd30495 | 30666 | $as_echo_n "(cached) " >&6 |
84ae7ca4 | 30667 | else |
47964710 | 30668 | ac_ext=cpp |
9b8888f9 VZ |
30669 | ac_cpp='$CXXCPP $CPPFLAGS' |
30670 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30671 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30672 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30673 | ||
3dd30495 | 30674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
0683aca6 | 30675 | /* end confdefs.h. */ |
84ae7ca4 | 30676 | |
0683aca6 VZ |
30677 | #if defined(__BSD__) |
30678 | #include <sys/param.h> | |
30679 | #include <sys/mount.h> | |
30680 | #else | |
30681 | #include <sys/vfs.h> | |
30682 | #endif | |
30683 | ||
30684 | int | |
30685 | main () | |
30686 | { | |
30687 | ||
30688 | struct statfs fs; | |
30689 | statfs("", &fs); | |
30690 | ||
30691 | ; | |
30692 | return 0; | |
30693 | } | |
30694 | _ACEOF | |
3dd30495 | 30695 | if ac_fn_cxx_try_compile "$LINENO"; then : |
0683aca6 VZ |
30696 | wx_cv_func_statfs_decl=yes |
30697 | else | |
3dd30495 | 30698 | wx_cv_func_statfs_decl=no |
0683aca6 VZ |
30699 | |
30700 | fi | |
47964710 | 30701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9b8888f9 VZ |
30702 | ac_ext=c |
30703 | ac_cpp='$CPP $CPPFLAGS' | |
30704 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30705 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30706 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30707 | ||
84ae7ca4 VZ |
30708 | |
30709 | fi | |
3dd30495 VZ |
30710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_statfs_decl" >&5 |
30711 | $as_echo "$wx_cv_func_statfs_decl" >&6; } | |
84ae7ca4 VZ |
30712 | |
30713 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
3dd30495 | 30714 | $as_echo "#define HAVE_STATFS_DECL 1" >>confdefs.h |
84ae7ca4 VZ |
30715 | |
30716 | fi | |
30717 | ||
a848cd7e | 30718 | wx_cv_type_statvfs_t="struct statfs" |
3dd30495 | 30719 | $as_echo "#define HAVE_STATFS 1" >>confdefs.h |
a848cd7e SC |
30720 | |
30721 | else | |
3dd30495 VZ |
30722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs" >&5 |
30723 | $as_echo_n "checking for statvfs... " >&6; } | |
eff9d7f5 | 30724 | if ${wx_cv_func_statvfs+:} false; then : |
3dd30495 | 30725 | $as_echo_n "(cached) " >&6 |
a848cd7e | 30726 | else |
3dd30495 | 30727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30728 | /* end confdefs.h. */ |
30729 | ||
30730 | #include <stddef.h> | |
30731 | #include <sys/statvfs.h> | |
30732 | ||
30733 | int | |
30734 | main () | |
30735 | { | |
30736 | ||
30737 | statvfs("/", NULL); | |
30738 | ||
30739 | ; | |
30740 | return 0; | |
30741 | } | |
30742 | _ACEOF | |
3dd30495 | 30743 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
30744 | wx_cv_func_statvfs=yes |
30745 | else | |
3dd30495 | 30746 | wx_cv_func_statvfs=no |
a848cd7e SC |
30747 | |
30748 | fi | |
47964710 | 30749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30750 | |
30751 | fi | |
3dd30495 VZ |
30752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_statvfs" >&5 |
30753 | $as_echo "$wx_cv_func_statvfs" >&6; } | |
a848cd7e SC |
30754 | |
30755 | if test "$wx_cv_func_statvfs" = "yes"; then | |
3dd30495 VZ |
30756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for statvfs argument type" >&5 |
30757 | $as_echo_n "checking for statvfs argument type... " >&6; } | |
eff9d7f5 | 30758 | if ${wx_cv_type_statvfs_t+:} false; then : |
3dd30495 | 30759 | $as_echo_n "(cached) " >&6 |
a848cd7e | 30760 | else |
47964710 | 30761 | ac_ext=cpp |
9b8888f9 VZ |
30762 | ac_cpp='$CXXCPP $CPPFLAGS' |
30763 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30764 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30765 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
30766 | ||
3dd30495 | 30767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30768 | /* end confdefs.h. */ |
30769 | ||
30770 | #include <sys/statvfs.h> | |
30771 | ||
30772 | int | |
30773 | main () | |
30774 | { | |
30775 | ||
30776 | long l; | |
30777 | statvfs_t fs; | |
30778 | statvfs("/", &fs); | |
30779 | l = fs.f_bsize; | |
30780 | l += fs.f_blocks; | |
30781 | l += fs.f_bavail; | |
30782 | ||
30783 | ; | |
30784 | return 0; | |
30785 | } | |
30786 | _ACEOF | |
3dd30495 | 30787 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
30788 | wx_cv_type_statvfs_t=statvfs_t |
30789 | else | |
a848cd7e | 30790 | |
3dd30495 | 30791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30792 | /* end confdefs.h. */ |
30793 | ||
30794 | #include <sys/statvfs.h> | |
30795 | ||
30796 | int | |
30797 | main () | |
30798 | { | |
30799 | ||
30800 | long l; | |
30801 | struct statvfs fs; | |
30802 | statvfs("/", &fs); | |
30803 | l = fs.f_bsize; | |
30804 | l += fs.f_blocks; | |
30805 | l += fs.f_bavail; | |
30806 | ||
30807 | ; | |
30808 | return 0; | |
30809 | } | |
30810 | _ACEOF | |
3dd30495 | 30811 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
30812 | wx_cv_type_statvfs_t="struct statvfs" |
30813 | else | |
3dd30495 | 30814 | wx_cv_type_statvfs_t="unknown" |
a848cd7e SC |
30815 | |
30816 | fi | |
47964710 | 30817 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30818 | |
30819 | ||
30820 | fi | |
47964710 | 30821 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9b8888f9 VZ |
30822 | ac_ext=c |
30823 | ac_cpp='$CPP $CPPFLAGS' | |
30824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
30825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
30827 | ||
a848cd7e SC |
30828 | |
30829 | fi | |
3dd30495 VZ |
30830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_statvfs_t" >&5 |
30831 | $as_echo "$wx_cv_type_statvfs_t" >&6; } | |
a848cd7e | 30832 | |
a848cd7e | 30833 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
3dd30495 | 30834 | $as_echo "#define HAVE_STATVFS 1" >>confdefs.h |
a848cd7e SC |
30835 | |
30836 | fi | |
30837 | else | |
30838 | wx_cv_type_statvfs_t="unknown" | |
30839 | fi | |
30840 | fi | |
30841 | ||
30842 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
30843 | cat >>confdefs.h <<_ACEOF | |
30844 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
30845 | _ACEOF | |
30846 | ||
30847 | else | |
3dd30495 VZ |
30848 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
30849 | $as_echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
a848cd7e SC |
30850 | fi |
30851 | ||
30852 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
3dd30495 VZ |
30853 | for ac_func in fcntl flock |
30854 | do : | |
30855 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30856 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
30857 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a848cd7e | 30858 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 30859 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
30860 | _ACEOF |
30861 | break | |
30862 | fi | |
30863 | done | |
30864 | ||
30865 | ||
30866 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
3dd30495 VZ |
30867 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxSingleInstanceChecker not available" >&5 |
30868 | $as_echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
a848cd7e SC |
30869 | wxUSE_SNGLINST_CHECKER=no |
30870 | fi | |
30871 | fi | |
30872 | ||
c225b981 | 30873 | for ac_func in setenv putenv |
3dd30495 VZ |
30874 | do : |
30875 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30876 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
30877 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
a848cd7e | 30878 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 30879 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
a848cd7e SC |
30880 | _ACEOF |
30881 | break | |
30882 | fi | |
30883 | done | |
30884 | ||
a1353ea4 | 30885 | if test "$ac_cv_func_setenv" = "yes"; then |
3dd30495 VZ |
30886 | for ac_func in unsetenv |
30887 | do : | |
30888 | ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" | |
eff9d7f5 | 30889 | if test "x$ac_cv_func_unsetenv" = xyes; then : |
a1353ea4 | 30890 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 30891 | #define HAVE_UNSETENV 1 |
a1353ea4 VZ |
30892 | _ACEOF |
30893 | ||
30894 | fi | |
30895 | done | |
30896 | ||
30897 | fi | |
a848cd7e SC |
30898 | |
30899 | HAVE_SOME_SLEEP_FUNC=0 | |
30900 | if test "$USE_BEOS" = 1; then | |
3dd30495 | 30901 | $as_echo "#define HAVE_SLEEP 1" >>confdefs.h |
a848cd7e SC |
30902 | |
30903 | HAVE_SOME_SLEEP_FUNC=1 | |
30904 | fi | |
30905 | ||
30906 | if test "$USE_DARWIN" = 1; then | |
3dd30495 | 30907 | $as_echo "#define HAVE_USLEEP 1" >>confdefs.h |
a848cd7e SC |
30908 | |
30909 | HAVE_SOME_SLEEP_FUNC=1 | |
30910 | fi | |
30911 | ||
30912 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
30913 | POSIX4_LINK= | |
3dd30495 VZ |
30914 | for ac_func in nanosleep |
30915 | do : | |
30916 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" | |
eff9d7f5 | 30917 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
a848cd7e | 30918 | cat >>confdefs.h <<_ACEOF |
a848cd7e SC |
30919 | #define HAVE_NANOSLEEP 1 |
30920 | _ACEOF | |
3dd30495 | 30921 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
a848cd7e SC |
30922 | |
30923 | else | |
30924 | ||
3dd30495 VZ |
30925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
30926 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
eff9d7f5 | 30927 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
3dd30495 | 30928 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
30929 | else |
30930 | ac_check_lib_save_LIBS=$LIBS | |
30931 | LIBS="-lposix4 $LIBS" | |
3dd30495 | 30932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
30933 | /* end confdefs.h. */ |
30934 | ||
47964710 VS |
30935 | /* Override any GCC internal prototype to avoid an error. |
30936 | Use char because int might match the return type of a GCC | |
30937 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
30938 | #ifdef __cplusplus |
30939 | extern "C" | |
30940 | #endif | |
a848cd7e SC |
30941 | char nanosleep (); |
30942 | int | |
30943 | main () | |
30944 | { | |
47964710 | 30945 | return nanosleep (); |
a848cd7e SC |
30946 | ; |
30947 | return 0; | |
30948 | } | |
30949 | _ACEOF | |
3dd30495 | 30950 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
30951 | ac_cv_lib_posix4_nanosleep=yes |
30952 | else | |
3dd30495 | 30953 | ac_cv_lib_posix4_nanosleep=no |
a848cd7e | 30954 | fi |
3dd30495 VZ |
30955 | rm -f core conftest.err conftest.$ac_objext \ |
30956 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30957 | LIBS=$ac_check_lib_save_LIBS |
30958 | fi | |
3dd30495 VZ |
30959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
30960 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
eff9d7f5 | 30961 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
a848cd7e | 30962 | |
3dd30495 | 30963 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
a848cd7e SC |
30964 | |
30965 | POSIX4_LINK=" -lposix4" | |
30966 | ||
30967 | else | |
30968 | ||
30969 | ||
fd5199d6 VZ |
30970 | for wx_func in usleep |
30971 | do | |
3dd30495 VZ |
30972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
30973 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 30974 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 30975 | $as_echo_n "(cached) " >&6 |
a848cd7e | 30976 | else |
fd5199d6 | 30977 | |
3dd30495 | 30978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 30979 | /* end confdefs.h. */ |
ac1cb8d3 | 30980 | |
ac1cb8d3 | 30981 | |
3dd30495 | 30982 | |
fd5199d6 | 30983 | $ac_includes_default |
a848cd7e SC |
30984 | |
30985 | int | |
30986 | main () | |
30987 | { | |
fd5199d6 VZ |
30988 | |
30989 | #ifndef $wx_func | |
30990 | &$wx_func; | |
30991 | #endif | |
30992 | ||
30993 | ||
a848cd7e SC |
30994 | ; |
30995 | return 0; | |
30996 | } | |
fd5199d6 | 30997 | |
a848cd7e | 30998 | _ACEOF |
3dd30495 | 30999 | if ac_fn_c_try_link "$LINENO"; then : |
fd5199d6 | 31000 | eval wx_cv_func_$wx_func=yes |
a848cd7e | 31001 | else |
3dd30495 | 31002 | eval wx_cv_func_$wx_func=no |
a848cd7e | 31003 | fi |
3dd30495 VZ |
31004 | rm -f core conftest.err conftest.$ac_objext \ |
31005 | conftest$ac_exeext conftest.$ac_ext | |
fd5199d6 | 31006 | |
a848cd7e | 31007 | fi |
3dd30495 VZ |
31008 | eval ac_res=\$wx_cv_func_$wx_func |
31009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31010 | $as_echo "$ac_res" >&6; } | |
fd5199d6 VZ |
31011 | |
31012 | if eval test \$wx_cv_func_$wx_func = yes | |
31013 | then | |
31014 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 31015 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
a848cd7e SC |
31016 | _ACEOF |
31017 | ||
fd5199d6 VZ |
31018 | |
31019 | else | |
31020 | : | |
3dd30495 VZ |
31021 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxSleep() function will not work" >&5 |
31022 | $as_echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
a848cd7e | 31023 | |
fd5199d6 VZ |
31024 | fi |
31025 | done | |
a848cd7e SC |
31026 | |
31027 | ||
31028 | ||
31029 | fi | |
31030 | ||
31031 | ||
31032 | ||
31033 | fi | |
31034 | done | |
31035 | ||
31036 | fi | |
31037 | ||
31038 | ||
9b8888f9 VZ |
31039 | for wx_func in uname |
31040 | do | |
3dd30495 VZ |
31041 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
31042 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 31043 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 31044 | $as_echo_n "(cached) " >&6 |
9b8888f9 VZ |
31045 | else |
31046 | ||
3dd30495 | 31047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9b8888f9 VZ |
31048 | /* end confdefs.h. */ |
31049 | ||
3dd30495 | 31050 | |
9b8888f9 VZ |
31051 | #include <sys/utsname.h> |
31052 | $ac_includes_default | |
31053 | ||
31054 | int | |
31055 | main () | |
31056 | { | |
31057 | ||
31058 | #ifndef $wx_func | |
31059 | &$wx_func; | |
31060 | #endif | |
31061 | ||
31062 | ||
31063 | ; | |
31064 | return 0; | |
31065 | } | |
31066 | ||
31067 | _ACEOF | |
3dd30495 | 31068 | if ac_fn_c_try_link "$LINENO"; then : |
9b8888f9 VZ |
31069 | eval wx_cv_func_$wx_func=yes |
31070 | else | |
3dd30495 | 31071 | eval wx_cv_func_$wx_func=no |
9b8888f9 | 31072 | fi |
3dd30495 VZ |
31073 | rm -f core conftest.err conftest.$ac_objext \ |
31074 | conftest$ac_exeext conftest.$ac_ext | |
9b8888f9 VZ |
31075 | |
31076 | fi | |
3dd30495 VZ |
31077 | eval ac_res=\$wx_cv_func_$wx_func |
31078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31079 | $as_echo "$ac_res" >&6; } | |
9b8888f9 VZ |
31080 | |
31081 | if eval test \$wx_cv_func_$wx_func = yes | |
31082 | then | |
31083 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 31084 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
9b8888f9 VZ |
31085 | _ACEOF |
31086 | ||
31087 | ||
31088 | else | |
31089 | : | |
31090 | ||
31091 | fi | |
31092 | done | |
31093 | ||
31094 | if test "$wx_cv_func_uname" != yes; then | |
31095 | ||
31096 | for wx_func in gethostname | |
fd5199d6 | 31097 | do |
3dd30495 VZ |
31098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
31099 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 31100 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 31101 | $as_echo_n "(cached) " >&6 |
a848cd7e | 31102 | else |
fd5199d6 | 31103 | |
3dd30495 | 31104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 31105 | /* end confdefs.h. */ |
ac1cb8d3 | 31106 | |
ac1cb8d3 | 31107 | |
3dd30495 | 31108 | |
fd5199d6 | 31109 | $ac_includes_default |
a848cd7e SC |
31110 | |
31111 | int | |
31112 | main () | |
31113 | { | |
fd5199d6 VZ |
31114 | |
31115 | #ifndef $wx_func | |
31116 | &$wx_func; | |
31117 | #endif | |
31118 | ||
31119 | ||
a848cd7e SC |
31120 | ; |
31121 | return 0; | |
31122 | } | |
fd5199d6 | 31123 | |
a848cd7e | 31124 | _ACEOF |
3dd30495 | 31125 | if ac_fn_c_try_link "$LINENO"; then : |
fd5199d6 | 31126 | eval wx_cv_func_$wx_func=yes |
a848cd7e | 31127 | else |
3dd30495 | 31128 | eval wx_cv_func_$wx_func=no |
a848cd7e | 31129 | fi |
3dd30495 VZ |
31130 | rm -f core conftest.err conftest.$ac_objext \ |
31131 | conftest$ac_exeext conftest.$ac_ext | |
fd5199d6 | 31132 | |
a848cd7e | 31133 | fi |
3dd30495 VZ |
31134 | eval ac_res=\$wx_cv_func_$wx_func |
31135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31136 | $as_echo "$ac_res" >&6; } | |
fd5199d6 VZ |
31137 | |
31138 | if eval test \$wx_cv_func_$wx_func = yes | |
31139 | then | |
31140 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 31141 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
a848cd7e | 31142 | _ACEOF |
fd5199d6 | 31143 | |
9b8888f9 | 31144 | |
fd5199d6 VZ |
31145 | else |
31146 | : | |
31147 | ||
31148 | fi | |
31149 | done | |
a848cd7e | 31150 | |
9b8888f9 | 31151 | fi |
a848cd7e | 31152 | |
56632e81 MW |
31153 | |
31154 | for wx_func in strtok_r | |
31155 | do | |
3dd30495 VZ |
31156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
31157 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 31158 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 31159 | $as_echo_n "(cached) " >&6 |
a848cd7e | 31160 | else |
56632e81 | 31161 | |
3dd30495 | 31162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 31163 | /* end confdefs.h. */ |
56632e81 | 31164 | |
3dd30495 | 31165 | |
56632e81 MW |
31166 | #define _REENTRANT |
31167 | $ac_includes_default | |
31168 | ||
a848cd7e SC |
31169 | int |
31170 | main () | |
31171 | { | |
56632e81 MW |
31172 | |
31173 | #ifndef $wx_func | |
31174 | &$wx_func; | |
31175 | #endif | |
31176 | ||
5acfd58d | 31177 | |
a848cd7e SC |
31178 | ; |
31179 | return 0; | |
31180 | } | |
56632e81 | 31181 | |
a848cd7e | 31182 | _ACEOF |
3dd30495 | 31183 | if ac_fn_c_try_link "$LINENO"; then : |
56632e81 | 31184 | eval wx_cv_func_$wx_func=yes |
a848cd7e | 31185 | else |
3dd30495 | 31186 | eval wx_cv_func_$wx_func=no |
a848cd7e | 31187 | fi |
3dd30495 VZ |
31188 | rm -f core conftest.err conftest.$ac_objext \ |
31189 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 31190 | |
56632e81 | 31191 | fi |
3dd30495 VZ |
31192 | eval ac_res=\$wx_cv_func_$wx_func |
31193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31194 | $as_echo "$ac_res" >&6; } | |
a848cd7e | 31195 | |
56632e81 MW |
31196 | if eval test \$wx_cv_func_$wx_func = yes |
31197 | then | |
31198 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 31199 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
82a2636b MW |
31200 | _ACEOF |
31201 | ||
31202 | ||
56632e81 MW |
31203 | else |
31204 | : | |
5acfd58d | 31205 | |
56632e81 MW |
31206 | fi |
31207 | done | |
5acfd58d | 31208 | |
a848cd7e | 31209 | |
a848cd7e | 31210 | INET_LINK= |
a848cd7e | 31211 | for ac_func in inet_addr |
3dd30495 VZ |
31212 | do : |
31213 | ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr" | |
eff9d7f5 | 31214 | if test "x$ac_cv_func_inet_addr" = xyes; then : |
a848cd7e | 31215 | cat >>confdefs.h <<_ACEOF |
a848cd7e SC |
31216 | #define HAVE_INET_ADDR 1 |
31217 | _ACEOF | |
3dd30495 | 31218 | $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h |
a848cd7e SC |
31219 | |
31220 | else | |
31221 | ||
3dd30495 VZ |
31222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 |
31223 | $as_echo_n "checking for inet_addr in -lnsl... " >&6; } | |
eff9d7f5 | 31224 | if ${ac_cv_lib_nsl_inet_addr+:} false; then : |
3dd30495 | 31225 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
31226 | else |
31227 | ac_check_lib_save_LIBS=$LIBS | |
31228 | LIBS="-lnsl $LIBS" | |
3dd30495 | 31229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
31230 | /* end confdefs.h. */ |
31231 | ||
47964710 VS |
31232 | /* Override any GCC internal prototype to avoid an error. |
31233 | Use char because int might match the return type of a GCC | |
31234 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31235 | #ifdef __cplusplus |
31236 | extern "C" | |
31237 | #endif | |
a848cd7e SC |
31238 | char inet_addr (); |
31239 | int | |
31240 | main () | |
31241 | { | |
47964710 | 31242 | return inet_addr (); |
a848cd7e SC |
31243 | ; |
31244 | return 0; | |
31245 | } | |
31246 | _ACEOF | |
3dd30495 | 31247 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
31248 | ac_cv_lib_nsl_inet_addr=yes |
31249 | else | |
3dd30495 | 31250 | ac_cv_lib_nsl_inet_addr=no |
a848cd7e | 31251 | fi |
3dd30495 VZ |
31252 | rm -f core conftest.err conftest.$ac_objext \ |
31253 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31254 | LIBS=$ac_check_lib_save_LIBS |
31255 | fi | |
3dd30495 VZ |
31256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 |
31257 | $as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } | |
eff9d7f5 | 31258 | if test "x$ac_cv_lib_nsl_inet_addr" = xyes; then : |
a848cd7e SC |
31259 | INET_LINK="nsl" |
31260 | else | |
31261 | ||
3dd30495 VZ |
31262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lresolv" >&5 |
31263 | $as_echo_n "checking for inet_addr in -lresolv... " >&6; } | |
eff9d7f5 | 31264 | if ${ac_cv_lib_resolv_inet_addr+:} false; then : |
3dd30495 | 31265 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
31266 | else |
31267 | ac_check_lib_save_LIBS=$LIBS | |
31268 | LIBS="-lresolv $LIBS" | |
3dd30495 | 31269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
31270 | /* end confdefs.h. */ |
31271 | ||
47964710 VS |
31272 | /* Override any GCC internal prototype to avoid an error. |
31273 | Use char because int might match the return type of a GCC | |
31274 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31275 | #ifdef __cplusplus |
31276 | extern "C" | |
31277 | #endif | |
a848cd7e SC |
31278 | char inet_addr (); |
31279 | int | |
31280 | main () | |
31281 | { | |
47964710 | 31282 | return inet_addr (); |
a848cd7e SC |
31283 | ; |
31284 | return 0; | |
31285 | } | |
31286 | _ACEOF | |
3dd30495 | 31287 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
31288 | ac_cv_lib_resolv_inet_addr=yes |
31289 | else | |
3dd30495 | 31290 | ac_cv_lib_resolv_inet_addr=no |
a848cd7e | 31291 | fi |
3dd30495 VZ |
31292 | rm -f core conftest.err conftest.$ac_objext \ |
31293 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31294 | LIBS=$ac_check_lib_save_LIBS |
31295 | fi | |
3dd30495 VZ |
31296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_addr" >&5 |
31297 | $as_echo "$ac_cv_lib_resolv_inet_addr" >&6; } | |
eff9d7f5 | 31298 | if test "x$ac_cv_lib_resolv_inet_addr" = xyes; then : |
a848cd7e SC |
31299 | INET_LINK="resolv" |
31300 | else | |
31301 | ||
3dd30495 VZ |
31302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lsocket" >&5 |
31303 | $as_echo_n "checking for inet_addr in -lsocket... " >&6; } | |
eff9d7f5 | 31304 | if ${ac_cv_lib_socket_inet_addr+:} false; then : |
3dd30495 | 31305 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
31306 | else |
31307 | ac_check_lib_save_LIBS=$LIBS | |
31308 | LIBS="-lsocket $LIBS" | |
3dd30495 | 31309 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
31310 | /* end confdefs.h. */ |
31311 | ||
47964710 VS |
31312 | /* Override any GCC internal prototype to avoid an error. |
31313 | Use char because int might match the return type of a GCC | |
31314 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31315 | #ifdef __cplusplus |
31316 | extern "C" | |
31317 | #endif | |
a848cd7e SC |
31318 | char inet_addr (); |
31319 | int | |
31320 | main () | |
31321 | { | |
47964710 | 31322 | return inet_addr (); |
a848cd7e SC |
31323 | ; |
31324 | return 0; | |
31325 | } | |
31326 | _ACEOF | |
3dd30495 | 31327 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
31328 | ac_cv_lib_socket_inet_addr=yes |
31329 | else | |
3dd30495 | 31330 | ac_cv_lib_socket_inet_addr=no |
a848cd7e | 31331 | fi |
3dd30495 VZ |
31332 | rm -f core conftest.err conftest.$ac_objext \ |
31333 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31334 | LIBS=$ac_check_lib_save_LIBS |
31335 | fi | |
3dd30495 VZ |
31336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_addr" >&5 |
31337 | $as_echo "$ac_cv_lib_socket_inet_addr" >&6; } | |
eff9d7f5 | 31338 | if test "x$ac_cv_lib_socket_inet_addr" = xyes; then : |
a848cd7e SC |
31339 | INET_LINK="socket" |
31340 | ||
31341 | fi | |
31342 | ||
31343 | ||
31344 | ||
31345 | fi | |
31346 | ||
31347 | ||
31348 | ||
31349 | fi | |
31350 | ||
31351 | ||
31352 | ||
31353 | fi | |
31354 | done | |
31355 | ||
31356 | ||
a848cd7e | 31357 | for ac_func in inet_aton |
3dd30495 VZ |
31358 | do : |
31359 | ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton" | |
eff9d7f5 | 31360 | if test "x$ac_cv_func_inet_aton" = xyes; then : |
a848cd7e | 31361 | cat >>confdefs.h <<_ACEOF |
a848cd7e SC |
31362 | #define HAVE_INET_ATON 1 |
31363 | _ACEOF | |
3dd30495 | 31364 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h |
a848cd7e SC |
31365 | |
31366 | else | |
31367 | ||
3dd30495 VZ |
31368 | as_ac_Lib=`$as_echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` |
31369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -l$INET_LINK" >&5 | |
31370 | $as_echo_n "checking for inet_aton in -l$INET_LINK... " >&6; } | |
eff9d7f5 | 31371 | if eval \${$as_ac_Lib+:} false; then : |
3dd30495 | 31372 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
31373 | else |
31374 | ac_check_lib_save_LIBS=$LIBS | |
31375 | LIBS="-l$INET_LINK $LIBS" | |
3dd30495 | 31376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
31377 | /* end confdefs.h. */ |
31378 | ||
47964710 VS |
31379 | /* Override any GCC internal prototype to avoid an error. |
31380 | Use char because int might match the return type of a GCC | |
31381 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
31382 | #ifdef __cplusplus |
31383 | extern "C" | |
31384 | #endif | |
a848cd7e SC |
31385 | char inet_aton (); |
31386 | int | |
31387 | main () | |
31388 | { | |
47964710 | 31389 | return inet_aton (); |
a848cd7e SC |
31390 | ; |
31391 | return 0; | |
31392 | } | |
31393 | _ACEOF | |
3dd30495 | 31394 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
31395 | eval "$as_ac_Lib=yes" |
31396 | else | |
3dd30495 | 31397 | eval "$as_ac_Lib=no" |
a848cd7e | 31398 | fi |
3dd30495 VZ |
31399 | rm -f core conftest.err conftest.$ac_objext \ |
31400 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 31401 | LIBS=$ac_check_lib_save_LIBS |
3dd30495 VZ |
31402 | fi |
31403 | eval ac_res=\$$as_ac_Lib | |
31404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31405 | $as_echo "$ac_res" >&6; } | |
31406 | if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : | |
31407 | $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h | |
a848cd7e SC |
31408 | |
31409 | fi | |
31410 | ||
31411 | ||
31412 | fi | |
31413 | done | |
31414 | ||
31415 | ||
31416 | if test "x$INET_LINK" != "x"; then | |
3dd30495 | 31417 | $as_echo "#define HAVE_INET_ADDR 1" >>confdefs.h |
a848cd7e SC |
31418 | |
31419 | INET_LINK=" -l$INET_LINK" | |
31420 | fi | |
31421 | ||
f8f6c91a MW |
31422 | |
31423 | for wx_func in fdopen | |
31424 | do | |
3dd30495 VZ |
31425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
31426 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 31427 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 31428 | $as_echo_n "(cached) " >&6 |
f8f6c91a MW |
31429 | else |
31430 | ||
3dd30495 | 31431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
f8f6c91a MW |
31432 | /* end confdefs.h. */ |
31433 | ||
31434 | ||
3dd30495 | 31435 | |
f8f6c91a MW |
31436 | $ac_includes_default |
31437 | ||
31438 | int | |
31439 | main () | |
31440 | { | |
31441 | ||
31442 | #ifndef $wx_func | |
31443 | &$wx_func; | |
31444 | #endif | |
31445 | ||
31446 | ||
31447 | ; | |
31448 | return 0; | |
31449 | } | |
31450 | ||
31451 | _ACEOF | |
3dd30495 | 31452 | if ac_fn_c_try_link "$LINENO"; then : |
f8f6c91a MW |
31453 | eval wx_cv_func_$wx_func=yes |
31454 | else | |
3dd30495 | 31455 | eval wx_cv_func_$wx_func=no |
a848cd7e | 31456 | fi |
3dd30495 VZ |
31457 | rm -f core conftest.err conftest.$ac_objext \ |
31458 | conftest$ac_exeext conftest.$ac_ext | |
f8f6c91a MW |
31459 | |
31460 | fi | |
3dd30495 VZ |
31461 | eval ac_res=\$wx_cv_func_$wx_func |
31462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31463 | $as_echo "$ac_res" >&6; } | |
f8f6c91a MW |
31464 | |
31465 | if eval test \$wx_cv_func_$wx_func = yes | |
31466 | then | |
31467 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 31468 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
f8f6c91a MW |
31469 | _ACEOF |
31470 | ||
31471 | ||
31472 | else | |
31473 | : | |
31474 | ||
31475 | fi | |
31476 | done | |
31477 | ||
31478 | ||
d3b8fe10 VZ |
31479 | if test "$wxUSE_TARSTREAM" = "yes"; then |
31480 | ||
31481 | for wx_func in sysconf | |
31482 | do | |
3dd30495 VZ |
31483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
31484 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 31485 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 31486 | $as_echo_n "(cached) " >&6 |
d3b8fe10 VZ |
31487 | else |
31488 | ||
3dd30495 | 31489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d3b8fe10 VZ |
31490 | /* end confdefs.h. */ |
31491 | ||
31492 | ||
3dd30495 | 31493 | |
d3b8fe10 VZ |
31494 | $ac_includes_default |
31495 | ||
31496 | int | |
31497 | main () | |
31498 | { | |
31499 | ||
31500 | #ifndef $wx_func | |
31501 | &$wx_func; | |
31502 | #endif | |
31503 | ||
31504 | ||
31505 | ; | |
31506 | return 0; | |
31507 | } | |
31508 | ||
31509 | _ACEOF | |
3dd30495 | 31510 | if ac_fn_c_try_link "$LINENO"; then : |
d3b8fe10 VZ |
31511 | eval wx_cv_func_$wx_func=yes |
31512 | else | |
3dd30495 | 31513 | eval wx_cv_func_$wx_func=no |
d3b8fe10 | 31514 | fi |
3dd30495 VZ |
31515 | rm -f core conftest.err conftest.$ac_objext \ |
31516 | conftest$ac_exeext conftest.$ac_ext | |
d3b8fe10 VZ |
31517 | |
31518 | fi | |
3dd30495 VZ |
31519 | eval ac_res=\$wx_cv_func_$wx_func |
31520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31521 | $as_echo "$ac_res" >&6; } | |
d3b8fe10 VZ |
31522 | |
31523 | if eval test \$wx_cv_func_$wx_func = yes | |
31524 | then | |
31525 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 31526 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
d3b8fe10 VZ |
31527 | _ACEOF |
31528 | ||
31529 | ||
31530 | else | |
31531 | : | |
31532 | ||
31533 | fi | |
31534 | done | |
31535 | ||
31536 | ||
85d2919f | 31537 | |
d3b8fe10 VZ |
31538 | for wx_func in getpwuid_r |
31539 | do | |
3dd30495 VZ |
31540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
31541 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 31542 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 31543 | $as_echo_n "(cached) " >&6 |
d3b8fe10 VZ |
31544 | else |
31545 | ||
3dd30495 | 31546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d3b8fe10 VZ |
31547 | /* end confdefs.h. */ |
31548 | ||
85d2919f | 31549 | |
3dd30495 | 31550 | |
85d2919f MW |
31551 | #define _REENTRANT |
31552 | #include <pwd.h> | |
31553 | ||
d3b8fe10 VZ |
31554 | $ac_includes_default |
31555 | ||
31556 | int | |
31557 | main () | |
31558 | { | |
31559 | ||
31560 | #ifndef $wx_func | |
31561 | &$wx_func; | |
31562 | #endif | |
31563 | ||
85d2919f MW |
31564 | struct passwd pw, *ppw; |
31565 | char buf[1024]; | |
31566 | getpwuid_r(0, &pw, buf, sizeof(buf), &ppw) | |
31567 | ||
d3b8fe10 VZ |
31568 | |
31569 | ; | |
31570 | return 0; | |
31571 | } | |
31572 | ||
31573 | _ACEOF | |
3dd30495 | 31574 | if ac_fn_c_try_link "$LINENO"; then : |
d3b8fe10 VZ |
31575 | eval wx_cv_func_$wx_func=yes |
31576 | else | |
3dd30495 | 31577 | eval wx_cv_func_$wx_func=no |
d3b8fe10 | 31578 | fi |
3dd30495 VZ |
31579 | rm -f core conftest.err conftest.$ac_objext \ |
31580 | conftest$ac_exeext conftest.$ac_ext | |
d3b8fe10 VZ |
31581 | |
31582 | fi | |
3dd30495 VZ |
31583 | eval ac_res=\$wx_cv_func_$wx_func |
31584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31585 | $as_echo "$ac_res" >&6; } | |
d3b8fe10 VZ |
31586 | |
31587 | if eval test \$wx_cv_func_$wx_func = yes | |
31588 | then | |
31589 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 31590 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
d3b8fe10 VZ |
31591 | _ACEOF |
31592 | ||
31593 | ||
31594 | else | |
31595 | : | |
31596 | ||
31597 | fi | |
31598 | done | |
31599 | ||
31600 | ||
85d2919f | 31601 | |
d3b8fe10 VZ |
31602 | for wx_func in getgrgid_r |
31603 | do | |
3dd30495 VZ |
31604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $wx_func" >&5 |
31605 | $as_echo_n "checking for $wx_func... " >&6; } | |
eff9d7f5 | 31606 | if eval \${wx_cv_func_$wx_func+:} false; then : |
3dd30495 | 31607 | $as_echo_n "(cached) " >&6 |
d3b8fe10 VZ |
31608 | else |
31609 | ||
3dd30495 | 31610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d3b8fe10 VZ |
31611 | /* end confdefs.h. */ |
31612 | ||
85d2919f | 31613 | |
3dd30495 | 31614 | |
85d2919f MW |
31615 | #define _REENTRANT |
31616 | #include <grp.h> | |
31617 | ||
d3b8fe10 VZ |
31618 | $ac_includes_default |
31619 | ||
31620 | int | |
31621 | main () | |
31622 | { | |
31623 | ||
31624 | #ifndef $wx_func | |
31625 | &$wx_func; | |
31626 | #endif | |
31627 | ||
85d2919f MW |
31628 | struct group grp, *pgrp; |
31629 | char buf[1024]; | |
31630 | getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp) | |
31631 | ||
d3b8fe10 VZ |
31632 | |
31633 | ; | |
31634 | return 0; | |
31635 | } | |
31636 | ||
31637 | _ACEOF | |
3dd30495 | 31638 | if ac_fn_c_try_link "$LINENO"; then : |
d3b8fe10 VZ |
31639 | eval wx_cv_func_$wx_func=yes |
31640 | else | |
3dd30495 | 31641 | eval wx_cv_func_$wx_func=no |
d3b8fe10 | 31642 | fi |
3dd30495 VZ |
31643 | rm -f core conftest.err conftest.$ac_objext \ |
31644 | conftest$ac_exeext conftest.$ac_ext | |
d3b8fe10 VZ |
31645 | |
31646 | fi | |
3dd30495 VZ |
31647 | eval ac_res=\$wx_cv_func_$wx_func |
31648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
31649 | $as_echo "$ac_res" >&6; } | |
d3b8fe10 VZ |
31650 | |
31651 | if eval test \$wx_cv_func_$wx_func = yes | |
31652 | then | |
31653 | cat >>confdefs.h <<_ACEOF | |
3dd30495 | 31654 | #define `$as_echo "HAVE_$wx_func" | $as_tr_cpp` 1 |
d3b8fe10 VZ |
31655 | _ACEOF |
31656 | ||
31657 | ||
31658 | else | |
31659 | : | |
31660 | ||
31661 | fi | |
31662 | done | |
31663 | ||
31664 | fi | |
31665 | ||
f8f6c91a MW |
31666 | fi |
31667 | ||
a848cd7e SC |
31668 | |
31669 | ||
a848cd7e SC |
31670 | cat >confcache <<\_ACEOF |
31671 | # This file is a shell script that caches the results of configure | |
31672 | # tests run on this system so they can be shared between configure | |
31673 | # scripts and configure runs, see configure's option --config-cache. | |
31674 | # It is not useful on other systems. If it contains results you don't | |
31675 | # want to keep, you may remove or edit it. | |
31676 | # | |
31677 | # config.status only pays attention to the cache file if you give it | |
31678 | # the --recheck option to rerun configure. | |
31679 | # | |
31680 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
31681 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
31682 | # following values. | |
31683 | ||
31684 | _ACEOF | |
31685 | ||
31686 | # The following way of writing the cache mishandles newlines in values, | |
31687 | # but we know of no workaround that is simple, portable, and efficient. | |
47964710 | 31688 | # So, we kill variables containing newlines. |
a848cd7e SC |
31689 | # Ultrix sh set writes to stderr and can't be redirected directly, |
31690 | # and sets the high bit in the cache file unless we assign to the vars. | |
47964710 VS |
31691 | ( |
31692 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
31693 | eval ac_val=\$$ac_var | |
31694 | case $ac_val in #( | |
31695 | *${as_nl}*) | |
31696 | case $ac_var in #( | |
3dd30495 VZ |
31697 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
31698 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
47964710 VS |
31699 | esac |
31700 | case $ac_var in #( | |
31701 | _ | IFS | as_nl) ;; #( | |
3dd30495 VZ |
31702 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
31703 | *) { eval $ac_var=; unset $ac_var;} ;; | |
47964710 VS |
31704 | esac ;; |
31705 | esac | |
31706 | done | |
31707 | ||
a848cd7e | 31708 | (set) 2>&1 | |
47964710 VS |
31709 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
31710 | *${as_nl}ac_space=\ *) | |
3dd30495 VZ |
31711 | # `set' does not quote correctly, so add quotes: double-quote |
31712 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
a848cd7e | 31713 | sed -n \ |
ac1cb8d3 VS |
31714 | "s/'/'\\\\''/g; |
31715 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
47964710 | 31716 | ;; #( |
a848cd7e SC |
31717 | *) |
31718 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
47964710 | 31719 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a848cd7e | 31720 | ;; |
47964710 VS |
31721 | esac | |
31722 | sort | |
31723 | ) | | |
a848cd7e | 31724 | sed ' |
47964710 | 31725 | /^ac_cv_env_/b end |
a848cd7e | 31726 | t clear |
47964710 | 31727 | :clear |
a848cd7e SC |
31728 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
31729 | t end | |
47964710 VS |
31730 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
31731 | :end' >>confcache | |
31732 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
31733 | if test -w "$cache_file"; then | |
eff9d7f5 | 31734 | if test "x$cache_file" != "x/dev/null"; then |
3dd30495 VZ |
31735 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
31736 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
eff9d7f5 VZ |
31737 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
31738 | cat confcache >"$cache_file" | |
31739 | else | |
31740 | case $cache_file in #( | |
31741 | */* | ?:*) | |
31742 | mv -f confcache "$cache_file"$$ && | |
31743 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
31744 | *) | |
31745 | mv -f confcache "$cache_file" ;; | |
31746 | esac | |
31747 | fi | |
31748 | fi | |
a848cd7e | 31749 | else |
3dd30495 VZ |
31750 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
31751 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a848cd7e SC |
31752 | fi |
31753 | fi | |
31754 | rm -f confcache | |
31755 | ||
31756 | ||
a848cd7e SC |
31757 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
31758 | ||
31759 | ||
31760 | THREADS_LINK= | |
9b8888f9 | 31761 | THREADS_CFLAGS= |
a848cd7e SC |
31762 | |
31763 | if test "$wxUSE_THREADS" = "yes" ; then | |
31764 | if test "$USE_BEOS" = 1; then | |
3dd30495 VZ |
31765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: BeOS threads are not yet supported... disabled" >&5 |
31766 | $as_echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
a848cd7e SC |
31767 | wxUSE_THREADS="no" |
31768 | fi | |
31769 | fi | |
31770 | ||
31771 | if test "$wxUSE_THREADS" = "yes" ; then | |
31772 | ||
31773 | ||
31774 | THREAD_OPTS="-pthread" | |
43a7c679 VZ |
31775 | if test "x$SUNCXX" = xyes; then |
31776 | THREAD_OPTS="-mt lthread $THREAD_OPTS" | |
31777 | fi | |
31778 | ||
a848cd7e SC |
31779 | case "${host}" in |
31780 | *-*-solaris2* | *-*-sunos4* ) | |
31781 | if test "x$GCC" = "xyes"; then | |
31782 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
a848cd7e SC |
31783 | fi |
31784 | ;; | |
31785 | *-*-freebsd*) | |
31786 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
31787 | ;; | |
31788 | *-*-darwin* | *-*-cygwin* ) | |
31789 | THREAD_OPTS="" | |
31790 | ;; | |
31791 | *-*-aix*) | |
31792 | THREAD_OPTS="pthreads" | |
31793 | ;; | |
31794 | *-hp-hpux* ) | |
00421666 MW |
31795 | if test "x$GCC" = "xyes"; then |
31796 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
31797 | THREAD_OPTS="" | |
31798 | else | |
0093c2fc | 31799 | THREAD_OPTS="-mt" |
a848cd7e SC |
31800 | fi |
31801 | ;; | |
31802 | ||
31803 | *-*-irix* ) | |
31804 | if test "x$GCC" = "xyes"; then | |
31805 | THREAD_OPTS="" | |
31806 | fi | |
31807 | ;; | |
31808 | ||
229251af VZ |
31809 | *-*-qnx*) |
31810 | THREAD_OPTS="" | |
31811 | ;; | |
31812 | ||
a848cd7e SC |
31813 | *-*-*UnixWare*) |
31814 | if test "x$GCC" != "xyes"; then | |
31815 | THREAD_OPTS="-Ethread" | |
31816 | fi | |
31817 | ;; | |
31818 | esac | |
31819 | ||
229251af VZ |
31820 | case "${host}" in |
31821 | *-*-qnx*) | |
31822 | THREAD_OPTS="none pthread" | |
31823 | ;; | |
31824 | ||
31825 | *) | |
31826 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
31827 | ;; | |
31828 | esac | |
a848cd7e SC |
31829 | |
31830 | THREADS_OK=no | |
31831 | for flag in $THREAD_OPTS; do | |
31832 | case $flag in | |
31833 | none) | |
3dd30495 VZ |
31834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
31835 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } | |
a848cd7e SC |
31836 | ;; |
31837 | ||
31838 | -*) | |
3dd30495 VZ |
31839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
31840 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } | |
9b8888f9 | 31841 | THREADS_CFLAGS="$flag" |
a848cd7e SC |
31842 | ;; |
31843 | ||
31844 | *) | |
3dd30495 VZ |
31845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
31846 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } | |
a848cd7e SC |
31847 | THREADS_LINK="-l$flag" |
31848 | ;; | |
31849 | esac | |
31850 | ||
31851 | save_LIBS="$LIBS" | |
9b8888f9 | 31852 | save_CFLAGS="$CFLAGS" |
a848cd7e | 31853 | LIBS="$THREADS_LINK $LIBS" |
9b8888f9 | 31854 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
a848cd7e | 31855 | |
3dd30495 | 31856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
31857 | /* end confdefs.h. */ |
31858 | #include <pthread.h> | |
31859 | int | |
31860 | main () | |
31861 | { | |
31862 | pthread_create(0,0,0,0); | |
31863 | ; | |
31864 | return 0; | |
31865 | } | |
31866 | _ACEOF | |
3dd30495 | 31867 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e | 31868 | THREADS_OK=yes |
a848cd7e | 31869 | fi |
3dd30495 VZ |
31870 | rm -f core conftest.err conftest.$ac_objext \ |
31871 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31872 | |
31873 | LIBS="$save_LIBS" | |
9b8888f9 | 31874 | CFLAGS="$save_CFLAGS" |
a848cd7e | 31875 | |
3dd30495 VZ |
31876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS_OK" >&5 |
31877 | $as_echo "$THREADS_OK" >&6; } | |
a848cd7e SC |
31878 | if test "x$THREADS_OK" = "xyes"; then |
31879 | break; | |
31880 | fi | |
31881 | ||
31882 | THREADS_LINK="" | |
9b8888f9 | 31883 | THREADS_CFLAGS="" |
a848cd7e SC |
31884 | done |
31885 | ||
31886 | if test "x$THREADS_OK" != "xyes"; then | |
31887 | wxUSE_THREADS=no | |
3dd30495 VZ |
31888 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No thread support on this system... disabled" >&5 |
31889 | $as_echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
a848cd7e | 31890 | else |
d4fbe1d8 VZ |
31891 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
31892 | WXCONFIG_LDFLAGS="$THREADS_CFLAGS $WXCONFIG_LDFLAGS" | |
a848cd7e SC |
31893 | LIBS="$THREADS_LINK $LIBS" |
31894 | ||
3dd30495 VZ |
31895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
31896 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } | |
a848cd7e SC |
31897 | flag=no |
31898 | case "${host}" in | |
31899 | *-aix*) | |
31900 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
d4fbe1d8 | 31901 | WXCONFIG_LDFLAGS="-L/usr/lib/threads $WXCONFIG_LDFLAGS" |
a848cd7e SC |
31902 | flag="-D_THREAD_SAFE" |
31903 | ;; | |
31904 | *-freebsd*) | |
31905 | flag="-D_THREAD_SAFE" | |
31906 | ;; | |
31907 | *-hp-hpux* ) | |
31908 | flag="-D_REENTRANT" | |
31909 | if test "x$GCC" != "xyes"; then | |
31910 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
31911 | fi | |
31912 | ;; | |
31913 | *solaris* | alpha*-osf*) | |
31914 | flag="-D_REENTRANT" | |
31915 | ;; | |
31916 | esac | |
3dd30495 VZ |
31917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
31918 | $as_echo "${flag}" >&6; } | |
a848cd7e | 31919 | if test "x$flag" != xno; then |
9b8888f9 | 31920 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
a848cd7e SC |
31921 | fi |
31922 | ||
9b8888f9 | 31923 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS" |
a848cd7e SC |
31924 | fi |
31925 | fi | |
31926 | ||
31927 | if test "$wxUSE_THREADS" = "yes" ; then | |
3dd30495 VZ |
31928 | for ac_func in pthread_setconcurrency |
31929 | do : | |
31930 | ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency" | |
eff9d7f5 | 31931 | if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then : |
32632baf | 31932 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 31933 | #define HAVE_PTHREAD_SETCONCURRENCY 1 |
a848cd7e | 31934 | _ACEOF |
3dd30495 | 31935 | $as_echo "#define HAVE_PTHREAD_SET_CONCURRENCY 1" >>confdefs.h |
ac1cb8d3 | 31936 | |
a848cd7e | 31937 | else |
47964710 | 31938 | |
3dd30495 VZ |
31939 | for ac_func in thr_setconcurrency |
31940 | do : | |
31941 | ac_fn_c_check_func "$LINENO" "thr_setconcurrency" "ac_cv_func_thr_setconcurrency" | |
eff9d7f5 | 31942 | if test "x$ac_cv_func_thr_setconcurrency" = xyes; then : |
a848cd7e | 31943 | cat >>confdefs.h <<_ACEOF |
32632baf VZ |
31944 | #define HAVE_THR_SETCONCURRENCY 1 |
31945 | _ACEOF | |
3dd30495 | 31946 | $as_echo "#define HAVE_THR_SETCONCURRENCY 1" >>confdefs.h |
32632baf VZ |
31947 | |
31948 | else | |
3dd30495 VZ |
31949 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Setting thread concurrency will not work properly" >&5 |
31950 | $as_echo "$as_me: WARNING: Setting thread concurrency will not work properly" >&2;} | |
32632baf VZ |
31951 | fi |
31952 | done | |
31953 | ||
a848cd7e SC |
31954 | |
31955 | fi | |
31956 | done | |
31957 | ||
31958 | ||
3dd30495 VZ |
31959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cleanup_push/pop" >&5 |
31960 | $as_echo_n "checking for pthread_cleanup_push/pop... " >&6; } | |
eff9d7f5 | 31961 | if ${wx_cv_func_pthread_cleanup+:} false; then : |
3dd30495 | 31962 | $as_echo_n "(cached) " >&6 |
6ebeb4c7 VZ |
31963 | else |
31964 | ||
47964710 | 31965 | ac_ext=cpp |
43a7c679 VZ |
31966 | ac_cpp='$CXXCPP $CPPFLAGS' |
31967 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31968 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31969 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
31970 | ||
3dd30495 | 31971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
6ebeb4c7 VZ |
31972 | /* end confdefs.h. */ |
31973 | #include <pthread.h> | |
31974 | void ThreadCleanupFunc(void *p); | |
31975 | ||
31976 | int | |
31977 | main () | |
31978 | { | |
31979 | ||
31980 | void *p; | |
31981 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
31982 | pthread_cleanup_pop(0); | |
31983 | ||
31984 | ; | |
31985 | return 0; | |
31986 | } | |
31987 | _ACEOF | |
3dd30495 | 31988 | if ac_fn_cxx_try_compile "$LINENO"; then : |
6ebeb4c7 VZ |
31989 | |
31990 | wx_cv_func_pthread_cleanup=yes | |
31991 | ||
31992 | else | |
6ebeb4c7 VZ |
31993 | |
31994 | wx_cv_func_pthread_cleanup=no | |
31995 | ||
31996 | ||
31997 | fi | |
47964710 | 31998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
43a7c679 VZ |
31999 | ac_ext=c |
32000 | ac_cpp='$CPP $CPPFLAGS' | |
32001 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3dd30495 VZ |
32002 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
32003 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
a848cd7e SC |
32004 | |
32005 | ||
32006 | fi | |
3dd30495 VZ |
32007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_pthread_cleanup" >&5 |
32008 | $as_echo "$wx_cv_func_pthread_cleanup" >&6; } | |
32009 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
32010 | $as_echo "#define wxHAVE_PTHREAD_CLEANUP 1" >>confdefs.h | |
a848cd7e | 32011 | |
3dd30495 | 32012 | fi |
a848cd7e | 32013 | |
3dd30495 VZ |
32014 | for ac_header in sched.h |
32015 | do : | |
32016 | ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default | |
32017 | " | |
eff9d7f5 | 32018 | if test "x$ac_cv_header_sched_h" = xyes; then : |
3dd30495 VZ |
32019 | cat >>confdefs.h <<_ACEOF |
32020 | #define HAVE_SCHED_H 1 | |
32021 | _ACEOF | |
a848cd7e SC |
32022 | |
32023 | fi | |
32024 | ||
3dd30495 | 32025 | done |
a848cd7e | 32026 | |
3dd30495 VZ |
32027 | if test "$ac_cv_header_sched_h" = "yes"; then |
32028 | ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" | |
eff9d7f5 | 32029 | if test "x$ac_cv_func_sched_yield" = xyes; then : |
3dd30495 | 32030 | $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h |
a848cd7e | 32031 | |
3dd30495 | 32032 | else |
a848cd7e | 32033 | |
3dd30495 VZ |
32034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5 |
32035 | $as_echo_n "checking for sched_yield in -lposix4... " >&6; } | |
eff9d7f5 | 32036 | if ${ac_cv_lib_posix4_sched_yield+:} false; then : |
3dd30495 | 32037 | $as_echo_n "(cached) " >&6 |
a848cd7e | 32038 | else |
3dd30495 VZ |
32039 | ac_check_lib_save_LIBS=$LIBS |
32040 | LIBS="-lposix4 $LIBS" | |
32041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e | 32042 | /* end confdefs.h. */ |
ac1cb8d3 | 32043 | |
47964710 VS |
32044 | /* Override any GCC internal prototype to avoid an error. |
32045 | Use char because int might match the return type of a GCC | |
32046 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
32047 | #ifdef __cplusplus |
32048 | extern "C" | |
a848cd7e | 32049 | #endif |
3dd30495 | 32050 | char sched_yield (); |
a848cd7e SC |
32051 | int |
32052 | main () | |
32053 | { | |
3dd30495 | 32054 | return sched_yield (); |
a848cd7e SC |
32055 | ; |
32056 | return 0; | |
32057 | } | |
32058 | _ACEOF | |
3dd30495 VZ |
32059 | if ac_fn_c_try_link "$LINENO"; then : |
32060 | ac_cv_lib_posix4_sched_yield=yes | |
a848cd7e | 32061 | else |
3dd30495 | 32062 | ac_cv_lib_posix4_sched_yield=no |
a848cd7e | 32063 | fi |
3dd30495 VZ |
32064 | rm -f core conftest.err conftest.$ac_objext \ |
32065 | conftest$ac_exeext conftest.$ac_ext | |
32066 | LIBS=$ac_check_lib_save_LIBS | |
a848cd7e | 32067 | fi |
3dd30495 VZ |
32068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5 |
32069 | $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; } | |
eff9d7f5 | 32070 | if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then : |
3dd30495 VZ |
32071 | $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h |
32072 | POSIX4_LINK=" -lposix4" | |
a848cd7e | 32073 | else |
3dd30495 VZ |
32074 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxThread::Yield will not work properly" >&5 |
32075 | $as_echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
32076 | ||
a848cd7e SC |
32077 | fi |
32078 | ||
32079 | ||
e55a667c | 32080 | |
3dd30495 | 32081 | fi |
e55a667c | 32082 | |
3dd30495 | 32083 | fi |
e55a667c | 32084 | |
3dd30495 VZ |
32085 | HAVE_PRIOR_FUNCS=0 |
32086 | ac_fn_c_check_func "$LINENO" "pthread_attr_getschedpolicy" "ac_cv_func_pthread_attr_getschedpolicy" | |
eff9d7f5 | 32087 | if test "x$ac_cv_func_pthread_attr_getschedpolicy" = xyes; then : |
3dd30495 | 32088 | ac_fn_c_check_func "$LINENO" "pthread_attr_setschedparam" "ac_cv_func_pthread_attr_setschedparam" |
eff9d7f5 | 32089 | if test "x$ac_cv_func_pthread_attr_setschedparam" = xyes; then : |
3dd30495 | 32090 | ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max" |
eff9d7f5 | 32091 | if test "x$ac_cv_func_sched_get_priority_max" = xyes; then : |
3dd30495 VZ |
32092 | HAVE_PRIOR_FUNCS=1 |
32093 | else | |
32094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_get_priority_max in -lposix4" >&5 | |
32095 | $as_echo_n "checking for sched_get_priority_max in -lposix4... " >&6; } | |
eff9d7f5 | 32096 | if ${ac_cv_lib_posix4_sched_get_priority_max+:} false; then : |
3dd30495 VZ |
32097 | $as_echo_n "(cached) " >&6 |
32098 | else | |
32099 | ac_check_lib_save_LIBS=$LIBS | |
32100 | LIBS="-lposix4 $LIBS" | |
32101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
32102 | /* end confdefs.h. */ | |
e55a667c | 32103 | |
47964710 VS |
32104 | /* Override any GCC internal prototype to avoid an error. |
32105 | Use char because int might match the return type of a GCC | |
32106 | builtin and then its argument prototype would still apply. */ | |
e55a667c VZ |
32107 | #ifdef __cplusplus |
32108 | extern "C" | |
32109 | #endif | |
3dd30495 | 32110 | char sched_get_priority_max (); |
e55a667c VZ |
32111 | int |
32112 | main () | |
32113 | { | |
3dd30495 | 32114 | return sched_get_priority_max (); |
e55a667c VZ |
32115 | ; |
32116 | return 0; | |
32117 | } | |
32118 | _ACEOF | |
3dd30495 VZ |
32119 | if ac_fn_c_try_link "$LINENO"; then : |
32120 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
e55a667c | 32121 | else |
3dd30495 VZ |
32122 | ac_cv_lib_posix4_sched_get_priority_max=no |
32123 | fi | |
32124 | rm -f core conftest.err conftest.$ac_objext \ | |
32125 | conftest$ac_exeext conftest.$ac_ext | |
32126 | LIBS=$ac_check_lib_save_LIBS | |
32127 | fi | |
32128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
32129 | $as_echo "$ac_cv_lib_posix4_sched_get_priority_max" >&6; } | |
eff9d7f5 | 32130 | if test "x$ac_cv_lib_posix4_sched_get_priority_max" = xyes; then : |
3dd30495 VZ |
32131 | |
32132 | HAVE_PRIOR_FUNCS=1 | |
32133 | POSIX4_LINK=" -lposix4" | |
e55a667c | 32134 | |
e55a667c | 32135 | fi |
47964710 | 32136 | |
3dd30495 | 32137 | |
e55a667c | 32138 | fi |
e55a667c | 32139 | |
3dd30495 | 32140 | |
e55a667c VZ |
32141 | fi |
32142 | ||
32143 | ||
3dd30495 | 32144 | fi |
abc736fd | 32145 | |
abc736fd | 32146 | |
3dd30495 VZ |
32147 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
32148 | $as_echo "#define HAVE_THREAD_PRIORITY_FUNCTIONS 1" >>confdefs.h | |
abc736fd | 32149 | |
3dd30495 VZ |
32150 | else |
32151 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Setting thread priority will not work" >&5 | |
32152 | $as_echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
32153 | fi | |
abc736fd | 32154 | |
3dd30495 | 32155 | ac_fn_c_check_func "$LINENO" "pthread_cancel" "ac_cv_func_pthread_cancel" |
eff9d7f5 | 32156 | if test "x$ac_cv_func_pthread_cancel" = xyes; then : |
3dd30495 | 32157 | $as_echo "#define HAVE_PTHREAD_CANCEL 1" >>confdefs.h |
abc736fd | 32158 | |
abc736fd | 32159 | else |
3dd30495 VZ |
32160 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxThread::Kill() will not work properly" >&5 |
32161 | $as_echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
abc736fd | 32162 | fi |
47964710 | 32163 | |
3dd30495 VZ |
32164 | |
32165 | ac_fn_c_check_func "$LINENO" "pthread_mutex_timedlock" "ac_cv_func_pthread_mutex_timedlock" | |
eff9d7f5 | 32166 | if test "x$ac_cv_func_pthread_mutex_timedlock" = xyes; then : |
3dd30495 VZ |
32167 | $as_echo "#define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1" >>confdefs.h |
32168 | ||
32169 | else | |
32170 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxMutex::LockTimeout() will not work" >&5 | |
32171 | $as_echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;} | |
abc736fd | 32172 | fi |
3dd30495 VZ |
32173 | |
32174 | ||
32175 | ac_fn_c_check_func "$LINENO" "pthread_attr_setstacksize" "ac_cv_func_pthread_attr_setstacksize" | |
eff9d7f5 | 32176 | if test "x$ac_cv_func_pthread_attr_setstacksize" = xyes; then : |
3dd30495 | 32177 | $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h |
abc736fd MW |
32178 | |
32179 | fi | |
32180 | ||
a848cd7e SC |
32181 | |
32182 | ||
3dd30495 VZ |
32183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_t" >&5 |
32184 | $as_echo_n "checking for pthread_mutexattr_t... " >&6; } | |
eff9d7f5 | 32185 | if ${wx_cv_type_pthread_mutexattr_t+:} false; then : |
3dd30495 | 32186 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
32187 | else |
32188 | ||
3dd30495 | 32189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
32190 | /* end confdefs.h. */ |
32191 | #include <pthread.h> | |
32192 | int | |
32193 | main () | |
32194 | { | |
32195 | ||
32196 | pthread_mutexattr_t attr; | |
32197 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32198 | ||
32199 | ; | |
32200 | return 0; | |
32201 | } | |
32202 | _ACEOF | |
3dd30495 | 32203 | if ac_fn_c_try_compile "$LINENO"; then : |
123dca7d | 32204 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e | 32205 | else |
3dd30495 | 32206 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
32207 | |
32208 | fi | |
47964710 | 32209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32210 | |
32211 | fi | |
3dd30495 VZ |
32212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_pthread_mutexattr_t" >&5 |
32213 | $as_echo "$wx_cv_type_pthread_mutexattr_t" >&6; } | |
a848cd7e SC |
32214 | |
32215 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
3dd30495 | 32216 | $as_echo "#define HAVE_PTHREAD_MUTEXATTR_T 1" >>confdefs.h |
a848cd7e | 32217 | |
123dca7d | 32218 | |
3dd30495 VZ |
32219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutexattr_settype declaration" >&5 |
32220 | $as_echo_n "checking for pthread_mutexattr_settype declaration... " >&6; } | |
eff9d7f5 | 32221 | if ${wx_cv_func_pthread_mutexattr_settype_decl+:} false; then : |
3dd30495 | 32222 | $as_echo_n "(cached) " >&6 |
123dca7d VZ |
32223 | else |
32224 | ||
3dd30495 | 32225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
123dca7d VZ |
32226 | /* end confdefs.h. */ |
32227 | #include <pthread.h> | |
32228 | int | |
32229 | main () | |
32230 | { | |
32231 | ||
32232 | pthread_mutexattr_t attr; | |
32233 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
32234 | ||
32235 | ; | |
32236 | return 0; | |
32237 | } | |
32238 | _ACEOF | |
3dd30495 | 32239 | if ac_fn_c_try_compile "$LINENO"; then : |
123dca7d VZ |
32240 | wx_cv_func_pthread_mutexattr_settype_decl=yes |
32241 | else | |
3dd30495 | 32242 | wx_cv_func_pthread_mutexattr_settype_decl=no |
123dca7d VZ |
32243 | |
32244 | fi | |
47964710 | 32245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
123dca7d VZ |
32246 | |
32247 | fi | |
3dd30495 VZ |
32248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 |
32249 | $as_echo "$wx_cv_func_pthread_mutexattr_settype_decl" >&6; } | |
123dca7d | 32250 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then |
3dd30495 | 32251 | $as_echo "#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1" >>confdefs.h |
123dca7d VZ |
32252 | |
32253 | fi | |
a848cd7e | 32254 | else |
3dd30495 VZ |
32255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
32256 | $as_echo_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... " >&6; } | |
eff9d7f5 | 32257 | if ${wx_cv_type_pthread_rec_mutex_init+:} false; then : |
3dd30495 | 32258 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
32259 | else |
32260 | ||
3dd30495 | 32261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
32262 | /* end confdefs.h. */ |
32263 | #include <pthread.h> | |
32264 | int | |
32265 | main () | |
32266 | { | |
32267 | ||
32268 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
32269 | ||
32270 | ; | |
32271 | return 0; | |
32272 | } | |
32273 | _ACEOF | |
3dd30495 | 32274 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
32275 | |
32276 | wx_cv_type_pthread_rec_mutex_init=yes | |
32277 | ||
32278 | else | |
a848cd7e SC |
32279 | |
32280 | wx_cv_type_pthread_rec_mutex_init=no | |
32281 | ||
32282 | ||
32283 | fi | |
47964710 | 32284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32285 | |
32286 | fi | |
3dd30495 VZ |
32287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_pthread_rec_mutex_init" >&5 |
32288 | $as_echo "$wx_cv_type_pthread_rec_mutex_init" >&6; } | |
a848cd7e | 32289 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
3dd30495 | 32290 | $as_echo "#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1" >>confdefs.h |
a848cd7e SC |
32291 | |
32292 | else | |
3dd30495 VZ |
32293 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxMutex won't be recursive on this platform" >&5 |
32294 | $as_echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
a848cd7e | 32295 | fi |
64a044d5 VZ |
32296 | fi |
32297 | ||
7beff712 VZ |
32298 | if test "$wxUSE_COMPILER_TLS" = "auto"; then |
32299 | if test "$USE_NETBSD" = 1; then | |
3dd30495 VZ |
32300 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&5 |
32301 | $as_echo "$as_me: WARNING: Disabling TLS under NetBSD, please contact wx-dev if it works now" >&2;} | |
7beff712 VZ |
32302 | wxUSE_COMPILER_TLS=no |
32303 | else | |
32304 | wxUSE_COMPILER_TLS=yes | |
32305 | fi | |
32306 | fi | |
32307 | ||
32308 | if test "$wxUSE_COMPILER_TLS" = "yes"; then | |
3dd30495 VZ |
32309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread keyword" >&5 |
32310 | $as_echo_n "checking for __thread keyword... " >&6; } | |
eff9d7f5 | 32311 | if ${wx_cv_cc___thread+:} false; then : |
3dd30495 | 32312 | $as_echo_n "(cached) " >&6 |
d3dcef01 VZ |
32313 | else |
32314 | ||
3dd30495 | 32315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d3dcef01 VZ |
32316 | /* end confdefs.h. */ |
32317 | #include <pthread.h> | |
32318 | int | |
32319 | main () | |
32320 | { | |
32321 | ||
7beff712 VZ |
32322 | static __thread int n = 0; |
32323 | static __thread int *p = 0; | |
d3dcef01 VZ |
32324 | |
32325 | ; | |
32326 | return 0; | |
32327 | } | |
32328 | _ACEOF | |
3dd30495 | 32329 | if ac_fn_c_try_compile "$LINENO"; then : |
d3dcef01 VZ |
32330 | wx_cv_cc___thread=yes |
32331 | else | |
3dd30495 | 32332 | wx_cv_cc___thread=no |
d3dcef01 VZ |
32333 | |
32334 | fi | |
d3dcef01 VZ |
32335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
32336 | ||
32337 | ||
32338 | fi | |
3dd30495 VZ |
32339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_cc___thread" >&5 |
32340 | $as_echo "$wx_cv_cc___thread" >&6; } | |
d3dcef01 | 32341 | |
7beff712 | 32342 | if test "$wx_cv_cc___thread" = "yes"; then |
eb6a8d69 VZ |
32343 | |
32344 | GXX_VERSION="" | |
32345 | ||
32346 | ||
32347 | ||
3dd30495 VZ |
32348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -dumpversion option" >&5 |
32349 | $as_echo_n "checking if gcc accepts -dumpversion option... " >&6; } | |
eb6a8d69 | 32350 | |
3dd30495 | 32351 | if test "x$GCC" = "xyes" ; then : |
eb6a8d69 | 32352 | |
3dd30495 | 32353 | if test -z "" ; then : |
eb6a8d69 VZ |
32354 | |
32355 | ax_gcc_option_test="int main() | |
32356 | { | |
32357 | return 0; | |
32358 | }" | |
32359 | ||
32360 | else | |
32361 | ||
32362 | ax_gcc_option_test="" | |
32363 | ||
32364 | fi | |
32365 | ||
eb6a8d69 VZ |
32366 | # Dump the test program to file |
32367 | cat <<EOF > conftest.c | |
32368 | $ax_gcc_option_test | |
32369 | EOF | |
32370 | ||
32371 | # Dump back the file to the log, useful for debugging purposes | |
32372 | { ac_try='cat conftest.c 1>&5' | |
3dd30495 | 32373 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
eb6a8d69 VZ |
32374 | (eval $ac_try) 2>&5 |
32375 | ac_status=$? | |
3dd30495 VZ |
32376 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
32377 | test $ac_status = 0; }; } | |
eb6a8d69 VZ |
32378 | |
32379 | if { ac_try='$CC -dumpversion -c conftest.c 1>&5' | |
3dd30495 | 32380 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 |
eb6a8d69 VZ |
32381 | (eval $ac_try) 2>&5 |
32382 | ac_status=$? | |
3dd30495 VZ |
32383 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
32384 | test $ac_status = 0; }; } ; then : | |
eb6a8d69 | 32385 | |
b33e9f40 | 32386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
3dd30495 | 32387 | $as_echo "yes" >&6; } |
eb6a8d69 VZ |
32388 | |
32389 | ax_gcc_version_option=yes | |
32390 | ||
32391 | ||
32392 | else | |
32393 | ||
b33e9f40 | 32394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3dd30495 | 32395 | $as_echo "no" >&6; } |
eb6a8d69 VZ |
32396 | |
32397 | ax_gcc_version_option=no | |
32398 | ||
32399 | ||
32400 | fi | |
32401 | ||
eb6a8d69 VZ |
32402 | else |
32403 | ||
3dd30495 VZ |
32404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gcc available" >&5 |
32405 | $as_echo "no gcc available" >&6; } | |
eb6a8d69 VZ |
32406 | |
32407 | fi | |
32408 | ||
3dd30495 | 32409 | if test "x$GXX" = "xyes"; then : |
eb6a8d69 | 32410 | |
3dd30495 | 32411 | if test "x$ax_gxx_version_option" != "no"; then : |
eb6a8d69 | 32412 | |
3dd30495 VZ |
32413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking gxx version" >&5 |
32414 | $as_echo_n "checking gxx version... " >&6; } | |
eff9d7f5 | 32415 | if ${ax_cv_gxx_version+:} false; then : |
3dd30495 | 32416 | $as_echo_n "(cached) " >&6 |
eb6a8d69 VZ |
32417 | else |
32418 | ||
32419 | ax_cv_gxx_version="`$CXX -dumpversion`" | |
3dd30495 | 32420 | if test "x$ax_cv_gxx_version" = "x"; then : |
eb6a8d69 VZ |
32421 | |
32422 | ax_cv_gxx_version="" | |
32423 | ||
32424 | fi | |
32425 | ||
eb6a8d69 | 32426 | fi |
3dd30495 VZ |
32427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gxx_version" >&5 |
32428 | $as_echo "$ax_cv_gxx_version" >&6; } | |
eb6a8d69 VZ |
32429 | GXX_VERSION=$ax_cv_gxx_version |
32430 | ||
32431 | fi | |
32432 | ||
eb6a8d69 VZ |
32433 | fi |
32434 | ||
32435 | ||
7beff712 | 32436 | if test -n "$ax_cv_gxx_version"; then |
3dd30495 VZ |
32437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __thread support in g++ is usable" >&5 |
32438 | $as_echo_n "checking whether __thread support in g++ is usable... " >&6; } | |
7beff712 VZ |
32439 | case "$ax_cv_gxx_version" in |
32440 | 1.* | 2.* | 3.* ) | |
3dd30495 VZ |
32441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, it's broken" >&5 |
32442 | $as_echo "no, it's broken" >&6; } | |
7beff712 VZ |
32443 | wx_cv_cc___thread=no |
32444 | ;; | |
32445 | *) | |
3dd30495 VZ |
32446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, it works" >&5 |
32447 | $as_echo "yes, it works" >&6; } | |
7beff712 VZ |
32448 | ;; |
32449 | esac | |
32450 | fi | |
d3dcef01 | 32451 | fi |
64a044d5 | 32452 | |
7beff712 | 32453 | if test "$wx_cv_cc___thread" = "yes"; then |
3dd30495 | 32454 | $as_echo "#define HAVE___THREAD_KEYWORD 1" >>confdefs.h |
64a044d5 | 32455 | |
7beff712 VZ |
32456 | fi |
32457 | fi | |
89b3361e VZ |
32458 | |
32459 | if test "$ac_cv_header_cxxabi_h" = "yes"; then | |
32460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for abi::__forced_unwind() in <cxxabi.h>" >&5 | |
32461 | $as_echo_n "checking for abi::__forced_unwind() in <cxxabi.h>... " >&6; } | |
32462 | if ${wx_cv_type_abi_forced_unwind+:} false; then : | |
32463 | $as_echo_n "(cached) " >&6 | |
32464 | else | |
32465 | ||
32466 | ac_ext=cpp | |
32467 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32468 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32469 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32470 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32471 | ||
32472 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
32473 | /* end confdefs.h. */ | |
32474 | #include <cxxabi.h> | |
32475 | int | |
32476 | main () | |
32477 | { | |
32478 | ||
32479 | void foo(abi::__forced_unwind&); | |
32480 | ||
32481 | ; | |
32482 | return 0; | |
32483 | } | |
32484 | _ACEOF | |
32485 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
32486 | wx_cv_type_abi_forced_unwind=yes | |
32487 | else | |
32488 | wx_cv_type_abi_forced_unwind=no | |
32489 | ||
32490 | fi | |
32491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
32492 | ac_ext=c | |
32493 | ac_cpp='$CPP $CPPFLAGS' | |
32494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32497 | ||
32498 | ||
32499 | ||
32500 | fi | |
32501 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_abi_forced_unwind" >&5 | |
32502 | $as_echo "$wx_cv_type_abi_forced_unwind" >&6; } | |
32503 | else | |
32504 | wx_cv_type_abi_forced_unwind=no | |
32505 | fi | |
32506 | ||
32507 | if test "$wx_cv_type_abi_forced_unwind" = "yes"; then | |
32508 | $as_echo "#define HAVE_ABI_FORCEDUNWIND 1" >>confdefs.h | |
32509 | ||
32510 | fi | |
a848cd7e SC |
32511 | fi |
32512 | ||
32513 | else | |
32514 | if test "$wxUSE_THREADS" = "yes" ; then | |
32515 | case "${host}" in | |
64a044d5 | 32516 | x86_64-*-mingw32* ) |
f380544a | 32517 | ;; |
a848cd7e | 32518 | *-*-mingw32* ) |
3dd30495 VZ |
32519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -mthreads" >&5 |
32520 | $as_echo_n "checking if compiler supports -mthreads... " >&6; } | |
eff9d7f5 | 32521 | if ${wx_cv_cflags_mthread+:} false; then : |
3dd30495 | 32522 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
32523 | else |
32524 | ||
9b8888f9 VZ |
32525 | CFLAGS_OLD="$CFLAGS" |
32526 | CFLAGS="-mthreads $CFLAGS" | |
3dd30495 | 32527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
32528 | /* end confdefs.h. */ |
32529 | ||
32530 | int | |
32531 | main () | |
32532 | { | |
32533 | ||
32534 | ; | |
32535 | return 0; | |
32536 | } | |
32537 | _ACEOF | |
3dd30495 | 32538 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e SC |
32539 | wx_cv_cflags_mthread=yes |
32540 | else | |
3dd30495 | 32541 | wx_cv_cflags_mthread=no |
a848cd7e SC |
32542 | |
32543 | fi | |
47964710 | 32544 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32545 | |
32546 | ||
32547 | fi | |
3dd30495 VZ |
32548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_cflags_mthread" >&5 |
32549 | $as_echo "$wx_cv_cflags_mthread" >&6; } | |
a848cd7e SC |
32550 | |
32551 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
9b8888f9 | 32552 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads" |
a848cd7e SC |
32553 | LDFLAGS="$LDFLAGS -mthreads" |
32554 | else | |
9b8888f9 | 32555 | CFLAGS="$CFLAGS_OLD" |
a848cd7e SC |
32556 | fi |
32557 | ;; | |
32558 | *-pc-os2*emx ) | |
5ff751d6 | 32559 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
a848cd7e SC |
32560 | LDFLAGS="$LDFLAGS -Zmt" |
32561 | ;; | |
32562 | esac | |
32563 | fi | |
32564 | fi | |
32565 | ||
3dd30495 | 32566 | ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" |
eff9d7f5 | 32567 | if test "x$ac_cv_func_localtime_r" = xyes; then : |
3dd30495 | 32568 | $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h |
004ee6da | 32569 | |
004ee6da | 32570 | fi |
47964710 | 32571 | |
3dd30495 | 32572 | ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" |
eff9d7f5 | 32573 | if test "x$ac_cv_func_gmtime_r" = xyes; then : |
3dd30495 | 32574 | $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h |
004ee6da RL |
32575 | |
32576 | fi | |
32577 | ||
004ee6da | 32578 | |
004ee6da RL |
32579 | |
32580 | ||
32581 | ac_ext=c | |
32582 | ac_cpp='$CPP $CPPFLAGS' | |
32583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32586 | ||
3dd30495 VZ |
32587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5 |
32588 | $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; } | |
004ee6da | 32589 | |
eff9d7f5 | 32590 | if ${ac_cv_func_which_gethostbyname_r+:} false; then : |
3dd30495 | 32591 | $as_echo_n "(cached) " >&6 |
004ee6da RL |
32592 | else |
32593 | ||
32594 | ||
43a7c679 | 32595 | ################################################################ |
004ee6da RL |
32596 | |
32597 | ac_cv_func_which_gethostbyname_r=unknown | |
32598 | ||
32599 | # | |
32600 | # ONE ARGUMENT (sanity check) | |
32601 | # | |
32602 | ||
32603 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
32604 | # a single argument. If it actually compiles, then we can assume that | |
32605 | # netdb.h is not declaring the function, and the compiler is thereby | |
32606 | # assuming an implicit prototype. In which case, we're out of luck. | |
32607 | # | |
3dd30495 | 32608 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
004ee6da RL |
32609 | /* end confdefs.h. */ |
32610 | #include <netdb.h> | |
32611 | int | |
32612 | main () | |
32613 | { | |
32614 | ||
ea8dd857 VZ |
32615 | char *name = "www.gnu.org"; |
32616 | (void)gethostbyname_r(name) /* ; */ | |
32617 | ||
004ee6da RL |
32618 | |
32619 | ; | |
32620 | return 0; | |
32621 | } | |
32622 | _ACEOF | |
3dd30495 | 32623 | if ac_fn_c_try_compile "$LINENO"; then : |
004ee6da | 32624 | ac_cv_func_which_gethostbyname_r=no |
ea8dd857 | 32625 | |
004ee6da | 32626 | fi |
47964710 | 32627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
004ee6da RL |
32628 | |
32629 | # | |
32630 | # SIX ARGUMENTS | |
32631 | # (e.g. Linux) | |
32632 | # | |
32633 | ||
32634 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
32635 | ||
3dd30495 | 32636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
004ee6da RL |
32637 | /* end confdefs.h. */ |
32638 | #include <netdb.h> | |
32639 | int | |
32640 | main () | |
32641 | { | |
32642 | ||
ea8dd857 VZ |
32643 | char *name = "www.gnu.org"; |
32644 | struct hostent ret, *retp; | |
32645 | char buf[1024]; | |
32646 | int buflen = 1024; | |
32647 | int my_h_errno; | |
32648 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
32649 | ||
004ee6da RL |
32650 | |
32651 | ; | |
32652 | return 0; | |
32653 | } | |
32654 | _ACEOF | |
3dd30495 | 32655 | if ac_fn_c_try_compile "$LINENO"; then : |
004ee6da | 32656 | ac_cv_func_which_gethostbyname_r=six |
ea8dd857 | 32657 | |
004ee6da | 32658 | fi |
47964710 | 32659 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
004ee6da RL |
32660 | |
32661 | fi | |
32662 | ||
32663 | # | |
32664 | # FIVE ARGUMENTS | |
32665 | # (e.g. Solaris) | |
32666 | # | |
32667 | ||
32668 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
32669 | ||
3dd30495 | 32670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
004ee6da RL |
32671 | /* end confdefs.h. */ |
32672 | #include <netdb.h> | |
32673 | int | |
32674 | main () | |
32675 | { | |
32676 | ||
ea8dd857 VZ |
32677 | char *name = "www.gnu.org"; |
32678 | struct hostent ret; | |
32679 | char buf[1024]; | |
32680 | int buflen = 1024; | |
32681 | int my_h_errno; | |
32682 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
32683 | ||
004ee6da RL |
32684 | |
32685 | ; | |
32686 | return 0; | |
32687 | } | |
32688 | _ACEOF | |
3dd30495 | 32689 | if ac_fn_c_try_compile "$LINENO"; then : |
004ee6da | 32690 | ac_cv_func_which_gethostbyname_r=five |
ea8dd857 | 32691 | |
004ee6da | 32692 | fi |
47964710 | 32693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
004ee6da RL |
32694 | |
32695 | fi | |
32696 | ||
32697 | # | |
32698 | # THREE ARGUMENTS | |
32699 | # (e.g. AIX, HP-UX, Tru64) | |
32700 | # | |
32701 | ||
32702 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
32703 | ||
3dd30495 | 32704 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
004ee6da RL |
32705 | /* end confdefs.h. */ |
32706 | #include <netdb.h> | |
32707 | int | |
32708 | main () | |
32709 | { | |
32710 | ||
ea8dd857 VZ |
32711 | char *name = "www.gnu.org"; |
32712 | struct hostent ret; | |
32713 | struct hostent_data data; | |
32714 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
32715 | ||
004ee6da RL |
32716 | |
32717 | ; | |
32718 | return 0; | |
32719 | } | |
32720 | _ACEOF | |
3dd30495 | 32721 | if ac_fn_c_try_compile "$LINENO"; then : |
004ee6da | 32722 | ac_cv_func_which_gethostbyname_r=three |
ea8dd857 | 32723 | |
004ee6da | 32724 | fi |
47964710 | 32725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
004ee6da RL |
32726 | |
32727 | fi | |
32728 | ||
43a7c679 | 32729 | ################################################################ |
004ee6da RL |
32730 | |
32731 | ||
32732 | fi | |
32733 | ||
32734 | case "$ac_cv_func_which_gethostbyname_r" in | |
32735 | three) | |
3dd30495 VZ |
32736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5 |
32737 | $as_echo "three" >&6; } | |
32738 | $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h | |
004ee6da RL |
32739 | |
32740 | ;; | |
32741 | ||
32742 | five) | |
3dd30495 VZ |
32743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5 |
32744 | $as_echo "five" >&6; } | |
32745 | $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h | |
004ee6da RL |
32746 | |
32747 | ;; | |
32748 | ||
32749 | six) | |
3dd30495 VZ |
32750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5 |
32751 | $as_echo "six" >&6; } | |
32752 | $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h | |
004ee6da RL |
32753 | |
32754 | ;; | |
32755 | ||
32756 | no) | |
3dd30495 VZ |
32757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5 |
32758 | $as_echo "cannot find function declaration in netdb.h" >&6; } | |
004ee6da RL |
32759 | ;; |
32760 | ||
32761 | unknown) | |
3dd30495 VZ |
32762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5 |
32763 | $as_echo "can't tell" >&6; } | |
004ee6da RL |
32764 | ;; |
32765 | ||
32766 | *) | |
3dd30495 | 32767 | as_fn_error $? "internal error" "$LINENO" 5 |
004ee6da RL |
32768 | ;; |
32769 | esac | |
32770 | ||
fd5199d6 VZ |
32771 | ac_ext=c |
32772 | ac_cpp='$CPP $CPPFLAGS' | |
32773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
004ee6da RL |
32776 | |
32777 | ||
32778 | ||
32779 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
ec3edcc9 | 32780 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then |
3dd30495 | 32781 | ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" |
eff9d7f5 | 32782 | if test "x$ac_cv_func_gethostbyname" = xyes; then : |
3dd30495 | 32783 | $as_echo "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h |
004ee6da RL |
32784 | |
32785 | fi | |
32786 | ||
32787 | fi | |
111d9948 | 32788 | |
3dd30495 VZ |
32789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments getservbyname_r() takes" >&5 |
32790 | $as_echo_n "checking how many arguments getservbyname_r() takes... " >&6; } | |
eff9d7f5 | 32791 | if ${ac_cv_func_which_getservbyname_r+:} false; then : |
3dd30495 | 32792 | $as_echo_n "(cached) " >&6 |
4fc1c0f0 | 32793 | else |
4fc1c0f0 | 32794 | |
47964710 | 32795 | ac_ext=cpp |
43a7c679 VZ |
32796 | ac_cpp='$CXXCPP $CPPFLAGS' |
32797 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32798 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32799 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4fc1c0f0 | 32800 | |
fd5199d6 | 32801 | |
3dd30495 | 32802 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
004ee6da | 32803 | /* end confdefs.h. */ |
43a7c679 | 32804 | #include <netdb.h> |
004ee6da RL |
32805 | int |
32806 | main () | |
32807 | { | |
32808 | ||
43a7c679 VZ |
32809 | char *name; |
32810 | char *proto; | |
32811 | struct servent *se, *res; | |
32812 | char buffer[2048]; | |
32813 | int buflen = 2048; | |
32814 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res) | |
004ee6da RL |
32815 | |
32816 | ; | |
32817 | return 0; | |
32818 | } | |
32819 | _ACEOF | |
3dd30495 | 32820 | if ac_fn_cxx_try_compile "$LINENO"; then : |
43a7c679 | 32821 | ac_cv_func_which_getservbyname_r=six |
004ee6da | 32822 | else |
004ee6da | 32823 | |
3dd30495 | 32824 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
004ee6da | 32825 | /* end confdefs.h. */ |
43a7c679 | 32826 | #include <netdb.h> |
004ee6da RL |
32827 | int |
32828 | main () | |
32829 | { | |
32830 | ||
43a7c679 VZ |
32831 | char *name; |
32832 | char *proto; | |
32833 | struct servent *se; | |
32834 | char buffer[2048]; | |
32835 | int buflen = 2048; | |
32836 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
32837 | |
32838 | ; | |
32839 | return 0; | |
32840 | } | |
32841 | _ACEOF | |
3dd30495 | 32842 | if ac_fn_cxx_try_compile "$LINENO"; then : |
43a7c679 | 32843 | ac_cv_func_which_getservbyname_r=five |
004ee6da | 32844 | else |
004ee6da | 32845 | |
3dd30495 | 32846 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
004ee6da | 32847 | /* end confdefs.h. */ |
43a7c679 | 32848 | #include <netdb.h> |
004ee6da RL |
32849 | int |
32850 | main () | |
32851 | { | |
32852 | ||
43a7c679 VZ |
32853 | char *name; |
32854 | char *proto; | |
32855 | struct servent *se; | |
32856 | struct servent_data data; | |
32857 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
32858 | |
32859 | ; | |
32860 | return 0; | |
32861 | } | |
32862 | _ACEOF | |
3dd30495 | 32863 | if ac_fn_cxx_try_compile "$LINENO"; then : |
43a7c679 | 32864 | ac_cv_func_which_getservbyname_r=four |
004ee6da | 32865 | else |
3dd30495 | 32866 | ac_cv_func_which_getservbyname_r=no |
43a7c679 | 32867 | |
faa5c14f | 32868 | fi |
47964710 | 32869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
111d9948 VS |
32870 | |
32871 | ||
004ee6da | 32872 | fi |
47964710 | 32873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3ecd9f92 | 32874 | |
3ecd9f92 | 32875 | |
111d9948 | 32876 | fi |
47964710 | 32877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
43a7c679 VZ |
32878 | ac_ext=c |
32879 | ac_cpp='$CPP $CPPFLAGS' | |
32880 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32881 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32882 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32883 | ||
faa5c14f VZ |
32884 | |
32885 | ||
3ecd9f92 | 32886 | fi |
3dd30495 VZ |
32887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_which_getservbyname_r" >&5 |
32888 | $as_echo "$ac_cv_func_which_getservbyname_r" >&6; } | |
004ee6da RL |
32889 | |
32890 | if test $ac_cv_func_which_getservbyname_r = six; then | |
3dd30495 | 32891 | $as_echo "#define HAVE_FUNC_GETSERVBYNAME_R_6 1" >>confdefs.h |
004ee6da RL |
32892 | |
32893 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
3dd30495 | 32894 | $as_echo "#define HAVE_FUNC_GETSERVBYNAME_R_5 1" >>confdefs.h |
004ee6da RL |
32895 | |
32896 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
3dd30495 | 32897 | $as_echo "#define HAVE_FUNC_GETSERVBYNAME_R_4 1" >>confdefs.h |
004ee6da | 32898 | |
004ee6da RL |
32899 | fi |
32900 | ||
32901 | ||
32902 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
ec3edcc9 | 32903 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then |
3dd30495 VZ |
32904 | for ac_func in getservbyname |
32905 | do : | |
32906 | ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname" | |
eff9d7f5 | 32907 | if test "x$ac_cv_func_getservbyname" = xyes; then : |
004ee6da | 32908 | cat >>confdefs.h <<_ACEOF |
004ee6da RL |
32909 | #define HAVE_GETSERVBYNAME 1 |
32910 | _ACEOF | |
3dd30495 | 32911 | $as_echo "#define HAVE_GETSERVBYNAME 1" >>confdefs.h |
004ee6da RL |
32912 | |
32913 | fi | |
32914 | done | |
32915 | ||
32916 | fi | |
32917 | ||
b33e9f40 VZ |
32918 | $as_echo "#define wxUSE_COMPILER_TLS 1" >>confdefs.h |
32919 | ||
32920 | ||
004ee6da | 32921 | if test "$wxUSE_THREADS" = "yes"; then |
3dd30495 | 32922 | $as_echo "#define wxUSE_THREADS 1" >>confdefs.h |
004ee6da RL |
32923 | |
32924 | ||
32925 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
32926 | else | |
56632e81 | 32927 | if test "$wx_cv_func_strtok_r" = "yes"; then |
3dd30495 VZ |
32928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D_REENTRANT is needed" >&5 |
32929 | $as_echo_n "checking if -D_REENTRANT is needed... " >&6; } | |
004ee6da RL |
32930 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
32931 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
3dd30495 VZ |
32932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
32933 | $as_echo "yes" >&6; } | |
004ee6da | 32934 | else |
3dd30495 VZ |
32935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
32936 | $as_echo "no" >&6; } | |
004ee6da RL |
32937 | fi |
32938 | fi | |
32939 | fi | |
32940 | ||
9dc44eff PC |
32941 | if test "$WXGTK3" = 1 ; then |
32942 | cat >>confdefs.h <<_ACEOF | |
32943 | #define __WXGTK3__ 1 | |
32944 | _ACEOF | |
32945 | ||
32946 | WXGTK2=1 | |
32947 | fi | |
88262190 | 32948 | if test "$WXGTK2" = 1 ; then |
004ee6da | 32949 | cat >>confdefs.h <<_ACEOF |
88262190 | 32950 | #define __WXGTK20__ $WXGTK2 |
004ee6da RL |
32951 | _ACEOF |
32952 | ||
32953 | fi | |
32954 | ||
32955 | if test "$WXGTK127" = 1 ; then | |
32956 | cat >>confdefs.h <<_ACEOF | |
32957 | #define __WXGTK127__ $WXGTK127 | |
32958 | _ACEOF | |
32959 | ||
32960 | fi | |
32961 | ||
32962 | if test "$WXGPE" = 1 ; then | |
32963 | cat >>confdefs.h <<_ACEOF | |
32964 | #define __WXGPE__ $WXGPE | |
32965 | _ACEOF | |
32966 | ||
32967 | fi | |
32968 | ||
32969 | DEBUG_CFLAGS= | |
6ad6ba21 | 32970 | if `echo $CXXFLAGS $CFLAGS | grep " -g" >/dev/null`; then |
3dd30495 VZ |
32971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&5 |
32972 | $as_echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -g flag; ignoring the --enable-debug_info option" >&2;} | |
6ad6ba21 | 32973 | elif test "$wxUSE_DEBUG_INFO" = "yes" ; then |
004ee6da | 32974 | DEBUG_CFLAGS="-g" |
004ee6da RL |
32975 | fi |
32976 | ||
32977 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
32978 | wxUSE_DEBUG_INFO=yes | |
32979 | if test "$GCC" = yes; then | |
32980 | DEBUG_CFLAGS="-ggdb" | |
32981 | fi | |
32982 | fi | |
32983 | ||
89b1afb4 | 32984 | if test "$wxUSE_DEBUG_FLAG" = "no" ; then |
f5d5adf8 VZ |
32985 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0" |
32986 | ||
004ee6da | 32987 | if test "$wxUSE_GTK" = 1 ; then |
9dc44eff | 32988 | if test "$WXGTK2" = 1 ; then |
fb6e5bff | 32989 | CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS" |
9dc44eff PC |
32990 | else |
32991 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
99879bbf | 32992 | fi |
004ee6da RL |
32993 | fi |
32994 | fi | |
32995 | ||
32996 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
3dd30495 | 32997 | $as_echo "#define wxUSE_MEMORY_TRACING 1" >>confdefs.h |
004ee6da | 32998 | |
3dd30495 | 32999 | $as_echo "#define wxUSE_GLOBAL_MEMORY_OPERATORS 1" >>confdefs.h |
004ee6da | 33000 | |
3dd30495 | 33001 | $as_echo "#define wxUSE_DEBUG_NEW_ALWAYS 1" >>confdefs.h |
004ee6da RL |
33002 | |
33003 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
33004 | fi | |
33005 | ||
33006 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
33007 | DMALLOC_LIBS="-ldmallocthcxx" | |
33008 | fi | |
33009 | ||
33010 | PROFILE_FLAGS= | |
33011 | if test "$wxUSE_PROFILE" = "yes" ; then | |
33012 | PROFILE_FLAGS=" -pg" | |
33013 | fi | |
33014 | ||
33015 | if test "$GCC" = "yes" ; then | |
33016 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
3017880e | 33017 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -DwxNO_RTTI -fno-rtti" |
004ee6da RL |
33018 | fi |
33019 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
33020 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
33021 | fi | |
33022 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
33023 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
33024 | fi | |
33025 | ||
33026 | case "${host}" in | |
33027 | powerpc*-*-aix* ) | |
33028 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
33029 | ;; | |
33030 | *-hppa* ) | |
33031 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
33032 | ;; | |
33033 | esac | |
33034 | fi | |
33035 | ||
33036 | OPTIMISE_CFLAGS= | |
6ad6ba21 | 33037 | if `echo $CXXFLAGS $CFLAGS | grep " -O" >/dev/null`; then |
3dd30495 VZ |
33038 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&5 |
33039 | $as_echo "$as_me: WARNING: CXXFLAGS/CFLAGS already contains -O flag; ignoring the --disable-optimise option" >&2;} | |
004ee6da | 33040 | else |
6ad6ba21 FM |
33041 | if test "$wxUSE_OPTIMISE" = "no" ; then |
33042 | if test "$GCC" = yes ; then | |
33043 | OPTIMISE_CFLAGS="-O0" | |
33044 | fi | |
004ee6da | 33045 | else |
6ad6ba21 FM |
33046 | if test "$GCC" = yes ; then |
33047 | case "${host}" in | |
33048 | *-pc-os2_emx | *-pc-os2-emx ) | |
33049 | OPTIMISE_CFLAGS="-O2" | |
33050 | ;; | |
33051 | *) | |
33052 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
33053 | ;; | |
33054 | esac | |
33055 | else | |
33056 | OPTIMISE_CFLAGS="-O" | |
33057 | fi | |
004ee6da RL |
33058 | fi |
33059 | fi | |
33060 | ||
33061 | ||
abb6edd1 | 33062 | if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then |
3dd30495 | 33063 | $as_echo "#define WXWIN_COMPATIBILITY_2_6 1" >>confdefs.h |
004ee6da | 33064 | |
abb6edd1 VS |
33065 | |
33066 | WXWIN_COMPATIBILITY_2_8="yes" | |
33067 | fi | |
33068 | ||
33069 | if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then | |
3dd30495 | 33070 | $as_echo "#define WXWIN_COMPATIBILITY_2_8 1" >>confdefs.h |
abb6edd1 | 33071 | |
004ee6da RL |
33072 | fi |
33073 | ||
33074 | ||
33075 | if test "$wxUSE_GUI" = "yes"; then | |
3dd30495 | 33076 | $as_echo "#define wxUSE_GUI 1" >>confdefs.h |
004ee6da RL |
33077 | |
33078 | ||
33079 | fi | |
33080 | ||
33081 | ||
33082 | if test "$wxUSE_UNIX" = "yes"; then | |
3dd30495 | 33083 | $as_echo "#define wxUSE_UNIX 1" >>confdefs.h |
004ee6da RL |
33084 | |
33085 | fi | |
33086 | ||
33087 | ||
33088 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
33089 | ||
33090 | HAVE_DL_FUNCS=0 | |
33091 | HAVE_SHL_FUNCS=0 | |
33092 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
3e654768 | 33093 | if test "$USE_DOS" = 1; then |
004ee6da RL |
33094 | HAVE_DL_FUNCS=0 |
33095 | else | |
3dd30495 VZ |
33096 | for ac_func in dlopen |
33097 | do : | |
33098 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
eff9d7f5 | 33099 | if test "x$ac_cv_func_dlopen" = xyes; then : |
54429bb3 | 33100 | cat >>confdefs.h <<_ACEOF |
54429bb3 RD |
33101 | #define HAVE_DLOPEN 1 |
33102 | _ACEOF | |
33103 | ||
3dd30495 VZ |
33104 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
33105 | ||
54429bb3 RD |
33106 | HAVE_DL_FUNCS=1 |
33107 | ||
33108 | else | |
33109 | ||
3dd30495 VZ |
33110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
33111 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
eff9d7f5 | 33112 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
3dd30495 | 33113 | $as_echo_n "(cached) " >&6 |
54429bb3 RD |
33114 | else |
33115 | ac_check_lib_save_LIBS=$LIBS | |
33116 | LIBS="-ldl $LIBS" | |
3dd30495 | 33117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
54429bb3 RD |
33118 | /* end confdefs.h. */ |
33119 | ||
47964710 VS |
33120 | /* Override any GCC internal prototype to avoid an error. |
33121 | Use char because int might match the return type of a GCC | |
33122 | builtin and then its argument prototype would still apply. */ | |
54429bb3 RD |
33123 | #ifdef __cplusplus |
33124 | extern "C" | |
33125 | #endif | |
33126 | char dlopen (); | |
33127 | int | |
33128 | main () | |
33129 | { | |
47964710 | 33130 | return dlopen (); |
54429bb3 RD |
33131 | ; |
33132 | return 0; | |
33133 | } | |
33134 | _ACEOF | |
3dd30495 | 33135 | if ac_fn_c_try_link "$LINENO"; then : |
54429bb3 RD |
33136 | ac_cv_lib_dl_dlopen=yes |
33137 | else | |
3dd30495 | 33138 | ac_cv_lib_dl_dlopen=no |
54429bb3 | 33139 | fi |
3dd30495 VZ |
33140 | rm -f core conftest.err conftest.$ac_objext \ |
33141 | conftest$ac_exeext conftest.$ac_ext | |
54429bb3 RD |
33142 | LIBS=$ac_check_lib_save_LIBS |
33143 | fi | |
3dd30495 VZ |
33144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
33145 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
eff9d7f5 | 33146 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
54429bb3 | 33147 | |
3dd30495 | 33148 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
54429bb3 RD |
33149 | |
33150 | HAVE_DL_FUNCS=1 | |
33151 | DL_LINK=" -ldl$DL_LINK" | |
33152 | ||
33153 | else | |
33154 | ||
3dd30495 VZ |
33155 | for ac_func in shl_load |
33156 | do : | |
33157 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
eff9d7f5 | 33158 | if test "x$ac_cv_func_shl_load" = xyes; then : |
a848cd7e | 33159 | cat >>confdefs.h <<_ACEOF |
a848cd7e SC |
33160 | #define HAVE_SHL_LOAD 1 |
33161 | _ACEOF | |
33162 | ||
3dd30495 VZ |
33163 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
33164 | ||
a848cd7e SC |
33165 | HAVE_SHL_FUNCS=1 |
33166 | ||
33167 | else | |
33168 | ||
3dd30495 VZ |
33169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld in -lshl_load" >&5 |
33170 | $as_echo_n "checking for dld in -lshl_load... " >&6; } | |
eff9d7f5 | 33171 | if ${ac_cv_lib_shl_load_dld+:} false; then : |
3dd30495 | 33172 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
33173 | else |
33174 | ac_check_lib_save_LIBS=$LIBS | |
33175 | LIBS="-lshl_load $LIBS" | |
3dd30495 | 33176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
33177 | /* end confdefs.h. */ |
33178 | ||
47964710 VS |
33179 | /* Override any GCC internal prototype to avoid an error. |
33180 | Use char because int might match the return type of a GCC | |
33181 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
33182 | #ifdef __cplusplus |
33183 | extern "C" | |
33184 | #endif | |
a848cd7e SC |
33185 | char dld (); |
33186 | int | |
33187 | main () | |
33188 | { | |
47964710 | 33189 | return dld (); |
a848cd7e SC |
33190 | ; |
33191 | return 0; | |
33192 | } | |
33193 | _ACEOF | |
3dd30495 | 33194 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
33195 | ac_cv_lib_shl_load_dld=yes |
33196 | else | |
3dd30495 | 33197 | ac_cv_lib_shl_load_dld=no |
a848cd7e | 33198 | fi |
3dd30495 VZ |
33199 | rm -f core conftest.err conftest.$ac_objext \ |
33200 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33201 | LIBS=$ac_check_lib_save_LIBS |
33202 | fi | |
3dd30495 VZ |
33203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_shl_load_dld" >&5 |
33204 | $as_echo "$ac_cv_lib_shl_load_dld" >&6; } | |
eff9d7f5 | 33205 | if test "x$ac_cv_lib_shl_load_dld" = xyes; then : |
a848cd7e SC |
33206 | |
33207 | HAVE_SHL_FUNCS=1 | |
33208 | DL_LINK=" -ldld$DL_LINK" | |
33209 | ||
33210 | fi | |
33211 | ||
33212 | ||
33213 | fi | |
33214 | done | |
33215 | ||
33216 | ||
33217 | fi | |
33218 | ||
33219 | ||
33220 | fi | |
33221 | done | |
33222 | ||
33223 | ||
3e654768 | 33224 | if test "$HAVE_DL_FUNCS" = 1; then |
3dd30495 VZ |
33225 | for ac_func in dlerror |
33226 | do : | |
33227 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
eff9d7f5 | 33228 | if test "x$ac_cv_func_dlerror" = xyes; then : |
a848cd7e | 33229 | cat >>confdefs.h <<_ACEOF |
a848cd7e SC |
33230 | #define HAVE_DLERROR 1 |
33231 | _ACEOF | |
3dd30495 | 33232 | $as_echo "#define HAVE_DLERROR 1" >>confdefs.h |
a848cd7e SC |
33233 | |
33234 | else | |
33235 | ||
3dd30495 VZ |
33236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlerror in -ldl" >&5 |
33237 | $as_echo_n "checking for dlerror in -ldl... " >&6; } | |
eff9d7f5 | 33238 | if ${ac_cv_lib_dl_dlerror+:} false; then : |
3dd30495 | 33239 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
33240 | else |
33241 | ac_check_lib_save_LIBS=$LIBS | |
33242 | LIBS="-ldl $LIBS" | |
3dd30495 | 33243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
33244 | /* end confdefs.h. */ |
33245 | ||
47964710 VS |
33246 | /* Override any GCC internal prototype to avoid an error. |
33247 | Use char because int might match the return type of a GCC | |
33248 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
33249 | #ifdef __cplusplus |
33250 | extern "C" | |
33251 | #endif | |
a848cd7e SC |
33252 | char dlerror (); |
33253 | int | |
33254 | main () | |
33255 | { | |
47964710 | 33256 | return dlerror (); |
a848cd7e SC |
33257 | ; |
33258 | return 0; | |
33259 | } | |
33260 | _ACEOF | |
3dd30495 | 33261 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
33262 | ac_cv_lib_dl_dlerror=yes |
33263 | else | |
3dd30495 | 33264 | ac_cv_lib_dl_dlerror=no |
a848cd7e | 33265 | fi |
3dd30495 VZ |
33266 | rm -f core conftest.err conftest.$ac_objext \ |
33267 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33268 | LIBS=$ac_check_lib_save_LIBS |
33269 | fi | |
3dd30495 VZ |
33270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlerror" >&5 |
33271 | $as_echo "$ac_cv_lib_dl_dlerror" >&6; } | |
eff9d7f5 | 33272 | if test "x$ac_cv_lib_dl_dlerror" = xyes; then : |
3dd30495 | 33273 | $as_echo "#define HAVE_DLERROR 1" >>confdefs.h |
a848cd7e SC |
33274 | |
33275 | fi | |
33276 | ||
33277 | ||
33278 | ||
33279 | fi | |
33280 | done | |
33281 | ||
3e654768 | 33282 | fi |
a848cd7e | 33283 | fi |
3e654768 DE |
33284 | |
33285 | if test "$USE_DARWIN" = 1; then | |
33286 | HAVE_DL_FUNCS=1 | |
a848cd7e SC |
33287 | fi |
33288 | ||
33289 | if test "$HAVE_DL_FUNCS" = 0; then | |
33290 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 33291 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
3dd30495 VZ |
33292 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
33293 | $as_echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
a848cd7e SC |
33294 | wxUSE_DYNAMIC_LOADER=no |
33295 | wxUSE_DYNLIB_CLASS=no | |
33296 | else | |
3dd30495 VZ |
33297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Assuming wxLibrary class works on this platform" >&5 |
33298 | $as_echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
a848cd7e SC |
33299 | fi |
33300 | fi | |
33301 | fi | |
33302 | fi | |
33303 | fi | |
33304 | ||
33305 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
3dd30495 | 33306 | $as_echo "#define wxUSE_DYNAMIC_LOADER 1" >>confdefs.h |
a848cd7e SC |
33307 | |
33308 | fi | |
33309 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
3dd30495 | 33310 | $as_echo "#define wxUSE_DYNLIB_CLASS 1" >>confdefs.h |
a848cd7e SC |
33311 | |
33312 | fi | |
33313 | ||
33314 | ||
33315 | ||
33316 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
33317 | if test "$wxUSE_SHARED" = "no" ; then | |
3dd30495 VZ |
33318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: plugins supported only in shared build, disabling" >&5 |
33319 | $as_echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
a848cd7e SC |
33320 | wxUSE_PLUGINS=no |
33321 | fi | |
33322 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
3dd30495 VZ |
33323 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: plugins not supported monolithic build, disabling" >&5 |
33324 | $as_echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
a848cd7e SC |
33325 | wxUSE_PLUGINS=no |
33326 | fi | |
33327 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
3dd30495 VZ |
33328 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: plugins require wxDynamicLibrary, disabling" >&5 |
33329 | $as_echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
a848cd7e SC |
33330 | wxUSE_PLUGINS=no |
33331 | fi | |
33332 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
3dd30495 | 33333 | $as_echo "#define wxUSE_PLUGINS 1" >>confdefs.h |
a848cd7e SC |
33334 | |
33335 | fi | |
33336 | fi | |
33337 | ||
33338 | ||
6b8ef0b3 | 33339 | if test "$wxUSE_FSWATCHER" = "yes"; then |
96e790a5 VZ |
33340 | if test "$wxUSE_MSW" != "1"; then |
33341 | if test "$wxUSE_UNIX" = "yes"; then | |
3dd30495 VZ |
33342 | for ac_header in sys/inotify.h |
33343 | do : | |
33344 | ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default | |
33345 | " | |
eff9d7f5 | 33346 | if test "x$ac_cv_header_sys_inotify_h" = xyes; then : |
6b8ef0b3 | 33347 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 33348 | #define HAVE_SYS_INOTIFY_H 1 |
6b8ef0b3 VZ |
33349 | _ACEOF |
33350 | ||
33351 | fi | |
33352 | ||
33353 | done | |
33354 | ||
96e790a5 | 33355 | if test "$ac_cv_header_sys_inotify_h" = "yes"; then |
3dd30495 | 33356 | $as_echo "#define wxHAS_INOTIFY 1" >>confdefs.h |
6b8ef0b3 | 33357 | |
96e790a5 | 33358 | else |
3dd30495 VZ |
33359 | for ac_header in sys/event.h |
33360 | do : | |
33361 | ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default | |
33362 | " | |
eff9d7f5 | 33363 | if test "x$ac_cv_header_sys_event_h" = xyes; then : |
6b8ef0b3 | 33364 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 33365 | #define HAVE_SYS_EVENT_H 1 |
6b8ef0b3 VZ |
33366 | _ACEOF |
33367 | ||
33368 | fi | |
33369 | ||
33370 | done | |
33371 | ||
96e790a5 | 33372 | if test "$ac_cv_header_sys_event_h" = "yes"; then |
3dd30495 | 33373 | $as_echo "#define wxHAS_KQUEUE 1" >>confdefs.h |
6b8ef0b3 | 33374 | |
96e790a5 VZ |
33375 | else |
33376 | wxUSE_FSWATCHER=no | |
33377 | fi | |
6b8ef0b3 | 33378 | fi |
96e790a5 VZ |
33379 | else |
33380 | wxUSE_FSWATCHER=no | |
6b8ef0b3 | 33381 | fi |
dac2ee8d VZ |
33382 | else |
33383 | if test "$wxUSE_THREADS" != "yes"; then | |
3dd30495 VZ |
33384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&5 |
33385 | $as_echo "$as_me: WARNING: wxFileSystemWatcher disabled due to --disable-threads" >&2;} | |
dac2ee8d VZ |
33386 | wxUSE_FSWATCHER=no |
33387 | fi | |
6b8ef0b3 | 33388 | fi |
96e790a5 VZ |
33389 | |
33390 | if test "$wxUSE_FSWATCHER" = "yes"; then | |
3dd30495 | 33391 | $as_echo "#define wxUSE_FSWATCHER 1" >>confdefs.h |
96e790a5 VZ |
33392 | |
33393 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS fswatcher" | |
33394 | else | |
3dd30495 VZ |
33395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxFileSystemWatcher won't be available on this platform" >&5 |
33396 | $as_echo "$as_me: WARNING: wxFileSystemWatcher won't be available on this platform" >&2;} | |
96e790a5 | 33397 | fi |
6b8ef0b3 VZ |
33398 | fi |
33399 | ||
33400 | ||
a848cd7e | 33401 | if test "$wxUSE_STL" = "yes"; then |
3dd30495 | 33402 | $as_echo "#define wxUSE_STL 1" >>confdefs.h |
a848cd7e SC |
33403 | |
33404 | fi | |
33405 | ||
81727065 | 33406 | if test "$wxUSE_EXTENDED_RTTI" = "yes"; then |
3dd30495 | 33407 | $as_echo "#define wxUSE_EXTENDED_RTTI 1" >>confdefs.h |
81727065 VS |
33408 | |
33409 | fi | |
33410 | ||
178c7760 | 33411 | if test "$wxUSE_ANY" = "yes"; then |
3dd30495 | 33412 | $as_echo "#define wxUSE_ANY 1" >>confdefs.h |
178c7760 JS |
33413 | |
33414 | fi | |
33415 | ||
a848cd7e | 33416 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
3dd30495 | 33417 | $as_echo "#define wxUSE_APPLE_IEEE 1" >>confdefs.h |
a848cd7e SC |
33418 | |
33419 | fi | |
33420 | ||
33421 | if test "$wxUSE_TIMER" = "yes"; then | |
3dd30495 | 33422 | $as_echo "#define wxUSE_TIMER 1" >>confdefs.h |
a848cd7e SC |
33423 | |
33424 | fi | |
33425 | ||
6517fa86 | 33426 | if test "$USE_UNIX" = 1 ; then |
3dd30495 VZ |
33427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5 |
33428 | $as_echo_n "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... " >&6; } | |
eff9d7f5 | 33429 | if ${ac_cv_header_sys_soundcard+:} false; then : |
3dd30495 | 33430 | $as_echo_n "(cached) " >&6 |
a848cd7e | 33431 | else |
d12aef51 | 33432 | |
3dd30495 | 33433 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 33434 | /* end confdefs.h. */ |
d12aef51 | 33435 | |
0e1f8ea4 VZ |
33436 | #include <sys/ioctl.h> |
33437 | #include <sys/soundcard.h> | |
d12aef51 VZ |
33438 | |
33439 | int | |
33440 | main () | |
33441 | { | |
33442 | ||
0e1f8ea4 | 33443 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
33444 | |
33445 | ; | |
33446 | return 0; | |
33447 | } | |
a848cd7e | 33448 | _ACEOF |
3dd30495 | 33449 | if ac_fn_c_try_link "$LINENO"; then : |
d12aef51 | 33450 | ac_cv_header_sys_soundcard=yes |
a848cd7e | 33451 | else |
a848cd7e | 33452 | |
0e1f8ea4 VZ |
33453 | saveLibs="$LIBS" |
33454 | LIBS="$saveLibs -lossaudio" | |
3dd30495 | 33455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e | 33456 | /* end confdefs.h. */ |
d12aef51 | 33457 | |
0e1f8ea4 VZ |
33458 | #include <sys/ioctl.h> |
33459 | #include <sys/soundcard.h> | |
d12aef51 VZ |
33460 | |
33461 | int | |
33462 | main () | |
33463 | { | |
33464 | ||
0e1f8ea4 | 33465 | ioctl(0, SNDCTL_DSP_SPEED, 0); |
d12aef51 VZ |
33466 | |
33467 | ; | |
33468 | return 0; | |
33469 | } | |
a848cd7e | 33470 | _ACEOF |
3dd30495 | 33471 | if ac_fn_c_try_link "$LINENO"; then : |
d12aef51 | 33472 | ac_cv_header_sys_soundcard=yes |
a848cd7e | 33473 | else |
a848cd7e | 33474 | |
0e1f8ea4 VZ |
33475 | LIBS="$saveLibs" |
33476 | ac_cv_header_sys_soundcard=no | |
d12aef51 VZ |
33477 | |
33478 | ||
a848cd7e | 33479 | fi |
3dd30495 VZ |
33480 | rm -f core conftest.err conftest.$ac_objext \ |
33481 | conftest$ac_exeext conftest.$ac_ext | |
d12aef51 | 33482 | |
a848cd7e SC |
33483 | |
33484 | fi | |
3dd30495 VZ |
33485 | rm -f core conftest.err conftest.$ac_objext \ |
33486 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33487 | |
33488 | fi | |
3dd30495 VZ |
33489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_soundcard" >&5 |
33490 | $as_echo "$ac_cv_header_sys_soundcard" >&6; } | |
a848cd7e | 33491 | |
d12aef51 | 33492 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
3dd30495 | 33493 | $as_echo "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h |
a848cd7e | 33494 | |
d12aef51 | 33495 | fi |
9c112555 | 33496 | fi |
a1b1cf33 | 33497 | |
9c112555 MW |
33498 | WITH_PLUGIN_SDL=0 |
33499 | if test "$wxUSE_SOUND" = "yes"; then | |
6517fa86 | 33500 | if test "$USE_UNIX" = 1 ; then |
a848cd7e SC |
33501 | if test "$wxUSE_LIBSDL" != "no"; then |
33502 | ||
47964710 | 33503 | # Check whether --with-sdl-prefix was given. |
3dd30495 | 33504 | if test "${with_sdl_prefix+set}" = set; then : |
47964710 | 33505 | withval=$with_sdl_prefix; sdl_prefix="$withval" |
a848cd7e SC |
33506 | else |
33507 | sdl_prefix="" | |
47964710 VS |
33508 | fi |
33509 | ||
3f7f284d | 33510 | |
47964710 | 33511 | # Check whether --with-sdl-exec-prefix was given. |
3dd30495 | 33512 | if test "${with_sdl_exec_prefix+set}" = set; then : |
47964710 | 33513 | withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval" |
a848cd7e SC |
33514 | else |
33515 | sdl_exec_prefix="" | |
47964710 | 33516 | fi |
bd8a7646 | 33517 | |
47964710 | 33518 | # Check whether --enable-sdltest was given. |
3dd30495 | 33519 | if test "${enable_sdltest+set}" = set; then : |
47964710 | 33520 | enableval=$enable_sdltest; |
a848cd7e SC |
33521 | else |
33522 | enable_sdltest=yes | |
47964710 VS |
33523 | fi |
33524 | ||
a848cd7e SC |
33525 | |
33526 | if test x$sdl_exec_prefix != x ; then | |
3ecd9f92 MW |
33527 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" |
33528 | if test x${SDL_CONFIG+set} != xset ; then | |
33529 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
33530 | fi | |
a848cd7e SC |
33531 | fi |
33532 | if test x$sdl_prefix != x ; then | |
3ecd9f92 MW |
33533 | sdl_args="$sdl_args --prefix=$sdl_prefix" |
33534 | if test x${SDL_CONFIG+set} != xset ; then | |
33535 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
33536 | fi | |
a848cd7e SC |
33537 | fi |
33538 | ||
3ecd9f92 MW |
33539 | if test "x$prefix" != xNONE; then |
33540 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
33541 | fi | |
a848cd7e SC |
33542 | # Extract the first word of "sdl-config", so it can be a program name with args. |
33543 | set dummy sdl-config; ac_word=$2 | |
3dd30495 VZ |
33544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33545 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 33546 | if ${ac_cv_path_SDL_CONFIG+:} false; then : |
3dd30495 | 33547 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
33548 | else |
33549 | case $SDL_CONFIG in | |
33550 | [\\/]* | ?:[\\/]*) | |
33551 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
33552 | ;; | |
33553 | *) | |
33554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33555 | for as_dir in $PATH | |
33556 | do | |
33557 | IFS=$as_save_IFS | |
33558 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 33559 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 33560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 33561 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 33562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
33563 | break 2 |
33564 | fi | |
33565 | done | |
3dd30495 | 33566 | done |
47964710 | 33567 | IFS=$as_save_IFS |
a848cd7e SC |
33568 | |
33569 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
33570 | ;; | |
33571 | esac | |
33572 | fi | |
33573 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
a848cd7e | 33574 | if test -n "$SDL_CONFIG"; then |
3dd30495 VZ |
33575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5 |
33576 | $as_echo "$SDL_CONFIG" >&6; } | |
a848cd7e | 33577 | else |
3dd30495 VZ |
33578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33579 | $as_echo "no" >&6; } | |
a848cd7e SC |
33580 | fi |
33581 | ||
47964710 | 33582 | |
a848cd7e | 33583 | min_sdl_version=1.2.0 |
3dd30495 VZ |
33584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5 |
33585 | $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; } | |
a848cd7e SC |
33586 | no_sdl="" |
33587 | if test "$SDL_CONFIG" = "no" ; then | |
33588 | no_sdl=yes | |
33589 | else | |
33590 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
33591 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
33592 | ||
33593 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
33594 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
33595 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
33596 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
33597 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
33598 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
33599 | if test "x$enable_sdltest" = "xyes" ; then | |
33600 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 33601 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
33602 | ac_save_LIBS="$LIBS" |
33603 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 33604 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
33605 | LIBS="$LIBS $SDL_LIBS" |
33606 | rm -f conf.sdltest | |
3dd30495 | 33607 | if test "$cross_compiling" = yes; then : |
a848cd7e SC |
33608 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
33609 | else | |
3dd30495 | 33610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
33611 | /* end confdefs.h. */ |
33612 | ||
33613 | #include <stdio.h> | |
33614 | #include <stdlib.h> | |
33615 | #include <string.h> | |
33616 | #include "SDL.h" | |
33617 | ||
33618 | char* | |
33619 | my_strdup (char *str) | |
33620 | { | |
33621 | char *new_str; | |
33622 | ||
33623 | if (str) | |
33624 | { | |
33625 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
33626 | strcpy (new_str, str); | |
33627 | } | |
33628 | else | |
33629 | new_str = NULL; | |
33630 | ||
33631 | return new_str; | |
33632 | } | |
33633 | ||
33634 | int main (int argc, char *argv[]) | |
33635 | { | |
33636 | int major, minor, micro; | |
33637 | char *tmp_version; | |
33638 | ||
33639 | /* This hangs on some systems (?) | |
33640 | system ("touch conf.sdltest"); | |
33641 | */ | |
33642 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
33643 | ||
33644 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
33645 | tmp_version = my_strdup("$min_sdl_version"); | |
33646 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
33647 | printf("%s, bad version string\n", "$min_sdl_version"); | |
33648 | exit(1); | |
33649 | } | |
33650 | ||
33651 | if (($sdl_major_version > major) || | |
33652 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
33653 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
33654 | { | |
33655 | return 0; | |
33656 | } | |
33657 | else | |
33658 | { | |
33659 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
33660 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
33661 | printf("*** best to upgrade to the required version.\n"); | |
33662 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
33663 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
33664 | printf("*** config.cache before re-running configure\n"); | |
33665 | return 1; | |
33666 | } | |
33667 | } | |
33668 | ||
33669 | ||
33670 | _ACEOF | |
3dd30495 | 33671 | if ac_fn_c_try_run "$LINENO"; then : |
a848cd7e | 33672 | |
3dd30495 VZ |
33673 | else |
33674 | no_sdl=yes | |
a848cd7e | 33675 | fi |
3dd30495 VZ |
33676 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
33677 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
a848cd7e | 33678 | fi |
47964710 | 33679 | |
a848cd7e | 33680 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 33681 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
33682 | LIBS="$ac_save_LIBS" |
33683 | fi | |
33684 | fi | |
33685 | if test "x$no_sdl" = x ; then | |
3dd30495 VZ |
33686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33687 | $as_echo "yes" >&6; } | |
a848cd7e SC |
33688 | |
33689 | EXTRALIBS_SDL="$SDL_LIBS" | |
9b8888f9 | 33690 | CFLAGS="$SDL_CFLAGS $CFLAGS" |
c92ad099 | 33691 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
3dd30495 | 33692 | $as_echo "#define wxUSE_LIBSDL 1" >>confdefs.h |
a848cd7e SC |
33693 | |
33694 | ||
33695 | else | |
3dd30495 VZ |
33696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33697 | $as_echo "no" >&6; } | |
a848cd7e SC |
33698 | if test "$SDL_CONFIG" = "no" ; then |
33699 | echo "*** The sdl-config script installed by SDL could not be found" | |
33700 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
33701 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
33702 | echo "*** full path to sdl-config." | |
33703 | else | |
33704 | if test -f conf.sdltest ; then | |
33705 | : | |
33706 | else | |
33707 | echo "*** Could not run SDL test program, checking why..." | |
33708 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 33709 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e | 33710 | LIBS="$LIBS $SDL_LIBS" |
3dd30495 | 33711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
33712 | /* end confdefs.h. */ |
33713 | ||
33714 | #include <stdio.h> | |
33715 | #include "SDL.h" | |
33716 | ||
33717 | int main(int argc, char *argv[]) | |
33718 | { return 0; } | |
33719 | #undef main | |
33720 | #define main K_and_R_C_main | |
33721 | ||
33722 | int | |
33723 | main () | |
33724 | { | |
33725 | return 0; | |
33726 | ; | |
33727 | return 0; | |
33728 | } | |
33729 | _ACEOF | |
3dd30495 | 33730 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
33731 | echo "*** The test program compiled, but did not run. This usually means" |
33732 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
33733 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
33734 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
33735 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
33736 | echo "*** is required on your system" | |
33737 | echo "***" | |
33738 | echo "*** If you have an old version installed, it is best to remove it, although" | |
33739 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
33740 | else | |
3dd30495 | 33741 | echo "*** The test program failed to compile or link. See the file config.log for the" |
1eff6081 | 33742 | echo "*** exact error that occurred. This usually means SDL was incorrectly installed" |
a848cd7e SC |
33743 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" |
33744 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
33745 | fi | |
3dd30495 VZ |
33746 | rm -f core conftest.err conftest.$ac_objext \ |
33747 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 33748 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 33749 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
33750 | LIBS="$ac_save_LIBS" |
33751 | fi | |
33752 | fi | |
33753 | SDL_CFLAGS="" | |
33754 | SDL_LIBS="" | |
33755 | wxUSE_LIBSDL="no" | |
33756 | fi | |
33757 | ||
33758 | ||
33759 | rm -f conf.sdltest | |
33760 | ||
33761 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
33762 | WITH_PLUGIN_SDL=1 | |
33763 | fi | |
33764 | fi | |
33765 | fi | |
480b9f18 | 33766 | fi |
a848cd7e | 33767 | |
480b9f18 | 33768 | if test "$wxUSE_SOUND" = "yes"; then |
3dd30495 | 33769 | $as_echo "#define wxUSE_SOUND 1" >>confdefs.h |
a848cd7e SC |
33770 | |
33771 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
33772 | fi | |
33773 | ||
88262190 | 33774 | if test "$WXGTK2" = 1; then |
d6fb5527 VZ |
33775 | |
33776 | ||
33777 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
33778 | if test -n "$ac_tool_prefix"; then | |
33779 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
33780 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
3dd30495 VZ |
33781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33782 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 33783 | if ${ac_cv_path_PKG_CONFIG+:} false; then : |
3dd30495 | 33784 | $as_echo_n "(cached) " >&6 |
d6fb5527 VZ |
33785 | else |
33786 | case $PKG_CONFIG in | |
33787 | [\\/]* | ?:[\\/]*) | |
33788 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
33789 | ;; | |
33790 | *) | |
33791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33792 | for as_dir in $PATH | |
33793 | do | |
33794 | IFS=$as_save_IFS | |
33795 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 33796 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 33797 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d6fb5527 | 33798 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 33799 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d6fb5527 VZ |
33800 | break 2 |
33801 | fi | |
33802 | done | |
3dd30495 | 33803 | done |
47964710 | 33804 | IFS=$as_save_IFS |
d6fb5527 VZ |
33805 | |
33806 | ;; | |
33807 | esac | |
33808 | fi | |
33809 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
d6fb5527 | 33810 | if test -n "$PKG_CONFIG"; then |
3dd30495 VZ |
33811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
33812 | $as_echo "$PKG_CONFIG" >&6; } | |
d6fb5527 | 33813 | else |
3dd30495 VZ |
33814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33815 | $as_echo "no" >&6; } | |
d6fb5527 VZ |
33816 | fi |
33817 | ||
47964710 | 33818 | |
d6fb5527 VZ |
33819 | fi |
33820 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
33821 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
33822 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
33823 | set dummy pkg-config; ac_word=$2 | |
3dd30495 VZ |
33824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
33825 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 33826 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : |
3dd30495 | 33827 | $as_echo_n "(cached) " >&6 |
d6fb5527 VZ |
33828 | else |
33829 | case $ac_pt_PKG_CONFIG in | |
33830 | [\\/]* | ?:[\\/]*) | |
33831 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
33832 | ;; | |
33833 | *) | |
33834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33835 | for as_dir in $PATH | |
33836 | do | |
33837 | IFS=$as_save_IFS | |
33838 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 33839 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 33840 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d6fb5527 | 33841 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 33842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d6fb5527 VZ |
33843 | break 2 |
33844 | fi | |
33845 | done | |
3dd30495 | 33846 | done |
47964710 | 33847 | IFS=$as_save_IFS |
d6fb5527 VZ |
33848 | |
33849 | ;; | |
33850 | esac | |
33851 | fi | |
33852 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
d6fb5527 | 33853 | if test -n "$ac_pt_PKG_CONFIG"; then |
3dd30495 VZ |
33854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
33855 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
d6fb5527 | 33856 | else |
3dd30495 VZ |
33857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33858 | $as_echo "no" >&6; } | |
d6fb5527 VZ |
33859 | fi |
33860 | ||
47964710 VS |
33861 | if test "x$ac_pt_PKG_CONFIG" = x; then |
33862 | PKG_CONFIG="" | |
33863 | else | |
33864 | case $cross_compiling:$ac_tool_warned in | |
33865 | yes:) | |
3dd30495 VZ |
33866 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
33867 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
33868 | ac_tool_warned=yes ;; |
33869 | esac | |
33870 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
33871 | fi | |
d6fb5527 VZ |
33872 | else |
33873 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
33874 | fi | |
33875 | ||
33876 | fi | |
33877 | if test -n "$PKG_CONFIG"; then | |
33878 | _pkg_min_version=0.9.0 | |
3dd30495 VZ |
33879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
33880 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
d6fb5527 | 33881 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
3dd30495 VZ |
33882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33883 | $as_echo "yes" >&6; } | |
d6fb5527 | 33884 | else |
3dd30495 VZ |
33885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
33886 | $as_echo "no" >&6; } | |
d6fb5527 VZ |
33887 | PKG_CONFIG="" |
33888 | fi | |
33889 | ||
33890 | fi | |
33891 | ||
d1c38808 | 33892 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then |
bd8a7646 RR |
33893 | |
33894 | if test "$wxUSE_GTKPRINT" = "yes" ; then | |
9dc44eff PC |
33895 | if test "$WXGTK3" = 1; then |
33896 | gtk_unix_print="gtk+-unix-print-3.0" | |
33897 | else | |
33898 | gtk_unix_print="gtk+-unix-print-2.0 >= 2.10" | |
33899 | fi | |
bd8a7646 RR |
33900 | |
33901 | pkg_failed=no | |
3dd30495 VZ |
33902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKPRINT" >&5 |
33903 | $as_echo_n "checking for GTKPRINT... " >&6; } | |
bd8a7646 RR |
33904 | |
33905 | if test -n "$PKG_CONFIG"; then | |
33906 | if test -n "$GTKPRINT_CFLAGS"; then | |
33907 | pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS" | |
33908 | else | |
33909 | if test -n "$PKG_CONFIG" && \ | |
9dc44eff PC |
33910 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_unix_print\""; } >&5 |
33911 | ($PKG_CONFIG --exists --print-errors "$gtk_unix_print") 2>&5 | |
bd8a7646 | 33912 | ac_status=$? |
3dd30495 VZ |
33913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
33914 | test $ac_status = 0; }; then | |
9dc44eff | 33915 | pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "$gtk_unix_print" 2>/dev/null` |
bd8a7646 RR |
33916 | else |
33917 | pkg_failed=yes | |
33918 | fi | |
33919 | fi | |
33920 | else | |
33921 | pkg_failed=untried | |
33922 | fi | |
33923 | if test -n "$PKG_CONFIG"; then | |
33924 | if test -n "$GTKPRINT_LIBS"; then | |
33925 | pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS" | |
33926 | else | |
33927 | if test -n "$PKG_CONFIG" && \ | |
9dc44eff PC |
33928 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_unix_print\""; } >&5 |
33929 | ($PKG_CONFIG --exists --print-errors "$gtk_unix_print") 2>&5 | |
bd8a7646 | 33930 | ac_status=$? |
3dd30495 VZ |
33931 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
33932 | test $ac_status = 0; }; then | |
9dc44eff | 33933 | pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "$gtk_unix_print" 2>/dev/null` |
bd8a7646 RR |
33934 | else |
33935 | pkg_failed=yes | |
33936 | fi | |
33937 | fi | |
33938 | else | |
33939 | pkg_failed=untried | |
33940 | fi | |
33941 | ||
33942 | ||
33943 | ||
33944 | if test $pkg_failed = yes; then | |
33945 | ||
33946 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
33947 | _pkg_short_errors_supported=yes | |
33948 | else | |
33949 | _pkg_short_errors_supported=no | |
33950 | fi | |
33951 | if test $_pkg_short_errors_supported = yes; then | |
9dc44eff | 33952 | GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$gtk_unix_print"` |
bd8a7646 | 33953 | else |
9dc44eff | 33954 | GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$gtk_unix_print"` |
bd8a7646 RR |
33955 | fi |
33956 | # Put the nasty error message in config.log where it belongs | |
33957 | echo "$GTKPRINT_PKG_ERRORS" >&5 | |
33958 | ||
33959 | ||
3dd30495 VZ |
33960 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5 |
33961 | $as_echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;} | |
bd8a7646 RR |
33962 | wxUSE_GTKPRINT="no" |
33963 | ||
33964 | ||
33965 | elif test $pkg_failed = untried; then | |
33966 | ||
3dd30495 VZ |
33967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5 |
33968 | $as_echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;} | |
bd8a7646 RR |
33969 | wxUSE_GTKPRINT="no" |
33970 | ||
33971 | ||
33972 | else | |
33973 | GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS | |
33974 | GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS | |
3dd30495 VZ |
33975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
33976 | $as_echo "yes" >&6; } | |
bd8a7646 | 33977 | |
b9b55ad5 | 33978 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GTKPRINT_LIBS" |
bd8a7646 RR |
33979 | CFLAGS="$GTKPRINT_CFLAGS $CFLAGS" |
33980 | CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS" | |
3dd30495 | 33981 | $as_echo "#define wxUSE_GTKPRINT 1" >>confdefs.h |
bd8a7646 RR |
33982 | |
33983 | ||
33984 | fi | |
33985 | fi | |
33986 | ||
d5cc191c PC |
33987 | if test "$WXGTK3" = 1; then |
33988 | wxUSE_LIBGNOMEPRINT=no | |
33989 | fi | |
33990 | ||
d1c38808 VZ |
33991 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then |
33992 | ||
33993 | ||
3ecd9f92 | 33994 | pkg_failed=no |
3dd30495 VZ |
33995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGNOMEPRINTUI" >&5 |
33996 | $as_echo_n "checking for LIBGNOMEPRINTUI... " >&6; } | |
d1c38808 | 33997 | |
3ecd9f92 MW |
33998 | if test -n "$PKG_CONFIG"; then |
33999 | if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then | |
34000 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS" | |
34001 | else | |
34002 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 34003 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\""; } >&5 |
3ecd9f92 MW |
34004 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 |
34005 | ac_status=$? | |
3dd30495 VZ |
34006 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
34007 | test $ac_status = 0; }; then | |
3ecd9f92 | 34008 | pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` |
d1c38808 | 34009 | else |
3ecd9f92 MW |
34010 | pkg_failed=yes |
34011 | fi | |
34012 | fi | |
34013 | else | |
34014 | pkg_failed=untried | |
d1c38808 | 34015 | fi |
d1c38808 | 34016 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
34017 | if test -n "$LIBGNOMEPRINTUI_LIBS"; then |
34018 | pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS" | |
34019 | else | |
34020 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 34021 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\""; } >&5 |
3ecd9f92 MW |
34022 | ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5 |
34023 | ac_status=$? | |
3dd30495 VZ |
34024 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
34025 | test $ac_status = 0; }; then | |
3ecd9f92 | 34026 | pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null` |
d1c38808 | 34027 | else |
3ecd9f92 MW |
34028 | pkg_failed=yes |
34029 | fi | |
34030 | fi | |
34031 | else | |
34032 | pkg_failed=untried | |
d1c38808 VZ |
34033 | fi |
34034 | ||
d1c38808 | 34035 | |
d1c38808 | 34036 | |
3ecd9f92 | 34037 | if test $pkg_failed = yes; then |
d1c38808 | 34038 | |
3ecd9f92 MW |
34039 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
34040 | _pkg_short_errors_supported=yes | |
34041 | else | |
34042 | _pkg_short_errors_supported=no | |
34043 | fi | |
34044 | if test $_pkg_short_errors_supported = yes; then | |
34045 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
34046 | else | |
34047 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` | |
d1c38808 | 34048 | fi |
3ecd9f92 MW |
34049 | # Put the nasty error message in config.log where it belongs |
34050 | echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5 | |
d1c38808 VZ |
34051 | |
34052 | ||
f4230753 | 34053 | if test "$wxUSE_GTKPRINT" = yes; then |
3dd30495 VZ |
34054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34055 | $as_echo "no" >&6; } | |
f4230753 | 34056 | else |
3dd30495 VZ |
34057 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 |
34058 | $as_echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
f4230753 | 34059 | fi |
3ecd9f92 | 34060 | wxUSE_LIBGNOMEPRINT="no" |
d1c38808 VZ |
34061 | |
34062 | ||
3ecd9f92 | 34063 | elif test $pkg_failed = untried; then |
d1c38808 | 34064 | |
f4230753 | 34065 | if test "$wxUSE_GTKPRINT" = yes; then |
3dd30495 VZ |
34066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
34067 | $as_echo "no" >&6; } | |
f4230753 | 34068 | else |
3dd30495 VZ |
34069 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 |
34070 | $as_echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
f4230753 | 34071 | fi |
d1c38808 VZ |
34072 | wxUSE_LIBGNOMEPRINT="no" |
34073 | ||
34074 | ||
3ecd9f92 MW |
34075 | else |
34076 | LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS | |
34077 | LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS | |
3dd30495 VZ |
34078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34079 | $as_echo "yes" >&6; } | |
d1c38808 | 34080 | |
b9b55ad5 | 34081 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $LIBGNOMEPRINTUI_LIBS" |
9b8888f9 | 34082 | CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS" |
3ecd9f92 | 34083 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
3dd30495 | 34084 | $as_echo "#define wxUSE_LIBGNOMEPRINT 1" >>confdefs.h |
3ecd9f92 MW |
34085 | |
34086 | ||
34087 | fi | |
d1c38808 VZ |
34088 | fi |
34089 | fi | |
d1c38808 | 34090 | |
2b850ae1 RR |
34091 | if test "$wxUSE_MIMETYPE" = "yes" ; then |
34092 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
34093 | ||
34094 | ||
3ecd9f92 | 34095 | pkg_failed=no |
3dd30495 VZ |
34096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNOMEVFS" >&5 |
34097 | $as_echo_n "checking for GNOMEVFS... " >&6; } | |
2b850ae1 | 34098 | |
3ecd9f92 MW |
34099 | if test -n "$PKG_CONFIG"; then |
34100 | if test -n "$GNOMEVFS_CFLAGS"; then | |
34101 | pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS" | |
34102 | else | |
34103 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 34104 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\""; } >&5 |
3ecd9f92 MW |
34105 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 |
34106 | ac_status=$? | |
3dd30495 VZ |
34107 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
34108 | test $ac_status = 0; }; then | |
3ecd9f92 | 34109 | pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null` |
2b850ae1 | 34110 | else |
3ecd9f92 MW |
34111 | pkg_failed=yes |
34112 | fi | |
34113 | fi | |
34114 | else | |
34115 | pkg_failed=untried | |
2b850ae1 | 34116 | fi |
2b850ae1 | 34117 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
34118 | if test -n "$GNOMEVFS_LIBS"; then |
34119 | pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS" | |
34120 | else | |
34121 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 34122 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\""; } >&5 |
3ecd9f92 MW |
34123 | ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5 |
34124 | ac_status=$? | |
3dd30495 VZ |
34125 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
34126 | test $ac_status = 0; }; then | |
3ecd9f92 | 34127 | pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null` |
2b850ae1 | 34128 | else |
3ecd9f92 MW |
34129 | pkg_failed=yes |
34130 | fi | |
34131 | fi | |
34132 | else | |
34133 | pkg_failed=untried | |
2b850ae1 RR |
34134 | fi |
34135 | ||
2b850ae1 | 34136 | |
2b850ae1 | 34137 | |
3ecd9f92 | 34138 | if test $pkg_failed = yes; then |
2b850ae1 | 34139 | |
3ecd9f92 MW |
34140 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
34141 | _pkg_short_errors_supported=yes | |
34142 | else | |
34143 | _pkg_short_errors_supported=no | |
34144 | fi | |
34145 | if test $_pkg_short_errors_supported = yes; then | |
34146 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
34147 | else | |
34148 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
2b850ae1 | 34149 | fi |
3ecd9f92 MW |
34150 | # Put the nasty error message in config.log where it belongs |
34151 | echo "$GNOMEVFS_PKG_ERRORS" >&5 | |
2b850ae1 RR |
34152 | |
34153 | ||
3dd30495 VZ |
34154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 |
34155 | $as_echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
3ecd9f92 | 34156 | wxUSE_LIBGNOMEVFS="no" |
2b850ae1 RR |
34157 | |
34158 | ||
3ecd9f92 | 34159 | elif test $pkg_failed = untried; then |
2b850ae1 | 34160 | |
3dd30495 VZ |
34161 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 |
34162 | $as_echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
2b850ae1 RR |
34163 | wxUSE_LIBGNOMEVFS="no" |
34164 | ||
34165 | ||
3ecd9f92 MW |
34166 | else |
34167 | GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS | |
34168 | GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS | |
3dd30495 VZ |
34169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34170 | $as_echo "yes" >&6; } | |
2b850ae1 | 34171 | |
b9b55ad5 | 34172 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GNOMEVFS_LIBS" |
9b8888f9 | 34173 | CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS" |
3ecd9f92 | 34174 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" |
3dd30495 | 34175 | $as_echo "#define wxUSE_LIBGNOMEVFS 1" >>confdefs.h |
3ecd9f92 MW |
34176 | |
34177 | ||
afbf46a3 VZ |
34178 | fi |
34179 | fi | |
34180 | fi | |
34181 | ||
34182 | if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes" ; then | |
34183 | if test "$wxUSE_LIBNOTIFY" = "yes" ; then | |
2eb92b0d | 34184 | HAVE_LIBNOTIFY=0 |
afbf46a3 VZ |
34185 | |
34186 | pkg_failed=no | |
34187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5 | |
34188 | $as_echo_n "checking for LIBNOTIFY... " >&6; } | |
34189 | ||
34190 | if test -n "$PKG_CONFIG"; then | |
34191 | if test -n "$LIBNOTIFY_CFLAGS"; then | |
34192 | pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS" | |
34193 | else | |
34194 | if test -n "$PKG_CONFIG" && \ | |
34195 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= 0.7\""; } >&5 | |
34196 | ($PKG_CONFIG --exists --print-errors "libnotify >= 0.7") 2>&5 | |
34197 | ac_status=$? | |
34198 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34199 | test $ac_status = 0; }; then | |
34200 | pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= 0.7" 2>/dev/null` | |
34201 | else | |
34202 | pkg_failed=yes | |
34203 | fi | |
34204 | fi | |
34205 | else | |
34206 | pkg_failed=untried | |
34207 | fi | |
34208 | if test -n "$PKG_CONFIG"; then | |
34209 | if test -n "$LIBNOTIFY_LIBS"; then | |
34210 | pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS" | |
34211 | else | |
34212 | if test -n "$PKG_CONFIG" && \ | |
34213 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= 0.7\""; } >&5 | |
34214 | ($PKG_CONFIG --exists --print-errors "libnotify >= 0.7") 2>&5 | |
34215 | ac_status=$? | |
34216 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34217 | test $ac_status = 0; }; then | |
34218 | pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify >= 0.7" 2>/dev/null` | |
34219 | else | |
34220 | pkg_failed=yes | |
34221 | fi | |
34222 | fi | |
34223 | else | |
34224 | pkg_failed=untried | |
34225 | fi | |
34226 | ||
34227 | ||
34228 | ||
34229 | if test $pkg_failed = yes; then | |
34230 | ||
34231 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
34232 | _pkg_short_errors_supported=yes | |
34233 | else | |
34234 | _pkg_short_errors_supported=no | |
34235 | fi | |
34236 | if test $_pkg_short_errors_supported = yes; then | |
34237 | LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify >= 0.7"` | |
34238 | else | |
34239 | LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify >= 0.7"` | |
34240 | fi | |
34241 | # Put the nasty error message in config.log where it belongs | |
34242 | echo "$LIBNOTIFY_PKG_ERRORS" >&5 | |
34243 | ||
34244 | ||
2eb92b0d VZ |
34245 | |
34246 | pkg_failed=no | |
34247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5 | |
34248 | $as_echo_n "checking for LIBNOTIFY... " >&6; } | |
34249 | ||
34250 | if test -n "$PKG_CONFIG"; then | |
34251 | if test -n "$LIBNOTIFY_CFLAGS"; then | |
34252 | pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS" | |
34253 | else | |
34254 | if test -n "$PKG_CONFIG" && \ | |
34255 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= 0.4\""; } >&5 | |
34256 | ($PKG_CONFIG --exists --print-errors "libnotify >= 0.4") 2>&5 | |
34257 | ac_status=$? | |
34258 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34259 | test $ac_status = 0; }; then | |
34260 | pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= 0.4" 2>/dev/null` | |
34261 | else | |
34262 | pkg_failed=yes | |
34263 | fi | |
34264 | fi | |
34265 | else | |
34266 | pkg_failed=untried | |
34267 | fi | |
34268 | if test -n "$PKG_CONFIG"; then | |
34269 | if test -n "$LIBNOTIFY_LIBS"; then | |
34270 | pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS" | |
34271 | else | |
34272 | if test -n "$PKG_CONFIG" && \ | |
34273 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= 0.4\""; } >&5 | |
34274 | ($PKG_CONFIG --exists --print-errors "libnotify >= 0.4") 2>&5 | |
34275 | ac_status=$? | |
34276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34277 | test $ac_status = 0; }; then | |
34278 | pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify >= 0.4" 2>/dev/null` | |
34279 | else | |
34280 | pkg_failed=yes | |
34281 | fi | |
34282 | fi | |
34283 | else | |
34284 | pkg_failed=untried | |
34285 | fi | |
34286 | ||
34287 | ||
34288 | ||
34289 | if test $pkg_failed = yes; then | |
34290 | ||
34291 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
34292 | _pkg_short_errors_supported=yes | |
34293 | else | |
34294 | _pkg_short_errors_supported=no | |
34295 | fi | |
34296 | if test $_pkg_short_errors_supported = yes; then | |
34297 | LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify >= 0.4"` | |
34298 | else | |
34299 | LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify >= 0.4"` | |
34300 | fi | |
34301 | # Put the nasty error message in config.log where it belongs | |
34302 | echo "$LIBNOTIFY_PKG_ERRORS" >&5 | |
34303 | ||
34304 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnotify not found, wxNotificationMessage will use generic implementation." >&5 | |
afbf46a3 VZ |
34305 | $as_echo "$as_me: WARNING: libnotify not found, wxNotificationMessage will use generic implementation." >&2;} |
34306 | ||
2eb92b0d VZ |
34307 | elif test $pkg_failed = untried; then |
34308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnotify not found, wxNotificationMessage will use generic implementation." >&5 | |
34309 | $as_echo "$as_me: WARNING: libnotify not found, wxNotificationMessage will use generic implementation." >&2;} | |
34310 | ||
34311 | else | |
34312 | LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS | |
34313 | LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS | |
34314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34315 | $as_echo "yes" >&6; } | |
34316 | HAVE_LIBNOTIFY=1 | |
34317 | fi | |
34318 | ||
afbf46a3 VZ |
34319 | |
34320 | elif test $pkg_failed = untried; then | |
34321 | ||
2eb92b0d VZ |
34322 | |
34323 | pkg_failed=no | |
34324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5 | |
34325 | $as_echo_n "checking for LIBNOTIFY... " >&6; } | |
34326 | ||
34327 | if test -n "$PKG_CONFIG"; then | |
34328 | if test -n "$LIBNOTIFY_CFLAGS"; then | |
34329 | pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS" | |
34330 | else | |
34331 | if test -n "$PKG_CONFIG" && \ | |
34332 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= 0.4\""; } >&5 | |
34333 | ($PKG_CONFIG --exists --print-errors "libnotify >= 0.4") 2>&5 | |
34334 | ac_status=$? | |
34335 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34336 | test $ac_status = 0; }; then | |
34337 | pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify >= 0.4" 2>/dev/null` | |
34338 | else | |
34339 | pkg_failed=yes | |
34340 | fi | |
34341 | fi | |
34342 | else | |
34343 | pkg_failed=untried | |
34344 | fi | |
34345 | if test -n "$PKG_CONFIG"; then | |
34346 | if test -n "$LIBNOTIFY_LIBS"; then | |
34347 | pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS" | |
34348 | else | |
34349 | if test -n "$PKG_CONFIG" && \ | |
34350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify >= 0.4\""; } >&5 | |
34351 | ($PKG_CONFIG --exists --print-errors "libnotify >= 0.4") 2>&5 | |
34352 | ac_status=$? | |
34353 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
34354 | test $ac_status = 0; }; then | |
34355 | pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify >= 0.4" 2>/dev/null` | |
34356 | else | |
34357 | pkg_failed=yes | |
34358 | fi | |
34359 | fi | |
34360 | else | |
34361 | pkg_failed=untried | |
34362 | fi | |
34363 | ||
34364 | ||
34365 | ||
34366 | if test $pkg_failed = yes; then | |
34367 | ||
34368 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
34369 | _pkg_short_errors_supported=yes | |
34370 | else | |
34371 | _pkg_short_errors_supported=no | |
34372 | fi | |
34373 | if test $_pkg_short_errors_supported = yes; then | |
34374 | LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libnotify >= 0.4"` | |
34375 | else | |
34376 | LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libnotify >= 0.4"` | |
34377 | fi | |
34378 | # Put the nasty error message in config.log where it belongs | |
34379 | echo "$LIBNOTIFY_PKG_ERRORS" >&5 | |
34380 | ||
34381 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnotify not found, wxNotificationMessage will use generic implementation." >&5 | |
afbf46a3 VZ |
34382 | $as_echo "$as_me: WARNING: libnotify not found, wxNotificationMessage will use generic implementation." >&2;} |
34383 | ||
2eb92b0d VZ |
34384 | elif test $pkg_failed = untried; then |
34385 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libnotify not found, wxNotificationMessage will use generic implementation." >&5 | |
34386 | $as_echo "$as_me: WARNING: libnotify not found, wxNotificationMessage will use generic implementation." >&2;} | |
afbf46a3 VZ |
34387 | |
34388 | else | |
34389 | LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS | |
34390 | LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS | |
34391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34392 | $as_echo "yes" >&6; } | |
2eb92b0d VZ |
34393 | HAVE_LIBNOTIFY=1 |
34394 | fi | |
afbf46a3 | 34395 | |
2eb92b0d VZ |
34396 | |
34397 | else | |
34398 | LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS | |
34399 | LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS | |
34400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
34401 | $as_echo "yes" >&6; } | |
34402 | ||
34403 | HAVE_LIBNOTIFY=1 | |
34404 | $as_echo "#define wxUSE_LIBNOTIFY_0_7 1" >>confdefs.h | |
afbf46a3 VZ |
34405 | |
34406 | ||
3ecd9f92 | 34407 | fi |
2eb92b0d VZ |
34408 | |
34409 | if test "$HAVE_LIBNOTIFY" = "1" ; then | |
34410 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $LIBNOTIFY_LIBS" | |
34411 | CFLAGS="$LIBNOTIFY_CFLAGS $CFLAGS" | |
34412 | CXXFLAGS="$LIBNOTIFY_CFLAGS $CXXFLAGS" | |
34413 | $as_echo "#define wxUSE_LIBNOTIFY 1" >>confdefs.h | |
34414 | ||
34415 | fi | |
2b850ae1 RR |
34416 | fi |
34417 | fi | |
2b850ae1 | 34418 | |
3565d135 RR |
34419 | if test "$wxUSE_LIBHILDON" = "yes" ; then |
34420 | ||
3ecd9f92 | 34421 | pkg_failed=no |
3dd30495 VZ |
34422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HILDON" >&5 |
34423 | $as_echo_n "checking for HILDON... " >&6; } | |
3565d135 | 34424 | |
3ecd9f92 MW |
34425 | if test -n "$PKG_CONFIG"; then |
34426 | if test -n "$HILDON_CFLAGS"; then | |
34427 | pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS" | |
34428 | else | |
34429 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 34430 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\""; } >&5 |
3ecd9f92 MW |
34431 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 |
34432 | ac_status=$? | |
3dd30495 VZ |
34433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
34434 | test $ac_status = 0; }; then | |
3ecd9f92 | 34435 | pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null` |
3565d135 | 34436 | else |
3ecd9f92 MW |
34437 | pkg_failed=yes |
34438 | fi | |
34439 | fi | |
34440 | else | |
34441 | pkg_failed=untried | |
3565d135 | 34442 | fi |
3565d135 | 34443 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
34444 | if test -n "$HILDON_LIBS"; then |
34445 | pkg_cv_HILDON_LIBS="$HILDON_LIBS" | |
34446 | else | |
34447 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 34448 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\""; } >&5 |
3ecd9f92 MW |
34449 | ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5 |
34450 | ac_status=$? | |
3dd30495 VZ |
34451 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
34452 | test $ac_status = 0; }; then | |
3ecd9f92 | 34453 | pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null` |
3565d135 | 34454 | else |
3ecd9f92 MW |
34455 | pkg_failed=yes |
34456 | fi | |
34457 | fi | |
34458 | else | |
34459 | pkg_failed=untried | |
3565d135 RR |
34460 | fi |
34461 | ||
3565d135 | 34462 | |
3565d135 | 34463 | |
3ecd9f92 | 34464 | if test $pkg_failed = yes; then |
3565d135 | 34465 | |
3ecd9f92 MW |
34466 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
34467 | _pkg_short_errors_supported=yes | |
34468 | else | |
34469 | _pkg_short_errors_supported=no | |
34470 | fi | |
34471 | if test $_pkg_short_errors_supported = yes; then | |
34472 | HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
34473 | else | |
34474 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
3565d135 | 34475 | fi |
3ecd9f92 MW |
34476 | # Put the nasty error message in config.log where it belongs |
34477 | echo "$HILDON_PKG_ERRORS" >&5 | |
3565d135 RR |
34478 | |
34479 | ||
3dd30495 VZ |
34480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libhildon_lgpl not found" >&5 |
34481 | $as_echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
3ecd9f92 | 34482 | wxUSE_LIBHILDON="no" |
426d19f1 | 34483 | ac_hildon_lgpl=0 |
3565d135 | 34484 | |
3565d135 | 34485 | |
3ecd9f92 MW |
34486 | elif test $pkg_failed = untried; then |
34487 | ||
3dd30495 VZ |
34488 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libhildon_lgpl not found" >&5 |
34489 | $as_echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
3ecd9f92 | 34490 | wxUSE_LIBHILDON="no" |
426d19f1 | 34491 | ac_hildon_lgpl=0 |
3ecd9f92 MW |
34492 | |
34493 | ||
34494 | else | |
34495 | HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS | |
34496 | HILDON_LIBS=$pkg_cv_HILDON_LIBS | |
3dd30495 VZ |
34497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34498 | $as_echo "yes" >&6; } | |
3565d135 | 34499 | |
b9b55ad5 | 34500 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $HILDON_LIBS" |
9b8888f9 | 34501 | CFLAGS="$CFLAGS $HILDON_CFLAGS" |
3565d135 | 34502 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" |
3dd30495 | 34503 | $as_echo "#define wxUSE_LIBHILDON 1" >>confdefs.h |
3565d135 | 34504 | |
426d19f1 | 34505 | ac_hildon_lgpl=1 |
3565d135 | 34506 | |
3ecd9f92 | 34507 | fi |
426d19f1 JS |
34508 | |
34509 | if test "$ac_hildon_lgpl" = 0 ; then | |
34510 | ||
34511 | pkg_failed=no | |
3dd30495 VZ |
34512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HILDON2" >&5 |
34513 | $as_echo_n "checking for HILDON2... " >&6; } | |
426d19f1 JS |
34514 | |
34515 | if test -n "$PKG_CONFIG"; then | |
34516 | if test -n "$HILDON2_CFLAGS"; then | |
34517 | pkg_cv_HILDON2_CFLAGS="$HILDON2_CFLAGS" | |
34518 | else | |
34519 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 34520 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\""; } >&5 |
426d19f1 JS |
34521 | ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5 |
34522 | ac_status=$? | |
3dd30495 VZ |
34523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
34524 | test $ac_status = 0; }; then | |
426d19f1 JS |
34525 | pkg_cv_HILDON2_CFLAGS=`$PKG_CONFIG --cflags "hildon-1 >= 1.99" 2>/dev/null` |
34526 | else | |
34527 | pkg_failed=yes | |
34528 | fi | |
34529 | fi | |
34530 | else | |
34531 | pkg_failed=untried | |
34532 | fi | |
34533 | if test -n "$PKG_CONFIG"; then | |
34534 | if test -n "$HILDON2_LIBS"; then | |
34535 | pkg_cv_HILDON2_LIBS="$HILDON2_LIBS" | |
34536 | else | |
34537 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 34538 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hildon-1 >= 1.99\""; } >&5 |
426d19f1 JS |
34539 | ($PKG_CONFIG --exists --print-errors "hildon-1 >= 1.99") 2>&5 |
34540 | ac_status=$? | |
3dd30495 VZ |
34541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
34542 | test $ac_status = 0; }; then | |
426d19f1 JS |
34543 | pkg_cv_HILDON2_LIBS=`$PKG_CONFIG --libs "hildon-1 >= 1.99" 2>/dev/null` |
34544 | else | |
34545 | pkg_failed=yes | |
34546 | fi | |
34547 | fi | |
34548 | else | |
34549 | pkg_failed=untried | |
34550 | fi | |
34551 | ||
34552 | ||
34553 | ||
34554 | if test $pkg_failed = yes; then | |
34555 | ||
34556 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
34557 | _pkg_short_errors_supported=yes | |
34558 | else | |
34559 | _pkg_short_errors_supported=no | |
34560 | fi | |
34561 | if test $_pkg_short_errors_supported = yes; then | |
34562 | HILDON2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-1 >= 1.99"` | |
34563 | else | |
34564 | HILDON2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-1 >= 1.99"` | |
34565 | fi | |
34566 | # Put the nasty error message in config.log where it belongs | |
34567 | echo "$HILDON2_PKG_ERRORS" >&5 | |
34568 | ||
34569 | ||
3dd30495 VZ |
34570 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libhildon_1 not found" >&5 |
34571 | $as_echo "$as_me: WARNING: libhildon_1 not found" >&2;} | |
426d19f1 JS |
34572 | wxUSE_LIBHILDON2="no" |
34573 | ||
34574 | ||
34575 | elif test $pkg_failed = untried; then | |
34576 | ||
3dd30495 VZ |
34577 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libhildon_1 not found" >&5 |
34578 | $as_echo "$as_me: WARNING: libhildon_1 not found" >&2;} | |
426d19f1 JS |
34579 | wxUSE_LIBHILDON2="no" |
34580 | ||
34581 | ||
34582 | else | |
34583 | HILDON2_CFLAGS=$pkg_cv_HILDON2_CFLAGS | |
34584 | HILDON2_LIBS=$pkg_cv_HILDON2_LIBS | |
3dd30495 VZ |
34585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
34586 | $as_echo "yes" >&6; } | |
426d19f1 | 34587 | |
b9b55ad5 | 34588 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $HILDON2_LIBS" |
426d19f1 JS |
34589 | CFLAGS="$CFLAGS $HILDON2_CFLAGS" |
34590 | CXXFLAGS="$CXXFLAGS $HILDON2_CFLAGS" | |
3dd30495 | 34591 | $as_echo "#define wxUSE_LIBHILDON2 1" >>confdefs.h |
426d19f1 JS |
34592 | |
34593 | ||
34594 | fi | |
34595 | fi | |
3565d135 RR |
34596 | fi |
34597 | fi | |
d1c38808 | 34598 | |
a848cd7e | 34599 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
3dd30495 | 34600 | $as_echo "#define wxUSE_CMDLINE_PARSER 1" >>confdefs.h |
a848cd7e SC |
34601 | |
34602 | fi | |
34603 | ||
34604 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
3dd30495 | 34605 | $as_echo "#define wxUSE_STOPWATCH 1" >>confdefs.h |
a848cd7e SC |
34606 | |
34607 | fi | |
34608 | ||
34609 | if test "$wxUSE_DATETIME" = "yes"; then | |
3dd30495 | 34610 | $as_echo "#define wxUSE_DATETIME 1" >>confdefs.h |
a848cd7e SC |
34611 | |
34612 | fi | |
34613 | ||
34614 | if test "$wxUSE_FILE" = "yes"; then | |
3dd30495 | 34615 | $as_echo "#define wxUSE_FILE 1" >>confdefs.h |
a848cd7e SC |
34616 | |
34617 | fi | |
34618 | ||
34619 | if test "$wxUSE_FFILE" = "yes"; then | |
3dd30495 | 34620 | $as_echo "#define wxUSE_FFILE 1" >>confdefs.h |
a848cd7e SC |
34621 | |
34622 | fi | |
34623 | ||
9e8e867f | 34624 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
26e422a9 | 34625 | if test "$wxUSE_STREAMS" != yes; then |
3dd30495 VZ |
34626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxArchive requires wxStreams... disabled" >&5 |
34627 | $as_echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;} | |
916af76f | 34628 | wxUSE_ARCHIVE_STREAMS=no |
26e422a9 | 34629 | else |
3dd30495 | 34630 | $as_echo "#define wxUSE_ARCHIVE_STREAMS 1" >>confdefs.h |
81f90336 | 34631 | |
26e422a9 | 34632 | fi |
81f90336 MW |
34633 | fi |
34634 | ||
34635 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 34636 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
3dd30495 VZ |
34637 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxZip requires wxArchive... disabled" >&5 |
34638 | $as_echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
81f90336 | 34639 | elif test "$wxUSE_ZLIB" = "no"; then |
3dd30495 VZ |
34640 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxZip requires wxZlib... disabled" >&5 |
34641 | $as_echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
81f90336 | 34642 | else |
3dd30495 | 34643 | $as_echo "#define wxUSE_ZIPSTREAM 1" >>confdefs.h |
a848cd7e | 34644 | |
81f90336 | 34645 | fi |
a848cd7e SC |
34646 | fi |
34647 | ||
26e422a9 MW |
34648 | if test "$wxUSE_TARSTREAM" = "yes"; then |
34649 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then | |
3dd30495 VZ |
34650 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxTar requires wxArchive... disabled" >&5 |
34651 | $as_echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;} | |
26e422a9 | 34652 | else |
3dd30495 | 34653 | $as_echo "#define wxUSE_TARSTREAM 1" >>confdefs.h |
26e422a9 MW |
34654 | |
34655 | fi | |
34656 | fi | |
34657 | ||
a0219e45 | 34658 | if test "$wxUSE_FILE_HISTORY" = "yes"; then |
3dd30495 | 34659 | $as_echo "#define wxUSE_FILE_HISTORY 1" >>confdefs.h |
a0219e45 VS |
34660 | |
34661 | fi | |
34662 | ||
916af76f | 34663 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
f8f6c91a | 34664 | if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then |
3dd30495 VZ |
34665 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5 |
34666 | $as_echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;} | |
916af76f | 34667 | wxUSE_FILESYSTEM=no |
f8f6c91a | 34668 | else |
3dd30495 | 34669 | $as_echo "#define wxUSE_FILESYSTEM 1" >>confdefs.h |
f8f6c91a MW |
34670 | |
34671 | fi | |
34672 | fi | |
34673 | ||
26e422a9 | 34674 | if test "$wxUSE_FS_ARCHIVE" = "yes"; then |
916af76f | 34675 | if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then |
3dd30495 VZ |
34676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5 |
34677 | $as_echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;} | |
26e422a9 | 34678 | else |
3dd30495 | 34679 | $as_echo "#define wxUSE_FS_ARCHIVE 1" >>confdefs.h |
26e422a9 MW |
34680 | |
34681 | fi | |
34682 | fi | |
34683 | ||
916af76f MW |
34684 | if test "$wxUSE_FS_ZIP" = "yes"; then |
34685 | if test "$wxUSE_FS_ARCHIVE" != yes; then | |
3dd30495 VZ |
34686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5 |
34687 | $as_echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;} | |
916af76f | 34688 | else |
3dd30495 | 34689 | $as_echo "#define wxUSE_FS_ZIP 1" >>confdefs.h |
916af76f MW |
34690 | |
34691 | fi | |
34692 | fi | |
34693 | ||
a848cd7e | 34694 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 | 34695 | if test "$USE_UNIX" != 1; then |
3dd30495 VZ |
34696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 |
34697 | $as_echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
18228ab4 MW |
34698 | wxUSE_ON_FATAL_EXCEPTION=no |
34699 | else | |
3dd30495 | 34700 | $as_echo "#define wxUSE_ON_FATAL_EXCEPTION 1" >>confdefs.h |
a848cd7e | 34701 | |
18228ab4 | 34702 | fi |
a848cd7e SC |
34703 | fi |
34704 | ||
eaff0f0d | 34705 | if test "$wxUSE_STACKWALKER" = "yes"; then |
3dd30495 | 34706 | $as_echo "#define wxUSE_STACKWALKER 1" >>confdefs.h |
eaff0f0d VZ |
34707 | |
34708 | fi | |
34709 | ||
36b6448c | 34710 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
6517fa86 | 34711 | if test "$USE_UNIX" != 1 -a "$USE_WIN32" != 1; then |
3dd30495 VZ |
34712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 |
34713 | $as_echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
34714 | wxUSE_DEBUGREPORT=no |
34715 | else | |
3dd30495 | 34716 | $as_echo "#define wxUSE_DEBUGREPORT 1" >>confdefs.h |
36b6448c | 34717 | |
21dfc162 MW |
34718 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
34719 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
34720 | fi | |
dfe0c803 | 34721 | fi |
36b6448c VZ |
34722 | fi |
34723 | ||
a848cd7e | 34724 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
3dd30495 | 34725 | $as_echo "#define wxUSE_SNGLINST_CHECKER 1" >>confdefs.h |
a848cd7e SC |
34726 | |
34727 | fi | |
34728 | ||
34729 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
3dd30495 | 34730 | $as_echo "#define wxUSE_BUSYINFO 1" >>confdefs.h |
a848cd7e SC |
34731 | |
34732 | fi | |
34733 | ||
97e477c5 VZ |
34734 | if test "$wxUSE_HOTKEY" = "yes"; then |
34735 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_OSX_COCOA" != 1 -a "$wxUSE_OSX_CARBON" != 1; then | |
3dd30495 VZ |
34736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Hot keys not supported by the current toolkit, disabled" >&5 |
34737 | $as_echo "$as_me: WARNING: Hot keys not supported by the current toolkit, disabled" >&2;} | |
97e477c5 VZ |
34738 | wxUSE_HOTKEY=no |
34739 | fi | |
34740 | elif test "$wxUSE_HOTKEY" = "auto"; then | |
34741 | if test "$wxUSE_MSW" = 1 -o "$wxUSE_OSX_COCOA" = 1 -o "$wxUSE_OSX_CARBON" = 1; then | |
34742 | wxUSE_HOTKEY=yes | |
34743 | fi | |
34744 | fi | |
34745 | if test "$wxUSE_HOTKEY" = "yes"; then | |
3dd30495 | 34746 | $as_echo "#define wxUSE_HOTKEY 1" >>confdefs.h |
97e477c5 VZ |
34747 | |
34748 | fi | |
34749 | ||
01871bf6 | 34750 | if test "$wxUSE_STD_CONTAINERS" = "yes"; then |
3dd30495 | 34751 | $as_echo "#define wxUSE_STD_CONTAINERS 1" >>confdefs.h |
01871bf6 VZ |
34752 | |
34753 | fi | |
34754 | ||
a848cd7e | 34755 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then |
3dd30495 | 34756 | $as_echo "#define wxUSE_STD_IOSTREAM 1" >>confdefs.h |
a848cd7e SC |
34757 | |
34758 | fi | |
34759 | ||
59746b65 | 34760 | if test "$wxUSE_STD_STRING" = "yes"; then |
3dd30495 | 34761 | $as_echo "#define wxUSE_STD_STRING 1" >>confdefs.h |
59746b65 MW |
34762 | |
34763 | fi | |
34764 | ||
01871bf6 | 34765 | if test "$wxUSE_STD_STRING_CONV_IN_WXSTRING" = "yes"; then |
3dd30495 | 34766 | $as_echo "#define wxUSE_STD_STRING_CONV_IN_WXSTRING 1" >>confdefs.h |
01871bf6 VZ |
34767 | |
34768 | fi | |
34769 | ||
07158944 | 34770 | if test "$wxUSE_STDPATHS" = "yes"; then |
3dd30495 | 34771 | $as_echo "#define wxUSE_STDPATHS 1" >>confdefs.h |
07158944 VZ |
34772 | |
34773 | fi | |
34774 | ||
a848cd7e | 34775 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
3dd30495 | 34776 | $as_echo "#define wxUSE_TEXTBUFFER 1" >>confdefs.h |
a848cd7e SC |
34777 | |
34778 | fi | |
34779 | ||
34780 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
34781 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
3dd30495 VZ |
34782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
34783 | $as_echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
a848cd7e | 34784 | else |
3dd30495 | 34785 | $as_echo "#define wxUSE_TEXTFILE 1" >>confdefs.h |
a848cd7e SC |
34786 | |
34787 | fi | |
34788 | fi | |
34789 | ||
34790 | if test "$wxUSE_CONFIG" = "yes" ; then | |
34791 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
3dd30495 VZ |
34792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
34793 | $as_echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
a848cd7e | 34794 | else |
3dd30495 | 34795 | $as_echo "#define wxUSE_CONFIG 1" >>confdefs.h |
89be85c2 | 34796 | |
3dd30495 | 34797 | $as_echo "#define wxUSE_CONFIG_NATIVE 1" >>confdefs.h |
a848cd7e SC |
34798 | |
34799 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
34800 | fi | |
34801 | fi | |
34802 | ||
34803 | if test "$wxUSE_INTL" = "yes" ; then | |
34804 | if test "$wxUSE_FILE" != "yes"; then | |
3dd30495 VZ |
34805 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I18n code requires wxFile... disabled" >&5 |
34806 | $as_echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
a848cd7e | 34807 | else |
3dd30495 | 34808 | $as_echo "#define wxUSE_INTL 1" >>confdefs.h |
a848cd7e SC |
34809 | |
34810 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
34811 | GUIDIST="$GUIDIST INTL_DIST" | |
34812 | fi | |
34813 | fi | |
34814 | ||
41148443 | 34815 | if test "$wxUSE_XLOCALE" = "yes" ; then |
3dd30495 | 34816 | $as_echo "#define wxUSE_XLOCALE 1" >>confdefs.h |
6e4ae332 | 34817 | |
3dd30495 | 34818 | ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h> |
aa113d87 | 34819 | #include <locale.h> |
3dd30495 | 34820 | " |
eff9d7f5 | 34821 | if test "x$ac_cv_type_locale_t" = xyes; then : |
6e4ae332 VZ |
34822 | |
34823 | cat >>confdefs.h <<_ACEOF | |
34824 | #define HAVE_LOCALE_T 1 | |
34825 | _ACEOF | |
34826 | ||
34827 | ||
34828 | fi | |
34829 | ||
34830 | fi | |
34831 | ||
a848cd7e | 34832 | if test "$wxUSE_LOG" = "yes"; then |
3dd30495 | 34833 | $as_echo "#define wxUSE_LOG 1" >>confdefs.h |
a848cd7e SC |
34834 | |
34835 | ||
34836 | if test "$wxUSE_LOGGUI" = "yes"; then | |
3dd30495 | 34837 | $as_echo "#define wxUSE_LOGGUI 1" >>confdefs.h |
a848cd7e SC |
34838 | |
34839 | fi | |
34840 | ||
34841 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
3dd30495 | 34842 | $as_echo "#define wxUSE_LOGWINDOW 1" >>confdefs.h |
a848cd7e SC |
34843 | |
34844 | fi | |
34845 | ||
34846 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
3dd30495 | 34847 | $as_echo "#define wxUSE_LOG_DIALOG 1" >>confdefs.h |
a848cd7e SC |
34848 | |
34849 | fi | |
0b78747f MW |
34850 | |
34851 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
34852 | fi |
34853 | ||
34854 | if test "$wxUSE_LONGLONG" = "yes"; then | |
3dd30495 | 34855 | $as_echo "#define wxUSE_LONGLONG 1" >>confdefs.h |
a848cd7e SC |
34856 | |
34857 | fi | |
34858 | ||
34859 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
3dd30495 | 34860 | $as_echo "#define wxUSE_GEOMETRY 1" >>confdefs.h |
a848cd7e SC |
34861 | |
34862 | fi | |
34863 | ||
4db03d26 | 34864 | if test "$wxUSE_BASE64" = "yes"; then |
3dd30495 | 34865 | $as_echo "#define wxUSE_BASE64 1" >>confdefs.h |
4db03d26 VZ |
34866 | |
34867 | fi | |
34868 | ||
a848cd7e | 34869 | if test "$wxUSE_STREAMS" = "yes" ; then |
3dd30495 | 34870 | $as_echo "#define wxUSE_STREAMS 1" >>confdefs.h |
a848cd7e SC |
34871 | |
34872 | fi | |
34873 | ||
8b6682b9 | 34874 | if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then |
3dd30495 | 34875 | $as_echo "#define wxUSE_PRINTF_POS_PARAMS 1" >>confdefs.h |
8b6682b9 JS |
34876 | |
34877 | fi | |
34878 | ||
931d7698 | 34879 | if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then |
3dd30495 | 34880 | $as_echo "#define wxUSE_OBJC_UNIQUIFYING 1" >>confdefs.h |
931d7698 DE |
34881 | |
34882 | fi | |
8b6682b9 | 34883 | |
a848cd7e | 34884 | |
39931206 | 34885 | if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then |
3dd30495 | 34886 | $as_echo "#define wxUSE_CONSOLE_EVENTLOOP 1" >>confdefs.h |
39931206 VZ |
34887 | |
34888 | ||
34889 | if test "$wxUSE_UNIX" = "yes"; then | |
34890 | if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then | |
3dd30495 | 34891 | $as_echo "#define wxUSE_SELECT_DISPATCHER 1" >>confdefs.h |
39931206 VZ |
34892 | |
34893 | fi | |
34894 | ||
34895 | if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then | |
3dd30495 VZ |
34896 | for ac_header in sys/epoll.h |
34897 | do : | |
34898 | ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default | |
34899 | " | |
eff9d7f5 | 34900 | if test "x$ac_cv_header_sys_epoll_h" = xyes; then : |
39931206 | 34901 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 34902 | #define HAVE_SYS_EPOLL_H 1 |
39931206 VZ |
34903 | _ACEOF |
34904 | ||
34905 | fi | |
34906 | ||
34907 | done | |
34908 | ||
34909 | if test "$ac_cv_header_sys_epoll_h" = "yes"; then | |
3dd30495 | 34910 | $as_echo "#define wxUSE_EPOLL_DISPATCHER 1" >>confdefs.h |
39931206 VZ |
34911 | |
34912 | else | |
3dd30495 VZ |
34913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5 |
34914 | $as_echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;} | |
39931206 VZ |
34915 | fi |
34916 | fi | |
34917 | fi | |
34918 | fi | |
34919 | ||
34920 | ||
5f6cafd1 | 34921 | for ac_func in gettimeofday ftime |
3dd30495 VZ |
34922 | do : |
34923 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34924 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
34925 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5f6cafd1 | 34926 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 34927 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5f6cafd1 VZ |
34928 | _ACEOF |
34929 | break | |
34930 | fi | |
34931 | done | |
34932 | ||
34933 | ||
34934 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
3dd30495 VZ |
34935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes two arguments" >&5 |
34936 | $as_echo_n "checking whether gettimeofday takes two arguments... " >&6; } | |
eff9d7f5 | 34937 | if ${wx_cv_func_gettimeofday_has_2_args+:} false; then : |
3dd30495 | 34938 | $as_echo_n "(cached) " >&6 |
5f6cafd1 VZ |
34939 | else |
34940 | ||
3dd30495 | 34941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5f6cafd1 VZ |
34942 | /* end confdefs.h. */ |
34943 | ||
34944 | #include <sys/time.h> | |
34945 | #include <unistd.h> | |
34946 | ||
34947 | int | |
34948 | main () | |
34949 | { | |
34950 | ||
34951 | struct timeval tv; | |
34952 | gettimeofday(&tv, NULL); | |
34953 | ||
34954 | ; | |
34955 | return 0; | |
34956 | } | |
34957 | _ACEOF | |
3dd30495 | 34958 | if ac_fn_c_try_compile "$LINENO"; then : |
5f6cafd1 VZ |
34959 | wx_cv_func_gettimeofday_has_2_args=yes |
34960 | else | |
3dd30495 | 34961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5f6cafd1 VZ |
34962 | /* end confdefs.h. */ |
34963 | ||
34964 | #include <sys/time.h> | |
34965 | #include <unistd.h> | |
34966 | ||
34967 | int | |
34968 | main () | |
34969 | { | |
34970 | ||
34971 | struct timeval tv; | |
34972 | gettimeofday(&tv); | |
34973 | ||
34974 | ; | |
34975 | return 0; | |
34976 | } | |
34977 | _ACEOF | |
3dd30495 | 34978 | if ac_fn_c_try_compile "$LINENO"; then : |
5f6cafd1 VZ |
34979 | wx_cv_func_gettimeofday_has_2_args=no |
34980 | else | |
5f6cafd1 | 34981 | |
3dd30495 VZ |
34982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to determine number of gettimeofday() arguments" >&5 |
34983 | $as_echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
5f6cafd1 VZ |
34984 | wx_cv_func_gettimeofday_has_2_args=unknown |
34985 | ||
34986 | ||
34987 | fi | |
47964710 | 34988 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5f6cafd1 VZ |
34989 | |
34990 | fi | |
47964710 | 34991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5f6cafd1 VZ |
34992 | |
34993 | fi | |
3dd30495 VZ |
34994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_func_gettimeofday_has_2_args" >&5 |
34995 | $as_echo "$wx_cv_func_gettimeofday_has_2_args" >&6; } | |
5f6cafd1 VZ |
34996 | |
34997 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
3dd30495 | 34998 | $as_echo "#define WX_GETTIMEOFDAY_NO_TZ 1" >>confdefs.h |
5f6cafd1 VZ |
34999 | |
35000 | fi | |
35001 | fi | |
35002 | ||
a848cd7e | 35003 | if test "$wxUSE_DATETIME" = "yes"; then |
3dd30495 VZ |
35004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable in <time.h>" >&5 |
35005 | $as_echo_n "checking for timezone variable in <time.h>... " >&6; } | |
eff9d7f5 | 35006 | if ${wx_cv_var_timezone+:} false; then : |
3dd30495 | 35007 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
35008 | else |
35009 | ||
47964710 | 35010 | ac_ext=cpp |
715d53e4 VZ |
35011 | ac_cpp='$CXXCPP $CPPFLAGS' |
35012 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35013 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35014 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35015 | ||
3dd30495 | 35016 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
35017 | /* end confdefs.h. */ |
35018 | ||
35019 | #include <time.h> | |
35020 | ||
35021 | int | |
35022 | main () | |
35023 | { | |
35024 | ||
35025 | int tz; | |
35026 | tz = timezone; | |
35027 | ||
35028 | ; | |
35029 | return 0; | |
35030 | } | |
35031 | _ACEOF | |
3dd30495 | 35032 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
35033 | |
35034 | wx_cv_var_timezone=timezone | |
35035 | ||
35036 | else | |
a848cd7e | 35037 | |
3dd30495 | 35038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
35039 | /* end confdefs.h. */ |
35040 | ||
35041 | #include <time.h> | |
35042 | ||
35043 | int | |
35044 | main () | |
35045 | { | |
35046 | ||
35047 | int tz; | |
35048 | tz = _timezone; | |
35049 | ||
35050 | ; | |
35051 | return 0; | |
35052 | } | |
35053 | _ACEOF | |
3dd30495 | 35054 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
35055 | |
35056 | wx_cv_var_timezone=_timezone | |
35057 | ||
35058 | else | |
a848cd7e | 35059 | |
3dd30495 | 35060 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
35061 | /* end confdefs.h. */ |
35062 | ||
35063 | #include <time.h> | |
35064 | ||
35065 | int | |
35066 | main () | |
35067 | { | |
35068 | ||
35069 | int tz; | |
35070 | tz = __timezone; | |
35071 | ||
35072 | ; | |
35073 | return 0; | |
35074 | } | |
35075 | _ACEOF | |
3dd30495 | 35076 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
35077 | |
35078 | wx_cv_var_timezone=__timezone | |
35079 | ||
35080 | else | |
a848cd7e SC |
35081 | |
35082 | if test "$USE_DOS" = 0 ; then | |
3dd30495 VZ |
35083 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no timezone variable" >&5 |
35084 | $as_echo "$as_me: WARNING: no timezone variable" >&2;} | |
a848cd7e SC |
35085 | fi |
35086 | ||
35087 | ||
35088 | fi | |
47964710 | 35089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35090 | |
35091 | ||
35092 | fi | |
47964710 | 35093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35094 | |
35095 | ||
35096 | fi | |
47964710 | 35097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
715d53e4 VZ |
35098 | ac_ext=c |
35099 | ac_cpp='$CPP $CPPFLAGS' | |
35100 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35101 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35102 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35103 | ||
a848cd7e SC |
35104 | |
35105 | ||
35106 | fi | |
3dd30495 VZ |
35107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_var_timezone" >&5 |
35108 | $as_echo "$wx_cv_var_timezone" >&6; } | |
a848cd7e SC |
35109 | |
35110 | if test "x$wx_cv_var_timezone" != x ; then | |
35111 | cat >>confdefs.h <<_ACEOF | |
35112 | #define WX_TIMEZONE $wx_cv_var_timezone | |
35113 | _ACEOF | |
35114 | ||
35115 | fi | |
35116 | ||
3dd30495 VZ |
35117 | for ac_func in localtime |
35118 | do : | |
35119 | ac_fn_c_check_func "$LINENO" "localtime" "ac_cv_func_localtime" | |
eff9d7f5 | 35120 | if test "x$ac_cv_func_localtime" = xyes; then : |
39b61aa3 | 35121 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 35122 | #define HAVE_LOCALTIME 1 |
39b61aa3 VZ |
35123 | _ACEOF |
35124 | ||
35125 | fi | |
35126 | done | |
35127 | ||
35128 | ||
35129 | if test "$ac_cv_func_localtime" = "yes"; then | |
3dd30495 VZ |
35130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5 |
35131 | $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; } | |
eff9d7f5 | 35132 | if ${wx_cv_struct_tm_has_gmtoff+:} false; then : |
3dd30495 | 35133 | $as_echo_n "(cached) " >&6 |
39b61aa3 VZ |
35134 | else |
35135 | ||
3dd30495 | 35136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
39b61aa3 VZ |
35137 | /* end confdefs.h. */ |
35138 | ||
35139 | #include <time.h> | |
35140 | ||
35141 | int | |
35142 | main () | |
35143 | { | |
35144 | ||
35145 | struct tm tm; | |
35146 | tm.tm_gmtoff++; | |
35147 | ||
35148 | ; | |
35149 | return 0; | |
35150 | } | |
35151 | _ACEOF | |
3dd30495 | 35152 | if ac_fn_c_try_compile "$LINENO"; then : |
39b61aa3 VZ |
35153 | |
35154 | wx_cv_struct_tm_has_gmtoff=yes | |
35155 | ||
35156 | else | |
3dd30495 | 35157 | wx_cv_struct_tm_has_gmtoff=no |
39b61aa3 VZ |
35158 | |
35159 | fi | |
47964710 | 35160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
39b61aa3 VZ |
35161 | |
35162 | fi | |
3dd30495 VZ |
35163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_struct_tm_has_gmtoff" >&5 |
35164 | $as_echo "$wx_cv_struct_tm_has_gmtoff" >&6; } | |
39b61aa3 VZ |
35165 | fi |
35166 | ||
35167 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
3dd30495 | 35168 | $as_echo "#define WX_GMTOFF_IN_TM 1" >>confdefs.h |
39b61aa3 VZ |
35169 | |
35170 | fi | |
35171 | ||
a848cd7e SC |
35172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
35173 | fi | |
35174 | ||
35175 | ||
eaf4bde6 VZ |
35176 | for ac_func in setpriority |
35177 | do : | |
35178 | ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority" | |
35179 | if test "x$ac_cv_func_setpriority" = xyes; then : | |
35180 | cat >>confdefs.h <<_ACEOF | |
35181 | #define HAVE_SETPRIORITY 1 | |
35182 | _ACEOF | |
35183 | ||
35184 | fi | |
35185 | done | |
35186 | ||
35187 | ||
35188 | ||
a848cd7e SC |
35189 | if test "$wxUSE_SOCKETS" = "yes"; then |
35190 | if test "$TOOLKIT" != "MSW"; then | |
3dd30495 | 35191 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
eff9d7f5 | 35192 | if test "x$ac_cv_func_socket" = xyes; then : |
ac1cb8d3 | 35193 | |
a848cd7e SC |
35194 | else |
35195 | ||
3dd30495 VZ |
35196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
35197 | $as_echo_n "checking for socket in -lsocket... " >&6; } | |
eff9d7f5 | 35198 | if ${ac_cv_lib_socket_socket+:} false; then : |
3dd30495 | 35199 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
35200 | else |
35201 | ac_check_lib_save_LIBS=$LIBS | |
35202 | LIBS="-lsocket $LIBS" | |
3dd30495 | 35203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
35204 | /* end confdefs.h. */ |
35205 | ||
47964710 VS |
35206 | /* Override any GCC internal prototype to avoid an error. |
35207 | Use char because int might match the return type of a GCC | |
35208 | builtin and then its argument prototype would still apply. */ | |
a848cd7e SC |
35209 | #ifdef __cplusplus |
35210 | extern "C" | |
35211 | #endif | |
a848cd7e SC |
35212 | char socket (); |
35213 | int | |
35214 | main () | |
35215 | { | |
47964710 | 35216 | return socket (); |
a848cd7e SC |
35217 | ; |
35218 | return 0; | |
35219 | } | |
35220 | _ACEOF | |
3dd30495 | 35221 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
35222 | ac_cv_lib_socket_socket=yes |
35223 | else | |
3dd30495 | 35224 | ac_cv_lib_socket_socket=no |
a848cd7e | 35225 | fi |
3dd30495 VZ |
35226 | rm -f core conftest.err conftest.$ac_objext \ |
35227 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35228 | LIBS=$ac_check_lib_save_LIBS |
35229 | fi | |
3dd30495 VZ |
35230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
35231 | $as_echo "$ac_cv_lib_socket_socket" >&6; } | |
eff9d7f5 | 35232 | if test "x$ac_cv_lib_socket_socket" = xyes; then : |
a848cd7e SC |
35233 | if test "$INET_LINK" != " -lsocket"; then |
35234 | INET_LINK="$INET_LINK -lsocket" | |
35235 | fi | |
35236 | else | |
35237 | ||
3dd30495 VZ |
35238 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: socket library not found - sockets will be disabled" >&5 |
35239 | $as_echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
a848cd7e SC |
35240 | wxUSE_SOCKETS=no |
35241 | ||
35242 | ||
35243 | fi | |
35244 | ||
35245 | ||
35246 | ||
35247 | fi | |
35248 | ||
35249 | fi | |
35250 | fi | |
35251 | ||
35252 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
35253 | if test "$TOOLKIT" != "MSW"; then | |
3dd30495 VZ |
35254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is the type of the third argument of getsockname" >&5 |
35255 | $as_echo_n "checking what is the type of the third argument of getsockname... " >&6; } | |
eff9d7f5 | 35256 | if ${wx_cv_type_getsockname3+:} false; then : |
3dd30495 | 35257 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
35258 | else |
35259 | ||
47964710 | 35260 | ac_ext=cpp |
9b8888f9 VZ |
35261 | ac_cpp='$CXXCPP $CPPFLAGS' |
35262 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35263 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35264 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35265 | ||
3dd30495 | 35266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
35267 | /* end confdefs.h. */ |
35268 | ||
35269 | #include <sys/types.h> | |
35270 | #include <sys/socket.h> | |
35271 | ||
35272 | int | |
35273 | main () | |
35274 | { | |
35275 | ||
35276 | socklen_t len; | |
35277 | getsockname(0, 0, &len); | |
35278 | ||
35279 | ; | |
35280 | return 0; | |
35281 | } | |
35282 | _ACEOF | |
3dd30495 | 35283 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
35284 | wx_cv_type_getsockname3=socklen_t |
35285 | else | |
a848cd7e | 35286 | |
9b8888f9 | 35287 | CFLAGS_OLD="$CFLAGS" |
a848cd7e | 35288 | if test "$GCC" = yes ; then |
9b8888f9 | 35289 | CFLAGS="-Werror $CFLAGS" |
a848cd7e SC |
35290 | fi |
35291 | ||
3dd30495 | 35292 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
35293 | /* end confdefs.h. */ |
35294 | ||
35295 | #include <sys/types.h> | |
35296 | #include <sys/socket.h> | |
35297 | ||
35298 | int | |
35299 | main () | |
35300 | { | |
35301 | ||
35302 | size_t len; | |
35303 | getsockname(0, 0, &len); | |
35304 | ||
35305 | ; | |
35306 | return 0; | |
35307 | } | |
35308 | _ACEOF | |
3dd30495 | 35309 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
35310 | wx_cv_type_getsockname3=size_t |
35311 | else | |
3dd30495 | 35312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
35313 | /* end confdefs.h. */ |
35314 | ||
35315 | #include <sys/types.h> | |
35316 | #include <sys/socket.h> | |
35317 | ||
35318 | int | |
35319 | main () | |
35320 | { | |
35321 | ||
35322 | int len; | |
35323 | getsockname(0, 0, &len); | |
35324 | ||
35325 | ; | |
35326 | return 0; | |
35327 | } | |
35328 | _ACEOF | |
3dd30495 | 35329 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a848cd7e SC |
35330 | wx_cv_type_getsockname3=int |
35331 | else | |
3dd30495 | 35332 | wx_cv_type_getsockname3=unknown |
a848cd7e SC |
35333 | |
35334 | fi | |
47964710 | 35335 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35336 | |
35337 | fi | |
47964710 | 35338 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 35339 | |
9b8888f9 | 35340 | CFLAGS="$CFLAGS_OLD" |
a848cd7e SC |
35341 | |
35342 | ||
35343 | fi | |
47964710 | 35344 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9b8888f9 VZ |
35345 | ac_ext=c |
35346 | ac_cpp='$CPP $CPPFLAGS' | |
35347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35350 | ||
a848cd7e SC |
35351 | |
35352 | fi | |
3dd30495 VZ |
35353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_getsockname3" >&5 |
35354 | $as_echo "$wx_cv_type_getsockname3" >&6; } | |
a848cd7e SC |
35355 | |
35356 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
35357 | wxUSE_SOCKETS=no | |
3dd30495 VZ |
35358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
35359 | $as_echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
a848cd7e SC |
35360 | else |
35361 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 35362 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
35363 | _ACEOF |
35364 | ||
35365 | fi | |
3dd30495 VZ |
35366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is the type of the fifth argument of getsockopt" >&5 |
35367 | $as_echo_n "checking what is the type of the fifth argument of getsockopt... " >&6; } | |
eff9d7f5 | 35368 | if ${wx_cv_type_getsockopt5+:} false; then : |
3dd30495 | 35369 | $as_echo_n "(cached) " >&6 |
5b674b9d DE |
35370 | else |
35371 | ||
47964710 | 35372 | ac_ext=cpp |
ebe1d157 VZ |
35373 | ac_cpp='$CXXCPP $CPPFLAGS' |
35374 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35375 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35376 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35377 | ||
3dd30495 | 35378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5b674b9d DE |
35379 | /* end confdefs.h. */ |
35380 | ||
35381 | #include <sys/types.h> | |
35382 | #include <sys/socket.h> | |
35383 | ||
35384 | int | |
35385 | main () | |
35386 | { | |
35387 | ||
35388 | socklen_t len; | |
35389 | getsockopt(0, 0, 0, 0, &len); | |
35390 | ||
35391 | ; | |
35392 | return 0; | |
35393 | } | |
35394 | _ACEOF | |
3dd30495 | 35395 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5b674b9d DE |
35396 | wx_cv_type_getsockopt5=socklen_t |
35397 | else | |
5b674b9d | 35398 | |
3dd30495 | 35399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5b674b9d DE |
35400 | /* end confdefs.h. */ |
35401 | ||
35402 | #include <sys/types.h> | |
35403 | #include <sys/socket.h> | |
35404 | ||
35405 | int | |
35406 | main () | |
35407 | { | |
35408 | ||
35409 | size_t len; | |
35410 | getsockopt(0, 0, 0, 0, &len); | |
35411 | ||
35412 | ; | |
35413 | return 0; | |
35414 | } | |
35415 | _ACEOF | |
3dd30495 | 35416 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5b674b9d DE |
35417 | wx_cv_type_getsockopt5=size_t |
35418 | else | |
3dd30495 | 35419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5b674b9d DE |
35420 | /* end confdefs.h. */ |
35421 | ||
35422 | #include <sys/types.h> | |
35423 | #include <sys/socket.h> | |
35424 | ||
35425 | int | |
35426 | main () | |
35427 | { | |
35428 | ||
35429 | int len; | |
35430 | getsockopt(0, 0, 0, 0, &len); | |
35431 | ||
35432 | ; | |
35433 | return 0; | |
35434 | } | |
35435 | _ACEOF | |
3dd30495 | 35436 | if ac_fn_cxx_try_compile "$LINENO"; then : |
5b674b9d DE |
35437 | wx_cv_type_getsockopt5=int |
35438 | else | |
3dd30495 | 35439 | wx_cv_type_getsockopt5=unknown |
5b674b9d DE |
35440 | |
35441 | fi | |
47964710 | 35442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5b674b9d DE |
35443 | |
35444 | fi | |
47964710 | 35445 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5b674b9d DE |
35446 | |
35447 | ||
35448 | fi | |
47964710 | 35449 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ebe1d157 VZ |
35450 | ac_ext=c |
35451 | ac_cpp='$CPP $CPPFLAGS' | |
35452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35455 | ||
5b674b9d DE |
35456 | |
35457 | fi | |
3dd30495 VZ |
35458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_getsockopt5" >&5 |
35459 | $as_echo "$wx_cv_type_getsockopt5" >&6; } | |
5b674b9d DE |
35460 | |
35461 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
35462 | wxUSE_SOCKETS=no | |
3dd30495 VZ |
35463 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
35464 | $as_echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
5b674b9d DE |
35465 | else |
35466 | cat >>confdefs.h <<_ACEOF | |
35467 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
35468 | _ACEOF |
35469 | ||
35470 | fi | |
35471 | fi | |
35472 | fi | |
35473 | ||
35474 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
8575ff50 | 35475 | if test "$wxUSE_IPV6" = "yes"; then |
3dd30495 VZ |
35476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have sockaddr_in6" >&5 |
35477 | $as_echo_n "checking whether we have sockaddr_in6... " >&6; } | |
eff9d7f5 | 35478 | if ${wx_cv_type_sockaddr_in6+:} false; then : |
3dd30495 | 35479 | $as_echo_n "(cached) " >&6 |
8575ff50 VZ |
35480 | else |
35481 | ||
3dd30495 | 35482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8575ff50 VZ |
35483 | /* end confdefs.h. */ |
35484 | ||
35485 | #include <sys/types.h> | |
35486 | #include <sys/socket.h> | |
35487 | #include <netinet/in.h> | |
35488 | ||
35489 | int | |
35490 | main () | |
35491 | { | |
35492 | ||
35493 | struct sockaddr_in6 sa6; | |
35494 | ||
35495 | ; | |
35496 | return 0; | |
35497 | } | |
35498 | _ACEOF | |
3dd30495 | 35499 | if ac_fn_c_try_compile "$LINENO"; then : |
8575ff50 VZ |
35500 | wx_cv_type_sockaddr_in6=yes |
35501 | else | |
3dd30495 | 35502 | wx_cv_type_sockaddr_in6=no |
8575ff50 VZ |
35503 | |
35504 | fi | |
8575ff50 VZ |
35505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
35506 | ||
35507 | ||
35508 | fi | |
3dd30495 VZ |
35509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_type_sockaddr_in6" >&5 |
35510 | $as_echo "$wx_cv_type_sockaddr_in6" >&6; } | |
8575ff50 VZ |
35511 | |
35512 | if test "$wx_cv_type_sockaddr_in6"="yes"; then | |
3dd30495 | 35513 | $as_echo "#define wxUSE_IPV6 1" >>confdefs.h |
8575ff50 VZ |
35514 | |
35515 | else | |
3dd30495 VZ |
35516 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IPv6 support not available... disabled" >&5 |
35517 | $as_echo "$as_me: WARNING: IPv6 support not available... disabled" >&2;} | |
8575ff50 VZ |
35518 | fi |
35519 | fi | |
35520 | ||
3dd30495 | 35521 | $as_echo "#define wxUSE_SOCKETS 1" >>confdefs.h |
a848cd7e SC |
35522 | |
35523 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
35524 | fi | |
35525 | ||
35526 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
35527 | if test "$wxUSE_SOCKETS" != "yes"; then | |
3dd30495 VZ |
35528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Protocol classes require sockets... disabled" >&5 |
35529 | $as_echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
a848cd7e SC |
35530 | wxUSE_PROTOCOL=no |
35531 | fi | |
35532 | fi | |
35533 | ||
35534 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
3dd30495 | 35535 | $as_echo "#define wxUSE_PROTOCOL 1" >>confdefs.h |
a848cd7e SC |
35536 | |
35537 | ||
35538 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
3dd30495 | 35539 | $as_echo "#define wxUSE_PROTOCOL_HTTP 1" >>confdefs.h |
a848cd7e SC |
35540 | |
35541 | fi | |
35542 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
3dd30495 | 35543 | $as_echo "#define wxUSE_PROTOCOL_FTP 1" >>confdefs.h |
a848cd7e SC |
35544 | |
35545 | fi | |
35546 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
3dd30495 | 35547 | $as_echo "#define wxUSE_PROTOCOL_FILE 1" >>confdefs.h |
a848cd7e SC |
35548 | |
35549 | fi | |
35550 | else | |
35551 | if test "$wxUSE_FS_INET" = "yes"; then | |
3dd30495 VZ |
35552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HTTP filesystem require protocol classes... disabled" >&5 |
35553 | $as_echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
a848cd7e SC |
35554 | wxUSE_FS_INET="no" |
35555 | fi | |
35556 | fi | |
35557 | ||
35558 | if test "$wxUSE_URL" = "yes"; then | |
35559 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
3dd30495 VZ |
35560 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxURL class requires wxProtocol... disabled" >&5 |
35561 | $as_echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
a848cd7e SC |
35562 | wxUSE_URL=no |
35563 | fi | |
35564 | if test "$wxUSE_URL" = "yes"; then | |
3dd30495 | 35565 | $as_echo "#define wxUSE_URL 1" >>confdefs.h |
a848cd7e SC |
35566 | |
35567 | fi | |
35568 | fi | |
35569 | ||
ca5c6ac3 | 35570 | if test "$wxUSE_VARIANT" = "yes"; then |
3dd30495 | 35571 | $as_echo "#define wxUSE_VARIANT 1" >>confdefs.h |
ca5c6ac3 VZ |
35572 | |
35573 | fi | |
35574 | ||
a848cd7e | 35575 | if test "$wxUSE_FS_INET" = "yes"; then |
3dd30495 | 35576 | $as_echo "#define wxUSE_FS_INET 1" >>confdefs.h |
a848cd7e SC |
35577 | |
35578 | fi | |
35579 | ||
35580 | ||
ee45c548 MW |
35581 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
35582 | wxUSE_JOYSTICK=no | |
35583 | ||
35584 | if test "$TOOLKIT" = "MSW"; then | |
35585 | wxUSE_JOYSTICK=yes | |
35586 | ||
2ea057f9 | 35587 | elif test "$TOOLKIT" = "OSX" -o "$TOOLKIT" = "COCOA"; then |
ee45c548 | 35588 | if test "$USE_DARWIN" = 1; then |
3dd30495 VZ |
35589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking headers have declarations needed for joystick support" >&5 |
35590 | $as_echo_n "checking headers have declarations needed for joystick support... " >&6; } | |
47964710 | 35591 | ac_ext=cpp |
9b8888f9 VZ |
35592 | ac_cpp='$CXXCPP $CPPFLAGS' |
35593 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35594 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35595 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35596 | ||
3dd30495 | 35597 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ee45c548 MW |
35598 | /* end confdefs.h. */ |
35599 | #include <IOKit/hid/IOHIDLib.h> | |
35600 | int | |
35601 | main () | |
35602 | { | |
35603 | IOHIDQueueInterface *qi = NULL; | |
35604 | IOHIDCallbackFunction cb = NULL; | |
35605 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
35606 | ; | |
35607 | return 0; | |
35608 | } | |
35609 | _ACEOF | |
3dd30495 | 35610 | if ac_fn_cxx_try_compile "$LINENO"; then : |
ee45c548 | 35611 | wxUSE_JOYSTICK=yes |
a848cd7e | 35612 | |
ee45c548 | 35613 | fi |
47964710 | 35614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
9b8888f9 VZ |
35615 | ac_ext=c |
35616 | ac_cpp='$CPP $CPPFLAGS' | |
35617 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35618 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35619 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35620 | ||
3dd30495 VZ |
35621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wxUSE_JOYSTICK" >&5 |
35622 | $as_echo "$wxUSE_JOYSTICK" >&6; } | |
ee45c548 MW |
35623 | fi |
35624 | ||
35625 | else | |
3dd30495 VZ |
35626 | for ac_header in linux/joystick.h |
35627 | do : | |
35628 | ac_fn_c_check_header_compile "$LINENO" "linux/joystick.h" "ac_cv_header_linux_joystick_h" "$ac_includes_default | |
35629 | " | |
eff9d7f5 | 35630 | if test "x$ac_cv_header_linux_joystick_h" = xyes; then : |
1f7e12cc | 35631 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 35632 | #define HAVE_LINUX_JOYSTICK_H 1 |
1f7e12cc DE |
35633 | _ACEOF |
35634 | wxUSE_JOYSTICK=yes | |
a848cd7e | 35635 | fi |
a848cd7e | 35636 | |
1f7e12cc | 35637 | done |
a848cd7e | 35638 | |
ee45c548 | 35639 | fi |
4cb1d3da | 35640 | |
ee45c548 | 35641 | if test "$wxUSE_JOYSTICK" = "yes"; then |
3dd30495 | 35642 | $as_echo "#define wxUSE_JOYSTICK 1" >>confdefs.h |
a848cd7e | 35643 | |
ee45c548 MW |
35644 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
35645 | else | |
3dd30495 VZ |
35646 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Joystick not supported by this system... disabled" >&5 |
35647 | $as_echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
35648 | fi |
35649 | fi | |
35650 | ||
35651 | ||
35652 | ||
9795e0db | 35653 | if test "$wxUSE_FONTENUM" = "yes" ; then |
3dd30495 | 35654 | $as_echo "#define wxUSE_FONTENUM 1" >>confdefs.h |
9795e0db VZ |
35655 | |
35656 | fi | |
35657 | ||
a848cd7e | 35658 | if test "$wxUSE_FONTMAP" = "yes" ; then |
3dd30495 | 35659 | $as_echo "#define wxUSE_FONTMAP 1" >>confdefs.h |
a848cd7e SC |
35660 | |
35661 | fi | |
35662 | ||
35663 | if test "$wxUSE_UNICODE" = "yes" ; then | |
3dd30495 | 35664 | $as_echo "#define wxUSE_UNICODE 1" >>confdefs.h |
a848cd7e SC |
35665 | |
35666 | ||
35667 | if test "$USE_WIN32" != 1; then | |
35668 | wxUSE_UNICODE_MSLU=no | |
35669 | fi | |
35670 | ||
35671 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
3dd30495 VZ |
35672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lunicows" >&5 |
35673 | $as_echo_n "checking for main in -lunicows... " >&6; } | |
eff9d7f5 | 35674 | if ${ac_cv_lib_unicows_main+:} false; then : |
3dd30495 | 35675 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
35676 | else |
35677 | ac_check_lib_save_LIBS=$LIBS | |
35678 | LIBS="-lunicows $LIBS" | |
3dd30495 | 35679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a848cd7e SC |
35680 | /* end confdefs.h. */ |
35681 | ||
35682 | ||
35683 | int | |
35684 | main () | |
35685 | { | |
47964710 | 35686 | return main (); |
a848cd7e SC |
35687 | ; |
35688 | return 0; | |
35689 | } | |
35690 | _ACEOF | |
3dd30495 | 35691 | if ac_fn_c_try_link "$LINENO"; then : |
a848cd7e SC |
35692 | ac_cv_lib_unicows_main=yes |
35693 | else | |
3dd30495 | 35694 | ac_cv_lib_unicows_main=no |
a848cd7e | 35695 | fi |
3dd30495 VZ |
35696 | rm -f core conftest.err conftest.$ac_objext \ |
35697 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35698 | LIBS=$ac_check_lib_save_LIBS |
35699 | fi | |
3dd30495 VZ |
35700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unicows_main" >&5 |
35701 | $as_echo "$ac_cv_lib_unicows_main" >&6; } | |
eff9d7f5 | 35702 | if test "x$ac_cv_lib_unicows_main" = xyes; then : |
a848cd7e | 35703 | |
3dd30495 | 35704 | $as_echo "#define wxUSE_UNICODE_MSLU 1" >>confdefs.h |
a848cd7e SC |
35705 | |
35706 | ||
35707 | else | |
35708 | ||
3dd30495 | 35709 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
a848cd7e | 35710 | Applications will only run on Windows NT/2000/XP!" >&5 |
3dd30495 | 35711 | $as_echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
a848cd7e SC |
35712 | Applications will only run on Windows NT/2000/XP!" >&2;} |
35713 | wxUSE_UNICODE_MSLU=no | |
35714 | ||
35715 | fi | |
35716 | ||
35717 | fi | |
35718 | fi | |
35719 | ||
81727065 | 35720 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then |
3dd30495 | 35721 | $as_echo "#define wxUSE_UNICODE_UTF8 1" >>confdefs.h |
81727065 | 35722 | |
111d9948 VS |
35723 | |
35724 | if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then | |
3dd30495 | 35725 | $as_echo "#define wxUSE_UTF8_LOCALE_ONLY 1" >>confdefs.h |
111d9948 VS |
35726 | |
35727 | fi | |
81727065 VS |
35728 | fi |
35729 | ||
a848cd7e | 35730 | |
a848cd7e | 35731 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
3dd30495 | 35732 | $as_echo "#define wxUSE_CONSTRAINTS 1" >>confdefs.h |
a848cd7e SC |
35733 | |
35734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
35735 | fi | |
35736 | ||
8a7b1113 | 35737 | if test "$wxUSE_MDI" = "yes"; then |
3dd30495 | 35738 | $as_echo "#define wxUSE_MDI 1" >>confdefs.h |
8a7b1113 VZ |
35739 | |
35740 | ||
35741 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
3dd30495 | 35742 | $as_echo "#define wxUSE_MDI_ARCHITECTURE 1" >>confdefs.h |
a848cd7e | 35743 | |
8a7b1113 VZ |
35744 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
35745 | fi | |
a848cd7e SC |
35746 | fi |
35747 | ||
35748 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
3dd30495 | 35749 | $as_echo "#define wxUSE_DOC_VIEW_ARCHITECTURE 1" >>confdefs.h |
a848cd7e SC |
35750 | |
35751 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
a848cd7e SC |
35752 | fi |
35753 | ||
35754 | if test "$wxUSE_HELP" = "yes"; then | |
3dd30495 | 35755 | $as_echo "#define wxUSE_HELP 1" >>confdefs.h |
a848cd7e SC |
35756 | |
35757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
35758 | ||
35759 | if test "$wxUSE_MSW" = 1; then | |
35760 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
3dd30495 | 35761 | $as_echo "#define wxUSE_MS_HTML_HELP 1" >>confdefs.h |
a848cd7e SC |
35762 | |
35763 | fi | |
35764 | fi | |
35765 | ||
35766 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
35767 | if test "$wxUSE_HTML" = "yes"; then | |
3dd30495 | 35768 | $as_echo "#define wxUSE_WXHTML_HELP 1" >>confdefs.h |
a848cd7e SC |
35769 | |
35770 | else | |
3dd30495 VZ |
35771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
35772 | $as_echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
a848cd7e SC |
35773 | wxUSE_WXHTML_HELP=no |
35774 | fi | |
35775 | fi | |
35776 | fi | |
35777 | ||
35778 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
3dd30495 | 35779 | $as_echo "#define wxUSE_PRINTING_ARCHITECTURE 1" >>confdefs.h |
a848cd7e | 35780 | |
a848cd7e SC |
35781 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" |
35782 | fi | |
35783 | ||
b0fc907f | 35784 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
3dd30495 | 35785 | $as_echo "#define wxUSE_POSTSCRIPT 1" >>confdefs.h |
b0fc907f VZ |
35786 | |
35787 | fi | |
35788 | ||
3dd30495 | 35789 | $as_echo "#define wxUSE_AFM_FOR_POSTSCRIPT 1" >>confdefs.h |
b0fc907f VZ |
35790 | |
35791 | ||
b0fc907f | 35792 | if test "$wxUSE_SVG" = "yes"; then |
3dd30495 | 35793 | $as_echo "#define wxUSE_SVG 1" >>confdefs.h |
b0fc907f VZ |
35794 | |
35795 | fi | |
a848cd7e SC |
35796 | |
35797 | ||
efdf6afe VZ |
35798 | if test "$wxUSE_METAFILE" = "yes"; then |
35799 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
3dd30495 VZ |
35800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxMetafile is not available on this system... disabled" >&5 |
35801 | $as_echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
efdf6afe VZ |
35802 | wxUSE_METAFILE=no |
35803 | fi | |
c2d4ceaf VZ |
35804 | elif test "$wxUSE_METAFILE" = "auto"; then |
35805 | if test "$wxUSE_MSW" = 1 -o "$wxUSE_MAC" = 1 -o "$wxUSE_PM" = 1; then | |
35806 | wxUSE_METAFILE=yes | |
35807 | fi | |
35808 | fi | |
35809 | ||
35810 | if test "$wxUSE_METAFILE" = "yes"; then | |
3dd30495 | 35811 | $as_echo "#define wxUSE_METAFILE 1" >>confdefs.h |
c2d4ceaf VZ |
35812 | |
35813 | if test "$wxUSE_MSW" = 1; then | |
3dd30495 | 35814 | $as_echo "#define wxUSE_ENH_METAFILE 1" >>confdefs.h |
c2d4ceaf VZ |
35815 | |
35816 | fi | |
efdf6afe VZ |
35817 | fi |
35818 | ||
35819 | ||
a848cd7e SC |
35820 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
35821 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
35822 | -o "$wxUSE_OLE" = "yes" \ | |
35823 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
3dd30495 VZ |
35824 | ac_fn_c_check_header_compile "$LINENO" "ole2.h" "ac_cv_header_ole2_h" " |
35825 | " | |
eff9d7f5 | 35826 | if test "x$ac_cv_header_ole2_h" = xyes; then : |
47964710 | 35827 | |
a848cd7e | 35828 | fi |
a848cd7e | 35829 | |
a848cd7e SC |
35830 | |
35831 | ||
35832 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
35833 | if test "$GCC" = yes ; then | |
3dd30495 VZ |
35834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ requires -fvtable-thunks" >&5 |
35835 | $as_echo_n "checking if g++ requires -fvtable-thunks... " >&6; } | |
35836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e SC |
35837 | /* end confdefs.h. */ |
35838 | #include <windows.h> | |
35839 | #include <ole2.h> | |
35840 | int | |
35841 | main () | |
35842 | { | |
35843 | ||
35844 | ; | |
35845 | return 0; | |
35846 | } | |
35847 | _ACEOF | |
3dd30495 VZ |
35848 | if ac_fn_c_try_compile "$LINENO"; then : |
35849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
35850 | $as_echo "no" >&6; } | |
a848cd7e | 35851 | else |
3dd30495 VZ |
35852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
35853 | $as_echo "yes" >&6; } | |
5ff751d6 | 35854 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 35855 | fi |
47964710 | 35856 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35857 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
35858 | if test "$wxUSE_OLE" = "yes" ; then | |
3dd30495 | 35859 | $as_echo "#define wxUSE_OLE 1" >>confdefs.h |
f43426c1 | 35860 | |
3dd30495 | 35861 | $as_echo "#define wxUSE_OLE_AUTOMATION 1" >>confdefs.h |
f43426c1 | 35862 | |
3dd30495 | 35863 | $as_echo "#define wxUSE_ACTIVEX 1" >>confdefs.h |
a848cd7e | 35864 | |
0b78747f | 35865 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
35866 | fi |
35867 | fi | |
35868 | ||
35869 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
3dd30495 | 35870 | $as_echo "#define wxUSE_DATAOBJ 1" >>confdefs.h |
a848cd7e SC |
35871 | |
35872 | fi | |
35873 | else | |
3dd30495 VZ |
35874 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Some features disabled because OLE headers not found" >&5 |
35875 | $as_echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
a848cd7e SC |
35876 | |
35877 | wxUSE_CLIPBOARD=no | |
35878 | wxUSE_DRAG_AND_DROP=no | |
35879 | wxUSE_DATAOBJ=no | |
35880 | wxUSE_OLE=no | |
35881 | fi | |
a848cd7e SC |
35882 | fi |
35883 | ||
35884 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 35885 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
3dd30495 VZ |
35886 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
35887 | $as_echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 35888 | wxUSE_IPC=no |
a848cd7e SC |
35889 | fi |
35890 | ||
0b78747f | 35891 | if test "$wxUSE_IPC" = "yes"; then |
3dd30495 | 35892 | $as_echo "#define wxUSE_IPC 1" >>confdefs.h |
a848cd7e | 35893 | |
0b78747f MW |
35894 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
35895 | fi | |
a848cd7e SC |
35896 | fi |
35897 | ||
eb730a0c | 35898 | if test "$wxUSE_DATAOBJ" = "yes"; then |
3dd30495 | 35899 | $as_echo "#define wxUSE_DATAOBJ 1" >>confdefs.h |
eb730a0c JS |
35900 | |
35901 | else | |
3dd30495 VZ |
35902 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 |
35903 | $as_echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
eb730a0c JS |
35904 | wxUSE_CLIPBOARD=no |
35905 | wxUSE_DRAG_AND_DROP=no | |
35906 | fi | |
35907 | ||
a848cd7e | 35908 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
0e1f8ea4 | 35909 | if test "$wxUSE_DFB" = 1; then |
3dd30495 VZ |
35910 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5 |
35911 | $as_echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;} | |
a848cd7e SC |
35912 | wxUSE_CLIPBOARD=no |
35913 | fi | |
35914 | ||
35915 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
3dd30495 | 35916 | $as_echo "#define wxUSE_CLIPBOARD 1" >>confdefs.h |
a848cd7e | 35917 | |
a848cd7e SC |
35918 | fi |
35919 | fi | |
35920 | ||
35921 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
0e1f8ea4 | 35922 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_DFB" = 1; then |
3dd30495 VZ |
35923 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5 |
35924 | $as_echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;} | |
a848cd7e SC |
35925 | wxUSE_DRAG_AND_DROP=no |
35926 | fi | |
35927 | ||
35928 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
3dd30495 | 35929 | $as_echo "#define wxUSE_DRAG_AND_DROP 1" >>confdefs.h |
a848cd7e SC |
35930 | |
35931 | fi | |
35932 | ||
35933 | fi | |
35934 | ||
35935 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
35936 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
35937 | fi | |
35938 | ||
6a5a7fba VZ |
35939 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
35940 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS clipboard" | |
35941 | fi | |
35942 | ||
a848cd7e | 35943 | if test "$wxUSE_SPLINES" = "yes" ; then |
3dd30495 | 35944 | $as_echo "#define wxUSE_SPLINES 1" >>confdefs.h |
a848cd7e SC |
35945 | |
35946 | fi | |
35947 | ||
fbe2ca43 | 35948 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
3dd30495 | 35949 | $as_echo "#define wxUSE_MOUSEWHEEL 1" >>confdefs.h |
fbe2ca43 SN |
35950 | |
35951 | fi | |
35952 | ||
9b7e0226 | 35953 | if test "$wxUSE_UIACTIONSIMULATOR" = "yes" ; then |
3dd30495 | 35954 | $as_echo "#define wxUSE_UIACTIONSIMULATOR 1" >>confdefs.h |
9b7e0226 | 35955 | |
c24309da | 35956 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS uiaction" |
9b7e0226 VZ |
35957 | fi |
35958 | ||
e71508e1 | 35959 | if test "$wxUSE_DC_TRANSFORM_MATRIX" = "yes" ; then |
3dd30495 | 35960 | $as_echo "#define wxUSE_DC_TRANSFORM_MATRIX 1" >>confdefs.h |
e71508e1 VZ |
35961 | |
35962 | fi | |
35963 | ||
a848cd7e SC |
35964 | |
35965 | USES_CONTROLS=0 | |
35966 | if test "$wxUSE_CONTROLS" = "yes"; then | |
35967 | USES_CONTROLS=1 | |
35968 | fi | |
35969 | ||
f5bdfc69 | 35970 | if test "$wxUSE_MARKUP" = "yes"; then |
3dd30495 | 35971 | $as_echo "#define wxUSE_MARKUP 1" >>confdefs.h |
f5bdfc69 VZ |
35972 | |
35973 | fi | |
35974 | ||
a848cd7e | 35975 | if test "$wxUSE_ACCEL" = "yes"; then |
3dd30495 | 35976 | $as_echo "#define wxUSE_ACCEL 1" >>confdefs.h |
a848cd7e SC |
35977 | |
35978 | USES_CONTROLS=1 | |
35979 | fi | |
35980 | ||
7067783d | 35981 | if test "$wxUSE_ANIMATIONCTRL" = "yes"; then |
3dd30495 | 35982 | $as_echo "#define wxUSE_ANIMATIONCTRL 1" >>confdefs.h |
3ea50042 VZ |
35983 | |
35984 | USES_CONTROLS=1 | |
35985 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate" | |
35986 | fi | |
35987 | ||
ea11bf3a | 35988 | if test "$wxUSE_BANNERWINDOW" = "yes"; then |
3dd30495 | 35989 | $as_echo "#define wxUSE_BANNERWINDOW 1" >>confdefs.h |
ea11bf3a VZ |
35990 | |
35991 | fi | |
35992 | ||
a848cd7e | 35993 | if test "$wxUSE_BUTTON" = "yes"; then |
3dd30495 | 35994 | $as_echo "#define wxUSE_BUTTON 1" >>confdefs.h |
a848cd7e SC |
35995 | |
35996 | USES_CONTROLS=1 | |
35997 | fi | |
35998 | ||
35999 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
3dd30495 | 36000 | $as_echo "#define wxUSE_BMPBUTTON 1" >>confdefs.h |
a848cd7e SC |
36001 | |
36002 | USES_CONTROLS=1 | |
36003 | fi | |
36004 | ||
36005 | if test "$wxUSE_CALCTRL" = "yes"; then | |
3dd30495 | 36006 | $as_echo "#define wxUSE_CALENDARCTRL 1" >>confdefs.h |
a848cd7e SC |
36007 | |
36008 | USES_CONTROLS=1 | |
36009 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
36010 | fi | |
36011 | ||
36012 | if test "$wxUSE_CARET" = "yes"; then | |
3dd30495 | 36013 | $as_echo "#define wxUSE_CARET 1" >>confdefs.h |
a848cd7e SC |
36014 | |
36015 | USES_CONTROLS=1 | |
36016 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
36017 | fi | |
36018 | ||
bd915ace | 36019 | if test "$wxUSE_COLLPANE" = "yes"; then |
3dd30495 | 36020 | $as_echo "#define wxUSE_COLLPANE 1" >>confdefs.h |
bd915ace RR |
36021 | |
36022 | USES_CONTROLS=1 | |
36023 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane" | |
36024 | fi | |
36025 | ||
a848cd7e | 36026 | if test "$wxUSE_COMBOBOX" = "yes"; then |
3dd30495 | 36027 | $as_echo "#define wxUSE_COMBOBOX 1" >>confdefs.h |
a848cd7e SC |
36028 | |
36029 | USES_CONTROLS=1 | |
36030 | fi | |
36031 | ||
a57d600f | 36032 | if test "$wxUSE_COMBOCTRL" = "yes"; then |
3dd30495 | 36033 | $as_echo "#define wxUSE_COMBOCTRL 1" >>confdefs.h |
642bcba9 VZ |
36034 | |
36035 | USES_CONTROLS=1 | |
36036 | fi | |
36037 | ||
3571e1ad | 36038 | if test "$wxUSE_COMMANDLINKBUTTON" = "yes"; then |
3dd30495 | 36039 | $as_echo "#define wxUSE_COMMANDLINKBUTTON 1" >>confdefs.h |
3571e1ad VZ |
36040 | |
36041 | USES_CONTROLS=1 | |
36042 | fi | |
36043 | ||
a848cd7e | 36044 | if test "$wxUSE_CHOICE" = "yes"; then |
3dd30495 | 36045 | $as_echo "#define wxUSE_CHOICE 1" >>confdefs.h |
a848cd7e SC |
36046 | |
36047 | USES_CONTROLS=1 | |
36048 | fi | |
36049 | ||
92bbdbcd | 36050 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
3dd30495 | 36051 | $as_echo "#define wxUSE_CHOICEBOOK 1" >>confdefs.h |
92bbdbcd WS |
36052 | |
36053 | USES_CONTROLS=1 | |
36054 | fi | |
36055 | ||
a848cd7e | 36056 | if test "$wxUSE_CHECKBOX" = "yes"; then |
3dd30495 | 36057 | $as_echo "#define wxUSE_CHECKBOX 1" >>confdefs.h |
a848cd7e SC |
36058 | |
36059 | USES_CONTROLS=1 | |
36060 | fi | |
36061 | ||
36062 | if test "$wxUSE_CHECKLST" = "yes"; then | |
3dd30495 | 36063 | $as_echo "#define wxUSE_CHECKLISTBOX 1" >>confdefs.h |
a848cd7e SC |
36064 | |
36065 | USES_CONTROLS=1 | |
a848cd7e SC |
36066 | fi |
36067 | ||
e9263684 | 36068 | if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then |
3dd30495 | 36069 | $as_echo "#define wxUSE_COLOURPICKERCTRL 1" >>confdefs.h |
e9263684 VZ |
36070 | |
36071 | USES_CONTROLS=1 | |
36072 | fi | |
36073 | ||
da98e9be | 36074 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
3dd30495 | 36075 | $as_echo "#define wxUSE_DATEPICKCTRL 1" >>confdefs.h |
da98e9be VZ |
36076 | |
36077 | USES_CONTROLS=1 | |
36078 | fi | |
36079 | ||
e9263684 | 36080 | if test "$wxUSE_DIRPICKERCTRL" = "yes"; then |
3dd30495 | 36081 | $as_echo "#define wxUSE_DIRPICKERCTRL 1" >>confdefs.h |
e9263684 VZ |
36082 | |
36083 | USES_CONTROLS=1 | |
36084 | fi | |
36085 | ||
0cf3e587 | 36086 | if test "$wxUSE_FILECTRL" = "yes"; then |
3dd30495 | 36087 | $as_echo "#define wxUSE_FILECTRL 1" >>confdefs.h |
0cf3e587 VZ |
36088 | |
36089 | USES_CONTROLS=1 | |
36090 | fi | |
36091 | ||
e9263684 | 36092 | if test "$wxUSE_FILEPICKERCTRL" = "yes"; then |
3dd30495 | 36093 | $as_echo "#define wxUSE_FILEPICKERCTRL 1" >>confdefs.h |
e9263684 VZ |
36094 | |
36095 | USES_CONTROLS=1 | |
36096 | fi | |
36097 | ||
36098 | if test "$wxUSE_FONTPICKERCTRL" = "yes"; then | |
3dd30495 | 36099 | $as_echo "#define wxUSE_FONTPICKERCTRL 1" >>confdefs.h |
e9263684 VZ |
36100 | |
36101 | USES_CONTROLS=1 | |
36102 | fi | |
36103 | ||
a848cd7e | 36104 | if test "$wxUSE_DISPLAY" = "yes"; then |
0e1f8ea4 | 36105 | if test "$wxUSE_DFB" = 1; then |
3dd30495 VZ |
36106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5 |
36107 | $as_echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;} | |
f321ab7f VS |
36108 | wxUSE_DISPLAY=no |
36109 | else | |
3dd30495 | 36110 | $as_echo "#define wxUSE_DISPLAY 1" >>confdefs.h |
a848cd7e | 36111 | |
39d66339 | 36112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" |
f321ab7f | 36113 | fi |
a848cd7e SC |
36114 | fi |
36115 | ||
88bbc332 | 36116 | if test "$wxUSE_DETECT_SM" = "yes"; then |
3dd30495 | 36117 | $as_echo "#define wxUSE_DETECT_SM 1" >>confdefs.h |
88bbc332 RR |
36118 | |
36119 | fi | |
36120 | ||
a848cd7e | 36121 | if test "$wxUSE_GAUGE" = "yes"; then |
3dd30495 | 36122 | $as_echo "#define wxUSE_GAUGE 1" >>confdefs.h |
a848cd7e SC |
36123 | |
36124 | USES_CONTROLS=1 | |
36125 | fi | |
36126 | ||
36127 | if test "$wxUSE_GRID" = "yes"; then | |
3dd30495 | 36128 | $as_echo "#define wxUSE_GRID 1" >>confdefs.h |
a848cd7e SC |
36129 | |
36130 | USES_CONTROLS=1 | |
36131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
36132 | fi | |
36133 | ||
e721a2a2 | 36134 | if test "$wxUSE_HEADERCTRL" = "yes"; then |
3dd30495 | 36135 | $as_echo "#define wxUSE_HEADERCTRL 1" >>confdefs.h |
e721a2a2 VZ |
36136 | |
36137 | USES_CONTROLS=1 | |
36138 | fi | |
36139 | ||
6954625c | 36140 | if test "$wxUSE_HYPERLINKCTRL" = "yes"; then |
3dd30495 | 36141 | $as_echo "#define wxUSE_HYPERLINKCTRL 1" >>confdefs.h |
6954625c VZ |
36142 | |
36143 | USES_CONTROLS=1 | |
36144 | fi | |
36145 | ||
95a46303 | 36146 | if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then |
3dd30495 | 36147 | $as_echo "#define wxUSE_BITMAPCOMBOBOX 1" >>confdefs.h |
95a46303 RR |
36148 | |
36149 | USES_CONTROLS=1 | |
36150 | fi | |
36151 | ||
20e34ecc | 36152 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
3dd30495 | 36153 | $as_echo "#define wxUSE_DATAVIEWCTRL 1" >>confdefs.h |
20e34ecc RR |
36154 | |
36155 | USES_CONTROLS=1 | |
36156 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
36157 | fi | |
36158 | ||
a848cd7e | 36159 | if test "$wxUSE_IMAGLIST" = "yes"; then |
3dd30495 | 36160 | $as_echo "#define wxUSE_IMAGLIST 1" >>confdefs.h |
a848cd7e SC |
36161 | |
36162 | fi | |
36163 | ||
a92b5dfe | 36164 | if test "$wxUSE_INFOBAR" = "yes"; then |
3dd30495 | 36165 | $as_echo "#define wxUSE_INFOBAR 1" >>confdefs.h |
a92b5dfe VZ |
36166 | |
36167 | fi | |
36168 | ||
a848cd7e | 36169 | if test "$wxUSE_LISTBOOK" = "yes"; then |
3dd30495 | 36170 | $as_echo "#define wxUSE_LISTBOOK 1" >>confdefs.h |
a848cd7e SC |
36171 | |
36172 | USES_CONTROLS=1 | |
36173 | fi | |
36174 | ||
36175 | if test "$wxUSE_LISTBOX" = "yes"; then | |
3dd30495 | 36176 | $as_echo "#define wxUSE_LISTBOX 1" >>confdefs.h |
a848cd7e SC |
36177 | |
36178 | USES_CONTROLS=1 | |
36179 | fi | |
36180 | ||
36181 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
36182 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
3dd30495 | 36183 | $as_echo "#define wxUSE_LISTCTRL 1" >>confdefs.h |
a848cd7e SC |
36184 | |
36185 | USES_CONTROLS=1 | |
36186 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
36187 | else | |
3dd30495 VZ |
36188 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
36189 | $as_echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
a848cd7e SC |
36190 | fi |
36191 | fi | |
36192 | ||
23575150 | 36193 | if test "$wxUSE_EDITABLELISTBOX" = "yes"; then |
3dd30495 | 36194 | $as_echo "#define wxUSE_EDITABLELISTBOX 1" >>confdefs.h |
23575150 RR |
36195 | |
36196 | USES_CONTROLS=1 | |
23575150 RR |
36197 | fi |
36198 | ||
a848cd7e | 36199 | if test "$wxUSE_NOTEBOOK" = "yes"; then |
3dd30495 | 36200 | $as_echo "#define wxUSE_NOTEBOOK 1" >>confdefs.h |
a848cd7e SC |
36201 | |
36202 | USES_CONTROLS=1 | |
36203 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
36204 | fi | |
36205 | ||
e36a1739 | 36206 | if test "$wxUSE_NOTIFICATION_MESSAGE" = "yes"; then |
3dd30495 | 36207 | $as_echo "#define wxUSE_NOTIFICATION_MESSAGE 1" >>confdefs.h |
e36a1739 VZ |
36208 | |
36209 | fi | |
36210 | ||
a57d600f | 36211 | if test "$wxUSE_ODCOMBOBOX" = "yes"; then |
3dd30495 | 36212 | $as_echo "#define wxUSE_ODCOMBOBOX 1" >>confdefs.h |
642bcba9 VZ |
36213 | |
36214 | USES_CONTROLS=1 | |
36215 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
36216 | fi | |
36217 | ||
a848cd7e | 36218 | if test "$wxUSE_RADIOBOX" = "yes"; then |
3dd30495 | 36219 | $as_echo "#define wxUSE_RADIOBOX 1" >>confdefs.h |
a848cd7e SC |
36220 | |
36221 | USES_CONTROLS=1 | |
36222 | fi | |
36223 | ||
36224 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
3dd30495 | 36225 | $as_echo "#define wxUSE_RADIOBTN 1" >>confdefs.h |
a848cd7e SC |
36226 | |
36227 | USES_CONTROLS=1 | |
36228 | fi | |
36229 | ||
f0bb342f | 36230 | if test "$wxUSE_REARRANGECTRL" = "yes"; then |
3dd30495 | 36231 | $as_echo "#define wxUSE_REARRANGECTRL 1" >>confdefs.h |
f0bb342f VZ |
36232 | |
36233 | fi | |
36234 | ||
a1bdd4ab | 36235 | if test "$wxUSE_RICHMSGDLG" = "yes"; then |
3dd30495 | 36236 | $as_echo "#define wxUSE_RICHMSGDLG 1" >>confdefs.h |
a1bdd4ab VZ |
36237 | |
36238 | fi | |
36239 | ||
e520c3f7 | 36240 | if test "$wxUSE_RICHTOOLTIP" = "yes"; then |
3dd30495 | 36241 | $as_echo "#define wxUSE_RICHTOOLTIP 1" >>confdefs.h |
e520c3f7 VZ |
36242 | |
36243 | fi | |
36244 | ||
a848cd7e | 36245 | if test "$wxUSE_SASH" = "yes"; then |
3dd30495 | 36246 | $as_echo "#define wxUSE_SASH 1" >>confdefs.h |
a848cd7e SC |
36247 | |
36248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
36249 | fi | |
36250 | ||
36251 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
3dd30495 | 36252 | $as_echo "#define wxUSE_SCROLLBAR 1" >>confdefs.h |
a848cd7e SC |
36253 | |
36254 | USES_CONTROLS=1 | |
6a5a7fba | 36255 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll" |
a848cd7e SC |
36256 | fi |
36257 | ||
3f7f284d | 36258 | if test "$wxUSE_SEARCHCTRL" = "yes"; then |
3dd30495 | 36259 | $as_echo "#define wxUSE_SEARCHCTRL 1" >>confdefs.h |
3f7f284d RD |
36260 | |
36261 | USES_CONTROLS=1 | |
36262 | fi | |
36263 | ||
a848cd7e | 36264 | if test "$wxUSE_SLIDER" = "yes"; then |
3dd30495 | 36265 | $as_echo "#define wxUSE_SLIDER 1" >>confdefs.h |
a848cd7e SC |
36266 | |
36267 | USES_CONTROLS=1 | |
36268 | fi | |
36269 | ||
36270 | if test "$wxUSE_SPINBTN" = "yes"; then | |
3dd30495 | 36271 | $as_echo "#define wxUSE_SPINBTN 1" >>confdefs.h |
a848cd7e SC |
36272 | |
36273 | USES_CONTROLS=1 | |
36274 | fi | |
36275 | ||
36276 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
3dd30495 | 36277 | $as_echo "#define wxUSE_SPINCTRL 1" >>confdefs.h |
a848cd7e SC |
36278 | |
36279 | USES_CONTROLS=1 | |
36280 | fi | |
36281 | ||
36282 | if test "$wxUSE_SPLITTER" = "yes"; then | |
3dd30495 | 36283 | $as_echo "#define wxUSE_SPLITTER 1" >>confdefs.h |
a848cd7e SC |
36284 | |
36285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
36286 | fi | |
36287 | ||
36288 | if test "$wxUSE_STATBMP" = "yes"; then | |
3dd30495 | 36289 | $as_echo "#define wxUSE_STATBMP 1" >>confdefs.h |
a848cd7e SC |
36290 | |
36291 | USES_CONTROLS=1 | |
36292 | fi | |
36293 | ||
36294 | if test "$wxUSE_STATBOX" = "yes"; then | |
3dd30495 | 36295 | $as_echo "#define wxUSE_STATBOX 1" >>confdefs.h |
a848cd7e SC |
36296 | |
36297 | USES_CONTROLS=1 | |
36298 | fi | |
36299 | ||
36300 | if test "$wxUSE_STATTEXT" = "yes"; then | |
3dd30495 | 36301 | $as_echo "#define wxUSE_STATTEXT 1" >>confdefs.h |
a848cd7e SC |
36302 | |
36303 | USES_CONTROLS=1 | |
36304 | fi | |
36305 | ||
36306 | if test "$wxUSE_STATLINE" = "yes"; then | |
3dd30495 | 36307 | $as_echo "#define wxUSE_STATLINE 1" >>confdefs.h |
a848cd7e SC |
36308 | |
36309 | USES_CONTROLS=1 | |
36310 | fi | |
36311 | ||
36312 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
3dd30495 | 36313 | $as_echo "#define wxUSE_NATIVE_STATUSBAR 1" >>confdefs.h |
da4486fb | 36314 | |
3dd30495 | 36315 | $as_echo "#define wxUSE_STATUSBAR 1" >>confdefs.h |
a848cd7e SC |
36316 | |
36317 | USES_CONTROLS=1 | |
36318 | ||
36319 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
36320 | fi | |
36321 | ||
a848cd7e | 36322 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
3dd30495 | 36323 | $as_echo "#define wxUSE_TEXTCTRL 1" >>confdefs.h |
a848cd7e SC |
36324 | |
36325 | USES_CONTROLS=1 | |
36326 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
5cfbef2a | 36327 | |
3dd30495 | 36328 | $as_echo "#define wxUSE_RICHEDIT 1" >>confdefs.h |
5cfbef2a | 36329 | |
3dd30495 | 36330 | $as_echo "#define wxUSE_RICHEDIT2 1" >>confdefs.h |
5cfbef2a | 36331 | |
a848cd7e SC |
36332 | fi |
36333 | ||
569c7d8c | 36334 | if test "$wxUSE_TIMEPICKCTRL" = "yes"; then |
3dd30495 | 36335 | $as_echo "#define wxUSE_TIMEPICKCTRL 1" >>confdefs.h |
569c7d8c VZ |
36336 | |
36337 | USES_CONTROLS=1 | |
36338 | fi | |
36339 | ||
a848cd7e | 36340 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
f10f4c87 | 36341 | if test "$wxUSE_OLD_COCOA" = 1 ; then |
3dd30495 VZ |
36342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
36343 | $as_echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
a848cd7e SC |
36344 | wxUSE_TOGGLEBTN=no |
36345 | fi | |
a848cd7e SC |
36346 | |
36347 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
3dd30495 | 36348 | $as_echo "#define wxUSE_TOGGLEBTN 1" >>confdefs.h |
a848cd7e SC |
36349 | |
36350 | USES_CONTROLS=1 | |
36351 | fi | |
36352 | fi | |
36353 | ||
a848cd7e | 36354 | if test "$wxUSE_TOOLBAR" = "yes"; then |
3dd30495 | 36355 | $as_echo "#define wxUSE_TOOLBAR 1" >>confdefs.h |
a848cd7e SC |
36356 | |
36357 | USES_CONTROLS=1 | |
36358 | ||
452b6243 VS |
36359 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
36360 | wxUSE_TOOLBAR_NATIVE="no" | |
36361 | else | |
36362 | wxUSE_TOOLBAR_NATIVE="yes" | |
3dd30495 | 36363 | $as_echo "#define wxUSE_TOOLBAR_NATIVE 1" >>confdefs.h |
a848cd7e | 36364 | |
a848cd7e SC |
36365 | fi |
36366 | ||
36367 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
36368 | fi | |
36369 | ||
36370 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
36371 | if test "$wxUSE_MOTIF" = 1; then | |
3dd30495 VZ |
36372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
36373 | $as_echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
a848cd7e SC |
36374 | else |
36375 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
3dd30495 VZ |
36376 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
36377 | $as_echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
a848cd7e | 36378 | else |
3dd30495 | 36379 | $as_echo "#define wxUSE_TOOLTIPS 1" >>confdefs.h |
a848cd7e SC |
36380 | |
36381 | fi | |
36382 | fi | |
36383 | fi | |
36384 | ||
0093c2fc | 36385 | if test "$wxUSE_TREEBOOK" = "yes"; then |
3dd30495 | 36386 | $as_echo "#define wxUSE_TREEBOOK 1" >>confdefs.h |
0093c2fc VZ |
36387 | |
36388 | USES_CONTROLS=1 | |
36389 | fi | |
36390 | ||
5ec3bc43 | 36391 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
3dd30495 | 36392 | $as_echo "#define wxUSE_TOOLBOOK 1" >>confdefs.h |
5ec3bc43 JS |
36393 | |
36394 | USES_CONTROLS=1 | |
36395 | fi | |
36396 | ||
a848cd7e SC |
36397 | if test "$wxUSE_TREECTRL" = "yes"; then |
36398 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
3dd30495 | 36399 | $as_echo "#define wxUSE_TREECTRL 1" >>confdefs.h |
a848cd7e SC |
36400 | |
36401 | USES_CONTROLS=1 | |
36402 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
36403 | else | |
3dd30495 VZ |
36404 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
36405 | $as_echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
a848cd7e SC |
36406 | fi |
36407 | fi | |
36408 | ||
4cbe0dd8 | 36409 | if test "$wxUSE_TREELISTCTRL" = "yes"; then |
3dd30495 | 36410 | $as_echo "#define wxUSE_TREELISTCTRL 1" >>confdefs.h |
524cb040 VZ |
36411 | |
36412 | USES_CONTROLS=1 | |
c4073f2c | 36413 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelist" |
524cb040 VZ |
36414 | fi |
36415 | ||
a848cd7e | 36416 | if test "$wxUSE_POPUPWIN" = "yes"; then |
f10f4c87 | 36417 | if test "$wxUSE_OLD_COCOA" = 1 ; then |
3dd30495 VZ |
36418 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
36419 | $as_echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
a848cd7e SC |
36420 | else |
36421 | if test "$wxUSE_PM" = 1; then | |
3dd30495 VZ |
36422 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
36423 | $as_echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
a848cd7e | 36424 | else |
3dd30495 | 36425 | $as_echo "#define wxUSE_POPUPWIN 1" >>confdefs.h |
a848cd7e | 36426 | |
0b78747f | 36427 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
36428 | |
36429 | USES_CONTROLS=1 | |
36430 | fi | |
36431 | fi | |
36432 | fi | |
36433 | ||
0dcd06dd | 36434 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
0e1f8ea4 | 36435 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then |
3dd30495 VZ |
36436 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dialup manager not supported on this platform... disabled" >&5 |
36437 | $as_echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;} | |
b843b628 | 36438 | else |
3dd30495 | 36439 | $as_echo "#define wxUSE_DIALUP_MANAGER 1" >>confdefs.h |
b843b628 MB |
36440 | |
36441 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
36442 | fi | |
36443 | fi | |
36444 | ||
a848cd7e SC |
36445 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
36446 | if test "$wxUSE_PM" = 1; then | |
3dd30495 VZ |
36447 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
36448 | $as_echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
a848cd7e | 36449 | else |
3dd30495 | 36450 | $as_echo "#define wxUSE_TIPWINDOW 1" >>confdefs.h |
a848cd7e SC |
36451 | |
36452 | fi | |
36453 | fi | |
36454 | ||
36455 | if test "$USES_CONTROLS" = 1; then | |
3dd30495 | 36456 | $as_echo "#define wxUSE_CONTROLS 1" >>confdefs.h |
a848cd7e SC |
36457 | |
36458 | fi | |
36459 | ||
36460 | ||
36461 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
3dd30495 | 36462 | $as_echo "#define wxUSE_ACCESSIBILITY 1" >>confdefs.h |
a848cd7e SC |
36463 | |
36464 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
36465 | fi | |
36466 | ||
2e9b5717 | 36467 | if test "$wxUSE_ARTPROVIDER_STD" = "yes"; then |
3dd30495 | 36468 | $as_echo "#define wxUSE_ARTPROVIDER_STD 1" >>confdefs.h |
2e9b5717 VZ |
36469 | |
36470 | fi | |
36471 | ||
c1d2466a VZ |
36472 | if test "$wxUSE_ARTPROVIDER_TANGO" = "auto"; then |
36473 | if test "$wxUSE_GTK" != 1; then | |
36474 | if test "$wxUSE_LIBPNG" != no -a \ | |
36475 | "$wxUSE_IMAGE" = yes -a \ | |
36476 | "$wxUSE_STREAMS" = yes; then | |
36477 | wxUSE_ARTPROVIDER_TANGO="yes" | |
36478 | fi | |
36479 | fi | |
36480 | fi | |
36481 | ||
36482 | if test "$wxUSE_ARTPROVIDER_TANGO" = "yes"; then | |
3dd30495 | 36483 | $as_echo "#define wxUSE_ARTPROVIDER_TANGO 1" >>confdefs.h |
c1d2466a VZ |
36484 | |
36485 | fi | |
36486 | ||
a848cd7e | 36487 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
3dd30495 | 36488 | $as_echo "#define wxUSE_DRAGIMAGE 1" >>confdefs.h |
a848cd7e SC |
36489 | |
36490 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
36491 | fi | |
36492 | ||
36493 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 | 36494 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
3dd30495 VZ |
36495 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 |
36496 | $as_echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
07bea8f0 | 36497 | else |
3dd30495 | 36498 | $as_echo "#define wxUSE_EXCEPTIONS 1" >>confdefs.h |
a848cd7e | 36499 | |
07bea8f0 VS |
36500 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
36501 | fi | |
a848cd7e SC |
36502 | fi |
36503 | ||
36504 | USE_HTML=0 | |
36505 | if test "$wxUSE_HTML" = "yes"; then | |
3dd30495 | 36506 | $as_echo "#define wxUSE_HTML 1" >>confdefs.h |
a848cd7e SC |
36507 | |
36508 | USE_HTML=1 | |
36509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
36510 | fi | |
646b6ec1 | 36511 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 36512 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 36513 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 36514 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
3dd30495 | 36515 | ac_fn_c_check_header_compile "$LINENO" "WebKit/HIWebView.h" "ac_cv_header_WebKit_HIWebView_h" " |
4fd169bd VZ |
36516 | #include <Carbon/Carbon.h> |
36517 | #include <WebKit/WebKit.h> | |
36518 | ||
3dd30495 | 36519 | " |
eff9d7f5 | 36520 | if test "x$ac_cv_header_WebKit_HIWebView_h" = xyes; then : |
07bea8f0 | 36521 | |
3dd30495 | 36522 | $as_echo "#define wxUSE_WEBKIT 1" >>confdefs.h |
646b6ec1 | 36523 | |
07bea8f0 VS |
36524 | WEBKIT_LINK="-framework WebKit" |
36525 | ||
36526 | else | |
36527 | ||
3dd30495 VZ |
36528 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WebKit headers not found; disabling wxWebKit" >&5 |
36529 | $as_echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
07bea8f0 VS |
36530 | wxUSE_WEBKIT=no |
36531 | ||
646b6ec1 VS |
36532 | fi |
36533 | ||
07bea8f0 VS |
36534 | |
36535 | CPPFLAGS="$old_CPPFLAGS" | |
f10f4c87 | 36536 | elif test "$wxUSE_OLD_COCOA" = 1; then |
3dd30495 | 36537 | $as_echo "#define wxUSE_WEBKIT 1" >>confdefs.h |
07bea8f0 VS |
36538 | |
36539 | else | |
36540 | wxUSE_WEBKIT=no | |
36541 | fi | |
2ea057f9 SC |
36542 | if test "$wxUSE_WEBKIT" = "yes"; then |
36543 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
36544 | fi | |
07bea8f0 VS |
36545 | fi |
36546 | ||
9a8f0513 VS |
36547 | USE_XRC=0 |
36548 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 | 36549 | if test "$wxUSE_XML" != "yes"; then |
3dd30495 VZ |
36550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: XML library not built, XRC resources disabled" >&5 |
36551 | $as_echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
d2ebf0b7 VS |
36552 | wxUSE_XRC=no |
36553 | else | |
3dd30495 | 36554 | $as_echo "#define wxUSE_XRC 1" >>confdefs.h |
9a8f0513 | 36555 | |
d2ebf0b7 VS |
36556 | USE_XRC=1 |
36557 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
36558 | fi | |
9a8f0513 | 36559 | fi |
07bea8f0 | 36560 | |
3f60522a JS |
36561 | USE_AUI=0 |
36562 | if test "$wxUSE_AUI" = "yes"; then | |
3dd30495 | 36563 | $as_echo "#define wxUSE_AUI 1" >>confdefs.h |
3f60522a JS |
36564 | |
36565 | USE_AUI=1 | |
36566 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui" | |
36567 | fi | |
36568 | ||
1c4293cb VZ |
36569 | USE_PROPGRID=0 |
36570 | if test "$wxUSE_PROPGRID" = "yes"; then | |
3dd30495 | 36571 | $as_echo "#define wxUSE_PROPGRID 1" >>confdefs.h |
1c4293cb VZ |
36572 | |
36573 | USE_PROPGRID=1 | |
36574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS propgrid" | |
36575 | fi | |
36576 | ||
d33ccbe1 VZ |
36577 | USE_RIBBON=0 |
36578 | if test "$wxUSE_RIBBON" = "yes"; then | |
3dd30495 | 36579 | $as_echo "#define wxUSE_RIBBON 1" >>confdefs.h |
d33ccbe1 VZ |
36580 | |
36581 | USE_RIBBON=1 | |
36582 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ribbon" | |
36583 | fi | |
36584 | ||
54429bb3 RD |
36585 | USE_STC=0 |
36586 | if test "$wxUSE_STC" = "yes"; then | |
3dd30495 | 36587 | $as_echo "#define wxUSE_STC 1" >>confdefs.h |
54429bb3 RD |
36588 | |
36589 | USE_STC=1 | |
36590 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc" | |
d84e6f50 VZ |
36591 | |
36592 | # Extract the first word of "python", so it can be a program name with args. | |
36593 | set dummy python; ac_word=$2 | |
3dd30495 VZ |
36594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
36595 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 36596 | if ${ac_cv_path_PYTHON+:} false; then : |
3dd30495 | 36597 | $as_echo_n "(cached) " >&6 |
d84e6f50 VZ |
36598 | else |
36599 | case $PYTHON in | |
36600 | [\\/]* | ?:[\\/]*) | |
36601 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
36602 | ;; | |
36603 | *) | |
36604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36605 | for as_dir in $PATH | |
36606 | do | |
36607 | IFS=$as_save_IFS | |
36608 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 36609 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 36610 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d84e6f50 | 36611 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 36612 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d84e6f50 VZ |
36613 | break 2 |
36614 | fi | |
36615 | done | |
3dd30495 | 36616 | done |
d84e6f50 VZ |
36617 | IFS=$as_save_IFS |
36618 | ||
36619 | ;; | |
36620 | esac | |
36621 | fi | |
36622 | PYTHON=$ac_cv_path_PYTHON | |
36623 | if test -n "$PYTHON"; then | |
3dd30495 VZ |
36624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 |
36625 | $as_echo "$PYTHON" >&6; } | |
d84e6f50 | 36626 | else |
3dd30495 VZ |
36627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
36628 | $as_echo "no" >&6; } | |
d84e6f50 VZ |
36629 | fi |
36630 | ||
36631 | ||
36632 | if test "x$PYTHON" = "x"; then | |
36633 | COND_PYTHON="#" | |
36634 | fi | |
36635 | ||
54429bb3 RD |
36636 | fi |
36637 | ||
a848cd7e | 36638 | if test "$wxUSE_MENUS" = "yes"; then |
3dd30495 | 36639 | $as_echo "#define wxUSE_MENUS 1" >>confdefs.h |
a848cd7e SC |
36640 | |
36641 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
36642 | fi | |
36643 | ||
a848cd7e | 36644 | if test "$wxUSE_MIMETYPE" = "yes"; then |
3dd30495 | 36645 | $as_echo "#define wxUSE_MIMETYPE 1" >>confdefs.h |
a848cd7e SC |
36646 | |
36647 | fi | |
36648 | ||
36649 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
3dd30495 | 36650 | $as_echo "#define wxUSE_MINIFRAME 1" >>confdefs.h |
a848cd7e | 36651 | |
a848cd7e SC |
36652 | fi |
36653 | ||
36654 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
3dd30495 | 36655 | $as_echo "#define wxUSE_SYSTEM_OPTIONS 1" >>confdefs.h |
a848cd7e | 36656 | |
4f167b46 VZ |
36657 | fi |
36658 | ||
36659 | if test "$wxUSE_TASKBARICON" = "yes"; then | |
3dd30495 | 36660 | $as_echo "#define wxUSE_TASKBARICON 1" >>confdefs.h |
6d1bebab | 36661 | |
3dd30495 | 36662 | $as_echo "#define wxUSE_TASKBARICON_BALLOONS 1" >>confdefs.h |
4f167b46 VZ |
36663 | |
36664 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
a848cd7e SC |
36665 | fi |
36666 | ||
36667 | ||
36668 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
3dd30495 | 36669 | $as_echo "#define wxUSE_VALIDATORS 1" >>confdefs.h |
a848cd7e SC |
36670 | |
36671 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
36672 | fi | |
36673 | ||
36674 | if test "$wxUSE_PALETTE" = "yes" ; then | |
f321ab7f | 36675 | if test "$wxUSE_DFB" = 1; then |
3dd30495 VZ |
36676 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxPalette not yet supported under DFB... disabled" >&5 |
36677 | $as_echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;} | |
f321ab7f VS |
36678 | wxUSE_PALETTE=no |
36679 | else | |
3dd30495 | 36680 | $as_echo "#define wxUSE_PALETTE 1" >>confdefs.h |
a848cd7e | 36681 | |
f321ab7f | 36682 | fi |
a848cd7e SC |
36683 | fi |
36684 | ||
36685 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
36686 | LIBS=" -lunicows $LIBS" | |
36687 | fi | |
36688 | ||
91dea314 MW |
36689 | USE_RICHTEXT=0 |
36690 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
3dd30495 | 36691 | $as_echo "#define wxUSE_RICHTEXT 1" >>confdefs.h |
91dea314 MW |
36692 | |
36693 | USE_RICHTEXT=1 | |
36694 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
36695 | fi | |
36696 | ||
b550ad2a | 36697 | if test "$wxUSE_WEBVIEW" = "yes"; then |
88cc66f7 VZ |
36698 | USE_WEBVIEW_WEBKIT=0 |
36699 | if test "$wxUSE_WEBVIEW_WEBKIT" = "yes"; then | |
36700 | if test "$wxUSE_GTK" = 1; then | |
9dc44eff PC |
36701 | webkitgtk=webkit-1.0 |
36702 | if test "$WXGTK3" = 1; then | |
36703 | webkitgtk=webkitgtk-3.0 | |
36704 | fi | |
b550ad2a | 36705 | |
1eff6081 | 36706 | pkg_failed=no |
3dd30495 VZ |
36707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 |
36708 | $as_echo_n "checking for WEBKIT... " >&6; } | |
b550ad2a | 36709 | |
1eff6081 SL |
36710 | if test -n "$PKG_CONFIG"; then |
36711 | if test -n "$WEBKIT_CFLAGS"; then | |
36712 | pkg_cv_WEBKIT_CFLAGS="$WEBKIT_CFLAGS" | |
b550ad2a | 36713 | else |
1eff6081 | 36714 | if test -n "$PKG_CONFIG" && \ |
9dc44eff PC |
36715 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$webkitgtk >= 1.3.1\""; } >&5 |
36716 | ($PKG_CONFIG --exists --print-errors "$webkitgtk >= 1.3.1") 2>&5 | |
1eff6081 | 36717 | ac_status=$? |
3dd30495 VZ |
36718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
36719 | test $ac_status = 0; }; then | |
9dc44eff | 36720 | pkg_cv_WEBKIT_CFLAGS=`$PKG_CONFIG --cflags "$webkitgtk >= 1.3.1" 2>/dev/null` |
1eff6081 SL |
36721 | else |
36722 | pkg_failed=yes | |
36723 | fi | |
b550ad2a | 36724 | fi |
1eff6081 SL |
36725 | else |
36726 | pkg_failed=untried | |
36727 | fi | |
36728 | if test -n "$PKG_CONFIG"; then | |
36729 | if test -n "$WEBKIT_LIBS"; then | |
36730 | pkg_cv_WEBKIT_LIBS="$WEBKIT_LIBS" | |
36731 | else | |
36732 | if test -n "$PKG_CONFIG" && \ | |
9dc44eff PC |
36733 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$webkitgtk >= 1.3.1\""; } >&5 |
36734 | ($PKG_CONFIG --exists --print-errors "$webkitgtk >= 1.3.1") 2>&5 | |
1eff6081 | 36735 | ac_status=$? |
3dd30495 VZ |
36736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
36737 | test $ac_status = 0; }; then | |
9dc44eff | 36738 | pkg_cv_WEBKIT_LIBS=`$PKG_CONFIG --libs "$webkitgtk >= 1.3.1" 2>/dev/null` |
1eff6081 SL |
36739 | else |
36740 | pkg_failed=yes | |
36741 | fi | |
36742 | fi | |
36743 | else | |
36744 | pkg_failed=untried | |
36745 | fi | |
b550ad2a | 36746 | |
b550ad2a | 36747 | |
b550ad2a | 36748 | |
1eff6081 | 36749 | if test $pkg_failed = yes; then |
b550ad2a | 36750 | |
1eff6081 SL |
36751 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
36752 | _pkg_short_errors_supported=yes | |
36753 | else | |
36754 | _pkg_short_errors_supported=no | |
36755 | fi | |
36756 | if test $_pkg_short_errors_supported = yes; then | |
9dc44eff | 36757 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$webkitgtk >= 1.3.1"` |
1eff6081 | 36758 | else |
9dc44eff | 36759 | WEBKIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$webkitgtk >= 1.3.1"` |
1eff6081 SL |
36760 | fi |
36761 | # Put the nasty error message in config.log where it belongs | |
36762 | echo "$WEBKIT_PKG_ERRORS" >&5 | |
b550ad2a | 36763 | |
d04f535c | 36764 | |
3dd30495 VZ |
36765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: webkitgtk not found." >&5 |
36766 | $as_echo "$as_me: WARNING: webkitgtk not found." >&2;} | |
b550ad2a | 36767 | |
1eff6081 | 36768 | elif test $pkg_failed = untried; then |
b550ad2a | 36769 | |
3dd30495 VZ |
36770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: webkitgtk not found." >&5 |
36771 | $as_echo "$as_me: WARNING: webkitgtk not found." >&2;} | |
b550ad2a | 36772 | |
1eff6081 SL |
36773 | else |
36774 | WEBKIT_CFLAGS=$pkg_cv_WEBKIT_CFLAGS | |
36775 | WEBKIT_LIBS=$pkg_cv_WEBKIT_LIBS | |
3dd30495 VZ |
36776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
36777 | $as_echo "yes" >&6; } | |
b550ad2a | 36778 | |
1eff6081 SL |
36779 | USE_WEBVIEW_WEBKIT=1 |
36780 | CPPFLAGS="$CPPFLAGS $WEBKIT_CFLAGS" | |
36781 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $WEBKIT_LIBS" | |
d04f535c | 36782 | |
1eff6081 | 36783 | fi |
88cc66f7 VZ |
36784 | elif test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
36785 | old_CPPFLAGS="$CPPFLAGS" | |
36786 | CPPFLAGS="-x objective-c++ $CPPFLAGS" | |
3dd30495 | 36787 | ac_fn_c_check_header_compile "$LINENO" "WebKit/HIWebView.h" "ac_cv_header_WebKit_HIWebView_h" " |
88cc66f7 VZ |
36788 | #include <Carbon/Carbon.h> |
36789 | #include <WebKit/WebKit.h> | |
b550ad2a | 36790 | |
3dd30495 | 36791 | " |
eff9d7f5 | 36792 | if test "x$ac_cv_header_WebKit_HIWebView_h" = xyes; then : |
b550ad2a | 36793 | |
88cc66f7 VZ |
36794 | USE_WEBVIEW_WEBKIT=1 |
36795 | WEBKIT_LINK="-framework WebKit" | |
b550ad2a VZ |
36796 | |
36797 | else | |
36798 | ||
3dd30495 VZ |
36799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WebKit headers not found" >&5 |
36800 | $as_echo "$as_me: WARNING: WebKit headers not found" >&2;} | |
b550ad2a VZ |
36801 | |
36802 | fi | |
36803 | ||
36804 | ||
88cc66f7 VZ |
36805 | CPPFLAGS="$old_CPPFLAGS" |
36806 | fi | |
b550ad2a | 36807 | fi |
88cc66f7 VZ |
36808 | |
36809 | wxUSE_WEBVIEW="no" | |
36810 | if test "$wxUSE_GTK" = 1 -o "$wxUSE_MAC" = 1; then | |
36811 | if test "$USE_WEBVIEW_WEBKIT" = 1; then | |
36812 | wxUSE_WEBVIEW="yes" | |
3dd30495 | 36813 | $as_echo "#define wxUSE_WEBVIEW_WEBKIT 1" >>confdefs.h |
88cc66f7 VZ |
36814 | |
36815 | else | |
3dd30495 VZ |
36816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: WebKit not available, disabling wxWebView" >&5 |
36817 | $as_echo "$as_me: WARNING: WebKit not available, disabling wxWebView" >&2;} | |
88cc66f7 VZ |
36818 | fi |
36819 | elif test "$wxUSE_MSW" = 1; then | |
5061db29 | 36820 | if test "$wxUSE_WEBVIEW_IE" = "yes"; then |
88cc66f7 | 36821 | wxUSE_WEBVIEW="yes" |
3dd30495 | 36822 | $as_echo "#define wxUSE_WEBVIEW_IE 1" >>confdefs.h |
88cc66f7 VZ |
36823 | |
36824 | fi | |
36825 | fi | |
36826 | fi | |
36827 | ||
36828 | if test "$wxUSE_WEBVIEW" = "yes"; then | |
36829 | USE_WEBVIEW=1 | |
3dd30495 | 36830 | $as_echo "#define wxUSE_WEBVIEW 1" >>confdefs.h |
88cc66f7 VZ |
36831 | |
36832 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS webview" | |
36833 | else | |
36834 | USE_WEBVIEW=0 | |
b550ad2a VZ |
36835 | fi |
36836 | ||
a848cd7e SC |
36837 | |
36838 | if test "$wxUSE_IMAGE" = "yes" ; then | |
3dd30495 | 36839 | $as_echo "#define wxUSE_IMAGE 1" >>confdefs.h |
a848cd7e SC |
36840 | |
36841 | ||
36842 | if test "$wxUSE_GIF" = "yes" ; then | |
3dd30495 | 36843 | $as_echo "#define wxUSE_GIF 1" >>confdefs.h |
a848cd7e SC |
36844 | |
36845 | fi | |
36846 | ||
36847 | if test "$wxUSE_PCX" = "yes" ; then | |
3dd30495 | 36848 | $as_echo "#define wxUSE_PCX 1" >>confdefs.h |
a848cd7e SC |
36849 | |
36850 | fi | |
36851 | ||
bb9e79c0 | 36852 | if test "$wxUSE_TGA" = "yes" ; then |
3dd30495 | 36853 | $as_echo "#define wxUSE_TGA 1" >>confdefs.h |
bb9e79c0 VZ |
36854 | |
36855 | fi | |
36856 | ||
a848cd7e | 36857 | if test "$wxUSE_IFF" = "yes" ; then |
3dd30495 | 36858 | $as_echo "#define wxUSE_IFF 1" >>confdefs.h |
a848cd7e SC |
36859 | |
36860 | fi | |
36861 | ||
36862 | if test "$wxUSE_PNM" = "yes" ; then | |
3dd30495 | 36863 | $as_echo "#define wxUSE_PNM 1" >>confdefs.h |
a848cd7e SC |
36864 | |
36865 | fi | |
36866 | ||
36867 | if test "$wxUSE_XPM" = "yes" ; then | |
3dd30495 | 36868 | $as_echo "#define wxUSE_XPM 1" >>confdefs.h |
a848cd7e SC |
36869 | |
36870 | fi | |
36871 | ||
36872 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
3dd30495 | 36873 | $as_echo "#define wxUSE_ICO_CUR 1" >>confdefs.h |
a848cd7e SC |
36874 | |
36875 | fi | |
36876 | fi | |
36877 | ||
36878 | ||
319c5ed4 | 36879 | if test "$wxUSE_ABOUTDLG" = "yes"; then |
3dd30495 | 36880 | $as_echo "#define wxUSE_ABOUTDLG 1" >>confdefs.h |
319c5ed4 VZ |
36881 | |
36882 | fi | |
36883 | ||
a848cd7e | 36884 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
3dd30495 | 36885 | $as_echo "#define wxUSE_CHOICEDLG 1" >>confdefs.h |
a848cd7e SC |
36886 | |
36887 | fi | |
36888 | ||
36889 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
3dd30495 | 36890 | $as_echo "#define wxUSE_COLOURDLG 1" >>confdefs.h |
a848cd7e SC |
36891 | |
36892 | fi | |
36893 | ||
36894 | if test "$wxUSE_FILEDLG" = "yes"; then | |
3dd30495 | 36895 | $as_echo "#define wxUSE_FILEDLG 1" >>confdefs.h |
a848cd7e SC |
36896 | |
36897 | fi | |
36898 | ||
36899 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
3dd30495 | 36900 | $as_echo "#define wxUSE_FINDREPLDLG 1" >>confdefs.h |
a848cd7e SC |
36901 | |
36902 | fi | |
36903 | ||
36904 | if test "$wxUSE_FONTDLG" = "yes"; then | |
3dd30495 | 36905 | $as_echo "#define wxUSE_FONTDLG 1" >>confdefs.h |
a848cd7e SC |
36906 | |
36907 | fi | |
36908 | ||
36909 | if test "$wxUSE_DIRDLG" = "yes"; then | |
36910 | if test "$wxUSE_TREECTRL" != "yes"; then | |
3dd30495 VZ |
36911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
36912 | $as_echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
a848cd7e | 36913 | else |
3dd30495 | 36914 | $as_echo "#define wxUSE_DIRDLG 1" >>confdefs.h |
a848cd7e SC |
36915 | |
36916 | fi | |
36917 | fi | |
36918 | ||
36919 | if test "$wxUSE_MSGDLG" = "yes"; then | |
3dd30495 | 36920 | $as_echo "#define wxUSE_MSGDLG 1" >>confdefs.h |
a848cd7e SC |
36921 | |
36922 | fi | |
36923 | ||
36924 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
3dd30495 | 36925 | $as_echo "#define wxUSE_NUMBERDLG 1" >>confdefs.h |
a848cd7e SC |
36926 | |
36927 | fi | |
36928 | ||
36929 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
3dd30495 | 36930 | $as_echo "#define wxUSE_PROGRESSDLG 1" >>confdefs.h |
a848cd7e | 36931 | |
a848cd7e SC |
36932 | fi |
36933 | ||
36934 | if test "$wxUSE_SPLASH" = "yes"; then | |
3dd30495 | 36935 | $as_echo "#define wxUSE_SPLASH 1" >>confdefs.h |
a848cd7e | 36936 | |
2057db16 | 36937 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
36938 | fi |
36939 | ||
36940 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
3dd30495 | 36941 | $as_echo "#define wxUSE_STARTUP_TIPS 1" >>confdefs.h |
a848cd7e | 36942 | |
a848cd7e SC |
36943 | fi |
36944 | ||
36945 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
3dd30495 | 36946 | $as_echo "#define wxUSE_TEXTDLG 1" >>confdefs.h |
a848cd7e SC |
36947 | |
36948 | fi | |
36949 | ||
36950 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
3dd30495 | 36951 | $as_echo "#define wxUSE_WIZARDDLG 1" >>confdefs.h |
a848cd7e SC |
36952 | |
36953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
36954 | fi | |
36955 | ||
36956 | ||
6517fa86 VZ |
36957 | if test "$wxUSE_MSW" = 1 -o "$wxUSE_PM" = 1; then |
36958 | if test "$wxUSE_OWNER_DRAWN" = "yes"; then | |
3dd30495 | 36959 | $as_echo "#define wxUSE_OWNER_DRAWN 1" >>confdefs.h |
6517fa86 VZ |
36960 | |
36961 | fi | |
36962 | fi | |
36963 | ||
36964 | ||
5d18e029 VZ |
36965 | if test "$wxUSE_MSW" = 1 ; then |
36966 | ||
91a5e00c | 36967 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
3dd30495 | 36968 | $as_echo "#define wxUSE_DC_CACHEING 1" >>confdefs.h |
5d18e029 | 36969 | |
91a5e00c | 36970 | fi |
61873536 | 36971 | |
91a5e00c | 36972 | if test "$wxUSE_DIB" = "yes"; then |
3dd30495 | 36973 | $as_echo "#define wxUSE_WXDIB 1" >>confdefs.h |
5d18e029 | 36974 | |
91a5e00c | 36975 | fi |
5d18e029 | 36976 | |
91a5e00c | 36977 | if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then |
3dd30495 | 36978 | $as_echo "#define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1" >>confdefs.h |
f77c0fe3 | 36979 | |
91a5e00c | 36980 | fi |
f77c0fe3 | 36981 | |
91a5e00c | 36982 | if test "$wxUSE_UXTHEME" = "yes"; then |
3dd30495 | 36983 | $as_echo "#define wxUSE_UXTHEME 1" >>confdefs.h |
0295153c | 36984 | |
91a5e00c VS |
36985 | fi |
36986 | ||
0295153c VZ |
36987 | fi |
36988 | ||
75a29ef1 | 36989 | if test "$wxUSE_AUTOID_MANAGEMENT" = "yes"; then |
3dd30495 | 36990 | $as_echo "#define wxUSE_AUTOID_MANAGEMENT 1" >>confdefs.h |
75a29ef1 VZ |
36991 | |
36992 | fi | |
91a5e00c VS |
36993 | |
36994 | if test "$USE_WIN32" = 1 ; then | |
36995 | if test "$wxUSE_INICONF" = "yes"; then | |
3dd30495 | 36996 | $as_echo "#define wxUSE_INICONF 1" >>confdefs.h |
508d12b2 | 36997 | |
91a5e00c VS |
36998 | fi |
36999 | ||
37000 | if test "$wxUSE_REGKEY" = "yes"; then | |
3dd30495 | 37001 | $as_echo "#define wxUSE_REGKEY 1" >>confdefs.h |
508d12b2 | 37002 | |
91a5e00c | 37003 | fi |
5d18e029 VZ |
37004 | fi |
37005 | ||
44710405 | 37006 | |
84b20415 | 37007 | if test "$wxUSE_MAC" = 1; then |
a12bd55b | 37008 | wxUSE_GRAPHICS_CONTEXT="yes" |
84b20415 | 37009 | fi |
5d18e029 | 37010 | |
64b75e64 | 37011 | if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then |
a12bd55b VZ |
37012 | wx_has_graphics=0 |
37013 | if test "$wxUSE_MSW" = 1; then | |
3dd30495 VZ |
37014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GDI+ is available" >&5 |
37015 | $as_echo_n "checking if GDI+ is available... " >&6; } | |
eff9d7f5 | 37016 | if ${wx_cv_lib_gdiplus+:} false; then : |
3dd30495 | 37017 | $as_echo_n "(cached) " >&6 |
a12bd55b VZ |
37018 | else |
37019 | ||
37020 | ac_ext=cpp | |
37021 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37022 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37023 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37024 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37025 | ||
3dd30495 | 37026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
a12bd55b | 37027 | /* end confdefs.h. */ |
41616c8a | 37028 | #include <windows.h> |
3017880e | 37029 | #include <gdiplus.h> |
a12bd55b VZ |
37030 | int |
37031 | main () | |
37032 | { | |
64b75e64 | 37033 | |
a12bd55b VZ |
37034 | using namespace Gdiplus; |
37035 | ||
37036 | ; | |
37037 | return 0; | |
37038 | } | |
64b75e64 | 37039 | _ACEOF |
3dd30495 | 37040 | if ac_fn_cxx_try_compile "$LINENO"; then : |
a12bd55b VZ |
37041 | wx_cv_lib_gdiplus=yes |
37042 | else | |
3dd30495 | 37043 | wx_cv_lib_gdiplus=no |
a12bd55b VZ |
37044 | |
37045 | fi | |
a12bd55b VZ |
37046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
37047 | ac_ext=c | |
37048 | ac_cpp='$CPP $CPPFLAGS' | |
37049 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37050 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37051 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
64b75e64 | 37052 | |
a12bd55b VZ |
37053 | |
37054 | ||
37055 | fi | |
3dd30495 VZ |
37056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_lib_gdiplus" >&5 |
37057 | $as_echo "$wx_cv_lib_gdiplus" >&6; } | |
a12bd55b VZ |
37058 | if test "$wx_cv_lib_gdiplus" = "yes"; then |
37059 | wx_has_graphics=1 | |
37060 | fi | |
711a4812 | 37061 | elif test "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
64b75e64 RD |
37062 | |
37063 | pkg_failed=no | |
3dd30495 VZ |
37064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5 |
37065 | $as_echo_n "checking for CAIRO... " >&6; } | |
64b75e64 RD |
37066 | |
37067 | if test -n "$PKG_CONFIG"; then | |
37068 | if test -n "$CAIRO_CFLAGS"; then | |
37069 | pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS" | |
37070 | else | |
37071 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 37072 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5 |
64b75e64 RD |
37073 | ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 |
37074 | ac_status=$? | |
3dd30495 VZ |
37075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
37076 | test $ac_status = 0; }; then | |
64b75e64 RD |
37077 | pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null` |
37078 | else | |
37079 | pkg_failed=yes | |
37080 | fi | |
37081 | fi | |
37082 | else | |
37083 | pkg_failed=untried | |
37084 | fi | |
37085 | if test -n "$PKG_CONFIG"; then | |
37086 | if test -n "$CAIRO_LIBS"; then | |
37087 | pkg_cv_CAIRO_LIBS="$CAIRO_LIBS" | |
37088 | else | |
37089 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 37090 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo\""; } >&5 |
64b75e64 RD |
37091 | ($PKG_CONFIG --exists --print-errors "cairo") 2>&5 |
37092 | ac_status=$? | |
3dd30495 VZ |
37093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
37094 | test $ac_status = 0; }; then | |
64b75e64 RD |
37095 | pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null` |
37096 | else | |
37097 | pkg_failed=yes | |
37098 | fi | |
37099 | fi | |
37100 | else | |
37101 | pkg_failed=untried | |
37102 | fi | |
37103 | ||
37104 | ||
37105 | ||
37106 | if test $pkg_failed = yes; then | |
37107 | ||
37108 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
37109 | _pkg_short_errors_supported=yes | |
37110 | else | |
37111 | _pkg_short_errors_supported=no | |
37112 | fi | |
37113 | if test $_pkg_short_errors_supported = yes; then | |
37114 | CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"` | |
37115 | else | |
37116 | CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"` | |
37117 | fi | |
37118 | # Put the nasty error message in config.log where it belongs | |
37119 | echo "$CAIRO_PKG_ERRORS" >&5 | |
37120 | ||
3dd30495 VZ |
37121 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cairo library not found" >&5 |
37122 | $as_echo "$as_me: WARNING: Cairo library not found" >&2;} | |
64b75e64 | 37123 | |
64b75e64 | 37124 | elif test $pkg_failed = untried; then |
3dd30495 VZ |
37125 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cairo library not found" >&5 |
37126 | $as_echo "$as_me: WARNING: Cairo library not found" >&2;} | |
64b75e64 | 37127 | |
64b75e64 RD |
37128 | else |
37129 | CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS | |
37130 | CAIRO_LIBS=$pkg_cv_CAIRO_LIBS | |
3dd30495 VZ |
37131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
37132 | $as_echo "yes" >&6; } | |
a12bd55b VZ |
37133 | wx_has_graphics=1 |
37134 | fi | |
711a4812 | 37135 | if test "$wx_has_graphics" = 1; then |
6d2139e8 VZ |
37136 | save_LIBS="$LIBS" |
37137 | LIBS="$LIBS $CAIRO_LIBS" | |
3dd30495 VZ |
37138 | for ac_func in cairo_push_group |
37139 | do : | |
37140 | ac_fn_c_check_func "$LINENO" "cairo_push_group" "ac_cv_func_cairo_push_group" | |
eff9d7f5 | 37141 | if test "x$ac_cv_func_cairo_push_group" = xyes; then : |
6d2139e8 | 37142 | cat >>confdefs.h <<_ACEOF |
3dd30495 | 37143 | #define HAVE_CAIRO_PUSH_GROUP 1 |
6d2139e8 VZ |
37144 | _ACEOF |
37145 | ||
37146 | fi | |
37147 | done | |
37148 | ||
37149 | LIBS="$save_LIBS" | |
37150 | if test "$ac_cv_func_cairo_push_group" = "no"; then | |
37151 | wx_has_graphics=0 | |
3dd30495 VZ |
37152 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cairo library is too old and misses cairo_push_group()" >&5 |
37153 | $as_echo "$as_me: WARNING: Cairo library is too old and misses cairo_push_group()" >&2;} | |
6d2139e8 | 37154 | else |
3dd30495 | 37155 | $as_echo "#define wxUSE_CAIRO 1" >>confdefs.h |
711a4812 VZ |
37156 | |
37157 | ||
6d2139e8 VZ |
37158 | if test "$wxUSE_GTK" != 1; then |
37159 | CPPFLAGS="$CAIRO_CFLAGS $CPPFLAGS" | |
37160 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $CAIRO_LIBS" | |
37161 | fi | |
711a4812 VZ |
37162 | fi |
37163 | fi | |
a12bd55b VZ |
37164 | else |
37165 | wx_has_graphics=1 | |
37166 | fi | |
37167 | ||
37168 | if test "$wx_has_graphics" = 1; then | |
3dd30495 | 37169 | $as_echo "#define wxUSE_GRAPHICS_CONTEXT 1" >>confdefs.h |
64b75e64 | 37170 | |
a12bd55b | 37171 | else |
3dd30495 VZ |
37172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: wxGraphicsContext won't be available" >&5 |
37173 | $as_echo "$as_me: WARNING: wxGraphicsContext won't be available" >&2;} | |
a12bd55b | 37174 | fi |
64b75e64 RD |
37175 | fi |
37176 | ||
37177 | ||
f10e38c4 VZ |
37178 | USE_MEDIA=0 |
37179 | ||
f03637a2 | 37180 | if test "$wxUSE_MEDIACTRL" = "yes" -o "$wxUSE_MEDIACTRL" = "auto"; then |
2f6c5bb5 VZ |
37181 | USE_MEDIA=1 |
37182 | ||
ce756cb0 | 37183 | if test "$wxUSE_GTK" = 1; then |
c9a66001 | 37184 | wxUSE_GSTREAMER="no" |
ce756cb0 | 37185 | |
f10e38c4 VZ |
37186 | GST_VERSION_MAJOR=0 |
37187 | GST_VERSION_MINOR=10 | |
2f6c5bb5 | 37188 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR |
f10e38c4 VZ |
37189 | |
37190 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 37191 | |
3ecd9f92 | 37192 | pkg_failed=no |
3dd30495 VZ |
37193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5 |
37194 | $as_echo_n "checking for GST... " >&6; } | |
ce756cb0 | 37195 | |
3ecd9f92 MW |
37196 | if test -n "$PKG_CONFIG"; then |
37197 | if test -n "$GST_CFLAGS"; then | |
37198 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
37199 | else | |
37200 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 37201 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION\""; } >&5 |
3fb71b01 | 37202 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION") 2>&5 |
3ecd9f92 | 37203 | ac_status=$? |
3dd30495 VZ |
37204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
37205 | test $ac_status = 0; }; then | |
3fb71b01 | 37206 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION" 2>/dev/null` |
dae87f93 | 37207 | else |
3ecd9f92 MW |
37208 | pkg_failed=yes |
37209 | fi | |
37210 | fi | |
37211 | else | |
37212 | pkg_failed=untried | |
dae87f93 | 37213 | fi |
dae87f93 | 37214 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
37215 | if test -n "$GST_LIBS"; then |
37216 | pkg_cv_GST_LIBS="$GST_LIBS" | |
37217 | else | |
37218 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 37219 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION\""; } >&5 |
3fb71b01 | 37220 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION") 2>&5 |
3ecd9f92 | 37221 | ac_status=$? |
3dd30495 VZ |
37222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
37223 | test $ac_status = 0; }; then | |
3fb71b01 | 37224 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION" 2>/dev/null` |
dae87f93 | 37225 | else |
3ecd9f92 MW |
37226 | pkg_failed=yes |
37227 | fi | |
37228 | fi | |
37229 | else | |
37230 | pkg_failed=untried | |
dae87f93 RN |
37231 | fi |
37232 | ||
dae87f93 | 37233 | |
2f6c5bb5 | 37234 | |
3ecd9f92 | 37235 | if test $pkg_failed = yes; then |
ce756cb0 | 37236 | |
3ecd9f92 MW |
37237 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
37238 | _pkg_short_errors_supported=yes | |
37239 | else | |
37240 | _pkg_short_errors_supported=no | |
37241 | fi | |
37242 | if test $_pkg_short_errors_supported = yes; then | |
3fb71b01 | 37243 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION"` |
3ecd9f92 | 37244 | else |
3fb71b01 | 37245 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION"` |
dae87f93 | 37246 | fi |
3ecd9f92 MW |
37247 | # Put the nasty error message in config.log where it belongs |
37248 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
37249 | |
37250 | ||
3dd30495 VZ |
37251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
37252 | $as_echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
3ecd9f92 | 37253 | GST_VERSION_MINOR=8 |
dae87f93 | 37254 | |
ce756cb0 | 37255 | |
3ecd9f92 | 37256 | elif test $pkg_failed = untried; then |
dae87f93 | 37257 | |
3dd30495 VZ |
37258 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5 |
37259 | $as_echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;} | |
f10e38c4 | 37260 | GST_VERSION_MINOR=8 |
dae87f93 | 37261 | |
2f6c5bb5 | 37262 | |
3ecd9f92 MW |
37263 | else |
37264 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
37265 | GST_LIBS=$pkg_cv_GST_LIBS | |
3dd30495 VZ |
37266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
37267 | $as_echo "yes" >&6; } | |
3ecd9f92 MW |
37268 | |
37269 | wxUSE_GSTREAMER="yes" | |
37270 | GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION" | |
dae87f93 | 37271 | |
3ecd9f92 | 37272 | fi |
2f6c5bb5 VZ |
37273 | else |
37274 | GST_VERSION_MINOR=8 | |
f10e38c4 | 37275 | fi |
dae87f93 | 37276 | |
2f6c5bb5 VZ |
37277 | if test $GST_VERSION_MINOR = "8"; then |
37278 | GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 37279 | |
3ecd9f92 | 37280 | pkg_failed=no |
3dd30495 VZ |
37281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GST" >&5 |
37282 | $as_echo_n "checking for GST... " >&6; } | |
dae87f93 | 37283 | |
3ecd9f92 MW |
37284 | if test -n "$PKG_CONFIG"; then |
37285 | if test -n "$GST_CFLAGS"; then | |
37286 | pkg_cv_GST_CFLAGS="$GST_CFLAGS" | |
37287 | else | |
37288 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 37289 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\""; } >&5 |
3ecd9f92 MW |
37290 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 |
37291 | ac_status=$? | |
3dd30495 VZ |
37292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
37293 | test $ac_status = 0; }; then | |
3ecd9f92 | 37294 | pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` |
dae87f93 | 37295 | else |
3ecd9f92 MW |
37296 | pkg_failed=yes |
37297 | fi | |
37298 | fi | |
37299 | else | |
37300 | pkg_failed=untried | |
dae87f93 | 37301 | fi |
f10e38c4 | 37302 | if test -n "$PKG_CONFIG"; then |
3ecd9f92 MW |
37303 | if test -n "$GST_LIBS"; then |
37304 | pkg_cv_GST_LIBS="$GST_LIBS" | |
37305 | else | |
37306 | if test -n "$PKG_CONFIG" && \ | |
3dd30495 | 37307 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\""; } >&5 |
3ecd9f92 MW |
37308 | ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5 |
37309 | ac_status=$? | |
3dd30495 VZ |
37310 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
37311 | test $ac_status = 0; }; then | |
3ecd9f92 | 37312 | pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null` |
dae87f93 | 37313 | else |
3ecd9f92 MW |
37314 | pkg_failed=yes |
37315 | fi | |
37316 | fi | |
37317 | else | |
37318 | pkg_failed=untried | |
dae87f93 RN |
37319 | fi |
37320 | ||
ce756cb0 | 37321 | |
2f6c5bb5 | 37322 | |
3ecd9f92 | 37323 | if test $pkg_failed = yes; then |
dae87f93 | 37324 | |
3ecd9f92 MW |
37325 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
37326 | _pkg_short_errors_supported=yes | |
37327 | else | |
37328 | _pkg_short_errors_supported=no | |
37329 | fi | |
37330 | if test $_pkg_short_errors_supported = yes; then | |
37331 | GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
37332 | else | |
37333 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"` | |
dae87f93 | 37334 | fi |
3ecd9f92 MW |
37335 | # Put the nasty error message in config.log where it belongs |
37336 | echo "$GST_PKG_ERRORS" >&5 | |
dae87f93 RN |
37337 | |
37338 | ||
3dd30495 VZ |
37339 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GStreamer 0.8/0.10 not available." >&5 |
37340 | $as_echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 37341 | |
3ecd9f92 | 37342 | elif test $pkg_failed = untried; then |
ce756cb0 | 37343 | |
3dd30495 VZ |
37344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GStreamer 0.8/0.10 not available." >&5 |
37345 | $as_echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;} | |
ce756cb0 | 37346 | |
3ecd9f92 MW |
37347 | else |
37348 | GST_CFLAGS=$pkg_cv_GST_CFLAGS | |
37349 | GST_LIBS=$pkg_cv_GST_LIBS | |
3dd30495 VZ |
37350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
37351 | $as_echo "yes" >&6; } | |
3ecd9f92 MW |
37352 | wxUSE_GSTREAMER="yes" |
37353 | fi | |
dae87f93 | 37354 | fi |
ce756cb0 | 37355 | |
f10e38c4 | 37356 | |
dae87f93 | 37357 | if test "$wxUSE_GSTREAMER" = "yes"; then |
c9a66001 | 37358 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
105a81f3 | 37359 | EXTRALIBS_MEDIA="$GST_LIBS" |
c9a66001 | 37360 | |
3dd30495 | 37361 | $as_echo "#define wxUSE_GSTREAMER 1" >>confdefs.h |
ce756cb0 | 37362 | |
2f6c5bb5 VZ |
37363 | else |
37364 | USE_MEDIA=0 | |
ce756cb0 | 37365 | fi |
0a898d4c RD |
37366 | |
37367 | elif test "$wxUSE_MAC" = 1; then | |
37368 | GST_LIBS="-framework QTKit" | |
ce756cb0 | 37369 | fi |
2f6c5bb5 VZ |
37370 | |
37371 | if test $USE_MEDIA = 1; then | |
37372 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
3dd30495 | 37373 | $as_echo "#define wxUSE_MEDIACTRL 1" >>confdefs.h |
ce756cb0 | 37374 | |
f03637a2 FM |
37375 | else |
37376 | if test "$wxUSE_MEDIACTRL" = "yes"; then | |
3dd30495 | 37377 | as_fn_error $? "GStreamer not available" "$LINENO" 5 |
f03637a2 | 37378 | else |
3dd30495 VZ |
37379 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GStreamer not available... disabling wxMediaCtrl" >&5 |
37380 | $as_echo "$as_me: WARNING: GStreamer not available... disabling wxMediaCtrl" >&2;} | |
f03637a2 | 37381 | fi |
2f6c5bb5 | 37382 | fi |
ce756cb0 RN |
37383 | fi |
37384 | ||
37385 | ||
6ab6fc6e | 37386 | if test "$cross_compiling" != "no"; then |
a848cd7e SC |
37387 | OSINFO="\"$host\"" |
37388 | else | |
37389 | OSINFO=`uname -s -r -m` | |
37390 | OSINFO="\"$OSINFO\"" | |
37391 | fi | |
37392 | ||
37393 | cat >>confdefs.h <<_ACEOF | |
37394 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
37395 | _ACEOF | |
37396 | ||
37397 | ||
37398 | ||
37399 | if test "x$prefix" != "xNONE"; then | |
37400 | wxPREFIX=$prefix | |
37401 | else | |
37402 | wxPREFIX=$ac_default_prefix | |
37403 | fi | |
37404 | ||
37405 | cat >>confdefs.h <<_ACEOF | |
37406 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
37407 | _ACEOF | |
37408 | ||
37409 | ||
a848cd7e SC |
37410 | |
37411 | ||
bd630206 VZ |
37412 | STD_BASE_LIBS="base" |
37413 | STD_GUI_LIBS="" | |
37414 | BUILT_WX_LIBS="base" | |
1e6b2edf | 37415 | ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base" |
a848cd7e | 37416 | |
bd630206 VZ |
37417 | if test "$wxUSE_SOCKETS" = "yes" ; then |
37418 | STD_BASE_LIBS="net $STD_BASE_LIBS" | |
37419 | BUILT_WX_LIBS="net $BUILT_WX_LIBS" | |
a848cd7e | 37420 | fi |
bd630206 VZ |
37421 | if test "$wxUSE_XML" = "yes" ; then |
37422 | STD_BASE_LIBS="xml $STD_BASE_LIBS" | |
37423 | BUILT_WX_LIBS="xml $BUILT_WX_LIBS" | |
54429bb3 | 37424 | fi |
a848cd7e | 37425 | |
bd630206 VZ |
37426 | if test "$wxUSE_GUI" = "yes"; then |
37427 | STD_GUI_LIBS="adv core" | |
6534efcf | 37428 | BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS" |
bd630206 VZ |
37429 | |
37430 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then | |
37431 | STD_GUI_LIBS="qa $STD_GUI_LIBS" | |
37432 | BUILT_WX_LIBS="qa $BUILT_WX_LIBS" | |
37433 | fi | |
bd630206 VZ |
37434 | if test "$wxUSE_HTML" = "yes" ; then |
37435 | STD_GUI_LIBS="html $STD_GUI_LIBS" | |
37436 | BUILT_WX_LIBS="html $BUILT_WX_LIBS" | |
37437 | fi | |
37438 | if test "$wxUSE_MEDIACTRL" = "yes" ; then | |
37439 | BUILT_WX_LIBS="media $BUILT_WX_LIBS" | |
37440 | fi | |
37441 | if test "$wxUSE_OPENGL" = "yes" ; then | |
37442 | BUILT_WX_LIBS="gl $BUILT_WX_LIBS" | |
37443 | fi | |
37444 | if test "$wxUSE_AUI" = "yes" ; then | |
37445 | BUILT_WX_LIBS="aui $BUILT_WX_LIBS" | |
37446 | fi | |
1c4293cb VZ |
37447 | if test "$wxUSE_PROPGRID" = "yes" ; then |
37448 | BUILT_WX_LIBS="propgrid $BUILT_WX_LIBS" | |
37449 | fi | |
d33ccbe1 VZ |
37450 | if test "$wxUSE_RIBBON" = "yes" ; then |
37451 | BUILT_WX_LIBS="ribbon $BUILT_WX_LIBS" | |
37452 | fi | |
d8a4a85e VZ |
37453 | if test "$wxUSE_RICHTEXT" = "yes" ; then |
37454 | BUILT_WX_LIBS="richtext $BUILT_WX_LIBS" | |
37455 | fi | |
bd630206 VZ |
37456 | if test "$wxUSE_STC" = "yes" ; then |
37457 | BUILT_WX_LIBS="stc $BUILT_WX_LIBS" | |
37458 | fi | |
b550ad2a | 37459 | if test "$wxUSE_WEBVIEW" = "yes" ; then |
96ceb556 SL |
37460 | STD_GUI_LIBS="webview $STD_GUI_LIBS" |
37461 | BUILT_WX_LIBS="webview $BUILT_WX_LIBS" | |
b550ad2a | 37462 | fi |
bd630206 VZ |
37463 | if test "$wxUSE_XRC" = "yes" ; then |
37464 | STD_GUI_LIBS="xrc $STD_GUI_LIBS" | |
37465 | BUILT_WX_LIBS="xrc $BUILT_WX_LIBS" | |
37466 | fi | |
a848cd7e SC |
37467 | fi |
37468 | ||
37469 | ||
37470 | ||
37471 | ||
37472 | ||
a848cd7e | 37473 | |
bd630206 | 37474 | |
d4fbe1d8 | 37475 | EXTRA_FRAMEWORKS= |
a848cd7e | 37476 | if test "$wxUSE_MAC" = 1 ; then |
5dcf30a0 | 37477 | if test "$USE_DARWIN" = 1; then |
2c90dc31 | 37478 | if test "$wxUSE_OSX_IPHONE" = 1; then |
eef1ecff | 37479 | EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore" |
2c90dc31 | 37480 | else |
fe1fd8d5 VZ |
37481 | EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL" |
37482 | ||
37483 | ||
37484 | if test "$cross_compiling" != "no"; then | |
37485 | wx_cv_target_x86_64=no | |
37486 | else | |
3dd30495 VZ |
37487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we target only x86_64" >&5 |
37488 | $as_echo_n "checking if we target only x86_64... " >&6; } | |
eff9d7f5 | 37489 | if ${wx_cv_target_x86_64+:} false; then : |
3dd30495 | 37490 | $as_echo_n "(cached) " >&6 |
fe1fd8d5 | 37491 | else |
3dd30495 | 37492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
fe1fd8d5 VZ |
37493 | /* end confdefs.h. */ |
37494 | int main() { return 0; } | |
37495 | _ACEOF | |
3dd30495 | 37496 | if ac_fn_c_try_link "$LINENO"; then : |
fe1fd8d5 VZ |
37497 | if file conftest$ac_exeext|grep -q 'i386\|ppc'; then |
37498 | wx_cv_target_x86_64=no | |
37499 | else | |
37500 | wx_cv_target_x86_64=yes | |
37501 | fi | |
37502 | ||
fe1fd8d5 | 37503 | fi |
3dd30495 VZ |
37504 | rm -f core conftest.err conftest.$ac_objext \ |
37505 | conftest$ac_exeext conftest.$ac_ext | |
fe1fd8d5 VZ |
37506 | |
37507 | fi | |
3dd30495 VZ |
37508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_target_x86_64" >&5 |
37509 | $as_echo "$wx_cv_target_x86_64" >&6; } | |
fe1fd8d5 VZ |
37510 | fi |
37511 | ||
37512 | if test "$wx_cv_target_x86_64" != "yes"; then | |
37513 | EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime" | |
37514 | fi | |
2c90dc31 | 37515 | fi |
5dcf30a0 | 37516 | fi |
a848cd7e | 37517 | fi |
f10f4c87 | 37518 | if test "$wxUSE_OLD_COCOA" = 1 ; then |
d4fbe1d8 | 37519 | EXTRA_FRAMEWORKS="-framework IOKit -framework Cocoa" |
4fc81cbc | 37520 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
d4fbe1d8 | 37521 | EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework QuickTime" |
4fc81cbc | 37522 | fi |
a848cd7e | 37523 | fi |
f10f4c87 | 37524 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_OLD_COCOA" != 1 ; then |
d4fbe1d8 | 37525 | EXTRA_FRAMEWORKS="$EXTRA_FRAMEWORKS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" |
19b27e78 | 37526 | fi |
a848cd7e | 37527 | |
d4fbe1d8 VZ |
37528 | LDFLAGS="$LDFLAGS $EXTRA_FRAMEWORKS" |
37529 | WXCONFIG_LDFLAGS="$WXCONFIG_LDFLAGS $EXTRA_FRAMEWORKS" | |
37530 | ||
a848cd7e SC |
37531 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
37532 | ||
a848cd7e SC |
37533 | if test "$wxUSE_GUI" = "yes"; then |
37534 | ||
37535 | ||
8bce5cda | 37536 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
840b9ff5 | 37537 | erase event exec font image minimal render \ |
6f58b8f4 | 37538 | shaped svg taborder vscroll widgets wrapsizer" |
a848cd7e SC |
37539 | |
37540 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
37541 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
37542 | fi | |
0b78747f | 37543 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
37544 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
37545 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
61aba460 | 37546 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg dll" |
8bce5cda MW |
37547 | fi |
37548 | fi | |
37549 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
37550 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 37551 | fi |
a848cd7e SC |
37552 | else |
37553 | SAMPLES_SUBDIRS="console" | |
ac209a0f VZ |
37554 | if test "$wxUSE_SOCKETS" = "yes" ; then |
37555 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
37556 | fi | |
ebe887ed VZ |
37557 | if test "$wxUSE_IPC" = "yes" ; then |
37558 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" | |
37559 | fi | |
a848cd7e SC |
37560 | fi |
37561 | ||
37562 | ||
48f625bc | 37563 | if test "x$INTELCC" = "xyes" ; then |
05622061 | 37564 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684,2259" |
17a1ebd1 VZ |
37565 | elif test "$GCC" = yes ; then |
37566 | CWARNINGS="-Wall -Wundef" | |
37567 | fi | |
37568 | ||
48f625bc | 37569 | if test "x$INTELCXX" = "xyes" ; then |
05622061 | 37570 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419,1881,2259" |
17a1ebd1 | 37571 | elif test "$GXX" = yes ; then |
41148443 | 37572 | CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy" |
3dd30495 VZ |
37573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXWARNINGS for gcc -Woverloaded-virtual" >&5 |
37574 | $as_echo_n "checking CXXWARNINGS for gcc -Woverloaded-virtual... " >&6; } | |
eff9d7f5 | 37575 | if ${ac_cv_cxxflags_gcc_option__Woverloaded_virtual+:} false; then : |
3dd30495 | 37576 | $as_echo_n "(cached) " >&6 |
41148443 VZ |
37577 | else |
37578 | ac_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown" | |
37579 | ||
37580 | ac_ext=cpp | |
37581 | ac_cpp='$CXXCPP $CPPFLAGS' | |
37582 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37583 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37584 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
37585 | ||
37586 | ac_save_CXXFLAGS="$CXXFLAGS" | |
37587 | for ac_arg in "-pedantic -Werror % -Woverloaded-virtual" "-pedantic % -Woverloaded-virtual %% no, obsolete" # | |
37588 | do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` | |
3dd30495 | 37589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
41148443 VZ |
37590 | /* end confdefs.h. */ |
37591 | ||
37592 | int | |
37593 | main () | |
37594 | { | |
37595 | return 0; | |
37596 | ; | |
37597 | return 0; | |
37598 | } | |
37599 | _ACEOF | |
3dd30495 | 37600 | if ac_fn_cxx_try_compile "$LINENO"; then : |
41148443 | 37601 | ac_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'` ; break |
41148443 | 37602 | fi |
41148443 VZ |
37603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
37604 | done | |
37605 | CXXFLAGS="$ac_save_CXXFLAGS" | |
37606 | ac_ext=c | |
37607 | ac_cpp='$CPP $CPPFLAGS' | |
37608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
37609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
37610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
37611 | ||
37612 | ||
37613 | fi | |
3dd30495 VZ |
37614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5 |
37615 | $as_echo "$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; } | |
41148443 VZ |
37616 | case ".$ac_cv_cxxflags_gcc_option__Woverloaded_virtual" in |
37617 | .ok|.ok,*) ;; | |
37618 | .|.no|.no,*) ;; | |
37619 | *) | |
37620 | if echo " $CXXWARNINGS " | grep " $ac_cv_cxxflags_gcc_option__Woverloaded_virtual " 2>&1 >/dev/null | |
3dd30495 | 37621 | then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXWARNINGS does contain \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual"; } >&5 |
41148443 VZ |
37622 | (: CXXWARNINGS does contain $ac_cv_cxxflags_gcc_option__Woverloaded_virtual) 2>&5 |
37623 | ac_status=$? | |
3dd30495 VZ |
37624 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
37625 | test $ac_status = 0; } | |
37626 | else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXWARNINGS=\"\$CXXWARNINGS \$ac_cv_cxxflags_gcc_option__Woverloaded_virtual\""; } >&5 | |
41148443 VZ |
37627 | (: CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual") 2>&5 |
37628 | ac_status=$? | |
3dd30495 VZ |
37629 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
37630 | test $ac_status = 0; } | |
41148443 VZ |
37631 | CXXWARNINGS="$CXXWARNINGS $ac_cv_cxxflags_gcc_option__Woverloaded_virtual" |
37632 | fi | |
37633 | ;; | |
37634 | esac | |
37635 | ||
2ad61b03 VZ |
37636 | |
37637 | if test "$wxUSE_MAC" = 1 ; then | |
37638 | CXXWARNINGS="$CXXWARNINGS -Wno-deprecated-declarations" | |
37639 | fi | |
6ebeb4c7 | 37640 | fi |
a848cd7e | 37641 | |
a848cd7e | 37642 | |
5ff751d6 VZ |
37643 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
37644 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
37645 | ||
37646 | ||
c92ad099 | 37647 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
02b05020 | 37648 | -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
37649 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
37650 | $CPPFLAGS ` | |
5ff751d6 | 37651 | |
8aeeb05c | 37652 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 37653 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
b1b592ad | 37654 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
64d975b2 DE |
37655 | OBJCFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $OBJCFLAGS ` |
37656 | OBJCXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $OBJCXXFLAGS ` | |
5ff751d6 VZ |
37657 | |
37658 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
37659 | ||
a848cd7e | 37660 | |
95986553 DE |
37661 | if test "x$MWCC" = "xyes"; then |
37662 | ||
37663 | CC="$CC -cwd source -I-" | |
37664 | CXX="$CXX -cwd source -I-" | |
37665 | fi | |
37666 | ||
a848cd7e | 37667 | |
0c3c69fc | 37668 | LIBS=`echo $LIBS` |
a848cd7e SC |
37669 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
37670 | EXTRALIBS_XML="$EXPAT_LINK" | |
37671 | EXTRALIBS_HTML="$MSPACK_LINK" | |
2f8711ed | 37672 | EXTRALIBS_MEDIA="$GST_LIBS" |
89b1afb4 | 37673 | EXTRALIBS_STC="-lwxscintilla${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}" |
a848cd7e | 37674 | if test "$wxUSE_GUI" = "yes"; then |
b9b55ad5 | 37675 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK` |
a848cd7e SC |
37676 | fi |
37677 | if test "$wxUSE_OPENGL" = "yes"; then | |
37678 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
37679 | fi | |
37680 | ||
8aeeb05c | 37681 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 37682 | |
5ff751d6 | 37683 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
37684 | |
37685 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 37686 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
37687 | fi |
37688 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 37689 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e | 37690 | fi |
a848cd7e | 37691 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
74802184 | 37692 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
37693 | fi |
37694 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 37695 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
37696 | fi |
37697 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 37698 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
37699 | fi |
37700 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 37701 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
37702 | fi |
37703 | ||
37704 | for i in $wxconfig_3rdparty ; do | |
89b1afb4 | 37705 | WXCONFIG_LIBS="-lwx${i}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
37706 | done |
37707 | ||
37708 | ||
37709 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
37710 | WXUNIV=1 | |
4353a8df VZ |
37711 | |
37712 | case "$wxUNIV_THEMES" in | |
37713 | ''|all) | |
3dd30495 | 37714 | $as_echo "#define wxUSE_ALL_THEMES 1" >>confdefs.h |
4353a8df VZ |
37715 | |
37716 | ;; | |
37717 | ||
37718 | *) | |
435a5ad0 | 37719 | for t in `echo $wxUNIV_THEMES | tr , ' ' | tr '[a-z]' '[A-Z]'`; do |
4353a8df VZ |
37720 | cat >>confdefs.h <<_ACEOF |
37721 | #define wxUSE_THEME_$t 1 | |
37722 | _ACEOF | |
37723 | ||
37724 | done | |
37725 | esac | |
a848cd7e SC |
37726 | else |
37727 | WXUNIV=0 | |
37728 | fi | |
37729 | ||
37730 | ||
37731 | ||
37732 | ||
37733 | ||
37734 | ||
37735 | ||
37736 | ||
a848cd7e SC |
37737 | if test $wxUSE_MONOLITHIC = "yes" ; then |
37738 | MONOLITHIC=1 | |
37739 | else | |
37740 | MONOLITHIC=0 | |
37741 | fi | |
37742 | ||
37743 | if test $wxUSE_PLUGINS = "yes" ; then | |
37744 | USE_PLUGINS=1 | |
37745 | else | |
37746 | USE_PLUGINS=0 | |
37747 | fi | |
37748 | ||
16358932 VZ |
37749 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
37750 | USE_QA=1 | |
37751 | else | |
37752 | USE_QA=0 | |
37753 | fi | |
37754 | ||
a848cd7e SC |
37755 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
37756 | OFFICIAL_BUILD=1 | |
37757 | else | |
37758 | OFFICIAL_BUILD=0 | |
37759 | fi | |
37760 | ||
37761 | ||
37762 | ||
37763 | ||
37764 | ||
37765 | ||
37766 | ||
37767 | ||
37768 | ||
37769 | ||
37770 | ||
37771 | ||
37772 | ||
37773 | ||
37774 | ||
37775 | ||
37776 | ||
37777 | ||
2b850ae1 | 37778 | |
b1b592ad | 37779 | |
2f8711ed | 37780 | |
a848cd7e SC |
37781 | |
37782 | ||
03773e40 | 37783 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr '[A-Z]' '[a-z]'` |
a848cd7e SC |
37784 | |
37785 | ||
37786 | ||
37787 | ||
37788 | ||
37789 | ||
37790 | ||
37791 | ||
516cf181 | 37792 | |
2fd71613 | 37793 | |
4d4ff94c VZ |
37794 | case "$TOOLKIT" in |
37795 | GTK) | |
c2e9ada4 | 37796 | TOOLKIT_DESC="GTK+" |
88262190 | 37797 | if test "$WXGTK2" = 1; then |
9dc44eff PC |
37798 | if test "$WXGTK3" = 1; then |
37799 | TOOLKIT_DESC="$TOOLKIT_DESC 3" | |
37800 | else | |
37801 | TOOLKIT_DESC="$TOOLKIT_DESC 2" | |
37802 | fi | |
bd8a7646 RR |
37803 | if test "$wxUSE_GTKPRINT" = "yes" ; then |
37804 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing"; | |
37805 | fi | |
c2e9ada4 VZ |
37806 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then |
37807 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint"; | |
37808 | fi | |
37809 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
37810 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs" | |
37811 | fi | |
afbf46a3 VZ |
37812 | if test "$wxUSE_LIBNOTIFY" = "yes" ; then |
37813 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA libnotify" | |
37814 | fi | |
c2e9ada4 VZ |
37815 | if test "$wxUSE_LIBHILDON" = "yes"; then |
37816 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon" | |
37817 | fi | |
426d19f1 JS |
37818 | if test "$wxUSE_LIBHILDON2" = "yes"; then |
37819 | TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon" | |
37820 | fi | |
c2e9ada4 VZ |
37821 | |
37822 | if test "$TOOLKIT_EXTRA" != ""; then | |
37823 | TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`" | |
37824 | fi | |
4d4ff94c | 37825 | fi |
9a8f0513 | 37826 | ;; |
4d4ff94c | 37827 | |
c2e9ada4 VZ |
37828 | ?*) |
37829 | TOOLKIT_DESC=$TOOLKIT_LOWERCASE | |
37830 | ;; | |
37831 | ||
4d4ff94c | 37832 | *) |
c2e9ada4 | 37833 | TOOLKIT_DESC="base only" |
9a8f0513 | 37834 | ;; |
4d4ff94c | 37835 | esac |
a848cd7e | 37836 | |
fb00f58d JS |
37837 | if test "$wxUSE_WINE" = "yes"; then |
37838 | BAKEFILE_FORCE_PLATFORM=win32 | |
37839 | fi | |
37840 | ||
a81d5bb6 MW |
37841 | if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no |
37842 | then | |
3dd30495 VZ |
37843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc precompiled header bug" >&5 |
37844 | $as_echo_n "checking for gcc precompiled header bug... " >&6; } | |
eff9d7f5 | 37845 | if ${wx_cv_gcc_pch_bug+:} false; then : |
3dd30495 | 37846 | $as_echo_n "(cached) " >&6 |
a81d5bb6 MW |
37847 | else |
37848 | ||
6d952fd7 MW |
37849 | echo '#include <stdio.h> |
37850 | const wchar_t test_var[] = L"awidetest";' > conftest.h | |
37851 | ||
37852 | echo '#include "conftest.h" | |
37853 | int main() | |
37854 | { | |
be49c6ec | 37855 | printf("%ls", test_var); |
6d952fd7 MW |
37856 | return 0; |
37857 | }' > conftest.cpp | |
37858 | ||
37859 | wx_cv_gcc_pch_bug="pch not supported" | |
a81d5bb6 | 37860 | |
b2983f42 | 37861 | if $CXX conftest.h >/dev/null 2>&1 |
a81d5bb6 | 37862 | then |
6d952fd7 | 37863 | wx_cv_gcc_pch_bug= |
a81d5bb6 | 37864 | |
6c7f5e56 | 37865 | if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1 |
a81d5bb6 | 37866 | then |
435a5ad0 | 37867 | if tr -dc '[a-z]' < conftest$PROGRAM_EXT | |
6c7f5e56 | 37868 | grep awidetest >/dev/null |
6d952fd7 MW |
37869 | then |
37870 | wx_cv_gcc_pch_bug=no | |
37871 | else | |
a81d5bb6 | 37872 | wx_cv_gcc_pch_bug=yes |
6d952fd7 | 37873 | fi |
a81d5bb6 MW |
37874 | fi |
37875 | fi | |
37876 | ||
6c7f5e56 | 37877 | rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT |
a81d5bb6 MW |
37878 | |
37879 | fi | |
3dd30495 VZ |
37880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $wx_cv_gcc_pch_bug" >&5 |
37881 | $as_echo "$wx_cv_gcc_pch_bug" >&6; } | |
a81d5bb6 MW |
37882 | |
37883 | if test "$wx_cv_gcc_pch_bug" = yes; then | |
37884 | bk_use_pch=no | |
37885 | fi | |
37886 | fi | |
37887 | ||
3dd30495 VZ |
37888 | # Find a good install program. We prefer a C program (faster), |
37889 | # so one script is as good as another. But avoid the broken or | |
37890 | # incompatible versions: | |
37891 | # SysV /etc/install, /usr/sbin/install | |
37892 | # SunOS /usr/etc/install | |
37893 | # IRIX /sbin/install | |
37894 | # AIX /bin/install | |
37895 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
37896 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
37897 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
37898 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
37899 | # OS/2's system install, which has a completely different semantic | |
37900 | # ./install, which can be erroneously created by make from ./install.sh. | |
37901 | # Reject install programs that cannot install multiple files. | |
37902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
37903 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
37904 | if test -z "$INSTALL"; then | |
eff9d7f5 | 37905 | if ${ac_cv_path_install+:} false; then : |
3dd30495 VZ |
37906 | $as_echo_n "(cached) " >&6 |
37907 | else | |
37908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37909 | for as_dir in $PATH | |
37910 | do | |
37911 | IFS=$as_save_IFS | |
37912 | test -z "$as_dir" && as_dir=. | |
37913 | # Account for people who put trailing slashes in PATH elements. | |
37914 | case $as_dir/ in #(( | |
37915 | ./ | .// | /[cC]/* | \ | |
37916 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
37917 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
37918 | /usr/ucb/* ) ;; | |
37919 | *) | |
37920 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
37921 | # Don't use installbsd from OSF since it installs stuff as root | |
37922 | # by default. | |
37923 | for ac_prog in ginstall scoinst install; do | |
37924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
eff9d7f5 | 37925 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3dd30495 VZ |
37926 | if test $ac_prog = install && |
37927 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37928 | # AIX install. It has an incompatible calling convention. | |
37929 | : | |
37930 | elif test $ac_prog = install && | |
37931 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
37932 | # program-specific install script used by HP pwplus--don't use. | |
37933 | : | |
37934 | else | |
37935 | rm -rf conftest.one conftest.two conftest.dir | |
37936 | echo one > conftest.one | |
37937 | echo two > conftest.two | |
37938 | mkdir conftest.dir | |
37939 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
37940 | test -s conftest.one && test -s conftest.two && | |
37941 | test -s conftest.dir/conftest.one && | |
37942 | test -s conftest.dir/conftest.two | |
37943 | then | |
37944 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
37945 | break 3 | |
37946 | fi | |
37947 | fi | |
37948 | fi | |
37949 | done | |
37950 | done | |
37951 | ;; | |
37952 | esac | |
37953 | ||
37954 | done | |
37955 | IFS=$as_save_IFS | |
37956 | ||
37957 | rm -rf conftest.one conftest.two conftest.dir | |
37958 | ||
37959 | fi | |
37960 | if test "${ac_cv_path_install+set}" = set; then | |
37961 | INSTALL=$ac_cv_path_install | |
37962 | else | |
37963 | # As a last resort, use the slow shell script. Don't cache a | |
37964 | # value for INSTALL within a source directory, because that will | |
37965 | # break other packages using the cache if that directory is | |
37966 | # removed, or if the value is a relative name. | |
37967 | INSTALL=$ac_install_sh | |
37968 | fi | |
37969 | fi | |
37970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
37971 | $as_echo "$INSTALL" >&6; } | |
37972 | ||
37973 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
37974 | # It thinks the first close brace ends the variable substitution. | |
37975 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
37976 | ||
37977 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
37978 | ||
37979 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
37980 | ||
9a8f0513 | 37981 | |
1e9e8aba DE |
37982 | |
37983 | ||
5b8deaba VZ |
37984 | |
37985 | ||
37986 | ||
a848cd7e | 37987 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 | 37988 | if test "x${host}" = "x" ; then |
3dd30495 | 37989 | as_fn_error $? "You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." "$LINENO" 5 |
f10e38c4 VZ |
37990 | fi |
37991 | ||
a848cd7e SC |
37992 | BAKEFILE_HOST="${host}" |
37993 | fi | |
37994 | ||
37995 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
37996 | ||
37997 | if test -n "$ac_tool_prefix"; then | |
37998 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
37999 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3dd30495 VZ |
38000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38001 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38002 | if ${ac_cv_prog_RANLIB+:} false; then : |
3dd30495 | 38003 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38004 | else |
38005 | if test -n "$RANLIB"; then | |
38006 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
38007 | else | |
38008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38009 | for as_dir in $PATH | |
38010 | do | |
38011 | IFS=$as_save_IFS | |
38012 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38013 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38015 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3dd30495 | 38016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38017 | break 2 |
38018 | fi | |
38019 | done | |
3dd30495 | 38020 | done |
47964710 | 38021 | IFS=$as_save_IFS |
a848cd7e SC |
38022 | |
38023 | fi | |
38024 | fi | |
38025 | RANLIB=$ac_cv_prog_RANLIB | |
38026 | if test -n "$RANLIB"; then | |
3dd30495 VZ |
38027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
38028 | $as_echo "$RANLIB" >&6; } | |
a848cd7e | 38029 | else |
3dd30495 VZ |
38030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38031 | $as_echo "no" >&6; } | |
a848cd7e SC |
38032 | fi |
38033 | ||
47964710 | 38034 | |
a848cd7e SC |
38035 | fi |
38036 | if test -z "$ac_cv_prog_RANLIB"; then | |
38037 | ac_ct_RANLIB=$RANLIB | |
38038 | # Extract the first word of "ranlib", so it can be a program name with args. | |
38039 | set dummy ranlib; ac_word=$2 | |
3dd30495 VZ |
38040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38041 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38042 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
3dd30495 | 38043 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38044 | else |
38045 | if test -n "$ac_ct_RANLIB"; then | |
38046 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
38047 | else | |
38048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38049 | for as_dir in $PATH | |
38050 | do | |
38051 | IFS=$as_save_IFS | |
38052 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38053 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38054 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38055 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3dd30495 | 38056 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38057 | break 2 |
38058 | fi | |
38059 | done | |
3dd30495 | 38060 | done |
47964710 | 38061 | IFS=$as_save_IFS |
a848cd7e | 38062 | |
a848cd7e SC |
38063 | fi |
38064 | fi | |
38065 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
38066 | if test -n "$ac_ct_RANLIB"; then | |
3dd30495 VZ |
38067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
38068 | $as_echo "$ac_ct_RANLIB" >&6; } | |
a848cd7e | 38069 | else |
3dd30495 VZ |
38070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38071 | $as_echo "no" >&6; } | |
a848cd7e SC |
38072 | fi |
38073 | ||
47964710 VS |
38074 | if test "x$ac_ct_RANLIB" = x; then |
38075 | RANLIB=":" | |
38076 | else | |
38077 | case $cross_compiling:$ac_tool_warned in | |
38078 | yes:) | |
3dd30495 VZ |
38079 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
38080 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
38081 | ac_tool_warned=yes ;; |
38082 | esac | |
38083 | RANLIB=$ac_ct_RANLIB | |
38084 | fi | |
a848cd7e SC |
38085 | else |
38086 | RANLIB="$ac_cv_prog_RANLIB" | |
38087 | fi | |
38088 | ||
a848cd7e | 38089 | |
3dd30495 VZ |
38090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
38091 | $as_echo_n "checking whether ln -s works... " >&6; } | |
a848cd7e SC |
38092 | LN_S=$as_ln_s |
38093 | if test "$LN_S" = "ln -s"; then | |
3dd30495 VZ |
38094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
38095 | $as_echo "yes" >&6; } | |
a848cd7e | 38096 | else |
3dd30495 VZ |
38097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
38098 | $as_echo "no, using $LN_S" >&6; } | |
a848cd7e SC |
38099 | fi |
38100 | ||
38101 | ||
3dd30495 VZ |
38102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
38103 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
38104 | set x ${MAKE-make} | |
38105 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
eff9d7f5 | 38106 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
3dd30495 | 38107 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38108 | else |
38109 | cat >conftest.make <<\_ACEOF | |
47964710 | 38110 | SHELL = /bin/sh |
a848cd7e | 38111 | all: |
47964710 | 38112 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
a848cd7e | 38113 | _ACEOF |
3dd30495 | 38114 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
47964710 VS |
38115 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
38116 | *@@@%%%=?*=@@@%%%*) | |
38117 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
38118 | *) | |
38119 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
38120 | esac | |
a848cd7e SC |
38121 | rm -f conftest.make |
38122 | fi | |
47964710 | 38123 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3dd30495 VZ |
38124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
38125 | $as_echo "yes" >&6; } | |
a848cd7e SC |
38126 | SET_MAKE= |
38127 | else | |
3dd30495 VZ |
38128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38129 | $as_echo "no" >&6; } | |
a848cd7e SC |
38130 | SET_MAKE="MAKE=${MAKE-make}" |
38131 | fi | |
38132 | ||
38133 | ||
38134 | ||
a485900c | 38135 | if test "x$SUNCXX" = "xyes"; then |
a48b6595 VZ |
38136 | AR=$CXX |
38137 | AROPTIONS="-xar -o" | |
38138 | ||
38139 | elif test "x$SGICC" = "xyes"; then | |
38140 | AR=$CXX | |
38141 | AROPTIONS="-ar -o" | |
a485900c | 38142 | |
a485900c VZ |
38143 | else |
38144 | if test -n "$ac_tool_prefix"; then | |
a848cd7e SC |
38145 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
38146 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3dd30495 VZ |
38147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38148 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38149 | if ${ac_cv_prog_AR+:} false; then : |
3dd30495 | 38150 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38151 | else |
38152 | if test -n "$AR"; then | |
38153 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
38154 | else | |
38155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38156 | for as_dir in $PATH | |
38157 | do | |
38158 | IFS=$as_save_IFS | |
38159 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38160 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38162 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
3dd30495 | 38163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38164 | break 2 |
38165 | fi | |
38166 | done | |
3dd30495 | 38167 | done |
47964710 | 38168 | IFS=$as_save_IFS |
a848cd7e SC |
38169 | |
38170 | fi | |
38171 | fi | |
38172 | AR=$ac_cv_prog_AR | |
38173 | if test -n "$AR"; then | |
3dd30495 VZ |
38174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
38175 | $as_echo "$AR" >&6; } | |
a848cd7e | 38176 | else |
3dd30495 VZ |
38177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38178 | $as_echo "no" >&6; } | |
a848cd7e SC |
38179 | fi |
38180 | ||
47964710 | 38181 | |
a848cd7e SC |
38182 | fi |
38183 | if test -z "$ac_cv_prog_AR"; then | |
38184 | ac_ct_AR=$AR | |
38185 | # Extract the first word of "ar", so it can be a program name with args. | |
38186 | set dummy ar; ac_word=$2 | |
3dd30495 VZ |
38187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38188 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38189 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
3dd30495 | 38190 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38191 | else |
38192 | if test -n "$ac_ct_AR"; then | |
38193 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
38194 | else | |
38195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38196 | for as_dir in $PATH | |
38197 | do | |
38198 | IFS=$as_save_IFS | |
38199 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38200 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38202 | ac_cv_prog_ac_ct_AR="ar" |
3dd30495 | 38203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38204 | break 2 |
38205 | fi | |
38206 | done | |
3dd30495 | 38207 | done |
47964710 | 38208 | IFS=$as_save_IFS |
a848cd7e | 38209 | |
a848cd7e SC |
38210 | fi |
38211 | fi | |
38212 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
38213 | if test -n "$ac_ct_AR"; then | |
3dd30495 VZ |
38214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
38215 | $as_echo "$ac_ct_AR" >&6; } | |
a848cd7e | 38216 | else |
3dd30495 VZ |
38217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38218 | $as_echo "no" >&6; } | |
a848cd7e SC |
38219 | fi |
38220 | ||
47964710 VS |
38221 | if test "x$ac_ct_AR" = x; then |
38222 | AR="ar" | |
38223 | else | |
38224 | case $cross_compiling:$ac_tool_warned in | |
38225 | yes:) | |
3dd30495 VZ |
38226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
38227 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
38228 | ac_tool_warned=yes ;; |
38229 | esac | |
38230 | AR=$ac_ct_AR | |
38231 | fi | |
a848cd7e SC |
38232 | else |
38233 | AR="$ac_cv_prog_AR" | |
38234 | fi | |
38235 | ||
a485900c VZ |
38236 | AROPTIONS=rcu |
38237 | fi | |
38238 | ||
38239 | ||
a848cd7e SC |
38240 | if test -n "$ac_tool_prefix"; then |
38241 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
38242 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3dd30495 VZ |
38243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38244 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38245 | if ${ac_cv_prog_STRIP+:} false; then : |
3dd30495 | 38246 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38247 | else |
38248 | if test -n "$STRIP"; then | |
38249 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
38250 | else | |
38251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38252 | for as_dir in $PATH | |
38253 | do | |
38254 | IFS=$as_save_IFS | |
38255 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38256 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38257 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38258 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
3dd30495 | 38259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38260 | break 2 |
38261 | fi | |
38262 | done | |
3dd30495 | 38263 | done |
47964710 | 38264 | IFS=$as_save_IFS |
a848cd7e SC |
38265 | |
38266 | fi | |
38267 | fi | |
38268 | STRIP=$ac_cv_prog_STRIP | |
38269 | if test -n "$STRIP"; then | |
3dd30495 VZ |
38270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
38271 | $as_echo "$STRIP" >&6; } | |
a848cd7e | 38272 | else |
3dd30495 VZ |
38273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38274 | $as_echo "no" >&6; } | |
a848cd7e SC |
38275 | fi |
38276 | ||
47964710 | 38277 | |
a848cd7e SC |
38278 | fi |
38279 | if test -z "$ac_cv_prog_STRIP"; then | |
38280 | ac_ct_STRIP=$STRIP | |
38281 | # Extract the first word of "strip", so it can be a program name with args. | |
38282 | set dummy strip; ac_word=$2 | |
3dd30495 VZ |
38283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38284 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38285 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
3dd30495 | 38286 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38287 | else |
38288 | if test -n "$ac_ct_STRIP"; then | |
38289 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
38290 | else | |
38291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38292 | for as_dir in $PATH | |
38293 | do | |
38294 | IFS=$as_save_IFS | |
38295 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38296 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38297 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38298 | ac_cv_prog_ac_ct_STRIP="strip" |
3dd30495 | 38299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38300 | break 2 |
38301 | fi | |
38302 | done | |
3dd30495 | 38303 | done |
47964710 | 38304 | IFS=$as_save_IFS |
a848cd7e | 38305 | |
a848cd7e SC |
38306 | fi |
38307 | fi | |
38308 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
38309 | if test -n "$ac_ct_STRIP"; then | |
3dd30495 VZ |
38310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
38311 | $as_echo "$ac_ct_STRIP" >&6; } | |
a848cd7e | 38312 | else |
3dd30495 VZ |
38313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38314 | $as_echo "no" >&6; } | |
a848cd7e SC |
38315 | fi |
38316 | ||
47964710 VS |
38317 | if test "x$ac_ct_STRIP" = x; then |
38318 | STRIP=":" | |
38319 | else | |
38320 | case $cross_compiling:$ac_tool_warned in | |
38321 | yes:) | |
3dd30495 VZ |
38322 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
38323 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
38324 | ac_tool_warned=yes ;; |
38325 | esac | |
38326 | STRIP=$ac_ct_STRIP | |
38327 | fi | |
a848cd7e SC |
38328 | else |
38329 | STRIP="$ac_cv_prog_STRIP" | |
38330 | fi | |
38331 | ||
38332 | if test -n "$ac_tool_prefix"; then | |
38333 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
38334 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
3dd30495 VZ |
38335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38336 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38337 | if ${ac_cv_prog_NM+:} false; then : |
3dd30495 | 38338 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38339 | else |
38340 | if test -n "$NM"; then | |
38341 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
38342 | else | |
38343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38344 | for as_dir in $PATH | |
38345 | do | |
38346 | IFS=$as_save_IFS | |
38347 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38348 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38350 | ac_cv_prog_NM="${ac_tool_prefix}nm" |
3dd30495 | 38351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38352 | break 2 |
38353 | fi | |
38354 | done | |
3dd30495 | 38355 | done |
47964710 | 38356 | IFS=$as_save_IFS |
a848cd7e SC |
38357 | |
38358 | fi | |
38359 | fi | |
38360 | NM=$ac_cv_prog_NM | |
38361 | if test -n "$NM"; then | |
3dd30495 VZ |
38362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
38363 | $as_echo "$NM" >&6; } | |
a848cd7e | 38364 | else |
3dd30495 VZ |
38365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38366 | $as_echo "no" >&6; } | |
a848cd7e SC |
38367 | fi |
38368 | ||
47964710 | 38369 | |
a848cd7e SC |
38370 | fi |
38371 | if test -z "$ac_cv_prog_NM"; then | |
38372 | ac_ct_NM=$NM | |
38373 | # Extract the first word of "nm", so it can be a program name with args. | |
38374 | set dummy nm; ac_word=$2 | |
3dd30495 VZ |
38375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38376 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38377 | if ${ac_cv_prog_ac_ct_NM+:} false; then : |
3dd30495 | 38378 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38379 | else |
38380 | if test -n "$ac_ct_NM"; then | |
38381 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
38382 | else | |
38383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38384 | for as_dir in $PATH | |
38385 | do | |
38386 | IFS=$as_save_IFS | |
38387 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38388 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38390 | ac_cv_prog_ac_ct_NM="nm" |
3dd30495 | 38391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38392 | break 2 |
38393 | fi | |
38394 | done | |
3dd30495 | 38395 | done |
47964710 | 38396 | IFS=$as_save_IFS |
a848cd7e | 38397 | |
a848cd7e SC |
38398 | fi |
38399 | fi | |
38400 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
38401 | if test -n "$ac_ct_NM"; then | |
3dd30495 VZ |
38402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 |
38403 | $as_echo "$ac_ct_NM" >&6; } | |
a848cd7e | 38404 | else |
3dd30495 VZ |
38405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38406 | $as_echo "no" >&6; } | |
a848cd7e SC |
38407 | fi |
38408 | ||
47964710 VS |
38409 | if test "x$ac_ct_NM" = x; then |
38410 | NM=":" | |
38411 | else | |
38412 | case $cross_compiling:$ac_tool_warned in | |
38413 | yes:) | |
3dd30495 VZ |
38414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
38415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
38416 | ac_tool_warned=yes ;; |
38417 | esac | |
38418 | NM=$ac_ct_NM | |
38419 | fi | |
a848cd7e SC |
38420 | else |
38421 | NM="$ac_cv_prog_NM" | |
38422 | fi | |
38423 | ||
38424 | ||
e520c3f7 | 38425 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
38426 | |
38427 | ||
38428 | LDFLAGS_GUI= | |
38429 | case ${BAKEFILE_HOST} in | |
38430 | *-*-cygwin* | *-*-mingw32* ) | |
38431 | LDFLAGS_GUI="-mwindows" | |
38432 | esac | |
38433 | ||
38434 | ||
38435 | fi | |
38436 | ||
3dd30495 VZ |
38437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make is GNU make" >&5 |
38438 | $as_echo_n "checking if make is GNU make... " >&6; } | |
eff9d7f5 | 38439 | if ${bakefile_cv_prog_makeisgnu+:} false; then : |
3dd30495 | 38440 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38441 | else |
38442 | ||
38443 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
38444 | egrep -s GNU > /dev/null); then | |
38445 | bakefile_cv_prog_makeisgnu="yes" | |
38446 | else | |
38447 | bakefile_cv_prog_makeisgnu="no" | |
38448 | fi | |
38449 | ||
38450 | fi | |
3dd30495 VZ |
38451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_prog_makeisgnu" >&5 |
38452 | $as_echo "$bakefile_cv_prog_makeisgnu" >&6; } | |
a848cd7e SC |
38453 | |
38454 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
38455 | IF_GNU_MAKE="" | |
38456 | else | |
38457 | IF_GNU_MAKE="#" | |
38458 | fi | |
38459 | ||
38460 | ||
38461 | ||
38462 | PLATFORM_UNIX=0 | |
38463 | PLATFORM_WIN32=0 | |
38464 | PLATFORM_MSDOS=0 | |
38465 | PLATFORM_MAC=0 | |
1e9e8aba | 38466 | PLATFORM_MACOS=0 |
a848cd7e SC |
38467 | PLATFORM_MACOSX=0 |
38468 | PLATFORM_OS2=0 | |
1e9e8aba | 38469 | PLATFORM_BEOS=0 |
a848cd7e SC |
38470 | |
38471 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
38472 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 38473 | *-*-mingw32* ) |
a848cd7e SC |
38474 | PLATFORM_WIN32=1 |
38475 | ;; | |
38476 | *-pc-msdosdjgpp ) | |
38477 | PLATFORM_MSDOS=1 | |
38478 | ;; | |
38479 | *-pc-os2_emx | *-pc-os2-emx ) | |
38480 | PLATFORM_OS2=1 | |
38481 | ;; | |
47bd5406 | 38482 | *-*-darwin* ) |
a848cd7e SC |
38483 | PLATFORM_MAC=1 |
38484 | PLATFORM_MACOSX=1 | |
38485 | ;; | |
1e9e8aba DE |
38486 | *-*-beos* ) |
38487 | PLATFORM_BEOS=1 | |
38488 | ;; | |
38489 | powerpc-apple-macos* ) | |
38490 | PLATFORM_MAC=1 | |
38491 | PLATFORM_MACOS=1 | |
38492 | ;; | |
a848cd7e SC |
38493 | * ) |
38494 | PLATFORM_UNIX=1 | |
38495 | ;; | |
38496 | esac | |
38497 | else | |
38498 | case "$BAKEFILE_FORCE_PLATFORM" in | |
38499 | win32 ) | |
38500 | PLATFORM_WIN32=1 | |
38501 | ;; | |
38502 | msdos ) | |
38503 | PLATFORM_MSDOS=1 | |
38504 | ;; | |
38505 | os2 ) | |
38506 | PLATFORM_OS2=1 | |
38507 | ;; | |
38508 | darwin ) | |
38509 | PLATFORM_MAC=1 | |
38510 | PLATFORM_MACOSX=1 | |
38511 | ;; | |
38512 | unix ) | |
38513 | PLATFORM_UNIX=1 | |
38514 | ;; | |
1e9e8aba DE |
38515 | beos ) |
38516 | PLATFORM_BEOS=1 | |
38517 | ;; | |
a848cd7e | 38518 | * ) |
3dd30495 | 38519 | as_fn_error $? "Unknown platform: $BAKEFILE_FORCE_PLATFORM" "$LINENO" 5 |
fcc9ca7f | 38520 | ;; |
a848cd7e SC |
38521 | esac |
38522 | fi | |
38523 | ||
38524 | ||
38525 | ||
38526 | ||
38527 | ||
38528 | ||
38529 | ||
38530 | ||
38531 | ||
1e9e8aba DE |
38532 | |
38533 | ||
47964710 | 38534 | # Check whether --enable-omf was given. |
3dd30495 | 38535 | if test "${enable_omf+set}" = set; then : |
47964710 VS |
38536 | enableval=$enable_omf; bk_os2_use_omf="$enableval" |
38537 | fi | |
38538 | ||
a848cd7e SC |
38539 | |
38540 | case "${BAKEFILE_HOST}" in | |
38541 | *-*-darwin* ) | |
47bd5406 VZ |
38542 | if test "x$GCC" = "xyes"; then |
38543 | CFLAGS="$CFLAGS -fno-common" | |
38544 | CXXFLAGS="$CXXFLAGS -fno-common" | |
38545 | fi | |
38546 | if test "x$XLCC" = "xyes"; then | |
38547 | CFLAGS="$CFLAGS -qnocommon" | |
38548 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
38549 | fi | |
a848cd7e SC |
38550 | ;; |
38551 | ||
38552 | *-pc-os2_emx | *-pc-os2-emx ) | |
38553 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
38554 | AR=emxomfar | |
38555 | RANLIB=: | |
38556 | LDFLAGS="-Zomf $LDFLAGS" | |
38557 | CFLAGS="-Zomf $CFLAGS" | |
38558 | CXXFLAGS="-Zomf $CXXFLAGS" | |
38559 | OS2_LIBEXT="lib" | |
38560 | else | |
38561 | OS2_LIBEXT="a" | |
38562 | fi | |
38563 | ;; | |
1e9e8aba DE |
38564 | |
38565 | i*86-*-beos* ) | |
38566 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
38567 | ;; | |
a848cd7e SC |
38568 | esac |
38569 | ||
38570 | ||
38571 | SO_SUFFIX="so" | |
38572 | SO_SUFFIX_MODULE="so" | |
38573 | EXEEXT="" | |
38574 | LIBPREFIX="lib" | |
38575 | LIBEXT=".a" | |
38576 | DLLPREFIX="lib" | |
38577 | DLLPREFIX_MODULE="" | |
38578 | DLLIMP_SUFFIX="" | |
810b94f0 | 38579 | dlldir="$libdir" |
a848cd7e SC |
38580 | |
38581 | case "${BAKEFILE_HOST}" in | |
41148443 VZ |
38582 | ia64-hp-hpux* ) |
38583 | ;; | |
a848cd7e SC |
38584 | *-hp-hpux* ) |
38585 | SO_SUFFIX="sl" | |
38586 | SO_SUFFIX_MODULE="sl" | |
38587 | ;; | |
38588 | *-*-aix* ) | |
38589 | SO_SUFFIX="a" | |
38590 | SO_SUFFIX_MODULE="a" | |
38591 | ;; | |
810b94f0 MW |
38592 | *-*-cygwin* ) |
38593 | SO_SUFFIX="dll" | |
38594 | SO_SUFFIX_MODULE="dll" | |
38595 | DLLIMP_SUFFIX="dll.a" | |
38596 | EXEEXT=".exe" | |
38597 | DLLPREFIX="cyg" | |
38598 | dlldir="$bindir" | |
38599 | ;; | |
38600 | *-*-mingw32* ) | |
a848cd7e SC |
38601 | SO_SUFFIX="dll" |
38602 | SO_SUFFIX_MODULE="dll" | |
38603 | DLLIMP_SUFFIX="dll.a" | |
38604 | EXEEXT=".exe" | |
38605 | DLLPREFIX="" | |
810b94f0 | 38606 | dlldir="$bindir" |
a848cd7e SC |
38607 | ;; |
38608 | *-pc-msdosdjgpp ) | |
38609 | EXEEXT=".exe" | |
38610 | DLLPREFIX="" | |
810b94f0 | 38611 | dlldir="$bindir" |
a848cd7e SC |
38612 | ;; |
38613 | *-pc-os2_emx | *-pc-os2-emx ) | |
38614 | SO_SUFFIX="dll" | |
38615 | SO_SUFFIX_MODULE="dll" | |
38616 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
38617 | EXEEXT=".exe" | |
38618 | DLLPREFIX="" | |
38619 | LIBPREFIX="" | |
38620 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 38621 | dlldir="$bindir" |
a848cd7e | 38622 | ;; |
47bd5406 | 38623 | *-*-darwin* ) |
a848cd7e SC |
38624 | SO_SUFFIX="dylib" |
38625 | SO_SUFFIX_MODULE="bundle" | |
38626 | ;; | |
38627 | esac | |
38628 | ||
38629 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
38630 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
38631 | fi | |
38632 | ||
38633 | ||
38634 | ||
38635 | ||
38636 | ||
38637 | ||
38638 | ||
38639 | ||
38640 | ||
38641 | ||
38642 | ||
810b94f0 | 38643 | |
1e9e8aba DE |
38644 | PIC_FLAG="" |
38645 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
38646 | PIC_FLAG="-fPIC" |
38647 | fi | |
38648 | ||
1e9e8aba DE |
38649 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
38650 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 38651 | WINDOWS_IMPLIB=0 |
1e9e8aba | 38652 | |
a848cd7e SC |
38653 | case "${BAKEFILE_HOST}" in |
38654 | *-hp-hpux* ) | |
1e9e8aba | 38655 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
38656 | LDFLAGS="$LDFLAGS -L/usr/lib" |
38657 | ||
38658 | SHARED_LD_CC="${CC} -b -o" | |
38659 | SHARED_LD_CXX="${CXX} -b -o" | |
38660 | PIC_FLAG="+Z" | |
38661 | fi | |
38662 | ;; | |
38663 | ||
38664 | *-*-linux* ) | |
05622061 | 38665 | if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then |
43a7c679 VZ |
38666 | PIC_FLAG="-KPIC" |
38667 | elif test "x$SUNCXX" = "xyes"; then | |
38668 | SHARED_LD_CC="${CC} -G -o" | |
38669 | SHARED_LD_CXX="${CXX} -G -o" | |
38670 | PIC_FLAG="-KPIC" | |
a848cd7e SC |
38671 | fi |
38672 | ;; | |
38673 | ||
38674 | *-*-solaris2* ) | |
43a7c679 | 38675 | if test "x$SUNCXX" = xyes ; then |
a848cd7e SC |
38676 | SHARED_LD_CC="${CC} -G -o" |
38677 | SHARED_LD_CXX="${CXX} -G -o" | |
38678 | PIC_FLAG="-KPIC" | |
38679 | fi | |
38680 | ;; | |
38681 | ||
38682 | *-*-darwin* ) | |
38683 | ||
473276a9 VS |
38684 | D='$' |
38685 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
38686 | #!/bin/sh |
38687 | #----------------------------------------------------------------------------- | |
38688 | #-- Name: distrib/mac/shared-ld-sh | |
38689 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
38690 | #-- Author: Gilles Depeyrot | |
38691 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
38692 | #-- Licence: any use permitted | |
38693 | #----------------------------------------------------------------------------- | |
38694 | ||
38695 | verbose=0 | |
38696 | args="" | |
38697 | objects="" | |
38698 | linking_flag="-dynamiclib" | |
810b94f0 | 38699 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 38700 | |
5b8deaba VZ |
38701 | if test "x${D}CXX" = "x"; then |
38702 | CXX="c++" | |
38703 | fi | |
38704 | ||
473276a9 VS |
38705 | while test ${D}# -gt 0; do |
38706 | case ${D}1 in | |
a848cd7e SC |
38707 | |
38708 | -v) | |
38709 | verbose=1 | |
38710 | ;; | |
38711 | ||
38712 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
38713 | # collect these options and values | |
473276a9 | 38714 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
38715 | shift |
38716 | ;; | |
38717 | ||
5b8deaba VZ |
38718 | -arch|-isysroot) |
38719 | # collect these options and values | |
38720 | ldargs="${D}{ldargs} ${D}1 ${D}2" | |
38721 | shift | |
38722 | ;; | |
38723 | ||
810b94f0 MW |
38724 | -s|-Wl,*) |
38725 | # collect these load args | |
38726 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 38727 | ;; |
810b94f0 MW |
38728 | |
38729 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 38730 | # collect these options |
473276a9 | 38731 | args="${D}{args} ${D}1" |
a848cd7e SC |
38732 | ;; |
38733 | ||
38734 | -dynamiclib|-bundle) | |
473276a9 | 38735 | linking_flag="${D}1" |
a848cd7e SC |
38736 | ;; |
38737 | ||
38738 | -*) | |
473276a9 | 38739 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
38740 | exit 1 |
38741 | ;; | |
38742 | ||
38743 | *.o | *.a | *.dylib) | |
38744 | # collect object files | |
473276a9 | 38745 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
38746 | ;; |
38747 | ||
38748 | *) | |
473276a9 | 38749 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
38750 | exit 1 |
38751 | ;; | |
38752 | ||
38753 | esac | |
38754 | shift | |
38755 | done | |
38756 | ||
810b94f0 MW |
38757 | status=0 |
38758 | ||
a848cd7e SC |
38759 | # |
38760 | # Link one module containing all the others | |
38761 | # | |
473276a9 | 38762 | if test ${D}{verbose} = 1; then |
5b8deaba | 38763 | echo "${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 38764 | fi |
5b8deaba | 38765 | ${D}CXX ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 38766 | status=${D}? |
a848cd7e SC |
38767 | |
38768 | # | |
810b94f0 MW |
38769 | # Link the shared library from the single module created, but only if the |
38770 | # previous command didn't fail: | |
a848cd7e | 38771 | # |
810b94f0 MW |
38772 | if test ${D}{status} = 0; then |
38773 | if test ${D}{verbose} = 1; then | |
5b8deaba | 38774 | echo "${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args}" |
810b94f0 | 38775 | fi |
5b8deaba | 38776 | ${D}CXX ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
810b94f0 | 38777 | status=${D}? |
a848cd7e SC |
38778 | fi |
38779 | ||
38780 | # | |
38781 | # Remove intermediate module | |
38782 | # | |
473276a9 | 38783 | rm -f master.${D}${D}.o |
a848cd7e | 38784 | |
810b94f0 | 38785 | exit ${D}status |
a848cd7e | 38786 | EOF |
473276a9 | 38787 | |
583d6b4b VZ |
38788 | chmod +x shared-ld-sh |
38789 | ||
38790 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
78808897 | 38791 | SHARED_LD_MODULE_CXX="CXX=\"\$(CXX)\" $SHARED_LD_MODULE_CC" |
583d6b4b VZ |
38792 | |
38793 | ||
3dd30495 VZ |
38794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc 3.1 or later" >&5 |
38795 | $as_echo_n "checking for gcc 3.1 or later... " >&6; } | |
eff9d7f5 | 38796 | if ${bakefile_cv_gcc31+:} false; then : |
3dd30495 | 38797 | $as_echo_n "(cached) " >&6 |
583d6b4b VZ |
38798 | else |
38799 | ||
3dd30495 | 38800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
583d6b4b VZ |
38801 | /* end confdefs.h. */ |
38802 | ||
38803 | int | |
38804 | main () | |
38805 | { | |
38806 | ||
38807 | #if (__GNUC__ < 3) || \ | |
38808 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 38809 | This is old gcc |
583d6b4b | 38810 | #endif |
a848cd7e | 38811 | |
583d6b4b VZ |
38812 | ; |
38813 | return 0; | |
38814 | } | |
38815 | _ACEOF | |
3dd30495 | 38816 | if ac_fn_c_try_compile "$LINENO"; then : |
583d6b4b VZ |
38817 | |
38818 | bakefile_cv_gcc31=yes | |
38819 | ||
38820 | else | |
583d6b4b VZ |
38821 | |
38822 | bakefile_cv_gcc31=no | |
38823 | ||
38824 | ||
38825 | fi | |
47964710 | 38826 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
583d6b4b VZ |
38827 | |
38828 | fi | |
3dd30495 VZ |
38829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bakefile_cv_gcc31" >&5 |
38830 | $as_echo "$bakefile_cv_gcc31" >&6; } | |
583d6b4b | 38831 | if test "$bakefile_cv_gcc31" = "no"; then |
a848cd7e | 38832 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 38833 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
38834 | else |
38835 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 38836 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
38837 | fi |
38838 | ||
47bd5406 VZ |
38839 | if test "x$GCC" == "xyes"; then |
38840 | PIC_FLAG="-dynamic -fPIC" | |
38841 | fi | |
38842 | if test "x$XLCC" = "xyes"; then | |
38843 | PIC_FLAG="-dynamic -DPIC" | |
38844 | fi | |
a848cd7e SC |
38845 | ;; |
38846 | ||
38847 | *-*-aix* ) | |
f6b50c59 | 38848 | if test "x$GCC" = "xyes"; then |
583d6b4b | 38849 | PIC_FLAG="" |
f6b50c59 | 38850 | |
583d6b4b VZ |
38851 | case "${BAKEFILE_HOST}" in |
38852 | *-*-aix5* ) | |
38853 | LD_EXPFULL="-Wl,-bexpfull" | |
38854 | ;; | |
38855 | esac | |
f6b50c59 | 38856 | |
583d6b4b VZ |
38857 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
38858 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
38859 | else | |
38860 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e | 38861 | set dummy makeC++SharedLib; ac_word=$2 |
3dd30495 VZ |
38862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
38863 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 38864 | if ${ac_cv_prog_AIX_CXX_LD+:} false; then : |
3dd30495 | 38865 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
38866 | else |
38867 | if test -n "$AIX_CXX_LD"; then | |
38868 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
38869 | else | |
38870 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38871 | for as_dir in $PATH | |
38872 | do | |
38873 | IFS=$as_save_IFS | |
38874 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 38875 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 38876 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 38877 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" |
3dd30495 | 38878 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
38879 | break 2 |
38880 | fi | |
38881 | done | |
3dd30495 | 38882 | done |
47964710 | 38883 | IFS=$as_save_IFS |
a848cd7e SC |
38884 | |
38885 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
38886 | fi | |
38887 | fi | |
38888 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
38889 | if test -n "$AIX_CXX_LD"; then | |
3dd30495 VZ |
38890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIX_CXX_LD" >&5 |
38891 | $as_echo "$AIX_CXX_LD" >&6; } | |
a848cd7e | 38892 | else |
3dd30495 VZ |
38893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
38894 | $as_echo "no" >&6; } | |
a848cd7e SC |
38895 | fi |
38896 | ||
47964710 | 38897 | |
f6b50c59 | 38898 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
38899 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
38900 | fi | |
38901 | ;; | |
38902 | ||
38903 | *-*-beos* ) | |
1e9e8aba DE |
38904 | SHARED_LD_CC="${LD} -nostart -o" |
38905 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
38906 | ;; |
38907 | ||
38908 | *-*-irix* ) | |
38909 | if test "x$GCC" != "xyes"; then | |
38910 | PIC_FLAG="-KPIC" | |
38911 | fi | |
38912 | ;; | |
38913 | ||
38914 | *-*-cygwin* | *-*-mingw32* ) | |
38915 | PIC_FLAG="" | |
1e9e8aba DE |
38916 | SHARED_LD_CC="\$(CC) -shared -o" |
38917 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 38918 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
38919 | ;; |
38920 | ||
38921 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
38922 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
38923 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 38924 | PIC_FLAG="" |
473276a9 VS |
38925 | |
38926 | D='$' | |
38927 | cat <<EOF >dllar.sh | |
38928 | #!/bin/sh | |
38929 | # | |
38930 | # dllar - a tool to build both a .dll and an .a file | |
38931 | # from a set of object (.o) files for EMX/OS2. | |
38932 | # | |
38933 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
38934 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
38935 | # | |
38936 | # This script will accept a set of files on the command line. | |
38937 | # All the public symbols from the .o files will be exported into | |
38938 | # a .DEF file, then linker will be run (through gcc) against them to | |
38939 | # build a shared library consisting of all given .o files. All libraries | |
38940 | # (.a) will be first decompressed into component .o files then act as | |
38941 | # described above. You can optionally give a description (-d "description") | |
38942 | # which will be put into .DLL. To see the list of accepted options (as well | |
38943 | # as command-line format) simply run this program without options. The .DLL | |
38944 | # is built to be imported by name (there is no guarantee that new versions | |
38945 | # of the library you build will have same ordinals for same symbols). | |
38946 | # | |
38947 | # dllar is free software; you can redistribute it and/or modify | |
38948 | # it under the terms of the GNU General Public License as published by | |
38949 | # the Free Software Foundation; either version 2, or (at your option) | |
38950 | # any later version. | |
38951 | # | |
38952 | # dllar is distributed in the hope that it will be useful, | |
38953 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
38954 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
38955 | # GNU General Public License for more details. | |
38956 | # | |
38957 | # You should have received a copy of the GNU General Public License | |
38958 | # along with dllar; see the file COPYING. If not, write to the Free | |
38959 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
38960 | # 02111-1307, USA. | |
38961 | ||
38962 | # To successfuly run this program you will need: | |
38963 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
38964 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
38965 | # - gcc | |
38966 | # (used to build the .dll) | |
38967 | # - emxexp | |
38968 | # (used to create .def file from .o files) | |
38969 | # - emximp | |
38970 | # (used to create .a file from .def file) | |
38971 | # - GNU text utilites (cat, sort, uniq) | |
38972 | # used to process emxexp output | |
38973 | # - GNU file utilities (mv, rm) | |
38974 | # - GNU sed | |
38975 | # - lxlite (optional, see flag below) | |
38976 | # (used for general .dll cleanup) | |
38977 | # | |
38978 | ||
38979 | flag_USE_LXLITE=1; | |
38980 | ||
38981 | # | |
38982 | # helper functions | |
38983 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
38984 | # second argument (suffix to remove) is given | |
38985 | basnam(){ | |
38986 | case ${D}# in | |
38987 | 1) | |
1e9e8aba | 38988 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
38989 | ;; |
38990 | 2) | |
38991 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
38992 | ;; | |
38993 | *) | |
38994 | echo "error in basnam ${D}*" | |
38995 | exit 8 | |
38996 | ;; | |
38997 | esac | |
38998 | } | |
38999 | ||
39000 | # Cleanup temporary files and output | |
39001 | CleanUp() { | |
39002 | cd ${D}curDir | |
39003 | for i in ${D}inputFiles ; do | |
39004 | case ${D}i in | |
39005 | *!) | |
39006 | rm -rf \`basnam ${D}i !\` | |
39007 | ;; | |
39008 | *) | |
39009 | ;; | |
39010 | esac | |
39011 | done | |
39012 | ||
39013 | # Kill result in case of failure as there is just to many stupid make/nmake | |
39014 | # things out there which doesn't do this. | |
1e9e8aba | 39015 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
39016 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
39017 | fi | |
39018 | } | |
39019 | ||
39020 | # Print usage and exit script with rc=1. | |
39021 | PrintHelp() { | |
b1d22ded DE |
39022 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
39023 | echo ' [-name-mangler-script script.sh]' | |
39024 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
39025 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
39026 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 39027 | echo ' [*.o] [*.a]' |
473276a9 VS |
39028 | echo '*> "output_file" should have no extension.' |
39029 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
39030 | echo ' The import library name is derived from this and is set to "name".a,' | |
39031 | echo ' unless overridden by -import' | |
39032 | echo '*> "importlib_name" should have no extension.' | |
39033 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
39034 | echo ' This name is used as the import library name and may be longer and' | |
39035 | echo ' more descriptive than the DLL name which has to follow the old ' | |
39036 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
39037 | echo '*> "script.sh may be given to override the output_file name by a' |
39038 | echo ' different name. It is mainly useful if the regular make process' | |
39039 | echo ' of some package does not take into account OS/2 restriction of' | |
39040 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
39041 | echo ' supposed to procude a shorter name as output. The script should' | |
39042 | echo ' expect to get importlib_name without extension and should produce' | |
39043 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
39044 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
39045 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
39046 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
39047 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
39048 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
39049 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
39050 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
39051 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 39052 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 39053 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 39054 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 39055 | echo ' C runtime DLLs.' |
b1d22ded | 39056 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
39057 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
39058 | echo ' unchanged to GCC at the end of command line.' | |
39059 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
39060 | echo ' the basename for DLL and import library will be set to library name,' | |
39061 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
39062 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
39063 | echo ' library will be renamed into gcc_s.a.' | |
39064 | echo '--------' | |
39065 | echo 'Example:' | |
39066 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
39067 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
39068 | CleanUp | |
39069 | exit 1 | |
39070 | } | |
39071 | ||
39072 | # Execute a command. | |
39073 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
39074 | # @Uses Whatever CleanUp() uses. | |
39075 | doCommand() { | |
39076 | echo "${D}*" | |
39077 | eval ${D}* | |
39078 | rcCmd=${D}? | |
39079 | ||
1e9e8aba | 39080 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
39081 | echo "command failed, exit code="${D}rcCmd |
39082 | CleanUp | |
39083 | exit ${D}rcCmd | |
39084 | fi | |
39085 | } | |
39086 | ||
39087 | # main routine | |
39088 | # setup globals | |
39089 | cmdLine=${D}* | |
39090 | outFile="" | |
39091 | outimpFile="" | |
39092 | inputFiles="" | |
b1d22ded | 39093 | renameScript="" |
473276a9 VS |
39094 | description="" |
39095 | CC=gcc.exe | |
39096 | CFLAGS="-s -Zcrtdll" | |
39097 | EXTRA_CFLAGS="" | |
39098 | EXPORT_BY_ORDINALS=0 | |
39099 | exclude_symbols="" | |
39100 | library_flags="" | |
39101 | curDir=\`pwd\` | |
39102 | curDirS=curDir | |
39103 | case ${D}curDirS in | |
39104 | */) | |
39105 | ;; | |
39106 | *) | |
39107 | curDirS=${D}{curDirS}"/" | |
39108 | ;; | |
39109 | esac | |
39110 | # Parse commandline | |
39111 | libsToLink=0 | |
b1d22ded | 39112 | omfLinking=0 |
1e9e8aba | 39113 | while [ ${D}1 ]; do |
473276a9 VS |
39114 | case ${D}1 in |
39115 | -ord*) | |
39116 | EXPORT_BY_ORDINALS=1; | |
39117 | ;; | |
39118 | -o*) | |
39119 | shift | |
39120 | outFile=${D}1 | |
39121 | ;; | |
39122 | -i*) | |
39123 | shift | |
39124 | outimpFile=${D}1 | |
39125 | ;; | |
b1d22ded DE |
39126 | -name-mangler-script) |
39127 | shift | |
39128 | renameScript=${D}1 | |
39129 | ;; | |
473276a9 VS |
39130 | -d*) |
39131 | shift | |
39132 | description=${D}1 | |
39133 | ;; | |
39134 | -f*) | |
39135 | shift | |
39136 | CFLAGS=${D}1 | |
39137 | ;; | |
39138 | -c*) | |
39139 | shift | |
39140 | CC=${D}1 | |
39141 | ;; | |
39142 | -h*) | |
39143 | PrintHelp | |
39144 | ;; | |
39145 | -ex*) | |
39146 | shift | |
39147 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
39148 | ;; | |
39149 | -libf*) | |
39150 | shift | |
39151 | library_flags=${D}{library_flags}${D}1" " | |
39152 | ;; | |
39153 | -nocrt*) | |
39154 | CFLAGS="-s" | |
39155 | ;; | |
39156 | -nolxl*) | |
39157 | flag_USE_LXLITE=0 | |
39158 | ;; | |
39159 | -* | /*) | |
39160 | case ${D}1 in | |
39161 | -L* | -l*) | |
39162 | libsToLink=1 | |
39163 | ;; | |
b1d22ded DE |
39164 | -Zomf) |
39165 | omfLinking=1 | |
39166 | ;; | |
473276a9 VS |
39167 | *) |
39168 | ;; | |
39169 | esac | |
39170 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
39171 | ;; | |
b1d22ded DE |
39172 | *.dll) |
39173 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
39174 | if [ ${D}omfLinking -eq 1 ]; then | |
39175 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
39176 | else | |
39177 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
39178 | fi | |
39179 | ;; | |
473276a9 VS |
39180 | *) |
39181 | found=0; | |
1e9e8aba | 39182 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
39183 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
39184 | else | |
39185 | for file in ${D}1 ; do | |
1e9e8aba | 39186 | if [ -f ${D}file ]; then |
473276a9 VS |
39187 | inputFiles="${D}{inputFiles} ${D}file" |
39188 | found=1 | |
39189 | fi | |
39190 | done | |
1e9e8aba | 39191 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
39192 | echo "ERROR: No file(s) found: "${D}1 |
39193 | exit 8 | |
39194 | fi | |
39195 | fi | |
39196 | ;; | |
39197 | esac | |
39198 | shift | |
39199 | done # iterate cmdline words | |
39200 | ||
39201 | # | |
1e9e8aba | 39202 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
39203 | echo "dllar: no input files" |
39204 | PrintHelp | |
39205 | fi | |
39206 | ||
39207 | # Now extract all .o files from .a files | |
39208 | newInputFiles="" | |
39209 | for file in ${D}inputFiles ; do | |
39210 | case ${D}file in | |
39211 | *.a | *.lib) | |
39212 | case ${D}file in | |
39213 | *.a) | |
39214 | suffix=".a" | |
39215 | AR="ar" | |
39216 | ;; | |
39217 | *.lib) | |
39218 | suffix=".lib" | |
39219 | AR="emxomfar" | |
39220 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
39221 | ;; | |
39222 | *) | |
39223 | ;; | |
39224 | esac | |
39225 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
39226 | mkdir ${D}dirname | |
1e9e8aba | 39227 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
39228 | echo "Failed to create subdirectory ./${D}dirname" |
39229 | CleanUp | |
39230 | exit 8; | |
39231 | fi | |
39232 | # Append '!' to indicate archive | |
39233 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
39234 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
39235 | cd ${D}curDir | |
39236 | found=0; | |
39237 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 39238 | if [ -f ${D}subfile ]; then |
473276a9 | 39239 | found=1 |
1e9e8aba | 39240 | if [ -s ${D}subfile ]; then |
473276a9 VS |
39241 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
39242 | newInputFiles="${D}newInputFiles ${D}subfile" | |
39243 | fi | |
39244 | fi | |
39245 | done | |
1e9e8aba DE |
39246 | if [ ${D}found -eq 0 ]; then |
39247 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
39248 | fi |
39249 | ;; | |
39250 | *) | |
39251 | newInputFiles="${D}{newInputFiles} ${D}file" | |
39252 | ;; | |
39253 | esac | |
39254 | done | |
39255 | inputFiles="${D}newInputFiles" | |
39256 | ||
39257 | # Output filename(s). | |
39258 | do_backup=0; | |
1e9e8aba | 39259 | if [ -z ${D}outFile ]; then |
473276a9 VS |
39260 | do_backup=1; |
39261 | set outFile ${D}inputFiles; outFile=${D}2 | |
39262 | fi | |
39263 | ||
39264 | # If it is an archive, remove the '!' and the '_%' suffixes | |
39265 | case ${D}outFile in | |
39266 | *_%!) | |
39267 | outFile=\`basnam ${D}outFile _%!\` | |
39268 | ;; | |
39269 | *) | |
39270 | ;; | |
39271 | esac | |
39272 | case ${D}outFile in | |
39273 | *.dll) | |
39274 | outFile=\`basnam ${D}outFile .dll\` | |
39275 | ;; | |
39276 | *.DLL) | |
39277 | outFile=\`basnam ${D}outFile .DLL\` | |
39278 | ;; | |
39279 | *.o) | |
39280 | outFile=\`basnam ${D}outFile .o\` | |
39281 | ;; | |
39282 | *.obj) | |
39283 | outFile=\`basnam ${D}outFile .obj\` | |
39284 | ;; | |
39285 | *.a) | |
39286 | outFile=\`basnam ${D}outFile .a\` | |
39287 | ;; | |
39288 | *.lib) | |
39289 | outFile=\`basnam ${D}outFile .lib\` | |
39290 | ;; | |
39291 | *) | |
39292 | ;; | |
39293 | esac | |
39294 | case ${D}outimpFile in | |
39295 | *.a) | |
39296 | outimpFile=\`basnam ${D}outimpFile .a\` | |
39297 | ;; | |
39298 | *.lib) | |
39299 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
39300 | ;; | |
39301 | *) | |
39302 | ;; | |
39303 | esac | |
1e9e8aba | 39304 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
39305 | outimpFile=${D}outFile |
39306 | fi | |
39307 | defFile="${D}{outFile}.def" | |
39308 | arcFile="${D}{outimpFile}.a" | |
39309 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
39310 | |
39311 | #create ${D}dllFile as something matching 8.3 restrictions, | |
39312 | if [ -z ${D}renameScript ] ; then | |
39313 | dllFile="${D}outFile" | |
39314 | else | |
39315 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
39316 | fi | |
473276a9 | 39317 | |
1e9e8aba DE |
39318 | if [ ${D}do_backup -ne 0 ] ; then |
39319 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
39320 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
39321 | fi | |
1e9e8aba | 39322 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
39323 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
39324 | fi | |
39325 | fi | |
39326 | ||
39327 | # Extract public symbols from all the object files. | |
39328 | tmpdefFile=${D}{defFile}_% | |
39329 | rm -f ${D}tmpdefFile | |
39330 | for file in ${D}inputFiles ; do | |
39331 | case ${D}file in | |
39332 | *!) | |
39333 | ;; | |
39334 | *) | |
39335 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
39336 | ;; | |
39337 | esac | |
39338 | done | |
39339 | ||
39340 | # Create the def file. | |
39341 | rm -f ${D}defFile | |
39342 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
39343 | dllFile="${D}{dllFile}.dll" |
39344 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 39345 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
39346 | fi |
39347 | echo "EXPORTS" >> ${D}defFile | |
39348 | ||
39349 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
39350 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
39351 | ||
39352 | # Checks if the export is ok or not. | |
39353 | for word in ${D}exclude_symbols; do | |
39354 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
39355 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
39356 | done | |
39357 | ||
39358 | ||
1e9e8aba DE |
39359 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
39360 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
39361 | sed ' |
39362 | N | |
39363 | : loop | |
1e9e8aba | 39364 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
39365 | t loop |
39366 | ' > ${D}{tmpdefFile}% | |
39367 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
39368 | else | |
39369 | rm -f ${D}{tmpdefFile}% | |
39370 | fi | |
39371 | cat ${D}tmpdefFile >> ${D}defFile | |
39372 | rm -f ${D}tmpdefFile | |
39373 | ||
39374 | # Do linking, create implib, and apply lxlite. | |
39375 | gccCmdl=""; | |
39376 | for file in ${D}inputFiles ; do | |
39377 | case ${D}file in | |
39378 | *!) | |
39379 | ;; | |
39380 | *) | |
39381 | gccCmdl="${D}gccCmdl ${D}file" | |
39382 | ;; | |
39383 | esac | |
39384 | done | |
39385 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
39386 | touch "${D}{outFile}.dll" | |
39387 | ||
39388 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 39389 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 39390 | add_flags=""; |
1e9e8aba | 39391 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
39392 | add_flags="-ynd" |
39393 | fi | |
39394 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
39395 | fi | |
39396 | doCommand "emxomf -s -l ${D}arcFile" | |
39397 | ||
39398 | # Successful exit. | |
39399 | CleanUp 1 | |
39400 | exit 0 | |
39401 | EOF | |
39402 | ||
39403 | chmod +x dllar.sh | |
a848cd7e SC |
39404 | ;; |
39405 | ||
1e9e8aba | 39406 | powerpc-apple-macos* | \ |
0ad5d837 | 39407 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a485900c | 39408 | *-*-mirbsd* | \ |
a848cd7e SC |
39409 | *-*-sunos4* | \ |
39410 | *-*-osf* | \ | |
39411 | *-*-dgux5* | \ | |
47a7e797 MW |
39412 | *-*-sysv5* | \ |
39413 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
39414 | ;; |
39415 | ||
39416 | *) | |
3dd30495 | 39417 | as_fn_error $? "unknown system type $BAKEFILE_HOST." "$LINENO" 5 |
a48b6595 | 39418 | esac |
a848cd7e | 39419 | |
2057db16 VS |
39420 | if test "x$PIC_FLAG" != "x" ; then |
39421 | PIC_FLAG="$PIC_FLAG -DPIC" | |
39422 | fi | |
39423 | ||
a848cd7e SC |
39424 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
39425 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
39426 | fi | |
39427 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
39428 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
39429 | fi | |
39430 | ||
39431 | ||
39432 | ||
39433 | ||
39434 | ||
39435 | ||
39436 | ||
39437 | ||
810b94f0 | 39438 | |
a848cd7e SC |
39439 | USE_SOVERSION=0 |
39440 | USE_SOVERLINUX=0 | |
39441 | USE_SOVERSOLARIS=0 | |
810b94f0 | 39442 | USE_SOVERCYGWIN=0 |
2c459beb | 39443 | USE_SOTWOSYMLINKS=0 |
a848cd7e SC |
39444 | USE_MACVERSION=0 |
39445 | SONAME_FLAG= | |
39446 | ||
39447 | case "${BAKEFILE_HOST}" in | |
5b8deaba VZ |
39448 | *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
39449 | *-*-k*bsd*-gnu | *-*-mirbsd* ) | |
43a7c679 VZ |
39450 | if test "x$SUNCXX" = "xyes"; then |
39451 | SONAME_FLAG="-h " | |
39452 | else | |
39453 | SONAME_FLAG="-Wl,-soname," | |
39454 | fi | |
5f652d0d VS |
39455 | USE_SOVERSION=1 |
39456 | USE_SOVERLINUX=1 | |
2c459beb | 39457 | USE_SOTWOSYMLINKS=1 |
5f652d0d VS |
39458 | ;; |
39459 | ||
a848cd7e SC |
39460 | *-*-solaris2* ) |
39461 | SONAME_FLAG="-h " | |
39462 | USE_SOVERSION=1 | |
39463 | USE_SOVERSOLARIS=1 | |
a848cd7e SC |
39464 | ;; |
39465 | ||
39466 | *-*-darwin* ) | |
39467 | USE_MACVERSION=1 | |
39468 | USE_SOVERSION=1 | |
2c459beb | 39469 | USE_SOTWOSYMLINKS=1 |
a848cd7e | 39470 | ;; |
810b94f0 MW |
39471 | |
39472 | *-*-cygwin* ) | |
39473 | USE_SOVERSION=1 | |
39474 | USE_SOVERCYGWIN=1 | |
39475 | ;; | |
a848cd7e SC |
39476 | esac |
39477 | ||
39478 | ||
39479 | ||
39480 | ||
39481 | ||
39482 | ||
39483 | ||
39484 | ||
39485 | ||
810b94f0 | 39486 | |
47964710 | 39487 | # Check whether --enable-dependency-tracking was given. |
3dd30495 | 39488 | if test "${enable_dependency_tracking+set}" = set; then : |
47964710 VS |
39489 | enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval" |
39490 | fi | |
f10e38c4 | 39491 | |
47964710 | 39492 | |
3dd30495 VZ |
39493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dependency tracking method" >&5 |
39494 | $as_echo_n "checking for dependency tracking method... " >&6; } | |
a848cd7e | 39495 | |
a485900c | 39496 | BK_DEPS="" |
f10e38c4 VZ |
39497 | if test "x$bk_use_trackdeps" = "xno" ; then |
39498 | DEPS_TRACKING=0 | |
3dd30495 VZ |
39499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
39500 | $as_echo "disabled" >&6; } | |
f10e38c4 VZ |
39501 | else |
39502 | DEPS_TRACKING=1 | |
39503 | ||
39504 | if test "x$GCC" = "xyes"; then | |
39505 | DEPSMODE=gcc | |
550a0c41 | 39506 | DEPSFLAG="-MMD" |
3dd30495 VZ |
39507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc" >&5 |
39508 | $as_echo "gcc" >&6; } | |
f10e38c4 VZ |
39509 | elif test "x$MWCC" = "xyes"; then |
39510 | DEPSMODE=mwcc | |
39511 | DEPSFLAG="-MM" | |
3dd30495 VZ |
39512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: mwcc" >&5 |
39513 | $as_echo "mwcc" >&6; } | |
f10e38c4 VZ |
39514 | elif test "x$SUNCC" = "xyes"; then |
39515 | DEPSMODE=unixcc | |
39516 | DEPSFLAG="-xM1" | |
3dd30495 VZ |
39517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun cc" >&5 |
39518 | $as_echo "Sun cc" >&6; } | |
f10e38c4 VZ |
39519 | elif test "x$SGICC" = "xyes"; then |
39520 | DEPSMODE=unixcc | |
39521 | DEPSFLAG="-M" | |
3dd30495 VZ |
39522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: SGI cc" >&5 |
39523 | $as_echo "SGI cc" >&6; } | |
f10e38c4 VZ |
39524 | elif test "x$HPCC" = "xyes"; then |
39525 | DEPSMODE=unixcc | |
39526 | DEPSFLAG="+make" | |
3dd30495 VZ |
39527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP cc" >&5 |
39528 | $as_echo "HP cc" >&6; } | |
f10e38c4 VZ |
39529 | elif test "x$COMPAQCC" = "xyes"; then |
39530 | DEPSMODE=gcc | |
39531 | DEPSFLAG="-MD" | |
3dd30495 VZ |
39532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Compaq cc" >&5 |
39533 | $as_echo "Compaq cc" >&6; } | |
f10e38c4 VZ |
39534 | else |
39535 | DEPS_TRACKING=0 | |
3dd30495 VZ |
39536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
39537 | $as_echo "none" >&6; } | |
f10e38c4 | 39538 | fi |
a848cd7e | 39539 | |
f10e38c4 | 39540 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
39541 | |
39542 | D='$' | |
39543 | cat <<EOF >bk-deps | |
a848cd7e SC |
39544 | #!/bin/sh |
39545 | ||
5b8deaba | 39546 | # This script is part of Bakefile (http://www.bakefile.org) autoconf |
a848cd7e SC |
39547 | # script. It is used to track C/C++ files dependencies in portable way. |
39548 | # | |
39549 | # Permission is given to use this file in any way. | |
39550 | ||
473276a9 | 39551 | DEPSMODE=${DEPSMODE} |
0ad5d837 | 39552 | DEPSFLAG="${DEPSFLAG}" |
7a507ca8 | 39553 | DEPSDIRBASE=.deps |
a848cd7e | 39554 | |
473276a9 | 39555 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 39556 | ${D}* ${D}{DEPSFLAG} |
473276a9 | 39557 | status=${D}? |
5b8deaba VZ |
39558 | |
39559 | # determine location of created files: | |
473276a9 VS |
39560 | while test ${D}# -gt 0; do |
39561 | case "${D}1" in | |
a848cd7e SC |
39562 | -o ) |
39563 | shift | |
473276a9 | 39564 | objfile=${D}1 |
a848cd7e SC |
39565 | ;; |
39566 | -* ) | |
39567 | ;; | |
39568 | * ) | |
473276a9 | 39569 | srcfile=${D}1 |
a848cd7e SC |
39570 | ;; |
39571 | esac | |
39572 | shift | |
39573 | done | |
7a507ca8 VZ |
39574 | objfilebase=\`basename ${D}objfile\` |
39575 | builddir=\`dirname ${D}objfile\` | |
1e9e8aba DE |
39576 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
39577 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
7a507ca8 VZ |
39578 | depsdir=${D}builddir/${D}DEPSDIRBASE |
39579 | mkdir -p ${D}depsdir | |
5b8deaba VZ |
39580 | |
39581 | # if the compiler failed, we're done: | |
39582 | if test ${D}{status} != 0 ; then | |
39583 | rm -f ${D}depfile | |
39584 | exit ${D}{status} | |
39585 | fi | |
39586 | ||
39587 | # move created file to the location we want it in: | |
473276a9 | 39588 | if test -f ${D}depfile ; then |
7a507ca8 | 39589 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d |
473276a9 | 39590 | rm -f ${D}depfile |
a848cd7e | 39591 | else |
a1aa0349 | 39592 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
7a507ca8 | 39593 | depfile=\`echo "${D}objfile" | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
39594 | if test ! -f ${D}depfile ; then |
39595 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
39596 | depfile="${D}objfile.d" | |
39597 | fi | |
473276a9 | 39598 | if test -f ${D}depfile ; then |
7a507ca8 | 39599 | sed -e "\\,^${D}objfile,!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{depsdir}/${D}{objfilebase}.d |
473276a9 | 39600 | rm -f ${D}depfile |
a848cd7e SC |
39601 | fi |
39602 | fi | |
39603 | exit 0 | |
7a507ca8 | 39604 | |
81f90336 | 39605 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 39606 | ${D}* || exit ${D}? |
81f90336 MW |
39607 | # Run mwcc again with -MM and redirect into the dep file we want |
39608 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
39609 | prevarg= | |
39610 | for arg in ${D}* ; do | |
39611 | if test "${D}prevarg" = "-o"; then | |
39612 | objfile=${D}arg | |
39613 | else | |
39614 | case "${D}arg" in | |
39615 | -* ) | |
39616 | ;; | |
39617 | * ) | |
39618 | srcfile=${D}arg | |
39619 | ;; | |
39620 | esac | |
39621 | fi | |
39622 | prevarg="${D}arg" | |
39623 | done | |
7a507ca8 VZ |
39624 | |
39625 | objfilebase=\`basename ${D}objfile\` | |
39626 | builddir=\`dirname ${D}objfile\` | |
39627 | depsdir=${D}builddir/${D}DEPSDIRBASE | |
39628 | mkdir -p ${D}depsdir | |
39629 | ||
39630 | ${D}* ${D}DEPSFLAG >${D}{depsdir}/${D}{objfilebase}.d | |
81f90336 | 39631 | exit 0 |
7a507ca8 | 39632 | |
0ad5d837 | 39633 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 39634 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
39635 | # Run compiler again with deps flag and redirect into the dep file. |
39636 | # It doesn't work if the '-o FILE' option is used, but without it the | |
39637 | # dependency file will contain the wrong name for the object. So it is | |
39638 | # removed from the command line, and the dep file is fixed with sed. | |
39639 | cmd="" | |
39640 | while test ${D}# -gt 0; do | |
39641 | case "${D}1" in | |
39642 | -o ) | |
39643 | shift | |
39644 | objfile=${D}1 | |
39645 | ;; | |
39646 | * ) | |
39647 | eval arg${D}#=\\${D}1 | |
39648 | cmd="${D}cmd \\${D}arg${D}#" | |
39649 | ;; | |
39650 | esac | |
39651 | shift | |
39652 | done | |
7a507ca8 VZ |
39653 | |
39654 | objfilebase=\`basename ${D}objfile\` | |
39655 | builddir=\`dirname ${D}objfile\` | |
39656 | depsdir=${D}builddir/${D}DEPSDIRBASE | |
39657 | mkdir -p ${D}depsdir | |
39658 | ||
825dbe24 | 39659 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{depsdir}/${D}{objfilebase}.d |
a9e5b1f0 | 39660 | exit 0 |
7a507ca8 | 39661 | |
a848cd7e | 39662 | else |
473276a9 VS |
39663 | ${D}* |
39664 | exit ${D}? | |
a848cd7e SC |
39665 | fi |
39666 | EOF | |
473276a9 | 39667 | |
f10e38c4 | 39668 | chmod +x bk-deps |
a485900c | 39669 | BK_DEPS="`pwd`/bk-deps" |
f10e38c4 | 39670 | fi |
a848cd7e SC |
39671 | fi |
39672 | ||
39673 | ||
39674 | ||
39675 | ||
a485900c | 39676 | |
a848cd7e SC |
39677 | case ${BAKEFILE_HOST} in |
39678 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
39679 | if test -n "$ac_tool_prefix"; then |
39680 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
39681 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
3dd30495 VZ |
39682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
39683 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 39684 | if ${ac_cv_prog_WINDRES+:} false; then : |
3dd30495 | 39685 | $as_echo_n "(cached) " >&6 |
8ced02f6 DE |
39686 | else |
39687 | if test -n "$WINDRES"; then | |
39688 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
39689 | else | |
39690 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39691 | for as_dir in $PATH | |
39692 | do | |
39693 | IFS=$as_save_IFS | |
39694 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 39695 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 39696 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8ced02f6 | 39697 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
3dd30495 | 39698 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8ced02f6 DE |
39699 | break 2 |
39700 | fi | |
39701 | done | |
3dd30495 | 39702 | done |
47964710 | 39703 | IFS=$as_save_IFS |
8ced02f6 DE |
39704 | |
39705 | fi | |
39706 | fi | |
39707 | WINDRES=$ac_cv_prog_WINDRES | |
39708 | if test -n "$WINDRES"; then | |
3dd30495 VZ |
39709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
39710 | $as_echo "$WINDRES" >&6; } | |
8ced02f6 | 39711 | else |
3dd30495 VZ |
39712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39713 | $as_echo "no" >&6; } | |
8ced02f6 DE |
39714 | fi |
39715 | ||
47964710 | 39716 | |
8ced02f6 DE |
39717 | fi |
39718 | if test -z "$ac_cv_prog_WINDRES"; then | |
39719 | ac_ct_WINDRES=$WINDRES | |
39720 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e | 39721 | set dummy windres; ac_word=$2 |
3dd30495 VZ |
39722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
39723 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 39724 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : |
3dd30495 | 39725 | $as_echo_n "(cached) " >&6 |
a848cd7e | 39726 | else |
8ced02f6 DE |
39727 | if test -n "$ac_ct_WINDRES"; then |
39728 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
39729 | else |
39730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39731 | for as_dir in $PATH | |
39732 | do | |
39733 | IFS=$as_save_IFS | |
39734 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 39735 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 39736 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8ced02f6 | 39737 | ac_cv_prog_ac_ct_WINDRES="windres" |
3dd30495 | 39738 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
39739 | break 2 |
39740 | fi | |
39741 | done | |
3dd30495 | 39742 | done |
47964710 | 39743 | IFS=$as_save_IFS |
a848cd7e | 39744 | |
a848cd7e SC |
39745 | fi |
39746 | fi | |
8ced02f6 DE |
39747 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
39748 | if test -n "$ac_ct_WINDRES"; then | |
3dd30495 VZ |
39749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
39750 | $as_echo "$ac_ct_WINDRES" >&6; } | |
a848cd7e | 39751 | else |
3dd30495 VZ |
39752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39753 | $as_echo "no" >&6; } | |
a848cd7e SC |
39754 | fi |
39755 | ||
47964710 VS |
39756 | if test "x$ac_ct_WINDRES" = x; then |
39757 | WINDRES="" | |
39758 | else | |
39759 | case $cross_compiling:$ac_tool_warned in | |
39760 | yes:) | |
3dd30495 VZ |
39761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
39762 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
47964710 VS |
39763 | ac_tool_warned=yes ;; |
39764 | esac | |
39765 | WINDRES=$ac_ct_WINDRES | |
39766 | fi | |
8ced02f6 DE |
39767 | else |
39768 | WINDRES="$ac_cv_prog_WINDRES" | |
39769 | fi | |
39770 | ||
a848cd7e SC |
39771 | ;; |
39772 | ||
1e9e8aba | 39773 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
39774 | # Extract the first word of "Rez", so it can be a program name with args. |
39775 | set dummy Rez; ac_word=$2 | |
3dd30495 VZ |
39776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
39777 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 39778 | if ${ac_cv_prog_REZ+:} false; then : |
3dd30495 | 39779 | $as_echo_n "(cached) " >&6 |
a848cd7e | 39780 | else |
8ced02f6 DE |
39781 | if test -n "$REZ"; then |
39782 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
39783 | else |
39784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39785 | for as_dir in $PATH | |
39786 | do | |
39787 | IFS=$as_save_IFS | |
39788 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 39789 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 39790 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
8ced02f6 | 39791 | ac_cv_prog_REZ="Rez" |
3dd30495 | 39792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
39793 | break 2 |
39794 | fi | |
39795 | done | |
3dd30495 | 39796 | done |
47964710 | 39797 | IFS=$as_save_IFS |
a848cd7e | 39798 | |
8ced02f6 | 39799 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
39800 | fi |
39801 | fi | |
8ced02f6 DE |
39802 | REZ=$ac_cv_prog_REZ |
39803 | if test -n "$REZ"; then | |
3dd30495 VZ |
39804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REZ" >&5 |
39805 | $as_echo "$REZ" >&6; } | |
a848cd7e | 39806 | else |
3dd30495 VZ |
39807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39808 | $as_echo "no" >&6; } | |
a848cd7e SC |
39809 | fi |
39810 | ||
47964710 | 39811 | |
a848cd7e SC |
39812 | # Extract the first word of "SetFile", so it can be a program name with args. |
39813 | set dummy SetFile; ac_word=$2 | |
3dd30495 VZ |
39814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
39815 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 39816 | if ${ac_cv_prog_SETFILE+:} false; then : |
3dd30495 | 39817 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
39818 | else |
39819 | if test -n "$SETFILE"; then | |
39820 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
39821 | else | |
39822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39823 | for as_dir in $PATH | |
39824 | do | |
39825 | IFS=$as_save_IFS | |
39826 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 39827 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 39828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 39829 | ac_cv_prog_SETFILE="SetFile" |
3dd30495 | 39830 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
39831 | break 2 |
39832 | fi | |
39833 | done | |
3dd30495 | 39834 | done |
47964710 | 39835 | IFS=$as_save_IFS |
a848cd7e SC |
39836 | |
39837 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
39838 | fi | |
39839 | fi | |
39840 | SETFILE=$ac_cv_prog_SETFILE | |
39841 | if test -n "$SETFILE"; then | |
3dd30495 VZ |
39842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 |
39843 | $as_echo "$SETFILE" >&6; } | |
a848cd7e | 39844 | else |
3dd30495 VZ |
39845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39846 | $as_echo "no" >&6; } | |
a848cd7e SC |
39847 | fi |
39848 | ||
47964710 | 39849 | |
a848cd7e SC |
39850 | ;; |
39851 | esac | |
39852 | ||
39853 | ||
39854 | ||
39855 | ||
39856 | ||
8ced02f6 | 39857 | |
7a507ca8 VZ |
39858 | |
39859 | ||
39860 | ||
00eef16d | 39861 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.9" |
a848cd7e | 39862 | |
dcc1b6ad | 39863 | |
00eef16d | 39864 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.9" |
a848cd7e | 39865 | |
646b6ec1 | 39866 | |
74b84332 | 39867 | |
47964710 | 39868 | # Check whether --enable-precomp-headers was given. |
3dd30495 | 39869 | if test "${enable_precomp_headers+set}" = set; then : |
47964710 VS |
39870 | enableval=$enable_precomp_headers; bk_use_pch="$enableval" |
39871 | fi | |
39872 | ||
a848cd7e SC |
39873 | |
39874 | GCC_PCH=0 | |
f10e38c4 VZ |
39875 | ICC_PCH=0 |
39876 | USE_PCH=0 | |
a485900c | 39877 | BK_MAKE_PCH="" |
a848cd7e | 39878 | |
5c60e845 MW |
39879 | case ${BAKEFILE_HOST} in |
39880 | *-*-cygwin* ) | |
39881 | bk_use_pch="no" | |
39882 | ;; | |
39883 | esac | |
39884 | ||
a848cd7e SC |
39885 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
39886 | if test "x$GCC" = "xyes"; then | |
3dd30495 VZ |
39887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports precompiled headers" >&5 |
39888 | $as_echo_n "checking if the compiler supports precompiled headers... " >&6; } | |
39889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
a848cd7e SC |
39890 | /* end confdefs.h. */ |
39891 | ||
39892 | int | |
39893 | main () | |
39894 | { | |
39895 | ||
39896 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 39897 | There is no PCH support |
a848cd7e SC |
39898 | #endif |
39899 | #if (__GNUC__ < 3) | |
e5efa97e | 39900 | There is no PCH support |
a848cd7e SC |
39901 | #endif |
39902 | #if (__GNUC__ == 3) && \ | |
39903 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
39904 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
39905 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 39906 | There is no PCH support |
a848cd7e SC |
39907 | #endif |
39908 | ||
39909 | ; | |
39910 | return 0; | |
39911 | } | |
39912 | _ACEOF | |
3dd30495 | 39913 | if ac_fn_c_try_compile "$LINENO"; then : |
a848cd7e | 39914 | |
3dd30495 VZ |
39915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
39916 | $as_echo "yes" >&6; } | |
a848cd7e SC |
39917 | GCC_PCH=1 |
39918 | ||
39919 | else | |
a848cd7e | 39920 | |
05622061 | 39921 | if test "$INTELCXX8" = "yes"; then |
3dd30495 VZ |
39922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
39923 | $as_echo "yes" >&6; } | |
05622061 VZ |
39924 | ICC_PCH=1 |
39925 | if test "$INTELCXX10" = "yes"; then | |
39926 | ICC_PCH_CREATE_SWITCH="-pch-create" | |
39927 | ICC_PCH_USE_SWITCH="-pch-use" | |
39928 | else | |
39929 | ICC_PCH_CREATE_SWITCH="-create-pch" | |
39930 | ICC_PCH_USE_SWITCH="-use-pch" | |
39931 | fi | |
39932 | else | |
3dd30495 VZ |
39933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
39934 | $as_echo "no" >&6; } | |
05622061 | 39935 | fi |
f10e38c4 VZ |
39936 | |
39937 | fi | |
47964710 | 39938 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
39939 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then |
39940 | USE_PCH=1 | |
1e9e8aba DE |
39941 | |
39942 | D='$' | |
39943 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
39944 | #!/bin/sh |
39945 | ||
5b8deaba | 39946 | # This script is part of Bakefile (http://www.bakefile.org) autoconf |
a848cd7e SC |
39947 | # script. It is used to generated precompiled headers. |
39948 | # | |
39949 | # Permission is given to use this file in any way. | |
39950 | ||
1e9e8aba DE |
39951 | outfile="${D}{1}" |
39952 | header="${D}{2}" | |
a848cd7e SC |
39953 | shift |
39954 | shift | |
39955 | ||
7a507ca8 VZ |
39956 | builddir=\`echo ${D}outfile | sed -e 's,/\\.pch/.*${D},,g'\` |
39957 | ||
f10e38c4 VZ |
39958 | compiler="" |
39959 | headerfile="" | |
39960 | ||
1e9e8aba | 39961 | while test ${D}{#} -gt 0; do |
f10e38c4 | 39962 | add_to_cmdline=1 |
1e9e8aba | 39963 | case "${D}{1}" in |
a848cd7e | 39964 | -I* ) |
1e9e8aba DE |
39965 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
39966 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
39967 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
39968 | fi |
39969 | ;; | |
05622061 | 39970 | -use-pch|-use_pch|-pch-use ) |
f10e38c4 VZ |
39971 | shift |
39972 | add_to_cmdline=0 | |
39973 | ;; | |
a848cd7e | 39974 | esac |
f10e38c4 VZ |
39975 | if test ${D}add_to_cmdline = 1 ; then |
39976 | compiler="${D}{compiler} ${D}{1}" | |
39977 | fi | |
a848cd7e SC |
39978 | shift |
39979 | done | |
39980 | ||
1e9e8aba | 39981 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 39982 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 39983 | else |
1e9e8aba DE |
39984 | if test -f ${D}{outfile} ; then |
39985 | rm -f ${D}{outfile} | |
a848cd7e | 39986 | else |
1e9e8aba | 39987 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 39988 | fi |
7a507ca8 VZ |
39989 | depsfile="${D}{builddir}/.deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
39990 | mkdir -p ${D}{builddir}/.deps | |
f10e38c4 VZ |
39991 | if test "x${GCC_PCH}" = "x1" ; then |
39992 | # can do this because gcc is >= 3.4: | |
39993 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
39994 | elif test "x${ICC_PCH}" = "x1" ; then | |
39995 | filename=pch_gen-${D}${D} | |
39996 | file=${D}{filename}.c | |
39997 | dfile=${D}{filename}.d | |
39998 | cat > ${D}file <<EOT | |
39999 | #include "${D}header" | |
40000 | EOT | |
40001 | # using -MF icc complains about differing command lines in creation/use | |
05622061 | 40002 | ${D}compiler -c ${ICC_PCH_CREATE_SWITCH} ${D}outfile -MMD ${D}file && \\ |
f10e38c4 VZ |
40003 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ |
40004 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
40005 | fi | |
1e9e8aba | 40006 | exit ${D}{?} |
a848cd7e SC |
40007 | fi |
40008 | EOF | |
1e9e8aba | 40009 | |
a848cd7e | 40010 | chmod +x bk-make-pch |
a485900c | 40011 | BK_MAKE_PCH="`pwd`/bk-make-pch" |
a848cd7e SC |
40012 | fi |
40013 | fi | |
40014 | fi | |
40015 | ||
40016 | ||
40017 | ||
f10e38c4 | 40018 | |
a485900c | 40019 | |
05622061 VZ |
40020 | |
40021 | ||
a848cd7e SC |
40022 | COND_BUILD_DEBUG="#" |
40023 | if test "x$BUILD" = "xdebug" ; then | |
40024 | COND_BUILD_DEBUG="" | |
40025 | fi | |
40026 | ||
40027 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
40028 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40029 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
40030 | fi | |
40031 | ||
40032 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
40033 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40034 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
40035 | fi | |
40036 | ||
40037 | COND_BUILD_DEBUG_UNICODE_0="#" | |
40038 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40039 | COND_BUILD_DEBUG_UNICODE_0="" | |
40040 | fi | |
40041 | ||
40042 | COND_BUILD_DEBUG_UNICODE_1="#" | |
40043 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40044 | COND_BUILD_DEBUG_UNICODE_1="" | |
40045 | fi | |
40046 | ||
40047 | COND_BUILD_RELEASE="#" | |
40048 | if test "x$BUILD" = "xrelease" ; then | |
40049 | COND_BUILD_RELEASE="" | |
40050 | fi | |
40051 | ||
40052 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
40053 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40054 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
40055 | fi | |
40056 | ||
40057 | COND_BUILD_RELEASE_UNICODE_0="#" | |
40058 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40059 | COND_BUILD_RELEASE_UNICODE_0="" | |
40060 | fi | |
40061 | ||
40062 | COND_BUILD_RELEASE_UNICODE_1="#" | |
40063 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40064 | COND_BUILD_RELEASE_UNICODE_1="" | |
40065 | fi | |
40066 | ||
03c6117e VZ |
40067 | COND_BUILD_debug="#" |
40068 | if test "x$BUILD" = "xdebug" ; then | |
40069 | COND_BUILD_debug="" | |
40070 | fi | |
40071 | ||
40072 | COND_BUILD_debug_DEBUG_FLAG_default="#" | |
40073 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
40074 | COND_BUILD_debug_DEBUG_FLAG_default="" | |
40075 | fi | |
40076 | ||
40077 | COND_BUILD_debug_DEBUG_INFO_default="#" | |
40078 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40079 | COND_BUILD_debug_DEBUG_INFO_default="" | |
40080 | fi | |
40081 | ||
40082 | COND_BUILD_debug_UNICODE_0="#" | |
40083 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
40084 | COND_BUILD_debug_UNICODE_0="" | |
40085 | fi | |
40086 | ||
40087 | COND_BUILD_debug_UNICODE_1="#" | |
40088 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
40089 | COND_BUILD_debug_UNICODE_1="" | |
40090 | fi | |
40091 | ||
40092 | COND_BUILD_release="#" | |
40093 | if test "x$BUILD" = "xrelease" ; then | |
40094 | COND_BUILD_release="" | |
40095 | fi | |
40096 | ||
40097 | COND_BUILD_release_DEBUG_INFO_default="#" | |
40098 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
40099 | COND_BUILD_release_DEBUG_INFO_default="" | |
40100 | fi | |
40101 | ||
40102 | COND_BUILD_release_UNICODE_0="#" | |
40103 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
40104 | COND_BUILD_release_UNICODE_0="" | |
40105 | fi | |
40106 | ||
40107 | COND_BUILD_release_UNICODE_1="#" | |
40108 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
40109 | COND_BUILD_release_UNICODE_1="" | |
40110 | fi | |
40111 | ||
89b1afb4 VZ |
40112 | COND_DEBUG_FLAG_0="#" |
40113 | if test "x$DEBUG_FLAG" = "x0" ; then | |
40114 | COND_DEBUG_FLAG_0="" | |
40115 | fi | |
40116 | ||
a848cd7e SC |
40117 | COND_DEBUG_FLAG_1="#" |
40118 | if test "x$DEBUG_FLAG" = "x1" ; then | |
40119 | COND_DEBUG_FLAG_1="" | |
40120 | fi | |
40121 | ||
40122 | COND_DEBUG_INFO_0="#" | |
40123 | if test "x$DEBUG_INFO" = "x0" ; then | |
40124 | COND_DEBUG_INFO_0="" | |
40125 | fi | |
40126 | ||
40127 | COND_DEBUG_INFO_1="#" | |
40128 | if test "x$DEBUG_INFO" = "x1" ; then | |
40129 | COND_DEBUG_INFO_1="" | |
40130 | fi | |
40131 | ||
40132 | COND_DEPS_TRACKING_0="#" | |
40133 | if test "x$DEPS_TRACKING" = "x0" ; then | |
40134 | COND_DEPS_TRACKING_0="" | |
40135 | fi | |
40136 | ||
40137 | COND_DEPS_TRACKING_1="#" | |
40138 | if test "x$DEPS_TRACKING" = "x1" ; then | |
40139 | COND_DEPS_TRACKING_1="" | |
40140 | fi | |
40141 | ||
40142 | COND_GCC_PCH_1="#" | |
40143 | if test "x$GCC_PCH" = "x1" ; then | |
40144 | COND_GCC_PCH_1="" | |
40145 | fi | |
40146 | ||
f10e38c4 VZ |
40147 | COND_ICC_PCH_1="#" |
40148 | if test "x$ICC_PCH" = "x1" ; then | |
40149 | COND_ICC_PCH_1="" | |
40150 | fi | |
40151 | ||
a848cd7e SC |
40152 | COND_MONOLITHIC_0="#" |
40153 | if test "x$MONOLITHIC" = "x0" ; then | |
40154 | COND_MONOLITHIC_0="" | |
40155 | fi | |
40156 | ||
40157 | COND_MONOLITHIC_0_SHARED_0="#" | |
40158 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
40159 | COND_MONOLITHIC_0_SHARED_0="" | |
40160 | fi | |
40161 | ||
3f60522a JS |
40162 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#" |
40163 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then | |
40164 | COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="" | |
40165 | fi | |
40166 | ||
a848cd7e SC |
40167 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" |
40168 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40169 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
40170 | fi | |
40171 | ||
90970d69 DE |
40172 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
40173 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40174 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
40175 | fi | |
40176 | ||
f10e38c4 VZ |
40177 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
40178 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
40179 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
40180 | fi | |
40181 | ||
6671c68b VZ |
40182 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
40183 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
40184 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
40185 | fi | |
40186 | ||
b550ad2a VZ |
40187 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="#" |
40188 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then | |
40189 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_WEBVIEW_1="" | |
40190 | fi | |
40191 | ||
1c4293cb VZ |
40192 | COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="#" |
40193 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_PROPGRID" = "x1" ; then | |
40194 | COND_MONOLITHIC_0_SHARED_0_USE_PROPGRID_1="" | |
40195 | fi | |
40196 | ||
d33ccbe1 VZ |
40197 | COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="#" |
40198 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RIBBON" = "x1" ; then | |
40199 | COND_MONOLITHIC_0_SHARED_0_USE_RIBBON_1="" | |
40200 | fi | |
40201 | ||
8b6682b9 JS |
40202 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#" |
40203 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
40204 | COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="" | |
40205 | fi | |
40206 | ||
54429bb3 RD |
40207 | COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#" |
40208 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then | |
40209 | COND_MONOLITHIC_0_SHARED_0_USE_STC_1="" | |
40210 | fi | |
40211 | ||
ceec2216 RL |
40212 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
40213 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40214 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
40215 | fi | |
40216 | ||
a848cd7e SC |
40217 | COND_MONOLITHIC_0_SHARED_1="#" |
40218 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
40219 | COND_MONOLITHIC_0_SHARED_1="" | |
40220 | fi | |
40221 | ||
3f60522a JS |
40222 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#" |
40223 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then | |
40224 | COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="" | |
40225 | fi | |
40226 | ||
a848cd7e SC |
40227 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
40228 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40229 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
40230 | fi | |
40231 | ||
90970d69 DE |
40232 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
40233 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
40234 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
40235 | fi | |
40236 | ||
f10e38c4 VZ |
40237 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
40238 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
40239 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
40240 | fi | |
40241 | ||
6671c68b VZ |
40242 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
40243 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
40244 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
40245 | fi | |
40246 | ||
b550ad2a VZ |
40247 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="#" |
40248 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_WEBVIEW" = "x1" ; then | |
40249 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_WEBVIEW_1="" | |
40250 | fi | |
40251 | ||
1c4293cb VZ |
40252 | COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="#" |
40253 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_PROPGRID" = "x1" ; then | |
40254 | COND_MONOLITHIC_0_SHARED_1_USE_PROPGRID_1="" | |
40255 | fi | |
40256 | ||
d33ccbe1 VZ |
40257 | COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="#" |
40258 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RIBBON" = "x1" ; then | |
40259 | COND_MONOLITHIC_0_SHARED_1_USE_RIBBON_1="" | |
40260 | fi | |
40261 | ||
8b6682b9 JS |
40262 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#" |
40263 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then | |
40264 | COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="" | |
40265 | fi | |
40266 | ||
54429bb3 RD |
40267 | COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#" |
40268 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then | |
40269 | COND_MONOLITHIC_0_SHARED_1_USE_STC_1="" | |
40270 | fi | |
40271 | ||
ceec2216 RL |
40272 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
40273 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
40274 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
40275 | fi | |
40276 | ||
d63f7562 VZ |
40277 | COND_MONOLITHIC_0_USE_AUI_1="#" |
40278 | if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then | |
40279 | COND_MONOLITHIC_0_USE_AUI_1="" | |
40280 | fi | |
40281 | ||
40282 | COND_MONOLITHIC_0_USE_GUI_1="#" | |
40283 | if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then | |
40284 | COND_MONOLITHIC_0_USE_GUI_1="" | |
40285 | fi | |
40286 | ||
40287 | COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#" | |
40288 | if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
40289 | COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="" | |
40290 | fi | |
40291 | ||
d63f7562 VZ |
40292 | COND_MONOLITHIC_0_USE_HTML_1="#" |
40293 | if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then | |
40294 | COND_MONOLITHIC_0_USE_HTML_1="" | |
40295 | fi | |
40296 | ||
e5efa97e VZ |
40297 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
40298 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
40299 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
40300 | fi | |
40301 | ||
1c4293cb VZ |
40302 | COND_MONOLITHIC_0_USE_PROPGRID_1="#" |
40303 | if test "x$MONOLITHIC" = "x0" -a "x$USE_PROPGRID" = "x1" ; then | |
40304 | COND_MONOLITHIC_0_USE_PROPGRID_1="" | |
40305 | fi | |
40306 | ||
d63f7562 VZ |
40307 | COND_MONOLITHIC_0_USE_QA_1="#" |
40308 | if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then | |
40309 | COND_MONOLITHIC_0_USE_QA_1="" | |
40310 | fi | |
40311 | ||
d33ccbe1 VZ |
40312 | COND_MONOLITHIC_0_USE_RIBBON_1="#" |
40313 | if test "x$MONOLITHIC" = "x0" -a "x$USE_RIBBON" = "x1" ; then | |
40314 | COND_MONOLITHIC_0_USE_RIBBON_1="" | |
40315 | fi | |
40316 | ||
d63f7562 VZ |
40317 | COND_MONOLITHIC_0_USE_RICHTEXT_1="#" |
40318 | if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then | |
40319 | COND_MONOLITHIC_0_USE_RICHTEXT_1="" | |
40320 | fi | |
40321 | ||
54429bb3 RD |
40322 | COND_MONOLITHIC_0_USE_STC_1="#" |
40323 | if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then | |
40324 | COND_MONOLITHIC_0_USE_STC_1="" | |
40325 | fi | |
40326 | ||
b550ad2a VZ |
40327 | COND_MONOLITHIC_0_USE_WEBVIEW_1="#" |
40328 | if test "x$MONOLITHIC" = "x0" -a "x$USE_WEBVIEW" = "x1" ; then | |
40329 | COND_MONOLITHIC_0_USE_WEBVIEW_1="" | |
40330 | fi | |
40331 | ||
d63f7562 VZ |
40332 | COND_MONOLITHIC_0_USE_XRC_1="#" |
40333 | if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then | |
40334 | COND_MONOLITHIC_0_USE_XRC_1="" | |
40335 | fi | |
40336 | ||
a848cd7e SC |
40337 | COND_MONOLITHIC_1="#" |
40338 | if test "x$MONOLITHIC" = "x1" ; then | |
40339 | COND_MONOLITHIC_1="" | |
40340 | fi | |
40341 | ||
40342 | COND_MONOLITHIC_1_SHARED_0="#" | |
40343 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
40344 | COND_MONOLITHIC_1_SHARED_0="" | |
40345 | fi | |
40346 | ||
40347 | COND_MONOLITHIC_1_SHARED_1="#" | |
40348 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
40349 | COND_MONOLITHIC_1_SHARED_1="" | |
40350 | fi | |
40351 | ||
40352 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
40353 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40354 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
40355 | fi | |
40356 | ||
40357 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
40358 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
40359 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
40360 | fi | |
40361 | ||
eb730a0c JS |
40362 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
40363 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40364 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
40365 | fi | |
40366 | ||
a848cd7e SC |
40367 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
40368 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
40369 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
40370 | fi | |
40371 | ||
40372 | COND_PLATFORM_MACOSX_1="#" | |
40373 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
40374 | COND_PLATFORM_MACOSX_1="" | |
40375 | fi | |
40376 | ||
f380544a VZ |
40377 | COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="#" |
40378 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_MSDOS" = "x0" ; then | |
40379 | COND_PLATFORM_MACOSX_1_PLATFORM_MSDOS_0="" | |
40380 | fi | |
40381 | ||
61aba460 VS |
40382 | COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="#" |
40383 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then | |
40384 | COND_PLATFORM_MACOSX_1_PLATFORM_WIN32_1_SHARED_0="" | |
40385 | fi | |
40386 | ||
eff9d7f5 VZ |
40387 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" |
40388 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
40389 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
40390 | fi | |
40391 | ||
40392 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
40393 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
40394 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
40395 | fi | |
40396 | ||
40397 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3="#" | |
40398 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" ; then | |
40399 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3="" | |
40400 | fi | |
40401 | ||
40402 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1="#" | |
40403 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" -a "x$USE_GUI" = "x1" ; then | |
40404 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1="" | |
40405 | fi | |
40406 | ||
2ea057f9 SC |
40407 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="#" |
40408 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then | |
40409 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1="" | |
a848cd7e SC |
40410 | fi |
40411 | ||
2ea057f9 SC |
40412 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="#" |
40413 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40414 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_CARBON_USE_GUI_1_WXUNIV_0="" | |
fc480dc1 DE |
40415 | fi |
40416 | ||
2ea057f9 SC |
40417 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="#" |
40418 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then | |
40419 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1="" | |
ebee3cd0 VS |
40420 | fi |
40421 | ||
2ea057f9 SC |
40422 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="#" |
40423 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40424 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_COCOA_USE_GUI_1_WXUNIV_0="" | |
ebee3cd0 VS |
40425 | fi |
40426 | ||
c9554803 VZ |
40427 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="#" |
40428 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then | |
40429 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1="" | |
40430 | fi | |
40431 | ||
40432 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#" | |
40433 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40434 | COND_PLATFORM_MACOSX_1_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="" | |
40435 | fi | |
40436 | ||
a848cd7e SC |
40437 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
40438 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40439 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
40440 | fi | |
40441 | ||
f380544a VZ |
40442 | COND_PLATFORM_MACOSX_1_USE_OPENGL_1="#" |
40443 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40444 | COND_PLATFORM_MACOSX_1_USE_OPENGL_1="" | |
40445 | fi | |
40446 | ||
a848cd7e SC |
40447 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
40448 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40449 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
40450 | fi | |
40451 | ||
b48a2016 DE |
40452 | COND_PLATFORM_MACOS_1="#" |
40453 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
40454 | COND_PLATFORM_MACOS_1="" | |
40455 | fi | |
40456 | ||
ebe887ed VZ |
40457 | COND_PLATFORM_MAC_0="#" |
40458 | if test "x$PLATFORM_MAC" = "x0" ; then | |
40459 | COND_PLATFORM_MAC_0="" | |
40460 | fi | |
40461 | ||
88262190 VZ |
40462 | COND_PLATFORM_MAC_1="#" |
40463 | if test "x$PLATFORM_MAC" = "x1" ; then | |
40464 | COND_PLATFORM_MAC_1="" | |
40465 | fi | |
40466 | ||
ac209a0f VZ |
40467 | COND_PLATFORM_MSDOS_0="#" |
40468 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
40469 | COND_PLATFORM_MSDOS_0="" | |
40470 | fi | |
40471 | ||
83d8eb47 MW |
40472 | COND_PLATFORM_MSDOS_1="#" |
40473 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
40474 | COND_PLATFORM_MSDOS_1="" | |
40475 | fi | |
40476 | ||
a848cd7e SC |
40477 | COND_PLATFORM_OS2_1="#" |
40478 | if test "x$PLATFORM_OS2" = "x1" ; then | |
40479 | COND_PLATFORM_OS2_1="" | |
40480 | fi | |
40481 | ||
40482 | COND_PLATFORM_UNIX_0="#" | |
40483 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
40484 | COND_PLATFORM_UNIX_0="" | |
40485 | fi | |
40486 | ||
40487 | COND_PLATFORM_UNIX_1="#" | |
40488 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
40489 | COND_PLATFORM_UNIX_1="" | |
40490 | fi | |
40491 | ||
3dd30495 VZ |
40492 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" |
40493 | if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
40494 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
40495 | fi | |
40496 | ||
40497 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
40498 | if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
40499 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
40500 | fi | |
40501 | ||
9dc44eff PC |
40502 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3="#" |
40503 | if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" ; then | |
40504 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3="" | |
40505 | fi | |
40506 | ||
40507 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1="#" | |
40508 | if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" -a "x$USE_GUI" = "x1" ; then | |
40509 | COND_PLATFORM_UNIX_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1="" | |
40510 | fi | |
40511 | ||
a848cd7e SC |
40512 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
40513 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
40514 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
40515 | fi | |
40516 | ||
40517 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
40518 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
40519 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
40520 | fi | |
40521 | ||
40522 | COND_PLATFORM_WIN32_0="#" | |
40523 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
40524 | COND_PLATFORM_WIN32_0="" | |
40525 | fi | |
40526 | ||
d48f13a1 VZ |
40527 | COND_PLATFORM_WIN32_0_TOOLKIT_GTK_TOOLKIT_VERSION_3="#" |
40528 | if test "x$PLATFORM_WIN32" = "x0" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" ; then | |
40529 | COND_PLATFORM_WIN32_0_TOOLKIT_GTK_TOOLKIT_VERSION_3="" | |
40530 | fi | |
40531 | ||
a848cd7e SC |
40532 | COND_PLATFORM_WIN32_1="#" |
40533 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
40534 | COND_PLATFORM_WIN32_1="" | |
40535 | fi | |
40536 | ||
61aba460 VS |
40537 | COND_PLATFORM_WIN32_1_SHARED_0="#" |
40538 | if test "x$PLATFORM_WIN32" = "x1" -a "x$SHARED" = "x0" ; then | |
40539 | COND_PLATFORM_WIN32_1_SHARED_0="" | |
40540 | fi | |
40541 | ||
d48f13a1 VZ |
40542 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" |
40543 | if test "x$PLATFORM_WIN32" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
40544 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
40545 | fi | |
40546 | ||
40547 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
40548 | if test "x$PLATFORM_WIN32" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
40549 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
40550 | fi | |
40551 | ||
40552 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_3="#" | |
40553 | if test "x$PLATFORM_WIN32" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" ; then | |
40554 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_3="" | |
40555 | fi | |
40556 | ||
40557 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1="#" | |
40558 | if test "x$PLATFORM_WIN32" = "x1" -a "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" -a "x$USE_GUI" = "x1" ; then | |
40559 | COND_PLATFORM_WIN32_1_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1="" | |
40560 | fi | |
40561 | ||
a848cd7e SC |
40562 | COND_SHARED_0="#" |
40563 | if test "x$SHARED" = "x0" ; then | |
40564 | COND_SHARED_0="" | |
40565 | fi | |
40566 | ||
88262190 VZ |
40567 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
40568 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
40569 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
40570 | fi | |
40571 | ||
40572 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
40573 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40574 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
40575 | fi | |
40576 | ||
40577 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
40578 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
40579 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
40580 | fi | |
40581 | ||
a848cd7e SC |
40582 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
40583 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40584 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
40585 | fi | |
40586 | ||
03c6117e | 40587 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="#" |
a848cd7e | 40588 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then |
03c6117e | 40589 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBJPEG_builtin="" |
a848cd7e SC |
40590 | fi |
40591 | ||
03c6117e | 40592 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="#" |
a848cd7e | 40593 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then |
03c6117e | 40594 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBPNG_builtin="" |
a848cd7e SC |
40595 | fi |
40596 | ||
03c6117e | 40597 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="#" |
a848cd7e | 40598 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then |
03c6117e | 40599 | COND_SHARED_0_USE_GUI_1_wxUSE_LIBTIFF_builtin="" |
a848cd7e SC |
40600 | fi |
40601 | ||
7708a267 VS |
40602 | COND_SHARED_0_USE_STC_1="#" |
40603 | if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then | |
40604 | COND_SHARED_0_USE_STC_1="" | |
40605 | fi | |
40606 | ||
03c6117e | 40607 | COND_SHARED_0_wxUSE_EXPAT_builtin="#" |
a848cd7e | 40608 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then |
03c6117e | 40609 | COND_SHARED_0_wxUSE_EXPAT_builtin="" |
a848cd7e SC |
40610 | fi |
40611 | ||
03c6117e | 40612 | COND_SHARED_0_wxUSE_REGEX_builtin="#" |
a848cd7e | 40613 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then |
03c6117e | 40614 | COND_SHARED_0_wxUSE_REGEX_builtin="" |
a848cd7e SC |
40615 | fi |
40616 | ||
03c6117e | 40617 | COND_SHARED_0_wxUSE_ZLIB_builtin="#" |
a848cd7e | 40618 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then |
03c6117e | 40619 | COND_SHARED_0_wxUSE_ZLIB_builtin="" |
a848cd7e SC |
40620 | fi |
40621 | ||
40622 | COND_SHARED_1="#" | |
40623 | if test "x$SHARED" = "x1" ; then | |
40624 | COND_SHARED_1="" | |
40625 | fi | |
40626 | ||
40627 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
40628 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40629 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
40630 | fi | |
40631 | ||
a30f955f VS |
40632 | COND_TOOLKIT_="#" |
40633 | if test "x$TOOLKIT" = "x" ; then | |
40634 | COND_TOOLKIT_="" | |
40635 | fi | |
40636 | ||
a848cd7e SC |
40637 | COND_TOOLKIT_COCOA="#" |
40638 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
40639 | COND_TOOLKIT_COCOA="" | |
40640 | fi | |
40641 | ||
a49baeab DE |
40642 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
40643 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
40644 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
40645 | fi | |
40646 | ||
a848cd7e SC |
40647 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
40648 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40649 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
40650 | fi | |
40651 | ||
b3c86150 VS |
40652 | COND_TOOLKIT_DFB="#" |
40653 | if test "x$TOOLKIT" = "xDFB" ; then | |
40654 | COND_TOOLKIT_DFB="" | |
40655 | fi | |
40656 | ||
40657 | COND_TOOLKIT_DFB_USE_GUI_1="#" | |
40658 | if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then | |
40659 | COND_TOOLKIT_DFB_USE_GUI_1="" | |
40660 | fi | |
40661 | ||
a848cd7e SC |
40662 | COND_TOOLKIT_GTK="#" |
40663 | if test "x$TOOLKIT" = "xGTK" ; then | |
40664 | COND_TOOLKIT_GTK="" | |
40665 | fi | |
40666 | ||
d044deea MW |
40667 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
40668 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
40669 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
40670 | fi | |
40671 | ||
40672 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
40673 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
40674 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
40675 | fi | |
40676 | ||
40677 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
40678 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
40679 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
40680 | fi | |
40681 | ||
40682 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
40683 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40684 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
40685 | fi | |
40686 | ||
d48f13a1 VZ |
40687 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_1="#" |
40688 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40689 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_1="" | |
40690 | fi | |
40691 | ||
9dc44eff PC |
40692 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0="#" |
40693 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$WXUNIV" = "x0" ; then | |
40694 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_0="" | |
40695 | fi | |
40696 | ||
d48f13a1 VZ |
40697 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_1="#" |
40698 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$WXUNIV" = "x1" ; then | |
40699 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_WXUNIV_1="" | |
40700 | fi | |
40701 | ||
9dc44eff PC |
40702 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3="#" |
40703 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" ; then | |
40704 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3="" | |
40705 | fi | |
40706 | ||
40707 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1="#" | |
40708 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" -a "x$USE_GUI" = "x1" ; then | |
40709 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1="" | |
40710 | fi | |
40711 | ||
40712 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1_WXUNIV_0="#" | |
40713 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40714 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_USE_GUI_1_WXUNIV_0="" | |
40715 | fi | |
40716 | ||
40717 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_WXUNIV_0="#" | |
40718 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x3" -a "x$WXUNIV" = "x0" ; then | |
40719 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_3_WXUNIV_0="" | |
40720 | fi | |
40721 | ||
d044deea MW |
40722 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" |
40723 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
40724 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
40725 | fi | |
40726 | ||
40727 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
40728 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40729 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
40730 | fi | |
40731 | ||
a848cd7e SC |
40732 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
40733 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
40734 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
40735 | fi | |
40736 | ||
a848cd7e SC |
40737 | COND_TOOLKIT_MAC="#" |
40738 | if test "x$TOOLKIT" = "xMAC" ; then | |
40739 | COND_TOOLKIT_MAC="" | |
40740 | fi | |
40741 | ||
a848cd7e SC |
40742 | COND_TOOLKIT_MOTIF="#" |
40743 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
40744 | COND_TOOLKIT_MOTIF="" | |
40745 | fi | |
40746 | ||
40747 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
40748 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
40749 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
40750 | fi | |
40751 | ||
40752 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
40753 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40754 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
40755 | fi | |
40756 | ||
40757 | COND_TOOLKIT_MSW="#" | |
40758 | if test "x$TOOLKIT" = "xMSW" ; then | |
40759 | COND_TOOLKIT_MSW="" | |
40760 | fi | |
40761 | ||
40762 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
40763 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
40764 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
40765 | fi | |
40766 | ||
40767 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
40768 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40769 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
40770 | fi | |
40771 | ||
0ee4059d DE |
40772 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
40773 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
40774 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
40775 | fi | |
40776 | ||
2ea057f9 SC |
40777 | COND_TOOLKIT_OSX_CARBON="#" |
40778 | if test "x$TOOLKIT" = "xOSX_CARBON" ; then | |
40779 | COND_TOOLKIT_OSX_CARBON="" | |
40780 | fi | |
40781 | ||
40782 | COND_TOOLKIT_OSX_CARBON_USE_GUI_1="#" | |
40783 | if test "x$TOOLKIT" = "xOSX_CARBON" -a "x$USE_GUI" = "x1" ; then | |
40784 | COND_TOOLKIT_OSX_CARBON_USE_GUI_1="" | |
40785 | fi | |
40786 | ||
2ea057f9 SC |
40787 | COND_TOOLKIT_OSX_COCOA="#" |
40788 | if test "x$TOOLKIT" = "xOSX_COCOA" ; then | |
40789 | COND_TOOLKIT_OSX_COCOA="" | |
40790 | fi | |
40791 | ||
40792 | COND_TOOLKIT_OSX_COCOA_USE_GUI_1="#" | |
40793 | if test "x$TOOLKIT" = "xOSX_COCOA" -a "x$USE_GUI" = "x1" ; then | |
40794 | COND_TOOLKIT_OSX_COCOA_USE_GUI_1="" | |
40795 | fi | |
40796 | ||
2ea057f9 SC |
40797 | COND_TOOLKIT_OSX_IPHONE="#" |
40798 | if test "x$TOOLKIT" = "xOSX_IPHONE" ; then | |
40799 | COND_TOOLKIT_OSX_IPHONE="" | |
40800 | fi | |
40801 | ||
c9554803 VZ |
40802 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="#" |
40803 | if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" ; then | |
40804 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1="" | |
40805 | fi | |
40806 | ||
40807 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="#" | |
40808 | if test "x$TOOLKIT" = "xOSX_IPHONE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40809 | COND_TOOLKIT_OSX_IPHONE_USE_GUI_1_WXUNIV_0="" | |
40810 | fi | |
40811 | ||
a848cd7e SC |
40812 | COND_TOOLKIT_PM="#" |
40813 | if test "x$TOOLKIT" = "xPM" ; then | |
40814 | COND_TOOLKIT_PM="" | |
40815 | fi | |
40816 | ||
40817 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
40818 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
40819 | COND_TOOLKIT_PM_USE_GUI_1="" | |
40820 | fi | |
40821 | ||
40822 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
40823 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40824 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
40825 | fi | |
40826 | ||
3fd9c298 DE |
40827 | COND_TOOLKIT_WINCE="#" |
40828 | if test "x$TOOLKIT" = "xWINCE" ; then | |
40829 | COND_TOOLKIT_WINCE="" | |
40830 | fi | |
40831 | ||
40832 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
40833 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
40834 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
40835 | fi | |
40836 | ||
40837 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
40838 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40839 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
40840 | fi | |
40841 | ||
0ee4059d DE |
40842 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
40843 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
40844 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
40845 | fi | |
40846 | ||
a848cd7e SC |
40847 | COND_TOOLKIT_X11="#" |
40848 | if test "x$TOOLKIT" = "xX11" ; then | |
40849 | COND_TOOLKIT_X11="" | |
40850 | fi | |
40851 | ||
40852 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
40853 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
40854 | COND_TOOLKIT_X11_USE_GUI_1="" | |
40855 | fi | |
40856 | ||
40857 | COND_UNICODE_1="#" | |
40858 | if test "x$UNICODE" = "x1" ; then | |
40859 | COND_UNICODE_1="" | |
40860 | fi | |
40861 | ||
a12bd55b VZ |
40862 | COND_USE_CAIRO_1="#" |
40863 | if test "x$USE_CAIRO" = "x1" ; then | |
40864 | COND_USE_CAIRO_1="" | |
40865 | fi | |
40866 | ||
a848cd7e SC |
40867 | COND_USE_EXCEPTIONS_0="#" |
40868 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
40869 | COND_USE_EXCEPTIONS_0="" | |
40870 | fi | |
40871 | ||
40872 | COND_USE_EXCEPTIONS_1="#" | |
40873 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
40874 | COND_USE_EXCEPTIONS_1="" | |
40875 | fi | |
40876 | ||
40877 | COND_USE_GUI_0="#" | |
40878 | if test "x$USE_GUI" = "x0" ; then | |
40879 | COND_USE_GUI_0="" | |
40880 | fi | |
40881 | ||
40882 | COND_USE_GUI_1="#" | |
40883 | if test "x$USE_GUI" = "x1" ; then | |
40884 | COND_USE_GUI_1="" | |
40885 | fi | |
40886 | ||
7dd1ae11 VS |
40887 | COND_USE_GUI_1_USE_OPENGL_1="#" |
40888 | if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
40889 | COND_USE_GUI_1_USE_OPENGL_1="" | |
40890 | fi | |
40891 | ||
a848cd7e SC |
40892 | COND_USE_GUI_1_WXUNIV_0="#" |
40893 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
40894 | COND_USE_GUI_1_WXUNIV_0="" | |
40895 | fi | |
40896 | ||
40897 | COND_USE_GUI_1_WXUNIV_1="#" | |
40898 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
40899 | COND_USE_GUI_1_WXUNIV_1="" | |
40900 | fi | |
40901 | ||
40902 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
40903 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40904 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
40905 | fi | |
40906 | ||
40907 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
40908 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40909 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
40910 | fi | |
40911 | ||
40912 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
40913 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40914 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
40915 | fi | |
40916 | ||
03c6117e VZ |
40917 | COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="#" |
40918 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
40919 | COND_USE_GUI_1_wxUSE_LIBJPEG_builtin="" | |
40920 | fi | |
40921 | ||
40922 | COND_USE_GUI_1_wxUSE_LIBPNG_builtin="#" | |
40923 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
40924 | COND_USE_GUI_1_wxUSE_LIBPNG_builtin="" | |
40925 | fi | |
40926 | ||
40927 | COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="#" | |
40928 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
40929 | COND_USE_GUI_1_wxUSE_LIBTIFF_builtin="" | |
40930 | fi | |
40931 | ||
ac209a0f VZ |
40932 | COND_USE_OPENGL_1="#" |
40933 | if test "x$USE_OPENGL" = "x1" ; then | |
40934 | COND_USE_OPENGL_1="" | |
40935 | fi | |
40936 | ||
f10e38c4 VZ |
40937 | COND_USE_PCH_1="#" |
40938 | if test "x$USE_PCH" = "x1" ; then | |
40939 | COND_USE_PCH_1="" | |
40940 | fi | |
40941 | ||
a848cd7e SC |
40942 | COND_USE_PLUGINS_0="#" |
40943 | if test "x$USE_PLUGINS" = "x0" ; then | |
40944 | COND_USE_PLUGINS_0="" | |
40945 | fi | |
40946 | ||
0b78747f MW |
40947 | COND_USE_RTTI_0="#" |
40948 | if test "x$USE_RTTI" = "x0" ; then | |
40949 | COND_USE_RTTI_0="" | |
40950 | fi | |
40951 | ||
40952 | COND_USE_RTTI_1="#" | |
40953 | if test "x$USE_RTTI" = "x1" ; then | |
40954 | COND_USE_RTTI_1="" | |
40955 | fi | |
40956 | ||
2c459beb VZ |
40957 | COND_USE_SOTWOSYMLINKS_1="#" |
40958 | if test "x$USE_SOTWOSYMLINKS" = "x1" ; then | |
40959 | COND_USE_SOTWOSYMLINKS_1="" | |
a848cd7e SC |
40960 | fi |
40961 | ||
eb730a0c JS |
40962 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
40963 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
40964 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
40965 | fi | |
40966 | ||
a848cd7e SC |
40967 | COND_USE_SOVERLINUX_1="#" |
40968 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
40969 | COND_USE_SOVERLINUX_1="" | |
40970 | fi | |
40971 | ||
40972 | COND_USE_SOVERSION_0="#" | |
40973 | if test "x$USE_SOVERSION" = "x0" ; then | |
40974 | COND_USE_SOVERSION_0="" | |
40975 | fi | |
40976 | ||
2c459beb VZ |
40977 | COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="#" |
40978 | if test "x$USE_SOVERSION" = "x1" -a "x$USE_SOVERSOLARIS" = "x1" ; then | |
40979 | COND_USE_SOVERSION_1_USE_SOVERSOLARIS_1="" | |
40980 | fi | |
40981 | ||
a848cd7e SC |
40982 | COND_USE_SOVERSOLARIS_1="#" |
40983 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
40984 | COND_USE_SOVERSOLARIS_1="" | |
40985 | fi | |
40986 | ||
7708a267 VS |
40987 | COND_USE_STC_1="#" |
40988 | if test "x$USE_STC" = "x1" ; then | |
40989 | COND_USE_STC_1="" | |
40990 | fi | |
40991 | ||
0b78747f MW |
40992 | COND_USE_THREADS_0="#" |
40993 | if test "x$USE_THREADS" = "x0" ; then | |
40994 | COND_USE_THREADS_0="" | |
40995 | fi | |
40996 | ||
40997 | COND_USE_THREADS_1="#" | |
40998 | if test "x$USE_THREADS" = "x1" ; then | |
40999 | COND_USE_THREADS_1="" | |
41000 | fi | |
41001 | ||
a13a7f89 RL |
41002 | COND_USE_XRC_1="#" |
41003 | if test "x$USE_XRC" = "x1" ; then | |
41004 | COND_USE_XRC_1="" | |
41005 | fi | |
41006 | ||
eb730a0c JS |
41007 | COND_WINDOWS_IMPLIB_1="#" |
41008 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
41009 | COND_WINDOWS_IMPLIB_1="" | |
41010 | fi | |
41011 | ||
a848cd7e SC |
41012 | COND_WITH_PLUGIN_SDL_1="#" |
41013 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
41014 | COND_WITH_PLUGIN_SDL_1="" | |
41015 | fi | |
41016 | ||
1e6eb025 VZ |
41017 | COND_WXUNIV_0="#" |
41018 | if test "x$WXUNIV" = "x0" ; then | |
41019 | COND_WXUNIV_0="" | |
41020 | fi | |
41021 | ||
a848cd7e SC |
41022 | COND_WXUNIV_1="#" |
41023 | if test "x$WXUNIV" = "x1" ; then | |
41024 | COND_WXUNIV_1="" | |
41025 | fi | |
41026 | ||
41027 | COND_WXUSE_EXPAT_BUILTIN="#" | |
41028 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41029 | COND_WXUSE_EXPAT_BUILTIN="" | |
41030 | fi | |
41031 | ||
41032 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
41033 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41034 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
41035 | fi | |
41036 | ||
41037 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
41038 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41039 | COND_WXUSE_LIBPNG_BUILTIN="" | |
41040 | fi | |
41041 | ||
41042 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
41043 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41044 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
41045 | fi | |
41046 | ||
a848cd7e SC |
41047 | COND_WXUSE_REGEX_BUILTIN="#" |
41048 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41049 | COND_WXUSE_REGEX_BUILTIN="" | |
41050 | fi | |
41051 | ||
41052 | COND_WXUSE_ZLIB_BUILTIN="#" | |
41053 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41054 | COND_WXUSE_ZLIB_BUILTIN="" | |
41055 | fi | |
41056 | ||
03c6117e VZ |
41057 | COND_wxUSE_EXPAT_builtin="#" |
41058 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
41059 | COND_wxUSE_EXPAT_builtin="" | |
41060 | fi | |
41061 | ||
41062 | COND_wxUSE_LIBJPEG_builtin="#" | |
41063 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
41064 | COND_wxUSE_LIBJPEG_builtin="" | |
41065 | fi | |
41066 | ||
41067 | COND_wxUSE_LIBPNG_builtin="#" | |
41068 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
41069 | COND_wxUSE_LIBPNG_builtin="" | |
41070 | fi | |
41071 | ||
41072 | COND_wxUSE_LIBTIFF_builtin="#" | |
41073 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
41074 | COND_wxUSE_LIBTIFF_builtin="" | |
41075 | fi | |
41076 | ||
41077 | COND_wxUSE_REGEX_builtin="#" | |
41078 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
41079 | COND_wxUSE_REGEX_builtin="" | |
41080 | fi | |
41081 | ||
41082 | COND_wxUSE_ZLIB_builtin="#" | |
41083 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
41084 | COND_wxUSE_ZLIB_builtin="" | |
41085 | fi | |
41086 | ||
a848cd7e SC |
41087 | |
41088 | ||
810b94f0 | 41089 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
3dd30495 | 41090 | as_fn_error $? "No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" "$LINENO" 5 |
810b94f0 MW |
41091 | fi |
41092 | ||
2057db16 | 41093 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
3dd30495 | 41094 | as_fn_error $? "Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." "$LINENO" 5 |
2057db16 VS |
41095 | fi |
41096 | ||
a848cd7e | 41097 | |
ebda9490 VZ |
41098 | case ${INSTALL} in |
41099 | /* ) # Absolute | |
41100 | ;; | |
41101 | ?:* ) # Drive letter, considered as absolute. | |
41102 | ;; | |
41103 | *) | |
41104 | INSTALL=`pwd`/${INSTALL} ;; | |
41105 | esac | |
41106 | ||
ecac5b81 VZ |
41107 | if test "$wxUSE_GUI" = "yes"; then |
41108 | ||
41109 | if test "$wxUSE_MSW" = 1 ; then | |
41110 | if test "x$WINDRES" = "x"; then | |
3dd30495 | 41111 | as_fn_error $? "Required windres program not found" "$LINENO" 5 |
ecac5b81 VZ |
41112 | fi |
41113 | ||
ef5dbede | 41114 | RESCOMP="$WINDRES" |
ecac5b81 VZ |
41115 | fi |
41116 | ||
f10f4c87 | 41117 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_OLD_COCOA" = 1; then |
ecac5b81 VZ |
41118 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
41119 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
41120 | ||
41121 | LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
41122 | ||
41123 | # Extract the first word of "DeRez", so it can be a program name with args. | |
41124 | set dummy DeRez; ac_word=$2 | |
3dd30495 VZ |
41125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
41126 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 41127 | if ${ac_cv_prog_DEREZ+:} false; then : |
3dd30495 | 41128 | $as_echo_n "(cached) " >&6 |
ecac5b81 VZ |
41129 | else |
41130 | if test -n "$DEREZ"; then | |
41131 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
41132 | else | |
41133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41134 | for as_dir in $PATH | |
41135 | do | |
41136 | IFS=$as_save_IFS | |
41137 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 41138 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 41139 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
ecac5b81 | 41140 | ac_cv_prog_DEREZ="DeRez" |
3dd30495 | 41141 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
ecac5b81 VZ |
41142 | break 2 |
41143 | fi | |
41144 | done | |
3dd30495 | 41145 | done |
47964710 | 41146 | IFS=$as_save_IFS |
ecac5b81 VZ |
41147 | |
41148 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
41149 | fi | |
41150 | fi | |
41151 | DEREZ=$ac_cv_prog_DEREZ | |
41152 | if test -n "$DEREZ"; then | |
3dd30495 VZ |
41153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEREZ" >&5 |
41154 | $as_echo "$DEREZ" >&6; } | |
ecac5b81 | 41155 | else |
3dd30495 VZ |
41156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
41157 | $as_echo "no" >&6; } | |
ecac5b81 VZ |
41158 | fi |
41159 | ||
41160 | ||
47964710 | 41161 | |
ecac5b81 VZ |
41162 | MACSETFILE="\$(SETFILE)" |
41163 | ||
2ea057f9 | 41164 | if test "$wxUSE_OSX_CARBON" = 1; then |
ecac5b81 VZ |
41165 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
41166 | RESCOMP="$REZ" | |
41167 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
41168 | else | |
41169 | POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" | |
41170 | RESCOMP="cat /dev/null \| $REZ" | |
41171 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
41172 | fi | |
41173 | ||
41174 | else | |
41175 | MACSETFILE="@true" | |
41176 | ||
41177 | if test "$wxUSE_PM" = 1; then | |
41178 | RESCOMP="emxbind" | |
41179 | WXCONFIG_RESFLAGS="-ep" | |
41180 | ||
41181 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
41182 | else | |
41183 | POSTLINK_COMMAND="@true" | |
41184 | fi | |
41185 | fi | |
41186 | ||
41187 | fi | |
41188 | ||
41189 | ||
a81d5bb6 MW |
41190 | if test $GCC_PCH = 1 |
41191 | then | |
41192 | if test "$wx_cv_gcc_pch_bug" = yes; then | |
3dd30495 VZ |
41193 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Precompiled header support is broken on this compiler" >&5 |
41194 | $as_echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;} | |
41195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** --enable-precomp-headers is not recommended" >&5 | |
41196 | $as_echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;} | |
41197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5 | |
41198 | $as_echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;} | |
a81d5bb6 MW |
41199 | fi |
41200 | ||
64d975b2 DE |
41201 | # Our WX_PRECOMP flag does not make sense for any language except C++ because |
41202 | # the headers that benefit from precompilation are mostly C++ headers. | |
41203 | CXXFLAGS="-DWX_PRECOMP $CXXFLAGS" | |
41204 | # When Bakefile can do multi-language PCH (e.g. C++ and Objective-C++) enable this: | |
41205 | #OBJCXXFLAGS="-DWX_PRECOMP $CXXFLAGS" | |
a81d5bb6 MW |
41206 | fi |
41207 | ||
7afc46ab KO |
41208 | |
41209 | if test "$wxUSE_MAC" = 1 ; then | |
95768535 | 41210 | if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then |
e269b28e | 41211 | if test "x$disable_macosx_deps" = "xyes"; then |
41d170ce VZ |
41212 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp |
41213 | mv temp bk-deps | |
e269b28e | 41214 | chmod +x bk-deps |
41d170ce | 41215 | fi |
7afc46ab KO |
41216 | fi |
41217 | fi | |
41218 | ||
ceec2216 | 41219 | if test "$wxUSE_SHARED" = "yes"; then |
5b674b9d DE |
41220 | case "${host}" in |
41221 | *-pc-os2_emx | *-pc-os2-emx ) | |
41222 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
41223 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
ec3edcc9 VZ |
41224 | cp -p ${srcdir}/src/os2/dllnames.sh . |
41225 | cp -p ${srcdir}/src/os2/dllar.sh . | |
5b674b9d DE |
41226 | ;; |
41227 | esac | |
ceec2216 | 41228 | fi |
69120ee4 VZ |
41229 | if test "$wxUSE_OMF" = "yes"; then |
41230 | case "${host}" in | |
41231 | *-pc-os2_emx | *-pc-os2-emx ) | |
41232 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
41233 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
41234 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
41235 | ;; | |
41236 | esac | |
41237 | fi | |
a848cd7e | 41238 | |
5ff751d6 | 41239 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e | 41240 | |
43a7c679 VZ |
41241 | |
41242 | case "${host}" in | |
41243 | *-*-solaris2* ) | |
efb8d630 | 41244 | if test "$GCC" = yes; then |
4fb1e79b VZ |
41245 | CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//g'` |
41246 | LIBS=`echo $LIBS | sed 's/-mt//g'` | |
41247 | EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//g'` | |
43a7c679 VZ |
41248 | fi |
41249 | ;; | |
41250 | ||
41251 | *-*-linux* ) | |
41252 | if test "x$SUNCXX" = xyes; then | |
4fb1e79b VZ |
41253 | CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//g'` |
41254 | LIBS=`echo $LIBS | sed 's/-pthread//g'` | |
41255 | EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//g'` | |
43a7c679 VZ |
41256 | fi |
41257 | ;; | |
41258 | esac | |
41259 | ||
0ff20b9f VS |
41260 | CFLAGS="$CFLAGS $CFLAGS_VISIBILITY" |
41261 | CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY" | |
08f20edc VZ |
41262 | OBJCFLAGS="$OBJCFLAGS $CFLAGS_VISIBILITY" |
41263 | OBJCXXFLAGS="$OBJCXXFLAGS $CXXFLAGS_VISIBILITY" | |
0ff20b9f | 41264 | |
a848cd7e SC |
41265 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
41266 | ||
41267 | ||
41268 | ||
41269 | ||
41270 | ||
41271 | ||
41272 | ||
41273 | ||
41274 | ||
41275 | ||
41276 | ||
41277 | ||
41278 | ||
41279 | ||
41280 | ||
41281 | ||
41282 | ||
41283 | ||
41284 | ||
41285 | ||
41286 | ||
41287 | ||
41288 | ||
41289 | ||
41290 | ||
41291 | ||
41292 | ||
41293 | ||
41294 | ||
41295 | ||
41296 | ||
41297 | ||
41298 | ||
41299 | ||
41300 | ||
41301 | ||
41302 | ||
41303 | ||
41304 | ||
41305 | ||
41306 | ||
41307 | ||
a848cd7e SC |
41308 | |
41309 | ||
41310 | ||
41311 | ||
41312 | ||
41313 | ||
41314 | ||
41315 | ||
41316 | ||
41317 | ||
41318 | ||
41319 | ||
a848cd7e SC |
41320 | |
41321 | ||
ddd14b14 | 41322 | |
d4fbe1d8 | 41323 | |
a848cd7e SC |
41324 | |
41325 | ||
3dd30495 VZ |
41326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
41327 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
41328 | set x ${MAKE-make} | |
41329 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
eff9d7f5 | 41330 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
3dd30495 | 41331 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
41332 | else |
41333 | cat >conftest.make <<\_ACEOF | |
47964710 | 41334 | SHELL = /bin/sh |
a848cd7e | 41335 | all: |
47964710 | 41336 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
a848cd7e | 41337 | _ACEOF |
3dd30495 | 41338 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
47964710 VS |
41339 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
41340 | *@@@%%%=?*=@@@%%%*) | |
41341 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
41342 | *) | |
41343 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
41344 | esac | |
a848cd7e SC |
41345 | rm -f conftest.make |
41346 | fi | |
47964710 | 41347 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3dd30495 VZ |
41348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
41349 | $as_echo "yes" >&6; } | |
a848cd7e SC |
41350 | SET_MAKE= |
41351 | else | |
3dd30495 VZ |
41352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
41353 | $as_echo "no" >&6; } | |
a848cd7e SC |
41354 | SET_MAKE="MAKE=${MAKE-make}" |
41355 | fi | |
41356 | ||
41357 | ||
a848cd7e | 41358 | |
47964710 | 41359 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
ceec2216 | 41360 | |
a848cd7e | 41361 | |
5c60e845 | 41362 | if test "$USE_WIN32" = 1; then |
d589327a | 41363 | ac_config_commands="$ac_config_commands rcdefs.h" |
5c60e845 MW |
41364 | |
41365 | fi | |
41366 | ||
47964710 | 41367 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 41368 | |
a848cd7e | 41369 | |
47964710 | 41370 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 41371 | |
ceec2216 | 41372 | |
2f46438b FM |
41373 | ac_config_files="$ac_config_files utils/ifacecheck/rungccxml.sh" |
41374 | ||
41375 | ||
2dbd07cb | 41376 | if test "$wx_cv_version_script" = "yes"; then |
47964710 | 41377 | ac_config_files="$ac_config_files version-script" |
2dbd07cb VZ |
41378 | |
41379 | fi | |
47964710 | 41380 | ac_config_files="$ac_config_files Makefile" |
ceec2216 RL |
41381 | |
41382 | ||
47964710 | 41383 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
41384 | |
41385 | ||
9103d280 | 41386 | |
1c14217d | 41387 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e | 41388 | if test "$wxUSE_GUI" = "yes"; then |
cf63f3d3 | 41389 | SUBDIRS="samples demos utils" |
bef5e9e5 PC |
41390 | else |
41391 | SUBDIRS="samples utils" | |
a848cd7e SC |
41392 | fi |
41393 | ||
41394 | ||
41395 | ||
47964710 | 41396 | # Check whether --with-cppunit-prefix was given. |
3dd30495 | 41397 | if test "${with_cppunit_prefix+set}" = set; then : |
47964710 | 41398 | withval=$with_cppunit_prefix; cppunit_config_prefix="$withval" |
a848cd7e SC |
41399 | else |
41400 | cppunit_config_prefix="" | |
47964710 VS |
41401 | fi |
41402 | ||
84ebfcbd | 41403 | |
47964710 | 41404 | # Check whether --with-cppunit-exec-prefix was given. |
3dd30495 | 41405 | if test "${with_cppunit_exec_prefix+set}" = set; then : |
47964710 | 41406 | withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval" |
a848cd7e SC |
41407 | else |
41408 | cppunit_config_exec_prefix="" | |
47964710 VS |
41409 | fi |
41410 | ||
a848cd7e SC |
41411 | |
41412 | if test x$cppunit_config_exec_prefix != x ; then | |
41413 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
41414 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41415 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
41416 | fi | |
41417 | fi | |
41418 | if test x$cppunit_config_prefix != x ; then | |
41419 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
41420 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
41421 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
41422 | fi | |
41423 | fi | |
41424 | ||
41425 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
41426 | set dummy cppunit-config; ac_word=$2 | |
3dd30495 VZ |
41427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
41428 | $as_echo_n "checking for $ac_word... " >&6; } | |
eff9d7f5 | 41429 | if ${ac_cv_path_CPPUNIT_CONFIG+:} false; then : |
3dd30495 | 41430 | $as_echo_n "(cached) " >&6 |
a848cd7e SC |
41431 | else |
41432 | case $CPPUNIT_CONFIG in | |
41433 | [\\/]* | ?:[\\/]*) | |
41434 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
41435 | ;; | |
41436 | *) | |
41437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41438 | for as_dir in $PATH | |
41439 | do | |
41440 | IFS=$as_save_IFS | |
41441 | test -z "$as_dir" && as_dir=. | |
3dd30495 | 41442 | for ac_exec_ext in '' $ac_executable_extensions; do |
eff9d7f5 | 41443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
a848cd7e | 41444 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
3dd30495 | 41445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
a848cd7e SC |
41446 | break 2 |
41447 | fi | |
41448 | done | |
3dd30495 | 41449 | done |
47964710 | 41450 | IFS=$as_save_IFS |
a848cd7e SC |
41451 | |
41452 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
41453 | ;; | |
41454 | esac | |
41455 | fi | |
41456 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
a848cd7e | 41457 | if test -n "$CPPUNIT_CONFIG"; then |
3dd30495 VZ |
41458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5 |
41459 | $as_echo "$CPPUNIT_CONFIG" >&6; } | |
a848cd7e | 41460 | else |
3dd30495 VZ |
41461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
41462 | $as_echo "no" >&6; } | |
a848cd7e SC |
41463 | fi |
41464 | ||
47964710 | 41465 | |
a848cd7e SC |
41466 | cppunit_version_min=1.8.0 |
41467 | ||
3dd30495 VZ |
41468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Cppunit - version >= $cppunit_version_min" >&5 |
41469 | $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; } | |
a848cd7e SC |
41470 | no_cppunit="" |
41471 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
3dd30495 VZ |
41472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
41473 | $as_echo "no" >&6; } | |
a848cd7e SC |
41474 | no_cppunit=yes |
41475 | else | |
41476 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
41477 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
41478 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
41479 | ||
41480 | cppunit_major_version=`echo $cppunit_version | \ | |
41481 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41482 | cppunit_minor_version=`echo $cppunit_version | \ | |
41483 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41484 | cppunit_micro_version=`echo $cppunit_version | \ | |
41485 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41486 | ||
41487 | cppunit_major_min=`echo $cppunit_version_min | \ | |
41488 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
41489 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
41490 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
41491 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
41492 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
41493 | ||
41494 | cppunit_version_proper=`expr \ | |
41495 | $cppunit_major_version \> $cppunit_major_min \| \ | |
41496 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41497 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
41498 | $cppunit_major_version \= $cppunit_major_min \& \ | |
41499 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
41500 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
41501 | ||
41502 | if test "$cppunit_version_proper" = "1" ; then | |
3dd30495 VZ |
41503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 |
41504 | $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; } | |
a848cd7e | 41505 | else |
3dd30495 VZ |
41506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
41507 | $as_echo "no" >&6; } | |
a848cd7e SC |
41508 | no_cppunit=yes |
41509 | fi | |
41510 | fi | |
41511 | ||
41512 | if test "x$no_cppunit" = x ; then | |
c2218763 | 41513 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
41514 | else |
41515 | CPPUNIT_CFLAGS="" | |
41516 | CPPUNIT_LIBS="" | |
c2218763 | 41517 | : |
a848cd7e SC |
41518 | fi |
41519 | ||
41520 | ||
41521 | ||
41522 | ||
41523 | ||
bef5e9e5 | 41524 | for subdir in $SUBDIRS; do |
a848cd7e SC |
41525 | if test -d ${srcdir}/${subdir} ; then |
41526 | if test "$wxUSE_GUI" = "yes"; then | |
41527 | if test ${subdir} = "samples"; then | |
41528 | makefiles="samples/Makefile.in $makefiles" | |
bef5e9e5 | 41529 | for sample in $SAMPLES_SUBDIRS; do |
a848cd7e SC |
41530 | if test -d $srcdir/samples/$sample; then |
41531 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41532 | fi | |
41533 | done | |
9c112555 | 41534 | else |
435a5ad0 | 41535 | disabled_var=DISABLED_`echo $subdir | tr '[a-z]' '[A-Z]'` |
9c112555 MW |
41536 | eval "disabled=\$$disabled_var" |
41537 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
252a5022 | 41538 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"` |
a848cd7e | 41539 | fi |
bef5e9e5 | 41540 | else |
eeb67742 | 41541 | if test ${subdir} = "samples"; then |
ac209a0f VZ |
41542 | makefiles="samples/Makefile.in $makefiles" |
41543 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
41544 | if test -d $srcdir/samples/$sample; then | |
41545 | makefiles="samples/$sample/Makefile.in $makefiles" | |
41546 | fi | |
41547 | done | |
a848cd7e | 41548 | elif test ${subdir} = "utils"; then |
6537ccf8 | 41549 | makefiles="" |
eeb67742 | 41550 | for util in ifacecheck ; do |
6537ccf8 | 41551 | if test -d $srcdir/utils/$util ; then |
eeb67742 | 41552 | makefiles="utils/$util/src/Makefile.in \ |
6537ccf8 VS |
41553 | $makefiles" |
41554 | fi | |
41555 | done | |
bef5e9e5 PC |
41556 | else |
41557 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
a848cd7e SC |
41558 | fi |
41559 | fi | |
41560 | ||
41561 | for mkin in $makefiles ; do | |
41562 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
47964710 | 41563 | ac_config_files="$ac_config_files $mk" |
a848cd7e SC |
41564 | |
41565 | done | |
41566 | fi | |
41567 | done | |
1c14217d | 41568 | fi |
a848cd7e SC |
41569 | cat >confcache <<\_ACEOF |
41570 | # This file is a shell script that caches the results of configure | |
41571 | # tests run on this system so they can be shared between configure | |
41572 | # scripts and configure runs, see configure's option --config-cache. | |
41573 | # It is not useful on other systems. If it contains results you don't | |
41574 | # want to keep, you may remove or edit it. | |
41575 | # | |
41576 | # config.status only pays attention to the cache file if you give it | |
41577 | # the --recheck option to rerun configure. | |
41578 | # | |
41579 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
41580 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
41581 | # following values. | |
41582 | ||
41583 | _ACEOF | |
41584 | ||
41585 | # The following way of writing the cache mishandles newlines in values, | |
41586 | # but we know of no workaround that is simple, portable, and efficient. | |
47964710 | 41587 | # So, we kill variables containing newlines. |
a848cd7e SC |
41588 | # Ultrix sh set writes to stderr and can't be redirected directly, |
41589 | # and sets the high bit in the cache file unless we assign to the vars. | |
47964710 VS |
41590 | ( |
41591 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
41592 | eval ac_val=\$$ac_var | |
41593 | case $ac_val in #( | |
41594 | *${as_nl}*) | |
41595 | case $ac_var in #( | |
3dd30495 VZ |
41596 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
41597 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
47964710 VS |
41598 | esac |
41599 | case $ac_var in #( | |
41600 | _ | IFS | as_nl) ;; #( | |
3dd30495 VZ |
41601 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
41602 | *) { eval $ac_var=; unset $ac_var;} ;; | |
47964710 VS |
41603 | esac ;; |
41604 | esac | |
41605 | done | |
41606 | ||
a848cd7e | 41607 | (set) 2>&1 | |
47964710 VS |
41608 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
41609 | *${as_nl}ac_space=\ *) | |
3dd30495 VZ |
41610 | # `set' does not quote correctly, so add quotes: double-quote |
41611 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
a848cd7e | 41612 | sed -n \ |
ac1cb8d3 VS |
41613 | "s/'/'\\\\''/g; |
41614 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
47964710 | 41615 | ;; #( |
a848cd7e SC |
41616 | *) |
41617 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
47964710 | 41618 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
a848cd7e | 41619 | ;; |
47964710 VS |
41620 | esac | |
41621 | sort | |
41622 | ) | | |
a848cd7e | 41623 | sed ' |
47964710 | 41624 | /^ac_cv_env_/b end |
a848cd7e | 41625 | t clear |
47964710 | 41626 | :clear |
a848cd7e SC |
41627 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
41628 | t end | |
47964710 VS |
41629 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
41630 | :end' >>confcache | |
41631 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
41632 | if test -w "$cache_file"; then | |
eff9d7f5 | 41633 | if test "x$cache_file" != "x/dev/null"; then |
3dd30495 VZ |
41634 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
41635 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
eff9d7f5 VZ |
41636 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
41637 | cat confcache >"$cache_file" | |
41638 | else | |
41639 | case $cache_file in #( | |
41640 | */* | ?:*) | |
41641 | mv -f confcache "$cache_file"$$ && | |
41642 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
41643 | *) | |
41644 | mv -f confcache "$cache_file" ;; | |
41645 | esac | |
41646 | fi | |
41647 | fi | |
a848cd7e | 41648 | else |
3dd30495 VZ |
41649 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
41650 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
a848cd7e SC |
41651 | fi |
41652 | fi | |
41653 | rm -f confcache | |
41654 | ||
41655 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
41656 | # Let make expand exec_prefix. | |
41657 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
41658 | ||
a848cd7e SC |
41659 | DEFS=-DHAVE_CONFIG_H |
41660 | ||
41661 | ac_libobjs= | |
41662 | ac_ltlibobjs= | |
3dd30495 | 41663 | U= |
a848cd7e SC |
41664 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
41665 | # 1. Remove the extension, and $U if already installed. | |
47964710 | 41666 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
3dd30495 | 41667 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
47964710 VS |
41668 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
41669 | # will be set to the directory where LIBOBJS objects are built. | |
3dd30495 VZ |
41670 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
41671 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
a848cd7e SC |
41672 | done |
41673 | LIBOBJS=$ac_libobjs | |
41674 | ||
41675 | LTLIBOBJS=$ac_ltlibobjs | |
41676 | ||
41677 | ||
41678 | ||
eff9d7f5 | 41679 | : "${CONFIG_STATUS=./config.status}" |
3dd30495 | 41680 | ac_write_fail=0 |
a848cd7e SC |
41681 | ac_clean_files_save=$ac_clean_files |
41682 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3dd30495 VZ |
41683 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
41684 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
41685 | as_write_fail=0 | |
41686 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
a848cd7e SC |
41687 | #! $SHELL |
41688 | # Generated by $as_me. | |
41689 | # Run this file to recreate the current configuration. | |
41690 | # Compiler output produced by configure, useful for debugging | |
41691 | # configure, is in config.log if it exists. | |
41692 | ||
41693 | debug=false | |
41694 | ac_cs_recheck=false | |
41695 | ac_cs_silent=false | |
a848cd7e | 41696 | |
3dd30495 VZ |
41697 | SHELL=\${CONFIG_SHELL-$SHELL} |
41698 | export SHELL | |
41699 | _ASEOF | |
41700 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
41701 | ## -------------------- ## | |
41702 | ## M4sh Initialization. ## | |
41703 | ## -------------------- ## | |
a848cd7e | 41704 | |
47964710 VS |
41705 | # Be more Bourne compatible |
41706 | DUALCASE=1; export DUALCASE # for MKS sh | |
3dd30495 | 41707 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
a848cd7e SC |
41708 | emulate sh |
41709 | NULLCMD=: | |
3dd30495 | 41710 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
a848cd7e SC |
41711 | # is contrary to our usage. Disable this feature. |
41712 | alias -g '${1+"$@"}'='"$@"' | |
47964710 VS |
41713 | setopt NO_GLOB_SUBST |
41714 | else | |
3dd30495 VZ |
41715 | case `(set -o) 2>/dev/null` in #( |
41716 | *posix*) : | |
41717 | set -o posix ;; #( | |
41718 | *) : | |
41719 | ;; | |
47964710 | 41720 | esac |
47964710 VS |
41721 | fi |
41722 | ||
41723 | ||
3dd30495 VZ |
41724 | as_nl=' |
41725 | ' | |
41726 | export as_nl | |
41727 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
41728 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41729 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
41730 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41731 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
41732 | # but without wasting forks for bash or zsh. | |
41733 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
41734 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
41735 | as_echo='print -r --' | |
41736 | as_echo_n='print -rn --' | |
41737 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
41738 | as_echo='printf %s\n' | |
41739 | as_echo_n='printf %s' | |
41740 | else | |
41741 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
41742 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
41743 | as_echo_n='/usr/ucb/echo -n' | |
d589327a | 41744 | else |
3dd30495 VZ |
41745 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
41746 | as_echo_n_body='eval | |
41747 | arg=$1; | |
41748 | case $arg in #( | |
41749 | *"$as_nl"*) | |
41750 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
41751 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
41752 | esac; | |
41753 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
41754 | ' | |
41755 | export as_echo_n_body | |
41756 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
d589327a | 41757 | fi |
3dd30495 VZ |
41758 | export as_echo_body |
41759 | as_echo='sh -c $as_echo_body as_echo' | |
7fd3acaf RD |
41760 | fi |
41761 | ||
3dd30495 VZ |
41762 | # The user is always right. |
41763 | if test "${PATH_SEPARATOR+set}" != set; then | |
41764 | PATH_SEPARATOR=: | |
41765 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
41766 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
41767 | PATH_SEPARATOR=';' | |
41768 | } | |
a848cd7e SC |
41769 | fi |
41770 | ||
41771 | ||
47964710 VS |
41772 | # IFS |
41773 | # We need space, tab and new line, in precisely that order. Quoting is | |
41774 | # there to prevent editors from complaining about space-tab. | |
41775 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
41776 | # splitting by setting IFS to empty value.) | |
47964710 VS |
41777 | IFS=" "" $as_nl" |
41778 | ||
41779 | # Find who we are. Look in the path if we contain no directory separator. | |
eff9d7f5 | 41780 | as_myself= |
3dd30495 | 41781 | case $0 in #(( |
47964710 VS |
41782 | *[\\/]* ) as_myself=$0 ;; |
41783 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41784 | for as_dir in $PATH | |
41785 | do | |
41786 | IFS=$as_save_IFS | |
41787 | test -z "$as_dir" && as_dir=. | |
3dd30495 VZ |
41788 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
41789 | done | |
47964710 VS |
41790 | IFS=$as_save_IFS |
41791 | ||
41792 | ;; | |
41793 | esac | |
41794 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
41795 | # in which case we are not to be found in the path. | |
41796 | if test "x$as_myself" = x; then | |
41797 | as_myself=$0 | |
41798 | fi | |
41799 | if test ! -f "$as_myself"; then | |
3dd30495 VZ |
41800 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
41801 | exit 1 | |
47964710 VS |
41802 | fi |
41803 | ||
3dd30495 VZ |
41804 | # Unset variables that we do not need and which cause bugs (e.g. in |
41805 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
41806 | # suppresses any "Segmentation fault" message there. '((' could | |
41807 | # trigger a bug in pdksh 5.2.14. | |
41808 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
41809 | do eval test x\${$as_var+set} = xset \ | |
41810 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
47964710 | 41811 | done |
a848cd7e SC |
41812 | PS1='$ ' |
41813 | PS2='> ' | |
41814 | PS4='+ ' | |
41815 | ||
41816 | # NLS nuisances. | |
3dd30495 VZ |
41817 | LC_ALL=C |
41818 | export LC_ALL | |
41819 | LANGUAGE=C | |
41820 | export LANGUAGE | |
41821 | ||
41822 | # CDPATH. | |
41823 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
41824 | ||
41825 | ||
41826 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
41827 | # ---------------------------------------- | |
41828 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
41829 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
41830 | # script with STATUS, using 1 if that was 0. | |
41831 | as_fn_error () | |
41832 | { | |
41833 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
41834 | if test "$4"; then | |
41835 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
41836 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
d589327a | 41837 | fi |
3dd30495 VZ |
41838 | $as_echo "$as_me: error: $2" >&2 |
41839 | as_fn_exit $as_status | |
41840 | } # as_fn_error | |
41841 | ||
41842 | ||
41843 | # as_fn_set_status STATUS | |
41844 | # ----------------------- | |
41845 | # Set $? to STATUS, without forking. | |
41846 | as_fn_set_status () | |
41847 | { | |
41848 | return $1 | |
41849 | } # as_fn_set_status | |
41850 | ||
41851 | # as_fn_exit STATUS | |
41852 | # ----------------- | |
41853 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
41854 | as_fn_exit () | |
41855 | { | |
41856 | set +e | |
41857 | as_fn_set_status $1 | |
41858 | exit $1 | |
41859 | } # as_fn_exit | |
41860 | ||
41861 | # as_fn_unset VAR | |
41862 | # --------------- | |
41863 | # Portably unset VAR. | |
41864 | as_fn_unset () | |
41865 | { | |
41866 | { eval $1=; unset $1;} | |
41867 | } | |
41868 | as_unset=as_fn_unset | |
41869 | # as_fn_append VAR VALUE | |
41870 | # ---------------------- | |
41871 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
41872 | # advantage of any shell optimizations that allow amortized linear growth over | |
41873 | # repeated appends, instead of the typical quadratic growth present in naive | |
41874 | # implementations. | |
41875 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
41876 | eval 'as_fn_append () | |
41877 | { | |
41878 | eval $1+=\$2 | |
41879 | }' | |
41880 | else | |
41881 | as_fn_append () | |
41882 | { | |
41883 | eval $1=\$$1\$2 | |
41884 | } | |
41885 | fi # as_fn_append | |
41886 | ||
41887 | # as_fn_arith ARG... | |
41888 | # ------------------ | |
41889 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
41890 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
41891 | # must be portable across $(()) and expr. | |
41892 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
41893 | eval 'as_fn_arith () | |
41894 | { | |
41895 | as_val=$(( $* )) | |
41896 | }' | |
41897 | else | |
41898 | as_fn_arith () | |
41899 | { | |
41900 | as_val=`expr "$@" || test $? -eq 1` | |
41901 | } | |
41902 | fi # as_fn_arith | |
41903 | ||
a848cd7e | 41904 | |
47964710 VS |
41905 | if expr a : '\(a\)' >/dev/null 2>&1 && |
41906 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
a848cd7e SC |
41907 | as_expr=expr |
41908 | else | |
41909 | as_expr=false | |
41910 | fi | |
41911 | ||
47964710 | 41912 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
a848cd7e SC |
41913 | as_basename=basename |
41914 | else | |
41915 | as_basename=false | |
41916 | fi | |
41917 | ||
3dd30495 VZ |
41918 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
41919 | as_dirname=dirname | |
41920 | else | |
41921 | as_dirname=false | |
41922 | fi | |
a848cd7e | 41923 | |
47964710 | 41924 | as_me=`$as_basename -- "$0" || |
a848cd7e SC |
41925 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
41926 | X"$0" : 'X\(//\)$' \| \ | |
47964710 | 41927 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
3dd30495 | 41928 | $as_echo X/"$0" | |
47964710 VS |
41929 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
41930 | s//\1/ | |
41931 | q | |
41932 | } | |
41933 | /^X\/\(\/\/\)$/{ | |
41934 | s//\1/ | |
41935 | q | |
41936 | } | |
41937 | /^X\/\(\/\).*/{ | |
41938 | s//\1/ | |
41939 | q | |
41940 | } | |
41941 | s/.*/./; q'` | |
bd8a7646 | 41942 | |
3dd30495 VZ |
41943 | # Avoid depending upon Character Ranges. |
41944 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
41945 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
41946 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
41947 | as_cr_digits='0123456789' | |
41948 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
47964710 VS |
41949 | |
41950 | ECHO_C= ECHO_N= ECHO_T= | |
3dd30495 | 41951 | case `echo -n x` in #((((( |
47964710 | 41952 | -n*) |
3dd30495 | 41953 | case `echo 'xy\c'` in |
47964710 | 41954 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
3dd30495 VZ |
41955 | xy) ECHO_C='\c';; |
41956 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
41957 | ECHO_T=' ';; | |
47964710 VS |
41958 | esac;; |
41959 | *) | |
41960 | ECHO_N='-n';; | |
a848cd7e | 41961 | esac |
d589327a | 41962 | |
a848cd7e | 41963 | rm -f conf$$ conf$$.exe conf$$.file |
47964710 VS |
41964 | if test -d conf$$.dir; then |
41965 | rm -f conf$$.dir/conf$$.file | |
41966 | else | |
41967 | rm -f conf$$.dir | |
3dd30495 VZ |
41968 | mkdir conf$$.dir 2>/dev/null |
41969 | fi | |
41970 | if (echo >conf$$.file) 2>/dev/null; then | |
41971 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
41972 | as_ln_s='ln -s' | |
41973 | # ... but there are two gotchas: | |
41974 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
41975 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
eff9d7f5 | 41976 | # In both cases, we have to default to `cp -pR'. |
3dd30495 | 41977 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
eff9d7f5 | 41978 | as_ln_s='cp -pR' |
3dd30495 VZ |
41979 | elif ln conf$$.file conf$$ 2>/dev/null; then |
41980 | as_ln_s=ln | |
41981 | else | |
eff9d7f5 | 41982 | as_ln_s='cp -pR' |
3dd30495 | 41983 | fi |
a848cd7e | 41984 | else |
eff9d7f5 | 41985 | as_ln_s='cp -pR' |
a848cd7e | 41986 | fi |
47964710 VS |
41987 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
41988 | rmdir conf$$.dir 2>/dev/null | |
a848cd7e | 41989 | |
3dd30495 VZ |
41990 | |
41991 | # as_fn_mkdir_p | |
41992 | # ------------- | |
41993 | # Create "$as_dir" as a directory, including parents if necessary. | |
41994 | as_fn_mkdir_p () | |
41995 | { | |
41996 | ||
41997 | case $as_dir in #( | |
41998 | -*) as_dir=./$as_dir;; | |
41999 | esac | |
42000 | test -d "$as_dir" || eval $as_mkdir_p || { | |
42001 | as_dirs= | |
42002 | while :; do | |
42003 | case $as_dir in #( | |
42004 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
42005 | *) as_qdir=$as_dir;; | |
42006 | esac | |
42007 | as_dirs="'$as_qdir' $as_dirs" | |
42008 | as_dir=`$as_dirname -- "$as_dir" || | |
42009 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
42010 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
42011 | X"$as_dir" : 'X\(//\)$' \| \ | |
42012 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
42013 | $as_echo X"$as_dir" | | |
42014 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
42015 | s//\1/ | |
42016 | q | |
42017 | } | |
42018 | /^X\(\/\/\)[^/].*/{ | |
42019 | s//\1/ | |
42020 | q | |
42021 | } | |
42022 | /^X\(\/\/\)$/{ | |
42023 | s//\1/ | |
42024 | q | |
42025 | } | |
42026 | /^X\(\/\).*/{ | |
42027 | s//\1/ | |
42028 | q | |
42029 | } | |
42030 | s/.*/./; q'` | |
42031 | test -d "$as_dir" && break | |
42032 | done | |
42033 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
42034 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
42035 | ||
42036 | ||
42037 | } # as_fn_mkdir_p | |
a848cd7e | 42038 | if mkdir -p . 2>/dev/null; then |
3dd30495 | 42039 | as_mkdir_p='mkdir -p "$as_dir"' |
a848cd7e | 42040 | else |
ac1cb8d3 | 42041 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
42042 | as_mkdir_p=false |
42043 | fi | |
42044 | ||
eff9d7f5 VZ |
42045 | |
42046 | # as_fn_executable_p FILE | |
42047 | # ----------------------- | |
42048 | # Test if FILE is an executable regular file. | |
42049 | as_fn_executable_p () | |
42050 | { | |
42051 | test -f "$1" && test -x "$1" | |
42052 | } # as_fn_executable_p | |
42053 | as_test_x='test -x' | |
42054 | as_executable_p=as_fn_executable_p | |
a848cd7e SC |
42055 | |
42056 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 42057 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42058 | |
42059 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 42060 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
42061 | |
42062 | ||
a848cd7e | 42063 | exec 6>&1 |
3dd30495 VZ |
42064 | ## ----------------------------------- ## |
42065 | ## Main body of $CONFIG_STATUS script. ## | |
42066 | ## ----------------------------------- ## | |
42067 | _ASEOF | |
42068 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
a848cd7e | 42069 | |
3dd30495 VZ |
42070 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42071 | # Save the log message, to keep $0 and so on meaningful, and to | |
a848cd7e | 42072 | # report actual input values of CONFIG_FILES etc. instead of their |
47964710 VS |
42073 | # values after options handling. |
42074 | ac_log=" | |
9b1e7719 | 42075 | This file was extended by wxWidgets $as_me 2.9.5, which was |
eff9d7f5 | 42076 | generated by GNU Autoconf 2.69. Invocation command line was |
a848cd7e SC |
42077 | |
42078 | CONFIG_FILES = $CONFIG_FILES | |
42079 | CONFIG_HEADERS = $CONFIG_HEADERS | |
42080 | CONFIG_LINKS = $CONFIG_LINKS | |
42081 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
42082 | $ $0 $@ | |
42083 | ||
47964710 VS |
42084 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
42085 | " | |
42086 | ||
a848cd7e SC |
42087 | _ACEOF |
42088 | ||
3dd30495 VZ |
42089 | case $ac_config_files in *" |
42090 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
42091 | esac | |
42092 | ||
42093 | case $ac_config_headers in *" | |
42094 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
42095 | esac | |
42096 | ||
42097 | ||
42098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
a848cd7e | 42099 | # Files that config.status was made for. |
47964710 VS |
42100 | config_files="$ac_config_files" |
42101 | config_headers="$ac_config_headers" | |
42102 | config_commands="$ac_config_commands" | |
bd8a7646 | 42103 | |
47964710 | 42104 | _ACEOF |
a848cd7e | 42105 | |
3dd30495 | 42106 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a848cd7e | 42107 | ac_cs_usage="\ |
3dd30495 VZ |
42108 | \`$as_me' instantiates files and other configuration actions |
42109 | from templates according to the current configuration. Unless the files | |
42110 | and actions are specified as TAGs, all are instantiated by default. | |
a848cd7e | 42111 | |
3dd30495 | 42112 | Usage: $0 [OPTION]... [TAG]... |
a848cd7e SC |
42113 | |
42114 | -h, --help print this help, then exit | |
47964710 | 42115 | -V, --version print version number and configuration settings, then exit |
3dd30495 VZ |
42116 | --config print configuration, then exit |
42117 | -q, --quiet, --silent | |
42118 | do not print progress messages | |
a848cd7e SC |
42119 | -d, --debug don't remove temporary files |
42120 | --recheck update $as_me by reconfiguring in the same conditions | |
3dd30495 VZ |
42121 | --file=FILE[:TEMPLATE] |
42122 | instantiate the configuration file FILE | |
42123 | --header=FILE[:TEMPLATE] | |
42124 | instantiate the configuration header FILE | |
a848cd7e SC |
42125 | |
42126 | Configuration files: | |
42127 | $config_files | |
42128 | ||
42129 | Configuration headers: | |
42130 | $config_headers | |
42131 | ||
42132 | Configuration commands: | |
42133 | $config_commands | |
42134 | ||
3dd30495 | 42135 | Report bugs to <wx-dev@lists.wxwidgets.org>." |
bd8a7646 | 42136 | |
47964710 | 42137 | _ACEOF |
3dd30495 VZ |
42138 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42139 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
a848cd7e | 42140 | ac_cs_version="\\ |
9b1e7719 | 42141 | wxWidgets config.status 2.9.5 |
eff9d7f5 | 42142 | configured by $0, generated by GNU Autoconf 2.69, |
3dd30495 | 42143 | with options \\"\$ac_cs_config\\" |
a848cd7e | 42144 | |
eff9d7f5 | 42145 | Copyright (C) 2012 Free Software Foundation, Inc. |
a848cd7e SC |
42146 | This config.status script is free software; the Free Software Foundation |
42147 | gives unlimited permission to copy, distribute and modify it." | |
47964710 VS |
42148 | |
42149 | ac_pwd='$ac_pwd' | |
42150 | srcdir='$srcdir' | |
42151 | INSTALL='$INSTALL' | |
3dd30495 | 42152 | test -n "\$AWK" || AWK=awk |
a848cd7e SC |
42153 | _ACEOF |
42154 | ||
3dd30495 VZ |
42155 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42156 | # The default lists apply if the user does not specify any file. | |
a848cd7e SC |
42157 | ac_need_defaults=: |
42158 | while test $# != 0 | |
42159 | do | |
42160 | case $1 in | |
3dd30495 | 42161 | --*=?*) |
47964710 VS |
42162 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
42163 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
a848cd7e SC |
42164 | ac_shift=: |
42165 | ;; | |
3dd30495 VZ |
42166 | --*=) |
42167 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
42168 | ac_optarg= | |
42169 | ac_shift=: | |
42170 | ;; | |
47964710 | 42171 | *) |
a848cd7e SC |
42172 | ac_option=$1 |
42173 | ac_optarg=$2 | |
42174 | ac_shift=shift | |
42175 | ;; | |
a848cd7e SC |
42176 | esac |
42177 | ||
42178 | case $ac_option in | |
42179 | # Handling of the options. | |
a848cd7e SC |
42180 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
42181 | ac_cs_recheck=: ;; | |
47964710 | 42182 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
3dd30495 VZ |
42183 | $as_echo "$ac_cs_version"; exit ;; |
42184 | --config | --confi | --conf | --con | --co | --c ) | |
42185 | $as_echo "$ac_cs_config"; exit ;; | |
47964710 | 42186 | --debug | --debu | --deb | --de | --d | -d ) |
a848cd7e SC |
42187 | debug=: ;; |
42188 | --file | --fil | --fi | --f ) | |
42189 | $ac_shift | |
3dd30495 VZ |
42190 | case $ac_optarg in |
42191 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42192 | '') as_fn_error $? "missing file argument" ;; | |
42193 | esac | |
42194 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
a848cd7e SC |
42195 | ac_need_defaults=false;; |
42196 | --header | --heade | --head | --hea ) | |
42197 | $ac_shift | |
3dd30495 VZ |
42198 | case $ac_optarg in |
42199 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
42200 | esac | |
42201 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
a848cd7e | 42202 | ac_need_defaults=false;; |
47964710 VS |
42203 | --he | --h) |
42204 | # Conflict between --help and --header | |
3dd30495 VZ |
42205 | as_fn_error $? "ambiguous option: \`$1' |
42206 | Try \`$0 --help' for more information.";; | |
47964710 | 42207 | --help | --hel | -h ) |
3dd30495 | 42208 | $as_echo "$ac_cs_usage"; exit ;; |
a848cd7e SC |
42209 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
42210 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
42211 | ac_cs_silent=: ;; | |
42212 | ||
42213 | # This is an error. | |
3dd30495 VZ |
42214 | -*) as_fn_error $? "unrecognized option: \`$1' |
42215 | Try \`$0 --help' for more information." ;; | |
a848cd7e | 42216 | |
3dd30495 | 42217 | *) as_fn_append ac_config_targets " $1" |
47964710 | 42218 | ac_need_defaults=false ;; |
a848cd7e SC |
42219 | |
42220 | esac | |
42221 | shift | |
42222 | done | |
42223 | ||
42224 | ac_configure_extra_args= | |
42225 | ||
42226 | if $ac_cs_silent; then | |
42227 | exec 6>/dev/null | |
42228 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
42229 | fi | |
42230 | ||
42231 | _ACEOF | |
3dd30495 | 42232 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
a848cd7e | 42233 | if \$ac_cs_recheck; then |
eff9d7f5 | 42234 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
3dd30495 VZ |
42235 | shift |
42236 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
42237 | CONFIG_SHELL='$SHELL' | |
47964710 | 42238 | export CONFIG_SHELL |
3dd30495 | 42239 | exec "\$@" |
a848cd7e SC |
42240 | fi |
42241 | ||
42242 | _ACEOF | |
3dd30495 | 42243 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
47964710 VS |
42244 | exec 5>>config.log |
42245 | { | |
42246 | echo | |
42247 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
42248 | ## Running $as_me. ## | |
42249 | _ASBOX | |
3dd30495 | 42250 | $as_echo "$ac_log" |
47964710 | 42251 | } >&5 |
a848cd7e | 42252 | |
47964710 | 42253 | _ACEOF |
3dd30495 | 42254 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
a848cd7e | 42255 | # |
47964710 | 42256 | # INIT-COMMANDS |
a848cd7e SC |
42257 | # |
42258 | ||
5c60e845 MW |
42259 | CPP="$CPP" |
42260 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
42261 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
42262 | ||
42263 | ||
ceec2216 RL |
42264 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
42265 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42266 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
42267 | LN_S="${LN_S}" | |
a848cd7e SC |
42268 | |
42269 | ||
42270 | _ACEOF | |
42271 | ||
3dd30495 | 42272 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
47964710 VS |
42273 | |
42274 | # Handling of arguments. | |
a848cd7e SC |
42275 | for ac_config_target in $ac_config_targets |
42276 | do | |
47964710 VS |
42277 | case $ac_config_target in |
42278 | "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;; | |
42279 | "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; | |
42280 | "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; | |
42281 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
2f46438b | 42282 | "utils/ifacecheck/rungccxml.sh") CONFIG_FILES="$CONFIG_FILES utils/ifacecheck/rungccxml.sh" ;; |
47964710 VS |
42283 | "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;; |
42284 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
42285 | "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; | |
42286 | "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
42287 | ||
eff9d7f5 | 42288 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
a848cd7e SC |
42289 | esac |
42290 | done | |
42291 | ||
47964710 | 42292 | |
a848cd7e SC |
42293 | # If the user did not use the arguments to specify the items to instantiate, |
42294 | # then the envvar interface is used. Set only those that are not. | |
42295 | # We use the long form for the default assignment because of an extremely | |
42296 | # bizarre bug on SunOS 4.1.3. | |
42297 | if $ac_need_defaults; then | |
42298 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
42299 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
42300 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
42301 | fi | |
42302 | ||
42303 | # Have a temporary directory for convenience. Make it in the build tree | |
47964710 | 42304 | # simply because there is no reason against having it here, and in addition, |
a848cd7e | 42305 | # creating and moving files from /tmp can sometimes cause problems. |
47964710 VS |
42306 | # Hook for its removal unless debugging. |
42307 | # Note that there is a small window in which the directory will not be cleaned: | |
42308 | # after its creation but before its name has been assigned to `$tmp'. | |
a848cd7e SC |
42309 | $debug || |
42310 | { | |
eff9d7f5 | 42311 | tmp= ac_tmp= |
47964710 | 42312 | trap 'exit_status=$? |
eff9d7f5 VZ |
42313 | : "${ac_tmp:=$tmp}" |
42314 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
47964710 | 42315 | ' 0 |
3dd30495 | 42316 | trap 'as_fn_exit 1' 1 2 13 15 |
a848cd7e | 42317 | } |
a848cd7e SC |
42318 | # Create a (secure) tmp directory for tmp files. |
42319 | ||
42320 | { | |
47964710 | 42321 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
eff9d7f5 | 42322 | test -d "$tmp" |
a848cd7e SC |
42323 | } || |
42324 | { | |
47964710 VS |
42325 | tmp=./conf$$-$RANDOM |
42326 | (umask 077 && mkdir "$tmp") | |
3dd30495 | 42327 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
eff9d7f5 | 42328 | ac_tmp=$tmp |
d589327a | 42329 | |
3dd30495 VZ |
42330 | # Set up the scripts for CONFIG_FILES section. |
42331 | # No need to generate them if there are no CONFIG_FILES. | |
42332 | # This happens for instance with `./config.status config.h'. | |
47964710 VS |
42333 | if test -n "$CONFIG_FILES"; then |
42334 | ||
d589327a | 42335 | |
3dd30495 VZ |
42336 | ac_cr=`echo X | tr X '\015'` |
42337 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
42338 | # But we know of no other shell where ac_cr would be empty at this | |
42339 | # point, so we can use a bashism as a fallback. | |
42340 | if test "x$ac_cr" = x; then | |
42341 | eval ac_cr=\$\'\\r\' | |
47964710 | 42342 | fi |
3dd30495 VZ |
42343 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
42344 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
42345 | ac_cs_awk_cr='\\r' | |
42346 | else | |
42347 | ac_cs_awk_cr=$ac_cr | |
d589327a VZ |
42348 | fi |
42349 | ||
eff9d7f5 | 42350 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d589327a VZ |
42351 | _ACEOF |
42352 | ||
42353 | ||
3dd30495 VZ |
42354 | { |
42355 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
42356 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
42357 | echo "_ACEOF" | |
42358 | } >conf$$subs.sh || | |
42359 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
42360 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
47964710 VS |
42361 | ac_delim='%!_!# ' |
42362 | for ac_last_try in false false false false false :; do | |
3dd30495 VZ |
42363 | . ./conf$$subs.sh || |
42364 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
42365 | ||
42366 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
42367 | if test $ac_delim_n = $ac_delim_num; then | |
d589327a VZ |
42368 | break |
42369 | elif $ac_last_try; then | |
3dd30495 | 42370 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d589327a VZ |
42371 | else |
42372 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
42373 | fi | |
42374 | done | |
3dd30495 VZ |
42375 | rm -f conf$$subs.sh |
42376 | ||
42377 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
eff9d7f5 | 42378 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
3dd30495 VZ |
42379 | _ACEOF |
42380 | sed -n ' | |
42381 | h | |
42382 | s/^/S["/; s/!.*/"]=/ | |
42383 | p | |
42384 | g | |
42385 | s/^[^!]*!// | |
42386 | :repl | |
42387 | t repl | |
42388 | s/'"$ac_delim"'$// | |
42389 | t delim | |
42390 | :nl | |
42391 | h | |
42392 | s/\(.\{148\}\)..*/\1/ | |
42393 | t more1 | |
42394 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
42395 | p | |
42396 | n | |
42397 | b repl | |
42398 | :more1 | |
42399 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
42400 | p | |
42401 | g | |
42402 | s/.\{148\}// | |
42403 | t nl | |
42404 | :delim | |
42405 | h | |
42406 | s/\(.\{148\}\)..*/\1/ | |
42407 | t more2 | |
42408 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
42409 | p | |
42410 | b | |
42411 | :more2 | |
42412 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
42413 | p | |
42414 | g | |
42415 | s/.\{148\}// | |
42416 | t delim | |
42417 | ' <conf$$subs.awk | sed ' | |
42418 | /^[^""]/{ | |
42419 | N | |
42420 | s/\n// | |
42421 | } | |
42422 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
42423 | rm -f conf$$subs.awk | |
42424 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
42425 | _ACAWK | |
eff9d7f5 | 42426 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
3dd30495 VZ |
42427 | for (key in S) S_is_set[key] = 1 |
42428 | FS = "\a" | |
42429 | ||
42430 | } | |
42431 | { | |
42432 | line = $ 0 | |
42433 | nfields = split(line, field, "@") | |
42434 | substed = 0 | |
42435 | len = length(field[1]) | |
42436 | for (i = 2; i < nfields; i++) { | |
42437 | key = field[i] | |
42438 | keylen = length(key) | |
42439 | if (S_is_set[key]) { | |
42440 | value = S[key] | |
42441 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
42442 | len += length(value) + length(field[++i]) | |
42443 | substed = 1 | |
42444 | } else | |
42445 | len += 1 + keylen | |
42446 | } | |
47964710 | 42447 | |
3dd30495 VZ |
42448 | print line |
42449 | } | |
d589327a | 42450 | |
3dd30495 | 42451 | _ACAWK |
d589327a | 42452 | _ACEOF |
3dd30495 VZ |
42453 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42454 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
42455 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
42456 | else | |
42457 | cat | |
eff9d7f5 | 42458 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
3dd30495 | 42459 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
d589327a VZ |
42460 | _ACEOF |
42461 | ||
3dd30495 VZ |
42462 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
42463 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
42464 | # trailing colons and then remove the whole line if VPATH becomes empty | |
42465 | # (actually we leave an empty line to preserve line numbers). | |
42466 | if test "x$srcdir" = x.; then | |
42467 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
42468 | h | |
42469 | s/// | |
42470 | s/^/:/ | |
42471 | s/[ ]*$/:/ | |
42472 | s/:\$(srcdir):/:/g | |
42473 | s/:\${srcdir}:/:/g | |
42474 | s/:@srcdir@:/:/g | |
42475 | s/^:*// | |
42476 | s/:*$// | |
42477 | x | |
42478 | s/\(=[ ]*\).*/\1/ | |
42479 | G | |
42480 | s/\n// | |
42481 | s/^[^=]*=[ ]*$// | |
42482 | }' | |
d589327a | 42483 | fi |
88262190 | 42484 | |
3dd30495 VZ |
42485 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42486 | fi # test -n "$CONFIG_FILES" | |
42487 | ||
42488 | # Set up the scripts for CONFIG_HEADERS section. | |
42489 | # No need to generate them if there are no CONFIG_HEADERS. | |
42490 | # This happens for instance with `./config.status Makefile'. | |
42491 | if test -n "$CONFIG_HEADERS"; then | |
eff9d7f5 | 42492 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
3dd30495 | 42493 | BEGIN { |
d589327a VZ |
42494 | _ACEOF |
42495 | ||
3dd30495 VZ |
42496 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
42497 | # here-document in config.status, that substitutes the proper values into | |
42498 | # config.h.in to produce config.h. | |
d589327a | 42499 | |
3dd30495 VZ |
42500 | # Create a delimiter string that does not exist in confdefs.h, to ease |
42501 | # handling of long lines. | |
d589327a | 42502 | ac_delim='%!_!# ' |
3dd30495 | 42503 | for ac_last_try in false false :; do |
eff9d7f5 VZ |
42504 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
42505 | if test -z "$ac_tt"; then | |
d589327a VZ |
42506 | break |
42507 | elif $ac_last_try; then | |
3dd30495 | 42508 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
d589327a VZ |
42509 | else |
42510 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
42511 | fi | |
42512 | done | |
42513 | ||
3dd30495 VZ |
42514 | # For the awk script, D is an array of macro values keyed by name, |
42515 | # likewise P contains macro parameters if any. Preserve backslash | |
42516 | # newline sequences. | |
d589327a | 42517 | |
3dd30495 VZ |
42518 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
42519 | sed -n ' | |
42520 | s/.\{148\}/&'"$ac_delim"'/g | |
42521 | t rset | |
42522 | :rset | |
42523 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
42524 | t def | |
42525 | d | |
42526 | :def | |
42527 | s/\\$// | |
42528 | t bsnl | |
42529 | s/["\\]/\\&/g | |
42530 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
42531 | D["\1"]=" \3"/p | |
42532 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
42533 | d | |
42534 | :bsnl | |
42535 | s/["\\]/\\&/g | |
42536 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
42537 | D["\1"]=" \3\\\\\\n"\\/p | |
42538 | t cont | |
42539 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
42540 | t cont | |
42541 | d | |
42542 | :cont | |
42543 | n | |
42544 | s/.\{148\}/&'"$ac_delim"'/g | |
42545 | t clear | |
42546 | :clear | |
42547 | s/\\$// | |
42548 | t bsnlc | |
42549 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
42550 | d | |
42551 | :bsnlc | |
42552 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
42553 | b cont | |
42554 | ' <confdefs.h | sed ' | |
42555 | s/'"$ac_delim"'/"\\\ | |
42556 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
42557 | ||
42558 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
42559 | for (key in D) D_is_set[key] = 1 | |
42560 | FS = "\a" | |
42561 | } | |
42562 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
42563 | line = \$ 0 | |
42564 | split(line, arg, " ") | |
42565 | if (arg[1] == "#") { | |
42566 | defundef = arg[2] | |
42567 | mac1 = arg[3] | |
42568 | } else { | |
42569 | defundef = substr(arg[1], 2) | |
42570 | mac1 = arg[2] | |
42571 | } | |
42572 | split(mac1, mac2, "(") #) | |
42573 | macro = mac2[1] | |
42574 | prefix = substr(line, 1, index(line, defundef) - 1) | |
42575 | if (D_is_set[macro]) { | |
42576 | # Preserve the white space surrounding the "#". | |
42577 | print prefix "define", macro P[macro] D[macro] | |
42578 | next | |
42579 | } else { | |
42580 | # Replace #undef with comments. This is necessary, for example, | |
42581 | # in the case of _POSIX_SOURCE, which is predefined and required | |
42582 | # on some systems where configure will not decide to define it. | |
42583 | if (defundef == "undef") { | |
42584 | print "/*", prefix defundef, macro, "*/" | |
42585 | next | |
42586 | } | |
42587 | } | |
42588 | } | |
42589 | { print } | |
42590 | _ACAWK | |
47964710 | 42591 | _ACEOF |
3dd30495 VZ |
42592 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
42593 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
42594 | fi # test -n "$CONFIG_HEADERS" | |
47964710 | 42595 | |
d589327a | 42596 | |
3dd30495 VZ |
42597 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
42598 | shift | |
42599 | for ac_tag | |
47964710 VS |
42600 | do |
42601 | case $ac_tag in | |
42602 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
a848cd7e | 42603 | esac |
47964710 VS |
42604 | case $ac_mode$ac_tag in |
42605 | :[FHL]*:*);; | |
eff9d7f5 | 42606 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
47964710 VS |
42607 | :[FH]-) ac_tag=-:-;; |
42608 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
42609 | esac | |
42610 | ac_save_IFS=$IFS | |
42611 | IFS=: | |
42612 | set x $ac_tag | |
42613 | IFS=$ac_save_IFS | |
42614 | shift | |
42615 | ac_file=$1 | |
42616 | shift | |
a848cd7e | 42617 | |
47964710 VS |
42618 | case $ac_mode in |
42619 | :L) ac_source=$1;; | |
42620 | :[FH]) | |
42621 | ac_file_inputs= | |
42622 | for ac_f | |
42623 | do | |
42624 | case $ac_f in | |
eff9d7f5 | 42625 | -) ac_f="$ac_tmp/stdin";; |
47964710 VS |
42626 | *) # Look for the file first in the build tree, then in the source tree |
42627 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
42628 | # because $ac_f cannot contain `:'. | |
42629 | test -f "$ac_f" || | |
42630 | case $ac_f in | |
42631 | [\\/$]*) false;; | |
42632 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
42633 | esac || | |
eff9d7f5 | 42634 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
47964710 | 42635 | esac |
3dd30495 VZ |
42636 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
42637 | as_fn_append ac_file_inputs " '$ac_f'" | |
47964710 VS |
42638 | done |
42639 | ||
42640 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
42641 | # use $as_me), people would be surprised to read: | |
42642 | # /* config.h. Generated by config.status. */ | |
3dd30495 VZ |
42643 | configure_input='Generated from '` |
42644 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
42645 | `' by configure.' | |
47964710 VS |
42646 | if test x"$ac_file" != x-; then |
42647 | configure_input="$ac_file. $configure_input" | |
3dd30495 VZ |
42648 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
42649 | $as_echo "$as_me: creating $ac_file" >&6;} | |
42650 | fi | |
42651 | # Neutralize special characters interpreted by sed in replacement strings. | |
42652 | case $configure_input in #( | |
42653 | *\&* | *\|* | *\\* ) | |
42654 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
42655 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
42656 | *) ac_sed_conf_input=$configure_input;; | |
42657 | esac | |
47964710 VS |
42658 | |
42659 | case $ac_tag in | |
eff9d7f5 VZ |
42660 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
42661 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
47964710 VS |
42662 | esac |
42663 | ;; | |
42664 | esac | |
42665 | ||
42666 | ac_dir=`$as_dirname -- "$ac_file" || | |
a848cd7e | 42667 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
ac1cb8d3 VS |
42668 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
42669 | X"$ac_file" : 'X\(//\)$' \| \ | |
47964710 | 42670 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
3dd30495 | 42671 | $as_echo X"$ac_file" | |
47964710 VS |
42672 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
42673 | s//\1/ | |
42674 | q | |
42675 | } | |
42676 | /^X\(\/\/\)[^/].*/{ | |
42677 | s//\1/ | |
42678 | q | |
42679 | } | |
42680 | /^X\(\/\/\)$/{ | |
42681 | s//\1/ | |
42682 | q | |
42683 | } | |
42684 | /^X\(\/\).*/{ | |
42685 | s//\1/ | |
42686 | q | |
42687 | } | |
42688 | s/.*/./; q'` | |
3dd30495 | 42689 | as_dir="$ac_dir"; as_fn_mkdir_p |
a848cd7e SC |
42690 | ac_builddir=. |
42691 | ||
47964710 VS |
42692 | case "$ac_dir" in |
42693 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
42694 | *) | |
3dd30495 | 42695 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
47964710 | 42696 | # A ".." for each directory in $ac_dir_suffix. |
3dd30495 | 42697 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
47964710 VS |
42698 | case $ac_top_builddir_sub in |
42699 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
42700 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
42701 | esac ;; | |
42702 | esac | |
42703 | ac_abs_top_builddir=$ac_pwd | |
42704 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
42705 | # for backward compatibility: | |
42706 | ac_top_builddir=$ac_top_build_prefix | |
a848cd7e SC |
42707 | |
42708 | case $srcdir in | |
47964710 | 42709 | .) # We are building in place. |
a848cd7e | 42710 | ac_srcdir=. |
47964710 VS |
42711 | ac_top_srcdir=$ac_top_builddir_sub |
42712 | ac_abs_top_srcdir=$ac_pwd ;; | |
42713 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a848cd7e | 42714 | ac_srcdir=$srcdir$ac_dir_suffix; |
47964710 VS |
42715 | ac_top_srcdir=$srcdir |
42716 | ac_abs_top_srcdir=$srcdir ;; | |
42717 | *) # Relative name. | |
42718 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
42719 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
42720 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
a848cd7e | 42721 | esac |
47964710 | 42722 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
ac1cb8d3 | 42723 | |
a848cd7e | 42724 | |
47964710 VS |
42725 | case $ac_mode in |
42726 | :F) | |
42727 | # | |
42728 | # CONFIG_FILE | |
42729 | # | |
a848cd7e SC |
42730 | |
42731 | case $INSTALL in | |
42732 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
47964710 | 42733 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
a848cd7e | 42734 | esac |
47964710 | 42735 | _ACEOF |
a848cd7e | 42736 | |
3dd30495 | 42737 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
47964710 VS |
42738 | # If the template does not know about datarootdir, expand it. |
42739 | # FIXME: This hack should be removed a few years after 2.60. | |
42740 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
3dd30495 VZ |
42741 | ac_sed_dataroot=' |
42742 | /datarootdir/ { | |
47964710 VS |
42743 | p |
42744 | q | |
42745 | } | |
42746 | /@datadir@/p | |
42747 | /@docdir@/p | |
42748 | /@infodir@/p | |
42749 | /@localedir@/p | |
3dd30495 VZ |
42750 | /@mandir@/p' |
42751 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
47964710 VS |
42752 | *datarootdir*) ac_datarootdir_seen=yes;; |
42753 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
3dd30495 VZ |
42754 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
42755 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
47964710 | 42756 | _ACEOF |
3dd30495 | 42757 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
47964710 VS |
42758 | ac_datarootdir_hack=' |
42759 | s&@datadir@&$datadir&g | |
42760 | s&@docdir@&$docdir&g | |
42761 | s&@infodir@&$infodir&g | |
42762 | s&@localedir@&$localedir&g | |
42763 | s&@mandir@&$mandir&g | |
3dd30495 | 42764 | s&\\\${datarootdir}&$datarootdir&g' ;; |
47964710 | 42765 | esac |
4db03d26 | 42766 | _ACEOF |
47964710 VS |
42767 | |
42768 | # Neutralize VPATH when `$srcdir' = `.'. | |
42769 | # Shell code in configure.ac might set extrasub. | |
42770 | # FIXME: do we really want to maintain this feature? | |
3dd30495 VZ |
42771 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
42772 | ac_sed_extra="$ac_vpsub | |
a848cd7e SC |
42773 | $extrasub |
42774 | _ACEOF | |
3dd30495 | 42775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
a848cd7e SC |
42776 | :t |
42777 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3dd30495 | 42778 | s|@configure_input@|$ac_sed_conf_input|;t t |
47964710 | 42779 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
3dd30495 | 42780 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
47964710 VS |
42781 | s&@srcdir@&$ac_srcdir&;t t |
42782 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
42783 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
42784 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
42785 | s&@builddir@&$ac_builddir&;t t | |
42786 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
42787 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
42788 | s&@INSTALL@&$ac_INSTALL&;t t | |
42789 | $ac_datarootdir_hack | |
3dd30495 | 42790 | " |
eff9d7f5 VZ |
42791 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
42792 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
47964710 VS |
42793 | |
42794 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
eff9d7f5 VZ |
42795 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
42796 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
42797 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
3dd30495 VZ |
42798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
42799 | which seems to be undefined. Please make sure it is defined" >&5 | |
42800 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
42801 | which seems to be undefined. Please make sure it is defined" >&2;} | |
47964710 | 42802 | |
eff9d7f5 | 42803 | rm -f "$ac_tmp/stdin" |
ceec2216 | 42804 | case $ac_file in |
eff9d7f5 VZ |
42805 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
42806 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
3dd30495 VZ |
42807 | esac \ |
42808 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
47964710 VS |
42809 | ;; |
42810 | :H) | |
42811 | # | |
42812 | # CONFIG_HEADER | |
42813 | # | |
a848cd7e | 42814 | if test x"$ac_file" != x-; then |
3dd30495 VZ |
42815 | { |
42816 | $as_echo "/* $configure_input */" \ | |
eff9d7f5 VZ |
42817 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
42818 | } >"$ac_tmp/config.h" \ | |
3dd30495 | 42819 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
eff9d7f5 | 42820 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
3dd30495 VZ |
42821 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
42822 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
a848cd7e | 42823 | else |
3dd30495 | 42824 | rm -f "$ac_file" |
eff9d7f5 | 42825 | mv "$ac_tmp/config.h" "$ac_file" \ |
3dd30495 | 42826 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
a848cd7e SC |
42827 | fi |
42828 | else | |
3dd30495 | 42829 | $as_echo "/* $configure_input */" \ |
eff9d7f5 | 42830 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
3dd30495 | 42831 | || as_fn_error $? "could not create -" "$LINENO" 5 |
a848cd7e | 42832 | fi |
47964710 | 42833 | ;; |
4db03d26 | 42834 | |
3dd30495 VZ |
42835 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
42836 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
47964710 VS |
42837 | ;; |
42838 | esac | |
4db03d26 VZ |
42839 | |
42840 | ||
47964710 VS |
42841 | case $ac_file$ac_mode in |
42842 | "rcdefs.h":C) | |
5c60e845 MW |
42843 | mkdir -p $outdir && |
42844 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
42845 | ;; | |
47964710 VS |
42846 | "lib/wx/config/${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; |
42847 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
2f46438b | 42848 | "utils/ifacecheck/rungccxml.sh":F) chmod +x utils/ifacecheck/rungccxml.sh ;; |
47964710 | 42849 | "wx-config":C) rm -f wx-config |
ceec2216 RL |
42850 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config |
42851 | ;; | |
47964710 | 42852 | |
a848cd7e | 42853 | esac |
47964710 | 42854 | done # for ac_tag |
a848cd7e | 42855 | |
a848cd7e | 42856 | |
3dd30495 | 42857 | as_fn_exit 0 |
a848cd7e | 42858 | _ACEOF |
a848cd7e SC |
42859 | ac_clean_files=$ac_clean_files_save |
42860 | ||
3dd30495 VZ |
42861 | test $ac_write_fail = 0 || |
42862 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
42863 | ||
a848cd7e SC |
42864 | |
42865 | # configure is writing to config.log, and then calls config.status. | |
42866 | # config.status does its own redirection, appending to config.log. | |
42867 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
42868 | # by configure, so config.status won't be able to write to it; its | |
42869 | # output is simply discarded. So we exec the FD to /dev/null, | |
42870 | # effectively closing config.log, so it can be properly (re)opened and | |
42871 | # appended to by config.status. When coming back to configure, we | |
42872 | # need to make the FD available again. | |
42873 | if test "$no_create" != yes; then | |
42874 | ac_cs_success=: | |
42875 | ac_config_status_args= | |
42876 | test "$silent" = yes && | |
42877 | ac_config_status_args="$ac_config_status_args --quiet" | |
42878 | exec 5>/dev/null | |
42879 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
42880 | exec 5>>config.log | |
42881 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
42882 | # would make configure fail if this is the last instruction. | |
3dd30495 | 42883 | $ac_cs_success || as_fn_exit 1 |
a848cd7e SC |
42884 | fi |
42885 | ||
42886 | # | |
42887 | # CONFIG_SUBDIRS section. | |
42888 | # | |
42889 | if test "$no_recursion" != yes; then | |
42890 | ||
3dd30495 VZ |
42891 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
42892 | # so they do not pile up. | |
a848cd7e SC |
42893 | ac_sub_configure_args= |
42894 | ac_prev= | |
47964710 VS |
42895 | eval "set x $ac_configure_args" |
42896 | shift | |
42897 | for ac_arg | |
42898 | do | |
a848cd7e SC |
42899 | if test -n "$ac_prev"; then |
42900 | ac_prev= | |
42901 | continue | |
42902 | fi | |
42903 | case $ac_arg in | |
42904 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
42905 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
42906 | ac_prev=cache_file ;; | |
42907 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
42908 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
42909 | | --c=*) | |
42910 | ;; | |
42911 | --config-cache | -C) | |
42912 | ;; | |
42913 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
42914 | ac_prev=srcdir ;; | |
42915 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
42916 | ;; | |
42917 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
42918 | ac_prev=prefix ;; | |
42919 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
42920 | ;; | |
3dd30495 VZ |
42921 | --disable-option-checking) |
42922 | ;; | |
47964710 VS |
42923 | *) |
42924 | case $ac_arg in | |
3dd30495 | 42925 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
47964710 | 42926 | esac |
3dd30495 | 42927 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
a848cd7e SC |
42928 | esac |
42929 | done | |
42930 | ||
42931 | # Always prepend --prefix to ensure using the same prefix | |
42932 | # in subdir configurations. | |
47964710 VS |
42933 | ac_arg="--prefix=$prefix" |
42934 | case $ac_arg in | |
3dd30495 | 42935 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
47964710 VS |
42936 | esac |
42937 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
42938 | ||
42939 | # Pass --silent | |
42940 | if test "$silent" = yes; then | |
42941 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
42942 | fi | |
a848cd7e | 42943 | |
3dd30495 VZ |
42944 | # Always prepend --disable-option-checking to silence warnings, since |
42945 | # different subdirs can have different --enable and --with options. | |
42946 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
42947 | ||
a848cd7e SC |
42948 | ac_popdir=`pwd` |
42949 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
42950 | ||
42951 | # Do not complain, so a configure script can configure whichever | |
42952 | # parts of a large source tree are present. | |
47964710 VS |
42953 | test -d "$srcdir/$ac_dir" || continue |
42954 | ||
42955 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
3dd30495 VZ |
42956 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
42957 | $as_echo "$ac_msg" >&6 | |
42958 | as_dir="$ac_dir"; as_fn_mkdir_p | |
a848cd7e SC |
42959 | ac_builddir=. |
42960 | ||
47964710 VS |
42961 | case "$ac_dir" in |
42962 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
42963 | *) | |
3dd30495 | 42964 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
47964710 | 42965 | # A ".." for each directory in $ac_dir_suffix. |
3dd30495 | 42966 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
47964710 VS |
42967 | case $ac_top_builddir_sub in |
42968 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
42969 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
42970 | esac ;; | |
42971 | esac | |
42972 | ac_abs_top_builddir=$ac_pwd | |
42973 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
42974 | # for backward compatibility: | |
42975 | ac_top_builddir=$ac_top_build_prefix | |
a848cd7e SC |
42976 | |
42977 | case $srcdir in | |
47964710 | 42978 | .) # We are building in place. |
a848cd7e | 42979 | ac_srcdir=. |
47964710 VS |
42980 | ac_top_srcdir=$ac_top_builddir_sub |
42981 | ac_abs_top_srcdir=$ac_pwd ;; | |
42982 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
a848cd7e | 42983 | ac_srcdir=$srcdir$ac_dir_suffix; |
47964710 VS |
42984 | ac_top_srcdir=$srcdir |
42985 | ac_abs_top_srcdir=$srcdir ;; | |
42986 | *) # Relative name. | |
42987 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
42988 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
42989 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
ac1cb8d3 | 42990 | esac |
47964710 | 42991 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
a848cd7e SC |
42992 | |
42993 | ||
47964710 | 42994 | cd "$ac_dir" |
a848cd7e SC |
42995 | |
42996 | # Check for guested configure; otherwise get Cygnus style configure. | |
47964710 VS |
42997 | if test -f "$ac_srcdir/configure.gnu"; then |
42998 | ac_sub_configure=$ac_srcdir/configure.gnu | |
42999 | elif test -f "$ac_srcdir/configure"; then | |
43000 | ac_sub_configure=$ac_srcdir/configure | |
43001 | elif test -f "$ac_srcdir/configure.in"; then | |
43002 | # This should be Cygnus configure. | |
43003 | ac_sub_configure=$ac_aux_dir/configure | |
a848cd7e | 43004 | else |
3dd30495 VZ |
43005 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
43006 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
a848cd7e SC |
43007 | ac_sub_configure= |
43008 | fi | |
43009 | ||
43010 | # The recursion is here. | |
43011 | if test -n "$ac_sub_configure"; then | |
43012 | # Make the cache file name correct relative to the subdirectory. | |
43013 | case $cache_file in | |
43014 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
47964710 VS |
43015 | *) # Relative name. |
43016 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
a848cd7e SC |
43017 | esac |
43018 | ||
3dd30495 VZ |
43019 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
43020 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
a848cd7e | 43021 | # The eval makes quoting arguments work. |
47964710 VS |
43022 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
43023 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
3dd30495 | 43024 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
a848cd7e SC |
43025 | fi |
43026 | ||
47964710 | 43027 | cd "$ac_popdir" |
a848cd7e SC |
43028 | done |
43029 | fi | |
3dd30495 VZ |
43030 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
43031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
43032 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
43033 | fi | |
a848cd7e SC |
43034 | |
43035 | ||
43036 | echo | |
77ffb593 | 43037 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 43038 | echo "" |
c2e9ada4 | 43039 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}" |
77ffb593 | 43040 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
77ffb593 | 43041 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" |
141fad63 | 43042 | echo $ECHO_N " Should wxWidgets support Unicode? ${wxUSE_UNICODE:-no}$ECHO_C" |
ca4c9b7e | 43043 | if test "$wxUSE_UNICODE" = "yes"; then |
faa5c14f VZ |
43044 | if test "$wxUSE_UNICODE_UTF8" = "yes"; then |
43045 | echo " (using UTF-8)" | |
43046 | else | |
43047 | echo " (using wchar_t)" | |
43048 | fi | |
43049 | else | |
43050 | echo | |
ca4c9b7e | 43051 | fi |
a848cd7e | 43052 | |
77ffb593 | 43053 | echo " What level of wxWidgets compatibility should be enabled?" |
56b1244c | 43054 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-no}" |
abb6edd1 | 43055 | echo " wxWidgets 2.8 ${WXWIN_COMPATIBILITY_2_8:-yes}" |
a848cd7e | 43056 | |
77ffb593 | 43057 | echo " Which libraries should wxWidgets use?" |
8630a814 | 43058 | echo " STL ${wxUSE_STL}" |
a848cd7e SC |
43059 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
43060 | echo " png ${wxUSE_LIBPNG-none}" | |
43061 | echo " regex ${wxUSE_REGEX}" | |
43062 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
43063 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
43064 | echo " xpm ${wxUSE_LIBXPM-none}" | |
43065 | fi | |
43066 | echo " zlib ${wxUSE_ZLIB}" | |
a848cd7e SC |
43067 | echo " expat ${wxUSE_EXPAT}" |
43068 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
43069 | echo " sdl ${wxUSE_LIBSDL}" | |
43070 | ||
43071 | echo "" | |
43072 |