]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
3 | # From configure.in Id: configure.in | |
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
10f2d63a VZ |
36 | |
37 | ||
38 | ||
39 | ||
40 | # Guess values for system-dependent variables and create Makefiles. | |
41 | # Generated automatically using autoconf version 2.13 | |
42 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
43 | # | |
44 | # This configure script is free software; the Free Software Foundation | |
45 | # gives unlimited permission to copy, distribute and modify it. | |
46 | ||
47 | # Defaults: | |
48 | ac_help= | |
49 | ac_default_prefix=/usr/local | |
50 | # Any additions from configure.in: | |
51 | ac_help="$ac_help | |
52 | --enable-gui use GUI classes" | |
53 | ac_help="$ac_help | |
54 | --with-gtk use GTK+" | |
55 | ac_help="$ac_help | |
56 | --with-motif use Motif/Lesstif" | |
57 | ac_help="$ac_help | |
58 | --with-wine use WINE" | |
59 | ac_help="$ac_help | |
60 | --with-cygwin use Cygwin for MS-Windows" | |
61 | ac_help="$ac_help | |
62 | --with-mingw use GCC Minimal MS-Windows" | |
63 | ac_help="$ac_help | |
64 | --with-gtk-prefix=PFX Prefix where GTK is installed" | |
65 | ac_help="$ac_help | |
66 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed" | |
67 | ac_help="$ac_help | |
68 | --with-dmalloc use dmalloc library (www.letters.com/dmalloc)" | |
69 | ac_help="$ac_help | |
70 | --with-zlib use zlib for LZW compression" | |
71 | ac_help="$ac_help | |
72 | --with-libpng use libpng (PNG image format)" | |
73 | ac_help="$ac_help | |
74 | --with-libjpeg use libjpeg (JPEG file format)" | |
75 | ac_help="$ac_help | |
76 | --with-opengl use OpenGL (or Mesa)" | |
77 | ac_help="$ac_help | |
78 | --with-odbc use the IODBC and wxODBC classes" | |
79 | ac_help="$ac_help | |
80 | --enable-shared create shared library code" | |
81 | ac_help="$ac_help | |
82 | --enable-optimise create optimised code" | |
83 | ac_help="$ac_help | |
84 | --enable-debug same as debug_flag and debug_info" | |
85 | ac_help="$ac_help | |
86 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
87 | ac_help="$ac_help | |
88 | --enable-debug_info create code with debugging information" | |
89 | ac_help="$ac_help | |
90 | --enable-debug_gdb create code with extra GDB debugging information" | |
91 | ac_help="$ac_help | |
92 | --enable-debug_cntxt use wxDebugContext" | |
93 | ac_help="$ac_help | |
94 | --enable-mem_tracing create code with memory tracing" | |
95 | ac_help="$ac_help | |
96 | --enable-profile create code with profiling information" | |
97 | ac_help="$ac_help | |
98 | --enable-no_rtti create code without RTTI information" | |
99 | ac_help="$ac_help | |
100 | --enable-no_exceptions create code without exceptions information" | |
101 | ac_help="$ac_help | |
102 | --enable-permissive compile code disregarding strict ANSI" | |
103 | ac_help="$ac_help | |
104 | --enable-no_deps create code without dependency information" | |
105 | ac_help="$ac_help | |
106 | --enable-intl use internationalization system" | |
107 | ac_help="$ac_help | |
108 | --enable-config use wxConfig (and derived) classes" | |
109 | ac_help="$ac_help | |
110 | --enable-sockets use socket/network classes" | |
111 | ac_help="$ac_help | |
112 | --enable-dialupman use dialup network classes" | |
113 | ac_help="$ac_help | |
114 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
115 | ac_help="$ac_help | |
116 | --enable-apple_ieee use the Apple IEEE codec" | |
117 | ac_help="$ac_help | |
118 | --enable-timedate use date/time classes" | |
119 | ac_help="$ac_help | |
120 | --enable-wave use wxWave class" | |
121 | ac_help="$ac_help | |
122 | --enable-fraction use wxFraction class" | |
123 | ac_help="$ac_help | |
124 | --enable-dynlib use wxLibrary class for DLL loading" | |
125 | ac_help="$ac_help | |
126 | --enable-longlong use wxLongLong class" | |
127 | ac_help="$ac_help | |
128 | --enable-log use logging system" | |
129 | ac_help="$ac_help | |
130 | --enable-streams use wxStream etc classes" | |
131 | ac_help="$ac_help | |
132 | --enable-file use wxFile classes" | |
133 | ac_help="$ac_help | |
134 | --enable-textfile use wxTextFile classes" | |
135 | ac_help="$ac_help | |
136 | --enable-unicode compile wxString with Unicode support" | |
137 | ac_help="$ac_help | |
138 | --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs" | |
139 | ac_help="$ac_help | |
140 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
141 | ac_help="$ac_help | |
142 | --enable-joystick compile in joystick support (Linux only)" | |
143 | ac_help="$ac_help | |
144 | --enable-std_iostreams use standard C++ stream classes" | |
145 | ac_help="$ac_help | |
146 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
147 | ac_help="$ac_help | |
148 | --enable-fs_zip use virtual ZIP filesystems" | |
149 | ac_help="$ac_help | |
150 | --enable-zipstream use wxZipInputStream" | |
151 | ac_help="$ac_help | |
152 | --enable-threads use threads" | |
153 | ac_help="$ac_help | |
154 | --enable-serial use class serialization" | |
155 | ac_help="$ac_help | |
156 | --enable-docview use document view architecture" | |
157 | ac_help="$ac_help | |
158 | --enable-help use help (using external browser at present)" | |
159 | ac_help="$ac_help | |
160 | --enable-constraints use layout-constraints system" | |
161 | ac_help="$ac_help | |
162 | --enable-printarch use printing architecture" | |
163 | ac_help="$ac_help | |
164 | --enable-mdi use multiple document interface architecture" | |
165 | ac_help="$ac_help | |
166 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
167 | ac_help="$ac_help | |
168 | --enable-prologio use Prolog IO library" | |
169 | ac_help="$ac_help | |
170 | --enable-resources use wxWindows resources" | |
171 | ac_help="$ac_help | |
172 | --enable-xresources use X resources for save (default for gtk+)" | |
173 | ac_help="$ac_help | |
174 | --enable-clipboard use wxClipboard classes" | |
175 | ac_help="$ac_help | |
176 | --enable-dnd use Drag'n'Drop classes" | |
177 | ac_help="$ac_help | |
178 | --enable-wxtree make wxTree library" | |
179 | ac_help="$ac_help | |
180 | --enable-controls use all usual controls" | |
181 | ac_help="$ac_help | |
182 | --enable-accel use accelerators" | |
183 | ac_help="$ac_help | |
184 | --enable-caret use wxCaret class" | |
185 | ac_help="$ac_help | |
186 | --enable-bmpbutton use wxBitmapButton class" | |
187 | ac_help="$ac_help | |
188 | --enable-checkbox use wxCheckBox class" | |
189 | ac_help="$ac_help | |
190 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
191 | ac_help="$ac_help | |
192 | --enable-choice use wxChoice class" | |
193 | ac_help="$ac_help | |
194 | --enable-combobox use wxComboBox classes" | |
195 | ac_help="$ac_help | |
196 | --enable-gauge use wxGauge class" | |
197 | ac_help="$ac_help | |
198 | --enable-grid use wxGrid class" | |
199 | ac_help="$ac_help | |
200 | --enable-newgrid use new wxGrid class" | |
201 | ac_help="$ac_help | |
202 | --enable-imaglist use wxImageList class" | |
203 | ac_help="$ac_help | |
204 | --enable-listbox use wxListBox class" | |
205 | ac_help="$ac_help | |
206 | --enable-listctrl use wxListCtrl class" | |
207 | ac_help="$ac_help | |
208 | --enable-notebook use wxNotebook class" | |
209 | ac_help="$ac_help | |
210 | --enable-radiobox use wxRadioBox class" | |
211 | ac_help="$ac_help | |
212 | --enable-radiobtn use wxRadioButton class" | |
213 | ac_help="$ac_help | |
214 | --enable-sash use wxSashWindow class" | |
215 | ac_help="$ac_help | |
216 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
217 | ac_help="$ac_help | |
218 | --enable-slider use wxSlider class" | |
219 | ac_help="$ac_help | |
220 | --enable-spinbtn use wxSpinButton class" | |
221 | ac_help="$ac_help | |
222 | --enable-splitter use wxSplitterWindow class" | |
223 | ac_help="$ac_help | |
224 | --enable-statbmp use wxStaticBitmap class" | |
225 | ac_help="$ac_help | |
226 | --enable-statbox use wxStaticBox class" | |
227 | ac_help="$ac_help | |
228 | --enable-statline use wxStaticLine class" | |
229 | ac_help="$ac_help | |
230 | --enable-statusbar use wxStatusBar class" | |
231 | ac_help="$ac_help | |
232 | --enable-tabdialog use wxTabControl class" | |
233 | ac_help="$ac_help | |
234 | --enable-toolbar use wxToolBar class" | |
235 | ac_help="$ac_help | |
236 | --enable-treectrl use wxTreeCtrl class" | |
237 | ac_help="$ac_help | |
238 | --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)" | |
239 | ac_help="$ac_help | |
240 | --enable-dirdlg use wxDirDialog" | |
241 | ac_help="$ac_help | |
242 | --enable-textdlg use wxTextDialog" | |
243 | ac_help="$ac_help | |
244 | --enable-tipdlg use startup tips" | |
245 | ac_help="$ac_help | |
246 | --enable-progressdlg use wxProgressDialog" | |
247 | ac_help="$ac_help | |
248 | --enable-miniframe use wxMiniFrame class" | |
249 | ac_help="$ac_help | |
250 | --enable-html use wxHTML sub-library" | |
251 | ac_help="$ac_help | |
252 | --enable-tooltips use wxToolTip class" | |
253 | ac_help="$ac_help | |
254 | --enable-splines use spline drawing code" | |
255 | ac_help="$ac_help | |
256 | --enable-validators use wxValidator and derived classes" | |
257 | ac_help="$ac_help | |
258 | --enable-busyinfo use wxBusyInfo" | |
259 | ac_help="$ac_help | |
260 | --enable-gif use gif images (GIF file format)" | |
261 | ac_help="$ac_help | |
262 | --enable-pcx use pcx images (PCX file format)" | |
263 | ac_help="$ac_help | |
264 | --enable-pnm use pnm images (PNM file format)" | |
265 | ||
266 | # Initialize some variables set by options. | |
267 | # The variables have the same names as the options, with | |
268 | # dashes changed to underlines. | |
269 | build=NONE | |
270 | cache_file=./config.cache | |
271 | exec_prefix=NONE | |
272 | host=NONE | |
273 | no_create= | |
274 | nonopt=NONE | |
275 | no_recursion= | |
276 | prefix=NONE | |
277 | program_prefix=NONE | |
278 | program_suffix=NONE | |
279 | program_transform_name=s,x,x, | |
280 | silent= | |
281 | site= | |
282 | srcdir= | |
283 | target=NONE | |
284 | verbose= | |
285 | x_includes=NONE | |
286 | x_libraries=NONE | |
287 | bindir='${exec_prefix}/bin' | |
288 | sbindir='${exec_prefix}/sbin' | |
289 | libexecdir='${exec_prefix}/libexec' | |
290 | datadir='${prefix}/share' | |
291 | sysconfdir='${prefix}/etc' | |
292 | sharedstatedir='${prefix}/com' | |
293 | localstatedir='${prefix}/var' | |
294 | libdir='${exec_prefix}/lib' | |
295 | includedir='${prefix}/include' | |
296 | oldincludedir='/usr/include' | |
297 | infodir='${prefix}/info' | |
298 | mandir='${prefix}/man' | |
299 | ||
300 | # Initialize some other variables. | |
301 | subdirs= | |
302 | MFLAGS= MAKEFLAGS= | |
303 | SHELL=${CONFIG_SHELL-/bin/sh} | |
304 | # Maximum number of lines to put in a shell here document. | |
305 | ac_max_here_lines=12 | |
306 | ||
307 | ac_prev= | |
308 | for ac_option | |
309 | do | |
310 | ||
311 | # If the previous option needs an argument, assign it. | |
312 | if test -n "$ac_prev"; then | |
313 | eval "$ac_prev=\$ac_option" | |
314 | ac_prev= | |
315 | continue | |
316 | fi | |
317 | ||
318 | case "$ac_option" in | |
319 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
320 | *) ac_optarg= ;; | |
321 | esac | |
322 | ||
323 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
324 | ||
325 | case "$ac_option" in | |
326 | ||
327 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
328 | ac_prev=bindir ;; | |
329 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
330 | bindir="$ac_optarg" ;; | |
331 | ||
332 | -build | --build | --buil | --bui | --bu) | |
333 | ac_prev=build ;; | |
334 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
335 | build="$ac_optarg" ;; | |
336 | ||
337 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
338 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
339 | ac_prev=cache_file ;; | |
340 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
341 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
342 | cache_file="$ac_optarg" ;; | |
343 | ||
344 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
345 | ac_prev=datadir ;; | |
346 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
347 | | --da=*) | |
348 | datadir="$ac_optarg" ;; | |
349 | ||
350 | -disable-* | --disable-*) | |
351 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
352 | # Reject names that are not valid shell variable names. | |
353 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
354 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
355 | fi | |
356 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
357 | eval "enable_${ac_feature}=no" ;; | |
358 | ||
359 | -enable-* | --enable-*) | |
360 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
361 | # Reject names that are not valid shell variable names. | |
362 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
363 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
364 | fi | |
365 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
366 | case "$ac_option" in | |
367 | *=*) ;; | |
368 | *) ac_optarg=yes ;; | |
369 | esac | |
370 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
371 | ||
372 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
373 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
374 | | --exec | --exe | --ex) | |
375 | ac_prev=exec_prefix ;; | |
376 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
377 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
378 | | --exec=* | --exe=* | --ex=*) | |
379 | exec_prefix="$ac_optarg" ;; | |
380 | ||
381 | -gas | --gas | --ga | --g) | |
382 | # Obsolete; use --with-gas. | |
383 | with_gas=yes ;; | |
384 | ||
385 | -help | --help | --hel | --he) | |
386 | # Omit some internal or obsolete options to make the list less imposing. | |
387 | # This message is too long to be a string in the A/UX 3.1 sh. | |
388 | cat << EOF | |
389 | Usage: configure [options] [host] | |
390 | Options: [defaults in brackets after descriptions] | |
391 | Configuration: | |
392 | --cache-file=FILE cache test results in FILE | |
393 | --help print this message | |
394 | --no-create do not create output files | |
395 | --quiet, --silent do not print \`checking...' messages | |
396 | --version print the version of autoconf that created configure | |
397 | Directory and file names: | |
398 | --prefix=PREFIX install architecture-independent files in PREFIX | |
399 | [$ac_default_prefix] | |
400 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
401 | [same as prefix] | |
402 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
403 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
404 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
405 | --datadir=DIR read-only architecture-independent data in DIR | |
406 | [PREFIX/share] | |
407 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
408 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
409 | [PREFIX/com] | |
410 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
411 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
412 | --includedir=DIR C header files in DIR [PREFIX/include] | |
413 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
414 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
415 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
416 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
417 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
418 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
419 | --program-transform-name=PROGRAM | |
420 | run sed PROGRAM on installed program names | |
421 | EOF | |
422 | cat << EOF | |
423 | Host type: | |
424 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
425 | --host=HOST configure for HOST [guessed] | |
426 | --target=TARGET configure for TARGET [TARGET=HOST] | |
427 | Features and packages: | |
428 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
429 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
430 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
431 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
432 | --x-includes=DIR X include files are in DIR | |
433 | --x-libraries=DIR X library files are in DIR | |
434 | EOF | |
435 | if test -n "$ac_help"; then | |
436 | echo "--enable and --with options recognized:$ac_help" | |
437 | fi | |
438 | exit 0 ;; | |
439 | ||
440 | -host | --host | --hos | --ho) | |
441 | ac_prev=host ;; | |
442 | -host=* | --host=* | --hos=* | --ho=*) | |
443 | host="$ac_optarg" ;; | |
444 | ||
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
450 | includedir="$ac_optarg" ;; | |
451 | ||
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
455 | infodir="$ac_optarg" ;; | |
456 | ||
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
460 | libdir="$ac_optarg" ;; | |
461 | ||
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
467 | libexecdir="$ac_optarg" ;; | |
468 | ||
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
476 | localstatedir="$ac_optarg" ;; | |
477 | ||
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
481 | mandir="$ac_optarg" ;; | |
482 | ||
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
488 | | --no-cr | --no-c) | |
489 | no_create=yes ;; | |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
502 | oldincludedir="$ac_optarg" ;; | |
503 | ||
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
507 | prefix="$ac_optarg" ;; | |
508 | ||
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
514 | program_prefix="$ac_optarg" ;; | |
515 | ||
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
521 | program_suffix="$ac_optarg" ;; | |
522 | ||
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
538 | program_transform_name="$ac_optarg" ;; | |
539 | ||
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
548 | sbindir="$ac_optarg" ;; | |
549 | ||
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
559 | sharedstatedir="$ac_optarg" ;; | |
560 | ||
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
564 | site="$ac_optarg" ;; | |
565 | ||
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
569 | srcdir="$ac_optarg" ;; | |
570 | ||
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
576 | sysconfdir="$ac_optarg" ;; | |
577 | ||
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
579 | ac_prev=target ;; | |
580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
581 | target="$ac_optarg" ;; | |
582 | ||
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
586 | -version | --version | --versio | --versi | --vers) | |
587 | echo "configure generated by autoconf version 2.13" | |
588 | exit 0 ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
594 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
595 | fi | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case "$ac_option" in | |
598 | *=*) ;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_${ac_package}='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
607 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
608 | fi | |
609 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
610 | eval "with_${ac_package}=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes="$ac_optarg" ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries="$ac_optarg" ;; | |
629 | ||
630 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
631 | ;; | |
632 | ||
633 | *) | |
634 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
635 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
636 | fi | |
637 | if test "x$nonopt" != xNONE; then | |
638 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
639 | fi | |
640 | nonopt="$ac_option" | |
641 | ;; | |
642 | ||
643 | esac | |
644 | done | |
645 | ||
646 | if test -n "$ac_prev"; then | |
647 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
648 | fi | |
649 | ||
650 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
651 | ||
652 | # File descriptor usage: | |
653 | # 0 standard input | |
654 | # 1 file creation | |
655 | # 2 errors and warnings | |
656 | # 3 some systems may open it to /dev/tty | |
657 | # 4 used on the Kubota Titan | |
658 | # 6 checking for... messages and results | |
659 | # 5 compiler messages saved in config.log | |
660 | if test "$silent" = yes; then | |
661 | exec 6>/dev/null | |
662 | else | |
663 | exec 6>&1 | |
664 | fi | |
665 | exec 5>./config.log | |
666 | ||
667 | echo "\ | |
668 | This file contains any messages produced by compilers while | |
669 | running configure, to aid debugging if configure makes a mistake. | |
670 | " 1>&5 | |
671 | ||
672 | # Strip out --no-create and --no-recursion so they do not pile up. | |
673 | # Also quote any args containing shell metacharacters. | |
674 | ac_configure_args= | |
675 | for ac_arg | |
676 | do | |
677 | case "$ac_arg" in | |
678 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
679 | | --no-cr | --no-c) ;; | |
680 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
681 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
682 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
683 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
684 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
685 | esac | |
686 | done | |
687 | ||
688 | # NLS nuisances. | |
689 | # Only set these to C if already set. These must not be set unconditionally | |
690 | # because not all systems understand e.g. LANG=C (notably SCO). | |
691 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
692 | # Non-C LC_CTYPE values break the ctype check. | |
693 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
694 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
695 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
696 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
697 | ||
698 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
699 | rm -rf conftest* confdefs.h | |
700 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
701 | echo > confdefs.h | |
702 | ||
703 | # A filename unique to this package, relative to the directory that | |
704 | # configure is in, which we can look for to find out if srcdir is correct. | |
705 | ac_unique_file=wx-config.in | |
706 | ||
707 | # Find the source files, if location was not specified. | |
708 | if test -z "$srcdir"; then | |
709 | ac_srcdir_defaulted=yes | |
710 | # Try the directory containing this script, then its parent. | |
711 | ac_prog=$0 | |
712 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
713 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
714 | srcdir=$ac_confdir | |
715 | if test ! -r $srcdir/$ac_unique_file; then | |
716 | srcdir=.. | |
717 | fi | |
718 | else | |
719 | ac_srcdir_defaulted=no | |
720 | fi | |
721 | if test ! -r $srcdir/$ac_unique_file; then | |
722 | if test "$ac_srcdir_defaulted" = yes; then | |
723 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
724 | else | |
725 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
726 | fi | |
727 | fi | |
728 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
729 | ||
730 | # Prefer explicitly selected file to automatically selected ones. | |
731 | if test -z "$CONFIG_SITE"; then | |
732 | if test "x$prefix" != xNONE; then | |
733 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
734 | else | |
735 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
736 | fi | |
737 | fi | |
738 | for ac_site_file in $CONFIG_SITE; do | |
739 | if test -r "$ac_site_file"; then | |
740 | echo "loading site script $ac_site_file" | |
741 | . "$ac_site_file" | |
742 | fi | |
743 | done | |
744 | ||
745 | if test -r "$cache_file"; then | |
746 | echo "loading cache $cache_file" | |
747 | . $cache_file | |
748 | else | |
749 | echo "creating cache $cache_file" | |
750 | > $cache_file | |
751 | fi | |
752 | ||
753 | ac_ext=c | |
754 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
755 | ac_cpp='$CPP $CPPFLAGS' | |
756 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
757 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
758 | cross_compiling=$ac_cv_prog_cc_cross | |
759 | ||
760 | ac_exeext= | |
761 | ac_objext=o | |
762 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
763 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
764 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
765 | ac_n= ac_c=' | |
766 | ' ac_t=' ' | |
767 | else | |
768 | ac_n=-n ac_c= ac_t= | |
769 | fi | |
770 | else | |
771 | ac_n= ac_c='\c' ac_t= | |
772 | fi | |
773 | ||
774 | ||
775 | ||
776 | ac_aux_dir= | |
777 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
778 | if test -f $ac_dir/install-sh; then | |
779 | ac_aux_dir=$ac_dir | |
780 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
781 | break | |
782 | elif test -f $ac_dir/install.sh; then | |
783 | ac_aux_dir=$ac_dir | |
784 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
785 | break | |
786 | fi | |
787 | done | |
788 | if test -z "$ac_aux_dir"; then | |
789 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
790 | fi | |
791 | ac_config_guess=$ac_aux_dir/config.guess | |
792 | ac_config_sub=$ac_aux_dir/config.sub | |
793 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
794 | ||
795 | ||
796 | # Do some error checking and defaulting for the host and target type. | |
797 | # The inputs are: | |
798 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
799 | # | |
800 | # The rules are: | |
801 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
802 | # same time. | |
803 | # 2. Host defaults to nonopt. | |
804 | # 3. If nonopt is not specified, then host defaults to the current host, | |
805 | # as determined by config.guess. | |
806 | # 4. Target and build default to nonopt. | |
807 | # 5. If nonopt is not specified, then target and build default to host. | |
808 | ||
809 | # The aliases save the names the user supplied, while $host etc. | |
810 | # will get canonicalized. | |
811 | case $host---$target---$nonopt in | |
812 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
813 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
814 | esac | |
815 | ||
816 | ||
817 | # Make sure we can run config.sub. | |
818 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
819 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
820 | fi | |
821 | ||
822 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
f512f90a | 823 | echo "configure:824: checking host system type" >&5 |
10f2d63a VZ |
824 | |
825 | host_alias=$host | |
826 | case "$host_alias" in | |
827 | NONE) | |
828 | case $nonopt in | |
829 | NONE) | |
830 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
831 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
832 | fi ;; | |
833 | *) host_alias=$nonopt ;; | |
834 | esac ;; | |
835 | esac | |
836 | ||
837 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
838 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
839 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
840 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
841 | echo "$ac_t""$host" 1>&6 | |
842 | ||
843 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
f512f90a | 844 | echo "configure:845: checking target system type" >&5 |
10f2d63a VZ |
845 | |
846 | target_alias=$target | |
847 | case "$target_alias" in | |
848 | NONE) | |
849 | case $nonopt in | |
850 | NONE) target_alias=$host_alias ;; | |
851 | *) target_alias=$nonopt ;; | |
852 | esac ;; | |
853 | esac | |
854 | ||
855 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
856 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
857 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
858 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
859 | echo "$ac_t""$target" 1>&6 | |
860 | ||
861 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
f512f90a | 862 | echo "configure:863: checking build system type" >&5 |
10f2d63a VZ |
863 | |
864 | build_alias=$build | |
865 | case "$build_alias" in | |
866 | NONE) | |
867 | case $nonopt in | |
868 | NONE) build_alias=$host_alias ;; | |
869 | *) build_alias=$nonopt ;; | |
870 | esac ;; | |
871 | esac | |
872 | ||
873 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
874 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
875 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
876 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
877 | echo "$ac_t""$build" 1>&6 | |
878 | ||
879 | test "$host_alias" != "$target_alias" && | |
880 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
881 | NONENONEs,x,x, && | |
882 | program_prefix=${target_alias}- | |
883 | ||
884 | ||
885 | ||
886 | WX_MAJOR_VERSION_NUMBER=2 | |
887 | WX_MINOR_VERSION_NUMBER=1 | |
888 | WX_RELEASE_NUMBER=10 | |
889 | ||
890 | WX_INTERFACE_AGE=0 | |
891 | WX_BINARY_AGE=0 | |
892 | ||
893 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
894 | ||
895 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
896 | WX_CURRENT=`expr $WX_RELEASE_NUMBER - $WX_INTERFACE_AGE` | |
897 | WX_REVISION=$WX_INTERFACE_AGE | |
898 | WX_AGE=`expr $WX_BINARY_AGE - $WX_INTERFACE_AGE` | |
899 | ||
900 | ||
901 | USE_UNIX=1 | |
902 | USE_WIN32=0 | |
903 | USE_LINUX= | |
904 | USE_SGI= | |
905 | USE_HPUX= | |
906 | USE_SYSV= | |
907 | USE_SVR4= | |
908 | USE_AIX= | |
909 | USE_SUN= | |
910 | USE_SOLARIS= | |
911 | USE_SUNOS= | |
912 | USE_ALPHA= | |
913 | USE_OSF= | |
914 | USE_BSD= | |
915 | USE_FREEBSD= | |
916 | USE_VMS= | |
917 | USE_ULTRIX= | |
918 | USE_CYGWIN= | |
919 | USE_MINGW= | |
920 | USE_DATA_GENERAL= | |
921 | ||
922 | ALL_TOOLKITS="CYGWIN GTK MINGW MOTIF WINE" | |
923 | ||
924 | DEFAULT_wxUSE_GTK=0 | |
925 | DEFAULT_wxUSE_MOTIF=0 | |
926 | DEFAULT_wxUSE_MSW=0 | |
927 | DEFAULT_wxUSE_WINE=0 | |
928 | ||
929 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
930 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
931 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
932 | DEFAULT_DEFAULT_wxUSE_WINE=0 | |
933 | ||
934 | case "${host}" in | |
935 | *-hp-hpux* ) | |
936 | USE_HPUX=1 | |
937 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
938 | cat >> confdefs.h <<\EOF | |
939 | #define __HPUX__ 1 | |
940 | EOF | |
941 | ||
942 | ;; | |
943 | *-*-linux* ) | |
944 | USE_LINUX=1 | |
945 | cat >> confdefs.h <<\EOF | |
946 | #define __LINUX__ 1 | |
947 | EOF | |
948 | ||
949 | TMP=`uname -m` | |
950 | if test "x$TMP" = "xalpha"; then | |
951 | USE_ALPHA=1 | |
952 | cat >> confdefs.h <<\EOF | |
953 | #define __ALPHA__ 1 | |
954 | EOF | |
955 | ||
956 | fi | |
957 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
958 | ;; | |
959 | *-*-irix5* | *-*-irix6* ) | |
960 | USE_SGI=1 | |
961 | USE_SVR4=1 | |
962 | cat >> confdefs.h <<\EOF | |
963 | #define __SGI__ 1 | |
964 | EOF | |
965 | ||
966 | cat >> confdefs.h <<\EOF | |
967 | #define __SVR4__ 1 | |
968 | EOF | |
969 | ||
970 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
971 | ;; | |
972 | *-*-solaris2* ) | |
973 | USE_SUN=1 | |
974 | USE_SOLARIS=1 | |
975 | USE_SVR4=1 | |
976 | cat >> confdefs.h <<\EOF | |
977 | #define __SUN__ 1 | |
978 | EOF | |
979 | ||
980 | cat >> confdefs.h <<\EOF | |
981 | #define __SOLARIS__ 1 | |
982 | EOF | |
983 | ||
984 | cat >> confdefs.h <<\EOF | |
985 | #define __SVR4__ 1 | |
986 | EOF | |
987 | ||
988 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
989 | ;; | |
990 | *-*-sunos4* ) | |
991 | USE_SUN=1 | |
992 | USE_SUNOS=1 | |
993 | USE_BSD=1 | |
994 | cat >> confdefs.h <<\EOF | |
995 | #define __SUN__ 1 | |
996 | EOF | |
997 | ||
998 | cat >> confdefs.h <<\EOF | |
999 | #define __SUNOS__ 1 | |
1000 | EOF | |
1001 | ||
1002 | cat >> confdefs.h <<\EOF | |
1003 | #define __BSD__ 1 | |
1004 | EOF | |
1005 | ||
1006 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1007 | ;; | |
1008 | *-*-freebsd* | *-*-netbsd*) | |
1009 | USE_BSD=1 | |
1010 | USE_FREEBSD=1 | |
1011 | cat >> confdefs.h <<\EOF | |
1012 | #define __FREEBSD__ 1 | |
1013 | EOF | |
1014 | ||
1015 | cat >> confdefs.h <<\EOF | |
1016 | #define __BSD__ 1 | |
1017 | EOF | |
1018 | ||
1019 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1020 | ;; | |
1021 | *-*-osf* ) | |
1022 | USE_ALPHA=1 | |
1023 | USE_OSF=1 | |
1024 | cat >> confdefs.h <<\EOF | |
1025 | #define __ALPHA__ 1 | |
1026 | EOF | |
1027 | ||
1028 | cat >> confdefs.h <<\EOF | |
1029 | #define __OSF__ 1 | |
1030 | EOF | |
1031 | ||
1032 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1033 | ;; | |
1034 | *-*-dgux5* ) | |
1035 | USE_ALPHA=1 | |
1036 | USE_SVR4=1 | |
1037 | cat >> confdefs.h <<\EOF | |
1038 | #define __ALPHA__ 1 | |
1039 | EOF | |
1040 | ||
1041 | cat >> confdefs.h <<\EOF | |
1042 | #define __SVR4__ 1 | |
1043 | EOF | |
1044 | ||
1045 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1046 | ;; | |
1047 | *-*-sysv5* ) | |
1048 | USE_SYSV=1 | |
1049 | USE_SVR4=1 | |
1050 | cat >> confdefs.h <<\EOF | |
1051 | #define __SYSV__ 1 | |
1052 | EOF | |
1053 | ||
1054 | cat >> confdefs.h <<\EOF | |
1055 | #define __SVR4__ 1 | |
1056 | EOF | |
1057 | ||
1058 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1059 | ;; | |
1060 | *-*-aix* ) | |
1061 | USE_AIX=1 | |
1062 | USE_SYSV=1 | |
1063 | USE_SVR4=1 | |
1064 | cat >> confdefs.h <<\EOF | |
1065 | #define __AIX__ 1 | |
1066 | EOF | |
1067 | ||
1068 | cat >> confdefs.h <<\EOF | |
1069 | #define __SYSV__ 1 | |
1070 | EOF | |
1071 | ||
1072 | cat >> confdefs.h <<\EOF | |
1073 | #define __SVR4__ 1 | |
1074 | EOF | |
1075 | ||
1076 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1077 | ;; | |
1078 | ||
1079 | *-*-cygwin32* ) | |
1080 | USE_UNIX=0 | |
1081 | USE_WIN32=1 | |
1082 | cat >> confdefs.h <<\EOF | |
1083 | #define __WIN32__ 1 | |
1084 | EOF | |
1085 | ||
1086 | cat >> confdefs.h <<\EOF | |
1087 | #define __WIN95__ 1 | |
1088 | EOF | |
1089 | ||
1090 | cat >> confdefs.h <<\EOF | |
1091 | #define __WINDOWS__ 1 | |
1092 | EOF | |
1093 | ||
1094 | cat >> confdefs.h <<\EOF | |
1095 | #define __GNUWIN32__ 1 | |
1096 | EOF | |
1097 | ||
1098 | cat >> confdefs.h <<\EOF | |
1099 | #define STRICT 1 | |
1100 | EOF | |
1101 | ||
1102 | cat >> confdefs.h <<\EOF | |
1103 | #define WINVER 0x0400 | |
1104 | EOF | |
1105 | ||
1106 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1107 | ;; | |
1108 | *-*-mingw32* ) | |
1109 | USE_UNIX=0 | |
1110 | USE_WIN32=1 | |
1111 | cat >> confdefs.h <<\EOF | |
1112 | #define __WIN32__ 1 | |
1113 | EOF | |
1114 | ||
1115 | cat >> confdefs.h <<\EOF | |
1116 | #define __WIN95__ 1 | |
1117 | EOF | |
1118 | ||
1119 | cat >> confdefs.h <<\EOF | |
1120 | #define __WINDOWS__ 1 | |
1121 | EOF | |
1122 | ||
1123 | cat >> confdefs.h <<\EOF | |
1124 | #define __GNUWIN32__ 1 | |
1125 | EOF | |
1126 | ||
1127 | cat >> confdefs.h <<\EOF | |
1128 | #define STRICT 1 | |
1129 | EOF | |
1130 | ||
1131 | cat >> confdefs.h <<\EOF | |
1132 | #define WINVER 0x0400 | |
1133 | EOF | |
1134 | ||
1135 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1136 | ;; | |
1137 | ||
1138 | *-pc-os2_emx ) | |
1139 | cat >> confdefs.h <<\EOF | |
1140 | #define __EMX__ 1 | |
1141 | EOF | |
1142 | ||
1143 | ;; | |
1144 | ||
1145 | *) | |
1146 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
1147 | esac | |
1148 | ||
1149 | if test "$USE_UNIX" = 1 ; then | |
1150 | wxUSE_UNIX=yes | |
1151 | cat >> confdefs.h <<\EOF | |
1152 | #define __UNIX__ 1 | |
1153 | EOF | |
1154 | ||
1155 | SRC_SUBDIRS="$SRC_SUBDIRS unix" | |
1156 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix" | |
1157 | fi | |
1158 | ||
1159 | if test "$USE_LINUX" = 1; then | |
1160 | echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6 | |
f512f90a | 1161 | echo "configure:1162: checking for gettext in -lc" >&5 |
10f2d63a VZ |
1162 | ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'` |
1163 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
1164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1165 | else | |
1166 | ac_save_LIBS="$LIBS" | |
1167 | LIBS="-lc $LIBS" | |
1168 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 1169 | #line 1170 "configure" |
10f2d63a VZ |
1170 | #include "confdefs.h" |
1171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
1172 | /* We use char because int might match the return type of a gcc2 | |
1173 | builtin and then its argument prototype would still apply. */ | |
1174 | char gettext(); | |
1175 | ||
1176 | int main() { | |
1177 | gettext() | |
1178 | ; return 0; } | |
1179 | EOF | |
f512f90a | 1180 | if { (eval echo configure:1181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
1181 | rm -rf conftest* |
1182 | eval "ac_cv_lib_$ac_lib_var=yes" | |
1183 | else | |
1184 | echo "configure: failed program was:" >&5 | |
1185 | cat conftest.$ac_ext >&5 | |
1186 | rm -rf conftest* | |
1187 | eval "ac_cv_lib_$ac_lib_var=no" | |
1188 | fi | |
1189 | rm -f conftest* | |
1190 | LIBS="$ac_save_LIBS" | |
1191 | ||
1192 | fi | |
1193 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
1194 | echo "$ac_t""yes" 1>&6 | |
1195 | cat >> confdefs.h <<\EOF | |
1196 | #define wxHAVE_GLIBC2 1 | |
1197 | EOF | |
1198 | ||
1199 | else | |
1200 | echo "$ac_t""no" 1>&6 | |
1201 | fi | |
1202 | ||
1203 | fi | |
1204 | ||
1205 | ||
1206 | ||
1207 | ||
1208 | wx_arg_cache_file="configarg.cache" | |
1209 | echo "loading argument cache $wx_arg_cache_file" | |
1210 | rm -f ${wx_arg_cache_file}.tmp | |
1211 | touch ${wx_arg_cache_file}.tmp | |
1212 | touch ${wx_arg_cache_file} | |
1213 | ||
1214 | ||
1215 | DEBUG_CONFIGURE=0 | |
1216 | if test $DEBUG_CONFIGURE = 1; then | |
1217 | DEFAULT_wxUSE_THREADS=yes | |
1218 | ||
1219 | DEFAULT_wxUSE_SHARED=yes | |
1220 | DEFAULT_wxUSE_OPTIMISE=yes | |
1221 | DEFAULT_wxUSE_PROFILE=no | |
1222 | DEFAULT_wxUSE_NO_DEPS=no | |
1223 | DEFAULT_wxUSE_NO_RTTI=no | |
1224 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1225 | DEFAULT_wxUSE_PERMISSIVE=no | |
1226 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1227 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1228 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1229 | DEFAULT_wxUSE_MEM_TRACING=no | |
1230 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1231 | DEFAULT_wxUSE_DMALLOC=no | |
1232 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1233 | ||
1234 | DEFAULT_wxUSE_LOG=yes | |
1235 | ||
1236 | DEFAULT_wxUSE_GUI=yes | |
1237 | ||
1238 | DEFAULT_wxUSE_ZLIB=no | |
1239 | DEFAULT_wxUSE_LIBPNG=no | |
1240 | DEFAULT_wxUSE_LIBJPEG=no | |
1241 | DEFAULT_wxUSE_ODBC=no | |
1242 | ||
1243 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1244 | DEFAULT_wxUSE_FILE=no | |
1245 | DEFAULT_wxUSE_TEXTFILE=no | |
1246 | DEFAULT_wxUSE_TIMEDATE=no | |
1247 | DEFAULT_wxUSE_WAVE=no | |
1248 | DEFAULT_wxUSE_INTL=no | |
1249 | DEFAULT_wxUSE_CONFIG=no | |
1250 | DEFAULT_wxUSE_STREAMS=no | |
1251 | DEFAULT_wxUSE_SOCKETS=no | |
1252 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
1253 | DEFAULT_wxUSE_SERIAL=no | |
1254 | DEFAULT_wxUSE_JOYSTICK=no | |
1255 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
1256 | DEFAULT_wxUSE_LONGLONG=no | |
1257 | ||
1258 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1259 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1260 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1261 | ||
1262 | DEFAULT_wxUSE_X_RESOURCES=no | |
1263 | DEFAULT_wxUSE_CLIPBOARD=no | |
1264 | DEFAULT_wxUSE_TOOLTIPS=no | |
1265 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1266 | DEFAULT_wxUSE_SPLINES=no | |
1267 | ||
1268 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1269 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1270 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1271 | ||
1272 | DEFAULT_wxUSE_PROLOGIO=no | |
1273 | DEFAULT_wxUSE_RESOURCES=no | |
1274 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1275 | DEFAULT_wxUSE_IPC=no | |
1276 | DEFAULT_wxUSE_HELP=no | |
1277 | DEFAULT_wxUSE_WXTREE=no | |
1278 | DEFAULT_wxUSE_METAFILE=no | |
1279 | ||
1280 | DEFAULT_wxUSE_COMMONDLGS=no | |
1281 | DEFAULT_wxUSE_DIRDLG=no | |
1282 | DEFAULT_wxUSE_TEXTDLG=no | |
1283 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1284 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1285 | DEFAULT_wxUSE_MINIFRAME=no | |
1286 | DEFAULT_wxUSE_HTML=no | |
1287 | DEFAULT_wxUSE_FS_INET=no | |
1288 | DEFAULT_wxUSE_FS_ZIP=no | |
1289 | DEFAULT_wxUSE_BUSYINFO=no | |
1290 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1291 | DEFAULT_wxUSE_VALIDATORS=yes | |
1292 | ||
1293 | DEFAULT_wxUSE_ACCEL=no | |
1294 | DEFAULT_wxUSE_CARET=no | |
1295 | DEFAULT_wxUSE_BMPBUTTON=no | |
1296 | DEFAULT_wxUSE_CHECKBOX=no | |
1297 | DEFAULT_wxUSE_CHECKLST=no | |
1298 | DEFAULT_wxUSE_CHOICE=yes | |
1299 | DEFAULT_wxUSE_COMBOBOX=no | |
1300 | DEFAULT_wxUSE_GAUGE=no | |
1301 | DEFAULT_wxUSE_GRID=no | |
1302 | DEFAULT_wxUSE_NEW_GRID=no | |
1303 | DEFAULT_wxUSE_IMAGLIST=no | |
1304 | DEFAULT_wxUSE_LISTBOX=no | |
1305 | DEFAULT_wxUSE_LISTCTRL=no | |
1306 | DEFAULT_wxUSE_NOTEBOOK=no | |
1307 | DEFAULT_wxUSE_RADIOBOX=no | |
1308 | DEFAULT_wxUSE_RADIOBTN=no | |
1309 | DEFAULT_wxUSE_SASH=no | |
1310 | DEFAULT_wxUSE_SCROLLBAR=no | |
1311 | DEFAULT_wxUSE_SLIDER=no | |
1312 | DEFAULT_wxUSE_SPINBTN=no | |
1313 | DEFAULT_wxUSE_SPLITTER=no | |
1314 | DEFAULT_wxUSE_STATBMP=no | |
1315 | DEFAULT_wxUSE_STATBOX=no | |
1316 | DEFAULT_wxUSE_STATLINE=no | |
1317 | DEFAULT_wxUSE_STATUSBAR=yes | |
1318 | DEFAULT_wxUSE_TABDIALOG=no | |
1319 | DEFAULT_wxUSE_TOOLBAR=no | |
1320 | DEFAULT_wxUSE_TREECTRL=no | |
1321 | ||
1322 | DEFAULT_wxUSE_UNICODE=no | |
1323 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1324 | ||
1325 | DEFAULT_wxUSE_GIF=no | |
1326 | DEFAULT_wxUSE_PCX=no | |
1327 | DEFAULT_wxUSE_PNM=no | |
1328 | else | |
1329 | DEFAULT_wxUSE_THREADS=yes | |
1330 | ||
1331 | DEFAULT_wxUSE_SHARED=yes | |
1332 | DEFAULT_wxUSE_OPTIMISE=yes | |
1333 | DEFAULT_wxUSE_PROFILE=no | |
1334 | DEFAULT_wxUSE_NO_DEPS=no | |
1335 | DEFAULT_wxUSE_NO_RTTI=no | |
1336 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1337 | DEFAULT_wxUSE_PERMISSIVE=no | |
1338 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1339 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1340 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1341 | DEFAULT_wxUSE_MEM_TRACING=no | |
1342 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1343 | DEFAULT_wxUSE_DMALLOC=no | |
1344 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
1345 | ||
1346 | DEFAULT_wxUSE_LOG=yes | |
1347 | ||
1348 | DEFAULT_wxUSE_GUI=yes | |
1349 | ||
1350 | DEFAULT_wxUSE_ZLIB=yes | |
1351 | DEFAULT_wxUSE_LIBPNG=yes | |
1352 | DEFAULT_wxUSE_LIBJPEG=yes | |
1353 | DEFAULT_wxUSE_ODBC=yes | |
1354 | ||
1355 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
1356 | DEFAULT_wxUSE_FILE=yes | |
1357 | DEFAULT_wxUSE_TEXTFILE=yes | |
1358 | DEFAULT_wxUSE_TIMEDATE=yes | |
1359 | DEFAULT_wxUSE_WAVE=no | |
1360 | DEFAULT_wxUSE_INTL=yes | |
1361 | DEFAULT_wxUSE_CONFIG=yes | |
1362 | DEFAULT_wxUSE_STREAMS=yes | |
1363 | DEFAULT_wxUSE_SOCKETS=yes | |
1364 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
1365 | DEFAULT_wxUSE_SERIAL=yes | |
1366 | DEFAULT_wxUSE_JOYSTICK=yes | |
1367 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
1368 | DEFAULT_wxUSE_LONGLONG=no | |
1369 | ||
1370 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1371 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1372 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1373 | ||
1374 | DEFAULT_wxUSE_X_RESOURCES=no | |
1375 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1376 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1377 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
1378 | DEFAULT_wxUSE_SPLINES=yes | |
1379 | ||
1380 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1381 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1382 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1383 | ||
1384 | DEFAULT_wxUSE_PROLOGIO=yes | |
1385 | DEFAULT_wxUSE_RESOURCES=yes | |
1386 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1387 | DEFAULT_wxUSE_IPC=yes | |
1388 | DEFAULT_wxUSE_HELP=yes | |
1389 | DEFAULT_wxUSE_WXTREE=yes | |
1390 | DEFAULT_wxUSE_METAFILE=yes | |
1391 | ||
1392 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1393 | DEFAULT_wxUSE_DIRDLG=yes | |
1394 | DEFAULT_wxUSE_TEXTDLG=yes | |
1395 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
1396 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
1397 | DEFAULT_wxUSE_MINIFRAME=yes | |
1398 | DEFAULT_wxUSE_HTML=yes | |
1399 | DEFAULT_wxUSE_FS_INET=yes | |
1400 | DEFAULT_wxUSE_FS_ZIP=yes | |
1401 | DEFAULT_wxUSE_BUSYINFO=yes | |
1402 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1403 | DEFAULT_wxUSE_VALIDATORS=yes | |
1404 | ||
1405 | DEFAULT_wxUSE_ACCEL=yes | |
1406 | DEFAULT_wxUSE_CARET=yes | |
1407 | DEFAULT_wxUSE_BMPBUTTON=yes | |
1408 | DEFAULT_wxUSE_CHECKBOX=yes | |
1409 | DEFAULT_wxUSE_CHECKLST=yes | |
1410 | DEFAULT_wxUSE_CHOICE=yes | |
1411 | DEFAULT_wxUSE_COMBOBOX=yes | |
1412 | DEFAULT_wxUSE_GAUGE=yes | |
1413 | DEFAULT_wxUSE_GRID=yes | |
1414 | DEFAULT_wxUSE_NEW_GRID=yes | |
1415 | DEFAULT_wxUSE_IMAGLIST=yes | |
1416 | DEFAULT_wxUSE_LISTBOX=yes | |
1417 | DEFAULT_wxUSE_LISTCTRL=yes | |
1418 | DEFAULT_wxUSE_NOTEBOOK=yes | |
1419 | DEFAULT_wxUSE_RADIOBOX=yes | |
1420 | DEFAULT_wxUSE_RADIOBTN=yes | |
1421 | DEFAULT_wxUSE_SASH=yes | |
1422 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1423 | DEFAULT_wxUSE_SLIDER=yes | |
1424 | DEFAULT_wxUSE_SPINBTN=yes | |
1425 | DEFAULT_wxUSE_SPLITTER=yes | |
1426 | DEFAULT_wxUSE_STATBMP=yes | |
1427 | DEFAULT_wxUSE_STATBOX=yes | |
1428 | DEFAULT_wxUSE_STATLINE=yes | |
1429 | DEFAULT_wxUSE_STATUSBAR=yes | |
1430 | DEFAULT_wxUSE_TABDIALOG=no | |
1431 | DEFAULT_wxUSE_TOOLBAR=yes | |
1432 | DEFAULT_wxUSE_TREECTRL=yes | |
1433 | ||
1434 | DEFAULT_wxUSE_UNICODE=no | |
1435 | DEFAULT_wxUSE_WCSRTOMBS=no | |
1436 | ||
1437 | DEFAULT_wxUSE_GIF=yes | |
1438 | DEFAULT_wxUSE_PCX=yes | |
1439 | DEFAULT_wxUSE_PNM=yes | |
1440 | fi | |
1441 | ||
1442 | ||
1443 | ||
1444 | for toolkit in `echo $ALL_TOOLKITS`; do | |
1445 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1446 | if test "x$LINE" != x ; then | |
1447 | has_toolkit_in_cache=1 | |
1448 | eval "DEFAULT_$LINE" | |
1449 | eval "CACHE_$toolkit=1" | |
1450 | fi | |
1451 | done | |
1452 | ||
1453 | ||
1454 | ||
1455 | echo $ac_n "checking "for --enable-gui"""... $ac_c" 1>&6 | |
f512f90a | 1456 | echo "configure:1457: checking "for --enable-gui"" >&5 |
10f2d63a VZ |
1457 | no_cache=0 |
1458 | # Check whether --enable-gui or --disable-gui was given. | |
1459 | if test "${enable_gui+set}" = set; then | |
1460 | enableval="$enable_gui" | |
1461 | ||
1462 | if test "$enableval" = yes; then | |
1463 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1464 | else | |
1465 | ac_cv_use_gui='wxUSE_GUI=no' | |
1466 | fi | |
1467 | ||
1468 | else | |
1469 | ||
1470 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
1471 | if test "x$LINE" != x ; then | |
1472 | eval "DEFAULT_$LINE" | |
1473 | else | |
1474 | no_cache=1 | |
1475 | fi | |
1476 | ||
1477 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
1478 | ||
1479 | fi | |
1480 | ||
1481 | ||
1482 | eval "$ac_cv_use_gui" | |
1483 | if test "$no_cache" != 1; then | |
1484 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1485 | fi | |
1486 | ||
1487 | if test "$wxUSE_GUI" = yes; then | |
1488 | echo "$ac_t""yes" 1>&6 | |
1489 | else | |
1490 | echo "$ac_t""no" 1>&6 | |
1491 | fi | |
1492 | ||
1493 | ||
1494 | if test "$wxUSE_GUI" = "no"; then | |
1495 | DEFAULT_wxUSE_ZLIB=no | |
1496 | DEFAULT_wxUSE_LIBPNG=no | |
1497 | DEFAULT_wxUSE_LIBJPEG=no | |
1498 | DEFAULT_wxUSE_SOCKETS=no | |
1499 | DEFAULT_wxUSE_JOYSTICK=no | |
1500 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1501 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1502 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1503 | DEFAULT_wxUSE_X_RESOURCES=no | |
1504 | DEFAULT_wxUSE_CLIPBOARD=no | |
1505 | DEFAULT_wxUSE_TOOLTIPS=no | |
1506 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
1507 | DEFAULT_wxUSE_SPLINES=no | |
1508 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1509 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1510 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1511 | DEFAULT_wxUSE_PROLOGIO=no | |
1512 | DEFAULT_wxUSE_RESOURCES=no | |
1513 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1514 | DEFAULT_wxUSE_IPC=no | |
1515 | DEFAULT_wxUSE_HELP=no | |
1516 | DEFAULT_wxUSE_WXTREE=no | |
1517 | DEFAULT_wxUSE_METAFILE=no | |
1518 | DEFAULT_wxUSE_COMMONDLGS=no | |
1519 | DEFAULT_wxUSE_DIRDLG=no | |
1520 | DEFAULT_wxUSE_TEXTDLG=no | |
1521 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
1522 | DEFAULT_wxUSE_PROGRESSDLG=no | |
1523 | DEFAULT_wxUSE_MINIFRAME=no | |
1524 | DEFAULT_wxUSE_HTML=no | |
1525 | DEFAULT_wxUSE_FS_INET=no | |
1526 | DEFAULT_wxUSE_FS_ZIP=no | |
1527 | DEFAULT_wxUSE_BUSYINFO=no | |
1528 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1529 | DEFAULT_wxUSE_VALIDATORS=no | |
1530 | DEFAULT_wxUSE_ACCEL=no | |
1531 | DEFAULT_wxUSE_CARET=no | |
1532 | DEFAULT_wxUSE_BMPBUTTON=no | |
1533 | DEFAULT_wxUSE_CHECKBOX=no | |
1534 | DEFAULT_wxUSE_CHECKLST=no | |
1535 | DEFAULT_wxUSE_CHOICE=no | |
1536 | DEFAULT_wxUSE_COMBOBOX=no | |
1537 | DEFAULT_wxUSE_GAUGE=no | |
1538 | DEFAULT_wxUSE_GRID=no | |
1539 | DEFAULT_wxUSE_NEW_GRID=no | |
1540 | DEFAULT_wxUSE_IMAGLIST=no | |
1541 | DEFAULT_wxUSE_LISTBOX=no | |
1542 | DEFAULT_wxUSE_LISTCTRL=no | |
1543 | DEFAULT_wxUSE_NOTEBOOK=no | |
1544 | DEFAULT_wxUSE_RADIOBOX=no | |
1545 | DEFAULT_wxUSE_RADIOBTN=no | |
1546 | DEFAULT_wxUSE_SASH=no | |
1547 | DEFAULT_wxUSE_SCROLLBAR=no | |
1548 | DEFAULT_wxUSE_SLIDER=no | |
1549 | DEFAULT_wxUSE_SPINBTN=no | |
1550 | DEFAULT_wxUSE_SPLITTER=no | |
1551 | DEFAULT_wxUSE_STATBMP=no | |
1552 | DEFAULT_wxUSE_STATBOX=no | |
1553 | DEFAULT_wxUSE_STATLINE=no | |
1554 | DEFAULT_wxUSE_STATUSBAR=no | |
1555 | DEFAULT_wxUSE_TABDIALOG=no | |
1556 | DEFAULT_wxUSE_TOOLBAR=no | |
1557 | DEFAULT_wxUSE_TREECTRL=no | |
1558 | DEFAULT_wxUSE_GIF=no | |
1559 | DEFAULT_wxUSE_PCX=no | |
1560 | DEFAULT_wxUSE_PNM=no | |
1561 | fi | |
1562 | ||
1563 | # Check whether --with-gtk or --without-gtk was given. | |
1564 | if test "${with_gtk+set}" = set; then | |
1565 | withval="$with_gtk" | |
1566 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
1567 | fi | |
1568 | ||
1569 | # Check whether --with-motif or --without-motif was given. | |
1570 | if test "${with_motif+set}" = set; then | |
1571 | withval="$with_motif" | |
1572 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
1573 | fi | |
1574 | ||
1575 | # Check whether --with-wine or --without-wine was given. | |
1576 | if test "${with_wine+set}" = set; then | |
1577 | withval="$with_wine" | |
1578 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
1579 | fi | |
1580 | ||
1581 | # Check whether --with-cygwin or --without-cygwin was given. | |
1582 | if test "${with_cygwin+set}" = set; then | |
1583 | withval="$with_cygwin" | |
1584 | wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1 | |
1585 | fi | |
1586 | ||
1587 | # Check whether --with-mingw or --without-mingw was given. | |
1588 | if test "${with_mingw+set}" = set; then | |
1589 | withval="$with_mingw" | |
1590 | wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1 | |
1591 | fi | |
1592 | ||
1593 | ||
1594 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
1595 | if test "${with_gtk_prefix+set}" = set; then | |
1596 | withval="$with_gtk_prefix" | |
1597 | gtk_config_prefix="$withval" | |
1598 | else | |
1599 | gtk_config_prefix="" | |
1600 | fi | |
1601 | ||
1602 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
1603 | if test "${with_gtk_exec_prefix+set}" = set; then | |
1604 | withval="$with_gtk_exec_prefix" | |
1605 | gtk_config_exec_prefix="$withval" | |
1606 | else | |
1607 | gtk_config_exec_prefix="" | |
1608 | fi | |
1609 | ||
1610 | ||
1611 | ||
1612 | echo $ac_n "checking "for --with-dmalloc"""... $ac_c" 1>&6 | |
f512f90a | 1613 | echo "configure:1614: checking "for --with-dmalloc"" >&5 |
10f2d63a VZ |
1614 | no_cache=0 |
1615 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
1616 | if test "${with_dmalloc+set}" = set; then | |
1617 | withval="$with_dmalloc" | |
1618 | ||
1619 | if test "$withval" = yes; then | |
1620 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
1621 | else | |
1622 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
1623 | fi | |
1624 | ||
1625 | else | |
1626 | ||
1627 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
1628 | if test "x$LINE" != x ; then | |
1629 | eval "DEFAULT_$LINE" | |
1630 | else | |
1631 | no_cache=1 | |
1632 | fi | |
1633 | ||
1634 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
1635 | ||
1636 | fi | |
1637 | ||
1638 | ||
1639 | eval "$ac_cv_use_dmalloc" | |
1640 | if test "$no_cache" != 1; then | |
1641 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
1642 | fi | |
1643 | ||
1644 | if test "$wxUSE_DMALLOC" = yes; then | |
1645 | echo "$ac_t""yes" 1>&6 | |
1646 | else | |
1647 | echo "$ac_t""no" 1>&6 | |
1648 | fi | |
1649 | ||
1650 | ||
1651 | echo $ac_n "checking "for --with-zlib"""... $ac_c" 1>&6 | |
f512f90a | 1652 | echo "configure:1653: checking "for --with-zlib"" >&5 |
10f2d63a VZ |
1653 | no_cache=0 |
1654 | # Check whether --with-zlib or --without-zlib was given. | |
1655 | if test "${with_zlib+set}" = set; then | |
1656 | withval="$with_zlib" | |
1657 | ||
1658 | if test "$withval" = yes; then | |
1659 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
1660 | else | |
1661 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
1662 | fi | |
1663 | ||
1664 | else | |
1665 | ||
1666 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
1667 | if test "x$LINE" != x ; then | |
1668 | eval "DEFAULT_$LINE" | |
1669 | else | |
1670 | no_cache=1 | |
1671 | fi | |
1672 | ||
1673 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
1674 | ||
1675 | fi | |
1676 | ||
1677 | ||
1678 | eval "$ac_cv_use_zlib" | |
1679 | if test "$no_cache" != 1; then | |
1680 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
1681 | fi | |
1682 | ||
1683 | if test "$wxUSE_ZLIB" = yes; then | |
1684 | echo "$ac_t""yes" 1>&6 | |
1685 | else | |
1686 | echo "$ac_t""no" 1>&6 | |
1687 | fi | |
1688 | ||
1689 | ||
1690 | echo $ac_n "checking "for --with-libpng"""... $ac_c" 1>&6 | |
f512f90a | 1691 | echo "configure:1692: checking "for --with-libpng"" >&5 |
10f2d63a VZ |
1692 | no_cache=0 |
1693 | # Check whether --with-libpng or --without-libpng was given. | |
1694 | if test "${with_libpng+set}" = set; then | |
1695 | withval="$with_libpng" | |
1696 | ||
1697 | if test "$withval" = yes; then | |
1698 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
1699 | else | |
1700 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
1701 | fi | |
1702 | ||
1703 | else | |
1704 | ||
1705 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
1706 | if test "x$LINE" != x ; then | |
1707 | eval "DEFAULT_$LINE" | |
1708 | else | |
1709 | no_cache=1 | |
1710 | fi | |
1711 | ||
1712 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
1713 | ||
1714 | fi | |
1715 | ||
1716 | ||
1717 | eval "$ac_cv_use_libpng" | |
1718 | if test "$no_cache" != 1; then | |
1719 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
1720 | fi | |
1721 | ||
1722 | if test "$wxUSE_LIBPNG" = yes; then | |
1723 | echo "$ac_t""yes" 1>&6 | |
1724 | else | |
1725 | echo "$ac_t""no" 1>&6 | |
1726 | fi | |
1727 | ||
1728 | ||
1729 | echo $ac_n "checking "for --with-libjpeg"""... $ac_c" 1>&6 | |
f512f90a | 1730 | echo "configure:1731: checking "for --with-libjpeg"" >&5 |
10f2d63a VZ |
1731 | no_cache=0 |
1732 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
1733 | if test "${with_libjpeg+set}" = set; then | |
1734 | withval="$with_libjpeg" | |
1735 | ||
1736 | if test "$withval" = yes; then | |
1737 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
1738 | else | |
1739 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
1740 | fi | |
1741 | ||
1742 | else | |
1743 | ||
1744 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
1745 | if test "x$LINE" != x ; then | |
1746 | eval "DEFAULT_$LINE" | |
1747 | else | |
1748 | no_cache=1 | |
1749 | fi | |
1750 | ||
1751 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
1752 | ||
1753 | fi | |
1754 | ||
1755 | ||
1756 | eval "$ac_cv_use_libjpeg" | |
1757 | if test "$no_cache" != 1; then | |
1758 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
1759 | fi | |
1760 | ||
1761 | if test "$wxUSE_LIBJPEG" = yes; then | |
1762 | echo "$ac_t""yes" 1>&6 | |
1763 | else | |
1764 | echo "$ac_t""no" 1>&6 | |
1765 | fi | |
1766 | ||
1767 | ||
1768 | echo $ac_n "checking "for --with-opengl"""... $ac_c" 1>&6 | |
f512f90a | 1769 | echo "configure:1770: checking "for --with-opengl"" >&5 |
10f2d63a VZ |
1770 | no_cache=0 |
1771 | # Check whether --with-opengl or --without-opengl was given. | |
1772 | if test "${with_opengl+set}" = set; then | |
1773 | withval="$with_opengl" | |
1774 | ||
1775 | if test "$withval" = yes; then | |
1776 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
1777 | else | |
1778 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
1779 | fi | |
1780 | ||
1781 | else | |
1782 | ||
1783 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
1784 | if test "x$LINE" != x ; then | |
1785 | eval "DEFAULT_$LINE" | |
1786 | else | |
1787 | no_cache=1 | |
1788 | fi | |
1789 | ||
1790 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
1791 | ||
1792 | fi | |
1793 | ||
1794 | ||
1795 | eval "$ac_cv_use_opengl" | |
1796 | if test "$no_cache" != 1; then | |
1797 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
1798 | fi | |
1799 | ||
1800 | if test "$wxUSE_OPENGL" = yes; then | |
1801 | echo "$ac_t""yes" 1>&6 | |
1802 | else | |
1803 | echo "$ac_t""no" 1>&6 | |
1804 | fi | |
1805 | ||
1806 | ||
1807 | echo $ac_n "checking "for --with-odbc"""... $ac_c" 1>&6 | |
f512f90a | 1808 | echo "configure:1809: checking "for --with-odbc"" >&5 |
10f2d63a VZ |
1809 | no_cache=0 |
1810 | # Check whether --with-odbc or --without-odbc was given. | |
1811 | if test "${with_odbc+set}" = set; then | |
1812 | withval="$with_odbc" | |
1813 | ||
1814 | if test "$withval" = yes; then | |
1815 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
1816 | else | |
1817 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
1818 | fi | |
1819 | ||
1820 | else | |
1821 | ||
1822 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
1823 | if test "x$LINE" != x ; then | |
1824 | eval "DEFAULT_$LINE" | |
1825 | else | |
1826 | no_cache=1 | |
1827 | fi | |
1828 | ||
1829 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
1830 | ||
1831 | fi | |
1832 | ||
1833 | ||
1834 | eval "$ac_cv_use_odbc" | |
1835 | if test "$no_cache" != 1; then | |
1836 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
1837 | fi | |
1838 | ||
1839 | if test "$wxUSE_ODBC" = yes; then | |
1840 | echo "$ac_t""yes" 1>&6 | |
1841 | else | |
1842 | echo "$ac_t""no" 1>&6 | |
1843 | fi | |
1844 | ||
1845 | ||
1846 | ||
1847 | ||
1848 | ||
1849 | echo $ac_n "checking "for --enable-shared"""... $ac_c" 1>&6 | |
f512f90a | 1850 | echo "configure:1851: checking "for --enable-shared"" >&5 |
10f2d63a VZ |
1851 | no_cache=0 |
1852 | # Check whether --enable-shared or --disable-shared was given. | |
1853 | if test "${enable_shared+set}" = set; then | |
1854 | enableval="$enable_shared" | |
1855 | ||
1856 | if test "$enableval" = yes; then | |
1857 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
1858 | else | |
1859 | ac_cv_use_shared='wxUSE_SHARED=no' | |
1860 | fi | |
1861 | ||
1862 | else | |
1863 | ||
1864 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
1865 | if test "x$LINE" != x ; then | |
1866 | eval "DEFAULT_$LINE" | |
1867 | else | |
1868 | no_cache=1 | |
1869 | fi | |
1870 | ||
1871 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
1872 | ||
1873 | fi | |
1874 | ||
1875 | ||
1876 | eval "$ac_cv_use_shared" | |
1877 | if test "$no_cache" != 1; then | |
1878 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
1879 | fi | |
1880 | ||
1881 | if test "$wxUSE_SHARED" = yes; then | |
1882 | echo "$ac_t""yes" 1>&6 | |
1883 | else | |
1884 | echo "$ac_t""no" 1>&6 | |
1885 | fi | |
1886 | ||
1887 | ||
1888 | echo $ac_n "checking "for --enable-optimise"""... $ac_c" 1>&6 | |
f512f90a | 1889 | echo "configure:1890: checking "for --enable-optimise"" >&5 |
10f2d63a VZ |
1890 | no_cache=0 |
1891 | # Check whether --enable-optimise or --disable-optimise was given. | |
1892 | if test "${enable_optimise+set}" = set; then | |
1893 | enableval="$enable_optimise" | |
1894 | ||
1895 | if test "$enableval" = yes; then | |
1896 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
1897 | else | |
1898 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
1899 | fi | |
1900 | ||
1901 | else | |
1902 | ||
1903 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
1904 | if test "x$LINE" != x ; then | |
1905 | eval "DEFAULT_$LINE" | |
1906 | else | |
1907 | no_cache=1 | |
1908 | fi | |
1909 | ||
1910 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
1911 | ||
1912 | fi | |
1913 | ||
1914 | ||
1915 | eval "$ac_cv_use_optimise" | |
1916 | if test "$no_cache" != 1; then | |
1917 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
1918 | fi | |
1919 | ||
1920 | if test "$wxUSE_OPTIMISE" = yes; then | |
1921 | echo "$ac_t""yes" 1>&6 | |
1922 | else | |
1923 | echo "$ac_t""no" 1>&6 | |
1924 | fi | |
1925 | ||
1926 | ||
1927 | echo $ac_n "checking "for --enable-debug"""... $ac_c" 1>&6 | |
f512f90a | 1928 | echo "configure:1929: checking "for --enable-debug"" >&5 |
10f2d63a VZ |
1929 | no_cache=0 |
1930 | # Check whether --enable-debug or --disable-debug was given. | |
1931 | if test "${enable_debug+set}" = set; then | |
1932 | enableval="$enable_debug" | |
1933 | ||
1934 | if test "$enableval" = yes; then | |
1935 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
1936 | else | |
1937 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
1938 | fi | |
1939 | ||
1940 | else | |
1941 | ||
1942 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
1943 | if test "x$LINE" != x ; then | |
1944 | eval "DEFAULT_$LINE" | |
1945 | else | |
1946 | no_cache=1 | |
1947 | fi | |
1948 | ||
1949 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
1950 | ||
1951 | fi | |
1952 | ||
1953 | ||
1954 | eval "$ac_cv_use_debug" | |
1955 | if test "$no_cache" != 1; then | |
1956 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
1957 | fi | |
1958 | ||
1959 | if test "$wxUSE_DEBUG" = yes; then | |
1960 | echo "$ac_t""yes" 1>&6 | |
1961 | else | |
1962 | echo "$ac_t""no" 1>&6 | |
1963 | fi | |
1964 | ||
1965 | ||
1966 | if test "$wxUSE_DEBUG" = "yes"; then | |
1967 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1968 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1969 | elif test "$wxUSE_DEBUG" = "no"; then | |
1970 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1971 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1972 | fi | |
1973 | ||
1974 | ||
1975 | echo $ac_n "checking "for --enable-debug_flag"""... $ac_c" 1>&6 | |
f512f90a | 1976 | echo "configure:1977: checking "for --enable-debug_flag"" >&5 |
10f2d63a VZ |
1977 | no_cache=0 |
1978 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
1979 | if test "${enable_debug_flag+set}" = set; then | |
1980 | enableval="$enable_debug_flag" | |
1981 | ||
1982 | if test "$enableval" = yes; then | |
1983 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
1984 | else | |
1985 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
1986 | fi | |
1987 | ||
1988 | else | |
1989 | ||
1990 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
1991 | if test "x$LINE" != x ; then | |
1992 | eval "DEFAULT_$LINE" | |
1993 | else | |
1994 | no_cache=1 | |
1995 | fi | |
1996 | ||
1997 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
1998 | ||
1999 | fi | |
2000 | ||
2001 | ||
2002 | eval "$ac_cv_use_debug_flag" | |
2003 | if test "$no_cache" != 1; then | |
2004 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2005 | fi | |
2006 | ||
2007 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
2008 | echo "$ac_t""yes" 1>&6 | |
2009 | else | |
2010 | echo "$ac_t""no" 1>&6 | |
2011 | fi | |
2012 | ||
2013 | ||
2014 | echo $ac_n "checking "for --enable-debug_info"""... $ac_c" 1>&6 | |
f512f90a | 2015 | echo "configure:2016: checking "for --enable-debug_info"" >&5 |
10f2d63a VZ |
2016 | no_cache=0 |
2017 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2018 | if test "${enable_debug_info+set}" = set; then | |
2019 | enableval="$enable_debug_info" | |
2020 | ||
2021 | if test "$enableval" = yes; then | |
2022 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2023 | else | |
2024 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2025 | fi | |
2026 | ||
2027 | else | |
2028 | ||
2029 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
2030 | if test "x$LINE" != x ; then | |
2031 | eval "DEFAULT_$LINE" | |
2032 | else | |
2033 | no_cache=1 | |
2034 | fi | |
2035 | ||
2036 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
2037 | ||
2038 | fi | |
2039 | ||
2040 | ||
2041 | eval "$ac_cv_use_debug_info" | |
2042 | if test "$no_cache" != 1; then | |
2043 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2044 | fi | |
2045 | ||
2046 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
2047 | echo "$ac_t""yes" 1>&6 | |
2048 | else | |
2049 | echo "$ac_t""no" 1>&6 | |
2050 | fi | |
2051 | ||
2052 | ||
2053 | echo $ac_n "checking "for --enable-debug_gdb"""... $ac_c" 1>&6 | |
f512f90a | 2054 | echo "configure:2055: checking "for --enable-debug_gdb"" >&5 |
10f2d63a VZ |
2055 | no_cache=0 |
2056 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2057 | if test "${enable_debug_gdb+set}" = set; then | |
2058 | enableval="$enable_debug_gdb" | |
2059 | ||
2060 | if test "$enableval" = yes; then | |
2061 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2062 | else | |
2063 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2064 | fi | |
2065 | ||
2066 | else | |
2067 | ||
2068 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
2069 | if test "x$LINE" != x ; then | |
2070 | eval "DEFAULT_$LINE" | |
2071 | else | |
2072 | no_cache=1 | |
2073 | fi | |
2074 | ||
2075 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
2076 | ||
2077 | fi | |
2078 | ||
2079 | ||
2080 | eval "$ac_cv_use_debug_gdb" | |
2081 | if test "$no_cache" != 1; then | |
2082 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2083 | fi | |
2084 | ||
2085 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
2086 | echo "$ac_t""yes" 1>&6 | |
2087 | else | |
2088 | echo "$ac_t""no" 1>&6 | |
2089 | fi | |
2090 | ||
2091 | ||
2092 | echo $ac_n "checking "for --enable-debug_cntxt"""... $ac_c" 1>&6 | |
f512f90a | 2093 | echo "configure:2094: checking "for --enable-debug_cntxt"" >&5 |
10f2d63a VZ |
2094 | no_cache=0 |
2095 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2096 | if test "${enable_debug_cntxt+set}" = set; then | |
2097 | enableval="$enable_debug_cntxt" | |
2098 | ||
2099 | if test "$enableval" = yes; then | |
2100 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2101 | else | |
2102 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2103 | fi | |
2104 | ||
2105 | else | |
2106 | ||
2107 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
2108 | if test "x$LINE" != x ; then | |
2109 | eval "DEFAULT_$LINE" | |
2110 | else | |
2111 | no_cache=1 | |
2112 | fi | |
2113 | ||
2114 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
2115 | ||
2116 | fi | |
2117 | ||
2118 | ||
2119 | eval "$ac_cv_use_debug_cntxt" | |
2120 | if test "$no_cache" != 1; then | |
2121 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2122 | fi | |
2123 | ||
2124 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
2125 | echo "$ac_t""yes" 1>&6 | |
2126 | else | |
2127 | echo "$ac_t""no" 1>&6 | |
2128 | fi | |
2129 | ||
2130 | ||
2131 | echo $ac_n "checking "for --enable-mem_tracing"""... $ac_c" 1>&6 | |
f512f90a | 2132 | echo "configure:2133: checking "for --enable-mem_tracing"" >&5 |
10f2d63a VZ |
2133 | no_cache=0 |
2134 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2135 | if test "${enable_mem_tracing+set}" = set; then | |
2136 | enableval="$enable_mem_tracing" | |
2137 | ||
2138 | if test "$enableval" = yes; then | |
2139 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2140 | else | |
2141 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2142 | fi | |
2143 | ||
2144 | else | |
2145 | ||
2146 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
2147 | if test "x$LINE" != x ; then | |
2148 | eval "DEFAULT_$LINE" | |
2149 | else | |
2150 | no_cache=1 | |
2151 | fi | |
2152 | ||
2153 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
2154 | ||
2155 | fi | |
2156 | ||
2157 | ||
2158 | eval "$ac_cv_use_mem_tracing" | |
2159 | if test "$no_cache" != 1; then | |
2160 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2161 | fi | |
2162 | ||
2163 | if test "$wxUSE_MEM_TRACING" = yes; then | |
2164 | echo "$ac_t""yes" 1>&6 | |
2165 | else | |
2166 | echo "$ac_t""no" 1>&6 | |
2167 | fi | |
2168 | ||
2169 | ||
2170 | echo $ac_n "checking "for --enable-profile"""... $ac_c" 1>&6 | |
f512f90a | 2171 | echo "configure:2172: checking "for --enable-profile"" >&5 |
10f2d63a VZ |
2172 | no_cache=0 |
2173 | # Check whether --enable-profile or --disable-profile was given. | |
2174 | if test "${enable_profile+set}" = set; then | |
2175 | enableval="$enable_profile" | |
2176 | ||
2177 | if test "$enableval" = yes; then | |
2178 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2179 | else | |
2180 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2181 | fi | |
2182 | ||
2183 | else | |
2184 | ||
2185 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
2186 | if test "x$LINE" != x ; then | |
2187 | eval "DEFAULT_$LINE" | |
2188 | else | |
2189 | no_cache=1 | |
2190 | fi | |
2191 | ||
2192 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
2193 | ||
2194 | fi | |
2195 | ||
2196 | ||
2197 | eval "$ac_cv_use_profile" | |
2198 | if test "$no_cache" != 1; then | |
2199 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2200 | fi | |
2201 | ||
2202 | if test "$wxUSE_PROFILE" = yes; then | |
2203 | echo "$ac_t""yes" 1>&6 | |
2204 | else | |
2205 | echo "$ac_t""no" 1>&6 | |
2206 | fi | |
2207 | ||
2208 | ||
2209 | echo $ac_n "checking "for --enable-no_rtti"""... $ac_c" 1>&6 | |
f512f90a | 2210 | echo "configure:2211: checking "for --enable-no_rtti"" >&5 |
10f2d63a VZ |
2211 | no_cache=0 |
2212 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2213 | if test "${enable_no_rtti+set}" = set; then | |
2214 | enableval="$enable_no_rtti" | |
2215 | ||
2216 | if test "$enableval" = yes; then | |
2217 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2218 | else | |
2219 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2220 | fi | |
2221 | ||
2222 | else | |
2223 | ||
2224 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
2225 | if test "x$LINE" != x ; then | |
2226 | eval "DEFAULT_$LINE" | |
2227 | else | |
2228 | no_cache=1 | |
2229 | fi | |
2230 | ||
2231 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
2232 | ||
2233 | fi | |
2234 | ||
2235 | ||
2236 | eval "$ac_cv_use_no_rtti" | |
2237 | if test "$no_cache" != 1; then | |
2238 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2239 | fi | |
2240 | ||
2241 | if test "$wxUSE_NO_RTTI" = yes; then | |
2242 | echo "$ac_t""yes" 1>&6 | |
2243 | else | |
2244 | echo "$ac_t""no" 1>&6 | |
2245 | fi | |
2246 | ||
2247 | ||
2248 | echo $ac_n "checking "for --enable-no_exceptions"""... $ac_c" 1>&6 | |
f512f90a | 2249 | echo "configure:2250: checking "for --enable-no_exceptions"" >&5 |
10f2d63a VZ |
2250 | no_cache=0 |
2251 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2252 | if test "${enable_no_exceptions+set}" = set; then | |
2253 | enableval="$enable_no_exceptions" | |
2254 | ||
2255 | if test "$enableval" = yes; then | |
2256 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2257 | else | |
2258 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2259 | fi | |
2260 | ||
2261 | else | |
2262 | ||
2263 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
2264 | if test "x$LINE" != x ; then | |
2265 | eval "DEFAULT_$LINE" | |
2266 | else | |
2267 | no_cache=1 | |
2268 | fi | |
2269 | ||
2270 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
2271 | ||
2272 | fi | |
2273 | ||
2274 | ||
2275 | eval "$ac_cv_use_no_exceptions" | |
2276 | if test "$no_cache" != 1; then | |
2277 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2278 | fi | |
2279 | ||
2280 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
2281 | echo "$ac_t""yes" 1>&6 | |
2282 | else | |
2283 | echo "$ac_t""no" 1>&6 | |
2284 | fi | |
2285 | ||
2286 | ||
2287 | echo $ac_n "checking "for --enable-permissive"""... $ac_c" 1>&6 | |
f512f90a | 2288 | echo "configure:2289: checking "for --enable-permissive"" >&5 |
10f2d63a VZ |
2289 | no_cache=0 |
2290 | # Check whether --enable-permissive or --disable-permissive was given. | |
2291 | if test "${enable_permissive+set}" = set; then | |
2292 | enableval="$enable_permissive" | |
2293 | ||
2294 | if test "$enableval" = yes; then | |
2295 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2296 | else | |
2297 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2298 | fi | |
2299 | ||
2300 | else | |
2301 | ||
2302 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
2303 | if test "x$LINE" != x ; then | |
2304 | eval "DEFAULT_$LINE" | |
2305 | else | |
2306 | no_cache=1 | |
2307 | fi | |
2308 | ||
2309 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
2310 | ||
2311 | fi | |
2312 | ||
2313 | ||
2314 | eval "$ac_cv_use_permissive" | |
2315 | if test "$no_cache" != 1; then | |
2316 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2317 | fi | |
2318 | ||
2319 | if test "$wxUSE_PERMISSIVE" = yes; then | |
2320 | echo "$ac_t""yes" 1>&6 | |
2321 | else | |
2322 | echo "$ac_t""no" 1>&6 | |
2323 | fi | |
2324 | ||
2325 | ||
2326 | echo $ac_n "checking "for --enable-no_deps"""... $ac_c" 1>&6 | |
f512f90a | 2327 | echo "configure:2328: checking "for --enable-no_deps"" >&5 |
10f2d63a VZ |
2328 | no_cache=0 |
2329 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2330 | if test "${enable_no_deps+set}" = set; then | |
2331 | enableval="$enable_no_deps" | |
2332 | ||
2333 | if test "$enableval" = yes; then | |
2334 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2335 | else | |
2336 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2337 | fi | |
2338 | ||
2339 | else | |
2340 | ||
2341 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
2342 | if test "x$LINE" != x ; then | |
2343 | eval "DEFAULT_$LINE" | |
2344 | else | |
2345 | no_cache=1 | |
2346 | fi | |
2347 | ||
2348 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
2349 | ||
2350 | fi | |
2351 | ||
2352 | ||
2353 | eval "$ac_cv_use_no_deps" | |
2354 | if test "$no_cache" != 1; then | |
2355 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2356 | fi | |
2357 | ||
2358 | if test "$wxUSE_NO_DEPS" = yes; then | |
2359 | echo "$ac_t""yes" 1>&6 | |
2360 | else | |
2361 | echo "$ac_t""no" 1>&6 | |
2362 | fi | |
2363 | ||
2364 | ||
2365 | ||
2366 | ||
2367 | echo $ac_n "checking "for --enable-intl"""... $ac_c" 1>&6 | |
f512f90a | 2368 | echo "configure:2369: checking "for --enable-intl"" >&5 |
10f2d63a VZ |
2369 | no_cache=0 |
2370 | # Check whether --enable-intl or --disable-intl was given. | |
2371 | if test "${enable_intl+set}" = set; then | |
2372 | enableval="$enable_intl" | |
2373 | ||
2374 | if test "$enableval" = yes; then | |
2375 | ac_cv_use_intl='wxUSE_INTL=yes' | |
2376 | else | |
2377 | ac_cv_use_intl='wxUSE_INTL=no' | |
2378 | fi | |
2379 | ||
2380 | else | |
2381 | ||
2382 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
2383 | if test "x$LINE" != x ; then | |
2384 | eval "DEFAULT_$LINE" | |
2385 | else | |
2386 | no_cache=1 | |
2387 | fi | |
2388 | ||
2389 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
2390 | ||
2391 | fi | |
2392 | ||
2393 | ||
2394 | eval "$ac_cv_use_intl" | |
2395 | if test "$no_cache" != 1; then | |
2396 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
2397 | fi | |
2398 | ||
2399 | if test "$wxUSE_INTL" = yes; then | |
2400 | echo "$ac_t""yes" 1>&6 | |
2401 | else | |
2402 | echo "$ac_t""no" 1>&6 | |
2403 | fi | |
2404 | ||
2405 | ||
2406 | echo $ac_n "checking "for --enable-config"""... $ac_c" 1>&6 | |
f512f90a | 2407 | echo "configure:2408: checking "for --enable-config"" >&5 |
10f2d63a VZ |
2408 | no_cache=0 |
2409 | # Check whether --enable-config or --disable-config was given. | |
2410 | if test "${enable_config+set}" = set; then | |
2411 | enableval="$enable_config" | |
2412 | ||
2413 | if test "$enableval" = yes; then | |
2414 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
2415 | else | |
2416 | ac_cv_use_config='wxUSE_CONFIG=no' | |
2417 | fi | |
2418 | ||
2419 | else | |
2420 | ||
2421 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
2422 | if test "x$LINE" != x ; then | |
2423 | eval "DEFAULT_$LINE" | |
2424 | else | |
2425 | no_cache=1 | |
2426 | fi | |
2427 | ||
2428 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
2429 | ||
2430 | fi | |
2431 | ||
2432 | ||
2433 | eval "$ac_cv_use_config" | |
2434 | if test "$no_cache" != 1; then | |
2435 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
2436 | fi | |
2437 | ||
2438 | if test "$wxUSE_CONFIG" = yes; then | |
2439 | echo "$ac_t""yes" 1>&6 | |
2440 | else | |
2441 | echo "$ac_t""no" 1>&6 | |
2442 | fi | |
2443 | ||
2444 | ||
2445 | echo $ac_n "checking "for --enable-sockets"""... $ac_c" 1>&6 | |
f512f90a | 2446 | echo "configure:2447: checking "for --enable-sockets"" >&5 |
10f2d63a VZ |
2447 | no_cache=0 |
2448 | # Check whether --enable-sockets or --disable-sockets was given. | |
2449 | if test "${enable_sockets+set}" = set; then | |
2450 | enableval="$enable_sockets" | |
2451 | ||
2452 | if test "$enableval" = yes; then | |
2453 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
2454 | else | |
2455 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
2456 | fi | |
2457 | ||
2458 | else | |
2459 | ||
2460 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
2461 | if test "x$LINE" != x ; then | |
2462 | eval "DEFAULT_$LINE" | |
2463 | else | |
2464 | no_cache=1 | |
2465 | fi | |
2466 | ||
2467 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
2468 | ||
2469 | fi | |
2470 | ||
2471 | ||
2472 | eval "$ac_cv_use_sockets" | |
2473 | if test "$no_cache" != 1; then | |
2474 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
2475 | fi | |
2476 | ||
2477 | if test "$wxUSE_SOCKETS" = yes; then | |
2478 | echo "$ac_t""yes" 1>&6 | |
2479 | else | |
2480 | echo "$ac_t""no" 1>&6 | |
2481 | fi | |
2482 | ||
2483 | ||
2484 | echo $ac_n "checking "for --enable-dialupman"""... $ac_c" 1>&6 | |
f512f90a | 2485 | echo "configure:2486: checking "for --enable-dialupman"" >&5 |
10f2d63a VZ |
2486 | no_cache=0 |
2487 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
2488 | if test "${enable_dialupman+set}" = set; then | |
2489 | enableval="$enable_dialupman" | |
2490 | ||
2491 | if test "$enableval" = yes; then | |
2492 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
2493 | else | |
2494 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
2495 | fi | |
2496 | ||
2497 | else | |
2498 | ||
2499 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
2500 | if test "x$LINE" != x ; then | |
2501 | eval "DEFAULT_$LINE" | |
2502 | else | |
2503 | no_cache=1 | |
2504 | fi | |
2505 | ||
2506 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
2507 | ||
2508 | fi | |
2509 | ||
2510 | ||
2511 | eval "$ac_cv_use_dialupman" | |
2512 | if test "$no_cache" != 1; then | |
2513 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
2514 | fi | |
2515 | ||
2516 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
2517 | echo "$ac_t""yes" 1>&6 | |
2518 | else | |
2519 | echo "$ac_t""no" 1>&6 | |
2520 | fi | |
2521 | ||
2522 | ||
2523 | echo $ac_n "checking "for --enable-ipc"""... $ac_c" 1>&6 | |
f512f90a | 2524 | echo "configure:2525: checking "for --enable-ipc"" >&5 |
10f2d63a VZ |
2525 | no_cache=0 |
2526 | # Check whether --enable-ipc or --disable-ipc was given. | |
2527 | if test "${enable_ipc+set}" = set; then | |
2528 | enableval="$enable_ipc" | |
2529 | ||
2530 | if test "$enableval" = yes; then | |
2531 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
2532 | else | |
2533 | ac_cv_use_ipc='wxUSE_IPC=no' | |
2534 | fi | |
2535 | ||
2536 | else | |
2537 | ||
2538 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
2539 | if test "x$LINE" != x ; then | |
2540 | eval "DEFAULT_$LINE" | |
2541 | else | |
2542 | no_cache=1 | |
2543 | fi | |
2544 | ||
2545 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
2546 | ||
2547 | fi | |
2548 | ||
2549 | ||
2550 | eval "$ac_cv_use_ipc" | |
2551 | if test "$no_cache" != 1; then | |
2552 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
2553 | fi | |
2554 | ||
2555 | if test "$wxUSE_IPC" = yes; then | |
2556 | echo "$ac_t""yes" 1>&6 | |
2557 | else | |
2558 | echo "$ac_t""no" 1>&6 | |
2559 | fi | |
2560 | ||
2561 | ||
2562 | echo $ac_n "checking "for --enable-apple_ieee"""... $ac_c" 1>&6 | |
f512f90a | 2563 | echo "configure:2564: checking "for --enable-apple_ieee"" >&5 |
10f2d63a VZ |
2564 | no_cache=0 |
2565 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
2566 | if test "${enable_apple_ieee+set}" = set; then | |
2567 | enableval="$enable_apple_ieee" | |
2568 | ||
2569 | if test "$enableval" = yes; then | |
2570 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
2571 | else | |
2572 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
2573 | fi | |
2574 | ||
2575 | else | |
2576 | ||
2577 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
2578 | if test "x$LINE" != x ; then | |
2579 | eval "DEFAULT_$LINE" | |
2580 | else | |
2581 | no_cache=1 | |
2582 | fi | |
2583 | ||
2584 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
2585 | ||
2586 | fi | |
2587 | ||
2588 | ||
2589 | eval "$ac_cv_use_apple_ieee" | |
2590 | if test "$no_cache" != 1; then | |
2591 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
2592 | fi | |
2593 | ||
2594 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
2595 | echo "$ac_t""yes" 1>&6 | |
2596 | else | |
2597 | echo "$ac_t""no" 1>&6 | |
2598 | fi | |
2599 | ||
2600 | ||
2601 | echo $ac_n "checking "for --enable-timedate"""... $ac_c" 1>&6 | |
f512f90a | 2602 | echo "configure:2603: checking "for --enable-timedate"" >&5 |
10f2d63a VZ |
2603 | no_cache=0 |
2604 | # Check whether --enable-timedate or --disable-timedate was given. | |
2605 | if test "${enable_timedate+set}" = set; then | |
2606 | enableval="$enable_timedate" | |
2607 | ||
2608 | if test "$enableval" = yes; then | |
2609 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
2610 | else | |
2611 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
2612 | fi | |
2613 | ||
2614 | else | |
2615 | ||
2616 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` | |
2617 | if test "x$LINE" != x ; then | |
2618 | eval "DEFAULT_$LINE" | |
2619 | else | |
2620 | no_cache=1 | |
2621 | fi | |
2622 | ||
2623 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
2624 | ||
2625 | fi | |
2626 | ||
2627 | ||
2628 | eval "$ac_cv_use_timedate" | |
2629 | if test "$no_cache" != 1; then | |
2630 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
2631 | fi | |
2632 | ||
2633 | if test "$wxUSE_TIMEDATE" = yes; then | |
2634 | echo "$ac_t""yes" 1>&6 | |
2635 | else | |
2636 | echo "$ac_t""no" 1>&6 | |
2637 | fi | |
2638 | ||
2639 | ||
2640 | echo $ac_n "checking "for --enable-wave"""... $ac_c" 1>&6 | |
f512f90a | 2641 | echo "configure:2642: checking "for --enable-wave"" >&5 |
10f2d63a VZ |
2642 | no_cache=0 |
2643 | # Check whether --enable-wave or --disable-wave was given. | |
2644 | if test "${enable_wave+set}" = set; then | |
2645 | enableval="$enable_wave" | |
2646 | ||
2647 | if test "$enableval" = yes; then | |
2648 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
2649 | else | |
2650 | ac_cv_use_wave='wxUSE_WAVE=no' | |
2651 | fi | |
2652 | ||
2653 | else | |
2654 | ||
2655 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
2656 | if test "x$LINE" != x ; then | |
2657 | eval "DEFAULT_$LINE" | |
2658 | else | |
2659 | no_cache=1 | |
2660 | fi | |
2661 | ||
2662 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
2663 | ||
2664 | fi | |
2665 | ||
2666 | ||
2667 | eval "$ac_cv_use_wave" | |
2668 | if test "$no_cache" != 1; then | |
2669 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
2670 | fi | |
2671 | ||
2672 | if test "$wxUSE_WAVE" = yes; then | |
2673 | echo "$ac_t""yes" 1>&6 | |
2674 | else | |
2675 | echo "$ac_t""no" 1>&6 | |
2676 | fi | |
2677 | ||
2678 | ||
2679 | echo $ac_n "checking "for --enable-fraction"""... $ac_c" 1>&6 | |
f512f90a | 2680 | echo "configure:2681: checking "for --enable-fraction"" >&5 |
10f2d63a VZ |
2681 | no_cache=0 |
2682 | # Check whether --enable-fraction or --disable-fraction was given. | |
2683 | if test "${enable_fraction+set}" = set; then | |
2684 | enableval="$enable_fraction" | |
2685 | ||
2686 | if test "$enableval" = yes; then | |
2687 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
2688 | else | |
2689 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
2690 | fi | |
2691 | ||
2692 | else | |
2693 | ||
2694 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` | |
2695 | if test "x$LINE" != x ; then | |
2696 | eval "DEFAULT_$LINE" | |
2697 | else | |
2698 | no_cache=1 | |
2699 | fi | |
2700 | ||
2701 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
2702 | ||
2703 | fi | |
2704 | ||
2705 | ||
2706 | eval "$ac_cv_use_fraction" | |
2707 | if test "$no_cache" != 1; then | |
2708 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
2709 | fi | |
2710 | ||
2711 | if test "$wxUSE_FRACTION" = yes; then | |
2712 | echo "$ac_t""yes" 1>&6 | |
2713 | else | |
2714 | echo "$ac_t""no" 1>&6 | |
2715 | fi | |
2716 | ||
2717 | ||
2718 | echo $ac_n "checking "for --enable-dynlib"""... $ac_c" 1>&6 | |
f512f90a | 2719 | echo "configure:2720: checking "for --enable-dynlib"" >&5 |
10f2d63a VZ |
2720 | no_cache=0 |
2721 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
2722 | if test "${enable_dynlib+set}" = set; then | |
2723 | enableval="$enable_dynlib" | |
2724 | ||
2725 | if test "$enableval" = yes; then | |
2726 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
2727 | else | |
2728 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
2729 | fi | |
2730 | ||
2731 | else | |
2732 | ||
2733 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
2734 | if test "x$LINE" != x ; then | |
2735 | eval "DEFAULT_$LINE" | |
2736 | else | |
2737 | no_cache=1 | |
2738 | fi | |
2739 | ||
2740 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
2741 | ||
2742 | fi | |
2743 | ||
2744 | ||
2745 | eval "$ac_cv_use_dynlib" | |
2746 | if test "$no_cache" != 1; then | |
2747 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
2748 | fi | |
2749 | ||
2750 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
2751 | echo "$ac_t""yes" 1>&6 | |
2752 | else | |
2753 | echo "$ac_t""no" 1>&6 | |
2754 | fi | |
2755 | ||
2756 | ||
2757 | echo $ac_n "checking "for --enable-longlong"""... $ac_c" 1>&6 | |
f512f90a | 2758 | echo "configure:2759: checking "for --enable-longlong"" >&5 |
10f2d63a VZ |
2759 | no_cache=0 |
2760 | # Check whether --enable-longlong or --disable-longlong was given. | |
2761 | if test "${enable_longlong+set}" = set; then | |
2762 | enableval="$enable_longlong" | |
2763 | ||
2764 | if test "$enableval" = yes; then | |
2765 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
2766 | else | |
2767 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
2768 | fi | |
2769 | ||
2770 | else | |
2771 | ||
2772 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
2773 | if test "x$LINE" != x ; then | |
2774 | eval "DEFAULT_$LINE" | |
2775 | else | |
2776 | no_cache=1 | |
2777 | fi | |
2778 | ||
2779 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
2780 | ||
2781 | fi | |
2782 | ||
2783 | ||
2784 | eval "$ac_cv_use_longlong" | |
2785 | if test "$no_cache" != 1; then | |
2786 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
2787 | fi | |
2788 | ||
2789 | if test "$wxUSE_LONGLONG" = yes; then | |
2790 | echo "$ac_t""yes" 1>&6 | |
2791 | else | |
2792 | echo "$ac_t""no" 1>&6 | |
2793 | fi | |
2794 | ||
2795 | ||
2796 | echo $ac_n "checking "for --enable-log"""... $ac_c" 1>&6 | |
f512f90a | 2797 | echo "configure:2798: checking "for --enable-log"" >&5 |
10f2d63a VZ |
2798 | no_cache=0 |
2799 | # Check whether --enable-log or --disable-log was given. | |
2800 | if test "${enable_log+set}" = set; then | |
2801 | enableval="$enable_log" | |
2802 | ||
2803 | if test "$enableval" = yes; then | |
2804 | ac_cv_use_log='wxUSE_LOG=yes' | |
2805 | else | |
2806 | ac_cv_use_log='wxUSE_LOG=no' | |
2807 | fi | |
2808 | ||
2809 | else | |
2810 | ||
2811 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
2812 | if test "x$LINE" != x ; then | |
2813 | eval "DEFAULT_$LINE" | |
2814 | else | |
2815 | no_cache=1 | |
2816 | fi | |
2817 | ||
2818 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
2819 | ||
2820 | fi | |
2821 | ||
2822 | ||
2823 | eval "$ac_cv_use_log" | |
2824 | if test "$no_cache" != 1; then | |
2825 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
2826 | fi | |
2827 | ||
2828 | if test "$wxUSE_LOG" = yes; then | |
2829 | echo "$ac_t""yes" 1>&6 | |
2830 | else | |
2831 | echo "$ac_t""no" 1>&6 | |
2832 | fi | |
2833 | ||
2834 | ||
2835 | echo $ac_n "checking "for --enable-streams"""... $ac_c" 1>&6 | |
f512f90a | 2836 | echo "configure:2837: checking "for --enable-streams"" >&5 |
10f2d63a VZ |
2837 | no_cache=0 |
2838 | # Check whether --enable-streams or --disable-streams was given. | |
2839 | if test "${enable_streams+set}" = set; then | |
2840 | enableval="$enable_streams" | |
2841 | ||
2842 | if test "$enableval" = yes; then | |
2843 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
2844 | else | |
2845 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
2846 | fi | |
2847 | ||
2848 | else | |
2849 | ||
2850 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
2851 | if test "x$LINE" != x ; then | |
2852 | eval "DEFAULT_$LINE" | |
2853 | else | |
2854 | no_cache=1 | |
2855 | fi | |
2856 | ||
2857 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
2858 | ||
2859 | fi | |
2860 | ||
2861 | ||
2862 | eval "$ac_cv_use_streams" | |
2863 | if test "$no_cache" != 1; then | |
2864 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
2865 | fi | |
2866 | ||
2867 | if test "$wxUSE_STREAMS" = yes; then | |
2868 | echo "$ac_t""yes" 1>&6 | |
2869 | else | |
2870 | echo "$ac_t""no" 1>&6 | |
2871 | fi | |
2872 | ||
2873 | ||
2874 | echo $ac_n "checking "for --enable-file"""... $ac_c" 1>&6 | |
f512f90a | 2875 | echo "configure:2876: checking "for --enable-file"" >&5 |
10f2d63a VZ |
2876 | no_cache=0 |
2877 | # Check whether --enable-file or --disable-file was given. | |
2878 | if test "${enable_file+set}" = set; then | |
2879 | enableval="$enable_file" | |
2880 | ||
2881 | if test "$enableval" = yes; then | |
2882 | ac_cv_use_file='wxUSE_FILE=yes' | |
2883 | else | |
2884 | ac_cv_use_file='wxUSE_FILE=no' | |
2885 | fi | |
2886 | ||
2887 | else | |
2888 | ||
2889 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
2890 | if test "x$LINE" != x ; then | |
2891 | eval "DEFAULT_$LINE" | |
2892 | else | |
2893 | no_cache=1 | |
2894 | fi | |
2895 | ||
2896 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
2897 | ||
2898 | fi | |
2899 | ||
2900 | ||
2901 | eval "$ac_cv_use_file" | |
2902 | if test "$no_cache" != 1; then | |
2903 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
2904 | fi | |
2905 | ||
2906 | if test "$wxUSE_FILE" = yes; then | |
2907 | echo "$ac_t""yes" 1>&6 | |
2908 | else | |
2909 | echo "$ac_t""no" 1>&6 | |
2910 | fi | |
2911 | ||
2912 | ||
2913 | echo $ac_n "checking "for --enable-textfile"""... $ac_c" 1>&6 | |
f512f90a | 2914 | echo "configure:2915: checking "for --enable-textfile"" >&5 |
10f2d63a VZ |
2915 | no_cache=0 |
2916 | # Check whether --enable-textfile or --disable-textfile was given. | |
2917 | if test "${enable_textfile+set}" = set; then | |
2918 | enableval="$enable_textfile" | |
2919 | ||
2920 | if test "$enableval" = yes; then | |
2921 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
2922 | else | |
2923 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
2924 | fi | |
2925 | ||
2926 | else | |
2927 | ||
2928 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
2929 | if test "x$LINE" != x ; then | |
2930 | eval "DEFAULT_$LINE" | |
2931 | else | |
2932 | no_cache=1 | |
2933 | fi | |
2934 | ||
2935 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
2936 | ||
2937 | fi | |
2938 | ||
2939 | ||
2940 | eval "$ac_cv_use_textfile" | |
2941 | if test "$no_cache" != 1; then | |
2942 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
2943 | fi | |
2944 | ||
2945 | if test "$wxUSE_TEXTFILE" = yes; then | |
2946 | echo "$ac_t""yes" 1>&6 | |
2947 | else | |
2948 | echo "$ac_t""no" 1>&6 | |
2949 | fi | |
2950 | ||
2951 | ||
2952 | echo $ac_n "checking "for --enable-unicode"""... $ac_c" 1>&6 | |
f512f90a | 2953 | echo "configure:2954: checking "for --enable-unicode"" >&5 |
10f2d63a VZ |
2954 | no_cache=0 |
2955 | # Check whether --enable-unicode or --disable-unicode was given. | |
2956 | if test "${enable_unicode+set}" = set; then | |
2957 | enableval="$enable_unicode" | |
2958 | ||
2959 | if test "$enableval" = yes; then | |
2960 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
2961 | else | |
2962 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
2963 | fi | |
2964 | ||
2965 | else | |
2966 | ||
2967 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
2968 | if test "x$LINE" != x ; then | |
2969 | eval "DEFAULT_$LINE" | |
2970 | else | |
2971 | no_cache=1 | |
2972 | fi | |
2973 | ||
2974 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
2975 | ||
2976 | fi | |
2977 | ||
2978 | ||
2979 | eval "$ac_cv_use_unicode" | |
2980 | if test "$no_cache" != 1; then | |
2981 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
2982 | fi | |
2983 | ||
2984 | if test "$wxUSE_UNICODE" = yes; then | |
2985 | echo "$ac_t""yes" 1>&6 | |
2986 | else | |
2987 | echo "$ac_t""no" 1>&6 | |
2988 | fi | |
2989 | ||
2990 | ||
2991 | echo $ac_n "checking "for --enable-wcsrtombs"""... $ac_c" 1>&6 | |
f512f90a | 2992 | echo "configure:2993: checking "for --enable-wcsrtombs"" >&5 |
10f2d63a VZ |
2993 | no_cache=0 |
2994 | # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given. | |
2995 | if test "${enable_wcsrtombs+set}" = set; then | |
2996 | enableval="$enable_wcsrtombs" | |
2997 | ||
2998 | if test "$enableval" = yes; then | |
2999 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes' | |
3000 | else | |
3001 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no' | |
3002 | fi | |
3003 | ||
3004 | else | |
3005 | ||
3006 | LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}` | |
3007 | if test "x$LINE" != x ; then | |
3008 | eval "DEFAULT_$LINE" | |
3009 | else | |
3010 | no_cache=1 | |
3011 | fi | |
3012 | ||
3013 | ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS | |
3014 | ||
3015 | fi | |
3016 | ||
3017 | ||
3018 | eval "$ac_cv_use_wcsrtombs" | |
3019 | if test "$no_cache" != 1; then | |
3020 | echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp | |
3021 | fi | |
3022 | ||
3023 | if test "$wxUSE_WCSRTOMBS" = yes; then | |
3024 | echo "$ac_t""yes" 1>&6 | |
3025 | else | |
3026 | echo "$ac_t""no" 1>&6 | |
3027 | fi | |
3028 | ||
3029 | ||
3030 | echo $ac_n "checking "for --enable-wxprintfv"""... $ac_c" 1>&6 | |
f512f90a | 3031 | echo "configure:3032: checking "for --enable-wxprintfv"" >&5 |
10f2d63a VZ |
3032 | no_cache=0 |
3033 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
3034 | if test "${enable_wxprintfv+set}" = set; then | |
3035 | enableval="$enable_wxprintfv" | |
3036 | ||
3037 | if test "$enableval" = yes; then | |
3038 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
3039 | else | |
3040 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
3041 | fi | |
3042 | ||
3043 | else | |
3044 | ||
3045 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
3046 | if test "x$LINE" != x ; then | |
3047 | eval "DEFAULT_$LINE" | |
3048 | else | |
3049 | no_cache=1 | |
3050 | fi | |
3051 | ||
3052 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
3053 | ||
3054 | fi | |
3055 | ||
3056 | ||
3057 | eval "$ac_cv_use_wxprintfv" | |
3058 | if test "$no_cache" != 1; then | |
3059 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
3060 | fi | |
3061 | ||
3062 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
3063 | echo "$ac_t""yes" 1>&6 | |
3064 | else | |
3065 | echo "$ac_t""no" 1>&6 | |
3066 | fi | |
3067 | ||
3068 | ||
3069 | echo $ac_n "checking "for --enable-joystick"""... $ac_c" 1>&6 | |
f512f90a | 3070 | echo "configure:3071: checking "for --enable-joystick"" >&5 |
10f2d63a VZ |
3071 | no_cache=0 |
3072 | # Check whether --enable-joystick or --disable-joystick was given. | |
3073 | if test "${enable_joystick+set}" = set; then | |
3074 | enableval="$enable_joystick" | |
3075 | ||
3076 | if test "$enableval" = yes; then | |
3077 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
3078 | else | |
3079 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
3080 | fi | |
3081 | ||
3082 | else | |
3083 | ||
3084 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
3085 | if test "x$LINE" != x ; then | |
3086 | eval "DEFAULT_$LINE" | |
3087 | else | |
3088 | no_cache=1 | |
3089 | fi | |
3090 | ||
3091 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
3092 | ||
3093 | fi | |
3094 | ||
3095 | ||
3096 | eval "$ac_cv_use_joystick" | |
3097 | if test "$no_cache" != 1; then | |
3098 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
3099 | fi | |
3100 | ||
3101 | if test "$wxUSE_JOYSTICK" = yes; then | |
3102 | echo "$ac_t""yes" 1>&6 | |
3103 | else | |
3104 | echo "$ac_t""no" 1>&6 | |
3105 | fi | |
3106 | ||
3107 | ||
3108 | echo $ac_n "checking "for --enable-std_iostreams"""... $ac_c" 1>&6 | |
f512f90a | 3109 | echo "configure:3110: checking "for --enable-std_iostreams"" >&5 |
10f2d63a VZ |
3110 | no_cache=0 |
3111 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
3112 | if test "${enable_std_iostreams+set}" = set; then | |
3113 | enableval="$enable_std_iostreams" | |
3114 | ||
3115 | if test "$enableval" = yes; then | |
3116 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
3117 | else | |
3118 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
3119 | fi | |
3120 | ||
3121 | else | |
3122 | ||
3123 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
3124 | if test "x$LINE" != x ; then | |
3125 | eval "DEFAULT_$LINE" | |
3126 | else | |
3127 | no_cache=1 | |
3128 | fi | |
3129 | ||
3130 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
3131 | ||
3132 | fi | |
3133 | ||
3134 | ||
3135 | eval "$ac_cv_use_std_iostreams" | |
3136 | if test "$no_cache" != 1; then | |
3137 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
3138 | fi | |
3139 | ||
3140 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
3141 | echo "$ac_t""yes" 1>&6 | |
3142 | else | |
3143 | echo "$ac_t""no" 1>&6 | |
3144 | fi | |
3145 | ||
3146 | ||
3147 | echo $ac_n "checking "for --enable-fs_inet"""... $ac_c" 1>&6 | |
f512f90a | 3148 | echo "configure:3149: checking "for --enable-fs_inet"" >&5 |
10f2d63a VZ |
3149 | no_cache=0 |
3150 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
3151 | if test "${enable_fs_inet+set}" = set; then | |
3152 | enableval="$enable_fs_inet" | |
3153 | ||
3154 | if test "$enableval" = yes; then | |
3155 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
3156 | else | |
3157 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
3158 | fi | |
3159 | ||
3160 | else | |
3161 | ||
3162 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
3163 | if test "x$LINE" != x ; then | |
3164 | eval "DEFAULT_$LINE" | |
3165 | else | |
3166 | no_cache=1 | |
3167 | fi | |
3168 | ||
3169 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
3170 | ||
3171 | fi | |
3172 | ||
3173 | ||
3174 | eval "$ac_cv_use_fs_inet" | |
3175 | if test "$no_cache" != 1; then | |
3176 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
3177 | fi | |
3178 | ||
3179 | if test "$wxUSE_FS_INET" = yes; then | |
3180 | echo "$ac_t""yes" 1>&6 | |
3181 | else | |
3182 | echo "$ac_t""no" 1>&6 | |
3183 | fi | |
3184 | ||
3185 | ||
3186 | echo $ac_n "checking "for --enable-fs_zip"""... $ac_c" 1>&6 | |
f512f90a | 3187 | echo "configure:3188: checking "for --enable-fs_zip"" >&5 |
10f2d63a VZ |
3188 | no_cache=0 |
3189 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
3190 | if test "${enable_fs_zip+set}" = set; then | |
3191 | enableval="$enable_fs_zip" | |
3192 | ||
3193 | if test "$enableval" = yes; then | |
3194 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
3195 | else | |
3196 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
3197 | fi | |
3198 | ||
3199 | else | |
3200 | ||
3201 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
3209 | ||
3210 | fi | |
3211 | ||
3212 | ||
3213 | eval "$ac_cv_use_fs_zip" | |
3214 | if test "$no_cache" != 1; then | |
3215 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
3216 | fi | |
3217 | ||
3218 | if test "$wxUSE_FS_ZIP" = yes; then | |
3219 | echo "$ac_t""yes" 1>&6 | |
3220 | else | |
3221 | echo "$ac_t""no" 1>&6 | |
3222 | fi | |
3223 | ||
3224 | ||
3225 | echo $ac_n "checking "for --enable-zipstream"""... $ac_c" 1>&6 | |
f512f90a | 3226 | echo "configure:3227: checking "for --enable-zipstream"" >&5 |
10f2d63a VZ |
3227 | no_cache=0 |
3228 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
3229 | if test "${enable_zipstream+set}" = set; then | |
3230 | enableval="$enable_zipstream" | |
3231 | ||
3232 | if test "$enableval" = yes; then | |
3233 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
3234 | else | |
3235 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
3236 | fi | |
3237 | ||
3238 | else | |
3239 | ||
3240 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
3241 | if test "x$LINE" != x ; then | |
3242 | eval "DEFAULT_$LINE" | |
3243 | else | |
3244 | no_cache=1 | |
3245 | fi | |
3246 | ||
3247 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
3248 | ||
3249 | fi | |
3250 | ||
3251 | ||
3252 | eval "$ac_cv_use_zipstream" | |
3253 | if test "$no_cache" != 1; then | |
3254 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
3255 | fi | |
3256 | ||
3257 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
3258 | echo "$ac_t""yes" 1>&6 | |
3259 | else | |
3260 | echo "$ac_t""no" 1>&6 | |
3261 | fi | |
3262 | ||
3263 | ||
3264 | ||
3265 | ||
3266 | echo $ac_n "checking "for --enable-threads"""... $ac_c" 1>&6 | |
f512f90a | 3267 | echo "configure:3268: checking "for --enable-threads"" >&5 |
10f2d63a VZ |
3268 | no_cache=0 |
3269 | # Check whether --enable-threads or --disable-threads was given. | |
3270 | if test "${enable_threads+set}" = set; then | |
3271 | enableval="$enable_threads" | |
3272 | ||
3273 | if test "$enableval" = yes; then | |
3274 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
3275 | else | |
3276 | ac_cv_use_threads='wxUSE_THREADS=no' | |
3277 | fi | |
3278 | ||
3279 | else | |
3280 | ||
3281 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
3282 | if test "x$LINE" != x ; then | |
3283 | eval "DEFAULT_$LINE" | |
3284 | else | |
3285 | no_cache=1 | |
3286 | fi | |
3287 | ||
3288 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
3289 | ||
3290 | fi | |
3291 | ||
3292 | ||
3293 | eval "$ac_cv_use_threads" | |
3294 | if test "$no_cache" != 1; then | |
3295 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
3296 | fi | |
3297 | ||
3298 | if test "$wxUSE_THREADS" = yes; then | |
3299 | echo "$ac_t""yes" 1>&6 | |
3300 | else | |
3301 | echo "$ac_t""no" 1>&6 | |
3302 | fi | |
3303 | ||
3304 | ||
3305 | echo $ac_n "checking "for --enable-serial"""... $ac_c" 1>&6 | |
f512f90a | 3306 | echo "configure:3307: checking "for --enable-serial"" >&5 |
10f2d63a VZ |
3307 | no_cache=0 |
3308 | # Check whether --enable-serial or --disable-serial was given. | |
3309 | if test "${enable_serial+set}" = set; then | |
3310 | enableval="$enable_serial" | |
3311 | ||
3312 | if test "$enableval" = yes; then | |
3313 | ac_cv_use_serial='wxUSE_SERIAL=yes' | |
3314 | else | |
3315 | ac_cv_use_serial='wxUSE_SERIAL=no' | |
3316 | fi | |
3317 | ||
3318 | else | |
3319 | ||
3320 | LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}` | |
3321 | if test "x$LINE" != x ; then | |
3322 | eval "DEFAULT_$LINE" | |
3323 | else | |
3324 | no_cache=1 | |
3325 | fi | |
3326 | ||
3327 | ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL | |
3328 | ||
3329 | fi | |
3330 | ||
3331 | ||
3332 | eval "$ac_cv_use_serial" | |
3333 | if test "$no_cache" != 1; then | |
3334 | echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp | |
3335 | fi | |
3336 | ||
3337 | if test "$wxUSE_SERIAL" = yes; then | |
3338 | echo "$ac_t""yes" 1>&6 | |
3339 | else | |
3340 | echo "$ac_t""no" 1>&6 | |
3341 | fi | |
3342 | ||
3343 | ||
3344 | ||
3345 | ||
3346 | echo $ac_n "checking "for --enable-docview"""... $ac_c" 1>&6 | |
f512f90a | 3347 | echo "configure:3348: checking "for --enable-docview"" >&5 |
10f2d63a VZ |
3348 | no_cache=0 |
3349 | # Check whether --enable-docview or --disable-docview was given. | |
3350 | if test "${enable_docview+set}" = set; then | |
3351 | enableval="$enable_docview" | |
3352 | ||
3353 | if test "$enableval" = yes; then | |
3354 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
3355 | else | |
3356 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
3357 | fi | |
3358 | ||
3359 | else | |
3360 | ||
3361 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
3362 | if test "x$LINE" != x ; then | |
3363 | eval "DEFAULT_$LINE" | |
3364 | else | |
3365 | no_cache=1 | |
3366 | fi | |
3367 | ||
3368 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
3369 | ||
3370 | fi | |
3371 | ||
3372 | ||
3373 | eval "$ac_cv_use_docview" | |
3374 | if test "$no_cache" != 1; then | |
3375 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
3376 | fi | |
3377 | ||
3378 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
3379 | echo "$ac_t""yes" 1>&6 | |
3380 | else | |
3381 | echo "$ac_t""no" 1>&6 | |
3382 | fi | |
3383 | ||
3384 | ||
3385 | echo $ac_n "checking "for --enable-help"""... $ac_c" 1>&6 | |
f512f90a | 3386 | echo "configure:3387: checking "for --enable-help"" >&5 |
10f2d63a VZ |
3387 | no_cache=0 |
3388 | # Check whether --enable-help or --disable-help was given. | |
3389 | if test "${enable_help+set}" = set; then | |
3390 | enableval="$enable_help" | |
3391 | ||
3392 | if test "$enableval" = yes; then | |
3393 | ac_cv_use_help='wxUSE_HELP=yes' | |
3394 | else | |
3395 | ac_cv_use_help='wxUSE_HELP=no' | |
3396 | fi | |
3397 | ||
3398 | else | |
3399 | ||
3400 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
3401 | if test "x$LINE" != x ; then | |
3402 | eval "DEFAULT_$LINE" | |
3403 | else | |
3404 | no_cache=1 | |
3405 | fi | |
3406 | ||
3407 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
3408 | ||
3409 | fi | |
3410 | ||
3411 | ||
3412 | eval "$ac_cv_use_help" | |
3413 | if test "$no_cache" != 1; then | |
3414 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
3415 | fi | |
3416 | ||
3417 | if test "$wxUSE_HELP" = yes; then | |
3418 | echo "$ac_t""yes" 1>&6 | |
3419 | else | |
3420 | echo "$ac_t""no" 1>&6 | |
3421 | fi | |
3422 | ||
3423 | ||
3424 | echo $ac_n "checking "for --enable-constraints"""... $ac_c" 1>&6 | |
f512f90a | 3425 | echo "configure:3426: checking "for --enable-constraints"" >&5 |
10f2d63a VZ |
3426 | no_cache=0 |
3427 | # Check whether --enable-constraints or --disable-constraints was given. | |
3428 | if test "${enable_constraints+set}" = set; then | |
3429 | enableval="$enable_constraints" | |
3430 | ||
3431 | if test "$enableval" = yes; then | |
3432 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
3433 | else | |
3434 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
3435 | fi | |
3436 | ||
3437 | else | |
3438 | ||
3439 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
3440 | if test "x$LINE" != x ; then | |
3441 | eval "DEFAULT_$LINE" | |
3442 | else | |
3443 | no_cache=1 | |
3444 | fi | |
3445 | ||
3446 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
3447 | ||
3448 | fi | |
3449 | ||
3450 | ||
3451 | eval "$ac_cv_use_constraints" | |
3452 | if test "$no_cache" != 1; then | |
3453 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
3454 | fi | |
3455 | ||
3456 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
3457 | echo "$ac_t""yes" 1>&6 | |
3458 | else | |
3459 | echo "$ac_t""no" 1>&6 | |
3460 | fi | |
3461 | ||
3462 | ||
3463 | echo $ac_n "checking "for --enable-printarch"""... $ac_c" 1>&6 | |
f512f90a | 3464 | echo "configure:3465: checking "for --enable-printarch"" >&5 |
10f2d63a VZ |
3465 | no_cache=0 |
3466 | # Check whether --enable-printarch or --disable-printarch was given. | |
3467 | if test "${enable_printarch+set}" = set; then | |
3468 | enableval="$enable_printarch" | |
3469 | ||
3470 | if test "$enableval" = yes; then | |
3471 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
3472 | else | |
3473 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
3474 | fi | |
3475 | ||
3476 | else | |
3477 | ||
3478 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
3479 | if test "x$LINE" != x ; then | |
3480 | eval "DEFAULT_$LINE" | |
3481 | else | |
3482 | no_cache=1 | |
3483 | fi | |
3484 | ||
3485 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
3486 | ||
3487 | fi | |
3488 | ||
3489 | ||
3490 | eval "$ac_cv_use_printarch" | |
3491 | if test "$no_cache" != 1; then | |
3492 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
3493 | fi | |
3494 | ||
3495 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
3496 | echo "$ac_t""yes" 1>&6 | |
3497 | else | |
3498 | echo "$ac_t""no" 1>&6 | |
3499 | fi | |
3500 | ||
3501 | ||
3502 | echo $ac_n "checking "for --enable-mdi"""... $ac_c" 1>&6 | |
f512f90a | 3503 | echo "configure:3504: checking "for --enable-mdi"" >&5 |
10f2d63a VZ |
3504 | no_cache=0 |
3505 | # Check whether --enable-mdi or --disable-mdi was given. | |
3506 | if test "${enable_mdi+set}" = set; then | |
3507 | enableval="$enable_mdi" | |
3508 | ||
3509 | if test "$enableval" = yes; then | |
3510 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
3511 | else | |
3512 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
3513 | fi | |
3514 | ||
3515 | else | |
3516 | ||
3517 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
3518 | if test "x$LINE" != x ; then | |
3519 | eval "DEFAULT_$LINE" | |
3520 | else | |
3521 | no_cache=1 | |
3522 | fi | |
3523 | ||
3524 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
3525 | ||
3526 | fi | |
3527 | ||
3528 | ||
3529 | eval "$ac_cv_use_mdi" | |
3530 | if test "$no_cache" != 1; then | |
3531 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
3532 | fi | |
3533 | ||
3534 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
3535 | echo "$ac_t""yes" 1>&6 | |
3536 | else | |
3537 | echo "$ac_t""no" 1>&6 | |
3538 | fi | |
3539 | ||
3540 | ||
3541 | ||
3542 | echo $ac_n "checking "for --enable-postscript"""... $ac_c" 1>&6 | |
f512f90a | 3543 | echo "configure:3544: checking "for --enable-postscript"" >&5 |
10f2d63a VZ |
3544 | no_cache=0 |
3545 | # Check whether --enable-postscript or --disable-postscript was given. | |
3546 | if test "${enable_postscript+set}" = set; then | |
3547 | enableval="$enable_postscript" | |
3548 | ||
3549 | if test "$enableval" = yes; then | |
3550 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
3551 | else | |
3552 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
3553 | fi | |
3554 | ||
3555 | else | |
3556 | ||
3557 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
3558 | if test "x$LINE" != x ; then | |
3559 | eval "DEFAULT_$LINE" | |
3560 | else | |
3561 | no_cache=1 | |
3562 | fi | |
3563 | ||
3564 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
3565 | ||
3566 | fi | |
3567 | ||
3568 | ||
3569 | eval "$ac_cv_use_postscript" | |
3570 | if test "$no_cache" != 1; then | |
3571 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
3572 | fi | |
3573 | ||
3574 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
3575 | echo "$ac_t""yes" 1>&6 | |
3576 | else | |
3577 | echo "$ac_t""no" 1>&6 | |
3578 | fi | |
3579 | ||
3580 | ||
3581 | ||
3582 | ||
3583 | echo $ac_n "checking "for --enable-prologio"""... $ac_c" 1>&6 | |
f512f90a | 3584 | echo "configure:3585: checking "for --enable-prologio"" >&5 |
10f2d63a VZ |
3585 | no_cache=0 |
3586 | # Check whether --enable-prologio or --disable-prologio was given. | |
3587 | if test "${enable_prologio+set}" = set; then | |
3588 | enableval="$enable_prologio" | |
3589 | ||
3590 | if test "$enableval" = yes; then | |
3591 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
3592 | else | |
3593 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
3594 | fi | |
3595 | ||
3596 | else | |
3597 | ||
3598 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
3599 | if test "x$LINE" != x ; then | |
3600 | eval "DEFAULT_$LINE" | |
3601 | else | |
3602 | no_cache=1 | |
3603 | fi | |
3604 | ||
3605 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
3606 | ||
3607 | fi | |
3608 | ||
3609 | ||
3610 | eval "$ac_cv_use_prologio" | |
3611 | if test "$no_cache" != 1; then | |
3612 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
3613 | fi | |
3614 | ||
3615 | if test "$wxUSE_PROLOGIO" = yes; then | |
3616 | echo "$ac_t""yes" 1>&6 | |
3617 | else | |
3618 | echo "$ac_t""no" 1>&6 | |
3619 | fi | |
3620 | ||
3621 | ||
3622 | echo $ac_n "checking "for --enable-resources"""... $ac_c" 1>&6 | |
f512f90a | 3623 | echo "configure:3624: checking "for --enable-resources"" >&5 |
10f2d63a VZ |
3624 | no_cache=0 |
3625 | # Check whether --enable-resources or --disable-resources was given. | |
3626 | if test "${enable_resources+set}" = set; then | |
3627 | enableval="$enable_resources" | |
3628 | ||
3629 | if test "$enableval" = yes; then | |
3630 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
3631 | else | |
3632 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
3633 | fi | |
3634 | ||
3635 | else | |
3636 | ||
3637 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
3638 | if test "x$LINE" != x ; then | |
3639 | eval "DEFAULT_$LINE" | |
3640 | else | |
3641 | no_cache=1 | |
3642 | fi | |
3643 | ||
3644 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
3645 | ||
3646 | fi | |
3647 | ||
3648 | ||
3649 | eval "$ac_cv_use_resources" | |
3650 | if test "$no_cache" != 1; then | |
3651 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
3652 | fi | |
3653 | ||
3654 | if test "$wxUSE_RESOURCES" = yes; then | |
3655 | echo "$ac_t""yes" 1>&6 | |
3656 | else | |
3657 | echo "$ac_t""no" 1>&6 | |
3658 | fi | |
3659 | ||
3660 | ||
3661 | ||
3662 | echo $ac_n "checking "for --enable-xresources"""... $ac_c" 1>&6 | |
f512f90a | 3663 | echo "configure:3664: checking "for --enable-xresources"" >&5 |
10f2d63a VZ |
3664 | no_cache=0 |
3665 | # Check whether --enable-xresources or --disable-xresources was given. | |
3666 | if test "${enable_xresources+set}" = set; then | |
3667 | enableval="$enable_xresources" | |
3668 | ||
3669 | if test "$enableval" = yes; then | |
3670 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
3671 | else | |
3672 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
3673 | fi | |
3674 | ||
3675 | else | |
3676 | ||
3677 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` | |
3678 | if test "x$LINE" != x ; then | |
3679 | eval "DEFAULT_$LINE" | |
3680 | else | |
3681 | no_cache=1 | |
3682 | fi | |
3683 | ||
3684 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
3685 | ||
3686 | fi | |
3687 | ||
3688 | ||
3689 | eval "$ac_cv_use_xresources" | |
3690 | if test "$no_cache" != 1; then | |
3691 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
3692 | fi | |
3693 | ||
3694 | if test "$wxUSE_X_RESOURCES" = yes; then | |
3695 | echo "$ac_t""yes" 1>&6 | |
3696 | else | |
3697 | echo "$ac_t""no" 1>&6 | |
3698 | fi | |
3699 | ||
3700 | ||
3701 | ||
3702 | ||
3703 | echo $ac_n "checking "for --enable-clipboard"""... $ac_c" 1>&6 | |
f512f90a | 3704 | echo "configure:3705: checking "for --enable-clipboard"" >&5 |
10f2d63a VZ |
3705 | no_cache=0 |
3706 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
3707 | if test "${enable_clipboard+set}" = set; then | |
3708 | enableval="$enable_clipboard" | |
3709 | ||
3710 | if test "$enableval" = yes; then | |
3711 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
3712 | else | |
3713 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
3714 | fi | |
3715 | ||
3716 | else | |
3717 | ||
3718 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
3719 | if test "x$LINE" != x ; then | |
3720 | eval "DEFAULT_$LINE" | |
3721 | else | |
3722 | no_cache=1 | |
3723 | fi | |
3724 | ||
3725 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
3726 | ||
3727 | fi | |
3728 | ||
3729 | ||
3730 | eval "$ac_cv_use_clipboard" | |
3731 | if test "$no_cache" != 1; then | |
3732 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
3733 | fi | |
3734 | ||
3735 | if test "$wxUSE_CLIPBOARD" = yes; then | |
3736 | echo "$ac_t""yes" 1>&6 | |
3737 | else | |
3738 | echo "$ac_t""no" 1>&6 | |
3739 | fi | |
3740 | ||
3741 | ||
3742 | echo $ac_n "checking "for --enable-dnd"""... $ac_c" 1>&6 | |
f512f90a | 3743 | echo "configure:3744: checking "for --enable-dnd"" >&5 |
10f2d63a VZ |
3744 | no_cache=0 |
3745 | # Check whether --enable-dnd or --disable-dnd was given. | |
3746 | if test "${enable_dnd+set}" = set; then | |
3747 | enableval="$enable_dnd" | |
3748 | ||
3749 | if test "$enableval" = yes; then | |
3750 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
3751 | else | |
3752 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
3753 | fi | |
3754 | ||
3755 | else | |
3756 | ||
3757 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
3758 | if test "x$LINE" != x ; then | |
3759 | eval "DEFAULT_$LINE" | |
3760 | else | |
3761 | no_cache=1 | |
3762 | fi | |
3763 | ||
3764 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
3765 | ||
3766 | fi | |
3767 | ||
3768 | ||
3769 | eval "$ac_cv_use_dnd" | |
3770 | if test "$no_cache" != 1; then | |
3771 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
3772 | fi | |
3773 | ||
3774 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
3775 | echo "$ac_t""yes" 1>&6 | |
3776 | else | |
3777 | echo "$ac_t""no" 1>&6 | |
3778 | fi | |
3779 | ||
3780 | ||
3781 | ||
3782 | echo $ac_n "checking "for --enable-wxtree"""... $ac_c" 1>&6 | |
f512f90a | 3783 | echo "configure:3784: checking "for --enable-wxtree"" >&5 |
10f2d63a VZ |
3784 | no_cache=0 |
3785 | # Check whether --enable-wxtree or --disable-wxtree was given. | |
3786 | if test "${enable_wxtree+set}" = set; then | |
3787 | enableval="$enable_wxtree" | |
3788 | ||
3789 | if test "$enableval" = yes; then | |
3790 | ac_cv_use_wxtree='wxUSE_WXTREE=yes' | |
3791 | else | |
3792 | ac_cv_use_wxtree='wxUSE_WXTREE=no' | |
3793 | fi | |
3794 | ||
3795 | else | |
3796 | ||
3797 | LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}` | |
3798 | if test "x$LINE" != x ; then | |
3799 | eval "DEFAULT_$LINE" | |
3800 | else | |
3801 | no_cache=1 | |
3802 | fi | |
3803 | ||
3804 | ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE | |
3805 | ||
3806 | fi | |
3807 | ||
3808 | ||
3809 | eval "$ac_cv_use_wxtree" | |
3810 | if test "$no_cache" != 1; then | |
3811 | echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp | |
3812 | fi | |
3813 | ||
3814 | if test "$wxUSE_WXTREE" = yes; then | |
3815 | echo "$ac_t""yes" 1>&6 | |
3816 | else | |
3817 | echo "$ac_t""no" 1>&6 | |
3818 | fi | |
3819 | ||
3820 | ||
3821 | ||
3822 | ||
3823 | echo $ac_n "checking "for --enable-controls"""... $ac_c" 1>&6 | |
f512f90a | 3824 | echo "configure:3825: checking "for --enable-controls"" >&5 |
10f2d63a VZ |
3825 | no_cache=0 |
3826 | # Check whether --enable-controls or --disable-controls was given. | |
3827 | if test "${enable_controls+set}" = set; then | |
3828 | enableval="$enable_controls" | |
3829 | ||
3830 | if test "$enableval" = yes; then | |
3831 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
3832 | else | |
3833 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
3834 | fi | |
3835 | ||
3836 | else | |
3837 | ||
3838 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
3839 | if test "x$LINE" != x ; then | |
3840 | eval "DEFAULT_$LINE" | |
3841 | else | |
3842 | no_cache=1 | |
3843 | fi | |
3844 | ||
3845 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
3846 | ||
3847 | fi | |
3848 | ||
3849 | ||
3850 | eval "$ac_cv_use_controls" | |
3851 | if test "$no_cache" != 1; then | |
3852 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
3853 | fi | |
3854 | ||
3855 | if test "$wxUSE_CONTROLS" = yes; then | |
3856 | echo "$ac_t""yes" 1>&6 | |
3857 | else | |
3858 | echo "$ac_t""no" 1>&6 | |
3859 | fi | |
3860 | ||
3861 | ||
3862 | if test "$wxUSE_CONTROLS" = "yes"; then | |
3863 | DEFAULT_wxUSE_ACCEL=yes | |
3864 | DEFAULT_wxUSE_CARET=yes | |
3865 | DEFAULT_wxUSE_COMBOBOX=yes | |
3866 | DEFAULT_wxUSE_BMPBUTTON=yes | |
3867 | DEFAULT_wxUSE_CHECKBOX=yes | |
3868 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
3869 | DEFAULT_wxUSE_CHOICE=yes | |
3870 | DEFAULT_wxUSE_GAUGE=yes | |
3871 | DEFAULT_wxUSE_GRID=yes | |
3872 | DEFAULT_wxUSE_NEW_GRID=yes | |
3873 | DEFAULT_wxUSE_IMAGLIST=yes | |
3874 | DEFAULT_wxUSE_LISTBOX=yes | |
3875 | DEFAULT_wxUSE_LISTCTRL=yes | |
3876 | DEFAULT_wxUSE_NOTEBOOK=yes | |
3877 | DEFAULT_wxUSE_RADIOBOX=yes | |
3878 | DEFAULT_wxUSE_RADIOBTN=yes | |
3879 | DEFAULT_wxUSE_SASH=yes | |
3880 | DEFAULT_wxUSE_SCROLLBAR=yes | |
3881 | DEFAULT_wxUSE_SLIDER=yes | |
3882 | DEFAULT_wxUSE_SPINBTN=yes | |
3883 | DEFAULT_wxUSE_SPLITTER=yes | |
3884 | DEFAULT_wxUSE_STATBMP=yes | |
3885 | DEFAULT_wxUSE_STATBOX=yes | |
3886 | DEFAULT_wxUSE_STATLINE=yes | |
3887 | DEFAULT_wxUSE_STATUSBAR=yes | |
3888 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
3889 | DEFAULT_wxUSE_TOOLBAR=yes | |
3890 | DEFAULT_wxUSE_TOOLTIPS=yes | |
3891 | DEFAULT_wxUSE_TREECTRL=yes | |
3892 | elif test "$wxUSE_CONTROLS" = "no"; then | |
3893 | DEFAULT_wxUSE_ACCEL=no | |
3894 | DEFAULT_wxUSE_CARET=no | |
3895 | DEFAULT_wxUSE_COMBOBOX=no | |
3896 | DEFAULT_wxUSE_BMPBUTTON=no | |
3897 | DEFAULT_wxUSE_CHECKBOX=no | |
3898 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
3899 | DEFAULT_wxUSE_CHOICE=no | |
3900 | DEFAULT_wxUSE_GAUGE=no | |
3901 | DEFAULT_wxUSE_GRID=no | |
3902 | DEFAULT_wxUSE_NEW_GRID=no | |
3903 | DEFAULT_wxUSE_IMAGLIST=no | |
3904 | DEFAULT_wxUSE_LISTBOX=no | |
3905 | DEFAULT_wxUSE_LISTCTRL=no | |
3906 | DEFAULT_wxUSE_NOTEBOOK=no | |
3907 | DEFAULT_wxUSE_RADIOBOX=no | |
3908 | DEFAULT_wxUSE_RADIOBTN=no | |
3909 | DEFAULT_wxUSE_SASH=no | |
3910 | DEFAULT_wxUSE_SCROLLBAR=no | |
3911 | DEFAULT_wxUSE_SLIDER=no | |
3912 | DEFAULT_wxUSE_SPINBTN=no | |
3913 | DEFAULT_wxUSE_SPLITTER=no | |
3914 | DEFAULT_wxUSE_STATBMP=no | |
3915 | DEFAULT_wxUSE_STATBOX=no | |
3916 | DEFAULT_wxUSE_STATLINE=no | |
3917 | DEFAULT_wxUSE_STATUSBAR=no | |
3918 | DEFAULT_wxUSE_TAB_DIALOG=no | |
3919 | DEFAULT_wxUSE_TOOLBAR=no | |
3920 | DEFAULT_wxUSE_TOOLTIPS=no | |
3921 | DEFAULT_wxUSE_TREECTRL=no | |
3922 | fi | |
3923 | ||
3924 | ||
3925 | echo $ac_n "checking "for --enable-accel"""... $ac_c" 1>&6 | |
f512f90a | 3926 | echo "configure:3927: checking "for --enable-accel"" >&5 |
10f2d63a VZ |
3927 | no_cache=0 |
3928 | # Check whether --enable-accel or --disable-accel was given. | |
3929 | if test "${enable_accel+set}" = set; then | |
3930 | enableval="$enable_accel" | |
3931 | ||
3932 | if test "$enableval" = yes; then | |
3933 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
3934 | else | |
3935 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
3936 | fi | |
3937 | ||
3938 | else | |
3939 | ||
3940 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
3941 | if test "x$LINE" != x ; then | |
3942 | eval "DEFAULT_$LINE" | |
3943 | else | |
3944 | no_cache=1 | |
3945 | fi | |
3946 | ||
3947 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
3948 | ||
3949 | fi | |
3950 | ||
3951 | ||
3952 | eval "$ac_cv_use_accel" | |
3953 | if test "$no_cache" != 1; then | |
3954 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
3955 | fi | |
3956 | ||
3957 | if test "$wxUSE_ACCEL" = yes; then | |
3958 | echo "$ac_t""yes" 1>&6 | |
3959 | else | |
3960 | echo "$ac_t""no" 1>&6 | |
3961 | fi | |
3962 | ||
3963 | ||
3964 | echo $ac_n "checking "for --enable-caret"""... $ac_c" 1>&6 | |
f512f90a | 3965 | echo "configure:3966: checking "for --enable-caret"" >&5 |
10f2d63a VZ |
3966 | no_cache=0 |
3967 | # Check whether --enable-caret or --disable-caret was given. | |
3968 | if test "${enable_caret+set}" = set; then | |
3969 | enableval="$enable_caret" | |
3970 | ||
3971 | if test "$enableval" = yes; then | |
3972 | ac_cv_use_caret='wxUSE_CARET=yes' | |
3973 | else | |
3974 | ac_cv_use_caret='wxUSE_CARET=no' | |
3975 | fi | |
3976 | ||
3977 | else | |
3978 | ||
3979 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
3980 | if test "x$LINE" != x ; then | |
3981 | eval "DEFAULT_$LINE" | |
3982 | else | |
3983 | no_cache=1 | |
3984 | fi | |
3985 | ||
3986 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
3987 | ||
3988 | fi | |
3989 | ||
3990 | ||
3991 | eval "$ac_cv_use_caret" | |
3992 | if test "$no_cache" != 1; then | |
3993 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
3994 | fi | |
3995 | ||
3996 | if test "$wxUSE_CARET" = yes; then | |
3997 | echo "$ac_t""yes" 1>&6 | |
3998 | else | |
3999 | echo "$ac_t""no" 1>&6 | |
4000 | fi | |
4001 | ||
4002 | ||
4003 | echo $ac_n "checking "for --enable-bmpbutton"""... $ac_c" 1>&6 | |
f512f90a | 4004 | echo "configure:4005: checking "for --enable-bmpbutton"" >&5 |
10f2d63a VZ |
4005 | no_cache=0 |
4006 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
4007 | if test "${enable_bmpbutton+set}" = set; then | |
4008 | enableval="$enable_bmpbutton" | |
4009 | ||
4010 | if test "$enableval" = yes; then | |
4011 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
4012 | else | |
4013 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
4014 | fi | |
4015 | ||
4016 | else | |
4017 | ||
4018 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
4019 | if test "x$LINE" != x ; then | |
4020 | eval "DEFAULT_$LINE" | |
4021 | else | |
4022 | no_cache=1 | |
4023 | fi | |
4024 | ||
4025 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
4026 | ||
4027 | fi | |
4028 | ||
4029 | ||
4030 | eval "$ac_cv_use_bmpbutton" | |
4031 | if test "$no_cache" != 1; then | |
4032 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
4033 | fi | |
4034 | ||
4035 | if test "$wxUSE_BMPBUTTON" = yes; then | |
4036 | echo "$ac_t""yes" 1>&6 | |
4037 | else | |
4038 | echo "$ac_t""no" 1>&6 | |
4039 | fi | |
4040 | ||
4041 | ||
4042 | echo $ac_n "checking "for --enable-checkbox"""... $ac_c" 1>&6 | |
f512f90a | 4043 | echo "configure:4044: checking "for --enable-checkbox"" >&5 |
10f2d63a VZ |
4044 | no_cache=0 |
4045 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
4046 | if test "${enable_checkbox+set}" = set; then | |
4047 | enableval="$enable_checkbox" | |
4048 | ||
4049 | if test "$enableval" = yes; then | |
4050 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
4051 | else | |
4052 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
4053 | fi | |
4054 | ||
4055 | else | |
4056 | ||
4057 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
4058 | if test "x$LINE" != x ; then | |
4059 | eval "DEFAULT_$LINE" | |
4060 | else | |
4061 | no_cache=1 | |
4062 | fi | |
4063 | ||
4064 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
4065 | ||
4066 | fi | |
4067 | ||
4068 | ||
4069 | eval "$ac_cv_use_checkbox" | |
4070 | if test "$no_cache" != 1; then | |
4071 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
4072 | fi | |
4073 | ||
4074 | if test "$wxUSE_CHECKBOX" = yes; then | |
4075 | echo "$ac_t""yes" 1>&6 | |
4076 | else | |
4077 | echo "$ac_t""no" 1>&6 | |
4078 | fi | |
4079 | ||
4080 | ||
4081 | echo $ac_n "checking "for --enable-checklst"""... $ac_c" 1>&6 | |
f512f90a | 4082 | echo "configure:4083: checking "for --enable-checklst"" >&5 |
10f2d63a VZ |
4083 | no_cache=0 |
4084 | # Check whether --enable-checklst or --disable-checklst was given. | |
4085 | if test "${enable_checklst+set}" = set; then | |
4086 | enableval="$enable_checklst" | |
4087 | ||
4088 | if test "$enableval" = yes; then | |
4089 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
4090 | else | |
4091 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
4092 | fi | |
4093 | ||
4094 | else | |
4095 | ||
4096 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
4097 | if test "x$LINE" != x ; then | |
4098 | eval "DEFAULT_$LINE" | |
4099 | else | |
4100 | no_cache=1 | |
4101 | fi | |
4102 | ||
4103 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
4104 | ||
4105 | fi | |
4106 | ||
4107 | ||
4108 | eval "$ac_cv_use_checklst" | |
4109 | if test "$no_cache" != 1; then | |
4110 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
4111 | fi | |
4112 | ||
4113 | if test "$wxUSE_CHECKLST" = yes; then | |
4114 | echo "$ac_t""yes" 1>&6 | |
4115 | else | |
4116 | echo "$ac_t""no" 1>&6 | |
4117 | fi | |
4118 | ||
4119 | ||
4120 | echo $ac_n "checking "for --enable-choice"""... $ac_c" 1>&6 | |
f512f90a | 4121 | echo "configure:4122: checking "for --enable-choice"" >&5 |
10f2d63a VZ |
4122 | no_cache=0 |
4123 | # Check whether --enable-choice or --disable-choice was given. | |
4124 | if test "${enable_choice+set}" = set; then | |
4125 | enableval="$enable_choice" | |
4126 | ||
4127 | if test "$enableval" = yes; then | |
4128 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
4129 | else | |
4130 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
4131 | fi | |
4132 | ||
4133 | else | |
4134 | ||
4135 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
4136 | if test "x$LINE" != x ; then | |
4137 | eval "DEFAULT_$LINE" | |
4138 | else | |
4139 | no_cache=1 | |
4140 | fi | |
4141 | ||
4142 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
4143 | ||
4144 | fi | |
4145 | ||
4146 | ||
4147 | eval "$ac_cv_use_choice" | |
4148 | if test "$no_cache" != 1; then | |
4149 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
4150 | fi | |
4151 | ||
4152 | if test "$wxUSE_CHOICE" = yes; then | |
4153 | echo "$ac_t""yes" 1>&6 | |
4154 | else | |
4155 | echo "$ac_t""no" 1>&6 | |
4156 | fi | |
4157 | ||
4158 | ||
4159 | echo $ac_n "checking "for --enable-combobox"""... $ac_c" 1>&6 | |
f512f90a | 4160 | echo "configure:4161: checking "for --enable-combobox"" >&5 |
10f2d63a VZ |
4161 | no_cache=0 |
4162 | # Check whether --enable-combobox or --disable-combobox was given. | |
4163 | if test "${enable_combobox+set}" = set; then | |
4164 | enableval="$enable_combobox" | |
4165 | ||
4166 | if test "$enableval" = yes; then | |
4167 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
4168 | else | |
4169 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
4170 | fi | |
4171 | ||
4172 | else | |
4173 | ||
4174 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
4175 | if test "x$LINE" != x ; then | |
4176 | eval "DEFAULT_$LINE" | |
4177 | else | |
4178 | no_cache=1 | |
4179 | fi | |
4180 | ||
4181 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
4182 | ||
4183 | fi | |
4184 | ||
4185 | ||
4186 | eval "$ac_cv_use_combobox" | |
4187 | if test "$no_cache" != 1; then | |
4188 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
4189 | fi | |
4190 | ||
4191 | if test "$wxUSE_COMBOBOX" = yes; then | |
4192 | echo "$ac_t""yes" 1>&6 | |
4193 | else | |
4194 | echo "$ac_t""no" 1>&6 | |
4195 | fi | |
4196 | ||
4197 | ||
4198 | echo $ac_n "checking "for --enable-gauge"""... $ac_c" 1>&6 | |
f512f90a | 4199 | echo "configure:4200: checking "for --enable-gauge"" >&5 |
10f2d63a VZ |
4200 | no_cache=0 |
4201 | # Check whether --enable-gauge or --disable-gauge was given. | |
4202 | if test "${enable_gauge+set}" = set; then | |
4203 | enableval="$enable_gauge" | |
4204 | ||
4205 | if test "$enableval" = yes; then | |
4206 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
4207 | else | |
4208 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
4209 | fi | |
4210 | ||
4211 | else | |
4212 | ||
4213 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
4214 | if test "x$LINE" != x ; then | |
4215 | eval "DEFAULT_$LINE" | |
4216 | else | |
4217 | no_cache=1 | |
4218 | fi | |
4219 | ||
4220 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
4221 | ||
4222 | fi | |
4223 | ||
4224 | ||
4225 | eval "$ac_cv_use_gauge" | |
4226 | if test "$no_cache" != 1; then | |
4227 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
4228 | fi | |
4229 | ||
4230 | if test "$wxUSE_GAUGE" = yes; then | |
4231 | echo "$ac_t""yes" 1>&6 | |
4232 | else | |
4233 | echo "$ac_t""no" 1>&6 | |
4234 | fi | |
4235 | ||
4236 | ||
4237 | echo $ac_n "checking "for --enable-grid"""... $ac_c" 1>&6 | |
f512f90a | 4238 | echo "configure:4239: checking "for --enable-grid"" >&5 |
10f2d63a VZ |
4239 | no_cache=0 |
4240 | # Check whether --enable-grid or --disable-grid was given. | |
4241 | if test "${enable_grid+set}" = set; then | |
4242 | enableval="$enable_grid" | |
4243 | ||
4244 | if test "$enableval" = yes; then | |
4245 | ac_cv_use_grid='wxUSE_GRID=yes' | |
4246 | else | |
4247 | ac_cv_use_grid='wxUSE_GRID=no' | |
4248 | fi | |
4249 | ||
4250 | else | |
4251 | ||
4252 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
4253 | if test "x$LINE" != x ; then | |
4254 | eval "DEFAULT_$LINE" | |
4255 | else | |
4256 | no_cache=1 | |
4257 | fi | |
4258 | ||
4259 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
4260 | ||
4261 | fi | |
4262 | ||
4263 | ||
4264 | eval "$ac_cv_use_grid" | |
4265 | if test "$no_cache" != 1; then | |
4266 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
4267 | fi | |
4268 | ||
4269 | if test "$wxUSE_GRID" = yes; then | |
4270 | echo "$ac_t""yes" 1>&6 | |
4271 | else | |
4272 | echo "$ac_t""no" 1>&6 | |
4273 | fi | |
4274 | ||
4275 | ||
4276 | echo $ac_n "checking "for --enable-newgrid"""... $ac_c" 1>&6 | |
f512f90a | 4277 | echo "configure:4278: checking "for --enable-newgrid"" >&5 |
10f2d63a VZ |
4278 | no_cache=0 |
4279 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
4280 | if test "${enable_newgrid+set}" = set; then | |
4281 | enableval="$enable_newgrid" | |
4282 | ||
4283 | if test "$enableval" = yes; then | |
4284 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
4285 | else | |
4286 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
4287 | fi | |
4288 | ||
4289 | else | |
4290 | ||
4291 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` | |
4292 | if test "x$LINE" != x ; then | |
4293 | eval "DEFAULT_$LINE" | |
4294 | else | |
4295 | no_cache=1 | |
4296 | fi | |
4297 | ||
4298 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
4299 | ||
4300 | fi | |
4301 | ||
4302 | ||
4303 | eval "$ac_cv_use_newgrid" | |
4304 | if test "$no_cache" != 1; then | |
4305 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
4306 | fi | |
4307 | ||
4308 | if test "$wxUSE_NEW_GRID" = yes; then | |
4309 | echo "$ac_t""yes" 1>&6 | |
4310 | else | |
4311 | echo "$ac_t""no" 1>&6 | |
4312 | fi | |
4313 | ||
4314 | ||
4315 | echo $ac_n "checking "for --enable-imaglist"""... $ac_c" 1>&6 | |
f512f90a | 4316 | echo "configure:4317: checking "for --enable-imaglist"" >&5 |
10f2d63a VZ |
4317 | no_cache=0 |
4318 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
4319 | if test "${enable_imaglist+set}" = set; then | |
4320 | enableval="$enable_imaglist" | |
4321 | ||
4322 | if test "$enableval" = yes; then | |
4323 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
4324 | else | |
4325 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
4326 | fi | |
4327 | ||
4328 | else | |
4329 | ||
4330 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
4331 | if test "x$LINE" != x ; then | |
4332 | eval "DEFAULT_$LINE" | |
4333 | else | |
4334 | no_cache=1 | |
4335 | fi | |
4336 | ||
4337 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
4338 | ||
4339 | fi | |
4340 | ||
4341 | ||
4342 | eval "$ac_cv_use_imaglist" | |
4343 | if test "$no_cache" != 1; then | |
4344 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
4345 | fi | |
4346 | ||
4347 | if test "$wxUSE_IMAGLIST" = yes; then | |
4348 | echo "$ac_t""yes" 1>&6 | |
4349 | else | |
4350 | echo "$ac_t""no" 1>&6 | |
4351 | fi | |
4352 | ||
4353 | ||
4354 | echo $ac_n "checking "for --enable-listbox"""... $ac_c" 1>&6 | |
f512f90a | 4355 | echo "configure:4356: checking "for --enable-listbox"" >&5 |
10f2d63a VZ |
4356 | no_cache=0 |
4357 | # Check whether --enable-listbox or --disable-listbox was given. | |
4358 | if test "${enable_listbox+set}" = set; then | |
4359 | enableval="$enable_listbox" | |
4360 | ||
4361 | if test "$enableval" = yes; then | |
4362 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
4363 | else | |
4364 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
4365 | fi | |
4366 | ||
4367 | else | |
4368 | ||
4369 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
4370 | if test "x$LINE" != x ; then | |
4371 | eval "DEFAULT_$LINE" | |
4372 | else | |
4373 | no_cache=1 | |
4374 | fi | |
4375 | ||
4376 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
4377 | ||
4378 | fi | |
4379 | ||
4380 | ||
4381 | eval "$ac_cv_use_listbox" | |
4382 | if test "$no_cache" != 1; then | |
4383 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
4384 | fi | |
4385 | ||
4386 | if test "$wxUSE_LISTBOX" = yes; then | |
4387 | echo "$ac_t""yes" 1>&6 | |
4388 | else | |
4389 | echo "$ac_t""no" 1>&6 | |
4390 | fi | |
4391 | ||
4392 | ||
4393 | echo $ac_n "checking "for --enable-listctrl"""... $ac_c" 1>&6 | |
f512f90a | 4394 | echo "configure:4395: checking "for --enable-listctrl"" >&5 |
10f2d63a VZ |
4395 | no_cache=0 |
4396 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
4397 | if test "${enable_listctrl+set}" = set; then | |
4398 | enableval="$enable_listctrl" | |
4399 | ||
4400 | if test "$enableval" = yes; then | |
4401 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
4402 | else | |
4403 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
4404 | fi | |
4405 | ||
4406 | else | |
4407 | ||
4408 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
4409 | if test "x$LINE" != x ; then | |
4410 | eval "DEFAULT_$LINE" | |
4411 | else | |
4412 | no_cache=1 | |
4413 | fi | |
4414 | ||
4415 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
4416 | ||
4417 | fi | |
4418 | ||
4419 | ||
4420 | eval "$ac_cv_use_listctrl" | |
4421 | if test "$no_cache" != 1; then | |
4422 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
4423 | fi | |
4424 | ||
4425 | if test "$wxUSE_LISTCTRL" = yes; then | |
4426 | echo "$ac_t""yes" 1>&6 | |
4427 | else | |
4428 | echo "$ac_t""no" 1>&6 | |
4429 | fi | |
4430 | ||
4431 | ||
4432 | echo $ac_n "checking "for --enable-notebook"""... $ac_c" 1>&6 | |
f512f90a | 4433 | echo "configure:4434: checking "for --enable-notebook"" >&5 |
10f2d63a VZ |
4434 | no_cache=0 |
4435 | # Check whether --enable-notebook or --disable-notebook was given. | |
4436 | if test "${enable_notebook+set}" = set; then | |
4437 | enableval="$enable_notebook" | |
4438 | ||
4439 | if test "$enableval" = yes; then | |
4440 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
4441 | else | |
4442 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
4443 | fi | |
4444 | ||
4445 | else | |
4446 | ||
4447 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
4448 | if test "x$LINE" != x ; then | |
4449 | eval "DEFAULT_$LINE" | |
4450 | else | |
4451 | no_cache=1 | |
4452 | fi | |
4453 | ||
4454 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
4455 | ||
4456 | fi | |
4457 | ||
4458 | ||
4459 | eval "$ac_cv_use_notebook" | |
4460 | if test "$no_cache" != 1; then | |
4461 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
4462 | fi | |
4463 | ||
4464 | if test "$wxUSE_NOTEBOOK" = yes; then | |
4465 | echo "$ac_t""yes" 1>&6 | |
4466 | else | |
4467 | echo "$ac_t""no" 1>&6 | |
4468 | fi | |
4469 | ||
4470 | ||
4471 | echo $ac_n "checking "for --enable-radiobox"""... $ac_c" 1>&6 | |
f512f90a | 4472 | echo "configure:4473: checking "for --enable-radiobox"" >&5 |
10f2d63a VZ |
4473 | no_cache=0 |
4474 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
4475 | if test "${enable_radiobox+set}" = set; then | |
4476 | enableval="$enable_radiobox" | |
4477 | ||
4478 | if test "$enableval" = yes; then | |
4479 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
4480 | else | |
4481 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
4482 | fi | |
4483 | ||
4484 | else | |
4485 | ||
4486 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
4487 | if test "x$LINE" != x ; then | |
4488 | eval "DEFAULT_$LINE" | |
4489 | else | |
4490 | no_cache=1 | |
4491 | fi | |
4492 | ||
4493 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
4494 | ||
4495 | fi | |
4496 | ||
4497 | ||
4498 | eval "$ac_cv_use_radiobox" | |
4499 | if test "$no_cache" != 1; then | |
4500 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
4501 | fi | |
4502 | ||
4503 | if test "$wxUSE_RADIOBOX" = yes; then | |
4504 | echo "$ac_t""yes" 1>&6 | |
4505 | else | |
4506 | echo "$ac_t""no" 1>&6 | |
4507 | fi | |
4508 | ||
4509 | ||
4510 | echo $ac_n "checking "for --enable-radiobtn"""... $ac_c" 1>&6 | |
f512f90a | 4511 | echo "configure:4512: checking "for --enable-radiobtn"" >&5 |
10f2d63a VZ |
4512 | no_cache=0 |
4513 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
4514 | if test "${enable_radiobtn+set}" = set; then | |
4515 | enableval="$enable_radiobtn" | |
4516 | ||
4517 | if test "$enableval" = yes; then | |
4518 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
4519 | else | |
4520 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
4521 | fi | |
4522 | ||
4523 | else | |
4524 | ||
4525 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
4526 | if test "x$LINE" != x ; then | |
4527 | eval "DEFAULT_$LINE" | |
4528 | else | |
4529 | no_cache=1 | |
4530 | fi | |
4531 | ||
4532 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
4533 | ||
4534 | fi | |
4535 | ||
4536 | ||
4537 | eval "$ac_cv_use_radiobtn" | |
4538 | if test "$no_cache" != 1; then | |
4539 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
4540 | fi | |
4541 | ||
4542 | if test "$wxUSE_RADIOBTN" = yes; then | |
4543 | echo "$ac_t""yes" 1>&6 | |
4544 | else | |
4545 | echo "$ac_t""no" 1>&6 | |
4546 | fi | |
4547 | ||
4548 | ||
4549 | echo $ac_n "checking "for --enable-sash"""... $ac_c" 1>&6 | |
f512f90a | 4550 | echo "configure:4551: checking "for --enable-sash"" >&5 |
10f2d63a VZ |
4551 | no_cache=0 |
4552 | # Check whether --enable-sash or --disable-sash was given. | |
4553 | if test "${enable_sash+set}" = set; then | |
4554 | enableval="$enable_sash" | |
4555 | ||
4556 | if test "$enableval" = yes; then | |
4557 | ac_cv_use_sash='wxUSE_SASH=yes' | |
4558 | else | |
4559 | ac_cv_use_sash='wxUSE_SASH=no' | |
4560 | fi | |
4561 | ||
4562 | else | |
4563 | ||
4564 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
4565 | if test "x$LINE" != x ; then | |
4566 | eval "DEFAULT_$LINE" | |
4567 | else | |
4568 | no_cache=1 | |
4569 | fi | |
4570 | ||
4571 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
4572 | ||
4573 | fi | |
4574 | ||
4575 | ||
4576 | eval "$ac_cv_use_sash" | |
4577 | if test "$no_cache" != 1; then | |
4578 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
4579 | fi | |
4580 | ||
4581 | if test "$wxUSE_SASH" = yes; then | |
4582 | echo "$ac_t""yes" 1>&6 | |
4583 | else | |
4584 | echo "$ac_t""no" 1>&6 | |
4585 | fi | |
4586 | ||
4587 | ||
4588 | echo $ac_n "checking "for --enable-scrollbar"""... $ac_c" 1>&6 | |
f512f90a | 4589 | echo "configure:4590: checking "for --enable-scrollbar"" >&5 |
10f2d63a VZ |
4590 | no_cache=0 |
4591 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
4592 | if test "${enable_scrollbar+set}" = set; then | |
4593 | enableval="$enable_scrollbar" | |
4594 | ||
4595 | if test "$enableval" = yes; then | |
4596 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
4597 | else | |
4598 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
4599 | fi | |
4600 | ||
4601 | else | |
4602 | ||
4603 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
4604 | if test "x$LINE" != x ; then | |
4605 | eval "DEFAULT_$LINE" | |
4606 | else | |
4607 | no_cache=1 | |
4608 | fi | |
4609 | ||
4610 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
4611 | ||
4612 | fi | |
4613 | ||
4614 | ||
4615 | eval "$ac_cv_use_scrollbar" | |
4616 | if test "$no_cache" != 1; then | |
4617 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
4618 | fi | |
4619 | ||
4620 | if test "$wxUSE_SCROLLBAR" = yes; then | |
4621 | echo "$ac_t""yes" 1>&6 | |
4622 | else | |
4623 | echo "$ac_t""no" 1>&6 | |
4624 | fi | |
4625 | ||
4626 | ||
4627 | echo $ac_n "checking "for --enable-slider"""... $ac_c" 1>&6 | |
f512f90a | 4628 | echo "configure:4629: checking "for --enable-slider"" >&5 |
10f2d63a VZ |
4629 | no_cache=0 |
4630 | # Check whether --enable-slider or --disable-slider was given. | |
4631 | if test "${enable_slider+set}" = set; then | |
4632 | enableval="$enable_slider" | |
4633 | ||
4634 | if test "$enableval" = yes; then | |
4635 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
4636 | else | |
4637 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
4638 | fi | |
4639 | ||
4640 | else | |
4641 | ||
4642 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
4643 | if test "x$LINE" != x ; then | |
4644 | eval "DEFAULT_$LINE" | |
4645 | else | |
4646 | no_cache=1 | |
4647 | fi | |
4648 | ||
4649 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
4650 | ||
4651 | fi | |
4652 | ||
4653 | ||
4654 | eval "$ac_cv_use_slider" | |
4655 | if test "$no_cache" != 1; then | |
4656 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
4657 | fi | |
4658 | ||
4659 | if test "$wxUSE_SLIDER" = yes; then | |
4660 | echo "$ac_t""yes" 1>&6 | |
4661 | else | |
4662 | echo "$ac_t""no" 1>&6 | |
4663 | fi | |
4664 | ||
4665 | ||
4666 | echo $ac_n "checking "for --enable-spinbtn"""... $ac_c" 1>&6 | |
f512f90a | 4667 | echo "configure:4668: checking "for --enable-spinbtn"" >&5 |
10f2d63a VZ |
4668 | no_cache=0 |
4669 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
4670 | if test "${enable_spinbtn+set}" = set; then | |
4671 | enableval="$enable_spinbtn" | |
4672 | ||
4673 | if test "$enableval" = yes; then | |
4674 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
4675 | else | |
4676 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
4677 | fi | |
4678 | ||
4679 | else | |
4680 | ||
4681 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
4682 | if test "x$LINE" != x ; then | |
4683 | eval "DEFAULT_$LINE" | |
4684 | else | |
4685 | no_cache=1 | |
4686 | fi | |
4687 | ||
4688 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
4689 | ||
4690 | fi | |
4691 | ||
4692 | ||
4693 | eval "$ac_cv_use_spinbtn" | |
4694 | if test "$no_cache" != 1; then | |
4695 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
4696 | fi | |
4697 | ||
4698 | if test "$wxUSE_SPINBTN" = yes; then | |
4699 | echo "$ac_t""yes" 1>&6 | |
4700 | else | |
4701 | echo "$ac_t""no" 1>&6 | |
4702 | fi | |
4703 | ||
4704 | ||
4705 | echo $ac_n "checking "for --enable-splitter"""... $ac_c" 1>&6 | |
f512f90a | 4706 | echo "configure:4707: checking "for --enable-splitter"" >&5 |
10f2d63a VZ |
4707 | no_cache=0 |
4708 | # Check whether --enable-splitter or --disable-splitter was given. | |
4709 | if test "${enable_splitter+set}" = set; then | |
4710 | enableval="$enable_splitter" | |
4711 | ||
4712 | if test "$enableval" = yes; then | |
4713 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
4714 | else | |
4715 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
4716 | fi | |
4717 | ||
4718 | else | |
4719 | ||
4720 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
4721 | if test "x$LINE" != x ; then | |
4722 | eval "DEFAULT_$LINE" | |
4723 | else | |
4724 | no_cache=1 | |
4725 | fi | |
4726 | ||
4727 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
4728 | ||
4729 | fi | |
4730 | ||
4731 | ||
4732 | eval "$ac_cv_use_splitter" | |
4733 | if test "$no_cache" != 1; then | |
4734 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
4735 | fi | |
4736 | ||
4737 | if test "$wxUSE_SPLITTER" = yes; then | |
4738 | echo "$ac_t""yes" 1>&6 | |
4739 | else | |
4740 | echo "$ac_t""no" 1>&6 | |
4741 | fi | |
4742 | ||
4743 | ||
4744 | echo $ac_n "checking "for --enable-statbmp"""... $ac_c" 1>&6 | |
f512f90a | 4745 | echo "configure:4746: checking "for --enable-statbmp"" >&5 |
10f2d63a VZ |
4746 | no_cache=0 |
4747 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
4748 | if test "${enable_statbmp+set}" = set; then | |
4749 | enableval="$enable_statbmp" | |
4750 | ||
4751 | if test "$enableval" = yes; then | |
4752 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
4753 | else | |
4754 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
4755 | fi | |
4756 | ||
4757 | else | |
4758 | ||
4759 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
4760 | if test "x$LINE" != x ; then | |
4761 | eval "DEFAULT_$LINE" | |
4762 | else | |
4763 | no_cache=1 | |
4764 | fi | |
4765 | ||
4766 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
4767 | ||
4768 | fi | |
4769 | ||
4770 | ||
4771 | eval "$ac_cv_use_statbmp" | |
4772 | if test "$no_cache" != 1; then | |
4773 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
4774 | fi | |
4775 | ||
4776 | if test "$wxUSE_STATBMP" = yes; then | |
4777 | echo "$ac_t""yes" 1>&6 | |
4778 | else | |
4779 | echo "$ac_t""no" 1>&6 | |
4780 | fi | |
4781 | ||
4782 | ||
4783 | echo $ac_n "checking "for --enable-statbox"""... $ac_c" 1>&6 | |
f512f90a | 4784 | echo "configure:4785: checking "for --enable-statbox"" >&5 |
10f2d63a VZ |
4785 | no_cache=0 |
4786 | # Check whether --enable-statbox or --disable-statbox was given. | |
4787 | if test "${enable_statbox+set}" = set; then | |
4788 | enableval="$enable_statbox" | |
4789 | ||
4790 | if test "$enableval" = yes; then | |
4791 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
4792 | else | |
4793 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | ||
4798 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
4806 | ||
4807 | fi | |
4808 | ||
4809 | ||
4810 | eval "$ac_cv_use_statbox" | |
4811 | if test "$no_cache" != 1; then | |
4812 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
4813 | fi | |
4814 | ||
4815 | if test "$wxUSE_STATBOX" = yes; then | |
4816 | echo "$ac_t""yes" 1>&6 | |
4817 | else | |
4818 | echo "$ac_t""no" 1>&6 | |
4819 | fi | |
4820 | ||
4821 | ||
4822 | echo $ac_n "checking "for --enable-statline"""... $ac_c" 1>&6 | |
f512f90a | 4823 | echo "configure:4824: checking "for --enable-statline"" >&5 |
10f2d63a VZ |
4824 | no_cache=0 |
4825 | # Check whether --enable-statline or --disable-statline was given. | |
4826 | if test "${enable_statline+set}" = set; then | |
4827 | enableval="$enable_statline" | |
4828 | ||
4829 | if test "$enableval" = yes; then | |
4830 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
4831 | else | |
4832 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
4833 | fi | |
4834 | ||
4835 | else | |
4836 | ||
4837 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
4838 | if test "x$LINE" != x ; then | |
4839 | eval "DEFAULT_$LINE" | |
4840 | else | |
4841 | no_cache=1 | |
4842 | fi | |
4843 | ||
4844 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
4845 | ||
4846 | fi | |
4847 | ||
4848 | ||
4849 | eval "$ac_cv_use_statline" | |
4850 | if test "$no_cache" != 1; then | |
4851 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
4852 | fi | |
4853 | ||
4854 | if test "$wxUSE_STATLINE" = yes; then | |
4855 | echo "$ac_t""yes" 1>&6 | |
4856 | else | |
4857 | echo "$ac_t""no" 1>&6 | |
4858 | fi | |
4859 | ||
4860 | ||
4861 | echo $ac_n "checking "for --enable-statusbar"""... $ac_c" 1>&6 | |
f512f90a | 4862 | echo "configure:4863: checking "for --enable-statusbar"" >&5 |
10f2d63a VZ |
4863 | no_cache=0 |
4864 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
4865 | if test "${enable_statusbar+set}" = set; then | |
4866 | enableval="$enable_statusbar" | |
4867 | ||
4868 | if test "$enableval" = yes; then | |
4869 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
4870 | else | |
4871 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
4872 | fi | |
4873 | ||
4874 | else | |
4875 | ||
4876 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
4877 | if test "x$LINE" != x ; then | |
4878 | eval "DEFAULT_$LINE" | |
4879 | else | |
4880 | no_cache=1 | |
4881 | fi | |
4882 | ||
4883 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
4884 | ||
4885 | fi | |
4886 | ||
4887 | ||
4888 | eval "$ac_cv_use_statusbar" | |
4889 | if test "$no_cache" != 1; then | |
4890 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
4891 | fi | |
4892 | ||
4893 | if test "$wxUSE_STATUSBAR" = yes; then | |
4894 | echo "$ac_t""yes" 1>&6 | |
4895 | else | |
4896 | echo "$ac_t""no" 1>&6 | |
4897 | fi | |
4898 | ||
4899 | ||
4900 | echo $ac_n "checking "for --enable-tabdialog"""... $ac_c" 1>&6 | |
f512f90a | 4901 | echo "configure:4902: checking "for --enable-tabdialog"" >&5 |
10f2d63a VZ |
4902 | no_cache=0 |
4903 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
4904 | if test "${enable_tabdialog+set}" = set; then | |
4905 | enableval="$enable_tabdialog" | |
4906 | ||
4907 | if test "$enableval" = yes; then | |
4908 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
4909 | else | |
4910 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
4911 | fi | |
4912 | ||
4913 | else | |
4914 | ||
4915 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
4916 | if test "x$LINE" != x ; then | |
4917 | eval "DEFAULT_$LINE" | |
4918 | else | |
4919 | no_cache=1 | |
4920 | fi | |
4921 | ||
4922 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
4923 | ||
4924 | fi | |
4925 | ||
4926 | ||
4927 | eval "$ac_cv_use_tabdialog" | |
4928 | if test "$no_cache" != 1; then | |
4929 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
4930 | fi | |
4931 | ||
4932 | if test "$wxUSE_TABDIALOG" = yes; then | |
4933 | echo "$ac_t""yes" 1>&6 | |
4934 | else | |
4935 | echo "$ac_t""no" 1>&6 | |
4936 | fi | |
4937 | ||
4938 | ||
4939 | echo $ac_n "checking "for --enable-toolbar"""... $ac_c" 1>&6 | |
f512f90a | 4940 | echo "configure:4941: checking "for --enable-toolbar"" >&5 |
10f2d63a VZ |
4941 | no_cache=0 |
4942 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
4943 | if test "${enable_toolbar+set}" = set; then | |
4944 | enableval="$enable_toolbar" | |
4945 | ||
4946 | if test "$enableval" = yes; then | |
4947 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
4948 | else | |
4949 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
4950 | fi | |
4951 | ||
4952 | else | |
4953 | ||
4954 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
4955 | if test "x$LINE" != x ; then | |
4956 | eval "DEFAULT_$LINE" | |
4957 | else | |
4958 | no_cache=1 | |
4959 | fi | |
4960 | ||
4961 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
4962 | ||
4963 | fi | |
4964 | ||
4965 | ||
4966 | eval "$ac_cv_use_toolbar" | |
4967 | if test "$no_cache" != 1; then | |
4968 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
4969 | fi | |
4970 | ||
4971 | if test "$wxUSE_TOOLBAR" = yes; then | |
4972 | echo "$ac_t""yes" 1>&6 | |
4973 | else | |
4974 | echo "$ac_t""no" 1>&6 | |
4975 | fi | |
4976 | ||
4977 | ||
4978 | echo $ac_n "checking "for --enable-treectrl"""... $ac_c" 1>&6 | |
f512f90a | 4979 | echo "configure:4980: checking "for --enable-treectrl"" >&5 |
10f2d63a VZ |
4980 | no_cache=0 |
4981 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
4982 | if test "${enable_treectrl+set}" = set; then | |
4983 | enableval="$enable_treectrl" | |
4984 | ||
4985 | if test "$enableval" = yes; then | |
4986 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
4987 | else | |
4988 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
4989 | fi | |
4990 | ||
4991 | else | |
4992 | ||
4993 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
4994 | if test "x$LINE" != x ; then | |
4995 | eval "DEFAULT_$LINE" | |
4996 | else | |
4997 | no_cache=1 | |
4998 | fi | |
4999 | ||
5000 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
5001 | ||
5002 | fi | |
5003 | ||
5004 | ||
5005 | eval "$ac_cv_use_treectrl" | |
5006 | if test "$no_cache" != 1; then | |
5007 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
5008 | fi | |
5009 | ||
5010 | if test "$wxUSE_TREECTRL" = yes; then | |
5011 | echo "$ac_t""yes" 1>&6 | |
5012 | else | |
5013 | echo "$ac_t""no" 1>&6 | |
5014 | fi | |
5015 | ||
5016 | ||
5017 | ||
5018 | ||
5019 | echo $ac_n "checking "for --enable-commondlg"""... $ac_c" 1>&6 | |
f512f90a | 5020 | echo "configure:5021: checking "for --enable-commondlg"" >&5 |
10f2d63a VZ |
5021 | no_cache=0 |
5022 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
5023 | if test "${enable_commondlg+set}" = set; then | |
5024 | enableval="$enable_commondlg" | |
5025 | ||
5026 | if test "$enableval" = yes; then | |
5027 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
5028 | else | |
5029 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
5030 | fi | |
5031 | ||
5032 | else | |
5033 | ||
5034 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
5035 | if test "x$LINE" != x ; then | |
5036 | eval "DEFAULT_$LINE" | |
5037 | else | |
5038 | no_cache=1 | |
5039 | fi | |
5040 | ||
5041 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
5042 | ||
5043 | fi | |
5044 | ||
5045 | ||
5046 | eval "$ac_cv_use_commondlg" | |
5047 | if test "$no_cache" != 1; then | |
5048 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
5049 | fi | |
5050 | ||
5051 | if test "$wxUSE_COMMONDLGS" = yes; then | |
5052 | echo "$ac_t""yes" 1>&6 | |
5053 | else | |
5054 | echo "$ac_t""no" 1>&6 | |
5055 | fi | |
5056 | ||
5057 | ||
5058 | echo $ac_n "checking "for --enable-dirdlg"""... $ac_c" 1>&6 | |
f512f90a | 5059 | echo "configure:5060: checking "for --enable-dirdlg"" >&5 |
10f2d63a VZ |
5060 | no_cache=0 |
5061 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
5062 | if test "${enable_dirdlg+set}" = set; then | |
5063 | enableval="$enable_dirdlg" | |
5064 | ||
5065 | if test "$enableval" = yes; then | |
5066 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
5067 | else | |
5068 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
5069 | fi | |
5070 | ||
5071 | else | |
5072 | ||
5073 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
5074 | if test "x$LINE" != x ; then | |
5075 | eval "DEFAULT_$LINE" | |
5076 | else | |
5077 | no_cache=1 | |
5078 | fi | |
5079 | ||
5080 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
5081 | ||
5082 | fi | |
5083 | ||
5084 | ||
5085 | eval "$ac_cv_use_dirdlg" | |
5086 | if test "$no_cache" != 1; then | |
5087 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
5088 | fi | |
5089 | ||
5090 | if test "$wxUSE_DIRDLG" = yes; then | |
5091 | echo "$ac_t""yes" 1>&6 | |
5092 | else | |
5093 | echo "$ac_t""no" 1>&6 | |
5094 | fi | |
5095 | ||
5096 | ||
5097 | echo $ac_n "checking "for --enable-textdlg"""... $ac_c" 1>&6 | |
f512f90a | 5098 | echo "configure:5099: checking "for --enable-textdlg"" >&5 |
10f2d63a VZ |
5099 | no_cache=0 |
5100 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
5101 | if test "${enable_textdlg+set}" = set; then | |
5102 | enableval="$enable_textdlg" | |
5103 | ||
5104 | if test "$enableval" = yes; then | |
5105 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
5106 | else | |
5107 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
5108 | fi | |
5109 | ||
5110 | else | |
5111 | ||
5112 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
5113 | if test "x$LINE" != x ; then | |
5114 | eval "DEFAULT_$LINE" | |
5115 | else | |
5116 | no_cache=1 | |
5117 | fi | |
5118 | ||
5119 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
5120 | ||
5121 | fi | |
5122 | ||
5123 | ||
5124 | eval "$ac_cv_use_textdlg" | |
5125 | if test "$no_cache" != 1; then | |
5126 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
5127 | fi | |
5128 | ||
5129 | if test "$wxUSE_TEXTDLG" = yes; then | |
5130 | echo "$ac_t""yes" 1>&6 | |
5131 | else | |
5132 | echo "$ac_t""no" 1>&6 | |
5133 | fi | |
5134 | ||
5135 | ||
5136 | echo $ac_n "checking "for --enable-tipdlg"""... $ac_c" 1>&6 | |
f512f90a | 5137 | echo "configure:5138: checking "for --enable-tipdlg"" >&5 |
10f2d63a VZ |
5138 | no_cache=0 |
5139 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
5140 | if test "${enable_tipdlg+set}" = set; then | |
5141 | enableval="$enable_tipdlg" | |
5142 | ||
5143 | if test "$enableval" = yes; then | |
5144 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
5145 | else | |
5146 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
5147 | fi | |
5148 | ||
5149 | else | |
5150 | ||
5151 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
5152 | if test "x$LINE" != x ; then | |
5153 | eval "DEFAULT_$LINE" | |
5154 | else | |
5155 | no_cache=1 | |
5156 | fi | |
5157 | ||
5158 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
5159 | ||
5160 | fi | |
5161 | ||
5162 | ||
5163 | eval "$ac_cv_use_tipdlg" | |
5164 | if test "$no_cache" != 1; then | |
5165 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
5166 | fi | |
5167 | ||
5168 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
5169 | echo "$ac_t""yes" 1>&6 | |
5170 | else | |
5171 | echo "$ac_t""no" 1>&6 | |
5172 | fi | |
5173 | ||
5174 | ||
5175 | echo $ac_n "checking "for --enable-progressdlg"""... $ac_c" 1>&6 | |
f512f90a | 5176 | echo "configure:5177: checking "for --enable-progressdlg"" >&5 |
10f2d63a VZ |
5177 | no_cache=0 |
5178 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
5179 | if test "${enable_progressdlg+set}" = set; then | |
5180 | enableval="$enable_progressdlg" | |
5181 | ||
5182 | if test "$enableval" = yes; then | |
5183 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
5184 | else | |
5185 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
5186 | fi | |
5187 | ||
5188 | else | |
5189 | ||
5190 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
5191 | if test "x$LINE" != x ; then | |
5192 | eval "DEFAULT_$LINE" | |
5193 | else | |
5194 | no_cache=1 | |
5195 | fi | |
5196 | ||
5197 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
5198 | ||
5199 | fi | |
5200 | ||
5201 | ||
5202 | eval "$ac_cv_use_progressdlg" | |
5203 | if test "$no_cache" != 1; then | |
5204 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
5205 | fi | |
5206 | ||
5207 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
5208 | echo "$ac_t""yes" 1>&6 | |
5209 | else | |
5210 | echo "$ac_t""no" 1>&6 | |
5211 | fi | |
5212 | ||
5213 | ||
5214 | echo $ac_n "checking "for --enable-miniframe"""... $ac_c" 1>&6 | |
f512f90a | 5215 | echo "configure:5216: checking "for --enable-miniframe"" >&5 |
10f2d63a VZ |
5216 | no_cache=0 |
5217 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
5218 | if test "${enable_miniframe+set}" = set; then | |
5219 | enableval="$enable_miniframe" | |
5220 | ||
5221 | if test "$enableval" = yes; then | |
5222 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
5223 | else | |
5224 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
5225 | fi | |
5226 | ||
5227 | else | |
5228 | ||
5229 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
5230 | if test "x$LINE" != x ; then | |
5231 | eval "DEFAULT_$LINE" | |
5232 | else | |
5233 | no_cache=1 | |
5234 | fi | |
5235 | ||
5236 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
5237 | ||
5238 | fi | |
5239 | ||
5240 | ||
5241 | eval "$ac_cv_use_miniframe" | |
5242 | if test "$no_cache" != 1; then | |
5243 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
5244 | fi | |
5245 | ||
5246 | if test "$wxUSE_MINIFRAME" = yes; then | |
5247 | echo "$ac_t""yes" 1>&6 | |
5248 | else | |
5249 | echo "$ac_t""no" 1>&6 | |
5250 | fi | |
5251 | ||
5252 | ||
5253 | echo $ac_n "checking "for --enable-html"""... $ac_c" 1>&6 | |
f512f90a | 5254 | echo "configure:5255: checking "for --enable-html"" >&5 |
10f2d63a VZ |
5255 | no_cache=0 |
5256 | # Check whether --enable-html or --disable-html was given. | |
5257 | if test "${enable_html+set}" = set; then | |
5258 | enableval="$enable_html" | |
5259 | ||
5260 | if test "$enableval" = yes; then | |
5261 | ac_cv_use_html='wxUSE_HTML=yes' | |
5262 | else | |
5263 | ac_cv_use_html='wxUSE_HTML=no' | |
5264 | fi | |
5265 | ||
5266 | else | |
5267 | ||
5268 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
5269 | if test "x$LINE" != x ; then | |
5270 | eval "DEFAULT_$LINE" | |
5271 | else | |
5272 | no_cache=1 | |
5273 | fi | |
5274 | ||
5275 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
5276 | ||
5277 | fi | |
5278 | ||
5279 | ||
5280 | eval "$ac_cv_use_html" | |
5281 | if test "$no_cache" != 1; then | |
5282 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5283 | fi | |
5284 | ||
5285 | if test "$wxUSE_HTML" = yes; then | |
5286 | echo "$ac_t""yes" 1>&6 | |
5287 | else | |
5288 | echo "$ac_t""no" 1>&6 | |
5289 | fi | |
5290 | ||
5291 | ||
5292 | echo $ac_n "checking "for --enable-tooltips"""... $ac_c" 1>&6 | |
f512f90a | 5293 | echo "configure:5294: checking "for --enable-tooltips"" >&5 |
10f2d63a VZ |
5294 | no_cache=0 |
5295 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
5296 | if test "${enable_tooltips+set}" = set; then | |
5297 | enableval="$enable_tooltips" | |
5298 | ||
5299 | if test "$enableval" = yes; then | |
5300 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
5301 | else | |
5302 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
5303 | fi | |
5304 | ||
5305 | else | |
5306 | ||
5307 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
5308 | if test "x$LINE" != x ; then | |
5309 | eval "DEFAULT_$LINE" | |
5310 | else | |
5311 | no_cache=1 | |
5312 | fi | |
5313 | ||
5314 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
5315 | ||
5316 | fi | |
5317 | ||
5318 | ||
5319 | eval "$ac_cv_use_tooltips" | |
5320 | if test "$no_cache" != 1; then | |
5321 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
5322 | fi | |
5323 | ||
5324 | if test "$wxUSE_TOOLTIPS" = yes; then | |
5325 | echo "$ac_t""yes" 1>&6 | |
5326 | else | |
5327 | echo "$ac_t""no" 1>&6 | |
5328 | fi | |
5329 | ||
5330 | ||
5331 | echo $ac_n "checking "for --enable-splines"""... $ac_c" 1>&6 | |
f512f90a | 5332 | echo "configure:5333: checking "for --enable-splines"" >&5 |
10f2d63a VZ |
5333 | no_cache=0 |
5334 | # Check whether --enable-splines or --disable-splines was given. | |
5335 | if test "${enable_splines+set}" = set; then | |
5336 | enableval="$enable_splines" | |
5337 | ||
5338 | if test "$enableval" = yes; then | |
5339 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
5340 | else | |
5341 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
5342 | fi | |
5343 | ||
5344 | else | |
5345 | ||
5346 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
5347 | if test "x$LINE" != x ; then | |
5348 | eval "DEFAULT_$LINE" | |
5349 | else | |
5350 | no_cache=1 | |
5351 | fi | |
5352 | ||
5353 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
5354 | ||
5355 | fi | |
5356 | ||
5357 | ||
5358 | eval "$ac_cv_use_splines" | |
5359 | if test "$no_cache" != 1; then | |
5360 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
5361 | fi | |
5362 | ||
5363 | if test "$wxUSE_SPLINES" = yes; then | |
5364 | echo "$ac_t""yes" 1>&6 | |
5365 | else | |
5366 | echo "$ac_t""no" 1>&6 | |
5367 | fi | |
5368 | ||
5369 | ||
5370 | echo $ac_n "checking "for --enable-validators"""... $ac_c" 1>&6 | |
f512f90a | 5371 | echo "configure:5372: checking "for --enable-validators"" >&5 |
10f2d63a VZ |
5372 | no_cache=0 |
5373 | # Check whether --enable-validators or --disable-validators was given. | |
5374 | if test "${enable_validators+set}" = set; then | |
5375 | enableval="$enable_validators" | |
5376 | ||
5377 | if test "$enableval" = yes; then | |
5378 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
5379 | else | |
5380 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
5381 | fi | |
5382 | ||
5383 | else | |
5384 | ||
5385 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
5386 | if test "x$LINE" != x ; then | |
5387 | eval "DEFAULT_$LINE" | |
5388 | else | |
5389 | no_cache=1 | |
5390 | fi | |
5391 | ||
5392 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
5393 | ||
5394 | fi | |
5395 | ||
5396 | ||
5397 | eval "$ac_cv_use_validators" | |
5398 | if test "$no_cache" != 1; then | |
5399 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
5400 | fi | |
5401 | ||
5402 | if test "$wxUSE_VALIDATORS" = yes; then | |
5403 | echo "$ac_t""yes" 1>&6 | |
5404 | else | |
5405 | echo "$ac_t""no" 1>&6 | |
5406 | fi | |
5407 | ||
5408 | ||
5409 | echo $ac_n "checking "for --enable-busyinfo"""... $ac_c" 1>&6 | |
f512f90a | 5410 | echo "configure:5411: checking "for --enable-busyinfo"" >&5 |
10f2d63a VZ |
5411 | no_cache=0 |
5412 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
5413 | if test "${enable_busyinfo+set}" = set; then | |
5414 | enableval="$enable_busyinfo" | |
5415 | ||
5416 | if test "$enableval" = yes; then | |
5417 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
5418 | else | |
5419 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
5420 | fi | |
5421 | ||
5422 | else | |
5423 | ||
5424 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
5425 | if test "x$LINE" != x ; then | |
5426 | eval "DEFAULT_$LINE" | |
5427 | else | |
5428 | no_cache=1 | |
5429 | fi | |
5430 | ||
5431 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
5432 | ||
5433 | fi | |
5434 | ||
5435 | ||
5436 | eval "$ac_cv_use_busyinfo" | |
5437 | if test "$no_cache" != 1; then | |
5438 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
5439 | fi | |
5440 | ||
5441 | if test "$wxUSE_BUSYINFO" = yes; then | |
5442 | echo "$ac_t""yes" 1>&6 | |
5443 | else | |
5444 | echo "$ac_t""no" 1>&6 | |
5445 | fi | |
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | echo $ac_n "checking "for --enable-gif"""... $ac_c" 1>&6 | |
f512f90a | 5451 | echo "configure:5452: checking "for --enable-gif"" >&5 |
10f2d63a VZ |
5452 | no_cache=0 |
5453 | # Check whether --enable-gif or --disable-gif was given. | |
5454 | if test "${enable_gif+set}" = set; then | |
5455 | enableval="$enable_gif" | |
5456 | ||
5457 | if test "$enableval" = yes; then | |
5458 | ac_cv_use_gif='wxUSE_GIF=yes' | |
5459 | else | |
5460 | ac_cv_use_gif='wxUSE_GIF=no' | |
5461 | fi | |
5462 | ||
5463 | else | |
5464 | ||
5465 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
5466 | if test "x$LINE" != x ; then | |
5467 | eval "DEFAULT_$LINE" | |
5468 | else | |
5469 | no_cache=1 | |
5470 | fi | |
5471 | ||
5472 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
5473 | ||
5474 | fi | |
5475 | ||
5476 | ||
5477 | eval "$ac_cv_use_gif" | |
5478 | if test "$no_cache" != 1; then | |
5479 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
5480 | fi | |
5481 | ||
5482 | if test "$wxUSE_GIF" = yes; then | |
5483 | echo "$ac_t""yes" 1>&6 | |
5484 | else | |
5485 | echo "$ac_t""no" 1>&6 | |
5486 | fi | |
5487 | ||
5488 | ||
5489 | echo $ac_n "checking "for --enable-pcx"""... $ac_c" 1>&6 | |
f512f90a | 5490 | echo "configure:5491: checking "for --enable-pcx"" >&5 |
10f2d63a VZ |
5491 | no_cache=0 |
5492 | # Check whether --enable-pcx or --disable-pcx was given. | |
5493 | if test "${enable_pcx+set}" = set; then | |
5494 | enableval="$enable_pcx" | |
5495 | ||
5496 | if test "$enableval" = yes; then | |
5497 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
5498 | else | |
5499 | ac_cv_use_pcx='wxUSE_PCX=no' | |
5500 | fi | |
5501 | ||
5502 | else | |
5503 | ||
5504 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
5505 | if test "x$LINE" != x ; then | |
5506 | eval "DEFAULT_$LINE" | |
5507 | else | |
5508 | no_cache=1 | |
5509 | fi | |
5510 | ||
5511 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
5512 | ||
5513 | fi | |
5514 | ||
5515 | ||
5516 | eval "$ac_cv_use_pcx" | |
5517 | if test "$no_cache" != 1; then | |
5518 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
5519 | fi | |
5520 | ||
5521 | if test "$wxUSE_PCX" = yes; then | |
5522 | echo "$ac_t""yes" 1>&6 | |
5523 | else | |
5524 | echo "$ac_t""no" 1>&6 | |
5525 | fi | |
5526 | ||
5527 | ||
5528 | echo $ac_n "checking "for --enable-pnm"""... $ac_c" 1>&6 | |
f512f90a | 5529 | echo "configure:5530: checking "for --enable-pnm"" >&5 |
10f2d63a VZ |
5530 | no_cache=0 |
5531 | # Check whether --enable-pnm or --disable-pnm was given. | |
5532 | if test "${enable_pnm+set}" = set; then | |
5533 | enableval="$enable_pnm" | |
5534 | ||
5535 | if test "$enableval" = yes; then | |
5536 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
5537 | else | |
5538 | ac_cv_use_pnm='wxUSE_PNM=no' | |
5539 | fi | |
5540 | ||
5541 | else | |
5542 | ||
5543 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
5544 | if test "x$LINE" != x ; then | |
5545 | eval "DEFAULT_$LINE" | |
5546 | else | |
5547 | no_cache=1 | |
5548 | fi | |
5549 | ||
5550 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
5551 | ||
5552 | fi | |
5553 | ||
5554 | ||
5555 | eval "$ac_cv_use_pnm" | |
5556 | if test "$no_cache" != 1; then | |
5557 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
5558 | fi | |
5559 | ||
5560 | if test "$wxUSE_PNM" = yes; then | |
5561 | echo "$ac_t""yes" 1>&6 | |
5562 | else | |
5563 | echo "$ac_t""no" 1>&6 | |
5564 | fi | |
5565 | ||
5566 | ||
5567 | ||
5568 | echo "saving argument cache $wx_arg_cache_file" | |
5569 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
5570 | ||
5571 | ||
5572 | ||
5573 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 | |
f512f90a | 5574 | echo "configure:5575: checking for toolkit" >&5 |
10f2d63a VZ |
5575 | |
5576 | if test "$wxUSE_GUI" = "yes"; then | |
5577 | ||
5578 | if test "$TOOLKIT_GIVEN" = 1; then | |
5579 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5580 | var=wxUSE_$toolkit | |
5581 | eval "value=\$${var}" | |
5582 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
5583 | done | |
5584 | else | |
5585 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5586 | if test "$has_toolkit_in_cache" != 1; then | |
5587 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
5588 | else | |
5589 | var=DEFAULT_wxUSE_$toolkit | |
5590 | fi | |
5591 | eval "wxUSE_$toolkit=\$${var}" | |
5592 | done | |
5593 | fi | |
5594 | ||
5595 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0}` | |
5596 | ||
5597 | case "$NUM_TOOLKITS" in | |
5598 | 1) | |
5599 | ;; | |
5600 | 0) | |
5601 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } | |
5602 | ;; | |
5603 | *) | |
5604 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } | |
5605 | esac | |
5606 | ||
5607 | for toolkit in `echo $ALL_TOOLKITS`; do | |
5608 | var=wxUSE_$toolkit | |
5609 | eval "value=\$${var}" | |
5610 | if test "x$value" != x; then | |
5611 | cache_var=CACHE_$toolkit | |
5612 | eval "cache=\$${cache_var}" | |
5613 | if test "$cache" = 1; then | |
5614 | echo "$var=$value" >> ${wx_arg_cache_file} | |
5615 | fi | |
5616 | if test "$value" = 1; then | |
5617 | echo "$ac_t""`echo $toolkit | tr A-Z a-z`" 1>&6 | |
5618 | fi | |
5619 | fi | |
5620 | done | |
5621 | ||
5622 | else | |
5623 | echo "$ac_t""base only" 1>&6 | |
5624 | fi | |
5625 | ||
5626 | ||
5627 | cat > confcache <<\EOF | |
5628 | # This file is a shell script that caches the results of configure | |
5629 | # tests run on this system so they can be shared between configure | |
5630 | # scripts and configure runs. It is not useful on other systems. | |
5631 | # If it contains results you don't want to keep, you may remove or edit it. | |
5632 | # | |
5633 | # By default, configure uses ./config.cache as the cache file, | |
5634 | # creating it if it does not exist already. You can give configure | |
5635 | # the --cache-file=FILE option to use a different cache file; that is | |
5636 | # what configure does when it calls configure scripts in | |
5637 | # subdirectories, so they share the cache. | |
5638 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
5639 | # config.status only pays attention to the cache file if you give it the | |
5640 | # --recheck option to rerun configure. | |
5641 | # | |
5642 | EOF | |
5643 | # The following way of writing the cache mishandles newlines in values, | |
5644 | # but we know of no workaround that is simple, portable, and efficient. | |
5645 | # So, don't put newlines in cache variables' values. | |
5646 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
5647 | # and sets the high bit in the cache file unless we assign to the vars. | |
5648 | (set) 2>&1 | | |
5649 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
5650 | *ac_space=\ *) | |
5651 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
5652 | # turns \\\\ into \\, and sed turns \\ into \). | |
5653 | sed -n \ | |
5654 | -e "s/'/'\\\\''/g" \ | |
5655 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
5656 | ;; | |
5657 | *) | |
5658 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
5659 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
5660 | ;; | |
5661 | esac >> confcache | |
5662 | if cmp -s $cache_file confcache; then | |
5663 | : | |
5664 | else | |
5665 | if test -w $cache_file; then | |
5666 | echo "updating cache $cache_file" | |
5667 | cat confcache > $cache_file | |
5668 | else | |
5669 | echo "not updating unwritable cache $cache_file" | |
5670 | fi | |
5671 | fi | |
5672 | rm -f confcache | |
5673 | ||
5674 | ||
5675 | if eval "test $host != $build"; then | |
5676 | if eval "test $host_alias != NONE"; then | |
5677 | CC=$host_alias-gcc | |
5678 | CXX=$host_alias-c++ | |
5679 | AR=$host_alias-ar | |
5680 | RANLIB=$host_alias-ranlib | |
5681 | DLLTOOL=$host_alias-dlltool | |
5682 | LD=$host_alias-ld | |
5683 | NM=$host_alias-nm | |
5684 | STRIP=$host_alias-strip | |
5685 | fi | |
5686 | fi | |
5687 | ||
5688 | # Extract the first word of "gcc", so it can be a program name with args. | |
5689 | set dummy gcc; ac_word=$2 | |
5690 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 5691 | echo "configure:5692: checking for $ac_word" >&5 |
10f2d63a VZ |
5692 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5694 | else | |
5695 | if test -n "$CC"; then | |
5696 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5697 | else | |
5698 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5699 | ac_dummy="$PATH" | |
5700 | for ac_dir in $ac_dummy; do | |
5701 | test -z "$ac_dir" && ac_dir=. | |
5702 | if test -f $ac_dir/$ac_word; then | |
5703 | ac_cv_prog_CC="gcc" | |
5704 | break | |
5705 | fi | |
5706 | done | |
5707 | IFS="$ac_save_ifs" | |
5708 | fi | |
5709 | fi | |
5710 | CC="$ac_cv_prog_CC" | |
5711 | if test -n "$CC"; then | |
5712 | echo "$ac_t""$CC" 1>&6 | |
5713 | else | |
5714 | echo "$ac_t""no" 1>&6 | |
5715 | fi | |
5716 | ||
5717 | if test -z "$CC"; then | |
5718 | # Extract the first word of "cc", so it can be a program name with args. | |
5719 | set dummy cc; ac_word=$2 | |
5720 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 5721 | echo "configure:5722: checking for $ac_word" >&5 |
10f2d63a VZ |
5722 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5723 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5724 | else | |
5725 | if test -n "$CC"; then | |
5726 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5727 | else | |
5728 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5729 | ac_prog_rejected=no | |
5730 | ac_dummy="$PATH" | |
5731 | for ac_dir in $ac_dummy; do | |
5732 | test -z "$ac_dir" && ac_dir=. | |
5733 | if test -f $ac_dir/$ac_word; then | |
5734 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
5735 | ac_prog_rejected=yes | |
5736 | continue | |
5737 | fi | |
5738 | ac_cv_prog_CC="cc" | |
5739 | break | |
5740 | fi | |
5741 | done | |
5742 | IFS="$ac_save_ifs" | |
5743 | if test $ac_prog_rejected = yes; then | |
5744 | # We found a bogon in the path, so make sure we never use it. | |
5745 | set dummy $ac_cv_prog_CC | |
5746 | shift | |
5747 | if test $# -gt 0; then | |
5748 | # We chose a different compiler from the bogus one. | |
5749 | # However, it has the same basename, so the bogon will be chosen | |
5750 | # first if we set CC to just the basename; use the full file name. | |
5751 | shift | |
5752 | set dummy "$ac_dir/$ac_word" "$@" | |
5753 | shift | |
5754 | ac_cv_prog_CC="$@" | |
5755 | fi | |
5756 | fi | |
5757 | fi | |
5758 | fi | |
5759 | CC="$ac_cv_prog_CC" | |
5760 | if test -n "$CC"; then | |
5761 | echo "$ac_t""$CC" 1>&6 | |
5762 | else | |
5763 | echo "$ac_t""no" 1>&6 | |
5764 | fi | |
5765 | ||
5766 | if test -z "$CC"; then | |
5767 | case "`uname -s`" in | |
5768 | *win32* | *WIN32*) | |
5769 | # Extract the first word of "cl", so it can be a program name with args. | |
5770 | set dummy cl; ac_word=$2 | |
5771 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 5772 | echo "configure:5773: checking for $ac_word" >&5 |
10f2d63a VZ |
5773 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
5774 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5775 | else | |
5776 | if test -n "$CC"; then | |
5777 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
5778 | else | |
5779 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
5780 | ac_dummy="$PATH" | |
5781 | for ac_dir in $ac_dummy; do | |
5782 | test -z "$ac_dir" && ac_dir=. | |
5783 | if test -f $ac_dir/$ac_word; then | |
5784 | ac_cv_prog_CC="cl" | |
5785 | break | |
5786 | fi | |
5787 | done | |
5788 | IFS="$ac_save_ifs" | |
5789 | fi | |
5790 | fi | |
5791 | CC="$ac_cv_prog_CC" | |
5792 | if test -n "$CC"; then | |
5793 | echo "$ac_t""$CC" 1>&6 | |
5794 | else | |
5795 | echo "$ac_t""no" 1>&6 | |
5796 | fi | |
5797 | ;; | |
5798 | esac | |
5799 | fi | |
5800 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
5801 | fi | |
5802 | ||
5803 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
f512f90a | 5804 | echo "configure:5805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
5805 | |
5806 | ac_ext=c | |
5807 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5808 | ac_cpp='$CPP $CPPFLAGS' | |
5809 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5810 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5811 | cross_compiling=$ac_cv_prog_cc_cross | |
5812 | ||
5813 | cat > conftest.$ac_ext << EOF | |
5814 | ||
f512f90a | 5815 | #line 5816 "configure" |
10f2d63a VZ |
5816 | #include "confdefs.h" |
5817 | ||
5818 | main(){return(0);} | |
5819 | EOF | |
f512f90a | 5820 | if { (eval echo configure:5821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
5821 | ac_cv_prog_cc_works=yes |
5822 | # If we can't run a trivial program, we are probably using a cross compiler. | |
5823 | if (./conftest; exit) 2>/dev/null; then | |
5824 | ac_cv_prog_cc_cross=no | |
5825 | else | |
5826 | ac_cv_prog_cc_cross=yes | |
5827 | fi | |
5828 | else | |
5829 | echo "configure: failed program was:" >&5 | |
5830 | cat conftest.$ac_ext >&5 | |
5831 | ac_cv_prog_cc_works=no | |
5832 | fi | |
5833 | rm -fr conftest* | |
5834 | ac_ext=c | |
5835 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5836 | ac_cpp='$CPP $CPPFLAGS' | |
5837 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5838 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
5839 | cross_compiling=$ac_cv_prog_cc_cross | |
5840 | ||
5841 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
5842 | if test $ac_cv_prog_cc_works = no; then | |
5843 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
5844 | fi | |
5845 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
f512f90a | 5846 | echo "configure:5847: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
5847 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
5848 | cross_compiling=$ac_cv_prog_cc_cross | |
5849 | ||
5850 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
f512f90a | 5851 | echo "configure:5852: checking whether we are using GNU C" >&5 |
10f2d63a VZ |
5852 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
5853 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5854 | else | |
5855 | cat > conftest.c <<EOF | |
5856 | #ifdef __GNUC__ | |
5857 | yes; | |
5858 | #endif | |
5859 | EOF | |
f512f90a | 5860 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
5861 | ac_cv_prog_gcc=yes |
5862 | else | |
5863 | ac_cv_prog_gcc=no | |
5864 | fi | |
5865 | fi | |
5866 | ||
5867 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
5868 | ||
5869 | if test $ac_cv_prog_gcc = yes; then | |
5870 | GCC=yes | |
5871 | else | |
5872 | GCC= | |
5873 | fi | |
5874 | ||
5875 | ac_test_CFLAGS="${CFLAGS+set}" | |
5876 | ac_save_CFLAGS="$CFLAGS" | |
5877 | CFLAGS= | |
5878 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
f512f90a | 5879 | echo "configure:5880: checking whether ${CC-cc} accepts -g" >&5 |
10f2d63a VZ |
5880 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
5881 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5882 | else | |
5883 | echo 'void f(){}' > conftest.c | |
5884 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
5885 | ac_cv_prog_cc_g=yes | |
5886 | else | |
5887 | ac_cv_prog_cc_g=no | |
5888 | fi | |
5889 | rm -f conftest* | |
5890 | ||
5891 | fi | |
5892 | ||
5893 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
5894 | if test "$ac_test_CFLAGS" = set; then | |
5895 | CFLAGS="$ac_save_CFLAGS" | |
5896 | elif test $ac_cv_prog_cc_g = yes; then | |
5897 | if test "$GCC" = yes; then | |
5898 | CFLAGS="-g -O2" | |
5899 | else | |
5900 | CFLAGS="-g" | |
5901 | fi | |
5902 | else | |
5903 | if test "$GCC" = yes; then | |
5904 | CFLAGS="-O2" | |
5905 | else | |
5906 | CFLAGS= | |
5907 | fi | |
5908 | fi | |
5909 | ||
5910 | ||
5911 | CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'` | |
5912 | ||
5913 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
f512f90a | 5914 | echo "configure:5915: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
5915 | # On Suns, sometimes $CPP names a directory. |
5916 | if test -n "$CPP" && test -d "$CPP"; then | |
5917 | CPP= | |
5918 | fi | |
5919 | if test -z "$CPP"; then | |
5920 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
5921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5922 | else | |
5923 | # This must be in double quotes, not single quotes, because CPP may get | |
5924 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
5925 | CPP="${CC-cc} -E" | |
5926 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5927 | # not just through cpp. | |
5928 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 5929 | #line 5930 "configure" |
10f2d63a VZ |
5930 | #include "confdefs.h" |
5931 | #include <assert.h> | |
5932 | Syntax Error | |
5933 | EOF | |
5934 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 5935 | { (eval echo configure:5936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
5936 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5937 | if test -z "$ac_err"; then | |
5938 | : | |
5939 | else | |
5940 | echo "$ac_err" >&5 | |
5941 | echo "configure: failed program was:" >&5 | |
5942 | cat conftest.$ac_ext >&5 | |
5943 | rm -rf conftest* | |
5944 | CPP="${CC-cc} -E -traditional-cpp" | |
5945 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 5946 | #line 5947 "configure" |
10f2d63a VZ |
5947 | #include "confdefs.h" |
5948 | #include <assert.h> | |
5949 | Syntax Error | |
5950 | EOF | |
5951 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 5952 | { (eval echo configure:5953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
5953 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5954 | if test -z "$ac_err"; then | |
5955 | : | |
5956 | else | |
5957 | echo "$ac_err" >&5 | |
5958 | echo "configure: failed program was:" >&5 | |
5959 | cat conftest.$ac_ext >&5 | |
5960 | rm -rf conftest* | |
5961 | CPP="${CC-cc} -nologo -E" | |
5962 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 5963 | #line 5964 "configure" |
10f2d63a VZ |
5964 | #include "confdefs.h" |
5965 | #include <assert.h> | |
5966 | Syntax Error | |
5967 | EOF | |
5968 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 5969 | { (eval echo configure:5970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
5970 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5971 | if test -z "$ac_err"; then | |
5972 | : | |
5973 | else | |
5974 | echo "$ac_err" >&5 | |
5975 | echo "configure: failed program was:" >&5 | |
5976 | cat conftest.$ac_ext >&5 | |
5977 | rm -rf conftest* | |
5978 | CPP=/lib/cpp | |
5979 | fi | |
5980 | rm -f conftest* | |
5981 | fi | |
5982 | rm -f conftest* | |
5983 | fi | |
5984 | rm -f conftest* | |
5985 | ac_cv_prog_CPP="$CPP" | |
5986 | fi | |
5987 | CPP="$ac_cv_prog_CPP" | |
5988 | else | |
5989 | ac_cv_prog_CPP="$CPP" | |
5990 | fi | |
5991 | echo "$ac_t""$CPP" 1>&6 | |
5992 | ||
5993 | ||
5994 | if test $ac_cv_prog_gcc = yes; then | |
5995 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
f512f90a | 5996 | echo "configure:5997: checking whether ${CC-cc} needs -traditional" >&5 |
10f2d63a VZ |
5997 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
5998 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5999 | else | |
6000 | ac_pattern="Autoconf.*'x'" | |
6001 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 6002 | #line 6003 "configure" |
10f2d63a VZ |
6003 | #include "confdefs.h" |
6004 | #include <sgtty.h> | |
6005 | Autoconf TIOCGETP | |
6006 | EOF | |
6007 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6008 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6009 | rm -rf conftest* | |
6010 | ac_cv_prog_gcc_traditional=yes | |
6011 | else | |
6012 | rm -rf conftest* | |
6013 | ac_cv_prog_gcc_traditional=no | |
6014 | fi | |
6015 | rm -f conftest* | |
6016 | ||
6017 | ||
6018 | if test $ac_cv_prog_gcc_traditional = no; then | |
6019 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 6020 | #line 6021 "configure" |
10f2d63a VZ |
6021 | #include "confdefs.h" |
6022 | #include <termio.h> | |
6023 | Autoconf TCGETA | |
6024 | EOF | |
6025 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6026 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
6027 | rm -rf conftest* | |
6028 | ac_cv_prog_gcc_traditional=yes | |
6029 | fi | |
6030 | rm -f conftest* | |
6031 | ||
6032 | fi | |
6033 | fi | |
6034 | ||
6035 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
6036 | if test $ac_cv_prog_gcc_traditional = yes; then | |
6037 | CC="$CC -traditional" | |
6038 | fi | |
6039 | fi | |
6040 | ||
6041 | ||
6042 | ||
6043 | ac_ext=C | |
6044 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6045 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6046 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6047 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6048 | cross_compiling=$ac_cv_prog_cxx_cross | |
6049 | ||
6050 | ||
6051 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl | |
6052 | do | |
6053 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6054 | set dummy $ac_prog; ac_word=$2 | |
6055 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 6056 | echo "configure:6057: checking for $ac_word" >&5 |
10f2d63a VZ |
6057 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
6058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6059 | else | |
6060 | if test -n "$CXX"; then | |
6061 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
6062 | else | |
6063 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6064 | ac_dummy="$PATH" | |
6065 | for ac_dir in $ac_dummy; do | |
6066 | test -z "$ac_dir" && ac_dir=. | |
6067 | if test -f $ac_dir/$ac_word; then | |
6068 | ac_cv_prog_CXX="$ac_prog" | |
6069 | break | |
6070 | fi | |
6071 | done | |
6072 | IFS="$ac_save_ifs" | |
6073 | fi | |
6074 | fi | |
6075 | CXX="$ac_cv_prog_CXX" | |
6076 | if test -n "$CXX"; then | |
6077 | echo "$ac_t""$CXX" 1>&6 | |
6078 | else | |
6079 | echo "$ac_t""no" 1>&6 | |
6080 | fi | |
6081 | ||
6082 | test -n "$CXX" && break | |
6083 | done | |
6084 | test -n "$CXX" || CXX="gcc" | |
6085 | ||
6086 | ||
6087 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
f512f90a | 6088 | echo "configure:6089: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
10f2d63a VZ |
6089 | |
6090 | ac_ext=C | |
6091 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6092 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6093 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6094 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6095 | cross_compiling=$ac_cv_prog_cxx_cross | |
6096 | ||
6097 | cat > conftest.$ac_ext << EOF | |
6098 | ||
f512f90a | 6099 | #line 6100 "configure" |
10f2d63a VZ |
6100 | #include "confdefs.h" |
6101 | ||
6102 | int main(){return(0);} | |
6103 | EOF | |
f512f90a | 6104 | if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6105 | ac_cv_prog_cxx_works=yes |
6106 | # If we can't run a trivial program, we are probably using a cross compiler. | |
6107 | if (./conftest; exit) 2>/dev/null; then | |
6108 | ac_cv_prog_cxx_cross=no | |
6109 | else | |
6110 | ac_cv_prog_cxx_cross=yes | |
6111 | fi | |
6112 | else | |
6113 | echo "configure: failed program was:" >&5 | |
6114 | cat conftest.$ac_ext >&5 | |
6115 | ac_cv_prog_cxx_works=no | |
6116 | fi | |
6117 | rm -fr conftest* | |
6118 | ac_ext=C | |
6119 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6120 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6121 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6122 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6123 | cross_compiling=$ac_cv_prog_cxx_cross | |
6124 | ||
6125 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
6126 | if test $ac_cv_prog_cxx_works = no; then | |
6127 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
6128 | fi | |
6129 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
f512f90a | 6130 | echo "configure:6131: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
10f2d63a VZ |
6131 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
6132 | cross_compiling=$ac_cv_prog_cxx_cross | |
6133 | ||
6134 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
f512f90a | 6135 | echo "configure:6136: checking whether we are using GNU C++" >&5 |
10f2d63a VZ |
6136 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
6137 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6138 | else | |
6139 | cat > conftest.C <<EOF | |
6140 | #ifdef __GNUC__ | |
6141 | yes; | |
6142 | #endif | |
6143 | EOF | |
f512f90a | 6144 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:6145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
10f2d63a VZ |
6145 | ac_cv_prog_gxx=yes |
6146 | else | |
6147 | ac_cv_prog_gxx=no | |
6148 | fi | |
6149 | fi | |
6150 | ||
6151 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 | |
6152 | ||
6153 | if test $ac_cv_prog_gxx = yes; then | |
6154 | GXX=yes | |
6155 | else | |
6156 | GXX= | |
6157 | fi | |
6158 | ||
6159 | ac_test_CXXFLAGS="${CXXFLAGS+set}" | |
6160 | ac_save_CXXFLAGS="$CXXFLAGS" | |
6161 | CXXFLAGS= | |
6162 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
f512f90a | 6163 | echo "configure:6164: checking whether ${CXX-g++} accepts -g" >&5 |
10f2d63a VZ |
6164 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
6165 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6166 | else | |
6167 | echo 'void f(){}' > conftest.cc | |
6168 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
6169 | ac_cv_prog_cxx_g=yes | |
6170 | else | |
6171 | ac_cv_prog_cxx_g=no | |
6172 | fi | |
6173 | rm -f conftest* | |
6174 | ||
6175 | fi | |
6176 | ||
6177 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
6178 | if test "$ac_test_CXXFLAGS" = set; then | |
6179 | CXXFLAGS="$ac_save_CXXFLAGS" | |
6180 | elif test $ac_cv_prog_cxx_g = yes; then | |
6181 | if test "$GXX" = yes; then | |
6182 | CXXFLAGS="-g -O2" | |
6183 | else | |
6184 | CXXFLAGS="-g" | |
6185 | fi | |
6186 | else | |
6187 | if test "$GXX" = yes; then | |
6188 | CXXFLAGS="-O2" | |
6189 | else | |
6190 | CXXFLAGS= | |
6191 | fi | |
6192 | fi | |
6193 | ||
6194 | ||
6195 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 | |
f512f90a | 6196 | echo "configure:6197: checking how to run the C++ preprocessor" >&5 |
10f2d63a VZ |
6197 | if test -z "$CXXCPP"; then |
6198 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
6199 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6200 | else | |
6201 | ac_ext=C | |
6202 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6203 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6204 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6205 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6206 | cross_compiling=$ac_cv_prog_cxx_cross | |
6207 | CXXCPP="${CXX-g++} -E" | |
6208 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 6209 | #line 6210 "configure" |
10f2d63a VZ |
6210 | #include "confdefs.h" |
6211 | #include <stdlib.h> | |
6212 | EOF | |
6213 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 6214 | { (eval echo configure:6215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
6215 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6216 | if test -z "$ac_err"; then | |
6217 | : | |
6218 | else | |
6219 | echo "$ac_err" >&5 | |
6220 | echo "configure: failed program was:" >&5 | |
6221 | cat conftest.$ac_ext >&5 | |
6222 | rm -rf conftest* | |
6223 | CXXCPP=/lib/cpp | |
6224 | fi | |
6225 | rm -f conftest* | |
6226 | ac_cv_prog_CXXCPP="$CXXCPP" | |
6227 | ac_ext=C | |
6228 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6229 | ac_cpp='$CXXCPP $CPPFLAGS' | |
6230 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6231 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6232 | cross_compiling=$ac_cv_prog_cxx_cross | |
6233 | fi | |
6234 | fi | |
6235 | CXXCPP="$ac_cv_prog_CXXCPP" | |
6236 | echo "$ac_t""$CXXCPP" 1>&6 | |
6237 | ||
6238 | ||
6239 | CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'` | |
6240 | ||
6241 | ac_ext=c | |
6242 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
6243 | ac_cpp='$CPP $CPPFLAGS' | |
6244 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
6245 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
6246 | cross_compiling=$ac_cv_prog_cc_cross | |
6247 | ||
6248 | ||
6249 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6250 | set dummy ranlib; ac_word=$2 | |
6251 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 6252 | echo "configure:6253: checking for $ac_word" >&5 |
10f2d63a VZ |
6253 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
6254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6255 | else | |
6256 | if test -n "$RANLIB"; then | |
6257 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6258 | else | |
6259 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6260 | ac_dummy="$PATH" | |
6261 | for ac_dir in $ac_dummy; do | |
6262 | test -z "$ac_dir" && ac_dir=. | |
6263 | if test -f $ac_dir/$ac_word; then | |
6264 | ac_cv_prog_RANLIB="ranlib" | |
6265 | break | |
6266 | fi | |
6267 | done | |
6268 | IFS="$ac_save_ifs" | |
6269 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
6270 | fi | |
6271 | fi | |
6272 | RANLIB="$ac_cv_prog_RANLIB" | |
6273 | if test -n "$RANLIB"; then | |
6274 | echo "$ac_t""$RANLIB" 1>&6 | |
6275 | else | |
6276 | echo "$ac_t""no" 1>&6 | |
6277 | fi | |
6278 | ||
6279 | ||
6280 | # Extract the first word of "ar", so it can be a program name with args. | |
6281 | set dummy ar; ac_word=$2 | |
6282 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 6283 | echo "configure:6284: checking for $ac_word" >&5 |
10f2d63a VZ |
6284 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
6285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6286 | else | |
6287 | if test -n "$AR"; then | |
6288 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6289 | else | |
6290 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6291 | ac_dummy="$PATH" | |
6292 | for ac_dir in $ac_dummy; do | |
6293 | test -z "$ac_dir" && ac_dir=. | |
6294 | if test -f $ac_dir/$ac_word; then | |
6295 | ac_cv_prog_AR="ar" | |
6296 | break | |
6297 | fi | |
6298 | done | |
6299 | IFS="$ac_save_ifs" | |
6300 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
6301 | fi | |
6302 | fi | |
6303 | AR="$ac_cv_prog_AR" | |
6304 | if test -n "$AR"; then | |
6305 | echo "$ac_t""$AR" 1>&6 | |
6306 | else | |
6307 | echo "$ac_t""no" 1>&6 | |
6308 | fi | |
6309 | ||
6310 | ||
6311 | # Find a good install program. We prefer a C program (faster), | |
6312 | # so one script is as good as another. But avoid the broken or | |
6313 | # incompatible versions: | |
6314 | # SysV /etc/install, /usr/sbin/install | |
6315 | # SunOS /usr/etc/install | |
6316 | # IRIX /sbin/install | |
6317 | # AIX /bin/install | |
6318 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6319 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6320 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6321 | # ./install, which can be erroneously created by make from ./install.sh. | |
6322 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
f512f90a | 6323 | echo "configure:6324: checking for a BSD compatible install" >&5 |
10f2d63a VZ |
6324 | if test -z "$INSTALL"; then |
6325 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
6326 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6327 | else | |
6328 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
6329 | for ac_dir in $PATH; do | |
6330 | # Account for people who put trailing slashes in PATH elements. | |
6331 | case "$ac_dir/" in | |
6332 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
6333 | *) | |
6334 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6335 | # Don't use installbsd from OSF since it installs stuff as root | |
6336 | # by default. | |
6337 | for ac_prog in ginstall scoinst install; do | |
6338 | if test -f $ac_dir/$ac_prog; then | |
6339 | if test $ac_prog = install && | |
6340 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
6341 | # AIX install. It has an incompatible calling convention. | |
6342 | : | |
6343 | else | |
6344 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
6345 | break 2 | |
6346 | fi | |
6347 | fi | |
6348 | done | |
6349 | ;; | |
6350 | esac | |
6351 | done | |
6352 | IFS="$ac_save_IFS" | |
6353 | ||
6354 | fi | |
6355 | if test "${ac_cv_path_install+set}" = set; then | |
6356 | INSTALL="$ac_cv_path_install" | |
6357 | else | |
6358 | # As a last resort, use the slow shell script. We don't cache a | |
6359 | # path for INSTALL within a source directory, because that will | |
6360 | # break other packages using the cache if that directory is | |
6361 | # removed, or if the path is relative. | |
6362 | INSTALL="$ac_install_sh" | |
6363 | fi | |
6364 | fi | |
6365 | echo "$ac_t""$INSTALL" 1>&6 | |
6366 | ||
6367 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6368 | # It thinks the first close brace ends the variable substitution. | |
6369 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6370 | ||
6371 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
6372 | ||
6373 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6374 | ||
6375 | ||
6376 | # Extract the first word of "strip", so it can be a program name with args. | |
6377 | set dummy strip; ac_word=$2 | |
6378 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 6379 | echo "configure:6380: checking for $ac_word" >&5 |
10f2d63a VZ |
6380 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
6381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6382 | else | |
6383 | if test -n "$STRIP"; then | |
6384 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6385 | else | |
6386 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6387 | ac_dummy="$PATH" | |
6388 | for ac_dir in $ac_dummy; do | |
6389 | test -z "$ac_dir" && ac_dir=. | |
6390 | if test -f $ac_dir/$ac_word; then | |
6391 | ac_cv_prog_STRIP="strip" | |
6392 | break | |
6393 | fi | |
6394 | done | |
6395 | IFS="$ac_save_ifs" | |
6396 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
6397 | fi | |
6398 | fi | |
6399 | STRIP="$ac_cv_prog_STRIP" | |
6400 | if test -n "$STRIP"; then | |
6401 | echo "$ac_t""$STRIP" 1>&6 | |
6402 | else | |
6403 | echo "$ac_t""no" 1>&6 | |
6404 | fi | |
6405 | ||
6406 | ||
6407 | echo $ac_n "checking "make for VPATH support"""... $ac_c" 1>&6 | |
f512f90a | 6408 | echo "configure:6409: checking "make for VPATH support"" >&5 |
10f2d63a VZ |
6409 | cat - << EOF > confMake |
6410 | check : file | |
6411 | cp \$? \$@ | |
6412 | cp \$? final_file | |
6413 | EOF | |
6414 | ||
6415 | if test ! -d sub ; then | |
6416 | mkdir sub | |
6417 | fi | |
6418 | echo dummy > sub/file | |
6419 | ${MAKE-make} -f confMake VPATH=sub 2> config.log > /dev/null | |
6420 | RESULT=$? | |
6421 | rm -f sub/file check final_file confMake | |
6422 | rmdir sub | |
6423 | if test "$RESULT" = 0; then | |
6424 | echo "$ac_t""yes" 1>&6 | |
6425 | else | |
6426 | echo "$ac_t""no" 1>&6 | |
6427 | { echo "configure: error: You need a make-utility that is able to use the variable | |
6428 | VPATH correctly. | |
6429 | If your version of make does not support VPATH correctly" 1>&2; exit 1; } | |
6430 | fi | |
6431 | ||
6432 | for ac_prog in 'bison -y' byacc | |
6433 | do | |
6434 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6435 | set dummy $ac_prog; ac_word=$2 | |
6436 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 6437 | echo "configure:6438: checking for $ac_word" >&5 |
10f2d63a VZ |
6438 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
6439 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6440 | else | |
6441 | if test -n "$YACC"; then | |
6442 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
6443 | else | |
6444 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6445 | ac_dummy="$PATH" | |
6446 | for ac_dir in $ac_dummy; do | |
6447 | test -z "$ac_dir" && ac_dir=. | |
6448 | if test -f $ac_dir/$ac_word; then | |
6449 | ac_cv_prog_YACC="$ac_prog" | |
6450 | break | |
6451 | fi | |
6452 | done | |
6453 | IFS="$ac_save_ifs" | |
6454 | fi | |
6455 | fi | |
6456 | YACC="$ac_cv_prog_YACC" | |
6457 | if test -n "$YACC"; then | |
6458 | echo "$ac_t""$YACC" 1>&6 | |
6459 | else | |
6460 | echo "$ac_t""no" 1>&6 | |
6461 | fi | |
6462 | ||
6463 | test -n "$YACC" && break | |
6464 | done | |
6465 | test -n "$YACC" || YACC="yacc" | |
6466 | ||
6467 | ||
6468 | # Extract the first word of "flex", so it can be a program name with args. | |
6469 | set dummy flex; ac_word=$2 | |
6470 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 6471 | echo "configure:6472: checking for $ac_word" >&5 |
10f2d63a VZ |
6472 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
6473 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6474 | else | |
6475 | if test -n "$LEX"; then | |
6476 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
6477 | else | |
6478 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6479 | ac_dummy="$PATH" | |
6480 | for ac_dir in $ac_dummy; do | |
6481 | test -z "$ac_dir" && ac_dir=. | |
6482 | if test -f $ac_dir/$ac_word; then | |
6483 | ac_cv_prog_LEX="flex" | |
6484 | break | |
6485 | fi | |
6486 | done | |
6487 | IFS="$ac_save_ifs" | |
6488 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
6489 | fi | |
6490 | fi | |
6491 | LEX="$ac_cv_prog_LEX" | |
6492 | if test -n "$LEX"; then | |
6493 | echo "$ac_t""$LEX" 1>&6 | |
6494 | else | |
6495 | echo "$ac_t""no" 1>&6 | |
6496 | fi | |
6497 | ||
6498 | if test -z "$LEXLIB" | |
6499 | then | |
6500 | case "$LEX" in | |
6501 | flex*) ac_lib=fl ;; | |
6502 | *) ac_lib=l ;; | |
6503 | esac | |
6504 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
f512f90a | 6505 | echo "configure:6506: checking for yywrap in -l$ac_lib" >&5 |
10f2d63a VZ |
6506 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
6507 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
6508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6509 | else | |
6510 | ac_save_LIBS="$LIBS" | |
6511 | LIBS="-l$ac_lib $LIBS" | |
6512 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 6513 | #line 6514 "configure" |
10f2d63a VZ |
6514 | #include "confdefs.h" |
6515 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6516 | /* We use char because int might match the return type of a gcc2 | |
6517 | builtin and then its argument prototype would still apply. */ | |
6518 | char yywrap(); | |
6519 | ||
6520 | int main() { | |
6521 | yywrap() | |
6522 | ; return 0; } | |
6523 | EOF | |
f512f90a | 6524 | if { (eval echo configure:6525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
6525 | rm -rf conftest* |
6526 | eval "ac_cv_lib_$ac_lib_var=yes" | |
6527 | else | |
6528 | echo "configure: failed program was:" >&5 | |
6529 | cat conftest.$ac_ext >&5 | |
6530 | rm -rf conftest* | |
6531 | eval "ac_cv_lib_$ac_lib_var=no" | |
6532 | fi | |
6533 | rm -f conftest* | |
6534 | LIBS="$ac_save_LIBS" | |
6535 | ||
6536 | fi | |
6537 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
6538 | echo "$ac_t""yes" 1>&6 | |
6539 | LEXLIB="-l$ac_lib" | |
6540 | else | |
6541 | echo "$ac_t""no" 1>&6 | |
6542 | fi | |
6543 | ||
6544 | fi | |
6545 | ||
6546 | ||
6547 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
f512f90a | 6548 | echo "configure:6549: checking whether ln -s works" >&5 |
10f2d63a VZ |
6549 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
6550 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6551 | else | |
6552 | rm -f conftestdata | |
6553 | if ln -s X conftestdata 2>/dev/null | |
6554 | then | |
6555 | rm -f conftestdata | |
6556 | ac_cv_prog_LN_S="ln -s" | |
6557 | else | |
6558 | ac_cv_prog_LN_S=ln | |
6559 | fi | |
6560 | fi | |
6561 | LN_S="$ac_cv_prog_LN_S" | |
6562 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
6563 | echo "$ac_t""yes" 1>&6 | |
6564 | else | |
6565 | echo "$ac_t""no" 1>&6 | |
6566 | fi | |
6567 | ||
6568 | ||
6569 | ||
6570 | SEARCH_INCLUDE="\ | |
6571 | /usr/local/include \ | |
6572 | \ | |
6573 | /usr/Motif-1.2/include \ | |
6574 | /usr/Motif-2.1/include \ | |
6575 | \ | |
6576 | /usr/include/Motif1.2 \ | |
6577 | /opt/xpm/include/X11 \ | |
6578 | /opt/GBxpm/include/ \ | |
6579 | /opt/GBxpm/X11/include/ \ | |
6580 | \ | |
6581 | /usr/Motif1.2/include \ | |
6582 | /usr/dt/include \ | |
6583 | /usr/include/Xm \ | |
6584 | \ | |
6585 | /usr/X11R6/include \ | |
6586 | /usr/X11R5/include \ | |
6587 | /usr/X11R4/include \ | |
6588 | \ | |
6589 | /usr/X11R6/lib \ | |
6590 | /usr/X11R5/lib \ | |
6591 | /usr/X11R4/lib \ | |
6592 | \ | |
6593 | /usr/include/X11R6 \ | |
6594 | /usr/include/X11R5 \ | |
6595 | /usr/include/X11R4 \ | |
6596 | \ | |
6597 | /usr/local/X11R6/include \ | |
6598 | /usr/local/X11R5/include \ | |
6599 | /usr/local/X11R4/include \ | |
6600 | \ | |
6601 | /usr/local/include/X11R6 \ | |
6602 | /usr/local/include/X11R5 \ | |
6603 | /usr/local/include/X11R4 \ | |
6604 | \ | |
6605 | /usr/X11/include \ | |
6606 | /usr/include/X11 \ | |
6607 | /usr/local/X11/include \ | |
6608 | /usr/local/include/X11 \ | |
6609 | \ | |
6610 | /usr/X386/include \ | |
6611 | /usr/x386/include \ | |
6612 | /usr/XFree86/include/X11 \ | |
6613 | \ | |
6614 | /usr/include/gtk \ | |
6615 | /usr/local/include/gtk \ | |
6616 | /usr/include/glib \ | |
6617 | /usr/local/include/glib \ | |
6618 | \ | |
6619 | /usr/include/qt \ | |
6620 | /usr/local/include/qt \ | |
6621 | \ | |
6622 | /usr/include/windows \ | |
6623 | /usr/include/wine \ | |
6624 | /usr/local/include/wine \ | |
6625 | \ | |
6626 | /usr/unsupported/include \ | |
6627 | /usr/athena/include \ | |
6628 | /usr/local/x11r5/include \ | |
6629 | /usr/lpp/Xamples/include \ | |
6630 | \ | |
6631 | /usr/openwin/include \ | |
6632 | /usr/openwin/share/include \ | |
6633 | " | |
6634 | ||
6635 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
6636 | ||
6637 | ||
6638 | cat > confcache <<\EOF | |
6639 | # This file is a shell script that caches the results of configure | |
6640 | # tests run on this system so they can be shared between configure | |
6641 | # scripts and configure runs. It is not useful on other systems. | |
6642 | # If it contains results you don't want to keep, you may remove or edit it. | |
6643 | # | |
6644 | # By default, configure uses ./config.cache as the cache file, | |
6645 | # creating it if it does not exist already. You can give configure | |
6646 | # the --cache-file=FILE option to use a different cache file; that is | |
6647 | # what configure does when it calls configure scripts in | |
6648 | # subdirectories, so they share the cache. | |
6649 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
6650 | # config.status only pays attention to the cache file if you give it the | |
6651 | # --recheck option to rerun configure. | |
6652 | # | |
6653 | EOF | |
6654 | # The following way of writing the cache mishandles newlines in values, | |
6655 | # but we know of no workaround that is simple, portable, and efficient. | |
6656 | # So, don't put newlines in cache variables' values. | |
6657 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6658 | # and sets the high bit in the cache file unless we assign to the vars. | |
6659 | (set) 2>&1 | | |
6660 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6661 | *ac_space=\ *) | |
6662 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
6663 | # turns \\\\ into \\, and sed turns \\ into \). | |
6664 | sed -n \ | |
6665 | -e "s/'/'\\\\''/g" \ | |
6666 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
6667 | ;; | |
6668 | *) | |
6669 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6670 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
6671 | ;; | |
6672 | esac >> confcache | |
6673 | if cmp -s $cache_file confcache; then | |
6674 | : | |
6675 | else | |
6676 | if test -w $cache_file; then | |
6677 | echo "updating cache $cache_file" | |
6678 | cat confcache > $cache_file | |
6679 | else | |
6680 | echo "not updating unwritable cache $cache_file" | |
6681 | fi | |
6682 | fi | |
6683 | rm -f confcache | |
6684 | ||
6685 | ||
6686 | ||
6687 | if test "$wxUSE_GUI" = "yes"; then | |
6688 | ||
6689 | TOOLKIT= | |
6690 | TOOLKIT_INCLUDE= | |
6691 | ||
6692 | GUIOBJS= | |
6693 | COMMONOBJS= | |
6694 | GENERICOBJS= | |
6695 | ||
6696 | GUI_TK_LIBRARY= | |
6697 | GUI_TK_LINK= | |
6698 | ||
6699 | WXGTK12= | |
6700 | ||
6701 | WXWINE= | |
6702 | ||
6703 | PROGRAM_EXT= | |
6704 | ||
6705 | if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then | |
6706 | if test "$cross_compiling" = "yes" ; then | |
6707 | echo "configure: warning: Cross compiling --- skipping windows.h check" 1>&2 | |
6708 | else | |
6709 | echo $ac_n "checking for Windows headers""... $ac_c" 1>&6 | |
f512f90a | 6710 | echo "configure:6711: checking for Windows headers" >&5 |
10f2d63a VZ |
6711 | |
6712 | ac_find_includes= | |
6713 | for ac_dir in $SEARCH_INCLUDE; | |
6714 | do | |
6715 | if test -f "$ac_dir/windows.h"; then | |
6716 | ac_find_includes=$ac_dir | |
6717 | break | |
6718 | fi | |
6719 | done | |
6720 | ||
6721 | if test "$ac_find_includes" != "" ; then | |
6722 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6723 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6724 | else | |
6725 | echo "$ac_t""no" 1>&6 | |
6726 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6727 | fi | |
6728 | fi | |
6729 | ||
6730 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw" | |
6731 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32" | |
6732 | ||
6733 | if test "$wxUSE_MINGW" = 1; then | |
6734 | LDFLAGS="$LDFLAGS -mwindows" | |
6735 | fi | |
6736 | ||
6737 | TOOLKIT=MSW | |
6738 | ||
6739 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6740 | GUIHEADERS="\$(MSW_HEADERS)" | |
6741 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6742 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6743 | UNIXOBJS= | |
6744 | GUIDIST=MSW_DIST | |
6745 | PROGRAM_EXT=.exe | |
6746 | fi | |
6747 | ||
6748 | if test "$wxUSE_GTK" = 1; then | |
6749 | ||
6750 | if test x$gtk_config_exec_prefix != x ; then | |
6751 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
6752 | if test x${GTK_CONFIG+set} != xset ; then | |
6753 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
6754 | fi | |
6755 | fi | |
6756 | if test x$gtk_config_prefix != x ; then | |
6757 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
6758 | if test x${GTK_CONFIG+set} != xset ; then | |
6759 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
6760 | fi | |
6761 | fi | |
6762 | ||
6763 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
6764 | set dummy gtk-config; ac_word=$2 | |
6765 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
f512f90a | 6766 | echo "configure:6767: checking for $ac_word" >&5 |
10f2d63a VZ |
6767 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
6768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6769 | else | |
6770 | case "$GTK_CONFIG" in | |
6771 | /*) | |
6772 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
6773 | ;; | |
6774 | ?:/*) | |
6775 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
6776 | ;; | |
6777 | *) | |
6778 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6779 | ac_dummy="$PATH" | |
6780 | for ac_dir in $ac_dummy; do | |
6781 | test -z "$ac_dir" && ac_dir=. | |
6782 | if test -f $ac_dir/$ac_word; then | |
6783 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
6784 | break | |
6785 | fi | |
6786 | done | |
6787 | IFS="$ac_save_ifs" | |
6788 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
6789 | ;; | |
6790 | esac | |
6791 | fi | |
6792 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" | |
6793 | if test -n "$GTK_CONFIG"; then | |
6794 | echo "$ac_t""$GTK_CONFIG" 1>&6 | |
6795 | else | |
6796 | echo "$ac_t""no" 1>&6 | |
6797 | fi | |
6798 | ||
6799 | min_gtk_version=1.2.1 | |
6800 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 | |
f512f90a | 6801 | echo "configure:6802: checking for GTK - version >= $min_gtk_version" >&5 |
10f2d63a VZ |
6802 | no_gtk="" |
6803 | if test "$GTK_CONFIG" != "no" ; then | |
6804 | GTK_CFLAGS=`$GTK_CONFIG --cflags` | |
6805 | GTK_LIBS=`$GTK_CONFIG --libs` | |
6806 | ac_save_CFLAGS="$CFLAGS" | |
6807 | ac_save_LIBS="$LIBS" | |
6808 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
6809 | LIBS="$LIBS $GTK_LIBS" | |
6810 | if test "$cross_compiling" = yes; then | |
6811 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
6812 | else | |
6813 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 6814 | #line 6815 "configure" |
10f2d63a VZ |
6815 | #include "confdefs.h" |
6816 | ||
6817 | #include <gtk/gtk.h> | |
6818 | #include <stdio.h> | |
6819 | ||
6820 | int | |
6821 | main () | |
6822 | { | |
6823 | int major, minor, micro; | |
6824 | ||
6825 | if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) { | |
6826 | printf("%s, bad version string\n", "$min_gtk_version"); | |
6827 | exit(1); | |
6828 | } | |
6829 | ||
6830 | if (gtk_minor_version == 1) return FALSE; | |
6831 | ||
6832 | return !((gtk_major_version > major) || | |
6833 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
6834 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))); | |
6835 | } | |
6836 | ||
6837 | EOF | |
f512f90a | 6838 | if { (eval echo configure:6839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
6839 | then |
6840 | : | |
6841 | else | |
6842 | echo "configure: failed program was:" >&5 | |
6843 | cat conftest.$ac_ext >&5 | |
6844 | rm -fr conftest* | |
6845 | no_gtk=yes | |
6846 | fi | |
6847 | rm -fr conftest* | |
6848 | fi | |
6849 | ||
6850 | CFLAGS="$ac_save_CFLAGS" | |
6851 | LIBS="$ac_save_LIBS" | |
6852 | else | |
6853 | no_gtk=yes | |
6854 | fi | |
6855 | if test "x$no_gtk" = x ; then | |
6856 | echo "$ac_t""yes" 1>&6 | |
6857 | WXGTK12=1 | |
6858 | else | |
6859 | echo "$ac_t""no" 1>&6 | |
6860 | GTK_CFLAGS="" | |
6861 | GTK_LIBS="" | |
6862 | { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.1 or above?" 1>&2; exit 1; } | |
6863 | fi | |
6864 | ||
6865 | ||
6866 | ||
6867 | ||
6868 | TOOLKIT_INCLUDE="$GTK_CFLAGS" | |
6869 | GUI_TK_LIBRARY="$GTK_LIBS" | |
6870 | TOOLKIT=GTK | |
6871 | ||
6872 | GUIOBJS="\$(GTK_GUIOBJS)" | |
6873 | GUIHEADERS="\$(GTK_HEADERS)" | |
6874 | COMMONOBJS="\$(GTK_COMMONOBJS)" | |
6875 | GENERICOBJS="\$(GTK_GENERICOBJS)" | |
6876 | GUIDEPS="\$(GTK_GUIDEPS)" | |
6877 | COMMONDEPS="\$(GTK_COMMONDEPS)" | |
6878 | GENERICDEPS="\$(GTK_GENERICDEPS)" | |
6879 | UNIXOBJS="\$(UNIX_OBJS)" | |
6880 | GUIDIST=GTK_DIST | |
6881 | fi | |
6882 | ||
6883 | if test "$wxUSE_WINE" = 1; then | |
6884 | echo $ac_n "checking for WINE includes""... $ac_c" 1>&6 | |
f512f90a | 6885 | echo "configure:6886: checking for WINE includes" >&5 |
10f2d63a VZ |
6886 | |
6887 | ac_find_includes= | |
6888 | for ac_dir in $SEARCH_INCLUDE; | |
6889 | do | |
6890 | if test -f "$ac_dir/windows.h"; then | |
6891 | ac_find_includes=$ac_dir | |
6892 | break | |
6893 | fi | |
6894 | done | |
6895 | ||
6896 | if test "$ac_find_includes" != "" ; then | |
6897 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6898 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes" | |
6899 | else | |
6900 | echo "$ac_t""no" 1>&6 | |
6901 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } | |
6902 | fi | |
6903 | ||
6904 | XPM_LINK="" | |
6905 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
f512f90a | 6906 | echo "configure:6907: checking for Xpm library" >&5 |
10f2d63a VZ |
6907 | |
6908 | ac_find_libraries= | |
6909 | for ac_dir in $SEARCH_LIB; | |
6910 | do | |
6911 | for ac_extension in a so sl; do | |
6912 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
6913 | ac_find_libraries=$ac_dir | |
6914 | break 2 | |
6915 | fi | |
6916 | done | |
6917 | done | |
6918 | ||
6919 | if test "$ac_find_libraries" != "" ; then | |
6920 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
6921 | XPM_LINK="-lXpm" | |
6922 | cat >> confdefs.h <<\EOF | |
6923 | #define wxHAVE_LIB_XPM 1 | |
6924 | EOF | |
6925 | ||
6926 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6927 | else | |
6928 | echo "$ac_t""no" 1>&6 | |
6929 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
6930 | fi | |
6931 | ||
6932 | MESA_LINK="" | |
6933 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 | |
f512f90a | 6934 | echo "configure:6935: checking for Mesa library" >&5 |
10f2d63a VZ |
6935 | |
6936 | ac_find_libraries= | |
6937 | for ac_dir in $SEARCH_LIB; | |
6938 | do | |
6939 | for ac_extension in a so sl; do | |
6940 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
6941 | ac_find_libraries=$ac_dir | |
6942 | break 2 | |
6943 | fi | |
6944 | done | |
6945 | done | |
6946 | ||
6947 | if test "$ac_find_libraries" != "" ; then | |
6948 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
6949 | MESA_LINK="-lMesaGL" | |
6950 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
6951 | else | |
6952 | { echo "configure: error: no" 1>&2; exit 1; } | |
6953 | fi | |
6954 | ||
6955 | GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses -lm" | |
6956 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
6957 | WXWINE=1 | |
6958 | TOOLKIT=MSW | |
6959 | ||
6960 | GUIHEADERS="\$(MSW_HEADERS)" | |
6961 | GUIOBJS="\$(MSW_GUIOBJS)" | |
6962 | COMMONOBJS="\$(MSW_COMMONOBJS)" | |
6963 | GENERICOBJS="\$(MSW_GENERICOBJS)" | |
6964 | GUIDEPS="\$(MSW_GUIDEPS)" | |
6965 | COMMONDEPS="\$(MSW_COMMONDEPS)" | |
6966 | GENERICDEPS="\$(MSW_GENERICDEPS)" | |
6967 | UNIXOBJS="\$(UNIX_OBJS)" | |
6968 | GUIDIST=MSW_DIST | |
6969 | fi | |
6970 | ||
6971 | if test "$wxUSE_MOTIF" = 1; then | |
6972 | echo $ac_n "checking for X11 headers""... $ac_c" 1>&6 | |
f512f90a | 6973 | echo "configure:6974: checking for X11 headers" >&5 |
10f2d63a VZ |
6974 | |
6975 | ac_find_includes= | |
6976 | for ac_dir in $SEARCH_INCLUDE; | |
6977 | do | |
6978 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
6979 | ac_find_includes=$ac_dir | |
6980 | break | |
6981 | fi | |
6982 | done | |
6983 | ||
6984 | if test "$ac_find_includes" != "" ; then | |
6985 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
6986 | else | |
6987 | echo "$ac_t""no" 1>&6 | |
6988 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
6989 | fi | |
6990 | ||
6991 | echo $ac_n "checking for X11 libraries""... $ac_c" 1>&6 | |
f512f90a | 6992 | echo "configure:6993: checking for X11 libraries" >&5 |
10f2d63a VZ |
6993 | |
6994 | ac_find_libraries= | |
6995 | for ac_dir in $SEARCH_LIB; | |
6996 | do | |
6997 | for ac_extension in a so sl; do | |
6998 | if test -f "$ac_dir/libX11.$ac_extension"; then | |
6999 | ac_find_libraries=$ac_dir | |
7000 | break 2 | |
7001 | fi | |
7002 | done | |
7003 | done | |
7004 | ||
7005 | if test "$ac_find_libraries" != "" ; then | |
7006 | ||
7007 | ac_path_to_include=$ac_find_includes | |
7008 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
7009 | result=$? | |
7010 | if test $result = 0; then | |
7011 | ac_path_to_include="" | |
7012 | else | |
7013 | ac_path_to_include="-I$ac_find_includes" | |
7014 | fi | |
7015 | ||
7016 | ||
7017 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7018 | result=$? | |
7019 | if test $result = 0; then | |
7020 | ac_path_to_link="" | |
7021 | else | |
7022 | ac_path_to_link="-L$ac_find_libraries" | |
7023 | fi | |
7024 | ||
7025 | ||
7026 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7027 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
7028 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7029 | else | |
7030 | echo "$ac_t""no" 1>&6 | |
7031 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
7032 | fi | |
7033 | ||
7034 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 | |
f512f90a | 7035 | echo "configure:7036: checking for Motif/Lesstif headers" >&5 |
10f2d63a VZ |
7036 | |
7037 | ac_find_includes= | |
7038 | for ac_dir in $SEARCH_INCLUDE; | |
7039 | do | |
7040 | if test -f "$ac_dir/Xm/Xm.h"; then | |
7041 | ac_find_includes=$ac_dir | |
7042 | break | |
7043 | fi | |
7044 | done | |
7045 | ||
7046 | if test "$ac_find_includes" != "" ; then | |
7047 | echo "$ac_t""found $ac_find_includes" 1>&6 | |
7048 | else | |
7049 | echo "$ac_t""no" 1>&6 | |
7050 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
7051 | fi | |
7052 | ||
7053 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 | |
f512f90a | 7054 | echo "configure:7055: checking for Motif/Lesstif library" >&5 |
10f2d63a VZ |
7055 | |
7056 | ac_find_libraries= | |
7057 | for ac_dir in $SEARCH_LIB; | |
7058 | do | |
7059 | for ac_extension in a so sl; do | |
7060 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
7061 | ac_find_libraries=$ac_dir | |
7062 | break 2 | |
7063 | fi | |
7064 | done | |
7065 | done | |
7066 | ||
7067 | if test "$ac_find_libraries" != "" ; then | |
7068 | ||
7069 | ac_path_to_include=$ac_find_includes | |
7070 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
7071 | result=$? | |
7072 | if test $result = 0; then | |
7073 | ac_path_to_include="" | |
7074 | else | |
7075 | ac_path_to_include="-I$ac_find_includes" | |
7076 | fi | |
7077 | ||
7078 | ||
7079 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7080 | result=$? | |
7081 | if test $result = 0; then | |
7082 | ac_path_to_link="" | |
7083 | else | |
7084 | ac_path_to_link="-L$ac_find_libraries" | |
7085 | fi | |
7086 | ||
7087 | ||
7088 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7089 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include" | |
7090 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7091 | else | |
7092 | echo "$ac_t""no" 1>&6 | |
7093 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
7094 | fi | |
7095 | ||
7096 | echo $ac_n "checking for Xt library""... $ac_c" 1>&6 | |
f512f90a | 7097 | echo "configure:7098: checking for Xt library" >&5 |
10f2d63a VZ |
7098 | |
7099 | ac_find_libraries= | |
7100 | for ac_dir in $SEARCH_LIB; | |
7101 | do | |
7102 | for ac_extension in a so sl; do | |
7103 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
7104 | ac_find_libraries=$ac_dir | |
7105 | break 2 | |
7106 | fi | |
7107 | done | |
7108 | done | |
7109 | ||
7110 | if test "$ac_find_libraries" != "" ; then | |
7111 | ||
7112 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7113 | result=$? | |
7114 | if test $result = 0; then | |
7115 | ac_path_to_link="" | |
7116 | else | |
7117 | ac_path_to_link="-L$ac_find_libraries" | |
7118 | fi | |
7119 | ||
7120 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7121 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7122 | else | |
7123 | echo "$ac_t""no" 1>&6 | |
7124 | { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; } | |
7125 | fi | |
7126 | ||
7127 | XPM_LINK="" | |
7128 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
f512f90a | 7129 | echo "configure:7130: checking for Xpm library" >&5 |
10f2d63a VZ |
7130 | |
7131 | ac_find_libraries= | |
7132 | for ac_dir in $SEARCH_LIB; | |
7133 | do | |
7134 | for ac_extension in a so sl; do | |
7135 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
7136 | ac_find_libraries=$ac_dir | |
7137 | break 2 | |
7138 | fi | |
7139 | done | |
7140 | done | |
7141 | ||
7142 | if test "$ac_find_libraries" != "" ; then | |
7143 | ||
7144 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
7145 | result=$? | |
7146 | if test $result = 0; then | |
7147 | ac_path_to_link="" | |
7148 | else | |
7149 | ac_path_to_link="-L$ac_find_libraries" | |
7150 | fi | |
7151 | ||
7152 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link" | |
7153 | XPM_LINK="-lXpm " | |
7154 | cat >> confdefs.h <<\EOF | |
7155 | #define wxHAVE_LIB_XPM 1 | |
7156 | EOF | |
7157 | ||
7158 | echo "$ac_t""found at $ac_find_libraries" 1>&6 | |
7159 | else | |
7160 | echo "$ac_t""no" 1>&6 | |
7161 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
7162 | fi | |
7163 | ||
7164 | GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXt -lX11 -lm" | |
7165 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK" | |
7166 | TOOLKIT=MOTIF | |
7167 | ||
7168 | GUIHEADERS="\$(MOTIF_HEADERS)" | |
7169 | GUIOBJS="\$(MOTIF_GUIOBJS)" | |
7170 | COMMONOBJS="\$(MOTIF_COMMONOBJS)" | |
7171 | GENERICOBJS="\$(MOTIF_GENERICOBJS)" | |
7172 | GUIDEPS="\$(MOTIF_GUIDEPS)" | |
7173 | COMMONDEPS="\$(MOTIF_COMMONDEPS)" | |
7174 | GENERICDEPS="\$(MOTIF_GENERICDEPS)" | |
7175 | UNIXOBJS="\$(UNIX_OBJS)" | |
7176 | GUIDIST=MOTIF_DIST | |
7177 | fi | |
7178 | ||
7179 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "A-Z" "a-z"` | |
7180 | ||
7181 | TOOLKIT_DEF="-D__WX${TOOLKIT}__" | |
7182 | ||
7183 | WX_LIBRARY="wx_${TOOLKIT_DIR}" | |
7184 | ||
7185 | ALL_OBJECTS="\$(GUIOBJS) \$(COMMONOBJS) \$(GENERICOBJS) \$(UNIXOBJS) \$(HTMLOBJS) \$(JPEGOBJS) \$(PNGOBJS) \$(ZLIBOBJS) \$(IODBCOBJS)" | |
7186 | ALL_DEPFILES="\$(GUIDEPS) \$(COMMONDEPS) \$(GENERICDEPS) \$(UNIXDEPS) \$(HTMLDEPS)" | |
7187 | ALL_HEADERS="\$(GUIHEADERS) \$(HTML_HEADERS) \$(UNIX_HEADERS) \$(PROTOCOL_HEADERS) \$(GENERIC_HEADERS) \$(WX_HEADERS)" | |
7188 | else | |
7189 | ||
7190 | ALL_OBJECTS="\$(BASE_OBJS)" | |
7191 | ALL_DEPFILES="\${BASE_DEPS}" | |
7192 | ALL_HEADERS="\${BASE_HEADERS}" | |
7193 | ||
7194 | WX_LIBRARY="wxbase" | |
7195 | fi | |
7196 | ||
7197 | WX_LIBRARY_NAME="lib${WX_LIBRARY}.la" | |
7198 | ||
7199 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
7200 | ||
7201 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
7202 | ||
7203 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}" | |
7204 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so" | |
7205 | WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so" | |
7206 | ||
7207 | SHARED_LD= | |
7208 | PIC_FLAG= | |
7209 | WX_ALL= | |
7210 | WX_ALL_INSTALLED= | |
7211 | ||
7212 | if test "$wxUSE_SHARED" = "yes"; then | |
7213 | case "${host}" in | |
7214 | *-hp-hpux* ) | |
7215 | if test "$GCC" = yes ; then | |
7216 | SHARED_LD="${CC} -shared -o" | |
7217 | PIC_FLAG="-fPIC" | |
7218 | else | |
7219 | SHARED_LD="${CXX} -b -o" | |
7220 | PIC_FLAG="+Z" | |
7221 | fi | |
7222 | WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_DIR}.sl" | |
7223 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
7224 | ;; | |
7225 | *-*-linux* ) | |
7226 | SHARED_LD="${CC} -shared -o" | |
7227 | PIC_FLAG="-fPIC" | |
7228 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7229 | WX_ALL="CREATE_LINKS" | |
7230 | ;; | |
7231 | *-*-irix5* | *-*-irix6* ) | |
7232 | if test "$GCC" = yes ; then | |
7233 | SHARED_LD="${CC} -shared -o" | |
7234 | PIC_FLAG="-fPIC" | |
7235 | else | |
7236 | SHARED_LD="${CXX} -shared -o" | |
7237 | fi | |
7238 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7239 | WX_ALL="CREATE_LINKS" | |
7240 | ;; | |
7241 | *-*-solaris2* ) | |
7242 | if test "$GCC" = yes ; then | |
7243 | SHARED_LD="${CC} -shared -o" | |
7244 | PIC_FLAG="-fPIC" | |
7245 | else | |
7246 | SHARED_LD="${CXX} -G -o" | |
7247 | PIC_FLAG="-KPIC" | |
7248 | fi | |
7249 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7250 | WX_ALL="CREATE_LINKS" | |
7251 | ;; | |
7252 | *-*-sunos4* ) | |
7253 | SHARED_LD="${CC} -shared -o" | |
7254 | PIC_FLAG="-fPIC" | |
7255 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7256 | WX_ALL="CREATE_LINKS" | |
7257 | ;; | |
7258 | *-*-freebsd* | *-*-netbsd*) | |
7259 | SHARED_LD="${CC} -shared -o" | |
7260 | PIC_FLAG="-fPIC" | |
7261 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7262 | WX_ALL="CREATE_LINKS" | |
7263 | ;; | |
7264 | *-*-osf* ) | |
7265 | SHARED_LD="${CXX} -shared -o" | |
7266 | PIC_FLAG="-fPIC" | |
7267 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7268 | WX_ALL="CREATE_LINKS" | |
7269 | ;; | |
7270 | *-*-dgux5* ) | |
7271 | SHARED_LD="${CXX} -shared -o" | |
7272 | PIC_FLAG="-fPIC" | |
7273 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7274 | WX_ALL="CREATE_LINKS" | |
7275 | ;; | |
7276 | *-*-sysv5* ) | |
7277 | SHARED_LD="${CC} -shared -o" | |
7278 | PIC_FLAG="-fPIC" | |
7279 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
7280 | WX_ALL="CREATE_LINKS" | |
7281 | ;; | |
7282 | *-*-aix* ) | |
7283 | SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o" | |
7284 | WX_ALL=${WX_LIBRARY_NAME_SHARED} | |
7285 | ;; | |
7286 | *-*-cygwin32* ) | |
7287 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
7288 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
7289 | ;; | |
7290 | *-*-mingw32* ) | |
7291 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
7292 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
7293 | ;; | |
7294 | *-pc-os2_emx ) | |
7295 | ;; | |
7296 | *) | |
7297 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } | |
7298 | esac | |
7299 | ||
7300 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
7301 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
7302 | fi | |
7303 | else | |
7304 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
7305 | WX_ALL="${WX_LIBRARY_NAME_STATIC}" | |
7306 | fi | |
7307 | ||
7308 | ||
7309 | for ac_hdr in strings.h | |
7310 | do | |
7311 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7312 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 7313 | echo "configure:7314: checking for $ac_hdr" >&5 |
10f2d63a VZ |
7314 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7315 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7316 | else | |
7317 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7318 | #line 7319 "configure" |
10f2d63a VZ |
7319 | #include "confdefs.h" |
7320 | #include <$ac_hdr> | |
7321 | EOF | |
7322 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 7323 | { (eval echo configure:7324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
7324 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7325 | if test -z "$ac_err"; then | |
7326 | rm -rf conftest* | |
7327 | eval "ac_cv_header_$ac_safe=yes" | |
7328 | else | |
7329 | echo "$ac_err" >&5 | |
7330 | echo "configure: failed program was:" >&5 | |
7331 | cat conftest.$ac_ext >&5 | |
7332 | rm -rf conftest* | |
7333 | eval "ac_cv_header_$ac_safe=no" | |
7334 | fi | |
7335 | rm -f conftest* | |
7336 | fi | |
7337 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7338 | echo "$ac_t""yes" 1>&6 | |
7339 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7340 | cat >> confdefs.h <<EOF | |
7341 | #define $ac_tr_hdr 1 | |
7342 | EOF | |
7343 | ||
7344 | else | |
7345 | echo "$ac_t""no" 1>&6 | |
7346 | fi | |
7347 | done | |
7348 | ||
7349 | for ac_hdr in unistd.h | |
7350 | do | |
7351 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7352 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 7353 | echo "configure:7354: checking for $ac_hdr" >&5 |
10f2d63a VZ |
7354 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7356 | else | |
7357 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7358 | #line 7359 "configure" |
10f2d63a VZ |
7359 | #include "confdefs.h" |
7360 | #include <$ac_hdr> | |
7361 | EOF | |
7362 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 7363 | { (eval echo configure:7364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
7364 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7365 | if test -z "$ac_err"; then | |
7366 | rm -rf conftest* | |
7367 | eval "ac_cv_header_$ac_safe=yes" | |
7368 | else | |
7369 | echo "$ac_err" >&5 | |
7370 | echo "configure: failed program was:" >&5 | |
7371 | cat conftest.$ac_ext >&5 | |
7372 | rm -rf conftest* | |
7373 | eval "ac_cv_header_$ac_safe=no" | |
7374 | fi | |
7375 | rm -f conftest* | |
7376 | fi | |
7377 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7378 | echo "$ac_t""yes" 1>&6 | |
7379 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7380 | cat >> confdefs.h <<EOF | |
7381 | #define $ac_tr_hdr 1 | |
7382 | EOF | |
7383 | ||
7384 | else | |
7385 | echo "$ac_t""no" 1>&6 | |
7386 | fi | |
7387 | done | |
7388 | ||
7389 | for ac_hdr in wchar.h | |
7390 | do | |
7391 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7392 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 7393 | echo "configure:7394: checking for $ac_hdr" >&5 |
10f2d63a VZ |
7394 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7395 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7396 | else | |
7397 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7398 | #line 7399 "configure" |
10f2d63a VZ |
7399 | #include "confdefs.h" |
7400 | #include <$ac_hdr> | |
7401 | EOF | |
7402 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 7403 | { (eval echo configure:7404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
7404 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7405 | if test -z "$ac_err"; then | |
7406 | rm -rf conftest* | |
7407 | eval "ac_cv_header_$ac_safe=yes" | |
7408 | else | |
7409 | echo "$ac_err" >&5 | |
7410 | echo "configure: failed program was:" >&5 | |
7411 | cat conftest.$ac_ext >&5 | |
7412 | rm -rf conftest* | |
7413 | eval "ac_cv_header_$ac_safe=no" | |
7414 | fi | |
7415 | rm -f conftest* | |
7416 | fi | |
7417 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7418 | echo "$ac_t""yes" 1>&6 | |
7419 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7420 | cat >> confdefs.h <<EOF | |
7421 | #define $ac_tr_hdr 1 | |
7422 | EOF | |
7423 | ||
7424 | else | |
7425 | echo "$ac_t""no" 1>&6 | |
7426 | fi | |
7427 | done | |
7428 | ||
7429 | for ac_hdr in wcstr.h | |
7430 | do | |
7431 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7432 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 7433 | echo "configure:7434: checking for $ac_hdr" >&5 |
10f2d63a VZ |
7434 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7435 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7436 | else | |
7437 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7438 | #line 7439 "configure" |
10f2d63a VZ |
7439 | #include "confdefs.h" |
7440 | #include <$ac_hdr> | |
7441 | EOF | |
7442 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 7443 | { (eval echo configure:7444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
7444 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7445 | if test -z "$ac_err"; then | |
7446 | rm -rf conftest* | |
7447 | eval "ac_cv_header_$ac_safe=yes" | |
7448 | else | |
7449 | echo "$ac_err" >&5 | |
7450 | echo "configure: failed program was:" >&5 | |
7451 | cat conftest.$ac_ext >&5 | |
7452 | rm -rf conftest* | |
7453 | eval "ac_cv_header_$ac_safe=no" | |
7454 | fi | |
7455 | rm -f conftest* | |
7456 | fi | |
7457 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7458 | echo "$ac_t""yes" 1>&6 | |
7459 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7460 | cat >> confdefs.h <<EOF | |
7461 | #define $ac_tr_hdr 1 | |
7462 | EOF | |
7463 | ||
7464 | else | |
7465 | echo "$ac_t""no" 1>&6 | |
7466 | fi | |
7467 | done | |
7468 | ||
7469 | for ac_hdr in fnmatch.h | |
7470 | do | |
7471 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7472 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 7473 | echo "configure:7474: checking for $ac_hdr" >&5 |
10f2d63a VZ |
7474 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7476 | else | |
7477 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7478 | #line 7479 "configure" |
10f2d63a VZ |
7479 | #include "confdefs.h" |
7480 | #include <$ac_hdr> | |
7481 | EOF | |
7482 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 7483 | { (eval echo configure:7484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
7484 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7485 | if test -z "$ac_err"; then | |
7486 | rm -rf conftest* | |
7487 | eval "ac_cv_header_$ac_safe=yes" | |
7488 | else | |
7489 | echo "$ac_err" >&5 | |
7490 | echo "configure: failed program was:" >&5 | |
7491 | cat conftest.$ac_ext >&5 | |
7492 | rm -rf conftest* | |
7493 | eval "ac_cv_header_$ac_safe=no" | |
7494 | fi | |
7495 | rm -f conftest* | |
7496 | fi | |
7497 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7498 | echo "$ac_t""yes" 1>&6 | |
7499 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7500 | cat >> confdefs.h <<EOF | |
7501 | #define $ac_tr_hdr 1 | |
7502 | EOF | |
7503 | ||
7504 | else | |
7505 | echo "$ac_t""no" 1>&6 | |
7506 | fi | |
7507 | done | |
7508 | ||
7509 | ||
7510 | if test "$wxUSE_GUI" = "yes"; then | |
7511 | for ac_hdr in X11/XKBlib.h | |
7512 | do | |
7513 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
7514 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 7515 | echo "configure:7516: checking for $ac_hdr" >&5 |
10f2d63a VZ |
7516 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7518 | else | |
7519 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7520 | #line 7521 "configure" |
10f2d63a VZ |
7521 | #include "confdefs.h" |
7522 | #include <$ac_hdr> | |
7523 | EOF | |
7524 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 7525 | { (eval echo configure:7526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
7526 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7527 | if test -z "$ac_err"; then | |
7528 | rm -rf conftest* | |
7529 | eval "ac_cv_header_$ac_safe=yes" | |
7530 | else | |
7531 | echo "$ac_err" >&5 | |
7532 | echo "configure: failed program was:" >&5 | |
7533 | cat conftest.$ac_ext >&5 | |
7534 | rm -rf conftest* | |
7535 | eval "ac_cv_header_$ac_safe=no" | |
7536 | fi | |
7537 | rm -f conftest* | |
7538 | fi | |
7539 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
7540 | echo "$ac_t""yes" 1>&6 | |
7541 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
7542 | cat >> confdefs.h <<EOF | |
7543 | #define $ac_tr_hdr 1 | |
7544 | EOF | |
7545 | ||
7546 | else | |
7547 | echo "$ac_t""no" 1>&6 | |
7548 | fi | |
7549 | done | |
7550 | ||
7551 | fi | |
7552 | ||
7553 | ||
7554 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
f512f90a | 7555 | echo "configure:7556: checking for ANSI C header files" >&5 |
10f2d63a VZ |
7556 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
7557 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7558 | else | |
7559 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7560 | #line 7561 "configure" |
10f2d63a VZ |
7561 | #include "confdefs.h" |
7562 | #include <stdlib.h> | |
7563 | #include <stdarg.h> | |
7564 | #include <string.h> | |
7565 | #include <float.h> | |
7566 | EOF | |
7567 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 7568 | { (eval echo configure:7569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
7569 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7570 | if test -z "$ac_err"; then | |
7571 | rm -rf conftest* | |
7572 | ac_cv_header_stdc=yes | |
7573 | else | |
7574 | echo "$ac_err" >&5 | |
7575 | echo "configure: failed program was:" >&5 | |
7576 | cat conftest.$ac_ext >&5 | |
7577 | rm -rf conftest* | |
7578 | ac_cv_header_stdc=no | |
7579 | fi | |
7580 | rm -f conftest* | |
7581 | ||
7582 | if test $ac_cv_header_stdc = yes; then | |
7583 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7584 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7585 | #line 7586 "configure" |
10f2d63a VZ |
7586 | #include "confdefs.h" |
7587 | #include <string.h> | |
7588 | EOF | |
7589 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7590 | egrep "memchr" >/dev/null 2>&1; then | |
7591 | : | |
7592 | else | |
7593 | rm -rf conftest* | |
7594 | ac_cv_header_stdc=no | |
7595 | fi | |
7596 | rm -f conftest* | |
7597 | ||
7598 | fi | |
7599 | ||
7600 | if test $ac_cv_header_stdc = yes; then | |
7601 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7602 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7603 | #line 7604 "configure" |
10f2d63a VZ |
7604 | #include "confdefs.h" |
7605 | #include <stdlib.h> | |
7606 | EOF | |
7607 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7608 | egrep "free" >/dev/null 2>&1; then | |
7609 | : | |
7610 | else | |
7611 | rm -rf conftest* | |
7612 | ac_cv_header_stdc=no | |
7613 | fi | |
7614 | rm -f conftest* | |
7615 | ||
7616 | fi | |
7617 | ||
7618 | if test $ac_cv_header_stdc = yes; then | |
7619 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7620 | if test "$cross_compiling" = yes; then | |
7621 | : | |
7622 | else | |
7623 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7624 | #line 7625 "configure" |
10f2d63a VZ |
7625 | #include "confdefs.h" |
7626 | #include <ctype.h> | |
7627 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7628 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7629 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7630 | int main () { int i; for (i = 0; i < 256; i++) | |
7631 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
7632 | exit (0); } | |
7633 | ||
7634 | EOF | |
f512f90a | 7635 | if { (eval echo configure:7636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7636 | then |
7637 | : | |
7638 | else | |
7639 | echo "configure: failed program was:" >&5 | |
7640 | cat conftest.$ac_ext >&5 | |
7641 | rm -fr conftest* | |
7642 | ac_cv_header_stdc=no | |
7643 | fi | |
7644 | rm -fr conftest* | |
7645 | fi | |
7646 | ||
7647 | fi | |
7648 | fi | |
7649 | ||
7650 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
7651 | if test $ac_cv_header_stdc = yes; then | |
7652 | cat >> confdefs.h <<\EOF | |
7653 | #define STDC_HEADERS 1 | |
7654 | EOF | |
7655 | ||
7656 | fi | |
7657 | ||
7658 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 | |
f512f90a | 7659 | echo "configure:7660: checking for mode_t" >&5 |
10f2d63a VZ |
7660 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
7661 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7662 | else | |
7663 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7664 | #line 7665 "configure" |
10f2d63a VZ |
7665 | #include "confdefs.h" |
7666 | #include <sys/types.h> | |
7667 | #if STDC_HEADERS | |
7668 | #include <stdlib.h> | |
7669 | #include <stddef.h> | |
7670 | #endif | |
7671 | EOF | |
7672 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7673 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
7674 | rm -rf conftest* | |
7675 | ac_cv_type_mode_t=yes | |
7676 | else | |
7677 | rm -rf conftest* | |
7678 | ac_cv_type_mode_t=no | |
7679 | fi | |
7680 | rm -f conftest* | |
7681 | ||
7682 | fi | |
7683 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 | |
7684 | if test $ac_cv_type_mode_t = no; then | |
7685 | cat >> confdefs.h <<\EOF | |
7686 | #define mode_t int | |
7687 | EOF | |
7688 | ||
7689 | fi | |
7690 | ||
7691 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
f512f90a | 7692 | echo "configure:7693: checking for off_t" >&5 |
10f2d63a VZ |
7693 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
7694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7695 | else | |
7696 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7697 | #line 7698 "configure" |
10f2d63a VZ |
7698 | #include "confdefs.h" |
7699 | #include <sys/types.h> | |
7700 | #if STDC_HEADERS | |
7701 | #include <stdlib.h> | |
7702 | #include <stddef.h> | |
7703 | #endif | |
7704 | EOF | |
7705 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7706 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
7707 | rm -rf conftest* | |
7708 | ac_cv_type_off_t=yes | |
7709 | else | |
7710 | rm -rf conftest* | |
7711 | ac_cv_type_off_t=no | |
7712 | fi | |
7713 | rm -f conftest* | |
7714 | ||
7715 | fi | |
7716 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
7717 | if test $ac_cv_type_off_t = no; then | |
7718 | cat >> confdefs.h <<\EOF | |
7719 | #define off_t long | |
7720 | EOF | |
7721 | ||
7722 | fi | |
7723 | ||
7724 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | |
f512f90a | 7725 | echo "configure:7726: checking for pid_t" >&5 |
10f2d63a VZ |
7726 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
7727 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7728 | else | |
7729 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7730 | #line 7731 "configure" |
10f2d63a VZ |
7731 | #include "confdefs.h" |
7732 | #include <sys/types.h> | |
7733 | #if STDC_HEADERS | |
7734 | #include <stdlib.h> | |
7735 | #include <stddef.h> | |
7736 | #endif | |
7737 | EOF | |
7738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7739 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
7740 | rm -rf conftest* | |
7741 | ac_cv_type_pid_t=yes | |
7742 | else | |
7743 | rm -rf conftest* | |
7744 | ac_cv_type_pid_t=no | |
7745 | fi | |
7746 | rm -f conftest* | |
7747 | ||
7748 | fi | |
7749 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
7750 | if test $ac_cv_type_pid_t = no; then | |
7751 | cat >> confdefs.h <<\EOF | |
7752 | #define pid_t int | |
7753 | EOF | |
7754 | ||
7755 | fi | |
7756 | ||
7757 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
f512f90a | 7758 | echo "configure:7759: checking for size_t" >&5 |
10f2d63a VZ |
7759 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
7760 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7761 | else | |
7762 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7763 | #line 7764 "configure" |
10f2d63a VZ |
7764 | #include "confdefs.h" |
7765 | #include <sys/types.h> | |
7766 | #if STDC_HEADERS | |
7767 | #include <stdlib.h> | |
7768 | #include <stddef.h> | |
7769 | #endif | |
7770 | EOF | |
7771 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7772 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
7773 | rm -rf conftest* | |
7774 | ac_cv_type_size_t=yes | |
7775 | else | |
7776 | rm -rf conftest* | |
7777 | ac_cv_type_size_t=no | |
7778 | fi | |
7779 | rm -f conftest* | |
7780 | ||
7781 | fi | |
7782 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
7783 | if test $ac_cv_type_size_t = no; then | |
7784 | cat >> confdefs.h <<\EOF | |
7785 | #define size_t unsigned | |
7786 | EOF | |
7787 | ||
7788 | fi | |
7789 | ||
7790 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 | |
f512f90a | 7791 | echo "configure:7792: checking for uid_t in sys/types.h" >&5 |
10f2d63a VZ |
7792 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
7793 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7794 | else | |
7795 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7796 | #line 7797 "configure" |
10f2d63a VZ |
7797 | #include "confdefs.h" |
7798 | #include <sys/types.h> | |
7799 | EOF | |
7800 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7801 | egrep "uid_t" >/dev/null 2>&1; then | |
7802 | rm -rf conftest* | |
7803 | ac_cv_type_uid_t=yes | |
7804 | else | |
7805 | rm -rf conftest* | |
7806 | ac_cv_type_uid_t=no | |
7807 | fi | |
7808 | rm -f conftest* | |
7809 | ||
7810 | fi | |
7811 | ||
7812 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 | |
7813 | if test $ac_cv_type_uid_t = no; then | |
7814 | cat >> confdefs.h <<\EOF | |
7815 | #define uid_t int | |
7816 | EOF | |
7817 | ||
7818 | cat >> confdefs.h <<\EOF | |
7819 | #define gid_t int | |
7820 | EOF | |
7821 | ||
7822 | fi | |
7823 | ||
7824 | ||
7825 | ||
7826 | ||
7827 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
f512f90a | 7828 | echo "configure:7829: checking for working const" >&5 |
10f2d63a VZ |
7829 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
7830 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7831 | else | |
7832 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7833 | #line 7834 "configure" |
10f2d63a VZ |
7834 | #include "confdefs.h" |
7835 | ||
7836 | int main() { | |
7837 | ||
7838 | /* Ultrix mips cc rejects this. */ | |
7839 | typedef int charset[2]; const charset x; | |
7840 | /* SunOS 4.1.1 cc rejects this. */ | |
7841 | char const *const *ccp; | |
7842 | char **p; | |
7843 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
7844 | struct point {int x, y;}; | |
7845 | static struct point const zero = {0,0}; | |
7846 | /* AIX XL C 1.02.0.0 rejects this. | |
7847 | It does not let you subtract one const X* pointer from another in an arm | |
7848 | of an if-expression whose if-part is not a constant expression */ | |
7849 | const char *g = "string"; | |
7850 | ccp = &g + (g ? g-g : 0); | |
7851 | /* HPUX 7.0 cc rejects these. */ | |
7852 | ++ccp; | |
7853 | p = (char**) ccp; | |
7854 | ccp = (char const *const *) p; | |
7855 | { /* SCO 3.2v4 cc rejects this. */ | |
7856 | char *t; | |
7857 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
7858 | ||
7859 | *t++ = 0; | |
7860 | } | |
7861 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
7862 | int x[] = {25, 17}; | |
7863 | const int *foo = &x[0]; | |
7864 | ++foo; | |
7865 | } | |
7866 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
7867 | typedef const int *iptr; | |
7868 | iptr p = 0; | |
7869 | ++p; | |
7870 | } | |
7871 | { /* AIX XL C 1.02.0.0 rejects this saying | |
7872 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
7873 | struct s { int j; const int *ap[3]; }; | |
7874 | struct s *b; b->j = 5; | |
7875 | } | |
7876 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
7877 | const int foo = 10; | |
7878 | } | |
7879 | ||
7880 | ; return 0; } | |
7881 | EOF | |
f512f90a | 7882 | if { (eval echo configure:7883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
7883 | rm -rf conftest* |
7884 | ac_cv_c_const=yes | |
7885 | else | |
7886 | echo "configure: failed program was:" >&5 | |
7887 | cat conftest.$ac_ext >&5 | |
7888 | rm -rf conftest* | |
7889 | ac_cv_c_const=no | |
7890 | fi | |
7891 | rm -f conftest* | |
7892 | fi | |
7893 | ||
7894 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
7895 | if test $ac_cv_c_const = no; then | |
7896 | cat >> confdefs.h <<\EOF | |
7897 | #define const | |
7898 | EOF | |
7899 | ||
7900 | fi | |
7901 | ||
7902 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
f512f90a | 7903 | echo "configure:7904: checking for inline" >&5 |
10f2d63a VZ |
7904 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
7905 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7906 | else | |
7907 | ac_cv_c_inline=no | |
7908 | for ac_kw in inline __inline__ __inline; do | |
7909 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7910 | #line 7911 "configure" |
10f2d63a VZ |
7911 | #include "confdefs.h" |
7912 | ||
7913 | int main() { | |
7914 | } $ac_kw foo() { | |
7915 | ; return 0; } | |
7916 | EOF | |
f512f90a | 7917 | if { (eval echo configure:7918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
7918 | rm -rf conftest* |
7919 | ac_cv_c_inline=$ac_kw; break | |
7920 | else | |
7921 | echo "configure: failed program was:" >&5 | |
7922 | cat conftest.$ac_ext >&5 | |
7923 | fi | |
7924 | rm -f conftest* | |
7925 | done | |
7926 | ||
7927 | fi | |
7928 | ||
7929 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
7930 | case "$ac_cv_c_inline" in | |
7931 | inline | yes) ;; | |
7932 | no) cat >> confdefs.h <<\EOF | |
7933 | #define inline | |
7934 | EOF | |
7935 | ;; | |
7936 | *) cat >> confdefs.h <<EOF | |
7937 | #define inline $ac_cv_c_inline | |
7938 | EOF | |
7939 | ;; | |
7940 | esac | |
7941 | ||
7942 | ||
7943 | echo $ac_n "checking size of char""... $ac_c" 1>&6 | |
f512f90a | 7944 | echo "configure:7945: checking size of char" >&5 |
10f2d63a VZ |
7945 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
7946 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7947 | else | |
7948 | if test "$cross_compiling" = yes; then | |
7949 | ac_cv_sizeof_char=1 | |
7950 | else | |
7951 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7952 | #line 7953 "configure" |
10f2d63a VZ |
7953 | #include "confdefs.h" |
7954 | #include <stdio.h> | |
7955 | main() | |
7956 | { | |
7957 | FILE *f=fopen("conftestval", "w"); | |
7958 | if (!f) exit(1); | |
7959 | fprintf(f, "%d\n", sizeof(char)); | |
7960 | exit(0); | |
7961 | } | |
7962 | EOF | |
f512f90a | 7963 | if { (eval echo configure:7964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
7964 | then |
7965 | ac_cv_sizeof_char=`cat conftestval` | |
7966 | else | |
7967 | echo "configure: failed program was:" >&5 | |
7968 | cat conftest.$ac_ext >&5 | |
7969 | rm -fr conftest* | |
7970 | ac_cv_sizeof_char=0 | |
7971 | fi | |
7972 | rm -fr conftest* | |
7973 | fi | |
7974 | ||
7975 | fi | |
7976 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 | |
7977 | cat >> confdefs.h <<EOF | |
7978 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
7979 | EOF | |
7980 | ||
7981 | ||
7982 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | |
f512f90a | 7983 | echo "configure:7984: checking size of short" >&5 |
10f2d63a VZ |
7984 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
7985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7986 | else | |
7987 | if test "$cross_compiling" = yes; then | |
7988 | ac_cv_sizeof_short=2 | |
7989 | else | |
7990 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 7991 | #line 7992 "configure" |
10f2d63a VZ |
7992 | #include "confdefs.h" |
7993 | #include <stdio.h> | |
7994 | main() | |
7995 | { | |
7996 | FILE *f=fopen("conftestval", "w"); | |
7997 | if (!f) exit(1); | |
7998 | fprintf(f, "%d\n", sizeof(short)); | |
7999 | exit(0); | |
8000 | } | |
8001 | EOF | |
f512f90a | 8002 | if { (eval echo configure:8003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8003 | then |
8004 | ac_cv_sizeof_short=`cat conftestval` | |
8005 | else | |
8006 | echo "configure: failed program was:" >&5 | |
8007 | cat conftest.$ac_ext >&5 | |
8008 | rm -fr conftest* | |
8009 | ac_cv_sizeof_short=0 | |
8010 | fi | |
8011 | rm -fr conftest* | |
8012 | fi | |
8013 | ||
8014 | fi | |
8015 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | |
8016 | cat >> confdefs.h <<EOF | |
8017 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
8018 | EOF | |
8019 | ||
8020 | ||
8021 | echo $ac_n "checking size of int *""... $ac_c" 1>&6 | |
f512f90a | 8022 | echo "configure:8023: checking size of int *" >&5 |
10f2d63a VZ |
8023 | if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then |
8024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8025 | else | |
8026 | if test "$cross_compiling" = yes; then | |
8027 | ac_cv_sizeof_int_p=4 | |
8028 | else | |
8029 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8030 | #line 8031 "configure" |
10f2d63a VZ |
8031 | #include "confdefs.h" |
8032 | #include <stdio.h> | |
8033 | main() | |
8034 | { | |
8035 | FILE *f=fopen("conftestval", "w"); | |
8036 | if (!f) exit(1); | |
8037 | fprintf(f, "%d\n", sizeof(int *)); | |
8038 | exit(0); | |
8039 | } | |
8040 | EOF | |
f512f90a | 8041 | if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8042 | then |
8043 | ac_cv_sizeof_int_p=`cat conftestval` | |
8044 | else | |
8045 | echo "configure: failed program was:" >&5 | |
8046 | cat conftest.$ac_ext >&5 | |
8047 | rm -fr conftest* | |
8048 | ac_cv_sizeof_int_p=0 | |
8049 | fi | |
8050 | rm -fr conftest* | |
8051 | fi | |
8052 | ||
8053 | fi | |
8054 | echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6 | |
8055 | cat >> confdefs.h <<EOF | |
8056 | #define SIZEOF_INT_P $ac_cv_sizeof_int_p | |
8057 | EOF | |
8058 | ||
8059 | ||
8060 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
f512f90a | 8061 | echo "configure:8062: checking size of int" >&5 |
10f2d63a VZ |
8062 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
8063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8064 | else | |
8065 | if test "$cross_compiling" = yes; then | |
8066 | ac_cv_sizeof_int=4 | |
8067 | else | |
8068 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8069 | #line 8070 "configure" |
10f2d63a VZ |
8070 | #include "confdefs.h" |
8071 | #include <stdio.h> | |
8072 | main() | |
8073 | { | |
8074 | FILE *f=fopen("conftestval", "w"); | |
8075 | if (!f) exit(1); | |
8076 | fprintf(f, "%d\n", sizeof(int)); | |
8077 | exit(0); | |
8078 | } | |
8079 | EOF | |
f512f90a | 8080 | if { (eval echo configure:8081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8081 | then |
8082 | ac_cv_sizeof_int=`cat conftestval` | |
8083 | else | |
8084 | echo "configure: failed program was:" >&5 | |
8085 | cat conftest.$ac_ext >&5 | |
8086 | rm -fr conftest* | |
8087 | ac_cv_sizeof_int=0 | |
8088 | fi | |
8089 | rm -fr conftest* | |
8090 | fi | |
8091 | ||
8092 | fi | |
8093 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
8094 | cat >> confdefs.h <<EOF | |
8095 | #define SIZEOF_INT $ac_cv_sizeof_int | |
8096 | EOF | |
8097 | ||
8098 | ||
8099 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
f512f90a | 8100 | echo "configure:8101: checking size of long" >&5 |
10f2d63a VZ |
8101 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
8102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8103 | else | |
8104 | if test "$cross_compiling" = yes; then | |
8105 | ac_cv_sizeof_long=4 | |
8106 | else | |
8107 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8108 | #line 8109 "configure" |
10f2d63a VZ |
8109 | #include "confdefs.h" |
8110 | #include <stdio.h> | |
8111 | main() | |
8112 | { | |
8113 | FILE *f=fopen("conftestval", "w"); | |
8114 | if (!f) exit(1); | |
8115 | fprintf(f, "%d\n", sizeof(long)); | |
8116 | exit(0); | |
8117 | } | |
8118 | EOF | |
f512f90a | 8119 | if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8120 | then |
8121 | ac_cv_sizeof_long=`cat conftestval` | |
8122 | else | |
8123 | echo "configure: failed program was:" >&5 | |
8124 | cat conftest.$ac_ext >&5 | |
8125 | rm -fr conftest* | |
8126 | ac_cv_sizeof_long=0 | |
8127 | fi | |
8128 | rm -fr conftest* | |
8129 | fi | |
8130 | ||
8131 | fi | |
8132 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | |
8133 | cat >> confdefs.h <<EOF | |
8134 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
8135 | EOF | |
8136 | ||
8137 | ||
8138 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
f512f90a | 8139 | echo "configure:8140: checking size of long long" >&5 |
10f2d63a VZ |
8140 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
8141 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8142 | else | |
8143 | if test "$cross_compiling" = yes; then | |
8144 | ac_cv_sizeof_long_long=0 | |
8145 | else | |
8146 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8147 | #line 8148 "configure" |
10f2d63a VZ |
8148 | #include "confdefs.h" |
8149 | #include <stdio.h> | |
8150 | main() | |
8151 | { | |
8152 | FILE *f=fopen("conftestval", "w"); | |
8153 | if (!f) exit(1); | |
8154 | fprintf(f, "%d\n", sizeof(long long)); | |
8155 | exit(0); | |
8156 | } | |
8157 | EOF | |
f512f90a | 8158 | if { (eval echo configure:8159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8159 | then |
8160 | ac_cv_sizeof_long_long=`cat conftestval` | |
8161 | else | |
8162 | echo "configure: failed program was:" >&5 | |
8163 | cat conftest.$ac_ext >&5 | |
8164 | rm -fr conftest* | |
8165 | ac_cv_sizeof_long_long=0 | |
8166 | fi | |
8167 | rm -fr conftest* | |
8168 | fi | |
8169 | ||
8170 | fi | |
8171 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
8172 | cat >> confdefs.h <<EOF | |
8173 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
8174 | EOF | |
8175 | ||
8176 | ||
8177 | ||
8178 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
f512f90a | 8179 | echo "configure:8180: checking whether byte ordering is bigendian" >&5 |
10f2d63a VZ |
8180 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
8181 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8182 | else | |
8183 | ac_cv_c_bigendian=unknown | |
8184 | # See if sys/param.h defines the BYTE_ORDER macro. | |
8185 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8186 | #line 8187 "configure" |
10f2d63a VZ |
8187 | #include "confdefs.h" |
8188 | #include <sys/types.h> | |
8189 | #include <sys/param.h> | |
8190 | int main() { | |
8191 | ||
8192 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
8193 | bogus endian macros | |
8194 | #endif | |
8195 | ; return 0; } | |
8196 | EOF | |
f512f90a | 8197 | if { (eval echo configure:8198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8198 | rm -rf conftest* |
8199 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
8200 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8201 | #line 8202 "configure" |
10f2d63a VZ |
8202 | #include "confdefs.h" |
8203 | #include <sys/types.h> | |
8204 | #include <sys/param.h> | |
8205 | int main() { | |
8206 | ||
8207 | #if BYTE_ORDER != BIG_ENDIAN | |
8208 | not big endian | |
8209 | #endif | |
8210 | ; return 0; } | |
8211 | EOF | |
f512f90a | 8212 | if { (eval echo configure:8213: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8213 | rm -rf conftest* |
8214 | ac_cv_c_bigendian=yes | |
8215 | else | |
8216 | echo "configure: failed program was:" >&5 | |
8217 | cat conftest.$ac_ext >&5 | |
8218 | rm -rf conftest* | |
8219 | ac_cv_c_bigendian=no | |
8220 | fi | |
8221 | rm -f conftest* | |
8222 | else | |
8223 | echo "configure: failed program was:" >&5 | |
8224 | cat conftest.$ac_ext >&5 | |
8225 | fi | |
8226 | rm -f conftest* | |
8227 | if test $ac_cv_c_bigendian = unknown; then | |
8228 | if test "$cross_compiling" = yes; then | |
8229 | ac_cv_c_bigendian=unknown | |
8230 | else | |
8231 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8232 | #line 8233 "configure" |
10f2d63a VZ |
8233 | #include "confdefs.h" |
8234 | main () { | |
8235 | /* Are we little or big endian? From Harbison&Steele. */ | |
8236 | union | |
8237 | { | |
8238 | long l; | |
8239 | char c[sizeof (long)]; | |
8240 | } u; | |
8241 | u.l = 1; | |
8242 | exit (u.c[sizeof (long) - 1] == 1); | |
8243 | } | |
8244 | EOF | |
f512f90a | 8245 | if { (eval echo configure:8246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8246 | then |
8247 | ac_cv_c_bigendian=no | |
8248 | else | |
8249 | echo "configure: failed program was:" >&5 | |
8250 | cat conftest.$ac_ext >&5 | |
8251 | rm -fr conftest* | |
8252 | ac_cv_c_bigendian=yes | |
8253 | fi | |
8254 | rm -fr conftest* | |
8255 | fi | |
8256 | ||
8257 | fi | |
8258 | fi | |
8259 | ||
8260 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
8261 | if test $ac_cv_c_bigendian = unknown; then | |
8262 | echo "configure: warning: Assuming little-endian target machine - this may be overriden by adding the line "ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}" to config.cache file" 1>&2 | |
8263 | fi | |
8264 | if test $ac_cv_c_bigendian = yes; then | |
8265 | cat >> confdefs.h <<\EOF | |
8266 | #define WORDS_BIGENDIAN 1 | |
8267 | EOF | |
8268 | ||
8269 | fi | |
8270 | ||
8271 | ||
8272 | ||
8273 | if test "$cross_compiling" = "yes"; then | |
8274 | cat >> confdefs.h <<\EOF | |
8275 | #define wxUSE_IOSTREAMH 1 | |
8276 | EOF | |
8277 | ||
8278 | else | |
8279 | ||
8280 | ac_ext=C | |
8281 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8282 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8283 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8284 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8285 | cross_compiling=$ac_cv_prog_cxx_cross | |
8286 | ||
8287 | ||
8288 | for ac_hdr in iostream | |
8289 | do | |
8290 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
8291 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 8292 | echo "configure:8293: checking for $ac_hdr" >&5 |
10f2d63a VZ |
8293 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8295 | else | |
8296 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8297 | #line 8298 "configure" |
10f2d63a VZ |
8298 | #include "confdefs.h" |
8299 | #include <$ac_hdr> | |
8300 | EOF | |
8301 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 8302 | { (eval echo configure:8303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
8303 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8304 | if test -z "$ac_err"; then | |
8305 | rm -rf conftest* | |
8306 | eval "ac_cv_header_$ac_safe=yes" | |
8307 | else | |
8308 | echo "$ac_err" >&5 | |
8309 | echo "configure: failed program was:" >&5 | |
8310 | cat conftest.$ac_ext >&5 | |
8311 | rm -rf conftest* | |
8312 | eval "ac_cv_header_$ac_safe=no" | |
8313 | fi | |
8314 | rm -f conftest* | |
8315 | fi | |
8316 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
8317 | echo "$ac_t""yes" 1>&6 | |
8318 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
8319 | cat >> confdefs.h <<EOF | |
8320 | #define $ac_tr_hdr 1 | |
8321 | EOF | |
8322 | ||
8323 | else | |
8324 | echo "$ac_t""no" 1>&6 | |
8325 | fi | |
8326 | done | |
8327 | ||
8328 | ||
8329 | if test "x$HAVE_IOSTREAM" = x ; then | |
8330 | cat >> confdefs.h <<\EOF | |
8331 | #define wxUSE_IOSTREAMH 1 | |
8332 | EOF | |
8333 | ||
8334 | else | |
8335 | : | |
8336 | fi | |
8337 | ||
8338 | ac_ext=c | |
8339 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8340 | ac_cpp='$CPP $CPPFLAGS' | |
8341 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8342 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8343 | cross_compiling=$ac_cv_prog_cc_cross | |
8344 | ||
8345 | fi | |
8346 | ||
8347 | ||
8348 | ||
8349 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
f512f90a | 8350 | echo "configure:8351: checking if C++ compiler supports bool" >&5 |
10f2d63a VZ |
8351 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
8352 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8353 | else | |
8354 | ||
8355 | ||
8356 | ac_ext=C | |
8357 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8358 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8359 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8360 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8361 | cross_compiling=$ac_cv_prog_cxx_cross | |
8362 | ||
8363 | ||
8364 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8365 | #line 8366 "configure" |
10f2d63a VZ |
8366 | #include "confdefs.h" |
8367 | ||
8368 | ||
8369 | int main() { | |
8370 | ||
8371 | bool b = true; | |
8372 | ||
8373 | return 0; | |
8374 | ||
8375 | ; return 0; } | |
8376 | EOF | |
f512f90a | 8377 | if { (eval echo configure:8378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8378 | rm -rf conftest* |
8379 | ||
8380 | cat >> confdefs.h <<\EOF | |
8381 | #define HAVE_BOOL 1 | |
8382 | EOF | |
8383 | ||
8384 | wx_cv_cpp_bool=yes | |
8385 | ||
8386 | else | |
8387 | echo "configure: failed program was:" >&5 | |
8388 | cat conftest.$ac_ext >&5 | |
8389 | rm -rf conftest* | |
8390 | ||
8391 | wx_cv_cpp_bool=no | |
8392 | ||
8393 | ||
8394 | fi | |
8395 | rm -f conftest* | |
8396 | ||
8397 | ac_ext=c | |
8398 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8399 | ac_cpp='$CPP $CPPFLAGS' | |
8400 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8401 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8402 | cross_compiling=$ac_cv_prog_cc_cross | |
8403 | ||
8404 | ||
8405 | fi | |
8406 | ||
8407 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
8408 | ||
8409 | if test "$wx_cv_cpp_bool" = "yes"; then | |
8410 | cat >> confdefs.h <<\EOF | |
8411 | #define HAVE_BOOL 1 | |
8412 | EOF | |
8413 | ||
8414 | fi | |
8415 | ||
8416 | ||
8417 | ||
10f2d63a | 8418 | echo $ac_n "checking if you need GNU extensions""... $ac_c" 1>&6 |
f512f90a | 8419 | echo "configure:8420: checking if you need GNU extensions" >&5 |
10f2d63a VZ |
8420 | if eval "test \"`echo '$''{'wx_cv_gnu_extensions'+set}'`\" = set"; then |
8421 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8422 | else | |
8423 | ||
8424 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8425 | #line 8426 "configure" |
10f2d63a VZ |
8426 | #include "confdefs.h" |
8427 | #include <features.h> | |
8428 | int main() { | |
8429 | ||
8430 | ||
8431 | #ifndef __GNU_LIBRARY__ | |
8432 | Compile error wanted | |
8433 | #endif | |
8434 | ||
8435 | ||
8436 | ; return 0; } | |
8437 | EOF | |
f512f90a | 8438 | if { (eval echo configure:8439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
8439 | rm -rf conftest* |
8440 | wx_cv_gnu_extensions=yes | |
8441 | else | |
8442 | echo "configure: failed program was:" >&5 | |
8443 | cat conftest.$ac_ext >&5 | |
8444 | rm -rf conftest* | |
8445 | wx_cv_gnu_extensions=no | |
8446 | fi | |
8447 | rm -f conftest* | |
8448 | ||
8449 | fi | |
8450 | ||
8451 | ||
8452 | echo "$ac_t""$wx_cv_gnu_extensions" 1>&6 | |
8453 | if test "$wx_cv_gnu_extensions" = "yes"; then | |
8454 | cat >> confdefs.h <<EOF | |
8455 | #define _GNU_SOURCE 1 | |
8456 | EOF | |
8457 | ||
8458 | fi | |
8459 | ||
8460 | ||
8461 | ||
8462 | echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6 | |
f512f90a | 8463 | echo "configure:8464: checking for wcslen in -lc" >&5 |
10f2d63a VZ |
8464 | ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'` |
8465 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8467 | else | |
8468 | ac_save_LIBS="$LIBS" | |
8469 | LIBS="-lc $LIBS" | |
8470 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8471 | #line 8472 "configure" |
10f2d63a VZ |
8472 | #include "confdefs.h" |
8473 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8474 | /* We use char because int might match the return type of a gcc2 | |
8475 | builtin and then its argument prototype would still apply. */ | |
8476 | char wcslen(); | |
8477 | ||
8478 | int main() { | |
8479 | wcslen() | |
8480 | ; return 0; } | |
8481 | EOF | |
f512f90a | 8482 | if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8483 | rm -rf conftest* |
8484 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8485 | else | |
8486 | echo "configure: failed program was:" >&5 | |
8487 | cat conftest.$ac_ext >&5 | |
8488 | rm -rf conftest* | |
8489 | eval "ac_cv_lib_$ac_lib_var=no" | |
8490 | fi | |
8491 | rm -f conftest* | |
8492 | LIBS="$ac_save_LIBS" | |
8493 | ||
8494 | fi | |
8495 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8496 | echo "$ac_t""yes" 1>&6 | |
8497 | ||
8498 | cat >> confdefs.h <<\EOF | |
8499 | #define HAVE_WCSLEN 1 | |
8500 | EOF | |
8501 | ||
8502 | WCHAR_LINK="" | |
8503 | ||
8504 | else | |
8505 | echo "$ac_t""no" 1>&6 | |
8506 | ||
8507 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 | |
f512f90a | 8508 | echo "configure:8509: checking for wcslen in -lw" >&5 |
10f2d63a VZ |
8509 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
8510 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8512 | else | |
8513 | ac_save_LIBS="$LIBS" | |
8514 | LIBS="-lw $LIBS" | |
8515 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8516 | #line 8517 "configure" |
10f2d63a VZ |
8517 | #include "confdefs.h" |
8518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8519 | /* We use char because int might match the return type of a gcc2 | |
8520 | builtin and then its argument prototype would still apply. */ | |
8521 | char wcslen(); | |
8522 | ||
8523 | int main() { | |
8524 | wcslen() | |
8525 | ; return 0; } | |
8526 | EOF | |
f512f90a | 8527 | if { (eval echo configure:8528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8528 | rm -rf conftest* |
8529 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8530 | else | |
8531 | echo "configure: failed program was:" >&5 | |
8532 | cat conftest.$ac_ext >&5 | |
8533 | rm -rf conftest* | |
8534 | eval "ac_cv_lib_$ac_lib_var=no" | |
8535 | fi | |
8536 | rm -f conftest* | |
8537 | LIBS="$ac_save_LIBS" | |
8538 | ||
8539 | fi | |
8540 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8541 | echo "$ac_t""yes" 1>&6 | |
8542 | ||
8543 | cat >> confdefs.h <<\EOF | |
8544 | #define HAVE_WCSLEN 1 | |
8545 | EOF | |
8546 | ||
8547 | WCHAR_LINK="-lw" | |
8548 | ||
8549 | else | |
8550 | echo "$ac_t""no" 1>&6 | |
8551 | fi | |
8552 | ||
8553 | ||
8554 | fi | |
8555 | ||
8556 | ||
8557 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | |
f512f90a | 8558 | echo "configure:8559: checking for vprintf" >&5 |
10f2d63a VZ |
8559 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
8560 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8561 | else | |
8562 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8563 | #line 8564 "configure" |
10f2d63a VZ |
8564 | #include "confdefs.h" |
8565 | /* System header to define __stub macros and hopefully few prototypes, | |
8566 | which can conflict with char vprintf(); below. */ | |
8567 | #include <assert.h> | |
8568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8569 | /* We use char because int might match the return type of a gcc2 | |
8570 | builtin and then its argument prototype would still apply. */ | |
8571 | char vprintf(); | |
8572 | ||
8573 | int main() { | |
8574 | ||
8575 | /* The GNU C library defines this for functions which it implements | |
8576 | to always fail with ENOSYS. Some functions are actually named | |
8577 | something starting with __ and the normal name is an alias. */ | |
8578 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | |
8579 | choke me | |
8580 | #else | |
8581 | vprintf(); | |
8582 | #endif | |
8583 | ||
8584 | ; return 0; } | |
8585 | EOF | |
f512f90a | 8586 | if { (eval echo configure:8587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8587 | rm -rf conftest* |
8588 | eval "ac_cv_func_vprintf=yes" | |
8589 | else | |
8590 | echo "configure: failed program was:" >&5 | |
8591 | cat conftest.$ac_ext >&5 | |
8592 | rm -rf conftest* | |
8593 | eval "ac_cv_func_vprintf=no" | |
8594 | fi | |
8595 | rm -f conftest* | |
8596 | fi | |
8597 | ||
8598 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
8599 | echo "$ac_t""yes" 1>&6 | |
8600 | cat >> confdefs.h <<\EOF | |
8601 | #define HAVE_VPRINTF 1 | |
8602 | EOF | |
8603 | ||
8604 | else | |
8605 | echo "$ac_t""no" 1>&6 | |
8606 | fi | |
8607 | ||
8608 | if test "$ac_cv_func_vprintf" != yes; then | |
8609 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
f512f90a | 8610 | echo "configure:8611: checking for _doprnt" >&5 |
10f2d63a VZ |
8611 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
8612 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8613 | else | |
8614 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8615 | #line 8616 "configure" |
10f2d63a VZ |
8616 | #include "confdefs.h" |
8617 | /* System header to define __stub macros and hopefully few prototypes, | |
8618 | which can conflict with char _doprnt(); below. */ | |
8619 | #include <assert.h> | |
8620 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8621 | /* We use char because int might match the return type of a gcc2 | |
8622 | builtin and then its argument prototype would still apply. */ | |
8623 | char _doprnt(); | |
8624 | ||
8625 | int main() { | |
8626 | ||
8627 | /* The GNU C library defines this for functions which it implements | |
8628 | to always fail with ENOSYS. Some functions are actually named | |
8629 | something starting with __ and the normal name is an alias. */ | |
8630 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | |
8631 | choke me | |
8632 | #else | |
8633 | _doprnt(); | |
8634 | #endif | |
8635 | ||
8636 | ; return 0; } | |
8637 | EOF | |
f512f90a | 8638 | if { (eval echo configure:8639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8639 | rm -rf conftest* |
8640 | eval "ac_cv_func__doprnt=yes" | |
8641 | else | |
8642 | echo "configure: failed program was:" >&5 | |
8643 | cat conftest.$ac_ext >&5 | |
8644 | rm -rf conftest* | |
8645 | eval "ac_cv_func__doprnt=no" | |
8646 | fi | |
8647 | rm -f conftest* | |
8648 | fi | |
8649 | ||
8650 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
8651 | echo "$ac_t""yes" 1>&6 | |
8652 | cat >> confdefs.h <<\EOF | |
8653 | #define HAVE_DOPRNT 1 | |
8654 | EOF | |
8655 | ||
8656 | else | |
8657 | echo "$ac_t""no" 1>&6 | |
8658 | fi | |
8659 | ||
8660 | fi | |
8661 | ||
8662 | ||
8663 | for ac_func in vsnprintf | |
8664 | do | |
8665 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 8666 | echo "configure:8667: checking for $ac_func" >&5 |
10f2d63a VZ |
8667 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8668 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8669 | else | |
8670 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8671 | #line 8672 "configure" |
10f2d63a VZ |
8672 | #include "confdefs.h" |
8673 | /* System header to define __stub macros and hopefully few prototypes, | |
8674 | which can conflict with char $ac_func(); below. */ | |
8675 | #include <assert.h> | |
8676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8677 | /* We use char because int might match the return type of a gcc2 | |
8678 | builtin and then its argument prototype would still apply. */ | |
8679 | char $ac_func(); | |
8680 | ||
8681 | int main() { | |
8682 | ||
8683 | /* The GNU C library defines this for functions which it implements | |
8684 | to always fail with ENOSYS. Some functions are actually named | |
8685 | something starting with __ and the normal name is an alias. */ | |
8686 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8687 | choke me | |
8688 | #else | |
8689 | $ac_func(); | |
8690 | #endif | |
8691 | ||
8692 | ; return 0; } | |
8693 | EOF | |
f512f90a | 8694 | if { (eval echo configure:8695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8695 | rm -rf conftest* |
8696 | eval "ac_cv_func_$ac_func=yes" | |
8697 | else | |
8698 | echo "configure: failed program was:" >&5 | |
8699 | cat conftest.$ac_ext >&5 | |
8700 | rm -rf conftest* | |
8701 | eval "ac_cv_func_$ac_func=no" | |
8702 | fi | |
8703 | rm -f conftest* | |
8704 | fi | |
8705 | ||
8706 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8707 | echo "$ac_t""yes" 1>&6 | |
8708 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8709 | cat >> confdefs.h <<EOF | |
8710 | #define $ac_tr_func 1 | |
8711 | EOF | |
8712 | cat >> confdefs.h <<\EOF | |
8713 | #define HAVE_VSNPRINTF 1 | |
8714 | EOF | |
8715 | ||
8716 | else | |
8717 | echo "$ac_t""no" 1>&6 | |
8718 | echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2 | |
8719 | ||
8720 | fi | |
8721 | done | |
8722 | ||
8723 | ||
8724 | ||
8725 | ac_ext=C | |
8726 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8727 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8728 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8729 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8730 | cross_compiling=$ac_cv_prog_cxx_cross | |
8731 | ||
8732 | ||
8733 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 | |
f512f90a | 8734 | echo "configure:8735: checking for vsscanf" >&5 |
10f2d63a VZ |
8735 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
8736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8737 | else | |
8738 | ||
8739 | if test "$cross_compiling" = yes; then | |
8740 | wx_cv_func_vsscanf=no | |
8741 | ||
8742 | else | |
8743 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8744 | #line 8745 "configure" |
10f2d63a VZ |
8745 | #include "confdefs.h" |
8746 | #ifdef __cplusplus | |
8747 | extern "C" void exit(int); | |
8748 | #endif | |
8749 | ||
8750 | #include <stdio.h> | |
8751 | #include <stdarg.h> | |
8752 | ||
8753 | int try_vsscanf(const char *format, ...) | |
8754 | { | |
8755 | va_list ap; | |
8756 | va_start(ap, format); | |
8757 | ||
8758 | vsscanf("17", format, ap); | |
8759 | ||
8760 | va_end(ap); | |
8761 | } | |
8762 | ||
8763 | int main() | |
8764 | { | |
8765 | int i; | |
8766 | try_vsscanf("%d", &i); | |
8767 | return i == 17 ? 0 : 1; | |
8768 | } | |
8769 | ||
8770 | EOF | |
f512f90a | 8771 | if { (eval echo configure:8772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
10f2d63a VZ |
8772 | then |
8773 | ||
8774 | cat >> confdefs.h <<\EOF | |
8775 | #define HAVE_VSSCANF 1 | |
8776 | EOF | |
8777 | ||
8778 | wx_cv_func_vsscanf=yes | |
8779 | ||
8780 | else | |
8781 | echo "configure: failed program was:" >&5 | |
8782 | cat conftest.$ac_ext >&5 | |
8783 | rm -fr conftest* | |
8784 | wx_cv_func_vsscanf=no | |
8785 | fi | |
8786 | rm -fr conftest* | |
8787 | fi | |
8788 | ||
8789 | ||
8790 | fi | |
8791 | ||
8792 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
8793 | ||
8794 | ac_ext=c | |
8795 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8796 | ac_cpp='$CPP $CPPFLAGS' | |
8797 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
8798 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
8799 | cross_compiling=$ac_cv_prog_cc_cross | |
8800 | ||
8801 | ||
8802 | if test "$USE_UNIX" = 1; then | |
8803 | ||
8804 | for ac_func in vfork | |
8805 | do | |
8806 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 8807 | echo "configure:8808: checking for $ac_func" >&5 |
10f2d63a VZ |
8808 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8809 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8810 | else | |
8811 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8812 | #line 8813 "configure" |
10f2d63a VZ |
8813 | #include "confdefs.h" |
8814 | /* System header to define __stub macros and hopefully few prototypes, | |
8815 | which can conflict with char $ac_func(); below. */ | |
8816 | #include <assert.h> | |
8817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8818 | /* We use char because int might match the return type of a gcc2 | |
8819 | builtin and then its argument prototype would still apply. */ | |
8820 | char $ac_func(); | |
8821 | ||
8822 | int main() { | |
8823 | ||
8824 | /* The GNU C library defines this for functions which it implements | |
8825 | to always fail with ENOSYS. Some functions are actually named | |
8826 | something starting with __ and the normal name is an alias. */ | |
8827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8828 | choke me | |
8829 | #else | |
8830 | $ac_func(); | |
8831 | #endif | |
8832 | ||
8833 | ; return 0; } | |
8834 | EOF | |
f512f90a | 8835 | if { (eval echo configure:8836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8836 | rm -rf conftest* |
8837 | eval "ac_cv_func_$ac_func=yes" | |
8838 | else | |
8839 | echo "configure: failed program was:" >&5 | |
8840 | cat conftest.$ac_ext >&5 | |
8841 | rm -rf conftest* | |
8842 | eval "ac_cv_func_$ac_func=no" | |
8843 | fi | |
8844 | rm -f conftest* | |
8845 | fi | |
8846 | ||
8847 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8848 | echo "$ac_t""yes" 1>&6 | |
8849 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8850 | cat >> confdefs.h <<EOF | |
8851 | #define $ac_tr_func 1 | |
8852 | EOF | |
8853 | ||
8854 | else | |
8855 | echo "$ac_t""no" 1>&6 | |
8856 | fi | |
8857 | done | |
8858 | ||
8859 | ||
8860 | POSIX4_LINK= | |
8861 | for ac_func in nanosleep | |
8862 | do | |
8863 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 8864 | echo "configure:8865: checking for $ac_func" >&5 |
10f2d63a VZ |
8865 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8867 | else | |
8868 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8869 | #line 8870 "configure" |
10f2d63a VZ |
8870 | #include "confdefs.h" |
8871 | /* System header to define __stub macros and hopefully few prototypes, | |
8872 | which can conflict with char $ac_func(); below. */ | |
8873 | #include <assert.h> | |
8874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8875 | /* We use char because int might match the return type of a gcc2 | |
8876 | builtin and then its argument prototype would still apply. */ | |
8877 | char $ac_func(); | |
8878 | ||
8879 | int main() { | |
8880 | ||
8881 | /* The GNU C library defines this for functions which it implements | |
8882 | to always fail with ENOSYS. Some functions are actually named | |
8883 | something starting with __ and the normal name is an alias. */ | |
8884 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8885 | choke me | |
8886 | #else | |
8887 | $ac_func(); | |
8888 | #endif | |
8889 | ||
8890 | ; return 0; } | |
8891 | EOF | |
f512f90a | 8892 | if { (eval echo configure:8893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8893 | rm -rf conftest* |
8894 | eval "ac_cv_func_$ac_func=yes" | |
8895 | else | |
8896 | echo "configure: failed program was:" >&5 | |
8897 | cat conftest.$ac_ext >&5 | |
8898 | rm -rf conftest* | |
8899 | eval "ac_cv_func_$ac_func=no" | |
8900 | fi | |
8901 | rm -f conftest* | |
8902 | fi | |
8903 | ||
8904 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
8905 | echo "$ac_t""yes" 1>&6 | |
8906 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
8907 | cat >> confdefs.h <<EOF | |
8908 | #define $ac_tr_func 1 | |
8909 | EOF | |
8910 | cat >> confdefs.h <<\EOF | |
8911 | #define HAVE_NANOSLEEP 1 | |
8912 | EOF | |
8913 | ||
8914 | else | |
8915 | echo "$ac_t""no" 1>&6 | |
8916 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
f512f90a | 8917 | echo "configure:8918: checking for nanosleep in -lposix4" >&5 |
10f2d63a VZ |
8918 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
8919 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
8920 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8921 | else | |
8922 | ac_save_LIBS="$LIBS" | |
8923 | LIBS="-lposix4 $LIBS" | |
8924 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8925 | #line 8926 "configure" |
10f2d63a VZ |
8926 | #include "confdefs.h" |
8927 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8928 | /* We use char because int might match the return type of a gcc2 | |
8929 | builtin and then its argument prototype would still apply. */ | |
8930 | char nanosleep(); | |
8931 | ||
8932 | int main() { | |
8933 | nanosleep() | |
8934 | ; return 0; } | |
8935 | EOF | |
f512f90a | 8936 | if { (eval echo configure:8937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8937 | rm -rf conftest* |
8938 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8939 | else | |
8940 | echo "configure: failed program was:" >&5 | |
8941 | cat conftest.$ac_ext >&5 | |
8942 | rm -rf conftest* | |
8943 | eval "ac_cv_lib_$ac_lib_var=no" | |
8944 | fi | |
8945 | rm -f conftest* | |
8946 | LIBS="$ac_save_LIBS" | |
8947 | ||
8948 | fi | |
8949 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
8950 | echo "$ac_t""yes" 1>&6 | |
8951 | ||
8952 | cat >> confdefs.h <<\EOF | |
8953 | #define HAVE_NANOSLEEP 1 | |
8954 | EOF | |
8955 | ||
8956 | POSIX4_LINK="-lposix4" | |
8957 | ||
8958 | else | |
8959 | echo "$ac_t""no" 1>&6 | |
8960 | ||
8961 | for ac_func in usleep | |
8962 | do | |
8963 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 8964 | echo "configure:8965: checking for $ac_func" >&5 |
10f2d63a VZ |
8965 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8966 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8967 | else | |
8968 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 8969 | #line 8970 "configure" |
10f2d63a VZ |
8970 | #include "confdefs.h" |
8971 | /* System header to define __stub macros and hopefully few prototypes, | |
8972 | which can conflict with char $ac_func(); below. */ | |
8973 | #include <assert.h> | |
8974 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8975 | /* We use char because int might match the return type of a gcc2 | |
8976 | builtin and then its argument prototype would still apply. */ | |
8977 | char $ac_func(); | |
8978 | ||
8979 | int main() { | |
8980 | ||
8981 | /* The GNU C library defines this for functions which it implements | |
8982 | to always fail with ENOSYS. Some functions are actually named | |
8983 | something starting with __ and the normal name is an alias. */ | |
8984 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
8985 | choke me | |
8986 | #else | |
8987 | $ac_func(); | |
8988 | #endif | |
8989 | ||
8990 | ; return 0; } | |
8991 | EOF | |
f512f90a | 8992 | if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
8993 | rm -rf conftest* |
8994 | eval "ac_cv_func_$ac_func=yes" | |
8995 | else | |
8996 | echo "configure: failed program was:" >&5 | |
8997 | cat conftest.$ac_ext >&5 | |
8998 | rm -rf conftest* | |
8999 | eval "ac_cv_func_$ac_func=no" | |
9000 | fi | |
9001 | rm -f conftest* | |
9002 | fi | |
9003 | ||
9004 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9005 | echo "$ac_t""yes" 1>&6 | |
9006 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9007 | cat >> confdefs.h <<EOF | |
9008 | #define $ac_tr_func 1 | |
9009 | EOF | |
9010 | cat >> confdefs.h <<\EOF | |
9011 | #define HAVE_USLEEP 1 | |
9012 | EOF | |
9013 | ||
9014 | else | |
9015 | echo "$ac_t""no" 1>&6 | |
9016 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
9017 | fi | |
9018 | done | |
9019 | ||
9020 | ||
9021 | fi | |
9022 | ||
9023 | ||
9024 | fi | |
9025 | done | |
9026 | ||
9027 | ||
9028 | for ac_func in uname gethostname | |
9029 | do | |
9030 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 9031 | echo "configure:9032: checking for $ac_func" >&5 |
10f2d63a VZ |
9032 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9034 | else | |
9035 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9036 | #line 9037 "configure" |
10f2d63a VZ |
9037 | #include "confdefs.h" |
9038 | /* System header to define __stub macros and hopefully few prototypes, | |
9039 | which can conflict with char $ac_func(); below. */ | |
9040 | #include <assert.h> | |
9041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9042 | /* We use char because int might match the return type of a gcc2 | |
9043 | builtin and then its argument prototype would still apply. */ | |
9044 | char $ac_func(); | |
9045 | ||
9046 | int main() { | |
9047 | ||
9048 | /* The GNU C library defines this for functions which it implements | |
9049 | to always fail with ENOSYS. Some functions are actually named | |
9050 | something starting with __ and the normal name is an alias. */ | |
9051 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9052 | choke me | |
9053 | #else | |
9054 | $ac_func(); | |
9055 | #endif | |
9056 | ||
9057 | ; return 0; } | |
9058 | EOF | |
f512f90a | 9059 | if { (eval echo configure:9060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9060 | rm -rf conftest* |
9061 | eval "ac_cv_func_$ac_func=yes" | |
9062 | else | |
9063 | echo "configure: failed program was:" >&5 | |
9064 | cat conftest.$ac_ext >&5 | |
9065 | rm -rf conftest* | |
9066 | eval "ac_cv_func_$ac_func=no" | |
9067 | fi | |
9068 | rm -f conftest* | |
9069 | fi | |
9070 | ||
9071 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9072 | echo "$ac_t""yes" 1>&6 | |
9073 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9074 | cat >> confdefs.h <<EOF | |
9075 | #define $ac_tr_func 1 | |
9076 | EOF | |
9077 | break | |
9078 | else | |
9079 | echo "$ac_t""no" 1>&6 | |
9080 | fi | |
9081 | done | |
9082 | ||
9083 | ||
9084 | for ac_func in strtok_r | |
9085 | do | |
9086 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 9087 | echo "configure:9088: checking for $ac_func" >&5 |
10f2d63a VZ |
9088 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9089 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9090 | else | |
9091 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9092 | #line 9093 "configure" |
10f2d63a VZ |
9093 | #include "confdefs.h" |
9094 | /* System header to define __stub macros and hopefully few prototypes, | |
9095 | which can conflict with char $ac_func(); below. */ | |
9096 | #include <assert.h> | |
9097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9098 | /* We use char because int might match the return type of a gcc2 | |
9099 | builtin and then its argument prototype would still apply. */ | |
9100 | char $ac_func(); | |
9101 | ||
9102 | int main() { | |
9103 | ||
9104 | /* The GNU C library defines this for functions which it implements | |
9105 | to always fail with ENOSYS. Some functions are actually named | |
9106 | something starting with __ and the normal name is an alias. */ | |
9107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9108 | choke me | |
9109 | #else | |
9110 | $ac_func(); | |
9111 | #endif | |
9112 | ||
9113 | ; return 0; } | |
9114 | EOF | |
f512f90a | 9115 | if { (eval echo configure:9116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9116 | rm -rf conftest* |
9117 | eval "ac_cv_func_$ac_func=yes" | |
9118 | else | |
9119 | echo "configure: failed program was:" >&5 | |
9120 | cat conftest.$ac_ext >&5 | |
9121 | rm -rf conftest* | |
9122 | eval "ac_cv_func_$ac_func=no" | |
9123 | fi | |
9124 | rm -f conftest* | |
9125 | fi | |
9126 | ||
9127 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9128 | echo "$ac_t""yes" 1>&6 | |
9129 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9130 | cat >> confdefs.h <<EOF | |
9131 | #define $ac_tr_func 1 | |
9132 | EOF | |
9133 | ||
9134 | else | |
9135 | echo "$ac_t""no" 1>&6 | |
9136 | fi | |
9137 | done | |
9138 | ||
9139 | ||
9140 | for ac_func in inet_addr | |
9141 | do | |
9142 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 9143 | echo "configure:9144: checking for $ac_func" >&5 |
10f2d63a VZ |
9144 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9146 | else | |
9147 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9148 | #line 9149 "configure" |
10f2d63a VZ |
9149 | #include "confdefs.h" |
9150 | /* System header to define __stub macros and hopefully few prototypes, | |
9151 | which can conflict with char $ac_func(); below. */ | |
9152 | #include <assert.h> | |
9153 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9154 | /* We use char because int might match the return type of a gcc2 | |
9155 | builtin and then its argument prototype would still apply. */ | |
9156 | char $ac_func(); | |
9157 | ||
9158 | int main() { | |
9159 | ||
9160 | /* The GNU C library defines this for functions which it implements | |
9161 | to always fail with ENOSYS. Some functions are actually named | |
9162 | something starting with __ and the normal name is an alias. */ | |
9163 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9164 | choke me | |
9165 | #else | |
9166 | $ac_func(); | |
9167 | #endif | |
9168 | ||
9169 | ; return 0; } | |
9170 | EOF | |
f512f90a | 9171 | if { (eval echo configure:9172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9172 | rm -rf conftest* |
9173 | eval "ac_cv_func_$ac_func=yes" | |
9174 | else | |
9175 | echo "configure: failed program was:" >&5 | |
9176 | cat conftest.$ac_ext >&5 | |
9177 | rm -rf conftest* | |
9178 | eval "ac_cv_func_$ac_func=no" | |
9179 | fi | |
9180 | rm -f conftest* | |
9181 | fi | |
9182 | ||
9183 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9184 | echo "$ac_t""yes" 1>&6 | |
9185 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9186 | cat >> confdefs.h <<EOF | |
9187 | #define $ac_tr_func 1 | |
9188 | EOF | |
9189 | ||
9190 | else | |
9191 | echo "$ac_t""no" 1>&6 | |
9192 | fi | |
9193 | done | |
9194 | ||
9195 | for ac_func in inet_aton | |
9196 | do | |
9197 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 9198 | echo "configure:9199: checking for $ac_func" >&5 |
10f2d63a VZ |
9199 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9200 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9201 | else | |
9202 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9203 | #line 9204 "configure" |
10f2d63a VZ |
9204 | #include "confdefs.h" |
9205 | /* System header to define __stub macros and hopefully few prototypes, | |
9206 | which can conflict with char $ac_func(); below. */ | |
9207 | #include <assert.h> | |
9208 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9209 | /* We use char because int might match the return type of a gcc2 | |
9210 | builtin and then its argument prototype would still apply. */ | |
9211 | char $ac_func(); | |
9212 | ||
9213 | int main() { | |
9214 | ||
9215 | /* The GNU C library defines this for functions which it implements | |
9216 | to always fail with ENOSYS. Some functions are actually named | |
9217 | something starting with __ and the normal name is an alias. */ | |
9218 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9219 | choke me | |
9220 | #else | |
9221 | $ac_func(); | |
9222 | #endif | |
9223 | ||
9224 | ; return 0; } | |
9225 | EOF | |
f512f90a | 9226 | if { (eval echo configure:9227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9227 | rm -rf conftest* |
9228 | eval "ac_cv_func_$ac_func=yes" | |
9229 | else | |
9230 | echo "configure: failed program was:" >&5 | |
9231 | cat conftest.$ac_ext >&5 | |
9232 | rm -rf conftest* | |
9233 | eval "ac_cv_func_$ac_func=no" | |
9234 | fi | |
9235 | rm -f conftest* | |
9236 | fi | |
9237 | ||
9238 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9239 | echo "$ac_t""yes" 1>&6 | |
9240 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9241 | cat >> confdefs.h <<EOF | |
9242 | #define $ac_tr_func 1 | |
9243 | EOF | |
9244 | ||
9245 | else | |
9246 | echo "$ac_t""no" 1>&6 | |
9247 | fi | |
9248 | done | |
9249 | ||
9250 | echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 | |
f512f90a | 9251 | echo "configure:9252: checking for inet_aton in -lresolv" >&5 |
10f2d63a VZ |
9252 | ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` |
9253 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9254 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9255 | else | |
9256 | ac_save_LIBS="$LIBS" | |
9257 | LIBS="-lresolv $LIBS" | |
9258 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9259 | #line 9260 "configure" |
10f2d63a VZ |
9260 | #include "confdefs.h" |
9261 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9262 | /* We use char because int might match the return type of a gcc2 | |
9263 | builtin and then its argument prototype would still apply. */ | |
9264 | char inet_aton(); | |
9265 | ||
9266 | int main() { | |
9267 | inet_aton() | |
9268 | ; return 0; } | |
9269 | EOF | |
f512f90a | 9270 | if { (eval echo configure:9271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9271 | rm -rf conftest* |
9272 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9273 | else | |
9274 | echo "configure: failed program was:" >&5 | |
9275 | cat conftest.$ac_ext >&5 | |
9276 | rm -rf conftest* | |
9277 | eval "ac_cv_lib_$ac_lib_var=no" | |
9278 | fi | |
9279 | rm -f conftest* | |
9280 | LIBS="$ac_save_LIBS" | |
9281 | ||
9282 | fi | |
9283 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9284 | echo "$ac_t""yes" 1>&6 | |
9285 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
9286 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
9287 | cat >> confdefs.h <<EOF | |
9288 | #define $ac_tr_lib 1 | |
9289 | EOF | |
9290 | ||
9291 | LIBS="-lresolv $LIBS" | |
9292 | ||
9293 | else | |
9294 | echo "$ac_t""no" 1>&6 | |
9295 | fi | |
9296 | ||
9297 | ||
9298 | fi | |
9299 | ||
9300 | ||
9301 | cat > confcache <<\EOF | |
9302 | # This file is a shell script that caches the results of configure | |
9303 | # tests run on this system so they can be shared between configure | |
9304 | # scripts and configure runs. It is not useful on other systems. | |
9305 | # If it contains results you don't want to keep, you may remove or edit it. | |
9306 | # | |
9307 | # By default, configure uses ./config.cache as the cache file, | |
9308 | # creating it if it does not exist already. You can give configure | |
9309 | # the --cache-file=FILE option to use a different cache file; that is | |
9310 | # what configure does when it calls configure scripts in | |
9311 | # subdirectories, so they share the cache. | |
9312 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
9313 | # config.status only pays attention to the cache file if you give it the | |
9314 | # --recheck option to rerun configure. | |
9315 | # | |
9316 | EOF | |
9317 | # The following way of writing the cache mishandles newlines in values, | |
9318 | # but we know of no workaround that is simple, portable, and efficient. | |
9319 | # So, don't put newlines in cache variables' values. | |
9320 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9321 | # and sets the high bit in the cache file unless we assign to the vars. | |
9322 | (set) 2>&1 | | |
9323 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9324 | *ac_space=\ *) | |
9325 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
9326 | # turns \\\\ into \\, and sed turns \\ into \). | |
9327 | sed -n \ | |
9328 | -e "s/'/'\\\\''/g" \ | |
9329 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
9330 | ;; | |
9331 | *) | |
9332 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9333 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
9334 | ;; | |
9335 | esac >> confcache | |
9336 | if cmp -s $cache_file confcache; then | |
9337 | : | |
9338 | else | |
9339 | if test -w $cache_file; then | |
9340 | echo "updating cache $cache_file" | |
9341 | cat confcache > $cache_file | |
9342 | else | |
9343 | echo "not updating unwritable cache $cache_file" | |
9344 | fi | |
9345 | fi | |
9346 | rm -f confcache | |
9347 | ||
9348 | ||
9349 | ||
9350 | if test "$USE_UNIX" = 1; then | |
9351 | ||
9352 | ||
9353 | THREADS_LINK="" | |
9354 | THREADS_OBJ="" | |
9355 | ||
9356 | if test "$wxUSE_THREADS" = "yes" ; then | |
9357 | if test "$wxUSE_WINE" = 1 ; then | |
9358 | echo "configure: warning: Threads are not supported under WINE" 1>&2 | |
9359 | wxUSE_THREADS="no" | |
9360 | fi | |
9361 | fi | |
9362 | ||
9363 | if test "$wxUSE_THREADS" = "yes" ; then | |
9364 | ||
9365 | echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 | |
f512f90a | 9366 | echo "configure:9367: checking for pthread_create in -lpthread" >&5 |
10f2d63a VZ |
9367 | ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'` |
9368 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9369 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9370 | else | |
9371 | ac_save_LIBS="$LIBS" | |
9372 | LIBS="-lpthread $LIBS" | |
9373 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9374 | #line 9375 "configure" |
10f2d63a VZ |
9375 | #include "confdefs.h" |
9376 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9377 | /* We use char because int might match the return type of a gcc2 | |
9378 | builtin and then its argument prototype would still apply. */ | |
9379 | char pthread_create(); | |
9380 | ||
9381 | int main() { | |
9382 | pthread_create() | |
9383 | ; return 0; } | |
9384 | EOF | |
f512f90a | 9385 | if { (eval echo configure:9386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9386 | rm -rf conftest* |
9387 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9388 | else | |
9389 | echo "configure: failed program was:" >&5 | |
9390 | cat conftest.$ac_ext >&5 | |
9391 | rm -rf conftest* | |
9392 | eval "ac_cv_lib_$ac_lib_var=no" | |
9393 | fi | |
9394 | rm -f conftest* | |
9395 | LIBS="$ac_save_LIBS" | |
9396 | ||
9397 | fi | |
9398 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9399 | echo "$ac_t""yes" 1>&6 | |
9400 | ||
9401 | THREADS_OBJ="threadpsx.lo" | |
9402 | THREADS_LINK="pthread" | |
9403 | ||
9404 | else | |
9405 | echo "$ac_t""no" 1>&6 | |
9406 | ||
9407 | echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 | |
f512f90a | 9408 | echo "configure:9409: checking for pthread_create in -lc_r" >&5 |
10f2d63a VZ |
9409 | ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'` |
9410 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9411 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9412 | else | |
9413 | ac_save_LIBS="$LIBS" | |
9414 | LIBS="-lc_r $LIBS" | |
9415 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9416 | #line 9417 "configure" |
10f2d63a VZ |
9417 | #include "confdefs.h" |
9418 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9419 | /* We use char because int might match the return type of a gcc2 | |
9420 | builtin and then its argument prototype would still apply. */ | |
9421 | char pthread_create(); | |
9422 | ||
9423 | int main() { | |
9424 | pthread_create() | |
9425 | ; return 0; } | |
9426 | EOF | |
f512f90a | 9427 | if { (eval echo configure:9428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9428 | rm -rf conftest* |
9429 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9430 | else | |
9431 | echo "configure: failed program was:" >&5 | |
9432 | cat conftest.$ac_ext >&5 | |
9433 | rm -rf conftest* | |
9434 | eval "ac_cv_lib_$ac_lib_var=no" | |
9435 | fi | |
9436 | rm -f conftest* | |
9437 | LIBS="$ac_save_LIBS" | |
9438 | ||
9439 | fi | |
9440 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9441 | echo "$ac_t""yes" 1>&6 | |
9442 | ||
9443 | THREADS_OBJ="threadpsx.lo" | |
9444 | THREADS_LINK="c_r" | |
9445 | ||
9446 | else | |
9447 | echo "$ac_t""no" 1>&6 | |
9448 | ||
9449 | ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'` | |
9450 | echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6 | |
f512f90a | 9451 | echo "configure:9452: checking for sys/prctl.h" >&5 |
10f2d63a VZ |
9452 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9453 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9454 | else | |
9455 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9456 | #line 9457 "configure" |
10f2d63a VZ |
9457 | #include "confdefs.h" |
9458 | #include <sys/prctl.h> | |
9459 | EOF | |
9460 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 9461 | { (eval echo configure:9462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9462 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9463 | if test -z "$ac_err"; then | |
9464 | rm -rf conftest* | |
9465 | eval "ac_cv_header_$ac_safe=yes" | |
9466 | else | |
9467 | echo "$ac_err" >&5 | |
9468 | echo "configure: failed program was:" >&5 | |
9469 | cat conftest.$ac_ext >&5 | |
9470 | rm -rf conftest* | |
9471 | eval "ac_cv_header_$ac_safe=no" | |
9472 | fi | |
9473 | rm -f conftest* | |
9474 | fi | |
9475 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9476 | echo "$ac_t""yes" 1>&6 | |
9477 | ||
9478 | THREADS_OBJ="threadsgi.lo" | |
9479 | ||
9480 | else | |
9481 | echo "$ac_t""no" 1>&6 | |
9482 | fi | |
9483 | ||
9484 | ||
9485 | fi | |
9486 | ||
9487 | ||
9488 | fi | |
9489 | ||
9490 | ||
9491 | if test -z "$THREADS_OBJ" ; then | |
9492 | wxUSE_THREADS=no | |
9493 | echo "configure: warning: No thread support on this system" 1>&2 | |
9494 | fi | |
9495 | fi | |
9496 | ||
9497 | if test "$wxUSE_THREADS" = "yes" ; then | |
9498 | ||
9499 | for ac_hdr in sched.h | |
9500 | do | |
9501 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9502 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 9503 | echo "configure:9504: checking for $ac_hdr" >&5 |
10f2d63a VZ |
9504 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9505 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9506 | else | |
9507 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9508 | #line 9509 "configure" |
10f2d63a VZ |
9509 | #include "confdefs.h" |
9510 | #include <$ac_hdr> | |
9511 | EOF | |
9512 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 9513 | { (eval echo configure:9514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
9514 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9515 | if test -z "$ac_err"; then | |
9516 | rm -rf conftest* | |
9517 | eval "ac_cv_header_$ac_safe=yes" | |
9518 | else | |
9519 | echo "$ac_err" >&5 | |
9520 | echo "configure: failed program was:" >&5 | |
9521 | cat conftest.$ac_ext >&5 | |
9522 | rm -rf conftest* | |
9523 | eval "ac_cv_header_$ac_safe=no" | |
9524 | fi | |
9525 | rm -f conftest* | |
9526 | fi | |
9527 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9528 | echo "$ac_t""yes" 1>&6 | |
9529 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9530 | cat >> confdefs.h <<EOF | |
9531 | #define $ac_tr_hdr 1 | |
9532 | EOF | |
9533 | ||
9534 | else | |
9535 | echo "$ac_t""no" 1>&6 | |
9536 | fi | |
9537 | done | |
9538 | ||
9539 | ||
9540 | echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6 | |
f512f90a | 9541 | echo "configure:9542: checking for sched_yield in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
9542 | ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'` |
9543 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9544 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9545 | else | |
9546 | ac_save_LIBS="$LIBS" | |
9547 | LIBS="-l$THREADS_LINK $LIBS" | |
9548 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9549 | #line 9550 "configure" |
10f2d63a VZ |
9550 | #include "confdefs.h" |
9551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9552 | /* We use char because int might match the return type of a gcc2 | |
9553 | builtin and then its argument prototype would still apply. */ | |
9554 | char sched_yield(); | |
9555 | ||
9556 | int main() { | |
9557 | sched_yield() | |
9558 | ; return 0; } | |
9559 | EOF | |
f512f90a | 9560 | if { (eval echo configure:9561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9561 | rm -rf conftest* |
9562 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9563 | else | |
9564 | echo "configure: failed program was:" >&5 | |
9565 | cat conftest.$ac_ext >&5 | |
9566 | rm -rf conftest* | |
9567 | eval "ac_cv_lib_$ac_lib_var=no" | |
9568 | fi | |
9569 | rm -f conftest* | |
9570 | LIBS="$ac_save_LIBS" | |
9571 | ||
9572 | fi | |
9573 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9574 | echo "$ac_t""yes" 1>&6 | |
9575 | cat >> confdefs.h <<\EOF | |
9576 | #define HAVE_SCHED_YIELD 1 | |
9577 | EOF | |
9578 | ||
9579 | else | |
9580 | echo "$ac_t""no" 1>&6 | |
9581 | echo $ac_n "checking for sched_yield in -l"posix4"""... $ac_c" 1>&6 | |
f512f90a | 9582 | echo "configure:9583: checking for sched_yield in -l"posix4"" >&5 |
10f2d63a VZ |
9583 | ac_lib_var=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'` |
9584 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9585 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9586 | else | |
9587 | ac_save_LIBS="$LIBS" | |
9588 | LIBS="-l"posix4" $LIBS" | |
9589 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9590 | #line 9591 "configure" |
10f2d63a VZ |
9591 | #include "confdefs.h" |
9592 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9593 | /* We use char because int might match the return type of a gcc2 | |
9594 | builtin and then its argument prototype would still apply. */ | |
9595 | char sched_yield(); | |
9596 | ||
9597 | int main() { | |
9598 | sched_yield() | |
9599 | ; return 0; } | |
9600 | EOF | |
f512f90a | 9601 | if { (eval echo configure:9602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9602 | rm -rf conftest* |
9603 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9604 | else | |
9605 | echo "configure: failed program was:" >&5 | |
9606 | cat conftest.$ac_ext >&5 | |
9607 | rm -rf conftest* | |
9608 | eval "ac_cv_lib_$ac_lib_var=no" | |
9609 | fi | |
9610 | rm -f conftest* | |
9611 | LIBS="$ac_save_LIBS" | |
9612 | ||
9613 | fi | |
9614 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9615 | echo "$ac_t""yes" 1>&6 | |
9616 | cat >> confdefs.h <<\EOF | |
9617 | #define HAVE_SCHED_YIELD 1 | |
9618 | EOF | |
9619 | POSIX4_LINK="-lposix4" | |
9620 | else | |
9621 | echo "$ac_t""no" 1>&6 | |
9622 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
9623 | ||
9624 | fi | |
9625 | ||
9626 | ||
9627 | fi | |
9628 | ||
9629 | ||
9630 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6 | |
f512f90a | 9631 | echo "configure:9632: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
9632 | ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
9633 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9635 | else | |
9636 | ac_save_LIBS="$LIBS" | |
9637 | LIBS="-l$THREADS_LINK $LIBS" | |
9638 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9639 | #line 9640 "configure" |
10f2d63a VZ |
9640 | #include "confdefs.h" |
9641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9642 | /* We use char because int might match the return type of a gcc2 | |
9643 | builtin and then its argument prototype would still apply. */ | |
9644 | char pthread_attr_getschedpolicy(); | |
9645 | ||
9646 | int main() { | |
9647 | pthread_attr_getschedpolicy() | |
9648 | ; return 0; } | |
9649 | EOF | |
f512f90a | 9650 | if { (eval echo configure:9651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9651 | rm -rf conftest* |
9652 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9653 | else | |
9654 | echo "configure: failed program was:" >&5 | |
9655 | cat conftest.$ac_ext >&5 | |
9656 | rm -rf conftest* | |
9657 | eval "ac_cv_lib_$ac_lib_var=no" | |
9658 | fi | |
9659 | rm -f conftest* | |
9660 | LIBS="$ac_save_LIBS" | |
9661 | ||
9662 | fi | |
9663 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9664 | echo "$ac_t""yes" 1>&6 | |
9665 | cat >> confdefs.h <<\EOF | |
9666 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
9667 | EOF | |
9668 | ||
9669 | else | |
9670 | echo "$ac_t""no" 1>&6 | |
9671 | echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4"""... $ac_c" 1>&6 | |
f512f90a | 9672 | echo "configure:9673: checking for pthread_attr_getschedpolicy in -l"posix4"" >&5 |
10f2d63a VZ |
9673 | ac_lib_var=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'` |
9674 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9675 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9676 | else | |
9677 | ac_save_LIBS="$LIBS" | |
9678 | LIBS="-l"posix4" $LIBS" | |
9679 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9680 | #line 9681 "configure" |
10f2d63a VZ |
9681 | #include "confdefs.h" |
9682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9683 | /* We use char because int might match the return type of a gcc2 | |
9684 | builtin and then its argument prototype would still apply. */ | |
9685 | char pthread_attr_getschedpolicy(); | |
9686 | ||
9687 | int main() { | |
9688 | pthread_attr_getschedpolicy() | |
9689 | ; return 0; } | |
9690 | EOF | |
f512f90a | 9691 | if { (eval echo configure:9692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9692 | rm -rf conftest* |
9693 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9694 | else | |
9695 | echo "configure: failed program was:" >&5 | |
9696 | cat conftest.$ac_ext >&5 | |
9697 | rm -rf conftest* | |
9698 | eval "ac_cv_lib_$ac_lib_var=no" | |
9699 | fi | |
9700 | rm -f conftest* | |
9701 | LIBS="$ac_save_LIBS" | |
9702 | ||
9703 | fi | |
9704 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9705 | echo "$ac_t""yes" 1>&6 | |
9706 | cat >> confdefs.h <<\EOF | |
9707 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
9708 | EOF | |
9709 | POSIX4_LINK="-lposix4" | |
9710 | else | |
9711 | echo "$ac_t""no" 1>&6 | |
9712 | echo "configure: warning: Setting thread priority will not work" 1>&2 | |
9713 | ||
9714 | fi | |
9715 | ||
9716 | ||
9717 | fi | |
9718 | ||
9719 | ||
9720 | echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6 | |
f512f90a | 9721 | echo "configure:9722: checking for pthread_cancel in -l$THREADS_LINK" >&5 |
10f2d63a VZ |
9722 | ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'` |
9723 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9724 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9725 | else | |
9726 | ac_save_LIBS="$LIBS" | |
9727 | LIBS="-l$THREADS_LINK $LIBS" | |
9728 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9729 | #line 9730 "configure" |
10f2d63a VZ |
9730 | #include "confdefs.h" |
9731 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9732 | /* We use char because int might match the return type of a gcc2 | |
9733 | builtin and then its argument prototype would still apply. */ | |
9734 | char pthread_cancel(); | |
9735 | ||
9736 | int main() { | |
9737 | pthread_cancel() | |
9738 | ; return 0; } | |
9739 | EOF | |
f512f90a | 9740 | if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9741 | rm -rf conftest* |
9742 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9743 | else | |
9744 | echo "configure: failed program was:" >&5 | |
9745 | cat conftest.$ac_ext >&5 | |
9746 | rm -rf conftest* | |
9747 | eval "ac_cv_lib_$ac_lib_var=no" | |
9748 | fi | |
9749 | rm -f conftest* | |
9750 | LIBS="$ac_save_LIBS" | |
9751 | ||
9752 | fi | |
9753 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9754 | echo "$ac_t""yes" 1>&6 | |
9755 | cat >> confdefs.h <<\EOF | |
9756 | #define HAVE_PTHREAD_CANCEL 1 | |
9757 | EOF | |
9758 | ||
9759 | else | |
9760 | echo "$ac_t""no" 1>&6 | |
9761 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
9762 | fi | |
9763 | ||
9764 | ||
9765 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 | |
f512f90a | 9766 | echo "configure:9767: checking for pthread_cleanup_push/pop" >&5 |
10f2d63a VZ |
9767 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
9768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9769 | else | |
9770 | ||
9771 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9772 | #line 9773 "configure" |
10f2d63a VZ |
9773 | #include "confdefs.h" |
9774 | #include <pthread.h> | |
9775 | int main() { | |
9776 | ||
9777 | pthread_cleanup_push(NULL, NULL); | |
9778 | pthread_cleanup_pop(0); | |
9779 | ||
9780 | ; return 0; } | |
9781 | EOF | |
f512f90a | 9782 | if { (eval echo configure:9783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
9783 | rm -rf conftest* |
9784 | ||
9785 | wx_cv_func_pthread_cleanup_push=yes | |
9786 | cat >> confdefs.h <<\EOF | |
9787 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 | |
9788 | EOF | |
9789 | ||
9790 | ||
9791 | else | |
9792 | echo "configure: failed program was:" >&5 | |
9793 | cat conftest.$ac_ext >&5 | |
9794 | rm -rf conftest* | |
9795 | ||
9796 | wx_cv_func_pthread_cleanup_push=no | |
9797 | ||
9798 | fi | |
9799 | rm -f conftest* | |
9800 | ||
9801 | fi | |
9802 | ||
9803 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
9804 | ||
9805 | THREADS_LINK="-l$THREADS_LINK" | |
9806 | fi | |
9807 | ||
9808 | fi | |
9809 | ||
9810 | if test "$wxUSE_THREADS" = "yes"; then | |
9811 | cat >> confdefs.h <<\EOF | |
9812 | #define wxUSE_THREADS 1 | |
9813 | EOF | |
9814 | ||
9815 | ||
9816 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
9817 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
9818 | ||
9819 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
9820 | else | |
9821 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
9822 | unset ac_cv_func_strtok_r | |
9823 | ||
9824 | ac_ext=C | |
9825 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9826 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9827 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9828 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9829 | cross_compiling=$ac_cv_prog_cxx_cross | |
9830 | ||
9831 | for ac_func in strtok_r | |
9832 | do | |
9833 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 9834 | echo "configure:9835: checking for $ac_func" >&5 |
10f2d63a VZ |
9835 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9836 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9837 | else | |
9838 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 9839 | #line 9840 "configure" |
10f2d63a VZ |
9840 | #include "confdefs.h" |
9841 | /* System header to define __stub macros and hopefully few prototypes, | |
9842 | which can conflict with char $ac_func(); below. */ | |
9843 | #include <assert.h> | |
9844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9845 | #ifdef __cplusplus | |
9846 | extern "C" | |
9847 | #endif | |
9848 | /* We use char because int might match the return type of a gcc2 | |
9849 | builtin and then its argument prototype would still apply. */ | |
9850 | char $ac_func(); | |
9851 | ||
9852 | int main() { | |
9853 | ||
9854 | /* The GNU C library defines this for functions which it implements | |
9855 | to always fail with ENOSYS. Some functions are actually named | |
9856 | something starting with __ and the normal name is an alias. */ | |
9857 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9858 | choke me | |
9859 | #else | |
9860 | $ac_func(); | |
9861 | #endif | |
9862 | ||
9863 | ; return 0; } | |
9864 | EOF | |
f512f90a | 9865 | if { (eval echo configure:9866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
9866 | rm -rf conftest* |
9867 | eval "ac_cv_func_$ac_func=yes" | |
9868 | else | |
9869 | echo "configure: failed program was:" >&5 | |
9870 | cat conftest.$ac_ext >&5 | |
9871 | rm -rf conftest* | |
9872 | eval "ac_cv_func_$ac_func=no" | |
9873 | fi | |
9874 | rm -f conftest* | |
9875 | fi | |
9876 | ||
9877 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
9878 | echo "$ac_t""yes" 1>&6 | |
9879 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9880 | cat >> confdefs.h <<EOF | |
9881 | #define $ac_tr_func 1 | |
9882 | EOF | |
9883 | ||
9884 | else | |
9885 | echo "$ac_t""no" 1>&6 | |
9886 | fi | |
9887 | done | |
9888 | ||
9889 | ac_ext=c | |
9890 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9891 | ac_cpp='$CPP $CPPFLAGS' | |
9892 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9893 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9894 | cross_compiling=$ac_cv_prog_cc_cross | |
9895 | ||
9896 | ||
9897 | if test "$ac_cv_func_strtok_r" != "yes"; then | |
9898 | ac_cv_func_strtok_r=yes | |
9899 | CFLAGS="${CFLAGS} -D_REENTRANT" | |
9900 | CXXFLAGS="${CXXFLAGS} -D_REENTRANT" | |
9901 | fi | |
9902 | fi | |
9903 | fi | |
9904 | ||
9905 | if test "$WXGTK12" = 1 ; then | |
9906 | cat >> confdefs.h <<EOF | |
9907 | #define __WXGTK12__ $WXGTK12 | |
9908 | EOF | |
9909 | ||
9910 | fi | |
9911 | ||
9912 | if test "$WXWINE" = 1 ; then | |
9913 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" | |
9914 | fi | |
9915 | ||
9916 | if test "$wxUSE_CYGWIN" = 1 ; then | |
9917 | TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__" | |
9918 | fi | |
9919 | ||
9920 | WXDEBUG= | |
9921 | ||
9922 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
9923 | WXDEBUG="-g" | |
9924 | wxUSE_OPTIMISE=no | |
9925 | fi | |
9926 | ||
9927 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
9928 | wxUSE_DEBUG_INFO=yes | |
9929 | WXDEBUG="-ggdb" | |
9930 | fi | |
9931 | ||
9932 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
9933 | cat >> confdefs.h <<\EOF | |
9934 | #define WXDEBUG 1 | |
9935 | EOF | |
9936 | ||
9937 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
9938 | else | |
9939 | if test "$wxUSE_GTK" = 1 ; then | |
9940 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
9941 | fi | |
9942 | fi | |
9943 | ||
9944 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
9945 | cat >> confdefs.h <<\EOF | |
9946 | #define wxUSE_MEMORY_TRACING 1 | |
9947 | EOF | |
9948 | ||
9949 | cat >> confdefs.h <<\EOF | |
9950 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
9951 | EOF | |
9952 | ||
9953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
9954 | fi | |
9955 | ||
9956 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
9957 | DMALLOC_LINK="-ldmalloc" | |
9958 | fi | |
9959 | ||
9960 | PROFILE= | |
9961 | if test "$wxUSE_PROFILE" = "yes" ; then | |
9962 | PROFILE="-pg" | |
9963 | fi | |
9964 | ||
9965 | DEP_INFO_FLAGS= | |
9966 | if test "$GCC" = yes ; then | |
9967 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
9968 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti" | |
9969 | fi | |
9970 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
9971 | WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-exceptions" | |
9972 | fi | |
9973 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
9974 | CFLAGS="${CFLAGS} -fpermissive" | |
9975 | CXXFLAGS="${CXXFLAGS} -fpermissive" | |
9976 | fi | |
9977 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
9978 | DEP_INFO_FLAGS="-MMD" | |
9979 | fi | |
9980 | fi | |
9981 | ||
9982 | ||
9983 | CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" ` | |
9984 | CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" ` | |
9985 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
9986 | OPTIMISE= | |
9987 | else | |
9988 | if test "$GCC" = yes ; then | |
9989 | OPTIMISE="-O2" | |
9990 | case "${host}" in | |
9991 | i586-*-*|i686-*-* ) | |
9992 | OPTIMISE="${OPTIMISE} " | |
9993 | ;; | |
9994 | esac | |
9995 | else | |
9996 | OPTIMISE="-O" | |
9997 | fi | |
9998 | fi | |
9999 | ||
10000 | ||
10001 | ZLIB_INCLUDE= | |
10002 | if test "$wxUSE_ZLIB" = "yes" ; then | |
10003 | cat >> confdefs.h <<\EOF | |
10004 | #define wxUSE_ZLIB 1 | |
10005 | EOF | |
10006 | ||
10007 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
10008 | fi | |
10009 | ||
10010 | PNG_INCLUDE= | |
10011 | if test "$wxUSE_LIBPNG" = "yes" ; then | |
10012 | cat >> confdefs.h <<\EOF | |
10013 | #define wxUSE_LIBPNG 1 | |
10014 | EOF | |
10015 | ||
10016 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
10017 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
10018 | fi | |
10019 | ||
10020 | JPEG_INCLUDE= | |
10021 | if test "$wxUSE_LIBJPEG" = "yes" ; then | |
10022 | cat >> confdefs.h <<\EOF | |
10023 | #define wxUSE_LIBJPEG 1 | |
10024 | EOF | |
10025 | ||
10026 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
10027 | fi | |
10028 | ||
10029 | if test "$wxUSE_OPENGL" = "yes"; then | |
10030 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` | |
10031 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
f512f90a | 10032 | echo "configure:10033: checking for GL/gl.h" >&5 |
10f2d63a VZ |
10033 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10034 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10035 | else | |
10036 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10037 | #line 10038 "configure" |
10f2d63a VZ |
10038 | #include "confdefs.h" |
10039 | #include <GL/gl.h> | |
10040 | EOF | |
10041 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 10042 | { (eval echo configure:10043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10043 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10044 | if test -z "$ac_err"; then | |
10045 | rm -rf conftest* | |
10046 | eval "ac_cv_header_$ac_safe=yes" | |
10047 | else | |
10048 | echo "$ac_err" >&5 | |
10049 | echo "configure: failed program was:" >&5 | |
10050 | cat conftest.$ac_ext >&5 | |
10051 | rm -rf conftest* | |
10052 | eval "ac_cv_header_$ac_safe=no" | |
10053 | fi | |
10054 | rm -f conftest* | |
10055 | fi | |
10056 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10057 | echo "$ac_t""yes" 1>&6 | |
10058 | ||
10059 | echo $ac_n "checking for glInitNames in -lGL""... $ac_c" 1>&6 | |
f512f90a | 10060 | echo "configure:10061: checking for glInitNames in -lGL" >&5 |
10f2d63a VZ |
10061 | ac_lib_var=`echo GL'_'glInitNames | sed 'y%./+-%__p_%'` |
10062 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10064 | else | |
10065 | ac_save_LIBS="$LIBS" | |
10066 | LIBS="-lGL wxUSE_OPENGL=0 $LIBS" | |
10067 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10068 | #line 10069 "configure" |
10f2d63a VZ |
10069 | #include "confdefs.h" |
10070 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10071 | /* We use char because int might match the return type of a gcc2 | |
10072 | builtin and then its argument prototype would still apply. */ | |
10073 | char glInitNames(); | |
10074 | ||
10075 | int main() { | |
10076 | glInitNames() | |
10077 | ; return 0; } | |
10078 | EOF | |
f512f90a | 10079 | if { (eval echo configure:10080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10080 | rm -rf conftest* |
10081 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10082 | else | |
10083 | echo "configure: failed program was:" >&5 | |
10084 | cat conftest.$ac_ext >&5 | |
10085 | rm -rf conftest* | |
10086 | eval "ac_cv_lib_$ac_lib_var=no" | |
10087 | fi | |
10088 | rm -f conftest* | |
10089 | LIBS="$ac_save_LIBS" | |
10090 | ||
10091 | fi | |
10092 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10093 | echo "$ac_t""yes" 1>&6 | |
10094 | ||
10095 | OPENGL_LINK="-lGL" | |
10096 | cat >> confdefs.h <<\EOF | |
10097 | #define wxUSE_OPENGL 1 | |
10098 | EOF | |
10099 | ||
10100 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10101 | ||
10102 | else | |
10103 | echo "$ac_t""no" 1>&6 | |
10104 | ||
10105 | echo $ac_n "checking for glInitNames in -lMesaGL""... $ac_c" 1>&6 | |
f512f90a | 10106 | echo "configure:10107: checking for glInitNames in -lMesaGL" >&5 |
10f2d63a VZ |
10107 | ac_lib_var=`echo MesaGL'_'glInitNames | sed 'y%./+-%__p_%'` |
10108 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10109 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10110 | else | |
10111 | ac_save_LIBS="$LIBS" | |
10112 | LIBS="-lMesaGL $LIBS" | |
10113 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10114 | #line 10115 "configure" |
10f2d63a VZ |
10115 | #include "confdefs.h" |
10116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10117 | /* We use char because int might match the return type of a gcc2 | |
10118 | builtin and then its argument prototype would still apply. */ | |
10119 | char glInitNames(); | |
10120 | ||
10121 | int main() { | |
10122 | glInitNames() | |
10123 | ; return 0; } | |
10124 | EOF | |
f512f90a | 10125 | if { (eval echo configure:10126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10126 | rm -rf conftest* |
10127 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10128 | else | |
10129 | echo "configure: failed program was:" >&5 | |
10130 | cat conftest.$ac_ext >&5 | |
10131 | rm -rf conftest* | |
10132 | eval "ac_cv_lib_$ac_lib_var=no" | |
10133 | fi | |
10134 | rm -f conftest* | |
10135 | LIBS="$ac_save_LIBS" | |
10136 | ||
10137 | fi | |
10138 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10139 | echo "$ac_t""yes" 1>&6 | |
10140 | ||
10141 | OPENGL_LINK="-lMesaGL" | |
10142 | cat >> confdefs.h <<\EOF | |
10143 | #define wxUSE_OPENGL 1 | |
10144 | EOF | |
10145 | ||
10146 | UTILS_SUBDIRS="$UTILS_SUBDIRS glcanvas/src" | |
10147 | ||
10148 | else | |
10149 | echo "$ac_t""no" 1>&6 | |
10150 | wxUSE_OPENGL=0 | |
10151 | fi | |
10152 | ||
10153 | ||
10154 | fi | |
10155 | ||
10156 | ||
10157 | else | |
10158 | echo "$ac_t""no" 1>&6 | |
10159 | wxUSE_OPENGL=0 | |
10160 | fi | |
10161 | ||
10162 | fi | |
10163 | ||
10164 | ||
10165 | if test "$wxUSE_GUI" = "yes"; then | |
10166 | cat >> confdefs.h <<\EOF | |
10167 | #define wxUSE_GUI 1 | |
10168 | EOF | |
10169 | ||
10170 | ||
10171 | else | |
10172 | cat >> confdefs.h <<\EOF | |
10173 | #define wxUSE_NOGUI 1 | |
10174 | EOF | |
10175 | ||
10176 | fi | |
10177 | ||
10178 | ||
10179 | if test "$wxUSE_UNIX" = "yes"; then | |
10180 | cat >> confdefs.h <<\EOF | |
10181 | #define wxUSE_UNIX 1 | |
10182 | EOF | |
10183 | ||
10184 | fi | |
10185 | ||
10186 | ||
10187 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
10188 | cat >> confdefs.h <<\EOF | |
10189 | #define wxUSE_APPLE_IEEE 1 | |
10190 | EOF | |
10191 | ||
10192 | fi | |
10193 | ||
10194 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
10195 | cat >> confdefs.h <<\EOF | |
10196 | #define wxUSE_TIMEDATE 1 | |
10197 | EOF | |
10198 | ||
10199 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
10200 | fi | |
10201 | ||
10202 | if test "$wxUSE_WAVE" = "yes"; then | |
10203 | cat >> confdefs.h <<\EOF | |
10204 | #define wxUSE_WAVE 1 | |
10205 | EOF | |
10206 | ||
10207 | fi | |
10208 | ||
10209 | if test "$wxUSE_FILE" = "yes"; then | |
10210 | cat >> confdefs.h <<\EOF | |
10211 | #define wxUSE_FILE 1 | |
10212 | EOF | |
10213 | ||
10214 | fi | |
10215 | ||
10216 | if test "$wxUSE_FS_INET" = "yes"; then | |
10217 | cat >> confdefs.h <<\EOF | |
10218 | #define wxUSE_FS_INET 1 | |
10219 | EOF | |
10220 | ||
10221 | fi | |
10222 | ||
10223 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
10224 | cat >> confdefs.h <<\EOF | |
10225 | #define wxUSE_FS_ZIP 1 | |
10226 | EOF | |
10227 | ||
10228 | fi | |
10229 | ||
10230 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
10231 | cat >> confdefs.h <<\EOF | |
10232 | #define wxUSE_ZIPSTREAM 1 | |
10233 | EOF | |
10234 | ||
10235 | fi | |
10236 | ||
10237 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
10238 | cat >> confdefs.h <<\EOF | |
10239 | #define wxUSE_BUSYINFO 1 | |
10240 | EOF | |
10241 | ||
10242 | fi | |
10243 | ||
10244 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
10245 | cat >> confdefs.h <<\EOF | |
10246 | #define wxUSE_STD_IOSTREAM 1 | |
10247 | EOF | |
10248 | ||
10249 | fi | |
10250 | ||
10251 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
10252 | if test "$wxUSE_FILE" != "yes"; then | |
10253 | echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2 | |
10254 | else | |
10255 | cat >> confdefs.h <<\EOF | |
10256 | #define wxUSE_TEXTFILE 1 | |
10257 | EOF | |
10258 | ||
10259 | fi | |
10260 | fi | |
10261 | ||
10262 | if test "$wxUSE_CONFIG" = "yes" ; then | |
10263 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
10264 | echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2 | |
10265 | else | |
10266 | cat >> confdefs.h <<\EOF | |
10267 | #define wxUSE_CONFIG 1 | |
10268 | EOF | |
10269 | ||
10270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
10271 | fi | |
10272 | fi | |
10273 | ||
10274 | if test "$wxUSE_INTL" = "yes" ; then | |
10275 | if test "$wxUSE_FILE" != "yes"; then | |
10276 | echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2 | |
10277 | else | |
10278 | cat >> confdefs.h <<\EOF | |
10279 | #define wxUSE_INTL 1 | |
10280 | EOF | |
10281 | ||
10282 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
10283 | fi | |
10284 | fi | |
10285 | ||
10286 | if test "$wxUSE_LOG" = "yes"; then | |
10287 | cat >> confdefs.h <<\EOF | |
10288 | #define wxUSE_LOG 1 | |
10289 | EOF | |
10290 | ||
10291 | fi | |
10292 | ||
10293 | if test "$wxUSE_LONGLONG" = "yes"; then | |
10294 | cat >> confdefs.h <<\EOF | |
10295 | #define wxUSE_LONGLONG 1 | |
10296 | EOF | |
10297 | ||
10298 | fi | |
10299 | ||
10300 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
10301 | cat >> confdefs.h <<\EOF | |
10302 | #define wxUSE_SOCKETS 1 | |
10303 | EOF | |
10304 | ||
10305 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wxsocket" | |
10306 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol" | |
10307 | fi | |
10308 | ||
10309 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
10310 | cat >> confdefs.h <<\EOF | |
10311 | #define wxUSE_DIALUP_MANAGER 1 | |
10312 | EOF | |
10313 | ||
10314 | fi | |
10315 | ||
10316 | if test "$wxUSE_STREAMS" = "yes" ; then | |
10317 | cat >> confdefs.h <<\EOF | |
10318 | #define wxUSE_STREAMS 1 | |
10319 | EOF | |
10320 | ||
10321 | fi | |
10322 | ||
10323 | if test "$wxUSE_SERIAL" = "yes" ; then | |
10324 | cat >> confdefs.h <<\EOF | |
10325 | #define wxUSE_SERIAL 1 | |
10326 | EOF | |
10327 | ||
10328 | fi | |
10329 | ||
10330 | ||
10331 | if test "$wxUSE_SOCKETS" = "yes"; then | |
10332 | ||
10333 | ac_ext=C | |
10334 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10335 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10336 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10337 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10338 | cross_compiling=$ac_cv_prog_cxx_cross | |
10339 | ||
10340 | echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6 | |
f512f90a | 10341 | echo "configure:10342: checking the type of the third argument of getsockname" >&5 |
10f2d63a | 10342 | cat > conftest.$ac_ext <<EOF |
f512f90a | 10343 | #line 10344 "configure" |
10f2d63a VZ |
10344 | #include "confdefs.h" |
10345 | #include <sys/socket.h> | |
10346 | int main() { | |
10347 | socklen_t len; getsockname(0, 0, &len); | |
10348 | ; return 0; } | |
10349 | EOF | |
f512f90a | 10350 | if { (eval echo configure:10351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10351 | rm -rf conftest* |
10352 | cat >> confdefs.h <<\EOF | |
10353 | #define SOCKLEN_T socklen_t | |
10354 | EOF | |
10355 | echo "$ac_t""socklen_t" 1>&6 | |
10356 | else | |
10357 | echo "configure: failed program was:" >&5 | |
10358 | cat conftest.$ac_ext >&5 | |
10359 | rm -rf conftest* | |
10360 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10361 | #line 10362 "configure" |
10f2d63a VZ |
10362 | #include "confdefs.h" |
10363 | #include <sys/socket.h> | |
10364 | int main() { | |
10365 | size_t len; getsockname(0, 0, &len); | |
10366 | ; return 0; } | |
10367 | EOF | |
f512f90a | 10368 | if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10369 | rm -rf conftest* |
10370 | cat >> confdefs.h <<\EOF | |
10371 | #define SOCKLEN_T size_t | |
10372 | EOF | |
10373 | echo "$ac_t""size_t" 1>&6 | |
10374 | else | |
10375 | echo "configure: failed program was:" >&5 | |
10376 | cat conftest.$ac_ext >&5 | |
10377 | rm -rf conftest* | |
10378 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10379 | #line 10380 "configure" |
10f2d63a VZ |
10380 | #include "confdefs.h" |
10381 | #include <sys/socket.h> | |
10382 | int main() { | |
10383 | int len; getsockname(0, 0, &len); | |
10384 | ; return 0; } | |
10385 | EOF | |
f512f90a | 10386 | if { (eval echo configure:10387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10f2d63a VZ |
10387 | rm -rf conftest* |
10388 | cat >> confdefs.h <<\EOF | |
10389 | #define SOCKLEN_T int | |
10390 | EOF | |
10391 | echo "$ac_t""int" 1>&6 | |
10392 | else | |
10393 | echo "configure: failed program was:" >&5 | |
10394 | cat conftest.$ac_ext >&5 | |
10395 | rm -rf conftest* | |
10396 | echo "$ac_t""unknown" 1>&6 | |
10397 | ||
10398 | fi | |
10399 | rm -f conftest* | |
10400 | ||
10401 | fi | |
10402 | rm -f conftest* | |
10403 | ||
10404 | fi | |
10405 | rm -f conftest* | |
10406 | ac_ext=c | |
10407 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10408 | ac_cpp='$CPP $CPPFLAGS' | |
10409 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
10410 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
10411 | cross_compiling=$ac_cv_prog_cc_cross | |
10412 | ||
10413 | fi | |
10414 | ||
10415 | ||
10416 | if test "$wxUSE_JOYSTICK" = 1; then | |
10417 | for ac_hdr in linux/joystick.h | |
10418 | do | |
10419 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10420 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 10421 | echo "configure:10422: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10422 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10423 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10424 | else | |
10425 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10426 | #line 10427 "configure" |
10f2d63a VZ |
10427 | #include "confdefs.h" |
10428 | #include <$ac_hdr> | |
10429 | EOF | |
10430 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 10431 | { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10432 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10433 | if test -z "$ac_err"; then | |
10434 | rm -rf conftest* | |
10435 | eval "ac_cv_header_$ac_safe=yes" | |
10436 | else | |
10437 | echo "$ac_err" >&5 | |
10438 | echo "configure: failed program was:" >&5 | |
10439 | cat conftest.$ac_ext >&5 | |
10440 | rm -rf conftest* | |
10441 | eval "ac_cv_header_$ac_safe=no" | |
10442 | fi | |
10443 | rm -f conftest* | |
10444 | fi | |
10445 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10446 | echo "$ac_t""yes" 1>&6 | |
10447 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10448 | cat >> confdefs.h <<EOF | |
10449 | #define $ac_tr_hdr 1 | |
10450 | EOF | |
10451 | ||
10452 | else | |
10453 | echo "$ac_t""no" 1>&6 | |
10454 | fi | |
10455 | done | |
10456 | ||
10457 | if test "$ac_cv_header_linux_joystick_h" = "yes"; then | |
10458 | cat >> confdefs.h <<\EOF | |
10459 | #define wxUSE_JOYSTICK 1 | |
10460 | EOF | |
10461 | ||
10462 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
10463 | fi | |
10464 | fi | |
10465 | ||
10466 | ||
10467 | HAVE_DL_FUNCS=0 | |
10468 | HAVE_SHL_FUNCS=0 | |
10469 | if test "$wxUSE_DYNLIB_CLASS" = "yes"; then | |
10470 | for ac_func in dlopen | |
10471 | do | |
10472 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 10473 | echo "configure:10474: checking for $ac_func" >&5 |
10f2d63a VZ |
10474 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10476 | else | |
10477 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10478 | #line 10479 "configure" |
10f2d63a VZ |
10479 | #include "confdefs.h" |
10480 | /* System header to define __stub macros and hopefully few prototypes, | |
10481 | which can conflict with char $ac_func(); below. */ | |
10482 | #include <assert.h> | |
10483 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10484 | /* We use char because int might match the return type of a gcc2 | |
10485 | builtin and then its argument prototype would still apply. */ | |
10486 | char $ac_func(); | |
10487 | ||
10488 | int main() { | |
10489 | ||
10490 | /* The GNU C library defines this for functions which it implements | |
10491 | to always fail with ENOSYS. Some functions are actually named | |
10492 | something starting with __ and the normal name is an alias. */ | |
10493 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10494 | choke me | |
10495 | #else | |
10496 | $ac_func(); | |
10497 | #endif | |
10498 | ||
10499 | ; return 0; } | |
10500 | EOF | |
f512f90a | 10501 | if { (eval echo configure:10502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10502 | rm -rf conftest* |
10503 | eval "ac_cv_func_$ac_func=yes" | |
10504 | else | |
10505 | echo "configure: failed program was:" >&5 | |
10506 | cat conftest.$ac_ext >&5 | |
10507 | rm -rf conftest* | |
10508 | eval "ac_cv_func_$ac_func=no" | |
10509 | fi | |
10510 | rm -f conftest* | |
10511 | fi | |
10512 | ||
10513 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10514 | echo "$ac_t""yes" 1>&6 | |
10515 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10516 | cat >> confdefs.h <<EOF | |
10517 | #define $ac_tr_func 1 | |
10518 | EOF | |
10519 | ||
10520 | cat >> confdefs.h <<\EOF | |
10521 | #define HAVE_DLOPEN 1 | |
10522 | EOF | |
10523 | ||
10524 | HAVE_DL_FUNCS=1 | |
10525 | ||
10526 | else | |
10527 | echo "$ac_t""no" 1>&6 | |
10528 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
f512f90a | 10529 | echo "configure:10530: checking for dlopen in -ldl" >&5 |
10f2d63a VZ |
10530 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
10531 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
10532 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10533 | else | |
10534 | ac_save_LIBS="$LIBS" | |
10535 | LIBS="-ldl $LIBS" | |
10536 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10537 | #line 10538 "configure" |
10f2d63a VZ |
10538 | #include "confdefs.h" |
10539 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10540 | /* We use char because int might match the return type of a gcc2 | |
10541 | builtin and then its argument prototype would still apply. */ | |
10542 | char dlopen(); | |
10543 | ||
10544 | int main() { | |
10545 | dlopen() | |
10546 | ; return 0; } | |
10547 | EOF | |
f512f90a | 10548 | if { (eval echo configure:10549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10549 | rm -rf conftest* |
10550 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10551 | else | |
10552 | echo "configure: failed program was:" >&5 | |
10553 | cat conftest.$ac_ext >&5 | |
10554 | rm -rf conftest* | |
10555 | eval "ac_cv_lib_$ac_lib_var=no" | |
10556 | fi | |
10557 | rm -f conftest* | |
10558 | LIBS="$ac_save_LIBS" | |
10559 | ||
10560 | fi | |
10561 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
10562 | echo "$ac_t""yes" 1>&6 | |
10563 | ||
10564 | cat >> confdefs.h <<\EOF | |
10565 | #define HAVE_DLOPEN 1 | |
10566 | EOF | |
10567 | ||
10568 | HAVE_DL_FUNCS=1 | |
10569 | LIBS="$LIBS -ldl" | |
10570 | ||
10571 | else | |
10572 | echo "$ac_t""no" 1>&6 | |
10573 | ||
10574 | for ac_func in shl_load | |
10575 | do | |
10576 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
f512f90a | 10577 | echo "configure:10578: checking for $ac_func" >&5 |
10f2d63a VZ |
10578 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10579 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10580 | else | |
10581 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10582 | #line 10583 "configure" |
10f2d63a VZ |
10583 | #include "confdefs.h" |
10584 | /* System header to define __stub macros and hopefully few prototypes, | |
10585 | which can conflict with char $ac_func(); below. */ | |
10586 | #include <assert.h> | |
10587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10588 | /* We use char because int might match the return type of a gcc2 | |
10589 | builtin and then its argument prototype would still apply. */ | |
10590 | char $ac_func(); | |
10591 | ||
10592 | int main() { | |
10593 | ||
10594 | /* The GNU C library defines this for functions which it implements | |
10595 | to always fail with ENOSYS. Some functions are actually named | |
10596 | something starting with __ and the normal name is an alias. */ | |
10597 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10598 | choke me | |
10599 | #else | |
10600 | $ac_func(); | |
10601 | #endif | |
10602 | ||
10603 | ; return 0; } | |
10604 | EOF | |
f512f90a | 10605 | if { (eval echo configure:10606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
10f2d63a VZ |
10606 | rm -rf conftest* |
10607 | eval "ac_cv_func_$ac_func=yes" | |
10608 | else | |
10609 | echo "configure: failed program was:" >&5 | |
10610 | cat conftest.$ac_ext >&5 | |
10611 | rm -rf conftest* | |
10612 | eval "ac_cv_func_$ac_func=no" | |
10613 | fi | |
10614 | rm -f conftest* | |
10615 | fi | |
10616 | ||
10617 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
10618 | echo "$ac_t""yes" 1>&6 | |
10619 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10620 | cat >> confdefs.h <<EOF | |
10621 | #define $ac_tr_func 1 | |
10622 | EOF | |
10623 | ||
10624 | cat >> confdefs.h <<\EOF | |
10625 | #define HAVE_SHL_LOAD 1 | |
10626 | EOF | |
10627 | ||
10628 | HAVE_SHL_FUNCS=1 | |
10629 | ||
10630 | else | |
10631 | echo "$ac_t""no" 1>&6 | |
10632 | fi | |
10633 | done | |
10634 | ||
10635 | ||
10636 | fi | |
10637 | ||
10638 | ||
10639 | fi | |
10640 | done | |
10641 | ||
10642 | ||
10643 | if test "$HAVE_DL_FUNCS" = 0; then | |
10644 | if test "$HAVE_SHL_FUNCS" = 0; then | |
10645 | if test "$USE_UNIX" = 1; then | |
10646 | echo "configure: warning: "--with-dynlib and --with-odbc will be disabled due to missing shared library support"" 1>&2 | |
10647 | wxUSE_ODBC=no | |
10648 | wxUSE_DYNLIB_CLASS=no | |
10649 | else | |
10650 | echo "configure: warning: "Cannot check dynlib requirements on non-Unix platforms. dynlib remains enabled."" 1>&2 | |
10651 | fi | |
10652 | fi | |
10653 | fi | |
10654 | fi | |
10655 | ||
10656 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
10657 | cat >> confdefs.h <<\EOF | |
10658 | #define wxUSE_DYNLIB_CLASS 1 | |
10659 | EOF | |
10660 | ||
10661 | fi | |
10662 | ||
10663 | ||
10664 | if test "$wxUSE_UNICODE" = "yes" ; then | |
10665 | cat >> confdefs.h <<\EOF | |
10666 | #define wxUSE_UNICODE 1 | |
10667 | EOF | |
10668 | ||
10669 | fi | |
10670 | ||
10671 | if test "$wxUSE_WCSRTOMBS" = "yes" ; then | |
10672 | cat >> confdefs.h <<\EOF | |
10673 | #define wxUSE_WCSRTOMBS 1 | |
10674 | EOF | |
10675 | ||
10676 | fi | |
10677 | ||
10678 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
10679 | cat >> confdefs.h <<\EOF | |
10680 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
10681 | EOF | |
10682 | ||
10683 | fi | |
10684 | ||
10685 | ||
10686 | IODBC_C_SRC="" | |
10687 | if test "$wxUSE_ODBC" = "yes" ; then | |
10688 | cat >> confdefs.h <<\EOF | |
10689 | #define wxUSE_ODBC 1 | |
10690 | EOF | |
10691 | ||
10692 | WXODBCFLAG="-D_IODBC_" | |
10693 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10694 | IODBCOBJS="\$(IODBC_OBJS)" | |
10695 | else | |
10696 | IODBCOBJS= | |
10697 | fi | |
10698 | ||
10699 | ||
10700 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
10701 | cat >> confdefs.h <<\EOF | |
10702 | #define wxUSE_POSTSCRIPT 1 | |
10703 | EOF | |
10704 | ||
10705 | fi | |
10706 | ||
10707 | cat >> confdefs.h <<\EOF | |
10708 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
10709 | EOF | |
10710 | ||
10711 | ||
10712 | cat >> confdefs.h <<\EOF | |
10713 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
10714 | EOF | |
10715 | ||
10716 | ||
10717 | ||
10718 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
10719 | cat >> confdefs.h <<\EOF | |
10720 | #define wxUSE_CONSTRAINTS 1 | |
10721 | EOF | |
10722 | ||
10723 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
10724 | fi | |
10725 | ||
10726 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
10727 | cat >> confdefs.h <<\EOF | |
10728 | #define wxUSE_MDI_ARCHITECTURE 1 | |
10729 | EOF | |
10730 | ||
10731 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" | |
10732 | fi | |
10733 | ||
10734 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
10735 | cat >> confdefs.h <<\EOF | |
10736 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
10737 | EOF | |
10738 | ||
10739 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
10740 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
10741 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
10742 | fi | |
10743 | fi | |
10744 | ||
10745 | if test "$wxUSE_HELP" = "yes"; then | |
10746 | cat >> confdefs.h <<\EOF | |
10747 | #define wxUSE_HELP 1 | |
10748 | EOF | |
10749 | ||
10750 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
10751 | fi | |
10752 | ||
10753 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
10754 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
10755 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 | |
10756 | else | |
10757 | cat >> confdefs.h <<\EOF | |
10758 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
10759 | EOF | |
10760 | ||
10761 | fi | |
10762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
10763 | fi | |
10764 | ||
10765 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
10766 | cat >> confdefs.h <<\EOF | |
10767 | #define wxUSE_PROLOGIO 1 | |
10768 | EOF | |
10769 | ||
10770 | fi | |
10771 | ||
10772 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
10773 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
10774 | cat >> confdefs.h <<\EOF | |
10775 | #define wxUSE_RESOURCES 1 | |
10776 | EOF | |
10777 | ||
10778 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" | |
10779 | else | |
10780 | echo "configure: warning: wxWindows ressource system requires PrologIO and can't be compiled without it." 1>&2 | |
10781 | fi | |
10782 | fi | |
10783 | ||
10784 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
10785 | cat >> confdefs.h <<\EOF | |
10786 | #define wxUSE_X_RESOURCES 1 | |
10787 | EOF | |
10788 | ||
10789 | fi | |
10790 | ||
10791 | ||
10792 | if test "$wxUSE_IPC" = "yes"; then | |
10793 | cat >> confdefs.h <<\EOF | |
10794 | #define wxUSE_IPC 1 | |
10795 | EOF | |
10796 | ||
10797 | fi | |
10798 | ||
10799 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
10800 | cat >> confdefs.h <<\EOF | |
10801 | #define wxUSE_CLIPBOARD 1 | |
10802 | EOF | |
10803 | ||
10804 | fi | |
10805 | ||
10806 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
10807 | if test "$wxUSE_GTK" = 1; then | |
10808 | if test "$WXGTK12" != 1; then | |
10809 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2 | |
10810 | wxUSE_DRAG_AND_DROP=no | |
10811 | fi | |
10812 | fi | |
10813 | ||
10814 | if test "$wxUSE_MOTIF" = 1; then | |
10815 | echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2 | |
10816 | wxUSE_DRAG_AND_DROP=no | |
10817 | fi | |
10818 | ||
10819 | if test "$USE_WIN32" = 1; then | |
10820 | for ac_hdr in ole2.h | |
10821 | do | |
10822 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
10823 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
f512f90a | 10824 | echo "configure:10825: checking for $ac_hdr" >&5 |
10f2d63a VZ |
10825 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10826 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10827 | else | |
10828 | cat > conftest.$ac_ext <<EOF | |
f512f90a | 10829 | #line 10830 "configure" |
10f2d63a VZ |
10830 | #include "confdefs.h" |
10831 | #include <$ac_hdr> | |
10832 | EOF | |
10833 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
f512f90a | 10834 | { (eval echo configure:10835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10f2d63a VZ |
10835 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10836 | if test -z "$ac_err"; then | |
10837 | rm -rf conftest* | |
10838 | eval "ac_cv_header_$ac_safe=yes" | |
10839 | else | |
10840 | echo "$ac_err" >&5 | |
10841 | echo "configure: failed program was:" >&5 | |
10842 | cat conftest.$ac_ext >&5 | |
10843 | rm -rf conftest* | |
10844 | eval "ac_cv_header_$ac_safe=no" | |
10845 | fi | |
10846 | rm -f conftest* | |
10847 | fi | |
10848 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10849 | echo "$ac_t""yes" 1>&6 | |
10850 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10851 | cat >> confdefs.h <<EOF | |
10852 | #define $ac_tr_hdr 1 | |
10853 | EOF | |
10854 | ||
10855 | else | |
10856 | echo "$ac_t""no" 1>&6 | |
10857 | fi | |
10858 | done | |
10859 | ||
10860 | if test "x$HAVE_OLE2_H" = x ; then | |
10861 | echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2 | |
10862 | wxUSE_DRAG_AND_DROP=no | |
10863 | fi | |
10864 | fi | |
10865 | ||
10866 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
10867 | cat >> confdefs.h <<\EOF | |
10868 | #define wxUSE_DRAG_AND_DROP 1 | |
10869 | EOF | |
10870 | ||
10871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
10872 | fi | |
10873 | ||
10874 | fi | |
10875 | ||
10876 | if test "$wxUSE_SPLINES" = "yes" ; then | |
10877 | cat >> confdefs.h <<\EOF | |
10878 | #define wxUSE_SPLINES 1 | |
10879 | EOF | |
10880 | ||
10881 | fi | |
10882 | ||
10883 | ||
10884 | if test "$wxUSE_ACCEL" = "yes"; then | |
10885 | cat >> confdefs.h <<\EOF | |
10886 | #define wxUSE_ACCEL 1 | |
10887 | EOF | |
10888 | ||
10889 | fi | |
10890 | ||
10891 | if test "$wxUSE_CARET" = "yes"; then | |
10892 | cat >> confdefs.h <<\EOF | |
10893 | #define wxUSE_CARET 1 | |
10894 | EOF | |
10895 | ||
10896 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
10897 | fi | |
10898 | ||
10899 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
10900 | cat >> confdefs.h <<\EOF | |
10901 | #define wxUSE_COMBOBOX 1 | |
10902 | EOF | |
10903 | ||
10904 | fi | |
10905 | ||
10906 | if test "$wxUSE_CHOICE" = "yes"; then | |
10907 | cat >> confdefs.h <<\EOF | |
10908 | #define wxUSE_CHOICE 1 | |
10909 | EOF | |
10910 | ||
10911 | fi | |
10912 | ||
10913 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
10914 | cat >> confdefs.h <<\EOF | |
10915 | #define wxUSE_BMPBUTTON 1 | |
10916 | EOF | |
10917 | ||
10918 | fi | |
10919 | ||
10920 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
10921 | cat >> confdefs.h <<\EOF | |
10922 | #define wxUSE_CHECKBOX 1 | |
10923 | EOF | |
10924 | ||
10925 | fi | |
10926 | ||
10927 | if test "$wxUSE_CHECKLST" = "yes"; then | |
10928 | cat >> confdefs.h <<\EOF | |
10929 | #define wxUSE_CHECKLISTBOX 1 | |
10930 | EOF | |
10931 | ||
10932 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
10933 | fi | |
10934 | ||
10935 | if test "$wxUSE_GAUGE" = "yes"; then | |
10936 | cat >> confdefs.h <<\EOF | |
10937 | #define wxUSE_GAUGE 1 | |
10938 | EOF | |
10939 | ||
10940 | fi | |
10941 | ||
10942 | if test "$wxUSE_GRID" = "yes"; then | |
10943 | cat >> confdefs.h <<\EOF | |
10944 | #define wxUSE_GRID 1 | |
10945 | EOF | |
10946 | ||
10947 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
10948 | fi | |
10949 | ||
10950 | if test "$wxUSE_NEW_GRID" = "yes"; then | |
10951 | cat >> confdefs.h <<\EOF | |
10952 | #define wxUSE_NEW_GRID 1 | |
10953 | EOF | |
10954 | ||
10955 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" | |
10956 | fi | |
10957 | ||
10958 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
10959 | cat >> confdefs.h <<\EOF | |
10960 | #define wxUSE_IMAGLIST 1 | |
10961 | EOF | |
10962 | ||
10963 | fi | |
10964 | ||
10965 | if test "$wxUSE_LISTBOX" = "yes"; then | |
10966 | cat >> confdefs.h <<\EOF | |
10967 | #define wxUSE_LISTBOX 1 | |
10968 | EOF | |
10969 | ||
10970 | fi | |
10971 | ||
10972 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
10973 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
10974 | cat >> confdefs.h <<\EOF | |
10975 | #define wxUSE_LISTCTRL 1 | |
10976 | EOF | |
10977 | ||
10978 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
10979 | else | |
10980 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
10981 | fi | |
10982 | fi | |
10983 | ||
10984 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
10985 | cat >> confdefs.h <<\EOF | |
10986 | #define wxUSE_NOTEBOOK 1 | |
10987 | EOF | |
10988 | ||
10989 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
10990 | fi | |
10991 | ||
10992 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
10993 | cat >> confdefs.h <<\EOF | |
10994 | #define wxUSE_RADIOBOX 1 | |
10995 | EOF | |
10996 | ||
10997 | fi | |
10998 | ||
10999 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
11000 | cat >> confdefs.h <<\EOF | |
11001 | #define wxUSE_RADIOBTN 1 | |
11002 | EOF | |
11003 | ||
11004 | fi | |
11005 | ||
11006 | if test "$wxUSE_SASH" = "yes"; then | |
11007 | cat >> confdefs.h <<\EOF | |
11008 | #define wxUSE_SASH 1 | |
11009 | EOF | |
11010 | ||
11011 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
11012 | fi | |
11013 | ||
11014 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
11015 | cat >> confdefs.h <<\EOF | |
11016 | #define wxUSE_SCROLLBAR 1 | |
11017 | EOF | |
11018 | ||
11019 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll" | |
11020 | fi | |
11021 | ||
11022 | if test "$wxUSE_SLIDER" = "yes"; then | |
11023 | cat >> confdefs.h <<\EOF | |
11024 | #define wxUSE_SLIDER 1 | |
11025 | EOF | |
11026 | ||
11027 | fi | |
11028 | ||
11029 | if test "$wxUSE_SPINBTN" = "yes"; then | |
11030 | cat >> confdefs.h <<\EOF | |
11031 | #define wxUSE_SPINBTN 1 | |
11032 | EOF | |
11033 | ||
11034 | fi | |
11035 | ||
11036 | if test "$wxUSE_SPLITTER" = "yes"; then | |
11037 | cat >> confdefs.h <<\EOF | |
11038 | #define wxUSE_SPLITTER 1 | |
11039 | EOF | |
11040 | ||
11041 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
11042 | fi | |
11043 | ||
11044 | if test "$wxUSE_STATBMP" = "yes"; then | |
11045 | cat >> confdefs.h <<\EOF | |
11046 | #define wxUSE_STATBMP 1 | |
11047 | EOF | |
11048 | ||
11049 | fi | |
11050 | ||
11051 | if test "$wxUSE_STATBOX" = "yes"; then | |
11052 | cat >> confdefs.h <<\EOF | |
11053 | #define wxUSE_STATBOX 1 | |
11054 | EOF | |
11055 | ||
11056 | fi | |
11057 | ||
11058 | if test "$wxUSE_STATLINE" = "yes"; then | |
11059 | if test "$wxUSE_WINE" = 1 ; then | |
11060 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 | |
11061 | else | |
11062 | cat >> confdefs.h <<\EOF | |
11063 | #define wxUSE_STATLINE 1 | |
11064 | EOF | |
11065 | ||
11066 | fi | |
11067 | fi | |
11068 | ||
11069 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
11070 | cat >> confdefs.h <<\EOF | |
11071 | #define wxUSE_STATUSBAR 1 | |
11072 | EOF | |
11073 | ||
11074 | fi | |
11075 | ||
11076 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
11077 | cat >> confdefs.h <<\EOF | |
11078 | #define wxUSE_TAB_DIALOG 1 | |
11079 | EOF | |
11080 | ||
11081 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
11082 | fi | |
11083 | ||
11084 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
11085 | cat >> confdefs.h <<\EOF | |
11086 | #define wxUSE_TOOLBAR 1 | |
11087 | EOF | |
11088 | ||
11089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
11090 | fi | |
11091 | ||
11092 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
11093 | if test "$wxUSE_MOTIF" = 1; then | |
11094 | echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2 | |
11095 | else | |
11096 | if test "$wxUSE_WINE" = 1; then | |
11097 | echo "configure: warning: wxTooltip not supported under WINE" 1>&2 | |
11098 | else | |
11099 | cat >> confdefs.h <<\EOF | |
11100 | #define wxUSE_TOOLTIPS 1 | |
11101 | EOF | |
11102 | ||
11103 | fi | |
11104 | fi | |
11105 | fi | |
11106 | ||
11107 | if test "$wxUSE_TREECTRL" = "yes"; then | |
11108 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
11109 | cat >> confdefs.h <<\EOF | |
11110 | #define wxUSE_TREECTRL 1 | |
11111 | EOF | |
11112 | ||
11113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
11114 | else | |
11115 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 | |
11116 | fi | |
11117 | fi | |
11118 | ||
11119 | ||
11120 | ||
11121 | if test "$wxUSE_METAFILE" = "yes"; then | |
11122 | cat >> confdefs.h <<\EOF | |
11123 | #define wxUSE_METAFILE 1 | |
11124 | EOF | |
11125 | ||
11126 | fi | |
11127 | ||
11128 | if test "$wxUSE_DIRDLG" = "yes"; then | |
11129 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11130 | echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2 | |
11131 | else | |
11132 | if test "$wxUSE_TREECTRL" != "yes"; then | |
11133 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 | |
11134 | else | |
11135 | cat >> confdefs.h <<\EOF | |
11136 | #define wxUSE_DIRDLG 1 | |
11137 | EOF | |
11138 | ||
11139 | fi | |
11140 | fi | |
11141 | fi | |
11142 | ||
11143 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
11144 | cat >> confdefs.h <<\EOF | |
11145 | #define wxUSE_TEXTDLG 1 | |
11146 | EOF | |
11147 | ||
11148 | fi | |
11149 | ||
11150 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
11151 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11152 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 | |
11153 | else | |
11154 | cat >> confdefs.h <<\EOF | |
11155 | #define wxUSE_STARTUP_TIPS 1 | |
11156 | EOF | |
11157 | ||
11158 | fi | |
11159 | fi | |
11160 | ||
11161 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
11162 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
11163 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 | |
11164 | else | |
11165 | cat >> confdefs.h <<\EOF | |
11166 | #define wxUSE_PROGRESSDLG 1 | |
11167 | EOF | |
11168 | ||
11169 | fi | |
11170 | fi | |
11171 | ||
11172 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
11173 | cat >> confdefs.h <<\EOF | |
11174 | #define wxUSE_MINIFRAME 1 | |
11175 | EOF | |
11176 | ||
11177 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
11178 | fi | |
11179 | ||
11180 | if test "$wxUSE_HTML" = "yes"; then | |
11181 | cat >> confdefs.h <<\EOF | |
11182 | #define wxUSE_HTML 1 | |
11183 | EOF | |
11184 | ||
11185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
11186 | INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html" | |
11187 | fi | |
11188 | ||
11189 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
11190 | cat >> confdefs.h <<\EOF | |
11191 | #define wxUSE_VALIDATORS 1 | |
11192 | EOF | |
11193 | ||
11194 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
11195 | fi | |
11196 | ||
11197 | if test "$wxUSE_GIF" = "yes" ; then | |
11198 | cat >> confdefs.h <<\EOF | |
11199 | #define wxUSE_GIF 1 | |
11200 | EOF | |
11201 | ||
11202 | fi | |
11203 | ||
11204 | if test "$wxUSE_PCX" = "yes" ; then | |
11205 | cat >> confdefs.h <<\EOF | |
11206 | #define wxUSE_PCX 1 | |
11207 | EOF | |
11208 | ||
11209 | fi | |
11210 | ||
11211 | if test "$wxUSE_PNM" = "yes" ; then | |
11212 | cat >> confdefs.h <<\EOF | |
11213 | #define wxUSE_PNM 1 | |
11214 | EOF | |
11215 | ||
11216 | fi | |
11217 | ||
11218 | ||
11219 | GUILIBS="$GUI_TK_LIBRARY $OPENGL_LINK $LIBPNG_LINK $ZLIB_LINK $TOOLKIT_LINK" | |
11220 | ||
11221 | EXTRA_LIBS="$LIBS $POSIX4_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK" | |
11222 | if test "$wxUSE_GUI" = "yes"; then | |
11223 | EXTRA_LIBS="$EXTRA_LIBS $GUILIBS" | |
11224 | fi | |
11225 | ||
11226 | LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS" | |
11227 | ||
11228 | INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TOOLKIT_INCLUDE" | |
11229 | ||
11230 | if test "$GXX" = yes ; then | |
11231 | CXXWARNINGS="-Wall" | |
11232 | fi | |
11233 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
11234 | ||
11235 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS | sed 's/ \\+/ /g'` | |
11236 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
11237 | ||
11238 | if test "$wxUSE_GUI" = "yes"; then | |
11239 | ||
11240 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS bombs controls dialogs drawing dynamic \ | |
11241 | forty fractal image wxpoem" | |
11242 | else | |
11243 | SAMPLES_SUBDIRS="" | |
11244 | fi | |
11245 | ||
11246 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '`" | |
11247 | ||
11248 | ||
11249 | ||
11250 | ||
11251 | ||
11252 | ||
11253 | ||
11254 | ||
11255 | ||
11256 | ||
11257 | ||
11258 | ||
11259 | ||
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | ||
11270 | ||
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
11276 | ||
11277 | ||
11278 | ||
11279 | ||
11280 | ||
11281 | ||
11282 | ||
11283 | ||
11284 | ||
11285 | ||
11286 | ||
11287 | ||
11288 | ||
11289 | ||
11290 | ||
11291 | ||
11292 | ||
11293 | ||
11294 | ||
11295 | ||
11296 | ||
11297 | ||
11298 | ||
11299 | ||
11300 | ||
11301 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
f512f90a | 11302 | echo "configure:11303: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
10f2d63a VZ |
11303 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
11304 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
11305 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11306 | else | |
11307 | cat > conftestmake <<\EOF | |
11308 | all: | |
11309 | @echo 'ac_maketemp="${MAKE}"' | |
11310 | EOF | |
11311 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
11312 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
11313 | if test -n "$ac_maketemp"; then | |
11314 | eval ac_cv_prog_make_${ac_make}_set=yes | |
11315 | else | |
11316 | eval ac_cv_prog_make_${ac_make}_set=no | |
11317 | fi | |
11318 | rm -f conftestmake | |
11319 | fi | |
11320 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
11321 | echo "$ac_t""yes" 1>&6 | |
11322 | SET_MAKE= | |
11323 | else | |
11324 | echo "$ac_t""no" 1>&6 | |
11325 | SET_MAKE="MAKE=${MAKE-make}" | |
11326 | fi | |
11327 | ||
11328 | ||
11329 | ||
11330 | ||
11331 | if test "${TOOLKIT_DIR}" = "msw" ; then | |
11332 | GL_TOOLKIT_DIR="win" | |
11333 | else | |
11334 | GL_TOOLKIT_DIR="${TOOLKIT_DIR}" | |
11335 | fi | |
11336 | ||
11337 | ||
11338 | trap '' 1 2 15 | |
11339 | cat > confcache <<\EOF | |
11340 | # This file is a shell script that caches the results of configure | |
11341 | # tests run on this system so they can be shared between configure | |
11342 | # scripts and configure runs. It is not useful on other systems. | |
11343 | # If it contains results you don't want to keep, you may remove or edit it. | |
11344 | # | |
11345 | # By default, configure uses ./config.cache as the cache file, | |
11346 | # creating it if it does not exist already. You can give configure | |
11347 | # the --cache-file=FILE option to use a different cache file; that is | |
11348 | # what configure does when it calls configure scripts in | |
11349 | # subdirectories, so they share the cache. | |
11350 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11351 | # config.status only pays attention to the cache file if you give it the | |
11352 | # --recheck option to rerun configure. | |
11353 | # | |
11354 | EOF | |
11355 | # The following way of writing the cache mishandles newlines in values, | |
11356 | # but we know of no workaround that is simple, portable, and efficient. | |
11357 | # So, don't put newlines in cache variables' values. | |
11358 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11359 | # and sets the high bit in the cache file unless we assign to the vars. | |
11360 | (set) 2>&1 | | |
11361 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11362 | *ac_space=\ *) | |
11363 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11364 | # turns \\\\ into \\, and sed turns \\ into \). | |
11365 | sed -n \ | |
11366 | -e "s/'/'\\\\''/g" \ | |
11367 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11368 | ;; | |
11369 | *) | |
11370 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11371 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11372 | ;; | |
11373 | esac >> confcache | |
11374 | if cmp -s $cache_file confcache; then | |
11375 | : | |
11376 | else | |
11377 | if test -w $cache_file; then | |
11378 | echo "updating cache $cache_file" | |
11379 | cat confcache > $cache_file | |
11380 | else | |
11381 | echo "not updating unwritable cache $cache_file" | |
11382 | fi | |
11383 | fi | |
11384 | rm -f confcache | |
11385 | ||
11386 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
11387 | ||
11388 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11389 | # Let make expand exec_prefix. | |
11390 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11391 | ||
11392 | # Any assignment to VPATH causes Sun make to only execute | |
11393 | # the first set of double-colon rules, so remove it if not needed. | |
11394 | # If there is a colon in the path, we need to keep it. | |
11395 | if test "x$srcdir" = x.; then | |
11396 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
11397 | fi | |
11398 | ||
11399 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
11400 | ||
11401 | DEFS=-DHAVE_CONFIG_H | |
11402 | ||
11403 | # Without the "./", some shells look in PATH for config.status. | |
11404 | : ${CONFIG_STATUS=./config.status} | |
11405 | ||
11406 | echo creating $CONFIG_STATUS | |
11407 | rm -f $CONFIG_STATUS | |
11408 | cat > $CONFIG_STATUS <<EOF | |
11409 | #! /bin/sh | |
11410 | # Generated automatically by configure. | |
11411 | # Run this file to recreate the current configuration. | |
11412 | # This directory was configured as follows, | |
11413 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
11414 | # | |
11415 | # $0 $ac_configure_args | |
11416 | # | |
11417 | # Compiler output produced by configure, useful for debugging | |
11418 | # configure, is in ./config.log if it exists. | |
11419 | ||
11420 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
11421 | for ac_option | |
11422 | do | |
11423 | case "\$ac_option" in | |
11424 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11425 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
11426 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
11427 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
11428 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
11429 | exit 0 ;; | |
11430 | -help | --help | --hel | --he | --h) | |
11431 | echo "\$ac_cs_usage"; exit 0 ;; | |
11432 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
11433 | esac | |
11434 | done | |
11435 | ||
11436 | ac_given_srcdir=$srcdir | |
11437 | ac_given_INSTALL="$INSTALL" | |
11438 | ||
11439 | trap 'rm -fr `echo " | |
11440 | wx-config | |
11441 | src/make.env | |
11442 | src/makeprog.env | |
11443 | src/makelib.env | |
11444 | Makefile | |
11445 | samples/Makefile | |
11446 | samples/bombs/Makefile | |
11447 | samples/caret/Makefile | |
11448 | samples/checklst/Makefile | |
11449 | samples/config/Makefile | |
11450 | samples/controls/Makefile | |
11451 | samples/db/Makefile | |
11452 | samples/dialogs/Makefile | |
11453 | samples/docview/Makefile | |
11454 | samples/docvwmdi/Makefile | |
11455 | samples/dnd/Makefile | |
11456 | samples/drawing/Makefile | |
11457 | samples/forty/Makefile | |
11458 | samples/fractal/Makefile | |
11459 | samples/image/Makefile | |
11460 | samples/internat/Makefile | |
11461 | samples/layout/Makefile | |
11462 | samples/listctrl/Makefile | |
11463 | samples/mdi/Makefile | |
11464 | samples/minifram/Makefile | |
11465 | samples/minimal/Makefile | |
11466 | samples/nettest/Makefile | |
11467 | samples/newgrid/Makefile | |
11468 | samples/notebook/Makefile | |
11469 | samples/png/Makefile | |
11470 | samples/printing/Makefile | |
11471 | samples/proplist/Makefile | |
11472 | samples/richedit/Makefile | |
11473 | samples/resource/Makefile | |
11474 | samples/sashtest/Makefile | |
11475 | samples/scroll/Makefile | |
11476 | samples/scrollsub/Makefile | |
11477 | samples/splitter/Makefile | |
11478 | samples/text/Makefile | |
11479 | samples/thread/Makefile | |
11480 | samples/toolbar/Makefile | |
11481 | samples/treectrl/Makefile | |
11482 | samples/typetest/Makefile | |
11483 | samples/validate/Makefile | |
11484 | samples/wxpoem/Makefile | |
11485 | samples/wxsocket/Makefile | |
11486 | samples/wizard/Makefile | |
11487 | samples/html/Makefile | |
11488 | samples/html/about/Makefile | |
11489 | samples/html/help/Makefile | |
11490 | samples/html/printing/Makefile | |
11491 | samples/html/test/Makefile | |
11492 | samples/html/zip/Makefile | |
11493 | samples/html/virtual/Makefile | |
11494 | samples/html/widget/Makefile | |
11495 | utils/Makefile | |
11496 | utils/wxMMedia2/Makefile | |
11497 | utils/wxMMedia2/lib/Makefile | |
11498 | utils/wxMMedia2/sample/Makefile | |
11499 | utils/glcanvas/Makefile | |
11500 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
11501 | utils/ogl/Makefile | |
11502 | utils/ogl/src/Makefile | |
11503 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
11504 | EOF | |
11505 | cat >> $CONFIG_STATUS <<EOF | |
11506 | ||
11507 | # Protect against being on the right side of a sed subst in config.status. | |
11508 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
11509 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
11510 | $ac_vpsub | |
11511 | $extrasub | |
11512 | s%@SHELL@%$SHELL%g | |
11513 | s%@CFLAGS@%$CFLAGS%g | |
11514 | s%@CPPFLAGS@%$CPPFLAGS%g | |
11515 | s%@CXXFLAGS@%$CXXFLAGS%g | |
11516 | s%@FFLAGS@%$FFLAGS%g | |
11517 | s%@DEFS@%$DEFS%g | |
11518 | s%@LDFLAGS@%$LDFLAGS%g | |
11519 | s%@LIBS@%$LIBS%g | |
11520 | s%@exec_prefix@%$exec_prefix%g | |
11521 | s%@prefix@%$prefix%g | |
11522 | s%@program_transform_name@%$program_transform_name%g | |
11523 | s%@bindir@%$bindir%g | |
11524 | s%@sbindir@%$sbindir%g | |
11525 | s%@libexecdir@%$libexecdir%g | |
11526 | s%@datadir@%$datadir%g | |
11527 | s%@sysconfdir@%$sysconfdir%g | |
11528 | s%@sharedstatedir@%$sharedstatedir%g | |
11529 | s%@localstatedir@%$localstatedir%g | |
11530 | s%@libdir@%$libdir%g | |
11531 | s%@includedir@%$includedir%g | |
11532 | s%@oldincludedir@%$oldincludedir%g | |
11533 | s%@infodir@%$infodir%g | |
11534 | s%@mandir@%$mandir%g | |
11535 | s%@host@%$host%g | |
11536 | s%@host_alias@%$host_alias%g | |
11537 | s%@host_cpu@%$host_cpu%g | |
11538 | s%@host_vendor@%$host_vendor%g | |
11539 | s%@host_os@%$host_os%g | |
11540 | s%@target@%$target%g | |
11541 | s%@target_alias@%$target_alias%g | |
11542 | s%@target_cpu@%$target_cpu%g | |
11543 | s%@target_vendor@%$target_vendor%g | |
11544 | s%@target_os@%$target_os%g | |
11545 | s%@build@%$build%g | |
11546 | s%@build_alias@%$build_alias%g | |
11547 | s%@build_cpu@%$build_cpu%g | |
11548 | s%@build_vendor@%$build_vendor%g | |
11549 | s%@build_os@%$build_os%g | |
11550 | s%@CC@%$CC%g | |
11551 | s%@CPP@%$CPP%g | |
11552 | s%@CXX@%$CXX%g | |
11553 | s%@CXXCPP@%$CXXCPP%g | |
11554 | s%@RANLIB@%$RANLIB%g | |
11555 | s%@AR@%$AR%g | |
11556 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
11557 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
11558 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
11559 | s%@STRIP@%$STRIP%g | |
11560 | s%@YACC@%$YACC%g | |
11561 | s%@LEX@%$LEX%g | |
11562 | s%@LEXLIB@%$LEXLIB%g | |
11563 | s%@LN_S@%$LN_S%g | |
11564 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
11565 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
11566 | s%@GTK_LIBS@%$GTK_LIBS%g | |
11567 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
11568 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
11569 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
11570 | s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g | |
11571 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
11572 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
11573 | s%@WX_LIBRARY@%$WX_LIBRARY%g | |
11574 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
11575 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
11576 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
11577 | s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g | |
11578 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
11579 | s%@WX_ALL@%$WX_ALL%g | |
11580 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
11581 | s%@SHARED_LD@%$SHARED_LD%g | |
11582 | s%@PIC_FLAG@%$PIC_FLAG%g | |
11583 | s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g | |
11584 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
11585 | s%@TOOLKIT@%$TOOLKIT%g | |
11586 | s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g | |
11587 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
11588 | s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g | |
11589 | s%@GUIHEADERS@%$GUIHEADERS%g | |
11590 | s%@GUIOBJS@%$GUIOBJS%g | |
11591 | s%@COMMONOBJS@%$COMMONOBJS%g | |
11592 | s%@GENERICOBJS@%$GENERICOBJS%g | |
11593 | s%@GUIDEPS@%$GUIDEPS%g | |
11594 | s%@COMMONDEPS@%$COMMONDEPS%g | |
11595 | s%@GENERICDEPS@%$GENERICDEPS%g | |
11596 | s%@IODBCOBJS@%$IODBCOBJS%g | |
11597 | s%@UNIXOBJS@%$UNIXOBJS%g | |
11598 | s%@UNIXDEPS@%$UNIXDEPS%g | |
11599 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
11600 | s%@ALL_DEPFILES@%$ALL_DEPFILES%g | |
11601 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
11602 | s%@GUIDIST@%$GUIDIST%g | |
11603 | s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g | |
11604 | s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g | |
11605 | s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g | |
11606 | s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g | |
11607 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
11608 | s%@USER_SUBDIRS@%$USER_SUBDIRS%g | |
11609 | s%@EXTRA_LIBS@%$EXTRA_LIBS%g | |
11610 | s%@LD_LIBS@%$LD_LIBS%g | |
11611 | s%@SET_MAKE@%$SET_MAKE%g | |
11612 | s%@GL_TOOLKIT_DIR@%$GL_TOOLKIT_DIR%g | |
11613 | ||
11614 | CEOF | |
11615 | EOF | |
11616 | ||
11617 | cat >> $CONFIG_STATUS <<\EOF | |
11618 | ||
11619 | # Split the substitutions into bite-sized pieces for seds with | |
11620 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
11621 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
11622 | ac_file=1 # Number of current file. | |
11623 | ac_beg=1 # First line for current file. | |
11624 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
11625 | ac_more_lines=: | |
11626 | ac_sed_cmds="" | |
11627 | while $ac_more_lines; do | |
11628 | if test $ac_beg -gt 1; then | |
11629 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
11630 | else | |
11631 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
11632 | fi | |
11633 | if test ! -s conftest.s$ac_file; then | |
11634 | ac_more_lines=false | |
11635 | rm -f conftest.s$ac_file | |
11636 | else | |
11637 | if test -z "$ac_sed_cmds"; then | |
11638 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
11639 | else | |
11640 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
11641 | fi | |
11642 | ac_file=`expr $ac_file + 1` | |
11643 | ac_beg=$ac_end | |
11644 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
11645 | fi | |
11646 | done | |
11647 | if test -z "$ac_sed_cmds"; then | |
11648 | ac_sed_cmds=cat | |
11649 | fi | |
11650 | EOF | |
11651 | ||
11652 | cat >> $CONFIG_STATUS <<EOF | |
11653 | ||
11654 | CONFIG_FILES=\${CONFIG_FILES-"wx-config | |
11655 | src/make.env | |
11656 | src/makeprog.env | |
11657 | src/makelib.env | |
11658 | Makefile | |
11659 | samples/Makefile | |
11660 | samples/bombs/Makefile | |
11661 | samples/caret/Makefile | |
11662 | samples/checklst/Makefile | |
11663 | samples/config/Makefile | |
11664 | samples/controls/Makefile | |
11665 | samples/db/Makefile | |
11666 | samples/dialogs/Makefile | |
11667 | samples/docview/Makefile | |
11668 | samples/docvwmdi/Makefile | |
11669 | samples/dnd/Makefile | |
11670 | samples/drawing/Makefile | |
11671 | samples/forty/Makefile | |
11672 | samples/fractal/Makefile | |
11673 | samples/image/Makefile | |
11674 | samples/internat/Makefile | |
11675 | samples/layout/Makefile | |
11676 | samples/listctrl/Makefile | |
11677 | samples/mdi/Makefile | |
11678 | samples/minifram/Makefile | |
11679 | samples/minimal/Makefile | |
11680 | samples/nettest/Makefile | |
11681 | samples/newgrid/Makefile | |
11682 | samples/notebook/Makefile | |
11683 | samples/png/Makefile | |
11684 | samples/printing/Makefile | |
11685 | samples/proplist/Makefile | |
11686 | samples/richedit/Makefile | |
11687 | samples/resource/Makefile | |
11688 | samples/sashtest/Makefile | |
11689 | samples/scroll/Makefile | |
11690 | samples/scrollsub/Makefile | |
11691 | samples/splitter/Makefile | |
11692 | samples/text/Makefile | |
11693 | samples/thread/Makefile | |
11694 | samples/toolbar/Makefile | |
11695 | samples/treectrl/Makefile | |
11696 | samples/typetest/Makefile | |
11697 | samples/validate/Makefile | |
11698 | samples/wxpoem/Makefile | |
11699 | samples/wxsocket/Makefile | |
11700 | samples/wizard/Makefile | |
11701 | samples/html/Makefile | |
11702 | samples/html/about/Makefile | |
11703 | samples/html/help/Makefile | |
11704 | samples/html/printing/Makefile | |
11705 | samples/html/test/Makefile | |
11706 | samples/html/zip/Makefile | |
11707 | samples/html/virtual/Makefile | |
11708 | samples/html/widget/Makefile | |
11709 | utils/Makefile | |
11710 | utils/wxMMedia2/Makefile | |
11711 | utils/wxMMedia2/lib/Makefile | |
11712 | utils/wxMMedia2/sample/Makefile | |
11713 | utils/glcanvas/Makefile | |
11714 | utils/glcanvas/${GL_TOOLKIT_DIR}/Makefile | |
11715 | utils/ogl/Makefile | |
11716 | utils/ogl/src/Makefile | |
11717 | "} | |
11718 | EOF | |
11719 | cat >> $CONFIG_STATUS <<\EOF | |
11720 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
11721 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11722 | case "$ac_file" in | |
11723 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
11724 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
11725 | *) ac_file_in="${ac_file}.in" ;; | |
11726 | esac | |
11727 | ||
11728 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
11729 | ||
11730 | # Remove last slash and all that follows it. Not all systems have dirname. | |
11731 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
11732 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
11733 | # The file is in a subdirectory. | |
11734 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
11735 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
11736 | # A "../" for each directory in $ac_dir_suffix. | |
11737 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
11738 | else | |
11739 | ac_dir_suffix= ac_dots= | |
11740 | fi | |
11741 | ||
11742 | case "$ac_given_srcdir" in | |
11743 | .) srcdir=. | |
11744 | if test -z "$ac_dots"; then top_srcdir=. | |
11745 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
11746 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
11747 | *) # Relative path. | |
11748 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
11749 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
11750 | esac | |
11751 | ||
11752 | case "$ac_given_INSTALL" in | |
11753 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
11754 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
11755 | esac | |
11756 | ||
11757 | echo creating "$ac_file" | |
11758 | rm -f "$ac_file" | |
11759 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
11760 | case "$ac_file" in | |
11761 | *Makefile*) ac_comsub="1i\\ | |
11762 | # $configure_input" ;; | |
11763 | *) ac_comsub= ;; | |
11764 | esac | |
11765 | ||
11766 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
11767 | sed -e "$ac_comsub | |
11768 | s%@configure_input@%$configure_input%g | |
11769 | s%@srcdir@%$srcdir%g | |
11770 | s%@top_srcdir@%$top_srcdir%g | |
11771 | s%@INSTALL@%$INSTALL%g | |
11772 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
11773 | fi; done | |
11774 | rm -f conftest.s* | |
11775 | ||
11776 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
11777 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
11778 | # | |
11779 | # ac_d sets the value in "#define NAME VALUE" lines. | |
11780 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
11781 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
11782 | ac_dC='\3' | |
11783 | ac_dD='%g' | |
11784 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
11785 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
11786 | ac_uB='\([ ]\)%\1#\2define\3' | |
11787 | ac_uC=' ' | |
11788 | ac_uD='\4%g' | |
11789 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
11790 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
11791 | ac_eB='$%\1#\2define\3' | |
11792 | ac_eC=' ' | |
11793 | ac_eD='%g' | |
11794 | ||
11795 | if test "${CONFIG_HEADERS+set}" != set; then | |
11796 | EOF | |
11797 | cat >> $CONFIG_STATUS <<EOF | |
11798 | CONFIG_HEADERS="setup.h:setup.h.in" | |
11799 | EOF | |
11800 | cat >> $CONFIG_STATUS <<\EOF | |
11801 | fi | |
11802 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
11803 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
11804 | case "$ac_file" in | |
11805 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
11806 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
11807 | *) ac_file_in="${ac_file}.in" ;; | |
11808 | esac | |
11809 | ||
11810 | echo creating $ac_file | |
11811 | ||
11812 | rm -f conftest.frag conftest.in conftest.out | |
11813 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
11814 | cat $ac_file_inputs > conftest.in | |
11815 | ||
11816 | EOF | |
11817 | ||
11818 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
11819 | # the proper values into config.h.in to produce config.h. And first: | |
11820 | # Protect against being on the right side of a sed subst in config.status. | |
11821 | # Protect against being in an unquoted here document in config.status. | |
11822 | rm -f conftest.vals | |
11823 | cat > conftest.hdr <<\EOF | |
11824 | s/[\\&%]/\\&/g | |
11825 | s%[\\$`]%\\&%g | |
11826 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
11827 | s%ac_d%ac_u%gp | |
11828 | s%ac_u%ac_e%gp | |
11829 | EOF | |
11830 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
11831 | rm -f conftest.hdr | |
11832 | ||
11833 | # This sed command replaces #undef with comments. This is necessary, for | |
11834 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
11835 | # on some systems where configure will not decide to define it. | |
11836 | cat >> conftest.vals <<\EOF | |
11837 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
11838 | EOF | |
11839 | ||
11840 | # Break up conftest.vals because some shells have a limit on | |
11841 | # the size of here documents, and old seds have small limits too. | |
11842 | ||
11843 | rm -f conftest.tail | |
11844 | while : | |
11845 | do | |
11846 | ac_lines=`grep -c . conftest.vals` | |
11847 | # grep -c gives empty output for an empty file on some AIX systems. | |
11848 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
11849 | # Write a limited-size here document to conftest.frag. | |
11850 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
11851 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
11852 | echo 'CEOF | |
11853 | sed -f conftest.frag conftest.in > conftest.out | |
11854 | rm -f conftest.in | |
11855 | mv conftest.out conftest.in | |
11856 | ' >> $CONFIG_STATUS | |
11857 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
11858 | rm -f conftest.vals | |
11859 | mv conftest.tail conftest.vals | |
11860 | done | |
11861 | rm -f conftest.vals | |
11862 | ||
11863 | cat >> $CONFIG_STATUS <<\EOF | |
11864 | rm -f conftest.frag conftest.h | |
11865 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
11866 | cat conftest.in >> conftest.h | |
11867 | rm -f conftest.in | |
11868 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
11869 | echo "$ac_file is unchanged" | |
11870 | rm -f conftest.h | |
11871 | else | |
11872 | # Remove last slash and all that follows it. Not all systems have dirname. | |
11873 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
11874 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
11875 | # The file is in a subdirectory. | |
11876 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
11877 | fi | |
11878 | rm -f $ac_file | |
11879 | mv conftest.h $ac_file | |
11880 | fi | |
11881 | fi; done | |
11882 | ||
11883 | EOF | |
11884 | cat >> $CONFIG_STATUS <<EOF | |
11885 | ||
11886 | TOOLKIT_DIR="${TOOLKIT_DIR}" | |
11887 | ||
11888 | ||
11889 | EOF | |
11890 | cat >> $CONFIG_STATUS <<\EOF | |
11891 | ||
11892 | chmod +x wx-config | |
11893 | if test ! -d include; then | |
11894 | mkdir include | |
11895 | fi | |
11896 | if test ! -d include/wx; then | |
11897 | mkdir include/wx | |
11898 | fi | |
11899 | if test ! -d include/wx/${TOOLKIT_DIR}; then | |
11900 | mkdir include/wx/${TOOLKIT_DIR} | |
11901 | fi | |
11902 | mv -f setup.h include/wx/${TOOLKIT_DIR}/setup.h | |
11903 | ||
11904 | exit 0 | |
11905 | EOF | |
11906 | chmod +x $CONFIG_STATUS | |
11907 | rm -fr confdefs* $ac_clean_files | |
11908 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
11909 | ||
11910 |