]>
Commit | Line | Data |
---|---|---|
10f2d63a VZ |
1 | #! /bin/sh |
2 | ||
a0b9e27f MB |
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 | ||
52127426 | 25 | |
52127426 | 26 | |
8284b0c5 MB |
27 | |
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | ||
34 | ||
35 | ||
8284b0c5 MB |
36 | |
37 | ||
38 | ||
39 | ||
40 | ||
41 | ||
42 | ||
43 | ||
8284b0c5 MB |
44 | |
45 | ||
46 | ||
247f5006 | 47 | |
247f5006 | 48 | |
a0b9e27f MB |
49 | |
50 | ||
51 | ||
52 | ||
53 | ||
54 | ||
2b5f62a0 VZ |
55 | |
56 | ||
57 | ||
a0b9e27f MB |
58 | |
59 | ||
60 | ||
61 | ||
62 | # Configure paths for GTK+ | |
63 | # Owen Taylor 1997-2001 | |
64 | ||
65 | ||
66 | ||
2b5f62a0 VZ |
67 | # Configure paths for GTK+ |
68 | # Owen Taylor 97-11-3 | |
a0b9e27f MB |
69 | |
70 | ||
71 | ||
72 | ||
73 | ||
a0b9e27f MB |
74 | |
75 | ||
76 | ||
77 | # Guess values for system-dependent variables and create Makefiles. | |
78 | # Generated automatically using autoconf version 2.13 | |
79 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
80 | # | |
81 | # This configure script is free software; the Free Software Foundation | |
82 | # gives unlimited permission to copy, distribute and modify it. | |
83 | ||
84 | # Defaults: | |
85 | ac_help= | |
86 | ac_default_prefix=/usr/local | |
87 | # Any additions from configure.in: | |
88 | ac_help="$ac_help | |
89 | --enable-gui use GUI classes" | |
90 | ac_help="$ac_help | |
91 | --enable-universal use wxWindows GUI controls instead of native ones" | |
92 | ac_help="$ac_help | |
93 | --with-gtk use GTK+" | |
94 | ac_help="$ac_help | |
95 | --with-motif use Motif/Lesstif" | |
96 | ac_help="$ac_help | |
97 | --with-mac use Mac OS X" | |
98 | ac_help="$ac_help | |
99 | --with-wine use WINE" | |
100 | ac_help="$ac_help | |
101 | --with-msw use MS-Windows" | |
102 | ac_help="$ac_help | |
103 | --with-pm use OS/2 Presentation Manager" | |
104 | ac_help="$ac_help | |
105 | --with-mgl use SciTech MGL" | |
106 | ac_help="$ac_help | |
107 | --with-microwin use MicroWindows" | |
108 | ac_help="$ac_help | |
109 | --with-x11 use X11" | |
110 | ac_help="$ac_help | |
111 | --enable-nanox use NanoX" | |
112 | ac_help="$ac_help | |
113 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)" | |
114 | ac_help="$ac_help | |
115 | --with-libpng use libpng (PNG image format)" | |
116 | ac_help="$ac_help | |
117 | --with-libjpeg use libjpeg (JPEG file format)" | |
118 | ac_help="$ac_help | |
119 | --with-libtiff use libtiff (TIFF file format)" | |
120 | ac_help="$ac_help | |
121 | --with-opengl use OpenGL (or Mesa)" | |
122 | ac_help="$ac_help | |
123 | --with-dmalloc use dmalloc library (http://dmalloc.com/)" | |
124 | ac_help="$ac_help | |
125 | --with-regex enable support for wxRegEx class" | |
126 | ac_help="$ac_help | |
127 | --with-zlib use zlib for LZW compression" | |
128 | ac_help="$ac_help | |
129 | --with-odbc use the IODBC and wxODBC classes" | |
130 | ac_help="$ac_help | |
131 | --enable-shared create shared library code" | |
132 | ac_help="$ac_help | |
133 | --enable-soname set the DT_SONAME field in ELF shared libraries" | |
134 | ac_help="$ac_help | |
135 | --enable-optimise create optimised code" | |
136 | ac_help="$ac_help | |
137 | --enable-debug same as debug_flag and debug_info" | |
138 | ac_help="$ac_help | |
b2fee376 | 139 | --enable-precomp enable use of precompiled headers (Mac OS X/Darwin)" |
a0b9e27f MB |
140 | ac_help="$ac_help |
141 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)" | |
142 | ac_help="$ac_help | |
143 | --enable-debug_info create code with debugging information" | |
144 | ac_help="$ac_help | |
145 | --enable-debug_gdb create code with extra GDB debugging information" | |
146 | ac_help="$ac_help | |
147 | --enable-debug_cntxt use wxDebugContext" | |
148 | ac_help="$ac_help | |
149 | --enable-mem_tracing create code with memory tracing" | |
150 | ac_help="$ac_help | |
151 | --enable-profile create code with profiling information" | |
152 | ac_help="$ac_help | |
153 | --enable-no_rtti create code without RTTI information" | |
154 | ac_help="$ac_help | |
155 | --enable-no_exceptions create code without C++ exceptions handling" | |
156 | ac_help="$ac_help | |
157 | --enable-permissive compile code disregarding strict ANSI" | |
158 | ac_help="$ac_help | |
159 | --enable-no_deps create code without dependency information" | |
160 | ac_help="$ac_help | |
161 | --enable-compat20 enable wxWindows 2.0 compatibility" | |
162 | ac_help="$ac_help | |
163 | --disable-compat22 disable wxWindows 2.2 compatibility" | |
164 | ac_help="$ac_help | |
165 | --enable-rpath=DIR output the rpath flag from wx-config" | |
166 | ac_help="$ac_help | |
167 | --enable-intl use internationalization system" | |
168 | ac_help="$ac_help | |
169 | --enable-config use wxConfig (and derived) classes" | |
170 | ac_help="$ac_help | |
171 | --enable-protocols use wxProtocol and derived classes" | |
172 | ac_help="$ac_help | |
173 | --enable-ftp use wxFTP (requires wxProtocol" | |
174 | ac_help="$ac_help | |
175 | --enable-http use wxHTTP (requires wxProtocol" | |
176 | ac_help="$ac_help | |
177 | --enable-fileproto use wxFileProto class (requires wxProtocol" | |
178 | ac_help="$ac_help | |
179 | --enable-sockets use socket/network classes" | |
3bce6687 JS |
180 | ac_help="$ac_help |
181 | --enable-ole use OLE classes" | |
182 | ac_help="$ac_help | |
183 | --enable-dataobj use data object classes" | |
a0b9e27f MB |
184 | ac_help="$ac_help |
185 | --enable-ipc use interprocess communication (wxSocket etc.)" | |
186 | ac_help="$ac_help | |
187 | --enable-cmdline use wxCmdLineParser class" | |
188 | ac_help="$ac_help | |
189 | --enable-datetime use wxDateTime class" | |
190 | ac_help="$ac_help | |
191 | --enable-timedate use obsolete wxDate/wxTime classes" | |
192 | ac_help="$ac_help | |
193 | --enable-stopwatch use wxStopWatch class" | |
194 | ac_help="$ac_help | |
195 | --enable-dialupman use dialup network classes" | |
196 | ac_help="$ac_help | |
197 | --enable-apple_ieee use the Apple IEEE codec" | |
198 | ac_help="$ac_help | |
199 | --enable-timer use wxTimer class" | |
200 | ac_help="$ac_help | |
201 | --enable-wave use wxWave class" | |
202 | ac_help="$ac_help | |
203 | --enable-fraction use wxFraction class" | |
204 | ac_help="$ac_help | |
205 | --enable-dynlib use wxLibrary class for DLL loading" | |
206 | ac_help="$ac_help | |
207 | --enable-dynamicloader use (new) wxDynamicLibrary class" | |
208 | ac_help="$ac_help | |
209 | --enable-longlong use wxLongLong class" | |
210 | ac_help="$ac_help | |
211 | --enable-geometry use geometry class" | |
212 | ac_help="$ac_help | |
213 | --enable-log use logging system" | |
214 | ac_help="$ac_help | |
215 | --enable-streams use wxStream etc classes" | |
216 | ac_help="$ac_help | |
217 | --enable-file use wxFile classes" | |
218 | ac_help="$ac_help | |
219 | --enable-ffile use wxFFile classes" | |
220 | ac_help="$ac_help | |
221 | --enable-textbuf use wxTextBuffer class" | |
222 | ac_help="$ac_help | |
223 | --enable-textfile use wxTextFile class" | |
224 | ac_help="$ac_help | |
225 | --enable-fontmap use font encodings conversion classes" | |
226 | ac_help="$ac_help | |
227 | --enable-unicode compile wxString with Unicode support" | |
228 | ac_help="$ac_help | |
229 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)" | |
230 | ac_help="$ac_help | |
231 | --enable-wxprintfv use wxWindows implementation of vprintf()" | |
232 | ac_help="$ac_help | |
233 | --enable-std_iostreams use standard C++ stream classes" | |
234 | ac_help="$ac_help | |
235 | --enable-filesystem use virtual file systems classes" | |
236 | ac_help="$ac_help | |
237 | --enable-fs_inet use virtual HTTP/FTP filesystems" | |
238 | ac_help="$ac_help | |
239 | --enable-fs_zip use virtual ZIP filesystems" | |
240 | ac_help="$ac_help | |
241 | --enable-zipstream use wxZipInputStream" | |
242 | ac_help="$ac_help | |
243 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException" | |
244 | ac_help="$ac_help | |
245 | --enable-snglinst use wxSingleInstanceChecker class" | |
246 | ac_help="$ac_help | |
247 | --enable-mimetype use wxMimeTypesManager" | |
248 | ac_help="$ac_help | |
249 | --enable-sysoptions use wxSystemOptions" | |
250 | ac_help="$ac_help | |
251 | --enable-url use wxURL class" | |
252 | ac_help="$ac_help | |
253 | --enable-protocol use wxProtocol class" | |
254 | ac_help="$ac_help | |
255 | --enable-protocol-http HTTP support in wxProtocol" | |
256 | ac_help="$ac_help | |
257 | --enable-protocol-ftp FTP support in wxProtocol" | |
258 | ac_help="$ac_help | |
259 | --enable-protocol-file FILE support in wxProtocol" | |
260 | ac_help="$ac_help | |
261 | --enable-threads use threads" | |
262 | ac_help="$ac_help | |
263 | --enable-docview use document view architecture" | |
264 | ac_help="$ac_help | |
265 | --enable-help use help subsystem" | |
266 | ac_help="$ac_help | |
267 | --enable-mshtmlhelp use MS HTML Help (win32)" | |
268 | ac_help="$ac_help | |
269 | --enable-html use wxHTML sub-library" | |
270 | ac_help="$ac_help | |
271 | --enable-htmlhelp use wxHTML-based help" | |
272 | ac_help="$ac_help | |
273 | --enable-constraints use layout-constraints system" | |
274 | ac_help="$ac_help | |
275 | --enable-printarch use printing architecture" | |
276 | ac_help="$ac_help | |
277 | --enable-mdi use multiple document interface architecture" | |
278 | ac_help="$ac_help | |
279 | --enable-loggui use standard GUI logger" | |
280 | ac_help="$ac_help | |
281 | --enable-logwin use wxLogWindow" | |
282 | ac_help="$ac_help | |
283 | --enable-logdialog use wxLogDialog" | |
284 | ac_help="$ac_help | |
285 | --enable-postscript use wxPostscriptDC device context (default for gtk+)" | |
286 | ac_help="$ac_help | |
287 | --enable-prologio use Prolog IO library" | |
288 | ac_help="$ac_help | |
289 | --enable-resources use wxWindows resources" | |
290 | ac_help="$ac_help | |
291 | --enable-xresources use X resources for save (default for gtk+)" | |
292 | ac_help="$ac_help | |
293 | --enable-clipboard use wxClipboard classes" | |
294 | ac_help="$ac_help | |
295 | --enable-dnd use Drag'n'Drop classes" | |
296 | ac_help="$ac_help | |
297 | --enable-metafile use win32 metafiles" | |
298 | ac_help="$ac_help | |
299 | --enable-treelayout use wxTreeLayout classes" | |
300 | ac_help="$ac_help | |
301 | --enable-controls use all usual controls" | |
302 | ac_help="$ac_help | |
303 | --enable-accel use accelerators" | |
304 | ac_help="$ac_help | |
305 | --enable-button use wxButton class" | |
306 | ac_help="$ac_help | |
307 | --enable-bmpbutton use wxBitmapButton class" | |
308 | ac_help="$ac_help | |
309 | --enable-calendar use wxCalendarCtrl class" | |
310 | ac_help="$ac_help | |
311 | --enable-caret use wxCaret class" | |
312 | ac_help="$ac_help | |
313 | --enable-checkbox use wxCheckBox class" | |
314 | ac_help="$ac_help | |
315 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class" | |
316 | ac_help="$ac_help | |
317 | --enable-choice use wxChoice class" | |
318 | ac_help="$ac_help | |
319 | --enable-combobox use wxComboBox classes" | |
320 | ac_help="$ac_help | |
321 | --enable-gauge use wxGauge class" | |
322 | ac_help="$ac_help | |
323 | --enable-grid use wxGrid class" | |
324 | ac_help="$ac_help | |
325 | --enable-newgrid use new wxGrid class" | |
326 | ac_help="$ac_help | |
327 | --enable-imaglist use wxImageList class" | |
328 | ac_help="$ac_help | |
329 | --enable-listbox use wxListBox class" | |
330 | ac_help="$ac_help | |
331 | --enable-listctrl use wxListCtrl class" | |
332 | ac_help="$ac_help | |
333 | --enable-notebook use wxNotebook class" | |
334 | ac_help="$ac_help | |
335 | --enable-propsheet use wxPropertySheet class" | |
336 | ac_help="$ac_help | |
337 | --enable-radiobox use wxRadioBox class" | |
338 | ac_help="$ac_help | |
339 | --enable-radiobtn use wxRadioButton class" | |
340 | ac_help="$ac_help | |
341 | --enable-sash use wxSashWindow class" | |
342 | ac_help="$ac_help | |
343 | --enable-scrollbar use wxScrollBar class and scrollable windows" | |
344 | ac_help="$ac_help | |
345 | --enable-slider use wxSlider class" | |
346 | ac_help="$ac_help | |
347 | --enable-spinbtn use wxSpinButton class" | |
348 | ac_help="$ac_help | |
349 | --enable-spinctrl use wxSpinCtrl class" | |
350 | ac_help="$ac_help | |
351 | --enable-splitter use wxSplitterWindow class" | |
352 | ac_help="$ac_help | |
353 | --enable-statbmp use wxStaticBitmap class" | |
354 | ac_help="$ac_help | |
355 | --enable-statbox use wxStaticBox class" | |
356 | ac_help="$ac_help | |
357 | --enable-statline use wxStaticLine class" | |
358 | ac_help="$ac_help | |
359 | --enable-stattext use wxStaticText class" | |
360 | ac_help="$ac_help | |
361 | --enable-statusbar use wxStatusBar class" | |
362 | ac_help="$ac_help | |
363 | --enable-tabdialog use wxTabControl class" | |
364 | ac_help="$ac_help | |
365 | --enable-textctrl use wxTextCtrl class" | |
366 | ac_help="$ac_help | |
367 | --enable-togglebtn use wxToggleButton class" | |
368 | ac_help="$ac_help | |
369 | --enable-toolbar use wxToolBar class" | |
370 | ac_help="$ac_help | |
371 | --enable-tbarnative use native wxToolBar class" | |
372 | ac_help="$ac_help | |
373 | --enable-tbarsmpl use wxToolBarSimple class" | |
374 | ac_help="$ac_help | |
375 | --enable-treectrl use wxTreeCtrl class" | |
376 | ac_help="$ac_help | |
377 | --enable-tipwindow use wxTipWindow class" | |
378 | ac_help="$ac_help | |
379 | --enable-popupwin use wxPopUpWindow class" | |
380 | ac_help="$ac_help | |
381 | --enable-commondlg use all common dialogs" | |
382 | ac_help="$ac_help | |
383 | --enable-choicedlg use wxChoiceDialog" | |
384 | ac_help="$ac_help | |
385 | --enable-coldlg use wxColourDialog" | |
386 | ac_help="$ac_help | |
387 | --enable-filedlg use wxFileDialog" | |
388 | ac_help="$ac_help | |
389 | --enable-finddlg use wxFindReplaceDialog" | |
390 | ac_help="$ac_help | |
391 | --enable-fontdlg use wxFontDialog" | |
392 | ac_help="$ac_help | |
393 | --enable-dirdlg use wxDirDialog" | |
394 | ac_help="$ac_help | |
395 | --enable-msgdlg use wxMessageDialog" | |
396 | ac_help="$ac_help | |
397 | --enable-numberdlg use wxNumberEntryDialog" | |
398 | ac_help="$ac_help | |
399 | --enable-splash use wxSplashScreen" | |
400 | ac_help="$ac_help | |
401 | --enable-textdlg use wxTextDialog" | |
402 | ac_help="$ac_help | |
403 | --enable-tipdlg use startup tips" | |
404 | ac_help="$ac_help | |
405 | --enable-progressdlg use wxProgressDialog" | |
406 | ac_help="$ac_help | |
407 | --enable-wizarddlg use wxWizard" | |
408 | ac_help="$ac_help | |
409 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes" | |
410 | ac_help="$ac_help | |
411 | --enable-miniframe use wxMiniFrame class" | |
412 | ac_help="$ac_help | |
413 | --enable-tooltips use wxToolTip class" | |
414 | ac_help="$ac_help | |
415 | --enable-splines use spline drawing code" | |
416 | ac_help="$ac_help | |
417 | --enable-validators use wxValidator and derived classes" | |
418 | ac_help="$ac_help | |
419 | --enable-busyinfo use wxBusyInfo" | |
420 | ac_help="$ac_help | |
421 | --enable-joystick use wxJoystick (Linux only)" | |
422 | ac_help="$ac_help | |
423 | --enable-metafiles use wxMetaFile (Windows only)" | |
424 | ac_help="$ac_help | |
425 | --enable-dragimage use wxDragImage" | |
426 | ac_help="$ac_help | |
427 | --enable-palette use wxPalette class" | |
428 | ac_help="$ac_help | |
429 | --enable-image use wxImage class" | |
430 | ac_help="$ac_help | |
431 | --enable-gif use gif images (GIF file format)" | |
432 | ac_help="$ac_help | |
433 | --enable-pcx use pcx images (PCX file format)" | |
434 | ac_help="$ac_help | |
435 | --enable-iff use iff images (IFF file format)" | |
436 | ac_help="$ac_help | |
437 | --enable-pnm use pnm images (PNM file format)" | |
438 | ac_help="$ac_help | |
439 | --enable-xpm use xpm images (XPM file format)" | |
440 | ac_help="$ac_help | |
441 | --enable-icocur use Windows ICO and CUR formats" | |
442 | ac_help="$ac_help | |
443 | --disable-largefile omit support for large files" | |
444 | ac_help="$ac_help | |
445 | --disable-gtktest do not try to compile and run a test GTK+ program" | |
446 | ac_help="$ac_help | |
447 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
448 | ac_help="$ac_help | |
449 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
450 | ac_help="$ac_help | |
451 | --disable-gtktest Do not try to compile and run a test GTK program" | |
452 | ac_help="$ac_help | |
453 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" | |
454 | ac_help="$ac_help | |
455 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" | |
456 | ac_help="$ac_help | |
457 | --disable-gtktest Do not try to compile and run a test GTK program" | |
458 | ac_help="$ac_help | |
459 | --with-x use the X Window System" | |
460 | ac_help="$ac_help | |
461 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" | |
10f2d63a VZ |
462 | |
463 | # Initialize some variables set by options. | |
464 | # The variables have the same names as the options, with | |
465 | # dashes changed to underlines. | |
a0b9e27f MB |
466 | build=NONE |
467 | cache_file=./config.cache | |
10f2d63a | 468 | exec_prefix=NONE |
a0b9e27f | 469 | host=NONE |
10f2d63a | 470 | no_create= |
a0b9e27f | 471 | nonopt=NONE |
10f2d63a VZ |
472 | no_recursion= |
473 | prefix=NONE | |
474 | program_prefix=NONE | |
475 | program_suffix=NONE | |
476 | program_transform_name=s,x,x, | |
477 | silent= | |
478 | site= | |
479 | srcdir= | |
a0b9e27f | 480 | target=NONE |
10f2d63a VZ |
481 | verbose= |
482 | x_includes=NONE | |
483 | x_libraries=NONE | |
484 | bindir='${exec_prefix}/bin' | |
485 | sbindir='${exec_prefix}/sbin' | |
486 | libexecdir='${exec_prefix}/libexec' | |
487 | datadir='${prefix}/share' | |
488 | sysconfdir='${prefix}/etc' | |
489 | sharedstatedir='${prefix}/com' | |
490 | localstatedir='${prefix}/var' | |
491 | libdir='${exec_prefix}/lib' | |
492 | includedir='${prefix}/include' | |
493 | oldincludedir='/usr/include' | |
494 | infodir='${prefix}/info' | |
495 | mandir='${prefix}/man' | |
496 | ||
a0b9e27f MB |
497 | # Initialize some other variables. |
498 | subdirs= | |
499 | MFLAGS= MAKEFLAGS= | |
500 | SHELL=${CONFIG_SHELL-/bin/sh} | |
501 | # Maximum number of lines to put in a shell here document. | |
502 | ac_max_here_lines=12 | |
503 | ||
10f2d63a VZ |
504 | ac_prev= |
505 | for ac_option | |
506 | do | |
a0b9e27f | 507 | |
10f2d63a VZ |
508 | # If the previous option needs an argument, assign it. |
509 | if test -n "$ac_prev"; then | |
510 | eval "$ac_prev=\$ac_option" | |
511 | ac_prev= | |
512 | continue | |
513 | fi | |
514 | ||
a0b9e27f MB |
515 | case "$ac_option" in |
516 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
517 | *) ac_optarg= ;; | |
518 | esac | |
10f2d63a VZ |
519 | |
520 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
521 | ||
a0b9e27f | 522 | case "$ac_option" in |
10f2d63a VZ |
523 | |
524 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
525 | ac_prev=bindir ;; | |
526 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
a0b9e27f | 527 | bindir="$ac_optarg" ;; |
10f2d63a VZ |
528 | |
529 | -build | --build | --buil | --bui | --bu) | |
a0b9e27f | 530 | ac_prev=build ;; |
10f2d63a | 531 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
a0b9e27f | 532 | build="$ac_optarg" ;; |
10f2d63a VZ |
533 | |
534 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
535 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
536 | ac_prev=cache_file ;; | |
537 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
538 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
a0b9e27f | 539 | cache_file="$ac_optarg" ;; |
10f2d63a VZ |
540 | |
541 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
542 | ac_prev=datadir ;; | |
543 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
544 | | --da=*) | |
a0b9e27f | 545 | datadir="$ac_optarg" ;; |
10f2d63a VZ |
546 | |
547 | -disable-* | --disable-*) | |
a0b9e27f | 548 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
10f2d63a | 549 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
550 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
551 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
552 | fi | |
553 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
554 | eval "enable_${ac_feature}=no" ;; | |
10f2d63a VZ |
555 | |
556 | -enable-* | --enable-*) | |
a0b9e27f | 557 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
10f2d63a | 558 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
559 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
560 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
561 | fi | |
562 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
563 | case "$ac_option" in | |
564 | *=*) ;; | |
10f2d63a VZ |
565 | *) ac_optarg=yes ;; |
566 | esac | |
a0b9e27f | 567 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
10f2d63a VZ |
568 | |
569 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
570 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
571 | | --exec | --exe | --ex) | |
572 | ac_prev=exec_prefix ;; | |
573 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
574 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
575 | | --exec=* | --exe=* | --ex=*) | |
a0b9e27f | 576 | exec_prefix="$ac_optarg" ;; |
10f2d63a VZ |
577 | |
578 | -gas | --gas | --ga | --g) | |
579 | # Obsolete; use --with-gas. | |
580 | with_gas=yes ;; | |
581 | ||
a0b9e27f MB |
582 | -help | --help | --hel | --he) |
583 | # Omit some internal or obsolete options to make the list less imposing. | |
584 | # This message is too long to be a string in the A/UX 3.1 sh. | |
585 | cat << EOF | |
586 | Usage: configure [options] [host] | |
587 | Options: [defaults in brackets after descriptions] | |
588 | Configuration: | |
589 | --cache-file=FILE cache test results in FILE | |
590 | --help print this message | |
591 | --no-create do not create output files | |
592 | --quiet, --silent do not print \`checking...' messages | |
593 | --version print the version of autoconf that created configure | |
594 | Directory and file names: | |
595 | --prefix=PREFIX install architecture-independent files in PREFIX | |
596 | [$ac_default_prefix] | |
597 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
598 | [same as prefix] | |
599 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
600 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
601 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
602 | --datadir=DIR read-only architecture-independent data in DIR | |
603 | [PREFIX/share] | |
604 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
605 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
606 | [PREFIX/com] | |
607 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
608 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
609 | --includedir=DIR C header files in DIR [PREFIX/include] | |
610 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
611 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
612 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
613 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
614 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
615 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
616 | --program-transform-name=PROGRAM | |
617 | run sed PROGRAM on installed program names | |
618 | EOF | |
619 | cat << EOF | |
620 | Host type: | |
621 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
622 | --host=HOST configure for HOST [guessed] | |
623 | --target=TARGET configure for TARGET [TARGET=HOST] | |
624 | Features and packages: | |
625 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
626 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
627 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
628 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
629 | --x-includes=DIR X include files are in DIR | |
630 | --x-libraries=DIR X library files are in DIR | |
631 | EOF | |
632 | if test -n "$ac_help"; then | |
633 | echo "--enable and --with options recognized:$ac_help" | |
634 | fi | |
635 | exit 0 ;; | |
10f2d63a VZ |
636 | |
637 | -host | --host | --hos | --ho) | |
a0b9e27f | 638 | ac_prev=host ;; |
10f2d63a | 639 | -host=* | --host=* | --hos=* | --ho=*) |
a0b9e27f | 640 | host="$ac_optarg" ;; |
10f2d63a VZ |
641 | |
642 | -includedir | --includedir | --includedi | --included | --include \ | |
643 | | --includ | --inclu | --incl | --inc) | |
644 | ac_prev=includedir ;; | |
645 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
646 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
a0b9e27f | 647 | includedir="$ac_optarg" ;; |
10f2d63a VZ |
648 | |
649 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
650 | ac_prev=infodir ;; | |
651 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
a0b9e27f | 652 | infodir="$ac_optarg" ;; |
10f2d63a VZ |
653 | |
654 | -libdir | --libdir | --libdi | --libd) | |
655 | ac_prev=libdir ;; | |
656 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
a0b9e27f | 657 | libdir="$ac_optarg" ;; |
10f2d63a VZ |
658 | |
659 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
660 | | --libexe | --libex | --libe) | |
661 | ac_prev=libexecdir ;; | |
662 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
663 | | --libexe=* | --libex=* | --libe=*) | |
a0b9e27f | 664 | libexecdir="$ac_optarg" ;; |
10f2d63a VZ |
665 | |
666 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
667 | | --localstate | --localstat | --localsta | --localst \ | |
668 | | --locals | --local | --loca | --loc | --lo) | |
669 | ac_prev=localstatedir ;; | |
670 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
671 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
672 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
a0b9e27f | 673 | localstatedir="$ac_optarg" ;; |
10f2d63a VZ |
674 | |
675 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
676 | ac_prev=mandir ;; | |
677 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
a0b9e27f | 678 | mandir="$ac_optarg" ;; |
10f2d63a VZ |
679 | |
680 | -nfp | --nfp | --nf) | |
681 | # Obsolete; use --without-fp. | |
682 | with_fp=no ;; | |
683 | ||
684 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
a0b9e27f | 685 | | --no-cr | --no-c) |
10f2d63a VZ |
686 | no_create=yes ;; |
687 | ||
688 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
689 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
690 | no_recursion=yes ;; | |
691 | ||
692 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
693 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
694 | | --oldin | --oldi | --old | --ol | --o) | |
695 | ac_prev=oldincludedir ;; | |
696 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
697 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
698 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
a0b9e27f | 699 | oldincludedir="$ac_optarg" ;; |
10f2d63a VZ |
700 | |
701 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
702 | ac_prev=prefix ;; | |
703 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
a0b9e27f | 704 | prefix="$ac_optarg" ;; |
10f2d63a VZ |
705 | |
706 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
707 | | --program-pre | --program-pr | --program-p) | |
708 | ac_prev=program_prefix ;; | |
709 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
710 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
a0b9e27f | 711 | program_prefix="$ac_optarg" ;; |
10f2d63a VZ |
712 | |
713 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
714 | | --program-suf | --program-su | --program-s) | |
715 | ac_prev=program_suffix ;; | |
716 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
717 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
a0b9e27f | 718 | program_suffix="$ac_optarg" ;; |
10f2d63a VZ |
719 | |
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) | |
727 | ac_prev=program_transform_name ;; | |
728 | -program-transform-name=* | --program-transform-name=* \ | |
729 | | --program-transform-nam=* | --program-transform-na=* \ | |
730 | | --program-transform-n=* | --program-transform-=* \ | |
731 | | --program-transform=* | --program-transfor=* \ | |
732 | | --program-transfo=* | --program-transf=* \ | |
733 | | --program-trans=* | --program-tran=* \ | |
734 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
a0b9e27f | 735 | program_transform_name="$ac_optarg" ;; |
10f2d63a VZ |
736 | |
737 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
738 | | -silent | --silent | --silen | --sile | --sil) | |
739 | silent=yes ;; | |
740 | ||
741 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
742 | ac_prev=sbindir ;; | |
743 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
744 | | --sbi=* | --sb=*) | |
a0b9e27f | 745 | sbindir="$ac_optarg" ;; |
10f2d63a VZ |
746 | |
747 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
748 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
749 | | --sharedst | --shareds | --shared | --share | --shar \ | |
750 | | --sha | --sh) | |
751 | ac_prev=sharedstatedir ;; | |
752 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
753 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
754 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
755 | | --sha=* | --sh=*) | |
a0b9e27f | 756 | sharedstatedir="$ac_optarg" ;; |
10f2d63a VZ |
757 | |
758 | -site | --site | --sit) | |
759 | ac_prev=site ;; | |
760 | -site=* | --site=* | --sit=*) | |
a0b9e27f | 761 | site="$ac_optarg" ;; |
10f2d63a VZ |
762 | |
763 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
764 | ac_prev=srcdir ;; | |
765 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
a0b9e27f | 766 | srcdir="$ac_optarg" ;; |
10f2d63a VZ |
767 | |
768 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
769 | | --syscon | --sysco | --sysc | --sys | --sy) | |
770 | ac_prev=sysconfdir ;; | |
771 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
772 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
a0b9e27f | 773 | sysconfdir="$ac_optarg" ;; |
10f2d63a VZ |
774 | |
775 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
a0b9e27f | 776 | ac_prev=target ;; |
10f2d63a | 777 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
a0b9e27f | 778 | target="$ac_optarg" ;; |
10f2d63a VZ |
779 | |
780 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
781 | verbose=yes ;; | |
782 | ||
a0b9e27f MB |
783 | -version | --version | --versio | --versi | --vers) |
784 | echo "configure generated by autoconf version 2.13" | |
785 | exit 0 ;; | |
10f2d63a VZ |
786 | |
787 | -with-* | --with-*) | |
a0b9e27f | 788 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
10f2d63a | 789 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
790 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
791 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
792 | fi | |
10f2d63a | 793 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
a0b9e27f MB |
794 | case "$ac_option" in |
795 | *=*) ;; | |
10f2d63a VZ |
796 | *) ac_optarg=yes ;; |
797 | esac | |
a0b9e27f | 798 | eval "with_${ac_package}='$ac_optarg'" ;; |
10f2d63a VZ |
799 | |
800 | -without-* | --without-*) | |
a0b9e27f | 801 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
10f2d63a | 802 | # Reject names that are not valid shell variable names. |
a0b9e27f MB |
803 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
804 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
805 | fi | |
806 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
807 | eval "with_${ac_package}=no" ;; | |
10f2d63a VZ |
808 | |
809 | --x) | |
810 | # Obsolete; use --with-x. | |
811 | with_x=yes ;; | |
812 | ||
813 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
814 | | --x-incl | --x-inc | --x-in | --x-i) | |
815 | ac_prev=x_includes ;; | |
816 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
817 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
a0b9e27f | 818 | x_includes="$ac_optarg" ;; |
10f2d63a VZ |
819 | |
820 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
821 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
822 | ac_prev=x_libraries ;; | |
823 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
824 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
a0b9e27f | 825 | x_libraries="$ac_optarg" ;; |
10f2d63a | 826 | |
a0b9e27f | 827 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
10f2d63a VZ |
828 | ;; |
829 | ||
830 | *) | |
a0b9e27f MB |
831 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
832 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
833 | fi | |
834 | if test "x$nonopt" != xNONE; then | |
835 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
836 | fi | |
837 | nonopt="$ac_option" | |
10f2d63a VZ |
838 | ;; |
839 | ||
840 | esac | |
841 | done | |
842 | ||
843 | if test -n "$ac_prev"; then | |
a0b9e27f | 844 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
8284b0c5 | 845 | fi |
8284b0c5 | 846 | |
a0b9e27f MB |
847 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
848 | ||
849 | # File descriptor usage: | |
850 | # 0 standard input | |
851 | # 1 file creation | |
852 | # 2 errors and warnings | |
853 | # 3 some systems may open it to /dev/tty | |
854 | # 4 used on the Kubota Titan | |
855 | # 6 checking for... messages and results | |
856 | # 5 compiler messages saved in config.log | |
857 | if test "$silent" = yes; then | |
858 | exec 6>/dev/null | |
859 | else | |
860 | exec 6>&1 | |
861 | fi | |
862 | exec 5>./config.log | |
863 | ||
864 | echo "\ | |
865 | This file contains any messages produced by compilers while | |
866 | running configure, to aid debugging if configure makes a mistake. | |
867 | " 1>&5 | |
8284b0c5 | 868 | |
a0b9e27f MB |
869 | # Strip out --no-create and --no-recursion so they do not pile up. |
870 | # Also quote any args containing shell metacharacters. | |
871 | ac_configure_args= | |
872 | for ac_arg | |
10f2d63a | 873 | do |
a0b9e27f MB |
874 | case "$ac_arg" in |
875 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
876 | | --no-cr | --no-c) ;; | |
877 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
878 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
879 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
880 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
881 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
10f2d63a VZ |
882 | esac |
883 | done | |
884 | ||
a0b9e27f MB |
885 | # NLS nuisances. |
886 | # Only set these to C if already set. These must not be set unconditionally | |
887 | # because not all systems understand e.g. LANG=C (notably SCO). | |
888 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
889 | # Non-C LC_CTYPE values break the ctype check. | |
890 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
891 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
892 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
893 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
247f5006 | 894 | |
a0b9e27f MB |
895 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
896 | rm -rf conftest* confdefs.h | |
897 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
898 | echo > confdefs.h | |
10f2d63a | 899 | |
a0b9e27f MB |
900 | # A filename unique to this package, relative to the directory that |
901 | # configure is in, which we can look for to find out if srcdir is correct. | |
902 | ac_unique_file=wx-config.in | |
10f2d63a VZ |
903 | |
904 | # Find the source files, if location was not specified. | |
905 | if test -z "$srcdir"; then | |
906 | ac_srcdir_defaulted=yes | |
907 | # Try the directory containing this script, then its parent. | |
a0b9e27f MB |
908 | ac_prog=$0 |
909 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
910 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
10f2d63a VZ |
911 | srcdir=$ac_confdir |
912 | if test ! -r $srcdir/$ac_unique_file; then | |
913 | srcdir=.. | |
914 | fi | |
915 | else | |
916 | ac_srcdir_defaulted=no | |
917 | fi | |
918 | if test ! -r $srcdir/$ac_unique_file; then | |
919 | if test "$ac_srcdir_defaulted" = yes; then | |
a0b9e27f | 920 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
10f2d63a | 921 | else |
a0b9e27f | 922 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
10f2d63a VZ |
923 | fi |
924 | fi | |
a0b9e27f | 925 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
328a083c | 926 | |
10f2d63a VZ |
927 | # Prefer explicitly selected file to automatically selected ones. |
928 | if test -z "$CONFIG_SITE"; then | |
929 | if test "x$prefix" != xNONE; then | |
930 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
931 | else | |
932 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
933 | fi | |
934 | fi | |
935 | for ac_site_file in $CONFIG_SITE; do | |
936 | if test -r "$ac_site_file"; then | |
a0b9e27f | 937 | echo "loading site script $ac_site_file" |
10f2d63a VZ |
938 | . "$ac_site_file" |
939 | fi | |
940 | done | |
941 | ||
942 | if test -r "$cache_file"; then | |
a0b9e27f MB |
943 | echo "loading cache $cache_file" |
944 | . $cache_file | |
10f2d63a | 945 | else |
a0b9e27f MB |
946 | echo "creating cache $cache_file" |
947 | > $cache_file | |
10f2d63a VZ |
948 | fi |
949 | ||
950 | ac_ext=c | |
a0b9e27f | 951 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 952 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
953 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
954 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
955 | cross_compiling=$ac_cv_prog_cc_cross | |
956 | ||
957 | ac_exeext= | |
958 | ac_objext=o | |
959 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
960 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
961 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
962 | ac_n= ac_c=' | |
963 | ' ac_t=' ' | |
964 | else | |
965 | ac_n=-n ac_c= ac_t= | |
966 | fi | |
967 | else | |
968 | ac_n= ac_c='\c' ac_t= | |
969 | fi | |
8284b0c5 MB |
970 | |
971 | ||
10f2d63a | 972 | |
7c66a493 VZ |
973 | ac_aux_dir= |
974 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
975 | if test -f $ac_dir/install-sh; then | |
976 | ac_aux_dir=$ac_dir | |
977 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
978 | break | |
979 | elif test -f $ac_dir/install.sh; then | |
980 | ac_aux_dir=$ac_dir | |
981 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
982 | break | |
247f5006 | 983 | fi |
7c66a493 VZ |
984 | done |
985 | if test -z "$ac_aux_dir"; then | |
a0b9e27f | 986 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
7c66a493 | 987 | fi |
a0b9e27f MB |
988 | ac_config_guess=$ac_aux_dir/config.guess |
989 | ac_config_sub=$ac_aux_dir/config.sub | |
990 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
698dcdb6 | 991 | |
8284b0c5 | 992 | |
a0b9e27f MB |
993 | # Do some error checking and defaulting for the host and target type. |
994 | # The inputs are: | |
995 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
996 | # | |
997 | # The rules are: | |
998 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
999 | # same time. | |
1000 | # 2. Host defaults to nonopt. | |
1001 | # 3. If nonopt is not specified, then host defaults to the current host, | |
1002 | # as determined by config.guess. | |
1003 | # 4. Target and build default to nonopt. | |
1004 | # 5. If nonopt is not specified, then target and build default to host. | |
7c66a493 VZ |
1005 | |
1006 | # The aliases save the names the user supplied, while $host etc. | |
1007 | # will get canonicalized. | |
a0b9e27f MB |
1008 | case $host---$target---$nonopt in |
1009 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
1010 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
1011 | esac | |
1012 | ||
1013 | ||
1014 | # Make sure we can run config.sub. | |
1015 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
1016 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
1017 | fi | |
1018 | ||
1019 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
2b5f62a0 | 1020 | echo "configure:1021: checking host system type" >&5 |
a0b9e27f MB |
1021 | |
1022 | host_alias=$host | |
1023 | case "$host_alias" in | |
1024 | NONE) | |
1025 | case $nonopt in | |
1026 | NONE) | |
1027 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
1028 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
1029 | fi ;; | |
1030 | *) host_alias=$nonopt ;; | |
1031 | esac ;; | |
1032 | esac | |
1033 | ||
1034 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
1035 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1036 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1037 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1038 | echo "$ac_t""$host" 1>&6 | |
1039 | ||
1040 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
2b5f62a0 | 1041 | echo "configure:1042: checking target system type" >&5 |
a0b9e27f MB |
1042 | |
1043 | target_alias=$target | |
1044 | case "$target_alias" in | |
1045 | NONE) | |
1046 | case $nonopt in | |
1047 | NONE) target_alias=$host_alias ;; | |
1048 | *) target_alias=$nonopt ;; | |
1049 | esac ;; | |
1050 | esac | |
1051 | ||
1052 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
1053 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1054 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1055 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1056 | echo "$ac_t""$target" 1>&6 | |
1057 | ||
1058 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
2b5f62a0 | 1059 | echo "configure:1060: checking build system type" >&5 |
a0b9e27f MB |
1060 | |
1061 | build_alias=$build | |
1062 | case "$build_alias" in | |
1063 | NONE) | |
1064 | case $nonopt in | |
1065 | NONE) build_alias=$host_alias ;; | |
1066 | *) build_alias=$nonopt ;; | |
1067 | esac ;; | |
1068 | esac | |
1069 | ||
1070 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
1071 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1072 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1073 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1074 | echo "$ac_t""$build" 1>&6 | |
1075 | ||
1076 | test "$host_alias" != "$target_alias" && | |
7c66a493 VZ |
1077 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1078 | NONENONEs,x,x, && | |
1079 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1080 | |
1081 | ||
a0b9e27f | 1082 | |
10f2d63a | 1083 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1084 | WX_MINOR_VERSION_NUMBER=5 |
1085 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1086 | |
10f2d63a | 1087 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1088 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1089 | |
978f1259 RL |
1090 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1091 | ||
34bed6d9 | 1092 | WX_CURRENT=0 |
6426998c RL |
1093 | WX_REVISION=0 |
1094 | WX_AGE=0 | |
1095 | ||
8284b0c5 MB |
1096 | |
1097 | ||
10f2d63a VZ |
1098 | USE_UNIX=1 |
1099 | USE_WIN32=0 | |
f9bc1684 | 1100 | USE_DOS=0 |
b12915c1 | 1101 | USE_BEOS=0 |
1216f52d | 1102 | USE_MAC=0 |
b12915c1 | 1103 | |
10f2d63a VZ |
1104 | USE_LINUX= |
1105 | USE_SGI= | |
1106 | USE_HPUX= | |
1107 | USE_SYSV= | |
1108 | USE_SVR4= | |
1109 | USE_AIX= | |
1110 | USE_SUN= | |
1111 | USE_SOLARIS= | |
1112 | USE_SUNOS= | |
1113 | USE_ALPHA= | |
1114 | USE_OSF= | |
1115 | USE_BSD= | |
f11bdd03 | 1116 | USE_DARWIN= |
10f2d63a | 1117 | USE_FREEBSD= |
95c8801c | 1118 | USE_OPENBSD= |
f6bcfd97 | 1119 | USE_NETBSD= |
10f2d63a VZ |
1120 | USE_VMS= |
1121 | USE_ULTRIX= | |
10f2d63a VZ |
1122 | USE_DATA_GENERAL= |
1123 | ||
ab9b9eab VZ |
1124 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1125 | ||
f79bd02d | 1126 | ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11" |
10f2d63a VZ |
1127 | |
1128 | DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1129 | DEFAULT_wxUSE_MAC=0 |
1130 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1131 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1132 | DEFAULT_wxUSE_MOTIF=0 |
1133 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1134 | DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1135 | DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1136 | DEFAULT_wxUSE_X11=0 |
10f2d63a VZ |
1137 | |
1138 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1e6feb95 VZ |
1139 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1140 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1141 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1142 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1143 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1144 | DEFAULT_DEFAULT_wxUSE_PM=0 |
1e6feb95 | 1145 | DEFAULT_DEFAULT_wxUSE_WINE=0 |
f79bd02d | 1146 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1147 | |
d6a55c4b | 1148 | PROGRAM_EXT= |
3a922bb4 | 1149 | SO_SUFFIX=so |
d6a55c4b | 1150 | |
10f2d63a VZ |
1151 | case "${host}" in |
1152 | *-hp-hpux* ) | |
1153 | USE_HPUX=1 | |
1154 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1155 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1156 | SO_SUFFIX=sl |
a0b9e27f | 1157 | cat >> confdefs.h <<\EOF |
10f2d63a | 1158 | #define __HPUX__ 1 |
a0b9e27f | 1159 | EOF |
10f2d63a VZ |
1160 | |
1161 | ;; | |
1162 | *-*-linux* ) | |
1163 | USE_LINUX=1 | |
a0b9e27f | 1164 | cat >> confdefs.h <<\EOF |
10f2d63a | 1165 | #define __LINUX__ 1 |
a0b9e27f | 1166 | EOF |
10f2d63a VZ |
1167 | |
1168 | TMP=`uname -m` | |
1169 | if test "x$TMP" = "xalpha"; then | |
1170 | USE_ALPHA=1 | |
a0b9e27f | 1171 | cat >> confdefs.h <<\EOF |
10f2d63a | 1172 | #define __ALPHA__ 1 |
a0b9e27f | 1173 | EOF |
10f2d63a VZ |
1174 | |
1175 | fi | |
1176 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1177 | ;; | |
1178 | *-*-irix5* | *-*-irix6* ) | |
1179 | USE_SGI=1 | |
1180 | USE_SVR4=1 | |
a0b9e27f | 1181 | cat >> confdefs.h <<\EOF |
10f2d63a | 1182 | #define __SGI__ 1 |
a0b9e27f | 1183 | EOF |
10f2d63a | 1184 | |
a0b9e27f | 1185 | cat >> confdefs.h <<\EOF |
10f2d63a | 1186 | #define __SVR4__ 1 |
a0b9e27f | 1187 | EOF |
10f2d63a VZ |
1188 | |
1189 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1190 | ;; | |
1191 | *-*-solaris2* ) | |
1192 | USE_SUN=1 | |
1193 | USE_SOLARIS=1 | |
1194 | USE_SVR4=1 | |
a0b9e27f | 1195 | cat >> confdefs.h <<\EOF |
10f2d63a | 1196 | #define __SUN__ 1 |
a0b9e27f | 1197 | EOF |
10f2d63a | 1198 | |
a0b9e27f | 1199 | cat >> confdefs.h <<\EOF |
10f2d63a | 1200 | #define __SOLARIS__ 1 |
a0b9e27f | 1201 | EOF |
10f2d63a | 1202 | |
a0b9e27f | 1203 | cat >> confdefs.h <<\EOF |
10f2d63a | 1204 | #define __SVR4__ 1 |
a0b9e27f | 1205 | EOF |
10f2d63a VZ |
1206 | |
1207 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1208 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1209 | ;; |
1210 | *-*-sunos4* ) | |
1211 | USE_SUN=1 | |
1212 | USE_SUNOS=1 | |
1213 | USE_BSD=1 | |
a0b9e27f | 1214 | cat >> confdefs.h <<\EOF |
10f2d63a | 1215 | #define __SUN__ 1 |
a0b9e27f | 1216 | EOF |
10f2d63a | 1217 | |
a0b9e27f | 1218 | cat >> confdefs.h <<\EOF |
10f2d63a | 1219 | #define __SUNOS__ 1 |
a0b9e27f | 1220 | EOF |
10f2d63a | 1221 | |
a0b9e27f | 1222 | cat >> confdefs.h <<\EOF |
10f2d63a | 1223 | #define __BSD__ 1 |
a0b9e27f | 1224 | EOF |
10f2d63a VZ |
1225 | |
1226 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1227 | ;; | |
f6bcfd97 | 1228 | *-*-freebsd*) |
10f2d63a VZ |
1229 | USE_BSD=1 |
1230 | USE_FREEBSD=1 | |
a0b9e27f | 1231 | cat >> confdefs.h <<\EOF |
10f2d63a | 1232 | #define __FREEBSD__ 1 |
a0b9e27f | 1233 | EOF |
10f2d63a | 1234 | |
a0b9e27f | 1235 | cat >> confdefs.h <<\EOF |
10f2d63a | 1236 | #define __BSD__ 1 |
a0b9e27f | 1237 | EOF |
95c8801c VS |
1238 | |
1239 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1240 | ;; | |
1241 | *-*-openbsd*) | |
1242 | USE_BSD=1 | |
1243 | USE_OPENBSD=1 | |
a0b9e27f | 1244 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1245 | #define __OPENBSD__ 1 |
a0b9e27f | 1246 | EOF |
95c8801c | 1247 | |
a0b9e27f | 1248 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1249 | #define __BSD__ 1 |
a0b9e27f | 1250 | EOF |
f6bcfd97 BP |
1251 | |
1252 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1253 | ;; | |
1254 | *-*-netbsd*) | |
1255 | USE_BSD=1 | |
1256 | USE_NETBSD=1 | |
a0b9e27f | 1257 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1258 | #define __NETBSD__ 1 |
a0b9e27f | 1259 | EOF |
f6bcfd97 | 1260 | |
a0b9e27f | 1261 | cat >> confdefs.h <<\EOF |
2b5f62a0 | 1262 | #define __BSD__ 1 |
a0b9e27f | 1263 | EOF |
10f2d63a VZ |
1264 | |
1265 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1266 | ;; | |
1267 | *-*-osf* ) | |
1268 | USE_ALPHA=1 | |
1269 | USE_OSF=1 | |
a0b9e27f | 1270 | cat >> confdefs.h <<\EOF |
10f2d63a | 1271 | #define __ALPHA__ 1 |
a0b9e27f | 1272 | EOF |
10f2d63a | 1273 | |
a0b9e27f | 1274 | cat >> confdefs.h <<\EOF |
10f2d63a | 1275 | #define __OSF__ 1 |
a0b9e27f | 1276 | EOF |
10f2d63a VZ |
1277 | |
1278 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1279 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1280 | ;; |
1281 | *-*-dgux5* ) | |
1282 | USE_ALPHA=1 | |
1283 | USE_SVR4=1 | |
a0b9e27f | 1284 | cat >> confdefs.h <<\EOF |
10f2d63a | 1285 | #define __ALPHA__ 1 |
a0b9e27f | 1286 | EOF |
10f2d63a | 1287 | |
a0b9e27f | 1288 | cat >> confdefs.h <<\EOF |
10f2d63a | 1289 | #define __SVR4__ 1 |
a0b9e27f | 1290 | EOF |
10f2d63a VZ |
1291 | |
1292 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1293 | ;; | |
1294 | *-*-sysv5* ) | |
1295 | USE_SYSV=1 | |
1296 | USE_SVR4=1 | |
a0b9e27f | 1297 | cat >> confdefs.h <<\EOF |
10f2d63a | 1298 | #define __SYSV__ 1 |
a0b9e27f | 1299 | EOF |
10f2d63a | 1300 | |
a0b9e27f | 1301 | cat >> confdefs.h <<\EOF |
10f2d63a | 1302 | #define __SVR4__ 1 |
a0b9e27f | 1303 | EOF |
10f2d63a VZ |
1304 | |
1305 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1306 | ;; | |
1307 | *-*-aix* ) | |
1308 | USE_AIX=1 | |
1309 | USE_SYSV=1 | |
1310 | USE_SVR4=1 | |
2b5f62a0 | 1311 | SO_SUFFIX=a |
a0b9e27f | 1312 | cat >> confdefs.h <<\EOF |
10f2d63a | 1313 | #define __AIX__ 1 |
a0b9e27f | 1314 | EOF |
10f2d63a | 1315 | |
a0b9e27f | 1316 | cat >> confdefs.h <<\EOF |
10f2d63a | 1317 | #define __SYSV__ 1 |
a0b9e27f | 1318 | EOF |
10f2d63a | 1319 | |
a0b9e27f | 1320 | cat >> confdefs.h <<\EOF |
10f2d63a | 1321 | #define __SVR4__ 1 |
a0b9e27f | 1322 | EOF |
10f2d63a VZ |
1323 | |
1324 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1325 | ;; | |
1326 | ||
1c8183e2 | 1327 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1328 | SO_SUFFIX=dll |
cf27ef00 | 1329 | PROGRAM_EXT=".exe" |
7b7a7637 | 1330 | RESCOMP=windres |
10f2d63a VZ |
1331 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1332 | ;; | |
1333 | ||
f9bc1684 VS |
1334 | *-pc-msdosdjgpp ) |
1335 | USE_UNIX=0 | |
1336 | USE_DOS=1 | |
a0b9e27f | 1337 | cat >> confdefs.h <<\EOF |
f9bc1684 | 1338 | #define __DOS__ 1 |
a0b9e27f | 1339 | EOF |
f9bc1684 VS |
1340 | |
1341 | PROGRAM_EXT=".exe" | |
1342 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1343 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1344 | ;; |
1345 | ||
6fa882bd | 1346 | *-pc-os2_emx | *-pc-os2-emx ) |
a0b9e27f | 1347 | cat >> confdefs.h <<\EOF |
10f2d63a | 1348 | #define __EMX__ 1 |
a0b9e27f | 1349 | EOF |
10f2d63a | 1350 | |
cf27ef00 | 1351 | PROGRAM_EXT=".exe" |
e07802fc | 1352 | DEFAULT_DEFAULT_wxUSE_PM=1 |
10f2d63a VZ |
1353 | ;; |
1354 | ||
d08b457b GD |
1355 | powerpc-*-darwin* ) |
1356 | USE_BSD=1 | |
f11bdd03 | 1357 | USE_DARWIN=1 |
3a922bb4 | 1358 | SO_SUFFIX=dylib |
a0b9e27f | 1359 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1360 | #define __BSD__ 1 |
a0b9e27f | 1361 | EOF |
b4085ce6 | 1362 | |
a0b9e27f | 1363 | cat >> confdefs.h <<\EOF |
f11bdd03 | 1364 | #define __DARWIN__ 1 |
a0b9e27f | 1365 | EOF |
d08b457b | 1366 | |
a0b9e27f | 1367 | cat >> confdefs.h <<\EOF |
d08b457b | 1368 | #define __POWERPC__ 1 |
a0b9e27f | 1369 | EOF |
b4085ce6 GD |
1370 | |
1371 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1372 | ;; | |
1373 | ||
b12915c1 VZ |
1374 | *-*-beos* ) |
1375 | USE_BEOS=1 | |
a0b9e27f | 1376 | cat >> confdefs.h <<\EOF |
b12915c1 | 1377 | #define __BEOS__ 1 |
a0b9e27f | 1378 | EOF |
b12915c1 VZ |
1379 | |
1380 | ;; | |
1381 | ||
10f2d63a | 1382 | *) |
a0b9e27f | 1383 | { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; } |
10f2d63a VZ |
1384 | esac |
1385 | ||
8284b0c5 MB |
1386 | |
1387 | ||
1388 | ||
1389 | wx_arg_cache_file="configarg.cache" | |
1390 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1391 | rm -f ${wx_arg_cache_file}.tmp |
1392 | touch ${wx_arg_cache_file}.tmp | |
1393 | touch ${wx_arg_cache_file} | |
a0b9e27f | 1394 | |
10f2d63a VZ |
1395 | |
1396 | DEBUG_CONFIGURE=0 | |
1397 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 VZ |
1398 | DEFAULT_wxUSE_UNIVERSAL=no |
1399 | ||
d8356fa3 VZ |
1400 | DEFAULT_wxUSE_NANOX=no |
1401 | ||
10f2d63a VZ |
1402 | DEFAULT_wxUSE_THREADS=yes |
1403 | ||
1404 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1405 | DEFAULT_wxUSE_SONAME=no |
1e6feb95 | 1406 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1407 | DEFAULT_wxUSE_PROFILE=no |
1408 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1409 | DEFAULT_wxUSE_NO_RTTI=no |
1410 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1411 | DEFAULT_wxUSE_PERMISSIVE=no |
1412 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1413 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1414 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1415 | DEFAULT_wxUSE_MEM_TRACING=no | |
1416 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1417 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1418 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1419 | DEFAULT_wxUSE_APPLE_IEEE=no |
1420 | ||
1421 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1422 | DEFAULT_wxUSE_LOGWINDOW=no |
1423 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1424 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1425 | |
1426 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1427 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1428 | |
3e44f09d | 1429 | DEFAULT_wxUSE_REGEX=no |
10f2d63a VZ |
1430 | DEFAULT_wxUSE_ZLIB=no |
1431 | DEFAULT_wxUSE_LIBPNG=no | |
1432 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 1433 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 1434 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1435 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1436 | |
eb4efbdc | 1437 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 1438 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 1439 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1440 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
1441 | DEFAULT_wxUSE_DATETIME=no | |
1442 | DEFAULT_wxUSE_TIMEDATE=no | |
1443 | DEFAULT_wxUSE_TIMER=no | |
1444 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 1445 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 1446 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 1447 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 1448 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
1449 | DEFAULT_wxUSE_WAVE=no |
1450 | DEFAULT_wxUSE_INTL=no | |
1451 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 1452 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
1453 | DEFAULT_wxUSE_STREAMS=no |
1454 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
1455 | DEFAULT_wxUSE_OLE=no |
1456 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 1457 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 1458 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 1459 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 1460 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 1461 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 1462 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
1463 | |
1464 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
1465 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
1466 | DEFAULT_wxUSE_POSTSCRIPT=no | |
1467 | ||
1468 | DEFAULT_wxUSE_X_RESOURCES=no | |
1469 | DEFAULT_wxUSE_CLIPBOARD=no | |
1470 | DEFAULT_wxUSE_TOOLTIPS=no | |
1471 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 1472 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
1473 | DEFAULT_wxUSE_SPLINES=no |
1474 | ||
1475 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
1476 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
1477 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
1478 | ||
1479 | DEFAULT_wxUSE_PROLOGIO=no | |
1480 | DEFAULT_wxUSE_RESOURCES=no | |
1481 | DEFAULT_wxUSE_CONSTRAINTS=no | |
1482 | DEFAULT_wxUSE_IPC=no | |
1483 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 1484 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 1485 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 1486 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 1487 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 1488 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
1489 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
1490 | DEFAULT_wxUSE_PROTOCOL=no | |
1491 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
1492 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
1493 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
1494 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 1495 | |
10f2d63a | 1496 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
1497 | DEFAULT_wxUSE_CHOICEDLG=no |
1498 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 1499 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 1500 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 1501 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
1502 | DEFAULT_wxUSE_FONTDLG=no |
1503 | DEFAULT_wxUSE_MSGDLG=no | |
1504 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 1505 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 1506 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
1507 | DEFAULT_wxUSE_STARTUP_TIPS=no |
1508 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
1509 | DEFAULT_wxUSE_WIZARDDLG=no |
1510 | ||
1e6feb95 | 1511 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
1512 | DEFAULT_wxUSE_MINIFRAME=no |
1513 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 1514 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
1515 | DEFAULT_wxUSE_FS_INET=no |
1516 | DEFAULT_wxUSE_FS_ZIP=no | |
1517 | DEFAULT_wxUSE_BUSYINFO=no | |
1518 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 1519 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
1520 | |
1521 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 1522 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 1523 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
1524 | DEFAULT_wxUSE_CALCTRL=no |
1525 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
1526 | DEFAULT_wxUSE_CHECKBOX=no |
1527 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 1528 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a VZ |
1529 | DEFAULT_wxUSE_COMBOBOX=no |
1530 | DEFAULT_wxUSE_GAUGE=no | |
1531 | DEFAULT_wxUSE_GRID=no | |
1532 | DEFAULT_wxUSE_NEW_GRID=no | |
1533 | DEFAULT_wxUSE_IMAGLIST=no | |
1534 | DEFAULT_wxUSE_LISTBOX=no | |
1535 | DEFAULT_wxUSE_LISTCTRL=no | |
1536 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 1537 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
1538 | DEFAULT_wxUSE_RADIOBOX=no |
1539 | DEFAULT_wxUSE_RADIOBTN=no | |
1540 | DEFAULT_wxUSE_SASH=no | |
1541 | DEFAULT_wxUSE_SCROLLBAR=no | |
1542 | DEFAULT_wxUSE_SLIDER=no | |
1543 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 1544 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
1545 | DEFAULT_wxUSE_SPLITTER=no |
1546 | DEFAULT_wxUSE_STATBMP=no | |
1547 | DEFAULT_wxUSE_STATBOX=no | |
1548 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 1549 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
1550 | DEFAULT_wxUSE_STATUSBAR=yes |
1551 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1552 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 1553 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 1554 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
1555 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
1556 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 1557 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 1558 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 1559 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
1560 | |
1561 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1562 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
1563 | DEFAULT_wxUSE_WCSRTOMBS=no |
1564 | ||
edae8572 | 1565 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 1566 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
1567 | DEFAULT_wxUSE_GIF=no |
1568 | DEFAULT_wxUSE_PCX=no | |
1569 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 1570 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 1571 | DEFAULT_wxUSE_XPM=no |
658974ae | 1572 | DEFAULT_wxUSE_ICO_CUR=no |
10f2d63a | 1573 | else |
1e6feb95 VZ |
1574 | DEFAULT_wxUSE_UNIVERSAL=no |
1575 | ||
d8356fa3 VZ |
1576 | DEFAULT_wxUSE_NANOX=no |
1577 | ||
10f2d63a VZ |
1578 | DEFAULT_wxUSE_THREADS=yes |
1579 | ||
1580 | DEFAULT_wxUSE_SHARED=yes | |
3a922bb4 | 1581 | DEFAULT_wxUSE_SONAME=no |
10f2d63a VZ |
1582 | DEFAULT_wxUSE_OPTIMISE=yes |
1583 | DEFAULT_wxUSE_PROFILE=no | |
1584 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1585 | DEFAULT_wxUSE_NO_RTTI=no |
1586 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1587 | DEFAULT_wxUSE_PERMISSIVE=no |
1588 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
1589 | DEFAULT_wxUSE_DEBUG_INFO=no | |
1590 | DEFAULT_wxUSE_DEBUG_GDB=no | |
1591 | DEFAULT_wxUSE_MEM_TRACING=no | |
1592 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1593 | DEFAULT_wxUSE_DMALLOC=no | |
a7ae7112 | 1594 | DEFAULT_wxUSE_PRECOMP=no |
10f2d63a VZ |
1595 | DEFAULT_wxUSE_APPLE_IEEE=yes |
1596 | ||
1597 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
1598 | DEFAULT_wxUSE_LOGWINDOW=yes |
1599 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 1600 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
1601 | |
1602 | DEFAULT_wxUSE_GUI=yes | |
1603 | ||
831b3152 | 1604 | DEFAULT_wxUSE_REGEX=yes |
10f2d63a VZ |
1605 | DEFAULT_wxUSE_ZLIB=yes |
1606 | DEFAULT_wxUSE_LIBPNG=yes | |
1607 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 1608 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 1609 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 1610 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 1611 | |
eb4efbdc | 1612 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 1613 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 1614 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
1615 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
1616 | DEFAULT_wxUSE_DATETIME=yes | |
1617 | DEFAULT_wxUSE_TIMEDATE=no | |
1618 | DEFAULT_wxUSE_TIMER=yes | |
1619 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 1620 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 1621 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 1622 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 1623 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
1624 | DEFAULT_wxUSE_WAVE=no |
1625 | DEFAULT_wxUSE_INTL=yes | |
1626 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 1627 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
1628 | DEFAULT_wxUSE_STREAMS=yes |
1629 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
1630 | DEFAULT_wxUSE_OLE=yes |
1631 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 1632 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 1633 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 1634 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 1635 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 1636 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 1637 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
1638 | |
1639 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
1640 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
1641 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
1642 | ||
1643 | DEFAULT_wxUSE_X_RESOURCES=no | |
1644 | DEFAULT_wxUSE_CLIPBOARD=yes | |
1645 | DEFAULT_wxUSE_TOOLTIPS=yes | |
1646 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 1647 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
1648 | DEFAULT_wxUSE_SPLINES=yes |
1649 | ||
1650 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
1651 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
1652 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
1653 | ||
2b5f62a0 VZ |
1654 | DEFAULT_wxUSE_PROLOGIO=no |
1655 | DEFAULT_wxUSE_RESOURCES=no | |
10f2d63a VZ |
1656 | DEFAULT_wxUSE_CONSTRAINTS=yes |
1657 | DEFAULT_wxUSE_IPC=yes | |
1658 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 1659 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 1660 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 1661 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 1662 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 1663 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 1664 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
1665 | DEFAULT_wxUSE_PROTOCOL=yes |
1666 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
1667 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
1668 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
1669 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
1670 | |
1671 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
1672 | DEFAULT_wxUSE_CHOICEDLG=yes |
1673 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 1674 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 1675 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 1676 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
1677 | DEFAULT_wxUSE_FONTDLG=yes |
1678 | DEFAULT_wxUSE_MSGDLG=yes | |
1679 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 1680 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 1681 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
1682 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
1683 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
1684 | DEFAULT_wxUSE_WIZARDDLG=yes |
1685 | ||
1e6feb95 | 1686 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
1687 | DEFAULT_wxUSE_MINIFRAME=yes |
1688 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 1689 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
1690 | DEFAULT_wxUSE_FS_INET=yes |
1691 | DEFAULT_wxUSE_FS_ZIP=yes | |
1692 | DEFAULT_wxUSE_BUSYINFO=yes | |
1693 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
1694 | DEFAULT_wxUSE_VALIDATORS=yes | |
1695 | ||
1696 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 1697 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 1698 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
1699 | DEFAULT_wxUSE_CALCTRL=yes |
1700 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
1701 | DEFAULT_wxUSE_CHECKBOX=yes |
1702 | DEFAULT_wxUSE_CHECKLST=yes | |
1703 | DEFAULT_wxUSE_CHOICE=yes | |
1704 | DEFAULT_wxUSE_COMBOBOX=yes | |
1705 | DEFAULT_wxUSE_GAUGE=yes | |
1706 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 1707 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
1708 | DEFAULT_wxUSE_IMAGLIST=yes |
1709 | DEFAULT_wxUSE_LISTBOX=yes | |
1710 | DEFAULT_wxUSE_LISTCTRL=yes | |
1711 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 1712 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
1713 | DEFAULT_wxUSE_RADIOBOX=yes |
1714 | DEFAULT_wxUSE_RADIOBTN=yes | |
1715 | DEFAULT_wxUSE_SASH=yes | |
1716 | DEFAULT_wxUSE_SCROLLBAR=yes | |
1717 | DEFAULT_wxUSE_SLIDER=yes | |
1718 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 1719 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
1720 | DEFAULT_wxUSE_SPLITTER=yes |
1721 | DEFAULT_wxUSE_STATBMP=yes | |
1722 | DEFAULT_wxUSE_STATBOX=yes | |
1723 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 1724 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
1725 | DEFAULT_wxUSE_STATUSBAR=yes |
1726 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 1727 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 1728 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 1729 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
1730 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
1731 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 1732 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 1733 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 1734 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
1735 | |
1736 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 1737 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
1738 | DEFAULT_wxUSE_WCSRTOMBS=no |
1739 | ||
edae8572 | 1740 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 1741 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
1742 | DEFAULT_wxUSE_GIF=yes |
1743 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 1744 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 1745 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 1746 | DEFAULT_wxUSE_XPM=yes |
658974ae | 1747 | DEFAULT_wxUSE_ICO_CUR=yes |
10f2d63a VZ |
1748 | fi |
1749 | ||
8284b0c5 MB |
1750 | |
1751 | ||
10f2d63a | 1752 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
1753 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
1754 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
1755 | has_toolkit_in_cache=1 |
1756 | eval "DEFAULT_$LINE" | |
1757 | eval "CACHE_$toolkit=1" | |
1758 | fi | |
1759 | done | |
1760 | ||
8284b0c5 MB |
1761 | |
1762 | ||
5005acfe VZ |
1763 | enablestring= |
1764 | echo $ac_n "checking for --${enablestring:-enable}-gui""... $ac_c" 1>&6 | |
2b5f62a0 | 1765 | echo "configure:1766: checking for --${enablestring:-enable}-gui" >&5 |
10f2d63a VZ |
1766 | no_cache=0 |
1767 | # Check whether --enable-gui or --disable-gui was given. | |
1768 | if test "${enable_gui+set}" = set; then | |
1769 | enableval="$enable_gui" | |
a0b9e27f | 1770 | |
10f2d63a VZ |
1771 | if test "$enableval" = yes; then |
1772 | ac_cv_use_gui='wxUSE_GUI=yes' | |
1773 | else | |
1774 | ac_cv_use_gui='wxUSE_GUI=no' | |
1775 | fi | |
a0b9e27f | 1776 | |
10f2d63a | 1777 | else |
a0b9e27f | 1778 | |
10f2d63a VZ |
1779 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
1780 | if test "x$LINE" != x ; then | |
1781 | eval "DEFAULT_$LINE" | |
1782 | else | |
1783 | no_cache=1 | |
1784 | fi | |
1785 | ||
1786 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
a0b9e27f MB |
1787 | |
1788 | fi | |
10f2d63a VZ |
1789 | |
1790 | ||
1791 | eval "$ac_cv_use_gui" | |
1792 | if test "$no_cache" != 1; then | |
1793 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
1794 | fi | |
1795 | ||
1796 | if test "$wxUSE_GUI" = yes; then | |
a0b9e27f | 1797 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 1798 | else |
a0b9e27f | 1799 | echo "$ac_t""no" 1>&6 |
10f2d63a | 1800 | fi |
a0b9e27f | 1801 | |
10f2d63a | 1802 | |
b12915c1 | 1803 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 1804 | |
8284b0c5 | 1805 | |
5005acfe VZ |
1806 | enablestring= |
1807 | echo $ac_n "checking for --${enablestring:-enable}-universal""... $ac_c" 1>&6 | |
2b5f62a0 | 1808 | echo "configure:1809: checking for --${enablestring:-enable}-universal" >&5 |
1e6feb95 VZ |
1809 | no_cache=0 |
1810 | # Check whether --enable-universal or --disable-universal was given. | |
1811 | if test "${enable_universal+set}" = set; then | |
1812 | enableval="$enable_universal" | |
a0b9e27f | 1813 | |
1e6feb95 VZ |
1814 | if test "$enableval" = yes; then |
1815 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
1816 | else | |
1817 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
1818 | fi | |
a0b9e27f | 1819 | |
1e6feb95 | 1820 | else |
a0b9e27f | 1821 | |
1e6feb95 VZ |
1822 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
1823 | if test "x$LINE" != x ; then | |
1824 | eval "DEFAULT_$LINE" | |
1825 | else | |
1826 | no_cache=1 | |
1827 | fi | |
1828 | ||
1829 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
a0b9e27f MB |
1830 | |
1831 | fi | |
1e6feb95 VZ |
1832 | |
1833 | ||
1834 | eval "$ac_cv_use_universal" | |
1835 | if test "$no_cache" != 1; then | |
1836 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
1837 | fi | |
1838 | ||
1839 | if test "$wxUSE_UNIVERSAL" = yes; then | |
a0b9e27f | 1840 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 1841 | else |
a0b9e27f | 1842 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 1843 | fi |
a0b9e27f | 1844 | |
10f2d63a VZ |
1845 | # Check whether --with-gtk or --without-gtk was given. |
1846 | if test "${with_gtk+set}" = set; then | |
1847 | withval="$with_gtk" | |
1848 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1849 | fi |
10f2d63a VZ |
1850 | |
1851 | # Check whether --with-motif or --without-motif was given. | |
1852 | if test "${with_motif+set}" = set; then | |
1853 | withval="$with_motif" | |
1854 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1855 | fi |
10f2d63a | 1856 | |
b4085ce6 GD |
1857 | # Check whether --with-mac or --without-mac was given. |
1858 | if test "${with_mac+set}" = set; then | |
1859 | withval="$with_mac" | |
1860 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
a0b9e27f | 1861 | fi |
b4085ce6 | 1862 | |
10f2d63a VZ |
1863 | # Check whether --with-wine or --without-wine was given. |
1864 | if test "${with_wine+set}" = set; then | |
1865 | withval="$with_wine" | |
1866 | wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1867 | fi |
10f2d63a | 1868 | |
77e13408 RL |
1869 | # Check whether --with-msw or --without-msw was given. |
1870 | if test "${with_msw+set}" = set; then | |
1871 | withval="$with_msw" | |
b4efce5e | 1872 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1873 | fi |
10f2d63a | 1874 | |
e07802fc VZ |
1875 | # Check whether --with-pm or --without-pm was given. |
1876 | if test "${with_pm+set}" = set; then | |
1877 | withval="$with_pm" | |
1878 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1879 | fi |
698dcdb6 | 1880 | |
1e6feb95 VZ |
1881 | # Check whether --with-mgl or --without-mgl was given. |
1882 | if test "${with_mgl+set}" = set; then | |
1883 | withval="$with_mgl" | |
6c657b52 | 1884 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1885 | fi |
1e6feb95 | 1886 | |
1725144d RR |
1887 | # Check whether --with-microwin or --without-microwin was given. |
1888 | if test "${with_microwin+set}" = set; then | |
1889 | withval="$with_microwin" | |
1890 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
a0b9e27f | 1891 | fi |
1725144d | 1892 | |
f79bd02d JS |
1893 | # Check whether --with-x11 or --without-x11 was given. |
1894 | if test "${with_x11+set}" = set; then | |
1895 | withval="$with_x11" | |
3c011993 | 1896 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
a0b9e27f | 1897 | fi |
10f2d63a | 1898 | |
a0b9e27f | 1899 | |
5005acfe VZ |
1900 | enablestring= |
1901 | echo $ac_n "checking for --${enablestring:-enable}-nanox""... $ac_c" 1>&6 | |
2b5f62a0 | 1902 | echo "configure:1903: checking for --${enablestring:-enable}-nanox" >&5 |
d8356fa3 | 1903 | no_cache=0 |
ba875e66 VZ |
1904 | # Check whether --enable-nanox or --disable-nanox was given. |
1905 | if test "${enable_nanox+set}" = set; then | |
1906 | enableval="$enable_nanox" | |
a0b9e27f | 1907 | |
d8356fa3 | 1908 | if test "$enableval" = yes; then |
ba875e66 | 1909 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 1910 | else |
ba875e66 | 1911 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 1912 | fi |
a0b9e27f | 1913 | |
d8356fa3 | 1914 | else |
a0b9e27f | 1915 | |
d8356fa3 VZ |
1916 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
1917 | if test "x$LINE" != x ; then | |
1918 | eval "DEFAULT_$LINE" | |
1919 | else | |
1920 | no_cache=1 | |
1921 | fi | |
1922 | ||
ba875e66 | 1923 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
a0b9e27f MB |
1924 | |
1925 | fi | |
d8356fa3 VZ |
1926 | |
1927 | ||
ba875e66 | 1928 | eval "$ac_cv_use_nanox" |
d8356fa3 | 1929 | if test "$no_cache" != 1; then |
ba875e66 | 1930 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
1931 | fi |
1932 | ||
1933 | if test "$wxUSE_NANOX" = yes; then | |
a0b9e27f | 1934 | echo "$ac_t""yes" 1>&6 |
d8356fa3 | 1935 | else |
a0b9e27f | 1936 | echo "$ac_t""no" 1>&6 |
d8356fa3 | 1937 | fi |
a0b9e27f | 1938 | |
8284b0c5 | 1939 | |
d74f4b5a | 1940 | |
5005acfe VZ |
1941 | enablestring= |
1942 | echo $ac_n "checking for --${enablestring:-enable}-gtk2""... $ac_c" 1>&6 | |
2b5f62a0 | 1943 | echo "configure:1944: checking for --${enablestring:-enable}-gtk2" >&5 |
d74f4b5a VZ |
1944 | no_cache=0 |
1945 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
1946 | if test "${enable_gtk2+set}" = set; then |
1947 | enableval="$enable_gtk2" | |
a0b9e27f | 1948 | |
d74f4b5a VZ |
1949 | if test "$enableval" = yes; then |
1950 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
1951 | else | |
1952 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
1953 | fi | |
a0b9e27f | 1954 | |
10f2d63a | 1955 | else |
a0b9e27f | 1956 | |
d74f4b5a VZ |
1957 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
1958 | if test "x$LINE" != x ; then | |
1959 | eval "DEFAULT_$LINE" | |
1960 | else | |
1961 | no_cache=1 | |
1962 | fi | |
1963 | ||
1964 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
a0b9e27f MB |
1965 | |
1966 | fi | |
52127426 | 1967 | |
328a083c | 1968 | |
d74f4b5a VZ |
1969 | eval "$ac_cv_use_gtk2" |
1970 | if test "$no_cache" != 1; then | |
1971 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
1972 | fi | |
1973 | ||
1974 | if test "$wxUSE_GTK2" = yes; then | |
a0b9e27f | 1975 | echo "$ac_t""yes" 1>&6 |
d74f4b5a | 1976 | else |
a0b9e27f | 1977 | echo "$ac_t""no" 1>&6 |
d74f4b5a | 1978 | fi |
a0b9e27f | 1979 | |
d74f4b5a | 1980 | |
5c6fa7d2 | 1981 | |
a0b9e27f | 1982 | echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6 |
2b5f62a0 | 1983 | echo "configure:1984: checking for --with-libpng" >&5 |
8284b0c5 | 1984 | no_cache=0 |
a0b9e27f | 1985 | # Check whether --with-libpng or --without-libpng was given. |
b12915c1 VZ |
1986 | if test "${with_libpng+set}" = set; then |
1987 | withval="$with_libpng" | |
a0b9e27f | 1988 | |
10f2d63a | 1989 | if test "$withval" = yes; then |
b12915c1 | 1990 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 1991 | elif test "$withval" = no; then |
b12915c1 | 1992 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
1993 | elif test "$withval" = sys; then |
1994 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
1995 | elif test "$withval" = builtin; then |
1996 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 1997 | else |
a0b9e27f | 1998 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 1999 | fi |
a0b9e27f | 2000 | |
10f2d63a | 2001 | else |
a0b9e27f | 2002 | |
b12915c1 | 2003 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2004 | if test "x$LINE" != x ; then |
2005 | eval "DEFAULT_$LINE" | |
2006 | else | |
2007 | no_cache=1 | |
2008 | fi | |
2009 | ||
b12915c1 | 2010 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
a0b9e27f MB |
2011 | |
2012 | fi | |
10f2d63a VZ |
2013 | |
2014 | ||
b12915c1 | 2015 | eval "$ac_cv_use_libpng" |
10f2d63a | 2016 | if test "$no_cache" != 1; then |
b12915c1 | 2017 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2018 | fi |
2019 | ||
b12915c1 | 2020 | if test "$wxUSE_LIBPNG" = yes; then |
a0b9e27f | 2021 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2022 | elif test "$wxUSE_LIBPNG" = no; then |
a0b9e27f | 2023 | echo "$ac_t""no" 1>&6 |
422107f9 | 2024 | elif test "$wxUSE_LIBPNG" = sys; then |
a0b9e27f | 2025 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2026 | elif test "$wxUSE_LIBPNG" = builtin; then |
a0b9e27f | 2027 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2028 | else |
a0b9e27f | 2029 | { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2030 | fi |
a0b9e27f | 2031 | |
10f2d63a | 2032 | |
a0b9e27f | 2033 | echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6 |
2b5f62a0 | 2034 | echo "configure:2035: checking for --with-libjpeg" >&5 |
10f2d63a | 2035 | no_cache=0 |
a0b9e27f | 2036 | # Check whether --with-libjpeg or --without-libjpeg was given. |
b12915c1 VZ |
2037 | if test "${with_libjpeg+set}" = set; then |
2038 | withval="$with_libjpeg" | |
a0b9e27f | 2039 | |
10f2d63a | 2040 | if test "$withval" = yes; then |
b12915c1 | 2041 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2042 | elif test "$withval" = no; then |
b12915c1 | 2043 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2044 | elif test "$withval" = sys; then |
2045 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2046 | elif test "$withval" = builtin; then |
2047 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2048 | else |
a0b9e27f | 2049 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2050 | fi |
a0b9e27f | 2051 | |
10f2d63a | 2052 | else |
a0b9e27f | 2053 | |
b12915c1 | 2054 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2055 | if test "x$LINE" != x ; then |
2056 | eval "DEFAULT_$LINE" | |
2057 | else | |
2058 | no_cache=1 | |
2059 | fi | |
2060 | ||
b12915c1 | 2061 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
a0b9e27f MB |
2062 | |
2063 | fi | |
10f2d63a VZ |
2064 | |
2065 | ||
b12915c1 | 2066 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2067 | if test "$no_cache" != 1; then |
b12915c1 | 2068 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2069 | fi |
2070 | ||
b12915c1 | 2071 | if test "$wxUSE_LIBJPEG" = yes; then |
a0b9e27f | 2072 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2073 | elif test "$wxUSE_LIBJPEG" = no; then |
a0b9e27f | 2074 | echo "$ac_t""no" 1>&6 |
422107f9 | 2075 | elif test "$wxUSE_LIBJPEG" = sys; then |
a0b9e27f | 2076 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2077 | elif test "$wxUSE_LIBJPEG" = builtin; then |
a0b9e27f | 2078 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2079 | else |
a0b9e27f | 2080 | { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2081 | fi |
a0b9e27f | 2082 | |
10f2d63a | 2083 | |
a0b9e27f | 2084 | echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6 |
2b5f62a0 | 2085 | echo "configure:2086: checking for --with-libtiff" >&5 |
10f2d63a | 2086 | no_cache=0 |
a0b9e27f | 2087 | # Check whether --with-libtiff or --without-libtiff was given. |
b12915c1 VZ |
2088 | if test "${with_libtiff+set}" = set; then |
2089 | withval="$with_libtiff" | |
a0b9e27f | 2090 | |
10f2d63a | 2091 | if test "$withval" = yes; then |
b12915c1 | 2092 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2093 | elif test "$withval" = no; then |
b12915c1 | 2094 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2095 | elif test "$withval" = sys; then |
2096 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2097 | elif test "$withval" = builtin; then |
2098 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2099 | else |
a0b9e27f | 2100 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2101 | fi |
a0b9e27f | 2102 | |
10f2d63a | 2103 | else |
a0b9e27f | 2104 | |
b12915c1 | 2105 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2106 | if test "x$LINE" != x ; then |
2107 | eval "DEFAULT_$LINE" | |
2108 | else | |
2109 | no_cache=1 | |
2110 | fi | |
2111 | ||
b12915c1 | 2112 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
a0b9e27f MB |
2113 | |
2114 | fi | |
10f2d63a VZ |
2115 | |
2116 | ||
b12915c1 | 2117 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2118 | if test "$no_cache" != 1; then |
b12915c1 | 2119 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2120 | fi |
2121 | ||
b12915c1 | 2122 | if test "$wxUSE_LIBTIFF" = yes; then |
a0b9e27f | 2123 | echo "$ac_t""yes" 1>&6 |
0dcf9893 | 2124 | elif test "$wxUSE_LIBTIFF" = no; then |
a0b9e27f | 2125 | echo "$ac_t""no" 1>&6 |
0dcf9893 | 2126 | elif test "$wxUSE_LIBTIFF" = sys; then |
a0b9e27f | 2127 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2128 | elif test "$wxUSE_LIBTIFF" = builtin; then |
a0b9e27f | 2129 | echo "$ac_t""builtin version" 1>&6 |
0dcf9893 | 2130 | else |
a0b9e27f | 2131 | { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2132 | fi |
a0b9e27f | 2133 | |
10f2d63a | 2134 | |
a0b9e27f | 2135 | echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6 |
2b5f62a0 | 2136 | echo "configure:2137: checking for --with-opengl" >&5 |
10f2d63a | 2137 | no_cache=0 |
a0b9e27f | 2138 | # Check whether --with-opengl or --without-opengl was given. |
b12915c1 VZ |
2139 | if test "${with_opengl+set}" = set; then |
2140 | withval="$with_opengl" | |
a0b9e27f | 2141 | |
10f2d63a | 2142 | if test "$withval" = yes; then |
b12915c1 | 2143 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2144 | else |
b12915c1 | 2145 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2146 | fi |
a0b9e27f | 2147 | |
10f2d63a | 2148 | else |
a0b9e27f | 2149 | |
b12915c1 | 2150 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2151 | if test "x$LINE" != x ; then |
2152 | eval "DEFAULT_$LINE" | |
2153 | else | |
2154 | no_cache=1 | |
2155 | fi | |
2156 | ||
b12915c1 | 2157 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
a0b9e27f MB |
2158 | |
2159 | fi | |
10f2d63a VZ |
2160 | |
2161 | ||
b12915c1 | 2162 | eval "$ac_cv_use_opengl" |
10f2d63a | 2163 | if test "$no_cache" != 1; then |
b12915c1 | 2164 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2165 | fi |
2166 | ||
b12915c1 | 2167 | if test "$wxUSE_OPENGL" = yes; then |
a0b9e27f | 2168 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2169 | else |
a0b9e27f | 2170 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2171 | fi |
a0b9e27f | 2172 | |
10f2d63a | 2173 | |
b12915c1 VZ |
2174 | fi |
2175 | ||
5c6fa7d2 | 2176 | |
a0b9e27f | 2177 | echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6 |
2b5f62a0 | 2178 | echo "configure:2179: checking for --with-dmalloc" >&5 |
8284b0c5 | 2179 | no_cache=0 |
a0b9e27f | 2180 | # Check whether --with-dmalloc or --without-dmalloc was given. |
b12915c1 VZ |
2181 | if test "${with_dmalloc+set}" = set; then |
2182 | withval="$with_dmalloc" | |
a0b9e27f | 2183 | |
c7a2bf27 | 2184 | if test "$withval" = yes; then |
b12915c1 | 2185 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2186 | else |
b12915c1 | 2187 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2188 | fi |
a0b9e27f | 2189 | |
c7a2bf27 | 2190 | else |
a0b9e27f | 2191 | |
b12915c1 | 2192 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2193 | if test "x$LINE" != x ; then |
2194 | eval "DEFAULT_$LINE" | |
2195 | else | |
2196 | no_cache=1 | |
2197 | fi | |
2198 | ||
b12915c1 | 2199 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
a0b9e27f MB |
2200 | |
2201 | fi | |
c7a2bf27 RR |
2202 | |
2203 | ||
b12915c1 | 2204 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2205 | if test "$no_cache" != 1; then |
b12915c1 | 2206 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2207 | fi |
2208 | ||
b12915c1 | 2209 | if test "$wxUSE_DMALLOC" = yes; then |
a0b9e27f | 2210 | echo "$ac_t""yes" 1>&6 |
c7a2bf27 | 2211 | else |
a0b9e27f | 2212 | echo "$ac_t""no" 1>&6 |
c7a2bf27 | 2213 | fi |
a0b9e27f | 2214 | |
c7a2bf27 | 2215 | |
a0b9e27f | 2216 | echo $ac_n "checking for --with-regex""... $ac_c" 1>&6 |
2b5f62a0 | 2217 | echo "configure:2218: checking for --with-regex" >&5 |
3e44f09d | 2218 | no_cache=0 |
a0b9e27f | 2219 | # Check whether --with-regex or --without-regex was given. |
3e44f09d VZ |
2220 | if test "${with_regex+set}" = set; then |
2221 | withval="$with_regex" | |
a0b9e27f | 2222 | |
3e44f09d VZ |
2223 | if test "$withval" = yes; then |
2224 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2225 | elif test "$withval" = no; then | |
2226 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2227 | elif test "$withval" = sys; then | |
2228 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2229 | elif test "$withval" = builtin; then |
2230 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2231 | else |
a0b9e27f | 2232 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2233 | fi |
a0b9e27f | 2234 | |
3e44f09d | 2235 | else |
a0b9e27f | 2236 | |
3e44f09d VZ |
2237 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2238 | if test "x$LINE" != x ; then | |
2239 | eval "DEFAULT_$LINE" | |
2240 | else | |
2241 | no_cache=1 | |
2242 | fi | |
2243 | ||
2244 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
a0b9e27f MB |
2245 | |
2246 | fi | |
3e44f09d VZ |
2247 | |
2248 | ||
2249 | eval "$ac_cv_use_regex" | |
2250 | if test "$no_cache" != 1; then | |
2251 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2252 | fi | |
2253 | ||
2254 | if test "$wxUSE_REGEX" = yes; then | |
a0b9e27f | 2255 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 2256 | elif test "$wxUSE_REGEX" = no; then |
a0b9e27f | 2257 | echo "$ac_t""no" 1>&6 |
3e44f09d | 2258 | elif test "$wxUSE_REGEX" = sys; then |
a0b9e27f | 2259 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2260 | elif test "$wxUSE_REGEX" = builtin; then |
a0b9e27f | 2261 | echo "$ac_t""builtin version" 1>&6 |
3e44f09d | 2262 | else |
a0b9e27f | 2263 | { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
3e44f09d | 2264 | fi |
a0b9e27f | 2265 | |
3e44f09d | 2266 | |
a0b9e27f | 2267 | echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6 |
2b5f62a0 | 2268 | echo "configure:2269: checking for --with-zlib" >&5 |
10f2d63a | 2269 | no_cache=0 |
a0b9e27f | 2270 | # Check whether --with-zlib or --without-zlib was given. |
b12915c1 VZ |
2271 | if test "${with_zlib+set}" = set; then |
2272 | withval="$with_zlib" | |
a0b9e27f | 2273 | |
10f2d63a | 2274 | if test "$withval" = yes; then |
b12915c1 | 2275 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2276 | elif test "$withval" = no; then |
b12915c1 | 2277 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2278 | elif test "$withval" = sys; then |
2279 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2280 | elif test "$withval" = builtin; then |
2281 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2282 | else |
a0b9e27f | 2283 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2284 | fi |
a0b9e27f | 2285 | |
10f2d63a | 2286 | else |
a0b9e27f | 2287 | |
b12915c1 | 2288 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2289 | if test "x$LINE" != x ; then |
2290 | eval "DEFAULT_$LINE" | |
2291 | else | |
2292 | no_cache=1 | |
2293 | fi | |
2294 | ||
b12915c1 | 2295 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
a0b9e27f MB |
2296 | |
2297 | fi | |
10f2d63a VZ |
2298 | |
2299 | ||
b12915c1 | 2300 | eval "$ac_cv_use_zlib" |
10f2d63a | 2301 | if test "$no_cache" != 1; then |
b12915c1 | 2302 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2303 | fi |
2304 | ||
b12915c1 | 2305 | if test "$wxUSE_ZLIB" = yes; then |
a0b9e27f | 2306 | echo "$ac_t""yes" 1>&6 |
422107f9 | 2307 | elif test "$wxUSE_ZLIB" = no; then |
a0b9e27f | 2308 | echo "$ac_t""no" 1>&6 |
422107f9 | 2309 | elif test "$wxUSE_ZLIB" = sys; then |
a0b9e27f | 2310 | echo "$ac_t""system version" 1>&6 |
4f14bcd8 | 2311 | elif test "$wxUSE_ZLIB" = builtin; then |
a0b9e27f | 2312 | echo "$ac_t""builtin version" 1>&6 |
422107f9 | 2313 | else |
a0b9e27f | 2314 | { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; } |
10f2d63a | 2315 | fi |
a0b9e27f | 2316 | |
10f2d63a | 2317 | |
a0b9e27f | 2318 | echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6 |
2b5f62a0 | 2319 | echo "configure:2320: checking for --with-odbc" >&5 |
10f2d63a | 2320 | no_cache=0 |
a0b9e27f | 2321 | # Check whether --with-odbc or --without-odbc was given. |
10f2d63a VZ |
2322 | if test "${with_odbc+set}" = set; then |
2323 | withval="$with_odbc" | |
a0b9e27f | 2324 | |
10f2d63a VZ |
2325 | if test "$withval" = yes; then |
2326 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
2327 | else | |
2328 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
2329 | fi | |
a0b9e27f | 2330 | |
10f2d63a | 2331 | else |
a0b9e27f | 2332 | |
10f2d63a VZ |
2333 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
2334 | if test "x$LINE" != x ; then | |
2335 | eval "DEFAULT_$LINE" | |
2336 | else | |
2337 | no_cache=1 | |
2338 | fi | |
2339 | ||
2340 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
a0b9e27f MB |
2341 | |
2342 | fi | |
10f2d63a VZ |
2343 | |
2344 | ||
2345 | eval "$ac_cv_use_odbc" | |
2346 | if test "$no_cache" != 1; then | |
2347 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
2348 | fi | |
2349 | ||
2350 | if test "$wxUSE_ODBC" = yes; then | |
a0b9e27f | 2351 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2352 | else |
a0b9e27f | 2353 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2354 | fi |
a0b9e27f | 2355 | |
52127426 | 2356 | |
8284b0c5 MB |
2357 | |
2358 | ||
5005acfe VZ |
2359 | enablestring= |
2360 | echo $ac_n "checking for --${enablestring:-enable}-shared""... $ac_c" 1>&6 | |
2b5f62a0 | 2361 | echo "configure:2362: checking for --${enablestring:-enable}-shared" >&5 |
10f2d63a VZ |
2362 | no_cache=0 |
2363 | # Check whether --enable-shared or --disable-shared was given. | |
2364 | if test "${enable_shared+set}" = set; then | |
2365 | enableval="$enable_shared" | |
a0b9e27f | 2366 | |
10f2d63a VZ |
2367 | if test "$enableval" = yes; then |
2368 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
2369 | else | |
2370 | ac_cv_use_shared='wxUSE_SHARED=no' | |
2371 | fi | |
a0b9e27f | 2372 | |
10f2d63a | 2373 | else |
a0b9e27f | 2374 | |
10f2d63a VZ |
2375 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
2376 | if test "x$LINE" != x ; then | |
2377 | eval "DEFAULT_$LINE" | |
2378 | else | |
2379 | no_cache=1 | |
2380 | fi | |
2381 | ||
2382 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
a0b9e27f MB |
2383 | |
2384 | fi | |
10f2d63a VZ |
2385 | |
2386 | ||
2387 | eval "$ac_cv_use_shared" | |
2388 | if test "$no_cache" != 1; then | |
2389 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
2390 | fi | |
2391 | ||
2392 | if test "$wxUSE_SHARED" = yes; then | |
a0b9e27f | 2393 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2394 | else |
a0b9e27f | 2395 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2396 | fi |
a0b9e27f | 2397 | |
10f2d63a | 2398 | |
5005acfe VZ |
2399 | enablestring= |
2400 | echo $ac_n "checking for --${enablestring:-enable}-soname""... $ac_c" 1>&6 | |
2b5f62a0 | 2401 | echo "configure:2402: checking for --${enablestring:-enable}-soname" >&5 |
00cf1208 | 2402 | no_cache=0 |
3a922bb4 RL |
2403 | # Check whether --enable-soname or --disable-soname was given. |
2404 | if test "${enable_soname+set}" = set; then | |
2405 | enableval="$enable_soname" | |
a0b9e27f | 2406 | |
00cf1208 | 2407 | if test "$enableval" = yes; then |
3a922bb4 | 2408 | ac_cv_use_soname='wxUSE_SONAME=yes' |
00cf1208 | 2409 | else |
3a922bb4 | 2410 | ac_cv_use_soname='wxUSE_SONAME=no' |
00cf1208 | 2411 | fi |
a0b9e27f | 2412 | |
00cf1208 | 2413 | else |
a0b9e27f | 2414 | |
3a922bb4 | 2415 | LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}` |
00cf1208 RR |
2416 | if test "x$LINE" != x ; then |
2417 | eval "DEFAULT_$LINE" | |
2418 | else | |
2419 | no_cache=1 | |
2420 | fi | |
2421 | ||
3a922bb4 | 2422 | ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME |
a0b9e27f MB |
2423 | |
2424 | fi | |
00cf1208 RR |
2425 | |
2426 | ||
3a922bb4 | 2427 | eval "$ac_cv_use_soname" |
00cf1208 | 2428 | if test "$no_cache" != 1; then |
3a922bb4 | 2429 | echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp |
00cf1208 RR |
2430 | fi |
2431 | ||
3a922bb4 | 2432 | if test "$wxUSE_SONAME" = yes; then |
a0b9e27f | 2433 | echo "$ac_t""yes" 1>&6 |
00cf1208 | 2434 | else |
a0b9e27f | 2435 | echo "$ac_t""no" 1>&6 |
00cf1208 | 2436 | fi |
a0b9e27f | 2437 | |
00cf1208 | 2438 | |
5005acfe VZ |
2439 | enablestring= |
2440 | echo $ac_n "checking for --${enablestring:-enable}-optimise""... $ac_c" 1>&6 | |
2b5f62a0 | 2441 | echo "configure:2442: checking for --${enablestring:-enable}-optimise" >&5 |
10f2d63a VZ |
2442 | no_cache=0 |
2443 | # Check whether --enable-optimise or --disable-optimise was given. | |
2444 | if test "${enable_optimise+set}" = set; then | |
2445 | enableval="$enable_optimise" | |
a0b9e27f | 2446 | |
10f2d63a VZ |
2447 | if test "$enableval" = yes; then |
2448 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
2449 | else | |
2450 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
2451 | fi | |
a0b9e27f | 2452 | |
10f2d63a | 2453 | else |
a0b9e27f | 2454 | |
10f2d63a VZ |
2455 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
2456 | if test "x$LINE" != x ; then | |
2457 | eval "DEFAULT_$LINE" | |
2458 | else | |
2459 | no_cache=1 | |
2460 | fi | |
2461 | ||
2462 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
a0b9e27f MB |
2463 | |
2464 | fi | |
10f2d63a VZ |
2465 | |
2466 | ||
2467 | eval "$ac_cv_use_optimise" | |
2468 | if test "$no_cache" != 1; then | |
2469 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
2470 | fi | |
2471 | ||
2472 | if test "$wxUSE_OPTIMISE" = yes; then | |
a0b9e27f | 2473 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2474 | else |
a0b9e27f | 2475 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2476 | fi |
a0b9e27f | 2477 | |
10f2d63a | 2478 | |
5005acfe VZ |
2479 | enablestring= |
2480 | echo $ac_n "checking for --${enablestring:-enable}-debug""... $ac_c" 1>&6 | |
2b5f62a0 | 2481 | echo "configure:2482: checking for --${enablestring:-enable}-debug" >&5 |
10f2d63a VZ |
2482 | no_cache=0 |
2483 | # Check whether --enable-debug or --disable-debug was given. | |
2484 | if test "${enable_debug+set}" = set; then | |
2485 | enableval="$enable_debug" | |
a0b9e27f | 2486 | |
10f2d63a VZ |
2487 | if test "$enableval" = yes; then |
2488 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
2489 | else | |
2490 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
2491 | fi | |
a0b9e27f | 2492 | |
10f2d63a | 2493 | else |
a0b9e27f | 2494 | |
10f2d63a VZ |
2495 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
2496 | if test "x$LINE" != x ; then | |
2497 | eval "DEFAULT_$LINE" | |
2498 | else | |
2499 | no_cache=1 | |
2500 | fi | |
2501 | ||
2502 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
a0b9e27f MB |
2503 | |
2504 | fi | |
10f2d63a VZ |
2505 | |
2506 | ||
2507 | eval "$ac_cv_use_debug" | |
2508 | if test "$no_cache" != 1; then | |
2509 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
2510 | fi | |
2511 | ||
2512 | if test "$wxUSE_DEBUG" = yes; then | |
a0b9e27f | 2513 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2514 | else |
a0b9e27f | 2515 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2516 | fi |
a0b9e27f | 2517 | |
52127426 | 2518 | |
8284b0c5 | 2519 | |
5005acfe VZ |
2520 | enablestring= |
2521 | echo $ac_n "checking for --${enablestring:-enable}-precomp""... $ac_c" 1>&6 | |
2b5f62a0 | 2522 | echo "configure:2523: checking for --${enablestring:-enable}-precomp" >&5 |
683dccda GD |
2523 | no_cache=0 |
2524 | # Check whether --enable-precomp or --disable-precomp was given. | |
2525 | if test "${enable_precomp+set}" = set; then | |
2526 | enableval="$enable_precomp" | |
a0b9e27f | 2527 | |
683dccda GD |
2528 | if test "$enableval" = yes; then |
2529 | ac_cv_use_precomp='wxUSE_PRECOMP=yes' | |
2530 | else | |
2531 | ac_cv_use_precomp='wxUSE_PRECOMP=no' | |
2532 | fi | |
a0b9e27f | 2533 | |
683dccda | 2534 | else |
a0b9e27f | 2535 | |
683dccda GD |
2536 | LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}` |
2537 | if test "x$LINE" != x ; then | |
2538 | eval "DEFAULT_$LINE" | |
2539 | else | |
2540 | no_cache=1 | |
2541 | fi | |
2542 | ||
2543 | ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP | |
a0b9e27f MB |
2544 | |
2545 | fi | |
683dccda GD |
2546 | |
2547 | ||
2548 | eval "$ac_cv_use_precomp" | |
2549 | if test "$no_cache" != 1; then | |
2550 | echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp | |
2551 | fi | |
2552 | ||
2553 | if test "$wxUSE_PRECOMP" = yes; then | |
a0b9e27f | 2554 | echo "$ac_t""yes" 1>&6 |
683dccda | 2555 | else |
a0b9e27f | 2556 | echo "$ac_t""no" 1>&6 |
683dccda | 2557 | fi |
a0b9e27f | 2558 | |
683dccda | 2559 | |
10f2d63a VZ |
2560 | if test "$wxUSE_DEBUG" = "yes"; then |
2561 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2562 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2563 | elif test "$wxUSE_DEBUG" = "no"; then | |
2564 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2565 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2566 | fi | |
2567 | ||
8284b0c5 | 2568 | |
5005acfe VZ |
2569 | enablestring= |
2570 | echo $ac_n "checking for --${enablestring:-enable}-debug_flag""... $ac_c" 1>&6 | |
2b5f62a0 | 2571 | echo "configure:2572: checking for --${enablestring:-enable}-debug_flag" >&5 |
10f2d63a VZ |
2572 | no_cache=0 |
2573 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
2574 | if test "${enable_debug_flag+set}" = set; then | |
2575 | enableval="$enable_debug_flag" | |
a0b9e27f | 2576 | |
10f2d63a VZ |
2577 | if test "$enableval" = yes; then |
2578 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
2579 | else | |
2580 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
2581 | fi | |
a0b9e27f | 2582 | |
10f2d63a | 2583 | else |
a0b9e27f | 2584 | |
10f2d63a VZ |
2585 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
2586 | if test "x$LINE" != x ; then | |
2587 | eval "DEFAULT_$LINE" | |
2588 | else | |
2589 | no_cache=1 | |
2590 | fi | |
2591 | ||
2592 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
a0b9e27f MB |
2593 | |
2594 | fi | |
10f2d63a VZ |
2595 | |
2596 | ||
2597 | eval "$ac_cv_use_debug_flag" | |
2598 | if test "$no_cache" != 1; then | |
2599 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
2600 | fi | |
2601 | ||
2602 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
a0b9e27f | 2603 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2604 | else |
a0b9e27f | 2605 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2606 | fi |
a0b9e27f | 2607 | |
10f2d63a | 2608 | |
5005acfe VZ |
2609 | enablestring= |
2610 | echo $ac_n "checking for --${enablestring:-enable}-debug_info""... $ac_c" 1>&6 | |
2b5f62a0 | 2611 | echo "configure:2612: checking for --${enablestring:-enable}-debug_info" >&5 |
10f2d63a VZ |
2612 | no_cache=0 |
2613 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
2614 | if test "${enable_debug_info+set}" = set; then | |
2615 | enableval="$enable_debug_info" | |
a0b9e27f | 2616 | |
10f2d63a VZ |
2617 | if test "$enableval" = yes; then |
2618 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
2619 | else | |
2620 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
2621 | fi | |
a0b9e27f | 2622 | |
10f2d63a | 2623 | else |
a0b9e27f | 2624 | |
10f2d63a VZ |
2625 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
2626 | if test "x$LINE" != x ; then | |
2627 | eval "DEFAULT_$LINE" | |
2628 | else | |
2629 | no_cache=1 | |
2630 | fi | |
2631 | ||
2632 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
a0b9e27f MB |
2633 | |
2634 | fi | |
10f2d63a VZ |
2635 | |
2636 | ||
2637 | eval "$ac_cv_use_debug_info" | |
2638 | if test "$no_cache" != 1; then | |
2639 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
2640 | fi | |
2641 | ||
2642 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
a0b9e27f | 2643 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2644 | else |
a0b9e27f | 2645 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2646 | fi |
a0b9e27f | 2647 | |
10f2d63a | 2648 | |
5005acfe VZ |
2649 | enablestring= |
2650 | echo $ac_n "checking for --${enablestring:-enable}-debug_gdb""... $ac_c" 1>&6 | |
2b5f62a0 | 2651 | echo "configure:2652: checking for --${enablestring:-enable}-debug_gdb" >&5 |
10f2d63a VZ |
2652 | no_cache=0 |
2653 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
2654 | if test "${enable_debug_gdb+set}" = set; then | |
2655 | enableval="$enable_debug_gdb" | |
a0b9e27f | 2656 | |
10f2d63a VZ |
2657 | if test "$enableval" = yes; then |
2658 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
2659 | else | |
2660 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
2661 | fi | |
a0b9e27f | 2662 | |
10f2d63a | 2663 | else |
a0b9e27f | 2664 | |
10f2d63a VZ |
2665 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
2666 | if test "x$LINE" != x ; then | |
2667 | eval "DEFAULT_$LINE" | |
2668 | else | |
2669 | no_cache=1 | |
2670 | fi | |
2671 | ||
2672 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
a0b9e27f MB |
2673 | |
2674 | fi | |
10f2d63a VZ |
2675 | |
2676 | ||
2677 | eval "$ac_cv_use_debug_gdb" | |
2678 | if test "$no_cache" != 1; then | |
2679 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
2680 | fi | |
2681 | ||
2682 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
a0b9e27f | 2683 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2684 | else |
a0b9e27f | 2685 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2686 | fi |
a0b9e27f | 2687 | |
10f2d63a | 2688 | |
5005acfe VZ |
2689 | enablestring= |
2690 | echo $ac_n "checking for --${enablestring:-enable}-debug_cntxt""... $ac_c" 1>&6 | |
2b5f62a0 | 2691 | echo "configure:2692: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
10f2d63a VZ |
2692 | no_cache=0 |
2693 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
2694 | if test "${enable_debug_cntxt+set}" = set; then | |
2695 | enableval="$enable_debug_cntxt" | |
a0b9e27f | 2696 | |
10f2d63a VZ |
2697 | if test "$enableval" = yes; then |
2698 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
2699 | else | |
2700 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
2701 | fi | |
a0b9e27f | 2702 | |
10f2d63a | 2703 | else |
a0b9e27f | 2704 | |
10f2d63a VZ |
2705 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
2706 | if test "x$LINE" != x ; then | |
2707 | eval "DEFAULT_$LINE" | |
2708 | else | |
2709 | no_cache=1 | |
2710 | fi | |
2711 | ||
2712 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
a0b9e27f MB |
2713 | |
2714 | fi | |
10f2d63a VZ |
2715 | |
2716 | ||
2717 | eval "$ac_cv_use_debug_cntxt" | |
2718 | if test "$no_cache" != 1; then | |
2719 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
2720 | fi | |
2721 | ||
2722 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
a0b9e27f | 2723 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2724 | else |
a0b9e27f | 2725 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2726 | fi |
a0b9e27f | 2727 | |
10f2d63a | 2728 | |
5005acfe VZ |
2729 | enablestring= |
2730 | echo $ac_n "checking for --${enablestring:-enable}-mem_tracing""... $ac_c" 1>&6 | |
2b5f62a0 | 2731 | echo "configure:2732: checking for --${enablestring:-enable}-mem_tracing" >&5 |
10f2d63a VZ |
2732 | no_cache=0 |
2733 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
2734 | if test "${enable_mem_tracing+set}" = set; then | |
2735 | enableval="$enable_mem_tracing" | |
a0b9e27f | 2736 | |
10f2d63a VZ |
2737 | if test "$enableval" = yes; then |
2738 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
2739 | else | |
2740 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
2741 | fi | |
a0b9e27f | 2742 | |
10f2d63a | 2743 | else |
a0b9e27f | 2744 | |
10f2d63a VZ |
2745 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
2746 | if test "x$LINE" != x ; then | |
2747 | eval "DEFAULT_$LINE" | |
2748 | else | |
2749 | no_cache=1 | |
2750 | fi | |
2751 | ||
2752 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
a0b9e27f MB |
2753 | |
2754 | fi | |
10f2d63a VZ |
2755 | |
2756 | ||
2757 | eval "$ac_cv_use_mem_tracing" | |
2758 | if test "$no_cache" != 1; then | |
2759 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
2760 | fi | |
2761 | ||
2762 | if test "$wxUSE_MEM_TRACING" = yes; then | |
a0b9e27f | 2763 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2764 | else |
a0b9e27f | 2765 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2766 | fi |
a0b9e27f | 2767 | |
10f2d63a | 2768 | |
5005acfe VZ |
2769 | enablestring= |
2770 | echo $ac_n "checking for --${enablestring:-enable}-profile""... $ac_c" 1>&6 | |
2b5f62a0 | 2771 | echo "configure:2772: checking for --${enablestring:-enable}-profile" >&5 |
10f2d63a VZ |
2772 | no_cache=0 |
2773 | # Check whether --enable-profile or --disable-profile was given. | |
2774 | if test "${enable_profile+set}" = set; then | |
2775 | enableval="$enable_profile" | |
a0b9e27f | 2776 | |
10f2d63a VZ |
2777 | if test "$enableval" = yes; then |
2778 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
2779 | else | |
2780 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
2781 | fi | |
a0b9e27f | 2782 | |
10f2d63a | 2783 | else |
a0b9e27f | 2784 | |
10f2d63a VZ |
2785 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
2786 | if test "x$LINE" != x ; then | |
2787 | eval "DEFAULT_$LINE" | |
2788 | else | |
2789 | no_cache=1 | |
2790 | fi | |
2791 | ||
2792 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
a0b9e27f MB |
2793 | |
2794 | fi | |
10f2d63a VZ |
2795 | |
2796 | ||
2797 | eval "$ac_cv_use_profile" | |
2798 | if test "$no_cache" != 1; then | |
2799 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
2800 | fi | |
2801 | ||
2802 | if test "$wxUSE_PROFILE" = yes; then | |
a0b9e27f | 2803 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2804 | else |
a0b9e27f | 2805 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2806 | fi |
a0b9e27f | 2807 | |
10f2d63a | 2808 | |
5005acfe VZ |
2809 | enablestring= |
2810 | echo $ac_n "checking for --${enablestring:-enable}-no_rtti""... $ac_c" 1>&6 | |
2b5f62a0 | 2811 | echo "configure:2812: checking for --${enablestring:-enable}-no_rtti" >&5 |
10f2d63a VZ |
2812 | no_cache=0 |
2813 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
2814 | if test "${enable_no_rtti+set}" = set; then | |
2815 | enableval="$enable_no_rtti" | |
a0b9e27f | 2816 | |
10f2d63a VZ |
2817 | if test "$enableval" = yes; then |
2818 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
2819 | else | |
2820 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
2821 | fi | |
a0b9e27f | 2822 | |
10f2d63a | 2823 | else |
a0b9e27f | 2824 | |
10f2d63a VZ |
2825 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
2826 | if test "x$LINE" != x ; then | |
2827 | eval "DEFAULT_$LINE" | |
2828 | else | |
2829 | no_cache=1 | |
2830 | fi | |
2831 | ||
2832 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
a0b9e27f MB |
2833 | |
2834 | fi | |
10f2d63a VZ |
2835 | |
2836 | ||
2837 | eval "$ac_cv_use_no_rtti" | |
2838 | if test "$no_cache" != 1; then | |
2839 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
2840 | fi | |
2841 | ||
2842 | if test "$wxUSE_NO_RTTI" = yes; then | |
a0b9e27f | 2843 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2844 | else |
a0b9e27f | 2845 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2846 | fi |
a0b9e27f | 2847 | |
10f2d63a | 2848 | |
5005acfe VZ |
2849 | enablestring= |
2850 | echo $ac_n "checking for --${enablestring:-enable}-no_exceptions""... $ac_c" 1>&6 | |
2b5f62a0 | 2851 | echo "configure:2852: checking for --${enablestring:-enable}-no_exceptions" >&5 |
10f2d63a VZ |
2852 | no_cache=0 |
2853 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
2854 | if test "${enable_no_exceptions+set}" = set; then | |
2855 | enableval="$enable_no_exceptions" | |
a0b9e27f | 2856 | |
10f2d63a VZ |
2857 | if test "$enableval" = yes; then |
2858 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
2859 | else | |
2860 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
2861 | fi | |
a0b9e27f | 2862 | |
10f2d63a | 2863 | else |
a0b9e27f | 2864 | |
10f2d63a VZ |
2865 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
2866 | if test "x$LINE" != x ; then | |
2867 | eval "DEFAULT_$LINE" | |
2868 | else | |
2869 | no_cache=1 | |
2870 | fi | |
2871 | ||
2872 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
a0b9e27f MB |
2873 | |
2874 | fi | |
10f2d63a VZ |
2875 | |
2876 | ||
2877 | eval "$ac_cv_use_no_exceptions" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
a0b9e27f | 2883 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2884 | else |
a0b9e27f | 2885 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2886 | fi |
a0b9e27f | 2887 | |
10f2d63a | 2888 | |
5005acfe VZ |
2889 | enablestring= |
2890 | echo $ac_n "checking for --${enablestring:-enable}-permissive""... $ac_c" 1>&6 | |
2b5f62a0 | 2891 | echo "configure:2892: checking for --${enablestring:-enable}-permissive" >&5 |
10f2d63a VZ |
2892 | no_cache=0 |
2893 | # Check whether --enable-permissive or --disable-permissive was given. | |
2894 | if test "${enable_permissive+set}" = set; then | |
2895 | enableval="$enable_permissive" | |
a0b9e27f | 2896 | |
10f2d63a VZ |
2897 | if test "$enableval" = yes; then |
2898 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
2899 | else | |
2900 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
2901 | fi | |
a0b9e27f | 2902 | |
10f2d63a | 2903 | else |
a0b9e27f | 2904 | |
10f2d63a VZ |
2905 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
2906 | if test "x$LINE" != x ; then | |
2907 | eval "DEFAULT_$LINE" | |
2908 | else | |
2909 | no_cache=1 | |
2910 | fi | |
2911 | ||
2912 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
a0b9e27f MB |
2913 | |
2914 | fi | |
10f2d63a VZ |
2915 | |
2916 | ||
2917 | eval "$ac_cv_use_permissive" | |
2918 | if test "$no_cache" != 1; then | |
2919 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
2920 | fi | |
2921 | ||
2922 | if test "$wxUSE_PERMISSIVE" = yes; then | |
a0b9e27f | 2923 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2924 | else |
a0b9e27f | 2925 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2926 | fi |
a0b9e27f | 2927 | |
10f2d63a | 2928 | |
5005acfe VZ |
2929 | enablestring= |
2930 | echo $ac_n "checking for --${enablestring:-enable}-no_deps""... $ac_c" 1>&6 | |
2b5f62a0 | 2931 | echo "configure:2932: checking for --${enablestring:-enable}-no_deps" >&5 |
10f2d63a VZ |
2932 | no_cache=0 |
2933 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
2934 | if test "${enable_no_deps+set}" = set; then | |
2935 | enableval="$enable_no_deps" | |
a0b9e27f | 2936 | |
10f2d63a VZ |
2937 | if test "$enableval" = yes; then |
2938 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
2939 | else | |
2940 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
2941 | fi | |
a0b9e27f | 2942 | |
10f2d63a | 2943 | else |
a0b9e27f | 2944 | |
10f2d63a VZ |
2945 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
2946 | if test "x$LINE" != x ; then | |
2947 | eval "DEFAULT_$LINE" | |
2948 | else | |
2949 | no_cache=1 | |
2950 | fi | |
2951 | ||
2952 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
a0b9e27f MB |
2953 | |
2954 | fi | |
10f2d63a VZ |
2955 | |
2956 | ||
2957 | eval "$ac_cv_use_no_deps" | |
2958 | if test "$no_cache" != 1; then | |
2959 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
2960 | fi | |
2961 | ||
2962 | if test "$wxUSE_NO_DEPS" = yes; then | |
a0b9e27f | 2963 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 2964 | else |
a0b9e27f | 2965 | echo "$ac_t""no" 1>&6 |
10f2d63a | 2966 | fi |
a0b9e27f | 2967 | |
52127426 | 2968 | |
8284b0c5 | 2969 | |
5005acfe VZ |
2970 | enablestring= |
2971 | echo $ac_n "checking for --${enablestring:-enable}-compat20""... $ac_c" 1>&6 | |
2b5f62a0 | 2972 | echo "configure:2973: checking for --${enablestring:-enable}-compat20" >&5 |
54276ccf VZ |
2973 | no_cache=0 |
2974 | # Check whether --enable-compat20 or --disable-compat20 was given. | |
2975 | if test "${enable_compat20+set}" = set; then | |
2976 | enableval="$enable_compat20" | |
a0b9e27f | 2977 | |
54276ccf VZ |
2978 | if test "$enableval" = yes; then |
2979 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes' | |
2980 | else | |
2981 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no' | |
2982 | fi | |
a0b9e27f | 2983 | |
54276ccf | 2984 | else |
a0b9e27f | 2985 | |
54276ccf VZ |
2986 | LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}` |
2987 | if test "x$LINE" != x ; then | |
2988 | eval "DEFAULT_$LINE" | |
2989 | else | |
2990 | no_cache=1 | |
2991 | fi | |
2992 | ||
2993 | ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2 | |
a0b9e27f MB |
2994 | |
2995 | fi | |
54276ccf VZ |
2996 | |
2997 | ||
2998 | eval "$ac_cv_use_compat20" | |
2999 | if test "$no_cache" != 1; then | |
3000 | echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp | |
3001 | fi | |
3002 | ||
3003 | if test "$WXWIN_COMPATIBILITY_2" = yes; then | |
a0b9e27f | 3004 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3005 | else |
a0b9e27f | 3006 | echo "$ac_t""no" 1>&6 |
54276ccf | 3007 | fi |
a0b9e27f | 3008 | |
54276ccf | 3009 | |
5005acfe VZ |
3010 | enablestring=disable |
3011 | echo $ac_n "checking for --${enablestring:-enable}-compat22""... $ac_c" 1>&6 | |
2b5f62a0 | 3012 | echo "configure:3013: checking for --${enablestring:-enable}-compat22" >&5 |
54276ccf VZ |
3013 | no_cache=0 |
3014 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3015 | if test "${enable_compat22+set}" = set; then | |
3016 | enableval="$enable_compat22" | |
a0b9e27f | 3017 | |
54276ccf VZ |
3018 | if test "$enableval" = yes; then |
3019 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3020 | else | |
3021 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3022 | fi | |
a0b9e27f | 3023 | |
54276ccf | 3024 | else |
a0b9e27f | 3025 | |
54276ccf VZ |
3026 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3027 | if test "x$LINE" != x ; then | |
3028 | eval "DEFAULT_$LINE" | |
3029 | else | |
3030 | no_cache=1 | |
3031 | fi | |
3032 | ||
3033 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
a0b9e27f MB |
3034 | |
3035 | fi | |
54276ccf VZ |
3036 | |
3037 | ||
3038 | eval "$ac_cv_use_compat22" | |
3039 | if test "$no_cache" != 1; then | |
3040 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3041 | fi | |
3042 | ||
3043 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
a0b9e27f | 3044 | echo "$ac_t""yes" 1>&6 |
54276ccf | 3045 | else |
a0b9e27f | 3046 | echo "$ac_t""no" 1>&6 |
54276ccf | 3047 | fi |
a0b9e27f | 3048 | |
54276ccf | 3049 | |
3bd8fb5f RD |
3050 | # Check whether --enable-rpath or --disable-rpath was given. |
3051 | if test "${enable_rpath+set}" = set; then | |
3052 | enableval="$enable_rpath" | |
3053 | wxRPATH_DIR="$enableval" | |
a0b9e27f MB |
3054 | fi |
3055 | ||
3bd8fb5f RD |
3056 | |
3057 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3058 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3059 | fi | |
3060 | ||
8284b0c5 MB |
3061 | |
3062 | ||
3063 | ||
5005acfe VZ |
3064 | enablestring= |
3065 | echo $ac_n "checking for --${enablestring:-enable}-intl""... $ac_c" 1>&6 | |
2b5f62a0 | 3066 | echo "configure:3067: checking for --${enablestring:-enable}-intl" >&5 |
10f2d63a VZ |
3067 | no_cache=0 |
3068 | # Check whether --enable-intl or --disable-intl was given. | |
3069 | if test "${enable_intl+set}" = set; then | |
3070 | enableval="$enable_intl" | |
a0b9e27f | 3071 | |
10f2d63a VZ |
3072 | if test "$enableval" = yes; then |
3073 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3074 | else | |
3075 | ac_cv_use_intl='wxUSE_INTL=no' | |
3076 | fi | |
a0b9e27f | 3077 | |
10f2d63a | 3078 | else |
a0b9e27f | 3079 | |
10f2d63a VZ |
3080 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3081 | if test "x$LINE" != x ; then | |
3082 | eval "DEFAULT_$LINE" | |
3083 | else | |
3084 | no_cache=1 | |
3085 | fi | |
3086 | ||
3087 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
a0b9e27f MB |
3088 | |
3089 | fi | |
10f2d63a VZ |
3090 | |
3091 | ||
3092 | eval "$ac_cv_use_intl" | |
3093 | if test "$no_cache" != 1; then | |
3094 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3095 | fi | |
3096 | ||
3097 | if test "$wxUSE_INTL" = yes; then | |
a0b9e27f | 3098 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3099 | else |
a0b9e27f | 3100 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3101 | fi |
a0b9e27f | 3102 | |
10f2d63a | 3103 | |
5005acfe VZ |
3104 | enablestring= |
3105 | echo $ac_n "checking for --${enablestring:-enable}-config""... $ac_c" 1>&6 | |
2b5f62a0 | 3106 | echo "configure:3107: checking for --${enablestring:-enable}-config" >&5 |
10f2d63a VZ |
3107 | no_cache=0 |
3108 | # Check whether --enable-config or --disable-config was given. | |
3109 | if test "${enable_config+set}" = set; then | |
3110 | enableval="$enable_config" | |
a0b9e27f | 3111 | |
10f2d63a VZ |
3112 | if test "$enableval" = yes; then |
3113 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3114 | else | |
3115 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3116 | fi | |
a0b9e27f | 3117 | |
10f2d63a | 3118 | else |
a0b9e27f | 3119 | |
10f2d63a VZ |
3120 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3121 | if test "x$LINE" != x ; then | |
3122 | eval "DEFAULT_$LINE" | |
3123 | else | |
3124 | no_cache=1 | |
3125 | fi | |
3126 | ||
3127 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
a0b9e27f MB |
3128 | |
3129 | fi | |
10f2d63a VZ |
3130 | |
3131 | ||
3132 | eval "$ac_cv_use_config" | |
3133 | if test "$no_cache" != 1; then | |
3134 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3135 | fi | |
3136 | ||
3137 | if test "$wxUSE_CONFIG" = yes; then | |
a0b9e27f | 3138 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3139 | else |
a0b9e27f | 3140 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3141 | fi |
a0b9e27f | 3142 | |
52127426 | 3143 | |
8284b0c5 | 3144 | |
5005acfe VZ |
3145 | enablestring= |
3146 | echo $ac_n "checking for --${enablestring:-enable}-protocols""... $ac_c" 1>&6 | |
2b5f62a0 | 3147 | echo "configure:3148: checking for --${enablestring:-enable}-protocols" >&5 |
a1622950 VZ |
3148 | no_cache=0 |
3149 | # Check whether --enable-protocols or --disable-protocols was given. | |
3150 | if test "${enable_protocols+set}" = set; then | |
3151 | enableval="$enable_protocols" | |
a0b9e27f | 3152 | |
a1622950 VZ |
3153 | if test "$enableval" = yes; then |
3154 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3155 | else | |
3156 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3157 | fi | |
a0b9e27f | 3158 | |
a1622950 | 3159 | else |
a0b9e27f | 3160 | |
a1622950 VZ |
3161 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3162 | if test "x$LINE" != x ; then | |
3163 | eval "DEFAULT_$LINE" | |
3164 | else | |
3165 | no_cache=1 | |
3166 | fi | |
3167 | ||
3168 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
3169 | |
3170 | fi | |
a1622950 VZ |
3171 | |
3172 | ||
3173 | eval "$ac_cv_use_protocols" | |
3174 | if test "$no_cache" != 1; then | |
3175 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3176 | fi | |
3177 | ||
3178 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 3179 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3180 | else |
a0b9e27f | 3181 | echo "$ac_t""no" 1>&6 |
a1622950 | 3182 | fi |
a0b9e27f | 3183 | |
a1622950 | 3184 | |
5005acfe VZ |
3185 | enablestring= |
3186 | echo $ac_n "checking for --${enablestring:-enable}-ftp""... $ac_c" 1>&6 | |
2b5f62a0 | 3187 | echo "configure:3188: checking for --${enablestring:-enable}-ftp" >&5 |
a1622950 VZ |
3188 | no_cache=0 |
3189 | # Check whether --enable-ftp or --disable-ftp was given. | |
3190 | if test "${enable_ftp+set}" = set; then | |
3191 | enableval="$enable_ftp" | |
a0b9e27f | 3192 | |
a1622950 VZ |
3193 | if test "$enableval" = yes; then |
3194 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3195 | else | |
3196 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3197 | fi | |
a0b9e27f | 3198 | |
a1622950 | 3199 | else |
a0b9e27f | 3200 | |
a1622950 VZ |
3201 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
3209 | |
3210 | fi | |
a1622950 VZ |
3211 | |
3212 | ||
3213 | eval "$ac_cv_use_ftp" | |
3214 | if test "$no_cache" != 1; then | |
3215 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3216 | fi | |
3217 | ||
3218 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 3219 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3220 | else |
a0b9e27f | 3221 | echo "$ac_t""no" 1>&6 |
a1622950 | 3222 | fi |
a0b9e27f | 3223 | |
a1622950 | 3224 | |
5005acfe VZ |
3225 | enablestring= |
3226 | echo $ac_n "checking for --${enablestring:-enable}-http""... $ac_c" 1>&6 | |
2b5f62a0 | 3227 | echo "configure:3228: checking for --${enablestring:-enable}-http" >&5 |
a1622950 VZ |
3228 | no_cache=0 |
3229 | # Check whether --enable-http or --disable-http was given. | |
3230 | if test "${enable_http+set}" = set; then | |
3231 | enableval="$enable_http" | |
a0b9e27f | 3232 | |
a1622950 VZ |
3233 | if test "$enableval" = yes; then |
3234 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3235 | else | |
3236 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3237 | fi | |
a0b9e27f | 3238 | |
a1622950 | 3239 | else |
a0b9e27f | 3240 | |
a1622950 VZ |
3241 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3242 | if test "x$LINE" != x ; then | |
3243 | eval "DEFAULT_$LINE" | |
3244 | else | |
3245 | no_cache=1 | |
3246 | fi | |
3247 | ||
3248 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
3249 | |
3250 | fi | |
a1622950 VZ |
3251 | |
3252 | ||
3253 | eval "$ac_cv_use_http" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 3259 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3260 | else |
a0b9e27f | 3261 | echo "$ac_t""no" 1>&6 |
a1622950 | 3262 | fi |
a0b9e27f | 3263 | |
a1622950 | 3264 | |
5005acfe VZ |
3265 | enablestring= |
3266 | echo $ac_n "checking for --${enablestring:-enable}-fileproto""... $ac_c" 1>&6 | |
2b5f62a0 | 3267 | echo "configure:3268: checking for --${enablestring:-enable}-fileproto" >&5 |
a1622950 VZ |
3268 | no_cache=0 |
3269 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3270 | if test "${enable_fileproto+set}" = set; then | |
3271 | enableval="$enable_fileproto" | |
a0b9e27f | 3272 | |
a1622950 VZ |
3273 | if test "$enableval" = yes; then |
3274 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
3275 | else | |
3276 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
3277 | fi | |
a0b9e27f | 3278 | |
a1622950 | 3279 | else |
a0b9e27f | 3280 | |
a1622950 VZ |
3281 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
3282 | if test "x$LINE" != x ; then | |
3283 | eval "DEFAULT_$LINE" | |
3284 | else | |
3285 | no_cache=1 | |
3286 | fi | |
3287 | ||
3288 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
3289 | |
3290 | fi | |
a1622950 VZ |
3291 | |
3292 | ||
3293 | eval "$ac_cv_use_fileproto" | |
3294 | if test "$no_cache" != 1; then | |
3295 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
3296 | fi | |
3297 | ||
3298 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 3299 | echo "$ac_t""yes" 1>&6 |
a1622950 | 3300 | else |
a0b9e27f | 3301 | echo "$ac_t""no" 1>&6 |
a1622950 | 3302 | fi |
a0b9e27f | 3303 | |
a1622950 | 3304 | |
5005acfe VZ |
3305 | enablestring= |
3306 | echo $ac_n "checking for --${enablestring:-enable}-sockets""... $ac_c" 1>&6 | |
2b5f62a0 | 3307 | echo "configure:3308: checking for --${enablestring:-enable}-sockets" >&5 |
10f2d63a VZ |
3308 | no_cache=0 |
3309 | # Check whether --enable-sockets or --disable-sockets was given. | |
3310 | if test "${enable_sockets+set}" = set; then | |
3311 | enableval="$enable_sockets" | |
a0b9e27f | 3312 | |
10f2d63a VZ |
3313 | if test "$enableval" = yes; then |
3314 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
3315 | else | |
3316 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
3317 | fi | |
a0b9e27f | 3318 | |
10f2d63a | 3319 | else |
a0b9e27f | 3320 | |
10f2d63a VZ |
3321 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
3322 | if test "x$LINE" != x ; then | |
3323 | eval "DEFAULT_$LINE" | |
3324 | else | |
3325 | no_cache=1 | |
3326 | fi | |
3327 | ||
3328 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
a0b9e27f MB |
3329 | |
3330 | fi | |
10f2d63a VZ |
3331 | |
3332 | ||
3333 | eval "$ac_cv_use_sockets" | |
3334 | if test "$no_cache" != 1; then | |
3335 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
3336 | fi | |
3337 | ||
3338 | if test "$wxUSE_SOCKETS" = yes; then | |
a0b9e27f | 3339 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3340 | else |
a0b9e27f | 3341 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3342 | fi |
a0b9e27f | 3343 | |
8284b0c5 | 3344 | |
5005acfe VZ |
3345 | enablestring= |
3346 | echo $ac_n "checking for --${enablestring:-enable}-ole""... $ac_c" 1>&6 | |
2b5f62a0 | 3347 | echo "configure:3348: checking for --${enablestring:-enable}-ole" >&5 |
3bce6687 JS |
3348 | no_cache=0 |
3349 | # Check whether --enable-ole or --disable-ole was given. | |
3350 | if test "${enable_ole+set}" = set; then | |
3351 | enableval="$enable_ole" | |
3352 | ||
3353 | if test "$enableval" = yes; then | |
3354 | ac_cv_use_ole='wxUSE_OLE=yes' | |
3355 | else | |
3356 | ac_cv_use_ole='wxUSE_OLE=no' | |
3357 | fi | |
3358 | ||
3359 | else | |
3360 | ||
3361 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
3362 | if test "x$LINE" != x ; then | |
3363 | eval "DEFAULT_$LINE" | |
3364 | else | |
3365 | no_cache=1 | |
3366 | fi | |
3367 | ||
3368 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3369 | ||
3370 | fi | |
3371 | ||
3372 | ||
3373 | eval "$ac_cv_use_ole" | |
3374 | if test "$no_cache" != 1; then | |
3375 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
3376 | fi | |
3377 | ||
3378 | if test "$wxUSE_OLE" = yes; then | |
3379 | echo "$ac_t""yes" 1>&6 | |
3380 | else | |
3381 | echo "$ac_t""no" 1>&6 | |
3382 | fi | |
3383 | ||
3384 | ||
5005acfe VZ |
3385 | enablestring= |
3386 | echo $ac_n "checking for --${enablestring:-enable}-dataobj""... $ac_c" 1>&6 | |
2b5f62a0 | 3387 | echo "configure:3388: checking for --${enablestring:-enable}-dataobj" >&5 |
3bce6687 JS |
3388 | no_cache=0 |
3389 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
3390 | if test "${enable_dataobj+set}" = set; then | |
3391 | enableval="$enable_dataobj" | |
3392 | ||
3393 | if test "$enableval" = yes; then | |
3394 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
3395 | else | |
3396 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
3397 | fi | |
3398 | ||
3399 | else | |
3400 | ||
3401 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
3402 | if test "x$LINE" != x ; then | |
3403 | eval "DEFAULT_$LINE" | |
3404 | else | |
3405 | no_cache=1 | |
3406 | fi | |
3407 | ||
3408 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3409 | ||
3410 | fi | |
3411 | ||
3412 | ||
3413 | eval "$ac_cv_use_dataobj" | |
3414 | if test "$no_cache" != 1; then | |
3415 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
3416 | fi | |
3417 | ||
3418 | if test "$wxUSE_DATAOBJ" = yes; then | |
3419 | echo "$ac_t""yes" 1>&6 | |
3420 | else | |
3421 | echo "$ac_t""no" 1>&6 | |
3422 | fi | |
3423 | ||
3424 | ||
52127426 | 3425 | |
5005acfe VZ |
3426 | enablestring= |
3427 | echo $ac_n "checking for --${enablestring:-enable}-ipc""... $ac_c" 1>&6 | |
2b5f62a0 | 3428 | echo "configure:3429: checking for --${enablestring:-enable}-ipc" >&5 |
10f2d63a | 3429 | no_cache=0 |
eb4efbdc VZ |
3430 | # Check whether --enable-ipc or --disable-ipc was given. |
3431 | if test "${enable_ipc+set}" = set; then | |
3432 | enableval="$enable_ipc" | |
a0b9e27f | 3433 | |
10f2d63a | 3434 | if test "$enableval" = yes; then |
eb4efbdc | 3435 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 3436 | else |
eb4efbdc | 3437 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 3438 | fi |
a0b9e27f | 3439 | |
10f2d63a | 3440 | else |
a0b9e27f | 3441 | |
eb4efbdc | 3442 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
3443 | if test "x$LINE" != x ; then |
3444 | eval "DEFAULT_$LINE" | |
3445 | else | |
3446 | no_cache=1 | |
3447 | fi | |
3448 | ||
eb4efbdc | 3449 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
a0b9e27f MB |
3450 | |
3451 | fi | |
10f2d63a VZ |
3452 | |
3453 | ||
eb4efbdc | 3454 | eval "$ac_cv_use_ipc" |
10f2d63a | 3455 | if test "$no_cache" != 1; then |
eb4efbdc | 3456 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3457 | fi |
3458 | ||
eb4efbdc | 3459 | if test "$wxUSE_IPC" = yes; then |
a0b9e27f | 3460 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3461 | else |
a0b9e27f | 3462 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3463 | fi |
a0b9e27f | 3464 | |
52127426 | 3465 | |
8284b0c5 | 3466 | |
5005acfe VZ |
3467 | enablestring= |
3468 | echo $ac_n "checking for --${enablestring:-enable}-cmdline""... $ac_c" 1>&6 | |
2b5f62a0 | 3469 | echo "configure:3470: checking for --${enablestring:-enable}-cmdline" >&5 |
1e6feb95 VZ |
3470 | no_cache=0 |
3471 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
3472 | if test "${enable_cmdline+set}" = set; then | |
3473 | enableval="$enable_cmdline" | |
a0b9e27f | 3474 | |
1e6feb95 VZ |
3475 | if test "$enableval" = yes; then |
3476 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
3477 | else | |
3478 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
3479 | fi | |
a0b9e27f | 3480 | |
1e6feb95 | 3481 | else |
a0b9e27f | 3482 | |
1e6feb95 VZ |
3483 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
3484 | if test "x$LINE" != x ; then | |
3485 | eval "DEFAULT_$LINE" | |
3486 | else | |
3487 | no_cache=1 | |
3488 | fi | |
3489 | ||
3490 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
a0b9e27f MB |
3491 | |
3492 | fi | |
1e6feb95 VZ |
3493 | |
3494 | ||
3495 | eval "$ac_cv_use_cmdline" | |
3496 | if test "$no_cache" != 1; then | |
3497 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
3498 | fi | |
3499 | ||
3500 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
a0b9e27f | 3501 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3502 | else |
a0b9e27f | 3503 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3504 | fi |
a0b9e27f | 3505 | |
1e6feb95 | 3506 | |
5005acfe VZ |
3507 | enablestring= |
3508 | echo $ac_n "checking for --${enablestring:-enable}-datetime""... $ac_c" 1>&6 | |
2b5f62a0 | 3509 | echo "configure:3510: checking for --${enablestring:-enable}-datetime" >&5 |
1e6feb95 VZ |
3510 | no_cache=0 |
3511 | # Check whether --enable-datetime or --disable-datetime was given. | |
3512 | if test "${enable_datetime+set}" = set; then | |
3513 | enableval="$enable_datetime" | |
a0b9e27f | 3514 | |
1e6feb95 VZ |
3515 | if test "$enableval" = yes; then |
3516 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
3517 | else | |
3518 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
3519 | fi | |
a0b9e27f | 3520 | |
1e6feb95 | 3521 | else |
a0b9e27f | 3522 | |
1e6feb95 VZ |
3523 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
3524 | if test "x$LINE" != x ; then | |
3525 | eval "DEFAULT_$LINE" | |
3526 | else | |
3527 | no_cache=1 | |
3528 | fi | |
3529 | ||
3530 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
a0b9e27f MB |
3531 | |
3532 | fi | |
1e6feb95 VZ |
3533 | |
3534 | ||
3535 | eval "$ac_cv_use_datetime" | |
3536 | if test "$no_cache" != 1; then | |
3537 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
3538 | fi | |
3539 | ||
3540 | if test "$wxUSE_DATETIME" = yes; then | |
a0b9e27f | 3541 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3542 | else |
a0b9e27f | 3543 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3544 | fi |
a0b9e27f | 3545 | |
1e6feb95 | 3546 | |
5005acfe VZ |
3547 | enablestring= |
3548 | echo $ac_n "checking for --${enablestring:-enable}-timedate""... $ac_c" 1>&6 | |
2b5f62a0 | 3549 | echo "configure:3550: checking for --${enablestring:-enable}-timedate" >&5 |
1e6feb95 VZ |
3550 | no_cache=0 |
3551 | # Check whether --enable-timedate or --disable-timedate was given. | |
3552 | if test "${enable_timedate+set}" = set; then | |
3553 | enableval="$enable_timedate" | |
a0b9e27f | 3554 | |
1e6feb95 VZ |
3555 | if test "$enableval" = yes; then |
3556 | ac_cv_use_timedate='wxUSE_TIMEDATE=yes' | |
3557 | else | |
3558 | ac_cv_use_timedate='wxUSE_TIMEDATE=no' | |
3559 | fi | |
a0b9e27f | 3560 | |
1e6feb95 | 3561 | else |
a0b9e27f | 3562 | |
1e6feb95 VZ |
3563 | LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}` |
3564 | if test "x$LINE" != x ; then | |
3565 | eval "DEFAULT_$LINE" | |
3566 | else | |
3567 | no_cache=1 | |
3568 | fi | |
3569 | ||
3570 | ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE | |
a0b9e27f MB |
3571 | |
3572 | fi | |
1e6feb95 VZ |
3573 | |
3574 | ||
3575 | eval "$ac_cv_use_timedate" | |
3576 | if test "$no_cache" != 1; then | |
3577 | echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp | |
3578 | fi | |
3579 | ||
3580 | if test "$wxUSE_TIMEDATE" = yes; then | |
a0b9e27f | 3581 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3582 | else |
a0b9e27f | 3583 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3584 | fi |
a0b9e27f | 3585 | |
1e6feb95 | 3586 | |
5005acfe VZ |
3587 | enablestring= |
3588 | echo $ac_n "checking for --${enablestring:-enable}-stopwatch""... $ac_c" 1>&6 | |
2b5f62a0 | 3589 | echo "configure:3590: checking for --${enablestring:-enable}-stopwatch" >&5 |
1e6feb95 VZ |
3590 | no_cache=0 |
3591 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
3592 | if test "${enable_stopwatch+set}" = set; then | |
3593 | enableval="$enable_stopwatch" | |
a0b9e27f | 3594 | |
1e6feb95 VZ |
3595 | if test "$enableval" = yes; then |
3596 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
3597 | else | |
3598 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
3599 | fi | |
a0b9e27f | 3600 | |
1e6feb95 | 3601 | else |
a0b9e27f | 3602 | |
1e6feb95 VZ |
3603 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
3604 | if test "x$LINE" != x ; then | |
3605 | eval "DEFAULT_$LINE" | |
3606 | else | |
3607 | no_cache=1 | |
3608 | fi | |
3609 | ||
3610 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
a0b9e27f MB |
3611 | |
3612 | fi | |
1e6feb95 VZ |
3613 | |
3614 | ||
3615 | eval "$ac_cv_use_stopwatch" | |
3616 | if test "$no_cache" != 1; then | |
3617 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
3618 | fi | |
3619 | ||
3620 | if test "$wxUSE_STOPWATCH" = yes; then | |
a0b9e27f | 3621 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 3622 | else |
a0b9e27f | 3623 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 3624 | fi |
a0b9e27f | 3625 | |
1e6feb95 | 3626 | |
5005acfe VZ |
3627 | enablestring= |
3628 | echo $ac_n "checking for --${enablestring:-enable}-dialupman""... $ac_c" 1>&6 | |
2b5f62a0 | 3629 | echo "configure:3630: checking for --${enablestring:-enable}-dialupman" >&5 |
10f2d63a | 3630 | no_cache=0 |
eb4efbdc VZ |
3631 | # Check whether --enable-dialupman or --disable-dialupman was given. |
3632 | if test "${enable_dialupman+set}" = set; then | |
3633 | enableval="$enable_dialupman" | |
a0b9e27f | 3634 | |
10f2d63a | 3635 | if test "$enableval" = yes; then |
eb4efbdc | 3636 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 3637 | else |
eb4efbdc | 3638 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 3639 | fi |
a0b9e27f | 3640 | |
10f2d63a | 3641 | else |
a0b9e27f | 3642 | |
eb4efbdc | 3643 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3644 | if test "x$LINE" != x ; then |
3645 | eval "DEFAULT_$LINE" | |
3646 | else | |
3647 | no_cache=1 | |
3648 | fi | |
3649 | ||
eb4efbdc | 3650 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
a0b9e27f MB |
3651 | |
3652 | fi | |
10f2d63a VZ |
3653 | |
3654 | ||
eb4efbdc | 3655 | eval "$ac_cv_use_dialupman" |
10f2d63a | 3656 | if test "$no_cache" != 1; then |
eb4efbdc | 3657 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3658 | fi |
3659 | ||
eb4efbdc | 3660 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
a0b9e27f | 3661 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3662 | else |
a0b9e27f | 3663 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3664 | fi |
a0b9e27f | 3665 | |
10f2d63a | 3666 | |
5005acfe VZ |
3667 | enablestring= |
3668 | echo $ac_n "checking for --${enablestring:-enable}-apple_ieee""... $ac_c" 1>&6 | |
2b5f62a0 | 3669 | echo "configure:3670: checking for --${enablestring:-enable}-apple_ieee" >&5 |
10f2d63a VZ |
3670 | no_cache=0 |
3671 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
3672 | if test "${enable_apple_ieee+set}" = set; then | |
3673 | enableval="$enable_apple_ieee" | |
a0b9e27f | 3674 | |
10f2d63a VZ |
3675 | if test "$enableval" = yes; then |
3676 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
3677 | else | |
3678 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
3679 | fi | |
a0b9e27f | 3680 | |
10f2d63a | 3681 | else |
a0b9e27f | 3682 | |
10f2d63a VZ |
3683 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
3684 | if test "x$LINE" != x ; then | |
3685 | eval "DEFAULT_$LINE" | |
3686 | else | |
3687 | no_cache=1 | |
3688 | fi | |
3689 | ||
3690 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
a0b9e27f MB |
3691 | |
3692 | fi | |
10f2d63a VZ |
3693 | |
3694 | ||
3695 | eval "$ac_cv_use_apple_ieee" | |
3696 | if test "$no_cache" != 1; then | |
3697 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
3698 | fi | |
3699 | ||
3700 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
a0b9e27f | 3701 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3702 | else |
a0b9e27f | 3703 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3704 | fi |
a0b9e27f | 3705 | |
10f2d63a | 3706 | |
5005acfe VZ |
3707 | enablestring= |
3708 | echo $ac_n "checking for --${enablestring:-enable}-timer""... $ac_c" 1>&6 | |
2b5f62a0 | 3709 | echo "configure:3710: checking for --${enablestring:-enable}-timer" >&5 |
10f2d63a | 3710 | no_cache=0 |
1e6feb95 VZ |
3711 | # Check whether --enable-timer or --disable-timer was given. |
3712 | if test "${enable_timer+set}" = set; then | |
3713 | enableval="$enable_timer" | |
a0b9e27f | 3714 | |
10f2d63a | 3715 | if test "$enableval" = yes; then |
1e6feb95 | 3716 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 3717 | else |
1e6feb95 | 3718 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 3719 | fi |
a0b9e27f | 3720 | |
10f2d63a | 3721 | else |
a0b9e27f | 3722 | |
1e6feb95 | 3723 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
3724 | if test "x$LINE" != x ; then |
3725 | eval "DEFAULT_$LINE" | |
3726 | else | |
3727 | no_cache=1 | |
3728 | fi | |
3729 | ||
1e6feb95 | 3730 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
a0b9e27f MB |
3731 | |
3732 | fi | |
10f2d63a VZ |
3733 | |
3734 | ||
1e6feb95 | 3735 | eval "$ac_cv_use_timer" |
10f2d63a | 3736 | if test "$no_cache" != 1; then |
1e6feb95 | 3737 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3738 | fi |
3739 | ||
1e6feb95 | 3740 | if test "$wxUSE_TIMER" = yes; then |
a0b9e27f | 3741 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3742 | else |
a0b9e27f | 3743 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3744 | fi |
a0b9e27f | 3745 | |
10f2d63a | 3746 | |
5005acfe VZ |
3747 | enablestring= |
3748 | echo $ac_n "checking for --${enablestring:-enable}-wave""... $ac_c" 1>&6 | |
2b5f62a0 | 3749 | echo "configure:3750: checking for --${enablestring:-enable}-wave" >&5 |
10f2d63a VZ |
3750 | no_cache=0 |
3751 | # Check whether --enable-wave or --disable-wave was given. | |
3752 | if test "${enable_wave+set}" = set; then | |
3753 | enableval="$enable_wave" | |
a0b9e27f | 3754 | |
10f2d63a VZ |
3755 | if test "$enableval" = yes; then |
3756 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
3757 | else | |
3758 | ac_cv_use_wave='wxUSE_WAVE=no' | |
3759 | fi | |
a0b9e27f | 3760 | |
10f2d63a | 3761 | else |
a0b9e27f | 3762 | |
10f2d63a VZ |
3763 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
3764 | if test "x$LINE" != x ; then | |
3765 | eval "DEFAULT_$LINE" | |
3766 | else | |
3767 | no_cache=1 | |
3768 | fi | |
3769 | ||
3770 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
a0b9e27f MB |
3771 | |
3772 | fi | |
10f2d63a VZ |
3773 | |
3774 | ||
3775 | eval "$ac_cv_use_wave" | |
3776 | if test "$no_cache" != 1; then | |
3777 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
3778 | fi | |
3779 | ||
3780 | if test "$wxUSE_WAVE" = yes; then | |
a0b9e27f | 3781 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3782 | else |
a0b9e27f | 3783 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3784 | fi |
a0b9e27f | 3785 | |
10f2d63a | 3786 | |
5005acfe VZ |
3787 | enablestring= |
3788 | echo $ac_n "checking for --${enablestring:-enable}-fraction""... $ac_c" 1>&6 | |
2b5f62a0 | 3789 | echo "configure:3790: checking for --${enablestring:-enable}-fraction" >&5 |
10f2d63a VZ |
3790 | no_cache=0 |
3791 | # Check whether --enable-fraction or --disable-fraction was given. | |
3792 | if test "${enable_fraction+set}" = set; then | |
3793 | enableval="$enable_fraction" | |
a0b9e27f | 3794 | |
10f2d63a VZ |
3795 | if test "$enableval" = yes; then |
3796 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
3797 | else | |
3798 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
3799 | fi | |
a0b9e27f | 3800 | |
10f2d63a | 3801 | else |
a0b9e27f | 3802 | |
10f2d63a VZ |
3803 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
3804 | if test "x$LINE" != x ; then | |
3805 | eval "DEFAULT_$LINE" | |
3806 | else | |
3807 | no_cache=1 | |
3808 | fi | |
3809 | ||
3810 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
a0b9e27f MB |
3811 | |
3812 | fi | |
10f2d63a VZ |
3813 | |
3814 | ||
3815 | eval "$ac_cv_use_fraction" | |
3816 | if test "$no_cache" != 1; then | |
3817 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
3818 | fi | |
3819 | ||
3820 | if test "$wxUSE_FRACTION" = yes; then | |
a0b9e27f | 3821 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3822 | else |
a0b9e27f | 3823 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3824 | fi |
a0b9e27f | 3825 | |
10f2d63a | 3826 | |
5005acfe VZ |
3827 | enablestring= |
3828 | echo $ac_n "checking for --${enablestring:-enable}-dynlib""... $ac_c" 1>&6 | |
2b5f62a0 | 3829 | echo "configure:3830: checking for --${enablestring:-enable}-dynlib" >&5 |
10f2d63a VZ |
3830 | no_cache=0 |
3831 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
3832 | if test "${enable_dynlib+set}" = set; then | |
3833 | enableval="$enable_dynlib" | |
a0b9e27f | 3834 | |
10f2d63a VZ |
3835 | if test "$enableval" = yes; then |
3836 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
3837 | else | |
3838 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
3839 | fi | |
a0b9e27f | 3840 | |
10f2d63a | 3841 | else |
a0b9e27f | 3842 | |
10f2d63a VZ |
3843 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
3844 | if test "x$LINE" != x ; then | |
3845 | eval "DEFAULT_$LINE" | |
3846 | else | |
3847 | no_cache=1 | |
3848 | fi | |
3849 | ||
3850 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
a0b9e27f MB |
3851 | |
3852 | fi | |
10f2d63a VZ |
3853 | |
3854 | ||
3855 | eval "$ac_cv_use_dynlib" | |
3856 | if test "$no_cache" != 1; then | |
3857 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
3858 | fi | |
3859 | ||
3860 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
a0b9e27f | 3861 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3862 | else |
a0b9e27f | 3863 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3864 | fi |
a0b9e27f | 3865 | |
10f2d63a | 3866 | |
5005acfe VZ |
3867 | enablestring= |
3868 | echo $ac_n "checking for --${enablestring:-enable}-dynamicloader""... $ac_c" 1>&6 | |
2b5f62a0 | 3869 | echo "configure:3870: checking for --${enablestring:-enable}-dynamicloader" >&5 |
0b9ab0bd RL |
3870 | no_cache=0 |
3871 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
3872 | if test "${enable_dynamicloader+set}" = set; then | |
3873 | enableval="$enable_dynamicloader" | |
a0b9e27f | 3874 | |
0b9ab0bd RL |
3875 | if test "$enableval" = yes; then |
3876 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
3877 | else | |
3878 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
3879 | fi | |
a0b9e27f | 3880 | |
0b9ab0bd | 3881 | else |
a0b9e27f | 3882 | |
0b9ab0bd RL |
3883 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
a0b9e27f MB |
3891 | |
3892 | fi | |
0b9ab0bd RL |
3893 | |
3894 | ||
3895 | eval "$ac_cv_use_dynamicloader" | |
3896 | if test "$no_cache" != 1; then | |
3897 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
3898 | fi | |
3899 | ||
3900 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
a0b9e27f | 3901 | echo "$ac_t""yes" 1>&6 |
0b9ab0bd | 3902 | else |
a0b9e27f | 3903 | echo "$ac_t""no" 1>&6 |
0b9ab0bd | 3904 | fi |
a0b9e27f | 3905 | |
0b9ab0bd | 3906 | |
5005acfe VZ |
3907 | enablestring= |
3908 | echo $ac_n "checking for --${enablestring:-enable}-longlong""... $ac_c" 1>&6 | |
2b5f62a0 | 3909 | echo "configure:3910: checking for --${enablestring:-enable}-longlong" >&5 |
10f2d63a VZ |
3910 | no_cache=0 |
3911 | # Check whether --enable-longlong or --disable-longlong was given. | |
3912 | if test "${enable_longlong+set}" = set; then | |
3913 | enableval="$enable_longlong" | |
a0b9e27f | 3914 | |
10f2d63a VZ |
3915 | if test "$enableval" = yes; then |
3916 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
3917 | else | |
3918 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
3919 | fi | |
a0b9e27f | 3920 | |
10f2d63a | 3921 | else |
a0b9e27f | 3922 | |
10f2d63a VZ |
3923 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
3924 | if test "x$LINE" != x ; then | |
3925 | eval "DEFAULT_$LINE" | |
3926 | else | |
3927 | no_cache=1 | |
3928 | fi | |
3929 | ||
3930 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
a0b9e27f MB |
3931 | |
3932 | fi | |
10f2d63a VZ |
3933 | |
3934 | ||
3935 | eval "$ac_cv_use_longlong" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_LONGLONG" = yes; then | |
a0b9e27f | 3941 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 3942 | else |
a0b9e27f | 3943 | echo "$ac_t""no" 1>&6 |
10f2d63a | 3944 | fi |
a0b9e27f | 3945 | |
10f2d63a | 3946 | |
5005acfe VZ |
3947 | enablestring= |
3948 | echo $ac_n "checking for --${enablestring:-enable}-geometry""... $ac_c" 1>&6 | |
2b5f62a0 | 3949 | echo "configure:3950: checking for --${enablestring:-enable}-geometry" >&5 |
e8f65ba6 RR |
3950 | no_cache=0 |
3951 | # Check whether --enable-geometry or --disable-geometry was given. | |
3952 | if test "${enable_geometry+set}" = set; then | |
3953 | enableval="$enable_geometry" | |
a0b9e27f | 3954 | |
e8f65ba6 RR |
3955 | if test "$enableval" = yes; then |
3956 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
3957 | else | |
3958 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
3959 | fi | |
a0b9e27f | 3960 | |
e8f65ba6 | 3961 | else |
a0b9e27f | 3962 | |
e8f65ba6 RR |
3963 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
3964 | if test "x$LINE" != x ; then | |
3965 | eval "DEFAULT_$LINE" | |
3966 | else | |
3967 | no_cache=1 | |
3968 | fi | |
3969 | ||
3970 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
a0b9e27f MB |
3971 | |
3972 | fi | |
e8f65ba6 RR |
3973 | |
3974 | ||
3975 | eval "$ac_cv_use_geometry" | |
3976 | if test "$no_cache" != 1; then | |
3977 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
3978 | fi | |
3979 | ||
3980 | if test "$wxUSE_GEOMETRY" = yes; then | |
a0b9e27f | 3981 | echo "$ac_t""yes" 1>&6 |
e8f65ba6 | 3982 | else |
a0b9e27f | 3983 | echo "$ac_t""no" 1>&6 |
e8f65ba6 | 3984 | fi |
a0b9e27f | 3985 | |
e8f65ba6 | 3986 | |
5005acfe VZ |
3987 | enablestring= |
3988 | echo $ac_n "checking for --${enablestring:-enable}-log""... $ac_c" 1>&6 | |
2b5f62a0 | 3989 | echo "configure:3990: checking for --${enablestring:-enable}-log" >&5 |
10f2d63a VZ |
3990 | no_cache=0 |
3991 | # Check whether --enable-log or --disable-log was given. | |
3992 | if test "${enable_log+set}" = set; then | |
3993 | enableval="$enable_log" | |
a0b9e27f | 3994 | |
10f2d63a VZ |
3995 | if test "$enableval" = yes; then |
3996 | ac_cv_use_log='wxUSE_LOG=yes' | |
3997 | else | |
3998 | ac_cv_use_log='wxUSE_LOG=no' | |
3999 | fi | |
a0b9e27f | 4000 | |
10f2d63a | 4001 | else |
a0b9e27f | 4002 | |
10f2d63a VZ |
4003 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4004 | if test "x$LINE" != x ; then | |
4005 | eval "DEFAULT_$LINE" | |
4006 | else | |
4007 | no_cache=1 | |
4008 | fi | |
4009 | ||
4010 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
a0b9e27f MB |
4011 | |
4012 | fi | |
10f2d63a VZ |
4013 | |
4014 | ||
4015 | eval "$ac_cv_use_log" | |
4016 | if test "$no_cache" != 1; then | |
4017 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4018 | fi | |
4019 | ||
4020 | if test "$wxUSE_LOG" = yes; then | |
a0b9e27f | 4021 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4022 | else |
a0b9e27f | 4023 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4024 | fi |
a0b9e27f | 4025 | |
10f2d63a | 4026 | |
5005acfe VZ |
4027 | enablestring= |
4028 | echo $ac_n "checking for --${enablestring:-enable}-streams""... $ac_c" 1>&6 | |
2b5f62a0 | 4029 | echo "configure:4030: checking for --${enablestring:-enable}-streams" >&5 |
10f2d63a VZ |
4030 | no_cache=0 |
4031 | # Check whether --enable-streams or --disable-streams was given. | |
4032 | if test "${enable_streams+set}" = set; then | |
4033 | enableval="$enable_streams" | |
a0b9e27f | 4034 | |
10f2d63a VZ |
4035 | if test "$enableval" = yes; then |
4036 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4037 | else | |
4038 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4039 | fi | |
a0b9e27f | 4040 | |
10f2d63a | 4041 | else |
a0b9e27f | 4042 | |
10f2d63a VZ |
4043 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4044 | if test "x$LINE" != x ; then | |
4045 | eval "DEFAULT_$LINE" | |
4046 | else | |
4047 | no_cache=1 | |
4048 | fi | |
4049 | ||
4050 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
a0b9e27f MB |
4051 | |
4052 | fi | |
10f2d63a VZ |
4053 | |
4054 | ||
4055 | eval "$ac_cv_use_streams" | |
4056 | if test "$no_cache" != 1; then | |
4057 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4058 | fi | |
4059 | ||
4060 | if test "$wxUSE_STREAMS" = yes; then | |
a0b9e27f | 4061 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4062 | else |
a0b9e27f | 4063 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4064 | fi |
a0b9e27f | 4065 | |
10f2d63a | 4066 | |
5005acfe VZ |
4067 | enablestring= |
4068 | echo $ac_n "checking for --${enablestring:-enable}-file""... $ac_c" 1>&6 | |
2b5f62a0 | 4069 | echo "configure:4070: checking for --${enablestring:-enable}-file" >&5 |
10f2d63a VZ |
4070 | no_cache=0 |
4071 | # Check whether --enable-file or --disable-file was given. | |
4072 | if test "${enable_file+set}" = set; then | |
4073 | enableval="$enable_file" | |
a0b9e27f | 4074 | |
10f2d63a VZ |
4075 | if test "$enableval" = yes; then |
4076 | ac_cv_use_file='wxUSE_FILE=yes' | |
4077 | else | |
4078 | ac_cv_use_file='wxUSE_FILE=no' | |
4079 | fi | |
a0b9e27f | 4080 | |
10f2d63a | 4081 | else |
a0b9e27f | 4082 | |
10f2d63a VZ |
4083 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4084 | if test "x$LINE" != x ; then | |
4085 | eval "DEFAULT_$LINE" | |
4086 | else | |
4087 | no_cache=1 | |
4088 | fi | |
4089 | ||
4090 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
a0b9e27f MB |
4091 | |
4092 | fi | |
10f2d63a VZ |
4093 | |
4094 | ||
4095 | eval "$ac_cv_use_file" | |
4096 | if test "$no_cache" != 1; then | |
4097 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4098 | fi | |
4099 | ||
4100 | if test "$wxUSE_FILE" = yes; then | |
a0b9e27f | 4101 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4102 | else |
a0b9e27f | 4103 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4104 | fi |
a0b9e27f | 4105 | |
10f2d63a | 4106 | |
5005acfe VZ |
4107 | enablestring= |
4108 | echo $ac_n "checking for --${enablestring:-enable}-ffile""... $ac_c" 1>&6 | |
2b5f62a0 | 4109 | echo "configure:4110: checking for --${enablestring:-enable}-ffile" >&5 |
10f2d63a | 4110 | no_cache=0 |
1e6feb95 VZ |
4111 | # Check whether --enable-ffile or --disable-ffile was given. |
4112 | if test "${enable_ffile+set}" = set; then | |
4113 | enableval="$enable_ffile" | |
a0b9e27f | 4114 | |
10f2d63a | 4115 | if test "$enableval" = yes; then |
1e6feb95 | 4116 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4117 | else |
1e6feb95 | 4118 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4119 | fi |
a0b9e27f | 4120 | |
10f2d63a | 4121 | else |
a0b9e27f | 4122 | |
1e6feb95 | 4123 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4124 | if test "x$LINE" != x ; then |
4125 | eval "DEFAULT_$LINE" | |
4126 | else | |
4127 | no_cache=1 | |
4128 | fi | |
4129 | ||
1e6feb95 | 4130 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
a0b9e27f MB |
4131 | |
4132 | fi | |
10f2d63a VZ |
4133 | |
4134 | ||
1e6feb95 | 4135 | eval "$ac_cv_use_ffile" |
10f2d63a | 4136 | if test "$no_cache" != 1; then |
1e6feb95 | 4137 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4138 | fi |
4139 | ||
1e6feb95 | 4140 | if test "$wxUSE_FFILE" = yes; then |
a0b9e27f | 4141 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4142 | else |
a0b9e27f | 4143 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4144 | fi |
a0b9e27f | 4145 | |
10f2d63a | 4146 | |
5005acfe VZ |
4147 | enablestring= |
4148 | echo $ac_n "checking for --${enablestring:-enable}-textbuf""... $ac_c" 1>&6 | |
2b5f62a0 | 4149 | echo "configure:4150: checking for --${enablestring:-enable}-textbuf" >&5 |
a3a584a7 VZ |
4150 | no_cache=0 |
4151 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4152 | if test "${enable_textbuf+set}" = set; then | |
4153 | enableval="$enable_textbuf" | |
a0b9e27f | 4154 | |
a3a584a7 VZ |
4155 | if test "$enableval" = yes; then |
4156 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4157 | else | |
4158 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4159 | fi | |
a0b9e27f | 4160 | |
a3a584a7 | 4161 | else |
a0b9e27f | 4162 | |
a3a584a7 VZ |
4163 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4164 | if test "x$LINE" != x ; then | |
4165 | eval "DEFAULT_$LINE" | |
4166 | else | |
4167 | no_cache=1 | |
4168 | fi | |
4169 | ||
4170 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a0b9e27f MB |
4171 | |
4172 | fi | |
a3a584a7 VZ |
4173 | |
4174 | ||
4175 | eval "$ac_cv_use_textbuf" | |
4176 | if test "$no_cache" != 1; then | |
4177 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4178 | fi | |
4179 | ||
4180 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
a0b9e27f | 4181 | echo "$ac_t""yes" 1>&6 |
a3a584a7 | 4182 | else |
a0b9e27f | 4183 | echo "$ac_t""no" 1>&6 |
a3a584a7 | 4184 | fi |
a0b9e27f | 4185 | |
a3a584a7 | 4186 | |
5005acfe VZ |
4187 | enablestring= |
4188 | echo $ac_n "checking for --${enablestring:-enable}-textfile""... $ac_c" 1>&6 | |
2b5f62a0 | 4189 | echo "configure:4190: checking for --${enablestring:-enable}-textfile" >&5 |
10f2d63a | 4190 | no_cache=0 |
1e6feb95 VZ |
4191 | # Check whether --enable-textfile or --disable-textfile was given. |
4192 | if test "${enable_textfile+set}" = set; then | |
4193 | enableval="$enable_textfile" | |
a0b9e27f | 4194 | |
10f2d63a | 4195 | if test "$enableval" = yes; then |
1e6feb95 | 4196 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4197 | else |
1e6feb95 | 4198 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4199 | fi |
a0b9e27f | 4200 | |
10f2d63a | 4201 | else |
a0b9e27f | 4202 | |
1e6feb95 | 4203 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4204 | if test "x$LINE" != x ; then |
4205 | eval "DEFAULT_$LINE" | |
4206 | else | |
4207 | no_cache=1 | |
4208 | fi | |
4209 | ||
1e6feb95 | 4210 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
a0b9e27f MB |
4211 | |
4212 | fi | |
10f2d63a VZ |
4213 | |
4214 | ||
1e6feb95 | 4215 | eval "$ac_cv_use_textfile" |
10f2d63a | 4216 | if test "$no_cache" != 1; then |
1e6feb95 | 4217 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4218 | fi |
4219 | ||
1e6feb95 | 4220 | if test "$wxUSE_TEXTFILE" = yes; then |
a0b9e27f | 4221 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4222 | else |
a0b9e27f | 4223 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4224 | fi |
a0b9e27f | 4225 | |
10f2d63a | 4226 | |
5005acfe VZ |
4227 | enablestring= |
4228 | echo $ac_n "checking for --${enablestring:-enable}-fontmap""... $ac_c" 1>&6 | |
2b5f62a0 | 4229 | echo "configure:4230: checking for --${enablestring:-enable}-fontmap" >&5 |
10f2d63a | 4230 | no_cache=0 |
1e6feb95 VZ |
4231 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4232 | if test "${enable_fontmap+set}" = set; then | |
4233 | enableval="$enable_fontmap" | |
a0b9e27f | 4234 | |
10f2d63a | 4235 | if test "$enableval" = yes; then |
1e6feb95 | 4236 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4237 | else |
1e6feb95 | 4238 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4239 | fi |
a0b9e27f | 4240 | |
10f2d63a | 4241 | else |
a0b9e27f | 4242 | |
1e6feb95 | 4243 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4244 | if test "x$LINE" != x ; then |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
1e6feb95 | 4250 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
a0b9e27f MB |
4251 | |
4252 | fi | |
10f2d63a VZ |
4253 | |
4254 | ||
1e6feb95 | 4255 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4256 | if test "$no_cache" != 1; then |
1e6feb95 | 4257 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4258 | fi |
4259 | ||
1e6feb95 | 4260 | if test "$wxUSE_FONTMAP" = yes; then |
a0b9e27f | 4261 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4262 | else |
a0b9e27f | 4263 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4264 | fi |
a0b9e27f | 4265 | |
10f2d63a | 4266 | |
5005acfe VZ |
4267 | enablestring= |
4268 | echo $ac_n "checking for --${enablestring:-enable}-unicode""... $ac_c" 1>&6 | |
2b5f62a0 | 4269 | echo "configure:4270: checking for --${enablestring:-enable}-unicode" >&5 |
10f2d63a | 4270 | no_cache=0 |
1e6feb95 VZ |
4271 | # Check whether --enable-unicode or --disable-unicode was given. |
4272 | if test "${enable_unicode+set}" = set; then | |
4273 | enableval="$enable_unicode" | |
a0b9e27f | 4274 | |
1e6feb95 VZ |
4275 | if test "$enableval" = yes; then |
4276 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4277 | else | |
4278 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4279 | fi | |
a0b9e27f | 4280 | |
1e6feb95 | 4281 | else |
a0b9e27f | 4282 | |
1e6feb95 VZ |
4283 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4284 | if test "x$LINE" != x ; then | |
4285 | eval "DEFAULT_$LINE" | |
4286 | else | |
4287 | no_cache=1 | |
4288 | fi | |
4289 | ||
4290 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
a0b9e27f MB |
4291 | |
4292 | fi | |
1e6feb95 VZ |
4293 | |
4294 | ||
4295 | eval "$ac_cv_use_unicode" | |
4296 | if test "$no_cache" != 1; then | |
4297 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
4298 | fi | |
4299 | ||
4300 | if test "$wxUSE_UNICODE" = yes; then | |
a0b9e27f | 4301 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4302 | else |
a0b9e27f | 4303 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4304 | fi |
a0b9e27f | 4305 | |
1e6feb95 | 4306 | |
5005acfe VZ |
4307 | enablestring= |
4308 | echo $ac_n "checking for --${enablestring:-enable}-mslu""... $ac_c" 1>&6 | |
2b5f62a0 | 4309 | echo "configure:4310: checking for --${enablestring:-enable}-mslu" >&5 |
a72a4bfa VS |
4310 | no_cache=0 |
4311 | # Check whether --enable-mslu or --disable-mslu was given. | |
4312 | if test "${enable_mslu+set}" = set; then | |
4313 | enableval="$enable_mslu" | |
a0b9e27f | 4314 | |
a72a4bfa VS |
4315 | if test "$enableval" = yes; then |
4316 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
4317 | else | |
4318 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
4319 | fi | |
a0b9e27f | 4320 | |
a72a4bfa | 4321 | else |
a0b9e27f | 4322 | |
a72a4bfa VS |
4323 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
4324 | if test "x$LINE" != x ; then | |
4325 | eval "DEFAULT_$LINE" | |
4326 | else | |
4327 | no_cache=1 | |
4328 | fi | |
4329 | ||
4330 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a0b9e27f MB |
4331 | |
4332 | fi | |
a72a4bfa VS |
4333 | |
4334 | ||
4335 | eval "$ac_cv_use_mslu" | |
4336 | if test "$no_cache" != 1; then | |
4337 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
4338 | fi | |
4339 | ||
4340 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
a0b9e27f | 4341 | echo "$ac_t""yes" 1>&6 |
a72a4bfa | 4342 | else |
a0b9e27f | 4343 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 4344 | fi |
a0b9e27f | 4345 | |
a72a4bfa | 4346 | |
5005acfe VZ |
4347 | enablestring= |
4348 | echo $ac_n "checking for --${enablestring:-enable}-wxprintfv""... $ac_c" 1>&6 | |
2b5f62a0 | 4349 | echo "configure:4350: checking for --${enablestring:-enable}-wxprintfv" >&5 |
1e6feb95 VZ |
4350 | no_cache=0 |
4351 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
4352 | if test "${enable_wxprintfv+set}" = set; then | |
4353 | enableval="$enable_wxprintfv" | |
a0b9e27f | 4354 | |
1e6feb95 | 4355 | if test "$enableval" = yes; then |
10f2d63a VZ |
4356 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
4357 | else | |
4358 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
4359 | fi | |
a0b9e27f | 4360 | |
10f2d63a | 4361 | else |
a0b9e27f | 4362 | |
10f2d63a VZ |
4363 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
4364 | if test "x$LINE" != x ; then | |
4365 | eval "DEFAULT_$LINE" | |
4366 | else | |
4367 | no_cache=1 | |
4368 | fi | |
4369 | ||
4370 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
a0b9e27f MB |
4371 | |
4372 | fi | |
10f2d63a VZ |
4373 | |
4374 | ||
4375 | eval "$ac_cv_use_wxprintfv" | |
4376 | if test "$no_cache" != 1; then | |
4377 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
4378 | fi | |
4379 | ||
4380 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
a0b9e27f | 4381 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4382 | else |
a0b9e27f | 4383 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4384 | fi |
a0b9e27f | 4385 | |
10f2d63a | 4386 | |
5005acfe VZ |
4387 | enablestring= |
4388 | echo $ac_n "checking for --${enablestring:-enable}-std_iostreams""... $ac_c" 1>&6 | |
2b5f62a0 | 4389 | echo "configure:4390: checking for --${enablestring:-enable}-std_iostreams" >&5 |
10f2d63a VZ |
4390 | no_cache=0 |
4391 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
4392 | if test "${enable_std_iostreams+set}" = set; then | |
4393 | enableval="$enable_std_iostreams" | |
a0b9e27f | 4394 | |
10f2d63a VZ |
4395 | if test "$enableval" = yes; then |
4396 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
4397 | else | |
4398 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
4399 | fi | |
a0b9e27f | 4400 | |
10f2d63a | 4401 | else |
a0b9e27f | 4402 | |
10f2d63a VZ |
4403 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
4404 | if test "x$LINE" != x ; then | |
4405 | eval "DEFAULT_$LINE" | |
4406 | else | |
4407 | no_cache=1 | |
4408 | fi | |
4409 | ||
4410 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
a0b9e27f MB |
4411 | |
4412 | fi | |
10f2d63a VZ |
4413 | |
4414 | ||
4415 | eval "$ac_cv_use_std_iostreams" | |
4416 | if test "$no_cache" != 1; then | |
4417 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
4418 | fi | |
4419 | ||
4420 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
a0b9e27f | 4421 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4422 | else |
a0b9e27f | 4423 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4424 | fi |
a0b9e27f | 4425 | |
10f2d63a | 4426 | |
5005acfe VZ |
4427 | enablestring= |
4428 | echo $ac_n "checking for --${enablestring:-enable}-filesystem""... $ac_c" 1>&6 | |
2b5f62a0 | 4429 | echo "configure:4430: checking for --${enablestring:-enable}-filesystem" >&5 |
24528b0c VS |
4430 | no_cache=0 |
4431 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4432 | if test "${enable_filesystem+set}" = set; then | |
4433 | enableval="$enable_filesystem" | |
a0b9e27f | 4434 | |
24528b0c VS |
4435 | if test "$enableval" = yes; then |
4436 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4437 | else | |
4438 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4439 | fi | |
a0b9e27f | 4440 | |
24528b0c | 4441 | else |
a0b9e27f | 4442 | |
24528b0c VS |
4443 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
4444 | if test "x$LINE" != x ; then | |
4445 | eval "DEFAULT_$LINE" | |
4446 | else | |
4447 | no_cache=1 | |
4448 | fi | |
4449 | ||
4450 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
a0b9e27f MB |
4451 | |
4452 | fi | |
24528b0c VS |
4453 | |
4454 | ||
4455 | eval "$ac_cv_use_filesystem" | |
4456 | if test "$no_cache" != 1; then | |
4457 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4458 | fi | |
4459 | ||
4460 | if test "$wxUSE_FILESYSTEM" = yes; then | |
a0b9e27f | 4461 | echo "$ac_t""yes" 1>&6 |
24528b0c | 4462 | else |
a0b9e27f | 4463 | echo "$ac_t""no" 1>&6 |
24528b0c | 4464 | fi |
a0b9e27f | 4465 | |
24528b0c | 4466 | |
5005acfe VZ |
4467 | enablestring= |
4468 | echo $ac_n "checking for --${enablestring:-enable}-fs_inet""... $ac_c" 1>&6 | |
2b5f62a0 | 4469 | echo "configure:4470: checking for --${enablestring:-enable}-fs_inet" >&5 |
10f2d63a VZ |
4470 | no_cache=0 |
4471 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4472 | if test "${enable_fs_inet+set}" = set; then | |
4473 | enableval="$enable_fs_inet" | |
a0b9e27f | 4474 | |
10f2d63a VZ |
4475 | if test "$enableval" = yes; then |
4476 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4477 | else | |
4478 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4479 | fi | |
a0b9e27f | 4480 | |
10f2d63a | 4481 | else |
a0b9e27f | 4482 | |
10f2d63a VZ |
4483 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
4484 | if test "x$LINE" != x ; then | |
4485 | eval "DEFAULT_$LINE" | |
4486 | else | |
4487 | no_cache=1 | |
4488 | fi | |
4489 | ||
4490 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
a0b9e27f MB |
4491 | |
4492 | fi | |
10f2d63a VZ |
4493 | |
4494 | ||
4495 | eval "$ac_cv_use_fs_inet" | |
4496 | if test "$no_cache" != 1; then | |
4497 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
4498 | fi | |
4499 | ||
4500 | if test "$wxUSE_FS_INET" = yes; then | |
a0b9e27f | 4501 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4502 | else |
a0b9e27f | 4503 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4504 | fi |
a0b9e27f | 4505 | |
10f2d63a | 4506 | |
5005acfe VZ |
4507 | enablestring= |
4508 | echo $ac_n "checking for --${enablestring:-enable}-fs_zip""... $ac_c" 1>&6 | |
2b5f62a0 | 4509 | echo "configure:4510: checking for --${enablestring:-enable}-fs_zip" >&5 |
10f2d63a VZ |
4510 | no_cache=0 |
4511 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
4512 | if test "${enable_fs_zip+set}" = set; then | |
4513 | enableval="$enable_fs_zip" | |
a0b9e27f | 4514 | |
10f2d63a VZ |
4515 | if test "$enableval" = yes; then |
4516 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
4517 | else | |
4518 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
4519 | fi | |
a0b9e27f | 4520 | |
10f2d63a | 4521 | else |
a0b9e27f | 4522 | |
10f2d63a VZ |
4523 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
4524 | if test "x$LINE" != x ; then | |
4525 | eval "DEFAULT_$LINE" | |
4526 | else | |
4527 | no_cache=1 | |
4528 | fi | |
4529 | ||
4530 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
a0b9e27f MB |
4531 | |
4532 | fi | |
10f2d63a VZ |
4533 | |
4534 | ||
4535 | eval "$ac_cv_use_fs_zip" | |
4536 | if test "$no_cache" != 1; then | |
4537 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
4538 | fi | |
4539 | ||
4540 | if test "$wxUSE_FS_ZIP" = yes; then | |
a0b9e27f | 4541 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4542 | else |
a0b9e27f | 4543 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4544 | fi |
a0b9e27f | 4545 | |
10f2d63a | 4546 | |
5005acfe VZ |
4547 | enablestring= |
4548 | echo $ac_n "checking for --${enablestring:-enable}-zipstream""... $ac_c" 1>&6 | |
2b5f62a0 | 4549 | echo "configure:4550: checking for --${enablestring:-enable}-zipstream" >&5 |
10f2d63a VZ |
4550 | no_cache=0 |
4551 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
4552 | if test "${enable_zipstream+set}" = set; then | |
4553 | enableval="$enable_zipstream" | |
a0b9e27f | 4554 | |
10f2d63a VZ |
4555 | if test "$enableval" = yes; then |
4556 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
4557 | else | |
4558 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
4559 | fi | |
a0b9e27f | 4560 | |
10f2d63a | 4561 | else |
a0b9e27f | 4562 | |
10f2d63a VZ |
4563 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
4564 | if test "x$LINE" != x ; then | |
4565 | eval "DEFAULT_$LINE" | |
4566 | else | |
4567 | no_cache=1 | |
4568 | fi | |
4569 | ||
4570 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
a0b9e27f MB |
4571 | |
4572 | fi | |
10f2d63a VZ |
4573 | |
4574 | ||
4575 | eval "$ac_cv_use_zipstream" | |
4576 | if test "$no_cache" != 1; then | |
4577 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
4578 | fi | |
4579 | ||
4580 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
a0b9e27f | 4581 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4582 | else |
a0b9e27f | 4583 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4584 | fi |
a0b9e27f | 4585 | |
8284b0c5 | 4586 | |
52127426 | 4587 | |
5005acfe VZ |
4588 | enablestring= |
4589 | echo $ac_n "checking for --${enablestring:-enable}-catch_segvs""... $ac_c" 1>&6 | |
2b5f62a0 | 4590 | echo "configure:4591: checking for --${enablestring:-enable}-catch_segvs" >&5 |
eb4efbdc VZ |
4591 | no_cache=0 |
4592 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4593 | if test "${enable_catch_segvs+set}" = set; then | |
4594 | enableval="$enable_catch_segvs" | |
a0b9e27f | 4595 | |
eb4efbdc VZ |
4596 | if test "$enableval" = yes; then |
4597 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4598 | else | |
4599 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4600 | fi | |
a0b9e27f | 4601 | |
eb4efbdc | 4602 | else |
a0b9e27f | 4603 | |
eb4efbdc VZ |
4604 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
4605 | if test "x$LINE" != x ; then | |
4606 | eval "DEFAULT_$LINE" | |
4607 | else | |
4608 | no_cache=1 | |
4609 | fi | |
4610 | ||
4611 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
a0b9e27f MB |
4612 | |
4613 | fi | |
eb4efbdc VZ |
4614 | |
4615 | ||
4616 | eval "$ac_cv_use_catch_segvs" | |
4617 | if test "$no_cache" != 1; then | |
4618 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4619 | fi | |
4620 | ||
4621 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
a0b9e27f | 4622 | echo "$ac_t""yes" 1>&6 |
eb4efbdc | 4623 | else |
a0b9e27f | 4624 | echo "$ac_t""no" 1>&6 |
eb4efbdc | 4625 | fi |
a0b9e27f | 4626 | |
eb4efbdc | 4627 | |
5005acfe VZ |
4628 | enablestring= |
4629 | echo $ac_n "checking for --${enablestring:-enable}-snglinst""... $ac_c" 1>&6 | |
2b5f62a0 | 4630 | echo "configure:4631: checking for --${enablestring:-enable}-snglinst" >&5 |
4f3c5f06 VZ |
4631 | no_cache=0 |
4632 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
4633 | if test "${enable_snglinst+set}" = set; then | |
4634 | enableval="$enable_snglinst" | |
a0b9e27f | 4635 | |
4f3c5f06 VZ |
4636 | if test "$enableval" = yes; then |
4637 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
4638 | else | |
4639 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
4640 | fi | |
a0b9e27f | 4641 | |
4f3c5f06 | 4642 | else |
a0b9e27f | 4643 | |
4f3c5f06 VZ |
4644 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
4645 | if test "x$LINE" != x ; then | |
4646 | eval "DEFAULT_$LINE" | |
4647 | else | |
4648 | no_cache=1 | |
4649 | fi | |
4650 | ||
4651 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
a0b9e27f MB |
4652 | |
4653 | fi | |
4f3c5f06 VZ |
4654 | |
4655 | ||
4656 | eval "$ac_cv_use_snglinst" | |
4657 | if test "$no_cache" != 1; then | |
4658 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
4659 | fi | |
4660 | ||
4661 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
a0b9e27f | 4662 | echo "$ac_t""yes" 1>&6 |
4f3c5f06 | 4663 | else |
a0b9e27f | 4664 | echo "$ac_t""no" 1>&6 |
4f3c5f06 | 4665 | fi |
a0b9e27f | 4666 | |
52127426 | 4667 | |
8284b0c5 | 4668 | |
5005acfe VZ |
4669 | enablestring= |
4670 | echo $ac_n "checking for --${enablestring:-enable}-mimetype""... $ac_c" 1>&6 | |
2b5f62a0 | 4671 | echo "configure:4672: checking for --${enablestring:-enable}-mimetype" >&5 |
1e6feb95 VZ |
4672 | no_cache=0 |
4673 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
4674 | if test "${enable_mimetype+set}" = set; then | |
4675 | enableval="$enable_mimetype" | |
a0b9e27f | 4676 | |
1e6feb95 VZ |
4677 | if test "$enableval" = yes; then |
4678 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
4679 | else | |
4680 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
4681 | fi | |
a0b9e27f | 4682 | |
1e6feb95 | 4683 | else |
a0b9e27f | 4684 | |
1e6feb95 VZ |
4685 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
4686 | if test "x$LINE" != x ; then | |
4687 | eval "DEFAULT_$LINE" | |
4688 | else | |
4689 | no_cache=1 | |
4690 | fi | |
4691 | ||
4692 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
a0b9e27f MB |
4693 | |
4694 | fi | |
1e6feb95 VZ |
4695 | |
4696 | ||
4697 | eval "$ac_cv_use_mimetype" | |
4698 | if test "$no_cache" != 1; then | |
4699 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
4700 | fi | |
4701 | ||
4702 | if test "$wxUSE_MIMETYPE" = yes; then | |
a0b9e27f | 4703 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 4704 | else |
a0b9e27f | 4705 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 4706 | fi |
a0b9e27f | 4707 | |
1e6feb95 | 4708 | |
5005acfe VZ |
4709 | enablestring= |
4710 | echo $ac_n "checking for --${enablestring:-enable}-system_options""... $ac_c" 1>&6 | |
2b5f62a0 | 4711 | echo "configure:4712: checking for --${enablestring:-enable}-system_options" >&5 |
3e44f09d VZ |
4712 | no_cache=0 |
4713 | # Check whether --enable-system_options or --disable-system_options was given. | |
4714 | if test "${enable_system_options+set}" = set; then | |
4715 | enableval="$enable_system_options" | |
a0b9e27f | 4716 | |
3e44f09d VZ |
4717 | if test "$enableval" = yes; then |
4718 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
4719 | else | |
4720 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
4721 | fi | |
a0b9e27f | 4722 | |
3e44f09d | 4723 | else |
a0b9e27f | 4724 | |
3e44f09d VZ |
4725 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
4726 | if test "x$LINE" != x ; then | |
4727 | eval "DEFAULT_$LINE" | |
4728 | else | |
4729 | no_cache=1 | |
4730 | fi | |
4731 | ||
4732 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
a0b9e27f MB |
4733 | |
4734 | fi | |
3e44f09d VZ |
4735 | |
4736 | ||
4737 | eval "$ac_cv_use_system_options" | |
4738 | if test "$no_cache" != 1; then | |
4739 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
4740 | fi | |
4741 | ||
4742 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
a0b9e27f | 4743 | echo "$ac_t""yes" 1>&6 |
3e44f09d | 4744 | else |
a0b9e27f | 4745 | echo "$ac_t""no" 1>&6 |
3e44f09d | 4746 | fi |
a0b9e27f | 4747 | |
8284b0c5 | 4748 | |
52127426 | 4749 | |
5005acfe VZ |
4750 | enablestring= |
4751 | echo $ac_n "checking for --${enablestring:-enable}-url""... $ac_c" 1>&6 | |
2b5f62a0 | 4752 | echo "configure:4753: checking for --${enablestring:-enable}-url" >&5 |
4cdb0ab0 VS |
4753 | no_cache=0 |
4754 | # Check whether --enable-url or --disable-url was given. | |
4755 | if test "${enable_url+set}" = set; then | |
4756 | enableval="$enable_url" | |
a0b9e27f | 4757 | |
4cdb0ab0 VS |
4758 | if test "$enableval" = yes; then |
4759 | ac_cv_use_url='wxUSE_URL=yes' | |
4760 | else | |
4761 | ac_cv_use_url='wxUSE_URL=no' | |
4762 | fi | |
a0b9e27f | 4763 | |
4cdb0ab0 | 4764 | else |
a0b9e27f | 4765 | |
4cdb0ab0 VS |
4766 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
4767 | if test "x$LINE" != x ; then | |
4768 | eval "DEFAULT_$LINE" | |
4769 | else | |
4770 | no_cache=1 | |
4771 | fi | |
4772 | ||
4773 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
a0b9e27f MB |
4774 | |
4775 | fi | |
4cdb0ab0 VS |
4776 | |
4777 | ||
4778 | eval "$ac_cv_use_url" | |
4779 | if test "$no_cache" != 1; then | |
4780 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
4781 | fi | |
4782 | ||
4783 | if test "$wxUSE_URL" = yes; then | |
a0b9e27f | 4784 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4785 | else |
a0b9e27f | 4786 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4787 | fi |
a0b9e27f | 4788 | |
4cdb0ab0 | 4789 | |
5005acfe VZ |
4790 | enablestring= |
4791 | echo $ac_n "checking for --${enablestring:-enable}-protocol""... $ac_c" 1>&6 | |
2b5f62a0 | 4792 | echo "configure:4793: checking for --${enablestring:-enable}-protocol" >&5 |
4cdb0ab0 VS |
4793 | no_cache=0 |
4794 | # Check whether --enable-protocol or --disable-protocol was given. | |
4795 | if test "${enable_protocol+set}" = set; then | |
4796 | enableval="$enable_protocol" | |
a0b9e27f | 4797 | |
4cdb0ab0 VS |
4798 | if test "$enableval" = yes; then |
4799 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
4800 | else | |
4801 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
4802 | fi | |
a0b9e27f | 4803 | |
4cdb0ab0 | 4804 | else |
a0b9e27f | 4805 | |
4cdb0ab0 VS |
4806 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
4807 | if test "x$LINE" != x ; then | |
4808 | eval "DEFAULT_$LINE" | |
4809 | else | |
4810 | no_cache=1 | |
4811 | fi | |
4812 | ||
4813 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a0b9e27f MB |
4814 | |
4815 | fi | |
4cdb0ab0 VS |
4816 | |
4817 | ||
4818 | eval "$ac_cv_use_protocol" | |
4819 | if test "$no_cache" != 1; then | |
4820 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
4821 | fi | |
4822 | ||
4823 | if test "$wxUSE_PROTOCOL" = yes; then | |
a0b9e27f | 4824 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4825 | else |
a0b9e27f | 4826 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4827 | fi |
a0b9e27f | 4828 | |
4cdb0ab0 | 4829 | |
5005acfe VZ |
4830 | enablestring= |
4831 | echo $ac_n "checking for --${enablestring:-enable}-protocol_http""... $ac_c" 1>&6 | |
2b5f62a0 | 4832 | echo "configure:4833: checking for --${enablestring:-enable}-protocol_http" >&5 |
4cdb0ab0 VS |
4833 | no_cache=0 |
4834 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
4835 | if test "${enable_protocol_http+set}" = set; then | |
4836 | enableval="$enable_protocol_http" | |
a0b9e27f | 4837 | |
4cdb0ab0 VS |
4838 | if test "$enableval" = yes; then |
4839 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
4840 | else | |
4841 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
4842 | fi | |
a0b9e27f | 4843 | |
4cdb0ab0 | 4844 | else |
a0b9e27f | 4845 | |
4cdb0ab0 VS |
4846 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4847 | if test "x$LINE" != x ; then | |
4848 | eval "DEFAULT_$LINE" | |
4849 | else | |
4850 | no_cache=1 | |
4851 | fi | |
4852 | ||
4853 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a0b9e27f MB |
4854 | |
4855 | fi | |
4cdb0ab0 VS |
4856 | |
4857 | ||
4858 | eval "$ac_cv_use_protocol_http" | |
4859 | if test "$no_cache" != 1; then | |
4860 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
4861 | fi | |
4862 | ||
4863 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
a0b9e27f | 4864 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4865 | else |
a0b9e27f | 4866 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4867 | fi |
a0b9e27f | 4868 | |
4cdb0ab0 | 4869 | |
5005acfe VZ |
4870 | enablestring= |
4871 | echo $ac_n "checking for --${enablestring:-enable}-protocol_ftp""... $ac_c" 1>&6 | |
2b5f62a0 | 4872 | echo "configure:4873: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
4cdb0ab0 VS |
4873 | no_cache=0 |
4874 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
4875 | if test "${enable_protocol_ftp+set}" = set; then | |
4876 | enableval="$enable_protocol_ftp" | |
a0b9e27f | 4877 | |
4cdb0ab0 VS |
4878 | if test "$enableval" = yes; then |
4879 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4880 | else | |
4881 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
4882 | fi | |
a0b9e27f | 4883 | |
4cdb0ab0 | 4884 | else |
a0b9e27f | 4885 | |
4cdb0ab0 VS |
4886 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4887 | if test "x$LINE" != x ; then | |
4888 | eval "DEFAULT_$LINE" | |
4889 | else | |
4890 | no_cache=1 | |
4891 | fi | |
4892 | ||
4893 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a0b9e27f MB |
4894 | |
4895 | fi | |
4cdb0ab0 VS |
4896 | |
4897 | ||
4898 | eval "$ac_cv_use_protocol_ftp" | |
4899 | if test "$no_cache" != 1; then | |
4900 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
4901 | fi | |
4902 | ||
4903 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
a0b9e27f | 4904 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4905 | else |
a0b9e27f | 4906 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4907 | fi |
a0b9e27f | 4908 | |
4cdb0ab0 | 4909 | |
5005acfe VZ |
4910 | enablestring= |
4911 | echo $ac_n "checking for --${enablestring:-enable}-protocol_file""... $ac_c" 1>&6 | |
2b5f62a0 | 4912 | echo "configure:4913: checking for --${enablestring:-enable}-protocol_file" >&5 |
4cdb0ab0 VS |
4913 | no_cache=0 |
4914 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
4915 | if test "${enable_protocol_file+set}" = set; then | |
4916 | enableval="$enable_protocol_file" | |
a0b9e27f | 4917 | |
4cdb0ab0 VS |
4918 | if test "$enableval" = yes; then |
4919 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
4920 | else | |
4921 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
4922 | fi | |
a0b9e27f | 4923 | |
4cdb0ab0 | 4924 | else |
a0b9e27f | 4925 | |
4cdb0ab0 VS |
4926 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4927 | if test "x$LINE" != x ; then | |
4928 | eval "DEFAULT_$LINE" | |
4929 | else | |
4930 | no_cache=1 | |
4931 | fi | |
4932 | ||
4933 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a0b9e27f MB |
4934 | |
4935 | fi | |
4cdb0ab0 VS |
4936 | |
4937 | ||
4938 | eval "$ac_cv_use_protocol_file" | |
4939 | if test "$no_cache" != 1; then | |
4940 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
4941 | fi | |
4942 | ||
4943 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
a0b9e27f | 4944 | echo "$ac_t""yes" 1>&6 |
4cdb0ab0 | 4945 | else |
a0b9e27f | 4946 | echo "$ac_t""no" 1>&6 |
4cdb0ab0 | 4947 | fi |
a0b9e27f | 4948 | |
52127426 | 4949 | |
8284b0c5 MB |
4950 | |
4951 | ||
4952 | ||
5005acfe VZ |
4953 | enablestring= |
4954 | echo $ac_n "checking for --${enablestring:-enable}-threads""... $ac_c" 1>&6 | |
2b5f62a0 | 4955 | echo "configure:4956: checking for --${enablestring:-enable}-threads" >&5 |
10f2d63a VZ |
4956 | no_cache=0 |
4957 | # Check whether --enable-threads or --disable-threads was given. | |
4958 | if test "${enable_threads+set}" = set; then | |
4959 | enableval="$enable_threads" | |
a0b9e27f | 4960 | |
10f2d63a VZ |
4961 | if test "$enableval" = yes; then |
4962 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
4963 | else | |
4964 | ac_cv_use_threads='wxUSE_THREADS=no' | |
4965 | fi | |
a0b9e27f | 4966 | |
10f2d63a | 4967 | else |
a0b9e27f | 4968 | |
10f2d63a VZ |
4969 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
4970 | if test "x$LINE" != x ; then | |
4971 | eval "DEFAULT_$LINE" | |
4972 | else | |
4973 | no_cache=1 | |
4974 | fi | |
4975 | ||
4976 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
a0b9e27f MB |
4977 | |
4978 | fi | |
10f2d63a VZ |
4979 | |
4980 | ||
4981 | eval "$ac_cv_use_threads" | |
4982 | if test "$no_cache" != 1; then | |
4983 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
4984 | fi | |
4985 | ||
4986 | if test "$wxUSE_THREADS" = yes; then | |
a0b9e27f | 4987 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 4988 | else |
a0b9e27f | 4989 | echo "$ac_t""no" 1>&6 |
10f2d63a | 4990 | fi |
a0b9e27f | 4991 | |
10f2d63a | 4992 | |
b12915c1 VZ |
4993 | if test "$wxUSE_GUI" = "yes"; then |
4994 | ||
8284b0c5 MB |
4995 | |
4996 | ||
5005acfe VZ |
4997 | enablestring= |
4998 | echo $ac_n "checking for --${enablestring:-enable}-docview""... $ac_c" 1>&6 | |
2b5f62a0 | 4999 | echo "configure:5000: checking for --${enablestring:-enable}-docview" >&5 |
10f2d63a VZ |
5000 | no_cache=0 |
5001 | # Check whether --enable-docview or --disable-docview was given. | |
5002 | if test "${enable_docview+set}" = set; then | |
5003 | enableval="$enable_docview" | |
a0b9e27f | 5004 | |
10f2d63a VZ |
5005 | if test "$enableval" = yes; then |
5006 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5007 | else | |
5008 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5009 | fi | |
a0b9e27f | 5010 | |
10f2d63a | 5011 | else |
a0b9e27f | 5012 | |
10f2d63a VZ |
5013 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5014 | if test "x$LINE" != x ; then | |
5015 | eval "DEFAULT_$LINE" | |
5016 | else | |
5017 | no_cache=1 | |
5018 | fi | |
5019 | ||
5020 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
a0b9e27f MB |
5021 | |
5022 | fi | |
10f2d63a VZ |
5023 | |
5024 | ||
5025 | eval "$ac_cv_use_docview" | |
5026 | if test "$no_cache" != 1; then | |
5027 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5028 | fi | |
5029 | ||
5030 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
a0b9e27f | 5031 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5032 | else |
a0b9e27f | 5033 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5034 | fi |
a0b9e27f | 5035 | |
10f2d63a | 5036 | |
5005acfe VZ |
5037 | enablestring= |
5038 | echo $ac_n "checking for --${enablestring:-enable}-help""... $ac_c" 1>&6 | |
2b5f62a0 | 5039 | echo "configure:5040: checking for --${enablestring:-enable}-help" >&5 |
10f2d63a VZ |
5040 | no_cache=0 |
5041 | # Check whether --enable-help or --disable-help was given. | |
5042 | if test "${enable_help+set}" = set; then | |
5043 | enableval="$enable_help" | |
a0b9e27f | 5044 | |
10f2d63a VZ |
5045 | if test "$enableval" = yes; then |
5046 | ac_cv_use_help='wxUSE_HELP=yes' | |
5047 | else | |
5048 | ac_cv_use_help='wxUSE_HELP=no' | |
5049 | fi | |
a0b9e27f | 5050 | |
10f2d63a | 5051 | else |
a0b9e27f | 5052 | |
10f2d63a VZ |
5053 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5054 | if test "x$LINE" != x ; then | |
5055 | eval "DEFAULT_$LINE" | |
5056 | else | |
5057 | no_cache=1 | |
5058 | fi | |
5059 | ||
5060 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
a0b9e27f MB |
5061 | |
5062 | fi | |
10f2d63a VZ |
5063 | |
5064 | ||
5065 | eval "$ac_cv_use_help" | |
5066 | if test "$no_cache" != 1; then | |
5067 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5068 | fi | |
5069 | ||
5070 | if test "$wxUSE_HELP" = yes; then | |
a0b9e27f | 5071 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5072 | else |
a0b9e27f | 5073 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5074 | fi |
a0b9e27f | 5075 | |
10f2d63a | 5076 | |
5005acfe VZ |
5077 | enablestring= |
5078 | echo $ac_n "checking for --${enablestring:-enable}-mshtmlhelp""... $ac_c" 1>&6 | |
2b5f62a0 | 5079 | echo "configure:5080: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
29fd3c0c VS |
5080 | no_cache=0 |
5081 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5082 | if test "${enable_mshtmlhelp+set}" = set; then | |
5083 | enableval="$enable_mshtmlhelp" | |
a0b9e27f | 5084 | |
29fd3c0c VS |
5085 | if test "$enableval" = yes; then |
5086 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5087 | else | |
5088 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5089 | fi | |
a0b9e27f | 5090 | |
29fd3c0c | 5091 | else |
a0b9e27f | 5092 | |
29fd3c0c VS |
5093 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5094 | if test "x$LINE" != x ; then | |
5095 | eval "DEFAULT_$LINE" | |
5096 | else | |
5097 | no_cache=1 | |
5098 | fi | |
5099 | ||
5100 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
a0b9e27f MB |
5101 | |
5102 | fi | |
29fd3c0c VS |
5103 | |
5104 | ||
5105 | eval "$ac_cv_use_mshtmlhelp" | |
5106 | if test "$no_cache" != 1; then | |
5107 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5108 | fi | |
5109 | ||
5110 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
a0b9e27f | 5111 | echo "$ac_t""yes" 1>&6 |
29fd3c0c | 5112 | else |
a0b9e27f | 5113 | echo "$ac_t""no" 1>&6 |
29fd3c0c | 5114 | fi |
a0b9e27f | 5115 | |
29fd3c0c | 5116 | |
5005acfe VZ |
5117 | enablestring= |
5118 | echo $ac_n "checking for --${enablestring:-enable}-html""... $ac_c" 1>&6 | |
2b5f62a0 | 5119 | echo "configure:5120: checking for --${enablestring:-enable}-html" >&5 |
3379ed37 VZ |
5120 | no_cache=0 |
5121 | # Check whether --enable-html or --disable-html was given. | |
5122 | if test "${enable_html+set}" = set; then | |
5123 | enableval="$enable_html" | |
a0b9e27f | 5124 | |
3379ed37 VZ |
5125 | if test "$enableval" = yes; then |
5126 | ac_cv_use_html='wxUSE_HTML=yes' | |
5127 | else | |
5128 | ac_cv_use_html='wxUSE_HTML=no' | |
5129 | fi | |
a0b9e27f | 5130 | |
3379ed37 | 5131 | else |
a0b9e27f | 5132 | |
3379ed37 VZ |
5133 | LINE=`grep "wxUSE_HTML" ${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_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
a0b9e27f MB |
5141 | |
5142 | fi | |
3379ed37 VZ |
5143 | |
5144 | ||
5145 | eval "$ac_cv_use_html" | |
5146 | if test "$no_cache" != 1; then | |
5147 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5148 | fi | |
5149 | ||
5150 | if test "$wxUSE_HTML" = yes; then | |
a0b9e27f | 5151 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5152 | else |
a0b9e27f | 5153 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5154 | fi |
a0b9e27f | 5155 | |
3379ed37 | 5156 | |
5005acfe VZ |
5157 | enablestring= |
5158 | echo $ac_n "checking for --${enablestring:-enable}-htmlhelp""... $ac_c" 1>&6 | |
2b5f62a0 | 5159 | echo "configure:5160: checking for --${enablestring:-enable}-htmlhelp" >&5 |
3379ed37 VZ |
5160 | no_cache=0 |
5161 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5162 | if test "${enable_htmlhelp+set}" = set; then | |
5163 | enableval="$enable_htmlhelp" | |
a0b9e27f | 5164 | |
3379ed37 VZ |
5165 | if test "$enableval" = yes; then |
5166 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5167 | else | |
5168 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5169 | fi | |
a0b9e27f | 5170 | |
3379ed37 | 5171 | else |
a0b9e27f | 5172 | |
3379ed37 VZ |
5173 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5174 | if test "x$LINE" != x ; then | |
5175 | eval "DEFAULT_$LINE" | |
5176 | else | |
5177 | no_cache=1 | |
5178 | fi | |
5179 | ||
5180 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
a0b9e27f MB |
5181 | |
5182 | fi | |
3379ed37 VZ |
5183 | |
5184 | ||
5185 | eval "$ac_cv_use_htmlhelp" | |
5186 | if test "$no_cache" != 1; then | |
5187 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5188 | fi | |
5189 | ||
5190 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
a0b9e27f | 5191 | echo "$ac_t""yes" 1>&6 |
3379ed37 | 5192 | else |
a0b9e27f | 5193 | echo "$ac_t""no" 1>&6 |
3379ed37 | 5194 | fi |
a0b9e27f | 5195 | |
3379ed37 | 5196 | |
5005acfe VZ |
5197 | enablestring= |
5198 | echo $ac_n "checking for --${enablestring:-enable}-constraints""... $ac_c" 1>&6 | |
2b5f62a0 | 5199 | echo "configure:5200: checking for --${enablestring:-enable}-constraints" >&5 |
10f2d63a VZ |
5200 | no_cache=0 |
5201 | # Check whether --enable-constraints or --disable-constraints was given. | |
5202 | if test "${enable_constraints+set}" = set; then | |
5203 | enableval="$enable_constraints" | |
a0b9e27f | 5204 | |
10f2d63a VZ |
5205 | if test "$enableval" = yes; then |
5206 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5207 | else | |
5208 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5209 | fi | |
a0b9e27f | 5210 | |
10f2d63a | 5211 | else |
a0b9e27f | 5212 | |
10f2d63a VZ |
5213 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5214 | if test "x$LINE" != x ; then | |
5215 | eval "DEFAULT_$LINE" | |
5216 | else | |
5217 | no_cache=1 | |
5218 | fi | |
5219 | ||
5220 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
a0b9e27f MB |
5221 | |
5222 | fi | |
10f2d63a VZ |
5223 | |
5224 | ||
5225 | eval "$ac_cv_use_constraints" | |
5226 | if test "$no_cache" != 1; then | |
5227 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5228 | fi | |
5229 | ||
5230 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
a0b9e27f | 5231 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5232 | else |
a0b9e27f | 5233 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5234 | fi |
a0b9e27f | 5235 | |
10f2d63a | 5236 | |
5005acfe VZ |
5237 | enablestring= |
5238 | echo $ac_n "checking for --${enablestring:-enable}-printarch""... $ac_c" 1>&6 | |
2b5f62a0 | 5239 | echo "configure:5240: checking for --${enablestring:-enable}-printarch" >&5 |
10f2d63a VZ |
5240 | no_cache=0 |
5241 | # Check whether --enable-printarch or --disable-printarch was given. | |
5242 | if test "${enable_printarch+set}" = set; then | |
5243 | enableval="$enable_printarch" | |
a0b9e27f | 5244 | |
10f2d63a VZ |
5245 | if test "$enableval" = yes; then |
5246 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5247 | else | |
5248 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5249 | fi | |
a0b9e27f | 5250 | |
10f2d63a | 5251 | else |
a0b9e27f | 5252 | |
10f2d63a VZ |
5253 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5254 | if test "x$LINE" != x ; then | |
5255 | eval "DEFAULT_$LINE" | |
5256 | else | |
5257 | no_cache=1 | |
5258 | fi | |
5259 | ||
5260 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
a0b9e27f MB |
5261 | |
5262 | fi | |
10f2d63a VZ |
5263 | |
5264 | ||
5265 | eval "$ac_cv_use_printarch" | |
5266 | if test "$no_cache" != 1; then | |
5267 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
5268 | fi | |
5269 | ||
5270 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
a0b9e27f | 5271 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5272 | else |
a0b9e27f | 5273 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5274 | fi |
a0b9e27f | 5275 | |
10f2d63a | 5276 | |
5005acfe VZ |
5277 | enablestring= |
5278 | echo $ac_n "checking for --${enablestring:-enable}-mdi""... $ac_c" 1>&6 | |
2b5f62a0 | 5279 | echo "configure:5280: checking for --${enablestring:-enable}-mdi" >&5 |
10f2d63a VZ |
5280 | no_cache=0 |
5281 | # Check whether --enable-mdi or --disable-mdi was given. | |
5282 | if test "${enable_mdi+set}" = set; then | |
5283 | enableval="$enable_mdi" | |
a0b9e27f | 5284 | |
10f2d63a VZ |
5285 | if test "$enableval" = yes; then |
5286 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
5287 | else | |
5288 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
5289 | fi | |
a0b9e27f | 5290 | |
10f2d63a | 5291 | else |
a0b9e27f | 5292 | |
10f2d63a VZ |
5293 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${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_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
a0b9e27f MB |
5301 | |
5302 | fi | |
10f2d63a VZ |
5303 | |
5304 | ||
5305 | eval "$ac_cv_use_mdi" | |
5306 | if test "$no_cache" != 1; then | |
5307 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
5308 | fi | |
5309 | ||
5310 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
a0b9e27f | 5311 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5312 | else |
a0b9e27f | 5313 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5314 | fi |
a0b9e27f | 5315 | |
698dcdb6 | 5316 | |
5005acfe VZ |
5317 | enablestring= |
5318 | echo $ac_n "checking for --${enablestring:-enable}-loggui""... $ac_c" 1>&6 | |
2b5f62a0 | 5319 | echo "configure:5320: checking for --${enablestring:-enable}-loggui" >&5 |
1e6feb95 VZ |
5320 | no_cache=0 |
5321 | # Check whether --enable-loggui or --disable-loggui was given. | |
5322 | if test "${enable_loggui+set}" = set; then | |
5323 | enableval="$enable_loggui" | |
a0b9e27f | 5324 | |
1e6feb95 VZ |
5325 | if test "$enableval" = yes; then |
5326 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
5327 | else | |
5328 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
5329 | fi | |
a0b9e27f | 5330 | |
1e6feb95 | 5331 | else |
a0b9e27f | 5332 | |
1e6feb95 VZ |
5333 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
5334 | if test "x$LINE" != x ; then | |
5335 | eval "DEFAULT_$LINE" | |
5336 | else | |
5337 | no_cache=1 | |
5338 | fi | |
5339 | ||
5340 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
a0b9e27f MB |
5341 | |
5342 | fi | |
1e6feb95 VZ |
5343 | |
5344 | ||
5345 | eval "$ac_cv_use_loggui" | |
5346 | if test "$no_cache" != 1; then | |
5347 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
5348 | fi | |
5349 | ||
5350 | if test "$wxUSE_LOGGUI" = yes; then | |
a0b9e27f | 5351 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5352 | else |
a0b9e27f | 5353 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5354 | fi |
a0b9e27f | 5355 | |
1e6feb95 | 5356 | |
5005acfe VZ |
5357 | enablestring= |
5358 | echo $ac_n "checking for --${enablestring:-enable}-logwin""... $ac_c" 1>&6 | |
2b5f62a0 | 5359 | echo "configure:5360: checking for --${enablestring:-enable}-logwin" >&5 |
1e6feb95 VZ |
5360 | no_cache=0 |
5361 | # Check whether --enable-logwin or --disable-logwin was given. | |
5362 | if test "${enable_logwin+set}" = set; then | |
5363 | enableval="$enable_logwin" | |
a0b9e27f | 5364 | |
1e6feb95 VZ |
5365 | if test "$enableval" = yes; then |
5366 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
5367 | else | |
5368 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
5369 | fi | |
a0b9e27f | 5370 | |
1e6feb95 | 5371 | else |
a0b9e27f | 5372 | |
1e6feb95 VZ |
5373 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
5374 | if test "x$LINE" != x ; then | |
5375 | eval "DEFAULT_$LINE" | |
5376 | else | |
5377 | no_cache=1 | |
5378 | fi | |
5379 | ||
5380 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
a0b9e27f MB |
5381 | |
5382 | fi | |
1e6feb95 VZ |
5383 | |
5384 | ||
5385 | eval "$ac_cv_use_logwin" | |
5386 | if test "$no_cache" != 1; then | |
5387 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
5388 | fi | |
5389 | ||
5390 | if test "$wxUSE_LOGWINDOW" = yes; then | |
a0b9e27f | 5391 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 5392 | else |
a0b9e27f | 5393 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 5394 | fi |
a0b9e27f | 5395 | |
1e6feb95 | 5396 | |
5005acfe VZ |
5397 | enablestring= |
5398 | echo $ac_n "checking for --${enablestring:-enable}-logdialog""... $ac_c" 1>&6 | |
2b5f62a0 | 5399 | echo "configure:5400: checking for --${enablestring:-enable}-logdialog" >&5 |
69d27ff7 MB |
5400 | no_cache=0 |
5401 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
5402 | if test "${enable_logdialog+set}" = set; then | |
5403 | enableval="$enable_logdialog" | |
a0b9e27f | 5404 | |
69d27ff7 MB |
5405 | if test "$enableval" = yes; then |
5406 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
5407 | else | |
5408 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
5409 | fi | |
a0b9e27f | 5410 | |
69d27ff7 | 5411 | else |
a0b9e27f | 5412 | |
69d27ff7 MB |
5413 | LINE=`grep "wxUSE_LOGDIALOG" ${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_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
a0b9e27f MB |
5421 | |
5422 | fi | |
69d27ff7 MB |
5423 | |
5424 | ||
5425 | eval "$ac_cv_use_logdialog" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_LOGDIALOG" = yes; then | |
a0b9e27f | 5431 | echo "$ac_t""yes" 1>&6 |
69d27ff7 | 5432 | else |
a0b9e27f | 5433 | echo "$ac_t""no" 1>&6 |
69d27ff7 | 5434 | fi |
a0b9e27f | 5435 | |
8284b0c5 | 5436 | |
52127426 | 5437 | |
5005acfe VZ |
5438 | enablestring= |
5439 | echo $ac_n "checking for --${enablestring:-enable}-postscript""... $ac_c" 1>&6 | |
2b5f62a0 | 5440 | echo "configure:5441: checking for --${enablestring:-enable}-postscript" >&5 |
10f2d63a VZ |
5441 | no_cache=0 |
5442 | # Check whether --enable-postscript or --disable-postscript was given. | |
5443 | if test "${enable_postscript+set}" = set; then | |
5444 | enableval="$enable_postscript" | |
a0b9e27f | 5445 | |
10f2d63a VZ |
5446 | if test "$enableval" = yes; then |
5447 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
5448 | else | |
5449 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
5450 | fi | |
a0b9e27f | 5451 | |
10f2d63a | 5452 | else |
a0b9e27f | 5453 | |
10f2d63a VZ |
5454 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
5455 | if test "x$LINE" != x ; then | |
5456 | eval "DEFAULT_$LINE" | |
5457 | else | |
5458 | no_cache=1 | |
5459 | fi | |
5460 | ||
5461 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
a0b9e27f MB |
5462 | |
5463 | fi | |
10f2d63a VZ |
5464 | |
5465 | ||
5466 | eval "$ac_cv_use_postscript" | |
5467 | if test "$no_cache" != 1; then | |
5468 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
5469 | fi | |
5470 | ||
5471 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
a0b9e27f | 5472 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5473 | else |
a0b9e27f | 5474 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5475 | fi |
a0b9e27f | 5476 | |
8284b0c5 MB |
5477 | |
5478 | ||
52127426 | 5479 | |
8284b0c5 | 5480 | |
5005acfe VZ |
5481 | enablestring= |
5482 | echo $ac_n "checking for --${enablestring:-enable}-prologio""... $ac_c" 1>&6 | |
2b5f62a0 | 5483 | echo "configure:5484: checking for --${enablestring:-enable}-prologio" >&5 |
10f2d63a VZ |
5484 | no_cache=0 |
5485 | # Check whether --enable-prologio or --disable-prologio was given. | |
5486 | if test "${enable_prologio+set}" = set; then | |
5487 | enableval="$enable_prologio" | |
a0b9e27f | 5488 | |
10f2d63a VZ |
5489 | if test "$enableval" = yes; then |
5490 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
5491 | else | |
5492 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
5493 | fi | |
a0b9e27f | 5494 | |
10f2d63a | 5495 | else |
a0b9e27f | 5496 | |
10f2d63a VZ |
5497 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
5498 | if test "x$LINE" != x ; then | |
5499 | eval "DEFAULT_$LINE" | |
5500 | else | |
5501 | no_cache=1 | |
5502 | fi | |
5503 | ||
5504 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
a0b9e27f MB |
5505 | |
5506 | fi | |
10f2d63a VZ |
5507 | |
5508 | ||
5509 | eval "$ac_cv_use_prologio" | |
5510 | if test "$no_cache" != 1; then | |
5511 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
5512 | fi | |
5513 | ||
5514 | if test "$wxUSE_PROLOGIO" = yes; then | |
a0b9e27f | 5515 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5516 | else |
a0b9e27f | 5517 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5518 | fi |
a0b9e27f | 5519 | |
10f2d63a | 5520 | |
5005acfe VZ |
5521 | enablestring= |
5522 | echo $ac_n "checking for --${enablestring:-enable}-resources""... $ac_c" 1>&6 | |
2b5f62a0 | 5523 | echo "configure:5524: checking for --${enablestring:-enable}-resources" >&5 |
10f2d63a VZ |
5524 | no_cache=0 |
5525 | # Check whether --enable-resources or --disable-resources was given. | |
5526 | if test "${enable_resources+set}" = set; then | |
5527 | enableval="$enable_resources" | |
a0b9e27f | 5528 | |
10f2d63a VZ |
5529 | if test "$enableval" = yes; then |
5530 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
5531 | else | |
5532 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
5533 | fi | |
a0b9e27f | 5534 | |
10f2d63a | 5535 | else |
a0b9e27f | 5536 | |
10f2d63a VZ |
5537 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
5538 | if test "x$LINE" != x ; then | |
5539 | eval "DEFAULT_$LINE" | |
5540 | else | |
5541 | no_cache=1 | |
5542 | fi | |
5543 | ||
5544 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
a0b9e27f MB |
5545 | |
5546 | fi | |
10f2d63a VZ |
5547 | |
5548 | ||
5549 | eval "$ac_cv_use_resources" | |
5550 | if test "$no_cache" != 1; then | |
5551 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
5552 | fi | |
5553 | ||
5554 | if test "$wxUSE_RESOURCES" = yes; then | |
a0b9e27f | 5555 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5556 | else |
a0b9e27f | 5557 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5558 | fi |
a0b9e27f | 5559 | |
8284b0c5 | 5560 | |
52127426 | 5561 | |
5005acfe VZ |
5562 | enablestring= |
5563 | echo $ac_n "checking for --${enablestring:-enable}-xresources""... $ac_c" 1>&6 | |
2b5f62a0 | 5564 | echo "configure:5565: checking for --${enablestring:-enable}-xresources" >&5 |
10f2d63a VZ |
5565 | no_cache=0 |
5566 | # Check whether --enable-xresources or --disable-xresources was given. | |
5567 | if test "${enable_xresources+set}" = set; then | |
5568 | enableval="$enable_xresources" | |
a0b9e27f | 5569 | |
10f2d63a VZ |
5570 | if test "$enableval" = yes; then |
5571 | ac_cv_use_xresources='wxUSE_X_RESOURCES=yes' | |
5572 | else | |
5573 | ac_cv_use_xresources='wxUSE_X_RESOURCES=no' | |
5574 | fi | |
a0b9e27f | 5575 | |
10f2d63a | 5576 | else |
a0b9e27f | 5577 | |
10f2d63a VZ |
5578 | LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}` |
5579 | if test "x$LINE" != x ; then | |
5580 | eval "DEFAULT_$LINE" | |
5581 | else | |
5582 | no_cache=1 | |
5583 | fi | |
5584 | ||
5585 | ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES | |
a0b9e27f MB |
5586 | |
5587 | fi | |
10f2d63a VZ |
5588 | |
5589 | ||
5590 | eval "$ac_cv_use_xresources" | |
5591 | if test "$no_cache" != 1; then | |
5592 | echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp | |
5593 | fi | |
5594 | ||
5595 | if test "$wxUSE_X_RESOURCES" = yes; then | |
a0b9e27f | 5596 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5597 | else |
a0b9e27f | 5598 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5599 | fi |
a0b9e27f | 5600 | |
8284b0c5 MB |
5601 | |
5602 | ||
52127426 | 5603 | |
5005acfe VZ |
5604 | enablestring= |
5605 | echo $ac_n "checking for --${enablestring:-enable}-clipboard""... $ac_c" 1>&6 | |
2b5f62a0 | 5606 | echo "configure:5607: checking for --${enablestring:-enable}-clipboard" >&5 |
10f2d63a VZ |
5607 | no_cache=0 |
5608 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
5609 | if test "${enable_clipboard+set}" = set; then | |
5610 | enableval="$enable_clipboard" | |
a0b9e27f | 5611 | |
10f2d63a VZ |
5612 | if test "$enableval" = yes; then |
5613 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
5614 | else | |
5615 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
5616 | fi | |
a0b9e27f | 5617 | |
10f2d63a | 5618 | else |
a0b9e27f | 5619 | |
10f2d63a VZ |
5620 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
5621 | if test "x$LINE" != x ; then | |
5622 | eval "DEFAULT_$LINE" | |
5623 | else | |
5624 | no_cache=1 | |
5625 | fi | |
5626 | ||
5627 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
a0b9e27f MB |
5628 | |
5629 | fi | |
10f2d63a VZ |
5630 | |
5631 | ||
5632 | eval "$ac_cv_use_clipboard" | |
5633 | if test "$no_cache" != 1; then | |
5634 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
5635 | fi | |
5636 | ||
5637 | if test "$wxUSE_CLIPBOARD" = yes; then | |
a0b9e27f | 5638 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5639 | else |
a0b9e27f | 5640 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5641 | fi |
a0b9e27f | 5642 | |
10f2d63a | 5643 | |
5005acfe VZ |
5644 | enablestring= |
5645 | echo $ac_n "checking for --${enablestring:-enable}-dnd""... $ac_c" 1>&6 | |
2b5f62a0 | 5646 | echo "configure:5647: checking for --${enablestring:-enable}-dnd" >&5 |
10f2d63a VZ |
5647 | no_cache=0 |
5648 | # Check whether --enable-dnd or --disable-dnd was given. | |
5649 | if test "${enable_dnd+set}" = set; then | |
5650 | enableval="$enable_dnd" | |
a0b9e27f | 5651 | |
10f2d63a VZ |
5652 | if test "$enableval" = yes; then |
5653 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
5654 | else | |
5655 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
5656 | fi | |
a0b9e27f | 5657 | |
10f2d63a | 5658 | else |
a0b9e27f | 5659 | |
10f2d63a VZ |
5660 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
5661 | if test "x$LINE" != x ; then | |
5662 | eval "DEFAULT_$LINE" | |
5663 | else | |
5664 | no_cache=1 | |
5665 | fi | |
5666 | ||
5667 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
a0b9e27f MB |
5668 | |
5669 | fi | |
10f2d63a VZ |
5670 | |
5671 | ||
5672 | eval "$ac_cv_use_dnd" | |
5673 | if test "$no_cache" != 1; then | |
5674 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
5675 | fi | |
5676 | ||
5677 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
a0b9e27f | 5678 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5679 | else |
a0b9e27f | 5680 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5681 | fi |
a0b9e27f | 5682 | |
10f2d63a | 5683 | |
5005acfe VZ |
5684 | enablestring= |
5685 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
2b5f62a0 | 5686 | echo "configure:5687: checking for --${enablestring:-enable}-metafile" >&5 |
b64f0a5f RL |
5687 | no_cache=0 |
5688 | # Check whether --enable-metafile or --disable-metafile was given. | |
5689 | if test "${enable_metafile+set}" = set; then | |
5690 | enableval="$enable_metafile" | |
a0b9e27f | 5691 | |
b64f0a5f RL |
5692 | if test "$enableval" = yes; then |
5693 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
5694 | else | |
5695 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
5696 | fi | |
a0b9e27f | 5697 | |
b64f0a5f | 5698 | else |
a0b9e27f | 5699 | |
b64f0a5f RL |
5700 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
5701 | if test "x$LINE" != x ; then | |
5702 | eval "DEFAULT_$LINE" | |
5703 | else | |
5704 | no_cache=1 | |
5705 | fi | |
5706 | ||
5707 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
5708 | |
5709 | fi | |
b64f0a5f RL |
5710 | |
5711 | ||
5712 | eval "$ac_cv_use_metafile" | |
5713 | if test "$no_cache" != 1; then | |
5714 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
5715 | fi | |
5716 | ||
5717 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 5718 | echo "$ac_t""yes" 1>&6 |
b64f0a5f | 5719 | else |
a0b9e27f | 5720 | echo "$ac_t""no" 1>&6 |
b64f0a5f | 5721 | fi |
a0b9e27f | 5722 | |
52127426 | 5723 | |
8284b0c5 | 5724 | |
5005acfe VZ |
5725 | enablestring= |
5726 | echo $ac_n "checking for --${enablestring:-enable}-treelayout""... $ac_c" 1>&6 | |
2b5f62a0 | 5727 | echo "configure:5728: checking for --${enablestring:-enable}-treelayout" >&5 |
10f2d63a | 5728 | no_cache=0 |
24176f2c GD |
5729 | # Check whether --enable-treelayout or --disable-treelayout was given. |
5730 | if test "${enable_treelayout+set}" = set; then | |
5731 | enableval="$enable_treelayout" | |
a0b9e27f | 5732 | |
10f2d63a | 5733 | if test "$enableval" = yes; then |
24176f2c | 5734 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes' |
10f2d63a | 5735 | else |
24176f2c | 5736 | ac_cv_use_treelayout='wxUSE_TREELAYOUT=no' |
10f2d63a | 5737 | fi |
a0b9e27f | 5738 | |
10f2d63a | 5739 | else |
a0b9e27f | 5740 | |
24176f2c | 5741 | LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}` |
10f2d63a VZ |
5742 | if test "x$LINE" != x ; then |
5743 | eval "DEFAULT_$LINE" | |
5744 | else | |
5745 | no_cache=1 | |
5746 | fi | |
5747 | ||
24176f2c | 5748 | ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT |
a0b9e27f MB |
5749 | |
5750 | fi | |
10f2d63a VZ |
5751 | |
5752 | ||
24176f2c | 5753 | eval "$ac_cv_use_treelayout" |
10f2d63a | 5754 | if test "$no_cache" != 1; then |
24176f2c | 5755 | echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5756 | fi |
5757 | ||
24176f2c | 5758 | if test "$wxUSE_TREELAYOUT" = yes; then |
a0b9e27f | 5759 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5760 | else |
a0b9e27f | 5761 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5762 | fi |
a0b9e27f | 5763 | |
8284b0c5 | 5764 | |
52127426 | 5765 | |
8284b0c5 | 5766 | |
5005acfe VZ |
5767 | enablestring= |
5768 | echo $ac_n "checking for --${enablestring:-enable}-controls""... $ac_c" 1>&6 | |
2b5f62a0 | 5769 | echo "configure:5770: checking for --${enablestring:-enable}-controls" >&5 |
10f2d63a VZ |
5770 | no_cache=0 |
5771 | # Check whether --enable-controls or --disable-controls was given. | |
5772 | if test "${enable_controls+set}" = set; then | |
5773 | enableval="$enable_controls" | |
a0b9e27f | 5774 | |
10f2d63a VZ |
5775 | if test "$enableval" = yes; then |
5776 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
5777 | else | |
5778 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
5779 | fi | |
a0b9e27f | 5780 | |
10f2d63a | 5781 | else |
a0b9e27f | 5782 | |
10f2d63a VZ |
5783 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
5784 | if test "x$LINE" != x ; then | |
5785 | eval "DEFAULT_$LINE" | |
5786 | else | |
5787 | no_cache=1 | |
5788 | fi | |
5789 | ||
5790 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
a0b9e27f MB |
5791 | |
5792 | fi | |
10f2d63a VZ |
5793 | |
5794 | ||
5795 | eval "$ac_cv_use_controls" | |
5796 | if test "$no_cache" != 1; then | |
5797 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
5798 | fi | |
5799 | ||
5800 | if test "$wxUSE_CONTROLS" = yes; then | |
a0b9e27f | 5801 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5802 | else |
a0b9e27f | 5803 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5804 | fi |
a0b9e27f | 5805 | |
10f2d63a VZ |
5806 | |
5807 | if test "$wxUSE_CONTROLS" = "yes"; then | |
5808 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
5809 | DEFAULT_wxUSE_BMPBUTTON=yes |
5810 | DEFAULT_wxUSE_BUTTON=yes | |
5811 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5812 | DEFAULT_wxUSE_CARET=yes |
5813 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
5814 | DEFAULT_wxUSE_CHECKBOX=yes |
5815 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
5816 | DEFAULT_wxUSE_CHOICE=yes | |
5817 | DEFAULT_wxUSE_GAUGE=yes | |
5818 | DEFAULT_wxUSE_GRID=yes | |
cc977e5f | 5819 | DEFAULT_wxUSE_NEW_GRID=yes |
10f2d63a VZ |
5820 | DEFAULT_wxUSE_IMAGLIST=yes |
5821 | DEFAULT_wxUSE_LISTBOX=yes | |
5822 | DEFAULT_wxUSE_LISTCTRL=yes | |
5823 | DEFAULT_wxUSE_NOTEBOOK=yes | |
24176f2c | 5824 | DEFAULT_wxUSE_PROPSHEET=yes |
10f2d63a VZ |
5825 | DEFAULT_wxUSE_RADIOBOX=yes |
5826 | DEFAULT_wxUSE_RADIOBTN=yes | |
5827 | DEFAULT_wxUSE_SASH=yes | |
5828 | DEFAULT_wxUSE_SCROLLBAR=yes | |
5829 | DEFAULT_wxUSE_SLIDER=yes | |
5830 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 5831 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
5832 | DEFAULT_wxUSE_SPLITTER=yes |
5833 | DEFAULT_wxUSE_STATBMP=yes | |
5834 | DEFAULT_wxUSE_STATBOX=yes | |
5835 | DEFAULT_wxUSE_STATLINE=yes | |
5836 | DEFAULT_wxUSE_STATUSBAR=yes | |
5837 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 5838 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 5839 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
5840 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
5841 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
5842 | DEFAULT_wxUSE_TOOLTIPS=yes |
5843 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 5844 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 5845 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
5846 | elif test "$wxUSE_CONTROLS" = "no"; then |
5847 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
5848 | DEFAULT_wxUSE_BMPBUTTON=no |
5849 | DEFAULT_wxUSE_BUTTON=no | |
5850 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
5851 | DEFAULT_wxUSE_CARET=no |
5852 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
5853 | DEFAULT_wxUSE_CHECKBOX=no |
5854 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
5855 | DEFAULT_wxUSE_CHOICE=no | |
5856 | DEFAULT_wxUSE_GAUGE=no | |
5857 | DEFAULT_wxUSE_GRID=no | |
5858 | DEFAULT_wxUSE_NEW_GRID=no | |
5859 | DEFAULT_wxUSE_IMAGLIST=no | |
5860 | DEFAULT_wxUSE_LISTBOX=no | |
5861 | DEFAULT_wxUSE_LISTCTRL=no | |
5862 | DEFAULT_wxUSE_NOTEBOOK=no | |
24176f2c | 5863 | DEFAULT_wxUSE_PROPSHEET=no |
10f2d63a VZ |
5864 | DEFAULT_wxUSE_RADIOBOX=no |
5865 | DEFAULT_wxUSE_RADIOBTN=no | |
5866 | DEFAULT_wxUSE_SASH=no | |
5867 | DEFAULT_wxUSE_SCROLLBAR=no | |
5868 | DEFAULT_wxUSE_SLIDER=no | |
5869 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 5870 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
5871 | DEFAULT_wxUSE_SPLITTER=no |
5872 | DEFAULT_wxUSE_STATBMP=no | |
5873 | DEFAULT_wxUSE_STATBOX=no | |
5874 | DEFAULT_wxUSE_STATLINE=no | |
5875 | DEFAULT_wxUSE_STATUSBAR=no | |
5876 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 5877 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 5878 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
5879 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
5880 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
5881 | DEFAULT_wxUSE_TOOLTIPS=no |
5882 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 5883 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 5884 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
5885 | fi |
5886 | ||
8284b0c5 | 5887 | |
5005acfe VZ |
5888 | enablestring= |
5889 | echo $ac_n "checking for --${enablestring:-enable}-accel""... $ac_c" 1>&6 | |
2b5f62a0 | 5890 | echo "configure:5891: checking for --${enablestring:-enable}-accel" >&5 |
10f2d63a VZ |
5891 | no_cache=0 |
5892 | # Check whether --enable-accel or --disable-accel was given. | |
5893 | if test "${enable_accel+set}" = set; then | |
5894 | enableval="$enable_accel" | |
a0b9e27f | 5895 | |
10f2d63a VZ |
5896 | if test "$enableval" = yes; then |
5897 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
5898 | else | |
5899 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
5900 | fi | |
a0b9e27f | 5901 | |
10f2d63a | 5902 | else |
a0b9e27f | 5903 | |
10f2d63a VZ |
5904 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
5905 | if test "x$LINE" != x ; then | |
5906 | eval "DEFAULT_$LINE" | |
5907 | else | |
5908 | no_cache=1 | |
5909 | fi | |
5910 | ||
5911 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
a0b9e27f MB |
5912 | |
5913 | fi | |
10f2d63a VZ |
5914 | |
5915 | ||
5916 | eval "$ac_cv_use_accel" | |
5917 | if test "$no_cache" != 1; then | |
5918 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
5919 | fi | |
5920 | ||
5921 | if test "$wxUSE_ACCEL" = yes; then | |
a0b9e27f | 5922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5923 | else |
a0b9e27f | 5924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5925 | fi |
a0b9e27f | 5926 | |
10f2d63a | 5927 | |
5005acfe VZ |
5928 | enablestring= |
5929 | echo $ac_n "checking for --${enablestring:-enable}-button""... $ac_c" 1>&6 | |
2b5f62a0 | 5930 | echo "configure:5931: checking for --${enablestring:-enable}-button" >&5 |
10f2d63a | 5931 | no_cache=0 |
1e6feb95 VZ |
5932 | # Check whether --enable-button or --disable-button was given. |
5933 | if test "${enable_button+set}" = set; then | |
5934 | enableval="$enable_button" | |
a0b9e27f | 5935 | |
10f2d63a | 5936 | if test "$enableval" = yes; then |
1e6feb95 | 5937 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 5938 | else |
1e6feb95 | 5939 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 5940 | fi |
a0b9e27f | 5941 | |
10f2d63a | 5942 | else |
a0b9e27f | 5943 | |
1e6feb95 | 5944 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
5945 | if test "x$LINE" != x ; then |
5946 | eval "DEFAULT_$LINE" | |
5947 | else | |
5948 | no_cache=1 | |
5949 | fi | |
5950 | ||
1e6feb95 | 5951 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
a0b9e27f MB |
5952 | |
5953 | fi | |
10f2d63a VZ |
5954 | |
5955 | ||
1e6feb95 | 5956 | eval "$ac_cv_use_button" |
10f2d63a | 5957 | if test "$no_cache" != 1; then |
1e6feb95 | 5958 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5959 | fi |
5960 | ||
1e6feb95 | 5961 | if test "$wxUSE_BUTTON" = yes; then |
a0b9e27f | 5962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 5963 | else |
a0b9e27f | 5964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 5965 | fi |
a0b9e27f | 5966 | |
10f2d63a | 5967 | |
5005acfe VZ |
5968 | enablestring= |
5969 | echo $ac_n "checking for --${enablestring:-enable}-bmpbutton""... $ac_c" 1>&6 | |
2b5f62a0 | 5970 | echo "configure:5971: checking for --${enablestring:-enable}-bmpbutton" >&5 |
10f2d63a VZ |
5971 | no_cache=0 |
5972 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
5973 | if test "${enable_bmpbutton+set}" = set; then | |
5974 | enableval="$enable_bmpbutton" | |
a0b9e27f | 5975 | |
10f2d63a VZ |
5976 | if test "$enableval" = yes; then |
5977 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
5978 | else | |
5979 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
5980 | fi | |
a0b9e27f | 5981 | |
10f2d63a | 5982 | else |
a0b9e27f | 5983 | |
10f2d63a VZ |
5984 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
5985 | if test "x$LINE" != x ; then | |
5986 | eval "DEFAULT_$LINE" | |
5987 | else | |
5988 | no_cache=1 | |
5989 | fi | |
5990 | ||
5991 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
a0b9e27f MB |
5992 | |
5993 | fi | |
10f2d63a VZ |
5994 | |
5995 | ||
5996 | eval "$ac_cv_use_bmpbutton" | |
5997 | if test "$no_cache" != 1; then | |
5998 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
5999 | fi | |
6000 | ||
6001 | if test "$wxUSE_BMPBUTTON" = yes; then | |
a0b9e27f | 6002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6003 | else |
a0b9e27f | 6004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6005 | fi |
a0b9e27f | 6006 | |
10f2d63a | 6007 | |
5005acfe VZ |
6008 | enablestring= |
6009 | echo $ac_n "checking for --${enablestring:-enable}-calendar""... $ac_c" 1>&6 | |
2b5f62a0 | 6010 | echo "configure:6011: checking for --${enablestring:-enable}-calendar" >&5 |
1e6feb95 VZ |
6011 | no_cache=0 |
6012 | # Check whether --enable-calendar or --disable-calendar was given. | |
6013 | if test "${enable_calendar+set}" = set; then | |
6014 | enableval="$enable_calendar" | |
a0b9e27f | 6015 | |
1e6feb95 VZ |
6016 | if test "$enableval" = yes; then |
6017 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6018 | else | |
6019 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6020 | fi | |
a0b9e27f | 6021 | |
1e6feb95 | 6022 | else |
a0b9e27f | 6023 | |
1e6feb95 VZ |
6024 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6025 | if test "x$LINE" != x ; then | |
6026 | eval "DEFAULT_$LINE" | |
6027 | else | |
6028 | no_cache=1 | |
6029 | fi | |
6030 | ||
6031 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
a0b9e27f MB |
6032 | |
6033 | fi | |
1e6feb95 VZ |
6034 | |
6035 | ||
6036 | eval "$ac_cv_use_calendar" | |
6037 | if test "$no_cache" != 1; then | |
6038 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6039 | fi | |
6040 | ||
6041 | if test "$wxUSE_CALCTRL" = yes; then | |
a0b9e27f | 6042 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6043 | else |
a0b9e27f | 6044 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6045 | fi |
a0b9e27f | 6046 | |
1e6feb95 | 6047 | |
5005acfe VZ |
6048 | enablestring= |
6049 | echo $ac_n "checking for --${enablestring:-enable}-caret""... $ac_c" 1>&6 | |
2b5f62a0 | 6050 | echo "configure:6051: checking for --${enablestring:-enable}-caret" >&5 |
1e6feb95 VZ |
6051 | no_cache=0 |
6052 | # Check whether --enable-caret or --disable-caret was given. | |
6053 | if test "${enable_caret+set}" = set; then | |
6054 | enableval="$enable_caret" | |
a0b9e27f | 6055 | |
1e6feb95 VZ |
6056 | if test "$enableval" = yes; then |
6057 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6058 | else | |
6059 | ac_cv_use_caret='wxUSE_CARET=no' | |
6060 | fi | |
a0b9e27f | 6061 | |
1e6feb95 | 6062 | else |
a0b9e27f | 6063 | |
1e6feb95 VZ |
6064 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6065 | if test "x$LINE" != x ; then | |
6066 | eval "DEFAULT_$LINE" | |
6067 | else | |
6068 | no_cache=1 | |
6069 | fi | |
6070 | ||
6071 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
a0b9e27f MB |
6072 | |
6073 | fi | |
1e6feb95 VZ |
6074 | |
6075 | ||
6076 | eval "$ac_cv_use_caret" | |
6077 | if test "$no_cache" != 1; then | |
6078 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6079 | fi | |
6080 | ||
6081 | if test "$wxUSE_CARET" = yes; then | |
a0b9e27f | 6082 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 6083 | else |
a0b9e27f | 6084 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 6085 | fi |
a0b9e27f | 6086 | |
1e6feb95 | 6087 | |
5005acfe VZ |
6088 | enablestring= |
6089 | echo $ac_n "checking for --${enablestring:-enable}-checkbox""... $ac_c" 1>&6 | |
2b5f62a0 | 6090 | echo "configure:6091: checking for --${enablestring:-enable}-checkbox" >&5 |
10f2d63a VZ |
6091 | no_cache=0 |
6092 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6093 | if test "${enable_checkbox+set}" = set; then | |
6094 | enableval="$enable_checkbox" | |
a0b9e27f | 6095 | |
10f2d63a VZ |
6096 | if test "$enableval" = yes; then |
6097 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6098 | else | |
6099 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6100 | fi | |
a0b9e27f | 6101 | |
10f2d63a | 6102 | else |
a0b9e27f | 6103 | |
10f2d63a VZ |
6104 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6105 | if test "x$LINE" != x ; then | |
6106 | eval "DEFAULT_$LINE" | |
6107 | else | |
6108 | no_cache=1 | |
6109 | fi | |
6110 | ||
6111 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
a0b9e27f MB |
6112 | |
6113 | fi | |
10f2d63a VZ |
6114 | |
6115 | ||
6116 | eval "$ac_cv_use_checkbox" | |
6117 | if test "$no_cache" != 1; then | |
6118 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6119 | fi | |
6120 | ||
6121 | if test "$wxUSE_CHECKBOX" = yes; then | |
a0b9e27f | 6122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6123 | else |
a0b9e27f | 6124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6125 | fi |
a0b9e27f | 6126 | |
10f2d63a | 6127 | |
5005acfe VZ |
6128 | enablestring= |
6129 | echo $ac_n "checking for --${enablestring:-enable}-checklst""... $ac_c" 1>&6 | |
2b5f62a0 | 6130 | echo "configure:6131: checking for --${enablestring:-enable}-checklst" >&5 |
10f2d63a VZ |
6131 | no_cache=0 |
6132 | # Check whether --enable-checklst or --disable-checklst was given. | |
6133 | if test "${enable_checklst+set}" = set; then | |
6134 | enableval="$enable_checklst" | |
a0b9e27f | 6135 | |
10f2d63a VZ |
6136 | if test "$enableval" = yes; then |
6137 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6138 | else | |
6139 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6140 | fi | |
a0b9e27f | 6141 | |
10f2d63a | 6142 | else |
a0b9e27f | 6143 | |
10f2d63a VZ |
6144 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6145 | if test "x$LINE" != x ; then | |
6146 | eval "DEFAULT_$LINE" | |
6147 | else | |
6148 | no_cache=1 | |
6149 | fi | |
6150 | ||
6151 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
a0b9e27f MB |
6152 | |
6153 | fi | |
10f2d63a VZ |
6154 | |
6155 | ||
6156 | eval "$ac_cv_use_checklst" | |
6157 | if test "$no_cache" != 1; then | |
6158 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6159 | fi | |
6160 | ||
6161 | if test "$wxUSE_CHECKLST" = yes; then | |
a0b9e27f | 6162 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6163 | else |
a0b9e27f | 6164 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6165 | fi |
a0b9e27f | 6166 | |
10f2d63a | 6167 | |
5005acfe VZ |
6168 | enablestring= |
6169 | echo $ac_n "checking for --${enablestring:-enable}-choice""... $ac_c" 1>&6 | |
2b5f62a0 | 6170 | echo "configure:6171: checking for --${enablestring:-enable}-choice" >&5 |
10f2d63a VZ |
6171 | no_cache=0 |
6172 | # Check whether --enable-choice or --disable-choice was given. | |
6173 | if test "${enable_choice+set}" = set; then | |
6174 | enableval="$enable_choice" | |
a0b9e27f | 6175 | |
10f2d63a VZ |
6176 | if test "$enableval" = yes; then |
6177 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6178 | else | |
6179 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6180 | fi | |
a0b9e27f | 6181 | |
10f2d63a | 6182 | else |
a0b9e27f | 6183 | |
10f2d63a VZ |
6184 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6185 | if test "x$LINE" != x ; then | |
6186 | eval "DEFAULT_$LINE" | |
6187 | else | |
6188 | no_cache=1 | |
6189 | fi | |
6190 | ||
6191 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
a0b9e27f MB |
6192 | |
6193 | fi | |
10f2d63a VZ |
6194 | |
6195 | ||
6196 | eval "$ac_cv_use_choice" | |
6197 | if test "$no_cache" != 1; then | |
6198 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6199 | fi | |
6200 | ||
6201 | if test "$wxUSE_CHOICE" = yes; then | |
a0b9e27f | 6202 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6203 | else |
a0b9e27f | 6204 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6205 | fi |
a0b9e27f | 6206 | |
10f2d63a | 6207 | |
5005acfe VZ |
6208 | enablestring= |
6209 | echo $ac_n "checking for --${enablestring:-enable}-combobox""... $ac_c" 1>&6 | |
2b5f62a0 | 6210 | echo "configure:6211: checking for --${enablestring:-enable}-combobox" >&5 |
10f2d63a VZ |
6211 | no_cache=0 |
6212 | # Check whether --enable-combobox or --disable-combobox was given. | |
6213 | if test "${enable_combobox+set}" = set; then | |
6214 | enableval="$enable_combobox" | |
a0b9e27f | 6215 | |
10f2d63a VZ |
6216 | if test "$enableval" = yes; then |
6217 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6218 | else | |
6219 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6220 | fi | |
a0b9e27f | 6221 | |
10f2d63a | 6222 | else |
a0b9e27f | 6223 | |
10f2d63a VZ |
6224 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6225 | if test "x$LINE" != x ; then | |
6226 | eval "DEFAULT_$LINE" | |
6227 | else | |
6228 | no_cache=1 | |
6229 | fi | |
6230 | ||
6231 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
a0b9e27f MB |
6232 | |
6233 | fi | |
10f2d63a VZ |
6234 | |
6235 | ||
6236 | eval "$ac_cv_use_combobox" | |
6237 | if test "$no_cache" != 1; then | |
6238 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6239 | fi | |
6240 | ||
6241 | if test "$wxUSE_COMBOBOX" = yes; then | |
a0b9e27f | 6242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6243 | else |
a0b9e27f | 6244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6245 | fi |
a0b9e27f | 6246 | |
10f2d63a | 6247 | |
5005acfe VZ |
6248 | enablestring= |
6249 | echo $ac_n "checking for --${enablestring:-enable}-gauge""... $ac_c" 1>&6 | |
2b5f62a0 | 6250 | echo "configure:6251: checking for --${enablestring:-enable}-gauge" >&5 |
10f2d63a VZ |
6251 | no_cache=0 |
6252 | # Check whether --enable-gauge or --disable-gauge was given. | |
6253 | if test "${enable_gauge+set}" = set; then | |
6254 | enableval="$enable_gauge" | |
a0b9e27f | 6255 | |
10f2d63a VZ |
6256 | if test "$enableval" = yes; then |
6257 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6258 | else | |
6259 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6260 | fi | |
a0b9e27f | 6261 | |
10f2d63a | 6262 | else |
a0b9e27f | 6263 | |
10f2d63a VZ |
6264 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6265 | if test "x$LINE" != x ; then | |
6266 | eval "DEFAULT_$LINE" | |
6267 | else | |
6268 | no_cache=1 | |
6269 | fi | |
6270 | ||
6271 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
a0b9e27f MB |
6272 | |
6273 | fi | |
10f2d63a VZ |
6274 | |
6275 | ||
6276 | eval "$ac_cv_use_gauge" | |
6277 | if test "$no_cache" != 1; then | |
6278 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
6279 | fi | |
6280 | ||
6281 | if test "$wxUSE_GAUGE" = yes; then | |
a0b9e27f | 6282 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6283 | else |
a0b9e27f | 6284 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6285 | fi |
a0b9e27f | 6286 | |
10f2d63a | 6287 | |
5005acfe VZ |
6288 | enablestring= |
6289 | echo $ac_n "checking for --${enablestring:-enable}-grid""... $ac_c" 1>&6 | |
2b5f62a0 | 6290 | echo "configure:6291: checking for --${enablestring:-enable}-grid" >&5 |
10f2d63a VZ |
6291 | no_cache=0 |
6292 | # Check whether --enable-grid or --disable-grid was given. | |
6293 | if test "${enable_grid+set}" = set; then | |
6294 | enableval="$enable_grid" | |
a0b9e27f | 6295 | |
10f2d63a VZ |
6296 | if test "$enableval" = yes; then |
6297 | ac_cv_use_grid='wxUSE_GRID=yes' | |
6298 | else | |
6299 | ac_cv_use_grid='wxUSE_GRID=no' | |
6300 | fi | |
a0b9e27f | 6301 | |
10f2d63a | 6302 | else |
a0b9e27f | 6303 | |
10f2d63a VZ |
6304 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
6305 | if test "x$LINE" != x ; then | |
6306 | eval "DEFAULT_$LINE" | |
6307 | else | |
6308 | no_cache=1 | |
6309 | fi | |
6310 | ||
6311 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
a0b9e27f MB |
6312 | |
6313 | fi | |
10f2d63a VZ |
6314 | |
6315 | ||
6316 | eval "$ac_cv_use_grid" | |
6317 | if test "$no_cache" != 1; then | |
6318 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
6319 | fi | |
6320 | ||
6321 | if test "$wxUSE_GRID" = yes; then | |
a0b9e27f | 6322 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6323 | else |
a0b9e27f | 6324 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6325 | fi |
a0b9e27f | 6326 | |
10f2d63a | 6327 | |
5005acfe VZ |
6328 | enablestring= |
6329 | echo $ac_n "checking for --${enablestring:-enable}-newgrid""... $ac_c" 1>&6 | |
2b5f62a0 | 6330 | echo "configure:6331: checking for --${enablestring:-enable}-newgrid" >&5 |
10f2d63a VZ |
6331 | no_cache=0 |
6332 | # Check whether --enable-newgrid or --disable-newgrid was given. | |
6333 | if test "${enable_newgrid+set}" = set; then | |
6334 | enableval="$enable_newgrid" | |
a0b9e27f | 6335 | |
10f2d63a VZ |
6336 | if test "$enableval" = yes; then |
6337 | ac_cv_use_newgrid='wxUSE_NEW_GRID=yes' | |
6338 | else | |
6339 | ac_cv_use_newgrid='wxUSE_NEW_GRID=no' | |
6340 | fi | |
a0b9e27f | 6341 | |
10f2d63a | 6342 | else |
a0b9e27f | 6343 | |
10f2d63a VZ |
6344 | LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}` |
6345 | if test "x$LINE" != x ; then | |
6346 | eval "DEFAULT_$LINE" | |
6347 | else | |
6348 | no_cache=1 | |
6349 | fi | |
6350 | ||
6351 | ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID | |
a0b9e27f MB |
6352 | |
6353 | fi | |
10f2d63a VZ |
6354 | |
6355 | ||
6356 | eval "$ac_cv_use_newgrid" | |
6357 | if test "$no_cache" != 1; then | |
6358 | echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp | |
6359 | fi | |
6360 | ||
6361 | if test "$wxUSE_NEW_GRID" = yes; then | |
a0b9e27f | 6362 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6363 | else |
a0b9e27f | 6364 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6365 | fi |
a0b9e27f | 6366 | |
10f2d63a | 6367 | |
5005acfe VZ |
6368 | enablestring= |
6369 | echo $ac_n "checking for --${enablestring:-enable}-imaglist""... $ac_c" 1>&6 | |
2b5f62a0 | 6370 | echo "configure:6371: checking for --${enablestring:-enable}-imaglist" >&5 |
10f2d63a VZ |
6371 | no_cache=0 |
6372 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
6373 | if test "${enable_imaglist+set}" = set; then | |
6374 | enableval="$enable_imaglist" | |
a0b9e27f | 6375 | |
10f2d63a VZ |
6376 | if test "$enableval" = yes; then |
6377 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
6378 | else | |
6379 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
6380 | fi | |
a0b9e27f | 6381 | |
10f2d63a | 6382 | else |
a0b9e27f | 6383 | |
10f2d63a VZ |
6384 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
6385 | if test "x$LINE" != x ; then | |
6386 | eval "DEFAULT_$LINE" | |
6387 | else | |
6388 | no_cache=1 | |
6389 | fi | |
6390 | ||
6391 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
a0b9e27f MB |
6392 | |
6393 | fi | |
10f2d63a VZ |
6394 | |
6395 | ||
6396 | eval "$ac_cv_use_imaglist" | |
6397 | if test "$no_cache" != 1; then | |
6398 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
6399 | fi | |
6400 | ||
6401 | if test "$wxUSE_IMAGLIST" = yes; then | |
a0b9e27f | 6402 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6403 | else |
a0b9e27f | 6404 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6405 | fi |
a0b9e27f | 6406 | |
10f2d63a | 6407 | |
5005acfe VZ |
6408 | enablestring= |
6409 | echo $ac_n "checking for --${enablestring:-enable}-listbox""... $ac_c" 1>&6 | |
2b5f62a0 | 6410 | echo "configure:6411: checking for --${enablestring:-enable}-listbox" >&5 |
10f2d63a VZ |
6411 | no_cache=0 |
6412 | # Check whether --enable-listbox or --disable-listbox was given. | |
6413 | if test "${enable_listbox+set}" = set; then | |
6414 | enableval="$enable_listbox" | |
a0b9e27f | 6415 | |
10f2d63a VZ |
6416 | if test "$enableval" = yes; then |
6417 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
6418 | else | |
6419 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
6420 | fi | |
a0b9e27f | 6421 | |
10f2d63a | 6422 | else |
a0b9e27f | 6423 | |
10f2d63a VZ |
6424 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
6425 | if test "x$LINE" != x ; then | |
6426 | eval "DEFAULT_$LINE" | |
6427 | else | |
6428 | no_cache=1 | |
6429 | fi | |
6430 | ||
6431 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
a0b9e27f MB |
6432 | |
6433 | fi | |
10f2d63a VZ |
6434 | |
6435 | ||
6436 | eval "$ac_cv_use_listbox" | |
6437 | if test "$no_cache" != 1; then | |
6438 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
6439 | fi | |
6440 | ||
6441 | if test "$wxUSE_LISTBOX" = yes; then | |
a0b9e27f | 6442 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6443 | else |
a0b9e27f | 6444 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6445 | fi |
a0b9e27f | 6446 | |
10f2d63a | 6447 | |
5005acfe VZ |
6448 | enablestring= |
6449 | echo $ac_n "checking for --${enablestring:-enable}-listctrl""... $ac_c" 1>&6 | |
2b5f62a0 | 6450 | echo "configure:6451: checking for --${enablestring:-enable}-listctrl" >&5 |
10f2d63a VZ |
6451 | no_cache=0 |
6452 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
6453 | if test "${enable_listctrl+set}" = set; then | |
6454 | enableval="$enable_listctrl" | |
a0b9e27f | 6455 | |
10f2d63a VZ |
6456 | if test "$enableval" = yes; then |
6457 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
6458 | else | |
6459 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
6460 | fi | |
a0b9e27f | 6461 | |
10f2d63a | 6462 | else |
a0b9e27f | 6463 | |
10f2d63a VZ |
6464 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
6465 | if test "x$LINE" != x ; then | |
6466 | eval "DEFAULT_$LINE" | |
6467 | else | |
6468 | no_cache=1 | |
6469 | fi | |
6470 | ||
6471 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
a0b9e27f MB |
6472 | |
6473 | fi | |
10f2d63a VZ |
6474 | |
6475 | ||
6476 | eval "$ac_cv_use_listctrl" | |
6477 | if test "$no_cache" != 1; then | |
6478 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
6479 | fi | |
6480 | ||
6481 | if test "$wxUSE_LISTCTRL" = yes; then | |
a0b9e27f | 6482 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6483 | else |
a0b9e27f | 6484 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6485 | fi |
a0b9e27f | 6486 | |
10f2d63a | 6487 | |
5005acfe VZ |
6488 | enablestring= |
6489 | echo $ac_n "checking for --${enablestring:-enable}-notebook""... $ac_c" 1>&6 | |
2b5f62a0 | 6490 | echo "configure:6491: checking for --${enablestring:-enable}-notebook" >&5 |
10f2d63a VZ |
6491 | no_cache=0 |
6492 | # Check whether --enable-notebook or --disable-notebook was given. | |
6493 | if test "${enable_notebook+set}" = set; then | |
6494 | enableval="$enable_notebook" | |
a0b9e27f | 6495 | |
10f2d63a VZ |
6496 | if test "$enableval" = yes; then |
6497 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
6498 | else | |
6499 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
6500 | fi | |
a0b9e27f | 6501 | |
10f2d63a | 6502 | else |
a0b9e27f | 6503 | |
10f2d63a VZ |
6504 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
6505 | if test "x$LINE" != x ; then | |
6506 | eval "DEFAULT_$LINE" | |
6507 | else | |
6508 | no_cache=1 | |
6509 | fi | |
6510 | ||
6511 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
a0b9e27f MB |
6512 | |
6513 | fi | |
10f2d63a VZ |
6514 | |
6515 | ||
6516 | eval "$ac_cv_use_notebook" | |
6517 | if test "$no_cache" != 1; then | |
6518 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
6519 | fi | |
6520 | ||
6521 | if test "$wxUSE_NOTEBOOK" = yes; then | |
a0b9e27f | 6522 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6523 | else |
a0b9e27f | 6524 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6525 | fi |
a0b9e27f | 6526 | |
10f2d63a | 6527 | |
5005acfe VZ |
6528 | enablestring= |
6529 | echo $ac_n "checking for --${enablestring:-enable}-propsheet""... $ac_c" 1>&6 | |
2b5f62a0 | 6530 | echo "configure:6531: checking for --${enablestring:-enable}-propsheet" >&5 |
24176f2c GD |
6531 | no_cache=0 |
6532 | # Check whether --enable-propsheet or --disable-propsheet was given. | |
6533 | if test "${enable_propsheet+set}" = set; then | |
6534 | enableval="$enable_propsheet" | |
a0b9e27f | 6535 | |
24176f2c GD |
6536 | if test "$enableval" = yes; then |
6537 | ac_cv_use_propsheet='wxUSE_PROPSHEET=yes' | |
6538 | else | |
6539 | ac_cv_use_propsheet='wxUSE_PROPSHEET=no' | |
6540 | fi | |
a0b9e27f | 6541 | |
24176f2c | 6542 | else |
a0b9e27f | 6543 | |
24176f2c GD |
6544 | LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}` |
6545 | if test "x$LINE" != x ; then | |
6546 | eval "DEFAULT_$LINE" | |
6547 | else | |
6548 | no_cache=1 | |
6549 | fi | |
6550 | ||
6551 | ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET | |
a0b9e27f MB |
6552 | |
6553 | fi | |
24176f2c GD |
6554 | |
6555 | ||
6556 | eval "$ac_cv_use_propsheet" | |
6557 | if test "$no_cache" != 1; then | |
6558 | echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp | |
6559 | fi | |
6560 | ||
6561 | if test "$wxUSE_PROPSHEET" = yes; then | |
a0b9e27f | 6562 | echo "$ac_t""yes" 1>&6 |
24176f2c | 6563 | else |
a0b9e27f | 6564 | echo "$ac_t""no" 1>&6 |
24176f2c | 6565 | fi |
a0b9e27f | 6566 | |
24176f2c | 6567 | |
5005acfe VZ |
6568 | enablestring= |
6569 | echo $ac_n "checking for --${enablestring:-enable}-radiobox""... $ac_c" 1>&6 | |
2b5f62a0 | 6570 | echo "configure:6571: checking for --${enablestring:-enable}-radiobox" >&5 |
10f2d63a VZ |
6571 | no_cache=0 |
6572 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
6573 | if test "${enable_radiobox+set}" = set; then | |
6574 | enableval="$enable_radiobox" | |
a0b9e27f | 6575 | |
10f2d63a VZ |
6576 | if test "$enableval" = yes; then |
6577 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
6578 | else | |
6579 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
6580 | fi | |
a0b9e27f | 6581 | |
10f2d63a | 6582 | else |
a0b9e27f | 6583 | |
10f2d63a VZ |
6584 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
6585 | if test "x$LINE" != x ; then | |
6586 | eval "DEFAULT_$LINE" | |
6587 | else | |
6588 | no_cache=1 | |
6589 | fi | |
6590 | ||
6591 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
a0b9e27f MB |
6592 | |
6593 | fi | |
10f2d63a VZ |
6594 | |
6595 | ||
6596 | eval "$ac_cv_use_radiobox" | |
6597 | if test "$no_cache" != 1; then | |
6598 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
6599 | fi | |
6600 | ||
6601 | if test "$wxUSE_RADIOBOX" = yes; then | |
a0b9e27f | 6602 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6603 | else |
a0b9e27f | 6604 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6605 | fi |
a0b9e27f | 6606 | |
10f2d63a | 6607 | |
5005acfe VZ |
6608 | enablestring= |
6609 | echo $ac_n "checking for --${enablestring:-enable}-radiobtn""... $ac_c" 1>&6 | |
2b5f62a0 | 6610 | echo "configure:6611: checking for --${enablestring:-enable}-radiobtn" >&5 |
10f2d63a VZ |
6611 | no_cache=0 |
6612 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
6613 | if test "${enable_radiobtn+set}" = set; then | |
6614 | enableval="$enable_radiobtn" | |
a0b9e27f | 6615 | |
10f2d63a VZ |
6616 | if test "$enableval" = yes; then |
6617 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
6618 | else | |
6619 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
6620 | fi | |
a0b9e27f | 6621 | |
10f2d63a | 6622 | else |
a0b9e27f | 6623 | |
10f2d63a VZ |
6624 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
6625 | if test "x$LINE" != x ; then | |
6626 | eval "DEFAULT_$LINE" | |
6627 | else | |
6628 | no_cache=1 | |
6629 | fi | |
6630 | ||
6631 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
a0b9e27f MB |
6632 | |
6633 | fi | |
10f2d63a VZ |
6634 | |
6635 | ||
6636 | eval "$ac_cv_use_radiobtn" | |
6637 | if test "$no_cache" != 1; then | |
6638 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
6639 | fi | |
6640 | ||
6641 | if test "$wxUSE_RADIOBTN" = yes; then | |
a0b9e27f | 6642 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6643 | else |
a0b9e27f | 6644 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6645 | fi |
a0b9e27f | 6646 | |
10f2d63a | 6647 | |
5005acfe VZ |
6648 | enablestring= |
6649 | echo $ac_n "checking for --${enablestring:-enable}-sash""... $ac_c" 1>&6 | |
2b5f62a0 | 6650 | echo "configure:6651: checking for --${enablestring:-enable}-sash" >&5 |
10f2d63a VZ |
6651 | no_cache=0 |
6652 | # Check whether --enable-sash or --disable-sash was given. | |
6653 | if test "${enable_sash+set}" = set; then | |
6654 | enableval="$enable_sash" | |
a0b9e27f | 6655 | |
10f2d63a VZ |
6656 | if test "$enableval" = yes; then |
6657 | ac_cv_use_sash='wxUSE_SASH=yes' | |
6658 | else | |
6659 | ac_cv_use_sash='wxUSE_SASH=no' | |
6660 | fi | |
a0b9e27f | 6661 | |
10f2d63a | 6662 | else |
a0b9e27f | 6663 | |
10f2d63a VZ |
6664 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
6665 | if test "x$LINE" != x ; then | |
6666 | eval "DEFAULT_$LINE" | |
6667 | else | |
6668 | no_cache=1 | |
6669 | fi | |
6670 | ||
6671 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
a0b9e27f MB |
6672 | |
6673 | fi | |
10f2d63a VZ |
6674 | |
6675 | ||
6676 | eval "$ac_cv_use_sash" | |
6677 | if test "$no_cache" != 1; then | |
6678 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
6679 | fi | |
6680 | ||
6681 | if test "$wxUSE_SASH" = yes; then | |
a0b9e27f | 6682 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6683 | else |
a0b9e27f | 6684 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6685 | fi |
a0b9e27f | 6686 | |
10f2d63a | 6687 | |
5005acfe VZ |
6688 | enablestring= |
6689 | echo $ac_n "checking for --${enablestring:-enable}-scrollbar""... $ac_c" 1>&6 | |
2b5f62a0 | 6690 | echo "configure:6691: checking for --${enablestring:-enable}-scrollbar" >&5 |
10f2d63a VZ |
6691 | no_cache=0 |
6692 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
6693 | if test "${enable_scrollbar+set}" = set; then | |
6694 | enableval="$enable_scrollbar" | |
a0b9e27f | 6695 | |
10f2d63a VZ |
6696 | if test "$enableval" = yes; then |
6697 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
6698 | else | |
6699 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
6700 | fi | |
a0b9e27f | 6701 | |
10f2d63a | 6702 | else |
a0b9e27f | 6703 | |
10f2d63a VZ |
6704 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
6705 | if test "x$LINE" != x ; then | |
6706 | eval "DEFAULT_$LINE" | |
6707 | else | |
6708 | no_cache=1 | |
6709 | fi | |
6710 | ||
6711 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
a0b9e27f MB |
6712 | |
6713 | fi | |
10f2d63a VZ |
6714 | |
6715 | ||
6716 | eval "$ac_cv_use_scrollbar" | |
6717 | if test "$no_cache" != 1; then | |
6718 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
6719 | fi | |
6720 | ||
6721 | if test "$wxUSE_SCROLLBAR" = yes; then | |
a0b9e27f | 6722 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6723 | else |
a0b9e27f | 6724 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6725 | fi |
a0b9e27f | 6726 | |
10f2d63a | 6727 | |
5005acfe VZ |
6728 | enablestring= |
6729 | echo $ac_n "checking for --${enablestring:-enable}-slider""... $ac_c" 1>&6 | |
2b5f62a0 | 6730 | echo "configure:6731: checking for --${enablestring:-enable}-slider" >&5 |
10f2d63a VZ |
6731 | no_cache=0 |
6732 | # Check whether --enable-slider or --disable-slider was given. | |
6733 | if test "${enable_slider+set}" = set; then | |
6734 | enableval="$enable_slider" | |
a0b9e27f | 6735 | |
10f2d63a VZ |
6736 | if test "$enableval" = yes; then |
6737 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
6738 | else | |
6739 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
6740 | fi | |
a0b9e27f | 6741 | |
10f2d63a | 6742 | else |
a0b9e27f | 6743 | |
10f2d63a VZ |
6744 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
6745 | if test "x$LINE" != x ; then | |
6746 | eval "DEFAULT_$LINE" | |
6747 | else | |
6748 | no_cache=1 | |
6749 | fi | |
6750 | ||
6751 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
a0b9e27f MB |
6752 | |
6753 | fi | |
10f2d63a VZ |
6754 | |
6755 | ||
6756 | eval "$ac_cv_use_slider" | |
6757 | if test "$no_cache" != 1; then | |
6758 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
6759 | fi | |
6760 | ||
6761 | if test "$wxUSE_SLIDER" = yes; then | |
a0b9e27f | 6762 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6763 | else |
a0b9e27f | 6764 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6765 | fi |
a0b9e27f | 6766 | |
10f2d63a | 6767 | |
5005acfe VZ |
6768 | enablestring= |
6769 | echo $ac_n "checking for --${enablestring:-enable}-spinbtn""... $ac_c" 1>&6 | |
2b5f62a0 | 6770 | echo "configure:6771: checking for --${enablestring:-enable}-spinbtn" >&5 |
10f2d63a VZ |
6771 | no_cache=0 |
6772 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
6773 | if test "${enable_spinbtn+set}" = set; then | |
6774 | enableval="$enable_spinbtn" | |
a0b9e27f | 6775 | |
10f2d63a VZ |
6776 | if test "$enableval" = yes; then |
6777 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
6778 | else | |
6779 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
6780 | fi | |
a0b9e27f | 6781 | |
10f2d63a | 6782 | else |
a0b9e27f | 6783 | |
10f2d63a VZ |
6784 | LINE=`grep "wxUSE_SPINBTN" ${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_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
a0b9e27f MB |
6792 | |
6793 | fi | |
10f2d63a VZ |
6794 | |
6795 | ||
6796 | eval "$ac_cv_use_spinbtn" | |
6797 | if test "$no_cache" != 1; then | |
6798 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
6799 | fi | |
6800 | ||
6801 | if test "$wxUSE_SPINBTN" = yes; then | |
a0b9e27f | 6802 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6803 | else |
a0b9e27f | 6804 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6805 | fi |
a0b9e27f | 6806 | |
10f2d63a | 6807 | |
5005acfe VZ |
6808 | enablestring= |
6809 | echo $ac_n "checking for --${enablestring:-enable}-spinctrl""... $ac_c" 1>&6 | |
2b5f62a0 | 6810 | echo "configure:6811: checking for --${enablestring:-enable}-spinctrl" >&5 |
56cfaa52 RR |
6811 | no_cache=0 |
6812 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
6813 | if test "${enable_spinctrl+set}" = set; then | |
6814 | enableval="$enable_spinctrl" | |
a0b9e27f | 6815 | |
56cfaa52 RR |
6816 | if test "$enableval" = yes; then |
6817 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
6818 | else | |
6819 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
6820 | fi | |
a0b9e27f | 6821 | |
56cfaa52 | 6822 | else |
a0b9e27f | 6823 | |
56cfaa52 RR |
6824 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
6825 | if test "x$LINE" != x ; then | |
6826 | eval "DEFAULT_$LINE" | |
6827 | else | |
6828 | no_cache=1 | |
6829 | fi | |
6830 | ||
6831 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
a0b9e27f MB |
6832 | |
6833 | fi | |
56cfaa52 RR |
6834 | |
6835 | ||
6836 | eval "$ac_cv_use_spinctrl" | |
6837 | if test "$no_cache" != 1; then | |
6838 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
6839 | fi | |
6840 | ||
6841 | if test "$wxUSE_SPINCTRL" = yes; then | |
a0b9e27f | 6842 | echo "$ac_t""yes" 1>&6 |
56cfaa52 | 6843 | else |
a0b9e27f | 6844 | echo "$ac_t""no" 1>&6 |
56cfaa52 | 6845 | fi |
a0b9e27f | 6846 | |
56cfaa52 | 6847 | |
5005acfe VZ |
6848 | enablestring= |
6849 | echo $ac_n "checking for --${enablestring:-enable}-splitter""... $ac_c" 1>&6 | |
2b5f62a0 | 6850 | echo "configure:6851: checking for --${enablestring:-enable}-splitter" >&5 |
10f2d63a VZ |
6851 | no_cache=0 |
6852 | # Check whether --enable-splitter or --disable-splitter was given. | |
6853 | if test "${enable_splitter+set}" = set; then | |
6854 | enableval="$enable_splitter" | |
a0b9e27f | 6855 | |
10f2d63a VZ |
6856 | if test "$enableval" = yes; then |
6857 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
6858 | else | |
6859 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
6860 | fi | |
a0b9e27f | 6861 | |
10f2d63a | 6862 | else |
a0b9e27f | 6863 | |
10f2d63a VZ |
6864 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
6865 | if test "x$LINE" != x ; then | |
6866 | eval "DEFAULT_$LINE" | |
6867 | else | |
6868 | no_cache=1 | |
6869 | fi | |
6870 | ||
6871 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
a0b9e27f MB |
6872 | |
6873 | fi | |
10f2d63a VZ |
6874 | |
6875 | ||
6876 | eval "$ac_cv_use_splitter" | |
6877 | if test "$no_cache" != 1; then | |
6878 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
6879 | fi | |
6880 | ||
6881 | if test "$wxUSE_SPLITTER" = yes; then | |
a0b9e27f | 6882 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6883 | else |
a0b9e27f | 6884 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6885 | fi |
a0b9e27f | 6886 | |
10f2d63a | 6887 | |
5005acfe VZ |
6888 | enablestring= |
6889 | echo $ac_n "checking for --${enablestring:-enable}-statbmp""... $ac_c" 1>&6 | |
2b5f62a0 | 6890 | echo "configure:6891: checking for --${enablestring:-enable}-statbmp" >&5 |
10f2d63a VZ |
6891 | no_cache=0 |
6892 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
6893 | if test "${enable_statbmp+set}" = set; then | |
6894 | enableval="$enable_statbmp" | |
a0b9e27f | 6895 | |
10f2d63a VZ |
6896 | if test "$enableval" = yes; then |
6897 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
6898 | else | |
6899 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
6900 | fi | |
a0b9e27f | 6901 | |
10f2d63a | 6902 | else |
a0b9e27f | 6903 | |
10f2d63a VZ |
6904 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
6905 | if test "x$LINE" != x ; then | |
6906 | eval "DEFAULT_$LINE" | |
6907 | else | |
6908 | no_cache=1 | |
6909 | fi | |
6910 | ||
6911 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
a0b9e27f MB |
6912 | |
6913 | fi | |
10f2d63a VZ |
6914 | |
6915 | ||
6916 | eval "$ac_cv_use_statbmp" | |
6917 | if test "$no_cache" != 1; then | |
6918 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
6919 | fi | |
6920 | ||
6921 | if test "$wxUSE_STATBMP" = yes; then | |
a0b9e27f | 6922 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6923 | else |
a0b9e27f | 6924 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6925 | fi |
a0b9e27f | 6926 | |
10f2d63a | 6927 | |
5005acfe VZ |
6928 | enablestring= |
6929 | echo $ac_n "checking for --${enablestring:-enable}-statbox""... $ac_c" 1>&6 | |
2b5f62a0 | 6930 | echo "configure:6931: checking for --${enablestring:-enable}-statbox" >&5 |
10f2d63a VZ |
6931 | no_cache=0 |
6932 | # Check whether --enable-statbox or --disable-statbox was given. | |
6933 | if test "${enable_statbox+set}" = set; then | |
6934 | enableval="$enable_statbox" | |
a0b9e27f | 6935 | |
10f2d63a VZ |
6936 | if test "$enableval" = yes; then |
6937 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
6938 | else | |
6939 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
6940 | fi | |
a0b9e27f | 6941 | |
10f2d63a | 6942 | else |
a0b9e27f | 6943 | |
10f2d63a VZ |
6944 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
6945 | if test "x$LINE" != x ; then | |
6946 | eval "DEFAULT_$LINE" | |
6947 | else | |
6948 | no_cache=1 | |
6949 | fi | |
6950 | ||
6951 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
a0b9e27f MB |
6952 | |
6953 | fi | |
10f2d63a VZ |
6954 | |
6955 | ||
6956 | eval "$ac_cv_use_statbox" | |
6957 | if test "$no_cache" != 1; then | |
6958 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
6959 | fi | |
6960 | ||
6961 | if test "$wxUSE_STATBOX" = yes; then | |
a0b9e27f | 6962 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 6963 | else |
a0b9e27f | 6964 | echo "$ac_t""no" 1>&6 |
10f2d63a | 6965 | fi |
a0b9e27f | 6966 | |
10f2d63a | 6967 | |
5005acfe VZ |
6968 | enablestring= |
6969 | echo $ac_n "checking for --${enablestring:-enable}-statline""... $ac_c" 1>&6 | |
2b5f62a0 | 6970 | echo "configure:6971: checking for --${enablestring:-enable}-statline" >&5 |
10f2d63a VZ |
6971 | no_cache=0 |
6972 | # Check whether --enable-statline or --disable-statline was given. | |
6973 | if test "${enable_statline+set}" = set; then | |
6974 | enableval="$enable_statline" | |
a0b9e27f | 6975 | |
10f2d63a VZ |
6976 | if test "$enableval" = yes; then |
6977 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
6978 | else | |
6979 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
6980 | fi | |
a0b9e27f | 6981 | |
10f2d63a | 6982 | else |
a0b9e27f | 6983 | |
10f2d63a VZ |
6984 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
6985 | if test "x$LINE" != x ; then | |
6986 | eval "DEFAULT_$LINE" | |
6987 | else | |
6988 | no_cache=1 | |
6989 | fi | |
6990 | ||
6991 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
a0b9e27f MB |
6992 | |
6993 | fi | |
10f2d63a VZ |
6994 | |
6995 | ||
6996 | eval "$ac_cv_use_statline" | |
6997 | if test "$no_cache" != 1; then | |
6998 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
6999 | fi | |
7000 | ||
7001 | if test "$wxUSE_STATLINE" = yes; then | |
a0b9e27f | 7002 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7003 | else |
a0b9e27f | 7004 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7005 | fi |
a0b9e27f | 7006 | |
10f2d63a | 7007 | |
5005acfe VZ |
7008 | enablestring= |
7009 | echo $ac_n "checking for --${enablestring:-enable}-stattext""... $ac_c" 1>&6 | |
2b5f62a0 | 7010 | echo "configure:7011: checking for --${enablestring:-enable}-stattext" >&5 |
1e6feb95 VZ |
7011 | no_cache=0 |
7012 | # Check whether --enable-stattext or --disable-stattext was given. | |
7013 | if test "${enable_stattext+set}" = set; then | |
7014 | enableval="$enable_stattext" | |
a0b9e27f | 7015 | |
1e6feb95 VZ |
7016 | if test "$enableval" = yes; then |
7017 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7018 | else | |
7019 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7020 | fi | |
a0b9e27f | 7021 | |
1e6feb95 | 7022 | else |
a0b9e27f | 7023 | |
1e6feb95 VZ |
7024 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7025 | if test "x$LINE" != x ; then | |
7026 | eval "DEFAULT_$LINE" | |
7027 | else | |
7028 | no_cache=1 | |
7029 | fi | |
7030 | ||
7031 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
a0b9e27f MB |
7032 | |
7033 | fi | |
1e6feb95 VZ |
7034 | |
7035 | ||
7036 | eval "$ac_cv_use_stattext" | |
7037 | if test "$no_cache" != 1; then | |
7038 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7039 | fi | |
7040 | ||
7041 | if test "$wxUSE_STATTEXT" = yes; then | |
a0b9e27f | 7042 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7043 | else |
a0b9e27f | 7044 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7045 | fi |
a0b9e27f | 7046 | |
1e6feb95 | 7047 | |
5005acfe VZ |
7048 | enablestring= |
7049 | echo $ac_n "checking for --${enablestring:-enable}-statusbar""... $ac_c" 1>&6 | |
2b5f62a0 | 7050 | echo "configure:7051: checking for --${enablestring:-enable}-statusbar" >&5 |
10f2d63a VZ |
7051 | no_cache=0 |
7052 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7053 | if test "${enable_statusbar+set}" = set; then | |
7054 | enableval="$enable_statusbar" | |
a0b9e27f | 7055 | |
10f2d63a VZ |
7056 | if test "$enableval" = yes; then |
7057 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7058 | else | |
7059 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7060 | fi | |
a0b9e27f | 7061 | |
10f2d63a | 7062 | else |
a0b9e27f | 7063 | |
10f2d63a VZ |
7064 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7065 | if test "x$LINE" != x ; then | |
7066 | eval "DEFAULT_$LINE" | |
7067 | else | |
7068 | no_cache=1 | |
7069 | fi | |
7070 | ||
7071 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
a0b9e27f MB |
7072 | |
7073 | fi | |
10f2d63a VZ |
7074 | |
7075 | ||
7076 | eval "$ac_cv_use_statusbar" | |
7077 | if test "$no_cache" != 1; then | |
7078 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7079 | fi | |
7080 | ||
7081 | if test "$wxUSE_STATUSBAR" = yes; then | |
a0b9e27f | 7082 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7083 | else |
a0b9e27f | 7084 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7085 | fi |
a0b9e27f | 7086 | |
10f2d63a | 7087 | |
5005acfe VZ |
7088 | enablestring= |
7089 | echo $ac_n "checking for --${enablestring:-enable}-tabdialog""... $ac_c" 1>&6 | |
2b5f62a0 | 7090 | echo "configure:7091: checking for --${enablestring:-enable}-tabdialog" >&5 |
10f2d63a VZ |
7091 | no_cache=0 |
7092 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7093 | if test "${enable_tabdialog+set}" = set; then | |
7094 | enableval="$enable_tabdialog" | |
a0b9e27f | 7095 | |
10f2d63a VZ |
7096 | if test "$enableval" = yes; then |
7097 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7098 | else | |
7099 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7100 | fi | |
a0b9e27f | 7101 | |
10f2d63a | 7102 | else |
a0b9e27f | 7103 | |
10f2d63a VZ |
7104 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7105 | if test "x$LINE" != x ; then | |
7106 | eval "DEFAULT_$LINE" | |
7107 | else | |
7108 | no_cache=1 | |
7109 | fi | |
7110 | ||
7111 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
a0b9e27f MB |
7112 | |
7113 | fi | |
10f2d63a VZ |
7114 | |
7115 | ||
7116 | eval "$ac_cv_use_tabdialog" | |
7117 | if test "$no_cache" != 1; then | |
7118 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7119 | fi | |
7120 | ||
7121 | if test "$wxUSE_TABDIALOG" = yes; then | |
a0b9e27f | 7122 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7123 | else |
a0b9e27f | 7124 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7125 | fi |
a0b9e27f | 7126 | |
10f2d63a | 7127 | |
5005acfe VZ |
7128 | enablestring= |
7129 | echo $ac_n "checking for --${enablestring:-enable}-textctrl""... $ac_c" 1>&6 | |
2b5f62a0 | 7130 | echo "configure:7131: checking for --${enablestring:-enable}-textctrl" >&5 |
1e6feb95 VZ |
7131 | no_cache=0 |
7132 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7133 | if test "${enable_textctrl+set}" = set; then | |
7134 | enableval="$enable_textctrl" | |
a0b9e27f | 7135 | |
1e6feb95 VZ |
7136 | if test "$enableval" = yes; then |
7137 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7138 | else | |
7139 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7140 | fi | |
a0b9e27f | 7141 | |
1e6feb95 | 7142 | else |
a0b9e27f | 7143 | |
1e6feb95 VZ |
7144 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
a0b9e27f MB |
7152 | |
7153 | fi | |
1e6feb95 VZ |
7154 | |
7155 | ||
7156 | eval "$ac_cv_use_textctrl" | |
7157 | if test "$no_cache" != 1; then | |
7158 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7159 | fi | |
7160 | ||
7161 | if test "$wxUSE_TEXTCTRL" = yes; then | |
a0b9e27f | 7162 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7163 | else |
a0b9e27f | 7164 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7165 | fi |
a0b9e27f | 7166 | |
1e6feb95 | 7167 | |
5005acfe VZ |
7168 | enablestring= |
7169 | echo $ac_n "checking for --${enablestring:-enable}-togglebtn""... $ac_c" 1>&6 | |
2b5f62a0 | 7170 | echo "configure:7171: checking for --${enablestring:-enable}-togglebtn" >&5 |
1db8dc4a VZ |
7171 | no_cache=0 |
7172 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7173 | if test "${enable_togglebtn+set}" = set; then | |
7174 | enableval="$enable_togglebtn" | |
a0b9e27f | 7175 | |
1db8dc4a VZ |
7176 | if test "$enableval" = yes; then |
7177 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7178 | else | |
7179 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7180 | fi | |
a0b9e27f | 7181 | |
1db8dc4a | 7182 | else |
a0b9e27f | 7183 | |
1db8dc4a VZ |
7184 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7185 | if test "x$LINE" != x ; then | |
7186 | eval "DEFAULT_$LINE" | |
7187 | else | |
7188 | no_cache=1 | |
7189 | fi | |
7190 | ||
7191 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
a0b9e27f MB |
7192 | |
7193 | fi | |
1db8dc4a VZ |
7194 | |
7195 | ||
7196 | eval "$ac_cv_use_togglebtn" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
a0b9e27f | 7202 | echo "$ac_t""yes" 1>&6 |
1db8dc4a | 7203 | else |
a0b9e27f | 7204 | echo "$ac_t""no" 1>&6 |
1db8dc4a | 7205 | fi |
a0b9e27f | 7206 | |
1db8dc4a | 7207 | |
5005acfe VZ |
7208 | enablestring= |
7209 | echo $ac_n "checking for --${enablestring:-enable}-toolbar""... $ac_c" 1>&6 | |
2b5f62a0 | 7210 | echo "configure:7211: checking for --${enablestring:-enable}-toolbar" >&5 |
10f2d63a VZ |
7211 | no_cache=0 |
7212 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7213 | if test "${enable_toolbar+set}" = set; then | |
7214 | enableval="$enable_toolbar" | |
a0b9e27f | 7215 | |
10f2d63a VZ |
7216 | if test "$enableval" = yes; then |
7217 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7218 | else | |
7219 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7220 | fi | |
a0b9e27f | 7221 | |
10f2d63a | 7222 | else |
a0b9e27f | 7223 | |
10f2d63a VZ |
7224 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7225 | if test "x$LINE" != x ; then | |
7226 | eval "DEFAULT_$LINE" | |
7227 | else | |
7228 | no_cache=1 | |
7229 | fi | |
7230 | ||
7231 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
a0b9e27f MB |
7232 | |
7233 | fi | |
10f2d63a VZ |
7234 | |
7235 | ||
7236 | eval "$ac_cv_use_toolbar" | |
7237 | if test "$no_cache" != 1; then | |
7238 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7239 | fi | |
7240 | ||
7241 | if test "$wxUSE_TOOLBAR" = yes; then | |
a0b9e27f | 7242 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7243 | else |
a0b9e27f | 7244 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7245 | fi |
a0b9e27f | 7246 | |
10f2d63a | 7247 | |
5005acfe VZ |
7248 | enablestring= |
7249 | echo $ac_n "checking for --${enablestring:-enable}-tbarnative""... $ac_c" 1>&6 | |
2b5f62a0 | 7250 | echo "configure:7251: checking for --${enablestring:-enable}-tbarnative" >&5 |
360d6699 VZ |
7251 | no_cache=0 |
7252 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7253 | if test "${enable_tbarnative+set}" = set; then | |
7254 | enableval="$enable_tbarnative" | |
a0b9e27f | 7255 | |
360d6699 VZ |
7256 | if test "$enableval" = yes; then |
7257 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7258 | else | |
7259 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7260 | fi | |
a0b9e27f | 7261 | |
360d6699 | 7262 | else |
a0b9e27f | 7263 | |
360d6699 VZ |
7264 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7265 | if test "x$LINE" != x ; then | |
7266 | eval "DEFAULT_$LINE" | |
7267 | else | |
7268 | no_cache=1 | |
7269 | fi | |
7270 | ||
7271 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
a0b9e27f MB |
7272 | |
7273 | fi | |
360d6699 VZ |
7274 | |
7275 | ||
7276 | eval "$ac_cv_use_tbarnative" | |
7277 | if test "$no_cache" != 1; then | |
7278 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7279 | fi | |
7280 | ||
7281 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
a0b9e27f | 7282 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7283 | else |
a0b9e27f | 7284 | echo "$ac_t""no" 1>&6 |
360d6699 | 7285 | fi |
a0b9e27f | 7286 | |
360d6699 | 7287 | |
5005acfe VZ |
7288 | enablestring= |
7289 | echo $ac_n "checking for --${enablestring:-enable}-tbarsmpl""... $ac_c" 1>&6 | |
2b5f62a0 | 7290 | echo "configure:7291: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
360d6699 VZ |
7291 | no_cache=0 |
7292 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
7293 | if test "${enable_tbarsmpl+set}" = set; then | |
7294 | enableval="$enable_tbarsmpl" | |
a0b9e27f | 7295 | |
360d6699 VZ |
7296 | if test "$enableval" = yes; then |
7297 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
7298 | else | |
7299 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
7300 | fi | |
a0b9e27f | 7301 | |
360d6699 | 7302 | else |
a0b9e27f | 7303 | |
360d6699 VZ |
7304 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
7305 | if test "x$LINE" != x ; then | |
7306 | eval "DEFAULT_$LINE" | |
7307 | else | |
7308 | no_cache=1 | |
7309 | fi | |
7310 | ||
7311 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
a0b9e27f MB |
7312 | |
7313 | fi | |
360d6699 VZ |
7314 | |
7315 | ||
7316 | eval "$ac_cv_use_tbarsmpl" | |
7317 | if test "$no_cache" != 1; then | |
7318 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
7319 | fi | |
7320 | ||
7321 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
a0b9e27f | 7322 | echo "$ac_t""yes" 1>&6 |
360d6699 | 7323 | else |
a0b9e27f | 7324 | echo "$ac_t""no" 1>&6 |
360d6699 | 7325 | fi |
a0b9e27f | 7326 | |
360d6699 | 7327 | |
5005acfe VZ |
7328 | enablestring= |
7329 | echo $ac_n "checking for --${enablestring:-enable}-treectrl""... $ac_c" 1>&6 | |
2b5f62a0 | 7330 | echo "configure:7331: checking for --${enablestring:-enable}-treectrl" >&5 |
10f2d63a VZ |
7331 | no_cache=0 |
7332 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
7333 | if test "${enable_treectrl+set}" = set; then | |
7334 | enableval="$enable_treectrl" | |
a0b9e27f | 7335 | |
10f2d63a VZ |
7336 | if test "$enableval" = yes; then |
7337 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
7338 | else | |
7339 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
7340 | fi | |
a0b9e27f | 7341 | |
10f2d63a | 7342 | else |
a0b9e27f | 7343 | |
10f2d63a VZ |
7344 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
7345 | if test "x$LINE" != x ; then | |
7346 | eval "DEFAULT_$LINE" | |
7347 | else | |
7348 | no_cache=1 | |
7349 | fi | |
7350 | ||
7351 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
a0b9e27f MB |
7352 | |
7353 | fi | |
10f2d63a VZ |
7354 | |
7355 | ||
1e6feb95 VZ |
7356 | eval "$ac_cv_use_treectrl" |
7357 | if test "$no_cache" != 1; then | |
7358 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
7359 | fi | |
7360 | ||
7361 | if test "$wxUSE_TREECTRL" = yes; then | |
a0b9e27f | 7362 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7363 | else |
a0b9e27f | 7364 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7365 | fi |
a0b9e27f | 7366 | |
1e6feb95 | 7367 | |
5005acfe VZ |
7368 | enablestring= |
7369 | echo $ac_n "checking for --${enablestring:-enable}-tipwindow""... $ac_c" 1>&6 | |
2b5f62a0 | 7370 | echo "configure:7371: checking for --${enablestring:-enable}-tipwindow" >&5 |
9926e4a4 VZ |
7371 | no_cache=0 |
7372 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
7373 | if test "${enable_tipwindow+set}" = set; then | |
7374 | enableval="$enable_tipwindow" | |
a0b9e27f | 7375 | |
9926e4a4 VZ |
7376 | if test "$enableval" = yes; then |
7377 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
7378 | else | |
7379 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
7380 | fi | |
a0b9e27f | 7381 | |
9926e4a4 | 7382 | else |
a0b9e27f | 7383 | |
9926e4a4 VZ |
7384 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
7385 | if test "x$LINE" != x ; then | |
7386 | eval "DEFAULT_$LINE" | |
7387 | else | |
7388 | no_cache=1 | |
7389 | fi | |
7390 | ||
7391 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
a0b9e27f MB |
7392 | |
7393 | fi | |
9926e4a4 VZ |
7394 | |
7395 | ||
7396 | eval "$ac_cv_use_tipwindow" | |
7397 | if test "$no_cache" != 1; then | |
7398 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
7399 | fi | |
7400 | ||
7401 | if test "$wxUSE_TIPWINDOW" = yes; then | |
a0b9e27f | 7402 | echo "$ac_t""yes" 1>&6 |
9926e4a4 | 7403 | else |
a0b9e27f | 7404 | echo "$ac_t""no" 1>&6 |
9926e4a4 | 7405 | fi |
a0b9e27f | 7406 | |
9926e4a4 | 7407 | |
5005acfe VZ |
7408 | enablestring= |
7409 | echo $ac_n "checking for --${enablestring:-enable}-popupwin""... $ac_c" 1>&6 | |
2b5f62a0 | 7410 | echo "configure:7411: checking for --${enablestring:-enable}-popupwin" >&5 |
9f41d601 RR |
7411 | no_cache=0 |
7412 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
7413 | if test "${enable_popupwin+set}" = set; then | |
7414 | enableval="$enable_popupwin" | |
a0b9e27f | 7415 | |
9f41d601 RR |
7416 | if test "$enableval" = yes; then |
7417 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
7418 | else | |
7419 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
7420 | fi | |
a0b9e27f | 7421 | |
9f41d601 | 7422 | else |
a0b9e27f | 7423 | |
9f41d601 RR |
7424 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
7425 | if test "x$LINE" != x ; then | |
7426 | eval "DEFAULT_$LINE" | |
7427 | else | |
7428 | no_cache=1 | |
7429 | fi | |
7430 | ||
7431 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
a0b9e27f MB |
7432 | |
7433 | fi | |
9f41d601 RR |
7434 | |
7435 | ||
7436 | eval "$ac_cv_use_popupwin" | |
7437 | if test "$no_cache" != 1; then | |
7438 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
7439 | fi | |
7440 | ||
7441 | if test "$wxUSE_POPUPWIN" = yes; then | |
a0b9e27f | 7442 | echo "$ac_t""yes" 1>&6 |
9f41d601 | 7443 | else |
a0b9e27f | 7444 | echo "$ac_t""no" 1>&6 |
9f41d601 | 7445 | fi |
a0b9e27f | 7446 | |
52127426 | 7447 | |
8284b0c5 MB |
7448 | |
7449 | ||
5005acfe VZ |
7450 | enablestring= |
7451 | echo $ac_n "checking for --${enablestring:-enable}-commondlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7452 | echo "configure:7453: checking for --${enablestring:-enable}-commondlg" >&5 |
1e6feb95 VZ |
7453 | no_cache=0 |
7454 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
7455 | if test "${enable_commondlg+set}" = set; then | |
7456 | enableval="$enable_commondlg" | |
a0b9e27f | 7457 | |
1e6feb95 VZ |
7458 | if test "$enableval" = yes; then |
7459 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
7460 | else | |
7461 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
7462 | fi | |
a0b9e27f | 7463 | |
1e6feb95 | 7464 | else |
a0b9e27f | 7465 | |
1e6feb95 VZ |
7466 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
7467 | if test "x$LINE" != x ; then | |
7468 | eval "DEFAULT_$LINE" | |
7469 | else | |
7470 | no_cache=1 | |
7471 | fi | |
7472 | ||
7473 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
a0b9e27f MB |
7474 | |
7475 | fi | |
1e6feb95 VZ |
7476 | |
7477 | ||
7478 | eval "$ac_cv_use_commondlg" | |
7479 | if test "$no_cache" != 1; then | |
7480 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
7481 | fi | |
7482 | ||
7483 | if test "$wxUSE_COMMONDLGS" = yes; then | |
a0b9e27f | 7484 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7485 | else |
a0b9e27f | 7486 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7487 | fi |
a0b9e27f | 7488 | |
1e6feb95 | 7489 | |
5005acfe VZ |
7490 | enablestring= |
7491 | echo $ac_n "checking for --${enablestring:-enable}-choicedlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7492 | echo "configure:7493: checking for --${enablestring:-enable}-choicedlg" >&5 |
1e6feb95 VZ |
7493 | no_cache=0 |
7494 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
7495 | if test "${enable_choicedlg+set}" = set; then | |
7496 | enableval="$enable_choicedlg" | |
a0b9e27f | 7497 | |
1e6feb95 VZ |
7498 | if test "$enableval" = yes; then |
7499 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
7500 | else | |
7501 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
7502 | fi | |
a0b9e27f | 7503 | |
1e6feb95 | 7504 | else |
a0b9e27f | 7505 | |
1e6feb95 VZ |
7506 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
7507 | if test "x$LINE" != x ; then | |
7508 | eval "DEFAULT_$LINE" | |
7509 | else | |
7510 | no_cache=1 | |
7511 | fi | |
7512 | ||
7513 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
a0b9e27f MB |
7514 | |
7515 | fi | |
1e6feb95 VZ |
7516 | |
7517 | ||
7518 | eval "$ac_cv_use_choicedlg" | |
7519 | if test "$no_cache" != 1; then | |
7520 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
7521 | fi | |
7522 | ||
7523 | if test "$wxUSE_CHOICEDLG" = yes; then | |
a0b9e27f | 7524 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7525 | else |
a0b9e27f | 7526 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7527 | fi |
a0b9e27f | 7528 | |
1e6feb95 | 7529 | |
5005acfe VZ |
7530 | enablestring= |
7531 | echo $ac_n "checking for --${enablestring:-enable}-coldlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7532 | echo "configure:7533: checking for --${enablestring:-enable}-coldlg" >&5 |
1e6feb95 VZ |
7533 | no_cache=0 |
7534 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
7535 | if test "${enable_coldlg+set}" = set; then | |
7536 | enableval="$enable_coldlg" | |
a0b9e27f | 7537 | |
1e6feb95 VZ |
7538 | if test "$enableval" = yes; then |
7539 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
7540 | else | |
7541 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
7542 | fi | |
a0b9e27f | 7543 | |
1e6feb95 | 7544 | else |
a0b9e27f | 7545 | |
1e6feb95 VZ |
7546 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
7547 | if test "x$LINE" != x ; then | |
7548 | eval "DEFAULT_$LINE" | |
7549 | else | |
7550 | no_cache=1 | |
7551 | fi | |
7552 | ||
7553 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
a0b9e27f MB |
7554 | |
7555 | fi | |
1e6feb95 VZ |
7556 | |
7557 | ||
7558 | eval "$ac_cv_use_coldlg" | |
7559 | if test "$no_cache" != 1; then | |
7560 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
7561 | fi | |
7562 | ||
7563 | if test "$wxUSE_COLOURDLG" = yes; then | |
a0b9e27f | 7564 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7565 | else |
a0b9e27f | 7566 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7567 | fi |
a0b9e27f | 7568 | |
1e6feb95 | 7569 | |
5005acfe VZ |
7570 | enablestring= |
7571 | echo $ac_n "checking for --${enablestring:-enable}-filedlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7572 | echo "configure:7573: checking for --${enablestring:-enable}-filedlg" >&5 |
1e6feb95 VZ |
7573 | no_cache=0 |
7574 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
7575 | if test "${enable_filedlg+set}" = set; then | |
7576 | enableval="$enable_filedlg" | |
a0b9e27f | 7577 | |
1e6feb95 VZ |
7578 | if test "$enableval" = yes; then |
7579 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
7580 | else | |
7581 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
7582 | fi | |
a0b9e27f | 7583 | |
1e6feb95 | 7584 | else |
a0b9e27f | 7585 | |
1e6feb95 VZ |
7586 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
7587 | if test "x$LINE" != x ; then | |
7588 | eval "DEFAULT_$LINE" | |
7589 | else | |
7590 | no_cache=1 | |
7591 | fi | |
7592 | ||
7593 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
a0b9e27f MB |
7594 | |
7595 | fi | |
1e6feb95 VZ |
7596 | |
7597 | ||
7598 | eval "$ac_cv_use_filedlg" | |
7599 | if test "$no_cache" != 1; then | |
7600 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
7601 | fi | |
7602 | ||
7603 | if test "$wxUSE_FILEDLG" = yes; then | |
a0b9e27f | 7604 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7605 | else |
a0b9e27f | 7606 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7607 | fi |
a0b9e27f | 7608 | |
1e6feb95 | 7609 | |
5005acfe VZ |
7610 | enablestring= |
7611 | echo $ac_n "checking for --${enablestring:-enable}-finddlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7612 | echo "configure:7613: checking for --${enablestring:-enable}-finddlg" >&5 |
8db37e06 | 7613 | no_cache=0 |
69d27ff7 MB |
7614 | # Check whether --enable-finddlg or --disable-finddlg was given. |
7615 | if test "${enable_finddlg+set}" = set; then | |
7616 | enableval="$enable_finddlg" | |
a0b9e27f | 7617 | |
8db37e06 | 7618 | if test "$enableval" = yes; then |
69d27ff7 | 7619 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 7620 | else |
69d27ff7 | 7621 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 7622 | fi |
a0b9e27f | 7623 | |
8db37e06 | 7624 | else |
a0b9e27f | 7625 | |
8db37e06 VZ |
7626 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
7627 | if test "x$LINE" != x ; then | |
7628 | eval "DEFAULT_$LINE" | |
7629 | else | |
7630 | no_cache=1 | |
7631 | fi | |
7632 | ||
69d27ff7 | 7633 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
a0b9e27f MB |
7634 | |
7635 | fi | |
8db37e06 VZ |
7636 | |
7637 | ||
69d27ff7 | 7638 | eval "$ac_cv_use_finddlg" |
8db37e06 | 7639 | if test "$no_cache" != 1; then |
69d27ff7 | 7640 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
7641 | fi |
7642 | ||
7643 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
a0b9e27f | 7644 | echo "$ac_t""yes" 1>&6 |
8db37e06 | 7645 | else |
a0b9e27f | 7646 | echo "$ac_t""no" 1>&6 |
8db37e06 | 7647 | fi |
a0b9e27f | 7648 | |
8db37e06 | 7649 | |
5005acfe VZ |
7650 | enablestring= |
7651 | echo $ac_n "checking for --${enablestring:-enable}-fontdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7652 | echo "configure:7653: checking for --${enablestring:-enable}-fontdlg" >&5 |
1e6feb95 VZ |
7653 | no_cache=0 |
7654 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
7655 | if test "${enable_fontdlg+set}" = set; then | |
7656 | enableval="$enable_fontdlg" | |
a0b9e27f | 7657 | |
1e6feb95 VZ |
7658 | if test "$enableval" = yes; then |
7659 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
7660 | else | |
7661 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
7662 | fi | |
a0b9e27f | 7663 | |
1e6feb95 | 7664 | else |
a0b9e27f | 7665 | |
1e6feb95 VZ |
7666 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
7667 | if test "x$LINE" != x ; then | |
7668 | eval "DEFAULT_$LINE" | |
7669 | else | |
7670 | no_cache=1 | |
7671 | fi | |
7672 | ||
7673 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
a0b9e27f MB |
7674 | |
7675 | fi | |
1e6feb95 VZ |
7676 | |
7677 | ||
7678 | eval "$ac_cv_use_fontdlg" | |
7679 | if test "$no_cache" != 1; then | |
7680 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
7681 | fi | |
7682 | ||
7683 | if test "$wxUSE_FONTDLG" = yes; then | |
a0b9e27f | 7684 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 7685 | else |
a0b9e27f | 7686 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 7687 | fi |
a0b9e27f | 7688 | |
1e6feb95 | 7689 | |
5005acfe VZ |
7690 | enablestring= |
7691 | echo $ac_n "checking for --${enablestring:-enable}-dirdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7692 | echo "configure:7693: checking for --${enablestring:-enable}-dirdlg" >&5 |
1e6feb95 VZ |
7693 | no_cache=0 |
7694 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
7695 | if test "${enable_dirdlg+set}" = set; then | |
7696 | enableval="$enable_dirdlg" | |
a0b9e27f | 7697 | |
1e6feb95 VZ |
7698 | if test "$enableval" = yes; then |
7699 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
7700 | else | |
7701 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
7702 | fi | |
a0b9e27f | 7703 | |
1e6feb95 | 7704 | else |
a0b9e27f | 7705 | |
1e6feb95 VZ |
7706 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
7707 | if test "x$LINE" != x ; then | |
7708 | eval "DEFAULT_$LINE" | |
7709 | else | |
7710 | no_cache=1 | |
7711 | fi | |
7712 | ||
7713 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
a0b9e27f MB |
7714 | |
7715 | fi | |
1e6feb95 VZ |
7716 | |
7717 | ||
7718 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 7719 | if test "$no_cache" != 1; then |
1e6feb95 | 7720 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7721 | fi |
7722 | ||
1e6feb95 | 7723 | if test "$wxUSE_DIRDLG" = yes; then |
a0b9e27f | 7724 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7725 | else |
a0b9e27f | 7726 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7727 | fi |
a0b9e27f | 7728 | |
698dcdb6 | 7729 | |
5005acfe VZ |
7730 | enablestring= |
7731 | echo $ac_n "checking for --${enablestring:-enable}-msgdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7732 | echo "configure:7733: checking for --${enablestring:-enable}-msgdlg" >&5 |
10f2d63a | 7733 | no_cache=0 |
1e6feb95 VZ |
7734 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
7735 | if test "${enable_msgdlg+set}" = set; then | |
7736 | enableval="$enable_msgdlg" | |
a0b9e27f | 7737 | |
10f2d63a | 7738 | if test "$enableval" = yes; then |
1e6feb95 | 7739 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 7740 | else |
1e6feb95 | 7741 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 7742 | fi |
a0b9e27f | 7743 | |
10f2d63a | 7744 | else |
a0b9e27f | 7745 | |
1e6feb95 | 7746 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7747 | if test "x$LINE" != x ; then |
7748 | eval "DEFAULT_$LINE" | |
7749 | else | |
7750 | no_cache=1 | |
7751 | fi | |
7752 | ||
1e6feb95 | 7753 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
a0b9e27f MB |
7754 | |
7755 | fi | |
10f2d63a VZ |
7756 | |
7757 | ||
1e6feb95 | 7758 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 7759 | if test "$no_cache" != 1; then |
1e6feb95 | 7760 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7761 | fi |
7762 | ||
1e6feb95 | 7763 | if test "$wxUSE_MSGDLG" = yes; then |
a0b9e27f | 7764 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7765 | else |
a0b9e27f | 7766 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7767 | fi |
a0b9e27f | 7768 | |
10f2d63a | 7769 | |
5005acfe VZ |
7770 | enablestring= |
7771 | echo $ac_n "checking for --${enablestring:-enable}-numberdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7772 | echo "configure:7773: checking for --${enablestring:-enable}-numberdlg" >&5 |
10f2d63a | 7773 | no_cache=0 |
1e6feb95 VZ |
7774 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
7775 | if test "${enable_numberdlg+set}" = set; then | |
7776 | enableval="$enable_numberdlg" | |
a0b9e27f | 7777 | |
10f2d63a | 7778 | if test "$enableval" = yes; then |
1e6feb95 | 7779 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 7780 | else |
1e6feb95 | 7781 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 7782 | fi |
a0b9e27f | 7783 | |
10f2d63a | 7784 | else |
a0b9e27f | 7785 | |
1e6feb95 | 7786 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
7787 | if test "x$LINE" != x ; then |
7788 | eval "DEFAULT_$LINE" | |
7789 | else | |
7790 | no_cache=1 | |
7791 | fi | |
7792 | ||
1e6feb95 | 7793 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
a0b9e27f MB |
7794 | |
7795 | fi | |
10f2d63a VZ |
7796 | |
7797 | ||
1e6feb95 | 7798 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 7799 | if test "$no_cache" != 1; then |
1e6feb95 | 7800 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
7801 | fi |
7802 | ||
1e6feb95 | 7803 | if test "$wxUSE_NUMBERDLG" = yes; then |
a0b9e27f | 7804 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7805 | else |
a0b9e27f | 7806 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7807 | fi |
a0b9e27f | 7808 | |
10f2d63a | 7809 | |
5005acfe VZ |
7810 | enablestring= |
7811 | echo $ac_n "checking for --${enablestring:-enable}-splash""... $ac_c" 1>&6 | |
2b5f62a0 | 7812 | echo "configure:7813: checking for --${enablestring:-enable}-splash" >&5 |
cbca9943 VZ |
7813 | no_cache=0 |
7814 | # Check whether --enable-splash or --disable-splash was given. | |
7815 | if test "${enable_splash+set}" = set; then | |
7816 | enableval="$enable_splash" | |
a0b9e27f | 7817 | |
cbca9943 VZ |
7818 | if test "$enableval" = yes; then |
7819 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
7820 | else | |
7821 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
7822 | fi | |
a0b9e27f | 7823 | |
cbca9943 | 7824 | else |
a0b9e27f | 7825 | |
cbca9943 VZ |
7826 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
7827 | if test "x$LINE" != x ; then | |
7828 | eval "DEFAULT_$LINE" | |
7829 | else | |
7830 | no_cache=1 | |
7831 | fi | |
7832 | ||
7833 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
a0b9e27f MB |
7834 | |
7835 | fi | |
cbca9943 VZ |
7836 | |
7837 | ||
7838 | eval "$ac_cv_use_splash" | |
7839 | if test "$no_cache" != 1; then | |
7840 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
7841 | fi | |
7842 | ||
7843 | if test "$wxUSE_SPLASH" = yes; then | |
a0b9e27f | 7844 | echo "$ac_t""yes" 1>&6 |
cbca9943 | 7845 | else |
a0b9e27f | 7846 | echo "$ac_t""no" 1>&6 |
cbca9943 | 7847 | fi |
a0b9e27f | 7848 | |
cbca9943 | 7849 | |
5005acfe VZ |
7850 | enablestring= |
7851 | echo $ac_n "checking for --${enablestring:-enable}-textdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7852 | echo "configure:7853: checking for --${enablestring:-enable}-textdlg" >&5 |
10f2d63a VZ |
7853 | no_cache=0 |
7854 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
7855 | if test "${enable_textdlg+set}" = set; then | |
7856 | enableval="$enable_textdlg" | |
a0b9e27f | 7857 | |
10f2d63a VZ |
7858 | if test "$enableval" = yes; then |
7859 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
7860 | else | |
7861 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
7862 | fi | |
a0b9e27f | 7863 | |
10f2d63a | 7864 | else |
a0b9e27f | 7865 | |
10f2d63a VZ |
7866 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
7867 | if test "x$LINE" != x ; then | |
7868 | eval "DEFAULT_$LINE" | |
7869 | else | |
7870 | no_cache=1 | |
7871 | fi | |
7872 | ||
7873 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
a0b9e27f MB |
7874 | |
7875 | fi | |
10f2d63a VZ |
7876 | |
7877 | ||
7878 | eval "$ac_cv_use_textdlg" | |
7879 | if test "$no_cache" != 1; then | |
7880 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
7881 | fi | |
7882 | ||
7883 | if test "$wxUSE_TEXTDLG" = yes; then | |
a0b9e27f | 7884 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7885 | else |
a0b9e27f | 7886 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7887 | fi |
a0b9e27f | 7888 | |
10f2d63a | 7889 | |
5005acfe VZ |
7890 | enablestring= |
7891 | echo $ac_n "checking for --${enablestring:-enable}-tipdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7892 | echo "configure:7893: checking for --${enablestring:-enable}-tipdlg" >&5 |
10f2d63a VZ |
7893 | no_cache=0 |
7894 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
7895 | if test "${enable_tipdlg+set}" = set; then | |
7896 | enableval="$enable_tipdlg" | |
a0b9e27f | 7897 | |
10f2d63a VZ |
7898 | if test "$enableval" = yes; then |
7899 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
7900 | else | |
7901 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
7902 | fi | |
a0b9e27f | 7903 | |
10f2d63a | 7904 | else |
a0b9e27f | 7905 | |
10f2d63a VZ |
7906 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
7907 | if test "x$LINE" != x ; then | |
7908 | eval "DEFAULT_$LINE" | |
7909 | else | |
7910 | no_cache=1 | |
7911 | fi | |
7912 | ||
7913 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
a0b9e27f MB |
7914 | |
7915 | fi | |
10f2d63a VZ |
7916 | |
7917 | ||
7918 | eval "$ac_cv_use_tipdlg" | |
7919 | if test "$no_cache" != 1; then | |
7920 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
7921 | fi | |
7922 | ||
7923 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
a0b9e27f | 7924 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7925 | else |
a0b9e27f | 7926 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7927 | fi |
a0b9e27f | 7928 | |
10f2d63a | 7929 | |
5005acfe VZ |
7930 | enablestring= |
7931 | echo $ac_n "checking for --${enablestring:-enable}-progressdlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7932 | echo "configure:7933: checking for --${enablestring:-enable}-progressdlg" >&5 |
10f2d63a VZ |
7933 | no_cache=0 |
7934 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
7935 | if test "${enable_progressdlg+set}" = set; then | |
7936 | enableval="$enable_progressdlg" | |
a0b9e27f | 7937 | |
10f2d63a VZ |
7938 | if test "$enableval" = yes; then |
7939 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
7940 | else | |
7941 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
7942 | fi | |
a0b9e27f | 7943 | |
10f2d63a | 7944 | else |
a0b9e27f | 7945 | |
10f2d63a VZ |
7946 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
7947 | if test "x$LINE" != x ; then | |
7948 | eval "DEFAULT_$LINE" | |
7949 | else | |
7950 | no_cache=1 | |
7951 | fi | |
7952 | ||
7953 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
a0b9e27f MB |
7954 | |
7955 | fi | |
10f2d63a VZ |
7956 | |
7957 | ||
7958 | eval "$ac_cv_use_progressdlg" | |
7959 | if test "$no_cache" != 1; then | |
7960 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
7961 | fi | |
7962 | ||
7963 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
a0b9e27f | 7964 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 7965 | else |
a0b9e27f | 7966 | echo "$ac_t""no" 1>&6 |
10f2d63a | 7967 | fi |
a0b9e27f | 7968 | |
10f2d63a | 7969 | |
5005acfe VZ |
7970 | enablestring= |
7971 | echo $ac_n "checking for --${enablestring:-enable}-wizarddlg""... $ac_c" 1>&6 | |
2b5f62a0 | 7972 | echo "configure:7973: checking for --${enablestring:-enable}-wizarddlg" >&5 |
b1f5d087 VZ |
7973 | no_cache=0 |
7974 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
7975 | if test "${enable_wizarddlg+set}" = set; then | |
7976 | enableval="$enable_wizarddlg" | |
a0b9e27f | 7977 | |
b1f5d087 VZ |
7978 | if test "$enableval" = yes; then |
7979 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
7980 | else | |
7981 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
7982 | fi | |
a0b9e27f | 7983 | |
b1f5d087 | 7984 | else |
a0b9e27f | 7985 | |
b1f5d087 VZ |
7986 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
7987 | if test "x$LINE" != x ; then | |
7988 | eval "DEFAULT_$LINE" | |
7989 | else | |
7990 | no_cache=1 | |
7991 | fi | |
7992 | ||
7993 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
a0b9e27f MB |
7994 | |
7995 | fi | |
b1f5d087 VZ |
7996 | |
7997 | ||
7998 | eval "$ac_cv_use_wizarddlg" | |
7999 | if test "$no_cache" != 1; then | |
8000 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8001 | fi | |
8002 | ||
8003 | if test "$wxUSE_WIZARDDLG" = yes; then | |
a0b9e27f | 8004 | echo "$ac_t""yes" 1>&6 |
b1f5d087 | 8005 | else |
a0b9e27f | 8006 | echo "$ac_t""no" 1>&6 |
b1f5d087 | 8007 | fi |
a0b9e27f | 8008 | |
8284b0c5 MB |
8009 | |
8010 | ||
52127426 | 8011 | |
5005acfe VZ |
8012 | enablestring= |
8013 | echo $ac_n "checking for --${enablestring:-enable}-menus""... $ac_c" 1>&6 | |
2b5f62a0 | 8014 | echo "configure:8015: checking for --${enablestring:-enable}-menus" >&5 |
1e6feb95 VZ |
8015 | no_cache=0 |
8016 | # Check whether --enable-menus or --disable-menus was given. | |
8017 | if test "${enable_menus+set}" = set; then | |
8018 | enableval="$enable_menus" | |
a0b9e27f | 8019 | |
1e6feb95 VZ |
8020 | if test "$enableval" = yes; then |
8021 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8022 | else | |
8023 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8024 | fi | |
a0b9e27f | 8025 | |
1e6feb95 | 8026 | else |
a0b9e27f | 8027 | |
1e6feb95 VZ |
8028 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8029 | if test "x$LINE" != x ; then | |
8030 | eval "DEFAULT_$LINE" | |
8031 | else | |
8032 | no_cache=1 | |
8033 | fi | |
8034 | ||
8035 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
a0b9e27f MB |
8036 | |
8037 | fi | |
1e6feb95 VZ |
8038 | |
8039 | ||
8040 | eval "$ac_cv_use_menus" | |
8041 | if test "$no_cache" != 1; then | |
8042 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8043 | fi | |
8044 | ||
8045 | if test "$wxUSE_MENUS" = yes; then | |
a0b9e27f | 8046 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8047 | else |
a0b9e27f | 8048 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8049 | fi |
a0b9e27f | 8050 | |
1e6feb95 | 8051 | |
5005acfe VZ |
8052 | enablestring= |
8053 | echo $ac_n "checking for --${enablestring:-enable}-miniframe""... $ac_c" 1>&6 | |
2b5f62a0 | 8054 | echo "configure:8055: checking for --${enablestring:-enable}-miniframe" >&5 |
10f2d63a VZ |
8055 | no_cache=0 |
8056 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8057 | if test "${enable_miniframe+set}" = set; then | |
8058 | enableval="$enable_miniframe" | |
a0b9e27f | 8059 | |
10f2d63a VZ |
8060 | if test "$enableval" = yes; then |
8061 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8062 | else | |
8063 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8064 | fi | |
a0b9e27f | 8065 | |
10f2d63a | 8066 | else |
a0b9e27f | 8067 | |
10f2d63a VZ |
8068 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8069 | if test "x$LINE" != x ; then | |
8070 | eval "DEFAULT_$LINE" | |
8071 | else | |
8072 | no_cache=1 | |
8073 | fi | |
8074 | ||
8075 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
a0b9e27f MB |
8076 | |
8077 | fi | |
10f2d63a VZ |
8078 | |
8079 | ||
8080 | eval "$ac_cv_use_miniframe" | |
8081 | if test "$no_cache" != 1; then | |
8082 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8083 | fi | |
8084 | ||
8085 | if test "$wxUSE_MINIFRAME" = yes; then | |
a0b9e27f | 8086 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8087 | else |
a0b9e27f | 8088 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8089 | fi |
a0b9e27f | 8090 | |
10f2d63a | 8091 | |
5005acfe VZ |
8092 | enablestring= |
8093 | echo $ac_n "checking for --${enablestring:-enable}-tooltips""... $ac_c" 1>&6 | |
2b5f62a0 | 8094 | echo "configure:8095: checking for --${enablestring:-enable}-tooltips" >&5 |
10f2d63a VZ |
8095 | no_cache=0 |
8096 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8097 | if test "${enable_tooltips+set}" = set; then | |
8098 | enableval="$enable_tooltips" | |
a0b9e27f | 8099 | |
10f2d63a VZ |
8100 | if test "$enableval" = yes; then |
8101 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8102 | else | |
8103 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8104 | fi | |
a0b9e27f | 8105 | |
10f2d63a | 8106 | else |
a0b9e27f | 8107 | |
10f2d63a VZ |
8108 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8109 | if test "x$LINE" != x ; then | |
8110 | eval "DEFAULT_$LINE" | |
8111 | else | |
8112 | no_cache=1 | |
8113 | fi | |
8114 | ||
8115 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
a0b9e27f MB |
8116 | |
8117 | fi | |
10f2d63a VZ |
8118 | |
8119 | ||
8120 | eval "$ac_cv_use_tooltips" | |
8121 | if test "$no_cache" != 1; then | |
8122 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8123 | fi | |
8124 | ||
8125 | if test "$wxUSE_TOOLTIPS" = yes; then | |
a0b9e27f | 8126 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8127 | else |
a0b9e27f | 8128 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8129 | fi |
a0b9e27f | 8130 | |
10f2d63a | 8131 | |
5005acfe VZ |
8132 | enablestring= |
8133 | echo $ac_n "checking for --${enablestring:-enable}-splines""... $ac_c" 1>&6 | |
2b5f62a0 | 8134 | echo "configure:8135: checking for --${enablestring:-enable}-splines" >&5 |
10f2d63a VZ |
8135 | no_cache=0 |
8136 | # Check whether --enable-splines or --disable-splines was given. | |
8137 | if test "${enable_splines+set}" = set; then | |
8138 | enableval="$enable_splines" | |
a0b9e27f | 8139 | |
10f2d63a VZ |
8140 | if test "$enableval" = yes; then |
8141 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8142 | else | |
8143 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8144 | fi | |
a0b9e27f | 8145 | |
10f2d63a | 8146 | else |
a0b9e27f | 8147 | |
10f2d63a VZ |
8148 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8149 | if test "x$LINE" != x ; then | |
8150 | eval "DEFAULT_$LINE" | |
8151 | else | |
8152 | no_cache=1 | |
8153 | fi | |
8154 | ||
8155 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
a0b9e27f MB |
8156 | |
8157 | fi | |
10f2d63a VZ |
8158 | |
8159 | ||
8160 | eval "$ac_cv_use_splines" | |
8161 | if test "$no_cache" != 1; then | |
8162 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8163 | fi | |
8164 | ||
8165 | if test "$wxUSE_SPLINES" = yes; then | |
a0b9e27f | 8166 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8167 | else |
a0b9e27f | 8168 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8169 | fi |
a0b9e27f | 8170 | |
10f2d63a | 8171 | |
5005acfe VZ |
8172 | enablestring= |
8173 | echo $ac_n "checking for --${enablestring:-enable}-validators""... $ac_c" 1>&6 | |
2b5f62a0 | 8174 | echo "configure:8175: checking for --${enablestring:-enable}-validators" >&5 |
10f2d63a VZ |
8175 | no_cache=0 |
8176 | # Check whether --enable-validators or --disable-validators was given. | |
8177 | if test "${enable_validators+set}" = set; then | |
8178 | enableval="$enable_validators" | |
a0b9e27f | 8179 | |
10f2d63a VZ |
8180 | if test "$enableval" = yes; then |
8181 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8182 | else | |
8183 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8184 | fi | |
a0b9e27f | 8185 | |
10f2d63a | 8186 | else |
a0b9e27f | 8187 | |
10f2d63a VZ |
8188 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8189 | if test "x$LINE" != x ; then | |
8190 | eval "DEFAULT_$LINE" | |
8191 | else | |
8192 | no_cache=1 | |
8193 | fi | |
8194 | ||
8195 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
a0b9e27f MB |
8196 | |
8197 | fi | |
10f2d63a VZ |
8198 | |
8199 | ||
8200 | eval "$ac_cv_use_validators" | |
8201 | if test "$no_cache" != 1; then | |
8202 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8203 | fi | |
8204 | ||
8205 | if test "$wxUSE_VALIDATORS" = yes; then | |
a0b9e27f | 8206 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8207 | else |
a0b9e27f | 8208 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8209 | fi |
a0b9e27f | 8210 | |
10f2d63a | 8211 | |
5005acfe VZ |
8212 | enablestring= |
8213 | echo $ac_n "checking for --${enablestring:-enable}-busyinfo""... $ac_c" 1>&6 | |
2b5f62a0 | 8214 | echo "configure:8215: checking for --${enablestring:-enable}-busyinfo" >&5 |
10f2d63a VZ |
8215 | no_cache=0 |
8216 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8217 | if test "${enable_busyinfo+set}" = set; then | |
8218 | enableval="$enable_busyinfo" | |
a0b9e27f | 8219 | |
10f2d63a VZ |
8220 | if test "$enableval" = yes; then |
8221 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8222 | else | |
8223 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8224 | fi | |
a0b9e27f | 8225 | |
10f2d63a | 8226 | else |
a0b9e27f | 8227 | |
10f2d63a VZ |
8228 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8229 | if test "x$LINE" != x ; then | |
8230 | eval "DEFAULT_$LINE" | |
8231 | else | |
8232 | no_cache=1 | |
8233 | fi | |
8234 | ||
8235 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
a0b9e27f MB |
8236 | |
8237 | fi | |
10f2d63a VZ |
8238 | |
8239 | ||
8240 | eval "$ac_cv_use_busyinfo" | |
8241 | if test "$no_cache" != 1; then | |
8242 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8243 | fi | |
8244 | ||
8245 | if test "$wxUSE_BUSYINFO" = yes; then | |
a0b9e27f | 8246 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8247 | else |
a0b9e27f | 8248 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8249 | fi |
a0b9e27f | 8250 | |
10f2d63a | 8251 | |
5005acfe VZ |
8252 | enablestring= |
8253 | echo $ac_n "checking for --${enablestring:-enable}-joystick""... $ac_c" 1>&6 | |
2b5f62a0 | 8254 | echo "configure:8255: checking for --${enablestring:-enable}-joystick" >&5 |
f6bcfd97 BP |
8255 | no_cache=0 |
8256 | # Check whether --enable-joystick or --disable-joystick was given. | |
8257 | if test "${enable_joystick+set}" = set; then | |
8258 | enableval="$enable_joystick" | |
a0b9e27f | 8259 | |
f6bcfd97 BP |
8260 | if test "$enableval" = yes; then |
8261 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8262 | else | |
8263 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8264 | fi | |
a0b9e27f | 8265 | |
f6bcfd97 | 8266 | else |
a0b9e27f | 8267 | |
f6bcfd97 BP |
8268 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
8269 | if test "x$LINE" != x ; then | |
8270 | eval "DEFAULT_$LINE" | |
8271 | else | |
8272 | no_cache=1 | |
8273 | fi | |
8274 | ||
8275 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
a0b9e27f MB |
8276 | |
8277 | fi | |
f6bcfd97 BP |
8278 | |
8279 | ||
8280 | eval "$ac_cv_use_joystick" | |
8281 | if test "$no_cache" != 1; then | |
8282 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
8283 | fi | |
8284 | ||
8285 | if test "$wxUSE_JOYSTICK" = yes; then | |
a0b9e27f | 8286 | echo "$ac_t""yes" 1>&6 |
f6bcfd97 | 8287 | else |
a0b9e27f | 8288 | echo "$ac_t""no" 1>&6 |
f6bcfd97 | 8289 | fi |
a0b9e27f | 8290 | |
698dcdb6 | 8291 | |
5005acfe VZ |
8292 | enablestring= |
8293 | echo $ac_n "checking for --${enablestring:-enable}-metafile""... $ac_c" 1>&6 | |
2b5f62a0 | 8294 | echo "configure:8295: checking for --${enablestring:-enable}-metafile" >&5 |
1e6feb95 VZ |
8295 | no_cache=0 |
8296 | # Check whether --enable-metafile or --disable-metafile was given. | |
8297 | if test "${enable_metafile+set}" = set; then | |
8298 | enableval="$enable_metafile" | |
a0b9e27f | 8299 | |
1e6feb95 VZ |
8300 | if test "$enableval" = yes; then |
8301 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
8302 | else | |
8303 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
8304 | fi | |
a0b9e27f | 8305 | |
1e6feb95 | 8306 | else |
a0b9e27f | 8307 | |
1e6feb95 VZ |
8308 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
8309 | if test "x$LINE" != x ; then | |
8310 | eval "DEFAULT_$LINE" | |
8311 | else | |
8312 | no_cache=1 | |
8313 | fi | |
8314 | ||
8315 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
a0b9e27f MB |
8316 | |
8317 | fi | |
1e6feb95 VZ |
8318 | |
8319 | ||
8320 | eval "$ac_cv_use_metafile" | |
8321 | if test "$no_cache" != 1; then | |
8322 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
8323 | fi | |
8324 | ||
8325 | if test "$wxUSE_METAFILE" = yes; then | |
a0b9e27f | 8326 | echo "$ac_t""yes" 1>&6 |
1e6feb95 | 8327 | else |
a0b9e27f | 8328 | echo "$ac_t""no" 1>&6 |
1e6feb95 | 8329 | fi |
a0b9e27f | 8330 | |
1e6feb95 | 8331 | |
5005acfe VZ |
8332 | enablestring= |
8333 | echo $ac_n "checking for --${enablestring:-enable}-dragimage""... $ac_c" 1>&6 | |
2b5f62a0 | 8334 | echo "configure:8335: checking for --${enablestring:-enable}-dragimage" >&5 |
24fd6d87 VZ |
8335 | no_cache=0 |
8336 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
8337 | if test "${enable_dragimage+set}" = set; then | |
8338 | enableval="$enable_dragimage" | |
a0b9e27f | 8339 | |
24fd6d87 VZ |
8340 | if test "$enableval" = yes; then |
8341 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
8342 | else | |
8343 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
8344 | fi | |
a0b9e27f | 8345 | |
24fd6d87 | 8346 | else |
a0b9e27f | 8347 | |
24fd6d87 VZ |
8348 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
8349 | if test "x$LINE" != x ; then | |
8350 | eval "DEFAULT_$LINE" | |
8351 | else | |
8352 | no_cache=1 | |
8353 | fi | |
8354 | ||
8355 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
a0b9e27f MB |
8356 | |
8357 | fi | |
24fd6d87 VZ |
8358 | |
8359 | ||
8360 | eval "$ac_cv_use_dragimage" | |
8361 | if test "$no_cache" != 1; then | |
8362 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
8363 | fi | |
8364 | ||
8365 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
a0b9e27f | 8366 | echo "$ac_t""yes" 1>&6 |
24fd6d87 | 8367 | else |
a0b9e27f | 8368 | echo "$ac_t""no" 1>&6 |
24fd6d87 | 8369 | fi |
a0b9e27f | 8370 | |
52127426 | 8371 | |
8284b0c5 MB |
8372 | |
8373 | ||
5005acfe VZ |
8374 | enablestring= |
8375 | echo $ac_n "checking for --${enablestring:-enable}-palette""... $ac_c" 1>&6 | |
2b5f62a0 | 8376 | echo "configure:8377: checking for --${enablestring:-enable}-palette" >&5 |
edae8572 VZ |
8377 | no_cache=0 |
8378 | # Check whether --enable-palette or --disable-palette was given. | |
8379 | if test "${enable_palette+set}" = set; then | |
8380 | enableval="$enable_palette" | |
a0b9e27f | 8381 | |
edae8572 VZ |
8382 | if test "$enableval" = yes; then |
8383 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
8384 | else | |
8385 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
8386 | fi | |
a0b9e27f | 8387 | |
edae8572 | 8388 | else |
a0b9e27f | 8389 | |
edae8572 VZ |
8390 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
8391 | if test "x$LINE" != x ; then | |
8392 | eval "DEFAULT_$LINE" | |
8393 | else | |
8394 | no_cache=1 | |
8395 | fi | |
8396 | ||
8397 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
a0b9e27f MB |
8398 | |
8399 | fi | |
edae8572 VZ |
8400 | |
8401 | ||
8402 | eval "$ac_cv_use_palette" | |
8403 | if test "$no_cache" != 1; then | |
8404 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
8405 | fi | |
8406 | ||
8407 | if test "$wxUSE_PALETTE" = yes; then | |
a0b9e27f | 8408 | echo "$ac_t""yes" 1>&6 |
edae8572 | 8409 | else |
a0b9e27f | 8410 | echo "$ac_t""no" 1>&6 |
edae8572 | 8411 | fi |
a0b9e27f | 8412 | |
edae8572 | 8413 | |
5005acfe VZ |
8414 | enablestring= |
8415 | echo $ac_n "checking for --${enablestring:-enable}-image""... $ac_c" 1>&6 | |
2b5f62a0 | 8416 | echo "configure:8417: checking for --${enablestring:-enable}-image" >&5 |
0046ff7c VS |
8417 | no_cache=0 |
8418 | # Check whether --enable-image or --disable-image was given. | |
8419 | if test "${enable_image+set}" = set; then | |
8420 | enableval="$enable_image" | |
a0b9e27f | 8421 | |
0046ff7c VS |
8422 | if test "$enableval" = yes; then |
8423 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
8424 | else | |
8425 | ac_cv_use_image='wxUSE_IMAGE=no' | |
8426 | fi | |
a0b9e27f | 8427 | |
0046ff7c | 8428 | else |
a0b9e27f | 8429 | |
0046ff7c VS |
8430 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
8431 | if test "x$LINE" != x ; then | |
8432 | eval "DEFAULT_$LINE" | |
8433 | else | |
8434 | no_cache=1 | |
8435 | fi | |
8436 | ||
8437 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
a0b9e27f MB |
8438 | |
8439 | fi | |
0046ff7c VS |
8440 | |
8441 | ||
8442 | eval "$ac_cv_use_image" | |
8443 | if test "$no_cache" != 1; then | |
8444 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
8445 | fi | |
8446 | ||
8447 | if test "$wxUSE_IMAGE" = yes; then | |
a0b9e27f | 8448 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8449 | else |
a0b9e27f | 8450 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8451 | fi |
a0b9e27f | 8452 | |
0046ff7c | 8453 | |
5005acfe VZ |
8454 | enablestring= |
8455 | echo $ac_n "checking for --${enablestring:-enable}-gif""... $ac_c" 1>&6 | |
2b5f62a0 | 8456 | echo "configure:8457: checking for --${enablestring:-enable}-gif" >&5 |
10f2d63a VZ |
8457 | no_cache=0 |
8458 | # Check whether --enable-gif or --disable-gif was given. | |
8459 | if test "${enable_gif+set}" = set; then | |
8460 | enableval="$enable_gif" | |
a0b9e27f | 8461 | |
10f2d63a VZ |
8462 | if test "$enableval" = yes; then |
8463 | ac_cv_use_gif='wxUSE_GIF=yes' | |
8464 | else | |
8465 | ac_cv_use_gif='wxUSE_GIF=no' | |
8466 | fi | |
a0b9e27f | 8467 | |
10f2d63a | 8468 | else |
a0b9e27f | 8469 | |
10f2d63a VZ |
8470 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
8471 | if test "x$LINE" != x ; then | |
8472 | eval "DEFAULT_$LINE" | |
8473 | else | |
8474 | no_cache=1 | |
8475 | fi | |
8476 | ||
8477 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
a0b9e27f MB |
8478 | |
8479 | fi | |
10f2d63a VZ |
8480 | |
8481 | ||
8482 | eval "$ac_cv_use_gif" | |
8483 | if test "$no_cache" != 1; then | |
8484 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
8485 | fi | |
8486 | ||
8487 | if test "$wxUSE_GIF" = yes; then | |
a0b9e27f | 8488 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8489 | else |
a0b9e27f | 8490 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8491 | fi |
a0b9e27f | 8492 | |
10f2d63a | 8493 | |
5005acfe VZ |
8494 | enablestring= |
8495 | echo $ac_n "checking for --${enablestring:-enable}-pcx""... $ac_c" 1>&6 | |
2b5f62a0 | 8496 | echo "configure:8497: checking for --${enablestring:-enable}-pcx" >&5 |
10f2d63a VZ |
8497 | no_cache=0 |
8498 | # Check whether --enable-pcx or --disable-pcx was given. | |
8499 | if test "${enable_pcx+set}" = set; then | |
8500 | enableval="$enable_pcx" | |
a0b9e27f | 8501 | |
10f2d63a VZ |
8502 | if test "$enableval" = yes; then |
8503 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
8504 | else | |
8505 | ac_cv_use_pcx='wxUSE_PCX=no' | |
8506 | fi | |
a0b9e27f | 8507 | |
10f2d63a | 8508 | else |
a0b9e27f | 8509 | |
10f2d63a VZ |
8510 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
8511 | if test "x$LINE" != x ; then | |
8512 | eval "DEFAULT_$LINE" | |
8513 | else | |
8514 | no_cache=1 | |
8515 | fi | |
8516 | ||
8517 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
a0b9e27f MB |
8518 | |
8519 | fi | |
10f2d63a VZ |
8520 | |
8521 | ||
8522 | eval "$ac_cv_use_pcx" | |
8523 | if test "$no_cache" != 1; then | |
8524 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
8525 | fi | |
8526 | ||
8527 | if test "$wxUSE_PCX" = yes; then | |
a0b9e27f | 8528 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8529 | else |
a0b9e27f | 8530 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8531 | fi |
a0b9e27f | 8532 | |
10f2d63a | 8533 | |
5005acfe VZ |
8534 | enablestring= |
8535 | echo $ac_n "checking for --${enablestring:-enable}-iff""... $ac_c" 1>&6 | |
2b5f62a0 | 8536 | echo "configure:8537: checking for --${enablestring:-enable}-iff" >&5 |
4b6b4dfc RR |
8537 | no_cache=0 |
8538 | # Check whether --enable-iff or --disable-iff was given. | |
8539 | if test "${enable_iff+set}" = set; then | |
8540 | enableval="$enable_iff" | |
a0b9e27f | 8541 | |
4b6b4dfc RR |
8542 | if test "$enableval" = yes; then |
8543 | ac_cv_use_iff='wxUSE_IFF=yes' | |
8544 | else | |
8545 | ac_cv_use_iff='wxUSE_IFF=no' | |
8546 | fi | |
a0b9e27f | 8547 | |
4b6b4dfc | 8548 | else |
a0b9e27f | 8549 | |
4b6b4dfc RR |
8550 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
8551 | if test "x$LINE" != x ; then | |
8552 | eval "DEFAULT_$LINE" | |
8553 | else | |
8554 | no_cache=1 | |
8555 | fi | |
8556 | ||
8557 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
a0b9e27f MB |
8558 | |
8559 | fi | |
4b6b4dfc RR |
8560 | |
8561 | ||
8562 | eval "$ac_cv_use_iff" | |
8563 | if test "$no_cache" != 1; then | |
8564 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
8565 | fi | |
8566 | ||
8567 | if test "$wxUSE_IFF" = yes; then | |
a0b9e27f | 8568 | echo "$ac_t""yes" 1>&6 |
4b6b4dfc | 8569 | else |
a0b9e27f | 8570 | echo "$ac_t""no" 1>&6 |
4b6b4dfc | 8571 | fi |
a0b9e27f | 8572 | |
4b6b4dfc | 8573 | |
5005acfe VZ |
8574 | enablestring= |
8575 | echo $ac_n "checking for --${enablestring:-enable}-pnm""... $ac_c" 1>&6 | |
2b5f62a0 | 8576 | echo "configure:8577: checking for --${enablestring:-enable}-pnm" >&5 |
10f2d63a VZ |
8577 | no_cache=0 |
8578 | # Check whether --enable-pnm or --disable-pnm was given. | |
8579 | if test "${enable_pnm+set}" = set; then | |
8580 | enableval="$enable_pnm" | |
a0b9e27f | 8581 | |
10f2d63a VZ |
8582 | if test "$enableval" = yes; then |
8583 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
8584 | else | |
8585 | ac_cv_use_pnm='wxUSE_PNM=no' | |
8586 | fi | |
a0b9e27f | 8587 | |
10f2d63a | 8588 | else |
a0b9e27f | 8589 | |
10f2d63a VZ |
8590 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
8591 | if test "x$LINE" != x ; then | |
8592 | eval "DEFAULT_$LINE" | |
8593 | else | |
8594 | no_cache=1 | |
8595 | fi | |
8596 | ||
8597 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
a0b9e27f MB |
8598 | |
8599 | fi | |
10f2d63a VZ |
8600 | |
8601 | ||
8602 | eval "$ac_cv_use_pnm" | |
8603 | if test "$no_cache" != 1; then | |
8604 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
8605 | fi | |
8606 | ||
8607 | if test "$wxUSE_PNM" = yes; then | |
a0b9e27f | 8608 | echo "$ac_t""yes" 1>&6 |
10f2d63a | 8609 | else |
a0b9e27f | 8610 | echo "$ac_t""no" 1>&6 |
10f2d63a | 8611 | fi |
a0b9e27f | 8612 | |
10f2d63a | 8613 | |
5005acfe VZ |
8614 | enablestring= |
8615 | echo $ac_n "checking for --${enablestring:-enable}-xpm""... $ac_c" 1>&6 | |
2b5f62a0 | 8616 | echo "configure:8617: checking for --${enablestring:-enable}-xpm" >&5 |
0046ff7c | 8617 | no_cache=0 |
69d27ff7 MB |
8618 | # Check whether --enable-xpm or --disable-xpm was given. |
8619 | if test "${enable_xpm+set}" = set; then | |
8620 | enableval="$enable_xpm" | |
a0b9e27f | 8621 | |
0046ff7c | 8622 | if test "$enableval" = yes; then |
69d27ff7 | 8623 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 8624 | else |
69d27ff7 | 8625 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 8626 | fi |
a0b9e27f | 8627 | |
0046ff7c | 8628 | else |
a0b9e27f | 8629 | |
0046ff7c VS |
8630 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
8631 | if test "x$LINE" != x ; then | |
8632 | eval "DEFAULT_$LINE" | |
8633 | else | |
8634 | no_cache=1 | |
8635 | fi | |
8636 | ||
69d27ff7 | 8637 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
a0b9e27f MB |
8638 | |
8639 | fi | |
0046ff7c VS |
8640 | |
8641 | ||
69d27ff7 | 8642 | eval "$ac_cv_use_xpm" |
0046ff7c | 8643 | if test "$no_cache" != 1; then |
69d27ff7 | 8644 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
8645 | fi |
8646 | ||
8647 | if test "$wxUSE_XPM" = yes; then | |
a0b9e27f | 8648 | echo "$ac_t""yes" 1>&6 |
0046ff7c | 8649 | else |
a0b9e27f | 8650 | echo "$ac_t""no" 1>&6 |
0046ff7c | 8651 | fi |
a0b9e27f | 8652 | |
0046ff7c | 8653 | |
5005acfe VZ |
8654 | enablestring= |
8655 | echo $ac_n "checking for --${enablestring:-enable}-ico_cur""... $ac_c" 1>&6 | |
2b5f62a0 | 8656 | echo "configure:8657: checking for --${enablestring:-enable}-ico_cur" >&5 |
658974ae | 8657 | no_cache=0 |
c7206e64 VS |
8658 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
8659 | if test "${enable_ico_cur+set}" = set; then | |
8660 | enableval="$enable_ico_cur" | |
a0b9e27f | 8661 | |
658974ae | 8662 | if test "$enableval" = yes; then |
c7206e64 | 8663 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 8664 | else |
c7206e64 | 8665 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 8666 | fi |
a0b9e27f | 8667 | |
658974ae | 8668 | else |
a0b9e27f | 8669 | |
658974ae VS |
8670 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
8671 | if test "x$LINE" != x ; then | |
8672 | eval "DEFAULT_$LINE" | |
8673 | else | |
8674 | no_cache=1 | |
8675 | fi | |
8676 | ||
c7206e64 | 8677 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
a0b9e27f MB |
8678 | |
8679 | fi | |
658974ae VS |
8680 | |
8681 | ||
c7206e64 | 8682 | eval "$ac_cv_use_ico_cur" |
658974ae | 8683 | if test "$no_cache" != 1; then |
c7206e64 | 8684 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
8685 | fi |
8686 | ||
8687 | if test "$wxUSE_ICO_CUR" = yes; then | |
a0b9e27f | 8688 | echo "$ac_t""yes" 1>&6 |
658974ae | 8689 | else |
a0b9e27f | 8690 | echo "$ac_t""no" 1>&6 |
658974ae | 8691 | fi |
a0b9e27f | 8692 | |
658974ae | 8693 | |
b12915c1 VZ |
8694 | fi |
8695 | ||
d558c907 VS |
8696 | case "${host}" in |
8697 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 MB |
8698 | PATH_IFS=';' |
8699 | LEX_STEM="lexyy" | |
d558c907 VS |
8700 | ;; |
8701 | *) | |
8702 | PATH_IFS=':' | |
8703 | LEX_STEM="lex.yy" | |
8704 | ;; | |
8705 | esac | |
8706 | ||
8284b0c5 MB |
8707 | |
8708 | ||
10f2d63a VZ |
8709 | echo "saving argument cache $wx_arg_cache_file" |
8710 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
a0b9e27f | 8711 | |
52127426 | 8712 | |
8284b0c5 | 8713 | |
a0b9e27f | 8714 | echo $ac_n "checking for toolkit""... $ac_c" 1>&6 |
2b5f62a0 | 8715 | echo "configure:8716: checking for toolkit" >&5 |
10f2d63a VZ |
8716 | |
8717 | if test "$wxUSE_GUI" = "yes"; then | |
8718 | ||
3a922bb4 | 8719 | if test "$USE_BEOS" = 1; then |
a0b9e27f | 8720 | { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; } |
3a922bb4 | 8721 | fi |
b12915c1 | 8722 | |
3a922bb4 RL |
8723 | if test "$TOOLKIT_GIVEN" = 1; then |
8724 | for toolkit in `echo $ALL_TOOLKITS`; do | |
8725 | var=wxUSE_$toolkit | |
8726 | eval "value=\$${var}" | |
8727 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
8728 | done | |
10f2d63a | 8729 | else |
3a922bb4 RL |
8730 | for toolkit in `echo $ALL_TOOLKITS`; do |
8731 | if test "$has_toolkit_in_cache" != 1; then | |
8732 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
8733 | else | |
8734 | var=DEFAULT_wxUSE_$toolkit | |
8735 | fi | |
8736 | eval "wxUSE_$toolkit=\$${var}" | |
8737 | done | |
10f2d63a | 8738 | fi |
10f2d63a | 8739 | |
3a922bb4 | 8740 | NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \ |
f79bd02d | 8741 | + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}` |
10f2d63a | 8742 | |
d558c907 | 8743 | case "${host}" in |
6fa882bd | 8744 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 8745 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 8746 | esac |
10f2d63a | 8747 | |
3a922bb4 RL |
8748 | case "$NUM_TOOLKITS" in |
8749 | 1) | |
8750 | ;; | |
8751 | 0) | |
a0b9e27f | 8752 | { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; } |
3a922bb4 RL |
8753 | ;; |
8754 | *) | |
a0b9e27f | 8755 | { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; } |
3a922bb4 | 8756 | esac |
10f2d63a | 8757 | |
3a922bb4 RL |
8758 | for toolkit in `echo $ALL_TOOLKITS`; do |
8759 | var=wxUSE_$toolkit | |
8760 | eval "value=\$${var}" | |
8761 | if test "x$value" != x; then | |
8762 | cache_var=CACHE_$toolkit | |
8763 | eval "cache=\$${cache_var}" | |
8764 | if test "$cache" = 1; then | |
8765 | echo "$var=$value" >> ${wx_arg_cache_file} | |
8766 | fi | |
8767 | if test "$value" = 1; then | |
8768 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
a0b9e27f | 8769 | echo "$ac_t""$toolkit_echo" 1>&6 |
3a922bb4 RL |
8770 | fi |
8771 | fi | |
8772 | done | |
10f2d63a | 8773 | else |
a0b9e27f | 8774 | echo "$ac_t""base ($host_alias hosted) only" 1>&6 |
10f2d63a VZ |
8775 | fi |
8776 | ||
43d99b6d VS |
8777 | wants_win32=0 |
8778 | doesnt_want_win32=0 | |
17234b26 MB |
8779 | case "${host}" in |
8780 | *-*-cygwin*) | |
8781 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
8782 | wants_win32=1 |
8783 | else | |
8784 | doesnt_want_win32=1 | |
17234b26 MB |
8785 | fi |
8786 | ;; | |
8787 | *-*-mingw*) | |
43d99b6d | 8788 | wants_win32=1 |
17234b26 MB |
8789 | ;; |
8790 | esac | |
8791 | ||
43d99b6d | 8792 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
8793 | USE_UNIX=0 |
8794 | USE_WIN32=1 | |
a0b9e27f | 8795 | cat >> confdefs.h <<\EOF |
17234b26 | 8796 | #define __WIN32__ 1 |
a0b9e27f | 8797 | EOF |
17234b26 | 8798 | |
a0b9e27f | 8799 | cat >> confdefs.h <<\EOF |
17234b26 | 8800 | #define __WIN95__ 1 |
a0b9e27f | 8801 | EOF |
17234b26 | 8802 | |
a0b9e27f | 8803 | cat >> confdefs.h <<\EOF |
17234b26 | 8804 | #define __WINDOWS__ 1 |
a0b9e27f | 8805 | EOF |
17234b26 | 8806 | |
a0b9e27f | 8807 | cat >> confdefs.h <<\EOF |
17234b26 | 8808 | #define __GNUWIN32__ 1 |
a0b9e27f | 8809 | EOF |
17234b26 | 8810 | |
a0b9e27f | 8811 | cat >> confdefs.h <<\EOF |
17234b26 | 8812 | #define STRICT 1 |
a0b9e27f | 8813 | EOF |
17234b26 | 8814 | |
a0b9e27f | 8815 | cat >> confdefs.h <<\EOF |
17234b26 | 8816 | #define WINVER 0x0400 |
a0b9e27f | 8817 | EOF |
17234b26 | 8818 | |
43d99b6d VS |
8819 | fi |
8820 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
8821 | USE_UNIX=1 |
8822 | USE_WIN32=0 | |
8823 | fi | |
8824 | ||
8825 | if test "$USE_UNIX" = 1 ; then | |
8826 | wxUSE_UNIX=yes | |
a0b9e27f | 8827 | cat >> confdefs.h <<\EOF |
17234b26 | 8828 | #define __UNIX__ 1 |
a0b9e27f | 8829 | EOF |
17234b26 MB |
8830 | |
8831 | fi | |
8832 | ||
8284b0c5 | 8833 | |
a0b9e27f | 8834 | cat > confcache <<\EOF |
10f2d63a VZ |
8835 | # This file is a shell script that caches the results of configure |
8836 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
8837 | # scripts and configure runs. It is not useful on other systems. |
8838 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 8839 | # |
a0b9e27f MB |
8840 | # By default, configure uses ./config.cache as the cache file, |
8841 | # creating it if it does not exist already. You can give configure | |
8842 | # the --cache-file=FILE option to use a different cache file; that is | |
8843 | # what configure does when it calls configure scripts in | |
8844 | # subdirectories, so they share the cache. | |
8845 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
8846 | # config.status only pays attention to the cache file if you give it the | |
8847 | # --recheck option to rerun configure. | |
10f2d63a | 8848 | # |
a0b9e27f | 8849 | EOF |
10f2d63a VZ |
8850 | # The following way of writing the cache mishandles newlines in values, |
8851 | # but we know of no workaround that is simple, portable, and efficient. | |
8852 | # So, don't put newlines in cache variables' values. | |
8853 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8854 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
8855 | (set) 2>&1 | |
8856 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8857 | *ac_space=\ *) | |
8858 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
8859 | # turns \\\\ into \\, and sed turns \\ into \). | |
8860 | sed -n \ | |
8861 | -e "s/'/'\\\\''/g" \ | |
8862 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
8863 | ;; | |
8864 | *) | |
8865 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8866 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
8867 | ;; | |
8868 | esac >> confcache | |
8869 | if cmp -s $cache_file confcache; then | |
8870 | : | |
8871 | else | |
10f2d63a | 8872 | if test -w $cache_file; then |
a0b9e27f MB |
8873 | echo "updating cache $cache_file" |
8874 | cat confcache > $cache_file | |
10f2d63a VZ |
8875 | else |
8876 | echo "not updating unwritable cache $cache_file" | |
8877 | fi | |
8878 | fi | |
8879 | rm -f confcache | |
8880 | ||
a0b9e27f | 8881 | |
e59890c3 | 8882 | if test "$build" != "$host" ; then |
9d353d4a | 8883 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
8884 | CC=$host_alias-gcc |
8885 | CXX=$host_alias-c++ | |
8886 | AR=$host_alias-ar | |
8887 | RANLIB=$host_alias-ranlib | |
8888 | DLLTOOL=$host_alias-dlltool | |
8889 | RESCOMP=$host_alias-windres | |
8890 | LD=$host_alias-ld | |
8891 | NM=$host_alias-nm | |
8892 | STRIP=$host_alias-strip | |
8893 | else | |
a0b9e27f | 8894 | { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; } |
3a922bb4 | 8895 | fi |
10f2d63a VZ |
8896 | fi |
8897 | ||
ec603395 | 8898 | CFLAGS=${CFLAGS:=} |
a0b9e27f | 8899 | # Extract the first word of "gcc", so it can be a program name with args. |
8284b0c5 | 8900 | set dummy gcc; ac_word=$2 |
a0b9e27f | 8901 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 8902 | echo "configure:8903: checking for $ac_word" >&5 |
a0b9e27f MB |
8903 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8904 | echo $ac_n "(cached) $ac_c" 1>&6 | |
6232543b VS |
8905 | else |
8906 | if test -n "$CC"; then | |
8907 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 8908 | else |
a0b9e27f MB |
8909 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8910 | ac_dummy="$PATH" | |
8911 | for ac_dir in $ac_dummy; do | |
8912 | test -z "$ac_dir" && ac_dir=. | |
8913 | if test -f $ac_dir/$ac_word; then | |
8914 | ac_cv_prog_CC="gcc" | |
8915 | break | |
8916 | fi | |
8917 | done | |
8918 | IFS="$ac_save_ifs" | |
10f2d63a | 8919 | fi |
6232543b | 8920 | fi |
a0b9e27f | 8921 | CC="$ac_cv_prog_CC" |
6232543b | 8922 | if test -n "$CC"; then |
a0b9e27f | 8923 | echo "$ac_t""$CC" 1>&6 |
247f5006 | 8924 | else |
a0b9e27f | 8925 | echo "$ac_t""no" 1>&6 |
247f5006 VZ |
8926 | fi |
8927 | ||
5c6fa7d2 RR |
8928 | if test -z "$CC"; then |
8929 | # Extract the first word of "cc", so it can be a program name with args. | |
8930 | set dummy cc; ac_word=$2 | |
a0b9e27f | 8931 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 8932 | echo "configure:8933: checking for $ac_word" >&5 |
a0b9e27f MB |
8933 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 RR |
8935 | else |
8936 | if test -n "$CC"; then | |
8937 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8938 | else | |
a0b9e27f | 8939 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
5c6fa7d2 | 8940 | ac_prog_rejected=no |
a0b9e27f MB |
8941 | ac_dummy="$PATH" |
8942 | for ac_dir in $ac_dummy; do | |
8943 | test -z "$ac_dir" && ac_dir=. | |
8944 | if test -f $ac_dir/$ac_word; then | |
8945 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
8946 | ac_prog_rejected=yes | |
8947 | continue | |
8948 | fi | |
8949 | ac_cv_prog_CC="cc" | |
8950 | break | |
8951 | fi | |
8952 | done | |
8953 | IFS="$ac_save_ifs" | |
328a083c RR |
8954 | if test $ac_prog_rejected = yes; then |
8955 | # We found a bogon in the path, so make sure we never use it. | |
8956 | set dummy $ac_cv_prog_CC | |
8957 | shift | |
a0b9e27f | 8958 | if test $# -gt 0; then |
328a083c | 8959 | # We chose a different compiler from the bogus one. |
1e487827 VS |
8960 | # However, it has the same basename, so the bogon will be chosen |
8961 | # first if we set CC to just the basename; use the full file name. | |
8962 | shift | |
a0b9e27f | 8963 | set dummy "$ac_dir/$ac_word" "$@" |
1e487827 VS |
8964 | shift |
8965 | ac_cv_prog_CC="$@" | |
703e0a69 | 8966 | fi |
1e487827 VS |
8967 | fi |
8968 | fi | |
8969 | fi | |
a0b9e27f | 8970 | CC="$ac_cv_prog_CC" |
1e487827 | 8971 | if test -n "$CC"; then |
a0b9e27f | 8972 | echo "$ac_t""$CC" 1>&6 |
703e0a69 | 8973 | else |
a0b9e27f | 8974 | echo "$ac_t""no" 1>&6 |
703e0a69 | 8975 | fi |
1e487827 | 8976 | |
a0b9e27f MB |
8977 | if test -z "$CC"; then |
8978 | case "`uname -s`" in | |
8979 | *win32* | *WIN32*) | |
8980 | # Extract the first word of "cl", so it can be a program name with args. | |
8981 | set dummy cl; ac_word=$2 | |
8982 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2b5f62a0 | 8983 | echo "configure:8984: checking for $ac_word" >&5 |
a0b9e27f MB |
8984 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
8985 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf VS |
8986 | else |
8987 | if test -n "$CC"; then | |
8988 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
8989 | else | |
a0b9e27f MB |
8990 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
8991 | ac_dummy="$PATH" | |
8992 | for ac_dir in $ac_dummy; do | |
8993 | test -z "$ac_dir" && ac_dir=. | |
8994 | if test -f $ac_dir/$ac_word; then | |
8995 | ac_cv_prog_CC="cl" | |
8996 | break | |
8997 | fi | |
8998 | done | |
8999 | IFS="$ac_save_ifs" | |
f09359cf VS |
9000 | fi |
9001 | fi | |
a0b9e27f | 9002 | CC="$ac_cv_prog_CC" |
f09359cf | 9003 | if test -n "$CC"; then |
a0b9e27f | 9004 | echo "$ac_t""$CC" 1>&6 |
f09359cf | 9005 | else |
a0b9e27f | 9006 | echo "$ac_t""no" 1>&6 |
247f5006 | 9007 | fi |
a0b9e27f MB |
9008 | ;; |
9009 | esac | |
8284b0c5 | 9010 | fi |
a0b9e27f | 9011 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
5c6fa7d2 | 9012 | fi |
1e487827 | 9013 | |
a0b9e27f | 9014 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
2b5f62a0 | 9015 | echo "configure:9016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
f09359cf | 9016 | |
a0b9e27f MB |
9017 | ac_ext=c |
9018 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9019 | ac_cpp='$CPP $CPPFLAGS' | |
9020 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9021 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9022 | cross_compiling=$ac_cv_prog_cc_cross | |
f09359cf | 9023 | |
a0b9e27f | 9024 | cat > conftest.$ac_ext << EOF |
247f5006 | 9025 | |
2b5f62a0 | 9026 | #line 9027 "configure" |
a0b9e27f | 9027 | #include "confdefs.h" |
247f5006 | 9028 | |
a0b9e27f MB |
9029 | main(){return(0);} |
9030 | EOF | |
2b5f62a0 | 9031 | if { (eval echo configure:9032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9032 | ac_cv_prog_cc_works=yes |
9033 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9034 | if (./conftest; exit) 2>/dev/null; then | |
9035 | ac_cv_prog_cc_cross=no | |
698dcdb6 | 9036 | else |
a0b9e27f | 9037 | ac_cv_prog_cc_cross=yes |
698dcdb6 | 9038 | fi |
7b4a847f | 9039 | else |
a0b9e27f MB |
9040 | echo "configure: failed program was:" >&5 |
9041 | cat conftest.$ac_ext >&5 | |
9042 | ac_cv_prog_cc_works=no | |
52127426 | 9043 | fi |
a0b9e27f MB |
9044 | rm -fr conftest* |
9045 | ac_ext=c | |
9046 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9047 | ac_cpp='$CPP $CPPFLAGS' | |
9048 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9049 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9050 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9051 | |
a0b9e27f MB |
9052 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
9053 | if test $ac_cv_prog_cc_works = no; then | |
9054 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
9055 | fi | |
9056 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2b5f62a0 | 9057 | echo "configure:9058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9058 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
9059 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 9060 | |
a0b9e27f | 9061 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
2b5f62a0 | 9062 | echo "configure:9063: checking whether we are using GNU C" >&5 |
a0b9e27f MB |
9063 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
9064 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9065 | else |
a0b9e27f MB |
9066 | cat > conftest.c <<EOF |
9067 | #ifdef __GNUC__ | |
9068 | yes; | |
8284b0c5 | 9069 | #endif |
a0b9e27f | 9070 | EOF |
2b5f62a0 | 9071 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f | 9072 | ac_cv_prog_gcc=yes |
5c6fa7d2 | 9073 | else |
a0b9e27f | 9074 | ac_cv_prog_gcc=no |
8284b0c5 MB |
9075 | fi |
9076 | fi | |
1e487827 | 9077 | |
a0b9e27f | 9078 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
f09359cf | 9079 | |
a0b9e27f MB |
9080 | if test $ac_cv_prog_gcc = yes; then |
9081 | GCC=yes | |
9082 | else | |
9083 | GCC= | |
9084 | fi | |
247f5006 | 9085 | |
a0b9e27f MB |
9086 | ac_test_CFLAGS="${CFLAGS+set}" |
9087 | ac_save_CFLAGS="$CFLAGS" | |
9088 | CFLAGS= | |
9089 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
2b5f62a0 | 9090 | echo "configure:9091: checking whether ${CC-cc} accepts -g" >&5 |
a0b9e27f MB |
9091 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
9092 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9093 | else | |
9094 | echo 'void f(){}' > conftest.c | |
9095 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
10f2d63a VZ |
9096 | ac_cv_prog_cc_g=yes |
9097 | else | |
a0b9e27f | 9098 | ac_cv_prog_cc_g=no |
10f2d63a | 9099 | fi |
a0b9e27f MB |
9100 | rm -f conftest* |
9101 | ||
10f2d63a | 9102 | fi |
a0b9e27f MB |
9103 | |
9104 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
f09359cf | 9105 | if test "$ac_test_CFLAGS" = set; then |
a0b9e27f | 9106 | CFLAGS="$ac_save_CFLAGS" |
f09359cf VS |
9107 | elif test $ac_cv_prog_cc_g = yes; then |
9108 | if test "$GCC" = yes; then | |
10f2d63a VZ |
9109 | CFLAGS="-g -O2" |
9110 | else | |
f09359cf | 9111 | CFLAGS="-g" |
10f2d63a | 9112 | fi |
5c0a20c3 | 9113 | else |
f09359cf VS |
9114 | if test "$GCC" = yes; then |
9115 | CFLAGS="-O2" | |
9116 | else | |
9117 | CFLAGS= | |
9118 | fi | |
10f2d63a VZ |
9119 | fi |
9120 | ||
9121 | ||
a0b9e27f | 9122 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
2b5f62a0 | 9123 | echo "configure:9124: checking how to run the C preprocessor" >&5 |
10f2d63a VZ |
9124 | # On Suns, sometimes $CPP names a directory. |
9125 | if test -n "$CPP" && test -d "$CPP"; then | |
9126 | CPP= | |
9127 | fi | |
9128 | if test -z "$CPP"; then | |
a0b9e27f MB |
9129 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
9130 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9131 | else | |
9132 | # This must be in double quotes, not single quotes, because CPP may get | |
9133 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
9134 | CPP="${CC-cc} -E" | |
10f2d63a | 9135 | # On the NeXT, cc -E runs the code through the compiler's parser, |
a0b9e27f MB |
9136 | # not just through cpp. |
9137 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9138 | #line 9139 "configure" |
10f2d63a VZ |
9139 | #include "confdefs.h" |
9140 | #include <assert.h> | |
a0b9e27f MB |
9141 | Syntax Error |
9142 | EOF | |
9143 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9144 | { (eval echo configure:9145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9145 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9146 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9147 | : |
9148 | else | |
a0b9e27f MB |
9149 | echo "$ac_err" >&5 |
9150 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9151 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9152 | rm -rf conftest* |
9153 | CPP="${CC-cc} -E -traditional-cpp" | |
9154 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9155 | #line 9156 "configure" |
f09359cf | 9156 | #include "confdefs.h" |
a0b9e27f MB |
9157 | #include <assert.h> |
9158 | Syntax Error | |
9159 | EOF | |
9160 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9161 | { (eval echo configure:9162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9162 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9163 | if test -z "$ac_err"; then | |
9164 | : | |
247f5006 | 9165 | else |
a0b9e27f MB |
9166 | echo "$ac_err" >&5 |
9167 | echo "configure: failed program was:" >&5 | |
f09359cf | 9168 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9169 | rm -rf conftest* |
9170 | CPP="${CC-cc} -nologo -E" | |
9171 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9172 | #line 9173 "configure" |
10f2d63a VZ |
9173 | #include "confdefs.h" |
9174 | #include <assert.h> | |
a0b9e27f MB |
9175 | Syntax Error |
9176 | EOF | |
9177 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9178 | { (eval echo configure:9179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9179 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9180 | if test -z "$ac_err"; then | |
10f2d63a VZ |
9181 | : |
9182 | else | |
a0b9e27f MB |
9183 | echo "$ac_err" >&5 |
9184 | echo "configure: failed program was:" >&5 | |
10f2d63a | 9185 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
9186 | rm -rf conftest* |
9187 | CPP=/lib/cpp | |
579d8138 | 9188 | fi |
a0b9e27f | 9189 | rm -f conftest* |
52127426 | 9190 | fi |
a0b9e27f | 9191 | rm -f conftest* |
8284b0c5 | 9192 | fi |
a0b9e27f MB |
9193 | rm -f conftest* |
9194 | ac_cv_prog_CPP="$CPP" | |
9195 | fi | |
9196 | CPP="$ac_cv_prog_CPP" | |
10f2d63a | 9197 | else |
a0b9e27f | 9198 | ac_cv_prog_CPP="$CPP" |
10f2d63a | 9199 | fi |
a0b9e27f | 9200 | echo "$ac_t""$CPP" 1>&6 |
10f2d63a | 9201 | |
a0b9e27f MB |
9202 | if test $ac_cv_prog_gcc = yes; then |
9203 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 | |
2b5f62a0 | 9204 | echo "configure:9205: checking whether ${CC-cc} needs -traditional" >&5 |
a0b9e27f MB |
9205 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
9206 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9207 | else |
9208 | ac_pattern="Autoconf.*'x'" | |
a0b9e27f | 9209 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 9210 | #line 9211 "configure" |
10f2d63a VZ |
9211 | #include "confdefs.h" |
9212 | #include <sgtty.h> | |
9213 | Autoconf TIOCGETP | |
a0b9e27f | 9214 | EOF |
10f2d63a VZ |
9215 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9216 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9217 | rm -rf conftest* |
10f2d63a VZ |
9218 | ac_cv_prog_gcc_traditional=yes |
9219 | else | |
a0b9e27f | 9220 | rm -rf conftest* |
10f2d63a VZ |
9221 | ac_cv_prog_gcc_traditional=no |
9222 | fi | |
9223 | rm -f conftest* | |
9224 | ||
8284b0c5 | 9225 | |
10f2d63a | 9226 | if test $ac_cv_prog_gcc_traditional = no; then |
a0b9e27f | 9227 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 9228 | #line 9229 "configure" |
10f2d63a VZ |
9229 | #include "confdefs.h" |
9230 | #include <termio.h> | |
9231 | Autoconf TCGETA | |
a0b9e27f | 9232 | EOF |
10f2d63a VZ |
9233 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
9234 | egrep "$ac_pattern" >/dev/null 2>&1; then | |
a0b9e27f | 9235 | rm -rf conftest* |
10f2d63a VZ |
9236 | ac_cv_prog_gcc_traditional=yes |
9237 | fi | |
9238 | rm -f conftest* | |
9239 | ||
9240 | fi | |
9241 | fi | |
a0b9e27f MB |
9242 | |
9243 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 | |
10f2d63a VZ |
9244 | if test $ac_cv_prog_gcc_traditional = yes; then |
9245 | CC="$CC -traditional" | |
9246 | fi | |
9247 | fi | |
9248 | ||
8284b0c5 MB |
9249 | |
9250 | ||
a0b9e27f MB |
9251 | ac_ext=C |
9252 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1e487827 | 9253 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
9254 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9255 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9256 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9257 | |
698dcdb6 | 9258 | |
ec603395 | 9259 | CXXFLAGS=${CXXFLAGS:=} |
a0b9e27f MB |
9260 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
9261 | do | |
9262 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
9263 | set dummy $ac_prog; ac_word=$2 | |
9264 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2b5f62a0 | 9265 | echo "configure:9266: checking for $ac_word" >&5 |
a0b9e27f MB |
9266 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
9267 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9268 | else |
9269 | if test -n "$CXX"; then | |
9270 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
9271 | else | |
a0b9e27f MB |
9272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9273 | ac_dummy="$PATH" | |
9274 | for ac_dir in $ac_dummy; do | |
9275 | test -z "$ac_dir" && ac_dir=. | |
9276 | if test -f $ac_dir/$ac_word; then | |
9277 | ac_cv_prog_CXX="$ac_prog" | |
9278 | break | |
9279 | fi | |
9280 | done | |
9281 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9282 | fi |
9283 | fi | |
a0b9e27f | 9284 | CXX="$ac_cv_prog_CXX" |
10f2d63a | 9285 | if test -n "$CXX"; then |
a0b9e27f | 9286 | echo "$ac_t""$CXX" 1>&6 |
10f2d63a | 9287 | else |
a0b9e27f | 9288 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9289 | fi |
9290 | ||
a0b9e27f | 9291 | test -n "$CXX" && break |
10f2d63a | 9292 | done |
a0b9e27f | 9293 | test -n "$CXX" || CXX="gcc" |
f09359cf | 9294 | |
a0b9e27f MB |
9295 | |
9296 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
2b5f62a0 | 9297 | echo "configure:9298: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
a0b9e27f MB |
9298 | |
9299 | ac_ext=C | |
9300 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9301 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9302 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9303 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9304 | cross_compiling=$ac_cv_prog_cxx_cross | |
9305 | ||
9306 | cat > conftest.$ac_ext << EOF | |
9307 | ||
2b5f62a0 | 9308 | #line 9309 "configure" |
a0b9e27f MB |
9309 | #include "confdefs.h" |
9310 | ||
9311 | int main(){return(0);} | |
9312 | EOF | |
2b5f62a0 | 9313 | if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9314 | ac_cv_prog_cxx_works=yes |
9315 | # If we can't run a trivial program, we are probably using a cross compiler. | |
9316 | if (./conftest; exit) 2>/dev/null; then | |
9317 | ac_cv_prog_cxx_cross=no | |
9318 | else | |
9319 | ac_cv_prog_cxx_cross=yes | |
9320 | fi | |
8284b0c5 | 9321 | else |
a0b9e27f MB |
9322 | echo "configure: failed program was:" >&5 |
9323 | cat conftest.$ac_ext >&5 | |
9324 | ac_cv_prog_cxx_works=no | |
8284b0c5 | 9325 | fi |
a0b9e27f MB |
9326 | rm -fr conftest* |
9327 | ac_ext=C | |
9328 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
9329 | ac_cpp='$CXXCPP $CPPFLAGS' | |
9330 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
9331 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9332 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9333 | |
a0b9e27f MB |
9334 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
9335 | if test $ac_cv_prog_cxx_works = no; then | |
9336 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } | |
9337 | fi | |
9338 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
2b5f62a0 | 9339 | echo "configure:9340: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
a0b9e27f MB |
9340 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
9341 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 9342 | |
a0b9e27f | 9343 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
2b5f62a0 | 9344 | echo "configure:9345: checking whether we are using GNU C++" >&5 |
a0b9e27f MB |
9345 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
9346 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9347 | else | |
9348 | cat > conftest.C <<EOF | |
9349 | #ifdef __GNUC__ | |
9350 | yes; | |
10f2d63a | 9351 | #endif |
a0b9e27f | 9352 | EOF |
2b5f62a0 | 9353 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
a0b9e27f MB |
9354 | ac_cv_prog_gxx=yes |
9355 | else | |
9356 | ac_cv_prog_gxx=no | |
9357 | fi | |
9358 | fi | |
10f2d63a | 9359 | |
a0b9e27f | 9360 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
10f2d63a | 9361 | |
a0b9e27f MB |
9362 | if test $ac_cv_prog_gxx = yes; then |
9363 | GXX=yes | |
9364 | else | |
9365 | GXX= | |
9366 | fi | |
f09359cf | 9367 | |
a0b9e27f MB |
9368 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
9369 | ac_save_CXXFLAGS="$CXXFLAGS" | |
9370 | CXXFLAGS= | |
9371 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 | |
2b5f62a0 | 9372 | echo "configure:9373: checking whether ${CXX-g++} accepts -g" >&5 |
a0b9e27f MB |
9373 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
9374 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9375 | else | |
9376 | echo 'void f(){}' > conftest.cc | |
9377 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then | |
10f2d63a VZ |
9378 | ac_cv_prog_cxx_g=yes |
9379 | else | |
a0b9e27f | 9380 | ac_cv_prog_cxx_g=no |
10f2d63a | 9381 | fi |
a0b9e27f MB |
9382 | rm -f conftest* |
9383 | ||
10f2d63a | 9384 | fi |
a0b9e27f MB |
9385 | |
9386 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 | |
f09359cf | 9387 | if test "$ac_test_CXXFLAGS" = set; then |
a0b9e27f | 9388 | CXXFLAGS="$ac_save_CXXFLAGS" |
f09359cf VS |
9389 | elif test $ac_cv_prog_cxx_g = yes; then |
9390 | if test "$GXX" = yes; then | |
10f2d63a VZ |
9391 | CXXFLAGS="-g -O2" |
9392 | else | |
f09359cf | 9393 | CXXFLAGS="-g" |
10f2d63a | 9394 | fi |
5c0a20c3 | 9395 | else |
f09359cf VS |
9396 | if test "$GXX" = yes; then |
9397 | CXXFLAGS="-O2" | |
9398 | else | |
9399 | CXXFLAGS= | |
9400 | fi | |
10f2d63a VZ |
9401 | fi |
9402 | ||
9403 | ||
10f2d63a | 9404 | ac_ext=c |
a0b9e27f | 9405 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 9406 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
9407 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
9408 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
9409 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 MB |
9410 | |
9411 | ||
a0b9e27f MB |
9412 | # Extract the first word of "ranlib", so it can be a program name with args. |
9413 | set dummy ranlib; ac_word=$2 | |
9414 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2b5f62a0 | 9415 | echo "configure:9416: checking for $ac_word" >&5 |
a0b9e27f MB |
9416 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
9417 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9418 | else |
9419 | if test -n "$RANLIB"; then | |
9420 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
9421 | else | |
a0b9e27f MB |
9422 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9423 | ac_dummy="$PATH" | |
9424 | for ac_dir in $ac_dummy; do | |
9425 | test -z "$ac_dir" && ac_dir=. | |
9426 | if test -f $ac_dir/$ac_word; then | |
9427 | ac_cv_prog_RANLIB="ranlib" | |
9428 | break | |
9429 | fi | |
9430 | done | |
9431 | IFS="$ac_save_ifs" | |
9432 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
10f2d63a VZ |
9433 | fi |
9434 | fi | |
a0b9e27f | 9435 | RANLIB="$ac_cv_prog_RANLIB" |
10f2d63a | 9436 | if test -n "$RANLIB"; then |
a0b9e27f | 9437 | echo "$ac_t""$RANLIB" 1>&6 |
328a083c | 9438 | else |
a0b9e27f | 9439 | echo "$ac_t""no" 1>&6 |
328a083c RR |
9440 | fi |
9441 | ||
10f2d63a VZ |
9442 | |
9443 | # Extract the first word of "ar", so it can be a program name with args. | |
9444 | set dummy ar; ac_word=$2 | |
a0b9e27f | 9445 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 9446 | echo "configure:9447: checking for $ac_word" >&5 |
a0b9e27f MB |
9447 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
9448 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9449 | else |
9450 | if test -n "$AR"; then | |
9451 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
9452 | else | |
a0b9e27f MB |
9453 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9454 | ac_dummy="$PATH" | |
9455 | for ac_dir in $ac_dummy; do | |
9456 | test -z "$ac_dir" && ac_dir=. | |
9457 | if test -f $ac_dir/$ac_word; then | |
9458 | ac_cv_prog_AR="ar" | |
9459 | break | |
9460 | fi | |
9461 | done | |
9462 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9463 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
9464 | fi | |
9465 | fi | |
a0b9e27f | 9466 | AR="$ac_cv_prog_AR" |
10f2d63a | 9467 | if test -n "$AR"; then |
a0b9e27f | 9468 | echo "$ac_t""$AR" 1>&6 |
10f2d63a | 9469 | else |
a0b9e27f | 9470 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9471 | fi |
9472 | ||
8284b0c5 | 9473 | |
6054113a | 9474 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
9475 | # so one script is as good as another. But avoid the broken or |
9476 | # incompatible versions: | |
9477 | # SysV /etc/install, /usr/sbin/install | |
9478 | # SunOS /usr/etc/install | |
9479 | # IRIX /sbin/install | |
9480 | # AIX /bin/install | |
f09359cf | 9481 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
9482 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
9483 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
9484 | # ./install, which can be erroneously created by make from ./install.sh. | |
a0b9e27f | 9485 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
2b5f62a0 | 9486 | echo "configure:9487: checking for a BSD compatible install" >&5 |
10f2d63a | 9487 | if test -z "$INSTALL"; then |
a0b9e27f MB |
9488 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
9489 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9490 | else | |
9491 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
9492 | for ac_dir in $PATH; do | |
9493 | # Account for people who put trailing slashes in PATH elements. | |
9494 | case "$ac_dir/" in | |
9495 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
9496 | *) | |
9497 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
9498 | # Don't use installbsd from OSF since it installs stuff as root | |
9499 | # by default. | |
9500 | for ac_prog in ginstall scoinst install; do | |
9501 | if test -f $ac_dir/$ac_prog; then | |
9502 | if test $ac_prog = install && | |
9503 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
9504 | # AIX install. It has an incompatible calling convention. | |
9505 | : | |
9506 | else | |
9507 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
9508 | break 2 | |
9509 | fi | |
9510 | fi | |
10f2d63a | 9511 | done |
a0b9e27f MB |
9512 | ;; |
9513 | esac | |
9514 | done | |
9515 | IFS="$ac_save_IFS" | |
10f2d63a VZ |
9516 | |
9517 | fi | |
9518 | if test "${ac_cv_path_install+set}" = set; then | |
a0b9e27f | 9519 | INSTALL="$ac_cv_path_install" |
10f2d63a VZ |
9520 | else |
9521 | # As a last resort, use the slow shell script. We don't cache a | |
9522 | # path for INSTALL within a source directory, because that will | |
9523 | # break other packages using the cache if that directory is | |
9524 | # removed, or if the path is relative. | |
a0b9e27f | 9525 | INSTALL="$ac_install_sh" |
10f2d63a VZ |
9526 | fi |
9527 | fi | |
a0b9e27f | 9528 | echo "$ac_t""$INSTALL" 1>&6 |
10f2d63a VZ |
9529 | |
9530 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
9531 | # It thinks the first close brace ends the variable substitution. | |
9532 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
9533 | ||
a0b9e27f | 9534 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
f09359cf | 9535 | |
10f2d63a VZ |
9536 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
9537 | ||
8284b0c5 | 9538 | |
1d1b75ac VZ |
9539 | case ${INSTALL} in |
9540 | /* ) # Absolute | |
9541 | ;; | |
3bd8fb5f | 9542 | *) |
1d1b75ac VZ |
9543 | INSTALL=`pwd`/${INSTALL} ;; |
9544 | esac | |
9545 | ||
8284b0c5 | 9546 | |
6054113a GD |
9547 | case "${host}" in |
9548 | ||
b5853384 | 9549 | powerpc-*-darwin* ) |
eb99ae0b GD |
9550 | INSTALL_PROGRAM="cp -fp" |
9551 | INSTALL_DATA="cp -fp" | |
6054113a GD |
9552 | ;; |
9553 | *) | |
9554 | ;; | |
d6853540 | 9555 | esac |
698dcdb6 | 9556 | |
10f2d63a VZ |
9557 | # Extract the first word of "strip", so it can be a program name with args. |
9558 | set dummy strip; ac_word=$2 | |
a0b9e27f | 9559 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 9560 | echo "configure:9561: checking for $ac_word" >&5 |
a0b9e27f MB |
9561 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
9562 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9563 | else |
9564 | if test -n "$STRIP"; then | |
9565 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
9566 | else | |
a0b9e27f MB |
9567 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9568 | ac_dummy="$PATH" | |
9569 | for ac_dir in $ac_dummy; do | |
9570 | test -z "$ac_dir" && ac_dir=. | |
9571 | if test -f $ac_dir/$ac_word; then | |
9572 | ac_cv_prog_STRIP="strip" | |
9573 | break | |
9574 | fi | |
9575 | done | |
9576 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9577 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
9578 | fi | |
9579 | fi | |
a0b9e27f | 9580 | STRIP="$ac_cv_prog_STRIP" |
10f2d63a | 9581 | if test -n "$STRIP"; then |
a0b9e27f | 9582 | echo "$ac_t""$STRIP" 1>&6 |
10f2d63a | 9583 | else |
a0b9e27f | 9584 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9585 | fi |
9586 | ||
5c6fa7d2 | 9587 | |
a0b9e27f | 9588 | echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6 |
2b5f62a0 | 9589 | echo "configure:9590: checking if make is GNU make" >&5 |
a0b9e27f MB |
9590 | if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then |
9591 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 9592 | else |
a0b9e27f | 9593 | |
414eab6d | 9594 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 9595 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
9596 | wx_cv_prog_makeisgnu="yes" |
9597 | else | |
9598 | wx_cv_prog_makeisgnu="no" | |
9599 | fi | |
9600 | ||
9601 | fi | |
a0b9e27f MB |
9602 | |
9603 | echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6 | |
414eab6d VZ |
9604 | |
9605 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
9606 | IF_GNU_MAKE="" | |
9607 | else | |
9608 | IF_GNU_MAKE="#" | |
9609 | fi | |
9610 | ||
8284b0c5 MB |
9611 | |
9612 | ||
414eab6d | 9613 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
a0b9e27f | 9614 | echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6 |
2b5f62a0 | 9615 | echo "configure:9616: checking if make supports VPATH" >&5 |
a0b9e27f MB |
9616 | if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then |
9617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
04e7a216 | 9618 | else |
a0b9e27f | 9619 | |
10f2d63a VZ |
9620 | cat - << EOF > confMake |
9621 | check : file | |
9622 | cp \$? \$@ | |
9623 | cp \$? final_file | |
9624 | EOF | |
9625 | ||
9626 | if test ! -d sub ; then | |
9627 | mkdir sub | |
9628 | fi | |
9629 | echo dummy > sub/file | |
f6bcfd97 | 9630 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
9631 | RESULT=$? |
9632 | rm -f sub/file check final_file confMake | |
9633 | rmdir sub | |
9634 | if test "$RESULT" = 0; then | |
04e7a216 | 9635 | wx_cv_prog_makevpath="yes" |
10f2d63a | 9636 | else |
04e7a216 VZ |
9637 | wx_cv_prog_makevpath="no" |
9638 | fi | |
9639 | ||
9640 | fi | |
a0b9e27f MB |
9641 | |
9642 | echo "$ac_t""$wx_cv_prog_makevpath" 1>&6 | |
04e7a216 VZ |
9643 | |
9644 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
a0b9e27f | 9645 | { echo "configure: error: |
5c6fa7d2 RR |
9646 | You need a make-utility that is able to use the variable |
9647 | VPATH correctly. | |
9648 | If your version of make does not support VPATH correctly, | |
9649 | please install GNU-make (possibly as gmake), and start | |
9650 | configure with the following command: | |
9651 | export MAKE=gmake; ./configure for sh-type shells | |
9652 | setenv MAKE gmake; ./configure for csh-type shells | |
9653 | Also please do remember to use gmake in this case every time | |
9654 | you are trying to compile. | |
a0b9e27f MB |
9655 | " 1>&2; exit 1; } |
9656 | fi fi | |
10f2d63a VZ |
9657 | for ac_prog in 'bison -y' byacc |
9658 | do | |
a0b9e27f | 9659 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
10f2d63a | 9660 | set dummy $ac_prog; ac_word=$2 |
a0b9e27f | 9661 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
2b5f62a0 | 9662 | echo "configure:9663: checking for $ac_word" >&5 |
a0b9e27f MB |
9663 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
9664 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9665 | else |
9666 | if test -n "$YACC"; then | |
9667 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
9668 | else | |
a0b9e27f MB |
9669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9670 | ac_dummy="$PATH" | |
9671 | for ac_dir in $ac_dummy; do | |
9672 | test -z "$ac_dir" && ac_dir=. | |
9673 | if test -f $ac_dir/$ac_word; then | |
9674 | ac_cv_prog_YACC="$ac_prog" | |
9675 | break | |
9676 | fi | |
9677 | done | |
9678 | IFS="$ac_save_ifs" | |
10f2d63a VZ |
9679 | fi |
9680 | fi | |
a0b9e27f | 9681 | YACC="$ac_cv_prog_YACC" |
10f2d63a | 9682 | if test -n "$YACC"; then |
a0b9e27f | 9683 | echo "$ac_t""$YACC" 1>&6 |
10f2d63a | 9684 | else |
a0b9e27f | 9685 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9686 | fi |
9687 | ||
a0b9e27f | 9688 | test -n "$YACC" && break |
10f2d63a VZ |
9689 | done |
9690 | test -n "$YACC" || YACC="yacc" | |
9691 | ||
8284b0c5 | 9692 | |
a0b9e27f MB |
9693 | # Extract the first word of "flex", so it can be a program name with args. |
9694 | set dummy flex; ac_word=$2 | |
9695 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
2b5f62a0 | 9696 | echo "configure:9697: checking for $ac_word" >&5 |
a0b9e27f MB |
9697 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
9698 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a VZ |
9699 | else |
9700 | if test -n "$LEX"; then | |
9701 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
9702 | else | |
a0b9e27f MB |
9703 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
9704 | ac_dummy="$PATH" | |
9705 | for ac_dir in $ac_dummy; do | |
9706 | test -z "$ac_dir" && ac_dir=. | |
9707 | if test -f $ac_dir/$ac_word; then | |
9708 | ac_cv_prog_LEX="flex" | |
9709 | break | |
9710 | fi | |
9711 | done | |
9712 | IFS="$ac_save_ifs" | |
9713 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" | |
10f2d63a VZ |
9714 | fi |
9715 | fi | |
a0b9e27f | 9716 | LEX="$ac_cv_prog_LEX" |
10f2d63a | 9717 | if test -n "$LEX"; then |
a0b9e27f | 9718 | echo "$ac_t""$LEX" 1>&6 |
10f2d63a | 9719 | else |
a0b9e27f | 9720 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9721 | fi |
9722 | ||
9723 | if test -z "$LEXLIB" | |
9724 | then | |
a0b9e27f MB |
9725 | case "$LEX" in |
9726 | flex*) ac_lib=fl ;; | |
9727 | *) ac_lib=l ;; | |
9728 | esac | |
9729 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 | |
2b5f62a0 | 9730 | echo "configure:9731: checking for yywrap in -l$ac_lib" >&5 |
a0b9e27f MB |
9731 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
9732 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9733 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9734 | else | |
9735 | ac_save_LIBS="$LIBS" | |
9736 | LIBS="-l$ac_lib $LIBS" | |
9737 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9738 | #line 9739 "configure" |
247f5006 | 9739 | #include "confdefs.h" |
247f5006 | 9740 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 9741 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
9742 | builtin and then its argument prototype would still apply. */ |
9743 | char yywrap(); | |
10f2d63a | 9744 | |
a0b9e27f MB |
9745 | int main() { |
9746 | yywrap() | |
9747 | ; return 0; } | |
9748 | EOF | |
2b5f62a0 | 9749 | if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
9750 | rm -rf conftest* |
9751 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9752 | else | |
9753 | echo "configure: failed program was:" >&5 | |
9754 | cat conftest.$ac_ext >&5 | |
9755 | rm -rf conftest* | |
9756 | eval "ac_cv_lib_$ac_lib_var=no" | |
10f2d63a | 9757 | fi |
a0b9e27f MB |
9758 | rm -f conftest* |
9759 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 9760 | |
10f2d63a | 9761 | fi |
a0b9e27f MB |
9762 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
9763 | echo "$ac_t""yes" 1>&6 | |
9764 | LEXLIB="-l$ac_lib" | |
8284b0c5 | 9765 | else |
a0b9e27f | 9766 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
9767 | fi |
9768 | ||
a0b9e27f | 9769 | fi |
10f2d63a VZ |
9770 | |
9771 | ||
a0b9e27f | 9772 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
2b5f62a0 | 9773 | echo "configure:9774: checking whether ln -s works" >&5 |
a0b9e27f MB |
9774 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
9775 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 9776 | else |
a0b9e27f MB |
9777 | rm -f conftestdata |
9778 | if ln -s X conftestdata 2>/dev/null | |
9779 | then | |
9780 | rm -f conftestdata | |
9781 | ac_cv_prog_LN_S="ln -s" | |
10f2d63a | 9782 | else |
a0b9e27f | 9783 | ac_cv_prog_LN_S=ln |
10f2d63a | 9784 | fi |
a0b9e27f MB |
9785 | fi |
9786 | LN_S="$ac_cv_prog_LN_S" | |
9787 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
9788 | echo "$ac_t""yes" 1>&6 | |
10f2d63a | 9789 | else |
a0b9e27f | 9790 | echo "$ac_t""no" 1>&6 |
5c6fa7d2 | 9791 | fi |
5c6fa7d2 | 9792 | |
247f5006 | 9793 | |
2b5f62a0 VZ |
9794 | case "${host}" in |
9795 | *-pc-os2_emx | *-pc-os2-emx ) | |
9796 | LIBS="$LIBS -lstdcpp" | |
9797 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
9798 | echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6 | |
9799 | echo "configure:9800: checking for drand48 in -lcExt" >&5 | |
9800 | ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'` | |
9801 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
9802 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9803 | else | |
9804 | ac_save_LIBS="$LIBS" | |
9805 | LIBS="-lcExt $LIBS" | |
9806 | cat > conftest.$ac_ext <<EOF | |
9807 | #line 9808 "configure" | |
9808 | #include "confdefs.h" | |
9809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9810 | /* We use char because int might match the return type of a gcc2 | |
9811 | builtin and then its argument prototype would still apply. */ | |
9812 | char drand48(); | |
9813 | ||
9814 | int main() { | |
9815 | drand48() | |
9816 | ; return 0; } | |
9817 | EOF | |
9818 | if { (eval echo configure:9819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
9819 | rm -rf conftest* | |
9820 | eval "ac_cv_lib_$ac_lib_var=yes" | |
9821 | else | |
9822 | echo "configure: failed program was:" >&5 | |
9823 | cat conftest.$ac_ext >&5 | |
9824 | rm -rf conftest* | |
9825 | eval "ac_cv_lib_$ac_lib_var=no" | |
9826 | fi | |
9827 | rm -f conftest* | |
9828 | LIBS="$ac_save_LIBS" | |
9829 | ||
9830 | fi | |
9831 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
9832 | echo "$ac_t""yes" 1>&6 | |
9833 | LIBS="$LIBS -lcExt" | |
9834 | else | |
9835 | echo "$ac_t""no" 1>&6 | |
9836 | fi | |
9837 | ||
9838 | else | |
9839 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
9840 | fi | |
9841 | ;; | |
9842 | esac | |
9843 | ||
a0b9e27f MB |
9844 | |
9845 | if test "$wxUSE_MAC" != 1; then | |
9846 | for ac_hdr in strings.h | |
9847 | do | |
9848 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9849 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 9850 | echo "configure:9851: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9851 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9852 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9853 | else | |
9854 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9855 | #line 9856 "configure" |
a0b9e27f MB |
9856 | #include "confdefs.h" |
9857 | #include <$ac_hdr> | |
9858 | EOF | |
9859 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9860 | { (eval echo configure:9861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9861 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9862 | if test -z "$ac_err"; then | |
9863 | rm -rf conftest* | |
9864 | eval "ac_cv_header_$ac_safe=yes" | |
9865 | else | |
9866 | echo "$ac_err" >&5 | |
9867 | echo "configure: failed program was:" >&5 | |
9868 | cat conftest.$ac_ext >&5 | |
9869 | rm -rf conftest* | |
9870 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 9871 | fi |
247f5006 | 9872 | rm -f conftest* |
19bc6aad | 9873 | fi |
a0b9e27f MB |
9874 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9875 | echo "$ac_t""yes" 1>&6 | |
9876 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9877 | cat >> confdefs.h <<EOF | |
9878 | #define $ac_tr_hdr 1 | |
9879 | EOF | |
9880 | ||
247f5006 | 9881 | else |
a0b9e27f | 9882 | echo "$ac_t""no" 1>&6 |
18dbb1f6 | 9883 | fi |
a0b9e27f | 9884 | done |
247f5006 | 9885 | |
90dd450c | 9886 | fi |
90dd450c | 9887 | |
a0b9e27f MB |
9888 | for ac_hdr in stdlib.h |
9889 | do | |
9890 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9891 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 9892 | echo "configure:9893: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9893 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9894 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9895 | else | |
9896 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9897 | #line 9898 "configure" |
90dd450c | 9898 | #include "confdefs.h" |
a0b9e27f MB |
9899 | #include <$ac_hdr> |
9900 | EOF | |
9901 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9902 | { (eval echo configure:9903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9903 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9904 | if test -z "$ac_err"; then | |
9905 | rm -rf conftest* | |
9906 | eval "ac_cv_header_$ac_safe=yes" | |
9907 | else | |
9908 | echo "$ac_err" >&5 | |
9909 | echo "configure: failed program was:" >&5 | |
9910 | cat conftest.$ac_ext >&5 | |
9911 | rm -rf conftest* | |
9912 | eval "ac_cv_header_$ac_safe=no" | |
9913 | fi | |
9914 | rm -f conftest* | |
9915 | fi | |
9916 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9917 | echo "$ac_t""yes" 1>&6 | |
9918 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9919 | cat >> confdefs.h <<EOF | |
9920 | #define $ac_tr_hdr 1 | |
9921 | EOF | |
9922 | ||
8284b0c5 | 9923 | else |
a0b9e27f | 9924 | echo "$ac_t""no" 1>&6 |
21d1c967 | 9925 | fi |
a0b9e27f MB |
9926 | done |
9927 | ||
9928 | for ac_hdr in malloc.h | |
9929 | do | |
9930 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9931 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 9932 | echo "configure:9933: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9933 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9934 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9935 | else | |
9936 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9937 | #line 9938 "configure" |
a0b9e27f MB |
9938 | #include "confdefs.h" |
9939 | #include <$ac_hdr> | |
9940 | EOF | |
9941 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9942 | { (eval echo configure:9943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9943 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9944 | if test -z "$ac_err"; then | |
9945 | rm -rf conftest* | |
9946 | eval "ac_cv_header_$ac_safe=yes" | |
9947 | else | |
9948 | echo "$ac_err" >&5 | |
9949 | echo "configure: failed program was:" >&5 | |
9950 | cat conftest.$ac_ext >&5 | |
9951 | rm -rf conftest* | |
9952 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 9953 | fi |
a0b9e27f | 9954 | rm -f conftest* |
90dd450c | 9955 | fi |
a0b9e27f MB |
9956 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
9957 | echo "$ac_t""yes" 1>&6 | |
9958 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9959 | cat >> confdefs.h <<EOF | |
9960 | #define $ac_tr_hdr 1 | |
9961 | EOF | |
9962 | ||
9963 | else | |
9964 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 9965 | fi |
a0b9e27f | 9966 | done |
247f5006 | 9967 | |
a0b9e27f MB |
9968 | for ac_hdr in unistd.h |
9969 | do | |
9970 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
9971 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 9972 | echo "configure:9973: checking for $ac_hdr" >&5 |
a0b9e27f MB |
9973 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
9974 | echo $ac_n "(cached) $ac_c" 1>&6 | |
9975 | else | |
9976 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 9977 | #line 9978 "configure" |
a0b9e27f MB |
9978 | #include "confdefs.h" |
9979 | #include <$ac_hdr> | |
9980 | EOF | |
9981 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 9982 | { (eval echo configure:9983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
9983 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
9984 | if test -z "$ac_err"; then | |
9985 | rm -rf conftest* | |
9986 | eval "ac_cv_header_$ac_safe=yes" | |
9987 | else | |
9988 | echo "$ac_err" >&5 | |
9989 | echo "configure: failed program was:" >&5 | |
9990 | cat conftest.$ac_ext >&5 | |
9991 | rm -rf conftest* | |
9992 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 9993 | fi |
a0b9e27f MB |
9994 | rm -f conftest* |
9995 | fi | |
9996 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
9997 | echo "$ac_t""yes" 1>&6 | |
9998 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
9999 | cat >> confdefs.h <<EOF | |
10000 | #define $ac_tr_hdr 1 | |
10001 | EOF | |
10002 | ||
10003 | else | |
10004 | echo "$ac_t""no" 1>&6 | |
10005 | fi | |
10006 | done | |
90dd450c | 10007 | |
a0b9e27f | 10008 | for ac_hdr in wchar.h |
21d1c967 | 10009 | do |
a0b9e27f MB |
10010 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10011 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10012 | echo "configure:10013: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10013 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10014 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10015 | else | |
10016 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10017 | #line 10018 "configure" |
4f14bcd8 | 10018 | #include "confdefs.h" |
a0b9e27f MB |
10019 | #include <$ac_hdr> |
10020 | EOF | |
10021 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10022 | { (eval echo configure:10023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10023 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10024 | if test -z "$ac_err"; then | |
10025 | rm -rf conftest* | |
10026 | eval "ac_cv_header_$ac_safe=yes" | |
10027 | else | |
10028 | echo "$ac_err" >&5 | |
10029 | echo "configure: failed program was:" >&5 | |
10030 | cat conftest.$ac_ext >&5 | |
10031 | rm -rf conftest* | |
10032 | eval "ac_cv_header_$ac_safe=no" | |
10033 | fi | |
10034 | rm -f conftest* | |
10035 | fi | |
10036 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
10037 | echo "$ac_t""yes" 1>&6 | |
10038 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10039 | cat >> confdefs.h <<EOF | |
10040 | #define $ac_tr_hdr 1 | |
10041 | EOF | |
10042 | ||
10043 | else | |
10044 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10045 | fi |
10046 | done | |
4f14bcd8 | 10047 | |
5c6fa7d2 | 10048 | |
a0b9e27f MB |
10049 | if test "$ac_cv_header_wchar_h" != "yes"; then |
10050 | for ac_hdr in wcstr.h | |
21d1c967 | 10051 | do |
a0b9e27f MB |
10052 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10053 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10054 | echo "configure:10055: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10055 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10056 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10057 | else | |
10058 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10059 | #line 10060 "configure" |
d4158b5d | 10060 | #include "confdefs.h" |
a0b9e27f MB |
10061 | #include <$ac_hdr> |
10062 | EOF | |
10063 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10064 | { (eval echo configure:10065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10065 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10066 | if test -z "$ac_err"; then | |
10067 | rm -rf conftest* | |
10068 | eval "ac_cv_header_$ac_safe=yes" | |
10069 | else | |
10070 | echo "$ac_err" >&5 | |
10071 | echo "configure: failed program was:" >&5 | |
d4158b5d | 10072 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10073 | rm -rf conftest* |
10074 | eval "ac_cv_header_$ac_safe=no" | |
d4158b5d | 10075 | fi |
a0b9e27f | 10076 | rm -f conftest* |
21d1c967 | 10077 | fi |
a0b9e27f MB |
10078 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10079 | echo "$ac_t""yes" 1>&6 | |
10080 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10081 | cat >> confdefs.h <<EOF | |
10082 | #define $ac_tr_hdr 1 | |
10083 | EOF | |
10084 | ||
10085 | else | |
10086 | echo "$ac_t""no" 1>&6 | |
d4158b5d | 10087 | fi |
21d1c967 | 10088 | done |
f6bcfd97 | 10089 | |
90dd450c | 10090 | fi |
90dd450c | 10091 | |
a0b9e27f | 10092 | for ac_hdr in fnmatch.h |
21d1c967 | 10093 | do |
a0b9e27f MB |
10094 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10095 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10096 | echo "configure:10097: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10097 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10099 | else | |
10100 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10101 | #line 10102 "configure" |
90dd450c | 10102 | #include "confdefs.h" |
a0b9e27f MB |
10103 | #include <$ac_hdr> |
10104 | EOF | |
10105 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10106 | { (eval echo configure:10107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10107 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10108 | if test -z "$ac_err"; then | |
10109 | rm -rf conftest* | |
10110 | eval "ac_cv_header_$ac_safe=yes" | |
10111 | else | |
10112 | echo "$ac_err" >&5 | |
10113 | echo "configure: failed program was:" >&5 | |
3a922bb4 | 10114 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10115 | rm -rf conftest* |
10116 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10117 | fi |
a0b9e27f | 10118 | rm -f conftest* |
4f14bcd8 | 10119 | fi |
a0b9e27f MB |
10120 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10121 | echo "$ac_t""yes" 1>&6 | |
10122 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10123 | cat >> confdefs.h <<EOF | |
10124 | #define $ac_tr_hdr 1 | |
10125 | EOF | |
10126 | ||
10127 | else | |
10128 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10129 | fi |
10130 | done | |
90dd450c | 10131 | |
5c6fa7d2 | 10132 | |
a0b9e27f MB |
10133 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
10134 | for ac_func in fnmatch | |
21d1c967 | 10135 | do |
a0b9e27f | 10136 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
2b5f62a0 | 10137 | echo "configure:10138: checking for $ac_func" >&5 |
a0b9e27f MB |
10138 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
10139 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10140 | else |
a0b9e27f | 10141 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10142 | #line 10143 "configure" |
a0b9e27f MB |
10143 | #include "confdefs.h" |
10144 | /* System header to define __stub macros and hopefully few prototypes, | |
10145 | which can conflict with char $ac_func(); below. */ | |
10146 | #include <assert.h> | |
10147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10148 | /* We use char because int might match the return type of a gcc2 | |
10149 | builtin and then its argument prototype would still apply. */ | |
10150 | char $ac_func(); | |
10151 | ||
10152 | int main() { | |
10153 | ||
10154 | /* The GNU C library defines this for functions which it implements | |
10155 | to always fail with ENOSYS. Some functions are actually named | |
10156 | something starting with __ and the normal name is an alias. */ | |
10157 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10158 | choke me | |
10159 | #else | |
10160 | $ac_func(); | |
10161 | #endif | |
10162 | ||
10163 | ; return 0; } | |
10164 | EOF | |
2b5f62a0 | 10165 | if { (eval echo configure:10166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
10166 | rm -rf conftest* |
10167 | eval "ac_cv_func_$ac_func=yes" | |
8284b0c5 | 10168 | else |
a0b9e27f | 10169 | echo "configure: failed program was:" >&5 |
8284b0c5 | 10170 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10171 | rm -rf conftest* |
10172 | eval "ac_cv_func_$ac_func=no" | |
8284b0c5 | 10173 | fi |
a0b9e27f | 10174 | rm -f conftest* |
8284b0c5 | 10175 | fi |
32832908 | 10176 | |
a0b9e27f MB |
10177 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
10178 | echo "$ac_t""yes" 1>&6 | |
10179 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
10180 | cat >> confdefs.h <<EOF | |
10181 | #define $ac_tr_func 1 | |
10182 | EOF | |
10183 | ||
10184 | else | |
10185 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10186 | fi |
10187 | done | |
90dd450c | 10188 | |
a0b9e27f | 10189 | fi |
90dd450c | 10190 | |
a0b9e27f | 10191 | for ac_hdr in langinfo.h |
21d1c967 | 10192 | do |
a0b9e27f MB |
10193 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10194 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10195 | echo "configure:10196: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10196 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10198 | else | |
10199 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10200 | #line 10201 "configure" |
247f5006 | 10201 | #include "confdefs.h" |
a0b9e27f MB |
10202 | #include <$ac_hdr> |
10203 | EOF | |
10204 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10205 | { (eval echo configure:10206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10206 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10207 | if test -z "$ac_err"; then | |
10208 | rm -rf conftest* | |
10209 | eval "ac_cv_header_$ac_safe=yes" | |
10210 | else | |
10211 | echo "$ac_err" >&5 | |
10212 | echo "configure: failed program was:" >&5 | |
90dd450c | 10213 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10214 | rm -rf conftest* |
10215 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 10216 | fi |
a0b9e27f | 10217 | rm -f conftest* |
4f14bcd8 | 10218 | fi |
a0b9e27f MB |
10219 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10220 | echo "$ac_t""yes" 1>&6 | |
10221 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10222 | cat >> confdefs.h <<EOF | |
10223 | #define $ac_tr_hdr 1 | |
10224 | EOF | |
10225 | ||
10226 | else | |
10227 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
10228 | fi |
10229 | done | |
3a922bb4 | 10230 | |
8284b0c5 | 10231 | |
a0b9e27f MB |
10232 | if test "$wxUSE_GUI" = "yes"; then |
10233 | if test "$wxUSE_UNIX" = "yes"; then | |
10234 | for ac_hdr in X11/XKBlib.h | |
21d1c967 | 10235 | do |
a0b9e27f MB |
10236 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
10237 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
2b5f62a0 | 10238 | echo "configure:10239: checking for $ac_hdr" >&5 |
a0b9e27f MB |
10239 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
10240 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10241 | else | |
10242 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10243 | #line 10244 "configure" |
90dd450c | 10244 | #include "confdefs.h" |
a0b9e27f MB |
10245 | #include <$ac_hdr> |
10246 | EOF | |
10247 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
2b5f62a0 | 10248 | { (eval echo configure:10249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
10249 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
10250 | if test -z "$ac_err"; then | |
10251 | rm -rf conftest* | |
10252 | eval "ac_cv_header_$ac_safe=yes" | |
10253 | else | |
10254 | echo "$ac_err" >&5 | |
10255 | echo "configure: failed program was:" >&5 | |
90dd450c | 10256 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10257 | rm -rf conftest* |
10258 | eval "ac_cv_header_$ac_safe=no" | |
3a922bb4 | 10259 | fi |
a0b9e27f | 10260 | rm -f conftest* |
90dd450c | 10261 | fi |
a0b9e27f MB |
10262 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
10263 | echo "$ac_t""yes" 1>&6 | |
10264 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
10265 | cat >> confdefs.h <<EOF | |
10266 | #define $ac_tr_hdr 1 | |
10267 | EOF | |
10268 | ||
10269 | else | |
10270 | echo "$ac_t""no" 1>&6 | |
247f5006 | 10271 | fi |
247f5006 VZ |
10272 | done |
10273 | ||
a0b9e27f MB |
10274 | fi |
10275 | fi | |
247f5006 | 10276 | |
247f5006 | 10277 | |
a0b9e27f | 10278 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
2b5f62a0 | 10279 | echo "configure:10280: checking for working const" >&5 |
a0b9e27f MB |
10280 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
10281 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10282 | else |
a0b9e27f | 10283 | cat > conftest.$ac_ext <<EOF |
2b5f62a0 | 10284 | #line 10285 "configure" |
a0b9e27f MB |
10285 | #include "confdefs.h" |
10286 | ||
10287 | int main() { | |
10288 | ||
10289 | /* Ultrix mips cc rejects this. */ | |
10290 | typedef int charset[2]; const charset x; | |
10291 | /* SunOS 4.1.1 cc rejects this. */ | |
10292 | char const *const *ccp; | |
10293 | char **p; | |
10294 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
10295 | struct point {int x, y;}; | |
10296 | static struct point const zero = {0,0}; | |
10297 | /* AIX XL C 1.02.0.0 rejects this. | |
10298 | It does not let you subtract one const X* pointer from another in an arm | |
10299 | of an if-expression whose if-part is not a constant expression */ | |
10300 | const char *g = "string"; | |
10301 | ccp = &g + (g ? g-g : 0); | |
10302 | /* HPUX 7.0 cc rejects these. */ | |
10303 | ++ccp; | |
10304 | p = (char**) ccp; | |
10305 | ccp = (char const *const *) p; | |
10306 | { /* SCO 3.2v4 cc rejects this. */ | |
10307 | char *t; | |
10308 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
10309 | ||
10310 | *t++ = 0; | |
10311 | } | |
10312 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
10313 | int x[] = {25, 17}; | |
10314 | const int *foo = &x[0]; | |
10315 | ++foo; | |
10316 | } | |
10317 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
10318 | typedef const int *iptr; | |
10319 | iptr p = 0; | |
10320 | ++p; | |
10321 | } | |
10322 | { /* AIX XL C 1.02.0.0 rejects this saying | |
10323 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
10324 | struct s { int j; const int *ap[3]; }; | |
10325 | struct s *b; b->j = 5; | |
10326 | } | |
10327 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
10328 | const int foo = 10; | |
10329 | } | |
10330 | ||
10331 | ; return 0; } | |
10332 | EOF | |
2b5f62a0 | 10333 | if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10334 | rm -rf conftest* |
10335 | ac_cv_c_const=yes | |
247f5006 | 10336 | else |
a0b9e27f | 10337 | echo "configure: failed program was:" >&5 |
247f5006 | 10338 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10339 | rm -rf conftest* |
10340 | ac_cv_c_const=no | |
247f5006 | 10341 | fi |
a0b9e27f | 10342 | rm -f conftest* |
21d1c967 | 10343 | fi |
247f5006 | 10344 | |
a0b9e27f MB |
10345 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
10346 | if test $ac_cv_c_const = no; then | |
10347 | cat >> confdefs.h <<\EOF | |
10348 | #define const | |
10349 | EOF | |
10f2d63a | 10350 | |
90dd450c | 10351 | fi |
81809c07 | 10352 | |
a0b9e27f | 10353 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
2b5f62a0 | 10354 | echo "configure:10355: checking for inline" >&5 |
a0b9e27f MB |
10355 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
10356 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8168de4c | 10357 | else |
a0b9e27f MB |
10358 | ac_cv_c_inline=no |
10359 | for ac_kw in inline __inline__ __inline; do | |
10360 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10361 | #line 10362 "configure" |
a0b9e27f MB |
10362 | #include "confdefs.h" |
10363 | ||
10364 | int main() { | |
10365 | } $ac_kw foo() { | |
10366 | ; return 0; } | |
10367 | EOF | |
2b5f62a0 | 10368 | if { (eval echo configure:10369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
10369 | rm -rf conftest* |
10370 | ac_cv_c_inline=$ac_kw; break | |
247f5006 | 10371 | else |
a0b9e27f | 10372 | echo "configure: failed program was:" >&5 |
247f5006 | 10373 | cat conftest.$ac_ext >&5 |
247f5006 | 10374 | fi |
a0b9e27f MB |
10375 | rm -f conftest* |
10376 | done | |
247f5006 VZ |
10377 | |
10378 | fi | |
10379 | ||
a0b9e27f MB |
10380 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
10381 | case "$ac_cv_c_inline" in | |
10382 | inline | yes) ;; | |
10383 | no) cat >> confdefs.h <<\EOF | |
10384 | #define inline | |
10385 | EOF | |
10386 | ;; | |
10387 | *) cat >> confdefs.h <<EOF | |
10388 | #define inline $ac_cv_c_inline | |
10389 | EOF | |
10390 | ;; | |
10391 | esac | |
247f5006 | 10392 | |
247f5006 | 10393 | |
a0b9e27f | 10394 | echo $ac_n "checking size of char""... $ac_c" 1>&6 |
2b5f62a0 | 10395 | echo "configure:10396: checking size of char" >&5 |
a0b9e27f MB |
10396 | if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then |
10397 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10398 | else | |
10399 | if test "$cross_compiling" = yes; then | |
10400 | ac_cv_sizeof_char=1 | |
10401 | else | |
10402 | cat > conftest.$ac_ext <<EOF | |
2b5f62a0 | 10403 | #line 10404 "configure" |
4f14bcd8 | 10404 | #include "confdefs.h" |
a0b9e27f | 10405 | #include <stdio.h> |
a0b9e27f | 10406 | main() |
247f5006 | 10407 | { |
a0b9e27f MB |
10408 | FILE *f=fopen("conftestval", "w"); |
10409 | if (!f) exit(1); | |
10410 | fprintf(f, "%d\n", sizeof(char)); | |
10411 | exit(0); | |
52127426 | 10412 | } |
a0b9e27f | 10413 | EOF |
34bed6d9 | 10414 | if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10415 | then |
10416 | ac_cv_sizeof_char=`cat conftestval` | |
247f5006 | 10417 | else |
a0b9e27f | 10418 | echo "configure: failed program was:" >&5 |
247f5006 | 10419 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
10420 | rm -fr conftest* |
10421 | ac_cv_sizeof_char=0 | |
247f5006 | 10422 | fi |
a0b9e27f | 10423 | rm -fr conftest* |
247f5006 | 10424 | fi |
247f5006 VZ |
10425 | |
10426 | fi | |
a0b9e27f MB |
10427 | echo "$ac_t""$ac_cv_sizeof_char" 1>&6 |
10428 | cat >> confdefs.h <<EOF | |
10429 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
10430 | EOF | |
247f5006 | 10431 | |
247f5006 | 10432 | |
a0b9e27f | 10433 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
34bed6d9 | 10434 | echo "configure:10435: checking size of short" >&5 |
a0b9e27f MB |
10435 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
10436 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10437 | else |
a0b9e27f MB |
10438 | if test "$cross_compiling" = yes; then |
10439 | ac_cv_sizeof_short=2 | |
247f5006 | 10440 | else |
a0b9e27f | 10441 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 10442 | #line 10443 "configure" |
a0b9e27f MB |
10443 | #include "confdefs.h" |
10444 | #include <stdio.h> | |
a0b9e27f MB |
10445 | main() |
10446 | { | |
10447 | FILE *f=fopen("conftestval", "w"); | |
10448 | if (!f) exit(1); | |
10449 | fprintf(f, "%d\n", sizeof(short)); | |
10450 | exit(0); | |
10451 | } | |
10452 | EOF | |
34bed6d9 | 10453 | if { (eval echo configure:10454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10454 | then |
10455 | ac_cv_sizeof_short=`cat conftestval` | |
247f5006 | 10456 | else |
a0b9e27f MB |
10457 | echo "configure: failed program was:" >&5 |
10458 | cat conftest.$ac_ext >&5 | |
10459 | rm -fr conftest* | |
10460 | ac_cv_sizeof_short=0 | |
247f5006 | 10461 | fi |
a0b9e27f | 10462 | rm -fr conftest* |
247f5006 VZ |
10463 | fi |
10464 | ||
247f5006 | 10465 | fi |
a0b9e27f MB |
10466 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
10467 | cat >> confdefs.h <<EOF | |
10468 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
10469 | EOF | |
247f5006 VZ |
10470 | |
10471 | ||
a0b9e27f | 10472 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
34bed6d9 | 10473 | echo "configure:10474: checking size of void *" >&5 |
a0b9e27f MB |
10474 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
10475 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10476 | else | |
10477 | if test "$cross_compiling" = yes; then | |
10478 | ac_cv_sizeof_void_p=4 | |
247f5006 | 10479 | else |
a0b9e27f | 10480 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 10481 | #line 10482 "configure" |
247f5006 | 10482 | #include "confdefs.h" |
247f5006 | 10483 | #include <stdio.h> |
a0b9e27f | 10484 | main() |
247f5006 | 10485 | { |
a0b9e27f MB |
10486 | FILE *f=fopen("conftestval", "w"); |
10487 | if (!f) exit(1); | |
10488 | fprintf(f, "%d\n", sizeof(void *)); | |
10489 | exit(0); | |
5c6fa7d2 | 10490 | } |
a0b9e27f | 10491 | EOF |
34bed6d9 | 10492 | if { (eval echo configure:10493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10493 | then |
10494 | ac_cv_sizeof_void_p=`cat conftestval` | |
10495 | else | |
10496 | echo "configure: failed program was:" >&5 | |
10497 | cat conftest.$ac_ext >&5 | |
10498 | rm -fr conftest* | |
10499 | ac_cv_sizeof_void_p=0 | |
10500 | fi | |
10501 | rm -fr conftest* | |
10502 | fi | |
8284b0c5 | 10503 | |
247f5006 | 10504 | fi |
a0b9e27f MB |
10505 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
10506 | cat >> confdefs.h <<EOF | |
10507 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
10508 | EOF | |
247f5006 | 10509 | |
247f5006 | 10510 | |
a0b9e27f | 10511 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
34bed6d9 | 10512 | echo "configure:10513: checking size of int" >&5 |
a0b9e27f MB |
10513 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
10514 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10515 | else |
a0b9e27f MB |
10516 | if test "$cross_compiling" = yes; then |
10517 | ac_cv_sizeof_int=4 | |
10518 | else | |
10519 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 10520 | #line 10521 "configure" |
247f5006 | 10521 | #include "confdefs.h" |
a0b9e27f | 10522 | #include <stdio.h> |
a0b9e27f | 10523 | main() |
247f5006 | 10524 | { |
a0b9e27f MB |
10525 | FILE *f=fopen("conftestval", "w"); |
10526 | if (!f) exit(1); | |
10527 | fprintf(f, "%d\n", sizeof(int)); | |
10528 | exit(0); | |
247f5006 | 10529 | } |
a0b9e27f | 10530 | EOF |
34bed6d9 | 10531 | if { (eval echo configure:10532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10532 | then |
10533 | ac_cv_sizeof_int=`cat conftestval` | |
6f72b082 | 10534 | else |
a0b9e27f MB |
10535 | echo "configure: failed program was:" >&5 |
10536 | cat conftest.$ac_ext >&5 | |
10537 | rm -fr conftest* | |
10538 | ac_cv_sizeof_int=0 | |
21d1c967 | 10539 | fi |
a0b9e27f | 10540 | rm -fr conftest* |
698dcdb6 | 10541 | fi |
4f14bcd8 | 10542 | |
21d1c967 | 10543 | fi |
a0b9e27f MB |
10544 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
10545 | cat >> confdefs.h <<EOF | |
10546 | #define SIZEOF_INT $ac_cv_sizeof_int | |
10547 | EOF | |
4f14bcd8 | 10548 | |
5c6fa7d2 | 10549 | |
a0b9e27f | 10550 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
34bed6d9 | 10551 | echo "configure:10552: checking size of long" >&5 |
a0b9e27f MB |
10552 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
10553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 10554 | else |
247f5006 | 10555 | if test "$cross_compiling" = yes; then |
a0b9e27f | 10556 | ac_cv_sizeof_long=4 |
247f5006 | 10557 | else |
a0b9e27f | 10558 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 10559 | #line 10560 "configure" |
247f5006 | 10560 | #include "confdefs.h" |
a0b9e27f | 10561 | #include <stdio.h> |
a0b9e27f | 10562 | main() |
247f5006 | 10563 | { |
a0b9e27f MB |
10564 | FILE *f=fopen("conftestval", "w"); |
10565 | if (!f) exit(1); | |
10566 | fprintf(f, "%d\n", sizeof(long)); | |
10567 | exit(0); | |
247f5006 | 10568 | } |
a0b9e27f | 10569 | EOF |
34bed6d9 | 10570 | if { (eval echo configure:10571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10571 | then |
10572 | ac_cv_sizeof_long=`cat conftestval` | |
247f5006 | 10573 | else |
a0b9e27f MB |
10574 | echo "configure: failed program was:" >&5 |
10575 | cat conftest.$ac_ext >&5 | |
10576 | rm -fr conftest* | |
10577 | ac_cv_sizeof_long=0 | |
247f5006 | 10578 | fi |
a0b9e27f | 10579 | rm -fr conftest* |
247f5006 | 10580 | fi |
247f5006 | 10581 | |
5c6fa7d2 | 10582 | fi |
a0b9e27f MB |
10583 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
10584 | cat >> confdefs.h <<EOF | |
10585 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
10586 | EOF | |
247f5006 | 10587 | |
a0b9e27f MB |
10588 | |
10589 | ||
10590 | case "${host}" in | |
10591 | arm-*-linux* ) | |
10592 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
34bed6d9 | 10593 | echo "configure:10594: checking size of long long" >&5 |
a0b9e27f MB |
10594 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10595 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10596 | else | |
10597 | if test "$cross_compiling" = yes; then | |
10598 | ac_cv_sizeof_long_long=8 | |
10599 | else | |
10600 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 10601 | #line 10602 "configure" |
247f5006 | 10602 | #include "confdefs.h" |
a0b9e27f | 10603 | #include <stdio.h> |
a0b9e27f | 10604 | main() |
247f5006 | 10605 | { |
a0b9e27f MB |
10606 | FILE *f=fopen("conftestval", "w"); |
10607 | if (!f) exit(1); | |
10608 | fprintf(f, "%d\n", sizeof(long long)); | |
10609 | exit(0); | |
247f5006 | 10610 | } |
a0b9e27f | 10611 | EOF |
34bed6d9 | 10612 | if { (eval echo configure:10613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10613 | then |
10614 | ac_cv_sizeof_long_long=`cat conftestval` | |
7b4a847f | 10615 | else |
a0b9e27f MB |
10616 | echo "configure: failed program was:" >&5 |
10617 | cat conftest.$ac_ext >&5 | |
10618 | rm -fr conftest* | |
10619 | ac_cv_sizeof_long_long=0 | |
5c6fa7d2 | 10620 | fi |
a0b9e27f | 10621 | rm -fr conftest* |
5c6fa7d2 | 10622 | fi |
8284b0c5 | 10623 | |
a0b9e27f MB |
10624 | fi |
10625 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10626 | cat >> confdefs.h <<EOF | |
10627 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10628 | EOF | |
10629 | ||
10630 | ||
10631 | ;; | |
4f57cf11 | 10632 | *-hp-hpux* ) |
a0b9e27f | 10633 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
34bed6d9 | 10634 | echo "configure:10635: checking size of long long" >&5 |
a0b9e27f MB |
10635 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 MB |
10637 | else |
10638 | if test "$cross_compiling" = yes; then | |
a0b9e27f | 10639 | ac_cv_sizeof_long_long=0 |
8284b0c5 | 10640 | else |
a0b9e27f | 10641 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 10642 | #line 10643 "configure" |
8284b0c5 MB |
10643 | #include "confdefs.h" |
10644 | #include <stdio.h> | |
a0b9e27f | 10645 | main() |
8284b0c5 | 10646 | { |
a0b9e27f MB |
10647 | FILE *f=fopen("conftestval", "w"); |
10648 | if (!f) exit(1); | |
10649 | fprintf(f, "%d\n", sizeof(long long)); | |
10650 | exit(0); | |
8284b0c5 | 10651 | } |
a0b9e27f | 10652 | EOF |
34bed6d9 | 10653 | if { (eval echo configure:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
10654 | then |
10655 | ac_cv_sizeof_long_long=`cat conftestval` | |
5c6fa7d2 | 10656 | else |
a0b9e27f MB |
10657 | echo "configure: failed program was:" >&5 |
10658 | cat conftest.$ac_ext >&5 | |
10659 | rm -fr conftest* | |
5c6fa7d2 | 10660 | ac_cv_sizeof_long_long=0 |
52127426 | 10661 | fi |
a0b9e27f MB |
10662 | rm -fr conftest* |
10663 | fi | |
10664 | ||
4f57cf11 GD |
10665 | fi |
10666 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | |
10667 | cat >> confdefs.h <<EOF | |
10668 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
10669 | EOF | |
10670 | ||
10671 | ||
10672 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
10673 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
10674 | fi | |
10675 | ;; | |
10676 | * ) | |
10677 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | |
34bed6d9 | 10678 | echo "configure:10679: checking size of long long" >&5 |
4f57cf11 GD |
10679 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
10680 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10681 | else | |
10682 | if test "$cross_compiling" = yes; then | |
10683 | ac_cv_sizeof_long_long=0 | |
10684 | else | |
10685 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 10686 | #line 10687 "configure" |
4f57cf11 GD |
10687 | #include "confdefs.h" |
10688 | #include <stdio.h> | |
10689 | main() | |
10690 | { | |
10691 | FILE *f=fopen("conftestval", "w"); | |
10692 | if (!f) exit(1); | |
10693 | fprintf(f, "%d\n", sizeof(long long)); | |
10694 | exit(0); | |
10695 | } | |
10696 | EOF | |
34bed6d9 | 10697 | if { (eval echo configure:10698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
4f57cf11 GD |
10698 | then |
10699 | ac_cv_sizeof_long_long=`cat conftestval` | |
10700 | else | |
10701 | echo "configure: failed program was:" >&5 | |
10702 | cat conftest.$ac_ext >&5 | |
10703 | rm -fr conftest* | |
10704 | ac_cv_sizeof_long_long=0 | |
10705 | fi | |
10706 | rm -fr conftest* | |
10707 | fi | |
10708 | ||
7b4a847f | 10709 | fi |
a0b9e27f MB |
10710 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
10711 | cat >> confdefs.h <<EOF | |
21d1c967 | 10712 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
a0b9e27f | 10713 | EOF |
9e691f46 | 10714 | |
8284b0c5 | 10715 | |
21d1c967 GD |
10716 | esac |
10717 | ||
a0b9e27f | 10718 | echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6 |
34bed6d9 | 10719 | echo "configure:10720: checking size of wchar_t" >&5 |
a0b9e27f MB |
10720 | if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then |
10721 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 10722 | else |
a0b9e27f | 10723 | |
21d1c967 | 10724 | if test "$cross_compiling" = yes; then |
2b5f62a0 VZ |
10725 | |
10726 | case "${host}" in | |
10727 | *-pc-msdosdjgpp ) | |
10728 | wx_cv_sizeof_wchar_t=0 | |
10729 | ;; | |
10730 | * ) | |
10731 | wx_cv_sizeof_wchar_t=4 | |
10732 | ;; | |
10733 | esac | |
10734 | ||
a0b9e27f | 10735 | |
6f72b082 | 10736 | else |
a0b9e27f | 10737 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 10738 | #line 10739 "configure" |
6f72b082 | 10739 | #include "confdefs.h" |
21d1c967 | 10740 | |
2b5f62a0 VZ |
10741 | /* DJGPP only has fake wchar_t: */ |
10742 | #ifdef __DJGPP__ | |
10743 | # error "fake wchar_t" | |
10744 | #endif | |
21d1c967 GD |
10745 | #ifdef HAVE_WCHAR_H |
10746 | # ifdef __CYGWIN__ | |
10747 | # include <stddef.h> | |
10748 | # endif | |
10749 | # include <wchar.h> | |
10750 | #endif | |
10751 | #ifdef HAVE_STDLIB_H | |
10752 | # include <stdlib.h> | |
10753 | #endif | |
10754 | #include <stdio.h> | |
10755 | int main() | |
10756 | { | |
10757 | FILE *f=fopen("conftestval", "w"); | |
10758 | if (!f) exit(1); | |
10759 | fprintf(f, "%i", sizeof(wchar_t)); | |
10760 | exit(0); | |
10761 | } | |
a0b9e27f MB |
10762 | |
10763 | EOF | |
34bed6d9 | 10764 | if { (eval echo configure:10765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10765 | then |
21d1c967 | 10766 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 10767 | else |
a0b9e27f MB |
10768 | echo "configure: failed program was:" >&5 |
10769 | cat conftest.$ac_ext >&5 | |
10770 | rm -fr conftest* | |
10771 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 10772 | fi |
a0b9e27f | 10773 | rm -fr conftest* |
6f72b082 | 10774 | fi |
6f72b082 | 10775 | |
a0b9e27f | 10776 | |
3f345b47 VZ |
10777 | fi |
10778 | ||
a0b9e27f MB |
10779 | echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6 |
10780 | ||
10781 | cat >> confdefs.h <<EOF | |
21d1c967 | 10782 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
a0b9e27f | 10783 | EOF |
90dd450c | 10784 | |
8284b0c5 | 10785 | |
21d1c967 GD |
10786 | # Check whether --enable-largefile or --disable-largefile was given. |
10787 | if test "${enable_largefile+set}" = set; then | |
10788 | enableval="$enable_largefile" | |
a0b9e27f MB |
10789 | : |
10790 | fi | |
3f345b47 | 10791 | |
21d1c967 GD |
10792 | if test "$enable_largefile" != no; then |
10793 | wx_largefile=no | |
a0b9e27f MB |
10794 | |
10795 | echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6 | |
34bed6d9 | 10796 | echo "configure:10797: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
a0b9e27f MB |
10797 | if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then |
10798 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10799 | else | |
10800 | ||
10801 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 10802 | #line 10803 "configure" |
90dd450c | 10803 | #include "confdefs.h" |
21d1c967 GD |
10804 | #define _FILE_OFFSET_BITS 64 |
10805 | #include <sys/types.h> | |
a0b9e27f | 10806 | int main() { |
21d1c967 GD |
10807 | typedef struct { |
10808 | unsigned int field: sizeof(off_t) == 8; | |
10809 | } wxlf; | |
10810 | ||
a0b9e27f MB |
10811 | ; return 0; } |
10812 | EOF | |
34bed6d9 | 10813 | if { (eval echo configure:10814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10814 | rm -rf conftest* |
21d1c967 | 10815 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 10816 | else |
a0b9e27f MB |
10817 | echo "configure: failed program was:" >&5 |
10818 | cat conftest.$ac_ext >&5 | |
10819 | rm -rf conftest* | |
10820 | ac_cv_sys_file_offset_bits=no | |
5c6fa7d2 | 10821 | fi |
a0b9e27f MB |
10822 | rm -f conftest* |
10823 | ||
10824 | ||
247f5006 | 10825 | fi |
a0b9e27f MB |
10826 | |
10827 | echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6 | |
21d1c967 GD |
10828 | |
10829 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
10830 | wx_largefile=yes | |
a0b9e27f | 10831 | cat >> confdefs.h <<EOF |
21d1c967 | 10832 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
a0b9e27f | 10833 | EOF |
21d1c967 GD |
10834 | |
10835 | fi | |
10836 | ||
10837 | if test "x$wx_largefile" != "xyes"; then | |
a0b9e27f MB |
10838 | |
10839 | echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6 | |
34bed6d9 | 10840 | echo "configure:10841: checking for _LARGE_FILES value needed for large files" >&5 |
a0b9e27f MB |
10841 | if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then |
10842 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10843 | else | |
10844 | ||
10845 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 10846 | #line 10847 "configure" |
f6bcfd97 | 10847 | #include "confdefs.h" |
21d1c967 GD |
10848 | #define _LARGE_FILES 1 |
10849 | #include <sys/types.h> | |
a0b9e27f | 10850 | int main() { |
21d1c967 GD |
10851 | typedef struct { |
10852 | unsigned int field: sizeof(off_t) == 8; | |
10853 | } wxlf; | |
10854 | ||
a0b9e27f MB |
10855 | ; return 0; } |
10856 | EOF | |
34bed6d9 | 10857 | if { (eval echo configure:10858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10858 | rm -rf conftest* |
21d1c967 | 10859 | ac_cv_sys_large_files=1 |
f6bcfd97 | 10860 | else |
a0b9e27f MB |
10861 | echo "configure: failed program was:" >&5 |
10862 | cat conftest.$ac_ext >&5 | |
10863 | rm -rf conftest* | |
10864 | ac_cv_sys_large_files=no | |
5c6fa7d2 | 10865 | fi |
a0b9e27f MB |
10866 | rm -f conftest* |
10867 | ||
10868 | ||
247f5006 | 10869 | fi |
a0b9e27f MB |
10870 | |
10871 | echo "$ac_t""$ac_cv_sys_large_files" 1>&6 | |
3f345b47 | 10872 | |
21d1c967 GD |
10873 | if test "$ac_cv_sys_large_files" != no; then |
10874 | wx_largefile=yes | |
a0b9e27f | 10875 | cat >> confdefs.h <<EOF |
21d1c967 | 10876 | #define _LARGE_FILES $ac_cv_sys_large_files |
a0b9e27f | 10877 | EOF |
90dd450c | 10878 | |
90dd450c VZ |
10879 | fi |
10880 | ||
90dd450c | 10881 | fi |
90dd450c | 10882 | |
a0b9e27f | 10883 | echo $ac_n "checking if large file support is available""... $ac_c" 1>&6 |
34bed6d9 | 10884 | echo "configure:10885: checking if large file support is available" >&5 |
21d1c967 | 10885 | if test "x$wx_largefile" = "xyes"; then |
a0b9e27f | 10886 | cat >> confdefs.h <<\EOF |
21d1c967 | 10887 | #define HAVE_LARGEFILE_SUPPORT 1 |
a0b9e27f | 10888 | EOF |
90dd450c | 10889 | |
90dd450c | 10890 | fi |
a0b9e27f | 10891 | echo "$ac_t""$wx_largefile" 1>&6 |
21d1c967 | 10892 | fi |
90dd450c | 10893 | |
8284b0c5 | 10894 | |
f02444d0 | 10895 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
10896 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
10897 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 10898 | else |
e26c13cf | 10899 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 10900 | fi |
e26c13cf | 10901 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
10902 | fi |
10903 | ||
a0b9e27f | 10904 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
34bed6d9 | 10905 | echo "configure:10906: checking whether byte ordering is bigendian" >&5 |
a0b9e27f MB |
10906 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
10907 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 10908 | else |
21d1c967 GD |
10909 | ac_cv_c_bigendian=unknown |
10910 | # See if sys/param.h defines the BYTE_ORDER macro. | |
a0b9e27f | 10911 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 10912 | #line 10913 "configure" |
90dd450c | 10913 | #include "confdefs.h" |
21d1c967 GD |
10914 | #include <sys/types.h> |
10915 | #include <sys/param.h> | |
a0b9e27f | 10916 | int main() { |
21d1c967 GD |
10917 | |
10918 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
10919 | bogus endian macros | |
10920 | #endif | |
a0b9e27f MB |
10921 | ; return 0; } |
10922 | EOF | |
34bed6d9 | 10923 | if { (eval echo configure:10924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10924 | rm -rf conftest* |
21d1c967 | 10925 | # It does; now see whether it defined to BIG_ENDIAN or not. |
a0b9e27f | 10926 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 10927 | #line 10928 "configure" |
90dd450c | 10928 | #include "confdefs.h" |
21d1c967 GD |
10929 | #include <sys/types.h> |
10930 | #include <sys/param.h> | |
a0b9e27f | 10931 | int main() { |
21d1c967 GD |
10932 | |
10933 | #if BYTE_ORDER != BIG_ENDIAN | |
10934 | not big endian | |
10935 | #endif | |
a0b9e27f MB |
10936 | ; return 0; } |
10937 | EOF | |
34bed6d9 | 10938 | if { (eval echo configure:10939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 10939 | rm -rf conftest* |
21d1c967 | 10940 | ac_cv_c_bigendian=yes |
3f345b47 | 10941 | else |
a0b9e27f MB |
10942 | echo "configure: failed program was:" >&5 |
10943 | cat conftest.$ac_ext >&5 | |
10944 | rm -rf conftest* | |
10945 | ac_cv_c_bigendian=no | |
3f345b47 | 10946 | fi |
a0b9e27f | 10947 | rm -f conftest* |
3f345b47 | 10948 | else |
a0b9e27f MB |
10949 | echo "configure: failed program was:" >&5 |
10950 | cat conftest.$ac_ext >&5 | |
3f345b47 | 10951 | fi |
a0b9e27f | 10952 | rm -f conftest* |
21d1c967 GD |
10953 | if test $ac_cv_c_bigendian = unknown; then |
10954 | if test "$cross_compiling" = yes; then | |
10955 | ac_cv_c_bigendian=unknown | |
10f2d63a | 10956 | else |
a0b9e27f | 10957 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 10958 | #line 10959 "configure" |
90dd450c | 10959 | #include "confdefs.h" |
21d1c967 GD |
10960 | main () { |
10961 | /* Are we little or big endian? From Harbison&Steele. */ | |
10962 | union | |
10963 | { | |
10964 | long l; | |
10965 | char c[sizeof (long)]; | |
10966 | } u; | |
10967 | u.l = 1; | |
10968 | exit (u.c[sizeof (long) - 1] == 1); | |
10969 | } | |
a0b9e27f | 10970 | EOF |
34bed6d9 | 10971 | if { (eval echo configure:10972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 10972 | then |
21d1c967 | 10973 | ac_cv_c_bigendian=no |
3f345b47 | 10974 | else |
a0b9e27f MB |
10975 | echo "configure: failed program was:" >&5 |
10976 | cat conftest.$ac_ext >&5 | |
10977 | rm -fr conftest* | |
10978 | ac_cv_c_bigendian=yes | |
247f5006 | 10979 | fi |
a0b9e27f | 10980 | rm -fr conftest* |
247f5006 | 10981 | fi |
a0b9e27f | 10982 | |
3f345b47 | 10983 | fi |
8168de4c | 10984 | fi |
a0b9e27f MB |
10985 | |
10986 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | |
247f5006 | 10987 | if test $ac_cv_c_bigendian = unknown; then |
a0b9e27f | 10988 | 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 |
247f5006 VZ |
10989 | fi |
10990 | if test $ac_cv_c_bigendian = yes; then | |
a0b9e27f | 10991 | cat >> confdefs.h <<\EOF |
247f5006 | 10992 | #define WORDS_BIGENDIAN 1 |
a0b9e27f | 10993 | EOF |
247f5006 VZ |
10994 | |
10995 | fi | |
10996 | ||
10997 | ||
a0b9e27f | 10998 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
34bed6d9 | 10999 | echo "configure:11000: checking how to run the C++ preprocessor" >&5 |
247f5006 | 11000 | if test -z "$CXXCPP"; then |
a0b9e27f MB |
11001 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
11002 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11003 | else |
a0b9e27f MB |
11004 | ac_ext=C |
11005 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11006 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11007 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11008 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11009 | cross_compiling=$ac_cv_prog_cxx_cross | |
11010 | CXXCPP="${CXX-g++} -E" | |
11011 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11012 | #line 11013 "configure" |
5c6fa7d2 | 11013 | #include "confdefs.h" |
a0b9e27f MB |
11014 | #include <stdlib.h> |
11015 | EOF | |
11016 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 11017 | { (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11018 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11019 | if test -z "$ac_err"; then | |
21d1c967 | 11020 | : |
698dcdb6 | 11021 | else |
a0b9e27f MB |
11022 | echo "$ac_err" >&5 |
11023 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11024 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11025 | rm -rf conftest* |
11026 | CXXCPP=/lib/cpp | |
247f5006 | 11027 | fi |
a0b9e27f MB |
11028 | rm -f conftest* |
11029 | ac_cv_prog_CXXCPP="$CXXCPP" | |
11030 | ac_ext=C | |
11031 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
11032 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11033 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
11034 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11035 | cross_compiling=$ac_cv_prog_cxx_cross | |
328a083c | 11036 | fi |
90dd450c | 11037 | fi |
a0b9e27f MB |
11038 | CXXCPP="$ac_cv_prog_CXXCPP" |
11039 | echo "$ac_t""$CXXCPP" 1>&6 | |
1e6feb95 | 11040 | |
1725144d | 11041 | |
21d1c967 | 11042 | if test "$cross_compiling" = "yes"; then |
a0b9e27f | 11043 | cat >> confdefs.h <<\EOF |
21d1c967 | 11044 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11045 | EOF |
ab9b9eab | 11046 | |
21d1c967 | 11047 | else |
a0b9e27f MB |
11048 | |
11049 | ac_ext=C | |
11050 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11051 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11052 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11053 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11054 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 11055 | |
247f5006 | 11056 | |
a0b9e27f | 11057 | for ac_hdr in iostream |
21d1c967 | 11058 | do |
a0b9e27f MB |
11059 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11060 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
34bed6d9 | 11061 | echo "configure:11062: checking for $ac_hdr" >&5 |
a0b9e27f MB |
11062 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11063 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11064 | else | |
11065 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11066 | #line 11067 "configure" |
ab9b9eab | 11067 | #include "confdefs.h" |
a0b9e27f MB |
11068 | #include <$ac_hdr> |
11069 | EOF | |
11070 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 11071 | { (eval echo configure:11072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11072 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11073 | if test -z "$ac_err"; then | |
11074 | rm -rf conftest* | |
11075 | eval "ac_cv_header_$ac_safe=yes" | |
11076 | else | |
11077 | echo "$ac_err" >&5 | |
11078 | echo "configure: failed program was:" >&5 | |
ab9b9eab | 11079 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11080 | rm -rf conftest* |
11081 | eval "ac_cv_header_$ac_safe=no" | |
ab9b9eab | 11082 | fi |
a0b9e27f | 11083 | rm -f conftest* |
90dd450c | 11084 | fi |
a0b9e27f MB |
11085 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11086 | echo "$ac_t""yes" 1>&6 | |
11087 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
11088 | cat >> confdefs.h <<EOF | |
11089 | #define $ac_tr_hdr 1 | |
11090 | EOF | |
11091 | ||
11092 | else | |
11093 | echo "$ac_t""no" 1>&6 | |
90dd450c | 11094 | fi |
21d1c967 | 11095 | done |
10f2d63a | 11096 | |
8284b0c5 | 11097 | |
21d1c967 GD |
11098 | if test "$ac_cv_header_iostream" = "yes" ; then |
11099 | : | |
11100 | else | |
a0b9e27f | 11101 | cat >> confdefs.h <<\EOF |
21d1c967 | 11102 | #define wxUSE_IOSTREAMH 1 |
a0b9e27f | 11103 | EOF |
788deba1 | 11104 | |
90dd450c | 11105 | fi |
ab9b9eab | 11106 | |
21d1c967 | 11107 | ac_ext=c |
a0b9e27f | 11108 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11109 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11110 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11111 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11112 | cross_compiling=$ac_cv_prog_cc_cross | |
ab9b9eab | 11113 | |
21d1c967 | 11114 | fi |
ab9b9eab | 11115 | |
52127426 | 11116 | |
8284b0c5 | 11117 | |
a0b9e27f | 11118 | echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6 |
34bed6d9 | 11119 | echo "configure:11120: checking if C++ compiler supports bool" >&5 |
a0b9e27f MB |
11120 | if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then |
11121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11122 | else |
a0b9e27f MB |
11123 | |
11124 | ||
11125 | ac_ext=C | |
11126 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11127 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11128 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11129 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11130 | cross_compiling=$ac_cv_prog_cxx_cross | |
21d1c967 | 11131 | |
8284b0c5 | 11132 | |
a0b9e27f | 11133 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 11134 | #line 11135 "configure" |
ab9b9eab | 11135 | #include "confdefs.h" |
21d1c967 | 11136 | |
a0b9e27f MB |
11137 | |
11138 | int main() { | |
21d1c967 GD |
11139 | |
11140 | bool b = true; | |
11141 | ||
11142 | return 0; | |
a0b9e27f MB |
11143 | |
11144 | ; return 0; } | |
11145 | EOF | |
34bed6d9 | 11146 | if { (eval echo configure:11147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11147 | rm -rf conftest* |
11148 | ||
21d1c967 | 11149 | wx_cv_cpp_bool=yes |
a0b9e27f | 11150 | |
698dcdb6 | 11151 | else |
a0b9e27f MB |
11152 | echo "configure: failed program was:" >&5 |
11153 | cat conftest.$ac_ext >&5 | |
11154 | rm -rf conftest* | |
11155 | ||
21d1c967 | 11156 | wx_cv_cpp_bool=no |
a0b9e27f MB |
11157 | |
11158 | ||
698dcdb6 | 11159 | fi |
a0b9e27f | 11160 | rm -f conftest* |
21d1c967 GD |
11161 | |
11162 | ac_ext=c | |
a0b9e27f | 11163 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
21d1c967 | 11164 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11165 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11166 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11167 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11168 | |
a0b9e27f | 11169 | |
247f5006 | 11170 | fi |
a0b9e27f MB |
11171 | |
11172 | echo "$ac_t""$wx_cv_cpp_bool" 1>&6 | |
21d1c967 GD |
11173 | |
11174 | if test "$wx_cv_cpp_bool" = "yes"; then | |
a0b9e27f | 11175 | cat >> confdefs.h <<\EOF |
21d1c967 | 11176 | #define HAVE_BOOL 1 |
a0b9e27f | 11177 | EOF |
ab9b9eab | 11178 | |
21d1c967 GD |
11179 | fi |
11180 | ||
52127426 | 11181 | |
8284b0c5 | 11182 | |
a0b9e27f | 11183 | echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6 |
34bed6d9 | 11184 | echo "configure:11185: checking if C++ compiler supports the explicit keyword" >&5 |
a0b9e27f MB |
11185 | if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then |
11186 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 11187 | else |
a0b9e27f MB |
11188 | |
11189 | ||
11190 | ac_ext=C | |
11191 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 11192 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
11193 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11194 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11195 | cross_compiling=$ac_cv_prog_cxx_cross | |
986ecc86 | 11196 | |
8284b0c5 | 11197 | |
a0b9e27f | 11198 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 11199 | #line 11200 "configure" |
986ecc86 VZ |
11200 | #include "confdefs.h" |
11201 | ||
11202 | class Foo { public: explicit Foo(int) {} }; | |
a0b9e27f MB |
11203 | |
11204 | int main() { | |
986ecc86 VZ |
11205 | |
11206 | return 0; | |
a0b9e27f MB |
11207 | |
11208 | ; return 0; } | |
11209 | EOF | |
34bed6d9 | 11210 | if { (eval echo configure:11211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11211 | rm -rf conftest* |
11212 | ||
11213 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11214 | #line 11215 "configure" |
986ecc86 VZ |
11215 | #include "confdefs.h" |
11216 | ||
11217 | class Foo { public: explicit Foo(int) {} }; | |
11218 | static void TakeFoo(const Foo& foo) { } | |
a0b9e27f MB |
11219 | |
11220 | int main() { | |
986ecc86 VZ |
11221 | |
11222 | TakeFoo(17); | |
11223 | return 0; | |
a0b9e27f MB |
11224 | |
11225 | ; return 0; } | |
11226 | EOF | |
34bed6d9 | 11227 | if { (eval echo configure:11228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11228 | rm -rf conftest* |
986ecc86 VZ |
11229 | wx_cv_explicit=no |
11230 | else | |
a0b9e27f MB |
11231 | echo "configure: failed program was:" >&5 |
11232 | cat conftest.$ac_ext >&5 | |
11233 | rm -rf conftest* | |
11234 | wx_cv_explicit=yes | |
11235 | ||
986ecc86 | 11236 | fi |
a0b9e27f MB |
11237 | rm -f conftest* |
11238 | ||
986ecc86 | 11239 | else |
a0b9e27f MB |
11240 | echo "configure: failed program was:" >&5 |
11241 | cat conftest.$ac_ext >&5 | |
11242 | rm -rf conftest* | |
11243 | wx_cv_explicit=no | |
11244 | ||
986ecc86 | 11245 | fi |
a0b9e27f | 11246 | rm -f conftest* |
986ecc86 VZ |
11247 | |
11248 | ac_ext=c | |
a0b9e27f | 11249 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
986ecc86 | 11250 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
11251 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
11252 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
11253 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 11254 | |
a0b9e27f | 11255 | |
247f5006 | 11256 | fi |
a0b9e27f MB |
11257 | |
11258 | echo "$ac_t""$wx_cv_explicit" 1>&6 | |
986ecc86 VZ |
11259 | |
11260 | if test "$wx_cv_explicit" = "yes"; then | |
a0b9e27f | 11261 | cat >> confdefs.h <<\EOF |
986ecc86 | 11262 | #define HAVE_EXPLICIT 1 |
a0b9e27f | 11263 | EOF |
986ecc86 VZ |
11264 | |
11265 | fi | |
11266 | ||
8284b0c5 MB |
11267 | |
11268 | ||
21d1c967 GD |
11269 | SEARCH_INCLUDE="\ |
11270 | /usr/local/include \ | |
11271 | \ | |
11272 | /usr/Motif-1.2/include \ | |
11273 | /usr/Motif-2.1/include \ | |
11274 | \ | |
11275 | /usr/include/Motif1.2 \ | |
11276 | /opt/xpm/include/X11 \ | |
11277 | /opt/GBxpm/include/ \ | |
11278 | /opt/GBxpm/X11/include/ \ | |
11279 | \ | |
11280 | /usr/Motif1.2/include \ | |
11281 | /usr/dt/include \ | |
11282 | /usr/openwin/include \ | |
11283 | \ | |
11284 | /usr/include/Xm \ | |
11285 | \ | |
11286 | /usr/X11R6/include \ | |
11287 | /usr/X11R6.4/include \ | |
11288 | /usr/X11R5/include \ | |
11289 | /usr/X11R4/include \ | |
11290 | \ | |
11291 | /usr/include/X11R6 \ | |
11292 | /usr/include/X11R5 \ | |
11293 | /usr/include/X11R4 \ | |
11294 | \ | |
11295 | /usr/local/X11R6/include \ | |
11296 | /usr/local/X11R5/include \ | |
11297 | /usr/local/X11R4/include \ | |
11298 | \ | |
11299 | /usr/local/include/X11R6 \ | |
11300 | /usr/local/include/X11R5 \ | |
11301 | /usr/local/include/X11R4 \ | |
11302 | \ | |
11303 | /usr/X11/include \ | |
11304 | /usr/include/X11 \ | |
11305 | /usr/local/X11/include \ | |
11306 | /usr/local/include/X11 \ | |
11307 | \ | |
11308 | /usr/X386/include \ | |
11309 | /usr/x386/include \ | |
11310 | /usr/XFree86/include/X11 \ | |
11311 | \ | |
11312 | X:/XFree86/include \ | |
11313 | X:/XFree86/include/X11 \ | |
11314 | \ | |
11315 | /usr/include/gtk \ | |
11316 | /usr/local/include/gtk \ | |
11317 | /usr/include/glib \ | |
11318 | /usr/local/include/glib \ | |
11319 | \ | |
11320 | /usr/include/qt \ | |
11321 | /usr/local/include/qt \ | |
11322 | \ | |
11323 | /usr/include/windows \ | |
11324 | /usr/include/wine \ | |
11325 | /usr/local/include/wine \ | |
11326 | \ | |
11327 | /usr/unsupported/include \ | |
11328 | /usr/athena/include \ | |
11329 | /usr/local/x11r5/include \ | |
11330 | /usr/lpp/Xamples/include \ | |
11331 | \ | |
2b5f62a0 | 11332 | /usr/openwin/share/include" |
21d1c967 GD |
11333 | |
11334 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
11335 | ||
8284b0c5 | 11336 | |
a0b9e27f | 11337 | cat > confcache <<\EOF |
21d1c967 GD |
11338 | # This file is a shell script that caches the results of configure |
11339 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
11340 | # scripts and configure runs. It is not useful on other systems. |
11341 | # If it contains results you don't want to keep, you may remove or edit it. | |
21d1c967 | 11342 | # |
a0b9e27f MB |
11343 | # By default, configure uses ./config.cache as the cache file, |
11344 | # creating it if it does not exist already. You can give configure | |
11345 | # the --cache-file=FILE option to use a different cache file; that is | |
11346 | # what configure does when it calls configure scripts in | |
11347 | # subdirectories, so they share the cache. | |
11348 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
11349 | # config.status only pays attention to the cache file if you give it the | |
11350 | # --recheck option to rerun configure. | |
21d1c967 | 11351 | # |
a0b9e27f | 11352 | EOF |
21d1c967 GD |
11353 | # The following way of writing the cache mishandles newlines in values, |
11354 | # but we know of no workaround that is simple, portable, and efficient. | |
11355 | # So, don't put newlines in cache variables' values. | |
11356 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11357 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
11358 | (set) 2>&1 | |
11359 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11360 | *ac_space=\ *) | |
11361 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
11362 | # turns \\\\ into \\, and sed turns \\ into \). | |
11363 | sed -n \ | |
11364 | -e "s/'/'\\\\''/g" \ | |
11365 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
11366 | ;; | |
11367 | *) | |
11368 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11369 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
11370 | ;; | |
11371 | esac >> confcache | |
11372 | if cmp -s $cache_file confcache; then | |
11373 | : | |
11374 | else | |
21d1c967 | 11375 | if test -w $cache_file; then |
a0b9e27f MB |
11376 | echo "updating cache $cache_file" |
11377 | cat confcache > $cache_file | |
21d1c967 GD |
11378 | else |
11379 | echo "not updating unwritable cache $cache_file" | |
11380 | fi | |
ab9b9eab | 11381 | fi |
21d1c967 | 11382 | rm -f confcache |
ab9b9eab | 11383 | |
247f5006 | 11384 | |
a0b9e27f MB |
11385 | if test "$USE_LINUX" = 1; then |
11386 | echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6 | |
34bed6d9 | 11387 | echo "configure:11388: checking for glibc 2.1 or later" >&5 |
a0b9e27f MB |
11388 | if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then |
11389 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11390 | else | |
11391 | ||
11392 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11393 | #line 11394 "configure" |
ab9b9eab | 11394 | #include "confdefs.h" |
21d1c967 | 11395 | #include <features.h> |
a0b9e27f | 11396 | int main() { |
ab9b9eab | 11397 | |
21d1c967 GD |
11398 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
11399 | #error not glibc2.1 | |
11400 | #endif | |
a0b9e27f MB |
11401 | |
11402 | ; return 0; } | |
11403 | EOF | |
34bed6d9 | 11404 | if { (eval echo configure:11405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
11405 | rm -rf conftest* |
11406 | ||
21d1c967 | 11407 | wx_cv_lib_glibc21=yes |
a0b9e27f | 11408 | |
698dcdb6 | 11409 | else |
a0b9e27f MB |
11410 | echo "configure: failed program was:" >&5 |
11411 | cat conftest.$ac_ext >&5 | |
11412 | rm -rf conftest* | |
11413 | ||
21d1c967 | 11414 | wx_cv_lib_glibc21=no |
a0b9e27f MB |
11415 | |
11416 | ||
5c6fa7d2 | 11417 | fi |
a0b9e27f MB |
11418 | rm -f conftest* |
11419 | ||
247f5006 | 11420 | fi |
a0b9e27f MB |
11421 | |
11422 | echo "$ac_t""$wx_cv_lib_glibc21" 1>&6 | |
21d1c967 | 11423 | if test "$wx_cv_lib_glibc21" = "yes"; then |
a0b9e27f | 11424 | cat >> confdefs.h <<\EOF |
21d1c967 | 11425 | #define wxHAVE_GLIBC2 1 |
a0b9e27f | 11426 | EOF |
1e487827 | 11427 | |
90dd450c | 11428 | fi |
ab9b9eab VZ |
11429 | fi |
11430 | ||
5c0a20c3 VZ |
11431 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
11432 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 11433 | cat >> confdefs.h <<\EOF |
5c0a20c3 | 11434 | #define _GNU_SOURCE 1 |
a0b9e27f | 11435 | EOF |
5c0a20c3 VZ |
11436 | |
11437 | fi | |
11438 | fi | |
11439 | ||
8284b0c5 MB |
11440 | |
11441 | ||
21d1c967 GD |
11442 | REGEX_INCLUDE= |
11443 | if test "$wxUSE_REGEX" != "no"; then | |
a0b9e27f | 11444 | cat >> confdefs.h <<\EOF |
21d1c967 | 11445 | #define wxUSE_REGEX 1 |
a0b9e27f | 11446 | EOF |
698dcdb6 | 11447 | |
8284b0c5 | 11448 | |
21d1c967 | 11449 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
a0b9e27f MB |
11450 | ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'` |
11451 | echo $ac_n "checking for regex.h""... $ac_c" 1>&6 | |
34bed6d9 | 11452 | echo "configure:11453: checking for regex.h" >&5 |
a0b9e27f MB |
11453 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11454 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11455 | else | |
11456 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11457 | #line 11458 "configure" |
247f5006 VZ |
11458 | #include "confdefs.h" |
11459 | #include <regex.h> | |
a0b9e27f MB |
11460 | EOF |
11461 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 11462 | { (eval echo configure:11463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11463 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11464 | if test -z "$ac_err"; then | |
11465 | rm -rf conftest* | |
11466 | eval "ac_cv_header_$ac_safe=yes" | |
11467 | else | |
11468 | echo "$ac_err" >&5 | |
11469 | echo "configure: failed program was:" >&5 | |
21d1c967 | 11470 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11471 | rm -rf conftest* |
11472 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 11473 | fi |
a0b9e27f | 11474 | rm -f conftest* |
698dcdb6 | 11475 | fi |
a0b9e27f MB |
11476 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11477 | echo "$ac_t""yes" 1>&6 | |
11478 | for ac_func in regcomp | |
21d1c967 | 11479 | do |
a0b9e27f | 11480 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 11481 | echo "configure:11482: checking for $ac_func" >&5 |
a0b9e27f MB |
11482 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
11483 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 11484 | else |
a0b9e27f | 11485 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 11486 | #line 11487 "configure" |
a0b9e27f MB |
11487 | #include "confdefs.h" |
11488 | /* System header to define __stub macros and hopefully few prototypes, | |
11489 | which can conflict with char $ac_func(); below. */ | |
21d1c967 GD |
11490 | #include <assert.h> |
11491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11492 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11493 | builtin and then its argument prototype would still apply. */ |
11494 | char $ac_func(); | |
11495 | ||
11496 | int main() { | |
11497 | ||
21d1c967 GD |
11498 | /* The GNU C library defines this for functions which it implements |
11499 | to always fail with ENOSYS. Some functions are actually named | |
11500 | something starting with __ and the normal name is an alias. */ | |
11501 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
11502 | choke me | |
11503 | #else | |
a0b9e27f | 11504 | $ac_func(); |
21d1c967 | 11505 | #endif |
90dd450c | 11506 | |
a0b9e27f MB |
11507 | ; return 0; } |
11508 | EOF | |
34bed6d9 | 11509 | if { (eval echo configure:11510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11510 | rm -rf conftest* |
11511 | eval "ac_cv_func_$ac_func=yes" | |
11512 | else | |
11513 | echo "configure: failed program was:" >&5 | |
11514 | cat conftest.$ac_ext >&5 | |
11515 | rm -rf conftest* | |
11516 | eval "ac_cv_func_$ac_func=no" | |
11517 | fi | |
11518 | rm -f conftest* | |
11519 | fi | |
5c6fa7d2 | 11520 | |
a0b9e27f MB |
11521 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
11522 | echo "$ac_t""yes" 1>&6 | |
11523 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
11524 | cat >> confdefs.h <<EOF | |
11525 | #define $ac_tr_func 1 | |
11526 | EOF | |
11527 | ||
11528 | else | |
11529 | echo "$ac_t""no" 1>&6 | |
698dcdb6 | 11530 | fi |
21d1c967 GD |
11531 | done |
11532 | ||
a0b9e27f MB |
11533 | else |
11534 | echo "$ac_t""no" 1>&6 | |
ab9b9eab VZ |
11535 | fi |
11536 | ||
8284b0c5 | 11537 | |
21d1c967 GD |
11538 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
11539 | if test "$wxUSE_REGEX" = "sys" ; then | |
a0b9e27f | 11540 | { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11541 | else |
a0b9e27f | 11542 | echo "configure: warning: system regex library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11543 | wxUSE_REGEX=builtin |
11544 | fi | |
11545 | else | |
11546 | wxUSE_REGEX=sys | |
11547 | fi | |
ab9b9eab | 11548 | fi |
90dd450c | 11549 | |
21d1c967 GD |
11550 | if test "$wxUSE_REGEX" = "builtin" ; then |
11551 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 11552 | fi |
21d1c967 | 11553 | fi |
90dd450c | 11554 | |
8284b0c5 | 11555 | |
21d1c967 GD |
11556 | ZLIB_INCLUDE= |
11557 | ZLIB_LINK= | |
11558 | if test "$wxUSE_ZLIB" != "no" ; then | |
a0b9e27f | 11559 | cat >> confdefs.h <<\EOF |
21d1c967 | 11560 | #define wxUSE_ZLIB 1 |
a0b9e27f | 11561 | EOF |
21d1c967 | 11562 | |
8284b0c5 | 11563 | |
21d1c967 | 11564 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d643b80e | 11565 | echo $ac_n "checking for zlib.h >= 1.1.4""... $ac_c" 1>&6 |
34bed6d9 | 11566 | echo "configure:11567: checking for zlib.h >= 1.1.4" >&5 |
d643b80e VZ |
11567 | if eval "test \"`echo '$''{'ac_cv_header_zlib_h'+set}'`\" = set"; then |
11568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11569 | else | |
11570 | if test "$cross_compiling" = yes; then | |
11571 | ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'` | |
a0b9e27f | 11572 | echo $ac_n "checking for zlib.h""... $ac_c" 1>&6 |
34bed6d9 | 11573 | echo "configure:11574: checking for zlib.h" >&5 |
a0b9e27f MB |
11574 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11575 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11576 | else | |
11577 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11578 | #line 11579 "configure" |
ab9b9eab | 11579 | #include "confdefs.h" |
21d1c967 | 11580 | #include <zlib.h> |
a0b9e27f MB |
11581 | EOF |
11582 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 11583 | { (eval echo configure:11584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11584 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11585 | if test -z "$ac_err"; then | |
11586 | rm -rf conftest* | |
11587 | eval "ac_cv_header_$ac_safe=yes" | |
11588 | else | |
11589 | echo "$ac_err" >&5 | |
11590 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 11591 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11592 | rm -rf conftest* |
11593 | eval "ac_cv_header_$ac_safe=no" | |
698dcdb6 | 11594 | fi |
a0b9e27f | 11595 | rm -f conftest* |
ab9b9eab | 11596 | fi |
a0b9e27f MB |
11597 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11598 | echo "$ac_t""yes" 1>&6 | |
d643b80e VZ |
11599 | : |
11600 | else | |
11601 | echo "$ac_t""no" 1>&6 | |
11602 | fi | |
11603 | ||
11604 | ||
11605 | else | |
11606 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11607 | #line 11608 "configure" |
d643b80e VZ |
11608 | #include "confdefs.h" |
11609 | ||
11610 | #include <zlib.h> | |
11611 | #include <stdio.h> | |
11612 | ||
11613 | ||
11614 | int main() | |
11615 | { | |
11616 | FILE *f=fopen("conftestval", "w"); | |
11617 | if (!f) exit(1); | |
11618 | fprintf(f, "%s", | |
11619 | ZLIB_VERSION[0] == '1' && | |
11620 | (ZLIB_VERSION[2] > '1' || | |
11621 | (ZLIB_VERSION[2] == '1' && | |
11622 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
11623 | exit(0); | |
11624 | } | |
11625 | ||
11626 | ||
11627 | EOF | |
34bed6d9 | 11628 | if { (eval echo configure:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
d643b80e VZ |
11629 | then |
11630 | ac_cv_header_zlib_h=`cat conftestval` | |
11631 | else | |
11632 | echo "configure: failed program was:" >&5 | |
11633 | cat conftest.$ac_ext >&5 | |
11634 | rm -fr conftest* | |
11635 | ac_cv_header_zlib_h=no | |
11636 | fi | |
11637 | rm -fr conftest* | |
11638 | fi | |
11639 | ||
11640 | ||
11641 | fi | |
11642 | ||
11643 | echo "$ac_t""$ac_cv_header_zlib_h" 1>&6 | |
11644 | ||
11645 | if test "$ac_cv_header_zlib_h" = "yes"; then | |
11646 | echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6 | |
34bed6d9 | 11647 | echo "configure:11648: checking for deflate in -lz" >&5 |
a0b9e27f MB |
11648 | ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'` |
11649 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11650 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11651 | else |
a0b9e27f | 11652 | ac_save_LIBS="$LIBS" |
21d1c967 | 11653 | LIBS="-lz $LIBS" |
a0b9e27f | 11654 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 11655 | #line 11656 "configure" |
ab9b9eab | 11656 | #include "confdefs.h" |
21d1c967 GD |
11657 | /* Override any gcc2 internal prototype to avoid an error. */ |
11658 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11659 | builtin and then its argument prototype would still apply. */ |
11660 | char deflate(); | |
11661 | ||
11662 | int main() { | |
11663 | deflate() | |
11664 | ; return 0; } | |
11665 | EOF | |
34bed6d9 | 11666 | if { (eval echo configure:11667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11667 | rm -rf conftest* |
11668 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11669 | else | |
11670 | echo "configure: failed program was:" >&5 | |
11671 | cat conftest.$ac_ext >&5 | |
11672 | rm -rf conftest* | |
11673 | eval "ac_cv_lib_$ac_lib_var=no" | |
90dd450c | 11674 | fi |
a0b9e27f MB |
11675 | rm -f conftest* |
11676 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 11677 | |
698dcdb6 | 11678 | fi |
a0b9e27f MB |
11679 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11680 | echo "$ac_t""yes" 1>&6 | |
11681 | ZLIB_LINK=" -lz" | |
11682 | else | |
11683 | echo "$ac_t""no" 1>&6 | |
11684 | fi | |
698dcdb6 | 11685 | |
d643b80e | 11686 | fi |
247f5006 | 11687 | |
21d1c967 GD |
11688 | if test "x$ZLIB_LINK" = "x" ; then |
11689 | if test "$wxUSE_ZLIB" = "sys" ; then | |
d643b80e | 11690 | { echo "configure: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11691 | else |
d643b80e | 11692 | echo "configure: warning: zlib library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11693 | wxUSE_ZLIB=builtin |
11694 | fi | |
11695 | else | |
11696 | wxUSE_ZLIB=sys | |
11697 | fi | |
11698 | fi | |
11699 | ||
11700 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
11701 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
11702 | fi | |
ab9b9eab VZ |
11703 | fi |
11704 | ||
8284b0c5 | 11705 | |
21d1c967 GD |
11706 | PNG_INCLUDE= |
11707 | PNG_LINK= | |
11708 | if test "$wxUSE_LIBPNG" != "no" ; then | |
a0b9e27f | 11709 | cat >> confdefs.h <<\EOF |
21d1c967 | 11710 | #define wxUSE_LIBPNG 1 |
a0b9e27f | 11711 | EOF |
90dd450c | 11712 | |
8284b0c5 | 11713 | |
21d1c967 | 11714 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
a0b9e27f | 11715 | echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11716 | wxUSE_LIBPNG=sys |
11717 | fi | |
90dd450c | 11718 | |
21d1c967 | 11719 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
a0b9e27f | 11720 | echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2 |
21d1c967 GD |
11721 | wxUSE_LIBPNG=builtin |
11722 | fi | |
11723 | ||
11724 | if test "$wxUSE_MGL" != 1 ; then | |
11725 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
5d3f766d | 11726 | echo $ac_n "checking for png.h > 0.90""... $ac_c" 1>&6 |
34bed6d9 | 11727 | echo "configure:11728: checking for png.h > 0.90" >&5 |
5d3f766d VZ |
11728 | if eval "test \"`echo '$''{'ac_cv_header_png_h'+set}'`\" = set"; then |
11729 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11730 | else | |
11731 | if test "$cross_compiling" = yes; then | |
11732 | ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | |
a0b9e27f | 11733 | echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
34bed6d9 | 11734 | echo "configure:11735: checking for png.h" >&5 |
a0b9e27f MB |
11735 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11736 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11737 | else | |
11738 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11739 | #line 11740 "configure" |
21d1c967 GD |
11740 | #include "confdefs.h" |
11741 | #include <png.h> | |
a0b9e27f MB |
11742 | EOF |
11743 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 11744 | { (eval echo configure:11745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
11745 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
11746 | if test -z "$ac_err"; then | |
11747 | rm -rf conftest* | |
11748 | eval "ac_cv_header_$ac_safe=yes" | |
11749 | else | |
11750 | echo "$ac_err" >&5 | |
11751 | echo "configure: failed program was:" >&5 | |
90dd450c | 11752 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
11753 | rm -rf conftest* |
11754 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 11755 | fi |
a0b9e27f | 11756 | rm -f conftest* |
90dd450c | 11757 | fi |
a0b9e27f MB |
11758 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
11759 | echo "$ac_t""yes" 1>&6 | |
5d3f766d VZ |
11760 | : |
11761 | else | |
11762 | echo "$ac_t""no" 1>&6 | |
11763 | fi | |
11764 | ||
11765 | ||
11766 | else | |
11767 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11768 | #line 11769 "configure" |
5d3f766d VZ |
11769 | #include "confdefs.h" |
11770 | ||
11771 | #include <png.h> | |
11772 | #include <stdio.h> | |
11773 | ||
11774 | int main() | |
11775 | { | |
11776 | FILE *f=fopen("conftestval", "w"); | |
11777 | if (!f) exit(1); | |
11778 | fprintf(f, "%s", | |
11779 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
11780 | exit(0); | |
11781 | } | |
11782 | ||
11783 | EOF | |
34bed6d9 | 11784 | if { (eval echo configure:11785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5d3f766d VZ |
11785 | then |
11786 | ac_cv_header_png_h=`cat conftestval` | |
11787 | else | |
11788 | echo "configure: failed program was:" >&5 | |
11789 | cat conftest.$ac_ext >&5 | |
11790 | rm -fr conftest* | |
11791 | ac_cv_header_png_h=no | |
11792 | fi | |
11793 | rm -fr conftest* | |
11794 | fi | |
11795 | ||
11796 | ||
11797 | fi | |
11798 | ||
11799 | echo "$ac_t""$ac_cv_header_png_h" 1>&6 | |
11800 | ||
11801 | if test "$ac_cv_header_png_h" = "yes"; then | |
11802 | echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6 | |
34bed6d9 | 11803 | echo "configure:11804: checking for png_check_sig in -lpng" >&5 |
a0b9e27f MB |
11804 | ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'` |
11805 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11806 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11807 | else |
a0b9e27f | 11808 | ac_save_LIBS="$LIBS" |
21d1c967 | 11809 | LIBS="-lpng -lz -lm $LIBS" |
a0b9e27f | 11810 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 11811 | #line 11812 "configure" |
90dd450c | 11812 | #include "confdefs.h" |
21d1c967 GD |
11813 | /* Override any gcc2 internal prototype to avoid an error. */ |
11814 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11815 | builtin and then its argument prototype would still apply. */ |
11816 | char png_check_sig(); | |
90dd450c | 11817 | |
a0b9e27f MB |
11818 | int main() { |
11819 | png_check_sig() | |
11820 | ; return 0; } | |
11821 | EOF | |
34bed6d9 | 11822 | if { (eval echo configure:11823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11823 | rm -rf conftest* |
11824 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11825 | else | |
11826 | echo "configure: failed program was:" >&5 | |
11827 | cat conftest.$ac_ext >&5 | |
11828 | rm -rf conftest* | |
11829 | eval "ac_cv_lib_$ac_lib_var=no" | |
11830 | fi | |
11831 | rm -f conftest* | |
11832 | LIBS="$ac_save_LIBS" | |
247f5006 | 11833 | |
90dd450c | 11834 | fi |
a0b9e27f MB |
11835 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
11836 | echo "$ac_t""yes" 1>&6 | |
11837 | PNG_LINK=" -lpng" | |
11838 | else | |
11839 | echo "$ac_t""no" 1>&6 | |
11840 | fi | |
90dd450c | 11841 | |
5d3f766d | 11842 | fi |
247f5006 | 11843 | |
21d1c967 GD |
11844 | if test "x$PNG_LINK" = "x" ; then |
11845 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
a0b9e27f | 11846 | { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11847 | else |
5d3f766d | 11848 | echo "configure: warning: png library not found or too old, will use built-in instead" 1>&2 |
21d1c967 GD |
11849 | wxUSE_LIBPNG=builtin |
11850 | fi | |
11851 | else | |
2b5f62a0 | 11852 | wxUSE_LIBPNG=sys |
21d1c967 GD |
11853 | fi |
11854 | fi | |
11855 | fi | |
90dd450c | 11856 | |
21d1c967 GD |
11857 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
11858 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
11859 | fi | |
90dd450c | 11860 | |
21d1c967 | 11861 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
11862 | fi |
11863 | ||
8284b0c5 | 11864 | |
21d1c967 GD |
11865 | JPEG_INCLUDE= |
11866 | JPEG_LINK= | |
11867 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
a0b9e27f | 11868 | cat >> confdefs.h <<\EOF |
21d1c967 | 11869 | #define wxUSE_LIBJPEG 1 |
a0b9e27f | 11870 | EOF |
90dd450c | 11871 | |
8284b0c5 | 11872 | |
21d1c967 | 11873 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
a0b9e27f | 11874 | echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2 |
21d1c967 GD |
11875 | wxUSE_LIBJPEG=sys |
11876 | fi | |
90dd450c | 11877 | |
21d1c967 GD |
11878 | if test "$wxUSE_MGL" != 1 ; then |
11879 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
a0b9e27f | 11880 | echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6 |
34bed6d9 | 11881 | echo "configure:11882: checking for jpeglib.h" >&5 |
a0b9e27f MB |
11882 | if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then |
11883 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11884 | else |
a0b9e27f | 11885 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 11886 | #line 11887 "configure" |
21d1c967 | 11887 | #include "confdefs.h" |
90dd450c | 11888 | |
21d1c967 GD |
11889 | #undef HAVE_STDLIB_H |
11890 | #include <stdio.h> | |
11891 | #include <jpeglib.h> | |
a0b9e27f MB |
11892 | |
11893 | int main() { | |
90dd450c | 11894 | |
a0b9e27f MB |
11895 | |
11896 | ; return 0; } | |
11897 | EOF | |
34bed6d9 | 11898 | if { (eval echo configure:11899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 11899 | rm -rf conftest* |
21d1c967 | 11900 | ac_cv_header_jpeglib_h=yes |
90dd450c | 11901 | else |
a0b9e27f MB |
11902 | echo "configure: failed program was:" >&5 |
11903 | cat conftest.$ac_ext >&5 | |
11904 | rm -rf conftest* | |
11905 | ac_cv_header_jpeglib_h=no | |
11906 | ||
90dd450c | 11907 | fi |
a0b9e27f MB |
11908 | rm -f conftest* |
11909 | ||
90dd450c VZ |
11910 | fi |
11911 | ||
a0b9e27f | 11912 | echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6 |
90dd450c | 11913 | |
21d1c967 | 11914 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
a0b9e27f | 11915 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
34bed6d9 | 11916 | echo "configure:11917: checking for jpeg_read_header in -ljpeg" >&5 |
a0b9e27f MB |
11917 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
11918 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
11919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 11920 | else |
a0b9e27f | 11921 | ac_save_LIBS="$LIBS" |
21d1c967 | 11922 | LIBS="-ljpeg $LIBS" |
a0b9e27f | 11923 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 11924 | #line 11925 "configure" |
21d1c967 GD |
11925 | #include "confdefs.h" |
11926 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11927 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
11928 | builtin and then its argument prototype would still apply. */ |
11929 | char jpeg_read_header(); | |
11930 | ||
11931 | int main() { | |
11932 | jpeg_read_header() | |
11933 | ; return 0; } | |
11934 | EOF | |
34bed6d9 | 11935 | if { (eval echo configure:11936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
11936 | rm -rf conftest* |
11937 | eval "ac_cv_lib_$ac_lib_var=yes" | |
11938 | else | |
11939 | echo "configure: failed program was:" >&5 | |
11940 | cat conftest.$ac_ext >&5 | |
11941 | rm -rf conftest* | |
11942 | eval "ac_cv_lib_$ac_lib_var=no" | |
11943 | fi | |
11944 | rm -f conftest* | |
11945 | LIBS="$ac_save_LIBS" | |
11946 | ||
11947 | fi | |
11948 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
11949 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 11950 | JPEG_LINK=" -ljpeg" |
a0b9e27f MB |
11951 | else |
11952 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
11953 | fi |
11954 | ||
21d1c967 | 11955 | fi |
90dd450c | 11956 | |
21d1c967 GD |
11957 | if test "x$JPEG_LINK" = "x" ; then |
11958 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
a0b9e27f | 11959 | { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; } |
21d1c967 | 11960 | else |
a0b9e27f | 11961 | echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2 |
21d1c967 GD |
11962 | wxUSE_LIBJPEG=builtin |
11963 | fi | |
11964 | else | |
11965 | wxUSE_LIBJPEG=sys | |
11966 | fi | |
11967 | fi | |
11968 | fi | |
90dd450c | 11969 | |
21d1c967 GD |
11970 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
11971 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
11972 | fi | |
11973 | fi | |
90dd450c | 11974 | |
8284b0c5 | 11975 | |
21d1c967 GD |
11976 | TIFF_INCLUDE= |
11977 | TIFF_LINK= | |
2b5f62a0 | 11978 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 11979 | if test "$wxUSE_LIBTIFF" != "no" ; then |
a0b9e27f | 11980 | cat >> confdefs.h <<\EOF |
21d1c967 | 11981 | #define wxUSE_LIBTIFF 1 |
a0b9e27f | 11982 | EOF |
21d1c967 | 11983 | |
8284b0c5 | 11984 | |
21d1c967 | 11985 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
11986 | if test "$wxUSE_LIBJPEG" = "sys"; then |
11987 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
11988 | fi | |
11989 | if test "$wxUSE_ZLIB" = "sys"; then | |
11990 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
11991 | fi | |
a0b9e27f MB |
11992 | ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
11993 | echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | |
34bed6d9 | 11994 | echo "configure:11995: checking for tiffio.h" >&5 |
a0b9e27f MB |
11995 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
11996 | echo $ac_n "(cached) $ac_c" 1>&6 | |
11997 | else | |
11998 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 11999 | #line 12000 "configure" |
247f5006 VZ |
12000 | #include "confdefs.h" |
12001 | #include <tiffio.h> | |
a0b9e27f MB |
12002 | EOF |
12003 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 12004 | { (eval echo configure:12005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12005 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12006 | if test -z "$ac_err"; then | |
12007 | rm -rf conftest* | |
12008 | eval "ac_cv_header_$ac_safe=yes" | |
12009 | else | |
12010 | echo "$ac_err" >&5 | |
12011 | echo "configure: failed program was:" >&5 | |
21d1c967 | 12012 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12013 | rm -rf conftest* |
12014 | eval "ac_cv_header_$ac_safe=no" | |
21d1c967 | 12015 | fi |
a0b9e27f | 12016 | rm -f conftest* |
21d1c967 | 12017 | fi |
a0b9e27f MB |
12018 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12019 | echo "$ac_t""yes" 1>&6 | |
12020 | echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6 | |
34bed6d9 | 12021 | echo "configure:12022: checking for TIFFError in -ltiff" >&5 |
a0b9e27f MB |
12022 | ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'` |
12023 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
12024 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 12025 | else |
a0b9e27f | 12026 | ac_save_LIBS="$LIBS" |
2b5f62a0 | 12027 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
a0b9e27f | 12028 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 12029 | #line 12030 "configure" |
ab9b9eab VZ |
12030 | #include "confdefs.h" |
12031 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12032 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
12033 | builtin and then its argument prototype would still apply. */ |
12034 | char TIFFError(); | |
ab9b9eab | 12035 | |
a0b9e27f MB |
12036 | int main() { |
12037 | TIFFError() | |
12038 | ; return 0; } | |
12039 | EOF | |
34bed6d9 | 12040 | if { (eval echo configure:12041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
12041 | rm -rf conftest* |
12042 | eval "ac_cv_lib_$ac_lib_var=yes" | |
12043 | else | |
12044 | echo "configure: failed program was:" >&5 | |
12045 | cat conftest.$ac_ext >&5 | |
12046 | rm -rf conftest* | |
12047 | eval "ac_cv_lib_$ac_lib_var=no" | |
12048 | fi | |
12049 | rm -f conftest* | |
12050 | LIBS="$ac_save_LIBS" | |
247f5006 | 12051 | |
21d1c967 | 12052 | fi |
a0b9e27f MB |
12053 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
12054 | echo "$ac_t""yes" 1>&6 | |
12055 | TIFF_LINK=" -ltiff" | |
12056 | else | |
12057 | echo "$ac_t""no" 1>&6 | |
12058 | fi | |
cd6d6d5b | 12059 | |
a0b9e27f MB |
12060 | |
12061 | else | |
12062 | echo "$ac_t""no" 1>&6 | |
12063 | fi | |
8284b0c5 | 12064 | |
247f5006 | 12065 | |
21d1c967 GD |
12066 | if test "x$TIFF_LINK" = "x" ; then |
12067 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
a0b9e27f | 12068 | { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; } |
90dd450c | 12069 | else |
a0b9e27f | 12070 | echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2 |
21d1c967 | 12071 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 12072 | fi |
d8356fa3 | 12073 | else |
21d1c967 | 12074 | wxUSE_LIBTIFF=sys |
d8356fa3 | 12075 | fi |
21d1c967 | 12076 | fi |
d8356fa3 | 12077 | |
21d1c967 GD |
12078 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
12079 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 12080 | fi |
21d1c967 | 12081 | fi |
10f2d63a | 12082 | |
8284b0c5 | 12083 | |
21d1c967 | 12084 | AFMINSTALL= |
2b5f62a0 | 12085 | WIN32INSTALL= |
90dd450c | 12086 | |
21d1c967 GD |
12087 | TOOLKIT= |
12088 | TOOLKIT_INCLUDE= | |
12089 | WIDGET_SET= | |
12090 | ||
12091 | if test "$USE_WIN32" = 1 ; then | |
a0b9e27f | 12092 | for ac_hdr in w32api.h |
21d1c967 | 12093 | do |
a0b9e27f MB |
12094 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
12095 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
34bed6d9 | 12096 | echo "configure:12097: checking for $ac_hdr" >&5 |
a0b9e27f MB |
12097 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12098 | echo $ac_n "(cached) $ac_c" 1>&6 | |
12099 | else | |
12100 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 12101 | #line 12102 "configure" |
247f5006 | 12102 | #include "confdefs.h" |
a0b9e27f MB |
12103 | #include <$ac_hdr> |
12104 | EOF | |
12105 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 12106 | { (eval echo configure:12107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12107 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12108 | if test -z "$ac_err"; then | |
12109 | rm -rf conftest* | |
12110 | eval "ac_cv_header_$ac_safe=yes" | |
12111 | else | |
12112 | echo "$ac_err" >&5 | |
12113 | echo "configure: failed program was:" >&5 | |
f79bd02d | 12114 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12115 | rm -rf conftest* |
12116 | eval "ac_cv_header_$ac_safe=no" | |
f79bd02d | 12117 | fi |
a0b9e27f | 12118 | rm -f conftest* |
21d1c967 | 12119 | fi |
a0b9e27f MB |
12120 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12121 | echo "$ac_t""yes" 1>&6 | |
12122 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
12123 | cat >> confdefs.h <<EOF | |
12124 | #define $ac_tr_hdr 1 | |
12125 | EOF | |
12126 | ||
12127 | else | |
12128 | echo "$ac_t""no" 1>&6 | |
21d1c967 GD |
12129 | fi |
12130 | done | |
f79bd02d | 12131 | |
a0b9e27f MB |
12132 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` |
12133 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
34bed6d9 | 12134 | echo "configure:12135: checking for windows.h" >&5 |
a0b9e27f MB |
12135 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
12136 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12137 | else |
a0b9e27f | 12138 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 12139 | #line 12140 "configure" |
247f5006 VZ |
12140 | #include "confdefs.h" |
12141 | #include <windows.h> | |
a0b9e27f MB |
12142 | EOF |
12143 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 12144 | { (eval echo configure:12145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
12145 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
12146 | if test -z "$ac_err"; then | |
12147 | rm -rf conftest* | |
12148 | eval "ac_cv_header_$ac_safe=yes" | |
12149 | else | |
12150 | echo "$ac_err" >&5 | |
12151 | echo "configure: failed program was:" >&5 | |
90dd450c | 12152 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
12153 | rm -rf conftest* |
12154 | eval "ac_cv_header_$ac_safe=no" | |
90dd450c | 12155 | fi |
a0b9e27f | 12156 | rm -f conftest* |
90dd450c | 12157 | fi |
a0b9e27f MB |
12158 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
12159 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 12160 | : |
90dd450c | 12161 | else |
a0b9e27f | 12162 | echo "$ac_t""no" 1>&6 |
21d1c967 | 12163 | |
a0b9e27f MB |
12164 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
12165 | ||
5c6fa7d2 | 12166 | fi |
7b4a847f | 12167 | |
5c6fa7d2 | 12168 | |
a0b9e27f | 12169 | echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6 |
34bed6d9 | 12170 | echo "configure:12171: checking if w32api has good enough MSIE support" >&5 |
a0b9e27f MB |
12171 | if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then |
12172 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 12173 | else |
a0b9e27f MB |
12174 | |
12175 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 12176 | #line 12177 "configure" |
f79bd02d | 12177 | #include "confdefs.h" |
21d1c967 | 12178 | #include <w32api.h> |
a0b9e27f | 12179 | int main() { |
f79bd02d | 12180 | |
21d1c967 GD |
12181 | #define wxCHECK_W32API_VERSION( major, minor ) \ |
12182 | ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \ | |
12183 | && ( ( __W32API_MAJOR_VERSION > (major) ) \ | |
12184 | || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor)))) | |
12185 | ||
12186 | #if !wxCHECK_W32API_VERSION(1,1) | |
12187 | #error You need w32api 1.1 or newer | |
12188 | #endif | |
a0b9e27f MB |
12189 | |
12190 | ; return 0; } | |
12191 | EOF | |
34bed6d9 | 12192 | if { (eval echo configure:12193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
12193 | rm -rf conftest* |
12194 | ||
21d1c967 | 12195 | wx_cv_w32api_win32_ie=yes |
a0b9e27f | 12196 | |
f79bd02d | 12197 | else |
a0b9e27f MB |
12198 | echo "configure: failed program was:" >&5 |
12199 | cat conftest.$ac_ext >&5 | |
12200 | rm -rf conftest* | |
12201 | ||
21d1c967 | 12202 | wx_cv_w32api_win32_ie=no |
a0b9e27f | 12203 | |
5c6fa7d2 | 12204 | fi |
a0b9e27f MB |
12205 | rm -f conftest* |
12206 | ||
247f5006 | 12207 | fi |
a0b9e27f MB |
12208 | |
12209 | echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6 | |
21d1c967 GD |
12210 | if test "$wx_cv_w32api_win32_ie" = "yes" ; then |
12211 | CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400" | |
12212 | fi | |
f79bd02d | 12213 | |
21d1c967 GD |
12214 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32" |
12215 | ||
12216 | case "${host}" in | |
12217 | *-*-cygwin* ) | |
12218 | LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32" | |
12219 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
f79bd02d | 12220 | esac |
f79bd02d | 12221 | |
21d1c967 GD |
12222 | if test "$wxUSE_ODBC" = "yes" ; then |
12223 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
12224 | fi | |
f79bd02d | 12225 | |
21d1c967 GD |
12226 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
12227 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
12228 | |
12229 | WIN32INSTALL=win32install | |
f79bd02d | 12230 | fi |
f79bd02d | 12231 | |
b2fee376 | 12232 | if test "$USE_DARWIN" = 1; then |
50bcbd3d | 12233 | if test "$wxUSE_PRECOMP" = "yes"; then |
b2fee376 GD |
12234 | CPPFLAGS="$CPPFLAGS -cpp-precomp" |
12235 | else | |
12236 | CPPFLAGS="$CPPFLAGS -no-cpp-precomp" | |
12237 | fi | |
12238 | fi | |
12239 | ||
21d1c967 GD |
12240 | if test "$wxUSE_GUI" = "yes"; then |
12241 | USE_GUI=1 | |
f79bd02d | 12242 | |
21d1c967 | 12243 | GUI_TK_LIBRARY= |
f79bd02d | 12244 | |
21d1c967 GD |
12245 | WXGTK12= |
12246 | WXGTK127= | |
12247 | WXGTK20= | |
f79bd02d | 12248 | |
21d1c967 GD |
12249 | if test "$wxUSE_MSW" = 1 ; then |
12250 | TOOLKIT=MSW | |
12251 | GUIDIST=MSW_DIST | |
f79bd02d | 12252 | |
21d1c967 GD |
12253 | case "${host}" in |
12254 | *-*-mingw32* ) | |
12255 | LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
12256 | esac | |
f79bd02d JS |
12257 | fi |
12258 | ||
21d1c967 | 12259 | if test "$wxUSE_GTK" = 1; then |
a0b9e27f | 12260 | echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6 |
34bed6d9 | 12261 | echo "configure:12262: checking for GTK+ version" >&5 |
21d1c967 GD |
12262 | |
12263 | gtk_version_cached=1 | |
a0b9e27f MB |
12264 | if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then |
12265 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f79bd02d | 12266 | else |
a0b9e27f | 12267 | |
21d1c967 | 12268 | gtk_version_cached=0 |
a0b9e27f | 12269 | echo "$ac_t""" 1>&6 |
f79bd02d | 12270 | |
21d1c967 GD |
12271 | GTK_MODULES= |
12272 | if test "$wxUSE_THREADS" = "yes"; then | |
12273 | GTK_MODULES=gthread | |
12274 | fi | |
f79bd02d | 12275 | |
2b5f62a0 | 12276 | wx_cv_lib_gtk= |
21d1c967 GD |
12277 | if test "x$wxUSE_GTK2" = "xyes"; then |
12278 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
12279 | if test "${enable_gtktest+set}" = set; then | |
12280 | enableval="$enable_gtktest" | |
a0b9e27f | 12281 | : |
f79bd02d | 12282 | else |
21d1c967 | 12283 | enable_gtktest=yes |
a0b9e27f MB |
12284 | fi |
12285 | ||
f79bd02d | 12286 | |
21d1c967 GD |
12287 | pkg_config_args=gtk+-2.0 |
12288 | for module in . $GTK_MODULES | |
12289 | do | |
12290 | case "$module" in | |
a0b9e27f | 12291 | gthread) |
21d1c967 GD |
12292 | pkg_config_args="$pkg_config_args gthread-2.0" |
12293 | ;; | |
12294 | esac | |
12295 | done | |
12296 | ||
12297 | no_gtk="" | |
f79bd02d | 12298 | |
21d1c967 GD |
12299 | # Extract the first word of "pkg-config", so it can be a program name with args. |
12300 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 12301 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
34bed6d9 | 12302 | echo "configure:12303: checking for $ac_word" >&5 |
a0b9e27f MB |
12303 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
12304 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12305 | else |
a0b9e27f MB |
12306 | case "$PKG_CONFIG" in |
12307 | /*) | |
21d1c967 GD |
12308 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
12309 | ;; | |
a0b9e27f MB |
12310 | ?:/*) |
12311 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
12312 | ;; | |
21d1c967 | 12313 | *) |
a0b9e27f MB |
12314 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12315 | ac_dummy="$PATH" | |
12316 | for ac_dir in $ac_dummy; do | |
12317 | test -z "$ac_dir" && ac_dir=. | |
12318 | if test -f $ac_dir/$ac_word; then | |
12319 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
12320 | break | |
12321 | fi | |
12322 | done | |
12323 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12324 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
12325 | ;; | |
12326 | esac | |
f79bd02d | 12327 | fi |
a0b9e27f | 12328 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
21d1c967 | 12329 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 12330 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f79bd02d | 12331 | else |
a0b9e27f | 12332 | echo "$ac_t""no" 1>&6 |
f79bd02d JS |
12333 | fi |
12334 | ||
8284b0c5 | 12335 | |
21d1c967 GD |
12336 | if test x$PKG_CONFIG != xno ; then |
12337 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
12338 | : | |
12339 | else | |
12340 | echo *** pkg-config too old; version 0.7 or better required. | |
12341 | no_gtk=yes | |
12342 | PKG_CONFIG=no | |
12343 | fi | |
12344 | else | |
12345 | no_gtk=yes | |
12346 | fi | |
f79bd02d | 12347 | |
21d1c967 | 12348 | min_gtk_version=2.0.0 |
a0b9e27f | 12349 | echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6 |
34bed6d9 | 12350 | echo "configure:12351: checking for GTK+ - version >= $min_gtk_version" >&5 |
f79bd02d | 12351 | |
21d1c967 GD |
12352 | if test x$PKG_CONFIG != xno ; then |
12353 | ## don't try to run the test against uninstalled libtool libs | |
12354 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
12355 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
12356 | enable_gtktest=no | |
12357 | fi | |
f79bd02d | 12358 | |
21d1c967 GD |
12359 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
12360 | : | |
12361 | else | |
12362 | no_gtk=yes | |
12363 | fi | |
12364 | fi | |
f79bd02d | 12365 | |
21d1c967 GD |
12366 | if test x"$no_gtk" = x ; then |
12367 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
12368 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
12369 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12370 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12371 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12372 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12373 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
12374 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12375 | if test "x$enable_gtktest" = "xyes" ; then | |
12376 | ac_save_CFLAGS="$CFLAGS" | |
12377 | ac_save_LIBS="$LIBS" | |
12378 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12379 | LIBS="$GTK_LIBS $LIBS" | |
12380 | rm -f conf.gtktest | |
12381 | if test "$cross_compiling" = yes; then | |
12382 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12383 | else |
a0b9e27f | 12384 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 12385 | #line 12386 "configure" |
f79bd02d | 12386 | #include "confdefs.h" |
f79bd02d | 12387 | |
21d1c967 GD |
12388 | #include <gtk/gtk.h> |
12389 | #include <stdio.h> | |
12390 | #include <stdlib.h> | |
f79bd02d | 12391 | |
a0b9e27f | 12392 | int |
21d1c967 GD |
12393 | main () |
12394 | { | |
12395 | int major, minor, micro; | |
12396 | char *tmp_version; | |
f79bd02d | 12397 | |
21d1c967 | 12398 | system ("touch conf.gtktest"); |
f79bd02d | 12399 | |
21d1c967 GD |
12400 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
12401 | tmp_version = g_strdup("$min_gtk_version"); | |
12402 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12403 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12404 | exit(1); | |
12405 | } | |
f79bd02d | 12406 | |
21d1c967 GD |
12407 | if ((gtk_major_version != $gtk_config_major_version) || |
12408 | (gtk_minor_version != $gtk_config_minor_version) || | |
12409 | (gtk_micro_version != $gtk_config_micro_version)) | |
12410 | { | |
a0b9e27f | 12411 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12412 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12413 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12414 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
12415 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12416 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12417 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12418 | printf("*** required on your system.\n"); | |
12419 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
12420 | printf("*** to point to the correct configuration files\n"); | |
a0b9e27f | 12421 | } |
21d1c967 GD |
12422 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
12423 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12424 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12425 | { | |
12426 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12427 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12428 | printf("*** library (version %d.%d.%d)\n", | |
12429 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12430 | } | |
12431 | else | |
12432 | { | |
12433 | if ((gtk_major_version > major) || | |
12434 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12435 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12436 | { | |
12437 | return 0; | |
12438 | } | |
12439 | else | |
12440 | { | |
12441 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12442 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12443 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12444 | major, minor, micro); | |
12445 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12446 | printf("***\n"); | |
12447 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12448 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
12449 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12450 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
12451 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
12452 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12453 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12454 | } | |
12455 | } | |
12456 | return 1; | |
12457 | } | |
f79bd02d | 12458 | |
a0b9e27f | 12459 | EOF |
34bed6d9 | 12460 | if { (eval echo configure:12461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12461 | then |
21d1c967 | 12462 | : |
f79bd02d | 12463 | else |
a0b9e27f MB |
12464 | echo "configure: failed program was:" >&5 |
12465 | cat conftest.$ac_ext >&5 | |
12466 | rm -fr conftest* | |
12467 | no_gtk=yes | |
f79bd02d | 12468 | fi |
a0b9e27f | 12469 | rm -fr conftest* |
f79bd02d | 12470 | fi |
a0b9e27f | 12471 | |
21d1c967 GD |
12472 | CFLAGS="$ac_save_CFLAGS" |
12473 | LIBS="$ac_save_LIBS" | |
12474 | fi | |
12475 | fi | |
12476 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12477 | echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6 |
12478 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 12479 | else |
a0b9e27f | 12480 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12481 | if test "$PKG_CONFIG" = "no" ; then |
12482 | echo "*** A new enough version of pkg-config was not found." | |
12483 | echo "*** See http://pkgconfig.sourceforge.net" | |
12484 | else | |
12485 | if test -f conf.gtktest ; then | |
12486 | : | |
12487 | else | |
12488 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
12489 | ac_save_CFLAGS="$CFLAGS" |
12490 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
12491 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
12492 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12493 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 12494 | #line 12495 "configure" |
f79bd02d | 12495 | #include "confdefs.h" |
21d1c967 GD |
12496 | |
12497 | #include <gtk/gtk.h> | |
12498 | #include <stdio.h> | |
f79bd02d | 12499 | |
a0b9e27f MB |
12500 | int main() { |
12501 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12502 | ; return 0; } | |
12503 | EOF | |
34bed6d9 | 12504 | if { (eval echo configure:12505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12505 | rm -rf conftest* |
21d1c967 GD |
12506 | echo "*** The test program compiled, but did not run. This usually means" |
12507 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
12508 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
12509 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12510 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12511 | echo "*** is required on your system" | |
12512 | echo "***" | |
12513 | echo "*** If you have an old version installed, it is best to remove it, although" | |
a0b9e27f | 12514 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 12515 | else |
a0b9e27f MB |
12516 | echo "configure: failed program was:" >&5 |
12517 | cat conftest.$ac_ext >&5 | |
12518 | rm -rf conftest* | |
12519 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 12520 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 12521 | fi |
a0b9e27f | 12522 | rm -f conftest* |
21d1c967 GD |
12523 | CFLAGS="$ac_save_CFLAGS" |
12524 | LIBS="$ac_save_LIBS" | |
12525 | fi | |
12526 | fi | |
12527 | GTK_CFLAGS="" | |
12528 | GTK_LIBS="" | |
12529 | : | |
12530 | fi | |
a0b9e27f MB |
12531 | |
12532 | ||
21d1c967 | 12533 | rm -f conf.gtktest |
f79bd02d | 12534 | |
2b5f62a0 | 12535 | else |
a0b9e27f | 12536 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
21d1c967 GD |
12537 | if test "${with_gtk_prefix+set}" = set; then |
12538 | withval="$with_gtk_prefix" | |
12539 | gtk_config_prefix="$withval" | |
12540 | else | |
12541 | gtk_config_prefix="" | |
a0b9e27f | 12542 | fi |
f79bd02d | 12543 | |
21d1c967 GD |
12544 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12545 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12546 | withval="$with_gtk_exec_prefix" | |
12547 | gtk_config_exec_prefix="$withval" | |
12548 | else | |
12549 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12550 | fi |
12551 | ||
21d1c967 GD |
12552 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12553 | if test "${enable_gtktest+set}" = set; then | |
12554 | enableval="$enable_gtktest" | |
a0b9e27f | 12555 | : |
21d1c967 GD |
12556 | else |
12557 | enable_gtktest=yes | |
a0b9e27f MB |
12558 | fi |
12559 | ||
21d1c967 GD |
12560 | |
12561 | for module in . $GTK_MODULES | |
12562 | do | |
12563 | case "$module" in | |
a0b9e27f | 12564 | gthread) |
21d1c967 GD |
12565 | gtk_config_args="$gtk_config_args gthread" |
12566 | ;; | |
12567 | esac | |
12568 | done | |
12569 | ||
12570 | if test x$gtk_config_exec_prefix != x ; then | |
12571 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12572 | if test x${GTK_CONFIG+set} != xset ; then | |
12573 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12574 | fi | |
12575 | fi | |
12576 | if test x$gtk_config_prefix != x ; then | |
12577 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12578 | if test x${GTK_CONFIG+set} != xset ; then | |
12579 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12580 | fi | |
12581 | fi | |
12582 | ||
12583 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12584 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12585 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
34bed6d9 | 12586 | echo "configure:12587: checking for $ac_word" >&5 |
a0b9e27f MB |
12587 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12588 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 12589 | else |
a0b9e27f MB |
12590 | case "$GTK_CONFIG" in |
12591 | /*) | |
21d1c967 GD |
12592 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12593 | ;; | |
a0b9e27f MB |
12594 | ?:/*) |
12595 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12596 | ;; | |
21d1c967 | 12597 | *) |
a0b9e27f MB |
12598 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12599 | ac_dummy="$PATH" | |
12600 | for ac_dir in $ac_dummy; do | |
12601 | test -z "$ac_dir" && ac_dir=. | |
12602 | if test -f $ac_dir/$ac_word; then | |
12603 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12604 | break | |
12605 | fi | |
12606 | done | |
12607 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12608 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12609 | ;; | |
12610 | esac | |
12611 | fi | |
a0b9e27f | 12612 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12613 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12614 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12615 | else |
a0b9e27f | 12616 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12617 | fi |
12618 | ||
12619 | min_gtk_version=1.2.7 | |
a0b9e27f | 12620 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
34bed6d9 | 12621 | echo "configure:12622: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12622 | no_gtk="" |
12623 | if test "$GTK_CONFIG" = "no" ; then | |
12624 | no_gtk=yes | |
12625 | else | |
12626 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12627 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12628 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12629 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12630 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12631 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12632 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12633 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12634 | if test "x$enable_gtktest" = "xyes" ; then | |
12635 | ac_save_CFLAGS="$CFLAGS" | |
12636 | ac_save_LIBS="$LIBS" | |
12637 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12638 | LIBS="$GTK_LIBS $LIBS" | |
12639 | rm -f conf.gtktest | |
12640 | if test "$cross_compiling" = yes; then | |
12641 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 12642 | else |
a0b9e27f | 12643 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 12644 | #line 12645 "configure" |
f79bd02d JS |
12645 | #include "confdefs.h" |
12646 | ||
21d1c967 GD |
12647 | #include <gtk/gtk.h> |
12648 | #include <stdio.h> | |
12649 | #include <stdlib.h> | |
f79bd02d | 12650 | |
a0b9e27f | 12651 | int |
21d1c967 GD |
12652 | main () |
12653 | { | |
12654 | int major, minor, micro; | |
12655 | char *tmp_version; | |
12656 | ||
12657 | system ("touch conf.gtktest"); | |
12658 | ||
12659 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12660 | tmp_version = g_strdup("$min_gtk_version"); | |
12661 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12662 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12663 | exit(1); | |
12664 | } | |
90dd450c | 12665 | |
21d1c967 GD |
12666 | if ((gtk_major_version != $gtk_config_major_version) || |
12667 | (gtk_minor_version != $gtk_config_minor_version) || | |
12668 | (gtk_micro_version != $gtk_config_micro_version)) | |
12669 | { | |
a0b9e27f | 12670 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12671 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12672 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12673 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12674 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12675 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12676 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12677 | printf("*** required on your system.\n"); | |
12678 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12679 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12680 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12681 | } |
21d1c967 GD |
12682 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12683 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12684 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12685 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12686 | { | |
12687 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12688 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12689 | printf("*** library (version %d.%d.%d)\n", | |
12690 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12691 | } | |
12692 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12693 | else | |
12694 | { | |
12695 | if ((gtk_major_version > major) || | |
12696 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12697 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12698 | { | |
12699 | return 0; | |
12700 | } | |
12701 | else | |
12702 | { | |
12703 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12704 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12705 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12706 | major, minor, micro); | |
12707 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12708 | printf("***\n"); | |
12709 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12710 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12711 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12712 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12713 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12714 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12715 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12716 | } | |
12717 | } | |
12718 | return 1; | |
12719 | } | |
12720 | ||
a0b9e27f | 12721 | EOF |
34bed6d9 | 12722 | if { (eval echo configure:12723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12723 | then |
21d1c967 GD |
12724 | : |
12725 | else | |
a0b9e27f MB |
12726 | echo "configure: failed program was:" >&5 |
12727 | cat conftest.$ac_ext >&5 | |
12728 | rm -fr conftest* | |
12729 | no_gtk=yes | |
21d1c967 | 12730 | fi |
a0b9e27f | 12731 | rm -fr conftest* |
21d1c967 | 12732 | fi |
a0b9e27f | 12733 | |
21d1c967 GD |
12734 | CFLAGS="$ac_save_CFLAGS" |
12735 | LIBS="$ac_save_LIBS" | |
12736 | fi | |
12737 | fi | |
12738 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
12739 | echo "$ac_t""yes" 1>&6 |
12740 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 12741 | else |
a0b9e27f | 12742 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12743 | if test "$GTK_CONFIG" = "no" ; then |
12744 | echo "*** The gtk-config script installed by GTK could not be found" | |
12745 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
12746 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
12747 | echo "*** full path to gtk-config." | |
12748 | else | |
12749 | if test -f conf.gtktest ; then | |
12750 | : | |
12751 | else | |
12752 | echo "*** Could not run GTK test program, checking why..." | |
12753 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12754 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 12755 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 12756 | #line 12757 "configure" |
21d1c967 GD |
12757 | #include "confdefs.h" |
12758 | ||
12759 | #include <gtk/gtk.h> | |
12760 | #include <stdio.h> | |
12761 | ||
a0b9e27f MB |
12762 | int main() { |
12763 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
12764 | ; return 0; } | |
12765 | EOF | |
34bed6d9 | 12766 | if { (eval echo configure:12767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 12767 | rm -rf conftest* |
21d1c967 GD |
12768 | echo "*** The test program compiled, but did not run. This usually means" |
12769 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
12770 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
12771 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
12772 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
12773 | echo "*** is required on your system" | |
12774 | echo "***" | |
12775 | echo "*** If you have an old version installed, it is best to remove it, although" | |
12776 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
12777 | echo "***" | |
12778 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
12779 | echo "*** came with the system with the command" | |
12780 | echo "***" | |
a0b9e27f | 12781 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 12782 | else |
a0b9e27f MB |
12783 | echo "configure: failed program was:" >&5 |
12784 | cat conftest.$ac_ext >&5 | |
12785 | rm -rf conftest* | |
12786 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
12787 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
12788 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 12789 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 12790 | fi |
a0b9e27f | 12791 | rm -f conftest* |
21d1c967 GD |
12792 | CFLAGS="$ac_save_CFLAGS" |
12793 | LIBS="$ac_save_LIBS" | |
12794 | fi | |
12795 | fi | |
12796 | GTK_CFLAGS="" | |
12797 | GTK_LIBS="" | |
12798 | : | |
12799 | fi | |
a0b9e27f MB |
12800 | |
12801 | ||
21d1c967 GD |
12802 | rm -f conf.gtktest |
12803 | ||
21d1c967 | 12804 | |
2b5f62a0 VZ |
12805 | if test -z "$wx_cv_lib_gtk"; then |
12806 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
12807 | if test "${with_gtk_prefix+set}" = set; then |
12808 | withval="$with_gtk_prefix" | |
12809 | gtk_config_prefix="$withval" | |
12810 | else | |
12811 | gtk_config_prefix="" | |
a0b9e27f | 12812 | fi |
f79bd02d | 12813 | |
21d1c967 GD |
12814 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
12815 | if test "${with_gtk_exec_prefix+set}" = set; then | |
12816 | withval="$with_gtk_exec_prefix" | |
12817 | gtk_config_exec_prefix="$withval" | |
12818 | else | |
12819 | gtk_config_exec_prefix="" | |
a0b9e27f MB |
12820 | fi |
12821 | ||
21d1c967 GD |
12822 | # Check whether --enable-gtktest or --disable-gtktest was given. |
12823 | if test "${enable_gtktest+set}" = set; then | |
12824 | enableval="$enable_gtktest" | |
a0b9e27f | 12825 | : |
90dd450c | 12826 | else |
21d1c967 | 12827 | enable_gtktest=yes |
a0b9e27f MB |
12828 | fi |
12829 | ||
21d1c967 GD |
12830 | |
12831 | for module in . $GTK_MODULES | |
12832 | do | |
12833 | case "$module" in | |
a0b9e27f | 12834 | gthread) |
21d1c967 GD |
12835 | gtk_config_args="$gtk_config_args gthread" |
12836 | ;; | |
12837 | esac | |
12838 | done | |
12839 | ||
12840 | if test x$gtk_config_exec_prefix != x ; then | |
12841 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
12842 | if test x${GTK_CONFIG+set} != xset ; then | |
12843 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
12844 | fi | |
12845 | fi | |
12846 | if test x$gtk_config_prefix != x ; then | |
12847 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
12848 | if test x${GTK_CONFIG+set} != xset ; then | |
12849 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
12850 | fi | |
12851 | fi | |
12852 | ||
12853 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
12854 | set dummy gtk-config; ac_word=$2 | |
a0b9e27f | 12855 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
34bed6d9 | 12856 | echo "configure:12857: checking for $ac_word" >&5 |
a0b9e27f MB |
12857 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
12858 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 12859 | else |
a0b9e27f MB |
12860 | case "$GTK_CONFIG" in |
12861 | /*) | |
21d1c967 GD |
12862 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
12863 | ;; | |
a0b9e27f MB |
12864 | ?:/*) |
12865 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. | |
12866 | ;; | |
21d1c967 | 12867 | *) |
a0b9e27f MB |
12868 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
12869 | ac_dummy="$PATH" | |
12870 | for ac_dir in $ac_dummy; do | |
12871 | test -z "$ac_dir" && ac_dir=. | |
12872 | if test -f $ac_dir/$ac_word; then | |
12873 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" | |
12874 | break | |
12875 | fi | |
12876 | done | |
12877 | IFS="$ac_save_ifs" | |
21d1c967 GD |
12878 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
12879 | ;; | |
12880 | esac | |
12881 | fi | |
a0b9e27f | 12882 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
21d1c967 | 12883 | if test -n "$GTK_CONFIG"; then |
a0b9e27f | 12884 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
21d1c967 | 12885 | else |
a0b9e27f | 12886 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
12887 | fi |
12888 | ||
12889 | min_gtk_version=1.2.3 | |
a0b9e27f | 12890 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
34bed6d9 | 12891 | echo "configure:12892: checking for GTK - version >= $min_gtk_version" >&5 |
21d1c967 GD |
12892 | no_gtk="" |
12893 | if test "$GTK_CONFIG" = "no" ; then | |
12894 | no_gtk=yes | |
12895 | else | |
12896 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
12897 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
12898 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12899 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
12900 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12901 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
12902 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
12903 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
12904 | if test "x$enable_gtktest" = "xyes" ; then | |
12905 | ac_save_CFLAGS="$CFLAGS" | |
12906 | ac_save_LIBS="$LIBS" | |
12907 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
12908 | LIBS="$GTK_LIBS $LIBS" | |
12909 | rm -f conf.gtktest | |
12910 | if test "$cross_compiling" = yes; then | |
12911 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
12912 | else | |
a0b9e27f | 12913 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 12914 | #line 12915 "configure" |
f79bd02d | 12915 | #include "confdefs.h" |
21d1c967 GD |
12916 | |
12917 | #include <gtk/gtk.h> | |
12918 | #include <stdio.h> | |
12919 | #include <stdlib.h> | |
12920 | ||
a0b9e27f | 12921 | int |
21d1c967 GD |
12922 | main () |
12923 | { | |
12924 | int major, minor, micro; | |
12925 | char *tmp_version; | |
12926 | ||
12927 | system ("touch conf.gtktest"); | |
12928 | ||
12929 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
12930 | tmp_version = g_strdup("$min_gtk_version"); | |
12931 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
12932 | printf("%s, bad version string\n", "$min_gtk_version"); | |
12933 | exit(1); | |
12934 | } | |
12935 | ||
12936 | if ((gtk_major_version != $gtk_config_major_version) || | |
12937 | (gtk_minor_version != $gtk_config_minor_version) || | |
12938 | (gtk_micro_version != $gtk_config_micro_version)) | |
12939 | { | |
a0b9e27f | 12940 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
12941 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
12942 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12943 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
12944 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
12945 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
12946 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
12947 | printf("*** required on your system.\n"); | |
12948 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
12949 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
12950 | printf("*** before re-running configure\n"); | |
a0b9e27f | 12951 | } |
21d1c967 GD |
12952 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
12953 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
12954 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
12955 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
12956 | { | |
12957 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
12958 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
12959 | printf("*** library (version %d.%d.%d)\n", | |
12960 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12961 | } | |
12962 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
12963 | else | |
12964 | { | |
12965 | if ((gtk_major_version > major) || | |
12966 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
12967 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
12968 | { | |
12969 | return 0; | |
12970 | } | |
12971 | else | |
12972 | { | |
12973 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
12974 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
12975 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
12976 | major, minor, micro); | |
12977 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
12978 | printf("***\n"); | |
12979 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
12980 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
12981 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
12982 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
12983 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
12984 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
12985 | printf("*** so that the correct libraries are found at run-time))\n"); | |
12986 | } | |
12987 | } | |
12988 | return 1; | |
12989 | } | |
12990 | ||
a0b9e27f | 12991 | EOF |
34bed6d9 | 12992 | if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f | 12993 | then |
21d1c967 GD |
12994 | : |
12995 | else | |
a0b9e27f MB |
12996 | echo "configure: failed program was:" >&5 |
12997 | cat conftest.$ac_ext >&5 | |
12998 | rm -fr conftest* | |
12999 | no_gtk=yes | |
21d1c967 | 13000 | fi |
a0b9e27f | 13001 | rm -fr conftest* |
21d1c967 | 13002 | fi |
a0b9e27f | 13003 | |
21d1c967 GD |
13004 | CFLAGS="$ac_save_CFLAGS" |
13005 | LIBS="$ac_save_LIBS" | |
13006 | fi | |
13007 | fi | |
13008 | if test "x$no_gtk" = x ; then | |
a0b9e27f MB |
13009 | echo "$ac_t""yes" 1>&6 |
13010 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 13011 | else |
a0b9e27f | 13012 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
13013 | if test "$GTK_CONFIG" = "no" ; then |
13014 | echo "*** The gtk-config script installed by GTK could not be found" | |
13015 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
13016 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
13017 | echo "*** full path to gtk-config." | |
13018 | else | |
13019 | if test -f conf.gtktest ; then | |
13020 | : | |
13021 | else | |
13022 | echo "*** Could not run GTK test program, checking why..." | |
13023 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
13024 | LIBS="$LIBS $GTK_LIBS" | |
a0b9e27f | 13025 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 13026 | #line 13027 "configure" |
21d1c967 GD |
13027 | #include "confdefs.h" |
13028 | ||
13029 | #include <gtk/gtk.h> | |
13030 | #include <stdio.h> | |
f79bd02d | 13031 | |
a0b9e27f MB |
13032 | int main() { |
13033 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
13034 | ; return 0; } | |
13035 | EOF | |
34bed6d9 | 13036 | if { (eval echo configure:13037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13037 | rm -rf conftest* |
21d1c967 GD |
13038 | echo "*** The test program compiled, but did not run. This usually means" |
13039 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
13040 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
13041 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
13042 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
13043 | echo "*** is required on your system" | |
13044 | echo "***" | |
13045 | echo "*** If you have an old version installed, it is best to remove it, although" | |
13046 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
13047 | echo "***" | |
13048 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
13049 | echo "*** came with the system with the command" | |
13050 | echo "***" | |
a0b9e27f | 13051 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 13052 | else |
a0b9e27f MB |
13053 | echo "configure: failed program was:" >&5 |
13054 | cat conftest.$ac_ext >&5 | |
13055 | rm -rf conftest* | |
13056 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
13057 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
13058 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
a0b9e27f | 13059 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 13060 | fi |
a0b9e27f | 13061 | rm -f conftest* |
21d1c967 GD |
13062 | CFLAGS="$ac_save_CFLAGS" |
13063 | LIBS="$ac_save_LIBS" | |
13064 | fi | |
13065 | fi | |
13066 | GTK_CFLAGS="" | |
13067 | GTK_LIBS="" | |
13068 | : | |
13069 | fi | |
a0b9e27f MB |
13070 | |
13071 | ||
21d1c967 | 13072 | rm -f conf.gtktest |
f79bd02d | 13073 | |
2b5f62a0 | 13074 | fi |
21d1c967 GD |
13075 | fi |
13076 | ||
13077 | if test -z "$wx_cv_lib_gtk"; then | |
13078 | wx_cv_lib_gtk=none | |
13079 | else | |
13080 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
13081 | wx_cv_libs_gtk=$GTK_LIBS | |
13082 | fi | |
a0b9e27f MB |
13083 | |
13084 | ||
5c6fa7d2 | 13085 | fi |
52127426 | 13086 | |
8284b0c5 | 13087 | |
21d1c967 | 13088 | if test "$gtk_version_cached" = 1; then |
a0b9e27f | 13089 | echo "$ac_t""$wx_cv_lib_gtk" 1>&6 |
21d1c967 GD |
13090 | fi |
13091 | ||
13092 | case "$wx_cv_lib_gtk" in | |
13093 | 2.0) WXGTK20=1 | |
2b5f62a0 | 13094 | TOOLKIT_VERSION=2 |
21d1c967 GD |
13095 | ;; |
13096 | 1.2.7) WXGTK127=1 | |
13097 | WXGTK12=1 | |
13098 | ;; | |
13099 | 1.2.3) WXGTK12=1 | |
13100 | ;; | |
a0b9e27f | 13101 | *) { echo "configure: error: |
247f5006 VZ |
13102 | Please check that gtk-config is in path, the directory |
13103 | where GTK+ libraries are installed (returned by | |
13104 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
13105 | equivalent variable and GTK+ is version 1.2.3 or above. | |
a0b9e27f | 13106 | " 1>&2; exit 1; } |
21d1c967 GD |
13107 | ;; |
13108 | esac | |
13109 | ||
b13cd66e VZ |
13110 | if test "$WXGTK20" = 1; then |
13111 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 13112 | |
f09359cf VS |
13113 | succeeded=no |
13114 | ||
13115 | if test -z "$PKG_CONFIG"; then | |
13116 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
13117 | set dummy pkg-config; ac_word=$2 | |
a0b9e27f | 13118 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
34bed6d9 | 13119 | echo "configure:13120: checking for $ac_word" >&5 |
a0b9e27f MB |
13120 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
13121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f09359cf | 13122 | else |
a0b9e27f MB |
13123 | case "$PKG_CONFIG" in |
13124 | /*) | |
f09359cf VS |
13125 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
13126 | ;; | |
a0b9e27f MB |
13127 | ?:/*) |
13128 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
13129 | ;; | |
f09359cf | 13130 | *) |
a0b9e27f MB |
13131 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
13132 | ac_dummy="$PATH" | |
13133 | for ac_dir in $ac_dummy; do | |
13134 | test -z "$ac_dir" && ac_dir=. | |
13135 | if test -f $ac_dir/$ac_word; then | |
13136 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
13137 | break | |
13138 | fi | |
13139 | done | |
13140 | IFS="$ac_save_ifs" | |
f09359cf VS |
13141 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
13142 | ;; | |
13143 | esac | |
13144 | fi | |
a0b9e27f | 13145 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
f09359cf | 13146 | if test -n "$PKG_CONFIG"; then |
a0b9e27f | 13147 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
f09359cf | 13148 | else |
a0b9e27f | 13149 | echo "$ac_t""no" 1>&6 |
f09359cf VS |
13150 | fi |
13151 | ||
13152 | fi | |
13153 | ||
13154 | if test "$PKG_CONFIG" = "no" ; then | |
13155 | echo "*** The pkg-config script could not be found. Make sure it is" | |
13156 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
13157 | echo "*** to the full path to pkg-config." | |
13158 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
13159 | else | |
13160 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
13161 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
a0b9e27f | 13162 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 |
34bed6d9 | 13163 | echo "configure:13164: checking for pangoft2" >&5 |
f09359cf VS |
13164 | |
13165 | if $PKG_CONFIG --exists "pangoft2" ; then | |
a0b9e27f | 13166 | echo "$ac_t""yes" 1>&6 |
f09359cf VS |
13167 | succeeded=yes |
13168 | ||
a0b9e27f | 13169 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 |
34bed6d9 | 13170 | echo "configure:13171: checking PANGOFT2_CFLAGS" >&5 |
f09359cf | 13171 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
a0b9e27f | 13172 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 |
f09359cf | 13173 | |
a0b9e27f | 13174 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 |
34bed6d9 | 13175 | echo "configure:13176: checking PANGOFT2_LIBS" >&5 |
f09359cf | 13176 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
a0b9e27f | 13177 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 |
f09359cf VS |
13178 | else |
13179 | PANGOFT2_CFLAGS="" | |
13180 | PANGOFT2_LIBS="" | |
a0b9e27f | 13181 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
13182 | ## do set a variable so people can do so. |
13183 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
a0b9e27f | 13184 | |
f09359cf VS |
13185 | fi |
13186 | ||
a0b9e27f MB |
13187 | |
13188 | ||
f09359cf VS |
13189 | else |
13190 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
13191 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
13192 | fi | |
13193 | fi | |
13194 | ||
13195 | if test $succeeded = yes; then | |
a0b9e27f | 13196 | |
b13cd66e VZ |
13197 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
13198 | LIBS="$LIBS $PANGOFT2_LIBS" | |
a0b9e27f | 13199 | |
f09359cf | 13200 | else |
a0b9e27f MB |
13201 | |
13202 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
b13cd66e | 13203 | wxUSE_PRINTING_ARCHITECTURE="no" |
a0b9e27f MB |
13204 | |
13205 | ||
f09359cf VS |
13206 | fi |
13207 | ||
b13cd66e | 13208 | fi |
2b5f62a0 VZ |
13209 | else |
13210 | if test "$wxUSE_UNICODE" = "yes"; then | |
13211 | echo "configure: warning: Unicode configuration not supported with GTK+ 1.x" 1>&2 | |
13212 | wxUSE_UNICODE=no | |
13213 | fi | |
13214 | fi | |
13215 | ||
13216 | if test "$USE_DARWIN" != 1; then | |
13217 | for ac_func in poll | |
13218 | do | |
13219 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
34bed6d9 | 13220 | echo "configure:13221: checking for $ac_func" >&5 |
2b5f62a0 VZ |
13221 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
13222 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13223 | else | |
13224 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 13225 | #line 13226 "configure" |
2b5f62a0 VZ |
13226 | #include "confdefs.h" |
13227 | /* System header to define __stub macros and hopefully few prototypes, | |
13228 | which can conflict with char $ac_func(); below. */ | |
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 | |
13232 | builtin and then its argument prototype would still apply. */ | |
13233 | char $ac_func(); | |
13234 | ||
13235 | int main() { | |
13236 | ||
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_$ac_func) || defined (__stub___$ac_func) | |
13241 | choke me | |
13242 | #else | |
13243 | $ac_func(); | |
13244 | #endif | |
13245 | ||
13246 | ; return 0; } | |
13247 | EOF | |
34bed6d9 | 13248 | if { (eval echo configure:13249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
13249 | rm -rf conftest* |
13250 | eval "ac_cv_func_$ac_func=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_$ac_func=no" | |
13256 | fi | |
13257 | rm -f conftest* | |
13258 | fi | |
13259 | ||
13260 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
13261 | echo "$ac_t""yes" 1>&6 | |
13262 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
13263 | cat >> confdefs.h <<EOF | |
13264 | #define $ac_tr_func 1 | |
13265 | EOF | |
13266 | ||
13267 | else | |
13268 | echo "$ac_t""no" 1>&6 | |
13269 | fi | |
13270 | done | |
13271 | ||
f09359cf VS |
13272 | fi |
13273 | ||
21d1c967 GD |
13274 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
13275 | GUI_TK_LIBRARY="$wx_cv_libs_gtk" | |
13276 | ||
13277 | AFMINSTALL=afminstall | |
13278 | TOOLKIT=GTK | |
13279 | GUIDIST=GTK_DIST | |
13280 | ||
a0b9e27f | 13281 | echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6 |
34bed6d9 | 13282 | echo "configure:13283: checking for gdk_im_open in -lgdk" >&5 |
a0b9e27f MB |
13283 | ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'` |
13284 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13285 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13286 | else |
a0b9e27f | 13287 | ac_save_LIBS="$LIBS" |
21d1c967 | 13288 | LIBS="-lgdk $LIBS" |
a0b9e27f | 13289 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 13290 | #line 13291 "configure" |
90dd450c | 13291 | #include "confdefs.h" |
5c6fa7d2 | 13292 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 13293 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13294 | builtin and then its argument prototype would still apply. */ |
13295 | char gdk_im_open(); | |
13296 | ||
13297 | int main() { | |
13298 | gdk_im_open() | |
13299 | ; return 0; } | |
13300 | EOF | |
34bed6d9 | 13301 | if { (eval echo configure:13302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13302 | rm -rf conftest* |
13303 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13304 | else | |
13305 | echo "configure: failed program was:" >&5 | |
13306 | cat conftest.$ac_ext >&5 | |
13307 | rm -rf conftest* | |
13308 | eval "ac_cv_lib_$ac_lib_var=no" | |
13309 | fi | |
13310 | rm -f conftest* | |
13311 | LIBS="$ac_save_LIBS" | |
13312 | ||
13313 | fi | |
13314 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13315 | echo "$ac_t""yes" 1>&6 | |
13316 | cat >> confdefs.h <<\EOF | |
21d1c967 | 13317 | #define HAVE_XIM 1 |
a0b9e27f | 13318 | EOF |
21d1c967 | 13319 | |
a0b9e27f MB |
13320 | else |
13321 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13322 | fi |
1e6feb95 | 13323 | |
21d1c967 | 13324 | fi |
1e6feb95 | 13325 | |
21d1c967 | 13326 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 13327 | echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6 |
34bed6d9 | 13328 | echo "configure:13329: checking for SciTech MGL library" >&5 |
21d1c967 | 13329 | if test "x$MGL_ROOT" = x ; then |
a0b9e27f MB |
13330 | echo "$ac_t""not found" 1>&6 |
13331 | { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; } | |
21d1c967 | 13332 | else |
a0b9e27f | 13333 | echo "$ac_t""$MGL_ROOT" 1>&6 |
21d1c967 GD |
13334 | fi |
13335 | ||
13336 | case "${host}" in | |
13337 | *-*-linux* ) | |
2b5f62a0 | 13338 | mgl_os="linux/gcc/glibc*" |
21d1c967 GD |
13339 | ;; |
13340 | *-pc-msdosdjgpp ) | |
13341 | mgl_os=dos32/dj2 | |
13342 | ;; | |
13343 | *) | |
a0b9e27f | 13344 | { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; } |
21d1c967 | 13345 | esac |
1e6feb95 | 13346 | |
21d1c967 | 13347 | mgl_lib_type="" |
3fcdd07b | 13348 | |
21d1c967 GD |
13349 | if test "$wxUSE_DEBUG_FLAG" = yes ; then |
13350 | if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \ | |
13351 | -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then | |
13352 | mgl_lib_type=debug | |
13353 | fi | |
13354 | fi | |
13355 | if test "x$mgl_lib_type" = x ; then | |
13356 | if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \ | |
13357 | -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then | |
13358 | mgl_lib_type=release | |
13359 | else | |
a0b9e27f | 13360 | { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; } |
21d1c967 | 13361 | fi |
90dd450c | 13362 | fi |
2224580a | 13363 | |
1d1b75ac VZ |
13364 | wxUSE_UNIVERSAL="yes" |
13365 | ||
21d1c967 GD |
13366 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
13367 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
13368 | ||
90dd450c | 13369 | AFMINSTALL=afminstall |
21d1c967 GD |
13370 | TOOLKIT=MGL |
13371 | GUIDIST=MGL_DIST | |
13372 | fi | |
dad6c0ea | 13373 | |
21d1c967 | 13374 | if test "$wxUSE_MICROWIN" = 1; then |
a0b9e27f | 13375 | echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6 |
34bed6d9 | 13376 | echo "configure:13377: checking for MicroWindows" >&5 |
21d1c967 | 13377 | if test "x$MICROWINDOWS" = x ; then |
a0b9e27f MB |
13378 | echo "$ac_t""not found" 1>&6 |
13379 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; } | |
21d1c967 | 13380 | else |
a0b9e27f | 13381 | echo "$ac_t""$MICROWINDOWS" 1>&6 |
21d1c967 | 13382 | fi |
f6bcfd97 | 13383 | |
21d1c967 | 13384 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
a0b9e27f | 13385 | echo "$ac_t""MicroWindows' libraries found." 1>&6 |
21d1c967 | 13386 | else |
a0b9e27f | 13387 | { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; } |
90dd450c | 13388 | fi |
0b2effe9 | 13389 | |
21d1c967 GD |
13390 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
13391 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
13392 | ||
1d1b75ac VZ |
13393 | wxUSE_UNIVERSAL="yes" |
13394 | ||
21d1c967 GD |
13395 | AFMINSTALL=afminstall |
13396 | TOOLKIT=MICROWIN | |
13397 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
13398 | |
13399 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 13400 | fi |
f6bcfd97 | 13401 | |
21d1c967 | 13402 | if test "$wxUSE_X11" = 1; then |
a0b9e27f MB |
13403 | # If we find X, set shell vars x_includes and x_libraries to the |
13404 | # paths, otherwise set no_x=yes. | |
13405 | # Uses ac_ vars as temps to allow command line to override cache and checks. | |
13406 | # --without-x overrides everything else, but does not touch the cache. | |
13407 | echo $ac_n "checking for X""... $ac_c" 1>&6 | |
34bed6d9 | 13408 | echo "configure:13409: checking for X" >&5 |
d8356fa3 | 13409 | |
21d1c967 GD |
13410 | # Check whether --with-x or --without-x was given. |
13411 | if test "${with_x+set}" = set; then | |
13412 | withval="$with_x" | |
a0b9e27f MB |
13413 | : |
13414 | fi | |
2224580a | 13415 | |
21d1c967 GD |
13416 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
13417 | if test "x$with_x" = xno; then | |
13418 | # The user explicitly disabled X. | |
13419 | have_x=disabled | |
13420 | else | |
13421 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
13422 | # Both variables are already set. | |
13423 | have_x=yes | |
13424 | else | |
a0b9e27f MB |
13425 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
13426 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 GD |
13427 | else |
13428 | # One or both of the vars are not set, and there is no cached value. | |
a0b9e27f MB |
13429 | ac_x_includes=NO ac_x_libraries=NO |
13430 | rm -fr conftestdir | |
13431 | if mkdir conftestdir; then | |
13432 | cd conftestdir | |
21d1c967 | 13433 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
a0b9e27f | 13434 | cat > Imakefile <<'EOF' |
21d1c967 GD |
13435 | acfindx: |
13436 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
a0b9e27f | 13437 | EOF |
21d1c967 GD |
13438 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
13439 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
13440 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
13441 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
13442 | for ac_extension in a so sl; do | |
13443 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
a0b9e27f | 13444 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
13445 | ac_im_usrlibdir=$ac_im_libdir; break |
13446 | fi | |
13447 | done | |
13448 | # Screen out bogus values from the imake configuration. They are | |
13449 | # bogus both because they are the default anyway, and because | |
13450 | # using them would break gcc on systems where it needs fixed includes. | |
a0b9e27f | 13451 | case "$ac_im_incroot" in |
21d1c967 | 13452 | /usr/include) ;; |
a0b9e27f | 13453 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
21d1c967 | 13454 | esac |
a0b9e27f | 13455 | case "$ac_im_usrlibdir" in |
21d1c967 | 13456 | /usr/lib | /lib) ;; |
a0b9e27f | 13457 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
21d1c967 GD |
13458 | esac |
13459 | fi | |
13460 | cd .. | |
a0b9e27f | 13461 | rm -fr conftestdir |
21d1c967 | 13462 | fi |
10f2d63a | 13463 | |
a0b9e27f MB |
13464 | if test "$ac_x_includes" = NO; then |
13465 | # Guess where to find include files, by looking for this one X11 .h file. | |
13466 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h | |
13467 | ||
21d1c967 | 13468 | # First, try using that file with no special directory specified. |
a0b9e27f | 13469 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 13470 | #line 13471 "configure" |
21d1c967 | 13471 | #include "confdefs.h" |
a0b9e27f MB |
13472 | #include <$x_direct_test_include> |
13473 | EOF | |
13474 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 13475 | { (eval echo configure:13476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
13476 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
13477 | if test -z "$ac_err"; then | |
13478 | rm -rf conftest* | |
21d1c967 GD |
13479 | # We can compile using X headers with no special include directory. |
13480 | ac_x_includes= | |
90dd450c | 13481 | else |
a0b9e27f MB |
13482 | echo "$ac_err" >&5 |
13483 | echo "configure: failed program was:" >&5 | |
90dd450c | 13484 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
13485 | rm -rf conftest* |
13486 | # Look for the header file in a standard set of common directories. | |
13487 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13488 | for ac_dir in \ | |
13489 | /usr/X11/include \ | |
13490 | /usr/X11R6/include \ | |
13491 | /usr/X11R5/include \ | |
13492 | /usr/X11R4/include \ | |
13493 | \ | |
13494 | /usr/include/X11 \ | |
13495 | /usr/include/X11R6 \ | |
13496 | /usr/include/X11R5 \ | |
13497 | /usr/include/X11R4 \ | |
13498 | \ | |
13499 | /usr/local/X11/include \ | |
13500 | /usr/local/X11R6/include \ | |
13501 | /usr/local/X11R5/include \ | |
13502 | /usr/local/X11R4/include \ | |
13503 | \ | |
13504 | /usr/local/include/X11 \ | |
13505 | /usr/local/include/X11R6 \ | |
13506 | /usr/local/include/X11R5 \ | |
13507 | /usr/local/include/X11R4 \ | |
13508 | \ | |
13509 | /usr/X386/include \ | |
13510 | /usr/x386/include \ | |
13511 | /usr/XFree86/include/X11 \ | |
13512 | \ | |
13513 | /usr/include \ | |
13514 | /usr/local/include \ | |
13515 | /usr/unsupported/include \ | |
13516 | /usr/athena/include \ | |
13517 | /usr/local/x11r5/include \ | |
13518 | /usr/lpp/Xamples/include \ | |
13519 | \ | |
13520 | /usr/openwin/include \ | |
13521 | /usr/openwin/share/include \ | |
13522 | ; \ | |
13523 | do | |
13524 | if test -r "$ac_dir/$x_direct_test_include"; then | |
13525 | ac_x_includes=$ac_dir | |
13526 | break | |
13527 | fi | |
13528 | done | |
3a922bb4 | 13529 | fi |
a0b9e27f MB |
13530 | rm -f conftest* |
13531 | fi # $ac_x_includes = NO | |
10f2d63a | 13532 | |
a0b9e27f | 13533 | if test "$ac_x_libraries" = NO; then |
21d1c967 | 13534 | # Check for the libraries. |
a0b9e27f MB |
13535 | |
13536 | test -z "$x_direct_test_library" && x_direct_test_library=Xt | |
13537 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc | |
13538 | ||
21d1c967 GD |
13539 | # See if we find them without any special options. |
13540 | # Don't add to $LIBS permanently. | |
a0b9e27f MB |
13541 | ac_save_LIBS="$LIBS" |
13542 | LIBS="-l$x_direct_test_library $LIBS" | |
13543 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 13544 | #line 13545 "configure" |
3a922bb4 | 13545 | #include "confdefs.h" |
a0b9e27f MB |
13546 | |
13547 | int main() { | |
13548 | ${x_direct_test_function}() | |
13549 | ; return 0; } | |
13550 | EOF | |
34bed6d9 | 13551 | if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13552 | rm -rf conftest* |
13553 | LIBS="$ac_save_LIBS" | |
21d1c967 GD |
13554 | # We can link X programs with no special library path. |
13555 | ac_x_libraries= | |
3a922bb4 | 13556 | else |
a0b9e27f MB |
13557 | echo "configure: failed program was:" >&5 |
13558 | cat conftest.$ac_ext >&5 | |
13559 | rm -rf conftest* | |
13560 | LIBS="$ac_save_LIBS" | |
13561 | # First see if replacing the include by lib works. | |
13562 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
13563 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ | |
13564 | /usr/X11/lib \ | |
13565 | /usr/X11R6/lib \ | |
13566 | /usr/X11R5/lib \ | |
13567 | /usr/X11R4/lib \ | |
13568 | \ | |
13569 | /usr/lib/X11 \ | |
13570 | /usr/lib/X11R6 \ | |
13571 | /usr/lib/X11R5 \ | |
13572 | /usr/lib/X11R4 \ | |
13573 | \ | |
13574 | /usr/local/X11/lib \ | |
13575 | /usr/local/X11R6/lib \ | |
13576 | /usr/local/X11R5/lib \ | |
13577 | /usr/local/X11R4/lib \ | |
13578 | \ | |
13579 | /usr/local/lib/X11 \ | |
13580 | /usr/local/lib/X11R6 \ | |
13581 | /usr/local/lib/X11R5 \ | |
13582 | /usr/local/lib/X11R4 \ | |
13583 | \ | |
13584 | /usr/X386/lib \ | |
13585 | /usr/x386/lib \ | |
13586 | /usr/XFree86/lib/X11 \ | |
13587 | \ | |
13588 | /usr/lib \ | |
13589 | /usr/local/lib \ | |
13590 | /usr/unsupported/lib \ | |
13591 | /usr/athena/lib \ | |
13592 | /usr/local/x11r5/lib \ | |
13593 | /usr/lpp/Xamples/lib \ | |
13594 | /lib/usr/lib/X11 \ | |
13595 | \ | |
13596 | /usr/openwin/lib \ | |
13597 | /usr/openwin/share/lib \ | |
13598 | ; \ | |
21d1c967 GD |
13599 | do |
13600 | for ac_extension in a so sl; do | |
a0b9e27f | 13601 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
21d1c967 GD |
13602 | ac_x_libraries=$ac_dir |
13603 | break 2 | |
13604 | fi | |
13605 | done | |
13606 | done | |
3a922bb4 | 13607 | fi |
a0b9e27f MB |
13608 | rm -f conftest* |
13609 | fi # $ac_x_libraries = NO | |
90dd450c | 13610 | |
a0b9e27f | 13611 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
21d1c967 GD |
13612 | # Didn't find X anywhere. Cache the known absence of X. |
13613 | ac_cv_have_x="have_x=no" | |
13614 | else | |
13615 | # Record where we found X for the cache. | |
13616 | ac_cv_have_x="have_x=yes \ | |
13617 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 13618 | fi |
21d1c967 GD |
13619 | fi |
13620 | fi | |
13621 | eval "$ac_cv_have_x" | |
13622 | fi # $with_x != no | |
90dd450c | 13623 | |
21d1c967 | 13624 | if test "$have_x" != yes; then |
a0b9e27f | 13625 | echo "$ac_t""$have_x" 1>&6 |
21d1c967 GD |
13626 | no_x=yes |
13627 | else | |
13628 | # If each of the values was on the command line, it overrides each guess. | |
13629 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
13630 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
13631 | # Update the cache value to reflect the command line values. | |
13632 | ac_cv_have_x="have_x=yes \ | |
13633 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
a0b9e27f | 13634 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
21d1c967 | 13635 | fi |
90dd450c | 13636 | |
21d1c967 | 13637 | if test "$no_x" = yes; then |
90dd450c | 13638 | # Not all programs may use this symbol, but it does not hurt to define it. |
a0b9e27f | 13639 | cat >> confdefs.h <<\EOF |
90dd450c | 13640 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 13641 | EOF |
90dd450c VZ |
13642 | |
13643 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
13644 | else | |
13645 | if test -n "$x_includes"; then | |
13646 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 13647 | fi |
3a922bb4 | 13648 | |
90dd450c VZ |
13649 | # It would also be nice to do this for all -L options, not just this one. |
13650 | if test -n "$x_libraries"; then | |
13651 | X_LIBS="$X_LIBS -L$x_libraries" | |
13652 | # For Solaris; some versions of Sun CC require a space after -R and | |
13653 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 13654 | case "`(uname -sr) 2>/dev/null`" in |
90dd450c | 13655 | "SunOS 5"*) |
a0b9e27f | 13656 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
34bed6d9 | 13657 | echo "configure:13658: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
13658 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
13659 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 13660 | #line 13661 "configure" |
90dd450c VZ |
13661 | #include "confdefs.h" |
13662 | ||
a0b9e27f | 13663 | int main() { |
90dd450c | 13664 | |
a0b9e27f MB |
13665 | ; return 0; } |
13666 | EOF | |
34bed6d9 | 13667 | if { (eval echo configure:13668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13668 | rm -rf conftest* |
90dd450c | 13669 | ac_R_nospace=yes |
3a922bb4 | 13670 | else |
a0b9e27f MB |
13671 | echo "configure: failed program was:" >&5 |
13672 | cat conftest.$ac_ext >&5 | |
13673 | rm -rf conftest* | |
13674 | ac_R_nospace=no | |
3a922bb4 | 13675 | fi |
a0b9e27f | 13676 | rm -f conftest* |
90dd450c | 13677 | if test $ac_R_nospace = yes; then |
a0b9e27f | 13678 | echo "$ac_t""no" 1>&6 |
90dd450c VZ |
13679 | X_LIBS="$X_LIBS -R$x_libraries" |
13680 | else | |
13681 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 13682 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 13683 | #line 13684 "configure" |
90dd450c | 13684 | #include "confdefs.h" |
3a922bb4 | 13685 | |
a0b9e27f | 13686 | int main() { |
6f754473 | 13687 | |
a0b9e27f MB |
13688 | ; return 0; } |
13689 | EOF | |
34bed6d9 | 13690 | if { (eval echo configure:13691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 13691 | rm -rf conftest* |
90dd450c VZ |
13692 | ac_R_space=yes |
13693 | else | |
a0b9e27f MB |
13694 | echo "configure: failed program was:" >&5 |
13695 | cat conftest.$ac_ext >&5 | |
13696 | rm -rf conftest* | |
13697 | ac_R_space=no | |
90dd450c | 13698 | fi |
a0b9e27f | 13699 | rm -f conftest* |
90dd450c | 13700 | if test $ac_R_space = yes; then |
a0b9e27f | 13701 | echo "$ac_t""yes" 1>&6 |
90dd450c VZ |
13702 | X_LIBS="$X_LIBS -R $x_libraries" |
13703 | else | |
a0b9e27f | 13704 | echo "$ac_t""neither works" 1>&6 |
90dd450c VZ |
13705 | fi |
13706 | fi | |
a0b9e27f | 13707 | LIBS="$ac_xsave_LIBS" |
90dd450c VZ |
13708 | esac |
13709 | fi | |
13710 | ||
13711 | # Check for system-dependent libraries X programs must link with. | |
13712 | # Do this before checking for the system-independent R6 libraries | |
13713 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 13714 | |
90dd450c VZ |
13715 | if test "$ISC" = yes; then |
13716 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
13717 | else | |
a0b9e27f MB |
13718 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
13719 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
90dd450c | 13720 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 13721 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
34bed6d9 | 13722 | echo "configure:13723: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
13723 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13724 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 13726 | else |
a0b9e27f | 13727 | ac_save_LIBS="$LIBS" |
247f5006 | 13728 | LIBS="-ldnet $LIBS" |
a0b9e27f | 13729 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 13730 | #line 13731 "configure" |
247f5006 | 13731 | #include "confdefs.h" |
247f5006 | 13732 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 13733 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
13734 | builtin and then its argument prototype would still apply. */ |
13735 | char dnet_ntoa(); | |
13736 | ||
13737 | int main() { | |
13738 | dnet_ntoa() | |
13739 | ; return 0; } | |
13740 | EOF | |
34bed6d9 | 13741 | if { (eval echo configure:13742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13742 | rm -rf conftest* |
13743 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13744 | else | |
13745 | echo "configure: failed program was:" >&5 | |
13746 | cat conftest.$ac_ext >&5 | |
13747 | rm -rf conftest* | |
13748 | eval "ac_cv_lib_$ac_lib_var=no" | |
13749 | fi | |
13750 | rm -f conftest* | |
13751 | LIBS="$ac_save_LIBS" | |
13752 | ||
13753 | fi | |
13754 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13755 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13756 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
13757 | else |
13758 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13759 | fi |
13760 | ||
90dd450c | 13761 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 13762 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
34bed6d9 | 13763 | echo "configure:13764: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
13764 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
13765 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13766 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13767 | else |
a0b9e27f | 13768 | ac_save_LIBS="$LIBS" |
90dd450c | 13769 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 13770 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 13771 | #line 13772 "configure" |
90dd450c VZ |
13772 | #include "confdefs.h" |
13773 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13774 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13775 | builtin and then its argument prototype would still apply. */ |
13776 | char dnet_ntoa(); | |
13777 | ||
13778 | int main() { | |
13779 | dnet_ntoa() | |
13780 | ; return 0; } | |
13781 | EOF | |
34bed6d9 | 13782 | if { (eval echo configure:13783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13783 | rm -rf conftest* |
13784 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13785 | else | |
13786 | echo "configure: failed program was:" >&5 | |
13787 | cat conftest.$ac_ext >&5 | |
13788 | rm -rf conftest* | |
13789 | eval "ac_cv_lib_$ac_lib_var=no" | |
13790 | fi | |
13791 | rm -f conftest* | |
13792 | LIBS="$ac_save_LIBS" | |
13793 | ||
13794 | fi | |
13795 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13796 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13797 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
13798 | else |
13799 | echo "$ac_t""no" 1>&6 | |
3a922bb4 RL |
13800 | fi |
13801 | ||
90dd450c | 13802 | fi |
978f1259 | 13803 | |
90dd450c VZ |
13804 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
13805 | # to get the SysV transport functions. | |
a0b9e27f | 13806 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
13807 | # needs -lnsl. |
13808 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
13809 | # on Irix 5.2, according to dickey@clark.net. |
13810 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
34bed6d9 | 13811 | echo "configure:13812: checking for gethostbyname" >&5 |
a0b9e27f MB |
13812 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
13813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13814 | else | |
13815 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 13816 | #line 13817 "configure" |
90dd450c VZ |
13817 | #include "confdefs.h" |
13818 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 13819 | which can conflict with char gethostbyname(); below. */ |
90dd450c VZ |
13820 | #include <assert.h> |
13821 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13822 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13823 | builtin and then its argument prototype would still apply. */ |
13824 | char gethostbyname(); | |
13825 | ||
13826 | int main() { | |
13827 | ||
90dd450c VZ |
13828 | /* The GNU C library defines this for functions which it implements |
13829 | to always fail with ENOSYS. Some functions are actually named | |
13830 | something starting with __ and the normal name is an alias. */ | |
13831 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
13832 | choke me | |
13833 | #else | |
a0b9e27f | 13834 | gethostbyname(); |
90dd450c | 13835 | #endif |
978f1259 | 13836 | |
a0b9e27f MB |
13837 | ; return 0; } |
13838 | EOF | |
34bed6d9 | 13839 | if { (eval echo configure:13840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13840 | rm -rf conftest* |
13841 | eval "ac_cv_func_gethostbyname=yes" | |
13842 | else | |
13843 | echo "configure: failed program was:" >&5 | |
13844 | cat conftest.$ac_ext >&5 | |
13845 | rm -rf conftest* | |
13846 | eval "ac_cv_func_gethostbyname=no" | |
13847 | fi | |
13848 | rm -f conftest* | |
13849 | fi | |
13850 | ||
13851 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
13852 | echo "$ac_t""yes" 1>&6 | |
13853 | : | |
13854 | else | |
13855 | echo "$ac_t""no" 1>&6 | |
13856 | fi | |
698dcdb6 | 13857 | |
90dd450c | 13858 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 13859 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
34bed6d9 | 13860 | echo "configure:13861: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
13861 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
13862 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13864 | else |
a0b9e27f | 13865 | ac_save_LIBS="$LIBS" |
90dd450c | 13866 | LIBS="-lnsl $LIBS" |
a0b9e27f | 13867 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 13868 | #line 13869 "configure" |
90dd450c VZ |
13869 | #include "confdefs.h" |
13870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13871 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13872 | builtin and then its argument prototype would still apply. */ |
13873 | char gethostbyname(); | |
5c6fa7d2 | 13874 | |
a0b9e27f MB |
13875 | int main() { |
13876 | gethostbyname() | |
13877 | ; return 0; } | |
13878 | EOF | |
34bed6d9 | 13879 | if { (eval echo configure:13880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13880 | rm -rf conftest* |
13881 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 13882 | else |
a0b9e27f MB |
13883 | echo "configure: failed program was:" >&5 |
13884 | cat conftest.$ac_ext >&5 | |
13885 | rm -rf conftest* | |
13886 | eval "ac_cv_lib_$ac_lib_var=no" | |
13887 | fi | |
13888 | rm -f conftest* | |
13889 | LIBS="$ac_save_LIBS" | |
247f5006 | 13890 | |
a0b9e27f MB |
13891 | fi |
13892 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13893 | echo "$ac_t""yes" 1>&6 | |
13894 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
13895 | else | |
13896 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13897 | fi |
b12915c1 | 13898 | |
90dd450c VZ |
13899 | fi |
13900 | ||
13901 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
13902 | # socket/setsockopt and other routines are undefined under SCO ODT | |
13903 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
13904 | # on later versions), says simon@lia.di.epfl.ch: it contains |
13905 | # gethostby* variants that don't use the nameserver (or something). | |
13906 | # -lsocket must be given before -lnsl if both are needed. | |
13907 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
13908 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
34bed6d9 | 13909 | echo "configure:13910: checking for connect" >&5 |
a0b9e27f MB |
13910 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
13911 | echo $ac_n "(cached) $ac_c" 1>&6 | |
13912 | else | |
13913 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 13914 | #line 13915 "configure" |
55e80573 | 13915 | #include "confdefs.h" |
90dd450c | 13916 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 13917 | which can conflict with char connect(); below. */ |
90dd450c VZ |
13918 | #include <assert.h> |
13919 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13920 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13921 | builtin and then its argument prototype would still apply. */ |
13922 | char connect(); | |
13923 | ||
13924 | int main() { | |
13925 | ||
90dd450c VZ |
13926 | /* The GNU C library defines this for functions which it implements |
13927 | to always fail with ENOSYS. Some functions are actually named | |
13928 | something starting with __ and the normal name is an alias. */ | |
13929 | #if defined (__stub_connect) || defined (__stub___connect) | |
13930 | choke me | |
13931 | #else | |
a0b9e27f | 13932 | connect(); |
90dd450c VZ |
13933 | #endif |
13934 | ||
a0b9e27f MB |
13935 | ; return 0; } |
13936 | EOF | |
34bed6d9 | 13937 | if { (eval echo configure:13938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13938 | rm -rf conftest* |
13939 | eval "ac_cv_func_connect=yes" | |
13940 | else | |
13941 | echo "configure: failed program was:" >&5 | |
13942 | cat conftest.$ac_ext >&5 | |
13943 | rm -rf conftest* | |
13944 | eval "ac_cv_func_connect=no" | |
13945 | fi | |
13946 | rm -f conftest* | |
13947 | fi | |
13948 | ||
13949 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
13950 | echo "$ac_t""yes" 1>&6 | |
13951 | : | |
13952 | else | |
13953 | echo "$ac_t""no" 1>&6 | |
13954 | fi | |
55e80573 | 13955 | |
90dd450c | 13956 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 13957 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
34bed6d9 | 13958 | echo "configure:13959: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
13959 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
13960 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
13961 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 13962 | else |
a0b9e27f | 13963 | ac_save_LIBS="$LIBS" |
90dd450c | 13964 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 13965 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 13966 | #line 13967 "configure" |
90dd450c VZ |
13967 | #include "confdefs.h" |
13968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13969 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
13970 | builtin and then its argument prototype would still apply. */ |
13971 | char connect(); | |
13972 | ||
13973 | int main() { | |
13974 | connect() | |
13975 | ; return 0; } | |
13976 | EOF | |
34bed6d9 | 13977 | if { (eval echo configure:13978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
13978 | rm -rf conftest* |
13979 | eval "ac_cv_lib_$ac_lib_var=yes" | |
13980 | else | |
13981 | echo "configure: failed program was:" >&5 | |
13982 | cat conftest.$ac_ext >&5 | |
13983 | rm -rf conftest* | |
13984 | eval "ac_cv_lib_$ac_lib_var=no" | |
13985 | fi | |
13986 | rm -f conftest* | |
13987 | LIBS="$ac_save_LIBS" | |
13988 | ||
13989 | fi | |
13990 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
13991 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 13992 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
13993 | else |
13994 | echo "$ac_t""no" 1>&6 | |
90dd450c | 13995 | fi |
77e13408 | 13996 | |
90dd450c | 13997 | fi |
25d0687a | 13998 | |
a0b9e27f MB |
13999 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
14000 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
34bed6d9 | 14001 | echo "configure:14002: checking for remove" >&5 |
a0b9e27f MB |
14002 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
14003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14004 | else |
a0b9e27f | 14005 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14006 | #line 14007 "configure" |
90dd450c VZ |
14007 | #include "confdefs.h" |
14008 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14009 | which can conflict with char remove(); below. */ |
90dd450c VZ |
14010 | #include <assert.h> |
14011 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14012 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14013 | builtin and then its argument prototype would still apply. */ |
14014 | char remove(); | |
14015 | ||
14016 | int main() { | |
14017 | ||
90dd450c VZ |
14018 | /* The GNU C library defines this for functions which it implements |
14019 | to always fail with ENOSYS. Some functions are actually named | |
14020 | something starting with __ and the normal name is an alias. */ | |
14021 | #if defined (__stub_remove) || defined (__stub___remove) | |
14022 | choke me | |
14023 | #else | |
a0b9e27f | 14024 | remove(); |
90dd450c | 14025 | #endif |
55e80573 | 14026 | |
a0b9e27f MB |
14027 | ; return 0; } |
14028 | EOF | |
34bed6d9 | 14029 | if { (eval echo configure:14030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14030 | rm -rf conftest* |
14031 | eval "ac_cv_func_remove=yes" | |
14032 | else | |
14033 | echo "configure: failed program was:" >&5 | |
14034 | cat conftest.$ac_ext >&5 | |
14035 | rm -rf conftest* | |
14036 | eval "ac_cv_func_remove=no" | |
14037 | fi | |
14038 | rm -f conftest* | |
14039 | fi | |
14040 | ||
14041 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
14042 | echo "$ac_t""yes" 1>&6 | |
14043 | : | |
14044 | else | |
14045 | echo "$ac_t""no" 1>&6 | |
14046 | fi | |
10f2d63a | 14047 | |
90dd450c | 14048 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 14049 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
34bed6d9 | 14050 | echo "configure:14051: checking for remove in -lposix" >&5 |
a0b9e27f MB |
14051 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
14052 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14053 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14054 | else |
a0b9e27f | 14055 | ac_save_LIBS="$LIBS" |
90dd450c | 14056 | LIBS="-lposix $LIBS" |
a0b9e27f | 14057 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14058 | #line 14059 "configure" |
90dd450c VZ |
14059 | #include "confdefs.h" |
14060 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14061 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14062 | builtin and then its argument prototype would still apply. */ |
14063 | char remove(); | |
14064 | ||
14065 | int main() { | |
14066 | remove() | |
14067 | ; return 0; } | |
14068 | EOF | |
34bed6d9 | 14069 | if { (eval echo configure:14070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14070 | rm -rf conftest* |
14071 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14072 | else | |
14073 | echo "configure: failed program was:" >&5 | |
14074 | cat conftest.$ac_ext >&5 | |
14075 | rm -rf conftest* | |
14076 | eval "ac_cv_lib_$ac_lib_var=no" | |
14077 | fi | |
14078 | rm -f conftest* | |
14079 | LIBS="$ac_save_LIBS" | |
14080 | ||
14081 | fi | |
14082 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14083 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14084 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
14085 | else |
14086 | echo "$ac_t""no" 1>&6 | |
90dd450c | 14087 | fi |
f6bcfd97 | 14088 | |
6fa882bd RR |
14089 | fi |
14090 | ||
90dd450c | 14091 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 14092 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
34bed6d9 | 14093 | echo "configure:14094: checking for shmat" >&5 |
a0b9e27f MB |
14094 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
14095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 14096 | else |
a0b9e27f | 14097 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14098 | #line 14099 "configure" |
90dd450c VZ |
14099 | #include "confdefs.h" |
14100 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14101 | which can conflict with char shmat(); below. */ |
90dd450c VZ |
14102 | #include <assert.h> |
14103 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14104 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14105 | builtin and then its argument prototype would still apply. */ |
14106 | char shmat(); | |
14107 | ||
14108 | int main() { | |
14109 | ||
90dd450c VZ |
14110 | /* The GNU C library defines this for functions which it implements |
14111 | to always fail with ENOSYS. Some functions are actually named | |
14112 | something starting with __ and the normal name is an alias. */ | |
14113 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
14114 | choke me | |
14115 | #else | |
a0b9e27f | 14116 | shmat(); |
90dd450c | 14117 | #endif |
10f2d63a | 14118 | |
a0b9e27f MB |
14119 | ; return 0; } |
14120 | EOF | |
34bed6d9 | 14121 | if { (eval echo configure:14122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14122 | rm -rf conftest* |
14123 | eval "ac_cv_func_shmat=yes" | |
14124 | else | |
14125 | echo "configure: failed program was:" >&5 | |
14126 | cat conftest.$ac_ext >&5 | |
14127 | rm -rf conftest* | |
14128 | eval "ac_cv_func_shmat=no" | |
14129 | fi | |
14130 | rm -f conftest* | |
14131 | fi | |
14132 | ||
14133 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
14134 | echo "$ac_t""yes" 1>&6 | |
14135 | : | |
14136 | else | |
14137 | echo "$ac_t""no" 1>&6 | |
14138 | fi | |
d08b457b | 14139 | |
90dd450c | 14140 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 14141 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
34bed6d9 | 14142 | echo "configure:14143: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
14143 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
14144 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14145 | echo $ac_n "(cached) $ac_c" 1>&6 | |
d08b457b | 14146 | else |
a0b9e27f | 14147 | ac_save_LIBS="$LIBS" |
90dd450c | 14148 | LIBS="-lipc $LIBS" |
a0b9e27f | 14149 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14150 | #line 14151 "configure" |
90dd450c | 14151 | #include "confdefs.h" |
8284b0c5 | 14152 | /* Override any gcc2 internal prototype to avoid an error. */ |
90dd450c | 14153 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14154 | builtin and then its argument prototype would still apply. */ |
14155 | char shmat(); | |
14156 | ||
14157 | int main() { | |
14158 | shmat() | |
14159 | ; return 0; } | |
14160 | EOF | |
34bed6d9 | 14161 | if { (eval echo configure:14162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14162 | rm -rf conftest* |
14163 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14164 | else | |
14165 | echo "configure: failed program was:" >&5 | |
14166 | cat conftest.$ac_ext >&5 | |
14167 | rm -rf conftest* | |
14168 | eval "ac_cv_lib_$ac_lib_var=no" | |
14169 | fi | |
14170 | rm -f conftest* | |
14171 | LIBS="$ac_save_LIBS" | |
14172 | ||
14173 | fi | |
14174 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14175 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14176 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
14177 | else |
14178 | echo "$ac_t""no" 1>&6 | |
d08b457b GD |
14179 | fi |
14180 | ||
d558c907 | 14181 | fi |
90dd450c | 14182 | fi |
3a922bb4 | 14183 | |
90dd450c | 14184 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 14185 | ac_save_LDFLAGS="$LDFLAGS" |
90dd450c VZ |
14186 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
14187 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
14188 | # check for ICE first), but we must link in the order -lSM -lICE or | |
14189 | # we get undefined symbols. So assume we have SM if we have ICE. | |
14190 | # These have to be linked with before -lX11, unlike the other | |
14191 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
14192 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
14193 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
34bed6d9 | 14194 | echo "configure:14195: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
14195 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
14196 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14197 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14198 | else | |
14199 | ac_save_LIBS="$LIBS" | |
f09359cf | 14200 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 14201 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14202 | #line 14203 "configure" |
9cfadba2 | 14203 | #include "confdefs.h" |
90dd450c VZ |
14204 | /* Override any gcc2 internal prototype to avoid an error. */ |
14205 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14206 | builtin and then its argument prototype would still apply. */ |
14207 | char IceConnectionNumber(); | |
14208 | ||
14209 | int main() { | |
14210 | IceConnectionNumber() | |
14211 | ; return 0; } | |
14212 | EOF | |
34bed6d9 | 14213 | if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14214 | rm -rf conftest* |
14215 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14216 | else | |
14217 | echo "configure: failed program was:" >&5 | |
14218 | cat conftest.$ac_ext >&5 | |
14219 | rm -rf conftest* | |
14220 | eval "ac_cv_lib_$ac_lib_var=no" | |
14221 | fi | |
14222 | rm -f conftest* | |
14223 | LIBS="$ac_save_LIBS" | |
14224 | ||
14225 | fi | |
14226 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14227 | echo "$ac_t""yes" 1>&6 | |
90dd450c | 14228 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
14229 | else |
14230 | echo "$ac_t""no" 1>&6 | |
9cfadba2 | 14231 | fi |
10f2d63a | 14232 | |
a0b9e27f | 14233 | LDFLAGS="$ac_save_LDFLAGS" |
90dd450c VZ |
14234 | |
14235 | fi | |
14236 | ||
8284b0c5 | 14237 | |
90dd450c | 14238 | if test "$no_x" = "yes"; then |
a0b9e27f | 14239 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
90dd450c VZ |
14240 | fi |
14241 | ||
14242 | GUI_TK_LIBRARY="$X_LIBS" | |
14243 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
14244 | AFMINSTALL=afminstall | |
14245 | COMPILED_X_PROGRAM=0 | |
14246 | ||
21d1c967 | 14247 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 14248 | echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6 |
34bed6d9 | 14249 | echo "configure:14250: checking for MicroWindows/NanoX distribution" >&5 |
21d1c967 | 14250 | if test "x$MICROWIN" = x ; then |
a0b9e27f MB |
14251 | echo "$ac_t""not found" 1>&6 |
14252 | { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; } | |
90dd450c | 14253 | else |
a0b9e27f MB |
14254 | echo "$ac_t""$MICROWIN" 1>&6 |
14255 | cat >> confdefs.h <<\EOF | |
21d1c967 | 14256 | #define wxUSE_NANOX 1 |
a0b9e27f | 14257 | EOF |
21d1c967 | 14258 | |
90dd450c VZ |
14259 | fi |
14260 | fi | |
14261 | ||
14262 | xpm_link= | |
a0b9e27f | 14263 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
34bed6d9 | 14264 | echo "configure:14265: checking for Xpm library" >&5 |
a0b9e27f | 14265 | |
90dd450c | 14266 | ac_find_libraries= |
2b5f62a0 | 14267 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14268 | do |
14269 | for ac_extension in a so sl dylib; do | |
14270 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
14271 | ac_find_libraries=$ac_dir | |
14272 | break 2 | |
14273 | fi | |
14274 | done | |
14275 | done | |
14276 | ||
14277 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 14278 | |
90dd450c VZ |
14279 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
14280 | result=$? | |
14281 | if test $result = 0; then | |
14282 | ac_path_to_link="" | |
14283 | else | |
14284 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 14285 | fi |
90dd450c | 14286 | |
21d1c967 GD |
14287 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
14288 | xpm_link=" -lXpm" | |
a0b9e27f | 14289 | cat >> confdefs.h <<\EOF |
21d1c967 | 14290 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14291 | EOF |
90dd450c | 14292 | |
a0b9e27f | 14293 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14294 | else |
a0b9e27f | 14295 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14296 | #line 14297 "configure" |
21d1c967 | 14297 | #include "confdefs.h" |
90dd450c | 14298 | |
21d1c967 | 14299 | #include <X11/xpm.h> |
a0b9e27f MB |
14300 | |
14301 | int main() { | |
6f72b082 | 14302 | |
21d1c967 GD |
14303 | int version; |
14304 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
14305 | |
14306 | ; return 0; } | |
14307 | EOF | |
34bed6d9 | 14308 | if { (eval echo configure:14309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
14309 | rm -rf conftest* |
14310 | ||
21d1c967 | 14311 | xpm_link=" -lXpm" |
a0b9e27f | 14312 | cat >> confdefs.h <<\EOF |
21d1c967 | 14313 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14314 | EOF |
90dd450c | 14315 | |
a0b9e27f | 14316 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 14317 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 14318 | |
21d1c967 | 14319 | else |
a0b9e27f MB |
14320 | echo "configure: failed program was:" >&5 |
14321 | cat conftest.$ac_ext >&5 | |
14322 | rm -rf conftest* | |
14323 | ||
14324 | echo "$ac_t""no" 1>&6 | |
14325 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
14326 | ||
14327 | ||
6f72b082 | 14328 | fi |
a0b9e27f | 14329 | rm -f conftest* |
21d1c967 | 14330 | fi |
90dd450c | 14331 | |
2b5f62a0 VZ |
14332 | if test "$wxUSE_UNICODE" = "yes"; then |
14333 | ||
14334 | succeeded=no | |
90dd450c | 14335 | |
2b5f62a0 VZ |
14336 | if test -z "$PKG_CONFIG"; then |
14337 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14338 | set dummy pkg-config; ac_word=$2 | |
14339 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
34bed6d9 | 14340 | echo "configure:14341: checking for $ac_word" >&5 |
2b5f62a0 | 14341 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
a0b9e27f MB |
14342 | echo $ac_n "(cached) $ac_c" 1>&6 |
14343 | else | |
2b5f62a0 VZ |
14344 | case "$PKG_CONFIG" in |
14345 | /*) | |
14346 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14347 | ;; | |
14348 | ?:/*) | |
14349 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14350 | ;; | |
14351 | *) | |
14352 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14353 | ac_dummy="$PATH" | |
14354 | for ac_dir in $ac_dummy; do | |
14355 | test -z "$ac_dir" && ac_dir=. | |
14356 | if test -f $ac_dir/$ac_word; then | |
14357 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14358 | break | |
14359 | fi | |
14360 | done | |
14361 | IFS="$ac_save_ifs" | |
14362 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14363 | ;; | |
14364 | esac | |
14365 | fi | |
14366 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14367 | if test -n "$PKG_CONFIG"; then | |
14368 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14369 | else | |
14370 | echo "$ac_t""no" 1>&6 | |
14371 | fi | |
14372 | ||
14373 | fi | |
14374 | ||
14375 | if test "$PKG_CONFIG" = "no" ; then | |
14376 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14377 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14378 | echo "*** to the full path to pkg-config." | |
14379 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14380 | else | |
14381 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14382 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14383 | echo $ac_n "checking for pangox""... $ac_c" 1>&6 | |
34bed6d9 | 14384 | echo "configure:14385: checking for pangox" >&5 |
2b5f62a0 VZ |
14385 | |
14386 | if $PKG_CONFIG --exists "pangox" ; then | |
14387 | echo "$ac_t""yes" 1>&6 | |
14388 | succeeded=yes | |
14389 | ||
14390 | echo $ac_n "checking PANGOX_CFLAGS""... $ac_c" 1>&6 | |
34bed6d9 | 14391 | echo "configure:14392: checking PANGOX_CFLAGS" >&5 |
2b5f62a0 VZ |
14392 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
14393 | echo "$ac_t""$PANGOX_CFLAGS" 1>&6 | |
14394 | ||
14395 | echo $ac_n "checking PANGOX_LIBS""... $ac_c" 1>&6 | |
34bed6d9 | 14396 | echo "configure:14397: checking PANGOX_LIBS" >&5 |
2b5f62a0 VZ |
14397 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
14398 | echo "$ac_t""$PANGOX_LIBS" 1>&6 | |
14399 | else | |
14400 | PANGOX_CFLAGS="" | |
14401 | PANGOX_LIBS="" | |
14402 | ## If we have a custom action on failure, don't print errors, but | |
14403 | ## do set a variable so people can do so. | |
14404 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
14405 | ||
14406 | fi | |
14407 | ||
14408 | ||
14409 | ||
14410 | else | |
14411 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14412 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14413 | fi | |
14414 | fi | |
14415 | ||
14416 | if test $succeeded = yes; then | |
14417 | ||
14418 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
14419 | LIBS="$LIBS $PANGOX_LIBS" | |
14420 | ||
14421 | else | |
14422 | ||
14423 | { echo "configure: error: pangox library not found, library cannot be compiled in Unicode mode" 1>&2; exit 1; } | |
14424 | ||
14425 | ||
14426 | fi | |
14427 | ||
14428 | ||
14429 | succeeded=no | |
14430 | ||
14431 | if test -z "$PKG_CONFIG"; then | |
14432 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14433 | set dummy pkg-config; ac_word=$2 | |
14434 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
34bed6d9 | 14435 | echo "configure:14436: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14436 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14437 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14438 | else | |
14439 | case "$PKG_CONFIG" in | |
14440 | /*) | |
14441 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14442 | ;; | |
14443 | ?:/*) | |
14444 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14445 | ;; | |
14446 | *) | |
14447 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14448 | ac_dummy="$PATH" | |
14449 | for ac_dir in $ac_dummy; do | |
14450 | test -z "$ac_dir" && ac_dir=. | |
14451 | if test -f $ac_dir/$ac_word; then | |
14452 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14453 | break | |
14454 | fi | |
14455 | done | |
14456 | IFS="$ac_save_ifs" | |
14457 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14458 | ;; | |
14459 | esac | |
14460 | fi | |
14461 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14462 | if test -n "$PKG_CONFIG"; then | |
14463 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14464 | else | |
14465 | echo "$ac_t""no" 1>&6 | |
14466 | fi | |
14467 | ||
14468 | fi | |
14469 | ||
14470 | if test "$PKG_CONFIG" = "no" ; then | |
14471 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14472 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14473 | echo "*** to the full path to pkg-config." | |
14474 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14475 | else | |
14476 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14477 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14478 | echo $ac_n "checking for pangoft2""... $ac_c" 1>&6 | |
34bed6d9 | 14479 | echo "configure:14480: checking for pangoft2" >&5 |
2b5f62a0 VZ |
14480 | |
14481 | if $PKG_CONFIG --exists "pangoft2" ; then | |
14482 | echo "$ac_t""yes" 1>&6 | |
14483 | succeeded=yes | |
14484 | ||
14485 | echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6 | |
34bed6d9 | 14486 | echo "configure:14487: checking PANGOFT2_CFLAGS" >&5 |
2b5f62a0 VZ |
14487 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
14488 | echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6 | |
14489 | ||
14490 | echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6 | |
34bed6d9 | 14491 | echo "configure:14492: checking PANGOFT2_LIBS" >&5 |
2b5f62a0 VZ |
14492 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
14493 | echo "$ac_t""$PANGOFT2_LIBS" 1>&6 | |
14494 | else | |
14495 | PANGOFT2_CFLAGS="" | |
14496 | PANGOFT2_LIBS="" | |
14497 | ## If we have a custom action on failure, don't print errors, but | |
14498 | ## do set a variable so people can do so. | |
14499 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
14500 | ||
14501 | fi | |
14502 | ||
14503 | ||
14504 | ||
14505 | else | |
14506 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14507 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14508 | fi | |
14509 | fi | |
14510 | ||
14511 | if test $succeeded = yes; then | |
14512 | ||
14513 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
14514 | LIBS="$LIBS $PANGOFT2_LIBS" | |
14515 | ||
14516 | else | |
14517 | ||
14518 | echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2 | |
14519 | wxUSE_PRINTING_ARCHITECTURE="no" | |
14520 | ||
14521 | ||
14522 | fi | |
14523 | ||
14524 | ||
14525 | succeeded=no | |
14526 | ||
14527 | if test -z "$PKG_CONFIG"; then | |
14528 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
14529 | set dummy pkg-config; ac_word=$2 | |
14530 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
34bed6d9 | 14531 | echo "configure:14532: checking for $ac_word" >&5 |
2b5f62a0 VZ |
14532 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
14533 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14534 | else | |
14535 | case "$PKG_CONFIG" in | |
14536 | /*) | |
14537 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
14538 | ;; | |
14539 | ?:/*) | |
14540 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. | |
14541 | ;; | |
14542 | *) | |
14543 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
14544 | ac_dummy="$PATH" | |
14545 | for ac_dir in $ac_dummy; do | |
14546 | test -z "$ac_dir" && ac_dir=. | |
14547 | if test -f $ac_dir/$ac_word; then | |
14548 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" | |
14549 | break | |
14550 | fi | |
14551 | done | |
14552 | IFS="$ac_save_ifs" | |
14553 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
14554 | ;; | |
14555 | esac | |
14556 | fi | |
14557 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
14558 | if test -n "$PKG_CONFIG"; then | |
14559 | echo "$ac_t""$PKG_CONFIG" 1>&6 | |
14560 | else | |
14561 | echo "$ac_t""no" 1>&6 | |
14562 | fi | |
14563 | ||
14564 | fi | |
14565 | ||
14566 | if test "$PKG_CONFIG" = "no" ; then | |
14567 | echo "*** The pkg-config script could not be found. Make sure it is" | |
14568 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
14569 | echo "*** to the full path to pkg-config." | |
14570 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
14571 | else | |
14572 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
14573 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
14574 | echo $ac_n "checking for pangoxft""... $ac_c" 1>&6 | |
34bed6d9 | 14575 | echo "configure:14576: checking for pangoxft" >&5 |
2b5f62a0 VZ |
14576 | |
14577 | if $PKG_CONFIG --exists "pangoxft" ; then | |
14578 | echo "$ac_t""yes" 1>&6 | |
14579 | succeeded=yes | |
14580 | ||
14581 | echo $ac_n "checking PANGOXFT_CFLAGS""... $ac_c" 1>&6 | |
34bed6d9 | 14582 | echo "configure:14583: checking PANGOXFT_CFLAGS" >&5 |
2b5f62a0 VZ |
14583 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
14584 | echo "$ac_t""$PANGOXFT_CFLAGS" 1>&6 | |
14585 | ||
14586 | echo $ac_n "checking PANGOXFT_LIBS""... $ac_c" 1>&6 | |
34bed6d9 | 14587 | echo "configure:14588: checking PANGOXFT_LIBS" >&5 |
2b5f62a0 VZ |
14588 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
14589 | echo "$ac_t""$PANGOXFT_LIBS" 1>&6 | |
14590 | else | |
14591 | PANGOXFT_CFLAGS="" | |
14592 | PANGOXFT_LIBS="" | |
14593 | ## If we have a custom action on failure, don't print errors, but | |
14594 | ## do set a variable so people can do so. | |
14595 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
14596 | ||
14597 | fi | |
14598 | ||
14599 | ||
14600 | ||
14601 | else | |
14602 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
14603 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
14604 | fi | |
14605 | fi | |
14606 | ||
14607 | if test $succeeded = yes; then | |
14608 | ||
14609 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
14610 | LIBS="$LIBS $PANGOXFT_LIBS" | |
14611 | ||
14612 | else | |
14613 | ||
14614 | echo "configure: warning: pangoxft library not found, library will be compiled without anti-aliasing support" 1>&2 | |
14615 | ||
14616 | ||
14617 | fi | |
14618 | ||
14619 | fi | |
14620 | ||
14621 | wxUSE_UNIVERSAL="yes" | |
14622 | ||
14623 | if test "$wxUSE_NANOX" = "yes"; then | |
14624 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
14625 | 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" | |
14626 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
14627 | else | |
14628 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
14629 | fi | |
14630 | ||
14631 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
14632 | TOOLKIT=X11 | |
14633 | GUIDIST=X11_DIST | |
14634 | fi | |
14635 | ||
14636 | if test "$wxUSE_WINE" = 1; then | |
14637 | ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'` | |
14638 | echo $ac_n "checking for windows.h""... $ac_c" 1>&6 | |
34bed6d9 | 14639 | echo "configure:14640: checking for windows.h" >&5 |
2b5f62a0 VZ |
14640 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
14641 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14642 | else | |
14643 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 14644 | #line 14645 "configure" |
2b5f62a0 VZ |
14645 | #include "confdefs.h" |
14646 | #include <windows.h> | |
14647 | EOF | |
14648 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 14649 | { (eval echo configure:14650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
2b5f62a0 VZ |
14650 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
14651 | if test -z "$ac_err"; then | |
14652 | rm -rf conftest* | |
14653 | eval "ac_cv_header_$ac_safe=yes" | |
14654 | else | |
14655 | echo "$ac_err" >&5 | |
14656 | echo "configure: failed program was:" >&5 | |
14657 | cat conftest.$ac_ext >&5 | |
14658 | rm -rf conftest* | |
14659 | eval "ac_cv_header_$ac_safe=no" | |
14660 | fi | |
14661 | rm -f conftest* | |
10f2d63a | 14662 | fi |
a0b9e27f MB |
14663 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
14664 | echo "$ac_t""yes" 1>&6 | |
21d1c967 GD |
14665 | : |
14666 | else | |
a0b9e27f | 14667 | echo "$ac_t""no" 1>&6 |
21d1c967 | 14668 | |
a0b9e27f MB |
14669 | { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; } |
14670 | ||
5c6fa7d2 | 14671 | fi |
7b4a847f | 14672 | |
5c6fa7d2 | 14673 | |
8284b0c5 | 14674 | xpm_link= |
a0b9e27f | 14675 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
34bed6d9 | 14676 | echo "configure:14677: checking for Xpm library" >&5 |
a0b9e27f | 14677 | |
90dd450c | 14678 | ac_find_libraries= |
2b5f62a0 | 14679 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14680 | do |
14681 | for ac_extension in a so sl dylib; do | |
21d1c967 | 14682 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
90dd450c VZ |
14683 | ac_find_libraries=$ac_dir |
14684 | break 2 | |
14685 | fi | |
14686 | done | |
14687 | done | |
14688 | ||
21d1c967 GD |
14689 | if test "$ac_find_libraries" != "" ; then |
14690 | GUI_TK_LIBRARY="-L$ac_find_libraries" | |
14691 | xpm_link=" -lXpm" | |
a0b9e27f | 14692 | cat >> confdefs.h <<\EOF |
21d1c967 | 14693 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 14694 | EOF |
90dd450c | 14695 | |
a0b9e27f | 14696 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14697 | else |
a0b9e27f MB |
14698 | echo "$ac_t""no" 1>&6 |
14699 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
21d1c967 GD |
14700 | fi |
14701 | ||
14702 | mesa_link= | |
a0b9e27f | 14703 | echo $ac_n "checking for Mesa library""... $ac_c" 1>&6 |
34bed6d9 | 14704 | echo "configure:14705: checking for Mesa library" >&5 |
a0b9e27f | 14705 | |
90dd450c | 14706 | ac_find_libraries= |
2b5f62a0 | 14707 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
14708 | do |
14709 | for ac_extension in a so sl dylib; do | |
14710 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
14711 | ac_find_libraries=$ac_dir | |
14712 | break 2 | |
14713 | fi | |
14714 | done | |
14715 | done | |
14716 | ||
21d1c967 GD |
14717 | if test "$ac_find_libraries" != "" ; then |
14718 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries" | |
14719 | mesa_link=" -lMesaGL" | |
a0b9e27f | 14720 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 14721 | else |
3bce6687 JS |
14722 | mesa_link="" |
14723 | echo "$ac_t""no" 1>&6 | |
14724 | echo "configure: warning: library will be compiled without Mesa support" 1>&2 | |
21d1c967 GD |
14725 | fi |
14726 | ||
14727 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses" | |
14728 | TOOLKIT=MSW | |
14729 | GUIDIST=MSW_DIST | |
14730 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__" | |
14731 | fi | |
14732 | ||
14733 | if test "$wxUSE_MOTIF" = 1; then | |
14734 | if test "$no_x" = yes; then | |
14735 | # Not all programs may use this symbol, but it does not hurt to define it. | |
a0b9e27f | 14736 | cat >> confdefs.h <<\EOF |
21d1c967 | 14737 | #define X_DISPLAY_MISSING 1 |
a0b9e27f | 14738 | EOF |
21d1c967 GD |
14739 | |
14740 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
14741 | else | |
14742 | if test -n "$x_includes"; then | |
14743 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
14744 | fi |
14745 | ||
21d1c967 GD |
14746 | # It would also be nice to do this for all -L options, not just this one. |
14747 | if test -n "$x_libraries"; then | |
14748 | X_LIBS="$X_LIBS -L$x_libraries" | |
14749 | # For Solaris; some versions of Sun CC require a space after -R and | |
14750 | # others require no space. Words are not sufficient . . . . | |
a0b9e27f | 14751 | case "`(uname -sr) 2>/dev/null`" in |
21d1c967 | 14752 | "SunOS 5"*) |
a0b9e27f | 14753 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
34bed6d9 | 14754 | echo "configure:14755: checking whether -R must be followed by a space" >&5 |
a0b9e27f MB |
14755 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
14756 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 14757 | #line 14758 "configure" |
21d1c967 GD |
14758 | #include "confdefs.h" |
14759 | ||
a0b9e27f | 14760 | int main() { |
21d1c967 | 14761 | |
a0b9e27f MB |
14762 | ; return 0; } |
14763 | EOF | |
34bed6d9 | 14764 | if { (eval echo configure:14765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14765 | rm -rf conftest* |
21d1c967 | 14766 | ac_R_nospace=yes |
698dcdb6 | 14767 | else |
a0b9e27f MB |
14768 | echo "configure: failed program was:" >&5 |
14769 | cat conftest.$ac_ext >&5 | |
14770 | rm -rf conftest* | |
14771 | ac_R_nospace=no | |
10f2d63a | 14772 | fi |
a0b9e27f | 14773 | rm -f conftest* |
21d1c967 | 14774 | if test $ac_R_nospace = yes; then |
a0b9e27f | 14775 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
14776 | X_LIBS="$X_LIBS -R$x_libraries" |
14777 | else | |
14778 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
a0b9e27f | 14779 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14780 | #line 14781 "configure" |
21d1c967 | 14781 | #include "confdefs.h" |
10f2d63a | 14782 | |
a0b9e27f | 14783 | int main() { |
f0c87536 | 14784 | |
a0b9e27f MB |
14785 | ; return 0; } |
14786 | EOF | |
34bed6d9 | 14787 | if { (eval echo configure:14788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 14788 | rm -rf conftest* |
21d1c967 GD |
14789 | ac_R_space=yes |
14790 | else | |
a0b9e27f MB |
14791 | echo "configure: failed program was:" >&5 |
14792 | cat conftest.$ac_ext >&5 | |
14793 | rm -rf conftest* | |
14794 | ac_R_space=no | |
21d1c967 | 14795 | fi |
a0b9e27f | 14796 | rm -f conftest* |
21d1c967 | 14797 | if test $ac_R_space = yes; then |
a0b9e27f | 14798 | echo "$ac_t""yes" 1>&6 |
21d1c967 GD |
14799 | X_LIBS="$X_LIBS -R $x_libraries" |
14800 | else | |
a0b9e27f | 14801 | echo "$ac_t""neither works" 1>&6 |
21d1c967 GD |
14802 | fi |
14803 | fi | |
a0b9e27f | 14804 | LIBS="$ac_xsave_LIBS" |
21d1c967 GD |
14805 | esac |
14806 | fi | |
90dd450c | 14807 | |
21d1c967 GD |
14808 | # Check for system-dependent libraries X programs must link with. |
14809 | # Do this before checking for the system-independent R6 libraries | |
14810 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
14811 | ||
14812 | if test "$ISC" = yes; then | |
14813 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
14814 | else | |
a0b9e27f MB |
14815 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
14816 | # libraries were built with DECnet support. And karl@cs.umb.edu says | |
21d1c967 | 14817 | # the Alpha needs dnet_stub (dnet does not exist). |
a0b9e27f | 14818 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
34bed6d9 | 14819 | echo "configure:14820: checking for dnet_ntoa in -ldnet" >&5 |
a0b9e27f MB |
14820 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14821 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14822 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 14823 | else |
a0b9e27f | 14824 | ac_save_LIBS="$LIBS" |
247f5006 | 14825 | LIBS="-ldnet $LIBS" |
a0b9e27f | 14826 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14827 | #line 14828 "configure" |
247f5006 | 14828 | #include "confdefs.h" |
247f5006 | 14829 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 | 14830 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
14831 | builtin and then its argument prototype would still apply. */ |
14832 | char dnet_ntoa(); | |
14833 | ||
14834 | int main() { | |
14835 | dnet_ntoa() | |
14836 | ; return 0; } | |
14837 | EOF | |
34bed6d9 | 14838 | if { (eval echo configure:14839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14839 | rm -rf conftest* |
14840 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14841 | else | |
14842 | echo "configure: failed program was:" >&5 | |
14843 | cat conftest.$ac_ext >&5 | |
14844 | rm -rf conftest* | |
14845 | eval "ac_cv_lib_$ac_lib_var=no" | |
14846 | fi | |
14847 | rm -f conftest* | |
14848 | LIBS="$ac_save_LIBS" | |
14849 | ||
14850 | fi | |
14851 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14852 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14853 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
a0b9e27f MB |
14854 | else |
14855 | echo "$ac_t""no" 1>&6 | |
0fb0dd83 | 14856 | fi |
0fb0dd83 | 14857 | |
21d1c967 | 14858 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
a0b9e27f | 14859 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
34bed6d9 | 14860 | echo "configure:14861: checking for dnet_ntoa in -ldnet_stub" >&5 |
a0b9e27f MB |
14861 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
14862 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14863 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14864 | else |
a0b9e27f | 14865 | ac_save_LIBS="$LIBS" |
21d1c967 | 14866 | LIBS="-ldnet_stub $LIBS" |
a0b9e27f | 14867 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14868 | #line 14869 "configure" |
21d1c967 GD |
14869 | #include "confdefs.h" |
14870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14871 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14872 | builtin and then its argument prototype would still apply. */ |
14873 | char dnet_ntoa(); | |
14874 | ||
14875 | int main() { | |
14876 | dnet_ntoa() | |
14877 | ; return 0; } | |
14878 | EOF | |
34bed6d9 | 14879 | if { (eval echo configure:14880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14880 | rm -rf conftest* |
14881 | eval "ac_cv_lib_$ac_lib_var=yes" | |
14882 | else | |
14883 | echo "configure: failed program was:" >&5 | |
14884 | cat conftest.$ac_ext >&5 | |
14885 | rm -rf conftest* | |
14886 | eval "ac_cv_lib_$ac_lib_var=no" | |
14887 | fi | |
14888 | rm -f conftest* | |
14889 | LIBS="$ac_save_LIBS" | |
14890 | ||
14891 | fi | |
14892 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14893 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 14894 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
a0b9e27f MB |
14895 | else |
14896 | echo "$ac_t""no" 1>&6 | |
90dd450c VZ |
14897 | fi |
14898 | ||
21d1c967 | 14899 | fi |
90dd450c | 14900 | |
21d1c967 GD |
14901 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
14902 | # to get the SysV transport functions. | |
a0b9e27f | 14903 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
14904 | # needs -lnsl. |
14905 | # The nsl library prevents programs from opening the X display | |
a0b9e27f MB |
14906 | # on Irix 5.2, according to dickey@clark.net. |
14907 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 | |
34bed6d9 | 14908 | echo "configure:14909: checking for gethostbyname" >&5 |
a0b9e27f MB |
14909 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
14910 | echo $ac_n "(cached) $ac_c" 1>&6 | |
14911 | else | |
14912 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 14913 | #line 14914 "configure" |
21d1c967 GD |
14914 | #include "confdefs.h" |
14915 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 14916 | which can conflict with char gethostbyname(); below. */ |
21d1c967 GD |
14917 | #include <assert.h> |
14918 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14919 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14920 | builtin and then its argument prototype would still apply. */ |
14921 | char gethostbyname(); | |
14922 | ||
14923 | int main() { | |
14924 | ||
21d1c967 GD |
14925 | /* The GNU C library defines this for functions which it implements |
14926 | to always fail with ENOSYS. Some functions are actually named | |
14927 | something starting with __ and the normal name is an alias. */ | |
14928 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
14929 | choke me | |
14930 | #else | |
a0b9e27f | 14931 | gethostbyname(); |
21d1c967 | 14932 | #endif |
90dd450c | 14933 | |
a0b9e27f MB |
14934 | ; return 0; } |
14935 | EOF | |
34bed6d9 | 14936 | if { (eval echo configure:14937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14937 | rm -rf conftest* |
14938 | eval "ac_cv_func_gethostbyname=yes" | |
14939 | else | |
14940 | echo "configure: failed program was:" >&5 | |
14941 | cat conftest.$ac_ext >&5 | |
14942 | rm -rf conftest* | |
14943 | eval "ac_cv_func_gethostbyname=no" | |
14944 | fi | |
14945 | rm -f conftest* | |
14946 | fi | |
14947 | ||
14948 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then | |
14949 | echo "$ac_t""yes" 1>&6 | |
14950 | : | |
14951 | else | |
14952 | echo "$ac_t""no" 1>&6 | |
14953 | fi | |
90dd450c | 14954 | |
21d1c967 | 14955 | if test $ac_cv_func_gethostbyname = no; then |
a0b9e27f | 14956 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
34bed6d9 | 14957 | echo "configure:14958: checking for gethostbyname in -lnsl" >&5 |
a0b9e27f MB |
14958 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
14959 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
14960 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 14961 | else |
a0b9e27f | 14962 | ac_save_LIBS="$LIBS" |
21d1c967 | 14963 | LIBS="-lnsl $LIBS" |
a0b9e27f | 14964 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 14965 | #line 14966 "configure" |
21d1c967 GD |
14966 | #include "confdefs.h" |
14967 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14968 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
14969 | builtin and then its argument prototype would still apply. */ |
14970 | char gethostbyname(); | |
5c6fa7d2 | 14971 | |
a0b9e27f MB |
14972 | int main() { |
14973 | gethostbyname() | |
14974 | ; return 0; } | |
14975 | EOF | |
34bed6d9 | 14976 | if { (eval echo configure:14977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
14977 | rm -rf conftest* |
14978 | eval "ac_cv_lib_$ac_lib_var=yes" | |
8284b0c5 | 14979 | else |
a0b9e27f MB |
14980 | echo "configure: failed program was:" >&5 |
14981 | cat conftest.$ac_ext >&5 | |
14982 | rm -rf conftest* | |
14983 | eval "ac_cv_lib_$ac_lib_var=no" | |
14984 | fi | |
14985 | rm -f conftest* | |
14986 | LIBS="$ac_save_LIBS" | |
247f5006 | 14987 | |
a0b9e27f MB |
14988 | fi |
14989 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
14990 | echo "$ac_t""yes" 1>&6 | |
14991 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
14992 | else | |
14993 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 14994 | fi |
90dd450c | 14995 | |
90dd450c VZ |
14996 | fi |
14997 | ||
21d1c967 GD |
14998 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
14999 | # socket/setsockopt and other routines are undefined under SCO ODT | |
15000 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
a0b9e27f MB |
15001 | # on later versions), says simon@lia.di.epfl.ch: it contains |
15002 | # gethostby* variants that don't use the nameserver (or something). | |
15003 | # -lsocket must be given before -lnsl if both are needed. | |
15004 | # We assume that if connect needs -lnsl, so does gethostbyname. | |
15005 | echo $ac_n "checking for connect""... $ac_c" 1>&6 | |
34bed6d9 | 15006 | echo "configure:15007: checking for connect" >&5 |
a0b9e27f MB |
15007 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
15008 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15009 | else | |
15010 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 15011 | #line 15012 "configure" |
21d1c967 GD |
15012 | #include "confdefs.h" |
15013 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15014 | which can conflict with char connect(); below. */ |
21d1c967 GD |
15015 | #include <assert.h> |
15016 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15017 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15018 | builtin and then its argument prototype would still apply. */ |
15019 | char connect(); | |
15020 | ||
15021 | int main() { | |
15022 | ||
21d1c967 GD |
15023 | /* The GNU C library defines this for functions which it implements |
15024 | to always fail with ENOSYS. Some functions are actually named | |
15025 | something starting with __ and the normal name is an alias. */ | |
15026 | #if defined (__stub_connect) || defined (__stub___connect) | |
15027 | choke me | |
15028 | #else | |
a0b9e27f | 15029 | connect(); |
21d1c967 | 15030 | #endif |
90dd450c | 15031 | |
a0b9e27f MB |
15032 | ; return 0; } |
15033 | EOF | |
34bed6d9 | 15034 | if { (eval echo configure:15035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15035 | rm -rf conftest* |
15036 | eval "ac_cv_func_connect=yes" | |
15037 | else | |
15038 | echo "configure: failed program was:" >&5 | |
15039 | cat conftest.$ac_ext >&5 | |
15040 | rm -rf conftest* | |
15041 | eval "ac_cv_func_connect=no" | |
15042 | fi | |
15043 | rm -f conftest* | |
15044 | fi | |
15045 | ||
15046 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then | |
15047 | echo "$ac_t""yes" 1>&6 | |
15048 | : | |
15049 | else | |
15050 | echo "$ac_t""no" 1>&6 | |
15051 | fi | |
1f8ae82f | 15052 | |
21d1c967 | 15053 | if test $ac_cv_func_connect = no; then |
a0b9e27f | 15054 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
34bed6d9 | 15055 | echo "configure:15056: checking for connect in -lsocket" >&5 |
a0b9e27f MB |
15056 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
15057 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15058 | echo $ac_n "(cached) $ac_c" 1>&6 | |
0fbb762e | 15059 | else |
a0b9e27f | 15060 | ac_save_LIBS="$LIBS" |
21d1c967 | 15061 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15062 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15063 | #line 15064 "configure" |
0fbb762e | 15064 | #include "confdefs.h" |
21d1c967 GD |
15065 | /* Override any gcc2 internal prototype to avoid an error. */ |
15066 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15067 | builtin and then its argument prototype would still apply. */ |
15068 | char connect(); | |
15069 | ||
15070 | int main() { | |
15071 | connect() | |
15072 | ; return 0; } | |
15073 | EOF | |
34bed6d9 | 15074 | if { (eval echo configure:15075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15075 | rm -rf conftest* |
15076 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15077 | else | |
15078 | echo "configure: failed program was:" >&5 | |
15079 | cat conftest.$ac_ext >&5 | |
15080 | rm -rf conftest* | |
15081 | eval "ac_cv_lib_$ac_lib_var=no" | |
15082 | fi | |
15083 | rm -f conftest* | |
15084 | LIBS="$ac_save_LIBS" | |
15085 | ||
15086 | fi | |
15087 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15088 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15089 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
a0b9e27f MB |
15090 | else |
15091 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15092 | fi |
90dd450c | 15093 | |
21d1c967 | 15094 | fi |
90dd450c | 15095 | |
a0b9e27f MB |
15096 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
15097 | echo $ac_n "checking for remove""... $ac_c" 1>&6 | |
34bed6d9 | 15098 | echo "configure:15099: checking for remove" >&5 |
a0b9e27f MB |
15099 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
15100 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15101 | else |
a0b9e27f | 15102 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15103 | #line 15104 "configure" |
21d1c967 GD |
15104 | #include "confdefs.h" |
15105 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15106 | which can conflict with char remove(); below. */ |
21d1c967 GD |
15107 | #include <assert.h> |
15108 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15109 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15110 | builtin and then its argument prototype would still apply. */ |
15111 | char remove(); | |
15112 | ||
15113 | int main() { | |
15114 | ||
21d1c967 GD |
15115 | /* The GNU C library defines this for functions which it implements |
15116 | to always fail with ENOSYS. Some functions are actually named | |
15117 | something starting with __ and the normal name is an alias. */ | |
15118 | #if defined (__stub_remove) || defined (__stub___remove) | |
15119 | choke me | |
15120 | #else | |
a0b9e27f | 15121 | remove(); |
21d1c967 | 15122 | #endif |
90dd450c | 15123 | |
a0b9e27f MB |
15124 | ; return 0; } |
15125 | EOF | |
34bed6d9 | 15126 | if { (eval echo configure:15127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15127 | rm -rf conftest* |
15128 | eval "ac_cv_func_remove=yes" | |
15129 | else | |
15130 | echo "configure: failed program was:" >&5 | |
15131 | cat conftest.$ac_ext >&5 | |
15132 | rm -rf conftest* | |
15133 | eval "ac_cv_func_remove=no" | |
15134 | fi | |
15135 | rm -f conftest* | |
15136 | fi | |
15137 | ||
15138 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then | |
15139 | echo "$ac_t""yes" 1>&6 | |
15140 | : | |
15141 | else | |
15142 | echo "$ac_t""no" 1>&6 | |
15143 | fi | |
90dd450c | 15144 | |
21d1c967 | 15145 | if test $ac_cv_func_remove = no; then |
a0b9e27f | 15146 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
34bed6d9 | 15147 | echo "configure:15148: checking for remove in -lposix" >&5 |
a0b9e27f MB |
15148 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
15149 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15150 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15151 | else |
a0b9e27f | 15152 | ac_save_LIBS="$LIBS" |
21d1c967 | 15153 | LIBS="-lposix $LIBS" |
a0b9e27f | 15154 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15155 | #line 15156 "configure" |
21d1c967 GD |
15156 | #include "confdefs.h" |
15157 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15158 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15159 | builtin and then its argument prototype would still apply. */ |
15160 | char remove(); | |
15161 | ||
15162 | int main() { | |
15163 | remove() | |
15164 | ; return 0; } | |
15165 | EOF | |
34bed6d9 | 15166 | if { (eval echo configure:15167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15167 | rm -rf conftest* |
15168 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15169 | else | |
15170 | echo "configure: failed program was:" >&5 | |
15171 | cat conftest.$ac_ext >&5 | |
15172 | rm -rf conftest* | |
15173 | eval "ac_cv_lib_$ac_lib_var=no" | |
15174 | fi | |
15175 | rm -f conftest* | |
15176 | LIBS="$ac_save_LIBS" | |
15177 | ||
15178 | fi | |
15179 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15180 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15181 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
a0b9e27f MB |
15182 | else |
15183 | echo "$ac_t""no" 1>&6 | |
21d1c967 | 15184 | fi |
19bc6aad | 15185 | |
90dd450c | 15186 | fi |
19bc6aad | 15187 | |
21d1c967 | 15188 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
a0b9e27f | 15189 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
34bed6d9 | 15190 | echo "configure:15191: checking for shmat" >&5 |
a0b9e27f MB |
15191 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
15192 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21d1c967 | 15193 | else |
a0b9e27f | 15194 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15195 | #line 15196 "configure" |
21d1c967 GD |
15196 | #include "confdefs.h" |
15197 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 15198 | which can conflict with char shmat(); below. */ |
21d1c967 GD |
15199 | #include <assert.h> |
15200 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15201 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15202 | builtin and then its argument prototype would still apply. */ |
15203 | char shmat(); | |
15204 | ||
15205 | int main() { | |
15206 | ||
21d1c967 GD |
15207 | /* The GNU C library defines this for functions which it implements |
15208 | to always fail with ENOSYS. Some functions are actually named | |
15209 | something starting with __ and the normal name is an alias. */ | |
15210 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
15211 | choke me | |
15212 | #else | |
a0b9e27f | 15213 | shmat(); |
21d1c967 | 15214 | #endif |
90dd450c | 15215 | |
a0b9e27f MB |
15216 | ; return 0; } |
15217 | EOF | |
34bed6d9 | 15218 | if { (eval echo configure:15219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15219 | rm -rf conftest* |
15220 | eval "ac_cv_func_shmat=yes" | |
15221 | else | |
15222 | echo "configure: failed program was:" >&5 | |
15223 | cat conftest.$ac_ext >&5 | |
15224 | rm -rf conftest* | |
15225 | eval "ac_cv_func_shmat=no" | |
15226 | fi | |
15227 | rm -f conftest* | |
15228 | fi | |
15229 | ||
15230 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then | |
15231 | echo "$ac_t""yes" 1>&6 | |
15232 | : | |
15233 | else | |
15234 | echo "$ac_t""no" 1>&6 | |
15235 | fi | |
19bc6aad | 15236 | |
21d1c967 | 15237 | if test $ac_cv_func_shmat = no; then |
a0b9e27f | 15238 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
34bed6d9 | 15239 | echo "configure:15240: checking for shmat in -lipc" >&5 |
a0b9e27f MB |
15240 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
15241 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15242 | echo $ac_n "(cached) $ac_c" 1>&6 | |
5c6fa7d2 | 15243 | else |
a0b9e27f | 15244 | ac_save_LIBS="$LIBS" |
5c6fa7d2 | 15245 | LIBS="-lipc $LIBS" |
a0b9e27f | 15246 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15247 | #line 15248 "configure" |
5c6fa7d2 | 15248 | #include "confdefs.h" |
5c6fa7d2 | 15249 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 15250 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
15251 | builtin and then its argument prototype would still apply. */ |
15252 | char shmat(); | |
15253 | ||
15254 | int main() { | |
15255 | shmat() | |
15256 | ; return 0; } | |
15257 | EOF | |
34bed6d9 | 15258 | if { (eval echo configure:15259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15259 | rm -rf conftest* |
15260 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15261 | else | |
15262 | echo "configure: failed program was:" >&5 | |
15263 | cat conftest.$ac_ext >&5 | |
15264 | rm -rf conftest* | |
15265 | eval "ac_cv_lib_$ac_lib_var=no" | |
15266 | fi | |
15267 | rm -f conftest* | |
15268 | LIBS="$ac_save_LIBS" | |
15269 | ||
15270 | fi | |
15271 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15272 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15273 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
a0b9e27f MB |
15274 | else |
15275 | echo "$ac_t""no" 1>&6 | |
9f8148b1 | 15276 | fi |
90dd450c | 15277 | |
90dd450c | 15278 | fi |
21d1c967 | 15279 | fi |
10f2d63a | 15280 | |
21d1c967 | 15281 | # Check for libraries that X11R6 Xt/Xaw programs need. |
a0b9e27f | 15282 | ac_save_LDFLAGS="$LDFLAGS" |
21d1c967 GD |
15283 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
15284 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
15285 | # check for ICE first), but we must link in the order -lSM -lICE or | |
15286 | # we get undefined symbols. So assume we have SM if we have ICE. | |
15287 | # These have to be linked with before -lX11, unlike the other | |
15288 | # libraries we check for below, so use a different variable. | |
a0b9e27f MB |
15289 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
15290 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 | |
34bed6d9 | 15291 | echo "configure:15292: checking for IceConnectionNumber in -lICE" >&5 |
a0b9e27f MB |
15292 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
15293 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
15294 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15295 | else | |
15296 | ac_save_LIBS="$LIBS" | |
f09359cf | 15297 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
a0b9e27f | 15298 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15299 | #line 15300 "configure" |
29fd3c0c | 15300 | #include "confdefs.h" |
21d1c967 GD |
15301 | /* Override any gcc2 internal prototype to avoid an error. */ |
15302 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
15303 | builtin and then its argument prototype would still apply. */ |
15304 | char IceConnectionNumber(); | |
15305 | ||
15306 | int main() { | |
15307 | IceConnectionNumber() | |
15308 | ; return 0; } | |
15309 | EOF | |
34bed6d9 | 15310 | if { (eval echo configure:15311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15311 | rm -rf conftest* |
15312 | eval "ac_cv_lib_$ac_lib_var=yes" | |
15313 | else | |
15314 | echo "configure: failed program was:" >&5 | |
15315 | cat conftest.$ac_ext >&5 | |
15316 | rm -rf conftest* | |
15317 | eval "ac_cv_lib_$ac_lib_var=no" | |
15318 | fi | |
15319 | rm -f conftest* | |
15320 | LIBS="$ac_save_LIBS" | |
15321 | ||
15322 | fi | |
15323 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
15324 | echo "$ac_t""yes" 1>&6 | |
21d1c967 | 15325 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
a0b9e27f MB |
15326 | else |
15327 | echo "$ac_t""no" 1>&6 | |
29fd3c0c | 15328 | fi |
21d1c967 | 15329 | |
a0b9e27f | 15330 | LDFLAGS="$ac_save_LDFLAGS" |
29fd3c0c | 15331 | |
10f2d63a VZ |
15332 | fi |
15333 | ||
8284b0c5 | 15334 | |
21d1c967 | 15335 | if test "$no_x" = "yes"; then |
a0b9e27f | 15336 | { echo "configure: error: X11 not found" 1>&2; exit 1; } |
21d1c967 GD |
15337 | fi |
15338 | ||
2b5f62a0 VZ |
15339 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
15340 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
15341 | AFMINSTALL=afminstall |
15342 | COMPILED_X_PROGRAM=0 | |
15343 | ||
a0b9e27f | 15344 | echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6 |
34bed6d9 | 15345 | echo "configure:15346: checking for Motif/Lesstif headers" >&5 |
a0b9e27f | 15346 | |
21d1c967 | 15347 | ac_find_includes= |
2b5f62a0 | 15348 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
15349 | do |
15350 | if test -f "$ac_dir/Xm/Xm.h"; then | |
15351 | ac_find_includes=$ac_dir | |
15352 | break | |
15353 | fi | |
15354 | done | |
15355 | ||
15356 | if test "$ac_find_includes" != "" ; then | |
a0b9e27f MB |
15357 | echo "$ac_t""found in $ac_find_includes" 1>&6 |
15358 | ||
2b5f62a0 | 15359 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
15360 | ac_path_to_include="" |
15361 | else | |
2b5f62a0 VZ |
15362 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
15363 | result=$? | |
15364 | if test $result = 0; then | |
15365 | ac_path_to_include="" | |
15366 | else | |
15367 | ac_path_to_include=" -I$ac_find_includes" | |
15368 | fi | |
dd0e4a90 VZ |
15369 | fi |
15370 | ||
15371 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 15372 | else |
a0b9e27f | 15373 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15374 | #line 15375 "configure" |
10f2d63a | 15375 | #include "confdefs.h" |
21d1c967 GD |
15376 | |
15377 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15378 | |
15379 | int main() { | |
21d1c967 GD |
15380 | |
15381 | int version; | |
15382 | version = xmUseVersion; | |
a0b9e27f MB |
15383 | |
15384 | ; return 0; } | |
15385 | EOF | |
34bed6d9 | 15386 | if { (eval echo configure:15387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15387 | rm -rf conftest* |
15388 | ||
15389 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15390 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15391 | |
10f2d63a | 15392 | else |
a0b9e27f MB |
15393 | echo "configure: failed program was:" >&5 |
15394 | cat conftest.$ac_ext >&5 | |
15395 | rm -rf conftest* | |
15396 | ||
15397 | echo "$ac_t""no" 1>&6 | |
15398 | { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; } | |
15399 | ||
15400 | ||
10f2d63a | 15401 | fi |
a0b9e27f | 15402 | rm -f conftest* |
21d1c967 | 15403 | fi |
10f2d63a | 15404 | |
21d1c967 | 15405 | if test "$COMPILED_X_PROGRAM" = 0; then |
a0b9e27f | 15406 | echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6 |
34bed6d9 | 15407 | echo "configure:15408: checking for Motif/Lesstif library" >&5 |
a0b9e27f | 15408 | |
21d1c967 | 15409 | ac_find_libraries= |
2b5f62a0 | 15410 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15411 | do |
15412 | for ac_extension in a so sl dylib; do | |
15413 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
15414 | ac_find_libraries=$ac_dir | |
15415 | break 2 | |
15416 | fi | |
15417 | done | |
15418 | done | |
15419 | ||
15420 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15421 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15422 | |
a0b9e27f | 15423 | |
21d1c967 GD |
15424 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15425 | result=$? | |
15426 | if test $result = 0; then | |
15427 | ac_path_to_link="" | |
15428 | else | |
15429 | ac_path_to_link=" -L$ac_find_libraries" | |
15430 | fi | |
15431 | ||
21d1c967 | 15432 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 15433 | else |
dd0e4a90 VZ |
15434 | save_CFLAGS=$CFLAGS |
15435 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15436 | ||
a0b9e27f | 15437 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15438 | #line 15439 "configure" |
d836ee96 | 15439 | #include "confdefs.h" |
21d1c967 GD |
15440 | |
15441 | #include <Xm/Xm.h> | |
a0b9e27f MB |
15442 | |
15443 | int main() { | |
21d1c967 GD |
15444 | |
15445 | int version; | |
15446 | version = xmUseVersion; | |
a0b9e27f MB |
15447 | |
15448 | ; return 0; } | |
15449 | EOF | |
34bed6d9 | 15450 | if { (eval echo configure:15451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15451 | rm -rf conftest* |
15452 | ||
15453 | echo "$ac_t""found in default search path" 1>&6 | |
21d1c967 | 15454 | COMPILED_X_PROGRAM=1 |
a0b9e27f | 15455 | |
d836ee96 | 15456 | else |
a0b9e27f MB |
15457 | echo "configure: failed program was:" >&5 |
15458 | cat conftest.$ac_ext >&5 | |
15459 | rm -rf conftest* | |
15460 | ||
15461 | echo "$ac_t""no" 1>&6 | |
15462 | { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; } | |
15463 | ||
15464 | ||
d836ee96 | 15465 | fi |
a0b9e27f | 15466 | rm -f conftest* |
dd0e4a90 VZ |
15467 | |
15468 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15469 | fi |
15470 | fi | |
15471 | ||
15472 | xpm_link= | |
a0b9e27f | 15473 | echo $ac_n "checking for Xpm library""... $ac_c" 1>&6 |
34bed6d9 | 15474 | echo "configure:15475: checking for Xpm library" >&5 |
a0b9e27f | 15475 | |
21d1c967 | 15476 | ac_find_libraries= |
2b5f62a0 | 15477 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15478 | do |
15479 | for ac_extension in a so sl dylib; do | |
15480 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
15481 | ac_find_libraries=$ac_dir | |
15482 | break 2 | |
15483 | fi | |
15484 | done | |
15485 | done | |
15486 | ||
15487 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15488 | |
21d1c967 GD |
15489 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
15490 | result=$? | |
15491 | if test $result = 0; then | |
15492 | ac_path_to_link="" | |
15493 | else | |
15494 | ac_path_to_link=" -L$ac_find_libraries" | |
15495 | fi | |
15496 | ||
15497 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 15498 | |
21d1c967 | 15499 | xpm_link=" -lXpm" |
a0b9e27f | 15500 | cat >> confdefs.h <<\EOF |
21d1c967 | 15501 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15502 | EOF |
90dd450c | 15503 | |
a0b9e27f | 15504 | echo "$ac_t""found at $ac_find_libraries" 1>&6 |
21d1c967 | 15505 | else |
dd0e4a90 VZ |
15506 | save_CFLAGS=$CFLAGS |
15507 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15508 | ||
a0b9e27f | 15509 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15510 | #line 15511 "configure" |
d836ee96 | 15511 | #include "confdefs.h" |
21d1c967 GD |
15512 | |
15513 | #include <X11/xpm.h> | |
a0b9e27f MB |
15514 | |
15515 | int main() { | |
21d1c967 GD |
15516 | |
15517 | int version; | |
15518 | version = XpmLibraryVersion(); | |
a0b9e27f MB |
15519 | |
15520 | ; return 0; } | |
15521 | EOF | |
34bed6d9 | 15522 | if { (eval echo configure:15523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
15523 | rm -rf conftest* |
15524 | ||
21d1c967 | 15525 | xpm_link=" -lXpm" |
a0b9e27f | 15526 | cat >> confdefs.h <<\EOF |
21d1c967 | 15527 | #define wxHAVE_LIB_XPM 1 |
a0b9e27f | 15528 | EOF |
21d1c967 | 15529 | |
a0b9e27f | 15530 | echo "$ac_t""found in default search path" 1>&6 |
21d1c967 | 15531 | COMPILED_X_PROGRAM=0 |
a0b9e27f | 15532 | |
d836ee96 | 15533 | else |
a0b9e27f MB |
15534 | echo "configure: failed program was:" >&5 |
15535 | cat conftest.$ac_ext >&5 | |
15536 | rm -rf conftest* | |
15537 | ||
15538 | echo "$ac_t""no" 1>&6 | |
15539 | echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2 | |
15540 | ||
15541 | ||
d836ee96 | 15542 | fi |
a0b9e27f | 15543 | rm -f conftest* |
dd0e4a90 VZ |
15544 | |
15545 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
15546 | fi |
15547 | ||
a0b9e27f | 15548 | echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6 |
34bed6d9 | 15549 | echo "configure:15550: checking if we need -lXp and/or -lSM -lICE" >&5 |
6a30f1c8 MB |
15550 | libp_link="" |
15551 | libsm_ice_link="" | |
15552 | libs_found=0 | |
15553 | for libp in "" " -lXp"; do | |
15554 | if test "$libs_found" = "0"; then | |
15555 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 15556 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
15557 | save_LIBS="$LIBS" |
15558 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
15559 | save_CFLAGS=$CFLAGS |
15560 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
15561 | ||
a0b9e27f | 15562 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 15563 | #line 15564 "configure" |
6a30f1c8 | 15564 | #include "confdefs.h" |
17234b26 | 15565 | |
6a30f1c8 MB |
15566 | #include <Xm/Xm.h> |
15567 | #include <Xm/List.h> | |
a0b9e27f MB |
15568 | |
15569 | int main() { | |
6a30f1c8 MB |
15570 | |
15571 | XmString string = NULL; | |
15572 | Widget w = NULL; | |
15573 | int position = 0; | |
15574 | XmListAddItem(w, string, position); | |
a0b9e27f MB |
15575 | |
15576 | ; return 0; } | |
15577 | EOF | |
34bed6d9 | 15578 | if { (eval echo configure:15579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
15579 | rm -rf conftest* |
15580 | ||
6a30f1c8 MB |
15581 | libp_link="$libp" |
15582 | libsm_ice_link="$libsm_ice" | |
a0b9e27f | 15583 | echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6 |
6a30f1c8 | 15584 | libs_found=1 |
a0b9e27f | 15585 | |
6a30f1c8 | 15586 | else |
a0b9e27f MB |
15587 | echo "configure: failed program was:" >&5 |
15588 | cat conftest.$ac_ext >&5 | |
15589 | rm -rf conftest* | |
15590 | ||
15591 | ||
6a30f1c8 | 15592 | fi |
a0b9e27f | 15593 | rm -f conftest* |
dd0e4a90 | 15594 | |
6a30f1c8 | 15595 | LIBS="$save_LIBS" |
dd0e4a90 | 15596 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
15597 | fi |
15598 | done | |
15599 | fi | |
15600 | done | |
15601 | ||
15602 | if test "$libs_found" = "0"; then | |
a0b9e27f MB |
15603 | echo "$ac_t""can't find the right libraries" 1>&6 |
15604 | { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; } | |
6a30f1c8 MB |
15605 | fi |
15606 | ||
15607 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
21d1c967 GD |
15608 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo" |
15609 | TOOLKIT=MOTIF | |
15610 | GUIDIST=MOTIF_DIST | |
15611 | fi | |
15612 | ||
15613 | if test "$wxUSE_MAC" = 1; then | |
b2fee376 | 15614 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefile -I/Developer/Headers/FlatCarbon" |
21d1c967 GD |
15615 | |
15616 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile" | |
15617 | TOOLKIT=MAC | |
15618 | GUIDIST=MACX_DIST | |
15619 | fi | |
15620 | ||
15621 | if test "$wxUSE_PM" = 1; then | |
15622 | TOOLKIT=PM | |
15623 | GUIDIST=GTK_DIST | |
2b5f62a0 VZ |
15624 | echo "configure: warning: OS/2 PM requires old resource format, re-enabled" 1>&2 |
15625 | wxUSE_PROLOGIO="yes" | |
15626 | wxUSE_RESOURCES="yes" | |
15627 | echo "configure: warning: OS/2 threads are not yet supported... disabled" 1>&2 | |
15628 | wxUSE_THREADS="no" | |
21d1c967 GD |
15629 | fi |
15630 | ||
15631 | if test "$TOOLKIT" = "PM" ; then | |
15632 | TOOLKIT_DIR="os2" | |
15633 | else | |
15634 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
15635 | fi | |
15636 | ||
15637 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
15638 | ||
15639 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
15640 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
15641 | ||
15642 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
15643 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
15644 | ||
15645 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
15646 | if test "$wxUSE_X11" = 1; then | |
15647 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
15648 | else | |
15649 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
15650 | fi | |
15651 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
15652 | WIDGET_SET=univ | |
15653 | else | |
15654 | ALL_OBJECTS="\$(GUIOBJS)" | |
15655 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15656 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15657 | fi | |
15658 | ||
15659 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
15660 | ||
15661 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
15662 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
15663 | fi | |
15664 | ||
15665 | if test "$wxUSE_HTML" = "yes"; then | |
15666 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
15667 | fi | |
15668 | ||
15669 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
15670 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
15671 | fi | |
15672 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
15673 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
15674 | fi | |
15675 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
15676 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
15677 | fi | |
15678 | ||
15679 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
15680 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 15681 | else |
21d1c967 GD |
15682 | USE_GUI=0 |
15683 | ||
15684 | TOOLKIT_DIR="base" | |
15685 | ||
15686 | if test "$USE_WIN32" = 1 ; then | |
15687 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
15688 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
15689 | ||
15690 | TOOLKIT="MSW" | |
15691 | else | |
15692 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
15693 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
15694 | fi | |
15695 | ||
15696 | ALL_SOURCES="\$(ALL_SOURCES)" | |
15697 | ALL_HEADERS="\$(ALL_HEADERS)" | |
15698 | ||
15699 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
15700 | ||
15701 | GUIDIST="BASE_DIST" | |
15702 | DISTDIR="wxBase" | |
d836ee96 VZ |
15703 | fi |
15704 | ||
8284b0c5 | 15705 | |
21d1c967 GD |
15706 | if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then |
15707 | ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)" | |
6232543b | 15708 | fi |
21d1c967 GD |
15709 | |
15710 | if test "$wxUSE_REGEX" = "builtin" ; then | |
15711 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 15712 | fi |
21d1c967 GD |
15713 | if test "$wxUSE_ZLIB" = "builtin" ; then |
15714 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
15715 | fi |
15716 | ||
8284b0c5 | 15717 | |
21d1c967 GD |
15718 | if test "$wxUSE_OPENGL" = "yes"; then |
15719 | if test "$wxUSE_MAC" = 1; then | |
15720 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
15721 | elif test "$wxUSE_MSW" = 1; then | |
15722 | OPENGL_LIBS="-lopengl32 -lglu32" | |
15723 | else | |
a0b9e27f MB |
15724 | ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'` |
15725 | echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6 | |
34bed6d9 | 15726 | echo "configure:15727: checking for GL/gl.h" >&5 |
a0b9e27f MB |
15727 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
15728 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15729 | else | |
15730 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 15731 | #line 15732 "configure" |
10f2d63a | 15732 | #include "confdefs.h" |
21d1c967 | 15733 | #include <GL/gl.h> |
a0b9e27f MB |
15734 | EOF |
15735 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 15736 | { (eval echo configure:15737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
15737 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
15738 | if test -z "$ac_err"; then | |
15739 | rm -rf conftest* | |
15740 | eval "ac_cv_header_$ac_safe=yes" | |
15741 | else | |
15742 | echo "$ac_err" >&5 | |
15743 | echo "configure: failed program was:" >&5 | |
698dcdb6 | 15744 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
15745 | rm -rf conftest* |
15746 | eval "ac_cv_header_$ac_safe=no" | |
703e0a69 | 15747 | fi |
a0b9e27f | 15748 | rm -f conftest* |
698dcdb6 | 15749 | fi |
a0b9e27f MB |
15750 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
15751 | echo "$ac_t""yes" 1>&6 | |
15752 | ||
15753 | echo $ac_n "checking for -lGL""... $ac_c" 1>&6 | |
34bed6d9 | 15754 | echo "configure:15755: checking for -lGL" >&5 |
a0b9e27f | 15755 | |
21d1c967 | 15756 | ac_find_libraries= |
2b5f62a0 | 15757 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15758 | do |
15759 | for ac_extension in a so sl dylib; do | |
15760 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
15761 | ac_find_libraries=$ac_dir | |
15762 | break 2 | |
15763 | fi | |
15764 | done | |
15765 | done | |
15766 | ||
15767 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15768 | |
21d1c967 GD |
15769 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15770 | result=$? | |
15771 | if test $result = 0; then | |
15772 | ac_path_to_link="" | |
15773 | else | |
15774 | ac_path_to_link=" -L$ac_find_libraries" | |
15775 | fi | |
15776 | ||
15777 | if test "$ac_path_to_link" = " -L/usr/lib" ; then | |
15778 | LDFLAGS_GL="$LDFLAGS" | |
15779 | else | |
15780 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15781 | fi | |
15782 | OPENGL_LIBS="-lGL -lGLU" | |
a0b9e27f | 15783 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15784 | else |
a0b9e27f MB |
15785 | echo "$ac_t""no" 1>&6 |
15786 | echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6 | |
34bed6d9 | 15787 | echo "configure:15788: checking for -lMesaGL" >&5 |
a0b9e27f | 15788 | |
21d1c967 | 15789 | ac_find_libraries= |
2b5f62a0 | 15790 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
15791 | do |
15792 | for ac_extension in a so sl dylib; do | |
15793 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
15794 | ac_find_libraries=$ac_dir | |
15795 | break 2 | |
15796 | fi | |
15797 | done | |
15798 | done | |
15799 | ||
15800 | if test "$ac_find_libraries" != "" ; then | |
a0b9e27f | 15801 | |
21d1c967 GD |
15802 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
15803 | result=$? | |
15804 | if test $result = 0; then | |
15805 | ac_path_to_link="" | |
15806 | else | |
15807 | ac_path_to_link=" -L$ac_find_libraries" | |
15808 | fi | |
15809 | ||
15810 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
15811 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
a0b9e27f | 15812 | echo "$ac_t""yes" 1>&6 |
21d1c967 | 15813 | else |
a0b9e27f | 15814 | echo "$ac_t""no" 1>&6 |
21d1c967 GD |
15815 | fi |
15816 | fi | |
a0b9e27f MB |
15817 | |
15818 | else | |
15819 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 15820 | fi |
52127426 | 15821 | |
8284b0c5 | 15822 | |
21d1c967 | 15823 | if test "x$OPENGL_LIBS" = "x"; then |
a0b9e27f | 15824 | { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; } |
21d1c967 GD |
15825 | fi |
15826 | fi | |
90dd450c | 15827 | |
21d1c967 | 15828 | if test "$wxUSE_OPENGL" = "yes"; then |
a0b9e27f | 15829 | cat >> confdefs.h <<\EOF |
21d1c967 | 15830 | #define wxUSE_OPENGL 1 |
a0b9e27f | 15831 | EOF |
21d1c967 | 15832 | |
a0b9e27f | 15833 | cat >> confdefs.h <<\EOF |
21d1c967 | 15834 | #define wxUSE_GLCANVAS 1 |
a0b9e27f | 15835 | EOF |
21d1c967 GD |
15836 | |
15837 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl" | |
15838 | fi | |
10f2d63a | 15839 | fi |
21d1c967 GD |
15840 | |
15841 | if test -z "$TOOLKIT_VPATH" ; then | |
15842 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 15843 | fi |
21d1c967 GD |
15844 | |
15845 | if test -n "$TOOLKIT" ; then | |
15846 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
15847 | fi | |
15848 | ||
15849 | lib_unicode_suffix= | |
15850 | if test "$wxUSE_UNICODE" = "yes"; then | |
15851 | lib_unicode_suffix=u | |
90dd450c | 15852 | fi |
698dcdb6 | 15853 | |
21d1c967 GD |
15854 | lib_debug_suffix= |
15855 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
15856 | lib_debug_suffix=d | |
15857 | fi | |
698dcdb6 | 15858 | |
2b5f62a0 VZ |
15859 | WX_VERSION_TAG=`echo WX${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
15860 | ||
15861 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
15862 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
15863 | |
15864 | if test "$cross_compiling" = "yes"; then | |
15865 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
15866 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
15867 | fi | |
15868 | ||
15869 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
15870 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
2b5f62a0 | 15871 | WX_LIBRARY_BASENAME="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" |
21d1c967 GD |
15872 | |
15873 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15874 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
15875 | ||
15876 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
15877 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15878 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
15879 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15880 | ||
15881 | case "${host}" in | |
15882 | *-*-cygwin* | *-*-mingw32* ) | |
15883 | ||
a0b9e27f MB |
15884 | |
15885 | ||
17234b26 | 15886 | if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then |
21d1c967 GD |
15887 | WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" |
15888 | WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}" | |
15889 | WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}" | |
15890 | WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15891 | else | |
15892 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
15893 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
15894 | fi | |
15895 | ;; | |
15896 | ||
15897 | *-*-darwin* ) | |
15898 | if test "$wxUSE_MAC" = 1; then | |
3bd8fb5f | 15899 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r" |
21d1c967 GD |
15900 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc" |
15901 | fi | |
15902 | ;; | |
15903 | esac | |
15904 | ||
15905 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
15906 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
15907 | ||
15908 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
15909 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
15910 | ||
15911 | if test "$wxUSE_OPENGL" = "yes"; then | |
15912 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
15913 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
15914 | fi | |
15915 | ||
8284b0c5 MB |
15916 | |
15917 | ||
21d1c967 GD |
15918 | if test "$wxUSE_SHARED" = "yes"; then |
15919 | case "${host}" in | |
15920 | *-pc-os2_emx | *-pc-os2-emx | \ | |
15921 | *-pc-msdosdjgpp ) | |
15922 | wxUSE_SHARED=no | |
a0b9e27f | 15923 | echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2 |
21d1c967 GD |
15924 | ;; |
15925 | esac | |
15926 | fi | |
15927 | ||
2b5f62a0 VZ |
15928 | if test "$wxUSE_SHARED" = "yes"; then |
15929 | ||
15930 | if test "$wxUSE_OPENGL" = "yes"; then | |
15931 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL" | |
15932 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}" | |
15933 | else | |
15934 | WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS" | |
15935 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}" | |
15936 | fi | |
15937 | ||
15938 | if test "$GCC" = "yes"; then | |
15939 | PIC_FLAG="-fPIC" | |
15940 | fi | |
15941 | ||
15942 | ||
15943 | ||
15944 | found_versioning=no | |
15945 | ||
15946 | case "${host}" in | |
15947 | *-*-solaris2* ) | |
15948 | if test "x$GCC" != "xyes" ; then | |
15949 | LDFLAGS_VERSIONING="-M \$(top_builddir)/version-script" | |
15950 | found_versioning=yes | |
15951 | fi | |
15952 | ;; | |
15953 | esac | |
15954 | ||
15955 | if test $found_versioning = no ; then | |
15956 | echo $ac_n "checking if the linker accepts --version-script""... $ac_c" 1>&6 | |
34bed6d9 | 15957 | echo "configure:15958: checking if the linker accepts --version-script" >&5 |
2b5f62a0 VZ |
15958 | if eval "test \"`echo '$''{'wx_cv_version_script'+set}'`\" = set"; then |
15959 | echo $ac_n "(cached) $ac_c" 1>&6 | |
15960 | else | |
15961 | ||
15962 | echo "VER_1 { *; };" >conftest.sym | |
15963 | echo "int main() { return 0; }" >conftest.cpp | |
15964 | ||
15965 | if { ac_try=' | |
15966 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
34bed6d9 | 15967 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'; { (eval echo configure:15968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } ; then |
2b5f62a0 VZ |
15968 | if test -s conftest.stderr ; then |
15969 | wx_cv_version_script=no | |
15970 | else | |
15971 | wx_cv_version_script=yes | |
15972 | fi | |
15973 | else | |
15974 | wx_cv_version_script=no | |
15975 | fi | |
15976 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
15977 | ||
15978 | fi | |
15979 | ||
15980 | echo "$ac_t""$wx_cv_version_script" 1>&6 | |
15981 | if test $wx_cv_version_script = yes ; then | |
15982 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)/version-script" | |
15983 | fi | |
15984 | fi | |
21d1c967 | 15985 | |
21d1c967 GD |
15986 | |
15987 | SHARED_LD="${CXX} -shared -o" | |
15988 | ||
15989 | case "${host}" in | |
15990 | *-hp-hpux* ) | |
ad2622f1 | 15991 | if test "$GCC" = "yes"; then |
85d5e282 | 15992 | SHARED_LD="${CXX} -shared ${PIC_FLAG} -o" |
21d1c967 GD |
15993 | else |
15994 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
15995 | ||
15996 | SHARED_LD="${CXX} -b -o" | |
15997 | PIC_FLAG="+Z" | |
15998 | fi | |
15999 | ||
16000 | if test "$wxUSE_OPENGL" = "yes"; then | |
16001 | WX_ALL_INSTALLED="preinstall_gl" | |
16002 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16003 | else | |
16004 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16005 | fi | |
16006 | ;; | |
16007 | ||
16008 | *-*-linux* ) | |
16009 | if test "$GCC" != "yes"; then | |
a0b9e27f | 16010 | echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6 |
34bed6d9 | 16011 | echo "configure:16012: checking for Intel compiler" >&5 |
a0b9e27f MB |
16012 | if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then |
16013 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16014 | else | |
16015 | ||
16016 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16017 | #line 16018 "configure" |
698dcdb6 | 16018 | #include "confdefs.h" |
90dd450c | 16019 | |
a0b9e27f | 16020 | int main() { |
90dd450c | 16021 | |
21d1c967 GD |
16022 | #ifndef __INTEL_COMPILER |
16023 | #error Not icc | |
16024 | #endif | |
a0b9e27f MB |
16025 | |
16026 | ; return 0; } | |
16027 | EOF | |
34bed6d9 | 16028 | if { (eval echo configure:16029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16029 | rm -rf conftest* |
21d1c967 | 16030 | wx_cv_prog_icc=yes |
6232543b | 16031 | else |
a0b9e27f MB |
16032 | echo "configure: failed program was:" >&5 |
16033 | cat conftest.$ac_ext >&5 | |
16034 | rm -rf conftest* | |
16035 | wx_cv_prog_icc=no | |
16036 | ||
5c6fa7d2 | 16037 | fi |
a0b9e27f MB |
16038 | rm -f conftest* |
16039 | ||
247f5006 | 16040 | fi |
a0b9e27f MB |
16041 | |
16042 | echo "$ac_t""$wx_cv_prog_icc" 1>&6 | |
21d1c967 GD |
16043 | if test "$wx_cv_prog_icc" = "yes"; then |
16044 | PIC_FLAG="-KPIC" | |
16045 | fi | |
16046 | fi | |
16047 | ||
16048 | if test "$wxUSE_SONAME" = "yes" ; then | |
16049 | SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}" | |
16050 | SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}" | |
16051 | WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)" | |
16052 | fi | |
16053 | ;; | |
16054 | ||
16055 | *-*-solaris2* ) | |
16056 | if test "$GCC" = yes ; then | |
16057 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
16058 | else | |
16059 | SHARED_LD="${CXX} -G -o" | |
16060 | PIC_FLAG="-KPIC" | |
16061 | SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}" | |
16062 | SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}" | |
16063 | fi | |
16064 | ;; | |
16065 | ||
16066 | *-*-darwin* ) | |
b2fee376 GD |
16067 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXMAKINGDLL" |
16068 | CFLAGS="$CFLAGS -fno-common" | |
16069 | CXXFLAGS="$CXXFLAGS -fno-common" | |
21d1c967 GD |
16070 | SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o" |
16071 | PIC_FLAG="-dynamic -fPIC" | |
16072 | SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}" | |
16073 | SONAME_FLAGS_GL=${SONAME_FLAGS} | |
16074 | ;; | |
16075 | ||
16076 | *-*-aix* ) | |
2b5f62a0 VZ |
16077 | if test "$GCC" != "yes"; then |
16078 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
321d2b14 | 16079 | set dummy makeC++SharedLib; ac_word=$2 |
a0b9e27f | 16080 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
34bed6d9 | 16081 | echo "configure:16082: checking for $ac_word" >&5 |
a0b9e27f MB |
16082 | if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then |
16083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
321d2b14 VZ |
16084 | else |
16085 | if test -n "$AIX_CXX_LD"; then | |
16086 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
16087 | else | |
a0b9e27f MB |
16088 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16089 | ac_dummy="$PATH" | |
16090 | for ac_dir in $ac_dummy; do | |
16091 | test -z "$ac_dir" && ac_dir=. | |
16092 | if test -f $ac_dir/$ac_word; then | |
16093 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
16094 | break | |
16095 | fi | |
16096 | done | |
16097 | IFS="$ac_save_ifs" | |
321d2b14 VZ |
16098 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
16099 | fi | |
16100 | fi | |
a0b9e27f | 16101 | AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD" |
321d2b14 | 16102 | if test -n "$AIX_CXX_LD"; then |
a0b9e27f | 16103 | echo "$ac_t""$AIX_CXX_LD" 1>&6 |
321d2b14 | 16104 | else |
a0b9e27f | 16105 | echo "$ac_t""no" 1>&6 |
321d2b14 VZ |
16106 | fi |
16107 | ||
8284b0c5 | 16108 | |
2b5f62a0 VZ |
16109 | SHARED_LD="$(AIX_CXX_LD) -p 0 -o" |
16110 | fi | |
21d1c967 GD |
16111 | ;; |
16112 | ||
16113 | *-*-cygwin* | *-*-mingw32* ) | |
21d1c967 GD |
16114 | WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a" |
16115 | ||
16116 | SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o" | |
16117 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
16118 | ||
16119 | PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1" | |
16120 | ||
16121 | if test "$wxUSE_OPENGL" = "yes"; then | |
16122 | WX_ALL_INSTALLED="preinstall_gl" | |
16123 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}" | |
16124 | else | |
16125 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}" | |
16126 | fi | |
16127 | ;; | |
16128 | ||
16129 | *-*-beos* ) | |
16130 | SHARED_LD="${LD} -shared -o" | |
16131 | ;; | |
16132 | ||
2b5f62a0 VZ |
16133 | *-*-irix* ) |
16134 | if test "$GCC" != "yes"; then | |
16135 | PIC_FLAG="-KPIC" | |
16136 | fi | |
16137 | ;; | |
16138 | ||
21d1c967 GD |
16139 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
16140 | *-*-sunos4* | \ | |
21d1c967 GD |
16141 | *-*-osf* | \ |
16142 | *-*-dgux5* | \ | |
16143 | *-*-sysv5* ) | |
16144 | ;; | |
16145 | ||
16146 | *) | |
a0b9e27f | 16147 | { echo "configure: error: unknown system type $host." 1>&2; exit 1; } |
21d1c967 GD |
16148 | esac |
16149 | ||
16150 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
16151 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
16152 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
16153 | fi | |
16154 | ||
16155 | WX_TARGET_LIBRARY_TYPE="so" | |
16156 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 16157 | fi |
10f2d63a | 16158 | |
21d1c967 GD |
16159 | if test "$wxUSE_SHARED" = "no"; then |
16160 | ||
16161 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
16162 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16163 | fi | |
16164 | ||
16165 | if test "$wxUSE_MAC" = 1; then | |
16166 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
16167 | fi | |
16168 | ||
16169 | if test "$wxUSE_OPENGL" = "yes"; then | |
16170 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
16171 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
16172 | else | |
16173 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
16174 | fi | |
16175 | ||
16176 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
16177 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
16178 | ||
16179 | WX_TARGET_LIBRARY_TYPE="a" | |
16180 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
16181 | |
16182 | STATIC_FLAG="yes" | |
16183 | else | |
16184 | STATIC_FLAG="no" | |
90dd450c | 16185 | fi |
1e487827 | 16186 | |
21d1c967 GD |
16187 | if test "$wxUSE_MAC" = 1; then |
16188 | LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}" | |
16189 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
16190 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
16191 | # Extract the first word of "Rez", so it can be a program name with args. | |
16192 | set dummy Rez; ac_word=$2 | |
a0b9e27f | 16193 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
34bed6d9 | 16194 | echo "configure:16195: checking for $ac_word" >&5 |
a0b9e27f MB |
16195 | if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then |
16196 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b93d0d08 | 16197 | else |
21d1c967 GD |
16198 | if test -n "$RESCOMP"; then |
16199 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 16200 | else |
a0b9e27f MB |
16201 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16202 | ac_dummy="$PATH" | |
16203 | for ac_dir in $ac_dummy; do | |
16204 | test -z "$ac_dir" && ac_dir=. | |
16205 | if test -f $ac_dir/$ac_word; then | |
16206 | ac_cv_prog_RESCOMP="Rez" | |
16207 | break | |
16208 | fi | |
16209 | done | |
16210 | IFS="$ac_save_ifs" | |
21d1c967 | 16211 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 16212 | fi |
b93d0d08 | 16213 | fi |
a0b9e27f | 16214 | RESCOMP="$ac_cv_prog_RESCOMP" |
21d1c967 | 16215 | if test -n "$RESCOMP"; then |
a0b9e27f | 16216 | echo "$ac_t""$RESCOMP" 1>&6 |
90dd450c | 16217 | else |
a0b9e27f | 16218 | echo "$ac_t""no" 1>&6 |
90dd450c | 16219 | fi |
b93d0d08 | 16220 | |
21d1c967 GD |
16221 | # Extract the first word of "DeRez", so it can be a program name with args. |
16222 | set dummy DeRez; ac_word=$2 | |
a0b9e27f | 16223 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
34bed6d9 | 16224 | echo "configure:16225: checking for $ac_word" >&5 |
a0b9e27f MB |
16225 | if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then |
16226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3a922bb4 | 16227 | else |
21d1c967 GD |
16228 | if test -n "$DEREZ"; then |
16229 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 16230 | else |
a0b9e27f MB |
16231 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
16232 | ac_dummy="$PATH" | |
16233 | for ac_dir in $ac_dummy; do | |
16234 | test -z "$ac_dir" && ac_dir=. | |
16235 | if test -f $ac_dir/$ac_word; then | |
16236 | ac_cv_prog_DEREZ="DeRez" | |
16237 | break | |
16238 | fi | |
16239 | done | |
16240 | IFS="$ac_save_ifs" | |
21d1c967 | 16241 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 16242 | fi |
90dd450c | 16243 | fi |
a0b9e27f | 16244 | DEREZ="$ac_cv_prog_DEREZ" |
21d1c967 | 16245 | if test -n "$DEREZ"; then |
a0b9e27f | 16246 | echo "$ac_t""$DEREZ" 1>&6 |
90dd450c | 16247 | else |
a0b9e27f | 16248 | echo "$ac_t""no" 1>&6 |
3a922bb4 | 16249 | fi |
698dcdb6 | 16250 | |
21d1c967 | 16251 | MACOSX_BUNDLE="bundle" |
2b5f62a0 VZ |
16252 | LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)" |
16253 | LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
21d1c967 GD |
16254 | else |
16255 | if test "$wxUSE_PM" = 1; then | |
16256 | LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)" | |
90dd450c | 16257 | fi |
4f14bcd8 | 16258 | fi |
10f2d63a | 16259 | |
8284b0c5 | 16260 | |
a0b9e27f | 16261 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
34bed6d9 | 16262 | echo "configure:16263: checking for ANSI C header files" >&5 |
a0b9e27f MB |
16263 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
16264 | echo $ac_n "(cached) $ac_c" 1>&6 | |
52127426 | 16265 | else |
a0b9e27f | 16266 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16267 | #line 16268 "configure" |
52127426 | 16268 | #include "confdefs.h" |
a0b9e27f MB |
16269 | #include <stdlib.h> |
16270 | #include <stdarg.h> | |
16271 | #include <string.h> | |
16272 | #include <float.h> | |
16273 | EOF | |
16274 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 16275 | { (eval echo configure:16276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
16276 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
16277 | if test -z "$ac_err"; then | |
16278 | rm -rf conftest* | |
16279 | ac_cv_header_stdc=yes | |
16280 | else | |
16281 | echo "$ac_err" >&5 | |
16282 | echo "configure: failed program was:" >&5 | |
16283 | cat conftest.$ac_ext >&5 | |
16284 | rm -rf conftest* | |
16285 | ac_cv_header_stdc=no | |
16286 | fi | |
16287 | rm -f conftest* | |
16288 | ||
16289 | if test $ac_cv_header_stdc = yes; then | |
16290 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
16291 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16292 | #line 16293 "configure" |
a0b9e27f MB |
16293 | #include "confdefs.h" |
16294 | #include <string.h> | |
16295 | EOF | |
16296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16297 | egrep "memchr" >/dev/null 2>&1; then | |
16298 | : | |
16299 | else | |
16300 | rm -rf conftest* | |
16301 | ac_cv_header_stdc=no | |
16302 | fi | |
16303 | rm -f conftest* | |
16304 | ||
16305 | fi | |
16306 | ||
16307 | if test $ac_cv_header_stdc = yes; then | |
16308 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
16309 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16310 | #line 16311 "configure" |
a0b9e27f MB |
16311 | #include "confdefs.h" |
16312 | #include <stdlib.h> | |
16313 | EOF | |
16314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16315 | egrep "free" >/dev/null 2>&1; then | |
16316 | : | |
7b4a847f | 16317 | else |
a0b9e27f MB |
16318 | rm -rf conftest* |
16319 | ac_cv_header_stdc=no | |
52127426 | 16320 | fi |
a0b9e27f MB |
16321 | rm -f conftest* |
16322 | ||
52127426 | 16323 | fi |
a0b9e27f MB |
16324 | |
16325 | if test $ac_cv_header_stdc = yes; then | |
16326 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
16327 | if test "$cross_compiling" = yes; then | |
247f5006 VZ |
16328 | : |
16329 | else | |
a0b9e27f | 16330 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16331 | #line 16332 "configure" |
a0b9e27f MB |
16332 | #include "confdefs.h" |
16333 | #include <ctype.h> | |
16334 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
16335 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
16336 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
16337 | int main () { int i; for (i = 0; i < 256; i++) | |
16338 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
16339 | exit (0); } | |
247f5006 | 16340 | |
a0b9e27f | 16341 | EOF |
34bed6d9 | 16342 | if { (eval echo configure:16343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
a0b9e27f MB |
16343 | then |
16344 | : | |
16345 | else | |
16346 | echo "configure: failed program was:" >&5 | |
16347 | cat conftest.$ac_ext >&5 | |
16348 | rm -fr conftest* | |
16349 | ac_cv_header_stdc=no | |
16350 | fi | |
16351 | rm -fr conftest* | |
16352 | fi | |
16353 | ||
16354 | fi | |
16355 | fi | |
16356 | ||
16357 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
16358 | if test $ac_cv_header_stdc = yes; then | |
16359 | cat >> confdefs.h <<\EOF | |
16360 | #define STDC_HEADERS 1 | |
16361 | EOF | |
8284b0c5 MB |
16362 | |
16363 | fi | |
16364 | ||
a0b9e27f | 16365 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
34bed6d9 | 16366 | echo "configure:16367: checking for mode_t" >&5 |
a0b9e27f MB |
16367 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
16368 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16369 | else |
a0b9e27f | 16370 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16371 | #line 16372 "configure" |
8284b0c5 | 16372 | #include "confdefs.h" |
a0b9e27f MB |
16373 | #include <sys/types.h> |
16374 | #if STDC_HEADERS | |
16375 | #include <stdlib.h> | |
16376 | #include <stddef.h> | |
8284b0c5 | 16377 | #endif |
a0b9e27f MB |
16378 | EOF |
16379 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16380 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16381 | rm -rf conftest* | |
16382 | ac_cv_type_mode_t=yes | |
5c6fa7d2 | 16383 | else |
a0b9e27f MB |
16384 | rm -rf conftest* |
16385 | ac_cv_type_mode_t=no | |
16386 | fi | |
16387 | rm -f conftest* | |
16388 | ||
8284b0c5 | 16389 | fi |
a0b9e27f MB |
16390 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
16391 | if test $ac_cv_type_mode_t = no; then | |
16392 | cat >> confdefs.h <<\EOF | |
16393 | #define mode_t int | |
16394 | EOF | |
16395 | ||
8284b0c5 | 16396 | fi |
a0b9e27f MB |
16397 | |
16398 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
34bed6d9 | 16399 | echo "configure:16400: checking for off_t" >&5 |
a0b9e27f MB |
16400 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
16401 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16402 | else | |
16403 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16404 | #line 16405 "configure" |
a0b9e27f MB |
16405 | #include "confdefs.h" |
16406 | #include <sys/types.h> | |
16407 | #if STDC_HEADERS | |
16408 | #include <stdlib.h> | |
16409 | #include <stddef.h> | |
16410 | #endif | |
16411 | EOF | |
16412 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16413 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16414 | rm -rf conftest* | |
16415 | ac_cv_type_off_t=yes | |
247f5006 | 16416 | else |
a0b9e27f MB |
16417 | rm -rf conftest* |
16418 | ac_cv_type_off_t=no | |
16419 | fi | |
16420 | rm -f conftest* | |
247f5006 | 16421 | |
a0b9e27f MB |
16422 | fi |
16423 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
16424 | if test $ac_cv_type_off_t = no; then | |
16425 | cat >> confdefs.h <<\EOF | |
90dd450c | 16426 | #define off_t long |
a0b9e27f | 16427 | EOF |
10f2d63a | 16428 | |
90dd450c | 16429 | fi |
10f2d63a | 16430 | |
a0b9e27f | 16431 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
34bed6d9 | 16432 | echo "configure:16433: checking for pid_t" >&5 |
a0b9e27f MB |
16433 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
16434 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 16435 | else |
a0b9e27f | 16436 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16437 | #line 16438 "configure" |
10f2d63a | 16438 | #include "confdefs.h" |
a0b9e27f MB |
16439 | #include <sys/types.h> |
16440 | #if STDC_HEADERS | |
16441 | #include <stdlib.h> | |
16442 | #include <stddef.h> | |
8284b0c5 | 16443 | #endif |
a0b9e27f MB |
16444 | EOF |
16445 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16446 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16447 | rm -rf conftest* | |
90dd450c | 16448 | ac_cv_type_pid_t=yes |
698dcdb6 | 16449 | else |
a0b9e27f MB |
16450 | rm -rf conftest* |
16451 | ac_cv_type_pid_t=no | |
8284b0c5 | 16452 | fi |
a0b9e27f | 16453 | rm -f conftest* |
247f5006 | 16454 | |
a0b9e27f MB |
16455 | fi |
16456 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 | |
16457 | if test $ac_cv_type_pid_t = no; then | |
16458 | cat >> confdefs.h <<\EOF | |
90dd450c | 16459 | #define pid_t int |
a0b9e27f | 16460 | EOF |
10f2d63a | 16461 | |
7b4a847f RR |
16462 | fi |
16463 | ||
a0b9e27f | 16464 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
34bed6d9 | 16465 | echo "configure:16466: checking for size_t" >&5 |
a0b9e27f MB |
16466 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
16467 | echo $ac_n "(cached) $ac_c" 1>&6 | |
7b4a847f | 16468 | else |
a0b9e27f | 16469 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16470 | #line 16471 "configure" |
7b4a847f | 16471 | #include "confdefs.h" |
a0b9e27f MB |
16472 | #include <sys/types.h> |
16473 | #if STDC_HEADERS | |
16474 | #include <stdlib.h> | |
16475 | #include <stddef.h> | |
8284b0c5 | 16476 | #endif |
a0b9e27f MB |
16477 | EOF |
16478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16479 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
16480 | rm -rf conftest* | |
90dd450c | 16481 | ac_cv_type_size_t=yes |
18dbb1f6 | 16482 | else |
a0b9e27f MB |
16483 | rm -rf conftest* |
16484 | ac_cv_type_size_t=no | |
52127426 | 16485 | fi |
a0b9e27f | 16486 | rm -f conftest* |
247f5006 | 16487 | |
a0b9e27f MB |
16488 | fi |
16489 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
16490 | if test $ac_cv_type_size_t = no; then | |
16491 | cat >> confdefs.h <<\EOF | |
90dd450c | 16492 | #define size_t unsigned |
a0b9e27f | 16493 | EOF |
90dd450c VZ |
16494 | |
16495 | fi | |
16496 | ||
a0b9e27f | 16497 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
34bed6d9 | 16498 | echo "configure:16499: checking for uid_t in sys/types.h" >&5 |
a0b9e27f MB |
16499 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
16500 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b3e8d00a | 16501 | else |
a0b9e27f | 16502 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16503 | #line 16504 "configure" |
b3e8d00a | 16504 | #include "confdefs.h" |
90dd450c | 16505 | #include <sys/types.h> |
a0b9e27f | 16506 | EOF |
90dd450c VZ |
16507 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
16508 | egrep "uid_t" >/dev/null 2>&1; then | |
a0b9e27f | 16509 | rm -rf conftest* |
90dd450c | 16510 | ac_cv_type_uid_t=yes |
b3e8d00a | 16511 | else |
a0b9e27f | 16512 | rm -rf conftest* |
90dd450c | 16513 | ac_cv_type_uid_t=no |
b3e8d00a | 16514 | fi |
90dd450c | 16515 | rm -f conftest* |
b3e8d00a | 16516 | |
4f14bcd8 | 16517 | fi |
247f5006 | 16518 | |
a0b9e27f MB |
16519 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
16520 | if test $ac_cv_type_uid_t = no; then | |
16521 | cat >> confdefs.h <<\EOF | |
90dd450c | 16522 | #define uid_t int |
a0b9e27f | 16523 | EOF |
247f5006 | 16524 | |
a0b9e27f | 16525 | cat >> confdefs.h <<\EOF |
90dd450c | 16526 | #define gid_t int |
a0b9e27f | 16527 | EOF |
4f14bcd8 | 16528 | |
b3e8d00a | 16529 | fi |
b3e8d00a | 16530 | |
8284b0c5 MB |
16531 | |
16532 | ||
a0b9e27f MB |
16533 | ac_ext=C |
16534 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 16535 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16536 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16537 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16538 | cross_compiling=$ac_cv_prog_cxx_cross | |
90dd450c | 16539 | |
a0b9e27f | 16540 | echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6 |
34bed6d9 | 16541 | echo "configure:16542: checking if size_t is unsigned int" >&5 |
a0b9e27f MB |
16542 | if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then |
16543 | echo $ac_n "(cached) $ac_c" 1>&6 | |
90dd450c | 16544 | else |
a0b9e27f | 16545 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16546 | #line 16547 "configure" |
10f2d63a | 16547 | #include "confdefs.h" |
90dd450c | 16548 | #include <stddef.h> |
a0b9e27f | 16549 | int main() { |
90dd450c VZ |
16550 | |
16551 | return 0; } | |
16552 | ||
16553 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
16554 | ||
16555 | int bar() { | |
a0b9e27f MB |
16556 | |
16557 | ; return 0; } | |
16558 | EOF | |
34bed6d9 | 16559 | if { (eval echo configure:16560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16560 | rm -rf conftest* |
90dd450c | 16561 | wx_cv_size_t_is_uint=no |
698dcdb6 | 16562 | else |
a0b9e27f MB |
16563 | echo "configure: failed program was:" >&5 |
16564 | cat conftest.$ac_ext >&5 | |
16565 | rm -rf conftest* | |
16566 | wx_cv_size_t_is_uint=yes | |
16567 | ||
5c6fa7d2 | 16568 | fi |
a0b9e27f | 16569 | rm -f conftest* |
8284b0c5 | 16570 | |
247f5006 | 16571 | fi |
a0b9e27f MB |
16572 | |
16573 | echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6 | |
4f14bcd8 | 16574 | |
90dd450c | 16575 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
a0b9e27f | 16576 | cat >> confdefs.h <<\EOF |
90dd450c | 16577 | #define wxSIZE_T_IS_UINT 1 |
a0b9e27f | 16578 | EOF |
698dcdb6 | 16579 | |
90dd450c | 16580 | else |
a0b9e27f | 16581 | echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6 |
34bed6d9 | 16582 | echo "configure:16583: checking if size_t is unsigned long" >&5 |
a0b9e27f MB |
16583 | if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then |
16584 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16585 | else |
a0b9e27f | 16586 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16587 | #line 16588 "configure" |
10f2d63a | 16588 | #include "confdefs.h" |
90dd450c | 16589 | #include <stddef.h> |
a0b9e27f | 16590 | int main() { |
90dd450c VZ |
16591 | |
16592 | return 0; } | |
16593 | ||
16594 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
16595 | ||
16596 | int bar() { | |
a0b9e27f MB |
16597 | |
16598 | ; return 0; } | |
16599 | EOF | |
34bed6d9 | 16600 | if { (eval echo configure:16601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 16601 | rm -rf conftest* |
90dd450c | 16602 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 16603 | else |
a0b9e27f MB |
16604 | echo "configure: failed program was:" >&5 |
16605 | cat conftest.$ac_ext >&5 | |
16606 | rm -rf conftest* | |
16607 | wx_cv_size_t_is_ulong=yes | |
16608 | ||
5c6fa7d2 | 16609 | fi |
a0b9e27f MB |
16610 | rm -f conftest* |
16611 | ||
247f5006 | 16612 | fi |
a0b9e27f MB |
16613 | |
16614 | echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6 | |
10f2d63a | 16615 | |
90dd450c | 16616 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
a0b9e27f | 16617 | cat >> confdefs.h <<\EOF |
90dd450c | 16618 | #define wxSIZE_T_IS_ULONG 1 |
a0b9e27f | 16619 | EOF |
4f14bcd8 GD |
16620 | |
16621 | fi | |
90dd450c | 16622 | fi |
1e487827 | 16623 | |
90dd450c | 16624 | ac_ext=c |
a0b9e27f | 16625 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 16626 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
16627 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16628 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16629 | cross_compiling=$ac_cv_prog_cc_cross | |
698dcdb6 | 16630 | |
5c6fa7d2 | 16631 | |
8284b0c5 | 16632 | |
a0b9e27f | 16633 | echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6 |
34bed6d9 | 16634 | echo "configure:16635: checking for pw_gecos in struct passwd" >&5 |
a0b9e27f MB |
16635 | if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then |
16636 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 16637 | else |
a0b9e27f MB |
16638 | |
16639 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16640 | #line 16641 "configure" |
4f14bcd8 | 16641 | #include "confdefs.h" |
90dd450c | 16642 | #include <pwd.h> |
a0b9e27f | 16643 | int main() { |
f6bcfd97 | 16644 | |
90dd450c VZ |
16645 | char *p; |
16646 | struct passwd *pw; | |
16647 | p = pw->pw_gecos; | |
a0b9e27f MB |
16648 | |
16649 | ; return 0; } | |
16650 | EOF | |
34bed6d9 | 16651 | if { (eval echo configure:16652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
16652 | rm -rf conftest* |
16653 | ||
90dd450c | 16654 | wx_cv_struct_pw_gecos=yes |
a0b9e27f | 16655 | |
10f2d63a | 16656 | else |
a0b9e27f MB |
16657 | echo "configure: failed program was:" >&5 |
16658 | cat conftest.$ac_ext >&5 | |
16659 | rm -rf conftest* | |
16660 | ||
90dd450c | 16661 | wx_cv_struct_pw_gecos=no |
a0b9e27f MB |
16662 | |
16663 | ||
5c6fa7d2 | 16664 | fi |
a0b9e27f MB |
16665 | rm -f conftest* |
16666 | ||
247f5006 VZ |
16667 | |
16668 | fi | |
a0b9e27f MB |
16669 | |
16670 | echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6 | |
c521c494 | 16671 | |
90dd450c | 16672 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
a0b9e27f | 16673 | cat >> confdefs.h <<\EOF |
90dd450c | 16674 | #define HAVE_PW_GECOS 1 |
a0b9e27f | 16675 | EOF |
c521c494 | 16676 | |
90dd450c | 16677 | fi |
4f14bcd8 | 16678 | |
8284b0c5 | 16679 | |
d29b553b | 16680 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
a0b9e27f | 16681 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16682 | #define wxUSE_WCHAR_T 1 |
a0b9e27f | 16683 | EOF |
d74f4b5a | 16684 | |
8284b0c5 | 16685 | |
d74f4b5a VZ |
16686 | WCSLEN_FOUND=0 |
16687 | WCHAR_LINK= | |
a0b9e27f | 16688 | for ac_func in wcslen |
7a30264c | 16689 | do |
a0b9e27f | 16690 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 16691 | echo "configure:16692: checking for $ac_func" >&5 |
a0b9e27f MB |
16692 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16693 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16694 | else | |
16695 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16696 | #line 16697 "configure" |
4f14bcd8 | 16697 | #include "confdefs.h" |
7a30264c | 16698 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16699 | which can conflict with char $ac_func(); below. */ |
7a30264c | 16700 | #include <assert.h> |
4f14bcd8 GD |
16701 | /* Override any gcc2 internal prototype to avoid an error. */ |
16702 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16703 | builtin and then its argument prototype would still apply. */ |
16704 | char $ac_func(); | |
16705 | ||
16706 | int main() { | |
16707 | ||
7a30264c VZ |
16708 | /* The GNU C library defines this for functions which it implements |
16709 | to always fail with ENOSYS. Some functions are actually named | |
16710 | something starting with __ and the normal name is an alias. */ | |
16711 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16712 | choke me | |
16713 | #else | |
a0b9e27f | 16714 | $ac_func(); |
7a30264c VZ |
16715 | #endif |
16716 | ||
a0b9e27f MB |
16717 | ; return 0; } |
16718 | EOF | |
34bed6d9 | 16719 | if { (eval echo configure:16720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16720 | rm -rf conftest* |
16721 | eval "ac_cv_func_$ac_func=yes" | |
16722 | else | |
16723 | echo "configure: failed program was:" >&5 | |
16724 | cat conftest.$ac_ext >&5 | |
16725 | rm -rf conftest* | |
16726 | eval "ac_cv_func_$ac_func=no" | |
16727 | fi | |
16728 | rm -f conftest* | |
16729 | fi | |
16730 | ||
16731 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
16732 | echo "$ac_t""yes" 1>&6 | |
16733 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16734 | cat >> confdefs.h <<EOF | |
16735 | #define $ac_tr_func 1 | |
16736 | EOF | |
d74f4b5a | 16737 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16738 | else |
16739 | echo "$ac_t""no" 1>&6 | |
7a30264c VZ |
16740 | fi |
16741 | done | |
9d8deca0 | 16742 | |
8284b0c5 | 16743 | |
d74f4b5a | 16744 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 16745 | if test "$TOOLKIT" = "MSW"; then |
a0b9e27f | 16746 | echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6 |
34bed6d9 | 16747 | echo "configure:16748: checking for wcslen in -lmsvcrt" >&5 |
a0b9e27f MB |
16748 | ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'` |
16749 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16750 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 16751 | else |
a0b9e27f | 16752 | ac_save_LIBS="$LIBS" |
7a30264c | 16753 | LIBS="-lmsvcrt $LIBS" |
a0b9e27f | 16754 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16755 | #line 16756 "configure" |
10f2d63a | 16756 | #include "confdefs.h" |
4f14bcd8 GD |
16757 | /* Override any gcc2 internal prototype to avoid an error. */ |
16758 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16759 | builtin and then its argument prototype would still apply. */ |
16760 | char wcslen(); | |
16761 | ||
16762 | int main() { | |
16763 | wcslen() | |
16764 | ; return 0; } | |
16765 | EOF | |
34bed6d9 | 16766 | if { (eval echo configure:16767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16767 | rm -rf conftest* |
16768 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16769 | else | |
16770 | echo "configure: failed program was:" >&5 | |
16771 | cat conftest.$ac_ext >&5 | |
16772 | rm -rf conftest* | |
16773 | eval "ac_cv_lib_$ac_lib_var=no" | |
16774 | fi | |
16775 | rm -f conftest* | |
16776 | LIBS="$ac_save_LIBS" | |
16777 | ||
16778 | fi | |
16779 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16780 | echo "$ac_t""yes" 1>&6 | |
d74f4b5a | 16781 | WCHAR_OK=1 |
a0b9e27f MB |
16782 | else |
16783 | echo "$ac_t""no" 1>&6 | |
d29b553b | 16784 | fi |
698dcdb6 | 16785 | |
7a30264c | 16786 | else |
a0b9e27f | 16787 | echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6 |
34bed6d9 | 16788 | echo "configure:16789: checking for wcslen in -lw" >&5 |
a0b9e27f MB |
16789 | ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'` |
16790 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
16791 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 16792 | else |
a0b9e27f | 16793 | ac_save_LIBS="$LIBS" |
7a30264c | 16794 | LIBS="-lw $LIBS" |
a0b9e27f | 16795 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 16796 | #line 16797 "configure" |
95c8801c | 16797 | #include "confdefs.h" |
4f14bcd8 GD |
16798 | /* Override any gcc2 internal prototype to avoid an error. */ |
16799 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16800 | builtin and then its argument prototype would still apply. */ |
16801 | char wcslen(); | |
52127426 | 16802 | |
a0b9e27f MB |
16803 | int main() { |
16804 | wcslen() | |
16805 | ; return 0; } | |
16806 | EOF | |
34bed6d9 | 16807 | if { (eval echo configure:16808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16808 | rm -rf conftest* |
16809 | eval "ac_cv_lib_$ac_lib_var=yes" | |
16810 | else | |
16811 | echo "configure: failed program was:" >&5 | |
16812 | cat conftest.$ac_ext >&5 | |
16813 | rm -rf conftest* | |
16814 | eval "ac_cv_lib_$ac_lib_var=no" | |
16815 | fi | |
16816 | rm -f conftest* | |
16817 | LIBS="$ac_save_LIBS" | |
16818 | ||
16819 | fi | |
16820 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
16821 | echo "$ac_t""yes" 1>&6 | |
16822 | ||
7a30264c | 16823 | WCHAR_LINK=" -lw" |
d74f4b5a | 16824 | WCSLEN_FOUND=1 |
a0b9e27f MB |
16825 | |
16826 | else | |
16827 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16828 | fi |
10f2d63a | 16829 | |
7a30264c | 16830 | fi |
d29b553b | 16831 | fi |
95c8801c | 16832 | |
d74f4b5a | 16833 | if test "$WCSLEN_FOUND" = 1; then |
a0b9e27f | 16834 | cat >> confdefs.h <<\EOF |
d74f4b5a | 16835 | #define HAVE_WCSLEN 1 |
a0b9e27f | 16836 | EOF |
10f2d63a | 16837 | |
d74f4b5a | 16838 | fi |
52127426 | 16839 | |
a0b9e27f | 16840 | for ac_func in wcsrtombs |
eb4efbdc | 16841 | do |
a0b9e27f | 16842 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 16843 | echo "configure:16844: checking for $ac_func" >&5 |
a0b9e27f MB |
16844 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16845 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16846 | else | |
16847 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16848 | #line 16849 "configure" |
eb4efbdc VZ |
16849 | #include "confdefs.h" |
16850 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16851 | which can conflict with char $ac_func(); below. */ |
eb4efbdc VZ |
16852 | #include <assert.h> |
16853 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4f14bcd8 | 16854 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16855 | builtin and then its argument prototype would still apply. */ |
16856 | char $ac_func(); | |
16857 | ||
16858 | int main() { | |
16859 | ||
10f2d63a VZ |
16860 | /* The GNU C library defines this for functions which it implements |
16861 | to always fail with ENOSYS. Some functions are actually named | |
16862 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 16863 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
16864 | choke me |
16865 | #else | |
a0b9e27f | 16866 | $ac_func(); |
10f2d63a VZ |
16867 | #endif |
16868 | ||
a0b9e27f MB |
16869 | ; return 0; } |
16870 | EOF | |
34bed6d9 | 16871 | if { (eval echo configure:16872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16872 | rm -rf conftest* |
16873 | eval "ac_cv_func_$ac_func=yes" | |
16874 | else | |
16875 | echo "configure: failed program was:" >&5 | |
16876 | cat conftest.$ac_ext >&5 | |
16877 | rm -rf conftest* | |
16878 | eval "ac_cv_func_$ac_func=no" | |
16879 | fi | |
16880 | rm -f conftest* | |
16881 | fi | |
270a909e | 16882 | |
a0b9e27f MB |
16883 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16884 | echo "$ac_t""yes" 1>&6 | |
16885 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16886 | cat >> confdefs.h <<EOF | |
16887 | #define $ac_tr_func 1 | |
16888 | EOF | |
16889 | ||
16890 | else | |
16891 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 16892 | fi |
247f5006 | 16893 | done |
1e487827 | 16894 | |
af15babd | 16895 | else |
a0b9e27f | 16896 | echo "configure: warning: Wide character support is unavailable" 1>&2 |
7b4a847f | 16897 | fi |
52127426 | 16898 | |
8284b0c5 | 16899 | |
a0b9e27f MB |
16900 | ac_ext=C |
16901 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
247f5006 | 16902 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
16903 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
16904 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
16905 | cross_compiling=$ac_cv_prog_cxx_cross | |
af15babd | 16906 | |
247f5006 VZ |
16907 | |
16908 | for ac_func in vsnprintf | |
16909 | do | |
a0b9e27f | 16910 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 16911 | echo "configure:16912: checking for $ac_func" >&5 |
a0b9e27f MB |
16912 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16913 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16914 | else | |
16915 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16916 | #line 16917 "configure" |
af15babd | 16917 | #include "confdefs.h" |
247f5006 | 16918 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 16919 | which can conflict with char $ac_func(); below. */ |
247f5006 VZ |
16920 | #include <assert.h> |
16921 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16922 | #ifdef __cplusplus | |
16923 | extern "C" | |
16924 | #endif | |
16925 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
16926 | builtin and then its argument prototype would still apply. */ |
16927 | char $ac_func(); | |
16928 | ||
16929 | int main() { | |
16930 | ||
247f5006 VZ |
16931 | /* The GNU C library defines this for functions which it implements |
16932 | to always fail with ENOSYS. Some functions are actually named | |
16933 | something starting with __ and the normal name is an alias. */ | |
16934 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16935 | choke me | |
16936 | #else | |
a0b9e27f | 16937 | $ac_func(); |
247f5006 | 16938 | #endif |
af15babd | 16939 | |
a0b9e27f MB |
16940 | ; return 0; } |
16941 | EOF | |
34bed6d9 | 16942 | if { (eval echo configure:16943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
16943 | rm -rf conftest* |
16944 | eval "ac_cv_func_$ac_func=yes" | |
16945 | else | |
16946 | echo "configure: failed program was:" >&5 | |
16947 | cat conftest.$ac_ext >&5 | |
16948 | rm -rf conftest* | |
16949 | eval "ac_cv_func_$ac_func=no" | |
16950 | fi | |
16951 | rm -f conftest* | |
16952 | fi | |
52127426 | 16953 | |
a0b9e27f MB |
16954 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
16955 | echo "$ac_t""yes" 1>&6 | |
16956 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
16957 | cat >> confdefs.h <<EOF | |
16958 | #define $ac_tr_func 1 | |
16959 | EOF | |
16960 | ||
16961 | else | |
16962 | echo "$ac_t""no" 1>&6 | |
5c6fa7d2 | 16963 | fi |
247f5006 | 16964 | done |
8284b0c5 | 16965 | |
4f14bcd8 | 16966 | |
247f5006 | 16967 | if test "$wxUSE_UNICODE" = yes; then |
a0b9e27f | 16968 | for ac_func in fputwc wprintf vswprintf |
d74f4b5a | 16969 | do |
a0b9e27f | 16970 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 16971 | echo "configure:16972: checking for $ac_func" >&5 |
a0b9e27f MB |
16972 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
16973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
16974 | else | |
16975 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 16976 | #line 16977 "configure" |
d74f4b5a VZ |
16977 | #include "confdefs.h" |
16978 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 16979 | which can conflict with char $ac_func(); below. */ |
d74f4b5a VZ |
16980 | #include <assert.h> |
16981 | /* Override any gcc2 internal prototype to avoid an error. */ | |
247f5006 VZ |
16982 | #ifdef __cplusplus |
16983 | extern "C" | |
16984 | #endif | |
d74f4b5a | 16985 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
16986 | builtin and then its argument prototype would still apply. */ |
16987 | char $ac_func(); | |
16988 | ||
16989 | int main() { | |
16990 | ||
d74f4b5a VZ |
16991 | /* The GNU C library defines this for functions which it implements |
16992 | to always fail with ENOSYS. Some functions are actually named | |
16993 | something starting with __ and the normal name is an alias. */ | |
16994 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16995 | choke me | |
16996 | #else | |
a0b9e27f | 16997 | $ac_func(); |
d74f4b5a VZ |
16998 | #endif |
16999 | ||
a0b9e27f MB |
17000 | ; return 0; } |
17001 | EOF | |
34bed6d9 | 17002 | if { (eval echo configure:17003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17003 | rm -rf conftest* |
17004 | eval "ac_cv_func_$ac_func=yes" | |
17005 | else | |
17006 | echo "configure: failed program was:" >&5 | |
17007 | cat conftest.$ac_ext >&5 | |
17008 | rm -rf conftest* | |
17009 | eval "ac_cv_func_$ac_func=no" | |
17010 | fi | |
17011 | rm -f conftest* | |
17012 | fi | |
d74f4b5a | 17013 | |
a0b9e27f MB |
17014 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17015 | echo "$ac_t""yes" 1>&6 | |
17016 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17017 | cat >> confdefs.h <<EOF | |
17018 | #define $ac_tr_func 1 | |
17019 | EOF | |
17020 | ||
17021 | else | |
17022 | echo "$ac_t""no" 1>&6 | |
d74f4b5a VZ |
17023 | fi |
17024 | done | |
17025 | ||
79668cae | 17026 | echo $ac_n "checking for _vsnwprintf""... $ac_c" 1>&6 |
34bed6d9 | 17027 | echo "configure:17028: checking for _vsnwprintf" >&5 |
79668cae | 17028 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 17029 | #line 17030 "configure" |
79668cae MB |
17030 | #include "confdefs.h" |
17031 | #include <wchar.h> | |
17032 | int main() { | |
17033 | &_vsnwprintf; | |
17034 | ; return 0; } | |
17035 | EOF | |
34bed6d9 | 17036 | if { (eval echo configure:17037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
79668cae MB |
17037 | rm -rf conftest* |
17038 | echo "$ac_t""yes" 1>&6 | |
17039 | cat >> confdefs.h <<\EOF | |
17040 | #define HAVE__VSNWPRINTF 1 | |
17041 | EOF | |
17042 | ||
17043 | else | |
17044 | echo "configure: failed program was:" >&5 | |
17045 | cat conftest.$ac_ext >&5 | |
17046 | rm -rf conftest* | |
17047 | echo "$ac_t""no" 1>&6 | |
17048 | fi | |
17049 | rm -f conftest*; | |
d74f4b5a VZ |
17050 | fi |
17051 | ||
247f5006 | 17052 | ac_ext=c |
a0b9e27f | 17053 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
247f5006 | 17054 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17055 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17056 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17057 | cross_compiling=$ac_cv_prog_cc_cross | |
247f5006 VZ |
17058 | |
17059 | ||
17060 | ||
17061 | ||
4f14bcd8 | 17062 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 17063 | |
8284b0c5 MB |
17064 | |
17065 | ||
a0b9e27f MB |
17066 | ac_ext=C |
17067 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17068 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17069 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17070 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17071 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17072 | |
52127426 | 17073 | |
a0b9e27f MB |
17074 | |
17075 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
17076 | if test "${with_libiconv_prefix+set}" = set; then |
17077 | withval="$with_libiconv_prefix" | |
a0b9e27f | 17078 | |
b040e242 VS |
17079 | for dir in `echo "$withval" | tr : ' '`; do |
17080 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
17081 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
17082 | done | |
a0b9e27f MB |
17083 | |
17084 | fi | |
b040e242 VS |
17085 | |
17086 | ||
a0b9e27f | 17087 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
34bed6d9 | 17088 | echo "configure:17089: checking for iconv" >&5 |
a0b9e27f MB |
17089 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
17090 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17091 | else |
a0b9e27f | 17092 | |
b040e242 VS |
17093 | am_cv_func_iconv="no, consider installing GNU libiconv" |
17094 | am_cv_lib_iconv=no | |
a0b9e27f | 17095 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 17096 | #line 17097 "configure" |
af15babd | 17097 | #include "confdefs.h" |
b040e242 | 17098 | #include <stdlib.h> |
4f14bcd8 | 17099 | #include <iconv.h> |
a0b9e27f | 17100 | int main() { |
b040e242 VS |
17101 | iconv_t cd = iconv_open("",""); |
17102 | iconv(cd,NULL,NULL,NULL,NULL); | |
17103 | iconv_close(cd); | |
a0b9e27f MB |
17104 | ; return 0; } |
17105 | EOF | |
34bed6d9 | 17106 | if { (eval echo configure:17107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17107 | rm -rf conftest* |
b040e242 | 17108 | am_cv_func_iconv=yes |
af15babd | 17109 | else |
a0b9e27f MB |
17110 | echo "configure: failed program was:" >&5 |
17111 | cat conftest.$ac_ext >&5 | |
b040e242 | 17112 | fi |
a0b9e27f | 17113 | rm -f conftest* |
b040e242 VS |
17114 | if test "$am_cv_func_iconv" != yes; then |
17115 | am_save_LIBS="$LIBS" | |
17116 | LIBS="$LIBS -liconv" | |
a0b9e27f | 17117 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 17118 | #line 17119 "configure" |
b040e242 VS |
17119 | #include "confdefs.h" |
17120 | #include <stdlib.h> | |
17121 | #include <iconv.h> | |
a0b9e27f | 17122 | int main() { |
b040e242 VS |
17123 | iconv_t cd = iconv_open("",""); |
17124 | iconv(cd,NULL,NULL,NULL,NULL); | |
17125 | iconv_close(cd); | |
a0b9e27f MB |
17126 | ; return 0; } |
17127 | EOF | |
34bed6d9 | 17128 | if { (eval echo configure:17129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 17129 | rm -rf conftest* |
b040e242 VS |
17130 | am_cv_lib_iconv=yes |
17131 | am_cv_func_iconv=yes | |
17132 | else | |
a0b9e27f MB |
17133 | echo "configure: failed program was:" >&5 |
17134 | cat conftest.$ac_ext >&5 | |
af15babd | 17135 | fi |
a0b9e27f | 17136 | rm -f conftest* |
b040e242 VS |
17137 | LIBS="$am_save_LIBS" |
17138 | fi | |
a0b9e27f | 17139 | |
247f5006 | 17140 | fi |
247f5006 | 17141 | |
a0b9e27f MB |
17142 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
17143 | if test "$am_cv_func_iconv" = yes; then | |
17144 | cat >> confdefs.h <<\EOF | |
b040e242 | 17145 | #define HAVE_ICONV 1 |
a0b9e27f | 17146 | EOF |
b040e242 | 17147 | |
a0b9e27f | 17148 | echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6 |
34bed6d9 | 17149 | echo "configure:17150: checking if iconv needs const" >&5 |
a0b9e27f MB |
17150 | if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then |
17151 | echo $ac_n "(cached) $ac_c" 1>&6 | |
b040e242 | 17152 | else |
a0b9e27f | 17153 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 17154 | #line 17155 "configure" |
b040e242 VS |
17155 | #include "confdefs.h" |
17156 | ||
17157 | #include <stdlib.h> | |
17158 | #include <iconv.h> | |
17159 | extern | |
17160 | #ifdef __cplusplus | |
17161 | "C" | |
17162 | #endif | |
17163 | #if defined(__STDC__) || defined(__cplusplus) | |
17164 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
17165 | #else | |
17166 | size_t iconv(); | |
17167 | #endif | |
a0b9e27f MB |
17168 | |
17169 | int main() { | |
af15babd | 17170 | |
a0b9e27f MB |
17171 | ; return 0; } |
17172 | EOF | |
34bed6d9 | 17173 | if { (eval echo configure:17174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 17174 | rm -rf conftest* |
b7043674 | 17175 | wx_cv_func_iconv_const="no" |
b040e242 | 17176 | else |
a0b9e27f MB |
17177 | echo "configure: failed program was:" >&5 |
17178 | cat conftest.$ac_ext >&5 | |
17179 | rm -rf conftest* | |
17180 | wx_cv_func_iconv_const="yes" | |
17181 | ||
5c6fa7d2 | 17182 | fi |
a0b9e27f MB |
17183 | rm -f conftest* |
17184 | ||
247f5006 | 17185 | fi |
a0b9e27f MB |
17186 | |
17187 | echo "$ac_t""$wx_cv_func_iconv_const" 1>&6 | |
b7043674 VZ |
17188 | |
17189 | iconv_const= | |
1c405bb5 | 17190 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
17191 | iconv_const="const" |
17192 | fi | |
17193 | ||
a0b9e27f | 17194 | cat >> confdefs.h <<EOF |
f09359cf | 17195 | #define ICONV_CONST $iconv_const |
a0b9e27f | 17196 | EOF |
b040e242 VS |
17197 | |
17198 | fi | |
17199 | LIBICONV= | |
17200 | if test "$am_cv_lib_iconv" = yes; then | |
17201 | LIBICONV="-liconv" | |
17202 | fi | |
a0b9e27f | 17203 | |
b040e242 VS |
17204 | |
17205 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 17206 | ac_ext=c |
a0b9e27f | 17207 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17208 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17209 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17210 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17211 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17212 | |
5c6fa7d2 | 17213 | |
8284b0c5 | 17214 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 17215 | for ac_func in sigaction |
af15babd | 17216 | do |
a0b9e27f | 17217 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17218 | echo "configure:17219: checking for $ac_func" >&5 |
a0b9e27f MB |
17219 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17220 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17221 | else | |
17222 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17223 | #line 17224 "configure" |
af15babd VZ |
17224 | #include "confdefs.h" |
17225 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17226 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17227 | #include <assert.h> |
17228 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17229 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17230 | builtin and then its argument prototype would still apply. */ |
17231 | char $ac_func(); | |
17232 | ||
17233 | int main() { | |
17234 | ||
af15babd VZ |
17235 | /* The GNU C library defines this for functions which it implements |
17236 | to always fail with ENOSYS. Some functions are actually named | |
17237 | something starting with __ and the normal name is an alias. */ | |
17238 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17239 | choke me | |
17240 | #else | |
a0b9e27f | 17241 | $ac_func(); |
af15babd VZ |
17242 | #endif |
17243 | ||
a0b9e27f MB |
17244 | ; return 0; } |
17245 | EOF | |
34bed6d9 | 17246 | if { (eval echo configure:17247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17247 | rm -rf conftest* |
17248 | eval "ac_cv_func_$ac_func=yes" | |
17249 | else | |
17250 | echo "configure: failed program was:" >&5 | |
17251 | cat conftest.$ac_ext >&5 | |
17252 | rm -rf conftest* | |
17253 | eval "ac_cv_func_$ac_func=no" | |
17254 | fi | |
17255 | rm -f conftest* | |
17256 | fi | |
7b4a847f | 17257 | |
a0b9e27f MB |
17258 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17259 | echo "$ac_t""yes" 1>&6 | |
17260 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17261 | cat >> confdefs.h <<EOF | |
17262 | #define $ac_tr_func 1 | |
17263 | EOF | |
17264 | ||
17265 | else | |
17266 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 GD |
17267 | fi |
17268 | done | |
17269 | ||
8284b0c5 | 17270 | |
4f14bcd8 | 17271 | if test "$ac_cv_func_sigaction" = "no"; then |
a0b9e27f | 17272 | echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2 |
4f14bcd8 GD |
17273 | wxUSE_ON_FATAL_EXCEPTION=no |
17274 | fi | |
17275 | ||
17276 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a0b9e27f MB |
17277 | |
17278 | ac_ext=C | |
17279 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 17280 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17281 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17282 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17283 | cross_compiling=$ac_cv_prog_cxx_cross | |
7b4a847f | 17284 | |
5c6fa7d2 | 17285 | |
a0b9e27f | 17286 | echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6 |
34bed6d9 | 17287 | echo "configure:17288: checking for sa_handler type" >&5 |
a0b9e27f MB |
17288 | if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then |
17289 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 17290 | else |
a0b9e27f MB |
17291 | |
17292 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17293 | #line 17294 "configure" |
af15babd | 17294 | #include "confdefs.h" |
4f14bcd8 | 17295 | #include <signal.h> |
a0b9e27f | 17296 | int main() { |
4f14bcd8 GD |
17297 | |
17298 | extern void testSigHandler(int); | |
17299 | ||
17300 | struct sigaction sa; | |
17301 | sa.sa_handler = testSigHandler; | |
a0b9e27f MB |
17302 | |
17303 | ; return 0; } | |
17304 | EOF | |
34bed6d9 | 17305 | if { (eval echo configure:17306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17306 | rm -rf conftest* |
17307 | ||
4f14bcd8 | 17308 | wx_cv_type_sa_handler=int |
a0b9e27f | 17309 | |
af15babd | 17310 | else |
a0b9e27f MB |
17311 | echo "configure: failed program was:" >&5 |
17312 | cat conftest.$ac_ext >&5 | |
17313 | rm -rf conftest* | |
17314 | ||
4f14bcd8 | 17315 | wx_cv_type_sa_handler=void |
a0b9e27f | 17316 | |
5c6fa7d2 | 17317 | fi |
a0b9e27f MB |
17318 | rm -f conftest* |
17319 | ||
247f5006 | 17320 | fi |
a0b9e27f MB |
17321 | |
17322 | echo "$ac_t""$wx_cv_type_sa_handler" 1>&6 | |
4f14bcd8 GD |
17323 | |
17324 | ac_ext=c | |
a0b9e27f | 17325 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17326 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17327 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17328 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17329 | cross_compiling=$ac_cv_prog_cc_cross | |
579d8138 | 17330 | |
8284b0c5 | 17331 | |
a0b9e27f | 17332 | cat >> confdefs.h <<EOF |
4f14bcd8 | 17333 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
a0b9e27f | 17334 | EOF |
af15babd | 17335 | |
4f14bcd8 GD |
17336 | fi |
17337 | fi | |
af15babd | 17338 | |
a1d22ad7 | 17339 | for ac_func in mkstemp mktemp |
af15babd | 17340 | do |
a0b9e27f | 17341 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17342 | echo "configure:17343: checking for $ac_func" >&5 |
a0b9e27f MB |
17343 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17344 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17345 | else | |
17346 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17347 | #line 17348 "configure" |
af15babd VZ |
17348 | #include "confdefs.h" |
17349 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17350 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17351 | #include <assert.h> |
17352 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17353 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17354 | builtin and then its argument prototype would still apply. */ |
17355 | char $ac_func(); | |
17356 | ||
17357 | int main() { | |
17358 | ||
af15babd VZ |
17359 | /* The GNU C library defines this for functions which it implements |
17360 | to always fail with ENOSYS. Some functions are actually named | |
17361 | something starting with __ and the normal name is an alias. */ | |
17362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17363 | choke me | |
17364 | #else | |
a0b9e27f | 17365 | $ac_func(); |
af15babd VZ |
17366 | #endif |
17367 | ||
a0b9e27f MB |
17368 | ; return 0; } |
17369 | EOF | |
34bed6d9 | 17370 | if { (eval echo configure:17371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17371 | rm -rf conftest* |
17372 | eval "ac_cv_func_$ac_func=yes" | |
17373 | else | |
17374 | echo "configure: failed program was:" >&5 | |
17375 | cat conftest.$ac_ext >&5 | |
17376 | rm -rf conftest* | |
17377 | eval "ac_cv_func_$ac_func=no" | |
17378 | fi | |
17379 | rm -f conftest* | |
17380 | fi | |
af15babd | 17381 | |
a0b9e27f MB |
17382 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17383 | echo "$ac_t""yes" 1>&6 | |
17384 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17385 | cat >> confdefs.h <<EOF | |
17386 | #define $ac_tr_func 1 | |
17387 | EOF | |
ade35f11 | 17388 | break |
a0b9e27f MB |
17389 | else |
17390 | echo "$ac_t""no" 1>&6 | |
ade35f11 VZ |
17391 | fi |
17392 | done | |
17393 | ||
8284b0c5 | 17394 | |
a0b9e27f | 17395 | echo $ac_n "checking for statfs""... $ac_c" 1>&6 |
34bed6d9 | 17396 | echo "configure:17397: checking for statfs" >&5 |
a0b9e27f MB |
17397 | if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then |
17398 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 17399 | else |
a0b9e27f | 17400 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 17401 | #line 17402 "configure" |
4f14bcd8 GD |
17402 | #include "confdefs.h" |
17403 | ||
17404 | #if defined(__BSD__) | |
17405 | #include <sys/param.h> | |
17406 | #include <sys/mount.h> | |
17407 | #else | |
17408 | #include <sys/vfs.h> | |
17409 | #endif | |
a0b9e27f MB |
17410 | |
17411 | int main() { | |
4f14bcd8 GD |
17412 | |
17413 | long l; | |
17414 | struct statfs fs; | |
17415 | statfs("/", &fs); | |
17416 | l = fs.f_bsize; | |
17417 | l += fs.f_blocks; | |
17418 | l += fs.f_bavail; | |
a0b9e27f MB |
17419 | |
17420 | ; return 0; } | |
17421 | EOF | |
34bed6d9 | 17422 | if { (eval echo configure:17423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17423 | rm -rf conftest* |
17424 | ||
4f14bcd8 | 17425 | wx_cv_func_statfs=yes |
a0b9e27f | 17426 | |
4f14bcd8 | 17427 | else |
a0b9e27f MB |
17428 | echo "configure: failed program was:" >&5 |
17429 | cat conftest.$ac_ext >&5 | |
17430 | rm -rf conftest* | |
17431 | ||
4f14bcd8 | 17432 | wx_cv_func_statfs=no |
a0b9e27f MB |
17433 | |
17434 | ||
5c6fa7d2 | 17435 | fi |
a0b9e27f | 17436 | rm -f conftest* |
8284b0c5 | 17437 | |
247f5006 | 17438 | fi |
a0b9e27f MB |
17439 | |
17440 | echo "$ac_t""$wx_cv_func_statfs" 1>&6 | |
4f14bcd8 GD |
17441 | |
17442 | if test "$wx_cv_func_statfs" = "yes"; then | |
a0b9e27f | 17443 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17444 | #define HAVE_STATFS 1 |
a0b9e27f | 17445 | EOF |
4f14bcd8 GD |
17446 | |
17447 | else | |
a0b9e27f | 17448 | echo $ac_n "checking for statvfs""... $ac_c" 1>&6 |
34bed6d9 | 17449 | echo "configure:17450: checking for statvfs" >&5 |
a0b9e27f MB |
17450 | if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then |
17451 | echo $ac_n "(cached) $ac_c" 1>&6 | |
af15babd | 17452 | else |
a0b9e27f | 17453 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 17454 | #line 17455 "configure" |
af15babd | 17455 | #include "confdefs.h" |
af15babd | 17456 | |
4f14bcd8 | 17457 | #include <sys/statvfs.h> |
a0b9e27f MB |
17458 | |
17459 | int main() { | |
af15babd | 17460 | |
4f14bcd8 GD |
17461 | long l; |
17462 | struct statvfs fs; | |
17463 | statvfs("/", &fs); | |
17464 | l = fs.f_bsize; | |
17465 | l += fs.f_blocks; | |
17466 | l += fs.f_bavail; | |
a0b9e27f MB |
17467 | |
17468 | ; return 0; } | |
17469 | EOF | |
34bed6d9 | 17470 | if { (eval echo configure:17471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
17471 | rm -rf conftest* |
17472 | ||
4f14bcd8 | 17473 | wx_cv_func_statvfs=yes |
a0b9e27f | 17474 | |
af15babd | 17475 | else |
a0b9e27f MB |
17476 | echo "configure: failed program was:" >&5 |
17477 | cat conftest.$ac_ext >&5 | |
17478 | rm -rf conftest* | |
17479 | ||
4f14bcd8 | 17480 | wx_cv_func_statvfs=no |
a0b9e27f MB |
17481 | |
17482 | ||
5c6fa7d2 | 17483 | fi |
a0b9e27f MB |
17484 | rm -f conftest* |
17485 | ||
247f5006 | 17486 | fi |
a0b9e27f MB |
17487 | |
17488 | echo "$ac_t""$wx_cv_func_statvfs" 1>&6 | |
af15babd | 17489 | |
4f14bcd8 | 17490 | if test "$wx_cv_func_statvfs" = "yes"; then |
a0b9e27f | 17491 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17492 | #define HAVE_STATVFS 1 |
a0b9e27f | 17493 | EOF |
af15babd | 17494 | |
4f14bcd8 | 17495 | else |
a0b9e27f | 17496 | echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2 |
4f14bcd8 GD |
17497 | fi |
17498 | fi | |
af15babd | 17499 | |
4f14bcd8 | 17500 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 17501 | for ac_func in fcntl flock |
af15babd | 17502 | do |
a0b9e27f | 17503 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17504 | echo "configure:17505: checking for $ac_func" >&5 |
a0b9e27f MB |
17505 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17506 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17507 | else | |
17508 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17509 | #line 17510 "configure" |
af15babd VZ |
17510 | #include "confdefs.h" |
17511 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17512 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17513 | #include <assert.h> |
17514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
af15babd | 17515 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
17516 | builtin and then its argument prototype would still apply. */ |
17517 | char $ac_func(); | |
17518 | ||
17519 | int main() { | |
17520 | ||
af15babd VZ |
17521 | /* The GNU C library defines this for functions which it implements |
17522 | to always fail with ENOSYS. Some functions are actually named | |
17523 | something starting with __ and the normal name is an alias. */ | |
17524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17525 | choke me | |
17526 | #else | |
a0b9e27f | 17527 | $ac_func(); |
af15babd VZ |
17528 | #endif |
17529 | ||
a0b9e27f MB |
17530 | ; return 0; } |
17531 | EOF | |
34bed6d9 | 17532 | if { (eval echo configure:17533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17533 | rm -rf conftest* |
17534 | eval "ac_cv_func_$ac_func=yes" | |
17535 | else | |
17536 | echo "configure: failed program was:" >&5 | |
17537 | cat conftest.$ac_ext >&5 | |
17538 | rm -rf conftest* | |
17539 | eval "ac_cv_func_$ac_func=no" | |
17540 | fi | |
17541 | rm -f conftest* | |
17542 | fi | |
17543 | ||
17544 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17545 | echo "$ac_t""yes" 1>&6 | |
17546 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17547 | cat >> confdefs.h <<EOF | |
17548 | #define $ac_tr_func 1 | |
17549 | EOF | |
4f14bcd8 | 17550 | break |
a0b9e27f MB |
17551 | else |
17552 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17553 | fi |
17554 | done | |
17555 | ||
8284b0c5 | 17556 | |
4f14bcd8 | 17557 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
a0b9e27f | 17558 | echo "configure: warning: wxSingleInstanceChecker not available" 1>&2 |
4f14bcd8 GD |
17559 | wxUSE_SNGLINST_CHECKER=no |
17560 | fi | |
17561 | fi | |
af15babd | 17562 | |
4f14bcd8 | 17563 | for ac_func in timegm |
af15babd | 17564 | do |
a0b9e27f | 17565 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17566 | echo "configure:17567: checking for $ac_func" >&5 |
a0b9e27f MB |
17567 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17568 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17569 | else | |
17570 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17571 | #line 17572 "configure" |
af15babd VZ |
17572 | #include "confdefs.h" |
17573 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17574 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17575 | #include <assert.h> |
17576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17577 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17578 | builtin and then its argument prototype would still apply. */ |
17579 | char $ac_func(); | |
17580 | ||
17581 | int main() { | |
17582 | ||
af15babd VZ |
17583 | /* The GNU C library defines this for functions which it implements |
17584 | to always fail with ENOSYS. Some functions are actually named | |
17585 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
17586 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
17587 | choke me | |
17588 | #else | |
a0b9e27f | 17589 | $ac_func(); |
247f5006 VZ |
17590 | #endif |
17591 | ||
a0b9e27f MB |
17592 | ; return 0; } |
17593 | EOF | |
34bed6d9 | 17594 | if { (eval echo configure:17595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17595 | rm -rf conftest* |
17596 | eval "ac_cv_func_$ac_func=yes" | |
17597 | else | |
17598 | echo "configure: failed program was:" >&5 | |
17599 | cat conftest.$ac_ext >&5 | |
17600 | rm -rf conftest* | |
17601 | eval "ac_cv_func_$ac_func=no" | |
17602 | fi | |
17603 | rm -f conftest* | |
17604 | fi | |
703e0a69 | 17605 | |
a0b9e27f MB |
17606 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17607 | echo "$ac_t""yes" 1>&6 | |
17608 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17609 | cat >> confdefs.h <<EOF | |
17610 | #define $ac_tr_func 1 | |
17611 | EOF | |
17612 | ||
17613 | else | |
17614 | echo "$ac_t""no" 1>&6 | |
af15babd VZ |
17615 | fi |
17616 | done | |
17617 | ||
8284b0c5 | 17618 | |
4f14bcd8 | 17619 | for ac_func in putenv setenv |
10f2d63a | 17620 | do |
a0b9e27f | 17621 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17622 | echo "configure:17623: checking for $ac_func" >&5 |
a0b9e27f MB |
17623 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17624 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17625 | else | |
17626 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17627 | #line 17628 "configure" |
af15babd VZ |
17628 | #include "confdefs.h" |
17629 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17630 | which can conflict with char $ac_func(); below. */ |
af15babd VZ |
17631 | #include <assert.h> |
17632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17633 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17634 | builtin and then its argument prototype would still apply. */ |
17635 | char $ac_func(); | |
17636 | ||
17637 | int main() { | |
17638 | ||
af15babd VZ |
17639 | /* The GNU C library defines this for functions which it implements |
17640 | to always fail with ENOSYS. Some functions are actually named | |
17641 | something starting with __ and the normal name is an alias. */ | |
17642 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17643 | choke me | |
17644 | #else | |
a0b9e27f | 17645 | $ac_func(); |
af15babd VZ |
17646 | #endif |
17647 | ||
a0b9e27f MB |
17648 | ; return 0; } |
17649 | EOF | |
34bed6d9 | 17650 | if { (eval echo configure:17651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17651 | rm -rf conftest* |
17652 | eval "ac_cv_func_$ac_func=yes" | |
17653 | else | |
17654 | echo "configure: failed program was:" >&5 | |
17655 | cat conftest.$ac_ext >&5 | |
17656 | rm -rf conftest* | |
17657 | eval "ac_cv_func_$ac_func=no" | |
17658 | fi | |
17659 | rm -f conftest* | |
17660 | fi | |
17661 | ||
17662 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17663 | echo "$ac_t""yes" 1>&6 | |
17664 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17665 | cat >> confdefs.h <<EOF | |
17666 | #define $ac_tr_func 1 | |
17667 | EOF | |
4f14bcd8 | 17668 | break |
a0b9e27f MB |
17669 | else |
17670 | echo "$ac_t""no" 1>&6 | |
af15babd | 17671 | fi |
af15babd VZ |
17672 | done |
17673 | ||
8284b0c5 | 17674 | |
4f14bcd8 GD |
17675 | HAVE_SOME_SLEEP_FUNC=0 |
17676 | if test "$USE_BEOS" = 1; then | |
a0b9e27f | 17677 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17678 | #define HAVE_SLEEP 1 |
a0b9e27f | 17679 | EOF |
af15babd | 17680 | |
4f14bcd8 | 17681 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17682 | fi |
17683 | ||
4f14bcd8 | 17684 | if test "$USE_DARWIN" = 1; then |
a0b9e27f | 17685 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 17686 | #define HAVE_USLEEP 1 |
a0b9e27f | 17687 | EOF |
10f2d63a | 17688 | |
4f14bcd8 | 17689 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
17690 | fi |
17691 | ||
4f14bcd8 GD |
17692 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
17693 | POSIX4_LINK= | |
a0b9e27f | 17694 | for ac_func in nanosleep |
4f14bcd8 | 17695 | do |
a0b9e27f | 17696 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17697 | echo "configure:17698: checking for $ac_func" >&5 |
a0b9e27f MB |
17698 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17699 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17700 | else | |
17701 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17702 | #line 17703 "configure" |
10f2d63a | 17703 | #include "confdefs.h" |
4f14bcd8 | 17704 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17705 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 17706 | #include <assert.h> |
10f2d63a VZ |
17707 | /* Override any gcc2 internal prototype to avoid an error. */ |
17708 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17709 | builtin and then its argument prototype would still apply. */ |
17710 | char $ac_func(); | |
17711 | ||
17712 | int main() { | |
17713 | ||
4f14bcd8 GD |
17714 | /* The GNU C library defines this for functions which it implements |
17715 | to always fail with ENOSYS. Some functions are actually named | |
17716 | something starting with __ and the normal name is an alias. */ | |
17717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17718 | choke me | |
17719 | #else | |
a0b9e27f | 17720 | $ac_func(); |
4f14bcd8 GD |
17721 | #endif |
17722 | ||
a0b9e27f MB |
17723 | ; return 0; } |
17724 | EOF | |
34bed6d9 | 17725 | if { (eval echo configure:17726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17726 | rm -rf conftest* |
17727 | eval "ac_cv_func_$ac_func=yes" | |
17728 | else | |
17729 | echo "configure: failed program was:" >&5 | |
17730 | cat conftest.$ac_ext >&5 | |
17731 | rm -rf conftest* | |
17732 | eval "ac_cv_func_$ac_func=no" | |
17733 | fi | |
17734 | rm -f conftest* | |
17735 | fi | |
17736 | ||
17737 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17738 | echo "$ac_t""yes" 1>&6 | |
17739 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17740 | cat >> confdefs.h <<EOF | |
17741 | #define $ac_tr_func 1 | |
17742 | EOF | |
17743 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17744 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17745 | EOF |
4f14bcd8 | 17746 | |
10f2d63a | 17747 | else |
a0b9e27f MB |
17748 | echo "$ac_t""no" 1>&6 |
17749 | echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6 | |
34bed6d9 | 17750 | echo "configure:17751: checking for nanosleep in -lposix4" >&5 |
a0b9e27f MB |
17751 | ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'` |
17752 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
17753 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 17754 | else |
a0b9e27f | 17755 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 17756 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 17757 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 17758 | #line 17759 "configure" |
10f2d63a VZ |
17759 | #include "confdefs.h" |
17760 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17761 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17762 | builtin and then its argument prototype would still apply. */ |
17763 | char nanosleep(); | |
17764 | ||
17765 | int main() { | |
17766 | nanosleep() | |
17767 | ; return 0; } | |
17768 | EOF | |
34bed6d9 | 17769 | if { (eval echo configure:17770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17770 | rm -rf conftest* |
17771 | eval "ac_cv_lib_$ac_lib_var=yes" | |
17772 | else | |
17773 | echo "configure: failed program was:" >&5 | |
17774 | cat conftest.$ac_ext >&5 | |
17775 | rm -rf conftest* | |
17776 | eval "ac_cv_lib_$ac_lib_var=no" | |
17777 | fi | |
17778 | rm -f conftest* | |
17779 | LIBS="$ac_save_LIBS" | |
17780 | ||
17781 | fi | |
17782 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
17783 | echo "$ac_t""yes" 1>&6 | |
17784 | ||
17785 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17786 | #define HAVE_NANOSLEEP 1 |
a0b9e27f | 17787 | EOF |
4f14bcd8 | 17788 | |
3d63bc3a | 17789 | POSIX4_LINK=" -lposix4" |
a0b9e27f | 17790 | |
10f2d63a | 17791 | else |
a0b9e27f | 17792 | echo "$ac_t""no" 1>&6 |
10f2d63a | 17793 | |
a0b9e27f | 17794 | for ac_func in usleep |
4f14bcd8 | 17795 | do |
a0b9e27f | 17796 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17797 | echo "configure:17798: checking for $ac_func" >&5 |
a0b9e27f MB |
17798 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17800 | else | |
17801 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17802 | #line 17803 "configure" |
10f2d63a | 17803 | #include "confdefs.h" |
4f14bcd8 | 17804 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17805 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17806 | #include <assert.h> |
17807 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17808 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17809 | builtin and then its argument prototype would still apply. */ |
17810 | char $ac_func(); | |
17811 | ||
17812 | int main() { | |
17813 | ||
4f14bcd8 GD |
17814 | /* The GNU C library defines this for functions which it implements |
17815 | to always fail with ENOSYS. Some functions are actually named | |
17816 | something starting with __ and the normal name is an alias. */ | |
17817 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17818 | choke me | |
17819 | #else | |
a0b9e27f | 17820 | $ac_func(); |
4f14bcd8 GD |
17821 | #endif |
17822 | ||
a0b9e27f MB |
17823 | ; return 0; } |
17824 | EOF | |
34bed6d9 | 17825 | if { (eval echo configure:17826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17826 | rm -rf conftest* |
17827 | eval "ac_cv_func_$ac_func=yes" | |
17828 | else | |
17829 | echo "configure: failed program was:" >&5 | |
17830 | cat conftest.$ac_ext >&5 | |
17831 | rm -rf conftest* | |
17832 | eval "ac_cv_func_$ac_func=no" | |
17833 | fi | |
17834 | rm -f conftest* | |
17835 | fi | |
17836 | ||
17837 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17838 | echo "$ac_t""yes" 1>&6 | |
17839 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17840 | cat >> confdefs.h <<EOF | |
17841 | #define $ac_tr_func 1 | |
17842 | EOF | |
17843 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 17844 | #define HAVE_USLEEP 1 |
a0b9e27f | 17845 | EOF |
4f14bcd8 | 17846 | |
698dcdb6 | 17847 | else |
a0b9e27f MB |
17848 | echo "$ac_t""no" 1>&6 |
17849 | echo "configure: warning: wxSleep() function will not work" 1>&2 | |
17850 | ||
10f2d63a | 17851 | fi |
4f14bcd8 | 17852 | done |
10f2d63a | 17853 | |
a0b9e27f MB |
17854 | |
17855 | ||
6232543b | 17856 | fi |
10f2d63a | 17857 | |
a0b9e27f MB |
17858 | |
17859 | ||
1e487827 | 17860 | fi |
4f14bcd8 | 17861 | done |
703e0a69 | 17862 | |
10f2d63a VZ |
17863 | fi |
17864 | ||
4f14bcd8 | 17865 | for ac_func in uname gethostname |
70846f0a | 17866 | do |
a0b9e27f | 17867 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17868 | echo "configure:17869: checking for $ac_func" >&5 |
a0b9e27f MB |
17869 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17870 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17871 | else | |
17872 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17873 | #line 17874 "configure" |
70846f0a VZ |
17874 | #include "confdefs.h" |
17875 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 17876 | which can conflict with char $ac_func(); below. */ |
70846f0a VZ |
17877 | #include <assert.h> |
17878 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17879 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17880 | builtin and then its argument prototype would still apply. */ |
17881 | char $ac_func(); | |
17882 | ||
17883 | int main() { | |
17884 | ||
70846f0a VZ |
17885 | /* The GNU C library defines this for functions which it implements |
17886 | to always fail with ENOSYS. Some functions are actually named | |
17887 | something starting with __ and the normal name is an alias. */ | |
17888 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17889 | choke me | |
17890 | #else | |
a0b9e27f | 17891 | $ac_func(); |
70846f0a VZ |
17892 | #endif |
17893 | ||
a0b9e27f MB |
17894 | ; return 0; } |
17895 | EOF | |
34bed6d9 | 17896 | if { (eval echo configure:17897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17897 | rm -rf conftest* |
17898 | eval "ac_cv_func_$ac_func=yes" | |
17899 | else | |
17900 | echo "configure: failed program was:" >&5 | |
17901 | cat conftest.$ac_ext >&5 | |
17902 | rm -rf conftest* | |
17903 | eval "ac_cv_func_$ac_func=no" | |
17904 | fi | |
17905 | rm -f conftest* | |
17906 | fi | |
17907 | ||
17908 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
17909 | echo "$ac_t""yes" 1>&6 | |
17910 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17911 | cat >> confdefs.h <<EOF | |
17912 | #define $ac_tr_func 1 | |
17913 | EOF | |
4f14bcd8 | 17914 | break |
a0b9e27f MB |
17915 | else |
17916 | echo "$ac_t""no" 1>&6 | |
70846f0a VZ |
17917 | fi |
17918 | done | |
17919 | ||
8284b0c5 MB |
17920 | |
17921 | ||
a0b9e27f MB |
17922 | ac_ext=C |
17923 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
4f14bcd8 | 17924 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
17925 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17926 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17927 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 | 17928 | |
4f14bcd8 GD |
17929 | |
17930 | for ac_func in strtok_r | |
10f2d63a | 17931 | do |
a0b9e27f | 17932 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 17933 | echo "configure:17934: checking for $ac_func" >&5 |
a0b9e27f MB |
17934 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
17935 | echo $ac_n "(cached) $ac_c" 1>&6 | |
17936 | else | |
17937 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 17938 | #line 17939 "configure" |
10f2d63a | 17939 | #include "confdefs.h" |
4f14bcd8 | 17940 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 17941 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
17942 | #include <assert.h> |
17943 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17944 | #ifdef __cplusplus | |
17945 | extern "C" | |
17946 | #endif | |
17947 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
17948 | builtin and then its argument prototype would still apply. */ |
17949 | char $ac_func(); | |
17950 | ||
17951 | int main() { | |
17952 | ||
4f14bcd8 GD |
17953 | /* The GNU C library defines this for functions which it implements |
17954 | to always fail with ENOSYS. Some functions are actually named | |
17955 | something starting with __ and the normal name is an alias. */ | |
17956 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17957 | choke me | |
17958 | #else | |
a0b9e27f | 17959 | $ac_func(); |
4f14bcd8 GD |
17960 | #endif |
17961 | ||
a0b9e27f MB |
17962 | ; return 0; } |
17963 | EOF | |
34bed6d9 | 17964 | if { (eval echo configure:17965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
17965 | rm -rf conftest* |
17966 | eval "ac_cv_func_$ac_func=yes" | |
17967 | else | |
17968 | echo "configure: failed program was:" >&5 | |
17969 | cat conftest.$ac_ext >&5 | |
17970 | rm -rf conftest* | |
17971 | eval "ac_cv_func_$ac_func=no" | |
17972 | fi | |
17973 | rm -f conftest* | |
17974 | fi | |
4f14bcd8 | 17975 | |
a0b9e27f MB |
17976 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
17977 | echo "$ac_t""yes" 1>&6 | |
17978 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
17979 | cat >> confdefs.h <<EOF | |
17980 | #define $ac_tr_func 1 | |
17981 | EOF | |
17982 | ||
17983 | else | |
17984 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
17985 | fi |
17986 | done | |
17987 | ||
8284b0c5 | 17988 | |
4f14bcd8 | 17989 | ac_ext=c |
a0b9e27f | 17990 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
4f14bcd8 | 17991 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
17992 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
17993 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
17994 | cross_compiling=$ac_cv_prog_cc_cross | |
7b4a847f | 17995 | |
5c6fa7d2 | 17996 | |
8284b0c5 | 17997 | INET_LINK= |
4f14bcd8 GD |
17998 | for ac_func in inet_addr |
17999 | do | |
a0b9e27f | 18000 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 18001 | echo "configure:18002: checking for $ac_func" >&5 |
a0b9e27f MB |
18002 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18003 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18004 | else | |
18005 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 18006 | #line 18007 "configure" |
10f2d63a | 18007 | #include "confdefs.h" |
4f14bcd8 | 18008 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18009 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18010 | #include <assert.h> |
10f2d63a VZ |
18011 | /* Override any gcc2 internal prototype to avoid an error. */ |
18012 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18013 | builtin and then its argument prototype would still apply. */ |
18014 | char $ac_func(); | |
18015 | ||
18016 | int main() { | |
18017 | ||
4f14bcd8 GD |
18018 | /* The GNU C library defines this for functions which it implements |
18019 | to always fail with ENOSYS. Some functions are actually named | |
18020 | something starting with __ and the normal name is an alias. */ | |
18021 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18022 | choke me | |
18023 | #else | |
a0b9e27f | 18024 | $ac_func(); |
4f14bcd8 GD |
18025 | #endif |
18026 | ||
a0b9e27f MB |
18027 | ; return 0; } |
18028 | EOF | |
34bed6d9 | 18029 | if { (eval echo configure:18030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18030 | rm -rf conftest* |
18031 | eval "ac_cv_func_$ac_func=yes" | |
18032 | else | |
18033 | echo "configure: failed program was:" >&5 | |
18034 | cat conftest.$ac_ext >&5 | |
18035 | rm -rf conftest* | |
18036 | eval "ac_cv_func_$ac_func=no" | |
18037 | fi | |
18038 | rm -f conftest* | |
18039 | fi | |
18040 | ||
18041 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18042 | echo "$ac_t""yes" 1>&6 | |
18043 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18044 | cat >> confdefs.h <<EOF | |
18045 | #define $ac_tr_func 1 | |
18046 | EOF | |
18047 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18048 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18049 | EOF |
10f2d63a VZ |
18050 | |
18051 | else | |
a0b9e27f MB |
18052 | echo "$ac_t""no" 1>&6 |
18053 | echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6 | |
34bed6d9 | 18054 | echo "configure:18055: checking for inet_addr in -lnsl" >&5 |
a0b9e27f MB |
18055 | ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'` |
18056 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18057 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18058 | else |
a0b9e27f | 18059 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18060 | LIBS="-lnsl $LIBS" |
a0b9e27f | 18061 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18062 | #line 18063 "configure" |
10f2d63a VZ |
18063 | #include "confdefs.h" |
18064 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18065 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18066 | builtin and then its argument prototype would still apply. */ |
18067 | char inet_addr(); | |
18068 | ||
18069 | int main() { | |
18070 | inet_addr() | |
18071 | ; return 0; } | |
18072 | EOF | |
34bed6d9 | 18073 | if { (eval echo configure:18074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18074 | rm -rf conftest* |
18075 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18076 | else | |
18077 | echo "configure: failed program was:" >&5 | |
18078 | cat conftest.$ac_ext >&5 | |
18079 | rm -rf conftest* | |
18080 | eval "ac_cv_lib_$ac_lib_var=no" | |
18081 | fi | |
18082 | rm -f conftest* | |
18083 | LIBS="$ac_save_LIBS" | |
18084 | ||
18085 | fi | |
18086 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18087 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18088 | INET_LINK="nsl" |
10f2d63a | 18089 | else |
a0b9e27f MB |
18090 | echo "$ac_t""no" 1>&6 |
18091 | echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6 | |
34bed6d9 | 18092 | echo "configure:18093: checking for inet_addr in -lresolv" >&5 |
a0b9e27f MB |
18093 | ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'` |
18094 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18095 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 18096 | else |
a0b9e27f | 18097 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18098 | LIBS="-lresolv $LIBS" |
a0b9e27f | 18099 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18100 | #line 18101 "configure" |
7b4a847f | 18101 | #include "confdefs.h" |
5c6fa7d2 | 18102 | /* Override any gcc2 internal prototype to avoid an error. */ |
5c6fa7d2 | 18103 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18104 | builtin and then its argument prototype would still apply. */ |
18105 | char inet_addr(); | |
18106 | ||
18107 | int main() { | |
18108 | inet_addr() | |
18109 | ; return 0; } | |
18110 | EOF | |
34bed6d9 | 18111 | if { (eval echo configure:18112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18112 | rm -rf conftest* |
18113 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18114 | else | |
18115 | echo "configure: failed program was:" >&5 | |
18116 | cat conftest.$ac_ext >&5 | |
18117 | rm -rf conftest* | |
18118 | eval "ac_cv_lib_$ac_lib_var=no" | |
18119 | fi | |
18120 | rm -f conftest* | |
18121 | LIBS="$ac_save_LIBS" | |
18122 | ||
18123 | fi | |
18124 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18125 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 | 18126 | INET_LINK="resolv" |
698dcdb6 | 18127 | else |
a0b9e27f MB |
18128 | echo "$ac_t""no" 1>&6 |
18129 | echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6 | |
34bed6d9 | 18130 | echo "configure:18131: checking for inet_addr in -lsocket" >&5 |
a0b9e27f MB |
18131 | ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'` |
18132 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18133 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3c011993 | 18134 | else |
a0b9e27f | 18135 | ac_save_LIBS="$LIBS" |
3c011993 | 18136 | LIBS="-lsocket $LIBS" |
a0b9e27f | 18137 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18138 | #line 18139 "configure" |
3c011993 VZ |
18139 | #include "confdefs.h" |
18140 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18141 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18142 | builtin and then its argument prototype would still apply. */ |
18143 | char inet_addr(); | |
4f14bcd8 | 18144 | |
a0b9e27f MB |
18145 | int main() { |
18146 | inet_addr() | |
18147 | ; return 0; } | |
18148 | EOF | |
34bed6d9 | 18149 | if { (eval echo configure:18150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18150 | rm -rf conftest* |
18151 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18152 | else | |
18153 | echo "configure: failed program was:" >&5 | |
18154 | cat conftest.$ac_ext >&5 | |
18155 | rm -rf conftest* | |
18156 | eval "ac_cv_lib_$ac_lib_var=no" | |
8284b0c5 | 18157 | fi |
a0b9e27f MB |
18158 | rm -f conftest* |
18159 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18160 | |
7b4a847f | 18161 | fi |
a0b9e27f MB |
18162 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18163 | echo "$ac_t""yes" 1>&6 | |
18164 | INET_LINK="socket" | |
18165 | ||
18166 | else | |
18167 | echo "$ac_t""no" 1>&6 | |
18168 | fi | |
579d8138 | 18169 | |
a0b9e27f | 18170 | |
5c6fa7d2 | 18171 | fi |
52127426 | 18172 | |
a0b9e27f MB |
18173 | |
18174 | fi | |
247f5006 | 18175 | |
a0b9e27f | 18176 | |
8284b0c5 | 18177 | |
698dcdb6 | 18178 | fi |
4f14bcd8 GD |
18179 | done |
18180 | ||
8284b0c5 | 18181 | |
4f14bcd8 GD |
18182 | for ac_func in inet_aton |
18183 | do | |
a0b9e27f | 18184 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 18185 | echo "configure:18186: checking for $ac_func" >&5 |
a0b9e27f MB |
18186 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18187 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18188 | else | |
18189 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 18190 | #line 18191 "configure" |
f6bcfd97 | 18191 | #include "confdefs.h" |
4f14bcd8 | 18192 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18193 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 | 18194 | #include <assert.h> |
f6bcfd97 BP |
18195 | /* Override any gcc2 internal prototype to avoid an error. */ |
18196 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18197 | builtin and then its argument prototype would still apply. */ |
18198 | char $ac_func(); | |
18199 | ||
18200 | int main() { | |
18201 | ||
4f14bcd8 GD |
18202 | /* The GNU C library defines this for functions which it implements |
18203 | to always fail with ENOSYS. Some functions are actually named | |
18204 | something starting with __ and the normal name is an alias. */ | |
18205 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18206 | choke me | |
18207 | #else | |
a0b9e27f | 18208 | $ac_func(); |
4f14bcd8 GD |
18209 | #endif |
18210 | ||
a0b9e27f MB |
18211 | ; return 0; } |
18212 | EOF | |
34bed6d9 | 18213 | if { (eval echo configure:18214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18214 | rm -rf conftest* |
18215 | eval "ac_cv_func_$ac_func=yes" | |
18216 | else | |
18217 | echo "configure: failed program was:" >&5 | |
18218 | cat conftest.$ac_ext >&5 | |
18219 | rm -rf conftest* | |
18220 | eval "ac_cv_func_$ac_func=no" | |
18221 | fi | |
18222 | rm -f conftest* | |
18223 | fi | |
18224 | ||
18225 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
18226 | echo "$ac_t""yes" 1>&6 | |
18227 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18228 | cat >> confdefs.h <<EOF | |
18229 | #define $ac_tr_func 1 | |
18230 | EOF | |
18231 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18232 | #define HAVE_INET_ATON 1 |
a0b9e27f | 18233 | EOF |
4f14bcd8 | 18234 | |
10f2d63a | 18235 | else |
a0b9e27f MB |
18236 | echo "$ac_t""no" 1>&6 |
18237 | echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6 | |
34bed6d9 | 18238 | echo "configure:18239: checking for inet_aton in -l$INET_LINK" >&5 |
a0b9e27f MB |
18239 | ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'` |
18240 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18241 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1e487827 | 18242 | else |
a0b9e27f | 18243 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18244 | LIBS="-l$INET_LINK $LIBS" |
a0b9e27f | 18245 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18246 | #line 18247 "configure" |
10f2d63a | 18247 | #include "confdefs.h" |
6232543b | 18248 | /* Override any gcc2 internal prototype to avoid an error. */ |
6232543b | 18249 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
18250 | builtin and then its argument prototype would still apply. */ |
18251 | char inet_aton(); | |
18252 | ||
18253 | int main() { | |
18254 | inet_aton() | |
18255 | ; return 0; } | |
18256 | EOF | |
34bed6d9 | 18257 | if { (eval echo configure:18258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18258 | rm -rf conftest* |
18259 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18260 | else | |
18261 | echo "configure: failed program was:" >&5 | |
18262 | cat conftest.$ac_ext >&5 | |
18263 | rm -rf conftest* | |
18264 | eval "ac_cv_lib_$ac_lib_var=no" | |
18265 | fi | |
18266 | rm -f conftest* | |
18267 | LIBS="$ac_save_LIBS" | |
4f14bcd8 | 18268 | |
10f2d63a | 18269 | fi |
a0b9e27f MB |
18270 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
18271 | echo "$ac_t""yes" 1>&6 | |
18272 | cat >> confdefs.h <<\EOF | |
18273 | #define HAVE_INET_ATON 1 | |
18274 | EOF | |
10f2d63a | 18275 | |
a0b9e27f MB |
18276 | else |
18277 | echo "$ac_t""no" 1>&6 | |
18278 | fi | |
247f5006 | 18279 | |
a0b9e27f | 18280 | |
10f2d63a | 18281 | fi |
4f14bcd8 | 18282 | done |
10f2d63a | 18283 | |
8284b0c5 | 18284 | |
4f14bcd8 | 18285 | if test "x$INET_LINK" != "x"; then |
a0b9e27f | 18286 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18287 | #define HAVE_INET_ADDR 1 |
a0b9e27f | 18288 | EOF |
4f14bcd8 | 18289 | |
3d63bc3a | 18290 | INET_LINK=" -l$INET_LINK" |
6232543b | 18291 | fi |
10f2d63a | 18292 | |
1e487827 | 18293 | fi |
703e0a69 | 18294 | |
8284b0c5 | 18295 | |
a0b9e27f | 18296 | cat > confcache <<\EOF |
4f14bcd8 GD |
18297 | # This file is a shell script that caches the results of configure |
18298 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
18299 | # scripts and configure runs. It is not useful on other systems. |
18300 | # If it contains results you don't want to keep, you may remove or edit it. | |
4f14bcd8 | 18301 | # |
a0b9e27f MB |
18302 | # By default, configure uses ./config.cache as the cache file, |
18303 | # creating it if it does not exist already. You can give configure | |
18304 | # the --cache-file=FILE option to use a different cache file; that is | |
18305 | # what configure does when it calls configure scripts in | |
18306 | # subdirectories, so they share the cache. | |
18307 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
18308 | # config.status only pays attention to the cache file if you give it the | |
18309 | # --recheck option to rerun configure. | |
4f14bcd8 | 18310 | # |
a0b9e27f | 18311 | EOF |
4f14bcd8 GD |
18312 | # The following way of writing the cache mishandles newlines in values, |
18313 | # but we know of no workaround that is simple, portable, and efficient. | |
18314 | # So, don't put newlines in cache variables' values. | |
18315 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18316 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
18317 | (set) 2>&1 | |
18318 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18319 | *ac_space=\ *) | |
18320 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
18321 | # turns \\\\ into \\, and sed turns \\ into \). | |
18322 | sed -n \ | |
18323 | -e "s/'/'\\\\''/g" \ | |
18324 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
18325 | ;; | |
18326 | *) | |
18327 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18328 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
18329 | ;; | |
18330 | esac >> confcache | |
18331 | if cmp -s $cache_file confcache; then | |
18332 | : | |
18333 | else | |
4f14bcd8 | 18334 | if test -w $cache_file; then |
a0b9e27f MB |
18335 | echo "updating cache $cache_file" |
18336 | cat confcache > $cache_file | |
f6bcfd97 | 18337 | else |
4f14bcd8 | 18338 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 18339 | fi |
4f14bcd8 GD |
18340 | fi |
18341 | rm -f confcache | |
f6bcfd97 | 18342 | |
8284b0c5 | 18343 | |
a0b9e27f | 18344 | |
009fead0 | 18345 | CPP_MT_FLAG= |
4f14bcd8 GD |
18346 | if test "$TOOLKIT" != "MSW"; then |
18347 | ||
a0b9e27f | 18348 | |
7274f1c7 | 18349 | THREADS_LINK= |
009fead0 | 18350 | THREADS_CFLAGS= |
7274f1c7 RL |
18351 | |
18352 | if test "$wxUSE_THREADS" = "yes" ; then | |
18353 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 18354 | echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2 |
7274f1c7 RL |
18355 | wxUSE_THREADS="no" |
18356 | elif test "$USE_BEOS" = 1; then | |
a0b9e27f | 18357 | echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2 |
7274f1c7 RL |
18358 | wxUSE_THREADS="no" |
18359 | fi | |
4f14bcd8 | 18360 | fi |
4f14bcd8 | 18361 | |
7274f1c7 | 18362 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f MB |
18363 | |
18364 | ||
009fead0 VZ |
18365 | THREAD_OPTS="-pthread" |
18366 | case "${host}" in | |
18367 | *-*-solaris2* | *-*-sunos4* ) | |
18368 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 18369 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
18370 | else |
18371 | THREAD_OPTS="-mt $THREAD_OPTS" | |
18372 | fi | |
18373 | ;; | |
18374 | *-*-freebsd*) | |
18375 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
18376 | ;; | |
17234b26 MB |
18377 | *-*-darwin* | *-*-cygwin* ) |
18378 | THREAD_OPTS="" | |
4101db81 | 18379 | ;; |
8f4a9a10 | 18380 | *-*-aix*) |
009fead0 VZ |
18381 | THREAD_OPTS="pthreads" |
18382 | ;; | |
009fead0 | 18383 | esac |
4f14bcd8 | 18384 | |
02a1dfba | 18385 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 18386 | |
009fead0 VZ |
18387 | THREADS_OK=no |
18388 | for flag in $THREAD_OPTS; do | |
18389 | case $flag in | |
18390 | none) | |
a0b9e27f | 18391 | echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6 |
34bed6d9 | 18392 | echo "configure:18393: checking whether pthreads work without any flags" >&5 |
009fead0 | 18393 | ;; |
698dcdb6 | 18394 | |
009fead0 | 18395 | -*) |
a0b9e27f | 18396 | echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6 |
34bed6d9 | 18397 | echo "configure:18398: checking whether pthreads work with $flag" >&5 |
009fead0 VZ |
18398 | THREADS_CFLAGS="$flag" |
18399 | ;; | |
698dcdb6 | 18400 | |
009fead0 | 18401 | *) |
a0b9e27f | 18402 | echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6 |
34bed6d9 | 18403 | echo "configure:18404: checking for the pthreads library -l$flag" >&5 |
009fead0 VZ |
18404 | THREADS_LINK="-l$flag" |
18405 | ;; | |
18406 | esac | |
10f2d63a | 18407 | |
009fead0 VZ |
18408 | save_LIBS="$LIBS" |
18409 | save_CFLAGS="$CFLAGS" | |
18410 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 18411 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 18412 | |
a0b9e27f | 18413 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18414 | #line 18415 "configure" |
009fead0 VZ |
18415 | #include "confdefs.h" |
18416 | #include <pthread.h> | |
a0b9e27f | 18417 | int main() { |
009fead0 | 18418 | pthread_create(0,0,0,0); |
a0b9e27f MB |
18419 | ; return 0; } |
18420 | EOF | |
34bed6d9 | 18421 | if { (eval echo configure:18422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f | 18422 | rm -rf conftest* |
009fead0 | 18423 | THREADS_OK=yes |
10f2d63a | 18424 | else |
a0b9e27f MB |
18425 | echo "configure: failed program was:" >&5 |
18426 | cat conftest.$ac_ext >&5 | |
6232543b | 18427 | fi |
a0b9e27f | 18428 | rm -f conftest* |
698dcdb6 | 18429 | |
009fead0 VZ |
18430 | LIBS="$save_LIBS" |
18431 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 18432 | |
a0b9e27f | 18433 | echo "$ac_t""$THREADS_OK" 1>&6 |
009fead0 VZ |
18434 | if test "x$THREADS_OK" = "xyes"; then |
18435 | break; | |
18436 | fi | |
d9b9876f | 18437 | |
009fead0 VZ |
18438 | THREADS_LINK="" |
18439 | THREADS_CFLAGS="" | |
18440 | done | |
4f14bcd8 | 18441 | |
009fead0 VZ |
18442 | if test "x$THREADS_OK" != "xyes"; then |
18443 | wxUSE_THREADS=no | |
a0b9e27f | 18444 | echo "configure: warning: No thread support on this system... disabled" 1>&2 |
009fead0 | 18445 | else |
db82f09e VZ |
18446 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
18447 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 18448 | |
a0b9e27f | 18449 | echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6 |
34bed6d9 | 18450 | echo "configure:18451: checking if more special flags are required for pthreads" >&5 |
009fead0 VZ |
18451 | flag=no |
18452 | case "${host}" in | |
2b5f62a0 VZ |
18453 | *-aix*) |
18454 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
18455 | flag="-D_THREAD_SAFE" | |
18456 | ;; | |
18457 | *-freebsd*) | |
009fead0 VZ |
18458 | flag="-D_THREAD_SAFE" |
18459 | ;; | |
06313569 GD |
18460 | *-hp-hpux* ) |
18461 | flag="-D_REENTRANT" | |
18462 | ;; | |
009fead0 VZ |
18463 | *solaris* | alpha*-osf*) |
18464 | flag="-D_REENTRANT" | |
18465 | ;; | |
18466 | esac | |
a0b9e27f | 18467 | echo "$ac_t""${flag}" 1>&6 |
009fead0 | 18468 | if test "x$flag" != xno; then |
04727afd | 18469 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
18470 | fi |
18471 | ||
009fead0 | 18472 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 18473 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
18474 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
18475 | fi | |
18476 | fi | |
4f14bcd8 | 18477 | fi |
4f14bcd8 | 18478 | |
7274f1c7 | 18479 | if test "$wxUSE_THREADS" = "yes" ; then |
a0b9e27f | 18480 | for ac_func in thr_setconcurrency |
4f14bcd8 | 18481 | do |
a0b9e27f | 18482 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 18483 | echo "configure:18484: checking for $ac_func" >&5 |
a0b9e27f MB |
18484 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
18485 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18486 | else | |
18487 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 18488 | #line 18489 "configure" |
d9b9876f | 18489 | #include "confdefs.h" |
4f14bcd8 | 18490 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18491 | which can conflict with char $ac_func(); below. */ |
4f14bcd8 GD |
18492 | #include <assert.h> |
18493 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18494 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18495 | builtin and then its argument prototype would still apply. */ |
18496 | char $ac_func(); | |
18497 | ||
18498 | int main() { | |
18499 | ||
4f14bcd8 GD |
18500 | /* The GNU C library defines this for functions which it implements |
18501 | to always fail with ENOSYS. Some functions are actually named | |
18502 | something starting with __ and the normal name is an alias. */ | |
18503 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18504 | choke me | |
18505 | #else | |
a0b9e27f | 18506 | $ac_func(); |
4f14bcd8 GD |
18507 | #endif |
18508 | ||
a0b9e27f MB |
18509 | ; return 0; } |
18510 | EOF | |
34bed6d9 | 18511 | if { (eval echo configure:18512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18512 | rm -rf conftest* |
18513 | eval "ac_cv_func_$ac_func=yes" | |
18514 | else | |
18515 | echo "configure: failed program was:" >&5 | |
18516 | cat conftest.$ac_ext >&5 | |
18517 | rm -rf conftest* | |
18518 | eval "ac_cv_func_$ac_func=no" | |
18519 | fi | |
18520 | rm -f conftest* | |
18521 | fi | |
698dcdb6 | 18522 | |
a0b9e27f MB |
18523 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
18524 | echo "$ac_t""yes" 1>&6 | |
18525 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
18526 | cat >> confdefs.h <<EOF | |
18527 | #define $ac_tr_func 1 | |
18528 | EOF | |
18529 | ||
18530 | else | |
18531 | echo "$ac_t""no" 1>&6 | |
10f2d63a | 18532 | fi |
4f14bcd8 | 18533 | done |
10f2d63a | 18534 | |
8284b0c5 | 18535 | |
a0b9e27f | 18536 | for ac_hdr in sched.h |
4f14bcd8 | 18537 | do |
a0b9e27f MB |
18538 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
18539 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
34bed6d9 | 18540 | echo "configure:18541: checking for $ac_hdr" >&5 |
a0b9e27f MB |
18541 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
18542 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18543 | else | |
18544 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 18545 | #line 18546 "configure" |
247f5006 | 18546 | #include "confdefs.h" |
a0b9e27f MB |
18547 | #include <$ac_hdr> |
18548 | EOF | |
18549 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 18550 | { (eval echo configure:18551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
18551 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
18552 | if test -z "$ac_err"; then | |
18553 | rm -rf conftest* | |
18554 | eval "ac_cv_header_$ac_safe=yes" | |
18555 | else | |
18556 | echo "$ac_err" >&5 | |
18557 | echo "configure: failed program was:" >&5 | |
4f14bcd8 | 18558 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
18559 | rm -rf conftest* |
18560 | eval "ac_cv_header_$ac_safe=no" | |
13111b2a | 18561 | fi |
a0b9e27f | 18562 | rm -f conftest* |
10f2d63a | 18563 | fi |
a0b9e27f MB |
18564 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
18565 | echo "$ac_t""yes" 1>&6 | |
18566 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
18567 | cat >> confdefs.h <<EOF | |
18568 | #define $ac_tr_hdr 1 | |
18569 | EOF | |
18570 | ||
18571 | else | |
18572 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 | 18573 | fi |
4f14bcd8 | 18574 | done |
f6bcfd97 | 18575 | |
009fead0 | 18576 | if test "$ac_cv_header_sched_h" = "yes"; then |
a0b9e27f | 18577 | echo $ac_n "checking for sched_yield""... $ac_c" 1>&6 |
34bed6d9 | 18578 | echo "configure:18579: checking for sched_yield" >&5 |
a0b9e27f MB |
18579 | if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then |
18580 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18581 | else |
a0b9e27f | 18582 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18583 | #line 18584 "configure" |
4f14bcd8 | 18584 | #include "confdefs.h" |
009fead0 | 18585 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18586 | which can conflict with char sched_yield(); below. */ |
009fead0 | 18587 | #include <assert.h> |
4f14bcd8 GD |
18588 | /* Override any gcc2 internal prototype to avoid an error. */ |
18589 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18590 | builtin and then its argument prototype would still apply. */ |
18591 | char sched_yield(); | |
18592 | ||
18593 | int main() { | |
18594 | ||
009fead0 VZ |
18595 | /* The GNU C library defines this for functions which it implements |
18596 | to always fail with ENOSYS. Some functions are actually named | |
18597 | something starting with __ and the normal name is an alias. */ | |
18598 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
18599 | choke me | |
18600 | #else | |
a0b9e27f | 18601 | sched_yield(); |
009fead0 VZ |
18602 | #endif |
18603 | ||
a0b9e27f MB |
18604 | ; return 0; } |
18605 | EOF | |
34bed6d9 | 18606 | if { (eval echo configure:18607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18607 | rm -rf conftest* |
18608 | eval "ac_cv_func_sched_yield=yes" | |
18609 | else | |
18610 | echo "configure: failed program was:" >&5 | |
18611 | cat conftest.$ac_ext >&5 | |
18612 | rm -rf conftest* | |
18613 | eval "ac_cv_func_sched_yield=no" | |
18614 | fi | |
18615 | rm -f conftest* | |
18616 | fi | |
18617 | ||
18618 | if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then | |
18619 | echo "$ac_t""yes" 1>&6 | |
18620 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18621 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18622 | EOF |
10f2d63a | 18623 | |
4f14bcd8 | 18624 | else |
a0b9e27f | 18625 | echo "$ac_t""no" 1>&6 |
009fead0 | 18626 | |
a0b9e27f | 18627 | echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6 |
34bed6d9 | 18628 | echo "configure:18629: checking for sched_yield in -lposix4" >&5 |
a0b9e27f MB |
18629 | ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'` |
18630 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18631 | echo $ac_n "(cached) $ac_c" 1>&6 | |
4f14bcd8 | 18632 | else |
a0b9e27f | 18633 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18634 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18635 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18636 | #line 18637 "configure" |
4f14bcd8 GD |
18637 | #include "confdefs.h" |
18638 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18639 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18640 | builtin and then its argument prototype would still apply. */ |
18641 | char sched_yield(); | |
18642 | ||
18643 | int main() { | |
18644 | sched_yield() | |
18645 | ; return 0; } | |
18646 | EOF | |
34bed6d9 | 18647 | if { (eval echo configure:18648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18648 | rm -rf conftest* |
18649 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18650 | else | |
18651 | echo "configure: failed program was:" >&5 | |
18652 | cat conftest.$ac_ext >&5 | |
18653 | rm -rf conftest* | |
18654 | eval "ac_cv_lib_$ac_lib_var=no" | |
18655 | fi | |
18656 | rm -f conftest* | |
18657 | LIBS="$ac_save_LIBS" | |
18658 | ||
18659 | fi | |
18660 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18661 | echo "$ac_t""yes" 1>&6 | |
18662 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18663 | #define HAVE_SCHED_YIELD 1 |
a0b9e27f | 18664 | EOF |
3d63bc3a | 18665 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 18666 | else |
a0b9e27f MB |
18667 | echo "$ac_t""no" 1>&6 |
18668 | echo "configure: warning: wxThread::Yield will not work properly" 1>&2 | |
18669 | ||
54276ccf VZ |
18670 | fi |
18671 | ||
a0b9e27f MB |
18672 | |
18673 | ||
4f14bcd8 | 18674 | fi |
698dcdb6 | 18675 | |
009fead0 | 18676 | fi |
10f2d63a | 18677 | |
7274f1c7 | 18678 | HAVE_PRIOR_FUNCS=0 |
a0b9e27f | 18679 | echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6 |
34bed6d9 | 18680 | echo "configure:18681: checking for pthread_attr_getschedpolicy" >&5 |
a0b9e27f MB |
18681 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then |
18682 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18683 | else |
a0b9e27f | 18684 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18685 | #line 18686 "configure" |
422107f9 | 18686 | #include "confdefs.h" |
009fead0 | 18687 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18688 | which can conflict with char pthread_attr_getschedpolicy(); below. */ |
009fead0 | 18689 | #include <assert.h> |
4f14bcd8 GD |
18690 | /* Override any gcc2 internal prototype to avoid an error. */ |
18691 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18692 | builtin and then its argument prototype would still apply. */ |
18693 | char pthread_attr_getschedpolicy(); | |
18694 | ||
18695 | int main() { | |
18696 | ||
009fead0 VZ |
18697 | /* The GNU C library defines this for functions which it implements |
18698 | to always fail with ENOSYS. Some functions are actually named | |
18699 | something starting with __ and the normal name is an alias. */ | |
18700 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
18701 | choke me | |
18702 | #else | |
a0b9e27f | 18703 | pthread_attr_getschedpolicy(); |
009fead0 VZ |
18704 | #endif |
18705 | ||
a0b9e27f MB |
18706 | ; return 0; } |
18707 | EOF | |
34bed6d9 | 18708 | if { (eval echo configure:18709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18709 | rm -rf conftest* |
18710 | eval "ac_cv_func_pthread_attr_getschedpolicy=yes" | |
18711 | else | |
18712 | echo "configure: failed program was:" >&5 | |
18713 | cat conftest.$ac_ext >&5 | |
18714 | rm -rf conftest* | |
18715 | eval "ac_cv_func_pthread_attr_getschedpolicy=no" | |
18716 | fi | |
18717 | rm -f conftest* | |
18718 | fi | |
18719 | ||
18720 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then | |
18721 | echo "$ac_t""yes" 1>&6 | |
18722 | echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6 | |
34bed6d9 | 18723 | echo "configure:18724: checking for pthread_attr_setschedparam" >&5 |
a0b9e27f MB |
18724 | if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then |
18725 | echo $ac_n "(cached) $ac_c" 1>&6 | |
247f5006 | 18726 | else |
a0b9e27f | 18727 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18728 | #line 18729 "configure" |
a0b9e27f MB |
18729 | #include "confdefs.h" |
18730 | /* System header to define __stub macros and hopefully few prototypes, | |
18731 | which can conflict with char pthread_attr_setschedparam(); below. */ | |
009fead0 | 18732 | #include <assert.h> |
422107f9 VZ |
18733 | /* Override any gcc2 internal prototype to avoid an error. */ |
18734 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18735 | builtin and then its argument prototype would still apply. */ |
18736 | char pthread_attr_setschedparam(); | |
18737 | ||
18738 | int main() { | |
18739 | ||
009fead0 VZ |
18740 | /* The GNU C library defines this for functions which it implements |
18741 | to always fail with ENOSYS. Some functions are actually named | |
18742 | something starting with __ and the normal name is an alias. */ | |
18743 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
18744 | choke me | |
18745 | #else | |
a0b9e27f | 18746 | pthread_attr_setschedparam(); |
009fead0 VZ |
18747 | #endif |
18748 | ||
a0b9e27f MB |
18749 | ; return 0; } |
18750 | EOF | |
34bed6d9 | 18751 | if { (eval echo configure:18752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18752 | rm -rf conftest* |
18753 | eval "ac_cv_func_pthread_attr_setschedparam=yes" | |
18754 | else | |
18755 | echo "configure: failed program was:" >&5 | |
18756 | cat conftest.$ac_ext >&5 | |
18757 | rm -rf conftest* | |
18758 | eval "ac_cv_func_pthread_attr_setschedparam=no" | |
18759 | fi | |
18760 | rm -f conftest* | |
18761 | fi | |
18762 | ||
18763 | if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then | |
18764 | echo "$ac_t""yes" 1>&6 | |
18765 | echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6 | |
34bed6d9 | 18766 | echo "configure:18767: checking for sched_get_priority_max" >&5 |
a0b9e27f MB |
18767 | if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then |
18768 | echo $ac_n "(cached) $ac_c" 1>&6 | |
18769 | else | |
18770 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 18771 | #line 18772 "configure" |
422107f9 | 18772 | #include "confdefs.h" |
009fead0 VZ |
18773 | /* System header to define __stub macros and hopefully few prototypes |
18774 | else | |
a0b9e27f MB |
18775 | echo "$ac_t""no" 1>&6 |
18776 | which can conflict with char sched_get_priority_max(); below. */ | |
009fead0 | 18777 | #include <assert.h> |
4f14bcd8 GD |
18778 | /* Override any gcc2 internal prototype to avoid an error. */ |
18779 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18780 | builtin and then its argument prototype would still apply. */ |
18781 | char sched_get_priority_max(); | |
18782 | ||
18783 | int main() { | |
18784 | ||
009fead0 VZ |
18785 | /* The GNU C library defines this for functions which it implements |
18786 | to always fail with ENOSYS. Some functions are actually named | |
18787 | something starting with __ and the normal name is an alias. */ | |
18788 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
18789 | choke me | |
18790 | #else | |
a0b9e27f | 18791 | sched_get_priority_max(); |
009fead0 VZ |
18792 | #endif |
18793 | ||
a0b9e27f MB |
18794 | ; return 0; } |
18795 | EOF | |
34bed6d9 | 18796 | if { (eval echo configure:18797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18797 | rm -rf conftest* |
18798 | eval "ac_cv_func_sched_get_priority_max=yes" | |
18799 | else | |
18800 | echo "configure: failed program was:" >&5 | |
18801 | cat conftest.$ac_ext >&5 | |
18802 | rm -rf conftest* | |
18803 | eval "ac_cv_func_sched_get_priority_max=no" | |
18804 | fi | |
18805 | rm -f conftest* | |
18806 | fi | |
18807 | ||
18808 | if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then | |
18809 | echo "$ac_t""yes" 1>&6 | |
4f14bcd8 GD |
18810 | HAVE_PRIOR_FUNCS=1 |
18811 | else | |
a0b9e27f MB |
18812 | echo "$ac_t""no" 1>&6 |
18813 | echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6 | |
34bed6d9 | 18814 | echo "configure:18815: checking for sched_get_priority_max in -lposix4" >&5 |
a0b9e27f MB |
18815 | ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'` |
18816 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
18817 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18818 | else |
a0b9e27f | 18819 | ac_save_LIBS="$LIBS" |
4f14bcd8 | 18820 | LIBS="-lposix4 $LIBS" |
a0b9e27f | 18821 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18822 | #line 18823 "configure" |
422107f9 VZ |
18823 | #include "confdefs.h" |
18824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18825 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18826 | builtin and then its argument prototype would still apply. */ |
18827 | char sched_get_priority_max(); | |
18828 | ||
18829 | int main() { | |
18830 | sched_get_priority_max() | |
18831 | ; return 0; } | |
18832 | EOF | |
34bed6d9 | 18833 | if { (eval echo configure:18834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18834 | rm -rf conftest* |
18835 | eval "ac_cv_lib_$ac_lib_var=yes" | |
18836 | else | |
18837 | echo "configure: failed program was:" >&5 | |
18838 | cat conftest.$ac_ext >&5 | |
18839 | rm -rf conftest* | |
18840 | eval "ac_cv_lib_$ac_lib_var=no" | |
18841 | fi | |
18842 | rm -f conftest* | |
18843 | LIBS="$ac_save_LIBS" | |
698dcdb6 | 18844 | |
a0b9e27f MB |
18845 | fi |
18846 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
18847 | echo "$ac_t""yes" 1>&6 | |
18848 | ||
7274f1c7 RL |
18849 | HAVE_PRIOR_FUNCS=1 |
18850 | POSIX4_LINK=" -lposix4" | |
a0b9e27f MB |
18851 | |
18852 | else | |
18853 | echo "$ac_t""no" 1>&6 | |
4f14bcd8 | 18854 | fi |
463abc64 | 18855 | |
a0b9e27f | 18856 | |
328a083c | 18857 | fi |
463abc64 | 18858 | |
a0b9e27f MB |
18859 | |
18860 | else | |
18861 | echo "$ac_t""no" 1>&6 | |
7b4a847f | 18862 | fi |
579d8138 | 18863 | |
a0b9e27f | 18864 | |
5c6fa7d2 | 18865 | fi |
52127426 | 18866 | |
8284b0c5 | 18867 | |
7274f1c7 | 18868 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
a0b9e27f | 18869 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18870 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
a0b9e27f | 18871 | EOF |
463abc64 | 18872 | |
7274f1c7 | 18873 | else |
a0b9e27f | 18874 | echo "configure: warning: Setting thread priority will not work" 1>&2 |
7274f1c7 | 18875 | fi |
463abc64 | 18876 | |
a0b9e27f | 18877 | echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6 |
34bed6d9 | 18878 | echo "configure:18879: checking for pthread_cancel" >&5 |
a0b9e27f MB |
18879 | if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then |
18880 | echo $ac_n "(cached) $ac_c" 1>&6 | |
422107f9 | 18881 | else |
a0b9e27f | 18882 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 18883 | #line 18884 "configure" |
422107f9 | 18884 | #include "confdefs.h" |
009fead0 | 18885 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 18886 | which can conflict with char pthread_cancel(); below. */ |
009fead0 | 18887 | #include <assert.h> |
422107f9 VZ |
18888 | /* Override any gcc2 internal prototype to avoid an error. */ |
18889 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
18890 | builtin and then its argument prototype would still apply. */ |
18891 | char pthread_cancel(); | |
18892 | ||
18893 | int main() { | |
18894 | ||
009fead0 VZ |
18895 | /* The GNU C library defines this for functions which it implements |
18896 | to always fail with ENOSYS. Some functions are actually named | |
18897 | something starting with __ and the normal name is an alias. */ | |
18898 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
18899 | choke me | |
18900 | #else | |
a0b9e27f | 18901 | pthread_cancel(); |
009fead0 VZ |
18902 | #endif |
18903 | ||
a0b9e27f MB |
18904 | ; return 0; } |
18905 | EOF | |
34bed6d9 | 18906 | if { (eval echo configure:18907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
18907 | rm -rf conftest* |
18908 | eval "ac_cv_func_pthread_cancel=yes" | |
18909 | else | |
18910 | echo "configure: failed program was:" >&5 | |
18911 | cat conftest.$ac_ext >&5 | |
18912 | rm -rf conftest* | |
18913 | eval "ac_cv_func_pthread_cancel=no" | |
18914 | fi | |
18915 | rm -f conftest* | |
18916 | fi | |
18917 | ||
18918 | if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then | |
18919 | echo "$ac_t""yes" 1>&6 | |
18920 | cat >> confdefs.h <<\EOF | |
4f14bcd8 | 18921 | #define HAVE_PTHREAD_CANCEL 1 |
a0b9e27f | 18922 | EOF |
4f14bcd8 | 18923 | |
698dcdb6 | 18924 | else |
a0b9e27f MB |
18925 | echo "$ac_t""no" 1>&6 |
18926 | echo "configure: warning: wxThread::Kill() will not work properly" 1>&2 | |
422107f9 VZ |
18927 | fi |
18928 | ||
5c6fa7d2 | 18929 | |
a0b9e27f | 18930 | echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6 |
34bed6d9 | 18931 | echo "configure:18932: checking for pthread_cleanup_push/pop" >&5 |
a0b9e27f MB |
18932 | if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then |
18933 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 18934 | else |
a0b9e27f MB |
18935 | |
18936 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 18937 | #line 18938 "configure" |
4f14bcd8 GD |
18938 | #include "confdefs.h" |
18939 | #include <pthread.h> | |
a0b9e27f | 18940 | int main() { |
4f14bcd8 | 18941 | |
7274f1c7 RL |
18942 | pthread_cleanup_push(NULL, NULL); |
18943 | pthread_cleanup_pop(0); | |
a0b9e27f MB |
18944 | |
18945 | ; return 0; } | |
18946 | EOF | |
34bed6d9 | 18947 | if { (eval echo configure:18948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18948 | rm -rf conftest* |
18949 | ||
7274f1c7 | 18950 | wx_cv_func_pthread_cleanup_push=yes |
a0b9e27f | 18951 | |
4f14bcd8 | 18952 | else |
a0b9e27f MB |
18953 | echo "configure: failed program was:" >&5 |
18954 | cat conftest.$ac_ext >&5 | |
18955 | rm -rf conftest* | |
18956 | ||
7274f1c7 | 18957 | wx_cv_func_pthread_cleanup_push=no |
a0b9e27f | 18958 | |
5c6fa7d2 | 18959 | fi |
a0b9e27f MB |
18960 | rm -f conftest* |
18961 | ||
247f5006 | 18962 | fi |
a0b9e27f MB |
18963 | |
18964 | echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6 | |
4f14bcd8 | 18965 | |
7274f1c7 | 18966 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
a0b9e27f | 18967 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 18968 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
a0b9e27f | 18969 | EOF |
c7a2bf27 | 18970 | |
7274f1c7 | 18971 | fi |
4f14bcd8 | 18972 | |
a0b9e27f MB |
18973 | |
18974 | echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6 | |
34bed6d9 | 18975 | echo "configure:18976: checking for pthread_mutexattr_t" >&5 |
a0b9e27f MB |
18976 | if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then |
18977 | echo $ac_n "(cached) $ac_c" 1>&6 | |
698dcdb6 | 18978 | else |
a0b9e27f MB |
18979 | |
18980 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 18981 | #line 18982 "configure" |
0dcf9893 | 18982 | #include "confdefs.h" |
4f14bcd8 | 18983 | #include <pthread.h> |
a0b9e27f | 18984 | int main() { |
4f14bcd8 | 18985 | |
7274f1c7 RL |
18986 | pthread_mutexattr_t attr; |
18987 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
a0b9e27f MB |
18988 | |
18989 | ; return 0; } | |
18990 | EOF | |
34bed6d9 | 18991 | if { (eval echo configure:18992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
18992 | rm -rf conftest* |
18993 | ||
7274f1c7 | 18994 | wx_cv_type_pthread_mutexattr_t=yes |
a0b9e27f | 18995 | |
3fed1840 | 18996 | else |
a0b9e27f MB |
18997 | echo "configure: failed program was:" >&5 |
18998 | cat conftest.$ac_ext >&5 | |
18999 | rm -rf conftest* | |
19000 | ||
7274f1c7 | 19001 | wx_cv_type_pthread_mutexattr_t=no |
a0b9e27f MB |
19002 | |
19003 | ||
5c6fa7d2 | 19004 | fi |
a0b9e27f MB |
19005 | rm -f conftest* |
19006 | ||
247f5006 | 19007 | fi |
a0b9e27f MB |
19008 | |
19009 | echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6 | |
4f14bcd8 | 19010 | |
7274f1c7 | 19011 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
a0b9e27f | 19012 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19013 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
a0b9e27f | 19014 | EOF |
4f14bcd8 | 19015 | |
7274f1c7 | 19016 | else |
a0b9e27f | 19017 | echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6 |
34bed6d9 | 19018 | echo "configure:19019: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
a0b9e27f MB |
19019 | if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then |
19020 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19021 | else | |
19022 | ||
19023 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19024 | #line 19025 "configure" |
3fed1840 | 19025 | #include "confdefs.h" |
4f14bcd8 | 19026 | #include <pthread.h> |
a0b9e27f | 19027 | int main() { |
4f14bcd8 | 19028 | |
7274f1c7 | 19029 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
a0b9e27f MB |
19030 | |
19031 | ; return 0; } | |
19032 | EOF | |
34bed6d9 | 19033 | if { (eval echo configure:19034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19034 | rm -rf conftest* |
19035 | ||
7274f1c7 | 19036 | wx_cv_type_pthread_rec_mutex_init=yes |
a0b9e27f | 19037 | |
698dcdb6 | 19038 | else |
a0b9e27f MB |
19039 | echo "configure: failed program was:" >&5 |
19040 | cat conftest.$ac_ext >&5 | |
19041 | rm -rf conftest* | |
19042 | ||
7274f1c7 | 19043 | wx_cv_type_pthread_rec_mutex_init=no |
a0b9e27f MB |
19044 | |
19045 | ||
5c6fa7d2 | 19046 | fi |
a0b9e27f MB |
19047 | rm -f conftest* |
19048 | ||
247f5006 | 19049 | fi |
a0b9e27f MB |
19050 | |
19051 | echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6 | |
7274f1c7 | 19052 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
a0b9e27f | 19053 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19054 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
a0b9e27f | 19055 | EOF |
3fed1840 | 19056 | |
7274f1c7 | 19057 | else |
a0b9e27f | 19058 | echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2 |
7274f1c7 RL |
19059 | fi |
19060 | fi | |
7274f1c7 | 19061 | fi |
3fed1840 | 19062 | |
a0b9e27f MB |
19063 | else |
19064 | if test "$wxUSE_THREADS" = "yes" ; then | |
19065 | case "${host}" in | |
19066 | *-*-mingw32* ) | |
ca8e52b3 | 19067 | echo $ac_n "checking if compiler supports -mthreads""... $ac_c" 1>&6 |
34bed6d9 | 19068 | echo "configure:19069: checking if compiler supports -mthreads" >&5 |
ca8e52b3 VZ |
19069 | if eval "test \"`echo '$''{'wx_cv_cflags_mthread'+set}'`\" = set"; then |
19070 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19071 | else | |
19072 | ||
19073 | CFLAGS_OLD="$CFLAGS" | |
19074 | CFLAGS="$CFLAGS -mthreads" | |
19075 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19076 | #line 19077 "configure" |
ca8e52b3 VZ |
19077 | #include "confdefs.h" |
19078 | ||
19079 | int main() { | |
19080 | ||
19081 | ; return 0; } | |
19082 | EOF | |
34bed6d9 | 19083 | if { (eval echo configure:19084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ca8e52b3 VZ |
19084 | rm -rf conftest* |
19085 | wx_cv_cflags_mthread=yes | |
19086 | else | |
19087 | echo "configure: failed program was:" >&5 | |
19088 | cat conftest.$ac_ext >&5 | |
19089 | rm -rf conftest* | |
19090 | wx_cv_cflags_mthread=no | |
19091 | ||
19092 | fi | |
19093 | rm -f conftest* | |
19094 | ||
19095 | ||
19096 | fi | |
19097 | ||
19098 | echo "$ac_t""$wx_cv_cflags_mthread" 1>&6 | |
19099 | ||
19100 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
19101 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19102 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
19103 | LDFLAGS="$LDFLAGS -mthreads" | |
19104 | else | |
19105 | CFLAGS="$CFLAGS_OLD" | |
19106 | fi | |
a0b9e27f MB |
19107 | ;; |
19108 | esac | |
19109 | fi | |
4f14bcd8 GD |
19110 | fi |
19111 | ||
19112 | if test "$wxUSE_THREADS" = "yes"; then | |
a0b9e27f | 19113 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19114 | #define wxUSE_THREADS 1 |
a0b9e27f | 19115 | EOF |
7b6058cd | 19116 | |
8284b0c5 | 19117 | |
4f14bcd8 | 19118 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 19119 | else |
4f14bcd8 | 19120 | if test "$ac_cv_func_strtok_r" = "yes"; then |
a0b9e27f | 19121 | echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6 |
34bed6d9 | 19122 | echo "configure:19123: checking if -D_REENTRANT is needed" >&5 |
4f14bcd8 GD |
19123 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
19124 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
a0b9e27f | 19125 | echo "$ac_t""yes" 1>&6 |
4f14bcd8 | 19126 | else |
a0b9e27f | 19127 | echo "$ac_t""no" 1>&6 |
4f14bcd8 GD |
19128 | fi |
19129 | fi | |
19130 | fi | |
19131 | ||
19132 | if test "$WXGTK20" = 1 ; then | |
a0b9e27f | 19133 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19134 | #define __WXGTK20__ $WXGTK20 |
a0b9e27f | 19135 | EOF |
4f14bcd8 GD |
19136 | |
19137 | WXGTK12=1 | |
10f2d63a | 19138 | fi |
4f14bcd8 GD |
19139 | |
19140 | if test "$WXGTK12" = 1 ; then | |
a0b9e27f | 19141 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19142 | #define __WXGTK12__ $WXGTK12 |
a0b9e27f | 19143 | EOF |
4f14bcd8 | 19144 | |
10f2d63a | 19145 | fi |
698dcdb6 | 19146 | |
4f14bcd8 | 19147 | if test "$WXGTK127" = 1 ; then |
a0b9e27f | 19148 | cat >> confdefs.h <<EOF |
4f14bcd8 | 19149 | #define __WXGTK127__ $WXGTK127 |
a0b9e27f | 19150 | EOF |
4f14bcd8 | 19151 | |
698dcdb6 | 19152 | fi |
10f2d63a | 19153 | |
4f14bcd8 GD |
19154 | WXDEBUG= |
19155 | ||
19156 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
19157 | WXDEBUG="-g" | |
19158 | wxUSE_OPTIMISE=no | |
698dcdb6 | 19159 | fi |
4f14bcd8 GD |
19160 | |
19161 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
19162 | wxUSE_DEBUG_INFO=yes | |
19163 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
19164 | fi |
19165 | ||
4f14bcd8 | 19166 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
a0b9e27f | 19167 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19168 | #define WXDEBUG 1 |
a0b9e27f | 19169 | EOF |
4f14bcd8 GD |
19170 | |
19171 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 19172 | else |
4f14bcd8 GD |
19173 | if test "$wxUSE_GTK" = 1 ; then |
19174 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
19175 | fi | |
19176 | fi | |
19177 | ||
19178 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
a0b9e27f | 19179 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19180 | #define wxUSE_MEMORY_TRACING 1 |
a0b9e27f | 19181 | EOF |
4f14bcd8 | 19182 | |
a0b9e27f | 19183 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19184 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
a0b9e27f | 19185 | EOF |
4f14bcd8 | 19186 | |
a0b9e27f | 19187 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19188 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
a0b9e27f | 19189 | EOF |
4f14bcd8 GD |
19190 | |
19191 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
19192 | fi | |
19193 | ||
19194 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 19195 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
19196 | fi |
19197 | ||
19198 | PROFILE= | |
19199 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 19200 | PROFILE=" -pg" |
10f2d63a VZ |
19201 | fi |
19202 | ||
009fead0 VZ |
19203 | CODE_GEN_FLAGS= |
19204 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 19205 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
19206 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
19207 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 19208 | fi |
4f14bcd8 GD |
19209 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
19210 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
19211 | fi | |
19212 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
19213 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
19214 | fi | |
4f14bcd8 GD |
19215 | if test "$USE_WIN32" = 1 ; then |
19216 | # I'm not even really sure what this was ever added to solve, | |
19217 | # but someone added it for mingw native builds, so I guess | |
19218 | # they had a reason, right?? | |
19219 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return" | |
19220 | fi | |
1d1b75ac | 19221 | |
2b5f62a0 | 19222 | case "${host}" in |
1d1b75ac VZ |
19223 | powerpc*-*-aix* ) |
19224 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
19225 | ;; | |
2b5f62a0 VZ |
19226 | *-hppa* ) |
19227 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
19228 | ;; | |
1d1b75ac | 19229 | esac |
4f14bcd8 GD |
19230 | fi |
19231 | ||
4f14bcd8 GD |
19232 | if test "$wxUSE_OPTIMISE" = "no" ; then |
19233 | OPTIMISE= | |
19234 | else | |
19235 | if test "$GCC" = yes ; then | |
19236 | OPTIMISE="-O2" | |
19237 | case "${host}" in | |
19238 | i586-*-*|i686-*-* ) | |
19239 | OPTIMISE="${OPTIMISE} " | |
19240 | ;; | |
19241 | esac | |
19242 | else | |
19243 | OPTIMISE="-O" | |
19244 | fi | |
19245 | fi | |
19246 | ||
19247 | if test "$WXWIN_COMPATIBILITY_2" = "yes"; then | |
a0b9e27f | 19248 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19249 | #define WXWIN_COMPATIBILITY_2 1 |
a0b9e27f | 19250 | EOF |
4f14bcd8 | 19251 | |
8284b0c5 | 19252 | |
4f14bcd8 GD |
19253 | WXWIN_COMPATIBILITY_2_2="yes" |
19254 | fi | |
19255 | ||
0c9a1c32 | 19256 | if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then |
a0b9e27f | 19257 | cat >> confdefs.h <<\EOF |
4f14bcd8 | 19258 | #define WXWIN_COMPATIBILITY_2_2 1 |
a0b9e27f | 19259 | EOF |
4f14bcd8 | 19260 | |
10f2d63a VZ |
19261 | fi |
19262 | ||
8284b0c5 | 19263 | |
10f2d63a | 19264 | if test "$wxUSE_GUI" = "yes"; then |
a0b9e27f | 19265 | cat >> confdefs.h <<\EOF |
10f2d63a | 19266 | #define wxUSE_GUI 1 |
a0b9e27f | 19267 | EOF |
10f2d63a | 19268 | |
8284b0c5 | 19269 | |
10f2d63a | 19270 | else |
a0b9e27f | 19271 | cat >> confdefs.h <<\EOF |
10f2d63a | 19272 | #define wxUSE_NOGUI 1 |
a0b9e27f | 19273 | EOF |
10f2d63a VZ |
19274 | |
19275 | fi | |
19276 | ||
8284b0c5 | 19277 | |
10f2d63a | 19278 | if test "$wxUSE_UNIX" = "yes"; then |
a0b9e27f | 19279 | cat >> confdefs.h <<\EOF |
10f2d63a | 19280 | #define wxUSE_UNIX 1 |
a0b9e27f | 19281 | EOF |
10f2d63a VZ |
19282 | |
19283 | fi | |
19284 | ||
8284b0c5 | 19285 | |
10f2d63a | 19286 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
a0b9e27f | 19287 | cat >> confdefs.h <<\EOF |
10f2d63a | 19288 | #define wxUSE_APPLE_IEEE 1 |
a0b9e27f | 19289 | EOF |
10f2d63a VZ |
19290 | |
19291 | fi | |
19292 | ||
1e6feb95 | 19293 | if test "$wxUSE_TIMER" = "yes"; then |
a0b9e27f | 19294 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19295 | #define wxUSE_TIMER 1 |
a0b9e27f | 19296 | EOF |
1e6feb95 VZ |
19297 | |
19298 | fi | |
19299 | ||
10f2d63a | 19300 | if test "$wxUSE_WAVE" = "yes"; then |
a0b9e27f | 19301 | cat >> confdefs.h <<\EOF |
10f2d63a | 19302 | #define wxUSE_WAVE 1 |
a0b9e27f | 19303 | EOF |
10f2d63a VZ |
19304 | |
19305 | fi | |
19306 | ||
1e6feb95 | 19307 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
a0b9e27f | 19308 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19309 | #define wxUSE_CMDLINE_PARSER 1 |
a0b9e27f | 19310 | EOF |
1e6feb95 VZ |
19311 | |
19312 | fi | |
19313 | ||
19314 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
a0b9e27f | 19315 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19316 | #define wxUSE_STOPWATCH 1 |
a0b9e27f | 19317 | EOF |
1e6feb95 VZ |
19318 | |
19319 | fi | |
19320 | ||
19321 | if test "$wxUSE_DATETIME" = "yes"; then | |
a0b9e27f | 19322 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19323 | #define wxUSE_DATETIME 1 |
a0b9e27f | 19324 | EOF |
1e6feb95 VZ |
19325 | |
19326 | fi | |
19327 | ||
19328 | if test "$wxUSE_TIMEDATE" = "yes"; then | |
a0b9e27f | 19329 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19330 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19331 | EOF |
1e6feb95 VZ |
19332 | |
19333 | fi | |
19334 | ||
10f2d63a | 19335 | if test "$wxUSE_FILE" = "yes"; then |
a0b9e27f | 19336 | cat >> confdefs.h <<\EOF |
10f2d63a | 19337 | #define wxUSE_FILE 1 |
a0b9e27f | 19338 | EOF |
10f2d63a VZ |
19339 | |
19340 | fi | |
19341 | ||
1e6feb95 | 19342 | if test "$wxUSE_FFILE" = "yes"; then |
a0b9e27f | 19343 | cat >> confdefs.h <<\EOF |
1e6feb95 | 19344 | #define wxUSE_FFILE 1 |
a0b9e27f | 19345 | EOF |
1e6feb95 VZ |
19346 | |
19347 | fi | |
19348 | ||
24528b0c | 19349 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
a0b9e27f | 19350 | cat >> confdefs.h <<\EOF |
24528b0c | 19351 | #define wxUSE_FILESYSTEM 1 |
a0b9e27f | 19352 | EOF |
24528b0c VS |
19353 | |
19354 | fi | |
19355 | ||
10f2d63a | 19356 | if test "$wxUSE_FS_INET" = "yes"; then |
a0b9e27f | 19357 | cat >> confdefs.h <<\EOF |
10f2d63a | 19358 | #define wxUSE_FS_INET 1 |
a0b9e27f | 19359 | EOF |
10f2d63a VZ |
19360 | |
19361 | fi | |
19362 | ||
19363 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
a0b9e27f | 19364 | cat >> confdefs.h <<\EOF |
10f2d63a | 19365 | #define wxUSE_FS_ZIP 1 |
a0b9e27f | 19366 | EOF |
10f2d63a VZ |
19367 | |
19368 | fi | |
19369 | ||
19370 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
a0b9e27f | 19371 | cat >> confdefs.h <<\EOF |
10f2d63a | 19372 | #define wxUSE_ZIPSTREAM 1 |
a0b9e27f | 19373 | EOF |
10f2d63a VZ |
19374 | |
19375 | fi | |
19376 | ||
eb4efbdc | 19377 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
a0b9e27f | 19378 | cat >> confdefs.h <<\EOF |
eb4efbdc | 19379 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
a0b9e27f | 19380 | EOF |
eb4efbdc VZ |
19381 | |
19382 | fi | |
19383 | ||
4f3c5f06 | 19384 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
a0b9e27f | 19385 | cat >> confdefs.h <<\EOF |
4f3c5f06 | 19386 | #define wxUSE_SNGLINST_CHECKER 1 |
a0b9e27f | 19387 | EOF |
4f3c5f06 VZ |
19388 | |
19389 | fi | |
19390 | ||
10f2d63a | 19391 | if test "$wxUSE_BUSYINFO" = "yes"; then |
a0b9e27f | 19392 | cat >> confdefs.h <<\EOF |
10f2d63a | 19393 | #define wxUSE_BUSYINFO 1 |
a0b9e27f | 19394 | EOF |
10f2d63a VZ |
19395 | |
19396 | fi | |
19397 | ||
19398 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
a0b9e27f | 19399 | cat >> confdefs.h <<\EOF |
10f2d63a | 19400 | #define wxUSE_STD_IOSTREAM 1 |
a0b9e27f | 19401 | EOF |
10f2d63a VZ |
19402 | |
19403 | fi | |
19404 | ||
a3a584a7 | 19405 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
a0b9e27f | 19406 | cat >> confdefs.h <<\EOF |
a3a584a7 | 19407 | #define wxUSE_TEXTBUFFER 1 |
a0b9e27f | 19408 | EOF |
a3a584a7 VZ |
19409 | |
19410 | fi | |
19411 | ||
10f2d63a | 19412 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 19413 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
a0b9e27f | 19414 | echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2 |
10f2d63a | 19415 | else |
a0b9e27f | 19416 | cat >> confdefs.h <<\EOF |
10f2d63a | 19417 | #define wxUSE_TEXTFILE 1 |
a0b9e27f | 19418 | EOF |
10f2d63a VZ |
19419 | |
19420 | fi | |
19421 | fi | |
19422 | ||
19423 | if test "$wxUSE_CONFIG" = "yes" ; then | |
19424 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
a0b9e27f | 19425 | echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2 |
10f2d63a | 19426 | else |
a0b9e27f | 19427 | cat >> confdefs.h <<\EOF |
10f2d63a | 19428 | #define wxUSE_CONFIG 1 |
a0b9e27f | 19429 | EOF |
10f2d63a VZ |
19430 | |
19431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
19432 | fi | |
19433 | fi | |
19434 | ||
19435 | if test "$wxUSE_INTL" = "yes" ; then | |
19436 | if test "$wxUSE_FILE" != "yes"; then | |
a0b9e27f | 19437 | echo "configure: warning: I18n code requires wxFile... disabled" 1>&2 |
10f2d63a | 19438 | else |
a0b9e27f | 19439 | cat >> confdefs.h <<\EOF |
10f2d63a | 19440 | #define wxUSE_INTL 1 |
a0b9e27f | 19441 | EOF |
10f2d63a VZ |
19442 | |
19443 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 19444 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
19445 | fi |
19446 | fi | |
19447 | ||
19448 | if test "$wxUSE_LOG" = "yes"; then | |
a0b9e27f | 19449 | cat >> confdefs.h <<\EOF |
10f2d63a | 19450 | #define wxUSE_LOG 1 |
a0b9e27f | 19451 | EOF |
10f2d63a | 19452 | |
8284b0c5 | 19453 | |
d73be714 | 19454 | if test "$wxUSE_LOGGUI" = "yes"; then |
a0b9e27f | 19455 | cat >> confdefs.h <<\EOF |
d73be714 | 19456 | #define wxUSE_LOGGUI 1 |
a0b9e27f | 19457 | EOF |
d73be714 VZ |
19458 | |
19459 | fi | |
19460 | ||
19461 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
a0b9e27f | 19462 | cat >> confdefs.h <<\EOF |
d73be714 | 19463 | #define wxUSE_LOGWINDOW 1 |
a0b9e27f | 19464 | EOF |
69d27ff7 MB |
19465 | |
19466 | fi | |
19467 | ||
19468 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
a0b9e27f | 19469 | cat >> confdefs.h <<\EOF |
69d27ff7 | 19470 | #define wxUSE_LOG_DIALOG 1 |
a0b9e27f | 19471 | EOF |
d73be714 VZ |
19472 | |
19473 | fi | |
10f2d63a VZ |
19474 | fi |
19475 | ||
19476 | if test "$wxUSE_LONGLONG" = "yes"; then | |
a0b9e27f | 19477 | cat >> confdefs.h <<\EOF |
10f2d63a | 19478 | #define wxUSE_LONGLONG 1 |
a0b9e27f | 19479 | EOF |
10f2d63a VZ |
19480 | |
19481 | fi | |
19482 | ||
e8f65ba6 | 19483 | if test "$wxUSE_GEOMETRY" = "yes"; then |
a0b9e27f | 19484 | cat >> confdefs.h <<\EOF |
e8f65ba6 | 19485 | #define wxUSE_GEOMETRY 1 |
a0b9e27f | 19486 | EOF |
e8f65ba6 RR |
19487 | |
19488 | fi | |
19489 | ||
10f2d63a | 19490 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
a0b9e27f | 19491 | cat >> confdefs.h <<\EOF |
10f2d63a | 19492 | #define wxUSE_DIALUP_MANAGER 1 |
a0b9e27f | 19493 | EOF |
10f2d63a | 19494 | |
70f7a477 | 19495 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
19496 | fi |
19497 | ||
19498 | if test "$wxUSE_STREAMS" = "yes" ; then | |
a0b9e27f | 19499 | cat >> confdefs.h <<\EOF |
10f2d63a | 19500 | #define wxUSE_STREAMS 1 |
a0b9e27f | 19501 | EOF |
10f2d63a VZ |
19502 | |
19503 | fi | |
19504 | ||
5c6fa7d2 | 19505 | |
8284b0c5 | 19506 | if test "$wxUSE_DATETIME" = "yes"; then |
a0b9e27f | 19507 | for ac_func in strptime |
83307f33 | 19508 | do |
a0b9e27f | 19509 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 19510 | echo "configure:19511: checking for $ac_func" >&5 |
a0b9e27f MB |
19511 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19512 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19513 | else | |
19514 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19515 | #line 19516 "configure" |
83307f33 VZ |
19516 | #include "confdefs.h" |
19517 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19518 | which can conflict with char $ac_func(); below. */ |
83307f33 VZ |
19519 | #include <assert.h> |
19520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19521 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19522 | builtin and then its argument prototype would still apply. */ |
19523 | char $ac_func(); | |
19524 | ||
19525 | int main() { | |
19526 | ||
83307f33 VZ |
19527 | /* The GNU C library defines this for functions which it implements |
19528 | to always fail with ENOSYS. Some functions are actually named | |
19529 | something starting with __ and the normal name is an alias. */ | |
19530 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19531 | choke me | |
19532 | #else | |
a0b9e27f | 19533 | $ac_func(); |
83307f33 VZ |
19534 | #endif |
19535 | ||
a0b9e27f MB |
19536 | ; return 0; } |
19537 | EOF | |
34bed6d9 | 19538 | if { (eval echo configure:19539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19539 | rm -rf conftest* |
19540 | eval "ac_cv_func_$ac_func=yes" | |
19541 | else | |
19542 | echo "configure: failed program was:" >&5 | |
19543 | cat conftest.$ac_ext >&5 | |
19544 | rm -rf conftest* | |
19545 | eval "ac_cv_func_$ac_func=no" | |
19546 | fi | |
19547 | rm -f conftest* | |
19548 | fi | |
83307f33 | 19549 | |
a0b9e27f MB |
19550 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19551 | echo "$ac_t""yes" 1>&6 | |
19552 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19553 | cat >> confdefs.h <<EOF | |
19554 | #define $ac_tr_func 1 | |
19555 | EOF | |
19556 | ||
19557 | else | |
19558 | echo "$ac_t""no" 1>&6 | |
83307f33 VZ |
19559 | fi |
19560 | done | |
19561 | ||
5c6fa7d2 | 19562 | |
a0b9e27f | 19563 | echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6 |
34bed6d9 | 19564 | echo "configure:19565: checking for timezone variable in <time.h>" >&5 |
a0b9e27f MB |
19565 | if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then |
19566 | echo $ac_n "(cached) $ac_c" 1>&6 | |
8284b0c5 | 19567 | else |
a0b9e27f MB |
19568 | |
19569 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19570 | #line 19571 "configure" |
360d6699 VZ |
19571 | #include "confdefs.h" |
19572 | ||
b4085ce6 | 19573 | #include <time.h> |
a0b9e27f MB |
19574 | |
19575 | int main() { | |
360d6699 VZ |
19576 | |
19577 | int tz; | |
4f11a343 | 19578 | tz = timezone; |
a0b9e27f MB |
19579 | |
19580 | ; return 0; } | |
19581 | EOF | |
34bed6d9 | 19582 | if { (eval echo configure:19583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19583 | rm -rf conftest* |
19584 | ||
4f11a343 | 19585 | wx_cv_var_timezone=timezone |
a0b9e27f | 19586 | |
360d6699 | 19587 | else |
a0b9e27f MB |
19588 | echo "configure: failed program was:" >&5 |
19589 | cat conftest.$ac_ext >&5 | |
19590 | rm -rf conftest* | |
19591 | ||
19592 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19593 | #line 19594 "configure" |
360d6699 VZ |
19594 | #include "confdefs.h" |
19595 | ||
b4085ce6 | 19596 | #include <time.h> |
a0b9e27f MB |
19597 | |
19598 | int main() { | |
360d6699 VZ |
19599 | |
19600 | int tz; | |
19601 | tz = _timezone; | |
a0b9e27f MB |
19602 | |
19603 | ; return 0; } | |
19604 | EOF | |
34bed6d9 | 19605 | if { (eval echo configure:19606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19606 | rm -rf conftest* |
19607 | ||
360d6699 | 19608 | wx_cv_var_timezone=_timezone |
a0b9e27f | 19609 | |
5357c8e8 | 19610 | else |
a0b9e27f MB |
19611 | echo "configure: failed program was:" >&5 |
19612 | cat conftest.$ac_ext >&5 | |
19613 | rm -rf conftest* | |
19614 | ||
19615 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19616 | #line 19617 "configure" |
5357c8e8 VZ |
19617 | #include "confdefs.h" |
19618 | ||
b4085ce6 | 19619 | #include <time.h> |
a0b9e27f MB |
19620 | |
19621 | int main() { | |
5357c8e8 VZ |
19622 | |
19623 | int tz; | |
4f11a343 | 19624 | tz = __timezone; |
a0b9e27f MB |
19625 | |
19626 | ; return 0; } | |
19627 | EOF | |
34bed6d9 | 19628 | if { (eval echo configure:19629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19629 | rm -rf conftest* |
19630 | ||
4f11a343 | 19631 | wx_cv_var_timezone=__timezone |
a0b9e27f | 19632 | |
360d6699 | 19633 | else |
a0b9e27f MB |
19634 | echo "configure: failed program was:" >&5 |
19635 | cat conftest.$ac_ext >&5 | |
19636 | rm -rf conftest* | |
19637 | ||
f9bc1684 | 19638 | if test "$USE_DOS" = 0 ; then |
a0b9e27f | 19639 | echo "configure: warning: no timezone variable" 1>&2 |
f9bc1684 | 19640 | fi |
a0b9e27f MB |
19641 | |
19642 | ||
328a083c | 19643 | fi |
a0b9e27f MB |
19644 | rm -f conftest* |
19645 | ||
19646 | ||
7b4a847f | 19647 | fi |
a0b9e27f MB |
19648 | rm -f conftest* |
19649 | ||
19650 | ||
5c6fa7d2 | 19651 | fi |
a0b9e27f MB |
19652 | rm -f conftest* |
19653 | ||
19654 | ||
247f5006 | 19655 | fi |
a0b9e27f MB |
19656 | |
19657 | echo "$ac_t""$wx_cv_var_timezone" 1>&6 | |
698dcdb6 | 19658 | |
f9bc1684 | 19659 | if test "x$wx_cv_var_timezone" != x ; then |
a0b9e27f | 19660 | cat >> confdefs.h <<EOF |
360d6699 | 19661 | #define WX_TIMEZONE $wx_cv_var_timezone |
a0b9e27f | 19662 | EOF |
360d6699 | 19663 | |
f9bc1684 | 19664 | fi |
698dcdb6 | 19665 | |
a0b9e27f | 19666 | for ac_func in localtime |
afc31813 | 19667 | do |
a0b9e27f | 19668 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 19669 | echo "configure:19670: checking for $ac_func" >&5 |
a0b9e27f MB |
19670 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19671 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19672 | else | |
19673 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19674 | #line 19675 "configure" |
10f2d63a | 19675 | #include "confdefs.h" |
afc31813 | 19676 | /* System header to define __stub macros and hopefully few prototypes, |
a0b9e27f | 19677 | which can conflict with char $ac_func(); below. */ |
afc31813 VZ |
19678 | #include <assert.h> |
19679 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19680 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19681 | builtin and then its argument prototype would still apply. */ |
19682 | char $ac_func(); | |
19683 | ||
19684 | int main() { | |
19685 | ||
afc31813 VZ |
19686 | /* The GNU C library defines this for functions which it implements |
19687 | to always fail with ENOSYS. Some functions are actually named | |
19688 | something starting with __ and the normal name is an alias. */ | |
19689 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19690 | choke me | |
19691 | #else | |
a0b9e27f | 19692 | $ac_func(); |
afc31813 VZ |
19693 | #endif |
19694 | ||
a0b9e27f MB |
19695 | ; return 0; } |
19696 | EOF | |
34bed6d9 | 19697 | if { (eval echo configure:19698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19698 | rm -rf conftest* |
19699 | eval "ac_cv_func_$ac_func=yes" | |
19700 | else | |
19701 | echo "configure: failed program was:" >&5 | |
19702 | cat conftest.$ac_ext >&5 | |
19703 | rm -rf conftest* | |
19704 | eval "ac_cv_func_$ac_func=no" | |
19705 | fi | |
19706 | rm -f conftest* | |
19707 | fi | |
afc31813 | 19708 | |
a0b9e27f MB |
19709 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
19710 | echo "$ac_t""yes" 1>&6 | |
19711 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19712 | cat >> confdefs.h <<EOF | |
19713 | #define $ac_tr_func 1 | |
19714 | EOF | |
19715 | ||
19716 | else | |
19717 | echo "$ac_t""no" 1>&6 | |
afc31813 VZ |
19718 | fi |
19719 | done | |
19720 | ||
5c6fa7d2 | 19721 | |
8284b0c5 | 19722 | if test "$ac_cv_func_localtime" = "yes"; then |
a0b9e27f | 19723 | echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6 |
34bed6d9 | 19724 | echo "configure:19725: checking for tm_gmtoff in struct tm" >&5 |
a0b9e27f MB |
19725 | if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then |
19726 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19727 | else | |
19728 | ||
19729 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19730 | #line 19731 "configure" |
0470b1e6 VZ |
19731 | #include "confdefs.h" |
19732 | ||
b4085ce6 | 19733 | #include <time.h> |
a0b9e27f MB |
19734 | |
19735 | int main() { | |
0470b1e6 VZ |
19736 | |
19737 | struct tm tm; | |
19738 | tm.tm_gmtoff++; | |
a0b9e27f MB |
19739 | |
19740 | ; return 0; } | |
19741 | EOF | |
34bed6d9 | 19742 | if { (eval echo configure:19743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
19743 | rm -rf conftest* |
19744 | ||
f03a98d8 | 19745 | wx_cv_struct_tm_has_gmtoff=yes |
a0b9e27f | 19746 | |
0470b1e6 | 19747 | else |
a0b9e27f MB |
19748 | echo "configure: failed program was:" >&5 |
19749 | cat conftest.$ac_ext >&5 | |
19750 | rm -rf conftest* | |
19751 | wx_cv_struct_tm_has_gmtoff=no | |
19752 | ||
5c6fa7d2 | 19753 | fi |
a0b9e27f MB |
19754 | rm -f conftest* |
19755 | ||
247f5006 | 19756 | fi |
a0b9e27f MB |
19757 | |
19758 | echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6 | |
6232543b VS |
19759 | fi |
19760 | ||
19761 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
a0b9e27f | 19762 | cat >> confdefs.h <<\EOF |
6232543b | 19763 | #define WX_GMTOFF_IN_TM 1 |
a0b9e27f | 19764 | EOF |
0470b1e6 | 19765 | |
3fcdd07b VZ |
19766 | fi |
19767 | ||
a0b9e27f | 19768 | for ac_func in gettimeofday ftime |
3fcdd07b | 19769 | do |
a0b9e27f | 19770 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 19771 | echo "configure:19772: checking for $ac_func" >&5 |
a0b9e27f MB |
19772 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
19773 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19774 | else | |
19775 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19776 | #line 19777 "configure" |
3fcdd07b VZ |
19777 | #include "confdefs.h" |
19778 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19779 | which can conflict with char $ac_func(); below. */ |
3fcdd07b VZ |
19780 | #include <assert.h> |
19781 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19782 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19783 | builtin and then its argument prototype would still apply. */ |
19784 | char $ac_func(); | |
19785 | ||
19786 | int main() { | |
19787 | ||
3fcdd07b VZ |
19788 | /* The GNU C library defines this for functions which it implements |
19789 | to always fail with ENOSYS. Some functions are actually named | |
19790 | something starting with __ and the normal name is an alias. */ | |
19791 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19792 | choke me | |
19793 | #else | |
a0b9e27f | 19794 | $ac_func(); |
3fcdd07b VZ |
19795 | #endif |
19796 | ||
a0b9e27f MB |
19797 | ; return 0; } |
19798 | EOF | |
34bed6d9 | 19799 | if { (eval echo configure:19800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19800 | rm -rf conftest* |
19801 | eval "ac_cv_func_$ac_func=yes" | |
19802 | else | |
19803 | echo "configure: failed program was:" >&5 | |
19804 | cat conftest.$ac_ext >&5 | |
19805 | rm -rf conftest* | |
19806 | eval "ac_cv_func_$ac_func=no" | |
19807 | fi | |
19808 | rm -f conftest* | |
19809 | fi | |
19810 | ||
19811 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
19812 | echo "$ac_t""yes" 1>&6 | |
19813 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
19814 | cat >> confdefs.h <<EOF | |
19815 | #define $ac_tr_func 1 | |
19816 | EOF | |
3fcdd07b | 19817 | break |
a0b9e27f MB |
19818 | else |
19819 | echo "$ac_t""no" 1>&6 | |
3fcdd07b VZ |
19820 | fi |
19821 | done | |
19822 | ||
698dcdb6 | 19823 | |
8284b0c5 | 19824 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
a0b9e27f | 19825 | echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6 |
34bed6d9 | 19826 | echo "configure:19827: checking whether gettimeofday takes two arguments" >&5 |
a0b9e27f MB |
19827 | if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then |
19828 | echo $ac_n "(cached) $ac_c" 1>&6 | |
19829 | else | |
19830 | ||
19831 | ||
19832 | ac_ext=C | |
19833 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 19834 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
19835 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19836 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19837 | cross_compiling=$ac_cv_prog_cxx_cross | |
52127426 | 19838 | |
8284b0c5 | 19839 | |
a0b9e27f | 19840 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 19841 | #line 19842 "configure" |
10f2d63a | 19842 | #include "confdefs.h" |
afc31813 VZ |
19843 | |
19844 | #include <sys/time.h> | |
19845 | #include <unistd.h> | |
a0b9e27f MB |
19846 | |
19847 | int main() { | |
afc31813 VZ |
19848 | |
19849 | struct timeval tv; | |
776862b4 | 19850 | gettimeofday(&tv, NULL); |
a0b9e27f MB |
19851 | |
19852 | ; return 0; } | |
19853 | EOF | |
34bed6d9 | 19854 | if { (eval echo configure:19855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19855 | rm -rf conftest* |
afc31813 | 19856 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 19857 | else |
a0b9e27f MB |
19858 | echo "configure: failed program was:" >&5 |
19859 | cat conftest.$ac_ext >&5 | |
19860 | rm -rf conftest* | |
19861 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 19862 | #line 19863 "configure" |
10f2d63a | 19863 | #include "confdefs.h" |
afc31813 VZ |
19864 | |
19865 | #include <sys/time.h> | |
19866 | #include <unistd.h> | |
a0b9e27f MB |
19867 | |
19868 | int main() { | |
afc31813 VZ |
19869 | |
19870 | struct timeval tv; | |
19871 | gettimeofday(&tv); | |
a0b9e27f MB |
19872 | |
19873 | ; return 0; } | |
19874 | EOF | |
34bed6d9 | 19875 | if { (eval echo configure:19876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 19876 | rm -rf conftest* |
afc31813 | 19877 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 19878 | else |
a0b9e27f MB |
19879 | echo "configure: failed program was:" >&5 |
19880 | cat conftest.$ac_ext >&5 | |
19881 | rm -rf conftest* | |
19882 | ||
19883 | echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2 | |
776862b4 | 19884 | wx_cv_func_gettimeofday_has_2_args=unknown |
a0b9e27f MB |
19885 | |
19886 | ||
10f2d63a | 19887 | fi |
a0b9e27f MB |
19888 | rm -f conftest* |
19889 | ||
10f2d63a | 19890 | fi |
a0b9e27f | 19891 | rm -f conftest* |
afc31813 | 19892 | ac_ext=c |
a0b9e27f | 19893 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
10f2d63a | 19894 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
19895 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
19896 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
19897 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 19898 | |
a0b9e27f | 19899 | |
247f5006 | 19900 | fi |
a0b9e27f MB |
19901 | |
19902 | echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6 | |
c63c7106 | 19903 | |
afc31813 | 19904 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
a0b9e27f | 19905 | cat >> confdefs.h <<\EOF |
afc31813 | 19906 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
a0b9e27f | 19907 | EOF |
afc31813 VZ |
19908 | |
19909 | fi | |
19910 | fi | |
19911 | ||
a0b9e27f | 19912 | cat >> confdefs.h <<\EOF |
afc31813 | 19913 | #define wxUSE_TIMEDATE 1 |
a0b9e27f | 19914 | EOF |
afc31813 VZ |
19915 | |
19916 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
19917 | fi | |
19918 | ||
8284b0c5 | 19919 | |
52127426 | 19920 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 19921 | if test "$wxUSE_MGL" = "1"; then |
a0b9e27f | 19922 | echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
19923 | wxUSE_SOCKETS="no" |
19924 | fi | |
0feee163 | 19925 | fi |
b089607b | 19926 | |
0feee163 VZ |
19927 | if test "$wxUSE_SOCKETS" = "yes"; then |
19928 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 19929 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
34bed6d9 | 19930 | echo "configure:19931: checking for socket" >&5 |
a0b9e27f MB |
19931 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
19932 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19933 | else |
a0b9e27f | 19934 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 19935 | #line 19936 "configure" |
c63c7106 VZ |
19936 | #include "confdefs.h" |
19937 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 19938 | which can conflict with char socket(); below. */ |
c63c7106 VZ |
19939 | #include <assert.h> |
19940 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19941 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19942 | builtin and then its argument prototype would still apply. */ |
19943 | char socket(); | |
19944 | ||
19945 | int main() { | |
19946 | ||
c63c7106 VZ |
19947 | /* The GNU C library defines this for functions which it implements |
19948 | to always fail with ENOSYS. Some functions are actually named | |
19949 | something starting with __ and the normal name is an alias. */ | |
19950 | #if defined (__stub_socket) || defined (__stub___socket) | |
19951 | choke me | |
19952 | #else | |
a0b9e27f | 19953 | socket(); |
c63c7106 VZ |
19954 | #endif |
19955 | ||
a0b9e27f MB |
19956 | ; return 0; } |
19957 | EOF | |
34bed6d9 | 19958 | if { (eval echo configure:19959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19959 | rm -rf conftest* |
19960 | eval "ac_cv_func_socket=yes" | |
19961 | else | |
19962 | echo "configure: failed program was:" >&5 | |
19963 | cat conftest.$ac_ext >&5 | |
19964 | rm -rf conftest* | |
19965 | eval "ac_cv_func_socket=no" | |
19966 | fi | |
19967 | rm -f conftest* | |
19968 | fi | |
19969 | ||
19970 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then | |
19971 | echo "$ac_t""yes" 1>&6 | |
c63c7106 VZ |
19972 | : |
19973 | else | |
a0b9e27f MB |
19974 | echo "$ac_t""no" 1>&6 |
19975 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | |
34bed6d9 | 19976 | echo "configure:19977: checking for socket in -lsocket" >&5 |
a0b9e27f MB |
19977 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
19978 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
19979 | echo $ac_n "(cached) $ac_c" 1>&6 | |
c63c7106 | 19980 | else |
a0b9e27f | 19981 | ac_save_LIBS="$LIBS" |
c63c7106 | 19982 | LIBS="-lsocket $LIBS" |
a0b9e27f | 19983 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 19984 | #line 19985 "configure" |
c63c7106 VZ |
19985 | #include "confdefs.h" |
19986 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19987 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
19988 | builtin and then its argument prototype would still apply. */ |
19989 | char socket(); | |
19990 | ||
19991 | int main() { | |
19992 | socket() | |
19993 | ; return 0; } | |
19994 | EOF | |
34bed6d9 | 19995 | if { (eval echo configure:19996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
19996 | rm -rf conftest* |
19997 | eval "ac_cv_lib_$ac_lib_var=yes" | |
19998 | else | |
19999 | echo "configure: failed program was:" >&5 | |
20000 | cat conftest.$ac_ext >&5 | |
20001 | rm -rf conftest* | |
20002 | eval "ac_cv_lib_$ac_lib_var=no" | |
20003 | fi | |
20004 | rm -f conftest* | |
20005 | LIBS="$ac_save_LIBS" | |
20006 | ||
20007 | fi | |
20008 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20009 | echo "$ac_t""yes" 1>&6 | |
d558c907 VS |
20010 | if test "$INET_LINK" != " -lsocket"; then |
20011 | INET_LINK="$INET_LINK -lsocket" | |
20012 | fi | |
c63c7106 | 20013 | else |
a0b9e27f | 20014 | echo "$ac_t""no" 1>&6 |
afc31813 | 20015 | |
a0b9e27f | 20016 | echo "configure: warning: socket library not found - sockets will be disabled" 1>&2 |
3a922bb4 | 20017 | wxUSE_SOCKETS=no |
a0b9e27f MB |
20018 | |
20019 | ||
6232543b | 20020 | fi |
b089607b | 20021 | |
a0b9e27f | 20022 | |
1e487827 | 20023 | fi |
afc31813 | 20024 | |
3a922bb4 | 20025 | fi |
0feee163 | 20026 | fi |
51a9faba | 20027 | |
0feee163 VZ |
20028 | if test "$wxUSE_SOCKETS" = "yes" ; then |
20029 | if test "$TOOLKIT" != "MSW"; then | |
a0b9e27f | 20030 | echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6 |
34bed6d9 | 20031 | echo "configure:20032: checking what is the type of the third argument of getsockname" >&5 |
a0b9e27f MB |
20032 | if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then |
20033 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20034 | else | |
20035 | ||
20036 | ||
20037 | ac_ext=C | |
20038 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
5c6fa7d2 | 20039 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20040 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20041 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20042 | cross_compiling=$ac_cv_prog_cxx_cross | |
698dcdb6 | 20043 | |
8284b0c5 | 20044 | |
a0b9e27f | 20045 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 20046 | #line 20047 "configure" |
afc31813 | 20047 | #include "confdefs.h" |
51a9faba | 20048 | |
3a922bb4 RL |
20049 | #include <sys/types.h> |
20050 | #include <sys/socket.h> | |
a0b9e27f MB |
20051 | |
20052 | int main() { | |
51a9faba | 20053 | |
3a922bb4 RL |
20054 | socklen_t len; |
20055 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20056 | |
20057 | ; return 0; } | |
20058 | EOF | |
34bed6d9 | 20059 | if { (eval echo configure:20060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20060 | rm -rf conftest* |
51a9faba | 20061 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 20062 | else |
a0b9e27f MB |
20063 | echo "configure: failed program was:" >&5 |
20064 | cat conftest.$ac_ext >&5 | |
20065 | rm -rf conftest* | |
20066 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 20067 | #line 20068 "configure" |
afc31813 | 20068 | #include "confdefs.h" |
51a9faba | 20069 | |
3a922bb4 RL |
20070 | #include <sys/types.h> |
20071 | #include <sys/socket.h> | |
a0b9e27f MB |
20072 | |
20073 | int main() { | |
51a9faba | 20074 | |
3a922bb4 RL |
20075 | size_t len; |
20076 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20077 | |
20078 | ; return 0; } | |
20079 | EOF | |
34bed6d9 | 20080 | if { (eval echo configure:20081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20081 | rm -rf conftest* |
51a9faba | 20082 | wx_cv_type_getsockname3=size_t |
afc31813 | 20083 | else |
a0b9e27f MB |
20084 | echo "configure: failed program was:" >&5 |
20085 | cat conftest.$ac_ext >&5 | |
20086 | rm -rf conftest* | |
20087 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 20088 | #line 20089 "configure" |
afc31813 | 20089 | #include "confdefs.h" |
51a9faba | 20090 | |
3a922bb4 RL |
20091 | #include <sys/types.h> |
20092 | #include <sys/socket.h> | |
a0b9e27f MB |
20093 | |
20094 | int main() { | |
51a9faba | 20095 | |
3a922bb4 RL |
20096 | int len; |
20097 | getsockname(0, 0, &len); | |
a0b9e27f MB |
20098 | |
20099 | ; return 0; } | |
20100 | EOF | |
34bed6d9 | 20101 | if { (eval echo configure:20102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f | 20102 | rm -rf conftest* |
51a9faba | 20103 | wx_cv_type_getsockname3=int |
afc31813 | 20104 | else |
a0b9e27f MB |
20105 | echo "configure: failed program was:" >&5 |
20106 | cat conftest.$ac_ext >&5 | |
20107 | rm -rf conftest* | |
20108 | wx_cv_type_getsockname3=unknown | |
20109 | ||
afc31813 | 20110 | fi |
a0b9e27f MB |
20111 | rm -f conftest* |
20112 | ||
afc31813 | 20113 | fi |
a0b9e27f MB |
20114 | rm -f conftest* |
20115 | ||
afc31813 | 20116 | fi |
a0b9e27f | 20117 | rm -f conftest* |
51a9faba | 20118 | |
3a922bb4 | 20119 | ac_ext=c |
a0b9e27f | 20120 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
afc31813 | 20121 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20122 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20123 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20124 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20125 | |
a0b9e27f | 20126 | |
247f5006 | 20127 | fi |
a0b9e27f MB |
20128 | |
20129 | echo "$ac_t""$wx_cv_type_getsockname3" 1>&6 | |
51a9faba | 20130 | |
3a922bb4 RL |
20131 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
20132 | wxUSE_SOCKETS=no | |
a0b9e27f | 20133 | echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2 |
3a922bb4 | 20134 | else |
a0b9e27f | 20135 | cat >> confdefs.h <<EOF |
51a9faba | 20136 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
a0b9e27f | 20137 | EOF |
51a9faba | 20138 | |
3a922bb4 | 20139 | fi |
51a9faba VZ |
20140 | fi |
20141 | fi | |
afc31813 | 20142 | |
51a9faba | 20143 | if test "$wxUSE_SOCKETS" = "yes" ; then |
a0b9e27f | 20144 | cat >> confdefs.h <<\EOF |
afc31813 | 20145 | #define wxUSE_SOCKETS 1 |
a0b9e27f | 20146 | EOF |
afc31813 | 20147 | |
70f7a477 | 20148 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
20149 | fi |
20150 | ||
8284b0c5 | 20151 | |
dc3d889d VZ |
20152 | if test "$wxUSE_GUI" = "yes"; then |
20153 | ||
156b2523 | 20154 | if test "$TOOLKIT" = "MAC"; then |
a0b9e27f | 20155 | echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
20156 | wxUSE_JOYSTICK=no |
20157 | fi | |
20158 | if test "$TOOLKIT" = "MOTIF"; then | |
a0b9e27f | 20159 | echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2 |
156b2523 | 20160 | wxUSE_JOYSTICK=no |
f79bd02d JS |
20161 | fi |
20162 | if test "$TOOLKIT" = "X11"; then | |
a0b9e27f | 20163 | echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2 |
f79bd02d | 20164 | wxUSE_JOYSTICK=no |
156b2523 GD |
20165 | fi |
20166 | ||
3a922bb4 RL |
20167 | if test "$TOOLKIT" != "MSW"; then |
20168 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
a0b9e27f | 20169 | for ac_hdr in linux/joystick.h |
10f2d63a | 20170 | do |
a0b9e27f MB |
20171 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20172 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
34bed6d9 | 20173 | echo "configure:20174: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20174 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20175 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20176 | else | |
20177 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 20178 | #line 20179 "configure" |
247f5006 | 20179 | #include "confdefs.h" |
a0b9e27f MB |
20180 | #include <$ac_hdr> |
20181 | EOF | |
20182 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 20183 | { (eval echo configure:20184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20184 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20185 | if test -z "$ac_err"; then | |
20186 | rm -rf conftest* | |
20187 | eval "ac_cv_header_$ac_safe=yes" | |
20188 | else | |
20189 | echo "$ac_err" >&5 | |
20190 | echo "configure: failed program was:" >&5 | |
247f5006 | 20191 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20192 | rm -rf conftest* |
20193 | eval "ac_cv_header_$ac_safe=no" | |
247f5006 | 20194 | fi |
a0b9e27f | 20195 | rm -f conftest* |
10f2d63a | 20196 | fi |
a0b9e27f MB |
20197 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20198 | echo "$ac_t""yes" 1>&6 | |
20199 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20200 | cat >> confdefs.h <<EOF | |
20201 | #define $ac_tr_hdr 1 | |
20202 | EOF | |
20203 | ||
20204 | else | |
20205 | echo "$ac_t""no" 1>&6 | |
247f5006 | 20206 | fi |
10f2d63a VZ |
20207 | done |
20208 | ||
3a922bb4 RL |
20209 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
20210 | wxUSE_JOYSTICK=no | |
a0b9e27f | 20211 | echo "configure: warning: Joystick not supported by this system... disabled" 1>&2 |
3a922bb4 RL |
20212 | fi |
20213 | fi | |
20214 | fi | |
b089607b | 20215 | |
3a922bb4 | 20216 | if test "$wxUSE_JOYSTICK" = "yes"; then |
a0b9e27f | 20217 | cat >> confdefs.h <<\EOF |
10f2d63a | 20218 | #define wxUSE_JOYSTICK 1 |
a0b9e27f | 20219 | EOF |
10f2d63a | 20220 | |
3a922bb4 RL |
20221 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
20222 | fi | |
dc3d889d VZ |
20223 | fi |
20224 | ||
8284b0c5 | 20225 | |
b089607b VZ |
20226 | if test "$TOOLKIT" != "MSW"; then |
20227 | ||
3a922bb4 RL |
20228 | HAVE_DL_FUNCS=0 |
20229 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 20230 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
20231 | if test "$USE_DARWIN" = 1; then |
20232 | HAVE_DL_FUNCS=1 | |
20233 | else | |
a0b9e27f | 20234 | for ac_func in dlopen |
10f2d63a | 20235 | do |
a0b9e27f | 20236 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 20237 | echo "configure:20238: checking for $ac_func" >&5 |
a0b9e27f MB |
20238 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20239 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20240 | else | |
20241 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 20242 | #line 20243 "configure" |
10f2d63a VZ |
20243 | #include "confdefs.h" |
20244 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20245 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20246 | #include <assert.h> |
20247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20248 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20249 | builtin and then its argument prototype would still apply. */ |
20250 | char $ac_func(); | |
20251 | ||
20252 | int main() { | |
20253 | ||
10f2d63a VZ |
20254 | /* The GNU C library defines this for functions which it implements |
20255 | to always fail with ENOSYS. Some functions are actually named | |
20256 | something starting with __ and the normal name is an alias. */ | |
20257 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20258 | choke me | |
20259 | #else | |
a0b9e27f | 20260 | $ac_func(); |
10f2d63a VZ |
20261 | #endif |
20262 | ||
a0b9e27f MB |
20263 | ; return 0; } |
20264 | EOF | |
34bed6d9 | 20265 | if { (eval echo configure:20266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20266 | rm -rf conftest* |
20267 | eval "ac_cv_func_$ac_func=yes" | |
20268 | else | |
20269 | echo "configure: failed program was:" >&5 | |
20270 | cat conftest.$ac_ext >&5 | |
20271 | rm -rf conftest* | |
20272 | eval "ac_cv_func_$ac_func=no" | |
20273 | fi | |
20274 | rm -f conftest* | |
20275 | fi | |
20276 | ||
20277 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20278 | echo "$ac_t""yes" 1>&6 | |
20279 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20280 | cat >> confdefs.h <<EOF | |
20281 | #define $ac_tr_func 1 | |
20282 | EOF | |
20283 | ||
20284 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20285 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20286 | EOF |
10f2d63a | 20287 | |
3a922bb4 | 20288 | HAVE_DL_FUNCS=1 |
a0b9e27f | 20289 | |
10f2d63a | 20290 | else |
a0b9e27f MB |
20291 | echo "$ac_t""no" 1>&6 |
20292 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | |
34bed6d9 | 20293 | echo "configure:20294: checking for dlopen in -ldl" >&5 |
a0b9e27f MB |
20294 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
20295 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 20297 | else |
a0b9e27f | 20298 | ac_save_LIBS="$LIBS" |
10f2d63a | 20299 | LIBS="-ldl $LIBS" |
a0b9e27f | 20300 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 20301 | #line 20302 "configure" |
10f2d63a VZ |
20302 | #include "confdefs.h" |
20303 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20304 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20305 | builtin and then its argument prototype would still apply. */ |
20306 | char dlopen(); | |
20307 | ||
20308 | int main() { | |
20309 | dlopen() | |
20310 | ; return 0; } | |
20311 | EOF | |
34bed6d9 | 20312 | if { (eval echo configure:20313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20313 | rm -rf conftest* |
20314 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20315 | else | |
20316 | echo "configure: failed program was:" >&5 | |
20317 | cat conftest.$ac_ext >&5 | |
20318 | rm -rf conftest* | |
20319 | eval "ac_cv_lib_$ac_lib_var=no" | |
20320 | fi | |
20321 | rm -f conftest* | |
20322 | LIBS="$ac_save_LIBS" | |
20323 | ||
20324 | fi | |
20325 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20326 | echo "$ac_t""yes" 1>&6 | |
20327 | ||
20328 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20329 | #define HAVE_DLOPEN 1 |
a0b9e27f | 20330 | EOF |
10f2d63a | 20331 | |
3a922bb4 | 20332 | HAVE_DL_FUNCS=1 |
3d63bc3a | 20333 | DL_LINK=" -ldl$DL_LINK" |
a0b9e27f | 20334 | |
10f2d63a | 20335 | else |
a0b9e27f | 20336 | echo "$ac_t""no" 1>&6 |
10f2d63a | 20337 | |
a0b9e27f | 20338 | for ac_func in shl_load |
10f2d63a | 20339 | do |
a0b9e27f | 20340 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 20341 | echo "configure:20342: checking for $ac_func" >&5 |
a0b9e27f MB |
20342 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20343 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20344 | else | |
20345 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 20346 | #line 20347 "configure" |
10f2d63a VZ |
20347 | #include "confdefs.h" |
20348 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20349 | which can conflict with char $ac_func(); below. */ |
10f2d63a VZ |
20350 | #include <assert.h> |
20351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20352 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20353 | builtin and then its argument prototype would still apply. */ |
20354 | char $ac_func(); | |
20355 | ||
20356 | int main() { | |
20357 | ||
10f2d63a VZ |
20358 | /* The GNU C library defines this for functions which it implements |
20359 | to always fail with ENOSYS. Some functions are actually named | |
20360 | something starting with __ and the normal name is an alias. */ | |
20361 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20362 | choke me | |
20363 | #else | |
a0b9e27f | 20364 | $ac_func(); |
10f2d63a VZ |
20365 | #endif |
20366 | ||
a0b9e27f MB |
20367 | ; return 0; } |
20368 | EOF | |
34bed6d9 | 20369 | if { (eval echo configure:20370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20370 | rm -rf conftest* |
20371 | eval "ac_cv_func_$ac_func=yes" | |
20372 | else | |
20373 | echo "configure: failed program was:" >&5 | |
20374 | cat conftest.$ac_ext >&5 | |
20375 | rm -rf conftest* | |
20376 | eval "ac_cv_func_$ac_func=no" | |
20377 | fi | |
20378 | rm -f conftest* | |
20379 | fi | |
20380 | ||
20381 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20382 | echo "$ac_t""yes" 1>&6 | |
20383 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20384 | cat >> confdefs.h <<EOF | |
20385 | #define $ac_tr_func 1 | |
20386 | EOF | |
20387 | ||
20388 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20389 | #define HAVE_SHL_LOAD 1 |
a0b9e27f | 20390 | EOF |
10f2d63a | 20391 | |
3a922bb4 | 20392 | HAVE_SHL_FUNCS=1 |
a0b9e27f | 20393 | |
10f2d63a | 20394 | else |
a0b9e27f MB |
20395 | echo "$ac_t""no" 1>&6 |
20396 | echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6 | |
34bed6d9 | 20397 | echo "configure:20398: checking for dld in -lshl_load" >&5 |
a0b9e27f MB |
20398 | ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'` |
20399 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20400 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20401 | else |
a0b9e27f | 20402 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20403 | LIBS="-lshl_load $LIBS" |
a0b9e27f | 20404 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 20405 | #line 20406 "configure" |
f6bcfd97 | 20406 | #include "confdefs.h" |
8284b0c5 | 20407 | /* Override any gcc2 internal prototype to avoid an error. */ |
f6bcfd97 | 20408 | /* We use char because int might match the return type of a gcc2 |
a0b9e27f MB |
20409 | builtin and then its argument prototype would still apply. */ |
20410 | char dld(); | |
20411 | ||
20412 | int main() { | |
20413 | dld() | |
20414 | ; return 0; } | |
20415 | EOF | |
34bed6d9 | 20416 | if { (eval echo configure:20417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20417 | rm -rf conftest* |
20418 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20419 | else | |
20420 | echo "configure: failed program was:" >&5 | |
20421 | cat conftest.$ac_ext >&5 | |
20422 | rm -rf conftest* | |
20423 | eval "ac_cv_lib_$ac_lib_var=no" | |
20424 | fi | |
20425 | rm -f conftest* | |
20426 | LIBS="$ac_save_LIBS" | |
f6bcfd97 | 20427 | |
a0b9e27f MB |
20428 | fi |
20429 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20430 | echo "$ac_t""yes" 1>&6 | |
20431 | ||
3a922bb4 | 20432 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 20433 | DL_LINK=" -ldld$DL_LINK" |
a0b9e27f MB |
20434 | |
20435 | else | |
20436 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20437 | fi |
20438 | ||
a0b9e27f | 20439 | |
10f2d63a VZ |
20440 | fi |
20441 | done | |
20442 | ||
a0b9e27f | 20443 | |
10f2d63a VZ |
20444 | fi |
20445 | ||
a0b9e27f | 20446 | |
10f2d63a VZ |
20447 | fi |
20448 | done | |
20449 | ||
5c6fa7d2 | 20450 | |
8284b0c5 | 20451 | if test "$HAVE_DL_FUNCS" = 1; then |
a0b9e27f | 20452 | for ac_func in dlerror |
f6bcfd97 | 20453 | do |
a0b9e27f | 20454 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
34bed6d9 | 20455 | echo "configure:20456: checking for $ac_func" >&5 |
a0b9e27f MB |
20456 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
20457 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20458 | else | |
20459 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 20460 | #line 20461 "configure" |
f6bcfd97 BP |
20461 | #include "confdefs.h" |
20462 | /* System header to define __stub macros and hopefully few prototypes, | |
a0b9e27f | 20463 | which can conflict with char $ac_func(); below. */ |
f6bcfd97 BP |
20464 | #include <assert.h> |
20465 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20466 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20467 | builtin and then its argument prototype would still apply. */ |
20468 | char $ac_func(); | |
20469 | ||
20470 | int main() { | |
20471 | ||
f6bcfd97 BP |
20472 | /* The GNU C library defines this for functions which it implements |
20473 | to always fail with ENOSYS. Some functions are actually named | |
20474 | something starting with __ and the normal name is an alias. */ | |
20475 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20476 | choke me | |
20477 | #else | |
a0b9e27f | 20478 | $ac_func(); |
f6bcfd97 BP |
20479 | #endif |
20480 | ||
a0b9e27f MB |
20481 | ; return 0; } |
20482 | EOF | |
34bed6d9 | 20483 | if { (eval echo configure:20484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20484 | rm -rf conftest* |
20485 | eval "ac_cv_func_$ac_func=yes" | |
20486 | else | |
20487 | echo "configure: failed program was:" >&5 | |
20488 | cat conftest.$ac_ext >&5 | |
20489 | rm -rf conftest* | |
20490 | eval "ac_cv_func_$ac_func=no" | |
20491 | fi | |
20492 | rm -f conftest* | |
20493 | fi | |
20494 | ||
20495 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
20496 | echo "$ac_t""yes" 1>&6 | |
20497 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
20498 | cat >> confdefs.h <<EOF | |
20499 | #define $ac_tr_func 1 | |
20500 | EOF | |
20501 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20502 | #define HAVE_DLERROR 1 |
a0b9e27f | 20503 | EOF |
f6bcfd97 BP |
20504 | |
20505 | else | |
a0b9e27f MB |
20506 | echo "$ac_t""no" 1>&6 |
20507 | echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6 | |
34bed6d9 | 20508 | echo "configure:20509: checking for dlerror in -ldl" >&5 |
a0b9e27f MB |
20509 | ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'` |
20510 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20511 | echo $ac_n "(cached) $ac_c" 1>&6 | |
f6bcfd97 | 20512 | else |
a0b9e27f | 20513 | ac_save_LIBS="$LIBS" |
f6bcfd97 | 20514 | LIBS="-ldl $LIBS" |
a0b9e27f | 20515 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 20516 | #line 20517 "configure" |
f6bcfd97 BP |
20517 | #include "confdefs.h" |
20518 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20519 | /* We use char because int might match the return type of a gcc2 | |
a0b9e27f MB |
20520 | builtin and then its argument prototype would still apply. */ |
20521 | char dlerror(); | |
20522 | ||
20523 | int main() { | |
20524 | dlerror() | |
20525 | ; return 0; } | |
20526 | EOF | |
34bed6d9 | 20527 | if { (eval echo configure:20528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20528 | rm -rf conftest* |
20529 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20530 | else | |
20531 | echo "configure: failed program was:" >&5 | |
20532 | cat conftest.$ac_ext >&5 | |
20533 | rm -rf conftest* | |
20534 | eval "ac_cv_lib_$ac_lib_var=no" | |
20535 | fi | |
20536 | rm -f conftest* | |
20537 | LIBS="$ac_save_LIBS" | |
20538 | ||
20539 | fi | |
20540 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20541 | echo "$ac_t""yes" 1>&6 | |
20542 | cat >> confdefs.h <<\EOF | |
f6bcfd97 | 20543 | #define HAVE_DLERROR 1 |
a0b9e27f | 20544 | EOF |
f6bcfd97 | 20545 | |
a0b9e27f MB |
20546 | else |
20547 | echo "$ac_t""no" 1>&6 | |
f6bcfd97 BP |
20548 | fi |
20549 | ||
20550 | fi | |
20551 | done | |
20552 | ||
3a922bb4 RL |
20553 | fi |
20554 | fi | |
f6bcfd97 | 20555 | |
3a922bb4 RL |
20556 | if test "$HAVE_DL_FUNCS" = 0; then |
20557 | if test "$HAVE_SHL_FUNCS" = 0; then | |
20558 | if test "$USE_UNIX" = 1; then | |
a0b9e27f | 20559 | echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2 |
0b9ab0bd | 20560 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
20561 | wxUSE_DYNLIB_CLASS=no |
20562 | else | |
a0b9e27f | 20563 | echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2 |
3a922bb4 RL |
20564 | fi |
20565 | fi | |
10f2d63a VZ |
20566 | fi |
20567 | fi | |
20568 | fi | |
20569 | ||
0b9ab0bd | 20570 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
a0b9e27f | 20571 | cat >> confdefs.h <<\EOF |
0b9ab0bd | 20572 | #define wxUSE_DYNAMIC_LOADER 1 |
a0b9e27f | 20573 | EOF |
0b9ab0bd RL |
20574 | |
20575 | elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
a0b9e27f | 20576 | cat >> confdefs.h <<\EOF |
10f2d63a | 20577 | #define wxUSE_DYNLIB_CLASS 1 |
a0b9e27f | 20578 | EOF |
10f2d63a VZ |
20579 | |
20580 | fi | |
20581 | ||
8284b0c5 | 20582 | |
1e6feb95 | 20583 | if test "$wxUSE_FONTMAP" = "yes" ; then |
a0b9e27f | 20584 | cat >> confdefs.h <<\EOF |
1e6feb95 | 20585 | #define wxUSE_FONTMAP 1 |
a0b9e27f | 20586 | EOF |
1e6feb95 VZ |
20587 | |
20588 | fi | |
20589 | ||
10f2d63a | 20590 | if test "$wxUSE_UNICODE" = "yes" ; then |
a0b9e27f | 20591 | cat >> confdefs.h <<\EOF |
10f2d63a | 20592 | #define wxUSE_UNICODE 1 |
a0b9e27f | 20593 | EOF |
10f2d63a | 20594 | |
8284b0c5 | 20595 | |
bbc3925a VS |
20596 | if test "$wxUSE_MSW" != 1; then |
20597 | wxUSE_UNICODE_MSLU=no | |
20598 | fi | |
a72a4bfa VS |
20599 | |
20600 | if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
a0b9e27f | 20601 | echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6 |
34bed6d9 | 20602 | echo "configure:20603: checking for main in -lunicows" >&5 |
a0b9e27f MB |
20603 | ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'` |
20604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
20605 | echo $ac_n "(cached) $ac_c" 1>&6 | |
a72a4bfa | 20606 | else |
a0b9e27f | 20607 | ac_save_LIBS="$LIBS" |
a72a4bfa | 20608 | LIBS="-lunicows $LIBS" |
a0b9e27f | 20609 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 20610 | #line 20611 "configure" |
a72a4bfa VS |
20611 | #include "confdefs.h" |
20612 | ||
a0b9e27f MB |
20613 | int main() { |
20614 | main() | |
20615 | ; return 0; } | |
20616 | EOF | |
34bed6d9 | 20617 | if { (eval echo configure:20618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
a0b9e27f MB |
20618 | rm -rf conftest* |
20619 | eval "ac_cv_lib_$ac_lib_var=yes" | |
20620 | else | |
20621 | echo "configure: failed program was:" >&5 | |
20622 | cat conftest.$ac_ext >&5 | |
20623 | rm -rf conftest* | |
20624 | eval "ac_cv_lib_$ac_lib_var=no" | |
20625 | fi | |
20626 | rm -f conftest* | |
20627 | LIBS="$ac_save_LIBS" | |
8284b0c5 | 20628 | |
a0b9e27f MB |
20629 | fi |
20630 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
20631 | echo "$ac_t""yes" 1>&6 | |
20632 | ||
20633 | cat >> confdefs.h <<\EOF | |
a72a4bfa | 20634 | #define wxUSE_UNICODE_MSLU 1 |
a0b9e27f | 20635 | EOF |
a72a4bfa | 20636 | |
a0b9e27f | 20637 | |
a72a4bfa | 20638 | else |
a0b9e27f | 20639 | echo "$ac_t""no" 1>&6 |
a72a4bfa | 20640 | |
a0b9e27f MB |
20641 | echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled. |
20642 | Applications will only run on Windows NT/2000/XP!" 1>&2 | |
a72a4bfa | 20643 | wxUSE_UNICODE_MSLU=no |
a0b9e27f | 20644 | |
a72a4bfa VS |
20645 | fi |
20646 | ||
20647 | fi | |
10f2d63a VZ |
20648 | fi |
20649 | ||
10f2d63a | 20650 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
a0b9e27f | 20651 | cat >> confdefs.h <<\EOF |
10f2d63a | 20652 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
a0b9e27f | 20653 | EOF |
10f2d63a VZ |
20654 | |
20655 | fi | |
20656 | ||
8284b0c5 MB |
20657 | |
20658 | ||
10f2d63a VZ |
20659 | IODBC_C_SRC="" |
20660 | if test "$wxUSE_ODBC" = "yes" ; then | |
a0b9e27f | 20661 | cat >> confdefs.h <<\EOF |
10f2d63a | 20662 | #define wxUSE_ODBC 1 |
a0b9e27f | 20663 | EOF |
10f2d63a VZ |
20664 | |
20665 | WXODBCFLAG="-D_IODBC_" | |
20666 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
10f2d63a VZ |
20667 | fi |
20668 | ||
8284b0c5 | 20669 | |
10f2d63a | 20670 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
a0b9e27f | 20671 | cat >> confdefs.h <<\EOF |
10f2d63a | 20672 | #define wxUSE_POSTSCRIPT 1 |
a0b9e27f | 20673 | EOF |
10f2d63a VZ |
20674 | |
20675 | fi | |
20676 | ||
a0b9e27f | 20677 | cat >> confdefs.h <<\EOF |
10f2d63a | 20678 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
a0b9e27f | 20679 | EOF |
10f2d63a | 20680 | |
8284b0c5 | 20681 | |
a0b9e27f | 20682 | cat >> confdefs.h <<\EOF |
10f2d63a | 20683 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
a0b9e27f | 20684 | EOF |
10f2d63a | 20685 | |
8284b0c5 MB |
20686 | |
20687 | ||
10f2d63a | 20688 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
a0b9e27f | 20689 | cat >> confdefs.h <<\EOF |
10f2d63a | 20690 | #define wxUSE_CONSTRAINTS 1 |
a0b9e27f | 20691 | EOF |
10f2d63a VZ |
20692 | |
20693 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
20694 | fi | |
20695 | ||
20696 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
fc26f4ab | 20697 | |
8284b0c5 | 20698 | |
bb811f17 | 20699 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
a0b9e27f | 20700 | cat >> confdefs.h <<\EOF |
10f2d63a | 20701 | #define wxUSE_MDI_ARCHITECTURE 1 |
a0b9e27f | 20702 | EOF |
10f2d63a | 20703 | |
bb811f17 JS |
20704 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
20705 | fi | |
10f2d63a VZ |
20706 | fi |
20707 | ||
20708 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
a0b9e27f | 20709 | cat >> confdefs.h <<\EOF |
10f2d63a | 20710 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
a0b9e27f | 20711 | EOF |
10f2d63a VZ |
20712 | |
20713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
20714 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
20715 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
20716 | fi | |
20717 | fi | |
20718 | ||
20719 | if test "$wxUSE_HELP" = "yes"; then | |
a0b9e27f | 20720 | cat >> confdefs.h <<\EOF |
10f2d63a | 20721 | #define wxUSE_HELP 1 |
a0b9e27f | 20722 | EOF |
10f2d63a VZ |
20723 | |
20724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 20725 | |
77e13408 | 20726 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 20727 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
a0b9e27f | 20728 | cat >> confdefs.h <<\EOF |
29fd3c0c | 20729 | #define wxUSE_MS_HTML_HELP 1 |
a0b9e27f | 20730 | EOF |
29fd3c0c | 20731 | |
3e44f09d | 20732 | fi |
3379ed37 | 20733 | fi |
031d8228 VS |
20734 | |
20735 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
20736 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 20737 | cat >> confdefs.h <<\EOF |
031d8228 | 20738 | #define wxUSE_WXHTML_HELP 1 |
a0b9e27f | 20739 | EOF |
031d8228 VS |
20740 | |
20741 | else | |
a0b9e27f | 20742 | echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2 |
031d8228 VS |
20743 | wxUSE_WXHTML_HELP=no |
20744 | fi | |
20745 | fi | |
10f2d63a VZ |
20746 | fi |
20747 | ||
20748 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
20749 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 20750 | echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2 |
10f2d63a | 20751 | else |
a0b9e27f | 20752 | cat >> confdefs.h <<\EOF |
10f2d63a | 20753 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
a0b9e27f | 20754 | EOF |
10f2d63a VZ |
20755 | |
20756 | fi | |
20757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
20758 | fi | |
20759 | ||
20760 | if test "$wxUSE_PROLOGIO" = "yes" ; then | |
a0b9e27f | 20761 | cat >> confdefs.h <<\EOF |
10f2d63a | 20762 | #define wxUSE_PROLOGIO 1 |
a0b9e27f | 20763 | EOF |
10f2d63a | 20764 | |
2b5f62a0 | 20765 | ALL_OBJECTS="$ALL_OBJECTS parser.o" |
10f2d63a VZ |
20766 | fi |
20767 | ||
20768 | if test "$wxUSE_RESOURCES" = "yes" ; then | |
e334d0ea | 20769 | if test "$wxUSE_NANOX" = "yes"; then |
a0b9e27f | 20770 | echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2 |
2b5f62a0 VZ |
20771 | else |
20772 | cat >> confdefs.h <<\EOF | |
10f2d63a | 20773 | #define wxUSE_RESOURCES 1 |
a0b9e27f | 20774 | EOF |
10f2d63a | 20775 | |
2b5f62a0 VZ |
20776 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource" |
20777 | fi | |
20778 | if test "$wxUSE_PROLOGIO" != "yes" ; then | |
20779 | ALL_OBJECTS="$ALL_OBJECTS parser.o" | |
e334d0ea | 20780 | fi |
10f2d63a VZ |
20781 | fi |
20782 | ||
20783 | if test "$wxUSE_X_RESOURCES" = "yes"; then | |
a0b9e27f | 20784 | cat >> confdefs.h <<\EOF |
10f2d63a | 20785 | #define wxUSE_X_RESOURCES 1 |
a0b9e27f | 20786 | EOF |
10f2d63a VZ |
20787 | |
20788 | fi | |
20789 | ||
8284b0c5 | 20790 | |
77e13408 RL |
20791 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
20792 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
3bce6687 | 20793 | -o "$wxUSE_OLE" = "yes" \ |
77e13408 | 20794 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then |
a0b9e27f | 20795 | for ac_hdr in ole2.h |
10f2d63a | 20796 | do |
a0b9e27f MB |
20797 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
20798 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
34bed6d9 | 20799 | echo "configure:20800: checking for $ac_hdr" >&5 |
a0b9e27f MB |
20800 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20801 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20802 | else | |
20803 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 20804 | #line 20805 "configure" |
10f2d63a | 20805 | #include "confdefs.h" |
a0b9e27f MB |
20806 | #include <$ac_hdr> |
20807 | EOF | |
20808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 20809 | { (eval echo configure:20810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
a0b9e27f MB |
20810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20811 | if test -z "$ac_err"; then | |
20812 | rm -rf conftest* | |
20813 | eval "ac_cv_header_$ac_safe=yes" | |
20814 | else | |
20815 | echo "$ac_err" >&5 | |
20816 | echo "configure: failed program was:" >&5 | |
10f2d63a | 20817 | cat conftest.$ac_ext >&5 |
a0b9e27f MB |
20818 | rm -rf conftest* |
20819 | eval "ac_cv_header_$ac_safe=no" | |
10f2d63a | 20820 | fi |
a0b9e27f | 20821 | rm -f conftest* |
10f2d63a | 20822 | fi |
a0b9e27f MB |
20823 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
20824 | echo "$ac_t""yes" 1>&6 | |
20825 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20826 | cat >> confdefs.h <<EOF | |
20827 | #define $ac_tr_hdr 1 | |
20828 | EOF | |
20829 | ||
20830 | else | |
20831 | echo "$ac_t""no" 1>&6 | |
10f2d63a VZ |
20832 | fi |
20833 | done | |
20834 | ||
8284b0c5 | 20835 | |
2b9bdf71 VZ |
20836 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
20837 | if test "$GCC" = yes ; then | |
a0b9e27f MB |
20838 | |
20839 | ac_ext=C | |
20840 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
8284b0c5 | 20841 | ac_cpp='$CXXCPP $CPPFLAGS' |
a0b9e27f MB |
20842 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20843 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20844 | cross_compiling=$ac_cv_prog_cxx_cross | |
8284b0c5 MB |
20845 | |
20846 | ||
a0b9e27f | 20847 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 |
34bed6d9 | 20848 | echo "configure:20849: checking if g++ requires -fvtable-thunks" >&5 |
a0b9e27f | 20849 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 20850 | #line 20851 "configure" |
8284b0c5 MB |
20851 | #include "confdefs.h" |
20852 | #include <windows.h> | |
20853 | #include <ole2.h> | |
a0b9e27f | 20854 | int main() { |
8284b0c5 | 20855 | |
a0b9e27f MB |
20856 | ; return 0; } |
20857 | EOF | |
34bed6d9 | 20858 | if { (eval echo configure:20859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
a0b9e27f MB |
20859 | rm -rf conftest* |
20860 | echo "$ac_t""no" 1>&6 | |
20861 | else | |
20862 | echo "configure: failed program was:" >&5 | |
20863 | cat conftest.$ac_ext >&5 | |
20864 | rm -rf conftest* | |
20865 | echo "$ac_t""yes" 1>&6 | |
8284b0c5 MB |
20866 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
20867 | fi | |
a0b9e27f | 20868 | rm -f conftest* |
8284b0c5 | 20869 | ac_ext=c |
a0b9e27f | 20870 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
8284b0c5 | 20871 | ac_cpp='$CPP $CPPFLAGS' |
a0b9e27f MB |
20872 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
20873 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20874 | cross_compiling=$ac_cv_prog_cc_cross | |
8284b0c5 | 20875 | |
2b9bdf71 | 20876 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 20877 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
a0b9e27f | 20878 | cat >> confdefs.h <<\EOF |
4f11a343 | 20879 | #define wxUSE_OLE 1 |
a0b9e27f | 20880 | EOF |
4f11a343 | 20881 | |
8284b0c5 | 20882 | |
2b9bdf71 VZ |
20883 | fi |
20884 | ||
a0b9e27f | 20885 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 20886 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 20887 | EOF |
2b9bdf71 VZ |
20888 | |
20889 | else | |
a0b9e27f | 20890 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 |
2b9bdf71 VZ |
20891 | |
20892 | wxUSE_CLIPBOARD=no | |
20893 | wxUSE_DRAG_AND_DROP=no | |
20894 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
20895 | wxUSE_OLE=no |
20896 | fi | |
20897 | ||
20898 | if test "$wxUSE_METAFILE" = "yes"; then | |
20899 | cat >> confdefs.h <<\EOF | |
20900 | #define wxUSE_METAFILE 1 | |
20901 | EOF | |
20902 | ||
20903 | ||
20904 | cat >> confdefs.h <<\EOF | |
20905 | #define wxUSE_ENH_METAFILE 1 | |
20906 | EOF | |
20907 | ||
20908 | fi | |
20909 | fi | |
20910 | ||
20911 | if test "$wxUSE_WINE" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
20912 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
20913 | -o "$wxUSE_OLE" = "yes" \ | |
20914 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
20915 | for ac_hdr in ole2.h | |
20916 | do | |
20917 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
20918 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
34bed6d9 | 20919 | echo "configure:20920: checking for $ac_hdr" >&5 |
3bce6687 JS |
20920 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
20921 | echo $ac_n "(cached) $ac_c" 1>&6 | |
20922 | else | |
20923 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 20924 | #line 20925 "configure" |
3bce6687 JS |
20925 | #include "confdefs.h" |
20926 | #include <$ac_hdr> | |
20927 | EOF | |
20928 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
34bed6d9 | 20929 | { (eval echo configure:20930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
3bce6687 JS |
20930 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
20931 | if test -z "$ac_err"; then | |
20932 | rm -rf conftest* | |
20933 | eval "ac_cv_header_$ac_safe=yes" | |
20934 | else | |
20935 | echo "$ac_err" >&5 | |
20936 | echo "configure: failed program was:" >&5 | |
20937 | cat conftest.$ac_ext >&5 | |
20938 | rm -rf conftest* | |
20939 | eval "ac_cv_header_$ac_safe=no" | |
20940 | fi | |
20941 | rm -f conftest* | |
20942 | fi | |
20943 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
20944 | echo "$ac_t""yes" 1>&6 | |
20945 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
20946 | cat >> confdefs.h <<EOF | |
20947 | #define $ac_tr_hdr 1 | |
20948 | EOF | |
20949 | ||
20950 | else | |
20951 | echo "$ac_t""no" 1>&6 | |
20952 | fi | |
20953 | done | |
20954 | ||
20955 | ||
20956 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
20957 | if test "$GCC" = yes ; then | |
20958 | ||
20959 | ac_ext=C | |
20960 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20961 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20962 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20963 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20964 | cross_compiling=$ac_cv_prog_cxx_cross | |
20965 | ||
20966 | ||
20967 | echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6 | |
34bed6d9 | 20968 | echo "configure:20969: checking if g++ requires -fvtable-thunks" >&5 |
3bce6687 | 20969 | cat > conftest.$ac_ext <<EOF |
34bed6d9 | 20970 | #line 20971 "configure" |
3bce6687 JS |
20971 | #include "confdefs.h" |
20972 | #include <windows.h> | |
20973 | #include <ole2.h> | |
20974 | int main() { | |
20975 | ||
20976 | ; return 0; } | |
20977 | EOF | |
34bed6d9 | 20978 | if { (eval echo configure:20979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
3bce6687 JS |
20979 | rm -rf conftest* |
20980 | echo "$ac_t""no" 1>&6 | |
20981 | else | |
20982 | echo "configure: failed program was:" >&5 | |
20983 | cat conftest.$ac_ext >&5 | |
20984 | rm -rf conftest* | |
20985 | echo "$ac_t""yes" 1>&6 | |
20986 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
20987 | fi | |
20988 | rm -f conftest* | |
20989 | ac_ext=c | |
20990 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
20991 | ac_cpp='$CPP $CPPFLAGS' | |
20992 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
20993 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
20994 | cross_compiling=$ac_cv_prog_cc_cross | |
20995 | ||
20996 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
20997 | LIBS=" -lwine_uuid$LIBS" | |
20998 | cat >> confdefs.h <<\EOF | |
20999 | #define wxUSE_OLE 1 | |
21000 | EOF | |
21001 | ||
21002 | ||
21003 | fi | |
21004 | ||
21005 | cat >> confdefs.h <<\EOF | |
21006 | #define wxUSE_DATAOBJ 1 | |
21007 | EOF | |
21008 | ||
21009 | else | |
21010 | echo "configure: warning: Some features disabled because OLE headers not found" 1>&2 | |
21011 | ||
21012 | wxUSE_CLIPBOARD=no | |
21013 | wxUSE_DRAG_AND_DROP=no | |
21014 | wxUSE_DATAOBJ=no | |
21015 | wxUSE_OLE=no | |
2b9bdf71 VZ |
21016 | fi |
21017 | ||
77e13408 | 21018 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21019 | cat >> confdefs.h <<\EOF |
b64f0a5f | 21020 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21021 | EOF |
b64f0a5f | 21022 | |
8284b0c5 | 21023 | |
a0b9e27f | 21024 | cat >> confdefs.h <<\EOF |
b64f0a5f | 21025 | #define wxUSE_ENH_METAFILE 1 |
a0b9e27f | 21026 | EOF |
b64f0a5f | 21027 | |
2b9bdf71 VZ |
21028 | fi |
21029 | fi | |
21030 | ||
21031 | if test "$wxUSE_IPC" = "yes"; then | |
21032 | if test "$wxUSE_SOCKETS" != "yes"; then | |
a0b9e27f | 21033 | echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2 |
2b9bdf71 VZ |
21034 | fi |
21035 | ||
a0b9e27f | 21036 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21037 | #define wxUSE_IPC 1 |
a0b9e27f | 21038 | EOF |
2b9bdf71 VZ |
21039 | |
21040 | fi | |
21041 | ||
21042 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 21043 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21044 | echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21045 | wxUSE_CLIPBOARD=no |
21046 | fi | |
21047 | ||
21048 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
a0b9e27f | 21049 | cat >> confdefs.h <<\EOF |
2b9bdf71 | 21050 | #define wxUSE_CLIPBOARD 1 |
a0b9e27f | 21051 | EOF |
2b9bdf71 | 21052 | |
8284b0c5 | 21053 | |
a0b9e27f | 21054 | cat >> confdefs.h <<\EOF |
673f4220 | 21055 | #define wxUSE_DATAOBJ 1 |
a0b9e27f | 21056 | EOF |
673f4220 | 21057 | |
6c657b52 | 21058 | fi |
2b9bdf71 VZ |
21059 | fi |
21060 | ||
21061 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
21062 | if test "$wxUSE_GTK" = 1; then | |
21063 | if test "$WXGTK12" != 1; then | |
a0b9e27f | 21064 | echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2 |
10f2d63a VZ |
21065 | wxUSE_DRAG_AND_DROP=no |
21066 | fi | |
21067 | fi | |
21068 | ||
2b9bdf71 | 21069 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21070 | echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2 |
2b9bdf71 VZ |
21071 | wxUSE_DRAG_AND_DROP=no |
21072 | fi | |
21073 | ||
f79bd02d | 21074 | if test "$wxUSE_X11" = 1; then |
a0b9e27f | 21075 | echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2 |
f79bd02d JS |
21076 | wxUSE_DRAG_AND_DROP=no |
21077 | fi | |
21078 | ||
6c657b52 | 21079 | if test "$wxUSE_MGL" = 1; then |
a0b9e27f | 21080 | echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2 |
6c657b52 VS |
21081 | wxUSE_DRAG_AND_DROP=no |
21082 | fi | |
21083 | ||
10f2d63a | 21084 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
a0b9e27f | 21085 | cat >> confdefs.h <<\EOF |
10f2d63a | 21086 | #define wxUSE_DRAG_AND_DROP 1 |
a0b9e27f | 21087 | EOF |
10f2d63a VZ |
21088 | |
21089 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
21090 | fi | |
21091 | ||
21092 | fi | |
21093 | ||
21094 | if test "$wxUSE_SPLINES" = "yes" ; then | |
a0b9e27f | 21095 | cat >> confdefs.h <<\EOF |
10f2d63a | 21096 | #define wxUSE_SPLINES 1 |
a0b9e27f | 21097 | EOF |
10f2d63a VZ |
21098 | |
21099 | fi | |
21100 | ||
8284b0c5 | 21101 | |
1e6feb95 VZ |
21102 | USES_CONTROLS=0 |
21103 | if test "$wxUSE_CONTROLS" = "yes"; then | |
21104 | USES_CONTROLS=1 | |
21105 | fi | |
21106 | ||
10f2d63a | 21107 | if test "$wxUSE_ACCEL" = "yes"; then |
a0b9e27f | 21108 | cat >> confdefs.h <<\EOF |
10f2d63a | 21109 | #define wxUSE_ACCEL 1 |
a0b9e27f | 21110 | EOF |
10f2d63a | 21111 | |
1e6feb95 VZ |
21112 | USES_CONTROLS=1 |
21113 | fi | |
21114 | ||
21115 | if test "$wxUSE_BUTTON" = "yes"; then | |
a0b9e27f | 21116 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21117 | #define wxUSE_BUTTON 1 |
a0b9e27f | 21118 | EOF |
1e6feb95 VZ |
21119 | |
21120 | USES_CONTROLS=1 | |
21121 | fi | |
21122 | ||
21123 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
a0b9e27f | 21124 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21125 | #define wxUSE_BMPBUTTON 1 |
a0b9e27f | 21126 | EOF |
1e6feb95 VZ |
21127 | |
21128 | USES_CONTROLS=1 | |
21129 | fi | |
21130 | ||
21131 | if test "$wxUSE_CALCTRL" = "yes"; then | |
a0b9e27f | 21132 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21133 | #define wxUSE_CALENDARCTRL 1 |
a0b9e27f | 21134 | EOF |
1e6feb95 VZ |
21135 | |
21136 | USES_CONTROLS=1 | |
21137 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
21138 | fi |
21139 | ||
21140 | if test "$wxUSE_CARET" = "yes"; then | |
a0b9e27f | 21141 | cat >> confdefs.h <<\EOF |
10f2d63a | 21142 | #define wxUSE_CARET 1 |
a0b9e27f | 21143 | EOF |
10f2d63a | 21144 | |
1e6feb95 | 21145 | USES_CONTROLS=1 |
10f2d63a VZ |
21146 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
21147 | fi | |
21148 | ||
21149 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
a0b9e27f | 21150 | cat >> confdefs.h <<\EOF |
10f2d63a | 21151 | #define wxUSE_COMBOBOX 1 |
a0b9e27f | 21152 | EOF |
10f2d63a | 21153 | |
1e6feb95 | 21154 | USES_CONTROLS=1 |
10f2d63a VZ |
21155 | fi |
21156 | ||
21157 | if test "$wxUSE_CHOICE" = "yes"; then | |
a0b9e27f | 21158 | cat >> confdefs.h <<\EOF |
10f2d63a | 21159 | #define wxUSE_CHOICE 1 |
a0b9e27f | 21160 | EOF |
10f2d63a | 21161 | |
1e6feb95 | 21162 | USES_CONTROLS=1 |
10f2d63a VZ |
21163 | fi |
21164 | ||
21165 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
a0b9e27f | 21166 | cat >> confdefs.h <<\EOF |
10f2d63a | 21167 | #define wxUSE_CHECKBOX 1 |
a0b9e27f | 21168 | EOF |
10f2d63a | 21169 | |
1e6feb95 | 21170 | USES_CONTROLS=1 |
10f2d63a VZ |
21171 | fi |
21172 | ||
21173 | if test "$wxUSE_CHECKLST" = "yes"; then | |
a0b9e27f | 21174 | cat >> confdefs.h <<\EOF |
10f2d63a | 21175 | #define wxUSE_CHECKLISTBOX 1 |
a0b9e27f | 21176 | EOF |
10f2d63a | 21177 | |
1e6feb95 | 21178 | USES_CONTROLS=1 |
10f2d63a VZ |
21179 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
21180 | fi | |
21181 | ||
21182 | if test "$wxUSE_GAUGE" = "yes"; then | |
a0b9e27f | 21183 | cat >> confdefs.h <<\EOF |
10f2d63a | 21184 | #define wxUSE_GAUGE 1 |
a0b9e27f | 21185 | EOF |
10f2d63a | 21186 | |
1e6feb95 | 21187 | USES_CONTROLS=1 |
10f2d63a VZ |
21188 | fi |
21189 | ||
d6a55c4b VZ |
21190 | if test "$wxUSE_NEW_GRID" = "yes"; then |
21191 | wxUSE_GRID="yes" | |
a0b9e27f | 21192 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21193 | #define wxUSE_NEW_GRID 1 |
a0b9e27f | 21194 | EOF |
10f2d63a | 21195 | |
1e6feb95 | 21196 | USES_CONTROLS=1 |
d6a55c4b | 21197 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid" |
10f2d63a VZ |
21198 | fi |
21199 | ||
d6a55c4b | 21200 | if test "$wxUSE_GRID" = "yes"; then |
a0b9e27f | 21201 | cat >> confdefs.h <<\EOF |
d6a55c4b | 21202 | #define wxUSE_GRID 1 |
a0b9e27f | 21203 | EOF |
10f2d63a | 21204 | |
1e6feb95 | 21205 | USES_CONTROLS=1 |
d6a55c4b | 21206 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
21207 | fi |
21208 | ||
21209 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21210 | cat >> confdefs.h <<\EOF |
10f2d63a | 21211 | #define wxUSE_IMAGLIST 1 |
a0b9e27f | 21212 | EOF |
10f2d63a VZ |
21213 | |
21214 | fi | |
21215 | ||
21216 | if test "$wxUSE_LISTBOX" = "yes"; then | |
a0b9e27f | 21217 | cat >> confdefs.h <<\EOF |
10f2d63a | 21218 | #define wxUSE_LISTBOX 1 |
a0b9e27f | 21219 | EOF |
10f2d63a | 21220 | |
1e6feb95 | 21221 | USES_CONTROLS=1 |
10f2d63a VZ |
21222 | fi |
21223 | ||
21224 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
21225 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21226 | cat >> confdefs.h <<\EOF |
10f2d63a | 21227 | #define wxUSE_LISTCTRL 1 |
a0b9e27f | 21228 | EOF |
10f2d63a | 21229 | |
1e6feb95 | 21230 | USES_CONTROLS=1 |
10f2d63a VZ |
21231 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
21232 | else | |
a0b9e27f | 21233 | echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21234 | fi |
21235 | fi | |
21236 | ||
21237 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
a0b9e27f | 21238 | cat >> confdefs.h <<\EOF |
10f2d63a | 21239 | #define wxUSE_NOTEBOOK 1 |
a0b9e27f | 21240 | EOF |
10f2d63a | 21241 | |
1e6feb95 | 21242 | USES_CONTROLS=1 |
10f2d63a VZ |
21243 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
21244 | fi | |
21245 | ||
24176f2c | 21246 | if test "$wxUSE_PROPSHEET" = "yes"; then |
a0b9e27f | 21247 | cat >> confdefs.h <<\EOF |
24176f2c | 21248 | #define wxUSE_PROPSHEET 1 |
a0b9e27f | 21249 | EOF |
24176f2c GD |
21250 | |
21251 | USES_CONTROLS=1 | |
21252 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist" | |
21253 | fi | |
21254 | ||
10f2d63a | 21255 | if test "$wxUSE_RADIOBOX" = "yes"; then |
a0b9e27f | 21256 | cat >> confdefs.h <<\EOF |
10f2d63a | 21257 | #define wxUSE_RADIOBOX 1 |
a0b9e27f | 21258 | EOF |
10f2d63a | 21259 | |
1e6feb95 | 21260 | USES_CONTROLS=1 |
10f2d63a VZ |
21261 | fi |
21262 | ||
21263 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
a0b9e27f | 21264 | cat >> confdefs.h <<\EOF |
10f2d63a | 21265 | #define wxUSE_RADIOBTN 1 |
a0b9e27f | 21266 | EOF |
10f2d63a | 21267 | |
1e6feb95 | 21268 | USES_CONTROLS=1 |
10f2d63a VZ |
21269 | fi |
21270 | ||
21271 | if test "$wxUSE_SASH" = "yes"; then | |
a0b9e27f | 21272 | cat >> confdefs.h <<\EOF |
10f2d63a | 21273 | #define wxUSE_SASH 1 |
a0b9e27f | 21274 | EOF |
10f2d63a VZ |
21275 | |
21276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
21277 | fi | |
21278 | ||
21279 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
a0b9e27f | 21280 | cat >> confdefs.h <<\EOF |
10f2d63a | 21281 | #define wxUSE_SCROLLBAR 1 |
a0b9e27f | 21282 | EOF |
10f2d63a | 21283 | |
1e6feb95 | 21284 | USES_CONTROLS=1 |
741a9306 | 21285 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
21286 | fi |
21287 | ||
21288 | if test "$wxUSE_SLIDER" = "yes"; then | |
a0b9e27f | 21289 | cat >> confdefs.h <<\EOF |
10f2d63a | 21290 | #define wxUSE_SLIDER 1 |
a0b9e27f | 21291 | EOF |
10f2d63a | 21292 | |
1e6feb95 | 21293 | USES_CONTROLS=1 |
10f2d63a VZ |
21294 | fi |
21295 | ||
21296 | if test "$wxUSE_SPINBTN" = "yes"; then | |
a0b9e27f | 21297 | cat >> confdefs.h <<\EOF |
10f2d63a | 21298 | #define wxUSE_SPINBTN 1 |
a0b9e27f | 21299 | EOF |
10f2d63a | 21300 | |
1e6feb95 | 21301 | USES_CONTROLS=1 |
10f2d63a VZ |
21302 | fi |
21303 | ||
56cfaa52 | 21304 | if test "$wxUSE_SPINCTRL" = "yes"; then |
a0b9e27f | 21305 | cat >> confdefs.h <<\EOF |
56cfaa52 | 21306 | #define wxUSE_SPINCTRL 1 |
a0b9e27f | 21307 | EOF |
56cfaa52 | 21308 | |
1e6feb95 | 21309 | USES_CONTROLS=1 |
56cfaa52 RR |
21310 | fi |
21311 | ||
10f2d63a | 21312 | if test "$wxUSE_SPLITTER" = "yes"; then |
a0b9e27f | 21313 | cat >> confdefs.h <<\EOF |
10f2d63a | 21314 | #define wxUSE_SPLITTER 1 |
a0b9e27f | 21315 | EOF |
10f2d63a VZ |
21316 | |
21317 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
21318 | fi | |
21319 | ||
21320 | if test "$wxUSE_STATBMP" = "yes"; then | |
a0b9e27f | 21321 | cat >> confdefs.h <<\EOF |
10f2d63a | 21322 | #define wxUSE_STATBMP 1 |
a0b9e27f | 21323 | EOF |
10f2d63a | 21324 | |
1e6feb95 | 21325 | USES_CONTROLS=1 |
10f2d63a VZ |
21326 | fi |
21327 | ||
21328 | if test "$wxUSE_STATBOX" = "yes"; then | |
a0b9e27f | 21329 | cat >> confdefs.h <<\EOF |
10f2d63a | 21330 | #define wxUSE_STATBOX 1 |
a0b9e27f | 21331 | EOF |
10f2d63a | 21332 | |
1e6feb95 VZ |
21333 | USES_CONTROLS=1 |
21334 | fi | |
21335 | ||
21336 | if test "$wxUSE_STATTEXT" = "yes"; then | |
a0b9e27f | 21337 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21338 | #define wxUSE_STATTEXT 1 |
a0b9e27f | 21339 | EOF |
1e6feb95 VZ |
21340 | |
21341 | USES_CONTROLS=1 | |
10f2d63a VZ |
21342 | fi |
21343 | ||
21344 | if test "$wxUSE_STATLINE" = "yes"; then | |
21345 | if test "$wxUSE_WINE" = 1 ; then | |
a0b9e27f | 21346 | echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2 |
10f2d63a | 21347 | else |
a0b9e27f | 21348 | cat >> confdefs.h <<\EOF |
10f2d63a | 21349 | #define wxUSE_STATLINE 1 |
a0b9e27f | 21350 | EOF |
10f2d63a | 21351 | |
1e6feb95 | 21352 | USES_CONTROLS=1 |
10f2d63a VZ |
21353 | fi |
21354 | fi | |
21355 | ||
21356 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
a0b9e27f | 21357 | cat >> confdefs.h <<\EOF |
10f2d63a | 21358 | #define wxUSE_STATUSBAR 1 |
a0b9e27f | 21359 | EOF |
10f2d63a | 21360 | |
1e6feb95 | 21361 | USES_CONTROLS=1 |
698dcdb6 | 21362 | |
2286341c | 21363 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
21364 | fi |
21365 | ||
21366 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
a0b9e27f | 21367 | cat >> confdefs.h <<\EOF |
10f2d63a | 21368 | #define wxUSE_TAB_DIALOG 1 |
a0b9e27f | 21369 | EOF |
10f2d63a VZ |
21370 | |
21371 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
21372 | fi | |
21373 | ||
1e6feb95 | 21374 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
a0b9e27f | 21375 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21376 | #define wxUSE_TEXTCTRL 1 |
a0b9e27f | 21377 | EOF |
1e6feb95 VZ |
21378 | |
21379 | USES_CONTROLS=1 | |
21380 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
21381 | fi | |
21382 | ||
1db8dc4a | 21383 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
156b2523 | 21384 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21385 | echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2 |
156b2523 GD |
21386 | wxUSE_TOGGLEBTN=no |
21387 | fi | |
21388 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
a0b9e27f | 21389 | echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2 |
a45d7ab7 GD |
21390 | wxUSE_TOGGLEBTN=no |
21391 | fi | |
21392 | ||
21393 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
a0b9e27f | 21394 | cat >> confdefs.h <<\EOF |
1db8dc4a | 21395 | #define wxUSE_TOGGLEBTN 1 |
a0b9e27f | 21396 | EOF |
1db8dc4a | 21397 | |
1e6feb95 | 21398 | USES_CONTROLS=1 |
a45d7ab7 | 21399 | fi |
1db8dc4a VZ |
21400 | fi |
21401 | ||
360d6699 | 21402 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
a0b9e27f | 21403 | cat >> confdefs.h <<\EOF |
360d6699 | 21404 | #define wxUSE_TOOLBAR_SIMPLE 1 |
a0b9e27f | 21405 | EOF |
360d6699 VZ |
21406 | |
21407 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 21408 | USES_CONTROLS=1 |
360d6699 VZ |
21409 | fi |
21410 | ||
10f2d63a | 21411 | if test "$wxUSE_TOOLBAR" = "yes"; then |
a0b9e27f | 21412 | cat >> confdefs.h <<\EOF |
10f2d63a | 21413 | #define wxUSE_TOOLBAR 1 |
a0b9e27f | 21414 | EOF |
10f2d63a | 21415 | |
1e6feb95 | 21416 | USES_CONTROLS=1 |
698dcdb6 | 21417 | |
360d6699 VZ |
21418 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
21419 | wxUSE_TOOLBAR_NATIVE="yes" | |
21420 | fi | |
21421 | ||
1e6feb95 | 21422 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
a0b9e27f | 21423 | cat >> confdefs.h <<\EOF |
360d6699 | 21424 | #define wxUSE_TOOLBAR_NATIVE 1 |
a0b9e27f | 21425 | EOF |
360d6699 | 21426 | |
1e6feb95 VZ |
21427 | USES_CONTROLS=1 |
21428 | fi | |
21429 | ||
21430 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
21431 | fi |
21432 | ||
10f2d63a VZ |
21433 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
21434 | if test "$wxUSE_MOTIF" = 1; then | |
a0b9e27f | 21435 | echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2 |
10f2d63a VZ |
21436 | else |
21437 | if test "$wxUSE_WINE" = 1; then | |
a0b9e27f | 21438 | echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2 |
10f2d63a | 21439 | else |
69d27ff7 | 21440 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a0b9e27f | 21441 | echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2 |
69d27ff7 | 21442 | else |
a0b9e27f | 21443 | cat >> confdefs.h <<\EOF |
10f2d63a | 21444 | #define wxUSE_TOOLTIPS 1 |
a0b9e27f | 21445 | EOF |
10f2d63a | 21446 | |
69d27ff7 | 21447 | fi |
10f2d63a VZ |
21448 | fi |
21449 | fi | |
21450 | fi | |
21451 | ||
21452 | if test "$wxUSE_TREECTRL" = "yes"; then | |
21453 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
a0b9e27f | 21454 | cat >> confdefs.h <<\EOF |
10f2d63a | 21455 | #define wxUSE_TREECTRL 1 |
a0b9e27f | 21456 | EOF |
10f2d63a | 21457 | |
1e6feb95 | 21458 | USES_CONTROLS=1 |
10f2d63a VZ |
21459 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
21460 | else | |
a0b9e27f | 21461 | echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2 |
10f2d63a VZ |
21462 | fi |
21463 | fi | |
21464 | ||
9f41d601 | 21465 | if test "$wxUSE_POPUPWIN" = "yes"; then |
6abe4b65 | 21466 | if test "$wxUSE_MAC" = 1; then |
a0b9e27f | 21467 | echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2 |
6abe4b65 | 21468 | else |
485cf710 | 21469 | if test "$wxUSE_MOTIF" = 1; then |
a0b9e27f | 21470 | echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2 |
485cf710 | 21471 | else |
3c011993 | 21472 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21473 | echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21474 | else |
a0b9e27f | 21475 | cat >> confdefs.h <<\EOF |
9f41d601 | 21476 | #define wxUSE_POPUPWIN 1 |
a0b9e27f | 21477 | EOF |
9f41d601 | 21478 | |
8284b0c5 | 21479 | |
3c011993 VZ |
21480 | USES_CONTROLS=1 |
21481 | fi | |
485cf710 | 21482 | fi |
6abe4b65 | 21483 | fi |
9f41d601 RR |
21484 | fi |
21485 | ||
dd964dcc | 21486 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 21487 | if test "$wxUSE_PM" = 1; then |
a0b9e27f | 21488 | echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2 |
3bd8fb5f | 21489 | else |
a0b9e27f | 21490 | cat >> confdefs.h <<\EOF |
dd964dcc | 21491 | #define wxUSE_TIPWINDOW 1 |
a0b9e27f | 21492 | EOF |
dd964dcc | 21493 | |
3c011993 | 21494 | fi |
dd964dcc VZ |
21495 | fi |
21496 | ||
1e6feb95 | 21497 | if test "$USES_CONTROLS" = 1; then |
a0b9e27f | 21498 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21499 | #define wxUSE_CONTROLS 1 |
a0b9e27f | 21500 | EOF |
10f2d63a | 21501 | |
10f2d63a VZ |
21502 | fi |
21503 | ||
8284b0c5 | 21504 | |
24176f2c | 21505 | if test "$wxUSE_TREELAYOUT" = "yes"; then |
a0b9e27f | 21506 | cat >> confdefs.h <<\EOF |
24176f2c | 21507 | #define wxUSE_TREELAYOUT 1 |
a0b9e27f | 21508 | EOF |
24176f2c GD |
21509 | |
21510 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay" | |
21511 | fi | |
1e6feb95 | 21512 | |
24fd6d87 | 21513 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
a0b9e27f | 21514 | cat >> confdefs.h <<\EOF |
24fd6d87 | 21515 | #define wxUSE_DRAGIMAGE 1 |
a0b9e27f | 21516 | EOF |
24fd6d87 VZ |
21517 | |
21518 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
21519 | fi | |
21520 | ||
1e6feb95 | 21521 | if test "$wxUSE_MENUS" = "yes"; then |
a0b9e27f | 21522 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21523 | #define wxUSE_MENUS 1 |
a0b9e27f | 21524 | EOF |
10f2d63a | 21525 | |
1e6feb95 | 21526 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
21527 | fi |
21528 | ||
1e6feb95 | 21529 | if test "$wxUSE_METAFILE" = "yes"; then |
a0b9e27f | 21530 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21531 | #define wxUSE_METAFILE 1 |
a0b9e27f | 21532 | EOF |
10f2d63a | 21533 | |
10f2d63a VZ |
21534 | fi |
21535 | ||
1e6feb95 | 21536 | if test "$wxUSE_MIMETYPE" = "yes"; then |
a0b9e27f | 21537 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21538 | #define wxUSE_MIMETYPE 1 |
a0b9e27f | 21539 | EOF |
10f2d63a | 21540 | |
10f2d63a VZ |
21541 | fi |
21542 | ||
3e44f09d | 21543 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
a0b9e27f | 21544 | cat >> confdefs.h <<\EOF |
3e44f09d | 21545 | #define wxUSE_SYSTEM_OPTIONS 1 |
a0b9e27f | 21546 | EOF |
3e44f09d | 21547 | |
321d2b14 VZ |
21548 | if test "$TOOLKIT" = "MSW"; then |
21549 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
21550 | fi | |
21551 | ||
3e44f09d VZ |
21552 | fi |
21553 | ||
4cdb0ab0 | 21554 | if test "$wxUSE_PROTOCOL" = "yes"; then |
3954f9ca | 21555 | if test "$wxUSE_SOCKETS" != "yes"; then |
a0b9e27f | 21556 | echo "configure: warning: Protocol classes require sockets... disabled" 1>&2 |
3954f9ca VS |
21557 | wxUSE_PROTOCOL=no |
21558 | fi | |
21559 | ||
21560 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
a0b9e27f | 21561 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21562 | #define wxUSE_PROTOCOL 1 |
a0b9e27f | 21563 | EOF |
4cdb0ab0 | 21564 | |
8284b0c5 | 21565 | |
3954f9ca | 21566 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then |
a0b9e27f | 21567 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21568 | #define wxUSE_PROTOCOL_HTTP 1 |
a0b9e27f | 21569 | EOF |
4cdb0ab0 | 21570 | |
3954f9ca VS |
21571 | fi |
21572 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
a0b9e27f | 21573 | cat >> confdefs.h <<\EOF |
4cdb0ab0 | 21574 | #define wxUSE_PROTOCOL_FTP 1 |
a0b9e27f | 21575 | EOF |
4cdb0ab0 | 21576 | |
3954f9ca VS |
21577 | fi |
21578 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
a0b9e27f | 21579 | cat >> confdefs.h <<\EOF |
3954f9ca | 21580 | #define wxUSE_PROTOCOL_FILE 1 |
a0b9e27f | 21581 | EOF |
3954f9ca VS |
21582 | |
21583 | fi | |
4cdb0ab0 | 21584 | fi |
3954f9ca VS |
21585 | fi |
21586 | ||
21587 | if test "$wxUSE_URL" = "yes"; then | |
21588 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
a0b9e27f | 21589 | echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2 |
3954f9ca VS |
21590 | wxUSE_URL=no |
21591 | fi | |
21592 | if test "$wxUSE_URL" = "yes"; then | |
a0b9e27f | 21593 | cat >> confdefs.h <<\EOF |
3954f9ca | 21594 | #define wxUSE_URL 1 |
a0b9e27f | 21595 | EOF |
4cdb0ab0 VS |
21596 | |
21597 | fi | |
21598 | fi | |
21599 | ||
10f2d63a | 21600 | if test "$wxUSE_MINIFRAME" = "yes"; then |
a0b9e27f | 21601 | cat >> confdefs.h <<\EOF |
10f2d63a | 21602 | #define wxUSE_MINIFRAME 1 |
a0b9e27f | 21603 | EOF |
10f2d63a VZ |
21604 | |
21605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
21606 | fi | |
21607 | ||
21608 | if test "$wxUSE_HTML" = "yes"; then | |
a0b9e27f | 21609 | cat >> confdefs.h <<\EOF |
10f2d63a | 21610 | #define wxUSE_HTML 1 |
a0b9e27f | 21611 | EOF |
10f2d63a VZ |
21612 | |
21613 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html" | |
10f2d63a VZ |
21614 | fi |
21615 | ||
21616 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
a0b9e27f | 21617 | cat >> confdefs.h <<\EOF |
1e487827 | 21618 | #define wxUSE_VALIDATORS 1 |
a0b9e27f | 21619 | EOF |
703e0a69 | 21620 | |
698dcdb6 VZ |
21621 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
21622 | fi | |
21623 | ||
edae8572 | 21624 | if test "$wxUSE_PALETTE" = "yes" ; then |
a0b9e27f | 21625 | cat >> confdefs.h <<\EOF |
edae8572 | 21626 | #define wxUSE_PALETTE 1 |
a0b9e27f | 21627 | EOF |
edae8572 VZ |
21628 | |
21629 | fi | |
21630 | ||
698dcdb6 | 21631 | if test "$wxUSE_IMAGE" = "yes" ; then |
a0b9e27f | 21632 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21633 | #define wxUSE_IMAGE 1 |
a0b9e27f | 21634 | EOF |
698dcdb6 VZ |
21635 | |
21636 | fi | |
21637 | ||
21638 | if test "$wxUSE_GIF" = "yes" ; then | |
a0b9e27f | 21639 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21640 | #define wxUSE_GIF 1 |
a0b9e27f | 21641 | EOF |
698dcdb6 VZ |
21642 | |
21643 | fi | |
21644 | ||
21645 | if test "$wxUSE_PCX" = "yes" ; then | |
a0b9e27f | 21646 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21647 | #define wxUSE_PCX 1 |
a0b9e27f | 21648 | EOF |
698dcdb6 VZ |
21649 | |
21650 | fi | |
21651 | ||
4b6b4dfc | 21652 | if test "$wxUSE_IFF" = "yes" ; then |
a0b9e27f | 21653 | cat >> confdefs.h <<\EOF |
4b6b4dfc | 21654 | #define wxUSE_IFF 1 |
a0b9e27f | 21655 | EOF |
4b6b4dfc RR |
21656 | |
21657 | fi | |
21658 | ||
698dcdb6 | 21659 | if test "$wxUSE_PNM" = "yes" ; then |
a0b9e27f | 21660 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21661 | #define wxUSE_PNM 1 |
a0b9e27f | 21662 | EOF |
698dcdb6 VZ |
21663 | |
21664 | fi | |
21665 | ||
21666 | if test "$wxUSE_XPM" = "yes" ; then | |
a0b9e27f | 21667 | cat >> confdefs.h <<\EOF |
698dcdb6 | 21668 | #define wxUSE_XPM 1 |
a0b9e27f | 21669 | EOF |
698dcdb6 VZ |
21670 | |
21671 | fi | |
21672 | ||
658974ae | 21673 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
a0b9e27f | 21674 | cat >> confdefs.h <<\EOF |
658974ae | 21675 | #define wxUSE_ICO_CUR 1 |
a0b9e27f | 21676 | EOF |
658974ae VS |
21677 | |
21678 | fi | |
21679 | ||
a72a4bfa VS |
21680 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
21681 | LIBS=" -lunicows $LIBS" | |
21682 | fi | |
21683 | ||
8284b0c5 | 21684 | |
1e6feb95 | 21685 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
a0b9e27f | 21686 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21687 | #define wxUSE_CHOICEDLG 1 |
a0b9e27f | 21688 | EOF |
1e6feb95 VZ |
21689 | |
21690 | fi | |
21691 | ||
21692 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
a0b9e27f | 21693 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21694 | #define wxUSE_COLOURDLG 1 |
a0b9e27f | 21695 | EOF |
1e6feb95 VZ |
21696 | |
21697 | fi | |
21698 | ||
21699 | if test "$wxUSE_FILEDLG" = "yes"; then | |
a0b9e27f | 21700 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21701 | #define wxUSE_FILEDLG 1 |
a0b9e27f | 21702 | EOF |
1e6feb95 VZ |
21703 | |
21704 | fi | |
21705 | ||
8db37e06 | 21706 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
a0b9e27f | 21707 | cat >> confdefs.h <<\EOF |
8db37e06 | 21708 | #define wxUSE_FINDREPLDLG 1 |
a0b9e27f | 21709 | EOF |
8db37e06 VZ |
21710 | |
21711 | fi | |
21712 | ||
1e6feb95 | 21713 | if test "$wxUSE_FONTDLG" = "yes"; then |
a0b9e27f | 21714 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21715 | #define wxUSE_FONTDLG 1 |
a0b9e27f | 21716 | EOF |
1e6feb95 VZ |
21717 | |
21718 | fi | |
21719 | ||
21720 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 21721 | if test "$wxUSE_TREECTRL" != "yes"; then |
a0b9e27f | 21722 | echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2 |
1e6feb95 | 21723 | else |
a0b9e27f | 21724 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21725 | #define wxUSE_DIRDLG 1 |
a0b9e27f | 21726 | EOF |
1e6feb95 | 21727 | |
1e6feb95 VZ |
21728 | fi |
21729 | fi | |
21730 | ||
21731 | if test "$wxUSE_MSGDLG" = "yes"; then | |
a0b9e27f | 21732 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21733 | #define wxUSE_MSGDLG 1 |
a0b9e27f | 21734 | EOF |
1e6feb95 VZ |
21735 | |
21736 | fi | |
21737 | ||
21738 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
a0b9e27f | 21739 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21740 | #define wxUSE_NUMBERDLG 1 |
a0b9e27f | 21741 | EOF |
1e6feb95 VZ |
21742 | |
21743 | fi | |
21744 | ||
21745 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
21746 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21747 | echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2 |
1e6feb95 | 21748 | else |
a0b9e27f | 21749 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21750 | #define wxUSE_PROGRESSDLG 1 |
a0b9e27f | 21751 | EOF |
1e6feb95 VZ |
21752 | |
21753 | fi | |
21754 | fi | |
21755 | ||
cbca9943 | 21756 | if test "$wxUSE_SPLASH" = "yes"; then |
a0b9e27f | 21757 | cat >> confdefs.h <<\EOF |
cbca9943 | 21758 | #define wxUSE_SPLASH 1 |
a0b9e27f | 21759 | EOF |
cbca9943 VZ |
21760 | |
21761 | fi | |
21762 | ||
1e6feb95 VZ |
21763 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
21764 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
a0b9e27f | 21765 | echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2 |
1e6feb95 | 21766 | else |
a0b9e27f | 21767 | cat >> confdefs.h <<\EOF |
1e6feb95 | 21768 | #define wxUSE_STARTUP_TIPS 1 |
a0b9e27f | 21769 | EOF |
1e6feb95 | 21770 | |
7b4a847f RR |
21771 | fi |
21772 | fi | |
579d8138 | 21773 | |
8284b0c5 | 21774 | if test "$wxUSE_TEXTDLG" = "yes"; then |
a0b9e27f | 21775 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21776 | #define wxUSE_TEXTDLG 1 |
a0b9e27f | 21777 | EOF |
8284b0c5 MB |
21778 | |
21779 | fi | |
21780 | ||
21781 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
a0b9e27f | 21782 | cat >> confdefs.h <<\EOF |
8284b0c5 | 21783 | #define wxUSE_WIZARDDLG 1 |
a0b9e27f | 21784 | EOF |
8284b0c5 MB |
21785 | |
21786 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
21787 | fi | |
21788 | ||
21789 | ||
21790 | if test "$cross_compiling" = "yes"; then | |
21791 | OSINFO="\"$host\"" | |
21792 | else | |
21793 | OSINFO=`uname -s -r -m` | |
21794 | OSINFO="\"$OSINFO\"" | |
21795 | fi | |
21796 | ||
a0b9e27f | 21797 | cat >> confdefs.h <<EOF |
8284b0c5 | 21798 | #define WXWIN_OS_DESCRIPTION $OSINFO |
a0b9e27f | 21799 | EOF |
8284b0c5 MB |
21800 | |
21801 | ||
21802 | ||
21803 | if test "x$prefix" != "xNONE"; then | |
21804 | wxPREFIX=$prefix | |
21805 | else | |
21806 | wxPREFIX=$ac_default_prefix | |
21807 | fi | |
21808 | ||
a0b9e27f | 21809 | cat >> confdefs.h <<EOF |
8284b0c5 | 21810 | #define wxINSTALL_PREFIX "$wxPREFIX" |
a0b9e27f | 21811 | EOF |
8284b0c5 MB |
21812 | |
21813 | ||
21814 | ||
21815 | ||
21816 | ||
21817 | if test "$wxUSE_MAC" = 1 ; then | |
21818 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
21819 | fi | |
21820 | ||
21821 | ||
2b5f62a0 VZ |
21822 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
21823 | ||
21824 | have_cos=0 | |
21825 | have_floor=0 | |
21826 | for ac_func in cos | |
21827 | do | |
21828 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
34bed6d9 | 21829 | echo "configure:21830: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21830 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21831 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21832 | else | |
21833 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 21834 | #line 21835 "configure" |
2b5f62a0 VZ |
21835 | #include "confdefs.h" |
21836 | /* System header to define __stub macros and hopefully few prototypes, | |
21837 | which can conflict with char $ac_func(); below. */ | |
21838 | #include <assert.h> | |
21839 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21840 | /* We use char because int might match the return type of a gcc2 | |
21841 | builtin and then its argument prototype would still apply. */ | |
21842 | char $ac_func(); | |
21843 | ||
21844 | int main() { | |
21845 | ||
21846 | /* The GNU C library defines this for functions which it implements | |
21847 | to always fail with ENOSYS. Some functions are actually named | |
21848 | something starting with __ and the normal name is an alias. */ | |
21849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21850 | choke me | |
21851 | #else | |
21852 | $ac_func(); | |
21853 | #endif | |
21854 | ||
21855 | ; return 0; } | |
21856 | EOF | |
34bed6d9 | 21857 | if { (eval echo configure:21858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21858 | rm -rf conftest* |
21859 | eval "ac_cv_func_$ac_func=yes" | |
21860 | else | |
21861 | echo "configure: failed program was:" >&5 | |
21862 | cat conftest.$ac_ext >&5 | |
21863 | rm -rf conftest* | |
21864 | eval "ac_cv_func_$ac_func=no" | |
21865 | fi | |
21866 | rm -f conftest* | |
21867 | fi | |
21868 | ||
21869 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21870 | echo "$ac_t""yes" 1>&6 | |
21871 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21872 | cat >> confdefs.h <<EOF | |
21873 | #define $ac_tr_func 1 | |
21874 | EOF | |
21875 | have_cos=1 | |
21876 | else | |
21877 | echo "$ac_t""no" 1>&6 | |
21878 | fi | |
21879 | done | |
21880 | ||
21881 | for ac_func in floor | |
21882 | do | |
21883 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
34bed6d9 | 21884 | echo "configure:21885: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21885 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21886 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21887 | else | |
21888 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 21889 | #line 21890 "configure" |
2b5f62a0 VZ |
21890 | #include "confdefs.h" |
21891 | /* System header to define __stub macros and hopefully few prototypes, | |
21892 | which can conflict with char $ac_func(); below. */ | |
21893 | #include <assert.h> | |
21894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21895 | /* We use char because int might match the return type of a gcc2 | |
21896 | builtin and then its argument prototype would still apply. */ | |
21897 | char $ac_func(); | |
21898 | ||
21899 | int main() { | |
21900 | ||
21901 | /* The GNU C library defines this for functions which it implements | |
21902 | to always fail with ENOSYS. Some functions are actually named | |
21903 | something starting with __ and the normal name is an alias. */ | |
21904 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21905 | choke me | |
21906 | #else | |
21907 | $ac_func(); | |
21908 | #endif | |
21909 | ||
21910 | ; return 0; } | |
21911 | EOF | |
34bed6d9 | 21912 | if { (eval echo configure:21913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21913 | rm -rf conftest* |
21914 | eval "ac_cv_func_$ac_func=yes" | |
21915 | else | |
21916 | echo "configure: failed program was:" >&5 | |
21917 | cat conftest.$ac_ext >&5 | |
21918 | rm -rf conftest* | |
21919 | eval "ac_cv_func_$ac_func=no" | |
21920 | fi | |
21921 | rm -f conftest* | |
21922 | fi | |
21923 | ||
21924 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21925 | echo "$ac_t""yes" 1>&6 | |
21926 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21927 | cat >> confdefs.h <<EOF | |
21928 | #define $ac_tr_func 1 | |
21929 | EOF | |
21930 | have_floor=1 | |
21931 | else | |
21932 | echo "$ac_t""no" 1>&6 | |
21933 | fi | |
21934 | done | |
21935 | ||
21936 | echo $ac_n "checking if floating point functions link without -lm""... $ac_c" 1>&6 | |
34bed6d9 | 21937 | echo "configure:21938: checking if floating point functions link without -lm" >&5 |
2b5f62a0 VZ |
21938 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
21939 | echo "$ac_t""yes" 1>&6 | |
21940 | else | |
21941 | echo "$ac_t""no" 1>&6 | |
21942 | LIBS="$LIBS -lm" | |
21943 | # use different functions to avoid configure caching | |
21944 | have_sin=0 | |
21945 | have_ceil=0 | |
21946 | for ac_func in sin | |
21947 | do | |
21948 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
34bed6d9 | 21949 | echo "configure:21950: checking for $ac_func" >&5 |
2b5f62a0 VZ |
21950 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
21951 | echo $ac_n "(cached) $ac_c" 1>&6 | |
21952 | else | |
21953 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 21954 | #line 21955 "configure" |
2b5f62a0 VZ |
21955 | #include "confdefs.h" |
21956 | /* System header to define __stub macros and hopefully few prototypes, | |
21957 | which can conflict with char $ac_func(); below. */ | |
21958 | #include <assert.h> | |
21959 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21960 | /* We use char because int might match the return type of a gcc2 | |
21961 | builtin and then its argument prototype would still apply. */ | |
21962 | char $ac_func(); | |
21963 | ||
21964 | int main() { | |
21965 | ||
21966 | /* The GNU C library defines this for functions which it implements | |
21967 | to always fail with ENOSYS. Some functions are actually named | |
21968 | something starting with __ and the normal name is an alias. */ | |
21969 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21970 | choke me | |
21971 | #else | |
21972 | $ac_func(); | |
21973 | #endif | |
21974 | ||
21975 | ; return 0; } | |
21976 | EOF | |
34bed6d9 | 21977 | if { (eval echo configure:21978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
21978 | rm -rf conftest* |
21979 | eval "ac_cv_func_$ac_func=yes" | |
21980 | else | |
21981 | echo "configure: failed program was:" >&5 | |
21982 | cat conftest.$ac_ext >&5 | |
21983 | rm -rf conftest* | |
21984 | eval "ac_cv_func_$ac_func=no" | |
21985 | fi | |
21986 | rm -f conftest* | |
21987 | fi | |
21988 | ||
21989 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
21990 | echo "$ac_t""yes" 1>&6 | |
21991 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
21992 | cat >> confdefs.h <<EOF | |
21993 | #define $ac_tr_func 1 | |
21994 | EOF | |
21995 | have_sin=1 | |
21996 | else | |
21997 | echo "$ac_t""no" 1>&6 | |
21998 | fi | |
21999 | done | |
22000 | ||
22001 | for ac_func in ceil | |
22002 | do | |
22003 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
34bed6d9 | 22004 | echo "configure:22005: checking for $ac_func" >&5 |
2b5f62a0 VZ |
22005 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
22006 | echo $ac_n "(cached) $ac_c" 1>&6 | |
22007 | else | |
22008 | cat > conftest.$ac_ext <<EOF | |
34bed6d9 | 22009 | #line 22010 "configure" |
2b5f62a0 VZ |
22010 | #include "confdefs.h" |
22011 | /* System header to define __stub macros and hopefully few prototypes, | |
22012 | which can conflict with char $ac_func(); below. */ | |
22013 | #include <assert.h> | |
22014 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22015 | /* We use char because int might match the return type of a gcc2 | |
22016 | builtin and then its argument prototype would still apply. */ | |
22017 | char $ac_func(); | |
22018 | ||
22019 | int main() { | |
22020 | ||
22021 | /* The GNU C library defines this for functions which it implements | |
22022 | to always fail with ENOSYS. Some functions are actually named | |
22023 | something starting with __ and the normal name is an alias. */ | |
22024 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22025 | choke me | |
22026 | #else | |
22027 | $ac_func(); | |
22028 | #endif | |
22029 | ||
22030 | ; return 0; } | |
22031 | EOF | |
34bed6d9 | 22032 | if { (eval echo configure:22033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
2b5f62a0 VZ |
22033 | rm -rf conftest* |
22034 | eval "ac_cv_func_$ac_func=yes" | |
22035 | else | |
22036 | echo "configure: failed program was:" >&5 | |
22037 | cat conftest.$ac_ext >&5 | |
22038 | rm -rf conftest* | |
22039 | eval "ac_cv_func_$ac_func=no" | |
22040 | fi | |
22041 | rm -f conftest* | |
22042 | fi | |
22043 | ||
22044 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
22045 | echo "$ac_t""yes" 1>&6 | |
22046 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
22047 | cat >> confdefs.h <<EOF | |
22048 | #define $ac_tr_func 1 | |
22049 | EOF | |
22050 | have_ceil=1 | |
22051 | else | |
22052 | echo "$ac_t""no" 1>&6 | |
22053 | fi | |
22054 | done | |
22055 | ||
22056 | echo $ac_n "checking if floating point functions link with -lm""... $ac_c" 1>&6 | |
34bed6d9 | 22057 | echo "configure:22058: checking if floating point functions link with -lm" >&5 |
2b5f62a0 VZ |
22058 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
22059 | echo "$ac_t""yes" 1>&6 | |
22060 | else | |
22061 | echo "$ac_t""no" 1>&6 | |
22062 | # not sure we should warn the user, crash, etc. | |
22063 | fi | |
22064 | fi | |
8284b0c5 MB |
22065 | |
22066 | if test "$wxUSE_GUI" = "yes"; then | |
22067 | ||
22068 | LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS" | |
22069 | ||
a0b9e27f | 22070 | |
8284b0c5 MB |
22071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
22072 | drawing dynamic erase event exec font image \ | |
22073 | minimal propsize rotate widgets" | |
22074 | ||
22075 | CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" | |
22076 | else | |
22077 | SAMPLES_SUBDIRS="console" | |
22078 | fi | |
22079 | ||
22080 | ||
22081 | INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \ | |
22082 | -I\${top_srcdir}/include \ | |
22083 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
22084 | $TOOLKIT_INCLUDE" | |
22085 | ||
22086 | if test "$wxUSE_GTK" = 1; then | |
22087 | WXCONFIG_INCLUDE= | |
22088 | else | |
22089 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
22090 | fi | |
22091 | ||
22092 | if test "$GXX" = yes ; then | |
22093 | CXXWARNINGS="-Wall" | |
a0b9e27f | 22094 | |
8284b0c5 MB |
22095 | if test "$wxUSE_NO_DEPS" = "no" ; then |
22096 | CFLAGS="-MMD $CFLAGS" | |
22097 | CXXFLAGS="-MMD $CXXFLAGS" | |
22098 | fi | |
22099 | fi | |
22100 | ||
b2fee376 | 22101 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" |
8284b0c5 | 22102 | |
b2fee376 | 22103 | CPPFLAGS=`echo $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
8284b0c5 MB |
22104 | CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
22105 | CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
22106 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
22107 | ||
22108 | LDFLAGS="$LDFLAGS $PROFILE" | |
22109 | ||
22110 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
22111 | ||
22112 | ||
22113 | ||
22114 | ||
22115 | ||
22116 | ||
22117 | ||
22118 | ||
22119 | ||
22120 | ||
22121 | ||
22122 | ||
22123 | ||
22124 | ||
22125 | ||
22126 | ||
22127 | ||
22128 | ||
22129 | ||
22130 | ||
22131 | ||
22132 | ||
22133 | ||
22134 | ||
22135 | ||
22136 | ||
22137 | ||
22138 | ||
22139 | ||
22140 | ||
22141 | ||
22142 | ||
22143 | ||
22144 | ||
22145 | ||
22146 | ||
22147 | ||
22148 | ||
22149 | ||
22150 | ||
22151 | ||
22152 | ||
22153 | ||
22154 | ||
22155 | ||
22156 | ||
22157 | ||
22158 | ||
22159 | ||
22160 | ||
22161 | ||
22162 | ||
22163 | ||
22164 | ||
22165 | ||
22166 | ||
22167 | ||
22168 | ||
22169 | ||
22170 | ||
22171 | ||
22172 | ||
22173 | ||
22174 | ||
22175 | ||
22176 | ||
22177 | ||
22178 | ||
2f51a9ec GD |
22179 | |
22180 | ||
22181 | ||
22182 | ||
f6bcfd97 | 22183 | |
dad6c0ea | 22184 | |
caa2c79b | 22185 | |
3711412e | 22186 | |
1e6feb95 VZ |
22187 | |
22188 | ||
885d4bf5 VS |
22189 | |
22190 | ||
22191 | ||
22192 | ||
9b695262 VZ |
22193 | |
22194 | ||
62d0491b | 22195 | |
ef7f2189 | 22196 | |
40f7145c | 22197 | |
2b5f62a0 VZ |
22198 | |
22199 | ||
22200 | ||
22201 | ||
22202 | ||
2bffed64 VZ |
22203 | |
22204 | ||
3bd8fb5f | 22205 | |
e26c13cf | 22206 | |
10f2d63a | 22207 | |
a0b9e27f MB |
22208 | |
22209 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
34bed6d9 | 22210 | echo "configure:22211: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
a0b9e27f MB |
22211 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
22212 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
22213 | echo $ac_n "(cached) $ac_c" 1>&6 | |
10f2d63a | 22214 | else |
a0b9e27f | 22215 | cat > conftestmake <<\EOF |
10f2d63a VZ |
22216 | all: |
22217 | @echo 'ac_maketemp="${MAKE}"' | |
a0b9e27f | 22218 | EOF |
10f2d63a | 22219 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
a0b9e27f | 22220 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
10f2d63a VZ |
22221 | if test -n "$ac_maketemp"; then |
22222 | eval ac_cv_prog_make_${ac_make}_set=yes | |
22223 | else | |
22224 | eval ac_cv_prog_make_${ac_make}_set=no | |
22225 | fi | |
a0b9e27f | 22226 | rm -f conftestmake |
10f2d63a VZ |
22227 | fi |
22228 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
a0b9e27f | 22229 | echo "$ac_t""yes" 1>&6 |
10f2d63a VZ |
22230 | SET_MAKE= |
22231 | else | |
a0b9e27f | 22232 | echo "$ac_t""no" 1>&6 |
10f2d63a VZ |
22233 | SET_MAKE="MAKE=${MAKE-make}" |
22234 | fi | |
22235 | ||
8284b0c5 | 22236 | |
3a922bb4 RL |
22237 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then |
22238 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
00cf1208 | 22239 | fi |
665bbe97 | 22240 | |
8284b0c5 | 22241 | |
10f2d63a | 22242 | |
57973b9c VZ |
22243 | wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS |
22244 | wx_cv_if_gnu_make=$IF_GNU_MAKE | |
22245 | wx_cv_path_ifs=$PATH_IFS | |
22246 | wx_cv_program_ext=$PROGRAM_EXT | |
22247 | wx_cv_target_library=$WX_TARGET_LIBRARY | |
22248 | wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL | |
22249 | wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE | |
2b5f62a0 VZ |
22250 | wx_cv_library_basename=${WX_LIBRARY_BASENAME} |
22251 | wx_cv_release=${WX_RELEASE} | |
22252 | wx_cv_current=${WX_CURRENT} | |
22253 | wx_cv_revision=${WX_REVISION} | |
22254 | wx_cv_age=${WX_AGE} | |
27635a90 | 22255 | wx_cv_use_gui=${USE_GUI} |
5e66eee1 | 22256 | wx_cv_use_resources=${wxUSE_RESOURCES} |
57973b9c VZ |
22257 | export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \ |
22258 | wx_cv_path_ifs wx_cv_program_ext \ | |
2b5f62a0 | 22259 | wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype \ |
27635a90 | 22260 | wx_cv_library_basename wx_cv_release wx_cv_current wx_cv_revision wx_cv_age \ |
5e66eee1 | 22261 | wx_cv_use_gui wx_cv_use_resources |
57973b9c | 22262 | |
a0b9e27f | 22263 | subdirs="demos samples utils contrib" |
8284b0c5 | 22264 | |
10f2d63a | 22265 | |
a0b9e27f MB |
22266 | trap '' 1 2 15 |
22267 | cat > confcache <<\EOF | |
10f2d63a VZ |
22268 | # This file is a shell script that caches the results of configure |
22269 | # tests run on this system so they can be shared between configure | |
a0b9e27f MB |
22270 | # scripts and configure runs. It is not useful on other systems. |
22271 | # If it contains results you don't want to keep, you may remove or edit it. | |
10f2d63a | 22272 | # |
a0b9e27f MB |
22273 | # By default, configure uses ./config.cache as the cache file, |
22274 | # creating it if it does not exist already. You can give configure | |
22275 | # the --cache-file=FILE option to use a different cache file; that is | |
22276 | # what configure does when it calls configure scripts in | |
22277 | # subdirectories, so they share the cache. | |
22278 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
22279 | # config.status only pays attention to the cache file if you give it the | |
22280 | # --recheck option to rerun configure. | |
10f2d63a | 22281 | # |
a0b9e27f | 22282 | EOF |
10f2d63a VZ |
22283 | # The following way of writing the cache mishandles newlines in values, |
22284 | # but we know of no workaround that is simple, portable, and efficient. | |
22285 | # So, don't put newlines in cache variables' values. | |
22286 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22287 | # and sets the high bit in the cache file unless we assign to the vars. | |
a0b9e27f MB |
22288 | (set) 2>&1 | |
22289 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22290 | *ac_space=\ *) | |
22291 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
22292 | # turns \\\\ into \\, and sed turns \\ into \). | |
22293 | sed -n \ | |
22294 | -e "s/'/'\\\\''/g" \ | |
22295 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
22296 | ;; | |
22297 | *) | |
22298 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22299 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
22300 | ;; | |
22301 | esac >> confcache | |
22302 | if cmp -s $cache_file confcache; then | |
22303 | : | |
22304 | else | |
10f2d63a | 22305 | if test -w $cache_file; then |
a0b9e27f MB |
22306 | echo "updating cache $cache_file" |
22307 | cat confcache > $cache_file | |
10f2d63a VZ |
22308 | else |
22309 | echo "not updating unwritable cache $cache_file" | |
22310 | fi | |
22311 | fi | |
22312 | rm -f confcache | |
22313 | ||
a0b9e27f MB |
22314 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
22315 | ||
10f2d63a VZ |
22316 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
22317 | # Let make expand exec_prefix. | |
22318 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22319 | ||
a0b9e27f MB |
22320 | # Any assignment to VPATH causes Sun make to only execute |
22321 | # the first set of double-colon rules, so remove it if not needed. | |
22322 | # If there is a colon in the path, we need to keep it. | |
10f2d63a | 22323 | if test "x$srcdir" = x.; then |
a0b9e27f | 22324 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
10f2d63a VZ |
22325 | fi |
22326 | ||
a0b9e27f | 22327 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
10f2d63a | 22328 | |
a0b9e27f | 22329 | DEFS=-DHAVE_CONFIG_H |
8284b0c5 | 22330 | |
a0b9e27f | 22331 | # Without the "./", some shells look in PATH for config.status. |
247f5006 | 22332 | : ${CONFIG_STATUS=./config.status} |
52127426 | 22333 | |
a0b9e27f MB |
22334 | echo creating $CONFIG_STATUS |
22335 | rm -f $CONFIG_STATUS | |
22336 | cat > $CONFIG_STATUS <<EOF | |
22337 | #! /bin/sh | |
22338 | # Generated automatically by configure. | |
22339 | # Run this file to recreate the current configuration. | |
22340 | # This directory was configured as follows, | |
22341 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
247f5006 | 22342 | # |
a0b9e27f | 22343 | # $0 $ac_configure_args |
247f5006 | 22344 | # |
a0b9e27f MB |
22345 | # Compiler output produced by configure, useful for debugging |
22346 | # configure, is in ./config.log if it exists. | |
247f5006 | 22347 | |
a0b9e27f MB |
22348 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
22349 | for ac_option | |
247f5006 | 22350 | do |
a0b9e27f MB |
22351 | case "\$ac_option" in |
22352 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22353 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
22354 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
22355 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
22356 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
22357 | exit 0 ;; | |
22358 | -help | --help | --hel | --he | --h) | |
22359 | echo "\$ac_cs_usage"; exit 0 ;; | |
22360 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
247f5006 VZ |
22361 | esac |
22362 | done | |
22363 | ||
a0b9e27f MB |
22364 | ac_given_srcdir=$srcdir |
22365 | ac_given_INSTALL="$INSTALL" | |
247f5006 | 22366 | |
a0b9e27f MB |
22367 | trap 'rm -fr `echo " |
22368 | wx-config | |
2b5f62a0 | 22369 | version-script |
a0b9e27f MB |
22370 | src/make.env |
22371 | src/makeprog.env | |
22372 | src/makelib.env | |
22373 | Makefile | |
22374 | setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
22375 | EOF | |
22376 | cat >> $CONFIG_STATUS <<EOF | |
247f5006 | 22377 | |
a0b9e27f MB |
22378 | # Protect against being on the right side of a sed subst in config.status. |
22379 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
22380 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
22381 | $ac_vpsub | |
22382 | $extrasub | |
22383 | s%@SHELL@%$SHELL%g | |
22384 | s%@CFLAGS@%$CFLAGS%g | |
22385 | s%@CPPFLAGS@%$CPPFLAGS%g | |
22386 | s%@CXXFLAGS@%$CXXFLAGS%g | |
22387 | s%@FFLAGS@%$FFLAGS%g | |
22388 | s%@DEFS@%$DEFS%g | |
22389 | s%@LDFLAGS@%$LDFLAGS%g | |
22390 | s%@LIBS@%$LIBS%g | |
22391 | s%@exec_prefix@%$exec_prefix%g | |
22392 | s%@prefix@%$prefix%g | |
22393 | s%@program_transform_name@%$program_transform_name%g | |
22394 | s%@bindir@%$bindir%g | |
22395 | s%@sbindir@%$sbindir%g | |
22396 | s%@libexecdir@%$libexecdir%g | |
22397 | s%@datadir@%$datadir%g | |
22398 | s%@sysconfdir@%$sysconfdir%g | |
22399 | s%@sharedstatedir@%$sharedstatedir%g | |
22400 | s%@localstatedir@%$localstatedir%g | |
22401 | s%@libdir@%$libdir%g | |
22402 | s%@includedir@%$includedir%g | |
22403 | s%@oldincludedir@%$oldincludedir%g | |
22404 | s%@infodir@%$infodir%g | |
22405 | s%@mandir@%$mandir%g | |
22406 | s%@host@%$host%g | |
22407 | s%@host_alias@%$host_alias%g | |
22408 | s%@host_cpu@%$host_cpu%g | |
22409 | s%@host_vendor@%$host_vendor%g | |
22410 | s%@host_os@%$host_os%g | |
22411 | s%@target@%$target%g | |
22412 | s%@target_alias@%$target_alias%g | |
22413 | s%@target_cpu@%$target_cpu%g | |
22414 | s%@target_vendor@%$target_vendor%g | |
22415 | s%@target_os@%$target_os%g | |
22416 | s%@build@%$build%g | |
22417 | s%@build_alias@%$build_alias%g | |
22418 | s%@build_cpu@%$build_cpu%g | |
22419 | s%@build_vendor@%$build_vendor%g | |
22420 | s%@build_os@%$build_os%g | |
22421 | s%@CC@%$CC%g | |
22422 | s%@CPP@%$CPP%g | |
22423 | s%@CXX@%$CXX%g | |
22424 | s%@RANLIB@%$RANLIB%g | |
22425 | s%@AR@%$AR%g | |
22426 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
22427 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
22428 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
22429 | s%@STRIP@%$STRIP%g | |
22430 | s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g | |
22431 | s%@YACC@%$YACC%g | |
22432 | s%@LEX@%$LEX%g | |
22433 | s%@LEXLIB@%$LEXLIB%g | |
22434 | s%@LN_S@%$LN_S%g | |
22435 | s%@CXXCPP@%$CXXCPP%g | |
22436 | s%@PKG_CONFIG@%$PKG_CONFIG%g | |
22437 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g | |
22438 | s%@GTK_LIBS@%$GTK_LIBS%g | |
22439 | s%@GTK_CONFIG@%$GTK_CONFIG%g | |
22440 | s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g | |
22441 | s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g | |
22442 | s%@X_CFLAGS@%$X_CFLAGS%g | |
22443 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g | |
22444 | s%@X_LIBS@%$X_LIBS%g | |
22445 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g | |
2b5f62a0 VZ |
22446 | s%@PANGOX_CFLAGS@%$PANGOX_CFLAGS%g |
22447 | s%@PANGOX_LIBS@%$PANGOX_LIBS%g | |
22448 | s%@PANGOXFT_CFLAGS@%$PANGOXFT_CFLAGS%g | |
22449 | s%@PANGOXFT_LIBS@%$PANGOXFT_LIBS%g | |
a0b9e27f MB |
22450 | s%@AIX_CXX_LD@%$AIX_CXX_LD%g |
22451 | s%@RESCOMP@%$RESCOMP%g | |
22452 | s%@DEREZ@%$DEREZ%g | |
22453 | s%@LIBICONV@%$LIBICONV%g | |
22454 | s%@LEX_STEM@%$LEX_STEM%g | |
22455 | s%@PATH_IFS@%$PATH_IFS%g | |
22456 | s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g | |
22457 | s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g | |
22458 | s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g | |
22459 | s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g | |
22460 | s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g | |
2b5f62a0 | 22461 | s%@WX_LIBRARY_BASENAME@%$WX_LIBRARY_BASENAME%g |
a0b9e27f MB |
22462 | s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g |
22463 | s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g | |
22464 | s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g | |
22465 | s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g | |
22466 | s%@PROGRAM_EXT@%$PROGRAM_EXT%g | |
22467 | s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g | |
22468 | s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g | |
22469 | s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g | |
22470 | s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g | |
22471 | s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g | |
22472 | s%@WX_ALL@%$WX_ALL%g | |
22473 | s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g | |
22474 | s%@SHARED_LD@%$SHARED_LD%g | |
22475 | s%@PIC_FLAG@%$PIC_FLAG%g | |
22476 | s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g | |
22477 | s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g | |
22478 | s%@SONAME_FLAGS@%$SONAME_FLAGS%g | |
22479 | s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g | |
22480 | s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g | |
22481 | s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g | |
2bffed64 | 22482 | s%@STATIC_FLAG@%$STATIC_FLAG%g |
a0b9e27f MB |
22483 | s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g |
22484 | s%@USE_GUI@%$USE_GUI%g | |
22485 | s%@AFMINSTALL@%$AFMINSTALL%g | |
2b5f62a0 | 22486 | s%@WIN32INSTALL@%$WIN32INSTALL%g |
a0b9e27f MB |
22487 | s%@TOOLKIT@%$TOOLKIT%g |
22488 | s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g | |
22489 | s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g | |
22490 | s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g | |
22491 | s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g | |
22492 | s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g | |
22493 | s%@cross_compiling@%$cross_compiling%g | |
22494 | s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g | |
22495 | s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g | |
22496 | s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g | |
22497 | s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g | |
22498 | s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g | |
22499 | s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g | |
e26c13cf | 22500 | s%@WX_LARGEFILE_FLAGS@%$WX_LARGEFILE_FLAGS%g |
a0b9e27f MB |
22501 | s%@ALL_OBJECTS@%$ALL_OBJECTS%g |
22502 | s%@ALL_HEADERS@%$ALL_HEADERS%g | |
22503 | s%@ALL_SOURCES@%$ALL_SOURCES%g | |
22504 | s%@GUIDIST@%$GUIDIST%g | |
22505 | s%@PORT_FILES@%$PORT_FILES%g | |
22506 | s%@DISTDIR@%$DISTDIR%g | |
a0b9e27f MB |
22507 | s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g |
22508 | s%@LDFLAGS_GL@%$LDFLAGS_GL%g | |
2b5f62a0 | 22509 | s%@LDFLAGS_VERSIONING@%$LDFLAGS_VERSIONING%g |
a0b9e27f MB |
22510 | s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g |
22511 | s%@OPENGL_LIBS@%$OPENGL_LIBS%g | |
22512 | s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g | |
22513 | s%@EXTRADEFS@%$EXTRADEFS%g | |
2b5f62a0 | 22514 | s%@WX_VERSION_TAG@%$WX_VERSION_TAG%g |
a0b9e27f MB |
22515 | s%@RESFLAGS@%$RESFLAGS%g |
22516 | s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g | |
22517 | s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g | |
22518 | s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g | |
22519 | s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g | |
22520 | s%@LIBWXMACRES@%$LIBWXMACRES%g | |
22521 | s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g | |
22522 | s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g | |
2b5f62a0 | 22523 | s%@GCC@%$GCC%g |
a0b9e27f MB |
22524 | s%@DLLTOOL@%$DLLTOOL%g |
22525 | s%@AS@%$AS%g | |
22526 | s%@NM@%$NM%g | |
22527 | s%@LD@%$LD%g | |
22528 | s%@MAKEINFO@%$MAKEINFO%g | |
22529 | s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g | |
22530 | s%@SET_MAKE@%$SET_MAKE%g | |
22531 | s%@subdirs@%$subdirs%g | |
247f5006 | 22532 | |
247f5006 | 22533 | CEOF |
a0b9e27f | 22534 | EOF |
247f5006 | 22535 | |
a0b9e27f MB |
22536 | cat >> $CONFIG_STATUS <<\EOF |
22537 | ||
22538 | # Split the substitutions into bite-sized pieces for seds with | |
22539 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22540 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
22541 | ac_file=1 # Number of current file. | |
22542 | ac_beg=1 # First line for current file. | |
22543 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
22544 | ac_more_lines=: | |
22545 | ac_sed_cmds="" | |
22546 | while $ac_more_lines; do | |
22547 | if test $ac_beg -gt 1; then | |
22548 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
22549 | else | |
22550 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
22551 | fi | |
22552 | if test ! -s conftest.s$ac_file; then | |
22553 | ac_more_lines=false | |
22554 | rm -f conftest.s$ac_file | |
22555 | else | |
22556 | if test -z "$ac_sed_cmds"; then | |
22557 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
247f5006 | 22558 | else |
a0b9e27f | 22559 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
247f5006 | 22560 | fi |
a0b9e27f MB |
22561 | ac_file=`expr $ac_file + 1` |
22562 | ac_beg=$ac_end | |
22563 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
10f2d63a | 22564 | fi |
a0b9e27f MB |
22565 | done |
22566 | if test -z "$ac_sed_cmds"; then | |
22567 | ac_sed_cmds=cat | |
22568 | fi | |
22569 | EOF | |
10f2d63a | 22570 | |
a0b9e27f | 22571 | cat >> $CONFIG_STATUS <<EOF |
10f2d63a | 22572 | |
a0b9e27f | 22573 | CONFIG_FILES=\${CONFIG_FILES-"wx-config |
2b5f62a0 | 22574 | version-script |
a0b9e27f MB |
22575 | src/make.env |
22576 | src/makeprog.env | |
22577 | src/makelib.env | |
22578 | Makefile | |
22579 | "} | |
22580 | EOF | |
22581 | cat >> $CONFIG_STATUS <<\EOF | |
22582 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
22583 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
22584 | case "$ac_file" in | |
22585 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22586 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22587 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a | 22588 | esac |
247f5006 | 22589 | |
a0b9e27f | 22590 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
247f5006 | 22591 | |
a0b9e27f MB |
22592 | # Remove last slash and all that follows it. Not all systems have dirname. |
22593 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22594 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22595 | # The file is in a subdirectory. | |
22596 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
22597 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
22598 | # A "../" for each directory in $ac_dir_suffix. | |
22599 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
22600 | else | |
22601 | ac_dir_suffix= ac_dots= | |
22602 | fi | |
247f5006 | 22603 | |
a0b9e27f MB |
22604 | case "$ac_given_srcdir" in |
22605 | .) srcdir=. | |
22606 | if test -z "$ac_dots"; then top_srcdir=. | |
22607 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
22608 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
247f5006 | 22609 | *) # Relative path. |
a0b9e27f MB |
22610 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
22611 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
8284b0c5 | 22612 | esac |
10f2d63a | 22613 | |
a0b9e27f MB |
22614 | case "$ac_given_INSTALL" in |
22615 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22616 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22617 | esac | |
247f5006 | 22618 | |
a0b9e27f MB |
22619 | echo creating "$ac_file" |
22620 | rm -f "$ac_file" | |
22621 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
22622 | case "$ac_file" in | |
22623 | *Makefile*) ac_comsub="1i\\ | |
22624 | # $configure_input" ;; | |
22625 | *) ac_comsub= ;; | |
22626 | esac | |
247f5006 | 22627 | |
a0b9e27f MB |
22628 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
22629 | sed -e "$ac_comsub | |
22630 | s%@configure_input@%$configure_input%g | |
22631 | s%@srcdir@%$srcdir%g | |
22632 | s%@top_srcdir@%$top_srcdir%g | |
22633 | s%@INSTALL@%$INSTALL%g | |
22634 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
22635 | fi; done | |
22636 | rm -f conftest.s* | |
10f2d63a VZ |
22637 | |
22638 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22639 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22640 | # | |
22641 | # ac_d sets the value in "#define NAME VALUE" lines. | |
a0b9e27f MB |
22642 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22643 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
22644 | ac_dC='\3' | |
22645 | ac_dD='%g' | |
22646 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
22647 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22648 | ac_uB='\([ ]\)%\1#\2define\3' | |
10f2d63a | 22649 | ac_uC=' ' |
a0b9e27f MB |
22650 | ac_uD='\4%g' |
22651 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22652 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22653 | ac_eB='$%\1#\2define\3' | |
22654 | ac_eC=' ' | |
22655 | ac_eD='%g' | |
22656 | ||
22657 | if test "${CONFIG_HEADERS+set}" != set; then | |
22658 | EOF | |
22659 | cat >> $CONFIG_STATUS <<EOF | |
22660 | CONFIG_HEADERS="setup.h:setup.h.in" | |
22661 | EOF | |
22662 | cat >> $CONFIG_STATUS <<\EOF | |
22663 | fi | |
22664 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
10f2d63a | 22665 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
a0b9e27f MB |
22666 | case "$ac_file" in |
22667 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
22668 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22669 | *) ac_file_in="${ac_file}.in" ;; | |
10f2d63a VZ |
22670 | esac |
22671 | ||
a0b9e27f MB |
22672 | echo creating $ac_file |
22673 | ||
22674 | rm -f conftest.frag conftest.in conftest.out | |
22675 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
22676 | cat $ac_file_inputs > conftest.in | |
22677 | ||
22678 | EOF | |
22679 | ||
22680 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
22681 | # the proper values into config.h.in to produce config.h. And first: | |
22682 | # Protect against being on the right side of a sed subst in config.status. | |
22683 | # Protect against being in an unquoted here document in config.status. | |
22684 | rm -f conftest.vals | |
22685 | cat > conftest.hdr <<\EOF | |
22686 | s/[\\&%]/\\&/g | |
22687 | s%[\\$`]%\\&%g | |
22688 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
22689 | s%ac_d%ac_u%gp | |
22690 | s%ac_u%ac_e%gp | |
22691 | EOF | |
22692 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
22693 | rm -f conftest.hdr | |
10f2d63a VZ |
22694 | |
22695 | # This sed command replaces #undef with comments. This is necessary, for | |
22696 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22697 | # on some systems where configure will not decide to define it. | |
a0b9e27f MB |
22698 | cat >> conftest.vals <<\EOF |
22699 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
22700 | EOF | |
22701 | ||
22702 | # Break up conftest.vals because some shells have a limit on | |
22703 | # the size of here documents, and old seds have small limits too. | |
10f2d63a VZ |
22704 | |
22705 | rm -f conftest.tail | |
a0b9e27f | 22706 | while : |
10f2d63a | 22707 | do |
a0b9e27f MB |
22708 | ac_lines=`grep -c . conftest.vals` |
22709 | # grep -c gives empty output for an empty file on some AIX systems. | |
22710 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
22711 | # Write a limited-size here document to conftest.frag. | |
22712 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
22713 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
10f2d63a | 22714 | echo 'CEOF |
a0b9e27f MB |
22715 | sed -f conftest.frag conftest.in > conftest.out |
22716 | rm -f conftest.in | |
22717 | mv conftest.out conftest.in | |
22718 | ' >> $CONFIG_STATUS | |
22719 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
22720 | rm -f conftest.vals | |
22721 | mv conftest.tail conftest.vals | |
10f2d63a | 22722 | done |
a0b9e27f MB |
22723 | rm -f conftest.vals |
22724 | ||
22725 | cat >> $CONFIG_STATUS <<\EOF | |
22726 | rm -f conftest.frag conftest.h | |
22727 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
22728 | cat conftest.in >> conftest.h | |
22729 | rm -f conftest.in | |
22730 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
22731 | echo "$ac_file is unchanged" | |
22732 | rm -f conftest.h | |
10f2d63a | 22733 | else |
a0b9e27f MB |
22734 | # Remove last slash and all that follows it. Not all systems have dirname. |
22735 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
22736 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
22737 | # The file is in a subdirectory. | |
22738 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
247f5006 | 22739 | fi |
a0b9e27f MB |
22740 | rm -f $ac_file |
22741 | mv conftest.h $ac_file | |
247f5006 | 22742 | fi |
a0b9e27f MB |
22743 | fi; done |
22744 | ||
22745 | EOF | |
22746 | cat >> $CONFIG_STATUS <<EOF | |
22747 | ||
22748 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
22749 | LN_S="${LN_S}" | |
22750 | ||
22751 | ||
22752 | EOF | |
22753 | cat >> $CONFIG_STATUS <<\EOF | |
10f2d63a | 22754 | |
652d930d | 22755 | if test ! -h wx-config; then |
991a5759 | 22756 | chmod +x wx-config |
3a922bb4 RL |
22757 | mv wx-config wx${TOOLCHAIN_NAME}-config |
22758 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 22759 | fi |
665bbe97 | 22760 | |
00cf1208 RR |
22761 | if test ! -d lib; then |
22762 | mkdir lib | |
22763 | fi | |
22764 | if test ! -d lib/wx; then | |
22765 | mkdir lib/wx | |
22766 | fi | |
22767 | if test ! -d lib/wx/include; then | |
22768 | mkdir lib/wx/include | |
22769 | fi | |
3a922bb4 RL |
22770 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
22771 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 22772 | fi |
3a922bb4 RL |
22773 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
22774 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
22775 | fi |
22776 | if test -f setup.h; then | |
3a922bb4 | 22777 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 22778 | fi |
a0b9e27f MB |
22779 | |
22780 | exit 0 | |
22781 | EOF | |
10f2d63a | 22782 | chmod +x $CONFIG_STATUS |
a0b9e27f MB |
22783 | rm -fr confdefs* $ac_clean_files |
22784 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
10f2d63a | 22785 | |
2224580a VZ |
22786 | if test "$no_recursion" != yes; then |
22787 | ||
22788 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
22789 | ac_sub_configure_args= | |
22790 | ac_prev= | |
22791 | for ac_arg in $ac_configure_args; do | |
22792 | if test -n "$ac_prev"; then | |
22793 | ac_prev= | |
22794 | continue | |
22795 | fi | |
a0b9e27f | 22796 | case "$ac_arg" in |
2224580a VZ |
22797 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
22798 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
22799 | ac_prev=cache_file ;; | |
22800 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
a0b9e27f | 22801 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
2224580a VZ |
22802 | ;; |
22803 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
22804 | ac_prev=srcdir ;; | |
22805 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
22806 | ;; | |
22807 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
22808 | esac | |
22809 | done | |
22810 | ||
a0b9e27f | 22811 | for ac_config_dir in demos samples utils contrib; do |
2224580a VZ |
22812 | |
22813 | # Do not complain, so a configure script can configure whichever | |
22814 | # parts of a large source tree are present. | |
a0b9e27f MB |
22815 | if test ! -d $srcdir/$ac_config_dir; then |
22816 | continue | |
22817 | fi | |
2224580a | 22818 | |
a0b9e27f | 22819 | echo configuring in $ac_config_dir |
2224580a | 22820 | |
a0b9e27f MB |
22821 | case "$srcdir" in |
22822 | .) ;; | |
22823 | *) | |
22824 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; | |
22825 | else | |
22826 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } | |
22827 | fi | |
22828 | ;; | |
22829 | esac | |
2224580a | 22830 | |
a0b9e27f MB |
22831 | ac_popdir=`pwd` |
22832 | cd $ac_config_dir | |
247f5006 | 22833 | |
a0b9e27f MB |
22834 | # A "../" for each directory in /$ac_config_dir. |
22835 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` | |
247f5006 | 22836 | |
a0b9e27f MB |
22837 | case "$srcdir" in |
22838 | .) # No --srcdir option. We are building in place. | |
22839 | ac_sub_srcdir=$srcdir ;; | |
22840 | /*) # Absolute path. | |
22841 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; | |
22842 | *) # Relative path. | |
22843 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; | |
22844 | esac | |
2224580a VZ |
22845 | |
22846 | # Check for guested configure; otherwise get Cygnus style configure. | |
a0b9e27f MB |
22847 | if test -f $ac_sub_srcdir/configure; then |
22848 | ac_sub_configure=$ac_sub_srcdir/configure | |
22849 | elif test -f $ac_sub_srcdir/configure.in; then | |
2224580a VZ |
22850 | ac_sub_configure=$ac_configure |
22851 | else | |
a0b9e27f | 22852 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
2224580a VZ |
22853 | ac_sub_configure= |
22854 | fi | |
22855 | ||
22856 | # The recursion is here. | |
22857 | if test -n "$ac_sub_configure"; then | |
a0b9e27f | 22858 | |
2224580a | 22859 | # Make the cache file name correct relative to the subdirectory. |
a0b9e27f MB |
22860 | case "$cache_file" in |
22861 | /*) ac_sub_cache_file=$cache_file ;; | |
2224580a | 22862 | *) # Relative path. |
a0b9e27f | 22863 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
2224580a | 22864 | esac |
a0b9e27f MB |
22865 | case "$ac_given_INSTALL" in |
22866 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
22867 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
22868 | esac | |
2224580a | 22869 | |
a0b9e27f | 22870 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
2224580a | 22871 | # The eval makes quoting arguments work. |
a0b9e27f MB |
22872 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
22873 | then : | |
22874 | else | |
22875 | { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; } | |
22876 | fi | |
2224580a VZ |
22877 | fi |
22878 | ||
22879 | cd $ac_popdir | |
22880 | done | |
22881 | fi | |
22882 | ||
8284b0c5 | 22883 | |
2b5f62a0 VZ |
22884 | echo |
22885 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
22886 | echo "" | |
22887 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
22888 | ||
22889 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
22890 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
22891 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
22892 | ||
22893 | echo " Which libraries should wxWindows use?" | |
22894 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
22895 | echo " png ${wxUSE_LIBPNG-none}" | |
22896 | echo " regex ${wxUSE_REGEX}" | |
22897 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
22898 | echo " zlib ${wxUSE_ZLIB}" | |
22899 | ||
22900 | echo "" | |
22901 |