]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
579d8138 VS |
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 | ||
36 | ||
986ecc86 VZ |
37 | |
38 | ||
b040e242 VS |
39 | |
40 | ||
41 | ||
42 | ||
b040e242 VS |
43 | |
44 | ||
45 | ||
698dcdb6 | 46 | |
698dcdb6 VZ |
47 | |
48 | ||
698dcdb6 | 49 | |
579d8138 VS |
50 | |
51 | ||
52 | ||
53 | ||
54 | ||
55 | ||
56 | ||
57 | ||
58 | ||
59 | # Configure paths for GTK+ | |
60 | # Owen Taylor 1997-2001 | |
61 | ||
62 | ||
63 | ||
64 | ||
65 | ||
66 | ||
67 | ||
68 | ||
69 | # Configure paths for GTK+ | |
70 | # Owen Taylor 97-11-3 | |
71 | ||
72 | ||
73 | ||
74 | # Guess values for system-dependent variables and create Makefiles. | |
5c0a20c3 | 75 | # Generated automatically using autoconf version 2.12 |
579d8138 VS |
76 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
77 | # | |
78 | # This configure script is free software; the Free Software Foundation | |
79 | # gives unlimited permission to copy, distribute and modify it. | |
80 | ||
81 | # Defaults: | |
82 | ac_help= | |
83 | ac_default_prefix=/usr/local | |
84 | # Any additions from configure.in: | |
85 | ac_help="$ac_help | |
86 | --enable-gui use GUI classes" | |
87 | ac_help="$ac_help | |
88 | --enable-universal use wxWindows GUI controls instead of native ones" | |
89 | ac_help="$ac_help | |
90 | --with-gtk use GTK+" | |
91 | ac_help="$ac_help | |
92 | --with-motif use Motif/Lesstif" | |
93 | ac_help="$ac_help | |
94 | --with-mac use Mac OS X" | |
95 | ac_help="$ac_help | |
96 | --with-wine use WINE" | |
97 | ac_help="$ac_help | |
98 | --with-msw use MS-Windows" | |
99 | ac_help="$ac_help | |
100 | --with-pm use OS/2 Presentation Manager" | |
101 | ac_help="$ac_help | |
102 | --with-mgl use SciTech MGL" | |
103 | ac_help="$ac_help | |
104 | --with-microwin use MicroWindows" | |
105 | ac_help="$ac_help | |
106 | --with-x11 use X11" | |
107 | ac_help="$ac_help | |
108 | --enable-nanox use NanoX" | |
109 | ac_help="$ac_help | |
110 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
111 | ac_help="$ac_help | |
112 | --with-libpng use libpng (PNG image format)" | |
113 | ac_help="$ac_help | |
114 | --with-libjpeg use libjpeg (JPEG file format)" | |
115 | ac_help="$ac_help | |
116 | --with-libtiff use libtiff (TIFF file format)" | |
117 | ac_help="$ac_help | |
118 | --with-opengl use OpenGL (or Mesa)" | |
119 | ac_help="$ac_help | |
120 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
121 | ac_help="$ac_help | |
122 | --with-regex enable support for wxRegEx class" | |
123 | ac_help="$ac_help | |
124 | --with-zlib use zlib for LZW compression" | |
125 | ac_help="$ac_help | |
126 | --with-odbc use the IODBC and wxODBC classes" | |
127 | ac_help="$ac_help | |
128 | --enable-shared create shared library code" | |
129 | ac_help="$ac_help | |
130 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
131 | ac_help="$ac_help | |
132 | --enable-optimise create optimised code" | |
133 | ac_help="$ac_help | |
134 | --enable-debug same as debug_flag and debug_info" | |
135 | ac_help="$ac_help | |
136 | --enable-precomp enable use of precompiled headers (Mac OS X)" | |
137 | ac_help="$ac_help | |
138 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
139 | ac_help="$ac_help | |
140 | --enable-debug_info create code with debugging information" | |
141 | ac_help="$ac_help | |
142 | --enable-debug_gdb create code with extra GDB debugging information" | |
143 | ac_help="$ac_help | |
144 | --enable-debug_cntxt use wxDebugContext" | |
145 | ac_help="$ac_help | |
146 | --enable-mem_tracing create code with memory tracing" | |
147 | ac_help="$ac_help | |
148 | --enable-profile create code with profiling information" | |
149 | ac_help="$ac_help | |
150 | --enable-no_rtti create code without RTTI information" | |
151 | ac_help="$ac_help | |
152 | --enable-no_exceptions create code without C++ exceptions handling" | |
153 | ac_help="$ac_help | |
154 | --enable-permissive compile code disregarding strict ANSI" | |
155 | ac_help="$ac_help | |
156 | --enable-no_deps create code without dependency information" | |
157 | ac_help="$ac_help | |
158 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
159 | ac_help="$ac_help | |
160 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
161 | ac_help="$ac_help | |
162 | --enable-rpath=DIR output the rpath flag from wx-config" | |
163 | ac_help="$ac_help | |
164 | --enable-intl use internationalization system" | |
165 | ac_help="$ac_help | |
166 | --enable-config use wxConfig (and derived) classes" | |
167 | ac_help="$ac_help | |
168 | --enable-protocols use wxProtocol and derived classes" | |
169 | ac_help="$ac_help | |
170 | --enable-ftp use wxFTP (requires wxProtocol" | |
171 | ac_help="$ac_help | |
172 | --enable-http use wxHTTP (requires wxProtocol" | |
173 | ac_help="$ac_help | |
174 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
175 | ac_help="$ac_help | |
176 | --enable-sockets use socket/network classes" | |
177 | ac_help="$ac_help | |
178 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
179 | ac_help="$ac_help | |
180 | --enable-cmdline use wxCmdLineParser class" | |
181 | ac_help="$ac_help | |
182 | --enable-datetime use wxDateTime class" | |
183 | ac_help="$ac_help | |
184 | --enable-timedate use obsolete wxDate/wxTime classes" | |
185 | ac_help="$ac_help | |
186 | --enable-stopwatch use wxStopWatch class" | |
187 | ac_help="$ac_help | |
188 | --enable-dialupman use dialup network classes" | |
189 | ac_help="$ac_help | |
190 | --enable-apple_ieee use the Apple IEEE codec" | |
191 | ac_help="$ac_help | |
192 | --enable-timer use wxTimer class" | |
193 | ac_help="$ac_help | |
194 | --enable-wave use wxWave class" | |
195 | ac_help="$ac_help | |
196 | --enable-fraction use wxFraction class" | |
197 | ac_help="$ac_help | |
198 | --enable-dynlib use wxLibrary class for DLL loading" | |
199 | ac_help="$ac_help | |
200 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
201 | ac_help="$ac_help | |
202 | --enable-longlong use wxLongLong class" | |
203 | ac_help="$ac_help | |
204 | --enable-geometry use geometry class" | |
205 | ac_help="$ac_help | |
206 | --enable-log use logging system" | |
207 | ac_help="$ac_help | |
208 | --enable-streams use wxStream etc classes" | |
209 | ac_help="$ac_help | |
210 | --enable-file use wxFile classes" | |
211 | ac_help="$ac_help | |
212 | --enable-ffile use wxFFile classes" | |
213 | ac_help="$ac_help | |
214 | --enable-textbuf use wxTextBuffer class" | |
215 | ac_help="$ac_help | |
216 | --enable-textfile use wxTextFile class" | |
217 | ac_help="$ac_help | |
218 | --enable-fontmap use font encodings conversion classes" | |
219 | ac_help="$ac_help | |
220 | --enable-unicode compile wxString with Unicode support" | |
221 | ac_help="$ac_help | |
222 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
223 | ac_help="$ac_help | |
224 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
225 | ac_help="$ac_help | |
226 | --enable-std_iostreams use standard C++ stream classes" | |
227 | ac_help="$ac_help | |
228 | --enable-filesystem use virtual file systems classes" | |
229 | ac_help="$ac_help | |
230 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
231 | ac_help="$ac_help | |
232 | --enable-fs_zip use virtual ZIP filesystems" | |
233 | ac_help="$ac_help | |
234 | --enable-zipstream use wxZipInputStream" | |
235 | ac_help="$ac_help | |
236 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
237 | ac_help="$ac_help | |
238 | --enable-snglinst use wxSingleInstanceChecker class" | |
239 | ac_help="$ac_help | |
240 | --enable-mimetype use wxMimeTypesManager" | |
241 | ac_help="$ac_help | |
242 | --enable-sysoptions use wxSystemOptions" | |
243 | ac_help="$ac_help | |
244 | --enable-url use wxURL class" | |
245 | ac_help="$ac_help | |
246 | --enable-protocol use wxProtocol class" | |
247 | ac_help="$ac_help | |
248 | --enable-protocol-http HTTP support in wxProtocol" | |
249 | ac_help="$ac_help | |
250 | --enable-protocol-ftp FTP support in wxProtocol" | |
251 | ac_help="$ac_help | |
252 | --enable-protocol-file FILE support in wxProtocol" | |
253 | ac_help="$ac_help | |
254 | --enable-threads use threads" | |
255 | ac_help="$ac_help | |
256 | --enable-docview use document view architecture" | |
257 | ac_help="$ac_help | |
258 | --enable-help use help subsystem" | |
259 | ac_help="$ac_help | |
260 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
261 | ac_help="$ac_help | |
262 | --enable-html use wxHTML sub-library" | |
263 | ac_help="$ac_help | |
264 | --enable-htmlhelp use wxHTML-based help" | |
265 | ac_help="$ac_help | |
266 | --enable-constraints use layout-constraints system" | |
267 | ac_help="$ac_help | |
268 | --enable-printarch use printing architecture" | |
269 | ac_help="$ac_help | |
270 | --enable-mdi use multiple document interface architecture" | |
271 | ac_help="$ac_help | |
272 | --enable-loggui use standard GUI logger" | |
273 | ac_help="$ac_help | |
274 | --enable-logwin use wxLogWindow" | |
275 | ac_help="$ac_help | |
276 | --enable-logdialog use wxLogDialog" | |
277 | ac_help="$ac_help | |
278 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
279 | ac_help="$ac_help | |
280 | --enable-prologio use Prolog IO library" | |
281 | ac_help="$ac_help | |
282 | --enable-resources use wxWindows resources" | |
283 | ac_help="$ac_help | |
284 | --enable-xresources use X resources for save (default for gtk+)" | |
285 | ac_help="$ac_help | |
286 | --enable-clipboard use wxClipboard classes" | |
287 | ac_help="$ac_help | |
288 | --enable-dnd use Drag'n'Drop classes" | |
289 | ac_help="$ac_help | |
290 | --enable-metafile use win32 metafiles" | |
291 | ac_help="$ac_help | |
292 | --enable-treelayout use wxTreeLayout classes" | |
293 | ac_help="$ac_help | |
294 | --enable-controls use all usual controls" | |
295 | ac_help="$ac_help | |
296 | --enable-accel use accelerators" | |
297 | ac_help="$ac_help | |
298 | --enable-button use wxButton class" | |
299 | ac_help="$ac_help | |
300 | --enable-bmpbutton use wxBitmapButton class" | |
301 | ac_help="$ac_help | |
302 | --enable-calendar use wxCalendarCtrl class" | |
303 | ac_help="$ac_help | |
304 | --enable-caret use wxCaret class" | |
305 | ac_help="$ac_help | |
306 | --enable-checkbox use wxCheckBox class" | |
307 | ac_help="$ac_help | |
308 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
309 | ac_help="$ac_help | |
310 | --enable-choice use wxChoice class" | |
311 | ac_help="$ac_help | |
312 | --enable-combobox use wxComboBox classes" | |
313 | ac_help="$ac_help | |
314 | --enable-gauge use wxGauge class" | |
315 | ac_help="$ac_help | |
316 | --enable-grid use wxGrid class" | |
317 | ac_help="$ac_help | |
318 | --enable-newgrid use new wxGrid class" | |
319 | ac_help="$ac_help | |
320 | --enable-imaglist use wxImageList class" | |
321 | ac_help="$ac_help | |
322 | --enable-listbox use wxListBox class" | |
323 | ac_help="$ac_help | |
324 | --enable-listctrl use wxListCtrl class" | |
325 | ac_help="$ac_help | |
326 | --enable-notebook use wxNotebook class" | |
327 | ac_help="$ac_help | |
328 | --enable-propsheet use wxPropertySheet class" | |
329 | ac_help="$ac_help | |
330 | --enable-radiobox use wxRadioBox class" | |
331 | ac_help="$ac_help | |
332 | --enable-radiobtn use wxRadioButton class" | |
333 | ac_help="$ac_help | |
334 | --enable-sash use wxSashWindow class" | |
335 | ac_help="$ac_help | |
336 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
337 | ac_help="$ac_help | |
338 | --enable-slider use wxSlider class" | |
339 | ac_help="$ac_help | |
340 | --enable-spinbtn use wxSpinButton class" | |
341 | ac_help="$ac_help | |
342 | --enable-spinctrl use wxSpinCtrl class" | |
343 | ac_help="$ac_help | |
344 | --enable-splitter use wxSplitterWindow class" | |
345 | ac_help="$ac_help | |
346 | --enable-statbmp use wxStaticBitmap class" | |
347 | ac_help="$ac_help | |
348 | --enable-statbox use wxStaticBox class" | |
349 | ac_help="$ac_help | |
350 | --enable-statline use wxStaticLine class" | |
351 | ac_help="$ac_help | |
352 | --enable-stattext use wxStaticText class" | |
353 | ac_help="$ac_help | |
354 | --enable-statusbar use wxStatusBar class" | |
355 | ac_help="$ac_help | |
356 | --enable-tabdialog use wxTabControl class" | |
357 | ac_help="$ac_help | |
358 | --enable-textctrl use wxTextCtrl class" | |
359 | ac_help="$ac_help | |
360 | --enable-togglebtn use wxToggleButton class" | |
361 | ac_help="$ac_help | |
362 | --enable-toolbar use wxToolBar class" | |
363 | ac_help="$ac_help | |
364 | --enable-tbarnative use native wxToolBar class" | |
365 | ac_help="$ac_help | |
366 | --enable-tbarsmpl use wxToolBarSimple class" | |
367 | ac_help="$ac_help | |
368 | --enable-treectrl use wxTreeCtrl class" | |
369 | ac_help="$ac_help | |
370 | --enable-tipwindow use wxTipWindow class" | |
371 | ac_help="$ac_help | |
372 | --enable-popupwin use wxPopUpWindow class" | |
373 | ac_help="$ac_help | |
374 | --enable-commondlg use all common dialogs" | |
375 | ac_help="$ac_help | |
376 | --enable-choicedlg use wxChoiceDialog" | |
377 | ac_help="$ac_help | |
378 | --enable-coldlg use wxColourDialog" | |
379 | ac_help="$ac_help | |
380 | --enable-filedlg use wxFileDialog" | |
381 | ac_help="$ac_help | |
382 | --enable-finddlg use wxFindReplaceDialog" | |
383 | ac_help="$ac_help | |
384 | --enable-fontdlg use wxFontDialog" | |
385 | ac_help="$ac_help | |
386 | --enable-dirdlg use wxDirDialog" | |
387 | ac_help="$ac_help | |
388 | --enable-msgdlg use wxMessageDialog" | |
389 | ac_help="$ac_help | |
390 | --enable-numberdlg use wxNumberEntryDialog" | |
391 | ac_help="$ac_help | |
392 | --enable-splash use wxSplashScreen" | |
393 | ac_help="$ac_help | |
394 | --enable-textdlg use wxTextDialog" | |
395 | ac_help="$ac_help | |
396 | --enable-tipdlg use startup tips" | |
397 | ac_help="$ac_help | |
398 | --enable-progressdlg use wxProgressDialog" | |
399 | ac_help="$ac_help | |
400 | --enable-wizarddlg use wxWizard" | |
401 | ac_help="$ac_help | |
402 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
403 | ac_help="$ac_help | |
404 | --enable-miniframe use wxMiniFrame class" | |
405 | ac_help="$ac_help | |
406 | --enable-tooltips use wxToolTip class" | |
407 | ac_help="$ac_help | |
408 | --enable-splines use spline drawing code" | |
409 | ac_help="$ac_help | |
410 | --enable-validators use wxValidator and derived classes" | |
411 | ac_help="$ac_help | |
412 | --enable-busyinfo use wxBusyInfo" | |
413 | ac_help="$ac_help | |
414 | --enable-joystick use wxJoystick (Linux only)" | |
415 | ac_help="$ac_help | |
416 | --enable-metafiles use wxMetaFile (Windows only)" | |
417 | ac_help="$ac_help | |
418 | --enable-dragimage use wxDragImage" | |
419 | ac_help="$ac_help | |
420 | --enable-palette use wxPalette class" | |
421 | ac_help="$ac_help | |
422 | --enable-image use wxImage class" | |
423 | ac_help="$ac_help | |
424 | --enable-gif use gif images (GIF file format)" | |
425 | ac_help="$ac_help | |
426 | --enable-pcx use pcx images (PCX file format)" | |
427 | ac_help="$ac_help | |
428 | --enable-iff use iff images (IFF file format)" | |
429 | ac_help="$ac_help | |
430 | --enable-pnm use pnm images (PNM file format)" | |
431 | ac_help="$ac_help | |
432 | --enable-xpm use xpm images (XPM file format)" | |
433 | ac_help="$ac_help | |
434 | --enable-icocur use Windows ICO and CUR formats" | |
435 | ac_help="$ac_help | |
436 | --disable-largefile omit support for large files" | |
437 | ac_help="$ac_help | |
438 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
439 | ac_help="$ac_help | |
440 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
441 | ac_help="$ac_help | |
442 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
443 | ac_help="$ac_help | |
444 | --disable-gtktest Do not try to compile and run a test GTK program" | |
445 | ac_help="$ac_help | |
446 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
447 | ac_help="$ac_help | |
448 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
449 | ac_help="$ac_help | |
450 | --disable-gtktest Do not try to compile and run a test GTK program" | |
451 | ac_help="$ac_help | |
452 | --with-x use the X Window System" | |
453 | ac_help="$ac_help | |
454 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
455 | |
456 | # Initialize some variables set by options. | |
457 | # The variables have the same names as the options, with | |
458 | # dashes changed to underlines. | |
579d8138 VS |
459 | build=NONE |
460 | cache_file=./config.cache | |
10f2d63a | 461 | exec_prefix=NONE |
579d8138 | 462 | host=NONE |
10f2d63a | 463 | no_create= |
579d8138 | 464 | nonopt=NONE |
10f2d63a VZ |
465 | no_recursion= |
466 | prefix=NONE | |
467 | program_prefix=NONE | |
468 | program_suffix=NONE | |
469 | program_transform_name=s,x,x, | |
470 | silent= | |
471 | site= | |
472 | srcdir= | |
579d8138 | 473 | target=NONE |
10f2d63a VZ |
474 | verbose= |
475 | x_includes=NONE | |
476 | x_libraries=NONE | |
477 | bindir='${exec_prefix}/bin' | |
478 | sbindir='${exec_prefix}/sbin' | |
479 | libexecdir='${exec_prefix}/libexec' | |
480 | datadir='${prefix}/share' | |
481 | sysconfdir='${prefix}/etc' | |
482 | sharedstatedir='${prefix}/com' | |
483 | localstatedir='${prefix}/var' | |
484 | libdir='${exec_prefix}/lib' | |
485 | includedir='${prefix}/include' | |
486 | oldincludedir='/usr/include' | |
487 | infodir='${prefix}/info' | |
488 | mandir='${prefix}/man' | |
489 | ||
579d8138 VS |
490 | # Initialize some other variables. |
491 | subdirs= | |
492 | MFLAGS= MAKEFLAGS= | |
579d8138 VS |
493 | # Maximum number of lines to put in a shell here document. |
494 | ac_max_here_lines=12 | |
10f2d63a VZ |
495 | |
496 | ac_prev= | |
497 | for ac_option | |
498 | do | |
579d8138 | 499 | |
10f2d63a VZ |
500 | # If the previous option needs an argument, assign it. |
501 | if test -n "$ac_prev"; then | |
502 | eval "$ac_prev=\$ac_option" | |
503 | ac_prev= | |
504 | continue | |
505 | fi | |
506 | ||
579d8138 VS |
507 | case "$ac_option" in |
508 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
509 | *) ac_optarg= ;; | |
510 | esac | |
10f2d63a VZ |
511 | |
512 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
513 | ||
579d8138 | 514 | case "$ac_option" in |
10f2d63a VZ |
515 | |
516 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
517 | ac_prev=bindir ;; | |
518 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
579d8138 | 519 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
520 | |
521 | -build | --build | --buil | --bui | --bu) | |
579d8138 | 522 | ac_prev=build ;; |
10f2d63a | 523 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
579d8138 | 524 | build="$ac_optarg" ;; |
10f2d63a VZ |
525 | |
526 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
527 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
528 | ac_prev=cache_file ;; | |
529 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
530 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
579d8138 | 531 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
532 | |
533 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
534 | ac_prev=datadir ;; | |
535 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
536 | | --da=*) | |
579d8138 | 537 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
538 | |
539 | -disable-* | --disable-*) | |
579d8138 | 540 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 541 | # Reject names that are not valid shell variable names. |
579d8138 VS |
542 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
543 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
544 | fi | |
545 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
546 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
547 | |
548 | -enable-* | --enable-*) | |
579d8138 | 549 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 550 | # Reject names that are not valid shell variable names. |
579d8138 VS |
551 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
552 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
553 | fi | |
554 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
555 | case "$ac_option" in | |
556 | *=*) ;; | |
10f2d63a VZ |
557 | *) ac_optarg=yes ;; |
558 | esac | |
579d8138 | 559 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
560 | |
561 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
562 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
563 | | --exec | --exe | --ex) | |
564 | ac_prev=exec_prefix ;; | |
565 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
566 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
567 | | --exec=* | --exe=* | --ex=*) | |
579d8138 | 568 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
569 | |
570 | -gas | --gas | --ga | --g) | |
571 | # Obsolete; use --with-gas. | |
572 | with_gas=yes ;; | |
573 | ||
579d8138 VS |
574 | -help | --help | --hel | --he) |
575 | # Omit some internal or obsolete options to make the list less imposing. | |
576 | # This message is too long to be a string in the A/UX 3.1 sh. | |
577 | cat << EOF | |
578 | Usage: configure [options] [host] | |
579 | Options: [defaults in brackets after descriptions] | |
580 | Configuration: | |
581 | --cache-file=FILE cache test results in FILE | |
582 | --help print this message | |
583 | --no-create do not create output files | |
584 | --quiet, --silent do not print \`checking...' messages | |
585 | --version print the version of autoconf that created configure | |
586 | Directory and file names: | |
587 | --prefix=PREFIX install architecture-independent files in PREFIX | |
588 | [$ac_default_prefix] | |
589 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
590 | [same as prefix] | |
591 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
592 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
593 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
594 | --datadir=DIR read-only architecture-independent data in DIR | |
595 | [PREFIX/share] | |
596 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
597 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
598 | [PREFIX/com] | |
599 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
600 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
601 | --includedir=DIR C header files in DIR [PREFIX/include] | |
602 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
603 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
604 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
605 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
606 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
607 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
608 | --program-transform-name=PROGRAM | |
609 | run sed PROGRAM on installed program names | |
610 | EOF | |
611 | cat << EOF | |
612 | Host type: | |
613 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
614 | --host=HOST configure for HOST [guessed] | |
615 | --target=TARGET configure for TARGET [TARGET=HOST] | |
616 | Features and packages: | |
617 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
618 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
619 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
620 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
621 | --x-includes=DIR X include files are in DIR | |
622 | --x-libraries=DIR X library files are in DIR | |
623 | EOF | |
624 | if test -n "$ac_help"; then | |
625 | echo "--enable and --with options recognized:$ac_help" | |
626 | fi | |
627 | exit 0 ;; | |
10f2d63a VZ |
628 | |
629 | -host | --host | --hos | --ho) | |
579d8138 | 630 | ac_prev=host ;; |
10f2d63a | 631 | -host=* | --host=* | --hos=* | --ho=*) |
579d8138 | 632 | host="$ac_optarg" ;; |
10f2d63a VZ |
633 | |
634 | -includedir | --includedir | --includedi | --included | --include \ | |
635 | | --includ | --inclu | --incl | --inc) | |
636 | ac_prev=includedir ;; | |
637 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
638 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
579d8138 | 639 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
640 | |
641 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
642 | ac_prev=infodir ;; | |
643 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
579d8138 | 644 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
645 | |
646 | -libdir | --libdir | --libdi | --libd) | |
647 | ac_prev=libdir ;; | |
648 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
579d8138 | 649 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
650 | |
651 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
652 | | --libexe | --libex | --libe) | |
653 | ac_prev=libexecdir ;; | |
654 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
655 | | --libexe=* | --libex=* | --libe=*) | |
579d8138 | 656 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
657 | |
658 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
659 | | --localstate | --localstat | --localsta | --localst \ | |
660 | | --locals | --local | --loca | --loc | --lo) | |
661 | ac_prev=localstatedir ;; | |
662 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
663 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
664 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
579d8138 | 665 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
666 | |
667 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
668 | ac_prev=mandir ;; | |
669 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
579d8138 | 670 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
671 | |
672 | -nfp | --nfp | --nf) | |
673 | # Obsolete; use --without-fp. | |
674 | with_fp=no ;; | |
675 | ||
676 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
677 | | --no-cr | --no-c) | |
678 | no_create=yes ;; | |
679 | ||
680 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
681 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
682 | no_recursion=yes ;; | |
683 | ||
684 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
685 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
686 | | --oldin | --oldi | --old | --ol | --o) | |
687 | ac_prev=oldincludedir ;; | |
688 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
689 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
690 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
579d8138 | 691 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
692 | |
693 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
694 | ac_prev=prefix ;; | |
695 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
579d8138 | 696 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
697 | |
698 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
699 | | --program-pre | --program-pr | --program-p) | |
700 | ac_prev=program_prefix ;; | |
701 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
702 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
579d8138 | 703 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
704 | |
705 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
706 | | --program-suf | --program-su | --program-s) | |
707 | ac_prev=program_suffix ;; | |
708 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
709 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
579d8138 | 710 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
711 | |
712 | -program-transform-name | --program-transform-name \ | |
713 | | --program-transform-nam | --program-transform-na \ | |
714 | | --program-transform-n | --program-transform- \ | |
715 | | --program-transform | --program-transfor \ | |
716 | | --program-transfo | --program-transf \ | |
717 | | --program-trans | --program-tran \ | |
718 | | --progr-tra | --program-tr | --program-t) | |
719 | ac_prev=program_transform_name ;; | |
720 | -program-transform-name=* | --program-transform-name=* \ | |
721 | | --program-transform-nam=* | --program-transform-na=* \ | |
722 | | --program-transform-n=* | --program-transform-=* \ | |
723 | | --program-transform=* | --program-transfor=* \ | |
724 | | --program-transfo=* | --program-transf=* \ | |
725 | | --program-trans=* | --program-tran=* \ | |
726 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
579d8138 | 727 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
728 | |
729 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
730 | | -silent | --silent | --silen | --sile | --sil) | |
731 | silent=yes ;; | |
732 | ||
733 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
734 | ac_prev=sbindir ;; | |
735 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
736 | | --sbi=* | --sb=*) | |
579d8138 | 737 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
738 | |
739 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
740 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
741 | | --sharedst | --shareds | --shared | --share | --shar \ | |
742 | | --sha | --sh) | |
743 | ac_prev=sharedstatedir ;; | |
744 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
745 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
746 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
747 | | --sha=* | --sh=*) | |
579d8138 | 748 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
749 | |
750 | -site | --site | --sit) | |
751 | ac_prev=site ;; | |
752 | -site=* | --site=* | --sit=*) | |
579d8138 | 753 | site="$ac_optarg" ;; |
10f2d63a VZ |
754 | |
755 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
756 | ac_prev=srcdir ;; | |
757 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
579d8138 | 758 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
759 | |
760 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
761 | | --syscon | --sysco | --sysc | --sys | --sy) | |
762 | ac_prev=sysconfdir ;; | |
763 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
764 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
579d8138 | 765 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
766 | |
767 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
579d8138 | 768 | ac_prev=target ;; |
10f2d63a | 769 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
579d8138 | 770 | target="$ac_optarg" ;; |
10f2d63a VZ |
771 | |
772 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
773 | verbose=yes ;; | |
774 | ||
579d8138 | 775 | -version | --version | --versio | --versi | --vers) |
5c0a20c3 | 776 | echo "configure generated by autoconf version 2.12" |
579d8138 | 777 | exit 0 ;; |
10f2d63a VZ |
778 | |
779 | -with-* | --with-*) | |
579d8138 | 780 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 781 | # Reject names that are not valid shell variable names. |
579d8138 VS |
782 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
783 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
784 | fi | |
10f2d63a | 785 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
579d8138 VS |
786 | case "$ac_option" in |
787 | *=*) ;; | |
10f2d63a VZ |
788 | *) ac_optarg=yes ;; |
789 | esac | |
579d8138 | 790 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
791 | |
792 | -without-* | --without-*) | |
579d8138 | 793 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 794 | # Reject names that are not valid shell variable names. |
579d8138 VS |
795 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
796 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
797 | fi | |
798 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
799 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
800 | |
801 | --x) | |
802 | # Obsolete; use --with-x. | |
803 | with_x=yes ;; | |
804 | ||
805 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
806 | | --x-incl | --x-inc | --x-in | --x-i) | |
807 | ac_prev=x_includes ;; | |
808 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
809 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
579d8138 | 810 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
811 | |
812 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
813 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
814 | ac_prev=x_libraries ;; | |
815 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
816 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
579d8138 | 817 | x_libraries="$ac_optarg" ;; |
10f2d63a | 818 | |
579d8138 | 819 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
820 | ;; |
821 | ||
822 | *) | |
579d8138 VS |
823 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
824 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
825 | fi | |
826 | if test "x$nonopt" != xNONE; then | |
827 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
828 | fi | |
829 | nonopt="$ac_option" | |
10f2d63a VZ |
830 | ;; |
831 | ||
832 | esac | |
833 | done | |
834 | ||
835 | if test -n "$ac_prev"; then | |
579d8138 | 836 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
698dcdb6 VZ |
837 | fi |
838 | ||
579d8138 | 839 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
10f2d63a | 840 | |
579d8138 VS |
841 | # File descriptor usage: |
842 | # 0 standard input | |
843 | # 1 file creation | |
844 | # 2 errors and warnings | |
845 | # 3 some systems may open it to /dev/tty | |
846 | # 4 used on the Kubota Titan | |
847 | # 6 checking for... messages and results | |
848 | # 5 compiler messages saved in config.log | |
849 | if test "$silent" = yes; then | |
850 | exec 6>/dev/null | |
851 | else | |
852 | exec 6>&1 | |
853 | fi | |
854 | exec 5>./config.log | |
855 | ||
856 | echo "\ | |
857 | This file contains any messages produced by compilers while | |
858 | running configure, to aid debugging if configure makes a mistake. | |
859 | " 1>&5 | |
860 | ||
861 | # Strip out --no-create and --no-recursion so they do not pile up. | |
862 | # Also quote any args containing shell metacharacters. | |
863 | ac_configure_args= | |
864 | for ac_arg | |
10f2d63a | 865 | do |
579d8138 VS |
866 | case "$ac_arg" in |
867 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
868 | | --no-cr | --no-c) ;; | |
869 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
870 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
871 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
872 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
873 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
874 | esac |
875 | done | |
876 | ||
579d8138 VS |
877 | # NLS nuisances. |
878 | # Only set these to C if already set. These must not be set unconditionally | |
879 | # because not all systems understand e.g. LANG=C (notably SCO). | |
880 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
881 | # Non-C LC_CTYPE values break the ctype check. | |
882 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
883 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
884 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
885 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
10f2d63a | 886 | |
579d8138 VS |
887 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
888 | rm -rf conftest* confdefs.h | |
889 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
890 | echo > confdefs.h | |
10f2d63a | 891 | |
579d8138 VS |
892 | # A filename unique to this package, relative to the directory that |
893 | # configure is in, which we can look for to find out if srcdir is correct. | |
894 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
895 | |
896 | # Find the source files, if location was not specified. | |
897 | if test -z "$srcdir"; then | |
898 | ac_srcdir_defaulted=yes | |
899 | # Try the directory containing this script, then its parent. | |
900 | ac_prog=$0 | |
579d8138 | 901 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
10f2d63a VZ |
902 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
903 | srcdir=$ac_confdir | |
904 | if test ! -r $srcdir/$ac_unique_file; then | |
905 | srcdir=.. | |
906 | fi | |
907 | else | |
908 | ac_srcdir_defaulted=no | |
909 | fi | |
910 | if test ! -r $srcdir/$ac_unique_file; then | |
911 | if test "$ac_srcdir_defaulted" = yes; then | |
579d8138 | 912 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 913 | else |
579d8138 | 914 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
915 | fi |
916 | fi | |
579d8138 | 917 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 918 | |
10f2d63a VZ |
919 | # Prefer explicitly selected file to automatically selected ones. |
920 | if test -z "$CONFIG_SITE"; then | |
921 | if test "x$prefix" != xNONE; then | |
922 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
923 | else | |
924 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
925 | fi | |
926 | fi | |
927 | for ac_site_file in $CONFIG_SITE; do | |
928 | if test -r "$ac_site_file"; then | |
579d8138 | 929 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
930 | . "$ac_site_file" |
931 | fi | |
932 | done | |
933 | ||
934 | if test -r "$cache_file"; then | |
579d8138 VS |
935 | echo "loading cache $cache_file" |
936 | . $cache_file | |
10f2d63a | 937 | else |
579d8138 VS |
938 | echo "creating cache $cache_file" |
939 | > $cache_file | |
10f2d63a VZ |
940 | fi |
941 | ||
942 | ac_ext=c | |
579d8138 | 943 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 944 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 945 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 946 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
947 | cross_compiling=$ac_cv_prog_cc_cross |
948 | ||
579d8138 VS |
949 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
950 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
951 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
952 | ac_n= ac_c=' | |
953 | ' ac_t=' ' | |
954 | else | |
955 | ac_n=-n ac_c= ac_t= | |
956 | fi | |
10f2d63a | 957 | else |
579d8138 | 958 | ac_n= ac_c='\c' ac_t= |
10f2d63a | 959 | fi |
579d8138 VS |
960 | |
961 | ||
10f2d63a | 962 | |
7c66a493 VZ |
963 | ac_aux_dir= |
964 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
965 | if test -f $ac_dir/install-sh; then | |
966 | ac_aux_dir=$ac_dir | |
967 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
968 | break | |
969 | elif test -f $ac_dir/install.sh; then | |
970 | ac_aux_dir=$ac_dir | |
971 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
972 | break | |
973 | fi | |
974 | done | |
975 | if test -z "$ac_aux_dir"; then | |
579d8138 | 976 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 977 | fi |
579d8138 VS |
978 | ac_config_guess=$ac_aux_dir/config.guess |
979 | ac_config_sub=$ac_aux_dir/config.sub | |
980 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 981 | |
579d8138 VS |
982 | |
983 | # Do some error checking and defaulting for the host and target type. | |
984 | # The inputs are: | |
985 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
986 | # | |
987 | # The rules are: | |
988 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
989 | # same time. | |
990 | # 2. Host defaults to nonopt. | |
991 | # 3. If nonopt is not specified, then host defaults to the current host, | |
992 | # as determined by config.guess. | |
993 | # 4. Target and build default to nonopt. | |
994 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
995 | |
996 | # The aliases save the names the user supplied, while $host etc. | |
997 | # will get canonicalized. | |
579d8138 VS |
998 | case $host---$target---$nonopt in |
999 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1000 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1001 | esac | |
1002 | ||
1003 | ||
1004 | # Make sure we can run config.sub. | |
5c0a20c3 | 1005 | if $ac_config_sub sun4 >/dev/null 2>&1; then : |
579d8138 VS |
1006 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
1007 | fi | |
1008 | ||
1009 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
5c0a20c3 | 1010 | echo "configure:1011: checking host system type" >&5 |
579d8138 VS |
1011 | |
1012 | host_alias=$host | |
1013 | case "$host_alias" in | |
1014 | NONE) | |
1015 | case $nonopt in | |
1016 | NONE) | |
5c0a20c3 | 1017 | if host_alias=`$ac_config_guess`; then : |
579d8138 VS |
1018 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
1019 | fi ;; | |
1020 | *) host_alias=$nonopt ;; | |
1021 | esac ;; | |
1022 | esac | |
1023 | ||
5c0a20c3 | 1024 | host=`$ac_config_sub $host_alias` |
579d8138 VS |
1025 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1026 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1027 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1028 | echo "$ac_t""$host" 1>&6 | |
1029 | ||
1030 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
5c0a20c3 | 1031 | echo "configure:1032: checking target system type" >&5 |
579d8138 VS |
1032 | |
1033 | target_alias=$target | |
1034 | case "$target_alias" in | |
1035 | NONE) | |
1036 | case $nonopt in | |
1037 | NONE) target_alias=$host_alias ;; | |
1038 | *) target_alias=$nonopt ;; | |
1039 | esac ;; | |
1040 | esac | |
1041 | ||
5c0a20c3 | 1042 | target=`$ac_config_sub $target_alias` |
579d8138 VS |
1043 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1044 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1045 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1046 | echo "$ac_t""$target" 1>&6 | |
1047 | ||
1048 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
5c0a20c3 | 1049 | echo "configure:1050: checking build system type" >&5 |
579d8138 VS |
1050 | |
1051 | build_alias=$build | |
1052 | case "$build_alias" in | |
1053 | NONE) | |
1054 | case $nonopt in | |
1055 | NONE) build_alias=$host_alias ;; | |
1056 | *) build_alias=$nonopt ;; | |
1057 | esac ;; | |
1058 | esac | |
1059 | ||
5c0a20c3 | 1060 | build=`$ac_config_sub $build_alias` |
579d8138 VS |
1061 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1062 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1063 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1064 | echo "$ac_t""$build" 1>&6 | |
1065 | ||
1066 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1067 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1068 | NONENONEs,x,x, && | |
1069 | program_prefix=${target_alias}- | |
579d8138 VS |
1070 | |
1071 | ||
698dcdb6 | 1072 | |
10f2d63a | 1073 | WX_MAJOR_VERSION_NUMBER=2 |
37d403aa | 1074 | WX_MINOR_VERSION_NUMBER=3 |
a0d927d1 | 1075 | WX_RELEASE_NUMBER=3 |
10f2d63a | 1076 | |
10f2d63a | 1077 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1078 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1079 | |
978f1259 RL |
1080 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1081 | ||
a0d927d1 | 1082 | WX_CURRENT=2 |
6426998c RL |
1083 | WX_REVISION=0 |
1084 | WX_AGE=0 | |
1085 | ||
579d8138 VS |
1086 | |
1087 | ||
10f2d63a VZ |
1088 | USE_UNIX=1 |
1089 | USE_WIN32=0 | |
f9bc1684 | 1090 | USE_DOS=0 |
b12915c1 | 1091 | USE_BEOS=0 |
1216f52d | 1092 | USE_MAC=0 |
b12915c1 | 1093 | |
10f2d63a VZ |
1094 | USE_LINUX= |
1095 | USE_SGI= | |
1096 | USE_HPUX= | |
1097 | USE_SYSV= | |
1098 | USE_SVR4= | |
1099 | USE_AIX= | |
1100 | USE_SUN= | |
1101 | USE_SOLARIS= | |
1102 | USE_SUNOS= | |
1103 | USE_ALPHA= | |
1104 | USE_OSF= | |
1105 | USE_BSD= | |
f11bdd03 | 1106 | USE_DARWIN= |
10f2d63a | 1107 | USE_FREEBSD= |
95c8801c | 1108 | USE_OPENBSD= |
f6bcfd97 | 1109 | USE_NETBSD= |
10f2d63a VZ |
1110 | USE_VMS= |
1111 | USE_ULTRIX= | |
10f2d63a VZ |
1112 | USE_DATA_GENERAL= |
1113 | ||
ab9b9eab VZ |
1114 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1115 | ||
f79bd02d | 1116 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1117 | |
1118 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1119 | DEFAULT_wxUSE_MAC=0 |
1120 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1121 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1122 | DEFAULT_wxUSE_MOTIF=0 |
1123 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1124 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1125 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1126 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1127 | |
1128 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1129 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1130 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1131 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1132 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1133 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1134 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1135 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1136 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1137 | |
d6a55c4b | 1138 | PROGRAM_EXT= |
3a922bb4 | 1139 | SO_SUFFIX=so |
d6a55c4b | 1140 | |
10f2d63a VZ |
1141 | case "${host}" in |
1142 | *-hp-hpux* ) | |
1143 | USE_HPUX=1 | |
1144 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1145 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1146 | SO_SUFFIX=sl |
579d8138 | 1147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1148 | #define __HPUX__ 1 |
1149 | EOF | |
1150 | ||
1151 | ;; | |
1152 | *-*-linux* ) | |
1153 | USE_LINUX=1 | |
579d8138 | 1154 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1155 | #define __LINUX__ 1 |
1156 | EOF | |
1157 | ||
1158 | TMP=`uname -m` | |
1159 | if test "x$TMP" = "xalpha"; then | |
1160 | USE_ALPHA=1 | |
579d8138 | 1161 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1162 | #define __ALPHA__ 1 |
1163 | EOF | |
1164 | ||
1165 | fi | |
1166 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1167 | ;; | |
1168 | *-*-irix5* | *-*-irix6* ) | |
1169 | USE_SGI=1 | |
1170 | USE_SVR4=1 | |
579d8138 | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1172 | #define __SGI__ 1 |
1173 | EOF | |
1174 | ||
579d8138 | 1175 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1176 | #define __SVR4__ 1 |
1177 | EOF | |
1178 | ||
1179 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1180 | ;; | |
1181 | *-*-solaris2* ) | |
1182 | USE_SUN=1 | |
1183 | USE_SOLARIS=1 | |
1184 | USE_SVR4=1 | |
579d8138 | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1186 | #define __SUN__ 1 |
1187 | EOF | |
1188 | ||
579d8138 | 1189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1190 | #define __SOLARIS__ 1 |
1191 | EOF | |
1192 | ||
579d8138 | 1193 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1194 | #define __SVR4__ 1 |
1195 | EOF | |
1196 | ||
1197 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1198 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1199 | ;; |
1200 | *-*-sunos4* ) | |
1201 | USE_SUN=1 | |
1202 | USE_SUNOS=1 | |
1203 | USE_BSD=1 | |
579d8138 | 1204 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1205 | #define __SUN__ 1 |
1206 | EOF | |
1207 | ||
579d8138 | 1208 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1209 | #define __SUNOS__ 1 |
1210 | EOF | |
1211 | ||
579d8138 | 1212 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1213 | #define __BSD__ 1 |
1214 | EOF | |
1215 | ||
1216 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1217 | ;; | |
f6bcfd97 | 1218 | *-*-freebsd*) |
10f2d63a VZ |
1219 | USE_BSD=1 |
1220 | USE_FREEBSD=1 | |
579d8138 | 1221 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1222 | #define __FREEBSD__ 1 |
1223 | EOF | |
1224 | ||
579d8138 | 1225 | cat >> confdefs.h <<\EOF |
10f2d63a | 1226 | #define __BSD__ 1 |
95c8801c VS |
1227 | EOF |
1228 | ||
1229 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1230 | ;; | |
1231 | *-*-openbsd*) | |
1232 | USE_BSD=1 | |
1233 | USE_OPENBSD=1 | |
579d8138 | 1234 | cat >> confdefs.h <<\EOF |
95c8801c VS |
1235 | #define __FREEBSD__ 1 |
1236 | EOF | |
1237 | ||
579d8138 | 1238 | cat >> confdefs.h <<\EOF |
95c8801c | 1239 | #define __OPENBSD__ 1 |
f6bcfd97 BP |
1240 | EOF |
1241 | ||
1242 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1243 | ;; | |
1244 | *-*-netbsd*) | |
1245 | USE_BSD=1 | |
1246 | USE_NETBSD=1 | |
579d8138 | 1247 | cat >> confdefs.h <<\EOF |
f6bcfd97 BP |
1248 | #define __FREEBSD__ 1 |
1249 | EOF | |
1250 | ||
579d8138 | 1251 | cat >> confdefs.h <<\EOF |
f6bcfd97 | 1252 | #define __NETBSD__ 1 |
10f2d63a VZ |
1253 | EOF |
1254 | ||
1255 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1256 | ;; | |
1257 | *-*-osf* ) | |
1258 | USE_ALPHA=1 | |
1259 | USE_OSF=1 | |
579d8138 | 1260 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1261 | #define __ALPHA__ 1 |
1262 | EOF | |
1263 | ||
579d8138 | 1264 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1265 | #define __OSF__ 1 |
1266 | EOF | |
1267 | ||
1268 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1269 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1270 | ;; |
1271 | *-*-dgux5* ) | |
1272 | USE_ALPHA=1 | |
1273 | USE_SVR4=1 | |
579d8138 | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1275 | #define __ALPHA__ 1 |
1276 | EOF | |
1277 | ||
579d8138 | 1278 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1279 | #define __SVR4__ 1 |
1280 | EOF | |
1281 | ||
1282 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1283 | ;; | |
1284 | *-*-sysv5* ) | |
1285 | USE_SYSV=1 | |
1286 | USE_SVR4=1 | |
579d8138 | 1287 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1288 | #define __SYSV__ 1 |
1289 | EOF | |
1290 | ||
579d8138 | 1291 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1292 | #define __SVR4__ 1 |
1293 | EOF | |
1294 | ||
1295 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1296 | ;; | |
1297 | *-*-aix* ) | |
1298 | USE_AIX=1 | |
1299 | USE_SYSV=1 | |
1300 | USE_SVR4=1 | |
321d2b14 | 1301 | SO_SUFFIX=a |
579d8138 | 1302 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1303 | #define __AIX__ 1 |
1304 | EOF | |
1305 | ||
579d8138 | 1306 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1307 | #define __SYSV__ 1 |
1308 | EOF | |
1309 | ||
579d8138 | 1310 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1311 | #define __SVR4__ 1 |
1312 | EOF | |
1313 | ||
1314 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1315 | ;; | |
1316 | ||
1c8183e2 | 1317 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1318 | SO_SUFFIX=dll |
cf27ef00 | 1319 | PROGRAM_EXT=".exe" |
7b7a7637 | 1320 | RESCOMP=windres |
10f2d63a VZ |
1321 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1322 | ;; | |
1323 | ||
f9bc1684 VS |
1324 | *-pc-msdosdjgpp ) |
1325 | USE_UNIX=0 | |
1326 | USE_DOS=1 | |
579d8138 | 1327 | cat >> confdefs.h <<\EOF |
f9bc1684 VS |
1328 | #define __DOS__ 1 |
1329 | EOF | |
1330 | ||
1331 | PROGRAM_EXT=".exe" | |
1332 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1333 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1334 | ;; |
1335 | ||
6fa882bd | 1336 | *-pc-os2_emx | *-pc-os2-emx ) |
579d8138 | 1337 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
1338 | #define __EMX__ 1 |
1339 | EOF | |
1340 | ||
cf27ef00 | 1341 | PROGRAM_EXT=".exe" |
e07802fc | 1342 | DEFAULT_DEFAULT_wxUSE_PM=1 |
d558c907 | 1343 | LIBS="$LIBS -lstdcpp" |
10f2d63a VZ |
1344 | ;; |
1345 | ||
d08b457b GD |
1346 | powerpc-*-darwin* ) |
1347 | USE_BSD=1 | |
f11bdd03 | 1348 | USE_DARWIN=1 |
3a922bb4 | 1349 | SO_SUFFIX=dylib |
579d8138 | 1350 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1351 | #define __BSD__ 1 |
b4085ce6 GD |
1352 | EOF |
1353 | ||
579d8138 | 1354 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1355 | #define __DARWIN__ 1 |
d08b457b GD |
1356 | EOF |
1357 | ||
579d8138 | 1358 | cat >> confdefs.h <<\EOF |
d08b457b | 1359 | #define __POWERPC__ 1 |
b4085ce6 GD |
1360 | EOF |
1361 | ||
1362 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1363 | ;; | |
1364 | ||
b12915c1 VZ |
1365 | *-*-beos* ) |
1366 | USE_BEOS=1 | |
579d8138 | 1367 | cat >> confdefs.h <<\EOF |
b12915c1 VZ |
1368 | #define __BEOS__ 1 |
1369 | EOF | |
1370 | ||
1371 | ;; | |
1372 | ||
10f2d63a | 1373 | *) |
579d8138 | 1374 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1375 | esac |
1376 | ||
579d8138 VS |
1377 | |
1378 | ||
1379 | ||
1380 | wx_arg_cache_file="configarg.cache" | |
1381 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1382 | rm -f ${wx_arg_cache_file}.tmp |
1383 | touch ${wx_arg_cache_file}.tmp | |
1384 | touch ${wx_arg_cache_file} | |
579d8138 | 1385 | |
10f2d63a VZ |
1386 | |
1387 | DEBUG_CONFIGURE=0 | |
1388 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1389 | DEFAULT_wxUSE_UNIVERSAL=no |
1390 | ||
d8356fa3 VZ |
1391 | DEFAULT_wxUSE_NANOX=no |
1392 | ||
10f2d63a VZ |
1393 | DEFAULT_wxUSE_THREADS=yes |
1394 | ||
1395 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1396 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1397 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1398 | DEFAULT_wxUSE_PROFILE=no |
1399 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1400 | DEFAULT_wxUSE_NO_RTTI=no |
1401 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1402 | DEFAULT_wxUSE_PERMISSIVE=no |
1403 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1404 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1405 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1406 | DEFAULT_wxUSE_MEM_TRACING=no | |
1407 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1408 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1409 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1410 | DEFAULT_wxUSE_APPLE_IEEE=no |
1411 | ||
1412 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1413 | DEFAULT_wxUSE_LOGWINDOW=no |
1414 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1415 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1416 | |
1417 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1418 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1419 | |
3e44f09d | 1420 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1421 | DEFAULT_wxUSE_ZLIB=no |
1422 | DEFAULT_wxUSE_LIBPNG=no | |
1423 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1424 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1425 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1426 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1427 | |
eb4efbdc | 1428 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1429 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1430 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1431 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1432 | DEFAULT_wxUSE_DATETIME=no | |
1433 | DEFAULT_wxUSE_TIMEDATE=no | |
1434 | DEFAULT_wxUSE_TIMER=no | |
1435 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1436 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1437 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1438 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1439 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1440 | DEFAULT_wxUSE_WAVE=no |
1441 | DEFAULT_wxUSE_INTL=no | |
1442 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1443 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1444 | DEFAULT_wxUSE_STREAMS=no |
1445 | DEFAULT_wxUSE_SOCKETS=no | |
1446 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
10f2d63a | 1447 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1448 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1449 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1450 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1451 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1452 | |
1453 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1454 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1455 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1456 | ||
1457 | DEFAULT_wxUSE_X_RESOURCES=no | |
1458 | DEFAULT_wxUSE_CLIPBOARD=no | |
1459 | DEFAULT_wxUSE_TOOLTIPS=no | |
1460 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1461 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1462 | DEFAULT_wxUSE_SPLINES=no |
1463 | ||
1464 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1465 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1466 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1467 | ||
1468 | DEFAULT_wxUSE_PROLOGIO=no | |
1469 | DEFAULT_wxUSE_RESOURCES=no | |
1470 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1471 | DEFAULT_wxUSE_IPC=no | |
1472 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1473 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1474 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1475 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1476 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1477 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1478 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1479 | DEFAULT_wxUSE_PROTOCOL=no | |
1480 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1481 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1482 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1483 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1484 | |
10f2d63a | 1485 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1486 | DEFAULT_wxUSE_CHOICEDLG=no |
1487 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1488 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1489 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1490 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1491 | DEFAULT_wxUSE_FONTDLG=no |
1492 | DEFAULT_wxUSE_MSGDLG=no | |
1493 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1494 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1495 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1496 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1497 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1498 | DEFAULT_wxUSE_WIZARDDLG=no |
1499 | ||
1e6feb95 | 1500 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1501 | DEFAULT_wxUSE_MINIFRAME=no |
1502 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1503 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1504 | DEFAULT_wxUSE_FS_INET=no |
1505 | DEFAULT_wxUSE_FS_ZIP=no | |
1506 | DEFAULT_wxUSE_BUSYINFO=no | |
1507 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1508 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1509 | |
1510 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1511 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1512 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1513 | DEFAULT_wxUSE_CALCTRL=no |
1514 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_CHECKBOX=no |
1516 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1517 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1518 | DEFAULT_wxUSE_COMBOBOX=no |
1519 | DEFAULT_wxUSE_GAUGE=no | |
1520 | DEFAULT_wxUSE_GRID=no | |
1521 | DEFAULT_wxUSE_NEW_GRID=no | |
1522 | DEFAULT_wxUSE_IMAGLIST=no | |
1523 | DEFAULT_wxUSE_LISTBOX=no | |
1524 | DEFAULT_wxUSE_LISTCTRL=no | |
1525 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1526 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1527 | DEFAULT_wxUSE_RADIOBOX=no |
1528 | DEFAULT_wxUSE_RADIOBTN=no | |
1529 | DEFAULT_wxUSE_SASH=no | |
1530 | DEFAULT_wxUSE_SCROLLBAR=no | |
1531 | DEFAULT_wxUSE_SLIDER=no | |
1532 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1533 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1534 | DEFAULT_wxUSE_SPLITTER=no |
1535 | DEFAULT_wxUSE_STATBMP=no | |
1536 | DEFAULT_wxUSE_STATBOX=no | |
1537 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1538 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1539 | DEFAULT_wxUSE_STATUSBAR=yes |
1540 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1541 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1542 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1543 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1544 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1545 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1546 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1547 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1548 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1549 | |
1550 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1551 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1552 | DEFAULT_wxUSE_WCSRTOMBS=no |
1553 | ||
edae8572 | 1554 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1555 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1556 | DEFAULT_wxUSE_GIF=no |
1557 | DEFAULT_wxUSE_PCX=no | |
1558 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1559 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1560 | DEFAULT_wxUSE_XPM=no |
658974ae | 1561 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1562 | else |
1e6feb95 VZ |
1563 | DEFAULT_wxUSE_UNIVERSAL=no |
1564 | ||
d8356fa3 VZ |
1565 | DEFAULT_wxUSE_NANOX=no |
1566 | ||
10f2d63a VZ |
1567 | DEFAULT_wxUSE_THREADS=yes |
1568 | ||
1569 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1570 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1571 | DEFAULT_wxUSE_OPTIMISE=yes |
1572 | DEFAULT_wxUSE_PROFILE=no | |
1573 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1574 | DEFAULT_wxUSE_NO_RTTI=no |
1575 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1576 | DEFAULT_wxUSE_PERMISSIVE=no |
1577 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1578 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1579 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1580 | DEFAULT_wxUSE_MEM_TRACING=no | |
1581 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1582 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1583 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1584 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1585 | ||
1586 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1587 | DEFAULT_wxUSE_LOGWINDOW=yes |
1588 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1589 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1590 | |
1591 | DEFAULT_wxUSE_GUI=yes | |
1592 | ||
831b3152 | 1593 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1594 | DEFAULT_wxUSE_ZLIB=yes |
1595 | DEFAULT_wxUSE_LIBPNG=yes | |
1596 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1597 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1598 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1599 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1600 | |
eb4efbdc | 1601 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1602 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1603 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1604 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1605 | DEFAULT_wxUSE_DATETIME=yes | |
1606 | DEFAULT_wxUSE_TIMEDATE=no | |
1607 | DEFAULT_wxUSE_TIMER=yes | |
1608 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1609 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1610 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1611 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1612 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1613 | DEFAULT_wxUSE_WAVE=no |
1614 | DEFAULT_wxUSE_INTL=yes | |
1615 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1616 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1617 | DEFAULT_wxUSE_STREAMS=yes |
1618 | DEFAULT_wxUSE_SOCKETS=yes | |
1619 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
10f2d63a | 1620 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1621 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1622 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1623 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1624 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1625 | |
1626 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1627 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1628 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1629 | ||
1630 | DEFAULT_wxUSE_X_RESOURCES=no | |
1631 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1632 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1633 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1634 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1635 | DEFAULT_wxUSE_SPLINES=yes |
1636 | ||
1637 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1638 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1639 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1640 | ||
1641 | DEFAULT_wxUSE_PROLOGIO=yes | |
1642 | DEFAULT_wxUSE_RESOURCES=yes | |
1643 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
1644 | DEFAULT_wxUSE_IPC=yes | |
1645 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1646 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1647 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1648 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1649 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1650 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1651 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1652 | DEFAULT_wxUSE_PROTOCOL=yes |
1653 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1654 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1655 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1656 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1657 | |
1658 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1659 | DEFAULT_wxUSE_CHOICEDLG=yes |
1660 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1661 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1662 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1663 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1664 | DEFAULT_wxUSE_FONTDLG=yes |
1665 | DEFAULT_wxUSE_MSGDLG=yes | |
1666 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1667 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1668 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1669 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1670 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1671 | DEFAULT_wxUSE_WIZARDDLG=yes |
1672 | ||
1e6feb95 | 1673 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1674 | DEFAULT_wxUSE_MINIFRAME=yes |
1675 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1676 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1677 | DEFAULT_wxUSE_FS_INET=yes |
1678 | DEFAULT_wxUSE_FS_ZIP=yes | |
1679 | DEFAULT_wxUSE_BUSYINFO=yes | |
1680 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1681 | DEFAULT_wxUSE_VALIDATORS=yes | |
1682 | ||
1683 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1684 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1685 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1686 | DEFAULT_wxUSE_CALCTRL=yes |
1687 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1688 | DEFAULT_wxUSE_CHECKBOX=yes |
1689 | DEFAULT_wxUSE_CHECKLST=yes | |
1690 | DEFAULT_wxUSE_CHOICE=yes | |
1691 | DEFAULT_wxUSE_COMBOBOX=yes | |
1692 | DEFAULT_wxUSE_GAUGE=yes | |
1693 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1694 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1695 | DEFAULT_wxUSE_IMAGLIST=yes |
1696 | DEFAULT_wxUSE_LISTBOX=yes | |
1697 | DEFAULT_wxUSE_LISTCTRL=yes | |
1698 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1699 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1700 | DEFAULT_wxUSE_RADIOBOX=yes |
1701 | DEFAULT_wxUSE_RADIOBTN=yes | |
1702 | DEFAULT_wxUSE_SASH=yes | |
1703 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1704 | DEFAULT_wxUSE_SLIDER=yes | |
1705 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1706 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1707 | DEFAULT_wxUSE_SPLITTER=yes |
1708 | DEFAULT_wxUSE_STATBMP=yes | |
1709 | DEFAULT_wxUSE_STATBOX=yes | |
1710 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1711 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1712 | DEFAULT_wxUSE_STATUSBAR=yes |
1713 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1714 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1715 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1716 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1717 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1718 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1719 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1720 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1721 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1722 | |
1723 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1724 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1725 | DEFAULT_wxUSE_WCSRTOMBS=no |
1726 | ||
edae8572 | 1727 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1728 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1729 | DEFAULT_wxUSE_GIF=yes |
1730 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1731 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1732 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1733 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1734 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1735 | fi |
1736 | ||
579d8138 VS |
1737 | |
1738 | ||
10f2d63a VZ |
1739 | for toolkit in `echo $ALL_TOOLKITS`; do |
1740 | LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}` | |
1741 | if test "x$LINE" != x ; then | |
1742 | has_toolkit_in_cache=1 | |
1743 | eval "DEFAULT_$LINE" | |
1744 | eval "CACHE_$toolkit=1" | |
1745 | fi | |
1746 | done | |
1747 | ||
579d8138 VS |
1748 | |
1749 | ||
1750 | echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6 | |
5c0a20c3 | 1751 | echo "configure:1752: checking for --enable-gui" >&5 |
10f2d63a VZ |
1752 | no_cache=0 |
1753 | # Check whether --enable-gui or --disable-gui was given. | |
1754 | if test "${enable_gui+set}" = set; then | |
1755 | enableval="$enable_gui" | |
579d8138 | 1756 | |
10f2d63a VZ |
1757 | if test "$enableval" = yes; then |
1758 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1759 | else | |
1760 | ac_cv_use_gui='wxUSE_GUI=no' | |
1761 | fi | |
579d8138 | 1762 | |
10f2d63a | 1763 | else |
579d8138 | 1764 | |
10f2d63a VZ |
1765 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1766 | if test "x$LINE" != x ; then | |
1767 | eval "DEFAULT_$LINE" | |
1768 | else | |
1769 | no_cache=1 | |
1770 | fi | |
1771 | ||
1772 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
579d8138 VS |
1773 | |
1774 | fi | |
10f2d63a VZ |
1775 | |
1776 | ||
1777 | eval "$ac_cv_use_gui" | |
1778 | if test "$no_cache" != 1; then | |
1779 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1780 | fi | |
1781 | ||
1782 | if test "$wxUSE_GUI" = yes; then | |
579d8138 | 1783 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1784 | else |
579d8138 | 1785 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1786 | fi |
579d8138 | 1787 | |
10f2d63a | 1788 | |
b12915c1 | 1789 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1790 | |
579d8138 VS |
1791 | |
1792 | echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6 | |
5c0a20c3 | 1793 | echo "configure:1794: checking for --enable-universal" >&5 |
1e6feb95 VZ |
1794 | no_cache=0 |
1795 | # Check whether --enable-universal or --disable-universal was given. | |
1796 | if test "${enable_universal+set}" = set; then | |
1797 | enableval="$enable_universal" | |
579d8138 | 1798 | |
1e6feb95 VZ |
1799 | if test "$enableval" = yes; then |
1800 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1801 | else | |
1802 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1803 | fi | |
579d8138 | 1804 | |
1e6feb95 | 1805 | else |
579d8138 | 1806 | |
1e6feb95 VZ |
1807 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1808 | if test "x$LINE" != x ; then | |
1809 | eval "DEFAULT_$LINE" | |
1810 | else | |
1811 | no_cache=1 | |
1812 | fi | |
1813 | ||
1814 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
579d8138 VS |
1815 | |
1816 | fi | |
1e6feb95 VZ |
1817 | |
1818 | ||
1819 | eval "$ac_cv_use_universal" | |
1820 | if test "$no_cache" != 1; then | |
1821 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1822 | fi | |
1823 | ||
1824 | if test "$wxUSE_UNIVERSAL" = yes; then | |
579d8138 | 1825 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1826 | else |
579d8138 | 1827 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1828 | fi |
579d8138 | 1829 | |
10f2d63a VZ |
1830 | # Check whether --with-gtk or --without-gtk was given. |
1831 | if test "${with_gtk+set}" = set; then | |
1832 | withval="$with_gtk" | |
1833 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
579d8138 | 1834 | fi |
10f2d63a VZ |
1835 | |
1836 | # Check whether --with-motif or --without-motif was given. | |
1837 | if test "${with_motif+set}" = set; then | |
1838 | withval="$with_motif" | |
1839 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
579d8138 | 1840 | fi |
10f2d63a | 1841 | |
b4085ce6 GD |
1842 | # Check whether --with-mac or --without-mac was given. |
1843 | if test "${with_mac+set}" = set; then | |
1844 | withval="$with_mac" | |
1845 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
579d8138 | 1846 | fi |
b4085ce6 | 1847 | |
10f2d63a VZ |
1848 | # Check whether --with-wine or --without-wine was given. |
1849 | if test "${with_wine+set}" = set; then | |
1850 | withval="$with_wine" | |
1851 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
579d8138 | 1852 | fi |
10f2d63a | 1853 | |
77e13408 RL |
1854 | # Check whether --with-msw or --without-msw was given. |
1855 | if test "${with_msw+set}" = set; then | |
1856 | withval="$with_msw" | |
b4efce5e | 1857 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
579d8138 | 1858 | fi |
10f2d63a | 1859 | |
e07802fc VZ |
1860 | # Check whether --with-pm or --without-pm was given. |
1861 | if test "${with_pm+set}" = set; then | |
1862 | withval="$with_pm" | |
1863 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
579d8138 | 1864 | fi |
698dcdb6 | 1865 | |
1e6feb95 VZ |
1866 | # Check whether --with-mgl or --without-mgl was given. |
1867 | if test "${with_mgl+set}" = set; then | |
1868 | withval="$with_mgl" | |
6c657b52 | 1869 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
579d8138 | 1870 | fi |
1e6feb95 | 1871 | |
1725144d RR |
1872 | # Check whether --with-microwin or --without-microwin was given. |
1873 | if test "${with_microwin+set}" = set; then | |
1874 | withval="$with_microwin" | |
1875 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
579d8138 | 1876 | fi |
1725144d | 1877 | |
f79bd02d JS |
1878 | # Check whether --with-x11 or --without-x11 was given. |
1879 | if test "${with_x11+set}" = set; then | |
1880 | withval="$with_x11" | |
3c011993 | 1881 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
579d8138 | 1882 | fi |
10f2d63a | 1883 | |
579d8138 VS |
1884 | |
1885 | echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6 | |
5c0a20c3 | 1886 | echo "configure:1887: checking for --enable-nanox" >&5 |
d8356fa3 | 1887 | no_cache=0 |
ba875e66 VZ |
1888 | # Check whether --enable-nanox or --disable-nanox was given. |
1889 | if test "${enable_nanox+set}" = set; then | |
1890 | enableval="$enable_nanox" | |
579d8138 | 1891 | |
d8356fa3 | 1892 | if test "$enableval" = yes; then |
ba875e66 | 1893 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1894 | else |
ba875e66 | 1895 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1896 | fi |
579d8138 | 1897 | |
d8356fa3 | 1898 | else |
579d8138 | 1899 | |
d8356fa3 VZ |
1900 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1901 | if test "x$LINE" != x ; then | |
1902 | eval "DEFAULT_$LINE" | |
1903 | else | |
1904 | no_cache=1 | |
1905 | fi | |
1906 | ||
ba875e66 | 1907 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
579d8138 VS |
1908 | |
1909 | fi | |
d8356fa3 VZ |
1910 | |
1911 | ||
ba875e66 | 1912 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1913 | if test "$no_cache" != 1; then |
ba875e66 | 1914 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1915 | fi |
1916 | ||
1917 | if test "$wxUSE_NANOX" = yes; then | |
579d8138 | 1918 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1919 | else |
579d8138 | 1920 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1921 | fi |
579d8138 | 1922 | |
d8356fa3 | 1923 | |
8168de4c VZ |
1924 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
1925 | if test "${enable_gtk2+set}" = set; then | |
1926 | enableval="$enable_gtk2" | |
9e691f46 | 1927 | wxUSE_GTK2="yes" |
10f2d63a | 1928 | else |
9e691f46 | 1929 | wxUSE_GTK2="no" |
579d8138 VS |
1930 | fi |
1931 | ||
703e0a69 | 1932 | |
328a083c | 1933 | |
579d8138 | 1934 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
5c0a20c3 | 1935 | echo "configure:1936: checking for --with-libpng" >&5 |
579d8138 VS |
1936 | no_cache=0 |
1937 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
1938 | if test "${with_libpng+set}" = set; then |
1939 | withval="$with_libpng" | |
579d8138 | 1940 | |
10f2d63a | 1941 | if test "$withval" = yes; then |
b12915c1 | 1942 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1943 | elif test "$withval" = no; then |
b12915c1 | 1944 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1945 | elif test "$withval" = sys; then |
1946 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1947 | elif test "$withval" = builtin; then |
1948 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1949 | else |
579d8138 | 1950 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1951 | fi |
579d8138 | 1952 | |
10f2d63a | 1953 | else |
579d8138 | 1954 | |
b12915c1 | 1955 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
1956 | if test "x$LINE" != x ; then |
1957 | eval "DEFAULT_$LINE" | |
1958 | else | |
1959 | no_cache=1 | |
1960 | fi | |
1961 | ||
b12915c1 | 1962 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
579d8138 VS |
1963 | |
1964 | fi | |
10f2d63a VZ |
1965 | |
1966 | ||
b12915c1 | 1967 | eval "$ac_cv_use_libpng" |
10f2d63a | 1968 | if test "$no_cache" != 1; then |
b12915c1 | 1969 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
1970 | fi |
1971 | ||
b12915c1 | 1972 | if test "$wxUSE_LIBPNG" = yes; then |
579d8138 | 1973 | echo "$ac_t""yes" 1>&6 |
422107f9 | 1974 | elif test "$wxUSE_LIBPNG" = no; then |
579d8138 | 1975 | echo "$ac_t""no" 1>&6 |
422107f9 | 1976 | elif test "$wxUSE_LIBPNG" = sys; then |
579d8138 | 1977 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 1978 | elif test "$wxUSE_LIBPNG" = builtin; then |
579d8138 | 1979 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 1980 | else |
579d8138 | 1981 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1982 | fi |
579d8138 | 1983 | |
10f2d63a | 1984 | |
579d8138 | 1985 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
5c0a20c3 | 1986 | echo "configure:1987: checking for --with-libjpeg" >&5 |
10f2d63a | 1987 | no_cache=0 |
579d8138 | 1988 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
1989 | if test "${with_libjpeg+set}" = set; then |
1990 | withval="$with_libjpeg" | |
579d8138 | 1991 | |
10f2d63a | 1992 | if test "$withval" = yes; then |
b12915c1 | 1993 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 1994 | elif test "$withval" = no; then |
b12915c1 | 1995 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
1996 | elif test "$withval" = sys; then |
1997 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
1998 | elif test "$withval" = builtin; then |
1999 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2000 | else |
579d8138 | 2001 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2002 | fi |
579d8138 | 2003 | |
10f2d63a | 2004 | else |
579d8138 | 2005 | |
b12915c1 | 2006 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2007 | if test "x$LINE" != x ; then |
2008 | eval "DEFAULT_$LINE" | |
2009 | else | |
2010 | no_cache=1 | |
2011 | fi | |
2012 | ||
b12915c1 | 2013 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
579d8138 VS |
2014 | |
2015 | fi | |
10f2d63a VZ |
2016 | |
2017 | ||
b12915c1 | 2018 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2019 | if test "$no_cache" != 1; then |
b12915c1 | 2020 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2021 | fi |
2022 | ||
b12915c1 | 2023 | if test "$wxUSE_LIBJPEG" = yes; then |
579d8138 | 2024 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2025 | elif test "$wxUSE_LIBJPEG" = no; then |
579d8138 | 2026 | echo "$ac_t""no" 1>&6 |
422107f9 | 2027 | elif test "$wxUSE_LIBJPEG" = sys; then |
579d8138 | 2028 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2029 | elif test "$wxUSE_LIBJPEG" = builtin; then |
579d8138 | 2030 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2031 | else |
579d8138 | 2032 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2033 | fi |
579d8138 | 2034 | |
10f2d63a | 2035 | |
579d8138 | 2036 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
5c0a20c3 | 2037 | echo "configure:2038: checking for --with-libtiff" >&5 |
10f2d63a | 2038 | no_cache=0 |
579d8138 | 2039 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2040 | if test "${with_libtiff+set}" = set; then |
2041 | withval="$with_libtiff" | |
579d8138 | 2042 | |
10f2d63a | 2043 | if test "$withval" = yes; then |
b12915c1 | 2044 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2045 | elif test "$withval" = no; then |
b12915c1 | 2046 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2047 | elif test "$withval" = sys; then |
2048 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2049 | elif test "$withval" = builtin; then |
2050 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2051 | else |
579d8138 | 2052 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2053 | fi |
579d8138 | 2054 | |
10f2d63a | 2055 | else |
579d8138 | 2056 | |
b12915c1 | 2057 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2058 | if test "x$LINE" != x ; then |
2059 | eval "DEFAULT_$LINE" | |
2060 | else | |
2061 | no_cache=1 | |
2062 | fi | |
2063 | ||
b12915c1 | 2064 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
579d8138 VS |
2065 | |
2066 | fi | |
10f2d63a VZ |
2067 | |
2068 | ||
b12915c1 | 2069 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2070 | if test "$no_cache" != 1; then |
b12915c1 | 2071 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2072 | fi |
2073 | ||
b12915c1 | 2074 | if test "$wxUSE_LIBTIFF" = yes; then |
579d8138 | 2075 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2076 | elif test "$wxUSE_LIBTIFF" = no; then |
579d8138 | 2077 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2078 | elif test "$wxUSE_LIBTIFF" = sys; then |
579d8138 | 2079 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2080 | elif test "$wxUSE_LIBTIFF" = builtin; then |
579d8138 | 2081 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2082 | else |
579d8138 | 2083 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2084 | fi |
579d8138 | 2085 | |
10f2d63a | 2086 | |
579d8138 | 2087 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
5c0a20c3 | 2088 | echo "configure:2089: checking for --with-opengl" >&5 |
10f2d63a | 2089 | no_cache=0 |
579d8138 | 2090 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2091 | if test "${with_opengl+set}" = set; then |
2092 | withval="$with_opengl" | |
579d8138 | 2093 | |
10f2d63a | 2094 | if test "$withval" = yes; then |
b12915c1 | 2095 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2096 | else |
b12915c1 | 2097 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2098 | fi |
579d8138 | 2099 | |
10f2d63a | 2100 | else |
579d8138 | 2101 | |
b12915c1 | 2102 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2103 | if test "x$LINE" != x ; then |
2104 | eval "DEFAULT_$LINE" | |
2105 | else | |
2106 | no_cache=1 | |
2107 | fi | |
2108 | ||
b12915c1 | 2109 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
579d8138 VS |
2110 | |
2111 | fi | |
10f2d63a VZ |
2112 | |
2113 | ||
b12915c1 | 2114 | eval "$ac_cv_use_opengl" |
10f2d63a | 2115 | if test "$no_cache" != 1; then |
b12915c1 | 2116 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2117 | fi |
2118 | ||
b12915c1 | 2119 | if test "$wxUSE_OPENGL" = yes; then |
579d8138 | 2120 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2121 | else |
579d8138 | 2122 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2123 | fi |
579d8138 | 2124 | |
10f2d63a | 2125 | |
b12915c1 VZ |
2126 | fi |
2127 | ||
328a083c | 2128 | |
579d8138 | 2129 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
5c0a20c3 | 2130 | echo "configure:2131: checking for --with-dmalloc" >&5 |
579d8138 VS |
2131 | no_cache=0 |
2132 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2133 | if test "${with_dmalloc+set}" = set; then |
2134 | withval="$with_dmalloc" | |
579d8138 | 2135 | |
c7a2bf27 | 2136 | if test "$withval" = yes; then |
b12915c1 | 2137 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2138 | else |
b12915c1 | 2139 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2140 | fi |
579d8138 | 2141 | |
c7a2bf27 | 2142 | else |
579d8138 | 2143 | |
b12915c1 | 2144 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2145 | if test "x$LINE" != x ; then |
2146 | eval "DEFAULT_$LINE" | |
2147 | else | |
2148 | no_cache=1 | |
2149 | fi | |
2150 | ||
b12915c1 | 2151 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
579d8138 VS |
2152 | |
2153 | fi | |
c7a2bf27 RR |
2154 | |
2155 | ||
b12915c1 | 2156 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2157 | if test "$no_cache" != 1; then |
b12915c1 | 2158 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2159 | fi |
2160 | ||
b12915c1 | 2161 | if test "$wxUSE_DMALLOC" = yes; then |
579d8138 | 2162 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2163 | else |
579d8138 | 2164 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2165 | fi |
579d8138 | 2166 | |
c7a2bf27 | 2167 | |
579d8138 | 2168 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
5c0a20c3 | 2169 | echo "configure:2170: checking for --with-regex" >&5 |
3e44f09d | 2170 | no_cache=0 |
579d8138 | 2171 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2172 | if test "${with_regex+set}" = set; then |
2173 | withval="$with_regex" | |
579d8138 | 2174 | |
3e44f09d VZ |
2175 | if test "$withval" = yes; then |
2176 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2177 | elif test "$withval" = no; then | |
2178 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2179 | elif test "$withval" = sys; then | |
2180 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2181 | elif test "$withval" = builtin; then |
2182 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2183 | else |
579d8138 | 2184 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2185 | fi |
579d8138 | 2186 | |
3e44f09d | 2187 | else |
579d8138 | 2188 | |
3e44f09d VZ |
2189 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2190 | if test "x$LINE" != x ; then | |
2191 | eval "DEFAULT_$LINE" | |
2192 | else | |
2193 | no_cache=1 | |
2194 | fi | |
2195 | ||
2196 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
579d8138 VS |
2197 | |
2198 | fi | |
3e44f09d VZ |
2199 | |
2200 | ||
2201 | eval "$ac_cv_use_regex" | |
2202 | if test "$no_cache" != 1; then | |
2203 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2204 | fi | |
2205 | ||
2206 | if test "$wxUSE_REGEX" = yes; then | |
579d8138 | 2207 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2208 | elif test "$wxUSE_REGEX" = no; then |
579d8138 | 2209 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2210 | elif test "$wxUSE_REGEX" = sys; then |
579d8138 | 2211 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2212 | elif test "$wxUSE_REGEX" = builtin; then |
579d8138 | 2213 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2214 | else |
579d8138 | 2215 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2216 | fi |
579d8138 | 2217 | |
3e44f09d | 2218 | |
579d8138 | 2219 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
5c0a20c3 | 2220 | echo "configure:2221: checking for --with-zlib" >&5 |
10f2d63a | 2221 | no_cache=0 |
579d8138 | 2222 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2223 | if test "${with_zlib+set}" = set; then |
2224 | withval="$with_zlib" | |
579d8138 | 2225 | |
10f2d63a | 2226 | if test "$withval" = yes; then |
b12915c1 | 2227 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2228 | elif test "$withval" = no; then |
b12915c1 | 2229 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2230 | elif test "$withval" = sys; then |
2231 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2232 | elif test "$withval" = builtin; then |
2233 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2234 | else |
579d8138 | 2235 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2236 | fi |
579d8138 | 2237 | |
10f2d63a | 2238 | else |
579d8138 | 2239 | |
b12915c1 | 2240 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2241 | if test "x$LINE" != x ; then |
2242 | eval "DEFAULT_$LINE" | |
2243 | else | |
2244 | no_cache=1 | |
2245 | fi | |
2246 | ||
b12915c1 | 2247 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
579d8138 VS |
2248 | |
2249 | fi | |
10f2d63a VZ |
2250 | |
2251 | ||
b12915c1 | 2252 | eval "$ac_cv_use_zlib" |
10f2d63a | 2253 | if test "$no_cache" != 1; then |
b12915c1 | 2254 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2255 | fi |
2256 | ||
b12915c1 | 2257 | if test "$wxUSE_ZLIB" = yes; then |
579d8138 | 2258 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2259 | elif test "$wxUSE_ZLIB" = no; then |
579d8138 | 2260 | echo "$ac_t""no" 1>&6 |
422107f9 | 2261 | elif test "$wxUSE_ZLIB" = sys; then |
579d8138 | 2262 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2263 | elif test "$wxUSE_ZLIB" = builtin; then |
579d8138 | 2264 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2265 | else |
579d8138 | 2266 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2267 | fi |
579d8138 | 2268 | |
10f2d63a | 2269 | |
579d8138 | 2270 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
5c0a20c3 | 2271 | echo "configure:2272: checking for --with-odbc" >&5 |
10f2d63a | 2272 | no_cache=0 |
579d8138 | 2273 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2274 | if test "${with_odbc+set}" = set; then |
2275 | withval="$with_odbc" | |
579d8138 | 2276 | |
10f2d63a VZ |
2277 | if test "$withval" = yes; then |
2278 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2279 | else | |
2280 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2281 | fi | |
579d8138 | 2282 | |
10f2d63a | 2283 | else |
579d8138 | 2284 | |
10f2d63a VZ |
2285 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2286 | if test "x$LINE" != x ; then | |
2287 | eval "DEFAULT_$LINE" | |
2288 | else | |
2289 | no_cache=1 | |
2290 | fi | |
2291 | ||
2292 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
579d8138 VS |
2293 | |
2294 | fi | |
10f2d63a VZ |
2295 | |
2296 | ||
2297 | eval "$ac_cv_use_odbc" | |
2298 | if test "$no_cache" != 1; then | |
2299 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2300 | fi | |
2301 | ||
2302 | if test "$wxUSE_ODBC" = yes; then | |
579d8138 | 2303 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2304 | else |
579d8138 | 2305 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2306 | fi |
579d8138 VS |
2307 | |
2308 | ||
698dcdb6 | 2309 | |
579d8138 VS |
2310 | |
2311 | echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6 | |
5c0a20c3 | 2312 | echo "configure:2313: checking for --enable-shared" >&5 |
10f2d63a VZ |
2313 | no_cache=0 |
2314 | # Check whether --enable-shared or --disable-shared was given. | |
2315 | if test "${enable_shared+set}" = set; then | |
2316 | enableval="$enable_shared" | |
579d8138 | 2317 | |
10f2d63a VZ |
2318 | if test "$enableval" = yes; then |
2319 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2320 | else | |
2321 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2322 | fi | |
579d8138 | 2323 | |
10f2d63a | 2324 | else |
579d8138 | 2325 | |
10f2d63a VZ |
2326 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2327 | if test "x$LINE" != x ; then | |
2328 | eval "DEFAULT_$LINE" | |
2329 | else | |
2330 | no_cache=1 | |
2331 | fi | |
2332 | ||
2333 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
579d8138 VS |
2334 | |
2335 | fi | |
10f2d63a VZ |
2336 | |
2337 | ||
2338 | eval "$ac_cv_use_shared" | |
2339 | if test "$no_cache" != 1; then | |
2340 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2341 | fi | |
2342 | ||
2343 | if test "$wxUSE_SHARED" = yes; then | |
579d8138 | 2344 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2345 | else |
579d8138 | 2346 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2347 | fi |
579d8138 | 2348 | |
10f2d63a | 2349 | |
579d8138 | 2350 | echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6 |
5c0a20c3 | 2351 | echo "configure:2352: checking for --enable-soname" >&5 |
00cf1208 | 2352 | no_cache=0 |
3a922bb4 RL |
2353 | # Check whether --enable-soname or --disable-soname was given. |
2354 | if test "${enable_soname+set}" = set; then | |
2355 | enableval="$enable_soname" | |
579d8138 | 2356 | |
00cf1208 | 2357 | if test "$enableval" = yes; then |
3a922bb4 | 2358 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2359 | else |
3a922bb4 | 2360 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2361 | fi |
579d8138 | 2362 | |
00cf1208 | 2363 | else |
579d8138 | 2364 | |
3a922bb4 | 2365 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2366 | if test "x$LINE" != x ; then |
2367 | eval "DEFAULT_$LINE" | |
2368 | else | |
2369 | no_cache=1 | |
2370 | fi | |
2371 | ||
3a922bb4 | 2372 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
579d8138 VS |
2373 | |
2374 | fi | |
00cf1208 RR |
2375 | |
2376 | ||
3a922bb4 | 2377 | eval "$ac_cv_use_soname" |
00cf1208 | 2378 | if test "$no_cache" != 1; then |
3a922bb4 | 2379 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2380 | fi |
2381 | ||
3a922bb4 | 2382 | if test "$wxUSE_SONAME" = yes; then |
579d8138 | 2383 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2384 | else |
579d8138 | 2385 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2386 | fi |
579d8138 | 2387 | |
00cf1208 | 2388 | |
579d8138 | 2389 | echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6 |
5c0a20c3 | 2390 | echo "configure:2391: checking for --enable-optimise" >&5 |
10f2d63a VZ |
2391 | no_cache=0 |
2392 | # Check whether --enable-optimise or --disable-optimise was given. | |
2393 | if test "${enable_optimise+set}" = set; then | |
2394 | enableval="$enable_optimise" | |
579d8138 | 2395 | |
10f2d63a VZ |
2396 | if test "$enableval" = yes; then |
2397 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2398 | else | |
2399 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2400 | fi | |
579d8138 | 2401 | |
10f2d63a | 2402 | else |
579d8138 | 2403 | |
10f2d63a VZ |
2404 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2405 | if test "x$LINE" != x ; then | |
2406 | eval "DEFAULT_$LINE" | |
2407 | else | |
2408 | no_cache=1 | |
2409 | fi | |
2410 | ||
2411 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
579d8138 VS |
2412 | |
2413 | fi | |
10f2d63a VZ |
2414 | |
2415 | ||
2416 | eval "$ac_cv_use_optimise" | |
2417 | if test "$no_cache" != 1; then | |
2418 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2419 | fi | |
2420 | ||
2421 | if test "$wxUSE_OPTIMISE" = yes; then | |
579d8138 | 2422 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2423 | else |
579d8138 | 2424 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2425 | fi |
579d8138 | 2426 | |
10f2d63a | 2427 | |
579d8138 | 2428 | echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6 |
5c0a20c3 | 2429 | echo "configure:2430: checking for --enable-debug" >&5 |
10f2d63a VZ |
2430 | no_cache=0 |
2431 | # Check whether --enable-debug or --disable-debug was given. | |
2432 | if test "${enable_debug+set}" = set; then | |
2433 | enableval="$enable_debug" | |
579d8138 | 2434 | |
10f2d63a VZ |
2435 | if test "$enableval" = yes; then |
2436 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2437 | else | |
2438 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2439 | fi | |
579d8138 | 2440 | |
10f2d63a | 2441 | else |
579d8138 | 2442 | |
10f2d63a VZ |
2443 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2444 | if test "x$LINE" != x ; then | |
2445 | eval "DEFAULT_$LINE" | |
2446 | else | |
2447 | no_cache=1 | |
2448 | fi | |
2449 | ||
2450 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
579d8138 VS |
2451 | |
2452 | fi | |
10f2d63a VZ |
2453 | |
2454 | ||
2455 | eval "$ac_cv_use_debug" | |
2456 | if test "$no_cache" != 1; then | |
2457 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2458 | fi | |
2459 | ||
2460 | if test "$wxUSE_DEBUG" = yes; then | |
579d8138 | 2461 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2462 | else |
579d8138 | 2463 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2464 | fi |
579d8138 VS |
2465 | |
2466 | ||
10f2d63a | 2467 | |
579d8138 | 2468 | echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6 |
5c0a20c3 | 2469 | echo "configure:2470: checking for --enable-precomp" >&5 |
683dccda GD |
2470 | no_cache=0 |
2471 | # Check whether --enable-precomp or --disable-precomp was given. | |
2472 | if test "${enable_precomp+set}" = set; then | |
2473 | enableval="$enable_precomp" | |
579d8138 | 2474 | |
683dccda GD |
2475 | if test "$enableval" = yes; then |
2476 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2477 | else | |
2478 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2479 | fi | |
579d8138 | 2480 | |
683dccda | 2481 | else |
579d8138 | 2482 | |
683dccda GD |
2483 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2484 | if test "x$LINE" != x ; then | |
2485 | eval "DEFAULT_$LINE" | |
2486 | else | |
2487 | no_cache=1 | |
2488 | fi | |
2489 | ||
2490 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
579d8138 VS |
2491 | |
2492 | fi | |
683dccda GD |
2493 | |
2494 | ||
2495 | eval "$ac_cv_use_precomp" | |
2496 | if test "$no_cache" != 1; then | |
2497 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2498 | fi | |
2499 | ||
2500 | if test "$wxUSE_PRECOMP" = yes; then | |
579d8138 | 2501 | echo "$ac_t""yes" 1>&6 |
683dccda | 2502 | else |
579d8138 | 2503 | echo "$ac_t""no" 1>&6 |
683dccda | 2504 | fi |
579d8138 | 2505 | |
683dccda | 2506 | |
10f2d63a VZ |
2507 | if test "$wxUSE_DEBUG" = "yes"; then |
2508 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2509 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2510 | elif test "$wxUSE_DEBUG" = "no"; then | |
2511 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2512 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2513 | fi | |
2514 | ||
579d8138 VS |
2515 | |
2516 | echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6 | |
5c0a20c3 | 2517 | echo "configure:2518: checking for --enable-debug_flag" >&5 |
10f2d63a VZ |
2518 | no_cache=0 |
2519 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2520 | if test "${enable_debug_flag+set}" = set; then | |
2521 | enableval="$enable_debug_flag" | |
579d8138 | 2522 | |
10f2d63a VZ |
2523 | if test "$enableval" = yes; then |
2524 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2525 | else | |
2526 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2527 | fi | |
579d8138 | 2528 | |
10f2d63a | 2529 | else |
579d8138 | 2530 | |
10f2d63a VZ |
2531 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2532 | if test "x$LINE" != x ; then | |
2533 | eval "DEFAULT_$LINE" | |
2534 | else | |
2535 | no_cache=1 | |
2536 | fi | |
2537 | ||
2538 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
579d8138 VS |
2539 | |
2540 | fi | |
10f2d63a VZ |
2541 | |
2542 | ||
2543 | eval "$ac_cv_use_debug_flag" | |
2544 | if test "$no_cache" != 1; then | |
2545 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2546 | fi | |
2547 | ||
2548 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
579d8138 | 2549 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2550 | else |
579d8138 | 2551 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2552 | fi |
579d8138 | 2553 | |
10f2d63a | 2554 | |
579d8138 | 2555 | echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6 |
5c0a20c3 | 2556 | echo "configure:2557: checking for --enable-debug_info" >&5 |
10f2d63a VZ |
2557 | no_cache=0 |
2558 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2559 | if test "${enable_debug_info+set}" = set; then | |
2560 | enableval="$enable_debug_info" | |
579d8138 | 2561 | |
10f2d63a VZ |
2562 | if test "$enableval" = yes; then |
2563 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2564 | else | |
2565 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2566 | fi | |
579d8138 | 2567 | |
10f2d63a | 2568 | else |
579d8138 | 2569 | |
10f2d63a VZ |
2570 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2571 | if test "x$LINE" != x ; then | |
2572 | eval "DEFAULT_$LINE" | |
2573 | else | |
2574 | no_cache=1 | |
2575 | fi | |
2576 | ||
2577 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
579d8138 VS |
2578 | |
2579 | fi | |
10f2d63a VZ |
2580 | |
2581 | ||
2582 | eval "$ac_cv_use_debug_info" | |
2583 | if test "$no_cache" != 1; then | |
2584 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2585 | fi | |
2586 | ||
2587 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
579d8138 | 2588 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2589 | else |
579d8138 | 2590 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2591 | fi |
579d8138 | 2592 | |
10f2d63a | 2593 | |
579d8138 | 2594 | echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6 |
5c0a20c3 | 2595 | echo "configure:2596: checking for --enable-debug_gdb" >&5 |
10f2d63a VZ |
2596 | no_cache=0 |
2597 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2598 | if test "${enable_debug_gdb+set}" = set; then | |
2599 | enableval="$enable_debug_gdb" | |
579d8138 | 2600 | |
10f2d63a VZ |
2601 | if test "$enableval" = yes; then |
2602 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2603 | else | |
2604 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2605 | fi | |
579d8138 | 2606 | |
10f2d63a | 2607 | else |
579d8138 | 2608 | |
10f2d63a VZ |
2609 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2610 | if test "x$LINE" != x ; then | |
2611 | eval "DEFAULT_$LINE" | |
2612 | else | |
2613 | no_cache=1 | |
2614 | fi | |
2615 | ||
2616 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
579d8138 VS |
2617 | |
2618 | fi | |
10f2d63a VZ |
2619 | |
2620 | ||
2621 | eval "$ac_cv_use_debug_gdb" | |
2622 | if test "$no_cache" != 1; then | |
2623 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2624 | fi | |
2625 | ||
2626 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
579d8138 | 2627 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2628 | else |
579d8138 | 2629 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2630 | fi |
579d8138 | 2631 | |
10f2d63a | 2632 | |
579d8138 | 2633 | echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6 |
5c0a20c3 | 2634 | echo "configure:2635: checking for --enable-debug_cntxt" >&5 |
10f2d63a VZ |
2635 | no_cache=0 |
2636 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2637 | if test "${enable_debug_cntxt+set}" = set; then | |
2638 | enableval="$enable_debug_cntxt" | |
579d8138 | 2639 | |
10f2d63a VZ |
2640 | if test "$enableval" = yes; then |
2641 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2642 | else | |
2643 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2644 | fi | |
579d8138 | 2645 | |
10f2d63a | 2646 | else |
579d8138 | 2647 | |
10f2d63a VZ |
2648 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2649 | if test "x$LINE" != x ; then | |
2650 | eval "DEFAULT_$LINE" | |
2651 | else | |
2652 | no_cache=1 | |
2653 | fi | |
2654 | ||
2655 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
579d8138 VS |
2656 | |
2657 | fi | |
10f2d63a VZ |
2658 | |
2659 | ||
2660 | eval "$ac_cv_use_debug_cntxt" | |
2661 | if test "$no_cache" != 1; then | |
2662 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2663 | fi | |
2664 | ||
2665 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
579d8138 | 2666 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2667 | else |
579d8138 | 2668 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2669 | fi |
579d8138 | 2670 | |
10f2d63a | 2671 | |
579d8138 | 2672 | echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6 |
5c0a20c3 | 2673 | echo "configure:2674: checking for --enable-mem_tracing" >&5 |
10f2d63a VZ |
2674 | no_cache=0 |
2675 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2676 | if test "${enable_mem_tracing+set}" = set; then | |
2677 | enableval="$enable_mem_tracing" | |
579d8138 | 2678 | |
10f2d63a VZ |
2679 | if test "$enableval" = yes; then |
2680 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2681 | else | |
2682 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2683 | fi | |
579d8138 | 2684 | |
10f2d63a | 2685 | else |
579d8138 | 2686 | |
10f2d63a VZ |
2687 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2688 | if test "x$LINE" != x ; then | |
2689 | eval "DEFAULT_$LINE" | |
2690 | else | |
2691 | no_cache=1 | |
2692 | fi | |
2693 | ||
2694 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
579d8138 VS |
2695 | |
2696 | fi | |
10f2d63a VZ |
2697 | |
2698 | ||
2699 | eval "$ac_cv_use_mem_tracing" | |
2700 | if test "$no_cache" != 1; then | |
2701 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2702 | fi | |
2703 | ||
2704 | if test "$wxUSE_MEM_TRACING" = yes; then | |
579d8138 | 2705 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2706 | else |
579d8138 | 2707 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2708 | fi |
579d8138 | 2709 | |
10f2d63a | 2710 | |
579d8138 | 2711 | echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6 |
5c0a20c3 | 2712 | echo "configure:2713: checking for --enable-profile" >&5 |
10f2d63a VZ |
2713 | no_cache=0 |
2714 | # Check whether --enable-profile or --disable-profile was given. | |
2715 | if test "${enable_profile+set}" = set; then | |
2716 | enableval="$enable_profile" | |
579d8138 | 2717 | |
10f2d63a VZ |
2718 | if test "$enableval" = yes; then |
2719 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2720 | else | |
2721 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2722 | fi | |
579d8138 | 2723 | |
10f2d63a | 2724 | else |
579d8138 | 2725 | |
10f2d63a VZ |
2726 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2727 | if test "x$LINE" != x ; then | |
2728 | eval "DEFAULT_$LINE" | |
2729 | else | |
2730 | no_cache=1 | |
2731 | fi | |
2732 | ||
2733 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
579d8138 VS |
2734 | |
2735 | fi | |
10f2d63a VZ |
2736 | |
2737 | ||
2738 | eval "$ac_cv_use_profile" | |
2739 | if test "$no_cache" != 1; then | |
2740 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2741 | fi | |
2742 | ||
2743 | if test "$wxUSE_PROFILE" = yes; then | |
579d8138 | 2744 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2745 | else |
579d8138 | 2746 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2747 | fi |
579d8138 | 2748 | |
10f2d63a | 2749 | |
579d8138 | 2750 | echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6 |
5c0a20c3 | 2751 | echo "configure:2752: checking for --enable-no_rtti" >&5 |
10f2d63a VZ |
2752 | no_cache=0 |
2753 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2754 | if test "${enable_no_rtti+set}" = set; then | |
2755 | enableval="$enable_no_rtti" | |
579d8138 | 2756 | |
10f2d63a VZ |
2757 | if test "$enableval" = yes; then |
2758 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2759 | else | |
2760 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2761 | fi | |
579d8138 | 2762 | |
10f2d63a | 2763 | else |
579d8138 | 2764 | |
10f2d63a VZ |
2765 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2766 | if test "x$LINE" != x ; then | |
2767 | eval "DEFAULT_$LINE" | |
2768 | else | |
2769 | no_cache=1 | |
2770 | fi | |
2771 | ||
2772 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
579d8138 VS |
2773 | |
2774 | fi | |
10f2d63a VZ |
2775 | |
2776 | ||
2777 | eval "$ac_cv_use_no_rtti" | |
2778 | if test "$no_cache" != 1; then | |
2779 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2780 | fi | |
2781 | ||
2782 | if test "$wxUSE_NO_RTTI" = yes; then | |
579d8138 | 2783 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2784 | else |
579d8138 | 2785 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2786 | fi |
579d8138 | 2787 | |
10f2d63a | 2788 | |
579d8138 | 2789 | echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6 |
5c0a20c3 | 2790 | echo "configure:2791: checking for --enable-no_exceptions" >&5 |
10f2d63a VZ |
2791 | no_cache=0 |
2792 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2793 | if test "${enable_no_exceptions+set}" = set; then | |
2794 | enableval="$enable_no_exceptions" | |
579d8138 | 2795 | |
10f2d63a VZ |
2796 | if test "$enableval" = yes; then |
2797 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2798 | else | |
2799 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2800 | fi | |
579d8138 | 2801 | |
10f2d63a | 2802 | else |
579d8138 | 2803 | |
10f2d63a VZ |
2804 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2805 | if test "x$LINE" != x ; then | |
2806 | eval "DEFAULT_$LINE" | |
2807 | else | |
2808 | no_cache=1 | |
2809 | fi | |
2810 | ||
2811 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
579d8138 VS |
2812 | |
2813 | fi | |
10f2d63a VZ |
2814 | |
2815 | ||
2816 | eval "$ac_cv_use_no_exceptions" | |
2817 | if test "$no_cache" != 1; then | |
2818 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2819 | fi | |
2820 | ||
2821 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
579d8138 | 2822 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2823 | else |
579d8138 | 2824 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2825 | fi |
579d8138 | 2826 | |
10f2d63a | 2827 | |
579d8138 | 2828 | echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6 |
5c0a20c3 | 2829 | echo "configure:2830: checking for --enable-permissive" >&5 |
10f2d63a VZ |
2830 | no_cache=0 |
2831 | # Check whether --enable-permissive or --disable-permissive was given. | |
2832 | if test "${enable_permissive+set}" = set; then | |
2833 | enableval="$enable_permissive" | |
579d8138 | 2834 | |
10f2d63a VZ |
2835 | if test "$enableval" = yes; then |
2836 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2837 | else | |
2838 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2839 | fi | |
579d8138 | 2840 | |
10f2d63a | 2841 | else |
579d8138 | 2842 | |
10f2d63a VZ |
2843 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2844 | if test "x$LINE" != x ; then | |
2845 | eval "DEFAULT_$LINE" | |
2846 | else | |
2847 | no_cache=1 | |
2848 | fi | |
2849 | ||
2850 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
579d8138 VS |
2851 | |
2852 | fi | |
10f2d63a VZ |
2853 | |
2854 | ||
2855 | eval "$ac_cv_use_permissive" | |
2856 | if test "$no_cache" != 1; then | |
2857 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2858 | fi | |
2859 | ||
2860 | if test "$wxUSE_PERMISSIVE" = yes; then | |
579d8138 | 2861 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2862 | else |
579d8138 | 2863 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2864 | fi |
579d8138 | 2865 | |
10f2d63a | 2866 | |
579d8138 | 2867 | echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6 |
5c0a20c3 | 2868 | echo "configure:2869: checking for --enable-no_deps" >&5 |
10f2d63a VZ |
2869 | no_cache=0 |
2870 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2871 | if test "${enable_no_deps+set}" = set; then | |
2872 | enableval="$enable_no_deps" | |
579d8138 | 2873 | |
10f2d63a VZ |
2874 | if test "$enableval" = yes; then |
2875 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2876 | else | |
2877 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2878 | fi | |
579d8138 | 2879 | |
10f2d63a | 2880 | else |
579d8138 | 2881 | |
10f2d63a VZ |
2882 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2883 | if test "x$LINE" != x ; then | |
2884 | eval "DEFAULT_$LINE" | |
2885 | else | |
2886 | no_cache=1 | |
2887 | fi | |
2888 | ||
2889 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
579d8138 VS |
2890 | |
2891 | fi | |
10f2d63a VZ |
2892 | |
2893 | ||
2894 | eval "$ac_cv_use_no_deps" | |
2895 | if test "$no_cache" != 1; then | |
2896 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2897 | fi | |
2898 | ||
2899 | if test "$wxUSE_NO_DEPS" = yes; then | |
579d8138 | 2900 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2901 | else |
579d8138 | 2902 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2903 | fi |
579d8138 VS |
2904 | |
2905 | ||
698dcdb6 | 2906 | |
579d8138 | 2907 | echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6 |
5c0a20c3 | 2908 | echo "configure:2909: checking for --enable-compat20" >&5 |
54276ccf VZ |
2909 | no_cache=0 |
2910 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2911 | if test "${enable_compat20+set}" = set; then | |
2912 | enableval="$enable_compat20" | |
579d8138 | 2913 | |
54276ccf VZ |
2914 | if test "$enableval" = yes; then |
2915 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2916 | else | |
2917 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2918 | fi | |
579d8138 | 2919 | |
54276ccf | 2920 | else |
579d8138 | 2921 | |
54276ccf VZ |
2922 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2923 | if test "x$LINE" != x ; then | |
2924 | eval "DEFAULT_$LINE" | |
2925 | else | |
2926 | no_cache=1 | |
2927 | fi | |
2928 | ||
2929 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
579d8138 VS |
2930 | |
2931 | fi | |
54276ccf VZ |
2932 | |
2933 | ||
2934 | eval "$ac_cv_use_compat20" | |
2935 | if test "$no_cache" != 1; then | |
2936 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
2937 | fi | |
2938 | ||
2939 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
579d8138 | 2940 | echo "$ac_t""yes" 1>&6 |
54276ccf | 2941 | else |
579d8138 | 2942 | echo "$ac_t""no" 1>&6 |
54276ccf | 2943 | fi |
579d8138 | 2944 | |
54276ccf | 2945 | |
579d8138 | 2946 | echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6 |
5c0a20c3 | 2947 | echo "configure:2948: checking for --enable-compat22" >&5 |
54276ccf VZ |
2948 | no_cache=0 |
2949 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
2950 | if test "${enable_compat22+set}" = set; then | |
2951 | enableval="$enable_compat22" | |
579d8138 | 2952 | |
54276ccf VZ |
2953 | if test "$enableval" = yes; then |
2954 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
2955 | else | |
2956 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
2957 | fi | |
579d8138 | 2958 | |
54276ccf | 2959 | else |
579d8138 | 2960 | |
54276ccf VZ |
2961 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
2962 | if test "x$LINE" != x ; then | |
2963 | eval "DEFAULT_$LINE" | |
2964 | else | |
2965 | no_cache=1 | |
2966 | fi | |
2967 | ||
2968 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
579d8138 VS |
2969 | |
2970 | fi | |
54276ccf VZ |
2971 | |
2972 | ||
2973 | eval "$ac_cv_use_compat22" | |
2974 | if test "$no_cache" != 1; then | |
2975 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
2976 | fi | |
2977 | ||
2978 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
579d8138 | 2979 | echo "$ac_t""yes" 1>&6 |
54276ccf | 2980 | else |
579d8138 | 2981 | echo "$ac_t""no" 1>&6 |
54276ccf | 2982 | fi |
579d8138 | 2983 | |
54276ccf | 2984 | |
3bd8fb5f RD |
2985 | # Check whether --enable-rpath or --disable-rpath was given. |
2986 | if test "${enable_rpath+set}" = set; then | |
2987 | enableval="$enable_rpath" | |
2988 | wxRPATH_DIR="$enableval" | |
579d8138 VS |
2989 | fi |
2990 | ||
3bd8fb5f RD |
2991 | |
2992 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
2993 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
2994 | fi | |
2995 | ||
579d8138 VS |
2996 | |
2997 | ||
2998 | ||
2999 | echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6 | |
5c0a20c3 | 3000 | echo "configure:3001: checking for --enable-intl" >&5 |
10f2d63a VZ |
3001 | no_cache=0 |
3002 | # Check whether --enable-intl or --disable-intl was given. | |
3003 | if test "${enable_intl+set}" = set; then | |
3004 | enableval="$enable_intl" | |
579d8138 | 3005 | |
10f2d63a VZ |
3006 | if test "$enableval" = yes; then |
3007 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3008 | else | |
3009 | ac_cv_use_intl='wxUSE_INTL=no' | |
3010 | fi | |
579d8138 | 3011 | |
10f2d63a | 3012 | else |
579d8138 | 3013 | |
10f2d63a VZ |
3014 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3015 | if test "x$LINE" != x ; then | |
3016 | eval "DEFAULT_$LINE" | |
3017 | else | |
3018 | no_cache=1 | |
3019 | fi | |
3020 | ||
3021 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
579d8138 VS |
3022 | |
3023 | fi | |
10f2d63a VZ |
3024 | |
3025 | ||
3026 | eval "$ac_cv_use_intl" | |
3027 | if test "$no_cache" != 1; then | |
3028 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3029 | fi | |
3030 | ||
3031 | if test "$wxUSE_INTL" = yes; then | |
579d8138 | 3032 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3033 | else |
579d8138 | 3034 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3035 | fi |
579d8138 | 3036 | |
10f2d63a | 3037 | |
579d8138 | 3038 | echo $ac_n "checking for --enable-config""... $ac_c" 1>&6 |
5c0a20c3 | 3039 | echo "configure:3040: checking for --enable-config" >&5 |
10f2d63a VZ |
3040 | no_cache=0 |
3041 | # Check whether --enable-config or --disable-config was given. | |
3042 | if test "${enable_config+set}" = set; then | |
3043 | enableval="$enable_config" | |
579d8138 | 3044 | |
10f2d63a VZ |
3045 | if test "$enableval" = yes; then |
3046 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3047 | else | |
3048 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3049 | fi | |
579d8138 | 3050 | |
10f2d63a | 3051 | else |
579d8138 | 3052 | |
10f2d63a VZ |
3053 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3054 | if test "x$LINE" != x ; then | |
3055 | eval "DEFAULT_$LINE" | |
3056 | else | |
3057 | no_cache=1 | |
3058 | fi | |
3059 | ||
3060 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
579d8138 VS |
3061 | |
3062 | fi | |
10f2d63a VZ |
3063 | |
3064 | ||
3065 | eval "$ac_cv_use_config" | |
3066 | if test "$no_cache" != 1; then | |
3067 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3068 | fi | |
3069 | ||
3070 | if test "$wxUSE_CONFIG" = yes; then | |
579d8138 | 3071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3072 | else |
579d8138 | 3073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3074 | fi |
579d8138 VS |
3075 | |
3076 | ||
698dcdb6 | 3077 | |
579d8138 | 3078 | echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6 |
5c0a20c3 | 3079 | echo "configure:3080: checking for --enable-protocols" >&5 |
a1622950 VZ |
3080 | no_cache=0 |
3081 | # Check whether --enable-protocols or --disable-protocols was given. | |
3082 | if test "${enable_protocols+set}" = set; then | |
3083 | enableval="$enable_protocols" | |
579d8138 | 3084 | |
a1622950 VZ |
3085 | if test "$enableval" = yes; then |
3086 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3087 | else | |
3088 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3089 | fi | |
579d8138 | 3090 | |
a1622950 | 3091 | else |
579d8138 | 3092 | |
a1622950 VZ |
3093 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3094 | if test "x$LINE" != x ; then | |
3095 | eval "DEFAULT_$LINE" | |
3096 | else | |
3097 | no_cache=1 | |
3098 | fi | |
3099 | ||
3100 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
579d8138 VS |
3101 | |
3102 | fi | |
a1622950 VZ |
3103 | |
3104 | ||
3105 | eval "$ac_cv_use_protocols" | |
3106 | if test "$no_cache" != 1; then | |
3107 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3108 | fi | |
3109 | ||
3110 | if test "$wxUSE_PROTOCOL" = yes; then | |
579d8138 | 3111 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3112 | else |
579d8138 | 3113 | echo "$ac_t""no" 1>&6 |
a1622950 | 3114 | fi |
579d8138 | 3115 | |
a1622950 | 3116 | |
579d8138 | 3117 | echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6 |
5c0a20c3 | 3118 | echo "configure:3119: checking for --enable-ftp" >&5 |
a1622950 VZ |
3119 | no_cache=0 |
3120 | # Check whether --enable-ftp or --disable-ftp was given. | |
3121 | if test "${enable_ftp+set}" = set; then | |
3122 | enableval="$enable_ftp" | |
579d8138 | 3123 | |
a1622950 VZ |
3124 | if test "$enableval" = yes; then |
3125 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3126 | else | |
3127 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3128 | fi | |
579d8138 | 3129 | |
a1622950 | 3130 | else |
579d8138 | 3131 | |
a1622950 VZ |
3132 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3133 | if test "x$LINE" != x ; then | |
3134 | eval "DEFAULT_$LINE" | |
3135 | else | |
3136 | no_cache=1 | |
3137 | fi | |
3138 | ||
3139 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
579d8138 VS |
3140 | |
3141 | fi | |
a1622950 VZ |
3142 | |
3143 | ||
3144 | eval "$ac_cv_use_ftp" | |
3145 | if test "$no_cache" != 1; then | |
3146 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3147 | fi | |
3148 | ||
3149 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
579d8138 | 3150 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3151 | else |
579d8138 | 3152 | echo "$ac_t""no" 1>&6 |
a1622950 | 3153 | fi |
579d8138 | 3154 | |
a1622950 | 3155 | |
579d8138 | 3156 | echo $ac_n "checking for --enable-http""... $ac_c" 1>&6 |
5c0a20c3 | 3157 | echo "configure:3158: checking for --enable-http" >&5 |
a1622950 VZ |
3158 | no_cache=0 |
3159 | # Check whether --enable-http or --disable-http was given. | |
3160 | if test "${enable_http+set}" = set; then | |
3161 | enableval="$enable_http" | |
579d8138 | 3162 | |
a1622950 VZ |
3163 | if test "$enableval" = yes; then |
3164 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3165 | else | |
3166 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3167 | fi | |
579d8138 | 3168 | |
a1622950 | 3169 | else |
579d8138 | 3170 | |
a1622950 VZ |
3171 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3172 | if test "x$LINE" != x ; then | |
3173 | eval "DEFAULT_$LINE" | |
3174 | else | |
3175 | no_cache=1 | |
3176 | fi | |
3177 | ||
3178 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
579d8138 VS |
3179 | |
3180 | fi | |
a1622950 VZ |
3181 | |
3182 | ||
3183 | eval "$ac_cv_use_http" | |
3184 | if test "$no_cache" != 1; then | |
3185 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3186 | fi | |
3187 | ||
3188 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
579d8138 | 3189 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3190 | else |
579d8138 | 3191 | echo "$ac_t""no" 1>&6 |
a1622950 | 3192 | fi |
579d8138 | 3193 | |
a1622950 | 3194 | |
579d8138 | 3195 | echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6 |
5c0a20c3 | 3196 | echo "configure:3197: checking for --enable-fileproto" >&5 |
a1622950 VZ |
3197 | no_cache=0 |
3198 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3199 | if test "${enable_fileproto+set}" = set; then | |
3200 | enableval="$enable_fileproto" | |
579d8138 | 3201 | |
a1622950 VZ |
3202 | if test "$enableval" = yes; then |
3203 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3204 | else | |
3205 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3206 | fi | |
579d8138 | 3207 | |
a1622950 | 3208 | else |
579d8138 | 3209 | |
a1622950 VZ |
3210 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3211 | if test "x$LINE" != x ; then | |
3212 | eval "DEFAULT_$LINE" | |
3213 | else | |
3214 | no_cache=1 | |
3215 | fi | |
3216 | ||
3217 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
579d8138 VS |
3218 | |
3219 | fi | |
a1622950 VZ |
3220 | |
3221 | ||
3222 | eval "$ac_cv_use_fileproto" | |
3223 | if test "$no_cache" != 1; then | |
3224 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3225 | fi | |
3226 | ||
3227 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
579d8138 | 3228 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3229 | else |
579d8138 | 3230 | echo "$ac_t""no" 1>&6 |
a1622950 | 3231 | fi |
579d8138 | 3232 | |
a1622950 | 3233 | |
579d8138 | 3234 | echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6 |
5c0a20c3 | 3235 | echo "configure:3236: checking for --enable-sockets" >&5 |
10f2d63a VZ |
3236 | no_cache=0 |
3237 | # Check whether --enable-sockets or --disable-sockets was given. | |
3238 | if test "${enable_sockets+set}" = set; then | |
3239 | enableval="$enable_sockets" | |
579d8138 | 3240 | |
10f2d63a VZ |
3241 | if test "$enableval" = yes; then |
3242 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3243 | else | |
3244 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3245 | fi | |
579d8138 | 3246 | |
10f2d63a | 3247 | else |
579d8138 | 3248 | |
10f2d63a VZ |
3249 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3250 | if test "x$LINE" != x ; then | |
3251 | eval "DEFAULT_$LINE" | |
3252 | else | |
3253 | no_cache=1 | |
3254 | fi | |
3255 | ||
3256 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
579d8138 VS |
3257 | |
3258 | fi | |
10f2d63a VZ |
3259 | |
3260 | ||
3261 | eval "$ac_cv_use_sockets" | |
3262 | if test "$no_cache" != 1; then | |
3263 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3264 | fi | |
3265 | ||
3266 | if test "$wxUSE_SOCKETS" = yes; then | |
579d8138 | 3267 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3268 | else |
579d8138 | 3269 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3270 | fi |
579d8138 | 3271 | |
698dcdb6 | 3272 | |
579d8138 VS |
3273 | |
3274 | echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6 | |
5c0a20c3 | 3275 | echo "configure:3276: checking for --enable-ipc" >&5 |
10f2d63a | 3276 | no_cache=0 |
eb4efbdc VZ |
3277 | # Check whether --enable-ipc or --disable-ipc was given. |
3278 | if test "${enable_ipc+set}" = set; then | |
3279 | enableval="$enable_ipc" | |
579d8138 | 3280 | |
10f2d63a | 3281 | if test "$enableval" = yes; then |
eb4efbdc | 3282 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3283 | else |
eb4efbdc | 3284 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3285 | fi |
579d8138 | 3286 | |
10f2d63a | 3287 | else |
579d8138 | 3288 | |
eb4efbdc | 3289 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3290 | if test "x$LINE" != x ; then |
3291 | eval "DEFAULT_$LINE" | |
3292 | else | |
3293 | no_cache=1 | |
3294 | fi | |
3295 | ||
eb4efbdc | 3296 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
579d8138 VS |
3297 | |
3298 | fi | |
10f2d63a VZ |
3299 | |
3300 | ||
eb4efbdc | 3301 | eval "$ac_cv_use_ipc" |
10f2d63a | 3302 | if test "$no_cache" != 1; then |
eb4efbdc | 3303 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3304 | fi |
3305 | ||
eb4efbdc | 3306 | if test "$wxUSE_IPC" = yes; then |
579d8138 | 3307 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3308 | else |
579d8138 | 3309 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3310 | fi |
579d8138 VS |
3311 | |
3312 | ||
698dcdb6 | 3313 | |
579d8138 | 3314 | echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6 |
5c0a20c3 | 3315 | echo "configure:3316: checking for --enable-cmdline" >&5 |
1e6feb95 VZ |
3316 | no_cache=0 |
3317 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3318 | if test "${enable_cmdline+set}" = set; then | |
3319 | enableval="$enable_cmdline" | |
579d8138 | 3320 | |
1e6feb95 VZ |
3321 | if test "$enableval" = yes; then |
3322 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3323 | else | |
3324 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3325 | fi | |
579d8138 | 3326 | |
1e6feb95 | 3327 | else |
579d8138 | 3328 | |
1e6feb95 VZ |
3329 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3330 | if test "x$LINE" != x ; then | |
3331 | eval "DEFAULT_$LINE" | |
3332 | else | |
3333 | no_cache=1 | |
3334 | fi | |
3335 | ||
3336 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
579d8138 VS |
3337 | |
3338 | fi | |
1e6feb95 VZ |
3339 | |
3340 | ||
3341 | eval "$ac_cv_use_cmdline" | |
3342 | if test "$no_cache" != 1; then | |
3343 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3344 | fi | |
3345 | ||
3346 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
579d8138 | 3347 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3348 | else |
579d8138 | 3349 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3350 | fi |
579d8138 | 3351 | |
1e6feb95 | 3352 | |
579d8138 | 3353 | echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6 |
5c0a20c3 | 3354 | echo "configure:3355: checking for --enable-datetime" >&5 |
1e6feb95 VZ |
3355 | no_cache=0 |
3356 | # Check whether --enable-datetime or --disable-datetime was given. | |
3357 | if test "${enable_datetime+set}" = set; then | |
3358 | enableval="$enable_datetime" | |
579d8138 | 3359 | |
1e6feb95 VZ |
3360 | if test "$enableval" = yes; then |
3361 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3362 | else | |
3363 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3364 | fi | |
579d8138 | 3365 | |
1e6feb95 | 3366 | else |
579d8138 | 3367 | |
1e6feb95 VZ |
3368 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3369 | if test "x$LINE" != x ; then | |
3370 | eval "DEFAULT_$LINE" | |
3371 | else | |
3372 | no_cache=1 | |
3373 | fi | |
3374 | ||
3375 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
579d8138 VS |
3376 | |
3377 | fi | |
1e6feb95 VZ |
3378 | |
3379 | ||
3380 | eval "$ac_cv_use_datetime" | |
3381 | if test "$no_cache" != 1; then | |
3382 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3383 | fi | |
3384 | ||
3385 | if test "$wxUSE_DATETIME" = yes; then | |
579d8138 | 3386 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3387 | else |
579d8138 | 3388 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3389 | fi |
579d8138 | 3390 | |
1e6feb95 | 3391 | |
579d8138 | 3392 | echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6 |
5c0a20c3 | 3393 | echo "configure:3394: checking for --enable-timedate" >&5 |
1e6feb95 VZ |
3394 | no_cache=0 |
3395 | # Check whether --enable-timedate or --disable-timedate was given. | |
3396 | if test "${enable_timedate+set}" = set; then | |
3397 | enableval="$enable_timedate" | |
579d8138 | 3398 | |
1e6feb95 VZ |
3399 | if test "$enableval" = yes; then |
3400 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3401 | else | |
3402 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3403 | fi | |
579d8138 | 3404 | |
1e6feb95 | 3405 | else |
579d8138 | 3406 | |
1e6feb95 VZ |
3407 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3408 | if test "x$LINE" != x ; then | |
3409 | eval "DEFAULT_$LINE" | |
3410 | else | |
3411 | no_cache=1 | |
3412 | fi | |
3413 | ||
3414 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
579d8138 VS |
3415 | |
3416 | fi | |
1e6feb95 VZ |
3417 | |
3418 | ||
3419 | eval "$ac_cv_use_timedate" | |
3420 | if test "$no_cache" != 1; then | |
3421 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3422 | fi | |
3423 | ||
3424 | if test "$wxUSE_TIMEDATE" = yes; then | |
579d8138 | 3425 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3426 | else |
579d8138 | 3427 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3428 | fi |
579d8138 | 3429 | |
1e6feb95 | 3430 | |
579d8138 | 3431 | echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6 |
5c0a20c3 | 3432 | echo "configure:3433: checking for --enable-stopwatch" >&5 |
1e6feb95 VZ |
3433 | no_cache=0 |
3434 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3435 | if test "${enable_stopwatch+set}" = set; then | |
3436 | enableval="$enable_stopwatch" | |
579d8138 | 3437 | |
1e6feb95 VZ |
3438 | if test "$enableval" = yes; then |
3439 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3440 | else | |
3441 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3442 | fi | |
579d8138 | 3443 | |
1e6feb95 | 3444 | else |
579d8138 | 3445 | |
1e6feb95 VZ |
3446 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3447 | if test "x$LINE" != x ; then | |
3448 | eval "DEFAULT_$LINE" | |
3449 | else | |
3450 | no_cache=1 | |
3451 | fi | |
3452 | ||
3453 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
579d8138 VS |
3454 | |
3455 | fi | |
1e6feb95 VZ |
3456 | |
3457 | ||
3458 | eval "$ac_cv_use_stopwatch" | |
3459 | if test "$no_cache" != 1; then | |
3460 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3461 | fi | |
3462 | ||
3463 | if test "$wxUSE_STOPWATCH" = yes; then | |
579d8138 | 3464 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3465 | else |
579d8138 | 3466 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3467 | fi |
579d8138 | 3468 | |
1e6feb95 | 3469 | |
579d8138 | 3470 | echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6 |
5c0a20c3 | 3471 | echo "configure:3472: checking for --enable-dialupman" >&5 |
10f2d63a | 3472 | no_cache=0 |
eb4efbdc VZ |
3473 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3474 | if test "${enable_dialupman+set}" = set; then | |
3475 | enableval="$enable_dialupman" | |
579d8138 | 3476 | |
10f2d63a | 3477 | if test "$enableval" = yes; then |
eb4efbdc | 3478 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3479 | else |
eb4efbdc | 3480 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3481 | fi |
579d8138 | 3482 | |
10f2d63a | 3483 | else |
579d8138 | 3484 | |
eb4efbdc | 3485 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3486 | if test "x$LINE" != x ; then |
3487 | eval "DEFAULT_$LINE" | |
3488 | else | |
3489 | no_cache=1 | |
3490 | fi | |
3491 | ||
eb4efbdc | 3492 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
579d8138 VS |
3493 | |
3494 | fi | |
10f2d63a VZ |
3495 | |
3496 | ||
eb4efbdc | 3497 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3498 | if test "$no_cache" != 1; then |
eb4efbdc | 3499 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3500 | fi |
3501 | ||
eb4efbdc | 3502 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
579d8138 | 3503 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3504 | else |
579d8138 | 3505 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3506 | fi |
579d8138 | 3507 | |
10f2d63a | 3508 | |
579d8138 | 3509 | echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6 |
5c0a20c3 | 3510 | echo "configure:3511: checking for --enable-apple_ieee" >&5 |
10f2d63a VZ |
3511 | no_cache=0 |
3512 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3513 | if test "${enable_apple_ieee+set}" = set; then | |
3514 | enableval="$enable_apple_ieee" | |
579d8138 | 3515 | |
10f2d63a VZ |
3516 | if test "$enableval" = yes; then |
3517 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3518 | else | |
3519 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3520 | fi | |
579d8138 | 3521 | |
10f2d63a | 3522 | else |
579d8138 | 3523 | |
10f2d63a VZ |
3524 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3525 | if test "x$LINE" != x ; then | |
3526 | eval "DEFAULT_$LINE" | |
3527 | else | |
3528 | no_cache=1 | |
3529 | fi | |
3530 | ||
3531 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
579d8138 VS |
3532 | |
3533 | fi | |
10f2d63a VZ |
3534 | |
3535 | ||
3536 | eval "$ac_cv_use_apple_ieee" | |
3537 | if test "$no_cache" != 1; then | |
3538 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3539 | fi | |
3540 | ||
3541 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
579d8138 | 3542 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3543 | else |
579d8138 | 3544 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3545 | fi |
579d8138 | 3546 | |
10f2d63a | 3547 | |
579d8138 | 3548 | echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6 |
5c0a20c3 | 3549 | echo "configure:3550: checking for --enable-timer" >&5 |
10f2d63a | 3550 | no_cache=0 |
1e6feb95 VZ |
3551 | # Check whether --enable-timer or --disable-timer was given. |
3552 | if test "${enable_timer+set}" = set; then | |
3553 | enableval="$enable_timer" | |
579d8138 | 3554 | |
10f2d63a | 3555 | if test "$enableval" = yes; then |
1e6feb95 | 3556 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3557 | else |
1e6feb95 | 3558 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3559 | fi |
579d8138 | 3560 | |
10f2d63a | 3561 | else |
579d8138 | 3562 | |
1e6feb95 | 3563 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3564 | if test "x$LINE" != x ; then |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
1e6feb95 | 3570 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
579d8138 VS |
3571 | |
3572 | fi | |
10f2d63a VZ |
3573 | |
3574 | ||
1e6feb95 | 3575 | eval "$ac_cv_use_timer" |
10f2d63a | 3576 | if test "$no_cache" != 1; then |
1e6feb95 | 3577 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3578 | fi |
3579 | ||
1e6feb95 | 3580 | if test "$wxUSE_TIMER" = yes; then |
579d8138 | 3581 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3582 | else |
579d8138 | 3583 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3584 | fi |
579d8138 | 3585 | |
10f2d63a | 3586 | |
579d8138 | 3587 | echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6 |
5c0a20c3 | 3588 | echo "configure:3589: checking for --enable-wave" >&5 |
10f2d63a VZ |
3589 | no_cache=0 |
3590 | # Check whether --enable-wave or --disable-wave was given. | |
3591 | if test "${enable_wave+set}" = set; then | |
3592 | enableval="$enable_wave" | |
579d8138 | 3593 | |
10f2d63a VZ |
3594 | if test "$enableval" = yes; then |
3595 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3596 | else | |
3597 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3598 | fi | |
579d8138 | 3599 | |
10f2d63a | 3600 | else |
579d8138 | 3601 | |
10f2d63a VZ |
3602 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3603 | if test "x$LINE" != x ; then | |
3604 | eval "DEFAULT_$LINE" | |
3605 | else | |
3606 | no_cache=1 | |
3607 | fi | |
3608 | ||
3609 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
579d8138 VS |
3610 | |
3611 | fi | |
10f2d63a VZ |
3612 | |
3613 | ||
3614 | eval "$ac_cv_use_wave" | |
3615 | if test "$no_cache" != 1; then | |
3616 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3617 | fi | |
3618 | ||
3619 | if test "$wxUSE_WAVE" = yes; then | |
579d8138 | 3620 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3621 | else |
579d8138 | 3622 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3623 | fi |
579d8138 | 3624 | |
10f2d63a | 3625 | |
579d8138 | 3626 | echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6 |
5c0a20c3 | 3627 | echo "configure:3628: checking for --enable-fraction" >&5 |
10f2d63a VZ |
3628 | no_cache=0 |
3629 | # Check whether --enable-fraction or --disable-fraction was given. | |
3630 | if test "${enable_fraction+set}" = set; then | |
3631 | enableval="$enable_fraction" | |
579d8138 | 3632 | |
10f2d63a VZ |
3633 | if test "$enableval" = yes; then |
3634 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3635 | else | |
3636 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3637 | fi | |
579d8138 | 3638 | |
10f2d63a | 3639 | else |
579d8138 | 3640 | |
10f2d63a VZ |
3641 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3642 | if test "x$LINE" != x ; then | |
3643 | eval "DEFAULT_$LINE" | |
3644 | else | |
3645 | no_cache=1 | |
3646 | fi | |
3647 | ||
3648 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
579d8138 VS |
3649 | |
3650 | fi | |
10f2d63a VZ |
3651 | |
3652 | ||
3653 | eval "$ac_cv_use_fraction" | |
3654 | if test "$no_cache" != 1; then | |
3655 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3656 | fi | |
3657 | ||
3658 | if test "$wxUSE_FRACTION" = yes; then | |
579d8138 | 3659 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3660 | else |
579d8138 | 3661 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3662 | fi |
579d8138 | 3663 | |
10f2d63a | 3664 | |
579d8138 | 3665 | echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6 |
5c0a20c3 | 3666 | echo "configure:3667: checking for --enable-dynlib" >&5 |
10f2d63a VZ |
3667 | no_cache=0 |
3668 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3669 | if test "${enable_dynlib+set}" = set; then | |
3670 | enableval="$enable_dynlib" | |
579d8138 | 3671 | |
10f2d63a VZ |
3672 | if test "$enableval" = yes; then |
3673 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3674 | else | |
3675 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3676 | fi | |
579d8138 | 3677 | |
10f2d63a | 3678 | else |
579d8138 | 3679 | |
10f2d63a VZ |
3680 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3681 | if test "x$LINE" != x ; then | |
3682 | eval "DEFAULT_$LINE" | |
3683 | else | |
3684 | no_cache=1 | |
3685 | fi | |
3686 | ||
3687 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
579d8138 VS |
3688 | |
3689 | fi | |
10f2d63a VZ |
3690 | |
3691 | ||
3692 | eval "$ac_cv_use_dynlib" | |
3693 | if test "$no_cache" != 1; then | |
3694 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3695 | fi | |
3696 | ||
3697 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
579d8138 | 3698 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3699 | else |
579d8138 | 3700 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3701 | fi |
579d8138 | 3702 | |
10f2d63a | 3703 | |
579d8138 | 3704 | echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6 |
5c0a20c3 | 3705 | echo "configure:3706: checking for --enable-dynamicloader" >&5 |
0b9ab0bd RL |
3706 | no_cache=0 |
3707 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3708 | if test "${enable_dynamicloader+set}" = set; then | |
3709 | enableval="$enable_dynamicloader" | |
579d8138 | 3710 | |
0b9ab0bd RL |
3711 | if test "$enableval" = yes; then |
3712 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3713 | else | |
3714 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3715 | fi | |
579d8138 | 3716 | |
0b9ab0bd | 3717 | else |
579d8138 | 3718 | |
0b9ab0bd RL |
3719 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3720 | if test "x$LINE" != x ; then | |
3721 | eval "DEFAULT_$LINE" | |
3722 | else | |
3723 | no_cache=1 | |
3724 | fi | |
3725 | ||
3726 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
579d8138 VS |
3727 | |
3728 | fi | |
0b9ab0bd RL |
3729 | |
3730 | ||
3731 | eval "$ac_cv_use_dynamicloader" | |
3732 | if test "$no_cache" != 1; then | |
3733 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3734 | fi | |
3735 | ||
3736 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
579d8138 | 3737 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3738 | else |
579d8138 | 3739 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3740 | fi |
579d8138 | 3741 | |
0b9ab0bd | 3742 | |
579d8138 | 3743 | echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6 |
5c0a20c3 | 3744 | echo "configure:3745: checking for --enable-longlong" >&5 |
10f2d63a VZ |
3745 | no_cache=0 |
3746 | # Check whether --enable-longlong or --disable-longlong was given. | |
3747 | if test "${enable_longlong+set}" = set; then | |
3748 | enableval="$enable_longlong" | |
579d8138 | 3749 | |
10f2d63a VZ |
3750 | if test "$enableval" = yes; then |
3751 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3752 | else | |
3753 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3754 | fi | |
579d8138 | 3755 | |
10f2d63a | 3756 | else |
579d8138 | 3757 | |
10f2d63a VZ |
3758 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3759 | if test "x$LINE" != x ; then | |
3760 | eval "DEFAULT_$LINE" | |
3761 | else | |
3762 | no_cache=1 | |
3763 | fi | |
3764 | ||
3765 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
579d8138 VS |
3766 | |
3767 | fi | |
10f2d63a VZ |
3768 | |
3769 | ||
3770 | eval "$ac_cv_use_longlong" | |
3771 | if test "$no_cache" != 1; then | |
3772 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3773 | fi | |
3774 | ||
3775 | if test "$wxUSE_LONGLONG" = yes; then | |
579d8138 | 3776 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3777 | else |
579d8138 | 3778 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3779 | fi |
579d8138 | 3780 | |
10f2d63a | 3781 | |
579d8138 | 3782 | echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6 |
5c0a20c3 | 3783 | echo "configure:3784: checking for --enable-geometry" >&5 |
e8f65ba6 RR |
3784 | no_cache=0 |
3785 | # Check whether --enable-geometry or --disable-geometry was given. | |
3786 | if test "${enable_geometry+set}" = set; then | |
3787 | enableval="$enable_geometry" | |
579d8138 | 3788 | |
e8f65ba6 RR |
3789 | if test "$enableval" = yes; then |
3790 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3791 | else | |
3792 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3793 | fi | |
579d8138 | 3794 | |
e8f65ba6 | 3795 | else |
579d8138 | 3796 | |
e8f65ba6 RR |
3797 | LINE=`grep "wxUSE_GEOMETRY" ${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_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
579d8138 VS |
3805 | |
3806 | fi | |
e8f65ba6 RR |
3807 | |
3808 | ||
3809 | eval "$ac_cv_use_geometry" | |
3810 | if test "$no_cache" != 1; then | |
3811 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3812 | fi | |
3813 | ||
3814 | if test "$wxUSE_GEOMETRY" = yes; then | |
579d8138 | 3815 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3816 | else |
579d8138 | 3817 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3818 | fi |
579d8138 | 3819 | |
e8f65ba6 | 3820 | |
579d8138 | 3821 | echo $ac_n "checking for --enable-log""... $ac_c" 1>&6 |
5c0a20c3 | 3822 | echo "configure:3823: checking for --enable-log" >&5 |
10f2d63a VZ |
3823 | no_cache=0 |
3824 | # Check whether --enable-log or --disable-log was given. | |
3825 | if test "${enable_log+set}" = set; then | |
3826 | enableval="$enable_log" | |
579d8138 | 3827 | |
10f2d63a VZ |
3828 | if test "$enableval" = yes; then |
3829 | ac_cv_use_log='wxUSE_LOG=yes' | |
3830 | else | |
3831 | ac_cv_use_log='wxUSE_LOG=no' | |
3832 | fi | |
579d8138 | 3833 | |
10f2d63a | 3834 | else |
579d8138 | 3835 | |
10f2d63a VZ |
3836 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
3837 | if test "x$LINE" != x ; then | |
3838 | eval "DEFAULT_$LINE" | |
3839 | else | |
3840 | no_cache=1 | |
3841 | fi | |
3842 | ||
3843 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
579d8138 VS |
3844 | |
3845 | fi | |
10f2d63a VZ |
3846 | |
3847 | ||
3848 | eval "$ac_cv_use_log" | |
3849 | if test "$no_cache" != 1; then | |
3850 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
3851 | fi | |
3852 | ||
3853 | if test "$wxUSE_LOG" = yes; then | |
579d8138 | 3854 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3855 | else |
579d8138 | 3856 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3857 | fi |
579d8138 | 3858 | |
10f2d63a | 3859 | |
579d8138 | 3860 | echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6 |
5c0a20c3 | 3861 | echo "configure:3862: checking for --enable-streams" >&5 |
10f2d63a VZ |
3862 | no_cache=0 |
3863 | # Check whether --enable-streams or --disable-streams was given. | |
3864 | if test "${enable_streams+set}" = set; then | |
3865 | enableval="$enable_streams" | |
579d8138 | 3866 | |
10f2d63a VZ |
3867 | if test "$enableval" = yes; then |
3868 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
3869 | else | |
3870 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
3871 | fi | |
579d8138 | 3872 | |
10f2d63a | 3873 | else |
579d8138 | 3874 | |
10f2d63a VZ |
3875 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
3876 | if test "x$LINE" != x ; then | |
3877 | eval "DEFAULT_$LINE" | |
3878 | else | |
3879 | no_cache=1 | |
3880 | fi | |
3881 | ||
3882 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
579d8138 VS |
3883 | |
3884 | fi | |
10f2d63a VZ |
3885 | |
3886 | ||
3887 | eval "$ac_cv_use_streams" | |
3888 | if test "$no_cache" != 1; then | |
3889 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
3890 | fi | |
3891 | ||
3892 | if test "$wxUSE_STREAMS" = yes; then | |
579d8138 | 3893 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3894 | else |
579d8138 | 3895 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3896 | fi |
579d8138 | 3897 | |
10f2d63a | 3898 | |
579d8138 | 3899 | echo $ac_n "checking for --enable-file""... $ac_c" 1>&6 |
5c0a20c3 | 3900 | echo "configure:3901: checking for --enable-file" >&5 |
10f2d63a VZ |
3901 | no_cache=0 |
3902 | # Check whether --enable-file or --disable-file was given. | |
3903 | if test "${enable_file+set}" = set; then | |
3904 | enableval="$enable_file" | |
579d8138 | 3905 | |
10f2d63a VZ |
3906 | if test "$enableval" = yes; then |
3907 | ac_cv_use_file='wxUSE_FILE=yes' | |
3908 | else | |
3909 | ac_cv_use_file='wxUSE_FILE=no' | |
3910 | fi | |
579d8138 | 3911 | |
10f2d63a | 3912 | else |
579d8138 | 3913 | |
10f2d63a VZ |
3914 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
3915 | if test "x$LINE" != x ; then | |
3916 | eval "DEFAULT_$LINE" | |
3917 | else | |
3918 | no_cache=1 | |
3919 | fi | |
3920 | ||
3921 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
579d8138 VS |
3922 | |
3923 | fi | |
10f2d63a VZ |
3924 | |
3925 | ||
3926 | eval "$ac_cv_use_file" | |
3927 | if test "$no_cache" != 1; then | |
3928 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
3929 | fi | |
3930 | ||
3931 | if test "$wxUSE_FILE" = yes; then | |
579d8138 | 3932 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3933 | else |
579d8138 | 3934 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3935 | fi |
579d8138 | 3936 | |
10f2d63a | 3937 | |
579d8138 | 3938 | echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6 |
5c0a20c3 | 3939 | echo "configure:3940: checking for --enable-ffile" >&5 |
10f2d63a | 3940 | no_cache=0 |
1e6feb95 VZ |
3941 | # Check whether --enable-ffile or --disable-ffile was given. |
3942 | if test "${enable_ffile+set}" = set; then | |
3943 | enableval="$enable_ffile" | |
579d8138 | 3944 | |
10f2d63a | 3945 | if test "$enableval" = yes; then |
1e6feb95 | 3946 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 3947 | else |
1e6feb95 | 3948 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 3949 | fi |
579d8138 | 3950 | |
10f2d63a | 3951 | else |
579d8138 | 3952 | |
1e6feb95 | 3953 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
3954 | if test "x$LINE" != x ; then |
3955 | eval "DEFAULT_$LINE" | |
3956 | else | |
3957 | no_cache=1 | |
3958 | fi | |
3959 | ||
1e6feb95 | 3960 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
579d8138 VS |
3961 | |
3962 | fi | |
10f2d63a VZ |
3963 | |
3964 | ||
1e6feb95 | 3965 | eval "$ac_cv_use_ffile" |
10f2d63a | 3966 | if test "$no_cache" != 1; then |
1e6feb95 | 3967 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3968 | fi |
3969 | ||
1e6feb95 | 3970 | if test "$wxUSE_FFILE" = yes; then |
579d8138 | 3971 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3972 | else |
579d8138 | 3973 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3974 | fi |
579d8138 | 3975 | |
10f2d63a | 3976 | |
579d8138 | 3977 | echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6 |
5c0a20c3 | 3978 | echo "configure:3979: checking for --enable-textbuf" >&5 |
a3a584a7 VZ |
3979 | no_cache=0 |
3980 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
3981 | if test "${enable_textbuf+set}" = set; then | |
3982 | enableval="$enable_textbuf" | |
579d8138 | 3983 | |
a3a584a7 VZ |
3984 | if test "$enableval" = yes; then |
3985 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
3986 | else | |
3987 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
3988 | fi | |
579d8138 | 3989 | |
a3a584a7 | 3990 | else |
579d8138 | 3991 | |
a3a584a7 VZ |
3992 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
3993 | if test "x$LINE" != x ; then | |
3994 | eval "DEFAULT_$LINE" | |
3995 | else | |
3996 | no_cache=1 | |
3997 | fi | |
3998 | ||
3999 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
579d8138 VS |
4000 | |
4001 | fi | |
a3a584a7 VZ |
4002 | |
4003 | ||
4004 | eval "$ac_cv_use_textbuf" | |
4005 | if test "$no_cache" != 1; then | |
4006 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4007 | fi | |
4008 | ||
4009 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
579d8138 | 4010 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4011 | else |
579d8138 | 4012 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4013 | fi |
579d8138 | 4014 | |
a3a584a7 | 4015 | |
579d8138 | 4016 | echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6 |
5c0a20c3 | 4017 | echo "configure:4018: checking for --enable-textfile" >&5 |
10f2d63a | 4018 | no_cache=0 |
1e6feb95 VZ |
4019 | # Check whether --enable-textfile or --disable-textfile was given. |
4020 | if test "${enable_textfile+set}" = set; then | |
4021 | enableval="$enable_textfile" | |
579d8138 | 4022 | |
10f2d63a | 4023 | if test "$enableval" = yes; then |
1e6feb95 | 4024 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4025 | else |
1e6feb95 | 4026 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4027 | fi |
579d8138 | 4028 | |
10f2d63a | 4029 | else |
579d8138 | 4030 | |
1e6feb95 | 4031 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4032 | if test "x$LINE" != x ; then |
4033 | eval "DEFAULT_$LINE" | |
4034 | else | |
4035 | no_cache=1 | |
4036 | fi | |
4037 | ||
1e6feb95 | 4038 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
579d8138 VS |
4039 | |
4040 | fi | |
10f2d63a VZ |
4041 | |
4042 | ||
1e6feb95 | 4043 | eval "$ac_cv_use_textfile" |
10f2d63a | 4044 | if test "$no_cache" != 1; then |
1e6feb95 | 4045 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4046 | fi |
4047 | ||
1e6feb95 | 4048 | if test "$wxUSE_TEXTFILE" = yes; then |
579d8138 | 4049 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4050 | else |
579d8138 | 4051 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4052 | fi |
579d8138 | 4053 | |
10f2d63a | 4054 | |
579d8138 | 4055 | echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6 |
5c0a20c3 | 4056 | echo "configure:4057: checking for --enable-fontmap" >&5 |
10f2d63a | 4057 | no_cache=0 |
1e6feb95 VZ |
4058 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4059 | if test "${enable_fontmap+set}" = set; then | |
4060 | enableval="$enable_fontmap" | |
579d8138 | 4061 | |
10f2d63a | 4062 | if test "$enableval" = yes; then |
1e6feb95 | 4063 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4064 | else |
1e6feb95 | 4065 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4066 | fi |
579d8138 | 4067 | |
10f2d63a | 4068 | else |
579d8138 | 4069 | |
1e6feb95 | 4070 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4071 | if test "x$LINE" != x ; then |
4072 | eval "DEFAULT_$LINE" | |
4073 | else | |
4074 | no_cache=1 | |
4075 | fi | |
4076 | ||
1e6feb95 | 4077 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
579d8138 VS |
4078 | |
4079 | fi | |
10f2d63a VZ |
4080 | |
4081 | ||
1e6feb95 | 4082 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4083 | if test "$no_cache" != 1; then |
1e6feb95 | 4084 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4085 | fi |
4086 | ||
1e6feb95 | 4087 | if test "$wxUSE_FONTMAP" = yes; then |
579d8138 | 4088 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4089 | else |
579d8138 | 4090 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4091 | fi |
579d8138 | 4092 | |
10f2d63a | 4093 | |
579d8138 | 4094 | echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6 |
5c0a20c3 | 4095 | echo "configure:4096: checking for --enable-unicode" >&5 |
10f2d63a | 4096 | no_cache=0 |
1e6feb95 VZ |
4097 | # Check whether --enable-unicode or --disable-unicode was given. |
4098 | if test "${enable_unicode+set}" = set; then | |
4099 | enableval="$enable_unicode" | |
579d8138 | 4100 | |
1e6feb95 VZ |
4101 | if test "$enableval" = yes; then |
4102 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4103 | else | |
4104 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4105 | fi | |
579d8138 | 4106 | |
1e6feb95 | 4107 | else |
579d8138 | 4108 | |
1e6feb95 VZ |
4109 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4110 | if test "x$LINE" != x ; then | |
4111 | eval "DEFAULT_$LINE" | |
4112 | else | |
4113 | no_cache=1 | |
4114 | fi | |
4115 | ||
4116 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
579d8138 VS |
4117 | |
4118 | fi | |
1e6feb95 VZ |
4119 | |
4120 | ||
4121 | eval "$ac_cv_use_unicode" | |
4122 | if test "$no_cache" != 1; then | |
4123 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4124 | fi | |
4125 | ||
4126 | if test "$wxUSE_UNICODE" = yes; then | |
579d8138 | 4127 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4128 | else |
579d8138 | 4129 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4130 | fi |
579d8138 | 4131 | |
1e6feb95 | 4132 | |
579d8138 | 4133 | echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6 |
5c0a20c3 | 4134 | echo "configure:4135: checking for --enable-mslu" >&5 |
a72a4bfa VS |
4135 | no_cache=0 |
4136 | # Check whether --enable-mslu or --disable-mslu was given. | |
4137 | if test "${enable_mslu+set}" = set; then | |
4138 | enableval="$enable_mslu" | |
579d8138 | 4139 | |
a72a4bfa VS |
4140 | if test "$enableval" = yes; then |
4141 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4142 | else | |
4143 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4144 | fi | |
579d8138 | 4145 | |
a72a4bfa | 4146 | else |
579d8138 | 4147 | |
a72a4bfa VS |
4148 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4149 | if test "x$LINE" != x ; then | |
4150 | eval "DEFAULT_$LINE" | |
4151 | else | |
4152 | no_cache=1 | |
4153 | fi | |
4154 | ||
4155 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
579d8138 VS |
4156 | |
4157 | fi | |
a72a4bfa VS |
4158 | |
4159 | ||
4160 | eval "$ac_cv_use_mslu" | |
4161 | if test "$no_cache" != 1; then | |
4162 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4163 | fi | |
4164 | ||
4165 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
579d8138 | 4166 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4167 | else |
579d8138 | 4168 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4169 | fi |
579d8138 | 4170 | |
a72a4bfa | 4171 | |
579d8138 | 4172 | echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6 |
5c0a20c3 | 4173 | echo "configure:4174: checking for --enable-wxprintfv" >&5 |
1e6feb95 VZ |
4174 | no_cache=0 |
4175 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4176 | if test "${enable_wxprintfv+set}" = set; then | |
4177 | enableval="$enable_wxprintfv" | |
579d8138 | 4178 | |
1e6feb95 | 4179 | if test "$enableval" = yes; then |
10f2d63a VZ |
4180 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4181 | else | |
4182 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4183 | fi | |
579d8138 | 4184 | |
10f2d63a | 4185 | else |
579d8138 | 4186 | |
10f2d63a VZ |
4187 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4188 | if test "x$LINE" != x ; then | |
4189 | eval "DEFAULT_$LINE" | |
4190 | else | |
4191 | no_cache=1 | |
4192 | fi | |
4193 | ||
4194 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
579d8138 VS |
4195 | |
4196 | fi | |
10f2d63a VZ |
4197 | |
4198 | ||
4199 | eval "$ac_cv_use_wxprintfv" | |
4200 | if test "$no_cache" != 1; then | |
4201 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4202 | fi | |
4203 | ||
4204 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
579d8138 | 4205 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4206 | else |
579d8138 | 4207 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4208 | fi |
579d8138 | 4209 | |
10f2d63a | 4210 | |
579d8138 | 4211 | echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6 |
5c0a20c3 | 4212 | echo "configure:4213: checking for --enable-std_iostreams" >&5 |
10f2d63a VZ |
4213 | no_cache=0 |
4214 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4215 | if test "${enable_std_iostreams+set}" = set; then | |
4216 | enableval="$enable_std_iostreams" | |
579d8138 | 4217 | |
10f2d63a VZ |
4218 | if test "$enableval" = yes; then |
4219 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4220 | else | |
4221 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4222 | fi | |
579d8138 | 4223 | |
10f2d63a | 4224 | else |
579d8138 | 4225 | |
10f2d63a VZ |
4226 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4227 | if test "x$LINE" != x ; then | |
4228 | eval "DEFAULT_$LINE" | |
4229 | else | |
4230 | no_cache=1 | |
4231 | fi | |
4232 | ||
4233 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
579d8138 VS |
4234 | |
4235 | fi | |
10f2d63a VZ |
4236 | |
4237 | ||
4238 | eval "$ac_cv_use_std_iostreams" | |
4239 | if test "$no_cache" != 1; then | |
4240 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4241 | fi | |
4242 | ||
4243 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
579d8138 | 4244 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4245 | else |
579d8138 | 4246 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4247 | fi |
579d8138 | 4248 | |
10f2d63a | 4249 | |
579d8138 | 4250 | echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6 |
5c0a20c3 | 4251 | echo "configure:4252: checking for --enable-filesystem" >&5 |
24528b0c VS |
4252 | no_cache=0 |
4253 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4254 | if test "${enable_filesystem+set}" = set; then | |
4255 | enableval="$enable_filesystem" | |
579d8138 | 4256 | |
24528b0c VS |
4257 | if test "$enableval" = yes; then |
4258 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4259 | else | |
4260 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4261 | fi | |
579d8138 | 4262 | |
24528b0c | 4263 | else |
579d8138 | 4264 | |
24528b0c VS |
4265 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4266 | if test "x$LINE" != x ; then | |
4267 | eval "DEFAULT_$LINE" | |
4268 | else | |
4269 | no_cache=1 | |
4270 | fi | |
4271 | ||
4272 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
579d8138 VS |
4273 | |
4274 | fi | |
24528b0c VS |
4275 | |
4276 | ||
4277 | eval "$ac_cv_use_filesystem" | |
4278 | if test "$no_cache" != 1; then | |
4279 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4280 | fi | |
4281 | ||
4282 | if test "$wxUSE_FILESYSTEM" = yes; then | |
579d8138 | 4283 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4284 | else |
579d8138 | 4285 | echo "$ac_t""no" 1>&6 |
24528b0c | 4286 | fi |
579d8138 | 4287 | |
24528b0c | 4288 | |
579d8138 | 4289 | echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6 |
5c0a20c3 | 4290 | echo "configure:4291: checking for --enable-fs_inet" >&5 |
10f2d63a VZ |
4291 | no_cache=0 |
4292 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4293 | if test "${enable_fs_inet+set}" = set; then | |
4294 | enableval="$enable_fs_inet" | |
579d8138 | 4295 | |
10f2d63a VZ |
4296 | if test "$enableval" = yes; then |
4297 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4298 | else | |
4299 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4300 | fi | |
579d8138 | 4301 | |
10f2d63a | 4302 | else |
579d8138 | 4303 | |
10f2d63a VZ |
4304 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4305 | if test "x$LINE" != x ; then | |
4306 | eval "DEFAULT_$LINE" | |
4307 | else | |
4308 | no_cache=1 | |
4309 | fi | |
4310 | ||
4311 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
579d8138 VS |
4312 | |
4313 | fi | |
10f2d63a VZ |
4314 | |
4315 | ||
4316 | eval "$ac_cv_use_fs_inet" | |
4317 | if test "$no_cache" != 1; then | |
4318 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4319 | fi | |
4320 | ||
4321 | if test "$wxUSE_FS_INET" = yes; then | |
579d8138 | 4322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4323 | else |
579d8138 | 4324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4325 | fi |
579d8138 | 4326 | |
10f2d63a | 4327 | |
579d8138 | 4328 | echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6 |
5c0a20c3 | 4329 | echo "configure:4330: checking for --enable-fs_zip" >&5 |
10f2d63a VZ |
4330 | no_cache=0 |
4331 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4332 | if test "${enable_fs_zip+set}" = set; then | |
4333 | enableval="$enable_fs_zip" | |
579d8138 | 4334 | |
10f2d63a VZ |
4335 | if test "$enableval" = yes; then |
4336 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4337 | else | |
4338 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4339 | fi | |
579d8138 | 4340 | |
10f2d63a | 4341 | else |
579d8138 | 4342 | |
10f2d63a VZ |
4343 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4344 | if test "x$LINE" != x ; then | |
4345 | eval "DEFAULT_$LINE" | |
4346 | else | |
4347 | no_cache=1 | |
4348 | fi | |
4349 | ||
4350 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
579d8138 VS |
4351 | |
4352 | fi | |
10f2d63a VZ |
4353 | |
4354 | ||
4355 | eval "$ac_cv_use_fs_zip" | |
4356 | if test "$no_cache" != 1; then | |
4357 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4358 | fi | |
4359 | ||
4360 | if test "$wxUSE_FS_ZIP" = yes; then | |
579d8138 | 4361 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4362 | else |
579d8138 | 4363 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4364 | fi |
579d8138 | 4365 | |
10f2d63a | 4366 | |
579d8138 | 4367 | echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6 |
5c0a20c3 | 4368 | echo "configure:4369: checking for --enable-zipstream" >&5 |
10f2d63a VZ |
4369 | no_cache=0 |
4370 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4371 | if test "${enable_zipstream+set}" = set; then | |
4372 | enableval="$enable_zipstream" | |
579d8138 | 4373 | |
10f2d63a VZ |
4374 | if test "$enableval" = yes; then |
4375 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4376 | else | |
4377 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4378 | fi | |
579d8138 | 4379 | |
10f2d63a | 4380 | else |
579d8138 | 4381 | |
10f2d63a VZ |
4382 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4383 | if test "x$LINE" != x ; then | |
4384 | eval "DEFAULT_$LINE" | |
4385 | else | |
4386 | no_cache=1 | |
4387 | fi | |
4388 | ||
4389 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
579d8138 VS |
4390 | |
4391 | fi | |
10f2d63a VZ |
4392 | |
4393 | ||
4394 | eval "$ac_cv_use_zipstream" | |
4395 | if test "$no_cache" != 1; then | |
4396 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4397 | fi | |
4398 | ||
4399 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
579d8138 | 4400 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4401 | else |
579d8138 | 4402 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4403 | fi |
579d8138 | 4404 | |
698dcdb6 | 4405 | |
579d8138 VS |
4406 | |
4407 | echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6 | |
5c0a20c3 | 4408 | echo "configure:4409: checking for --enable-catch_segvs" >&5 |
eb4efbdc VZ |
4409 | no_cache=0 |
4410 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4411 | if test "${enable_catch_segvs+set}" = set; then | |
4412 | enableval="$enable_catch_segvs" | |
579d8138 | 4413 | |
eb4efbdc VZ |
4414 | if test "$enableval" = yes; then |
4415 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4416 | else | |
4417 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4418 | fi | |
579d8138 | 4419 | |
eb4efbdc | 4420 | else |
579d8138 | 4421 | |
eb4efbdc VZ |
4422 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4423 | if test "x$LINE" != x ; then | |
4424 | eval "DEFAULT_$LINE" | |
4425 | else | |
4426 | no_cache=1 | |
4427 | fi | |
4428 | ||
4429 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
579d8138 VS |
4430 | |
4431 | fi | |
eb4efbdc VZ |
4432 | |
4433 | ||
4434 | eval "$ac_cv_use_catch_segvs" | |
4435 | if test "$no_cache" != 1; then | |
4436 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4437 | fi | |
4438 | ||
4439 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
579d8138 | 4440 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4441 | else |
579d8138 | 4442 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4443 | fi |
579d8138 | 4444 | |
eb4efbdc | 4445 | |
579d8138 | 4446 | echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6 |
5c0a20c3 | 4447 | echo "configure:4448: checking for --enable-snglinst" >&5 |
4f3c5f06 VZ |
4448 | no_cache=0 |
4449 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4450 | if test "${enable_snglinst+set}" = set; then | |
4451 | enableval="$enable_snglinst" | |
579d8138 | 4452 | |
4f3c5f06 VZ |
4453 | if test "$enableval" = yes; then |
4454 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4455 | else | |
4456 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4457 | fi | |
579d8138 | 4458 | |
4f3c5f06 | 4459 | else |
579d8138 | 4460 | |
4f3c5f06 VZ |
4461 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4462 | if test "x$LINE" != x ; then | |
4463 | eval "DEFAULT_$LINE" | |
4464 | else | |
4465 | no_cache=1 | |
4466 | fi | |
4467 | ||
4468 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
579d8138 VS |
4469 | |
4470 | fi | |
4f3c5f06 VZ |
4471 | |
4472 | ||
4473 | eval "$ac_cv_use_snglinst" | |
4474 | if test "$no_cache" != 1; then | |
4475 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4476 | fi | |
4477 | ||
4478 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
579d8138 | 4479 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4480 | else |
579d8138 | 4481 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4482 | fi |
579d8138 VS |
4483 | |
4484 | ||
698dcdb6 | 4485 | |
579d8138 | 4486 | echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6 |
5c0a20c3 | 4487 | echo "configure:4488: checking for --enable-mimetype" >&5 |
1e6feb95 VZ |
4488 | no_cache=0 |
4489 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4490 | if test "${enable_mimetype+set}" = set; then | |
4491 | enableval="$enable_mimetype" | |
579d8138 | 4492 | |
1e6feb95 VZ |
4493 | if test "$enableval" = yes; then |
4494 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4495 | else | |
4496 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4497 | fi | |
579d8138 | 4498 | |
1e6feb95 | 4499 | else |
579d8138 | 4500 | |
1e6feb95 VZ |
4501 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4502 | if test "x$LINE" != x ; then | |
4503 | eval "DEFAULT_$LINE" | |
4504 | else | |
4505 | no_cache=1 | |
4506 | fi | |
4507 | ||
4508 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
579d8138 VS |
4509 | |
4510 | fi | |
1e6feb95 VZ |
4511 | |
4512 | ||
4513 | eval "$ac_cv_use_mimetype" | |
4514 | if test "$no_cache" != 1; then | |
4515 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4516 | fi | |
4517 | ||
4518 | if test "$wxUSE_MIMETYPE" = yes; then | |
579d8138 | 4519 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4520 | else |
579d8138 | 4521 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4522 | fi |
579d8138 | 4523 | |
1e6feb95 | 4524 | |
579d8138 | 4525 | echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6 |
5c0a20c3 | 4526 | echo "configure:4527: checking for --enable-system_options" >&5 |
3e44f09d VZ |
4527 | no_cache=0 |
4528 | # Check whether --enable-system_options or --disable-system_options was given. | |
4529 | if test "${enable_system_options+set}" = set; then | |
4530 | enableval="$enable_system_options" | |
579d8138 | 4531 | |
3e44f09d VZ |
4532 | if test "$enableval" = yes; then |
4533 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4534 | else | |
4535 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4536 | fi | |
579d8138 | 4537 | |
3e44f09d | 4538 | else |
579d8138 | 4539 | |
3e44f09d VZ |
4540 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4541 | if test "x$LINE" != x ; then | |
4542 | eval "DEFAULT_$LINE" | |
4543 | else | |
4544 | no_cache=1 | |
4545 | fi | |
4546 | ||
4547 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
579d8138 VS |
4548 | |
4549 | fi | |
3e44f09d VZ |
4550 | |
4551 | ||
4552 | eval "$ac_cv_use_system_options" | |
4553 | if test "$no_cache" != 1; then | |
4554 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4555 | fi | |
4556 | ||
4557 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
579d8138 | 4558 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4559 | else |
579d8138 | 4560 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4561 | fi |
579d8138 | 4562 | |
1e6feb95 | 4563 | |
579d8138 VS |
4564 | |
4565 | echo $ac_n "checking for --enable-url""... $ac_c" 1>&6 | |
5c0a20c3 | 4566 | echo "configure:4567: checking for --enable-url" >&5 |
4cdb0ab0 VS |
4567 | no_cache=0 |
4568 | # Check whether --enable-url or --disable-url was given. | |
4569 | if test "${enable_url+set}" = set; then | |
4570 | enableval="$enable_url" | |
579d8138 | 4571 | |
4cdb0ab0 VS |
4572 | if test "$enableval" = yes; then |
4573 | ac_cv_use_url='wxUSE_URL=yes' | |
4574 | else | |
4575 | ac_cv_use_url='wxUSE_URL=no' | |
4576 | fi | |
579d8138 | 4577 | |
4cdb0ab0 | 4578 | else |
579d8138 | 4579 | |
4cdb0ab0 VS |
4580 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4581 | if test "x$LINE" != x ; then | |
4582 | eval "DEFAULT_$LINE" | |
4583 | else | |
4584 | no_cache=1 | |
4585 | fi | |
4586 | ||
4587 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
579d8138 VS |
4588 | |
4589 | fi | |
4cdb0ab0 VS |
4590 | |
4591 | ||
4592 | eval "$ac_cv_use_url" | |
4593 | if test "$no_cache" != 1; then | |
4594 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4595 | fi | |
4596 | ||
4597 | if test "$wxUSE_URL" = yes; then | |
579d8138 | 4598 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4599 | else |
579d8138 | 4600 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4601 | fi |
579d8138 | 4602 | |
4cdb0ab0 | 4603 | |
579d8138 | 4604 | echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6 |
5c0a20c3 | 4605 | echo "configure:4606: checking for --enable-protocol" >&5 |
4cdb0ab0 VS |
4606 | no_cache=0 |
4607 | # Check whether --enable-protocol or --disable-protocol was given. | |
4608 | if test "${enable_protocol+set}" = set; then | |
4609 | enableval="$enable_protocol" | |
579d8138 | 4610 | |
4cdb0ab0 VS |
4611 | if test "$enableval" = yes; then |
4612 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4613 | else | |
4614 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4615 | fi | |
579d8138 | 4616 | |
4cdb0ab0 | 4617 | else |
579d8138 | 4618 | |
4cdb0ab0 VS |
4619 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4620 | if test "x$LINE" != x ; then | |
4621 | eval "DEFAULT_$LINE" | |
4622 | else | |
4623 | no_cache=1 | |
4624 | fi | |
4625 | ||
4626 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
579d8138 VS |
4627 | |
4628 | fi | |
4cdb0ab0 VS |
4629 | |
4630 | ||
4631 | eval "$ac_cv_use_protocol" | |
4632 | if test "$no_cache" != 1; then | |
4633 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4634 | fi | |
4635 | ||
4636 | if test "$wxUSE_PROTOCOL" = yes; then | |
579d8138 | 4637 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4638 | else |
579d8138 | 4639 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4640 | fi |
579d8138 | 4641 | |
4cdb0ab0 | 4642 | |
579d8138 | 4643 | echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6 |
5c0a20c3 | 4644 | echo "configure:4645: checking for --enable-protocol_http" >&5 |
4cdb0ab0 VS |
4645 | no_cache=0 |
4646 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4647 | if test "${enable_protocol_http+set}" = set; then | |
4648 | enableval="$enable_protocol_http" | |
579d8138 | 4649 | |
4cdb0ab0 VS |
4650 | if test "$enableval" = yes; then |
4651 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4652 | else | |
4653 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4654 | fi | |
579d8138 | 4655 | |
4cdb0ab0 | 4656 | else |
579d8138 | 4657 | |
4cdb0ab0 VS |
4658 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4659 | if test "x$LINE" != x ; then | |
4660 | eval "DEFAULT_$LINE" | |
4661 | else | |
4662 | no_cache=1 | |
4663 | fi | |
4664 | ||
4665 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
579d8138 VS |
4666 | |
4667 | fi | |
4cdb0ab0 VS |
4668 | |
4669 | ||
4670 | eval "$ac_cv_use_protocol_http" | |
4671 | if test "$no_cache" != 1; then | |
4672 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4673 | fi | |
4674 | ||
4675 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
579d8138 | 4676 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4677 | else |
579d8138 | 4678 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4679 | fi |
579d8138 | 4680 | |
4cdb0ab0 | 4681 | |
579d8138 | 4682 | echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6 |
5c0a20c3 | 4683 | echo "configure:4684: checking for --enable-protocol_ftp" >&5 |
4cdb0ab0 VS |
4684 | no_cache=0 |
4685 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4686 | if test "${enable_protocol_ftp+set}" = set; then | |
4687 | enableval="$enable_protocol_ftp" | |
579d8138 | 4688 | |
4cdb0ab0 VS |
4689 | if test "$enableval" = yes; then |
4690 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4691 | else | |
4692 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4693 | fi | |
579d8138 | 4694 | |
4cdb0ab0 | 4695 | else |
579d8138 | 4696 | |
4cdb0ab0 VS |
4697 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4698 | if test "x$LINE" != x ; then | |
4699 | eval "DEFAULT_$LINE" | |
4700 | else | |
4701 | no_cache=1 | |
4702 | fi | |
4703 | ||
4704 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
579d8138 VS |
4705 | |
4706 | fi | |
4cdb0ab0 VS |
4707 | |
4708 | ||
4709 | eval "$ac_cv_use_protocol_ftp" | |
4710 | if test "$no_cache" != 1; then | |
4711 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4712 | fi | |
4713 | ||
4714 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
579d8138 | 4715 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4716 | else |
579d8138 | 4717 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4718 | fi |
579d8138 | 4719 | |
4cdb0ab0 | 4720 | |
579d8138 | 4721 | echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6 |
5c0a20c3 | 4722 | echo "configure:4723: checking for --enable-protocol_file" >&5 |
4cdb0ab0 VS |
4723 | no_cache=0 |
4724 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4725 | if test "${enable_protocol_file+set}" = set; then | |
4726 | enableval="$enable_protocol_file" | |
579d8138 | 4727 | |
4cdb0ab0 VS |
4728 | if test "$enableval" = yes; then |
4729 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4730 | else | |
4731 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4732 | fi | |
579d8138 | 4733 | |
4cdb0ab0 | 4734 | else |
579d8138 | 4735 | |
4cdb0ab0 VS |
4736 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4737 | if test "x$LINE" != x ; then | |
4738 | eval "DEFAULT_$LINE" | |
4739 | else | |
4740 | no_cache=1 | |
4741 | fi | |
4742 | ||
4743 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
579d8138 VS |
4744 | |
4745 | fi | |
4cdb0ab0 VS |
4746 | |
4747 | ||
4748 | eval "$ac_cv_use_protocol_file" | |
4749 | if test "$no_cache" != 1; then | |
4750 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4751 | fi | |
4752 | ||
4753 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
579d8138 | 4754 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4755 | else |
579d8138 | 4756 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4757 | fi |
579d8138 VS |
4758 | |
4759 | ||
4760 | ||
4761 | ||
4cdb0ab0 | 4762 | |
579d8138 | 4763 | echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6 |
5c0a20c3 | 4764 | echo "configure:4765: checking for --enable-threads" >&5 |
10f2d63a VZ |
4765 | no_cache=0 |
4766 | # Check whether --enable-threads or --disable-threads was given. | |
4767 | if test "${enable_threads+set}" = set; then | |
4768 | enableval="$enable_threads" | |
579d8138 | 4769 | |
10f2d63a VZ |
4770 | if test "$enableval" = yes; then |
4771 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4772 | else | |
4773 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4774 | fi | |
579d8138 | 4775 | |
10f2d63a | 4776 | else |
579d8138 | 4777 | |
10f2d63a VZ |
4778 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4779 | if test "x$LINE" != x ; then | |
4780 | eval "DEFAULT_$LINE" | |
4781 | else | |
4782 | no_cache=1 | |
4783 | fi | |
4784 | ||
4785 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
579d8138 VS |
4786 | |
4787 | fi | |
10f2d63a VZ |
4788 | |
4789 | ||
4790 | eval "$ac_cv_use_threads" | |
4791 | if test "$no_cache" != 1; then | |
4792 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4793 | fi | |
4794 | ||
4795 | if test "$wxUSE_THREADS" = yes; then | |
579d8138 | 4796 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4797 | else |
579d8138 | 4798 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4799 | fi |
579d8138 | 4800 | |
10f2d63a | 4801 | |
b12915c1 VZ |
4802 | if test "$wxUSE_GUI" = "yes"; then |
4803 | ||
579d8138 VS |
4804 | |
4805 | ||
4806 | echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6 | |
5c0a20c3 | 4807 | echo "configure:4808: checking for --enable-docview" >&5 |
10f2d63a VZ |
4808 | no_cache=0 |
4809 | # Check whether --enable-docview or --disable-docview was given. | |
4810 | if test "${enable_docview+set}" = set; then | |
4811 | enableval="$enable_docview" | |
579d8138 | 4812 | |
10f2d63a VZ |
4813 | if test "$enableval" = yes; then |
4814 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
4815 | else | |
4816 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
4817 | fi | |
579d8138 | 4818 | |
10f2d63a | 4819 | else |
579d8138 | 4820 | |
10f2d63a VZ |
4821 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
4822 | if test "x$LINE" != x ; then | |
4823 | eval "DEFAULT_$LINE" | |
4824 | else | |
4825 | no_cache=1 | |
4826 | fi | |
4827 | ||
4828 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
579d8138 VS |
4829 | |
4830 | fi | |
10f2d63a VZ |
4831 | |
4832 | ||
4833 | eval "$ac_cv_use_docview" | |
4834 | if test "$no_cache" != 1; then | |
4835 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
4836 | fi | |
4837 | ||
4838 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
579d8138 | 4839 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4840 | else |
579d8138 | 4841 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4842 | fi |
579d8138 | 4843 | |
10f2d63a | 4844 | |
579d8138 | 4845 | echo $ac_n "checking for --enable-help""... $ac_c" 1>&6 |
5c0a20c3 | 4846 | echo "configure:4847: checking for --enable-help" >&5 |
10f2d63a VZ |
4847 | no_cache=0 |
4848 | # Check whether --enable-help or --disable-help was given. | |
4849 | if test "${enable_help+set}" = set; then | |
4850 | enableval="$enable_help" | |
579d8138 | 4851 | |
10f2d63a VZ |
4852 | if test "$enableval" = yes; then |
4853 | ac_cv_use_help='wxUSE_HELP=yes' | |
4854 | else | |
4855 | ac_cv_use_help='wxUSE_HELP=no' | |
4856 | fi | |
579d8138 | 4857 | |
10f2d63a | 4858 | else |
579d8138 | 4859 | |
10f2d63a VZ |
4860 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
4861 | if test "x$LINE" != x ; then | |
4862 | eval "DEFAULT_$LINE" | |
4863 | else | |
4864 | no_cache=1 | |
4865 | fi | |
4866 | ||
4867 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
579d8138 VS |
4868 | |
4869 | fi | |
10f2d63a VZ |
4870 | |
4871 | ||
4872 | eval "$ac_cv_use_help" | |
4873 | if test "$no_cache" != 1; then | |
4874 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
4875 | fi | |
4876 | ||
4877 | if test "$wxUSE_HELP" = yes; then | |
579d8138 | 4878 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4879 | else |
579d8138 | 4880 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4881 | fi |
579d8138 | 4882 | |
10f2d63a | 4883 | |
579d8138 | 4884 | echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6 |
5c0a20c3 | 4885 | echo "configure:4886: checking for --enable-mshtmlhelp" >&5 |
29fd3c0c VS |
4886 | no_cache=0 |
4887 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
4888 | if test "${enable_mshtmlhelp+set}" = set; then | |
4889 | enableval="$enable_mshtmlhelp" | |
579d8138 | 4890 | |
29fd3c0c VS |
4891 | if test "$enableval" = yes; then |
4892 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
4893 | else | |
4894 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
4895 | fi | |
579d8138 | 4896 | |
29fd3c0c | 4897 | else |
579d8138 | 4898 | |
29fd3c0c VS |
4899 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
4900 | if test "x$LINE" != x ; then | |
4901 | eval "DEFAULT_$LINE" | |
4902 | else | |
4903 | no_cache=1 | |
4904 | fi | |
4905 | ||
4906 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
579d8138 VS |
4907 | |
4908 | fi | |
29fd3c0c VS |
4909 | |
4910 | ||
4911 | eval "$ac_cv_use_mshtmlhelp" | |
4912 | if test "$no_cache" != 1; then | |
4913 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
4914 | fi | |
4915 | ||
4916 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
579d8138 | 4917 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 4918 | else |
579d8138 | 4919 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 4920 | fi |
579d8138 | 4921 | |
29fd3c0c | 4922 | |
579d8138 | 4923 | echo $ac_n "checking for --enable-html""... $ac_c" 1>&6 |
5c0a20c3 | 4924 | echo "configure:4925: checking for --enable-html" >&5 |
3379ed37 VZ |
4925 | no_cache=0 |
4926 | # Check whether --enable-html or --disable-html was given. | |
4927 | if test "${enable_html+set}" = set; then | |
4928 | enableval="$enable_html" | |
579d8138 | 4929 | |
3379ed37 VZ |
4930 | if test "$enableval" = yes; then |
4931 | ac_cv_use_html='wxUSE_HTML=yes' | |
4932 | else | |
4933 | ac_cv_use_html='wxUSE_HTML=no' | |
4934 | fi | |
579d8138 | 4935 | |
3379ed37 | 4936 | else |
579d8138 | 4937 | |
3379ed37 VZ |
4938 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
4939 | if test "x$LINE" != x ; then | |
4940 | eval "DEFAULT_$LINE" | |
4941 | else | |
4942 | no_cache=1 | |
4943 | fi | |
4944 | ||
4945 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
579d8138 VS |
4946 | |
4947 | fi | |
3379ed37 VZ |
4948 | |
4949 | ||
4950 | eval "$ac_cv_use_html" | |
4951 | if test "$no_cache" != 1; then | |
4952 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
4953 | fi | |
4954 | ||
4955 | if test "$wxUSE_HTML" = yes; then | |
579d8138 | 4956 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 4957 | else |
579d8138 | 4958 | echo "$ac_t""no" 1>&6 |
3379ed37 | 4959 | fi |
579d8138 | 4960 | |
3379ed37 | 4961 | |
579d8138 | 4962 | echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6 |
5c0a20c3 | 4963 | echo "configure:4964: checking for --enable-htmlhelp" >&5 |
3379ed37 VZ |
4964 | no_cache=0 |
4965 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
4966 | if test "${enable_htmlhelp+set}" = set; then | |
4967 | enableval="$enable_htmlhelp" | |
579d8138 | 4968 | |
3379ed37 VZ |
4969 | if test "$enableval" = yes; then |
4970 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
4971 | else | |
4972 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
4973 | fi | |
579d8138 | 4974 | |
3379ed37 | 4975 | else |
579d8138 | 4976 | |
3379ed37 VZ |
4977 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
4978 | if test "x$LINE" != x ; then | |
4979 | eval "DEFAULT_$LINE" | |
4980 | else | |
4981 | no_cache=1 | |
4982 | fi | |
4983 | ||
4984 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
579d8138 VS |
4985 | |
4986 | fi | |
3379ed37 VZ |
4987 | |
4988 | ||
4989 | eval "$ac_cv_use_htmlhelp" | |
4990 | if test "$no_cache" != 1; then | |
4991 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
4992 | fi | |
4993 | ||
4994 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
579d8138 | 4995 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 4996 | else |
579d8138 | 4997 | echo "$ac_t""no" 1>&6 |
3379ed37 | 4998 | fi |
579d8138 | 4999 | |
3379ed37 | 5000 | |
579d8138 | 5001 | echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6 |
5c0a20c3 | 5002 | echo "configure:5003: checking for --enable-constraints" >&5 |
10f2d63a VZ |
5003 | no_cache=0 |
5004 | # Check whether --enable-constraints or --disable-constraints was given. | |
5005 | if test "${enable_constraints+set}" = set; then | |
5006 | enableval="$enable_constraints" | |
579d8138 | 5007 | |
10f2d63a VZ |
5008 | if test "$enableval" = yes; then |
5009 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5010 | else | |
5011 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5012 | fi | |
579d8138 | 5013 | |
10f2d63a | 5014 | else |
579d8138 | 5015 | |
10f2d63a VZ |
5016 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5017 | if test "x$LINE" != x ; then | |
5018 | eval "DEFAULT_$LINE" | |
5019 | else | |
5020 | no_cache=1 | |
5021 | fi | |
5022 | ||
5023 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
579d8138 VS |
5024 | |
5025 | fi | |
10f2d63a VZ |
5026 | |
5027 | ||
5028 | eval "$ac_cv_use_constraints" | |
5029 | if test "$no_cache" != 1; then | |
5030 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5031 | fi | |
5032 | ||
5033 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
579d8138 | 5034 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5035 | else |
579d8138 | 5036 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5037 | fi |
579d8138 | 5038 | |
10f2d63a | 5039 | |
579d8138 | 5040 | echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6 |
5c0a20c3 | 5041 | echo "configure:5042: checking for --enable-printarch" >&5 |
10f2d63a VZ |
5042 | no_cache=0 |
5043 | # Check whether --enable-printarch or --disable-printarch was given. | |
5044 | if test "${enable_printarch+set}" = set; then | |
5045 | enableval="$enable_printarch" | |
579d8138 | 5046 | |
10f2d63a VZ |
5047 | if test "$enableval" = yes; then |
5048 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5049 | else | |
5050 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5051 | fi | |
579d8138 | 5052 | |
10f2d63a | 5053 | else |
579d8138 | 5054 | |
10f2d63a VZ |
5055 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5056 | if test "x$LINE" != x ; then | |
5057 | eval "DEFAULT_$LINE" | |
5058 | else | |
5059 | no_cache=1 | |
5060 | fi | |
5061 | ||
5062 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
579d8138 VS |
5063 | |
5064 | fi | |
10f2d63a VZ |
5065 | |
5066 | ||
5067 | eval "$ac_cv_use_printarch" | |
5068 | if test "$no_cache" != 1; then | |
5069 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5070 | fi | |
5071 | ||
5072 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
579d8138 | 5073 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5074 | else |
579d8138 | 5075 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5076 | fi |
579d8138 | 5077 | |
10f2d63a | 5078 | |
579d8138 | 5079 | echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6 |
5c0a20c3 | 5080 | echo "configure:5081: checking for --enable-mdi" >&5 |
10f2d63a VZ |
5081 | no_cache=0 |
5082 | # Check whether --enable-mdi or --disable-mdi was given. | |
5083 | if test "${enable_mdi+set}" = set; then | |
5084 | enableval="$enable_mdi" | |
579d8138 | 5085 | |
10f2d63a VZ |
5086 | if test "$enableval" = yes; then |
5087 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5088 | else | |
5089 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5090 | fi | |
579d8138 | 5091 | |
10f2d63a | 5092 | else |
579d8138 | 5093 | |
10f2d63a VZ |
5094 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
5095 | if test "x$LINE" != x ; then | |
5096 | eval "DEFAULT_$LINE" | |
5097 | else | |
5098 | no_cache=1 | |
5099 | fi | |
5100 | ||
5101 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
579d8138 VS |
5102 | |
5103 | fi | |
10f2d63a VZ |
5104 | |
5105 | ||
5106 | eval "$ac_cv_use_mdi" | |
5107 | if test "$no_cache" != 1; then | |
5108 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5109 | fi | |
5110 | ||
5111 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
579d8138 | 5112 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5113 | else |
579d8138 | 5114 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5115 | fi |
579d8138 | 5116 | |
698dcdb6 | 5117 | |
579d8138 | 5118 | echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6 |
5c0a20c3 | 5119 | echo "configure:5120: checking for --enable-loggui" >&5 |
1e6feb95 VZ |
5120 | no_cache=0 |
5121 | # Check whether --enable-loggui or --disable-loggui was given. | |
5122 | if test "${enable_loggui+set}" = set; then | |
5123 | enableval="$enable_loggui" | |
579d8138 | 5124 | |
1e6feb95 VZ |
5125 | if test "$enableval" = yes; then |
5126 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5127 | else | |
5128 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5129 | fi | |
579d8138 | 5130 | |
1e6feb95 | 5131 | else |
579d8138 | 5132 | |
1e6feb95 VZ |
5133 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5134 | if test "x$LINE" != x ; then | |
5135 | eval "DEFAULT_$LINE" | |
5136 | else | |
5137 | no_cache=1 | |
5138 | fi | |
5139 | ||
5140 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
579d8138 VS |
5141 | |
5142 | fi | |
1e6feb95 VZ |
5143 | |
5144 | ||
5145 | eval "$ac_cv_use_loggui" | |
5146 | if test "$no_cache" != 1; then | |
5147 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5148 | fi | |
5149 | ||
5150 | if test "$wxUSE_LOGGUI" = yes; then | |
579d8138 | 5151 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5152 | else |
579d8138 | 5153 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5154 | fi |
579d8138 | 5155 | |
1e6feb95 | 5156 | |
579d8138 | 5157 | echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6 |
5c0a20c3 | 5158 | echo "configure:5159: checking for --enable-logwin" >&5 |
1e6feb95 VZ |
5159 | no_cache=0 |
5160 | # Check whether --enable-logwin or --disable-logwin was given. | |
5161 | if test "${enable_logwin+set}" = set; then | |
5162 | enableval="$enable_logwin" | |
579d8138 | 5163 | |
1e6feb95 VZ |
5164 | if test "$enableval" = yes; then |
5165 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5166 | else | |
5167 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5168 | fi | |
579d8138 | 5169 | |
1e6feb95 | 5170 | else |
579d8138 | 5171 | |
1e6feb95 VZ |
5172 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5173 | if test "x$LINE" != x ; then | |
5174 | eval "DEFAULT_$LINE" | |
5175 | else | |
5176 | no_cache=1 | |
5177 | fi | |
5178 | ||
5179 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
579d8138 VS |
5180 | |
5181 | fi | |
1e6feb95 VZ |
5182 | |
5183 | ||
5184 | eval "$ac_cv_use_logwin" | |
5185 | if test "$no_cache" != 1; then | |
5186 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5187 | fi | |
5188 | ||
5189 | if test "$wxUSE_LOGWINDOW" = yes; then | |
579d8138 | 5190 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5191 | else |
579d8138 | 5192 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5193 | fi |
579d8138 | 5194 | |
1e6feb95 | 5195 | |
579d8138 | 5196 | echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6 |
5c0a20c3 | 5197 | echo "configure:5198: checking for --enable-logdialog" >&5 |
69d27ff7 MB |
5198 | no_cache=0 |
5199 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5200 | if test "${enable_logdialog+set}" = set; then | |
5201 | enableval="$enable_logdialog" | |
579d8138 | 5202 | |
69d27ff7 MB |
5203 | if test "$enableval" = yes; then |
5204 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5205 | else | |
5206 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5207 | fi | |
579d8138 | 5208 | |
69d27ff7 | 5209 | else |
579d8138 | 5210 | |
69d27ff7 MB |
5211 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
5212 | if test "x$LINE" != x ; then | |
5213 | eval "DEFAULT_$LINE" | |
5214 | else | |
5215 | no_cache=1 | |
5216 | fi | |
5217 | ||
5218 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
579d8138 VS |
5219 | |
5220 | fi | |
69d27ff7 MB |
5221 | |
5222 | ||
5223 | eval "$ac_cv_use_logdialog" | |
5224 | if test "$no_cache" != 1; then | |
5225 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5226 | fi | |
5227 | ||
5228 | if test "$wxUSE_LOGDIALOG" = yes; then | |
579d8138 | 5229 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5230 | else |
579d8138 | 5231 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5232 | fi |
579d8138 | 5233 | |
10f2d63a | 5234 | |
579d8138 VS |
5235 | |
5236 | echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6 | |
5c0a20c3 | 5237 | echo "configure:5238: checking for --enable-postscript" >&5 |
10f2d63a VZ |
5238 | no_cache=0 |
5239 | # Check whether --enable-postscript or --disable-postscript was given. | |
5240 | if test "${enable_postscript+set}" = set; then | |
5241 | enableval="$enable_postscript" | |
579d8138 | 5242 | |
10f2d63a VZ |
5243 | if test "$enableval" = yes; then |
5244 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5245 | else | |
5246 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5247 | fi | |
579d8138 | 5248 | |
10f2d63a | 5249 | else |
579d8138 | 5250 | |
10f2d63a VZ |
5251 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5252 | if test "x$LINE" != x ; then | |
5253 | eval "DEFAULT_$LINE" | |
5254 | else | |
5255 | no_cache=1 | |
5256 | fi | |
5257 | ||
5258 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
579d8138 VS |
5259 | |
5260 | fi | |
10f2d63a VZ |
5261 | |
5262 | ||
5263 | eval "$ac_cv_use_postscript" | |
5264 | if test "$no_cache" != 1; then | |
5265 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5266 | fi | |
5267 | ||
5268 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
579d8138 | 5269 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5270 | else |
579d8138 | 5271 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5272 | fi |
579d8138 VS |
5273 | |
5274 | ||
10f2d63a | 5275 | |
579d8138 VS |
5276 | |
5277 | ||
5278 | echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6 | |
5c0a20c3 | 5279 | echo "configure:5280: checking for --enable-prologio" >&5 |
10f2d63a VZ |
5280 | no_cache=0 |
5281 | # Check whether --enable-prologio or --disable-prologio was given. | |
5282 | if test "${enable_prologio+set}" = set; then | |
5283 | enableval="$enable_prologio" | |
579d8138 | 5284 | |
10f2d63a VZ |
5285 | if test "$enableval" = yes; then |
5286 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5287 | else | |
5288 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5289 | fi | |
579d8138 | 5290 | |
10f2d63a | 5291 | else |
579d8138 | 5292 | |
10f2d63a VZ |
5293 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5294 | if test "x$LINE" != x ; then | |
5295 | eval "DEFAULT_$LINE" | |
5296 | else | |
5297 | no_cache=1 | |
5298 | fi | |
5299 | ||
5300 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
579d8138 VS |
5301 | |
5302 | fi | |
10f2d63a VZ |
5303 | |
5304 | ||
5305 | eval "$ac_cv_use_prologio" | |
5306 | if test "$no_cache" != 1; then | |
5307 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5308 | fi | |
5309 | ||
5310 | if test "$wxUSE_PROLOGIO" = yes; then | |
579d8138 | 5311 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5312 | else |
579d8138 | 5313 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5314 | fi |
579d8138 | 5315 | |
10f2d63a | 5316 | |
579d8138 | 5317 | echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6 |
5c0a20c3 | 5318 | echo "configure:5319: checking for --enable-resources" >&5 |
10f2d63a VZ |
5319 | no_cache=0 |
5320 | # Check whether --enable-resources or --disable-resources was given. | |
5321 | if test "${enable_resources+set}" = set; then | |
5322 | enableval="$enable_resources" | |
579d8138 | 5323 | |
10f2d63a VZ |
5324 | if test "$enableval" = yes; then |
5325 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5326 | else | |
5327 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5328 | fi | |
579d8138 | 5329 | |
10f2d63a | 5330 | else |
579d8138 | 5331 | |
10f2d63a VZ |
5332 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5333 | if test "x$LINE" != x ; then | |
5334 | eval "DEFAULT_$LINE" | |
5335 | else | |
5336 | no_cache=1 | |
5337 | fi | |
5338 | ||
5339 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
579d8138 VS |
5340 | |
5341 | fi | |
10f2d63a VZ |
5342 | |
5343 | ||
5344 | eval "$ac_cv_use_resources" | |
5345 | if test "$no_cache" != 1; then | |
5346 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5347 | fi | |
5348 | ||
5349 | if test "$wxUSE_RESOURCES" = yes; then | |
579d8138 | 5350 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5351 | else |
579d8138 | 5352 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5353 | fi |
579d8138 | 5354 | |
698dcdb6 | 5355 | |
579d8138 VS |
5356 | |
5357 | echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6 | |
5c0a20c3 | 5358 | echo "configure:5359: checking for --enable-xresources" >&5 |
10f2d63a VZ |
5359 | no_cache=0 |
5360 | # Check whether --enable-xresources or --disable-xresources was given. | |
5361 | if test "${enable_xresources+set}" = set; then | |
5362 | enableval="$enable_xresources" | |
579d8138 | 5363 | |
10f2d63a VZ |
5364 | if test "$enableval" = yes; then |
5365 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5366 | else | |
5367 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5368 | fi | |
579d8138 | 5369 | |
10f2d63a | 5370 | else |
579d8138 | 5371 | |
10f2d63a VZ |
5372 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5373 | if test "x$LINE" != x ; then | |
5374 | eval "DEFAULT_$LINE" | |
5375 | else | |
5376 | no_cache=1 | |
5377 | fi | |
5378 | ||
5379 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
579d8138 VS |
5380 | |
5381 | fi | |
10f2d63a VZ |
5382 | |
5383 | ||
5384 | eval "$ac_cv_use_xresources" | |
5385 | if test "$no_cache" != 1; then | |
5386 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5387 | fi | |
5388 | ||
5389 | if test "$wxUSE_X_RESOURCES" = yes; then | |
579d8138 | 5390 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5391 | else |
579d8138 | 5392 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5393 | fi |
579d8138 VS |
5394 | |
5395 | ||
698dcdb6 | 5396 | |
579d8138 VS |
5397 | |
5398 | echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6 | |
5c0a20c3 | 5399 | echo "configure:5400: checking for --enable-clipboard" >&5 |
10f2d63a VZ |
5400 | no_cache=0 |
5401 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5402 | if test "${enable_clipboard+set}" = set; then | |
5403 | enableval="$enable_clipboard" | |
579d8138 | 5404 | |
10f2d63a VZ |
5405 | if test "$enableval" = yes; then |
5406 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5407 | else | |
5408 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5409 | fi | |
579d8138 | 5410 | |
10f2d63a | 5411 | else |
579d8138 | 5412 | |
10f2d63a VZ |
5413 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5414 | if test "x$LINE" != x ; then | |
5415 | eval "DEFAULT_$LINE" | |
5416 | else | |
5417 | no_cache=1 | |
5418 | fi | |
5419 | ||
5420 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
579d8138 VS |
5421 | |
5422 | fi | |
10f2d63a VZ |
5423 | |
5424 | ||
5425 | eval "$ac_cv_use_clipboard" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_CLIPBOARD" = yes; then | |
579d8138 | 5431 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5432 | else |
579d8138 | 5433 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5434 | fi |
579d8138 | 5435 | |
10f2d63a | 5436 | |
579d8138 | 5437 | echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6 |
5c0a20c3 | 5438 | echo "configure:5439: checking for --enable-dnd" >&5 |
10f2d63a VZ |
5439 | no_cache=0 |
5440 | # Check whether --enable-dnd or --disable-dnd was given. | |
5441 | if test "${enable_dnd+set}" = set; then | |
5442 | enableval="$enable_dnd" | |
579d8138 | 5443 | |
10f2d63a VZ |
5444 | if test "$enableval" = yes; then |
5445 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5446 | else | |
5447 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5448 | fi | |
579d8138 | 5449 | |
10f2d63a | 5450 | else |
579d8138 | 5451 | |
10f2d63a VZ |
5452 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5453 | if test "x$LINE" != x ; then | |
5454 | eval "DEFAULT_$LINE" | |
5455 | else | |
5456 | no_cache=1 | |
5457 | fi | |
5458 | ||
5459 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
579d8138 VS |
5460 | |
5461 | fi | |
10f2d63a VZ |
5462 | |
5463 | ||
5464 | eval "$ac_cv_use_dnd" | |
5465 | if test "$no_cache" != 1; then | |
5466 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5467 | fi | |
5468 | ||
5469 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
579d8138 | 5470 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5471 | else |
579d8138 | 5472 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5473 | fi |
579d8138 | 5474 | |
10f2d63a | 5475 | |
579d8138 | 5476 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
5c0a20c3 | 5477 | echo "configure:5478: checking for --enable-metafile" >&5 |
b64f0a5f RL |
5478 | no_cache=0 |
5479 | # Check whether --enable-metafile or --disable-metafile was given. | |
5480 | if test "${enable_metafile+set}" = set; then | |
5481 | enableval="$enable_metafile" | |
579d8138 | 5482 | |
b64f0a5f RL |
5483 | if test "$enableval" = yes; then |
5484 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5485 | else | |
5486 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5487 | fi | |
579d8138 | 5488 | |
b64f0a5f | 5489 | else |
579d8138 | 5490 | |
b64f0a5f RL |
5491 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5492 | if test "x$LINE" != x ; then | |
5493 | eval "DEFAULT_$LINE" | |
5494 | else | |
5495 | no_cache=1 | |
5496 | fi | |
5497 | ||
5498 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
579d8138 VS |
5499 | |
5500 | fi | |
b64f0a5f RL |
5501 | |
5502 | ||
5503 | eval "$ac_cv_use_metafile" | |
5504 | if test "$no_cache" != 1; then | |
5505 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5506 | fi | |
5507 | ||
5508 | if test "$wxUSE_METAFILE" = yes; then | |
579d8138 | 5509 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5510 | else |
579d8138 | 5511 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5512 | fi |
579d8138 VS |
5513 | |
5514 | ||
698dcdb6 | 5515 | |
579d8138 | 5516 | echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6 |
5c0a20c3 | 5517 | echo "configure:5518: checking for --enable-treelayout" >&5 |
10f2d63a | 5518 | no_cache=0 |
24176f2c GD |
5519 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5520 | if test "${enable_treelayout+set}" = set; then | |
5521 | enableval="$enable_treelayout" | |
579d8138 | 5522 | |
10f2d63a | 5523 | if test "$enableval" = yes; then |
24176f2c | 5524 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5525 | else |
24176f2c | 5526 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5527 | fi |
579d8138 | 5528 | |
10f2d63a | 5529 | else |
579d8138 | 5530 | |
24176f2c | 5531 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5532 | if test "x$LINE" != x ; then |
5533 | eval "DEFAULT_$LINE" | |
5534 | else | |
5535 | no_cache=1 | |
5536 | fi | |
5537 | ||
24176f2c | 5538 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
579d8138 VS |
5539 | |
5540 | fi | |
10f2d63a VZ |
5541 | |
5542 | ||
24176f2c | 5543 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5544 | if test "$no_cache" != 1; then |
24176f2c | 5545 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5546 | fi |
5547 | ||
24176f2c | 5548 | if test "$wxUSE_TREELAYOUT" = yes; then |
579d8138 | 5549 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5550 | else |
579d8138 | 5551 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5552 | fi |
579d8138 VS |
5553 | |
5554 | ||
5555 | ||
698dcdb6 | 5556 | |
579d8138 | 5557 | echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6 |
5c0a20c3 | 5558 | echo "configure:5559: checking for --enable-controls" >&5 |
10f2d63a VZ |
5559 | no_cache=0 |
5560 | # Check whether --enable-controls or --disable-controls was given. | |
5561 | if test "${enable_controls+set}" = set; then | |
5562 | enableval="$enable_controls" | |
579d8138 | 5563 | |
10f2d63a VZ |
5564 | if test "$enableval" = yes; then |
5565 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5566 | else | |
5567 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5568 | fi | |
579d8138 | 5569 | |
10f2d63a | 5570 | else |
579d8138 | 5571 | |
10f2d63a VZ |
5572 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5573 | if test "x$LINE" != x ; then | |
5574 | eval "DEFAULT_$LINE" | |
5575 | else | |
5576 | no_cache=1 | |
5577 | fi | |
5578 | ||
5579 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
579d8138 VS |
5580 | |
5581 | fi | |
10f2d63a VZ |
5582 | |
5583 | ||
5584 | eval "$ac_cv_use_controls" | |
5585 | if test "$no_cache" != 1; then | |
5586 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5587 | fi | |
5588 | ||
5589 | if test "$wxUSE_CONTROLS" = yes; then | |
579d8138 | 5590 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5591 | else |
579d8138 | 5592 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5593 | fi |
579d8138 | 5594 | |
10f2d63a VZ |
5595 | |
5596 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5597 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5598 | DEFAULT_wxUSE_BMPBUTTON=yes |
5599 | DEFAULT_wxUSE_BUTTON=yes | |
5600 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5601 | DEFAULT_wxUSE_CARET=yes |
5602 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5603 | DEFAULT_wxUSE_CHECKBOX=yes |
5604 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5605 | DEFAULT_wxUSE_CHOICE=yes | |
5606 | DEFAULT_wxUSE_GAUGE=yes | |
5607 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5608 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5609 | DEFAULT_wxUSE_IMAGLIST=yes |
5610 | DEFAULT_wxUSE_LISTBOX=yes | |
5611 | DEFAULT_wxUSE_LISTCTRL=yes | |
5612 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5613 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5614 | DEFAULT_wxUSE_RADIOBOX=yes |
5615 | DEFAULT_wxUSE_RADIOBTN=yes | |
5616 | DEFAULT_wxUSE_SASH=yes | |
5617 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5618 | DEFAULT_wxUSE_SLIDER=yes | |
5619 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5620 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5621 | DEFAULT_wxUSE_SPLITTER=yes |
5622 | DEFAULT_wxUSE_STATBMP=yes | |
5623 | DEFAULT_wxUSE_STATBOX=yes | |
5624 | DEFAULT_wxUSE_STATLINE=yes | |
5625 | DEFAULT_wxUSE_STATUSBAR=yes | |
5626 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5627 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5628 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5629 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5630 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5631 | DEFAULT_wxUSE_TOOLTIPS=yes |
5632 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5633 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5634 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5635 | elif test "$wxUSE_CONTROLS" = "no"; then |
5636 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5637 | DEFAULT_wxUSE_BMPBUTTON=no |
5638 | DEFAULT_wxUSE_BUTTON=no | |
5639 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5640 | DEFAULT_wxUSE_CARET=no |
5641 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5642 | DEFAULT_wxUSE_CHECKBOX=no |
5643 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5644 | DEFAULT_wxUSE_CHOICE=no | |
5645 | DEFAULT_wxUSE_GAUGE=no | |
5646 | DEFAULT_wxUSE_GRID=no | |
5647 | DEFAULT_wxUSE_NEW_GRID=no | |
5648 | DEFAULT_wxUSE_IMAGLIST=no | |
5649 | DEFAULT_wxUSE_LISTBOX=no | |
5650 | DEFAULT_wxUSE_LISTCTRL=no | |
5651 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5652 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5653 | DEFAULT_wxUSE_RADIOBOX=no |
5654 | DEFAULT_wxUSE_RADIOBTN=no | |
5655 | DEFAULT_wxUSE_SASH=no | |
5656 | DEFAULT_wxUSE_SCROLLBAR=no | |
5657 | DEFAULT_wxUSE_SLIDER=no | |
5658 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5659 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5660 | DEFAULT_wxUSE_SPLITTER=no |
5661 | DEFAULT_wxUSE_STATBMP=no | |
5662 | DEFAULT_wxUSE_STATBOX=no | |
5663 | DEFAULT_wxUSE_STATLINE=no | |
5664 | DEFAULT_wxUSE_STATUSBAR=no | |
5665 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5666 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5667 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5668 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5669 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5670 | DEFAULT_wxUSE_TOOLTIPS=no |
5671 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5672 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5673 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5674 | fi |
5675 | ||
579d8138 VS |
5676 | |
5677 | echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6 | |
5c0a20c3 | 5678 | echo "configure:5679: checking for --enable-accel" >&5 |
10f2d63a VZ |
5679 | no_cache=0 |
5680 | # Check whether --enable-accel or --disable-accel was given. | |
5681 | if test "${enable_accel+set}" = set; then | |
5682 | enableval="$enable_accel" | |
579d8138 | 5683 | |
10f2d63a VZ |
5684 | if test "$enableval" = yes; then |
5685 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5686 | else | |
5687 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5688 | fi | |
579d8138 | 5689 | |
10f2d63a | 5690 | else |
579d8138 | 5691 | |
10f2d63a VZ |
5692 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5693 | if test "x$LINE" != x ; then | |
5694 | eval "DEFAULT_$LINE" | |
5695 | else | |
5696 | no_cache=1 | |
5697 | fi | |
5698 | ||
5699 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
579d8138 VS |
5700 | |
5701 | fi | |
10f2d63a VZ |
5702 | |
5703 | ||
5704 | eval "$ac_cv_use_accel" | |
5705 | if test "$no_cache" != 1; then | |
5706 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5707 | fi | |
5708 | ||
5709 | if test "$wxUSE_ACCEL" = yes; then | |
579d8138 | 5710 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5711 | else |
579d8138 | 5712 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5713 | fi |
579d8138 | 5714 | |
10f2d63a | 5715 | |
579d8138 | 5716 | echo $ac_n "checking for --enable-button""... $ac_c" 1>&6 |
5c0a20c3 | 5717 | echo "configure:5718: checking for --enable-button" >&5 |
10f2d63a | 5718 | no_cache=0 |
1e6feb95 VZ |
5719 | # Check whether --enable-button or --disable-button was given. |
5720 | if test "${enable_button+set}" = set; then | |
5721 | enableval="$enable_button" | |
579d8138 | 5722 | |
10f2d63a | 5723 | if test "$enableval" = yes; then |
1e6feb95 | 5724 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5725 | else |
1e6feb95 | 5726 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5727 | fi |
579d8138 | 5728 | |
10f2d63a | 5729 | else |
579d8138 | 5730 | |
1e6feb95 | 5731 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5732 | if test "x$LINE" != x ; then |
5733 | eval "DEFAULT_$LINE" | |
5734 | else | |
5735 | no_cache=1 | |
5736 | fi | |
5737 | ||
1e6feb95 | 5738 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
579d8138 VS |
5739 | |
5740 | fi | |
10f2d63a VZ |
5741 | |
5742 | ||
1e6feb95 | 5743 | eval "$ac_cv_use_button" |
10f2d63a | 5744 | if test "$no_cache" != 1; then |
1e6feb95 | 5745 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5746 | fi |
5747 | ||
1e6feb95 | 5748 | if test "$wxUSE_BUTTON" = yes; then |
579d8138 | 5749 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5750 | else |
579d8138 | 5751 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5752 | fi |
579d8138 | 5753 | |
10f2d63a | 5754 | |
579d8138 | 5755 | echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6 |
5c0a20c3 | 5756 | echo "configure:5757: checking for --enable-bmpbutton" >&5 |
10f2d63a VZ |
5757 | no_cache=0 |
5758 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5759 | if test "${enable_bmpbutton+set}" = set; then | |
5760 | enableval="$enable_bmpbutton" | |
579d8138 | 5761 | |
10f2d63a VZ |
5762 | if test "$enableval" = yes; then |
5763 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5764 | else | |
5765 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5766 | fi | |
579d8138 | 5767 | |
10f2d63a | 5768 | else |
579d8138 | 5769 | |
10f2d63a VZ |
5770 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5771 | if test "x$LINE" != x ; then | |
5772 | eval "DEFAULT_$LINE" | |
5773 | else | |
5774 | no_cache=1 | |
5775 | fi | |
5776 | ||
5777 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
579d8138 VS |
5778 | |
5779 | fi | |
10f2d63a VZ |
5780 | |
5781 | ||
5782 | eval "$ac_cv_use_bmpbutton" | |
5783 | if test "$no_cache" != 1; then | |
5784 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5785 | fi | |
5786 | ||
5787 | if test "$wxUSE_BMPBUTTON" = yes; then | |
579d8138 | 5788 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5789 | else |
579d8138 | 5790 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5791 | fi |
579d8138 | 5792 | |
10f2d63a | 5793 | |
579d8138 | 5794 | echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6 |
5c0a20c3 | 5795 | echo "configure:5796: checking for --enable-calendar" >&5 |
1e6feb95 VZ |
5796 | no_cache=0 |
5797 | # Check whether --enable-calendar or --disable-calendar was given. | |
5798 | if test "${enable_calendar+set}" = set; then | |
5799 | enableval="$enable_calendar" | |
579d8138 | 5800 | |
1e6feb95 VZ |
5801 | if test "$enableval" = yes; then |
5802 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
5803 | else | |
5804 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
5805 | fi | |
579d8138 | 5806 | |
1e6feb95 | 5807 | else |
579d8138 | 5808 | |
1e6feb95 VZ |
5809 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
5810 | if test "x$LINE" != x ; then | |
5811 | eval "DEFAULT_$LINE" | |
5812 | else | |
5813 | no_cache=1 | |
5814 | fi | |
5815 | ||
5816 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
579d8138 VS |
5817 | |
5818 | fi | |
1e6feb95 VZ |
5819 | |
5820 | ||
5821 | eval "$ac_cv_use_calendar" | |
5822 | if test "$no_cache" != 1; then | |
5823 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
5824 | fi | |
5825 | ||
5826 | if test "$wxUSE_CALCTRL" = yes; then | |
579d8138 | 5827 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5828 | else |
579d8138 | 5829 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5830 | fi |
579d8138 | 5831 | |
1e6feb95 | 5832 | |
579d8138 | 5833 | echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6 |
5c0a20c3 | 5834 | echo "configure:5835: checking for --enable-caret" >&5 |
1e6feb95 VZ |
5835 | no_cache=0 |
5836 | # Check whether --enable-caret or --disable-caret was given. | |
5837 | if test "${enable_caret+set}" = set; then | |
5838 | enableval="$enable_caret" | |
579d8138 | 5839 | |
1e6feb95 VZ |
5840 | if test "$enableval" = yes; then |
5841 | ac_cv_use_caret='wxUSE_CARET=yes' | |
5842 | else | |
5843 | ac_cv_use_caret='wxUSE_CARET=no' | |
5844 | fi | |
579d8138 | 5845 | |
1e6feb95 | 5846 | else |
579d8138 | 5847 | |
1e6feb95 VZ |
5848 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
5849 | if test "x$LINE" != x ; then | |
5850 | eval "DEFAULT_$LINE" | |
5851 | else | |
5852 | no_cache=1 | |
5853 | fi | |
5854 | ||
5855 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
579d8138 VS |
5856 | |
5857 | fi | |
1e6feb95 VZ |
5858 | |
5859 | ||
5860 | eval "$ac_cv_use_caret" | |
5861 | if test "$no_cache" != 1; then | |
5862 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
5863 | fi | |
5864 | ||
5865 | if test "$wxUSE_CARET" = yes; then | |
579d8138 | 5866 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5867 | else |
579d8138 | 5868 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5869 | fi |
579d8138 | 5870 | |
1e6feb95 | 5871 | |
579d8138 | 5872 | echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6 |
5c0a20c3 | 5873 | echo "configure:5874: checking for --enable-checkbox" >&5 |
10f2d63a VZ |
5874 | no_cache=0 |
5875 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
5876 | if test "${enable_checkbox+set}" = set; then | |
5877 | enableval="$enable_checkbox" | |
579d8138 | 5878 | |
10f2d63a VZ |
5879 | if test "$enableval" = yes; then |
5880 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
5881 | else | |
5882 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
5883 | fi | |
579d8138 | 5884 | |
10f2d63a | 5885 | else |
579d8138 | 5886 | |
10f2d63a VZ |
5887 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
5888 | if test "x$LINE" != x ; then | |
5889 | eval "DEFAULT_$LINE" | |
5890 | else | |
5891 | no_cache=1 | |
5892 | fi | |
5893 | ||
5894 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
579d8138 VS |
5895 | |
5896 | fi | |
10f2d63a VZ |
5897 | |
5898 | ||
5899 | eval "$ac_cv_use_checkbox" | |
5900 | if test "$no_cache" != 1; then | |
5901 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
5902 | fi | |
5903 | ||
5904 | if test "$wxUSE_CHECKBOX" = yes; then | |
579d8138 | 5905 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5906 | else |
579d8138 | 5907 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5908 | fi |
579d8138 | 5909 | |
10f2d63a | 5910 | |
579d8138 | 5911 | echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6 |
5c0a20c3 | 5912 | echo "configure:5913: checking for --enable-checklst" >&5 |
10f2d63a VZ |
5913 | no_cache=0 |
5914 | # Check whether --enable-checklst or --disable-checklst was given. | |
5915 | if test "${enable_checklst+set}" = set; then | |
5916 | enableval="$enable_checklst" | |
579d8138 | 5917 | |
10f2d63a VZ |
5918 | if test "$enableval" = yes; then |
5919 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
5920 | else | |
5921 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
5922 | fi | |
579d8138 | 5923 | |
10f2d63a | 5924 | else |
579d8138 | 5925 | |
10f2d63a VZ |
5926 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
5927 | if test "x$LINE" != x ; then | |
5928 | eval "DEFAULT_$LINE" | |
5929 | else | |
5930 | no_cache=1 | |
5931 | fi | |
5932 | ||
5933 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
579d8138 VS |
5934 | |
5935 | fi | |
10f2d63a VZ |
5936 | |
5937 | ||
5938 | eval "$ac_cv_use_checklst" | |
5939 | if test "$no_cache" != 1; then | |
5940 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
5941 | fi | |
5942 | ||
5943 | if test "$wxUSE_CHECKLST" = yes; then | |
579d8138 | 5944 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5945 | else |
579d8138 | 5946 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5947 | fi |
579d8138 | 5948 | |
10f2d63a | 5949 | |
579d8138 | 5950 | echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6 |
5c0a20c3 | 5951 | echo "configure:5952: checking for --enable-choice" >&5 |
10f2d63a VZ |
5952 | no_cache=0 |
5953 | # Check whether --enable-choice or --disable-choice was given. | |
5954 | if test "${enable_choice+set}" = set; then | |
5955 | enableval="$enable_choice" | |
579d8138 | 5956 | |
10f2d63a VZ |
5957 | if test "$enableval" = yes; then |
5958 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
5959 | else | |
5960 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
5961 | fi | |
579d8138 | 5962 | |
10f2d63a | 5963 | else |
579d8138 | 5964 | |
10f2d63a VZ |
5965 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
5966 | if test "x$LINE" != x ; then | |
5967 | eval "DEFAULT_$LINE" | |
5968 | else | |
5969 | no_cache=1 | |
5970 | fi | |
5971 | ||
5972 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
579d8138 VS |
5973 | |
5974 | fi | |
10f2d63a VZ |
5975 | |
5976 | ||
5977 | eval "$ac_cv_use_choice" | |
5978 | if test "$no_cache" != 1; then | |
5979 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
5980 | fi | |
5981 | ||
5982 | if test "$wxUSE_CHOICE" = yes; then | |
579d8138 | 5983 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5984 | else |
579d8138 | 5985 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5986 | fi |
579d8138 | 5987 | |
10f2d63a | 5988 | |
579d8138 | 5989 | echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6 |
5c0a20c3 | 5990 | echo "configure:5991: checking for --enable-combobox" >&5 |
10f2d63a VZ |
5991 | no_cache=0 |
5992 | # Check whether --enable-combobox or --disable-combobox was given. | |
5993 | if test "${enable_combobox+set}" = set; then | |
5994 | enableval="$enable_combobox" | |
579d8138 | 5995 | |
10f2d63a VZ |
5996 | if test "$enableval" = yes; then |
5997 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
5998 | else | |
5999 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6000 | fi | |
579d8138 | 6001 | |
10f2d63a | 6002 | else |
579d8138 | 6003 | |
10f2d63a VZ |
6004 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6005 | if test "x$LINE" != x ; then | |
6006 | eval "DEFAULT_$LINE" | |
6007 | else | |
6008 | no_cache=1 | |
6009 | fi | |
6010 | ||
6011 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
579d8138 VS |
6012 | |
6013 | fi | |
10f2d63a VZ |
6014 | |
6015 | ||
6016 | eval "$ac_cv_use_combobox" | |
6017 | if test "$no_cache" != 1; then | |
6018 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6019 | fi | |
6020 | ||
6021 | if test "$wxUSE_COMBOBOX" = yes; then | |
579d8138 | 6022 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6023 | else |
579d8138 | 6024 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6025 | fi |
579d8138 | 6026 | |
10f2d63a | 6027 | |
579d8138 | 6028 | echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6 |
5c0a20c3 | 6029 | echo "configure:6030: checking for --enable-gauge" >&5 |
10f2d63a VZ |
6030 | no_cache=0 |
6031 | # Check whether --enable-gauge or --disable-gauge was given. | |
6032 | if test "${enable_gauge+set}" = set; then | |
6033 | enableval="$enable_gauge" | |
579d8138 | 6034 | |
10f2d63a VZ |
6035 | if test "$enableval" = yes; then |
6036 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6037 | else | |
6038 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6039 | fi | |
579d8138 | 6040 | |
10f2d63a | 6041 | else |
579d8138 | 6042 | |
10f2d63a VZ |
6043 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6044 | if test "x$LINE" != x ; then | |
6045 | eval "DEFAULT_$LINE" | |
6046 | else | |
6047 | no_cache=1 | |
6048 | fi | |
6049 | ||
6050 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
579d8138 VS |
6051 | |
6052 | fi | |
10f2d63a VZ |
6053 | |
6054 | ||
6055 | eval "$ac_cv_use_gauge" | |
6056 | if test "$no_cache" != 1; then | |
6057 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6058 | fi | |
6059 | ||
6060 | if test "$wxUSE_GAUGE" = yes; then | |
579d8138 | 6061 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6062 | else |
579d8138 | 6063 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6064 | fi |
579d8138 | 6065 | |
10f2d63a | 6066 | |
579d8138 | 6067 | echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6 |
5c0a20c3 | 6068 | echo "configure:6069: checking for --enable-grid" >&5 |
10f2d63a VZ |
6069 | no_cache=0 |
6070 | # Check whether --enable-grid or --disable-grid was given. | |
6071 | if test "${enable_grid+set}" = set; then | |
6072 | enableval="$enable_grid" | |
579d8138 | 6073 | |
10f2d63a VZ |
6074 | if test "$enableval" = yes; then |
6075 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6076 | else | |
6077 | ac_cv_use_grid='wxUSE_GRID=no' | |
6078 | fi | |
579d8138 | 6079 | |
10f2d63a | 6080 | else |
579d8138 | 6081 | |
10f2d63a VZ |
6082 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6083 | if test "x$LINE" != x ; then | |
6084 | eval "DEFAULT_$LINE" | |
6085 | else | |
6086 | no_cache=1 | |
6087 | fi | |
6088 | ||
6089 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
579d8138 VS |
6090 | |
6091 | fi | |
10f2d63a VZ |
6092 | |
6093 | ||
6094 | eval "$ac_cv_use_grid" | |
6095 | if test "$no_cache" != 1; then | |
6096 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6097 | fi | |
6098 | ||
6099 | if test "$wxUSE_GRID" = yes; then | |
579d8138 | 6100 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6101 | else |
579d8138 | 6102 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6103 | fi |
579d8138 | 6104 | |
10f2d63a | 6105 | |
579d8138 | 6106 | echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6 |
5c0a20c3 | 6107 | echo "configure:6108: checking for --enable-newgrid" >&5 |
10f2d63a VZ |
6108 | no_cache=0 |
6109 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6110 | if test "${enable_newgrid+set}" = set; then | |
6111 | enableval="$enable_newgrid" | |
579d8138 | 6112 | |
10f2d63a VZ |
6113 | if test "$enableval" = yes; then |
6114 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6115 | else | |
6116 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6117 | fi | |
579d8138 | 6118 | |
10f2d63a | 6119 | else |
579d8138 | 6120 | |
10f2d63a VZ |
6121 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6122 | if test "x$LINE" != x ; then | |
6123 | eval "DEFAULT_$LINE" | |
6124 | else | |
6125 | no_cache=1 | |
6126 | fi | |
6127 | ||
6128 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
579d8138 VS |
6129 | |
6130 | fi | |
10f2d63a VZ |
6131 | |
6132 | ||
6133 | eval "$ac_cv_use_newgrid" | |
6134 | if test "$no_cache" != 1; then | |
6135 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6136 | fi | |
6137 | ||
6138 | if test "$wxUSE_NEW_GRID" = yes; then | |
579d8138 | 6139 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6140 | else |
579d8138 | 6141 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6142 | fi |
579d8138 | 6143 | |
10f2d63a | 6144 | |
579d8138 | 6145 | echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6 |
5c0a20c3 | 6146 | echo "configure:6147: checking for --enable-imaglist" >&5 |
10f2d63a VZ |
6147 | no_cache=0 |
6148 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6149 | if test "${enable_imaglist+set}" = set; then | |
6150 | enableval="$enable_imaglist" | |
579d8138 | 6151 | |
10f2d63a VZ |
6152 | if test "$enableval" = yes; then |
6153 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6154 | else | |
6155 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6156 | fi | |
579d8138 | 6157 | |
10f2d63a | 6158 | else |
579d8138 | 6159 | |
10f2d63a VZ |
6160 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6161 | if test "x$LINE" != x ; then | |
6162 | eval "DEFAULT_$LINE" | |
6163 | else | |
6164 | no_cache=1 | |
6165 | fi | |
6166 | ||
6167 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
579d8138 VS |
6168 | |
6169 | fi | |
10f2d63a VZ |
6170 | |
6171 | ||
6172 | eval "$ac_cv_use_imaglist" | |
6173 | if test "$no_cache" != 1; then | |
6174 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6175 | fi | |
6176 | ||
6177 | if test "$wxUSE_IMAGLIST" = yes; then | |
579d8138 | 6178 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6179 | else |
579d8138 | 6180 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6181 | fi |
579d8138 | 6182 | |
10f2d63a | 6183 | |
579d8138 | 6184 | echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6 |
5c0a20c3 | 6185 | echo "configure:6186: checking for --enable-listbox" >&5 |
10f2d63a VZ |
6186 | no_cache=0 |
6187 | # Check whether --enable-listbox or --disable-listbox was given. | |
6188 | if test "${enable_listbox+set}" = set; then | |
6189 | enableval="$enable_listbox" | |
579d8138 | 6190 | |
10f2d63a VZ |
6191 | if test "$enableval" = yes; then |
6192 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6193 | else | |
6194 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6195 | fi | |
579d8138 | 6196 | |
10f2d63a | 6197 | else |
579d8138 | 6198 | |
10f2d63a VZ |
6199 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6200 | if test "x$LINE" != x ; then | |
6201 | eval "DEFAULT_$LINE" | |
6202 | else | |
6203 | no_cache=1 | |
6204 | fi | |
6205 | ||
6206 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
579d8138 VS |
6207 | |
6208 | fi | |
10f2d63a VZ |
6209 | |
6210 | ||
6211 | eval "$ac_cv_use_listbox" | |
6212 | if test "$no_cache" != 1; then | |
6213 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6214 | fi | |
6215 | ||
6216 | if test "$wxUSE_LISTBOX" = yes; then | |
579d8138 | 6217 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6218 | else |
579d8138 | 6219 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6220 | fi |
579d8138 | 6221 | |
10f2d63a | 6222 | |
579d8138 | 6223 | echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6 |
5c0a20c3 | 6224 | echo "configure:6225: checking for --enable-listctrl" >&5 |
10f2d63a VZ |
6225 | no_cache=0 |
6226 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6227 | if test "${enable_listctrl+set}" = set; then | |
6228 | enableval="$enable_listctrl" | |
579d8138 | 6229 | |
10f2d63a VZ |
6230 | if test "$enableval" = yes; then |
6231 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6232 | else | |
6233 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6234 | fi | |
579d8138 | 6235 | |
10f2d63a | 6236 | else |
579d8138 | 6237 | |
10f2d63a VZ |
6238 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6239 | if test "x$LINE" != x ; then | |
6240 | eval "DEFAULT_$LINE" | |
6241 | else | |
6242 | no_cache=1 | |
6243 | fi | |
6244 | ||
6245 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
579d8138 VS |
6246 | |
6247 | fi | |
10f2d63a VZ |
6248 | |
6249 | ||
6250 | eval "$ac_cv_use_listctrl" | |
6251 | if test "$no_cache" != 1; then | |
6252 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6253 | fi | |
6254 | ||
6255 | if test "$wxUSE_LISTCTRL" = yes; then | |
579d8138 | 6256 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6257 | else |
579d8138 | 6258 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6259 | fi |
579d8138 | 6260 | |
10f2d63a | 6261 | |
579d8138 | 6262 | echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6 |
5c0a20c3 | 6263 | echo "configure:6264: checking for --enable-notebook" >&5 |
10f2d63a VZ |
6264 | no_cache=0 |
6265 | # Check whether --enable-notebook or --disable-notebook was given. | |
6266 | if test "${enable_notebook+set}" = set; then | |
6267 | enableval="$enable_notebook" | |
579d8138 | 6268 | |
10f2d63a VZ |
6269 | if test "$enableval" = yes; then |
6270 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6271 | else | |
6272 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6273 | fi | |
579d8138 | 6274 | |
10f2d63a | 6275 | else |
579d8138 | 6276 | |
10f2d63a VZ |
6277 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6278 | if test "x$LINE" != x ; then | |
6279 | eval "DEFAULT_$LINE" | |
6280 | else | |
6281 | no_cache=1 | |
6282 | fi | |
6283 | ||
6284 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
579d8138 VS |
6285 | |
6286 | fi | |
10f2d63a VZ |
6287 | |
6288 | ||
6289 | eval "$ac_cv_use_notebook" | |
6290 | if test "$no_cache" != 1; then | |
6291 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6292 | fi | |
6293 | ||
6294 | if test "$wxUSE_NOTEBOOK" = yes; then | |
579d8138 | 6295 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6296 | else |
579d8138 | 6297 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6298 | fi |
579d8138 | 6299 | |
10f2d63a | 6300 | |
579d8138 | 6301 | echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6 |
5c0a20c3 | 6302 | echo "configure:6303: checking for --enable-propsheet" >&5 |
24176f2c GD |
6303 | no_cache=0 |
6304 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6305 | if test "${enable_propsheet+set}" = set; then | |
6306 | enableval="$enable_propsheet" | |
579d8138 | 6307 | |
24176f2c GD |
6308 | if test "$enableval" = yes; then |
6309 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6310 | else | |
6311 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6312 | fi | |
579d8138 | 6313 | |
24176f2c | 6314 | else |
579d8138 | 6315 | |
24176f2c GD |
6316 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6317 | if test "x$LINE" != x ; then | |
6318 | eval "DEFAULT_$LINE" | |
6319 | else | |
6320 | no_cache=1 | |
6321 | fi | |
6322 | ||
6323 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
579d8138 VS |
6324 | |
6325 | fi | |
24176f2c GD |
6326 | |
6327 | ||
6328 | eval "$ac_cv_use_propsheet" | |
6329 | if test "$no_cache" != 1; then | |
6330 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6331 | fi | |
6332 | ||
6333 | if test "$wxUSE_PROPSHEET" = yes; then | |
579d8138 | 6334 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6335 | else |
579d8138 | 6336 | echo "$ac_t""no" 1>&6 |
24176f2c | 6337 | fi |
579d8138 | 6338 | |
24176f2c | 6339 | |
579d8138 | 6340 | echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6 |
5c0a20c3 | 6341 | echo "configure:6342: checking for --enable-radiobox" >&5 |
10f2d63a VZ |
6342 | no_cache=0 |
6343 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6344 | if test "${enable_radiobox+set}" = set; then | |
6345 | enableval="$enable_radiobox" | |
579d8138 | 6346 | |
10f2d63a VZ |
6347 | if test "$enableval" = yes; then |
6348 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6349 | else | |
6350 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6351 | fi | |
579d8138 | 6352 | |
10f2d63a | 6353 | else |
579d8138 | 6354 | |
10f2d63a VZ |
6355 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6356 | if test "x$LINE" != x ; then | |
6357 | eval "DEFAULT_$LINE" | |
6358 | else | |
6359 | no_cache=1 | |
6360 | fi | |
6361 | ||
6362 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
579d8138 VS |
6363 | |
6364 | fi | |
10f2d63a VZ |
6365 | |
6366 | ||
6367 | eval "$ac_cv_use_radiobox" | |
6368 | if test "$no_cache" != 1; then | |
6369 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6370 | fi | |
6371 | ||
6372 | if test "$wxUSE_RADIOBOX" = yes; then | |
579d8138 | 6373 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6374 | else |
579d8138 | 6375 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6376 | fi |
579d8138 | 6377 | |
10f2d63a | 6378 | |
579d8138 | 6379 | echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6 |
5c0a20c3 | 6380 | echo "configure:6381: checking for --enable-radiobtn" >&5 |
10f2d63a VZ |
6381 | no_cache=0 |
6382 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6383 | if test "${enable_radiobtn+set}" = set; then | |
6384 | enableval="$enable_radiobtn" | |
579d8138 | 6385 | |
10f2d63a VZ |
6386 | if test "$enableval" = yes; then |
6387 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6388 | else | |
6389 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6390 | fi | |
579d8138 | 6391 | |
10f2d63a | 6392 | else |
579d8138 | 6393 | |
10f2d63a VZ |
6394 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6395 | if test "x$LINE" != x ; then | |
6396 | eval "DEFAULT_$LINE" | |
6397 | else | |
6398 | no_cache=1 | |
6399 | fi | |
6400 | ||
6401 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
579d8138 VS |
6402 | |
6403 | fi | |
10f2d63a VZ |
6404 | |
6405 | ||
6406 | eval "$ac_cv_use_radiobtn" | |
6407 | if test "$no_cache" != 1; then | |
6408 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6409 | fi | |
6410 | ||
6411 | if test "$wxUSE_RADIOBTN" = yes; then | |
579d8138 | 6412 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6413 | else |
579d8138 | 6414 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6415 | fi |
579d8138 | 6416 | |
10f2d63a | 6417 | |
579d8138 | 6418 | echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6 |
5c0a20c3 | 6419 | echo "configure:6420: checking for --enable-sash" >&5 |
10f2d63a VZ |
6420 | no_cache=0 |
6421 | # Check whether --enable-sash or --disable-sash was given. | |
6422 | if test "${enable_sash+set}" = set; then | |
6423 | enableval="$enable_sash" | |
579d8138 | 6424 | |
10f2d63a VZ |
6425 | if test "$enableval" = yes; then |
6426 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6427 | else | |
6428 | ac_cv_use_sash='wxUSE_SASH=no' | |
6429 | fi | |
579d8138 | 6430 | |
10f2d63a | 6431 | else |
579d8138 | 6432 | |
10f2d63a VZ |
6433 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6434 | if test "x$LINE" != x ; then | |
6435 | eval "DEFAULT_$LINE" | |
6436 | else | |
6437 | no_cache=1 | |
6438 | fi | |
6439 | ||
6440 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
579d8138 VS |
6441 | |
6442 | fi | |
10f2d63a VZ |
6443 | |
6444 | ||
6445 | eval "$ac_cv_use_sash" | |
6446 | if test "$no_cache" != 1; then | |
6447 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6448 | fi | |
6449 | ||
6450 | if test "$wxUSE_SASH" = yes; then | |
579d8138 | 6451 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6452 | else |
579d8138 | 6453 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6454 | fi |
579d8138 | 6455 | |
10f2d63a | 6456 | |
579d8138 | 6457 | echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6 |
5c0a20c3 | 6458 | echo "configure:6459: checking for --enable-scrollbar" >&5 |
10f2d63a VZ |
6459 | no_cache=0 |
6460 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6461 | if test "${enable_scrollbar+set}" = set; then | |
6462 | enableval="$enable_scrollbar" | |
579d8138 | 6463 | |
10f2d63a VZ |
6464 | if test "$enableval" = yes; then |
6465 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6466 | else | |
6467 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6468 | fi | |
579d8138 | 6469 | |
10f2d63a | 6470 | else |
579d8138 | 6471 | |
10f2d63a VZ |
6472 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6473 | if test "x$LINE" != x ; then | |
6474 | eval "DEFAULT_$LINE" | |
6475 | else | |
6476 | no_cache=1 | |
6477 | fi | |
6478 | ||
6479 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
579d8138 VS |
6480 | |
6481 | fi | |
10f2d63a VZ |
6482 | |
6483 | ||
6484 | eval "$ac_cv_use_scrollbar" | |
6485 | if test "$no_cache" != 1; then | |
6486 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6487 | fi | |
6488 | ||
6489 | if test "$wxUSE_SCROLLBAR" = yes; then | |
579d8138 | 6490 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6491 | else |
579d8138 | 6492 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6493 | fi |
579d8138 | 6494 | |
10f2d63a | 6495 | |
579d8138 | 6496 | echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6 |
5c0a20c3 | 6497 | echo "configure:6498: checking for --enable-slider" >&5 |
10f2d63a VZ |
6498 | no_cache=0 |
6499 | # Check whether --enable-slider or --disable-slider was given. | |
6500 | if test "${enable_slider+set}" = set; then | |
6501 | enableval="$enable_slider" | |
579d8138 | 6502 | |
10f2d63a VZ |
6503 | if test "$enableval" = yes; then |
6504 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6505 | else | |
6506 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6507 | fi | |
579d8138 | 6508 | |
10f2d63a | 6509 | else |
579d8138 | 6510 | |
10f2d63a VZ |
6511 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6512 | if test "x$LINE" != x ; then | |
6513 | eval "DEFAULT_$LINE" | |
6514 | else | |
6515 | no_cache=1 | |
6516 | fi | |
6517 | ||
6518 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
579d8138 VS |
6519 | |
6520 | fi | |
10f2d63a VZ |
6521 | |
6522 | ||
6523 | eval "$ac_cv_use_slider" | |
6524 | if test "$no_cache" != 1; then | |
6525 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6526 | fi | |
6527 | ||
6528 | if test "$wxUSE_SLIDER" = yes; then | |
579d8138 | 6529 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6530 | else |
579d8138 | 6531 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6532 | fi |
579d8138 | 6533 | |
10f2d63a | 6534 | |
579d8138 | 6535 | echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6 |
5c0a20c3 | 6536 | echo "configure:6537: checking for --enable-spinbtn" >&5 |
10f2d63a VZ |
6537 | no_cache=0 |
6538 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6539 | if test "${enable_spinbtn+set}" = set; then | |
6540 | enableval="$enable_spinbtn" | |
579d8138 | 6541 | |
10f2d63a VZ |
6542 | if test "$enableval" = yes; then |
6543 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6544 | else | |
6545 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6546 | fi | |
579d8138 | 6547 | |
10f2d63a | 6548 | else |
579d8138 | 6549 | |
10f2d63a VZ |
6550 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
6551 | if test "x$LINE" != x ; then | |
6552 | eval "DEFAULT_$LINE" | |
6553 | else | |
6554 | no_cache=1 | |
6555 | fi | |
6556 | ||
6557 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
579d8138 VS |
6558 | |
6559 | fi | |
10f2d63a VZ |
6560 | |
6561 | ||
6562 | eval "$ac_cv_use_spinbtn" | |
6563 | if test "$no_cache" != 1; then | |
6564 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6565 | fi | |
6566 | ||
6567 | if test "$wxUSE_SPINBTN" = yes; then | |
579d8138 | 6568 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6569 | else |
579d8138 | 6570 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6571 | fi |
579d8138 | 6572 | |
10f2d63a | 6573 | |
579d8138 | 6574 | echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6 |
5c0a20c3 | 6575 | echo "configure:6576: checking for --enable-spinctrl" >&5 |
56cfaa52 RR |
6576 | no_cache=0 |
6577 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6578 | if test "${enable_spinctrl+set}" = set; then | |
6579 | enableval="$enable_spinctrl" | |
579d8138 | 6580 | |
56cfaa52 RR |
6581 | if test "$enableval" = yes; then |
6582 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6583 | else | |
6584 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6585 | fi | |
579d8138 | 6586 | |
56cfaa52 | 6587 | else |
579d8138 | 6588 | |
56cfaa52 RR |
6589 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6590 | if test "x$LINE" != x ; then | |
6591 | eval "DEFAULT_$LINE" | |
6592 | else | |
6593 | no_cache=1 | |
6594 | fi | |
6595 | ||
6596 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
579d8138 VS |
6597 | |
6598 | fi | |
56cfaa52 RR |
6599 | |
6600 | ||
6601 | eval "$ac_cv_use_spinctrl" | |
6602 | if test "$no_cache" != 1; then | |
6603 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6604 | fi | |
6605 | ||
6606 | if test "$wxUSE_SPINCTRL" = yes; then | |
579d8138 | 6607 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6608 | else |
579d8138 | 6609 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6610 | fi |
579d8138 | 6611 | |
56cfaa52 | 6612 | |
579d8138 | 6613 | echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6 |
5c0a20c3 | 6614 | echo "configure:6615: checking for --enable-splitter" >&5 |
10f2d63a VZ |
6615 | no_cache=0 |
6616 | # Check whether --enable-splitter or --disable-splitter was given. | |
6617 | if test "${enable_splitter+set}" = set; then | |
6618 | enableval="$enable_splitter" | |
579d8138 | 6619 | |
10f2d63a VZ |
6620 | if test "$enableval" = yes; then |
6621 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6622 | else | |
6623 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6624 | fi | |
579d8138 | 6625 | |
10f2d63a | 6626 | else |
579d8138 | 6627 | |
10f2d63a VZ |
6628 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6629 | if test "x$LINE" != x ; then | |
6630 | eval "DEFAULT_$LINE" | |
6631 | else | |
6632 | no_cache=1 | |
6633 | fi | |
6634 | ||
6635 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
579d8138 VS |
6636 | |
6637 | fi | |
10f2d63a VZ |
6638 | |
6639 | ||
6640 | eval "$ac_cv_use_splitter" | |
6641 | if test "$no_cache" != 1; then | |
6642 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6643 | fi | |
6644 | ||
6645 | if test "$wxUSE_SPLITTER" = yes; then | |
579d8138 | 6646 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6647 | else |
579d8138 | 6648 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6649 | fi |
579d8138 | 6650 | |
10f2d63a | 6651 | |
579d8138 | 6652 | echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6 |
5c0a20c3 | 6653 | echo "configure:6654: checking for --enable-statbmp" >&5 |
10f2d63a VZ |
6654 | no_cache=0 |
6655 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6656 | if test "${enable_statbmp+set}" = set; then | |
6657 | enableval="$enable_statbmp" | |
579d8138 | 6658 | |
10f2d63a VZ |
6659 | if test "$enableval" = yes; then |
6660 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6661 | else | |
6662 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6663 | fi | |
579d8138 | 6664 | |
10f2d63a | 6665 | else |
579d8138 | 6666 | |
10f2d63a VZ |
6667 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6668 | if test "x$LINE" != x ; then | |
6669 | eval "DEFAULT_$LINE" | |
6670 | else | |
6671 | no_cache=1 | |
6672 | fi | |
6673 | ||
6674 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
579d8138 VS |
6675 | |
6676 | fi | |
10f2d63a VZ |
6677 | |
6678 | ||
6679 | eval "$ac_cv_use_statbmp" | |
6680 | if test "$no_cache" != 1; then | |
6681 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6682 | fi | |
6683 | ||
6684 | if test "$wxUSE_STATBMP" = yes; then | |
579d8138 | 6685 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6686 | else |
579d8138 | 6687 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6688 | fi |
579d8138 | 6689 | |
10f2d63a | 6690 | |
579d8138 | 6691 | echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6 |
5c0a20c3 | 6692 | echo "configure:6693: checking for --enable-statbox" >&5 |
10f2d63a VZ |
6693 | no_cache=0 |
6694 | # Check whether --enable-statbox or --disable-statbox was given. | |
6695 | if test "${enable_statbox+set}" = set; then | |
6696 | enableval="$enable_statbox" | |
579d8138 | 6697 | |
10f2d63a VZ |
6698 | if test "$enableval" = yes; then |
6699 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6700 | else | |
6701 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6702 | fi | |
579d8138 | 6703 | |
10f2d63a | 6704 | else |
579d8138 | 6705 | |
10f2d63a VZ |
6706 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6707 | if test "x$LINE" != x ; then | |
6708 | eval "DEFAULT_$LINE" | |
6709 | else | |
6710 | no_cache=1 | |
6711 | fi | |
6712 | ||
6713 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
579d8138 VS |
6714 | |
6715 | fi | |
10f2d63a VZ |
6716 | |
6717 | ||
6718 | eval "$ac_cv_use_statbox" | |
6719 | if test "$no_cache" != 1; then | |
6720 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6721 | fi | |
6722 | ||
6723 | if test "$wxUSE_STATBOX" = yes; then | |
579d8138 | 6724 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6725 | else |
579d8138 | 6726 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6727 | fi |
579d8138 | 6728 | |
10f2d63a | 6729 | |
579d8138 | 6730 | echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6 |
5c0a20c3 | 6731 | echo "configure:6732: checking for --enable-statline" >&5 |
10f2d63a VZ |
6732 | no_cache=0 |
6733 | # Check whether --enable-statline or --disable-statline was given. | |
6734 | if test "${enable_statline+set}" = set; then | |
6735 | enableval="$enable_statline" | |
579d8138 | 6736 | |
10f2d63a VZ |
6737 | if test "$enableval" = yes; then |
6738 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6739 | else | |
6740 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6741 | fi | |
579d8138 | 6742 | |
10f2d63a | 6743 | else |
579d8138 | 6744 | |
10f2d63a VZ |
6745 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6746 | if test "x$LINE" != x ; then | |
6747 | eval "DEFAULT_$LINE" | |
6748 | else | |
6749 | no_cache=1 | |
6750 | fi | |
6751 | ||
6752 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
579d8138 VS |
6753 | |
6754 | fi | |
10f2d63a VZ |
6755 | |
6756 | ||
6757 | eval "$ac_cv_use_statline" | |
6758 | if test "$no_cache" != 1; then | |
6759 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6760 | fi | |
6761 | ||
6762 | if test "$wxUSE_STATLINE" = yes; then | |
579d8138 | 6763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6764 | else |
579d8138 | 6765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6766 | fi |
579d8138 | 6767 | |
10f2d63a | 6768 | |
579d8138 | 6769 | echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6 |
5c0a20c3 | 6770 | echo "configure:6771: checking for --enable-stattext" >&5 |
1e6feb95 VZ |
6771 | no_cache=0 |
6772 | # Check whether --enable-stattext or --disable-stattext was given. | |
6773 | if test "${enable_stattext+set}" = set; then | |
6774 | enableval="$enable_stattext" | |
579d8138 | 6775 | |
1e6feb95 VZ |
6776 | if test "$enableval" = yes; then |
6777 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
6778 | else | |
6779 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
6780 | fi | |
579d8138 | 6781 | |
1e6feb95 | 6782 | else |
579d8138 | 6783 | |
1e6feb95 VZ |
6784 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
6785 | if test "x$LINE" != x ; then | |
6786 | eval "DEFAULT_$LINE" | |
6787 | else | |
6788 | no_cache=1 | |
6789 | fi | |
6790 | ||
6791 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
579d8138 VS |
6792 | |
6793 | fi | |
1e6feb95 VZ |
6794 | |
6795 | ||
6796 | eval "$ac_cv_use_stattext" | |
6797 | if test "$no_cache" != 1; then | |
6798 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
6799 | fi | |
6800 | ||
6801 | if test "$wxUSE_STATTEXT" = yes; then | |
579d8138 | 6802 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6803 | else |
579d8138 | 6804 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6805 | fi |
579d8138 | 6806 | |
1e6feb95 | 6807 | |
579d8138 | 6808 | echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6 |
5c0a20c3 | 6809 | echo "configure:6810: checking for --enable-statusbar" >&5 |
10f2d63a VZ |
6810 | no_cache=0 |
6811 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
6812 | if test "${enable_statusbar+set}" = set; then | |
6813 | enableval="$enable_statusbar" | |
579d8138 | 6814 | |
10f2d63a VZ |
6815 | if test "$enableval" = yes; then |
6816 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
6817 | else | |
6818 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
6819 | fi | |
579d8138 | 6820 | |
10f2d63a | 6821 | else |
579d8138 | 6822 | |
10f2d63a VZ |
6823 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
6824 | if test "x$LINE" != x ; then | |
6825 | eval "DEFAULT_$LINE" | |
6826 | else | |
6827 | no_cache=1 | |
6828 | fi | |
6829 | ||
6830 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
579d8138 VS |
6831 | |
6832 | fi | |
10f2d63a VZ |
6833 | |
6834 | ||
6835 | eval "$ac_cv_use_statusbar" | |
6836 | if test "$no_cache" != 1; then | |
6837 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
6838 | fi | |
6839 | ||
6840 | if test "$wxUSE_STATUSBAR" = yes; then | |
579d8138 | 6841 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6842 | else |
579d8138 | 6843 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6844 | fi |
579d8138 | 6845 | |
10f2d63a | 6846 | |
579d8138 | 6847 | echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6 |
5c0a20c3 | 6848 | echo "configure:6849: checking for --enable-tabdialog" >&5 |
10f2d63a VZ |
6849 | no_cache=0 |
6850 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
6851 | if test "${enable_tabdialog+set}" = set; then | |
6852 | enableval="$enable_tabdialog" | |
579d8138 | 6853 | |
10f2d63a VZ |
6854 | if test "$enableval" = yes; then |
6855 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
6856 | else | |
6857 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
6858 | fi | |
579d8138 | 6859 | |
10f2d63a | 6860 | else |
579d8138 | 6861 | |
10f2d63a VZ |
6862 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
6863 | if test "x$LINE" != x ; then | |
6864 | eval "DEFAULT_$LINE" | |
6865 | else | |
6866 | no_cache=1 | |
6867 | fi | |
6868 | ||
6869 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
579d8138 VS |
6870 | |
6871 | fi | |
10f2d63a VZ |
6872 | |
6873 | ||
6874 | eval "$ac_cv_use_tabdialog" | |
6875 | if test "$no_cache" != 1; then | |
6876 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
6877 | fi | |
6878 | ||
6879 | if test "$wxUSE_TABDIALOG" = yes; then | |
579d8138 | 6880 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6881 | else |
579d8138 | 6882 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6883 | fi |
579d8138 | 6884 | |
10f2d63a | 6885 | |
579d8138 | 6886 | echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6 |
5c0a20c3 | 6887 | echo "configure:6888: checking for --enable-textctrl" >&5 |
1e6feb95 VZ |
6888 | no_cache=0 |
6889 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
6890 | if test "${enable_textctrl+set}" = set; then | |
6891 | enableval="$enable_textctrl" | |
579d8138 | 6892 | |
1e6feb95 VZ |
6893 | if test "$enableval" = yes; then |
6894 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
6895 | else | |
6896 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
6897 | fi | |
579d8138 | 6898 | |
1e6feb95 | 6899 | else |
579d8138 | 6900 | |
1e6feb95 VZ |
6901 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
6902 | if test "x$LINE" != x ; then | |
6903 | eval "DEFAULT_$LINE" | |
6904 | else | |
6905 | no_cache=1 | |
6906 | fi | |
6907 | ||
6908 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
579d8138 VS |
6909 | |
6910 | fi | |
1e6feb95 VZ |
6911 | |
6912 | ||
6913 | eval "$ac_cv_use_textctrl" | |
6914 | if test "$no_cache" != 1; then | |
6915 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
6916 | fi | |
6917 | ||
6918 | if test "$wxUSE_TEXTCTRL" = yes; then | |
579d8138 | 6919 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6920 | else |
579d8138 | 6921 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6922 | fi |
579d8138 | 6923 | |
1e6feb95 | 6924 | |
579d8138 | 6925 | echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6 |
5c0a20c3 | 6926 | echo "configure:6927: checking for --enable-togglebtn" >&5 |
1db8dc4a VZ |
6927 | no_cache=0 |
6928 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
6929 | if test "${enable_togglebtn+set}" = set; then | |
6930 | enableval="$enable_togglebtn" | |
579d8138 | 6931 | |
1db8dc4a VZ |
6932 | if test "$enableval" = yes; then |
6933 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
6934 | else | |
6935 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
6936 | fi | |
579d8138 | 6937 | |
1db8dc4a | 6938 | else |
579d8138 | 6939 | |
1db8dc4a VZ |
6940 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
6941 | if test "x$LINE" != x ; then | |
6942 | eval "DEFAULT_$LINE" | |
6943 | else | |
6944 | no_cache=1 | |
6945 | fi | |
6946 | ||
6947 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
579d8138 VS |
6948 | |
6949 | fi | |
1db8dc4a VZ |
6950 | |
6951 | ||
6952 | eval "$ac_cv_use_togglebtn" | |
6953 | if test "$no_cache" != 1; then | |
6954 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
6955 | fi | |
6956 | ||
6957 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
579d8138 | 6958 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 6959 | else |
579d8138 | 6960 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 6961 | fi |
579d8138 | 6962 | |
1db8dc4a | 6963 | |
579d8138 | 6964 | echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6 |
5c0a20c3 | 6965 | echo "configure:6966: checking for --enable-toolbar" >&5 |
10f2d63a VZ |
6966 | no_cache=0 |
6967 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
6968 | if test "${enable_toolbar+set}" = set; then | |
6969 | enableval="$enable_toolbar" | |
579d8138 | 6970 | |
10f2d63a VZ |
6971 | if test "$enableval" = yes; then |
6972 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
6973 | else | |
6974 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
6975 | fi | |
579d8138 | 6976 | |
10f2d63a | 6977 | else |
579d8138 | 6978 | |
10f2d63a VZ |
6979 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
6980 | if test "x$LINE" != x ; then | |
6981 | eval "DEFAULT_$LINE" | |
6982 | else | |
6983 | no_cache=1 | |
6984 | fi | |
6985 | ||
6986 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
579d8138 VS |
6987 | |
6988 | fi | |
10f2d63a VZ |
6989 | |
6990 | ||
6991 | eval "$ac_cv_use_toolbar" | |
6992 | if test "$no_cache" != 1; then | |
6993 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
6994 | fi | |
6995 | ||
6996 | if test "$wxUSE_TOOLBAR" = yes; then | |
579d8138 | 6997 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6998 | else |
579d8138 | 6999 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7000 | fi |
579d8138 | 7001 | |
10f2d63a | 7002 | |
579d8138 | 7003 | echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6 |
5c0a20c3 | 7004 | echo "configure:7005: checking for --enable-tbarnative" >&5 |
360d6699 VZ |
7005 | no_cache=0 |
7006 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7007 | if test "${enable_tbarnative+set}" = set; then | |
7008 | enableval="$enable_tbarnative" | |
579d8138 | 7009 | |
360d6699 VZ |
7010 | if test "$enableval" = yes; then |
7011 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7012 | else | |
7013 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7014 | fi | |
579d8138 | 7015 | |
360d6699 | 7016 | else |
579d8138 | 7017 | |
360d6699 VZ |
7018 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7019 | if test "x$LINE" != x ; then | |
7020 | eval "DEFAULT_$LINE" | |
7021 | else | |
7022 | no_cache=1 | |
7023 | fi | |
7024 | ||
7025 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
579d8138 VS |
7026 | |
7027 | fi | |
360d6699 VZ |
7028 | |
7029 | ||
7030 | eval "$ac_cv_use_tbarnative" | |
7031 | if test "$no_cache" != 1; then | |
7032 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7033 | fi | |
7034 | ||
7035 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
579d8138 | 7036 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7037 | else |
579d8138 | 7038 | echo "$ac_t""no" 1>&6 |
360d6699 | 7039 | fi |
579d8138 | 7040 | |
360d6699 | 7041 | |
579d8138 | 7042 | echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6 |
5c0a20c3 | 7043 | echo "configure:7044: checking for --enable-tbarsmpl" >&5 |
360d6699 VZ |
7044 | no_cache=0 |
7045 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7046 | if test "${enable_tbarsmpl+set}" = set; then | |
7047 | enableval="$enable_tbarsmpl" | |
579d8138 | 7048 | |
360d6699 VZ |
7049 | if test "$enableval" = yes; then |
7050 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7051 | else | |
7052 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7053 | fi | |
579d8138 | 7054 | |
360d6699 | 7055 | else |
579d8138 | 7056 | |
360d6699 VZ |
7057 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7058 | if test "x$LINE" != x ; then | |
7059 | eval "DEFAULT_$LINE" | |
7060 | else | |
7061 | no_cache=1 | |
7062 | fi | |
7063 | ||
7064 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
579d8138 VS |
7065 | |
7066 | fi | |
360d6699 VZ |
7067 | |
7068 | ||
7069 | eval "$ac_cv_use_tbarsmpl" | |
7070 | if test "$no_cache" != 1; then | |
7071 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7072 | fi | |
7073 | ||
7074 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
579d8138 | 7075 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7076 | else |
579d8138 | 7077 | echo "$ac_t""no" 1>&6 |
360d6699 | 7078 | fi |
579d8138 | 7079 | |
360d6699 | 7080 | |
579d8138 | 7081 | echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6 |
5c0a20c3 | 7082 | echo "configure:7083: checking for --enable-treectrl" >&5 |
10f2d63a VZ |
7083 | no_cache=0 |
7084 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7085 | if test "${enable_treectrl+set}" = set; then | |
7086 | enableval="$enable_treectrl" | |
579d8138 | 7087 | |
10f2d63a VZ |
7088 | if test "$enableval" = yes; then |
7089 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7090 | else | |
7091 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7092 | fi | |
579d8138 | 7093 | |
10f2d63a | 7094 | else |
579d8138 | 7095 | |
10f2d63a VZ |
7096 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7097 | if test "x$LINE" != x ; then | |
7098 | eval "DEFAULT_$LINE" | |
7099 | else | |
7100 | no_cache=1 | |
7101 | fi | |
7102 | ||
7103 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
579d8138 VS |
7104 | |
7105 | fi | |
10f2d63a VZ |
7106 | |
7107 | ||
1e6feb95 VZ |
7108 | eval "$ac_cv_use_treectrl" |
7109 | if test "$no_cache" != 1; then | |
7110 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7111 | fi | |
7112 | ||
7113 | if test "$wxUSE_TREECTRL" = yes; then | |
579d8138 | 7114 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7115 | else |
579d8138 | 7116 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7117 | fi |
579d8138 | 7118 | |
1e6feb95 | 7119 | |
579d8138 | 7120 | echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6 |
5c0a20c3 | 7121 | echo "configure:7122: checking for --enable-tipwindow" >&5 |
9926e4a4 VZ |
7122 | no_cache=0 |
7123 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7124 | if test "${enable_tipwindow+set}" = set; then | |
7125 | enableval="$enable_tipwindow" | |
579d8138 | 7126 | |
9926e4a4 VZ |
7127 | if test "$enableval" = yes; then |
7128 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7129 | else | |
7130 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7131 | fi | |
579d8138 | 7132 | |
9926e4a4 | 7133 | else |
579d8138 | 7134 | |
9926e4a4 VZ |
7135 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7136 | if test "x$LINE" != x ; then | |
7137 | eval "DEFAULT_$LINE" | |
7138 | else | |
7139 | no_cache=1 | |
7140 | fi | |
7141 | ||
7142 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
579d8138 VS |
7143 | |
7144 | fi | |
9926e4a4 VZ |
7145 | |
7146 | ||
7147 | eval "$ac_cv_use_tipwindow" | |
7148 | if test "$no_cache" != 1; then | |
7149 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7150 | fi | |
7151 | ||
7152 | if test "$wxUSE_TIPWINDOW" = yes; then | |
579d8138 | 7153 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7154 | else |
579d8138 | 7155 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7156 | fi |
579d8138 | 7157 | |
9926e4a4 | 7158 | |
579d8138 | 7159 | echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6 |
5c0a20c3 | 7160 | echo "configure:7161: checking for --enable-popupwin" >&5 |
9f41d601 RR |
7161 | no_cache=0 |
7162 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7163 | if test "${enable_popupwin+set}" = set; then | |
7164 | enableval="$enable_popupwin" | |
579d8138 | 7165 | |
9f41d601 RR |
7166 | if test "$enableval" = yes; then |
7167 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7168 | else | |
7169 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7170 | fi | |
579d8138 | 7171 | |
9f41d601 | 7172 | else |
579d8138 | 7173 | |
9f41d601 RR |
7174 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7175 | if test "x$LINE" != x ; then | |
7176 | eval "DEFAULT_$LINE" | |
7177 | else | |
7178 | no_cache=1 | |
7179 | fi | |
7180 | ||
7181 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
579d8138 VS |
7182 | |
7183 | fi | |
9f41d601 RR |
7184 | |
7185 | ||
7186 | eval "$ac_cv_use_popupwin" | |
7187 | if test "$no_cache" != 1; then | |
7188 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7189 | fi | |
7190 | ||
7191 | if test "$wxUSE_POPUPWIN" = yes; then | |
579d8138 | 7192 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7193 | else |
579d8138 | 7194 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7195 | fi |
579d8138 VS |
7196 | |
7197 | ||
9f41d601 | 7198 | |
579d8138 VS |
7199 | |
7200 | echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6 | |
5c0a20c3 | 7201 | echo "configure:7202: checking for --enable-commondlg" >&5 |
1e6feb95 VZ |
7202 | no_cache=0 |
7203 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7204 | if test "${enable_commondlg+set}" = set; then | |
7205 | enableval="$enable_commondlg" | |
579d8138 | 7206 | |
1e6feb95 VZ |
7207 | if test "$enableval" = yes; then |
7208 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7209 | else | |
7210 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7211 | fi | |
579d8138 | 7212 | |
1e6feb95 | 7213 | else |
579d8138 | 7214 | |
1e6feb95 VZ |
7215 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7216 | if test "x$LINE" != x ; then | |
7217 | eval "DEFAULT_$LINE" | |
7218 | else | |
7219 | no_cache=1 | |
7220 | fi | |
7221 | ||
7222 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
579d8138 VS |
7223 | |
7224 | fi | |
1e6feb95 VZ |
7225 | |
7226 | ||
7227 | eval "$ac_cv_use_commondlg" | |
7228 | if test "$no_cache" != 1; then | |
7229 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7230 | fi | |
7231 | ||
7232 | if test "$wxUSE_COMMONDLGS" = yes; then | |
579d8138 | 7233 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7234 | else |
579d8138 | 7235 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7236 | fi |
579d8138 | 7237 | |
1e6feb95 | 7238 | |
579d8138 | 7239 | echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6 |
5c0a20c3 | 7240 | echo "configure:7241: checking for --enable-choicedlg" >&5 |
1e6feb95 VZ |
7241 | no_cache=0 |
7242 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7243 | if test "${enable_choicedlg+set}" = set; then | |
7244 | enableval="$enable_choicedlg" | |
579d8138 | 7245 | |
1e6feb95 VZ |
7246 | if test "$enableval" = yes; then |
7247 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7248 | else | |
7249 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7250 | fi | |
579d8138 | 7251 | |
1e6feb95 | 7252 | else |
579d8138 | 7253 | |
1e6feb95 VZ |
7254 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7255 | if test "x$LINE" != x ; then | |
7256 | eval "DEFAULT_$LINE" | |
7257 | else | |
7258 | no_cache=1 | |
7259 | fi | |
7260 | ||
7261 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
579d8138 VS |
7262 | |
7263 | fi | |
1e6feb95 VZ |
7264 | |
7265 | ||
7266 | eval "$ac_cv_use_choicedlg" | |
7267 | if test "$no_cache" != 1; then | |
7268 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7269 | fi | |
7270 | ||
7271 | if test "$wxUSE_CHOICEDLG" = yes; then | |
579d8138 | 7272 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7273 | else |
579d8138 | 7274 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7275 | fi |
579d8138 | 7276 | |
1e6feb95 | 7277 | |
579d8138 | 7278 | echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6 |
5c0a20c3 | 7279 | echo "configure:7280: checking for --enable-coldlg" >&5 |
1e6feb95 VZ |
7280 | no_cache=0 |
7281 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7282 | if test "${enable_coldlg+set}" = set; then | |
7283 | enableval="$enable_coldlg" | |
579d8138 | 7284 | |
1e6feb95 VZ |
7285 | if test "$enableval" = yes; then |
7286 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7287 | else | |
7288 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7289 | fi | |
579d8138 | 7290 | |
1e6feb95 | 7291 | else |
579d8138 | 7292 | |
1e6feb95 VZ |
7293 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7294 | if test "x$LINE" != x ; then | |
7295 | eval "DEFAULT_$LINE" | |
7296 | else | |
7297 | no_cache=1 | |
7298 | fi | |
7299 | ||
7300 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
579d8138 VS |
7301 | |
7302 | fi | |
1e6feb95 VZ |
7303 | |
7304 | ||
7305 | eval "$ac_cv_use_coldlg" | |
7306 | if test "$no_cache" != 1; then | |
7307 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7308 | fi | |
7309 | ||
7310 | if test "$wxUSE_COLOURDLG" = yes; then | |
579d8138 | 7311 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7312 | else |
579d8138 | 7313 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7314 | fi |
579d8138 | 7315 | |
1e6feb95 | 7316 | |
579d8138 | 7317 | echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6 |
5c0a20c3 | 7318 | echo "configure:7319: checking for --enable-filedlg" >&5 |
1e6feb95 VZ |
7319 | no_cache=0 |
7320 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7321 | if test "${enable_filedlg+set}" = set; then | |
7322 | enableval="$enable_filedlg" | |
579d8138 | 7323 | |
1e6feb95 VZ |
7324 | if test "$enableval" = yes; then |
7325 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7326 | else | |
7327 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7328 | fi | |
579d8138 | 7329 | |
1e6feb95 | 7330 | else |
579d8138 | 7331 | |
1e6feb95 VZ |
7332 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7333 | if test "x$LINE" != x ; then | |
7334 | eval "DEFAULT_$LINE" | |
7335 | else | |
7336 | no_cache=1 | |
7337 | fi | |
7338 | ||
7339 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
579d8138 VS |
7340 | |
7341 | fi | |
1e6feb95 VZ |
7342 | |
7343 | ||
7344 | eval "$ac_cv_use_filedlg" | |
7345 | if test "$no_cache" != 1; then | |
7346 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7347 | fi | |
7348 | ||
7349 | if test "$wxUSE_FILEDLG" = yes; then | |
579d8138 | 7350 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7351 | else |
579d8138 | 7352 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7353 | fi |
579d8138 | 7354 | |
1e6feb95 | 7355 | |
579d8138 | 7356 | echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6 |
5c0a20c3 | 7357 | echo "configure:7358: checking for --enable-finddlg" >&5 |
8db37e06 | 7358 | no_cache=0 |
69d27ff7 MB |
7359 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7360 | if test "${enable_finddlg+set}" = set; then | |
7361 | enableval="$enable_finddlg" | |
579d8138 | 7362 | |
8db37e06 | 7363 | if test "$enableval" = yes; then |
69d27ff7 | 7364 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7365 | else |
69d27ff7 | 7366 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7367 | fi |
579d8138 | 7368 | |
8db37e06 | 7369 | else |
579d8138 | 7370 | |
8db37e06 VZ |
7371 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7372 | if test "x$LINE" != x ; then | |
7373 | eval "DEFAULT_$LINE" | |
7374 | else | |
7375 | no_cache=1 | |
7376 | fi | |
7377 | ||
69d27ff7 | 7378 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
579d8138 VS |
7379 | |
7380 | fi | |
8db37e06 VZ |
7381 | |
7382 | ||
69d27ff7 | 7383 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7384 | if test "$no_cache" != 1; then |
69d27ff7 | 7385 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7386 | fi |
7387 | ||
7388 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
579d8138 | 7389 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7390 | else |
579d8138 | 7391 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7392 | fi |
579d8138 | 7393 | |
8db37e06 | 7394 | |
579d8138 | 7395 | echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6 |
5c0a20c3 | 7396 | echo "configure:7397: checking for --enable-fontdlg" >&5 |
1e6feb95 VZ |
7397 | no_cache=0 |
7398 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7399 | if test "${enable_fontdlg+set}" = set; then | |
7400 | enableval="$enable_fontdlg" | |
579d8138 | 7401 | |
1e6feb95 VZ |
7402 | if test "$enableval" = yes; then |
7403 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7404 | else | |
7405 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7406 | fi | |
579d8138 | 7407 | |
1e6feb95 | 7408 | else |
579d8138 | 7409 | |
1e6feb95 VZ |
7410 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7411 | if test "x$LINE" != x ; then | |
7412 | eval "DEFAULT_$LINE" | |
7413 | else | |
7414 | no_cache=1 | |
7415 | fi | |
7416 | ||
7417 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
579d8138 VS |
7418 | |
7419 | fi | |
1e6feb95 VZ |
7420 | |
7421 | ||
7422 | eval "$ac_cv_use_fontdlg" | |
7423 | if test "$no_cache" != 1; then | |
7424 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7425 | fi | |
7426 | ||
7427 | if test "$wxUSE_FONTDLG" = yes; then | |
579d8138 | 7428 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7429 | else |
579d8138 | 7430 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7431 | fi |
579d8138 | 7432 | |
1e6feb95 | 7433 | |
579d8138 | 7434 | echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6 |
5c0a20c3 | 7435 | echo "configure:7436: checking for --enable-dirdlg" >&5 |
1e6feb95 VZ |
7436 | no_cache=0 |
7437 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7438 | if test "${enable_dirdlg+set}" = set; then | |
7439 | enableval="$enable_dirdlg" | |
579d8138 | 7440 | |
1e6feb95 VZ |
7441 | if test "$enableval" = yes; then |
7442 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7443 | else | |
7444 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7445 | fi | |
579d8138 | 7446 | |
1e6feb95 | 7447 | else |
579d8138 | 7448 | |
1e6feb95 VZ |
7449 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7450 | if test "x$LINE" != x ; then | |
7451 | eval "DEFAULT_$LINE" | |
7452 | else | |
7453 | no_cache=1 | |
7454 | fi | |
7455 | ||
7456 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
579d8138 VS |
7457 | |
7458 | fi | |
1e6feb95 VZ |
7459 | |
7460 | ||
7461 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7462 | if test "$no_cache" != 1; then |
1e6feb95 | 7463 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7464 | fi |
7465 | ||
1e6feb95 | 7466 | if test "$wxUSE_DIRDLG" = yes; then |
579d8138 | 7467 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7468 | else |
579d8138 | 7469 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7470 | fi |
579d8138 | 7471 | |
698dcdb6 | 7472 | |
579d8138 | 7473 | echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6 |
5c0a20c3 | 7474 | echo "configure:7475: checking for --enable-msgdlg" >&5 |
10f2d63a | 7475 | no_cache=0 |
1e6feb95 VZ |
7476 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7477 | if test "${enable_msgdlg+set}" = set; then | |
7478 | enableval="$enable_msgdlg" | |
579d8138 | 7479 | |
10f2d63a | 7480 | if test "$enableval" = yes; then |
1e6feb95 | 7481 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7482 | else |
1e6feb95 | 7483 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7484 | fi |
579d8138 | 7485 | |
10f2d63a | 7486 | else |
579d8138 | 7487 | |
1e6feb95 | 7488 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7489 | if test "x$LINE" != x ; then |
7490 | eval "DEFAULT_$LINE" | |
7491 | else | |
7492 | no_cache=1 | |
7493 | fi | |
7494 | ||
1e6feb95 | 7495 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
579d8138 VS |
7496 | |
7497 | fi | |
10f2d63a VZ |
7498 | |
7499 | ||
1e6feb95 | 7500 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7501 | if test "$no_cache" != 1; then |
1e6feb95 | 7502 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7503 | fi |
7504 | ||
1e6feb95 | 7505 | if test "$wxUSE_MSGDLG" = yes; then |
579d8138 | 7506 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7507 | else |
579d8138 | 7508 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7509 | fi |
579d8138 | 7510 | |
10f2d63a | 7511 | |
579d8138 | 7512 | echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6 |
5c0a20c3 | 7513 | echo "configure:7514: checking for --enable-numberdlg" >&5 |
10f2d63a | 7514 | no_cache=0 |
1e6feb95 VZ |
7515 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7516 | if test "${enable_numberdlg+set}" = set; then | |
7517 | enableval="$enable_numberdlg" | |
579d8138 | 7518 | |
10f2d63a | 7519 | if test "$enableval" = yes; then |
1e6feb95 | 7520 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7521 | else |
1e6feb95 | 7522 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7523 | fi |
579d8138 | 7524 | |
10f2d63a | 7525 | else |
579d8138 | 7526 | |
1e6feb95 | 7527 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7528 | if test "x$LINE" != x ; then |
7529 | eval "DEFAULT_$LINE" | |
7530 | else | |
7531 | no_cache=1 | |
7532 | fi | |
7533 | ||
1e6feb95 | 7534 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
579d8138 VS |
7535 | |
7536 | fi | |
10f2d63a VZ |
7537 | |
7538 | ||
1e6feb95 | 7539 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7540 | if test "$no_cache" != 1; then |
1e6feb95 | 7541 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7542 | fi |
7543 | ||
1e6feb95 | 7544 | if test "$wxUSE_NUMBERDLG" = yes; then |
579d8138 | 7545 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7546 | else |
579d8138 | 7547 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7548 | fi |
579d8138 | 7549 | |
10f2d63a | 7550 | |
579d8138 | 7551 | echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6 |
5c0a20c3 | 7552 | echo "configure:7553: checking for --enable-splash" >&5 |
cbca9943 VZ |
7553 | no_cache=0 |
7554 | # Check whether --enable-splash or --disable-splash was given. | |
7555 | if test "${enable_splash+set}" = set; then | |
7556 | enableval="$enable_splash" | |
579d8138 | 7557 | |
cbca9943 VZ |
7558 | if test "$enableval" = yes; then |
7559 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7560 | else | |
7561 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7562 | fi | |
579d8138 | 7563 | |
cbca9943 | 7564 | else |
579d8138 | 7565 | |
cbca9943 VZ |
7566 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7567 | if test "x$LINE" != x ; then | |
7568 | eval "DEFAULT_$LINE" | |
7569 | else | |
7570 | no_cache=1 | |
7571 | fi | |
7572 | ||
7573 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
579d8138 VS |
7574 | |
7575 | fi | |
cbca9943 VZ |
7576 | |
7577 | ||
7578 | eval "$ac_cv_use_splash" | |
7579 | if test "$no_cache" != 1; then | |
7580 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7581 | fi | |
7582 | ||
7583 | if test "$wxUSE_SPLASH" = yes; then | |
579d8138 | 7584 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7585 | else |
579d8138 | 7586 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7587 | fi |
579d8138 | 7588 | |
cbca9943 | 7589 | |
579d8138 | 7590 | echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6 |
5c0a20c3 | 7591 | echo "configure:7592: checking for --enable-textdlg" >&5 |
10f2d63a VZ |
7592 | no_cache=0 |
7593 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7594 | if test "${enable_textdlg+set}" = set; then | |
7595 | enableval="$enable_textdlg" | |
579d8138 | 7596 | |
10f2d63a VZ |
7597 | if test "$enableval" = yes; then |
7598 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7599 | else | |
7600 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7601 | fi | |
579d8138 | 7602 | |
10f2d63a | 7603 | else |
579d8138 | 7604 | |
10f2d63a VZ |
7605 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7606 | if test "x$LINE" != x ; then | |
7607 | eval "DEFAULT_$LINE" | |
7608 | else | |
7609 | no_cache=1 | |
7610 | fi | |
7611 | ||
7612 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
579d8138 VS |
7613 | |
7614 | fi | |
10f2d63a VZ |
7615 | |
7616 | ||
7617 | eval "$ac_cv_use_textdlg" | |
7618 | if test "$no_cache" != 1; then | |
7619 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7620 | fi | |
7621 | ||
7622 | if test "$wxUSE_TEXTDLG" = yes; then | |
579d8138 | 7623 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7624 | else |
579d8138 | 7625 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7626 | fi |
579d8138 | 7627 | |
10f2d63a | 7628 | |
579d8138 | 7629 | echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6 |
5c0a20c3 | 7630 | echo "configure:7631: checking for --enable-tipdlg" >&5 |
10f2d63a VZ |
7631 | no_cache=0 |
7632 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7633 | if test "${enable_tipdlg+set}" = set; then | |
7634 | enableval="$enable_tipdlg" | |
579d8138 | 7635 | |
10f2d63a VZ |
7636 | if test "$enableval" = yes; then |
7637 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7638 | else | |
7639 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7640 | fi | |
579d8138 | 7641 | |
10f2d63a | 7642 | else |
579d8138 | 7643 | |
10f2d63a VZ |
7644 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7645 | if test "x$LINE" != x ; then | |
7646 | eval "DEFAULT_$LINE" | |
7647 | else | |
7648 | no_cache=1 | |
7649 | fi | |
7650 | ||
7651 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
579d8138 VS |
7652 | |
7653 | fi | |
10f2d63a VZ |
7654 | |
7655 | ||
7656 | eval "$ac_cv_use_tipdlg" | |
7657 | if test "$no_cache" != 1; then | |
7658 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7659 | fi | |
7660 | ||
7661 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
579d8138 | 7662 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7663 | else |
579d8138 | 7664 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7665 | fi |
579d8138 | 7666 | |
10f2d63a | 7667 | |
579d8138 | 7668 | echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6 |
5c0a20c3 | 7669 | echo "configure:7670: checking for --enable-progressdlg" >&5 |
10f2d63a VZ |
7670 | no_cache=0 |
7671 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7672 | if test "${enable_progressdlg+set}" = set; then | |
7673 | enableval="$enable_progressdlg" | |
579d8138 | 7674 | |
10f2d63a VZ |
7675 | if test "$enableval" = yes; then |
7676 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7677 | else | |
7678 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7679 | fi | |
579d8138 | 7680 | |
10f2d63a | 7681 | else |
579d8138 | 7682 | |
10f2d63a VZ |
7683 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7684 | if test "x$LINE" != x ; then | |
7685 | eval "DEFAULT_$LINE" | |
7686 | else | |
7687 | no_cache=1 | |
7688 | fi | |
7689 | ||
7690 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
579d8138 VS |
7691 | |
7692 | fi | |
10f2d63a VZ |
7693 | |
7694 | ||
7695 | eval "$ac_cv_use_progressdlg" | |
7696 | if test "$no_cache" != 1; then | |
7697 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7698 | fi | |
7699 | ||
7700 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
579d8138 | 7701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7702 | else |
579d8138 | 7703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7704 | fi |
579d8138 | 7705 | |
10f2d63a | 7706 | |
579d8138 | 7707 | echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6 |
5c0a20c3 | 7708 | echo "configure:7709: checking for --enable-wizarddlg" >&5 |
b1f5d087 VZ |
7709 | no_cache=0 |
7710 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7711 | if test "${enable_wizarddlg+set}" = set; then | |
7712 | enableval="$enable_wizarddlg" | |
579d8138 | 7713 | |
b1f5d087 VZ |
7714 | if test "$enableval" = yes; then |
7715 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7716 | else | |
7717 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7718 | fi | |
579d8138 | 7719 | |
b1f5d087 | 7720 | else |
579d8138 | 7721 | |
b1f5d087 VZ |
7722 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7723 | if test "x$LINE" != x ; then | |
7724 | eval "DEFAULT_$LINE" | |
7725 | else | |
7726 | no_cache=1 | |
7727 | fi | |
7728 | ||
7729 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
579d8138 VS |
7730 | |
7731 | fi | |
b1f5d087 VZ |
7732 | |
7733 | ||
7734 | eval "$ac_cv_use_wizarddlg" | |
7735 | if test "$no_cache" != 1; then | |
7736 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
7737 | fi | |
7738 | ||
7739 | if test "$wxUSE_WIZARDDLG" = yes; then | |
579d8138 | 7740 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 7741 | else |
579d8138 | 7742 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 7743 | fi |
579d8138 VS |
7744 | |
7745 | ||
b1f5d087 | 7746 | |
579d8138 VS |
7747 | |
7748 | echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6 | |
5c0a20c3 | 7749 | echo "configure:7750: checking for --enable-menus" >&5 |
1e6feb95 VZ |
7750 | no_cache=0 |
7751 | # Check whether --enable-menus or --disable-menus was given. | |
7752 | if test "${enable_menus+set}" = set; then | |
7753 | enableval="$enable_menus" | |
579d8138 | 7754 | |
1e6feb95 VZ |
7755 | if test "$enableval" = yes; then |
7756 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
7757 | else | |
7758 | ac_cv_use_menus='wxUSE_MENUS=no' | |
7759 | fi | |
579d8138 | 7760 | |
1e6feb95 | 7761 | else |
579d8138 | 7762 | |
1e6feb95 VZ |
7763 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
7764 | if test "x$LINE" != x ; then | |
7765 | eval "DEFAULT_$LINE" | |
7766 | else | |
7767 | no_cache=1 | |
7768 | fi | |
7769 | ||
7770 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
579d8138 VS |
7771 | |
7772 | fi | |
1e6feb95 VZ |
7773 | |
7774 | ||
7775 | eval "$ac_cv_use_menus" | |
7776 | if test "$no_cache" != 1; then | |
7777 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
7778 | fi | |
7779 | ||
7780 | if test "$wxUSE_MENUS" = yes; then | |
579d8138 | 7781 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7782 | else |
579d8138 | 7783 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7784 | fi |
579d8138 | 7785 | |
1e6feb95 | 7786 | |
579d8138 | 7787 | echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6 |
5c0a20c3 | 7788 | echo "configure:7789: checking for --enable-miniframe" >&5 |
10f2d63a VZ |
7789 | no_cache=0 |
7790 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
7791 | if test "${enable_miniframe+set}" = set; then | |
7792 | enableval="$enable_miniframe" | |
579d8138 | 7793 | |
10f2d63a VZ |
7794 | if test "$enableval" = yes; then |
7795 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
7796 | else | |
7797 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
7798 | fi | |
579d8138 | 7799 | |
10f2d63a | 7800 | else |
579d8138 | 7801 | |
10f2d63a VZ |
7802 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
7803 | if test "x$LINE" != x ; then | |
7804 | eval "DEFAULT_$LINE" | |
7805 | else | |
7806 | no_cache=1 | |
7807 | fi | |
7808 | ||
7809 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
579d8138 VS |
7810 | |
7811 | fi | |
10f2d63a VZ |
7812 | |
7813 | ||
7814 | eval "$ac_cv_use_miniframe" | |
7815 | if test "$no_cache" != 1; then | |
7816 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
7817 | fi | |
7818 | ||
7819 | if test "$wxUSE_MINIFRAME" = yes; then | |
579d8138 | 7820 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7821 | else |
579d8138 | 7822 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7823 | fi |
579d8138 | 7824 | |
10f2d63a | 7825 | |
579d8138 | 7826 | echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6 |
5c0a20c3 | 7827 | echo "configure:7828: checking for --enable-tooltips" >&5 |
10f2d63a VZ |
7828 | no_cache=0 |
7829 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
7830 | if test "${enable_tooltips+set}" = set; then | |
7831 | enableval="$enable_tooltips" | |
579d8138 | 7832 | |
10f2d63a VZ |
7833 | if test "$enableval" = yes; then |
7834 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
7835 | else | |
7836 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
7837 | fi | |
579d8138 | 7838 | |
10f2d63a | 7839 | else |
579d8138 | 7840 | |
10f2d63a VZ |
7841 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
7842 | if test "x$LINE" != x ; then | |
7843 | eval "DEFAULT_$LINE" | |
7844 | else | |
7845 | no_cache=1 | |
7846 | fi | |
7847 | ||
7848 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
579d8138 VS |
7849 | |
7850 | fi | |
10f2d63a VZ |
7851 | |
7852 | ||
7853 | eval "$ac_cv_use_tooltips" | |
7854 | if test "$no_cache" != 1; then | |
7855 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
7856 | fi | |
7857 | ||
7858 | if test "$wxUSE_TOOLTIPS" = yes; then | |
579d8138 | 7859 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7860 | else |
579d8138 | 7861 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7862 | fi |
579d8138 | 7863 | |
10f2d63a | 7864 | |
579d8138 | 7865 | echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6 |
5c0a20c3 | 7866 | echo "configure:7867: checking for --enable-splines" >&5 |
10f2d63a VZ |
7867 | no_cache=0 |
7868 | # Check whether --enable-splines or --disable-splines was given. | |
7869 | if test "${enable_splines+set}" = set; then | |
7870 | enableval="$enable_splines" | |
579d8138 | 7871 | |
10f2d63a VZ |
7872 | if test "$enableval" = yes; then |
7873 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
7874 | else | |
7875 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
7876 | fi | |
579d8138 | 7877 | |
10f2d63a | 7878 | else |
579d8138 | 7879 | |
10f2d63a VZ |
7880 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
7881 | if test "x$LINE" != x ; then | |
7882 | eval "DEFAULT_$LINE" | |
7883 | else | |
7884 | no_cache=1 | |
7885 | fi | |
7886 | ||
7887 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
579d8138 VS |
7888 | |
7889 | fi | |
10f2d63a VZ |
7890 | |
7891 | ||
7892 | eval "$ac_cv_use_splines" | |
7893 | if test "$no_cache" != 1; then | |
7894 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
7895 | fi | |
7896 | ||
7897 | if test "$wxUSE_SPLINES" = yes; then | |
579d8138 | 7898 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7899 | else |
579d8138 | 7900 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7901 | fi |
579d8138 | 7902 | |
10f2d63a | 7903 | |
579d8138 | 7904 | echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6 |
5c0a20c3 | 7905 | echo "configure:7906: checking for --enable-validators" >&5 |
10f2d63a VZ |
7906 | no_cache=0 |
7907 | # Check whether --enable-validators or --disable-validators was given. | |
7908 | if test "${enable_validators+set}" = set; then | |
7909 | enableval="$enable_validators" | |
579d8138 | 7910 | |
10f2d63a VZ |
7911 | if test "$enableval" = yes; then |
7912 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
7913 | else | |
7914 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
7915 | fi | |
579d8138 | 7916 | |
10f2d63a | 7917 | else |
579d8138 | 7918 | |
10f2d63a VZ |
7919 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
7920 | if test "x$LINE" != x ; then | |
7921 | eval "DEFAULT_$LINE" | |
7922 | else | |
7923 | no_cache=1 | |
7924 | fi | |
7925 | ||
7926 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
579d8138 VS |
7927 | |
7928 | fi | |
10f2d63a VZ |
7929 | |
7930 | ||
7931 | eval "$ac_cv_use_validators" | |
7932 | if test "$no_cache" != 1; then | |
7933 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
7934 | fi | |
7935 | ||
7936 | if test "$wxUSE_VALIDATORS" = yes; then | |
579d8138 | 7937 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7938 | else |
579d8138 | 7939 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7940 | fi |
579d8138 | 7941 | |
10f2d63a | 7942 | |
579d8138 | 7943 | echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6 |
5c0a20c3 | 7944 | echo "configure:7945: checking for --enable-busyinfo" >&5 |
10f2d63a VZ |
7945 | no_cache=0 |
7946 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
7947 | if test "${enable_busyinfo+set}" = set; then | |
7948 | enableval="$enable_busyinfo" | |
579d8138 | 7949 | |
10f2d63a VZ |
7950 | if test "$enableval" = yes; then |
7951 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
7952 | else | |
7953 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
7954 | fi | |
579d8138 | 7955 | |
10f2d63a | 7956 | else |
579d8138 | 7957 | |
10f2d63a VZ |
7958 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
7959 | if test "x$LINE" != x ; then | |
7960 | eval "DEFAULT_$LINE" | |
7961 | else | |
7962 | no_cache=1 | |
7963 | fi | |
7964 | ||
7965 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
579d8138 VS |
7966 | |
7967 | fi | |
10f2d63a VZ |
7968 | |
7969 | ||
7970 | eval "$ac_cv_use_busyinfo" | |
7971 | if test "$no_cache" != 1; then | |
7972 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
7973 | fi | |
7974 | ||
7975 | if test "$wxUSE_BUSYINFO" = yes; then | |
579d8138 | 7976 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7977 | else |
579d8138 | 7978 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7979 | fi |
579d8138 | 7980 | |
10f2d63a | 7981 | |
579d8138 | 7982 | echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6 |
5c0a20c3 | 7983 | echo "configure:7984: checking for --enable-joystick" >&5 |
f6bcfd97 BP |
7984 | no_cache=0 |
7985 | # Check whether --enable-joystick or --disable-joystick was given. | |
7986 | if test "${enable_joystick+set}" = set; then | |
7987 | enableval="$enable_joystick" | |
579d8138 | 7988 | |
f6bcfd97 BP |
7989 | if test "$enableval" = yes; then |
7990 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
7991 | else | |
7992 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
7993 | fi | |
579d8138 | 7994 | |
f6bcfd97 | 7995 | else |
579d8138 | 7996 | |
f6bcfd97 BP |
7997 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
7998 | if test "x$LINE" != x ; then | |
7999 | eval "DEFAULT_$LINE" | |
8000 | else | |
8001 | no_cache=1 | |
8002 | fi | |
8003 | ||
8004 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
579d8138 VS |
8005 | |
8006 | fi | |
f6bcfd97 BP |
8007 | |
8008 | ||
8009 | eval "$ac_cv_use_joystick" | |
8010 | if test "$no_cache" != 1; then | |
8011 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8012 | fi | |
8013 | ||
8014 | if test "$wxUSE_JOYSTICK" = yes; then | |
579d8138 | 8015 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8016 | else |
579d8138 | 8017 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8018 | fi |
579d8138 | 8019 | |
698dcdb6 | 8020 | |
579d8138 | 8021 | echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6 |
5c0a20c3 | 8022 | echo "configure:8023: checking for --enable-metafile" >&5 |
1e6feb95 VZ |
8023 | no_cache=0 |
8024 | # Check whether --enable-metafile or --disable-metafile was given. | |
8025 | if test "${enable_metafile+set}" = set; then | |
8026 | enableval="$enable_metafile" | |
579d8138 | 8027 | |
1e6feb95 VZ |
8028 | if test "$enableval" = yes; then |
8029 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8030 | else | |
8031 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8032 | fi | |
579d8138 | 8033 | |
1e6feb95 | 8034 | else |
579d8138 | 8035 | |
1e6feb95 VZ |
8036 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8037 | if test "x$LINE" != x ; then | |
8038 | eval "DEFAULT_$LINE" | |
8039 | else | |
8040 | no_cache=1 | |
8041 | fi | |
8042 | ||
8043 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
579d8138 VS |
8044 | |
8045 | fi | |
1e6feb95 VZ |
8046 | |
8047 | ||
8048 | eval "$ac_cv_use_metafile" | |
8049 | if test "$no_cache" != 1; then | |
8050 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8051 | fi | |
8052 | ||
8053 | if test "$wxUSE_METAFILE" = yes; then | |
579d8138 | 8054 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8055 | else |
579d8138 | 8056 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8057 | fi |
579d8138 | 8058 | |
1e6feb95 | 8059 | |
579d8138 | 8060 | echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6 |
5c0a20c3 | 8061 | echo "configure:8062: checking for --enable-dragimage" >&5 |
24fd6d87 VZ |
8062 | no_cache=0 |
8063 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8064 | if test "${enable_dragimage+set}" = set; then | |
8065 | enableval="$enable_dragimage" | |
579d8138 | 8066 | |
24fd6d87 VZ |
8067 | if test "$enableval" = yes; then |
8068 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8069 | else | |
8070 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8071 | fi | |
579d8138 | 8072 | |
24fd6d87 | 8073 | else |
579d8138 | 8074 | |
24fd6d87 VZ |
8075 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8076 | if test "x$LINE" != x ; then | |
8077 | eval "DEFAULT_$LINE" | |
8078 | else | |
8079 | no_cache=1 | |
8080 | fi | |
8081 | ||
8082 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
579d8138 VS |
8083 | |
8084 | fi | |
24fd6d87 VZ |
8085 | |
8086 | ||
8087 | eval "$ac_cv_use_dragimage" | |
8088 | if test "$no_cache" != 1; then | |
8089 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8090 | fi | |
8091 | ||
8092 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
579d8138 | 8093 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8094 | else |
579d8138 | 8095 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8096 | fi |
579d8138 VS |
8097 | |
8098 | ||
24fd6d87 | 8099 | |
579d8138 VS |
8100 | |
8101 | echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6 | |
5c0a20c3 | 8102 | echo "configure:8103: checking for --enable-palette" >&5 |
edae8572 VZ |
8103 | no_cache=0 |
8104 | # Check whether --enable-palette or --disable-palette was given. | |
8105 | if test "${enable_palette+set}" = set; then | |
8106 | enableval="$enable_palette" | |
579d8138 | 8107 | |
edae8572 VZ |
8108 | if test "$enableval" = yes; then |
8109 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8110 | else | |
8111 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8112 | fi | |
579d8138 | 8113 | |
edae8572 | 8114 | else |
579d8138 | 8115 | |
edae8572 VZ |
8116 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8117 | if test "x$LINE" != x ; then | |
8118 | eval "DEFAULT_$LINE" | |
8119 | else | |
8120 | no_cache=1 | |
8121 | fi | |
8122 | ||
8123 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
579d8138 VS |
8124 | |
8125 | fi | |
edae8572 VZ |
8126 | |
8127 | ||
8128 | eval "$ac_cv_use_palette" | |
8129 | if test "$no_cache" != 1; then | |
8130 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8131 | fi | |
8132 | ||
8133 | if test "$wxUSE_PALETTE" = yes; then | |
579d8138 | 8134 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8135 | else |
579d8138 | 8136 | echo "$ac_t""no" 1>&6 |
edae8572 | 8137 | fi |
579d8138 | 8138 | |
edae8572 | 8139 | |
579d8138 | 8140 | echo $ac_n "checking for --enable-image""... $ac_c" 1>&6 |
5c0a20c3 | 8141 | echo "configure:8142: checking for --enable-image" >&5 |
0046ff7c VS |
8142 | no_cache=0 |
8143 | # Check whether --enable-image or --disable-image was given. | |
8144 | if test "${enable_image+set}" = set; then | |
8145 | enableval="$enable_image" | |
579d8138 | 8146 | |
0046ff7c VS |
8147 | if test "$enableval" = yes; then |
8148 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8149 | else | |
8150 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8151 | fi | |
579d8138 | 8152 | |
0046ff7c | 8153 | else |
579d8138 | 8154 | |
0046ff7c VS |
8155 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8156 | if test "x$LINE" != x ; then | |
8157 | eval "DEFAULT_$LINE" | |
8158 | else | |
8159 | no_cache=1 | |
8160 | fi | |
8161 | ||
8162 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
579d8138 VS |
8163 | |
8164 | fi | |
0046ff7c VS |
8165 | |
8166 | ||
8167 | eval "$ac_cv_use_image" | |
8168 | if test "$no_cache" != 1; then | |
8169 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8170 | fi | |
8171 | ||
8172 | if test "$wxUSE_IMAGE" = yes; then | |
579d8138 | 8173 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8174 | else |
579d8138 | 8175 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8176 | fi |
579d8138 | 8177 | |
0046ff7c | 8178 | |
579d8138 | 8179 | echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6 |
5c0a20c3 | 8180 | echo "configure:8181: checking for --enable-gif" >&5 |
10f2d63a VZ |
8181 | no_cache=0 |
8182 | # Check whether --enable-gif or --disable-gif was given. | |
8183 | if test "${enable_gif+set}" = set; then | |
8184 | enableval="$enable_gif" | |
579d8138 | 8185 | |
10f2d63a VZ |
8186 | if test "$enableval" = yes; then |
8187 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8188 | else | |
8189 | ac_cv_use_gif='wxUSE_GIF=no' | |
8190 | fi | |
579d8138 | 8191 | |
10f2d63a | 8192 | else |
579d8138 | 8193 | |
10f2d63a VZ |
8194 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8195 | if test "x$LINE" != x ; then | |
8196 | eval "DEFAULT_$LINE" | |
8197 | else | |
8198 | no_cache=1 | |
8199 | fi | |
8200 | ||
8201 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
579d8138 VS |
8202 | |
8203 | fi | |
10f2d63a VZ |
8204 | |
8205 | ||
8206 | eval "$ac_cv_use_gif" | |
8207 | if test "$no_cache" != 1; then | |
8208 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8209 | fi | |
8210 | ||
8211 | if test "$wxUSE_GIF" = yes; then | |
579d8138 | 8212 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8213 | else |
579d8138 | 8214 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8215 | fi |
579d8138 | 8216 | |
10f2d63a | 8217 | |
579d8138 | 8218 | echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6 |
5c0a20c3 | 8219 | echo "configure:8220: checking for --enable-pcx" >&5 |
10f2d63a VZ |
8220 | no_cache=0 |
8221 | # Check whether --enable-pcx or --disable-pcx was given. | |
8222 | if test "${enable_pcx+set}" = set; then | |
8223 | enableval="$enable_pcx" | |
579d8138 | 8224 | |
10f2d63a VZ |
8225 | if test "$enableval" = yes; then |
8226 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8227 | else | |
8228 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8229 | fi | |
579d8138 | 8230 | |
10f2d63a | 8231 | else |
579d8138 | 8232 | |
10f2d63a VZ |
8233 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8234 | if test "x$LINE" != x ; then | |
8235 | eval "DEFAULT_$LINE" | |
8236 | else | |
8237 | no_cache=1 | |
8238 | fi | |
8239 | ||
8240 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
579d8138 VS |
8241 | |
8242 | fi | |
10f2d63a VZ |
8243 | |
8244 | ||
8245 | eval "$ac_cv_use_pcx" | |
8246 | if test "$no_cache" != 1; then | |
8247 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8248 | fi | |
8249 | ||
8250 | if test "$wxUSE_PCX" = yes; then | |
579d8138 | 8251 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8252 | else |
579d8138 | 8253 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8254 | fi |
579d8138 | 8255 | |
10f2d63a | 8256 | |
579d8138 | 8257 | echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6 |
5c0a20c3 | 8258 | echo "configure:8259: checking for --enable-iff" >&5 |
4b6b4dfc RR |
8259 | no_cache=0 |
8260 | # Check whether --enable-iff or --disable-iff was given. | |
8261 | if test "${enable_iff+set}" = set; then | |
8262 | enableval="$enable_iff" | |
579d8138 | 8263 | |
4b6b4dfc RR |
8264 | if test "$enableval" = yes; then |
8265 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8266 | else | |
8267 | ac_cv_use_iff='wxUSE_IFF=no' | |
8268 | fi | |
579d8138 | 8269 | |
4b6b4dfc | 8270 | else |
579d8138 | 8271 | |
4b6b4dfc RR |
8272 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8273 | if test "x$LINE" != x ; then | |
8274 | eval "DEFAULT_$LINE" | |
8275 | else | |
8276 | no_cache=1 | |
8277 | fi | |
8278 | ||
8279 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
579d8138 VS |
8280 | |
8281 | fi | |
4b6b4dfc RR |
8282 | |
8283 | ||
8284 | eval "$ac_cv_use_iff" | |
8285 | if test "$no_cache" != 1; then | |
8286 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8287 | fi | |
8288 | ||
8289 | if test "$wxUSE_IFF" = yes; then | |
579d8138 | 8290 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8291 | else |
579d8138 | 8292 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8293 | fi |
579d8138 | 8294 | |
4b6b4dfc | 8295 | |
579d8138 | 8296 | echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6 |
5c0a20c3 | 8297 | echo "configure:8298: checking for --enable-pnm" >&5 |
10f2d63a VZ |
8298 | no_cache=0 |
8299 | # Check whether --enable-pnm or --disable-pnm was given. | |
8300 | if test "${enable_pnm+set}" = set; then | |
8301 | enableval="$enable_pnm" | |
579d8138 | 8302 | |
10f2d63a VZ |
8303 | if test "$enableval" = yes; then |
8304 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8305 | else | |
8306 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8307 | fi | |
579d8138 | 8308 | |
10f2d63a | 8309 | else |
579d8138 | 8310 | |
10f2d63a VZ |
8311 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8312 | if test "x$LINE" != x ; then | |
8313 | eval "DEFAULT_$LINE" | |
8314 | else | |
8315 | no_cache=1 | |
8316 | fi | |
8317 | ||
8318 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
579d8138 VS |
8319 | |
8320 | fi | |
10f2d63a VZ |
8321 | |
8322 | ||
8323 | eval "$ac_cv_use_pnm" | |
8324 | if test "$no_cache" != 1; then | |
8325 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8326 | fi | |
8327 | ||
8328 | if test "$wxUSE_PNM" = yes; then | |
579d8138 | 8329 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8330 | else |
579d8138 | 8331 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8332 | fi |
579d8138 | 8333 | |
10f2d63a | 8334 | |
579d8138 | 8335 | echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6 |
5c0a20c3 | 8336 | echo "configure:8337: checking for --enable-xpm" >&5 |
0046ff7c | 8337 | no_cache=0 |
69d27ff7 MB |
8338 | # Check whether --enable-xpm or --disable-xpm was given. |
8339 | if test "${enable_xpm+set}" = set; then | |
8340 | enableval="$enable_xpm" | |
579d8138 | 8341 | |
0046ff7c | 8342 | if test "$enableval" = yes; then |
69d27ff7 | 8343 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8344 | else |
69d27ff7 | 8345 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8346 | fi |
579d8138 | 8347 | |
0046ff7c | 8348 | else |
579d8138 | 8349 | |
0046ff7c VS |
8350 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8351 | if test "x$LINE" != x ; then | |
8352 | eval "DEFAULT_$LINE" | |
8353 | else | |
8354 | no_cache=1 | |
8355 | fi | |
8356 | ||
69d27ff7 | 8357 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
579d8138 VS |
8358 | |
8359 | fi | |
0046ff7c VS |
8360 | |
8361 | ||
69d27ff7 | 8362 | eval "$ac_cv_use_xpm" |
0046ff7c | 8363 | if test "$no_cache" != 1; then |
69d27ff7 | 8364 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8365 | fi |
8366 | ||
8367 | if test "$wxUSE_XPM" = yes; then | |
579d8138 | 8368 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8369 | else |
579d8138 | 8370 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8371 | fi |
579d8138 | 8372 | |
0046ff7c | 8373 | |
579d8138 | 8374 | echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6 |
5c0a20c3 | 8375 | echo "configure:8376: checking for --enable-ico_cur" >&5 |
658974ae | 8376 | no_cache=0 |
c7206e64 VS |
8377 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8378 | if test "${enable_ico_cur+set}" = set; then | |
8379 | enableval="$enable_ico_cur" | |
579d8138 | 8380 | |
658974ae | 8381 | if test "$enableval" = yes; then |
c7206e64 | 8382 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8383 | else |
c7206e64 | 8384 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8385 | fi |
579d8138 | 8386 | |
658974ae | 8387 | else |
579d8138 | 8388 | |
658974ae VS |
8389 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8390 | if test "x$LINE" != x ; then | |
8391 | eval "DEFAULT_$LINE" | |
8392 | else | |
8393 | no_cache=1 | |
8394 | fi | |
8395 | ||
c7206e64 | 8396 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
579d8138 VS |
8397 | |
8398 | fi | |
658974ae VS |
8399 | |
8400 | ||
c7206e64 | 8401 | eval "$ac_cv_use_ico_cur" |
658974ae | 8402 | if test "$no_cache" != 1; then |
c7206e64 | 8403 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8404 | fi |
8405 | ||
8406 | if test "$wxUSE_ICO_CUR" = yes; then | |
579d8138 | 8407 | echo "$ac_t""yes" 1>&6 |
658974ae | 8408 | else |
579d8138 | 8409 | echo "$ac_t""no" 1>&6 |
658974ae | 8410 | fi |
579d8138 | 8411 | |
658974ae | 8412 | |
b12915c1 VZ |
8413 | fi |
8414 | ||
d558c907 VS |
8415 | case "${host}" in |
8416 | *-pc-os2_emx | *-pc-os2-emx ) | |
8417 | LEX_STEM="lexyy" | |
8418 | ;; | |
8419 | *) | |
8420 | PATH_IFS=':' | |
8421 | LEX_STEM="lex.yy" | |
8422 | ;; | |
8423 | esac | |
8424 | ||
579d8138 VS |
8425 | |
8426 | ||
10f2d63a VZ |
8427 | echo "saving argument cache $wx_arg_cache_file" |
8428 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
579d8138 VS |
8429 | |
8430 | ||
10f2d63a | 8431 | |
579d8138 | 8432 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
5c0a20c3 | 8433 | echo "configure:8434: checking for toolkit" >&5 |
10f2d63a VZ |
8434 | |
8435 | if test "$wxUSE_GUI" = "yes"; then | |
8436 | ||
3a922bb4 | 8437 | if test "$USE_BEOS" = 1; then |
579d8138 | 8438 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8439 | fi |
b12915c1 | 8440 | |
3a922bb4 RL |
8441 | if test "$TOOLKIT_GIVEN" = 1; then |
8442 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8443 | var=wxUSE_$toolkit | |
8444 | eval "value=\$${var}" | |
8445 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8446 | done | |
10f2d63a | 8447 | else |
3a922bb4 RL |
8448 | for toolkit in `echo $ALL_TOOLKITS`; do |
8449 | if test "$has_toolkit_in_cache" != 1; then | |
8450 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8451 | else | |
8452 | var=DEFAULT_wxUSE_$toolkit | |
8453 | fi | |
8454 | eval "wxUSE_$toolkit=\$${var}" | |
8455 | done | |
10f2d63a | 8456 | fi |
10f2d63a | 8457 | |
3a922bb4 | 8458 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8459 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8460 | |
d558c907 | 8461 | case "${host}" in |
6fa882bd | 8462 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8463 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8464 | esac |
10f2d63a | 8465 | |
3a922bb4 RL |
8466 | case "$NUM_TOOLKITS" in |
8467 | 1) | |
8468 | ;; | |
8469 | 0) | |
579d8138 | 8470 | { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8471 | ;; |
8472 | *) | |
579d8138 | 8473 | { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; } |
3a922bb4 | 8474 | esac |
10f2d63a | 8475 | |
3a922bb4 RL |
8476 | for toolkit in `echo $ALL_TOOLKITS`; do |
8477 | var=wxUSE_$toolkit | |
8478 | eval "value=\$${var}" | |
8479 | if test "x$value" != x; then | |
8480 | cache_var=CACHE_$toolkit | |
8481 | eval "cache=\$${cache_var}" | |
8482 | if test "$cache" = 1; then | |
8483 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8484 | fi | |
8485 | if test "$value" = 1; then | |
8486 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
579d8138 | 8487 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8488 | fi |
8489 | fi | |
8490 | done | |
10f2d63a | 8491 | else |
579d8138 | 8492 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8493 | fi |
8494 | ||
579d8138 | 8495 | |
43d99b6d VS |
8496 | wants_win32=0 |
8497 | doesnt_want_win32=0 | |
17234b26 MB |
8498 | case "${host}" in |
8499 | *-*-cygwin*) | |
8500 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8501 | wants_win32=1 |
8502 | else | |
8503 | doesnt_want_win32=1 | |
17234b26 MB |
8504 | fi |
8505 | ;; | |
8506 | *-*-mingw*) | |
43d99b6d | 8507 | wants_win32=1 |
17234b26 MB |
8508 | ;; |
8509 | esac | |
8510 | ||
43d99b6d | 8511 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8512 | USE_UNIX=0 |
8513 | USE_WIN32=1 | |
579d8138 | 8514 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8515 | #define __WIN32__ 1 |
8516 | EOF | |
8517 | ||
579d8138 | 8518 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8519 | #define __WIN95__ 1 |
8520 | EOF | |
8521 | ||
579d8138 | 8522 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8523 | #define __WINDOWS__ 1 |
8524 | EOF | |
8525 | ||
579d8138 | 8526 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8527 | #define __GNUWIN32__ 1 |
8528 | EOF | |
8529 | ||
579d8138 | 8530 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8531 | #define STRICT 1 |
8532 | EOF | |
8533 | ||
579d8138 | 8534 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8535 | #define WINVER 0x0400 |
8536 | EOF | |
8537 | ||
43d99b6d VS |
8538 | fi |
8539 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8540 | USE_UNIX=1 |
8541 | USE_WIN32=0 | |
8542 | fi | |
8543 | ||
8544 | if test "$USE_UNIX" = 1 ; then | |
8545 | wxUSE_UNIX=yes | |
579d8138 | 8546 | cat >> confdefs.h <<\EOF |
17234b26 MB |
8547 | #define __UNIX__ 1 |
8548 | EOF | |
8549 | ||
8550 | fi | |
8551 | ||
579d8138 VS |
8552 | |
8553 | cat > confcache <<\EOF | |
10f2d63a VZ |
8554 | # This file is a shell script that caches the results of configure |
8555 | # tests run on this system so they can be shared between configure | |
579d8138 VS |
8556 | # scripts and configure runs. It is not useful on other systems. |
8557 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8558 | # |
579d8138 VS |
8559 | # By default, configure uses ./config.cache as the cache file, |
8560 | # creating it if it does not exist already. You can give configure | |
8561 | # the --cache-file=FILE option to use a different cache file; that is | |
8562 | # what configure does when it calls configure scripts in | |
8563 | # subdirectories, so they share the cache. | |
8564 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8565 | # config.status only pays attention to the cache file if you give it the | |
8566 | # --recheck option to rerun configure. | |
10f2d63a | 8567 | # |
579d8138 | 8568 | EOF |
10f2d63a VZ |
8569 | # The following way of writing the cache mishandles newlines in values, |
8570 | # but we know of no workaround that is simple, portable, and efficient. | |
8571 | # So, don't put newlines in cache variables' values. | |
8572 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8573 | # and sets the high bit in the cache file unless we assign to the vars. | |
579d8138 | 8574 | (set) 2>&1 | |
5c0a20c3 | 8575 | case `(ac_space=' '; set) 2>&1` in |
579d8138 VS |
8576 | *ac_space=\ *) |
8577 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8578 | # turns \\\\ into \\, and sed turns \\ into \). | |
8579 | sed -n \ | |
8580 | -e "s/'/'\\\\''/g" \ | |
8581 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8582 | ;; | |
8583 | *) | |
8584 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8585 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8586 | ;; | |
8587 | esac >> confcache | |
8588 | if cmp -s $cache_file confcache; then | |
8589 | : | |
8590 | else | |
10f2d63a | 8591 | if test -w $cache_file; then |
579d8138 VS |
8592 | echo "updating cache $cache_file" |
8593 | cat confcache > $cache_file | |
10f2d63a VZ |
8594 | else |
8595 | echo "not updating unwritable cache $cache_file" | |
8596 | fi | |
8597 | fi | |
8598 | rm -f confcache | |
8599 | ||
579d8138 | 8600 | |
e59890c3 | 8601 | if test "$build" != "$host" ; then |
9d353d4a | 8602 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8603 | CC=$host_alias-gcc |
8604 | CXX=$host_alias-c++ | |
8605 | AR=$host_alias-ar | |
8606 | RANLIB=$host_alias-ranlib | |
8607 | DLLTOOL=$host_alias-dlltool | |
8608 | RESCOMP=$host_alias-windres | |
8609 | LD=$host_alias-ld | |
8610 | NM=$host_alias-nm | |
8611 | STRIP=$host_alias-strip | |
8612 | else | |
579d8138 | 8613 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8614 | fi |
10f2d63a VZ |
8615 | fi |
8616 | ||
ec603395 | 8617 | CFLAGS=${CFLAGS:=} |
579d8138 VS |
8618 | # Extract the first word of "gcc", so it can be a program name with args. |
8619 | set dummy gcc; ac_word=$2 | |
8620 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5c0a20c3 | 8621 | echo "configure:8622: checking for $ac_word" >&5 |
579d8138 VS |
8622 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8623 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8624 | else |
8625 | if test -n "$CC"; then | |
8626 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8627 | else |
5c0a20c3 VZ |
8628 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
8629 | for ac_dir in $PATH; do | |
579d8138 VS |
8630 | test -z "$ac_dir" && ac_dir=. |
8631 | if test -f $ac_dir/$ac_word; then | |
8632 | ac_cv_prog_CC="gcc" | |
8633 | break | |
8634 | fi | |
8635 | done | |
8636 | IFS="$ac_save_ifs" | |
10f2d63a | 8637 | fi |
6232543b | 8638 | fi |
579d8138 | 8639 | CC="$ac_cv_prog_CC" |
6232543b | 8640 | if test -n "$CC"; then |
579d8138 | 8641 | echo "$ac_t""$CC" 1>&6 |
1e487827 | 8642 | else |
579d8138 | 8643 | echo "$ac_t""no" 1>&6 |
1e487827 | 8644 | fi |
6232543b | 8645 | |
1e487827 | 8646 | if test -z "$CC"; then |
579d8138 VS |
8647 | # Extract the first word of "cc", so it can be a program name with args. |
8648 | set dummy cc; ac_word=$2 | |
8649 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5c0a20c3 | 8650 | echo "configure:8651: checking for $ac_word" >&5 |
579d8138 VS |
8651 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c RR |
8653 | else |
8654 | if test -n "$CC"; then | |
8655 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8656 | else | |
5c0a20c3 | 8657 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
328a083c | 8658 | ac_prog_rejected=no |
5c0a20c3 | 8659 | for ac_dir in $PATH; do |
579d8138 VS |
8660 | test -z "$ac_dir" && ac_dir=. |
8661 | if test -f $ac_dir/$ac_word; then | |
8662 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8663 | ac_prog_rejected=yes | |
8664 | continue | |
8665 | fi | |
8666 | ac_cv_prog_CC="cc" | |
8667 | break | |
8668 | fi | |
8669 | done | |
8670 | IFS="$ac_save_ifs" | |
328a083c RR |
8671 | if test $ac_prog_rejected = yes; then |
8672 | # We found a bogon in the path, so make sure we never use it. | |
8673 | set dummy $ac_cv_prog_CC | |
8674 | shift | |
579d8138 | 8675 | if test $# -gt 0; then |
328a083c | 8676 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8677 | # However, it has the same basename, so the bogon will be chosen |
8678 | # first if we set CC to just the basename; use the full file name. | |
8679 | shift | |
579d8138 | 8680 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8681 | shift |
8682 | ac_cv_prog_CC="$@" | |
703e0a69 | 8683 | fi |
1e487827 VS |
8684 | fi |
8685 | fi | |
8686 | fi | |
579d8138 | 8687 | CC="$ac_cv_prog_CC" |
1e487827 | 8688 | if test -n "$CC"; then |
579d8138 | 8689 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8690 | else |
579d8138 | 8691 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8692 | fi |
1e487827 | 8693 | |
579d8138 | 8694 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
328a083c | 8695 | fi |
1e487827 | 8696 | |
579d8138 | 8697 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
5c0a20c3 | 8698 | echo "configure:8699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
6232543b | 8699 | |
579d8138 VS |
8700 | ac_ext=c |
8701 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8702 | ac_cpp='$CPP $CPPFLAGS' | |
8703 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c0a20c3 | 8704 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 8705 | cross_compiling=$ac_cv_prog_cc_cross |
1e487827 | 8706 | |
5c0a20c3 VZ |
8707 | cat > conftest.$ac_ext <<EOF |
8708 | #line 8709 "configure" | |
579d8138 | 8709 | #include "confdefs.h" |
579d8138 VS |
8710 | main(){return(0);} |
8711 | EOF | |
5c0a20c3 | 8712 | if { (eval echo configure:8713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
8713 | ac_cv_prog_cc_works=yes |
8714 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8715 | if (./conftest; exit) 2>/dev/null; then | |
8716 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 8717 | else |
579d8138 | 8718 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 8719 | fi |
698dcdb6 | 8720 | else |
579d8138 VS |
8721 | echo "configure: failed program was:" >&5 |
8722 | cat conftest.$ac_ext >&5 | |
8723 | ac_cv_prog_cc_works=no | |
698dcdb6 | 8724 | fi |
579d8138 | 8725 | rm -fr conftest* |
579d8138 VS |
8726 | |
8727 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
8728 | if test $ac_cv_prog_cc_works = no; then | |
8729 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
8730 | fi | |
8731 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
5c0a20c3 | 8732 | echo "configure:8733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
579d8138 VS |
8733 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
8734 | cross_compiling=$ac_cv_prog_cc_cross | |
8735 | ||
8736 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
5c0a20c3 | 8737 | echo "configure:8738: checking whether we are using GNU C" >&5 |
579d8138 VS |
8738 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
8739 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8740 | else | |
8741 | cat > conftest.c <<EOF | |
8742 | #ifdef __GNUC__ | |
8743 | yes; | |
8744 | #endif | |
8745 | EOF | |
5c0a20c3 | 8746 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
579d8138 | 8747 | ac_cv_prog_gcc=yes |
328a083c | 8748 | else |
579d8138 VS |
8749 | ac_cv_prog_gcc=no |
8750 | fi | |
8751 | fi | |
328a083c | 8752 | |
579d8138 | 8753 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
1e487827 | 8754 | |
579d8138 VS |
8755 | if test $ac_cv_prog_gcc = yes; then |
8756 | GCC=yes | |
5c0a20c3 VZ |
8757 | ac_test_CFLAGS="${CFLAGS+set}" |
8758 | ac_save_CFLAGS="$CFLAGS" | |
8759 | CFLAGS= | |
8760 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
8761 | echo "configure:8762: checking whether ${CC-cc} accepts -g" >&5 | |
579d8138 VS |
8762 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
8763 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 8764 | else |
579d8138 VS |
8765 | echo 'void f(){}' > conftest.c |
8766 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
8767 | ac_cv_prog_cc_g=yes |
8768 | else | |
579d8138 | 8769 | ac_cv_prog_cc_g=no |
10f2d63a | 8770 | fi |
579d8138 VS |
8771 | rm -f conftest* |
8772 | ||
10f2d63a | 8773 | fi |
579d8138 VS |
8774 | |
8775 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
5c0a20c3 VZ |
8776 | if test "$ac_test_CFLAGS" = set; then |
8777 | CFLAGS="$ac_save_CFLAGS" | |
8778 | elif test $ac_cv_prog_cc_g = yes; then | |
10f2d63a VZ |
8779 | CFLAGS="-g -O2" |
8780 | else | |
10f2d63a | 8781 | CFLAGS="-O2" |
10f2d63a | 8782 | fi |
5c0a20c3 VZ |
8783 | else |
8784 | GCC= | |
8785 | test "${CFLAGS+set}" = set || CFLAGS="-g" | |
10f2d63a VZ |
8786 | fi |
8787 | ||
8788 | ||
579d8138 | 8789 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
5c0a20c3 | 8790 | echo "configure:8791: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
8791 | # On Suns, sometimes $CPP names a directory. |
8792 | if test -n "$CPP" && test -d "$CPP"; then | |
8793 | CPP= | |
8794 | fi | |
8795 | if test -z "$CPP"; then | |
579d8138 VS |
8796 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
8797 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8798 | else | |
8799 | # This must be in double quotes, not single quotes, because CPP may get | |
8800 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
8801 | CPP="${CC-cc} -E" | |
10f2d63a | 8802 | # On the NeXT, cc -E runs the code through the compiler's parser, |
579d8138 VS |
8803 | # not just through cpp. |
8804 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 8805 | #line 8806 "configure" |
10f2d63a VZ |
8806 | #include "confdefs.h" |
8807 | #include <assert.h> | |
579d8138 VS |
8808 | Syntax Error |
8809 | EOF | |
8810 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
8811 | { (eval echo configure:8812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8812 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 | 8813 | if test -z "$ac_err"; then |
10f2d63a VZ |
8814 | : |
8815 | else | |
579d8138 VS |
8816 | echo "$ac_err" >&5 |
8817 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8818 | cat conftest.$ac_ext >&5 |
579d8138 VS |
8819 | rm -rf conftest* |
8820 | CPP="${CC-cc} -E -traditional-cpp" | |
8821 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 8822 | #line 8823 "configure" |
10f2d63a VZ |
8823 | #include "confdefs.h" |
8824 | #include <assert.h> | |
579d8138 VS |
8825 | Syntax Error |
8826 | EOF | |
8827 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
8828 | { (eval echo configure:8829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8829 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 | 8830 | if test -z "$ac_err"; then |
10f2d63a VZ |
8831 | : |
8832 | else | |
579d8138 VS |
8833 | echo "$ac_err" >&5 |
8834 | echo "configure: failed program was:" >&5 | |
10f2d63a | 8835 | cat conftest.$ac_ext >&5 |
579d8138 VS |
8836 | rm -rf conftest* |
8837 | CPP=/lib/cpp | |
10f2d63a | 8838 | fi |
579d8138 | 8839 | rm -f conftest* |
703e0a69 | 8840 | fi |
579d8138 VS |
8841 | rm -f conftest* |
8842 | ac_cv_prog_CPP="$CPP" | |
8843 | fi | |
8844 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 8845 | else |
579d8138 | 8846 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 8847 | fi |
579d8138 | 8848 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 8849 | |
579d8138 VS |
8850 | if test $ac_cv_prog_gcc = yes; then |
8851 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
5c0a20c3 | 8852 | echo "configure:8853: checking whether ${CC-cc} needs -traditional" >&5 |
579d8138 VS |
8853 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
8854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8855 | else |
8856 | ac_pattern="Autoconf.*'x'" | |
579d8138 | 8857 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 8858 | #line 8859 "configure" |
10f2d63a VZ |
8859 | #include "confdefs.h" |
8860 | #include <sgtty.h> | |
8861 | Autoconf TIOCGETP | |
579d8138 | 8862 | EOF |
10f2d63a VZ |
8863 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8864 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
579d8138 | 8865 | rm -rf conftest* |
10f2d63a VZ |
8866 | ac_cv_prog_gcc_traditional=yes |
8867 | else | |
579d8138 | 8868 | rm -rf conftest* |
10f2d63a VZ |
8869 | ac_cv_prog_gcc_traditional=no |
8870 | fi | |
8871 | rm -f conftest* | |
8872 | ||
579d8138 | 8873 | |
10f2d63a | 8874 | if test $ac_cv_prog_gcc_traditional = no; then |
579d8138 | 8875 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 8876 | #line 8877 "configure" |
10f2d63a VZ |
8877 | #include "confdefs.h" |
8878 | #include <termio.h> | |
8879 | Autoconf TCGETA | |
579d8138 | 8880 | EOF |
10f2d63a VZ |
8881 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
8882 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
579d8138 | 8883 | rm -rf conftest* |
10f2d63a VZ |
8884 | ac_cv_prog_gcc_traditional=yes |
8885 | fi | |
8886 | rm -f conftest* | |
8887 | ||
8888 | fi | |
8889 | fi | |
579d8138 VS |
8890 | |
8891 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
8892 | if test $ac_cv_prog_gcc_traditional = yes; then |
8893 | CC="$CC -traditional" | |
8894 | fi | |
8895 | fi | |
8896 | ||
579d8138 VS |
8897 | |
8898 | ||
8899 | ac_ext=C | |
8900 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 8901 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 8902 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 8903 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
8904 | cross_compiling=$ac_cv_prog_cxx_cross |
8905 | ||
698dcdb6 | 8906 | |
ec603395 | 8907 | CXXFLAGS=${CXXFLAGS:=} |
5c0a20c3 | 8908 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ |
579d8138 VS |
8909 | do |
8910 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
8911 | set dummy $ac_prog; ac_word=$2 | |
8912 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5c0a20c3 | 8913 | echo "configure:8914: checking for $ac_word" >&5 |
579d8138 VS |
8914 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
8915 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
8916 | else |
8917 | if test -n "$CXX"; then | |
8918 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
8919 | else | |
5c0a20c3 VZ |
8920 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
8921 | for ac_dir in $PATH; do | |
579d8138 VS |
8922 | test -z "$ac_dir" && ac_dir=. |
8923 | if test -f $ac_dir/$ac_word; then | |
8924 | ac_cv_prog_CXX="$ac_prog" | |
8925 | break | |
8926 | fi | |
8927 | done | |
8928 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
8929 | fi |
8930 | fi | |
579d8138 | 8931 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 8932 | if test -n "$CXX"; then |
579d8138 | 8933 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 8934 | else |
579d8138 | 8935 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
8936 | fi |
8937 | ||
579d8138 | 8938 | test -n "$CXX" && break |
10f2d63a | 8939 | done |
579d8138 | 8940 | test -n "$CXX" || CXX="gcc" |
703e0a69 | 8941 | |
698dcdb6 | 8942 | |
579d8138 | 8943 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
5c0a20c3 | 8944 | echo "configure:8945: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
579d8138 VS |
8945 | |
8946 | ac_ext=C | |
8947 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8948 | ac_cpp='$CXXCPP $CPPFLAGS' | |
8949 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c0a20c3 | 8950 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
8951 | cross_compiling=$ac_cv_prog_cxx_cross |
8952 | ||
5c0a20c3 VZ |
8953 | cat > conftest.$ac_ext <<EOF |
8954 | #line 8955 "configure" | |
10f2d63a | 8955 | #include "confdefs.h" |
5c0a20c3 | 8956 | main(){return(0);} |
579d8138 | 8957 | EOF |
5c0a20c3 | 8958 | if { (eval echo configure:8959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
8959 | ac_cv_prog_cxx_works=yes |
8960 | # If we can't run a trivial program, we are probably using a cross compiler. | |
8961 | if (./conftest; exit) 2>/dev/null; then | |
8962 | ac_cv_prog_cxx_cross=no | |
8963 | else | |
8964 | ac_cv_prog_cxx_cross=yes | |
8965 | fi | |
8966 | else | |
8967 | echo "configure: failed program was:" >&5 | |
8968 | cat conftest.$ac_ext >&5 | |
8969 | ac_cv_prog_cxx_works=no | |
8970 | fi | |
8971 | rm -fr conftest* | |
579d8138 VS |
8972 | |
8973 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 | |
8974 | if test $ac_cv_prog_cxx_works = no; then | |
8975 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
8976 | fi | |
8977 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
5c0a20c3 | 8978 | echo "configure:8979: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
579d8138 VS |
8979 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
8980 | cross_compiling=$ac_cv_prog_cxx_cross | |
8981 | ||
8982 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 | |
5c0a20c3 | 8983 | echo "configure:8984: checking whether we are using GNU C++" >&5 |
579d8138 VS |
8984 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
8985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8986 | else | |
8987 | cat > conftest.C <<EOF | |
8988 | #ifdef __GNUC__ | |
8989 | yes; | |
10f2d63a | 8990 | #endif |
579d8138 | 8991 | EOF |
5c0a20c3 | 8992 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
579d8138 VS |
8993 | ac_cv_prog_gxx=yes |
8994 | else | |
8995 | ac_cv_prog_gxx=no | |
8996 | fi | |
8997 | fi | |
10f2d63a | 8998 | |
579d8138 | 8999 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9000 | |
579d8138 VS |
9001 | if test $ac_cv_prog_gxx = yes; then |
9002 | GXX=yes | |
5c0a20c3 VZ |
9003 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9004 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9005 | CXXFLAGS= | |
9006 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
9007 | echo "configure:9008: checking whether ${CXX-g++} accepts -g" >&5 | |
579d8138 VS |
9008 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9010 | else | |
9011 | echo 'void f(){}' > conftest.cc | |
9012 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9013 | ac_cv_prog_cxx_g=yes |
9014 | else | |
579d8138 | 9015 | ac_cv_prog_cxx_g=no |
10f2d63a | 9016 | fi |
579d8138 VS |
9017 | rm -f conftest* |
9018 | ||
10f2d63a | 9019 | fi |
579d8138 VS |
9020 | |
9021 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
5c0a20c3 VZ |
9022 | if test "$ac_test_CXXFLAGS" = set; then |
9023 | CXXFLAGS="$ac_save_CXXFLAGS" | |
9024 | elif test $ac_cv_prog_cxx_g = yes; then | |
10f2d63a VZ |
9025 | CXXFLAGS="-g -O2" |
9026 | else | |
10f2d63a | 9027 | CXXFLAGS="-O2" |
10f2d63a | 9028 | fi |
5c0a20c3 VZ |
9029 | else |
9030 | GXX= | |
9031 | test "${CXXFLAGS+set}" = set || CXXFLAGS="-g" | |
10f2d63a VZ |
9032 | fi |
9033 | ||
9034 | ||
10f2d63a | 9035 | ac_ext=c |
579d8138 | 9036 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9037 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 9038 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 9039 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
9040 | cross_compiling=$ac_cv_prog_cc_cross |
9041 | ||
9042 | ||
9043 | # Extract the first word of "ranlib", so it can be a program name with args. | |
9044 | set dummy ranlib; ac_word=$2 | |
9045 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5c0a20c3 | 9046 | echo "configure:9047: checking for $ac_word" >&5 |
579d8138 VS |
9047 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9049 | else |
9050 | if test -n "$RANLIB"; then | |
9051 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9052 | else | |
5c0a20c3 VZ |
9053 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
9054 | for ac_dir in $PATH; do | |
579d8138 VS |
9055 | test -z "$ac_dir" && ac_dir=. |
9056 | if test -f $ac_dir/$ac_word; then | |
9057 | ac_cv_prog_RANLIB="ranlib" | |
9058 | break | |
9059 | fi | |
9060 | done | |
9061 | IFS="$ac_save_ifs" | |
9062 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9063 | fi |
9064 | fi | |
579d8138 | 9065 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9066 | if test -n "$RANLIB"; then |
579d8138 | 9067 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9068 | else |
579d8138 | 9069 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9070 | fi |
9071 | ||
10f2d63a VZ |
9072 | |
9073 | # Extract the first word of "ar", so it can be a program name with args. | |
9074 | set dummy ar; ac_word=$2 | |
579d8138 | 9075 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 9076 | echo "configure:9077: checking for $ac_word" >&5 |
579d8138 VS |
9077 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9079 | else |
9080 | if test -n "$AR"; then | |
9081 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9082 | else | |
5c0a20c3 VZ |
9083 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
9084 | for ac_dir in $PATH; do | |
579d8138 VS |
9085 | test -z "$ac_dir" && ac_dir=. |
9086 | if test -f $ac_dir/$ac_word; then | |
9087 | ac_cv_prog_AR="ar" | |
9088 | break | |
9089 | fi | |
9090 | done | |
9091 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9092 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9093 | fi | |
9094 | fi | |
579d8138 | 9095 | AR="$ac_cv_prog_AR" |
10f2d63a | 9096 | if test -n "$AR"; then |
579d8138 | 9097 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9098 | else |
579d8138 | 9099 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9100 | fi |
9101 | ||
579d8138 | 9102 | |
6054113a | 9103 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9104 | # so one script is as good as another. But avoid the broken or |
9105 | # incompatible versions: | |
9106 | # SysV /etc/install, /usr/sbin/install | |
9107 | # SunOS /usr/etc/install | |
9108 | # IRIX /sbin/install | |
9109 | # AIX /bin/install | |
10f2d63a VZ |
9110 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9111 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9112 | # ./install, which can be erroneously created by make from ./install.sh. | |
579d8138 | 9113 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
5c0a20c3 | 9114 | echo "configure:9115: checking for a BSD compatible install" >&5 |
10f2d63a | 9115 | if test -z "$INSTALL"; then |
579d8138 VS |
9116 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9117 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9118 | else |
5c0a20c3 | 9119 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
10f2d63a VZ |
9120 | for ac_dir in $PATH; do |
9121 | # Account for people who put trailing slashes in PATH elements. | |
579d8138 VS |
9122 | case "$ac_dir/" in |
9123 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
10f2d63a VZ |
9124 | *) |
9125 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5c0a20c3 | 9126 | for ac_prog in ginstall installbsd scoinst install; do |
579d8138 | 9127 | if test -f $ac_dir/$ac_prog; then |
10f2d63a | 9128 | if test $ac_prog = install && |
579d8138 | 9129 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
10f2d63a | 9130 | # AIX install. It has an incompatible calling convention. |
5c0a20c3 | 9131 | # OSF/1 installbsd also uses dspmsg, but is usable. |
10f2d63a VZ |
9132 | : |
9133 | else | |
9134 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9135 | break 2 | |
9136 | fi | |
9137 | fi | |
9138 | done | |
9139 | ;; | |
9140 | esac | |
9141 | done | |
579d8138 | 9142 | IFS="$ac_save_IFS" |
10f2d63a VZ |
9143 | |
9144 | fi | |
9145 | if test "${ac_cv_path_install+set}" = set; then | |
579d8138 | 9146 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9147 | else |
9148 | # As a last resort, use the slow shell script. We don't cache a | |
9149 | # path for INSTALL within a source directory, because that will | |
9150 | # break other packages using the cache if that directory is | |
9151 | # removed, or if the path is relative. | |
579d8138 | 9152 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9153 | fi |
9154 | fi | |
579d8138 | 9155 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9156 | |
9157 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9158 | # It thinks the first close brace ends the variable substitution. | |
9159 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9160 | ||
10f2d63a VZ |
9161 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9162 | ||
579d8138 | 9163 | |
1d1b75ac VZ |
9164 | case ${INSTALL} in |
9165 | /* ) # Absolute | |
9166 | ;; | |
3bd8fb5f | 9167 | *) |
1d1b75ac VZ |
9168 | INSTALL=`pwd`/${INSTALL} ;; |
9169 | esac | |
9170 | ||
579d8138 | 9171 | |
6054113a GD |
9172 | case "${host}" in |
9173 | ||
b5853384 | 9174 | powerpc-*-darwin* ) |
eb99ae0b GD |
9175 | INSTALL_PROGRAM="cp -fp" |
9176 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9177 | ;; |
9178 | *) | |
9179 | ;; | |
d6853540 | 9180 | esac |
698dcdb6 | 9181 | |
10f2d63a VZ |
9182 | # Extract the first word of "strip", so it can be a program name with args. |
9183 | set dummy strip; ac_word=$2 | |
579d8138 | 9184 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 9185 | echo "configure:9186: checking for $ac_word" >&5 |
579d8138 VS |
9186 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9188 | else |
9189 | if test -n "$STRIP"; then | |
9190 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9191 | else | |
5c0a20c3 VZ |
9192 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
9193 | for ac_dir in $PATH; do | |
579d8138 VS |
9194 | test -z "$ac_dir" && ac_dir=. |
9195 | if test -f $ac_dir/$ac_word; then | |
9196 | ac_cv_prog_STRIP="strip" | |
9197 | break | |
9198 | fi | |
9199 | done | |
9200 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9201 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9202 | fi | |
9203 | fi | |
579d8138 | 9204 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9205 | if test -n "$STRIP"; then |
579d8138 | 9206 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9207 | else |
579d8138 | 9208 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9209 | fi |
9210 | ||
328a083c | 9211 | |
579d8138 | 9212 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
5c0a20c3 | 9213 | echo "configure:9214: checking if make is GNU make" >&5 |
579d8138 VS |
9214 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9215 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9216 | else | |
9217 | ||
414eab6d | 9218 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9219 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9220 | wx_cv_prog_makeisgnu="yes" |
9221 | else | |
9222 | wx_cv_prog_makeisgnu="no" | |
9223 | fi | |
9224 | ||
9225 | fi | |
579d8138 VS |
9226 | |
9227 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9228 | |
9229 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9230 | IF_GNU_MAKE="" | |
9231 | else | |
9232 | IF_GNU_MAKE="#" | |
9233 | fi | |
9234 | ||
579d8138 VS |
9235 | |
9236 | ||
414eab6d | 9237 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
579d8138 | 9238 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
5c0a20c3 | 9239 | echo "configure:9240: checking if make supports VPATH" >&5 |
579d8138 VS |
9240 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9242 | else |
579d8138 | 9243 | |
10f2d63a VZ |
9244 | cat - << EOF > confMake |
9245 | check : file | |
9246 | cp \$? \$@ | |
9247 | cp \$? final_file | |
9248 | EOF | |
9249 | ||
9250 | if test ! -d sub ; then | |
9251 | mkdir sub | |
9252 | fi | |
9253 | echo dummy > sub/file | |
f6bcfd97 | 9254 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9255 | RESULT=$? |
9256 | rm -f sub/file check final_file confMake | |
9257 | rmdir sub | |
9258 | if test "$RESULT" = 0; then | |
04e7a216 | 9259 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9260 | else |
04e7a216 VZ |
9261 | wx_cv_prog_makevpath="no" |
9262 | fi | |
9263 | ||
9264 | fi | |
579d8138 VS |
9265 | |
9266 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9267 | |
9268 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
579d8138 | 9269 | { echo "configure: error: |
1e487827 VS |
9270 | You need a make-utility that is able to use the variable |
9271 | VPATH correctly. | |
9272 | If your version of make does not support VPATH correctly, | |
9273 | please install GNU-make (possibly as gmake), and start | |
9274 | configure with the following command: | |
9275 | export MAKE=gmake; ./configure for sh-type shells | |
9276 | setenv MAKE gmake; ./configure for csh-type shells | |
9277 | Also please do remember to use gmake in this case every time | |
9278 | you are trying to compile. | |
579d8138 VS |
9279 | " 1>&2; exit 1; } |
9280 | fi fi | |
10f2d63a VZ |
9281 | for ac_prog in 'bison -y' byacc |
9282 | do | |
579d8138 | 9283 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9284 | set dummy $ac_prog; ac_word=$2 |
579d8138 | 9285 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 9286 | echo "configure:9287: checking for $ac_word" >&5 |
579d8138 VS |
9287 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9288 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9289 | else |
9290 | if test -n "$YACC"; then | |
9291 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9292 | else | |
5c0a20c3 VZ |
9293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
9294 | for ac_dir in $PATH; do | |
579d8138 VS |
9295 | test -z "$ac_dir" && ac_dir=. |
9296 | if test -f $ac_dir/$ac_word; then | |
9297 | ac_cv_prog_YACC="$ac_prog" | |
9298 | break | |
9299 | fi | |
9300 | done | |
9301 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9302 | fi |
9303 | fi | |
579d8138 | 9304 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9305 | if test -n "$YACC"; then |
579d8138 | 9306 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9307 | else |
579d8138 | 9308 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9309 | fi |
9310 | ||
579d8138 | 9311 | test -n "$YACC" && break |
10f2d63a VZ |
9312 | done |
9313 | test -n "$YACC" || YACC="yacc" | |
9314 | ||
579d8138 VS |
9315 | |
9316 | # Extract the first word of "flex", so it can be a program name with args. | |
9317 | set dummy flex; ac_word=$2 | |
9318 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5c0a20c3 | 9319 | echo "configure:9320: checking for $ac_word" >&5 |
579d8138 VS |
9320 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9321 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9322 | else |
9323 | if test -n "$LEX"; then | |
9324 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9325 | else | |
5c0a20c3 VZ |
9326 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
9327 | for ac_dir in $PATH; do | |
579d8138 VS |
9328 | test -z "$ac_dir" && ac_dir=. |
9329 | if test -f $ac_dir/$ac_word; then | |
9330 | ac_cv_prog_LEX="flex" | |
9331 | break | |
9332 | fi | |
9333 | done | |
9334 | IFS="$ac_save_ifs" | |
9335 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9336 | fi |
9337 | fi | |
579d8138 | 9338 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9339 | if test -n "$LEX"; then |
579d8138 | 9340 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9341 | else |
579d8138 | 9342 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9343 | fi |
9344 | ||
9345 | if test -z "$LEXLIB" | |
9346 | then | |
579d8138 VS |
9347 | case "$LEX" in |
9348 | flex*) ac_lib=fl ;; | |
9349 | *) ac_lib=l ;; | |
9350 | esac | |
9351 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
5c0a20c3 | 9352 | echo "configure:9353: checking for yywrap in -l$ac_lib" >&5 |
579d8138 VS |
9353 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9354 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9356 | else | |
9357 | ac_save_LIBS="$LIBS" | |
9358 | LIBS="-l$ac_lib $LIBS" | |
9359 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9360 | #line 9361 "configure" |
10f2d63a VZ |
9361 | #include "confdefs.h" |
9362 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9363 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
9364 | builtin and then its argument prototype would still apply. */ |
9365 | char yywrap(); | |
10f2d63a | 9366 | |
579d8138 VS |
9367 | int main() { |
9368 | yywrap() | |
9369 | ; return 0; } | |
9370 | EOF | |
5c0a20c3 | 9371 | if { (eval echo configure:9372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
9372 | rm -rf conftest* |
9373 | eval "ac_cv_lib_$ac_lib_var=yes" | |
10f2d63a | 9374 | else |
579d8138 VS |
9375 | echo "configure: failed program was:" >&5 |
9376 | cat conftest.$ac_ext >&5 | |
9377 | rm -rf conftest* | |
9378 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9379 | fi |
579d8138 VS |
9380 | rm -f conftest* |
9381 | LIBS="$ac_save_LIBS" | |
9382 | ||
10f2d63a | 9383 | fi |
579d8138 VS |
9384 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9385 | echo "$ac_t""yes" 1>&6 | |
9386 | LEXLIB="-l$ac_lib" | |
9387 | else | |
9388 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
9389 | fi |
9390 | ||
9391 | fi | |
9392 | ||
9393 | ||
579d8138 | 9394 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
5c0a20c3 | 9395 | echo "configure:9396: checking whether ln -s works" >&5 |
579d8138 VS |
9396 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9398 | else |
579d8138 VS |
9399 | rm -f conftestdata |
9400 | if ln -s X conftestdata 2>/dev/null | |
9401 | then | |
9402 | rm -f conftestdata | |
9403 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9404 | else |
579d8138 | 9405 | ac_cv_prog_LN_S=ln |
10f2d63a VZ |
9406 | fi |
9407 | fi | |
579d8138 VS |
9408 | LN_S="$ac_cv_prog_LN_S" |
9409 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9410 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9411 | else |
579d8138 | 9412 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9413 | fi |
9414 | ||
9415 | ||
9416 | ||
21d1c967 | 9417 | if test "$wxUSE_MAC" != 1; then |
579d8138 | 9418 | for ac_hdr in strings.h |
21d1c967 | 9419 | do |
579d8138 VS |
9420 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9421 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9422 | echo "configure:9423: checking for $ac_hdr" >&5 |
579d8138 VS |
9423 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9424 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9425 | else | |
9426 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9427 | #line 9428 "configure" |
19bc6aad | 9428 | #include "confdefs.h" |
579d8138 VS |
9429 | #include <$ac_hdr> |
9430 | EOF | |
9431 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9432 | { (eval echo configure:9433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9433 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9434 | if test -z "$ac_err"; then |
9435 | rm -rf conftest* | |
9436 | eval "ac_cv_header_$ac_safe=yes" | |
19bc6aad | 9437 | else |
579d8138 VS |
9438 | echo "$ac_err" >&5 |
9439 | echo "configure: failed program was:" >&5 | |
19bc6aad | 9440 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9441 | rm -rf conftest* |
9442 | eval "ac_cv_header_$ac_safe=no" | |
19bc6aad | 9443 | fi |
579d8138 | 9444 | rm -f conftest* |
19bc6aad | 9445 | fi |
579d8138 VS |
9446 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9447 | echo "$ac_t""yes" 1>&6 | |
9448 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9449 | cat >> confdefs.h <<EOF | |
9450 | #define $ac_tr_hdr 1 | |
19bc6aad | 9451 | EOF |
579d8138 VS |
9452 | |
9453 | else | |
9454 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9455 | fi |
9456 | done | |
19bc6aad | 9457 | |
19bc6aad VZ |
9458 | fi |
9459 | ||
579d8138 | 9460 | for ac_hdr in stdlib.h |
21d1c967 | 9461 | do |
579d8138 VS |
9462 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9463 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9464 | echo "configure:9465: checking for $ac_hdr" >&5 |
579d8138 VS |
9465 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9467 | else | |
9468 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9469 | #line 9470 "configure" |
18dbb1f6 | 9470 | #include "confdefs.h" |
579d8138 VS |
9471 | #include <$ac_hdr> |
9472 | EOF | |
9473 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9474 | { (eval echo configure:9475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9475 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9476 | if test -z "$ac_err"; then |
9477 | rm -rf conftest* | |
9478 | eval "ac_cv_header_$ac_safe=yes" | |
18dbb1f6 | 9479 | else |
579d8138 VS |
9480 | echo "$ac_err" >&5 |
9481 | echo "configure: failed program was:" >&5 | |
18dbb1f6 | 9482 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9483 | rm -rf conftest* |
9484 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9485 | fi |
579d8138 | 9486 | rm -f conftest* |
90dd450c | 9487 | fi |
579d8138 VS |
9488 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9489 | echo "$ac_t""yes" 1>&6 | |
9490 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9491 | cat >> confdefs.h <<EOF | |
9492 | #define $ac_tr_hdr 1 | |
90dd450c | 9493 | EOF |
579d8138 VS |
9494 | |
9495 | else | |
9496 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9497 | fi |
9498 | done | |
90dd450c | 9499 | |
579d8138 | 9500 | for ac_hdr in malloc.h |
21d1c967 | 9501 | do |
579d8138 VS |
9502 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9503 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9504 | echo "configure:9505: checking for $ac_hdr" >&5 |
579d8138 VS |
9505 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9507 | else | |
9508 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9509 | #line 9510 "configure" |
90dd450c | 9510 | #include "confdefs.h" |
579d8138 VS |
9511 | #include <$ac_hdr> |
9512 | EOF | |
9513 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9514 | { (eval echo configure:9515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9515 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9516 | if test -z "$ac_err"; then |
9517 | rm -rf conftest* | |
9518 | eval "ac_cv_header_$ac_safe=yes" | |
18dbb1f6 | 9519 | else |
579d8138 VS |
9520 | echo "$ac_err" >&5 |
9521 | echo "configure: failed program was:" >&5 | |
18dbb1f6 | 9522 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9523 | rm -rf conftest* |
9524 | eval "ac_cv_header_$ac_safe=no" | |
18dbb1f6 | 9525 | fi |
579d8138 | 9526 | rm -f conftest* |
18dbb1f6 | 9527 | fi |
579d8138 VS |
9528 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9529 | echo "$ac_t""yes" 1>&6 | |
9530 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9531 | cat >> confdefs.h <<EOF | |
9532 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9533 | EOF |
579d8138 VS |
9534 | |
9535 | else | |
9536 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9537 | fi |
9538 | done | |
dad6c0ea | 9539 | |
579d8138 | 9540 | for ac_hdr in unistd.h |
21d1c967 | 9541 | do |
579d8138 VS |
9542 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9543 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9544 | echo "configure:9545: checking for $ac_hdr" >&5 |
579d8138 VS |
9545 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9546 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9547 | else | |
9548 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9549 | #line 9550 "configure" |
3a922bb4 | 9550 | #include "confdefs.h" |
579d8138 VS |
9551 | #include <$ac_hdr> |
9552 | EOF | |
9553 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9554 | { (eval echo configure:9555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9555 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9556 | if test -z "$ac_err"; then |
9557 | rm -rf conftest* | |
9558 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 9559 | else |
579d8138 VS |
9560 | echo "$ac_err" >&5 |
9561 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 9562 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9563 | rm -rf conftest* |
9564 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9565 | fi |
579d8138 | 9566 | rm -f conftest* |
90dd450c | 9567 | fi |
579d8138 VS |
9568 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9569 | echo "$ac_t""yes" 1>&6 | |
9570 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9571 | cat >> confdefs.h <<EOF | |
9572 | #define $ac_tr_hdr 1 | |
90dd450c | 9573 | EOF |
579d8138 VS |
9574 | |
9575 | else | |
9576 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9577 | fi |
9578 | done | |
90dd450c | 9579 | |
579d8138 | 9580 | for ac_hdr in wchar.h |
21d1c967 | 9581 | do |
579d8138 VS |
9582 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9583 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9584 | echo "configure:9585: checking for $ac_hdr" >&5 |
579d8138 VS |
9585 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9586 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9587 | else | |
9588 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9589 | #line 9590 "configure" |
4f14bcd8 | 9590 | #include "confdefs.h" |
579d8138 VS |
9591 | #include <$ac_hdr> |
9592 | EOF | |
9593 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9594 | { (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9595 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9596 | if test -z "$ac_err"; then |
9597 | rm -rf conftest* | |
9598 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 9599 | else |
579d8138 VS |
9600 | echo "$ac_err" >&5 |
9601 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 9602 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9603 | rm -rf conftest* |
9604 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9605 | fi |
579d8138 | 9606 | rm -f conftest* |
4f14bcd8 | 9607 | fi |
579d8138 VS |
9608 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9609 | echo "$ac_t""yes" 1>&6 | |
9610 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9611 | cat >> confdefs.h <<EOF | |
9612 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9613 | EOF |
579d8138 VS |
9614 | |
9615 | else | |
9616 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9617 | fi |
9618 | done | |
4f14bcd8 | 9619 | |
328a083c | 9620 | |
579d8138 VS |
9621 | if test "$ac_cv_header_wchar_h" != "yes"; then |
9622 | for ac_hdr in wcstr.h | |
21d1c967 | 9623 | do |
579d8138 VS |
9624 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9625 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9626 | echo "configure:9627: checking for $ac_hdr" >&5 |
579d8138 VS |
9627 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9629 | else | |
9630 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9631 | #line 9632 "configure" |
d4158b5d | 9632 | #include "confdefs.h" |
579d8138 VS |
9633 | #include <$ac_hdr> |
9634 | EOF | |
9635 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9636 | { (eval echo configure:9637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9637 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9638 | if test -z "$ac_err"; then |
9639 | rm -rf conftest* | |
9640 | eval "ac_cv_header_$ac_safe=yes" | |
d4158b5d | 9641 | else |
579d8138 VS |
9642 | echo "$ac_err" >&5 |
9643 | echo "configure: failed program was:" >&5 | |
d4158b5d | 9644 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9645 | rm -rf conftest* |
9646 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 9647 | fi |
579d8138 | 9648 | rm -f conftest* |
21d1c967 | 9649 | fi |
579d8138 VS |
9650 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9651 | echo "$ac_t""yes" 1>&6 | |
9652 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9653 | cat >> confdefs.h <<EOF | |
9654 | #define $ac_tr_hdr 1 | |
21d1c967 | 9655 | EOF |
579d8138 VS |
9656 | |
9657 | else | |
9658 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 9659 | fi |
21d1c967 | 9660 | done |
f6bcfd97 | 9661 | |
90dd450c | 9662 | fi |
90dd450c | 9663 | |
579d8138 VS |
9664 | |
9665 | for ac_hdr in fnmatch.h | |
21d1c967 | 9666 | do |
579d8138 VS |
9667 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9668 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9669 | echo "configure:9670: checking for $ac_hdr" >&5 |
579d8138 VS |
9670 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9672 | else | |
9673 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9674 | #line 9675 "configure" |
90dd450c | 9675 | #include "confdefs.h" |
579d8138 VS |
9676 | #include <$ac_hdr> |
9677 | EOF | |
9678 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9679 | { (eval echo configure:9680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9680 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9681 | if test -z "$ac_err"; then |
9682 | rm -rf conftest* | |
9683 | eval "ac_cv_header_$ac_safe=yes" | |
3a922bb4 | 9684 | else |
579d8138 VS |
9685 | echo "$ac_err" >&5 |
9686 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 9687 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9688 | rm -rf conftest* |
9689 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9690 | fi |
579d8138 | 9691 | rm -f conftest* |
4f14bcd8 | 9692 | fi |
579d8138 VS |
9693 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9694 | echo "$ac_t""yes" 1>&6 | |
9695 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9696 | cat >> confdefs.h <<EOF | |
9697 | #define $ac_tr_hdr 1 | |
90dd450c | 9698 | EOF |
579d8138 VS |
9699 | |
9700 | else | |
9701 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9702 | fi |
9703 | done | |
90dd450c | 9704 | |
328a083c | 9705 | |
579d8138 VS |
9706 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
9707 | for ac_func in fnmatch | |
21d1c967 | 9708 | do |
579d8138 | 9709 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 9710 | echo "configure:9711: checking for $ac_func" >&5 |
579d8138 VS |
9711 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
9712 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9713 | else | |
9714 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9715 | #line 9716 "configure" |
90dd450c | 9716 | #include "confdefs.h" |
21d1c967 | 9717 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 9718 | which can conflict with char $ac_func(); below. */ |
21d1c967 GD |
9719 | #include <assert.h> |
9720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9721 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
9722 | builtin and then its argument prototype would still apply. */ |
9723 | char $ac_func(); | |
9724 | ||
9725 | int main() { | |
21d1c967 GD |
9726 | |
9727 | /* The GNU C library defines this for functions which it implements | |
9728 | to always fail with ENOSYS. Some functions are actually named | |
9729 | something starting with __ and the normal name is an alias. */ | |
9730 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9731 | choke me | |
9732 | #else | |
579d8138 | 9733 | $ac_func(); |
21d1c967 GD |
9734 | #endif |
9735 | ||
579d8138 | 9736 | ; return 0; } |
90dd450c | 9737 | EOF |
5c0a20c3 | 9738 | if { (eval echo configure:9739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
9739 | rm -rf conftest* |
9740 | eval "ac_cv_func_$ac_func=yes" | |
9741 | else | |
9742 | echo "configure: failed program was:" >&5 | |
9743 | cat conftest.$ac_ext >&5 | |
9744 | rm -rf conftest* | |
9745 | eval "ac_cv_func_$ac_func=no" | |
9746 | fi | |
9747 | rm -f conftest* | |
9748 | fi | |
32832908 | 9749 | |
579d8138 VS |
9750 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
9751 | echo "$ac_t""yes" 1>&6 | |
9752 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
9753 | cat >> confdefs.h <<EOF | |
9754 | #define $ac_tr_func 1 | |
9755 | EOF | |
9756 | ||
9757 | else | |
9758 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9759 | fi |
9760 | done | |
90dd450c | 9761 | |
21d1c967 | 9762 | fi |
90dd450c | 9763 | |
579d8138 | 9764 | for ac_hdr in langinfo.h |
21d1c967 | 9765 | do |
579d8138 VS |
9766 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9767 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9768 | echo "configure:9769: checking for $ac_hdr" >&5 |
579d8138 VS |
9769 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9770 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9771 | else | |
9772 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9773 | #line 9774 "configure" |
90dd450c | 9774 | #include "confdefs.h" |
579d8138 VS |
9775 | #include <$ac_hdr> |
9776 | EOF | |
9777 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9778 | { (eval echo configure:9779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9779 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9780 | if test -z "$ac_err"; then |
9781 | rm -rf conftest* | |
9782 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 9783 | else |
579d8138 VS |
9784 | echo "$ac_err" >&5 |
9785 | echo "configure: failed program was:" >&5 | |
90dd450c | 9786 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9787 | rm -rf conftest* |
9788 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 9789 | fi |
579d8138 | 9790 | rm -f conftest* |
4f14bcd8 | 9791 | fi |
579d8138 VS |
9792 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9793 | echo "$ac_t""yes" 1>&6 | |
9794 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9795 | cat >> confdefs.h <<EOF | |
9796 | #define $ac_tr_hdr 1 | |
90dd450c | 9797 | EOF |
579d8138 VS |
9798 | |
9799 | else | |
9800 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9801 | fi |
9802 | done | |
3a922bb4 | 9803 | |
579d8138 | 9804 | |
21d1c967 GD |
9805 | if test "$wxUSE_GUI" = "yes"; then |
9806 | if test "$wxUSE_UNIX" = "yes"; then | |
579d8138 | 9807 | for ac_hdr in X11/XKBlib.h |
21d1c967 | 9808 | do |
579d8138 VS |
9809 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
9810 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 9811 | echo "configure:9812: checking for $ac_hdr" >&5 |
579d8138 VS |
9812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9814 | else | |
9815 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 9816 | #line 9817 "configure" |
90dd450c | 9817 | #include "confdefs.h" |
579d8138 VS |
9818 | #include <$ac_hdr> |
9819 | EOF | |
9820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
9821 | { (eval echo configure:9822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
9822 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
9823 | if test -z "$ac_err"; then |
9824 | rm -rf conftest* | |
9825 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 9826 | else |
579d8138 VS |
9827 | echo "$ac_err" >&5 |
9828 | echo "configure: failed program was:" >&5 | |
90dd450c | 9829 | cat conftest.$ac_ext >&5 |
579d8138 VS |
9830 | rm -rf conftest* |
9831 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9832 | fi |
579d8138 | 9833 | rm -f conftest* |
90dd450c | 9834 | fi |
579d8138 VS |
9835 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9836 | echo "$ac_t""yes" 1>&6 | |
9837 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9838 | cat >> confdefs.h <<EOF | |
9839 | #define $ac_tr_hdr 1 | |
4f14bcd8 | 9840 | EOF |
579d8138 VS |
9841 | |
9842 | else | |
9843 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
9844 | fi |
9845 | done | |
10f2d63a | 9846 | |
21d1c967 | 9847 | fi |
90dd450c | 9848 | fi |
81809c07 | 9849 | |
579d8138 VS |
9850 | |
9851 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
5c0a20c3 | 9852 | echo "configure:9853: checking for working const" >&5 |
579d8138 VS |
9853 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
9854 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 9855 | else |
579d8138 | 9856 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 9857 | #line 9858 "configure" |
4f14bcd8 | 9858 | #include "confdefs.h" |
579d8138 VS |
9859 | |
9860 | int main() { | |
9861 | ||
9862 | /* Ultrix mips cc rejects this. */ | |
9863 | typedef int charset[2]; const charset x; | |
9864 | /* SunOS 4.1.1 cc rejects this. */ | |
9865 | char const *const *ccp; | |
9866 | char **p; | |
9867 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
9868 | struct point {int x, y;}; | |
9869 | static struct point const zero = {0,0}; | |
9870 | /* AIX XL C 1.02.0.0 rejects this. | |
9871 | It does not let you subtract one const X* pointer from another in an arm | |
9872 | of an if-expression whose if-part is not a constant expression */ | |
9873 | const char *g = "string"; | |
9874 | ccp = &g + (g ? g-g : 0); | |
9875 | /* HPUX 7.0 cc rejects these. */ | |
9876 | ++ccp; | |
9877 | p = (char**) ccp; | |
9878 | ccp = (char const *const *) p; | |
9879 | { /* SCO 3.2v4 cc rejects this. */ | |
9880 | char *t; | |
9881 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
9882 | ||
9883 | *t++ = 0; | |
21d1c967 | 9884 | } |
579d8138 VS |
9885 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
9886 | int x[] = {25, 17}; | |
9887 | const int *foo = &x[0]; | |
9888 | ++foo; | |
21d1c967 | 9889 | } |
579d8138 VS |
9890 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
9891 | typedef const int *iptr; | |
9892 | iptr p = 0; | |
9893 | ++p; | |
21d1c967 | 9894 | } |
579d8138 VS |
9895 | { /* AIX XL C 1.02.0.0 rejects this saying |
9896 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
9897 | struct s { int j; const int *ap[3]; }; | |
9898 | struct s *b; b->j = 5; | |
9899 | } | |
9900 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
9901 | const int foo = 10; | |
328a083c | 9902 | } |
579d8138 VS |
9903 | |
9904 | ; return 0; } | |
9905 | EOF | |
5c0a20c3 | 9906 | if { (eval echo configure:9907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 9907 | rm -rf conftest* |
21d1c967 | 9908 | ac_cv_c_const=yes |
6f72b082 | 9909 | else |
579d8138 VS |
9910 | echo "configure: failed program was:" >&5 |
9911 | cat conftest.$ac_ext >&5 | |
9912 | rm -rf conftest* | |
9913 | ac_cv_c_const=no | |
4f14bcd8 | 9914 | fi |
579d8138 | 9915 | rm -f conftest* |
698dcdb6 | 9916 | fi |
328a083c | 9917 | |
579d8138 VS |
9918 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
9919 | if test $ac_cv_c_const = no; then | |
9920 | cat >> confdefs.h <<\EOF | |
9921 | #define const | |
90dd450c VZ |
9922 | EOF |
9923 | ||
21d1c967 | 9924 | fi |
90dd450c | 9925 | |
579d8138 | 9926 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
5c0a20c3 | 9927 | echo "configure:9928: checking for inline" >&5 |
579d8138 VS |
9928 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
9929 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6f72b082 | 9930 | else |
21d1c967 GD |
9931 | ac_cv_c_inline=no |
9932 | for ac_kw in inline __inline__ __inline; do | |
579d8138 | 9933 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 9934 | #line 9935 "configure" |
4f14bcd8 | 9935 | #include "confdefs.h" |
90dd450c | 9936 | |
579d8138 VS |
9937 | int main() { |
9938 | } $ac_kw foo() { | |
9939 | ; return 0; } | |
9940 | EOF | |
5c0a20c3 | 9941 | if { (eval echo configure:9942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 9942 | rm -rf conftest* |
21d1c967 | 9943 | ac_cv_c_inline=$ac_kw; break |
6f72b082 | 9944 | else |
579d8138 VS |
9945 | echo "configure: failed program was:" >&5 |
9946 | cat conftest.$ac_ext >&5 | |
698dcdb6 | 9947 | fi |
579d8138 | 9948 | rm -f conftest* |
21d1c967 | 9949 | done |
4f14bcd8 | 9950 | |
21d1c967 | 9951 | fi |
579d8138 VS |
9952 | |
9953 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
9954 | case "$ac_cv_c_inline" in | |
21d1c967 | 9955 | inline | yes) ;; |
579d8138 VS |
9956 | no) cat >> confdefs.h <<\EOF |
9957 | #define inline | |
90dd450c | 9958 | EOF |
21d1c967 | 9959 | ;; |
579d8138 | 9960 | *) cat >> confdefs.h <<EOF |
21d1c967 | 9961 | #define inline $ac_cv_c_inline |
4f14bcd8 | 9962 | EOF |
21d1c967 GD |
9963 | ;; |
9964 | esac | |
4f14bcd8 | 9965 | |
328a083c | 9966 | |
579d8138 | 9967 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
5c0a20c3 | 9968 | echo "configure:9969: checking size of char" >&5 |
579d8138 VS |
9969 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
9970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 9971 | else |
579d8138 VS |
9972 | if test "$cross_compiling" = yes; then |
9973 | ac_cv_sizeof_char=1 | |
328a083c | 9974 | else |
579d8138 | 9975 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 9976 | #line 9977 "configure" |
328a083c | 9977 | #include "confdefs.h" |
579d8138 VS |
9978 | #include <stdio.h> |
9979 | main() | |
9980 | { | |
9981 | FILE *f=fopen("conftestval", "w"); | |
9982 | if (!f) exit(1); | |
9983 | fprintf(f, "%d\n", sizeof(char)); | |
9984 | exit(0); | |
9985 | } | |
9986 | EOF | |
5c0a20c3 | 9987 | if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 VS |
9988 | then |
9989 | ac_cv_sizeof_char=`cat conftestval` | |
328a083c | 9990 | else |
579d8138 VS |
9991 | echo "configure: failed program was:" >&5 |
9992 | cat conftest.$ac_ext >&5 | |
9993 | rm -fr conftest* | |
9994 | ac_cv_sizeof_char=0 | |
9995 | fi | |
9996 | rm -fr conftest* | |
328a083c | 9997 | fi |
328a083c RR |
9998 | |
9999 | fi | |
579d8138 VS |
10000 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10001 | cat >> confdefs.h <<EOF | |
10002 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10003 | EOF | |
328a083c | 10004 | |
328a083c | 10005 | |
579d8138 | 10006 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
5c0a20c3 | 10007 | echo "configure:10008: checking size of short" >&5 |
579d8138 VS |
10008 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10009 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 10010 | else |
21d1c967 | 10011 | if test "$cross_compiling" = yes; then |
579d8138 | 10012 | ac_cv_sizeof_short=2 |
21d1c967 | 10013 | else |
579d8138 | 10014 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10015 | #line 10016 "configure" |
21d1c967 | 10016 | #include "confdefs.h" |
579d8138 VS |
10017 | #include <stdio.h> |
10018 | main() | |
21d1c967 | 10019 | { |
579d8138 VS |
10020 | FILE *f=fopen("conftestval", "w"); |
10021 | if (!f) exit(1); | |
10022 | fprintf(f, "%d\n", sizeof(short)); | |
10023 | exit(0); | |
21d1c967 | 10024 | } |
579d8138 | 10025 | EOF |
5c0a20c3 | 10026 | if { (eval echo configure:10027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 VS |
10027 | then |
10028 | ac_cv_sizeof_short=`cat conftestval` | |
21d1c967 | 10029 | else |
579d8138 VS |
10030 | echo "configure: failed program was:" >&5 |
10031 | cat conftest.$ac_ext >&5 | |
10032 | rm -fr conftest* | |
10033 | ac_cv_sizeof_short=0 | |
21d1c967 | 10034 | fi |
579d8138 | 10035 | rm -fr conftest* |
21d1c967 | 10036 | fi |
4f14bcd8 | 10037 | |
4f14bcd8 | 10038 | fi |
579d8138 VS |
10039 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10040 | cat >> confdefs.h <<EOF | |
10041 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
21d1c967 | 10042 | EOF |
4f14bcd8 GD |
10043 | |
10044 | ||
579d8138 | 10045 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
5c0a20c3 | 10046 | echo "configure:10047: checking size of void *" >&5 |
579d8138 VS |
10047 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 10049 | else |
328a083c | 10050 | if test "$cross_compiling" = yes; then |
579d8138 | 10051 | ac_cv_sizeof_void_p=4 |
328a083c | 10052 | else |
579d8138 | 10053 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10054 | #line 10055 "configure" |
328a083c | 10055 | #include "confdefs.h" |
579d8138 VS |
10056 | #include <stdio.h> |
10057 | main() | |
21d1c967 | 10058 | { |
579d8138 VS |
10059 | FILE *f=fopen("conftestval", "w"); |
10060 | if (!f) exit(1); | |
10061 | fprintf(f, "%d\n", sizeof(void *)); | |
10062 | exit(0); | |
21d1c967 | 10063 | } |
4f14bcd8 | 10064 | EOF |
5c0a20c3 | 10065 | if { (eval echo configure:10066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 VS |
10066 | then |
10067 | ac_cv_sizeof_void_p=`cat conftestval` | |
328a083c | 10068 | else |
579d8138 VS |
10069 | echo "configure: failed program was:" >&5 |
10070 | cat conftest.$ac_ext >&5 | |
10071 | rm -fr conftest* | |
10072 | ac_cv_sizeof_void_p=0 | |
4f14bcd8 | 10073 | fi |
579d8138 | 10074 | rm -fr conftest* |
328a083c | 10075 | fi |
4f14bcd8 | 10076 | |
328a083c | 10077 | fi |
579d8138 VS |
10078 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10079 | cat >> confdefs.h <<EOF | |
21d1c967 | 10080 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
90dd450c VZ |
10081 | EOF |
10082 | ||
579d8138 VS |
10083 | |
10084 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | |
5c0a20c3 | 10085 | echo "configure:10086: checking size of int" >&5 |
579d8138 VS |
10086 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10087 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 10088 | else |
328a083c | 10089 | if test "$cross_compiling" = yes; then |
579d8138 | 10090 | ac_cv_sizeof_int=4 |
328a083c | 10091 | else |
579d8138 | 10092 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10093 | #line 10094 "configure" |
328a083c | 10094 | #include "confdefs.h" |
579d8138 VS |
10095 | #include <stdio.h> |
10096 | main() | |
328a083c | 10097 | { |
579d8138 VS |
10098 | FILE *f=fopen("conftestval", "w"); |
10099 | if (!f) exit(1); | |
10100 | fprintf(f, "%d\n", sizeof(int)); | |
10101 | exit(0); | |
328a083c | 10102 | } |
579d8138 | 10103 | EOF |
5c0a20c3 | 10104 | if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 VS |
10105 | then |
10106 | ac_cv_sizeof_int=`cat conftestval` | |
328a083c | 10107 | else |
579d8138 VS |
10108 | echo "configure: failed program was:" >&5 |
10109 | cat conftest.$ac_ext >&5 | |
10110 | rm -fr conftest* | |
328a083c | 10111 | ac_cv_sizeof_int=0 |
4f14bcd8 | 10112 | fi |
579d8138 | 10113 | rm -fr conftest* |
21d1c967 | 10114 | fi |
579d8138 VS |
10115 | |
10116 | fi | |
10117 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | |
10118 | cat >> confdefs.h <<EOF | |
21d1c967 | 10119 | #define SIZEOF_INT $ac_cv_sizeof_int |
90dd450c VZ |
10120 | EOF |
10121 | ||
579d8138 VS |
10122 | |
10123 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | |
5c0a20c3 | 10124 | echo "configure:10125: checking size of long" >&5 |
579d8138 VS |
10125 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10126 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 10127 | else |
328a083c | 10128 | if test "$cross_compiling" = yes; then |
579d8138 | 10129 | ac_cv_sizeof_long=4 |
328a083c | 10130 | else |
579d8138 | 10131 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10132 | #line 10133 "configure" |
328a083c | 10133 | #include "confdefs.h" |
579d8138 VS |
10134 | #include <stdio.h> |
10135 | main() | |
328a083c | 10136 | { |
579d8138 VS |
10137 | FILE *f=fopen("conftestval", "w"); |
10138 | if (!f) exit(1); | |
10139 | fprintf(f, "%d\n", sizeof(long)); | |
10140 | exit(0); | |
328a083c | 10141 | } |
579d8138 | 10142 | EOF |
5c0a20c3 | 10143 | if { (eval echo configure:10144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 VS |
10144 | then |
10145 | ac_cv_sizeof_long=`cat conftestval` | |
328a083c | 10146 | else |
579d8138 VS |
10147 | echo "configure: failed program was:" >&5 |
10148 | cat conftest.$ac_ext >&5 | |
10149 | rm -fr conftest* | |
328a083c | 10150 | ac_cv_sizeof_long=0 |
90dd450c | 10151 | fi |
579d8138 VS |
10152 | rm -fr conftest* |
10153 | fi | |
10154 | ||
21d1c967 | 10155 | fi |
579d8138 VS |
10156 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10157 | cat >> confdefs.h <<EOF | |
21d1c967 | 10158 | #define SIZEOF_LONG $ac_cv_sizeof_long |
90dd450c | 10159 | EOF |
4f14bcd8 | 10160 | |
579d8138 VS |
10161 | |
10162 | ||
21d1c967 GD |
10163 | case "${host}" in |
10164 | arm-*-linux* ) | |
579d8138 | 10165 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
5c0a20c3 | 10166 | echo "configure:10167: checking size of long long" >&5 |
579d8138 VS |
10167 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
10169 | else |
10170 | if test "$cross_compiling" = yes; then | |
579d8138 | 10171 | ac_cv_sizeof_long_long=8 |
21d1c967 | 10172 | else |
579d8138 | 10173 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10174 | #line 10175 "configure" |
21d1c967 | 10175 | #include "confdefs.h" |
579d8138 VS |
10176 | #include <stdio.h> |
10177 | main() | |
21d1c967 | 10178 | { |
579d8138 VS |
10179 | FILE *f=fopen("conftestval", "w"); |
10180 | if (!f) exit(1); | |
10181 | fprintf(f, "%d\n", sizeof(long long)); | |
10182 | exit(0); | |
21d1c967 | 10183 | } |
579d8138 | 10184 | EOF |
5c0a20c3 | 10185 | if { (eval echo configure:10186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 VS |
10186 | then |
10187 | ac_cv_sizeof_long_long=`cat conftestval` | |
328a083c | 10188 | else |
579d8138 VS |
10189 | echo "configure: failed program was:" >&5 |
10190 | cat conftest.$ac_ext >&5 | |
10191 | rm -fr conftest* | |
328a083c RR |
10192 | ac_cv_sizeof_long_long=0 |
10193 | fi | |
579d8138 VS |
10194 | rm -fr conftest* |
10195 | fi | |
10196 | ||
328a083c | 10197 | fi |
579d8138 VS |
10198 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10199 | cat >> confdefs.h <<EOF | |
21d1c967 GD |
10200 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
10201 | EOF | |
90dd450c | 10202 | |
579d8138 | 10203 | |
21d1c967 GD |
10204 | ;; |
10205 | * ) | |
579d8138 | 10206 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
5c0a20c3 | 10207 | echo "configure:10208: checking size of long long" >&5 |
579d8138 VS |
10208 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10209 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 10210 | else |
328a083c | 10211 | if test "$cross_compiling" = yes; then |
579d8138 | 10212 | ac_cv_sizeof_long_long=0 |
328a083c | 10213 | else |
579d8138 | 10214 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10215 | #line 10216 "configure" |
328a083c | 10216 | #include "confdefs.h" |
579d8138 VS |
10217 | #include <stdio.h> |
10218 | main() | |
328a083c | 10219 | { |
579d8138 VS |
10220 | FILE *f=fopen("conftestval", "w"); |
10221 | if (!f) exit(1); | |
10222 | fprintf(f, "%d\n", sizeof(long long)); | |
10223 | exit(0); | |
328a083c | 10224 | } |
579d8138 | 10225 | EOF |
5c0a20c3 | 10226 | if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 VS |
10227 | then |
10228 | ac_cv_sizeof_long_long=`cat conftestval` | |
328a083c | 10229 | else |
579d8138 VS |
10230 | echo "configure: failed program was:" >&5 |
10231 | cat conftest.$ac_ext >&5 | |
10232 | rm -fr conftest* | |
328a083c | 10233 | ac_cv_sizeof_long_long=0 |
4f14bcd8 | 10234 | fi |
579d8138 VS |
10235 | rm -fr conftest* |
10236 | fi | |
10237 | ||
90dd450c | 10238 | fi |
579d8138 VS |
10239 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10240 | cat >> confdefs.h <<EOF | |
21d1c967 | 10241 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
90dd450c | 10242 | EOF |
9e691f46 | 10243 | |
579d8138 | 10244 | |
21d1c967 GD |
10245 | esac |
10246 | ||
579d8138 | 10247 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
5c0a20c3 | 10248 | echo "configure:10249: checking size of wchar_t" >&5 |
579d8138 VS |
10249 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10250 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10251 | else |
579d8138 | 10252 | |
21d1c967 GD |
10253 | if test "$cross_compiling" = yes; then |
10254 | wx_cv_sizeof_wchar_t=4 | |
579d8138 | 10255 | |
6f72b082 | 10256 | else |
579d8138 | 10257 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10258 | #line 10259 "configure" |
6f72b082 | 10259 | #include "confdefs.h" |
21d1c967 GD |
10260 | |
10261 | #ifdef HAVE_WCHAR_H | |
10262 | # ifdef __CYGWIN__ | |
10263 | # include <stddef.h> | |
10264 | # endif | |
10265 | # include <wchar.h> | |
10266 | #endif | |
10267 | #ifdef HAVE_STDLIB_H | |
10268 | # include <stdlib.h> | |
10269 | #endif | |
10270 | #include <stdio.h> | |
10271 | int main() | |
10272 | { | |
10273 | FILE *f=fopen("conftestval", "w"); | |
10274 | if (!f) exit(1); | |
10275 | fprintf(f, "%i", sizeof(wchar_t)); | |
10276 | exit(0); | |
10277 | } | |
579d8138 VS |
10278 | |
10279 | EOF | |
5c0a20c3 | 10280 | if { (eval echo configure:10281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 | 10281 | then |
21d1c967 | 10282 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10283 | else |
579d8138 VS |
10284 | echo "configure: failed program was:" >&5 |
10285 | cat conftest.$ac_ext >&5 | |
10286 | rm -fr conftest* | |
10287 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10288 | fi |
579d8138 | 10289 | rm -fr conftest* |
6f72b082 | 10290 | fi |
6f72b082 | 10291 | |
579d8138 | 10292 | |
3f345b47 VZ |
10293 | fi |
10294 | ||
579d8138 VS |
10295 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10296 | ||
10297 | cat >> confdefs.h <<EOF | |
21d1c967 GD |
10298 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
10299 | EOF | |
90dd450c | 10300 | |
579d8138 | 10301 | |
21d1c967 GD |
10302 | # Check whether --enable-largefile or --disable-largefile was given. |
10303 | if test "${enable_largefile+set}" = set; then | |
10304 | enableval="$enable_largefile" | |
579d8138 VS |
10305 | : |
10306 | fi | |
3f345b47 | 10307 | |
21d1c967 GD |
10308 | if test "$enable_largefile" != no; then |
10309 | wx_largefile=no | |
579d8138 VS |
10310 | |
10311 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
5c0a20c3 | 10312 | echo "configure:10313: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
579d8138 VS |
10313 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10315 | else | |
10316 | ||
10317 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 10318 | #line 10319 "configure" |
90dd450c | 10319 | #include "confdefs.h" |
21d1c967 GD |
10320 | #define _FILE_OFFSET_BITS 64 |
10321 | #include <sys/types.h> | |
579d8138 | 10322 | int main() { |
21d1c967 GD |
10323 | typedef struct { |
10324 | unsigned int field: sizeof(off_t) == 8; | |
10325 | } wxlf; | |
10326 | ||
579d8138 VS |
10327 | ; return 0; } |
10328 | EOF | |
5c0a20c3 | 10329 | if { (eval echo configure:10330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 10330 | rm -rf conftest* |
21d1c967 | 10331 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10332 | else |
579d8138 VS |
10333 | echo "configure: failed program was:" >&5 |
10334 | cat conftest.$ac_ext >&5 | |
10335 | rm -rf conftest* | |
10336 | ac_cv_sys_file_offset_bits=no | |
90dd450c | 10337 | fi |
579d8138 VS |
10338 | rm -f conftest* |
10339 | ||
10340 | ||
328a083c | 10341 | fi |
579d8138 VS |
10342 | |
10343 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10344 | |
10345 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10346 | wx_largefile=yes | |
579d8138 | 10347 | cat >> confdefs.h <<EOF |
21d1c967 GD |
10348 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
10349 | EOF | |
10350 | ||
10351 | fi | |
10352 | ||
10353 | if test "x$wx_largefile" != "xyes"; then | |
579d8138 VS |
10354 | |
10355 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
5c0a20c3 | 10356 | echo "configure:10357: checking for _LARGE_FILES value needed for large files" >&5 |
579d8138 VS |
10357 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10358 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10359 | else | |
10360 | ||
10361 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 10362 | #line 10363 "configure" |
f6bcfd97 | 10363 | #include "confdefs.h" |
21d1c967 GD |
10364 | #define _LARGE_FILES 1 |
10365 | #include <sys/types.h> | |
579d8138 | 10366 | int main() { |
21d1c967 GD |
10367 | typedef struct { |
10368 | unsigned int field: sizeof(off_t) == 8; | |
10369 | } wxlf; | |
10370 | ||
579d8138 VS |
10371 | ; return 0; } |
10372 | EOF | |
5c0a20c3 | 10373 | if { (eval echo configure:10374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 10374 | rm -rf conftest* |
21d1c967 | 10375 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10376 | else |
579d8138 VS |
10377 | echo "configure: failed program was:" >&5 |
10378 | cat conftest.$ac_ext >&5 | |
10379 | rm -rf conftest* | |
10380 | ac_cv_sys_large_files=no | |
f6bcfd97 | 10381 | fi |
579d8138 VS |
10382 | rm -f conftest* |
10383 | ||
10384 | ||
328a083c | 10385 | fi |
579d8138 VS |
10386 | |
10387 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10388 | |
21d1c967 GD |
10389 | if test "$ac_cv_sys_large_files" != no; then |
10390 | wx_largefile=yes | |
579d8138 | 10391 | cat >> confdefs.h <<EOF |
21d1c967 GD |
10392 | #define _LARGE_FILES $ac_cv_sys_large_files |
10393 | EOF | |
90dd450c | 10394 | |
90dd450c VZ |
10395 | fi |
10396 | ||
90dd450c | 10397 | fi |
90dd450c | 10398 | |
579d8138 | 10399 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
5c0a20c3 | 10400 | echo "configure:10401: checking if large file support is available" >&5 |
21d1c967 | 10401 | if test "x$wx_largefile" = "xyes"; then |
579d8138 | 10402 | cat >> confdefs.h <<\EOF |
21d1c967 | 10403 | #define HAVE_LARGEFILE_SUPPORT 1 |
90dd450c VZ |
10404 | EOF |
10405 | ||
90dd450c | 10406 | fi |
579d8138 | 10407 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10408 | fi |
90dd450c | 10409 | |
579d8138 VS |
10410 | |
10411 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | |
5c0a20c3 | 10412 | echo "configure:10413: checking whether byte ordering is bigendian" >&5 |
579d8138 VS |
10413 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10414 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10415 | else |
21d1c967 GD |
10416 | ac_cv_c_bigendian=unknown |
10417 | # See if sys/param.h defines the BYTE_ORDER macro. | |
579d8138 | 10418 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10419 | #line 10420 "configure" |
90dd450c | 10420 | #include "confdefs.h" |
21d1c967 GD |
10421 | #include <sys/types.h> |
10422 | #include <sys/param.h> | |
579d8138 | 10423 | int main() { |
21d1c967 GD |
10424 | |
10425 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10426 | bogus endian macros | |
10427 | #endif | |
579d8138 VS |
10428 | ; return 0; } |
10429 | EOF | |
5c0a20c3 | 10430 | if { (eval echo configure:10431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 10431 | rm -rf conftest* |
21d1c967 | 10432 | # It does; now see whether it defined to BIG_ENDIAN or not. |
579d8138 | 10433 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10434 | #line 10435 "configure" |
90dd450c | 10435 | #include "confdefs.h" |
21d1c967 GD |
10436 | #include <sys/types.h> |
10437 | #include <sys/param.h> | |
579d8138 | 10438 | int main() { |
21d1c967 GD |
10439 | |
10440 | #if BYTE_ORDER != BIG_ENDIAN | |
10441 | not big endian | |
10442 | #endif | |
579d8138 VS |
10443 | ; return 0; } |
10444 | EOF | |
5c0a20c3 | 10445 | if { (eval echo configure:10446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 10446 | rm -rf conftest* |
21d1c967 | 10447 | ac_cv_c_bigendian=yes |
3f345b47 | 10448 | else |
579d8138 VS |
10449 | echo "configure: failed program was:" >&5 |
10450 | cat conftest.$ac_ext >&5 | |
10451 | rm -rf conftest* | |
10452 | ac_cv_c_bigendian=no | |
3f345b47 | 10453 | fi |
579d8138 | 10454 | rm -f conftest* |
3f345b47 | 10455 | else |
579d8138 VS |
10456 | echo "configure: failed program was:" >&5 |
10457 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10458 | fi |
579d8138 | 10459 | rm -f conftest* |
21d1c967 GD |
10460 | if test $ac_cv_c_bigendian = unknown; then |
10461 | if test "$cross_compiling" = yes; then | |
10462 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10463 | else |
579d8138 | 10464 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10465 | #line 10466 "configure" |
90dd450c | 10466 | #include "confdefs.h" |
21d1c967 GD |
10467 | main () { |
10468 | /* Are we little or big endian? From Harbison&Steele. */ | |
10469 | union | |
10470 | { | |
10471 | long l; | |
10472 | char c[sizeof (long)]; | |
10473 | } u; | |
10474 | u.l = 1; | |
10475 | exit (u.c[sizeof (long) - 1] == 1); | |
10476 | } | |
579d8138 | 10477 | EOF |
5c0a20c3 | 10478 | if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 | 10479 | then |
21d1c967 | 10480 | ac_cv_c_bigendian=no |
3f345b47 | 10481 | else |
579d8138 VS |
10482 | echo "configure: failed program was:" >&5 |
10483 | cat conftest.$ac_ext >&5 | |
10484 | rm -fr conftest* | |
10485 | ac_cv_c_bigendian=yes | |
3f345b47 | 10486 | fi |
579d8138 | 10487 | rm -fr conftest* |
8168de4c | 10488 | fi |
579d8138 | 10489 | |
21d1c967 GD |
10490 | fi |
10491 | fi | |
579d8138 VS |
10492 | |
10493 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
21d1c967 | 10494 | if test $ac_cv_c_bigendian = unknown; then |
579d8138 | 10495 | 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 |
21d1c967 GD |
10496 | fi |
10497 | if test $ac_cv_c_bigendian = yes; then | |
579d8138 | 10498 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
10499 | #define WORDS_BIGENDIAN 1 |
10500 | EOF | |
10501 | ||
10502 | fi | |
10503 | ||
328a083c | 10504 | |
579d8138 | 10505 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
5c0a20c3 | 10506 | echo "configure:10507: checking how to run the C++ preprocessor" >&5 |
579d8138 VS |
10507 | if test -z "$CXXCPP"; then |
10508 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then | |
10509 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 10510 | else |
579d8138 VS |
10511 | ac_ext=C |
10512 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
10513 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10514 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
5c0a20c3 | 10515 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
10516 | cross_compiling=$ac_cv_prog_cxx_cross |
10517 | CXXCPP="${CXX-g++} -E" | |
10518 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 10519 | #line 10520 "configure" |
328a083c | 10520 | #include "confdefs.h" |
579d8138 VS |
10521 | #include <stdlib.h> |
10522 | EOF | |
10523 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
10524 | { (eval echo configure:10525: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10525 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 | 10526 | if test -z "$ac_err"; then |
21d1c967 | 10527 | : |
698dcdb6 | 10528 | else |
579d8138 VS |
10529 | echo "$ac_err" >&5 |
10530 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 10531 | cat conftest.$ac_ext >&5 |
579d8138 VS |
10532 | rm -rf conftest* |
10533 | CXXCPP=/lib/cpp | |
7ec2881a | 10534 | fi |
579d8138 VS |
10535 | rm -f conftest* |
10536 | ac_cv_prog_CXXCPP="$CXXCPP" | |
328a083c | 10537 | fi |
90dd450c | 10538 | fi |
579d8138 VS |
10539 | CXXCPP="$ac_cv_prog_CXXCPP" |
10540 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 10541 | |
1725144d | 10542 | |
21d1c967 | 10543 | if test "$cross_compiling" = "yes"; then |
579d8138 | 10544 | cat >> confdefs.h <<\EOF |
21d1c967 | 10545 | #define wxUSE_IOSTREAMH 1 |
90dd450c | 10546 | EOF |
ab9b9eab | 10547 | |
21d1c967 | 10548 | else |
579d8138 VS |
10549 | |
10550 | ac_ext=C | |
10551 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
328a083c | 10552 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 10553 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 10554 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 10555 | cross_compiling=$ac_cv_prog_cxx_cross |
ba337fe7 | 10556 | |
579d8138 VS |
10557 | |
10558 | for ac_hdr in iostream | |
21d1c967 | 10559 | do |
579d8138 VS |
10560 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10561 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 10562 | echo "configure:10563: checking for $ac_hdr" >&5 |
579d8138 VS |
10563 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10565 | else | |
10566 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 10567 | #line 10568 "configure" |
ab9b9eab | 10568 | #include "confdefs.h" |
579d8138 VS |
10569 | #include <$ac_hdr> |
10570 | EOF | |
10571 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
10572 | { (eval echo configure:10573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10573 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
10574 | if test -z "$ac_err"; then |
10575 | rm -rf conftest* | |
10576 | eval "ac_cv_header_$ac_safe=yes" | |
ab9b9eab | 10577 | else |
579d8138 VS |
10578 | echo "$ac_err" >&5 |
10579 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 10580 | cat conftest.$ac_ext >&5 |
579d8138 VS |
10581 | rm -rf conftest* |
10582 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 10583 | fi |
579d8138 | 10584 | rm -f conftest* |
90dd450c | 10585 | fi |
579d8138 VS |
10586 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10587 | echo "$ac_t""yes" 1>&6 | |
10588 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10589 | cat >> confdefs.h <<EOF | |
10590 | #define $ac_tr_hdr 1 | |
698dcdb6 | 10591 | EOF |
579d8138 VS |
10592 | |
10593 | else | |
10594 | echo "$ac_t""no" 1>&6 | |
90dd450c | 10595 | fi |
21d1c967 | 10596 | done |
10f2d63a | 10597 | |
579d8138 | 10598 | |
21d1c967 GD |
10599 | if test "$ac_cv_header_iostream" = "yes" ; then |
10600 | : | |
10601 | else | |
579d8138 | 10602 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
10603 | #define wxUSE_IOSTREAMH 1 |
10604 | EOF | |
788deba1 | 10605 | |
90dd450c | 10606 | fi |
ab9b9eab | 10607 | |
21d1c967 | 10608 | ac_ext=c |
579d8138 | 10609 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10610 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 10611 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 10612 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 10613 | cross_compiling=$ac_cv_prog_cc_cross |
ab9b9eab | 10614 | |
21d1c967 | 10615 | fi |
ab9b9eab | 10616 | |
21d1c967 | 10617 | |
579d8138 VS |
10618 | |
10619 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 | |
5c0a20c3 | 10620 | echo "configure:10621: checking if C++ compiler supports bool" >&5 |
579d8138 VS |
10621 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
10622 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10623 | else | |
10624 | ||
10625 | ||
10626 | ac_ext=C | |
10627 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
328a083c | 10628 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 10629 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 10630 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
10631 | cross_compiling=$ac_cv_prog_cxx_cross |
10632 | ||
21d1c967 | 10633 | |
579d8138 | 10634 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10635 | #line 10636 "configure" |
ab9b9eab | 10636 | #include "confdefs.h" |
21d1c967 | 10637 | |
579d8138 VS |
10638 | |
10639 | int main() { | |
21d1c967 GD |
10640 | |
10641 | bool b = true; | |
10642 | ||
10643 | return 0; | |
579d8138 VS |
10644 | |
10645 | ; return 0; } | |
10646 | EOF | |
5c0a20c3 | 10647 | if { (eval echo configure:10648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
10648 | rm -rf conftest* |
10649 | ||
21d1c967 | 10650 | wx_cv_cpp_bool=yes |
579d8138 | 10651 | |
698dcdb6 | 10652 | else |
579d8138 VS |
10653 | echo "configure: failed program was:" >&5 |
10654 | cat conftest.$ac_ext >&5 | |
10655 | rm -rf conftest* | |
10656 | ||
21d1c967 | 10657 | wx_cv_cpp_bool=no |
579d8138 VS |
10658 | |
10659 | ||
698dcdb6 | 10660 | fi |
579d8138 | 10661 | rm -f conftest* |
21d1c967 GD |
10662 | |
10663 | ac_ext=c | |
579d8138 | 10664 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 10665 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 10666 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 10667 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 10668 | cross_compiling=$ac_cv_prog_cc_cross |
21d1c967 | 10669 | |
579d8138 | 10670 | |
698dcdb6 | 10671 | fi |
579d8138 VS |
10672 | |
10673 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
10674 | |
10675 | if test "$wx_cv_cpp_bool" = "yes"; then | |
579d8138 | 10676 | cat >> confdefs.h <<\EOF |
21d1c967 | 10677 | #define HAVE_BOOL 1 |
90dd450c | 10678 | EOF |
ab9b9eab | 10679 | |
21d1c967 GD |
10680 | fi |
10681 | ||
986ecc86 | 10682 | |
579d8138 VS |
10683 | |
10684 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 | |
5c0a20c3 | 10685 | echo "configure:10686: checking if C++ compiler supports the explicit keyword" >&5 |
579d8138 VS |
10686 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
10687 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10688 | else | |
10689 | ||
10690 | ||
10691 | ac_ext=C | |
10692 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
328a083c | 10693 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 10694 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 10695 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
10696 | cross_compiling=$ac_cv_prog_cxx_cross |
10697 | ||
986ecc86 | 10698 | |
579d8138 | 10699 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10700 | #line 10701 "configure" |
986ecc86 VZ |
10701 | #include "confdefs.h" |
10702 | ||
10703 | class Foo { public: explicit Foo(int) {} }; | |
579d8138 VS |
10704 | |
10705 | int main() { | |
986ecc86 VZ |
10706 | |
10707 | return 0; | |
579d8138 VS |
10708 | |
10709 | ; return 0; } | |
10710 | EOF | |
5c0a20c3 | 10711 | if { (eval echo configure:10712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
10712 | rm -rf conftest* |
10713 | ||
10714 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 10715 | #line 10716 "configure" |
986ecc86 VZ |
10716 | #include "confdefs.h" |
10717 | ||
10718 | class Foo { public: explicit Foo(int) {} }; | |
10719 | static void TakeFoo(const Foo& foo) { } | |
579d8138 VS |
10720 | |
10721 | int main() { | |
986ecc86 VZ |
10722 | |
10723 | TakeFoo(17); | |
10724 | return 0; | |
579d8138 VS |
10725 | |
10726 | ; return 0; } | |
10727 | EOF | |
5c0a20c3 | 10728 | if { (eval echo configure:10729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 10729 | rm -rf conftest* |
986ecc86 VZ |
10730 | wx_cv_explicit=no |
10731 | else | |
579d8138 VS |
10732 | echo "configure: failed program was:" >&5 |
10733 | cat conftest.$ac_ext >&5 | |
10734 | rm -rf conftest* | |
10735 | wx_cv_explicit=yes | |
10736 | ||
986ecc86 | 10737 | fi |
579d8138 VS |
10738 | rm -f conftest* |
10739 | ||
986ecc86 | 10740 | else |
579d8138 VS |
10741 | echo "configure: failed program was:" >&5 |
10742 | cat conftest.$ac_ext >&5 | |
10743 | rm -rf conftest* | |
10744 | wx_cv_explicit=no | |
10745 | ||
986ecc86 | 10746 | fi |
579d8138 | 10747 | rm -f conftest* |
986ecc86 VZ |
10748 | |
10749 | ac_ext=c | |
579d8138 | 10750 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 10751 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 10752 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 10753 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 10754 | cross_compiling=$ac_cv_prog_cc_cross |
986ecc86 | 10755 | |
579d8138 | 10756 | |
986ecc86 | 10757 | fi |
579d8138 VS |
10758 | |
10759 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
10760 | |
10761 | if test "$wx_cv_explicit" = "yes"; then | |
579d8138 | 10762 | cat >> confdefs.h <<\EOF |
986ecc86 VZ |
10763 | #define HAVE_EXPLICIT 1 |
10764 | EOF | |
10765 | ||
10766 | fi | |
10767 | ||
579d8138 VS |
10768 | |
10769 | ||
21d1c967 GD |
10770 | SEARCH_INCLUDE="\ |
10771 | /usr/local/include \ | |
10772 | \ | |
10773 | /usr/Motif-1.2/include \ | |
10774 | /usr/Motif-2.1/include \ | |
10775 | \ | |
10776 | /usr/include/Motif1.2 \ | |
10777 | /opt/xpm/include/X11 \ | |
10778 | /opt/GBxpm/include/ \ | |
10779 | /opt/GBxpm/X11/include/ \ | |
10780 | \ | |
10781 | /usr/Motif1.2/include \ | |
10782 | /usr/dt/include \ | |
10783 | /usr/openwin/include \ | |
10784 | \ | |
10785 | /usr/include/Xm \ | |
10786 | \ | |
10787 | /usr/X11R6/include \ | |
10788 | /usr/X11R6.4/include \ | |
10789 | /usr/X11R5/include \ | |
10790 | /usr/X11R4/include \ | |
10791 | \ | |
10792 | /usr/include/X11R6 \ | |
10793 | /usr/include/X11R5 \ | |
10794 | /usr/include/X11R4 \ | |
10795 | \ | |
10796 | /usr/local/X11R6/include \ | |
10797 | /usr/local/X11R5/include \ | |
10798 | /usr/local/X11R4/include \ | |
10799 | \ | |
10800 | /usr/local/include/X11R6 \ | |
10801 | /usr/local/include/X11R5 \ | |
10802 | /usr/local/include/X11R4 \ | |
10803 | \ | |
10804 | /usr/X11/include \ | |
10805 | /usr/include/X11 \ | |
10806 | /usr/local/X11/include \ | |
10807 | /usr/local/include/X11 \ | |
10808 | \ | |
10809 | /usr/X386/include \ | |
10810 | /usr/x386/include \ | |
10811 | /usr/XFree86/include/X11 \ | |
10812 | \ | |
10813 | X:/XFree86/include \ | |
10814 | X:/XFree86/include/X11 \ | |
10815 | \ | |
10816 | /usr/include/gtk \ | |
10817 | /usr/local/include/gtk \ | |
10818 | /usr/include/glib \ | |
10819 | /usr/local/include/glib \ | |
10820 | \ | |
10821 | /usr/include/qt \ | |
10822 | /usr/local/include/qt \ | |
10823 | \ | |
10824 | /usr/include/windows \ | |
10825 | /usr/include/wine \ | |
10826 | /usr/local/include/wine \ | |
10827 | \ | |
10828 | /usr/unsupported/include \ | |
10829 | /usr/athena/include \ | |
10830 | /usr/local/x11r5/include \ | |
10831 | /usr/lpp/Xamples/include \ | |
10832 | \ | |
10833 | /usr/openwin/share/include \ | |
10834 | \ | |
10835 | /usr/include" | |
10836 | ||
10837 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
10838 | ||
579d8138 VS |
10839 | |
10840 | cat > confcache <<\EOF | |
21d1c967 GD |
10841 | # This file is a shell script that caches the results of configure |
10842 | # tests run on this system so they can be shared between configure | |
579d8138 VS |
10843 | # scripts and configure runs. It is not useful on other systems. |
10844 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 10845 | # |
579d8138 VS |
10846 | # By default, configure uses ./config.cache as the cache file, |
10847 | # creating it if it does not exist already. You can give configure | |
10848 | # the --cache-file=FILE option to use a different cache file; that is | |
10849 | # what configure does when it calls configure scripts in | |
10850 | # subdirectories, so they share the cache. | |
10851 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
10852 | # config.status only pays attention to the cache file if you give it the | |
10853 | # --recheck option to rerun configure. | |
21d1c967 | 10854 | # |
579d8138 | 10855 | EOF |
21d1c967 GD |
10856 | # The following way of writing the cache mishandles newlines in values, |
10857 | # but we know of no workaround that is simple, portable, and efficient. | |
10858 | # So, don't put newlines in cache variables' values. | |
10859 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10860 | # and sets the high bit in the cache file unless we assign to the vars. | |
579d8138 | 10861 | (set) 2>&1 | |
5c0a20c3 | 10862 | case `(ac_space=' '; set) 2>&1` in |
579d8138 VS |
10863 | *ac_space=\ *) |
10864 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
10865 | # turns \\\\ into \\, and sed turns \\ into \). | |
10866 | sed -n \ | |
10867 | -e "s/'/'\\\\''/g" \ | |
10868 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
10869 | ;; | |
10870 | *) | |
10871 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10872 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
10873 | ;; | |
10874 | esac >> confcache | |
10875 | if cmp -s $cache_file confcache; then | |
10876 | : | |
10877 | else | |
21d1c967 | 10878 | if test -w $cache_file; then |
579d8138 VS |
10879 | echo "updating cache $cache_file" |
10880 | cat confcache > $cache_file | |
21d1c967 GD |
10881 | else |
10882 | echo "not updating unwritable cache $cache_file" | |
10883 | fi | |
ab9b9eab | 10884 | fi |
21d1c967 | 10885 | rm -f confcache |
ab9b9eab | 10886 | |
328a083c | 10887 | |
579d8138 VS |
10888 | if test "$USE_LINUX" = 1; then |
10889 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
5c0a20c3 | 10890 | echo "configure:10891: checking for glibc 2.1 or later" >&5 |
579d8138 VS |
10891 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
10892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10893 | else | |
10894 | ||
10895 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 10896 | #line 10897 "configure" |
ab9b9eab | 10897 | #include "confdefs.h" |
21d1c967 | 10898 | #include <features.h> |
579d8138 | 10899 | int main() { |
ab9b9eab | 10900 | |
21d1c967 GD |
10901 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
10902 | #error not glibc2.1 | |
10903 | #endif | |
579d8138 VS |
10904 | |
10905 | ; return 0; } | |
10906 | EOF | |
5c0a20c3 | 10907 | if { (eval echo configure:10908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
10908 | rm -rf conftest* |
10909 | ||
21d1c967 | 10910 | wx_cv_lib_glibc21=yes |
579d8138 | 10911 | |
698dcdb6 | 10912 | else |
579d8138 VS |
10913 | echo "configure: failed program was:" >&5 |
10914 | cat conftest.$ac_ext >&5 | |
10915 | rm -rf conftest* | |
10916 | ||
21d1c967 | 10917 | wx_cv_lib_glibc21=no |
579d8138 VS |
10918 | |
10919 | ||
698dcdb6 | 10920 | fi |
579d8138 VS |
10921 | rm -f conftest* |
10922 | ||
328a083c | 10923 | fi |
579d8138 VS |
10924 | |
10925 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 10926 | if test "$wx_cv_lib_glibc21" = "yes"; then |
579d8138 | 10927 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
10928 | #define wxHAVE_GLIBC2 1 |
10929 | EOF | |
1e487827 | 10930 | |
90dd450c | 10931 | fi |
ab9b9eab VZ |
10932 | fi |
10933 | ||
5c0a20c3 VZ |
10934 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
10935 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
10936 | cat >> confdefs.h <<\EOF | |
10937 | #define _GNU_SOURCE 1 | |
10938 | EOF | |
10939 | ||
10940 | fi | |
10941 | fi | |
10942 | ||
579d8138 VS |
10943 | |
10944 | ||
21d1c967 GD |
10945 | REGEX_INCLUDE= |
10946 | if test "$wxUSE_REGEX" != "no"; then | |
579d8138 | 10947 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
10948 | #define wxUSE_REGEX 1 |
10949 | EOF | |
698dcdb6 | 10950 | |
579d8138 | 10951 | |
21d1c967 | 10952 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
579d8138 VS |
10953 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
10954 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
5c0a20c3 | 10955 | echo "configure:10956: checking for regex.h" >&5 |
579d8138 VS |
10956 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10957 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10958 | else | |
10959 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 10960 | #line 10961 "configure" |
21d1c967 GD |
10961 | #include "confdefs.h" |
10962 | #include <regex.h> | |
579d8138 VS |
10963 | EOF |
10964 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
10965 | { (eval echo configure:10966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
10966 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
10967 | if test -z "$ac_err"; then |
10968 | rm -rf conftest* | |
10969 | eval "ac_cv_header_$ac_safe=yes" | |
698dcdb6 | 10970 | else |
579d8138 VS |
10971 | echo "$ac_err" >&5 |
10972 | echo "configure: failed program was:" >&5 | |
21d1c967 | 10973 | cat conftest.$ac_ext >&5 |
579d8138 VS |
10974 | rm -rf conftest* |
10975 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 10976 | fi |
579d8138 | 10977 | rm -f conftest* |
698dcdb6 | 10978 | fi |
579d8138 VS |
10979 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10980 | echo "$ac_t""yes" 1>&6 | |
10981 | for ac_func in regcomp | |
21d1c967 | 10982 | do |
579d8138 | 10983 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 10984 | echo "configure:10985: checking for $ac_func" >&5 |
579d8138 VS |
10985 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10986 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 10987 | else |
579d8138 | 10988 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 10989 | #line 10990 "configure" |
579d8138 VS |
10990 | #include "confdefs.h" |
10991 | /* System header to define __stub macros and hopefully few prototypes, | |
10992 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
10993 | #include <assert.h> |
10994 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10995 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
10996 | builtin and then its argument prototype would still apply. */ |
10997 | char $ac_func(); | |
10998 | ||
10999 | int main() { | |
90dd450c | 11000 | |
21d1c967 GD |
11001 | /* The GNU C library defines this for functions which it implements |
11002 | to always fail with ENOSYS. Some functions are actually named | |
11003 | something starting with __ and the normal name is an alias. */ | |
11004 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11005 | choke me | |
11006 | #else | |
579d8138 | 11007 | $ac_func(); |
21d1c967 | 11008 | #endif |
90dd450c | 11009 | |
579d8138 | 11010 | ; return 0; } |
21d1c967 | 11011 | EOF |
5c0a20c3 | 11012 | if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
11013 | rm -rf conftest* |
11014 | eval "ac_cv_func_$ac_func=yes" | |
11015 | else | |
11016 | echo "configure: failed program was:" >&5 | |
11017 | cat conftest.$ac_ext >&5 | |
11018 | rm -rf conftest* | |
11019 | eval "ac_cv_func_$ac_func=no" | |
11020 | fi | |
11021 | rm -f conftest* | |
11022 | fi | |
90dd450c | 11023 | |
579d8138 VS |
11024 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11025 | echo "$ac_t""yes" 1>&6 | |
11026 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11027 | cat >> confdefs.h <<EOF | |
11028 | #define $ac_tr_func 1 | |
11029 | EOF | |
11030 | ||
11031 | else | |
11032 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11033 | fi |
21d1c967 GD |
11034 | done |
11035 | ||
579d8138 VS |
11036 | else |
11037 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11038 | fi |
11039 | ||
579d8138 | 11040 | |
21d1c967 GD |
11041 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11042 | if test "$wxUSE_REGEX" = "sys" ; then | |
579d8138 | 11043 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11044 | else |
579d8138 | 11045 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11046 | wxUSE_REGEX=builtin |
11047 | fi | |
11048 | else | |
11049 | wxUSE_REGEX=sys | |
11050 | fi | |
ab9b9eab | 11051 | fi |
90dd450c | 11052 | |
21d1c967 GD |
11053 | if test "$wxUSE_REGEX" = "builtin" ; then |
11054 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11055 | fi |
21d1c967 | 11056 | fi |
90dd450c | 11057 | |
579d8138 | 11058 | |
21d1c967 GD |
11059 | ZLIB_INCLUDE= |
11060 | ZLIB_LINK= | |
11061 | if test "$wxUSE_ZLIB" != "no" ; then | |
579d8138 | 11062 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11063 | #define wxUSE_ZLIB 1 |
11064 | EOF | |
11065 | ||
579d8138 | 11066 | |
21d1c967 | 11067 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
579d8138 VS |
11068 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` |
11069 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 | |
5c0a20c3 | 11070 | echo "configure:11071: checking for zlib.h" >&5 |
579d8138 VS |
11071 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11073 | else | |
11074 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 11075 | #line 11076 "configure" |
ab9b9eab | 11076 | #include "confdefs.h" |
21d1c967 | 11077 | #include <zlib.h> |
579d8138 VS |
11078 | EOF |
11079 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
11080 | { (eval echo configure:11081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11081 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
11082 | if test -z "$ac_err"; then |
11083 | rm -rf conftest* | |
11084 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 11085 | else |
579d8138 VS |
11086 | echo "$ac_err" >&5 |
11087 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11088 | cat conftest.$ac_ext >&5 |
579d8138 VS |
11089 | rm -rf conftest* |
11090 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11091 | fi |
579d8138 | 11092 | rm -f conftest* |
ab9b9eab | 11093 | fi |
579d8138 VS |
11094 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11095 | echo "$ac_t""yes" 1>&6 | |
11096 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
5c0a20c3 | 11097 | echo "configure:11098: checking for deflate in -lz" >&5 |
579d8138 VS |
11098 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11099 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11101 | else |
579d8138 | 11102 | ac_save_LIBS="$LIBS" |
21d1c967 | 11103 | LIBS="-lz $LIBS" |
579d8138 | 11104 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 11105 | #line 11106 "configure" |
ab9b9eab | 11106 | #include "confdefs.h" |
21d1c967 GD |
11107 | /* Override any gcc2 internal prototype to avoid an error. */ |
11108 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
11109 | builtin and then its argument prototype would still apply. */ |
11110 | char deflate(); | |
11111 | ||
11112 | int main() { | |
11113 | deflate() | |
11114 | ; return 0; } | |
11115 | EOF | |
5c0a20c3 | 11116 | if { (eval echo configure:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
11117 | rm -rf conftest* |
11118 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11119 | else | |
11120 | echo "configure: failed program was:" >&5 | |
11121 | cat conftest.$ac_ext >&5 | |
11122 | rm -rf conftest* | |
11123 | eval "ac_cv_lib_$ac_lib_var=no" | |
11124 | fi | |
11125 | rm -f conftest* | |
11126 | LIBS="$ac_save_LIBS" | |
11127 | ||
11128 | fi | |
11129 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11130 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11131 | ZLIB_LINK=" -lz" |
579d8138 VS |
11132 | else |
11133 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11134 | fi |
698dcdb6 | 11135 | |
579d8138 VS |
11136 | else |
11137 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11138 | fi |
698dcdb6 | 11139 | |
579d8138 | 11140 | |
21d1c967 GD |
11141 | if test "x$ZLIB_LINK" = "x" ; then |
11142 | if test "$wxUSE_ZLIB" = "sys" ; then | |
579d8138 | 11143 | { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11144 | else |
579d8138 | 11145 | echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11146 | wxUSE_ZLIB=builtin |
11147 | fi | |
11148 | else | |
11149 | wxUSE_ZLIB=sys | |
11150 | fi | |
11151 | fi | |
11152 | ||
11153 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11154 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11155 | fi | |
ab9b9eab VZ |
11156 | fi |
11157 | ||
579d8138 | 11158 | |
21d1c967 GD |
11159 | PNG_INCLUDE= |
11160 | PNG_LINK= | |
11161 | if test "$wxUSE_LIBPNG" != "no" ; then | |
579d8138 | 11162 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11163 | #define wxUSE_LIBPNG 1 |
11164 | EOF | |
90dd450c | 11165 | |
579d8138 | 11166 | |
21d1c967 | 11167 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
579d8138 | 11168 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11169 | wxUSE_LIBPNG=sys |
11170 | fi | |
90dd450c | 11171 | |
21d1c967 | 11172 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
579d8138 | 11173 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11174 | wxUSE_LIBPNG=builtin |
11175 | fi | |
11176 | ||
11177 | if test "$wxUSE_MGL" != 1 ; then | |
11178 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
579d8138 VS |
11179 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
11180 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 | |
5c0a20c3 | 11181 | echo "configure:11182: checking for png.h" >&5 |
579d8138 VS |
11182 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11183 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11184 | else | |
11185 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 11186 | #line 11187 "configure" |
21d1c967 GD |
11187 | #include "confdefs.h" |
11188 | #include <png.h> | |
579d8138 VS |
11189 | EOF |
11190 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
11191 | { (eval echo configure:11192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11192 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
11193 | if test -z "$ac_err"; then |
11194 | rm -rf conftest* | |
11195 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11196 | else |
579d8138 VS |
11197 | echo "$ac_err" >&5 |
11198 | echo "configure: failed program was:" >&5 | |
90dd450c | 11199 | cat conftest.$ac_ext >&5 |
579d8138 VS |
11200 | rm -rf conftest* |
11201 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11202 | fi |
579d8138 | 11203 | rm -f conftest* |
90dd450c | 11204 | fi |
579d8138 VS |
11205 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11206 | echo "$ac_t""yes" 1>&6 | |
11207 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
5c0a20c3 | 11208 | echo "configure:11209: checking for png_check_sig in -lpng" >&5 |
579d8138 VS |
11209 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11210 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11211 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11212 | else |
579d8138 | 11213 | ac_save_LIBS="$LIBS" |
21d1c967 | 11214 | LIBS="-lpng -lz -lm $LIBS" |
579d8138 | 11215 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 11216 | #line 11217 "configure" |
90dd450c | 11217 | #include "confdefs.h" |
21d1c967 GD |
11218 | /* Override any gcc2 internal prototype to avoid an error. */ |
11219 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
11220 | builtin and then its argument prototype would still apply. */ |
11221 | char png_check_sig(); | |
11222 | ||
11223 | int main() { | |
11224 | png_check_sig() | |
11225 | ; return 0; } | |
11226 | EOF | |
5c0a20c3 | 11227 | if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
11228 | rm -rf conftest* |
11229 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11230 | else | |
11231 | echo "configure: failed program was:" >&5 | |
11232 | cat conftest.$ac_ext >&5 | |
11233 | rm -rf conftest* | |
11234 | eval "ac_cv_lib_$ac_lib_var=no" | |
11235 | fi | |
11236 | rm -f conftest* | |
11237 | LIBS="$ac_save_LIBS" | |
11238 | ||
11239 | fi | |
11240 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11241 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11242 | PNG_LINK=" -lpng" |
579d8138 VS |
11243 | else |
11244 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11245 | fi |
11246 | ||
579d8138 VS |
11247 | |
11248 | else | |
11249 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11250 | fi |
11251 | ||
579d8138 | 11252 | |
21d1c967 GD |
11253 | if test "x$PNG_LINK" = "x" ; then |
11254 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
579d8138 | 11255 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11256 | else |
579d8138 | 11257 | echo "configure: warning: system png library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11258 | wxUSE_LIBPNG=builtin |
11259 | fi | |
11260 | else | |
11261 | wxUSE_LIBPNG=yes | |
11262 | fi | |
11263 | fi | |
11264 | fi | |
90dd450c | 11265 | |
21d1c967 GD |
11266 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11267 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11268 | fi | |
90dd450c | 11269 | |
21d1c967 | 11270 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11271 | fi |
11272 | ||
579d8138 | 11273 | |
21d1c967 GD |
11274 | JPEG_INCLUDE= |
11275 | JPEG_LINK= | |
11276 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
579d8138 | 11277 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11278 | #define wxUSE_LIBJPEG 1 |
11279 | EOF | |
90dd450c | 11280 | |
579d8138 | 11281 | |
21d1c967 | 11282 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
579d8138 | 11283 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11284 | wxUSE_LIBJPEG=sys |
11285 | fi | |
90dd450c | 11286 | |
21d1c967 GD |
11287 | if test "$wxUSE_MGL" != 1 ; then |
11288 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
579d8138 | 11289 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
5c0a20c3 | 11290 | echo "configure:11291: checking for jpeglib.h" >&5 |
579d8138 VS |
11291 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11292 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11293 | else |
579d8138 | 11294 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 11295 | #line 11296 "configure" |
21d1c967 | 11296 | #include "confdefs.h" |
90dd450c | 11297 | |
21d1c967 GD |
11298 | #undef HAVE_STDLIB_H |
11299 | #include <stdio.h> | |
11300 | #include <jpeglib.h> | |
579d8138 VS |
11301 | |
11302 | int main() { | |
90dd450c | 11303 | |
579d8138 VS |
11304 | |
11305 | ; return 0; } | |
11306 | EOF | |
5c0a20c3 | 11307 | if { (eval echo configure:11308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 11308 | rm -rf conftest* |
21d1c967 | 11309 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11310 | else |
579d8138 VS |
11311 | echo "configure: failed program was:" >&5 |
11312 | cat conftest.$ac_ext >&5 | |
11313 | rm -rf conftest* | |
11314 | ac_cv_header_jpeglib_h=no | |
11315 | ||
90dd450c | 11316 | fi |
579d8138 VS |
11317 | rm -f conftest* |
11318 | ||
90dd450c VZ |
11319 | fi |
11320 | ||
579d8138 | 11321 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11322 | |
21d1c967 | 11323 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
579d8138 | 11324 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
5c0a20c3 | 11325 | echo "configure:11326: checking for jpeg_read_header in -ljpeg" >&5 |
579d8138 VS |
11326 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11327 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11328 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11329 | else |
579d8138 | 11330 | ac_save_LIBS="$LIBS" |
21d1c967 | 11331 | LIBS="-ljpeg $LIBS" |
579d8138 | 11332 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 11333 | #line 11334 "configure" |
21d1c967 GD |
11334 | #include "confdefs.h" |
11335 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11336 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
11337 | builtin and then its argument prototype would still apply. */ |
11338 | char jpeg_read_header(); | |
11339 | ||
11340 | int main() { | |
11341 | jpeg_read_header() | |
11342 | ; return 0; } | |
11343 | EOF | |
5c0a20c3 | 11344 | if { (eval echo configure:11345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
11345 | rm -rf conftest* |
11346 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11347 | else | |
11348 | echo "configure: failed program was:" >&5 | |
11349 | cat conftest.$ac_ext >&5 | |
11350 | rm -rf conftest* | |
11351 | eval "ac_cv_lib_$ac_lib_var=no" | |
11352 | fi | |
11353 | rm -f conftest* | |
11354 | LIBS="$ac_save_LIBS" | |
11355 | ||
11356 | fi | |
11357 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11358 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11359 | JPEG_LINK=" -ljpeg" |
579d8138 VS |
11360 | else |
11361 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11362 | fi |
11363 | ||
21d1c967 | 11364 | fi |
90dd450c | 11365 | |
21d1c967 GD |
11366 | if test "x$JPEG_LINK" = "x" ; then |
11367 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
579d8138 | 11368 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11369 | else |
579d8138 | 11370 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11371 | wxUSE_LIBJPEG=builtin |
11372 | fi | |
11373 | else | |
11374 | wxUSE_LIBJPEG=sys | |
11375 | fi | |
11376 | fi | |
11377 | fi | |
90dd450c | 11378 | |
21d1c967 GD |
11379 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11380 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11381 | fi | |
11382 | fi | |
90dd450c | 11383 | |
579d8138 | 11384 | |
21d1c967 GD |
11385 | TIFF_INCLUDE= |
11386 | TIFF_LINK= | |
11387 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
579d8138 | 11388 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
11389 | #define wxUSE_LIBTIFF 1 |
11390 | EOF | |
11391 | ||
579d8138 | 11392 | |
21d1c967 | 11393 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
579d8138 VS |
11394 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
11395 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
5c0a20c3 | 11396 | echo "configure:11397: checking for tiffio.h" >&5 |
579d8138 VS |
11397 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11399 | else | |
11400 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 11401 | #line 11402 "configure" |
21d1c967 GD |
11402 | #include "confdefs.h" |
11403 | #include <tiffio.h> | |
579d8138 VS |
11404 | EOF |
11405 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
11406 | { (eval echo configure:11407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11407 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
11408 | if test -z "$ac_err"; then |
11409 | rm -rf conftest* | |
11410 | eval "ac_cv_header_$ac_safe=yes" | |
21d1c967 | 11411 | else |
579d8138 VS |
11412 | echo "$ac_err" >&5 |
11413 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11414 | cat conftest.$ac_ext >&5 |
579d8138 VS |
11415 | rm -rf conftest* |
11416 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11417 | fi |
579d8138 | 11418 | rm -f conftest* |
21d1c967 | 11419 | fi |
579d8138 VS |
11420 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11421 | echo "$ac_t""yes" 1>&6 | |
11422 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
5c0a20c3 | 11423 | echo "configure:11424: checking for TIFFError in -ltiff" >&5 |
579d8138 VS |
11424 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
11425 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 11427 | else |
579d8138 | 11428 | ac_save_LIBS="$LIBS" |
21d1c967 | 11429 | LIBS="-ltiff -lm $LIBS" |
579d8138 | 11430 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 11431 | #line 11432 "configure" |
ab9b9eab VZ |
11432 | #include "confdefs.h" |
11433 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11434 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
11435 | builtin and then its argument prototype would still apply. */ |
11436 | char TIFFError(); | |
11437 | ||
11438 | int main() { | |
11439 | TIFFError() | |
11440 | ; return 0; } | |
11441 | EOF | |
5c0a20c3 | 11442 | if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
11443 | rm -rf conftest* |
11444 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11445 | else | |
11446 | echo "configure: failed program was:" >&5 | |
11447 | cat conftest.$ac_ext >&5 | |
11448 | rm -rf conftest* | |
11449 | eval "ac_cv_lib_$ac_lib_var=no" | |
11450 | fi | |
11451 | rm -f conftest* | |
11452 | LIBS="$ac_save_LIBS" | |
11453 | ||
11454 | fi | |
11455 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11456 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11457 | TIFF_LINK=" -ltiff" |
579d8138 VS |
11458 | else |
11459 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11460 | fi |
11461 | ||
579d8138 VS |
11462 | |
11463 | else | |
11464 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 11465 | fi |
cd6d6d5b | 11466 | |
579d8138 | 11467 | |
21d1c967 GD |
11468 | if test "x$TIFF_LINK" = "x" ; then |
11469 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
579d8138 | 11470 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 11471 | else |
579d8138 | 11472 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 11473 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 11474 | fi |
d8356fa3 | 11475 | else |
21d1c967 | 11476 | wxUSE_LIBTIFF=sys |
d8356fa3 | 11477 | fi |
21d1c967 | 11478 | fi |
d8356fa3 | 11479 | |
21d1c967 GD |
11480 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
11481 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 11482 | fi |
21d1c967 | 11483 | fi |
10f2d63a | 11484 | |
579d8138 | 11485 | |
21d1c967 | 11486 | AFMINSTALL= |
90dd450c | 11487 | |
21d1c967 GD |
11488 | TOOLKIT= |
11489 | TOOLKIT_INCLUDE= | |
11490 | WIDGET_SET= | |
11491 | ||
11492 | if test "$USE_WIN32" = 1 ; then | |
579d8138 | 11493 | for ac_hdr in w32api.h |
21d1c967 | 11494 | do |
579d8138 VS |
11495 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11496 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 11497 | echo "configure:11498: checking for $ac_hdr" >&5 |
579d8138 VS |
11498 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11499 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11500 | else | |
11501 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 11502 | #line 11503 "configure" |
f79bd02d | 11503 | #include "confdefs.h" |
579d8138 VS |
11504 | #include <$ac_hdr> |
11505 | EOF | |
11506 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
11507 | { (eval echo configure:11508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11508 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
11509 | if test -z "$ac_err"; then |
11510 | rm -rf conftest* | |
11511 | eval "ac_cv_header_$ac_safe=yes" | |
f79bd02d | 11512 | else |
579d8138 VS |
11513 | echo "$ac_err" >&5 |
11514 | echo "configure: failed program was:" >&5 | |
f79bd02d | 11515 | cat conftest.$ac_ext >&5 |
579d8138 VS |
11516 | rm -rf conftest* |
11517 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 11518 | fi |
579d8138 | 11519 | rm -f conftest* |
21d1c967 | 11520 | fi |
579d8138 VS |
11521 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11522 | echo "$ac_t""yes" 1>&6 | |
11523 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11524 | cat >> confdefs.h <<EOF | |
11525 | #define $ac_tr_hdr 1 | |
21d1c967 | 11526 | EOF |
579d8138 VS |
11527 | |
11528 | else | |
11529 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
11530 | fi |
11531 | done | |
f79bd02d | 11532 | |
579d8138 VS |
11533 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
11534 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
5c0a20c3 | 11535 | echo "configure:11536: checking for windows.h" >&5 |
579d8138 VS |
11536 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11537 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11538 | else |
579d8138 | 11539 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 11540 | #line 11541 "configure" |
90dd450c | 11541 | #include "confdefs.h" |
21d1c967 | 11542 | #include <windows.h> |
579d8138 VS |
11543 | EOF |
11544 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
11545 | { (eval echo configure:11546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11546 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
11547 | if test -z "$ac_err"; then |
11548 | rm -rf conftest* | |
11549 | eval "ac_cv_header_$ac_safe=yes" | |
90dd450c | 11550 | else |
579d8138 VS |
11551 | echo "$ac_err" >&5 |
11552 | echo "configure: failed program was:" >&5 | |
90dd450c | 11553 | cat conftest.$ac_ext >&5 |
579d8138 VS |
11554 | rm -rf conftest* |
11555 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11556 | fi |
579d8138 | 11557 | rm -f conftest* |
90dd450c | 11558 | fi |
579d8138 VS |
11559 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11560 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11561 | : |
90dd450c | 11562 | else |
579d8138 | 11563 | echo "$ac_t""no" 1>&6 |
21d1c967 | 11564 | |
579d8138 VS |
11565 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
11566 | ||
328a083c | 11567 | fi |
f79bd02d | 11568 | |
328a083c | 11569 | |
579d8138 | 11570 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
5c0a20c3 | 11571 | echo "configure:11572: checking if w32api has good enough MSIE support" >&5 |
579d8138 VS |
11572 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
11573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11574 | else | |
11575 | ||
11576 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 11577 | #line 11578 "configure" |
f79bd02d | 11578 | #include "confdefs.h" |
21d1c967 | 11579 | #include <w32api.h> |
579d8138 | 11580 | int main() { |
f79bd02d | 11581 | |
21d1c967 GD |
11582 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
11583 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
11584 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
11585 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
11586 | ||
11587 | #if !wxCHECK_W32API_VERSION(1,1) | |
11588 | #error You need w32api 1.1 or newer | |
11589 | #endif | |
579d8138 VS |
11590 | |
11591 | ; return 0; } | |
11592 | EOF | |
5c0a20c3 | 11593 | if { (eval echo configure:11594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
11594 | rm -rf conftest* |
11595 | ||
21d1c967 | 11596 | wx_cv_w32api_win32_ie=yes |
579d8138 | 11597 | |
f79bd02d | 11598 | else |
579d8138 VS |
11599 | echo "configure: failed program was:" >&5 |
11600 | cat conftest.$ac_ext >&5 | |
11601 | rm -rf conftest* | |
11602 | ||
21d1c967 | 11603 | wx_cv_w32api_win32_ie=no |
579d8138 | 11604 | |
21d1c967 | 11605 | fi |
579d8138 VS |
11606 | rm -f conftest* |
11607 | ||
328a083c | 11608 | fi |
579d8138 VS |
11609 | |
11610 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
11611 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
11612 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
11613 | fi | |
f79bd02d | 11614 | |
21d1c967 GD |
11615 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
11616 | ||
11617 | case "${host}" in | |
11618 | *-*-cygwin* ) | |
11619 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
11620 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 11621 | esac |
f79bd02d | 11622 | |
21d1c967 GD |
11623 | if test "$wxUSE_ODBC" = "yes" ; then |
11624 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
11625 | fi | |
f79bd02d | 11626 | |
21d1c967 GD |
11627 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
11628 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
f79bd02d | 11629 | fi |
f79bd02d | 11630 | |
21d1c967 GD |
11631 | if test "$wxUSE_GUI" = "yes"; then |
11632 | USE_GUI=1 | |
f79bd02d | 11633 | |
21d1c967 | 11634 | GUI_TK_LIBRARY= |
f79bd02d | 11635 | |
21d1c967 GD |
11636 | WXGTK12= |
11637 | WXGTK127= | |
11638 | WXGTK20= | |
f79bd02d | 11639 | |
21d1c967 GD |
11640 | if test "$wxUSE_MSW" = 1 ; then |
11641 | TOOLKIT=MSW | |
11642 | GUIDIST=MSW_DIST | |
f79bd02d | 11643 | |
21d1c967 GD |
11644 | case "${host}" in |
11645 | *-*-mingw32* ) | |
11646 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
11647 | esac | |
f79bd02d JS |
11648 | fi |
11649 | ||
21d1c967 | 11650 | if test "$wxUSE_GTK" = 1; then |
579d8138 | 11651 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
5c0a20c3 | 11652 | echo "configure:11653: checking for GTK+ version" >&5 |
21d1c967 GD |
11653 | |
11654 | gtk_version_cached=1 | |
579d8138 VS |
11655 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
11656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 11657 | else |
579d8138 | 11658 | |
21d1c967 | 11659 | gtk_version_cached=0 |
579d8138 | 11660 | echo "$ac_t""" 1>&6 |
f79bd02d | 11661 | |
21d1c967 GD |
11662 | GTK_MODULES= |
11663 | if test "$wxUSE_THREADS" = "yes"; then | |
11664 | GTK_MODULES=gthread | |
11665 | fi | |
f79bd02d | 11666 | |
21d1c967 GD |
11667 | wx_cv_lib_gtk= |
11668 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11669 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
11670 | if test "${enable_gtktest+set}" = set; then | |
11671 | enableval="$enable_gtktest" | |
579d8138 | 11672 | : |
f79bd02d | 11673 | else |
21d1c967 | 11674 | enable_gtktest=yes |
579d8138 VS |
11675 | fi |
11676 | ||
f79bd02d | 11677 | |
21d1c967 GD |
11678 | pkg_config_args=gtk+-2.0 |
11679 | for module in . $GTK_MODULES | |
11680 | do | |
11681 | case "$module" in | |
579d8138 | 11682 | gthread) |
21d1c967 GD |
11683 | pkg_config_args="$pkg_config_args gthread-2.0" |
11684 | ;; | |
11685 | esac | |
11686 | done | |
11687 | ||
11688 | no_gtk="" | |
f79bd02d | 11689 | |
21d1c967 GD |
11690 | # Extract the first word of "pkg-config", so it can be a program name with args. |
11691 | set dummy pkg-config; ac_word=$2 | |
579d8138 | 11692 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 11693 | echo "configure:11694: checking for $ac_word" >&5 |
579d8138 VS |
11694 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11696 | else |
579d8138 VS |
11697 | case "$PKG_CONFIG" in |
11698 | /*) | |
21d1c967 GD |
11699 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
11700 | ;; | |
21d1c967 | 11701 | *) |
5c0a20c3 VZ |
11702 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
11703 | for ac_dir in $PATH; do | |
579d8138 VS |
11704 | test -z "$ac_dir" && ac_dir=. |
11705 | if test -f $ac_dir/$ac_word; then | |
11706 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11707 | break | |
11708 | fi | |
11709 | done | |
11710 | IFS="$ac_save_ifs" | |
21d1c967 GD |
11711 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
11712 | ;; | |
11713 | esac | |
f79bd02d | 11714 | fi |
579d8138 | 11715 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 11716 | if test -n "$PKG_CONFIG"; then |
579d8138 | 11717 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 11718 | else |
579d8138 | 11719 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
11720 | fi |
11721 | ||
579d8138 | 11722 | |
21d1c967 GD |
11723 | if test x$PKG_CONFIG != xno ; then |
11724 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
11725 | : | |
11726 | else | |
11727 | echo *** pkg-config too old; version 0.7 or better required. | |
11728 | no_gtk=yes | |
11729 | PKG_CONFIG=no | |
11730 | fi | |
11731 | else | |
11732 | no_gtk=yes | |
11733 | fi | |
f79bd02d | 11734 | |
21d1c967 | 11735 | min_gtk_version=2.0.0 |
579d8138 | 11736 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
5c0a20c3 | 11737 | echo "configure:11738: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 11738 | |
21d1c967 GD |
11739 | if test x$PKG_CONFIG != xno ; then |
11740 | ## don't try to run the test against uninstalled libtool libs | |
11741 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
11742 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
11743 | enable_gtktest=no | |
11744 | fi | |
f79bd02d | 11745 | |
21d1c967 GD |
11746 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
11747 | : | |
11748 | else | |
11749 | no_gtk=yes | |
11750 | fi | |
11751 | fi | |
f79bd02d | 11752 | |
21d1c967 GD |
11753 | if test x"$no_gtk" = x ; then |
11754 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
11755 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
11756 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11757 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
11758 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11759 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
11760 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
11761 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
11762 | if test "x$enable_gtktest" = "xyes" ; then | |
11763 | ac_save_CFLAGS="$CFLAGS" | |
11764 | ac_save_LIBS="$LIBS" | |
11765 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
11766 | LIBS="$GTK_LIBS $LIBS" | |
11767 | rm -f conf.gtktest | |
11768 | if test "$cross_compiling" = yes; then | |
11769 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 11770 | else |
579d8138 | 11771 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 11772 | #line 11773 "configure" |
f79bd02d | 11773 | #include "confdefs.h" |
f79bd02d | 11774 | |
21d1c967 GD |
11775 | #include <gtk/gtk.h> |
11776 | #include <stdio.h> | |
11777 | #include <stdlib.h> | |
f79bd02d | 11778 | |
579d8138 | 11779 | int |
21d1c967 GD |
11780 | main () |
11781 | { | |
11782 | int major, minor, micro; | |
11783 | char *tmp_version; | |
f79bd02d | 11784 | |
21d1c967 | 11785 | system ("touch conf.gtktest"); |
f79bd02d | 11786 | |
21d1c967 GD |
11787 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
11788 | tmp_version = g_strdup("$min_gtk_version"); | |
11789 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
11790 | printf("%s, bad version string\n", "$min_gtk_version"); | |
11791 | exit(1); | |
11792 | } | |
f79bd02d | 11793 | |
21d1c967 GD |
11794 | if ((gtk_major_version != $gtk_config_major_version) || |
11795 | (gtk_minor_version != $gtk_config_minor_version) || | |
11796 | (gtk_micro_version != $gtk_config_micro_version)) | |
11797 | { | |
579d8138 | 11798 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
11799 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
11800 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11801 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
11802 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
11803 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
11804 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
11805 | printf("*** required on your system.\n"); | |
11806 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
11807 | printf("*** to point to the correct configuration files\n"); | |
579d8138 | 11808 | } |
21d1c967 GD |
11809 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
11810 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
11811 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
11812 | { | |
11813 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
11814 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
11815 | printf("*** library (version %d.%d.%d)\n", | |
11816 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11817 | } | |
11818 | else | |
11819 | { | |
11820 | if ((gtk_major_version > major) || | |
11821 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
11822 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
11823 | { | |
11824 | return 0; | |
11825 | } | |
11826 | else | |
11827 | { | |
11828 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
11829 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
11830 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
11831 | major, minor, micro); | |
11832 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
11833 | printf("***\n"); | |
11834 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
11835 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
11836 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
11837 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
11838 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
11839 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
11840 | printf("*** so that the correct libraries are found at run-time))\n"); | |
11841 | } | |
11842 | } | |
11843 | return 1; | |
11844 | } | |
f79bd02d | 11845 | |
579d8138 | 11846 | EOF |
5c0a20c3 | 11847 | if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 | 11848 | then |
21d1c967 | 11849 | : |
f79bd02d | 11850 | else |
579d8138 VS |
11851 | echo "configure: failed program was:" >&5 |
11852 | cat conftest.$ac_ext >&5 | |
11853 | rm -fr conftest* | |
11854 | no_gtk=yes | |
f79bd02d | 11855 | fi |
579d8138 | 11856 | rm -fr conftest* |
f79bd02d | 11857 | fi |
579d8138 | 11858 | |
21d1c967 GD |
11859 | CFLAGS="$ac_save_CFLAGS" |
11860 | LIBS="$ac_save_LIBS" | |
11861 | fi | |
11862 | fi | |
11863 | if test "x$no_gtk" = x ; then | |
579d8138 VS |
11864 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
11865 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 11866 | else |
579d8138 | 11867 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
11868 | if test "$PKG_CONFIG" = "no" ; then |
11869 | echo "*** A new enough version of pkg-config was not found." | |
11870 | echo "*** See http://pkgconfig.sourceforge.net" | |
11871 | else | |
11872 | if test -f conf.gtktest ; then | |
11873 | : | |
11874 | else | |
11875 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
11876 | ac_save_CFLAGS="$CFLAGS" |
11877 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
11878 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
11879 | LIBS="$LIBS $GTK_LIBS" | |
579d8138 | 11880 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 11881 | #line 11882 "configure" |
f79bd02d | 11882 | #include "confdefs.h" |
21d1c967 GD |
11883 | |
11884 | #include <gtk/gtk.h> | |
11885 | #include <stdio.h> | |
f79bd02d | 11886 | |
579d8138 VS |
11887 | int main() { |
11888 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
11889 | ; return 0; } | |
11890 | EOF | |
5c0a20c3 | 11891 | if { (eval echo configure:11892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 11892 | rm -rf conftest* |
21d1c967 GD |
11893 | echo "*** The test program compiled, but did not run. This usually means" |
11894 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
11895 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
11896 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
11897 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
11898 | echo "*** is required on your system" | |
11899 | echo "***" | |
11900 | echo "*** If you have an old version installed, it is best to remove it, although" | |
579d8138 | 11901 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 11902 | else |
579d8138 VS |
11903 | echo "configure: failed program was:" >&5 |
11904 | cat conftest.$ac_ext >&5 | |
11905 | rm -rf conftest* | |
11906 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
11907 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
f79bd02d | 11908 | fi |
579d8138 | 11909 | rm -f conftest* |
21d1c967 GD |
11910 | CFLAGS="$ac_save_CFLAGS" |
11911 | LIBS="$ac_save_LIBS" | |
11912 | fi | |
11913 | fi | |
11914 | GTK_CFLAGS="" | |
11915 | GTK_LIBS="" | |
11916 | : | |
11917 | fi | |
579d8138 VS |
11918 | |
11919 | ||
21d1c967 | 11920 | rm -f conf.gtktest |
f79bd02d | 11921 | |
579d8138 VS |
11922 | |
11923 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
11924 | ||
11925 | succeeded=no | |
11926 | ||
11927 | if test -z "$PKG_CONFIG"; then | |
11928 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11929 | set dummy pkg-config; ac_word=$2 | |
11930 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
5c0a20c3 | 11931 | echo "configure:11932: checking for $ac_word" >&5 |
579d8138 VS |
11932 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
11933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11934 | else | |
11935 | case "$PKG_CONFIG" in | |
11936 | /*) | |
11937 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11938 | ;; | |
579d8138 | 11939 | *) |
5c0a20c3 VZ |
11940 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
11941 | for ac_dir in $PATH; do | |
579d8138 VS |
11942 | test -z "$ac_dir" && ac_dir=. |
11943 | if test -f $ac_dir/$ac_word; then | |
11944 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
11945 | break | |
11946 | fi | |
11947 | done | |
11948 | IFS="$ac_save_ifs" | |
11949 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
11950 | ;; | |
11951 | esac | |
11952 | fi | |
11953 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11954 | if test -n "$PKG_CONFIG"; then | |
11955 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
11956 | else | |
11957 | echo "$ac_t""no" 1>&6 | |
11958 | fi | |
11959 | ||
11960 | fi | |
11961 | ||
11962 | if test "$PKG_CONFIG" = "no" ; then | |
11963 | echo "*** The pkg-config script could not be found. Make sure it is" | |
11964 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
11965 | echo "*** to the full path to pkg-config." | |
11966 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
11967 | else | |
11968 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
11969 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
11970 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
5c0a20c3 | 11971 | echo "configure:11972: checking for pangoft2" >&5 |
579d8138 VS |
11972 | |
11973 | if $PKG_CONFIG --exists "pangoft2" ; then | |
11974 | echo "$ac_t""yes" 1>&6 | |
11975 | succeeded=yes | |
11976 | ||
11977 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
5c0a20c3 | 11978 | echo "configure:11979: checking PANGOFT2_CFLAGS" >&5 |
579d8138 VS |
11979 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
11980 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
11981 | ||
11982 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
5c0a20c3 | 11983 | echo "configure:11984: checking PANGOFT2_LIBS" >&5 |
579d8138 VS |
11984 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
11985 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
11986 | else | |
11987 | PANGOFT2_CFLAGS="" | |
11988 | PANGOFT2_LIBS="" | |
11989 | ## If we have a custom action on failure, don't print errors, but | |
11990 | ## do set a variable so people can do so. | |
11991 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
5c0a20c3 | 11992 | |
579d8138 VS |
11993 | fi |
11994 | ||
11995 | ||
11996 | ||
11997 | else | |
11998 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
11999 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
12000 | fi | |
12001 | fi | |
12002 | ||
12003 | if test $succeeded = yes; then | |
5c0a20c3 VZ |
12004 | |
12005 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
12006 | LIBS="$LIBS $PANGOFT2_LIBS" | |
12007 | ||
579d8138 | 12008 | else |
5c0a20c3 VZ |
12009 | |
12010 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
12011 | wxUSE_PRINTING_ARCHITECTURE="no" | |
12012 | ||
12013 | ||
579d8138 VS |
12014 | fi |
12015 | ||
579d8138 | 12016 | fi |
21d1c967 | 12017 | fi |
f79bd02d | 12018 | |
21d1c967 | 12019 | if test -z "$wx_cv_lib_gtk"; then |
579d8138 | 12020 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12021 | if test "${with_gtk_prefix+set}" = set; then |
12022 | withval="$with_gtk_prefix" | |
12023 | gtk_config_prefix="$withval" | |
12024 | else | |
12025 | gtk_config_prefix="" | |
579d8138 | 12026 | fi |
f79bd02d | 12027 | |
21d1c967 GD |
12028 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12029 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12030 | withval="$with_gtk_exec_prefix" | |
12031 | gtk_config_exec_prefix="$withval" | |
12032 | else | |
12033 | gtk_config_exec_prefix="" | |
579d8138 VS |
12034 | fi |
12035 | ||
21d1c967 GD |
12036 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12037 | if test "${enable_gtktest+set}" = set; then | |
12038 | enableval="$enable_gtktest" | |
579d8138 | 12039 | : |
21d1c967 GD |
12040 | else |
12041 | enable_gtktest=yes | |
579d8138 VS |
12042 | fi |
12043 | ||
21d1c967 GD |
12044 | |
12045 | for module in . $GTK_MODULES | |
12046 | do | |
12047 | case "$module" in | |
579d8138 | 12048 | gthread) |
21d1c967 GD |
12049 | gtk_config_args="$gtk_config_args gthread" |
12050 | ;; | |
12051 | esac | |
12052 | done | |
12053 | ||
12054 | if test x$gtk_config_exec_prefix != x ; then | |
12055 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12056 | if test x${GTK_CONFIG+set} != xset ; then | |
12057 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12058 | fi | |
12059 | fi | |
12060 | if test x$gtk_config_prefix != x ; then | |
12061 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12062 | if test x${GTK_CONFIG+set} != xset ; then | |
12063 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12064 | fi | |
12065 | fi | |
12066 | ||
12067 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12068 | set dummy gtk-config; ac_word=$2 | |
579d8138 | 12069 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 12070 | echo "configure:12071: checking for $ac_word" >&5 |
579d8138 VS |
12071 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12072 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12073 | else |
579d8138 VS |
12074 | case "$GTK_CONFIG" in |
12075 | /*) | |
21d1c967 GD |
12076 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12077 | ;; | |
21d1c967 | 12078 | *) |
5c0a20c3 VZ |
12079 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
12080 | for ac_dir in $PATH; do | |
579d8138 VS |
12081 | test -z "$ac_dir" && ac_dir=. |
12082 | if test -f $ac_dir/$ac_word; then | |
12083 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12084 | break | |
12085 | fi | |
12086 | done | |
12087 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12088 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12089 | ;; | |
12090 | esac | |
12091 | fi | |
579d8138 | 12092 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12093 | if test -n "$GTK_CONFIG"; then |
579d8138 | 12094 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12095 | else |
579d8138 | 12096 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12097 | fi |
12098 | ||
12099 | min_gtk_version=1.2.7 | |
579d8138 | 12100 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
5c0a20c3 | 12101 | echo "configure:12102: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12102 | no_gtk="" |
12103 | if test "$GTK_CONFIG" = "no" ; then | |
12104 | no_gtk=yes | |
12105 | else | |
12106 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12107 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12108 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12109 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12110 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12111 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12112 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12113 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12114 | if test "x$enable_gtktest" = "xyes" ; then | |
12115 | ac_save_CFLAGS="$CFLAGS" | |
12116 | ac_save_LIBS="$LIBS" | |
12117 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12118 | LIBS="$GTK_LIBS $LIBS" | |
12119 | rm -f conf.gtktest | |
12120 | if test "$cross_compiling" = yes; then | |
12121 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12122 | else |
579d8138 | 12123 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 12124 | #line 12125 "configure" |
f79bd02d JS |
12125 | #include "confdefs.h" |
12126 | ||
21d1c967 GD |
12127 | #include <gtk/gtk.h> |
12128 | #include <stdio.h> | |
12129 | #include <stdlib.h> | |
f79bd02d | 12130 | |
579d8138 | 12131 | int |
21d1c967 GD |
12132 | main () |
12133 | { | |
12134 | int major, minor, micro; | |
12135 | char *tmp_version; | |
12136 | ||
12137 | system ("touch conf.gtktest"); | |
12138 | ||
12139 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12140 | tmp_version = g_strdup("$min_gtk_version"); | |
12141 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12142 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12143 | exit(1); | |
12144 | } | |
90dd450c | 12145 | |
21d1c967 GD |
12146 | if ((gtk_major_version != $gtk_config_major_version) || |
12147 | (gtk_minor_version != $gtk_config_minor_version) || | |
12148 | (gtk_micro_version != $gtk_config_micro_version)) | |
12149 | { | |
579d8138 | 12150 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12151 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12152 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12153 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12154 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12155 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12156 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12157 | printf("*** required on your system.\n"); | |
12158 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12159 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12160 | printf("*** before re-running configure\n"); | |
579d8138 | 12161 | } |
21d1c967 GD |
12162 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12163 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12164 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12165 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12166 | { | |
12167 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12168 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12169 | printf("*** library (version %d.%d.%d)\n", | |
12170 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12171 | } | |
12172 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12173 | else | |
12174 | { | |
12175 | if ((gtk_major_version > major) || | |
12176 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12177 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12178 | { | |
12179 | return 0; | |
12180 | } | |
12181 | else | |
12182 | { | |
12183 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12184 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12185 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12186 | major, minor, micro); | |
12187 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12188 | printf("***\n"); | |
12189 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12190 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12191 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12192 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12193 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12194 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12195 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12196 | } | |
12197 | } | |
12198 | return 1; | |
12199 | } | |
12200 | ||
579d8138 | 12201 | EOF |
5c0a20c3 | 12202 | if { (eval echo configure:12203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 | 12203 | then |
21d1c967 GD |
12204 | : |
12205 | else | |
579d8138 VS |
12206 | echo "configure: failed program was:" >&5 |
12207 | cat conftest.$ac_ext >&5 | |
12208 | rm -fr conftest* | |
12209 | no_gtk=yes | |
21d1c967 | 12210 | fi |
579d8138 | 12211 | rm -fr conftest* |
21d1c967 | 12212 | fi |
579d8138 | 12213 | |
21d1c967 GD |
12214 | CFLAGS="$ac_save_CFLAGS" |
12215 | LIBS="$ac_save_LIBS" | |
12216 | fi | |
12217 | fi | |
12218 | if test "x$no_gtk" = x ; then | |
579d8138 VS |
12219 | echo "$ac_t""yes" 1>&6 |
12220 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12221 | else |
579d8138 | 12222 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12223 | if test "$GTK_CONFIG" = "no" ; then |
12224 | echo "*** The gtk-config script installed by GTK could not be found" | |
12225 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12226 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12227 | echo "*** full path to gtk-config." | |
12228 | else | |
12229 | if test -f conf.gtktest ; then | |
12230 | : | |
12231 | else | |
12232 | echo "*** Could not run GTK test program, checking why..." | |
12233 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12234 | LIBS="$LIBS $GTK_LIBS" | |
579d8138 | 12235 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 12236 | #line 12237 "configure" |
21d1c967 GD |
12237 | #include "confdefs.h" |
12238 | ||
12239 | #include <gtk/gtk.h> | |
12240 | #include <stdio.h> | |
12241 | ||
579d8138 VS |
12242 | int main() { |
12243 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12244 | ; return 0; } | |
12245 | EOF | |
5c0a20c3 | 12246 | if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 12247 | rm -rf conftest* |
21d1c967 GD |
12248 | echo "*** The test program compiled, but did not run. This usually means" |
12249 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12250 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12251 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12252 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12253 | echo "*** is required on your system" | |
12254 | echo "***" | |
12255 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12256 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12257 | echo "***" | |
12258 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12259 | echo "*** came with the system with the command" | |
12260 | echo "***" | |
579d8138 | 12261 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12262 | else |
579d8138 VS |
12263 | echo "configure: failed program was:" >&5 |
12264 | cat conftest.$ac_ext >&5 | |
12265 | rm -rf conftest* | |
12266 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12267 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12268 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
579d8138 | 12269 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12270 | fi |
579d8138 | 12271 | rm -f conftest* |
21d1c967 GD |
12272 | CFLAGS="$ac_save_CFLAGS" |
12273 | LIBS="$ac_save_LIBS" | |
12274 | fi | |
12275 | fi | |
12276 | GTK_CFLAGS="" | |
12277 | GTK_LIBS="" | |
12278 | : | |
12279 | fi | |
579d8138 VS |
12280 | |
12281 | ||
21d1c967 GD |
12282 | rm -f conf.gtktest |
12283 | ||
12284 | fi | |
12285 | ||
12286 | if test -z "$wx_cv_lib_gtk"; then | |
579d8138 | 12287 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12288 | if test "${with_gtk_prefix+set}" = set; then |
12289 | withval="$with_gtk_prefix" | |
12290 | gtk_config_prefix="$withval" | |
12291 | else | |
12292 | gtk_config_prefix="" | |
579d8138 | 12293 | fi |
f79bd02d | 12294 | |
21d1c967 GD |
12295 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12296 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12297 | withval="$with_gtk_exec_prefix" | |
12298 | gtk_config_exec_prefix="$withval" | |
12299 | else | |
12300 | gtk_config_exec_prefix="" | |
579d8138 VS |
12301 | fi |
12302 | ||
21d1c967 GD |
12303 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12304 | if test "${enable_gtktest+set}" = set; then | |
12305 | enableval="$enable_gtktest" | |
579d8138 | 12306 | : |
90dd450c | 12307 | else |
21d1c967 | 12308 | enable_gtktest=yes |
579d8138 VS |
12309 | fi |
12310 | ||
21d1c967 GD |
12311 | |
12312 | for module in . $GTK_MODULES | |
12313 | do | |
12314 | case "$module" in | |
579d8138 | 12315 | gthread) |
21d1c967 GD |
12316 | gtk_config_args="$gtk_config_args gthread" |
12317 | ;; | |
12318 | esac | |
12319 | done | |
12320 | ||
12321 | if test x$gtk_config_exec_prefix != x ; then | |
12322 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12323 | if test x${GTK_CONFIG+set} != xset ; then | |
12324 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12325 | fi | |
12326 | fi | |
12327 | if test x$gtk_config_prefix != x ; then | |
12328 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12329 | if test x${GTK_CONFIG+set} != xset ; then | |
12330 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12331 | fi | |
12332 | fi | |
12333 | ||
12334 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12335 | set dummy gtk-config; ac_word=$2 | |
579d8138 | 12336 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 12337 | echo "configure:12338: checking for $ac_word" >&5 |
579d8138 VS |
12338 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12339 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12340 | else |
579d8138 VS |
12341 | case "$GTK_CONFIG" in |
12342 | /*) | |
21d1c967 GD |
12343 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12344 | ;; | |
21d1c967 | 12345 | *) |
5c0a20c3 VZ |
12346 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
12347 | for ac_dir in $PATH; do | |
579d8138 VS |
12348 | test -z "$ac_dir" && ac_dir=. |
12349 | if test -f $ac_dir/$ac_word; then | |
12350 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12351 | break | |
12352 | fi | |
12353 | done | |
12354 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12355 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12356 | ;; | |
12357 | esac | |
12358 | fi | |
579d8138 | 12359 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12360 | if test -n "$GTK_CONFIG"; then |
579d8138 | 12361 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12362 | else |
579d8138 | 12363 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12364 | fi |
12365 | ||
12366 | min_gtk_version=1.2.3 | |
579d8138 | 12367 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
5c0a20c3 | 12368 | echo "configure:12369: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12369 | no_gtk="" |
12370 | if test "$GTK_CONFIG" = "no" ; then | |
12371 | no_gtk=yes | |
12372 | else | |
12373 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12374 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12375 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12376 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12377 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12378 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12379 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12380 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12381 | if test "x$enable_gtktest" = "xyes" ; then | |
12382 | ac_save_CFLAGS="$CFLAGS" | |
12383 | ac_save_LIBS="$LIBS" | |
12384 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12385 | LIBS="$GTK_LIBS $LIBS" | |
12386 | rm -f conf.gtktest | |
12387 | if test "$cross_compiling" = yes; then | |
12388 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12389 | else | |
579d8138 | 12390 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 12391 | #line 12392 "configure" |
f79bd02d | 12392 | #include "confdefs.h" |
21d1c967 GD |
12393 | |
12394 | #include <gtk/gtk.h> | |
12395 | #include <stdio.h> | |
12396 | #include <stdlib.h> | |
12397 | ||
579d8138 | 12398 | int |
21d1c967 GD |
12399 | main () |
12400 | { | |
12401 | int major, minor, micro; | |
12402 | char *tmp_version; | |
12403 | ||
12404 | system ("touch conf.gtktest"); | |
12405 | ||
12406 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12407 | tmp_version = g_strdup("$min_gtk_version"); | |
12408 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12409 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12410 | exit(1); | |
12411 | } | |
12412 | ||
12413 | if ((gtk_major_version != $gtk_config_major_version) || | |
12414 | (gtk_minor_version != $gtk_config_minor_version) || | |
12415 | (gtk_micro_version != $gtk_config_micro_version)) | |
12416 | { | |
579d8138 | 12417 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12418 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12419 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12420 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12421 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12422 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12423 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12424 | printf("*** required on your system.\n"); | |
12425 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12426 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12427 | printf("*** before re-running configure\n"); | |
579d8138 | 12428 | } |
21d1c967 GD |
12429 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12430 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12431 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12432 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12433 | { | |
12434 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12435 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12436 | printf("*** library (version %d.%d.%d)\n", | |
12437 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12438 | } | |
12439 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12440 | else | |
12441 | { | |
12442 | if ((gtk_major_version > major) || | |
12443 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12444 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12445 | { | |
12446 | return 0; | |
12447 | } | |
12448 | else | |
12449 | { | |
12450 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12451 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12452 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12453 | major, minor, micro); | |
12454 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12455 | printf("***\n"); | |
12456 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12457 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12458 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12459 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12460 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12461 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12462 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12463 | } | |
12464 | } | |
12465 | return 1; | |
12466 | } | |
12467 | ||
579d8138 | 12468 | EOF |
5c0a20c3 | 12469 | if { (eval echo configure:12470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 | 12470 | then |
21d1c967 GD |
12471 | : |
12472 | else | |
579d8138 VS |
12473 | echo "configure: failed program was:" >&5 |
12474 | cat conftest.$ac_ext >&5 | |
12475 | rm -fr conftest* | |
12476 | no_gtk=yes | |
21d1c967 | 12477 | fi |
579d8138 | 12478 | rm -fr conftest* |
21d1c967 | 12479 | fi |
579d8138 | 12480 | |
21d1c967 GD |
12481 | CFLAGS="$ac_save_CFLAGS" |
12482 | LIBS="$ac_save_LIBS" | |
12483 | fi | |
12484 | fi | |
12485 | if test "x$no_gtk" = x ; then | |
579d8138 VS |
12486 | echo "$ac_t""yes" 1>&6 |
12487 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 12488 | else |
579d8138 | 12489 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12490 | if test "$GTK_CONFIG" = "no" ; then |
12491 | echo "*** The gtk-config script installed by GTK could not be found" | |
12492 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12493 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12494 | echo "*** full path to gtk-config." | |
12495 | else | |
12496 | if test -f conf.gtktest ; then | |
12497 | : | |
12498 | else | |
12499 | echo "*** Could not run GTK test program, checking why..." | |
12500 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12501 | LIBS="$LIBS $GTK_LIBS" | |
579d8138 | 12502 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 12503 | #line 12504 "configure" |
21d1c967 GD |
12504 | #include "confdefs.h" |
12505 | ||
12506 | #include <gtk/gtk.h> | |
12507 | #include <stdio.h> | |
f79bd02d | 12508 | |
579d8138 VS |
12509 | int main() { |
12510 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12511 | ; return 0; } | |
12512 | EOF | |
5c0a20c3 | 12513 | if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 12514 | rm -rf conftest* |
21d1c967 GD |
12515 | echo "*** The test program compiled, but did not run. This usually means" |
12516 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12517 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12518 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12519 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12520 | echo "*** is required on your system" | |
12521 | echo "***" | |
12522 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12523 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12524 | echo "***" | |
12525 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12526 | echo "*** came with the system with the command" | |
12527 | echo "***" | |
579d8138 | 12528 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12529 | else |
579d8138 VS |
12530 | echo "configure: failed program was:" >&5 |
12531 | cat conftest.$ac_ext >&5 | |
12532 | rm -rf conftest* | |
12533 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12534 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12535 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
579d8138 | 12536 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12537 | fi |
579d8138 | 12538 | rm -f conftest* |
21d1c967 GD |
12539 | CFLAGS="$ac_save_CFLAGS" |
12540 | LIBS="$ac_save_LIBS" | |
12541 | fi | |
12542 | fi | |
12543 | GTK_CFLAGS="" | |
12544 | GTK_LIBS="" | |
12545 | : | |
12546 | fi | |
579d8138 VS |
12547 | |
12548 | ||
21d1c967 | 12549 | rm -f conf.gtktest |
f79bd02d | 12550 | |
21d1c967 GD |
12551 | fi |
12552 | ||
12553 | if test -z "$wx_cv_lib_gtk"; then | |
12554 | wx_cv_lib_gtk=none | |
12555 | else | |
12556 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
12557 | wx_cv_libs_gtk=$GTK_LIBS | |
12558 | fi | |
579d8138 VS |
12559 | |
12560 | ||
328a083c | 12561 | fi |
e07802fc | 12562 | |
579d8138 | 12563 | |
21d1c967 | 12564 | if test "$gtk_version_cached" = 1; then |
579d8138 | 12565 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
12566 | fi |
12567 | ||
12568 | case "$wx_cv_lib_gtk" in | |
12569 | 2.0) WXGTK20=1 | |
12570 | ;; | |
12571 | 1.2.7) WXGTK127=1 | |
12572 | WXGTK12=1 | |
12573 | ;; | |
12574 | 1.2.3) WXGTK12=1 | |
12575 | ;; | |
579d8138 | 12576 | *) { echo "configure: error: |
328a083c RR |
12577 | Please check that gtk-config is in path, the directory |
12578 | where GTK+ libraries are installed (returned by | |
12579 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
12580 | equivalent variable and GTK+ is version 1.2.3 or above. | |
579d8138 | 12581 | " 1>&2; exit 1; } |
21d1c967 GD |
12582 | ;; |
12583 | esac | |
12584 | ||
12585 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
12586 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
12587 | ||
12588 | AFMINSTALL=afminstall | |
12589 | TOOLKIT=GTK | |
12590 | GUIDIST=GTK_DIST | |
12591 | ||
579d8138 | 12592 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
5c0a20c3 | 12593 | echo "configure:12594: checking for gdk_im_open in -lgdk" >&5 |
579d8138 VS |
12594 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
12595 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12596 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12597 | else |
579d8138 | 12598 | ac_save_LIBS="$LIBS" |
21d1c967 | 12599 | LIBS="-lgdk $LIBS" |
579d8138 | 12600 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 12601 | #line 12602 "configure" |
90dd450c VZ |
12602 | #include "confdefs.h" |
12603 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12604 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
12605 | builtin and then its argument prototype would still apply. */ |
12606 | char gdk_im_open(); | |
12607 | ||
12608 | int main() { | |
12609 | gdk_im_open() | |
12610 | ; return 0; } | |
12611 | EOF | |
5c0a20c3 | 12612 | if { (eval echo configure:12613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
12613 | rm -rf conftest* |
12614 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12615 | else | |
12616 | echo "configure: failed program was:" >&5 | |
12617 | cat conftest.$ac_ext >&5 | |
12618 | rm -rf conftest* | |
12619 | eval "ac_cv_lib_$ac_lib_var=no" | |
12620 | fi | |
12621 | rm -f conftest* | |
12622 | LIBS="$ac_save_LIBS" | |
12623 | ||
12624 | fi | |
12625 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
12626 | echo "$ac_t""yes" 1>&6 | |
12627 | cat >> confdefs.h <<\EOF | |
21d1c967 GD |
12628 | #define HAVE_XIM 1 |
12629 | EOF | |
12630 | ||
579d8138 VS |
12631 | else |
12632 | echo "$ac_t""no" 1>&6 | |
90dd450c | 12633 | fi |
1e6feb95 | 12634 | |
21d1c967 | 12635 | fi |
1e6feb95 | 12636 | |
21d1c967 | 12637 | if test "$wxUSE_MGL" = 1; then |
579d8138 | 12638 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
5c0a20c3 | 12639 | echo "configure:12640: checking for SciTech MGL library" >&5 |
21d1c967 | 12640 | if test "x$MGL_ROOT" = x ; then |
579d8138 VS |
12641 | echo "$ac_t""not found" 1>&6 |
12642 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 12643 | else |
579d8138 | 12644 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
12645 | fi |
12646 | ||
12647 | case "${host}" in | |
12648 | *-*-linux* ) | |
12649 | mgl_os=linux/gcc/glibc | |
12650 | ;; | |
12651 | *-pc-msdosdjgpp ) | |
12652 | mgl_os=dos32/dj2 | |
12653 | ;; | |
12654 | *) | |
579d8138 | 12655 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 12656 | esac |
1e6feb95 | 12657 | |
21d1c967 | 12658 | mgl_lib_type="" |
3fcdd07b | 12659 | |
21d1c967 GD |
12660 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
12661 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
12662 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
12663 | mgl_lib_type=debug | |
12664 | fi | |
12665 | fi | |
12666 | if test "x$mgl_lib_type" = x ; then | |
12667 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
12668 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
12669 | mgl_lib_type=release | |
12670 | else | |
579d8138 | 12671 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 12672 | fi |
90dd450c | 12673 | fi |
2224580a | 12674 | |
1d1b75ac VZ |
12675 | wxUSE_UNIVERSAL="yes" |
12676 | ||
21d1c967 GD |
12677 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
12678 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
12679 | ||
90dd450c | 12680 | AFMINSTALL=afminstall |
21d1c967 GD |
12681 | TOOLKIT=MGL |
12682 | GUIDIST=MGL_DIST | |
12683 | fi | |
dad6c0ea | 12684 | |
21d1c967 | 12685 | if test "$wxUSE_MICROWIN" = 1; then |
579d8138 | 12686 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
5c0a20c3 | 12687 | echo "configure:12688: checking for MicroWindows" >&5 |
21d1c967 | 12688 | if test "x$MICROWINDOWS" = x ; then |
579d8138 VS |
12689 | echo "$ac_t""not found" 1>&6 |
12690 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 12691 | else |
579d8138 | 12692 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 12693 | fi |
f6bcfd97 | 12694 | |
21d1c967 | 12695 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
579d8138 | 12696 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 12697 | else |
579d8138 | 12698 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 12699 | fi |
0b2effe9 | 12700 | |
21d1c967 GD |
12701 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
12702 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
12703 | ||
1d1b75ac VZ |
12704 | wxUSE_UNIVERSAL="yes" |
12705 | ||
21d1c967 GD |
12706 | AFMINSTALL=afminstall |
12707 | TOOLKIT=MICROWIN | |
12708 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
12709 | |
12710 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 12711 | fi |
f6bcfd97 | 12712 | |
21d1c967 | 12713 | if test "$wxUSE_X11" = 1; then |
579d8138 VS |
12714 | # If we find X, set shell vars x_includes and x_libraries to the |
12715 | # paths, otherwise set no_x=yes. | |
12716 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
12717 | # --without-x overrides everything else, but does not touch the cache. | |
12718 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
5c0a20c3 | 12719 | echo "configure:12720: checking for X" >&5 |
d8356fa3 | 12720 | |
21d1c967 GD |
12721 | # Check whether --with-x or --without-x was given. |
12722 | if test "${with_x+set}" = set; then | |
12723 | withval="$with_x" | |
579d8138 VS |
12724 | : |
12725 | fi | |
2224580a | 12726 | |
21d1c967 GD |
12727 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
12728 | if test "x$with_x" = xno; then | |
12729 | # The user explicitly disabled X. | |
12730 | have_x=disabled | |
12731 | else | |
12732 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
12733 | # Both variables are already set. | |
12734 | have_x=yes | |
12735 | else | |
579d8138 VS |
12736 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
12737 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
12738 | else |
12739 | # One or both of the vars are not set, and there is no cached value. | |
579d8138 VS |
12740 | ac_x_includes=NO ac_x_libraries=NO |
12741 | rm -fr conftestdir | |
12742 | if mkdir conftestdir; then | |
12743 | cd conftestdir | |
21d1c967 | 12744 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
579d8138 | 12745 | cat > Imakefile <<'EOF' |
21d1c967 GD |
12746 | acfindx: |
12747 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
12748 | EOF | |
12749 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
12750 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
12751 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
12752 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
12753 | for ac_extension in a so sl; do | |
12754 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
579d8138 | 12755 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
12756 | ac_im_usrlibdir=$ac_im_libdir; break |
12757 | fi | |
12758 | done | |
12759 | # Screen out bogus values from the imake configuration. They are | |
12760 | # bogus both because they are the default anyway, and because | |
12761 | # using them would break gcc on systems where it needs fixed includes. | |
579d8138 | 12762 | case "$ac_im_incroot" in |
21d1c967 | 12763 | /usr/include) ;; |
579d8138 | 12764 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 12765 | esac |
579d8138 | 12766 | case "$ac_im_usrlibdir" in |
21d1c967 | 12767 | /usr/lib | /lib) ;; |
579d8138 | 12768 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
12769 | esac |
12770 | fi | |
12771 | cd .. | |
579d8138 | 12772 | rm -fr conftestdir |
21d1c967 | 12773 | fi |
10f2d63a | 12774 | |
579d8138 VS |
12775 | if test "$ac_x_includes" = NO; then |
12776 | # Guess where to find include files, by looking for this one X11 .h file. | |
12777 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
12778 | ||
21d1c967 | 12779 | # First, try using that file with no special directory specified. |
579d8138 | 12780 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 12781 | #line 12782 "configure" |
21d1c967 | 12782 | #include "confdefs.h" |
579d8138 VS |
12783 | #include <$x_direct_test_include> |
12784 | EOF | |
12785 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
12786 | { (eval echo configure:12787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
12787 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
12788 | if test -z "$ac_err"; then |
12789 | rm -rf conftest* | |
21d1c967 GD |
12790 | # We can compile using X headers with no special include directory. |
12791 | ac_x_includes= | |
90dd450c | 12792 | else |
579d8138 VS |
12793 | echo "$ac_err" >&5 |
12794 | echo "configure: failed program was:" >&5 | |
90dd450c | 12795 | cat conftest.$ac_ext >&5 |
579d8138 VS |
12796 | rm -rf conftest* |
12797 | # Look for the header file in a standard set of common directories. | |
12798 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12799 | for ac_dir in \ | |
12800 | /usr/X11/include \ | |
12801 | /usr/X11R6/include \ | |
12802 | /usr/X11R5/include \ | |
12803 | /usr/X11R4/include \ | |
12804 | \ | |
12805 | /usr/include/X11 \ | |
12806 | /usr/include/X11R6 \ | |
12807 | /usr/include/X11R5 \ | |
12808 | /usr/include/X11R4 \ | |
12809 | \ | |
12810 | /usr/local/X11/include \ | |
12811 | /usr/local/X11R6/include \ | |
12812 | /usr/local/X11R5/include \ | |
12813 | /usr/local/X11R4/include \ | |
12814 | \ | |
12815 | /usr/local/include/X11 \ | |
12816 | /usr/local/include/X11R6 \ | |
12817 | /usr/local/include/X11R5 \ | |
12818 | /usr/local/include/X11R4 \ | |
12819 | \ | |
12820 | /usr/X386/include \ | |
12821 | /usr/x386/include \ | |
12822 | /usr/XFree86/include/X11 \ | |
12823 | \ | |
12824 | /usr/include \ | |
12825 | /usr/local/include \ | |
12826 | /usr/unsupported/include \ | |
12827 | /usr/athena/include \ | |
12828 | /usr/local/x11r5/include \ | |
12829 | /usr/lpp/Xamples/include \ | |
12830 | \ | |
12831 | /usr/openwin/include \ | |
12832 | /usr/openwin/share/include \ | |
12833 | ; \ | |
12834 | do | |
12835 | if test -r "$ac_dir/$x_direct_test_include"; then | |
12836 | ac_x_includes=$ac_dir | |
12837 | break | |
12838 | fi | |
12839 | done | |
3a922bb4 | 12840 | fi |
579d8138 VS |
12841 | rm -f conftest* |
12842 | fi # $ac_x_includes = NO | |
10f2d63a | 12843 | |
579d8138 | 12844 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 12845 | # Check for the libraries. |
579d8138 VS |
12846 | |
12847 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
12848 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
12849 | ||
21d1c967 GD |
12850 | # See if we find them without any special options. |
12851 | # Don't add to $LIBS permanently. | |
579d8138 VS |
12852 | ac_save_LIBS="$LIBS" |
12853 | LIBS="-l$x_direct_test_library $LIBS" | |
12854 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 12855 | #line 12856 "configure" |
3a922bb4 | 12856 | #include "confdefs.h" |
579d8138 VS |
12857 | |
12858 | int main() { | |
12859 | ${x_direct_test_function}() | |
12860 | ; return 0; } | |
12861 | EOF | |
5c0a20c3 | 12862 | if { (eval echo configure:12863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
12863 | rm -rf conftest* |
12864 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
12865 | # We can link X programs with no special library path. |
12866 | ac_x_libraries= | |
3a922bb4 | 12867 | else |
579d8138 VS |
12868 | echo "configure: failed program was:" >&5 |
12869 | cat conftest.$ac_ext >&5 | |
12870 | rm -rf conftest* | |
12871 | LIBS="$ac_save_LIBS" | |
12872 | # First see if replacing the include by lib works. | |
12873 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
12874 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
12875 | /usr/X11/lib \ | |
12876 | /usr/X11R6/lib \ | |
12877 | /usr/X11R5/lib \ | |
12878 | /usr/X11R4/lib \ | |
12879 | \ | |
12880 | /usr/lib/X11 \ | |
12881 | /usr/lib/X11R6 \ | |
12882 | /usr/lib/X11R5 \ | |
12883 | /usr/lib/X11R4 \ | |
12884 | \ | |
12885 | /usr/local/X11/lib \ | |
12886 | /usr/local/X11R6/lib \ | |
12887 | /usr/local/X11R5/lib \ | |
12888 | /usr/local/X11R4/lib \ | |
12889 | \ | |
12890 | /usr/local/lib/X11 \ | |
12891 | /usr/local/lib/X11R6 \ | |
12892 | /usr/local/lib/X11R5 \ | |
12893 | /usr/local/lib/X11R4 \ | |
12894 | \ | |
12895 | /usr/X386/lib \ | |
12896 | /usr/x386/lib \ | |
12897 | /usr/XFree86/lib/X11 \ | |
12898 | \ | |
12899 | /usr/lib \ | |
12900 | /usr/local/lib \ | |
12901 | /usr/unsupported/lib \ | |
12902 | /usr/athena/lib \ | |
12903 | /usr/local/x11r5/lib \ | |
12904 | /usr/lpp/Xamples/lib \ | |
12905 | /lib/usr/lib/X11 \ | |
12906 | \ | |
12907 | /usr/openwin/lib \ | |
12908 | /usr/openwin/share/lib \ | |
12909 | ; \ | |
21d1c967 GD |
12910 | do |
12911 | for ac_extension in a so sl; do | |
579d8138 | 12912 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
12913 | ac_x_libraries=$ac_dir |
12914 | break 2 | |
12915 | fi | |
12916 | done | |
12917 | done | |
3a922bb4 | 12918 | fi |
579d8138 VS |
12919 | rm -f conftest* |
12920 | fi # $ac_x_libraries = NO | |
90dd450c | 12921 | |
579d8138 | 12922 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
12923 | # Didn't find X anywhere. Cache the known absence of X. |
12924 | ac_cv_have_x="have_x=no" | |
12925 | else | |
12926 | # Record where we found X for the cache. | |
12927 | ac_cv_have_x="have_x=yes \ | |
12928 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 12929 | fi |
21d1c967 GD |
12930 | fi |
12931 | fi | |
12932 | eval "$ac_cv_have_x" | |
12933 | fi # $with_x != no | |
90dd450c | 12934 | |
21d1c967 | 12935 | if test "$have_x" != yes; then |
579d8138 | 12936 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
12937 | no_x=yes |
12938 | else | |
12939 | # If each of the values was on the command line, it overrides each guess. | |
12940 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
12941 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
12942 | # Update the cache value to reflect the command line values. | |
12943 | ac_cv_have_x="have_x=yes \ | |
12944 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
579d8138 | 12945 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 12946 | fi |
90dd450c | 12947 | |
21d1c967 | 12948 | if test "$no_x" = yes; then |
90dd450c | 12949 | # Not all programs may use this symbol, but it does not hurt to define it. |
579d8138 | 12950 | cat >> confdefs.h <<\EOF |
90dd450c VZ |
12951 | #define X_DISPLAY_MISSING 1 |
12952 | EOF | |
12953 | ||
12954 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
12955 | else | |
12956 | if test -n "$x_includes"; then | |
12957 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 12958 | fi |
3a922bb4 | 12959 | |
90dd450c VZ |
12960 | # It would also be nice to do this for all -L options, not just this one. |
12961 | if test -n "$x_libraries"; then | |
12962 | X_LIBS="$X_LIBS -L$x_libraries" | |
12963 | # For Solaris; some versions of Sun CC require a space after -R and | |
12964 | # others require no space. Words are not sufficient . . . . | |
579d8138 | 12965 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 12966 | "SunOS 5"*) |
579d8138 | 12967 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
5c0a20c3 | 12968 | echo "configure:12969: checking whether -R must be followed by a space" >&5 |
579d8138 VS |
12969 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
12970 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 12971 | #line 12972 "configure" |
90dd450c VZ |
12972 | #include "confdefs.h" |
12973 | ||
579d8138 | 12974 | int main() { |
90dd450c | 12975 | |
579d8138 VS |
12976 | ; return 0; } |
12977 | EOF | |
5c0a20c3 | 12978 | if { (eval echo configure:12979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 12979 | rm -rf conftest* |
90dd450c | 12980 | ac_R_nospace=yes |
3a922bb4 | 12981 | else |
579d8138 VS |
12982 | echo "configure: failed program was:" >&5 |
12983 | cat conftest.$ac_ext >&5 | |
12984 | rm -rf conftest* | |
12985 | ac_R_nospace=no | |
3a922bb4 | 12986 | fi |
579d8138 | 12987 | rm -f conftest* |
90dd450c | 12988 | if test $ac_R_nospace = yes; then |
579d8138 | 12989 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
12990 | X_LIBS="$X_LIBS -R$x_libraries" |
12991 | else | |
12992 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
579d8138 | 12993 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 12994 | #line 12995 "configure" |
90dd450c | 12995 | #include "confdefs.h" |
3a922bb4 | 12996 | |
579d8138 | 12997 | int main() { |
6f754473 | 12998 | |
579d8138 VS |
12999 | ; return 0; } |
13000 | EOF | |
5c0a20c3 | 13001 | if { (eval echo configure:13002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 13002 | rm -rf conftest* |
90dd450c VZ |
13003 | ac_R_space=yes |
13004 | else | |
579d8138 VS |
13005 | echo "configure: failed program was:" >&5 |
13006 | cat conftest.$ac_ext >&5 | |
13007 | rm -rf conftest* | |
13008 | ac_R_space=no | |
90dd450c | 13009 | fi |
579d8138 | 13010 | rm -f conftest* |
90dd450c | 13011 | if test $ac_R_space = yes; then |
579d8138 | 13012 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13013 | X_LIBS="$X_LIBS -R $x_libraries" |
13014 | else | |
579d8138 | 13015 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13016 | fi |
13017 | fi | |
579d8138 | 13018 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13019 | esac |
13020 | fi | |
13021 | ||
13022 | # Check for system-dependent libraries X programs must link with. | |
13023 | # Do this before checking for the system-independent R6 libraries | |
13024 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13025 | |
90dd450c VZ |
13026 | if test "$ISC" = yes; then |
13027 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13028 | else | |
579d8138 VS |
13029 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13030 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13031 | # the Alpha needs dnet_stub (dnet does not exist). |
579d8138 | 13032 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
5c0a20c3 | 13033 | echo "configure:13034: checking for dnet_ntoa in -ldnet" >&5 |
579d8138 VS |
13034 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13035 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 13037 | else |
579d8138 | 13038 | ac_save_LIBS="$LIBS" |
328a083c | 13039 | LIBS="-ldnet $LIBS" |
579d8138 | 13040 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13041 | #line 13042 "configure" |
328a083c | 13042 | #include "confdefs.h" |
328a083c | 13043 | /* Override any gcc2 internal prototype to avoid an error. */ |
328a083c | 13044 | /* We use char because int might match the return type of a gcc2 |
579d8138 VS |
13045 | builtin and then its argument prototype would still apply. */ |
13046 | char dnet_ntoa(); | |
13047 | ||
13048 | int main() { | |
13049 | dnet_ntoa() | |
13050 | ; return 0; } | |
13051 | EOF | |
5c0a20c3 | 13052 | if { (eval echo configure:13053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13053 | rm -rf conftest* |
13054 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13055 | else | |
13056 | echo "configure: failed program was:" >&5 | |
13057 | cat conftest.$ac_ext >&5 | |
13058 | rm -rf conftest* | |
13059 | eval "ac_cv_lib_$ac_lib_var=no" | |
13060 | fi | |
13061 | rm -f conftest* | |
13062 | LIBS="$ac_save_LIBS" | |
13063 | ||
13064 | fi | |
13065 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13066 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13067 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
579d8138 VS |
13068 | else |
13069 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13070 | fi |
13071 | ||
90dd450c | 13072 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
579d8138 | 13073 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
5c0a20c3 | 13074 | echo "configure:13075: checking for dnet_ntoa in -ldnet_stub" >&5 |
579d8138 VS |
13075 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13076 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13078 | else |
579d8138 | 13079 | ac_save_LIBS="$LIBS" |
90dd450c | 13080 | LIBS="-ldnet_stub $LIBS" |
579d8138 | 13081 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13082 | #line 13083 "configure" |
90dd450c VZ |
13083 | #include "confdefs.h" |
13084 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13085 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13086 | builtin and then its argument prototype would still apply. */ |
13087 | char dnet_ntoa(); | |
13088 | ||
13089 | int main() { | |
13090 | dnet_ntoa() | |
13091 | ; return 0; } | |
13092 | EOF | |
5c0a20c3 | 13093 | if { (eval echo configure:13094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13094 | rm -rf conftest* |
13095 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13096 | else | |
13097 | echo "configure: failed program was:" >&5 | |
13098 | cat conftest.$ac_ext >&5 | |
13099 | rm -rf conftest* | |
13100 | eval "ac_cv_lib_$ac_lib_var=no" | |
13101 | fi | |
13102 | rm -f conftest* | |
13103 | LIBS="$ac_save_LIBS" | |
13104 | ||
13105 | fi | |
13106 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13107 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13108 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
579d8138 VS |
13109 | else |
13110 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13111 | fi |
13112 | ||
90dd450c | 13113 | fi |
978f1259 | 13114 | |
90dd450c VZ |
13115 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13116 | # to get the SysV transport functions. | |
579d8138 | 13117 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13118 | # needs -lnsl. |
13119 | # The nsl library prevents programs from opening the X display | |
579d8138 VS |
13120 | # on Irix 5.2, according to dickey@clark.net. |
13121 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
5c0a20c3 | 13122 | echo "configure:13123: checking for gethostbyname" >&5 |
579d8138 VS |
13123 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13124 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13125 | else | |
13126 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 13127 | #line 13128 "configure" |
90dd450c VZ |
13128 | #include "confdefs.h" |
13129 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 13130 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13131 | #include <assert.h> |
13132 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13133 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13134 | builtin and then its argument prototype would still apply. */ |
13135 | char gethostbyname(); | |
13136 | ||
13137 | int main() { | |
978f1259 | 13138 | |
90dd450c VZ |
13139 | /* The GNU C library defines this for functions which it implements |
13140 | to always fail with ENOSYS. Some functions are actually named | |
13141 | something starting with __ and the normal name is an alias. */ | |
13142 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13143 | choke me | |
13144 | #else | |
579d8138 | 13145 | gethostbyname(); |
90dd450c | 13146 | #endif |
978f1259 | 13147 | |
579d8138 VS |
13148 | ; return 0; } |
13149 | EOF | |
5c0a20c3 | 13150 | if { (eval echo configure:13151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13151 | rm -rf conftest* |
13152 | eval "ac_cv_func_gethostbyname=yes" | |
13153 | else | |
13154 | echo "configure: failed program was:" >&5 | |
13155 | cat conftest.$ac_ext >&5 | |
13156 | rm -rf conftest* | |
13157 | eval "ac_cv_func_gethostbyname=no" | |
13158 | fi | |
13159 | rm -f conftest* | |
13160 | fi | |
13161 | ||
13162 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13163 | echo "$ac_t""yes" 1>&6 | |
13164 | : | |
13165 | else | |
13166 | echo "$ac_t""no" 1>&6 | |
13167 | fi | |
698dcdb6 | 13168 | |
90dd450c | 13169 | if test $ac_cv_func_gethostbyname = no; then |
579d8138 | 13170 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
5c0a20c3 | 13171 | echo "configure:13172: checking for gethostbyname in -lnsl" >&5 |
579d8138 VS |
13172 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13173 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13174 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13175 | else |
579d8138 | 13176 | ac_save_LIBS="$LIBS" |
90dd450c | 13177 | LIBS="-lnsl $LIBS" |
579d8138 | 13178 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13179 | #line 13180 "configure" |
90dd450c VZ |
13180 | #include "confdefs.h" |
13181 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13182 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13183 | builtin and then its argument prototype would still apply. */ |
13184 | char gethostbyname(); | |
55e80573 | 13185 | |
579d8138 VS |
13186 | int main() { |
13187 | gethostbyname() | |
13188 | ; return 0; } | |
13189 | EOF | |
5c0a20c3 | 13190 | if { (eval echo configure:13191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13191 | rm -rf conftest* |
13192 | eval "ac_cv_lib_$ac_lib_var=yes" | |
90dd450c | 13193 | else |
579d8138 VS |
13194 | echo "configure: failed program was:" >&5 |
13195 | cat conftest.$ac_ext >&5 | |
13196 | rm -rf conftest* | |
13197 | eval "ac_cv_lib_$ac_lib_var=no" | |
13198 | fi | |
13199 | rm -f conftest* | |
13200 | LIBS="$ac_save_LIBS" | |
328a083c | 13201 | |
579d8138 VS |
13202 | fi |
13203 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13204 | echo "$ac_t""yes" 1>&6 | |
13205 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13206 | else | |
13207 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13208 | fi |
b12915c1 | 13209 | |
90dd450c VZ |
13210 | fi |
13211 | ||
13212 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13213 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13214 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
579d8138 VS |
13215 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13216 | # gethostby* variants that don't use the nameserver (or something). | |
13217 | # -lsocket must be given before -lnsl if both are needed. | |
13218 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13219 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
5c0a20c3 | 13220 | echo "configure:13221: checking for connect" >&5 |
579d8138 VS |
13221 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13223 | else | |
13224 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 13225 | #line 13226 "configure" |
55e80573 | 13226 | #include "confdefs.h" |
90dd450c | 13227 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 13228 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13229 | #include <assert.h> |
13230 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13231 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13232 | builtin and then its argument prototype would still apply. */ |
13233 | char connect(); | |
13234 | ||
13235 | int main() { | |
55e80573 | 13236 | |
90dd450c VZ |
13237 | /* The GNU C library defines this for functions which it implements |
13238 | to always fail with ENOSYS. Some functions are actually named | |
13239 | something starting with __ and the normal name is an alias. */ | |
13240 | #if defined (__stub_connect) || defined (__stub___connect) | |
13241 | choke me | |
13242 | #else | |
579d8138 | 13243 | connect(); |
90dd450c VZ |
13244 | #endif |
13245 | ||
579d8138 VS |
13246 | ; return 0; } |
13247 | EOF | |
5c0a20c3 | 13248 | if { (eval echo configure:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13249 | rm -rf conftest* |
13250 | eval "ac_cv_func_connect=yes" | |
13251 | else | |
13252 | echo "configure: failed program was:" >&5 | |
13253 | cat conftest.$ac_ext >&5 | |
13254 | rm -rf conftest* | |
13255 | eval "ac_cv_func_connect=no" | |
13256 | fi | |
13257 | rm -f conftest* | |
13258 | fi | |
13259 | ||
13260 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13261 | echo "$ac_t""yes" 1>&6 | |
13262 | : | |
13263 | else | |
13264 | echo "$ac_t""no" 1>&6 | |
13265 | fi | |
55e80573 | 13266 | |
90dd450c | 13267 | if test $ac_cv_func_connect = no; then |
579d8138 | 13268 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
5c0a20c3 | 13269 | echo "configure:13270: checking for connect in -lsocket" >&5 |
579d8138 VS |
13270 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13271 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13272 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13273 | else |
579d8138 | 13274 | ac_save_LIBS="$LIBS" |
90dd450c | 13275 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
579d8138 | 13276 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13277 | #line 13278 "configure" |
90dd450c VZ |
13278 | #include "confdefs.h" |
13279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13280 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13281 | builtin and then its argument prototype would still apply. */ |
13282 | char connect(); | |
13283 | ||
13284 | int main() { | |
13285 | connect() | |
13286 | ; return 0; } | |
13287 | EOF | |
5c0a20c3 | 13288 | if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13289 | rm -rf conftest* |
13290 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13291 | else | |
13292 | echo "configure: failed program was:" >&5 | |
13293 | cat conftest.$ac_ext >&5 | |
13294 | rm -rf conftest* | |
13295 | eval "ac_cv_lib_$ac_lib_var=no" | |
13296 | fi | |
13297 | rm -f conftest* | |
13298 | LIBS="$ac_save_LIBS" | |
13299 | ||
13300 | fi | |
13301 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13302 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13303 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
579d8138 VS |
13304 | else |
13305 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13306 | fi |
77e13408 | 13307 | |
90dd450c | 13308 | fi |
25d0687a | 13309 | |
579d8138 VS |
13310 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
13311 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
5c0a20c3 | 13312 | echo "configure:13313: checking for remove" >&5 |
579d8138 VS |
13313 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
13314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13315 | else |
579d8138 | 13316 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13317 | #line 13318 "configure" |
90dd450c VZ |
13318 | #include "confdefs.h" |
13319 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 13320 | which can conflict with char remove(); below. */ |
90dd450c VZ |
13321 | #include <assert.h> |
13322 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13323 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13324 | builtin and then its argument prototype would still apply. */ |
13325 | char remove(); | |
13326 | ||
13327 | int main() { | |
55e80573 | 13328 | |
90dd450c VZ |
13329 | /* The GNU C library defines this for functions which it implements |
13330 | to always fail with ENOSYS. Some functions are actually named | |
13331 | something starting with __ and the normal name is an alias. */ | |
13332 | #if defined (__stub_remove) || defined (__stub___remove) | |
13333 | choke me | |
13334 | #else | |
579d8138 | 13335 | remove(); |
90dd450c | 13336 | #endif |
55e80573 | 13337 | |
579d8138 VS |
13338 | ; return 0; } |
13339 | EOF | |
5c0a20c3 | 13340 | if { (eval echo configure:13341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13341 | rm -rf conftest* |
13342 | eval "ac_cv_func_remove=yes" | |
13343 | else | |
13344 | echo "configure: failed program was:" >&5 | |
13345 | cat conftest.$ac_ext >&5 | |
13346 | rm -rf conftest* | |
13347 | eval "ac_cv_func_remove=no" | |
13348 | fi | |
13349 | rm -f conftest* | |
13350 | fi | |
13351 | ||
13352 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
13353 | echo "$ac_t""yes" 1>&6 | |
13354 | : | |
13355 | else | |
13356 | echo "$ac_t""no" 1>&6 | |
13357 | fi | |
10f2d63a | 13358 | |
90dd450c | 13359 | if test $ac_cv_func_remove = no; then |
579d8138 | 13360 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
5c0a20c3 | 13361 | echo "configure:13362: checking for remove in -lposix" >&5 |
579d8138 VS |
13362 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
13363 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13364 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13365 | else |
579d8138 | 13366 | ac_save_LIBS="$LIBS" |
90dd450c | 13367 | LIBS="-lposix $LIBS" |
579d8138 | 13368 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13369 | #line 13370 "configure" |
90dd450c VZ |
13370 | #include "confdefs.h" |
13371 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13372 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13373 | builtin and then its argument prototype would still apply. */ |
13374 | char remove(); | |
13375 | ||
13376 | int main() { | |
13377 | remove() | |
13378 | ; return 0; } | |
13379 | EOF | |
5c0a20c3 | 13380 | if { (eval echo configure:13381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13381 | rm -rf conftest* |
13382 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13383 | else | |
13384 | echo "configure: failed program was:" >&5 | |
13385 | cat conftest.$ac_ext >&5 | |
13386 | rm -rf conftest* | |
13387 | eval "ac_cv_lib_$ac_lib_var=no" | |
13388 | fi | |
13389 | rm -f conftest* | |
13390 | LIBS="$ac_save_LIBS" | |
13391 | ||
13392 | fi | |
13393 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13394 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13395 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
579d8138 VS |
13396 | else |
13397 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13398 | fi |
f6bcfd97 | 13399 | |
6fa882bd RR |
13400 | fi |
13401 | ||
90dd450c | 13402 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
579d8138 | 13403 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
5c0a20c3 | 13404 | echo "configure:13405: checking for shmat" >&5 |
579d8138 VS |
13405 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
13406 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13407 | else |
579d8138 | 13408 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13409 | #line 13410 "configure" |
90dd450c VZ |
13410 | #include "confdefs.h" |
13411 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 13412 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
13413 | #include <assert.h> |
13414 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13415 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13416 | builtin and then its argument prototype would still apply. */ |
13417 | char shmat(); | |
13418 | ||
13419 | int main() { | |
3a922bb4 | 13420 | |
90dd450c VZ |
13421 | /* The GNU C library defines this for functions which it implements |
13422 | to always fail with ENOSYS. Some functions are actually named | |
13423 | something starting with __ and the normal name is an alias. */ | |
13424 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
13425 | choke me | |
13426 | #else | |
579d8138 | 13427 | shmat(); |
90dd450c | 13428 | #endif |
10f2d63a | 13429 | |
579d8138 VS |
13430 | ; return 0; } |
13431 | EOF | |
5c0a20c3 | 13432 | if { (eval echo configure:13433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13433 | rm -rf conftest* |
13434 | eval "ac_cv_func_shmat=yes" | |
13435 | else | |
13436 | echo "configure: failed program was:" >&5 | |
13437 | cat conftest.$ac_ext >&5 | |
13438 | rm -rf conftest* | |
13439 | eval "ac_cv_func_shmat=no" | |
13440 | fi | |
13441 | rm -f conftest* | |
13442 | fi | |
13443 | ||
13444 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
13445 | echo "$ac_t""yes" 1>&6 | |
13446 | : | |
13447 | else | |
13448 | echo "$ac_t""no" 1>&6 | |
13449 | fi | |
d08b457b | 13450 | |
90dd450c | 13451 | if test $ac_cv_func_shmat = no; then |
579d8138 | 13452 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
5c0a20c3 | 13453 | echo "configure:13454: checking for shmat in -lipc" >&5 |
579d8138 VS |
13454 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
13455 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 13457 | else |
579d8138 | 13458 | ac_save_LIBS="$LIBS" |
90dd450c | 13459 | LIBS="-lipc $LIBS" |
579d8138 | 13460 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13461 | #line 13462 "configure" |
90dd450c VZ |
13462 | #include "confdefs.h" |
13463 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13464 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13465 | builtin and then its argument prototype would still apply. */ |
13466 | char shmat(); | |
13467 | ||
13468 | int main() { | |
13469 | shmat() | |
13470 | ; return 0; } | |
13471 | EOF | |
5c0a20c3 | 13472 | if { (eval echo configure:13473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13473 | rm -rf conftest* |
13474 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13475 | else | |
13476 | echo "configure: failed program was:" >&5 | |
13477 | cat conftest.$ac_ext >&5 | |
13478 | rm -rf conftest* | |
13479 | eval "ac_cv_lib_$ac_lib_var=no" | |
13480 | fi | |
13481 | rm -f conftest* | |
13482 | LIBS="$ac_save_LIBS" | |
13483 | ||
13484 | fi | |
13485 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13486 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13487 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
579d8138 VS |
13488 | else |
13489 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
13490 | fi |
13491 | ||
d558c907 | 13492 | fi |
90dd450c | 13493 | fi |
3a922bb4 | 13494 | |
90dd450c | 13495 | # Check for libraries that X11R6 Xt/Xaw programs need. |
579d8138 | 13496 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
13497 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
13498 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
13499 | # check for ICE first), but we must link in the order -lSM -lICE or | |
13500 | # we get undefined symbols. So assume we have SM if we have ICE. | |
13501 | # These have to be linked with before -lX11, unlike the other | |
13502 | # libraries we check for below, so use a different variable. | |
579d8138 VS |
13503 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
13504 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
5c0a20c3 | 13505 | echo "configure:13506: checking for IceConnectionNumber in -lICE" >&5 |
579d8138 VS |
13506 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
13507 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13508 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13509 | else | |
13510 | ac_save_LIBS="$LIBS" | |
5c0a20c3 | 13511 | LIBS="-lICE $LIBS" |
579d8138 | 13512 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13513 | #line 13514 "configure" |
9cfadba2 | 13514 | #include "confdefs.h" |
90dd450c VZ |
13515 | /* Override any gcc2 internal prototype to avoid an error. */ |
13516 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13517 | builtin and then its argument prototype would still apply. */ |
13518 | char IceConnectionNumber(); | |
13519 | ||
13520 | int main() { | |
13521 | IceConnectionNumber() | |
13522 | ; return 0; } | |
13523 | EOF | |
5c0a20c3 | 13524 | if { (eval echo configure:13525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13525 | rm -rf conftest* |
13526 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13527 | else | |
13528 | echo "configure: failed program was:" >&5 | |
13529 | cat conftest.$ac_ext >&5 | |
13530 | rm -rf conftest* | |
13531 | eval "ac_cv_lib_$ac_lib_var=no" | |
13532 | fi | |
13533 | rm -f conftest* | |
13534 | LIBS="$ac_save_LIBS" | |
13535 | ||
13536 | fi | |
13537 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13538 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13539 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
579d8138 VS |
13540 | else |
13541 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 13542 | fi |
10f2d63a | 13543 | |
579d8138 | 13544 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
13545 | |
13546 | fi | |
13547 | ||
579d8138 | 13548 | |
90dd450c | 13549 | if test "$no_x" = "yes"; then |
579d8138 | 13550 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
13551 | fi |
13552 | ||
13553 | GUI_TK_LIBRARY="$X_LIBS" | |
13554 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
13555 | AFMINSTALL=afminstall | |
13556 | COMPILED_X_PROGRAM=0 | |
13557 | ||
21d1c967 | 13558 | if test "$wxUSE_NANOX" = "yes"; then |
579d8138 | 13559 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
5c0a20c3 | 13560 | echo "configure:13561: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 13561 | if test "x$MICROWIN" = x ; then |
579d8138 VS |
13562 | echo "$ac_t""not found" 1>&6 |
13563 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 13564 | else |
579d8138 VS |
13565 | echo "$ac_t""$MICROWIN" 1>&6 |
13566 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13567 | #define wxUSE_NANOX 1 |
698dcdb6 | 13568 | EOF |
21d1c967 | 13569 | |
90dd450c VZ |
13570 | fi |
13571 | fi | |
13572 | ||
13573 | xpm_link= | |
579d8138 | 13574 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
5c0a20c3 | 13575 | echo "configure:13576: checking for Xpm library" >&5 |
579d8138 | 13576 | |
90dd450c VZ |
13577 | ac_find_libraries= |
13578 | for ac_dir in $SEARCH_LIB; | |
13579 | do | |
13580 | for ac_extension in a so sl dylib; do | |
13581 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
13582 | ac_find_libraries=$ac_dir | |
13583 | break 2 | |
13584 | fi | |
13585 | done | |
13586 | done | |
13587 | ||
13588 | if test "$ac_find_libraries" != "" ; then | |
579d8138 | 13589 | |
90dd450c VZ |
13590 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
13591 | result=$? | |
13592 | if test $result = 0; then | |
13593 | ac_path_to_link="" | |
13594 | else | |
13595 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 13596 | fi |
90dd450c | 13597 | |
21d1c967 GD |
13598 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
13599 | xpm_link=" -lXpm" | |
579d8138 | 13600 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13601 | #define wxHAVE_LIB_XPM 1 |
13602 | EOF | |
90dd450c | 13603 | |
579d8138 | 13604 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13605 | else |
579d8138 | 13606 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13607 | #line 13608 "configure" |
21d1c967 | 13608 | #include "confdefs.h" |
90dd450c | 13609 | |
21d1c967 | 13610 | #include <X11/xpm.h> |
579d8138 VS |
13611 | |
13612 | int main() { | |
6f72b082 | 13613 | |
21d1c967 GD |
13614 | int version; |
13615 | version = XpmLibraryVersion(); | |
579d8138 VS |
13616 | |
13617 | ; return 0; } | |
13618 | EOF | |
5c0a20c3 | 13619 | if { (eval echo configure:13620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
13620 | rm -rf conftest* |
13621 | ||
21d1c967 | 13622 | xpm_link=" -lXpm" |
579d8138 | 13623 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13624 | #define wxHAVE_LIB_XPM 1 |
13625 | EOF | |
90dd450c | 13626 | |
579d8138 | 13627 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 13628 | COMPILED_X_PROGRAM=0 |
579d8138 | 13629 | |
21d1c967 | 13630 | else |
579d8138 VS |
13631 | echo "configure: failed program was:" >&5 |
13632 | cat conftest.$ac_ext >&5 | |
13633 | rm -rf conftest* | |
13634 | ||
13635 | echo "$ac_t""no" 1>&6 | |
13636 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
13637 | ||
13638 | ||
6f72b082 | 13639 | fi |
579d8138 | 13640 | rm -f conftest* |
21d1c967 | 13641 | fi |
90dd450c | 13642 | |
1d1b75ac VZ |
13643 | wxUSE_UNIVERSAL="yes" |
13644 | ||
21d1c967 GD |
13645 | if test "$wxUSE_NANOX" = "yes"; then |
13646 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
13647 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" | |
13648 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
13649 | else | |
13650 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
13651 | fi | |
6f72b082 | 13652 | |
21d1c967 GD |
13653 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" |
13654 | TOOLKIT=X11 | |
13655 | GUIDIST=X11_DIST | |
13656 | fi | |
90dd450c | 13657 | |
21d1c967 | 13658 | if test "$wxUSE_WINE" = 1; then |
579d8138 VS |
13659 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
13660 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
5c0a20c3 | 13661 | echo "configure:13662: checking for windows.h" >&5 |
579d8138 VS |
13662 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
13663 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13664 | else | |
13665 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 13666 | #line 13667 "configure" |
6f72b082 | 13667 | #include "confdefs.h" |
21d1c967 | 13668 | #include <windows.h> |
579d8138 VS |
13669 | EOF |
13670 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
13671 | { (eval echo configure:13672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
13672 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
13673 | if test -z "$ac_err"; then |
13674 | rm -rf conftest* | |
13675 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 13676 | else |
579d8138 VS |
13677 | echo "$ac_err" >&5 |
13678 | echo "configure: failed program was:" >&5 | |
10f2d63a | 13679 | cat conftest.$ac_ext >&5 |
579d8138 VS |
13680 | rm -rf conftest* |
13681 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 13682 | fi |
579d8138 | 13683 | rm -f conftest* |
10f2d63a | 13684 | fi |
579d8138 VS |
13685 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
13686 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
13687 | : |
13688 | else | |
579d8138 | 13689 | echo "$ac_t""no" 1>&6 |
21d1c967 | 13690 | |
579d8138 VS |
13691 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
13692 | ||
328a083c | 13693 | fi |
21d1c967 | 13694 | |
328a083c | 13695 | |
579d8138 VS |
13696 | xpm_link= |
13697 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 | |
5c0a20c3 | 13698 | echo "configure:13699: checking for Xpm library" >&5 |
579d8138 | 13699 | |
90dd450c VZ |
13700 | ac_find_libraries= |
13701 | for ac_dir in $SEARCH_LIB; | |
13702 | do | |
13703 | for ac_extension in a so sl dylib; do | |
21d1c967 | 13704 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
13705 | ac_find_libraries=$ac_dir |
13706 | break 2 | |
13707 | fi | |
13708 | done | |
13709 | done | |
13710 | ||
21d1c967 GD |
13711 | if test "$ac_find_libraries" != "" ; then |
13712 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
13713 | xpm_link=" -lXpm" | |
579d8138 | 13714 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13715 | #define wxHAVE_LIB_XPM 1 |
13716 | EOF | |
90dd450c | 13717 | |
579d8138 | 13718 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13719 | else |
579d8138 VS |
13720 | echo "$ac_t""no" 1>&6 |
13721 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
21d1c967 GD |
13722 | fi |
13723 | ||
13724 | mesa_link= | |
579d8138 | 13725 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
5c0a20c3 | 13726 | echo "configure:13727: checking for Mesa library" >&5 |
579d8138 | 13727 | |
90dd450c VZ |
13728 | ac_find_libraries= |
13729 | for ac_dir in $SEARCH_LIB; | |
13730 | do | |
13731 | for ac_extension in a so sl dylib; do | |
13732 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
13733 | ac_find_libraries=$ac_dir | |
13734 | break 2 | |
13735 | fi | |
13736 | done | |
13737 | done | |
13738 | ||
21d1c967 GD |
13739 | if test "$ac_find_libraries" != "" ; then |
13740 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
13741 | mesa_link=" -lMesaGL" | |
579d8138 | 13742 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 13743 | else |
579d8138 | 13744 | { echo "configure: error: no" 1>&2; exit 1; } |
21d1c967 GD |
13745 | fi |
13746 | ||
13747 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
13748 | TOOLKIT=MSW | |
13749 | GUIDIST=MSW_DIST | |
13750 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
13751 | fi | |
13752 | ||
13753 | if test "$wxUSE_MOTIF" = 1; then | |
13754 | if test "$no_x" = yes; then | |
13755 | # Not all programs may use this symbol, but it does not hurt to define it. | |
579d8138 | 13756 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
13757 | #define X_DISPLAY_MISSING 1 |
13758 | EOF | |
13759 | ||
13760 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13761 | else | |
13762 | if test -n "$x_includes"; then | |
13763 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
13764 | fi |
13765 | ||
21d1c967 GD |
13766 | # It would also be nice to do this for all -L options, not just this one. |
13767 | if test -n "$x_libraries"; then | |
13768 | X_LIBS="$X_LIBS -L$x_libraries" | |
13769 | # For Solaris; some versions of Sun CC require a space after -R and | |
13770 | # others require no space. Words are not sufficient . . . . | |
579d8138 | 13771 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 13772 | "SunOS 5"*) |
579d8138 | 13773 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
5c0a20c3 | 13774 | echo "configure:13775: checking whether -R must be followed by a space" >&5 |
579d8138 VS |
13775 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13776 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 13777 | #line 13778 "configure" |
21d1c967 GD |
13778 | #include "confdefs.h" |
13779 | ||
579d8138 | 13780 | int main() { |
21d1c967 | 13781 | |
579d8138 VS |
13782 | ; return 0; } |
13783 | EOF | |
5c0a20c3 | 13784 | if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 13785 | rm -rf conftest* |
21d1c967 | 13786 | ac_R_nospace=yes |
698dcdb6 | 13787 | else |
579d8138 VS |
13788 | echo "configure: failed program was:" >&5 |
13789 | cat conftest.$ac_ext >&5 | |
13790 | rm -rf conftest* | |
13791 | ac_R_nospace=no | |
10f2d63a | 13792 | fi |
579d8138 | 13793 | rm -f conftest* |
21d1c967 | 13794 | if test $ac_R_nospace = yes; then |
579d8138 | 13795 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13796 | X_LIBS="$X_LIBS -R$x_libraries" |
13797 | else | |
13798 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
579d8138 | 13799 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13800 | #line 13801 "configure" |
21d1c967 | 13801 | #include "confdefs.h" |
10f2d63a | 13802 | |
579d8138 | 13803 | int main() { |
f0c87536 | 13804 | |
579d8138 VS |
13805 | ; return 0; } |
13806 | EOF | |
5c0a20c3 | 13807 | if { (eval echo configure:13808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 13808 | rm -rf conftest* |
21d1c967 GD |
13809 | ac_R_space=yes |
13810 | else | |
579d8138 VS |
13811 | echo "configure: failed program was:" >&5 |
13812 | cat conftest.$ac_ext >&5 | |
13813 | rm -rf conftest* | |
13814 | ac_R_space=no | |
21d1c967 | 13815 | fi |
579d8138 | 13816 | rm -f conftest* |
21d1c967 | 13817 | if test $ac_R_space = yes; then |
579d8138 | 13818 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
13819 | X_LIBS="$X_LIBS -R $x_libraries" |
13820 | else | |
579d8138 | 13821 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
13822 | fi |
13823 | fi | |
579d8138 | 13824 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
13825 | esac |
13826 | fi | |
90dd450c | 13827 | |
21d1c967 GD |
13828 | # Check for system-dependent libraries X programs must link with. |
13829 | # Do this before checking for the system-independent R6 libraries | |
13830 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
13831 | ||
13832 | if test "$ISC" = yes; then | |
13833 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13834 | else | |
579d8138 VS |
13835 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13836 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 13837 | # the Alpha needs dnet_stub (dnet does not exist). |
579d8138 | 13838 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
5c0a20c3 | 13839 | echo "configure:13840: checking for dnet_ntoa in -ldnet" >&5 |
579d8138 VS |
13840 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13841 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 13843 | else |
579d8138 | 13844 | ac_save_LIBS="$LIBS" |
328a083c | 13845 | LIBS="-ldnet $LIBS" |
579d8138 | 13846 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13847 | #line 13848 "configure" |
328a083c | 13848 | #include "confdefs.h" |
328a083c | 13849 | /* Override any gcc2 internal prototype to avoid an error. */ |
328a083c | 13850 | /* We use char because int might match the return type of a gcc2 |
579d8138 VS |
13851 | builtin and then its argument prototype would still apply. */ |
13852 | char dnet_ntoa(); | |
13853 | ||
13854 | int main() { | |
13855 | dnet_ntoa() | |
13856 | ; return 0; } | |
13857 | EOF | |
5c0a20c3 | 13858 | if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13859 | rm -rf conftest* |
13860 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13861 | else | |
13862 | echo "configure: failed program was:" >&5 | |
13863 | cat conftest.$ac_ext >&5 | |
13864 | rm -rf conftest* | |
13865 | eval "ac_cv_lib_$ac_lib_var=no" | |
13866 | fi | |
13867 | rm -f conftest* | |
13868 | LIBS="$ac_save_LIBS" | |
13869 | ||
13870 | fi | |
13871 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13872 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 13873 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
579d8138 VS |
13874 | else |
13875 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 13876 | fi |
0fb0dd83 | 13877 | |
21d1c967 | 13878 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
579d8138 | 13879 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
5c0a20c3 | 13880 | echo "configure:13881: checking for dnet_ntoa in -ldnet_stub" >&5 |
579d8138 VS |
13881 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13882 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 13884 | else |
579d8138 | 13885 | ac_save_LIBS="$LIBS" |
21d1c967 | 13886 | LIBS="-ldnet_stub $LIBS" |
579d8138 | 13887 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13888 | #line 13889 "configure" |
21d1c967 GD |
13889 | #include "confdefs.h" |
13890 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13891 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13892 | builtin and then its argument prototype would still apply. */ |
13893 | char dnet_ntoa(); | |
13894 | ||
13895 | int main() { | |
13896 | dnet_ntoa() | |
13897 | ; return 0; } | |
13898 | EOF | |
5c0a20c3 | 13899 | if { (eval echo configure:13900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13900 | rm -rf conftest* |
13901 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13902 | else | |
13903 | echo "configure: failed program was:" >&5 | |
13904 | cat conftest.$ac_ext >&5 | |
13905 | rm -rf conftest* | |
13906 | eval "ac_cv_lib_$ac_lib_var=no" | |
13907 | fi | |
13908 | rm -f conftest* | |
13909 | LIBS="$ac_save_LIBS" | |
13910 | ||
13911 | fi | |
13912 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13913 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 13914 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
579d8138 VS |
13915 | else |
13916 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
13917 | fi |
13918 | ||
21d1c967 | 13919 | fi |
90dd450c | 13920 | |
21d1c967 GD |
13921 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13922 | # to get the SysV transport functions. | |
579d8138 | 13923 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
13924 | # needs -lnsl. |
13925 | # The nsl library prevents programs from opening the X display | |
579d8138 VS |
13926 | # on Irix 5.2, according to dickey@clark.net. |
13927 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
5c0a20c3 | 13928 | echo "configure:13929: checking for gethostbyname" >&5 |
579d8138 VS |
13929 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13930 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13931 | else | |
13932 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 13933 | #line 13934 "configure" |
21d1c967 GD |
13934 | #include "confdefs.h" |
13935 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 13936 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
13937 | #include <assert.h> |
13938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13939 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13940 | builtin and then its argument prototype would still apply. */ |
13941 | char gethostbyname(); | |
13942 | ||
13943 | int main() { | |
90dd450c | 13944 | |
21d1c967 GD |
13945 | /* The GNU C library defines this for functions which it implements |
13946 | to always fail with ENOSYS. Some functions are actually named | |
13947 | something starting with __ and the normal name is an alias. */ | |
13948 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13949 | choke me | |
13950 | #else | |
579d8138 | 13951 | gethostbyname(); |
21d1c967 | 13952 | #endif |
90dd450c | 13953 | |
579d8138 VS |
13954 | ; return 0; } |
13955 | EOF | |
5c0a20c3 | 13956 | if { (eval echo configure:13957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13957 | rm -rf conftest* |
13958 | eval "ac_cv_func_gethostbyname=yes" | |
13959 | else | |
13960 | echo "configure: failed program was:" >&5 | |
13961 | cat conftest.$ac_ext >&5 | |
13962 | rm -rf conftest* | |
13963 | eval "ac_cv_func_gethostbyname=no" | |
13964 | fi | |
13965 | rm -f conftest* | |
13966 | fi | |
13967 | ||
13968 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13969 | echo "$ac_t""yes" 1>&6 | |
13970 | : | |
13971 | else | |
13972 | echo "$ac_t""no" 1>&6 | |
13973 | fi | |
90dd450c | 13974 | |
21d1c967 | 13975 | if test $ac_cv_func_gethostbyname = no; then |
579d8138 | 13976 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
5c0a20c3 | 13977 | echo "configure:13978: checking for gethostbyname in -lnsl" >&5 |
579d8138 VS |
13978 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13979 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13980 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 13981 | else |
579d8138 | 13982 | ac_save_LIBS="$LIBS" |
21d1c967 | 13983 | LIBS="-lnsl $LIBS" |
579d8138 | 13984 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 13985 | #line 13986 "configure" |
21d1c967 GD |
13986 | #include "confdefs.h" |
13987 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13988 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
13989 | builtin and then its argument prototype would still apply. */ |
13990 | char gethostbyname(); | |
f0c87536 | 13991 | |
579d8138 VS |
13992 | int main() { |
13993 | gethostbyname() | |
13994 | ; return 0; } | |
13995 | EOF | |
5c0a20c3 | 13996 | if { (eval echo configure:13997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
13997 | rm -rf conftest* |
13998 | eval "ac_cv_lib_$ac_lib_var=yes" | |
21d1c967 | 13999 | else |
579d8138 VS |
14000 | echo "configure: failed program was:" >&5 |
14001 | cat conftest.$ac_ext >&5 | |
14002 | rm -rf conftest* | |
14003 | eval "ac_cv_lib_$ac_lib_var=no" | |
14004 | fi | |
14005 | rm -f conftest* | |
14006 | LIBS="$ac_save_LIBS" | |
328a083c | 14007 | |
579d8138 VS |
14008 | fi |
14009 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14010 | echo "$ac_t""yes" 1>&6 | |
14011 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14012 | else | |
14013 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14014 | fi |
90dd450c | 14015 | |
90dd450c VZ |
14016 | fi |
14017 | ||
21d1c967 GD |
14018 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14019 | # socket/setsockopt and other routines are undefined under SCO ODT | |
14020 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
579d8138 VS |
14021 | # on later versions), says simon@lia.di.epfl.ch: it contains |
14022 | # gethostby* variants that don't use the nameserver (or something). | |
14023 | # -lsocket must be given before -lnsl if both are needed. | |
14024 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
14025 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
5c0a20c3 | 14026 | echo "configure:14027: checking for connect" >&5 |
579d8138 VS |
14027 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
14028 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14029 | else | |
14030 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 14031 | #line 14032 "configure" |
21d1c967 GD |
14032 | #include "confdefs.h" |
14033 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 14034 | which can conflict with char connect(); below. */ |
21d1c967 GD |
14035 | #include <assert.h> |
14036 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14037 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
14038 | builtin and then its argument prototype would still apply. */ |
14039 | char connect(); | |
14040 | ||
14041 | int main() { | |
90dd450c | 14042 | |
21d1c967 GD |
14043 | /* The GNU C library defines this for functions which it implements |
14044 | to always fail with ENOSYS. Some functions are actually named | |
14045 | something starting with __ and the normal name is an alias. */ | |
14046 | #if defined (__stub_connect) || defined (__stub___connect) | |
14047 | choke me | |
14048 | #else | |
579d8138 | 14049 | connect(); |
21d1c967 | 14050 | #endif |
90dd450c | 14051 | |
579d8138 VS |
14052 | ; return 0; } |
14053 | EOF | |
5c0a20c3 | 14054 | if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
14055 | rm -rf conftest* |
14056 | eval "ac_cv_func_connect=yes" | |
14057 | else | |
14058 | echo "configure: failed program was:" >&5 | |
14059 | cat conftest.$ac_ext >&5 | |
14060 | rm -rf conftest* | |
14061 | eval "ac_cv_func_connect=no" | |
14062 | fi | |
14063 | rm -f conftest* | |
14064 | fi | |
14065 | ||
14066 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
14067 | echo "$ac_t""yes" 1>&6 | |
14068 | : | |
14069 | else | |
14070 | echo "$ac_t""no" 1>&6 | |
14071 | fi | |
1f8ae82f | 14072 | |
21d1c967 | 14073 | if test $ac_cv_func_connect = no; then |
579d8138 | 14074 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
5c0a20c3 | 14075 | echo "configure:14076: checking for connect in -lsocket" >&5 |
579d8138 VS |
14076 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
14077 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14078 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 14079 | else |
579d8138 | 14080 | ac_save_LIBS="$LIBS" |
21d1c967 | 14081 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
579d8138 | 14082 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14083 | #line 14084 "configure" |
0fbb762e | 14084 | #include "confdefs.h" |
21d1c967 GD |
14085 | /* Override any gcc2 internal prototype to avoid an error. */ |
14086 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
14087 | builtin and then its argument prototype would still apply. */ |
14088 | char connect(); | |
14089 | ||
14090 | int main() { | |
14091 | connect() | |
14092 | ; return 0; } | |
14093 | EOF | |
5c0a20c3 | 14094 | if { (eval echo configure:14095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
14095 | rm -rf conftest* |
14096 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14097 | else | |
14098 | echo "configure: failed program was:" >&5 | |
14099 | cat conftest.$ac_ext >&5 | |
14100 | rm -rf conftest* | |
14101 | eval "ac_cv_lib_$ac_lib_var=no" | |
14102 | fi | |
14103 | rm -f conftest* | |
14104 | LIBS="$ac_save_LIBS" | |
14105 | ||
14106 | fi | |
14107 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14108 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14109 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
579d8138 VS |
14110 | else |
14111 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14112 | fi |
90dd450c | 14113 | |
21d1c967 | 14114 | fi |
90dd450c | 14115 | |
579d8138 VS |
14116 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14117 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
5c0a20c3 | 14118 | echo "configure:14119: checking for remove" >&5 |
579d8138 VS |
14119 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14120 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14121 | else |
579d8138 | 14122 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14123 | #line 14124 "configure" |
21d1c967 GD |
14124 | #include "confdefs.h" |
14125 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 14126 | which can conflict with char remove(); below. */ |
21d1c967 GD |
14127 | #include <assert.h> |
14128 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14129 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
14130 | builtin and then its argument prototype would still apply. */ |
14131 | char remove(); | |
14132 | ||
14133 | int main() { | |
90dd450c | 14134 | |
21d1c967 GD |
14135 | /* The GNU C library defines this for functions which it implements |
14136 | to always fail with ENOSYS. Some functions are actually named | |
14137 | something starting with __ and the normal name is an alias. */ | |
14138 | #if defined (__stub_remove) || defined (__stub___remove) | |
14139 | choke me | |
14140 | #else | |
579d8138 | 14141 | remove(); |
21d1c967 | 14142 | #endif |
90dd450c | 14143 | |
579d8138 VS |
14144 | ; return 0; } |
14145 | EOF | |
5c0a20c3 | 14146 | if { (eval echo configure:14147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
14147 | rm -rf conftest* |
14148 | eval "ac_cv_func_remove=yes" | |
14149 | else | |
14150 | echo "configure: failed program was:" >&5 | |
14151 | cat conftest.$ac_ext >&5 | |
14152 | rm -rf conftest* | |
14153 | eval "ac_cv_func_remove=no" | |
14154 | fi | |
14155 | rm -f conftest* | |
14156 | fi | |
14157 | ||
14158 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14159 | echo "$ac_t""yes" 1>&6 | |
14160 | : | |
14161 | else | |
14162 | echo "$ac_t""no" 1>&6 | |
14163 | fi | |
90dd450c | 14164 | |
21d1c967 | 14165 | if test $ac_cv_func_remove = no; then |
579d8138 | 14166 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
5c0a20c3 | 14167 | echo "configure:14168: checking for remove in -lposix" >&5 |
579d8138 VS |
14168 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14169 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14170 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14171 | else |
579d8138 | 14172 | ac_save_LIBS="$LIBS" |
21d1c967 | 14173 | LIBS="-lposix $LIBS" |
579d8138 | 14174 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14175 | #line 14176 "configure" |
21d1c967 GD |
14176 | #include "confdefs.h" |
14177 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14178 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
14179 | builtin and then its argument prototype would still apply. */ |
14180 | char remove(); | |
14181 | ||
14182 | int main() { | |
14183 | remove() | |
14184 | ; return 0; } | |
14185 | EOF | |
5c0a20c3 | 14186 | if { (eval echo configure:14187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
14187 | rm -rf conftest* |
14188 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14189 | else | |
14190 | echo "configure: failed program was:" >&5 | |
14191 | cat conftest.$ac_ext >&5 | |
14192 | rm -rf conftest* | |
14193 | eval "ac_cv_lib_$ac_lib_var=no" | |
14194 | fi | |
14195 | rm -f conftest* | |
14196 | LIBS="$ac_save_LIBS" | |
14197 | ||
14198 | fi | |
14199 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14200 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14201 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
579d8138 VS |
14202 | else |
14203 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14204 | fi |
19bc6aad | 14205 | |
90dd450c | 14206 | fi |
19bc6aad | 14207 | |
21d1c967 | 14208 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
579d8138 | 14209 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
5c0a20c3 | 14210 | echo "configure:14211: checking for shmat" >&5 |
579d8138 VS |
14211 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14212 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14213 | else |
579d8138 | 14214 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14215 | #line 14216 "configure" |
21d1c967 GD |
14216 | #include "confdefs.h" |
14217 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 14218 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
14219 | #include <assert.h> |
14220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14221 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
14222 | builtin and then its argument prototype would still apply. */ |
14223 | char shmat(); | |
14224 | ||
14225 | int main() { | |
90dd450c | 14226 | |
21d1c967 GD |
14227 | /* The GNU C library defines this for functions which it implements |
14228 | to always fail with ENOSYS. Some functions are actually named | |
14229 | something starting with __ and the normal name is an alias. */ | |
14230 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14231 | choke me | |
14232 | #else | |
579d8138 | 14233 | shmat(); |
21d1c967 | 14234 | #endif |
90dd450c | 14235 | |
579d8138 VS |
14236 | ; return 0; } |
14237 | EOF | |
5c0a20c3 | 14238 | if { (eval echo configure:14239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
14239 | rm -rf conftest* |
14240 | eval "ac_cv_func_shmat=yes" | |
14241 | else | |
14242 | echo "configure: failed program was:" >&5 | |
14243 | cat conftest.$ac_ext >&5 | |
14244 | rm -rf conftest* | |
14245 | eval "ac_cv_func_shmat=no" | |
14246 | fi | |
14247 | rm -f conftest* | |
14248 | fi | |
14249 | ||
14250 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14251 | echo "$ac_t""yes" 1>&6 | |
14252 | : | |
14253 | else | |
14254 | echo "$ac_t""no" 1>&6 | |
14255 | fi | |
19bc6aad | 14256 | |
21d1c967 | 14257 | if test $ac_cv_func_shmat = no; then |
579d8138 | 14258 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
5c0a20c3 | 14259 | echo "configure:14260: checking for shmat in -lipc" >&5 |
579d8138 VS |
14260 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14261 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14262 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9f8148b1 | 14263 | else |
579d8138 | 14264 | ac_save_LIBS="$LIBS" |
21d1c967 | 14265 | LIBS="-lipc $LIBS" |
579d8138 | 14266 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14267 | #line 14268 "configure" |
21d1c967 GD |
14268 | #include "confdefs.h" |
14269 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14270 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
14271 | builtin and then its argument prototype would still apply. */ |
14272 | char shmat(); | |
14273 | ||
14274 | int main() { | |
14275 | shmat() | |
14276 | ; return 0; } | |
14277 | EOF | |
5c0a20c3 | 14278 | if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
14279 | rm -rf conftest* |
14280 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14281 | else | |
14282 | echo "configure: failed program was:" >&5 | |
14283 | cat conftest.$ac_ext >&5 | |
14284 | rm -rf conftest* | |
14285 | eval "ac_cv_lib_$ac_lib_var=no" | |
14286 | fi | |
14287 | rm -f conftest* | |
14288 | LIBS="$ac_save_LIBS" | |
14289 | ||
14290 | fi | |
14291 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14292 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14293 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
579d8138 VS |
14294 | else |
14295 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 14296 | fi |
90dd450c | 14297 | |
90dd450c | 14298 | fi |
21d1c967 | 14299 | fi |
10f2d63a | 14300 | |
21d1c967 | 14301 | # Check for libraries that X11R6 Xt/Xaw programs need. |
579d8138 | 14302 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
14303 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14304 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14305 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14306 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14307 | # These have to be linked with before -lX11, unlike the other | |
14308 | # libraries we check for below, so use a different variable. | |
579d8138 VS |
14309 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14310 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
5c0a20c3 | 14311 | echo "configure:14312: checking for IceConnectionNumber in -lICE" >&5 |
579d8138 VS |
14312 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14313 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14315 | else | |
14316 | ac_save_LIBS="$LIBS" | |
5c0a20c3 | 14317 | LIBS="-lICE $LIBS" |
579d8138 | 14318 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14319 | #line 14320 "configure" |
29fd3c0c | 14320 | #include "confdefs.h" |
21d1c967 GD |
14321 | /* Override any gcc2 internal prototype to avoid an error. */ |
14322 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
14323 | builtin and then its argument prototype would still apply. */ |
14324 | char IceConnectionNumber(); | |
14325 | ||
14326 | int main() { | |
14327 | IceConnectionNumber() | |
14328 | ; return 0; } | |
14329 | EOF | |
5c0a20c3 | 14330 | if { (eval echo configure:14331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
14331 | rm -rf conftest* |
14332 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14333 | else | |
14334 | echo "configure: failed program was:" >&5 | |
14335 | cat conftest.$ac_ext >&5 | |
14336 | rm -rf conftest* | |
14337 | eval "ac_cv_lib_$ac_lib_var=no" | |
14338 | fi | |
14339 | rm -f conftest* | |
14340 | LIBS="$ac_save_LIBS" | |
14341 | ||
14342 | fi | |
14343 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14344 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14345 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
579d8138 VS |
14346 | else |
14347 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 14348 | fi |
21d1c967 | 14349 | |
579d8138 | 14350 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 14351 | |
10f2d63a VZ |
14352 | fi |
14353 | ||
579d8138 | 14354 | |
21d1c967 | 14355 | if test "$no_x" = "yes"; then |
579d8138 | 14356 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
14357 | fi |
14358 | ||
14359 | GUI_TK_LIBRARY="$X_LIBS" | |
14360 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14361 | AFMINSTALL=afminstall | |
14362 | COMPILED_X_PROGRAM=0 | |
14363 | ||
579d8138 | 14364 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
5c0a20c3 | 14365 | echo "configure:14366: checking for Motif/Lesstif headers" >&5 |
579d8138 | 14366 | |
21d1c967 GD |
14367 | ac_find_includes= |
14368 | for ac_dir in $SEARCH_INCLUDE; | |
14369 | do | |
14370 | if test -f "$ac_dir/Xm/Xm.h"; then | |
14371 | ac_find_includes=$ac_dir | |
14372 | break | |
14373 | fi | |
14374 | done | |
14375 | ||
14376 | if test "$ac_find_includes" != "" ; then | |
579d8138 | 14377 | echo "$ac_t""found $ac_find_includes" 1>&6 |
21d1c967 | 14378 | else |
579d8138 | 14379 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14380 | #line 14381 "configure" |
10f2d63a | 14381 | #include "confdefs.h" |
21d1c967 GD |
14382 | |
14383 | #include <Xm/Xm.h> | |
579d8138 VS |
14384 | |
14385 | int main() { | |
21d1c967 GD |
14386 | |
14387 | int version; | |
14388 | version = xmUseVersion; | |
579d8138 VS |
14389 | |
14390 | ; return 0; } | |
14391 | EOF | |
5c0a20c3 | 14392 | if { (eval echo configure:14393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
14393 | rm -rf conftest* |
14394 | ||
14395 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14396 | COMPILED_X_PROGRAM=1 |
579d8138 | 14397 | |
10f2d63a | 14398 | else |
579d8138 VS |
14399 | echo "configure: failed program was:" >&5 |
14400 | cat conftest.$ac_ext >&5 | |
14401 | rm -rf conftest* | |
14402 | ||
14403 | echo "$ac_t""no" 1>&6 | |
14404 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
14405 | ||
14406 | ||
10f2d63a | 14407 | fi |
579d8138 | 14408 | rm -f conftest* |
21d1c967 | 14409 | fi |
10f2d63a | 14410 | |
21d1c967 | 14411 | if test "$COMPILED_X_PROGRAM" = 0; then |
579d8138 | 14412 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
5c0a20c3 | 14413 | echo "configure:14414: checking for Motif/Lesstif library" >&5 |
579d8138 | 14414 | |
21d1c967 GD |
14415 | ac_find_libraries= |
14416 | for ac_dir in $SEARCH_LIB; | |
14417 | do | |
14418 | for ac_extension in a so sl dylib; do | |
14419 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
14420 | ac_find_libraries=$ac_dir | |
14421 | break 2 | |
14422 | fi | |
14423 | done | |
14424 | done | |
14425 | ||
14426 | if test "$ac_find_libraries" != "" ; then | |
579d8138 | 14427 | |
21d1c967 GD |
14428 | ac_path_to_include=$ac_find_includes |
14429 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
14430 | result=$? | |
14431 | if test $result = 0; then | |
14432 | ac_path_to_include="" | |
14433 | else | |
14434 | ac_path_to_include=" -I$ac_find_includes" | |
14435 | fi | |
14436 | ||
579d8138 | 14437 | |
21d1c967 GD |
14438 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14439 | result=$? | |
14440 | if test $result = 0; then | |
14441 | ac_path_to_link="" | |
14442 | else | |
14443 | ac_path_to_link=" -L$ac_find_libraries" | |
14444 | fi | |
14445 | ||
579d8138 | 14446 | |
21d1c967 GD |
14447 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14448 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
579d8138 | 14449 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14450 | else |
579d8138 | 14451 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14452 | #line 14453 "configure" |
d836ee96 | 14453 | #include "confdefs.h" |
21d1c967 GD |
14454 | |
14455 | #include <Xm/Xm.h> | |
579d8138 VS |
14456 | |
14457 | int main() { | |
21d1c967 GD |
14458 | |
14459 | int version; | |
14460 | version = xmUseVersion; | |
579d8138 VS |
14461 | |
14462 | ; return 0; } | |
14463 | EOF | |
5c0a20c3 | 14464 | if { (eval echo configure:14465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
14465 | rm -rf conftest* |
14466 | ||
14467 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 14468 | COMPILED_X_PROGRAM=1 |
579d8138 | 14469 | |
d836ee96 | 14470 | else |
579d8138 VS |
14471 | echo "configure: failed program was:" >&5 |
14472 | cat conftest.$ac_ext >&5 | |
14473 | rm -rf conftest* | |
14474 | ||
14475 | echo "$ac_t""no" 1>&6 | |
14476 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
14477 | ||
14478 | ||
d836ee96 | 14479 | fi |
579d8138 | 14480 | rm -f conftest* |
21d1c967 GD |
14481 | fi |
14482 | fi | |
14483 | ||
14484 | xpm_link= | |
579d8138 | 14485 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
5c0a20c3 | 14486 | echo "configure:14487: checking for Xpm library" >&5 |
579d8138 | 14487 | |
21d1c967 GD |
14488 | ac_find_libraries= |
14489 | for ac_dir in $SEARCH_LIB; | |
14490 | do | |
14491 | for ac_extension in a so sl dylib; do | |
14492 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14493 | ac_find_libraries=$ac_dir | |
14494 | break 2 | |
14495 | fi | |
14496 | done | |
14497 | done | |
14498 | ||
14499 | if test "$ac_find_libraries" != "" ; then | |
579d8138 | 14500 | |
21d1c967 GD |
14501 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14502 | result=$? | |
14503 | if test $result = 0; then | |
14504 | ac_path_to_link="" | |
14505 | else | |
14506 | ac_path_to_link=" -L$ac_find_libraries" | |
14507 | fi | |
14508 | ||
14509 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
14510 | xpm_link=" -lXpm" | |
579d8138 | 14511 | cat >> confdefs.h <<\EOF |
21d1c967 | 14512 | #define wxHAVE_LIB_XPM 1 |
d836ee96 | 14513 | EOF |
90dd450c | 14514 | |
579d8138 | 14515 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14516 | else |
579d8138 | 14517 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14518 | #line 14519 "configure" |
d836ee96 | 14519 | #include "confdefs.h" |
21d1c967 GD |
14520 | |
14521 | #include <X11/xpm.h> | |
579d8138 VS |
14522 | |
14523 | int main() { | |
21d1c967 GD |
14524 | |
14525 | int version; | |
14526 | version = XpmLibraryVersion(); | |
579d8138 VS |
14527 | |
14528 | ; return 0; } | |
14529 | EOF | |
5c0a20c3 | 14530 | if { (eval echo configure:14531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
14531 | rm -rf conftest* |
14532 | ||
21d1c967 | 14533 | xpm_link=" -lXpm" |
579d8138 | 14534 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
14535 | #define wxHAVE_LIB_XPM 1 |
14536 | EOF | |
14537 | ||
579d8138 | 14538 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14539 | COMPILED_X_PROGRAM=0 |
579d8138 | 14540 | |
d836ee96 | 14541 | else |
579d8138 VS |
14542 | echo "configure: failed program was:" >&5 |
14543 | cat conftest.$ac_ext >&5 | |
14544 | rm -rf conftest* | |
14545 | ||
14546 | echo "$ac_t""no" 1>&6 | |
14547 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14548 | ||
14549 | ||
d836ee96 | 14550 | fi |
579d8138 | 14551 | rm -f conftest* |
21d1c967 GD |
14552 | fi |
14553 | ||
579d8138 | 14554 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
5c0a20c3 | 14555 | echo "configure:14556: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
14556 | libp_link="" |
14557 | libsm_ice_link="" | |
14558 | libs_found=0 | |
14559 | for libp in "" " -lXp"; do | |
14560 | if test "$libs_found" = "0"; then | |
14561 | for libsm_ice in " -lSM -lICE"; do | |
579d8138 | 14562 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
14563 | save_LIBS="$LIBS" |
14564 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
579d8138 | 14565 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 14566 | #line 14567 "configure" |
6a30f1c8 | 14567 | #include "confdefs.h" |
17234b26 | 14568 | |
6a30f1c8 MB |
14569 | #include <Xm/Xm.h> |
14570 | #include <Xm/List.h> | |
579d8138 VS |
14571 | |
14572 | int main() { | |
6a30f1c8 MB |
14573 | |
14574 | XmString string = NULL; | |
14575 | Widget w = NULL; | |
14576 | int position = 0; | |
14577 | XmListAddItem(w, string, position); | |
579d8138 VS |
14578 | |
14579 | ; return 0; } | |
14580 | EOF | |
5c0a20c3 | 14581 | if { (eval echo configure:14582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
14582 | rm -rf conftest* |
14583 | ||
6a30f1c8 MB |
14584 | libp_link="$libp" |
14585 | libsm_ice_link="$libsm_ice" | |
579d8138 | 14586 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 14587 | libs_found=1 |
579d8138 | 14588 | |
6a30f1c8 | 14589 | else |
579d8138 VS |
14590 | echo "configure: failed program was:" >&5 |
14591 | cat conftest.$ac_ext >&5 | |
14592 | rm -rf conftest* | |
14593 | ||
14594 | ||
6a30f1c8 | 14595 | fi |
579d8138 | 14596 | rm -f conftest* |
6a30f1c8 MB |
14597 | LIBS="$save_LIBS" |
14598 | fi | |
14599 | done | |
14600 | fi | |
14601 | done | |
14602 | ||
14603 | if test "$libs_found" = "0"; then | |
579d8138 VS |
14604 | echo "$ac_t""can't find the right libraries" 1>&6 |
14605 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
14606 | fi |
14607 | ||
14608 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
14609 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
14610 | TOOLKIT=MOTIF | |
14611 | GUIDIST=MOTIF_DIST | |
14612 | fi | |
14613 | ||
14614 | if test "$wxUSE_MAC" = 1; then | |
14615 | if test "$wxUSE_PRECOMP" = "yes"; then | |
14616 | CPPFLAGS="$CPPFLAGS -cpp-precomp" | |
14617 | else | |
14618 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
14619 | fi | |
14620 | CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile" | |
14621 | CFLAGS="$CFLAGS -fpascal-strings" | |
14622 | CXXFLAGS="$CXXFLAGS -fpascal-strings" | |
14623 | ||
14624 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
14625 | TOOLKIT=MAC | |
14626 | GUIDIST=MACX_DIST | |
14627 | fi | |
14628 | ||
14629 | if test "$wxUSE_PM" = 1; then | |
14630 | TOOLKIT=PM | |
14631 | GUIDIST=GTK_DIST | |
14632 | fi | |
14633 | ||
14634 | if test "$TOOLKIT" = "PM" ; then | |
14635 | TOOLKIT_DIR="os2" | |
14636 | else | |
14637 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
14638 | fi | |
14639 | ||
14640 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
14641 | ||
14642 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
14643 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
14644 | ||
14645 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
14646 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
14647 | ||
14648 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
14649 | if test "$wxUSE_X11" = 1; then | |
14650 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
14651 | else | |
14652 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
14653 | fi | |
14654 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
14655 | WIDGET_SET=univ | |
14656 | else | |
14657 | ALL_OBJECTS="\$(GUIOBJS)" | |
14658 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14659 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14660 | fi | |
14661 | ||
14662 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
14663 | ||
14664 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
14665 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
14666 | fi | |
14667 | ||
14668 | if test "$wxUSE_HTML" = "yes"; then | |
14669 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
14670 | fi | |
14671 | ||
14672 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
14673 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
14674 | fi | |
14675 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
14676 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
14677 | fi | |
14678 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
14679 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
14680 | fi | |
14681 | ||
14682 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
14683 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 14684 | else |
21d1c967 GD |
14685 | USE_GUI=0 |
14686 | ||
14687 | TOOLKIT_DIR="base" | |
14688 | ||
14689 | if test "$USE_WIN32" = 1 ; then | |
14690 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
14691 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
14692 | ||
14693 | TOOLKIT="MSW" | |
14694 | else | |
14695 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
14696 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
14697 | fi | |
14698 | ||
14699 | ALL_SOURCES="\$(ALL_SOURCES)" | |
14700 | ALL_HEADERS="\$(ALL_HEADERS)" | |
14701 | ||
14702 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
14703 | ||
14704 | GUIDIST="BASE_DIST" | |
14705 | DISTDIR="wxBase" | |
d836ee96 VZ |
14706 | fi |
14707 | ||
579d8138 | 14708 | |
21d1c967 GD |
14709 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
14710 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 14711 | fi |
21d1c967 GD |
14712 | |
14713 | if test "$wxUSE_REGEX" = "builtin" ; then | |
14714 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 14715 | fi |
21d1c967 GD |
14716 | if test "$wxUSE_ZLIB" = "builtin" ; then |
14717 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
14718 | fi |
14719 | ||
579d8138 | 14720 | |
21d1c967 GD |
14721 | if test "$wxUSE_OPENGL" = "yes"; then |
14722 | if test "$wxUSE_MAC" = 1; then | |
14723 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
14724 | elif test "$wxUSE_MSW" = 1; then | |
14725 | OPENGL_LIBS="-lopengl32 -lglu32" | |
14726 | else | |
579d8138 VS |
14727 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
14728 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
5c0a20c3 | 14729 | echo "configure:14730: checking for GL/gl.h" >&5 |
579d8138 VS |
14730 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14731 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14732 | else | |
14733 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 14734 | #line 14735 "configure" |
10f2d63a | 14735 | #include "confdefs.h" |
21d1c967 | 14736 | #include <GL/gl.h> |
579d8138 VS |
14737 | EOF |
14738 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
14739 | { (eval echo configure:14740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
14740 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
14741 | if test -z "$ac_err"; then |
14742 | rm -rf conftest* | |
14743 | eval "ac_cv_header_$ac_safe=yes" | |
328a083c | 14744 | else |
579d8138 VS |
14745 | echo "$ac_err" >&5 |
14746 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 14747 | cat conftest.$ac_ext >&5 |
579d8138 VS |
14748 | rm -rf conftest* |
14749 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 14750 | fi |
579d8138 | 14751 | rm -f conftest* |
698dcdb6 | 14752 | fi |
579d8138 VS |
14753 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14754 | echo "$ac_t""yes" 1>&6 | |
14755 | ||
14756 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
5c0a20c3 | 14757 | echo "configure:14758: checking for -lGL" >&5 |
579d8138 | 14758 | |
21d1c967 GD |
14759 | ac_find_libraries= |
14760 | for ac_dir in $SEARCH_LIB; | |
14761 | do | |
14762 | for ac_extension in a so sl dylib; do | |
14763 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
14764 | ac_find_libraries=$ac_dir | |
14765 | break 2 | |
14766 | fi | |
14767 | done | |
14768 | done | |
14769 | ||
14770 | if test "$ac_find_libraries" != "" ; then | |
579d8138 | 14771 | |
21d1c967 GD |
14772 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
14773 | result=$? | |
14774 | if test $result = 0; then | |
14775 | ac_path_to_link="" | |
14776 | else | |
14777 | ac_path_to_link=" -L$ac_find_libraries" | |
14778 | fi | |
14779 | ||
14780 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
14781 | LDFLAGS_GL="$LDFLAGS" | |
14782 | else | |
14783 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14784 | fi | |
14785 | OPENGL_LIBS="-lGL -lGLU" | |
579d8138 | 14786 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14787 | else |
579d8138 VS |
14788 | echo "$ac_t""no" 1>&6 |
14789 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
5c0a20c3 | 14790 | echo "configure:14791: checking for -lMesaGL" >&5 |
579d8138 | 14791 | |
21d1c967 GD |
14792 | ac_find_libraries= |
14793 | for ac_dir in $SEARCH_LIB; | |
14794 | do | |
14795 | for ac_extension in a so sl dylib; do | |
14796 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14797 | ac_find_libraries=$ac_dir | |
14798 | break 2 | |
14799 | fi | |
14800 | done | |
14801 | done | |
14802 | ||
14803 | if test "$ac_find_libraries" != "" ; then | |
579d8138 | 14804 | |
21d1c967 GD |
14805 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
14806 | result=$? | |
14807 | if test $result = 0; then | |
14808 | ac_path_to_link="" | |
14809 | else | |
14810 | ac_path_to_link=" -L$ac_find_libraries" | |
14811 | fi | |
14812 | ||
14813 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
14814 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
579d8138 | 14815 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 14816 | else |
579d8138 | 14817 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14818 | fi |
14819 | fi | |
579d8138 VS |
14820 | |
14821 | else | |
14822 | echo "$ac_t""no" 1>&6 | |
328a083c | 14823 | fi |
698dcdb6 | 14824 | |
579d8138 | 14825 | |
21d1c967 | 14826 | if test "x$OPENGL_LIBS" = "x"; then |
579d8138 | 14827 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
14828 | fi |
14829 | fi | |
90dd450c | 14830 | |
21d1c967 | 14831 | if test "$wxUSE_OPENGL" = "yes"; then |
579d8138 | 14832 | cat >> confdefs.h <<\EOF |
21d1c967 | 14833 | #define wxUSE_OPENGL 1 |
698dcdb6 | 14834 | EOF |
21d1c967 | 14835 | |
579d8138 | 14836 | cat >> confdefs.h <<\EOF |
21d1c967 GD |
14837 | #define wxUSE_GLCANVAS 1 |
14838 | EOF | |
14839 | ||
14840 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
14841 | fi | |
10f2d63a | 14842 | fi |
21d1c967 GD |
14843 | |
14844 | if test -z "$TOOLKIT_VPATH" ; then | |
14845 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 14846 | fi |
21d1c967 GD |
14847 | |
14848 | if test -n "$TOOLKIT" ; then | |
14849 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
14850 | fi | |
14851 | ||
14852 | lib_unicode_suffix= | |
14853 | if test "$wxUSE_UNICODE" = "yes"; then | |
14854 | lib_unicode_suffix=u | |
90dd450c | 14855 | fi |
698dcdb6 | 14856 | |
21d1c967 GD |
14857 | lib_debug_suffix= |
14858 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
14859 | lib_debug_suffix=d | |
14860 | fi | |
698dcdb6 | 14861 | |
21d1c967 GD |
14862 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" |
14863 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
14864 | ||
14865 | if test "$cross_compiling" = "yes"; then | |
14866 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
14867 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
14868 | fi | |
14869 | ||
14870 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
14871 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
14872 | ||
14873 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14874 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
14875 | ||
14876 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
14877 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14878 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
14879 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14880 | ||
14881 | case "${host}" in | |
14882 | *-*-cygwin* | *-*-mingw32* ) | |
14883 | ||
579d8138 VS |
14884 | |
14885 | ||
17234b26 | 14886 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
14887 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
14888 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
14889 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
14890 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14891 | else | |
14892 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
14893 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
14894 | fi | |
14895 | ;; | |
14896 | ||
14897 | *-*-darwin* ) | |
14898 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 14899 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
14900 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
14901 | fi | |
14902 | ;; | |
14903 | esac | |
14904 | ||
14905 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
14906 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
14907 | ||
14908 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
14909 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
14910 | ||
14911 | if test "$wxUSE_OPENGL" = "yes"; then | |
14912 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
14913 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
14914 | fi | |
14915 | ||
579d8138 VS |
14916 | |
14917 | ||
21d1c967 GD |
14918 | if test "$wxUSE_SHARED" = "yes"; then |
14919 | case "${host}" in | |
14920 | *-pc-os2_emx | *-pc-os2-emx | \ | |
14921 | *-pc-msdosdjgpp ) | |
14922 | wxUSE_SHARED=no | |
579d8138 | 14923 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
14924 | ;; |
14925 | esac | |
14926 | fi | |
14927 | ||
14928 | if test "$wxUSE_SHARED" = "yes"; then | |
14929 | ||
14930 | if test "$wxUSE_OPENGL" = "yes"; then | |
14931 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
14932 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
14933 | else | |
14934 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
14935 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
14936 | fi | |
14937 | ||
14938 | if test "$GCC" = "yes"; then | |
14939 | PIC_FLAG="-fPIC" | |
14940 | fi | |
14941 | ||
14942 | SHARED_LD="${CXX} -shared -o" | |
14943 | ||
14944 | case "${host}" in | |
14945 | *-hp-hpux* ) | |
14946 | if test "$GCC" == "yes"; then | |
14947 | SHARED_LD="${SHARED_LD} ${PIC_FLAG}" | |
14948 | else | |
14949 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
14950 | ||
14951 | SHARED_LD="${CXX} -b -o" | |
14952 | PIC_FLAG="+Z" | |
14953 | fi | |
14954 | ||
14955 | if test "$wxUSE_OPENGL" = "yes"; then | |
14956 | WX_ALL_INSTALLED="preinstall_gl" | |
14957 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
14958 | else | |
14959 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
14960 | fi | |
14961 | ;; | |
14962 | ||
14963 | *-*-linux* ) | |
14964 | if test "$GCC" != "yes"; then | |
579d8138 | 14965 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
5c0a20c3 | 14966 | echo "configure:14967: checking for Intel compiler" >&5 |
579d8138 VS |
14967 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
14968 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14969 | else | |
14970 | ||
14971 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 14972 | #line 14973 "configure" |
698dcdb6 | 14973 | #include "confdefs.h" |
90dd450c | 14974 | |
579d8138 | 14975 | int main() { |
90dd450c | 14976 | |
21d1c967 GD |
14977 | #ifndef __INTEL_COMPILER |
14978 | #error Not icc | |
14979 | #endif | |
579d8138 VS |
14980 | |
14981 | ; return 0; } | |
14982 | EOF | |
5c0a20c3 | 14983 | if { (eval echo configure:14984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 14984 | rm -rf conftest* |
21d1c967 | 14985 | wx_cv_prog_icc=yes |
6232543b | 14986 | else |
579d8138 VS |
14987 | echo "configure: failed program was:" >&5 |
14988 | cat conftest.$ac_ext >&5 | |
14989 | rm -rf conftest* | |
14990 | wx_cv_prog_icc=no | |
14991 | ||
698dcdb6 | 14992 | fi |
579d8138 VS |
14993 | rm -f conftest* |
14994 | ||
328a083c | 14995 | fi |
579d8138 VS |
14996 | |
14997 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
14998 | if test "$wx_cv_prog_icc" = "yes"; then |
14999 | PIC_FLAG="-KPIC" | |
15000 | fi | |
15001 | fi | |
15002 | ||
15003 | if test "$wxUSE_SONAME" = "yes" ; then | |
15004 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
15005 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
15006 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
15007 | fi | |
15008 | ;; | |
15009 | ||
15010 | *-*-solaris2* ) | |
15011 | if test "$GCC" = yes ; then | |
15012 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
15013 | else | |
15014 | SHARED_LD="${CXX} -G -o" | |
15015 | PIC_FLAG="-KPIC" | |
15016 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
15017 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
15018 | fi | |
15019 | ;; | |
15020 | ||
15021 | *-*-darwin* ) | |
15022 | CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL" | |
15023 | CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL" | |
15024 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" | |
15025 | PIC_FLAG="-dynamic -fPIC" | |
15026 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
15027 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
15028 | ;; | |
15029 | ||
15030 | *-*-aix* ) | |
321d2b14 VZ |
15031 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. |
15032 | set dummy makeC++SharedLib; ac_word=$2 | |
579d8138 | 15033 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 15034 | echo "configure:15035: checking for $ac_word" >&5 |
579d8138 VS |
15035 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
15036 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
15037 | else |
15038 | if test -n "$AIX_CXX_LD"; then | |
15039 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
15040 | else | |
5c0a20c3 VZ |
15041 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
15042 | for ac_dir in $PATH; do | |
579d8138 VS |
15043 | test -z "$ac_dir" && ac_dir=. |
15044 | if test -f $ac_dir/$ac_word; then | |
15045 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
15046 | break | |
15047 | fi | |
15048 | done | |
15049 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
15050 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
15051 | fi | |
15052 | fi | |
579d8138 | 15053 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 15054 | if test -n "$AIX_CXX_LD"; then |
579d8138 | 15055 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 15056 | else |
579d8138 | 15057 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
15058 | fi |
15059 | ||
579d8138 | 15060 | |
321d2b14 | 15061 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
21d1c967 GD |
15062 | ;; |
15063 | ||
15064 | *-*-cygwin* | *-*-mingw32* ) | |
15065 | ||
15066 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" | |
15067 | ||
15068 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
15069 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
15070 | ||
15071 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
15072 | ||
15073 | if test "$wxUSE_OPENGL" = "yes"; then | |
15074 | WX_ALL_INSTALLED="preinstall_gl" | |
15075 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
15076 | else | |
15077 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
15078 | fi | |
15079 | ;; | |
15080 | ||
15081 | *-*-beos* ) | |
15082 | SHARED_LD="${LD} -shared -o" | |
15083 | ;; | |
15084 | ||
15085 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
15086 | *-*-sunos4* | \ | |
15087 | *-*-irix5* | *-*-irix6* | \ | |
15088 | *-*-osf* | \ | |
15089 | *-*-dgux5* | \ | |
15090 | *-*-sysv5* ) | |
15091 | ;; | |
15092 | ||
15093 | *) | |
579d8138 | 15094 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
15095 | esac |
15096 | ||
15097 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
15098 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
15099 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
15100 | fi | |
15101 | ||
15102 | WX_TARGET_LIBRARY_TYPE="so" | |
15103 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 15104 | fi |
10f2d63a | 15105 | |
21d1c967 GD |
15106 | if test "$wxUSE_SHARED" = "no"; then |
15107 | ||
15108 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
15109 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15110 | fi | |
15111 | ||
15112 | if test "$wxUSE_MAC" = 1; then | |
15113 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
15114 | fi | |
15115 | ||
15116 | if test "$wxUSE_OPENGL" = "yes"; then | |
15117 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
15118 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
15119 | else | |
15120 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
15121 | fi | |
15122 | ||
15123 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
15124 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
15125 | ||
15126 | WX_TARGET_LIBRARY_TYPE="a" | |
15127 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
90dd450c | 15128 | fi |
1e487827 | 15129 | |
21d1c967 GD |
15130 | if test "$wxUSE_MAC" = 1; then |
15131 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
15132 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
15133 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
15134 | # Extract the first word of "Rez", so it can be a program name with args. | |
15135 | set dummy Rez; ac_word=$2 | |
579d8138 | 15136 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 15137 | echo "configure:15138: checking for $ac_word" >&5 |
579d8138 VS |
15138 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
15139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 15140 | else |
21d1c967 GD |
15141 | if test -n "$RESCOMP"; then |
15142 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 15143 | else |
5c0a20c3 VZ |
15144 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
15145 | for ac_dir in $PATH; do | |
579d8138 VS |
15146 | test -z "$ac_dir" && ac_dir=. |
15147 | if test -f $ac_dir/$ac_word; then | |
15148 | ac_cv_prog_RESCOMP="Rez" | |
15149 | break | |
15150 | fi | |
15151 | done | |
15152 | IFS="$ac_save_ifs" | |
21d1c967 | 15153 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 15154 | fi |
b93d0d08 | 15155 | fi |
579d8138 | 15156 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 15157 | if test -n "$RESCOMP"; then |
579d8138 | 15158 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 15159 | else |
579d8138 | 15160 | echo "$ac_t""no" 1>&6 |
90dd450c | 15161 | fi |
b93d0d08 | 15162 | |
21d1c967 GD |
15163 | # Extract the first word of "DeRez", so it can be a program name with args. |
15164 | set dummy DeRez; ac_word=$2 | |
579d8138 | 15165 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5c0a20c3 | 15166 | echo "configure:15167: checking for $ac_word" >&5 |
579d8138 VS |
15167 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
15168 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 15169 | else |
21d1c967 GD |
15170 | if test -n "$DEREZ"; then |
15171 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 15172 | else |
5c0a20c3 VZ |
15173 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
15174 | for ac_dir in $PATH; do | |
579d8138 VS |
15175 | test -z "$ac_dir" && ac_dir=. |
15176 | if test -f $ac_dir/$ac_word; then | |
15177 | ac_cv_prog_DEREZ="DeRez" | |
15178 | break | |
15179 | fi | |
15180 | done | |
15181 | IFS="$ac_save_ifs" | |
21d1c967 | 15182 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 15183 | fi |
90dd450c | 15184 | fi |
579d8138 | 15185 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 15186 | if test -n "$DEREZ"; then |
579d8138 | 15187 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 15188 | else |
579d8138 | 15189 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 15190 | fi |
698dcdb6 | 15191 | |
21d1c967 GD |
15192 | MACOSX_BUNDLE="bundle" |
15193 | if test "$wxUSE_SHARED" = "yes"; then | |
15194 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)" | |
15195 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o" | |
15196 | else | |
15197 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" | |
15198 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
15199 | fi | |
15200 | else | |
15201 | if test "$wxUSE_PM" = 1; then | |
15202 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 15203 | fi |
4f14bcd8 | 15204 | fi |
10f2d63a | 15205 | |
579d8138 VS |
15206 | |
15207 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
5c0a20c3 | 15208 | echo "configure:15209: checking for ANSI C header files" >&5 |
579d8138 VS |
15209 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
15210 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 15211 | else |
579d8138 | 15212 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15213 | #line 15214 "configure" |
90dd450c | 15214 | #include "confdefs.h" |
579d8138 VS |
15215 | #include <stdlib.h> |
15216 | #include <stdarg.h> | |
15217 | #include <string.h> | |
15218 | #include <float.h> | |
15219 | EOF | |
15220 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
15221 | { (eval echo configure:15222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
15222 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
15223 | if test -z "$ac_err"; then |
15224 | rm -rf conftest* | |
15225 | ac_cv_header_stdc=yes | |
15226 | else | |
15227 | echo "$ac_err" >&5 | |
15228 | echo "configure: failed program was:" >&5 | |
15229 | cat conftest.$ac_ext >&5 | |
15230 | rm -rf conftest* | |
15231 | ac_cv_header_stdc=no | |
15232 | fi | |
15233 | rm -f conftest* | |
15234 | ||
15235 | if test $ac_cv_header_stdc = yes; then | |
15236 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15237 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15238 | #line 15239 "configure" |
579d8138 VS |
15239 | #include "confdefs.h" |
15240 | #include <string.h> | |
15241 | EOF | |
15242 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15243 | egrep "memchr" >/dev/null 2>&1; then | |
15244 | : | |
90dd450c | 15245 | else |
579d8138 VS |
15246 | rm -rf conftest* |
15247 | ac_cv_header_stdc=no | |
90dd450c | 15248 | fi |
579d8138 VS |
15249 | rm -f conftest* |
15250 | ||
90dd450c | 15251 | fi |
579d8138 VS |
15252 | |
15253 | if test $ac_cv_header_stdc = yes; then | |
15254 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15255 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15256 | #line 15257 "configure" |
579d8138 VS |
15257 | #include "confdefs.h" |
15258 | #include <stdlib.h> | |
15259 | EOF | |
15260 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15261 | egrep "free" >/dev/null 2>&1; then | |
90dd450c | 15262 | : |
10f2d63a | 15263 | else |
579d8138 VS |
15264 | rm -rf conftest* |
15265 | ac_cv_header_stdc=no | |
15266 | fi | |
15267 | rm -f conftest* | |
9d353d4a | 15268 | |
579d8138 VS |
15269 | fi |
15270 | ||
15271 | if test $ac_cv_header_stdc = yes; then | |
15272 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15273 | if test "$cross_compiling" = yes; then | |
15274 | : | |
15275 | else | |
15276 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15277 | #line 15278 "configure" |
579d8138 VS |
15278 | #include "confdefs.h" |
15279 | #include <ctype.h> | |
15280 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15281 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15282 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15283 | int main () { int i; for (i = 0; i < 256; i++) | |
15284 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
15285 | exit (0); } | |
15286 | ||
15287 | EOF | |
5c0a20c3 | 15288 | if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
579d8138 VS |
15289 | then |
15290 | : | |
15291 | else | |
15292 | echo "configure: failed program was:" >&5 | |
15293 | cat conftest.$ac_ext >&5 | |
15294 | rm -fr conftest* | |
15295 | ac_cv_header_stdc=no | |
15296 | fi | |
15297 | rm -fr conftest* | |
15298 | fi | |
15299 | ||
15300 | fi | |
15301 | fi | |
15302 | ||
15303 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
15304 | if test $ac_cv_header_stdc = yes; then | |
15305 | cat >> confdefs.h <<\EOF | |
15306 | #define STDC_HEADERS 1 | |
9d353d4a RR |
15307 | EOF |
15308 | ||
90dd450c | 15309 | fi |
9d353d4a | 15310 | |
579d8138 | 15311 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
5c0a20c3 | 15312 | echo "configure:15313: checking for mode_t" >&5 |
579d8138 VS |
15313 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
15314 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 15315 | else |
579d8138 | 15316 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15317 | #line 15318 "configure" |
10f2d63a | 15318 | #include "confdefs.h" |
579d8138 VS |
15319 | #include <sys/types.h> |
15320 | #if STDC_HEADERS | |
15321 | #include <stdlib.h> | |
15322 | #include <stddef.h> | |
15323 | #endif | |
15324 | EOF | |
15325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5c0a20c3 | 15326 | egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
579d8138 VS |
15327 | rm -rf conftest* |
15328 | ac_cv_type_mode_t=yes | |
698dcdb6 | 15329 | else |
579d8138 VS |
15330 | rm -rf conftest* |
15331 | ac_cv_type_mode_t=no | |
698dcdb6 | 15332 | fi |
579d8138 VS |
15333 | rm -f conftest* |
15334 | ||
698dcdb6 | 15335 | fi |
579d8138 VS |
15336 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
15337 | if test $ac_cv_type_mode_t = no; then | |
15338 | cat >> confdefs.h <<\EOF | |
15339 | #define mode_t int | |
15340 | EOF | |
15341 | ||
15342 | fi | |
15343 | ||
15344 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
5c0a20c3 | 15345 | echo "configure:15346: checking for off_t" >&5 |
579d8138 VS |
15346 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
15347 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15348 | else | |
15349 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15350 | #line 15351 "configure" |
579d8138 VS |
15351 | #include "confdefs.h" |
15352 | #include <sys/types.h> | |
15353 | #if STDC_HEADERS | |
15354 | #include <stdlib.h> | |
15355 | #include <stddef.h> | |
15356 | #endif | |
15357 | EOF | |
15358 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5c0a20c3 | 15359 | egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
579d8138 VS |
15360 | rm -rf conftest* |
15361 | ac_cv_type_off_t=yes | |
328a083c | 15362 | else |
579d8138 VS |
15363 | rm -rf conftest* |
15364 | ac_cv_type_off_t=no | |
15365 | fi | |
15366 | rm -f conftest* | |
328a083c | 15367 | |
579d8138 VS |
15368 | fi |
15369 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
15370 | if test $ac_cv_type_off_t = no; then | |
15371 | cat >> confdefs.h <<\EOF | |
90dd450c | 15372 | #define off_t long |
10f2d63a VZ |
15373 | EOF |
15374 | ||
90dd450c | 15375 | fi |
10f2d63a | 15376 | |
579d8138 | 15377 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
5c0a20c3 | 15378 | echo "configure:15379: checking for pid_t" >&5 |
579d8138 VS |
15379 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
15380 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 15381 | else |
579d8138 | 15382 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15383 | #line 15384 "configure" |
10f2d63a | 15384 | #include "confdefs.h" |
579d8138 VS |
15385 | #include <sys/types.h> |
15386 | #if STDC_HEADERS | |
15387 | #include <stdlib.h> | |
15388 | #include <stddef.h> | |
15389 | #endif | |
15390 | EOF | |
15391 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5c0a20c3 | 15392 | egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
579d8138 | 15393 | rm -rf conftest* |
90dd450c | 15394 | ac_cv_type_pid_t=yes |
698dcdb6 | 15395 | else |
579d8138 VS |
15396 | rm -rf conftest* |
15397 | ac_cv_type_pid_t=no | |
698dcdb6 | 15398 | fi |
579d8138 | 15399 | rm -f conftest* |
328a083c | 15400 | |
579d8138 VS |
15401 | fi |
15402 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
15403 | if test $ac_cv_type_pid_t = no; then | |
15404 | cat >> confdefs.h <<\EOF | |
90dd450c | 15405 | #define pid_t int |
10f2d63a VZ |
15406 | EOF |
15407 | ||
90dd450c | 15408 | fi |
328a083c | 15409 | |
579d8138 | 15410 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
5c0a20c3 | 15411 | echo "configure:15412: checking for size_t" >&5 |
579d8138 VS |
15412 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
15413 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 15414 | else |
579d8138 | 15415 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15416 | #line 15417 "configure" |
328a083c | 15417 | #include "confdefs.h" |
579d8138 VS |
15418 | #include <sys/types.h> |
15419 | #if STDC_HEADERS | |
15420 | #include <stdlib.h> | |
15421 | #include <stddef.h> | |
15422 | #endif | |
15423 | EOF | |
15424 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5c0a20c3 | 15425 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
579d8138 | 15426 | rm -rf conftest* |
90dd450c | 15427 | ac_cv_type_size_t=yes |
18dbb1f6 | 15428 | else |
579d8138 VS |
15429 | rm -rf conftest* |
15430 | ac_cv_type_size_t=no | |
18dbb1f6 | 15431 | fi |
579d8138 | 15432 | rm -f conftest* |
328a083c | 15433 | |
579d8138 VS |
15434 | fi |
15435 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
15436 | if test $ac_cv_type_size_t = no; then | |
15437 | cat >> confdefs.h <<\EOF | |
90dd450c VZ |
15438 | #define size_t unsigned |
15439 | EOF | |
15440 | ||
15441 | fi | |
15442 | ||
579d8138 | 15443 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
5c0a20c3 | 15444 | echo "configure:15445: checking for uid_t in sys/types.h" >&5 |
579d8138 VS |
15445 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
15446 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 15447 | else |
579d8138 | 15448 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15449 | #line 15450 "configure" |
b3e8d00a | 15450 | #include "confdefs.h" |
90dd450c | 15451 | #include <sys/types.h> |
579d8138 | 15452 | EOF |
90dd450c VZ |
15453 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
15454 | egrep "uid_t" >/dev/null 2>&1; then | |
579d8138 | 15455 | rm -rf conftest* |
90dd450c | 15456 | ac_cv_type_uid_t=yes |
b3e8d00a | 15457 | else |
579d8138 | 15458 | rm -rf conftest* |
90dd450c | 15459 | ac_cv_type_uid_t=no |
b3e8d00a | 15460 | fi |
90dd450c | 15461 | rm -f conftest* |
b3e8d00a | 15462 | |
4f14bcd8 | 15463 | fi |
328a083c | 15464 | |
579d8138 VS |
15465 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
15466 | if test $ac_cv_type_uid_t = no; then | |
15467 | cat >> confdefs.h <<\EOF | |
90dd450c VZ |
15468 | #define uid_t int |
15469 | EOF | |
15470 | ||
579d8138 | 15471 | cat >> confdefs.h <<\EOF |
90dd450c | 15472 | #define gid_t int |
b3e8d00a | 15473 | EOF |
4f14bcd8 | 15474 | |
b3e8d00a | 15475 | fi |
b3e8d00a | 15476 | |
579d8138 VS |
15477 | |
15478 | ||
15479 | ac_ext=C | |
15480 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 15481 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 15482 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 15483 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 15484 | cross_compiling=$ac_cv_prog_cxx_cross |
90dd450c | 15485 | |
579d8138 | 15486 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
5c0a20c3 | 15487 | echo "configure:15488: checking if size_t is unsigned int" >&5 |
579d8138 VS |
15488 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
15489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 15490 | else |
579d8138 | 15491 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15492 | #line 15493 "configure" |
10f2d63a | 15493 | #include "confdefs.h" |
90dd450c | 15494 | #include <stddef.h> |
579d8138 | 15495 | int main() { |
90dd450c VZ |
15496 | |
15497 | return 0; } | |
15498 | ||
15499 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
15500 | ||
15501 | int bar() { | |
579d8138 VS |
15502 | |
15503 | ; return 0; } | |
15504 | EOF | |
5c0a20c3 | 15505 | if { (eval echo configure:15506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 15506 | rm -rf conftest* |
90dd450c | 15507 | wx_cv_size_t_is_uint=no |
698dcdb6 | 15508 | else |
579d8138 VS |
15509 | echo "configure: failed program was:" >&5 |
15510 | cat conftest.$ac_ext >&5 | |
15511 | rm -rf conftest* | |
15512 | wx_cv_size_t_is_uint=yes | |
15513 | ||
698dcdb6 | 15514 | fi |
579d8138 | 15515 | rm -f conftest* |
698dcdb6 | 15516 | |
328a083c | 15517 | fi |
579d8138 VS |
15518 | |
15519 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 15520 | |
90dd450c | 15521 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
579d8138 | 15522 | cat >> confdefs.h <<\EOF |
90dd450c | 15523 | #define wxSIZE_T_IS_UINT 1 |
698dcdb6 VZ |
15524 | EOF |
15525 | ||
90dd450c | 15526 | else |
579d8138 | 15527 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
5c0a20c3 | 15528 | echo "configure:15529: checking if size_t is unsigned long" >&5 |
579d8138 VS |
15529 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
15530 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15531 | else |
579d8138 | 15532 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15533 | #line 15534 "configure" |
10f2d63a | 15534 | #include "confdefs.h" |
90dd450c | 15535 | #include <stddef.h> |
579d8138 | 15536 | int main() { |
90dd450c VZ |
15537 | |
15538 | return 0; } | |
15539 | ||
15540 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
15541 | ||
15542 | int bar() { | |
579d8138 VS |
15543 | |
15544 | ; return 0; } | |
15545 | EOF | |
5c0a20c3 | 15546 | if { (eval echo configure:15547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 15547 | rm -rf conftest* |
90dd450c | 15548 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 15549 | else |
579d8138 VS |
15550 | echo "configure: failed program was:" >&5 |
15551 | cat conftest.$ac_ext >&5 | |
15552 | rm -rf conftest* | |
15553 | wx_cv_size_t_is_ulong=yes | |
15554 | ||
698dcdb6 | 15555 | fi |
579d8138 VS |
15556 | rm -f conftest* |
15557 | ||
328a083c | 15558 | fi |
579d8138 VS |
15559 | |
15560 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 15561 | |
90dd450c | 15562 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
579d8138 | 15563 | cat >> confdefs.h <<\EOF |
90dd450c | 15564 | #define wxSIZE_T_IS_ULONG 1 |
4f14bcd8 GD |
15565 | EOF |
15566 | ||
15567 | fi | |
90dd450c | 15568 | fi |
1e487827 | 15569 | |
90dd450c | 15570 | ac_ext=c |
579d8138 | 15571 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 15572 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 15573 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 15574 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
15575 | cross_compiling=$ac_cv_prog_cc_cross |
15576 | ||
698dcdb6 | 15577 | |
328a083c | 15578 | |
579d8138 | 15579 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
5c0a20c3 | 15580 | echo "configure:15581: checking for pw_gecos in struct passwd" >&5 |
579d8138 VS |
15581 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
15582 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15583 | else | |
15584 | ||
15585 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15586 | #line 15587 "configure" |
4f14bcd8 | 15587 | #include "confdefs.h" |
90dd450c | 15588 | #include <pwd.h> |
579d8138 | 15589 | int main() { |
f6bcfd97 | 15590 | |
90dd450c VZ |
15591 | char *p; |
15592 | struct passwd *pw; | |
15593 | p = pw->pw_gecos; | |
579d8138 VS |
15594 | |
15595 | ; return 0; } | |
15596 | EOF | |
5c0a20c3 | 15597 | if { (eval echo configure:15598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
15598 | rm -rf conftest* |
15599 | ||
90dd450c | 15600 | wx_cv_struct_pw_gecos=yes |
579d8138 | 15601 | |
10f2d63a | 15602 | else |
579d8138 VS |
15603 | echo "configure: failed program was:" >&5 |
15604 | cat conftest.$ac_ext >&5 | |
15605 | rm -rf conftest* | |
15606 | ||
90dd450c | 15607 | wx_cv_struct_pw_gecos=no |
579d8138 VS |
15608 | |
15609 | ||
4f14bcd8 | 15610 | fi |
579d8138 VS |
15611 | rm -f conftest* |
15612 | ||
c521c494 | 15613 | |
328a083c | 15614 | fi |
579d8138 VS |
15615 | |
15616 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 15617 | |
90dd450c | 15618 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
579d8138 | 15619 | cat >> confdefs.h <<\EOF |
90dd450c | 15620 | #define HAVE_PW_GECOS 1 |
4f14bcd8 | 15621 | EOF |
c521c494 | 15622 | |
90dd450c | 15623 | fi |
4f14bcd8 | 15624 | |
579d8138 | 15625 | |
d29b553b VZ |
15626 | WCHAR_OK=0 |
15627 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
15628 | WCHAR_LINK= | |
579d8138 | 15629 | for ac_func in wcslen |
7a30264c | 15630 | do |
579d8138 | 15631 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 15632 | echo "configure:15633: checking for $ac_func" >&5 |
579d8138 VS |
15633 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15634 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15635 | else | |
15636 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15637 | #line 15638 "configure" |
4f14bcd8 | 15638 | #include "confdefs.h" |
7a30264c | 15639 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 15640 | which can conflict with char $ac_func(); below. */ |
7a30264c | 15641 | #include <assert.h> |
4f14bcd8 GD |
15642 | /* Override any gcc2 internal prototype to avoid an error. */ |
15643 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
15644 | builtin and then its argument prototype would still apply. */ |
15645 | char $ac_func(); | |
15646 | ||
15647 | int main() { | |
7a30264c VZ |
15648 | |
15649 | /* The GNU C library defines this for functions which it implements | |
15650 | to always fail with ENOSYS. Some functions are actually named | |
15651 | something starting with __ and the normal name is an alias. */ | |
15652 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15653 | choke me | |
15654 | #else | |
579d8138 | 15655 | $ac_func(); |
7a30264c VZ |
15656 | #endif |
15657 | ||
579d8138 VS |
15658 | ; return 0; } |
15659 | EOF | |
5c0a20c3 | 15660 | if { (eval echo configure:15661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
15661 | rm -rf conftest* |
15662 | eval "ac_cv_func_$ac_func=yes" | |
15663 | else | |
15664 | echo "configure: failed program was:" >&5 | |
15665 | cat conftest.$ac_ext >&5 | |
15666 | rm -rf conftest* | |
15667 | eval "ac_cv_func_$ac_func=no" | |
15668 | fi | |
15669 | rm -f conftest* | |
15670 | fi | |
15671 | ||
15672 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
15673 | echo "$ac_t""yes" 1>&6 | |
15674 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15675 | cat >> confdefs.h <<EOF | |
15676 | #define $ac_tr_func 1 | |
15677 | EOF | |
15678 | ||
15679 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15680 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15681 | EOF |
15682 | ||
7a30264c | 15683 | WCHAR_OK=1 |
579d8138 VS |
15684 | |
15685 | else | |
15686 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
15687 | fi |
15688 | done | |
9d8deca0 | 15689 | |
579d8138 | 15690 | |
7a30264c VZ |
15691 | if test "$WCHAR_OK" = 0; then |
15692 | if test "$TOOLKIT" = "MSW"; then | |
579d8138 | 15693 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
5c0a20c3 | 15694 | echo "configure:15695: checking for wcslen in -lmsvcrt" >&5 |
579d8138 VS |
15695 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
15696 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15697 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 15698 | else |
579d8138 | 15699 | ac_save_LIBS="$LIBS" |
7a30264c | 15700 | LIBS="-lmsvcrt $LIBS" |
579d8138 | 15701 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15702 | #line 15703 "configure" |
10f2d63a | 15703 | #include "confdefs.h" |
4f14bcd8 GD |
15704 | /* Override any gcc2 internal prototype to avoid an error. */ |
15705 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
15706 | builtin and then its argument prototype would still apply. */ |
15707 | char wcslen(); | |
15708 | ||
15709 | int main() { | |
15710 | wcslen() | |
15711 | ; return 0; } | |
15712 | EOF | |
5c0a20c3 | 15713 | if { (eval echo configure:15714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
15714 | rm -rf conftest* |
15715 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15716 | else | |
15717 | echo "configure: failed program was:" >&5 | |
15718 | cat conftest.$ac_ext >&5 | |
15719 | rm -rf conftest* | |
15720 | eval "ac_cv_lib_$ac_lib_var=no" | |
15721 | fi | |
15722 | rm -f conftest* | |
15723 | LIBS="$ac_save_LIBS" | |
15724 | ||
15725 | fi | |
15726 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15727 | echo "$ac_t""yes" 1>&6 | |
15728 | ||
15729 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15730 | #define HAVE_WCSLEN 1 |
9d8deca0 VZ |
15731 | EOF |
15732 | ||
7a30264c | 15733 | WCHAR_OK=1 |
579d8138 VS |
15734 | |
15735 | else | |
15736 | echo "$ac_t""no" 1>&6 | |
d29b553b | 15737 | fi |
698dcdb6 | 15738 | |
7a30264c | 15739 | else |
579d8138 | 15740 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
5c0a20c3 | 15741 | echo "configure:15742: checking for wcslen in -lw" >&5 |
579d8138 VS |
15742 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
15743 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15744 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 15745 | else |
579d8138 | 15746 | ac_save_LIBS="$LIBS" |
7a30264c | 15747 | LIBS="-lw $LIBS" |
579d8138 | 15748 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 15749 | #line 15750 "configure" |
95c8801c | 15750 | #include "confdefs.h" |
4f14bcd8 GD |
15751 | /* Override any gcc2 internal prototype to avoid an error. */ |
15752 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
15753 | builtin and then its argument prototype would still apply. */ |
15754 | char wcslen(); | |
15755 | ||
15756 | int main() { | |
15757 | wcslen() | |
15758 | ; return 0; } | |
15759 | EOF | |
5c0a20c3 | 15760 | if { (eval echo configure:15761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
15761 | rm -rf conftest* |
15762 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15763 | else | |
15764 | echo "configure: failed program was:" >&5 | |
15765 | cat conftest.$ac_ext >&5 | |
15766 | rm -rf conftest* | |
15767 | eval "ac_cv_lib_$ac_lib_var=no" | |
15768 | fi | |
15769 | rm -f conftest* | |
15770 | LIBS="$ac_save_LIBS" | |
15771 | ||
15772 | fi | |
15773 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15774 | echo "$ac_t""yes" 1>&6 | |
15775 | ||
15776 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
15777 | #define HAVE_WCSLEN 1 |
15778 | EOF | |
698dcdb6 | 15779 | |
7a30264c VZ |
15780 | WCHAR_LINK=" -lw" |
15781 | WCHAR_OK=1 | |
579d8138 VS |
15782 | |
15783 | else | |
15784 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 15785 | fi |
10f2d63a | 15786 | |
7a30264c | 15787 | fi |
d29b553b | 15788 | fi |
4f14bcd8 | 15789 | fi |
95c8801c | 15790 | |
d29b553b | 15791 | if test "$WCHAR_OK" = 1; then |
579d8138 | 15792 | cat >> confdefs.h <<\EOF |
d29b553b VZ |
15793 | #define wxUSE_WCHAR_T 1 |
15794 | EOF | |
10f2d63a | 15795 | |
579d8138 VS |
15796 | |
15797 | for ac_func in wcsrtombs | |
eb4efbdc | 15798 | do |
579d8138 | 15799 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 15800 | echo "configure:15801: checking for $ac_func" >&5 |
579d8138 VS |
15801 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
15802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15803 | else | |
15804 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15805 | #line 15806 "configure" |
eb4efbdc VZ |
15806 | #include "confdefs.h" |
15807 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 15808 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
15809 | #include <assert.h> |
15810 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15811 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
15812 | builtin and then its argument prototype would still apply. */ |
15813 | char $ac_func(); | |
15814 | ||
15815 | int main() { | |
eb4efbdc VZ |
15816 | |
15817 | /* The GNU C library defines this for functions which it implements | |
15818 | to always fail with ENOSYS. Some functions are actually named | |
15819 | something starting with __ and the normal name is an alias. */ | |
15820 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15821 | choke me | |
15822 | #else | |
579d8138 | 15823 | $ac_func(); |
eb4efbdc VZ |
15824 | #endif |
15825 | ||
579d8138 | 15826 | ; return 0; } |
eb4efbdc | 15827 | EOF |
5c0a20c3 | 15828 | if { (eval echo configure:15829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
15829 | rm -rf conftest* |
15830 | eval "ac_cv_func_$ac_func=yes" | |
15831 | else | |
15832 | echo "configure: failed program was:" >&5 | |
15833 | cat conftest.$ac_ext >&5 | |
15834 | rm -rf conftest* | |
15835 | eval "ac_cv_func_$ac_func=no" | |
15836 | fi | |
15837 | rm -f conftest* | |
15838 | fi | |
eb4efbdc | 15839 | |
579d8138 VS |
15840 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
15841 | echo "$ac_t""yes" 1>&6 | |
15842 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
15843 | cat >> confdefs.h <<EOF | |
15844 | #define $ac_tr_func 1 | |
15845 | EOF | |
15846 | ||
15847 | else | |
15848 | echo "$ac_t""no" 1>&6 | |
eb4efbdc VZ |
15849 | fi |
15850 | done | |
15851 | ||
d29b553b | 15852 | else |
a1ea5055 | 15853 | if test "$USE_DARWIN" = 1; then |
579d8138 | 15854 | cat >> confdefs.h <<\EOF |
a1ea5055 GD |
15855 | #define wxUSE_WCHAR_T 1 |
15856 | EOF | |
15857 | ||
15858 | else | |
579d8138 | 15859 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
a1ea5055 | 15860 | fi |
d29b553b | 15861 | fi |
698dcdb6 | 15862 | |
579d8138 | 15863 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
5c0a20c3 | 15864 | echo "configure:15865: checking for vprintf" >&5 |
579d8138 VS |
15865 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
15866 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15867 | else | |
15868 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15869 | #line 15870 "configure" |
f6bcfd97 | 15870 | #include "confdefs.h" |
4f14bcd8 | 15871 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 15872 | which can conflict with char vprintf(); below. */ |
4f14bcd8 GD |
15873 | #include <assert.h> |
15874 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15875 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
15876 | builtin and then its argument prototype would still apply. */ |
15877 | char vprintf(); | |
15878 | ||
15879 | int main() { | |
f6bcfd97 | 15880 | |
4f14bcd8 GD |
15881 | /* The GNU C library defines this for functions which it implements |
15882 | to always fail with ENOSYS. Some functions are actually named | |
15883 | something starting with __ and the normal name is an alias. */ | |
579d8138 | 15884 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
4f14bcd8 GD |
15885 | choke me |
15886 | #else | |
579d8138 | 15887 | vprintf(); |
4f14bcd8 | 15888 | #endif |
f6bcfd97 | 15889 | |
579d8138 VS |
15890 | ; return 0; } |
15891 | EOF | |
5c0a20c3 | 15892 | if { (eval echo configure:15893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
15893 | rm -rf conftest* |
15894 | eval "ac_cv_func_vprintf=yes" | |
15895 | else | |
15896 | echo "configure: failed program was:" >&5 | |
15897 | cat conftest.$ac_ext >&5 | |
15898 | rm -rf conftest* | |
15899 | eval "ac_cv_func_vprintf=no" | |
15900 | fi | |
15901 | rm -f conftest* | |
15902 | fi | |
15903 | ||
15904 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | |
15905 | echo "$ac_t""yes" 1>&6 | |
15906 | cat >> confdefs.h <<\EOF | |
15907 | #define HAVE_VPRINTF 1 | |
15908 | EOF | |
15909 | ||
15910 | else | |
15911 | echo "$ac_t""no" 1>&6 | |
15912 | fi | |
15913 | ||
15914 | if test "$ac_cv_func_vprintf" != yes; then | |
15915 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | |
5c0a20c3 | 15916 | echo "configure:15917: checking for _doprnt" >&5 |
579d8138 VS |
15917 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
15918 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15919 | else | |
15920 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15921 | #line 15922 "configure" |
10f2d63a VZ |
15922 | #include "confdefs.h" |
15923 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 15924 | which can conflict with char _doprnt(); below. */ |
10f2d63a VZ |
15925 | #include <assert.h> |
15926 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15927 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
15928 | builtin and then its argument prototype would still apply. */ |
15929 | char _doprnt(); | |
15930 | ||
15931 | int main() { | |
10f2d63a VZ |
15932 | |
15933 | /* The GNU C library defines this for functions which it implements | |
15934 | to always fail with ENOSYS. Some functions are actually named | |
15935 | something starting with __ and the normal name is an alias. */ | |
4f14bcd8 | 15936 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
10f2d63a VZ |
15937 | choke me |
15938 | #else | |
579d8138 | 15939 | _doprnt(); |
10f2d63a VZ |
15940 | #endif |
15941 | ||
579d8138 VS |
15942 | ; return 0; } |
15943 | EOF | |
5c0a20c3 | 15944 | if { (eval echo configure:15945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
15945 | rm -rf conftest* |
15946 | eval "ac_cv_func__doprnt=yes" | |
15947 | else | |
15948 | echo "configure: failed program was:" >&5 | |
15949 | cat conftest.$ac_ext >&5 | |
15950 | rm -rf conftest* | |
15951 | eval "ac_cv_func__doprnt=no" | |
15952 | fi | |
15953 | rm -f conftest* | |
15954 | fi | |
15955 | ||
15956 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | |
15957 | echo "$ac_t""yes" 1>&6 | |
15958 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 15959 | #define HAVE_DOPRNT 1 |
698dcdb6 | 15960 | EOF |
4f14bcd8 | 15961 | |
579d8138 VS |
15962 | else |
15963 | echo "$ac_t""no" 1>&6 | |
270a909e | 15964 | fi |
270a909e | 15965 | |
4f14bcd8 | 15966 | fi |
1e487827 | 15967 | |
328a083c | 15968 | |
579d8138 VS |
15969 | |
15970 | ||
15971 | ||
15972 | ||
15973 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 | |
5c0a20c3 | 15974 | echo "configure:15975: checking for vsnprintf" >&5 |
579d8138 VS |
15975 | if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then |
15976 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15977 | else | |
15978 | ||
15979 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 15980 | #line 15981 "configure" |
c63c7106 | 15981 | #include "confdefs.h" |
698dcdb6 | 15982 | |
4f14bcd8 GD |
15983 | #include <stdio.h> |
15984 | #include <stdarg.h> | |
579d8138 VS |
15985 | |
15986 | int main() { | |
af15babd | 15987 | |
4f14bcd8 GD |
15988 | int wx_test_vsnprintf(const char *, ...); |
15989 | ||
15990 | wx_test_vsnprintf("%s"); | |
15991 | return 0; | |
15992 | } | |
15993 | ||
15994 | int wx_test_vsnprintf(const char *fmt, ...) | |
15995 | { | |
15996 | char *s; | |
15997 | ||
15998 | va_list argp; | |
15999 | va_start(argp, fmt); | |
16000 | vsnprintf(s, 42, fmt, argp); | |
16001 | va_end(argp); | |
579d8138 VS |
16002 | |
16003 | ; return 0; } | |
16004 | EOF | |
5c0a20c3 | 16005 | if { (eval echo configure:16006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16006 | rm -rf conftest* |
16007 | ||
4f14bcd8 | 16008 | wx_cv_func_vsnprintf=yes |
579d8138 | 16009 | |
af15babd | 16010 | else |
579d8138 VS |
16011 | echo "configure: failed program was:" >&5 |
16012 | cat conftest.$ac_ext >&5 | |
16013 | rm -rf conftest* | |
16014 | ||
16015 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16016 | #line 16017 "configure" |
af15babd | 16017 | #include "confdefs.h" |
af15babd | 16018 | |
4f14bcd8 GD |
16019 | #include <stdio.h> |
16020 | #include <stdarg.h> | |
579d8138 VS |
16021 | |
16022 | int main() { | |
af15babd | 16023 | |
4f14bcd8 GD |
16024 | int wx_test_vsnprintf(const char *, ...); |
16025 | ||
16026 | wx_test_vsnprintf("%s"); | |
16027 | return 0; | |
16028 | } | |
16029 | ||
16030 | int wx_test_vsnprintf(const char *fmt, ...) | |
16031 | { | |
16032 | char *s; | |
af15babd | 16033 | |
4f14bcd8 GD |
16034 | va_list argp; |
16035 | va_start(argp, fmt); | |
16036 | _vsnprintf(s, 42, fmt, argp); | |
16037 | va_end(argp); | |
579d8138 VS |
16038 | |
16039 | ; return 0; } | |
16040 | EOF | |
5c0a20c3 | 16041 | if { (eval echo configure:16042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16042 | rm -rf conftest* |
16043 | ||
4f14bcd8 | 16044 | wx_cv_func_vsnprintf=yes |
579d8138 | 16045 | |
af15babd | 16046 | else |
579d8138 VS |
16047 | echo "configure: failed program was:" >&5 |
16048 | cat conftest.$ac_ext >&5 | |
16049 | rm -rf conftest* | |
16050 | ||
4f14bcd8 | 16051 | wx_cv_func_vsnprintf=no |
579d8138 | 16052 | |
af15babd | 16053 | fi |
579d8138 VS |
16054 | rm -f conftest* |
16055 | ||
af15babd | 16056 | fi |
579d8138 | 16057 | rm -f conftest* |
af15babd | 16058 | |
328a083c | 16059 | fi |
579d8138 VS |
16060 | |
16061 | echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6 | |
af15babd | 16062 | |
4f14bcd8 | 16063 | if test "$wx_cv_func_vsnprintf" = yes; then |
579d8138 | 16064 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16065 | #define HAVE_VSNPRINTF 1 |
16066 | EOF | |
16067 | ||
16068 | else | |
579d8138 | 16069 | echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2 |
af15babd VZ |
16070 | fi |
16071 | ||
579d8138 | 16072 | echo $ac_n "checking for vsscanf""... $ac_c" 1>&6 |
5c0a20c3 | 16073 | echo "configure:16074: checking for vsscanf" >&5 |
579d8138 VS |
16074 | if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then |
16075 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16076 | else |
579d8138 VS |
16077 | |
16078 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16079 | #line 16080 "configure" |
af15babd | 16080 | #include "confdefs.h" |
af15babd | 16081 | |
4f14bcd8 GD |
16082 | #include <stdio.h> |
16083 | #include <stdarg.h> | |
579d8138 VS |
16084 | |
16085 | int main() { | |
af15babd | 16086 | |
4f14bcd8 GD |
16087 | int wx_test_vsscanf(const char *, ...); |
16088 | ||
16089 | wx_test_vsscanf("%d"); | |
16090 | return 0; | |
16091 | } | |
af15babd | 16092 | |
4f14bcd8 GD |
16093 | int wx_test_vsscanf(const char *fmt, ...) |
16094 | { | |
16095 | va_list argp; | |
16096 | va_start(argp, fmt); | |
16097 | vsscanf("42", fmt, argp); | |
16098 | va_end(argp); | |
579d8138 VS |
16099 | |
16100 | ; return 0; } | |
16101 | EOF | |
5c0a20c3 | 16102 | if { (eval echo configure:16103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
16103 | rm -rf conftest* |
16104 | ||
4f14bcd8 | 16105 | wx_cv_func_vsscanf=yes |
579d8138 | 16106 | |
af15babd | 16107 | else |
579d8138 VS |
16108 | echo "configure: failed program was:" >&5 |
16109 | cat conftest.$ac_ext >&5 | |
16110 | rm -rf conftest* | |
16111 | ||
4f14bcd8 | 16112 | wx_cv_func_vsscanf=no |
579d8138 | 16113 | |
af15babd | 16114 | fi |
579d8138 | 16115 | rm -f conftest* |
af15babd | 16116 | |
328a083c | 16117 | fi |
579d8138 VS |
16118 | |
16119 | echo "$ac_t""$wx_cv_func_vsscanf" 1>&6 | |
4f14bcd8 GD |
16120 | |
16121 | if test "$wx_cv_func_vsscanf" = yes; then | |
579d8138 | 16122 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16123 | #define HAVE_VSSCANF 1 |
af15babd | 16124 | EOF |
4f14bcd8 | 16125 | |
af15babd | 16126 | fi |
af15babd | 16127 | |
4f14bcd8 | 16128 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 16129 | |
579d8138 VS |
16130 | |
16131 | ||
16132 | ac_ext=C | |
16133 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16134 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 16135 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 16136 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 16137 | cross_compiling=$ac_cv_prog_cxx_cross |
b040e242 | 16138 | |
579d8138 VS |
16139 | |
16140 | ||
16141 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
16142 | if test "${with_libiconv_prefix+set}" = set; then |
16143 | withval="$with_libiconv_prefix" | |
579d8138 | 16144 | |
b040e242 VS |
16145 | for dir in `echo "$withval" | tr : ' '`; do |
16146 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
16147 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
16148 | done | |
579d8138 VS |
16149 | |
16150 | fi | |
b040e242 VS |
16151 | |
16152 | ||
579d8138 | 16153 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
5c0a20c3 | 16154 | echo "configure:16155: checking for iconv" >&5 |
579d8138 VS |
16155 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
16156 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16157 | else |
579d8138 | 16158 | |
b040e242 VS |
16159 | am_cv_func_iconv="no, consider installing GNU libiconv" |
16160 | am_cv_lib_iconv=no | |
579d8138 | 16161 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 16162 | #line 16163 "configure" |
af15babd | 16163 | #include "confdefs.h" |
b040e242 | 16164 | #include <stdlib.h> |
4f14bcd8 | 16165 | #include <iconv.h> |
579d8138 | 16166 | int main() { |
b040e242 VS |
16167 | iconv_t cd = iconv_open("",""); |
16168 | iconv(cd,NULL,NULL,NULL,NULL); | |
16169 | iconv_close(cd); | |
579d8138 VS |
16170 | ; return 0; } |
16171 | EOF | |
5c0a20c3 | 16172 | if { (eval echo configure:16173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 16173 | rm -rf conftest* |
b040e242 | 16174 | am_cv_func_iconv=yes |
af15babd | 16175 | else |
579d8138 VS |
16176 | echo "configure: failed program was:" >&5 |
16177 | cat conftest.$ac_ext >&5 | |
b040e242 | 16178 | fi |
579d8138 | 16179 | rm -f conftest* |
b040e242 VS |
16180 | if test "$am_cv_func_iconv" != yes; then |
16181 | am_save_LIBS="$LIBS" | |
16182 | LIBS="$LIBS -liconv" | |
579d8138 | 16183 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 16184 | #line 16185 "configure" |
b040e242 VS |
16185 | #include "confdefs.h" |
16186 | #include <stdlib.h> | |
16187 | #include <iconv.h> | |
579d8138 | 16188 | int main() { |
b040e242 VS |
16189 | iconv_t cd = iconv_open("",""); |
16190 | iconv(cd,NULL,NULL,NULL,NULL); | |
16191 | iconv_close(cd); | |
579d8138 VS |
16192 | ; return 0; } |
16193 | EOF | |
5c0a20c3 | 16194 | if { (eval echo configure:16195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 16195 | rm -rf conftest* |
b040e242 VS |
16196 | am_cv_lib_iconv=yes |
16197 | am_cv_func_iconv=yes | |
16198 | else | |
579d8138 VS |
16199 | echo "configure: failed program was:" >&5 |
16200 | cat conftest.$ac_ext >&5 | |
af15babd | 16201 | fi |
579d8138 | 16202 | rm -f conftest* |
b040e242 VS |
16203 | LIBS="$am_save_LIBS" |
16204 | fi | |
579d8138 | 16205 | |
328a083c | 16206 | fi |
328a083c | 16207 | |
579d8138 VS |
16208 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
16209 | if test "$am_cv_func_iconv" = yes; then | |
16210 | cat >> confdefs.h <<\EOF | |
b040e242 VS |
16211 | #define HAVE_ICONV 1 |
16212 | EOF | |
16213 | ||
579d8138 | 16214 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
5c0a20c3 | 16215 | echo "configure:16216: checking if iconv needs const" >&5 |
579d8138 VS |
16216 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
16217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 16218 | else |
579d8138 | 16219 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 16220 | #line 16221 "configure" |
b040e242 VS |
16221 | #include "confdefs.h" |
16222 | ||
16223 | #include <stdlib.h> | |
16224 | #include <iconv.h> | |
16225 | extern | |
16226 | #ifdef __cplusplus | |
16227 | "C" | |
16228 | #endif | |
16229 | #if defined(__STDC__) || defined(__cplusplus) | |
16230 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
16231 | #else | |
16232 | size_t iconv(); | |
16233 | #endif | |
579d8138 VS |
16234 | |
16235 | int main() { | |
af15babd | 16236 | |
579d8138 VS |
16237 | ; return 0; } |
16238 | EOF | |
5c0a20c3 | 16239 | if { (eval echo configure:16240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 16240 | rm -rf conftest* |
b7043674 | 16241 | wx_cv_func_iconv_const="no" |
b040e242 | 16242 | else |
579d8138 VS |
16243 | echo "configure: failed program was:" >&5 |
16244 | cat conftest.$ac_ext >&5 | |
16245 | rm -rf conftest* | |
16246 | wx_cv_func_iconv_const="yes" | |
16247 | ||
af15babd | 16248 | fi |
579d8138 VS |
16249 | rm -f conftest* |
16250 | ||
328a083c | 16251 | fi |
579d8138 VS |
16252 | |
16253 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
16254 | |
16255 | iconv_const= | |
1c405bb5 | 16256 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
16257 | iconv_const="const" |
16258 | fi | |
16259 | ||
579d8138 | 16260 | cat >> confdefs.h <<EOF |
5c0a20c3 | 16261 | #define ICONV_CONST 1 |
b040e242 VS |
16262 | EOF |
16263 | ||
16264 | fi | |
16265 | LIBICONV= | |
16266 | if test "$am_cv_lib_iconv" = yes; then | |
16267 | LIBICONV="-liconv" | |
16268 | fi | |
579d8138 | 16269 | |
b040e242 VS |
16270 | |
16271 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 16272 | ac_ext=c |
579d8138 | 16273 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16274 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 16275 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 16276 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 16277 | cross_compiling=$ac_cv_prog_cc_cross |
af15babd | 16278 | |
328a083c | 16279 | |
579d8138 VS |
16280 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
16281 | for ac_func in sigaction | |
af15babd | 16282 | do |
579d8138 | 16283 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16284 | echo "configure:16285: checking for $ac_func" >&5 |
579d8138 VS |
16285 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16286 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16287 | else | |
16288 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16289 | #line 16290 "configure" |
af15babd VZ |
16290 | #include "confdefs.h" |
16291 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 16292 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16293 | #include <assert.h> |
16294 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16295 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
16296 | builtin and then its argument prototype would still apply. */ |
16297 | char $ac_func(); | |
16298 | ||
16299 | int main() { | |
af15babd VZ |
16300 | |
16301 | /* The GNU C library defines this for functions which it implements | |
16302 | to always fail with ENOSYS. Some functions are actually named | |
16303 | something starting with __ and the normal name is an alias. */ | |
16304 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16305 | choke me | |
16306 | #else | |
579d8138 | 16307 | $ac_func(); |
af15babd VZ |
16308 | #endif |
16309 | ||
579d8138 | 16310 | ; return 0; } |
af15babd | 16311 | EOF |
5c0a20c3 | 16312 | if { (eval echo configure:16313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16313 | rm -rf conftest* |
16314 | eval "ac_cv_func_$ac_func=yes" | |
16315 | else | |
16316 | echo "configure: failed program was:" >&5 | |
16317 | cat conftest.$ac_ext >&5 | |
16318 | rm -rf conftest* | |
16319 | eval "ac_cv_func_$ac_func=no" | |
16320 | fi | |
16321 | rm -f conftest* | |
16322 | fi | |
af15babd | 16323 | |
579d8138 VS |
16324 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16325 | echo "$ac_t""yes" 1>&6 | |
16326 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16327 | cat >> confdefs.h <<EOF | |
16328 | #define $ac_tr_func 1 | |
16329 | EOF | |
16330 | ||
16331 | else | |
16332 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
16333 | fi |
16334 | done | |
16335 | ||
579d8138 | 16336 | |
4f14bcd8 | 16337 | if test "$ac_cv_func_sigaction" = "no"; then |
579d8138 | 16338 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
16339 | wxUSE_ON_FATAL_EXCEPTION=no |
16340 | fi | |
16341 | ||
16342 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
579d8138 VS |
16343 | |
16344 | ac_ext=C | |
16345 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
328a083c | 16346 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 16347 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 16348 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 16349 | cross_compiling=$ac_cv_prog_cxx_cross |
4f14bcd8 | 16350 | |
328a083c | 16351 | |
579d8138 | 16352 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
5c0a20c3 | 16353 | echo "configure:16354: checking for sa_handler type" >&5 |
579d8138 VS |
16354 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
16355 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16356 | else | |
16357 | ||
16358 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16359 | #line 16360 "configure" |
af15babd | 16360 | #include "confdefs.h" |
4f14bcd8 | 16361 | #include <signal.h> |
579d8138 | 16362 | int main() { |
4f14bcd8 GD |
16363 | |
16364 | extern void testSigHandler(int); | |
16365 | ||
16366 | struct sigaction sa; | |
16367 | sa.sa_handler = testSigHandler; | |
579d8138 VS |
16368 | |
16369 | ; return 0; } | |
16370 | EOF | |
5c0a20c3 | 16371 | if { (eval echo configure:16372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
16372 | rm -rf conftest* |
16373 | ||
4f14bcd8 | 16374 | wx_cv_type_sa_handler=int |
579d8138 | 16375 | |
af15babd | 16376 | else |
579d8138 VS |
16377 | echo "configure: failed program was:" >&5 |
16378 | cat conftest.$ac_ext >&5 | |
16379 | rm -rf conftest* | |
16380 | ||
4f14bcd8 | 16381 | wx_cv_type_sa_handler=void |
579d8138 | 16382 | |
4f14bcd8 | 16383 | fi |
579d8138 VS |
16384 | rm -f conftest* |
16385 | ||
328a083c | 16386 | fi |
579d8138 VS |
16387 | |
16388 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
16389 | |
16390 | ac_ext=c | |
579d8138 | 16391 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16392 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 16393 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 16394 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
16395 | cross_compiling=$ac_cv_prog_cc_cross |
16396 | ||
af15babd | 16397 | |
579d8138 | 16398 | cat >> confdefs.h <<EOF |
4f14bcd8 | 16399 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
af15babd VZ |
16400 | EOF |
16401 | ||
4f14bcd8 GD |
16402 | fi |
16403 | fi | |
af15babd | 16404 | |
4f14bcd8 | 16405 | for ac_func in vfork |
af15babd | 16406 | do |
579d8138 | 16407 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16408 | echo "configure:16409: checking for $ac_func" >&5 |
579d8138 VS |
16409 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16410 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16411 | else | |
16412 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16413 | #line 16414 "configure" |
af15babd VZ |
16414 | #include "confdefs.h" |
16415 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 16416 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16417 | #include <assert.h> |
16418 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16419 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
16420 | builtin and then its argument prototype would still apply. */ |
16421 | char $ac_func(); | |
16422 | ||
16423 | int main() { | |
af15babd VZ |
16424 | |
16425 | /* The GNU C library defines this for functions which it implements | |
16426 | to always fail with ENOSYS. Some functions are actually named | |
16427 | something starting with __ and the normal name is an alias. */ | |
16428 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16429 | choke me | |
16430 | #else | |
579d8138 | 16431 | $ac_func(); |
af15babd VZ |
16432 | #endif |
16433 | ||
579d8138 | 16434 | ; return 0; } |
af15babd | 16435 | EOF |
5c0a20c3 | 16436 | if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16437 | rm -rf conftest* |
16438 | eval "ac_cv_func_$ac_func=yes" | |
16439 | else | |
16440 | echo "configure: failed program was:" >&5 | |
16441 | cat conftest.$ac_ext >&5 | |
16442 | rm -rf conftest* | |
16443 | eval "ac_cv_func_$ac_func=no" | |
16444 | fi | |
16445 | rm -f conftest* | |
16446 | fi | |
af15babd | 16447 | |
579d8138 VS |
16448 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16449 | echo "$ac_t""yes" 1>&6 | |
16450 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16451 | cat >> confdefs.h <<EOF | |
16452 | #define $ac_tr_func 1 | |
16453 | EOF | |
16454 | ||
16455 | else | |
16456 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16457 | fi |
16458 | done | |
16459 | ||
579d8138 | 16460 | |
ade35f11 VZ |
16461 | for ac_func in mkstemp mktemp |
16462 | do | |
579d8138 | 16463 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16464 | echo "configure:16465: checking for $ac_func" >&5 |
579d8138 VS |
16465 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16466 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16467 | else | |
16468 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16469 | #line 16470 "configure" |
ade35f11 VZ |
16470 | #include "confdefs.h" |
16471 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 16472 | which can conflict with char $ac_func(); below. */ |
ade35f11 VZ |
16473 | #include <assert.h> |
16474 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16475 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
16476 | builtin and then its argument prototype would still apply. */ |
16477 | char $ac_func(); | |
16478 | ||
16479 | int main() { | |
ade35f11 VZ |
16480 | |
16481 | /* The GNU C library defines this for functions which it implements | |
16482 | to always fail with ENOSYS. Some functions are actually named | |
16483 | something starting with __ and the normal name is an alias. */ | |
16484 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16485 | choke me | |
16486 | #else | |
579d8138 | 16487 | $ac_func(); |
ade35f11 VZ |
16488 | #endif |
16489 | ||
579d8138 VS |
16490 | ; return 0; } |
16491 | EOF | |
5c0a20c3 | 16492 | if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16493 | rm -rf conftest* |
16494 | eval "ac_cv_func_$ac_func=yes" | |
16495 | else | |
16496 | echo "configure: failed program was:" >&5 | |
16497 | cat conftest.$ac_ext >&5 | |
16498 | rm -rf conftest* | |
16499 | eval "ac_cv_func_$ac_func=no" | |
16500 | fi | |
16501 | rm -f conftest* | |
16502 | fi | |
16503 | ||
16504 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16505 | echo "$ac_t""yes" 1>&6 | |
16506 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16507 | cat >> confdefs.h <<EOF | |
16508 | #define $ac_tr_func 1 | |
ade35f11 VZ |
16509 | EOF |
16510 | break | |
579d8138 VS |
16511 | else |
16512 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
16513 | fi |
16514 | done | |
16515 | ||
579d8138 VS |
16516 | |
16517 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 | |
5c0a20c3 | 16518 | echo "configure:16519: checking for statfs" >&5 |
579d8138 VS |
16519 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
16520 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16521 | else |
579d8138 | 16522 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 16523 | #line 16524 "configure" |
4f14bcd8 GD |
16524 | #include "confdefs.h" |
16525 | ||
16526 | #if defined(__BSD__) | |
16527 | #include <sys/param.h> | |
16528 | #include <sys/mount.h> | |
16529 | #else | |
16530 | #include <sys/vfs.h> | |
16531 | #endif | |
579d8138 VS |
16532 | |
16533 | int main() { | |
4f14bcd8 GD |
16534 | |
16535 | long l; | |
16536 | struct statfs fs; | |
16537 | statfs("/", &fs); | |
16538 | l = fs.f_bsize; | |
16539 | l += fs.f_blocks; | |
16540 | l += fs.f_bavail; | |
579d8138 VS |
16541 | |
16542 | ; return 0; } | |
16543 | EOF | |
5c0a20c3 | 16544 | if { (eval echo configure:16545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
16545 | rm -rf conftest* |
16546 | ||
4f14bcd8 | 16547 | wx_cv_func_statfs=yes |
579d8138 | 16548 | |
4f14bcd8 | 16549 | else |
579d8138 VS |
16550 | echo "configure: failed program was:" >&5 |
16551 | cat conftest.$ac_ext >&5 | |
16552 | rm -rf conftest* | |
16553 | ||
4f14bcd8 | 16554 | wx_cv_func_statfs=no |
579d8138 VS |
16555 | |
16556 | ||
af15babd | 16557 | fi |
579d8138 | 16558 | rm -f conftest* |
af15babd | 16559 | |
328a083c | 16560 | fi |
579d8138 VS |
16561 | |
16562 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
16563 | |
16564 | if test "$wx_cv_func_statfs" = "yes"; then | |
579d8138 | 16565 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16566 | #define HAVE_STATFS 1 |
16567 | EOF | |
16568 | ||
16569 | else | |
579d8138 | 16570 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
5c0a20c3 | 16571 | echo "configure:16572: checking for statvfs" >&5 |
579d8138 VS |
16572 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
16573 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 16574 | else |
579d8138 | 16575 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 16576 | #line 16577 "configure" |
af15babd | 16577 | #include "confdefs.h" |
af15babd | 16578 | |
4f14bcd8 | 16579 | #include <sys/statvfs.h> |
579d8138 VS |
16580 | |
16581 | int main() { | |
af15babd | 16582 | |
4f14bcd8 GD |
16583 | long l; |
16584 | struct statvfs fs; | |
16585 | statvfs("/", &fs); | |
16586 | l = fs.f_bsize; | |
16587 | l += fs.f_blocks; | |
16588 | l += fs.f_bavail; | |
579d8138 VS |
16589 | |
16590 | ; return 0; } | |
16591 | EOF | |
5c0a20c3 | 16592 | if { (eval echo configure:16593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
16593 | rm -rf conftest* |
16594 | ||
4f14bcd8 | 16595 | wx_cv_func_statvfs=yes |
579d8138 | 16596 | |
af15babd | 16597 | else |
579d8138 VS |
16598 | echo "configure: failed program was:" >&5 |
16599 | cat conftest.$ac_ext >&5 | |
16600 | rm -rf conftest* | |
16601 | ||
4f14bcd8 | 16602 | wx_cv_func_statvfs=no |
579d8138 VS |
16603 | |
16604 | ||
af15babd | 16605 | fi |
579d8138 VS |
16606 | rm -f conftest* |
16607 | ||
328a083c | 16608 | fi |
579d8138 VS |
16609 | |
16610 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 16611 | |
4f14bcd8 | 16612 | if test "$wx_cv_func_statvfs" = "yes"; then |
579d8138 | 16613 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
16614 | #define HAVE_STATVFS 1 |
16615 | EOF | |
af15babd | 16616 | |
4f14bcd8 | 16617 | else |
579d8138 | 16618 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 |
4f14bcd8 GD |
16619 | fi |
16620 | fi | |
af15babd | 16621 | |
4f14bcd8 | 16622 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
579d8138 | 16623 | for ac_func in fcntl flock |
af15babd | 16624 | do |
579d8138 | 16625 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16626 | echo "configure:16627: checking for $ac_func" >&5 |
579d8138 VS |
16627 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16628 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16629 | else | |
16630 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16631 | #line 16632 "configure" |
af15babd VZ |
16632 | #include "confdefs.h" |
16633 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 16634 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16635 | #include <assert.h> |
16636 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 16637 | /* We use char because int might match the return type of a gcc2 |
579d8138 VS |
16638 | builtin and then its argument prototype would still apply. */ |
16639 | char $ac_func(); | |
16640 | ||
16641 | int main() { | |
af15babd VZ |
16642 | |
16643 | /* The GNU C library defines this for functions which it implements | |
16644 | to always fail with ENOSYS. Some functions are actually named | |
16645 | something starting with __ and the normal name is an alias. */ | |
16646 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16647 | choke me | |
16648 | #else | |
579d8138 | 16649 | $ac_func(); |
af15babd VZ |
16650 | #endif |
16651 | ||
579d8138 VS |
16652 | ; return 0; } |
16653 | EOF | |
5c0a20c3 | 16654 | if { (eval echo configure:16655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16655 | rm -rf conftest* |
16656 | eval "ac_cv_func_$ac_func=yes" | |
16657 | else | |
16658 | echo "configure: failed program was:" >&5 | |
16659 | cat conftest.$ac_ext >&5 | |
16660 | rm -rf conftest* | |
16661 | eval "ac_cv_func_$ac_func=no" | |
16662 | fi | |
16663 | rm -f conftest* | |
16664 | fi | |
16665 | ||
16666 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16667 | echo "$ac_t""yes" 1>&6 | |
16668 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16669 | cat >> confdefs.h <<EOF | |
16670 | #define $ac_tr_func 1 | |
af15babd | 16671 | EOF |
4f14bcd8 | 16672 | break |
579d8138 VS |
16673 | else |
16674 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16675 | fi |
16676 | done | |
16677 | ||
579d8138 | 16678 | |
4f14bcd8 | 16679 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
579d8138 | 16680 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
16681 | wxUSE_SNGLINST_CHECKER=no |
16682 | fi | |
16683 | fi | |
af15babd | 16684 | |
4f14bcd8 | 16685 | for ac_func in timegm |
af15babd | 16686 | do |
579d8138 | 16687 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16688 | echo "configure:16689: checking for $ac_func" >&5 |
579d8138 VS |
16689 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16690 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16691 | else | |
16692 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16693 | #line 16694 "configure" |
af15babd VZ |
16694 | #include "confdefs.h" |
16695 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 16696 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16697 | #include <assert.h> |
16698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16699 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
16700 | builtin and then its argument prototype would still apply. */ |
16701 | char $ac_func(); | |
16702 | ||
16703 | int main() { | |
698dcdb6 | 16704 | |
af15babd VZ |
16705 | /* The GNU C library defines this for functions which it implements |
16706 | to always fail with ENOSYS. Some functions are actually named | |
16707 | something starting with __ and the normal name is an alias. */ | |
16708 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16709 | choke me | |
16710 | #else | |
579d8138 | 16711 | $ac_func(); |
af15babd VZ |
16712 | #endif |
16713 | ||
579d8138 | 16714 | ; return 0; } |
698dcdb6 | 16715 | EOF |
5c0a20c3 | 16716 | if { (eval echo configure:16717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16717 | rm -rf conftest* |
16718 | eval "ac_cv_func_$ac_func=yes" | |
16719 | else | |
16720 | echo "configure: failed program was:" >&5 | |
16721 | cat conftest.$ac_ext >&5 | |
16722 | rm -rf conftest* | |
16723 | eval "ac_cv_func_$ac_func=no" | |
16724 | fi | |
16725 | rm -f conftest* | |
16726 | fi | |
703e0a69 | 16727 | |
579d8138 VS |
16728 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16729 | echo "$ac_t""yes" 1>&6 | |
16730 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16731 | cat >> confdefs.h <<EOF | |
16732 | #define $ac_tr_func 1 | |
16733 | EOF | |
16734 | ||
16735 | else | |
16736 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
16737 | fi |
16738 | done | |
16739 | ||
579d8138 | 16740 | |
4f14bcd8 | 16741 | for ac_func in putenv setenv |
10f2d63a | 16742 | do |
579d8138 | 16743 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16744 | echo "configure:16745: checking for $ac_func" >&5 |
579d8138 VS |
16745 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16746 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16747 | else | |
16748 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16749 | #line 16750 "configure" |
af15babd VZ |
16750 | #include "confdefs.h" |
16751 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 16752 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
16753 | #include <assert.h> |
16754 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16755 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
16756 | builtin and then its argument prototype would still apply. */ |
16757 | char $ac_func(); | |
16758 | ||
16759 | int main() { | |
af15babd VZ |
16760 | |
16761 | /* The GNU C library defines this for functions which it implements | |
16762 | to always fail with ENOSYS. Some functions are actually named | |
16763 | something starting with __ and the normal name is an alias. */ | |
16764 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16765 | choke me | |
16766 | #else | |
579d8138 | 16767 | $ac_func(); |
af15babd VZ |
16768 | #endif |
16769 | ||
579d8138 VS |
16770 | ; return 0; } |
16771 | EOF | |
5c0a20c3 | 16772 | if { (eval echo configure:16773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16773 | rm -rf conftest* |
16774 | eval "ac_cv_func_$ac_func=yes" | |
16775 | else | |
16776 | echo "configure: failed program was:" >&5 | |
16777 | cat conftest.$ac_ext >&5 | |
16778 | rm -rf conftest* | |
16779 | eval "ac_cv_func_$ac_func=no" | |
16780 | fi | |
16781 | rm -f conftest* | |
16782 | fi | |
16783 | ||
16784 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16785 | echo "$ac_t""yes" 1>&6 | |
16786 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16787 | cat >> confdefs.h <<EOF | |
16788 | #define $ac_tr_func 1 | |
af15babd | 16789 | EOF |
4f14bcd8 | 16790 | break |
579d8138 VS |
16791 | else |
16792 | echo "$ac_t""no" 1>&6 | |
af15babd | 16793 | fi |
af15babd VZ |
16794 | done |
16795 | ||
579d8138 | 16796 | |
4f14bcd8 GD |
16797 | HAVE_SOME_SLEEP_FUNC=0 |
16798 | if test "$USE_BEOS" = 1; then | |
579d8138 | 16799 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16800 | #define HAVE_SLEEP 1 |
af15babd VZ |
16801 | EOF |
16802 | ||
4f14bcd8 | 16803 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16804 | fi |
16805 | ||
4f14bcd8 | 16806 | if test "$USE_DARWIN" = 1; then |
579d8138 | 16807 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 16808 | #define HAVE_USLEEP 1 |
af15babd | 16809 | EOF |
10f2d63a | 16810 | |
4f14bcd8 | 16811 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
16812 | fi |
16813 | ||
4f14bcd8 GD |
16814 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
16815 | POSIX4_LINK= | |
579d8138 | 16816 | for ac_func in nanosleep |
4f14bcd8 | 16817 | do |
579d8138 | 16818 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16819 | echo "configure:16820: checking for $ac_func" >&5 |
579d8138 VS |
16820 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16821 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16822 | else | |
16823 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16824 | #line 16825 "configure" |
10f2d63a | 16825 | #include "confdefs.h" |
4f14bcd8 | 16826 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 16827 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 16828 | #include <assert.h> |
10f2d63a VZ |
16829 | /* Override any gcc2 internal prototype to avoid an error. */ |
16830 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
16831 | builtin and then its argument prototype would still apply. */ |
16832 | char $ac_func(); | |
16833 | ||
16834 | int main() { | |
4f14bcd8 GD |
16835 | |
16836 | /* The GNU C library defines this for functions which it implements | |
16837 | to always fail with ENOSYS. Some functions are actually named | |
16838 | something starting with __ and the normal name is an alias. */ | |
16839 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16840 | choke me | |
16841 | #else | |
579d8138 | 16842 | $ac_func(); |
4f14bcd8 GD |
16843 | #endif |
16844 | ||
579d8138 VS |
16845 | ; return 0; } |
16846 | EOF | |
5c0a20c3 | 16847 | if { (eval echo configure:16848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16848 | rm -rf conftest* |
16849 | eval "ac_cv_func_$ac_func=yes" | |
16850 | else | |
16851 | echo "configure: failed program was:" >&5 | |
16852 | cat conftest.$ac_ext >&5 | |
16853 | rm -rf conftest* | |
16854 | eval "ac_cv_func_$ac_func=no" | |
16855 | fi | |
16856 | rm -f conftest* | |
16857 | fi | |
16858 | ||
16859 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16860 | echo "$ac_t""yes" 1>&6 | |
16861 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16862 | cat >> confdefs.h <<EOF | |
16863 | #define $ac_tr_func 1 | |
16864 | EOF | |
16865 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16866 | #define HAVE_NANOSLEEP 1 |
16867 | EOF | |
16868 | ||
10f2d63a | 16869 | else |
579d8138 VS |
16870 | echo "$ac_t""no" 1>&6 |
16871 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
5c0a20c3 | 16872 | echo "configure:16873: checking for nanosleep in -lposix4" >&5 |
579d8138 VS |
16873 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
16874 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16875 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16876 | else |
579d8138 | 16877 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 16878 | LIBS="-lposix4 $LIBS" |
579d8138 | 16879 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 16880 | #line 16881 "configure" |
10f2d63a VZ |
16881 | #include "confdefs.h" |
16882 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16883 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
16884 | builtin and then its argument prototype would still apply. */ |
16885 | char nanosleep(); | |
16886 | ||
16887 | int main() { | |
16888 | nanosleep() | |
16889 | ; return 0; } | |
16890 | EOF | |
5c0a20c3 | 16891 | if { (eval echo configure:16892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16892 | rm -rf conftest* |
16893 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16894 | else | |
16895 | echo "configure: failed program was:" >&5 | |
16896 | cat conftest.$ac_ext >&5 | |
16897 | rm -rf conftest* | |
16898 | eval "ac_cv_lib_$ac_lib_var=no" | |
16899 | fi | |
16900 | rm -f conftest* | |
16901 | LIBS="$ac_save_LIBS" | |
16902 | ||
16903 | fi | |
16904 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16905 | echo "$ac_t""yes" 1>&6 | |
16906 | ||
16907 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16908 | #define HAVE_NANOSLEEP 1 |
16909 | EOF | |
16910 | ||
3d63bc3a | 16911 | POSIX4_LINK=" -lposix4" |
579d8138 | 16912 | |
10f2d63a | 16913 | else |
579d8138 | 16914 | echo "$ac_t""no" 1>&6 |
10f2d63a | 16915 | |
579d8138 | 16916 | for ac_func in usleep |
4f14bcd8 | 16917 | do |
579d8138 | 16918 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16919 | echo "configure:16920: checking for $ac_func" >&5 |
579d8138 VS |
16920 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16922 | else | |
16923 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16924 | #line 16925 "configure" |
10f2d63a | 16925 | #include "confdefs.h" |
4f14bcd8 | 16926 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 16927 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
16928 | #include <assert.h> |
16929 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16930 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
16931 | builtin and then its argument prototype would still apply. */ |
16932 | char $ac_func(); | |
16933 | ||
16934 | int main() { | |
4f14bcd8 GD |
16935 | |
16936 | /* The GNU C library defines this for functions which it implements | |
16937 | to always fail with ENOSYS. Some functions are actually named | |
16938 | something starting with __ and the normal name is an alias. */ | |
16939 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16940 | choke me | |
16941 | #else | |
579d8138 | 16942 | $ac_func(); |
4f14bcd8 GD |
16943 | #endif |
16944 | ||
579d8138 VS |
16945 | ; return 0; } |
16946 | EOF | |
5c0a20c3 | 16947 | if { (eval echo configure:16948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
16948 | rm -rf conftest* |
16949 | eval "ac_cv_func_$ac_func=yes" | |
16950 | else | |
16951 | echo "configure: failed program was:" >&5 | |
16952 | cat conftest.$ac_ext >&5 | |
16953 | rm -rf conftest* | |
16954 | eval "ac_cv_func_$ac_func=no" | |
16955 | fi | |
16956 | rm -f conftest* | |
16957 | fi | |
16958 | ||
16959 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16960 | echo "$ac_t""yes" 1>&6 | |
16961 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16962 | cat >> confdefs.h <<EOF | |
16963 | #define $ac_tr_func 1 | |
16964 | EOF | |
16965 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
16966 | #define HAVE_USLEEP 1 |
16967 | EOF | |
16968 | ||
698dcdb6 | 16969 | else |
579d8138 VS |
16970 | echo "$ac_t""no" 1>&6 |
16971 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
16972 | ||
10f2d63a | 16973 | fi |
4f14bcd8 | 16974 | done |
10f2d63a | 16975 | |
579d8138 VS |
16976 | |
16977 | ||
6232543b | 16978 | fi |
10f2d63a | 16979 | |
579d8138 VS |
16980 | |
16981 | ||
1e487827 | 16982 | fi |
4f14bcd8 | 16983 | done |
703e0a69 | 16984 | |
10f2d63a VZ |
16985 | fi |
16986 | ||
4f14bcd8 | 16987 | for ac_func in uname gethostname |
70846f0a | 16988 | do |
579d8138 | 16989 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 16990 | echo "configure:16991: checking for $ac_func" >&5 |
579d8138 VS |
16991 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16992 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16993 | else | |
16994 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 16995 | #line 16996 "configure" |
70846f0a VZ |
16996 | #include "confdefs.h" |
16997 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 16998 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
16999 | #include <assert.h> |
17000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17001 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17002 | builtin and then its argument prototype would still apply. */ |
17003 | char $ac_func(); | |
17004 | ||
17005 | int main() { | |
70846f0a VZ |
17006 | |
17007 | /* The GNU C library defines this for functions which it implements | |
17008 | to always fail with ENOSYS. Some functions are actually named | |
17009 | something starting with __ and the normal name is an alias. */ | |
17010 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17011 | choke me | |
17012 | #else | |
579d8138 | 17013 | $ac_func(); |
70846f0a VZ |
17014 | #endif |
17015 | ||
579d8138 VS |
17016 | ; return 0; } |
17017 | EOF | |
5c0a20c3 | 17018 | if { (eval echo configure:17019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17019 | rm -rf conftest* |
17020 | eval "ac_cv_func_$ac_func=yes" | |
17021 | else | |
17022 | echo "configure: failed program was:" >&5 | |
17023 | cat conftest.$ac_ext >&5 | |
17024 | rm -rf conftest* | |
17025 | eval "ac_cv_func_$ac_func=no" | |
17026 | fi | |
17027 | rm -f conftest* | |
17028 | fi | |
17029 | ||
17030 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17031 | echo "$ac_t""yes" 1>&6 | |
17032 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17033 | cat >> confdefs.h <<EOF | |
17034 | #define $ac_tr_func 1 | |
698dcdb6 | 17035 | EOF |
4f14bcd8 | 17036 | break |
579d8138 VS |
17037 | else |
17038 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17039 | fi |
17040 | done | |
17041 | ||
579d8138 VS |
17042 | |
17043 | ||
17044 | ac_ext=C | |
17045 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17046 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 17047 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 17048 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
17049 | cross_compiling=$ac_cv_prog_cxx_cross |
17050 | ||
4f14bcd8 GD |
17051 | |
17052 | for ac_func in strtok_r | |
10f2d63a | 17053 | do |
579d8138 | 17054 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 17055 | echo "configure:17056: checking for $ac_func" >&5 |
579d8138 VS |
17056 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17058 | else | |
17059 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 17060 | #line 17061 "configure" |
10f2d63a | 17061 | #include "confdefs.h" |
4f14bcd8 | 17062 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 17063 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17064 | #include <assert.h> |
17065 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17066 | #ifdef __cplusplus | |
17067 | extern "C" | |
17068 | #endif | |
17069 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17070 | builtin and then its argument prototype would still apply. */ |
17071 | char $ac_func(); | |
17072 | ||
17073 | int main() { | |
4f14bcd8 GD |
17074 | |
17075 | /* The GNU C library defines this for functions which it implements | |
17076 | to always fail with ENOSYS. Some functions are actually named | |
17077 | something starting with __ and the normal name is an alias. */ | |
17078 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17079 | choke me | |
17080 | #else | |
579d8138 | 17081 | $ac_func(); |
4f14bcd8 GD |
17082 | #endif |
17083 | ||
579d8138 | 17084 | ; return 0; } |
698dcdb6 | 17085 | EOF |
5c0a20c3 | 17086 | if { (eval echo configure:17087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17087 | rm -rf conftest* |
17088 | eval "ac_cv_func_$ac_func=yes" | |
17089 | else | |
17090 | echo "configure: failed program was:" >&5 | |
17091 | cat conftest.$ac_ext >&5 | |
17092 | rm -rf conftest* | |
17093 | eval "ac_cv_func_$ac_func=no" | |
17094 | fi | |
17095 | rm -f conftest* | |
17096 | fi | |
4f14bcd8 | 17097 | |
579d8138 VS |
17098 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17099 | echo "$ac_t""yes" 1>&6 | |
17100 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17101 | cat >> confdefs.h <<EOF | |
17102 | #define $ac_tr_func 1 | |
17103 | EOF | |
17104 | ||
17105 | else | |
17106 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17107 | fi |
17108 | done | |
17109 | ||
579d8138 | 17110 | |
4f14bcd8 | 17111 | ac_ext=c |
579d8138 | 17112 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17113 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 17114 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 17115 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 17116 | cross_compiling=$ac_cv_prog_cc_cross |
4f14bcd8 | 17117 | |
328a083c | 17118 | |
579d8138 | 17119 | INET_LINK= |
4f14bcd8 GD |
17120 | for ac_func in inet_addr |
17121 | do | |
579d8138 | 17122 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 17123 | echo "configure:17124: checking for $ac_func" >&5 |
579d8138 VS |
17124 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17125 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17126 | else | |
17127 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 17128 | #line 17129 "configure" |
10f2d63a | 17129 | #include "confdefs.h" |
4f14bcd8 | 17130 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 17131 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17132 | #include <assert.h> |
10f2d63a VZ |
17133 | /* Override any gcc2 internal prototype to avoid an error. */ |
17134 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17135 | builtin and then its argument prototype would still apply. */ |
17136 | char $ac_func(); | |
17137 | ||
17138 | int main() { | |
4f14bcd8 GD |
17139 | |
17140 | /* The GNU C library defines this for functions which it implements | |
17141 | to always fail with ENOSYS. Some functions are actually named | |
17142 | something starting with __ and the normal name is an alias. */ | |
17143 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17144 | choke me | |
17145 | #else | |
579d8138 | 17146 | $ac_func(); |
4f14bcd8 GD |
17147 | #endif |
17148 | ||
579d8138 VS |
17149 | ; return 0; } |
17150 | EOF | |
5c0a20c3 | 17151 | if { (eval echo configure:17152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17152 | rm -rf conftest* |
17153 | eval "ac_cv_func_$ac_func=yes" | |
17154 | else | |
17155 | echo "configure: failed program was:" >&5 | |
17156 | cat conftest.$ac_ext >&5 | |
17157 | rm -rf conftest* | |
17158 | eval "ac_cv_func_$ac_func=no" | |
17159 | fi | |
17160 | rm -f conftest* | |
17161 | fi | |
17162 | ||
17163 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17164 | echo "$ac_t""yes" 1>&6 | |
17165 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17166 | cat >> confdefs.h <<EOF | |
17167 | #define $ac_tr_func 1 | |
17168 | EOF | |
17169 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17170 | #define HAVE_INET_ADDR 1 |
10f2d63a VZ |
17171 | EOF |
17172 | ||
17173 | else | |
579d8138 VS |
17174 | echo "$ac_t""no" 1>&6 |
17175 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
5c0a20c3 | 17176 | echo "configure:17177: checking for inet_addr in -lnsl" >&5 |
579d8138 VS |
17177 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
17178 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17179 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17180 | else |
579d8138 | 17181 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17182 | LIBS="-lnsl $LIBS" |
579d8138 | 17183 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17184 | #line 17185 "configure" |
10f2d63a VZ |
17185 | #include "confdefs.h" |
17186 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17187 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17188 | builtin and then its argument prototype would still apply. */ |
17189 | char inet_addr(); | |
17190 | ||
17191 | int main() { | |
17192 | inet_addr() | |
17193 | ; return 0; } | |
17194 | EOF | |
5c0a20c3 | 17195 | if { (eval echo configure:17196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17196 | rm -rf conftest* |
17197 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17198 | else | |
17199 | echo "configure: failed program was:" >&5 | |
17200 | cat conftest.$ac_ext >&5 | |
17201 | rm -rf conftest* | |
17202 | eval "ac_cv_lib_$ac_lib_var=no" | |
17203 | fi | |
17204 | rm -f conftest* | |
17205 | LIBS="$ac_save_LIBS" | |
17206 | ||
17207 | fi | |
17208 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17209 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17210 | INET_LINK="nsl" |
10f2d63a | 17211 | else |
579d8138 VS |
17212 | echo "$ac_t""no" 1>&6 |
17213 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
5c0a20c3 | 17214 | echo "configure:17215: checking for inet_addr in -lresolv" >&5 |
579d8138 VS |
17215 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
17216 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17217 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17218 | else |
579d8138 | 17219 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17220 | LIBS="-lresolv $LIBS" |
579d8138 | 17221 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17222 | #line 17223 "configure" |
10f2d63a | 17223 | #include "confdefs.h" |
579d8138 VS |
17224 | /* Override any gcc2 internal prototype to avoid an error. */ |
17225 | /* We use char because int might match the return type of a gcc2 | |
17226 | builtin and then its argument prototype would still apply. */ | |
17227 | char inet_addr(); | |
17228 | ||
17229 | int main() { | |
17230 | inet_addr() | |
17231 | ; return 0; } | |
17232 | EOF | |
5c0a20c3 | 17233 | if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17234 | rm -rf conftest* |
17235 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17236 | else | |
17237 | echo "configure: failed program was:" >&5 | |
17238 | cat conftest.$ac_ext >&5 | |
17239 | rm -rf conftest* | |
17240 | eval "ac_cv_lib_$ac_lib_var=no" | |
17241 | fi | |
17242 | rm -f conftest* | |
17243 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 17244 | |
579d8138 VS |
17245 | fi |
17246 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17247 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 17248 | INET_LINK="resolv" |
698dcdb6 | 17249 | else |
579d8138 VS |
17250 | echo "$ac_t""no" 1>&6 |
17251 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
5c0a20c3 | 17252 | echo "configure:17253: checking for inet_addr in -lsocket" >&5 |
579d8138 VS |
17253 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
17254 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17255 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 17256 | else |
579d8138 | 17257 | ac_save_LIBS="$LIBS" |
3c011993 | 17258 | LIBS="-lsocket $LIBS" |
579d8138 | 17259 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17260 | #line 17261 "configure" |
3c011993 VZ |
17261 | #include "confdefs.h" |
17262 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17263 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17264 | builtin and then its argument prototype would still apply. */ |
17265 | char inet_addr(); | |
17266 | ||
17267 | int main() { | |
17268 | inet_addr() | |
17269 | ; return 0; } | |
17270 | EOF | |
5c0a20c3 | 17271 | if { (eval echo configure:17272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17272 | rm -rf conftest* |
17273 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17274 | else | |
17275 | echo "configure: failed program was:" >&5 | |
17276 | cat conftest.$ac_ext >&5 | |
17277 | rm -rf conftest* | |
17278 | eval "ac_cv_lib_$ac_lib_var=no" | |
17279 | fi | |
17280 | rm -f conftest* | |
17281 | LIBS="$ac_save_LIBS" | |
3c011993 | 17282 | |
4f14bcd8 | 17283 | fi |
579d8138 VS |
17284 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
17285 | echo "$ac_t""yes" 1>&6 | |
17286 | INET_LINK="socket" | |
17287 | ||
17288 | else | |
17289 | echo "$ac_t""no" 1>&6 | |
17290 | fi | |
698dcdb6 | 17291 | |
579d8138 | 17292 | |
698dcdb6 | 17293 | fi |
4f14bcd8 | 17294 | |
579d8138 | 17295 | |
328a083c | 17296 | fi |
698dcdb6 | 17297 | |
579d8138 VS |
17298 | |
17299 | ||
698dcdb6 | 17300 | fi |
4f14bcd8 GD |
17301 | done |
17302 | ||
579d8138 | 17303 | |
4f14bcd8 GD |
17304 | for ac_func in inet_aton |
17305 | do | |
579d8138 | 17306 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 17307 | echo "configure:17308: checking for $ac_func" >&5 |
579d8138 VS |
17308 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17309 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17310 | else | |
17311 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 17312 | #line 17313 "configure" |
f6bcfd97 | 17313 | #include "confdefs.h" |
4f14bcd8 | 17314 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 17315 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17316 | #include <assert.h> |
f6bcfd97 BP |
17317 | /* Override any gcc2 internal prototype to avoid an error. */ |
17318 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17319 | builtin and then its argument prototype would still apply. */ |
17320 | char $ac_func(); | |
17321 | ||
17322 | int main() { | |
4f14bcd8 GD |
17323 | |
17324 | /* The GNU C library defines this for functions which it implements | |
17325 | to always fail with ENOSYS. Some functions are actually named | |
17326 | something starting with __ and the normal name is an alias. */ | |
17327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17328 | choke me | |
17329 | #else | |
579d8138 | 17330 | $ac_func(); |
4f14bcd8 GD |
17331 | #endif |
17332 | ||
579d8138 VS |
17333 | ; return 0; } |
17334 | EOF | |
5c0a20c3 | 17335 | if { (eval echo configure:17336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17336 | rm -rf conftest* |
17337 | eval "ac_cv_func_$ac_func=yes" | |
17338 | else | |
17339 | echo "configure: failed program was:" >&5 | |
17340 | cat conftest.$ac_ext >&5 | |
17341 | rm -rf conftest* | |
17342 | eval "ac_cv_func_$ac_func=no" | |
17343 | fi | |
17344 | rm -f conftest* | |
17345 | fi | |
17346 | ||
17347 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17348 | echo "$ac_t""yes" 1>&6 | |
17349 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17350 | cat >> confdefs.h <<EOF | |
17351 | #define $ac_tr_func 1 | |
17352 | EOF | |
17353 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17354 | #define HAVE_INET_ATON 1 |
17355 | EOF | |
17356 | ||
10f2d63a | 17357 | else |
579d8138 VS |
17358 | echo "$ac_t""no" 1>&6 |
17359 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
5c0a20c3 | 17360 | echo "configure:17361: checking for inet_aton in -l$INET_LINK" >&5 |
579d8138 VS |
17361 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
17362 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17363 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 17364 | else |
579d8138 | 17365 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17366 | LIBS="-l$INET_LINK $LIBS" |
579d8138 | 17367 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17368 | #line 17369 "configure" |
10f2d63a | 17369 | #include "confdefs.h" |
6232543b | 17370 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 17371 | /* We use char because int might match the return type of a gcc2 |
579d8138 VS |
17372 | builtin and then its argument prototype would still apply. */ |
17373 | char inet_aton(); | |
17374 | ||
17375 | int main() { | |
17376 | inet_aton() | |
17377 | ; return 0; } | |
17378 | EOF | |
5c0a20c3 | 17379 | if { (eval echo configure:17380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17380 | rm -rf conftest* |
17381 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17382 | else | |
17383 | echo "configure: failed program was:" >&5 | |
17384 | cat conftest.$ac_ext >&5 | |
17385 | rm -rf conftest* | |
17386 | eval "ac_cv_lib_$ac_lib_var=no" | |
17387 | fi | |
17388 | rm -f conftest* | |
17389 | LIBS="$ac_save_LIBS" | |
17390 | ||
17391 | fi | |
17392 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17393 | echo "$ac_t""yes" 1>&6 | |
17394 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
17395 | #define HAVE_INET_ATON 1 |
17396 | EOF | |
17397 | ||
579d8138 VS |
17398 | else |
17399 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17400 | fi |
17401 | ||
579d8138 | 17402 | |
10f2d63a | 17403 | fi |
4f14bcd8 | 17404 | done |
10f2d63a | 17405 | |
579d8138 | 17406 | |
4f14bcd8 | 17407 | if test "x$INET_LINK" != "x"; then |
579d8138 | 17408 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
17409 | #define HAVE_INET_ADDR 1 |
17410 | EOF | |
17411 | ||
3d63bc3a | 17412 | INET_LINK=" -l$INET_LINK" |
6232543b | 17413 | fi |
10f2d63a | 17414 | |
1e487827 | 17415 | fi |
703e0a69 | 17416 | |
579d8138 VS |
17417 | |
17418 | cat > confcache <<\EOF | |
4f14bcd8 GD |
17419 | # This file is a shell script that caches the results of configure |
17420 | # tests run on this system so they can be shared between configure | |
579d8138 VS |
17421 | # scripts and configure runs. It is not useful on other systems. |
17422 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 17423 | # |
579d8138 VS |
17424 | # By default, configure uses ./config.cache as the cache file, |
17425 | # creating it if it does not exist already. You can give configure | |
17426 | # the --cache-file=FILE option to use a different cache file; that is | |
17427 | # what configure does when it calls configure scripts in | |
17428 | # subdirectories, so they share the cache. | |
17429 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
17430 | # config.status only pays attention to the cache file if you give it the | |
17431 | # --recheck option to rerun configure. | |
4f14bcd8 | 17432 | # |
579d8138 | 17433 | EOF |
4f14bcd8 GD |
17434 | # The following way of writing the cache mishandles newlines in values, |
17435 | # but we know of no workaround that is simple, portable, and efficient. | |
17436 | # So, don't put newlines in cache variables' values. | |
17437 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17438 | # and sets the high bit in the cache file unless we assign to the vars. | |
579d8138 | 17439 | (set) 2>&1 | |
5c0a20c3 | 17440 | case `(ac_space=' '; set) 2>&1` in |
579d8138 VS |
17441 | *ac_space=\ *) |
17442 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
17443 | # turns \\\\ into \\, and sed turns \\ into \). | |
17444 | sed -n \ | |
17445 | -e "s/'/'\\\\''/g" \ | |
17446 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
17447 | ;; | |
17448 | *) | |
17449 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17450 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
17451 | ;; | |
17452 | esac >> confcache | |
17453 | if cmp -s $cache_file confcache; then | |
17454 | : | |
17455 | else | |
4f14bcd8 | 17456 | if test -w $cache_file; then |
579d8138 VS |
17457 | echo "updating cache $cache_file" |
17458 | cat confcache > $cache_file | |
f6bcfd97 | 17459 | else |
4f14bcd8 | 17460 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 17461 | fi |
4f14bcd8 GD |
17462 | fi |
17463 | rm -f confcache | |
f6bcfd97 | 17464 | |
579d8138 VS |
17465 | |
17466 | ||
009fead0 | 17467 | CPP_MT_FLAG= |
4f14bcd8 GD |
17468 | if test "$TOOLKIT" != "MSW"; then |
17469 | ||
579d8138 | 17470 | |
7274f1c7 | 17471 | THREADS_LINK= |
009fead0 | 17472 | THREADS_CFLAGS= |
7274f1c7 RL |
17473 | |
17474 | if test "$wxUSE_THREADS" = "yes" ; then | |
17475 | if test "$wxUSE_WINE" = 1 ; then | |
579d8138 | 17476 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
17477 | wxUSE_THREADS="no" |
17478 | elif test "$USE_BEOS" = 1; then | |
579d8138 | 17479 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
17480 | wxUSE_THREADS="no" |
17481 | fi | |
4f14bcd8 | 17482 | fi |
4f14bcd8 | 17483 | |
7274f1c7 | 17484 | if test "$wxUSE_THREADS" = "yes" ; then |
579d8138 VS |
17485 | |
17486 | ||
009fead0 VZ |
17487 | THREAD_OPTS="-pthread" |
17488 | case "${host}" in | |
17489 | *-*-solaris2* | *-*-sunos4* ) | |
17490 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 17491 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
17492 | else |
17493 | THREAD_OPTS="-mt $THREAD_OPTS" | |
17494 | fi | |
17495 | ;; | |
17496 | *-*-freebsd*) | |
17497 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
17498 | ;; | |
17234b26 MB |
17499 | *-*-darwin* | *-*-cygwin* ) |
17500 | THREAD_OPTS="" | |
4101db81 | 17501 | ;; |
8f4a9a10 | 17502 | *-*-aix*) |
009fead0 VZ |
17503 | THREAD_OPTS="pthreads" |
17504 | ;; | |
009fead0 | 17505 | esac |
4f14bcd8 | 17506 | |
02a1dfba | 17507 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 17508 | |
009fead0 VZ |
17509 | THREADS_OK=no |
17510 | for flag in $THREAD_OPTS; do | |
17511 | case $flag in | |
17512 | none) | |
579d8138 | 17513 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
5c0a20c3 | 17514 | echo "configure:17515: checking whether pthreads work without any flags" >&5 |
009fead0 | 17515 | ;; |
698dcdb6 | 17516 | |
009fead0 | 17517 | -*) |
579d8138 | 17518 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
5c0a20c3 | 17519 | echo "configure:17520: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
17520 | THREADS_CFLAGS="$flag" |
17521 | ;; | |
698dcdb6 | 17522 | |
009fead0 | 17523 | *) |
579d8138 | 17524 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
5c0a20c3 | 17525 | echo "configure:17526: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
17526 | THREADS_LINK="-l$flag" |
17527 | ;; | |
17528 | esac | |
10f2d63a | 17529 | |
009fead0 VZ |
17530 | save_LIBS="$LIBS" |
17531 | save_CFLAGS="$CFLAGS" | |
17532 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 17533 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 17534 | |
579d8138 | 17535 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17536 | #line 17537 "configure" |
009fead0 VZ |
17537 | #include "confdefs.h" |
17538 | #include <pthread.h> | |
579d8138 | 17539 | int main() { |
009fead0 | 17540 | pthread_create(0,0,0,0); |
579d8138 VS |
17541 | ; return 0; } |
17542 | EOF | |
5c0a20c3 | 17543 | if { (eval echo configure:17544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 | 17544 | rm -rf conftest* |
009fead0 | 17545 | THREADS_OK=yes |
10f2d63a | 17546 | else |
579d8138 VS |
17547 | echo "configure: failed program was:" >&5 |
17548 | cat conftest.$ac_ext >&5 | |
6232543b | 17549 | fi |
579d8138 | 17550 | rm -f conftest* |
698dcdb6 | 17551 | |
009fead0 VZ |
17552 | LIBS="$save_LIBS" |
17553 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 17554 | |
579d8138 | 17555 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
17556 | if test "x$THREADS_OK" = "xyes"; then |
17557 | break; | |
17558 | fi | |
d9b9876f | 17559 | |
009fead0 VZ |
17560 | THREADS_LINK="" |
17561 | THREADS_CFLAGS="" | |
17562 | done | |
4f14bcd8 | 17563 | |
009fead0 VZ |
17564 | if test "x$THREADS_OK" != "xyes"; then |
17565 | wxUSE_THREADS=no | |
579d8138 | 17566 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 17567 | else |
fe5a9cab VZ |
17568 | LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS" |
17569 | ||
579d8138 | 17570 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
5c0a20c3 | 17571 | echo "configure:17572: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
17572 | flag=no |
17573 | case "${host}" in | |
17574 | *-aix* | *-freebsd*) | |
17575 | flag="-D_THREAD_SAFE" | |
17576 | ;; | |
17577 | *solaris* | alpha*-osf*) | |
17578 | flag="-D_REENTRANT" | |
17579 | ;; | |
17580 | esac | |
579d8138 | 17581 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 17582 | if test "x$flag" != xno; then |
04727afd | 17583 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
17584 | fi |
17585 | ||
009fead0 | 17586 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 17587 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
17588 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
17589 | fi | |
17590 | fi | |
4f14bcd8 | 17591 | fi |
4f14bcd8 | 17592 | |
7274f1c7 | 17593 | if test "$wxUSE_THREADS" = "yes" ; then |
579d8138 | 17594 | for ac_func in thr_setconcurrency |
4f14bcd8 | 17595 | do |
579d8138 | 17596 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 17597 | echo "configure:17598: checking for $ac_func" >&5 |
579d8138 VS |
17598 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17599 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17600 | else | |
17601 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 17602 | #line 17603 "configure" |
d9b9876f | 17603 | #include "confdefs.h" |
4f14bcd8 | 17604 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 17605 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17606 | #include <assert.h> |
17607 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17608 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17609 | builtin and then its argument prototype would still apply. */ |
17610 | char $ac_func(); | |
17611 | ||
17612 | int main() { | |
d9b9876f | 17613 | |
4f14bcd8 GD |
17614 | /* The GNU C library defines this for functions which it implements |
17615 | to always fail with ENOSYS. Some functions are actually named | |
17616 | something starting with __ and the normal name is an alias. */ | |
17617 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17618 | choke me | |
17619 | #else | |
579d8138 | 17620 | $ac_func(); |
4f14bcd8 GD |
17621 | #endif |
17622 | ||
579d8138 | 17623 | ; return 0; } |
698dcdb6 | 17624 | EOF |
5c0a20c3 | 17625 | if { (eval echo configure:17626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17626 | rm -rf conftest* |
17627 | eval "ac_cv_func_$ac_func=yes" | |
17628 | else | |
17629 | echo "configure: failed program was:" >&5 | |
17630 | cat conftest.$ac_ext >&5 | |
17631 | rm -rf conftest* | |
17632 | eval "ac_cv_func_$ac_func=no" | |
17633 | fi | |
17634 | rm -f conftest* | |
17635 | fi | |
698dcdb6 | 17636 | |
579d8138 VS |
17637 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17638 | echo "$ac_t""yes" 1>&6 | |
17639 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17640 | cat >> confdefs.h <<EOF | |
17641 | #define $ac_tr_func 1 | |
17642 | EOF | |
17643 | ||
17644 | else | |
17645 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 17646 | fi |
4f14bcd8 | 17647 | done |
10f2d63a | 17648 | |
579d8138 VS |
17649 | |
17650 | for ac_hdr in sched.h | |
4f14bcd8 | 17651 | do |
579d8138 VS |
17652 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
17653 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 17654 | echo "configure:17655: checking for $ac_hdr" >&5 |
579d8138 VS |
17655 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
17656 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17657 | else | |
17658 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 17659 | #line 17660 "configure" |
4f14bcd8 | 17660 | #include "confdefs.h" |
579d8138 VS |
17661 | #include <$ac_hdr> |
17662 | EOF | |
17663 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
17664 | { (eval echo configure:17665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
17665 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
17666 | if test -z "$ac_err"; then |
17667 | rm -rf conftest* | |
17668 | eval "ac_cv_header_$ac_safe=yes" | |
4f14bcd8 | 17669 | else |
579d8138 VS |
17670 | echo "$ac_err" >&5 |
17671 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 17672 | cat conftest.$ac_ext >&5 |
579d8138 VS |
17673 | rm -rf conftest* |
17674 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 17675 | fi |
579d8138 | 17676 | rm -f conftest* |
10f2d63a | 17677 | fi |
579d8138 VS |
17678 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
17679 | echo "$ac_t""yes" 1>&6 | |
17680 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
17681 | cat >> confdefs.h <<EOF | |
17682 | #define $ac_tr_hdr 1 | |
f6bcfd97 | 17683 | EOF |
579d8138 VS |
17684 | |
17685 | else | |
17686 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 17687 | fi |
4f14bcd8 | 17688 | done |
f6bcfd97 | 17689 | |
009fead0 | 17690 | if test "$ac_cv_header_sched_h" = "yes"; then |
579d8138 | 17691 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
5c0a20c3 | 17692 | echo "configure:17693: checking for sched_yield" >&5 |
579d8138 VS |
17693 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
17694 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17695 | else |
579d8138 | 17696 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17697 | #line 17698 "configure" |
4f14bcd8 | 17698 | #include "confdefs.h" |
009fead0 | 17699 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 17700 | which can conflict with char sched_yield(); below. */ |
009fead0 | 17701 | #include <assert.h> |
4f14bcd8 GD |
17702 | /* Override any gcc2 internal prototype to avoid an error. */ |
17703 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17704 | builtin and then its argument prototype would still apply. */ |
17705 | char sched_yield(); | |
17706 | ||
17707 | int main() { | |
009fead0 VZ |
17708 | |
17709 | /* The GNU C library defines this for functions which it implements | |
17710 | to always fail with ENOSYS. Some functions are actually named | |
17711 | something starting with __ and the normal name is an alias. */ | |
17712 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
17713 | choke me | |
17714 | #else | |
579d8138 | 17715 | sched_yield(); |
009fead0 VZ |
17716 | #endif |
17717 | ||
579d8138 VS |
17718 | ; return 0; } |
17719 | EOF | |
5c0a20c3 | 17720 | if { (eval echo configure:17721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17721 | rm -rf conftest* |
17722 | eval "ac_cv_func_sched_yield=yes" | |
17723 | else | |
17724 | echo "configure: failed program was:" >&5 | |
17725 | cat conftest.$ac_ext >&5 | |
17726 | rm -rf conftest* | |
17727 | eval "ac_cv_func_sched_yield=no" | |
17728 | fi | |
17729 | rm -f conftest* | |
17730 | fi | |
17731 | ||
17732 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
17733 | echo "$ac_t""yes" 1>&6 | |
17734 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17735 | #define HAVE_SCHED_YIELD 1 |
10f2d63a VZ |
17736 | EOF |
17737 | ||
4f14bcd8 | 17738 | else |
579d8138 | 17739 | echo "$ac_t""no" 1>&6 |
009fead0 | 17740 | |
579d8138 | 17741 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
5c0a20c3 | 17742 | echo "configure:17743: checking for sched_yield in -lposix4" >&5 |
579d8138 VS |
17743 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
17744 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17745 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17746 | else |
579d8138 | 17747 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17748 | LIBS="-lposix4 $LIBS" |
579d8138 | 17749 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17750 | #line 17751 "configure" |
4f14bcd8 GD |
17751 | #include "confdefs.h" |
17752 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17753 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17754 | builtin and then its argument prototype would still apply. */ |
17755 | char sched_yield(); | |
17756 | ||
17757 | int main() { | |
17758 | sched_yield() | |
17759 | ; return 0; } | |
17760 | EOF | |
5c0a20c3 | 17761 | if { (eval echo configure:17762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17762 | rm -rf conftest* |
17763 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17764 | else | |
17765 | echo "configure: failed program was:" >&5 | |
17766 | cat conftest.$ac_ext >&5 | |
17767 | rm -rf conftest* | |
17768 | eval "ac_cv_lib_$ac_lib_var=no" | |
17769 | fi | |
17770 | rm -f conftest* | |
17771 | LIBS="$ac_save_LIBS" | |
17772 | ||
17773 | fi | |
17774 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17775 | echo "$ac_t""yes" 1>&6 | |
17776 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17777 | #define HAVE_SCHED_YIELD 1 |
54276ccf | 17778 | EOF |
3d63bc3a | 17779 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 17780 | else |
579d8138 VS |
17781 | echo "$ac_t""no" 1>&6 |
17782 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
17783 | ||
54276ccf VZ |
17784 | fi |
17785 | ||
579d8138 VS |
17786 | |
17787 | ||
4f14bcd8 | 17788 | fi |
698dcdb6 | 17789 | |
009fead0 | 17790 | fi |
10f2d63a | 17791 | |
7274f1c7 | 17792 | HAVE_PRIOR_FUNCS=0 |
579d8138 | 17793 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
5c0a20c3 | 17794 | echo "configure:17795: checking for pthread_attr_getschedpolicy" >&5 |
579d8138 VS |
17795 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
17796 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 17797 | else |
579d8138 | 17798 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17799 | #line 17800 "configure" |
422107f9 | 17800 | #include "confdefs.h" |
009fead0 | 17801 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 17802 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 17803 | #include <assert.h> |
4f14bcd8 GD |
17804 | /* Override any gcc2 internal prototype to avoid an error. */ |
17805 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17806 | builtin and then its argument prototype would still apply. */ |
17807 | char pthread_attr_getschedpolicy(); | |
17808 | ||
17809 | int main() { | |
009fead0 VZ |
17810 | |
17811 | /* The GNU C library defines this for functions which it implements | |
17812 | to always fail with ENOSYS. Some functions are actually named | |
17813 | something starting with __ and the normal name is an alias. */ | |
17814 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
17815 | choke me | |
17816 | #else | |
579d8138 | 17817 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
17818 | #endif |
17819 | ||
579d8138 VS |
17820 | ; return 0; } |
17821 | EOF | |
5c0a20c3 | 17822 | if { (eval echo configure:17823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17823 | rm -rf conftest* |
17824 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
17825 | else | |
17826 | echo "configure: failed program was:" >&5 | |
17827 | cat conftest.$ac_ext >&5 | |
17828 | rm -rf conftest* | |
17829 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
17830 | fi | |
17831 | rm -f conftest* | |
17832 | fi | |
17833 | ||
17834 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
17835 | echo "$ac_t""yes" 1>&6 | |
17836 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
5c0a20c3 | 17837 | echo "configure:17838: checking for pthread_attr_setschedparam" >&5 |
579d8138 VS |
17838 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
17839 | echo $ac_n "(cached) $ac_c" 1>&6 | |
328a083c | 17840 | else |
579d8138 | 17841 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17842 | #line 17843 "configure" |
579d8138 VS |
17843 | #include "confdefs.h" |
17844 | /* System header to define __stub macros and hopefully few prototypes, | |
17845 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 17846 | #include <assert.h> |
422107f9 VZ |
17847 | /* Override any gcc2 internal prototype to avoid an error. */ |
17848 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17849 | builtin and then its argument prototype would still apply. */ |
17850 | char pthread_attr_setschedparam(); | |
17851 | ||
17852 | int main() { | |
009fead0 VZ |
17853 | |
17854 | /* The GNU C library defines this for functions which it implements | |
17855 | to always fail with ENOSYS. Some functions are actually named | |
17856 | something starting with __ and the normal name is an alias. */ | |
17857 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
17858 | choke me | |
17859 | #else | |
579d8138 | 17860 | pthread_attr_setschedparam(); |
009fead0 VZ |
17861 | #endif |
17862 | ||
579d8138 VS |
17863 | ; return 0; } |
17864 | EOF | |
5c0a20c3 | 17865 | if { (eval echo configure:17866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17866 | rm -rf conftest* |
17867 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
17868 | else | |
17869 | echo "configure: failed program was:" >&5 | |
17870 | cat conftest.$ac_ext >&5 | |
17871 | rm -rf conftest* | |
17872 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
17873 | fi | |
17874 | rm -f conftest* | |
17875 | fi | |
17876 | ||
17877 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
17878 | echo "$ac_t""yes" 1>&6 | |
17879 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
5c0a20c3 | 17880 | echo "configure:17881: checking for sched_get_priority_max" >&5 |
579d8138 VS |
17881 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
17882 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17883 | else | |
17884 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 17885 | #line 17886 "configure" |
422107f9 | 17886 | #include "confdefs.h" |
009fead0 VZ |
17887 | /* System header to define __stub macros and hopefully few prototypes |
17888 | else | |
579d8138 VS |
17889 | echo "$ac_t""no" 1>&6 |
17890 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 17891 | #include <assert.h> |
4f14bcd8 GD |
17892 | /* Override any gcc2 internal prototype to avoid an error. */ |
17893 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17894 | builtin and then its argument prototype would still apply. */ |
17895 | char sched_get_priority_max(); | |
17896 | ||
17897 | int main() { | |
009fead0 VZ |
17898 | |
17899 | /* The GNU C library defines this for functions which it implements | |
17900 | to always fail with ENOSYS. Some functions are actually named | |
17901 | something starting with __ and the normal name is an alias. */ | |
17902 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
17903 | choke me | |
17904 | #else | |
579d8138 | 17905 | sched_get_priority_max(); |
009fead0 VZ |
17906 | #endif |
17907 | ||
579d8138 VS |
17908 | ; return 0; } |
17909 | EOF | |
5c0a20c3 | 17910 | if { (eval echo configure:17911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17911 | rm -rf conftest* |
17912 | eval "ac_cv_func_sched_get_priority_max=yes" | |
17913 | else | |
17914 | echo "configure: failed program was:" >&5 | |
17915 | cat conftest.$ac_ext >&5 | |
17916 | rm -rf conftest* | |
17917 | eval "ac_cv_func_sched_get_priority_max=no" | |
17918 | fi | |
17919 | rm -f conftest* | |
17920 | fi | |
17921 | ||
17922 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
17923 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
17924 | HAVE_PRIOR_FUNCS=1 |
17925 | else | |
579d8138 VS |
17926 | echo "$ac_t""no" 1>&6 |
17927 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
5c0a20c3 | 17928 | echo "configure:17929: checking for sched_get_priority_max in -lposix4" >&5 |
579d8138 VS |
17929 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
17930 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17931 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17932 | else |
579d8138 | 17933 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17934 | LIBS="-lposix4 $LIBS" |
579d8138 | 17935 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17936 | #line 17937 "configure" |
422107f9 VZ |
17937 | #include "confdefs.h" |
17938 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17939 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
17940 | builtin and then its argument prototype would still apply. */ |
17941 | char sched_get_priority_max(); | |
17942 | ||
17943 | int main() { | |
17944 | sched_get_priority_max() | |
17945 | ; return 0; } | |
17946 | EOF | |
5c0a20c3 | 17947 | if { (eval echo configure:17948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
17948 | rm -rf conftest* |
17949 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17950 | else | |
17951 | echo "configure: failed program was:" >&5 | |
17952 | cat conftest.$ac_ext >&5 | |
17953 | rm -rf conftest* | |
17954 | eval "ac_cv_lib_$ac_lib_var=no" | |
17955 | fi | |
17956 | rm -f conftest* | |
17957 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 17958 | |
579d8138 VS |
17959 | fi |
17960 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17961 | echo "$ac_t""yes" 1>&6 | |
17962 | ||
7274f1c7 RL |
17963 | HAVE_PRIOR_FUNCS=1 |
17964 | POSIX4_LINK=" -lposix4" | |
579d8138 VS |
17965 | |
17966 | else | |
17967 | echo "$ac_t""no" 1>&6 | |
422107f9 VZ |
17968 | fi |
17969 | ||
579d8138 | 17970 | |
10f2d63a VZ |
17971 | fi |
17972 | ||
579d8138 VS |
17973 | |
17974 | else | |
17975 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 17976 | fi |
463abc64 | 17977 | |
579d8138 | 17978 | |
328a083c | 17979 | fi |
463abc64 | 17980 | |
579d8138 | 17981 | |
7274f1c7 | 17982 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
579d8138 | 17983 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17984 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
698dcdb6 | 17985 | EOF |
463abc64 | 17986 | |
7274f1c7 | 17987 | else |
579d8138 | 17988 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 17989 | fi |
463abc64 | 17990 | |
579d8138 | 17991 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
5c0a20c3 | 17992 | echo "configure:17993: checking for pthread_cancel" >&5 |
579d8138 VS |
17993 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
17994 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 17995 | else |
579d8138 | 17996 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 17997 | #line 17998 "configure" |
422107f9 | 17998 | #include "confdefs.h" |
009fead0 | 17999 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 18000 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18001 | #include <assert.h> |
422107f9 VZ |
18002 | /* Override any gcc2 internal prototype to avoid an error. */ |
18003 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
18004 | builtin and then its argument prototype would still apply. */ |
18005 | char pthread_cancel(); | |
18006 | ||
18007 | int main() { | |
009fead0 VZ |
18008 | |
18009 | /* The GNU C library defines this for functions which it implements | |
18010 | to always fail with ENOSYS. Some functions are actually named | |
18011 | something starting with __ and the normal name is an alias. */ | |
18012 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18013 | choke me | |
18014 | #else | |
579d8138 | 18015 | pthread_cancel(); |
009fead0 VZ |
18016 | #endif |
18017 | ||
579d8138 VS |
18018 | ; return 0; } |
18019 | EOF | |
5c0a20c3 | 18020 | if { (eval echo configure:18021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
18021 | rm -rf conftest* |
18022 | eval "ac_cv_func_pthread_cancel=yes" | |
18023 | else | |
18024 | echo "configure: failed program was:" >&5 | |
18025 | cat conftest.$ac_ext >&5 | |
18026 | rm -rf conftest* | |
18027 | eval "ac_cv_func_pthread_cancel=no" | |
18028 | fi | |
18029 | rm -f conftest* | |
18030 | fi | |
18031 | ||
18032 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18033 | echo "$ac_t""yes" 1>&6 | |
18034 | cat >> confdefs.h <<\EOF | |
4f14bcd8 GD |
18035 | #define HAVE_PTHREAD_CANCEL 1 |
18036 | EOF | |
18037 | ||
698dcdb6 | 18038 | else |
579d8138 VS |
18039 | echo "$ac_t""no" 1>&6 |
18040 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18041 | fi |
18042 | ||
328a083c | 18043 | |
579d8138 | 18044 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
5c0a20c3 | 18045 | echo "configure:18046: checking for pthread_cleanup_push/pop" >&5 |
579d8138 VS |
18046 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18047 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18048 | else | |
18049 | ||
18050 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18051 | #line 18052 "configure" |
4f14bcd8 GD |
18052 | #include "confdefs.h" |
18053 | #include <pthread.h> | |
579d8138 | 18054 | int main() { |
4f14bcd8 | 18055 | |
7274f1c7 RL |
18056 | pthread_cleanup_push(NULL, NULL); |
18057 | pthread_cleanup_pop(0); | |
579d8138 VS |
18058 | |
18059 | ; return 0; } | |
18060 | EOF | |
5c0a20c3 | 18061 | if { (eval echo configure:18062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
18062 | rm -rf conftest* |
18063 | ||
7274f1c7 | 18064 | wx_cv_func_pthread_cleanup_push=yes |
579d8138 | 18065 | |
4f14bcd8 | 18066 | else |
579d8138 VS |
18067 | echo "configure: failed program was:" >&5 |
18068 | cat conftest.$ac_ext >&5 | |
18069 | rm -rf conftest* | |
18070 | ||
7274f1c7 | 18071 | wx_cv_func_pthread_cleanup_push=no |
579d8138 | 18072 | |
10f2d63a | 18073 | fi |
579d8138 VS |
18074 | rm -f conftest* |
18075 | ||
328a083c | 18076 | fi |
579d8138 VS |
18077 | |
18078 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18079 | |
7274f1c7 | 18080 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
579d8138 | 18081 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18082 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
c7a2bf27 RR |
18083 | EOF |
18084 | ||
7274f1c7 | 18085 | fi |
4f14bcd8 | 18086 | |
579d8138 | 18087 | |
579d8138 | 18088 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 |
5c0a20c3 | 18089 | echo "configure:18090: checking for pthread_mutexattr_t" >&5 |
579d8138 VS |
18090 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
18091 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18092 | else |
579d8138 VS |
18093 | |
18094 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18095 | #line 18096 "configure" |
0dcf9893 | 18096 | #include "confdefs.h" |
4f14bcd8 | 18097 | #include <pthread.h> |
579d8138 | 18098 | int main() { |
4f14bcd8 | 18099 | |
7274f1c7 RL |
18100 | pthread_mutexattr_t attr; |
18101 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
579d8138 VS |
18102 | |
18103 | ; return 0; } | |
18104 | EOF | |
5c0a20c3 | 18105 | if { (eval echo configure:18106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
18106 | rm -rf conftest* |
18107 | ||
7274f1c7 | 18108 | wx_cv_type_pthread_mutexattr_t=yes |
579d8138 | 18109 | |
3fed1840 | 18110 | else |
579d8138 VS |
18111 | echo "configure: failed program was:" >&5 |
18112 | cat conftest.$ac_ext >&5 | |
18113 | rm -rf conftest* | |
18114 | ||
7274f1c7 | 18115 | wx_cv_type_pthread_mutexattr_t=no |
579d8138 VS |
18116 | |
18117 | ||
3fed1840 | 18118 | fi |
579d8138 VS |
18119 | rm -f conftest* |
18120 | ||
328a083c | 18121 | fi |
579d8138 VS |
18122 | |
18123 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 18124 | |
7274f1c7 | 18125 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
579d8138 | 18126 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18127 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
18128 | EOF | |
18129 | ||
7274f1c7 | 18130 | else |
579d8138 | 18131 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
5c0a20c3 | 18132 | echo "configure:18133: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
579d8138 VS |
18133 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
18134 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18135 | else | |
18136 | ||
18137 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18138 | #line 18139 "configure" |
3fed1840 | 18139 | #include "confdefs.h" |
4f14bcd8 | 18140 | #include <pthread.h> |
579d8138 | 18141 | int main() { |
4f14bcd8 | 18142 | |
7274f1c7 | 18143 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
579d8138 VS |
18144 | |
18145 | ; return 0; } | |
18146 | EOF | |
5c0a20c3 | 18147 | if { (eval echo configure:18148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
18148 | rm -rf conftest* |
18149 | ||
7274f1c7 | 18150 | wx_cv_type_pthread_rec_mutex_init=yes |
579d8138 | 18151 | |
698dcdb6 | 18152 | else |
579d8138 VS |
18153 | echo "configure: failed program was:" >&5 |
18154 | cat conftest.$ac_ext >&5 | |
18155 | rm -rf conftest* | |
18156 | ||
7274f1c7 | 18157 | wx_cv_type_pthread_rec_mutex_init=no |
579d8138 VS |
18158 | |
18159 | ||
3fed1840 | 18160 | fi |
579d8138 VS |
18161 | rm -f conftest* |
18162 | ||
328a083c | 18163 | fi |
579d8138 VS |
18164 | |
18165 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 18166 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
579d8138 | 18167 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18168 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
18169 | EOF | |
3fed1840 | 18170 | |
7274f1c7 | 18171 | else |
579d8138 | 18172 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
18173 | fi |
18174 | fi | |
7274f1c7 | 18175 | fi |
3fed1840 | 18176 | |
4f14bcd8 GD |
18177 | fi |
18178 | ||
18179 | if test "$wxUSE_THREADS" = "yes"; then | |
579d8138 | 18180 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18181 | #define wxUSE_THREADS 1 |
7b6058cd GD |
18182 | EOF |
18183 | ||
579d8138 | 18184 | |
4f14bcd8 | 18185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 18186 | else |
4f14bcd8 | 18187 | if test "$ac_cv_func_strtok_r" = "yes"; then |
579d8138 | 18188 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
5c0a20c3 | 18189 | echo "configure:18190: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
18190 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
18191 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
579d8138 | 18192 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 18193 | else |
579d8138 | 18194 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
18195 | fi |
18196 | fi | |
18197 | fi | |
18198 | ||
18199 | if test "$WXGTK20" = 1 ; then | |
579d8138 | 18200 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18201 | #define __WXGTK20__ $WXGTK20 |
698dcdb6 | 18202 | EOF |
4f14bcd8 GD |
18203 | |
18204 | WXGTK12=1 | |
10f2d63a | 18205 | fi |
4f14bcd8 GD |
18206 | |
18207 | if test "$WXGTK12" = 1 ; then | |
579d8138 | 18208 | cat >> confdefs.h <<EOF |
4f14bcd8 GD |
18209 | #define __WXGTK12__ $WXGTK12 |
18210 | EOF | |
18211 | ||
10f2d63a | 18212 | fi |
698dcdb6 | 18213 | |
4f14bcd8 | 18214 | if test "$WXGTK127" = 1 ; then |
579d8138 | 18215 | cat >> confdefs.h <<EOF |
4f14bcd8 | 18216 | #define __WXGTK127__ $WXGTK127 |
698dcdb6 | 18217 | EOF |
4f14bcd8 | 18218 | |
698dcdb6 | 18219 | fi |
10f2d63a | 18220 | |
4f14bcd8 GD |
18221 | WXDEBUG= |
18222 | ||
18223 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
18224 | WXDEBUG="-g" | |
18225 | wxUSE_OPTIMISE=no | |
698dcdb6 | 18226 | fi |
4f14bcd8 GD |
18227 | |
18228 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
18229 | wxUSE_DEBUG_INFO=yes | |
18230 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
18231 | fi |
18232 | ||
4f14bcd8 | 18233 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
579d8138 | 18234 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18235 | #define WXDEBUG 1 |
18236 | EOF | |
18237 | ||
18238 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 18239 | else |
4f14bcd8 GD |
18240 | if test "$wxUSE_GTK" = 1 ; then |
18241 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
18242 | fi | |
18243 | fi | |
18244 | ||
18245 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
579d8138 | 18246 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18247 | #define wxUSE_MEMORY_TRACING 1 |
18248 | EOF | |
18249 | ||
579d8138 | 18250 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18251 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
18252 | EOF | |
18253 | ||
579d8138 | 18254 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18255 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
18256 | EOF | |
18257 | ||
18258 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
18259 | fi | |
18260 | ||
18261 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 18262 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
18263 | fi |
18264 | ||
18265 | PROFILE= | |
18266 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 18267 | PROFILE=" -pg" |
10f2d63a VZ |
18268 | fi |
18269 | ||
009fead0 VZ |
18270 | CODE_GEN_FLAGS= |
18271 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 18272 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
18273 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
18274 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 18275 | fi |
4f14bcd8 GD |
18276 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
18277 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
18278 | fi | |
18279 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
18280 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
18281 | fi | |
4f14bcd8 GD |
18282 | if test "$USE_WIN32" = 1 ; then |
18283 | # I'm not even really sure what this was ever added to solve, | |
18284 | # but someone added it for mingw native builds, so I guess | |
18285 | # they had a reason, right?? | |
18286 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
18287 | fi | |
1d1b75ac VZ |
18288 | |
18289 | case "${host}" in | |
18290 | powerpc*-*-aix* ) | |
18291 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
18292 | ;; | |
18293 | esac | |
4f14bcd8 GD |
18294 | fi |
18295 | ||
4f14bcd8 GD |
18296 | if test "$wxUSE_OPTIMISE" = "no" ; then |
18297 | OPTIMISE= | |
18298 | else | |
18299 | if test "$GCC" = yes ; then | |
18300 | OPTIMISE="-O2" | |
18301 | case "${host}" in | |
18302 | i586-*-*|i686-*-* ) | |
18303 | OPTIMISE="${OPTIMISE} " | |
18304 | ;; | |
18305 | esac | |
18306 | else | |
18307 | OPTIMISE="-O" | |
18308 | fi | |
18309 | fi | |
18310 | ||
18311 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
579d8138 | 18312 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18313 | #define WXWIN_COMPATIBILITY_2 1 |
18314 | EOF | |
18315 | ||
579d8138 | 18316 | |
4f14bcd8 GD |
18317 | WXWIN_COMPATIBILITY_2_2="yes" |
18318 | fi | |
18319 | ||
0c9a1c32 | 18320 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
579d8138 | 18321 | cat >> confdefs.h <<\EOF |
4f14bcd8 GD |
18322 | #define WXWIN_COMPATIBILITY_2_2 1 |
18323 | EOF | |
18324 | ||
10f2d63a VZ |
18325 | fi |
18326 | ||
579d8138 | 18327 | |
10f2d63a | 18328 | if test "$wxUSE_GUI" = "yes"; then |
579d8138 | 18329 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18330 | #define wxUSE_GUI 1 |
18331 | EOF | |
18332 | ||
579d8138 | 18333 | |
10f2d63a | 18334 | else |
579d8138 | 18335 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18336 | #define wxUSE_NOGUI 1 |
18337 | EOF | |
18338 | ||
18339 | fi | |
18340 | ||
579d8138 | 18341 | |
10f2d63a | 18342 | if test "$wxUSE_UNIX" = "yes"; then |
579d8138 | 18343 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18344 | #define wxUSE_UNIX 1 |
18345 | EOF | |
18346 | ||
18347 | fi | |
18348 | ||
579d8138 | 18349 | |
10f2d63a | 18350 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
579d8138 | 18351 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18352 | #define wxUSE_APPLE_IEEE 1 |
18353 | EOF | |
18354 | ||
18355 | fi | |
18356 | ||
1e6feb95 | 18357 | if test "$wxUSE_TIMER" = "yes"; then |
579d8138 | 18358 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18359 | #define wxUSE_TIMER 1 |
18360 | EOF | |
18361 | ||
18362 | fi | |
18363 | ||
10f2d63a | 18364 | if test "$wxUSE_WAVE" = "yes"; then |
579d8138 | 18365 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18366 | #define wxUSE_WAVE 1 |
18367 | EOF | |
18368 | ||
18369 | fi | |
18370 | ||
1e6feb95 | 18371 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
579d8138 | 18372 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18373 | #define wxUSE_CMDLINE_PARSER 1 |
18374 | EOF | |
18375 | ||
18376 | fi | |
18377 | ||
18378 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
579d8138 | 18379 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18380 | #define wxUSE_STOPWATCH 1 |
18381 | EOF | |
18382 | ||
18383 | fi | |
18384 | ||
18385 | if test "$wxUSE_DATETIME" = "yes"; then | |
579d8138 | 18386 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18387 | #define wxUSE_DATETIME 1 |
18388 | EOF | |
18389 | ||
18390 | fi | |
18391 | ||
18392 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
579d8138 | 18393 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18394 | #define wxUSE_TIMEDATE 1 |
18395 | EOF | |
18396 | ||
18397 | fi | |
18398 | ||
10f2d63a | 18399 | if test "$wxUSE_FILE" = "yes"; then |
579d8138 | 18400 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18401 | #define wxUSE_FILE 1 |
18402 | EOF | |
18403 | ||
18404 | fi | |
18405 | ||
1e6feb95 | 18406 | if test "$wxUSE_FFILE" = "yes"; then |
579d8138 | 18407 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
18408 | #define wxUSE_FFILE 1 |
18409 | EOF | |
18410 | ||
18411 | fi | |
18412 | ||
24528b0c | 18413 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
579d8138 | 18414 | cat >> confdefs.h <<\EOF |
24528b0c VS |
18415 | #define wxUSE_FILESYSTEM 1 |
18416 | EOF | |
18417 | ||
18418 | fi | |
18419 | ||
10f2d63a | 18420 | if test "$wxUSE_FS_INET" = "yes"; then |
579d8138 | 18421 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18422 | #define wxUSE_FS_INET 1 |
18423 | EOF | |
18424 | ||
18425 | fi | |
18426 | ||
18427 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
579d8138 | 18428 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18429 | #define wxUSE_FS_ZIP 1 |
18430 | EOF | |
18431 | ||
18432 | fi | |
18433 | ||
18434 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
579d8138 | 18435 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18436 | #define wxUSE_ZIPSTREAM 1 |
18437 | EOF | |
18438 | ||
18439 | fi | |
18440 | ||
eb4efbdc | 18441 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
579d8138 | 18442 | cat >> confdefs.h <<\EOF |
eb4efbdc VZ |
18443 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
18444 | EOF | |
18445 | ||
18446 | fi | |
18447 | ||
4f3c5f06 | 18448 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
579d8138 | 18449 | cat >> confdefs.h <<\EOF |
4f3c5f06 VZ |
18450 | #define wxUSE_SNGLINST_CHECKER 1 |
18451 | EOF | |
18452 | ||
18453 | fi | |
18454 | ||
10f2d63a | 18455 | if test "$wxUSE_BUSYINFO" = "yes"; then |
579d8138 | 18456 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18457 | #define wxUSE_BUSYINFO 1 |
18458 | EOF | |
18459 | ||
18460 | fi | |
18461 | ||
18462 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
579d8138 | 18463 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18464 | #define wxUSE_STD_IOSTREAM 1 |
18465 | EOF | |
18466 | ||
18467 | fi | |
18468 | ||
a3a584a7 | 18469 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
579d8138 | 18470 | cat >> confdefs.h <<\EOF |
a3a584a7 VZ |
18471 | #define wxUSE_TEXTBUFFER 1 |
18472 | EOF | |
18473 | ||
18474 | fi | |
18475 | ||
10f2d63a | 18476 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 18477 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
579d8138 | 18478 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 18479 | else |
579d8138 | 18480 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18481 | #define wxUSE_TEXTFILE 1 |
18482 | EOF | |
18483 | ||
18484 | fi | |
18485 | fi | |
18486 | ||
18487 | if test "$wxUSE_CONFIG" = "yes" ; then | |
18488 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
579d8138 | 18489 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 18490 | else |
579d8138 | 18491 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18492 | #define wxUSE_CONFIG 1 |
18493 | EOF | |
18494 | ||
18495 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
18496 | fi | |
18497 | fi | |
18498 | ||
18499 | if test "$wxUSE_INTL" = "yes" ; then | |
18500 | if test "$wxUSE_FILE" != "yes"; then | |
579d8138 | 18501 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 18502 | else |
579d8138 | 18503 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18504 | #define wxUSE_INTL 1 |
18505 | EOF | |
18506 | ||
18507 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 18508 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
18509 | fi |
18510 | fi | |
18511 | ||
18512 | if test "$wxUSE_LOG" = "yes"; then | |
579d8138 | 18513 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18514 | #define wxUSE_LOG 1 |
18515 | EOF | |
18516 | ||
579d8138 | 18517 | |
d73be714 | 18518 | if test "$wxUSE_LOGGUI" = "yes"; then |
579d8138 | 18519 | cat >> confdefs.h <<\EOF |
d73be714 VZ |
18520 | #define wxUSE_LOGGUI 1 |
18521 | EOF | |
18522 | ||
18523 | fi | |
18524 | ||
18525 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
579d8138 | 18526 | cat >> confdefs.h <<\EOF |
d73be714 | 18527 | #define wxUSE_LOGWINDOW 1 |
69d27ff7 MB |
18528 | EOF |
18529 | ||
18530 | fi | |
18531 | ||
18532 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
579d8138 | 18533 | cat >> confdefs.h <<\EOF |
69d27ff7 | 18534 | #define wxUSE_LOG_DIALOG 1 |
d73be714 VZ |
18535 | EOF |
18536 | ||
18537 | fi | |
10f2d63a VZ |
18538 | fi |
18539 | ||
18540 | if test "$wxUSE_LONGLONG" = "yes"; then | |
579d8138 | 18541 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18542 | #define wxUSE_LONGLONG 1 |
18543 | EOF | |
18544 | ||
18545 | fi | |
18546 | ||
e8f65ba6 | 18547 | if test "$wxUSE_GEOMETRY" = "yes"; then |
579d8138 | 18548 | cat >> confdefs.h <<\EOF |
e8f65ba6 RR |
18549 | #define wxUSE_GEOMETRY 1 |
18550 | EOF | |
18551 | ||
18552 | fi | |
18553 | ||
10f2d63a | 18554 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
579d8138 | 18555 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18556 | #define wxUSE_DIALUP_MANAGER 1 |
18557 | EOF | |
18558 | ||
70f7a477 | 18559 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
18560 | fi |
18561 | ||
18562 | if test "$wxUSE_STREAMS" = "yes" ; then | |
579d8138 | 18563 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
18564 | #define wxUSE_STREAMS 1 |
18565 | EOF | |
18566 | ||
18567 | fi | |
18568 | ||
328a083c | 18569 | |
579d8138 VS |
18570 | if test "$wxUSE_DATETIME" = "yes"; then |
18571 | for ac_func in strptime | |
83307f33 | 18572 | do |
579d8138 | 18573 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 18574 | echo "configure:18575: checking for $ac_func" >&5 |
579d8138 VS |
18575 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18576 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18577 | else | |
18578 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18579 | #line 18580 "configure" |
83307f33 VZ |
18580 | #include "confdefs.h" |
18581 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 18582 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
18583 | #include <assert.h> |
18584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18585 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
18586 | builtin and then its argument prototype would still apply. */ |
18587 | char $ac_func(); | |
18588 | ||
18589 | int main() { | |
83307f33 VZ |
18590 | |
18591 | /* The GNU C library defines this for functions which it implements | |
18592 | to always fail with ENOSYS. Some functions are actually named | |
18593 | something starting with __ and the normal name is an alias. */ | |
18594 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18595 | choke me | |
18596 | #else | |
579d8138 | 18597 | $ac_func(); |
83307f33 VZ |
18598 | #endif |
18599 | ||
579d8138 | 18600 | ; return 0; } |
83307f33 | 18601 | EOF |
5c0a20c3 | 18602 | if { (eval echo configure:18603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
18603 | rm -rf conftest* |
18604 | eval "ac_cv_func_$ac_func=yes" | |
18605 | else | |
18606 | echo "configure: failed program was:" >&5 | |
18607 | cat conftest.$ac_ext >&5 | |
18608 | rm -rf conftest* | |
18609 | eval "ac_cv_func_$ac_func=no" | |
18610 | fi | |
18611 | rm -f conftest* | |
18612 | fi | |
83307f33 | 18613 | |
579d8138 VS |
18614 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18615 | echo "$ac_t""yes" 1>&6 | |
18616 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18617 | cat >> confdefs.h <<EOF | |
18618 | #define $ac_tr_func 1 | |
18619 | EOF | |
18620 | ||
18621 | else | |
18622 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
18623 | fi |
18624 | done | |
18625 | ||
328a083c | 18626 | |
579d8138 | 18627 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
5c0a20c3 | 18628 | echo "configure:18629: checking for timezone variable in <time.h>" >&5 |
579d8138 VS |
18629 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
18630 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18631 | else | |
18632 | ||
18633 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18634 | #line 18635 "configure" |
360d6699 VZ |
18635 | #include "confdefs.h" |
18636 | ||
b4085ce6 | 18637 | #include <time.h> |
579d8138 VS |
18638 | |
18639 | int main() { | |
360d6699 VZ |
18640 | |
18641 | int tz; | |
4f11a343 | 18642 | tz = timezone; |
579d8138 VS |
18643 | |
18644 | ; return 0; } | |
18645 | EOF | |
5c0a20c3 | 18646 | if { (eval echo configure:18647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
18647 | rm -rf conftest* |
18648 | ||
4f11a343 | 18649 | wx_cv_var_timezone=timezone |
579d8138 | 18650 | |
360d6699 | 18651 | else |
579d8138 VS |
18652 | echo "configure: failed program was:" >&5 |
18653 | cat conftest.$ac_ext >&5 | |
18654 | rm -rf conftest* | |
18655 | ||
18656 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18657 | #line 18658 "configure" |
360d6699 VZ |
18658 | #include "confdefs.h" |
18659 | ||
b4085ce6 | 18660 | #include <time.h> |
579d8138 VS |
18661 | |
18662 | int main() { | |
360d6699 VZ |
18663 | |
18664 | int tz; | |
18665 | tz = _timezone; | |
579d8138 VS |
18666 | |
18667 | ; return 0; } | |
18668 | EOF | |
5c0a20c3 | 18669 | if { (eval echo configure:18670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
18670 | rm -rf conftest* |
18671 | ||
360d6699 | 18672 | wx_cv_var_timezone=_timezone |
579d8138 | 18673 | |
5357c8e8 | 18674 | else |
579d8138 VS |
18675 | echo "configure: failed program was:" >&5 |
18676 | cat conftest.$ac_ext >&5 | |
18677 | rm -rf conftest* | |
18678 | ||
18679 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18680 | #line 18681 "configure" |
5357c8e8 VZ |
18681 | #include "confdefs.h" |
18682 | ||
b4085ce6 | 18683 | #include <time.h> |
579d8138 VS |
18684 | |
18685 | int main() { | |
5357c8e8 VZ |
18686 | |
18687 | int tz; | |
4f11a343 | 18688 | tz = __timezone; |
579d8138 VS |
18689 | |
18690 | ; return 0; } | |
18691 | EOF | |
5c0a20c3 | 18692 | if { (eval echo configure:18693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
18693 | rm -rf conftest* |
18694 | ||
4f11a343 | 18695 | wx_cv_var_timezone=__timezone |
579d8138 | 18696 | |
360d6699 | 18697 | else |
579d8138 VS |
18698 | echo "configure: failed program was:" >&5 |
18699 | cat conftest.$ac_ext >&5 | |
18700 | rm -rf conftest* | |
18701 | ||
f9bc1684 | 18702 | if test "$USE_DOS" = 0 ; then |
579d8138 | 18703 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 18704 | fi |
579d8138 VS |
18705 | |
18706 | ||
360d6699 | 18707 | fi |
579d8138 VS |
18708 | rm -f conftest* |
18709 | ||
18710 | ||
6232543b | 18711 | fi |
579d8138 VS |
18712 | rm -f conftest* |
18713 | ||
18714 | ||
1e487827 | 18715 | fi |
579d8138 VS |
18716 | rm -f conftest* |
18717 | ||
18718 | ||
328a083c | 18719 | fi |
579d8138 VS |
18720 | |
18721 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 18722 | |
f9bc1684 | 18723 | if test "x$wx_cv_var_timezone" != x ; then |
579d8138 | 18724 | cat >> confdefs.h <<EOF |
360d6699 VZ |
18725 | #define WX_TIMEZONE $wx_cv_var_timezone |
18726 | EOF | |
18727 | ||
f9bc1684 | 18728 | fi |
698dcdb6 | 18729 | |
579d8138 | 18730 | for ac_func in localtime |
afc31813 | 18731 | do |
579d8138 | 18732 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 18733 | echo "configure:18734: checking for $ac_func" >&5 |
579d8138 VS |
18734 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18735 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18736 | else | |
18737 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18738 | #line 18739 "configure" |
10f2d63a | 18739 | #include "confdefs.h" |
afc31813 | 18740 | /* System header to define __stub macros and hopefully few prototypes, |
579d8138 | 18741 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
18742 | #include <assert.h> |
18743 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18744 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
18745 | builtin and then its argument prototype would still apply. */ |
18746 | char $ac_func(); | |
18747 | ||
18748 | int main() { | |
afc31813 VZ |
18749 | |
18750 | /* The GNU C library defines this for functions which it implements | |
18751 | to always fail with ENOSYS. Some functions are actually named | |
18752 | something starting with __ and the normal name is an alias. */ | |
18753 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18754 | choke me | |
18755 | #else | |
579d8138 | 18756 | $ac_func(); |
afc31813 VZ |
18757 | #endif |
18758 | ||
579d8138 | 18759 | ; return 0; } |
10f2d63a | 18760 | EOF |
5c0a20c3 | 18761 | if { (eval echo configure:18762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
18762 | rm -rf conftest* |
18763 | eval "ac_cv_func_$ac_func=yes" | |
18764 | else | |
18765 | echo "configure: failed program was:" >&5 | |
18766 | cat conftest.$ac_ext >&5 | |
18767 | rm -rf conftest* | |
18768 | eval "ac_cv_func_$ac_func=no" | |
18769 | fi | |
18770 | rm -f conftest* | |
18771 | fi | |
afc31813 | 18772 | |
579d8138 VS |
18773 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18774 | echo "$ac_t""yes" 1>&6 | |
18775 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18776 | cat >> confdefs.h <<EOF | |
18777 | #define $ac_tr_func 1 | |
18778 | EOF | |
18779 | ||
18780 | else | |
18781 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
18782 | fi |
18783 | done | |
18784 | ||
328a083c | 18785 | |
579d8138 VS |
18786 | if test "$ac_cv_func_localtime" = "yes"; then |
18787 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 | |
5c0a20c3 | 18788 | echo "configure:18789: checking for tm_gmtoff in struct tm" >&5 |
579d8138 VS |
18789 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
18790 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18791 | else | |
18792 | ||
18793 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18794 | #line 18795 "configure" |
0470b1e6 VZ |
18795 | #include "confdefs.h" |
18796 | ||
b4085ce6 | 18797 | #include <time.h> |
579d8138 VS |
18798 | |
18799 | int main() { | |
0470b1e6 VZ |
18800 | |
18801 | struct tm tm; | |
18802 | tm.tm_gmtoff++; | |
579d8138 VS |
18803 | |
18804 | ; return 0; } | |
18805 | EOF | |
5c0a20c3 | 18806 | if { (eval echo configure:18807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 VS |
18807 | rm -rf conftest* |
18808 | ||
f03a98d8 | 18809 | wx_cv_struct_tm_has_gmtoff=yes |
579d8138 | 18810 | |
0470b1e6 | 18811 | else |
579d8138 VS |
18812 | echo "configure: failed program was:" >&5 |
18813 | cat conftest.$ac_ext >&5 | |
18814 | rm -rf conftest* | |
18815 | wx_cv_struct_tm_has_gmtoff=no | |
18816 | ||
1e487827 | 18817 | fi |
579d8138 VS |
18818 | rm -f conftest* |
18819 | ||
328a083c | 18820 | fi |
579d8138 VS |
18821 | |
18822 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
18823 | fi |
18824 | ||
18825 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
579d8138 | 18826 | cat >> confdefs.h <<\EOF |
6232543b VS |
18827 | #define WX_GMTOFF_IN_TM 1 |
18828 | EOF | |
0470b1e6 | 18829 | |
3fcdd07b VZ |
18830 | fi |
18831 | ||
579d8138 | 18832 | for ac_func in gettimeofday ftime |
3fcdd07b | 18833 | do |
579d8138 | 18834 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 18835 | echo "configure:18836: checking for $ac_func" >&5 |
579d8138 VS |
18836 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18837 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18838 | else | |
18839 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18840 | #line 18841 "configure" |
3fcdd07b VZ |
18841 | #include "confdefs.h" |
18842 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 18843 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
18844 | #include <assert.h> |
18845 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18846 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
18847 | builtin and then its argument prototype would still apply. */ |
18848 | char $ac_func(); | |
18849 | ||
18850 | int main() { | |
3fcdd07b VZ |
18851 | |
18852 | /* The GNU C library defines this for functions which it implements | |
18853 | to always fail with ENOSYS. Some functions are actually named | |
18854 | something starting with __ and the normal name is an alias. */ | |
18855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18856 | choke me | |
18857 | #else | |
579d8138 | 18858 | $ac_func(); |
3fcdd07b VZ |
18859 | #endif |
18860 | ||
579d8138 VS |
18861 | ; return 0; } |
18862 | EOF | |
5c0a20c3 | 18863 | if { (eval echo configure:18864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
18864 | rm -rf conftest* |
18865 | eval "ac_cv_func_$ac_func=yes" | |
18866 | else | |
18867 | echo "configure: failed program was:" >&5 | |
18868 | cat conftest.$ac_ext >&5 | |
18869 | rm -rf conftest* | |
18870 | eval "ac_cv_func_$ac_func=no" | |
18871 | fi | |
18872 | rm -f conftest* | |
18873 | fi | |
18874 | ||
18875 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18876 | echo "$ac_t""yes" 1>&6 | |
18877 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18878 | cat >> confdefs.h <<EOF | |
18879 | #define $ac_tr_func 1 | |
3fcdd07b VZ |
18880 | EOF |
18881 | break | |
579d8138 VS |
18882 | else |
18883 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
18884 | fi |
18885 | done | |
18886 | ||
703e0a69 | 18887 | |
579d8138 VS |
18888 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
18889 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 | |
5c0a20c3 | 18890 | echo "configure:18891: checking whether gettimeofday takes two arguments" >&5 |
579d8138 VS |
18891 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
18892 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18893 | else | |
18894 | ||
18895 | ||
18896 | ac_ext=C | |
18897 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
328a083c | 18898 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 18899 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 18900 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
18901 | cross_compiling=$ac_cv_prog_cxx_cross |
18902 | ||
698dcdb6 | 18903 | |
579d8138 | 18904 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 18905 | #line 18906 "configure" |
10f2d63a | 18906 | #include "confdefs.h" |
afc31813 VZ |
18907 | |
18908 | #include <sys/time.h> | |
18909 | #include <unistd.h> | |
579d8138 VS |
18910 | |
18911 | int main() { | |
afc31813 VZ |
18912 | |
18913 | struct timeval tv; | |
776862b4 | 18914 | gettimeofday(&tv, NULL); |
579d8138 VS |
18915 | |
18916 | ; return 0; } | |
18917 | EOF | |
5c0a20c3 | 18918 | if { (eval echo configure:18919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 18919 | rm -rf conftest* |
afc31813 | 18920 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 18921 | else |
579d8138 VS |
18922 | echo "configure: failed program was:" >&5 |
18923 | cat conftest.$ac_ext >&5 | |
18924 | rm -rf conftest* | |
18925 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 18926 | #line 18927 "configure" |
10f2d63a | 18927 | #include "confdefs.h" |
afc31813 VZ |
18928 | |
18929 | #include <sys/time.h> | |
18930 | #include <unistd.h> | |
579d8138 VS |
18931 | |
18932 | int main() { | |
afc31813 VZ |
18933 | |
18934 | struct timeval tv; | |
18935 | gettimeofday(&tv); | |
579d8138 VS |
18936 | |
18937 | ; return 0; } | |
18938 | EOF | |
5c0a20c3 | 18939 | if { (eval echo configure:18940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 18940 | rm -rf conftest* |
afc31813 | 18941 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 18942 | else |
579d8138 VS |
18943 | echo "configure: failed program was:" >&5 |
18944 | cat conftest.$ac_ext >&5 | |
18945 | rm -rf conftest* | |
18946 | ||
18947 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 18948 | wx_cv_func_gettimeofday_has_2_args=unknown |
579d8138 VS |
18949 | |
18950 | ||
10f2d63a | 18951 | fi |
579d8138 VS |
18952 | rm -f conftest* |
18953 | ||
10f2d63a | 18954 | fi |
579d8138 | 18955 | rm -f conftest* |
afc31813 | 18956 | ac_ext=c |
579d8138 | 18957 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 18958 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 18959 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 18960 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 18961 | cross_compiling=$ac_cv_prog_cc_cross |
10f2d63a | 18962 | |
579d8138 | 18963 | |
afc31813 | 18964 | fi |
579d8138 VS |
18965 | |
18966 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 18967 | |
afc31813 | 18968 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
579d8138 | 18969 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18970 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
18971 | EOF | |
18972 | ||
18973 | fi | |
18974 | fi | |
18975 | ||
579d8138 | 18976 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
18977 | #define wxUSE_TIMEDATE 1 |
18978 | EOF | |
18979 | ||
18980 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
18981 | fi | |
18982 | ||
579d8138 | 18983 | |
0feee163 | 18984 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 18985 | if test "$wxUSE_X11" = "1"; then |
579d8138 | 18986 | echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2 |
0feee163 VZ |
18987 | wxUSE_SOCKETS="no" |
18988 | fi | |
6c657b52 VS |
18989 | |
18990 | if test "$wxUSE_MGL" = "1"; then | |
579d8138 | 18991 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
18992 | wxUSE_SOCKETS="no" |
18993 | fi | |
0feee163 | 18994 | fi |
b089607b | 18995 | |
0feee163 VZ |
18996 | if test "$wxUSE_SOCKETS" = "yes"; then |
18997 | if test "$TOOLKIT" != "MSW"; then | |
579d8138 | 18998 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
5c0a20c3 | 18999 | echo "configure:19000: checking for socket" >&5 |
579d8138 VS |
19000 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19001 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19002 | else |
579d8138 | 19003 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 19004 | #line 19005 "configure" |
c63c7106 VZ |
19005 | #include "confdefs.h" |
19006 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 19007 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19008 | #include <assert.h> |
19009 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19010 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
19011 | builtin and then its argument prototype would still apply. */ |
19012 | char socket(); | |
19013 | ||
19014 | int main() { | |
c63c7106 VZ |
19015 | |
19016 | /* The GNU C library defines this for functions which it implements | |
19017 | to always fail with ENOSYS. Some functions are actually named | |
19018 | something starting with __ and the normal name is an alias. */ | |
19019 | #if defined (__stub_socket) || defined (__stub___socket) | |
19020 | choke me | |
19021 | #else | |
579d8138 | 19022 | socket(); |
c63c7106 VZ |
19023 | #endif |
19024 | ||
579d8138 VS |
19025 | ; return 0; } |
19026 | EOF | |
5c0a20c3 | 19027 | if { (eval echo configure:19028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19028 | rm -rf conftest* |
19029 | eval "ac_cv_func_socket=yes" | |
19030 | else | |
19031 | echo "configure: failed program was:" >&5 | |
19032 | cat conftest.$ac_ext >&5 | |
19033 | rm -rf conftest* | |
19034 | eval "ac_cv_func_socket=no" | |
19035 | fi | |
19036 | rm -f conftest* | |
19037 | fi | |
19038 | ||
19039 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19040 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19041 | : |
19042 | else | |
579d8138 VS |
19043 | echo "$ac_t""no" 1>&6 |
19044 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
5c0a20c3 | 19045 | echo "configure:19046: checking for socket in -lsocket" >&5 |
579d8138 VS |
19046 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19047 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19048 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19049 | else |
579d8138 | 19050 | ac_save_LIBS="$LIBS" |
c63c7106 | 19051 | LIBS="-lsocket $LIBS" |
579d8138 | 19052 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 19053 | #line 19054 "configure" |
c63c7106 VZ |
19054 | #include "confdefs.h" |
19055 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19056 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
19057 | builtin and then its argument prototype would still apply. */ |
19058 | char socket(); | |
19059 | ||
19060 | int main() { | |
19061 | socket() | |
19062 | ; return 0; } | |
19063 | EOF | |
5c0a20c3 | 19064 | if { (eval echo configure:19065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19065 | rm -rf conftest* |
19066 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19067 | else | |
19068 | echo "configure: failed program was:" >&5 | |
19069 | cat conftest.$ac_ext >&5 | |
19070 | rm -rf conftest* | |
19071 | eval "ac_cv_lib_$ac_lib_var=no" | |
19072 | fi | |
19073 | rm -f conftest* | |
19074 | LIBS="$ac_save_LIBS" | |
19075 | ||
19076 | fi | |
19077 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19078 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
19079 | if test "$INET_LINK" != " -lsocket"; then |
19080 | INET_LINK="$INET_LINK -lsocket" | |
19081 | fi | |
c63c7106 | 19082 | else |
579d8138 | 19083 | echo "$ac_t""no" 1>&6 |
afc31813 | 19084 | |
579d8138 | 19085 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 19086 | wxUSE_SOCKETS=no |
579d8138 VS |
19087 | |
19088 | ||
6232543b | 19089 | fi |
b089607b | 19090 | |
579d8138 | 19091 | |
1e487827 | 19092 | fi |
afc31813 | 19093 | |
3a922bb4 | 19094 | fi |
0feee163 | 19095 | fi |
51a9faba | 19096 | |
0feee163 VZ |
19097 | if test "$wxUSE_SOCKETS" = "yes" ; then |
19098 | if test "$TOOLKIT" != "MSW"; then | |
579d8138 | 19099 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
5c0a20c3 | 19100 | echo "configure:19101: checking what is the type of the third argument of getsockname" >&5 |
579d8138 VS |
19101 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
19102 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19103 | else | |
19104 | ||
19105 | ||
19106 | ac_ext=C | |
19107 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
328a083c | 19108 | ac_cpp='$CXXCPP $CPPFLAGS' |
579d8138 | 19109 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 19110 | ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 VS |
19111 | cross_compiling=$ac_cv_prog_cxx_cross |
19112 | ||
698dcdb6 | 19113 | |
579d8138 | 19114 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 19115 | #line 19116 "configure" |
afc31813 | 19116 | #include "confdefs.h" |
51a9faba | 19117 | |
3a922bb4 RL |
19118 | #include <sys/types.h> |
19119 | #include <sys/socket.h> | |
579d8138 VS |
19120 | |
19121 | int main() { | |
51a9faba | 19122 | |
3a922bb4 RL |
19123 | socklen_t len; |
19124 | getsockname(0, 0, &len); | |
579d8138 VS |
19125 | |
19126 | ; return 0; } | |
19127 | EOF | |
5c0a20c3 | 19128 | if { (eval echo configure:19129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 19129 | rm -rf conftest* |
51a9faba | 19130 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 19131 | else |
579d8138 VS |
19132 | echo "configure: failed program was:" >&5 |
19133 | cat conftest.$ac_ext >&5 | |
19134 | rm -rf conftest* | |
19135 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 19136 | #line 19137 "configure" |
afc31813 | 19137 | #include "confdefs.h" |
51a9faba | 19138 | |
3a922bb4 RL |
19139 | #include <sys/types.h> |
19140 | #include <sys/socket.h> | |
579d8138 VS |
19141 | |
19142 | int main() { | |
51a9faba | 19143 | |
3a922bb4 RL |
19144 | size_t len; |
19145 | getsockname(0, 0, &len); | |
579d8138 VS |
19146 | |
19147 | ; return 0; } | |
19148 | EOF | |
5c0a20c3 | 19149 | if { (eval echo configure:19150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 19150 | rm -rf conftest* |
51a9faba | 19151 | wx_cv_type_getsockname3=size_t |
afc31813 | 19152 | else |
579d8138 VS |
19153 | echo "configure: failed program was:" >&5 |
19154 | cat conftest.$ac_ext >&5 | |
19155 | rm -rf conftest* | |
19156 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 19157 | #line 19158 "configure" |
afc31813 | 19158 | #include "confdefs.h" |
51a9faba | 19159 | |
3a922bb4 RL |
19160 | #include <sys/types.h> |
19161 | #include <sys/socket.h> | |
579d8138 VS |
19162 | |
19163 | int main() { | |
51a9faba | 19164 | |
3a922bb4 RL |
19165 | int len; |
19166 | getsockname(0, 0, &len); | |
579d8138 VS |
19167 | |
19168 | ; return 0; } | |
19169 | EOF | |
5c0a20c3 | 19170 | if { (eval echo configure:19171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
579d8138 | 19171 | rm -rf conftest* |
51a9faba | 19172 | wx_cv_type_getsockname3=int |
afc31813 | 19173 | else |
579d8138 VS |
19174 | echo "configure: failed program was:" >&5 |
19175 | cat conftest.$ac_ext >&5 | |
19176 | rm -rf conftest* | |
19177 | wx_cv_type_getsockname3=unknown | |
19178 | ||
afc31813 | 19179 | fi |
579d8138 VS |
19180 | rm -f conftest* |
19181 | ||
afc31813 | 19182 | fi |
579d8138 VS |
19183 | rm -f conftest* |
19184 | ||
afc31813 | 19185 | fi |
579d8138 | 19186 | rm -f conftest* |
51a9faba | 19187 | |
3a922bb4 | 19188 | ac_ext=c |
579d8138 | 19189 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 19190 | ac_cpp='$CPP $CPPFLAGS' |
579d8138 | 19191 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
5c0a20c3 | 19192 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
579d8138 | 19193 | cross_compiling=$ac_cv_prog_cc_cross |
afc31813 | 19194 | |
579d8138 | 19195 | |
51a9faba | 19196 | fi |
579d8138 VS |
19197 | |
19198 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 19199 | |
3a922bb4 RL |
19200 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
19201 | wxUSE_SOCKETS=no | |
579d8138 | 19202 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 19203 | else |
579d8138 | 19204 | cat >> confdefs.h <<EOF |
51a9faba VZ |
19205 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
19206 | EOF | |
19207 | ||
3a922bb4 | 19208 | fi |
51a9faba VZ |
19209 | fi |
19210 | fi | |
afc31813 | 19211 | |
51a9faba | 19212 | if test "$wxUSE_SOCKETS" = "yes" ; then |
579d8138 | 19213 | cat >> confdefs.h <<\EOF |
afc31813 VZ |
19214 | #define wxUSE_SOCKETS 1 |
19215 | EOF | |
19216 | ||
70f7a477 | 19217 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
19218 | fi |
19219 | ||
579d8138 | 19220 | |
dc3d889d VZ |
19221 | if test "$wxUSE_GUI" = "yes"; then |
19222 | ||
156b2523 | 19223 | if test "$TOOLKIT" = "MAC"; then |
579d8138 | 19224 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
19225 | wxUSE_JOYSTICK=no |
19226 | fi | |
19227 | if test "$TOOLKIT" = "MOTIF"; then | |
579d8138 | 19228 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 19229 | wxUSE_JOYSTICK=no |
f79bd02d JS |
19230 | fi |
19231 | if test "$TOOLKIT" = "X11"; then | |
579d8138 | 19232 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 19233 | wxUSE_JOYSTICK=no |
156b2523 GD |
19234 | fi |
19235 | ||
3a922bb4 RL |
19236 | if test "$TOOLKIT" != "MSW"; then |
19237 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
579d8138 | 19238 | for ac_hdr in linux/joystick.h |
10f2d63a | 19239 | do |
579d8138 VS |
19240 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19241 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 19242 | echo "configure:19243: checking for $ac_hdr" >&5 |
579d8138 VS |
19243 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19244 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19245 | else | |
19246 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 19247 | #line 19248 "configure" |
10f2d63a | 19248 | #include "confdefs.h" |
579d8138 VS |
19249 | #include <$ac_hdr> |
19250 | EOF | |
19251 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
19252 | { (eval echo configure:19253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19253 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
19254 | if test -z "$ac_err"; then |
19255 | rm -rf conftest* | |
19256 | eval "ac_cv_header_$ac_safe=yes" | |
10f2d63a | 19257 | else |
579d8138 VS |
19258 | echo "$ac_err" >&5 |
19259 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19260 | cat conftest.$ac_ext >&5 |
579d8138 VS |
19261 | rm -rf conftest* |
19262 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19263 | fi |
579d8138 | 19264 | rm -f conftest* |
10f2d63a | 19265 | fi |
579d8138 VS |
19266 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19267 | echo "$ac_t""yes" 1>&6 | |
19268 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19269 | cat >> confdefs.h <<EOF | |
19270 | #define $ac_tr_hdr 1 | |
10f2d63a | 19271 | EOF |
579d8138 VS |
19272 | |
19273 | else | |
19274 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19275 | fi |
19276 | done | |
19277 | ||
3a922bb4 RL |
19278 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
19279 | wxUSE_JOYSTICK=no | |
579d8138 | 19280 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
19281 | fi |
19282 | fi | |
19283 | fi | |
b089607b | 19284 | |
3a922bb4 | 19285 | if test "$wxUSE_JOYSTICK" = "yes"; then |
579d8138 | 19286 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19287 | #define wxUSE_JOYSTICK 1 |
19288 | EOF | |
19289 | ||
3a922bb4 RL |
19290 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
19291 | fi | |
dc3d889d VZ |
19292 | fi |
19293 | ||
579d8138 | 19294 | |
b089607b VZ |
19295 | if test "$TOOLKIT" != "MSW"; then |
19296 | ||
3a922bb4 RL |
19297 | HAVE_DL_FUNCS=0 |
19298 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 19299 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
19300 | if test "$USE_DARWIN" = 1; then |
19301 | HAVE_DL_FUNCS=1 | |
19302 | else | |
579d8138 | 19303 | for ac_func in dlopen |
10f2d63a | 19304 | do |
579d8138 | 19305 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 19306 | echo "configure:19307: checking for $ac_func" >&5 |
579d8138 VS |
19307 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19308 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19309 | else | |
19310 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 19311 | #line 19312 "configure" |
10f2d63a VZ |
19312 | #include "confdefs.h" |
19313 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 19314 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19315 | #include <assert.h> |
19316 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19317 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
19318 | builtin and then its argument prototype would still apply. */ |
19319 | char $ac_func(); | |
19320 | ||
19321 | int main() { | |
10f2d63a VZ |
19322 | |
19323 | /* The GNU C library defines this for functions which it implements | |
19324 | to always fail with ENOSYS. Some functions are actually named | |
19325 | something starting with __ and the normal name is an alias. */ | |
19326 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19327 | choke me | |
19328 | #else | |
579d8138 | 19329 | $ac_func(); |
10f2d63a VZ |
19330 | #endif |
19331 | ||
579d8138 VS |
19332 | ; return 0; } |
19333 | EOF | |
5c0a20c3 | 19334 | if { (eval echo configure:19335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19335 | rm -rf conftest* |
19336 | eval "ac_cv_func_$ac_func=yes" | |
19337 | else | |
19338 | echo "configure: failed program was:" >&5 | |
19339 | cat conftest.$ac_ext >&5 | |
19340 | rm -rf conftest* | |
19341 | eval "ac_cv_func_$ac_func=no" | |
19342 | fi | |
19343 | rm -f conftest* | |
19344 | fi | |
19345 | ||
19346 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19347 | echo "$ac_t""yes" 1>&6 | |
19348 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19349 | cat >> confdefs.h <<EOF | |
19350 | #define $ac_tr_func 1 | |
19351 | EOF | |
19352 | ||
19353 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19354 | #define HAVE_DLOPEN 1 |
19355 | EOF | |
19356 | ||
3a922bb4 | 19357 | HAVE_DL_FUNCS=1 |
579d8138 | 19358 | |
10f2d63a | 19359 | else |
579d8138 VS |
19360 | echo "$ac_t""no" 1>&6 |
19361 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
5c0a20c3 | 19362 | echo "configure:19363: checking for dlopen in -ldl" >&5 |
579d8138 VS |
19363 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
19364 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19365 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 19366 | else |
579d8138 | 19367 | ac_save_LIBS="$LIBS" |
10f2d63a | 19368 | LIBS="-ldl $LIBS" |
579d8138 | 19369 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 19370 | #line 19371 "configure" |
10f2d63a VZ |
19371 | #include "confdefs.h" |
19372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19373 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
19374 | builtin and then its argument prototype would still apply. */ |
19375 | char dlopen(); | |
19376 | ||
19377 | int main() { | |
19378 | dlopen() | |
19379 | ; return 0; } | |
19380 | EOF | |
5c0a20c3 | 19381 | if { (eval echo configure:19382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19382 | rm -rf conftest* |
19383 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19384 | else | |
19385 | echo "configure: failed program was:" >&5 | |
19386 | cat conftest.$ac_ext >&5 | |
19387 | rm -rf conftest* | |
19388 | eval "ac_cv_lib_$ac_lib_var=no" | |
19389 | fi | |
19390 | rm -f conftest* | |
19391 | LIBS="$ac_save_LIBS" | |
19392 | ||
19393 | fi | |
19394 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19395 | echo "$ac_t""yes" 1>&6 | |
19396 | ||
19397 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19398 | #define HAVE_DLOPEN 1 |
19399 | EOF | |
19400 | ||
3a922bb4 | 19401 | HAVE_DL_FUNCS=1 |
3d63bc3a | 19402 | DL_LINK=" -ldl$DL_LINK" |
579d8138 | 19403 | |
10f2d63a | 19404 | else |
579d8138 | 19405 | echo "$ac_t""no" 1>&6 |
10f2d63a | 19406 | |
579d8138 | 19407 | for ac_func in shl_load |
10f2d63a | 19408 | do |
579d8138 | 19409 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 19410 | echo "configure:19411: checking for $ac_func" >&5 |
579d8138 VS |
19411 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19412 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19413 | else | |
19414 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 19415 | #line 19416 "configure" |
10f2d63a VZ |
19416 | #include "confdefs.h" |
19417 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 19418 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
19419 | #include <assert.h> |
19420 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19421 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
19422 | builtin and then its argument prototype would still apply. */ |
19423 | char $ac_func(); | |
19424 | ||
19425 | int main() { | |
10f2d63a VZ |
19426 | |
19427 | /* The GNU C library defines this for functions which it implements | |
19428 | to always fail with ENOSYS. Some functions are actually named | |
19429 | something starting with __ and the normal name is an alias. */ | |
19430 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19431 | choke me | |
19432 | #else | |
579d8138 | 19433 | $ac_func(); |
10f2d63a VZ |
19434 | #endif |
19435 | ||
579d8138 VS |
19436 | ; return 0; } |
19437 | EOF | |
5c0a20c3 | 19438 | if { (eval echo configure:19439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19439 | rm -rf conftest* |
19440 | eval "ac_cv_func_$ac_func=yes" | |
19441 | else | |
19442 | echo "configure: failed program was:" >&5 | |
19443 | cat conftest.$ac_ext >&5 | |
19444 | rm -rf conftest* | |
19445 | eval "ac_cv_func_$ac_func=no" | |
19446 | fi | |
19447 | rm -f conftest* | |
19448 | fi | |
19449 | ||
19450 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19451 | echo "$ac_t""yes" 1>&6 | |
19452 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19453 | cat >> confdefs.h <<EOF | |
19454 | #define $ac_tr_func 1 | |
19455 | EOF | |
19456 | ||
19457 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19458 | #define HAVE_SHL_LOAD 1 |
19459 | EOF | |
19460 | ||
3a922bb4 | 19461 | HAVE_SHL_FUNCS=1 |
579d8138 | 19462 | |
10f2d63a | 19463 | else |
579d8138 VS |
19464 | echo "$ac_t""no" 1>&6 |
19465 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
5c0a20c3 | 19466 | echo "configure:19467: checking for dld in -lshl_load" >&5 |
579d8138 VS |
19467 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
19468 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19469 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19470 | else |
579d8138 | 19471 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19472 | LIBS="-lshl_load $LIBS" |
579d8138 | 19473 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 19474 | #line 19475 "configure" |
f6bcfd97 BP |
19475 | #include "confdefs.h" |
19476 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19477 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
19478 | builtin and then its argument prototype would still apply. */ |
19479 | char dld(); | |
19480 | ||
19481 | int main() { | |
19482 | dld() | |
19483 | ; return 0; } | |
19484 | EOF | |
5c0a20c3 | 19485 | if { (eval echo configure:19486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19486 | rm -rf conftest* |
19487 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19488 | else | |
19489 | echo "configure: failed program was:" >&5 | |
19490 | cat conftest.$ac_ext >&5 | |
19491 | rm -rf conftest* | |
19492 | eval "ac_cv_lib_$ac_lib_var=no" | |
19493 | fi | |
19494 | rm -f conftest* | |
19495 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 19496 | |
579d8138 VS |
19497 | fi |
19498 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19499 | echo "$ac_t""yes" 1>&6 | |
19500 | ||
3a922bb4 | 19501 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 19502 | DL_LINK=" -ldld$DL_LINK" |
579d8138 VS |
19503 | |
19504 | else | |
19505 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19506 | fi |
19507 | ||
579d8138 | 19508 | |
10f2d63a VZ |
19509 | fi |
19510 | done | |
19511 | ||
579d8138 | 19512 | |
10f2d63a VZ |
19513 | fi |
19514 | ||
579d8138 | 19515 | |
10f2d63a VZ |
19516 | fi |
19517 | done | |
19518 | ||
328a083c | 19519 | |
579d8138 VS |
19520 | if test "$HAVE_DL_FUNCS" = 1; then |
19521 | for ac_func in dlerror | |
f6bcfd97 | 19522 | do |
579d8138 | 19523 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5c0a20c3 | 19524 | echo "configure:19525: checking for $ac_func" >&5 |
579d8138 VS |
19525 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19526 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19527 | else | |
19528 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 19529 | #line 19530 "configure" |
f6bcfd97 BP |
19530 | #include "confdefs.h" |
19531 | /* System header to define __stub macros and hopefully few prototypes, | |
579d8138 | 19532 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
19533 | #include <assert.h> |
19534 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19535 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
19536 | builtin and then its argument prototype would still apply. */ |
19537 | char $ac_func(); | |
19538 | ||
19539 | int main() { | |
f6bcfd97 BP |
19540 | |
19541 | /* The GNU C library defines this for functions which it implements | |
19542 | to always fail with ENOSYS. Some functions are actually named | |
19543 | something starting with __ and the normal name is an alias. */ | |
19544 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19545 | choke me | |
19546 | #else | |
579d8138 | 19547 | $ac_func(); |
f6bcfd97 BP |
19548 | #endif |
19549 | ||
579d8138 VS |
19550 | ; return 0; } |
19551 | EOF | |
5c0a20c3 | 19552 | if { (eval echo configure:19553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19553 | rm -rf conftest* |
19554 | eval "ac_cv_func_$ac_func=yes" | |
19555 | else | |
19556 | echo "configure: failed program was:" >&5 | |
19557 | cat conftest.$ac_ext >&5 | |
19558 | rm -rf conftest* | |
19559 | eval "ac_cv_func_$ac_func=no" | |
19560 | fi | |
19561 | rm -f conftest* | |
19562 | fi | |
19563 | ||
19564 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19565 | echo "$ac_t""yes" 1>&6 | |
19566 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19567 | cat >> confdefs.h <<EOF | |
19568 | #define $ac_tr_func 1 | |
19569 | EOF | |
19570 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19571 | #define HAVE_DLERROR 1 |
19572 | EOF | |
19573 | ||
19574 | else | |
579d8138 VS |
19575 | echo "$ac_t""no" 1>&6 |
19576 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
5c0a20c3 | 19577 | echo "configure:19578: checking for dlerror in -ldl" >&5 |
579d8138 VS |
19578 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
19579 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 19581 | else |
579d8138 | 19582 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 19583 | LIBS="-ldl $LIBS" |
579d8138 | 19584 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 19585 | #line 19586 "configure" |
f6bcfd97 BP |
19586 | #include "confdefs.h" |
19587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19588 | /* We use char because int might match the return type of a gcc2 | |
579d8138 VS |
19589 | builtin and then its argument prototype would still apply. */ |
19590 | char dlerror(); | |
19591 | ||
19592 | int main() { | |
19593 | dlerror() | |
19594 | ; return 0; } | |
19595 | EOF | |
5c0a20c3 | 19596 | if { (eval echo configure:19597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19597 | rm -rf conftest* |
19598 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19599 | else | |
19600 | echo "configure: failed program was:" >&5 | |
19601 | cat conftest.$ac_ext >&5 | |
19602 | rm -rf conftest* | |
19603 | eval "ac_cv_lib_$ac_lib_var=no" | |
19604 | fi | |
19605 | rm -f conftest* | |
19606 | LIBS="$ac_save_LIBS" | |
19607 | ||
19608 | fi | |
19609 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19610 | echo "$ac_t""yes" 1>&6 | |
19611 | cat >> confdefs.h <<\EOF | |
f6bcfd97 BP |
19612 | #define HAVE_DLERROR 1 |
19613 | EOF | |
19614 | ||
579d8138 VS |
19615 | else |
19616 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
19617 | fi |
19618 | ||
19619 | fi | |
19620 | done | |
19621 | ||
3a922bb4 RL |
19622 | fi |
19623 | fi | |
f6bcfd97 | 19624 | |
3a922bb4 RL |
19625 | if test "$HAVE_DL_FUNCS" = 0; then |
19626 | if test "$HAVE_SHL_FUNCS" = 0; then | |
19627 | if test "$USE_UNIX" = 1; then | |
579d8138 | 19628 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 19629 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
19630 | wxUSE_DYNLIB_CLASS=no |
19631 | else | |
579d8138 | 19632 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
19633 | fi |
19634 | fi | |
10f2d63a VZ |
19635 | fi |
19636 | fi | |
19637 | fi | |
19638 | ||
0b9ab0bd | 19639 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
579d8138 | 19640 | cat >> confdefs.h <<\EOF |
0b9ab0bd RL |
19641 | #define wxUSE_DYNAMIC_LOADER 1 |
19642 | EOF | |
19643 | ||
19644 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
579d8138 | 19645 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19646 | #define wxUSE_DYNLIB_CLASS 1 |
19647 | EOF | |
19648 | ||
19649 | fi | |
19650 | ||
579d8138 | 19651 | |
1e6feb95 | 19652 | if test "$wxUSE_FONTMAP" = "yes" ; then |
579d8138 | 19653 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
19654 | #define wxUSE_FONTMAP 1 |
19655 | EOF | |
19656 | ||
19657 | fi | |
19658 | ||
10f2d63a | 19659 | if test "$wxUSE_UNICODE" = "yes" ; then |
579d8138 | 19660 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19661 | #define wxUSE_UNICODE 1 |
19662 | EOF | |
19663 | ||
579d8138 | 19664 | |
bbc3925a VS |
19665 | if test "$wxUSE_MSW" != 1; then |
19666 | wxUSE_UNICODE_MSLU=no | |
19667 | fi | |
a72a4bfa VS |
19668 | |
19669 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
579d8138 | 19670 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
5c0a20c3 | 19671 | echo "configure:19672: checking for main in -lunicows" >&5 |
579d8138 VS |
19672 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
19673 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19674 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 19675 | else |
579d8138 | 19676 | ac_save_LIBS="$LIBS" |
a72a4bfa | 19677 | LIBS="-lunicows $LIBS" |
579d8138 | 19678 | cat > conftest.$ac_ext <<EOF |
5c0a20c3 | 19679 | #line 19680 "configure" |
a72a4bfa VS |
19680 | #include "confdefs.h" |
19681 | ||
579d8138 VS |
19682 | int main() { |
19683 | main() | |
19684 | ; return 0; } | |
19685 | EOF | |
5c0a20c3 | 19686 | if { (eval echo configure:19687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
579d8138 VS |
19687 | rm -rf conftest* |
19688 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19689 | else | |
19690 | echo "configure: failed program was:" >&5 | |
19691 | cat conftest.$ac_ext >&5 | |
19692 | rm -rf conftest* | |
19693 | eval "ac_cv_lib_$ac_lib_var=no" | |
19694 | fi | |
19695 | rm -f conftest* | |
19696 | LIBS="$ac_save_LIBS" | |
19697 | ||
19698 | fi | |
19699 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
19700 | echo "$ac_t""yes" 1>&6 | |
19701 | ||
19702 | cat >> confdefs.h <<\EOF | |
a72a4bfa VS |
19703 | #define wxUSE_UNICODE_MSLU 1 |
19704 | EOF | |
19705 | ||
579d8138 | 19706 | |
a72a4bfa | 19707 | else |
579d8138 | 19708 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 19709 | |
579d8138 VS |
19710 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
19711 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 19712 | wxUSE_UNICODE_MSLU=no |
579d8138 | 19713 | |
a72a4bfa VS |
19714 | fi |
19715 | ||
19716 | fi | |
10f2d63a VZ |
19717 | fi |
19718 | ||
10f2d63a | 19719 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
579d8138 | 19720 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19721 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
19722 | EOF | |
19723 | ||
19724 | fi | |
19725 | ||
579d8138 VS |
19726 | |
19727 | ||
10f2d63a VZ |
19728 | IODBC_C_SRC="" |
19729 | if test "$wxUSE_ODBC" = "yes" ; then | |
579d8138 | 19730 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19731 | #define wxUSE_ODBC 1 |
19732 | EOF | |
19733 | ||
19734 | WXODBCFLAG="-D_IODBC_" | |
19735 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
19736 | fi |
19737 | ||
579d8138 | 19738 | |
10f2d63a | 19739 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
579d8138 | 19740 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19741 | #define wxUSE_POSTSCRIPT 1 |
19742 | EOF | |
19743 | ||
19744 | fi | |
19745 | ||
579d8138 | 19746 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19747 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
19748 | EOF | |
19749 | ||
579d8138 VS |
19750 | |
19751 | cat >> confdefs.h <<\EOF | |
10f2d63a VZ |
19752 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
19753 | EOF | |
19754 | ||
579d8138 VS |
19755 | |
19756 | ||
10f2d63a | 19757 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
579d8138 | 19758 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19759 | #define wxUSE_CONSTRAINTS 1 |
19760 | EOF | |
19761 | ||
19762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
19763 | fi | |
19764 | ||
19765 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 19766 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
579d8138 | 19767 | echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2 |
fc26f4ab RL |
19768 | wxUSE_MDI_ARCHITECTURE=no |
19769 | fi | |
19770 | ||
19771 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
579d8138 | 19772 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19773 | #define wxUSE_MDI_ARCHITECTURE 1 |
19774 | EOF | |
19775 | ||
fc26f4ab RL |
19776 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
19777 | fi | |
10f2d63a VZ |
19778 | fi |
19779 | ||
19780 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
579d8138 | 19781 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19782 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
19783 | EOF | |
19784 | ||
19785 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
19786 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
19787 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
19788 | fi | |
19789 | fi | |
19790 | ||
19791 | if test "$wxUSE_HELP" = "yes"; then | |
579d8138 | 19792 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19793 | #define wxUSE_HELP 1 |
19794 | EOF | |
19795 | ||
19796 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 19797 | |
77e13408 | 19798 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 19799 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
579d8138 | 19800 | cat >> confdefs.h <<\EOF |
29fd3c0c VS |
19801 | #define wxUSE_MS_HTML_HELP 1 |
19802 | EOF | |
19803 | ||
3e44f09d | 19804 | fi |
3379ed37 | 19805 | fi |
031d8228 VS |
19806 | |
19807 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
19808 | if test "$wxUSE_HTML" = "yes"; then | |
579d8138 | 19809 | cat >> confdefs.h <<\EOF |
031d8228 VS |
19810 | #define wxUSE_WXHTML_HELP 1 |
19811 | EOF | |
19812 | ||
19813 | else | |
579d8138 | 19814 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
19815 | wxUSE_WXHTML_HELP=no |
19816 | fi | |
19817 | fi | |
10f2d63a VZ |
19818 | fi |
19819 | ||
19820 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
19821 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
579d8138 | 19822 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 19823 | else |
579d8138 | 19824 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19825 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
19826 | EOF | |
19827 | ||
19828 | fi | |
19829 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
19830 | fi | |
19831 | ||
19832 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
579d8138 | 19833 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19834 | #define wxUSE_PROLOGIO 1 |
19835 | EOF | |
19836 | ||
19837 | fi | |
19838 | ||
19839 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 19840 | if test "$wxUSE_NANOX" = "yes"; then |
579d8138 | 19841 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
e334d0ea | 19842 | else |
579d8138 | 19843 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19844 | #define wxUSE_RESOURCES 1 |
19845 | EOF | |
19846 | ||
e334d0ea JS |
19847 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
19848 | fi | |
10f2d63a VZ |
19849 | fi |
19850 | ||
19851 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
579d8138 | 19852 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19853 | #define wxUSE_X_RESOURCES 1 |
19854 | EOF | |
19855 | ||
19856 | fi | |
19857 | ||
579d8138 | 19858 | |
77e13408 RL |
19859 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
19860 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
19861 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
579d8138 | 19862 | for ac_hdr in ole2.h |
10f2d63a | 19863 | do |
579d8138 VS |
19864 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
19865 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
5c0a20c3 | 19866 | echo "configure:19867: checking for $ac_hdr" >&5 |
579d8138 VS |
19867 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
19868 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19869 | else | |
19870 | cat > conftest.$ac_ext <<EOF | |
5c0a20c3 | 19871 | #line 19872 "configure" |
10f2d63a | 19872 | #include "confdefs.h" |
579d8138 VS |
19873 | #include <$ac_hdr> |
19874 | EOF | |
19875 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
5c0a20c3 VZ |
19876 | { (eval echo configure:19877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
19877 | ac_err=`grep -v '^ *+' conftest.out` | |
579d8138 VS |
19878 | if test -z "$ac_err"; then |
19879 | rm -rf conftest* | |
19880 | eval "ac_cv_header_$ac_safe=yes" | |
1e487827 | 19881 | else |
579d8138 VS |
19882 | echo "$ac_err" >&5 |
19883 | echo "configure: failed program was:" >&5 | |
10f2d63a | 19884 | cat conftest.$ac_ext >&5 |
579d8138 VS |
19885 | rm -rf conftest* |
19886 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 19887 | fi |
579d8138 | 19888 | rm -f conftest* |
10f2d63a | 19889 | fi |
579d8138 VS |
19890 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
19891 | echo "$ac_t""yes" 1>&6 | |
19892 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
19893 | cat >> confdefs.h <<EOF | |
19894 | #define $ac_tr_hdr 1 | |
10f2d63a | 19895 | EOF |
579d8138 VS |
19896 | |
19897 | else | |
19898 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
19899 | fi |
19900 | done | |
19901 | ||
579d8138 | 19902 | |
2b9bdf71 VZ |
19903 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
19904 | if test "$GCC" = yes ; then | |
19905 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
2b9bdf71 | 19906 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
3d63bc3a | 19907 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
579d8138 | 19908 | cat >> confdefs.h <<\EOF |
4f11a343 VS |
19909 | #define wxUSE_OLE 1 |
19910 | EOF | |
19911 | ||
579d8138 | 19912 | |
2b9bdf71 VZ |
19913 | fi |
19914 | ||
579d8138 | 19915 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
19916 | #define wxUSE_DATAOBJ 1 |
19917 | EOF | |
19918 | ||
19919 | else | |
579d8138 | 19920 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
19921 | |
19922 | wxUSE_CLIPBOARD=no | |
19923 | wxUSE_DRAG_AND_DROP=no | |
19924 | wxUSE_DATAOBJ=no | |
19925 | fi | |
19926 | ||
77e13408 | 19927 | if test "$wxUSE_METAFILE" = "yes"; then |
579d8138 | 19928 | cat >> confdefs.h <<\EOF |
b64f0a5f RL |
19929 | #define wxUSE_METAFILE 1 |
19930 | EOF | |
19931 | ||
579d8138 VS |
19932 | |
19933 | cat >> confdefs.h <<\EOF | |
b64f0a5f RL |
19934 | #define wxUSE_ENH_METAFILE 1 |
19935 | EOF | |
19936 | ||
2b9bdf71 VZ |
19937 | fi |
19938 | fi | |
19939 | ||
19940 | if test "$wxUSE_IPC" = "yes"; then | |
19941 | if test "$wxUSE_SOCKETS" != "yes"; then | |
579d8138 | 19942 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
19943 | fi |
19944 | ||
579d8138 | 19945 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
19946 | #define wxUSE_IPC 1 |
19947 | EOF | |
19948 | ||
19949 | fi | |
19950 | ||
19951 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 19952 | if test "$wxUSE_MGL" = 1; then |
579d8138 | 19953 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19954 | wxUSE_CLIPBOARD=no |
19955 | fi | |
19956 | ||
19957 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
579d8138 | 19958 | cat >> confdefs.h <<\EOF |
2b9bdf71 VZ |
19959 | #define wxUSE_CLIPBOARD 1 |
19960 | EOF | |
19961 | ||
579d8138 VS |
19962 | |
19963 | cat >> confdefs.h <<\EOF | |
673f4220 VZ |
19964 | #define wxUSE_DATAOBJ 1 |
19965 | EOF | |
19966 | ||
6c657b52 | 19967 | fi |
2b9bdf71 VZ |
19968 | fi |
19969 | ||
19970 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
19971 | if test "$wxUSE_GTK" = 1; then | |
19972 | if test "$WXGTK12" != 1; then | |
579d8138 | 19973 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
19974 | wxUSE_DRAG_AND_DROP=no |
19975 | fi | |
19976 | fi | |
19977 | ||
2b9bdf71 | 19978 | if test "$wxUSE_MOTIF" = 1; then |
579d8138 | 19979 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
19980 | wxUSE_DRAG_AND_DROP=no |
19981 | fi | |
19982 | ||
f79bd02d | 19983 | if test "$wxUSE_X11" = 1; then |
579d8138 | 19984 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
19985 | wxUSE_DRAG_AND_DROP=no |
19986 | fi | |
19987 | ||
6c657b52 | 19988 | if test "$wxUSE_MGL" = 1; then |
579d8138 | 19989 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19990 | wxUSE_DRAG_AND_DROP=no |
19991 | fi | |
19992 | ||
10f2d63a | 19993 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
579d8138 | 19994 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
19995 | #define wxUSE_DRAG_AND_DROP 1 |
19996 | EOF | |
19997 | ||
19998 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
19999 | fi | |
20000 | ||
20001 | fi | |
20002 | ||
20003 | if test "$wxUSE_SPLINES" = "yes" ; then | |
579d8138 | 20004 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20005 | #define wxUSE_SPLINES 1 |
20006 | EOF | |
20007 | ||
20008 | fi | |
20009 | ||
579d8138 | 20010 | |
1e6feb95 VZ |
20011 | USES_CONTROLS=0 |
20012 | if test "$wxUSE_CONTROLS" = "yes"; then | |
20013 | USES_CONTROLS=1 | |
20014 | fi | |
20015 | ||
10f2d63a | 20016 | if test "$wxUSE_ACCEL" = "yes"; then |
579d8138 | 20017 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20018 | #define wxUSE_ACCEL 1 |
20019 | EOF | |
20020 | ||
1e6feb95 VZ |
20021 | USES_CONTROLS=1 |
20022 | fi | |
20023 | ||
20024 | if test "$wxUSE_BUTTON" = "yes"; then | |
579d8138 | 20025 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20026 | #define wxUSE_BUTTON 1 |
20027 | EOF | |
20028 | ||
20029 | USES_CONTROLS=1 | |
20030 | fi | |
20031 | ||
20032 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
579d8138 | 20033 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20034 | #define wxUSE_BMPBUTTON 1 |
20035 | EOF | |
20036 | ||
20037 | USES_CONTROLS=1 | |
20038 | fi | |
20039 | ||
20040 | if test "$wxUSE_CALCTRL" = "yes"; then | |
579d8138 | 20041 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20042 | #define wxUSE_CALENDARCTRL 1 |
20043 | EOF | |
20044 | ||
20045 | USES_CONTROLS=1 | |
20046 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
20047 | fi |
20048 | ||
20049 | if test "$wxUSE_CARET" = "yes"; then | |
579d8138 | 20050 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20051 | #define wxUSE_CARET 1 |
20052 | EOF | |
20053 | ||
1e6feb95 | 20054 | USES_CONTROLS=1 |
10f2d63a VZ |
20055 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
20056 | fi | |
20057 | ||
20058 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
579d8138 | 20059 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20060 | #define wxUSE_COMBOBOX 1 |
20061 | EOF | |
20062 | ||
1e6feb95 | 20063 | USES_CONTROLS=1 |
10f2d63a VZ |
20064 | fi |
20065 | ||
20066 | if test "$wxUSE_CHOICE" = "yes"; then | |
579d8138 | 20067 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20068 | #define wxUSE_CHOICE 1 |
20069 | EOF | |
20070 | ||
1e6feb95 | 20071 | USES_CONTROLS=1 |
10f2d63a VZ |
20072 | fi |
20073 | ||
20074 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
579d8138 | 20075 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20076 | #define wxUSE_CHECKBOX 1 |
20077 | EOF | |
20078 | ||
1e6feb95 | 20079 | USES_CONTROLS=1 |
10f2d63a VZ |
20080 | fi |
20081 | ||
20082 | if test "$wxUSE_CHECKLST" = "yes"; then | |
579d8138 | 20083 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20084 | #define wxUSE_CHECKLISTBOX 1 |
20085 | EOF | |
20086 | ||
1e6feb95 | 20087 | USES_CONTROLS=1 |
10f2d63a VZ |
20088 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
20089 | fi | |
20090 | ||
20091 | if test "$wxUSE_GAUGE" = "yes"; then | |
579d8138 | 20092 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20093 | #define wxUSE_GAUGE 1 |
20094 | EOF | |
20095 | ||
1e6feb95 | 20096 | USES_CONTROLS=1 |
10f2d63a VZ |
20097 | fi |
20098 | ||
d6a55c4b VZ |
20099 | if test "$wxUSE_NEW_GRID" = "yes"; then |
20100 | wxUSE_GRID="yes" | |
579d8138 | 20101 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20102 | #define wxUSE_NEW_GRID 1 |
10f2d63a VZ |
20103 | EOF |
20104 | ||
1e6feb95 | 20105 | USES_CONTROLS=1 |
d6a55c4b | 20106 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
20107 | fi |
20108 | ||
d6a55c4b | 20109 | if test "$wxUSE_GRID" = "yes"; then |
579d8138 | 20110 | cat >> confdefs.h <<\EOF |
d6a55c4b | 20111 | #define wxUSE_GRID 1 |
10f2d63a VZ |
20112 | EOF |
20113 | ||
1e6feb95 | 20114 | USES_CONTROLS=1 |
d6a55c4b | 20115 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
20116 | fi |
20117 | ||
20118 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
579d8138 | 20119 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20120 | #define wxUSE_IMAGLIST 1 |
20121 | EOF | |
20122 | ||
20123 | fi | |
20124 | ||
20125 | if test "$wxUSE_LISTBOX" = "yes"; then | |
579d8138 | 20126 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20127 | #define wxUSE_LISTBOX 1 |
20128 | EOF | |
20129 | ||
1e6feb95 | 20130 | USES_CONTROLS=1 |
10f2d63a VZ |
20131 | fi |
20132 | ||
20133 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
20134 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
579d8138 | 20135 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20136 | #define wxUSE_LISTCTRL 1 |
20137 | EOF | |
20138 | ||
1e6feb95 | 20139 | USES_CONTROLS=1 |
10f2d63a VZ |
20140 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
20141 | else | |
579d8138 | 20142 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20143 | fi |
20144 | fi | |
20145 | ||
20146 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
579d8138 | 20147 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20148 | #define wxUSE_NOTEBOOK 1 |
20149 | EOF | |
20150 | ||
1e6feb95 | 20151 | USES_CONTROLS=1 |
10f2d63a VZ |
20152 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
20153 | fi | |
20154 | ||
24176f2c | 20155 | if test "$wxUSE_PROPSHEET" = "yes"; then |
579d8138 | 20156 | cat >> confdefs.h <<\EOF |
24176f2c GD |
20157 | #define wxUSE_PROPSHEET 1 |
20158 | EOF | |
20159 | ||
20160 | USES_CONTROLS=1 | |
20161 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
20162 | fi | |
20163 | ||
10f2d63a | 20164 | if test "$wxUSE_RADIOBOX" = "yes"; then |
579d8138 | 20165 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20166 | #define wxUSE_RADIOBOX 1 |
20167 | EOF | |
20168 | ||
1e6feb95 | 20169 | USES_CONTROLS=1 |
10f2d63a VZ |
20170 | fi |
20171 | ||
20172 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
579d8138 | 20173 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20174 | #define wxUSE_RADIOBTN 1 |
20175 | EOF | |
20176 | ||
1e6feb95 | 20177 | USES_CONTROLS=1 |
10f2d63a VZ |
20178 | fi |
20179 | ||
20180 | if test "$wxUSE_SASH" = "yes"; then | |
579d8138 | 20181 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20182 | #define wxUSE_SASH 1 |
20183 | EOF | |
20184 | ||
20185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
20186 | fi | |
20187 | ||
20188 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
579d8138 | 20189 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20190 | #define wxUSE_SCROLLBAR 1 |
20191 | EOF | |
20192 | ||
1e6feb95 | 20193 | USES_CONTROLS=1 |
741a9306 | 20194 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
20195 | fi |
20196 | ||
20197 | if test "$wxUSE_SLIDER" = "yes"; then | |
579d8138 | 20198 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20199 | #define wxUSE_SLIDER 1 |
20200 | EOF | |
20201 | ||
1e6feb95 | 20202 | USES_CONTROLS=1 |
10f2d63a VZ |
20203 | fi |
20204 | ||
20205 | if test "$wxUSE_SPINBTN" = "yes"; then | |
579d8138 | 20206 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20207 | #define wxUSE_SPINBTN 1 |
20208 | EOF | |
20209 | ||
1e6feb95 | 20210 | USES_CONTROLS=1 |
10f2d63a VZ |
20211 | fi |
20212 | ||
56cfaa52 | 20213 | if test "$wxUSE_SPINCTRL" = "yes"; then |
579d8138 | 20214 | cat >> confdefs.h <<\EOF |
56cfaa52 RR |
20215 | #define wxUSE_SPINCTRL 1 |
20216 | EOF | |
20217 | ||
1e6feb95 | 20218 | USES_CONTROLS=1 |
56cfaa52 RR |
20219 | fi |
20220 | ||
10f2d63a | 20221 | if test "$wxUSE_SPLITTER" = "yes"; then |
579d8138 | 20222 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20223 | #define wxUSE_SPLITTER 1 |
20224 | EOF | |
20225 | ||
20226 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
20227 | fi | |
20228 | ||
20229 | if test "$wxUSE_STATBMP" = "yes"; then | |
579d8138 | 20230 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20231 | #define wxUSE_STATBMP 1 |
20232 | EOF | |
20233 | ||
1e6feb95 | 20234 | USES_CONTROLS=1 |
10f2d63a VZ |
20235 | fi |
20236 | ||
20237 | if test "$wxUSE_STATBOX" = "yes"; then | |
579d8138 | 20238 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20239 | #define wxUSE_STATBOX 1 |
20240 | EOF | |
20241 | ||
1e6feb95 VZ |
20242 | USES_CONTROLS=1 |
20243 | fi | |
20244 | ||
20245 | if test "$wxUSE_STATTEXT" = "yes"; then | |
579d8138 | 20246 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20247 | #define wxUSE_STATTEXT 1 |
20248 | EOF | |
20249 | ||
20250 | USES_CONTROLS=1 | |
10f2d63a VZ |
20251 | fi |
20252 | ||
20253 | if test "$wxUSE_STATLINE" = "yes"; then | |
20254 | if test "$wxUSE_WINE" = 1 ; then | |
579d8138 | 20255 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 20256 | else |
579d8138 | 20257 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20258 | #define wxUSE_STATLINE 1 |
20259 | EOF | |
20260 | ||
1e6feb95 | 20261 | USES_CONTROLS=1 |
10f2d63a VZ |
20262 | fi |
20263 | fi | |
20264 | ||
20265 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
579d8138 | 20266 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20267 | #define wxUSE_STATUSBAR 1 |
20268 | EOF | |
20269 | ||
1e6feb95 | 20270 | USES_CONTROLS=1 |
698dcdb6 | 20271 | |
2286341c | 20272 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
20273 | fi |
20274 | ||
20275 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
579d8138 | 20276 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20277 | #define wxUSE_TAB_DIALOG 1 |
20278 | EOF | |
20279 | ||
20280 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
20281 | fi | |
20282 | ||
1e6feb95 | 20283 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
579d8138 | 20284 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20285 | #define wxUSE_TEXTCTRL 1 |
20286 | EOF | |
20287 | ||
20288 | USES_CONTROLS=1 | |
20289 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
20290 | fi | |
20291 | ||
1db8dc4a | 20292 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 20293 | if test "$wxUSE_MAC" = 1; then |
579d8138 | 20294 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20295 | wxUSE_TOGGLEBTN=no |
20296 | fi | |
20297 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
579d8138 | 20298 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
20299 | wxUSE_TOGGLEBTN=no |
20300 | fi | |
20301 | ||
20302 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
579d8138 | 20303 | cat >> confdefs.h <<\EOF |
1db8dc4a VZ |
20304 | #define wxUSE_TOGGLEBTN 1 |
20305 | EOF | |
20306 | ||
1e6feb95 | 20307 | USES_CONTROLS=1 |
a45d7ab7 | 20308 | fi |
1db8dc4a VZ |
20309 | fi |
20310 | ||
360d6699 | 20311 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
579d8138 | 20312 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20313 | #define wxUSE_TOOLBAR_SIMPLE 1 |
20314 | EOF | |
20315 | ||
20316 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 20317 | USES_CONTROLS=1 |
360d6699 VZ |
20318 | fi |
20319 | ||
10f2d63a | 20320 | if test "$wxUSE_TOOLBAR" = "yes"; then |
579d8138 | 20321 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20322 | #define wxUSE_TOOLBAR 1 |
20323 | EOF | |
20324 | ||
1e6feb95 | 20325 | USES_CONTROLS=1 |
698dcdb6 | 20326 | |
360d6699 VZ |
20327 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
20328 | wxUSE_TOOLBAR_NATIVE="yes" | |
20329 | fi | |
20330 | ||
1e6feb95 | 20331 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
579d8138 | 20332 | cat >> confdefs.h <<\EOF |
360d6699 VZ |
20333 | #define wxUSE_TOOLBAR_NATIVE 1 |
20334 | EOF | |
20335 | ||
1e6feb95 VZ |
20336 | USES_CONTROLS=1 |
20337 | fi | |
20338 | ||
20339 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
20340 | fi |
20341 | ||
10f2d63a VZ |
20342 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
20343 | if test "$wxUSE_MOTIF" = 1; then | |
579d8138 | 20344 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
20345 | else |
20346 | if test "$wxUSE_WINE" = 1; then | |
579d8138 | 20347 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 20348 | else |
69d27ff7 | 20349 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
579d8138 | 20350 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 20351 | else |
579d8138 | 20352 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20353 | #define wxUSE_TOOLTIPS 1 |
20354 | EOF | |
20355 | ||
69d27ff7 | 20356 | fi |
10f2d63a VZ |
20357 | fi |
20358 | fi | |
20359 | fi | |
20360 | ||
20361 | if test "$wxUSE_TREECTRL" = "yes"; then | |
20362 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
579d8138 | 20363 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20364 | #define wxUSE_TREECTRL 1 |
20365 | EOF | |
20366 | ||
1e6feb95 | 20367 | USES_CONTROLS=1 |
10f2d63a VZ |
20368 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
20369 | else | |
579d8138 | 20370 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
20371 | fi |
20372 | fi | |
20373 | ||
9f41d601 | 20374 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 20375 | if test "$wxUSE_MAC" = 1; then |
579d8138 | 20376 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 20377 | else |
485cf710 | 20378 | if test "$wxUSE_MOTIF" = 1; then |
579d8138 | 20379 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 20380 | else |
3c011993 | 20381 | if test "$wxUSE_PM" = 1; then |
579d8138 | 20382 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20383 | else |
579d8138 | 20384 | cat >> confdefs.h <<\EOF |
9f41d601 RR |
20385 | #define wxUSE_POPUPWIN 1 |
20386 | EOF | |
20387 | ||
579d8138 | 20388 | |
3c011993 VZ |
20389 | USES_CONTROLS=1 |
20390 | fi | |
485cf710 | 20391 | fi |
6abe4b65 | 20392 | fi |
9f41d601 RR |
20393 | fi |
20394 | ||
dd964dcc | 20395 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 20396 | if test "$wxUSE_PM" = 1; then |
579d8138 | 20397 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 20398 | else |
579d8138 | 20399 | cat >> confdefs.h <<\EOF |
dd964dcc VZ |
20400 | #define wxUSE_TIPWINDOW 1 |
20401 | EOF | |
20402 | ||
3c011993 | 20403 | fi |
dd964dcc VZ |
20404 | fi |
20405 | ||
1e6feb95 | 20406 | if test "$USES_CONTROLS" = 1; then |
579d8138 | 20407 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20408 | #define wxUSE_CONTROLS 1 |
10f2d63a VZ |
20409 | EOF |
20410 | ||
10f2d63a VZ |
20411 | fi |
20412 | ||
579d8138 | 20413 | |
24176f2c | 20414 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
579d8138 | 20415 | cat >> confdefs.h <<\EOF |
24176f2c GD |
20416 | #define wxUSE_TREELAYOUT 1 |
20417 | EOF | |
20418 | ||
20419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
20420 | fi | |
1e6feb95 | 20421 | |
24fd6d87 | 20422 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
579d8138 | 20423 | cat >> confdefs.h <<\EOF |
24fd6d87 VZ |
20424 | #define wxUSE_DRAGIMAGE 1 |
20425 | EOF | |
20426 | ||
20427 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
20428 | fi | |
20429 | ||
1e6feb95 | 20430 | if test "$wxUSE_MENUS" = "yes"; then |
579d8138 | 20431 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20432 | #define wxUSE_MENUS 1 |
10f2d63a VZ |
20433 | EOF |
20434 | ||
1e6feb95 | 20435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
20436 | fi |
20437 | ||
1e6feb95 | 20438 | if test "$wxUSE_METAFILE" = "yes"; then |
579d8138 | 20439 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20440 | #define wxUSE_METAFILE 1 |
10f2d63a VZ |
20441 | EOF |
20442 | ||
10f2d63a VZ |
20443 | fi |
20444 | ||
1e6feb95 | 20445 | if test "$wxUSE_MIMETYPE" = "yes"; then |
579d8138 | 20446 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20447 | #define wxUSE_MIMETYPE 1 |
10f2d63a VZ |
20448 | EOF |
20449 | ||
10f2d63a VZ |
20450 | fi |
20451 | ||
3e44f09d | 20452 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
579d8138 | 20453 | cat >> confdefs.h <<\EOF |
3e44f09d VZ |
20454 | #define wxUSE_SYSTEM_OPTIONS 1 |
20455 | EOF | |
20456 | ||
321d2b14 VZ |
20457 | if test "$TOOLKIT" = "MSW"; then |
20458 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
20459 | fi | |
20460 | ||
3e44f09d VZ |
20461 | fi |
20462 | ||
4cdb0ab0 | 20463 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 20464 | if test "$wxUSE_SOCKETS" != "yes"; then |
579d8138 | 20465 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
20466 | wxUSE_PROTOCOL=no |
20467 | fi | |
20468 | ||
20469 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
579d8138 | 20470 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20471 | #define wxUSE_PROTOCOL 1 |
20472 | EOF | |
20473 | ||
579d8138 | 20474 | |
3954f9ca | 20475 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
579d8138 | 20476 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20477 | #define wxUSE_PROTOCOL_HTTP 1 |
20478 | EOF | |
20479 | ||
3954f9ca VS |
20480 | fi |
20481 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
579d8138 | 20482 | cat >> confdefs.h <<\EOF |
4cdb0ab0 VS |
20483 | #define wxUSE_PROTOCOL_FTP 1 |
20484 | EOF | |
20485 | ||
3954f9ca VS |
20486 | fi |
20487 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
579d8138 | 20488 | cat >> confdefs.h <<\EOF |
3954f9ca VS |
20489 | #define wxUSE_PROTOCOL_FILE 1 |
20490 | EOF | |
20491 | ||
20492 | fi | |
4cdb0ab0 | 20493 | fi |
3954f9ca VS |
20494 | fi |
20495 | ||
20496 | if test "$wxUSE_URL" = "yes"; then | |
20497 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
579d8138 | 20498 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
20499 | wxUSE_URL=no |
20500 | fi | |
20501 | if test "$wxUSE_URL" = "yes"; then | |
579d8138 | 20502 | cat >> confdefs.h <<\EOF |
3954f9ca | 20503 | #define wxUSE_URL 1 |
4cdb0ab0 VS |
20504 | EOF |
20505 | ||
20506 | fi | |
20507 | fi | |
20508 | ||
10f2d63a | 20509 | if test "$wxUSE_MINIFRAME" = "yes"; then |
579d8138 | 20510 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20511 | #define wxUSE_MINIFRAME 1 |
20512 | EOF | |
20513 | ||
20514 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
20515 | fi | |
20516 | ||
20517 | if test "$wxUSE_HTML" = "yes"; then | |
579d8138 | 20518 | cat >> confdefs.h <<\EOF |
10f2d63a VZ |
20519 | #define wxUSE_HTML 1 |
20520 | EOF | |
20521 | ||
20522 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
20523 | fi |
20524 | ||
20525 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
579d8138 | 20526 | cat >> confdefs.h <<\EOF |
1e487827 VS |
20527 | #define wxUSE_VALIDATORS 1 |
20528 | EOF | |
703e0a69 | 20529 | |
698dcdb6 VZ |
20530 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
20531 | fi | |
20532 | ||
edae8572 | 20533 | if test "$wxUSE_PALETTE" = "yes" ; then |
579d8138 | 20534 | cat >> confdefs.h <<\EOF |
edae8572 VZ |
20535 | #define wxUSE_PALETTE 1 |
20536 | EOF | |
20537 | ||
20538 | fi | |
20539 | ||
698dcdb6 | 20540 | if test "$wxUSE_IMAGE" = "yes" ; then |
579d8138 | 20541 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20542 | #define wxUSE_IMAGE 1 |
20543 | EOF | |
20544 | ||
20545 | fi | |
20546 | ||
20547 | if test "$wxUSE_GIF" = "yes" ; then | |
579d8138 | 20548 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20549 | #define wxUSE_GIF 1 |
20550 | EOF | |
20551 | ||
20552 | fi | |
20553 | ||
20554 | if test "$wxUSE_PCX" = "yes" ; then | |
579d8138 | 20555 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20556 | #define wxUSE_PCX 1 |
20557 | EOF | |
20558 | ||
20559 | fi | |
20560 | ||
4b6b4dfc | 20561 | if test "$wxUSE_IFF" = "yes" ; then |
579d8138 | 20562 | cat >> confdefs.h <<\EOF |
4b6b4dfc RR |
20563 | #define wxUSE_IFF 1 |
20564 | EOF | |
20565 | ||
20566 | fi | |
20567 | ||
698dcdb6 | 20568 | if test "$wxUSE_PNM" = "yes" ; then |
579d8138 | 20569 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20570 | #define wxUSE_PNM 1 |
20571 | EOF | |
20572 | ||
20573 | fi | |
20574 | ||
20575 | if test "$wxUSE_XPM" = "yes" ; then | |
579d8138 | 20576 | cat >> confdefs.h <<\EOF |
698dcdb6 VZ |
20577 | #define wxUSE_XPM 1 |
20578 | EOF | |
20579 | ||
20580 | fi | |
20581 | ||
658974ae | 20582 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
579d8138 | 20583 | cat >> confdefs.h <<\EOF |
658974ae VS |
20584 | #define wxUSE_ICO_CUR 1 |
20585 | EOF | |
20586 | ||
20587 | fi | |
20588 | ||
a72a4bfa VS |
20589 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
20590 | LIBS=" -lunicows $LIBS" | |
20591 | fi | |
20592 | ||
579d8138 | 20593 | |
1e6feb95 | 20594 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
579d8138 | 20595 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20596 | #define wxUSE_CHOICEDLG 1 |
20597 | EOF | |
20598 | ||
20599 | fi | |
20600 | ||
20601 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
579d8138 | 20602 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20603 | #define wxUSE_COLOURDLG 1 |
20604 | EOF | |
20605 | ||
20606 | fi | |
20607 | ||
20608 | if test "$wxUSE_FILEDLG" = "yes"; then | |
579d8138 | 20609 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20610 | #define wxUSE_FILEDLG 1 |
20611 | EOF | |
20612 | ||
20613 | fi | |
20614 | ||
8db37e06 | 20615 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
579d8138 | 20616 | cat >> confdefs.h <<\EOF |
8db37e06 VZ |
20617 | #define wxUSE_FINDREPLDLG 1 |
20618 | EOF | |
20619 | ||
20620 | fi | |
20621 | ||
1e6feb95 | 20622 | if test "$wxUSE_FONTDLG" = "yes"; then |
579d8138 | 20623 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20624 | #define wxUSE_FONTDLG 1 |
20625 | EOF | |
20626 | ||
20627 | fi | |
20628 | ||
20629 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 20630 | if test "$wxUSE_TREECTRL" != "yes"; then |
579d8138 | 20631 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 20632 | else |
579d8138 | 20633 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20634 | #define wxUSE_DIRDLG 1 |
20635 | EOF | |
20636 | ||
1e6feb95 VZ |
20637 | fi |
20638 | fi | |
20639 | ||
20640 | if test "$wxUSE_MSGDLG" = "yes"; then | |
579d8138 | 20641 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20642 | #define wxUSE_MSGDLG 1 |
20643 | EOF | |
20644 | ||
20645 | fi | |
20646 | ||
20647 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
579d8138 | 20648 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20649 | #define wxUSE_NUMBERDLG 1 |
20650 | EOF | |
20651 | ||
20652 | fi | |
20653 | ||
20654 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
20655 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
579d8138 | 20656 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 20657 | else |
579d8138 | 20658 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20659 | #define wxUSE_PROGRESSDLG 1 |
20660 | EOF | |
20661 | ||
20662 | fi | |
20663 | fi | |
20664 | ||
cbca9943 | 20665 | if test "$wxUSE_SPLASH" = "yes"; then |
579d8138 | 20666 | cat >> confdefs.h <<\EOF |
cbca9943 VZ |
20667 | #define wxUSE_SPLASH 1 |
20668 | EOF | |
20669 | ||
20670 | fi | |
20671 | ||
1e6feb95 VZ |
20672 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
20673 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
579d8138 | 20674 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 20675 | else |
579d8138 | 20676 | cat >> confdefs.h <<\EOF |
1e6feb95 VZ |
20677 | #define wxUSE_STARTUP_TIPS 1 |
20678 | EOF | |
20679 | ||
20680 | fi | |
20681 | fi | |
20682 | ||
579d8138 VS |
20683 | if test "$wxUSE_TEXTDLG" = "yes"; then |
20684 | cat >> confdefs.h <<\EOF | |
20685 | #define wxUSE_TEXTDLG 1 | |
20686 | EOF | |
20687 | ||
20688 | fi | |
20689 | ||
20690 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
20691 | cat >> confdefs.h <<\EOF | |
20692 | #define wxUSE_WIZARDDLG 1 | |
20693 | EOF | |
20694 | ||
20695 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
20696 | fi | |
20697 | ||
20698 | ||
20699 | if test "$cross_compiling" = "yes"; then | |
20700 | OSINFO="\"$host\"" | |
20701 | else | |
20702 | OSINFO=`uname -s -r -m` | |
20703 | OSINFO="\"$OSINFO\"" | |
20704 | fi | |
20705 | ||
20706 | cat >> confdefs.h <<EOF | |
20707 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
20708 | EOF | |
20709 | ||
20710 | ||
20711 | ||
20712 | if test "x$prefix" != "xNONE"; then | |
20713 | wxPREFIX=$prefix | |
20714 | else | |
20715 | wxPREFIX=$ac_default_prefix | |
20716 | fi | |
20717 | ||
20718 | cat >> confdefs.h <<EOF | |
20719 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
20720 | EOF | |
20721 | ||
20722 | ||
20723 | ||
20724 | ||
20725 | ||
20726 | if test "$wxUSE_MAC" = 1 ; then | |
20727 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
20728 | fi | |
20729 | ||
20730 | ||
20731 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS" | |
20732 | ||
20733 | if test "$wxUSE_GUI" = "yes"; then | |
20734 | ||
20735 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
20736 | ||
20737 | ||
20738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
20739 | drawing dynamic erase event exec font image \ | |
20740 | minimal richedit rotate widgets" | |
20741 | ||
20742 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
20743 | else | |
20744 | SAMPLES_SUBDIRS="console" | |
20745 | fi | |
20746 | ||
20747 | ||
20748 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
20749 | -I\${top_srcdir}/include \ | |
20750 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
20751 | $TOOLKIT_INCLUDE" | |
20752 | ||
20753 | if test "$wxUSE_GTK" = 1; then | |
20754 | WXCONFIG_INCLUDE= | |
20755 | else | |
20756 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
20757 | fi | |
20758 | ||
20759 | if test "$GXX" = yes ; then | |
20760 | CXXWARNINGS="-Wall" | |
20761 | ||
20762 | if test "$wxUSE_NO_DEPS" = "no" ; then | |
20763 | CFLAGS="-MMD $CFLAGS" | |
20764 | CXXFLAGS="-MMD $CXXFLAGS" | |
20765 | fi | |
20766 | fi | |
20767 | ||
20768 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES" | |
20769 | ||
20770 | CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
20771 | CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
20772 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
20773 | ||
20774 | LDFLAGS="$LDFLAGS $PROFILE" | |
20775 | ||
20776 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
20777 | ||
20778 | ||
20779 | ||
20780 | ||
20781 | ||
20782 | ||
20783 | ||
20784 | ||
20785 | ||
20786 | ||
20787 | ||
20788 | ||
20789 | ||
20790 | ||
20791 | ||
20792 | ||
20793 | ||
20794 | ||
20795 | ||
20796 | ||
20797 | ||
20798 | ||
20799 | ||
20800 | ||
20801 | ||
20802 | ||
20803 | ||
20804 | ||
20805 | ||
20806 | ||
20807 | ||
20808 | ||
20809 | ||
20810 | ||
20811 | ||
20812 | ||
20813 | ||
20814 | ||
20815 | ||
20816 | ||
20817 | ||
20818 | ||
20819 | ||
20820 | ||
20821 | ||
20822 | ||
20823 | ||
20824 | ||
20825 | ||
20826 | ||
20827 | ||
20828 | ||
20829 | ||
20830 | ||
20831 | ||
20832 | ||
20833 | ||
20834 | ||
20835 | ||
20836 | ||
20837 | ||
20838 | ||
20839 | ||
20840 | ||
20841 | ||
20842 | ||
20843 | ||
20844 | ||
2f51a9ec GD |
20845 | |
20846 | ||
20847 | ||
20848 | ||
f6bcfd97 | 20849 | |
dad6c0ea | 20850 | |
caa2c79b | 20851 | |
3711412e | 20852 | |
1e6feb95 VZ |
20853 | |
20854 | ||
885d4bf5 VS |
20855 | |
20856 | ||
20857 | ||
20858 | ||
9b695262 VZ |
20859 | |
20860 | ||
62d0491b | 20861 | |
ef7f2189 | 20862 | |
40f7145c | 20863 | |
3bd8fb5f | 20864 | |
10f2d63a VZ |
20865 | |
20866 | ||
579d8138 | 20867 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
5c0a20c3 | 20868 | echo "configure:20869: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
579d8138 VS |
20869 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
20870 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
20871 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20872 | else |
579d8138 | 20873 | cat > conftestmake <<\EOF |
10f2d63a VZ |
20874 | all: |
20875 | @echo 'ac_maketemp="${MAKE}"' | |
20876 | EOF | |
20877 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
579d8138 | 20878 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
20879 | if test -n "$ac_maketemp"; then |
20880 | eval ac_cv_prog_make_${ac_make}_set=yes | |
20881 | else | |
20882 | eval ac_cv_prog_make_${ac_make}_set=no | |
20883 | fi | |
579d8138 | 20884 | rm -f conftestmake |
10f2d63a VZ |
20885 | fi |
20886 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
579d8138 | 20887 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
20888 | SET_MAKE= |
20889 | else | |
579d8138 | 20890 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
20891 | SET_MAKE="MAKE=${MAKE-make}" |
20892 | fi | |
20893 | ||
579d8138 | 20894 | |
3a922bb4 RL |
20895 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
20896 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 20897 | fi |
665bbe97 | 20898 | |
579d8138 | 20899 | |
10f2d63a | 20900 | |
57973b9c VZ |
20901 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
20902 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
20903 | wx_cv_path_ifs=$PATH_IFS | |
20904 | wx_cv_program_ext=$PROGRAM_EXT | |
20905 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
20906 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
20907 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
20908 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ | |
20909 | wx_cv_path_ifs wx_cv_program_ext \ | |
20910 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype | |
20911 | ||
579d8138 VS |
20912 | subdirs="demos samples utils contrib" |
20913 | ||
10f2d63a | 20914 | |
579d8138 VS |
20915 | trap '' 1 2 15 |
20916 | cat > confcache <<\EOF | |
10f2d63a VZ |
20917 | # This file is a shell script that caches the results of configure |
20918 | # tests run on this system so they can be shared between configure | |
579d8138 VS |
20919 | # scripts and configure runs. It is not useful on other systems. |
20920 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 20921 | # |
579d8138 VS |
20922 | # By default, configure uses ./config.cache as the cache file, |
20923 | # creating it if it does not exist already. You can give configure | |
20924 | # the --cache-file=FILE option to use a different cache file; that is | |
20925 | # what configure does when it calls configure scripts in | |
20926 | # subdirectories, so they share the cache. | |
20927 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
20928 | # config.status only pays attention to the cache file if you give it the | |
20929 | # --recheck option to rerun configure. | |
10f2d63a | 20930 | # |
579d8138 | 20931 | EOF |
10f2d63a VZ |
20932 | # The following way of writing the cache mishandles newlines in values, |
20933 | # but we know of no workaround that is simple, portable, and efficient. | |
20934 | # So, don't put newlines in cache variables' values. | |
20935 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20936 | # and sets the high bit in the cache file unless we assign to the vars. | |
579d8138 | 20937 | (set) 2>&1 | |
5c0a20c3 | 20938 | case `(ac_space=' '; set) 2>&1` in |
579d8138 VS |
20939 | *ac_space=\ *) |
20940 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
20941 | # turns \\\\ into \\, and sed turns \\ into \). | |
20942 | sed -n \ | |
20943 | -e "s/'/'\\\\''/g" \ | |
20944 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
20945 | ;; | |
20946 | *) | |
20947 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20948 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
20949 | ;; | |
20950 | esac >> confcache | |
20951 | if cmp -s $cache_file confcache; then | |
20952 | : | |
20953 | else | |
10f2d63a | 20954 | if test -w $cache_file; then |
579d8138 VS |
20955 | echo "updating cache $cache_file" |
20956 | cat confcache > $cache_file | |
10f2d63a VZ |
20957 | else |
20958 | echo "not updating unwritable cache $cache_file" | |
20959 | fi | |
20960 | fi | |
20961 | rm -f confcache | |
20962 | ||
579d8138 VS |
20963 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
20964 | ||
10f2d63a VZ |
20965 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
20966 | # Let make expand exec_prefix. | |
20967 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20968 | ||
579d8138 VS |
20969 | # Any assignment to VPATH causes Sun make to only execute |
20970 | # the first set of double-colon rules, so remove it if not needed. | |
20971 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 20972 | if test "x$srcdir" = x.; then |
579d8138 | 20973 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
20974 | fi |
20975 | ||
579d8138 VS |
20976 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
20977 | ||
10f2d63a VZ |
20978 | DEFS=-DHAVE_CONFIG_H |
20979 | ||
579d8138 | 20980 | # Without the "./", some shells look in PATH for config.status. |
10f2d63a | 20981 | : ${CONFIG_STATUS=./config.status} |
579d8138 VS |
20982 | |
20983 | echo creating $CONFIG_STATUS | |
20984 | rm -f $CONFIG_STATUS | |
20985 | cat > $CONFIG_STATUS <<EOF | |
20986 | #! /bin/sh | |
10f2d63a VZ |
20987 | # Generated automatically by configure. |
20988 | # Run this file to recreate the current configuration. | |
579d8138 VS |
20989 | # This directory was configured as follows, |
20990 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
328a083c | 20991 | # |
579d8138 | 20992 | # $0 $ac_configure_args |
328a083c | 20993 | # |
579d8138 VS |
20994 | # Compiler output produced by configure, useful for debugging |
20995 | # configure, is in ./config.log if it exists. | |
698dcdb6 | 20996 | |
579d8138 VS |
20997 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
20998 | for ac_option | |
328a083c | 20999 | do |
579d8138 VS |
21000 | case "\$ac_option" in |
21001 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21002 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
21003 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
21004 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
5c0a20c3 | 21005 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
579d8138 VS |
21006 | exit 0 ;; |
21007 | -help | --help | --hel | --he | --h) | |
21008 | echo "\$ac_cs_usage"; exit 0 ;; | |
21009 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
328a083c | 21010 | esac |
698dcdb6 | 21011 | done |
328a083c | 21012 | |
579d8138 VS |
21013 | ac_given_srcdir=$srcdir |
21014 | ac_given_INSTALL="$INSTALL" | |
328a083c | 21015 | |
579d8138 VS |
21016 | trap 'rm -fr `echo " |
21017 | wx-config | |
21018 | src/make.env | |
21019 | src/makeprog.env | |
21020 | src/makelib.env | |
21021 | Makefile | |
21022 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
328a083c | 21023 | EOF |
579d8138 | 21024 | cat >> $CONFIG_STATUS <<EOF |
328a083c | 21025 | |
579d8138 VS |
21026 | # Protect against being on the right side of a sed subst in config.status. |
21027 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
21028 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
21029 | $ac_vpsub | |
21030 | $extrasub | |
579d8138 VS |
21031 | s%@CFLAGS@%$CFLAGS%g |
21032 | s%@CPPFLAGS@%$CPPFLAGS%g | |
21033 | s%@CXXFLAGS@%$CXXFLAGS%g | |
579d8138 VS |
21034 | s%@DEFS@%$DEFS%g |
21035 | s%@LDFLAGS@%$LDFLAGS%g | |
21036 | s%@LIBS@%$LIBS%g | |
21037 | s%@exec_prefix@%$exec_prefix%g | |
21038 | s%@prefix@%$prefix%g | |
21039 | s%@program_transform_name@%$program_transform_name%g | |
21040 | s%@bindir@%$bindir%g | |
21041 | s%@sbindir@%$sbindir%g | |
21042 | s%@libexecdir@%$libexecdir%g | |
21043 | s%@datadir@%$datadir%g | |
21044 | s%@sysconfdir@%$sysconfdir%g | |
21045 | s%@sharedstatedir@%$sharedstatedir%g | |
21046 | s%@localstatedir@%$localstatedir%g | |
21047 | s%@libdir@%$libdir%g | |
21048 | s%@includedir@%$includedir%g | |
21049 | s%@oldincludedir@%$oldincludedir%g | |
21050 | s%@infodir@%$infodir%g | |
21051 | s%@mandir@%$mandir%g | |
21052 | s%@host@%$host%g | |
21053 | s%@host_alias@%$host_alias%g | |
21054 | s%@host_cpu@%$host_cpu%g | |
21055 | s%@host_vendor@%$host_vendor%g | |
21056 | s%@host_os@%$host_os%g | |
21057 | s%@target@%$target%g | |
21058 | s%@target_alias@%$target_alias%g | |
21059 | s%@target_cpu@%$target_cpu%g | |
21060 | s%@target_vendor@%$target_vendor%g | |
21061 | s%@target_os@%$target_os%g | |
21062 | s%@build@%$build%g | |
21063 | s%@build_alias@%$build_alias%g | |
21064 | s%@build_cpu@%$build_cpu%g | |
21065 | s%@build_vendor@%$build_vendor%g | |
21066 | s%@build_os@%$build_os%g | |
21067 | s%@CC@%$CC%g | |
21068 | s%@CPP@%$CPP%g | |
21069 | s%@CXX@%$CXX%g | |
21070 | s%@RANLIB@%$RANLIB%g | |
21071 | s%@AR@%$AR%g | |
21072 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
579d8138 VS |
21073 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
21074 | s%@STRIP@%$STRIP%g | |
21075 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
21076 | s%@YACC@%$YACC%g | |
21077 | s%@LEX@%$LEX%g | |
21078 | s%@LEXLIB@%$LEXLIB%g | |
21079 | s%@LN_S@%$LN_S%g | |
21080 | s%@CXXCPP@%$CXXCPP%g | |
21081 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
21082 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
21083 | s%@GTK_LIBS@%$GTK_LIBS%g | |
21084 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
21085 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
21086 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
21087 | s%@X_CFLAGS@%$X_CFLAGS%g | |
21088 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
21089 | s%@X_LIBS@%$X_LIBS%g | |
21090 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
21091 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g | |
21092 | s%@RESCOMP@%$RESCOMP%g | |
21093 | s%@DEREZ@%$DEREZ%g | |
21094 | s%@LIBICONV@%$LIBICONV%g | |
21095 | s%@LEX_STEM@%$LEX_STEM%g | |
21096 | s%@PATH_IFS@%$PATH_IFS%g | |
21097 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
21098 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
21099 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
21100 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
21101 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
21102 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g | |
21103 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
21104 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
21105 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
21106 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
21107 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
21108 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
21109 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
21110 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
21111 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
21112 | s%@WX_ALL@%$WX_ALL%g | |
21113 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
21114 | s%@SHARED_LD@%$SHARED_LD%g | |
21115 | s%@PIC_FLAG@%$PIC_FLAG%g | |
21116 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
21117 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
21118 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
21119 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
21120 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
21121 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
21122 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g | |
21123 | s%@USE_GUI@%$USE_GUI%g | |
21124 | s%@AFMINSTALL@%$AFMINSTALL%g | |
21125 | s%@TOOLKIT@%$TOOLKIT%g | |
21126 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
21127 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
21128 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
21129 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
21130 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
21131 | s%@cross_compiling@%$cross_compiling%g | |
21132 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
21133 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
21134 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
21135 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
21136 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
21137 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
21138 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g | |
21139 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
21140 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
21141 | s%@GUIDIST@%$GUIDIST%g | |
21142 | s%@PORT_FILES@%$PORT_FILES%g | |
21143 | s%@DISTDIR@%$DISTDIR%g | |
21144 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g | |
21145 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
21146 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g | |
21147 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
21148 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
21149 | s%@EXTRADEFS@%$EXTRADEFS%g | |
21150 | s%@RESFLAGS@%$RESFLAGS%g | |
21151 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
21152 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
21153 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
21154 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
21155 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
21156 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
21157 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
21158 | s%@DLLTOOL@%$DLLTOOL%g | |
21159 | s%@AS@%$AS%g | |
21160 | s%@NM@%$NM%g | |
21161 | s%@LD@%$LD%g | |
21162 | s%@MAKEINFO@%$MAKEINFO%g | |
21163 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
21164 | s%@SET_MAKE@%$SET_MAKE%g | |
21165 | s%@subdirs@%$subdirs%g | |
328a083c | 21166 | |
328a083c | 21167 | CEOF |
698dcdb6 | 21168 | EOF |
10f2d63a | 21169 | |
579d8138 VS |
21170 | cat >> $CONFIG_STATUS <<\EOF |
21171 | ||
21172 | # Split the substitutions into bite-sized pieces for seds with | |
21173 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21174 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
21175 | ac_file=1 # Number of current file. | |
21176 | ac_beg=1 # First line for current file. | |
21177 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
21178 | ac_more_lines=: | |
21179 | ac_sed_cmds="" | |
21180 | while $ac_more_lines; do | |
21181 | if test $ac_beg -gt 1; then | |
21182 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
21183 | else | |
21184 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
21185 | fi | |
21186 | if test ! -s conftest.s$ac_file; then | |
21187 | ac_more_lines=false | |
21188 | rm -f conftest.s$ac_file | |
21189 | else | |
21190 | if test -z "$ac_sed_cmds"; then | |
21191 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
328a083c | 21192 | else |
579d8138 | 21193 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
328a083c | 21194 | fi |
579d8138 VS |
21195 | ac_file=`expr $ac_file + 1` |
21196 | ac_beg=$ac_end | |
21197 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
328a083c | 21198 | fi |
579d8138 VS |
21199 | done |
21200 | if test -z "$ac_sed_cmds"; then | |
21201 | ac_sed_cmds=cat | |
21202 | fi | |
21203 | EOF | |
21204 | ||
21205 | cat >> $CONFIG_STATUS <<EOF | |
698dcdb6 | 21206 | |
579d8138 VS |
21207 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
21208 | src/make.env | |
21209 | src/makeprog.env | |
21210 | src/makelib.env | |
21211 | Makefile | |
21212 | "} | |
10f2d63a | 21213 | EOF |
579d8138 VS |
21214 | cat >> $CONFIG_STATUS <<\EOF |
21215 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
10f2d63a | 21216 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
579d8138 VS |
21217 | case "$ac_file" in |
21218 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21219 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21220 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21221 | esac |
21222 | ||
579d8138 | 21223 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
328a083c | 21224 | |
579d8138 VS |
21225 | # Remove last slash and all that follows it. Not all systems have dirname. |
21226 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
21227 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
21228 | # The file is in a subdirectory. | |
21229 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
21230 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
10f2d63a | 21231 | # A "../" for each directory in $ac_dir_suffix. |
579d8138 | 21232 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
10f2d63a VZ |
21233 | else |
21234 | ac_dir_suffix= ac_dots= | |
21235 | fi | |
21236 | ||
579d8138 VS |
21237 | case "$ac_given_srcdir" in |
21238 | .) srcdir=. | |
21239 | if test -z "$ac_dots"; then top_srcdir=. | |
21240 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
21241 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
10f2d63a | 21242 | *) # Relative path. |
579d8138 VS |
21243 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
21244 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
10f2d63a VZ |
21245 | esac |
21246 | ||
579d8138 VS |
21247 | case "$ac_given_INSTALL" in |
21248 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21249 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
10f2d63a VZ |
21250 | esac |
21251 | ||
579d8138 VS |
21252 | echo creating "$ac_file" |
21253 | rm -f "$ac_file" | |
21254 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
21255 | case "$ac_file" in | |
21256 | *Makefile*) ac_comsub="1i\\ | |
21257 | # $configure_input" ;; | |
21258 | *) ac_comsub= ;; | |
21259 | esac | |
10f2d63a | 21260 | |
579d8138 VS |
21261 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
21262 | sed -e "$ac_comsub | |
21263 | s%@configure_input@%$configure_input%g | |
21264 | s%@srcdir@%$srcdir%g | |
21265 | s%@top_srcdir@%$top_srcdir%g | |
21266 | s%@INSTALL@%$INSTALL%g | |
21267 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
21268 | fi; done | |
21269 | rm -f conftest.s* | |
10f2d63a VZ |
21270 | |
21271 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21272 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21273 | # | |
21274 | # ac_d sets the value in "#define NAME VALUE" lines. | |
579d8138 VS |
21275 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21276 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
21277 | ac_dC='\3' | |
21278 | ac_dD='%g' | |
21279 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
21280 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21281 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 21282 | ac_uC=' ' |
579d8138 VS |
21283 | ac_uD='\4%g' |
21284 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21285 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21286 | ac_eB='$%\1#\2define\3' | |
21287 | ac_eC=' ' | |
21288 | ac_eD='%g' | |
10f2d63a | 21289 | |
579d8138 VS |
21290 | if test "${CONFIG_HEADERS+set}" != set; then |
21291 | EOF | |
21292 | cat >> $CONFIG_STATUS <<EOF | |
21293 | CONFIG_HEADERS="setup.h:setup.h.in" | |
21294 | EOF | |
21295 | cat >> $CONFIG_STATUS <<\EOF | |
21296 | fi | |
21297 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 21298 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
579d8138 VS |
21299 | case "$ac_file" in |
21300 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
21301 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
21302 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
21303 | esac |
21304 | ||
579d8138 VS |
21305 | echo creating $ac_file |
21306 | ||
21307 | rm -f conftest.frag conftest.in conftest.out | |
21308 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
21309 | cat $ac_file_inputs > conftest.in | |
21310 | ||
21311 | EOF | |
21312 | ||
21313 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
21314 | # the proper values into config.h.in to produce config.h. And first: | |
21315 | # Protect against being on the right side of a sed subst in config.status. | |
21316 | # Protect against being in an unquoted here document in config.status. | |
21317 | rm -f conftest.vals | |
21318 | cat > conftest.hdr <<\EOF | |
21319 | s/[\\&%]/\\&/g | |
21320 | s%[\\$`]%\\&%g | |
21321 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
21322 | s%ac_d%ac_u%gp | |
21323 | s%ac_u%ac_e%gp | |
21324 | EOF | |
21325 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
21326 | rm -f conftest.hdr | |
10f2d63a VZ |
21327 | |
21328 | # This sed command replaces #undef with comments. This is necessary, for | |
21329 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21330 | # on some systems where configure will not decide to define it. | |
579d8138 VS |
21331 | cat >> conftest.vals <<\EOF |
21332 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
10f2d63a VZ |
21333 | EOF |
21334 | ||
579d8138 VS |
21335 | # Break up conftest.vals because some shells have a limit on |
21336 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
21337 | |
21338 | rm -f conftest.tail | |
579d8138 | 21339 | while : |
10f2d63a | 21340 | do |
579d8138 VS |
21341 | ac_lines=`grep -c . conftest.vals` |
21342 | # grep -c gives empty output for an empty file on some AIX systems. | |
21343 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
21344 | # Write a limited-size here document to conftest.frag. | |
21345 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
21346 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 21347 | echo 'CEOF |
579d8138 VS |
21348 | sed -f conftest.frag conftest.in > conftest.out |
21349 | rm -f conftest.in | |
21350 | mv conftest.out conftest.in | |
21351 | ' >> $CONFIG_STATUS | |
21352 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
21353 | rm -f conftest.vals | |
21354 | mv conftest.tail conftest.vals | |
10f2d63a | 21355 | done |
579d8138 VS |
21356 | rm -f conftest.vals |
21357 | ||
21358 | cat >> $CONFIG_STATUS <<\EOF | |
21359 | rm -f conftest.frag conftest.h | |
21360 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
21361 | cat conftest.in >> conftest.h | |
21362 | rm -f conftest.in | |
21363 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
21364 | echo "$ac_file is unchanged" | |
21365 | rm -f conftest.h | |
10f2d63a | 21366 | else |
579d8138 VS |
21367 | # Remove last slash and all that follows it. Not all systems have dirname. |
21368 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
10f2d63a | 21369 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
579d8138 VS |
21370 | # The file is in a subdirectory. |
21371 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
10f2d63a | 21372 | fi |
579d8138 VS |
21373 | rm -f $ac_file |
21374 | mv conftest.h $ac_file | |
10f2d63a | 21375 | fi |
579d8138 VS |
21376 | fi; done |
21377 | ||
10f2d63a | 21378 | EOF |
579d8138 | 21379 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 21380 | |
579d8138 VS |
21381 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
21382 | LN_S="${LN_S}" | |
21383 | ||
21384 | ||
21385 | EOF | |
21386 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 21387 | |
652d930d | 21388 | if test ! -h wx-config; then |
991a5759 | 21389 | chmod +x wx-config |
3a922bb4 RL |
21390 | mv wx-config wx${TOOLCHAIN_NAME}-config |
21391 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 21392 | fi |
665bbe97 | 21393 | |
00cf1208 RR |
21394 | if test ! -d lib; then |
21395 | mkdir lib | |
21396 | fi | |
21397 | if test ! -d lib/wx; then | |
21398 | mkdir lib/wx | |
21399 | fi | |
21400 | if test ! -d lib/wx/include; then | |
21401 | mkdir lib/wx/include | |
21402 | fi | |
3a922bb4 RL |
21403 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
21404 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 21405 | fi |
3a922bb4 RL |
21406 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
21407 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
21408 | fi |
21409 | if test -f setup.h; then | |
3a922bb4 | 21410 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 21411 | fi |
579d8138 VS |
21412 | |
21413 | exit 0 | |
10f2d63a VZ |
21414 | EOF |
21415 | chmod +x $CONFIG_STATUS | |
579d8138 VS |
21416 | rm -fr confdefs* $ac_clean_files |
21417 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 21418 | |
2224580a VZ |
21419 | if test "$no_recursion" != yes; then |
21420 | ||
21421 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
21422 | ac_sub_configure_args= | |
21423 | ac_prev= | |
21424 | for ac_arg in $ac_configure_args; do | |
21425 | if test -n "$ac_prev"; then | |
21426 | ac_prev= | |
21427 | continue | |
21428 | fi | |
579d8138 | 21429 | case "$ac_arg" in |
2224580a VZ |
21430 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
21431 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21432 | ac_prev=cache_file ;; | |
21433 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
579d8138 | 21434 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
21435 | ;; |
21436 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21437 | ac_prev=srcdir ;; | |
21438 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21439 | ;; | |
21440 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
21441 | esac | |
21442 | done | |
21443 | ||
579d8138 | 21444 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
21445 | |
21446 | # Do not complain, so a configure script can configure whichever | |
21447 | # parts of a large source tree are present. | |
579d8138 VS |
21448 | if test ! -d $srcdir/$ac_config_dir; then |
21449 | continue | |
21450 | fi | |
21451 | ||
21452 | echo configuring in $ac_config_dir | |
2224580a | 21453 | |
579d8138 | 21454 | case "$srcdir" in |
2224580a VZ |
21455 | .) ;; |
21456 | *) | |
579d8138 VS |
21457 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
21458 | else | |
21459 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
21460 | fi | |
21461 | ;; | |
2224580a VZ |
21462 | esac |
21463 | ||
21464 | ac_popdir=`pwd` | |
579d8138 | 21465 | cd $ac_config_dir |
2224580a | 21466 | |
579d8138 VS |
21467 | # A "../" for each directory in /$ac_config_dir. |
21468 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
2224580a | 21469 | |
579d8138 | 21470 | case "$srcdir" in |
2224580a VZ |
21471 | .) # No --srcdir option. We are building in place. |
21472 | ac_sub_srcdir=$srcdir ;; | |
579d8138 VS |
21473 | /*) # Absolute path. |
21474 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
2224580a | 21475 | *) # Relative path. |
579d8138 | 21476 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
2224580a VZ |
21477 | esac |
21478 | ||
21479 | # Check for guested configure; otherwise get Cygnus style configure. | |
579d8138 VS |
21480 | if test -f $ac_sub_srcdir/configure; then |
21481 | ac_sub_configure=$ac_sub_srcdir/configure | |
2224580a VZ |
21482 | elif test -f $ac_sub_srcdir/configure.in; then |
21483 | ac_sub_configure=$ac_configure | |
21484 | else | |
579d8138 | 21485 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
21486 | ac_sub_configure= |
21487 | fi | |
21488 | ||
21489 | # The recursion is here. | |
21490 | if test -n "$ac_sub_configure"; then | |
579d8138 | 21491 | |
2224580a | 21492 | # Make the cache file name correct relative to the subdirectory. |
579d8138 VS |
21493 | case "$cache_file" in |
21494 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 21495 | *) # Relative path. |
579d8138 | 21496 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 21497 | esac |
579d8138 VS |
21498 | case "$ac_given_INSTALL" in |
21499 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
21500 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
21501 | esac | |
2224580a | 21502 | |
579d8138 | 21503 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 21504 | # The eval makes quoting arguments work. |
579d8138 VS |
21505 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
21506 | then : | |
21507 | else | |
21508 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
21509 | fi | |
2224580a VZ |
21510 | fi |
21511 | ||
21512 | cd $ac_popdir | |
21513 | done | |
21514 | fi | |
21515 | ||
579d8138 | 21516 |